retell-sdk 5.34.0 → 5.36.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.
@@ -35,7 +35,7 @@ export interface PlaygroundCompletionResponse {
35
35
  * New messages generated by the agent. Same shape as chat completion response
36
36
  * messages. Does not include the input messages.
37
37
  */
38
- messages: Array<PlaygroundCompletionResponse.MessageBase | PlaygroundCompletionResponse.ToolCallInvocationMessageBase | PlaygroundCompletionResponse.ToolCallResultMessageBase | PlaygroundCompletionResponse.NodeTransitionMessageBase | PlaygroundCompletionResponse.StateTransitionMessageBase>;
38
+ messages: Array<PlaygroundCompletionResponse.MessageBase | PlaygroundCompletionResponse.ToolCallInvocationMessageBase | PlaygroundCompletionResponse.ToolCallResultMessageBase | PlaygroundCompletionResponse.NodeTransitionMessageBase | PlaygroundCompletionResponse.StateTransitionMessageBase | PlaygroundCompletionResponse.InjectedMessageBase | PlaygroundCompletionResponse.SMSMessageBase>;
39
39
  /**
40
40
  * Whether the agent ended the conversation.
41
41
  */
@@ -194,6 +194,62 @@ export declare namespace PlaygroundCompletionResponse {
194
194
  */
195
195
  new_state_name?: string;
196
196
  }
197
+ interface InjectedMessageBase {
198
+ /**
199
+ * The injected context text.
200
+ */
201
+ content: string;
202
+ /**
203
+ * External context injected into the conversation via the update-live-call API.
204
+ * Not spoken by either party.
205
+ */
206
+ role: 'injected';
207
+ /**
208
+ * Create timestamp of the message
209
+ */
210
+ created_timestamp?: number;
211
+ /**
212
+ * Unique id of the message
213
+ */
214
+ message_id?: string;
215
+ }
216
+ interface SMSMessageBase {
217
+ /**
218
+ * Text content of the SMS message.
219
+ */
220
+ content: string;
221
+ /**
222
+ * SMS message exchanged during the call (for example received from the user).
223
+ * Woven into the transcript and shown to the agent, but not part of the spoken
224
+ * conversation.
225
+ */
226
+ role: 'sms';
227
+ /**
228
+ * Create timestamp of the message
229
+ */
230
+ created_timestamp?: number;
231
+ /**
232
+ * Unique id of the message
233
+ */
234
+ message_id?: string;
235
+ /**
236
+ * Multimedia attachments (MMS). Display only; not relayed into the spoken
237
+ * conversation.
238
+ */
239
+ multimedia?: Array<SMSMessageBase.Multimedia>;
240
+ }
241
+ namespace SMSMessageBase {
242
+ interface Multimedia {
243
+ /**
244
+ * URL of the multimedia attachment.
245
+ */
246
+ url: string;
247
+ /**
248
+ * Optional textual summary of the attachment.
249
+ */
250
+ summary?: string;
251
+ }
252
+ }
197
253
  }
