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,936 @@
|
|
|
1
|
+
import { inspect, InspectOptions } from "util";
|
|
2
|
+
import TokenPage, { TokenPaginationPayload } from "../../../base/TokenPage";
|
|
3
|
+
import Response from "../../../http/response";
|
|
4
|
+
import V2 from "../V2";
|
|
5
|
+
import { ApiResponse } from "../../../base/ApiResponse";
|
|
6
|
+
export declare class ConversationsV2Address {
|
|
7
|
+
/**
|
|
8
|
+
* The channel for Communication.
|
|
9
|
+
*/
|
|
10
|
+
"channel": string;
|
|
11
|
+
/**
|
|
12
|
+
* The address value formatted according to channel type: - SMS/VOICE: E.164 phone number (such as \"+18005550100\") - WHATSAPP: Phone number with whatsapp prefix (such as \"whatsapp:+18005550100\") - RCS: Sender ID or phone number with rcs prefix (such as \"rcs:brand_acme_agent\" or \"rcs:+18005550100\") - CHAT: Customer-defined string identifier
|
|
13
|
+
*/
|
|
14
|
+
"address": string;
|
|
15
|
+
/**
|
|
16
|
+
* Channel-specific ID for correlating Communications.
|
|
17
|
+
*/
|
|
18
|
+
"channelId"?: string;
|
|
19
|
+
constructor(payload: any);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Configuration for Conversations V1 bridge. When set, messaging channels route through Conversations V1. Use this to integrate with existing Conversations V1 applications.
|
|
23
|
+
*/
|
|
24
|
+
export declare class ConversationsV2ConversationsV1Bridge {
|
|
25
|
+
/**
|
|
26
|
+
* The Conversations V1 Service SID (IS prefix). One configuration per V1 Service SID.
|
|
27
|
+
*/
|
|
28
|
+
"serviceId": string;
|
|
29
|
+
constructor(payload: any);
|
|
30
|
+
}
|
|
31
|
+
export declare class ConversationsV2Participant {
|
|
32
|
+
/**
|
|
33
|
+
* Participant ID.
|
|
34
|
+
*/
|
|
35
|
+
"id": string;
|
|
36
|
+
/**
|
|
37
|
+
* Conversation ID.
|
|
38
|
+
*/
|
|
39
|
+
"conversationId": string;
|
|
40
|
+
/**
|
|
41
|
+
* Account ID.
|
|
42
|
+
*/
|
|
43
|
+
"accountId": string;
|
|
44
|
+
/**
|
|
45
|
+
* Participant display name.
|
|
46
|
+
*/
|
|
47
|
+
"name": string;
|
|
48
|
+
/**
|
|
49
|
+
* Type of Participant in the Conversation.
|
|
50
|
+
*/
|
|
51
|
+
"type"?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Profile ID. Note: This field is only resolved for `CUSTOMER` participant types, not for `HUMAN_AGENT` or `AI_AGENT` participants.
|
|
54
|
+
*/
|
|
55
|
+
"profileId"?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Communication addresses for this Participant. Address format varies by channel: - SMS/VOICE: E.164 phone number (such as \"+18005550100\") - EMAIL: Email address (such as \"user@example.com\") - WHATSAPP: Phone number with whatsapp prefix (such as \"whatsapp:+18005550100\") - RCS: Sender ID or phone number with rcs prefix (such as \"rcs:brand_acme_agent\" or \"rcs:+18005550100\")
|
|
58
|
+
*/
|
|
59
|
+
"addresses"?: Array<ConversationsV2Address>;
|
|
60
|
+
/**
|
|
61
|
+
* Timestamp when this Participant was created.
|
|
62
|
+
*/
|
|
63
|
+
"createdAt"?: Date;
|
|
64
|
+
/**
|
|
65
|
+
* Timestamp when this Participant was last updated.
|
|
66
|
+
*/
|
|
67
|
+
"updatedAt"?: Date;
|
|
68
|
+
constructor(payload: any);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Default webhook configuration for Conversation-level events under this Configuration.
|
|
72
|
+
*/
|
|
73
|
+
export declare class ConversationsV2StatusCallbackConfig {
|
|
74
|
+
/**
|
|
75
|
+
* Destination URL for webhooks.
|
|
76
|
+
*/
|
|
77
|
+
"url": string;
|
|
78
|
+
/**
|
|
79
|
+
* HTTP method used to invoke the webhook URL.
|
|
80
|
+
*/
|
|
81
|
+
"method"?: string;
|
|
82
|
+
constructor(payload: any);
|
|
83
|
+
}
|
|
84
|
+
export declare class CreateConversationWithConfigRequest {
|
|
85
|
+
/**
|
|
86
|
+
* The ID of an existing configuration.
|
|
87
|
+
*/
|
|
88
|
+
"configurationId": string;
|
|
89
|
+
/**
|
|
90
|
+
* The name of the conversation.
|
|
91
|
+
*/
|
|
92
|
+
"name"?: string;
|
|
93
|
+
"configuration"?: CreateConversationWithConfigRequestConfiguration;
|
|
94
|
+
/**
|
|
95
|
+
* Optional list of Participants to create with the Conversation.
|
|
96
|
+
*/
|
|
97
|
+
"participants"?: Array<CreateConversationWithConfigRequestParticipants>;
|
|
98
|
+
constructor(payload: any);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Conversation configuration settings.
|
|
102
|
+
*/
|
|
103
|
+
export declare class CreateConversationWithConfigRequestConfiguration {
|
|
104
|
+
/**
|
|
105
|
+
* A list of Conversational Intelligence configuration IDs.
|
|
106
|
+
*/
|
|
107
|
+
"intelligenceConfigurationIds"?: Array<string>;
|
|
108
|
+
constructor(payload: any);
|
|
109
|
+
}
|
|
110
|
+
export declare class CreateConversationWithConfigRequestParticipants {
|
|
111
|
+
/**
|
|
112
|
+
* Display name for the Participant.
|
|
113
|
+
*/
|
|
114
|
+
"name"?: string;
|
|
115
|
+
/**
|
|
116
|
+
* Type of Participant in the Conversation.
|
|
117
|
+
*/
|
|
118
|
+
"type"?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Resolved profile ID.
|
|
121
|
+
*/
|
|
122
|
+
"profileId"?: string;
|
|
123
|
+
/**
|
|
124
|
+
* List of Communication addresses for the Participant.
|
|
125
|
+
*/
|
|
126
|
+
"addresses"?: Array<CreateConversationWithConfigRequestParticipantsAddresses>;
|
|
127
|
+
constructor(payload: any);
|
|
128
|
+
}
|
|
129
|
+
export declare class CreateConversationWithConfigRequestParticipantsAddresses {
|
|
130
|
+
"channel": string;
|
|
131
|
+
"address": string;
|
|
132
|
+
"channelId"?: string;
|
|
133
|
+
constructor(payload: any);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Full configuration settings for this Conversation.
|
|
137
|
+
*/
|
|
138
|
+
export declare class ListConversationByAccount200ResponseConversationsConfiguration {
|
|
139
|
+
/**
|
|
140
|
+
* A human-readable name for the configuration. Limited to 32 characters.
|
|
141
|
+
*/
|
|
142
|
+
"displayName"?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Human-readable description for the Configuration.
|
|
145
|
+
*/
|
|
146
|
+
"description"?: string;
|
|
147
|
+
/**
|
|
148
|
+
* Type of Conversation grouping strategy: - `GROUP_BY_PROFILE`: Groups Communications by resolved Profile from the Memory Store. A Profile is looked up or created for `CUSTOMER` Participant types. All Communications from the same Profile are in the same Conversation, regardless of address or channel. - `GROUP_BY_PARTICIPANT_ADDRESSES`: Groups Communications by Participant addresses across all channels. A customer using +18005550100 will be in the same Conversation whether they contact by SMS, WhatsApp, or RCS. - `GROUP_BY_PARTICIPANT_ADDRESSES_AND_CHANNEL_TYPE`: Groups Communications by both Participant addresses AND channel. A customer using +18005550100 by SMS will be in a different Conversation than the same customer by Voice.
|
|
149
|
+
*/
|
|
150
|
+
"conversationGroupingType"?: string;
|
|
151
|
+
/**
|
|
152
|
+
* Memory Store ID for Profile resolution.
|
|
153
|
+
*/
|
|
154
|
+
"memoryStoreId"?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Channel-specific parameters forwarded as-is to the downstream sending service. Allows passing backend-specific fields without requiring API changes.
|
|
157
|
+
*/
|
|
158
|
+
"channelSettings"?: {
|
|
159
|
+
[key: string]: any;
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* List of default webhook configurations applied to Conversations under this Configuration.
|
|
163
|
+
*/
|
|
164
|
+
"statusCallbacks"?: Array<ConversationsV2StatusCallbackConfig>;
|
|
165
|
+
/**
|
|
166
|
+
* List of Intelligence Configuration IDs configured for this Configuration.
|
|
167
|
+
*/
|
|
168
|
+
"intelligenceConfigurationIds"?: Array<string>;
|
|
169
|
+
/**
|
|
170
|
+
* Whether memory extraction is enabled for conversations under this configuration. Defaults to false.
|
|
171
|
+
*/
|
|
172
|
+
"memoryExtractionEnabled"?: boolean;
|
|
173
|
+
"conversationsV1Bridge"?: ConversationsV2ConversationsV1Bridge;
|
|
174
|
+
constructor(payload: any);
|
|
175
|
+
}
|
|
176
|
+
export declare class PatchConversationByIdRequest {
|
|
177
|
+
/**
|
|
178
|
+
* The name of the Conversation.
|
|
179
|
+
*/
|
|
180
|
+
"name"?: string;
|
|
181
|
+
/**
|
|
182
|
+
* The state of the Conversation.
|
|
183
|
+
*/
|
|
184
|
+
"status"?: string;
|
|
185
|
+
"configuration"?: PatchConversationByIdRequestConfiguration;
|
|
186
|
+
constructor(payload: any);
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Partial configuration update for an existing conversation. Only statusCallbacks can be modified.
|
|
190
|
+
*/
|
|
191
|
+
export declare class PatchConversationByIdRequestConfiguration {
|
|
192
|
+
/**
|
|
193
|
+
* List of webhook configurations for this conversation. Send an empty array to clear all callbacks and stop webhook delivery.
|
|
194
|
+
*/
|
|
195
|
+
"statusCallbacks"?: Array<ConversationsV2StatusCallbackConfig>;
|
|
196
|
+
constructor(payload: any);
|
|
197
|
+
}
|
|
198
|
+
export declare class UpdateConversationByIdRequest {
|
|
199
|
+
/**
|
|
200
|
+
* The name of the Conversation.
|
|
201
|
+
*/
|
|
202
|
+
"name"?: string;
|
|
203
|
+
/**
|
|
204
|
+
* The state of the Conversation.
|
|
205
|
+
*/
|
|
206
|
+
"status": string;
|
|
207
|
+
constructor(payload: any);
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Options to pass to remove a ConversationInstance
|
|
211
|
+
*/
|
|
212
|
+
export interface ConversationContextRemoveOptions {
|
|
213
|
+
/** Client-generated UUID key to ensure idempotent behavior. Submitting the same key returns the original response without creating a duplicate operation. Keys are scoped to account + region with a 24-hour TTL. */
|
|
214
|
+
idempotencyKey?: string;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Options to pass to patch a ConversationInstance
|
|
218
|
+
*/
|
|
219
|
+
export interface ConversationContextPatchOptions {
|
|
220
|
+
/** The conversation fields to update */
|
|
221
|
+
patchConversationByIdRequest?: PatchConversationByIdRequest;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Options to pass to update a ConversationInstance
|
|
225
|
+
*/
|
|
226
|
+
export interface ConversationContextUpdateOptions {
|
|
227
|
+
/** The conversation to update */
|
|
228
|
+
updateConversationByIdRequest?: UpdateConversationByIdRequest;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Options to pass to create a ConversationInstance
|
|
232
|
+
*/
|
|
233
|
+
export interface ConversationListInstanceCreateOptions {
|
|
234
|
+
/** */
|
|
235
|
+
createConversationWithConfigRequest?: CreateConversationWithConfigRequest;
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Options to pass to each
|
|
239
|
+
*/
|
|
240
|
+
export interface ConversationListInstanceEachOptions {
|
|
241
|
+
/** Filters for specific statuses */
|
|
242
|
+
status?: Array<"ACTIVE" | "INACTIVE" | "CLOSED">;
|
|
243
|
+
/** The resource identifier (such as callSid or messageSid) to filter conversations. */
|
|
244
|
+
channelId?: string;
|
|
245
|
+
/** Maximum number of items to return in a single response */
|
|
246
|
+
pageSize?: number;
|
|
247
|
+
/** A URL-safe, base64-encoded token representing the page of results to return */
|
|
248
|
+
pageToken?: string;
|
|
249
|
+
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
250
|
+
callback?: (item: ConversationInstance, done: (err?: Error) => void) => void;
|
|
251
|
+
/** Function to be called upon completion of streaming */
|
|
252
|
+
done?: Function;
|
|
253
|
+
/** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
|
|
254
|
+
limit?: number;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Options to pass to list
|
|
258
|
+
*/
|
|
259
|
+
export interface ConversationListInstanceOptions {
|
|
260
|
+
/** Filters for specific statuses */
|
|
261
|
+
status?: Array<"ACTIVE" | "INACTIVE" | "CLOSED">;
|
|
262
|
+
/** The resource identifier (such as callSid or messageSid) to filter conversations. */
|
|
263
|
+
channelId?: string;
|
|
264
|
+
/** Maximum number of items to return in a single response */
|
|
265
|
+
pageSize?: number;
|
|
266
|
+
/** A URL-safe, base64-encoded token representing the page of results to return */
|
|
267
|
+
pageToken?: string;
|
|
268
|
+
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
269
|
+
limit?: number;
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Options to pass to page
|
|
273
|
+
*/
|
|
274
|
+
export interface ConversationListInstancePageOptions {
|
|
275
|
+
/** Filters for specific statuses */
|
|
276
|
+
status?: Array<"ACTIVE" | "INACTIVE" | "CLOSED">;
|
|
277
|
+
/** The resource identifier (such as callSid or messageSid) to filter conversations. */
|
|
278
|
+
channelId?: string;
|
|
279
|
+
/** Maximum number of items to return in a single response */
|
|
280
|
+
pageSize?: number;
|
|
281
|
+
/** A URL-safe, base64-encoded token representing the page of results to return */
|
|
282
|
+
pageToken?: string;
|
|
283
|
+
}
|
|
284
|
+
export interface ConversationContext {
|
|
285
|
+
/**
|
|
286
|
+
* Remove a ConversationInstance
|
|
287
|
+
*
|
|
288
|
+
* @param callback - Callback to handle processed record
|
|
289
|
+
*
|
|
290
|
+
* @returns Resolves to processed ConversationInstance
|
|
291
|
+
*/
|
|
292
|
+
remove(callback?: (error: Error | null, item?: ConversationInstance) => any): Promise<ConversationInstance>;
|
|
293
|
+
/**
|
|
294
|
+
* Remove a ConversationInstance
|
|
295
|
+
*
|
|
296
|
+
* @param params - Parameter for request
|
|
297
|
+
* @param callback - Callback to handle processed record
|
|
298
|
+
*
|
|
299
|
+
* @returns Resolves to processed ConversationInstance
|
|
300
|
+
*/
|
|
301
|
+
remove(params: ConversationContextRemoveOptions, callback?: (error: Error | null, item?: ConversationInstance) => any): Promise<ConversationInstance>;
|
|
302
|
+
/**
|
|
303
|
+
* Remove a ConversationInstance and return HTTP info
|
|
304
|
+
*
|
|
305
|
+
* @param callback - Callback to handle processed record
|
|
306
|
+
*
|
|
307
|
+
* @returns Resolves to processed ConversationInstance with HTTP metadata
|
|
308
|
+
*/
|
|
309
|
+
removeWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ConversationInstance>) => any): Promise<ApiResponse<ConversationInstance>>;
|
|
310
|
+
/**
|
|
311
|
+
* Remove a ConversationInstance and return HTTP info
|
|
312
|
+
*
|
|
313
|
+
* @param params - Parameter for request
|
|
314
|
+
* @param callback - Callback to handle processed record
|
|
315
|
+
*
|
|
316
|
+
* @returns Resolves to processed ConversationInstance with HTTP metadata
|
|
317
|
+
*/
|
|
318
|
+
removeWithHttpInfo(params: ConversationContextRemoveOptions, callback?: (error: Error | null, item?: ApiResponse<ConversationInstance>) => any): Promise<ApiResponse<ConversationInstance>>;
|
|
319
|
+
/**
|
|
320
|
+
* Fetch a ConversationInstance
|
|
321
|
+
*
|
|
322
|
+
* @param callback - Callback to handle processed record
|
|
323
|
+
*
|
|
324
|
+
* @returns Resolves to processed ConversationInstance
|
|
325
|
+
*/
|
|
326
|
+
fetch(callback?: (error: Error | null, item?: ConversationInstance) => any): Promise<ConversationInstance>;
|
|
327
|
+
/**
|
|
328
|
+
* Fetch a ConversationInstance and return HTTP info
|
|
329
|
+
*
|
|
330
|
+
* @param callback - Callback to handle processed record
|
|
331
|
+
*
|
|
332
|
+
* @returns Resolves to processed ConversationInstance with HTTP metadata
|
|
333
|
+
*/
|
|
334
|
+
fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ConversationInstance>) => any): Promise<ApiResponse<ConversationInstance>>;
|
|
335
|
+
/**
|
|
336
|
+
* Patch a ConversationInstance
|
|
337
|
+
*
|
|
338
|
+
* @param callback - Callback to handle processed record
|
|
339
|
+
*
|
|
340
|
+
* @returns Resolves to processed ConversationInstance
|
|
341
|
+
*/
|
|
342
|
+
patch(callback?: (error: Error | null, item?: ConversationInstance) => any): Promise<ConversationInstance>;
|
|
343
|
+
/**
|
|
344
|
+
* Patch a ConversationInstance
|
|
345
|
+
*
|
|
346
|
+
* @param params - Body for request
|
|
347
|
+
* @param headers - header params for request
|
|
348
|
+
* @param callback - Callback to handle processed record
|
|
349
|
+
*
|
|
350
|
+
* @returns Resolves to processed ConversationInstance
|
|
351
|
+
*/
|
|
352
|
+
patch(params: PatchConversationByIdRequest, headers?: any, callback?: (error: Error | null, item?: ConversationInstance) => any): Promise<ConversationInstance>;
|
|
353
|
+
/**
|
|
354
|
+
* Patch a ConversationInstance and return HTTP info
|
|
355
|
+
*
|
|
356
|
+
* @param callback - Callback to handle processed record
|
|
357
|
+
*
|
|
358
|
+
* @returns Resolves to processed ConversationInstance with HTTP metadata
|
|
359
|
+
*/
|
|
360
|
+
patchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ConversationInstance>) => any): Promise<ApiResponse<ConversationInstance>>;
|
|
361
|
+
/**
|
|
362
|
+
* Patch a ConversationInstance and return HTTP info
|
|
363
|
+
*
|
|
364
|
+
* @param params - Body for request
|
|
365
|
+
* @param headers - header params for request
|
|
366
|
+
* @param callback - Callback to handle processed record
|
|
367
|
+
*
|
|
368
|
+
* @returns Resolves to processed ConversationInstance with HTTP metadata
|
|
369
|
+
*/
|
|
370
|
+
patchWithHttpInfo(params: PatchConversationByIdRequest, headers?: any, callback?: (error: Error | null, item?: ApiResponse<ConversationInstance>) => any): Promise<ApiResponse<ConversationInstance>>;
|
|
371
|
+
/**
|
|
372
|
+
* Update a ConversationInstance
|
|
373
|
+
*
|
|
374
|
+
* @param callback - Callback to handle processed record
|
|
375
|
+
*
|
|
376
|
+
* @returns Resolves to processed ConversationInstance
|
|
377
|
+
*/
|
|
378
|
+
update(callback?: (error: Error | null, item?: ConversationInstance) => any): Promise<ConversationInstance>;
|
|
379
|
+
/**
|
|
380
|
+
* Update a ConversationInstance
|
|
381
|
+
*
|
|
382
|
+
* @param params - Body for request
|
|
383
|
+
* @param headers - header params for request
|
|
384
|
+
* @param callback - Callback to handle processed record
|
|
385
|
+
*
|
|
386
|
+
* @returns Resolves to processed ConversationInstance
|
|
387
|
+
*/
|
|
388
|
+
update(params: UpdateConversationByIdRequest, headers?: any, callback?: (error: Error | null, item?: ConversationInstance) => any): Promise<ConversationInstance>;
|
|
389
|
+
/**
|
|
390
|
+
* Update a ConversationInstance and return HTTP info
|
|
391
|
+
*
|
|
392
|
+
* @param callback - Callback to handle processed record
|
|
393
|
+
*
|
|
394
|
+
* @returns Resolves to processed ConversationInstance with HTTP metadata
|
|
395
|
+
*/
|
|
396
|
+
updateWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ConversationInstance>) => any): Promise<ApiResponse<ConversationInstance>>;
|
|
397
|
+
/**
|
|
398
|
+
* Update a ConversationInstance and return HTTP info
|
|
399
|
+
*
|
|
400
|
+
* @param params - Body for request
|
|
401
|
+
* @param headers - header params for request
|
|
402
|
+
* @param callback - Callback to handle processed record
|
|
403
|
+
*
|
|
404
|
+
* @returns Resolves to processed ConversationInstance with HTTP metadata
|
|
405
|
+
*/
|
|
406
|
+
updateWithHttpInfo(params: UpdateConversationByIdRequest, headers?: any, callback?: (error: Error | null, item?: ApiResponse<ConversationInstance>) => any): Promise<ApiResponse<ConversationInstance>>;
|
|
407
|
+
/**
|
|
408
|
+
* Provide a user-friendly representation
|
|
409
|
+
*/
|
|
410
|
+
toJSON(): any;
|
|
411
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
412
|
+
}
|
|
413
|
+
export interface ConversationContextSolution {
|
|
414
|
+
sid: string;
|
|
415
|
+
}
|
|
416
|
+
export declare class ConversationContextImpl implements ConversationContext {
|
|
417
|
+
protected _version: V2;
|
|
418
|
+
protected _solution: ConversationContextSolution;
|
|
419
|
+
protected _uri: string;
|
|
420
|
+
constructor(_version: V2, sid: string);
|
|
421
|
+
remove(params?: ConversationContextRemoveOptions | ((error: Error | null, item?: ConversationInstance) => any), callback?: (error: Error | null, item?: ConversationInstance) => any): Promise<ConversationInstance>;
|
|
422
|
+
removeWithHttpInfo(params?: ConversationContextRemoveOptions | ((error: Error | null, item?: ApiResponse<ConversationInstance>) => any), callback?: (error: Error | null, item?: ApiResponse<ConversationInstance>) => any): Promise<ApiResponse<ConversationInstance>>;
|
|
423
|
+
fetch(callback?: (error: Error | null, item?: ConversationInstance) => any): Promise<ConversationInstance>;
|
|
424
|
+
fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ConversationInstance>) => any): Promise<ApiResponse<ConversationInstance>>;
|
|
425
|
+
patch(params?: PatchConversationByIdRequest | ((error: Error | null, item?: ConversationInstance) => any), headers?: any, callback?: (error: Error | null, item?: ConversationInstance) => any): Promise<ConversationInstance>;
|
|
426
|
+
patchWithHttpInfo(params?: PatchConversationByIdRequest | ((error: Error | null, item?: ApiResponse<ConversationInstance>) => any), headers?: any, callback?: (error: Error | null, item?: ApiResponse<ConversationInstance>) => any): Promise<ApiResponse<ConversationInstance>>;
|
|
427
|
+
update(params?: UpdateConversationByIdRequest | ((error: Error | null, item?: ConversationInstance) => any), headers?: any, callback?: (error: Error | null, item?: ConversationInstance) => any): Promise<ConversationInstance>;
|
|
428
|
+
updateWithHttpInfo(params?: UpdateConversationByIdRequest | ((error: Error | null, item?: ApiResponse<ConversationInstance>) => any), headers?: any, callback?: (error: Error | null, item?: ApiResponse<ConversationInstance>) => any): Promise<ApiResponse<ConversationInstance>>;
|
|
429
|
+
/**
|
|
430
|
+
* Provide a user-friendly representation
|
|
431
|
+
*
|
|
432
|
+
* @returns Object
|
|
433
|
+
*/
|
|
434
|
+
toJSON(): ConversationContextSolution;
|
|
435
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* Nested model for ConversationsV2Address
|
|
439
|
+
*/
|
|
440
|
+
export interface ConversationsV2Address {
|
|
441
|
+
channel: string;
|
|
442
|
+
address: string;
|
|
443
|
+
channelId?: string;
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* Nested model for ConversationsV2ConversationsV1Bridge
|
|
447
|
+
*/
|
|
448
|
+
export interface ConversationsV2ConversationsV1Bridge {
|
|
449
|
+
serviceId: string;
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* Nested model for ConversationsV2Participant
|
|
453
|
+
*/
|
|
454
|
+
export interface ConversationsV2Participant {
|
|
455
|
+
id: string;
|
|
456
|
+
conversationId: string;
|
|
457
|
+
accountId: string;
|
|
458
|
+
name: string;
|
|
459
|
+
type?: string;
|
|
460
|
+
profileId?: string;
|
|
461
|
+
addresses?: Array<ConversationsV2Address>;
|
|
462
|
+
createdAt?: Date;
|
|
463
|
+
updatedAt?: Date;
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* Nested model for ConversationsV2StatusCallbackConfig
|
|
467
|
+
*/
|
|
468
|
+
export interface ConversationsV2StatusCallbackConfig {
|
|
469
|
+
url: string;
|
|
470
|
+
method?: string;
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* Nested model for CreateConversationWithConfigRequest
|
|
474
|
+
*/
|
|
475
|
+
export interface CreateConversationWithConfigRequest {
|
|
476
|
+
configurationId: string;
|
|
477
|
+
name?: string;
|
|
478
|
+
configuration?: CreateConversationWithConfigRequestConfiguration;
|
|
479
|
+
participants?: Array<CreateConversationWithConfigRequestParticipants>;
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
482
|
+
* Nested model for CreateConversationWithConfigRequestConfiguration
|
|
483
|
+
*/
|
|
484
|
+
export interface CreateConversationWithConfigRequestConfiguration {
|
|
485
|
+
intelligenceConfigurationIds?: Array<string>;
|
|
486
|
+
}
|
|
487
|
+
/**
|
|
488
|
+
* Nested model for CreateConversationWithConfigRequestParticipants
|
|
489
|
+
*/
|
|
490
|
+
export interface CreateConversationWithConfigRequestParticipants {
|
|
491
|
+
name?: string;
|
|
492
|
+
type?: string;
|
|
493
|
+
profileId?: string;
|
|
494
|
+
addresses?: Array<CreateConversationWithConfigRequestParticipantsAddresses>;
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* Nested model for CreateConversationWithConfigRequestParticipantsAddresses
|
|
498
|
+
*/
|
|
499
|
+
export interface CreateConversationWithConfigRequestParticipantsAddresses {
|
|
500
|
+
channel: string;
|
|
501
|
+
address: string;
|
|
502
|
+
channelId?: string;
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* Nested model for ListConversationByAccount200ResponseConversationsConfiguration
|
|
506
|
+
*/
|
|
507
|
+
export interface ListConversationByAccount200ResponseConversationsConfiguration {
|
|
508
|
+
displayName?: string;
|
|
509
|
+
description?: string;
|
|
510
|
+
conversationGroupingType?: string;
|
|
511
|
+
memoryStoreId?: string;
|
|
512
|
+
channelSettings?: {
|
|
513
|
+
[key: string]: any;
|
|
514
|
+
};
|
|
515
|
+
statusCallbacks?: Array<ConversationsV2StatusCallbackConfig>;
|
|
516
|
+
intelligenceConfigurationIds?: Array<string>;
|
|
517
|
+
memoryExtractionEnabled?: boolean;
|
|
518
|
+
conversationsV1Bridge?: ConversationsV2ConversationsV1Bridge;
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* Nested model for PatchConversationByIdRequest
|
|
522
|
+
*/
|
|
523
|
+
export interface PatchConversationByIdRequest {
|
|
524
|
+
name?: string;
|
|
525
|
+
status?: string;
|
|
526
|
+
configuration?: PatchConversationByIdRequestConfiguration;
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* Nested model for PatchConversationByIdRequestConfiguration
|
|
530
|
+
*/
|
|
531
|
+
export interface PatchConversationByIdRequestConfiguration {
|
|
532
|
+
statusCallbacks?: Array<ConversationsV2StatusCallbackConfig>;
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* Nested model for UpdateConversationByIdRequest
|
|
536
|
+
*/
|
|
537
|
+
export interface UpdateConversationByIdRequest {
|
|
538
|
+
name?: string;
|
|
539
|
+
status: string;
|
|
540
|
+
}
|
|
541
|
+
interface ConversationPayload extends TokenPaginationPayload {
|
|
542
|
+
conversations: ConversationResource[];
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* Response model for CreateConfiguration202Response operations
|
|
546
|
+
*/
|
|
547
|
+
interface CreateConfiguration202Response_ResponseResource {
|
|
548
|
+
statusUrl: string;
|
|
549
|
+
related?: {
|
|
550
|
+
[key: string]: string;
|
|
551
|
+
};
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
554
|
+
* Response model for ListConversationByAccount200ResponseConversations operations
|
|
555
|
+
*/
|
|
556
|
+
interface ListConversationByAccount200ResponseConversations_ResponseResource {
|
|
557
|
+
id: string;
|
|
558
|
+
accountId: string;
|
|
559
|
+
configurationId: string;
|
|
560
|
+
status?: string;
|
|
561
|
+
name?: string;
|
|
562
|
+
createdAt?: Date;
|
|
563
|
+
updatedAt?: Date;
|
|
564
|
+
configuration?: ListConversationByAccount200ResponseConversationsConfiguration;
|
|
565
|
+
participants?: Array<ConversationsV2Participant>;
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* Union type for all possible response models
|
|
569
|
+
*/
|
|
570
|
+
type ConversationResource = CreateConfiguration202Response_ResponseResource | ListConversationByAccount200ResponseConversations_ResponseResource;
|
|
571
|
+
export declare class ConversationInstance {
|
|
572
|
+
protected _version: V2;
|
|
573
|
+
protected _solution: ConversationContextSolution;
|
|
574
|
+
protected _context?: ConversationContext;
|
|
575
|
+
constructor(_version: V2, _payload: ConversationResource, sid?: string);
|
|
576
|
+
/**
|
|
577
|
+
* URL to poll for operation status.
|
|
578
|
+
*/
|
|
579
|
+
statusUrl?: string;
|
|
580
|
+
/**
|
|
581
|
+
* Named resource identifiers associated with this operation. Keys depend on the operation type: - config-create, config-update, config-delete: configurationId - conversation-delete: conversationId
|
|
582
|
+
*/
|
|
583
|
+
related?: {
|
|
584
|
+
[key: string]: string;
|
|
585
|
+
};
|
|
586
|
+
/**
|
|
587
|
+
* Conversation ID.
|
|
588
|
+
*/
|
|
589
|
+
id?: string;
|
|
590
|
+
/**
|
|
591
|
+
* Account ID.
|
|
592
|
+
*/
|
|
593
|
+
accountId?: string;
|
|
594
|
+
/**
|
|
595
|
+
* Configuration ID.
|
|
596
|
+
*/
|
|
597
|
+
configurationId?: string;
|
|
598
|
+
/**
|
|
599
|
+
* Conversation status.
|
|
600
|
+
*/
|
|
601
|
+
status?: string;
|
|
602
|
+
/**
|
|
603
|
+
* Conversation name.
|
|
604
|
+
*/
|
|
605
|
+
name?: string;
|
|
606
|
+
/**
|
|
607
|
+
* Timestamp when this Conversation was created.
|
|
608
|
+
*/
|
|
609
|
+
createdAt?: Date;
|
|
610
|
+
/**
|
|
611
|
+
* Timestamp when this Conversation was last updated.
|
|
612
|
+
*/
|
|
613
|
+
updatedAt?: Date;
|
|
614
|
+
configuration?: ListConversationByAccount200ResponseConversationsConfiguration;
|
|
615
|
+
/**
|
|
616
|
+
* Participants in this Conversation.
|
|
617
|
+
*/
|
|
618
|
+
participants?: Array<ConversationsV2Participant>;
|
|
619
|
+
private get _proxy();
|
|
620
|
+
/**
|
|
621
|
+
* Remove a ConversationInstance
|
|
622
|
+
*
|
|
623
|
+
* @param callback - Callback to handle processed record
|
|
624
|
+
*
|
|
625
|
+
* @returns Resolves to processed ConversationInstance
|
|
626
|
+
*/
|
|
627
|
+
remove(callback?: (error: Error | null, item?: ConversationInstance) => any): Promise<ConversationInstance>;
|
|
628
|
+
/**
|
|
629
|
+
* Remove a ConversationInstance
|
|
630
|
+
*
|
|
631
|
+
* @param params - Parameter for request
|
|
632
|
+
* @param callback - Callback to handle processed record
|
|
633
|
+
*
|
|
634
|
+
* @returns Resolves to processed ConversationInstance
|
|
635
|
+
*/
|
|
636
|
+
remove(params: ConversationContextRemoveOptions, callback?: (error: Error | null, item?: ConversationInstance) => any): Promise<ConversationInstance>;
|
|
637
|
+
/**
|
|
638
|
+
* Remove a ConversationInstance and return HTTP info
|
|
639
|
+
*
|
|
640
|
+
* @param callback - Callback to handle processed record
|
|
641
|
+
*
|
|
642
|
+
* @returns Resolves to processed ConversationInstance with HTTP metadata
|
|
643
|
+
*/
|
|
644
|
+
removeWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ConversationInstance>) => any): Promise<ApiResponse<ConversationInstance>>;
|
|
645
|
+
/**
|
|
646
|
+
* Remove a ConversationInstance and return HTTP info
|
|
647
|
+
*
|
|
648
|
+
* @param params - Parameter for request
|
|
649
|
+
* @param callback - Callback to handle processed record
|
|
650
|
+
*
|
|
651
|
+
* @returns Resolves to processed ConversationInstance with HTTP metadata
|
|
652
|
+
*/
|
|
653
|
+
removeWithHttpInfo(params: ConversationContextRemoveOptions, callback?: (error: Error | null, item?: ApiResponse<ConversationInstance>) => any): Promise<ApiResponse<ConversationInstance>>;
|
|
654
|
+
/**
|
|
655
|
+
* Fetch a ConversationInstance
|
|
656
|
+
*
|
|
657
|
+
* @param callback - Callback to handle processed record
|
|
658
|
+
*
|
|
659
|
+
* @returns Resolves to processed ConversationInstance
|
|
660
|
+
*/
|
|
661
|
+
fetch(callback?: (error: Error | null, item?: ConversationInstance) => any): Promise<ConversationInstance>;
|
|
662
|
+
/**
|
|
663
|
+
* Fetch a ConversationInstance and return HTTP info
|
|
664
|
+
*
|
|
665
|
+
* @param callback - Callback to handle processed record
|
|
666
|
+
*
|
|
667
|
+
* @returns Resolves to processed ConversationInstance with HTTP metadata
|
|
668
|
+
*/
|
|
669
|
+
fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ConversationInstance>) => any): Promise<ApiResponse<ConversationInstance>>;
|
|
670
|
+
/**
|
|
671
|
+
* Patch a ConversationInstance
|
|
672
|
+
*
|
|
673
|
+
* @param callback - Callback to handle processed record
|
|
674
|
+
*
|
|
675
|
+
* @returns Resolves to processed ConversationInstance
|
|
676
|
+
*/
|
|
677
|
+
patch(callback?: (error: Error | null, item?: ConversationInstance) => any): Promise<ConversationInstance>;
|
|
678
|
+
/**
|
|
679
|
+
* Patch a ConversationInstance
|
|
680
|
+
*
|
|
681
|
+
* @param params - Body for request
|
|
682
|
+
* @param headers - header params for request
|
|
683
|
+
* @param callback - Callback to handle processed record
|
|
684
|
+
*
|
|
685
|
+
* @returns Resolves to processed ConversationInstance
|
|
686
|
+
*/
|
|
687
|
+
patch(params: PatchConversationByIdRequest, headers?: any, callback?: (error: Error | null, item?: ConversationInstance) => any): Promise<ConversationInstance>;
|
|
688
|
+
/**
|
|
689
|
+
* Patch a ConversationInstance and return HTTP info
|
|
690
|
+
*
|
|
691
|
+
* @param callback - Callback to handle processed record
|
|
692
|
+
*
|
|
693
|
+
* @returns Resolves to processed ConversationInstance with HTTP metadata
|
|
694
|
+
*/
|
|
695
|
+
patchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ConversationInstance>) => any): Promise<ApiResponse<ConversationInstance>>;
|
|
696
|
+
/**
|
|
697
|
+
* Patch a ConversationInstance and return HTTP info
|
|
698
|
+
*
|
|
699
|
+
* @param params - Body for request
|
|
700
|
+
* @param headers - header params for request
|
|
701
|
+
* @param callback - Callback to handle processed record
|
|
702
|
+
*
|
|
703
|
+
* @returns Resolves to processed ConversationInstance with HTTP metadata
|
|
704
|
+
*/
|
|
705
|
+
patchWithHttpInfo(params: PatchConversationByIdRequest, headers?: any, callback?: (error: Error | null, item?: ApiResponse<ConversationInstance>) => any): Promise<ApiResponse<ConversationInstance>>;
|
|
706
|
+
/**
|
|
707
|
+
* Update a ConversationInstance
|
|
708
|
+
*
|
|
709
|
+
* @param callback - Callback to handle processed record
|
|
710
|
+
*
|
|
711
|
+
* @returns Resolves to processed ConversationInstance
|
|
712
|
+
*/
|
|
713
|
+
update(callback?: (error: Error | null, item?: ConversationInstance) => any): Promise<ConversationInstance>;
|
|
714
|
+
/**
|
|
715
|
+
* Update a ConversationInstance
|
|
716
|
+
*
|
|
717
|
+
* @param params - Body for request
|
|
718
|
+
* @param headers - header params for request
|
|
719
|
+
* @param callback - Callback to handle processed record
|
|
720
|
+
*
|
|
721
|
+
* @returns Resolves to processed ConversationInstance
|
|
722
|
+
*/
|
|
723
|
+
update(params: UpdateConversationByIdRequest, headers?: any, callback?: (error: Error | null, item?: ConversationInstance) => any): Promise<ConversationInstance>;
|
|
724
|
+
/**
|
|
725
|
+
* Update a ConversationInstance and return HTTP info
|
|
726
|
+
*
|
|
727
|
+
* @param callback - Callback to handle processed record
|
|
728
|
+
*
|
|
729
|
+
* @returns Resolves to processed ConversationInstance with HTTP metadata
|
|
730
|
+
*/
|
|
731
|
+
updateWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ConversationInstance>) => any): Promise<ApiResponse<ConversationInstance>>;
|
|
732
|
+
/**
|
|
733
|
+
* Update a ConversationInstance and return HTTP info
|
|
734
|
+
*
|
|
735
|
+
* @param params - Body for request
|
|
736
|
+
* @param headers - header params for request
|
|
737
|
+
* @param callback - Callback to handle processed record
|
|
738
|
+
*
|
|
739
|
+
* @returns Resolves to processed ConversationInstance with HTTP metadata
|
|
740
|
+
*/
|
|
741
|
+
updateWithHttpInfo(params: UpdateConversationByIdRequest, headers?: any, callback?: (error: Error | null, item?: ApiResponse<ConversationInstance>) => any): Promise<ApiResponse<ConversationInstance>>;
|
|
742
|
+
/**
|
|
743
|
+
* Provide a user-friendly representation
|
|
744
|
+
*
|
|
745
|
+
* @returns Object
|
|
746
|
+
*/
|
|
747
|
+
toJSON(): {
|
|
748
|
+
statusUrl: string;
|
|
749
|
+
related: {
|
|
750
|
+
[key: string]: string;
|
|
751
|
+
};
|
|
752
|
+
id: string;
|
|
753
|
+
accountId: string;
|
|
754
|
+
configurationId: string;
|
|
755
|
+
status: string;
|
|
756
|
+
name: string;
|
|
757
|
+
createdAt: Date;
|
|
758
|
+
updatedAt: Date;
|
|
759
|
+
configuration: ListConversationByAccount200ResponseConversationsConfiguration;
|
|
760
|
+
participants: ConversationsV2Participant[];
|
|
761
|
+
};
|
|
762
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
763
|
+
}
|
|
764
|
+
export interface ConversationSolution {
|
|
765
|
+
}
|
|
766
|
+
export interface ConversationListInstance {
|
|
767
|
+
_version: V2;
|
|
768
|
+
_solution: ConversationSolution;
|
|
769
|
+
_uri: string;
|
|
770
|
+
(sid: string): ConversationContext;
|
|
771
|
+
get(sid: string): ConversationContext;
|
|
772
|
+
/**
|
|
773
|
+
* Create a ConversationInstance
|
|
774
|
+
*
|
|
775
|
+
* @param callback - Callback to handle processed record
|
|
776
|
+
*
|
|
777
|
+
* @returns Resolves to processed ConversationInstance
|
|
778
|
+
*/
|
|
779
|
+
create(callback?: (error: Error | null, item?: ConversationInstance) => any): Promise<ConversationInstance>;
|
|
780
|
+
/**
|
|
781
|
+
* Create a ConversationInstance
|
|
782
|
+
*
|
|
783
|
+
* @param params - Body for request
|
|
784
|
+
* @param headers - header params for request
|
|
785
|
+
* @param callback - Callback to handle processed record
|
|
786
|
+
*
|
|
787
|
+
* @returns Resolves to processed ConversationInstance
|
|
788
|
+
*/
|
|
789
|
+
create(params: CreateConversationWithConfigRequest, headers?: any, callback?: (error: Error | null, item?: ConversationInstance) => any): Promise<ConversationInstance>;
|
|
790
|
+
/**
|
|
791
|
+
* Create a ConversationInstance and return HTTP info
|
|
792
|
+
*
|
|
793
|
+
* @param callback - Callback to handle processed record
|
|
794
|
+
*
|
|
795
|
+
* @returns Resolves to processed ConversationInstance with HTTP metadata
|
|
796
|
+
*/
|
|
797
|
+
createWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ConversationInstance>) => any): Promise<ApiResponse<ConversationInstance>>;
|
|
798
|
+
/**
|
|
799
|
+
* Create a ConversationInstance and return HTTP info
|
|
800
|
+
*
|
|
801
|
+
* @param params - Body for request
|
|
802
|
+
* @param headers - header params for request
|
|
803
|
+
* @param callback - Callback to handle processed record
|
|
804
|
+
*
|
|
805
|
+
* @returns Resolves to processed ConversationInstance with HTTP metadata
|
|
806
|
+
*/
|
|
807
|
+
createWithHttpInfo(params: CreateConversationWithConfigRequest, headers?: any, callback?: (error: Error | null, item?: ApiResponse<ConversationInstance>) => any): Promise<ApiResponse<ConversationInstance>>;
|
|
808
|
+
/**
|
|
809
|
+
* Streams ConversationInstance records from the API.
|
|
810
|
+
*
|
|
811
|
+
* This operation lazily loads records as efficiently as possible until the limit
|
|
812
|
+
* is reached.
|
|
813
|
+
*
|
|
814
|
+
* The results are passed into the callback function, so this operation is memory
|
|
815
|
+
* efficient.
|
|
816
|
+
*
|
|
817
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
818
|
+
* function.
|
|
819
|
+
*
|
|
820
|
+
* @param { ConversationListInstanceEachOptions } [params] - Options for request
|
|
821
|
+
* @param { function } [callback] - Function to process each record
|
|
822
|
+
*/
|
|
823
|
+
each(callback?: (item: ConversationInstance, done: (err?: Error) => void) => void): void;
|
|
824
|
+
each(params: ConversationListInstanceEachOptions, callback?: (item: ConversationInstance, done: (err?: Error) => void) => void): void;
|
|
825
|
+
/**
|
|
826
|
+
* Streams ConversationInstance records from the API with HTTP metadata captured per page.
|
|
827
|
+
*
|
|
828
|
+
* This operation lazily loads records as efficiently as possible until the limit
|
|
829
|
+
* is reached. HTTP metadata (status code, headers) is captured for each page request.
|
|
830
|
+
*
|
|
831
|
+
* The results are passed into the callback function, so this operation is memory
|
|
832
|
+
* efficient.
|
|
833
|
+
*
|
|
834
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
835
|
+
* function.
|
|
836
|
+
*
|
|
837
|
+
* @param { ConversationListInstanceEachOptions } [params] - Options for request
|
|
838
|
+
* @param { function } [callback] - Function to process each record
|
|
839
|
+
*/
|
|
840
|
+
eachWithHttpInfo(callback?: (item: ConversationInstance, done: (err?: Error) => void) => void): void;
|
|
841
|
+
eachWithHttpInfo(params: ConversationListInstanceEachOptions, callback?: (item: ConversationInstance, done: (err?: Error) => void) => void): void;
|
|
842
|
+
/**
|
|
843
|
+
* Retrieve a single target page of ConversationInstance records from the API.
|
|
844
|
+
*
|
|
845
|
+
* The request is executed immediately.
|
|
846
|
+
*
|
|
847
|
+
* @param { string } [targetUrl] - API-generated URL for the requested results page
|
|
848
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
849
|
+
*/
|
|
850
|
+
getPage(targetUrl: string, callback?: (error: Error | null, items: ConversationPage) => any): Promise<ConversationPage>;
|
|
851
|
+
/**
|
|
852
|
+
* Retrieve a single target page of ConversationInstance records from the API with HTTP metadata.
|
|
853
|
+
*
|
|
854
|
+
* The request is executed immediately.
|
|
855
|
+
*
|
|
856
|
+
* @param { string } [targetUrl] - API-generated URL for the requested results page
|
|
857
|
+
* @param { function } [callback] - Callback to handle list of records with metadata
|
|
858
|
+
*/
|
|
859
|
+
getPageWithHttpInfo(targetUrl: string, callback?: (error: Error | null, items: ApiResponse<ConversationPage>) => any): Promise<ApiResponse<ConversationPage>>;
|
|
860
|
+
/**
|
|
861
|
+
* Lists ConversationInstance records from the API as a list.
|
|
862
|
+
*
|
|
863
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
864
|
+
* function.
|
|
865
|
+
*
|
|
866
|
+
* @param { ConversationListInstanceOptions } [params] - Options for request
|
|
867
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
868
|
+
*/
|
|
869
|
+
list(callback?: (error: Error | null, items: ConversationInstance[]) => any): Promise<ConversationInstance[]>;
|
|
870
|
+
list(params: ConversationListInstanceOptions, callback?: (error: Error | null, items: ConversationInstance[]) => any): Promise<ConversationInstance[]>;
|
|
871
|
+
/**
|
|
872
|
+
* Lists ConversationInstance records from the API as a list with HTTP metadata.
|
|
873
|
+
*
|
|
874
|
+
* Returns all records along with HTTP metadata from the first page fetched.
|
|
875
|
+
*
|
|
876
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
877
|
+
* function.
|
|
878
|
+
*
|
|
879
|
+
* @param { ConversationListInstanceOptions } [params] - Options for request
|
|
880
|
+
* @param { function } [callback] - Callback to handle list of records with metadata
|
|
881
|
+
*/
|
|
882
|
+
listWithHttpInfo(callback?: (error: Error | null, items: ApiResponse<ConversationInstance[]>) => any): Promise<ApiResponse<ConversationInstance[]>>;
|
|
883
|
+
listWithHttpInfo(params: ConversationListInstanceOptions, callback?: (error: Error | null, items: ApiResponse<ConversationInstance[]>) => any): Promise<ApiResponse<ConversationInstance[]>>;
|
|
884
|
+
/**
|
|
885
|
+
* Retrieve a single page of ConversationInstance records from the API.
|
|
886
|
+
*
|
|
887
|
+
* The request is executed immediately.
|
|
888
|
+
*
|
|
889
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
890
|
+
* function.
|
|
891
|
+
*
|
|
892
|
+
* @param { ConversationListInstancePageOptions } [params] - Options for request
|
|
893
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
894
|
+
*/
|
|
895
|
+
page(callback?: (error: Error | null, items: ConversationPage) => any): Promise<ConversationPage>;
|
|
896
|
+
page(params: ConversationListInstancePageOptions, callback?: (error: Error | null, items: ConversationPage) => any): Promise<ConversationPage>;
|
|
897
|
+
/**
|
|
898
|
+
* Retrieve a single page of ConversationInstance records from the API with HTTP metadata.
|
|
899
|
+
*
|
|
900
|
+
* The request is executed immediately.
|
|
901
|
+
*
|
|
902
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
903
|
+
* function.
|
|
904
|
+
*
|
|
905
|
+
* @param { ConversationListInstancePageOptions } [params] - Options for request
|
|
906
|
+
* @param { function } [callback] - Callback to handle list of records with metadata
|
|
907
|
+
*/
|
|
908
|
+
pageWithHttpInfo(callback?: (error: Error | null, items: ApiResponse<ConversationPage>) => any): Promise<ApiResponse<ConversationPage>>;
|
|
909
|
+
pageWithHttpInfo(params: ConversationListInstancePageOptions, callback?: (error: Error | null, items: ApiResponse<ConversationPage>) => any): Promise<ApiResponse<ConversationPage>>;
|
|
910
|
+
/**
|
|
911
|
+
* Provide a user-friendly representation
|
|
912
|
+
*/
|
|
913
|
+
toJSON(): any;
|
|
914
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
915
|
+
}
|
|
916
|
+
export declare function ConversationListInstance(version: V2): ConversationListInstance;
|
|
917
|
+
export declare class ConversationPage extends TokenPage<V2, ConversationPayload, ConversationResource, ConversationInstance> {
|
|
918
|
+
/**
|
|
919
|
+
* Initialize the ConversationPage
|
|
920
|
+
*
|
|
921
|
+
* @param version - Version of the resource
|
|
922
|
+
* @param response - Response from the API
|
|
923
|
+
* @param uri - URI of the resource
|
|
924
|
+
* @param params - Query parameters
|
|
925
|
+
* @param solution - Path solution
|
|
926
|
+
*/
|
|
927
|
+
constructor(version: V2, response: Response<string>, uri: string, params: any, solution: ConversationSolution);
|
|
928
|
+
/**
|
|
929
|
+
* Build an instance of ConversationInstance
|
|
930
|
+
*
|
|
931
|
+
* @param payload - Payload response from the API
|
|
932
|
+
*/
|
|
933
|
+
getInstance(payload: ConversationResource): ConversationInstance;
|
|
934
|
+
[inspect.custom](depth: any, options: InspectOptions): string;
|
|
935
|
+
}
|
|
936
|
+
export {};
|