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 V3 from "../V3";
5
+ import { ApiResponse } from "../../../base/ApiResponse";
6
+ /**
7
+ * The creator and maintainer of the Language Operator. Available values: - `SELF` - Created and maintained by the customer (Custom Operator) - `TWILIO` - Created and maintained by Twilio (Twilio-Authored Operator)
8
+ */
9
+ export type VersionOperatorAuthor = "SELF" | "TWILIO";
10
+ /**
11
+ * Optionally specifies which contextual data sources (Memory, Knowledge) the operator can access during execution. Context objects will be passed in by the Intelligence Configuration Rule at runtime. **Note**: this simply gives the LLM access to these context objects – ultimately the LLM will determine whether to actually call for context at runtime.
12
+ */
13
+ export declare class OperatorContext {
14
+ "memory"?: OperatorContextMemory;
15
+ "knowledge"?: OperatorContextKnowledge;
16
+ constructor(payload: any);
17
+ }
18
+ /**
19
+ * Defines whether the Operator has access to organizational Knowledge Sources (e.g., policies, FAQs, scripts) at runtime.
20
+ */
21
+ export declare class OperatorContextKnowledge {
22
+ /**
23
+ * Set to true to allow access to Knowledge Sources at runtime.
24
+ */
25
+ "enabled"?: boolean;
26
+ constructor(payload: any);
27
+ }
28
+ /**
29
+ * Defines whether the Operator has access to Memory (past conversational memories and profile traits).
30
+ */
31
+ export declare class OperatorContextMemory {
32
+ /**
33
+ * Set to true to allow access to Memory at runtime.
34
+ */
35
+ "enabled"?: boolean;
36
+ constructor(payload: any);
37
+ }
38
+ /**
39
+ * The structure of the result returned by the Language Operator (specific to what the LLM returns, not the entirety of the Operator Result resource). Available values: - `TEXT`: The Operator will return plaintext from the LLM. - `JSON`: the Operator will return a structured object with schema defined in `output_schema` - `CLASSIFICATION`: The Operator will return the determined classifier string.
40
+ */
41
+ export type OperatorOutputFormat = "TEXT" | "JSON" | "CLASSIFICATION";
42
+ export declare class OperatorParameter {
43
+ /**
44
+ * The data type of the parameter (e.g., STRING, INTEGER). Available values: STRING, INTEGER, NUMBER, BOOLEAN, KNOWLEDGE_BASE_AND_SOURCE_IDS KNOWLEDGE_BASE_AND_SOURCE_IDS is a special type of parameter that refers to a Memora Knowledge Source, prefixed with its Knowledge Base container. Support for KB type = plaintext only. During Intelligence Configuration creation, this parameter is linked to a specific Knowledge Source. The operator receives the resolved plaintext at runtime and injects it into the prompt. The value of this parameter is expected to be passed in the following format: knowledge_base_id:knowledge_source_id.
45
+ */
46
+ "type": string;
47
+ /**
48
+ * Default value to use in the prompt if no value is provided by the Intelligence Configuration. Note: knowledge_base_and_source_ids does not support the default attribute, but all other param types do allow for a default value.
49
+ */
50
+ "_default"?: any | null;
51
+ /**
52
+ * Whether this parameter must be set at Operator execution time. Defaults to false if not provided.
53
+ */
54
+ "required"?: boolean;
55
+ /**
56
+ * A human-readable description of the parameter.
57
+ */
58
+ "description"?: string;
59
+ constructor(payload: any);
60
+ }
61
+ export declare class OperatorTrainingExample {
62
+ /**
63
+ * A sample input text that demonstrates the type of content the Operator processes.
64
+ */
65
+ "input": string;
66
+ /**
67
+ * The expected output corresponding to the provided input example. This value must be consistent with the defined `output_format` and `output_schema` of the Operator.
68
+ */
69
+ "output": string;
70
+ constructor(payload: any);
71
+ }
72
+ /**
73
+ * The lifecycle status of an Operator version. Available values: - `PREVIEW`: Available but restricted to internal/testing visibility. Normal execution. - `ACTIVE`: Available for normal use. - `DEPRECATED`: Still executes normally, but a Warn event is emitted via the Watch product lifecycle system. Customers should migrate to a newer version. - `RETIRED`: Hard failure on execution. An Error is logged in Watch. Customers must manually update their Intelligence Configuration to a valid version.
74
+ */
75
+ export type OperatorVersionStatus = "PREVIEW" | "ACTIVE" | "DEPRECATED" | "RETIRED";
76
+ /**
77
+ * Options to pass to each
78
+ */
79
+ export interface VersionListInstanceEachOptions {
80
+ /** The maximum number of resources to return */
81
+ pageSize?: number;
82
+ /** Token for pagination */
83
+ pageToken?: string;
84
+ /** Function to process each record. If this and a positional callback are passed, this one will be used */
85
+ callback?: (item: VersionInstance, done: (err?: Error) => void) => void;
86
+ /** Function to be called upon completion of streaming */
87
+ done?: Function;
88
+ /** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
89
+ limit?: number;
90
+ }
91
+ /**
92
+ * Options to pass to list
93
+ */
94
+ export interface VersionListInstanceOptions {
95
+ /** The maximum number of resources to return */
96
+ pageSize?: number;
97
+ /** Token for pagination */
98
+ pageToken?: string;
99
+ /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
100
+ limit?: number;
101
+ }
102
+ /**
103
+ * Options to pass to page
104
+ */
105
+ export interface VersionListInstancePageOptions {
106
+ /** The maximum number of resources to return */
107
+ pageSize?: number;
108
+ /** Token for pagination */
109
+ pageToken?: string;
110
+ }
111
+ export interface VersionContext {
112
+ /**
113
+ * Fetch a VersionInstance
114
+ *
115
+ * @param callback - Callback to handle processed record
116
+ *
117
+ * @returns Resolves to processed VersionInstance
118
+ */
119
+ fetch(callback?: (error: Error | null, item?: VersionInstance) => any): Promise<VersionInstance>;
120
+ /**
121
+ * Fetch a VersionInstance and return HTTP info
122
+ *
123
+ * @param callback - Callback to handle processed record
124
+ *
125
+ * @returns Resolves to processed VersionInstance with HTTP metadata
126
+ */
127
+ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<VersionInstance>) => any): Promise<ApiResponse<VersionInstance>>;
128
+ /**
129
+ * Provide a user-friendly representation
130
+ */
131
+ toJSON(): any;
132
+ [inspect.custom](_depth: any, options: InspectOptions): any;
133
+ }
134
+ export interface VersionContextSolution {
135
+ id: string;
136
+ versionParam: number;
137
+ }
138
+ export declare class VersionContextImpl implements VersionContext {
139
+ protected _version: V3;
140
+ protected _solution: VersionContextSolution;
141
+ protected _uri: string;
142
+ constructor(_version: V3, id: string, versionParam: number);
143
+ fetch(callback?: (error: Error | null, item?: VersionInstance) => any): Promise<VersionInstance>;
144
+ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<VersionInstance>) => any): Promise<ApiResponse<VersionInstance>>;
145
+ /**
146
+ * Provide a user-friendly representation
147
+ *
148
+ * @returns Object
149
+ */
150
+ toJSON(): VersionContextSolution;
151
+ [inspect.custom](_depth: any, options: InspectOptions): string;
152
+ }
153
+ /**
154
+ * Nested model for OperatorContext
155
+ */
156
+ export interface OperatorContext {
157
+ memory?: OperatorContextMemory;
158
+ knowledge?: OperatorContextKnowledge;
159
+ }
160
+ /**
161
+ * Nested model for OperatorContextKnowledge
162
+ */
163
+ export interface OperatorContextKnowledge {
164
+ enabled?: boolean;
165
+ }
166
+ /**
167
+ * Nested model for OperatorContextMemory
168
+ */
169
+ export interface OperatorContextMemory {
170
+ enabled?: boolean;
171
+ }
172
+ /**
173
+ * Nested model for OperatorParameter
174
+ */
175
+ export interface OperatorParameter {
176
+ type: string;
177
+ default?: any;
178
+ required?: boolean;
179
+ description?: string;
180
+ }
181
+ /**
182
+ * Nested model for OperatorTrainingExample
183
+ */
184
+ export interface OperatorTrainingExample {
185
+ input: string;
186
+ output: string;
187
+ }
188
+ interface VersionPayload extends TokenPaginationPayload {
189
+ items: VersionResource[];
190
+ }
191
+ /**
192
+ * Response model for FetchOperatorVersion200Response operations
193
+ */
194
+ interface FetchOperatorVersion200Response_ResponseResource {
195
+ id?: string;
196
+ displayName?: string;
197
+ description?: string;
198
+ version?: number;
199
+ author?: VersionOperatorAuthor;
200
+ prompt?: string;
201
+ outputFormat?: OperatorOutputFormat;
202
+ outputSchema?: Record<string, object>;
203
+ trainingExamples?: Array<OperatorTrainingExample>;
204
+ context?: OperatorContext;
205
+ parameters?: {
206
+ [key: string]: OperatorParameter;
207
+ };
208
+ status: OperatorVersionStatus;
209
+ dateCreated: Date;
210
+ }
211
+ /**
212
+ * Response model for ListOperatorVersions200ResponseItems operations
213
+ */
214
+ interface ListOperatorVersions200ResponseItems_ResponseResource {
215
+ version: number;
216
+ status: OperatorVersionStatus;
217
+ dateCreated: Date;
218
+ dateDeprecated?: Date;
219
+ retirementDate?: Date;
220
+ dateRetired?: Date;
221
+ }
222
+ /**
223
+ * Union type for all possible response models
224
+ */
225
+ type VersionResource = FetchOperatorVersion200Response_ResponseResource | ListOperatorVersions200ResponseItems_ResponseResource;
226
+ /**
227
+ * Full detail of a specific Language Operator version.
228
+ */
229
+ export declare class VersionInstance {
230
+ protected _version: V3;
231
+ protected _solution: VersionContextSolution;
232
+ protected _context?: VersionContext;
233
+ constructor(_version: V3, _payload: VersionResource, id: string, versionParam?: number);
234
+ /**
235
+ * The unique identifier for the Language Operator. Assigned by Twilio (TTID).
236
+ */
237
+ id?: string;
238
+ /**
239
+ * Display name of the Language Operator describing its purpose.
240
+ */
241
+ displayName?: string;
242
+ /**
243
+ * Description of the Language Operator further explaining its purpose.
244
+ */
245
+ description?: string;
246
+ /**
247
+ * Numeric Operator version. Automatically incremented with each update on the resource, used to ensure integrity when updating the Operator.
248
+ */
249
+ version?: number;
250
+ author?: VersionOperatorAuthor;
251
+ /**
252
+ * The natural language instructions used by the operator to analyze the conversation. Within the prompt, users can reference parameters using the `{{parameters.[param_name]}}` syntax. Parameter values are provided to the Operator by the Intelligence Configuration Rule at runtime. **Note**: Prompts will only be exposed for Custom Operators (`author` = `SELF`). Twilio-authored Operators (`author` = `TWILIO`) will have their prompts omitted from the API.
253
+ */
254
+ prompt?: string;
255
+ outputFormat?: OperatorOutputFormat;
256
+ /**
257
+ * Required for `JSON` output only. this will be set to a JSON Schema object describing the properties & data types of the response. Please see https://platform.openai.com/docs/guides/structured-outputs#supported-schemas Will include the following keywords: - `type` : Must be set to `object` - `properties`: An object containing the property names and their data types you would like the LLM to return Additional details on JSON output formatting: - The root level `type` of a JSON schema must be set to `object` - The following property data types are supported : `string`, `number`, `boolean`, `integer`, `object`, `array`, `anyOf` - Definitions with `$defs` / `$ref` are supported - Max 100 object properties and 10 levels of nesting are supported - Max 1000 enum values across all enum properties are supported - Notable JSON Schema keywords not supported include: - For `strings`: `minLength`, `maxLength` - For `objects`: `patternProperties`, `unevaluatedProperties`, `propertyNames`, `minProperties`, `maxProperties` - For `arrays`: `unevaluatedItems`, `contains`, `minContains`, `maxContains`, `uniqueItems` - Structured Operator Results will be returned in the same order as the ordering of keys in the schema - In the event an Operator execution request is refused for safety reasons the Operator Result API response will include a new field called `refusal` to indicate that the LLM refused to fulfill the request - Twilio will automatically set `additionalProperties` to false and specify all provided fields as required (constraints of Structured Outputs). You don\'t need to pass these fields as part of your JSON schema. Twilio will automatically overwrite any user-provided values for these fields.
258
+ */
259
+ outputSchema?: Record<string, object>;
260
+ /**
261
+ * An array of example input/output pairs used to illustrate the intended behavior of the Language Operator. These examples help guide the model\'s understanding of expected input–output relationships and improve consistency during evaluation and testing. **Note**: Training examples will only be exposed for Custom Operators (`author` = `SELF`). Twilio-authored Operators (`author` = `TWILIO`) will have their training examples omitted from the API.
262
+ */
263
+ trainingExamples?: Array<OperatorTrainingExample>;
264
+ context?: OperatorContext;
265
+ /**
266
+ * Defines the schema of the parameters that are provided when running the operator, including required and optional values that determine the operator\'s behavior. The values of the parameters themselves are passed in by the attached Intelligence Configuration.
267
+ */
268
+ parameters?: {
269
+ [key: string]: OperatorParameter;
270
+ };
271
+ status?: OperatorVersionStatus;
272
+ /**
273
+ * Timestamp of when this version was created.
274
+ */
275
+ dateCreated?: Date;
276
+ /**
277
+ * Timestamp of when this version was deprecated. Present when status is `DEPRECATED` or `RETIRED`.
278
+ */
279
+ dateDeprecated?: Date;
280
+ /**
281
+ * Scheduled retirement date for this version. Present when status is `DEPRECATED`.
282
+ */
283
+ retirementDate?: Date;
284
+ /**
285
+ * Timestamp of when this version was retired. Present when status is `RETIRED`.
286
+ */
287
+ dateRetired?: Date;
288
+ private get _proxy();
289
+ /**
290
+ * Fetch a VersionInstance
291
+ *
292
+ * @param callback - Callback to handle processed record
293
+ *
294
+ * @returns Resolves to processed VersionInstance
295
+ */
296
+ fetch(callback?: (error: Error | null, item?: VersionInstance) => any): Promise<VersionInstance>;
297
+ /**
298
+ * Fetch a VersionInstance and return HTTP info
299
+ *
300
+ * @param callback - Callback to handle processed record
301
+ *
302
+ * @returns Resolves to processed VersionInstance with HTTP metadata
303
+ */
304
+ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<VersionInstance>) => any): Promise<ApiResponse<VersionInstance>>;
305
+ /**
306
+ * Provide a user-friendly representation
307
+ *
308
+ * @returns Object
309
+ */
310
+ toJSON(): {
311
+ id: string;
312
+ displayName: string;
313
+ description: string;
314
+ version: number;
315
+ author: VersionOperatorAuthor;
316
+ prompt: string;
317
+ outputFormat: OperatorOutputFormat;
318
+ outputSchema: Record<string, object>;
319
+ trainingExamples: OperatorTrainingExample[];
320
+ context: OperatorContext;
321
+ parameters: {
322
+ [key: string]: OperatorParameter;
323
+ };
324
+ status: OperatorVersionStatus;
325
+ dateCreated: Date;
326
+ dateDeprecated: Date;
327
+ retirementDate: Date;
328
+ dateRetired: Date;
329
+ };
330
+ [inspect.custom](_depth: any, options: InspectOptions): string;
331
+ }
332
+ export interface VersionSolution {
333
+ id: string;
334
+ }
335
+ export interface VersionListInstance {
336
+ _version: V3;
337
+ _solution: VersionSolution;
338
+ _uri: string;
339
+ (versionParam: number): VersionContext;
340
+ get(versionParam: number): VersionContext;
341
+ /**
342
+ * Streams VersionInstance 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 { VersionListInstanceEachOptions } [params] - Options for request
354
+ * @param { function } [callback] - Function to process each record
355
+ */
356
+ each(callback?: (item: VersionInstance, done: (err?: Error) => void) => void): void;
357
+ each(params: VersionListInstanceEachOptions, callback?: (item: VersionInstance, done: (err?: Error) => void) => void): void;
358
+ /**
359
+ * Streams VersionInstance 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 { VersionListInstanceEachOptions } [params] - Options for request
371
+ * @param { function } [callback] - Function to process each record
372
+ */
373
+ eachWithHttpInfo(callback?: (item: VersionInstance, done: (err?: Error) => void) => void): void;
374
+ eachWithHttpInfo(params: VersionListInstanceEachOptions, callback?: (item: VersionInstance, done: (err?: Error) => void) => void): void;
375
+ /**
376
+ * Retrieve a single target page of VersionInstance 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: VersionPage) => any): Promise<VersionPage>;
384
+ /**
385
+ * Retrieve a single target page of VersionInstance 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<VersionPage>) => any): Promise<ApiResponse<VersionPage>>;
393
+ /**
394
+ * Lists VersionInstance 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 { VersionListInstanceOptions } [params] - Options for request
400
+ * @param { function } [callback] - Callback to handle list of records
401
+ */
402
+ list(callback?: (error: Error | null, items: VersionInstance[]) => any): Promise<VersionInstance[]>;
403
+ list(params: VersionListInstanceOptions, callback?: (error: Error | null, items: VersionInstance[]) => any): Promise<VersionInstance[]>;
404
+ /**
405
+ * Lists VersionInstance 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 { VersionListInstanceOptions } [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<VersionInstance[]>) => any): Promise<ApiResponse<VersionInstance[]>>;
416
+ listWithHttpInfo(params: VersionListInstanceOptions, callback?: (error: Error | null, items: ApiResponse<VersionInstance[]>) => any): Promise<ApiResponse<VersionInstance[]>>;
417
+ /**
418
+ * Retrieve a single page of VersionInstance 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 { VersionListInstancePageOptions } [params] - Options for request
426
+ * @param { function } [callback] - Callback to handle list of records
427
+ */
428
+ page(callback?: (error: Error | null, items: VersionPage) => any): Promise<VersionPage>;
429
+ page(params: VersionListInstancePageOptions, callback?: (error: Error | null, items: VersionPage) => any): Promise<VersionPage>;
430
+ /**
431
+ * Retrieve a single page of VersionInstance 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 { VersionListInstancePageOptions } [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<VersionPage>) => any): Promise<ApiResponse<VersionPage>>;
442
+ pageWithHttpInfo(params: VersionListInstancePageOptions, callback?: (error: Error | null, items: ApiResponse<VersionPage>) => any): Promise<ApiResponse<VersionPage>>;
443
+ /**
444
+ * Provide a user-friendly representation
445
+ */
446
+ toJSON(): any;
447
+ [inspect.custom](_depth: any, options: InspectOptions): any;
448
+ }
449
+ export declare function VersionListInstance(version: V3, id: string): VersionListInstance;
450
+ export declare class VersionPage extends TokenPage<V3, VersionPayload, VersionResource, VersionInstance> {
451
+ /**
452
+ * Initialize the VersionPage
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: V3, response: Response<string>, uri: string, params: any, solution: VersionSolution);
461
+ /**
462
+ * Build an instance of VersionInstance
463
+ *
464
+ * @param payload - Payload response from the API
465
+ */
466
+ getInstance(payload: VersionResource): VersionInstance;
467
+ [inspect.custom](depth: any, options: InspectOptions): string;
468
+ }
469
+ export {};