retell-sdk 5.22.0 → 5.24.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 +16 -0
- package/client.d.mts +10 -10
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -10
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent.d.mts +17 -4
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +17 -4
- package/resources/agent.d.ts.map +1 -1
- package/resources/agent.js +15 -0
- package/resources/agent.js.map +1 -1
- package/resources/agent.mjs +15 -0
- package/resources/agent.mjs.map +1 -1
- package/resources/batch-call.d.mts +2 -2
- package/resources/batch-call.d.mts.map +1 -1
- package/resources/batch-call.d.ts +2 -2
- package/resources/batch-call.d.ts.map +1 -1
- package/resources/call.d.mts +1754 -120
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +1754 -120
- package/resources/call.d.ts.map +1 -1
- package/resources/call.js +7 -4
- package/resources/call.js.map +1 -1
- package/resources/call.mjs +7 -4
- package/resources/call.mjs.map +1 -1
- package/resources/chat-agent.d.mts +16 -1
- package/resources/chat-agent.d.mts.map +1 -1
- package/resources/chat-agent.d.ts +16 -1
- package/resources/chat-agent.d.ts.map +1 -1
- package/resources/chat-agent.js +17 -0
- package/resources/chat-agent.js.map +1 -1
- package/resources/chat-agent.mjs +17 -0
- package/resources/chat-agent.mjs.map +1 -1
- package/resources/chat.d.mts +38 -12
- package/resources/chat.d.mts.map +1 -1
- package/resources/chat.d.ts +38 -12
- package/resources/chat.d.ts.map +1 -1
- package/resources/chat.js +8 -5
- package/resources/chat.js.map +1 -1
- package/resources/chat.mjs +8 -5
- package/resources/chat.mjs.map +1 -1
- package/resources/conversation-flow-component.d.mts +33 -5
- package/resources/conversation-flow-component.d.mts.map +1 -1
- package/resources/conversation-flow-component.d.ts +33 -5
- package/resources/conversation-flow-component.d.ts.map +1 -1
- package/resources/conversation-flow-component.js +8 -4
- package/resources/conversation-flow-component.js.map +1 -1
- package/resources/conversation-flow-component.mjs +8 -4
- package/resources/conversation-flow-component.mjs.map +1 -1
- package/resources/conversation-flow.d.mts +21 -14
- package/resources/conversation-flow.d.mts.map +1 -1
- package/resources/conversation-flow.d.ts +21 -14
- package/resources/conversation-flow.d.ts.map +1 -1
- package/resources/conversation-flow.js +7 -3
- package/resources/conversation-flow.js.map +1 -1
- package/resources/conversation-flow.mjs +7 -3
- package/resources/conversation-flow.mjs.map +1 -1
- package/resources/index.d.mts +5 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/llm.d.mts +23 -15
- package/resources/llm.d.mts.map +1 -1
- package/resources/llm.d.ts +23 -15
- package/resources/llm.d.ts.map +1 -1
- package/resources/llm.js +6 -3
- package/resources/llm.js.map +1 -1
- package/resources/llm.mjs +6 -3
- package/resources/llm.mjs.map +1 -1
- package/resources/phone-number.d.mts +32 -5
- package/resources/phone-number.d.mts.map +1 -1
- package/resources/phone-number.d.ts +32 -5
- package/resources/phone-number.d.ts.map +1 -1
- package/resources/phone-number.js +7 -4
- package/resources/phone-number.js.map +1 -1
- package/resources/phone-number.mjs +7 -4
- package/resources/phone-number.mjs.map +1 -1
- package/resources/tests.d.mts +64 -14
- package/resources/tests.d.mts.map +1 -1
- package/resources/tests.d.ts +64 -14
- package/resources/tests.d.ts.map +1 -1
- package/resources/tests.js +7 -13
- package/resources/tests.js.map +1 -1
- package/resources/tests.mjs +7 -13
- package/resources/tests.mjs.map +1 -1
- package/src/client.ts +10 -0
- package/src/resources/agent.ts +29 -0
- package/src/resources/batch-call.ts +3 -1
- package/src/resources/call.ts +2207 -118
- package/src/resources/chat-agent.ts +25 -0
- package/src/resources/chat.ts +42 -17
- package/src/resources/conversation-flow-component.ts +42 -5
- package/src/resources/conversation-flow.ts +24 -15
- package/src/resources/index.ts +5 -0
- package/src/resources/llm.ts +26 -16
- package/src/resources/phone-number.ts +41 -5
- package/src/resources/tests.ts +83 -16
- 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
|
@@ -62,12 +62,16 @@ class ConversationFlowComponent extends resource_1.APIResource {
|
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
|
-
* List shared conversation flow components
|
|
65
|
+
* List shared conversation flow components with pagination
|
|
66
66
|
*
|
|
67
|
-
* @
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* const conversationFlowComponents =
|
|
70
|
+
* await client.conversationFlowComponent.list();
|
|
71
|
+
* ```
|
|
68
72
|
*/
|
|
69
|
-
list(options) {
|
|
70
|
-
return this._client.get('/list-conversation-flow-components', options);
|
|
73
|
+
list(query = {}, options) {
|
|
74
|
+
return this._client.get('/v2/list-conversation-flow-components', { query, ...options });
|
|
71
75
|
}
|
|
72
76
|
/**
|
|
73
77
|
* Delete a shared conversation flow component. When deleting a shared component,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-flow-component.js","sourceRoot":"","sources":["../src/resources/conversation-flow-component.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,yBAA0B,SAAQ,sBAAW;IACxD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CACJ,IAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CACN,2BAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oCAAoC,2BAA2B,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1G,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,2BAAmC,EACnC,IAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,uCAAuC,2BAA2B,EAAE,EAAE;YAClG,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"conversation-flow-component.js","sourceRoot":"","sources":["../src/resources/conversation-flow-component.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,yBAA0B,SAAQ,sBAAW;IACxD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CACJ,IAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CACN,2BAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oCAAoC,2BAA2B,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1G,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,2BAAmC,EACnC,IAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,uCAAuC,2BAA2B,EAAE,EAAE;YAClG,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,QAAgE,EAAE,EAClE,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uCAAuC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,2BAAmC,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,uCAAuC,2BAA2B,EAAE,EAAE;YACnG,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;CACF;AAtGD,8DAsGC"}
|
|
@@ -59,12 +59,16 @@ export class ConversationFlowComponent extends APIResource {
|
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
|
-
* List shared conversation flow components
|
|
62
|
+
* List shared conversation flow components with pagination
|
|
63
63
|
*
|
|
64
|
-
* @
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* const conversationFlowComponents =
|
|
67
|
+
* await client.conversationFlowComponent.list();
|
|
68
|
+
* ```
|
|
65
69
|
*/
|
|
66
|
-
list(options) {
|
|
67
|
-
return this._client.get('/list-conversation-flow-components', options);
|
|
70
|
+
list(query = {}, options) {
|
|
71
|
+
return this._client.get('/v2/list-conversation-flow-components', { query, ...options });
|
|
68
72
|
}
|
|
69
73
|
/**
|
|
70
74
|
* Delete a shared conversation flow component. When deleting a shared component,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-flow-component.mjs","sourceRoot":"","sources":["../src/resources/conversation-flow-component.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,yBAA0B,SAAQ,WAAW;IACxD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CACJ,IAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CACN,2BAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oCAAoC,2BAA2B,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1G,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,2BAAmC,EACnC,IAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,uCAAuC,2BAA2B,EAAE,EAAE;YAClG,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"conversation-flow-component.mjs","sourceRoot":"","sources":["../src/resources/conversation-flow-component.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,yBAA0B,SAAQ,WAAW;IACxD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CACJ,IAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CACN,2BAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oCAAoC,2BAA2B,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1G,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,2BAAmC,EACnC,IAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,uCAAuC,2BAA2B,EAAE,EAAE;YAClG,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,QAAgE,EAAE,EAClE,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uCAAuC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,2BAAmC,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,uCAAuC,2BAA2B,EAAE,EAAE;YACnG,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -51,9 +51,13 @@ export declare class ConversationFlow extends APIResource {
|
|
|
51
51
|
*/
|
|
52
52
|
update(conversationFlowID: string, params: ConversationFlowUpdateParams, options?: RequestOptions): APIPromise<ConversationFlowResponse>;
|
|
53
53
|
/**
|
|
54
|
-
* List
|
|
54
|
+
* List conversation flows with pagination
|
|
55
55
|
*
|
|
56
|
-
* @
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const conversationFlows =
|
|
59
|
+
* await client.conversationFlow.list();
|
|
60
|
+
* ```
|
|
57
61
|
*/
|
|
58
62
|
list(query?: ConversationFlowListParams | null | undefined, options?: RequestOptions): APIPromise<ConversationFlowListResponse>;
|
|
59
63
|
/**
|
|
@@ -11740,7 +11744,17 @@ export declare namespace ConversationFlowResponse {
|
|
|
11740
11744
|
tool_id?: string;
|
|
11741
11745
|
}
|
|
11742
11746
|
}
|
|
11743
|
-
export
|
|
11747
|
+
export interface ConversationFlowListResponse {
|
|
11748
|
+
/**
|
|
11749
|
+
* Whether more results are available.
|
|
11750
|
+
*/
|
|
11751
|
+
has_more?: boolean;
|
|
11752
|
+
items?: Array<ConversationFlowResponse>;
|
|
11753
|
+
/**
|
|
11754
|
+
* Pagination key for the next page.
|
|
11755
|
+
*/
|
|
11756
|
+
pagination_key?: string;
|
|
11757
|
+
}
|
|
11744
11758
|
export interface ConversationFlowCreateParams {
|
|
11745
11759
|
/**
|
|
11746
11760
|
* The model choice for the conversation flow.
|
|
@@ -35084,24 +35098,17 @@ export declare namespace ConversationFlowUpdateParams {
|
|
|
35084
35098
|
}
|
|
35085
35099
|
export interface ConversationFlowListParams {
|
|
35086
35100
|
/**
|
|
35087
|
-
*
|
|
35088
|
-
* retrieve more than 1000, use pagination_key to continue fetching the next page.
|
|
35101
|
+
* Maximum number of items to return.
|
|
35089
35102
|
*/
|
|
35090
35103
|
limit?: number;
|
|
35091
35104
|
/**
|
|
35092
|
-
*
|
|
35093
|
-
* Pagination key is represented by a conversation flow id here, and it's exclusive
|
|
35094
|
-
* (not included in the fetched conversation flows). The last conversation flow id
|
|
35095
|
-
* from the list conversation flows is usually used as pagination key here. If not
|
|
35096
|
-
* set, will start from the beginning.
|
|
35105
|
+
* Pagination key for fetching the next page.
|
|
35097
35106
|
*/
|
|
35098
35107
|
pagination_key?: string;
|
|
35099
35108
|
/**
|
|
35100
|
-
*
|
|
35101
|
-
* pagination_key. When paginating, both the pagination_key and its version must be
|
|
35102
|
-
* provided to ensure consistent ordering and to fetch the next page correctly.
|
|
35109
|
+
* Sort order for results.
|
|
35103
35110
|
*/
|
|
35104
|
-
|
|
35111
|
+
sort_order?: 'ascending' | 'descending';
|
|
35105
35112
|
}
|
|
35106
35113
|
export declare namespace ConversationFlow {
|
|
35107
35114
|
export { type ConversationFlowResponse as ConversationFlowResponse, type ConversationFlowListResponse as ConversationFlowListResponse, type ConversationFlowCreateParams as ConversationFlowCreateParams, type ConversationFlowRetrieveParams as ConversationFlowRetrieveParams, type ConversationFlowUpdateParams as ConversationFlowUpdateParams, type ConversationFlowListParams as ConversationFlowListParams, };
|