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,484 @@
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 KnowledgeBaseCore {
7
+ /**
8
+ * Provides a unique and addressable name to be assigned to this Knowledge Base. This name is assigned by the developer and can be used in addition to the ID. It is intended to be human-readable and unique within the account.
9
+ */
10
+ "displayName": string;
11
+ /**
12
+ * A human readable description of this resource, up to 128 characters.
13
+ */
14
+ "description"?: string;
15
+ constructor(payload: any);
16
+ }
17
+ export declare class UpdateKnowledgeBaseRequest {
18
+ /**
19
+ * Provides a unique and addressable name to be assigned to this Knowledge Base. This name is assigned by the developer and can be used in addition to the ID. It is intended to be human-readable and unique within the account.
20
+ */
21
+ "displayName"?: string;
22
+ /**
23
+ * A human readable description of this resource, up to 128 characters.
24
+ */
25
+ "description"?: string;
26
+ constructor(payload: any);
27
+ }
28
+ /**
29
+ * Options to pass to update a KnowledgeBasisInstance
30
+ */
31
+ export interface KnowledgeBasisContextUpdateOptions {
32
+ /** */
33
+ updateKnowledgeBaseRequest: UpdateKnowledgeBaseRequest;
34
+ /** Allows for optimistic concurrency control by making the request conditional. Server will only act if the resource\'s current Entity Tag (ETag) matches the one provided, preventing accidental overwrites. */
35
+ ifMatch?: string;
36
+ }
37
+ /**
38
+ * Options to pass to create a KnowledgeBasisInstance
39
+ */
40
+ export interface KnowledgeBasisListInstanceCreateOptions {
41
+ /** */
42
+ knowledgeBaseCore: KnowledgeBaseCore;
43
+ }
44
+ /**
45
+ * Options to pass to each
46
+ */
47
+ export interface KnowledgeBasisListInstanceEachOptions {
48
+ /** The maximum number of items to return per page, maximum of 100. */
49
+ pageSize?: number;
50
+ /** The token for the page of results to retrieve. */
51
+ pageToken?: string;
52
+ /** Either \'ASC\' or \'DESC\' to sort results ascending or descending respectively. */
53
+ orderBy?: "ASC" | "DESC";
54
+ /** Function to process each record. If this and a positional callback are passed, this one will be used */
55
+ callback?: (item: KnowledgeBasisInstance, done: (err?: Error) => void) => void;
56
+ /** Function to be called upon completion of streaming */
57
+ done?: Function;
58
+ /** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
59
+ limit?: number;
60
+ }
61
+ /**
62
+ * Options to pass to list
63
+ */
64
+ export interface KnowledgeBasisListInstanceOptions {
65
+ /** The maximum number of items to return per page, maximum of 100. */
66
+ pageSize?: number;
67
+ /** The token for the page of results to retrieve. */
68
+ pageToken?: string;
69
+ /** Either \'ASC\' or \'DESC\' to sort results ascending or descending respectively. */
70
+ orderBy?: "ASC" | "DESC";
71
+ /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
72
+ limit?: number;
73
+ }
74
+ /**
75
+ * Options to pass to page
76
+ */
77
+ export interface KnowledgeBasisListInstancePageOptions {
78
+ /** The maximum number of items to return per page, maximum of 100. */
79
+ pageSize?: number;
80
+ /** The token for the page of results to retrieve. */
81
+ pageToken?: string;
82
+ /** Either \'ASC\' or \'DESC\' to sort results ascending or descending respectively. */
83
+ orderBy?: "ASC" | "DESC";
84
+ }
85
+ export interface KnowledgeBasisContext {
86
+ /**
87
+ * Remove a KnowledgeBasisInstance
88
+ *
89
+ * @param callback - Callback to handle processed record
90
+ *
91
+ * @returns Resolves to processed KnowledgeBasisInstance
92
+ */
93
+ remove(callback?: (error: Error | null, item?: KnowledgeBasisInstance) => any): Promise<KnowledgeBasisInstance>;
94
+ /**
95
+ * Remove a KnowledgeBasisInstance and return HTTP info
96
+ *
97
+ * @param callback - Callback to handle processed record
98
+ *
99
+ * @returns Resolves to processed KnowledgeBasisInstance with HTTP metadata
100
+ */
101
+ removeWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<KnowledgeBasisInstance>) => any): Promise<ApiResponse<KnowledgeBasisInstance>>;
102
+ /**
103
+ * Fetch a KnowledgeBasisInstance
104
+ *
105
+ * @param callback - Callback to handle processed record
106
+ *
107
+ * @returns Resolves to processed KnowledgeBasisInstance
108
+ */
109
+ fetch(callback?: (error: Error | null, item?: KnowledgeBasisInstance) => any): Promise<KnowledgeBasisInstance>;
110
+ /**
111
+ * Fetch a KnowledgeBasisInstance and return HTTP info
112
+ *
113
+ * @param callback - Callback to handle processed record
114
+ *
115
+ * @returns Resolves to processed KnowledgeBasisInstance with HTTP metadata
116
+ */
117
+ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<KnowledgeBasisInstance>) => any): Promise<ApiResponse<KnowledgeBasisInstance>>;
118
+ /**
119
+ * Update a KnowledgeBasisInstance
120
+ *
121
+ * @param params - Body for request
122
+ * @param headers - header params for request
123
+ * @param callback - Callback to handle processed record
124
+ *
125
+ * @returns Resolves to processed KnowledgeBasisInstance
126
+ */
127
+ update(params: UpdateKnowledgeBaseRequest, headers?: any, callback?: (error: Error | null, item?: KnowledgeBasisInstance) => any): Promise<KnowledgeBasisInstance>;
128
+ /**
129
+ * Update a KnowledgeBasisInstance and return HTTP info
130
+ *
131
+ * @param params - Body for request
132
+ * @param headers - header params for request
133
+ * @param callback - Callback to handle processed record
134
+ *
135
+ * @returns Resolves to processed KnowledgeBasisInstance with HTTP metadata
136
+ */
137
+ updateWithHttpInfo(params: UpdateKnowledgeBaseRequest, headers?: any, callback?: (error: Error | null, item?: ApiResponse<KnowledgeBasisInstance>) => any): Promise<ApiResponse<KnowledgeBasisInstance>>;
138
+ /**
139
+ * Provide a user-friendly representation
140
+ */
141
+ toJSON(): any;
142
+ [inspect.custom](_depth: any, options: InspectOptions): any;
143
+ }
144
+ export interface KnowledgeBasisContextSolution {
145
+ kbId: string;
146
+ }
147
+ export declare class KnowledgeBasisContextImpl implements KnowledgeBasisContext {
148
+ protected _version: V2;
149
+ protected _solution: KnowledgeBasisContextSolution;
150
+ protected _uri: string;
151
+ constructor(_version: V2, kbId: string);
152
+ remove(callback?: (error: Error | null, item?: KnowledgeBasisInstance) => any): Promise<KnowledgeBasisInstance>;
153
+ removeWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<KnowledgeBasisInstance>) => any): Promise<ApiResponse<KnowledgeBasisInstance>>;
154
+ fetch(callback?: (error: Error | null, item?: KnowledgeBasisInstance) => any): Promise<KnowledgeBasisInstance>;
155
+ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<KnowledgeBasisInstance>) => any): Promise<ApiResponse<KnowledgeBasisInstance>>;
156
+ update(params: UpdateKnowledgeBaseRequest, headers?: any, callback?: (error: Error | null, item?: KnowledgeBasisInstance) => any): Promise<KnowledgeBasisInstance>;
157
+ updateWithHttpInfo(params: UpdateKnowledgeBaseRequest, headers?: any, callback?: (error: Error | null, item?: ApiResponse<KnowledgeBasisInstance>) => any): Promise<ApiResponse<KnowledgeBasisInstance>>;
158
+ /**
159
+ * Provide a user-friendly representation
160
+ *
161
+ * @returns Object
162
+ */
163
+ toJSON(): KnowledgeBasisContextSolution;
164
+ [inspect.custom](_depth: any, options: InspectOptions): string;
165
+ }
166
+ /**
167
+ * Nested model for KnowledgeBaseCore
168
+ */
169
+ export interface KnowledgeBaseCore {
170
+ displayName: string;
171
+ description?: string;
172
+ }
173
+ /**
174
+ * Nested model for UpdateKnowledgeBaseRequest
175
+ */
176
+ export interface UpdateKnowledgeBaseRequest {
177
+ displayName?: string;
178
+ description?: string;
179
+ }
180
+ interface KnowledgeBasisPayload extends TokenPaginationPayload {
181
+ knowledgeBases: KnowledgeBasisResource[];
182
+ }
183
+ /**
184
+ * Response model for DeleteKnowledgeBase202Response operations
185
+ */
186
+ interface DeleteKnowledgeBase202Response_ResponseResource {
187
+ message?: string;
188
+ }
189
+ /**
190
+ * Response model for KnowledgeBase operations
191
+ */
192
+ interface KnowledgeBase_ResponseResource {
193
+ displayName: string;
194
+ description?: string;
195
+ id: string;
196
+ status: string;
197
+ createdAt: Date;
198
+ updatedAt: Date;
199
+ version: number;
200
+ }
201
+ /**
202
+ * Response model for CreateKnowledgeBase202Response operations
203
+ */
204
+ interface CreateKnowledgeBase202Response_ResponseResource {
205
+ message?: string;
206
+ statusUrl?: string;
207
+ }
208
+ /**
209
+ * Response model for UpdateKnowledgeBase202Response operations
210
+ */
211
+ interface UpdateKnowledgeBase202Response_ResponseResource {
212
+ message?: string;
213
+ statusUrl?: string;
214
+ }
215
+ /**
216
+ * Union type for all possible response models
217
+ */
218
+ type KnowledgeBasisResource = DeleteKnowledgeBase202Response_ResponseResource | KnowledgeBase_ResponseResource | CreateKnowledgeBase202Response_ResponseResource | UpdateKnowledgeBase202Response_ResponseResource;
219
+ export declare class KnowledgeBasisInstance {
220
+ protected _version: V2;
221
+ protected _solution: KnowledgeBasisContextSolution;
222
+ protected _context?: KnowledgeBasisContext;
223
+ constructor(_version: V2, _payload: KnowledgeBasisResource, kbId?: string);
224
+ message?: string;
225
+ /**
226
+ * Provides a unique and addressable name to be assigned to this Knowledge Base. This name is assigned by the developer and can be used in addition to the ID. It is intended to be human-readable and unique within the account.
227
+ */
228
+ displayName?: string;
229
+ /**
230
+ * A human readable description of this resource, up to 128 characters.
231
+ */
232
+ description?: string;
233
+ /**
234
+ * The unique identifier for the Knowledge Base
235
+ */
236
+ id?: string;
237
+ /**
238
+ * The provisioning status of the Knowledge Base
239
+ */
240
+ status?: string;
241
+ /**
242
+ * The ISO 8601 timestamp when the Knowledge Base was created.
243
+ */
244
+ createdAt?: Date;
245
+ /**
246
+ * The ISO 8601 timestamp when the Knowledge Base was last updated.
247
+ */
248
+ updatedAt?: Date;
249
+ /**
250
+ * The current version number of the Knowledge Base. Incremented on each successful mutable update.
251
+ */
252
+ version?: number;
253
+ /**
254
+ * URI to check operation status.
255
+ */
256
+ statusUrl?: string;
257
+ private get _proxy();
258
+ /**
259
+ * Remove a KnowledgeBasisInstance
260
+ *
261
+ * @param callback - Callback to handle processed record
262
+ *
263
+ * @returns Resolves to processed KnowledgeBasisInstance
264
+ */
265
+ remove(callback?: (error: Error | null, item?: KnowledgeBasisInstance) => any): Promise<KnowledgeBasisInstance>;
266
+ /**
267
+ * Remove a KnowledgeBasisInstance and return HTTP info
268
+ *
269
+ * @param callback - Callback to handle processed record
270
+ *
271
+ * @returns Resolves to processed KnowledgeBasisInstance with HTTP metadata
272
+ */
273
+ removeWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<KnowledgeBasisInstance>) => any): Promise<ApiResponse<KnowledgeBasisInstance>>;
274
+ /**
275
+ * Fetch a KnowledgeBasisInstance
276
+ *
277
+ * @param callback - Callback to handle processed record
278
+ *
279
+ * @returns Resolves to processed KnowledgeBasisInstance
280
+ */
281
+ fetch(callback?: (error: Error | null, item?: KnowledgeBasisInstance) => any): Promise<KnowledgeBasisInstance>;
282
+ /**
283
+ * Fetch a KnowledgeBasisInstance and return HTTP info
284
+ *
285
+ * @param callback - Callback to handle processed record
286
+ *
287
+ * @returns Resolves to processed KnowledgeBasisInstance with HTTP metadata
288
+ */
289
+ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<KnowledgeBasisInstance>) => any): Promise<ApiResponse<KnowledgeBasisInstance>>;
290
+ /**
291
+ * Update a KnowledgeBasisInstance
292
+ *
293
+ * @param params - Body for request
294
+ * @param headers - header params for request
295
+ * @param callback - Callback to handle processed record
296
+ *
297
+ * @returns Resolves to processed KnowledgeBasisInstance
298
+ */
299
+ update(params: UpdateKnowledgeBaseRequest, headers?: any, callback?: (error: Error | null, item?: KnowledgeBasisInstance) => any): Promise<KnowledgeBasisInstance>;
300
+ /**
301
+ * Update a KnowledgeBasisInstance and return HTTP info
302
+ *
303
+ * @param params - Body for request
304
+ * @param headers - header params for request
305
+ * @param callback - Callback to handle processed record
306
+ *
307
+ * @returns Resolves to processed KnowledgeBasisInstance with HTTP metadata
308
+ */
309
+ updateWithHttpInfo(params: UpdateKnowledgeBaseRequest, headers?: any, callback?: (error: Error | null, item?: ApiResponse<KnowledgeBasisInstance>) => any): Promise<ApiResponse<KnowledgeBasisInstance>>;
310
+ /**
311
+ * Provide a user-friendly representation
312
+ *
313
+ * @returns Object
314
+ */
315
+ toJSON(): {
316
+ message: string;
317
+ displayName: string;
318
+ description: string;
319
+ id: string;
320
+ status: string;
321
+ createdAt: Date;
322
+ updatedAt: Date;
323
+ version: number;
324
+ statusUrl: string;
325
+ };
326
+ [inspect.custom](_depth: any, options: InspectOptions): string;
327
+ }
328
+ export interface KnowledgeBasisSolution {
329
+ }
330
+ export interface KnowledgeBasisListInstance {
331
+ _version: V2;
332
+ _solution: KnowledgeBasisSolution;
333
+ _uri: string;
334
+ (kbId: string): KnowledgeBasisContext;
335
+ get(kbId: string): KnowledgeBasisContext;
336
+ /**
337
+ * Create a KnowledgeBasisInstance
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 KnowledgeBasisInstance
344
+ */
345
+ create(params: KnowledgeBaseCore, headers?: any, callback?: (error: Error | null, item?: KnowledgeBasisInstance) => any): Promise<KnowledgeBasisInstance>;
346
+ /**
347
+ * Create a KnowledgeBasisInstance 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 KnowledgeBasisInstance with HTTP metadata
354
+ */
355
+ createWithHttpInfo(params: KnowledgeBaseCore, headers?: any, callback?: (error: Error | null, item?: ApiResponse<KnowledgeBasisInstance>) => any): Promise<ApiResponse<KnowledgeBasisInstance>>;
356
+ /**
357
+ * Streams KnowledgeBasisInstance records from the API.
358
+ *
359
+ * This operation lazily loads records as efficiently as possible until the limit
360
+ * is reached.
361
+ *
362
+ * The results are passed into the callback function, so this operation is memory
363
+ * efficient.
364
+ *
365
+ * If a function is passed as the first argument, it will be used as the callback
366
+ * function.
367
+ *
368
+ * @param { KnowledgeBasisListInstanceEachOptions } [params] - Options for request
369
+ * @param { function } [callback] - Function to process each record
370
+ */
371
+ each(callback?: (item: KnowledgeBasisInstance, done: (err?: Error) => void) => void): void;
372
+ each(params: KnowledgeBasisListInstanceEachOptions, callback?: (item: KnowledgeBasisInstance, done: (err?: Error) => void) => void): void;
373
+ /**
374
+ * Streams KnowledgeBasisInstance records from the API with HTTP metadata captured per page.
375
+ *
376
+ * This operation lazily loads records as efficiently as possible until the limit
377
+ * is reached. HTTP metadata (status code, headers) is captured for each page request.
378
+ *
379
+ * The results are passed into the callback function, so this operation is memory
380
+ * efficient.
381
+ *
382
+ * If a function is passed as the first argument, it will be used as the callback
383
+ * function.
384
+ *
385
+ * @param { KnowledgeBasisListInstanceEachOptions } [params] - Options for request
386
+ * @param { function } [callback] - Function to process each record
387
+ */
388
+ eachWithHttpInfo(callback?: (item: KnowledgeBasisInstance, done: (err?: Error) => void) => void): void;
389
+ eachWithHttpInfo(params: KnowledgeBasisListInstanceEachOptions, callback?: (item: KnowledgeBasisInstance, done: (err?: Error) => void) => void): void;
390
+ /**
391
+ * Retrieve a single target page of KnowledgeBasisInstance records from the API.
392
+ *
393
+ * The request is executed immediately.
394
+ *
395
+ * @param { string } [targetUrl] - API-generated URL for the requested results page
396
+ * @param { function } [callback] - Callback to handle list of records
397
+ */
398
+ getPage(targetUrl: string, callback?: (error: Error | null, items: KnowledgeBasisPage) => any): Promise<KnowledgeBasisPage>;
399
+ /**
400
+ * Retrieve a single target page of KnowledgeBasisInstance records from the API with HTTP metadata.
401
+ *
402
+ * The request is executed immediately.
403
+ *
404
+ * @param { string } [targetUrl] - API-generated URL for the requested results page
405
+ * @param { function } [callback] - Callback to handle list of records with metadata
406
+ */
407
+ getPageWithHttpInfo(targetUrl: string, callback?: (error: Error | null, items: ApiResponse<KnowledgeBasisPage>) => any): Promise<ApiResponse<KnowledgeBasisPage>>;
408
+ /**
409
+ * Lists KnowledgeBasisInstance records from the API as a list.
410
+ *
411
+ * If a function is passed as the first argument, it will be used as the callback
412
+ * function.
413
+ *
414
+ * @param { KnowledgeBasisListInstanceOptions } [params] - Options for request
415
+ * @param { function } [callback] - Callback to handle list of records
416
+ */
417
+ list(callback?: (error: Error | null, items: KnowledgeBasisInstance[]) => any): Promise<KnowledgeBasisInstance[]>;
418
+ list(params: KnowledgeBasisListInstanceOptions, callback?: (error: Error | null, items: KnowledgeBasisInstance[]) => any): Promise<KnowledgeBasisInstance[]>;
419
+ /**
420
+ * Lists KnowledgeBasisInstance records from the API as a list with HTTP metadata.
421
+ *
422
+ * Returns all records along with HTTP metadata from the first page fetched.
423
+ *
424
+ * If a function is passed as the first argument, it will be used as the callback
425
+ * function.
426
+ *
427
+ * @param { KnowledgeBasisListInstanceOptions } [params] - Options for request
428
+ * @param { function } [callback] - Callback to handle list of records with metadata
429
+ */
430
+ listWithHttpInfo(callback?: (error: Error | null, items: ApiResponse<KnowledgeBasisInstance[]>) => any): Promise<ApiResponse<KnowledgeBasisInstance[]>>;
431
+ listWithHttpInfo(params: KnowledgeBasisListInstanceOptions, callback?: (error: Error | null, items: ApiResponse<KnowledgeBasisInstance[]>) => any): Promise<ApiResponse<KnowledgeBasisInstance[]>>;
432
+ /**
433
+ * Retrieve a single page of KnowledgeBasisInstance records from the API.
434
+ *
435
+ * The request is executed immediately.
436
+ *
437
+ * If a function is passed as the first argument, it will be used as the callback
438
+ * function.
439
+ *
440
+ * @param { KnowledgeBasisListInstancePageOptions } [params] - Options for request
441
+ * @param { function } [callback] - Callback to handle list of records
442
+ */
443
+ page(callback?: (error: Error | null, items: KnowledgeBasisPage) => any): Promise<KnowledgeBasisPage>;
444
+ page(params: KnowledgeBasisListInstancePageOptions, callback?: (error: Error | null, items: KnowledgeBasisPage) => any): Promise<KnowledgeBasisPage>;
445
+ /**
446
+ * Retrieve a single page of KnowledgeBasisInstance records from the API with HTTP metadata.
447
+ *
448
+ * The request is executed immediately.
449
+ *
450
+ * If a function is passed as the first argument, it will be used as the callback
451
+ * function.
452
+ *
453
+ * @param { KnowledgeBasisListInstancePageOptions } [params] - Options for request
454
+ * @param { function } [callback] - Callback to handle list of records with metadata
455
+ */
456
+ pageWithHttpInfo(callback?: (error: Error | null, items: ApiResponse<KnowledgeBasisPage>) => any): Promise<ApiResponse<KnowledgeBasisPage>>;
457
+ pageWithHttpInfo(params: KnowledgeBasisListInstancePageOptions, callback?: (error: Error | null, items: ApiResponse<KnowledgeBasisPage>) => any): Promise<ApiResponse<KnowledgeBasisPage>>;
458
+ /**
459
+ * Provide a user-friendly representation
460
+ */
461
+ toJSON(): any;
462
+ [inspect.custom](_depth: any, options: InspectOptions): any;
463
+ }
464
+ export declare function KnowledgeBasisListInstance(version: V2): KnowledgeBasisListInstance;
465
+ export declare class KnowledgeBasisPage extends TokenPage<V2, KnowledgeBasisPayload, KnowledgeBasisResource, KnowledgeBasisInstance> {
466
+ /**
467
+ * Initialize the KnowledgeBasisPage
468
+ *
469
+ * @param version - Version of the resource
470
+ * @param response - Response from the API
471
+ * @param uri - URI of the resource
472
+ * @param params - Query parameters
473
+ * @param solution - Path solution
474
+ */
475
+ constructor(version: V2, response: Response<string>, uri: string, params: any, solution: KnowledgeBasisSolution);
476
+ /**
477
+ * Build an instance of KnowledgeBasisInstance
478
+ *
479
+ * @param payload - Payload response from the API
480
+ */
481
+ getInstance(payload: KnowledgeBasisResource): KnowledgeBasisInstance;
482
+ [inspect.custom](depth: any, options: InspectOptions): string;
483
+ }
484
+ export {};