@upon-ai/sdk 0.1.3 → 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 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.3
9
+ npm install @upon-ai/sdk@0.1.4
10
10
  ```
11
11
 
12
12
  ```ts
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
  }
@@ -3034,4 +3034,29 @@ export declare const metadata: {
3034
3034
  readonly bodyType: null;
3035
3035
  readonly bodySchema: null;
3036
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
+ };
3037
3062
  };
package/dist/metadata.js CHANGED
@@ -3381,5 +3381,32 @@ export const metadata = {
3381
3381
  "bodyRequired": false,
3382
3382
  "bodyType": null,
3383
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
+ }
3384
3411
  }
3385
3412
  };
package/dist/schema.d.ts CHANGED
@@ -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 {
@@ -9403,4 +9423,91 @@ export interface operations {
9403
9423
  };
9404
9424
  };
9405
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
+ };
9406
9513
  }
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const publicContractSha256 = "7f23a8c8fb2cda3db95301c41e2b7d95dbdb40419d2dd2e2878d5299eb3d5a9d";
1
+ export declare const publicContractSha256 = "b8eea77cb224ea7c17770bd9a1707b5410f6863875206f579d2a57db5a82d7b0";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const publicContractSha256 = '7f23a8c8fb2cda3db95301c41e2b7d95dbdb40419d2dd2e2878d5299eb3d5a9d';
1
+ export const publicContractSha256 = 'b8eea77cb224ea7c17770bd9a1707b5410f6863875206f579d2a57db5a82d7b0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@upon-ai/sdk",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Typed customer API client for UponAI",
5
5
  "license": "MIT",
6
6
  "type": "module",