Skip to content

Commit 4b04e23

Browse files
Merge pull request #141 from Bandwidth/SWI-5508
SWI-5508 Update SDK Based on Recent Spec Changes
2 parents 15a1211 + 13d21c4 commit 4b04e23

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+260
-241
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Add this dependency to your project's POM:
4141
<dependency>
4242
<groupId>com.bandwidth.sdk</groupId>
4343
<artifactId>bandwidth-sdk</artifactId>
44-
<version>10.0.0</version>
44+
<version>10.1.0</version>
4545
<scope>compile</scope>
4646
</dependency>
4747
```
@@ -57,7 +57,7 @@ Add this dependency to your project's build file:
5757
}
5858
5959
dependencies {
60-
implementation "com.bandwidth.sdk:bandwidth-sdk:10.0.0"
60+
implementation "com.bandwidth.sdk:bandwidth-sdk:10.1.0"
6161
}
6262
```
6363

@@ -71,7 +71,7 @@ mvn clean package
7171

7272
Then manually install the following JARs:
7373

74-
* `target/bandwidth-sdk-10.0.0.jar`
74+
* `target/bandwidth-sdk-10.1.0.jar`
7575
* `target/lib/*.jar`
7676

7777
## Getting Started

api/openapi.yaml

Lines changed: 105 additions & 125 deletions
Large diffs are not rendered by default.

bandwidth.yml

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@ paths:
11731173
[startTranscription](/docs/voice/bxml/startTranscription).
11741174
11751175
1176-
Note: After the deletion is requested and a `204` is returned, the
1176+
Note: After the deletion is requested and a `200` is returned, the
11771177
transcription will not be accessible anymore. However, it is not deleted
11781178
immediately. This deletion process, while transparent and irreversible,
11791179
can take an additional 24 to 48 hours.
@@ -1183,7 +1183,7 @@ paths:
11831183
- $ref: '#/components/parameters/callId'
11841184
- $ref: '#/components/parameters/transcriptionId'
11851185
responses:
1186-
'204':
1186+
'200':
11871187
$ref: '#/components/responses/deleteCallTranscriptionResponse'
11881188
'400':
11891189
$ref: '#/components/responses/voiceBadRequestError'
@@ -2152,11 +2152,16 @@ components:
21522152
description: >-
21532153
A Bandwidth phone number on your account the call should come
21542154
2155-
from (must be in E.164 format, like `+15555551212`, or be one of the
2156-
following
2157-
2158-
strings: `Restricted`, `Anonymous`, `Private`, or `Unavailable`).
2159-
example: '+19195554321'
2155+
from (must be in E.164 format, like `+15555551212`) even if
2156+
`privacy` is set to true.
2157+
example: '+15555551212'
2158+
privacy:
2159+
nullable: true
2160+
type: boolean
2161+
description: >-
2162+
Hide the calling number. The `displayName` field can be used to
2163+
customize the displayed name.
2164+
example: false
21602165
displayName:
21612166
nullable: true
21622167
type: string
@@ -2165,6 +2170,9 @@ components:
21652170
21662171
May not exceed 256 characters nor contain control characters such as
21672172
new lines.
2173+
2174+
If `privacy` is true, only the following values are valid:
2175+
`Restricted`, `Anonymous`, `Private`, or `Unavailable`.
21682176
maxLength: 256
21692177
example: John Doe
21702178
uui:
@@ -2488,7 +2496,7 @@ components:
24882496
description: >-
24892497
The phone number that made the call, in E.164 format (e.g.
24902498
+15555555555).
2491-
example: '19195554321'
2499+
example: '+19195554321'
24922500
direction:
24932501
$ref: '#/components/schemas/callDirectionEnum'
24942502
state:
@@ -3023,7 +3031,10 @@ components:
30233031
description: >-
30243032
The machine detection request used to perform <a
30253033
href='/docs/voice/guides/machineDetection'>machine detection</a> on the
3026-
call.
3034+
call. Currently, there is an issue where decimal values are not getting
3035+
processed correctly. Please use whole number values. We are working to
3036+
resolve this issue. Please contact Bandwidth Support if you need more
3037+
information.
30273038
properties:
30283039
mode:
30293040
$ref: '#/components/schemas/machineDetectionModeEnum'
@@ -3290,7 +3301,7 @@ components:
32903301
- outbound
32913302
description: Which `track` this transcription is derived from.
32923303
example: inbound
3293-
text:
3304+
transcript:
32943305
type: string
32953306
description: The transcription itself.
32963307
example: Hello World! This is an example.
@@ -4128,7 +4139,7 @@ components:
41284139
accountId:
41294140
type: string
41304141
description: The user account associated with the call.
4131-
example: '920012'
4142+
example: '9900000'
41324143
applicationId:
41334144
type: string
41344145
description: The id of the application associated with the call.
@@ -4142,9 +4153,8 @@ components:
41424153
from:
41434154
type: string
41444155
description: >-
4145-
The provided identifier of the caller: can be a phone number in E.164
4146-
format (e.g. +15555555555) or one of Private, Restricted, Unavailable,
4147-
or Anonymous.
4156+
The provided identifier of the caller. Must be a phone number in E.164
4157+
format (e.g. +15555555555).
41484158
example: '+15555555555'
41494159
conferenceId:
41504160
type: string
@@ -4223,15 +4233,14 @@ components:
42234233
type: string
42244234
description: >-
42254235
The phone number used as the from field of the B-leg call, in E.164
4226-
format (e.g. +15555555555) or one of Restricted, Anonymous, Private, or
4227-
Unavailable.
4236+
format (e.g. +15555555555).
42284237
example: '+15555555555'
42294238
transferTo:
42304239
type: string
42314240
description: >-
42324241
The phone number used as the to field of the B-leg call, in E.164 format
42334242
(e.g. +15555555555).
4234-
example: +15555555555)
4243+
example: '+15555555555'
42354244
mediaUrl:
42364245
nullable: true
42374246
type: string
@@ -4442,7 +4451,7 @@ components:
44424451
messageId:
44434452
type: string
44444453
description: Messaging API Message ID.
4445-
example: 9e0df4ca-b18d-40d7-a59f-82fcdf5ae8e6
4454+
example: 1589228074636lm4k2je7j7jklbn2
44464455
verifyCodeRequest:
44474456
type: object
44484457
properties:
@@ -5778,6 +5787,7 @@ components:
57785787
answerMethod: POST
57795788
answerUrl: https://myServer.example/bandwidth/webhooks/answer
57805789
answerFallbackMethod: POST
5790+
answerFallbackUrl: https://myServer.example/bandwidth/webhooks/answerFallback
57815791
disconnectMethod: POST
57825792
disconnectUrl: https://myServer.example/bandwidth/webhooks/disconnect
57835793
username: mySecretUsername

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'java'
44
apply plugin: 'com.diffplug.spotless'
55

