@deepgram/sdk 1.2.2 → 1.3.1-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.devcontainer/Dockerfile +16 -0
- package/.devcontainer/devcontainer.json +29 -0
- package/CHANGELOG.md +196 -163
- package/CODE_OF_CONDUCT.md +127 -127
- package/CONTRIBUTING.md +50 -50
- package/LICENSE +21 -21
- package/README.md +151 -151
- package/dist/billing.d.ts +18 -0
- package/dist/billing.js +73 -0
- package/dist/billing.js.map +1 -0
- package/dist/constants/defaultOptions.d.ts +6 -6
- package/dist/constants/defaultOptions.js +9 -9
- package/dist/constants/defaultOptions.js.map +0 -0
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +17 -13
- package/dist/constants/index.js.map +1 -1
- package/dist/enums/alternatives.d.ts +4 -4
- package/dist/enums/alternatives.js +2 -2
- package/dist/enums/alternatives.js.map +0 -0
- package/dist/enums/connectionState.d.ts +6 -6
- package/dist/enums/connectionState.js +10 -10
- package/dist/enums/connectionState.js.map +0 -0
- package/dist/enums/diarization.d.ts +4 -4
- package/dist/enums/diarization.js +2 -2
- package/dist/enums/diarization.js.map +0 -0
- package/dist/enums/index.d.ts +7 -7
- package/dist/enums/index.js +23 -19
- package/dist/enums/index.js.map +1 -1
- package/dist/enums/liveTranscriptionEvents.d.ts +6 -6
- package/dist/enums/liveTranscriptionEvents.js +2 -2
- package/dist/enums/liveTranscriptionEvents.js.map +0 -0
- package/dist/enums/models.d.ts +5 -5
- package/dist/enums/models.js +2 -2
- package/dist/enums/models.js.map +0 -0
- package/dist/enums/punctuation.d.ts +4 -4
- package/dist/enums/punctuation.js +2 -2
- package/dist/enums/punctuation.js.map +0 -0
- package/dist/enums/searchKind.d.ts +4 -4
- package/dist/enums/searchKind.js +2 -2
- package/dist/enums/searchKind.js.map +0 -0
- package/dist/helpers/index.d.ts +1 -1
- package/dist/helpers/index.js +17 -13
- package/dist/helpers/index.js.map +1 -1
- package/dist/helpers/secondsToTimestamp.d.ts +1 -1
- package/dist/helpers/secondsToTimestamp.js +7 -7
- package/dist/helpers/secondsToTimestamp.js.map +0 -0
- package/dist/httpRequest.d.ts +3 -3
- package/dist/httpRequest.js +90 -90
- package/dist/httpRequest.js.map +1 -1
- package/dist/index.d.ts +25 -17
- package/dist/index.js +40 -32
- package/dist/index.js.map +1 -1
- package/dist/invitation.d.ts +29 -0
- package/dist/invitation.js +99 -0
- package/dist/invitation.js.map +1 -0
- package/dist/keys.d.ts +32 -32
- package/dist/keys.js +131 -111
- package/dist/keys.js.map +1 -1
- package/dist/members.d.ts +18 -0
- package/dist/members.js +73 -0
- package/dist/members.js.map +1 -0
- package/dist/projects.d.ts +21 -21
- package/dist/projects.js +81 -81
- package/dist/projects.js.map +1 -1
- package/dist/scopes.d.ts +20 -0
- package/dist/scopes.js +77 -0
- package/dist/scopes.js.map +1 -0
- package/dist/transcription/index.d.ts +18 -18
- package/dist/transcription/index.js +71 -71
- package/dist/transcription/index.js.map +0 -0
- package/dist/transcription/liveTranscription.d.ts +23 -23
- package/dist/transcription/liveTranscription.js +82 -82
- package/dist/transcription/liveTranscription.js.map +1 -1
- package/dist/transcription/preRecordedTranscription.d.ts +8 -8
- package/dist/transcription/preRecordedTranscription.js +113 -113
- package/dist/transcription/preRecordedTranscription.js.map +1 -1
- package/dist/types/balance.d.ts +6 -0
- package/dist/types/balance.js +3 -0
- package/dist/types/balance.js.map +1 -0
- package/dist/types/balanceList.d.ts +4 -0
- package/dist/types/balanceList.js +3 -0
- package/dist/types/balanceList.js.map +1 -0
- package/dist/types/channel.d.ts +25 -25
- package/dist/types/channel.js +2 -2
- package/dist/types/channel.js.map +0 -0
- package/dist/types/createKeyOptions.d.ts +13 -13
- package/dist/types/createKeyOptions.js +2 -2
- package/dist/types/createKeyOptions.js.map +0 -0
- package/dist/types/hit.d.ts +21 -21
- package/dist/types/hit.js +2 -2
- package/dist/types/hit.js.map +0 -0
- package/dist/types/index.d.ts +35 -28
- package/dist/types/index.js +51 -40
- package/dist/types/index.js.map +1 -1
- package/dist/types/invitationList.d.ts +4 -0
- package/dist/types/invitationList.js +3 -0
- package/dist/types/invitationList.js.map +1 -0
- package/dist/types/invitationOptions.d.ts +4 -0
- package/dist/types/invitationOptions.js +3 -0
- package/dist/types/invitationOptions.js.map +1 -0
- package/dist/types/key.d.ts +25 -25
- package/dist/types/key.js +2 -2
- package/dist/types/key.js.map +0 -0
- package/dist/types/keyResponse.d.ts +50 -10
- package/dist/types/keyResponse.js +2 -2
- package/dist/types/keyResponse.js.map +0 -0
- package/dist/types/keyword.d.ts +4 -4
- package/dist/types/keyword.js +2 -2
- package/dist/types/keyword.js.map +0 -0
- package/dist/types/liveTranscriptionOptions.d.ts +148 -148
- package/dist/types/liveTranscriptionOptions.js +2 -2
- package/dist/types/liveTranscriptionOptions.js.map +0 -0
- package/dist/types/liveTranscriptionResponse.d.ts +9 -9
- package/dist/types/liveTranscriptionResponse.js +2 -2
- package/dist/types/liveTranscriptionResponse.js.map +0 -0
- package/dist/types/member.d.ts +7 -6
- package/dist/types/member.js +2 -2
- package/dist/types/member.js.map +0 -0
- package/dist/types/memberList.d.ts +4 -0
- package/dist/types/memberList.js +3 -0
- package/dist/types/memberList.js.map +1 -0
- package/dist/types/message.d.ts +3 -0
- package/dist/types/message.js +3 -0
- package/dist/types/message.js.map +1 -0
- package/dist/types/metadata.d.ts +8 -8
- package/dist/types/metadata.js +2 -2
- package/dist/types/metadata.js.map +0 -0
- package/dist/types/prerecordedTranscriptionOptions.d.ts +126 -126
- package/dist/types/prerecordedTranscriptionOptions.js +2 -2
- package/dist/types/prerecordedTranscriptionOptions.js.map +0 -0
- package/dist/types/prerecordedTranscriptionResponse.d.ts +25 -25
- package/dist/types/prerecordedTranscriptionResponse.js +50 -50
- package/dist/types/prerecordedTranscriptionResponse.js.map +1 -1
- package/dist/types/project.d.ts +17 -17
- package/dist/types/project.js +2 -2
- package/dist/types/project.js.map +0 -0
- package/dist/types/projectPatchResponse.d.ts +6 -6
- package/dist/types/projectPatchResponse.js +2 -2
- package/dist/types/projectPatchResponse.js.map +0 -0
- package/dist/types/projectResponse.d.ts +4 -4
- package/dist/types/projectResponse.js +2 -2
- package/dist/types/projectResponse.js.map +0 -0
- package/dist/types/scopeList.d.ts +3 -0
- package/dist/types/scopeList.js +3 -0
- package/dist/types/scopeList.js.map +1 -0
- package/dist/types/search.d.ts +14 -14
- package/dist/types/search.js +2 -2
- package/dist/types/search.js.map +0 -0
- package/dist/types/transcriptionSource.d.ts +14 -14
- package/dist/types/transcriptionSource.js +2 -2
- package/dist/types/transcriptionSource.js.map +0 -0
- package/dist/types/usageCallback.d.ts +4 -4
- package/dist/types/usageCallback.js +2 -2
- package/dist/types/usageCallback.js.map +0 -0
- package/dist/types/usageField.d.ts +7 -7
- package/dist/types/usageField.js +2 -2
- package/dist/types/usageField.js.map +0 -0
- package/dist/types/usageFieldOptions.d.ts +4 -4
- package/dist/types/usageFieldOptions.js +2 -2
- package/dist/types/usageFieldOptions.js.map +0 -0
- package/dist/types/usageOptions.d.ts +23 -23
- package/dist/types/usageOptions.js +2 -2
- package/dist/types/usageOptions.js.map +0 -0
- package/dist/types/usageRequest.d.ts +11 -11
- package/dist/types/usageRequest.js +2 -2
- package/dist/types/usageRequest.js.map +0 -0
- package/dist/types/usageRequestDetail.d.ts +30 -30
- package/dist/types/usageRequestDetail.js +2 -2
- package/dist/types/usageRequestDetail.js.map +0 -0
- package/dist/types/usageRequestList.d.ts +6 -6
- package/dist/types/usageRequestList.js +2 -2
- package/dist/types/usageRequestList.js.map +0 -0
- package/dist/types/usageRequestListOptions.d.ts +7 -7
- package/dist/types/usageRequestListOptions.js +2 -2
- package/dist/types/usageRequestListOptions.js.map +0 -0
- package/dist/types/usageRequestMessage.d.ts +3 -3
- package/dist/types/usageRequestMessage.js +2 -2
- package/dist/types/usageRequestMessage.js.map +0 -0
- package/dist/types/usageResponse.d.ts +10 -10
- package/dist/types/usageResponse.js +2 -2
- package/dist/types/usageResponse.js.map +0 -0
- package/dist/types/usageResponseDetail.d.ts +6 -6
- package/dist/types/usageResponseDetail.js +2 -2
- package/dist/types/usageResponseDetail.js.map +0 -0
- package/dist/types/utterance.d.ts +39 -39
- package/dist/types/utterance.js +2 -2
- package/dist/types/utterance.js.map +0 -0
- package/dist/types/wordBase.d.ts +8 -8
- package/dist/types/wordBase.js +2 -2
- package/dist/types/wordBase.js.map +0 -0
- package/dist/usage.d.ts +34 -34
- package/dist/usage.js +121 -121
- package/dist/usage.js.map +1 -1
- package/dist/userAgent.d.ts +1 -1
- package/dist/userAgent.js +19 -20
- package/dist/userAgent.js.map +1 -1
- package/package.json +59 -57
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare type UsageField = {
|
|
2
|
-
tags: Array<string>;
|
|
3
|
-
models: Array<string>;
|
|
4
|
-
processing_methods: Array<string>;
|
|
5
|
-
languages: Array<string>;
|
|
6
|
-
features: Array<string>;
|
|
7
|
-
};
|
|
1
|
+
export declare type UsageField = {
|
|
2
|
+
tags: Array<string>;
|
|
3
|
+
models: Array<string>;
|
|
4
|
+
processing_methods: Array<string>;
|
|
5
|
+
languages: Array<string>;
|
|
6
|
+
features: Array<string>;
|
|
7
|
+
};
|
package/dist/types/usageField.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=usageField.js.map
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare type UsageFieldOptions = {
|
|
2
|
-
start?: string;
|
|
3
|
-
end?: string;
|
|
4
|
-
};
|
|
1
|
+
export declare type UsageFieldOptions = {
|
|
2
|
+
start?: string;
|
|
3
|
+
end?: string;
|
|
4
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=usageFieldOptions.js.map
|
|
File without changes
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export declare type UsageOptions = {
|
|
2
|
-
start?: string;
|
|
3
|
-
end?: string;
|
|
4
|
-
accessor?: string;
|
|
5
|
-
tag?: Array<string>;
|
|
6
|
-
method?: "sync" | "async" | "streaming";
|
|
7
|
-
model?: string;
|
|
8
|
-
multichannel?: boolean;
|
|
9
|
-
interim_results?: boolean;
|
|
10
|
-
punctuate?: boolean;
|
|
11
|
-
ner?: boolean;
|
|
12
|
-
utterances?: boolean;
|
|
13
|
-
replace?: boolean;
|
|
14
|
-
profanity_filter?: boolean;
|
|
15
|
-
keywords?: boolean;
|
|
16
|
-
sentiment?: boolean;
|
|
17
|
-
diarize?: boolean;
|
|
18
|
-
detect_language?: boolean;
|
|
19
|
-
search?: boolean;
|
|
20
|
-
redact?: boolean;
|
|
21
|
-
alternatives?: boolean;
|
|
22
|
-
numerals?: boolean;
|
|
23
|
-
};
|
|
1
|
+
export declare type UsageOptions = {
|
|
2
|
+
start?: string;
|
|
3
|
+
end?: string;
|
|
4
|
+
accessor?: string;
|
|
5
|
+
tag?: Array<string>;
|
|
6
|
+
method?: "sync" | "async" | "streaming";
|
|
7
|
+
model?: string;
|
|
8
|
+
multichannel?: boolean;
|
|
9
|
+
interim_results?: boolean;
|
|
10
|
+
punctuate?: boolean;
|
|
11
|
+
ner?: boolean;
|
|
12
|
+
utterances?: boolean;
|
|
13
|
+
replace?: boolean;
|
|
14
|
+
profanity_filter?: boolean;
|
|
15
|
+
keywords?: boolean;
|
|
16
|
+
sentiment?: boolean;
|
|
17
|
+
diarize?: boolean;
|
|
18
|
+
detect_language?: boolean;
|
|
19
|
+
search?: boolean;
|
|
20
|
+
redact?: boolean;
|
|
21
|
+
alternatives?: boolean;
|
|
22
|
+
numerals?: boolean;
|
|
23
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=usageOptions.js.map
|
|
File without changes
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { UsageCallback } from "./usageCallback";
|
|
2
|
-
import { UsageRequestDetail } from "./usageRequestDetail";
|
|
3
|
-
import { UsageRequestMessage } from "./usageRequestMessage";
|
|
4
|
-
export declare type UsageRequest = {
|
|
5
|
-
request_id: string;
|
|
6
|
-
created: string;
|
|
7
|
-
path: string;
|
|
8
|
-
accessor: string;
|
|
9
|
-
response?: UsageRequestDetail | UsageRequestMessage;
|
|
10
|
-
callback?: UsageCallback;
|
|
11
|
-
};
|
|
1
|
+
import { UsageCallback } from "./usageCallback";
|
|
2
|
+
import { UsageRequestDetail } from "./usageRequestDetail";
|
|
3
|
+
import { UsageRequestMessage } from "./usageRequestMessage";
|
|
4
|
+
export declare type UsageRequest = {
|
|
5
|
+
request_id: string;
|
|
6
|
+
created: string;
|
|
7
|
+
path: string;
|
|
8
|
+
accessor: string;
|
|
9
|
+
response?: UsageRequestDetail | UsageRequestMessage;
|
|
10
|
+
callback?: UsageCallback;
|
|
11
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=usageRequest.js.map
|
|
File without changes
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
export declare type UsageRequestDetail = {
|
|
2
|
-
details: {
|
|
3
|
-
usd: number;
|
|
4
|
-
duration: number;
|
|
5
|
-
total_audio: number;
|
|
6
|
-
channels: number;
|
|
7
|
-
streams: number;
|
|
8
|
-
model: string;
|
|
9
|
-
method: "sync" | "async" | "streaming";
|
|
10
|
-
tags: Array<string>;
|
|
11
|
-
features: Array<string>;
|
|
12
|
-
config: {
|
|
13
|
-
multichannel?: boolean;
|
|
14
|
-
interim_results?: boolean;
|
|
15
|
-
punctuate?: boolean;
|
|
16
|
-
ner?: boolean;
|
|
17
|
-
utterances?: boolean;
|
|
18
|
-
replace?: boolean;
|
|
19
|
-
profanity_filter?: boolean;
|
|
20
|
-
keywords?: boolean;
|
|
21
|
-
sentiment?: boolean;
|
|
22
|
-
diarize?: boolean;
|
|
23
|
-
detect_language?: boolean;
|
|
24
|
-
search?: boolean;
|
|
25
|
-
redact?: boolean;
|
|
26
|
-
alternatives?: boolean;
|
|
27
|
-
numerals?: boolean;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
};
|
|
1
|
+
export declare type UsageRequestDetail = {
|
|
2
|
+
details: {
|
|
3
|
+
usd: number;
|
|
4
|
+
duration: number;
|
|
5
|
+
total_audio: number;
|
|
6
|
+
channels: number;
|
|
7
|
+
streams: number;
|
|
8
|
+
model: string;
|
|
9
|
+
method: "sync" | "async" | "streaming";
|
|
10
|
+
tags: Array<string>;
|
|
11
|
+
features: Array<string>;
|
|
12
|
+
config: {
|
|
13
|
+
multichannel?: boolean;
|
|
14
|
+
interim_results?: boolean;
|
|
15
|
+
punctuate?: boolean;
|
|
16
|
+
ner?: boolean;
|
|
17
|
+
utterances?: boolean;
|
|
18
|
+
replace?: boolean;
|
|
19
|
+
profanity_filter?: boolean;
|
|
20
|
+
keywords?: boolean;
|
|
21
|
+
sentiment?: boolean;
|
|
22
|
+
diarize?: boolean;
|
|
23
|
+
detect_language?: boolean;
|
|
24
|
+
search?: boolean;
|
|
25
|
+
redact?: boolean;
|
|
26
|
+
alternatives?: boolean;
|
|
27
|
+
numerals?: boolean;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=usageRequestDetail.js.map
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { UsageRequest } from "./usageRequest";
|
|
2
|
-
export declare type UsageRequestList = {
|
|
3
|
-
page: number;
|
|
4
|
-
limit: number;
|
|
5
|
-
requests?: Array<UsageRequest>;
|
|
6
|
-
};
|
|
1
|
+
import { UsageRequest } from "./usageRequest";
|
|
2
|
+
export declare type UsageRequestList = {
|
|
3
|
+
page: number;
|
|
4
|
+
limit: number;
|
|
5
|
+
requests?: Array<UsageRequest>;
|
|
6
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=usageRequestList.js.map
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare type UsageRequestListOptions = {
|
|
2
|
-
start?: string;
|
|
3
|
-
end?: string;
|
|
4
|
-
page?: number;
|
|
5
|
-
limit?: number;
|
|
6
|
-
status?: "succeeded" | "failed";
|
|
7
|
-
};
|
|
1
|
+
export declare type UsageRequestListOptions = {
|
|
2
|
+
start?: string;
|
|
3
|
+
end?: string;
|
|
4
|
+
page?: number;
|
|
5
|
+
limit?: number;
|
|
6
|
+
status?: "succeeded" | "failed";
|
|
7
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=usageRequestListOptions.js.map
|
|
File without changes
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare type UsageRequestMessage = {
|
|
2
|
-
message?: string;
|
|
3
|
-
};
|
|
1
|
+
export declare type UsageRequestMessage = {
|
|
2
|
+
message?: string;
|
|
3
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=usageRequestMessage.js.map
|
|
File without changes
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { UsageResponseDetail } from "./usageResponseDetail";
|
|
2
|
-
export declare type UsageResponse = {
|
|
3
|
-
start: string;
|
|
4
|
-
end: string;
|
|
5
|
-
resolution: {
|
|
6
|
-
units: string;
|
|
7
|
-
amount: number;
|
|
8
|
-
};
|
|
9
|
-
results: Array<UsageResponseDetail>;
|
|
10
|
-
};
|
|
1
|
+
import { UsageResponseDetail } from "./usageResponseDetail";
|
|
2
|
+
export declare type UsageResponse = {
|
|
3
|
+
start: string;
|
|
4
|
+
end: string;
|
|
5
|
+
resolution: {
|
|
6
|
+
units: string;
|
|
7
|
+
amount: number;
|
|
8
|
+
};
|
|
9
|
+
results: Array<UsageResponseDetail>;
|
|
10
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=usageResponse.js.map
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare type UsageResponseDetail = {
|
|
2
|
-
start: string;
|
|
3
|
-
end: string;
|
|
4
|
-
hours: number;
|
|
5
|
-
requests: number;
|
|
6
|
-
};
|
|
1
|
+
export declare type UsageResponseDetail = {
|
|
2
|
+
start: string;
|
|
3
|
+
end: string;
|
|
4
|
+
hours: number;
|
|
5
|
+
requests: number;
|
|
6
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=usageResponseDetail.js.map
|
|
File without changes
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { WordBase } from "./wordBase";
|
|
2
|
-
export declare type Utterance = {
|
|
3
|
-
/**
|
|
4
|
-
* Start time (in seconds) from the beginning of the audio stream.
|
|
5
|
-
*/
|
|
6
|
-
start: number;
|
|
7
|
-
/**
|
|
8
|
-
* End time (in seconds) from the beginning of the audio stream.
|
|
9
|
-
*/
|
|
10
|
-
end: number;
|
|
11
|
-
/**
|
|
12
|
-
* Floating point value between 0 and 1 that indicates overall transcript
|
|
13
|
-
* reliability. Larger values indicate higher confidence.
|
|
14
|
-
*/
|
|
15
|
-
confidence: number;
|
|
16
|
-
/**
|
|
17
|
-
* Audio channel to which the utterance belongs. When using multichannel audio,
|
|
18
|
-
* utterances are chronologically ordered by channel.
|
|
19
|
-
*/
|
|
20
|
-
channel: number;
|
|
21
|
-
/**
|
|
22
|
-
* Transcript for the audio segment being processed.
|
|
23
|
-
*/
|
|
24
|
-
transcript: string;
|
|
25
|
-
/**
|
|
26
|
-
* Object containing each word in the transcript, along with its start time
|
|
27
|
-
* and end time (in seconds) from the beginning of the audio stream, and a confidence value.
|
|
28
|
-
*/
|
|
29
|
-
words: Array<WordBase>;
|
|
30
|
-
/**
|
|
31
|
-
* Integer indicating the predicted speaker of the majority of words
|
|
32
|
-
* in the utterance who is saying the words being processed.
|
|
33
|
-
*/
|
|
34
|
-
speaker?: number;
|
|
35
|
-
/**
|
|
36
|
-
* Unique identifier of the utterance
|
|
37
|
-
*/
|
|
38
|
-
id: string;
|
|
39
|
-
};
|
|
1
|
+
import { WordBase } from "./wordBase";
|
|
2
|
+
export declare type Utterance = {
|
|
3
|
+
/**
|
|
4
|
+
* Start time (in seconds) from the beginning of the audio stream.
|
|
5
|
+
*/
|
|
6
|
+
start: number;
|
|
7
|
+
/**
|
|
8
|
+
* End time (in seconds) from the beginning of the audio stream.
|
|
9
|
+
*/
|
|
10
|
+
end: number;
|
|
11
|
+
/**
|
|
12
|
+
* Floating point value between 0 and 1 that indicates overall transcript
|
|
13
|
+
* reliability. Larger values indicate higher confidence.
|
|
14
|
+
*/
|
|
15
|
+
confidence: number;
|
|
16
|
+
/**
|
|
17
|
+
* Audio channel to which the utterance belongs. When using multichannel audio,
|
|
18
|
+
* utterances are chronologically ordered by channel.
|
|
19
|
+
*/
|
|
20
|
+
channel: number;
|
|
21
|
+
/**
|
|
22
|
+
* Transcript for the audio segment being processed.
|
|
23
|
+
*/
|
|
24
|
+
transcript: string;
|
|
25
|
+
/**
|
|
26
|
+
* Object containing each word in the transcript, along with its start time
|
|
27
|
+
* and end time (in seconds) from the beginning of the audio stream, and a confidence value.
|
|
28
|
+
*/
|
|
29
|
+
words: Array<WordBase>;
|
|
30
|
+
/**
|
|
31
|
+
* Integer indicating the predicted speaker of the majority of words
|
|
32
|
+
* in the utterance who is saying the words being processed.
|
|
33
|
+
*/
|
|
34
|
+
speaker?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Unique identifier of the utterance
|
|
37
|
+
*/
|
|
38
|
+
id: string;
|
|
39
|
+
};
|
package/dist/types/utterance.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=utterance.js.map
|
|
File without changes
|
package/dist/types/wordBase.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare type WordBase = {
|
|
2
|
-
word: string;
|
|
3
|
-
start: number;
|
|
4
|
-
end: number;
|
|
5
|
-
confidence: number;
|
|
6
|
-
punctuated_word?: string;
|
|
7
|
-
speaker?: number;
|
|
8
|
-
};
|
|
1
|
+
export declare type WordBase = {
|
|
2
|
+
word: string;
|
|
3
|
+
start: number;
|
|
4
|
+
end: number;
|
|
5
|
+
confidence: number;
|
|
6
|
+
punctuated_word?: string;
|
|
7
|
+
speaker?: number;
|
|
8
|
+
};
|
package/dist/types/wordBase.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=wordBase.js.map
|
|
File without changes
|
package/dist/usage.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { UsageField, UsageFieldOptions, UsageOptions, UsageRequest, UsageRequestList, UsageRequestListOptions, UsageResponse } from "./types";
|
|
2
|
-
export declare class Usage {
|
|
3
|
-
private _credentials;
|
|
4
|
-
private _apiUrl;
|
|
5
|
-
constructor(_credentials: string, _apiUrl: string);
|
|
6
|
-
private apiPath;
|
|
7
|
-
/**
|
|
8
|
-
* Retrieves all requests associated with the provided projectId based
|
|
9
|
-
* on the provided options
|
|
10
|
-
* @param projectId Unique identifier of the project
|
|
11
|
-
* @param options Additional filter options
|
|
12
|
-
*/
|
|
13
|
-
listRequests(projectId: string, options?: UsageRequestListOptions): Promise<UsageRequestList>;
|
|
14
|
-
/**
|
|
15
|
-
* Retrieves a specific request associated with the provided projectId
|
|
16
|
-
* @param projectId Unique identifier of the project
|
|
17
|
-
* @param requestId Unique identifier for the request to retrieve
|
|
18
|
-
*/
|
|
19
|
-
getRequest(projectId: string, requestId: string): Promise<UsageRequest>;
|
|
20
|
-
/**
|
|
21
|
-
* Retrieves usage associated with the provided projectId based
|
|
22
|
-
* on the provided options
|
|
23
|
-
* @param projectId Unique identifier of the project
|
|
24
|
-
* @param options Options to filter usage
|
|
25
|
-
*/
|
|
26
|
-
getUsage(projectId: string, options?: UsageOptions): Promise<UsageResponse>;
|
|
27
|
-
/**
|
|
28
|
-
* Retrieves features used by the provided projectId based
|
|
29
|
-
* on the provided options
|
|
30
|
-
* @param projectId Unique identifier of the project
|
|
31
|
-
* @param options Options to filter usage
|
|
32
|
-
*/
|
|
33
|
-
getFields(projectId: string, options?: UsageFieldOptions): Promise<UsageField>;
|
|
34
|
-
}
|
|
1
|
+
import { UsageField, UsageFieldOptions, UsageOptions, UsageRequest, UsageRequestList, UsageRequestListOptions, UsageResponse } from "./types";
|
|
2
|
+
export declare class Usage {
|
|
3
|
+
private _credentials;
|
|
4
|
+
private _apiUrl;
|
|
5
|
+
constructor(_credentials: string, _apiUrl: string);
|
|
6
|
+
private apiPath;
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves all requests associated with the provided projectId based
|
|
9
|
+
* on the provided options
|
|
10
|
+
* @param projectId Unique identifier of the project
|
|
11
|
+
* @param options Additional filter options
|
|
12
|
+
*/
|
|
13
|
+
listRequests(projectId: string, options?: UsageRequestListOptions): Promise<UsageRequestList>;
|
|
14
|
+
/**
|
|
15
|
+
* Retrieves a specific request associated with the provided projectId
|
|
16
|
+
* @param projectId Unique identifier of the project
|
|
17
|
+
* @param requestId Unique identifier for the request to retrieve
|
|
18
|
+
*/
|
|
19
|
+
getRequest(projectId: string, requestId: string): Promise<UsageRequest>;
|
|
20
|
+
/**
|
|
21
|
+
* Retrieves usage associated with the provided projectId based
|
|
22
|
+
* on the provided options
|
|
23
|
+
* @param projectId Unique identifier of the project
|
|
24
|
+
* @param options Options to filter usage
|
|
25
|
+
*/
|
|
26
|
+
getUsage(projectId: string, options?: UsageOptions): Promise<UsageResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Retrieves features used by the provided projectId based
|
|
29
|
+
* on the provided options
|
|
30
|
+
* @param projectId Unique identifier of the project
|
|
31
|
+
* @param options Options to filter usage
|
|
32
|
+
*/
|
|
33
|
+
getFields(projectId: string, options?: UsageFieldOptions): Promise<UsageField>;
|
|
34
|
+
}
|