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
|
@@ -12,12 +12,12 @@ export declare class WirelessBlocklists extends APIResource {
|
|
|
12
12
|
* @example
|
|
13
13
|
* ```ts
|
|
14
14
|
* // Automatically fetches more pages as needed.
|
|
15
|
-
* for await (const
|
|
15
|
+
* for await (const wirelessWirelessBlocklist of client.wirelessBlocklists.list()) {
|
|
16
16
|
* // ...
|
|
17
17
|
* }
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
|
-
list(query?: WirelessBlocklistListParams | null | undefined, options?: RequestOptions): PagePromise<
|
|
20
|
+
list(query?: WirelessBlocklistListParams | null | undefined, options?: RequestOptions): PagePromise<WirelessWirelessBlocklistsDefaultFlatPagination, WirelessWirelessBlocklist>;
|
|
21
21
|
/**
|
|
22
22
|
* Updates the specified wireless blocklist. The update is processed
|
|
23
23
|
* asynchronously, so the request is accepted and completes in the background.
|
|
@@ -46,17 +46,18 @@ export declare class WirelessBlocklists extends APIResource {
|
|
|
46
46
|
*/
|
|
47
47
|
create(body: WirelessBlocklistCreateParams, options?: RequestOptions): APIPromise<WirelessBlocklistCreateResponse>;
|
|
48
48
|
/**
|
|
49
|
-
* Permanently deletes the specified wireless blocklist from your account.
|
|
49
|
+
* Permanently deletes the specified wireless blocklist from your account. The
|
|
50
|
+
* request returns `422` when the wireless blocklist is assigned to a SIM Card
|
|
51
|
+
* Group.
|
|
50
52
|
*
|
|
51
53
|
* @example
|
|
52
54
|
* ```ts
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
* );
|
|
55
|
+
* await client.wirelessBlocklists.delete(
|
|
56
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
57
|
+
* );
|
|
57
58
|
* ```
|
|
58
59
|
*/
|
|
59
|
-
delete(id: string, options?: RequestOptions): APIPromise<
|
|
60
|
+
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
60
61
|
/**
|
|
61
62
|
* Retrieve information about a Wireless Blocklist.
|
|
62
63
|
*
|
|
@@ -70,7 +71,7 @@ export declare class WirelessBlocklists extends APIResource {
|
|
|
70
71
|
*/
|
|
71
72
|
retrieve(id: string, options?: RequestOptions): APIPromise<WirelessBlocklistRetrieveResponse>;
|
|
72
73
|
}
|
|
73
|
-
export type
|
|
74
|
+
export type WirelessWirelessBlocklistsDefaultFlatPagination = DefaultFlatPagination<WirelessWirelessBlocklist>;
|
|
74
75
|
export interface WirelessBlocklist {
|
|
75
76
|
/**
|
|
76
77
|
* Identifies the resource.
|
|
@@ -98,17 +99,40 @@ export interface WirelessBlocklist {
|
|
|
98
99
|
*/
|
|
99
100
|
values?: Array<string>;
|
|
100
101
|
}
|
|
102
|
+
export interface WirelessWirelessBlocklist {
|
|
103
|
+
/**
|
|
104
|
+
* Identifies the resource.
|
|
105
|
+
*/
|
|
106
|
+
id?: string;
|
|
107
|
+
/**
|
|
108
|
+
* ISO 8601 formatted date-time indicating when the resource was created.
|
|
109
|
+
*/
|
|
110
|
+
created_at?: string;
|
|
111
|
+
/**
|
|
112
|
+
* The wireless blocklist name.
|
|
113
|
+
*/
|
|
114
|
+
name?: string;
|
|
115
|
+
/**
|
|
116
|
+
* The type of the wireless blocklist.
|
|
117
|
+
*/
|
|
118
|
+
type?: 'country' | 'mcc' | 'plmn';
|
|
119
|
+
/**
|
|
120
|
+
* ISO 8601 formatted date-time indicating when the resource was updated.
|
|
121
|
+
*/
|
|
122
|
+
updated_at?: string;
|
|
123
|
+
/**
|
|
124
|
+
* Values to block. The values here depend on the `type` of Wireless Blocklist.
|
|
125
|
+
*/
|
|
126
|
+
values?: Array<string>;
|
|
127
|
+
}
|
|
101
128
|
export interface WirelessBlocklistCreateResponse {
|
|
102
|
-
data?:
|
|
129
|
+
data?: WirelessWirelessBlocklist;
|
|
103
130
|
}
|
|
104
131
|
export interface WirelessBlocklistRetrieveResponse {
|
|
105
|
-
data?:
|
|
132
|
+
data?: WirelessWirelessBlocklist;
|
|
106
133
|
}
|
|
107
134
|
export interface WirelessBlocklistUpdateResponse {
|
|
108
|
-
data?:
|
|
109
|
-
}
|
|
110
|
-
export interface WirelessBlocklistDeleteResponse {
|
|
111
|
-
data?: WirelessBlocklist;
|
|
135
|
+
data?: WirelessWirelessBlocklist;
|
|
112
136
|
}
|
|
113
137
|
export interface WirelessBlocklistListParams extends DefaultFlatPaginationParams {
|
|
114
138
|
/**
|
|
@@ -119,10 +143,6 @@ export interface WirelessBlocklistListParams extends DefaultFlatPaginationParams
|
|
|
119
143
|
* When the Private Wireless Gateway was last updated.
|
|
120
144
|
*/
|
|
121
145
|
'filter[type]'?: string;
|
|
122
|
-
/**
|
|
123
|
-
* Values to filter on (inclusive).
|
|
124
|
-
*/
|
|
125
|
-
'filter[values]'?: string;
|
|
126
146
|
}
|
|
127
147
|
export interface WirelessBlocklistUpdateParams {
|
|
128
148
|
/**
|
|
@@ -149,6 +169,6 @@ export interface WirelessBlocklistCreateParams {
|
|
|
149
169
|
values: Array<string>;
|
|
150
170
|
}
|
|
151
171
|
export declare namespace WirelessBlocklists {
|
|
152
|
-
export { type WirelessBlocklist as WirelessBlocklist, type
|
|
172
|
+
export { type WirelessBlocklist as WirelessBlocklist, type WirelessWirelessBlocklist as WirelessWirelessBlocklist, type WirelessBlocklistCreateResponse as WirelessBlocklistCreateResponse, type WirelessBlocklistRetrieveResponse as WirelessBlocklistRetrieveResponse, type WirelessBlocklistUpdateResponse as WirelessBlocklistUpdateResponse, type WirelessWirelessBlocklistsDefaultFlatPagination as WirelessWirelessBlocklistsDefaultFlatPagination, type WirelessBlocklistListParams as WirelessBlocklistListParams, type WirelessBlocklistUpdateParams as WirelessBlocklistUpdateParams, type WirelessBlocklistCreateParams as WirelessBlocklistCreateParams, };
|
|
153
173
|
}
|
|
154
174
|
//# sourceMappingURL=wireless-blocklists.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wireless-blocklists.d.mts","sourceRoot":"","sources":["../src/resources/wireless-blocklists.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,WAAW,EAAE,+BAA2B;
|
|
1
|
+
{"version":3,"file":"wireless-blocklists.d.mts","sourceRoot":"","sources":["../src/resources/wireless-blocklists.ts"],"names":[],"mappings":"AAEA,OAAO,EAA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AC,OAAO,WAAW,kBAAkB,CAAC;IAC1C,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,+CAA+C,IAAI,+CAA+C,EACvG,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
|
|
@@ -12,12 +12,12 @@ export declare class WirelessBlocklists extends APIResource {
|
|
|
12
12
|
* @example
|
|
13
13
|
* ```ts
|
|
14
14
|
* // Automatically fetches more pages as needed.
|
|
15
|
-
* for await (const
|
|
15
|
+
* for await (const wirelessWirelessBlocklist of client.wirelessBlocklists.list()) {
|
|
16
16
|
* // ...
|
|
17
17
|
* }
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
|
-
list(query?: WirelessBlocklistListParams | null | undefined, options?: RequestOptions): PagePromise<
|
|
20
|
+
list(query?: WirelessBlocklistListParams | null | undefined, options?: RequestOptions): PagePromise<WirelessWirelessBlocklistsDefaultFlatPagination, WirelessWirelessBlocklist>;
|
|
21
21
|
/**
|
|
22
22
|
* Updates the specified wireless blocklist. The update is processed
|
|
23
23
|
* asynchronously, so the request is accepted and completes in the background.
|
|
@@ -46,17 +46,18 @@ export declare class WirelessBlocklists extends APIResource {
|
|
|
46
46
|
*/
|
|
47
47
|
create(body: WirelessBlocklistCreateParams, options?: RequestOptions): APIPromise<WirelessBlocklistCreateResponse>;
|
|
48
48
|
/**
|
|
49
|
-
* Permanently deletes the specified wireless blocklist from your account.
|
|
49
|
+
* Permanently deletes the specified wireless blocklist from your account. The
|
|
50
|
+
* request returns `422` when the wireless blocklist is assigned to a SIM Card
|
|
51
|
+
* Group.
|
|
50
52
|
*
|
|
51
53
|
* @example
|
|
52
54
|
* ```ts
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
* );
|
|
55
|
+
* await client.wirelessBlocklists.delete(
|
|
56
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
57
|
+
* );
|
|
57
58
|
* ```
|
|
58
59
|
*/
|
|
59
|
-
delete(id: string, options?: RequestOptions): APIPromise<
|
|
60
|
+
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
60
61
|
/**
|
|
61
62
|
* Retrieve information about a Wireless Blocklist.
|
|
62
63
|
*
|
|
@@ -70,7 +71,7 @@ export declare class WirelessBlocklists extends APIResource {
|
|
|
70
71
|
*/
|
|
71
72
|
retrieve(id: string, options?: RequestOptions): APIPromise<WirelessBlocklistRetrieveResponse>;
|
|
72
73
|
}
|
|
73
|
-
export type
|
|
74
|
+
export type WirelessWirelessBlocklistsDefaultFlatPagination = DefaultFlatPagination<WirelessWirelessBlocklist>;
|
|
74
75
|
export interface WirelessBlocklist {
|
|
75
76
|
/**
|
|
76
77
|
* Identifies the resource.
|
|
@@ -98,17 +99,40 @@ export interface WirelessBlocklist {
|
|
|
98
99
|
*/
|
|
99
100
|
values?: Array<string>;
|
|
100
101
|
}
|
|
102
|
+
export interface WirelessWirelessBlocklist {
|
|
103
|
+
/**
|
|
104
|
+
* Identifies the resource.
|
|
105
|
+
*/
|
|
106
|
+
id?: string;
|
|
107
|
+
/**
|
|
108
|
+
* ISO 8601 formatted date-time indicating when the resource was created.
|
|
109
|
+
*/
|
|
110
|
+
created_at?: string;
|
|
111
|
+
/**
|
|
112
|
+
* The wireless blocklist name.
|
|
113
|
+
*/
|
|
114
|
+
name?: string;
|
|
115
|
+
/**
|
|
116
|
+
* The type of the wireless blocklist.
|
|
117
|
+
*/
|
|
118
|
+
type?: 'country' | 'mcc' | 'plmn';
|
|
119
|
+
/**
|
|
120
|
+
* ISO 8601 formatted date-time indicating when the resource was updated.
|
|
121
|
+
*/
|
|
122
|
+
updated_at?: string;
|
|
123
|
+
/**
|
|
124
|
+
* Values to block. The values here depend on the `type` of Wireless Blocklist.
|
|
125
|
+
*/
|
|
126
|
+
values?: Array<string>;
|
|
127
|
+
}
|
|
101
128
|
export interface WirelessBlocklistCreateResponse {
|
|
102
|
-
data?:
|
|
129
|
+
data?: WirelessWirelessBlocklist;
|
|
103
130
|
}
|
|
104
131
|
export interface WirelessBlocklistRetrieveResponse {
|
|
105
|
-
data?:
|
|
132
|
+
data?: WirelessWirelessBlocklist;
|
|
106
133
|
}
|
|
107
134
|
export interface WirelessBlocklistUpdateResponse {
|
|
108
|
-
data?:
|
|
109
|
-
}
|
|
110
|
-
export interface WirelessBlocklistDeleteResponse {
|
|
111
|
-
data?: WirelessBlocklist;
|
|
135
|
+
data?: WirelessWirelessBlocklist;
|
|
112
136
|
}
|
|
113
137
|
export interface WirelessBlocklistListParams extends DefaultFlatPaginationParams {
|
|
114
138
|
/**
|
|
@@ -119,10 +143,6 @@ export interface WirelessBlocklistListParams extends DefaultFlatPaginationParams
|
|
|
119
143
|
* When the Private Wireless Gateway was last updated.
|
|
120
144
|
*/
|
|
121
145
|
'filter[type]'?: string;
|
|
122
|
-
/**
|
|
123
|
-
* Values to filter on (inclusive).
|
|
124
|
-
*/
|
|
125
|
-
'filter[values]'?: string;
|
|
126
146
|
}
|
|
127
147
|
export interface WirelessBlocklistUpdateParams {
|
|
128
148
|
/**
|
|
@@ -149,6 +169,6 @@ export interface WirelessBlocklistCreateParams {
|
|
|
149
169
|
values: Array<string>;
|
|
150
170
|
}
|
|
151
171
|
export declare namespace WirelessBlocklists {
|
|
152
|
-
export { type WirelessBlocklist as WirelessBlocklist, type
|
|
172
|
+
export { type WirelessBlocklist as WirelessBlocklist, type WirelessWirelessBlocklist as WirelessWirelessBlocklist, type WirelessBlocklistCreateResponse as WirelessBlocklistCreateResponse, type WirelessBlocklistRetrieveResponse as WirelessBlocklistRetrieveResponse, type WirelessBlocklistUpdateResponse as WirelessBlocklistUpdateResponse, type WirelessWirelessBlocklistsDefaultFlatPagination as WirelessWirelessBlocklistsDefaultFlatPagination, type WirelessBlocklistListParams as WirelessBlocklistListParams, type WirelessBlocklistUpdateParams as WirelessBlocklistUpdateParams, type WirelessBlocklistCreateParams as WirelessBlocklistCreateParams, };
|
|
153
173
|
}
|
|
154
174
|
//# sourceMappingURL=wireless-blocklists.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wireless-blocklists.d.ts","sourceRoot":"","sources":["../src/resources/wireless-blocklists.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,WAAW,EAAE,8BAA2B;
|
|
1
|
+
{"version":3,"file":"wireless-blocklists.d.ts","sourceRoot":"","sources":["../src/resources/wireless-blocklists.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,WAAW,EAAE,8BAA2B;AAE1G,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,WAAW;IACjD;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,2BAA2B,GAAG,IAAI,GAAG,SAAc,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,+CAA+C,EAAE,yBAAyB,CAAC;IAO1F;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,6BAA6B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,+BAA+B,CAAC;IAI9C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAI,EAAE,6BAA6B,EACnC,OAAO,CAAC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D,IAAI,CAAC,EAAE,yBAAyB,CAAC;CAClC;AAED,MAAM,WAAW,+BAA+B;IAC9C,IAAI,CAAC,EAAE,yBAAyB,CAAC;CAClC;AAED,MAAM,WAAW,2BAA4B,SAAQ,2BAA2B;IAC9E;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACxB;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,EAAE,SAAS,GAAG,KAAK,GAAG,MAAM,CAAC;IAEjC;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,kBAAkB,CAAC;IAC1C,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,+CAA+C,IAAI,+CAA+C,EACvG,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.WirelessBlocklists = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
6
|
const pagination_1 = require("../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../internal/headers.js");
|
|
7
8
|
const path_1 = require("../internal/utils/path.js");
|
|
8
9
|
/**
|
|
9
10
|
* Wireless Blocklists operations
|
|
@@ -15,7 +16,7 @@ class WirelessBlocklists extends resource_1.APIResource {
|
|
|
15
16
|
* @example
|
|
16
17
|
* ```ts
|
|
17
18
|
* // Automatically fetches more pages as needed.
|
|
18
|
-
* for await (const
|
|
19
|
+
* for await (const wirelessWirelessBlocklist of client.wirelessBlocklists.list()) {
|
|
19
20
|
* // ...
|
|
20
21
|
* }
|
|
21
22
|
* ```
|
|
@@ -58,18 +59,22 @@ class WirelessBlocklists extends resource_1.APIResource {
|
|
|
58
59
|
return this._client.post('/wireless_blocklists', { body, ...options });
|
|
59
60
|
}
|
|
60
61
|
/**
|
|
61
|
-
* Permanently deletes the specified wireless blocklist from your account.
|
|
62
|
+
* Permanently deletes the specified wireless blocklist from your account. The
|
|
63
|
+
* request returns `422` when the wireless blocklist is assigned to a SIM Card
|
|
64
|
+
* Group.
|
|
62
65
|
*
|
|
63
66
|
* @example
|
|
64
67
|
* ```ts
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
* );
|
|
68
|
+
* await client.wirelessBlocklists.delete(
|
|
69
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
70
|
+
* );
|
|
69
71
|
* ```
|
|
70
72
|
*/
|
|
71
73
|
delete(id, options) {
|
|
72
|
-
return this._client.delete((0, path_1.path) `/wireless_blocklists/${id}`,
|
|
74
|
+
return this._client.delete((0, path_1.path) `/wireless_blocklists/${id}`, {
|
|
75
|
+
...options,
|
|
76
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
77
|
+
});
|
|
73
78
|
}
|
|
74
79
|
/**
|
|
75
80
|
* Retrieve information about a Wireless Blocklist.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wireless-blocklists.js","sourceRoot":"","sources":["../src/resources/wireless-blocklists.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/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AI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;CACF;AA/FD,gDA+FC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
import { DefaultFlatPagination } from "../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../internal/headers.mjs";
|
|
4
5
|
import { path } from "../internal/utils/path.mjs";
|
|
5
6
|
/**
|
|
6
7
|
* Wireless Blocklists operations
|
|
@@ -12,7 +13,7 @@ export class WirelessBlocklists extends APIResource {
|
|
|
12
13
|
* @example
|
|
13
14
|
* ```ts
|
|
14
15
|
* // Automatically fetches more pages as needed.
|
|
15
|
-
* for await (const
|
|
16
|
+
* for await (const wirelessWirelessBlocklist of client.wirelessBlocklists.list()) {
|
|
16
17
|
* // ...
|
|
17
18
|
* }
|
|
18
19
|
* ```
|
|
@@ -55,18 +56,22 @@ export class WirelessBlocklists extends APIResource {
|
|
|
55
56
|
return this._client.post('/wireless_blocklists', { body, ...options });
|
|
56
57
|
}
|
|
57
58
|
/**
|
|
58
|
-
* Permanently deletes the specified wireless blocklist from your account.
|
|
59
|
+
* Permanently deletes the specified wireless blocklist from your account. The
|
|
60
|
+
* request returns `422` when the wireless blocklist is assigned to a SIM Card
|
|
61
|
+
* Group.
|
|
59
62
|
*
|
|
60
63
|
* @example
|
|
61
64
|
* ```ts
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
* );
|
|
65
|
+
* await client.wirelessBlocklists.delete(
|
|
66
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
67
|
+
* );
|
|
66
68
|
* ```
|
|
67
69
|
*/
|
|
68
70
|
delete(id, options) {
|
|
69
|
-
return this._client.delete(path `/wireless_blocklists/${id}`,
|
|
71
|
+
return this._client.delete(path `/wireless_blocklists/${id}`, {
|
|
72
|
+
...options,
|
|
73
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
74
|
+
});
|
|
70
75
|
}
|
|
71
76
|
/**
|
|
72
77
|
* Retrieve information about a Wireless Blocklist.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wireless-blocklists.mjs","sourceRoot":"","sources":["../src/resources/wireless-blocklists.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,qBAAqB,EAAiD,+BAA2B;
|
|
1
|
+
{"version":3,"file":"wireless-blocklists.mjs","sourceRoot":"","sources":["../src/resources/wireless-blocklists.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,qBAAqB,EAAiD,+BAA2B;AAC1G,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IACjD;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAwD,EAAE,EAC1D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAA,qBAAgD,CAAA,EAAE;YACvG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,EAAU,EACV,IAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,wBAAwB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,wBAAwB,EAAE,EAAE,EAAE;YAC3D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,wBAAwB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -1196,13 +1196,13 @@ import {
|
|
|
1196
1196
|
WirelessBlocklist,
|
|
1197
1197
|
WirelessBlocklistCreateParams,
|
|
1198
1198
|
WirelessBlocklistCreateResponse,
|
|
1199
|
-
WirelessBlocklistDeleteResponse,
|
|
1200
1199
|
WirelessBlocklistListParams,
|
|
1201
1200
|
WirelessBlocklistRetrieveResponse,
|
|
1202
1201
|
WirelessBlocklistUpdateParams,
|
|
1203
1202
|
WirelessBlocklistUpdateResponse,
|
|
1204
1203
|
WirelessBlocklists,
|
|
1205
|
-
|
|
1204
|
+
WirelessWirelessBlocklist,
|
|
1205
|
+
WirelessWirelessBlocklistsDefaultFlatPagination,
|
|
1206
1206
|
} from './resources/wireless-blocklists';
|
|
1207
1207
|
import { Actions, WirelessError } from './resources/actions/actions';
|
|
1208
1208
|
import {
|
|
@@ -5082,11 +5082,11 @@ export declare namespace Telnyx {
|
|
|
5082
5082
|
export {
|
|
5083
5083
|
WirelessBlocklists as WirelessBlocklists,
|
|
5084
5084
|
type WirelessBlocklist as WirelessBlocklist,
|
|
5085
|
+
type WirelessWirelessBlocklist as WirelessWirelessBlocklist,
|
|
5085
5086
|
type WirelessBlocklistCreateResponse as WirelessBlocklistCreateResponse,
|
|
5086
5087
|
type WirelessBlocklistRetrieveResponse as WirelessBlocklistRetrieveResponse,
|
|
5087
5088
|
type WirelessBlocklistUpdateResponse as WirelessBlocklistUpdateResponse,
|
|
5088
|
-
type
|
|
5089
|
-
type WirelessBlocklistsDefaultFlatPagination as WirelessBlocklistsDefaultFlatPagination,
|
|
5089
|
+
type WirelessWirelessBlocklistsDefaultFlatPagination as WirelessWirelessBlocklistsDefaultFlatPagination,
|
|
5090
5090
|
type WirelessBlocklistListParams as WirelessBlocklistListParams,
|
|
5091
5091
|
type WirelessBlocklistUpdateParams as WirelessBlocklistUpdateParams,
|
|
5092
5092
|
type WirelessBlocklistCreateParams as WirelessBlocklistCreateParams,
|
package/src/resources/ai/ai.ts
CHANGED
|
@@ -113,9 +113,6 @@ import {
|
|
|
113
113
|
CollectionCreateParams,
|
|
114
114
|
CollectionEnvelope,
|
|
115
115
|
CollectionListParams,
|
|
116
|
-
CollectionRetrieveDocumentsParams,
|
|
117
|
-
CollectionRetrieveDocumentsResponse,
|
|
118
|
-
CollectionRetrieveDocumentsResponsesDefaultFlatPagination,
|
|
119
116
|
CollectionUpdateParams,
|
|
120
117
|
Collections,
|
|
121
118
|
CollectionsDefaultFlatPagination,
|
|
@@ -150,6 +147,8 @@ import * as FineTuningAPI from './fine-tuning/fine-tuning';
|
|
|
150
147
|
import { FineTuning } from './fine-tuning/fine-tuning';
|
|
151
148
|
import * as IntegrationsAPI from './integrations/integrations';
|
|
152
149
|
import { Integration, IntegrationListResponse, Integrations } from './integrations/integrations';
|
|
150
|
+
import * as KnowledgeAPI from './knowledge/knowledge';
|
|
151
|
+
import { Knowledge } from './knowledge/knowledge';
|
|
153
152
|
import * as MissionsAPI from './missions/missions';
|
|
154
153
|
import {
|
|
155
154
|
EventsListResponse,
|
|
@@ -186,6 +185,7 @@ export class AI extends APIResource {
|
|
|
186
185
|
openai: OpenAIAPI.OpenAI = new OpenAIAPI.OpenAI(this._client);
|
|
187
186
|
tools: ToolsAPI.Tools = new ToolsAPI.Tools(this._client);
|
|
188
187
|
anthropic: AnthropicAPI.Anthropic = new AnthropicAPI.Anthropic(this._client);
|
|
188
|
+
knowledge: KnowledgeAPI.Knowledge = new KnowledgeAPI.Knowledge(this._client);
|
|
189
189
|
|
|
190
190
|
/**
|
|
191
191
|
* Generate a summary of a file's contents.
|
|
@@ -631,6 +631,7 @@ AI.Missions = Missions;
|
|
|
631
631
|
AI.OpenAI = OpenAI;
|
|
632
632
|
AI.Tools = Tools;
|
|
633
633
|
AI.Anthropic = Anthropic;
|
|
634
|
+
AI.Knowledge = Knowledge;
|
|
634
635
|
|
|
635
636
|
export declare namespace AI {
|
|
636
637
|
export {
|
|
@@ -734,12 +735,9 @@ export declare namespace AI {
|
|
|
734
735
|
Collections as Collections,
|
|
735
736
|
type Collection as Collection,
|
|
736
737
|
type CollectionEnvelope as CollectionEnvelope,
|
|
737
|
-
type CollectionRetrieveDocumentsResponse as CollectionRetrieveDocumentsResponse,
|
|
738
738
|
type CollectionsDefaultFlatPagination as CollectionsDefaultFlatPagination,
|
|
739
|
-
type CollectionRetrieveDocumentsResponsesDefaultFlatPagination as CollectionRetrieveDocumentsResponsesDefaultFlatPagination,
|
|
740
739
|
type CollectionListParams as CollectionListParams,
|
|
741
740
|
type CollectionCreateParams as CollectionCreateParams,
|
|
742
|
-
type CollectionRetrieveDocumentsParams as CollectionRetrieveDocumentsParams,
|
|
743
741
|
type CollectionUpdateParams as CollectionUpdateParams,
|
|
744
742
|
};
|
|
745
743
|
|
|
@@ -819,4 +817,6 @@ export declare namespace AI {
|
|
|
819
817
|
};
|
|
820
818
|
|
|
821
819
|
export { Anthropic as Anthropic };
|
|
820
|
+
|
|
821
|
+
export { Knowledge as Knowledge };
|
|
822
822
|
}
|
|
@@ -23,7 +23,7 @@ export class V1 extends APIResource {
|
|
|
23
23
|
* const response = await client.ai.anthropic.v1.messages({
|
|
24
24
|
* max_tokens: 1024,
|
|
25
25
|
* messages: [{ role: 'user', content: 'Hello, world!' }],
|
|
26
|
-
* model: 'zai-org/GLM-5.
|
|
26
|
+
* model: 'zai-org/GLM-5.3-Flash',
|
|
27
27
|
* system: 'You are a friendly chatbot.',
|
|
28
28
|
* });
|
|
29
29
|
* ```
|
|
@@ -53,8 +53,9 @@ export interface V1MessagesParams {
|
|
|
53
53
|
messages: Array<{ [key: string]: unknown }>;
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
|
-
* The model to use for generating the response, for example
|
|
57
|
-
* another model available from the Telnyx models
|
|
56
|
+
* The model to use for generating the response, for example
|
|
57
|
+
* `zai-org/GLM-5.3-Flash` or another model available from the Telnyx models
|
|
58
|
+
* endpoint.
|
|
58
59
|
*/
|
|
59
60
|
model: string;
|
|
60
61
|
|
|
@@ -574,6 +574,21 @@ export namespace AssistantTool {
|
|
|
574
574
|
*/
|
|
575
575
|
warm_message_delay_ms?: number | null;
|
|
576
576
|
|
|
577
|
+
/**
|
|
578
|
+
* Requires the transfer destination to accept the call before the caller is
|
|
579
|
+
* bridged. When enabled, the assistant speaks privately with the destination after
|
|
580
|
+
* they answer — delivering the warm transfer message and asking whether they take
|
|
581
|
+
* the call — while the caller keeps hearing ringback. The assistant then finalizes
|
|
582
|
+
* the transfer with the built-in `complete_transfer` tool: an accept bridges the
|
|
583
|
+
* calls, a decline hangs up the destination and returns the assistant to the
|
|
584
|
+
* caller with the reason the destination gave. Requires either
|
|
585
|
+
* `warm_transfer_instructions` or a `message` on every target, otherwise the
|
|
586
|
+
* assistant fails to save. Only available for calls started with
|
|
587
|
+
* `ai_assistant_start`; single-caller conversations only (a conference or
|
|
588
|
+
* additional invited participants fall back to a regular warm transfer).
|
|
589
|
+
*/
|
|
590
|
+
warm_transfer_acceptance?: Transfer.WarmTransferAcceptance;
|
|
591
|
+
|
|
577
592
|
/**
|
|
578
593
|
* Natural language instructions for your agent for how to provide context for the
|
|
579
594
|
* transfer recipient.
|
|
@@ -588,6 +603,13 @@ export namespace AssistantTool {
|
|
|
588
603
|
*/
|
|
589
604
|
to: string;
|
|
590
605
|
|
|
606
|
+
/**
|
|
607
|
+
* The warm transfer message to deliver to this specific target. When set, it takes
|
|
608
|
+
* precedence over the message the assistant composes from
|
|
609
|
+
* `warm_transfer_instructions`.
|
|
610
|
+
*/
|
|
611
|
+
message?: string;
|
|
612
|
+
|
|
591
613
|
/**
|
|
592
614
|
* The name of the target.
|
|
593
615
|
*/
|
|
@@ -730,6 +752,35 @@ export namespace AssistantTool {
|
|
|
730
752
|
}
|
|
731
753
|
}
|
|
732
754
|
}
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* Requires the transfer destination to accept the call before the caller is
|
|
758
|
+
* bridged. When enabled, the assistant speaks privately with the destination after
|
|
759
|
+
* they answer — delivering the warm transfer message and asking whether they take
|
|
760
|
+
* the call — while the caller keeps hearing ringback. The assistant then finalizes
|
|
761
|
+
* the transfer with the built-in `complete_transfer` tool: an accept bridges the
|
|
762
|
+
* calls, a decline hangs up the destination and returns the assistant to the
|
|
763
|
+
* caller with the reason the destination gave. Requires either
|
|
764
|
+
* `warm_transfer_instructions` or a `message` on every target, otherwise the
|
|
765
|
+
* assistant fails to save. Only available for calls started with
|
|
766
|
+
* `ai_assistant_start`; single-caller conversations only (a conference or
|
|
767
|
+
* additional invited participants fall back to a regular warm transfer).
|
|
768
|
+
*/
|
|
769
|
+
export interface WarmTransferAcceptance {
|
|
770
|
+
/**
|
|
771
|
+
* Whether the destination must accept the transfer before the calls are bridged.
|
|
772
|
+
*/
|
|
773
|
+
enabled?: boolean;
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* Controls whether the private exchange between the assistant and the transfer
|
|
777
|
+
* destination is kept out of the conversation. With `private` (default) the
|
|
778
|
+
* exchange never reaches the conversation history, AI conversations, webhooks or
|
|
779
|
+
* insights, and the transfer tool result is rewritten with the outcome only. With
|
|
780
|
+
* `shared` the exchange stays in the conversation like any other messages.
|
|
781
|
+
*/
|
|
782
|
+
end_user_target_context_mode?: 'private' | 'shared';
|
|
783
|
+
}
|
|
733
784
|
}
|
|
734
785
|
}
|
|
735
786
|
|
|
@@ -1907,6 +1958,29 @@ export namespace InferenceEmbeddingWebhookToolParams {
|
|
|
1907
1958
|
*/
|
|
1908
1959
|
path_parameters?: Webhook.PathParameters;
|
|
1909
1960
|
|
|
1961
|
+
/**
|
|
1962
|
+
* Body fields supplied by the assistant configuration rather than by the model.
|
|
1963
|
+
* They are never advertised in the tool definition, so the LLM can neither see nor
|
|
1964
|
+
* set them, and they take precedence over a `body_parameters` value of the same
|
|
1965
|
+
* name. Values support mustache templating, so they can hold dynamic variables
|
|
1966
|
+
* (`{{customer_id}}`) and integration secrets
|
|
1967
|
+
* (`{{#integration_secret}}my-secret{{/integration_secret}}`). Not sent on `GET`
|
|
1968
|
+
* requests, which carry no body.
|
|
1969
|
+
*/
|
|
1970
|
+
preset_body_fields?: { [key: string]: unknown };
|
|
1971
|
+
|
|
1972
|
+
/**
|
|
1973
|
+
* Query string parameters supplied by the assistant configuration rather than by
|
|
1974
|
+
* the model. They are never advertised in the tool definition, so the LLM can
|
|
1975
|
+
* neither see nor set them, and they take precedence over a `query_parameters`
|
|
1976
|
+
* value of the same name. Values support mustache templating, so they can hold
|
|
1977
|
+
* dynamic variables (`{{telnyx_end_user_target}}`) and integration secrets
|
|
1978
|
+
* (`{{#integration_secret}}my-secret{{/integration_secret}}`). Unlike values
|
|
1979
|
+
* templated directly into the `url`, these are percent-encoded, so a value such as
|
|
1980
|
+
* `+15551234567` survives the round trip.
|
|
1981
|
+
*/
|
|
1982
|
+
preset_query_params?: { [key: string]: unknown };
|
|
1983
|
+
|
|
1910
1984
|
/**
|
|
1911
1985
|
* The query parameters the webhook tool accepts, described as a JSON Schema
|
|
1912
1986
|
* object. These parameters will be passed to the webhook as the query of the
|
|
@@ -2348,6 +2422,18 @@ export interface TelephonySettings {
|
|
|
2348
2422
|
*/
|
|
2349
2423
|
recording_settings?: TelephonySettings.RecordingSettings;
|
|
2350
2424
|
|
|
2425
|
+
/**
|
|
2426
|
+
* Whether the assistant sends a `call.ai_gather.message_history_updated` webhook
|
|
2427
|
+
* with the full message history every time the conversation history changes. Leave
|
|
2428
|
+
* unset to inherit the `send_message_history_updates` value from the
|
|
2429
|
+
* `ai_assistant_start` or `gather_using_ai` command that started the conversation.
|
|
2430
|
+
* Setting it here is authoritative: `true` turns the webhooks on even when the
|
|
2431
|
+
* start command did not request them, and `false` turns them off even when it did.
|
|
2432
|
+
* Messages exchanged during a private warm transfer acceptance phase are never
|
|
2433
|
+
* included.
|
|
2434
|
+
*/
|
|
2435
|
+
send_message_history_updates?: boolean;
|
|
2436
|
+
|
|
2351
2437
|
/**
|
|
2352
2438
|
* When enabled, allows users to interact with your AI assistant directly from your
|
|
2353
2439
|
* website without requiring authentication. This is required for FE widgets that
|
|
@@ -2623,7 +2709,9 @@ export interface TranscriptionSettings {
|
|
|
2623
2709
|
* does not fall back to `auto` when `language` is omitted — omitting it applies
|
|
2624
2710
|
* `en` instead. For `reson8/turns`, supported values are `auto` (or unset) for
|
|
2625
2711
|
* automatic language detection, and the language codes `nl`, `en`, `fr`, `fy`,
|
|
2626
|
-
* `de`, `it`, `pl`, `pt`, `es`, and `sv` to fix the transcription language.
|
|
2712
|
+
* `de`, `it`, `pl`, `pt`, `es`, and `sv` to fix the transcription language. For
|
|
2713
|
+
* `cohere/ar-stt`, supported values are `ar` and `en`; unlike other models, this
|
|
2714
|
+
* model does not auto-detect and defaults to `ar` when `language` is omitted.
|
|
2627
2715
|
*/
|
|
2628
2716
|
language?: string;
|
|
2629
2717
|
|
|
@@ -2646,6 +2734,7 @@ export interface TranscriptionSettings {
|
|
|
2646
2734
|
* code-switching support.
|
|
2647
2735
|
* - `reson8/turns` is a turn-based streaming model covering 10 European languages
|
|
2648
2736
|
* with automatic language detection.
|
|
2737
|
+
* - `cohere/ar-stt` is a non-streaming Arabic and English transcription model.
|
|
2649
2738
|
*/
|
|
2650
2739
|
model?:
|
|
2651
2740
|
| 'deepgram/flux'
|
|
@@ -2658,6 +2747,7 @@ export interface TranscriptionSettings {
|
|
|
2658
2747
|
| 'nvidia/parakeet-v3'
|
|
2659
2748
|
| 'humain/realtime'
|
|
2660
2749
|
| 'reson8/turns'
|
|
2750
|
+
| 'cohere/ar-stt'
|
|
2661
2751
|
| 'distil-whisper/distil-large-v2'
|
|
2662
2752
|
| 'openai/whisper-large-v3-turbo';
|
|
2663
2753
|
|
package/src/resources/ai/chat.ts
CHANGED
|
@@ -113,6 +113,15 @@ export interface ChatCompletionRequest {
|
|
|
113
113
|
*/
|
|
114
114
|
presence_penalty?: number;
|
|
115
115
|
|
|
116
|
+
/**
|
|
117
|
+
* Controls the reasoning effort for models that support it. When set, the model
|
|
118
|
+
* spends more or less compute on internal reasoning before generating its
|
|
119
|
+
* response. Supported values: none, minimal, low, medium, high, xhigh, max. Not
|
|
120
|
+
* all models support all values; unsupported values are rejected with a 400 error.
|
|
121
|
+
* When omitted, reasoning models use their default effort level.
|
|
122
|
+
*/
|
|
123
|
+
reasoning_effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
124
|
+
|
|
116
125
|
/**
|
|
117
126
|
* Use this is you want to guarantee a JSON output without defining a schema. For
|
|
118
127
|
* control over the schema, use `guided_json`.
|