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.
Files changed (121) hide show
  1. package/lib/rest/ConversationsBase.d.ts +3 -0
  2. package/lib/rest/ConversationsBase.js +5 -0
  3. package/lib/rest/InsightsBase.d.ts +3 -0
  4. package/lib/rest/InsightsBase.js +5 -0
  5. package/lib/rest/IntelligenceBase.d.ts +3 -0
  6. package/lib/rest/IntelligenceBase.js +5 -0
  7. package/lib/rest/KnowledgeBase.d.ts +3 -0
  8. package/lib/rest/KnowledgeBase.js +5 -0
  9. package/lib/rest/Memory.d.ts +4 -0
  10. package/lib/rest/Memory.js +8 -0
  11. package/lib/rest/MemoryBase.d.ts +13 -0
  12. package/lib/rest/MemoryBase.js +31 -0
  13. package/lib/rest/Twilio.d.ts +5 -0
  14. package/lib/rest/Twilio.js +5 -0
  15. package/lib/rest/VoiceBase.d.ts +3 -0
  16. package/lib/rest/VoiceBase.js +5 -0
  17. package/lib/rest/api/v2010/account/call/recording.d.ts +2 -0
  18. package/lib/rest/api/v2010/account/call/recording.js +4 -0
  19. package/lib/rest/api/v2010/account/call/transcription.d.ts +1 -1
  20. package/lib/rest/api/v2010/account/call/transcription.js +6 -4
  21. package/lib/rest/api/v2010/account/call.d.ts +2 -0
  22. package/lib/rest/api/v2010/account/call.js +4 -0
  23. package/lib/rest/api/v2010/account/conference/participant.d.ts +2 -0
  24. package/lib/rest/api/v2010/account/conference/participant.js +4 -0
  25. package/lib/rest/conversations/V2.d.ts +38 -0
  26. package/lib/rest/conversations/V2.js +72 -0
  27. package/lib/rest/conversations/v2/action.d.ts +241 -0
  28. package/lib/rest/conversations/v2/action.js +246 -0
  29. package/lib/rest/conversations/v2/communication.d.ts +479 -0
  30. package/lib/rest/conversations/v2/communication.js +436 -0
  31. package/lib/rest/conversations/v2/configuration.d.ts +906 -0
  32. package/lib/rest/conversations/v2/configuration.js +619 -0
  33. package/lib/rest/conversations/v2/conversation.d.ts +936 -0
  34. package/lib/rest/conversations/v2/conversation.js +664 -0
  35. package/lib/rest/conversations/v2/operation.d.ts +167 -0
  36. package/lib/rest/conversations/v2/operation.js +170 -0
  37. package/lib/rest/conversations/v2/participant.d.ts +469 -0
  38. package/lib/rest/conversations/v2/participant.js +442 -0
  39. package/lib/rest/flexApi/v1/plugin/pluginVersions.d.ts +1 -1
  40. package/lib/rest/flexApi/v1/plugin/pluginVersions.js +8 -6
  41. package/lib/rest/insights/V3.d.ts +20 -0
  42. package/lib/rest/insights/V3.js +42 -0
  43. package/lib/rest/insights/v1/call/callSummary.d.ts +10 -10
  44. package/lib/rest/insights/v1/call/event.d.ts +4 -4
  45. package/lib/rest/insights/v1/callSummaries.d.ts +12 -9
  46. package/lib/rest/insights/v3/metadata.d.ts +115 -0
  47. package/lib/rest/insights/v3/metadata.js +118 -0
  48. package/lib/rest/insights/v3/query.d.ts +180 -0
  49. package/lib/rest/insights/v3/query.js +214 -0
  50. package/lib/rest/intelligence/V3.d.ts +35 -0
  51. package/lib/rest/intelligence/V3.js +65 -0
  52. package/lib/rest/intelligence/v3/configuration.d.ts +693 -0
  53. package/lib/rest/intelligence/v3/configuration.js +528 -0
  54. package/lib/rest/intelligence/v3/conversation.d.ts +478 -0
  55. package/lib/rest/intelligence/v3/conversation.js +342 -0
  56. package/lib/rest/intelligence/v3/operator.d.ts +619 -0
  57. package/lib/rest/intelligence/v3/operator.js +493 -0
  58. package/lib/rest/intelligence/v3/operatorResult.d.ts +543 -0
  59. package/lib/rest/intelligence/v3/operatorResult.js +478 -0
  60. package/lib/rest/intelligence/v3/version.d.ts +469 -0
  61. package/lib/rest/intelligence/v3/version.js +341 -0
  62. package/lib/rest/knowledge/V2.d.ts +31 -0
  63. package/lib/rest/knowledge/V2.js +62 -0
  64. package/lib/rest/knowledge/v2/chunk.d.ts +209 -0
  65. package/lib/rest/knowledge/v2/chunk.js +178 -0
  66. package/lib/rest/knowledge/v2/knowledge.d.ts +507 -0
  67. package/lib/rest/knowledge/v2/knowledge.js +466 -0
  68. package/lib/rest/knowledge/v2/knowledgeBasis.d.ts +484 -0
  69. package/lib/rest/knowledge/v2/knowledgeBasis.js +441 -0
  70. package/lib/rest/knowledge/v2/operation.d.ts +162 -0
  71. package/lib/rest/knowledge/v2/operation.js +175 -0
  72. package/lib/rest/knowledge/v2/search.d.ts +180 -0
  73. package/lib/rest/knowledge/v2/search.js +174 -0
  74. package/lib/rest/memory/V1.d.ts +76 -0
  75. package/lib/rest/memory/V1.js +140 -0
  76. package/lib/rest/memory/v1/bulk.d.ts +129 -0
  77. package/lib/rest/memory/v1/bulk.js +158 -0
  78. package/lib/rest/memory/v1/conversationSummary.d.ts +531 -0
  79. package/lib/rest/memory/v1/conversationSummary.js +473 -0
  80. package/lib/rest/memory/v1/dataMapping.d.ts +630 -0
  81. package/lib/rest/memory/v1/dataMapping.js +512 -0
  82. package/lib/rest/memory/v1/event.d.ts +153 -0
  83. package/lib/rest/memory/v1/event.js +159 -0
  84. package/lib/rest/memory/v1/identifier.d.ts +362 -0
  85. package/lib/rest/memory/v1/identifier.js +369 -0
  86. package/lib/rest/memory/v1/identityResolutionSetting.d.ts +247 -0
  87. package/lib/rest/memory/v1/identityResolutionSetting.js +229 -0
  88. package/lib/rest/memory/v1/import.d.ts +292 -0
  89. package/lib/rest/memory/v1/import.js +280 -0
  90. package/lib/rest/memory/v1/lookup.d.ts +82 -0
  91. package/lib/rest/memory/v1/lookup.js +118 -0
  92. package/lib/rest/memory/v1/observation.d.ts +521 -0
  93. package/lib/rest/memory/v1/observation.js +477 -0
  94. package/lib/rest/memory/v1/operation.d.ts +162 -0
  95. package/lib/rest/memory/v1/operation.js +175 -0
  96. package/lib/rest/memory/v1/profile.d.ts +548 -0
  97. package/lib/rest/memory/v1/profile.js +531 -0
  98. package/lib/rest/memory/v1/recall.d.ts +306 -0
  99. package/lib/rest/memory/v1/recall.js +234 -0
  100. package/lib/rest/memory/v1/revision.d.ts +246 -0
  101. package/lib/rest/memory/v1/revision.js +195 -0
  102. package/lib/rest/memory/v1/store.d.ts +544 -0
  103. package/lib/rest/memory/v1/store.js +534 -0
  104. package/lib/rest/memory/v1/trait.d.ts +233 -0
  105. package/lib/rest/memory/v1/trait.js +190 -0
  106. package/lib/rest/memory/v1/traitGroup.d.ts +758 -0
  107. package/lib/rest/memory/v1/traitGroup.js +555 -0
  108. package/lib/rest/messaging/v2/channelsSender.d.ts +8 -0
  109. package/lib/rest/messaging/v2/channelsSender.js +2 -0
  110. package/lib/rest/previewIam/versionless/organization/roleAssignment.d.ts +32 -0
  111. package/lib/rest/previewIam/versionless/organization/roleAssignment.js +14 -0
  112. package/lib/rest/studio/v2/flow.d.ts +4 -0
  113. package/lib/rest/studio/v2/flow.js +8 -0
  114. package/lib/rest/verify/v2/service/webhook.d.ts +2 -2
  115. package/lib/rest/verify/v2/service/webhook.js +8 -8
  116. package/lib/rest/voice/V3.d.ts +15 -0
  117. package/lib/rest/voice/V3.js +37 -0
  118. package/lib/rest/voice/v3/transcription.d.ts +378 -0
  119. package/lib/rest/voice/v3/transcription.js +264 -0
  120. package/lib/twiml/VoiceResponse.d.ts +8 -0
  121. package/package.json +1 -1
