@upon-ai/sdk 0.1.2 → 0.1.4
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/README.md +22 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/metadata.d.ts +29 -0
- package/dist/metadata.js +31 -0
- package/dist/schema.d.ts +231 -12
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Requires Node >=22.14. ESM package; CommonJS consumers can use dynamic `import()
|
|
|
6
6
|
## Install
|
|
7
7
|
|
|
8
8
|
```sh
|
|
9
|
-
npm install @upon-ai/sdk@0.1.
|
|
9
|
+
npm install @upon-ai/sdk@0.1.4
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
```ts
|
|
@@ -25,7 +25,7 @@ Keep the API key on your server. Do not embed customer credentials in browser
|
|
|
25
25
|
bundles. Each client keeps its own credential; an async `apiKey` callback can
|
|
26
26
|
supply a rotated token. There are no global credentials or privileged header overrides.
|
|
27
27
|
|
|
28
|
-
All
|
|
28
|
+
All 110 reviewed public operations have named methods. Inputs use `path`, `query`
|
|
29
29
|
and `body` groups matching the public OpenAPI contract. Types include
|
|
30
30
|
`OperationInput`, `OperationOutput`, `operations` and `components`.
|
|
31
31
|
Multipart bodies use native `FormData`; binary endpoints return `Blob`.
|
|
@@ -58,3 +58,23 @@ pages fail instead of looping indefinitely. No universal cursor format is assume
|
|
|
58
58
|
Use `baseUrl` only for a trusted HTTPS API origin, such as your staging deployment.
|
|
59
59
|
The optional injected `fetch` is trusted application code, primarily for tests.
|
|
60
60
|
Types describe the reviewed contract; responses are not runtime schema-validated.
|
|
61
|
+
|
|
62
|
+
## Agent webhook settings
|
|
63
|
+
|
|
64
|
+
The contract types all eight voice events and three chat events. Use
|
|
65
|
+
`updateAgent` or `updateChatAgent` with `body.workspaceId`, `body.webhook_url`, and
|
|
66
|
+
`body.webhook_events`; set `query.version` to the editable version when changing
|
|
67
|
+
subscriptions. The platform saves the customer destination and routes delivery
|
|
68
|
+
through its proxy. Omitted fields are preserved. `webhook_url: null` clears the
|
|
69
|
+
destination; `webhook_events: []` disables customer event delivery. Read back with
|
|
70
|
+
`getAgent` or `getChatAgent` to verify the current saved customer settings.
|
|
71
|
+
Subscription changes on published versions return 409; publish the edited draft
|
|
72
|
+
separately to activate.
|
|
73
|
+
|
|
74
|
+
```ts
|
|
75
|
+
await client.updateAgent({
|
|
76
|
+
path: { agentId: 'agent_example' },
|
|
77
|
+
query: { version: 3 },
|
|
78
|
+
body: { workspaceId: 123, webhook_events: ['transcript_updated', 'transfer_ended'] },
|
|
79
|
+
});
|
|
80
|
+
```
|
package/dist/index.d.ts
CHANGED
|
@@ -115,4 +115,5 @@ export declare class UponAI extends ClientCore {
|
|
|
115
115
|
getVoiceSimulationSchedule(args: OperationInput<'getVoiceSimulationSchedule'>, options?: RequestOptions): Promise<OperationOutput<'getVoiceSimulationSchedule'>>;
|
|
116
116
|
saveVoiceSimulationSchedule(args: OperationInput<'saveVoiceSimulationSchedule'>, options?: RequestOptions): Promise<OperationOutput<'saveVoiceSimulationSchedule'>>;
|
|
117
117
|
pauseVoiceSimulationSchedule(args: OperationInput<'pauseVoiceSimulationSchedule'>, options?: RequestOptions): Promise<OperationOutput<'pauseVoiceSimulationSchedule'>>;
|
|
118
|
+
createCallMonitorSession(args: OperationInput<'createCallMonitorSession'>, options?: RequestOptions): Promise<OperationOutput<'createCallMonitorSession'>>;
|
|
118
119
|
}
|
package/dist/index.js
CHANGED
|
@@ -114,4 +114,5 @@ export class UponAI extends ClientCore {
|
|
|
114
114
|
getVoiceSimulationSchedule(args, options) { return this.execute('getVoiceSimulationSchedule', args, options); }
|
|
115
115
|
saveVoiceSimulationSchedule(args, options) { return this.execute('saveVoiceSimulationSchedule', args, options); }
|
|
116
116
|
pauseVoiceSimulationSchedule(args, options) { return this.execute('pauseVoiceSimulationSchedule', args, options); }
|
|
117
|
+
createCallMonitorSession(args, options) { return this.execute('createCallMonitorSession', args, options); }
|
|
117
118
|
}
|
package/dist/metadata.d.ts
CHANGED
|
@@ -2290,6 +2290,10 @@ export declare const metadata: {
|
|
|
2290
2290
|
readonly minItems: 1;
|
|
2291
2291
|
readonly maxItems: 100;
|
|
2292
2292
|
};
|
|
2293
|
+
readonly ai_model: {
|
|
2294
|
+
readonly type: "string";
|
|
2295
|
+
readonly description: "Optional allowed AI model ID from settings. Overrides scenario scoring models and selects their per-run tier price. Aliases are display labels, not IDs.";
|
|
2296
|
+
};
|
|
2293
2297
|
readonly repetitions: {
|
|
2294
2298
|
readonly type: "integer";
|
|
2295
2299
|
readonly minimum: 1;
|
|
@@ -3030,4 +3034,29 @@ export declare const metadata: {
|
|
|
3030
3034
|
readonly bodyType: null;
|
|
3031
3035
|
readonly bodySchema: null;
|
|
3032
3036
|
};
|
|
3037
|
+
readonly createCallMonitorSession: {
|
|
3038
|
+
readonly path: "/api/v1/calls/{callId}/monitor";
|
|
3039
|
+
readonly method: "post";
|
|
3040
|
+
readonly summary: "Open a live call monitoring session";
|
|
3041
|
+
readonly parameters: readonly [{
|
|
3042
|
+
readonly name: "callId";
|
|
3043
|
+
readonly in: "path";
|
|
3044
|
+
readonly required: true;
|
|
3045
|
+
readonly schema: {
|
|
3046
|
+
readonly type: "string";
|
|
3047
|
+
};
|
|
3048
|
+
}];
|
|
3049
|
+
readonly bodyRequired: false;
|
|
3050
|
+
readonly bodyType: "application/json";
|
|
3051
|
+
readonly bodySchema: {
|
|
3052
|
+
readonly type: "object";
|
|
3053
|
+
readonly properties: {
|
|
3054
|
+
readonly audio: {
|
|
3055
|
+
readonly type: "boolean";
|
|
3056
|
+
readonly default: false;
|
|
3057
|
+
readonly description: "Request live audio in addition to transcripts.";
|
|
3058
|
+
};
|
|
3059
|
+
};
|
|
3060
|
+
};
|
|
3061
|
+
};
|
|
3033
3062
|
};
|
package/dist/metadata.js
CHANGED
|
@@ -2544,6 +2544,10 @@ export const metadata = {
|
|
|
2544
2544
|
"minItems": 1,
|
|
2545
2545
|
"maxItems": 100
|
|
2546
2546
|
},
|
|
2547
|
+
"ai_model": {
|
|
2548
|
+
"type": "string",
|
|
2549
|
+
"description": "Optional allowed AI model ID from settings. Overrides scenario scoring models and selects their per-run tier price. Aliases are display labels, not IDs."
|
|
2550
|
+
},
|
|
2547
2551
|
"repetitions": {
|
|
2548
2552
|
"type": "integer",
|
|
2549
2553
|
"minimum": 1,
|
|
@@ -3377,5 +3381,32 @@ export const metadata = {
|
|
|
3377
3381
|
"bodyRequired": false,
|
|
3378
3382
|
"bodyType": null,
|
|
3379
3383
|
"bodySchema": null
|
|
3384
|
+
},
|
|
3385
|
+
"createCallMonitorSession": {
|
|
3386
|
+
"path": "/api/v1/calls/{callId}/monitor",
|
|
3387
|
+
"method": "post",
|
|
3388
|
+
"summary": "Open a live call monitoring session",
|
|
3389
|
+
"parameters": [
|
|
3390
|
+
{
|
|
3391
|
+
"name": "callId",
|
|
3392
|
+
"in": "path",
|
|
3393
|
+
"required": true,
|
|
3394
|
+
"schema": {
|
|
3395
|
+
"type": "string"
|
|
3396
|
+
}
|
|
3397
|
+
}
|
|
3398
|
+
],
|
|
3399
|
+
"bodyRequired": false,
|
|
3400
|
+
"bodyType": "application/json",
|
|
3401
|
+
"bodySchema": {
|
|
3402
|
+
"type": "object",
|
|
3403
|
+
"properties": {
|
|
3404
|
+
"audio": {
|
|
3405
|
+
"type": "boolean",
|
|
3406
|
+
"default": false,
|
|
3407
|
+
"description": "Request live audio in addition to transcripts."
|
|
3408
|
+
}
|
|
3409
|
+
}
|
|
3410
|
+
}
|
|
3380
3411
|
}
|
|
3381
3412
|
};
|
package/dist/schema.d.ts
CHANGED
|
@@ -104,7 +104,7 @@ export interface paths {
|
|
|
104
104
|
head?: never;
|
|
105
105
|
/**
|
|
106
106
|
* Update agent
|
|
107
|
-
* @description Apply partial updates
|
|
107
|
+
* @description Apply partial updates. Customer webhook URLs and event selections are stored by the platform; delivery uses the platform proxy. Omitted webhook fields are preserved. Subscription changes require an editable version; publish it separately to activate.
|
|
108
108
|
*/
|
|
109
109
|
patch: operations["updateAgent"];
|
|
110
110
|
trace?: never;
|
|
@@ -236,7 +236,7 @@ export interface paths {
|
|
|
236
236
|
head?: never;
|
|
237
237
|
/**
|
|
238
238
|
* Update chat agent
|
|
239
|
-
* @description Apply partial updates
|
|
239
|
+
* @description Apply partial updates. Customer webhook URLs and event selections are stored by the platform; delivery uses the platform proxy. Omitted webhook fields are preserved. Subscription changes require an editable version; publish it separately to activate.
|
|
240
240
|
*/
|
|
241
241
|
patch: operations["updateChatAgent"];
|
|
242
242
|
trace?: never;
|
|
@@ -1786,6 +1786,26 @@ export interface paths {
|
|
|
1786
1786
|
patch?: never;
|
|
1787
1787
|
trace?: never;
|
|
1788
1788
|
};
|
|
1789
|
+
"/api/v1/calls/{callId}/monitor": {
|
|
1790
|
+
parameters: {
|
|
1791
|
+
query?: never;
|
|
1792
|
+
header?: never;
|
|
1793
|
+
path?: never;
|
|
1794
|
+
cookie?: never;
|
|
1795
|
+
};
|
|
1796
|
+
get?: never;
|
|
1797
|
+
put?: never;
|
|
1798
|
+
/**
|
|
1799
|
+
* Open a live call monitoring session
|
|
1800
|
+
* @description Create a single-use ticket valid for 60 seconds for a call-scoped WebSocket. Connect to websocket_path on the same API origin using wss. The stream sends ready, transcript_snapshot, transcript_updated and call_ended JSON events. Transcript events contain the complete current transcripts array; replace items by id. Optional audio uses audio_started, audio_chunk, audio_stopped and audio_error events. Audio chunks contain base64 signed 16-bit little-endian PCM; audio_started supplies sample_rate and channels. Audio requires workspace live-audio access and a supported active media connection. Audio startup failure leaves transcripts available. Access is rechecked on connection and every 15 seconds. Reconnect by creating a new session. Tickets are credentials; keep them out of logs. Live transcripts are raw, before post-call privacy processing. No client messages are required.
|
|
1801
|
+
*/
|
|
1802
|
+
post: operations["createCallMonitorSession"];
|
|
1803
|
+
delete?: never;
|
|
1804
|
+
options?: never;
|
|
1805
|
+
head?: never;
|
|
1806
|
+
patch?: never;
|
|
1807
|
+
trace?: never;
|
|
1808
|
+
};
|
|
1789
1809
|
}
|
|
1790
1810
|
export type webhooks = Record<string, never>;
|
|
1791
1811
|
export interface components {
|
|
@@ -2091,9 +2111,13 @@ export interface components {
|
|
|
2091
2111
|
/** @default en-US */
|
|
2092
2112
|
language?: string;
|
|
2093
2113
|
response_engine: components["schemas"]["ResponseEngine"];
|
|
2094
|
-
/**
|
|
2114
|
+
/**
|
|
2115
|
+
* Format: uri
|
|
2116
|
+
* @description Customer receiving URL saved by the platform. Delivery uses the platform proxy. Null disables customer forwarding; omitted PATCH fields are preserved. Responses include the current agent-level destination, even for historical versions.
|
|
2117
|
+
*/
|
|
2095
2118
|
webhook_url?: string | null;
|
|
2096
|
-
|
|
2119
|
+
/** @description Customer event selections. Omission preserves selections on update and defaults to the three lifecycle events on creation. An empty array disables customer event delivery. Optional subscriptions are enabled only when selected. Subscription changes require an editable version and publication to activate for production calls or chats. */
|
|
2120
|
+
webhook_events?: components["schemas"]["VoiceWebhookEvent"][];
|
|
2097
2121
|
webhook_timeout_ms?: number;
|
|
2098
2122
|
response_threshold?: number;
|
|
2099
2123
|
interruption_sensitivity?: number;
|
|
@@ -2135,6 +2159,8 @@ export interface components {
|
|
|
2135
2159
|
type: string;
|
|
2136
2160
|
llm_id?: string;
|
|
2137
2161
|
};
|
|
2162
|
+
/** @enum {string} */
|
|
2163
|
+
VoiceWebhookEvent: "call_started" | "call_ended" | "call_analyzed" | "transcript_updated" | "transfer_started" | "transfer_bridged" | "transfer_cancelled" | "transfer_ended";
|
|
2138
2164
|
CustomSttConfig: ({
|
|
2139
2165
|
/**
|
|
2140
2166
|
* @description Realtime transcription provider used when stt_mode is custom.
|
|
@@ -2152,9 +2178,13 @@ export interface components {
|
|
|
2152
2178
|
fallback_voice_ids?: string[] | null;
|
|
2153
2179
|
language?: string | null;
|
|
2154
2180
|
response_engine?: components["schemas"]["ResponseEngine"];
|
|
2155
|
-
/**
|
|
2181
|
+
/**
|
|
2182
|
+
* Format: uri
|
|
2183
|
+
* @description Customer receiving URL saved by the platform. Delivery uses the platform proxy. Null disables customer forwarding; omitted PATCH fields are preserved. Responses include the current agent-level destination, even for historical versions.
|
|
2184
|
+
*/
|
|
2156
2185
|
webhook_url?: string | null;
|
|
2157
|
-
|
|
2186
|
+
/** @description Customer event selections. Omission preserves selections on update and defaults to the three lifecycle events on creation. An empty array disables customer event delivery. Optional subscriptions are enabled only when selected. Subscription changes require an editable version and publication to activate for production calls or chats. */
|
|
2187
|
+
webhook_events?: components["schemas"]["VoiceWebhookEvent"][];
|
|
2158
2188
|
webhook_timeout_ms?: number | null;
|
|
2159
2189
|
response_threshold?: number | null;
|
|
2160
2190
|
interruption_sensitivity?: number | null;
|
|
@@ -2195,6 +2225,13 @@ export interface components {
|
|
|
2195
2225
|
voice_model?: components["schemas"]["VoiceModel"];
|
|
2196
2226
|
fallback_voice_ids?: string[] | null;
|
|
2197
2227
|
language?: string;
|
|
2228
|
+
/**
|
|
2229
|
+
* Format: uri
|
|
2230
|
+
* @description Customer receiving URL saved by the platform. Delivery uses the platform proxy. Null disables customer forwarding; omitted PATCH fields are preserved. Responses include the current agent-level destination, even for historical versions.
|
|
2231
|
+
*/
|
|
2232
|
+
webhook_url?: string | null;
|
|
2233
|
+
/** @description Customer event selections. Omission preserves selections on update and defaults to the three lifecycle events on creation. An empty array disables customer event delivery. Optional subscriptions are enabled only when selected. Subscription changes require an editable version and publication to activate for production calls or chats. */
|
|
2234
|
+
webhook_events?: components["schemas"]["VoiceWebhookEvent"][];
|
|
2198
2235
|
response_engine?: components["schemas"]["ResponseEngine"];
|
|
2199
2236
|
interruption_sensitivity?: number;
|
|
2200
2237
|
max_call_duration_ms?: number;
|
|
@@ -2279,9 +2316,13 @@ export interface components {
|
|
|
2279
2316
|
auto_close_message?: string | null;
|
|
2280
2317
|
end_chat_after_silence_ms?: number;
|
|
2281
2318
|
timezone?: string;
|
|
2282
|
-
/**
|
|
2319
|
+
/**
|
|
2320
|
+
* Format: uri
|
|
2321
|
+
* @description Customer receiving URL saved by the platform. Delivery uses the platform proxy. Null disables customer forwarding; omitted PATCH fields are preserved. Responses include the current agent-level destination, even for historical versions.
|
|
2322
|
+
*/
|
|
2283
2323
|
webhook_url?: string | null;
|
|
2284
|
-
|
|
2324
|
+
/** @description Customer event selections. Omission preserves selections on update and defaults to the three lifecycle events on creation. An empty array disables customer event delivery. Optional subscriptions are enabled only when selected. Subscription changes require an editable version and publication to activate for production calls or chats. */
|
|
2325
|
+
webhook_events?: components["schemas"]["ChatWebhookEvent"][];
|
|
2285
2326
|
webhook_timeout_ms?: number;
|
|
2286
2327
|
/** @enum {string} */
|
|
2287
2328
|
data_storage_setting?: "everything" | "everything_except_pii" | "basic_attributes_only";
|
|
@@ -2302,6 +2343,8 @@ export interface components {
|
|
|
2302
2343
|
[key: string]: string;
|
|
2303
2344
|
};
|
|
2304
2345
|
};
|
|
2346
|
+
/** @enum {string} */
|
|
2347
|
+
ChatWebhookEvent: "chat_started" | "chat_ended" | "chat_analyzed";
|
|
2305
2348
|
ChatAgentAnalysisField: {
|
|
2306
2349
|
/** @example chat_summary */
|
|
2307
2350
|
type: string;
|
|
@@ -2314,9 +2357,13 @@ export interface components {
|
|
|
2314
2357
|
ChatAgent: components["schemas"]["ChatAgentSummary"] & {
|
|
2315
2358
|
end_chat_after_silence_ms?: number | null;
|
|
2316
2359
|
timezone?: string | null;
|
|
2317
|
-
/**
|
|
2360
|
+
/**
|
|
2361
|
+
* Format: uri
|
|
2362
|
+
* @description Customer receiving URL saved by the platform. Delivery uses the platform proxy. Null disables customer forwarding; omitted PATCH fields are preserved. Responses include the current agent-level destination, even for historical versions.
|
|
2363
|
+
*/
|
|
2318
2364
|
webhook_url?: string | null;
|
|
2319
|
-
|
|
2365
|
+
/** @description Customer event selections. Omission preserves selections on update and defaults to the three lifecycle events on creation. An empty array disables customer event delivery. Optional subscriptions are enabled only when selected. Subscription changes require an editable version and publication to activate for production calls or chats. */
|
|
2366
|
+
webhook_events?: components["schemas"]["ChatWebhookEvent"][];
|
|
2320
2367
|
webhook_timeout_ms?: number | null;
|
|
2321
2368
|
/** @enum {string|null} */
|
|
2322
2369
|
data_storage_setting?: "everything" | "everything_except_pii" | "basic_attributes_only" | null;
|
|
@@ -2348,9 +2395,13 @@ export interface components {
|
|
|
2348
2395
|
auto_close_message?: string | null;
|
|
2349
2396
|
end_chat_after_silence_ms?: number;
|
|
2350
2397
|
timezone?: string;
|
|
2351
|
-
/**
|
|
2398
|
+
/**
|
|
2399
|
+
* Format: uri
|
|
2400
|
+
* @description Customer receiving URL saved by the platform. Delivery uses the platform proxy. Null disables customer forwarding; omitted PATCH fields are preserved. Responses include the current agent-level destination, even for historical versions.
|
|
2401
|
+
*/
|
|
2352
2402
|
webhook_url?: string | null;
|
|
2353
|
-
|
|
2403
|
+
/** @description Customer event selections. Omission preserves selections on update and defaults to the three lifecycle events on creation. An empty array disables customer event delivery. Optional subscriptions are enabled only when selected. Subscription changes require an editable version and publication to activate for production calls or chats. */
|
|
2404
|
+
webhook_events?: components["schemas"]["ChatWebhookEvent"][];
|
|
2354
2405
|
webhook_timeout_ms?: number;
|
|
2355
2406
|
/** @enum {string} */
|
|
2356
2407
|
data_storage_setting?: "everything" | "everything_except_pii" | "basic_attributes_only";
|
|
@@ -3456,6 +3507,8 @@ export interface components {
|
|
|
3456
3507
|
model_options?: {
|
|
3457
3508
|
counterpart?: string[];
|
|
3458
3509
|
ai?: string[];
|
|
3510
|
+
/** @description Retail-facing labels and effective per-connected-run prices for allowed AI model IDs. Blank configuration inherits the workspace surcharge. */
|
|
3511
|
+
ai_details?: components["schemas"]["VoiceSimulationModelOption"][];
|
|
3459
3512
|
defaults?: {
|
|
3460
3513
|
counterpart?: string | null;
|
|
3461
3514
|
ai?: string | null;
|
|
@@ -3483,6 +3536,15 @@ export interface components {
|
|
|
3483
3536
|
}[];
|
|
3484
3537
|
};
|
|
3485
3538
|
};
|
|
3539
|
+
VoiceSimulationModelOption: {
|
|
3540
|
+
/** @description Stable allowed AI model ID used in requests. */
|
|
3541
|
+
id: string;
|
|
3542
|
+
/** @description Configured alias */
|
|
3543
|
+
label: string;
|
|
3544
|
+
alias?: string | null;
|
|
3545
|
+
tier?: string | null;
|
|
3546
|
+
per_run_price: number;
|
|
3547
|
+
};
|
|
3486
3548
|
VoiceSimulationProject: {
|
|
3487
3549
|
/** Format: uuid */
|
|
3488
3550
|
id: string;
|
|
@@ -3561,7 +3623,17 @@ export interface components {
|
|
|
3561
3623
|
VoiceSimulationEstimate: {
|
|
3562
3624
|
currency: string;
|
|
3563
3625
|
run_count: number;
|
|
3626
|
+
/** @description Highest per-run surcharge in this session. For mixed models, use model_prices and maximum_surcharge for exact amounts. */
|
|
3564
3627
|
per_run_price?: number;
|
|
3628
|
+
/** @description Server-computed per-scenario pricing, frozen when the session is launched. Each connected repetition incurs this surcharge; voice usage and Agent IQ interactions remain separate. */
|
|
3629
|
+
model_prices?: {
|
|
3630
|
+
/** Format: uuid */
|
|
3631
|
+
scenario_id?: string;
|
|
3632
|
+
ai_model?: string;
|
|
3633
|
+
label?: string;
|
|
3634
|
+
tier?: string | null;
|
|
3635
|
+
per_run_price?: number;
|
|
3636
|
+
}[];
|
|
3565
3637
|
maximum_surcharge: number;
|
|
3566
3638
|
monthly_price?: number;
|
|
3567
3639
|
max_audio_seconds?: number;
|
|
@@ -3569,6 +3641,8 @@ export interface components {
|
|
|
3569
3641
|
};
|
|
3570
3642
|
VoiceSimulationLaunchInput: {
|
|
3571
3643
|
scenario_ids: string[];
|
|
3644
|
+
/** @description Use the same optional AI model ID as the estimate. Selects scoring and per-run tier pricing; changing it requires a new idempotency key. */
|
|
3645
|
+
ai_model?: string;
|
|
3572
3646
|
/** @default 1 */
|
|
3573
3647
|
repetitions?: number;
|
|
3574
3648
|
max_surcharge: number;
|
|
@@ -4261,6 +4335,34 @@ export interface operations {
|
|
|
4261
4335
|
"application/json": components["schemas"]["Agent"];
|
|
4262
4336
|
};
|
|
4263
4337
|
};
|
|
4338
|
+
/** @description Invalid webhook URL or event selection for this agent channel. */
|
|
4339
|
+
400: {
|
|
4340
|
+
headers: {
|
|
4341
|
+
[name: string]: unknown;
|
|
4342
|
+
};
|
|
4343
|
+
content?: never;
|
|
4344
|
+
};
|
|
4345
|
+
/** @description Agent or workspace not found or inaccessible. */
|
|
4346
|
+
404: {
|
|
4347
|
+
headers: {
|
|
4348
|
+
[name: string]: unknown;
|
|
4349
|
+
};
|
|
4350
|
+
content?: never;
|
|
4351
|
+
};
|
|
4352
|
+
/** @description The selected version is published. Create an editable version before changing subscriptions. */
|
|
4353
|
+
409: {
|
|
4354
|
+
headers: {
|
|
4355
|
+
[name: string]: unknown;
|
|
4356
|
+
};
|
|
4357
|
+
content?: never;
|
|
4358
|
+
};
|
|
4359
|
+
/** @description The webhook subscription could not be verified. Customer settings were not saved. */
|
|
4360
|
+
502: {
|
|
4361
|
+
headers: {
|
|
4362
|
+
[name: string]: unknown;
|
|
4363
|
+
};
|
|
4364
|
+
content?: never;
|
|
4365
|
+
};
|
|
4264
4366
|
};
|
|
4265
4367
|
};
|
|
4266
4368
|
listAgentVersions: {
|
|
@@ -4504,6 +4606,34 @@ export interface operations {
|
|
|
4504
4606
|
"application/json": components["schemas"]["ChatAgent"];
|
|
4505
4607
|
};
|
|
4506
4608
|
};
|
|
4609
|
+
/** @description Invalid webhook URL or event selection for this agent channel. */
|
|
4610
|
+
400: {
|
|
4611
|
+
headers: {
|
|
4612
|
+
[name: string]: unknown;
|
|
4613
|
+
};
|
|
4614
|
+
content?: never;
|
|
4615
|
+
};
|
|
4616
|
+
/** @description Agent or workspace not found or inaccessible. */
|
|
4617
|
+
404: {
|
|
4618
|
+
headers: {
|
|
4619
|
+
[name: string]: unknown;
|
|
4620
|
+
};
|
|
4621
|
+
content?: never;
|
|
4622
|
+
};
|
|
4623
|
+
/** @description The selected version is published. Create an editable version before changing subscriptions. */
|
|
4624
|
+
409: {
|
|
4625
|
+
headers: {
|
|
4626
|
+
[name: string]: unknown;
|
|
4627
|
+
};
|
|
4628
|
+
content?: never;
|
|
4629
|
+
};
|
|
4630
|
+
/** @description The webhook subscription could not be verified. Customer settings were not saved. */
|
|
4631
|
+
502: {
|
|
4632
|
+
headers: {
|
|
4633
|
+
[name: string]: unknown;
|
|
4634
|
+
};
|
|
4635
|
+
content?: never;
|
|
4636
|
+
};
|
|
4507
4637
|
};
|
|
4508
4638
|
};
|
|
4509
4639
|
listChatAgentVersions: {
|
|
@@ -7170,6 +7300,8 @@ export interface operations {
|
|
|
7170
7300
|
content: {
|
|
7171
7301
|
"application/json": {
|
|
7172
7302
|
scenario_ids: string[];
|
|
7303
|
+
/** @description Optional allowed AI model ID from settings. Overrides scenario scoring models and selects their per-run tier price. Aliases are display labels, not IDs. */
|
|
7304
|
+
ai_model?: string;
|
|
7173
7305
|
repetitions?: number;
|
|
7174
7306
|
};
|
|
7175
7307
|
};
|
|
@@ -9291,4 +9423,91 @@ export interface operations {
|
|
|
9291
9423
|
};
|
|
9292
9424
|
};
|
|
9293
9425
|
};
|
|
9426
|
+
createCallMonitorSession: {
|
|
9427
|
+
parameters: {
|
|
9428
|
+
query?: never;
|
|
9429
|
+
header?: never;
|
|
9430
|
+
path: {
|
|
9431
|
+
callId: string;
|
|
9432
|
+
};
|
|
9433
|
+
cookie?: never;
|
|
9434
|
+
};
|
|
9435
|
+
requestBody?: {
|
|
9436
|
+
content: {
|
|
9437
|
+
"application/json": {
|
|
9438
|
+
/**
|
|
9439
|
+
* @description Request live audio in addition to transcripts.
|
|
9440
|
+
* @default false
|
|
9441
|
+
*/
|
|
9442
|
+
audio?: boolean;
|
|
9443
|
+
};
|
|
9444
|
+
};
|
|
9445
|
+
};
|
|
9446
|
+
responses: {
|
|
9447
|
+
/** @description Single-use monitoring ticket created */
|
|
9448
|
+
201: {
|
|
9449
|
+
headers: {
|
|
9450
|
+
[name: string]: unknown;
|
|
9451
|
+
};
|
|
9452
|
+
content: {
|
|
9453
|
+
"application/json": {
|
|
9454
|
+
/** @description Relative WebSocket path on the same API origin, including the single-use ticket. */
|
|
9455
|
+
websocket_path: string;
|
|
9456
|
+
/** @constant */
|
|
9457
|
+
expires_in: 60;
|
|
9458
|
+
audio: boolean;
|
|
9459
|
+
};
|
|
9460
|
+
};
|
|
9461
|
+
};
|
|
9462
|
+
/** @description Invalid audio option */
|
|
9463
|
+
400: {
|
|
9464
|
+
headers: {
|
|
9465
|
+
[name: string]: unknown;
|
|
9466
|
+
};
|
|
9467
|
+
content?: never;
|
|
9468
|
+
};
|
|
9469
|
+
/** @description Invalid or missing API token */
|
|
9470
|
+
401: {
|
|
9471
|
+
headers: {
|
|
9472
|
+
[name: string]: unknown;
|
|
9473
|
+
};
|
|
9474
|
+
content?: never;
|
|
9475
|
+
};
|
|
9476
|
+
/** @description Live audio access is not enabled */
|
|
9477
|
+
403: {
|
|
9478
|
+
headers: {
|
|
9479
|
+
[name: string]: unknown;
|
|
9480
|
+
};
|
|
9481
|
+
content?: never;
|
|
9482
|
+
};
|
|
9483
|
+
/** @description Live call not found or inaccessible */
|
|
9484
|
+
404: {
|
|
9485
|
+
headers: {
|
|
9486
|
+
[name: string]: unknown;
|
|
9487
|
+
};
|
|
9488
|
+
content?: never;
|
|
9489
|
+
};
|
|
9490
|
+
/** @description Call is no longer live */
|
|
9491
|
+
409: {
|
|
9492
|
+
headers: {
|
|
9493
|
+
[name: string]: unknown;
|
|
9494
|
+
};
|
|
9495
|
+
content?: never;
|
|
9496
|
+
};
|
|
9497
|
+
/** @description Too many pending monitoring sessions */
|
|
9498
|
+
429: {
|
|
9499
|
+
headers: {
|
|
9500
|
+
[name: string]: unknown;
|
|
9501
|
+
};
|
|
9502
|
+
content?: never;
|
|
9503
|
+
};
|
|
9504
|
+
/** @description Monitoring temporarily unavailable */
|
|
9505
|
+
503: {
|
|
9506
|
+
headers: {
|
|
9507
|
+
[name: string]: unknown;
|
|
9508
|
+
};
|
|
9509
|
+
content?: never;
|
|
9510
|
+
};
|
|
9511
|
+
};
|
|
9512
|
+
};
|
|
9294
9513
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const publicContractSha256 = "
|
|
1
|
+
export declare const publicContractSha256 = "b8eea77cb224ea7c17770bd9a1707b5410f6863875206f579d2a57db5a82d7b0";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const publicContractSha256 = '
|
|
1
|
+
export const publicContractSha256 = 'b8eea77cb224ea7c17770bd9a1707b5410f6863875206f579d2a57db5a82d7b0';
|