198
254
  export interface PlaygroundCompletionParams {
199
255
  /**
@@ -201,7 +257,7 @@ export interface PlaygroundCompletionParams {
201
257
  * message_id and created_timestamp are optional — server generates them if
202
258
  * omitted.
203
259
  */
204
- messages: Array<PlaygroundCompletionParams.MessageBase | PlaygroundCompletionParams.ToolCallInvocationMessageBase | PlaygroundCompletionParams.ToolCallResultMessageBase | PlaygroundCompletionParams.NodeTransitionMessageBase | PlaygroundCompletionParams.StateTransitionMessageBase>;
260
+ messages: Array<PlaygroundCompletionParams.MessageBase | PlaygroundCompletionParams.ToolCallInvocationMessageBase | PlaygroundCompletionParams.ToolCallResultMessageBase | PlaygroundCompletionParams.NodeTransitionMessageBase | PlaygroundCompletionParams.StateTransitionMessageBase | PlaygroundCompletionParams.InjectedMessageBase | PlaygroundCompletionParams.SMSMessageBase>;
205
261
  /**
206
262
  * Query param: Agent version to use. Defaults to latest.
207
263
  */
@@ -369,6 +425,62 @@ export declare namespace PlaygroundCompletionParams {
369
425
  */
370
426
  new_state_name?: string;
371
427
  }
428
+ interface InjectedMessageBase {
429
+ /**
430
+ * The injected context text.
431
+ */
432
+ content: string;
433
+ /**
434
+ * External context injected into the conversation via the update-live-call API.
435
+ * Not spoken by either party.
436
+ */
437
+ role: 'injected';
438
+ /**
439
+ * Create timestamp of the message
440
+ */
441
+ created_timestamp?: number;
442
+ /**
443
+ * Unique id of the message
444
+ */
445
+ message_id?: string;
446
+ }
447
+ interface SMSMessageBase {
448
+ /**
449
+ * Text content of the SMS message.
450
+ */
451
+ content: string;
452
+ /**
453
+ * SMS message exchanged during the call (for example received from the user).
454
+ * Woven into the transcript and shown to the agent, but not part of the spoken
455
+ * conversation.
456
+ */
457
+ role: 'sms';
458
+ /**
459
+ * Create timestamp of the message
460
+ */
461
+ created_timestamp?: number;
462
+ /**
463
+ * Unique id of the message
464
+ */
465
+ message_id?: string;
466
+ /**
467
+ * Multimedia attachments (MMS). Display only; not relayed into the spoken
468
+ * conversation.
469
+ */
470
+ multimedia?: Array<SMSMessageBase.Multimedia>;
471
+ }
472
+ namespace SMSMessageBase {
473
+ interface Multimedia {
474
+ /**
475
+ * URL of the multimedia attachment.
476
+ */
477
+ url: string;
478
+ /**
479
+ * Optional textual summary of the attachment.
480
+ */
481
+ summary?: string;
482
+ }
483
+ }
372
484
  interface ToolMock {
373
485
  /**
374
486
  * Rule for matching tool calls
@@ -1 +1 @@
1
- {"version":3,"file":"playground.d.mts","sourceRoot":"","sources":["../src/resources/playground.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,UAAU,CACR,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,0BAA0B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;CAS5C;AAED,MAAM,WAAW,4BAA4B;IAC3C;;;OAGG;IACH,QAAQ,EAAE,KAAK,CACX,4BAA4B,CAAC,WAAW,GACxC,4BAA4B,CAAC,6BAA6B,GAC1D,4BAA4B,CAAC,yBAAyB,GACtD,4BAA4B,CAAC,yBAAyB,GACtD,4BAA4B,CAAC,0BAA0B,CAC1D,CAAC;IAEF;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB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gB,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,YAAY,CAAC;QAExD;;;WAGG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;;WAGG;QACH,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;KACzB;IAED,UAAiB,QAAQ,CAAC;QACxB,UAAiB,IAAI;YACnB;;eAEG;YACH,IAAI,EAAE,KAAK,CAAC;SACb;QAED,UAAiB,YAAY;YAC3B;;eAEG;YACH,IAAI,EAAE,OAAO,CAAC;YAEd;;eAEG;YACH,IAAI,EAAE,eAAe,CAAC;SACvB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
@@ -35,7 +35,7 @@ export interface PlaygroundCompletionResponse {
35
35
  * New messages generated by the agent. Same shape as chat completion response
36
36
  * messages. Does not include the input messages.
37
37
  */
38
- messages: Array<PlaygroundCompletionResponse.MessageBase | PlaygroundCompletionResponse.ToolCallInvocationMessageBase | PlaygroundCompletionResponse.ToolCallResultMessageBase | PlaygroundCompletionResponse.NodeTransitionMessageBase | PlaygroundCompletionResponse.StateTransitionMessageBase>;
38
+ messages: Array<PlaygroundCompletionResponse.MessageBase | PlaygroundCompletionResponse.ToolCallInvocationMessageBase | PlaygroundCompletionResponse.ToolCallResultMessageBase | PlaygroundCompletionResponse.NodeTransitionMessageBase | PlaygroundCompletionResponse.StateTransitionMessageBase | PlaygroundCompletionResponse.InjectedMessageBase | PlaygroundCompletionResponse.SMSMessageBase>;
39
39
  /**
40
40
  * Whether the agent ended the conversation.
41
41
  */
@@ -194,6 +194,62 @@ export declare namespace PlaygroundCompletionResponse {
194
194
  */
195
195
  new_state_name?: string;
196
196
  }
197
+ interface InjectedMessageBase {
198
+ /**
199
+ * The injected context text.
200
+ */
201
+ content: string;
202
+ /**
203
+ * External context injected into the conversation via the update-live-call API.
204
+ * Not spoken by either party.
205
+ */
206
+ role: 'injected';
207
+ /**
208
+ * Create timestamp of the message
209
+ */
210
+ created_timestamp?: number;
211
+ /**
212
+ * Unique id of the message
213
+ */
214
+ message_id?: string;
215
+ }
216
+ interface SMSMessageBase {
217
+ /**
218
+ * Text content of the SMS message.
219
+ */
220
+ content: string;
221
+ /**
222
+ * SMS message exchanged during the call (for example received from the user).
223
+ * Woven into the transcript and shown to the agent, but not part of the spoken
224
+ * conversation.
225
+ */
226
+ role: 'sms';
227
+ /**
228
+ * Create timestamp of the message
229
+ */
230
+ created_timestamp?: number;
231
+ /**
232
+ * Unique id of the message
233
+ */
234
+ message_id?: string;
235
+ /**
236
+ * Multimedia attachments (MMS). Display only; not relayed into the spoken
237
+ * conversation.
238
+ */
239
+ multimedia?: Array<SMSMessageBase.Multimedia>;
240
+ }
241
+ namespace SMSMessageBase {
242
+ interface Multimedia {
243
+ /**
244
+ * URL of the multimedia attachment.
245
+ */
246
+ url: string;
247
+ /**
248
+ * Optional textual summary of the attachment.
249
+ */
250
+ summary?: string;
251
+ }
252
+ }
197
253
  }
198
254
  export interface PlaygroundCompletionParams {
199
255
  /**
@@ -201,7 +257,7 @@ export interface PlaygroundCompletionParams {
201
257
  * message_id and created_timestamp are optional — server generates them if
202
258
  * omitted.
203
259
  */
204
- messages: Array<PlaygroundCompletionParams.MessageBase | PlaygroundCompletionParams.ToolCallInvocationMessageBase | PlaygroundCompletionParams.ToolCallResultMessageBase | PlaygroundCompletionParams.NodeTransitionMessageBase | PlaygroundCompletionParams.StateTransitionMessageBase>;
260
+ messages: Array<PlaygroundCompletionParams.MessageBase | PlaygroundCompletionParams.ToolCallInvocationMessageBase | PlaygroundCompletionParams.ToolCallResultMessageBase | PlaygroundCompletionParams.NodeTransitionMessageBase | PlaygroundCompletionParams.StateTransitionMessageBase | PlaygroundCompletionParams.InjectedMessageBase | PlaygroundCompletionParams.SMSMessageBase>;
205
261
  /**
206
262
  * Query param: Agent version to use. Defaults to latest.
207
263
  */
@@ -369,6 +425,62 @@ export declare namespace PlaygroundCompletionParams {
369
425
  */
370
426
  new_state_name?: string;
371
427
  }
428
+ interface InjectedMessageBase {
429
+ /**
430
+ * The injected context text.
431
+ */
432
+ content: string;
433
+ /**
434
+ * External context injected into the conversation via the update-live-call API.
435
+ * Not spoken by either party.
436
+ */
437
+ role: 'injected';
438
+ /**
439
+ * Create timestamp of the message
440
+ */
441
+ created_timestamp?: number;
442
+ /**
443
+ * Unique id of the message
444
+ */
445
+ message_id?: string;
446
+ }
447
+ interface SMSMessageBase {
448
+ /**
449
+ * Text content of the SMS message.
450
+ */
451
+ content: string;
452
+ /**
453
+ * SMS message exchanged during the call (for example received from the user).
454
+ * Woven into the transcript and shown to the agent, but not part of the spoken
455
+ * conversation.
456
+ */
457
+ role: 'sms';
458
+ /**
459
+ * Create timestamp of the message
460
+ */
461
+ created_timestamp?: number;
462
+ /**
463
+ * Unique id of the message
464
+ */
465
+ message_id?: string;
466
+ /**
467
+ * Multimedia attachments (MMS). Display only; not relayed into the spoken
468
+ * conversation.
469
+ */
470
+ multimedia?: Array<SMSMessageBase.Multimedia>;
471
+ }
472
+ namespace SMSMessageBase {
473
+ interface Multimedia {
474
+ /**
475
+ * URL of the multimedia attachment.
476
+ */
477
+ url: string;
478
+ /**
479
+ * Optional textual summary of the attachment.
480
+ */
481
+ summary?: string;
482
+ }
483
+ }
372
484
  interface ToolMock {
373
485
  /**
374
486
  * Rule for matching tool calls
@@ -1 +1 @@
1
- {"version":3,"file":"playground.d.ts","sourceRoot":"","sources":["../src/resources/playground.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;;;;;;;;O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AEG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB;;;;WAIG;QACH,IAAI,EAAE,KAAK,CAAC;QAEZ;;WAEG;QACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAE3B;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;;WAGG;QACH,UAAU,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;KAC/C;IAED,UAAiB,cAAc,CAAC;QAC9B,UAAiB,UAAU;YACzB;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;YAEZ;;eAEG;YACH,OAAO,CAAC,EAAE,MAAM,CAAC;SAClB;KACF;IAED,UAAiB,QAAQ;QACvB;;WAEG;QACH,gBAAgB,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,YAAY,CAAC;QAExD;;;WAGG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;;WAGG;QACH,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;KACzB;IAED,UAAiB,QAAQ,CAAC;QACxB,UAAiB,IAAI;YACnB;;eAEG;YACH,IAAI,EAAE,KAAK,CAAC;SACb;QAED,UAAiB,YAAY;YAC3B;;eAEG;YACH,IAAI,EAAE,OAAO,CAAC;YAEd;;eAEG;YACH,IAAI,EAAE,eAAe,CAAC;SACvB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
@@ -207,6 +207,8 @@ export interface ChatResponse {
207
207
  | ChatResponse.ToolCallResultMessageBase
208
208
  | ChatResponse.NodeTransitionMessageBase
209
209
  | ChatResponse.StateTransitionMessageBase
210
+ | ChatResponse.InjectedMessageBase
211
+ | ChatResponse.SMSMessageBase
210
212
  >;
211
213
 
212
214
  /**
@@ -469,6 +471,73 @@ export namespace ChatResponse {
469
471
  */
470
472
  new_state_name?: string;
471
473
  }
474
+
475
+ export interface InjectedMessageBase {
476
+ /**
477
+ * The injected context text.
478
+ */
479
+ content: string;
480
+
481
+ /**
482
+ * External context injected into the conversation via the update-live-call API.
483
+ * Not spoken by either party.
484
+ */
485
+ role: 'injected';
486
+
487
+ /**
488
+ * Create timestamp of the message
489
+ */
490
+ created_timestamp?: number;
491
+
492
+ /**
493
+ * Unique id of the message
494
+ */
495
+ message_id?: string;
496
+ }
497
+
498
+ export interface SMSMessageBase {
499
+ /**
500
+ * Text content of the SMS message.
501
+ */
502
+ content: string;
503
+
504
+ /**
505
+ * SMS message exchanged during the call (for example received from the user).
506
+ * Woven into the transcript and shown to the agent, but not part of the spoken
507
+ * conversation.
508
+ */
509
+ role: 'sms';
510
+
511
+ /**
512
+ * Create timestamp of the message
513
+ */
514
+ created_timestamp?: number;
515
+
516
+ /**
517
+ * Unique id of the message
518
+ */
519
+ message_id?: string;
520
+
521
+ /**
522
+ * Multimedia attachments (MMS). Display only; not relayed into the spoken
523
+ * conversation.
524
+ */
525
+ multimedia?: Array<SMSMessageBase.Multimedia>;
526
+ }
527
+
528
+ export namespace SMSMessageBase {
529
+ export interface Multimedia {
530
+ /**
531
+ * URL of the multimedia attachment.
532
+ */
533
+ url: string;
534
+
535
+ /**
536
+ * Optional textual summary of the attachment.
537
+ */
538
+ summary?: string;
539
+ }
540
+ }
472
541
  }
473
542
 
474
543
  export interface ChatListResponse {
@@ -510,6 +579,8 @@ export interface ChatCreateChatCompletionResponse {
510
579
  | ChatCreateChatCompletionResponse.ToolCallResultMessageBase
511
580
  | ChatCreateChatCompletionResponse.NodeTransitionMessageBase
512
581
  | ChatCreateChatCompletionResponse.StateTransitionMessageBase
582
+ | ChatCreateChatCompletionResponse.InjectedMessageBase
583
+ | ChatCreateChatCompletionResponse.SMSMessageBase
513
584
  >;
514
585
  }
515
586
 
@@ -677,6 +748,73 @@ export namespace ChatCreateChatCompletionResponse {
677
748
  */
678
749
  new_state_name?: string;
679
750
  }
751
+
752
+ export interface InjectedMessageBase {
753
+ /**
754
+ * The injected context text.
755
+ */
756
+ content: string;
757
+
758
+ /**
759
+ * External context injected into the conversation via the update-live-call API.
760
+ * Not spoken by either party.
761
+ */
762
+ role: 'injected';
763
+
764
+ /**
765
+ * Create timestamp of the message
766
+ */
767
+ created_timestamp?: number;
768
+
769
+ /**
770
+ * Unique id of the message
771
+ */
772
+ message_id?: string;
773
+ }
774
+
775
+ export interface SMSMessageBase {
776
+ /**
777
+ * Text content of the SMS message.
778
+ */
779
+ content: string;
780
+
781
+ /**
782
+ * SMS message exchanged during the call (for example received from the user).
783
+ * Woven into the transcript and shown to the agent, but not part of the spoken
784
+ * conversation.
785
+ */
786
+ role: 'sms';
787
+
788
+ /**
789
+ * Create timestamp of the message
790
+ */
791
+ created_timestamp?: number;
792
+
793
+ /**
794
+ * Unique id of the message
795
+ */
796
+ message_id?: string;
797
+
798
+ /**
799
+ * Multimedia attachments (MMS). Display only; not relayed into the spoken
800
+ * conversation.
801
+ */
802
+ multimedia?: Array<SMSMessageBase.Multimedia>;
803
+ }
804
+
805
+ export namespace SMSMessageBase {
806
+ export interface Multimedia {
807
+ /**
808
+ * URL of the multimedia attachment.
809
+ */
810
+ url: string;
811
+
812
+ /**
813
+ * Optional textual summary of the attachment.
814
+ */
815
+ summary?: string;
816
+ }
817
+ }
680
818
  }
681
819
 
682
820
  export interface ChatCreateParams {