@@ -0,0 +1,479 @@
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 ContentTranscriptionTranscription {
7
+ "channel"?: number;
8
+ "confidence"?: number;
9
+ "engine"?: string;
10
+ constructor(payload: any);
11
+ }
12
+ /**
13
+ * Transcription metadata.
14
+ */
15
+ export declare class ConversationsV2ContentTranscriptionTranscription {
16
+ /**
17
+ * Audio channel identifier (0 for inbound, 1 for outbound).
18
+ */
19
+ "channel"?: number;
20
+ /**
21
+ * Overall confidence score for the transcription (0.0-1.0).
22
+ */
23
+ "confidence"?: number;
24
+ /**
25
+ * Transcription engine used.
26
+ */
27
+ "engine"?: string;
28
+ /**
29
+ * Word-level transcription data with timing information.
30
+ */
31
+ "words"?: Array<ConversationsV2ContentTranscriptionTranscriptionWords>;
32
+ constructor(payload: any);
33
+ }
34
+ export declare class ConversationsV2ContentTranscriptionTranscriptionWords {
35
+ /**
36
+ * The transcribed word.
37
+ */
38
+ "text": string;
39
+ /**
40
+ * Start timestamp of this word.
41
+ */
42
+ "startTime"?: Date;
43
+ /**
44
+ * End timestamp of this word.
45
+ */
46
+ "endTime"?: Date;
47
+ constructor(payload: any);
48
+ }
49
+ export declare class ConversationsV2ParticipantAddress {
50
+ /**
51
+ * 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
52
+ */
53
+ "address": string;
54
+ /**
55
+ * Channel type for the Participant address.
56
+ */
57
+ "channel": string;
58
+ /**
59
+ * Participant ID associated with this address.
60
+ */
61
+ "participantId"?: string;
62
+ constructor(payload: any);
63
+ }
64
+ export declare class CreateCommunicationInConversationRequest {
65
+ "author": CreateCommunicationInConversationRequestAuthor;
66
+ "content": CreateCommunicationInConversationRequestContent;
67
+ "channelId"?: string;
68
+ "recipients": Array<CreateCommunicationInConversationRequestAuthor>;
69
+ constructor(payload: any);
70
+ }
71
+ export declare class CreateCommunicationInConversationRequestAuthor {
72
+ "address": string;
73
+ "channel": string;
74
+ "participantId"?: string;
75
+ constructor(payload: any);
76
+ }
77
+ /**
78
+ * The content of the Communication.
79
+ */
80
+ export declare class CreateCommunicationInConversationRequestContent {
81
+ "type": string;
82
+ "text": string;
83
+ "transcription"?: ContentTranscriptionTranscription;
84
+ constructor(payload: any);
85
+ }
86
+ /**
87
+ * The content of the Communication using type field for discrimination.
88
+ */
89
+ export declare class ListCommunicationByConversation200ResponseCommunicationsContent {
90
+ /**
91
+ * Content type discriminator.
92
+ */
93
+ "type": string;
94
+ /**
95
+ * Transcribed text.
96
+ */
97
+ "text": string;
98
+ "transcription"?: ConversationsV2ContentTranscriptionTranscription;
99
+ constructor(payload: any);
100
+ }
101
+ export declare class ListCommunicationByConversation200ResponseCommunicationsRecipients {
102
+ /**
103
+ * 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
104
+ */
105
+ "address": string;
106
+ /**
107
+ * Channel type for the Participant address.
108
+ */
109
+ "channel": string;
110
+ /**
111
+ * Participant ID associated with this address.
112
+ */
113
+ "participantId"?: string;
114
+ /**
115
+ * Delivery status of the Communication to this recipient.
116
+ */
117
+ "deliveryStatus"?: string;
118
+ constructor(payload: any);
119
+ }
120
+ /**
121
+ * Options to pass to create a CommunicationInstance
122
+ */
123
+ export interface CommunicationListInstanceCreateOptions {
124
+ /** */
125
+ createCommunicationInConversationRequest?: CreateCommunicationInConversationRequest;
126
+ }
127
+ /**
128
+ * Options to pass to each
129
+ */
130
+ export interface CommunicationListInstanceEachOptions {
131
+ /** Resource identifier to filter communications */
132
+ channelId?: string;
133
+ /** Maximum number of items to return */
134
+ pageSize?: number;
135
+ /** Page token for pagination */
136
+ pageToken?: string;
137
+ /** Function to process each record. If this and a positional callback are passed, this one will be used */
138
+ callback?: (item: CommunicationInstance, done: (err?: Error) => void) => void;
139
+ /** Function to be called upon completion of streaming */
140
+ done?: Function;
141
+ /** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
142
+ limit?: number;
143
+ }
144
+ /**
145
+ * Options to pass to list
146
+ */
147
+ export interface CommunicationListInstanceOptions {
148
+ /** Resource identifier to filter communications */
149
+ channelId?: string;
150
+ /** Maximum number of items to return */
151
+ pageSize?: number;
152
+ /** Page token for pagination */
153
+ pageToken?: string;
154
+ /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
155
+ limit?: number;
156
+ }
157
+ /**
158
+ * Options to pass to page
159
+ */
160
+ export interface CommunicationListInstancePageOptions {
161
+ /** Resource identifier to filter communications */
162
+ channelId?: string;
163
+ /** Maximum number of items to return */
164
+ pageSize?: number;
165
+ /** Page token for pagination */
166
+ pageToken?: string;
167
+ }
168
+ export interface CommunicationContext {
169
+ /**
170
+ * Fetch a CommunicationInstance
171
+ *
172
+ * @param callback - Callback to handle processed record
173
+ *
174
+ * @returns Resolves to processed CommunicationInstance
175
+ */
176
+ fetch(callback?: (error: Error | null, item?: CommunicationInstance) => any): Promise<CommunicationInstance>;
177
+ /**
178
+ * Fetch a CommunicationInstance and return HTTP info
179
+ *
180
+ * @param callback - Callback to handle processed record
181
+ *
182
+ * @returns Resolves to processed CommunicationInstance with HTTP metadata
183
+ */
184
+ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<CommunicationInstance>) => any): Promise<ApiResponse<CommunicationInstance>>;
185
+ /**
186
+ * Provide a user-friendly representation
187
+ */
188
+ toJSON(): any;
189
+ [inspect.custom](_depth: any, options: InspectOptions): any;
190
+ }
191
+ export interface CommunicationContextSolution {
192
+ conversationSid: string;
193
+ sid: string;
194
+ }
195
+ export declare class CommunicationContextImpl implements CommunicationContext {
196
+ protected _version: V2;
197
+ protected _solution: CommunicationContextSolution;
198
+ protected _uri: string;
199
+ constructor(_version: V2, conversationSid: string, sid: string);
200
+ fetch(callback?: (error: Error | null, item?: CommunicationInstance) => any): Promise<CommunicationInstance>;
201
+ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<CommunicationInstance>) => any): Promise<ApiResponse<CommunicationInstance>>;
202
+ /**
203
+ * Provide a user-friendly representation
204
+ *
205
+ * @returns Object
206
+ */
207
+ toJSON(): CommunicationContextSolution;
208
+ [inspect.custom](_depth: any, options: InspectOptions): string;
209
+ }
210
+ interface CommunicationPayload extends TokenPaginationPayload {
211
+ communications: CommunicationResource[];
212
+ }
213
+ interface CommunicationResource {
214
+ id: string;
215
+ conversationId: string;
216
+ accountId: string;
217
+ author: ConversationsV2ParticipantAddress;
218
+ content: ListCommunicationByConversation200ResponseCommunicationsContent;
219
+ channelId: string;
220
+ resourceId: string;
221
+ recipients: Array<ListCommunicationByConversation200ResponseCommunicationsRecipients>;
222
+ createdAt: Date;
223
+ updatedAt: Date;
224
+ occurredAt: Date;
225
+ }
226
+ export declare class CommunicationInstance {
227
+ protected _version: V2;
228
+ protected _solution: CommunicationContextSolution;
229
+ protected _context?: CommunicationContext;
230
+ constructor(_version: V2, _payload: CommunicationResource, conversationSid: string, sid?: string);
231
+ /**
232
+ * Communication ID.
233
+ */
234
+ id: string;
235
+ /**
236
+ * Conversation ID.
237
+ */
238
+ conversationId: string;
239
+ /**
240
+ * Account ID.
241
+ */
242
+ accountId: string;
243
+ author: ConversationsV2ParticipantAddress;
244
+ content: ListCommunicationByConversation200ResponseCommunicationsContent;
245
+ /**
246
+ * Channel-specific reference ID.
247
+ */
248
+ channelId: string;
249
+ /**
250
+ * External resource identifier for this Communication (e.g. MessageSid for SMS/RCS/WhatsApp, TranscriptionSid + MessageIndex for Voice). When set, used for Communication deduplication/uniqueness within a Conversation.
251
+ */
252
+ resourceId: string;
253
+ /**
254
+ * Communication recipients.
255
+ */
256
+ recipients: Array<ListCommunicationByConversation200ResponseCommunicationsRecipients>;
257
+ /**
258
+ * Timestamp when this Communication was created.
259
+ */
260
+ createdAt: Date;
261
+ /**
262
+ * Timestamp when this Communication was last updated.
263
+ */
264
+ updatedAt: Date;
265
+ /**
266
+ * ISO 8601 timestamp when the communication occurred.
267
+ */
268
+ occurredAt: Date;
269
+ private get _proxy();
270
+ /**
271
+ * Fetch a CommunicationInstance
272
+ *
273
+ * @param callback - Callback to handle processed record
274
+ *
275
+ * @returns Resolves to processed CommunicationInstance
276
+ */
277
+ fetch(callback?: (error: Error | null, item?: CommunicationInstance) => any): Promise<CommunicationInstance>;
278
+ /**
279
+ * Fetch a CommunicationInstance and return HTTP info
280
+ *
281
+ * @param callback - Callback to handle processed record
282
+ *
283
+ * @returns Resolves to processed CommunicationInstance with HTTP metadata
284
+ */
285
+ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<CommunicationInstance>) => any): Promise<ApiResponse<CommunicationInstance>>;
286
+ /**
287
+ * Provide a user-friendly representation
288
+ *
289
+ * @returns Object
290
+ */
291
+ toJSON(): {
292
+ id: string;
293
+ conversationId: string;
294
+ accountId: string;
295
+ author: ConversationsV2ParticipantAddress;
296
+ content: ListCommunicationByConversation200ResponseCommunicationsContent;
297
+ channelId: string;
298
+ resourceId: string;
299
+ recipients: ListCommunicationByConversation200ResponseCommunicationsRecipients[];
300
+ createdAt: Date;
301
+ updatedAt: Date;
302
+ occurredAt: Date;
303
+ };
304
+ [inspect.custom](_depth: any, options: InspectOptions): string;
305
+ }
306
+ export interface CommunicationSolution {
307
+ conversationSid: string;
308
+ }
309
+ export interface CommunicationListInstance {
310
+ _version: V2;
311
+ _solution: CommunicationSolution;
312
+ _uri: string;
313
+ (sid: string): CommunicationContext;
314
+ get(sid: string): CommunicationContext;
315
+ /**
316
+ * Create a CommunicationInstance
317
+ *
318
+ * @param callback - Callback to handle processed record
319
+ *
320
+ * @returns Resolves to processed CommunicationInstance
321
+ */
322
+ create(callback?: (error: Error | null, item?: CommunicationInstance) => any): Promise<CommunicationInstance>;
323
+ /**
324
+ * Create a CommunicationInstance
325
+ *
326
+ * @param params - Body for request
327
+ * @param headers - header params for request
328
+ * @param callback - Callback to handle processed record
329
+ *
330
+ * @returns Resolves to processed CommunicationInstance
331
+ */
332
+ create(params: CreateCommunicationInConversationRequest, headers?: any, callback?: (error: Error | null, item?: CommunicationInstance) => any): Promise<CommunicationInstance>;
333
+ /**
334
+ * Create a CommunicationInstance and return HTTP info
335
+ *
336
+ * @param callback - Callback to handle processed record
337
+ *
338
+ * @returns Resolves to processed CommunicationInstance with HTTP metadata
339
+ */
340
+ createWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<CommunicationInstance>) => any): Promise<ApiResponse<CommunicationInstance>>;
341
+ /**
342
+ * Create a CommunicationInstance and return HTTP info
343
+ *
344
+ * @param params - Body for request
345
+ * @param headers - header params for request
346
+ * @param callback - Callback to handle processed record
347
+ *
348
+ * @returns Resolves to processed CommunicationInstance with HTTP metadata
349
+ */
350
+ createWithHttpInfo(params: CreateCommunicationInConversationRequest, headers?: any, callback?: (error: Error | null, item?: ApiResponse<CommunicationInstance>) => any): Promise<ApiResponse<CommunicationInstance>>;
351
+ /**
352
+ * Streams CommunicationInstance records from the API.
353
+ *
354
+ * This operation lazily loads records as efficiently as possible until the limit
355
+ * is reached.
356
+ *
357
+ * The results are passed into the callback function, so this operation is memory
358
+ * efficient.
359
+ *
360
+ * If a function is passed as the first argument, it will be used as the callback
361
+ * function.
362
+ *
363
+ * @param { CommunicationListInstanceEachOptions } [params] - Options for request
364
+ * @param { function } [callback] - Function to process each record
365
+ */
366
+ each(callback?: (item: CommunicationInstance, done: (err?: Error) => void) => void): void;
367
+ each(params: CommunicationListInstanceEachOptions, callback?: (item: CommunicationInstance, done: (err?: Error) => void) => void): void;
368
+ /**
369
+ * Streams CommunicationInstance records from the API with HTTP metadata captured per page.
370
+ *
371
+ * This operation lazily loads records as efficiently as possible until the limit
372
+ * is reached. HTTP metadata (status code, headers) is captured for each page request.
373
+ *
374
+ * The results are passed into the callback function, so this operation is memory
375
+ * efficient.
376
+ *
377
+ * If a function is passed as the first argument, it will be used as the callback
378
+ * function.
379
+ *
380
+ * @param { CommunicationListInstanceEachOptions } [params] - Options for request
381
+ * @param { function } [callback] - Function to process each record
382
+ */
383
+ eachWithHttpInfo(callback?: (item: CommunicationInstance, done: (err?: Error) => void) => void): void;
384
+ eachWithHttpInfo(params: CommunicationListInstanceEachOptions, callback?: (item: CommunicationInstance, done: (err?: Error) => void) => void): void;
385
+ /**
386
+ * Retrieve a single target page of CommunicationInstance records from the API.
387
+ *
388
+ * The request is executed immediately.
389
+ *
390
+ * @param { string } [targetUrl] - API-generated URL for the requested results page
391
+ * @param { function } [callback] - Callback to handle list of records
392
+ */
393
+ getPage(targetUrl: string, callback?: (error: Error | null, items: CommunicationPage) => any): Promise<CommunicationPage>;
394
+ /**
395
+ * Retrieve a single target page of CommunicationInstance records from the API with HTTP metadata.
396
+ *
397
+ * The request is executed immediately.
398
+ *
399
+ * @param { string } [targetUrl] - API-generated URL for the requested results page
400
+ * @param { function } [callback] - Callback to handle list of records with metadata
401
+ */
402
+ getPageWithHttpInfo(targetUrl: string, callback?: (error: Error | null, items: ApiResponse<CommunicationPage>) => any): Promise<ApiResponse<CommunicationPage>>;
403
+ /**
404
+ * Lists CommunicationInstance records from the API as a list.
405
+ *
406
+ * If a function is passed as the first argument, it will be used as the callback
407
+ * function.
408
+ *
409
+ * @param { CommunicationListInstanceOptions } [params] - Options for request
410
+ * @param { function } [callback] - Callback to handle list of records
411
+ */
412
+ list(callback?: (error: Error | null, items: CommunicationInstance[]) => any): Promise<CommunicationInstance[]>;
413
+ list(params: CommunicationListInstanceOptions, callback?: (error: Error | null, items: CommunicationInstance[]) => any): Promise<CommunicationInstance[]>;
414
+ /**
415
+ * Lists CommunicationInstance records from the API as a list with HTTP metadata.
416
+ *
417
+ * Returns all records along with HTTP metadata from the first page fetched.
418
+ *
419
+ * If a function is passed as the first argument, it will be used as the callback
420
+ * function.
421
+ *
422
+ * @param { CommunicationListInstanceOptions } [params] - Options for request
423
+ * @param { function } [callback] - Callback to handle list of records with metadata
424
+ */
425
+ listWithHttpInfo(callback?: (error: Error | null, items: ApiResponse<CommunicationInstance[]>) => any): Promise<ApiResponse<CommunicationInstance[]>>;
426
+ listWithHttpInfo(params: CommunicationListInstanceOptions, callback?: (error: Error | null, items: ApiResponse<CommunicationInstance[]>) => any): Promise<ApiResponse<CommunicationInstance[]>>;
427
+ /**
428
+ * Retrieve a single page of CommunicationInstance records from the API.
429
+ *
430
+ * The request is executed immediately.
431
+ *
432
+ * If a function is passed as the first argument, it will be used as the callback
433
+ * function.
434
+ *
435
+ * @param { CommunicationListInstancePageOptions } [params] - Options for request
436
+ * @param { function } [callback] - Callback to handle list of records
437
+ */
438
+ page(callback?: (error: Error | null, items: CommunicationPage) => any): Promise<CommunicationPage>;
439
+ page(params: CommunicationListInstancePageOptions, callback?: (error: Error | null, items: CommunicationPage) => any): Promise<CommunicationPage>;
440
+ /**
441
+ * Retrieve a single page of CommunicationInstance records from the API with HTTP metadata.
442
+ *
443
+ * The request is executed immediately.
444
+ *
445
+ * If a function is passed as the first argument, it will be used as the callback
446
+ * function.
447
+ *
448
+ * @param { CommunicationListInstancePageOptions } [params] - Options for request
449
+ * @param { function } [callback] - Callback to handle list of records with metadata
450
+ */
451
+ pageWithHttpInfo(callback?: (error: Error | null, items: ApiResponse<CommunicationPage>) => any): Promise<ApiResponse<CommunicationPage>>;
452
+ pageWithHttpInfo(params: CommunicationListInstancePageOptions, callback?: (error: Error | null, items: ApiResponse<CommunicationPage>) => any): Promise<ApiResponse<CommunicationPage>>;
453
+ /**
454
+ * Provide a user-friendly representation
455
+ */
456
+ toJSON(): any;
457
+ [inspect.custom](_depth: any, options: InspectOptions): any;
458
+ }
459
+ export declare function CommunicationListInstance(version: V2, conversationSid: string): CommunicationListInstance;
460
+ export declare class CommunicationPage extends TokenPage<V2, CommunicationPayload, CommunicationResource, CommunicationInstance> {
461
+ /**
462
+ * Initialize the CommunicationPage
463
+ *
464
+ * @param version - Version of the resource
465
+ * @param response - Response from the API
466
+ * @param uri - URI of the resource
467
+ * @param params - Query parameters
468
+ * @param solution - Path solution
469
+ */
470
+ constructor(version: V2, response: Response<string>, uri: string, params: any, solution: CommunicationSolution);
471
+ /**
472
+ * Build an instance of CommunicationInstance
473
+ *
474
+ * @param payload - Payload response from the API
475
+ */
476
+ getInstance(payload: CommunicationResource): CommunicationInstance;
477
+ [inspect.custom](depth: any, options: InspectOptions): string;
478
+ }
479
+ export {};