retell-sdk 5.62.0 → 5.64.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 +24 -0
- package/client.d.mts +15 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +15 -6
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent.d.mts +64 -4
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +64 -4
- package/resources/agent.d.ts.map +1 -1
- package/resources/agent.js +13 -4
- package/resources/agent.js.map +1 -1
- package/resources/agent.mjs +13 -4
- package/resources/agent.mjs.map +1 -1
- package/resources/app.d.mts +457 -0
- package/resources/app.d.mts.map +1 -0
- package/resources/app.d.ts +457 -0
- package/resources/app.d.ts.map +1 -0
- package/resources/app.js +67 -0
- package/resources/app.js.map +1 -0
- package/resources/app.mjs +63 -0
- package/resources/app.mjs.map +1 -0
- package/resources/call.d.mts +66 -6
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +66 -6
- package/resources/call.d.ts.map +1 -1
- package/resources/chat-agent.d.mts +2 -8
- package/resources/chat-agent.d.mts.map +1 -1
- package/resources/chat-agent.d.ts +2 -8
- package/resources/chat-agent.d.ts.map +1 -1
- package/resources/chat-agent.js +2 -8
- package/resources/chat-agent.js.map +1 -1
- package/resources/chat-agent.mjs +2 -8
- package/resources/chat-agent.mjs.map +1 -1
- package/resources/contact.d.mts +541 -0
- package/resources/contact.d.mts.map +1 -0
- package/resources/contact.d.ts +541 -0
- package/resources/contact.d.ts.map +1 -0
- package/resources/contact.js +77 -0
- package/resources/contact.js.map +1 -0
- package/resources/contact.mjs +73 -0
- package/resources/contact.mjs.map +1 -0
- package/resources/conversation-flow-component.d.mts +18 -6
- package/resources/conversation-flow-component.d.mts.map +1 -1
- package/resources/conversation-flow-component.d.ts +18 -6
- package/resources/conversation-flow-component.d.ts.map +1 -1
- package/resources/conversation-flow.d.mts +46 -14
- package/resources/conversation-flow.d.mts.map +1 -1
- package/resources/conversation-flow.d.ts +46 -14
- package/resources/conversation-flow.d.ts.map +1 -1
- package/resources/conversation-flow.js +3 -1
- package/resources/conversation-flow.js.map +1 -1
- package/resources/conversation-flow.mjs +3 -1
- package/resources/conversation-flow.mjs.map +1 -1
- package/resources/crm.d.mts +222 -0
- package/resources/crm.d.mts.map +1 -0
- package/resources/crm.d.ts +222 -0
- package/resources/crm.d.ts.map +1 -0
- package/resources/crm.js +46 -0
- package/resources/crm.js.map +1 -0
- package/resources/crm.mjs +42 -0
- package/resources/crm.mjs.map +1 -0
- package/resources/index.d.mts +6 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/knowledge-base.d.mts +12 -4
- package/resources/knowledge-base.d.mts.map +1 -1
- package/resources/knowledge-base.d.ts +12 -4
- package/resources/knowledge-base.d.ts.map +1 -1
- package/resources/llm.d.mts +28 -8
- package/resources/llm.d.mts.map +1 -1
- package/resources/llm.d.ts +28 -8
- package/resources/llm.d.ts.map +1 -1
- package/resources/llm.js +3 -1
- package/resources/llm.js.map +1 -1
- package/resources/llm.mjs +3 -1
- package/resources/llm.mjs.map +1 -1
- package/src/client.ts +85 -0
- package/src/resources/agent.ts +85 -4
- package/src/resources/app.ts +622 -0
- package/src/resources/call.ts +93 -7
- package/src/resources/chat-agent.ts +2 -8
- package/src/resources/contact.ts +732 -0
- package/src/resources/conversation-flow-component.ts +18 -6
- package/src/resources/conversation-flow.ts +53 -13
- package/src/resources/crm.ts +293 -0
- package/src/resources/index.ts +38 -0
- package/src/resources/knowledge-base.ts +12 -4
- package/src/resources/llm.ts +35 -7
- 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
|
@@ -87,8 +87,10 @@ class ConversationFlow extends resource_1.APIResource {
|
|
|
87
87
|
* );
|
|
88
88
|
* ```
|
|
89
89
|
*/
|
|
90
|
-
delete(conversationFlowID, options) {
|
|
90
|
+
delete(conversationFlowID, params = {}, options) {
|
|
91
|
+
const { force_delete } = params ?? {};
|
|
91
92
|
return this._client.delete((0, path_1.path) `/delete-conversation-flow/${conversationFlowID}`, {
|
|
93
|
+
query: { force_delete },
|
|
92
94
|
...options,
|
|
93
95
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
94
96
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-flow.js","sourceRoot":"","sources":["../src/resources/conversation-flow.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAM,CAAC,IAAkC,EAAE,OAAwB;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CACN,kBAA0B,EAC1B,QAA2D,EAAE,EAC7D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,0BAA0B,kBAAkB,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,kBAA0B,EAC1B,MAAoC,EACpC,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,KA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KAAK,EAAE,EAAE,OAAO,EAAE;YAClB,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,kBAA0B,EAC1B,SAA0D,EAAE,EAC5D,OAAwB;QAExB,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,6BAA6B,kBAAkB,EAAE,EAAE;YAChF,KAAK,EAAE,EAAE,YAAY,EAAE;YACvB,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;AA7GD,4CA6GC"}
|
|
@@ -84,8 +84,10 @@ export class ConversationFlow extends APIResource {
|
|
|
84
84
|
* );
|
|
85
85
|
* ```
|
|
86
86
|
*/
|
|
87
|
-
delete(conversationFlowID, options) {
|
|
87
|
+
delete(conversationFlowID, params = {}, options) {
|
|
88
|
+
const { force_delete } = params ?? {};
|
|
88
89
|
return this._client.delete(path `/delete-conversation-flow/${conversationFlowID}`, {
|
|
90
|
+
query: { force_delete },
|
|
89
91
|
...options,
|
|
90
92
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
91
93
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-flow.mjs","sourceRoot":"","sources":["../src/resources/conversation-flow.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;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CAAC,MAAM,CAAC,IAAI,CAAA,6BAA6B,kBAAkB,EAAE,EAAE;YAChF,KAAK,EAAE,EAAE,YAAY,EAAE;YACvB,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"}
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class CRM extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get the organization's CRM configuration: which CRM app is linked, the custom
|
|
7
|
+
* contact fields defined for it, and how post-call analysis data is written back
|
|
8
|
+
* to contacts. Returns an empty configuration when nothing has been set up yet.
|
|
9
|
+
*/
|
|
10
|
+
getConfig(options?: RequestOptions): APIPromise<CRMConfig>;
|
|
11
|
+
/**
|
|
12
|
+
* Get the contact schema of the connected CRM: the fields available on its contact
|
|
13
|
+
* object, which are the values that sync mappings can reference.
|
|
14
|
+
*/
|
|
15
|
+
getSchema(query?: CRMGetSchemaParams | null | undefined, options?: RequestOptions): APIPromise<CRMGetSchemaResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Get the status of the organization's contact sync, whether it was started
|
|
18
|
+
* manually or by the schedule. Returns status `idle` when no sync is running.
|
|
19
|
+
*/
|
|
20
|
+
getSyncJobStatus(options?: RequestOptions): APIPromise<CRMGetSyncJobStatusResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Start a contact sync with the linked CRM app immediately, instead of waiting for
|
|
23
|
+
* the scheduled sync. One sync runs per organization at a time: starting another
|
|
24
|
+
* while one is in flight is rejected. Poll get-sync-job-status for progress.
|
|
25
|
+
*/
|
|
26
|
+
runSyncJob(options?: RequestOptions): APIPromise<CRMRunSyncJobResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Update the organization's CRM configuration. Omitted fields stay as they are; a
|
|
29
|
+
* field that is sent replaces its stored value in full.
|
|
30
|
+
*/
|
|
31
|
+
updateConfig(body: CRMUpdateConfigParams, options?: RequestOptions): APIPromise<CRMConfig>;
|
|
32
|
+
}
|
|
33
|
+
export interface CRMConfig {
|
|
34
|
+
org_id: string;
|
|
35
|
+
/**
|
|
36
|
+
* The connected CRM integration app ID.
|
|
37
|
+
*/
|
|
38
|
+
app_id?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Preferred display order of contact fields, for clients that render contacts as a
|
|
41
|
+
* table. Not used by the API itself.
|
|
42
|
+
*/
|
|
43
|
+
contact_columns_order?: Array<string>;
|
|
44
|
+
crm_analysis_data_mappings?: Array<CRMConfig.CRMAnalysisDataMapping>;
|
|
45
|
+
custom_fields?: Array<CRMConfig.CustomField>;
|
|
46
|
+
/**
|
|
47
|
+
* Epoch milliseconds of the last successful sync.
|
|
48
|
+
*/
|
|
49
|
+
last_sync_timestamp?: number;
|
|
50
|
+
}
|
|
51
|
+
export declare namespace CRMConfig {
|
|
52
|
+
interface CRMAnalysisDataMapping {
|
|
53
|
+
/**
|
|
54
|
+
* Name of the post-call analysis field to read the value from. A value that does
|
|
55
|
+
* not match the contact field's type is skipped rather than failing the
|
|
56
|
+
* conversation.
|
|
57
|
+
*/
|
|
58
|
+
analysis_data_name: string;
|
|
59
|
+
/**
|
|
60
|
+
* Contact field to write to. Must be an existing built-in or custom contact field,
|
|
61
|
+
* and cannot be phone_number, which identifies the contact.
|
|
62
|
+
*/
|
|
63
|
+
field_name: string;
|
|
64
|
+
/**
|
|
65
|
+
* How to reconcile the new value with what the contact already holds. `overwrite`
|
|
66
|
+
* always replaces it, `fill_if_empty` writes only when the field is empty, and
|
|
67
|
+
* `merge` combines the existing text with the new value. `merge` is available on
|
|
68
|
+
* string fields only.
|
|
69
|
+
*/
|
|
70
|
+
update_mode: 'overwrite' | 'fill_if_empty' | 'merge';
|
|
71
|
+
}
|
|
72
|
+
interface CustomField {
|
|
73
|
+
name: string;
|
|
74
|
+
type: 'string' | 'number' | 'boolean' | 'date' | 'datetime' | 'enum';
|
|
75
|
+
description?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Display label for the field.
|
|
78
|
+
*/
|
|
79
|
+
label?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Allowed values. Required when `type` is `enum`, where a value is rejected unless
|
|
82
|
+
* it appears here; ignored for every other type.
|
|
83
|
+
*/
|
|
84
|
+
options?: Array<string>;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
export interface CRMGetSchemaResponse {
|
|
88
|
+
fields: Array<CRMGetSchemaResponse.Field>;
|
|
89
|
+
/**
|
|
90
|
+
* CRM provider name.
|
|
91
|
+
*/
|
|
92
|
+
provider: string;
|
|
93
|
+
}
|
|
94
|
+
export declare namespace CRMGetSchemaResponse {
|
|
95
|
+
interface Field {
|
|
96
|
+
name: string;
|
|
97
|
+
type: 'string' | 'number' | 'boolean' | 'date' | 'datetime' | 'enum';
|
|
98
|
+
description?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Display label for the field.
|
|
101
|
+
*/
|
|
102
|
+
label?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Allowed values. Required when `type` is `enum`, where a value is rejected unless
|
|
105
|
+
* it appears here; ignored for every other type.
|
|
106
|
+
*/
|
|
107
|
+
options?: Array<string>;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
export interface CRMGetSyncJobStatusResponse {
|
|
111
|
+
status: 'queued' | 'running' | 'idle';
|
|
112
|
+
/**
|
|
113
|
+
* Number of items that errored so far.
|
|
114
|
+
*/
|
|
115
|
+
failed?: number;
|
|
116
|
+
/**
|
|
117
|
+
* Epoch milliseconds when the job started.
|
|
118
|
+
*/
|
|
119
|
+
start_timestamp?: number;
|
|
120
|
+
/**
|
|
121
|
+
* Number of items processed successfully so far.
|
|
122
|
+
*/
|
|
123
|
+
succeeded?: number;
|
|
124
|
+
/**
|
|
125
|
+
* Whether the job was started by an explicit API call (`manual`) or by the
|
|
126
|
+
* scheduled sync (`cron`).
|
|
127
|
+
*/
|
|
128
|
+
triggered_by?: 'manual' | 'cron';
|
|
129
|
+
}
|
|
130
|
+
export interface CRMRunSyncJobResponse {
|
|
131
|
+
status: 'queued' | 'running' | 'idle';
|
|
132
|
+
/**
|
|
133
|
+
* Number of items that errored so far.
|
|
134
|
+
*/
|
|
135
|
+
failed?: number;
|
|
136
|
+
/**
|
|
137
|
+
* Epoch milliseconds when the job started.
|
|
138
|
+
*/
|
|
139
|
+
start_timestamp?: number;
|
|
140
|
+
/**
|
|
141
|
+
* Number of items processed successfully so far.
|
|
142
|
+
*/
|
|
143
|
+
succeeded?: number;
|
|
144
|
+
/**
|
|
145
|
+
* Whether the job was started by an explicit API call (`manual`) or by the
|
|
146
|
+
* scheduled sync (`cron`).
|
|
147
|
+
*/
|
|
148
|
+
triggered_by?: 'manual' | 'cron';
|
|
149
|
+
}
|
|
150
|
+
export interface CRMGetSchemaParams {
|
|
151
|
+
/**
|
|
152
|
+
* ID of the CRM app to read the schema from. Defaults to the app linked in the
|
|
153
|
+
* organization's CRM configuration. Naming a different app additionally requires
|
|
154
|
+
* the App.Read scope.
|
|
155
|
+
*/
|
|
156
|
+
app_id?: string;
|
|
157
|
+
}
|
|
158
|
+
export interface CRMUpdateConfigParams {
|
|
159
|
+
/**
|
|
160
|
+
* ID of the CRM app to link. Pass null to unlink, which stops syncing. Changing it
|
|
161
|
+
* resets the sync cursor, so the next sync re-reads every contact from the new
|
|
162
|
+
* CRM.
|
|
163
|
+
*/
|
|
164
|
+
app_id?: string | null;
|
|
165
|
+
/**
|
|
166
|
+
* Preferred display order of contact fields, for clients that render contacts as a
|
|
167
|
+
* table. Not used by the API itself.
|
|
168
|
+
*/
|
|
169
|
+
contact_columns_order?: Array<string>;
|
|
170
|
+
/**
|
|
171
|
+
* Replaces the stored list.
|
|
172
|
+
*/
|
|
173
|
+
crm_analysis_data_mappings?: Array<CRMUpdateConfigParams.CRMAnalysisDataMapping>;
|
|
174
|
+
/**
|
|
175
|
+
* Replaces the stored list. Names must be snake_case and cannot collide with a
|
|
176
|
+
* built-in contact field or start with `contact`/`external`. Removing a field that
|
|
177
|
+
* an analysis data mapping still targets is rejected — send
|
|
178
|
+
* crm_analysis_data_mappings in the same request to retarget or drop those
|
|
179
|
+
* mappings.
|
|
180
|
+
*/
|
|
181
|
+
custom_fields?: Array<CRMUpdateConfigParams.CustomField>;
|
|
182
|
+
}
|
|
183
|
+
export declare namespace CRMUpdateConfigParams {
|
|
184
|
+
interface CRMAnalysisDataMapping {
|
|
185
|
+
/**
|
|
186
|
+
* Name of the post-call analysis field to read the value from. A value that does
|
|
187
|
+
* not match the contact field's type is skipped rather than failing the
|
|
188
|
+
* conversation.
|
|
189
|
+
*/
|
|
190
|
+
analysis_data_name: string;
|
|
191
|
+
/**
|
|
192
|
+
* Contact field to write to. Must be an existing built-in or custom contact field,
|
|
193
|
+
* and cannot be phone_number, which identifies the contact.
|
|
194
|
+
*/
|
|
195
|
+
field_name: string;
|
|
196
|
+
/**
|
|
197
|
+
* How to reconcile the new value with what the contact already holds. `overwrite`
|
|
198
|
+
* always replaces it, `fill_if_empty` writes only when the field is empty, and
|
|
199
|
+
* `merge` combines the existing text with the new value. `merge` is available on
|
|
200
|
+
* string fields only.
|
|
201
|
+
*/
|
|
202
|
+
update_mode: 'overwrite' | 'fill_if_empty' | 'merge';
|
|
203
|
+
}
|
|
204
|
+
interface CustomField {
|
|
205
|
+
name: string;
|
|
206
|
+
type: 'string' | 'number' | 'boolean' | 'date' | 'datetime' | 'enum';
|
|
207
|
+
description?: string;
|
|
208
|
+
/**
|
|
209
|
+
* Display label for the field.
|
|
210
|
+
*/
|
|
211
|
+
label?: string;
|
|
212
|
+
/**
|
|
213
|
+
* Allowed values. Required when `type` is `enum`, where a value is rejected unless
|
|
214
|
+
* it appears here; ignored for every other type.
|
|
215
|
+
*/
|
|
216
|
+
options?: Array<string>;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
export declare namespace CRM {
|
|
220
|
+
export { type CRMConfig as CRMConfig, type CRMGetSchemaResponse as CRMGetSchemaResponse, type CRMGetSyncJobStatusResponse as CRMGetSyncJobStatusResponse, type CRMRunSyncJobResponse as CRMRunSyncJobResponse, type CRMGetSchemaParams as CRMGetSchemaParams, type CRMUpdateConfigParams as CRMUpdateConfigParams, };
|
|
221
|
+
}
|
|
222
|
+
//# sourceMappingURL=crm.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crm.d.mts","sourceRoot":"","sources":["../src/resources/crm.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D,qBAAa,GAAI,SAAQ,WAAW;IAClC;;;;OAIG;IACH,SAAS,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAI1D;;;OAGG;IACH,SAAS,CACP,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;;OAGG;IACH,gBAAgB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;IAInF;;;;OAIG;IACH,UAAU,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIvE;;;OAGG;IACH,YAAY,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;CAG3F;AAED,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,qBAAqB,CA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IAED,UAAiB,WAAW;QAC1B,IAAI,EAAE,MAAM,CAAC;QAEb,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC;QAErE,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;;WAGG;QACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KACzB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class CRM extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get the organization's CRM configuration: which CRM app is linked, the custom
|
|
7
|
+
* contact fields defined for it, and how post-call analysis data is written back
|
|
8
|
+
* to contacts. Returns an empty configuration when nothing has been set up yet.
|
|
9
|
+
*/
|
|
10
|
+
getConfig(options?: RequestOptions): APIPromise<CRMConfig>;
|
|
11
|
+
/**
|
|
12
|
+
* Get the contact schema of the connected CRM: the fields available on its contact
|
|
13
|
+
* object, which are the values that sync mappings can reference.
|
|
14
|
+
*/
|
|
15
|
+
getSchema(query?: CRMGetSchemaParams | null | undefined, options?: RequestOptions): APIPromise<CRMGetSchemaResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Get the status of the organization's contact sync, whether it was started
|
|
18
|
+
* manually or by the schedule. Returns status `idle` when no sync is running.
|
|
19
|
+
*/
|
|
20
|
+
getSyncJobStatus(options?: RequestOptions): APIPromise<CRMGetSyncJobStatusResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Start a contact sync with the linked CRM app immediately, instead of waiting for
|
|
23
|
+
* the scheduled sync. One sync runs per organization at a time: starting another
|
|
24
|
+
* while one is in flight is rejected. Poll get-sync-job-status for progress.
|
|
25
|
+
*/
|
|
26
|
+
runSyncJob(options?: RequestOptions): APIPromise<CRMRunSyncJobResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Update the organization's CRM configuration. Omitted fields stay as they are; a
|
|
29
|
+
* field that is sent replaces its stored value in full.
|
|
30
|
+
*/
|
|
31
|
+
updateConfig(body: CRMUpdateConfigParams, options?: RequestOptions): APIPromise<CRMConfig>;
|
|
32
|
+
}
|
|
33
|
+
export interface CRMConfig {
|
|
34
|
+
org_id: string;
|
|
35
|
+
/**
|
|
36
|
+
* The connected CRM integration app ID.
|
|
37
|
+
*/
|
|
38
|
+
app_id?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Preferred display order of contact fields, for clients that render contacts as a
|
|
41
|
+
* table. Not used by the API itself.
|
|
42
|
+
*/
|
|
43
|
+
contact_columns_order?: Array<string>;
|
|
44
|
+
crm_analysis_data_mappings?: Array<CRMConfig.CRMAnalysisDataMapping>;
|
|
45
|
+
custom_fields?: Array<CRMConfig.CustomField>;
|
|
46
|
+
/**
|
|
47
|
+
* Epoch milliseconds of the last successful sync.
|
|
48
|
+
*/
|
|
49
|
+
last_sync_timestamp?: number;
|
|
50
|
+
}
|
|
51
|
+
export declare namespace CRMConfig {
|
|
52
|
+
interface CRMAnalysisDataMapping {
|
|
53
|
+
/**
|
|
54
|
+
* Name of the post-call analysis field to read the value from. A value that does
|
|
55
|
+
* not match the contact field's type is skipped rather than failing the
|
|
56
|
+
* conversation.
|
|
57
|
+
*/
|
|
58
|
+
analysis_data_name: string;
|
|
59
|
+
/**
|
|
60
|
+
* Contact field to write to. Must be an existing built-in or custom contact field,
|
|
61
|
+
* and cannot be phone_number, which identifies the contact.
|
|
62
|
+
*/
|
|
63
|
+
field_name: string;
|
|
64
|
+
/**
|
|
65
|
+
* How to reconcile the new value with what the contact already holds. `overwrite`
|
|
66
|
+
* always replaces it, `fill_if_empty` writes only when the field is empty, and
|
|
67
|
+
* `merge` combines the existing text with the new value. `merge` is available on
|
|
68
|
+
* string fields only.
|
|
69
|
+
*/
|
|
70
|
+
update_mode: 'overwrite' | 'fill_if_empty' | 'merge';
|
|
71
|
+
}
|
|
72
|
+
interface CustomField {
|
|
73
|
+
name: string;
|
|
74
|
+
type: 'string' | 'number' | 'boolean' | 'date' | 'datetime' | 'enum';
|
|
75
|
+
description?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Display label for the field.
|
|
78
|
+
*/
|
|
79
|
+
label?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Allowed values. Required when `type` is `enum`, where a value is rejected unless
|
|
82
|
+
* it appears here; ignored for every other type.
|
|
83
|
+
*/
|
|
84
|
+
options?: Array<string>;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
export interface CRMGetSchemaResponse {
|
|
88
|
+
fields: Array<CRMGetSchemaResponse.Field>;
|
|
89
|
+
/**
|
|
90
|
+
* CRM provider name.
|
|
91
|
+
*/
|
|
92
|
+
provider: string;
|
|
93
|
+
}
|
|
94
|
+
export declare namespace CRMGetSchemaResponse {
|
|
95
|
+
interface Field {
|
|
96
|
+
name: string;
|
|
97
|
+
type: 'string' | 'number' | 'boolean' | 'date' | 'datetime' | 'enum';
|
|
98
|
+
description?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Display label for the field.
|
|
101
|
+
*/
|
|
102
|
+
label?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Allowed values. Required when `type` is `enum`, where a value is rejected unless
|
|
105
|
+
* it appears here; ignored for every other type.
|
|
106
|
+
*/
|
|
107
|
+
options?: Array<string>;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
export interface CRMGetSyncJobStatusResponse {
|
|
111
|
+
status: 'queued' | 'running' | 'idle';
|
|
112
|
+
/**
|
|
113
|
+
* Number of items that errored so far.
|
|
114
|
+
*/
|
|
115
|
+
failed?: number;
|
|
116
|
+
/**
|
|
117
|
+
* Epoch milliseconds when the job started.
|
|
118
|
+
*/
|
|
119
|
+
start_timestamp?: number;
|
|
120
|
+
/**
|
|
121
|
+
* Number of items processed successfully so far.
|
|
122
|
+
*/
|
|
123
|
+
succeeded?: number;
|
|
124
|
+
/**
|
|
125
|
+
* Whether the job was started by an explicit API call (`manual`) or by the
|
|
126
|
+
* scheduled sync (`cron`).
|
|
127
|
+
*/
|
|
128
|
+
triggered_by?: 'manual' | 'cron';
|
|
129
|
+
}
|
|
130
|
+
export interface CRMRunSyncJobResponse {
|
|
131
|
+
status: 'queued' | 'running' | 'idle';
|
|
132
|
+
/**
|
|
133
|
+
* Number of items that errored so far.
|
|
134
|
+
*/
|
|
135
|
+
failed?: number;
|
|
136
|
+
/**
|
|
137
|
+
* Epoch milliseconds when the job started.
|
|
138
|
+
*/
|
|
139
|
+
start_timestamp?: number;
|
|
140
|
+
/**
|
|
141
|
+
* Number of items processed successfully so far.
|
|
142
|
+
*/
|
|
143
|
+
succeeded?: number;
|
|
144
|
+
/**
|
|
145
|
+
* Whether the job was started by an explicit API call (`manual`) or by the
|
|
146
|
+
* scheduled sync (`cron`).
|
|
147
|
+
*/
|
|
148
|
+
triggered_by?: 'manual' | 'cron';
|
|
149
|
+
}
|
|
150
|
+
export interface CRMGetSchemaParams {
|
|
151
|
+
/**
|
|
152
|
+
* ID of the CRM app to read the schema from. Defaults to the app linked in the
|
|
153
|
+
* organization's CRM configuration. Naming a different app additionally requires
|
|
154
|
+
* the App.Read scope.
|
|
155
|
+
*/
|
|
156
|
+
app_id?: string;
|
|
157
|
+
}
|
|
158
|
+
export interface CRMUpdateConfigParams {
|
|
159
|
+
/**
|
|
160
|
+
* ID of the CRM app to link. Pass null to unlink, which stops syncing. Changing it
|
|
161
|
+
* resets the sync cursor, so the next sync re-reads every contact from the new
|
|
162
|
+
* CRM.
|
|
163
|
+
*/
|
|
164
|
+
app_id?: string | null;
|
|
165
|
+
/**
|
|
166
|
+
* Preferred display order of contact fields, for clients that render contacts as a
|
|
167
|
+
* table. Not used by the API itself.
|
|
168
|
+
*/
|
|
169
|
+
contact_columns_order?: Array<string>;
|
|
170
|
+
/**
|
|
171
|
+
* Replaces the stored list.
|
|
172
|
+
*/
|
|
173
|
+
crm_analysis_data_mappings?: Array<CRMUpdateConfigParams.CRMAnalysisDataMapping>;
|
|
174
|
+
/**
|
|
175
|
+
* Replaces the stored list. Names must be snake_case and cannot collide with a
|
|
176
|
+
* built-in contact field or start with `contact`/`external`. Removing a field that
|
|
177
|
+
* an analysis data mapping still targets is rejected — send
|
|
178
|
+
* crm_analysis_data_mappings in the same request to retarget or drop those
|
|
179
|
+
* mappings.
|
|
180
|
+
*/
|
|
181
|
+
custom_fields?: Array<CRMUpdateConfigParams.CustomField>;
|
|
182
|
+
}
|
|
183
|
+
export declare namespace CRMUpdateConfigParams {
|
|
184
|
+
interface CRMAnalysisDataMapping {
|
|
185
|
+
/**
|
|
186
|
+
* Name of the post-call analysis field to read the value from. A value that does
|
|
187
|
+
* not match the contact field's type is skipped rather than failing the
|
|
188
|
+
* conversation.
|
|
189
|
+
*/
|
|
190
|
+
analysis_data_name: string;
|
|
191
|
+
/**
|
|
192
|
+
* Contact field to write to. Must be an existing built-in or custom contact field,
|
|
193
|
+
* and cannot be phone_number, which identifies the contact.
|
|
194
|
+
*/
|
|
195
|
+
field_name: string;
|
|
196
|
+
/**
|
|
197
|
+
* How to reconcile the new value with what the contact already holds. `overwrite`
|
|
198
|
+
* always replaces it, `fill_if_empty` writes only when the field is empty, and
|
|
199
|
+
* `merge` combines the existing text with the new value. `merge` is available on
|
|
200
|
+
* string fields only.
|
|
201
|
+
*/
|
|
202
|
+
update_mode: 'overwrite' | 'fill_if_empty' | 'merge';
|
|
203
|
+
}
|
|
204
|
+
interface CustomField {
|
|
205
|
+
name: string;
|
|
206
|
+
type: 'string' | 'number' | 'boolean' | 'date' | 'datetime' | 'enum';
|
|
207
|
+
description?: string;
|
|
208
|
+
/**
|
|
209
|
+
* Display label for the field.
|
|
210
|
+
*/
|
|
211
|
+
label?: string;
|
|
212
|
+
/**
|
|
213
|
+
* Allowed values. Required when `type` is `enum`, where a value is rejected unless
|
|
214
|
+
* it appears here; ignored for every other type.
|
|
215
|
+
*/
|
|
216
|
+
options?: Array<string>;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
export declare namespace CRM {
|
|
220
|
+
export { type CRMConfig as CRMConfig, type CRMGetSchemaResponse as CRMGetSchemaResponse, type CRMGetSyncJobStatusResponse as CRMGetSyncJobStatusResponse, type CRMRunSyncJobResponse as CRMRunSyncJobResponse, type CRMGetSchemaParams as CRMGetSchemaParams, type CRMUpdateConfigParams as CRMUpdateConfigParams, };
|
|
221
|
+
}
|
|
222
|
+
//# sourceMappingURL=crm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crm.d.ts","sourceRoot":"","sources":["../src/resources/crm.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,GAAI,SAAQ,WAAW;IAClC;;;;OAIG;IACH,SAAS,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAI1D;;;OAGG;IACH,SAAS,CACP,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;;OAGG;IACH,gBAAgB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;IAInF;;;;OAIG;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B,CAAC,CAAC;IAEjF;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,WAAW,CAAC,CAAC;CAC1D;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,sBAAsB;QACrC;;;;WAIG;QACH,kBAAkB,EAAE,MAAM,CAAC;QAE3B;;;WAGG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;;;;WAKG;QACH,WAAW,EAAE,WAAW,GAAG,eAAe,GAAG,OAAO,CAAC;KACtD;IAED,UAAiB,WAAW;QAC1B,IAAI,EAAE,MAAM,CAAC;QAEb,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC;QAErE,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;;WAGG;QACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KACzB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
package/resources/crm.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CRM = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class CRM extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Get the organization's CRM configuration: which CRM app is linked, the custom
|
|
9
|
+
* contact fields defined for it, and how post-call analysis data is written back
|
|
10
|
+
* to contacts. Returns an empty configuration when nothing has been set up yet.
|
|
11
|
+
*/
|
|
12
|
+
getConfig(options) {
|
|
13
|
+
return this._client.get('/get-crm-config', options);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Get the contact schema of the connected CRM: the fields available on its contact
|
|
17
|
+
* object, which are the values that sync mappings can reference.
|
|
18
|
+
*/
|
|
19
|
+
getSchema(query = {}, options) {
|
|
20
|
+
return this._client.get('/get-crm-schema', { query, ...options });
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Get the status of the organization's contact sync, whether it was started
|
|
24
|
+
* manually or by the schedule. Returns status `idle` when no sync is running.
|
|
25
|
+
*/
|
|
26
|
+
getSyncJobStatus(options) {
|
|
27
|
+
return this._client.get('/get-sync-job-status', options);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Start a contact sync with the linked CRM app immediately, instead of waiting for
|
|
31
|
+
* the scheduled sync. One sync runs per organization at a time: starting another
|
|
32
|
+
* while one is in flight is rejected. Poll get-sync-job-status for progress.
|
|
33
|
+
*/
|
|
34
|
+
runSyncJob(options) {
|
|
35
|
+
return this._client.post('/run-sync-job', options);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Update the organization's CRM configuration. Omitted fields stay as they are; a
|
|
39
|
+
* field that is sent replaces its stored value in full.
|
|
40
|
+
*/
|
|
41
|
+
updateConfig(body, options) {
|
|
42
|
+
return this._client.post('/update-crm-config', { body, ...options });
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.CRM = CRM;
|
|
46
|
+
//# sourceMappingURL=crm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crm.js","sourceRoot":"","sources":["../src/resources/crm.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,GAAI,SAAQ,sBAAW;IAClC;;;;OAIG;IACH,SAAS,CAAC,OAAwB;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC;IAED;;;OAGG;IACH,SAAS,CACP,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;;OAGG;IACH,gBAAgB,CAAC,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;;;OAIG;IACH,UAAU,CAAC,OAAwB;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAED;;;OAGG;IACH,YAAY,CAAC,IAA2B,EAAE,OAAwB;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AA7CD,kBA6CC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
export class CRM extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Get the organization's CRM configuration: which CRM app is linked, the custom
|
|
6
|
+
* contact fields defined for it, and how post-call analysis data is written back
|
|
7
|
+
* to contacts. Returns an empty configuration when nothing has been set up yet.
|
|
8
|
+
*/
|
|
9
|
+
getConfig(options) {
|
|
10
|
+
return this._client.get('/get-crm-config', options);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Get the contact schema of the connected CRM: the fields available on its contact
|
|
14
|
+
* object, which are the values that sync mappings can reference.
|
|
15
|
+
*/
|
|
16
|
+
getSchema(query = {}, options) {
|
|
17
|
+
return this._client.get('/get-crm-schema', { query, ...options });
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Get the status of the organization's contact sync, whether it was started
|
|
21
|
+
* manually or by the schedule. Returns status `idle` when no sync is running.
|
|
22
|
+
*/
|
|
23
|
+
getSyncJobStatus(options) {
|
|
24
|
+
return this._client.get('/get-sync-job-status', options);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Start a contact sync with the linked CRM app immediately, instead of waiting for
|
|
28
|
+
* the scheduled sync. One sync runs per organization at a time: starting another
|
|
29
|
+
* while one is in flight is rejected. Poll get-sync-job-status for progress.
|
|
30
|
+
*/
|
|
31
|
+
runSyncJob(options) {
|
|
32
|
+
return this._client.post('/run-sync-job', options);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Update the organization's CRM configuration. Omitted fields stay as they are; a
|
|
36
|
+
* field that is sent replaces its stored value in full.
|
|
37
|
+
*/
|
|
38
|
+
updateConfig(body, options) {
|
|
39
|
+
return this._client.post('/update-crm-config', { body, ...options });
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=crm.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crm.mjs","sourceRoot":"","sources":["../src/resources/crm.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,MAAM,OAAO,GAAI,SAAQ,WAAW;IAClC;;;;OAIG;IACH,SAAS,CAAC,OAAwB;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC;IAED;;;OAGG;IACH,SAAS,CACP,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;;OAGG;IACH,gBAAgB,CAAC,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;;;OAIG;IACH,UAAU,CAAC,OAAwB;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAED;;;OAGG;IACH,YAAY,CAAC,IAA2B,EAAE,OAAwB;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF"}
|
package/resources/index.d.mts
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
export { Agent, type AgentResponse, type AgentListResponse, type AgentCreateVersionResponse, type AgentGetVersionsResponse, type AgentCreateParams, type AgentRetrieveParams, type AgentUpdateParams, type AgentListParams, type AgentCreateVersionParams, type AgentDeleteVersionParams, type AgentPublishParams, } from "./agent.mjs";
|
|
1
|
+
export { Agent, type AgentResponse, type AgentListResponse, type AgentCreateVersionResponse, type AgentGetVersionsResponse, type AgentListVersionsResponse, type AgentCreateParams, type AgentRetrieveParams, type AgentUpdateParams, type AgentListParams, type AgentCreateVersionParams, type AgentDeleteVersionParams, type AgentListVersionsParams, type AgentPublishParams, } from "./agent.mjs";
|
|
2
|
+
export { App, type AppResponse, type AppListResponse, type AppListUsagesResponse, type AppTestAuthResponse, type AppCreateParams, type AppUpdateParams, type AppListParams, type AppDeleteParams, type AppListUsagesParams, } from "./app.mjs";
|
|
2
3
|
export { BatchCall, type BatchCallResponse, type BatchCallCreateBatchCallParams } from "./batch-call.mjs";
|
|
4
|
+
export { CRM, type CRMConfig, type CRMGetSchemaResponse, type CRMGetSyncJobStatusResponse, type CRMRunSyncJobResponse, type CRMGetSchemaParams, type CRMUpdateConfigParams, } from "./crm.mjs";
|
|
3
5
|
export { Call, type CallResponse, type PhoneCallResponse, type WebCallResponse, type CallListResponse, type CallUpdateLiveResponse, type CallUpdateParams, type CallListParams, type CallCreatePhoneCallParams, type CallCreateWebCallParams, type CallRegisterPhoneCallParams, type CallUpdateLiveParams, } from "./call.mjs";
|
|
4
6
|
export { Chat, type ChatResponse, type ChatListResponse, type ChatCreateChatCompletionResponse, type ChatCreateParams, type ChatUpdateParams, type ChatListParams, type ChatCreateChatCompletionParams, type ChatCreateSMSChatParams, } from "./chat.mjs";
|
|
5
7
|
export { ChatAgent, type ChatAgentResponse, type ChatAgentListResponse, type ChatAgentCreateVersionResponse, type ChatAgentGetVersionsResponse, type ChatAgentCreateParams, type ChatAgentRetrieveParams, type ChatAgentUpdateParams, type ChatAgentListParams, type ChatAgentCreateVersionParams, type ChatAgentDeleteVersionParams, type ChatAgentPublishParams, } from "./chat-agent.mjs";
|
|
6
8
|
export { Concurrency, type ConcurrencyRetrieveResponse } from "./concurrency.mjs";
|
|
7
|
-
export {
|
|
9
|
+
export { Contact, type ContactResponse, type ContactListResponse, type ContactBackfillAnalysisDataResponse, type ContactGetBackfillJobStatusResponse, type ContactListConversationsResponse, type ContactCreateParams, type ContactUpdateParams, type ContactListParams, type ContactBackfillAnalysisDataParams, type ContactListConversationsParams, } from "./contact.mjs";
|
|
10
|
+
export { ConversationFlow, type ConversationFlowResponse, type ConversationFlowListResponse, type ConversationFlowCreateParams, type ConversationFlowRetrieveParams, type ConversationFlowUpdateParams, type ConversationFlowListParams, type ConversationFlowDeleteParams, } from "./conversation-flow.mjs";
|
|
8
11
|
export { ConversationFlowComponent, type ConversationFlowComponentResponse, type ConversationFlowComponentListResponse, type ConversationFlowComponentCreateParams, type ConversationFlowComponentUpdateParams, type ConversationFlowComponentListParams, } from "./conversation-flow-component.mjs";
|
|
9
12
|
export { ExportRequest, type ExportRequestListResponse, type ExportRequestListParams, } from "./export-request.mjs";
|
|
10
13
|
export { Identity, type IdentityRetrieveResponse } from "./identity.mjs";
|
|
11
14
|
export { KnowledgeBase, type KnowledgeBaseResponse, type KnowledgeBaseListResponse, type KnowledgeBaseCreateParams, type KnowledgeBaseAddSourcesParams, type KnowledgeBaseDeleteSourceParams, } from "./knowledge-base.mjs";
|
|
12
|
-
export { Llm, type LlmResponse, type LlmListResponse, type LlmCreateParams, type LlmRetrieveParams, type LlmUpdateParams, type LlmListParams, } from "./llm.mjs";
|
|
15
|
+
export { Llm, type LlmResponse, type LlmListResponse, type LlmCreateParams, type LlmRetrieveParams, type LlmUpdateParams, type LlmListParams, type LlmDeleteParams, } from "./llm.mjs";
|
|
13
16
|
export { McpTool, type McpToolDefinition, type McpToolGetMcpToolsResponse, type McpToolGetMcpToolsParams, } from "./mcp-tool.mjs";
|
|
14
17
|
export { PhoneNumber, type PhoneNumberResponse, type PhoneNumberListResponse, type PhoneNumberCreateParams, type PhoneNumberUpdateParams, type PhoneNumberListParams, type PhoneNumberImportParams, } from "./phone-number.mjs";
|
|
15
18
|
export { Playground, type PlaygroundCompletionResponse, type PlaygroundCompletionParams } from "./playground.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,EACL,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,GACxB,oBAAgB;AACjB,OAAO,EAAE,SAAS,EAAE,KAAK,iBAAiB,EAAE,KAAK,8BAA8B,EAAE,yBAAqB;AACtG,OAAO,EACL,IAAI,EACJ,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,s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