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/tests.d.ts
CHANGED
|
@@ -288,8 +288,8 @@ export interface TestListBatchTestsResponse {
|
|
|
288
288
|
/**
|
|
289
289
|
* Whether more results are available.
|
|
290
290
|
*/
|
|
291
|
-
has_more
|
|
292
|
-
items
|
|
291
|
+
has_more: boolean;
|
|
292
|
+
items: Array<BatchTestResponse>;
|
|
293
293
|
/**
|
|
294
294
|
* Pagination key for the next page.
|
|
295
295
|
*/
|
|
@@ -299,8 +299,8 @@ export interface TestListTestCaseDefinitionsResponse {
|
|
|
299
299
|
/**
|
|
300
300
|
* Whether more results are available.
|
|
301
301
|
*/
|
|
302
|
-
has_more
|
|
303
|
-
items
|
|
302
|
+
has_more: boolean;
|
|
303
|
+
items: Array<TestCaseDefinitionResponse>;
|
|
304
304
|
/**
|
|
305
305
|
* Pagination key for the next page.
|
|
306
306
|
*/
|
|
@@ -310,8 +310,8 @@ export interface TestListTestRunsResponse {
|
|
|
310
310
|
/**
|
|
311
311
|
* Whether more results are available.
|
|
312
312
|
*/
|
|
313
|
-
has_more
|
|
314
|
-
items
|
|
313
|
+
has_more: boolean;
|
|
314
|
+
items: Array<TestCaseJobResponse>;
|
|
315
315
|
/**
|
|
316
316
|
* Pagination key for the next page.
|
|
317
317
|
*/
|
package/resources/tests.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tests.d.ts","sourceRoot":"","sources":["../src/resources/tests.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,eAAe,CAAC,IAAI,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAIzG;;OAEG;IACH,wBAAwB,CACtB,IAAI,EAAE,kCAAkC,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;IAIzC;;OAEG;IACH,wBAAwB,CAAC,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOlG;;OAEG;IACH,YAAY,CAAC,kBAAkB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAIjG;;OAEG;IACH,qBAAqB,CACnB,oBAAoB,EAAE,MAAM,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;IAIzC;;OAEG;IACH,UAAU,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI5F;;OAEG;IACH,cAAc,CACZ,KAAK,EAAE,wBAAwB,EAC/B,OAAO,CAAC,EAAE,cAAc,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CAAC;SACb;QAED,UAAiB,YAAY;YAC3B;;;;eAIG;YACH,IAAI,EAAE,OAAO,CAAC;YAEd;;eAEG;YACH,IAAI,EAAE,eAAe,CAAC;SACvB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kCAAkC,IAAI,kCAAkC,GAC9E,CAAC;CACH"}
|
package/resources/voice.d.mts
CHANGED
|
@@ -32,7 +32,7 @@ export interface VoiceResponse {
|
|
|
32
32
|
/**
|
|
33
33
|
* Indicates the provider of voice.
|
|
34
34
|
*/
|
|
35
|
-
provider: 'elevenlabs' | 'openai' | 'cartesia' | 'minimax' | 'fish_audio' | 'platform';
|
|
35
|
+
provider: 'elevenlabs' | 'openai' | 'cartesia' | 'minimax' | 'fish_audio' | 'inworld' | 'platform';
|
|
36
36
|
/**
|
|
37
37
|
* Unique id for the voice.
|
|
38
38
|
*/
|
|
@@ -97,7 +97,7 @@ export interface VoiceAddResourceParams {
|
|
|
97
97
|
/**
|
|
98
98
|
* Voice provider to add the voice from.
|
|
99
99
|
*/
|
|
100
|
-
voice_provider?: 'elevenlabs' | 'cartesia' | 'minimax' | 'fish_audio';
|
|
100
|
+
voice_provider?: 'elevenlabs' | 'cartesia' | 'minimax' | 'fish_audio' | 'inworld';
|
|
101
101
|
}
|
|
102
102
|
export interface VoiceCloneParams {
|
|
103
103
|
/**
|
|
@@ -112,7 +112,7 @@ export interface VoiceCloneParams {
|
|
|
112
112
|
/**
|
|
113
113
|
* Voice provider to use for cloning.
|
|
114
114
|
*/
|
|
115
|
-
voice_provider: 'elevenlabs' | 'cartesia' | 'minimax' | 'fish_audio' | 'platform';
|
|
115
|
+
voice_provider: 'elevenlabs' | 'cartesia' | 'minimax' | 'fish_audio' | 'platform' | 'inworld';
|
|
116
116
|
}
|
|
117
117
|
export interface VoiceSearchParams {
|
|
118
118
|
/**
|
|
@@ -122,7 +122,7 @@ export interface VoiceSearchParams {
|
|
|
122
122
|
/**
|
|
123
123
|
* Voice provider to search.
|
|
124
124
|
*/
|
|
125
|
-
voice_provider?: 'elevenlabs' | 'cartesia' | 'minimax' | 'fish_audio';
|
|
125
|
+
voice_provider?: 'elevenlabs' | 'cartesia' | 'minimax' | 'fish_audio' | 'inworld';
|
|
126
126
|
}
|
|
127
127
|
export declare namespace Voice {
|
|
128
128
|
export { type VoiceResponse as VoiceResponse, type VoiceListResponse as VoiceListResponse, type VoiceSearchResponse as VoiceSearchResponse, type VoiceAddResourceParams as VoiceAddResourceParams, type VoiceCloneParams as VoiceCloneParams, type VoiceSearchParams as VoiceSearchParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice.d.mts","sourceRoot":"","sources":["../src/resources/voice.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,KAAK,UAAU,EAAE,4BAAwB;AAClD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAI7D,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;IAI9E;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,G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G,SAAS,GAAG,YAAY,GAAG,SAAS,CAAC;CACnF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAEzB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,EAAE,YAAY,GAAG,UAAU,GAAG,SAAS,GAAG,YAAY,GAAG,UAAU,GAAG,SAAS,CAAC;CAC/F;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,cAAc,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,CAAC;CACnF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/voice.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export interface VoiceResponse {
|
|
|
32
32
|
/**
|
|
33
33
|
* Indicates the provider of voice.
|
|
34
34
|
*/
|
|
35
|
-
provider: 'elevenlabs' | 'openai' | 'cartesia' | 'minimax' | 'fish_audio' | 'platform';
|
|
35
|
+
provider: 'elevenlabs' | 'openai' | 'cartesia' | 'minimax' | 'fish_audio' | 'inworld' | 'platform';
|
|
36
36
|
/**
|
|
37
37
|
* Unique id for the voice.
|
|
38
38
|
*/
|
|
@@ -97,7 +97,7 @@ export interface VoiceAddResourceParams {
|
|
|
97
97
|
/**
|
|
98
98
|
* Voice provider to add the voice from.
|
|
99
99
|
*/
|
|
100
|
-
voice_provider?: 'elevenlabs' | 'cartesia' | 'minimax' | 'fish_audio';
|
|
100
|
+
voice_provider?: 'elevenlabs' | 'cartesia' | 'minimax' | 'fish_audio' | 'inworld';
|
|
101
101
|
}
|
|
102
102
|
export interface VoiceCloneParams {
|
|
103
103
|
/**
|
|
@@ -112,7 +112,7 @@ export interface VoiceCloneParams {
|
|
|
112
112
|
/**
|
|
113
113
|
* Voice provider to use for cloning.
|
|
114
114
|
*/
|
|
115
|
-
voice_provider: 'elevenlabs' | 'cartesia' | 'minimax' | 'fish_audio' | 'platform';
|
|
115
|
+
voice_provider: 'elevenlabs' | 'cartesia' | 'minimax' | 'fish_audio' | 'platform' | 'inworld';
|
|
116
116
|
}
|
|
117
117
|
export interface VoiceSearchParams {
|
|
118
118
|
/**
|
|
@@ -122,7 +122,7 @@ export interface VoiceSearchParams {
|
|
|
122
122
|
/**
|
|
123
123
|
* Voice provider to search.
|
|
124
124
|
*/
|
|
125
|
-
voice_provider?: 'elevenlabs' | 'cartesia' | 'minimax' | 'fish_audio';
|
|
125
|
+
voice_provider?: 'elevenlabs' | 'cartesia' | 'minimax' | 'fish_audio' | 'inworld';
|
|
126
126
|
}
|
|
127
127
|
export declare namespace Voice {
|
|
128
128
|
export { type VoiceResponse as VoiceResponse, type VoiceListResponse as VoiceListResponse, type VoiceSearchResponse as VoiceSearchResponse, type VoiceAddResourceParams as VoiceAddResourceParams, type VoiceCloneParams as VoiceCloneParams, type VoiceSearchParams as VoiceSearchParams, };
|
package/resources/voice.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice.d.ts","sourceRoot":"","sources":["../src/resources/voice.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,KAAK,UAAU,EAAE,2BAAwB;AAClD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAI7D,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,QAAQ,CAAC,OAAO,E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U,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,cAAc,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,CAAC;CACnF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAEzB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,EAAE,YAAY,GAAG,UAAU,GAAG,SAAS,GAAG,YAAY,GAAG,UAAU,GAAG,SAAS,CAAC;CAC/F;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,cAAc,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,CAAC;CACnF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/src/client.ts
CHANGED
|
@@ -30,6 +30,8 @@ import {
|
|
|
30
30
|
AgentListVersionsParams,
|
|
31
31
|
AgentListVersionsResponse,
|
|
32
32
|
AgentPublishParams,
|
|
33
|
+
AgentRepairParams,
|
|
34
|
+
AgentRepairResponse,
|
|
33
35
|
AgentResponse,
|
|
34
36
|
AgentRetrieveParams,
|
|
35
37
|
AgentUpdateParams,
|
|
@@ -46,6 +48,7 @@ import {
|
|
|
46
48
|
AppTestAuthResponse,
|
|
47
49
|
AppUpdateParams,
|
|
48
50
|
} from './resources/app';
|
|
51
|
+
import { Asset, AssetCreateParams, AssetCreateResponse } from './resources/asset';
|
|
49
52
|
import { BatchCall, BatchCallCreateBatchCallParams, BatchCallResponse } from './resources/batch-call';
|
|
50
53
|
import {
|
|
51
54
|
Call,
|
|
@@ -53,11 +56,15 @@ import {
|
|
|
53
56
|
CallCreateWebCallParams,
|
|
54
57
|
CallListParams,
|
|
55
58
|
CallListResponse,
|
|
59
|
+
CallListenLiveResponse,
|
|
56
60
|
CallRegisterPhoneCallParams,
|
|
57
61
|
CallResponse,
|
|
62
|
+
CallTakeOverLiveParams,
|
|
63
|
+
CallTakeOverLiveResponse,
|
|
58
64
|
CallUpdateLiveParams,
|
|
59
65
|
CallUpdateLiveResponse,
|
|
60
66
|
CallUpdateParams,
|
|
67
|
+
CreateWebCallResponse,
|
|
61
68
|
PhoneCallResponse,
|
|
62
69
|
WebCallResponse,
|
|
63
70
|
} from './resources/call';
|
|
@@ -91,14 +98,19 @@ import {
|
|
|
91
98
|
Contact,
|
|
92
99
|
ContactBackfillAnalysisDataParams,
|
|
93
100
|
ContactBackfillAnalysisDataResponse,
|
|
101
|
+
ContactCreateImportParams,
|
|
102
|
+
ContactCreateImportResponse,
|
|
94
103
|
ContactCreateParams,
|
|
95
104
|
ContactGetBackfillJobStatusResponse,
|
|
105
|
+
ContactGetImportResponse,
|
|
96
106
|
ContactListConversationsParams,
|
|
97
107
|
ContactListConversationsResponse,
|
|
98
108
|
ContactListParams,
|
|
99
109
|
ContactListResponse,
|
|
100
110
|
ContactResponse,
|
|
101
111
|
ContactUpdateParams,
|
|
112
|
+
ContactUploadImportFileParams,
|
|
113
|
+
ContactUploadImportFileResponse,
|
|
102
114
|
} from './resources/contact';
|
|
103
115
|
import {
|
|
104
116
|
ConversationFlow,
|
|
@@ -923,6 +935,7 @@ export class Retell {
|
|
|
923
935
|
conversationFlowComponent: API.ConversationFlowComponent = new API.ConversationFlowComponent(this);
|
|
924
936
|
knowledgeBase: API.KnowledgeBase = new API.KnowledgeBase(this);
|
|
925
937
|
voice: API.Voice = new API.Voice(this);
|
|
938
|
+
asset: API.Asset = new API.Asset(this);
|
|
926
939
|
concurrency: API.Concurrency = new API.Concurrency(this);
|
|
927
940
|
identity: API.Identity = new API.Identity(this);
|
|
928
941
|
exportRequest: API.ExportRequest = new API.ExportRequest(this);
|
|
@@ -945,6 +958,7 @@ Retell.ConversationFlow = ConversationFlow;
|
|
|
945
958
|
Retell.ConversationFlowComponent = ConversationFlowComponent;
|
|
946
959
|
Retell.KnowledgeBase = KnowledgeBase;
|
|
947
960
|
Retell.Voice = Voice;
|
|
961
|
+
Retell.Asset = Asset;
|
|
948
962
|
Retell.Concurrency = Concurrency;
|
|
949
963
|
Retell.Identity = Identity;
|
|
950
964
|
Retell.ExportRequest = ExportRequest;
|
|
@@ -962,15 +976,19 @@ export declare namespace Retell {
|
|
|
962
976
|
export {
|
|
963
977
|
Call as Call,
|
|
964
978
|
type CallResponse as CallResponse,
|
|
979
|
+
type CreateWebCallResponse as CreateWebCallResponse,
|
|
965
980
|
type PhoneCallResponse as PhoneCallResponse,
|
|
966
981
|
type WebCallResponse as WebCallResponse,
|
|
967
982
|
type CallListResponse as CallListResponse,
|
|
983
|
+
type CallListenLiveResponse as CallListenLiveResponse,
|
|
984
|
+
type CallTakeOverLiveResponse as CallTakeOverLiveResponse,
|
|
968
985
|
type CallUpdateLiveResponse as CallUpdateLiveResponse,
|
|
969
986
|
type CallUpdateParams as CallUpdateParams,
|
|
970
987
|
type CallListParams as CallListParams,
|
|
971
988
|
type CallCreatePhoneCallParams as CallCreatePhoneCallParams,
|
|
972
989
|
type CallCreateWebCallParams as CallCreateWebCallParams,
|
|
973
990
|
type CallRegisterPhoneCallParams as CallRegisterPhoneCallParams,
|
|
991
|
+
type CallTakeOverLiveParams as CallTakeOverLiveParams,
|
|
974
992
|
type CallUpdateLiveParams as CallUpdateLiveParams,
|
|
975
993
|
};
|
|
976
994
|
|
|
@@ -1003,6 +1021,7 @@ export declare namespace Retell {
|
|
|
1003
1021
|
type AgentCreateVersionResponse as AgentCreateVersionResponse,
|
|
1004
1022
|
type AgentGetVersionsResponse as AgentGetVersionsResponse,
|
|
1005
1023
|
type AgentListVersionsResponse as AgentListVersionsResponse,
|
|
1024
|
+
type AgentRepairResponse as AgentRepairResponse,
|
|
1006
1025
|
type AgentCreateParams as AgentCreateParams,
|
|
1007
1026
|
type AgentRetrieveParams as AgentRetrieveParams,
|
|
1008
1027
|
type AgentUpdateParams as AgentUpdateParams,
|
|
@@ -1011,6 +1030,7 @@ export declare namespace Retell {
|
|
|
1011
1030
|
type AgentDeleteVersionParams as AgentDeleteVersionParams,
|
|
1012
1031
|
type AgentListVersionsParams as AgentListVersionsParams,
|
|
1013
1032
|
type AgentPublishParams as AgentPublishParams,
|
|
1033
|
+
type AgentRepairParams as AgentRepairParams,
|
|
1014
1034
|
};
|
|
1015
1035
|
|
|
1016
1036
|
export {
|
|
@@ -1078,6 +1098,12 @@ export declare namespace Retell {
|
|
|
1078
1098
|
type VoiceSearchParams as VoiceSearchParams,
|
|
1079
1099
|
};
|
|
1080
1100
|
|
|
1101
|
+
export {
|
|
1102
|
+
Asset as Asset,
|
|
1103
|
+
type AssetCreateResponse as AssetCreateResponse,
|
|
1104
|
+
type AssetCreateParams as AssetCreateParams,
|
|
1105
|
+
};
|
|
1106
|
+
|
|
1081
1107
|
export { Concurrency as Concurrency, type ConcurrencyRetrieveResponse as ConcurrencyRetrieveResponse };
|
|
1082
1108
|
|
|
1083
1109
|
export { Identity as Identity, type IdentityRetrieveResponse as IdentityRetrieveResponse };
|
|
@@ -1128,13 +1154,18 @@ export declare namespace Retell {
|
|
|
1128
1154
|
type ContactResponse as ContactResponse,
|
|
1129
1155
|
type ContactListResponse as ContactListResponse,
|
|
1130
1156
|
type ContactBackfillAnalysisDataResponse as ContactBackfillAnalysisDataResponse,
|
|
1157
|
+
type ContactCreateImportResponse as ContactCreateImportResponse,
|
|
1131
1158
|
type ContactGetBackfillJobStatusResponse as ContactGetBackfillJobStatusResponse,
|
|
1159
|
+
type ContactGetImportResponse as ContactGetImportResponse,
|
|
1132
1160
|
type ContactListConversationsResponse as ContactListConversationsResponse,
|
|
1161
|
+
type ContactUploadImportFileResponse as ContactUploadImportFileResponse,
|
|
1133
1162
|
type ContactCreateParams as ContactCreateParams,
|
|
1134
1163
|
type ContactUpdateParams as ContactUpdateParams,
|
|
1135
1164
|
type ContactListParams as ContactListParams,
|
|
1136
1165
|
type ContactBackfillAnalysisDataParams as ContactBackfillAnalysisDataParams,
|
|
1166
|
+
type ContactCreateImportParams as ContactCreateImportParams,
|
|
1137
1167
|
type ContactListConversationsParams as ContactListConversationsParams,
|
|
1168
|
+
type ContactUploadImportFileParams as ContactUploadImportFileParams,
|
|
1138
1169
|
};
|
|
1139
1170
|
|
|
1140
1171
|
export {
|
package/src/resources/agent.ts
CHANGED
|
@@ -157,8 +157,7 @@ export class Agent extends APIResource {
|
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
/**
|
|
160
|
-
* List stored versions of a voice or chat agent with pagination.
|
|
161
|
-
* such as assigned tags is not included.
|
|
160
|
+
* List stored versions of a voice or chat agent with pagination.
|
|
162
161
|
*
|
|
163
162
|
* @example
|
|
164
163
|
* ```ts
|
|
@@ -190,6 +189,31 @@ export class Agent extends APIResource {
|
|
|
190
189
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
191
190
|
});
|
|
192
191
|
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Remove references to resources that no longer exist in your workspace from an
|
|
195
|
+
* agent draft version and its response engine — tools whose app connection has
|
|
196
|
+
* been deleted, unknown knowledge bases, and deleted shared components — and remap
|
|
197
|
+
* voices that are no longer accessible to a default voice. If the agent's response
|
|
198
|
+
* engine version has been published, the engine is left untouched and only
|
|
199
|
+
* agent-level references are repaired. Repairing an agent with nothing to fix is a
|
|
200
|
+
* no-op.
|
|
201
|
+
*
|
|
202
|
+
* @example
|
|
203
|
+
* ```ts
|
|
204
|
+
* const response = await client.agent.repair(
|
|
205
|
+
* '16b980523634a6dc504898cda492e939',
|
|
206
|
+
* );
|
|
207
|
+
* ```
|
|
208
|
+
*/
|
|
209
|
+
repair(
|
|
210
|
+
agentID: string,
|
|
211
|
+
params: AgentRepairParams | null | undefined = {},
|
|
212
|
+
options?: RequestOptions,
|
|
213
|
+
): APIPromise<AgentRepairResponse> {
|
|
214
|
+
const { version } = params ?? {};
|
|
215
|
+
return this._client.post(path`/repair-agent/${agentID}`, { query: { version }, ...options });
|
|
216
|
+
}
|
|
193
217
|
}
|
|
194
218
|
|
|
195
219
|
export interface AgentResponse {
|
|
@@ -755,6 +779,7 @@ export interface AgentResponse {
|
|
|
755
779
|
| 'sonic-3'
|
|
756
780
|
| 'sonic-3-latest'
|
|
757
781
|
| 'sonic-3.5'
|
|
782
|
+
| 'sonic-3.6'
|
|
758
783
|
| 'tts-1'
|
|
759
784
|
| 'gpt-4o-mini-tts'
|
|
760
785
|
| 'speech-02-turbo'
|
|
@@ -762,6 +787,8 @@ export interface AgentResponse {
|
|
|
762
787
|
| 's1'
|
|
763
788
|
| 's2-pro'
|
|
764
789
|
| 's2.1-pro'
|
|
790
|
+
| 'inworld-tts-2'
|
|
791
|
+
| 'inworld-tts-2-flash'
|
|
765
792
|
| null;
|
|
766
793
|
|
|
767
794
|
/**
|
|
@@ -896,7 +923,9 @@ export namespace AgentResponse {
|
|
|
896
923
|
export interface CustomSttConfig {
|
|
897
924
|
/**
|
|
898
925
|
* Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
|
|
899
|
-
* 500 for Soniox, 100 for AssemblyAI.
|
|
926
|
+
* 500 for Soniox, 100 for AssemblyAI. For AssemblyAI, this sets min_turn_silence
|
|
927
|
+
* (100-3000 ms). max_turn_silence adds half of this value, rounded to the nearest
|
|
928
|
+
* millisecond and bounded to 500-1000 ms, with a total cap of 3000 ms.
|
|
900
929
|
*/
|
|
901
930
|
endpointing_ms: number;
|
|
902
931
|
|
|
@@ -1304,9 +1333,9 @@ export interface AgentListResponse {
|
|
|
1304
1333
|
/**
|
|
1305
1334
|
* Whether more results are available.
|
|
1306
1335
|
*/
|
|
1307
|
-
has_more
|
|
1336
|
+
has_more: boolean;
|
|
1308
1337
|
|
|
1309
|
-
items
|
|
1338
|
+
items: Array<AgentListResponse.Item>;
|
|
1310
1339
|
|
|
1311
1340
|
/**
|
|
1312
1341
|
* Pagination key for the next page.
|
|
@@ -1357,9 +1386,9 @@ export interface AgentListVersionsResponse {
|
|
|
1357
1386
|
/**
|
|
1358
1387
|
* Whether more results are available.
|
|
1359
1388
|
*/
|
|
1360
|
-
has_more
|
|
1389
|
+
has_more: boolean;
|
|
1361
1390
|
|
|
1362
|
-
items
|
|
1391
|
+
items: Array<AgentListVersionsResponse.Item>;
|
|
1363
1392
|
|
|
1364
1393
|
/**
|
|
1365
1394
|
* Pagination key for the next page.
|
|
@@ -1401,6 +1430,8 @@ export namespace AgentListVersionsResponse {
|
|
|
1401
1430
|
}
|
|
1402
1431
|
}
|
|
1403
1432
|
|
|
1433
|
+
export type AgentRepairResponse = AgentResponse | ChatAgentAPI.ChatAgentResponse;
|
|
1434
|
+
|
|
1404
1435
|
export interface AgentCreateParams {
|
|
1405
1436
|
/**
|
|
1406
1437
|
* The Response Engine to attach to the agent. It is used to generate responses for
|
|
@@ -1933,6 +1964,7 @@ export interface AgentCreateParams {
|
|
|
1933
1964
|
| 'sonic-3'
|
|
1934
1965
|
| 'sonic-3-latest'
|
|
1935
1966
|
| 'sonic-3.5'
|
|
1967
|
+
| 'sonic-3.6'
|
|
1936
1968
|
| 'tts-1'
|
|
1937
1969
|
| 'gpt-4o-mini-tts'
|
|
1938
1970
|
| 'speech-02-turbo'
|
|
@@ -1940,6 +1972,8 @@ export interface AgentCreateParams {
|
|
|
1940
1972
|
| 's1'
|
|
1941
1973
|
| 's2-pro'
|
|
1942
1974
|
| 's2.1-pro'
|
|
1975
|
+
| 'inworld-tts-2'
|
|
1976
|
+
| 'inworld-tts-2-flash'
|
|
1943
1977
|
| null;
|
|
1944
1978
|
|
|
1945
1979
|
/**
|
|
@@ -2074,7 +2108,9 @@ export namespace AgentCreateParams {
|
|
|
2074
2108
|
export interface CustomSttConfig {
|
|
2075
2109
|
/**
|
|
2076
2110
|
* Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
|
|
2077
|
-
* 500 for Soniox, 100 for AssemblyAI.
|
|
2111
|
+
* 500 for Soniox, 100 for AssemblyAI. For AssemblyAI, this sets min_turn_silence
|
|
2112
|
+
* (100-3000 ms). max_turn_silence adds half of this value, rounded to the nearest
|
|
2113
|
+
* millisecond and bounded to 500-1000 ms, with a total cap of 3000 ms.
|
|
2078
2114
|
*/
|
|
2079
2115
|
endpointing_ms: number;
|
|
2080
2116
|
|
|
@@ -3035,6 +3071,7 @@ export interface AgentUpdateParams {
|
|
|
3035
3071
|
| 'sonic-3'
|
|
3036
3072
|
| 'sonic-3-latest'
|
|
3037
3073
|
| 'sonic-3.5'
|
|
3074
|
+
| 'sonic-3.6'
|
|
3038
3075
|
| 'tts-1'
|
|
3039
3076
|
| 'gpt-4o-mini-tts'
|
|
3040
3077
|
| 'speech-02-turbo'
|
|
@@ -3042,6 +3079,8 @@ export interface AgentUpdateParams {
|
|
|
3042
3079
|
| 's1'
|
|
3043
3080
|
| 's2-pro'
|
|
3044
3081
|
| 's2.1-pro'
|
|
3082
|
+
| 'inworld-tts-2'
|
|
3083
|
+
| 'inworld-tts-2-flash'
|
|
3045
3084
|
| null;
|
|
3046
3085
|
|
|
3047
3086
|
/**
|
|
@@ -3130,7 +3169,9 @@ export namespace AgentUpdateParams {
|
|
|
3130
3169
|
export interface CustomSttConfig {
|
|
3131
3170
|
/**
|
|
3132
3171
|
* Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
|
|
3133
|
-
* 500 for Soniox, 100 for AssemblyAI.
|
|
3172
|
+
* 500 for Soniox, 100 for AssemblyAI. For AssemblyAI, this sets min_turn_silence
|
|
3173
|
+
* (100-3000 ms). max_turn_silence adds half of this value, rounded to the nearest
|
|
3174
|
+
* millisecond and bounded to 500-1000 ms, with a total cap of 3000 ms.
|
|
3134
3175
|
*/
|
|
3135
3176
|
endpointing_ms: number;
|
|
3136
3177
|
|
|
@@ -3673,6 +3714,14 @@ export interface AgentPublishParams {
|
|
|
3673
3714
|
version_title?: string;
|
|
3674
3715
|
}
|
|
3675
3716
|
|
|
3717
|
+
export interface AgentRepairParams {
|
|
3718
|
+
/**
|
|
3719
|
+
* Optional version of the agent to repair. Default to latest version. Published
|
|
3720
|
+
* versions are immutable and cannot be repaired.
|
|
3721
|
+
*/
|
|
3722
|
+
version?: string | number;
|
|
3723
|
+
}
|
|
3724
|
+
|
|
3676
3725
|
export declare namespace Agent {
|
|
3677
3726
|
export {
|
|
3678
3727
|
type AgentResponse as AgentResponse,
|
|
@@ -3680,6 +3729,7 @@ export declare namespace Agent {
|
|
|
3680
3729
|
type AgentCreateVersionResponse as AgentCreateVersionResponse,
|
|
3681
3730
|
type AgentGetVersionsResponse as AgentGetVersionsResponse,
|
|
3682
3731
|
type AgentListVersionsResponse as AgentListVersionsResponse,
|
|
3732
|
+
type AgentRepairResponse as AgentRepairResponse,
|
|
3683
3733
|
type AgentCreateParams as AgentCreateParams,
|
|
3684
3734
|
type AgentRetrieveParams as AgentRetrieveParams,
|
|
3685
3735
|
type AgentUpdateParams as AgentUpdateParams,
|
|
@@ -3688,5 +3738,6 @@ export declare namespace Agent {
|
|
|
3688
3738
|
type AgentDeleteVersionParams as AgentDeleteVersionParams,
|
|
3689
3739
|
type AgentListVersionsParams as AgentListVersionsParams,
|
|
3690
3740
|
type AgentPublishParams as AgentPublishParams,
|
|
3741
|
+
type AgentRepairParams as AgentRepairParams,
|
|
3691
3742
|
};
|
|
3692
3743
|
}
|
package/src/resources/app.ts
CHANGED
|
@@ -9,10 +9,10 @@ import { path } from '../internal/utils/path';
|
|
|
9
9
|
export class App extends APIResource {
|
|
10
10
|
/**
|
|
11
11
|
* Create an App: the connection to one external system (a CRM, calendar, support
|
|
12
|
-
* desk, and so on), holding its credentials and settings. Providers
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* returned. Up to 20 apps per provider.
|
|
12
|
+
* desk, and so on), holding its credentials and settings. Providers with
|
|
13
|
+
* caller-managed credentials accept auth_config. Providers using the OAuth
|
|
14
|
+
* callback must omit auth_config and be authorized through connect-app.
|
|
15
|
+
* Credentials are stored encrypted and never returned. Up to 20 apps per provider.
|
|
16
16
|
*/
|
|
17
17
|
create(body: AppCreateParams, options?: RequestOptions): APIPromise<AppResponse> {
|
|
18
18
|
return this._client.post('/create-app', { body, ...options });
|
|
@@ -20,7 +20,9 @@ export class App extends APIResource {
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Partially update an App. Omitted fields remain unchanged. Updating auth_config
|
|
23
|
-
* invalidates the cached provider token immediately.
|
|
23
|
+
* or tenant metadata invalidates the cached provider token immediately. Providers
|
|
24
|
+
* using the OAuth callback reject auth_config and must be reauthorized through
|
|
25
|
+
* connect-app.
|
|
24
26
|
*/
|
|
25
27
|
update(appID: string, body: AppUpdateParams, options?: RequestOptions): APIPromise<AppResponse> {
|
|
26
28
|
return this._client.patch(path`/update-app/${appID}`, { body, ...options });
|
|
@@ -127,9 +129,16 @@ export interface AppResponse {
|
|
|
127
129
|
*/
|
|
128
130
|
tenant_id?: string;
|
|
129
131
|
|
|
132
|
+
/**
|
|
133
|
+
* Microsoft OneDrive account type discovered during OAuth.
|
|
134
|
+
*/
|
|
135
|
+
tenant_type?: 'business' | 'personal';
|
|
136
|
+
|
|
130
137
|
/**
|
|
131
138
|
* Per-tenant API base URL. Set by providers with per-org hosts; omitted by
|
|
132
|
-
* providers on a single global host.
|
|
139
|
+
* providers on a single global host. For OneDrive for Business, this is the
|
|
140
|
+
* tenant's -my.sharepoint.com origin used by File Picker v8; personal OneDrive
|
|
141
|
+
* omits it.
|
|
133
142
|
*/
|
|
134
143
|
tenant_url?: string;
|
|
135
144
|
}
|
|
@@ -219,9 +228,9 @@ export interface AppListResponse {
|
|
|
219
228
|
/**
|
|
220
229
|
* Whether more results are available.
|
|
221
230
|
*/
|
|
222
|
-
has_more
|
|
231
|
+
has_more: boolean;
|
|
223
232
|
|
|
224
|
-
items
|
|
233
|
+
items: Array<AppResponse>;
|
|
225
234
|
|
|
226
235
|
/**
|
|
227
236
|
* Pagination key for the next page.
|
|
@@ -233,9 +242,9 @@ export interface AppListUsagesResponse {
|
|
|
233
242
|
/**
|
|
234
243
|
* Whether more results are available.
|
|
235
244
|
*/
|
|
236
|
-
has_more
|
|
245
|
+
has_more: boolean;
|
|
237
246
|
|
|
238
|
-
items
|
|
247
|
+
items: Array<AppListUsagesResponse.AgentAppUsage | AppListUsagesResponse.KnowledgeBaseAppUsage>;
|
|
239
248
|
|
|
240
249
|
/**
|
|
241
250
|
* Pagination key for the next page.
|
|
@@ -298,12 +307,14 @@ export interface AppCreateParams {
|
|
|
298
307
|
*/
|
|
299
308
|
type: 'crm' | 'calendar' | 'knowledge_base' | 'support' | 'communication';
|
|
300
309
|
|
|
310
|
+
/**
|
|
311
|
+
* Caller-managed credentials. Providers using the OAuth callback reject
|
|
312
|
+
* auth_config and must be authorized through connect-app.
|
|
313
|
+
*/
|
|
301
314
|
auth_config?:
|
|
302
315
|
| AppCreateParams.OAuthConfigRequest
|
|
303
316
|
| AppCreateParams.APIKeyAuthConfigRequest
|
|
304
|
-
| AppCreateParams.
|
|
305
|
-
| AppCreateParams.BasicAuthConfigRequest
|
|
306
|
-
| AppCreateParams.RefreshTokenAuthConfigRequest;
|
|
317
|
+
| AppCreateParams.BasicAuthConfigRequest;
|
|
307
318
|
|
|
308
319
|
crm_config?: AppCreateParams.CRMConfig;
|
|
309
320
|
|
|
@@ -345,17 +356,6 @@ export namespace AppCreateParams {
|
|
|
345
356
|
type: 'api_key';
|
|
346
357
|
}
|
|
347
358
|
|
|
348
|
-
export interface AccessTokenAuthConfigRequest {
|
|
349
|
-
/**
|
|
350
|
-
* OAuth-obtained access token used directly as a static bearer secret; stored
|
|
351
|
-
* encrypted at rest. An alternative to the OAuth connect flow, which persists the
|
|
352
|
-
* same config.
|
|
353
|
-
*/
|
|
354
|
-
access_token: string;
|
|
355
|
-
|
|
356
|
-
type: 'access_token';
|
|
357
|
-
}
|
|
358
|
-
|
|
359
359
|
export interface BasicAuthConfigRequest {
|
|
360
360
|
/**
|
|
361
361
|
* Password credential; stored encrypted at rest.
|
|
@@ -367,16 +367,6 @@ export namespace AppCreateParams {
|
|
|
367
367
|
username: string;
|
|
368
368
|
}
|
|
369
369
|
|
|
370
|
-
export interface RefreshTokenAuthConfigRequest {
|
|
371
|
-
/**
|
|
372
|
-
* OAuth refresh token; stored encrypted at rest. An alternative to the OAuth
|
|
373
|
-
* connect flow, which persists the same config.
|
|
374
|
-
*/
|
|
375
|
-
refresh_token: string;
|
|
376
|
-
|
|
377
|
-
type: 'refresh_token';
|
|
378
|
-
}
|
|
379
|
-
|
|
380
370
|
export interface CRMConfig {
|
|
381
371
|
/**
|
|
382
372
|
* Field mappings applied when syncing CRM records into Retell contacts. Must
|
|
@@ -434,12 +424,14 @@ export namespace AppCreateParams {
|
|
|
434
424
|
}
|
|
435
425
|
|
|
436
426
|
export interface AppUpdateParams {
|
|
427
|
+
/**
|
|
428
|
+
* Caller-managed credentials. Providers using the OAuth callback reject
|
|
429
|
+
* auth_config and must be authorized through connect-app.
|
|
430
|
+
*/
|
|
437
431
|
auth_config?:
|
|
438
432
|
| AppUpdateParams.OAuthConfigRequest
|
|
439
433
|
| AppUpdateParams.APIKeyAuthConfigRequest
|
|
440
|
-
| AppUpdateParams.
|
|
441
|
-
| AppUpdateParams.BasicAuthConfigRequest
|
|
442
|
-
| AppUpdateParams.RefreshTokenAuthConfigRequest;
|
|
434
|
+
| AppUpdateParams.BasicAuthConfigRequest;
|
|
443
435
|
|
|
444
436
|
crm_config?: AppUpdateParams.CRMConfig;
|
|
445
437
|
|
|
@@ -478,17 +470,6 @@ export namespace AppUpdateParams {
|
|
|
478
470
|
type: 'api_key';
|
|
479
471
|
}
|
|
480
472
|
|
|
481
|
-
export interface AccessTokenAuthConfigRequest {
|
|
482
|
-
/**
|
|
483
|
-
* OAuth-obtained access token used directly as a static bearer secret; stored
|
|
484
|
-
* encrypted at rest. An alternative to the OAuth connect flow, which persists the
|
|
485
|
-
* same config.
|
|
486
|
-
*/
|
|
487
|
-
access_token: string;
|
|
488
|
-
|
|
489
|
-
type: 'access_token';
|
|
490
|
-
}
|
|
491
|
-
|
|
492
473
|
export interface BasicAuthConfigRequest {
|
|
493
474
|
/**
|
|
494
475
|
* Password credential; stored encrypted at rest.
|
|
@@ -500,16 +481,6 @@ export namespace AppUpdateParams {
|
|
|
500
481
|
username: string;
|
|
501
482
|
}
|
|
502
483
|
|
|
503
|
-
export interface RefreshTokenAuthConfigRequest {
|
|
504
|
-
/**
|
|
505
|
-
* OAuth refresh token; stored encrypted at rest. An alternative to the OAuth
|
|
506
|
-
* connect flow, which persists the same config.
|
|
507
|
-
*/
|
|
508
|
-
refresh_token: string;
|
|
509
|
-
|
|
510
|
-
type: 'refresh_token';
|
|
511
|
-
}
|
|
512
|
-
|
|
513
484
|
export interface CRMConfig {
|
|
514
485
|
/**
|
|
515
486
|
* Field mappings applied when syncing CRM records into Retell contacts. Must
|