assemblyai 4.2.0 → 4.2.2
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/CHANGELOG.md +17 -0
- package/README.md +5 -5
- package/dist/assemblyai.umd.js +34 -17
- package/dist/assemblyai.umd.min.js +1 -1
- package/dist/bun.mjs +33 -18
- package/dist/deno.mjs +33 -18
- package/dist/index.cjs +34 -17
- package/dist/index.mjs +33 -18
- package/dist/node.cjs +34 -17
- package/dist/node.mjs +33 -18
- package/dist/services/index.d.ts +3 -3
- package/dist/services/realtime/factory.d.ts +12 -3
- package/dist/services/realtime/service.d.ts +10 -5
- package/dist/types/asyncapi.generated.d.ts +5 -4
- package/dist/types/openapi.generated.d.ts +20 -4
- package/dist/types/realtime/index.d.ts +11 -3
- package/dist/utils/path.d.ts +1 -0
- package/docs/compat.md +5 -5
- package/package.json +1 -1
- package/src/services/index.ts +10 -3
- package/src/services/realtime/factory.ts +18 -5
- package/src/services/realtime/service.ts +13 -7
- package/src/services/transcripts/index.ts +1 -11
- package/src/types/asyncapi.generated.ts +5 -4
- package/src/types/openapi.generated.ts +21 -4
- package/src/types/realtime/index.ts +14 -2
- package/src/utils/path.ts +7 -0
|
@@ -475,12 +475,21 @@ export type Error = {
|
|
|
475
475
|
* "64nygnr62k-405c-4ae8-8a6b-d90b40ff3cce"
|
|
476
476
|
* ],
|
|
477
477
|
* "context": "This is an interview about wildfires.",
|
|
478
|
+
* "answer_format": "Bullet Points",
|
|
478
479
|
* "final_model": "default",
|
|
479
480
|
* "temperature": 0,
|
|
480
481
|
* "max_output_size": 3000
|
|
481
482
|
* }
|
|
482
483
|
*/
|
|
483
|
-
export type LemurActionItemsParams = LemurBaseParams
|
|
484
|
+
export type LemurActionItemsParams = LemurBaseParams & {
|
|
485
|
+
/**
|
|
486
|
+
* @description How you want the action items to be returned. This can be any text.
|
|
487
|
+
* Defaults to "Bullet Points".
|
|
488
|
+
*
|
|
489
|
+
* @default Bullet Points
|
|
490
|
+
*/
|
|
491
|
+
answer_format?: string;
|
|
492
|
+
};
|
|
484
493
|
|
|
485
494
|
/**
|
|
486
495
|
* @example {
|
|
@@ -931,6 +940,14 @@ export type RedactedAudioResponse = {
|
|
|
931
940
|
*/
|
|
932
941
|
export type RedactedAudioStatus = "redacted_audio_ready";
|
|
933
942
|
|
|
943
|
+
/**
|
|
944
|
+
* @description Controls the filetype of the audio created by redact_pii_audio. Currently supports mp3 (default) and wav. See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more details.
|
|
945
|
+
* @default mp3
|
|
946
|
+
* @example mp3
|
|
947
|
+
* @enum {string}
|
|
948
|
+
*/
|
|
949
|
+
export type RedactPiiAudioQuality = "mp3" | "wav";
|
|
950
|
+
|
|
934
951
|
/**
|
|
935
952
|
* @example {
|
|
936
953
|
* "sentences": [
|
|
@@ -2076,7 +2093,7 @@ export type Transcript = {
|
|
|
2076
2093
|
* @description The audio quality of the PII-redacted audio file, if redact_pii_audio is enabled.
|
|
2077
2094
|
* See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more information.
|
|
2078
2095
|
*/
|
|
2079
|
-
redact_pii_audio_quality?:
|
|
2096
|
+
redact_pii_audio_quality?: RedactPiiAudioQuality | null;
|
|
2080
2097
|
/**
|
|
2081
2098
|
* @description The list of PII Redaction policies that were enabled, if PII Redaction is enabled.
|
|
2082
2099
|
* See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more information.
|
|
@@ -2244,7 +2261,7 @@ export type TranscriptList = {
|
|
|
2244
2261
|
*/
|
|
2245
2262
|
export type TranscriptListItem = {
|
|
2246
2263
|
audio_url: string;
|
|
2247
|
-
completed
|
|
2264
|
+
completed: Date | null;
|
|
2248
2265
|
created: Date;
|
|
2249
2266
|
/** Format: uuid */
|
|
2250
2267
|
id: string;
|
|
@@ -2346,7 +2363,7 @@ export type TranscriptOptionalParams = {
|
|
|
2346
2363
|
* @description Controls the filetype of the audio created by redact_pii_audio. Currently supports mp3 (default) and wav. See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more details.
|
|
2347
2364
|
* @default mp3
|
|
2348
2365
|
*/
|
|
2349
|
-
redact_pii_audio_quality?:
|
|
2366
|
+
redact_pii_audio_quality?: RedactPiiAudioQuality;
|
|
2350
2367
|
/** @description The list of PII Redaction policies to enable. See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more details. */
|
|
2351
2368
|
redact_pii_policies?: PiiPolicy[];
|
|
2352
2369
|
/** @description The replacement logic for detected PII, can be "entity_type" or "hash". See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more details. */
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
RealtimeTranscriptType,
|
|
7
7
|
} from "../asyncapi.generated";
|
|
8
8
|
|
|
9
|
-
type
|
|
9
|
+
type CreateRealtimeTranscriberParams = {
|
|
10
10
|
realtimeUrl?: string;
|
|
11
11
|
sampleRate?: number;
|
|
12
12
|
wordBoost?: string[];
|
|
@@ -20,7 +20,12 @@ type CreateRealtimeServiceParams = {
|
|
|
20
20
|
}
|
|
21
21
|
);
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated Use CreateRealtimeTranscriberParams instead
|
|
25
|
+
*/
|
|
26
|
+
type CreateRealtimeServiceParams = CreateRealtimeTranscriberParams;
|
|
27
|
+
|
|
28
|
+
type RealtimeTranscriberParams = {
|
|
24
29
|
realtimeUrl?: string;
|
|
25
30
|
sampleRate?: number;
|
|
26
31
|
wordBoost?: string[];
|
|
@@ -34,6 +39,11 @@ type RealtimeServiceParams = {
|
|
|
34
39
|
}
|
|
35
40
|
);
|
|
36
41
|
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated Use RealtimeTranscriberParams instead
|
|
44
|
+
*/
|
|
45
|
+
type RealtimeServiceParams = RealtimeTranscriberParams;
|
|
46
|
+
|
|
37
47
|
type RealtimeEvents =
|
|
38
48
|
| "open"
|
|
39
49
|
| "close"
|
|
@@ -61,6 +71,8 @@ type RealtimeTokenParams = {
|
|
|
61
71
|
};
|
|
62
72
|
|
|
63
73
|
export type {
|
|
74
|
+
CreateRealtimeTranscriberParams,
|
|
75
|
+
RealtimeTranscriberParams,
|
|
64
76
|
CreateRealtimeServiceParams,
|
|
65
77
|
RealtimeServiceParams,
|
|
66
78
|
RealtimeEvents,
|