retell-sdk 5.22.0 → 5.23.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 +8 -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 +14 -1
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +14 -1
- 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/call.d.mts +559 -74
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +559 -74
- 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 +20 -12
- package/resources/llm.d.mts.map +1 -1
- package/resources/llm.d.ts +20 -12
- 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 +23 -0
- package/src/resources/call.ts +766 -104
- 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 +23 -13
- 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
|
@@ -107,6 +107,24 @@ export class ChatAgent extends APIResource {
|
|
|
107
107
|
getVersions(agentID: string, options?: RequestOptions): APIPromise<ChatAgentGetVersionsResponse> {
|
|
108
108
|
return this._client.get(path`/get-chat-agent-versions/${agentID}`, options);
|
|
109
109
|
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Publish an existing draft version in place.
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* ```ts
|
|
116
|
+
* await client.chatAgent.publish('agent_xxx', {
|
|
117
|
+
* version: 15,
|
|
118
|
+
* });
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
publish(agentID: string, body: ChatAgentPublishParams, options?: RequestOptions): APIPromise<void> {
|
|
122
|
+
return this._client.post(path`/publish-agent-version/${agentID}`, {
|
|
123
|
+
body,
|
|
124
|
+
...options,
|
|
125
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
126
|
+
});
|
|
127
|
+
}
|
|
110
128
|
}
|
|
111
129
|
|
|
112
130
|
export interface ChatAgentResponse {
|
|
@@ -1978,6 +1996,12 @@ export interface ChatAgentListParams {
|
|
|
1978
1996
|
pagination_key_version?: number;
|
|
1979
1997
|
}
|
|
1980
1998
|
|
|
1999
|
+
export interface ChatAgentPublishParams {
|
|
2000
|
+
version: number;
|
|
2001
|
+
|
|
2002
|
+
version_description?: string;
|
|
2003
|
+
}
|
|
2004
|
+
|
|
1981
2005
|
export declare namespace ChatAgent {
|
|
1982
2006
|
export {
|
|
1983
2007
|
type ChatAgentResponse as ChatAgentResponse,
|
|
@@ -1987,5 +2011,6 @@ export declare namespace ChatAgent {
|
|
|
1987
2011
|
type ChatAgentRetrieveParams as ChatAgentRetrieveParams,
|
|
1988
2012
|
type ChatAgentUpdateParams as ChatAgentUpdateParams,
|
|
1989
2013
|
type ChatAgentListParams as ChatAgentListParams,
|
|
2014
|
+
type ChatAgentPublishParams as ChatAgentPublishParams,
|
|
1990
2015
|
};
|
|
1991
2016
|
}
|
package/src/resources/chat.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as ChatAPI from './chat';
|
|
4
5
|
import { APIPromise } from '../core/api-promise';
|
|
5
6
|
import { buildHeaders } from '../internal/headers';
|
|
6
7
|
import { RequestOptions } from '../internal/request-options';
|
|
@@ -60,16 +61,16 @@ export class Chat extends APIResource {
|
|
|
60
61
|
}
|
|
61
62
|
|
|
62
63
|
/**
|
|
63
|
-
* List
|
|
64
|
+
* List chats with unified cursor pagination response.
|
|
64
65
|
*
|
|
65
|
-
* @
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* const chats = await client.chat.list();
|
|
69
|
+
* ```
|
|
66
70
|
*/
|
|
67
|
-
list(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
): APIPromise<ChatListResponse> {
|
|
71
|
-
return this._client.get('/list-chat', {
|
|
72
|
-
query,
|
|
71
|
+
list(body: ChatListParams | null | undefined = {}, options?: RequestOptions): APIPromise<ChatListResponse> {
|
|
72
|
+
return this._client.post('/v3/list-chats', {
|
|
73
|
+
body,
|
|
73
74
|
timeout: (this._client as any)._options.timeout ?? 300000,
|
|
74
75
|
...options,
|
|
75
76
|
});
|
|
@@ -470,7 +471,26 @@ export namespace ChatResponse {
|
|
|
470
471
|
}
|
|
471
472
|
}
|
|
472
473
|
|
|
473
|
-
export
|
|
474
|
+
export interface ChatListResponse {
|
|
475
|
+
/**
|
|
476
|
+
* Whether more results are available.
|
|
477
|
+
*/
|
|
478
|
+
has_more?: boolean;
|
|
479
|
+
|
|
480
|
+
items?: Array<ChatListResponse.Item>;
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* Pagination key for the next page.
|
|
484
|
+
*/
|
|
485
|
+
pagination_key?: string;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
export namespace ChatListResponse {
|
|
489
|
+
/**
|
|
490
|
+
* V3 list chats response. Transcript fields are intentionally omitted.
|
|
491
|
+
*/
|
|
492
|
+
export interface Item extends ChatAPI.ChatResponse {}
|
|
493
|
+
}
|
|
474
494
|
|
|
475
495
|
export interface ChatCreateChatCompletionResponse {
|
|
476
496
|
/**
|
|
@@ -712,22 +732,27 @@ export interface ChatUpdateParams {
|
|
|
712
732
|
|
|
713
733
|
export interface ChatListParams {
|
|
714
734
|
/**
|
|
715
|
-
*
|
|
716
|
-
|
|
735
|
+
* Filter criteria for chats to retrieve.
|
|
736
|
+
*/
|
|
737
|
+
filter_criteria?: { [key: string]: unknown };
|
|
738
|
+
|
|
739
|
+
/**
|
|
740
|
+
* Maximum number of chats to return.
|
|
717
741
|
*/
|
|
718
742
|
limit?: number;
|
|
719
743
|
|
|
720
744
|
/**
|
|
721
|
-
*
|
|
722
|
-
* is represented by a chat id here, and it's exclusive (not included in the
|
|
723
|
-
* fetched chats). The last chat id from the list chats is usually used as
|
|
724
|
-
* pagination key here. If not set, will start from the beginning.
|
|
745
|
+
* Opaque pagination cursor from a previous response.
|
|
725
746
|
*/
|
|
726
747
|
pagination_key?: string;
|
|
727
748
|
|
|
728
749
|
/**
|
|
729
|
-
*
|
|
730
|
-
|
|
750
|
+
* Number of records to skip for pagination.
|
|
751
|
+
*/
|
|
752
|
+
skip?: number;
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* Sort chats by `start_timestamp` in ascending or descending order.
|
|
731
756
|
*/
|
|
732
757
|
sort_order?: 'ascending' | 'descending';
|
|
733
758
|
}
|
|
@@ -76,12 +76,19 @@ export class ConversationFlowComponent extends APIResource {
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
|
-
* List shared conversation flow components
|
|
79
|
+
* List shared conversation flow components with pagination
|
|
80
80
|
*
|
|
81
|
-
* @
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* const conversationFlowComponents =
|
|
84
|
+
* await client.conversationFlowComponent.list();
|
|
85
|
+
* ```
|
|
82
86
|
*/
|
|
83
|
-
list(
|
|
84
|
-
|
|
87
|
+
list(
|
|
88
|
+
query: ConversationFlowComponentListParams | null | undefined = {},
|
|
89
|
+
options?: RequestOptions,
|
|
90
|
+
): APIPromise<ConversationFlowComponentListResponse> {
|
|
91
|
+
return this._client.get('/v2/list-conversation-flow-components', { query, ...options });
|
|
85
92
|
}
|
|
86
93
|
|
|
87
94
|
/**
|
|
@@ -8339,7 +8346,19 @@ export namespace ConversationFlowComponentResponse {
|
|
|
8339
8346
|
}
|
|
8340
8347
|
}
|
|
8341
8348
|
|
|
8342
|
-
export
|
|
8349
|
+
export interface ConversationFlowComponentListResponse {
|
|
8350
|
+
/**
|
|
8351
|
+
* Whether more results are available.
|
|
8352
|
+
*/
|
|
8353
|
+
has_more?: boolean;
|
|
8354
|
+
|
|
8355
|
+
items?: Array<ConversationFlowComponentResponse>;
|
|
8356
|
+
|
|
8357
|
+
/**
|
|
8358
|
+
* Pagination key for the next page.
|
|
8359
|
+
*/
|
|
8360
|
+
pagination_key?: string;
|
|
8361
|
+
}
|
|
8343
8362
|
|
|
8344
8363
|
export interface ConversationFlowComponentCreateParams {
|
|
8345
8364
|
/**
|
|
@@ -24783,11 +24802,29 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
24783
24802
|
}
|
|
24784
24803
|
}
|
|
24785
24804
|
|
|
24805
|
+
export interface ConversationFlowComponentListParams {
|
|
24806
|
+
/**
|
|
24807
|
+
* Maximum number of items to return.
|
|
24808
|
+
*/
|
|
24809
|
+
limit?: number;
|
|
24810
|
+
|
|
24811
|
+
/**
|
|
24812
|
+
* Pagination key for fetching the next page.
|
|
24813
|
+
*/
|
|
24814
|
+
pagination_key?: string;
|
|
24815
|
+
|
|
24816
|
+
/**
|
|
24817
|
+
* Sort order for results.
|
|
24818
|
+
*/
|
|
24819
|
+
sort_order?: 'ascending' | 'descending';
|
|
24820
|
+
}
|
|
24821
|
+
|
|
24786
24822
|
export declare namespace ConversationFlowComponent {
|
|
24787
24823
|
export {
|
|
24788
24824
|
type ConversationFlowComponentResponse as ConversationFlowComponentResponse,
|
|
24789
24825
|
type ConversationFlowComponentListResponse as ConversationFlowComponentListResponse,
|
|
24790
24826
|
type ConversationFlowComponentCreateParams as ConversationFlowComponentCreateParams,
|
|
24791
24827
|
type ConversationFlowComponentUpdateParams as ConversationFlowComponentUpdateParams,
|
|
24828
|
+
type ConversationFlowComponentListParams as ConversationFlowComponentListParams,
|
|
24792
24829
|
};
|
|
24793
24830
|
}
|
|
@@ -78,15 +78,19 @@ export class ConversationFlow extends APIResource {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
/**
|
|
81
|
-
* List
|
|
81
|
+
* List conversation flows with pagination
|
|
82
82
|
*
|
|
83
|
-
* @
|
|
83
|
+
* @example
|
|
84
|
+
* ```ts
|
|
85
|
+
* const conversationFlows =
|
|
86
|
+
* await client.conversationFlow.list();
|
|
87
|
+
* ```
|
|
84
88
|
*/
|
|
85
89
|
list(
|
|
86
90
|
query: ConversationFlowListParams | null | undefined = {},
|
|
87
91
|
options?: RequestOptions,
|
|
88
92
|
): APIPromise<ConversationFlowListResponse> {
|
|
89
|
-
return this._client.get('/list-conversation-flows', { query, ...options });
|
|
93
|
+
return this._client.get('/v2/list-conversation-flows', { query, ...options });
|
|
90
94
|
}
|
|
91
95
|
|
|
92
96
|
/**
|
|
@@ -16666,7 +16670,19 @@ export namespace ConversationFlowResponse {
|
|
|
16666
16670
|
}
|
|
16667
16671
|
}
|
|
16668
16672
|
|
|
16669
|
-
export
|
|
16673
|
+
export interface ConversationFlowListResponse {
|
|
16674
|
+
/**
|
|
16675
|
+
* Whether more results are available.
|
|
16676
|
+
*/
|
|
16677
|
+
has_more?: boolean;
|
|
16678
|
+
|
|
16679
|
+
items?: Array<ConversationFlowResponse>;
|
|
16680
|
+
|
|
16681
|
+
/**
|
|
16682
|
+
* Pagination key for the next page.
|
|
16683
|
+
*/
|
|
16684
|
+
pagination_key?: string;
|
|
16685
|
+
}
|
|
16670
16686
|
|
|
16671
16687
|
export interface ConversationFlowCreateParams {
|
|
16672
16688
|
/**
|
|
@@ -49783,26 +49799,19 @@ export namespace ConversationFlowUpdateParams {
|
|
|
49783
49799
|
|
|
49784
49800
|
export interface ConversationFlowListParams {
|
|
49785
49801
|
/**
|
|
49786
|
-
*
|
|
49787
|
-
* retrieve more than 1000, use pagination_key to continue fetching the next page.
|
|
49802
|
+
* Maximum number of items to return.
|
|
49788
49803
|
*/
|
|
49789
49804
|
limit?: number;
|
|
49790
49805
|
|
|
49791
49806
|
/**
|
|
49792
|
-
*
|
|
49793
|
-
* Pagination key is represented by a conversation flow id here, and it's exclusive
|
|
49794
|
-
* (not included in the fetched conversation flows). The last conversation flow id
|
|
49795
|
-
* from the list conversation flows is usually used as pagination key here. If not
|
|
49796
|
-
* set, will start from the beginning.
|
|
49807
|
+
* Pagination key for fetching the next page.
|
|
49797
49808
|
*/
|
|
49798
49809
|
pagination_key?: string;
|
|
49799
49810
|
|
|
49800
49811
|
/**
|
|
49801
|
-
*
|
|
49802
|
-
* pagination_key. When paginating, both the pagination_key and its version must be
|
|
49803
|
-
* provided to ensure consistent ordering and to fetch the next page correctly.
|
|
49812
|
+
* Sort order for results.
|
|
49804
49813
|
*/
|
|
49805
|
-
|
|
49814
|
+
sort_order?: 'ascending' | 'descending';
|
|
49806
49815
|
}
|
|
49807
49816
|
|
|
49808
49817
|
export declare namespace ConversationFlow {
|
package/src/resources/index.ts
CHANGED
|
@@ -9,6 +9,7 @@ export {
|
|
|
9
9
|
type AgentRetrieveParams,
|
|
10
10
|
type AgentUpdateParams,
|
|
11
11
|
type AgentListParams,
|
|
12
|
+
type AgentPublishParams,
|
|
12
13
|
} from './agent';
|
|
13
14
|
export { BatchCall, type BatchCallResponse, type BatchCallCreateBatchCallParams } from './batch-call';
|
|
14
15
|
export {
|
|
@@ -43,6 +44,7 @@ export {
|
|
|
43
44
|
type ChatAgentRetrieveParams,
|
|
44
45
|
type ChatAgentUpdateParams,
|
|
45
46
|
type ChatAgentListParams,
|
|
47
|
+
type ChatAgentPublishParams,
|
|
46
48
|
} from './chat-agent';
|
|
47
49
|
export { Concurrency, type ConcurrencyRetrieveResponse } from './concurrency';
|
|
48
50
|
export {
|
|
@@ -60,6 +62,7 @@ export {
|
|
|
60
62
|
type ConversationFlowComponentListResponse,
|
|
61
63
|
type ConversationFlowComponentCreateParams,
|
|
62
64
|
type ConversationFlowComponentUpdateParams,
|
|
65
|
+
type ConversationFlowComponentListParams,
|
|
63
66
|
} from './conversation-flow-component';
|
|
64
67
|
export {
|
|
65
68
|
ExportRequest,
|
|
@@ -95,6 +98,7 @@ export {
|
|
|
95
98
|
type PhoneNumberListResponse,
|
|
96
99
|
type PhoneNumberCreateParams,
|
|
97
100
|
type PhoneNumberUpdateParams,
|
|
101
|
+
type PhoneNumberListParams,
|
|
98
102
|
type PhoneNumberImportParams,
|
|
99
103
|
} from './phone-number';
|
|
100
104
|
export { Playground, type PlaygroundCompletionResponse, type PlaygroundCompletionParams } from './playground';
|
|
@@ -110,6 +114,7 @@ export {
|
|
|
110
114
|
type TestCreateTestCaseDefinitionParams,
|
|
111
115
|
type TestListBatchTestsParams,
|
|
112
116
|
type TestListTestCaseDefinitionsParams,
|
|
117
|
+
type TestListTestRunsParams,
|
|
113
118
|
type TestUpdateTestCaseDefinitionParams,
|
|
114
119
|
} from './tests';
|
|
115
120
|
export {
|
package/src/resources/llm.ts
CHANGED
|
@@ -62,12 +62,15 @@ export class Llm extends APIResource {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
|
-
* List
|
|
65
|
+
* List Retell LLM Response Engines with pagination
|
|
66
66
|
*
|
|
67
|
-
* @
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* const llms = await client.llm.list();
|
|
70
|
+
* ```
|
|
68
71
|
*/
|
|
69
72
|
list(query: LlmListParams | null | undefined = {}, options?: RequestOptions): APIPromise<LlmListResponse> {
|
|
70
|
-
return this._client.get('/list-retell-llms', { query, ...options });
|
|
73
|
+
return this._client.get('/v2/list-retell-llms', { query, ...options });
|
|
71
74
|
}
|
|
72
75
|
|
|
73
76
|
/**
|
|
@@ -2641,7 +2644,19 @@ export namespace LlmResponse {
|
|
|
2641
2644
|
}
|
|
2642
2645
|
}
|
|
2643
2646
|
|
|
2644
|
-
export
|
|
2647
|
+
export interface LlmListResponse {
|
|
2648
|
+
/**
|
|
2649
|
+
* Whether more results are available.
|
|
2650
|
+
*/
|
|
2651
|
+
has_more?: boolean;
|
|
2652
|
+
|
|
2653
|
+
items?: Array<LlmResponse>;
|
|
2654
|
+
|
|
2655
|
+
/**
|
|
2656
|
+
* Pagination key for the next page.
|
|
2657
|
+
*/
|
|
2658
|
+
pagination_key?: string;
|
|
2659
|
+
}
|
|
2645
2660
|
|
|
2646
2661
|
export interface LlmCreateParams {
|
|
2647
2662
|
/**
|
|
@@ -7739,24 +7754,19 @@ export namespace LlmUpdateParams {
|
|
|
7739
7754
|
|
|
7740
7755
|
export interface LlmListParams {
|
|
7741
7756
|
/**
|
|
7742
|
-
*
|
|
7743
|
-
* 1000, and the default is 1000.
|
|
7757
|
+
* Maximum number of items to return.
|
|
7744
7758
|
*/
|
|
7745
7759
|
limit?: number;
|
|
7746
7760
|
|
|
7747
7761
|
/**
|
|
7748
|
-
*
|
|
7749
|
-
* represented by a llm id, pagination key and version pair is exclusive (not
|
|
7750
|
-
* included in the fetched page). If not set, will start from the beginning.
|
|
7762
|
+
* Pagination key for fetching the next page.
|
|
7751
7763
|
*/
|
|
7752
7764
|
pagination_key?: string;
|
|
7753
7765
|
|
|
7754
7766
|
/**
|
|
7755
|
-
*
|
|
7756
|
-
* paginating, both the pagination_key and its version must be provided to ensure
|
|
7757
|
-
* consistent ordering and to fetch the next page correctly.
|
|
7767
|
+
* Sort order for results.
|
|
7758
7768
|
*/
|
|
7759
|
-
|
|
7769
|
+
sort_order?: 'ascending' | 'descending';
|
|
7760
7770
|
}
|
|
7761
7771
|
|
|
7762
7772
|
export declare namespace Llm {
|
|
@@ -69,12 +69,18 @@ export class PhoneNumber extends APIResource {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
|
-
* List
|
|
72
|
+
* List phone numbers with pagination
|
|
73
73
|
*
|
|
74
|
-
* @
|
|
74
|
+
* @example
|
|
75
|
+
* ```ts
|
|
76
|
+
* const phoneNumbers = await client.phoneNumber.list();
|
|
77
|
+
* ```
|
|
75
78
|
*/
|
|
76
|
-
list(
|
|
77
|
-
|
|
79
|
+
list(
|
|
80
|
+
query: PhoneNumberListParams | null | undefined = {},
|
|
81
|
+
options?: RequestOptions,
|
|
82
|
+
): APIPromise<PhoneNumberListResponse> {
|
|
83
|
+
return this._client.get('/v2/list-phone-numbers', { query, ...options });
|
|
78
84
|
}
|
|
79
85
|
|
|
80
86
|
/**
|
|
@@ -309,7 +315,19 @@ export namespace PhoneNumberResponse {
|
|
|
309
315
|
}
|
|
310
316
|
}
|
|
311
317
|
|
|
312
|
-
export
|
|
318
|
+
export interface PhoneNumberListResponse {
|
|
319
|
+
/**
|
|
320
|
+
* Whether more results are available.
|
|
321
|
+
*/
|
|
322
|
+
has_more?: boolean;
|
|
323
|
+
|
|
324
|
+
items?: Array<PhoneNumberResponse>;
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Pagination key for the next page.
|
|
328
|
+
*/
|
|
329
|
+
pagination_key?: string;
|
|
330
|
+
}
|
|
313
331
|
|
|
314
332
|
export interface PhoneNumberCreateParams {
|
|
315
333
|
/**
|
|
@@ -610,6 +628,23 @@ export namespace PhoneNumberUpdateParams {
|
|
|
610
628
|
}
|
|
611
629
|
}
|
|
612
630
|
|
|
631
|
+
export interface PhoneNumberListParams {
|
|
632
|
+
/**
|
|
633
|
+
* Maximum number of items to return.
|
|
634
|
+
*/
|
|
635
|
+
limit?: number;
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* Pagination key for fetching the next page.
|
|
639
|
+
*/
|
|
640
|
+
pagination_key?: string;
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* Sort order for results.
|
|
644
|
+
*/
|
|
645
|
+
sort_order?: 'ascending' | 'descending';
|
|
646
|
+
}
|
|
647
|
+
|
|
613
648
|
export interface PhoneNumberImportParams {
|
|
614
649
|
/**
|
|
615
650
|
* The number you are trying to import in E.164 format of the number (+country
|
|
@@ -735,6 +770,7 @@ export declare namespace PhoneNumber {
|
|
|
735
770
|
type PhoneNumberListResponse as PhoneNumberListResponse,
|
|
736
771
|
type PhoneNumberCreateParams as PhoneNumberCreateParams,
|
|
737
772
|
type PhoneNumberUpdateParams as PhoneNumberUpdateParams,
|
|
773
|
+
type PhoneNumberListParams as PhoneNumberListParams,
|
|
738
774
|
type PhoneNumberImportParams as PhoneNumberImportParams,
|
|
739
775
|
};
|
|
740
776
|
}
|
package/src/resources/tests.ts
CHANGED
|
@@ -59,36 +59,34 @@ export class Tests extends APIResource {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
-
* List batch test jobs
|
|
63
|
-
*
|
|
64
|
-
* @deprecated
|
|
62
|
+
* List batch test jobs with pagination
|
|
65
63
|
*/
|
|
66
64
|
listBatchTests(
|
|
67
65
|
query: TestListBatchTestsParams,
|
|
68
66
|
options?: RequestOptions,
|
|
69
67
|
): APIPromise<TestListBatchTestsResponse> {
|
|
70
|
-
return this._client.get('/list-batch-tests', { query, ...options });
|
|
68
|
+
return this._client.get('/v2/list-batch-tests', { query, ...options });
|
|
71
69
|
}
|
|
72
70
|
|
|
73
71
|
/**
|
|
74
|
-
* List test case definitions
|
|
75
|
-
*
|
|
76
|
-
* @deprecated
|
|
72
|
+
* List test case definitions with pagination
|
|
77
73
|
*/
|
|
78
74
|
listTestCaseDefinitions(
|
|
79
75
|
query: TestListTestCaseDefinitionsParams,
|
|
80
76
|
options?: RequestOptions,
|
|
81
77
|
): APIPromise<TestListTestCaseDefinitionsResponse> {
|
|
82
|
-
return this._client.get('/list-test-case-definitions', { query, ...options });
|
|
78
|
+
return this._client.get('/v2/list-test-case-definitions', { query, ...options });
|
|
83
79
|
}
|
|
84
80
|
|
|
85
81
|
/**
|
|
86
|
-
* List
|
|
87
|
-
*
|
|
88
|
-
* @deprecated
|
|
82
|
+
* List test case jobs (test runs) for a batch test job with pagination
|
|
89
83
|
*/
|
|
90
|
-
listTestRuns(
|
|
91
|
-
|
|
84
|
+
listTestRuns(
|
|
85
|
+
testCaseBatchJobID: string,
|
|
86
|
+
query: TestListTestRunsParams | null | undefined = {},
|
|
87
|
+
options?: RequestOptions,
|
|
88
|
+
): APIPromise<TestListTestRunsResponse> {
|
|
89
|
+
return this._client.get(path`/v2/list-test-runs/${testCaseBatchJobID}`, { query, ...options });
|
|
92
90
|
}
|
|
93
91
|
|
|
94
92
|
/**
|
|
@@ -400,11 +398,47 @@ export interface TestCaseJobResponse {
|
|
|
400
398
|
transcript_snapshot?: unknown | null;
|
|
401
399
|
}
|
|
402
400
|
|
|
403
|
-
export
|
|
401
|
+
export interface TestListBatchTestsResponse {
|
|
402
|
+
/**
|
|
403
|
+
* Whether more results are available.
|
|
404
|
+
*/
|
|
405
|
+
has_more?: boolean;
|
|
404
406
|
|
|
405
|
-
|
|
407
|
+
items?: Array<BatchTestResponse>;
|
|
406
408
|
|
|
407
|
-
|
|
409
|
+
/**
|
|
410
|
+
* Pagination key for the next page.
|
|
411
|
+
*/
|
|
412
|
+
pagination_key?: string;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
export interface TestListTestCaseDefinitionsResponse {
|
|
416
|
+
/**
|
|
417
|
+
* Whether more results are available.
|
|
418
|
+
*/
|
|
419
|
+
has_more?: boolean;
|
|
420
|
+
|
|
421
|
+
items?: Array<TestCaseDefinitionResponse>;
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* Pagination key for the next page.
|
|
425
|
+
*/
|
|
426
|
+
pagination_key?: string;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
export interface TestListTestRunsResponse {
|
|
430
|
+
/**
|
|
431
|
+
* Whether more results are available.
|
|
432
|
+
*/
|
|
433
|
+
has_more?: boolean;
|
|
434
|
+
|
|
435
|
+
items?: Array<TestCaseJobResponse>;
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Pagination key for the next page.
|
|
439
|
+
*/
|
|
440
|
+
pagination_key?: string;
|
|
441
|
+
}
|
|
408
442
|
|
|
409
443
|
export interface TestCreateBatchTestParams {
|
|
410
444
|
/**
|
|
@@ -605,11 +639,21 @@ export interface TestListBatchTestsParams {
|
|
|
605
639
|
*/
|
|
606
640
|
conversation_flow_id?: string;
|
|
607
641
|
|
|
642
|
+
/**
|
|
643
|
+
* Maximum number of items to return.
|
|
644
|
+
*/
|
|
645
|
+
limit?: number;
|
|
646
|
+
|
|
608
647
|
/**
|
|
609
648
|
* LLM ID (required when type is retell-llm)
|
|
610
649
|
*/
|
|
611
650
|
llm_id?: string;
|
|
612
651
|
|
|
652
|
+
/**
|
|
653
|
+
* Pagination key for fetching the next page.
|
|
654
|
+
*/
|
|
655
|
+
pagination_key?: string;
|
|
656
|
+
|
|
613
657
|
/**
|
|
614
658
|
* Version of the response engine (defaults to latest)
|
|
615
659
|
*/
|
|
@@ -627,10 +671,32 @@ export interface TestListTestCaseDefinitionsParams {
|
|
|
627
671
|
*/
|
|
628
672
|
conversation_flow_id?: string;
|
|
629
673
|
|
|
674
|
+
/**
|
|
675
|
+
* Maximum number of items to return.
|
|
676
|
+
*/
|
|
677
|
+
limit?: number;
|
|
678
|
+
|
|
630
679
|
/**
|
|
631
680
|
* LLM ID (required when type is retell-llm)
|
|
632
681
|
*/
|
|
633
682
|
llm_id?: string;
|
|
683
|
+
|
|
684
|
+
/**
|
|
685
|
+
* Pagination key for fetching the next page.
|
|
686
|
+
*/
|
|
687
|
+
pagination_key?: string;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
export interface TestListTestRunsParams {
|
|
691
|
+
/**
|
|
692
|
+
* Maximum number of items to return.
|
|
693
|
+
*/
|
|
694
|
+
limit?: number;
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* Pagination key for fetching the next page.
|
|
698
|
+
*/
|
|
699
|
+
pagination_key?: string;
|
|
634
700
|
}
|
|
635
701
|
|
|
636
702
|
export interface TestUpdateTestCaseDefinitionParams {
|
|
@@ -783,6 +849,7 @@ export declare namespace Tests {
|
|
|
783
849
|
type TestCreateTestCaseDefinitionParams as TestCreateTestCaseDefinitionParams,
|
|
784
850
|
type TestListBatchTestsParams as TestListBatchTestsParams,
|
|
785
851
|
type TestListTestCaseDefinitionsParams as TestListTestCaseDefinitionsParams,
|
|
852
|
+
type TestListTestRunsParams as TestListTestRunsParams,
|
|
786
853
|
type TestUpdateTestCaseDefinitionParams as TestUpdateTestCaseDefinitionParams,
|
|
787
854
|
};
|
|
788
855
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '5.
|
|
1
|
+
export const VERSION = '5.23.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "5.
|
|
1
|
+
export declare const VERSION = "5.23.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "5.
|
|
1
|
+
export declare const VERSION = "5.23.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '5.
|
|
1
|
+
export const VERSION = '5.23.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|