Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SWI-3915: Regenerate C# SDK and add tests for new endpoint #82

Merged
merged 3 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ docs/VerifyCodeResponse.md
docs/VoiceApiError.md
docs/VoiceCodeResponse.md
git_push.sh
src/Bandwidth.Standard.Test/Bandwidth.Standard.Test.csproj
src/Bandwidth.Standard/Api/CallsApi.cs
src/Bandwidth.Standard/Api/ConferencesApi.cs
src/Bandwidth.Standard/Api/MFAApi.cs
Expand All @@ -108,7 +107,6 @@ src/Bandwidth.Standard/Api/MessagesApi.cs
src/Bandwidth.Standard/Api/PhoneNumberLookupApi.cs
src/Bandwidth.Standard/Api/RecordingsApi.cs
src/Bandwidth.Standard/Api/StatisticsApi.cs
src/Bandwidth.Standard/Bandwidth.Standard.csproj
src/Bandwidth.Standard/Client/ApiClient.cs
src/Bandwidth.Standard/Client/ApiException.cs
src/Bandwidth.Standard/Client/ApiResponse.cs
Expand Down
12 changes: 6 additions & 6 deletions Bandwidth.Standard.sln
Original file line number Diff line number Diff line change
Expand Up @@ -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", "{30F08C47-9EF1-4C33-AF8F-445E79C564E8}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{D0D1E70C-97DD-478D-96AA-B7D9C039D4BA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard.Test", "src\Bandwidth.Standard.Test\Bandwidth.Standard.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
EndProject
Expand All @@ -12,10 +12,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{30F08C47-9EF1-4C33-AF8F-445E79C564E8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{30F08C47-9EF1-4C33-AF8F-445E79C564E8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{30F08C47-9EF1-4C33-AF8F-445E79C564E8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{30F08C47-9EF1-4C33-AF8F-445E79C564E8}.Release|Any CPU.Build.0 = Release|Any CPU
{D0D1E70C-97DD-478D-96AA-B7D9C039D4BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D0D1E70C-97DD-478D-96AA-B7D9C039D4BA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D0D1E70C-97DD-478D-96AA-B7D9C039D4BA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D0D1E70C-97DD-478D-96AA-B7D9C039D4BA}.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
Expand All @@ -24,4 +24,4 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
EndGlobal
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*CallsApi* | [**CreateCall**](docs/CallsApi.md#createcall) | **POST** /accounts/{accountId}/calls | Create Call
*CallsApi* | [**GetCallState**](docs/CallsApi.md#getcallstate) | **GET** /accounts/{accountId}/calls/{callId} | Get Call State Information
*CallsApi* | [**ListCalls**](docs/CallsApi.md#listcalls) | **GET** /accounts/{accountId}/calls | Get Calls
*CallsApi* | [**UpdateCall**](docs/CallsApi.md#updatecall) | **POST** /accounts/{accountId}/calls/{callId} | Update Call
*CallsApi* | [**UpdateCallBxml**](docs/CallsApi.md#updatecallbxml) | **PUT** /accounts/{accountId}/calls/{callId}/bxml | Update Call BXML
*ConferencesApi* | [**DownloadConferenceRecording**](docs/ConferencesApi.md#downloadconferencerecording) | **GET** /accounts/{accountId}/conferences/{conferenceId}/recordings/{recordingId}/media | Download Conference Recording
Expand Down
232 changes: 232 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,184 @@ paths:
- description: Production
url: https://messaging.bandwidth.com/api/v2
/accounts/{accountId}/calls:
get:
description: |-
Returns a max of 10000 calls, sorted by `createdTime` from oldest to newest.

**NOTE:** If the number of calls in the account is bigger than `pageSize`, a `Link` header (with format `<{url}>; rel="next"`) will be returned in the response. The url can be used to retrieve the next page of call records.
Also, call information is kept for 7 days after the calls are hung up. If you attempt to retrieve information for a call that is older than 7 days, you will get an empty array [] in response.
operationId: listCalls
parameters:
- description: Your Bandwidth Account ID.
example: "9900000"
explode: false
in: path
name: accountId
required: true
schema:
type: string
style: simple
- description: Filter results by the `to` field.
example: '%2b19195551234'
explode: true
in: query
name: to
required: false
schema:
type: string
style: form
- description: Filter results by the `from` field.
example: '%2b19195554321'
explode: true
in: query
name: from
required: false
schema:
type: string
style: form
- description: Filter results to calls which have a `startTime` after or including
`minStartTime` (in ISO8601 format).
example: 2022-06-21T19:13:21Z
explode: true
in: query
name: minStartTime
required: false
schema:
type: string
style: form
- description: Filter results to calls which have a `startTime` before or including
`maxStartTime` (in ISO8601 format).
example: 2022-06-21T19:13:21Z
explode: true
in: query
name: maxStartTime
required: false
schema:
type: string
style: form
- description: Filter results to calls with specified call Disconnect Cause.
example: hangup
explode: true
in: query
name: disconnectCause
required: false
schema:
type: string
style: form
- description: Specifies the max number of calls that will be returned.
example: 500
explode: true
in: query
name: pageSize
required: false
schema:
default: 1000
format: int32
maximum: 10000
minimum: 1
type: integer
style: form
- description: "Not intended for explicit use. To use pagination, follow the\
\ links in the `Link` header of the response, as indicated in the endpoint\
\ description."
explode: true
in: query
name: pageToken
required: false
schema:
type: string
style: form
responses:
"200":
content:
application/json:
schema:
items:
$ref: '#/components/schemas/callState'
type: array
description: Calls retrieved successfully
"400":
content:
application/json:
examples:
badRequestErrorExample:
$ref: '#/components/examples/voiceBadRequestErrorExample'
schema:
$ref: '#/components/schemas/voiceApiError'
description: Bad Request
"401":
content:
application/json:
examples:
unauthorizedErrorExample:
$ref: '#/components/examples/voiceUnauthorizedErrorExample'
schema:
$ref: '#/components/schemas/voiceApiError'
description: Unauthorized
"403":
content:
application/json:
examples:
forbiddenErrorExample:
$ref: '#/components/examples/voiceForbiddenErrorExample'
schema:
$ref: '#/components/schemas/voiceApiError'
description: Forbidden
"404":
content:
application/json:
examples:
notFoundErrorExample:
$ref: '#/components/examples/voiceNotFoundErrorExample'
schema:
$ref: '#/components/schemas/voiceApiError'
description: Not Found
"405":
content:
application/json:
examples:
notAllowedErrorExample:
$ref: '#/components/examples/voiceNotAllowedErrorExample'
schema:
$ref: '#/components/schemas/voiceApiError'
description: Method Not Allowed
"415":
content:
application/json:
examples:
tooManyRequestsErrorExample:
$ref: '#/components/examples/voiceUnsupportedMediaTypeErrorExample'
schema:
$ref: '#/components/schemas/voiceApiError'
description: Unsupported Media Type
"429":
content:
application/json:
examples:
tooManyRequestsErrorExample:
$ref: '#/components/examples/voiceTooManyRequestsErrorExample'
schema:
$ref: '#/components/schemas/voiceApiError'
description: Too Many Requests
headers:
Retry-After:
description: When you should try your request again.
explode: false
schema:
type: string
style: simple
"500":
content:
application/json:
examples:
internalServerErrorExample:
$ref: '#/components/examples/voiceInternalServerErrorExample'
schema:
$ref: '#/components/schemas/voiceApiError'
description: Internal Server Error
summary: Get Calls
tags:
- Calls
post:
description: |-
Creates an outbound phone call.
Expand Down Expand Up @@ -4552,6 +4730,42 @@ components:
minimum: 1
type: integer
style: form
minStartTimeCalls:
description: Filter results to calls which have a `startTime` after or including
`minStartTime` (in ISO8601 format).
example: 2022-06-21T19:13:21Z
explode: true
in: query
name: minStartTime
required: false
schema:
type: string
style: form
maxStartTimeCalls:
description: Filter results to calls which have a `startTime` before or including
`maxStartTime` (in ISO8601 format).
example: 2022-06-21T19:13:21Z
explode: true
in: query
name: maxStartTime
required: false
schema:
type: string
style: form
pageSizeCalls:
description: Specifies the max number of calls that will be returned.
example: 500
explode: true
in: query
name: pageSize
required: false
schema:
default: 1000
format: int32
maximum: 10000
minimum: 1
type: integer
style: form
pageToken1:
description: "Not intended for explicit use. To use pagination, follow the links\
\ in the `Link` header of the response, as indicated in the endpoint description."
Expand All @@ -4562,6 +4776,16 @@ components:
schema:
type: string
style: form
disconnectCause:
description: Filter results to calls with specified call Disconnect Cause.
example: hangup
explode: true
in: query
name: disconnectCause
required: false
schema:
type: string
style: form
requestId:
description: The phone number lookup request ID from Bandwidth.
example: 004223a0-8b17-41b1-bf81-20732adf5590
Expand Down Expand Up @@ -4972,6 +5196,14 @@ components:
schema:
$ref: '#/components/schemas/callState'
description: Call found
listCallsResponse:
content:
application/json:
schema:
items:
$ref: '#/components/schemas/callState'
type: array
description: Calls retrieved successfully
getStatisticsResponse:
content:
application/json:
Expand Down
Loading
Loading