Skip to content

Commit db3d62f

Browse files
committed
update with new spec changes
1 parent 15c95cd commit db3d62f

23 files changed

Lines changed: 120 additions & 131 deletions

.openapi-generator/FILES

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ docs/AsyncLookupRequest.md
2424
docs/BlockedWebhook.md
2525
docs/BridgeCompleteCallback.md
2626
docs/BridgeTargetCompleteCallback.md
27+
docs/BrtcError.md
28+
docs/BrtcErrorResponse.md
29+
docs/BrtcErrorSource.md
30+
docs/BrtcLink.md
2731
docs/BusinessEntityTypeEnum.md
2832
docs/BusinessRegistrationTypeEnum.md
2933
docs/CallDirectionEnum.md
@@ -80,11 +84,7 @@ docs/EndpointStatusEnum.md
8084
docs/EndpointTypeEnum.md
8185
docs/Endpoints.md
8286
docs/EndpointsApi.md
83-
docs/Error.md
84-
docs/Error1.md
85-
docs/Error1Source.md
8687
docs/ErrorObject.md
87-
docs/ErrorResponse.md
8888
docs/ErrorSource.md
8989
docs/FailureWebhook.md
9090
docs/FieldError.md
@@ -100,7 +100,6 @@ docs/InitiateCallback.md
100100
docs/LatestMessageDeliveryStatusEnum.md
101101
docs/LineTypeEnum.md
102102
docs/Link.md
103-
docs/Link1.md
104103
docs/LinkSchema.md
105104
docs/LinksObject.md
106105
docs/ListEndpointsResponse.md
@@ -223,6 +222,7 @@ docs/VoiceApiError.md
223222
docs/VoiceCodeResponse.md
224223
docs/WebhookSubscription.md
225224
docs/WebhookSubscriptionBasicAuthentication.md
225+
docs/WebhookSubscriptionError.md
226226
docs/WebhookSubscriptionRequestSchema.md
227227
docs/WebhookSubscriptionTypeEnum.md
228228
docs/WebhookSubscriptionsListBody.md
@@ -236,6 +236,10 @@ models/async-lookup-request.ts
236236
models/blocked-webhook.ts
237237
models/bridge-complete-callback.ts
238238
models/bridge-target-complete-callback.ts
239+
models/brtc-error-response.ts
240+
models/brtc-error-source.ts
241+
models/brtc-error.ts
242+
models/brtc-link.ts
239243
models/business-entity-type-enum.ts
240244
models/business-registration-type-enum.ts
241245
models/call-direction-enum.ts
@@ -290,10 +294,7 @@ models/endpoint-type-enum.ts
290294
models/endpoint.ts
291295
models/endpoints.ts
292296
models/error-object.ts
293-
models/error-response.ts
294297
models/error-source.ts
295-
models/error1-source.ts
296-
models/error1.ts
297298
models/failure-webhook.ts
298299
models/field-error.ts
299300
models/file-format-enum.ts
@@ -310,7 +311,6 @@ models/latest-message-delivery-status-enum.ts
310311
models/line-type-enum.ts
311312
models/link-schema.ts
312313
models/link.ts
313-
models/link1.ts
314314
models/links-object.ts
315315
models/list-endpoints-response.ts
316316
models/list-message-direction-enum.ts
@@ -337,7 +337,6 @@ models/mfa-request-error.ts
337337
models/mfa-unauthorized-request-error.ts
338338
models/mms-message-content-file.ts
339339
models/mms-message-content.ts
340-
models/model-error.ts
341340
models/multi-channel-action-calendar-event.ts
342341
models/multi-channel-action.ts
343342
models/multi-channel-channel-list-mmsobject.ts
@@ -423,6 +422,7 @@ models/verify-code-response.ts
423422
models/voice-api-error.ts
424423
models/voice-code-response.ts
425424
models/webhook-subscription-basic-authentication.ts
425+
models/webhook-subscription-error.ts
426426
models/webhook-subscription-request-schema.ts
427427
models/webhook-subscription-type-enum.ts
428428
models/webhook-subscription.ts

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ Class | Method | HTTP request | Description
173173
- [BlockedWebhook](docs/BlockedWebhook.md)
174174
- [BridgeCompleteCallback](docs/BridgeCompleteCallback.md)
175175
- [BridgeTargetCompleteCallback](docs/BridgeTargetCompleteCallback.md)
176+
- [BrtcError](docs/BrtcError.md)
177+
- [BrtcErrorResponse](docs/BrtcErrorResponse.md)
178+
- [BrtcErrorSource](docs/BrtcErrorSource.md)
179+
- [BrtcLink](docs/BrtcLink.md)
176180
- [BusinessEntityTypeEnum](docs/BusinessEntityTypeEnum.md)
177181
- [BusinessRegistrationTypeEnum](docs/BusinessRegistrationTypeEnum.md)
178182
- [CallDirectionEnum](docs/CallDirectionEnum.md)
@@ -226,10 +230,7 @@ Class | Method | HTTP request | Description
226230
- [EndpointStatusEnum](docs/EndpointStatusEnum.md)
227231
- [EndpointTypeEnum](docs/EndpointTypeEnum.md)
228232
- [Endpoints](docs/Endpoints.md)
229-
- [Error1](docs/Error1.md)
230-
- [Error1Source](docs/Error1Source.md)
231233
- [ErrorObject](docs/ErrorObject.md)
232-
- [ErrorResponse](docs/ErrorResponse.md)
233234
- [ErrorSource](docs/ErrorSource.md)
234235
- [FailureWebhook](docs/FailureWebhook.md)
235236
- [FieldError](docs/FieldError.md)
@@ -245,7 +246,6 @@ Class | Method | HTTP request | Description
245246
- [LatestMessageDeliveryStatusEnum](docs/LatestMessageDeliveryStatusEnum.md)
246247
- [LineTypeEnum](docs/LineTypeEnum.md)
247248
- [Link](docs/Link.md)
248-
- [Link1](docs/Link1.md)
249249
- [LinkSchema](docs/LinkSchema.md)
250250
- [LinksObject](docs/LinksObject.md)
251251
- [ListEndpointsResponse](docs/ListEndpointsResponse.md)
@@ -273,7 +273,6 @@ Class | Method | HTTP request | Description
273273
- [MfaUnauthorizedRequestError](docs/MfaUnauthorizedRequestError.md)
274274
- [MmsMessageContent](docs/MmsMessageContent.md)
275275
- [MmsMessageContentFile](docs/MmsMessageContentFile.md)
276-
- [ModelError](docs/ModelError.md)
277276
- [MultiChannelAction](docs/MultiChannelAction.md)
278277
- [MultiChannelActionCalendarEvent](docs/MultiChannelActionCalendarEvent.md)
279278
- [MultiChannelChannelListMMSObject](docs/MultiChannelChannelListMMSObject.md)
@@ -360,6 +359,7 @@ Class | Method | HTTP request | Description
360359
- [VoiceCodeResponse](docs/VoiceCodeResponse.md)
361360
- [WebhookSubscription](docs/WebhookSubscription.md)
362361
- [WebhookSubscriptionBasicAuthentication](docs/WebhookSubscriptionBasicAuthentication.md)
362+
- [WebhookSubscriptionError](docs/WebhookSubscriptionError.md)
363363
- [WebhookSubscriptionRequestSchema](docs/WebhookSubscriptionRequestSchema.md)
364364
- [WebhookSubscriptionTypeEnum](docs/WebhookSubscriptionTypeEnum.md)
365365
- [WebhookSubscriptionsListBody](docs/WebhookSubscriptionsListBody.md)

