Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit c200fab

Browse files
authored
Auto-merge PR based on merge event
Auto-merging PR based on merge event from upstream repository
2 parents 7fa2b64 + e03639a commit c200fab

File tree

1 file changed

+91
-59
lines changed

1 file changed

+91
-59
lines changed

site/specs/numbers.yml

Lines changed: 91 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,38 +1043,31 @@ components:
10431043
description: Verification callback status of a toll-free phone number.
10441044
required: true
10451045
webhookSubscriptionRequest:
1046-
properties:
1047-
accountId:
1048-
type: string
1049-
basicAuthentication:
1050-
properties:
1051-
password:
1052-
maxLength: 200
1053-
type: string
1054-
username:
1055-
maxLength: 100
1056-
type: string
1057-
required:
1058-
- username
1059-
- password
1060-
type: object
1061-
callbackUrl:
1062-
$ref: '#/components/schemas/webhookUrl'
1063-
createdDate:
1064-
format: date-time
1065-
type: string
1066-
id:
1067-
type: string
1068-
modifiedDate:
1069-
format: date-time
1070-
type: string
1071-
type:
1072-
enum:
1073-
- TOLLFREE_VERIFICATION_STATUS
1074-
type: string
1075-
required:
1076-
- callbackUrl
1077-
type: object
1046+
content:
1047+
application/json:
1048+
schema:
1049+
properties:
1050+
basicAuthentication:
1051+
properties:
1052+
password:
1053+
maxLength: 200
1054+
type: string
1055+
username:
1056+
maxLength: 100
1057+
type: string
1058+
required:
1059+
- username
1060+
- password
1061+
type: object
1062+
callbackUrl:
1063+
$ref: '#/components/schemas/webhookUrl'
1064+
required:
1065+
- callbackUrl
1066+
type: object
1067+
description: >-
1068+
Information about a webhook that Bandwidth should send upon the
1069+
completion of TFV verification.
1070+
required: true
10781071
zipWhipTfvWebhookRequest:
10791072
content:
10801073
application/json:
@@ -1343,21 +1336,21 @@ components:
13431336
content:
13441337
application/json:
13451338
schema:
1346-
$ref: '#/components/requestBodies/webhookSubscriptionRequest'
1339+
$ref: '#/components/schemas/webhookSubscription'
13471340
description: Created
13481341
webhookSubscriptionDeleted:
13491342
description: Deleted
13501343
webhookSubscriptionUpdated:
13511344
content:
13521345
application/json:
13531346
schema:
1354-
$ref: '#/components/requestBodies/webhookSubscriptionRequest'
1347+
$ref: '#/components/schemas/webhookSubscription'
13551348
description: OK
13561349
webhookSubscriptionsList:
13571350
content:
13581351
application/json:
13591352
schema:
1360-
$ref: '#/components/schemas/webhookSubscriptionsApiPage'
1353+
$ref: '#/components/schemas/webhookSubscriptionsListBody'
13611354
description: OK
13621355
schemas:
13631356
A2pClass:
@@ -14268,11 +14261,6 @@ components:
1426814261
verificationRequestId:
1426914262
example: abc-d8569gh
1427014263
type: string
14271-
webhookUrl:
14272-
example: https://your_url.com/webhookService
14273-
pattern: >-
14274-
^$|(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,253}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#()?&//=]*)
14275-
type: string
1427614264
type: object
1427714265
useCase:
1427814266
example: 2FA
@@ -14335,8 +14323,6 @@ components:
1433514323
minLength: 0
1433614324
nullable: false
1433714325
type: string
14338-
webhookUrl:
14339-
$ref: '#/components/schemas/webhookUrl'
1434014326
required:
1434114327
- businessAddress
1434214328
- businessContact
@@ -14369,24 +14355,71 @@ components:
1436914355
status:
1437014356
$ref: '#/components/schemas/tfvCallbackStatus'
1437114357
type: object
14372-
webhookSubscriptionsApiPage:
14358+
webhookSubscription:
1437314359
description: >-
14374-
Object that returns the full list of webhook subscriptions for an
14375-
account.
14360+
Information about a webhook that Bandwidth should send upon the
14361+
completion of TFV verification.
14362+
properties:
14363+
accountId:
14364+
example: '1234567'
14365+
type: string
14366+
basicAuthentication:
14367+
description: >-
14368+
Basic authentication credentials are not required, but if present,
14369+
both username and password must be provided.
14370+
properties:
14371+
password:
14372+
maxLength: 200
14373+
type: string
14374+
username:
14375+
maxLength: 100
14376+
type: string
14377+
required:
14378+
- username
14379+
- password
14380+
type: object
14381+
callbackUrl:
14382+
$ref: '#/components/schemas/webhookUrl'
14383+
createdDate:
14384+
example: '2023-05-15T13:56:39.965Z'
14385+
format: date-time
14386+
type: string
14387+
id:
14388+
example: 7hICGStfAfeGxEq3N0lQwO
14389+
type: string
14390+
modifiedDate:
14391+
example: '2023-05-15T13:56:39.965Z'
14392+
format: date-time
14393+
type: string
14394+
type:
14395+
description: >-
14396+
Currently only one type of webhook is supported for toll-free
14397+
verification, and that is the webhook for the status of a toll-free
14398+
verification request.
14399+
enum:
14400+
- TOLLFREE_VERIFICATION_STATUS
14401+
type: string
14402+
required:
14403+
- callbackUrl
14404+
type: object
14405+
webhookSubscriptionsListBody:
14406+
description: >-
14407+
A list of all webhook subscriptions registered for this account ID for
14408+
this particular feature (unpaginated).
1437614409
properties:
1437714410
data:
1437814411
items:
14379-
$ref: '#/components/requestBodies/webhookSubscriptionRequest'
14412+
$ref: '#/components/schemas/webhookSubscription'
1438014413
type: array
14381-
type: object
14414+
required:
14415+
- data
14416+
type: object
1438214417
webhookUrl:
1438314418
description: >-
14384-
Callback URL to receive status updates from Bandwidth. When this value
14385-
is registered with a validation request, it will be used for that
14386-
request (only) and it cannot be updated after submission. To register a
14387-
callback for all status updates, which can be updated through the API,
14388-
register a webhook subscription (which can also include basic
14389-
authentication credentials).
14419+
Callback URL to receive status updates from Bandwidth. When a webhook
14420+
subscription is registered with Bandwidth under a given account ID, it
14421+
will be used to send status updates for all requests submitted under
14422+
that account ID.
1439014423
example: https://www.example.com/path/to/resource
1439114424
maxLength: 2000
1439214425
minLength: 0
@@ -40152,12 +40185,11 @@ paths:
4015240185
post:
4015340186
description: >-
4015440187
Create a new webhook subscription (this webhook will be called for every
40155-
update on every submission; is is also possible to register a one-time
40156-
callback URL as part of a submission itself). In addition to a
40157-
`callbackUrl`, this subscription can provide HTTP Basic authentication
40158-
credentials (a username and a password). The returned subscription
40159-
object will contain an ID that can be used to modify or delete the
40160-
subscription at a later time.
40188+
update on every submission). In addition to a `callbackUrl`, this
40189+
subscription can provide optional HTTP basic authentication credentials
40190+
(a username and a password). The returned subscription object will
40191+
contain an ID that can be used to modify or delete the subscription at a
40192+
later time.
4016140193
operationId: createWebhookSubscription
4016240194
parameters:
4016340195
- $ref: '#/components/parameters/AccountIdPathParam'

0 commit comments

Comments
 (0)