Skip to content

Commit 2c9dedc

Browse files
band-swi-release-engineering[bot]DX-Bandwidthckoegel
authored
SWI-11517 Update SDK Based on Recent Spec Changes (#123)
* Generate SDK with OpenAPI Generator Version * unit tests --------- Co-authored-by: DX-Bandwidth <dx@bandwidth.com> Co-authored-by: ckoegel <ckoegel1006@gmail.com>
1 parent d8b927d commit 2c9dedc

14 files changed

Lines changed: 180 additions & 0 deletions

.openapi-generator/FILES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ docs/RbmWebViewEnum.md
176176
docs/RecordingAvailableCallback.md
177177
docs/RecordingCompleteCallback.md
178178
docs/RecordingStateEnum.md
179+
docs/RecordingTranscriptionClip.md
179180
docs/RecordingTranscriptionMetadata.md
180181
docs/RecordingTranscriptions.md
181182
docs/RecordingsApi.md
@@ -381,6 +382,7 @@ models/rbm-web-view-enum.ts
381382
models/recording-available-callback.ts
382383
models/recording-complete-callback.ts
383384
models/recording-state-enum.ts
385+
models/recording-transcription-clip.ts
384386
models/recording-transcription-metadata.ts
385387
models/recording-transcriptions.ts
386388
models/redirect-callback.ts

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ Class | Method | HTTP request | Description
317317
- [RecordingAvailableCallback](docs/RecordingAvailableCallback.md)
318318
- [RecordingCompleteCallback](docs/RecordingCompleteCallback.md)
319319
- [RecordingStateEnum](docs/RecordingStateEnum.md)
320+
- [RecordingTranscriptionClip](docs/RecordingTranscriptionClip.md)
320321
- [RecordingTranscriptionMetadata](docs/RecordingTranscriptionMetadata.md)
321322
- [RecordingTranscriptions](docs/RecordingTranscriptions.md)
322323
- [RedirectCallback](docs/RedirectCallback.md)

bandwidth.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4354,6 +4354,72 @@ components:
43544354
type: array
43554355
items:
43564356
$ref: '#/components/schemas/transcription'
4357+
clips:
4358+
type: array
4359+
description: >-
4360+
A list of individual speech clips with speaker, timing, and
4361+
confidence information.
4362+
items:
4363+
$ref: '#/components/schemas/recordingTranscriptionClip'
4364+
example:
4365+
transcripts:
4366+
- speaker: 0
4367+
text: Hi, is Thursday at two still good for you? Perfect, talk soon.
4368+
confidence: 0.96
4369+
- speaker: 1
4370+
text: Yes, that works great. See you then! Sounds good, bye!
4371+
confidence: 0.97
4372+
clips:
4373+
- speaker: 0
4374+
text: Hi, is Thursday at two still good for you?
4375+
confidence: 0.97
4376+
startTimeSeconds: 0.4
4377+
endTimeSeconds: 3.1
4378+
- speaker: 1
4379+
text: Yes, that works great. See you then!
4380+
confidence: 0.95
4381+
startTimeSeconds: 3.8
4382+
endTimeSeconds: 6.2
4383+
- speaker: 0
4384+
text: Perfect, talk soon.
4385+
confidence: 0.94
4386+
startTimeSeconds: 6.9
4387+
endTimeSeconds: 8.1
4388+
- speaker: 1
4389+
text: Sounds good, bye!
4390+
confidence: 0.98
4391+
startTimeSeconds: 8.5
4392+
endTimeSeconds: 9.7
4393+
recordingTranscriptionClip:
4394+
type: object
4395+
properties:
4396+
speaker:
4397+
type: integer
4398+
description: Zero-based index identifying the speaker.
4399+
example: 0
4400+
text:
4401+
type: string
4402+
description: The transcribed text of this clip.
4403+
example: Hi there, thanks for calling!
4404+
confidence:
4405+
type: number
4406+
format: double
4407+
minimum: 0
4408+
maximum: 1
4409+
description: >-
4410+
How confident the transcription engine was in transcribing this clip
4411+
(from `0.0` to `1.0`).
4412+
example: 0.85
4413+
startTimeSeconds:
4414+
type: number
4415+
format: double
4416+
description: The start time of this clip within the recording, in seconds.
4417+
example: 2.3
4418+
endTimeSeconds:
4419+
type: number
4420+
format: double
4421+
description: The end time of this clip within the recording, in seconds.
4422+
example: 3.1
43574423
callTranscriptionMetadataList:
43584424
type: array
43594425
items:
@@ -5480,6 +5546,10 @@ components:
54805546
transcription:
54815547
type: object
54825548
properties:
5549+
speaker:
5550+
type: integer
5551+
description: Zero-based index identifying the speaker.
5552+
example: 0
54835553
text:
54845554
type: string
54855555
description: The transcribed text

docs/RecordingTranscriptionClip.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# RecordingTranscriptionClip
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**speaker** | **number** | Zero-based index identifying the speaker. | [optional] [default to undefined]
9+
**text** | **string** | The transcribed text of this clip. | [optional] [default to undefined]
10+
**confidence** | **number** | How confident the transcription engine was in transcribing this clip (from &#x60;0.0&#x60; to &#x60;1.0&#x60;). | [optional] [default to undefined]
11+
**startTimeSeconds** | **number** | The start time of this clip within the recording, in seconds. | [optional] [default to undefined]
12+
**endTimeSeconds** | **number** | The end time of this clip within the recording, in seconds. | [optional] [default to undefined]
13+
14+
## Example
15+
16+
```typescript
17+
import { RecordingTranscriptionClip } from 'bandwidth-sdk';
18+
19+
const instance: RecordingTranscriptionClip = {
20+
speaker,
21+
text,
22+
confidence,
23+
startTimeSeconds,
24+
endTimeSeconds,
25+
};
26+
```
27+
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/RecordingTranscriptions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**transcripts** | [**Array&lt;Transcription&gt;**](Transcription.md) | | [optional] [default to undefined]
9+
**clips** | [**Array&lt;RecordingTranscriptionClip&gt;**](RecordingTranscriptionClip.md) | A list of individual speech clips with speaker, timing, and confidence information. | [optional] [default to undefined]
910

1011
## Example
1112

@@ -14,6 +15,7 @@ import { RecordingTranscriptions } from 'bandwidth-sdk';
1415

1516
const instance: RecordingTranscriptions = {
1617
transcripts,
18+
clips,
1719
};
1820
```
1921

docs/Transcription.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8+
**speaker** | **number** | Zero-based index identifying the speaker. | [optional] [default to undefined]
89
**text** | **string** | The transcribed text | [optional] [default to undefined]
910
**confidence** | **number** | The confidence on the recognized content, ranging from &#x60;0.0&#x60; to &#x60;1.0&#x60; with &#x60;1.0&#x60; being the highest confidence. | [optional] [default to undefined]
1011

@@ -14,6 +15,7 @@ Name | Type | Description | Notes
1415
import { Transcription } from 'bandwidth-sdk';
1516

1617
const instance: Transcription = {
18+
speaker,
1719
text,
1820
confidence,
1921
};

models/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ export * from './rbm-web-view-enum';
150150
export * from './recording-available-callback';
151151
export * from './recording-complete-callback';
152152
export * from './recording-state-enum';
153+
export * from './recording-transcription-clip';
153154
export * from './recording-transcription-metadata';
154155
export * from './recording-transcriptions';
155156
export * from './redirect-callback';
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Bandwidth
5+
* Bandwidth\'s Communication APIs
6+
*
7+
* The version of the OpenAPI document: 1.0.0
8+
* Contact: letstalk@bandwidth.com
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
16+
17+
export interface RecordingTranscriptionClip {
18+
/**
19+
* Zero-based index identifying the speaker.
20+
*/
21+
'speaker'?: number;
22+
/**
23+
* The transcribed text of this clip.
24+
*/
25+
'text'?: string;
26+
/**
27+
* How confident the transcription engine was in transcribing this clip (from `0.0` to `1.0`).
28+
*/
29+
'confidence'?: number;
30+
/**
31+
* The start time of this clip within the recording, in seconds.
32+
*/
33+
'startTimeSeconds'?: number;
34+
/**
35+
* The end time of this clip within the recording, in seconds.
36+
*/
37+
'endTimeSeconds'?: number;
38+
}
39+

models/recording-transcriptions.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,18 @@
1313
*/
1414

1515

16+
// May contain unused imports in some cases
17+
// @ts-ignore
18+
import type { RecordingTranscriptionClip } from './recording-transcription-clip';
1619
// May contain unused imports in some cases
1720
// @ts-ignore
1821
import type { Transcription } from './transcription';
1922

2023
export interface RecordingTranscriptions {
2124
'transcripts'?: Array<Transcription>;
25+
/**
26+
* A list of individual speech clips with speaker, timing, and confidence information.
27+
*/
28+
'clips'?: Array<RecordingTranscriptionClip>;
2229
}
2330

models/transcription.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515

1616

1717
export interface Transcription {
18+
/**
19+
* Zero-based index identifying the speaker.
20+
*/
21+
'speaker'?: number;
1822
/**
1923
* The transcribed text
2024
*/

0 commit comments

Comments
 (0)