api/endpoints-api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
2222
// @ts-ignore
2323
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
2424
// @ts-ignore
25+
import type { BrtcErrorResponse } from '../models';
26+
// @ts-ignore
2527
import type { CreateEndpointResponse } from '../models';
2628
// @ts-ignore
2729
import type { CreateWebRtcConnectionRequest } from '../models';
@@ -32,8 +34,6 @@ import type { EndpointStatusEnum } from '../models';
3234
// @ts-ignore
3335
import type { EndpointTypeEnum } from '../models';
3436
// @ts-ignore
35-
import type { ErrorResponse } from '../models';
36-
// @ts-ignore
3737
import type { ListEndpointsResponse } from '../models';
3838
/**
3939
* EndpointsApi - axios parameter creator

bandwidth.yml

Lines changed: 43 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -6635,7 +6635,7 @@ components:
66356635
errors:
66366636
type: array
66376637
items:
6638-
$ref: '#/components/schemas/error'
6638+
$ref: '#/components/schemas/webhookSubscriptionError'
66396639
data:
66406640
items:
66416641
$ref: '#/components/schemas/webhookSubscription'
@@ -6661,7 +6661,7 @@ components:
66616661
If more results exist than specified by 'size', this link return the
66626662
last page of result.
66636663
type: string
6664-
error:
6664+
webhookSubscriptionError:
66656665
type: object
66666666
properties:
66676667
code:
@@ -7060,7 +7060,7 @@ components:
70607060
required:
70617061
- eventType
70627062
- eventTime
7063-
link1:
7063+
brtcLink:
70647064
type: object
70657065
properties:
70667066
href:
@@ -7074,10 +7074,6 @@ components:
70747074
example: self
70757075
method:
70767076
type: string
7077-
enum:
7078-
- GET
7079-
- POST
7080-
- DELETE
70817077
description: The HTTP method to use when making the request.
70827078
example: GET
70837079
page:
@@ -7105,7 +7101,7 @@ components:
71057101
example: 0
71067102
required:
71077103
- pageSize
7108-
error1:
7104+
brtcError:
71097105
type: object
71107106
properties:
71117107
id:
@@ -7126,36 +7122,38 @@ components:
71267122
description: A code that uniquely identifies the error.
71277123
example: '404'
71287124
source:
7129-
type: object
7130-
properties:
7131-
parameter:
7132-
type: string
7133-
description: The URI parameter that caused the error.
7134-
example: accountId
7135-
field:
7136-
type: string
7137-
description: The request body field that caused the error.
7138-
example: accountId
7139-
header:
7140-
type: string
7141-
description: The header that caused the error.
7142-
example: Authorization
7143-
reference:
7144-
type: string
7145-
description: >-
7146-
The resource ID or path to the resource (or non-existent
7147-
resource) causing the error.
7148-
example: e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
7125+
$ref: '#/components/schemas/brtcErrorSource'
71497126
required:
71507127
- type
71517128
- description
7129+
brtcErrorSource:
7130+
type: object
7131+
properties:
7132+
parameter:
7133+
type: string
7134+
description: The URI parameter that caused the error.
7135+
example: accountId
7136+
field:
7137+
type: string
7138+
description: The request body field that caused the error.
7139+
example: accountId
7140+
header:
7141+
type: string
7142+
description: The header that caused the error.
7143+
example: Authorization
7144+
reference:
7145+
type: string
7146+
description: >-
7147+
The resource ID or path to the resource (or non-existent resource)
7148+
causing the error.
7149+
example: e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
71527150
listEndpointsResponse:
71537151
type: object
71547152
properties:
71557153
links:
71567154
type: array
71577155
items:
7158-
$ref: '#/components/schemas/link1'
7156+
$ref: '#/components/schemas/brtcLink'
71597157
page:
71607158
$ref: '#/components/schemas/page'
71617159
data:
@@ -7165,7 +7163,7 @@ components:
71657163
errors:
71667164
type: array
71677165
items:
7168-
$ref: '#/components/schemas/error1'
7166+
$ref: '#/components/schemas/brtcError'
71697167
required:
71707168
- links
71717169
- data
@@ -7176,13 +7174,13 @@ components:
71767174
links:
71777175
type: array
71787176
items:
7179-
$ref: '#/components/schemas/link1'
7177+
$ref: '#/components/schemas/brtcLink'
71807178
data:
71817179
$ref: '#/components/schemas/endpoint'
71827180
errors:
71837181
type: array
71847182
items:
7185-
$ref: '#/components/schemas/error1'
7183+
$ref: '#/components/schemas/brtcError'
71867184
required:
71877185
- links
71887186
- data
@@ -7193,32 +7191,32 @@ components:
71937191
links:
71947192
type: array
71957193
items:
7196-
$ref: '#/components/schemas/link1'
7194+
$ref: '#/components/schemas/brtcLink'
71977195
data:
71987196
$ref: '#/components/schemas/createEndpointResponseData'
71997197
errors:
72007198
type: array
72017199
items:
7202-
$ref: '#/components/schemas/error1'
7200+
$ref: '#/components/schemas/brtcError'
72037201
required:
72047202
- links
72057203
- data
72067204
- errors
7207-
errorResponse:
7205+
brtcErrorResponse:
72087206
type: object
72097207
properties:
72107208
links:
72117209
type: array
72127210
items:
7213-
$ref: '#/components/schemas/link1'
7211+
$ref: '#/components/schemas/brtcLink'
72147212
data:
72157213
type: object
72167214
nullable: true
72177215
additionalProperties: false
72187216
errors:
72197217
type: array
72207218
items:
7221-
$ref: '#/components/schemas/error1'
7219+
$ref: '#/components/schemas/brtcError'
72227220
required:
72237221
- links
72247222
- data
@@ -7929,7 +7927,7 @@ components:
79297927
content:
79307928
application/json:
79317929
schema:
7932-
$ref: '#/components/schemas/errorResponse'
7930+
$ref: '#/components/schemas/brtcErrorResponse'
79337931
examples:
79347932
badRequestErrorExample:
79357933
$ref: '#/components/examples/badRequestErrorExample'
@@ -7938,7 +7936,7 @@ components:
79387936
content:
79397937
application/json:
79407938
schema:
7941-
$ref: '#/components/schemas/errorResponse'
7939+
$ref: '#/components/schemas/brtcErrorResponse'
79427940
examples:
79437941
unauthorizedErrorExample:
79447942
$ref: '#/components/examples/unauthorizedErrorExample'
@@ -7947,7 +7945,7 @@ components:
79477945
content:
79487946
application/json:
79497947
schema:
7950-
$ref: '#/components/schemas/errorResponse'
7948+
$ref: '#/components/schemas/brtcErrorResponse'
79517949
examples:
79527950
forbiddenErrorExample:
79537951
$ref: '#/components/examples/forbiddenErrorExample'
@@ -7956,7 +7954,7 @@ components:
79567954
content:
79577955
application/json:
79587956
schema:
7959-
$ref: '#/components/schemas/errorResponse'
7957+
$ref: '#/components/schemas/brtcErrorResponse'
79607958
examples:
79617959
notFoundErrorExample:
79627960
$ref: '#/components/examples/notFoundErrorExample'
@@ -7965,7 +7963,7 @@ components:
79657963
content:
79667964
application/json:
79677965
schema:
7968-
$ref: '#/components/schemas/errorResponse'
7966+
$ref: '#/components/schemas/brtcErrorResponse'
79697967
examples:
79707968
methodNotAllowedErrorExample:
79717969
$ref: '#/components/examples/methodNotAllowedErrorExample'
@@ -7974,7 +7972,7 @@ components:
79747972
content:
79757973
application/json:
79767974
schema:
7977-
$ref: '#/components/schemas/errorResponse'
7975+
$ref: '#/components/schemas/brtcErrorResponse'
79787976
examples:
79797977
unsuppotedMediaTypeErrorExample:
79807978
$ref: '#/components/examples/unsupportedMediaTypeErrorExample'
@@ -7992,7 +7990,7 @@ components:
79927990
content:
79937991
application/json:
79947992
schema:
7995-
$ref: '#/components/schemas/errorResponse'
7993+
$ref: '#/components/schemas/brtcErrorResponse'
79967994
examples:
79977995
tooManyRequestsErrorExample:
79987996
$ref: '#/components/examples/tooManyRequestsErrorExample'
@@ -8001,7 +7999,7 @@ components:
80017999
content:
80028000
application/json:
80038001
schema:
8004-
$ref: '#/components/schemas/errorResponse'
8002+
$ref: '#/components/schemas/brtcErrorResponse'
80058003
examples:
80068004
serviceUnavailableErrorExample:
80078005
$ref: '#/components/examples/serviceUnavailableErrorExample'

0 commit comments

Comments
 (0)