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.
- package/lib/rest/ConversationsBase.d.ts +3 -0
- package/lib/rest/ConversationsBase.js +5 -0
- package/lib/rest/InsightsBase.d.ts +3 -0
- package/lib/rest/InsightsBase.js +5 -0
- package/lib/rest/IntelligenceBase.d.ts +3 -0
- package/lib/rest/IntelligenceBase.js +5 -0
- package/lib/rest/KnowledgeBase.d.ts +3 -0
- package/lib/rest/KnowledgeBase.js +5 -0
- package/lib/rest/Memory.d.ts +4 -0
- package/lib/rest/Memory.js +8 -0
- package/lib/rest/MemoryBase.d.ts +13 -0
- package/lib/rest/MemoryBase.js +31 -0
- package/lib/rest/Twilio.d.ts +5 -0
- package/lib/rest/Twilio.js +5 -0
- package/lib/rest/VoiceBase.d.ts +3 -0
- package/lib/rest/VoiceBase.js +5 -0
- package/lib/rest/api/v2010/account/call/recording.d.ts +2 -0
- package/lib/rest/api/v2010/account/call/recording.js +4 -0
- package/lib/rest/api/v2010/account/call/transcription.d.ts +1 -1
- package/lib/rest/api/v2010/account/call/transcription.js +6 -4
- package/lib/rest/api/v2010/account/call.d.ts +2 -0
- package/lib/rest/api/v2010/account/call.js +4 -0
- package/lib/rest/api/v2010/account/conference/participant.d.ts +2 -0
- package/lib/rest/api/v2010/account/conference/participant.js +4 -0
- package/lib/rest/conversations/V2.d.ts +38 -0
- package/lib/rest/conversations/V2.js +72 -0
- package/lib/rest/conversations/v2/action.d.ts +241 -0
- package/lib/rest/conversations/v2/action.js +246 -0
- package/lib/rest/conversations/v2/communication.d.ts +479 -0
- package/lib/rest/conversations/v2/communication.js +436 -0
- package/lib/rest/conversations/v2/configuration.d.ts +906 -0
- package/lib/rest/conversations/v2/configuration.js +619 -0
- package/lib/rest/conversations/v2/conversation.d.ts +936 -0
- package/lib/rest/conversations/v2/conversation.js +664 -0
- package/lib/rest/conversations/v2/operation.d.ts +167 -0
- package/lib/rest/conversations/v2/operation.js +170 -0
- package/lib/rest/conversations/v2/participant.d.ts +469 -0
- package/lib/rest/conversations/v2/participant.js +442 -0
- package/lib/rest/flexApi/v1/plugin/pluginVersions.d.ts +1 -1
- package/lib/rest/flexApi/v1/plugin/pluginVersions.js +8 -6
- package/lib/rest/insights/V3.d.ts +20 -0
- package/lib/rest/insights/V3.js +42 -0
- package/lib/rest/insights/v1/call/callSummary.d.ts +10 -10
- package/lib/rest/insights/v1/call/event.d.ts +4 -4
- package/lib/rest/insights/v1/callSummaries.d.ts +12 -9
- package/lib/rest/insights/v3/metadata.d.ts +115 -0
- package/lib/rest/insights/v3/metadata.js +118 -0
- package/lib/rest/insights/v3/query.d.ts +180 -0
- package/lib/rest/insights/v3/query.js +214 -0
- package/lib/rest/intelligence/V3.d.ts +35 -0
- package/lib/rest/intelligence/V3.js +65 -0
- package/lib/rest/intelligence/v3/configuration.d.ts +693 -0
- package/lib/rest/intelligence/v3/configuration.js +528 -0
- package/lib/rest/intelligence/v3/conversation.d.ts +478 -0
- package/lib/rest/intelligence/v3/conversation.js +342 -0
- package/lib/rest/intelligence/v3/operator.d.ts +619 -0
- package/lib/rest/intelligence/v3/operator.js +493 -0
- package/lib/rest/intelligence/v3/operatorResult.d.ts +543 -0
- package/lib/rest/intelligence/v3/operatorResult.js +478 -0
- package/lib/rest/intelligence/v3/version.d.ts +469 -0
- package/lib/rest/intelligence/v3/version.js +341 -0
- package/lib/rest/knowledge/V2.d.ts +31 -0
- package/lib/rest/knowledge/V2.js +62 -0
- package/lib/rest/knowledge/v2/chunk.d.ts +209 -0
- package/lib/rest/knowledge/v2/chunk.js +178 -0
- package/lib/rest/knowledge/v2/knowledge.d.ts +507 -0
- package/lib/rest/knowledge/v2/knowledge.js +466 -0
- package/lib/rest/knowledge/v2/knowledgeBasis.d.ts +484 -0
- package/lib/rest/knowledge/v2/knowledgeBasis.js +441 -0
- package/lib/rest/knowledge/v2/operation.d.ts +162 -0
- package/lib/rest/knowledge/v2/operation.js +175 -0
- package/lib/rest/knowledge/v2/search.d.ts +180 -0
- package/lib/rest/knowledge/v2/search.js +174 -0
- package/lib/rest/memory/V1.d.ts +76 -0
- package/lib/rest/memory/V1.js +140 -0
- package/lib/rest/memory/v1/bulk.d.ts +129 -0
- package/lib/rest/memory/v1/bulk.js +158 -0
- package/lib/rest/memory/v1/conversationSummary.d.ts +531 -0
- package/lib/rest/memory/v1/conversationSummary.js +473 -0
- package/lib/rest/memory/v1/dataMapping.d.ts +630 -0
- package/lib/rest/memory/v1/dataMapping.js +512 -0
- package/lib/rest/memory/v1/event.d.ts +153 -0
- package/lib/rest/memory/v1/event.js +159 -0
- package/lib/rest/memory/v1/identifier.d.ts +362 -0
- package/lib/rest/memory/v1/identifier.js +369 -0
- package/lib/rest/memory/v1/identityResolutionSetting.d.ts +247 -0
- package/lib/rest/memory/v1/identityResolutionSetting.js +229 -0
- package/lib/rest/memory/v1/import.d.ts +292 -0
- package/lib/rest/memory/v1/import.js +280 -0
- package/lib/rest/memory/v1/lookup.d.ts +82 -0
- package/lib/rest/memory/v1/lookup.js +118 -0
- package/lib/rest/memory/v1/observation.d.ts +521 -0
- package/lib/rest/memory/v1/observation.js +477 -0
- package/lib/rest/memory/v1/operation.d.ts +162 -0
- package/lib/rest/memory/v1/operation.js +175 -0
- package/lib/rest/memory/v1/profile.d.ts +548 -0
- package/lib/rest/memory/v1/profile.js +531 -0
- package/lib/rest/memory/v1/recall.d.ts +306 -0
- package/lib/rest/memory/v1/recall.js +234 -0
- package/lib/rest/memory/v1/revision.d.ts +246 -0
- package/lib/rest/memory/v1/revision.js +195 -0
- package/lib/rest/memory/v1/store.d.ts +544 -0
- package/lib/rest/memory/v1/store.js +534 -0
- package/lib/rest/memory/v1/trait.d.ts +233 -0
- package/lib/rest/memory/v1/trait.js +190 -0
- package/lib/rest/memory/v1/traitGroup.d.ts +758 -0
- package/lib/rest/memory/v1/traitGroup.js +555 -0
- package/lib/rest/messaging/v2/channelsSender.d.ts +8 -0
- package/lib/rest/messaging/v2/channelsSender.js +2 -0
- package/lib/rest/previewIam/versionless/organization/roleAssignment.d.ts +32 -0
- package/lib/rest/previewIam/versionless/organization/roleAssignment.js +14 -0
- package/lib/rest/studio/v2/flow.d.ts +4 -0
- package/lib/rest/studio/v2/flow.js +8 -0
- package/lib/rest/verify/v2/service/webhook.d.ts +2 -2
- package/lib/rest/verify/v2/service/webhook.js +8 -8
- package/lib/rest/voice/V3.d.ts +15 -0
- package/lib/rest/voice/V3.js +37 -0
- package/lib/rest/voice/v3/transcription.d.ts +378 -0
- package/lib/rest/voice/v3/transcription.js +264 -0
- package/lib/twiml/VoiceResponse.d.ts +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,544 @@
|
|
|
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
|
+
export declare class Meta {
|
|
7
|
+
/**
|
|
8
|
+
* The key of the list property contains the actual data items. This enables programmatic iteration over paginated results.
|
|
9
|
+
*/
|
|
10
|
+
"key"?: string;
|
|
11
|
+
"pageSize"?: number;
|
|
12
|
+
"nextToken"?: string;
|
|
13
|
+
"previousToken"?: string;
|
|
14
|
+
constructor(payload: any);
|
|
15
|
+
}
|
|
16
|
+
export declare class PatchStoreRequest {
|
|
17
|
+
/**
|
|
18
|
+
* Provides a unique and addressable name to be assigned to this Store. 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.
|
|
19
|
+
*/
|
|
20
|
+
"displayName"?: string;
|
|
21
|
+
/**
|
|
22
|
+
* A human readable description of this resource, up to 128 characters.
|
|
23
|
+
*/
|
|
24
|
+
"description"?: string;
|
|
25
|
+
constructor(payload: any);
|
|
26
|
+
}
|
|
27
|
+
export declare class ServiceRequest {
|
|
28
|
+
/**
|
|
29
|
+
* Provides a unique and addressable name to be assigned to this Store. 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.
|
|
30
|
+
*/
|
|
31
|
+
"displayName": string;
|
|
32
|
+
/**
|
|
33
|
+
* A human readable description of this resource, up to 128 characters.
|
|
34
|
+
*/
|
|
35
|
+
"description"?: string;
|
|
36
|
+
constructor(payload: any);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Options to pass to patch a StoreInstance
|
|
40
|
+
*/
|
|
41
|
+
export interface StoreContextPatchOptions {
|
|
42
|
+
/** 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. */
|
|
43
|
+
ifMatch?: string;
|
|
44
|
+
/** */
|
|
45
|
+
patchStoreRequest?: PatchStoreRequest;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Options to pass to create a StoreInstance
|
|
49
|
+
*/
|
|
50
|
+
export interface StoreListInstanceCreateOptions {
|
|
51
|
+
/** */
|
|
52
|
+
serviceRequest: ServiceRequest;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Options to pass to each
|
|
56
|
+
*/
|
|
57
|
+
export interface StoreListInstanceEachOptions {
|
|
58
|
+
/** The maximum number of items to return per page, maximum of 100. */
|
|
59
|
+
pageSize?: number;
|
|
60
|
+
/** The token for the page of results to retrieve. */
|
|
61
|
+
pageToken?: string;
|
|
62
|
+
/** Either \'ASC\' or \'DESC\' to sort results ascending or descending respectively. */
|
|
63
|
+
orderBy?: "ASC" | "DESC";
|
|
64
|
+
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
65
|
+
callback?: (item: StoreInstance, done: (err?: Error) => void) => void;
|
|
66
|
+
/** Function to be called upon completion of streaming */
|
|
67
|
+
done?: Function;
|
|
68
|
+
/** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
|
|
69
|
+
limit?: number;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Options to pass to list
|
|
73
|
+
*/
|
|
74
|
+
export interface StoreListInstanceOptions {
|
|
75
|
+
/** The maximum number of items to return per page, maximum of 100. */
|
|
76
|
+
pageSize?: number;
|
|
77
|
+
/** The token for the page of results to retrieve. */
|
|
78
|
+
pageToken?: string;
|
|
79
|
+
/** Either \'ASC\' or \'DESC\' to sort results ascending or descending respectively. */
|
|
80
|
+
orderBy?: "ASC" | "DESC";
|
|
81
|
+
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
82
|
+
limit?: number;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Options to pass to page
|
|
86
|
+
*/
|
|
87
|
+
export interface StoreListInstancePageOptions {
|
|
88
|
+
/** The maximum number of items to return per page, maximum of 100. */
|
|
89
|
+
pageSize?: number;
|
|
90
|
+
/** The token for the page of results to retrieve. */
|
|
91
|
+
pageToken?: string;
|
|
92
|
+
/** Either \'ASC\' or \'DESC\' to sort results ascending or descending respectively. */
|
|
93
|
+
orderBy?: "ASC" | "DESC";
|
|
94
|
+
}
|
|
95
|
+
export interface StoreContext {
|
|
96
|
+
/**
|
|
97
|
+
* Remove a StoreInstance
|
|
98
|
+
*
|
|
99
|
+
* @param callback - Callback to handle processed record
|
|
100
|
+
*
|
|
101
|
+
* @returns Resolves to processed StoreInstance
|
|
102
|
+
*/
|
|
103
|
+
remove(callback?: (error: Error | null, item?: StoreInstance) => any): Promise<StoreInstance>;
|
|
104
|
+
/**
|
|
105
|
+
* Remove a StoreInstance and return HTTP info
|
|
106
|
+
*
|
|
107
|
+
* @param callback - Callback to handle processed record
|
|
108
|
+
*
|
|
109
|
+
* @returns Resolves to processed StoreInstance with HTTP metadata
|
|
110
|
+
*/
|
|
111
|
+
removeWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<StoreInstance>) => any): Promise<ApiResponse<StoreInstance>>;
|
|
112
|
+
/**
|
|
113
|
+
* Fetch a StoreInstance
|
|
114
|
+
*
|
|
115
|
+
* @param callback - Callback to handle processed record
|
|
116
|
+
*
|
|
117
|
+
* @returns Resolves to processed StoreInstance
|
|
118
|
+
*/
|
|
119
|
+
fetch(callback?: (error: Error | null, item?: StoreInstance) => any): Promise<StoreInstance>;
|
|
120
|
+
/**
|
|
121
|
+
* Fetch a StoreInstance and return HTTP info
|
|
122
|
+
*
|
|
123
|
+
* @param callback - Callback to handle processed record
|
|
124
|
+
*
|
|
125
|
+
* @returns Resolves to processed StoreInstance with HTTP metadata
|
|
126
|
+
*/
|
|
127
|
+
fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<StoreInstance>) => any): Promise<ApiResponse<StoreInstance>>;
|
|
128
|
+
/**
|
|
129
|
+
* Patch a StoreInstance
|
|
130
|
+
*
|
|
131
|
+
* @param callback - Callback to handle processed record
|
|
132
|
+
*
|
|
133
|
+
* @returns Resolves to processed StoreInstance
|
|
134
|
+
*/
|
|
135
|
+
patch(callback?: (error: Error | null, item?: StoreInstance) => any): Promise<StoreInstance>;
|
|
136
|
+
/**
|
|
137
|
+
* Patch a StoreInstance
|
|
138
|
+
*
|
|
139
|
+
* @param params - Body for request
|
|
140
|
+
* @param headers - header params for request
|
|
141
|
+
* @param callback - Callback to handle processed record
|
|
142
|
+
*
|
|
143
|
+
* @returns Resolves to processed StoreInstance
|
|
144
|
+
*/
|
|
145
|
+
patch(params: PatchStoreRequest, headers?: any, callback?: (error: Error | null, item?: StoreInstance) => any): Promise<StoreInstance>;
|
|
146
|
+
/**
|
|
147
|
+
* Patch a StoreInstance and return HTTP info
|
|
148
|
+
*
|
|
149
|
+
* @param callback - Callback to handle processed record
|
|
150
|
+
*
|
|
151
|
+
* @returns Resolves to processed StoreInstance with HTTP metadata
|
|
152
|
+
*/
|
|
153
|
+
patchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<StoreInstance>) => any): Promise<ApiResponse<StoreInstance>>;
|
|
154
|
+
/**
|
|
155
|
+
* Patch a StoreInstance and return HTTP info
|
|
156
|
+
*
|
|
157
|
+
* @param params - Body for request
|
|
158
|
+
* @param headers - header params for request
|
|
159
|
+
* @param callback - Callback to handle processed record
|
|
160
|
+
*
|
|
161
|
+
* @returns Resolves to processed StoreInstance with HTTP metadata
|
|
162
|
+
*/
|
|
163
|
+
patchWithHttpInfo(params: PatchStoreRequest, headers?: any, callback?: (error: Error | null, item?: ApiResponse<StoreInstance>) => any): Promise<ApiResponse<StoreInstance>>;
|
|
164
|
+
/**
|
|
165
|
+
* Provide a user-friendly representation
|
|
166
|
+
*/
|
|
167
|
+
toJSON(): any;
|
|
168
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
169
|
+
}
|
|
170
|
+
export interface StoreContextSolution {
|
|
171
|
+
storeId: string;
|
|
172
|
+
}
|
|
173
|
+
export declare class StoreContextImpl implements StoreContext {
|
|
174
|
+
protected _version: V1;
|
|
175
|
+
protected _solution: StoreContextSolution;
|
|
176
|
+
protected _uri: string;
|
|
177
|
+
constructor(_version: V1, storeId: string);
|
|
178
|
+
remove(callback?: (error: Error | null, item?: StoreInstance) => any): Promise<StoreInstance>;
|
|
179
|
+
removeWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<StoreInstance>) => any): Promise<ApiResponse<StoreInstance>>;
|
|
180
|
+
fetch(callback?: (error: Error | null, item?: StoreInstance) => any): Promise<StoreInstance>;
|
|
181
|
+
fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<StoreInstance>) => any): Promise<ApiResponse<StoreInstance>>;
|
|
182
|
+
patch(params?: PatchStoreRequest | ((error: Error | null, item?: StoreInstance) => any), headers?: any, callback?: (error: Error | null, item?: StoreInstance) => any): Promise<StoreInstance>;
|
|
183
|
+
patchWithHttpInfo(params?: PatchStoreRequest | ((error: Error | null, item?: ApiResponse<StoreInstance>) => any), headers?: any, callback?: (error: Error | null, item?: ApiResponse<StoreInstance>) => any): Promise<ApiResponse<StoreInstance>>;
|
|
184
|
+
/**
|
|
185
|
+
* Provide a user-friendly representation
|
|
186
|
+
*
|
|
187
|
+
* @returns Object
|
|
188
|
+
*/
|
|
189
|
+
toJSON(): StoreContextSolution;
|
|
190
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Nested model for Meta
|
|
194
|
+
*/
|
|
195
|
+
export interface Meta {
|
|
196
|
+
key?: string;
|
|
197
|
+
pageSize?: number;
|
|
198
|
+
nextToken?: string;
|
|
199
|
+
previousToken?: string;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Nested model for PatchStoreRequest
|
|
203
|
+
*/
|
|
204
|
+
export interface PatchStoreRequest {
|
|
205
|
+
displayName?: string;
|
|
206
|
+
description?: string;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Nested model for ServiceRequest
|
|
210
|
+
*/
|
|
211
|
+
export interface ServiceRequest {
|
|
212
|
+
displayName: string;
|
|
213
|
+
description?: string;
|
|
214
|
+
}
|
|
215
|
+
interface StorePayload extends TokenPaginationPayload {
|
|
216
|
+
stores: string[];
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Response model for PatchStore202Response operations
|
|
220
|
+
*/
|
|
221
|
+
interface PatchStore202Response_ResponseResource {
|
|
222
|
+
message?: string;
|
|
223
|
+
statusUrl?: string;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Response model for CreateStore202Response operations
|
|
227
|
+
*/
|
|
228
|
+
interface CreateStore202Response_ResponseResource {
|
|
229
|
+
message?: string;
|
|
230
|
+
statusUrl?: string;
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Response model for ServiceList operations
|
|
234
|
+
*/
|
|
235
|
+
interface ServiceList_ResponseResource {
|
|
236
|
+
stores?: Array<string>;
|
|
237
|
+
meta?: Meta;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Response model for DeleteStore202Response operations
|
|
241
|
+
*/
|
|
242
|
+
interface DeleteStore202Response_ResponseResource {
|
|
243
|
+
message?: string;
|
|
244
|
+
statusUrl?: string;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Response model for Store operations
|
|
248
|
+
*/
|
|
249
|
+
interface Store_ResponseResource {
|
|
250
|
+
displayName: string;
|
|
251
|
+
description?: string;
|
|
252
|
+
id: string;
|
|
253
|
+
status: string;
|
|
254
|
+
intelligenceServiceId: string;
|
|
255
|
+
version: number;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Union type for all possible response models
|
|
259
|
+
*/
|
|
260
|
+
type StoreResource = PatchStore202Response_ResponseResource | CreateStore202Response_ResponseResource | ServiceList_ResponseResource | DeleteStore202Response_ResponseResource | Store_ResponseResource;
|
|
261
|
+
export declare class StoreInstance {
|
|
262
|
+
protected _version: V1;
|
|
263
|
+
protected _solution: StoreContextSolution;
|
|
264
|
+
protected _context?: StoreContext;
|
|
265
|
+
constructor(_version: V1, _payload: StoreResource, storeId?: string);
|
|
266
|
+
message?: string;
|
|
267
|
+
/**
|
|
268
|
+
* URI to check operation status.
|
|
269
|
+
*/
|
|
270
|
+
statusUrl?: string;
|
|
271
|
+
/**
|
|
272
|
+
* List of Memory Store IDs associated with the Twilio account.
|
|
273
|
+
*/
|
|
274
|
+
stores?: Array<string>;
|
|
275
|
+
meta?: Meta;
|
|
276
|
+
/**
|
|
277
|
+
* Provides a unique and addressable name to be assigned to this Store. 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.
|
|
278
|
+
*/
|
|
279
|
+
displayName?: string;
|
|
280
|
+
/**
|
|
281
|
+
* A human readable description of this resource, up to 128 characters.
|
|
282
|
+
*/
|
|
283
|
+
description?: string;
|
|
284
|
+
/**
|
|
285
|
+
* The unique identifier for the Memory Store
|
|
286
|
+
*/
|
|
287
|
+
id?: string;
|
|
288
|
+
/**
|
|
289
|
+
* The current status of the Memory Store. A store begins in the QUEUED state as it is scheduled for processing. It then moves to PROVISIONING at the beginning of processing. It transitions to ACTIVE once all dependent resources are provisioned, including Conversational Intelligence capabilities. If there is an issue provisioning resources, the store will move to the FAILED state.
|
|
290
|
+
*/
|
|
291
|
+
status?: string;
|
|
292
|
+
/**
|
|
293
|
+
* The ID of the associated intelligence service that was provisioned for memory extraction.
|
|
294
|
+
*/
|
|
295
|
+
intelligenceServiceId?: string;
|
|
296
|
+
/**
|
|
297
|
+
* The current version number of the Memory Store. Incremented on each successful update.
|
|
298
|
+
*/
|
|
299
|
+
version?: number;
|
|
300
|
+
private get _proxy();
|
|
301
|
+
/**
|
|
302
|
+
* Remove a StoreInstance
|
|
303
|
+
*
|
|
304
|
+
* @param callback - Callback to handle processed record
|
|
305
|
+
*
|
|
306
|
+
* @returns Resolves to processed StoreInstance
|
|
307
|
+
*/
|
|
308
|
+
remove(callback?: (error: Error | null, item?: StoreInstance) => any): Promise<StoreInstance>;
|
|
309
|
+
/**
|
|
310
|
+
* Remove a StoreInstance and return HTTP info
|
|
311
|
+
*
|
|
312
|
+
* @param callback - Callback to handle processed record
|
|
313
|
+
*
|
|
314
|
+
* @returns Resolves to processed StoreInstance with HTTP metadata
|
|
315
|
+
*/
|
|
316
|
+
removeWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<StoreInstance>) => any): Promise<ApiResponse<StoreInstance>>;
|
|
317
|
+
/**
|
|
318
|
+
* Fetch a StoreInstance
|
|
319
|
+
*
|
|
320
|
+
* @param callback - Callback to handle processed record
|
|
321
|
+
*
|
|
322
|
+
* @returns Resolves to processed StoreInstance
|
|
323
|
+
*/
|
|
324
|
+
fetch(callback?: (error: Error | null, item?: StoreInstance) => any): Promise<StoreInstance>;
|
|
325
|
+
/**
|
|
326
|
+
* Fetch a StoreInstance and return HTTP info
|
|
327
|
+
*
|
|
328
|
+
* @param callback - Callback to handle processed record
|
|
329
|
+
*
|
|
330
|
+
* @returns Resolves to processed StoreInstance with HTTP metadata
|
|
331
|
+
*/
|
|
332
|
+
fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<StoreInstance>) => any): Promise<ApiResponse<StoreInstance>>;
|
|
333
|
+
/**
|
|
334
|
+
* Patch a StoreInstance
|
|
335
|
+
*
|
|
336
|
+
* @param callback - Callback to handle processed record
|
|
337
|
+
*
|
|
338
|
+
* @returns Resolves to processed StoreInstance
|
|
339
|
+
*/
|
|
340
|
+
patch(callback?: (error: Error | null, item?: StoreInstance) => any): Promise<StoreInstance>;
|
|
341
|
+
/**
|
|
342
|
+
* Patch a StoreInstance
|
|
343
|
+
*
|
|
344
|
+
* @param params - Body for request
|
|
345
|
+
* @param headers - header params for request
|
|
346
|
+
* @param callback - Callback to handle processed record
|
|
347
|
+
*
|
|
348
|
+
* @returns Resolves to processed StoreInstance
|
|
349
|
+
*/
|
|
350
|
+
patch(params: PatchStoreRequest, headers?: any, callback?: (error: Error | null, item?: StoreInstance) => any): Promise<StoreInstance>;
|
|
351
|
+
/**
|
|
352
|
+
* Patch a StoreInstance and return HTTP info
|
|
353
|
+
*
|
|
354
|
+
* @param callback - Callback to handle processed record
|
|
355
|
+
*
|
|
356
|
+
* @returns Resolves to processed StoreInstance with HTTP metadata
|
|
357
|
+
*/
|
|
358
|
+
patchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<StoreInstance>) => any): Promise<ApiResponse<StoreInstance>>;
|
|
359
|
+
/**
|
|
360
|
+
* Patch a StoreInstance and return HTTP info
|
|
361
|
+
*
|
|
362
|
+
* @param params - Body for request
|
|
363
|
+
* @param headers - header params for request
|
|
364
|
+
* @param callback - Callback to handle processed record
|
|
365
|
+
*
|
|
366
|
+
* @returns Resolves to processed StoreInstance with HTTP metadata
|
|
367
|
+
*/
|
|
368
|
+
patchWithHttpInfo(params: PatchStoreRequest, headers?: any, callback?: (error: Error | null, item?: ApiResponse<StoreInstance>) => any): Promise<ApiResponse<StoreInstance>>;
|
|
369
|
+
/**
|
|
370
|
+
* Provide a user-friendly representation
|
|
371
|
+
*
|
|
372
|
+
* @returns Object
|
|
373
|
+
*/
|
|
374
|
+
toJSON(): {
|
|
375
|
+
message: string;
|
|
376
|
+
statusUrl: string;
|
|
377
|
+
stores: string[];
|
|
378
|
+
meta: Meta;
|
|
379
|
+
displayName: string;
|
|
380
|
+
description: string;
|
|
381
|
+
id: string;
|
|
382
|
+
status: string;
|
|
383
|
+
intelligenceServiceId: string;
|
|
384
|
+
version: number;
|
|
385
|
+
};
|
|
386
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
387
|
+
}
|
|
388
|
+
export interface StoreSolution {
|
|
389
|
+
}
|
|
390
|
+
export interface StoreListInstance {
|
|
391
|
+
_version: V1;
|
|
392
|
+
_solution: StoreSolution;
|
|
393
|
+
_uri: string;
|
|
394
|
+
(storeId: string): StoreContext;
|
|
395
|
+
get(storeId: string): StoreContext;
|
|
396
|
+
/**
|
|
397
|
+
* Create a StoreInstance
|
|
398
|
+
*
|
|
399
|
+
* @param params - Body for request
|
|
400
|
+
* @param headers - header params for request
|
|
401
|
+
* @param callback - Callback to handle processed record
|
|
402
|
+
*
|
|
403
|
+
* @returns Resolves to processed StoreInstance
|
|
404
|
+
*/
|
|
405
|
+
create(params: ServiceRequest, headers?: any, callback?: (error: Error | null, item?: StoreInstance) => any): Promise<StoreInstance>;
|
|
406
|
+
/**
|
|
407
|
+
* Create a StoreInstance and return HTTP info
|
|
408
|
+
*
|
|
409
|
+
* @param params - Body for request
|
|
410
|
+
* @param headers - header params for request
|
|
411
|
+
* @param callback - Callback to handle processed record
|
|
412
|
+
*
|
|
413
|
+
* @returns Resolves to processed StoreInstance with HTTP metadata
|
|
414
|
+
*/
|
|
415
|
+
createWithHttpInfo(params: ServiceRequest, headers?: any, callback?: (error: Error | null, item?: ApiResponse<StoreInstance>) => any): Promise<ApiResponse<StoreInstance>>;
|
|
416
|
+
/**
|
|
417
|
+
* Streams StoreInstance records from the API.
|
|
418
|
+
*
|
|
419
|
+
* This operation lazily loads records as efficiently as possible until the limit
|
|
420
|
+
* is reached.
|
|
421
|
+
*
|
|
422
|
+
* The results are passed into the callback function, so this operation is memory
|
|
423
|
+
* efficient.
|
|
424
|
+
*
|
|
425
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
426
|
+
* function.
|
|
427
|
+
*
|
|
428
|
+
* @param { StoreListInstanceEachOptions } [params] - Options for request
|
|
429
|
+
* @param { function } [callback] - Function to process each record
|
|
430
|
+
*/
|
|
431
|
+
each(callback?: (item: string, done: (err?: Error) => void) => void): void;
|
|
432
|
+
each(params: StoreListInstanceEachOptions, callback?: (item: string, done: (err?: Error) => void) => void): void;
|
|
433
|
+
/**
|
|
434
|
+
* Streams StoreInstance records from the API with HTTP metadata captured per page.
|
|
435
|
+
*
|
|
436
|
+
* This operation lazily loads records as efficiently as possible until the limit
|
|
437
|
+
* is reached. HTTP metadata (status code, headers) is captured for each page request.
|
|
438
|
+
*
|
|
439
|
+
* The results are passed into the callback function, so this operation is memory
|
|
440
|
+
* efficient.
|
|
441
|
+
*
|
|
442
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
443
|
+
* function.
|
|
444
|
+
*
|
|
445
|
+
* @param { StoreListInstanceEachOptions } [params] - Options for request
|
|
446
|
+
* @param { function } [callback] - Function to process each record
|
|
447
|
+
*/
|
|
448
|
+
eachWithHttpInfo(callback?: (item: string, done: (err?: Error) => void) => void): void;
|
|
449
|
+
eachWithHttpInfo(params: StoreListInstanceEachOptions, callback?: (item: string, done: (err?: Error) => void) => void): void;
|
|
450
|
+
/**
|
|
451
|
+
* Retrieve a single target page of StoreInstance records from the API.
|
|
452
|
+
*
|
|
453
|
+
* The request is executed immediately.
|
|
454
|
+
*
|
|
455
|
+
* @param { string } [targetUrl] - API-generated URL for the requested results page
|
|
456
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
457
|
+
*/
|
|
458
|
+
getPage(targetUrl: string, callback?: (error: Error | null, items: StorePage) => any): Promise<StorePage>;
|
|
459
|
+
/**
|
|
460
|
+
* Retrieve a single target page of StoreInstance records from the API with HTTP metadata.
|
|
461
|
+
*
|
|
462
|
+
* The request is executed immediately.
|
|
463
|
+
*
|
|
464
|
+
* @param { string } [targetUrl] - API-generated URL for the requested results page
|
|
465
|
+
* @param { function } [callback] - Callback to handle list of records with metadata
|
|
466
|
+
*/
|
|
467
|
+
getPageWithHttpInfo(targetUrl: string, callback?: (error: Error | null, items: ApiResponse<StorePage>) => any): Promise<ApiResponse<StorePage>>;
|
|
468
|
+
/**
|
|
469
|
+
* Lists StoreInstance records from the API as a list.
|
|
470
|
+
*
|
|
471
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
472
|
+
* function.
|
|
473
|
+
*
|
|
474
|
+
* @param { StoreListInstanceOptions } [params] - Options for request
|
|
475
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
476
|
+
*/
|
|
477
|
+
list(callback?: (error: Error | null, items: string[]) => any): Promise<string[]>;
|
|
478
|
+
list(params: StoreListInstanceOptions, callback?: (error: Error | null, items: string[]) => any): Promise<string[]>;
|
|
479
|
+
/**
|
|
480
|
+
* Lists StoreInstance records from the API as a list with HTTP metadata.
|
|
481
|
+
*
|
|
482
|
+
* Returns all records along with HTTP metadata from the first page fetched.
|
|
483
|
+
*
|
|
484
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
485
|
+
* function.
|
|
486
|
+
*
|
|
487
|
+
* @param { StoreListInstanceOptions } [params] - Options for request
|
|
488
|
+
* @param { function } [callback] - Callback to handle list of records with metadata
|
|
489
|
+
*/
|
|
490
|
+
listWithHttpInfo(callback?: (error: Error | null, items: ApiResponse<string[]>) => any): Promise<ApiResponse<string[]>>;
|
|
491
|
+
listWithHttpInfo(params: StoreListInstanceOptions, callback?: (error: Error | null, items: ApiResponse<string[]>) => any): Promise<ApiResponse<string[]>>;
|
|
492
|
+
/**
|
|
493
|
+
* Retrieve a single page of StoreInstance records from the API.
|
|
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 { StoreListInstancePageOptions } [params] - Options for request
|
|
501
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
502
|
+
*/
|
|
503
|
+
page(callback?: (error: Error | null, items: StorePage) => any): Promise<StorePage>;
|
|
504
|
+
page(params: StoreListInstancePageOptions, callback?: (error: Error | null, items: StorePage) => any): Promise<StorePage>;
|
|
505
|
+
/**
|
|
506
|
+
* Retrieve a single page of StoreInstance records from the API with HTTP metadata.
|
|
507
|
+
*
|
|
508
|
+
* The request is executed immediately.
|
|
509
|
+
*
|
|
510
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
511
|
+
* function.
|
|
512
|
+
*
|
|
513
|
+
* @param { StoreListInstancePageOptions } [params] - Options for request
|
|
514
|
+
* @param { function } [callback] - Callback to handle list of records with metadata
|
|
515
|
+
*/
|
|
516
|
+
pageWithHttpInfo(callback?: (error: Error | null, items: ApiResponse<StorePage>) => any): Promise<ApiResponse<StorePage>>;
|
|
517
|
+
pageWithHttpInfo(params: StoreListInstancePageOptions, callback?: (error: Error | null, items: ApiResponse<StorePage>) => any): Promise<ApiResponse<StorePage>>;
|
|
518
|
+
/**
|
|
519
|
+
* Provide a user-friendly representation
|
|
520
|
+
*/
|
|
521
|
+
toJSON(): any;
|
|
522
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
523
|
+
}
|
|
524
|
+
export declare function StoreListInstance(version: V1): StoreListInstance;
|
|
525
|
+
export declare class StorePage extends TokenPage<V1, StorePayload, StoreResource, string> {
|
|
526
|
+
/**
|
|
527
|
+
* Initialize the StorePage
|
|
528
|
+
*
|
|
529
|
+
* @param version - Version of the resource
|
|
530
|
+
* @param response - Response from the API
|
|
531
|
+
* @param uri - URI of the resource
|
|
532
|
+
* @param params - Query parameters
|
|
533
|
+
* @param solution - Path solution
|
|
534
|
+
*/
|
|
535
|
+
constructor(version: V1, response: Response<string>, uri: string, params: any, solution: StoreSolution);
|
|
536
|
+
/**
|
|
537
|
+
* Build an instance of StoreInstance
|
|
538
|
+
*
|
|
539
|
+
* @param payload - Payload response from the API
|
|
540
|
+
*/
|
|
541
|
+
getInstance(payload: StoreResource): string;
|
|
542
|
+
[inspect.custom](depth: any, options: InspectOptions): string;
|
|
543
|
+
}
|
|
544
|
+
export {};
|