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,543 @@
1
+ import { inspect, InspectOptions } from "util";
2
+ import TokenPage, { TokenPaginationPayload } from "../../../base/TokenPage";
3
+ import Response from "../../../http/response";
4
+ import V3 from "../V3";
5
+ import { ApiResponse } from "../../../base/ApiResponse";
6
+ /**
7
+ * Details about the conditions under which the Operator executed.
8
+ */
9
+ export declare class ExecutionDetails {
10
+ "trigger": ExecutionDetailsTrigger;
11
+ "communications": ExecutionDetailsCommunications;
12
+ /**
13
+ * Communication channels included in the Conversation when this Operator was executed.
14
+ */
15
+ "channels": Array<string>;
16
+ /**
17
+ * Metadata for the participants included in the Conversation when this Operator executed.
18
+ */
19
+ "participants": Array<ExecutionDetailsParticipants>;
20
+ "resolvedContext"?: ResolvedContext;
21
+ constructor(payload: any);
22
+ }
23
+ /**
24
+ * Range of first and last communications in the Conversation that were processed during this Operator execution.
25
+ */
26
+ export declare class ExecutionDetailsCommunications {
27
+ /**
28
+ * Communication `id` from the attached Conversation.
29
+ */
30
+ "first": string;
31
+ /**
32
+ * Communication `id` from the attached Conversation.
33
+ */
34
+ "last": string;
35
+ constructor(payload: any);
36
+ }
37
+ export declare class ExecutionDetailsParticipants {
38
+ /**
39
+ * The `id` of the Participant in the Conversation.
40
+ */
41
+ "id": string;
42
+ /**
43
+ * Customer Memory Profile identifier
44
+ */
45
+ "profileId"?: string;
46
+ /**
47
+ * Type of participant in the conversation. Available types: - `CUSTOMER` - `HUMAN_AGENT` - `AI_AGENT` - `AGENT` - `UNKNOWN`
48
+ */
49
+ "type"?: string;
50
+ constructor(payload: any);
51
+ }
52
+ /**
53
+ * Metadata for the trigger that generated this Operator Result.
54
+ */
55
+ export declare class ExecutionDetailsTrigger {
56
+ /**
57
+ * The conversational lifecycle event that activated execution of the Rule. Available values are: - `COMMUNICATION`: Trigger the Rule on each communication within the Conversation. - `CONVERSATION_END`: Trigger the Rule when the Conversation moves to the `closed` state. - `CONVERSATION_INACTIVE`: Trigger the Rule when the Conversation moves to the `inactive` state.
58
+ */
59
+ "on": string;
60
+ /**
61
+ * Timestamp of when the trigger was activated.
62
+ */
63
+ "timestamp": Date;
64
+ constructor(payload: any);
65
+ }
66
+ /**
67
+ * The actual result from executing the Language Operator with `EXTRACTION` output format.
68
+ */
69
+ export declare class ExtractionResultResult {
70
+ /**
71
+ * List of extracted entities from the Conversation.
72
+ */
73
+ "entities": Array<ExtractionResultResultEntities>;
74
+ constructor(payload: any);
75
+ }
76
+ export declare class ExtractionResultResultEntities {
77
+ /**
78
+ * The actual text of the extracted entity as it appears in the Conversation.
79
+ */
80
+ "text": string;
81
+ /**
82
+ * The label for the extracted entity (e.g., `PERSON`, `LOCATION`).
83
+ */
84
+ "label": string;
85
+ constructor(payload: any);
86
+ }
87
+ /**
88
+ * Reference to the Intelligence Configuration that generated the Operator Result.
89
+ */
90
+ export declare class IntelligenceConfigurationReference {
91
+ /**
92
+ * Unique identifier for a Intelligence Configuration that generated the Operator Result. Assigned by Twilio (TTID).
93
+ */
94
+ "id": string;
95
+ /**
96
+ * Unique identifier of the rule of the Intelligence Configuration that triggered the result. Assigned by Twilio (TTID).
97
+ */
98
+ "ruleId": string;
99
+ /**
100
+ * Version of the Intelligence Configuration used to generate the Operator Result.
101
+ */
102
+ "version": number;
103
+ constructor(payload: any);
104
+ }
105
+ /**
106
+ * Reference to the Language Operator that generated the Operator Result.
107
+ */
108
+ export declare class OperatorReference {
109
+ /**
110
+ * The `id` of the Language Operator.
111
+ */
112
+ "id": string;
113
+ /**
114
+ * Version of the Language Operator used to generate the Operator Result.
115
+ */
116
+ "version": number;
117
+ /**
118
+ * Parameter values used for Operator execution, provided by the Rule at runtime. This object contains a dictionary of parameter keys and their corresponding values.
119
+ */
120
+ "parameters": {
121
+ [key: string]: any;
122
+ };
123
+ constructor(payload: any);
124
+ }
125
+ export declare class OperatorResultsResponseBaseMetadata {
126
+ "system": SystemMetaData;
127
+ constructor(payload: any);
128
+ }
129
+ /**
130
+ * The context that was actually used by the operator during execution
131
+ */
132
+ export declare class ResolvedContext {
133
+ "memory"?: ResolvedContextMemory;
134
+ "knowledge"?: ResolvedContextKnowledge | null;
135
+ constructor(payload: any);
136
+ }
137
+ /**
138
+ * Knowledge source IDs with their respective knowledge base ID that was accessed and used by the LLM to generate the result. null if no knowledge was accessed.
139
+ */
140
+ export declare class ResolvedContextKnowledge {
141
+ "sources": Array<ResolvedContextKnowledgeSources>;
142
+ constructor(payload: any);
143
+ }
144
+ export declare class ResolvedContextKnowledgeSources {
145
+ /**
146
+ * Knowledge base identifier
147
+ */
148
+ "baseId": string;
149
+ /**
150
+ * Knowledge source identifier
151
+ */
152
+ "sourceId": string;
153
+ constructor(payload: any);
154
+ }
155
+ /**
156
+ * The customer profile that was accessed. null if no memory was accessed. Either observations and/or traits from the profile were used by the LLM to generate the result.
157
+ */
158
+ export declare class ResolvedContextMemory {
159
+ /**
160
+ * Customer Memory Profile identifier
161
+ */
162
+ "profileId": string;
163
+ /**
164
+ * Customer Memory store identifier
165
+ */
166
+ "memoryStoreId": string;
167
+ constructor(payload: any);
168
+ }
169
+ export declare class SystemMetaData {
170
+ /**
171
+ * The underlying LLM model used for this execution.
172
+ */
173
+ "resolvedModel"?: string;
174
+ /**
175
+ * Operator execution time in milliseconds.
176
+ */
177
+ "latencyMs": number;
178
+ /**
179
+ * Number of characters in the input sent to the model. Aligns with the billing unit.
180
+ */
181
+ "inputCharacters": number;
182
+ /**
183
+ * Number of characters in the model\'s response. Aligns with the billing unit.
184
+ */
185
+ "outputCharacters": number;
186
+ /**
187
+ * Whether the conversation input was truncated to fit the model\'s context window.
188
+ */
189
+ "inputTruncated": boolean;
190
+ constructor(payload: any);
191
+ }
192
+ /**
193
+ * Options to pass to each
194
+ */
195
+ export interface OperatorResultListInstanceEachOptions {
196
+ /** Filter Operator Results by attached Conversation `id`. */
197
+ conversationId?: string;
198
+ /** Filter Operator Results by Intelligence Configuration `id` used to generate them. */
199
+ intelligenceConfigurationId?: string;
200
+ /** Filter Operator Results by Language Operator `id`. */
201
+ operatorId?: string;
202
+ /** The maximum number of resources to return */
203
+ pageSize?: number;
204
+ /** Token for pagination */
205
+ pageToken?: string;
206
+ /** Function to process each record. If this and a positional callback are passed, this one will be used */
207
+ callback?: (item: OperatorResultInstance, done: (err?: Error) => void) => void;
208
+ /** Function to be called upon completion of streaming */
209
+ done?: Function;
210
+ /** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
211
+ limit?: number;
212
+ }
213
+ /**
214
+ * Options to pass to list
215
+ */
216
+ export interface OperatorResultListInstanceOptions {
217
+ /** Filter Operator Results by attached Conversation `id`. */
218
+ conversationId?: string;
219
+ /** Filter Operator Results by Intelligence Configuration `id` used to generate them. */
220
+ intelligenceConfigurationId?: string;
221
+ /** Filter Operator Results by Language Operator `id`. */
222
+ operatorId?: string;
223
+ /** The maximum number of resources to return */
224
+ pageSize?: number;
225
+ /** Token for pagination */
226
+ pageToken?: string;
227
+ /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
228
+ limit?: number;
229
+ }
230
+ /**
231
+ * Options to pass to page
232
+ */
233
+ export interface OperatorResultListInstancePageOptions {
234
+ /** Filter Operator Results by attached Conversation `id`. */
235
+ conversationId?: string;
236
+ /** Filter Operator Results by Intelligence Configuration `id` used to generate them. */
237
+ intelligenceConfigurationId?: string;
238
+ /** Filter Operator Results by Language Operator `id`. */
239
+ operatorId?: string;
240
+ /** The maximum number of resources to return */
241
+ pageSize?: number;
242
+ /** Token for pagination */
243
+ pageToken?: string;
244
+ }
245
+ export interface OperatorResultContext {
246
+ /**
247
+ * Remove a OperatorResultInstance
248
+ *
249
+ * @param callback - Callback to handle processed record
250
+ *
251
+ * @returns Resolves to processed boolean
252
+ */
253
+ remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
254
+ /**
255
+ * Remove a OperatorResultInstance and return HTTP info
256
+ *
257
+ * @param callback - Callback to handle processed record
258
+ *
259
+ * @returns Resolves to processed boolean with HTTP metadata
260
+ */
261
+ removeWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<boolean>) => any): Promise<ApiResponse<boolean>>;
262
+ /**
263
+ * Fetch a OperatorResultInstance
264
+ *
265
+ * @param callback - Callback to handle processed record
266
+ *
267
+ * @returns Resolves to processed OperatorResultInstance
268
+ */
269
+ fetch(callback?: (error: Error | null, item?: OperatorResultInstance) => any): Promise<OperatorResultInstance>;
270
+ /**
271
+ * Fetch a OperatorResultInstance and return HTTP info
272
+ *
273
+ * @param callback - Callback to handle processed record
274
+ *
275
+ * @returns Resolves to processed OperatorResultInstance with HTTP metadata
276
+ */
277
+ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<OperatorResultInstance>) => any): Promise<ApiResponse<OperatorResultInstance>>;
278
+ /**
279
+ * Provide a user-friendly representation
280
+ */
281
+ toJSON(): any;
282
+ [inspect.custom](_depth: any, options: InspectOptions): any;
283
+ }
284
+ export interface OperatorResultContextSolution {
285
+ operatorResultId: string;
286
+ }
287
+ export declare class OperatorResultContextImpl implements OperatorResultContext {
288
+ protected _version: V3;
289
+ protected _solution: OperatorResultContextSolution;
290
+ protected _uri: string;
291
+ constructor(_version: V3, operatorResultId: string);
292
+ remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
293
+ removeWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<boolean>) => any): Promise<ApiResponse<boolean>>;
294
+ fetch(callback?: (error: Error | null, item?: OperatorResultInstance) => any): Promise<OperatorResultInstance>;
295
+ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<OperatorResultInstance>) => any): Promise<ApiResponse<OperatorResultInstance>>;
296
+ /**
297
+ * Provide a user-friendly representation
298
+ *
299
+ * @returns Object
300
+ */
301
+ toJSON(): OperatorResultContextSolution;
302
+ [inspect.custom](_depth: any, options: InspectOptions): string;
303
+ }
304
+ interface OperatorResultPayload extends TokenPaginationPayload {
305
+ items: OperatorResultResource[];
306
+ }
307
+ interface OperatorResultResource {
308
+ outputFormat: string;
309
+ id: string;
310
+ accountId: string;
311
+ intelligenceConfiguration: IntelligenceConfigurationReference;
312
+ conversationId: string;
313
+ operator: OperatorReference;
314
+ dateCreated: Date;
315
+ referenceIds: Array<string>;
316
+ executionDetails: ExecutionDetails;
317
+ metadata: OperatorResultsResponseBaseMetadata;
318
+ result: ExtractionResultResult;
319
+ }
320
+ export declare class OperatorResultInstance {
321
+ protected _version: V3;
322
+ protected _solution: OperatorResultContextSolution;
323
+ protected _context?: OperatorResultContext;
324
+ constructor(_version: V3, _payload: OperatorResultResource, operatorResultId?: string);
325
+ /**
326
+ * The output format set on the Operator that generated this result. Determines the structure of the `result` object.
327
+ */
328
+ outputFormat: string;
329
+ /**
330
+ * A unique identifier for the Operator Result. Assigned by Twilio (TTID).
331
+ */
332
+ id: string;
333
+ /**
334
+ * The ID of the Account that created the Language Operator.
335
+ */
336
+ accountId: string;
337
+ intelligenceConfiguration: IntelligenceConfigurationReference;
338
+ /**
339
+ * The `id` of the Conversation attached to the Operator Result.
340
+ */
341
+ conversationId: string;
342
+ operator: OperatorReference;
343
+ /**
344
+ * Timestamp for when the Operator Result was created.
345
+ */
346
+ dateCreated: Date;
347
+ /**
348
+ * The `id`s of objects related to this Operator Result.
349
+ */
350
+ referenceIds: Array<string>;
351
+ executionDetails: ExecutionDetails;
352
+ metadata: OperatorResultsResponseBaseMetadata;
353
+ result: ExtractionResultResult;
354
+ private get _proxy();
355
+ /**
356
+ * Remove a OperatorResultInstance
357
+ *
358
+ * @param callback - Callback to handle processed record
359
+ *
360
+ * @returns Resolves to processed boolean
361
+ */
362
+ remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
363
+ /**
364
+ * Remove a OperatorResultInstance and return HTTP info
365
+ *
366
+ * @param callback - Callback to handle processed record
367
+ *
368
+ * @returns Resolves to processed boolean with HTTP metadata
369
+ */
370
+ removeWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<boolean>) => any): Promise<ApiResponse<boolean>>;
371
+ /**
372
+ * Fetch a OperatorResultInstance
373
+ *
374
+ * @param callback - Callback to handle processed record
375
+ *
376
+ * @returns Resolves to processed OperatorResultInstance
377
+ */
378
+ fetch(callback?: (error: Error | null, item?: OperatorResultInstance) => any): Promise<OperatorResultInstance>;
379
+ /**
380
+ * Fetch a OperatorResultInstance and return HTTP info
381
+ *
382
+ * @param callback - Callback to handle processed record
383
+ *
384
+ * @returns Resolves to processed OperatorResultInstance with HTTP metadata
385
+ */
386
+ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<OperatorResultInstance>) => any): Promise<ApiResponse<OperatorResultInstance>>;
387
+ /**
388
+ * Provide a user-friendly representation
389
+ *
390
+ * @returns Object
391
+ */
392
+ toJSON(): {
393
+ outputFormat: string;
394
+ id: string;
395
+ accountId: string;
396
+ intelligenceConfiguration: IntelligenceConfigurationReference;
397
+ conversationId: string;
398
+ operator: OperatorReference;
399
+ dateCreated: Date;
400
+ referenceIds: string[];
401
+ executionDetails: ExecutionDetails;
402
+ metadata: OperatorResultsResponseBaseMetadata;
403
+ result: ExtractionResultResult;
404
+ };
405
+ [inspect.custom](_depth: any, options: InspectOptions): string;
406
+ }
407
+ export interface OperatorResultSolution {
408
+ }
409
+ export interface OperatorResultListInstance {
410
+ _version: V3;
411
+ _solution: OperatorResultSolution;
412
+ _uri: string;
413
+ (operatorResultId: string): OperatorResultContext;
414
+ get(operatorResultId: string): OperatorResultContext;
415
+ /**
416
+ * Streams OperatorResultInstance records from the API.
417
+ *
418
+ * This operation lazily loads records as efficiently as possible until the limit
419
+ * is reached.
420
+ *
421
+ * The results are passed into the callback function, so this operation is memory
422
+ * efficient.
423
+ *
424
+ * If a function is passed as the first argument, it will be used as the callback
425
+ * function.
426
+ *
427
+ * @param { OperatorResultListInstanceEachOptions } [params] - Options for request
428
+ * @param { function } [callback] - Function to process each record
429
+ */
430
+ each(callback?: (item: OperatorResultInstance, done: (err?: Error) => void) => void): void;
431
+ each(params: OperatorResultListInstanceEachOptions, callback?: (item: OperatorResultInstance, done: (err?: Error) => void) => void): void;
432
+ /**
433
+ * Streams OperatorResultInstance records from the API with HTTP metadata captured per page.
434
+ *
435
+ * This operation lazily loads records as efficiently as possible until the limit
436
+ * is reached. HTTP metadata (status code, headers) is captured for each page request.
437
+ *
438
+ * The results are passed into the callback function, so this operation is memory
439
+ * efficient.
440
+ *
441
+ * If a function is passed as the first argument, it will be used as the callback
442
+ * function.
443
+ *
444
+ * @param { OperatorResultListInstanceEachOptions } [params] - Options for request
445
+ * @param { function } [callback] - Function to process each record
446
+ */
447
+ eachWithHttpInfo(callback?: (item: OperatorResultInstance, done: (err?: Error) => void) => void): void;
448
+ eachWithHttpInfo(params: OperatorResultListInstanceEachOptions, callback?: (item: OperatorResultInstance, done: (err?: Error) => void) => void): void;
449
+ /**
450
+ * Retrieve a single target page of OperatorResultInstance records from the API.
451
+ *
452
+ * The request is executed immediately.
453
+ *
454
+ * @param { string } [targetUrl] - API-generated URL for the requested results page
455
+ * @param { function } [callback] - Callback to handle list of records
456
+ */
457
+ getPage(targetUrl: string, callback?: (error: Error | null, items: OperatorResultPage) => any): Promise<OperatorResultPage>;
458
+ /**
459
+ * Retrieve a single target page of OperatorResultInstance records from the API with HTTP metadata.
460
+ *
461
+ * The request is executed immediately.
462
+ *
463
+ * @param { string } [targetUrl] - API-generated URL for the requested results page
464
+ * @param { function } [callback] - Callback to handle list of records with metadata
465
+ */
466
+ getPageWithHttpInfo(targetUrl: string, callback?: (error: Error | null, items: ApiResponse<OperatorResultPage>) => any): Promise<ApiResponse<OperatorResultPage>>;
467
+ /**
468
+ * Lists OperatorResultInstance records from the API as a list.
469
+ *
470
+ * If a function is passed as the first argument, it will be used as the callback
471
+ * function.
472
+ *
473
+ * @param { OperatorResultListInstanceOptions } [params] - Options for request
474
+ * @param { function } [callback] - Callback to handle list of records
475
+ */
476
+ list(callback?: (error: Error | null, items: OperatorResultInstance[]) => any): Promise<OperatorResultInstance[]>;
477
+ list(params: OperatorResultListInstanceOptions, callback?: (error: Error | null, items: OperatorResultInstance[]) => any): Promise<OperatorResultInstance[]>;
478
+ /**
479
+ * Lists OperatorResultInstance records from the API as a list with HTTP metadata.
480
+ *
481
+ * Returns all records along with HTTP metadata from the first page fetched.
482
+ *
483
+ * If a function is passed as the first argument, it will be used as the callback
484
+ * function.
485
+ *
486
+ * @param { OperatorResultListInstanceOptions } [params] - Options for request
487
+ * @param { function } [callback] - Callback to handle list of records with metadata
488
+ */
489
+ listWithHttpInfo(callback?: (error: Error | null, items: ApiResponse<OperatorResultInstance[]>) => any): Promise<ApiResponse<OperatorResultInstance[]>>;
490
+ listWithHttpInfo(params: OperatorResultListInstanceOptions, callback?: (error: Error | null, items: ApiResponse<OperatorResultInstance[]>) => any): Promise<ApiResponse<OperatorResultInstance[]>>;
491
+ /**
492
+ * Retrieve a single page of OperatorResultInstance records from the API.
493
+ *
494
+ * The request is executed immediately.
495
+ *
496
+ * If a function is passed as the first argument, it will be used as the callback
497
+ * function.
498
+ *
499
+ * @param { OperatorResultListInstancePageOptions } [params] - Options for request
500
+ * @param { function } [callback] - Callback to handle list of records
501
+ */
502
+ page(callback?: (error: Error | null, items: OperatorResultPage) => any): Promise<OperatorResultPage>;
503
+ page(params: OperatorResultListInstancePageOptions, callback?: (error: Error | null, items: OperatorResultPage) => any): Promise<OperatorResultPage>;
504
+ /**
505
+ * Retrieve a single page of OperatorResultInstance records from the API with HTTP metadata.
506
+ *
507
+ * The request is executed immediately.
508
+ *
509
+ * If a function is passed as the first argument, it will be used as the callback
510
+ * function.
511
+ *
512
+ * @param { OperatorResultListInstancePageOptions } [params] - Options for request
513
+ * @param { function } [callback] - Callback to handle list of records with metadata
514
+ */
515
+ pageWithHttpInfo(callback?: (error: Error | null, items: ApiResponse<OperatorResultPage>) => any): Promise<ApiResponse<OperatorResultPage>>;
516
+ pageWithHttpInfo(params: OperatorResultListInstancePageOptions, callback?: (error: Error | null, items: ApiResponse<OperatorResultPage>) => any): Promise<ApiResponse<OperatorResultPage>>;
517
+ /**
518
+ * Provide a user-friendly representation
519
+ */
520
+ toJSON(): any;
521
+ [inspect.custom](_depth: any, options: InspectOptions): any;
522
+ }
523
+ export declare function OperatorResultListInstance(version: V3): OperatorResultListInstance;
524
+ export declare class OperatorResultPage extends TokenPage<V3, OperatorResultPayload, OperatorResultResource, OperatorResultInstance> {
525
+ /**
526
+ * Initialize the OperatorResultPage
527
+ *
528
+ * @param version - Version of the resource
529
+ * @param response - Response from the API
530
+ * @param uri - URI of the resource
531
+ * @param params - Query parameters
532
+ * @param solution - Path solution
533
+ */
534
+ constructor(version: V3, response: Response<string>, uri: string, params: any, solution: OperatorResultSolution);
535
+ /**
536
+ * Build an instance of OperatorResultInstance
537
+ *
538
+ * @param payload - Payload response from the API
539
+ */
540
+ getInstance(payload: OperatorResultResource): OperatorResultInstance;
541
+ [inspect.custom](depth: any, options: InspectOptions): string;
542
+ }
543
+ export {};