twilio 6.0.0 → 6.0.2
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/lib/rest/ConversationsBase.d.ts +3 -0
- package/lib/rest/ConversationsBase.js +5 -0
- package/lib/rest/InsightsBase.d.ts +3 -0
- package/lib/rest/InsightsBase.js +5 -0
- package/lib/rest/IntelligenceBase.d.ts +3 -0
- package/lib/rest/IntelligenceBase.js +5 -0
- package/lib/rest/KnowledgeBase.d.ts +3 -0
- package/lib/rest/KnowledgeBase.js +5 -0
- package/lib/rest/Memory.d.ts +4 -0
- package/lib/rest/Memory.js +8 -0
- package/lib/rest/MemoryBase.d.ts +13 -0
- package/lib/rest/MemoryBase.js +31 -0
- package/lib/rest/Twilio.d.ts +5 -0
- package/lib/rest/Twilio.js +5 -0
- package/lib/rest/VoiceBase.d.ts +3 -0
- package/lib/rest/VoiceBase.js +5 -0
- package/lib/rest/api/v2010/account/call/recording.d.ts +2 -0
- package/lib/rest/api/v2010/account/call/recording.js +4 -0
- package/lib/rest/api/v2010/account/call/transcription.d.ts +1 -1
- package/lib/rest/api/v2010/account/call/transcription.js +6 -4
- package/lib/rest/api/v2010/account/call.d.ts +2 -0
- package/lib/rest/api/v2010/account/call.js +4 -0
- package/lib/rest/api/v2010/account/conference/participant.d.ts +2 -0
- package/lib/rest/api/v2010/account/conference/participant.js +4 -0
- package/lib/rest/conversations/V2.d.ts +38 -0
- package/lib/rest/conversations/V2.js +72 -0
- package/lib/rest/conversations/v2/action.d.ts +241 -0
- package/lib/rest/conversations/v2/action.js +246 -0
- package/lib/rest/conversations/v2/communication.d.ts +479 -0
- package/lib/rest/conversations/v2/communication.js +436 -0
- package/lib/rest/conversations/v2/configuration.d.ts +906 -0
- package/lib/rest/conversations/v2/configuration.js +619 -0
- package/lib/rest/conversations/v2/conversation.d.ts +936 -0
- package/lib/rest/conversations/v2/conversation.js +664 -0
- package/lib/rest/conversations/v2/operation.d.ts +167 -0
- package/lib/rest/conversations/v2/operation.js +170 -0
- package/lib/rest/conversations/v2/participant.d.ts +469 -0
- package/lib/rest/conversations/v2/participant.js +442 -0
- package/lib/rest/flexApi/v1/plugin/pluginVersions.d.ts +1 -1
- package/lib/rest/flexApi/v1/plugin/pluginVersions.js +8 -6
- package/lib/rest/insights/V3.d.ts +20 -0
- package/lib/rest/insights/V3.js +42 -0
- package/lib/rest/insights/v1/call/callSummary.d.ts +10 -10
- package/lib/rest/insights/v1/call/event.d.ts +4 -4
- package/lib/rest/insights/v1/callSummaries.d.ts +12 -9
- package/lib/rest/insights/v3/metadata.d.ts +115 -0
- package/lib/rest/insights/v3/metadata.js +118 -0
- package/lib/rest/insights/v3/query.d.ts +180 -0
- package/lib/rest/insights/v3/query.js +214 -0
- package/lib/rest/intelligence/V3.d.ts +35 -0
- package/lib/rest/intelligence/V3.js +65 -0
- package/lib/rest/intelligence/v3/configuration.d.ts +693 -0
- package/lib/rest/intelligence/v3/configuration.js +528 -0
- package/lib/rest/intelligence/v3/conversation.d.ts +478 -0
- package/lib/rest/intelligence/v3/conversation.js +342 -0
- package/lib/rest/intelligence/v3/operator.d.ts +619 -0
- package/lib/rest/intelligence/v3/operator.js +493 -0
- package/lib/rest/intelligence/v3/operatorResult.d.ts +543 -0
- package/lib/rest/intelligence/v3/operatorResult.js +478 -0
- package/lib/rest/intelligence/v3/version.d.ts +469 -0
- package/lib/rest/intelligence/v3/version.js +341 -0
- package/lib/rest/knowledge/V2.d.ts +31 -0
- package/lib/rest/knowledge/V2.js +62 -0
- package/lib/rest/knowledge/v2/chunk.d.ts +209 -0
- package/lib/rest/knowledge/v2/chunk.js +178 -0
- package/lib/rest/knowledge/v2/knowledge.d.ts +507 -0
- package/lib/rest/knowledge/v2/knowledge.js +466 -0
- package/lib/rest/knowledge/v2/knowledgeBasis.d.ts +484 -0
- package/lib/rest/knowledge/v2/knowledgeBasis.js +441 -0
- package/lib/rest/knowledge/v2/operation.d.ts +162 -0
- package/lib/rest/knowledge/v2/operation.js +175 -0
- package/lib/rest/knowledge/v2/search.d.ts +180 -0
- package/lib/rest/knowledge/v2/search.js +174 -0
- package/lib/rest/memory/V1.d.ts +76 -0
- package/lib/rest/memory/V1.js +140 -0
- package/lib/rest/memory/v1/bulk.d.ts +129 -0
- package/lib/rest/memory/v1/bulk.js +158 -0
- package/lib/rest/memory/v1/conversationSummary.d.ts +531 -0
- package/lib/rest/memory/v1/conversationSummary.js +473 -0
- package/lib/rest/memory/v1/dataMapping.d.ts +630 -0
- package/lib/rest/memory/v1/dataMapping.js +512 -0
- package/lib/rest/memory/v1/event.d.ts +153 -0
- package/lib/rest/memory/v1/event.js +159 -0
- package/lib/rest/memory/v1/identifier.d.ts +362 -0
- package/lib/rest/memory/v1/identifier.js +369 -0
- package/lib/rest/memory/v1/identityResolutionSetting.d.ts +247 -0
- package/lib/rest/memory/v1/identityResolutionSetting.js +229 -0
- package/lib/rest/memory/v1/import.d.ts +292 -0
- package/lib/rest/memory/v1/import.js +280 -0
- package/lib/rest/memory/v1/lookup.d.ts +82 -0
- package/lib/rest/memory/v1/lookup.js +118 -0
- package/lib/rest/memory/v1/observation.d.ts +521 -0
- package/lib/rest/memory/v1/observation.js +477 -0
- package/lib/rest/memory/v1/operation.d.ts +162 -0
- package/lib/rest/memory/v1/operation.js +175 -0
- package/lib/rest/memory/v1/profile.d.ts +548 -0
- package/lib/rest/memory/v1/profile.js +531 -0
- package/lib/rest/memory/v1/recall.d.ts +306 -0
- package/lib/rest/memory/v1/recall.js +234 -0
- package/lib/rest/memory/v1/revision.d.ts +246 -0
- package/lib/rest/memory/v1/revision.js +195 -0
- package/lib/rest/memory/v1/store.d.ts +544 -0
- package/lib/rest/memory/v1/store.js +534 -0
- package/lib/rest/memory/v1/trait.d.ts +233 -0
- package/lib/rest/memory/v1/trait.js +190 -0
- package/lib/rest/memory/v1/traitGroup.d.ts +758 -0
- package/lib/rest/memory/v1/traitGroup.js +555 -0
- package/lib/rest/messaging/v2/channelsSender.d.ts +8 -0
- package/lib/rest/messaging/v2/channelsSender.js +2 -0
- package/lib/rest/previewIam/versionless/organization/roleAssignment.d.ts +32 -0
- package/lib/rest/previewIam/versionless/organization/roleAssignment.js +14 -0
- package/lib/rest/studio/v2/flow.d.ts +4 -0
- package/lib/rest/studio/v2/flow.js +8 -0
- package/lib/rest/verify/v2/service/webhook.d.ts +2 -2
- package/lib/rest/verify/v2/service/webhook.js +8 -8
- package/lib/rest/voice/V3.d.ts +15 -0
- package/lib/rest/voice/V3.js +37 -0
- package/lib/rest/voice/v3/transcription.d.ts +378 -0
- package/lib/rest/voice/v3/transcription.js +264 -0
- package/lib/twiml/VoiceResponse.d.ts +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,478 @@
|
|
|
1
|
+
import { inspect, InspectOptions } from "util";
|
|
2
|
+
import TokenPage, { TokenPaginationPayload } from "../../../base/TokenPage";
|
|
3
|
+
import Response from "../../../http/response";
|
|
4
|
+
import V3 from "../V3";
|
|
5
|
+
import { ApiResponse } from "../../../base/ApiResponse";
|
|
6
|
+
/**
|
|
7
|
+
* Communication channel type.
|
|
8
|
+
*/
|
|
9
|
+
export type Channel = "VOICE" | "SMS" | "RCS" | "EMAIL" | "WHATSAPP" | "CHAT" | "API" | "SYSTEM";
|
|
10
|
+
export declare class Communication {
|
|
11
|
+
/**
|
|
12
|
+
* Communication `id` from the attached Conversation.
|
|
13
|
+
*/
|
|
14
|
+
"id": string;
|
|
15
|
+
/**
|
|
16
|
+
* The `id` of the Participant in the Conversation.
|
|
17
|
+
*/
|
|
18
|
+
"participantId": string;
|
|
19
|
+
"content": Content;
|
|
20
|
+
/**
|
|
21
|
+
* The timestamp for when the Communication was created.
|
|
22
|
+
*/
|
|
23
|
+
"createdAt": Date;
|
|
24
|
+
constructor(payload: any);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The content of the communication.
|
|
28
|
+
*/
|
|
29
|
+
export declare class Content {
|
|
30
|
+
/**
|
|
31
|
+
* The transcript of the communication.
|
|
32
|
+
*/
|
|
33
|
+
"text"?: string;
|
|
34
|
+
constructor(payload: any);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The status of the Conversation.
|
|
38
|
+
*/
|
|
39
|
+
export type ConversationStatus = "ACTIVE" | "INACTIVE" | "CLOSED";
|
|
40
|
+
export declare class Participant {
|
|
41
|
+
/**
|
|
42
|
+
* The `id` of the Participant in the Conversation.
|
|
43
|
+
*/
|
|
44
|
+
"id": string;
|
|
45
|
+
/**
|
|
46
|
+
* Participant display name.
|
|
47
|
+
*/
|
|
48
|
+
"name"?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Type of participant in the conversation. Available types: - `CUSTOMER` - `HUMAN_AGENT` - `AI_AGENT` - `AGENT` - `UNKNOWN`
|
|
51
|
+
*/
|
|
52
|
+
"type"?: string | null;
|
|
53
|
+
/**
|
|
54
|
+
* Participant address values (for example, a phone number or sender identifier).
|
|
55
|
+
*/
|
|
56
|
+
"addressValues": Array<string>;
|
|
57
|
+
constructor(payload: any);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Options to pass to each
|
|
61
|
+
*/
|
|
62
|
+
export interface ConversationListInstanceEachOptions {
|
|
63
|
+
/** The maximum number of resources to return */
|
|
64
|
+
pageSize?: number;
|
|
65
|
+
/** Token for pagination */
|
|
66
|
+
pageToken?: string;
|
|
67
|
+
/** Filter by Conversations created before this timestamp. */
|
|
68
|
+
createdAtBefore?: Date;
|
|
69
|
+
/** Filter by Conversations created after this timestamp. */
|
|
70
|
+
createdAtAfter?: Date;
|
|
71
|
+
/** Filter by Conversation status. */
|
|
72
|
+
status?: "ACTIVE" | "INACTIVE" | "CLOSED";
|
|
73
|
+
/** Filters Conversations by the underlying channel resource ID, such as a Call ID or Message ID. */
|
|
74
|
+
channelId?: string;
|
|
75
|
+
/** Filters Conversations that include one or more of the specified communication channels (`OR` match). */
|
|
76
|
+
channels?: Array<"VOICE" | "SMS" | "RCS" | "EMAIL" | "WHATSAPP" | "CHAT" | "API" | "SYSTEM">;
|
|
77
|
+
/** The configuration `id` used to generate the Conversation. */
|
|
78
|
+
conversationConfigurationId?: string;
|
|
79
|
+
/** Filters Conversations activated by one or more of the specified Intelligence Configuration IDs (`OR` match). */
|
|
80
|
+
intelligenceConfigurationIds?: Array<string>;
|
|
81
|
+
/** Filters Conversations to those where at least one of the specified Language Operators was executed (`OR` match). */
|
|
82
|
+
operatorIds?: Array<string>;
|
|
83
|
+
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
84
|
+
callback?: (item: ConversationInstance, done: (err?: Error) => void) => void;
|
|
85
|
+
/** Function to be called upon completion of streaming */
|
|
86
|
+
done?: Function;
|
|
87
|
+
/** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
|
|
88
|
+
limit?: number;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Options to pass to list
|
|
92
|
+
*/
|
|
93
|
+
export interface ConversationListInstanceOptions {
|
|
94
|
+
/** The maximum number of resources to return */
|
|
95
|
+
pageSize?: number;
|
|
96
|
+
/** Token for pagination */
|
|
97
|
+
pageToken?: string;
|
|
98
|
+
/** Filter by Conversations created before this timestamp. */
|
|
99
|
+
createdAtBefore?: Date;
|
|
100
|
+
/** Filter by Conversations created after this timestamp. */
|
|
101
|
+
createdAtAfter?: Date;
|
|
102
|
+
/** Filter by Conversation status. */
|
|
103
|
+
status?: "ACTIVE" | "INACTIVE" | "CLOSED";
|
|
104
|
+
/** Filters Conversations by the underlying channel resource ID, such as a Call ID or Message ID. */
|
|
105
|
+
channelId?: string;
|
|
106
|
+
/** Filters Conversations that include one or more of the specified communication channels (`OR` match). */
|
|
107
|
+
channels?: Array<"VOICE" | "SMS" | "RCS" | "EMAIL" | "WHATSAPP" | "CHAT" | "API" | "SYSTEM">;
|
|
108
|
+
/** The configuration `id` used to generate the Conversation. */
|
|
109
|
+
conversationConfigurationId?: string;
|
|
110
|
+
/** Filters Conversations activated by one or more of the specified Intelligence Configuration IDs (`OR` match). */
|
|
111
|
+
intelligenceConfigurationIds?: Array<string>;
|
|
112
|
+
/** Filters Conversations to those where at least one of the specified Language Operators was executed (`OR` match). */
|
|
113
|
+
operatorIds?: Array<string>;
|
|
114
|
+
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
115
|
+
limit?: number;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Options to pass to page
|
|
119
|
+
*/
|
|
120
|
+
export interface ConversationListInstancePageOptions {
|
|
121
|
+
/** The maximum number of resources to return */
|
|
122
|
+
pageSize?: number;
|
|
123
|
+
/** Token for pagination */
|
|
124
|
+
pageToken?: string;
|
|
125
|
+
/** Filter by Conversations created before this timestamp. */
|
|
126
|
+
createdAtBefore?: Date;
|
|
127
|
+
/** Filter by Conversations created after this timestamp. */
|
|
128
|
+
createdAtAfter?: Date;
|
|
129
|
+
/** Filter by Conversation status. */
|
|
130
|
+
status?: "ACTIVE" | "INACTIVE" | "CLOSED";
|
|
131
|
+
/** Filters Conversations by the underlying channel resource ID, such as a Call ID or Message ID. */
|
|
132
|
+
channelId?: string;
|
|
133
|
+
/** Filters Conversations that include one or more of the specified communication channels (`OR` match). */
|
|
134
|
+
channels?: Array<"VOICE" | "SMS" | "RCS" | "EMAIL" | "WHATSAPP" | "CHAT" | "API" | "SYSTEM">;
|
|
135
|
+
/** The configuration `id` used to generate the Conversation. */
|
|
136
|
+
conversationConfigurationId?: string;
|
|
137
|
+
/** Filters Conversations activated by one or more of the specified Intelligence Configuration IDs (`OR` match). */
|
|
138
|
+
intelligenceConfigurationIds?: Array<string>;
|
|
139
|
+
/** Filters Conversations to those where at least one of the specified Language Operators was executed (`OR` match). */
|
|
140
|
+
operatorIds?: Array<string>;
|
|
141
|
+
}
|
|
142
|
+
export interface ConversationContext {
|
|
143
|
+
/**
|
|
144
|
+
* Fetch a ConversationInstance
|
|
145
|
+
*
|
|
146
|
+
* @param callback - Callback to handle processed record
|
|
147
|
+
*
|
|
148
|
+
* @returns Resolves to processed ConversationInstance
|
|
149
|
+
*/
|
|
150
|
+
fetch(callback?: (error: Error | null, item?: ConversationInstance) => any): Promise<ConversationInstance>;
|
|
151
|
+
/**
|
|
152
|
+
* Fetch a ConversationInstance and return HTTP info
|
|
153
|
+
*
|
|
154
|
+
* @param callback - Callback to handle processed record
|
|
155
|
+
*
|
|
156
|
+
* @returns Resolves to processed ConversationInstance with HTTP metadata
|
|
157
|
+
*/
|
|
158
|
+
fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ConversationInstance>) => any): Promise<ApiResponse<ConversationInstance>>;
|
|
159
|
+
/**
|
|
160
|
+
* Provide a user-friendly representation
|
|
161
|
+
*/
|
|
162
|
+
toJSON(): any;
|
|
163
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
164
|
+
}
|
|
165
|
+
export interface ConversationContextSolution {
|
|
166
|
+
id: string;
|
|
167
|
+
}
|
|
168
|
+
export declare class ConversationContextImpl implements ConversationContext {
|
|
169
|
+
protected _version: V3;
|
|
170
|
+
protected _solution: ConversationContextSolution;
|
|
171
|
+
protected _uri: string;
|
|
172
|
+
constructor(_version: V3, id: string);
|
|
173
|
+
fetch(callback?: (error: Error | null, item?: ConversationInstance) => any): Promise<ConversationInstance>;
|
|
174
|
+
fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ConversationInstance>) => any): Promise<ApiResponse<ConversationInstance>>;
|
|
175
|
+
/**
|
|
176
|
+
* Provide a user-friendly representation
|
|
177
|
+
*
|
|
178
|
+
* @returns Object
|
|
179
|
+
*/
|
|
180
|
+
toJSON(): ConversationContextSolution;
|
|
181
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Nested model for Communication
|
|
185
|
+
*/
|
|
186
|
+
export interface Communication {
|
|
187
|
+
id: string;
|
|
188
|
+
participantId: string;
|
|
189
|
+
content: Content;
|
|
190
|
+
createdAt: Date;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Nested model for Content
|
|
194
|
+
*/
|
|
195
|
+
export interface Content {
|
|
196
|
+
text?: string;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Nested model for Participant
|
|
200
|
+
*/
|
|
201
|
+
export interface Participant {
|
|
202
|
+
id: string;
|
|
203
|
+
name?: string;
|
|
204
|
+
type?: string;
|
|
205
|
+
addressValues: Array<string>;
|
|
206
|
+
}
|
|
207
|
+
interface ConversationPayload extends TokenPaginationPayload {
|
|
208
|
+
items: ConversationResource[];
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Response model for FetchConversation200Response operations
|
|
212
|
+
*/
|
|
213
|
+
interface FetchConversation200Response_ResponseResource {
|
|
214
|
+
id: string;
|
|
215
|
+
accountId: string;
|
|
216
|
+
name: string;
|
|
217
|
+
status: ConversationStatus;
|
|
218
|
+
createdAt: Date;
|
|
219
|
+
updatedAt: Date;
|
|
220
|
+
intelligenceConfigurationIds: Array<string>;
|
|
221
|
+
conversationConfigurationId: string;
|
|
222
|
+
channels: Array<Channel>;
|
|
223
|
+
channelIds: Array<string>;
|
|
224
|
+
participants: Array<Participant>;
|
|
225
|
+
communications: Array<Communication>;
|
|
226
|
+
operatorResultIds: Array<string>;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Response model for ConversationListItem operations
|
|
230
|
+
*/
|
|
231
|
+
interface ConversationListItem_ResponseResource {
|
|
232
|
+
id: string;
|
|
233
|
+
accountId: string;
|
|
234
|
+
name: string;
|
|
235
|
+
status: ConversationStatus;
|
|
236
|
+
createdAt: Date;
|
|
237
|
+
updatedAt: Date;
|
|
238
|
+
intelligenceConfigurationIds: Array<string>;
|
|
239
|
+
conversationConfigurationId: string;
|
|
240
|
+
channels: Array<Channel>;
|
|
241
|
+
channelIds: Array<string>;
|
|
242
|
+
participants: Array<Participant>;
|
|
243
|
+
operatorResultIds: Array<string>;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Union type for all possible response models
|
|
247
|
+
*/
|
|
248
|
+
type ConversationResource = FetchConversation200Response_ResponseResource | ConversationListItem_ResponseResource;
|
|
249
|
+
export declare class ConversationInstance {
|
|
250
|
+
protected _version: V3;
|
|
251
|
+
protected _solution: ConversationContextSolution;
|
|
252
|
+
protected _context?: ConversationContext;
|
|
253
|
+
constructor(_version: V3, _payload: ConversationResource, id?: string);
|
|
254
|
+
/**
|
|
255
|
+
* The `id` of the Conversation attached to the Operator Result.
|
|
256
|
+
*/
|
|
257
|
+
id?: string;
|
|
258
|
+
/**
|
|
259
|
+
* The ID of the account that owns the Conversation.
|
|
260
|
+
*/
|
|
261
|
+
accountId?: string;
|
|
262
|
+
/**
|
|
263
|
+
* Display name of the Conversation.
|
|
264
|
+
*/
|
|
265
|
+
name?: string;
|
|
266
|
+
status?: ConversationStatus;
|
|
267
|
+
/**
|
|
268
|
+
* Timestamp for when the Conversation was created.
|
|
269
|
+
*/
|
|
270
|
+
createdAt?: Date;
|
|
271
|
+
/**
|
|
272
|
+
* Timestamp for when the Conversation was last updated.
|
|
273
|
+
*/
|
|
274
|
+
updatedAt?: Date;
|
|
275
|
+
/**
|
|
276
|
+
* The Intelligence Configuration(s) associated with the Conversation.
|
|
277
|
+
*/
|
|
278
|
+
intelligenceConfigurationIds?: Array<string>;
|
|
279
|
+
/**
|
|
280
|
+
* The `id` of the Configuration for a Conversation.
|
|
281
|
+
*/
|
|
282
|
+
conversationConfigurationId?: string;
|
|
283
|
+
/**
|
|
284
|
+
* The communication channel(s) included in the Conversation.
|
|
285
|
+
*/
|
|
286
|
+
channels?: Array<Channel>;
|
|
287
|
+
/**
|
|
288
|
+
* The underlying channel resource `id`s associated with this Conversation, such as a Call ID or Message ID.
|
|
289
|
+
*/
|
|
290
|
+
channelIds?: Array<string>;
|
|
291
|
+
/**
|
|
292
|
+
* Metadata for Participants of the Conversation.
|
|
293
|
+
*/
|
|
294
|
+
participants?: Array<Participant>;
|
|
295
|
+
/**
|
|
296
|
+
* Metadata for the Communications that make up the Conversation.
|
|
297
|
+
*/
|
|
298
|
+
communications?: Array<Communication>;
|
|
299
|
+
/**
|
|
300
|
+
* List of Operator Result IDs generated from this Conversation.
|
|
301
|
+
*/
|
|
302
|
+
operatorResultIds?: Array<string>;
|
|
303
|
+
private get _proxy();
|
|
304
|
+
/**
|
|
305
|
+
* Fetch a ConversationInstance
|
|
306
|
+
*
|
|
307
|
+
* @param callback - Callback to handle processed record
|
|
308
|
+
*
|
|
309
|
+
* @returns Resolves to processed ConversationInstance
|
|
310
|
+
*/
|
|
311
|
+
fetch(callback?: (error: Error | null, item?: ConversationInstance) => any): Promise<ConversationInstance>;
|
|
312
|
+
/**
|
|
313
|
+
* Fetch a ConversationInstance and return HTTP info
|
|
314
|
+
*
|
|
315
|
+
* @param callback - Callback to handle processed record
|
|
316
|
+
*
|
|
317
|
+
* @returns Resolves to processed ConversationInstance with HTTP metadata
|
|
318
|
+
*/
|
|
319
|
+
fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ConversationInstance>) => any): Promise<ApiResponse<ConversationInstance>>;
|
|
320
|
+
/**
|
|
321
|
+
* Provide a user-friendly representation
|
|
322
|
+
*
|
|
323
|
+
* @returns Object
|
|
324
|
+
*/
|
|
325
|
+
toJSON(): {
|
|
326
|
+
id: string;
|
|
327
|
+
accountId: string;
|
|
328
|
+
name: string;
|
|
329
|
+
status: ConversationStatus;
|
|
330
|
+
createdAt: Date;
|
|
331
|
+
updatedAt: Date;
|
|
332
|
+
intelligenceConfigurationIds: string[];
|
|
333
|
+
conversationConfigurationId: string;
|
|
334
|
+
channels: Channel[];
|
|
335
|
+
channelIds: string[];
|
|
336
|
+
participants: Participant[];
|
|
337
|
+
communications: Communication[];
|
|
338
|
+
operatorResultIds: string[];
|
|
339
|
+
};
|
|
340
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
341
|
+
}
|
|
342
|
+
export interface ConversationSolution {
|
|
343
|
+
}
|
|
344
|
+
export interface ConversationListInstance {
|
|
345
|
+
_version: V3;
|
|
346
|
+
_solution: ConversationSolution;
|
|
347
|
+
_uri: string;
|
|
348
|
+
(id: string): ConversationContext;
|
|
349
|
+
get(id: string): ConversationContext;
|
|
350
|
+
/**
|
|
351
|
+
* Streams ConversationInstance records from the API.
|
|
352
|
+
*
|
|
353
|
+
* This operation lazily loads records as efficiently as possible until the limit
|
|
354
|
+
* is reached.
|
|
355
|
+
*
|
|
356
|
+
* The results are passed into the callback function, so this operation is memory
|
|
357
|
+
* efficient.
|
|
358
|
+
*
|
|
359
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
360
|
+
* function.
|
|
361
|
+
*
|
|
362
|
+
* @param { ConversationListInstanceEachOptions } [params] - Options for request
|
|
363
|
+
* @param { function } [callback] - Function to process each record
|
|
364
|
+
*/
|
|
365
|
+
each(callback?: (item: ConversationInstance, done: (err?: Error) => void) => void): void;
|
|
366
|
+
each(params: ConversationListInstanceEachOptions, callback?: (item: ConversationInstance, done: (err?: Error) => void) => void): void;
|
|
367
|
+
/**
|
|
368
|
+
* Streams ConversationInstance records from the API with HTTP metadata captured per page.
|
|
369
|
+
*
|
|
370
|
+
* This operation lazily loads records as efficiently as possible until the limit
|
|
371
|
+
* is reached. HTTP metadata (status code, headers) is captured for each page request.
|
|
372
|
+
*
|
|
373
|
+
* The results are passed into the callback function, so this operation is memory
|
|
374
|
+
* efficient.
|
|
375
|
+
*
|
|
376
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
377
|
+
* function.
|
|
378
|
+
*
|
|
379
|
+
* @param { ConversationListInstanceEachOptions } [params] - Options for request
|
|
380
|
+
* @param { function } [callback] - Function to process each record
|
|
381
|
+
*/
|
|
382
|
+
eachWithHttpInfo(callback?: (item: ConversationInstance, done: (err?: Error) => void) => void): void;
|
|
383
|
+
eachWithHttpInfo(params: ConversationListInstanceEachOptions, callback?: (item: ConversationInstance, done: (err?: Error) => void) => void): void;
|
|
384
|
+
/**
|
|
385
|
+
* Retrieve a single target page of ConversationInstance records from the API.
|
|
386
|
+
*
|
|
387
|
+
* The request is executed immediately.
|
|
388
|
+
*
|
|
389
|
+
* @param { string } [targetUrl] - API-generated URL for the requested results page
|
|
390
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
391
|
+
*/
|
|
392
|
+
getPage(targetUrl: string, callback?: (error: Error | null, items: ConversationPage) => any): Promise<ConversationPage>;
|
|
393
|
+
/**
|
|
394
|
+
* Retrieve a single target page of ConversationInstance records from the API with HTTP metadata.
|
|
395
|
+
*
|
|
396
|
+
* The request is executed immediately.
|
|
397
|
+
*
|
|
398
|
+
* @param { string } [targetUrl] - API-generated URL for the requested results page
|
|
399
|
+
* @param { function } [callback] - Callback to handle list of records with metadata
|
|
400
|
+
*/
|
|
401
|
+
getPageWithHttpInfo(targetUrl: string, callback?: (error: Error | null, items: ApiResponse<ConversationPage>) => any): Promise<ApiResponse<ConversationPage>>;
|
|
402
|
+
/**
|
|
403
|
+
* Lists ConversationInstance records from the API as a list.
|
|
404
|
+
*
|
|
405
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
406
|
+
* function.
|
|
407
|
+
*
|
|
408
|
+
* @param { ConversationListInstanceOptions } [params] - Options for request
|
|
409
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
410
|
+
*/
|
|
411
|
+
list(callback?: (error: Error | null, items: ConversationInstance[]) => any): Promise<ConversationInstance[]>;
|
|
412
|
+
list(params: ConversationListInstanceOptions, callback?: (error: Error | null, items: ConversationInstance[]) => any): Promise<ConversationInstance[]>;
|
|
413
|
+
/**
|
|
414
|
+
* Lists ConversationInstance records from the API as a list with HTTP metadata.
|
|
415
|
+
*
|
|
416
|
+
* Returns all records along with HTTP metadata from the first page fetched.
|
|
417
|
+
*
|
|
418
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
419
|
+
* function.
|
|
420
|
+
*
|
|
421
|
+
* @param { ConversationListInstanceOptions } [params] - Options for request
|
|
422
|
+
* @param { function } [callback] - Callback to handle list of records with metadata
|
|
423
|
+
*/
|
|
424
|
+
listWithHttpInfo(callback?: (error: Error | null, items: ApiResponse<ConversationInstance[]>) => any): Promise<ApiResponse<ConversationInstance[]>>;
|
|
425
|
+
listWithHttpInfo(params: ConversationListInstanceOptions, callback?: (error: Error | null, items: ApiResponse<ConversationInstance[]>) => any): Promise<ApiResponse<ConversationInstance[]>>;
|
|
426
|
+
/**
|
|
427
|
+
* Retrieve a single page of ConversationInstance records from the API.
|
|
428
|
+
*
|
|
429
|
+
* The request is executed immediately.
|
|
430
|
+
*
|
|
431
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
432
|
+
* function.
|
|
433
|
+
*
|
|
434
|
+
* @param { ConversationListInstancePageOptions } [params] - Options for request
|
|
435
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
436
|
+
*/
|
|
437
|
+
page(callback?: (error: Error | null, items: ConversationPage) => any): Promise<ConversationPage>;
|
|
438
|
+
page(params: ConversationListInstancePageOptions, callback?: (error: Error | null, items: ConversationPage) => any): Promise<ConversationPage>;
|
|
439
|
+
/**
|
|
440
|
+
* Retrieve a single page of ConversationInstance records from the API with HTTP metadata.
|
|
441
|
+
*
|
|
442
|
+
* The request is executed immediately.
|
|
443
|
+
*
|
|
444
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
445
|
+
* function.
|
|
446
|
+
*
|
|
447
|
+
* @param { ConversationListInstancePageOptions } [params] - Options for request
|
|
448
|
+
* @param { function } [callback] - Callback to handle list of records with metadata
|
|
449
|
+
*/
|
|
450
|
+
pageWithHttpInfo(callback?: (error: Error | null, items: ApiResponse<ConversationPage>) => any): Promise<ApiResponse<ConversationPage>>;
|
|
451
|
+
pageWithHttpInfo(params: ConversationListInstancePageOptions, callback?: (error: Error | null, items: ApiResponse<ConversationPage>) => any): Promise<ApiResponse<ConversationPage>>;
|
|
452
|
+
/**
|
|
453
|
+
* Provide a user-friendly representation
|
|
454
|
+
*/
|
|
455
|
+
toJSON(): any;
|
|
456
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
457
|
+
}
|
|
458
|
+
export declare function ConversationListInstance(version: V3): ConversationListInstance;
|
|
459
|
+
export declare class ConversationPage extends TokenPage<V3, ConversationPayload, ConversationResource, ConversationInstance> {
|
|
460
|
+
/**
|
|
461
|
+
* Initialize the ConversationPage
|
|
462
|
+
*
|
|
463
|
+
* @param version - Version of the resource
|
|
464
|
+
* @param response - Response from the API
|
|
465
|
+
* @param uri - URI of the resource
|
|
466
|
+
* @param params - Query parameters
|
|
467
|
+
* @param solution - Path solution
|
|
468
|
+
*/
|
|
469
|
+
constructor(version: V3, response: Response<string>, uri: string, params: any, solution: ConversationSolution);
|
|
470
|
+
/**
|
|
471
|
+
* Build an instance of ConversationInstance
|
|
472
|
+
*
|
|
473
|
+
* @param payload - Payload response from the API
|
|
474
|
+
*/
|
|
475
|
+
getInstance(payload: ConversationResource): ConversationInstance;
|
|
476
|
+
[inspect.custom](depth: any, options: InspectOptions): string;
|
|
477
|
+
}
|
|
478
|
+
export {};
|