66
group = 'com.bandwidth.sdk'
7-
version = '10.0.0'
7+
version = '10.1.0'
88

99
buildscript {
1010
repositories {

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "com.bandwidth.sdk",
44
name := "bandwidth-sdk",
5-
version := "10.0.0",
5+
version := "10.1.0",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/AnswerCallback.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The Answer event is sent to the answerUrl specified in the createCall request wh
1212
|**eventTime** | **OffsetDateTime** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] |
1313
|**accountId** | **String** | The user account associated with the call. | [optional] |
1414
|**applicationId** | **String** | The id of the application associated with the call. | [optional] |
15-
|**from** | **String** | The provided identifier of the caller: can be a phone number in E.164 format (e.g. +15555555555) or one of Private, Restricted, Unavailable, or Anonymous. | [optional] |
15+
|**from** | **String** | The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). | [optional] |
1616
|**to** | **String** | The phone number that received the call, in E.164 format (e.g. +15555555555). | [optional] |
1717
|**direction** | **CallDirectionEnum** | | [optional] |
1818
|**callId** | **String** | The call id associated with the event. | [optional] |

docs/BridgeCompleteCallback.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ If the target call leaves the <Bridge>, then this callback is sent to the bridge
1212
|**eventTime** | **OffsetDateTime** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] |
1313
|**accountId** | **String** | The user account associated with the call. | [optional] |
1414
|**applicationId** | **String** | The id of the application associated with the call. | [optional] |
15-
|**from** | **String** | The provided identifier of the caller: can be a phone number in E.164 format (e.g. +15555555555) or one of Private, Restricted, Unavailable, or Anonymous. | [optional] |
15+
|**from** | **String** | The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). | [optional] |
1616
|**to** | **String** | The phone number that received the call, in E.164 format (e.g. +15555555555). | [optional] |
1717
|**direction** | **CallDirectionEnum** | | [optional] |
1818
|**callId** | **String** | The call id associated with the event. | [optional] |

docs/BridgeTargetCompleteCallback.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ If the originating call leaves the <Bridge>, then this callback is sent to the b
1212
|**eventTime** | **OffsetDateTime** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] |
1313
|**accountId** | **String** | The user account associated with the call. | [optional] |
1414
|**applicationId** | **String** | The id of the application associated with the call. | [optional] |
15-
|**from** | **String** | The provided identifier of the caller: can be a phone number in E.164 format (e.g. +15555555555) or one of Private, Restricted, Unavailable, or Anonymous. | [optional] |
15+
|**from** | **String** | The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). | [optional] |
1616
|**to** | **String** | The phone number that received the call, in E.164 format (e.g. +15555555555). | [optional] |
1717
|**direction** | **CallDirectionEnum** | | [optional] |
1818
|**callId** | **String** | The call id associated with the event. | [optional] |

docs/CallRecordingMetadata.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
|**parentCallId** | **String** | (optional) If the event is related to the B leg of a &lt;Transfer&gt;, the call id of the original call leg that executed the &lt;Transfer&gt;. Otherwise, this field will not be present. | [optional] |
1414
|**recordingId** | **String** | The unique ID of this recording | [optional] |
1515
|**to** | **String** | The phone number that received the call, in E.164 format (e.g. +15555555555). | [optional] |
16-
|**from** | **String** | The provided identifier of the caller: can be a phone number in E.164 format (e.g. +15555555555) or one of Private, Restricted, Unavailable, or Anonymous. | [optional] |
17-
|**transferCallerId** | **String** | The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555) or one of Restricted, Anonymous, Private, or Unavailable. | [optional] |
16+
|**from** | **String** | The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). | [optional] |
17+
|**transferCallerId** | **String** | The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). | [optional] |
1818
|**transferTo** | **String** | The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). | [optional] |
1919
|**duration** | **String** | The duration of the recording in ISO-8601 format | [optional] |
2020
|**direction** | **CallDirectionEnum** | | [optional] |

docs/CallTranscription.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
|------------ | ------------- | ------------- | -------------|
1010
|**detectedLanguage** | [**DetectedLanguageEnum**](#DetectedLanguageEnum) | The detected language for this transcription. | [optional] |
1111
|**track** | [**TrackEnum**](#TrackEnum) | Which &#x60;track&#x60; this transcription is derived from. | [optional] |
12-
|**text** | **String** | The transcription itself. | [optional] |
12+
|**transcript** | **String** | The transcription itself. | [optional] |
1313
|**confidence** | **Double** | How confident the transcription engine was in transcribing the associated audio (from &#x60;0&#x60; to &#x60;1&#x60;). | [optional] |
1414

1515

0 commit comments

Comments
 (0)