@talqing/sdk 0.18.0 → 0.20.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.
@@ -180,11 +180,9 @@ export type AgentConfig = {
180
180
  */
181
181
  faqs?: Array<FaqSelection>;
182
182
  /**
183
- * Greeting
184
- *
185
- * The opening line, spoken on connect and on the way in from a handoff; empty or null makes the agent wait for the caller to speak first. Voice and video only. Supports the same substitutions as the prompt, plus `{{recording.notice}}`, the recording notice's place in the line.
183
+ * How the agent opens, on connect and on the way in from a handoff; null makes it wait for the caller to speak first. Voice and video only.
186
184
  */
187
- greeting?: string | null;
185
+ greeting?: GreetingSpec | null;
188
186
  /**
189
187
  * Greeting Interruptible
190
188
  *
@@ -325,11 +323,9 @@ export type AgentOverride = {
325
323
  */
326
324
  faqs?: Array<FaqSelection> | null;
327
325
  /**
328
- * Greeting
329
- *
330
- * The opening line, spoken on connect and on the way in from a handoff; empty or null makes the agent wait for the caller to speak first. Voice and video only. Supports the same substitutions as the prompt, plus `{{recording.notice}}`, the recording notice's place in the line.
326
+ * How the agent opens, on connect and on the way in from a handoff; null makes it wait for the caller to speak first. Voice and video only.
331
327
  */
332
- greeting?: string | null;
328
+ greeting?: GreetingSpec | null;
333
329
  /**
334
330
  * Greeting Interruptible
335
331
  *
@@ -1412,10 +1408,7 @@ export type CallDetailResponse = {
1412
1408
  * Events
1413
1409
  */
1414
1410
  events: Array<SessionEventResponse>;
1415
- /**
1416
- * Greeting
1417
- */
1418
- greeting: string | null;
1411
+ greeting: GreetingSpec | null;
1419
1412
  session: CallSessionResponse;
1420
1413
  snapshot: HealthSnapshotResponse;
1421
1414
  /**
@@ -5163,6 +5156,25 @@ export type GenerateReplyOperation = {
5163
5156
  */
5164
5157
  on_error?: 'abort' | 'continue';
5165
5158
  };
5159
+ /**
5160
+ * GreetingSpec
5161
+ *
5162
+ * How the agent opens: a fixed `message`, or `instructions` for the model to write one.
5163
+ */
5164
+ export type GreetingSpec = {
5165
+ /**
5166
+ * Instructions
5167
+ *
5168
+ * What the model is told to open with; it writes the line. Supports the prompt's substitutions. Adds a model reply's latency before the first word.
5169
+ */
5170
+ instructions?: string | null;
5171
+ /**
5172
+ * Message
5173
+ *
5174
+ * Spoken word for word. Supports the prompt's substitutions, plus `{{recording.notice}}`, the recording notice's place in the line.
5175
+ */
5176
+ message?: string | null;
5177
+ };
5166
5178
  /**
5167
5179
  * HandoffConfig
5168
5180
  */
@@ -14627,6 +14639,55 @@ export type AgentsVersionsRollbackResults = {
14627
14639
  200: AgentResponse;
14628
14640
  };
14629
14641
  export type AgentsVersionsRollbackResult = AgentsVersionsRollbackResults[keyof AgentsVersionsRollbackResults];
14642
+ export type AttachmentsGetData = {
14643
+ body?: never;
14644
+ path: {
14645
+ /**
14646
+ * Attachment Id
14647
+ */
14648
+ attachment_id: string;
14649
+ };
14650
+ query?: never;
14651
+ url: '/v1/attachments/{attachment_id}';
14652
+ };
14653
+ export type AttachmentsGetErrors = {
14654
+ /**
14655
+ * Missing credential, or one that is revoked or no longer a member of this organization.
14656
+ */
14657
+ 401: ErrorResponse;
14658
+ /**
14659
+ * No such resource in this organization.
14660
+ */
14661
+ 404: ErrorResponse;
14662
+ /**
14663
+ * The request did not match this operation's schema; `detail.errors` lists each field.
14664
+ */
14665
+ 422: ErrorResponse;
14666
+ /**
14667
+ * Unexpected error. Every error this API returns carries this body.
14668
+ */
14669
+ default: ErrorResponse;
14670
+ };
14671
+ export type AttachmentsGetError = AttachmentsGetErrors[keyof AttachmentsGetErrors];
14672
+ export type AttachmentsGetResults = {
14673
+ /**
14674
+ * Response Attachments.Get
14675
+ *
14676
+ * Successful Response
14677
+ */
14678
+ 200: ({
14679
+ kind: 'image';
14680
+ } & ConversationImage) | ({
14681
+ kind: 'document';
14682
+ } & ConversationDocument) | ({
14683
+ kind: 'audio';
14684
+ } & ConversationAudio) | ({
14685
+ kind: 'contact';
14686
+ } & ConversationContact) | ({
14687
+ kind: 'file';
14688
+ } & ConversationFile);
14689
+ };
14690
+ export type AttachmentsGetResult = AttachmentsGetResults[keyof AttachmentsGetResults];
14630
14691
  export type BillingCreditsGetData = {
14631
14692
  body?: never;
14632
14693
  path?: never;
@@ -17018,59 +17079,6 @@ export type ConversationsUpdateResults = {
17018
17079
  200: ConversationResponse;
17019
17080
  };
17020
17081
  export type ConversationsUpdateResult = ConversationsUpdateResults[keyof ConversationsUpdateResults];
17021
- export type ConversationsAttachmentsGetData = {
17022
- body?: never;
17023
- path: {
17024
- /**
17025
- * Conversation Id
17026
- */
17027
- conversation_id: string;
17028
- /**
17029
- * Attachment Id
17030
- */
17031
- attachment_id: string;
17032
- };
17033
- query?: never;
17034
- url: '/v1/conversations/{conversation_id}/attachments/{attachment_id}';
17035
- };
17036
- export type ConversationsAttachmentsGetErrors = {
17037
- /**
17038
- * Missing credential, or one that is revoked or no longer a member of this organization.
17039
- */
17040
- 401: ErrorResponse;
17041
- /**
17042
- * No such resource in this organization.
17043
- */
17044
- 404: ErrorResponse;
17045
- /**
17046
- * The request did not match this operation's schema; `detail.errors` lists each field.
17047
- */
17048
- 422: ErrorResponse;
17049
- /**
17050
- * Unexpected error. Every error this API returns carries this body.
17051
- */
17052
- default: ErrorResponse;
17053
- };
17054
- export type ConversationsAttachmentsGetError = ConversationsAttachmentsGetErrors[keyof ConversationsAttachmentsGetErrors];
17055
- export type ConversationsAttachmentsGetResults = {
17056
- /**
17057
- * Response Conversations.Attachments.Get
17058
- *
17059
- * Successful Response
17060
- */
17061
- 200: ({
17062
- kind: 'image';
17063
- } & ConversationImage) | ({
17064
- kind: 'document';
17065
- } & ConversationDocument) | ({
17066
- kind: 'audio';
17067
- } & ConversationAudio) | ({
17068
- kind: 'contact';
17069
- } & ConversationContact) | ({
17070
- kind: 'file';
17071
- } & ConversationFile);
17072
- };
17073
- export type ConversationsAttachmentsGetResult = ConversationsAttachmentsGetResults[keyof ConversationsAttachmentsGetResults];
17074
17082
  export type ConversationsEventsData = {
17075
17083
  body?: never;
17076
17084
  path: {