From 9b9a0a5f1a113255babe2dc27051520d06ab6163 Mon Sep 17 00:00:00 2001 From: DX-Bandwidth Date: Tue, 21 Apr 2026 14:38:48 +0000 Subject: [PATCH 1/6] Generate SDK with OpenAPI Generator Version --- .openapi-generator/FILES | 6 + Bandwidth.Standard.sln | 10 +- README.md | 3 + api/openapi.yaml | 436 +++++++++++++----- bandwidth.yml | 129 ++++-- docs/Callback.md | 4 +- docs/CreateCall.md | 4 +- docs/CreateEndpointResponse.md | 4 +- docs/EndpointResponse.md | 4 +- docs/EndpointsApi.md | 10 +- docs/Error1.md | 14 + docs/Error1Source.md | 13 + docs/ErrorResponse.md | 4 +- docs/InboundCallback.md | 4 +- docs/InboundCallbackTypeEnum.md | 2 +- docs/Link1.md | 12 + docs/ListEndpointsResponse.md | 4 +- docs/MachineDetectionConfiguration.md | 2 +- docs/MessageRequest.md | 2 +- docs/RbmOpenUrlEnum.md | 2 +- docs/RbmWebViewEnum.md | 2 +- docs/StatusCallback.md | 2 +- docs/UpdateCall.md | 2 +- src/Bandwidth.Standard/Model/CreateCall.cs | 16 +- .../Model/CreateEndpointResponse.cs | 6 +- .../Model/EndpointResponse.cs | 6 +- src/Bandwidth.Standard/Model/Error1.cs | 142 ++++++ src/Bandwidth.Standard/Model/Error1Source.cs | 118 +++++ src/Bandwidth.Standard/Model/ErrorResponse.cs | 6 +- .../Model/InboundCallback.cs | 12 +- .../Model/InboundCallbackTypeEnum.cs | 4 +- src/Bandwidth.Standard/Model/Link1.cs | 133 ++++++ .../Model/ListEndpointsResponse.cs | 6 +- src/Bandwidth.Standard/Model/LookupResult.cs | 6 +- .../Model/MachineDetectionConfiguration.cs | 6 +- .../Model/MessageRequest.cs | 6 +- src/Bandwidth.Standard/Model/RbmActionBase.cs | 2 +- .../Model/RbmOpenUrlEnum.cs | 4 +- .../Model/RbmSuggestionResponse.cs | 2 +- .../Model/RbmWebViewEnum.cs | 4 +- .../Model/StatusCallback.cs | 6 +- src/Bandwidth.Standard/Model/UpdateCall.cs | 10 +- 42 files changed, 934 insertions(+), 236 deletions(-) create mode 100644 docs/Error1.md create mode 100644 docs/Error1Source.md create mode 100644 docs/Link1.md create mode 100644 src/Bandwidth.Standard/Model/Error1.cs create mode 100644 src/Bandwidth.Standard/Model/Error1Source.cs create mode 100644 src/Bandwidth.Standard/Model/Link1.cs diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 15009978..960203b2 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -68,6 +68,8 @@ docs/EndpointTypeEnum.md docs/Endpoints.md docs/EndpointsApi.md docs/Error.md +docs/Error1.md +docs/Error1Source.md docs/ErrorObject.md docs/ErrorResponse.md docs/ErrorSource.md @@ -85,6 +87,7 @@ docs/InitiateCallback.md docs/LatestMessageDeliveryStatusEnum.md docs/LineTypeEnum.md docs/Link.md +docs/Link1.md docs/LinkSchema.md docs/LinksObject.md docs/ListEndpointsResponse.md @@ -306,6 +309,8 @@ src/Bandwidth.Standard/Model/EndpointStatusEnum.cs src/Bandwidth.Standard/Model/EndpointTypeEnum.cs src/Bandwidth.Standard/Model/Endpoints.cs src/Bandwidth.Standard/Model/Error.cs +src/Bandwidth.Standard/Model/Error1.cs +src/Bandwidth.Standard/Model/Error1Source.cs src/Bandwidth.Standard/Model/ErrorObject.cs src/Bandwidth.Standard/Model/ErrorResponse.cs src/Bandwidth.Standard/Model/ErrorSource.cs @@ -323,6 +328,7 @@ src/Bandwidth.Standard/Model/InitiateCallback.cs src/Bandwidth.Standard/Model/LatestMessageDeliveryStatusEnum.cs src/Bandwidth.Standard/Model/LineTypeEnum.cs src/Bandwidth.Standard/Model/Link.cs +src/Bandwidth.Standard/Model/Link1.cs src/Bandwidth.Standard/Model/LinkSchema.cs src/Bandwidth.Standard/Model/LinksObject.cs src/Bandwidth.Standard/Model/ListEndpointsResponse.cs diff --git a/Bandwidth.Standard.sln b/Bandwidth.Standard.sln index 049204ad..97075166 100644 --- a/Bandwidth.Standard.sln +++ b/Bandwidth.Standard.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{5EFE889A-C3DA-4D5A-AD9B-AFA38EF89736}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{17F0839B-80E3-441C-BBD9-682405C4F3C3}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard.Test", "src\Bandwidth.Standard.Test\Bandwidth.Standard.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject @@ -12,10 +12,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {5EFE889A-C3DA-4D5A-AD9B-AFA38EF89736}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {5EFE889A-C3DA-4D5A-AD9B-AFA38EF89736}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5EFE889A-C3DA-4D5A-AD9B-AFA38EF89736}.Release|Any CPU.ActiveCfg = Release|Any CPU - {5EFE889A-C3DA-4D5A-AD9B-AFA38EF89736}.Release|Any CPU.Build.0 = Release|Any CPU + {17F0839B-80E3-441C-BBD9-682405C4F3C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {17F0839B-80E3-441C-BBD9-682405C4F3C3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {17F0839B-80E3-441C-BBD9-682405C4F3C3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {17F0839B-80E3-441C-BBD9-682405C4F3C3}.Release|Any CPU.Build.0 = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/README.md b/README.md index 4e87f13a..295f7310 100644 --- a/README.md +++ b/README.md @@ -236,6 +236,8 @@ Class | Method | HTTP request | Description - [Model.EndpointTypeEnum](docs/EndpointTypeEnum.md) - [Model.Endpoints](docs/Endpoints.md) - [Model.Error](docs/Error.md) + - [Model.Error1](docs/Error1.md) + - [Model.Error1Source](docs/Error1Source.md) - [Model.ErrorObject](docs/ErrorObject.md) - [Model.ErrorResponse](docs/ErrorResponse.md) - [Model.ErrorSource](docs/ErrorSource.md) @@ -253,6 +255,7 @@ Class | Method | HTTP request | Description - [Model.LatestMessageDeliveryStatusEnum](docs/LatestMessageDeliveryStatusEnum.md) - [Model.LineTypeEnum](docs/LineTypeEnum.md) - [Model.Link](docs/Link.md) + - [Model.Link1](docs/Link1.md) - [Model.LinkSchema](docs/LinkSchema.md) - [Model.LinksObject](docs/LinksObject.md) - [Model.ListEndpointsResponse](docs/ListEndpointsResponse.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 1ae72d70..8f4e427b 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -5838,6 +5838,16 @@ paths: schema: $ref: '#/components/schemas/errorResponse' description: Too Many Requests + headers: + Retry-After: + description: The number of seconds the client should wait before making + another request. + explode: false + required: true + schema: + example: 900 + type: integer + style: simple "500": content: application/json: @@ -5944,6 +5954,16 @@ paths: schema: $ref: '#/components/schemas/errorResponse' description: Too Many Requests + headers: + Retry-After: + description: The number of seconds the client should wait before making + another request. + explode: false + required: true + schema: + example: 900 + type: integer + style: simple "500": content: application/json: @@ -6052,6 +6072,16 @@ paths: schema: $ref: '#/components/schemas/errorResponse' description: Too Many Requests + headers: + Retry-After: + description: The number of seconds the client should wait before making + another request. + explode: false + required: true + schema: + example: 900 + type: integer + style: simple "500": content: application/json: @@ -6162,6 +6192,16 @@ paths: schema: $ref: '#/components/schemas/errorResponse' description: Too Many Requests + headers: + Retry-After: + description: The number of seconds the client should wait before making + another request. + explode: false + required: true + schema: + example: 900 + type: integer + style: simple "500": content: application/json: @@ -6271,6 +6311,16 @@ paths: schema: $ref: '#/components/schemas/errorResponse' description: Too Many Requests + headers: + Retry-After: + description: The number of seconds the client should wait before making + another request. + explode: false + required: true + schema: + example: 900 + type: integer + style: simple "500": content: application/json: @@ -6304,13 +6354,15 @@ components: $ref: '#/components/examples/mmsMessageReceivedCallbackExample' schema: $ref: '#/components/schemas/inboundCallback' - description: |- -

This Inbound Message Webhook is an envelope containing either a received (MO) message to your - message-enabled Bandwidth telephone number or a multichannel client's response to a suggestion response - or location request. -

The payload type will be one of message-received, suggestion-response, or location-request-response. -

Note that suggestion-response and location-request-response callback types are pertinent only for RBM messages sent from the /messages/multiChannel endpoint. -

Please visit Webhooks

+ description: "

This Inbound Message Webhook is an envelope containing\ + \ either a received (MO) message to your \nmessage-enabled Bandwidth\ + \ telephone number or a multichannel client's response to a suggestion\ + \ response \nor location request. \n

The payload type will be one\ + \ of message-received, suggestion-response,\ + \ or location-request-response.\n

Note that suggestion-response\ + \ and location-request-response callback types are pertinent\ + \ only for RBM messages sent from the /messages/multiChannel\ + \ endpoint.\n

Please visit Webhooks

" required: true responses: "200": @@ -7112,11 +7164,9 @@ components: links: [] data: null errors: - - id: 59512d87-7a92-4040-8e4a-78fb772019b9 - type: too_many_requests - description: The client has sent too many requests in a given amount of - time. - code: "429" + - type: too_many_endpoints + description: Too many endpoints. Please delete an existing endpoint or wait + 24 hours for an endpoint to be removed. serviceUnavailableErrorExample: summary: Service Unavailable Error Example value: @@ -8897,6 +8947,16 @@ components: schema: $ref: '#/components/schemas/errorResponse' description: Too Many Requests + headers: + Retry-After: + description: The number of seconds the client should wait before making + another request. + explode: false + required: true + schema: + example: 900 + type: integer + style: simple serviceUnavailableErrorResponse: content: application/json: @@ -9291,10 +9351,9 @@ components: format: date-time type: string carrierName: - description: |- - The name of the Authorized Message Provider (AMP) that handled this message. - In the US, this is the carrier that the message was sent to. - This field is present only when this account feature has been enabled. + description: "The name of the Authorized Message Provider (AMP) that handled\ + \ this message. \nIn the US, this is the carrier that the message was sent\ + \ to.\nThis field is present only when this account feature has been enabled." example: AT&T type: string message: @@ -9401,9 +9460,13 @@ components: type: array uniqueItems: true from: - description: |- - Either an alphanumeric sender ID or the sender's Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and linked to the account that is generating the message. - Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore _ and ampersand &. Alphanumeric Sender IDs must contain at least one letter. + description: "Either an alphanumeric sender ID or the sender's Bandwidth\ + \ phone number in E.164 format, which must be hosted within Bandwidth\ + \ and linked to the account that is generating the message. \nAlphanumeric\ + \ Sender IDs can contain up to 11 characters, upper-case letters A-Z,\ + \ lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore\ + \ _ and ampersand &. Alphanumeric Sender IDs must contain at least one\ + \ letter." example: "+15551113333" type: string text: @@ -9633,9 +9696,6 @@ components: type: array type: object link: - example: - rel: rel - href: href properties: rel: type: string @@ -9935,21 +9995,20 @@ components: example: REPLY type: string rbmOpenUrlEnum: - description: |- - Specifies how the URL should be opened on a mobile device. - - `BROWSER` Opens the URL in the device's default browser. If application is not set or the device doesn’t support WebView, this option is used by default. - - `WEBVIEW` Opens the URL in an in-app WebView. + description: "Specifies how the URL should be opened on a mobile device.\n-\ + \ `BROWSER` Opens the URL in the device's default browser. If application\ + \ is not set or the device doesn’t support WebView, this option is used by\ + \ default. \n- `WEBVIEW` Opens the URL in an in-app WebView." enum: - BROWSER - WEBVIEW example: WEBVIEW type: string rbmWebViewEnum: - description: |- - Defines the layout of the WebView on a mobile device. It must be defined when application is set to `WEBVIEW` - - `FULL` WebView takes the full screen. - - `HALF` WebView takes half of the screen. - - `TALL` WebView takes three-quarters of the screen. + description: "Defines the layout of the WebView on a mobile device. It must\ + \ be defined when application is set to `WEBVIEW`\n- `FULL` WebView takes\ + \ the full screen. \n- `HALF` WebView takes half of the screen.\n- `TALL`\ + \ WebView takes three-quarters of the screen." enum: - FULL - HALF @@ -10513,10 +10572,10 @@ components: example: 4405 type: integer carrierName: - description: |- - The name of the Authorized Message Provider (AMP) that handled this message. - In the US, this is the carrier that the message was sent to. - This field is present only when this account feature has been enabled. + description: "The name of the Authorized Message Provider (AMP) that handled\ + \ this message. \nIn the US, this is the carrier that the message was\ + \ sent to.\nThis field is present only when this account feature has been\ + \ enabled." example: AT&T type: string required: @@ -10536,9 +10595,9 @@ components: type: $ref: '#/components/schemas/inboundCallbackTypeEnum' to: - description: | - The destination phone number the message was sent to. - For inbound callbacks, this is the Bandwidth number or alphanumeric identifier that received the message. + description: "The destination phone number the message was sent to. \nFor\ + \ inbound callbacks, this is the Bandwidth number or alphanumeric identifier\ + \ that received the message.\n" example: "+15552223333" type: string description: @@ -10548,10 +10607,10 @@ components: message: $ref: '#/components/schemas/inboundCallbackMessage' carrierName: - description: |- - The name of the Authorized Message Provider (AMP) that handled this message. - In the US, this is the carrier that the message was sent to. - This field is present only when this account feature has been enabled. + description: "The name of the Authorized Message Provider (AMP) that handled\ + \ this message. \nIn the US, this is the carrier that the message was\ + \ sent to.\nThis field is present only when this account feature has been\ + \ enabled." example: AT&T type: string required: @@ -10576,11 +10635,13 @@ components: example: message-delivered type: string inboundCallbackTypeEnum: - description: |- - The possible inbound callback types originating from MO messages or multichannel message client responses: - - `message-received` indicates an MO message from a Bandwidth user's client to a Bandwidth number. - - `request-location-response` indicates a response to a location request sent by the Bandwidth user's client after receiving an RBM message. - - `suggestion-response` indicates a response to a suggestion sent by the Bandwidth user's client after receiving an RBM message. + description: "The possible inbound callback types originating from MO messages\ + \ or multichannel message client responses:\n- `message-received` indicates\ + \ an MO message from a Bandwidth user's client to a Bandwidth number.\n- `request-location-response`\ + \ indicates a response to a location request sent by the Bandwidth user's\ + \ client after receiving an RBM message. \n- `suggestion-response` indicates\ + \ a response to a suggestion sent by the Bandwidth user's client after receiving\ + \ an RBM message." enum: - message-received - request-location-response @@ -10798,10 +10859,10 @@ components: nullable: true type: boolean displayName: - description: |- - The caller display name to use when the call is created. - May not exceed 256 characters nor contain control characters such as new lines. - If `privacy` is true, only the following values are valid: `Restricted`, `Anonymous`, `Private`, or `Unavailable`. + description: "The caller display name to use when the call is created. \n\ + May not exceed 256 characters nor contain control characters such as new\ + \ lines.\nIf `privacy` is true, only the following values are valid: `Restricted`,\ + \ `Anonymous`, `Private`, or `Unavailable`." example: John Doe maxLength: 256 nullable: true @@ -10930,9 +10991,9 @@ components: May be cleared by setting `tag=""` - Max length 256 characters. + Max length 4096 characters. example: arbitrary text here - maxLength: 256 + maxLength: 4096 nullable: true type: string required: @@ -11293,11 +11354,11 @@ components: May be cleared by setting `tag=""`. - Max length 256 characters. + Max length 4096 characters. Not allowed if `state` is `completed`. example: My Custom Tag - maxLength: 256 + maxLength: 4096 nullable: true type: string type: object @@ -11766,9 +11827,9 @@ components: nullable: true type: number machineSpeechEndThreshold: - description: |- - When an answering machine is detected, the amount of silence (in seconds) before assuming the message has finished playing. - If not provided it will default to the speechEndThreshold value. + description: "When an answering machine is detected, the amount of silence\ + \ (in seconds) before assuming the message has finished playing. \nIf\ + \ not provided it will default to the speechEndThreshold value." example: 5 format: double nullable: true @@ -14566,10 +14627,10 @@ components: latestMessageDeliveryStatus: $ref: '#/components/schemas/latestMessageDeliveryStatusEnum' initialMessageDeliveryStatusDate: - description: |- - [DNI-Only](#section/DNI-Only). The date the phone number entered the status described in `latestMessageDeliveryStatus`. - Think of this as the "start time" for that status. - Value resets every time the `latestMessageDeliveryStatus` changes. + description: "[DNI-Only](#section/DNI-Only). The date the phone number entered\ + \ the status described in `latestMessageDeliveryStatus`. \nThink of this\ + \ as the \"start time\" for that status.\nValue resets every time the\ + \ `latestMessageDeliveryStatus` changes." example: 2025-06-20 format: date type: string @@ -16194,6 +16255,29 @@ components: - eventType type: object description: An event that occurred on an endpoint. + link1: + example: + method: GET + rel: self + href: https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + properties: + href: + description: The full URL of the link. + example: https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + type: string + rel: + description: The relationship of the link to the current resource. + example: self + type: string + method: + description: The HTTP method to use when making the request. + enum: + - GET + - POST + - DELETE + example: GET + type: string + type: object page: example: pageNumber: 0 @@ -16224,6 +16308,41 @@ components: required: - pageSize type: object + error1: + example: + code: "404" + description: The requested resource was not found. + id: 59512d87-7a92-4040-8e4a-78fb772019b9 + source: + reference: e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + field: accountId + parameter: accountId + header: Authorization + type: resource.not_found + properties: + id: + description: A unique identifier for the error. + example: 59512d87-7a92-4040-8e4a-78fb772019b9 + format: uuid + type: string + type: + description: The type of error. + example: resource.not_found + type: string + description: + description: A description of the error. + example: The requested resource was not found. + type: string + code: + description: A code that uniquely identifies the error. + example: "404" + type: string + source: + $ref: '#/components/schemas/error1_source' + required: + - description + - type + type: object listEndpointsResponse: example: data: @@ -16240,30 +16359,40 @@ components: type: WEBRTC status: CONNECTED links: - - rel: rel - href: href - - rel: rel - href: href + - method: GET + rel: self + href: https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + - method: GET + rel: self + href: https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 page: pageNumber: 0 totalPages: 10 pageSize: 10 totalElements: 100 errors: - - code: 0 - telephoneNumbers: - - telephoneNumber: telephoneNumber - - telephoneNumber: telephoneNumber - description: description - - code: 0 - telephoneNumbers: - - telephoneNumber: telephoneNumber - - telephoneNumber: telephoneNumber - description: description + - code: "404" + description: The requested resource was not found. + id: 59512d87-7a92-4040-8e4a-78fb772019b9 + source: + reference: e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + field: accountId + parameter: accountId + header: Authorization + type: resource.not_found + - code: "404" + description: The requested resource was not found. + id: 59512d87-7a92-4040-8e4a-78fb772019b9 + source: + reference: e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + field: accountId + parameter: accountId + header: Authorization + type: resource.not_found properties: links: items: - $ref: '#/components/schemas/link' + $ref: '#/components/schemas/link1' type: array page: $ref: '#/components/schemas/page' @@ -16273,7 +16402,7 @@ components: type: array errors: items: - $ref: '#/components/schemas/error' + $ref: '#/components/schemas/error1' type: array required: - data @@ -16299,31 +16428,41 @@ components: type: WEBRTC status: CONNECTED links: - - rel: rel - href: href - - rel: rel - href: href + - method: GET + rel: self + href: https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + - method: GET + rel: self + href: https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 errors: - - code: 0 - telephoneNumbers: - - telephoneNumber: telephoneNumber - - telephoneNumber: telephoneNumber - description: description - - code: 0 - telephoneNumbers: - - telephoneNumber: telephoneNumber - - telephoneNumber: telephoneNumber - description: description + - code: "404" + description: The requested resource was not found. + id: 59512d87-7a92-4040-8e4a-78fb772019b9 + source: + reference: e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + field: accountId + parameter: accountId + header: Authorization + type: resource.not_found + - code: "404" + description: The requested resource was not found. + id: 59512d87-7a92-4040-8e4a-78fb772019b9 + source: + reference: e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + field: accountId + parameter: accountId + header: Authorization + type: resource.not_found properties: links: items: - $ref: '#/components/schemas/link' + $ref: '#/components/schemas/link1' type: array data: $ref: '#/components/schemas/endpoint' errors: items: - $ref: '#/components/schemas/error' + $ref: '#/components/schemas/error1' type: array required: - data @@ -16350,31 +16489,41 @@ components: status: CONNECTED token: xxxxx.yyyyy.zzzzz links: - - rel: rel - href: href - - rel: rel - href: href + - method: GET + rel: self + href: https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + - method: GET + rel: self + href: https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 errors: - - code: 0 - telephoneNumbers: - - telephoneNumber: telephoneNumber - - telephoneNumber: telephoneNumber - description: description - - code: 0 - telephoneNumbers: - - telephoneNumber: telephoneNumber - - telephoneNumber: telephoneNumber - description: description + - code: "404" + description: The requested resource was not found. + id: 59512d87-7a92-4040-8e4a-78fb772019b9 + source: + reference: e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + field: accountId + parameter: accountId + header: Authorization + type: resource.not_found + - code: "404" + description: The requested resource was not found. + id: 59512d87-7a92-4040-8e4a-78fb772019b9 + source: + reference: e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + field: accountId + parameter: accountId + header: Authorization + type: resource.not_found properties: links: items: - $ref: '#/components/schemas/link' + $ref: '#/components/schemas/link1' type: array data: $ref: '#/components/schemas/createEndpointResponseData' errors: items: - $ref: '#/components/schemas/error' + $ref: '#/components/schemas/error1' type: array required: - data @@ -16385,25 +16534,35 @@ components: example: data: "{}" links: - - rel: rel - href: href - - rel: rel - href: href + - method: GET + rel: self + href: https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + - method: GET + rel: self + href: https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 errors: - - code: 0 - telephoneNumbers: - - telephoneNumber: telephoneNumber - - telephoneNumber: telephoneNumber - description: description - - code: 0 - telephoneNumbers: - - telephoneNumber: telephoneNumber - - telephoneNumber: telephoneNumber - description: description + - code: "404" + description: The requested resource was not found. + id: 59512d87-7a92-4040-8e4a-78fb772019b9 + source: + reference: e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + field: accountId + parameter: accountId + header: Authorization + type: resource.not_found + - code: "404" + description: The requested resource was not found. + id: 59512d87-7a92-4040-8e4a-78fb772019b9 + source: + reference: e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + field: accountId + parameter: accountId + header: Authorization + type: resource.not_found properties: links: items: - $ref: '#/components/schemas/link' + $ref: '#/components/schemas/link1' type: array data: additionalProperties: false @@ -16411,7 +16570,7 @@ components: type: object errors: items: - $ref: '#/components/schemas/error' + $ref: '#/components/schemas/error1' type: array required: - data @@ -16579,6 +16738,31 @@ components: - password - username type: object + error1_source: + example: + reference: e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + field: accountId + parameter: accountId + header: Authorization + properties: + parameter: + description: The URI parameter that caused the error. + example: accountId + type: string + field: + description: The request body field that caused the error. + example: accountId + type: string + header: + description: The header that caused the error. + example: Authorization + type: string + reference: + description: The resource ID or path to the resource (or non-existent resource) + causing the error. + example: e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + type: string + type: object securitySchemes: Basic: description: |- diff --git a/bandwidth.yml b/bandwidth.yml index 4378c202..c7105f39 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -2161,7 +2161,7 @@ components: type: string description: >- The name of the Authorized Message Provider (AMP) that handled this - message. + message. In the US, this is the carrier that the message was sent to. @@ -2248,7 +2248,7 @@ components: description: >- Either an alphanumeric sender ID or the sender's Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and - linked to the account that is generating the message. + linked to the account that is generating the message. Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, @@ -2572,7 +2572,7 @@ components: - `BROWSER` Opens the URL in the device's default browser. If application is not set or the device doesn’t support WebView, this - option is used by default. + option is used by default. - `WEBVIEW` Opens the URL in an in-app WebView. enum: @@ -2585,7 +2585,7 @@ components: Defines the layout of the WebView on a mobile device. It must be defined when application is set to `WEBVIEW` - - `FULL` WebView takes the full screen. + - `FULL` WebView takes the full screen. - `HALF` WebView takes half of the screen. @@ -2987,7 +2987,7 @@ components: to: type: string description: > - The destination phone number the message was sent to. + The destination phone number the message was sent to. For inbound callbacks, this is the Bandwidth number or alphanumeric identifier that received the message. @@ -3038,7 +3038,7 @@ components: client to a Bandwidth number. - `request-location-response` indicates a response to a location request - sent by the Bandwidth user's client after receiving an RBM message. + sent by the Bandwidth user's client after receiving an RBM message. - `suggestion-response` indicates a response to a suggestion sent by the Bandwidth user's client after receiving an RBM message. @@ -3277,7 +3277,7 @@ components: nullable: true type: string description: >- - The caller display name to use when the call is created. + The caller display name to use when the call is created. May not exceed 256 characters nor contain control characters such as new lines. @@ -3455,8 +3455,8 @@ components: May be cleared by setting `tag=""` - Max length 256 characters. - maxLength: 256 + Max length 4096 characters. + maxLength: 4096 example: arbitrary text here createCallResponse: type: object @@ -3833,11 +3833,11 @@ components: May be cleared by setting `tag=""`. - Max length 256 characters. + Max length 4096 characters. Not allowed if `state` is `completed`. - maxLength: 256 + maxLength: 4096 example: My Custom Tag updateCallRecording: type: object @@ -4214,7 +4214,7 @@ components: format: double description: >- When an answering machine is detected, the amount of silence (in - seconds) before assuming the message has finished playing. + seconds) before assuming the message has finished playing. If not provided it will default to the speechEndThreshold value. example: 5 @@ -5958,7 +5958,7 @@ components: format: date description: >- [DNI-Only](#section/DNI-Only). The date the phone number entered the - status described in `latestMessageDeliveryStatus`. + status described in `latestMessageDeliveryStatus`. Think of this as the "start time" for that status. @@ -7060,6 +7060,26 @@ components: required: - eventType - eventTime + link1: + type: object + properties: + href: + type: string + description: The full URL of the link. + example: >- + https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + rel: + type: string + description: The relationship of the link to the current resource. + example: self + method: + type: string + enum: + - GET + - POST + - DELETE + description: The HTTP method to use when making the request. + example: GET page: type: object properties: @@ -7085,13 +7105,57 @@ components: example: 0 required: - pageSize + error1: + type: object + properties: + id: + type: string + format: uuid + description: A unique identifier for the error. + example: 59512d87-7a92-4040-8e4a-78fb772019b9 + type: + type: string + description: The type of error. + example: resource.not_found + description: + type: string + description: A description of the error. + example: The requested resource was not found. + code: + type: string + description: A code that uniquely identifies the error. + example: '404' + source: + type: object + properties: + parameter: + type: string + description: The URI parameter that caused the error. + example: accountId + field: + type: string + description: The request body field that caused the error. + example: accountId + header: + type: string + description: The header that caused the error. + example: Authorization + reference: + type: string + description: >- + The resource ID or path to the resource (or non-existent + resource) causing the error. + example: e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + required: + - type + - description listEndpointsResponse: type: object properties: links: type: array items: - $ref: '#/components/schemas/link' + $ref: '#/components/schemas/link1' page: $ref: '#/components/schemas/page' data: @@ -7101,7 +7165,7 @@ components: errors: type: array items: - $ref: '#/components/schemas/error' + $ref: '#/components/schemas/error1' required: - links - data @@ -7112,13 +7176,13 @@ components: links: type: array items: - $ref: '#/components/schemas/link' + $ref: '#/components/schemas/link1' data: $ref: '#/components/schemas/endpoint' errors: type: array items: - $ref: '#/components/schemas/error' + $ref: '#/components/schemas/error1' required: - links - data @@ -7129,13 +7193,13 @@ components: links: type: array items: - $ref: '#/components/schemas/link' + $ref: '#/components/schemas/link1' data: $ref: '#/components/schemas/createEndpointResponseData' errors: type: array items: - $ref: '#/components/schemas/error' + $ref: '#/components/schemas/error1' required: - links - data @@ -7146,7 +7210,7 @@ components: links: type: array items: - $ref: '#/components/schemas/link' + $ref: '#/components/schemas/link1' data: type: object nullable: true @@ -7154,7 +7218,7 @@ components: errors: type: array items: - $ref: '#/components/schemas/error' + $ref: '#/components/schemas/error1' required: - links - data @@ -7916,6 +7980,15 @@ components: $ref: '#/components/examples/unsupportedMediaTypeErrorExample' tooManyRequestsErrorResponse: description: Too Many Requests + headers: + Retry-After: + description: >- + The number of seconds the client should wait before making another + request. + required: true + schema: + type: integer + example: 900 content: application/json: schema: @@ -9137,10 +9210,10 @@ components: links: [] data: null errors: - - id: 59512d87-7a92-4040-8e4a-78fb772019b9 - type: too_many_requests - description: The client has sent too many requests in a given amount of time. - code: '429' + - type: too_many_endpoints + description: >- + Too many endpoints. Please delete an existing endpoint or wait 24 + hours for an endpoint to be removed. serviceUnavailableErrorExample: summary: Service Unavailable Error Example value: @@ -9556,12 +9629,12 @@ components: required: true description: >-

This Inbound Message Webhook is an envelope containing either a - received (MO) message to your + received (MO) message to your message-enabled Bandwidth telephone number or a multichannel - client's response to a suggestion response + client's response to a suggestion response - or location request. + or location request.

The payload type will be one of message-received, suggestion-response, or diff --git a/docs/Callback.md b/docs/Callback.md index 69dc0966..78e9137f 100644 --- a/docs/Callback.md +++ b/docs/Callback.md @@ -8,11 +8,11 @@ Name | Type | Description | Notes **Time** | **DateTime** | | **EventTime** | **DateTime** | Represents the time at which the message was read, for `message-read` callbacks. | [optional] **Type** | **InboundCallbackTypeEnum** | | -**To** | **string** | The destination phone number the message was sent to. For inbound callbacks, this is the Bandwidth number or alphanumeric identifier that received the message. | +**To** | **string** | The destination phone number the message was sent to. For inbound callbacks, this is the Bandwidth number or alphanumeric identifier that received the message. | **Description** | **string** | A detailed description of the event described by the callback. | **Message** | [**InboundCallbackMessage**](InboundCallbackMessage.md) | | **ErrorCode** | **int** | Optional error code, applicable only when type is `message-failed`. | [optional] -**CarrierName** | **string** | The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. | [optional] +**CarrierName** | **string** | The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreateCall.md b/docs/CreateCall.md index 12f482bd..d4438af2 100644 --- a/docs/CreateCall.md +++ b/docs/CreateCall.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **To** | **string** | The destination to call (must be an E.164 formatted number (e.g. `+15555551212`) or a SIP URI (e.g. `sip:user@server.example`)). | **From** | **string** | A Bandwidth phone number on your account the call should come from (must be in E.164 format, like `+15555551212`) even if `privacy` is set to true. | **Privacy** | **bool?** | Hide the calling number. The `displayName` field can be used to customize the displayed name. | [optional] -**DisplayName** | **string** | The caller display name to use when the call is created. May not exceed 256 characters nor contain control characters such as new lines. If `privacy` is true, only the following values are valid: `Restricted`, `Anonymous`, `Private`, or `Unavailable`. | [optional] +**DisplayName** | **string** | The caller display name to use when the call is created. May not exceed 256 characters nor contain control characters such as new lines. If `privacy` is true, only the following values are valid: `Restricted`, `Anonymous`, `Private`, or `Unavailable`. | [optional] **Uui** | **string** | A comma-separated list of 'User-To-User' headers to be sent in the INVITE when calling a SIP URI. Each value must end with an 'encoding' parameter as described in <a href='https://tools.ietf.org/html/rfc7433'>RFC 7433</a>. Only 'jwt', 'base64' and 'hex' encodings are allowed. The entire value cannot exceed 350 characters, including parameters and separators. | [optional] **ApplicationId** | **string** | The id of the application associated with the `from` number. | **AnswerUrl** | **string** | The full URL to send the <a href='/docs/voice/webhooks/answer'>Answer</a> event to when the called party answers. This endpoint should return the first <a href='/docs/voice/bxml'>BXML document</a> to be executed in the call. Must use `https` if specifying `username` and `password`. | @@ -24,7 +24,7 @@ Name | Type | Description | Notes **CallbackTimeout** | **double?** | This is the timeout (in seconds) to use when delivering webhooks for the call. Can be any numeric value (including decimals) between 1 and 25. | [optional] [default to 15D] **MachineDetection** | [**MachineDetectionConfiguration**](MachineDetectionConfiguration.md) | | [optional] **Priority** | **int?** | The priority of this call over other calls from your account. For example, if during a call your application needs to place a new call and bridge it with the current call, you might want to create the call with priority 1 so that it will be the next call picked off your queue, ahead of other less time sensitive calls. A lower value means higher priority, so a priority 1 call takes precedence over a priority 2 call. | [optional] [default to 5] -**Tag** | **string** | A custom string that will be sent with all webhooks for this call unless overwritten by a future <a href='/docs/voice/bxml/tag'>`<Tag>`</a> verb or `tag` attribute on another verb, or cleared. May be cleared by setting `tag=\"\"` Max length 256 characters. | [optional] +**Tag** | **string** | A custom string that will be sent with all webhooks for this call unless overwritten by a future <a href='/docs/voice/bxml/tag'>`<Tag>`</a> verb or `tag` attribute on another verb, or cleared. May be cleared by setting `tag=\"\"` Max length 4096 characters. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreateEndpointResponse.md b/docs/CreateEndpointResponse.md index 2b0c3215..4cb1884a 100644 --- a/docs/CreateEndpointResponse.md +++ b/docs/CreateEndpointResponse.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Links** | [**List<Link>**](Link.md) | | +**Links** | [**List<Link1>**](Link1.md) | | **Data** | [**CreateEndpointResponseData**](CreateEndpointResponseData.md) | | -**Errors** | [**List<Error>**](Error.md) | | +**Errors** | [**List<Error1>**](Error1.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/EndpointResponse.md b/docs/EndpointResponse.md index e304334d..98a0332b 100644 --- a/docs/EndpointResponse.md +++ b/docs/EndpointResponse.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Links** | [**List<Link>**](Link.md) | | +**Links** | [**List<Link1>**](Link1.md) | | **Data** | [**Endpoint**](Endpoint.md) | | -**Errors** | [**List<Error>**](Error.md) | | +**Errors** | [**List<Error1>**](Error1.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/EndpointsApi.md b/docs/EndpointsApi.md index 83d12261..824afb7d 100644 --- a/docs/EndpointsApi.md +++ b/docs/EndpointsApi.md @@ -112,7 +112,7 @@ catch (ApiException e) | **404** | Not Found | - | | **405** | Method Not Allowed | - | | **415** | Unsupported Media Type | - | -| **429** | Too Many Requests | - | +| **429** | Too Many Requests | * Retry-After - The number of seconds the client should wait before making another request.
| | **500** | Service Unavailable | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -215,7 +215,7 @@ void (empty response body) | **404** | Not Found | - | | **405** | Method Not Allowed | - | | **415** | Unsupported Media Type | - | -| **429** | Too Many Requests | - | +| **429** | Too Many Requests | * Retry-After - The number of seconds the client should wait before making another request.
| | **500** | Service Unavailable | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -322,7 +322,7 @@ catch (ApiException e) | **404** | Not Found | - | | **405** | Method Not Allowed | - | | **415** | Unsupported Media Type | - | -| **429** | Too Many Requests | - | +| **429** | Too Many Requests | * Retry-After - The number of seconds the client should wait before making another request.
| | **500** | Service Unavailable | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -435,7 +435,7 @@ catch (ApiException e) | **404** | Not Found | - | | **405** | Method Not Allowed | - | | **415** | Unsupported Media Type | - | -| **429** | Too Many Requests | - | +| **429** | Too Many Requests | * Retry-After - The number of seconds the client should wait before making another request.
| | **500** | Service Unavailable | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -540,7 +540,7 @@ void (empty response body) | **404** | Not Found | - | | **405** | Method Not Allowed | - | | **415** | Unsupported Media Type | - | -| **429** | Too Many Requests | - | +| **429** | Too Many Requests | * Retry-After - The number of seconds the client should wait before making another request.
| | **500** | Service Unavailable | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/Error1.md b/docs/Error1.md new file mode 100644 index 00000000..1ff1322b --- /dev/null +++ b/docs/Error1.md @@ -0,0 +1,14 @@ +# Bandwidth.Standard.Model.Error1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | A unique identifier for the error. | [optional] +**Type** | **string** | The type of error. | +**Description** | **string** | A description of the error. | +**Code** | **string** | A code that uniquely identifies the error. | [optional] +**Source** | [**Error1Source**](Error1Source.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Error1Source.md b/docs/Error1Source.md new file mode 100644 index 00000000..cbb8dfa0 --- /dev/null +++ b/docs/Error1Source.md @@ -0,0 +1,13 @@ +# Bandwidth.Standard.Model.Error1Source + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Parameter** | **string** | The URI parameter that caused the error. | [optional] +**Field** | **string** | The request body field that caused the error. | [optional] +**Header** | **string** | The header that caused the error. | [optional] +**Reference** | **string** | The resource ID or path to the resource (or non-existent resource) causing the error. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ErrorResponse.md b/docs/ErrorResponse.md index ca74313d..38e6e5b9 100644 --- a/docs/ErrorResponse.md +++ b/docs/ErrorResponse.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Links** | [**List<Link>**](Link.md) | | +**Links** | [**List<Link1>**](Link1.md) | | **Data** | **Object** | | -**Errors** | [**List<Error>**](Error.md) | | +**Errors** | [**List<Error1>**](Error1.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InboundCallback.md b/docs/InboundCallback.md index a6249db1..e4f5734e 100644 --- a/docs/InboundCallback.md +++ b/docs/InboundCallback.md @@ -7,10 +7,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Time** | **DateTime** | | **Type** | **InboundCallbackTypeEnum** | | -**To** | **string** | The destination phone number the message was sent to. For inbound callbacks, this is the Bandwidth number or alphanumeric identifier that received the message. | +**To** | **string** | The destination phone number the message was sent to. For inbound callbacks, this is the Bandwidth number or alphanumeric identifier that received the message. | **Description** | **string** | A detailed description of the event described by the callback. | **Message** | [**InboundCallbackMessage**](InboundCallbackMessage.md) | | -**CarrierName** | **string** | The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. | [optional] +**CarrierName** | **string** | The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InboundCallbackTypeEnum.md b/docs/InboundCallbackTypeEnum.md index 987f11ef..03461e35 100644 --- a/docs/InboundCallbackTypeEnum.md +++ b/docs/InboundCallbackTypeEnum.md @@ -1,5 +1,5 @@ # Bandwidth.Standard.Model.InboundCallbackTypeEnum -The possible inbound callback types originating from MO messages or multichannel message client responses: - `message-received` indicates an MO message from a Bandwidth user's client to a Bandwidth number. - `request-location-response` indicates a response to a location request sent by the Bandwidth user's client after receiving an RBM message. - `suggestion-response` indicates a response to a suggestion sent by the Bandwidth user's client after receiving an RBM message. +The possible inbound callback types originating from MO messages or multichannel message client responses: - `message-received` indicates an MO message from a Bandwidth user's client to a Bandwidth number. - `request-location-response` indicates a response to a location request sent by the Bandwidth user's client after receiving an RBM message. - `suggestion-response` indicates a response to a suggestion sent by the Bandwidth user's client after receiving an RBM message. ## Properties diff --git a/docs/Link1.md b/docs/Link1.md new file mode 100644 index 00000000..24542f47 --- /dev/null +++ b/docs/Link1.md @@ -0,0 +1,12 @@ +# Bandwidth.Standard.Model.Link1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | **string** | The full URL of the link. | [optional] +**Rel** | **string** | The relationship of the link to the current resource. | [optional] +**Method** | **string** | The HTTP method to use when making the request. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ListEndpointsResponse.md b/docs/ListEndpointsResponse.md index bc29ba64..bad416b3 100644 --- a/docs/ListEndpointsResponse.md +++ b/docs/ListEndpointsResponse.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Links** | [**List<Link>**](Link.md) | | +**Links** | [**List<Link1>**](Link1.md) | | **Page** | [**Page**](Page.md) | | [optional] **Data** | [**List<Endpoints>**](Endpoints.md) | | -**Errors** | [**List<Error>**](Error.md) | | +**Errors** | [**List<Error1>**](Error1.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/MachineDetectionConfiguration.md b/docs/MachineDetectionConfiguration.md index 8ced340c..79bec22d 100644 --- a/docs/MachineDetectionConfiguration.md +++ b/docs/MachineDetectionConfiguration.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **SilenceTimeout** | **double?** | If no speech is detected in this period, a callback with a 'silence' result is sent. | [optional] [default to 10D] **SpeechThreshold** | **double?** | When speech has ended and a result couldn't be determined based on the audio content itself, this value is used to determine if the speaker is a machine based on the speech duration. If the length of the speech detected is greater than or equal to this threshold, the result will be 'answering-machine'. If the length of speech detected is below this threshold, the result will be 'human'. | [optional] [default to 10D] **SpeechEndThreshold** | **double?** | Amount of silence (in seconds) before assuming the callee has finished speaking. | [optional] [default to 5D] -**MachineSpeechEndThreshold** | **double?** | When an answering machine is detected, the amount of silence (in seconds) before assuming the message has finished playing. If not provided it will default to the speechEndThreshold value. | [optional] +**MachineSpeechEndThreshold** | **double?** | When an answering machine is detected, the amount of silence (in seconds) before assuming the message has finished playing. If not provided it will default to the speechEndThreshold value. | [optional] **DelayResult** | **bool?** | If set to 'true' and if an answering machine is detected, the 'answering-machine' callback will be delayed until the machine is done speaking, or an end of message tone is detected, or until the 'detectionTimeout' is exceeded. If false, the 'answering-machine' result is sent immediately. | [optional] [default to false] **CallbackUrl** | **string** | The URL to send the 'machineDetectionComplete' webhook when the detection is completed. Only for 'async' mode. | [optional] **CallbackMethod** | **CallbackMethodEnum** | | [optional] diff --git a/docs/MessageRequest.md b/docs/MessageRequest.md index 1f61db95..47989f62 100644 --- a/docs/MessageRequest.md +++ b/docs/MessageRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ApplicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | **To** | **List<string>** | The phone number(s) the message should be sent to in E164 format. | -**From** | **string** | Either an alphanumeric sender ID or the sender's Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and linked to the account that is generating the message. Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore _ and ampersand &. Alphanumeric Sender IDs must contain at least one letter. | +**From** | **string** | Either an alphanumeric sender ID or the sender's Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and linked to the account that is generating the message. Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore _ and ampersand &. Alphanumeric Sender IDs must contain at least one letter. | **Text** | **string** | The contents of the text message. Must be 2048 characters or less. | [optional] **Media** | **List<string>** | A list of URLs to include as media attachments as part of the message. Each URL can be at most 4096 characters. | [optional] **Tag** | **string** | A custom string that will be included in callback events of the message. Max 1024 characters. | [optional] diff --git a/docs/RbmOpenUrlEnum.md b/docs/RbmOpenUrlEnum.md index cf4a79ce..fcde391b 100644 --- a/docs/RbmOpenUrlEnum.md +++ b/docs/RbmOpenUrlEnum.md @@ -1,5 +1,5 @@ # Bandwidth.Standard.Model.RbmOpenUrlEnum -Specifies how the URL should be opened on a mobile device. - `BROWSER` Opens the URL in the device's default browser. If application is not set or the device doesn’t support WebView, this option is used by default. - `WEBVIEW` Opens the URL in an in-app WebView. +Specifies how the URL should be opened on a mobile device. - `BROWSER` Opens the URL in the device's default browser. If application is not set or the device doesn’t support WebView, this option is used by default. - `WEBVIEW` Opens the URL in an in-app WebView. ## Properties diff --git a/docs/RbmWebViewEnum.md b/docs/RbmWebViewEnum.md index c59b3be8..ae441a3e 100644 --- a/docs/RbmWebViewEnum.md +++ b/docs/RbmWebViewEnum.md @@ -1,5 +1,5 @@ # Bandwidth.Standard.Model.RbmWebViewEnum -Defines the layout of the WebView on a mobile device. It must be defined when application is set to `WEBVIEW` - `FULL` WebView takes the full screen. - `HALF` WebView takes half of the screen. - `TALL` WebView takes three-quarters of the screen. +Defines the layout of the WebView on a mobile device. It must be defined when application is set to `WEBVIEW` - `FULL` WebView takes the full screen. - `HALF` WebView takes half of the screen. - `TALL` WebView takes three-quarters of the screen. ## Properties diff --git a/docs/StatusCallback.md b/docs/StatusCallback.md index f0290da7..e584abe1 100644 --- a/docs/StatusCallback.md +++ b/docs/StatusCallback.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **Description** | **string** | A detailed description of the event described by the callback. | **Message** | [**StatusCallbackMessage**](StatusCallbackMessage.md) | | **ErrorCode** | **int** | Optional error code, applicable only when type is `message-failed`. | [optional] -**CarrierName** | **string** | The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. | [optional] +**CarrierName** | **string** | The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/UpdateCall.md b/docs/UpdateCall.md index 8e13e5d1..906a8263 100644 --- a/docs/UpdateCall.md +++ b/docs/UpdateCall.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **RedirectFallbackMethod** | **RedirectMethodEnum** | | [optional] **FallbackUsername** | **string** | Basic auth username. | [optional] **FallbackPassword** | **string** | Basic auth password. | [optional] -**Tag** | **string** | A custom string that will be sent with this and all future callbacks unless overwritten by a future `tag` attribute or [`<Tag>`](/docs/voice/bxml/tag) verb, or cleared. May be cleared by setting `tag=\"\"`. Max length 256 characters. Not allowed if `state` is `completed`. | [optional] +**Tag** | **string** | A custom string that will be sent with this and all future callbacks unless overwritten by a future `tag` attribute or [`<Tag>`](/docs/voice/bxml/tag) verb, or cleared. May be cleared by setting `tag=\"\"`. Max length 4096 characters. Not allowed if `state` is `completed`. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/src/Bandwidth.Standard/Model/CreateCall.cs b/src/Bandwidth.Standard/Model/CreateCall.cs index f6d4bb65..ce03c91e 100644 --- a/src/Bandwidth.Standard/Model/CreateCall.cs +++ b/src/Bandwidth.Standard/Model/CreateCall.cs @@ -61,7 +61,7 @@ protected CreateCall() { } /// The destination to call (must be an E.164 formatted number (e.g. `+15555551212`) or a SIP URI (e.g. `sip:user@server.example`)). (required). /// A Bandwidth phone number on your account the call should come from (must be in E.164 format, like `+15555551212`) even if `privacy` is set to true. (required). /// Hide the calling number. The `displayName` field can be used to customize the displayed name.. - /// The caller display name to use when the call is created. May not exceed 256 characters nor contain control characters such as new lines. If `privacy` is true, only the following values are valid: `Restricted`, `Anonymous`, `Private`, or `Unavailable`.. + /// The caller display name to use when the call is created. May not exceed 256 characters nor contain control characters such as new lines. If `privacy` is true, only the following values are valid: `Restricted`, `Anonymous`, `Private`, or `Unavailable`.. /// A comma-separated list of 'User-To-User' headers to be sent in the INVITE when calling a SIP URI. Each value must end with an 'encoding' parameter as described in <a href='https://tools.ietf.org/html/rfc7433'>RFC 7433</a>. Only 'jwt', 'base64' and 'hex' encodings are allowed. The entire value cannot exceed 350 characters, including parameters and separators.. /// The id of the application associated with the `from` number. (required). /// The full URL to send the <a href='/docs/voice/webhooks/answer'>Answer</a> event to when the called party answers. This endpoint should return the first <a href='/docs/voice/bxml'>BXML document</a> to be executed in the call. Must use `https` if specifying `username` and `password`. (required). @@ -78,7 +78,7 @@ protected CreateCall() { } /// This is the timeout (in seconds) to use when delivering webhooks for the call. Can be any numeric value (including decimals) between 1 and 25. (default to 15D). /// machineDetection. /// The priority of this call over other calls from your account. For example, if during a call your application needs to place a new call and bridge it with the current call, you might want to create the call with priority 1 so that it will be the next call picked off your queue, ahead of other less time sensitive calls. A lower value means higher priority, so a priority 1 call takes precedence over a priority 2 call. (default to 5). - /// A custom string that will be sent with all webhooks for this call unless overwritten by a future <a href='/docs/voice/bxml/tag'>`<Tag>`</a> verb or `tag` attribute on another verb, or cleared. May be cleared by setting `tag=\"\"` Max length 256 characters.. + /// A custom string that will be sent with all webhooks for this call unless overwritten by a future <a href='/docs/voice/bxml/tag'>`<Tag>`</a> verb or `tag` attribute on another verb, or cleared. May be cleared by setting `tag=\"\"` Max length 4096 characters.. public CreateCall(string to = default(string), string from = default(string), bool? privacy = default(bool?), string displayName = default(string), string uui = default(string), string applicationId = default(string), string answerUrl = default(string), CallbackMethodEnum? answerMethod = default(CallbackMethodEnum?), string username = default(string), string password = default(string), string answerFallbackUrl = default(string), CallbackMethodEnum? answerFallbackMethod = default(CallbackMethodEnum?), string fallbackUsername = default(string), string fallbackPassword = default(string), string disconnectUrl = default(string), CallbackMethodEnum? disconnectMethod = default(CallbackMethodEnum?), double? callTimeout = 30D, double? callbackTimeout = 15D, MachineDetectionConfiguration machineDetection = default(MachineDetectionConfiguration), int? priority = 5, string tag = default(string)) { // to ensure "to" is required (not null) @@ -152,9 +152,9 @@ protected CreateCall() { } public bool? Privacy { get; set; } ///

- /// The caller display name to use when the call is created. May not exceed 256 characters nor contain control characters such as new lines. If `privacy` is true, only the following values are valid: `Restricted`, `Anonymous`, `Private`, or `Unavailable`. + /// The caller display name to use when the call is created. May not exceed 256 characters nor contain control characters such as new lines. If `privacy` is true, only the following values are valid: `Restricted`, `Anonymous`, `Private`, or `Unavailable`. /// - /// The caller display name to use when the call is created. May not exceed 256 characters nor contain control characters such as new lines. If `privacy` is true, only the following values are valid: `Restricted`, `Anonymous`, `Private`, or `Unavailable`. + /// The caller display name to use when the call is created. May not exceed 256 characters nor contain control characters such as new lines. If `privacy` is true, only the following values are valid: `Restricted`, `Anonymous`, `Private`, or `Unavailable`. /// John Doe [DataMember(Name = "displayName", EmitDefaultValue = true)] public string DisplayName { get; set; } @@ -262,9 +262,9 @@ protected CreateCall() { } public int? Priority { get; set; } /// - /// A custom string that will be sent with all webhooks for this call unless overwritten by a future <a href='/docs/voice/bxml/tag'>`<Tag>`</a> verb or `tag` attribute on another verb, or cleared. May be cleared by setting `tag=\"\"` Max length 256 characters. + /// A custom string that will be sent with all webhooks for this call unless overwritten by a future <a href='/docs/voice/bxml/tag'>`<Tag>`</a> verb or `tag` attribute on another verb, or cleared. May be cleared by setting `tag=\"\"` Max length 4096 characters. /// - /// A custom string that will be sent with all webhooks for this call unless overwritten by a future <a href='/docs/voice/bxml/tag'>`<Tag>`</a> verb or `tag` attribute on another verb, or cleared. May be cleared by setting `tag=\"\"` Max length 256 characters. + /// A custom string that will be sent with all webhooks for this call unless overwritten by a future <a href='/docs/voice/bxml/tag'>`<Tag>`</a> verb or `tag` attribute on another verb, or cleared. May be cleared by setting `tag=\"\"` Max length 4096 characters. /// arbitrary text here [DataMember(Name = "tag", EmitDefaultValue = true)] public string Tag { get; set; } @@ -403,9 +403,9 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } // Tag (string) maxLength - if (this.Tag != null && this.Tag.Length > 256) + if (this.Tag != null && this.Tag.Length > 4096) { - yield return new ValidationResult("Invalid value for Tag, length must be less than 256.", new [] { "Tag" }); + yield return new ValidationResult("Invalid value for Tag, length must be less than 4096.", new [] { "Tag" }); } yield break; diff --git a/src/Bandwidth.Standard/Model/CreateEndpointResponse.cs b/src/Bandwidth.Standard/Model/CreateEndpointResponse.cs index 71c7437f..f677c764 100644 --- a/src/Bandwidth.Standard/Model/CreateEndpointResponse.cs +++ b/src/Bandwidth.Standard/Model/CreateEndpointResponse.cs @@ -43,7 +43,7 @@ protected CreateEndpointResponse() { } /// links (required). /// data (required). /// errors (required). - public CreateEndpointResponse(List links = default(List), CreateEndpointResponseData data = default(CreateEndpointResponseData), List errors = default(List)) + public CreateEndpointResponse(List links = default(List), CreateEndpointResponseData data = default(CreateEndpointResponseData), List errors = default(List)) { // to ensure "links" is required (not null) if (links == null) @@ -69,7 +69,7 @@ protected CreateEndpointResponse() { } /// Gets or Sets Links /// [DataMember(Name = "links", IsRequired = true, EmitDefaultValue = true)] - public List Links { get; set; } + public List Links { get; set; } /// /// Gets or Sets Data @@ -81,7 +81,7 @@ protected CreateEndpointResponse() { } /// Gets or Sets Errors /// [DataMember(Name = "errors", IsRequired = true, EmitDefaultValue = true)] - public List Errors { get; set; } + public List Errors { get; set; } /// /// Returns the string presentation of the object diff --git a/src/Bandwidth.Standard/Model/EndpointResponse.cs b/src/Bandwidth.Standard/Model/EndpointResponse.cs index 967013f9..95ee2b38 100644 --- a/src/Bandwidth.Standard/Model/EndpointResponse.cs +++ b/src/Bandwidth.Standard/Model/EndpointResponse.cs @@ -43,7 +43,7 @@ protected EndpointResponse() { } /// links (required). /// data (required). /// errors (required). - public EndpointResponse(List links = default(List), Endpoint data = default(Endpoint), List errors = default(List)) + public EndpointResponse(List links = default(List), Endpoint data = default(Endpoint), List errors = default(List)) { // to ensure "links" is required (not null) if (links == null) @@ -69,7 +69,7 @@ protected EndpointResponse() { } /// Gets or Sets Links /// [DataMember(Name = "links", IsRequired = true, EmitDefaultValue = true)] - public List Links { get; set; } + public List Links { get; set; } /// /// Gets or Sets Data @@ -81,7 +81,7 @@ protected EndpointResponse() { } /// Gets or Sets Errors /// [DataMember(Name = "errors", IsRequired = true, EmitDefaultValue = true)] - public List Errors { get; set; } + public List Errors { get; set; } /// /// Returns the string presentation of the object diff --git a/src/Bandwidth.Standard/Model/Error1.cs b/src/Bandwidth.Standard/Model/Error1.cs new file mode 100644 index 00000000..fce526cd --- /dev/null +++ b/src/Bandwidth.Standard/Model/Error1.cs @@ -0,0 +1,142 @@ +/* + * Bandwidth + * + * Bandwidth's Communication APIs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: letstalk@bandwidth.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Bandwidth.Standard.Client.OpenAPIDateConverter; + +namespace Bandwidth.Standard.Model +{ + /// + /// Error1 + /// + [DataContract(Name = "error1")] + public partial class Error1 : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Error1() { } + /// + /// Initializes a new instance of the class. + /// + /// A unique identifier for the error.. + /// The type of error. (required). + /// A description of the error. (required). + /// A code that uniquely identifies the error.. + /// source. + public Error1(Guid id = default(Guid), string type = default(string), string description = default(string), string code = default(string), Error1Source source = default(Error1Source)) + { + // to ensure "type" is required (not null) + if (type == null) + { + throw new ArgumentNullException("type is a required property for Error1 and cannot be null"); + } + this.Type = type; + // to ensure "description" is required (not null) + if (description == null) + { + throw new ArgumentNullException("description is a required property for Error1 and cannot be null"); + } + this.Description = description; + this.Id = id; + this.Code = code; + this.Source = source; + } + + /// + /// A unique identifier for the error. + /// + /// A unique identifier for the error. + /// 59512d87-7a92-4040-8e4a-78fb772019b9 + [DataMember(Name = "id", EmitDefaultValue = false)] + public Guid Id { get; set; } + + /// + /// The type of error. + /// + /// The type of error. + /// resource.not_found + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public string Type { get; set; } + + /// + /// A description of the error. + /// + /// A description of the error. + /// The requested resource was not found. + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// A code that uniquely identifies the error. + /// + /// A code that uniquely identifies the error. + /// 404 + [DataMember(Name = "code", EmitDefaultValue = false)] + public string Code { get; set; } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", EmitDefaultValue = false)] + public Error1Source Source { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Error1 {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/Bandwidth.Standard/Model/Error1Source.cs b/src/Bandwidth.Standard/Model/Error1Source.cs new file mode 100644 index 00000000..e89ebb26 --- /dev/null +++ b/src/Bandwidth.Standard/Model/Error1Source.cs @@ -0,0 +1,118 @@ +/* + * Bandwidth + * + * Bandwidth's Communication APIs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: letstalk@bandwidth.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Bandwidth.Standard.Client.OpenAPIDateConverter; + +namespace Bandwidth.Standard.Model +{ + /// + /// Error1Source + /// + [DataContract(Name = "error1_source")] + public partial class Error1Source : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The URI parameter that caused the error.. + /// The request body field that caused the error.. + /// The header that caused the error.. + /// The resource ID or path to the resource (or non-existent resource) causing the error.. + public Error1Source(string varParameter = default(string), string field = default(string), string header = default(string), string reference = default(string)) + { + this.Parameter = varParameter; + this.Field = field; + this.Header = header; + this.Reference = reference; + } + + /// + /// The URI parameter that caused the error. + /// + /// The URI parameter that caused the error. + /// accountId + [DataMember(Name = "parameter", EmitDefaultValue = false)] + public string Parameter { get; set; } + + /// + /// The request body field that caused the error. + /// + /// The request body field that caused the error. + /// accountId + [DataMember(Name = "field", EmitDefaultValue = false)] + public string Field { get; set; } + + /// + /// The header that caused the error. + /// + /// The header that caused the error. + /// Authorization + [DataMember(Name = "header", EmitDefaultValue = false)] + public string Header { get; set; } + + /// + /// The resource ID or path to the resource (or non-existent resource) causing the error. + /// + /// The resource ID or path to the resource (or non-existent resource) causing the error. + /// e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + [DataMember(Name = "reference", EmitDefaultValue = false)] + public string Reference { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Error1Source {\n"); + sb.Append(" Parameter: ").Append(Parameter).Append("\n"); + sb.Append(" Field: ").Append(Field).Append("\n"); + sb.Append(" Header: ").Append(Header).Append("\n"); + sb.Append(" Reference: ").Append(Reference).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/Bandwidth.Standard/Model/ErrorResponse.cs b/src/Bandwidth.Standard/Model/ErrorResponse.cs index bbd18219..3160cb85 100644 --- a/src/Bandwidth.Standard/Model/ErrorResponse.cs +++ b/src/Bandwidth.Standard/Model/ErrorResponse.cs @@ -43,7 +43,7 @@ protected ErrorResponse() { } /// links (required). /// data (required). /// errors (required). - public ErrorResponse(List links = default(List), Object data = default(Object), List errors = default(List)) + public ErrorResponse(List links = default(List), Object data = default(Object), List errors = default(List)) { // to ensure "links" is required (not null) if (links == null) @@ -69,7 +69,7 @@ protected ErrorResponse() { } /// Gets or Sets Links /// [DataMember(Name = "links", IsRequired = true, EmitDefaultValue = true)] - public List Links { get; set; } + public List Links { get; set; } /// /// Gets or Sets Data @@ -81,7 +81,7 @@ protected ErrorResponse() { } /// Gets or Sets Errors /// [DataMember(Name = "errors", IsRequired = true, EmitDefaultValue = true)] - public List Errors { get; set; } + public List Errors { get; set; } /// /// Returns the string presentation of the object diff --git a/src/Bandwidth.Standard/Model/InboundCallback.cs b/src/Bandwidth.Standard/Model/InboundCallback.cs index ae27ca20..52d59a0d 100644 --- a/src/Bandwidth.Standard/Model/InboundCallback.cs +++ b/src/Bandwidth.Standard/Model/InboundCallback.cs @@ -48,10 +48,10 @@ protected InboundCallback() { } /// /// time (required). /// type (required). - /// The destination phone number the message was sent to. For inbound callbacks, this is the Bandwidth number or alphanumeric identifier that received the message. (required). + /// The destination phone number the message was sent to. For inbound callbacks, this is the Bandwidth number or alphanumeric identifier that received the message. (required). /// A detailed description of the event described by the callback. (required). /// message (required). - /// The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled.. + /// The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled.. public InboundCallback(DateTime time = default(DateTime), InboundCallbackTypeEnum type = default(InboundCallbackTypeEnum), string to = default(string), string description = default(string), InboundCallbackMessage message = default(InboundCallbackMessage), string carrierName = default(string)) { this.Time = time; @@ -85,9 +85,9 @@ protected InboundCallback() { } public DateTime Time { get; set; } /// - /// The destination phone number the message was sent to. For inbound callbacks, this is the Bandwidth number or alphanumeric identifier that received the message. + /// The destination phone number the message was sent to. For inbound callbacks, this is the Bandwidth number or alphanumeric identifier that received the message. /// - /// The destination phone number the message was sent to. For inbound callbacks, this is the Bandwidth number or alphanumeric identifier that received the message. + /// The destination phone number the message was sent to. For inbound callbacks, this is the Bandwidth number or alphanumeric identifier that received the message. /// +15552223333 [DataMember(Name = "to", IsRequired = true, EmitDefaultValue = true)] public string To { get; set; } @@ -107,9 +107,9 @@ protected InboundCallback() { } public InboundCallbackMessage Message { get; set; } /// - /// The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. + /// The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. /// - /// The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. + /// The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. /// AT&T [DataMember(Name = "carrierName", EmitDefaultValue = false)] public string CarrierName { get; set; } diff --git a/src/Bandwidth.Standard/Model/InboundCallbackTypeEnum.cs b/src/Bandwidth.Standard/Model/InboundCallbackTypeEnum.cs index 5e39ce34..2afba5be 100644 --- a/src/Bandwidth.Standard/Model/InboundCallbackTypeEnum.cs +++ b/src/Bandwidth.Standard/Model/InboundCallbackTypeEnum.cs @@ -27,9 +27,9 @@ namespace Bandwidth.Standard.Model { /// - /// The possible inbound callback types originating from MO messages or multichannel message client responses: - `message-received` indicates an MO message from a Bandwidth user's client to a Bandwidth number. - `request-location-response` indicates a response to a location request sent by the Bandwidth user's client after receiving an RBM message. - `suggestion-response` indicates a response to a suggestion sent by the Bandwidth user's client after receiving an RBM message. + /// The possible inbound callback types originating from MO messages or multichannel message client responses: - `message-received` indicates an MO message from a Bandwidth user's client to a Bandwidth number. - `request-location-response` indicates a response to a location request sent by the Bandwidth user's client after receiving an RBM message. - `suggestion-response` indicates a response to a suggestion sent by the Bandwidth user's client after receiving an RBM message. /// - /// The possible inbound callback types originating from MO messages or multichannel message client responses: - `message-received` indicates an MO message from a Bandwidth user's client to a Bandwidth number. - `request-location-response` indicates a response to a location request sent by the Bandwidth user's client after receiving an RBM message. - `suggestion-response` indicates a response to a suggestion sent by the Bandwidth user's client after receiving an RBM message. + /// The possible inbound callback types originating from MO messages or multichannel message client responses: - `message-received` indicates an MO message from a Bandwidth user's client to a Bandwidth number. - `request-location-response` indicates a response to a location request sent by the Bandwidth user's client after receiving an RBM message. - `suggestion-response` indicates a response to a suggestion sent by the Bandwidth user's client after receiving an RBM message. [JsonConverter(typeof(StringEnumConverter))] public enum InboundCallbackTypeEnum { diff --git a/src/Bandwidth.Standard/Model/Link1.cs b/src/Bandwidth.Standard/Model/Link1.cs new file mode 100644 index 00000000..8e861fb3 --- /dev/null +++ b/src/Bandwidth.Standard/Model/Link1.cs @@ -0,0 +1,133 @@ +/* + * Bandwidth + * + * Bandwidth's Communication APIs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: letstalk@bandwidth.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Bandwidth.Standard.Client.OpenAPIDateConverter; + +namespace Bandwidth.Standard.Model +{ + /// + /// Link1 + /// + [DataContract(Name = "link1")] + public partial class Link1 : IValidatableObject + { + /// + /// The HTTP method to use when making the request. + /// + /// The HTTP method to use when making the request. + [JsonConverter(typeof(StringEnumConverter))] + public enum MethodEnum + { + /// + /// Enum GET for value: GET + /// + [EnumMember(Value = "GET")] + GET = 1, + + /// + /// Enum POST for value: POST + /// + [EnumMember(Value = "POST")] + POST = 2, + + /// + /// Enum DELETE for value: DELETE + /// + [EnumMember(Value = "DELETE")] + DELETE = 3 + } + + + /// + /// The HTTP method to use when making the request. + /// + /// The HTTP method to use when making the request. + /// GET + [DataMember(Name = "method", EmitDefaultValue = false)] + public MethodEnum? Method { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The full URL of the link.. + /// The relationship of the link to the current resource.. + /// The HTTP method to use when making the request.. + public Link1(string href = default(string), string rel = default(string), MethodEnum? method = default(MethodEnum?)) + { + this.Href = href; + this.Rel = rel; + this.Method = method; + } + + /// + /// The full URL of the link. + /// + /// The full URL of the link. + /// https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + [DataMember(Name = "href", EmitDefaultValue = false)] + public string Href { get; set; } + + /// + /// The relationship of the link to the current resource. + /// + /// The relationship of the link to the current resource. + /// self + [DataMember(Name = "rel", EmitDefaultValue = false)] + public string Rel { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Link1 {\n"); + sb.Append(" Href: ").Append(Href).Append("\n"); + sb.Append(" Rel: ").Append(Rel).Append("\n"); + sb.Append(" Method: ").Append(Method).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/Bandwidth.Standard/Model/ListEndpointsResponse.cs b/src/Bandwidth.Standard/Model/ListEndpointsResponse.cs index c1f321f1..3bdfc963 100644 --- a/src/Bandwidth.Standard/Model/ListEndpointsResponse.cs +++ b/src/Bandwidth.Standard/Model/ListEndpointsResponse.cs @@ -44,7 +44,7 @@ protected ListEndpointsResponse() { } /// page. /// data (required). /// errors (required). - public ListEndpointsResponse(List links = default(List), Page page = default(Page), List data = default(List), List errors = default(List)) + public ListEndpointsResponse(List links = default(List), Page page = default(Page), List data = default(List), List errors = default(List)) { // to ensure "links" is required (not null) if (links == null) @@ -71,7 +71,7 @@ protected ListEndpointsResponse() { } /// Gets or Sets Links /// [DataMember(Name = "links", IsRequired = true, EmitDefaultValue = true)] - public List Links { get; set; } + public List Links { get; set; } /// /// Gets or Sets Page @@ -89,7 +89,7 @@ protected ListEndpointsResponse() { } /// Gets or Sets Errors /// [DataMember(Name = "errors", IsRequired = true, EmitDefaultValue = true)] - public List Errors { get; set; } + public List Errors { get; set; } /// /// Returns the string presentation of the object diff --git a/src/Bandwidth.Standard/Model/LookupResult.cs b/src/Bandwidth.Standard/Model/LookupResult.cs index 59ca935e..effa52d9 100644 --- a/src/Bandwidth.Standard/Model/LookupResult.cs +++ b/src/Bandwidth.Standard/Model/LookupResult.cs @@ -129,10 +129,10 @@ public partial class LookupResult : IValidatableObject public string DeactivationDate { get; set; } /// - /// [DNI-Only](#section/DNI-Only). The date the phone number entered the status described in `latestMessageDeliveryStatus`. Think of this as the \"start time\" for that status. Value resets every time the `latestMessageDeliveryStatus` changes. + /// [DNI-Only](#section/DNI-Only). The date the phone number entered the status described in `latestMessageDeliveryStatus`. Think of this as the \"start time\" for that status. Value resets every time the `latestMessageDeliveryStatus` changes. /// - /// [DNI-Only](#section/DNI-Only). The date the phone number entered the status described in `latestMessageDeliveryStatus`. Think of this as the \"start time\" for that status. Value resets every time the `latestMessageDeliveryStatus` changes. - /// Thu Jun 19 20:00:00 EDT 2025 + /// [DNI-Only](#section/DNI-Only). The date the phone number entered the status described in `latestMessageDeliveryStatus`. Think of this as the \"start time\" for that status. Value resets every time the `latestMessageDeliveryStatus` changes. + /// Fri Jun 20 00:00:00 UTC 2025 [DataMember(Name = "initialMessageDeliveryStatusDate", EmitDefaultValue = false)] [JsonConverter(typeof(OpenAPIDateConverter))] public DateTime InitialMessageDeliveryStatusDate { get; set; } diff --git a/src/Bandwidth.Standard/Model/MachineDetectionConfiguration.cs b/src/Bandwidth.Standard/Model/MachineDetectionConfiguration.cs index f16f5ce8..013b2945 100644 --- a/src/Bandwidth.Standard/Model/MachineDetectionConfiguration.cs +++ b/src/Bandwidth.Standard/Model/MachineDetectionConfiguration.cs @@ -58,7 +58,7 @@ public partial class MachineDetectionConfiguration : IValidatableObject /// If no speech is detected in this period, a callback with a 'silence' result is sent. (default to 10D). /// When speech has ended and a result couldn't be determined based on the audio content itself, this value is used to determine if the speaker is a machine based on the speech duration. If the length of the speech detected is greater than or equal to this threshold, the result will be 'answering-machine'. If the length of speech detected is below this threshold, the result will be 'human'. (default to 10D). /// Amount of silence (in seconds) before assuming the callee has finished speaking. (default to 5D). - /// When an answering machine is detected, the amount of silence (in seconds) before assuming the message has finished playing. If not provided it will default to the speechEndThreshold value.. + /// When an answering machine is detected, the amount of silence (in seconds) before assuming the message has finished playing. If not provided it will default to the speechEndThreshold value.. /// If set to 'true' and if an answering machine is detected, the 'answering-machine' callback will be delayed until the machine is done speaking, or an end of message tone is detected, or until the 'detectionTimeout' is exceeded. If false, the 'answering-machine' result is sent immediately. (default to false). /// The URL to send the 'machineDetectionComplete' webhook when the detection is completed. Only for 'async' mode.. /// callbackMethod. @@ -125,9 +125,9 @@ public partial class MachineDetectionConfiguration : IValidatableObject public double? SpeechEndThreshold { get; set; } /// - /// When an answering machine is detected, the amount of silence (in seconds) before assuming the message has finished playing. If not provided it will default to the speechEndThreshold value. + /// When an answering machine is detected, the amount of silence (in seconds) before assuming the message has finished playing. If not provided it will default to the speechEndThreshold value. /// - /// When an answering machine is detected, the amount of silence (in seconds) before assuming the message has finished playing. If not provided it will default to the speechEndThreshold value. + /// When an answering machine is detected, the amount of silence (in seconds) before assuming the message has finished playing. If not provided it will default to the speechEndThreshold value. /// 5 [DataMember(Name = "machineSpeechEndThreshold", EmitDefaultValue = true)] public double? MachineSpeechEndThreshold { get; set; } diff --git a/src/Bandwidth.Standard/Model/MessageRequest.cs b/src/Bandwidth.Standard/Model/MessageRequest.cs index 942eff90..0ba0cd76 100644 --- a/src/Bandwidth.Standard/Model/MessageRequest.cs +++ b/src/Bandwidth.Standard/Model/MessageRequest.cs @@ -48,7 +48,7 @@ protected MessageRequest() { } /// /// The ID of the Application your from number or senderId is associated with in the Bandwidth App. (required). /// The phone number(s) the message should be sent to in E164 format. (required). - /// Either an alphanumeric sender ID or the sender's Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and linked to the account that is generating the message. Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore _ and ampersand &. Alphanumeric Sender IDs must contain at least one letter. (required). + /// Either an alphanumeric sender ID or the sender's Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and linked to the account that is generating the message. Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore _ and ampersand &. Alphanumeric Sender IDs must contain at least one letter. (required). /// The contents of the text message. Must be 2048 characters or less.. /// A list of URLs to include as media attachments as part of the message. Each URL can be at most 4096 characters.. /// A custom string that will be included in callback events of the message. Max 1024 characters.. @@ -98,9 +98,9 @@ protected MessageRequest() { } public List To { get; set; } /// - /// Either an alphanumeric sender ID or the sender's Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and linked to the account that is generating the message. Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore _ and ampersand &. Alphanumeric Sender IDs must contain at least one letter. + /// Either an alphanumeric sender ID or the sender's Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and linked to the account that is generating the message. Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore _ and ampersand &. Alphanumeric Sender IDs must contain at least one letter. /// - /// Either an alphanumeric sender ID or the sender's Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and linked to the account that is generating the message. Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore _ and ampersand &. Alphanumeric Sender IDs must contain at least one letter. + /// Either an alphanumeric sender ID or the sender's Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and linked to the account that is generating the message. Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore _ and ampersand &. Alphanumeric Sender IDs must contain at least one letter. /// +15551113333 [DataMember(Name = "from", IsRequired = true, EmitDefaultValue = true)] public string From { get; set; } diff --git a/src/Bandwidth.Standard/Model/RbmActionBase.cs b/src/Bandwidth.Standard/Model/RbmActionBase.cs index f5088316..77f972c3 100644 --- a/src/Bandwidth.Standard/Model/RbmActionBase.cs +++ b/src/Bandwidth.Standard/Model/RbmActionBase.cs @@ -78,7 +78,7 @@ protected RbmActionBase() { } /// Base64 payload the customer receives when the reply is clicked. /// /// Base64 payload the customer receives when the reply is clicked. - /// [B@4745bcc6 + /// [B@3ffe74da [DataMember(Name = "postbackData", IsRequired = true, EmitDefaultValue = true)] public byte[] PostbackData { get; set; } diff --git a/src/Bandwidth.Standard/Model/RbmOpenUrlEnum.cs b/src/Bandwidth.Standard/Model/RbmOpenUrlEnum.cs index fe53b7e3..e3f94f13 100644 --- a/src/Bandwidth.Standard/Model/RbmOpenUrlEnum.cs +++ b/src/Bandwidth.Standard/Model/RbmOpenUrlEnum.cs @@ -27,9 +27,9 @@ namespace Bandwidth.Standard.Model { /// - /// Specifies how the URL should be opened on a mobile device. - `BROWSER` Opens the URL in the device's default browser. If application is not set or the device doesn’t support WebView, this option is used by default. - `WEBVIEW` Opens the URL in an in-app WebView. + /// Specifies how the URL should be opened on a mobile device. - `BROWSER` Opens the URL in the device's default browser. If application is not set or the device doesn’t support WebView, this option is used by default. - `WEBVIEW` Opens the URL in an in-app WebView. /// - /// Specifies how the URL should be opened on a mobile device. - `BROWSER` Opens the URL in the device's default browser. If application is not set or the device doesn’t support WebView, this option is used by default. - `WEBVIEW` Opens the URL in an in-app WebView. + /// Specifies how the URL should be opened on a mobile device. - `BROWSER` Opens the URL in the device's default browser. If application is not set or the device doesn’t support WebView, this option is used by default. - `WEBVIEW` Opens the URL in an in-app WebView. [JsonConverter(typeof(StringEnumConverter))] public enum RbmOpenUrlEnum { diff --git a/src/Bandwidth.Standard/Model/RbmSuggestionResponse.cs b/src/Bandwidth.Standard/Model/RbmSuggestionResponse.cs index d345d48b..33557207 100644 --- a/src/Bandwidth.Standard/Model/RbmSuggestionResponse.cs +++ b/src/Bandwidth.Standard/Model/RbmSuggestionResponse.cs @@ -55,7 +55,7 @@ public partial class RbmSuggestionResponse : IValidatableObject /// Base64 payload the customer receives when the reply is clicked. /// /// Base64 payload the customer receives when the reply is clicked. - /// [B@4745bcc6 + /// [B@3ffe74da [DataMember(Name = "postbackData", EmitDefaultValue = false)] public byte[] PostbackData { get; set; } diff --git a/src/Bandwidth.Standard/Model/RbmWebViewEnum.cs b/src/Bandwidth.Standard/Model/RbmWebViewEnum.cs index e082dd9e..76dc5047 100644 --- a/src/Bandwidth.Standard/Model/RbmWebViewEnum.cs +++ b/src/Bandwidth.Standard/Model/RbmWebViewEnum.cs @@ -27,9 +27,9 @@ namespace Bandwidth.Standard.Model { /// - /// Defines the layout of the WebView on a mobile device. It must be defined when application is set to `WEBVIEW` - `FULL` WebView takes the full screen. - `HALF` WebView takes half of the screen. - `TALL` WebView takes three-quarters of the screen. + /// Defines the layout of the WebView on a mobile device. It must be defined when application is set to `WEBVIEW` - `FULL` WebView takes the full screen. - `HALF` WebView takes half of the screen. - `TALL` WebView takes three-quarters of the screen. /// - /// Defines the layout of the WebView on a mobile device. It must be defined when application is set to `WEBVIEW` - `FULL` WebView takes the full screen. - `HALF` WebView takes half of the screen. - `TALL` WebView takes three-quarters of the screen. + /// Defines the layout of the WebView on a mobile device. It must be defined when application is set to `WEBVIEW` - `FULL` WebView takes the full screen. - `HALF` WebView takes half of the screen. - `TALL` WebView takes three-quarters of the screen. [JsonConverter(typeof(StringEnumConverter))] public enum RbmWebViewEnum { diff --git a/src/Bandwidth.Standard/Model/StatusCallback.cs b/src/Bandwidth.Standard/Model/StatusCallback.cs index 0c08f5ce..71c7922e 100644 --- a/src/Bandwidth.Standard/Model/StatusCallback.cs +++ b/src/Bandwidth.Standard/Model/StatusCallback.cs @@ -53,7 +53,7 @@ protected StatusCallback() { } /// A detailed description of the event described by the callback. (required). /// message (required). /// Optional error code, applicable only when type is `message-failed`.. - /// The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled.. + /// The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled.. public StatusCallback(DateTime time = default(DateTime), DateTime eventTime = default(DateTime), StatusCallbackTypeEnum type = default(StatusCallbackTypeEnum), string to = default(string), string description = default(string), StatusCallbackMessage message = default(StatusCallbackMessage), int errorCode = default(int), string carrierName = default(string)) { this.Time = time; @@ -127,9 +127,9 @@ protected StatusCallback() { } public int ErrorCode { get; set; } /// - /// The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. + /// The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. /// - /// The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. + /// The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. /// AT&T [DataMember(Name = "carrierName", EmitDefaultValue = false)] public string CarrierName { get; set; } diff --git a/src/Bandwidth.Standard/Model/UpdateCall.cs b/src/Bandwidth.Standard/Model/UpdateCall.cs index 3911111c..a61ff29b 100644 --- a/src/Bandwidth.Standard/Model/UpdateCall.cs +++ b/src/Bandwidth.Standard/Model/UpdateCall.cs @@ -62,7 +62,7 @@ public partial class UpdateCall : IValidatableObject /// redirectFallbackMethod. /// Basic auth username.. /// Basic auth password.. - /// A custom string that will be sent with this and all future callbacks unless overwritten by a future `tag` attribute or [`<Tag>`](/docs/voice/bxml/tag) verb, or cleared. May be cleared by setting `tag=\"\"`. Max length 256 characters. Not allowed if `state` is `completed`.. + /// A custom string that will be sent with this and all future callbacks unless overwritten by a future `tag` attribute or [`<Tag>`](/docs/voice/bxml/tag) verb, or cleared. May be cleared by setting `tag=\"\"`. Max length 4096 characters. Not allowed if `state` is `completed`.. public UpdateCall(CallStateEnum? state = default(CallStateEnum?), string redirectUrl = default(string), RedirectMethodEnum? redirectMethod = default(RedirectMethodEnum?), string username = default(string), string password = default(string), string redirectFallbackUrl = default(string), RedirectMethodEnum? redirectFallbackMethod = default(RedirectMethodEnum?), string fallbackUsername = default(string), string fallbackPassword = default(string), string tag = default(string)) { this.State = state; @@ -126,9 +126,9 @@ public partial class UpdateCall : IValidatableObject public string FallbackPassword { get; set; } /// - /// A custom string that will be sent with this and all future callbacks unless overwritten by a future `tag` attribute or [`<Tag>`](/docs/voice/bxml/tag) verb, or cleared. May be cleared by setting `tag=\"\"`. Max length 256 characters. Not allowed if `state` is `completed`. + /// A custom string that will be sent with this and all future callbacks unless overwritten by a future `tag` attribute or [`<Tag>`](/docs/voice/bxml/tag) verb, or cleared. May be cleared by setting `tag=\"\"`. Max length 4096 characters. Not allowed if `state` is `completed`. /// - /// A custom string that will be sent with this and all future callbacks unless overwritten by a future `tag` attribute or [`<Tag>`](/docs/voice/bxml/tag) verb, or cleared. May be cleared by setting `tag=\"\"`. Max length 256 characters. Not allowed if `state` is `completed`. + /// A custom string that will be sent with this and all future callbacks unless overwritten by a future `tag` attribute or [`<Tag>`](/docs/voice/bxml/tag) verb, or cleared. May be cleared by setting `tag=\"\"`. Max length 4096 characters. Not allowed if `state` is `completed`. /// My Custom Tag [DataMember(Name = "tag", EmitDefaultValue = true)] public string Tag { get; set; } @@ -196,9 +196,9 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } // Tag (string) maxLength - if (this.Tag != null && this.Tag.Length > 256) + if (this.Tag != null && this.Tag.Length > 4096) { - yield return new ValidationResult("Invalid value for Tag, length must be less than 256.", new [] { "Tag" }); + yield return new ValidationResult("Invalid value for Tag, length must be less than 4096.", new [] { "Tag" }); } yield break; From 7984da61edc9a19787dd828229c33c649fd084bc Mon Sep 17 00:00:00 2001 From: ckoegel Date: Wed, 22 Apr 2026 16:50:42 -0400 Subject: [PATCH 2/6] regenerate with updated specs --- .openapi-generator/FILES | 20 +- Bandwidth.Standard.sln | 10 +- README.md | 10 +- api/openapi.yaml | 284 +++++++++--------- bandwidth.yml | 114 ++++--- docs/{Error1.md => BrtcError.md} | 4 +- ...{ErrorResponse.md => BrtcErrorResponse.md} | 6 +- docs/{Error1Source.md => BrtcErrorSource.md} | 2 +- docs/{Link1.md => BrtcLink.md} | 2 +- docs/Callback.md | 4 +- docs/CreateCall.md | 2 +- docs/CreateEndpointResponse.md | 4 +- docs/EndpointResponse.md | 4 +- docs/InboundCallback.md | 4 +- docs/InboundCallbackTypeEnum.md | 2 +- docs/ListEndpointsResponse.md | 4 +- docs/LookupResult.md | 2 +- docs/MachineDetectionConfiguration.md | 2 +- docs/MessageRequest.md | 2 +- docs/RbmOpenUrlEnum.md | 2 +- docs/RbmWebViewEnum.md | 2 +- docs/StatusCallback.md | 2 +- .../{Error.md => WebhookSubscriptionError.md} | 2 +- docs/WebhookSubscriptionsListBody.md | 2 +- .../Model/{Error1.cs => BrtcError.cs} | 22 +- ...{ErrorResponse.cs => BrtcErrorResponse.cs} | 26 +- .../{Error1Source.cs => BrtcErrorSource.cs} | 12 +- .../Model/{Link1.cs => BrtcLink.cs} | 54 +--- src/Bandwidth.Standard/Model/CreateCall.cs | 6 +- .../Model/CreateEndpointResponse.cs | 6 +- .../Model/EndpointResponse.cs | 6 +- .../Model/InboundCallback.cs | 12 +- .../Model/InboundCallbackTypeEnum.cs | 4 +- .../Model/ListEndpointsResponse.cs | 6 +- src/Bandwidth.Standard/Model/LookupResult.cs | 10 +- .../Model/MachineDetectionConfiguration.cs | 6 +- .../Model/MessageRequest.cs | 6 +- src/Bandwidth.Standard/Model/RbmActionBase.cs | 2 +- .../Model/RbmOpenUrlEnum.cs | 4 +- .../Model/RbmSuggestionResponse.cs | 2 +- .../Model/RbmWebViewEnum.cs | 4 +- .../Model/StatusCallback.cs | 6 +- .../{Error.cs => WebhookSubscriptionError.cs} | 12 +- .../Model/WebhookSubscriptionsListBody.cs | 4 +- 44 files changed, 332 insertions(+), 370 deletions(-) rename docs/{Error1.md => BrtcError.md} (83%) rename docs/{ErrorResponse.md => BrtcErrorResponse.md} (64%) rename docs/{Error1Source.md => BrtcErrorSource.md} (93%) rename docs/{Link1.md => BrtcLink.md} (93%) rename docs/{Error.md => WebhookSubscriptionError.md} (89%) rename src/Bandwidth.Standard/Model/{Error1.cs => BrtcError.cs} (86%) rename src/Bandwidth.Standard/Model/{ErrorResponse.cs => BrtcErrorResponse.cs} (80%) rename src/Bandwidth.Standard/Model/{Error1Source.cs => BrtcErrorSource.cs} (90%) rename src/Bandwidth.Standard/Model/{Link1.cs => BrtcLink.cs} (74%) rename src/Bandwidth.Standard/Model/{Error.cs => WebhookSubscriptionError.cs} (86%) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 960203b2..6043157a 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -10,6 +10,10 @@ docs/AsyncLookupRequest.md docs/BlockedWebhook.md docs/BridgeCompleteCallback.md docs/BridgeTargetCompleteCallback.md +docs/BrtcError.md +docs/BrtcErrorResponse.md +docs/BrtcErrorSource.md +docs/BrtcLink.md docs/BusinessEntityTypeEnum.md docs/BusinessRegistrationTypeEnum.md docs/CallDirectionEnum.md @@ -67,11 +71,7 @@ docs/EndpointStatusEnum.md docs/EndpointTypeEnum.md docs/Endpoints.md docs/EndpointsApi.md -docs/Error.md -docs/Error1.md -docs/Error1Source.md docs/ErrorObject.md -docs/ErrorResponse.md docs/ErrorSource.md docs/FailureWebhook.md docs/FieldError.md @@ -87,7 +87,6 @@ docs/InitiateCallback.md docs/LatestMessageDeliveryStatusEnum.md docs/LineTypeEnum.md docs/Link.md -docs/Link1.md docs/LinkSchema.md docs/LinksObject.md docs/ListEndpointsResponse.md @@ -210,6 +209,7 @@ docs/VoiceApiError.md docs/VoiceCodeResponse.md docs/WebhookSubscription.md docs/WebhookSubscriptionBasicAuthentication.md +docs/WebhookSubscriptionError.md docs/WebhookSubscriptionRequestSchema.md docs/WebhookSubscriptionTypeEnum.md docs/WebhookSubscriptionsListBody.md @@ -254,6 +254,10 @@ src/Bandwidth.Standard/Model/AsyncLookupRequest.cs src/Bandwidth.Standard/Model/BlockedWebhook.cs src/Bandwidth.Standard/Model/BridgeCompleteCallback.cs src/Bandwidth.Standard/Model/BridgeTargetCompleteCallback.cs +src/Bandwidth.Standard/Model/BrtcError.cs +src/Bandwidth.Standard/Model/BrtcErrorResponse.cs +src/Bandwidth.Standard/Model/BrtcErrorSource.cs +src/Bandwidth.Standard/Model/BrtcLink.cs src/Bandwidth.Standard/Model/BusinessEntityTypeEnum.cs src/Bandwidth.Standard/Model/BusinessRegistrationTypeEnum.cs src/Bandwidth.Standard/Model/CallDirectionEnum.cs @@ -308,11 +312,7 @@ src/Bandwidth.Standard/Model/EndpointResponse.cs src/Bandwidth.Standard/Model/EndpointStatusEnum.cs src/Bandwidth.Standard/Model/EndpointTypeEnum.cs src/Bandwidth.Standard/Model/Endpoints.cs -src/Bandwidth.Standard/Model/Error.cs -src/Bandwidth.Standard/Model/Error1.cs -src/Bandwidth.Standard/Model/Error1Source.cs src/Bandwidth.Standard/Model/ErrorObject.cs -src/Bandwidth.Standard/Model/ErrorResponse.cs src/Bandwidth.Standard/Model/ErrorSource.cs src/Bandwidth.Standard/Model/FailureWebhook.cs src/Bandwidth.Standard/Model/FieldError.cs @@ -328,7 +328,6 @@ src/Bandwidth.Standard/Model/InitiateCallback.cs src/Bandwidth.Standard/Model/LatestMessageDeliveryStatusEnum.cs src/Bandwidth.Standard/Model/LineTypeEnum.cs src/Bandwidth.Standard/Model/Link.cs -src/Bandwidth.Standard/Model/Link1.cs src/Bandwidth.Standard/Model/LinkSchema.cs src/Bandwidth.Standard/Model/LinksObject.cs src/Bandwidth.Standard/Model/ListEndpointsResponse.cs @@ -442,6 +441,7 @@ src/Bandwidth.Standard/Model/VoiceApiError.cs src/Bandwidth.Standard/Model/VoiceCodeResponse.cs src/Bandwidth.Standard/Model/WebhookSubscription.cs src/Bandwidth.Standard/Model/WebhookSubscriptionBasicAuthentication.cs +src/Bandwidth.Standard/Model/WebhookSubscriptionError.cs src/Bandwidth.Standard/Model/WebhookSubscriptionRequestSchema.cs src/Bandwidth.Standard/Model/WebhookSubscriptionTypeEnum.cs src/Bandwidth.Standard/Model/WebhookSubscriptionsListBody.cs diff --git a/Bandwidth.Standard.sln b/Bandwidth.Standard.sln index 97075166..ae1c15eb 100644 --- a/Bandwidth.Standard.sln +++ b/Bandwidth.Standard.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{17F0839B-80E3-441C-BBD9-682405C4F3C3}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{4268749C-D05D-457A-8EA1-94E9360E51F7}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard.Test", "src\Bandwidth.Standard.Test\Bandwidth.Standard.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject @@ -12,10 +12,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {17F0839B-80E3-441C-BBD9-682405C4F3C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {17F0839B-80E3-441C-BBD9-682405C4F3C3}.Debug|Any CPU.Build.0 = Debug|Any CPU - {17F0839B-80E3-441C-BBD9-682405C4F3C3}.Release|Any CPU.ActiveCfg = Release|Any CPU - {17F0839B-80E3-441C-BBD9-682405C4F3C3}.Release|Any CPU.Build.0 = Release|Any CPU + {4268749C-D05D-457A-8EA1-94E9360E51F7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4268749C-D05D-457A-8EA1-94E9360E51F7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4268749C-D05D-457A-8EA1-94E9360E51F7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4268749C-D05D-457A-8EA1-94E9360E51F7}.Release|Any CPU.Build.0 = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/README.md b/README.md index 295f7310..70cbdf89 100644 --- a/README.md +++ b/README.md @@ -181,6 +181,10 @@ Class | Method | HTTP request | Description - [Model.BlockedWebhook](docs/BlockedWebhook.md) - [Model.BridgeCompleteCallback](docs/BridgeCompleteCallback.md) - [Model.BridgeTargetCompleteCallback](docs/BridgeTargetCompleteCallback.md) + - [Model.BrtcError](docs/BrtcError.md) + - [Model.BrtcErrorResponse](docs/BrtcErrorResponse.md) + - [Model.BrtcErrorSource](docs/BrtcErrorSource.md) + - [Model.BrtcLink](docs/BrtcLink.md) - [Model.BusinessEntityTypeEnum](docs/BusinessEntityTypeEnum.md) - [Model.BusinessRegistrationTypeEnum](docs/BusinessRegistrationTypeEnum.md) - [Model.CallDirectionEnum](docs/CallDirectionEnum.md) @@ -235,11 +239,7 @@ Class | Method | HTTP request | Description - [Model.EndpointStatusEnum](docs/EndpointStatusEnum.md) - [Model.EndpointTypeEnum](docs/EndpointTypeEnum.md) - [Model.Endpoints](docs/Endpoints.md) - - [Model.Error](docs/Error.md) - - [Model.Error1](docs/Error1.md) - - [Model.Error1Source](docs/Error1Source.md) - [Model.ErrorObject](docs/ErrorObject.md) - - [Model.ErrorResponse](docs/ErrorResponse.md) - [Model.ErrorSource](docs/ErrorSource.md) - [Model.FailureWebhook](docs/FailureWebhook.md) - [Model.FieldError](docs/FieldError.md) @@ -255,7 +255,6 @@ Class | Method | HTTP request | Description - [Model.LatestMessageDeliveryStatusEnum](docs/LatestMessageDeliveryStatusEnum.md) - [Model.LineTypeEnum](docs/LineTypeEnum.md) - [Model.Link](docs/Link.md) - - [Model.Link1](docs/Link1.md) - [Model.LinkSchema](docs/LinkSchema.md) - [Model.LinksObject](docs/LinksObject.md) - [Model.ListEndpointsResponse](docs/ListEndpointsResponse.md) @@ -369,6 +368,7 @@ Class | Method | HTTP request | Description - [Model.VoiceCodeResponse](docs/VoiceCodeResponse.md) - [Model.WebhookSubscription](docs/WebhookSubscription.md) - [Model.WebhookSubscriptionBasicAuthentication](docs/WebhookSubscriptionBasicAuthentication.md) + - [Model.WebhookSubscriptionError](docs/WebhookSubscriptionError.md) - [Model.WebhookSubscriptionRequestSchema](docs/WebhookSubscriptionRequestSchema.md) - [Model.WebhookSubscriptionTypeEnum](docs/WebhookSubscriptionTypeEnum.md) - [Model.WebhookSubscriptionsListBody](docs/WebhookSubscriptionsListBody.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 8f4e427b..ded6022d 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -5782,7 +5782,7 @@ paths: badRequestErrorExample: $ref: '#/components/examples/badRequestErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Bad Request "401": content: @@ -5791,7 +5791,7 @@ paths: unauthorizedErrorExample: $ref: '#/components/examples/unauthorizedErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Unauthorized "403": content: @@ -5800,7 +5800,7 @@ paths: forbiddenErrorExample: $ref: '#/components/examples/forbiddenErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Forbidden "404": content: @@ -5809,7 +5809,7 @@ paths: notFoundErrorExample: $ref: '#/components/examples/notFoundErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Not Found "405": content: @@ -5818,7 +5818,7 @@ paths: methodNotAllowedErrorExample: $ref: '#/components/examples/methodNotAllowedErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Method Not Allowed "415": content: @@ -5827,7 +5827,7 @@ paths: unsuppotedMediaTypeErrorExample: $ref: '#/components/examples/unsupportedMediaTypeErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Unsupported Media Type "429": content: @@ -5836,7 +5836,7 @@ paths: tooManyRequestsErrorExample: $ref: '#/components/examples/tooManyRequestsErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Too Many Requests headers: Retry-After: @@ -5855,7 +5855,7 @@ paths: serviceUnavailableErrorExample: $ref: '#/components/examples/serviceUnavailableErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Service Unavailable summary: List Endpoints tags: @@ -5898,7 +5898,7 @@ paths: badRequestErrorExample: $ref: '#/components/examples/badRequestErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Bad Request "401": content: @@ -5907,7 +5907,7 @@ paths: unauthorizedErrorExample: $ref: '#/components/examples/unauthorizedErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Unauthorized "403": content: @@ -5916,7 +5916,7 @@ paths: forbiddenErrorExample: $ref: '#/components/examples/forbiddenErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Forbidden "404": content: @@ -5925,7 +5925,7 @@ paths: notFoundErrorExample: $ref: '#/components/examples/notFoundErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Not Found "405": content: @@ -5934,7 +5934,7 @@ paths: methodNotAllowedErrorExample: $ref: '#/components/examples/methodNotAllowedErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Method Not Allowed "415": content: @@ -5943,7 +5943,7 @@ paths: unsuppotedMediaTypeErrorExample: $ref: '#/components/examples/unsupportedMediaTypeErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Unsupported Media Type "429": content: @@ -5952,7 +5952,7 @@ paths: tooManyRequestsErrorExample: $ref: '#/components/examples/tooManyRequestsErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Too Many Requests headers: Retry-After: @@ -5971,7 +5971,7 @@ paths: serviceUnavailableErrorExample: $ref: '#/components/examples/serviceUnavailableErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Service Unavailable summary: Create Endpoint tags: @@ -6016,7 +6016,7 @@ paths: badRequestErrorExample: $ref: '#/components/examples/badRequestErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Bad Request "401": content: @@ -6025,7 +6025,7 @@ paths: unauthorizedErrorExample: $ref: '#/components/examples/unauthorizedErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Unauthorized "403": content: @@ -6034,7 +6034,7 @@ paths: forbiddenErrorExample: $ref: '#/components/examples/forbiddenErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Forbidden "404": content: @@ -6043,7 +6043,7 @@ paths: notFoundErrorExample: $ref: '#/components/examples/notFoundErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Not Found "405": content: @@ -6052,7 +6052,7 @@ paths: methodNotAllowedErrorExample: $ref: '#/components/examples/methodNotAllowedErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Method Not Allowed "415": content: @@ -6061,7 +6061,7 @@ paths: unsuppotedMediaTypeErrorExample: $ref: '#/components/examples/unsupportedMediaTypeErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Unsupported Media Type "429": content: @@ -6070,7 +6070,7 @@ paths: tooManyRequestsErrorExample: $ref: '#/components/examples/tooManyRequestsErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Too Many Requests headers: Retry-After: @@ -6089,7 +6089,7 @@ paths: serviceUnavailableErrorExample: $ref: '#/components/examples/serviceUnavailableErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Service Unavailable summary: Delete Endpoint tags: @@ -6136,7 +6136,7 @@ paths: badRequestErrorExample: $ref: '#/components/examples/badRequestErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Bad Request "401": content: @@ -6145,7 +6145,7 @@ paths: unauthorizedErrorExample: $ref: '#/components/examples/unauthorizedErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Unauthorized "403": content: @@ -6154,7 +6154,7 @@ paths: forbiddenErrorExample: $ref: '#/components/examples/forbiddenErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Forbidden "404": content: @@ -6163,7 +6163,7 @@ paths: notFoundErrorExample: $ref: '#/components/examples/notFoundErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Not Found "405": content: @@ -6172,7 +6172,7 @@ paths: methodNotAllowedErrorExample: $ref: '#/components/examples/methodNotAllowedErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Method Not Allowed "415": content: @@ -6181,7 +6181,7 @@ paths: unsuppotedMediaTypeErrorExample: $ref: '#/components/examples/unsupportedMediaTypeErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Unsupported Media Type "429": content: @@ -6190,7 +6190,7 @@ paths: tooManyRequestsErrorExample: $ref: '#/components/examples/tooManyRequestsErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Too Many Requests headers: Retry-After: @@ -6209,7 +6209,7 @@ paths: serviceUnavailableErrorExample: $ref: '#/components/examples/serviceUnavailableErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Service Unavailable summary: Get Endpoint tags: @@ -6255,7 +6255,7 @@ paths: badRequestErrorExample: $ref: '#/components/examples/badRequestErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Bad Request "401": content: @@ -6264,7 +6264,7 @@ paths: unauthorizedErrorExample: $ref: '#/components/examples/unauthorizedErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Unauthorized "403": content: @@ -6273,7 +6273,7 @@ paths: forbiddenErrorExample: $ref: '#/components/examples/forbiddenErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Forbidden "404": content: @@ -6282,7 +6282,7 @@ paths: notFoundErrorExample: $ref: '#/components/examples/notFoundErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Not Found "405": content: @@ -6291,7 +6291,7 @@ paths: methodNotAllowedErrorExample: $ref: '#/components/examples/methodNotAllowedErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Method Not Allowed "415": content: @@ -6300,7 +6300,7 @@ paths: unsuppotedMediaTypeErrorExample: $ref: '#/components/examples/unsupportedMediaTypeErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Unsupported Media Type "429": content: @@ -6309,7 +6309,7 @@ paths: tooManyRequestsErrorExample: $ref: '#/components/examples/tooManyRequestsErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Too Many Requests headers: Retry-After: @@ -6328,7 +6328,7 @@ paths: serviceUnavailableErrorExample: $ref: '#/components/examples/serviceUnavailableErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Service Unavailable summary: Update Endpoint BXML tags: @@ -6354,15 +6354,13 @@ components: $ref: '#/components/examples/mmsMessageReceivedCallbackExample' schema: $ref: '#/components/schemas/inboundCallback' - description: "

This Inbound Message Webhook is an envelope containing\ - \ either a received (MO) message to your \nmessage-enabled Bandwidth\ - \ telephone number or a multichannel client's response to a suggestion\ - \ response \nor location request. \n

The payload type will be one\ - \ of message-received, suggestion-response,\ - \ or location-request-response.\n

Note that suggestion-response\ - \ and location-request-response callback types are pertinent\ - \ only for RBM messages sent from the /messages/multiChannel\ - \ endpoint.\n

Please visit Webhooks

" + description: |- +

This Inbound Message Webhook is an envelope containing either a received (MO) message to your + message-enabled Bandwidth telephone number or a multichannel client's response to a suggestion response + or location request. +

The payload type will be one of message-received, suggestion-response, or location-request-response. +

Note that suggestion-response and location-request-response callback types are pertinent only for RBM messages sent from the /messages/multiChannel endpoint. +

Please visit Webhooks

required: true responses: "200": @@ -8891,7 +8889,7 @@ components: badRequestErrorExample: $ref: '#/components/examples/badRequestErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Bad Request unauthorizedErrorResponse: content: @@ -8900,7 +8898,7 @@ components: unauthorizedErrorExample: $ref: '#/components/examples/unauthorizedErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Unauthorized forbiddenErrorResponse: content: @@ -8909,7 +8907,7 @@ components: forbiddenErrorExample: $ref: '#/components/examples/forbiddenErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Forbidden notFoundErrorResponse: content: @@ -8918,7 +8916,7 @@ components: notFoundErrorExample: $ref: '#/components/examples/notFoundErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Not Found methodNotAllowedErrorResponse: content: @@ -8927,7 +8925,7 @@ components: methodNotAllowedErrorExample: $ref: '#/components/examples/methodNotAllowedErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Method Not Allowed unsupportedMediaTypeErrorResponse: content: @@ -8936,7 +8934,7 @@ components: unsuppotedMediaTypeErrorExample: $ref: '#/components/examples/unsupportedMediaTypeErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Unsupported Media Type tooManyRequestsErrorResponse: content: @@ -8945,7 +8943,7 @@ components: tooManyRequestsErrorExample: $ref: '#/components/examples/tooManyRequestsErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Too Many Requests headers: Retry-After: @@ -8964,7 +8962,7 @@ components: serviceUnavailableErrorExample: $ref: '#/components/examples/serviceUnavailableErrorExample' schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' description: Service Unavailable schemas: applicationId: @@ -9351,9 +9349,10 @@ components: format: date-time type: string carrierName: - description: "The name of the Authorized Message Provider (AMP) that handled\ - \ this message. \nIn the US, this is the carrier that the message was sent\ - \ to.\nThis field is present only when this account feature has been enabled." + description: |- + The name of the Authorized Message Provider (AMP) that handled this message. + In the US, this is the carrier that the message was sent to. + This field is present only when this account feature has been enabled. example: AT&T type: string message: @@ -9460,13 +9459,9 @@ components: type: array uniqueItems: true from: - description: "Either an alphanumeric sender ID or the sender's Bandwidth\ - \ phone number in E.164 format, which must be hosted within Bandwidth\ - \ and linked to the account that is generating the message. \nAlphanumeric\ - \ Sender IDs can contain up to 11 characters, upper-case letters A-Z,\ - \ lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore\ - \ _ and ampersand &. Alphanumeric Sender IDs must contain at least one\ - \ letter." + description: |- + Either an alphanumeric sender ID or the sender's Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and linked to the account that is generating the message. + Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore _ and ampersand &. Alphanumeric Sender IDs must contain at least one letter. example: "+15551113333" type: string text: @@ -9995,20 +9990,21 @@ components: example: REPLY type: string rbmOpenUrlEnum: - description: "Specifies how the URL should be opened on a mobile device.\n-\ - \ `BROWSER` Opens the URL in the device's default browser. If application\ - \ is not set or the device doesn’t support WebView, this option is used by\ - \ default. \n- `WEBVIEW` Opens the URL in an in-app WebView." + description: |- + Specifies how the URL should be opened on a mobile device. + - `BROWSER` Opens the URL in the device's default browser. If application is not set or the device doesn't support WebView, this option is used by default. + - `WEBVIEW` Opens the URL in an in-app WebView. enum: - BROWSER - WEBVIEW example: WEBVIEW type: string rbmWebViewEnum: - description: "Defines the layout of the WebView on a mobile device. It must\ - \ be defined when application is set to `WEBVIEW`\n- `FULL` WebView takes\ - \ the full screen. \n- `HALF` WebView takes half of the screen.\n- `TALL`\ - \ WebView takes three-quarters of the screen." + description: |- + Defines the layout of the WebView on a mobile device. It must be defined when application is set to `WEBVIEW` + - `FULL` WebView takes the full screen. + - `HALF` WebView takes half of the screen. + - `TALL` WebView takes three-quarters of the screen. enum: - FULL - HALF @@ -10572,10 +10568,10 @@ components: example: 4405 type: integer carrierName: - description: "The name of the Authorized Message Provider (AMP) that handled\ - \ this message. \nIn the US, this is the carrier that the message was\ - \ sent to.\nThis field is present only when this account feature has been\ - \ enabled." + description: |- + The name of the Authorized Message Provider (AMP) that handled this message. + In the US, this is the carrier that the message was sent to. + This field is present only when this account feature has been enabled. example: AT&T type: string required: @@ -10595,9 +10591,9 @@ components: type: $ref: '#/components/schemas/inboundCallbackTypeEnum' to: - description: "The destination phone number the message was sent to. \nFor\ - \ inbound callbacks, this is the Bandwidth number or alphanumeric identifier\ - \ that received the message.\n" + description: | + The destination phone number the message was sent to. + For inbound callbacks, this is the Bandwidth number or alphanumeric identifier that received the message. example: "+15552223333" type: string description: @@ -10607,10 +10603,10 @@ components: message: $ref: '#/components/schemas/inboundCallbackMessage' carrierName: - description: "The name of the Authorized Message Provider (AMP) that handled\ - \ this message. \nIn the US, this is the carrier that the message was\ - \ sent to.\nThis field is present only when this account feature has been\ - \ enabled." + description: |- + The name of the Authorized Message Provider (AMP) that handled this message. + In the US, this is the carrier that the message was sent to. + This field is present only when this account feature has been enabled. example: AT&T type: string required: @@ -10635,13 +10631,11 @@ components: example: message-delivered type: string inboundCallbackTypeEnum: - description: "The possible inbound callback types originating from MO messages\ - \ or multichannel message client responses:\n- `message-received` indicates\ - \ an MO message from a Bandwidth user's client to a Bandwidth number.\n- `request-location-response`\ - \ indicates a response to a location request sent by the Bandwidth user's\ - \ client after receiving an RBM message. \n- `suggestion-response` indicates\ - \ a response to a suggestion sent by the Bandwidth user's client after receiving\ - \ an RBM message." + description: |- + The possible inbound callback types originating from MO messages or multichannel message client responses: + - `message-received` indicates an MO message from a Bandwidth user's client to a Bandwidth number. + - `request-location-response` indicates a response to a location request sent by the Bandwidth user's client after receiving an RBM message. + - `suggestion-response` indicates a response to a suggestion sent by the Bandwidth user's client after receiving an RBM message. enum: - message-received - request-location-response @@ -10859,10 +10853,10 @@ components: nullable: true type: boolean displayName: - description: "The caller display name to use when the call is created. \n\ - May not exceed 256 characters nor contain control characters such as new\ - \ lines.\nIf `privacy` is true, only the following values are valid: `Restricted`,\ - \ `Anonymous`, `Private`, or `Unavailable`." + description: |- + The caller display name to use when the call is created. + May not exceed 256 characters nor contain control characters such as new lines. + If `privacy` is true, only the following values are valid: `Restricted`, `Anonymous`, `Private`, or `Unavailable`. example: John Doe maxLength: 256 nullable: true @@ -11827,9 +11821,9 @@ components: nullable: true type: number machineSpeechEndThreshold: - description: "When an answering machine is detected, the amount of silence\ - \ (in seconds) before assuming the message has finished playing. \nIf\ - \ not provided it will default to the speechEndThreshold value." + description: |- + When an answering machine is detected, the amount of silence (in seconds) before assuming the message has finished playing. + If not provided it will default to the speechEndThreshold value. example: 5 format: double nullable: true @@ -14627,10 +14621,10 @@ components: latestMessageDeliveryStatus: $ref: '#/components/schemas/latestMessageDeliveryStatusEnum' initialMessageDeliveryStatusDate: - description: "[DNI-Only](#section/DNI-Only). The date the phone number entered\ - \ the status described in `latestMessageDeliveryStatus`. \nThink of this\ - \ as the \"start time\" for that status.\nValue resets every time the\ - \ `latestMessageDeliveryStatus` changes." + description: |- + [DNI-Only](#section/DNI-Only). The date the phone number entered the status described in `latestMessageDeliveryStatus`. + Think of this as the "start time" for that status. + Value resets every time the `latestMessageDeliveryStatus` changes. example: 2025-06-20 format: date type: string @@ -15587,7 +15581,7 @@ components: $ref: '#/components/schemas/linksObject' errors: items: - $ref: '#/components/schemas/error' + $ref: '#/components/schemas/webhookSubscriptionError' type: array data: items: @@ -15619,7 +15613,7 @@ components: \ return the last page of result." type: string type: object - error: + webhookSubscriptionError: example: code: 0 telephoneNumbers: @@ -16255,7 +16249,7 @@ components: - eventType type: object description: An event that occurred on an endpoint. - link1: + brtcLink: example: method: GET rel: self @@ -16271,10 +16265,6 @@ components: type: string method: description: The HTTP method to use when making the request. - enum: - - GET - - POST - - DELETE example: GET type: string type: object @@ -16308,7 +16298,7 @@ components: required: - pageSize type: object - error1: + brtcError: example: code: "404" description: The requested resource was not found. @@ -16338,11 +16328,36 @@ components: example: "404" type: string source: - $ref: '#/components/schemas/error1_source' + $ref: '#/components/schemas/brtcErrorSource' required: - description - type type: object + brtcErrorSource: + example: + reference: e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + field: accountId + parameter: accountId + header: Authorization + properties: + parameter: + description: The URI parameter that caused the error. + example: accountId + type: string + field: + description: The request body field that caused the error. + example: accountId + type: string + header: + description: The header that caused the error. + example: Authorization + type: string + reference: + description: The resource ID or path to the resource (or non-existent resource) + causing the error. + example: e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + type: string + type: object listEndpointsResponse: example: data: @@ -16392,7 +16407,7 @@ components: properties: links: items: - $ref: '#/components/schemas/link1' + $ref: '#/components/schemas/brtcLink' type: array page: $ref: '#/components/schemas/page' @@ -16402,7 +16417,7 @@ components: type: array errors: items: - $ref: '#/components/schemas/error1' + $ref: '#/components/schemas/brtcError' type: array required: - data @@ -16456,13 +16471,13 @@ components: properties: links: items: - $ref: '#/components/schemas/link1' + $ref: '#/components/schemas/brtcLink' type: array data: $ref: '#/components/schemas/endpoint' errors: items: - $ref: '#/components/schemas/error1' + $ref: '#/components/schemas/brtcError' type: array required: - data @@ -16517,20 +16532,20 @@ components: properties: links: items: - $ref: '#/components/schemas/link1' + $ref: '#/components/schemas/brtcLink' type: array data: $ref: '#/components/schemas/createEndpointResponseData' errors: items: - $ref: '#/components/schemas/error1' + $ref: '#/components/schemas/brtcError' type: array required: - data - errors - links type: object - errorResponse: + brtcErrorResponse: example: data: "{}" links: @@ -16562,7 +16577,7 @@ components: properties: links: items: - $ref: '#/components/schemas/link1' + $ref: '#/components/schemas/brtcLink' type: array data: additionalProperties: false @@ -16570,7 +16585,7 @@ components: type: object errors: items: - $ref: '#/components/schemas/error1' + $ref: '#/components/schemas/brtcError' type: array required: - data @@ -16738,31 +16753,6 @@ components: - password - username type: object - error1_source: - example: - reference: e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 - field: accountId - parameter: accountId - header: Authorization - properties: - parameter: - description: The URI parameter that caused the error. - example: accountId - type: string - field: - description: The request body field that caused the error. - example: accountId - type: string - header: - description: The header that caused the error. - example: Authorization - type: string - reference: - description: The resource ID or path to the resource (or non-existent resource) - causing the error. - example: e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 - type: string - type: object securitySchemes: Basic: description: |- diff --git a/bandwidth.yml b/bandwidth.yml index c7105f39..6ad54bc1 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -2161,7 +2161,7 @@ components: type: string description: >- The name of the Authorized Message Provider (AMP) that handled this - message. + message. In the US, this is the carrier that the message was sent to. @@ -2248,7 +2248,7 @@ components: description: >- Either an alphanumeric sender ID or the sender's Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and - linked to the account that is generating the message. + linked to the account that is generating the message. Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, @@ -2571,8 +2571,8 @@ components: Specifies how the URL should be opened on a mobile device. - `BROWSER` Opens the URL in the device's default browser. If - application is not set or the device doesn’t support WebView, this - option is used by default. + application is not set or the device doesn't support WebView, this + option is used by default. - `WEBVIEW` Opens the URL in an in-app WebView. enum: @@ -2585,7 +2585,7 @@ components: Defines the layout of the WebView on a mobile device. It must be defined when application is set to `WEBVIEW` - - `FULL` WebView takes the full screen. + - `FULL` WebView takes the full screen. - `HALF` WebView takes half of the screen. @@ -2987,7 +2987,7 @@ components: to: type: string description: > - The destination phone number the message was sent to. + The destination phone number the message was sent to. For inbound callbacks, this is the Bandwidth number or alphanumeric identifier that received the message. @@ -3038,7 +3038,7 @@ components: client to a Bandwidth number. - `request-location-response` indicates a response to a location request - sent by the Bandwidth user's client after receiving an RBM message. + sent by the Bandwidth user's client after receiving an RBM message. - `suggestion-response` indicates a response to a suggestion sent by the Bandwidth user's client after receiving an RBM message. @@ -3277,7 +3277,7 @@ components: nullable: true type: string description: >- - The caller display name to use when the call is created. + The caller display name to use when the call is created. May not exceed 256 characters nor contain control characters such as new lines. @@ -4214,7 +4214,7 @@ components: format: double description: >- When an answering machine is detected, the amount of silence (in - seconds) before assuming the message has finished playing. + seconds) before assuming the message has finished playing. If not provided it will default to the speechEndThreshold value. example: 5 @@ -5958,7 +5958,7 @@ components: format: date description: >- [DNI-Only](#section/DNI-Only). The date the phone number entered the - status described in `latestMessageDeliveryStatus`. + status described in `latestMessageDeliveryStatus`. Think of this as the "start time" for that status. @@ -6635,7 +6635,7 @@ components: errors: type: array items: - $ref: '#/components/schemas/error' + $ref: '#/components/schemas/webhookSubscriptionError' data: items: $ref: '#/components/schemas/webhookSubscription' @@ -6661,7 +6661,7 @@ components: If more results exist than specified by 'size', this link return the last page of result. type: string - error: + webhookSubscriptionError: type: object properties: code: @@ -7060,7 +7060,7 @@ components: required: - eventType - eventTime - link1: + brtcLink: type: object properties: href: @@ -7074,10 +7074,6 @@ components: example: self method: type: string - enum: - - GET - - POST - - DELETE description: The HTTP method to use when making the request. example: GET page: @@ -7105,7 +7101,7 @@ components: example: 0 required: - pageSize - error1: + brtcError: type: object properties: id: @@ -7126,36 +7122,38 @@ components: description: A code that uniquely identifies the error. example: '404' source: - type: object - properties: - parameter: - type: string - description: The URI parameter that caused the error. - example: accountId - field: - type: string - description: The request body field that caused the error. - example: accountId - header: - type: string - description: The header that caused the error. - example: Authorization - reference: - type: string - description: >- - The resource ID or path to the resource (or non-existent - resource) causing the error. - example: e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + $ref: '#/components/schemas/brtcErrorSource' required: - type - description + brtcErrorSource: + type: object + properties: + parameter: + type: string + description: The URI parameter that caused the error. + example: accountId + field: + type: string + description: The request body field that caused the error. + example: accountId + header: + type: string + description: The header that caused the error. + example: Authorization + reference: + type: string + description: >- + The resource ID or path to the resource (or non-existent resource) + causing the error. + example: e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 listEndpointsResponse: type: object properties: links: type: array items: - $ref: '#/components/schemas/link1' + $ref: '#/components/schemas/brtcLink' page: $ref: '#/components/schemas/page' data: @@ -7165,7 +7163,7 @@ components: errors: type: array items: - $ref: '#/components/schemas/error1' + $ref: '#/components/schemas/brtcError' required: - links - data @@ -7176,13 +7174,13 @@ components: links: type: array items: - $ref: '#/components/schemas/link1' + $ref: '#/components/schemas/brtcLink' data: $ref: '#/components/schemas/endpoint' errors: type: array items: - $ref: '#/components/schemas/error1' + $ref: '#/components/schemas/brtcError' required: - links - data @@ -7193,24 +7191,24 @@ components: links: type: array items: - $ref: '#/components/schemas/link1' + $ref: '#/components/schemas/brtcLink' data: $ref: '#/components/schemas/createEndpointResponseData' errors: type: array items: - $ref: '#/components/schemas/error1' + $ref: '#/components/schemas/brtcError' required: - links - data - errors - errorResponse: + brtcErrorResponse: type: object properties: links: type: array items: - $ref: '#/components/schemas/link1' + $ref: '#/components/schemas/brtcLink' data: type: object nullable: true @@ -7218,7 +7216,7 @@ components: errors: type: array items: - $ref: '#/components/schemas/error1' + $ref: '#/components/schemas/brtcError' required: - links - data @@ -7929,7 +7927,7 @@ components: content: application/json: schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' examples: badRequestErrorExample: $ref: '#/components/examples/badRequestErrorExample' @@ -7938,7 +7936,7 @@ components: content: application/json: schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' examples: unauthorizedErrorExample: $ref: '#/components/examples/unauthorizedErrorExample' @@ -7947,7 +7945,7 @@ components: content: application/json: schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' examples: forbiddenErrorExample: $ref: '#/components/examples/forbiddenErrorExample' @@ -7956,7 +7954,7 @@ components: content: application/json: schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' examples: notFoundErrorExample: $ref: '#/components/examples/notFoundErrorExample' @@ -7965,7 +7963,7 @@ components: content: application/json: schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' examples: methodNotAllowedErrorExample: $ref: '#/components/examples/methodNotAllowedErrorExample' @@ -7974,7 +7972,7 @@ components: content: application/json: schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' examples: unsuppotedMediaTypeErrorExample: $ref: '#/components/examples/unsupportedMediaTypeErrorExample' @@ -7992,7 +7990,7 @@ components: content: application/json: schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' examples: tooManyRequestsErrorExample: $ref: '#/components/examples/tooManyRequestsErrorExample' @@ -8001,7 +7999,7 @@ components: content: application/json: schema: - $ref: '#/components/schemas/errorResponse' + $ref: '#/components/schemas/brtcErrorResponse' examples: serviceUnavailableErrorExample: $ref: '#/components/examples/serviceUnavailableErrorExample' @@ -9629,12 +9627,12 @@ components: required: true description: >-

This Inbound Message Webhook is an envelope containing either a - received (MO) message to your + received (MO) message to your message-enabled Bandwidth telephone number or a multichannel - client's response to a suggestion response + client's response to a suggestion response - or location request. + or location request.

The payload type will be one of message-received, suggestion-response, or diff --git a/docs/Error1.md b/docs/BrtcError.md similarity index 83% rename from docs/Error1.md rename to docs/BrtcError.md index 1ff1322b..68267631 100644 --- a/docs/Error1.md +++ b/docs/BrtcError.md @@ -1,4 +1,4 @@ -# Bandwidth.Standard.Model.Error1 +# Bandwidth.Standard.Model.BrtcError ## Properties @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | **string** | The type of error. | **Description** | **string** | A description of the error. | **Code** | **string** | A code that uniquely identifies the error. | [optional] -**Source** | [**Error1Source**](Error1Source.md) | | [optional] +**Source** | [**BrtcErrorSource**](BrtcErrorSource.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ErrorResponse.md b/docs/BrtcErrorResponse.md similarity index 64% rename from docs/ErrorResponse.md rename to docs/BrtcErrorResponse.md index 38e6e5b9..a9a97cfb 100644 --- a/docs/ErrorResponse.md +++ b/docs/BrtcErrorResponse.md @@ -1,12 +1,12 @@ -# Bandwidth.Standard.Model.ErrorResponse +# Bandwidth.Standard.Model.BrtcErrorResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Links** | [**List<Link1>**](Link1.md) | | +**Links** | [**List<BrtcLink>**](BrtcLink.md) | | **Data** | **Object** | | -**Errors** | [**List<Error1>**](Error1.md) | | +**Errors** | [**List<BrtcError>**](BrtcError.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Error1Source.md b/docs/BrtcErrorSource.md similarity index 93% rename from docs/Error1Source.md rename to docs/BrtcErrorSource.md index cbb8dfa0..31883698 100644 --- a/docs/Error1Source.md +++ b/docs/BrtcErrorSource.md @@ -1,4 +1,4 @@ -# Bandwidth.Standard.Model.Error1Source +# Bandwidth.Standard.Model.BrtcErrorSource ## Properties diff --git a/docs/Link1.md b/docs/BrtcLink.md similarity index 93% rename from docs/Link1.md rename to docs/BrtcLink.md index 24542f47..01de766d 100644 --- a/docs/Link1.md +++ b/docs/BrtcLink.md @@ -1,4 +1,4 @@ -# Bandwidth.Standard.Model.Link1 +# Bandwidth.Standard.Model.BrtcLink ## Properties diff --git a/docs/Callback.md b/docs/Callback.md index 78e9137f..69dc0966 100644 --- a/docs/Callback.md +++ b/docs/Callback.md @@ -8,11 +8,11 @@ Name | Type | Description | Notes **Time** | **DateTime** | | **EventTime** | **DateTime** | Represents the time at which the message was read, for `message-read` callbacks. | [optional] **Type** | **InboundCallbackTypeEnum** | | -**To** | **string** | The destination phone number the message was sent to. For inbound callbacks, this is the Bandwidth number or alphanumeric identifier that received the message. | +**To** | **string** | The destination phone number the message was sent to. For inbound callbacks, this is the Bandwidth number or alphanumeric identifier that received the message. | **Description** | **string** | A detailed description of the event described by the callback. | **Message** | [**InboundCallbackMessage**](InboundCallbackMessage.md) | | **ErrorCode** | **int** | Optional error code, applicable only when type is `message-failed`. | [optional] -**CarrierName** | **string** | The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. | [optional] +**CarrierName** | **string** | The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreateCall.md b/docs/CreateCall.md index d4438af2..2ed6cdbd 100644 --- a/docs/CreateCall.md +++ b/docs/CreateCall.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **To** | **string** | The destination to call (must be an E.164 formatted number (e.g. `+15555551212`) or a SIP URI (e.g. `sip:user@server.example`)). | **From** | **string** | A Bandwidth phone number on your account the call should come from (must be in E.164 format, like `+15555551212`) even if `privacy` is set to true. | **Privacy** | **bool?** | Hide the calling number. The `displayName` field can be used to customize the displayed name. | [optional] -**DisplayName** | **string** | The caller display name to use when the call is created. May not exceed 256 characters nor contain control characters such as new lines. If `privacy` is true, only the following values are valid: `Restricted`, `Anonymous`, `Private`, or `Unavailable`. | [optional] +**DisplayName** | **string** | The caller display name to use when the call is created. May not exceed 256 characters nor contain control characters such as new lines. If `privacy` is true, only the following values are valid: `Restricted`, `Anonymous`, `Private`, or `Unavailable`. | [optional] **Uui** | **string** | A comma-separated list of 'User-To-User' headers to be sent in the INVITE when calling a SIP URI. Each value must end with an 'encoding' parameter as described in <a href='https://tools.ietf.org/html/rfc7433'>RFC 7433</a>. Only 'jwt', 'base64' and 'hex' encodings are allowed. The entire value cannot exceed 350 characters, including parameters and separators. | [optional] **ApplicationId** | **string** | The id of the application associated with the `from` number. | **AnswerUrl** | **string** | The full URL to send the <a href='/docs/voice/webhooks/answer'>Answer</a> event to when the called party answers. This endpoint should return the first <a href='/docs/voice/bxml'>BXML document</a> to be executed in the call. Must use `https` if specifying `username` and `password`. | diff --git a/docs/CreateEndpointResponse.md b/docs/CreateEndpointResponse.md index 4cb1884a..04353bc7 100644 --- a/docs/CreateEndpointResponse.md +++ b/docs/CreateEndpointResponse.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Links** | [**List<Link1>**](Link1.md) | | +**Links** | [**List<BrtcLink>**](BrtcLink.md) | | **Data** | [**CreateEndpointResponseData**](CreateEndpointResponseData.md) | | -**Errors** | [**List<Error1>**](Error1.md) | | +**Errors** | [**List<BrtcError>**](BrtcError.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/EndpointResponse.md b/docs/EndpointResponse.md index 98a0332b..daeb0ccc 100644 --- a/docs/EndpointResponse.md +++ b/docs/EndpointResponse.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Links** | [**List<Link1>**](Link1.md) | | +**Links** | [**List<BrtcLink>**](BrtcLink.md) | | **Data** | [**Endpoint**](Endpoint.md) | | -**Errors** | [**List<Error1>**](Error1.md) | | +**Errors** | [**List<BrtcError>**](BrtcError.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InboundCallback.md b/docs/InboundCallback.md index e4f5734e..a6249db1 100644 --- a/docs/InboundCallback.md +++ b/docs/InboundCallback.md @@ -7,10 +7,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Time** | **DateTime** | | **Type** | **InboundCallbackTypeEnum** | | -**To** | **string** | The destination phone number the message was sent to. For inbound callbacks, this is the Bandwidth number or alphanumeric identifier that received the message. | +**To** | **string** | The destination phone number the message was sent to. For inbound callbacks, this is the Bandwidth number or alphanumeric identifier that received the message. | **Description** | **string** | A detailed description of the event described by the callback. | **Message** | [**InboundCallbackMessage**](InboundCallbackMessage.md) | | -**CarrierName** | **string** | The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. | [optional] +**CarrierName** | **string** | The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InboundCallbackTypeEnum.md b/docs/InboundCallbackTypeEnum.md index 03461e35..987f11ef 100644 --- a/docs/InboundCallbackTypeEnum.md +++ b/docs/InboundCallbackTypeEnum.md @@ -1,5 +1,5 @@ # Bandwidth.Standard.Model.InboundCallbackTypeEnum -The possible inbound callback types originating from MO messages or multichannel message client responses: - `message-received` indicates an MO message from a Bandwidth user's client to a Bandwidth number. - `request-location-response` indicates a response to a location request sent by the Bandwidth user's client after receiving an RBM message. - `suggestion-response` indicates a response to a suggestion sent by the Bandwidth user's client after receiving an RBM message. +The possible inbound callback types originating from MO messages or multichannel message client responses: - `message-received` indicates an MO message from a Bandwidth user's client to a Bandwidth number. - `request-location-response` indicates a response to a location request sent by the Bandwidth user's client after receiving an RBM message. - `suggestion-response` indicates a response to a suggestion sent by the Bandwidth user's client after receiving an RBM message. ## Properties diff --git a/docs/ListEndpointsResponse.md b/docs/ListEndpointsResponse.md index bad416b3..9a7b8bbf 100644 --- a/docs/ListEndpointsResponse.md +++ b/docs/ListEndpointsResponse.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Links** | [**List<Link1>**](Link1.md) | | +**Links** | [**List<BrtcLink>**](BrtcLink.md) | | **Page** | [**Page**](Page.md) | | [optional] **Data** | [**List<Endpoints>**](Endpoints.md) | | -**Errors** | [**List<Error1>**](Error1.md) | | +**Errors** | [**List<BrtcError>**](BrtcError.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LookupResult.md b/docs/LookupResult.md index 0eed2fbe..833661a8 100644 --- a/docs/LookupResult.md +++ b/docs/LookupResult.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **DeactivationDate** | **string** | [DNI-Only](#section/DNI-Only). The datetime the carrier reported a deactivation event. | [optional] **DeactivationEvent** | **DeactivationEventEnum** | | [optional] **LatestMessageDeliveryStatus** | **LatestMessageDeliveryStatusEnum** | | [optional] -**InitialMessageDeliveryStatusDate** | **DateTime** | [DNI-Only](#section/DNI-Only). The date the phone number entered the status described in `latestMessageDeliveryStatus`. Think of this as the \"start time\" for that status. Value resets every time the `latestMessageDeliveryStatus` changes. | [optional] +**InitialMessageDeliveryStatusDate** | **DateTime** | [DNI-Only](#section/DNI-Only). The date the phone number entered the status described in `latestMessageDeliveryStatus`. Think of this as the \"start time\" for that status. Value resets every time the `latestMessageDeliveryStatus` changes. | [optional] **LatestMessageDeliveryStatusDate** | **DateTime** | [DNI-Only](#section/DNI-Only). The date bandwidth last received delivery status information for this phone number. Use this field to understand how up-to-date the `latestMessageDeliveryStatus` is. Value resets every time the `latestMessageDeliveryStatus` changes. | [optional] **RcsEnabled** | **bool** | [RCS-Only](#section/RCS-Only). Indicates whether the phone number is capable of receiving RCS messages. Value will be null if account has RCS, but no value was returned. Absent when account does not have RCS. | [optional] diff --git a/docs/MachineDetectionConfiguration.md b/docs/MachineDetectionConfiguration.md index 79bec22d..8ced340c 100644 --- a/docs/MachineDetectionConfiguration.md +++ b/docs/MachineDetectionConfiguration.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **SilenceTimeout** | **double?** | If no speech is detected in this period, a callback with a 'silence' result is sent. | [optional] [default to 10D] **SpeechThreshold** | **double?** | When speech has ended and a result couldn't be determined based on the audio content itself, this value is used to determine if the speaker is a machine based on the speech duration. If the length of the speech detected is greater than or equal to this threshold, the result will be 'answering-machine'. If the length of speech detected is below this threshold, the result will be 'human'. | [optional] [default to 10D] **SpeechEndThreshold** | **double?** | Amount of silence (in seconds) before assuming the callee has finished speaking. | [optional] [default to 5D] -**MachineSpeechEndThreshold** | **double?** | When an answering machine is detected, the amount of silence (in seconds) before assuming the message has finished playing. If not provided it will default to the speechEndThreshold value. | [optional] +**MachineSpeechEndThreshold** | **double?** | When an answering machine is detected, the amount of silence (in seconds) before assuming the message has finished playing. If not provided it will default to the speechEndThreshold value. | [optional] **DelayResult** | **bool?** | If set to 'true' and if an answering machine is detected, the 'answering-machine' callback will be delayed until the machine is done speaking, or an end of message tone is detected, or until the 'detectionTimeout' is exceeded. If false, the 'answering-machine' result is sent immediately. | [optional] [default to false] **CallbackUrl** | **string** | The URL to send the 'machineDetectionComplete' webhook when the detection is completed. Only for 'async' mode. | [optional] **CallbackMethod** | **CallbackMethodEnum** | | [optional] diff --git a/docs/MessageRequest.md b/docs/MessageRequest.md index 47989f62..1f61db95 100644 --- a/docs/MessageRequest.md +++ b/docs/MessageRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ApplicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | **To** | **List<string>** | The phone number(s) the message should be sent to in E164 format. | -**From** | **string** | Either an alphanumeric sender ID or the sender's Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and linked to the account that is generating the message. Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore _ and ampersand &. Alphanumeric Sender IDs must contain at least one letter. | +**From** | **string** | Either an alphanumeric sender ID or the sender's Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and linked to the account that is generating the message. Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore _ and ampersand &. Alphanumeric Sender IDs must contain at least one letter. | **Text** | **string** | The contents of the text message. Must be 2048 characters or less. | [optional] **Media** | **List<string>** | A list of URLs to include as media attachments as part of the message. Each URL can be at most 4096 characters. | [optional] **Tag** | **string** | A custom string that will be included in callback events of the message. Max 1024 characters. | [optional] diff --git a/docs/RbmOpenUrlEnum.md b/docs/RbmOpenUrlEnum.md index fcde391b..d62683aa 100644 --- a/docs/RbmOpenUrlEnum.md +++ b/docs/RbmOpenUrlEnum.md @@ -1,5 +1,5 @@ # Bandwidth.Standard.Model.RbmOpenUrlEnum -Specifies how the URL should be opened on a mobile device. - `BROWSER` Opens the URL in the device's default browser. If application is not set or the device doesn’t support WebView, this option is used by default. - `WEBVIEW` Opens the URL in an in-app WebView. +Specifies how the URL should be opened on a mobile device. - `BROWSER` Opens the URL in the device's default browser. If application is not set or the device doesn't support WebView, this option is used by default. - `WEBVIEW` Opens the URL in an in-app WebView. ## Properties diff --git a/docs/RbmWebViewEnum.md b/docs/RbmWebViewEnum.md index ae441a3e..c59b3be8 100644 --- a/docs/RbmWebViewEnum.md +++ b/docs/RbmWebViewEnum.md @@ -1,5 +1,5 @@ # Bandwidth.Standard.Model.RbmWebViewEnum -Defines the layout of the WebView on a mobile device. It must be defined when application is set to `WEBVIEW` - `FULL` WebView takes the full screen. - `HALF` WebView takes half of the screen. - `TALL` WebView takes three-quarters of the screen. +Defines the layout of the WebView on a mobile device. It must be defined when application is set to `WEBVIEW` - `FULL` WebView takes the full screen. - `HALF` WebView takes half of the screen. - `TALL` WebView takes three-quarters of the screen. ## Properties diff --git a/docs/StatusCallback.md b/docs/StatusCallback.md index e584abe1..f0290da7 100644 --- a/docs/StatusCallback.md +++ b/docs/StatusCallback.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **Description** | **string** | A detailed description of the event described by the callback. | **Message** | [**StatusCallbackMessage**](StatusCallbackMessage.md) | | **ErrorCode** | **int** | Optional error code, applicable only when type is `message-failed`. | [optional] -**CarrierName** | **string** | The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. | [optional] +**CarrierName** | **string** | The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Error.md b/docs/WebhookSubscriptionError.md similarity index 89% rename from docs/Error.md rename to docs/WebhookSubscriptionError.md index 366809be..251d30ae 100644 --- a/docs/Error.md +++ b/docs/WebhookSubscriptionError.md @@ -1,4 +1,4 @@ -# Bandwidth.Standard.Model.Error +# Bandwidth.Standard.Model.WebhookSubscriptionError ## Properties diff --git a/docs/WebhookSubscriptionsListBody.md b/docs/WebhookSubscriptionsListBody.md index a778a052..e3e63e49 100644 --- a/docs/WebhookSubscriptionsListBody.md +++ b/docs/WebhookSubscriptionsListBody.md @@ -6,7 +6,7 @@ A list of all webhook subscriptions registered for this account ID for this part Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | [**LinksObject**](LinksObject.md) | | [optional] -**Errors** | [**List<Error>**](Error.md) | | [optional] +**Errors** | [**List<WebhookSubscriptionError>**](WebhookSubscriptionError.md) | | [optional] **Data** | [**List<WebhookSubscription>**](WebhookSubscription.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/src/Bandwidth.Standard/Model/Error1.cs b/src/Bandwidth.Standard/Model/BrtcError.cs similarity index 86% rename from src/Bandwidth.Standard/Model/Error1.cs rename to src/Bandwidth.Standard/Model/BrtcError.cs index fce526cd..ce7f460a 100644 --- a/src/Bandwidth.Standard/Model/Error1.cs +++ b/src/Bandwidth.Standard/Model/BrtcError.cs @@ -27,36 +27,36 @@ namespace Bandwidth.Standard.Model { ///

- /// Error1 + /// BrtcError /// - [DataContract(Name = "error1")] - public partial class Error1 : IValidatableObject + [DataContract(Name = "brtcError")] + public partial class BrtcError : IValidatableObject { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected Error1() { } + protected BrtcError() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// A unique identifier for the error.. /// The type of error. (required). /// A description of the error. (required). /// A code that uniquely identifies the error.. /// source. - public Error1(Guid id = default(Guid), string type = default(string), string description = default(string), string code = default(string), Error1Source source = default(Error1Source)) + public BrtcError(Guid id = default(Guid), string type = default(string), string description = default(string), string code = default(string), BrtcErrorSource source = default(BrtcErrorSource)) { // to ensure "type" is required (not null) if (type == null) { - throw new ArgumentNullException("type is a required property for Error1 and cannot be null"); + throw new ArgumentNullException("type is a required property for BrtcError and cannot be null"); } this.Type = type; // to ensure "description" is required (not null) if (description == null) { - throw new ArgumentNullException("description is a required property for Error1 and cannot be null"); + throw new ArgumentNullException("description is a required property for BrtcError and cannot be null"); } this.Description = description; this.Id = id; @@ -100,7 +100,7 @@ protected Error1() { } /// Gets or Sets Source /// [DataMember(Name = "source", EmitDefaultValue = false)] - public Error1Source Source { get; set; } + public BrtcErrorSource Source { get; set; } /// /// Returns the string presentation of the object @@ -109,7 +109,7 @@ protected Error1() { } public override string ToString() { StringBuilder sb = new StringBuilder(); - sb.Append("class Error1 {\n"); + sb.Append("class BrtcError {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); diff --git a/src/Bandwidth.Standard/Model/ErrorResponse.cs b/src/Bandwidth.Standard/Model/BrtcErrorResponse.cs similarity index 80% rename from src/Bandwidth.Standard/Model/ErrorResponse.cs rename to src/Bandwidth.Standard/Model/BrtcErrorResponse.cs index 3160cb85..2b8be3f3 100644 --- a/src/Bandwidth.Standard/Model/ErrorResponse.cs +++ b/src/Bandwidth.Standard/Model/BrtcErrorResponse.cs @@ -27,40 +27,40 @@ namespace Bandwidth.Standard.Model { /// - /// ErrorResponse + /// BrtcErrorResponse /// - [DataContract(Name = "errorResponse")] - public partial class ErrorResponse : IValidatableObject + [DataContract(Name = "brtcErrorResponse")] + public partial class BrtcErrorResponse : IValidatableObject { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected ErrorResponse() { } + protected BrtcErrorResponse() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// links (required). /// data (required). /// errors (required). - public ErrorResponse(List links = default(List), Object data = default(Object), List errors = default(List)) + public BrtcErrorResponse(List links = default(List), Object data = default(Object), List errors = default(List)) { // to ensure "links" is required (not null) if (links == null) { - throw new ArgumentNullException("links is a required property for ErrorResponse and cannot be null"); + throw new ArgumentNullException("links is a required property for BrtcErrorResponse and cannot be null"); } this.Links = links; // to ensure "data" is required (not null) if (data == null) { - throw new ArgumentNullException("data is a required property for ErrorResponse and cannot be null"); + throw new ArgumentNullException("data is a required property for BrtcErrorResponse and cannot be null"); } this.Data = data; // to ensure "errors" is required (not null) if (errors == null) { - throw new ArgumentNullException("errors is a required property for ErrorResponse and cannot be null"); + throw new ArgumentNullException("errors is a required property for BrtcErrorResponse and cannot be null"); } this.Errors = errors; } @@ -69,7 +69,7 @@ protected ErrorResponse() { } /// Gets or Sets Links /// [DataMember(Name = "links", IsRequired = true, EmitDefaultValue = true)] - public List Links { get; set; } + public List Links { get; set; } /// /// Gets or Sets Data @@ -81,7 +81,7 @@ protected ErrorResponse() { } /// Gets or Sets Errors /// [DataMember(Name = "errors", IsRequired = true, EmitDefaultValue = true)] - public List Errors { get; set; } + public List Errors { get; set; } /// /// Returns the string presentation of the object @@ -90,7 +90,7 @@ protected ErrorResponse() { } public override string ToString() { StringBuilder sb = new StringBuilder(); - sb.Append("class ErrorResponse {\n"); + sb.Append("class BrtcErrorResponse {\n"); sb.Append(" Links: ").Append(Links).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Errors: ").Append(Errors).Append("\n"); diff --git a/src/Bandwidth.Standard/Model/Error1Source.cs b/src/Bandwidth.Standard/Model/BrtcErrorSource.cs similarity index 90% rename from src/Bandwidth.Standard/Model/Error1Source.cs rename to src/Bandwidth.Standard/Model/BrtcErrorSource.cs index e89ebb26..d06eef17 100644 --- a/src/Bandwidth.Standard/Model/Error1Source.cs +++ b/src/Bandwidth.Standard/Model/BrtcErrorSource.cs @@ -27,19 +27,19 @@ namespace Bandwidth.Standard.Model { /// - /// Error1Source + /// BrtcErrorSource /// - [DataContract(Name = "error1_source")] - public partial class Error1Source : IValidatableObject + [DataContract(Name = "brtcErrorSource")] + public partial class BrtcErrorSource : IValidatableObject { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// The URI parameter that caused the error.. /// The request body field that caused the error.. /// The header that caused the error.. /// The resource ID or path to the resource (or non-existent resource) causing the error.. - public Error1Source(string varParameter = default(string), string field = default(string), string header = default(string), string reference = default(string)) + public BrtcErrorSource(string varParameter = default(string), string field = default(string), string header = default(string), string reference = default(string)) { this.Parameter = varParameter; this.Field = field; @@ -86,7 +86,7 @@ public partial class Error1Source : IValidatableObject public override string ToString() { StringBuilder sb = new StringBuilder(); - sb.Append("class Error1Source {\n"); + sb.Append("class BrtcErrorSource {\n"); sb.Append(" Parameter: ").Append(Parameter).Append("\n"); sb.Append(" Field: ").Append(Field).Append("\n"); sb.Append(" Header: ").Append(Header).Append("\n"); diff --git a/src/Bandwidth.Standard/Model/Link1.cs b/src/Bandwidth.Standard/Model/BrtcLink.cs similarity index 74% rename from src/Bandwidth.Standard/Model/Link1.cs rename to src/Bandwidth.Standard/Model/BrtcLink.cs index 8e861fb3..9015ec0e 100644 --- a/src/Bandwidth.Standard/Model/Link1.cs +++ b/src/Bandwidth.Standard/Model/BrtcLink.cs @@ -27,52 +27,18 @@ namespace Bandwidth.Standard.Model { /// - /// Link1 + /// BrtcLink /// - [DataContract(Name = "link1")] - public partial class Link1 : IValidatableObject + [DataContract(Name = "brtcLink")] + public partial class BrtcLink : IValidatableObject { /// - /// The HTTP method to use when making the request. - /// - /// The HTTP method to use when making the request. - [JsonConverter(typeof(StringEnumConverter))] - public enum MethodEnum - { - /// - /// Enum GET for value: GET - /// - [EnumMember(Value = "GET")] - GET = 1, - - /// - /// Enum POST for value: POST - /// - [EnumMember(Value = "POST")] - POST = 2, - - /// - /// Enum DELETE for value: DELETE - /// - [EnumMember(Value = "DELETE")] - DELETE = 3 - } - - - /// - /// The HTTP method to use when making the request. - /// - /// The HTTP method to use when making the request. - /// GET - [DataMember(Name = "method", EmitDefaultValue = false)] - public MethodEnum? Method { get; set; } - /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// The full URL of the link.. /// The relationship of the link to the current resource.. /// The HTTP method to use when making the request.. - public Link1(string href = default(string), string rel = default(string), MethodEnum? method = default(MethodEnum?)) + public BrtcLink(string href = default(string), string rel = default(string), string method = default(string)) { this.Href = href; this.Rel = rel; @@ -95,6 +61,14 @@ public enum MethodEnum [DataMember(Name = "rel", EmitDefaultValue = false)] public string Rel { get; set; } + /// + /// The HTTP method to use when making the request. + /// + /// The HTTP method to use when making the request. + /// GET + [DataMember(Name = "method", EmitDefaultValue = false)] + public string Method { get; set; } + /// /// Returns the string presentation of the object /// @@ -102,7 +76,7 @@ public enum MethodEnum public override string ToString() { StringBuilder sb = new StringBuilder(); - sb.Append("class Link1 {\n"); + sb.Append("class BrtcLink {\n"); sb.Append(" Href: ").Append(Href).Append("\n"); sb.Append(" Rel: ").Append(Rel).Append("\n"); sb.Append(" Method: ").Append(Method).Append("\n"); diff --git a/src/Bandwidth.Standard/Model/CreateCall.cs b/src/Bandwidth.Standard/Model/CreateCall.cs index ce03c91e..c1ff7bd5 100644 --- a/src/Bandwidth.Standard/Model/CreateCall.cs +++ b/src/Bandwidth.Standard/Model/CreateCall.cs @@ -61,7 +61,7 @@ protected CreateCall() { } /// The destination to call (must be an E.164 formatted number (e.g. `+15555551212`) or a SIP URI (e.g. `sip:user@server.example`)). (required). /// A Bandwidth phone number on your account the call should come from (must be in E.164 format, like `+15555551212`) even if `privacy` is set to true. (required). /// Hide the calling number. The `displayName` field can be used to customize the displayed name.. - /// The caller display name to use when the call is created. May not exceed 256 characters nor contain control characters such as new lines. If `privacy` is true, only the following values are valid: `Restricted`, `Anonymous`, `Private`, or `Unavailable`.. + /// The caller display name to use when the call is created. May not exceed 256 characters nor contain control characters such as new lines. If `privacy` is true, only the following values are valid: `Restricted`, `Anonymous`, `Private`, or `Unavailable`.. /// A comma-separated list of 'User-To-User' headers to be sent in the INVITE when calling a SIP URI. Each value must end with an 'encoding' parameter as described in <a href='https://tools.ietf.org/html/rfc7433'>RFC 7433</a>. Only 'jwt', 'base64' and 'hex' encodings are allowed. The entire value cannot exceed 350 characters, including parameters and separators.. /// The id of the application associated with the `from` number. (required). /// The full URL to send the <a href='/docs/voice/webhooks/answer'>Answer</a> event to when the called party answers. This endpoint should return the first <a href='/docs/voice/bxml'>BXML document</a> to be executed in the call. Must use `https` if specifying `username` and `password`. (required). @@ -152,9 +152,9 @@ protected CreateCall() { } public bool? Privacy { get; set; } /// - /// The caller display name to use when the call is created. May not exceed 256 characters nor contain control characters such as new lines. If `privacy` is true, only the following values are valid: `Restricted`, `Anonymous`, `Private`, or `Unavailable`. + /// The caller display name to use when the call is created. May not exceed 256 characters nor contain control characters such as new lines. If `privacy` is true, only the following values are valid: `Restricted`, `Anonymous`, `Private`, or `Unavailable`. /// - /// The caller display name to use when the call is created. May not exceed 256 characters nor contain control characters such as new lines. If `privacy` is true, only the following values are valid: `Restricted`, `Anonymous`, `Private`, or `Unavailable`. + /// The caller display name to use when the call is created. May not exceed 256 characters nor contain control characters such as new lines. If `privacy` is true, only the following values are valid: `Restricted`, `Anonymous`, `Private`, or `Unavailable`. /// John Doe [DataMember(Name = "displayName", EmitDefaultValue = true)] public string DisplayName { get; set; } diff --git a/src/Bandwidth.Standard/Model/CreateEndpointResponse.cs b/src/Bandwidth.Standard/Model/CreateEndpointResponse.cs index f677c764..37abd7d1 100644 --- a/src/Bandwidth.Standard/Model/CreateEndpointResponse.cs +++ b/src/Bandwidth.Standard/Model/CreateEndpointResponse.cs @@ -43,7 +43,7 @@ protected CreateEndpointResponse() { } /// links (required). /// data (required). /// errors (required). - public CreateEndpointResponse(List links = default(List), CreateEndpointResponseData data = default(CreateEndpointResponseData), List errors = default(List)) + public CreateEndpointResponse(List links = default(List), CreateEndpointResponseData data = default(CreateEndpointResponseData), List errors = default(List)) { // to ensure "links" is required (not null) if (links == null) @@ -69,7 +69,7 @@ protected CreateEndpointResponse() { } /// Gets or Sets Links /// [DataMember(Name = "links", IsRequired = true, EmitDefaultValue = true)] - public List Links { get; set; } + public List Links { get; set; } /// /// Gets or Sets Data @@ -81,7 +81,7 @@ protected CreateEndpointResponse() { } /// Gets or Sets Errors /// [DataMember(Name = "errors", IsRequired = true, EmitDefaultValue = true)] - public List Errors { get; set; } + public List Errors { get; set; } /// /// Returns the string presentation of the object diff --git a/src/Bandwidth.Standard/Model/EndpointResponse.cs b/src/Bandwidth.Standard/Model/EndpointResponse.cs index 95ee2b38..88c45ab4 100644 --- a/src/Bandwidth.Standard/Model/EndpointResponse.cs +++ b/src/Bandwidth.Standard/Model/EndpointResponse.cs @@ -43,7 +43,7 @@ protected EndpointResponse() { } /// links (required). /// data (required). /// errors (required). - public EndpointResponse(List links = default(List), Endpoint data = default(Endpoint), List errors = default(List)) + public EndpointResponse(List links = default(List), Endpoint data = default(Endpoint), List errors = default(List)) { // to ensure "links" is required (not null) if (links == null) @@ -69,7 +69,7 @@ protected EndpointResponse() { } /// Gets or Sets Links /// [DataMember(Name = "links", IsRequired = true, EmitDefaultValue = true)] - public List Links { get; set; } + public List Links { get; set; } /// /// Gets or Sets Data @@ -81,7 +81,7 @@ protected EndpointResponse() { } /// Gets or Sets Errors /// [DataMember(Name = "errors", IsRequired = true, EmitDefaultValue = true)] - public List Errors { get; set; } + public List Errors { get; set; } /// /// Returns the string presentation of the object diff --git a/src/Bandwidth.Standard/Model/InboundCallback.cs b/src/Bandwidth.Standard/Model/InboundCallback.cs index 52d59a0d..ae27ca20 100644 --- a/src/Bandwidth.Standard/Model/InboundCallback.cs +++ b/src/Bandwidth.Standard/Model/InboundCallback.cs @@ -48,10 +48,10 @@ protected InboundCallback() { } /// /// time (required). /// type (required). - /// The destination phone number the message was sent to. For inbound callbacks, this is the Bandwidth number or alphanumeric identifier that received the message. (required). + /// The destination phone number the message was sent to. For inbound callbacks, this is the Bandwidth number or alphanumeric identifier that received the message. (required). /// A detailed description of the event described by the callback. (required). /// message (required). - /// The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled.. + /// The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled.. public InboundCallback(DateTime time = default(DateTime), InboundCallbackTypeEnum type = default(InboundCallbackTypeEnum), string to = default(string), string description = default(string), InboundCallbackMessage message = default(InboundCallbackMessage), string carrierName = default(string)) { this.Time = time; @@ -85,9 +85,9 @@ protected InboundCallback() { } public DateTime Time { get; set; } /// - /// The destination phone number the message was sent to. For inbound callbacks, this is the Bandwidth number or alphanumeric identifier that received the message. + /// The destination phone number the message was sent to. For inbound callbacks, this is the Bandwidth number or alphanumeric identifier that received the message. /// - /// The destination phone number the message was sent to. For inbound callbacks, this is the Bandwidth number or alphanumeric identifier that received the message. + /// The destination phone number the message was sent to. For inbound callbacks, this is the Bandwidth number or alphanumeric identifier that received the message. /// +15552223333 [DataMember(Name = "to", IsRequired = true, EmitDefaultValue = true)] public string To { get; set; } @@ -107,9 +107,9 @@ protected InboundCallback() { } public InboundCallbackMessage Message { get; set; } /// - /// The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. + /// The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. /// - /// The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. + /// The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. /// AT&T [DataMember(Name = "carrierName", EmitDefaultValue = false)] public string CarrierName { get; set; } diff --git a/src/Bandwidth.Standard/Model/InboundCallbackTypeEnum.cs b/src/Bandwidth.Standard/Model/InboundCallbackTypeEnum.cs index 2afba5be..5e39ce34 100644 --- a/src/Bandwidth.Standard/Model/InboundCallbackTypeEnum.cs +++ b/src/Bandwidth.Standard/Model/InboundCallbackTypeEnum.cs @@ -27,9 +27,9 @@ namespace Bandwidth.Standard.Model { /// - /// The possible inbound callback types originating from MO messages or multichannel message client responses: - `message-received` indicates an MO message from a Bandwidth user's client to a Bandwidth number. - `request-location-response` indicates a response to a location request sent by the Bandwidth user's client after receiving an RBM message. - `suggestion-response` indicates a response to a suggestion sent by the Bandwidth user's client after receiving an RBM message. + /// The possible inbound callback types originating from MO messages or multichannel message client responses: - `message-received` indicates an MO message from a Bandwidth user's client to a Bandwidth number. - `request-location-response` indicates a response to a location request sent by the Bandwidth user's client after receiving an RBM message. - `suggestion-response` indicates a response to a suggestion sent by the Bandwidth user's client after receiving an RBM message. /// - /// The possible inbound callback types originating from MO messages or multichannel message client responses: - `message-received` indicates an MO message from a Bandwidth user's client to a Bandwidth number. - `request-location-response` indicates a response to a location request sent by the Bandwidth user's client after receiving an RBM message. - `suggestion-response` indicates a response to a suggestion sent by the Bandwidth user's client after receiving an RBM message. + /// The possible inbound callback types originating from MO messages or multichannel message client responses: - `message-received` indicates an MO message from a Bandwidth user's client to a Bandwidth number. - `request-location-response` indicates a response to a location request sent by the Bandwidth user's client after receiving an RBM message. - `suggestion-response` indicates a response to a suggestion sent by the Bandwidth user's client after receiving an RBM message. [JsonConverter(typeof(StringEnumConverter))] public enum InboundCallbackTypeEnum { diff --git a/src/Bandwidth.Standard/Model/ListEndpointsResponse.cs b/src/Bandwidth.Standard/Model/ListEndpointsResponse.cs index 3bdfc963..c8c6f8a8 100644 --- a/src/Bandwidth.Standard/Model/ListEndpointsResponse.cs +++ b/src/Bandwidth.Standard/Model/ListEndpointsResponse.cs @@ -44,7 +44,7 @@ protected ListEndpointsResponse() { } /// page. /// data (required). /// errors (required). - public ListEndpointsResponse(List links = default(List), Page page = default(Page), List data = default(List), List errors = default(List)) + public ListEndpointsResponse(List links = default(List), Page page = default(Page), List data = default(List), List errors = default(List)) { // to ensure "links" is required (not null) if (links == null) @@ -71,7 +71,7 @@ protected ListEndpointsResponse() { } /// Gets or Sets Links /// [DataMember(Name = "links", IsRequired = true, EmitDefaultValue = true)] - public List Links { get; set; } + public List Links { get; set; } /// /// Gets or Sets Page @@ -89,7 +89,7 @@ protected ListEndpointsResponse() { } /// Gets or Sets Errors /// [DataMember(Name = "errors", IsRequired = true, EmitDefaultValue = true)] - public List Errors { get; set; } + public List Errors { get; set; } /// /// Returns the string presentation of the object diff --git a/src/Bandwidth.Standard/Model/LookupResult.cs b/src/Bandwidth.Standard/Model/LookupResult.cs index effa52d9..ca62c427 100644 --- a/src/Bandwidth.Standard/Model/LookupResult.cs +++ b/src/Bandwidth.Standard/Model/LookupResult.cs @@ -62,7 +62,7 @@ public partial class LookupResult : IValidatableObject /// [DNI-Only](#section/DNI-Only). The datetime the carrier reported a deactivation event.. /// deactivationEvent. /// latestMessageDeliveryStatus. - /// [DNI-Only](#section/DNI-Only). The date the phone number entered the status described in `latestMessageDeliveryStatus`. Think of this as the \"start time\" for that status. Value resets every time the `latestMessageDeliveryStatus` changes.. + /// [DNI-Only](#section/DNI-Only). The date the phone number entered the status described in `latestMessageDeliveryStatus`. Think of this as the \"start time\" for that status. Value resets every time the `latestMessageDeliveryStatus` changes.. /// [DNI-Only](#section/DNI-Only). The date bandwidth last received delivery status information for this phone number. Use this field to understand how up-to-date the `latestMessageDeliveryStatus` is. Value resets every time the `latestMessageDeliveryStatus` changes.. /// [RCS-Only](#section/RCS-Only). Indicates whether the phone number is capable of receiving RCS messages. Value will be null if account has RCS, but no value was returned. Absent when account does not have RCS. . public LookupResult(string phoneNumber = default(string), LineTypeEnum? lineType = default(LineTypeEnum?), string messagingProvider = default(string), string voiceProvider = default(string), string countryCodeA3 = default(string), string deactivationReporter = default(string), string deactivationDate = default(string), DeactivationEventEnum? deactivationEvent = default(DeactivationEventEnum?), LatestMessageDeliveryStatusEnum? latestMessageDeliveryStatus = default(LatestMessageDeliveryStatusEnum?), DateTime initialMessageDeliveryStatusDate = default(DateTime), DateTime latestMessageDeliveryStatusDate = default(DateTime), bool rcsEnabled = default(bool)) @@ -129,10 +129,10 @@ public partial class LookupResult : IValidatableObject public string DeactivationDate { get; set; } /// - /// [DNI-Only](#section/DNI-Only). The date the phone number entered the status described in `latestMessageDeliveryStatus`. Think of this as the \"start time\" for that status. Value resets every time the `latestMessageDeliveryStatus` changes. + /// [DNI-Only](#section/DNI-Only). The date the phone number entered the status described in `latestMessageDeliveryStatus`. Think of this as the \"start time\" for that status. Value resets every time the `latestMessageDeliveryStatus` changes. /// - /// [DNI-Only](#section/DNI-Only). The date the phone number entered the status described in `latestMessageDeliveryStatus`. Think of this as the \"start time\" for that status. Value resets every time the `latestMessageDeliveryStatus` changes. - /// Fri Jun 20 00:00:00 UTC 2025 + /// [DNI-Only](#section/DNI-Only). The date the phone number entered the status described in `latestMessageDeliveryStatus`. Think of this as the \"start time\" for that status. Value resets every time the `latestMessageDeliveryStatus` changes. + /// Thu Jun 19 20:00:00 EDT 2025 [DataMember(Name = "initialMessageDeliveryStatusDate", EmitDefaultValue = false)] [JsonConverter(typeof(OpenAPIDateConverter))] public DateTime InitialMessageDeliveryStatusDate { get; set; } @@ -141,7 +141,7 @@ public partial class LookupResult : IValidatableObject /// [DNI-Only](#section/DNI-Only). The date bandwidth last received delivery status information for this phone number. Use this field to understand how up-to-date the `latestMessageDeliveryStatus` is. Value resets every time the `latestMessageDeliveryStatus` changes. /// /// [DNI-Only](#section/DNI-Only). The date bandwidth last received delivery status information for this phone number. Use this field to understand how up-to-date the `latestMessageDeliveryStatus` is. Value resets every time the `latestMessageDeliveryStatus` changes. - /// Sat Jun 21 00:00:00 UTC 2025 + /// Fri Jun 20 20:00:00 EDT 2025 [DataMember(Name = "latestMessageDeliveryStatusDate", EmitDefaultValue = false)] [JsonConverter(typeof(OpenAPIDateConverter))] public DateTime LatestMessageDeliveryStatusDate { get; set; } diff --git a/src/Bandwidth.Standard/Model/MachineDetectionConfiguration.cs b/src/Bandwidth.Standard/Model/MachineDetectionConfiguration.cs index 013b2945..f16f5ce8 100644 --- a/src/Bandwidth.Standard/Model/MachineDetectionConfiguration.cs +++ b/src/Bandwidth.Standard/Model/MachineDetectionConfiguration.cs @@ -58,7 +58,7 @@ public partial class MachineDetectionConfiguration : IValidatableObject /// If no speech is detected in this period, a callback with a 'silence' result is sent. (default to 10D). /// When speech has ended and a result couldn't be determined based on the audio content itself, this value is used to determine if the speaker is a machine based on the speech duration. If the length of the speech detected is greater than or equal to this threshold, the result will be 'answering-machine'. If the length of speech detected is below this threshold, the result will be 'human'. (default to 10D). /// Amount of silence (in seconds) before assuming the callee has finished speaking. (default to 5D). - /// When an answering machine is detected, the amount of silence (in seconds) before assuming the message has finished playing. If not provided it will default to the speechEndThreshold value.. + /// When an answering machine is detected, the amount of silence (in seconds) before assuming the message has finished playing. If not provided it will default to the speechEndThreshold value.. /// If set to 'true' and if an answering machine is detected, the 'answering-machine' callback will be delayed until the machine is done speaking, or an end of message tone is detected, or until the 'detectionTimeout' is exceeded. If false, the 'answering-machine' result is sent immediately. (default to false). /// The URL to send the 'machineDetectionComplete' webhook when the detection is completed. Only for 'async' mode.. /// callbackMethod. @@ -125,9 +125,9 @@ public partial class MachineDetectionConfiguration : IValidatableObject public double? SpeechEndThreshold { get; set; } /// - /// When an answering machine is detected, the amount of silence (in seconds) before assuming the message has finished playing. If not provided it will default to the speechEndThreshold value. + /// When an answering machine is detected, the amount of silence (in seconds) before assuming the message has finished playing. If not provided it will default to the speechEndThreshold value. /// - /// When an answering machine is detected, the amount of silence (in seconds) before assuming the message has finished playing. If not provided it will default to the speechEndThreshold value. + /// When an answering machine is detected, the amount of silence (in seconds) before assuming the message has finished playing. If not provided it will default to the speechEndThreshold value. /// 5 [DataMember(Name = "machineSpeechEndThreshold", EmitDefaultValue = true)] public double? MachineSpeechEndThreshold { get; set; } diff --git a/src/Bandwidth.Standard/Model/MessageRequest.cs b/src/Bandwidth.Standard/Model/MessageRequest.cs index 0ba0cd76..942eff90 100644 --- a/src/Bandwidth.Standard/Model/MessageRequest.cs +++ b/src/Bandwidth.Standard/Model/MessageRequest.cs @@ -48,7 +48,7 @@ protected MessageRequest() { } /// /// The ID of the Application your from number or senderId is associated with in the Bandwidth App. (required). /// The phone number(s) the message should be sent to in E164 format. (required). - /// Either an alphanumeric sender ID or the sender's Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and linked to the account that is generating the message. Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore _ and ampersand &. Alphanumeric Sender IDs must contain at least one letter. (required). + /// Either an alphanumeric sender ID or the sender's Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and linked to the account that is generating the message. Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore _ and ampersand &. Alphanumeric Sender IDs must contain at least one letter. (required). /// The contents of the text message. Must be 2048 characters or less.. /// A list of URLs to include as media attachments as part of the message. Each URL can be at most 4096 characters.. /// A custom string that will be included in callback events of the message. Max 1024 characters.. @@ -98,9 +98,9 @@ protected MessageRequest() { } public List To { get; set; } /// - /// Either an alphanumeric sender ID or the sender's Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and linked to the account that is generating the message. Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore _ and ampersand &. Alphanumeric Sender IDs must contain at least one letter. + /// Either an alphanumeric sender ID or the sender's Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and linked to the account that is generating the message. Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore _ and ampersand &. Alphanumeric Sender IDs must contain at least one letter. /// - /// Either an alphanumeric sender ID or the sender's Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and linked to the account that is generating the message. Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore _ and ampersand &. Alphanumeric Sender IDs must contain at least one letter. + /// Either an alphanumeric sender ID or the sender's Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and linked to the account that is generating the message. Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore _ and ampersand &. Alphanumeric Sender IDs must contain at least one letter. /// +15551113333 [DataMember(Name = "from", IsRequired = true, EmitDefaultValue = true)] public string From { get; set; } diff --git a/src/Bandwidth.Standard/Model/RbmActionBase.cs b/src/Bandwidth.Standard/Model/RbmActionBase.cs index 77f972c3..57f83663 100644 --- a/src/Bandwidth.Standard/Model/RbmActionBase.cs +++ b/src/Bandwidth.Standard/Model/RbmActionBase.cs @@ -78,7 +78,7 @@ protected RbmActionBase() { } /// Base64 payload the customer receives when the reply is clicked. /// /// Base64 payload the customer receives when the reply is clicked. - /// [B@3ffe74da + /// [B@3d5e0bf0 [DataMember(Name = "postbackData", IsRequired = true, EmitDefaultValue = true)] public byte[] PostbackData { get; set; } diff --git a/src/Bandwidth.Standard/Model/RbmOpenUrlEnum.cs b/src/Bandwidth.Standard/Model/RbmOpenUrlEnum.cs index e3f94f13..c9e395b7 100644 --- a/src/Bandwidth.Standard/Model/RbmOpenUrlEnum.cs +++ b/src/Bandwidth.Standard/Model/RbmOpenUrlEnum.cs @@ -27,9 +27,9 @@ namespace Bandwidth.Standard.Model { /// - /// Specifies how the URL should be opened on a mobile device. - `BROWSER` Opens the URL in the device's default browser. If application is not set or the device doesn’t support WebView, this option is used by default. - `WEBVIEW` Opens the URL in an in-app WebView. + /// Specifies how the URL should be opened on a mobile device. - `BROWSER` Opens the URL in the device's default browser. If application is not set or the device doesn't support WebView, this option is used by default. - `WEBVIEW` Opens the URL in an in-app WebView. /// - /// Specifies how the URL should be opened on a mobile device. - `BROWSER` Opens the URL in the device's default browser. If application is not set or the device doesn’t support WebView, this option is used by default. - `WEBVIEW` Opens the URL in an in-app WebView. + /// Specifies how the URL should be opened on a mobile device. - `BROWSER` Opens the URL in the device's default browser. If application is not set or the device doesn't support WebView, this option is used by default. - `WEBVIEW` Opens the URL in an in-app WebView. [JsonConverter(typeof(StringEnumConverter))] public enum RbmOpenUrlEnum { diff --git a/src/Bandwidth.Standard/Model/RbmSuggestionResponse.cs b/src/Bandwidth.Standard/Model/RbmSuggestionResponse.cs index 33557207..493ca8e3 100644 --- a/src/Bandwidth.Standard/Model/RbmSuggestionResponse.cs +++ b/src/Bandwidth.Standard/Model/RbmSuggestionResponse.cs @@ -55,7 +55,7 @@ public partial class RbmSuggestionResponse : IValidatableObject /// Base64 payload the customer receives when the reply is clicked. /// /// Base64 payload the customer receives when the reply is clicked. - /// [B@3ffe74da + /// [B@3d5e0bf0 [DataMember(Name = "postbackData", EmitDefaultValue = false)] public byte[] PostbackData { get; set; } diff --git a/src/Bandwidth.Standard/Model/RbmWebViewEnum.cs b/src/Bandwidth.Standard/Model/RbmWebViewEnum.cs index 76dc5047..e082dd9e 100644 --- a/src/Bandwidth.Standard/Model/RbmWebViewEnum.cs +++ b/src/Bandwidth.Standard/Model/RbmWebViewEnum.cs @@ -27,9 +27,9 @@ namespace Bandwidth.Standard.Model { /// - /// Defines the layout of the WebView on a mobile device. It must be defined when application is set to `WEBVIEW` - `FULL` WebView takes the full screen. - `HALF` WebView takes half of the screen. - `TALL` WebView takes three-quarters of the screen. + /// Defines the layout of the WebView on a mobile device. It must be defined when application is set to `WEBVIEW` - `FULL` WebView takes the full screen. - `HALF` WebView takes half of the screen. - `TALL` WebView takes three-quarters of the screen. /// - /// Defines the layout of the WebView on a mobile device. It must be defined when application is set to `WEBVIEW` - `FULL` WebView takes the full screen. - `HALF` WebView takes half of the screen. - `TALL` WebView takes three-quarters of the screen. + /// Defines the layout of the WebView on a mobile device. It must be defined when application is set to `WEBVIEW` - `FULL` WebView takes the full screen. - `HALF` WebView takes half of the screen. - `TALL` WebView takes three-quarters of the screen. [JsonConverter(typeof(StringEnumConverter))] public enum RbmWebViewEnum { diff --git a/src/Bandwidth.Standard/Model/StatusCallback.cs b/src/Bandwidth.Standard/Model/StatusCallback.cs index 71c7922e..0c08f5ce 100644 --- a/src/Bandwidth.Standard/Model/StatusCallback.cs +++ b/src/Bandwidth.Standard/Model/StatusCallback.cs @@ -53,7 +53,7 @@ protected StatusCallback() { } /// A detailed description of the event described by the callback. (required). /// message (required). /// Optional error code, applicable only when type is `message-failed`.. - /// The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled.. + /// The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled.. public StatusCallback(DateTime time = default(DateTime), DateTime eventTime = default(DateTime), StatusCallbackTypeEnum type = default(StatusCallbackTypeEnum), string to = default(string), string description = default(string), StatusCallbackMessage message = default(StatusCallbackMessage), int errorCode = default(int), string carrierName = default(string)) { this.Time = time; @@ -127,9 +127,9 @@ protected StatusCallback() { } public int ErrorCode { get; set; } /// - /// The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. + /// The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. /// - /// The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. + /// The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. /// AT&T [DataMember(Name = "carrierName", EmitDefaultValue = false)] public string CarrierName { get; set; } diff --git a/src/Bandwidth.Standard/Model/Error.cs b/src/Bandwidth.Standard/Model/WebhookSubscriptionError.cs similarity index 86% rename from src/Bandwidth.Standard/Model/Error.cs rename to src/Bandwidth.Standard/Model/WebhookSubscriptionError.cs index 5a78134a..b8340db0 100644 --- a/src/Bandwidth.Standard/Model/Error.cs +++ b/src/Bandwidth.Standard/Model/WebhookSubscriptionError.cs @@ -27,18 +27,18 @@ namespace Bandwidth.Standard.Model { /// - /// Error + /// WebhookSubscriptionError /// - [DataContract(Name = "error")] - public partial class Error : IValidatableObject + [DataContract(Name = "webhookSubscriptionError")] + public partial class WebhookSubscriptionError : IValidatableObject { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// code. /// description. /// telephoneNumbers. - public Error(int code = default(int), string description = default(string), List telephoneNumbers = default(List)) + public WebhookSubscriptionError(int code = default(int), string description = default(string), List telephoneNumbers = default(List)) { this.Code = code; this.Description = description; @@ -70,7 +70,7 @@ public partial class Error : IValidatableObject public override string ToString() { StringBuilder sb = new StringBuilder(); - sb.Append("class Error {\n"); + sb.Append("class WebhookSubscriptionError {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); sb.Append(" TelephoneNumbers: ").Append(TelephoneNumbers).Append("\n"); diff --git a/src/Bandwidth.Standard/Model/WebhookSubscriptionsListBody.cs b/src/Bandwidth.Standard/Model/WebhookSubscriptionsListBody.cs index 8d1782c8..5ac1d63c 100644 --- a/src/Bandwidth.Standard/Model/WebhookSubscriptionsListBody.cs +++ b/src/Bandwidth.Standard/Model/WebhookSubscriptionsListBody.cs @@ -43,7 +43,7 @@ protected WebhookSubscriptionsListBody() { } /// links. /// errors. /// data (required). - public WebhookSubscriptionsListBody(LinksObject links = default(LinksObject), List errors = default(List), List data = default(List)) + public WebhookSubscriptionsListBody(LinksObject links = default(LinksObject), List errors = default(List), List data = default(List)) { // to ensure "data" is required (not null) if (data == null) @@ -65,7 +65,7 @@ protected WebhookSubscriptionsListBody() { } /// Gets or Sets Errors /// [DataMember(Name = "errors", EmitDefaultValue = false)] - public List Errors { get; set; } + public List Errors { get; set; } /// /// Gets or Sets Data From fae6b036546c8d03ee4fbaa3cf1e0fac5fed3ab7 Mon Sep 17 00:00:00 2001 From: ckoegel Date: Wed, 22 Apr 2026 17:00:02 -0400 Subject: [PATCH 3/6] remove old tests --- .../Unit/Model/ErrorResponseTests.cs | 90 ------------------- .../Unit/Model/ErrorTests.cs | 88 ------------------ 2 files changed, 178 deletions(-) delete mode 100644 src/Bandwidth.Standard.Test/Unit/Model/ErrorResponseTests.cs delete mode 100644 src/Bandwidth.Standard.Test/Unit/Model/ErrorTests.cs diff --git a/src/Bandwidth.Standard.Test/Unit/Model/ErrorResponseTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/ErrorResponseTests.cs deleted file mode 100644 index 8d742b62..00000000 --- a/src/Bandwidth.Standard.Test/Unit/Model/ErrorResponseTests.cs +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Bandwidth - * - * Bandwidth's Communication APIs - * - * The version of the OpenAPI document: 1.0.0 - * Contact: letstalk@bandwidth.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -using System; -using System.Linq; -using System.IO; -using System.Collections.Generic; -using Bandwidth.Standard.Model; -using Bandwidth.Standard.Client; -using System.Reflection; -using Newtonsoft.Json; - -namespace Bandwidth.Standard.Test.Unit.Model -{ - /// - /// Class for testing ErrorResponse - /// - public class ErrorResponseTests : IDisposable - { - private ErrorResponse instance; - - public ErrorResponseTests() - { - var link = new Link(rel: "self", href: "/accounts/123/endpoints"); - var error = new Error(code: 400, description: "Invalid input"); - - instance = new ErrorResponse( - links: new List { link }, - data: new object(), - errors: new List { error } - ); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of ErrorResponse - /// - [Fact] - public void ErrorResponseInstanceTest() - { - Assert.IsType(instance); - } - - /// - /// Test the property 'Links' - /// - [Fact] - public void LinksTest() - { - Assert.IsType>(instance.Links); - Assert.NotNull(instance.Links); - Assert.Single(instance.Links); - Assert.Equal("self", instance.Links[0].Rel); - } - - /// - /// Test the property 'Data' - /// - [Fact] - public void DataTest() - { - Assert.NotNull(instance.Data); - } - - /// - /// Test the property 'Errors' - /// - [Fact] - public void ErrorsTest() - { - Assert.IsType>(instance.Errors); - Assert.NotNull(instance.Errors); - Assert.Single(instance.Errors); - } - } -} diff --git a/src/Bandwidth.Standard.Test/Unit/Model/ErrorTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/ErrorTests.cs deleted file mode 100644 index 18f78e25..00000000 --- a/src/Bandwidth.Standard.Test/Unit/Model/ErrorTests.cs +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Bandwidth - * - * Bandwidth's Communication APIs - * - * The version of the OpenAPI document: 1.0.0 - * Contact: letstalk@bandwidth.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -using System; -using System.Linq; -using System.IO; -using System.Collections.Generic; -using Bandwidth.Standard.Model; -using Bandwidth.Standard.Client; -using System.Reflection; -using Newtonsoft.Json; - -namespace Bandwidth.Standard.Test.Unit.Model -{ - /// - /// Class for testing Error - /// - public class ErrorTests : IDisposable - { - private Error instance; - private TelephoneNumber telephoneNumber; - - public ErrorTests() - { - telephoneNumber = new TelephoneNumber(varTelephoneNumber: "1234567890"); - - instance = new Error( - code: 123456, - description: "Test Description", - telephoneNumbers: new List { telephoneNumber } - ); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of Error - /// - [Fact] - public void ErrorInstanceTest() - { - Assert.IsType(instance); - } - - /// - /// Test the property 'Code' - /// - [Fact] - public void CodeTest() - { - Assert.IsType(instance.Code); - Assert.Equal(123456, instance.Code); - } - - /// - /// Test the property 'Description' - /// - [Fact] - public void DescriptionTest() - { - Assert.IsType(instance.Description); - Assert.Equal("Test Description", instance.Description); - } - - /// - /// Test the property 'TelephoneNumbers' - /// - [Fact] - public void TelephoneNumbersTest() - { - Assert.IsType>(instance.TelephoneNumbers); - Assert.Equal(telephoneNumber, instance.TelephoneNumbers.First()); - } - } -} From b220c4a594d0e80298f445530ef8cb5a678e7597 Mon Sep 17 00:00:00 2001 From: ckoegel Date: Wed, 22 Apr 2026 17:10:17 -0400 Subject: [PATCH 4/6] update tests --- .../Unit/Api/EndpointsApiTests.cs | 14 +-- .../Unit/Model/BrtcErrorResponseTests.cs | 82 +++++++++++++ .../Unit/Model/BrtcErrorSourceTests.cs | 96 ++++++++++++++++ .../Unit/Model/BrtcErrorTests.cs | 108 ++++++++++++++++++ .../Unit/Model/BrtcLinkTests.cs | 81 +++++++++++++ .../Unit/Model/CreateEndpointResponseTests.cs | 10 +- .../Unit/Model/EndpointResponseTests.cs | 10 +- .../Unit/Model/ListEndpointsResponseTests.cs | 10 +- .../Model/WebhookSubscriptionErrorTests.cs | 86 ++++++++++++++ .../WebhookSubscriptionsListBodyTests.cs | 4 +- 10 files changed, 477 insertions(+), 24 deletions(-) create mode 100644 src/Bandwidth.Standard.Test/Unit/Model/BrtcErrorResponseTests.cs create mode 100644 src/Bandwidth.Standard.Test/Unit/Model/BrtcErrorSourceTests.cs create mode 100644 src/Bandwidth.Standard.Test/Unit/Model/BrtcErrorTests.cs create mode 100644 src/Bandwidth.Standard.Test/Unit/Model/BrtcLinkTests.cs create mode 100644 src/Bandwidth.Standard.Test/Unit/Model/WebhookSubscriptionErrorTests.cs diff --git a/src/Bandwidth.Standard.Test/Unit/Api/EndpointsApiTests.cs b/src/Bandwidth.Standard.Test/Unit/Api/EndpointsApiTests.cs index f49b38b3..9a65fd59 100644 --- a/src/Bandwidth.Standard.Test/Unit/Api/EndpointsApiTests.cs +++ b/src/Bandwidth.Standard.Test/Unit/Api/EndpointsApiTests.cs @@ -77,7 +77,7 @@ public void CreateEndpointTest() ); CreateEndpointRequest createEndpointRequest = new CreateEndpointRequest(webRtcRequest); - var link = new Link(rel: "self", href: "/accounts/9900000/endpoints/e-15ac29a2"); + var link = new BrtcLink(rel: "self", href: "/accounts/9900000/endpoints/e-15ac29a2"); CreateEndpointResponseData responseData = new CreateEndpointResponseData( endpointId: "e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85", @@ -90,9 +90,9 @@ public void CreateEndpointTest() ); CreateEndpointResponse endpointResponse = new CreateEndpointResponse( - links: new List { link }, + links: new List { link }, data: responseData, - errors: new List() + errors: new List() ); var apiResponse = new ApiResponse(HttpStatusCode.Created, endpointResponse); @@ -180,7 +180,7 @@ public void GetEndpointTest() string endpointId = "e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85"; var endpointResponse = new EndpointResponse( - links: new List(), + links: new List(), data: new Endpoint( endpointId: endpointId, type: EndpointTypeEnum.WEBRTC, @@ -188,7 +188,7 @@ public void GetEndpointTest() creationTimestamp: new DateTime(2021, 1, 1, 0, 0, 0, DateTimeKind.Utc), expirationTimestamp: new DateTime(2021, 1, 2, 0, 0, 0, DateTimeKind.Utc) ), - errors: new List() + errors: new List() ); var apiResponse = new ApiResponse(HttpStatusCode.OK, endpointResponse); mockClient.Setup(x => x.Get("/accounts/{accountId}/endpoints/{endpointId}", It.IsAny(), fakeConfiguration)).Returns(apiResponse); @@ -262,9 +262,9 @@ public void ListEndpointsTest() string accountId = "9900000"; var listResponse = new ListEndpointsResponse( - links: new List(), + links: new List(), data: new List(), - errors: new List() + errors: new List() ); var apiResponse = new ApiResponse(HttpStatusCode.OK, listResponse); mockClient.Setup(x => x.Get("/accounts/{accountId}/endpoints", It.IsAny(), fakeConfiguration)).Returns(apiResponse); diff --git a/src/Bandwidth.Standard.Test/Unit/Model/BrtcErrorResponseTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/BrtcErrorResponseTests.cs new file mode 100644 index 00000000..ff15d429 --- /dev/null +++ b/src/Bandwidth.Standard.Test/Unit/Model/BrtcErrorResponseTests.cs @@ -0,0 +1,82 @@ +/* + * Bandwidth + * + * Bandwidth's Communication APIs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: letstalk@bandwidth.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Bandwidth.Standard.Model; +using Bandwidth.Standard.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Bandwidth.Standard.Test.Unit.Model +{ + /// + /// Class for testing BrtcErrorResponse + /// + public class BrtcErrorResponseTests : IDisposable + { + private BrtcErrorResponse instance; + + public BrtcErrorResponseTests() + { + instance = new BrtcErrorResponse( + links: new List(), + data: new Object(), + errors: new List() + ); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of BrtcErrorResponse + /// + [Fact] + public void BrtcErrorResponseInstanceTest() + { + Assert.IsType(instance); + } + + /// + /// Test the property 'Links' + /// + [Fact] + public void LinksTest() + { + Assert.IsType>(instance.Links); + } + + /// + /// Test the property 'Data' + /// + [Fact] + public void DataTest() + { + Assert.NotNull(instance.Data); + } + + /// + /// Test the property 'Errors' + /// + [Fact] + public void ErrorsTest() + { + Assert.IsType>(instance.Errors); + } + } +} diff --git a/src/Bandwidth.Standard.Test/Unit/Model/BrtcErrorSourceTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/BrtcErrorSourceTests.cs new file mode 100644 index 00000000..7ebc9f73 --- /dev/null +++ b/src/Bandwidth.Standard.Test/Unit/Model/BrtcErrorSourceTests.cs @@ -0,0 +1,96 @@ +/* + * Bandwidth + * + * Bandwidth's Communication APIs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: letstalk@bandwidth.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Bandwidth.Standard.Model; +using Bandwidth.Standard.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Bandwidth.Standard.Test.Unit.Model +{ + /// + /// Class for testing BrtcErrorSource + /// + public class BrtcErrorSourceTests : IDisposable + { + private BrtcErrorSource instance; + + public BrtcErrorSourceTests() + { + instance = new BrtcErrorSource( + varParameter: "accountId", + field: "type", + header: "Authorization", + reference: "https://developer.bandwidth.com/errors/1001" + ); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of BrtcErrorSource + /// + [Fact] + public void BrtcErrorSourceInstanceTest() + { + Assert.IsType(instance); + } + + /// + /// Test the property 'Parameter' + /// + [Fact] + public void ParameterTest() + { + Assert.IsType(instance.Parameter); + Assert.Equal("accountId", instance.Parameter); + } + + /// + /// Test the property 'Field' + /// + [Fact] + public void FieldTest() + { + Assert.IsType(instance.Field); + Assert.Equal("type", instance.Field); + } + + /// + /// Test the property 'Header' + /// + [Fact] + public void HeaderTest() + { + Assert.IsType(instance.Header); + Assert.Equal("Authorization", instance.Header); + } + + /// + /// Test the property 'Reference' + /// + [Fact] + public void ReferenceTest() + { + Assert.IsType(instance.Reference); + Assert.Equal("https://developer.bandwidth.com/errors/1001", instance.Reference); + } + } +} diff --git a/src/Bandwidth.Standard.Test/Unit/Model/BrtcErrorTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/BrtcErrorTests.cs new file mode 100644 index 00000000..bca4a379 --- /dev/null +++ b/src/Bandwidth.Standard.Test/Unit/Model/BrtcErrorTests.cs @@ -0,0 +1,108 @@ +/* + * Bandwidth + * + * Bandwidth's Communication APIs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: letstalk@bandwidth.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Bandwidth.Standard.Model; +using Bandwidth.Standard.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Bandwidth.Standard.Test.Unit.Model +{ + /// + /// Class for testing BrtcError + /// + public class BrtcErrorTests : IDisposable + { + private BrtcError instance; + + public BrtcErrorTests() + { + var source = new BrtcErrorSource(varParameter: "accountId"); + instance = new BrtcError( + id: Guid.Parse("550e8400-e29b-41d4-a716-446655440000"), + type: "validation", + description: "Invalid account ID", + code: "1001", + source: source + ); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of BrtcError + /// + [Fact] + public void BrtcErrorInstanceTest() + { + Assert.IsType(instance); + } + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + Assert.IsType(instance.Id); + Assert.Equal(Guid.Parse("550e8400-e29b-41d4-a716-446655440000"), instance.Id); + } + + /// + /// Test the property 'Type' + /// + [Fact] + public void TypeTest() + { + Assert.IsType(instance.Type); + Assert.Equal("validation", instance.Type); + } + + /// + /// Test the property 'Description' + /// + [Fact] + public void DescriptionTest() + { + Assert.IsType(instance.Description); + Assert.Equal("Invalid account ID", instance.Description); + } + + /// + /// Test the property 'Code' + /// + [Fact] + public void CodeTest() + { + Assert.IsType(instance.Code); + Assert.Equal("1001", instance.Code); + } + + /// + /// Test the property 'Source' + /// + [Fact] + public void SourceTest() + { + Assert.IsType(instance.Source); + Assert.Equal("accountId", instance.Source.Parameter); + } + } +} diff --git a/src/Bandwidth.Standard.Test/Unit/Model/BrtcLinkTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/BrtcLinkTests.cs new file mode 100644 index 00000000..1df23122 --- /dev/null +++ b/src/Bandwidth.Standard.Test/Unit/Model/BrtcLinkTests.cs @@ -0,0 +1,81 @@ +/* + * Bandwidth + * + * Bandwidth's Communication APIs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: letstalk@bandwidth.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Bandwidth.Standard.Model; +using Bandwidth.Standard.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Bandwidth.Standard.Test.Unit.Model +{ + /// + /// Class for testing BrtcLink + /// + public class BrtcLinkTests : IDisposable + { + private BrtcLink instance; + + public BrtcLinkTests() + { + instance = new BrtcLink(href: "https://api.example.com/resource", rel: "self", method: "GET"); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of BrtcLink + /// + [Fact] + public void BrtcLinkInstanceTest() + { + Assert.IsType(instance); + } + + /// + /// Test the property 'Href' + /// + [Fact] + public void HrefTest() + { + Assert.IsType(instance.Href); + Assert.Equal("https://api.example.com/resource", instance.Href); + } + + /// + /// Test the property 'Rel' + /// + [Fact] + public void RelTest() + { + Assert.IsType(instance.Rel); + Assert.Equal("self", instance.Rel); + } + + /// + /// Test the property 'Method' + /// + [Fact] + public void MethodTest() + { + Assert.IsType(instance.Method); + Assert.Equal("GET", instance.Method); + } + } +} diff --git a/src/Bandwidth.Standard.Test/Unit/Model/CreateEndpointResponseTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/CreateEndpointResponseTests.cs index fe50958b..eaf6d6b4 100644 --- a/src/Bandwidth.Standard.Test/Unit/Model/CreateEndpointResponseTests.cs +++ b/src/Bandwidth.Standard.Test/Unit/Model/CreateEndpointResponseTests.cs @@ -44,12 +44,12 @@ public CreateEndpointResponseTests() token: "test-token-abc123" ); - var link = new Link(rel: "self", href: "/accounts/123/endpoints/e-15ac29a2"); + var link = new BrtcLink(rel: "self", href: "/accounts/123/endpoints/e-15ac29a2"); instance = new CreateEndpointResponse( - links: new List { link }, + links: new List { link }, data: responseData, - errors: new List() + errors: new List() ); } @@ -73,7 +73,7 @@ public void CreateEndpointResponseInstanceTest() [Fact] public void LinksTest() { - Assert.IsType>(instance.Links); + Assert.IsType>(instance.Links); Assert.Single(instance.Links); Assert.Equal("self", instance.Links[0].Rel); Assert.Equal("/accounts/123/endpoints/e-15ac29a2", instance.Links[0].Href); @@ -99,7 +99,7 @@ public void DataTest() [Fact] public void ErrorsTest() { - Assert.IsType>(instance.Errors); + Assert.IsType>(instance.Errors); Assert.Empty(instance.Errors); } diff --git a/src/Bandwidth.Standard.Test/Unit/Model/EndpointResponseTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/EndpointResponseTests.cs index d6656582..cfdb0bfa 100644 --- a/src/Bandwidth.Standard.Test/Unit/Model/EndpointResponseTests.cs +++ b/src/Bandwidth.Standard.Test/Unit/Model/EndpointResponseTests.cs @@ -43,12 +43,12 @@ public EndpointResponseTests() tag: "test-tag" ); - var link = new Link(rel: "self", href: "/accounts/123/endpoints/e-15ac29a2"); + var link = new BrtcLink(rel: "self", href: "/accounts/123/endpoints/e-15ac29a2"); instance = new EndpointResponse( - links: new List { link }, + links: new List { link }, data: endpointData, - errors: new List() + errors: new List() ); } @@ -72,7 +72,7 @@ public void EndpointResponseInstanceTest() [Fact] public void LinksTest() { - Assert.IsType>(instance.Links); + Assert.IsType>(instance.Links); Assert.Single(instance.Links); Assert.Equal("self", instance.Links[0].Rel); Assert.Equal("/accounts/123/endpoints/e-15ac29a2", instance.Links[0].Href); @@ -97,7 +97,7 @@ public void DataTest() [Fact] public void ErrorsTest() { - Assert.IsType>(instance.Errors); + Assert.IsType>(instance.Errors); Assert.Empty(instance.Errors); } diff --git a/src/Bandwidth.Standard.Test/Unit/Model/ListEndpointsResponseTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/ListEndpointsResponseTests.cs index c56f0955..f64837db 100644 --- a/src/Bandwidth.Standard.Test/Unit/Model/ListEndpointsResponseTests.cs +++ b/src/Bandwidth.Standard.Test/Unit/Model/ListEndpointsResponseTests.cs @@ -52,14 +52,14 @@ public ListEndpointsResponseTests() tag: "endpoint-2" ); - var selfLink = new Link(rel: "self", href: "/accounts/123/endpoints"); + var selfLink = new BrtcLink(rel: "self", href: "/accounts/123/endpoints"); var page = new Page(pageSize: 10, totalElements: 2, totalPages: 1, pageNumber: 0); instance = new ListEndpointsResponse( - links: new List { selfLink }, + links: new List { selfLink }, page: page, data: new List { endpoint1, endpoint2 }, - errors: new List() + errors: new List() ); } @@ -83,7 +83,7 @@ public void ListEndpointsResponseInstanceTest() [Fact] public void LinksTest() { - Assert.IsType>(instance.Links); + Assert.IsType>(instance.Links); Assert.Single(instance.Links); Assert.Equal("self", instance.Links[0].Rel); Assert.Equal("/accounts/123/endpoints", instance.Links[0].Href); @@ -120,7 +120,7 @@ public void DataTest() [Fact] public void ErrorsTest() { - Assert.IsType>(instance.Errors); + Assert.IsType>(instance.Errors); Assert.Empty(instance.Errors); } diff --git a/src/Bandwidth.Standard.Test/Unit/Model/WebhookSubscriptionErrorTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/WebhookSubscriptionErrorTests.cs new file mode 100644 index 00000000..f0ee9fd6 --- /dev/null +++ b/src/Bandwidth.Standard.Test/Unit/Model/WebhookSubscriptionErrorTests.cs @@ -0,0 +1,86 @@ +/* + * Bandwidth + * + * Bandwidth's Communication APIs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: letstalk@bandwidth.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Bandwidth.Standard.Model; +using Bandwidth.Standard.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Bandwidth.Standard.Test.Unit.Model +{ + /// + /// Class for testing WebhookSubscriptionError + /// + public class WebhookSubscriptionErrorTests : IDisposable + { + private WebhookSubscriptionError instance; + + public WebhookSubscriptionErrorTests() + { + instance = new WebhookSubscriptionError( + code: 4001, + description: "Invalid telephone number", + telephoneNumbers: new List { new TelephoneNumber(varTelephoneNumber: "+19195551234") } + ); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of WebhookSubscriptionError + /// + [Fact] + public void WebhookSubscriptionErrorInstanceTest() + { + Assert.IsType(instance); + } + + /// + /// Test the property 'Code' + /// + [Fact] + public void CodeTest() + { + Assert.IsType(instance.Code); + Assert.Equal(4001, instance.Code); + } + + /// + /// Test the property 'Description' + /// + [Fact] + public void DescriptionTest() + { + Assert.IsType(instance.Description); + Assert.Equal("Invalid telephone number", instance.Description); + } + + /// + /// Test the property 'TelephoneNumbers' + /// + [Fact] + public void TelephoneNumbersTest() + { + Assert.IsType>(instance.TelephoneNumbers); + Assert.Single(instance.TelephoneNumbers); + Assert.Equal("+19195551234", instance.TelephoneNumbers[0].VarTelephoneNumber); + } + } +} diff --git a/src/Bandwidth.Standard.Test/Unit/Model/WebhookSubscriptionsListBodyTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/WebhookSubscriptionsListBodyTests.cs index b66586a7..55170008 100644 --- a/src/Bandwidth.Standard.Test/Unit/Model/WebhookSubscriptionsListBodyTests.cs +++ b/src/Bandwidth.Standard.Test/Unit/Model/WebhookSubscriptionsListBodyTests.cs @@ -33,7 +33,7 @@ public WebhookSubscriptionsListBodyTests() { instance = new WebhookSubscriptionsListBody( links: new LinksObject(), - errors: new List(), + errors: new List(), data: new List() ); } @@ -67,7 +67,7 @@ public void LinksTest() [Fact] public void ErrorsTest() { - Assert.IsType>(instance.Errors); + Assert.IsType>(instance.Errors); } /// From 03c03a682b3d755f3069ce1777db2dee09cb9468 Mon Sep 17 00:00:00 2001 From: ckoegel Date: Mon, 27 Apr 2026 11:30:48 -0400 Subject: [PATCH 5/6] add `generate-model-tests` script --- generate-model-tests.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 generate-model-tests.sh diff --git a/generate-model-tests.sh b/generate-model-tests.sh new file mode 100644 index 00000000..e62a84da --- /dev/null +++ b/generate-model-tests.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# Generates new test files for models. Run from the root. + +# allow generator to write test files +sed -i.bak 's/^src\/Bandwidth\.Standard\.Test\//# src\/Bandwidth.Standard.Test\//' .openapi-generator-ignore && rm .openapi-generator-ignore.bak +# remove current test files for models +rm -f ./src/Bandwidth.Standard.Test/Unit/Model/* +# generate new test files for models +openapi-generator-cli generate -i bandwidth.yml -o ./ -c openapi-config.yml -g csharp > /dev/null +# move generated test files to the correct location +mv ./src/Bandwidth.Standard.Test/Model/* ./src/Bandwidth.Standard.Test/Unit/Model/ +# fix namespace declarations in moved test files +sed -i '' 's/namespace Bandwidth\.Standard\.Test\.Model/namespace Bandwidth.Standard.Test.Unit.Model/g' ./src/Bandwidth.Standard.Test/Unit/Model/*.cs +# remove the rest of the generated files +rm -rf ./src/Bandwidth.Standard.Test/Api ./src/Bandwidth.Standard.Test/Model +# discard changes to modified files only (leaves deletions and new test files intact) +modified=$(git diff --name-only --diff-filter=M) && [ -n "$modified" ] && echo "$modified" | xargs git checkout -- From c52e94f86cd58b53340203048330a3746ef7de75 Mon Sep 17 00:00:00 2001 From: ckoegel Date: Mon, 27 Apr 2026 11:36:12 -0400 Subject: [PATCH 6/6] actions/checkout@v6 --- .github/workflows/deploy.yml | 2 +- .github/workflows/test-pr.yml | 2 +- .github/workflows/test-smoke.yml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cc7e7cc2..f96c2a0a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -45,7 +45,7 @@ jobs: fi - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Setup Dotnet uses: actions/setup-dotnet@v5 diff --git a/.github/workflows/test-pr.yml b/.github/workflows/test-pr.yml index ac1cae68..f3b39fb7 100644 --- a/.github/workflows/test-pr.yml +++ b/.github/workflows/test-pr.yml @@ -38,7 +38,7 @@ jobs: fail-fast: false steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Setup .NET uses: actions/setup-dotnet@v5 diff --git a/.github/workflows/test-smoke.yml b/.github/workflows/test-smoke.yml index 6cfac2de..fd0f93af 100644 --- a/.github/workflows/test-smoke.yml +++ b/.github/workflows/test-smoke.yml @@ -37,7 +37,7 @@ jobs: MANTECA_APPLICATION_ID: ${{ secrets.MANTECA_APPLICATION_ID }} steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Setup .NET uses: actions/setup-dotnet@v5 @@ -64,7 +64,7 @@ jobs: MANTECA_APPLICATION_ID: ${{ secrets.MANTECA_UP_APPLICATION_ID }} steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Setup .NET uses: actions/setup-dotnet@v5