@talqing/sdk 0.4.1 → 0.4.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/dist/cjs/gen/index.d.ts +1 -1
- package/dist/cjs/gen/index.d.ts.map +1 -1
- package/dist/cjs/gen/sdk.gen.d.ts +231 -154
- package/dist/cjs/gen/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/gen/sdk.gen.js +401 -243
- package/dist/cjs/gen/sdk.gen.js.map +1 -1
- package/dist/cjs/gen/types.gen.d.ts +688 -24
- package/dist/cjs/gen/types.gen.d.ts.map +1 -1
- package/dist/cjs/vocabulary.d.ts +5 -1
- package/dist/cjs/vocabulary.d.ts.map +1 -1
- package/dist/esm/gen/index.d.ts +1 -1
- package/dist/esm/gen/index.d.ts.map +1 -1
- package/dist/esm/gen/sdk.gen.d.ts +231 -154
- package/dist/esm/gen/sdk.gen.d.ts.map +1 -1
- package/dist/esm/gen/sdk.gen.js +397 -242
- package/dist/esm/gen/sdk.gen.js.map +1 -1
- package/dist/esm/gen/types.gen.d.ts +688 -24
- package/dist/esm/gen/types.gen.d.ts.map +1 -1
- package/dist/esm/vocabulary.d.ts +5 -1
- package/dist/esm/vocabulary.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/gen/index.ts +1 -1
- package/src/gen/sdk.gen.ts +574 -393
- package/src/gen/types.gen.ts +730 -24
- package/src/vocabulary.ts +5 -0
package/src/gen/types.gen.ts
CHANGED
|
@@ -96,6 +96,10 @@ export type AddVoiceResponse = {
|
|
|
96
96
|
*
|
|
97
97
|
* The whole agent: what it says, which models run it, and what it can do.
|
|
98
98
|
*
|
|
99
|
+
* ``AgentBase`` plus the session this agent owns and the media stack that
|
|
100
|
+
* session runs — which is what a task, running inside someone else's session,
|
|
101
|
+
* has none of.
|
|
102
|
+
*
|
|
99
103
|
* A complete definition, not a patch — whatever it omits takes that field's
|
|
100
104
|
* default.
|
|
101
105
|
*/
|
|
@@ -122,8 +126,11 @@ export type AgentConfig = {
|
|
|
122
126
|
handoffs?: Array<HandoffTarget>;
|
|
123
127
|
/**
|
|
124
128
|
* Kb Ids
|
|
129
|
+
*
|
|
130
|
+
* Knowledge bases to read from: their outline goes into the prompt and pages are fetched on demand.
|
|
125
131
|
*/
|
|
126
132
|
kb_ids?: Array<string>;
|
|
133
|
+
keypad_input?: KeypadInputSpec;
|
|
127
134
|
/**
|
|
128
135
|
* Language
|
|
129
136
|
*
|
|
@@ -134,11 +141,13 @@ export type AgentConfig = {
|
|
|
134
141
|
/**
|
|
135
142
|
* Mcps
|
|
136
143
|
*
|
|
137
|
-
* MCP servers whose tools
|
|
144
|
+
* MCP servers whose tools may be called — each named by the integration that holds its credential, or defined inline. Which of a named server's tools may be called is the integration's own `allowed_tools`, not this list.
|
|
138
145
|
*/
|
|
139
146
|
mcps?: Array<McpSelection>;
|
|
140
147
|
/**
|
|
141
148
|
* Name
|
|
149
|
+
*
|
|
150
|
+
* Unique in the workspace.
|
|
142
151
|
*/
|
|
143
152
|
name: string;
|
|
144
153
|
noise_cancellation?: NoiseCancellationSpec;
|
|
@@ -154,14 +163,22 @@ export type AgentConfig = {
|
|
|
154
163
|
realtime?: RealtimeSpec | null;
|
|
155
164
|
recording?: RecordingSpec;
|
|
156
165
|
stt?: STTSpec | null;
|
|
166
|
+
/**
|
|
167
|
+
* Tasks
|
|
168
|
+
*
|
|
169
|
+
* Jobs this agent can enter and come back from. Each becomes one tool the model can call; the task runs inside this call, on its voice and its ears, and returns its typed output as the tool's result.
|
|
170
|
+
*/
|
|
171
|
+
tasks?: Array<TaskSelection>;
|
|
157
172
|
/**
|
|
158
173
|
* Timezone
|
|
159
174
|
*
|
|
160
|
-
* The IANA timezone this
|
|
175
|
+
* The IANA timezone this clock runs on, e.g. 'Asia/Kolkata'. Set it and the prompt and tools can read {{system_vars.now}}, {{system_vars.date}} and {{system_vars.time}}. Required only if one of those is used.
|
|
161
176
|
*/
|
|
162
177
|
timezone?: string | null;
|
|
163
178
|
/**
|
|
164
179
|
* Tools
|
|
180
|
+
*
|
|
181
|
+
* Tools the model may call. Publishing pins each one to the tool version live at that moment, so republishing a tool does not change this until it is published again.
|
|
165
182
|
*/
|
|
166
183
|
tools?: Array<ToolSelection>;
|
|
167
184
|
tts?: TTSSpec | null;
|
|
@@ -169,7 +186,7 @@ export type AgentConfig = {
|
|
|
169
186
|
/**
|
|
170
187
|
* Vars
|
|
171
188
|
*
|
|
172
|
-
* The variables
|
|
189
|
+
* The variables read as {{vars.name}} in the prompt, the greeting and the tools. Values from the request that starts a session override the defaults. They are visible to the model - keep credentials in a workspace secret.
|
|
173
190
|
*/
|
|
174
191
|
vars?: Array<VarDeclaration>;
|
|
175
192
|
vision_input?: VisionInputSpec;
|
|
@@ -217,8 +234,11 @@ export type AgentOverride = {
|
|
|
217
234
|
handoffs?: Array<HandoffTarget> | null;
|
|
218
235
|
/**
|
|
219
236
|
* Kb Ids
|
|
237
|
+
*
|
|
238
|
+
* Knowledge bases to read from: their outline goes into the prompt and pages are fetched on demand.
|
|
220
239
|
*/
|
|
221
240
|
kb_ids?: Array<string> | null;
|
|
241
|
+
keypad_input?: KeypadInputSpecOverride | null;
|
|
222
242
|
/**
|
|
223
243
|
* Language
|
|
224
244
|
*
|
|
@@ -229,11 +249,13 @@ export type AgentOverride = {
|
|
|
229
249
|
/**
|
|
230
250
|
* Mcps
|
|
231
251
|
*
|
|
232
|
-
* MCP servers whose tools
|
|
252
|
+
* MCP servers whose tools may be called — each named by the integration that holds its credential, or defined inline. Which of a named server's tools may be called is the integration's own `allowed_tools`, not this list.
|
|
233
253
|
*/
|
|
234
254
|
mcps?: Array<McpSelection> | null;
|
|
235
255
|
/**
|
|
236
256
|
* Name
|
|
257
|
+
*
|
|
258
|
+
* Unique in the workspace.
|
|
237
259
|
*/
|
|
238
260
|
name?: string | null;
|
|
239
261
|
noise_cancellation?: NoiseCancellationSpecOverride | null;
|
|
@@ -249,14 +271,22 @@ export type AgentOverride = {
|
|
|
249
271
|
realtime?: RealtimeSpecOverride | null;
|
|
250
272
|
recording?: RecordingSpecOverride | null;
|
|
251
273
|
stt?: STTSpecOverride | null;
|
|
274
|
+
/**
|
|
275
|
+
* Tasks
|
|
276
|
+
*
|
|
277
|
+
* Jobs this agent can enter and come back from. Each becomes one tool the model can call; the task runs inside this call, on its voice and its ears, and returns its typed output as the tool's result.
|
|
278
|
+
*/
|
|
279
|
+
tasks?: Array<TaskSelection> | null;
|
|
252
280
|
/**
|
|
253
281
|
* Timezone
|
|
254
282
|
*
|
|
255
|
-
* The IANA timezone this
|
|
283
|
+
* The IANA timezone this clock runs on, e.g. 'Asia/Kolkata'. Set it and the prompt and tools can read {{system_vars.now}}, {{system_vars.date}} and {{system_vars.time}}. Required only if one of those is used.
|
|
256
284
|
*/
|
|
257
285
|
timezone?: string | null;
|
|
258
286
|
/**
|
|
259
287
|
* Tools
|
|
288
|
+
*
|
|
289
|
+
* Tools the model may call. Publishing pins each one to the tool version live at that moment, so republishing a tool does not change this until it is published again.
|
|
260
290
|
*/
|
|
261
291
|
tools?: Array<ToolSelection> | null;
|
|
262
292
|
tts?: TTSSpecOverride | null;
|
|
@@ -264,7 +294,7 @@ export type AgentOverride = {
|
|
|
264
294
|
/**
|
|
265
295
|
* Vars
|
|
266
296
|
*
|
|
267
|
-
* The variables
|
|
297
|
+
* The variables read as {{vars.name}} in the prompt, the greeting and the tools. Values from the request that starts a session override the defaults. They are visible to the model - keep credentials in a workspace secret.
|
|
268
298
|
*/
|
|
269
299
|
vars?: Array<VarDeclaration> | null;
|
|
270
300
|
vision_input?: VisionInputSpecOverride | null;
|
|
@@ -1395,6 +1425,7 @@ export type CallSessionResponse = {
|
|
|
1395
1425
|
* Status
|
|
1396
1426
|
*/
|
|
1397
1427
|
status: string;
|
|
1428
|
+
stream: StreamResponse | null;
|
|
1398
1429
|
/**
|
|
1399
1430
|
* Telephony Account Id
|
|
1400
1431
|
*/
|
|
@@ -1411,7 +1442,7 @@ export type CallSessionResponse = {
|
|
|
1411
1442
|
/**
|
|
1412
1443
|
* Type
|
|
1413
1444
|
*/
|
|
1414
|
-
type: 'WEB' | 'SIP_INBOUND' | 'SIP_OUTBOUND';
|
|
1445
|
+
type: 'WEB' | 'SIP_INBOUND' | 'SIP_OUTBOUND' | 'STREAM';
|
|
1415
1446
|
/**
|
|
1416
1447
|
* Userdata
|
|
1417
1448
|
*/
|
|
@@ -1524,6 +1555,10 @@ export type CallSummaryResponse = {
|
|
|
1524
1555
|
* Status
|
|
1525
1556
|
*/
|
|
1526
1557
|
status: string;
|
|
1558
|
+
/**
|
|
1559
|
+
* Stream Connection Id
|
|
1560
|
+
*/
|
|
1561
|
+
stream_connection_id?: string | null;
|
|
1527
1562
|
/**
|
|
1528
1563
|
* Summary
|
|
1529
1564
|
*/
|
|
@@ -1539,7 +1574,7 @@ export type CallSummaryResponse = {
|
|
|
1539
1574
|
/**
|
|
1540
1575
|
* Type
|
|
1541
1576
|
*/
|
|
1542
|
-
type: 'WEB' | 'SIP_INBOUND' | 'SIP_OUTBOUND';
|
|
1577
|
+
type: 'WEB' | 'SIP_INBOUND' | 'SIP_OUTBOUND' | 'STREAM';
|
|
1543
1578
|
};
|
|
1544
1579
|
|
|
1545
1580
|
/**
|
|
@@ -2529,6 +2564,8 @@ export type CreateEmailBatchRequest = {
|
|
|
2529
2564
|
draft_concurrency?: number;
|
|
2530
2565
|
/**
|
|
2531
2566
|
* Draft Gap Seconds
|
|
2567
|
+
*
|
|
2568
|
+
* Minimum seconds between STARTING two rows. 0 starts each as a slot frees; raise it when the task calls something that rate-limits.
|
|
2532
2569
|
*/
|
|
2533
2570
|
draft_gap_seconds?: number;
|
|
2534
2571
|
/**
|
|
@@ -2800,6 +2837,30 @@ export type CreateSecretRequest = {
|
|
|
2800
2837
|
value: string;
|
|
2801
2838
|
};
|
|
2802
2839
|
|
|
2840
|
+
/**
|
|
2841
|
+
* CreateStreamConnectionRequest
|
|
2842
|
+
*/
|
|
2843
|
+
export type CreateStreamConnectionRequest = {
|
|
2844
|
+
/**
|
|
2845
|
+
* Agent Id
|
|
2846
|
+
*
|
|
2847
|
+
* The published voice agent that answers on this connection.
|
|
2848
|
+
*/
|
|
2849
|
+
agent_id: string;
|
|
2850
|
+
/**
|
|
2851
|
+
* Dialect
|
|
2852
|
+
*
|
|
2853
|
+
* Which platform's WebSocket protocol this partner speaks. One of sparktg, twilio, plivo, exotel, vonage.
|
|
2854
|
+
*/
|
|
2855
|
+
dialect: 'twilio' | 'sparktg' | 'plivo' | 'exotel' | 'vonage';
|
|
2856
|
+
/**
|
|
2857
|
+
* Name
|
|
2858
|
+
*
|
|
2859
|
+
* What this partner integration is called in the dashboard.
|
|
2860
|
+
*/
|
|
2861
|
+
name: string;
|
|
2862
|
+
};
|
|
2863
|
+
|
|
2803
2864
|
/**
|
|
2804
2865
|
* CreateTaskRequest
|
|
2805
2866
|
*/
|
|
@@ -2917,7 +2978,7 @@ export type CreateToolRequest = {
|
|
|
2917
2978
|
/**
|
|
2918
2979
|
* Operations
|
|
2919
2980
|
*/
|
|
2920
|
-
operations?: Array<HttpOperation | CodeOperation | FrontendRpcOperation | IfOperation | SetVariableOperation | SayOperation | GenerateReplyOperation | AddMessageOperation | EndCallOperation | HandoffOperation | TransferOperation>;
|
|
2981
|
+
operations?: Array<HttpOperation | CodeOperation | FrontendRpcOperation | IfOperation | SetVariableOperation | SayOperation | GenerateReplyOperation | AddMessageOperation | EndCallOperation | HandoffOperation | TransferOperation | SendDtmfOperation>;
|
|
2921
2982
|
/**
|
|
2922
2983
|
* Silent
|
|
2923
2984
|
*/
|
|
@@ -3289,6 +3350,10 @@ export type EmailBatchResponse = {
|
|
|
3289
3350
|
* Next Draft At
|
|
3290
3351
|
*/
|
|
3291
3352
|
next_draft_at: string | null;
|
|
3353
|
+
/**
|
|
3354
|
+
* Next Draft Reason
|
|
3355
|
+
*/
|
|
3356
|
+
next_draft_reason: 'start' | 'retry' | null;
|
|
3292
3357
|
/**
|
|
3293
3358
|
* Output Columns
|
|
3294
3359
|
*/
|
|
@@ -3325,6 +3390,10 @@ export type EmailBatchResponse = {
|
|
|
3325
3390
|
* Sent Today
|
|
3326
3391
|
*/
|
|
3327
3392
|
sent_today: number;
|
|
3393
|
+
/**
|
|
3394
|
+
* Stale Redraftable
|
|
3395
|
+
*/
|
|
3396
|
+
stale_redraftable: number;
|
|
3328
3397
|
/**
|
|
3329
3398
|
* Start At
|
|
3330
3399
|
*/
|
|
@@ -3544,6 +3613,10 @@ export type EmailSendResponse = {
|
|
|
3544
3613
|
* Next Send At
|
|
3545
3614
|
*/
|
|
3546
3615
|
next_send_at: string | null;
|
|
3616
|
+
/**
|
|
3617
|
+
* Next Send Reason
|
|
3618
|
+
*/
|
|
3619
|
+
next_send_reason: 'start' | 'window' | 'daily_cap' | 'retry' | 'gap' | null;
|
|
3547
3620
|
/**
|
|
3548
3621
|
* Reply To
|
|
3549
3622
|
*/
|
|
@@ -3940,6 +4013,7 @@ export type HandoffTarget = {
|
|
|
3940
4013
|
* Liveness of the API process itself.
|
|
3941
4014
|
*/
|
|
3942
4015
|
export type HealthResponse = {
|
|
4016
|
+
model_registry?: ModelRegistryHealth | null;
|
|
3943
4017
|
/**
|
|
3944
4018
|
* Status
|
|
3945
4019
|
*/
|
|
@@ -4201,7 +4275,7 @@ export type IfOperation = {
|
|
|
4201
4275
|
/**
|
|
4202
4276
|
* Else
|
|
4203
4277
|
*/
|
|
4204
|
-
else?: Array<HttpOperation | CodeOperation | FrontendRpcOperation | IfOperation | SetVariableOperation | SayOperation | GenerateReplyOperation | AddMessageOperation | EndCallOperation | HandoffOperation | TransferOperation> | null;
|
|
4278
|
+
else?: Array<HttpOperation | CodeOperation | FrontendRpcOperation | IfOperation | SetVariableOperation | SayOperation | GenerateReplyOperation | AddMessageOperation | EndCallOperation | HandoffOperation | TransferOperation | SendDtmfOperation> | null;
|
|
4205
4279
|
/**
|
|
4206
4280
|
* Kind
|
|
4207
4281
|
*/
|
|
@@ -4213,7 +4287,7 @@ export type IfOperation = {
|
|
|
4213
4287
|
/**
|
|
4214
4288
|
* Then
|
|
4215
4289
|
*/
|
|
4216
|
-
then?: Array<HttpOperation | CodeOperation | FrontendRpcOperation | IfOperation | SetVariableOperation | SayOperation | GenerateReplyOperation | AddMessageOperation | EndCallOperation | HandoffOperation | TransferOperation> | null;
|
|
4290
|
+
then?: Array<HttpOperation | CodeOperation | FrontendRpcOperation | IfOperation | SetVariableOperation | SayOperation | GenerateReplyOperation | AddMessageOperation | EndCallOperation | HandoffOperation | TransferOperation | SendDtmfOperation> | null;
|
|
4217
4291
|
};
|
|
4218
4292
|
|
|
4219
4293
|
/**
|
|
@@ -4357,7 +4431,7 @@ export type InlineTool = {
|
|
|
4357
4431
|
/**
|
|
4358
4432
|
* Operations
|
|
4359
4433
|
*/
|
|
4360
|
-
operations?: Array<HttpOperation | CodeOperation | FrontendRpcOperation | IfOperation | SetVariableOperation | SayOperation | GenerateReplyOperation | AddMessageOperation | EndCallOperation | HandoffOperation | TransferOperation>;
|
|
4434
|
+
operations?: Array<HttpOperation | CodeOperation | FrontendRpcOperation | IfOperation | SetVariableOperation | SayOperation | GenerateReplyOperation | AddMessageOperation | EndCallOperation | HandoffOperation | TransferOperation | SendDtmfOperation>;
|
|
4361
4435
|
/**
|
|
4362
4436
|
* Silent
|
|
4363
4437
|
*/
|
|
@@ -5198,6 +5272,64 @@ export type KbTreeNode = {
|
|
|
5198
5272
|
title?: string | null;
|
|
5199
5273
|
};
|
|
5200
5274
|
|
|
5275
|
+
/**
|
|
5276
|
+
* KeypadInputSpec
|
|
5277
|
+
*
|
|
5278
|
+
* Digits the caller types, delivered as a turn the agent can answer.
|
|
5279
|
+
*
|
|
5280
|
+
* Phone and stream calls only, and only where the platform sends DTMF as an
|
|
5281
|
+
* event — tones inside the audio are not detected. Cleared on any other
|
|
5282
|
+
* channel: a browser has no keypad, so a `video` agent (which is a web call
|
|
5283
|
+
* wearing an avatar) and a `text` agent both have nothing to collect, and only
|
|
5284
|
+
* a `voice` agent can hold a phone number or answer a media stream.
|
|
5285
|
+
*/
|
|
5286
|
+
export type KeypadInputSpec = {
|
|
5287
|
+
/**
|
|
5288
|
+
* Enabled
|
|
5289
|
+
*
|
|
5290
|
+
* Let the caller answer with the keypad. Each entry arrives as one labelled user turn, and the first keypress interrupts whatever the agent is saying.
|
|
5291
|
+
*/
|
|
5292
|
+
enabled?: boolean;
|
|
5293
|
+
/**
|
|
5294
|
+
* Terminator
|
|
5295
|
+
*
|
|
5296
|
+
* The key that ends an entry. It is not part of the entry, and pressing it on nothing is ignored. Empty means only the quiet timer ends one.
|
|
5297
|
+
*/
|
|
5298
|
+
terminator?: '#' | '*' | '';
|
|
5299
|
+
/**
|
|
5300
|
+
* Timeout
|
|
5301
|
+
*
|
|
5302
|
+
* Seconds of quiet before an entry is taken as finished. 0 waits for the terminator however long it takes.
|
|
5303
|
+
*/
|
|
5304
|
+
timeout?: number;
|
|
5305
|
+
};
|
|
5306
|
+
|
|
5307
|
+
/**
|
|
5308
|
+
* KeypadInputSpecOverride
|
|
5309
|
+
*
|
|
5310
|
+
* A partial KeypadInputSpec: only the fields this call changes. Absent keeps the base value, an explicit null clears it, objects deep-merge and lists replace.
|
|
5311
|
+
*/
|
|
5312
|
+
export type KeypadInputSpecOverride = {
|
|
5313
|
+
/**
|
|
5314
|
+
* Enabled
|
|
5315
|
+
*
|
|
5316
|
+
* Let the caller answer with the keypad. Each entry arrives as one labelled user turn, and the first keypress interrupts whatever the agent is saying.
|
|
5317
|
+
*/
|
|
5318
|
+
enabled?: boolean | null;
|
|
5319
|
+
/**
|
|
5320
|
+
* Terminator
|
|
5321
|
+
*
|
|
5322
|
+
* The key that ends an entry. It is not part of the entry, and pressing it on nothing is ignored. Empty means only the quiet timer ends one.
|
|
5323
|
+
*/
|
|
5324
|
+
terminator?: '#' | '*' | '' | null;
|
|
5325
|
+
/**
|
|
5326
|
+
* Timeout
|
|
5327
|
+
*
|
|
5328
|
+
* Seconds of quiet before an entry is taken as finished. 0 waits for the terminator however long it takes.
|
|
5329
|
+
*/
|
|
5330
|
+
timeout?: number | null;
|
|
5331
|
+
};
|
|
5332
|
+
|
|
5201
5333
|
/**
|
|
5202
5334
|
* LLMCatalogEntryResponse
|
|
5203
5335
|
*/
|
|
@@ -5214,6 +5346,10 @@ export type LLMCatalogEntryResponse = {
|
|
|
5214
5346
|
* Channel
|
|
5215
5347
|
*/
|
|
5216
5348
|
channel: Array<string>;
|
|
5349
|
+
/**
|
|
5350
|
+
* Context Length
|
|
5351
|
+
*/
|
|
5352
|
+
context_length: number | null;
|
|
5217
5353
|
/**
|
|
5218
5354
|
* Label
|
|
5219
5355
|
*/
|
|
@@ -5318,6 +5454,10 @@ export type LLMPriceLine = {
|
|
|
5318
5454
|
* Cost
|
|
5319
5455
|
*/
|
|
5320
5456
|
cost: number;
|
|
5457
|
+
/**
|
|
5458
|
+
* Input Cache Write Tokens
|
|
5459
|
+
*/
|
|
5460
|
+
input_cache_write_tokens: number | null;
|
|
5321
5461
|
/**
|
|
5322
5462
|
* Input Cached Tokens
|
|
5323
5463
|
*/
|
|
@@ -5342,6 +5482,10 @@ export type LLMPriceLine = {
|
|
|
5342
5482
|
* Provider
|
|
5343
5483
|
*/
|
|
5344
5484
|
provider: string;
|
|
5485
|
+
/**
|
|
5486
|
+
* Provider Reported
|
|
5487
|
+
*/
|
|
5488
|
+
provider_reported: boolean;
|
|
5345
5489
|
/**
|
|
5346
5490
|
* Purpose
|
|
5347
5491
|
*/
|
|
@@ -5357,6 +5501,10 @@ export type LLMPriceLine = {
|
|
|
5357
5501
|
* LLMPricing
|
|
5358
5502
|
*/
|
|
5359
5503
|
export type LLMPricing = {
|
|
5504
|
+
/**
|
|
5505
|
+
* Cache Write Per 1M
|
|
5506
|
+
*/
|
|
5507
|
+
cache_write_per_1m?: number | null;
|
|
5360
5508
|
/**
|
|
5361
5509
|
* Cached Input Per 1M
|
|
5362
5510
|
*/
|
|
@@ -5445,6 +5593,10 @@ export type LLMSpecOverride = {
|
|
|
5445
5593
|
* billed separately today and are not persisted.
|
|
5446
5594
|
*/
|
|
5447
5595
|
export type LLMUsage = {
|
|
5596
|
+
/**
|
|
5597
|
+
* Input Cache Write Tokens
|
|
5598
|
+
*/
|
|
5599
|
+
input_cache_write_tokens: number;
|
|
5448
5600
|
/**
|
|
5449
5601
|
* Input Cached Tokens
|
|
5450
5602
|
*/
|
|
@@ -5473,6 +5625,10 @@ export type LLMUsage = {
|
|
|
5473
5625
|
* Purpose
|
|
5474
5626
|
*/
|
|
5475
5627
|
purpose: string;
|
|
5628
|
+
/**
|
|
5629
|
+
* Reported Cost
|
|
5630
|
+
*/
|
|
5631
|
+
reported_cost: number | null;
|
|
5476
5632
|
};
|
|
5477
5633
|
|
|
5478
5634
|
/**
|
|
@@ -5576,6 +5732,52 @@ export type ModelMetadata = {
|
|
|
5576
5732
|
[key: string]: unknown;
|
|
5577
5733
|
};
|
|
5578
5734
|
|
|
5735
|
+
/**
|
|
5736
|
+
* ModelRegistryHealth
|
|
5737
|
+
*
|
|
5738
|
+
* How fresh this process's searched-provider model list is.
|
|
5739
|
+
*
|
|
5740
|
+
* A silently stale registry is the one failure this design trades for
|
|
5741
|
+
* freshness — a refresh that keeps failing holds the last good snapshot
|
|
5742
|
+
* indefinitely, on purpose, because clearing it would take every model of that
|
|
5743
|
+
* provider out of the editor and out of publish validation at once. So its age
|
|
5744
|
+
* has to be readable without opening a log.
|
|
5745
|
+
*/
|
|
5746
|
+
export type ModelRegistryHealth = {
|
|
5747
|
+
/**
|
|
5748
|
+
* Age Seconds
|
|
5749
|
+
*/
|
|
5750
|
+
age_seconds: number | null;
|
|
5751
|
+
/**
|
|
5752
|
+
* Last Error
|
|
5753
|
+
*/
|
|
5754
|
+
last_error: string | null;
|
|
5755
|
+
/**
|
|
5756
|
+
* Models
|
|
5757
|
+
*/
|
|
5758
|
+
models: number;
|
|
5759
|
+
};
|
|
5760
|
+
|
|
5761
|
+
/**
|
|
5762
|
+
* ModelSearchResponse
|
|
5763
|
+
*
|
|
5764
|
+
* One page of a searched provider's models — never the whole registry.
|
|
5765
|
+
*
|
|
5766
|
+
* Ordered by real-world popularity when `q` is empty (OpenRouter ranks its own
|
|
5767
|
+
* list by tokens processed, so the first screen is the models people actually
|
|
5768
|
+
* run) and by match quality when it is not, popularity breaking the ties.
|
|
5769
|
+
*/
|
|
5770
|
+
export type ModelSearchResponse = {
|
|
5771
|
+
/**
|
|
5772
|
+
* Models
|
|
5773
|
+
*/
|
|
5774
|
+
models: Array<LLMCatalogEntryResponse>;
|
|
5775
|
+
/**
|
|
5776
|
+
* Next Cursor
|
|
5777
|
+
*/
|
|
5778
|
+
next_cursor: string | null;
|
|
5779
|
+
};
|
|
5780
|
+
|
|
5579
5781
|
/**
|
|
5580
5782
|
* NodeContentResponse
|
|
5581
5783
|
*/
|
|
@@ -6835,6 +7037,28 @@ export type PageSecretResponse = {
|
|
|
6835
7037
|
offset: number;
|
|
6836
7038
|
};
|
|
6837
7039
|
|
|
7040
|
+
/**
|
|
7041
|
+
* Page[StreamConnectionResponse]
|
|
7042
|
+
*/
|
|
7043
|
+
export type PageStreamConnectionResponse = {
|
|
7044
|
+
/**
|
|
7045
|
+
* Has More
|
|
7046
|
+
*/
|
|
7047
|
+
has_more: boolean;
|
|
7048
|
+
/**
|
|
7049
|
+
* Items
|
|
7050
|
+
*/
|
|
7051
|
+
items: Array<StreamConnectionResponse>;
|
|
7052
|
+
/**
|
|
7053
|
+
* Limit
|
|
7054
|
+
*/
|
|
7055
|
+
limit: number;
|
|
7056
|
+
/**
|
|
7057
|
+
* Offset
|
|
7058
|
+
*/
|
|
7059
|
+
offset: number;
|
|
7060
|
+
};
|
|
7061
|
+
|
|
6838
7062
|
/**
|
|
6839
7063
|
* Page[TaskResponse]
|
|
6840
7064
|
*/
|
|
@@ -7304,6 +7528,24 @@ export type PatchPhoneNumberRequest = {
|
|
|
7304
7528
|
status?: 'disabled' | 'pending' | null;
|
|
7305
7529
|
};
|
|
7306
7530
|
|
|
7531
|
+
/**
|
|
7532
|
+
* PatchStreamConnectionRequest
|
|
7533
|
+
*/
|
|
7534
|
+
export type PatchStreamConnectionRequest = {
|
|
7535
|
+
/**
|
|
7536
|
+
* Agent Id
|
|
7537
|
+
*/
|
|
7538
|
+
agent_id?: string | null;
|
|
7539
|
+
/**
|
|
7540
|
+
* Name
|
|
7541
|
+
*/
|
|
7542
|
+
name?: string | null;
|
|
7543
|
+
/**
|
|
7544
|
+
* Status
|
|
7545
|
+
*/
|
|
7546
|
+
status?: 'active' | 'disabled' | null;
|
|
7547
|
+
};
|
|
7548
|
+
|
|
7307
7549
|
/**
|
|
7308
7550
|
* PatchTaskRequest
|
|
7309
7551
|
*
|
|
@@ -7373,7 +7615,7 @@ export type PatchToolRequest = {
|
|
|
7373
7615
|
/**
|
|
7374
7616
|
* Operations
|
|
7375
7617
|
*/
|
|
7376
|
-
operations?: Array<HttpOperation | CodeOperation | FrontendRpcOperation | IfOperation | SetVariableOperation | SayOperation | GenerateReplyOperation | AddMessageOperation | EndCallOperation | HandoffOperation | TransferOperation> | null;
|
|
7618
|
+
operations?: Array<HttpOperation | CodeOperation | FrontendRpcOperation | IfOperation | SetVariableOperation | SayOperation | GenerateReplyOperation | AddMessageOperation | EndCallOperation | HandoffOperation | TransferOperation | SendDtmfOperation> | null;
|
|
7377
7619
|
/**
|
|
7378
7620
|
* Silent
|
|
7379
7621
|
*/
|
|
@@ -7692,6 +7934,10 @@ export type PromptResponse = {
|
|
|
7692
7934
|
* ProviderEntryResponse
|
|
7693
7935
|
*/
|
|
7694
7936
|
export type ProviderEntryResponse = {
|
|
7937
|
+
/**
|
|
7938
|
+
* Browse
|
|
7939
|
+
*/
|
|
7940
|
+
browse: 'list' | 'search';
|
|
7695
7941
|
/**
|
|
7696
7942
|
* Enabled
|
|
7697
7943
|
*/
|
|
@@ -8878,6 +9124,38 @@ export type SelectRecipientsRequest = {
|
|
|
8878
9124
|
selection?: 'all_eligible' | null;
|
|
8879
9125
|
};
|
|
8880
9126
|
|
|
9127
|
+
/**
|
|
9128
|
+
* SendDtmfConfig
|
|
9129
|
+
*/
|
|
9130
|
+
export type SendDtmfConfig = {
|
|
9131
|
+
/**
|
|
9132
|
+
* Digits
|
|
9133
|
+
*
|
|
9134
|
+
* Keys to press: 0-9, *, #, A-D. 'w' waits half a second and 'W' one second, for menus that need a pause. Supports {{args.*}} and {{userdata.*}}.
|
|
9135
|
+
*/
|
|
9136
|
+
digits: string;
|
|
9137
|
+
};
|
|
9138
|
+
|
|
9139
|
+
/**
|
|
9140
|
+
* SendDtmfOperation
|
|
9141
|
+
*
|
|
9142
|
+
* Press keys on the call's keypad, for an IVR on the other end.
|
|
9143
|
+
*
|
|
9144
|
+
* Not terminal, unlike `end_call` and `transfer`: sending digits and then
|
|
9145
|
+
* saying something is the normal case, so a chain carries on afterwards.
|
|
9146
|
+
*/
|
|
9147
|
+
export type SendDtmfOperation = {
|
|
9148
|
+
config: SendDtmfConfig;
|
|
9149
|
+
/**
|
|
9150
|
+
* Kind
|
|
9151
|
+
*/
|
|
9152
|
+
kind: 'send_dtmf';
|
|
9153
|
+
/**
|
|
9154
|
+
* On Error
|
|
9155
|
+
*/
|
|
9156
|
+
on_error?: 'abort' | 'continue';
|
|
9157
|
+
};
|
|
9158
|
+
|
|
8881
9159
|
/**
|
|
8882
9160
|
* SendMessageRequest
|
|
8883
9161
|
*/
|
|
@@ -9141,6 +9419,95 @@ export type StoredPlanMember = {
|
|
|
9141
9419
|
version: number | null;
|
|
9142
9420
|
};
|
|
9143
9421
|
|
|
9422
|
+
/**
|
|
9423
|
+
* StreamConnectionResponse
|
|
9424
|
+
*
|
|
9425
|
+
* One connection, as a caller sees it.
|
|
9426
|
+
*
|
|
9427
|
+
* `url` is the whole configuration a partner needs, in full, on every read: it
|
|
9428
|
+
* carries no credential, so there is nothing here to mask and nothing to show
|
|
9429
|
+
* once and never again.
|
|
9430
|
+
*/
|
|
9431
|
+
export type StreamConnectionResponse = {
|
|
9432
|
+
/**
|
|
9433
|
+
* Agent Id
|
|
9434
|
+
*/
|
|
9435
|
+
agent_id: string;
|
|
9436
|
+
/**
|
|
9437
|
+
* Agent Name
|
|
9438
|
+
*/
|
|
9439
|
+
agent_name: string | null;
|
|
9440
|
+
/**
|
|
9441
|
+
* Created At
|
|
9442
|
+
*/
|
|
9443
|
+
created_at: string;
|
|
9444
|
+
/**
|
|
9445
|
+
* Dialect
|
|
9446
|
+
*/
|
|
9447
|
+
dialect: 'twilio' | 'sparktg' | 'plivo' | 'exotel' | 'vonage';
|
|
9448
|
+
/**
|
|
9449
|
+
* Id
|
|
9450
|
+
*/
|
|
9451
|
+
id: string;
|
|
9452
|
+
/**
|
|
9453
|
+
* Name
|
|
9454
|
+
*/
|
|
9455
|
+
name: string;
|
|
9456
|
+
/**
|
|
9457
|
+
* Readiness
|
|
9458
|
+
*/
|
|
9459
|
+
readiness: 'live' | 'needs_agent' | 'disabled';
|
|
9460
|
+
/**
|
|
9461
|
+
* Status
|
|
9462
|
+
*/
|
|
9463
|
+
status: 'active' | 'disabled';
|
|
9464
|
+
/**
|
|
9465
|
+
* Updated At
|
|
9466
|
+
*/
|
|
9467
|
+
updated_at: string;
|
|
9468
|
+
/**
|
|
9469
|
+
* Url
|
|
9470
|
+
*/
|
|
9471
|
+
url: string;
|
|
9472
|
+
};
|
|
9473
|
+
|
|
9474
|
+
/**
|
|
9475
|
+
* StreamResponse
|
|
9476
|
+
*
|
|
9477
|
+
* Which partner connection carried this call, and on what.
|
|
9478
|
+
*
|
|
9479
|
+
* Sits beside `transfer` for the same reason it does: it explains something
|
|
9480
|
+
* about the call that no other field can. A `STREAM` call has no phone number
|
|
9481
|
+
* and no carrier account, so without this the "Runtime identifiers" panel is a
|
|
9482
|
+
* row of nulls and there is nothing to say where the audio came from.
|
|
9483
|
+
*/
|
|
9484
|
+
export type StreamResponse = {
|
|
9485
|
+
/**
|
|
9486
|
+
* Codec
|
|
9487
|
+
*/
|
|
9488
|
+
codec?: string | null;
|
|
9489
|
+
/**
|
|
9490
|
+
* Connection Id
|
|
9491
|
+
*/
|
|
9492
|
+
connection_id?: string | null;
|
|
9493
|
+
/**
|
|
9494
|
+
* Connection Name
|
|
9495
|
+
*/
|
|
9496
|
+
connection_name?: string | null;
|
|
9497
|
+
/**
|
|
9498
|
+
* Dialect
|
|
9499
|
+
*/
|
|
9500
|
+
dialect?: string | null;
|
|
9501
|
+
/**
|
|
9502
|
+
* Platform Call Id
|
|
9503
|
+
*/
|
|
9504
|
+
platform_call_id?: string | null;
|
|
9505
|
+
/**
|
|
9506
|
+
* Sample Rate
|
|
9507
|
+
*/
|
|
9508
|
+
sample_rate?: number | null;
|
|
9509
|
+
};
|
|
9510
|
+
|
|
9144
9511
|
/**
|
|
9145
9512
|
* SystemVarResponse
|
|
9146
9513
|
*
|
|
@@ -9525,20 +9892,37 @@ export type TTSUsageResponse = {
|
|
|
9525
9892
|
/**
|
|
9526
9893
|
* TaskConfig
|
|
9527
9894
|
*
|
|
9528
|
-
*
|
|
9895
|
+
* LiveKit's `AgentTask`: an agent with a typed result, on someone else's stack.
|
|
9896
|
+
*
|
|
9897
|
+
* It declares no channel, no media and no greeting. Entered by an agent it
|
|
9898
|
+
* speaks with that call's voice and hears with its ears; run on its own from
|
|
9899
|
+
* `POST /tasks/{id}/run` it is an LLM with tools and nobody to talk to. Which
|
|
9900
|
+
* of the two happens is the caller's, never the task's.
|
|
9529
9901
|
*/
|
|
9530
9902
|
export type TaskConfig = {
|
|
9903
|
+
/**
|
|
9904
|
+
* Finish Without Result Description
|
|
9905
|
+
*
|
|
9906
|
+
* Description of `finish_without_result`, the tool that abandons a task an agent entered. Narrow it if the task gives up too readily. Unused by a standalone run.
|
|
9907
|
+
*/
|
|
9908
|
+
finish_without_result_description?: string;
|
|
9909
|
+
/**
|
|
9910
|
+
* Kb Ids
|
|
9911
|
+
*
|
|
9912
|
+
* Knowledge bases to read from: their outline goes into the prompt and pages are fetched on demand.
|
|
9913
|
+
*/
|
|
9914
|
+
kb_ids?: Array<string>;
|
|
9531
9915
|
llm?: LLMSpec;
|
|
9532
9916
|
/**
|
|
9533
9917
|
* Max Steps
|
|
9534
9918
|
*
|
|
9535
|
-
* How many LLM -> tools -> LLM rounds
|
|
9919
|
+
* How many LLM -> tools -> LLM rounds a standalone run may take. A round, not a tool call: four tools in one reply cost one step. Entered by an agent, the calling call's own limit applies instead.
|
|
9536
9920
|
*/
|
|
9537
9921
|
max_steps?: number;
|
|
9538
9922
|
/**
|
|
9539
9923
|
* Mcps
|
|
9540
9924
|
*
|
|
9541
|
-
* MCP servers whose tools
|
|
9925
|
+
* MCP servers whose tools may be called — each named by the integration that holds its credential, or defined inline. Which of a named server's tools may be called is the integration's own `allowed_tools`, not this list.
|
|
9542
9926
|
*/
|
|
9543
9927
|
mcps?: Array<McpSelection>;
|
|
9544
9928
|
/**
|
|
@@ -9547,6 +9931,9 @@ export type TaskConfig = {
|
|
|
9547
9931
|
* Unique in the workspace.
|
|
9548
9932
|
*/
|
|
9549
9933
|
name: string;
|
|
9934
|
+
on_enter?: ToolSelection | null;
|
|
9935
|
+
on_exit?: ToolSelection | null;
|
|
9936
|
+
on_user_turn_completed?: ToolSelection | null;
|
|
9550
9937
|
/**
|
|
9551
9938
|
* Output
|
|
9552
9939
|
*
|
|
@@ -9556,31 +9943,37 @@ export type TaskConfig = {
|
|
|
9556
9943
|
/**
|
|
9557
9944
|
* Prompt
|
|
9558
9945
|
*
|
|
9559
|
-
* The system prompt. `{{vars.name}}` is substituted from the values the run was started with,
|
|
9946
|
+
* The system prompt. `{{vars.name}}` is substituted from the values the run was started with — or, entered by an agent, from the call's own values and the arguments the model supplied.
|
|
9560
9947
|
*/
|
|
9561
9948
|
prompt?: string;
|
|
9949
|
+
/**
|
|
9950
|
+
* Submit Result Description
|
|
9951
|
+
*
|
|
9952
|
+
* Description of the generated `submit_result` tool - what the call is, where the output fields describe the values.
|
|
9953
|
+
*/
|
|
9954
|
+
submit_result_description?: string;
|
|
9562
9955
|
/**
|
|
9563
9956
|
* Timeout Seconds
|
|
9564
9957
|
*
|
|
9565
|
-
* How long
|
|
9958
|
+
* How long this may take before it is abandoned. Entered by an agent it is the only bound on how long the caller is held, so keep it short on a voice agent.
|
|
9566
9959
|
*/
|
|
9567
9960
|
timeout_seconds?: number;
|
|
9568
9961
|
/**
|
|
9569
9962
|
* Timezone
|
|
9570
9963
|
*
|
|
9571
|
-
* The IANA timezone this
|
|
9964
|
+
* The IANA timezone this clock runs on, e.g. 'Asia/Kolkata'. Set it and the prompt and tools can read {{system_vars.now}}, {{system_vars.date}} and {{system_vars.time}}. Required only if one of those is used.
|
|
9572
9965
|
*/
|
|
9573
9966
|
timezone?: string | null;
|
|
9574
9967
|
/**
|
|
9575
9968
|
* Tools
|
|
9576
9969
|
*
|
|
9577
|
-
* Tools the model may call
|
|
9970
|
+
* Tools the model may call. Publishing pins each one to the tool version live at that moment, so republishing a tool does not change this until it is published again.
|
|
9578
9971
|
*/
|
|
9579
9972
|
tools?: Array<ToolSelection>;
|
|
9580
9973
|
/**
|
|
9581
9974
|
* Vars
|
|
9582
9975
|
*
|
|
9583
|
-
* The inputs this task takes, read as {{vars.name}} in the prompt and in its tools.
|
|
9976
|
+
* The inputs this task takes, read as {{vars.name}} in the prompt and in its tools. Declare only what the caller or the model must supply: anything the task can read for itself ({{userdata.*}}, {{system_vars.*}}) it should read in its prompt instead.
|
|
9584
9977
|
*/
|
|
9585
9978
|
vars?: Array<VarDeclaration>;
|
|
9586
9979
|
};
|
|
@@ -9775,6 +10168,36 @@ export type TaskRunSummary = {
|
|
|
9775
10168
|
status: 'running' | 'completed' | 'failed';
|
|
9776
10169
|
};
|
|
9777
10170
|
|
|
10171
|
+
/**
|
|
10172
|
+
* TaskSelection
|
|
10173
|
+
*
|
|
10174
|
+
* One job this agent can enter and come back from: name a stored task, or
|
|
10175
|
+
* define one inline.
|
|
10176
|
+
*/
|
|
10177
|
+
export type TaskSelection = {
|
|
10178
|
+
/**
|
|
10179
|
+
* Description
|
|
10180
|
+
*/
|
|
10181
|
+
description: string;
|
|
10182
|
+
/**
|
|
10183
|
+
* Message
|
|
10184
|
+
*/
|
|
10185
|
+
message?: string | null;
|
|
10186
|
+
/**
|
|
10187
|
+
* Name
|
|
10188
|
+
*/
|
|
10189
|
+
name: string;
|
|
10190
|
+
task?: TaskConfig | null;
|
|
10191
|
+
/**
|
|
10192
|
+
* Task Id
|
|
10193
|
+
*/
|
|
10194
|
+
task_id?: string | null;
|
|
10195
|
+
/**
|
|
10196
|
+
* Task Version
|
|
10197
|
+
*/
|
|
10198
|
+
task_version?: number | null;
|
|
10199
|
+
};
|
|
10200
|
+
|
|
9778
10201
|
/**
|
|
9779
10202
|
* TaskVersionDetailResponse
|
|
9780
10203
|
*
|
|
@@ -10239,7 +10662,7 @@ export type ToolResponse = {
|
|
|
10239
10662
|
/**
|
|
10240
10663
|
* Operations
|
|
10241
10664
|
*/
|
|
10242
|
-
operations: Array<HttpOperation | CodeOperation | FrontendRpcOperation | IfOperation | SetVariableOperation | SayOperation | GenerateReplyOperation | AddMessageOperation | EndCallOperation | HandoffOperation | TransferOperation>;
|
|
10665
|
+
operations: Array<HttpOperation | CodeOperation | FrontendRpcOperation | IfOperation | SetVariableOperation | SayOperation | GenerateReplyOperation | AddMessageOperation | EndCallOperation | HandoffOperation | TransferOperation | SendDtmfOperation>;
|
|
10243
10666
|
/**
|
|
10244
10667
|
* Published At
|
|
10245
10668
|
*/
|
|
@@ -10317,7 +10740,7 @@ export type ToolVersionDetailResponse = {
|
|
|
10317
10740
|
/**
|
|
10318
10741
|
* Operations
|
|
10319
10742
|
*/
|
|
10320
|
-
operations: Array<HttpOperation | CodeOperation | FrontendRpcOperation | IfOperation | SetVariableOperation | SayOperation | GenerateReplyOperation | AddMessageOperation | EndCallOperation | HandoffOperation | TransferOperation>;
|
|
10743
|
+
operations: Array<HttpOperation | CodeOperation | FrontendRpcOperation | IfOperation | SetVariableOperation | SayOperation | GenerateReplyOperation | AddMessageOperation | EndCallOperation | HandoffOperation | TransferOperation | SendDtmfOperation>;
|
|
10321
10744
|
/**
|
|
10322
10745
|
* Published At
|
|
10323
10746
|
*/
|
|
@@ -11836,7 +12259,7 @@ export type CallsListData = {
|
|
|
11836
12259
|
*
|
|
11837
12260
|
* how the call reached the agent
|
|
11838
12261
|
*/
|
|
11839
|
-
type?: 'WEB' | 'SIP_INBOUND' | 'SIP_OUTBOUND' | null;
|
|
12262
|
+
type?: 'WEB' | 'SIP_INBOUND' | 'SIP_OUTBOUND' | 'STREAM' | null;
|
|
11840
12263
|
/**
|
|
11841
12264
|
* Status
|
|
11842
12265
|
*
|
|
@@ -12931,6 +13354,52 @@ export type CatalogAvatarsListResults = {
|
|
|
12931
13354
|
|
|
12932
13355
|
export type CatalogAvatarsListResult = CatalogAvatarsListResults[keyof CatalogAvatarsListResults];
|
|
12933
13356
|
|
|
13357
|
+
export type CatalogModelsSearchData = {
|
|
13358
|
+
body?: never;
|
|
13359
|
+
path?: never;
|
|
13360
|
+
query?: {
|
|
13361
|
+
/**
|
|
13362
|
+
* Q
|
|
13363
|
+
*/
|
|
13364
|
+
q?: string;
|
|
13365
|
+
/**
|
|
13366
|
+
* Limit
|
|
13367
|
+
*/
|
|
13368
|
+
limit?: number;
|
|
13369
|
+
/**
|
|
13370
|
+
* Cursor
|
|
13371
|
+
*/
|
|
13372
|
+
cursor?: string;
|
|
13373
|
+
};
|
|
13374
|
+
url: '/v1/catalog/models';
|
|
13375
|
+
};
|
|
13376
|
+
|
|
13377
|
+
export type CatalogModelsSearchErrors = {
|
|
13378
|
+
/**
|
|
13379
|
+
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
13380
|
+
*/
|
|
13381
|
+
401: ErrorResponse;
|
|
13382
|
+
/**
|
|
13383
|
+
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
13384
|
+
*/
|
|
13385
|
+
422: ErrorResponse;
|
|
13386
|
+
/**
|
|
13387
|
+
* Unexpected error. Every error this API returns carries this body.
|
|
13388
|
+
*/
|
|
13389
|
+
default: ErrorResponse;
|
|
13390
|
+
};
|
|
13391
|
+
|
|
13392
|
+
export type CatalogModelsSearchError = CatalogModelsSearchErrors[keyof CatalogModelsSearchErrors];
|
|
13393
|
+
|
|
13394
|
+
export type CatalogModelsSearchResults = {
|
|
13395
|
+
/**
|
|
13396
|
+
* Successful Response
|
|
13397
|
+
*/
|
|
13398
|
+
200: ModelSearchResponse;
|
|
13399
|
+
};
|
|
13400
|
+
|
|
13401
|
+
export type CatalogModelsSearchResult = CatalogModelsSearchResults[keyof CatalogModelsSearchResults];
|
|
13402
|
+
|
|
12934
13403
|
export type CatalogVoicesListData = {
|
|
12935
13404
|
body?: never;
|
|
12936
13405
|
path?: never;
|
|
@@ -16408,6 +16877,243 @@ export type SecretsDeleteResults = {
|
|
|
16408
16877
|
|
|
16409
16878
|
export type SecretsDeleteResult = SecretsDeleteResults[keyof SecretsDeleteResults];
|
|
16410
16879
|
|
|
16880
|
+
export type TelephonyStreamsListData = {
|
|
16881
|
+
body?: never;
|
|
16882
|
+
path?: never;
|
|
16883
|
+
query?: {
|
|
16884
|
+
/**
|
|
16885
|
+
* Limit
|
|
16886
|
+
*/
|
|
16887
|
+
limit?: number;
|
|
16888
|
+
/**
|
|
16889
|
+
* Offset
|
|
16890
|
+
*/
|
|
16891
|
+
offset?: number;
|
|
16892
|
+
};
|
|
16893
|
+
url: '/v1/streams';
|
|
16894
|
+
};
|
|
16895
|
+
|
|
16896
|
+
export type TelephonyStreamsListErrors = {
|
|
16897
|
+
/**
|
|
16898
|
+
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
16899
|
+
*/
|
|
16900
|
+
401: ErrorResponse;
|
|
16901
|
+
/**
|
|
16902
|
+
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
16903
|
+
*/
|
|
16904
|
+
422: ErrorResponse;
|
|
16905
|
+
/**
|
|
16906
|
+
* Unexpected error. Every error this API returns carries this body.
|
|
16907
|
+
*/
|
|
16908
|
+
default: ErrorResponse;
|
|
16909
|
+
};
|
|
16910
|
+
|
|
16911
|
+
export type TelephonyStreamsListError = TelephonyStreamsListErrors[keyof TelephonyStreamsListErrors];
|
|
16912
|
+
|
|
16913
|
+
export type TelephonyStreamsListResults = {
|
|
16914
|
+
/**
|
|
16915
|
+
* Successful Response
|
|
16916
|
+
*/
|
|
16917
|
+
200: PageStreamConnectionResponse;
|
|
16918
|
+
};
|
|
16919
|
+
|
|
16920
|
+
export type TelephonyStreamsListResult = TelephonyStreamsListResults[keyof TelephonyStreamsListResults];
|
|
16921
|
+
|
|
16922
|
+
export type TelephonyStreamsCreateData = {
|
|
16923
|
+
body: CreateStreamConnectionRequest;
|
|
16924
|
+
path?: never;
|
|
16925
|
+
query?: never;
|
|
16926
|
+
url: '/v1/streams';
|
|
16927
|
+
};
|
|
16928
|
+
|
|
16929
|
+
export type TelephonyStreamsCreateErrors = {
|
|
16930
|
+
/**
|
|
16931
|
+
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
16932
|
+
*/
|
|
16933
|
+
400: ErrorResponse;
|
|
16934
|
+
/**
|
|
16935
|
+
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
16936
|
+
*/
|
|
16937
|
+
401: ErrorResponse;
|
|
16938
|
+
/**
|
|
16939
|
+
* Authenticated, but this organization role may not perform the operation.
|
|
16940
|
+
*/
|
|
16941
|
+
403: ErrorResponse;
|
|
16942
|
+
/**
|
|
16943
|
+
* The resource's current state forbids this — a name already taken, a job already running.
|
|
16944
|
+
*/
|
|
16945
|
+
409: ErrorResponse;
|
|
16946
|
+
/**
|
|
16947
|
+
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
16948
|
+
*/
|
|
16949
|
+
422: ErrorResponse;
|
|
16950
|
+
/**
|
|
16951
|
+
* Unexpected error. Every error this API returns carries this body.
|
|
16952
|
+
*/
|
|
16953
|
+
default: ErrorResponse;
|
|
16954
|
+
};
|
|
16955
|
+
|
|
16956
|
+
export type TelephonyStreamsCreateError = TelephonyStreamsCreateErrors[keyof TelephonyStreamsCreateErrors];
|
|
16957
|
+
|
|
16958
|
+
export type TelephonyStreamsCreateResults = {
|
|
16959
|
+
/**
|
|
16960
|
+
* Successful Response
|
|
16961
|
+
*/
|
|
16962
|
+
201: StreamConnectionResponse;
|
|
16963
|
+
};
|
|
16964
|
+
|
|
16965
|
+
export type TelephonyStreamsCreateResult = TelephonyStreamsCreateResults[keyof TelephonyStreamsCreateResults];
|
|
16966
|
+
|
|
16967
|
+
export type TelephonyStreamsDeleteData = {
|
|
16968
|
+
body?: never;
|
|
16969
|
+
path: {
|
|
16970
|
+
/**
|
|
16971
|
+
* Connection Id
|
|
16972
|
+
*/
|
|
16973
|
+
connection_id: string;
|
|
16974
|
+
};
|
|
16975
|
+
query?: never;
|
|
16976
|
+
url: '/v1/streams/{connection_id}';
|
|
16977
|
+
};
|
|
16978
|
+
|
|
16979
|
+
export type TelephonyStreamsDeleteErrors = {
|
|
16980
|
+
/**
|
|
16981
|
+
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
16982
|
+
*/
|
|
16983
|
+
400: ErrorResponse;
|
|
16984
|
+
/**
|
|
16985
|
+
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
16986
|
+
*/
|
|
16987
|
+
401: ErrorResponse;
|
|
16988
|
+
/**
|
|
16989
|
+
* Authenticated, but this organization role may not perform the operation.
|
|
16990
|
+
*/
|
|
16991
|
+
403: ErrorResponse;
|
|
16992
|
+
/**
|
|
16993
|
+
* No such resource in this organization.
|
|
16994
|
+
*/
|
|
16995
|
+
404: ErrorResponse;
|
|
16996
|
+
/**
|
|
16997
|
+
* The resource's current state forbids this — a name already taken, a job already running.
|
|
16998
|
+
*/
|
|
16999
|
+
409: ErrorResponse;
|
|
17000
|
+
/**
|
|
17001
|
+
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
17002
|
+
*/
|
|
17003
|
+
422: ErrorResponse;
|
|
17004
|
+
/**
|
|
17005
|
+
* Unexpected error. Every error this API returns carries this body.
|
|
17006
|
+
*/
|
|
17007
|
+
default: ErrorResponse;
|
|
17008
|
+
};
|
|
17009
|
+
|
|
17010
|
+
export type TelephonyStreamsDeleteError = TelephonyStreamsDeleteErrors[keyof TelephonyStreamsDeleteErrors];
|
|
17011
|
+
|
|
17012
|
+
export type TelephonyStreamsDeleteResults = {
|
|
17013
|
+
/**
|
|
17014
|
+
* Successful Response
|
|
17015
|
+
*/
|
|
17016
|
+
200: OkResponse;
|
|
17017
|
+
};
|
|
17018
|
+
|
|
17019
|
+
export type TelephonyStreamsDeleteResult = TelephonyStreamsDeleteResults[keyof TelephonyStreamsDeleteResults];
|
|
17020
|
+
|
|
17021
|
+
export type TelephonyStreamsGetData = {
|
|
17022
|
+
body?: never;
|
|
17023
|
+
path: {
|
|
17024
|
+
/**
|
|
17025
|
+
* Connection Id
|
|
17026
|
+
*/
|
|
17027
|
+
connection_id: string;
|
|
17028
|
+
};
|
|
17029
|
+
query?: never;
|
|
17030
|
+
url: '/v1/streams/{connection_id}';
|
|
17031
|
+
};
|
|
17032
|
+
|
|
17033
|
+
export type TelephonyStreamsGetErrors = {
|
|
17034
|
+
/**
|
|
17035
|
+
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
17036
|
+
*/
|
|
17037
|
+
401: ErrorResponse;
|
|
17038
|
+
/**
|
|
17039
|
+
* No such resource in this organization.
|
|
17040
|
+
*/
|
|
17041
|
+
404: ErrorResponse;
|
|
17042
|
+
/**
|
|
17043
|
+
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
17044
|
+
*/
|
|
17045
|
+
422: ErrorResponse;
|
|
17046
|
+
/**
|
|
17047
|
+
* Unexpected error. Every error this API returns carries this body.
|
|
17048
|
+
*/
|
|
17049
|
+
default: ErrorResponse;
|
|
17050
|
+
};
|
|
17051
|
+
|
|
17052
|
+
export type TelephonyStreamsGetError = TelephonyStreamsGetErrors[keyof TelephonyStreamsGetErrors];
|
|
17053
|
+
|
|
17054
|
+
export type TelephonyStreamsGetResults = {
|
|
17055
|
+
/**
|
|
17056
|
+
* Successful Response
|
|
17057
|
+
*/
|
|
17058
|
+
200: StreamConnectionResponse;
|
|
17059
|
+
};
|
|
17060
|
+
|
|
17061
|
+
export type TelephonyStreamsGetResult = TelephonyStreamsGetResults[keyof TelephonyStreamsGetResults];
|
|
17062
|
+
|
|
17063
|
+
export type TelephonyStreamsUpdateData = {
|
|
17064
|
+
body: PatchStreamConnectionRequest;
|
|
17065
|
+
path: {
|
|
17066
|
+
/**
|
|
17067
|
+
* Connection Id
|
|
17068
|
+
*/
|
|
17069
|
+
connection_id: string;
|
|
17070
|
+
};
|
|
17071
|
+
query?: never;
|
|
17072
|
+
url: '/v1/streams/{connection_id}';
|
|
17073
|
+
};
|
|
17074
|
+
|
|
17075
|
+
export type TelephonyStreamsUpdateErrors = {
|
|
17076
|
+
/**
|
|
17077
|
+
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
17078
|
+
*/
|
|
17079
|
+
400: ErrorResponse;
|
|
17080
|
+
/**
|
|
17081
|
+
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
17082
|
+
*/
|
|
17083
|
+
401: ErrorResponse;
|
|
17084
|
+
/**
|
|
17085
|
+
* Authenticated, but this organization role may not perform the operation.
|
|
17086
|
+
*/
|
|
17087
|
+
403: ErrorResponse;
|
|
17088
|
+
/**
|
|
17089
|
+
* No such resource in this organization.
|
|
17090
|
+
*/
|
|
17091
|
+
404: ErrorResponse;
|
|
17092
|
+
/**
|
|
17093
|
+
* The resource's current state forbids this — a name already taken, a job already running.
|
|
17094
|
+
*/
|
|
17095
|
+
409: ErrorResponse;
|
|
17096
|
+
/**
|
|
17097
|
+
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
17098
|
+
*/
|
|
17099
|
+
422: ErrorResponse;
|
|
17100
|
+
/**
|
|
17101
|
+
* Unexpected error. Every error this API returns carries this body.
|
|
17102
|
+
*/
|
|
17103
|
+
default: ErrorResponse;
|
|
17104
|
+
};
|
|
17105
|
+
|
|
17106
|
+
export type TelephonyStreamsUpdateError = TelephonyStreamsUpdateErrors[keyof TelephonyStreamsUpdateErrors];
|
|
17107
|
+
|
|
17108
|
+
export type TelephonyStreamsUpdateResults = {
|
|
17109
|
+
/**
|
|
17110
|
+
* Successful Response
|
|
17111
|
+
*/
|
|
17112
|
+
200: StreamConnectionResponse;
|
|
17113
|
+
};
|
|
17114
|
+
|
|
17115
|
+
export type TelephonyStreamsUpdateResult = TelephonyStreamsUpdateResults[keyof TelephonyStreamsUpdateResults];
|
|
17116
|
+
|
|
16411
17117
|
export type TasksListData = {
|
|
16412
17118
|
body?: never;
|
|
16413
17119
|
path?: never;
|