|
|
@ -50,7 +50,9 @@ paths:
|
|
|
|
"threepids": [
|
|
|
|
"threepids": [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"medium": "email",
|
|
|
|
"medium": "email",
|
|
|
|
"address": "monkey@banana.island"
|
|
|
|
"address": "monkey@banana.island",
|
|
|
|
|
|
|
|
"validated_at": 1535176800000,
|
|
|
|
|
|
|
|
"added_at": 1535336848756
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -70,6 +72,19 @@ paths:
|
|
|
|
address:
|
|
|
|
address:
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
description: The third party identifier address.
|
|
|
|
description: The third party identifier address.
|
|
|
|
|
|
|
|
validated_at:
|
|
|
|
|
|
|
|
type: integer
|
|
|
|
|
|
|
|
format: int64
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
The timestamp, in milliseconds, when the identifier was
|
|
|
|
|
|
|
|
validated by the identity service.
|
|
|
|
|
|
|
|
added_at:
|
|
|
|
|
|
|
|
type: integer
|
|
|
|
|
|
|
|
format: int64
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
The timestamp, in milliseconds, when the homeserver
|
|
|
|
|
|
|
|
associated the third party identifier with the user.
|
|
|
|
|
|
|
|
required: ['medium', 'address', 'validated_at', 'added_at']
|
|
|
|
tags:
|
|
|
|
tags:
|
|
|
|
- User data
|
|
|
|
- User data
|
|
|
|
post:
|
|
|
|
post:
|
|
|
@ -133,6 +148,41 @@ paths:
|
|
|
|
"$ref": "definitions/errors/error.yaml"
|
|
|
|
"$ref": "definitions/errors/error.yaml"
|
|
|
|
tags:
|
|
|
|
tags:
|
|
|
|
- User data
|
|
|
|
- User data
|
|
|
|
|
|
|
|
"/account/3pid/delete":
|
|
|
|
|
|
|
|
post:
|
|
|
|
|
|
|
|
summary: Deletes a third party identifier from the user's account
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
Removes a third party identifier from the user's account. This might not
|
|
|
|
|
|
|
|
cause an unbind of the identifier from the identity service.
|
|
|
|
|
|
|
|
operationId: delete3pidFromAccount
|
|
|
|
|
|
|
|
security:
|
|
|
|
|
|
|
|
- accessToken: []
|
|
|
|
|
|
|
|
parameters:
|
|
|
|
|
|
|
|
- in: body
|
|
|
|
|
|
|
|
name: body
|
|
|
|
|
|
|
|
schema:
|
|
|
|
|
|
|
|
type: object
|
|
|
|
|
|
|
|
properties:
|
|
|
|
|
|
|
|
medium:
|
|
|
|
|
|
|
|
type: string
|
|
|
|
|
|
|
|
description: The medium of the third party identifier being removed.
|
|
|
|
|
|
|
|
enum: ["email", "msisdn"]
|
|
|
|
|
|
|
|
example: "email"
|
|
|
|
|
|
|
|
address:
|
|
|
|
|
|
|
|
type: string
|
|
|
|
|
|
|
|
description: The third party address being removed.
|
|
|
|
|
|
|
|
example: "example@domain.com"
|
|
|
|
|
|
|
|
required: ['medium', 'address']
|
|
|
|
|
|
|
|
responses:
|
|
|
|
|
|
|
|
200:
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
The homeserver has disassociated the third party identifier from the
|
|
|
|
|
|
|
|
user.
|
|
|
|
|
|
|
|
schema:
|
|
|
|
|
|
|
|
type: object
|
|
|
|
|
|
|
|
properties: {}
|
|
|
|
|
|
|
|
tags:
|
|
|
|
|
|
|
|
- User data
|
|
|
|
"/account/3pid/email/requestToken":
|
|
|
|
"/account/3pid/email/requestToken":
|
|
|
|
post:
|
|
|
|
post:
|
|
|
|
summary: Requests a validation token be sent to the given email address for the purpose of adding an email address to an account
|
|
|
|
summary: Requests a validation token be sent to the given email address for the purpose of adding an email address to an account
|
|
|
|