telnyx 7.17.0 → 7.18.0
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 +12 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +6 -2
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +6 -2
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js +4 -0
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs +4 -0
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/anthropic/v1.d.mts +4 -3
- package/resources/ai/anthropic/v1.d.mts.map +1 -1
- package/resources/ai/anthropic/v1.d.ts +4 -3
- package/resources/ai/anthropic/v1.d.ts.map +1 -1
- package/resources/ai/anthropic/v1.js +1 -1
- package/resources/ai/anthropic/v1.mjs +1 -1
- package/resources/ai/assistants/assistants.d.mts +88 -2
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +88 -2
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/chat.d.mts +8 -0
- package/resources/ai/chat.d.mts.map +1 -1
- package/resources/ai/chat.d.ts +8 -0
- package/resources/ai/chat.d.ts.map +1 -1
- package/resources/ai/collections/collections.d.mts +1 -102
- package/resources/ai/collections/collections.d.mts.map +1 -1
- package/resources/ai/collections/collections.d.ts +1 -102
- package/resources/ai/collections/collections.d.ts.map +1 -1
- package/resources/ai/collections/collections.js +0 -44
- package/resources/ai/collections/collections.js.map +1 -1
- package/resources/ai/collections/collections.mjs +0 -44
- package/resources/ai/collections/collections.mjs.map +1 -1
- package/resources/ai/collections/index.d.mts +1 -1
- package/resources/ai/collections/index.d.mts.map +1 -1
- package/resources/ai/collections/index.d.ts +1 -1
- package/resources/ai/collections/index.d.ts.map +1 -1
- package/resources/ai/collections/index.js.map +1 -1
- package/resources/ai/collections/index.mjs.map +1 -1
- package/resources/ai/collections/settings.d.mts +4 -1
- package/resources/ai/collections/settings.d.mts.map +1 -1
- package/resources/ai/collections/settings.d.ts +4 -1
- package/resources/ai/collections/settings.d.ts.map +1 -1
- package/resources/ai/index.d.mts +2 -1
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +2 -1
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js +7 -5
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs +1 -0
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/knowledge/collections.d.mts +140 -0
- package/resources/ai/knowledge/collections.d.mts.map +1 -0
- package/resources/ai/knowledge/collections.d.ts +140 -0
- package/resources/ai/knowledge/collections.d.ts.map +1 -0
- package/resources/ai/knowledge/collections.js +58 -0
- package/resources/ai/knowledge/collections.js.map +1 -0
- package/resources/ai/knowledge/collections.mjs +54 -0
- package/resources/ai/knowledge/collections.mjs.map +1 -0
- package/resources/ai/knowledge/index.d.mts +3 -0
- package/resources/ai/knowledge/index.d.mts.map +1 -0
- package/resources/ai/knowledge/index.d.ts +3 -0
- package/resources/ai/knowledge/index.d.ts.map +1 -0
- package/resources/ai/knowledge/index.js +9 -0
- package/resources/ai/knowledge/index.js.map +1 -0
- package/resources/ai/knowledge/index.mjs +4 -0
- package/resources/ai/knowledge/index.mjs.map +1 -0
- package/resources/ai/knowledge/knowledge.d.mts +10 -0
- package/resources/ai/knowledge/knowledge.d.mts.map +1 -0
- package/resources/ai/knowledge/knowledge.d.ts +10 -0
- package/resources/ai/knowledge/knowledge.d.ts.map +1 -0
- package/resources/ai/knowledge/knowledge.js +17 -0
- package/resources/ai/knowledge/knowledge.js.map +1 -0
- package/resources/ai/knowledge/knowledge.mjs +12 -0
- package/resources/ai/knowledge/knowledge.mjs.map +1 -0
- package/resources/ai/knowledge.d.mts +2 -0
- package/resources/ai/knowledge.d.mts.map +1 -0
- package/resources/ai/knowledge.d.ts +2 -0
- package/resources/ai/knowledge.d.ts.map +1 -0
- package/resources/ai/knowledge.js +6 -0
- package/resources/ai/knowledge.js.map +1 -0
- package/resources/ai/knowledge.mjs +3 -0
- package/resources/ai/knowledge.mjs.map +1 -0
- package/resources/ai/openai/chat.d.mts +8 -0
- package/resources/ai/openai/chat.d.mts.map +1 -1
- package/resources/ai/openai/chat.d.ts +8 -0
- package/resources/ai/openai/chat.d.ts.map +1 -1
- package/resources/ai/openai/openai.d.mts +10 -0
- package/resources/ai/openai/openai.d.mts.map +1 -1
- package/resources/ai/openai/openai.d.ts +10 -0
- package/resources/ai/openai/openai.d.ts.map +1 -1
- package/resources/ai/openai/openai.js.map +1 -1
- package/resources/ai/openai/openai.mjs.map +1 -1
- package/resources/calls/actions.d.mts +35 -12
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +35 -12
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/calls.d.mts +2 -2
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +2 -2
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs.map +1 -1
- package/resources/calls/index.d.mts +1 -1
- package/resources/calls/index.d.mts.map +1 -1
- package/resources/calls/index.d.ts +1 -1
- package/resources/calls/index.d.ts.map +1 -1
- package/resources/calls/index.js.map +1 -1
- package/resources/calls/index.mjs.map +1 -1
- package/resources/conferences/actions.d.mts +3 -1
- package/resources/conferences/actions.d.mts.map +1 -1
- package/resources/conferences/actions.d.ts +3 -1
- package/resources/conferences/actions.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/phone-numbers/jobs.d.mts +21 -4
- package/resources/phone-numbers/jobs.d.mts.map +1 -1
- package/resources/phone-numbers/jobs.d.ts +21 -4
- package/resources/phone-numbers/jobs.d.ts.map +1 -1
- package/resources/phone-numbers/jobs.js +4 -2
- package/resources/phone-numbers/jobs.js.map +1 -1
- package/resources/phone-numbers/jobs.mjs +4 -2
- package/resources/phone-numbers/jobs.mjs.map +1 -1
- package/resources/sim-card-groups/actions.d.mts +10 -4
- package/resources/sim-card-groups/actions.d.mts.map +1 -1
- package/resources/sim-card-groups/actions.d.ts +10 -4
- package/resources/sim-card-groups/actions.d.ts.map +1 -1
- package/resources/sim-card-groups/actions.js +6 -4
- package/resources/sim-card-groups/actions.js.map +1 -1
- package/resources/sim-card-groups/actions.mjs +6 -4
- package/resources/sim-card-groups/actions.mjs.map +1 -1
- package/resources/speech-to-text/speech-to-text.d.mts +20 -10
- package/resources/speech-to-text/speech-to-text.d.mts.map +1 -1
- package/resources/speech-to-text/speech-to-text.d.ts +20 -10
- package/resources/speech-to-text/speech-to-text.d.ts.map +1 -1
- package/resources/speech-to-text/speech-to-text.js +3 -2
- package/resources/speech-to-text/speech-to-text.js.map +1 -1
- package/resources/speech-to-text/speech-to-text.mjs +3 -2
- package/resources/speech-to-text/speech-to-text.mjs.map +1 -1
- package/resources/webhooks.d.mts +3 -2
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +3 -2
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/wireless-blocklist-values.d.mts +6 -19
- package/resources/wireless-blocklist-values.d.mts.map +1 -1
- package/resources/wireless-blocklist-values.d.ts +6 -19
- package/resources/wireless-blocklist-values.d.ts.map +1 -1
- package/resources/wireless-blocklist-values.js +2 -1
- package/resources/wireless-blocklist-values.js.map +1 -1
- package/resources/wireless-blocklist-values.mjs +2 -1
- package/resources/wireless-blocklist-values.mjs.map +1 -1
- package/resources/wireless-blocklists.d.mts +40 -20
- package/resources/wireless-blocklists.d.mts.map +1 -1
- package/resources/wireless-blocklists.d.ts +40 -20
- package/resources/wireless-blocklists.d.ts.map +1 -1
- package/resources/wireless-blocklists.js +12 -7
- package/resources/wireless-blocklists.js.map +1 -1
- package/resources/wireless-blocklists.mjs +12 -7
- package/resources/wireless-blocklists.mjs.map +1 -1
- package/src/client.ts +4 -4
- package/src/resources/ai/ai.ts +6 -6
- package/src/resources/ai/anthropic/v1.ts +4 -3
- package/src/resources/ai/assistants/assistants.ts +91 -1
- package/src/resources/ai/chat.ts +9 -0
- package/src/resources/ai/collections/collections.ts +0 -134
- package/src/resources/ai/collections/index.ts +0 -3
- package/src/resources/ai/collections/settings.ts +4 -1
- package/src/resources/ai/index.ts +1 -3
- package/src/resources/ai/knowledge/collections.ts +179 -0
- package/src/resources/ai/knowledge/index.ts +8 -0
- package/src/resources/ai/knowledge/knowledge.ts +23 -0
- package/src/resources/ai/knowledge.ts +3 -0
- package/src/resources/ai/openai/chat.ts +9 -0
- package/src/resources/ai/openai/openai.ts +12 -0
- package/src/resources/calls/actions.ts +38 -6
- package/src/resources/calls/calls.ts +2 -0
- package/src/resources/calls/index.ts +1 -0
- package/src/resources/conferences/actions.ts +3 -1
- package/src/resources/index.ts +2 -2
- package/src/resources/phone-numbers/jobs.ts +23 -4
- package/src/resources/sim-card-groups/actions.ts +11 -4
- package/src/resources/speech-to-text/speech-to-text.ts +23 -9
- package/src/resources/webhooks.ts +3 -2
- package/src/resources/wireless-blocklist-values.ts +6 -23
- package/src/resources/wireless-blocklists.ts +54 -25
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.d.ts","sourceRoot":"","sources":["../../src/resources/phone-numbers/jobs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,OAAO,uCAAoC;AACvD,OAAO,KAAK,QAAQ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AErD;;WAEG;QACH,4BAA4B,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;KAC7D;IAED,UAAiB,MAAM,CAAC;QACtB;;WAEG;QACH,UAAiB,mBAAmB;YAClC;;eAEG;YACH,QAAQ,CAAC,EAAE,MAAM,CAAC;YAElB;;eAEG;YACH,SAAS,CAAC,EAAE,MAAM,CAAC;YAEnB;;eAEG;YACH,EAAE,CAAC,EAAE,MAAM,CAAC;YAEZ;;eAEG;YACH,WAAW,CAAC,EAAE,MAAM,CAAC;SACtB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -10,8 +10,10 @@ const path_1 = require("../../internal/utils/path.js");
|
|
|
10
10
|
*/
|
|
11
11
|
class Jobs extends resource_1.APIResource {
|
|
12
12
|
/**
|
|
13
|
-
* Returns background jobs that operate on phone numbers.
|
|
14
|
-
*
|
|
13
|
+
* Returns background jobs that operate on phone numbers. Filter by job type,
|
|
14
|
+
* target phone numbers, or job status, and sort by creation time. Multiple
|
|
15
|
+
* phone-number or status values use OR semantics within that filter; different
|
|
16
|
+
* filter categories use AND semantics. Results include pagination metadata.
|
|
15
17
|
*
|
|
16
18
|
* @example
|
|
17
19
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../src/resources/phone-numbers/jobs.ts"],"names":[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;OAQG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,uBAAuB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF;AAjHD,oBAiHC"}
|
|
@@ -7,8 +7,10 @@ import { path } from "../../internal/utils/path.mjs";
|
|
|
7
7
|
*/
|
|
8
8
|
export class Jobs extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
* Returns background jobs that operate on phone numbers.
|
|
11
|
-
*
|
|
10
|
+
* Returns background jobs that operate on phone numbers. Filter by job type,
|
|
11
|
+
* target phone numbers, or job status, and sort by creation time. Multiple
|
|
12
|
+
* phone-number or status values use OR semantics within that filter; different
|
|
13
|
+
* filter categories use AND semantics. Results include pagination metadata.
|
|
12
14
|
*
|
|
13
15
|
* @example
|
|
14
16
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.mjs","sourceRoot":"","sources":["../../src/resources/phone-numbers/jobs.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAKlD,OAAO,EAAE,qBAAqB,EAAiD,kCAA8B;AAE7G,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC
|
|
1
|
+
{"version":3,"file":"jobs.mjs","sourceRoot":"","sources":["../../src/resources/phone-numbers/jobs.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAKlD,OAAO,EAAE,qBAAqB,EAAiD,kCAA8B;AAE7G,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,QAA0C,EAAE,EAC5C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,qBAAqB,EAAE,CAAA,qBAAsC,CAAA,EAAE;YAC5F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,WAAW,CAAC,IAA0B,EAAE,OAAwB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0CAA0C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,4BAA4B,CAC1B,IAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+CAA+C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClG,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,WAAW,CAAC,MAA4B,EAAE,OAAwB;QAChE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0CAA0C,EAAE;YACnE,KAAK,EAAE,EAAE,MAAM,EAAE;YACjB,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,uBAAuB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF"}
|
|
@@ -45,8 +45,9 @@ export declare class Actions extends APIResource {
|
|
|
45
45
|
*/
|
|
46
46
|
removePrivateWirelessGateway(id: string, options?: RequestOptions): APIPromise<ActionRemovePrivateWirelessGatewayResponse>;
|
|
47
47
|
/**
|
|
48
|
-
* This action
|
|
49
|
-
*
|
|
48
|
+
* This action asynchronously removes the Wireless Blocklist assigned to a SIM Card
|
|
49
|
+
* Group. The request returns `404` when the SIM Card Group does not exist and
|
|
50
|
+
* `422` when no Wireless Blocklist is assigned.
|
|
50
51
|
*
|
|
51
52
|
* @example
|
|
52
53
|
* ```ts
|
|
@@ -80,8 +81,9 @@ export declare class Actions extends APIResource {
|
|
|
80
81
|
*/
|
|
81
82
|
setPrivateWirelessGateway(id: string, body: ActionSetPrivateWirelessGatewayParams, options?: RequestOptions): APIPromise<ActionSetPrivateWirelessGatewayResponse>;
|
|
82
83
|
/**
|
|
83
|
-
* This action
|
|
84
|
-
* the SIM
|
|
84
|
+
* This action asynchronously assigns a Wireless Blocklist to all SIMs in the SIM
|
|
85
|
+
* Card Group. The request returns `404` when the SIM Card Group does not exist and
|
|
86
|
+
* `422` when the Wireless Blocklist does not exist.
|
|
85
87
|
*
|
|
86
88
|
* @example
|
|
87
89
|
* ```ts
|
|
@@ -140,6 +142,10 @@ export declare namespace SimCardGroupAction {
|
|
|
140
142
|
* The identification of the related Private Wireless Gateway resource.
|
|
141
143
|
*/
|
|
142
144
|
private_wireless_gateway_id?: string;
|
|
145
|
+
/**
|
|
146
|
+
* The identification of the related Wireless Blocklist resource.
|
|
147
|
+
*/
|
|
148
|
+
wireless_blocklist_id?: string;
|
|
143
149
|
}
|
|
144
150
|
}
|
|
145
151
|
export interface ActionRetrieveResponse {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.mts","sourceRoot":"","sources":["../../src/resources/sim-card-groups/actions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,WAAW,EAAE,kCAA8B;AAC7G,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,KAAK,GAAE,gBAAgB,GAAG,IAAI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CAAqC;IACpD;;;;OAIG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC;CAC3B;AAED,MAAM,WAAW,uCAAuC;IACtD;;;;OAIG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC;CAC3B;AAED,MAAM,WAAW,kCAAkC;IACjD;;;;OAIG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC;CAC3B;AAED,MAAM,WAAW,gBAAiB,SAAQ,2BAA2B;IACnE;;OAEG;IACH,2BAA2B,CAAC,EAAE,MAAM,CAAC;IAErC;;OAEG;IACH,gBAAgB,CAAC,EAAE,aAAa,GAAG,WAAW,GAAG,QAAQ,CAAC;IAE1D;;OAEG;IACH,cAAc,CAAC,EACX,8BAA8B,GAC9B,iCAAiC,GACjC,wBAAwB,GACxB,2BAA2B,CAAC;CACjC;AAED,MAAM,WAAW,qCAAqC;IACpD;;OAEG;IACH,2BAA2B,EAAE,MAAM,CAAC;CACrC;AAED,MAAM,WAAW,gCAAgC;IAC/C;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
|
|
@@ -45,8 +45,9 @@ export declare class Actions extends APIResource {
|
|
|
45
45
|
*/
|
|
46
46
|
removePrivateWirelessGateway(id: string, options?: RequestOptions): APIPromise<ActionRemovePrivateWirelessGatewayResponse>;
|
|
47
47
|
/**
|
|
48
|
-
* This action
|
|
49
|
-
*
|
|
48
|
+
* This action asynchronously removes the Wireless Blocklist assigned to a SIM Card
|
|
49
|
+
* Group. The request returns `404` when the SIM Card Group does not exist and
|
|
50
|
+
* `422` when no Wireless Blocklist is assigned.
|
|
50
51
|
*
|
|
51
52
|
* @example
|
|
52
53
|
* ```ts
|
|
@@ -80,8 +81,9 @@ export declare class Actions extends APIResource {
|
|
|
80
81
|
*/
|
|
81
82
|
setPrivateWirelessGateway(id: string, body: ActionSetPrivateWirelessGatewayParams, options?: RequestOptions): APIPromise<ActionSetPrivateWirelessGatewayResponse>;
|
|
82
83
|
/**
|
|
83
|
-
* This action
|
|
84
|
-
* the SIM
|
|
84
|
+
* This action asynchronously assigns a Wireless Blocklist to all SIMs in the SIM
|
|
85
|
+
* Card Group. The request returns `404` when the SIM Card Group does not exist and
|
|
86
|
+
* `422` when the Wireless Blocklist does not exist.
|
|
85
87
|
*
|
|
86
88
|
* @example
|
|
87
89
|
* ```ts
|
|
@@ -140,6 +142,10 @@ export declare namespace SimCardGroupAction {
|
|
|
140
142
|
* The identification of the related Private Wireless Gateway resource.
|
|
141
143
|
*/
|
|
142
144
|
private_wireless_gateway_id?: string;
|
|
145
|
+
/**
|
|
146
|
+
* The identification of the related Wireless Blocklist resource.
|
|
147
|
+
*/
|
|
148
|
+
wireless_blocklist_id?: string;
|
|
143
149
|
}
|
|
144
150
|
}
|
|
145
151
|
export interface ActionRetrieveResponse {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/resources/sim-card-groups/actions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,WAAW,EAAE,iCAA8B;AAC7G,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,OA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
|
return this._client.post((0, path_1.path) `/sim_card_groups/${id}/actions/remove_private_wireless_gateway`, options);
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
|
-
* This action
|
|
61
|
-
*
|
|
60
|
+
* This action asynchronously removes the Wireless Blocklist assigned to a SIM Card
|
|
61
|
+
* Group. The request returns `404` when the SIM Card Group does not exist and
|
|
62
|
+
* `422` when no Wireless Blocklist is assigned.
|
|
62
63
|
*
|
|
63
64
|
* @example
|
|
64
65
|
* ```ts
|
|
@@ -99,8 +100,9 @@ class Actions extends resource_1.APIResource {
|
|
|
99
100
|
});
|
|
100
101
|
}
|
|
101
102
|
/**
|
|
102
|
-
* This action
|
|
103
|
-
* the SIM
|
|
103
|
+
* This action asynchronously assigns a Wireless Blocklist to all SIMs in the SIM
|
|
104
|
+
* Card Group. The request returns `404` when the SIM Card Group does not exist and
|
|
105
|
+
* `422` when the Wireless Blocklist does not exist.
|
|
104
106
|
*
|
|
105
107
|
* @example
|
|
106
108
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../../src/resources/sim-card-groups/actions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA6G;AAE7G,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,yBAAyB,EAAE,CAAA,kCAAyC,CAAA,EAAE;YACnG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,2BAA2B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;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AAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,uCAAuC,EAAE;YAC1F,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,oBAAoB,CAClB,EAAU,EACV,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,iCAAiC,EAAE;YACpF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AA3ID,0BA2IC"}
|
|
@@ -54,8 +54,9 @@ export class Actions extends APIResource {
|
|
|
54
54
|
return this._client.post(path `/sim_card_groups/${id}/actions/remove_private_wireless_gateway`, options);
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
|
-
* This action
|
|
58
|
-
*
|
|
57
|
+
* This action asynchronously removes the Wireless Blocklist assigned to a SIM Card
|
|
58
|
+
* Group. The request returns `404` when the SIM Card Group does not exist and
|
|
59
|
+
* `422` when no Wireless Blocklist is assigned.
|
|
59
60
|
*
|
|
60
61
|
* @example
|
|
61
62
|
* ```ts
|
|
@@ -96,8 +97,9 @@ export class Actions extends APIResource {
|
|
|
96
97
|
});
|
|
97
98
|
}
|
|
98
99
|
/**
|
|
99
|
-
* This action
|
|
100
|
-
* the SIM
|
|
100
|
+
* This action asynchronously assigns a Wireless Blocklist to all SIMs in the SIM
|
|
101
|
+
* Card Group. The request returns `404` when the SIM Card Group does not exist and
|
|
102
|
+
* `422` when the Wireless Blocklist does not exist.
|
|
101
103
|
*
|
|
102
104
|
* @example
|
|
103
105
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.mjs","sourceRoot":"","sources":["../../src/resources/sim-card-groups/actions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO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C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,4BAA4B,CAC1B,EAAU,EACV,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,oBAAoB,EAAE,0CAA0C,EAAE,OAAO,CAAC,CAAC;IAC1G,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,uBAAuB,CACrB,EAAU,EACV,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,oBAAoB,EAAE,oCAAoC,EAAE,OAAO,CAAC,CAAC;IACpG,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,yBAAyB,CACvB,EAAU,EACV,IAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,oBAAoB,EAAE,uCAAuC,EAAE;YAC1F,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,oBAAoB,CAClB,EAAU,EACV,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,oBAAoB,EAAE,iCAAiC,EAAE;YACpF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -29,13 +29,14 @@ export declare class SpeechToText extends APIResource {
|
|
|
29
29
|
* `Authorization: Bearer <API_KEY>` header.
|
|
30
30
|
*
|
|
31
31
|
* Supported engines: `Azure`, `Deepgram`, `Google`, `Telnyx`, `xAI`,
|
|
32
|
-
* `Speechmatics`, `Soniox`, `Parakeet`, `Humain`, `Reson8`.
|
|
32
|
+
* `Speechmatics`, `Soniox`, `Parakeet`, `Humain`, `Reson8`, `Cohere`.
|
|
33
33
|
*
|
|
34
34
|
* **Connection flow:**
|
|
35
35
|
*
|
|
36
36
|
* 1. Open WebSocket with query parameters specifying engine, input format, and
|
|
37
37
|
* language.
|
|
38
|
-
* 2. Send binary audio frames (mp3
|
|
38
|
+
* 2. Send binary audio frames (mp3, wav, linear16, or linear32 format, per
|
|
39
|
+
* `input_format`).
|
|
39
40
|
* 3. Receive JSON transcript frames with `transcript`, `is_final`, and
|
|
40
41
|
* `confidence` fields.
|
|
41
42
|
* 4. Close connection when done.
|
|
@@ -50,7 +51,7 @@ export declare class SpeechToText extends APIResource {
|
|
|
50
51
|
*/
|
|
51
52
|
export type SttServiceType = 'streaming' | 'file_based' | 'in_call' | 'ai_assistant';
|
|
52
53
|
/**
|
|
53
|
-
* Binary audio data in mp3 or
|
|
54
|
+
* Binary audio data in mp3, wav, linear16, or linear32 format, per `input_format`.
|
|
54
55
|
*/
|
|
55
56
|
export type TranscribeClientEvent = Uploadable;
|
|
56
57
|
/**
|
|
@@ -71,9 +72,10 @@ export declare namespace TranscribeServerEvent {
|
|
|
71
72
|
*/
|
|
72
73
|
type: 'transcript';
|
|
73
74
|
/**
|
|
74
|
-
* Confidence score of the transcription, ranging from 0 to 1.
|
|
75
|
+
* Confidence score of the transcription, ranging from 0 to 1. `cohere/ar-stt`
|
|
76
|
+
* frames return `null` here rather than omitting the field.
|
|
75
77
|
*/
|
|
76
|
-
confidence?: number;
|
|
78
|
+
confidence?: number | null;
|
|
77
79
|
/**
|
|
78
80
|
* Whether this is a final transcription result. When `false`, this is an interim
|
|
79
81
|
* result that may be refined.
|
|
@@ -165,7 +167,7 @@ export interface SpeechToTextListProvidersParams {
|
|
|
165
167
|
* models currently registered for any service type will return an empty `data`
|
|
166
168
|
* array rather than an error.
|
|
167
169
|
*/
|
|
168
|
-
provider?: 'deepgram' | 'speechmatics' | 'assemblyai' | 'xai' | 'soniox' | 'parakeet' | 'humain' | 'reson8' | 'azure' | 'openai' | 'google' | 'telnyx';
|
|
170
|
+
provider?: 'deepgram' | 'speechmatics' | 'assemblyai' | 'xai' | 'soniox' | 'parakeet' | 'humain' | 'reson8' | 'cohere' | 'azure' | 'openai' | 'google' | 'telnyx';
|
|
169
171
|
/**
|
|
170
172
|
* Filter to entries that support the given service type. For backward
|
|
171
173
|
* compatibility with the values that briefly shipped before the product-aligned
|
|
@@ -180,11 +182,11 @@ export interface SpeechToTextRetrieveTranscriptionParams {
|
|
|
180
182
|
/**
|
|
181
183
|
* The format of input audio stream.
|
|
182
184
|
*/
|
|
183
|
-
input_format: 'mp3' | 'wav';
|
|
185
|
+
input_format: 'mp3' | 'wav' | 'linear16' | 'linear32';
|
|
184
186
|
/**
|
|
185
187
|
* The transcription engine to use for processing the audio stream.
|
|
186
188
|
*/
|
|
187
|
-
transcription_engine: 'Azure' | 'Deepgram' | 'Google' | 'Telnyx' | 'xAI' | 'Speechmatics' | 'Soniox' | 'Parakeet' | 'Humain' | 'Reson8';
|
|
189
|
+
transcription_engine: 'Azure' | 'Deepgram' | 'Google' | 'Telnyx' | 'xAI' | 'Speechmatics' | 'Soniox' | 'Parakeet' | 'Humain' | 'Reson8' | 'Cohere';
|
|
188
190
|
/**
|
|
189
191
|
* Silence duration (in milliseconds) that triggers end-of-speech detection. When
|
|
190
192
|
* set, the engine uses this value to determine when a speaker has stopped talking.
|
|
@@ -208,18 +210,26 @@ export interface SpeechToTextRetrieveTranscriptionParams {
|
|
|
208
210
|
*/
|
|
209
211
|
keywords?: string;
|
|
210
212
|
/**
|
|
211
|
-
* The language spoken in the audio stream.
|
|
213
|
+
* The language spoken in the audio stream. For `cohere/ar-stt`, this must be `ar`
|
|
214
|
+
* or `en` — unlike other engines, Cohere does not auto-detect the language, and
|
|
215
|
+
* rejects unsupported values including `auto`; omitting it defaults to `ar`.
|
|
212
216
|
*/
|
|
213
217
|
language?: string;
|
|
214
218
|
/**
|
|
215
219
|
* The specific model to use within the selected transcription engine.
|
|
216
220
|
*/
|
|
217
|
-
model?: 'fast' | 'deepgram/nova-2' | 'deepgram/nova-3' | 'latest_long' | 'latest_short' | 'command_and_search' | 'phone_call' | 'video' | 'default' | 'medical_conversation' | 'medical_dictation' | 'openai/whisper-tiny' | 'openai/whisper-large-v3-turbo' | 'xai/grok-stt' | 'speechmatics/standard' | 'soniox/stt-rt-v4' | 'nvidia/parakeet-v3' | 'humain/realtime' | 'reson8/turns';
|
|
221
|
+
model?: 'fast' | 'deepgram/nova-2' | 'deepgram/nova-3' | 'latest_long' | 'latest_short' | 'command_and_search' | 'phone_call' | 'video' | 'default' | 'medical_conversation' | 'medical_dictation' | 'openai/whisper-tiny' | 'openai/whisper-large-v3-turbo' | 'xai/grok-stt' | 'speechmatics/standard' | 'soniox/stt-rt-v4' | 'nvidia/parakeet-v3' | 'humain/realtime' | 'reson8/turns' | 'cohere/ar-stt';
|
|
218
222
|
/**
|
|
219
223
|
* Enable redaction of sensitive information (e.g., PCI data, SSN) from
|
|
220
224
|
* transcription results. Supported values depend on the transcription engine.
|
|
221
225
|
*/
|
|
222
226
|
redact?: string;
|
|
227
|
+
/**
|
|
228
|
+
* Audio sample rate in Hz. Required when `input_format` is a raw encoding
|
|
229
|
+
* (`linear16`, `linear32`) — those formats carry no header metadata. Ignored for
|
|
230
|
+
* container formats (`mp3`, `wav`), which self-describe their rate.
|
|
231
|
+
*/
|
|
232
|
+
sample_rate?: number;
|
|
223
233
|
}
|
|
224
234
|
export declare namespace SpeechToText {
|
|
225
235
|
export { type SttServiceType as SttServiceType, type TranscribeClientEvent as TranscribeClientEvent, type TranscribeServerEvent as TranscribeServerEvent, type SpeechToTextListProvidersResponse as SpeechToTextListProvidersResponse, type SpeechToTextListProvidersParams as SpeechToTextListProvidersParams, type SpeechToTextRetrieveTranscriptionParams as SpeechToTextRetrieveTranscriptionParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"speech-to-text.d.mts","sourceRoot":"","sources":["../../src/resources/speech-to-text/speech-to-text.ts"],"names":[],"mappings":"AAEA,OA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AAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,uCAAuC,IAAI,uCAAuC,GACxF,CAAC;CACH"}
|
|
@@ -29,13 +29,14 @@ export declare class SpeechToText extends APIResource {
|
|
|
29
29
|
* `Authorization: Bearer <API_KEY>` header.
|
|
30
30
|
*
|
|
31
31
|
* Supported engines: `Azure`, `Deepgram`, `Google`, `Telnyx`, `xAI`,
|
|
32
|
-
* `Speechmatics`, `Soniox`, `Parakeet`, `Humain`, `Reson8`.
|
|
32
|
+
* `Speechmatics`, `Soniox`, `Parakeet`, `Humain`, `Reson8`, `Cohere`.
|
|
33
33
|
*
|
|
34
34
|
* **Connection flow:**
|
|
35
35
|
*
|
|
36
36
|
* 1. Open WebSocket with query parameters specifying engine, input format, and
|
|
37
37
|
* language.
|
|
38
|
-
* 2. Send binary audio frames (mp3
|
|
38
|
+
* 2. Send binary audio frames (mp3, wav, linear16, or linear32 format, per
|
|
39
|
+
* `input_format`).
|
|
39
40
|
* 3. Receive JSON transcript frames with `transcript`, `is_final`, and
|
|
40
41
|
* `confidence` fields.
|
|
41
42
|
* 4. Close connection when done.
|
|
@@ -50,7 +51,7 @@ export declare class SpeechToText extends APIResource {
|
|
|
50
51
|
*/
|
|
51
52
|
export type SttServiceType = 'streaming' | 'file_based' | 'in_call' | 'ai_assistant';
|
|
52
53
|
/**
|
|
53
|
-
* Binary audio data in mp3 or
|
|
54
|
+
* Binary audio data in mp3, wav, linear16, or linear32 format, per `input_format`.
|
|
54
55
|
*/
|
|
55
56
|
export type TranscribeClientEvent = Uploadable;
|
|
56
57
|
/**
|
|
@@ -71,9 +72,10 @@ export declare namespace TranscribeServerEvent {
|
|
|
71
72
|
*/
|
|
72
73
|
type: 'transcript';
|
|
73
74
|
/**
|
|
74
|
-
* Confidence score of the transcription, ranging from 0 to 1.
|
|
75
|
+
* Confidence score of the transcription, ranging from 0 to 1. `cohere/ar-stt`
|
|
76
|
+
* frames return `null` here rather than omitting the field.
|
|
75
77
|
*/
|
|
76
|
-
confidence?: number;
|
|
78
|
+
confidence?: number | null;
|
|
77
79
|
/**
|
|
78
80
|
* Whether this is a final transcription result. When `false`, this is an interim
|
|
79
81
|
* result that may be refined.
|
|
@@ -165,7 +167,7 @@ export interface SpeechToTextListProvidersParams {
|
|
|
165
167
|
* models currently registered for any service type will return an empty `data`
|
|
166
168
|
* array rather than an error.
|
|
167
169
|
*/
|
|
168
|
-
provider?: 'deepgram' | 'speechmatics' | 'assemblyai' | 'xai' | 'soniox' | 'parakeet' | 'humain' | 'reson8' | 'azure' | 'openai' | 'google' | 'telnyx';
|
|
170
|
+
provider?: 'deepgram' | 'speechmatics' | 'assemblyai' | 'xai' | 'soniox' | 'parakeet' | 'humain' | 'reson8' | 'cohere' | 'azure' | 'openai' | 'google' | 'telnyx';
|
|
169
171
|
/**
|
|
170
172
|
* Filter to entries that support the given service type. For backward
|
|
171
173
|
* compatibility with the values that briefly shipped before the product-aligned
|
|
@@ -180,11 +182,11 @@ export interface SpeechToTextRetrieveTranscriptionParams {
|
|
|
180
182
|
/**
|
|
181
183
|
* The format of input audio stream.
|
|
182
184
|
*/
|
|
183
|
-
input_format: 'mp3' | 'wav';
|
|
185
|
+
input_format: 'mp3' | 'wav' | 'linear16' | 'linear32';
|
|
184
186
|
/**
|
|
185
187
|
* The transcription engine to use for processing the audio stream.
|
|
186
188
|
*/
|
|
187
|
-
transcription_engine: 'Azure' | 'Deepgram' | 'Google' | 'Telnyx' | 'xAI' | 'Speechmatics' | 'Soniox' | 'Parakeet' | 'Humain' | 'Reson8';
|
|
189
|
+
transcription_engine: 'Azure' | 'Deepgram' | 'Google' | 'Telnyx' | 'xAI' | 'Speechmatics' | 'Soniox' | 'Parakeet' | 'Humain' | 'Reson8' | 'Cohere';
|
|
188
190
|
/**
|
|
189
191
|
* Silence duration (in milliseconds) that triggers end-of-speech detection. When
|
|
190
192
|
* set, the engine uses this value to determine when a speaker has stopped talking.
|
|
@@ -208,18 +210,26 @@ export interface SpeechToTextRetrieveTranscriptionParams {
|
|
|
208
210
|
*/
|
|
209
211
|
keywords?: string;
|
|
210
212
|
/**
|
|
211
|
-
* The language spoken in the audio stream.
|
|
213
|
+
* The language spoken in the audio stream. For `cohere/ar-stt`, this must be `ar`
|
|
214
|
+
* or `en` — unlike other engines, Cohere does not auto-detect the language, and
|
|
215
|
+
* rejects unsupported values including `auto`; omitting it defaults to `ar`.
|
|
212
216
|
*/
|
|
213
217
|
language?: string;
|
|
214
218
|
/**
|
|
215
219
|
* The specific model to use within the selected transcription engine.
|
|
216
220
|
*/
|
|
217
|
-
model?: 'fast' | 'deepgram/nova-2' | 'deepgram/nova-3' | 'latest_long' | 'latest_short' | 'command_and_search' | 'phone_call' | 'video' | 'default' | 'medical_conversation' | 'medical_dictation' | 'openai/whisper-tiny' | 'openai/whisper-large-v3-turbo' | 'xai/grok-stt' | 'speechmatics/standard' | 'soniox/stt-rt-v4' | 'nvidia/parakeet-v3' | 'humain/realtime' | 'reson8/turns';
|
|
221
|
+
model?: 'fast' | 'deepgram/nova-2' | 'deepgram/nova-3' | 'latest_long' | 'latest_short' | 'command_and_search' | 'phone_call' | 'video' | 'default' | 'medical_conversation' | 'medical_dictation' | 'openai/whisper-tiny' | 'openai/whisper-large-v3-turbo' | 'xai/grok-stt' | 'speechmatics/standard' | 'soniox/stt-rt-v4' | 'nvidia/parakeet-v3' | 'humain/realtime' | 'reson8/turns' | 'cohere/ar-stt';
|
|
218
222
|
/**
|
|
219
223
|
* Enable redaction of sensitive information (e.g., PCI data, SSN) from
|
|
220
224
|
* transcription results. Supported values depend on the transcription engine.
|
|
221
225
|
*/
|
|
222
226
|
redact?: string;
|
|
227
|
+
/**
|
|
228
|
+
* Audio sample rate in Hz. Required when `input_format` is a raw encoding
|
|
229
|
+
* (`linear16`, `linear32`) — those formats carry no header metadata. Ignored for
|
|
230
|
+
* container formats (`mp3`, `wav`), which self-describe their rate.
|
|
231
|
+
*/
|
|
232
|
+
sample_rate?: number;
|
|
223
233
|
}
|
|
224
234
|
export declare namespace SpeechToText {
|
|
225
235
|
export { type SttServiceType as SttServiceType, type TranscribeClientEvent as TranscribeClientEvent, type TranscribeServerEvent as TranscribeServerEvent, type SpeechToTextListProvidersResponse as SpeechToTextListProvidersResponse, type SpeechToTextListProvidersParams as SpeechToTextListProvidersParams, type SpeechToTextRetrieveTranscriptionParams as SpeechToTextRetrieveTranscriptionParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"speech-to-text.d.ts","sourceRoot":"","sources":["../../src/resources/speech-to-text/speech-to-text.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,eAAe,4BAAyB;AACpD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,KAAK,UAAU,EAAE,8BAA2B;AAErD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;;;;;OAiBG;IACH,aAAa,CACX,KAAK,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC9D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;IAQhD
|
|
1
|
+
{"version":3,"file":"speech-to-text.d.ts","sourceRoot":"","sources":["../../src/resources/speech-to-text/speech-to-text.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,eAAe,4BAAyB;AACpD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,KAAK,UAAU,EAAE,8BAA2B;AAErD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;;;;;OAiBG;IACH,aAAa,CACX,KAAK,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC9D,OAAO,CAAC,EAAE,cAA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mBAAmB,GACnB,qBAAqB,GACrB,+BAA+B,GAC/B,cAAc,GACd,uBAAuB,GACvB,kBAAkB,GAClB,oBAAoB,GACpB,iBAAiB,GACjB,cAAc,GACd,eAAe,CAAC;IAEpB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,uCAAuC,IAAI,uCAAuC,GACxF,CAAC;CACH"}
|
|
@@ -36,13 +36,14 @@ class SpeechToText extends resource_1.APIResource {
|
|
|
36
36
|
* `Authorization: Bearer <API_KEY>` header.
|
|
37
37
|
*
|
|
38
38
|
* Supported engines: `Azure`, `Deepgram`, `Google`, `Telnyx`, `xAI`,
|
|
39
|
-
* `Speechmatics`, `Soniox`, `Parakeet`, `Humain`, `Reson8`.
|
|
39
|
+
* `Speechmatics`, `Soniox`, `Parakeet`, `Humain`, `Reson8`, `Cohere`.
|
|
40
40
|
*
|
|
41
41
|
* **Connection flow:**
|
|
42
42
|
*
|
|
43
43
|
* 1. Open WebSocket with query parameters specifying engine, input format, and
|
|
44
44
|
* language.
|
|
45
|
-
* 2. Send binary audio frames (mp3
|
|
45
|
+
* 2. Send binary audio frames (mp3, wav, linear16, or linear32 format, per
|
|
46
|
+
* `input_format`).
|
|
46
47
|
* 3. Receive JSON transcript frames with `transcript`, `is_final`, and
|
|
47
48
|
* `confidence` fields.
|
|
48
49
|
* 4. Close connection when done.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"speech-to-text.js","sourceRoot":"","sources":["../../src/resources/speech-to-text/speech-to-text.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAsD;AAGtD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;;;;;;;OAiBG;IACH,aAAa,CACX,QAA4D,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE;YACnD,KAAK;YACL,cAAc,EAAE,2BAA2B;YAC3C,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"speech-to-text.js","sourceRoot":"","sources":["../../src/resources/speech-to-text/speech-to-text.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAsD;AAGtD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;;;;;;;OAiBG;IACH,aAAa,CACX,QAA4D,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE;YACnD,KAAK;YACL,cAAc,EAAE,2BAA2B;YAC3C,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,qBAAqB,CACnB,KAA8C,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE;YACvD,KAAK;YACL,cAAc,EAAE,yBAAyB;YACzC,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA3DD,oCA2DC"}
|
|
@@ -33,13 +33,14 @@ export class SpeechToText extends APIResource {
|
|
|
33
33
|
* `Authorization: Bearer <API_KEY>` header.
|
|
34
34
|
*
|
|
35
35
|
* Supported engines: `Azure`, `Deepgram`, `Google`, `Telnyx`, `xAI`,
|
|
36
|
-
* `Speechmatics`, `Soniox`, `Parakeet`, `Humain`, `Reson8`.
|
|
36
|
+
* `Speechmatics`, `Soniox`, `Parakeet`, `Humain`, `Reson8`, `Cohere`.
|
|
37
37
|
*
|
|
38
38
|
* **Connection flow:**
|
|
39
39
|
*
|
|
40
40
|
* 1. Open WebSocket with query parameters specifying engine, input format, and
|
|
41
41
|
* language.
|
|
42
|
-
* 2. Send binary audio frames (mp3
|
|
42
|
+
* 2. Send binary audio frames (mp3, wav, linear16, or linear32 format, per
|
|
43
|
+
* `input_format`).
|
|
43
44
|
* 3. Receive JSON transcript frames with `transcript`, `is_final`, and
|
|
44
45
|
* `confidence` fields.
|
|
45
46
|
* 4. Close connection when done.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"speech-to-text.mjs","sourceRoot":"","sources":["../../src/resources/speech-to-text/speech-to-text.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAGtD,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;;;;;OAiBG;IACH,aAAa,CACX,QAA4D,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE;YACnD,KAAK;YACL,cAAc,EAAE,2BAA2B;YAC3C,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"speech-to-text.mjs","sourceRoot":"","sources":["../../src/resources/speech-to-text/speech-to-text.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAGtD,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;;;;;OAiBG;IACH,aAAa,CACX,QAA4D,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE;YACnD,KAAK;YACL,cAAc,EAAE,2BAA2B;YAC3C,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,qBAAqB,CACnB,KAA8C,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE;YACvD,KAAK;YACL,cAAc,EAAE,yBAAyB;YACzC,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/resources/webhooks.d.mts
CHANGED
|
@@ -3639,9 +3639,10 @@ export declare namespace Transcription {
|
|
|
3639
3639
|
namespace Payload {
|
|
3640
3640
|
interface TranscriptionData {
|
|
3641
3641
|
/**
|
|
3642
|
-
* Speech recognition confidence level.
|
|
3642
|
+
* Speech recognition confidence level. `cohere/ar-stt` returns `null` here rather
|
|
3643
|
+
* than omitting the field.
|
|
3643
3644
|
*/
|
|
3644
|
-
confidence?: number;
|
|
3645
|
+
confidence?: number | null;
|
|
3645
3646
|
/**
|
|
3646
3647
|
* When false, it means that this is an interim result.
|
|
3647
3648
|
*/
|