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,469 @@
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
+ export declare class CreateParticipantInConversationRequest {
22
+ "name"?: string;
23
+ "type"?: string;
24
+ "profileId"?: string;
25
+ "addresses": Array<CreateParticipantInConversationRequestAddresses>;
26
+ constructor(payload: any);
27
+ }
28
+ export declare class CreateParticipantInConversationRequestAddresses {
29
+ "channel": string;
30
+ "address": string;
31
+ "channelId"?: string;
32
+ constructor(payload: any);
33
+ }
34
+ export declare class UpdateParticipantInConversationRequest {
35
+ "name"?: string;
36
+ "type"?: string;
37
+ "profileId"?: string;
38
+ "addresses"?: Array<CreateParticipantInConversationRequestAddresses>;
39
+ constructor(payload: any);
40
+ }
41
+ /**
42
+ * Options to pass to update a ParticipantInstance
43
+ */
44
+ export interface ParticipantContextUpdateOptions {
45
+ /** */
46
+ updateParticipantInConversationRequest?: UpdateParticipantInConversationRequest;
47
+ }
48
+ /**
49
+ * Options to pass to create a ParticipantInstance
50
+ */
51
+ export interface ParticipantListInstanceCreateOptions {
52
+ /** */
53
+ createParticipantInConversationRequest?: CreateParticipantInConversationRequest;
54
+ }
55
+ /**
56
+ * Options to pass to each
57
+ */
58
+ export interface ParticipantListInstanceEachOptions {
59
+ /** Maximum number of items to return */
60
+ pageSize?: number;
61
+ /** Page token for pagination */
62
+ pageToken?: string;
63
+ /** Function to process each record. If this and a positional callback are passed, this one will be used */
64
+ callback?: (item: ParticipantInstance, done: (err?: Error) => void) => void;
65
+ /** Function to be called upon completion of streaming */
66
+ done?: Function;
67
+ /** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
68
+ limit?: number;
69
+ }
70
+ /**
71
+ * Options to pass to list
72
+ */
73
+ export interface ParticipantListInstanceOptions {
74
+ /** Maximum number of items to return */
75
+ pageSize?: number;
76
+ /** Page token for pagination */
77
+ pageToken?: string;
78
+ /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
79
+ limit?: number;
80
+ }
81
+ /**
82
+ * Options to pass to page
83
+ */
84
+ export interface ParticipantListInstancePageOptions {
85
+ /** Maximum number of items to return */
86
+ pageSize?: number;
87
+ /** Page token for pagination */
88
+ pageToken?: string;
89
+ }
90
+ export interface ParticipantContext {
91
+ /**
92
+ * Fetch a ParticipantInstance
93
+ *
94
+ * @param callback - Callback to handle processed record
95
+ *
96
+ * @returns Resolves to processed ParticipantInstance
97
+ */
98
+ fetch(callback?: (error: Error | null, item?: ParticipantInstance) => any): Promise<ParticipantInstance>;
99
+ /**
100
+ * Fetch a ParticipantInstance and return HTTP info
101
+ *
102
+ * @param callback - Callback to handle processed record
103
+ *
104
+ * @returns Resolves to processed ParticipantInstance with HTTP metadata
105
+ */
106
+ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ParticipantInstance>) => any): Promise<ApiResponse<ParticipantInstance>>;
107
+ /**
108
+ * Update a ParticipantInstance
109
+ *
110
+ * @param callback - Callback to handle processed record
111
+ *
112
+ * @returns Resolves to processed ParticipantInstance
113
+ */
114
+ update(callback?: (error: Error | null, item?: ParticipantInstance) => any): Promise<ParticipantInstance>;
115
+ /**
116
+ * Update a ParticipantInstance
117
+ *
118
+ * @param params - Body for request
119
+ * @param headers - header params for request
120
+ * @param callback - Callback to handle processed record
121
+ *
122
+ * @returns Resolves to processed ParticipantInstance
123
+ */
124
+ update(params: UpdateParticipantInConversationRequest, headers?: any, callback?: (error: Error | null, item?: ParticipantInstance) => any): Promise<ParticipantInstance>;
125
+ /**
126
+ * Update a ParticipantInstance and return HTTP info
127
+ *
128
+ * @param callback - Callback to handle processed record
129
+ *
130
+ * @returns Resolves to processed ParticipantInstance with HTTP metadata
131
+ */
132
+ updateWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ParticipantInstance>) => any): Promise<ApiResponse<ParticipantInstance>>;
133
+ /**
134
+ * Update a ParticipantInstance and return HTTP info
135
+ *
136
+ * @param params - Body for request
137
+ * @param headers - header params for request
138
+ * @param callback - Callback to handle processed record
139
+ *
140
+ * @returns Resolves to processed ParticipantInstance with HTTP metadata
141
+ */
142
+ updateWithHttpInfo(params: UpdateParticipantInConversationRequest, headers?: any, callback?: (error: Error | null, item?: ApiResponse<ParticipantInstance>) => any): Promise<ApiResponse<ParticipantInstance>>;
143
+ /**
144
+ * Provide a user-friendly representation
145
+ */
146
+ toJSON(): any;
147
+ [inspect.custom](_depth: any, options: InspectOptions): any;
148
+ }
149
+ export interface ParticipantContextSolution {
150
+ conversationSid: string;
151
+ sid: string;
152
+ }
153
+ export declare class ParticipantContextImpl implements ParticipantContext {
154
+ protected _version: V2;
155
+ protected _solution: ParticipantContextSolution;
156
+ protected _uri: string;
157
+ constructor(_version: V2, conversationSid: string, sid: string);
158
+ fetch(callback?: (error: Error | null, item?: ParticipantInstance) => any): Promise<ParticipantInstance>;
159
+ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ParticipantInstance>) => any): Promise<ApiResponse<ParticipantInstance>>;
160
+ update(params?: UpdateParticipantInConversationRequest | ((error: Error | null, item?: ParticipantInstance) => any), headers?: any, callback?: (error: Error | null, item?: ParticipantInstance) => any): Promise<ParticipantInstance>;
161
+ updateWithHttpInfo(params?: UpdateParticipantInConversationRequest | ((error: Error | null, item?: ApiResponse<ParticipantInstance>) => any), headers?: any, callback?: (error: Error | null, item?: ApiResponse<ParticipantInstance>) => any): Promise<ApiResponse<ParticipantInstance>>;
162
+ /**
163
+ * Provide a user-friendly representation
164
+ *
165
+ * @returns Object
166
+ */
167
+ toJSON(): ParticipantContextSolution;
168
+ [inspect.custom](_depth: any, options: InspectOptions): string;
169
+ }
170
+ interface ParticipantPayload extends TokenPaginationPayload {
171
+ participants: ParticipantResource[];
172
+ }
173
+ interface ParticipantResource {
174
+ id: string;
175
+ conversationId: string;
176
+ accountId: string;
177
+ name: string;
178
+ type: string;
179
+ profileId: string;
180
+ addresses: Array<ConversationsV2Address>;
181
+ createdAt: Date;
182
+ updatedAt: Date;
183
+ }
184
+ export declare class ParticipantInstance {
185
+ protected _version: V2;
186
+ protected _solution: ParticipantContextSolution;
187
+ protected _context?: ParticipantContext;
188
+ constructor(_version: V2, _payload: ParticipantResource, conversationSid: string, sid?: string);
189
+ /**
190
+ * Participant ID.
191
+ */
192
+ id: string;
193
+ /**
194
+ * Conversation ID.
195
+ */
196
+ conversationId: string;
197
+ /**
198
+ * Account ID.
199
+ */
200
+ accountId: string;
201
+ /**
202
+ * Participant display name.
203
+ */
204
+ name: string;
205
+ /**
206
+ * Type of Participant in the Conversation.
207
+ */
208
+ type: string;
209
+ /**
210
+ * Profile ID. Note: This field is only resolved for `CUSTOMER` participant types, not for `HUMAN_AGENT` or `AI_AGENT` participants.
211
+ */
212
+ profileId: string;
213
+ /**
214
+ * 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\")
215
+ */
216
+ addresses: Array<ConversationsV2Address>;
217
+ /**
218
+ * Timestamp when this Participant was created.
219
+ */
220
+ createdAt: Date;
221
+ /**
222
+ * Timestamp when this Participant was last updated.
223
+ */
224
+ updatedAt: Date;
225
+ private get _proxy();
226
+ /**
227
+ * Fetch a ParticipantInstance
228
+ *
229
+ * @param callback - Callback to handle processed record
230
+ *
231
+ * @returns Resolves to processed ParticipantInstance
232
+ */
233
+ fetch(callback?: (error: Error | null, item?: ParticipantInstance) => any): Promise<ParticipantInstance>;
234
+ /**
235
+ * Fetch a ParticipantInstance and return HTTP info
236
+ *
237
+ * @param callback - Callback to handle processed record
238
+ *
239
+ * @returns Resolves to processed ParticipantInstance with HTTP metadata
240
+ */
241
+ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ParticipantInstance>) => any): Promise<ApiResponse<ParticipantInstance>>;
242
+ /**
243
+ * Update a ParticipantInstance
244
+ *
245
+ * @param callback - Callback to handle processed record
246
+ *
247
+ * @returns Resolves to processed ParticipantInstance
248
+ */
249
+ update(callback?: (error: Error | null, item?: ParticipantInstance) => any): Promise<ParticipantInstance>;
250
+ /**
251
+ * Update a ParticipantInstance
252
+ *
253
+ * @param params - Body for request
254
+ * @param headers - header params for request
255
+ * @param callback - Callback to handle processed record
256
+ *
257
+ * @returns Resolves to processed ParticipantInstance
258
+ */
259
+ update(params: UpdateParticipantInConversationRequest, headers?: any, callback?: (error: Error | null, item?: ParticipantInstance) => any): Promise<ParticipantInstance>;
260
+ /**
261
+ * Update a ParticipantInstance and return HTTP info
262
+ *
263
+ * @param callback - Callback to handle processed record
264
+ *
265
+ * @returns Resolves to processed ParticipantInstance with HTTP metadata
266
+ */
267
+ updateWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ParticipantInstance>) => any): Promise<ApiResponse<ParticipantInstance>>;
268
+ /**
269
+ * Update a ParticipantInstance and return HTTP info
270
+ *
271
+ * @param params - Body for request
272
+ * @param headers - header params for request
273
+ * @param callback - Callback to handle processed record
274
+ *
275
+ * @returns Resolves to processed ParticipantInstance with HTTP metadata
276
+ */
277
+ updateWithHttpInfo(params: UpdateParticipantInConversationRequest, headers?: any, callback?: (error: Error | null, item?: ApiResponse<ParticipantInstance>) => any): Promise<ApiResponse<ParticipantInstance>>;
278
+ /**
279
+ * Provide a user-friendly representation
280
+ *
281
+ * @returns Object
282
+ */
283
+ toJSON(): {
284
+ id: string;
285
+ conversationId: string;
286
+ accountId: string;
287
+ name: string;
288
+ type: string;
289
+ profileId: string;
290
+ addresses: ConversationsV2Address[];
291
+ createdAt: Date;
292
+ updatedAt: Date;
293
+ };
294
+ [inspect.custom](_depth: any, options: InspectOptions): string;
295
+ }
296
+ export interface ParticipantSolution {
297
+ conversationSid: string;
298
+ }
299
+ export interface ParticipantListInstance {
300
+ _version: V2;
301
+ _solution: ParticipantSolution;
302
+ _uri: string;
303
+ (sid: string): ParticipantContext;
304
+ get(sid: string): ParticipantContext;
305
+ /**
306
+ * Create a ParticipantInstance
307
+ *
308
+ * @param callback - Callback to handle processed record
309
+ *
310
+ * @returns Resolves to processed ParticipantInstance
311
+ */
312
+ create(callback?: (error: Error | null, item?: ParticipantInstance) => any): Promise<ParticipantInstance>;
313
+ /**
314
+ * Create a ParticipantInstance
315
+ *
316
+ * @param params - Body for request
317
+ * @param headers - header params for request
318
+ * @param callback - Callback to handle processed record
319
+ *
320
+ * @returns Resolves to processed ParticipantInstance
321
+ */
322
+ create(params: CreateParticipantInConversationRequest, headers?: any, callback?: (error: Error | null, item?: ParticipantInstance) => any): Promise<ParticipantInstance>;
323
+ /**
324
+ * Create a ParticipantInstance and return HTTP info
325
+ *
326
+ * @param callback - Callback to handle processed record
327
+ *
328
+ * @returns Resolves to processed ParticipantInstance with HTTP metadata
329
+ */
330
+ createWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ParticipantInstance>) => any): Promise<ApiResponse<ParticipantInstance>>;
331
+ /**
332
+ * Create a ParticipantInstance and return HTTP info
333
+ *
334
+ * @param params - Body for request
335
+ * @param headers - header params for request
336
+ * @param callback - Callback to handle processed record
337
+ *
338
+ * @returns Resolves to processed ParticipantInstance with HTTP metadata
339
+ */
340
+ createWithHttpInfo(params: CreateParticipantInConversationRequest, headers?: any, callback?: (error: Error | null, item?: ApiResponse<ParticipantInstance>) => any): Promise<ApiResponse<ParticipantInstance>>;
341
+ /**
342
+ * Streams ParticipantInstance records from the API.
343
+ *
344
+ * This operation lazily loads records as efficiently as possible until the limit
345
+ * is reached.
346
+ *
347
+ * The results are passed into the callback function, so this operation is memory
348
+ * efficient.
349
+ *
350
+ * If a function is passed as the first argument, it will be used as the callback
351
+ * function.
352
+ *
353
+ * @param { ParticipantListInstanceEachOptions } [params] - Options for request
354
+ * @param { function } [callback] - Function to process each record
355
+ */
356
+ each(callback?: (item: ParticipantInstance, done: (err?: Error) => void) => void): void;
357
+ each(params: ParticipantListInstanceEachOptions, callback?: (item: ParticipantInstance, done: (err?: Error) => void) => void): void;
358
+ /**
359
+ * Streams ParticipantInstance records from the API with HTTP metadata captured per page.
360
+ *
361
+ * This operation lazily loads records as efficiently as possible until the limit
362
+ * is reached. HTTP metadata (status code, headers) is captured for each page request.
363
+ *
364
+ * The results are passed into the callback function, so this operation is memory
365
+ * efficient.
366
+ *
367
+ * If a function is passed as the first argument, it will be used as the callback
368
+ * function.
369
+ *
370
+ * @param { ParticipantListInstanceEachOptions } [params] - Options for request
371
+ * @param { function } [callback] - Function to process each record
372
+ */
373
+ eachWithHttpInfo(callback?: (item: ParticipantInstance, done: (err?: Error) => void) => void): void;
374
+ eachWithHttpInfo(params: ParticipantListInstanceEachOptions, callback?: (item: ParticipantInstance, done: (err?: Error) => void) => void): void;
375
+ /**
376
+ * Retrieve a single target page of ParticipantInstance records from the API.
377
+ *
378
+ * The request is executed immediately.
379
+ *
380
+ * @param { string } [targetUrl] - API-generated URL for the requested results page
381
+ * @param { function } [callback] - Callback to handle list of records
382
+ */
383
+ getPage(targetUrl: string, callback?: (error: Error | null, items: ParticipantPage) => any): Promise<ParticipantPage>;
384
+ /**
385
+ * Retrieve a single target page of ParticipantInstance records from the API with HTTP metadata.
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 with metadata
391
+ */
392
+ getPageWithHttpInfo(targetUrl: string, callback?: (error: Error | null, items: ApiResponse<ParticipantPage>) => any): Promise<ApiResponse<ParticipantPage>>;
393
+ /**
394
+ * Lists ParticipantInstance records from the API as a list.
395
+ *
396
+ * If a function is passed as the first argument, it will be used as the callback
397
+ * function.
398
+ *
399
+ * @param { ParticipantListInstanceOptions } [params] - Options for request
400
+ * @param { function } [callback] - Callback to handle list of records
401
+ */
402
+ list(callback?: (error: Error | null, items: ParticipantInstance[]) => any): Promise<ParticipantInstance[]>;
403
+ list(params: ParticipantListInstanceOptions, callback?: (error: Error | null, items: ParticipantInstance[]) => any): Promise<ParticipantInstance[]>;
404
+ /**
405
+ * Lists ParticipantInstance records from the API as a list with HTTP metadata.
406
+ *
407
+ * Returns all records along with HTTP metadata from the first page fetched.
408
+ *
409
+ * If a function is passed as the first argument, it will be used as the callback
410
+ * function.
411
+ *
412
+ * @param { ParticipantListInstanceOptions } [params] - Options for request
413
+ * @param { function } [callback] - Callback to handle list of records with metadata
414
+ */
415
+ listWithHttpInfo(callback?: (error: Error | null, items: ApiResponse<ParticipantInstance[]>) => any): Promise<ApiResponse<ParticipantInstance[]>>;
416
+ listWithHttpInfo(params: ParticipantListInstanceOptions, callback?: (error: Error | null, items: ApiResponse<ParticipantInstance[]>) => any): Promise<ApiResponse<ParticipantInstance[]>>;
417
+ /**
418
+ * Retrieve a single page of ParticipantInstance records from the API.
419
+ *
420
+ * The request is executed immediately.
421
+ *
422
+ * If a function is passed as the first argument, it will be used as the callback
423
+ * function.
424
+ *
425
+ * @param { ParticipantListInstancePageOptions } [params] - Options for request
426
+ * @param { function } [callback] - Callback to handle list of records
427
+ */
428
+ page(callback?: (error: Error | null, items: ParticipantPage) => any): Promise<ParticipantPage>;
429
+ page(params: ParticipantListInstancePageOptions, callback?: (error: Error | null, items: ParticipantPage) => any): Promise<ParticipantPage>;
430
+ /**
431
+ * Retrieve a single page of ParticipantInstance records from the API with HTTP metadata.
432
+ *
433
+ * The request is executed immediately.
434
+ *
435
+ * If a function is passed as the first argument, it will be used as the callback
436
+ * function.
437
+ *
438
+ * @param { ParticipantListInstancePageOptions } [params] - Options for request
439
+ * @param { function } [callback] - Callback to handle list of records with metadata
440
+ */
441
+ pageWithHttpInfo(callback?: (error: Error | null, items: ApiResponse<ParticipantPage>) => any): Promise<ApiResponse<ParticipantPage>>;
442
+ pageWithHttpInfo(params: ParticipantListInstancePageOptions, callback?: (error: Error | null, items: ApiResponse<ParticipantPage>) => any): Promise<ApiResponse<ParticipantPage>>;
443
+ /**
444
+ * Provide a user-friendly representation
445
+ */
446
+ toJSON(): any;
447
+ [inspect.custom](_depth: any, options: InspectOptions): any;
448
+ }
449
+ export declare function ParticipantListInstance(version: V2, conversationSid: string): ParticipantListInstance;
450
+ export declare class ParticipantPage extends TokenPage<V2, ParticipantPayload, ParticipantResource, ParticipantInstance> {
451
+ /**
452
+ * Initialize the ParticipantPage
453
+ *
454
+ * @param version - Version of the resource
455
+ * @param response - Response from the API
456
+ * @param uri - URI of the resource
457
+ * @param params - Query parameters
458
+ * @param solution - Path solution
459
+ */
460
+ constructor(version: V2, response: Response<string>, uri: string, params: any, solution: ParticipantSolution);
461
+ /**
462
+ * Build an instance of ParticipantInstance
463
+ *
464
+ * @param payload - Payload response from the API
465
+ */
466
+ getInstance(payload: ParticipantResource): ParticipantInstance;
467
+ [inspect.custom](depth: any, options: InspectOptions): string;
468
+ }
469
+ export {};