Skip to content

Commit b345039

Browse files
authored
Add fixture for account.sso_user_add (#873)
1 parent 2c2f9b4 commit b345039

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

content/v2/openapi.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3476,6 +3476,13 @@ components:
34763476
id: 1
34773477
display: Personal
34783478
identifier: [email protected]
3479+
AccountIdentityProvider:
3480+
type: object
3481+
required:
3482+
- organization_identifier
3483+
properties:
3484+
organization_identifier:
3485+
type: string
34793486
AccountInvitation:
34803487
type: object
34813488
required:
@@ -4425,15 +4432,18 @@ components:
44254432
$ref: '#/components/schemas/DateTimeCreatedAt'
44264433
updated_at:
44274434
$ref: '#/components/schemas/DateTimeUpdatedAt'
4428-
EventAccountAddUser:
4435+
EventAccountAddSSOUser:
44294436
type: object
4430-
description: Payload for account.add_user event.
4437+
description: Payload for account.sso_user_add event.
44314438
required:
44324439
- account
4440+
- account_identity_provider
44334441
- user
44344442
properties:
44354443
account:
44364444
$ref: '#/components/schemas/Account'
4445+
account_identity_provider:
4446+
$ref: '#/components/schemas/AccountIdentityProvider'
44374447
user:
44384448
$ref: '#/components/schemas/User'
44394449
EventAccountBillingSettingsUpdate:
@@ -6017,7 +6027,7 @@ components:
60176027
description: The request_identifier attribute is a UUID that provides a way to identify this request. You may use this UUID to ensure a webhook is processed once and only once by keeping a persistent history of the identifiers sent and never handling a webhook which was already processed.
60186028
data:
60196029
anyOf:
6020-
- $ref: '#/components/schemas/EventAccountAddUser'
6030+
- $ref: '#/components/schemas/EventAccountAddSSOUser'
60216031
- $ref: '#/components/schemas/EventAccountBillingSettingsUpdate'
60226032
- $ref: '#/components/schemas/EventAccountInvitationAccept'
60236033
- $ref: '#/components/schemas/EventAccountInvitationCreate'
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
POST /170zjup1 HTTP/1.1
2+
Host: example.com
3+
Accept-Encoding: gzip
4+
Content-Type: application/json
5+
User-Agent: DNSimple-Webhook-Notifier/8fd98a84516b72d5b863b27f93fcbaef61f06c03
6+
Content-Length: 662
7+
Connection: keep-alive
8+
9+
{"data": {"user": {"id": 1111, "email": "[email protected]", "created_at": "2025-09-16T22:12:34Z", "updated_at": "2025-09-18T10:46:19Z"}, "account": {"id": 4, "email": "[email protected]", "created_at": "2025-08-13T23:09:47Z", "updated_at": "2025-08-13T23:10:05Z", "plan_identifier": "teams-v2-monthly"}, "account_identity_provider": {"organization_identifier": "51fae1e9-ce56-4df2-8364-cdab573027aa"}}, "name": "account.sso_user_add", "actor": {"id": "", "entity": "dnsimple", "pretty": "[email protected]"}, "account": {"id": 4, "display": "Personal", "identifier": "xxxxxx"}, "api_version": "v2", "request_identifier": "4aedf8d3-f93d-4a42-99d9-ec20c9349358"}

0 commit comments

Comments
 (0)