retell-sdk 5.64.0 → 5.66.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.
- package/CHANGELOG.md +42 -0
- package/README.md +29 -0
- package/client.d.mts +9 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +9 -6
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent.d.mts +43 -13
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +43 -13
- package/resources/agent.d.ts.map +1 -1
- package/resources/agent.js +21 -2
- package/resources/agent.js.map +1 -1
- package/resources/agent.mjs +21 -2
- package/resources/agent.mjs.map +1 -1
- package/resources/app.d.mts +28 -46
- package/resources/app.d.mts.map +1 -1
- package/resources/app.d.ts +28 -46
- package/resources/app.d.ts.map +1 -1
- package/resources/app.js +7 -5
- package/resources/app.js.map +1 -1
- package/resources/app.mjs +7 -5
- package/resources/app.mjs.map +1 -1
- package/resources/asset.d.mts +53 -0
- package/resources/asset.d.mts.map +1 -0
- package/resources/asset.d.ts +53 -0
- package/resources/asset.d.ts.map +1 -0
- package/resources/asset.js +20 -0
- package/resources/asset.js.map +1 -0
- package/resources/asset.mjs +16 -0
- package/resources/asset.mjs.map +1 -0
- package/resources/batch-call.d.mts +4 -2
- package/resources/batch-call.d.mts.map +1 -1
- package/resources/batch-call.d.ts +4 -2
- package/resources/batch-call.d.ts.map +1 -1
- package/resources/call.d.mts +155 -21
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +155 -21
- package/resources/call.d.ts.map +1 -1
- package/resources/call.js +37 -5
- package/resources/call.js.map +1 -1
- package/resources/call.mjs +37 -5
- package/resources/call.mjs.map +1 -1
- package/resources/chat-agent.d.mts +2 -2
- package/resources/chat-agent.d.mts.map +1 -1
- package/resources/chat-agent.d.ts +2 -2
- package/resources/chat-agent.d.ts.map +1 -1
- package/resources/chat.d.mts +24 -11
- package/resources/chat.d.mts.map +1 -1
- package/resources/chat.d.ts +24 -11
- package/resources/chat.d.ts.map +1 -1
- package/resources/contact.d.mts +137 -26
- package/resources/contact.d.mts.map +1 -1
- package/resources/contact.d.ts +137 -26
- package/resources/contact.d.ts.map +1 -1
- package/resources/contact.js +23 -4
- package/resources/contact.js.map +1 -1
- package/resources/contact.mjs +23 -4
- package/resources/contact.mjs.map +1 -1
- package/resources/conversation-flow-component.d.mts +182 -2
- package/resources/conversation-flow-component.d.mts.map +1 -1
- package/resources/conversation-flow-component.d.ts +182 -2
- package/resources/conversation-flow-component.d.ts.map +1 -1
- package/resources/conversation-flow.d.mts +362 -2
- package/resources/conversation-flow.d.mts.map +1 -1
- package/resources/conversation-flow.d.ts +362 -2
- package/resources/conversation-flow.d.ts.map +1 -1
- package/resources/crm.d.mts +4 -0
- package/resources/crm.d.mts.map +1 -1
- package/resources/crm.d.ts +4 -0
- package/resources/crm.d.ts.map +1 -1
- package/resources/export-request.d.mts +2 -2
- package/resources/export-request.d.mts.map +1 -1
- package/resources/export-request.d.ts +2 -2
- package/resources/export-request.d.ts.map +1 -1
- package/resources/index.d.mts +4 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/knowledge-base.d.mts +7 -7
- package/resources/knowledge-base.d.ts +7 -7
- package/resources/llm.d.mts +38 -2
- package/resources/llm.d.mts.map +1 -1
- package/resources/llm.d.ts +38 -2
- package/resources/llm.d.ts.map +1 -1
- package/resources/phone-number.d.mts +14 -8
- package/resources/phone-number.d.mts.map +1 -1
- package/resources/phone-number.d.ts +14 -8
- package/resources/phone-number.d.ts.map +1 -1
- package/resources/tests.d.mts +6 -6
- package/resources/tests.d.mts.map +1 -1
- package/resources/tests.d.ts +6 -6
- package/resources/tests.d.ts.map +1 -1
- package/resources/voice.d.mts +4 -4
- package/resources/voice.d.mts.map +1 -1
- package/resources/voice.d.ts +4 -4
- package/resources/voice.d.ts.map +1 -1
- package/src/client.ts +31 -0
- package/src/resources/agent.ts +60 -9
- package/src/resources/app.ts +29 -58
- package/src/resources/asset.ts +69 -0
- package/src/resources/batch-call.ts +6 -1
- package/src/resources/call.ts +196 -18
- package/src/resources/chat-agent.ts +2 -2
- package/src/resources/chat.ts +28 -11
- package/src/resources/contact.ts +187 -26
- package/src/resources/conversation-flow-component.ts +206 -2
- package/src/resources/conversation-flow.ts +410 -2
- package/src/resources/crm.ts +5 -0
- package/src/resources/export-request.ts +2 -2
- package/src/resources/index.ts +12 -0
- package/src/resources/knowledge-base.ts +7 -7
- package/src/resources/llm.ts +38 -2
- package/src/resources/phone-number.ts +14 -8
- package/src/resources/tests.ts +6 -6
- package/src/resources/voice.ts +4 -4
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/contact.js
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Contact = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
6
|
const headers_1 = require("../internal/headers.js");
|
|
7
|
+
const uploads_1 = require("../internal/uploads.js");
|
|
7
8
|
const path_1 = require("../internal/utils/path.js");
|
|
8
9
|
class Contact extends resource_1.APIResource {
|
|
9
10
|
/**
|
|
@@ -38,13 +39,18 @@ class Contact extends resource_1.APIResource {
|
|
|
38
39
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
39
40
|
});
|
|
40
41
|
}
|
|
41
|
-
/**
|
|
42
|
-
* Trigger a backfill job that re-applies analysis data mappings to contacts using
|
|
43
|
-
* historical call data. Only one backfill job can run per organization at a time.
|
|
44
|
-
*/
|
|
45
42
|
backfillAnalysisData(body, options) {
|
|
46
43
|
return this._client.post('/backfill-contact-analysis-data', { body, ...options });
|
|
47
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* Start an incremental contact import from an uploaded CSV: creates new contacts
|
|
47
|
+
* and updates existing ones matched by phone number. Mapped columns overwrite the
|
|
48
|
+
* matched contact's fields; unmapped columns are ignored. Runs asynchronously —
|
|
49
|
+
* poll get-contact-import for progress.
|
|
50
|
+
*/
|
|
51
|
+
createImport(body, options) {
|
|
52
|
+
return this._client.post('/create-contact-import', { body, ...options });
|
|
53
|
+
}
|
|
48
54
|
/**
|
|
49
55
|
* Retrieve a contact by ID.
|
|
50
56
|
*/
|
|
@@ -64,6 +70,12 @@ class Contact extends resource_1.APIResource {
|
|
|
64
70
|
getByPhone(phoneNumber, options) {
|
|
65
71
|
return this._client.get((0, path_1.path) `/get-contact-by-phone/${phoneNumber}`, options);
|
|
66
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* Status and counts for the org's current or latest contact import.
|
|
75
|
+
*/
|
|
76
|
+
getImport(options) {
|
|
77
|
+
return this._client.get('/get-contact-import', options);
|
|
78
|
+
}
|
|
67
79
|
/**
|
|
68
80
|
* List a contact's conversations (inbound calls, outbound calls, and chats) merged
|
|
69
81
|
* into a single timeline, most recent first. Results are matched by the contact's
|
|
@@ -72,6 +84,13 @@ class Contact extends resource_1.APIResource {
|
|
|
72
84
|
listConversations(contactID, query = {}, options) {
|
|
73
85
|
return this._client.get((0, path_1.path) `/list-contact-conversations/${contactID}`, { query, ...options });
|
|
74
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* Upload a CSV file for a contact import. The file is stored privately and
|
|
89
|
+
* referenced by the returned upload_id in create-contact-import.
|
|
90
|
+
*/
|
|
91
|
+
uploadImportFile(body, options) {
|
|
92
|
+
return this._client.post('/upload-contact-import-file', (0, uploads_1.multipartFormRequestOptions)({ body, ...options }, this._client));
|
|
93
|
+
}
|
|
75
94
|
}
|
|
76
95
|
exports.Contact = Contact;
|
|
77
96
|
//# sourceMappingURL=contact.js.map
|
package/resources/contact.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact.js","sourceRoot":"","sources":["../src/resources/contact.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;
|
|
1
|
+
{"version":3,"file":"contact.js","sourceRoot":"","sources":["../src/resources/contact.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAAmD;AAEnD,oDAAkE;AAClE,oDAA8C;AAE9C,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,SAAiB,EACjB,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,mBAAmB,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,OAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,SAAiB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,mBAAmB,SAAS,EAAE,EAAE;YAC7D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED,oBAAoB,CA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AC,OAAO,CAAC,IAAI,CACtB,6BAA6B,EAC7B,IAAA,qCAA2B,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAChE,CAAC;IACJ,CAAC;CACF;AAvHD,0BAuHC"}
|
package/resources/contact.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
import { buildHeaders } from "../internal/headers.mjs";
|
|
4
|
+
import { multipartFormRequestOptions } from "../internal/uploads.mjs";
|
|
4
5
|
import { path } from "../internal/utils/path.mjs";
|
|
5
6
|
export class Contact extends APIResource {
|
|
6
7
|
/**
|
|
@@ -35,13 +36,18 @@ export class Contact extends APIResource {
|
|
|
35
36
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
36
37
|
});
|
|
37
38
|
}
|
|
38
|
-
/**
|
|
39
|
-
* Trigger a backfill job that re-applies analysis data mappings to contacts using
|
|
40
|
-
* historical call data. Only one backfill job can run per organization at a time.
|
|
41
|
-
*/
|
|
42
39
|
backfillAnalysisData(body, options) {
|
|
43
40
|
return this._client.post('/backfill-contact-analysis-data', { body, ...options });
|
|
44
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* Start an incremental contact import from an uploaded CSV: creates new contacts
|
|
44
|
+
* and updates existing ones matched by phone number. Mapped columns overwrite the
|
|
45
|
+
* matched contact's fields; unmapped columns are ignored. Runs asynchronously —
|
|
46
|
+
* poll get-contact-import for progress.
|
|
47
|
+
*/
|
|
48
|
+
createImport(body, options) {
|
|
49
|
+
return this._client.post('/create-contact-import', { body, ...options });
|
|
50
|
+
}
|
|
45
51
|
/**
|
|
46
52
|
* Retrieve a contact by ID.
|
|
47
53
|
*/
|
|
@@ -61,6 +67,12 @@ export class Contact extends APIResource {
|
|
|
61
67
|
getByPhone(phoneNumber, options) {
|
|
62
68
|
return this._client.get(path `/get-contact-by-phone/${phoneNumber}`, options);
|
|
63
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Status and counts for the org's current or latest contact import.
|
|
72
|
+
*/
|
|
73
|
+
getImport(options) {
|
|
74
|
+
return this._client.get('/get-contact-import', options);
|
|
75
|
+
}
|
|
64
76
|
/**
|
|
65
77
|
* List a contact's conversations (inbound calls, outbound calls, and chats) merged
|
|
66
78
|
* into a single timeline, most recent first. Results are matched by the contact's
|
|
@@ -69,5 +81,12 @@ export class Contact extends APIResource {
|
|
|
69
81
|
listConversations(contactID, query = {}, options) {
|
|
70
82
|
return this._client.get(path `/list-contact-conversations/${contactID}`, { query, ...options });
|
|
71
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* Upload a CSV file for a contact import. The file is stored privately and
|
|
86
|
+
* referenced by the returned upload_id in create-contact-import.
|
|
87
|
+
*/
|
|
88
|
+
uploadImportFile(body, options) {
|
|
89
|
+
return this._client.post('/upload-contact-import-file', multipartFormRequestOptions({ body, ...options }, this._client));
|
|
90
|
+
}
|
|
72
91
|
}
|
|
73
92
|
//# sourceMappingURL=contact.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact.mjs","sourceRoot":"","sources":["../src/resources/contact.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;
|
|
1
|
+
{"version":3,"file":"contact.mjs","sourceRoot":"","sources":["../src/resources/contact.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,2BAA2B,EAAE,gCAA4B;AAClE,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,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AAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;OAEG;IACH,oBAAoB,CAAC,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;;OAGG;IACH,UAAU,CAAC,WAAmB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,yBAAyB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED;;OAEG;IACH,SAAS,CAAC,OAAwB;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;;OAIG;IACH,iBAAiB,CACf,SAAiB,EACjB,QAA2D,EAAE,EAC7D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,+BAA+B,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;IAED;;;OAGG;IACH,gBAAgB,CACd,IAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,6BAA6B,EAC7B,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAChE,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -133,6 +133,10 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
133
133
|
*/
|
|
134
134
|
allow_dtmf_interruption?: boolean | null;
|
|
135
135
|
always_edge?: ConversationNode.AlwaysEdge;
|
|
136
|
+
/**
|
|
137
|
+
* Custom transcription settings. Required when stt_mode is custom.
|
|
138
|
+
*/
|
|
139
|
+
custom_stt_config?: ConversationNode.CustomSttConfig | null;
|
|
136
140
|
/**
|
|
137
141
|
* Position for frontend display
|
|
138
142
|
*/
|
|
@@ -169,6 +173,12 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
169
173
|
reminder_trigger_ms?: number | null;
|
|
170
174
|
responsiveness?: number | null;
|
|
171
175
|
skip_response_edge?: ConversationNode.SkipResponseEdge;
|
|
176
|
+
/**
|
|
177
|
+
* Balance between speed and accuracy. Fast optimizes for speed using the provider
|
|
178
|
+
* configuration, accurate optimizes for accuracy using the provider configuration,
|
|
179
|
+
* and custom uses custom_stt_config.
|
|
180
|
+
*/
|
|
181
|
+
stt_mode?: 'fast' | 'accurate' | 'custom' | null;
|
|
172
182
|
voice_speed?: number | null;
|
|
173
183
|
}
|
|
174
184
|
namespace ConversationNode {
|
|
@@ -242,6 +252,20 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
242
252
|
type: 'prompt';
|
|
243
253
|
}
|
|
244
254
|
}
|
|
255
|
+
/**
|
|
256
|
+
* Custom transcription settings. Required when stt_mode is custom.
|
|
257
|
+
*/
|
|
258
|
+
interface CustomSttConfig {
|
|
259
|
+
/**
|
|
260
|
+
* Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
|
|
261
|
+
* 500 for Soniox, and 100 for AssemblyAI.
|
|
262
|
+
*/
|
|
263
|
+
endpointing_ms: number;
|
|
264
|
+
/**
|
|
265
|
+
* ASR provider name.
|
|
266
|
+
*/
|
|
267
|
+
provider: 'azure' | 'deepgram' | 'soniox' | 'assemblyai';
|
|
268
|
+
}
|
|
245
269
|
/**
|
|
246
270
|
* Position for frontend display
|
|
247
271
|
*/
|
|
@@ -601,6 +625,10 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
601
625
|
*/
|
|
602
626
|
allow_dtmf_interruption?: boolean | null;
|
|
603
627
|
always_edge?: SubagentNode.AlwaysEdge;
|
|
628
|
+
/**
|
|
629
|
+
* Custom transcription settings. Required when stt_mode is custom.
|
|
630
|
+
*/
|
|
631
|
+
custom_stt_config?: SubagentNode.CustomSttConfig | null;
|
|
604
632
|
/**
|
|
605
633
|
* Position for frontend display
|
|
606
634
|
*/
|
|
@@ -637,6 +665,12 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
637
665
|
reminder_trigger_ms?: number | null;
|
|
638
666
|
responsiveness?: number | null;
|
|
639
667
|
skip_response_edge?: SubagentNode.SkipResponseEdge;
|
|
668
|
+
/**
|
|
669
|
+
* Balance between speed and accuracy. Fast optimizes for speed using the provider
|
|
670
|
+
* configuration, accurate optimizes for accuracy using the provider configuration,
|
|
671
|
+
* and custom uses custom_stt_config.
|
|
672
|
+
*/
|
|
673
|
+
stt_mode?: 'fast' | 'accurate' | 'custom' | null;
|
|
640
674
|
/**
|
|
641
675
|
* The tool ids of the tools defined in main conversation flow or component that
|
|
642
676
|
* can be used in this subagent node.
|
|
@@ -710,6 +744,20 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
710
744
|
type: 'prompt';
|
|
711
745
|
}
|
|
712
746
|
}
|
|
747
|
+
/**
|
|
748
|
+
* Custom transcription settings. Required when stt_mode is custom.
|
|
749
|
+
*/
|
|
750
|
+
interface CustomSttConfig {
|
|
751
|
+
/**
|
|
752
|
+
* Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
|
|
753
|
+
* 500 for Soniox, and 100 for AssemblyAI.
|
|
754
|
+
*/
|
|
755
|
+
endpointing_ms: number;
|
|
756
|
+
/**
|
|
757
|
+
* ASR provider name.
|
|
758
|
+
*/
|
|
759
|
+
provider: 'azure' | 'deepgram' | 'soniox' | 'assemblyai';
|
|
760
|
+
}
|
|
713
761
|
/**
|
|
714
762
|
* Position for frontend display
|
|
715
763
|
*/
|
|
@@ -1377,6 +1425,9 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
1377
1425
|
}
|
|
1378
1426
|
}
|
|
1379
1427
|
}
|
|
1428
|
+
/**
|
|
1429
|
+
* @deprecated
|
|
1430
|
+
*/
|
|
1380
1431
|
interface CheckAvailabilityCalTool {
|
|
1381
1432
|
/**
|
|
1382
1433
|
* Cal.com Api key that have access to the cal.com event you want to check
|
|
@@ -1411,6 +1462,9 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
1411
1462
|
*/
|
|
1412
1463
|
timezone?: string;
|
|
1413
1464
|
}
|
|
1465
|
+
/**
|
|
1466
|
+
* @deprecated
|
|
1467
|
+
*/
|
|
1414
1468
|
interface BookAppointmentCalTool {
|
|
1415
1469
|
/**
|
|
1416
1470
|
* Cal.com Api key that have access to the cal.com event you want to book
|
|
@@ -6053,6 +6107,9 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
6053
6107
|
required?: Array<string>;
|
|
6054
6108
|
}
|
|
6055
6109
|
}
|
|
6110
|
+
/**
|
|
6111
|
+
* @deprecated
|
|
6112
|
+
*/
|
|
6056
6113
|
interface CheckAvailabilityCalTool {
|
|
6057
6114
|
/**
|
|
6058
6115
|
* Cal.com Api key that have access to the cal.com event you want to check
|
|
@@ -6091,6 +6148,9 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
6091
6148
|
*/
|
|
6092
6149
|
tool_id?: string;
|
|
6093
6150
|
}
|
|
6151
|
+
/**
|
|
6152
|
+
* @deprecated
|
|
6153
|
+
*/
|
|
6094
6154
|
interface BookAppointmentCalTool {
|
|
6095
6155
|
/**
|
|
6096
6156
|
* Cal.com Api key that have access to the cal.com event you want to book
|
|
@@ -6134,8 +6194,8 @@ export interface ConversationFlowComponentListResponse {
|
|
|
6134
6194
|
/**
|
|
6135
6195
|
* Whether more results are available.
|
|
6136
6196
|
*/
|
|
6137
|
-
has_more
|
|
6138
|
-
items
|
|
6197
|
+
has_more: boolean;
|
|
6198
|
+
items: Array<ConversationFlowComponentResponse>;
|
|
6139
6199
|
/**
|
|
6140
6200
|
* Pagination key for the next page.
|
|
6141
6201
|
*/
|
|
@@ -6191,6 +6251,10 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
6191
6251
|
*/
|
|
6192
6252
|
allow_dtmf_interruption?: boolean | null;
|
|
6193
6253
|
always_edge?: ConversationNode.AlwaysEdge;
|
|
6254
|
+
/**
|
|
6255
|
+
* Custom transcription settings. Required when stt_mode is custom.
|
|
6256
|
+
*/
|
|
6257
|
+
custom_stt_config?: ConversationNode.CustomSttConfig | null;
|
|
6194
6258
|
/**
|
|
6195
6259
|
* Position for frontend display
|
|
6196
6260
|
*/
|
|
@@ -6227,6 +6291,12 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
6227
6291
|
reminder_trigger_ms?: number | null;
|
|
6228
6292
|
responsiveness?: number | null;
|
|
6229
6293
|
skip_response_edge?: ConversationNode.SkipResponseEdge;
|
|
6294
|
+
/**
|
|
6295
|
+
* Balance between speed and accuracy. Fast optimizes for speed using the provider
|
|
6296
|
+
* configuration, accurate optimizes for accuracy using the provider configuration,
|
|
6297
|
+
* and custom uses custom_stt_config.
|
|
6298
|
+
*/
|
|
6299
|
+
stt_mode?: 'fast' | 'accurate' | 'custom' | null;
|
|
6230
6300
|
voice_speed?: number | null;
|
|
6231
6301
|
}
|
|
6232
6302
|
namespace ConversationNode {
|
|
@@ -6300,6 +6370,20 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
6300
6370
|
type: 'prompt';
|
|
6301
6371
|
}
|
|
6302
6372
|
}
|
|
6373
|
+
/**
|
|
6374
|
+
* Custom transcription settings. Required when stt_mode is custom.
|
|
6375
|
+
*/
|
|
6376
|
+
interface CustomSttConfig {
|
|
6377
|
+
/**
|
|
6378
|
+
* Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
|
|
6379
|
+
* 500 for Soniox, and 100 for AssemblyAI.
|
|
6380
|
+
*/
|
|
6381
|
+
endpointing_ms: number;
|
|
6382
|
+
/**
|
|
6383
|
+
* ASR provider name.
|
|
6384
|
+
*/
|
|
6385
|
+
provider: 'azure' | 'deepgram' | 'soniox' | 'assemblyai';
|
|
6386
|
+
}
|
|
6303
6387
|
/**
|
|
6304
6388
|
* Position for frontend display
|
|
6305
6389
|
*/
|
|
@@ -6659,6 +6743,10 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
6659
6743
|
*/
|
|
6660
6744
|
allow_dtmf_interruption?: boolean | null;
|
|
6661
6745
|
always_edge?: SubagentNode.AlwaysEdge;
|
|
6746
|
+
/**
|
|
6747
|
+
* Custom transcription settings. Required when stt_mode is custom.
|
|
6748
|
+
*/
|
|
6749
|
+
custom_stt_config?: SubagentNode.CustomSttConfig | null;
|
|
6662
6750
|
/**
|
|
6663
6751
|
* Position for frontend display
|
|
6664
6752
|
*/
|
|
@@ -6695,6 +6783,12 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
6695
6783
|
reminder_trigger_ms?: number | null;
|
|
6696
6784
|
responsiveness?: number | null;
|
|
6697
6785
|
skip_response_edge?: SubagentNode.SkipResponseEdge;
|
|
6786
|
+
/**
|
|
6787
|
+
* Balance between speed and accuracy. Fast optimizes for speed using the provider
|
|
6788
|
+
* configuration, accurate optimizes for accuracy using the provider configuration,
|
|
6789
|
+
* and custom uses custom_stt_config.
|
|
6790
|
+
*/
|
|
6791
|
+
stt_mode?: 'fast' | 'accurate' | 'custom' | null;
|
|
6698
6792
|
/**
|
|
6699
6793
|
* The tool ids of the tools defined in main conversation flow or component that
|
|
6700
6794
|
* can be used in this subagent node.
|
|
@@ -6768,6 +6862,20 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
6768
6862
|
type: 'prompt';
|
|
6769
6863
|
}
|
|
6770
6864
|
}
|
|
6865
|
+
/**
|
|
6866
|
+
* Custom transcription settings. Required when stt_mode is custom.
|
|
6867
|
+
*/
|
|
6868
|
+
interface CustomSttConfig {
|
|
6869
|
+
/**
|
|
6870
|
+
* Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
|
|
6871
|
+
* 500 for Soniox, and 100 for AssemblyAI.
|
|
6872
|
+
*/
|
|
6873
|
+
endpointing_ms: number;
|
|
6874
|
+
/**
|
|
6875
|
+
* ASR provider name.
|
|
6876
|
+
*/
|
|
6877
|
+
provider: 'azure' | 'deepgram' | 'soniox' | 'assemblyai';
|
|
6878
|
+
}
|
|
6771
6879
|
/**
|
|
6772
6880
|
* Position for frontend display
|
|
6773
6881
|
*/
|
|
@@ -7435,6 +7543,9 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
7435
7543
|
}
|
|
7436
7544
|
}
|
|
7437
7545
|
}
|
|
7546
|
+
/**
|
|
7547
|
+
* @deprecated
|
|
7548
|
+
*/
|
|
7438
7549
|
interface CheckAvailabilityCalTool {
|
|
7439
7550
|
/**
|
|
7440
7551
|
* Cal.com Api key that have access to the cal.com event you want to check
|
|
@@ -7469,6 +7580,9 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
7469
7580
|
*/
|
|
7470
7581
|
timezone?: string;
|
|
7471
7582
|
}
|
|
7583
|
+
/**
|
|
7584
|
+
* @deprecated
|
|
7585
|
+
*/
|
|
7472
7586
|
interface BookAppointmentCalTool {
|
|
7473
7587
|
/**
|
|
7474
7588
|
* Cal.com Api key that have access to the cal.com event you want to book
|
|
@@ -12111,6 +12225,9 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
12111
12225
|
required?: Array<string>;
|
|
12112
12226
|
}
|
|
12113
12227
|
}
|
|
12228
|
+
/**
|
|
12229
|
+
* @deprecated
|
|
12230
|
+
*/
|
|
12114
12231
|
interface CheckAvailabilityCalTool {
|
|
12115
12232
|
/**
|
|
12116
12233
|
* Cal.com Api key that have access to the cal.com event you want to check
|
|
@@ -12149,6 +12266,9 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
12149
12266
|
*/
|
|
12150
12267
|
tool_id?: string;
|
|
12151
12268
|
}
|
|
12269
|
+
/**
|
|
12270
|
+
* @deprecated
|
|
12271
|
+
*/
|
|
12152
12272
|
interface BookAppointmentCalTool {
|
|
12153
12273
|
/**
|
|
12154
12274
|
* Cal.com Api key that have access to the cal.com event you want to book
|
|
@@ -12269,6 +12389,10 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
12269
12389
|
*/
|
|
12270
12390
|
allow_dtmf_interruption?: boolean | null;
|
|
12271
12391
|
always_edge?: ConversationNode.AlwaysEdge;
|
|
12392
|
+
/**
|
|
12393
|
+
* Custom transcription settings. Required when stt_mode is custom.
|
|
12394
|
+
*/
|
|
12395
|
+
custom_stt_config?: ConversationNode.CustomSttConfig | null;
|
|
12272
12396
|
/**
|
|
12273
12397
|
* Position for frontend display
|
|
12274
12398
|
*/
|
|
@@ -12305,6 +12429,12 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
12305
12429
|
reminder_trigger_ms?: number | null;
|
|
12306
12430
|
responsiveness?: number | null;
|
|
12307
12431
|
skip_response_edge?: ConversationNode.SkipResponseEdge;
|
|
12432
|
+
/**
|
|
12433
|
+
* Balance between speed and accuracy. Fast optimizes for speed using the provider
|
|
12434
|
+
* configuration, accurate optimizes for accuracy using the provider configuration,
|
|
12435
|
+
* and custom uses custom_stt_config.
|
|
12436
|
+
*/
|
|
12437
|
+
stt_mode?: 'fast' | 'accurate' | 'custom' | null;
|
|
12308
12438
|
voice_speed?: number | null;
|
|
12309
12439
|
}
|
|
12310
12440
|
namespace ConversationNode {
|
|
@@ -12378,6 +12508,20 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
12378
12508
|
type: 'prompt';
|
|
12379
12509
|
}
|
|
12380
12510
|
}
|
|
12511
|
+
/**
|
|
12512
|
+
* Custom transcription settings. Required when stt_mode is custom.
|
|
12513
|
+
*/
|
|
12514
|
+
interface CustomSttConfig {
|
|
12515
|
+
/**
|
|
12516
|
+
* Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
|
|
12517
|
+
* 500 for Soniox, and 100 for AssemblyAI.
|
|
12518
|
+
*/
|
|
12519
|
+
endpointing_ms: number;
|
|
12520
|
+
/**
|
|
12521
|
+
* ASR provider name.
|
|
12522
|
+
*/
|
|
12523
|
+
provider: 'azure' | 'deepgram' | 'soniox' | 'assemblyai';
|
|
12524
|
+
}
|
|
12381
12525
|
/**
|
|
12382
12526
|
* Position for frontend display
|
|
12383
12527
|
*/
|
|
@@ -12737,6 +12881,10 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
12737
12881
|
*/
|
|
12738
12882
|
allow_dtmf_interruption?: boolean | null;
|
|
12739
12883
|
always_edge?: SubagentNode.AlwaysEdge;
|
|
12884
|
+
/**
|
|
12885
|
+
* Custom transcription settings. Required when stt_mode is custom.
|
|
12886
|
+
*/
|
|
12887
|
+
custom_stt_config?: SubagentNode.CustomSttConfig | null;
|
|
12740
12888
|
/**
|
|
12741
12889
|
* Position for frontend display
|
|
12742
12890
|
*/
|
|
@@ -12773,6 +12921,12 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
12773
12921
|
reminder_trigger_ms?: number | null;
|
|
12774
12922
|
responsiveness?: number | null;
|
|
12775
12923
|
skip_response_edge?: SubagentNode.SkipResponseEdge;
|
|
12924
|
+
/**
|
|
12925
|
+
* Balance between speed and accuracy. Fast optimizes for speed using the provider
|
|
12926
|
+
* configuration, accurate optimizes for accuracy using the provider configuration,
|
|
12927
|
+
* and custom uses custom_stt_config.
|
|
12928
|
+
*/
|
|
12929
|
+
stt_mode?: 'fast' | 'accurate' | 'custom' | null;
|
|
12776
12930
|
/**
|
|
12777
12931
|
* The tool ids of the tools defined in main conversation flow or component that
|
|
12778
12932
|
* can be used in this subagent node.
|
|
@@ -12846,6 +13000,20 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
12846
13000
|
type: 'prompt';
|
|
12847
13001
|
}
|
|
12848
13002
|
}
|
|
13003
|
+
/**
|
|
13004
|
+
* Custom transcription settings. Required when stt_mode is custom.
|
|
13005
|
+
*/
|
|
13006
|
+
interface CustomSttConfig {
|
|
13007
|
+
/**
|
|
13008
|
+
* Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
|
|
13009
|
+
* 500 for Soniox, and 100 for AssemblyAI.
|
|
13010
|
+
*/
|
|
13011
|
+
endpointing_ms: number;
|
|
13012
|
+
/**
|
|
13013
|
+
* ASR provider name.
|
|
13014
|
+
*/
|
|
13015
|
+
provider: 'azure' | 'deepgram' | 'soniox' | 'assemblyai';
|
|
13016
|
+
}
|
|
12849
13017
|
/**
|
|
12850
13018
|
* Position for frontend display
|
|
12851
13019
|
*/
|
|
@@ -13513,6 +13681,9 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
13513
13681
|
}
|
|
13514
13682
|
}
|
|
13515
13683
|
}
|
|
13684
|
+
/**
|
|
13685
|
+
* @deprecated
|
|
13686
|
+
*/
|
|
13516
13687
|
interface CheckAvailabilityCalTool {
|
|
13517
13688
|
/**
|
|
13518
13689
|
* Cal.com Api key that have access to the cal.com event you want to check
|
|
@@ -13547,6 +13718,9 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
13547
13718
|
*/
|
|
13548
13719
|
timezone?: string;
|
|
13549
13720
|
}
|
|
13721
|
+
/**
|
|
13722
|
+
* @deprecated
|
|
13723
|
+
*/
|
|
13550
13724
|
interface BookAppointmentCalTool {
|
|
13551
13725
|
/**
|
|
13552
13726
|
* Cal.com Api key that have access to the cal.com event you want to book
|
|
@@ -18158,6 +18332,9 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
18158
18332
|
required?: Array<string>;
|
|
18159
18333
|
}
|
|
18160
18334
|
}
|
|
18335
|
+
/**
|
|
18336
|
+
* @deprecated
|
|
18337
|
+
*/
|
|
18161
18338
|
interface CheckAvailabilityCalTool {
|
|
18162
18339
|
/**
|
|
18163
18340
|
* Cal.com Api key that have access to the cal.com event you want to check
|
|
@@ -18196,6 +18373,9 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
18196
18373
|
*/
|
|
18197
18374
|
tool_id?: string;
|
|
18198
18375
|
}
|
|
18376
|
+
/**
|
|
18377
|
+
* @deprecated
|
|
18378
|
+
*/
|
|
18199
18379
|
interface BookAppointmentCalTool {
|
|
18200
18380
|
/**
|
|
18201
18381
|
* Cal.com Api key that have access to the cal.com event you want to book
|