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,531 @@
1
+ import { inspect, InspectOptions } from "util";
2
+ import TokenPage, { TokenPaginationPayload } from "../../../base/TokenPage";
3
+ import Response from "../../../http/response";
4
+ import V1 from "../V1";
5
+ import { ApiResponse } from "../../../base/ApiResponse";
6
+ /**
7
+ * Request payload for creating one or more conversation summaries. Supports creation of up to 10 summaries.
8
+ */
9
+ export declare class CreateSummariesRequest {
10
+ /**
11
+ * Array of summaries to create in a single batch operation.
12
+ */
13
+ "summaries": Array<SummaryCore>;
14
+ constructor(payload: any);
15
+ }
16
+ /**
17
+ * Core mutable properties for creating summary objects.
18
+ */
19
+ export declare class SummaryCore {
20
+ /**
21
+ * The source system that generated the summary. Allows letters, numbers, spaces, and URL-safe symbols. Excludes URL-unsafe characters like quotes, angle brackets, and control characters.
22
+ */
23
+ "source"?: string;
24
+ /**
25
+ * The main content of the summary.
26
+ */
27
+ "content": string;
28
+ /**
29
+ * The timestamp when the summary was originally created.
30
+ */
31
+ "occurredAt": Date;
32
+ /**
33
+ * A unique identifier for the conversation using Twilio Type ID (TTID) format.
34
+ */
35
+ "conversationId": string;
36
+ constructor(payload: any);
37
+ }
38
+ /**
39
+ * Core mutable properties for updating summary objects. All fields are optional for PATCH operations.
40
+ */
41
+ export declare class SummaryCorePatch {
42
+ /**
43
+ * The source system that generated the summary. Allows letters, numbers, spaces, and URL-safe symbols. Excludes URL-unsafe characters like quotes, angle brackets, and control characters.
44
+ */
45
+ "source"?: string;
46
+ /**
47
+ * The main content of the summary.
48
+ */
49
+ "content"?: string;
50
+ /**
51
+ * The timestamp when the summary was originally created. If not provided, defaults to the time the summary was received.
52
+ */
53
+ "occurredAt"?: Date;
54
+ /**
55
+ * A unique identifier for the conversation using Twilio Type ID (TTID) format.
56
+ */
57
+ "conversationId"?: string;
58
+ constructor(payload: any);
59
+ }
60
+ /**
61
+ * Options to pass to patch a ConversationSummaryInstance
62
+ */
63
+ export interface ConversationSummaryContextPatchOptions {
64
+ /** */
65
+ summaryCorePatch: SummaryCorePatch;
66
+ }
67
+ /**
68
+ * Options to pass to create a ConversationSummaryInstance
69
+ */
70
+ export interface ConversationSummaryListInstanceCreateOptions {
71
+ /** */
72
+ createSummariesRequest: CreateSummariesRequest;
73
+ /** Compression algorithms supported by the client (e.g., gzip, deflate, br) */
74
+ acceptEncoding?: string;
75
+ /** Compression algorithm used for the request body (e.g., gzip, deflate, br) */
76
+ contentEncoding?: "gzip" | "deflate" | "br" | "compress";
77
+ }
78
+ /**
79
+ * Options to pass to each
80
+ */
81
+ export interface ConversationSummaryListInstanceEachOptions {
82
+ /** The maximum number of items to return per page, maximum of 1000. */
83
+ pageSize?: number;
84
+ /** The token for the page of results to retrieve. */
85
+ pageToken?: string;
86
+ /** Compression algorithms supported by the client (e.g., gzip, deflate, br) */
87
+ acceptEncoding?: string;
88
+ /** Function to process each record. If this and a positional callback are passed, this one will be used */
89
+ callback?: (item: ConversationSummaryInstance, done: (err?: Error) => void) => void;
90
+ /** Function to be called upon completion of streaming */
91
+ done?: Function;
92
+ /** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
93
+ limit?: number;
94
+ }
95
+ /**
96
+ * Options to pass to list
97
+ */
98
+ export interface ConversationSummaryListInstanceOptions {
99
+ /** The maximum number of items to return per page, maximum of 1000. */
100
+ pageSize?: number;
101
+ /** The token for the page of results to retrieve. */
102
+ pageToken?: string;
103
+ /** Compression algorithms supported by the client (e.g., gzip, deflate, br) */
104
+ acceptEncoding?: string;
105
+ /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
106
+ limit?: number;
107
+ }
108
+ /**
109
+ * Options to pass to page
110
+ */
111
+ export interface ConversationSummaryListInstancePageOptions {
112
+ /** The maximum number of items to return per page, maximum of 1000. */
113
+ pageSize?: number;
114
+ /** The token for the page of results to retrieve. */
115
+ pageToken?: string;
116
+ /** Compression algorithms supported by the client (e.g., gzip, deflate, br) */
117
+ acceptEncoding?: string;
118
+ }
119
+ export interface ConversationSummaryContext {
120
+ /**
121
+ * Remove a ConversationSummaryInstance
122
+ *
123
+ * @param callback - Callback to handle processed record
124
+ *
125
+ * @returns Resolves to processed ConversationSummaryInstance
126
+ */
127
+ remove(callback?: (error: Error | null, item?: ConversationSummaryInstance) => any): Promise<ConversationSummaryInstance>;
128
+ /**
129
+ * Remove a ConversationSummaryInstance and return HTTP info
130
+ *
131
+ * @param callback - Callback to handle processed record
132
+ *
133
+ * @returns Resolves to processed ConversationSummaryInstance with HTTP metadata
134
+ */
135
+ removeWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ConversationSummaryInstance>) => any): Promise<ApiResponse<ConversationSummaryInstance>>;
136
+ /**
137
+ * Fetch a ConversationSummaryInstance
138
+ *
139
+ * @param callback - Callback to handle processed record
140
+ *
141
+ * @returns Resolves to processed ConversationSummaryInstance
142
+ */
143
+ fetch(callback?: (error: Error | null, item?: ConversationSummaryInstance) => any): Promise<ConversationSummaryInstance>;
144
+ /**
145
+ * Fetch a ConversationSummaryInstance and return HTTP info
146
+ *
147
+ * @param callback - Callback to handle processed record
148
+ *
149
+ * @returns Resolves to processed ConversationSummaryInstance with HTTP metadata
150
+ */
151
+ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ConversationSummaryInstance>) => any): Promise<ApiResponse<ConversationSummaryInstance>>;
152
+ /**
153
+ * Patch a ConversationSummaryInstance
154
+ *
155
+ * @param params - Body for request
156
+ * @param headers - header params for request
157
+ * @param callback - Callback to handle processed record
158
+ *
159
+ * @returns Resolves to processed ConversationSummaryInstance
160
+ */
161
+ patch(params: SummaryCorePatch, headers?: any, callback?: (error: Error | null, item?: ConversationSummaryInstance) => any): Promise<ConversationSummaryInstance>;
162
+ /**
163
+ * Patch a ConversationSummaryInstance and return HTTP info
164
+ *
165
+ * @param params - Body for request
166
+ * @param headers - header params for request
167
+ * @param callback - Callback to handle processed record
168
+ *
169
+ * @returns Resolves to processed ConversationSummaryInstance with HTTP metadata
170
+ */
171
+ patchWithHttpInfo(params: SummaryCorePatch, headers?: any, callback?: (error: Error | null, item?: ApiResponse<ConversationSummaryInstance>) => any): Promise<ApiResponse<ConversationSummaryInstance>>;
172
+ /**
173
+ * Provide a user-friendly representation
174
+ */
175
+ toJSON(): any;
176
+ [inspect.custom](_depth: any, options: InspectOptions): any;
177
+ }
178
+ export interface ConversationSummaryContextSolution {
179
+ storeId: string;
180
+ profileId: string;
181
+ summaryId: string;
182
+ }
183
+ export declare class ConversationSummaryContextImpl implements ConversationSummaryContext {
184
+ protected _version: V1;
185
+ protected _solution: ConversationSummaryContextSolution;
186
+ protected _uri: string;
187
+ constructor(_version: V1, storeId: string, profileId: string, summaryId: string);
188
+ remove(callback?: (error: Error | null, item?: ConversationSummaryInstance) => any): Promise<ConversationSummaryInstance>;
189
+ removeWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ConversationSummaryInstance>) => any): Promise<ApiResponse<ConversationSummaryInstance>>;
190
+ fetch(callback?: (error: Error | null, item?: ConversationSummaryInstance) => any): Promise<ConversationSummaryInstance>;
191
+ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ConversationSummaryInstance>) => any): Promise<ApiResponse<ConversationSummaryInstance>>;
192
+ patch(params: SummaryCorePatch, headers?: any, callback?: (error: Error | null, item?: ConversationSummaryInstance) => any): Promise<ConversationSummaryInstance>;
193
+ patchWithHttpInfo(params: SummaryCorePatch, headers?: any, callback?: (error: Error | null, item?: ApiResponse<ConversationSummaryInstance>) => any): Promise<ApiResponse<ConversationSummaryInstance>>;
194
+ /**
195
+ * Provide a user-friendly representation
196
+ *
197
+ * @returns Object
198
+ */
199
+ toJSON(): ConversationSummaryContextSolution;
200
+ [inspect.custom](_depth: any, options: InspectOptions): string;
201
+ }
202
+ /**
203
+ * Nested model for CreateSummariesRequest
204
+ */
205
+ export interface CreateSummariesRequest {
206
+ summaries: Array<SummaryCore>;
207
+ }
208
+ /**
209
+ * Nested model for SummaryCore
210
+ */
211
+ export interface SummaryCore {
212
+ source?: string;
213
+ content: string;
214
+ occurredAt: Date;
215
+ conversationId: string;
216
+ }
217
+ /**
218
+ * Nested model for SummaryCorePatch
219
+ */
220
+ export interface SummaryCorePatch {
221
+ source?: string;
222
+ content?: string;
223
+ occurredAt?: Date;
224
+ conversationId?: string;
225
+ }
226
+ interface ConversationSummaryPayload extends TokenPaginationPayload {
227
+ summaries: ConversationSummaryResource[];
228
+ }
229
+ /**
230
+ * Response model for SummariesCreatedResponse operations
231
+ */
232
+ interface SummariesCreatedResponse_ResponseResource {
233
+ message: string;
234
+ }
235
+ /**
236
+ * Response model for PatchProfileConversationSummary202Response operations
237
+ */
238
+ interface PatchProfileConversationSummary202Response_ResponseResource {
239
+ message: string;
240
+ }
241
+ /**
242
+ * Response model for DeleteProfileConversationSummary202Response operations
243
+ */
244
+ interface DeleteProfileConversationSummary202Response_ResponseResource {
245
+ message: string;
246
+ }
247
+ /**
248
+ * Response model for SummaryInfo operations
249
+ */
250
+ interface SummaryInfo_ResponseResource {
251
+ source?: string;
252
+ content: string;
253
+ occurredAt: Date;
254
+ conversationId: string;
255
+ id: string;
256
+ createdAt: Date;
257
+ updatedAt: Date;
258
+ }
259
+ /**
260
+ * Union type for all possible response models
261
+ */
262
+ type ConversationSummaryResource = SummariesCreatedResponse_ResponseResource | PatchProfileConversationSummary202Response_ResponseResource | DeleteProfileConversationSummary202Response_ResponseResource | SummaryInfo_ResponseResource;
263
+ /**
264
+ * Response for batch summary creation.
265
+ */
266
+ export declare class ConversationSummaryInstance {
267
+ protected _version: V1;
268
+ protected _solution: ConversationSummaryContextSolution;
269
+ protected _context?: ConversationSummaryContext;
270
+ constructor(_version: V1, _payload: ConversationSummaryResource, storeId: string, profileId: string, summaryId?: string);
271
+ /**
272
+ * Confirmation message for the operation.
273
+ */
274
+ message?: string;
275
+ /**
276
+ * The source system that generated the summary. Allows letters, numbers, spaces, and URL-safe symbols. Excludes URL-unsafe characters like quotes, angle brackets, and control characters.
277
+ */
278
+ source?: string;
279
+ /**
280
+ * The main content of the summary.
281
+ */
282
+ content?: string;
283
+ /**
284
+ * The timestamp when the summary was originally created.
285
+ */
286
+ occurredAt?: Date;
287
+ /**
288
+ * A unique identifier for the conversation using Twilio Type ID (TTID) format.
289
+ */
290
+ conversationId?: string;
291
+ /**
292
+ * A unique identifier for the summary using Twilio Type ID (TTID) format.
293
+ */
294
+ id?: string;
295
+ /**
296
+ * The timestamp when the summary was created.
297
+ */
298
+ createdAt?: Date;
299
+ /**
300
+ * The timestamp when the summary was last updated.
301
+ */
302
+ updatedAt?: Date;
303
+ private get _proxy();
304
+ /**
305
+ * Remove a ConversationSummaryInstance
306
+ *
307
+ * @param callback - Callback to handle processed record
308
+ *
309
+ * @returns Resolves to processed ConversationSummaryInstance
310
+ */
311
+ remove(callback?: (error: Error | null, item?: ConversationSummaryInstance) => any): Promise<ConversationSummaryInstance>;
312
+ /**
313
+ * Remove a ConversationSummaryInstance and return HTTP info
314
+ *
315
+ * @param callback - Callback to handle processed record
316
+ *
317
+ * @returns Resolves to processed ConversationSummaryInstance with HTTP metadata
318
+ */
319
+ removeWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ConversationSummaryInstance>) => any): Promise<ApiResponse<ConversationSummaryInstance>>;
320
+ /**
321
+ * Fetch a ConversationSummaryInstance
322
+ *
323
+ * @param callback - Callback to handle processed record
324
+ *
325
+ * @returns Resolves to processed ConversationSummaryInstance
326
+ */
327
+ fetch(callback?: (error: Error | null, item?: ConversationSummaryInstance) => any): Promise<ConversationSummaryInstance>;
328
+ /**
329
+ * Fetch a ConversationSummaryInstance and return HTTP info
330
+ *
331
+ * @param callback - Callback to handle processed record
332
+ *
333
+ * @returns Resolves to processed ConversationSummaryInstance with HTTP metadata
334
+ */
335
+ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ConversationSummaryInstance>) => any): Promise<ApiResponse<ConversationSummaryInstance>>;
336
+ /**
337
+ * Patch a ConversationSummaryInstance
338
+ *
339
+ * @param params - Body for request
340
+ * @param headers - header params for request
341
+ * @param callback - Callback to handle processed record
342
+ *
343
+ * @returns Resolves to processed ConversationSummaryInstance
344
+ */
345
+ patch(params: SummaryCorePatch, headers?: any, callback?: (error: Error | null, item?: ConversationSummaryInstance) => any): Promise<ConversationSummaryInstance>;
346
+ /**
347
+ * Patch a ConversationSummaryInstance and return HTTP info
348
+ *
349
+ * @param params - Body for request
350
+ * @param headers - header params for request
351
+ * @param callback - Callback to handle processed record
352
+ *
353
+ * @returns Resolves to processed ConversationSummaryInstance with HTTP metadata
354
+ */
355
+ patchWithHttpInfo(params: SummaryCorePatch, headers?: any, callback?: (error: Error | null, item?: ApiResponse<ConversationSummaryInstance>) => any): Promise<ApiResponse<ConversationSummaryInstance>>;
356
+ /**
357
+ * Provide a user-friendly representation
358
+ *
359
+ * @returns Object
360
+ */
361
+ toJSON(): {
362
+ message: string;
363
+ source: string;
364
+ content: string;
365
+ occurredAt: Date;
366
+ conversationId: string;
367
+ id: string;
368
+ createdAt: Date;
369
+ updatedAt: Date;
370
+ };
371
+ [inspect.custom](_depth: any, options: InspectOptions): string;
372
+ }
373
+ export interface ConversationSummarySolution {
374
+ storeId: string;
375
+ profileId: string;
376
+ }
377
+ export interface ConversationSummaryListInstance {
378
+ _version: V1;
379
+ _solution: ConversationSummarySolution;
380
+ _uri: string;
381
+ (summaryId: string): ConversationSummaryContext;
382
+ get(summaryId: string): ConversationSummaryContext;
383
+ /**
384
+ * Create a ConversationSummaryInstance
385
+ *
386
+ * @param params - Body for request
387
+ * @param headers - header params for request
388
+ * @param callback - Callback to handle processed record
389
+ *
390
+ * @returns Resolves to processed ConversationSummaryInstance
391
+ */
392
+ create(params: CreateSummariesRequest, headers?: any, callback?: (error: Error | null, item?: ConversationSummaryInstance) => any): Promise<ConversationSummaryInstance>;
393
+ /**
394
+ * Create a ConversationSummaryInstance and return HTTP info
395
+ *
396
+ * @param params - Body for request
397
+ * @param headers - header params for request
398
+ * @param callback - Callback to handle processed record
399
+ *
400
+ * @returns Resolves to processed ConversationSummaryInstance with HTTP metadata
401
+ */
402
+ createWithHttpInfo(params: CreateSummariesRequest, headers?: any, callback?: (error: Error | null, item?: ApiResponse<ConversationSummaryInstance>) => any): Promise<ApiResponse<ConversationSummaryInstance>>;
403
+ /**
404
+ * Streams ConversationSummaryInstance records from the API.
405
+ *
406
+ * This operation lazily loads records as efficiently as possible until the limit
407
+ * is reached.
408
+ *
409
+ * The results are passed into the callback function, so this operation is memory
410
+ * efficient.
411
+ *
412
+ * If a function is passed as the first argument, it will be used as the callback
413
+ * function.
414
+ *
415
+ * @param { ConversationSummaryListInstanceEachOptions } [params] - Options for request
416
+ * @param { function } [callback] - Function to process each record
417
+ */
418
+ each(callback?: (item: ConversationSummaryInstance, done: (err?: Error) => void) => void): void;
419
+ each(params: ConversationSummaryListInstanceEachOptions, callback?: (item: ConversationSummaryInstance, done: (err?: Error) => void) => void): void;
420
+ /**
421
+ * Streams ConversationSummaryInstance records from the API with HTTP metadata captured per page.
422
+ *
423
+ * This operation lazily loads records as efficiently as possible until the limit
424
+ * is reached. HTTP metadata (status code, headers) is captured for each page request.
425
+ *
426
+ * The results are passed into the callback function, so this operation is memory
427
+ * efficient.
428
+ *
429
+ * If a function is passed as the first argument, it will be used as the callback
430
+ * function.
431
+ *
432
+ * @param { ConversationSummaryListInstanceEachOptions } [params] - Options for request
433
+ * @param { function } [callback] - Function to process each record
434
+ */
435
+ eachWithHttpInfo(callback?: (item: ConversationSummaryInstance, done: (err?: Error) => void) => void): void;
436
+ eachWithHttpInfo(params: ConversationSummaryListInstanceEachOptions, callback?: (item: ConversationSummaryInstance, done: (err?: Error) => void) => void): void;
437
+ /**
438
+ * Retrieve a single target page of ConversationSummaryInstance records from the API.
439
+ *
440
+ * The request is executed immediately.
441
+ *
442
+ * @param { string } [targetUrl] - API-generated URL for the requested results page
443
+ * @param { function } [callback] - Callback to handle list of records
444
+ */
445
+ getPage(targetUrl: string, callback?: (error: Error | null, items: ConversationSummaryPage) => any): Promise<ConversationSummaryPage>;
446
+ /**
447
+ * Retrieve a single target page of ConversationSummaryInstance records from the API with HTTP metadata.
448
+ *
449
+ * The request is executed immediately.
450
+ *
451
+ * @param { string } [targetUrl] - API-generated URL for the requested results page
452
+ * @param { function } [callback] - Callback to handle list of records with metadata
453
+ */
454
+ getPageWithHttpInfo(targetUrl: string, callback?: (error: Error | null, items: ApiResponse<ConversationSummaryPage>) => any): Promise<ApiResponse<ConversationSummaryPage>>;
455
+ /**
456
+ * Lists ConversationSummaryInstance records from the API as a list.
457
+ *
458
+ * If a function is passed as the first argument, it will be used as the callback
459
+ * function.
460
+ *
461
+ * @param { ConversationSummaryListInstanceOptions } [params] - Options for request
462
+ * @param { function } [callback] - Callback to handle list of records
463
+ */
464
+ list(callback?: (error: Error | null, items: ConversationSummaryInstance[]) => any): Promise<ConversationSummaryInstance[]>;
465
+ list(params: ConversationSummaryListInstanceOptions, callback?: (error: Error | null, items: ConversationSummaryInstance[]) => any): Promise<ConversationSummaryInstance[]>;
466
+ /**
467
+ * Lists ConversationSummaryInstance records from the API as a list with HTTP metadata.
468
+ *
469
+ * Returns all records along with HTTP metadata from the first page fetched.
470
+ *
471
+ * If a function is passed as the first argument, it will be used as the callback
472
+ * function.
473
+ *
474
+ * @param { ConversationSummaryListInstanceOptions } [params] - Options for request
475
+ * @param { function } [callback] - Callback to handle list of records with metadata
476
+ */
477
+ listWithHttpInfo(callback?: (error: Error | null, items: ApiResponse<ConversationSummaryInstance[]>) => any): Promise<ApiResponse<ConversationSummaryInstance[]>>;
478
+ listWithHttpInfo(params: ConversationSummaryListInstanceOptions, callback?: (error: Error | null, items: ApiResponse<ConversationSummaryInstance[]>) => any): Promise<ApiResponse<ConversationSummaryInstance[]>>;
479
+ /**
480
+ * Retrieve a single page of ConversationSummaryInstance records from the API.
481
+ *
482
+ * The request is executed immediately.
483
+ *
484
+ * If a function is passed as the first argument, it will be used as the callback
485
+ * function.
486
+ *
487
+ * @param { ConversationSummaryListInstancePageOptions } [params] - Options for request
488
+ * @param { function } [callback] - Callback to handle list of records
489
+ */
490
+ page(callback?: (error: Error | null, items: ConversationSummaryPage) => any): Promise<ConversationSummaryPage>;
491
+ page(params: ConversationSummaryListInstancePageOptions, callback?: (error: Error | null, items: ConversationSummaryPage) => any): Promise<ConversationSummaryPage>;
492
+ /**
493
+ * Retrieve a single page of ConversationSummaryInstance records from the API with HTTP metadata.
494
+ *
495
+ * The request is executed immediately.
496
+ *
497
+ * If a function is passed as the first argument, it will be used as the callback
498
+ * function.
499
+ *
500
+ * @param { ConversationSummaryListInstancePageOptions } [params] - Options for request
501
+ * @param { function } [callback] - Callback to handle list of records with metadata
502
+ */
503
+ pageWithHttpInfo(callback?: (error: Error | null, items: ApiResponse<ConversationSummaryPage>) => any): Promise<ApiResponse<ConversationSummaryPage>>;
504
+ pageWithHttpInfo(params: ConversationSummaryListInstancePageOptions, callback?: (error: Error | null, items: ApiResponse<ConversationSummaryPage>) => any): Promise<ApiResponse<ConversationSummaryPage>>;
505
+ /**
506
+ * Provide a user-friendly representation
507
+ */
508
+ toJSON(): any;
509
+ [inspect.custom](_depth: any, options: InspectOptions): any;
510
+ }
511
+ export declare function ConversationSummaryListInstance(version: V1, storeId: string, profileId: string): ConversationSummaryListInstance;
512
+ export declare class ConversationSummaryPage extends TokenPage<V1, ConversationSummaryPayload, ConversationSummaryResource, ConversationSummaryInstance> {
513
+ /**
514
+ * Initialize the ConversationSummaryPage
515
+ *
516
+ * @param version - Version of the resource
517
+ * @param response - Response from the API
518
+ * @param uri - URI of the resource
519
+ * @param params - Query parameters
520
+ * @param solution - Path solution
521
+ */
522
+ constructor(version: V1, response: Response<string>, uri: string, params: any, solution: ConversationSummarySolution);
523
+ /**
524
+ * Build an instance of ConversationSummaryInstance
525
+ *
526
+ * @param payload - Payload response from the API
527
+ */
528
+ getInstance(payload: ConversationSummaryResource): ConversationSummaryInstance;
529
+ [inspect.custom](depth: any, options: InspectOptions): string;
530
+ }
531
+ export {};