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,548 @@
|
|
|
1
|
+
import { inspect, InspectOptions } from "util";
|
|
2
|
+
import TokenPage, { TokenPaginationPayload } from "../../../base/TokenPage";
|
|
3
|
+
import Response from "../../../http/response";
|
|
4
|
+
import V1 from "../V1";
|
|
5
|
+
import { ApiResponse } from "../../../base/ApiResponse";
|
|
6
|
+
/**
|
|
7
|
+
* Data for creating or updating a profile, including traits.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ProfileData {
|
|
10
|
+
/**
|
|
11
|
+
* Multiple trait groups.
|
|
12
|
+
*/
|
|
13
|
+
"traits"?: {
|
|
14
|
+
[key: string]: {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
constructor(payload: any);
|
|
19
|
+
}
|
|
20
|
+
export declare class ProfilePatch {
|
|
21
|
+
/**
|
|
22
|
+
* Multiple trait groups.
|
|
23
|
+
*/
|
|
24
|
+
"traits"?: {
|
|
25
|
+
[key: string]: {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
constructor(payload: any);
|
|
30
|
+
}
|
|
31
|
+
export declare class ProfilesMeta {
|
|
32
|
+
/**
|
|
33
|
+
* The key of the list property contains the actual data items. This enables programmatic iteration over paginated results.
|
|
34
|
+
*/
|
|
35
|
+
"key"?: string;
|
|
36
|
+
"pageSize"?: number;
|
|
37
|
+
"nextToken"?: string;
|
|
38
|
+
"previousToken"?: string;
|
|
39
|
+
constructor(payload: any);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Options to pass to fetch a ProfileInstance
|
|
43
|
+
*/
|
|
44
|
+
export interface ProfileContextFetchOptions {
|
|
45
|
+
/** Comma separated list of trait group names to include. */
|
|
46
|
+
traitGroups?: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Options to pass to patch a ProfileInstance
|
|
50
|
+
*/
|
|
51
|
+
export interface ProfileContextPatchOptions {
|
|
52
|
+
/** */
|
|
53
|
+
profilePatch: ProfilePatch;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Options to pass to create a ProfileInstance
|
|
57
|
+
*/
|
|
58
|
+
export interface ProfileListInstanceCreateOptions {
|
|
59
|
+
/** */
|
|
60
|
+
profileData: ProfileData;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Options to pass to each
|
|
64
|
+
*/
|
|
65
|
+
export interface ProfileListInstanceEachOptions {
|
|
66
|
+
/** The maximum number of items to return per page, maximum of 1000. */
|
|
67
|
+
pageSize?: number;
|
|
68
|
+
/** The token for the page of results to retrieve. */
|
|
69
|
+
pageToken?: string;
|
|
70
|
+
/** Either \'ASC\' or \'DESC\' to sort results ascending or descending respectively. */
|
|
71
|
+
orderBy?: "ASC" | "DESC";
|
|
72
|
+
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
73
|
+
callback?: (item: ProfileInstance, done: (err?: Error) => void) => void;
|
|
74
|
+
/** Function to be called upon completion of streaming */
|
|
75
|
+
done?: Function;
|
|
76
|
+
/** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
|
|
77
|
+
limit?: number;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Options to pass to list
|
|
81
|
+
*/
|
|
82
|
+
export interface ProfileListInstanceOptions {
|
|
83
|
+
/** The maximum number of items to return per page, maximum of 1000. */
|
|
84
|
+
pageSize?: number;
|
|
85
|
+
/** The token for the page of results to retrieve. */
|
|
86
|
+
pageToken?: string;
|
|
87
|
+
/** Either \'ASC\' or \'DESC\' to sort results ascending or descending respectively. */
|
|
88
|
+
orderBy?: "ASC" | "DESC";
|
|
89
|
+
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
90
|
+
limit?: number;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Options to pass to page
|
|
94
|
+
*/
|
|
95
|
+
export interface ProfileListInstancePageOptions {
|
|
96
|
+
/** The maximum number of items to return per page, maximum of 1000. */
|
|
97
|
+
pageSize?: number;
|
|
98
|
+
/** The token for the page of results to retrieve. */
|
|
99
|
+
pageToken?: string;
|
|
100
|
+
/** Either \'ASC\' or \'DESC\' to sort results ascending or descending respectively. */
|
|
101
|
+
orderBy?: "ASC" | "DESC";
|
|
102
|
+
}
|
|
103
|
+
export interface ProfileContext {
|
|
104
|
+
/**
|
|
105
|
+
* Remove a ProfileInstance
|
|
106
|
+
*
|
|
107
|
+
* @param callback - Callback to handle processed record
|
|
108
|
+
*
|
|
109
|
+
* @returns Resolves to processed ProfileInstance
|
|
110
|
+
*/
|
|
111
|
+
remove(callback?: (error: Error | null, item?: ProfileInstance) => any): Promise<ProfileInstance>;
|
|
112
|
+
/**
|
|
113
|
+
* Remove a ProfileInstance and return HTTP info
|
|
114
|
+
*
|
|
115
|
+
* @param callback - Callback to handle processed record
|
|
116
|
+
*
|
|
117
|
+
* @returns Resolves to processed ProfileInstance with HTTP metadata
|
|
118
|
+
*/
|
|
119
|
+
removeWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ProfileInstance>) => any): Promise<ApiResponse<ProfileInstance>>;
|
|
120
|
+
/**
|
|
121
|
+
* Fetch a ProfileInstance
|
|
122
|
+
*
|
|
123
|
+
* @param callback - Callback to handle processed record
|
|
124
|
+
*
|
|
125
|
+
* @returns Resolves to processed ProfileInstance
|
|
126
|
+
*/
|
|
127
|
+
fetch(callback?: (error: Error | null, item?: ProfileInstance) => any): Promise<ProfileInstance>;
|
|
128
|
+
/**
|
|
129
|
+
* Fetch a ProfileInstance
|
|
130
|
+
*
|
|
131
|
+
* @param params - Parameter for request
|
|
132
|
+
* @param callback - Callback to handle processed record
|
|
133
|
+
*
|
|
134
|
+
* @returns Resolves to processed ProfileInstance
|
|
135
|
+
*/
|
|
136
|
+
fetch(params: ProfileContextFetchOptions, callback?: (error: Error | null, item?: ProfileInstance) => any): Promise<ProfileInstance>;
|
|
137
|
+
/**
|
|
138
|
+
* Fetch a ProfileInstance and return HTTP info
|
|
139
|
+
*
|
|
140
|
+
* @param callback - Callback to handle processed record
|
|
141
|
+
*
|
|
142
|
+
* @returns Resolves to processed ProfileInstance with HTTP metadata
|
|
143
|
+
*/
|
|
144
|
+
fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ProfileInstance>) => any): Promise<ApiResponse<ProfileInstance>>;
|
|
145
|
+
/**
|
|
146
|
+
* Fetch a ProfileInstance and return HTTP info
|
|
147
|
+
*
|
|
148
|
+
* @param params - Parameter for request
|
|
149
|
+
* @param callback - Callback to handle processed record
|
|
150
|
+
*
|
|
151
|
+
* @returns Resolves to processed ProfileInstance with HTTP metadata
|
|
152
|
+
*/
|
|
153
|
+
fetchWithHttpInfo(params: ProfileContextFetchOptions, callback?: (error: Error | null, item?: ApiResponse<ProfileInstance>) => any): Promise<ApiResponse<ProfileInstance>>;
|
|
154
|
+
/**
|
|
155
|
+
* Patch a ProfileInstance
|
|
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 ProfileInstance
|
|
162
|
+
*/
|
|
163
|
+
patch(params: ProfilePatch, headers?: any, callback?: (error: Error | null, item?: ProfileInstance) => any): Promise<ProfileInstance>;
|
|
164
|
+
/**
|
|
165
|
+
* Patch a ProfileInstance and return HTTP info
|
|
166
|
+
*
|
|
167
|
+
* @param params - Body for request
|
|
168
|
+
* @param headers - header params for request
|
|
169
|
+
* @param callback - Callback to handle processed record
|
|
170
|
+
*
|
|
171
|
+
* @returns Resolves to processed ProfileInstance with HTTP metadata
|
|
172
|
+
*/
|
|
173
|
+
patchWithHttpInfo(params: ProfilePatch, headers?: any, callback?: (error: Error | null, item?: ApiResponse<ProfileInstance>) => any): Promise<ApiResponse<ProfileInstance>>;
|
|
174
|
+
/**
|
|
175
|
+
* Provide a user-friendly representation
|
|
176
|
+
*/
|
|
177
|
+
toJSON(): any;
|
|
178
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
179
|
+
}
|
|
180
|
+
export interface ProfileContextSolution {
|
|
181
|
+
storeId: string;
|
|
182
|
+
profileId: string;
|
|
183
|
+
}
|
|
184
|
+
export declare class ProfileContextImpl implements ProfileContext {
|
|
185
|
+
protected _version: V1;
|
|
186
|
+
protected _solution: ProfileContextSolution;
|
|
187
|
+
protected _uri: string;
|
|
188
|
+
constructor(_version: V1, storeId: string, profileId: string);
|
|
189
|
+
remove(callback?: (error: Error | null, item?: ProfileInstance) => any): Promise<ProfileInstance>;
|
|
190
|
+
removeWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ProfileInstance>) => any): Promise<ApiResponse<ProfileInstance>>;
|
|
191
|
+
fetch(params?: ProfileContextFetchOptions | ((error: Error | null, item?: ProfileInstance) => any), callback?: (error: Error | null, item?: ProfileInstance) => any): Promise<ProfileInstance>;
|
|
192
|
+
fetchWithHttpInfo(params?: ProfileContextFetchOptions | ((error: Error | null, item?: ApiResponse<ProfileInstance>) => any), callback?: (error: Error | null, item?: ApiResponse<ProfileInstance>) => any): Promise<ApiResponse<ProfileInstance>>;
|
|
193
|
+
patch(params: ProfilePatch, headers?: any, callback?: (error: Error | null, item?: ProfileInstance) => any): Promise<ProfileInstance>;
|
|
194
|
+
patchWithHttpInfo(params: ProfilePatch, headers?: any, callback?: (error: Error | null, item?: ApiResponse<ProfileInstance>) => any): Promise<ApiResponse<ProfileInstance>>;
|
|
195
|
+
/**
|
|
196
|
+
* Provide a user-friendly representation
|
|
197
|
+
*
|
|
198
|
+
* @returns Object
|
|
199
|
+
*/
|
|
200
|
+
toJSON(): ProfileContextSolution;
|
|
201
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Nested model for ProfileData
|
|
205
|
+
*/
|
|
206
|
+
export interface ProfileData {
|
|
207
|
+
traits?: {
|
|
208
|
+
[key: string]: {
|
|
209
|
+
[key: string]: any;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Nested model for ProfilePatch
|
|
215
|
+
*/
|
|
216
|
+
export interface ProfilePatch {
|
|
217
|
+
traits?: {
|
|
218
|
+
[key: string]: {
|
|
219
|
+
[key: string]: any;
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Nested model for ProfilesMeta
|
|
225
|
+
*/
|
|
226
|
+
export interface ProfilesMeta {
|
|
227
|
+
key?: string;
|
|
228
|
+
pageSize?: number;
|
|
229
|
+
nextToken?: string;
|
|
230
|
+
previousToken?: string;
|
|
231
|
+
}
|
|
232
|
+
interface ProfilePayload extends TokenPaginationPayload {
|
|
233
|
+
profiles: string[];
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Response model for CreateProfile202Response operations
|
|
237
|
+
*/
|
|
238
|
+
interface CreateProfile202Response_ResponseResource {
|
|
239
|
+
id: string;
|
|
240
|
+
message: string;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Response model for DeleteProfile202Response operations
|
|
244
|
+
*/
|
|
245
|
+
interface DeleteProfile202Response_ResponseResource {
|
|
246
|
+
message: string;
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Response model for PatchProfileTraits202Response operations
|
|
250
|
+
*/
|
|
251
|
+
interface PatchProfileTraits202Response_ResponseResource {
|
|
252
|
+
message: string;
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Response model for ListProfiles200Response operations
|
|
256
|
+
*/
|
|
257
|
+
interface ListProfiles200Response_ResponseResource {
|
|
258
|
+
profiles?: Array<string>;
|
|
259
|
+
meta?: ProfilesMeta;
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Response model for Profile operations
|
|
263
|
+
*/
|
|
264
|
+
interface Profile_ResponseResource {
|
|
265
|
+
id?: string;
|
|
266
|
+
createdAt?: Date;
|
|
267
|
+
traits?: {
|
|
268
|
+
[key: string]: {
|
|
269
|
+
[key: string]: any;
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Union type for all possible response models
|
|
275
|
+
*/
|
|
276
|
+
type ProfileResource = CreateProfile202Response_ResponseResource | DeleteProfile202Response_ResponseResource | PatchProfileTraits202Response_ResponseResource | ListProfiles200Response_ResponseResource | Profile_ResponseResource;
|
|
277
|
+
export declare class ProfileInstance {
|
|
278
|
+
protected _version: V1;
|
|
279
|
+
protected _solution: ProfileContextSolution;
|
|
280
|
+
protected _context?: ProfileContext;
|
|
281
|
+
constructor(_version: V1, _payload: ProfileResource, storeId: string, profileId?: string);
|
|
282
|
+
/**
|
|
283
|
+
* The canonical profile ID.
|
|
284
|
+
*/
|
|
285
|
+
id?: string;
|
|
286
|
+
message?: string;
|
|
287
|
+
profiles?: Array<string>;
|
|
288
|
+
meta?: ProfilesMeta;
|
|
289
|
+
/**
|
|
290
|
+
* The time the profile was created.
|
|
291
|
+
*/
|
|
292
|
+
createdAt?: Date;
|
|
293
|
+
/**
|
|
294
|
+
* Multiple trait groups.
|
|
295
|
+
*/
|
|
296
|
+
traits?: {
|
|
297
|
+
[key: string]: {
|
|
298
|
+
[key: string]: any;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
private get _proxy();
|
|
302
|
+
/**
|
|
303
|
+
* Remove a ProfileInstance
|
|
304
|
+
*
|
|
305
|
+
* @param callback - Callback to handle processed record
|
|
306
|
+
*
|
|
307
|
+
* @returns Resolves to processed ProfileInstance
|
|
308
|
+
*/
|
|
309
|
+
remove(callback?: (error: Error | null, item?: ProfileInstance) => any): Promise<ProfileInstance>;
|
|
310
|
+
/**
|
|
311
|
+
* Remove a ProfileInstance and return HTTP info
|
|
312
|
+
*
|
|
313
|
+
* @param callback - Callback to handle processed record
|
|
314
|
+
*
|
|
315
|
+
* @returns Resolves to processed ProfileInstance with HTTP metadata
|
|
316
|
+
*/
|
|
317
|
+
removeWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ProfileInstance>) => any): Promise<ApiResponse<ProfileInstance>>;
|
|
318
|
+
/**
|
|
319
|
+
* Fetch a ProfileInstance
|
|
320
|
+
*
|
|
321
|
+
* @param callback - Callback to handle processed record
|
|
322
|
+
*
|
|
323
|
+
* @returns Resolves to processed ProfileInstance
|
|
324
|
+
*/
|
|
325
|
+
fetch(callback?: (error: Error | null, item?: ProfileInstance) => any): Promise<ProfileInstance>;
|
|
326
|
+
/**
|
|
327
|
+
* Fetch a ProfileInstance
|
|
328
|
+
*
|
|
329
|
+
* @param params - Parameter for request
|
|
330
|
+
* @param callback - Callback to handle processed record
|
|
331
|
+
*
|
|
332
|
+
* @returns Resolves to processed ProfileInstance
|
|
333
|
+
*/
|
|
334
|
+
fetch(params: ProfileContextFetchOptions, callback?: (error: Error | null, item?: ProfileInstance) => any): Promise<ProfileInstance>;
|
|
335
|
+
/**
|
|
336
|
+
* Fetch a ProfileInstance and return HTTP info
|
|
337
|
+
*
|
|
338
|
+
* @param callback - Callback to handle processed record
|
|
339
|
+
*
|
|
340
|
+
* @returns Resolves to processed ProfileInstance with HTTP metadata
|
|
341
|
+
*/
|
|
342
|
+
fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ProfileInstance>) => any): Promise<ApiResponse<ProfileInstance>>;
|
|
343
|
+
/**
|
|
344
|
+
* Fetch a ProfileInstance and return HTTP info
|
|
345
|
+
*
|
|
346
|
+
* @param params - Parameter for request
|
|
347
|
+
* @param callback - Callback to handle processed record
|
|
348
|
+
*
|
|
349
|
+
* @returns Resolves to processed ProfileInstance with HTTP metadata
|
|
350
|
+
*/
|
|
351
|
+
fetchWithHttpInfo(params: ProfileContextFetchOptions, callback?: (error: Error | null, item?: ApiResponse<ProfileInstance>) => any): Promise<ApiResponse<ProfileInstance>>;
|
|
352
|
+
/**
|
|
353
|
+
* Patch a ProfileInstance
|
|
354
|
+
*
|
|
355
|
+
* @param params - Body for request
|
|
356
|
+
* @param headers - header params for request
|
|
357
|
+
* @param callback - Callback to handle processed record
|
|
358
|
+
*
|
|
359
|
+
* @returns Resolves to processed ProfileInstance
|
|
360
|
+
*/
|
|
361
|
+
patch(params: ProfilePatch, headers?: any, callback?: (error: Error | null, item?: ProfileInstance) => any): Promise<ProfileInstance>;
|
|
362
|
+
/**
|
|
363
|
+
* Patch a ProfileInstance and return HTTP info
|
|
364
|
+
*
|
|
365
|
+
* @param params - Body for request
|
|
366
|
+
* @param headers - header params for request
|
|
367
|
+
* @param callback - Callback to handle processed record
|
|
368
|
+
*
|
|
369
|
+
* @returns Resolves to processed ProfileInstance with HTTP metadata
|
|
370
|
+
*/
|
|
371
|
+
patchWithHttpInfo(params: ProfilePatch, headers?: any, callback?: (error: Error | null, item?: ApiResponse<ProfileInstance>) => any): Promise<ApiResponse<ProfileInstance>>;
|
|
372
|
+
/**
|
|
373
|
+
* Provide a user-friendly representation
|
|
374
|
+
*
|
|
375
|
+
* @returns Object
|
|
376
|
+
*/
|
|
377
|
+
toJSON(): {
|
|
378
|
+
id: string;
|
|
379
|
+
message: string;
|
|
380
|
+
profiles: string[];
|
|
381
|
+
meta: ProfilesMeta;
|
|
382
|
+
createdAt: Date;
|
|
383
|
+
traits: {
|
|
384
|
+
[key: string]: {
|
|
385
|
+
[key: string]: any;
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
390
|
+
}
|
|
391
|
+
export interface ProfileSolution {
|
|
392
|
+
storeId: string;
|
|
393
|
+
}
|
|
394
|
+
export interface ProfileListInstance {
|
|
395
|
+
_version: V1;
|
|
396
|
+
_solution: ProfileSolution;
|
|
397
|
+
_uri: string;
|
|
398
|
+
(profileId: string): ProfileContext;
|
|
399
|
+
get(profileId: string): ProfileContext;
|
|
400
|
+
/**
|
|
401
|
+
* Create a ProfileInstance
|
|
402
|
+
*
|
|
403
|
+
* @param params - Body for request
|
|
404
|
+
* @param headers - header params for request
|
|
405
|
+
* @param callback - Callback to handle processed record
|
|
406
|
+
*
|
|
407
|
+
* @returns Resolves to processed ProfileInstance
|
|
408
|
+
*/
|
|
409
|
+
create(params: ProfileData, headers?: any, callback?: (error: Error | null, item?: ProfileInstance) => any): Promise<ProfileInstance>;
|
|
410
|
+
/**
|
|
411
|
+
* Create a ProfileInstance and return HTTP info
|
|
412
|
+
*
|
|
413
|
+
* @param params - Body for request
|
|
414
|
+
* @param headers - header params for request
|
|
415
|
+
* @param callback - Callback to handle processed record
|
|
416
|
+
*
|
|
417
|
+
* @returns Resolves to processed ProfileInstance with HTTP metadata
|
|
418
|
+
*/
|
|
419
|
+
createWithHttpInfo(params: ProfileData, headers?: any, callback?: (error: Error | null, item?: ApiResponse<ProfileInstance>) => any): Promise<ApiResponse<ProfileInstance>>;
|
|
420
|
+
/**
|
|
421
|
+
* Streams ProfileInstance records from the API.
|
|
422
|
+
*
|
|
423
|
+
* This operation lazily loads records as efficiently as possible until the limit
|
|
424
|
+
* is reached.
|
|
425
|
+
*
|
|
426
|
+
* The results are passed into the callback function, so this operation is memory
|
|
427
|
+
* efficient.
|
|
428
|
+
*
|
|
429
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
430
|
+
* function.
|
|
431
|
+
*
|
|
432
|
+
* @param { ProfileListInstanceEachOptions } [params] - Options for request
|
|
433
|
+
* @param { function } [callback] - Function to process each record
|
|
434
|
+
*/
|
|
435
|
+
each(callback?: (item: string, done: (err?: Error) => void) => void): void;
|
|
436
|
+
each(params: ProfileListInstanceEachOptions, callback?: (item: string, done: (err?: Error) => void) => void): void;
|
|
437
|
+
/**
|
|
438
|
+
* Streams ProfileInstance records from the API with HTTP metadata captured per page.
|
|
439
|
+
*
|
|
440
|
+
* This operation lazily loads records as efficiently as possible until the limit
|
|
441
|
+
* is reached. HTTP metadata (status code, headers) is captured for each page request.
|
|
442
|
+
*
|
|
443
|
+
* The results are passed into the callback function, so this operation is memory
|
|
444
|
+
* efficient.
|
|
445
|
+
*
|
|
446
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
447
|
+
* function.
|
|
448
|
+
*
|
|
449
|
+
* @param { ProfileListInstanceEachOptions } [params] - Options for request
|
|
450
|
+
* @param { function } [callback] - Function to process each record
|
|
451
|
+
*/
|
|
452
|
+
eachWithHttpInfo(callback?: (item: string, done: (err?: Error) => void) => void): void;
|
|
453
|
+
eachWithHttpInfo(params: ProfileListInstanceEachOptions, callback?: (item: string, done: (err?: Error) => void) => void): void;
|
|
454
|
+
/**
|
|
455
|
+
* Retrieve a single target page of ProfileInstance records from the API.
|
|
456
|
+
*
|
|
457
|
+
* The request is executed immediately.
|
|
458
|
+
*
|
|
459
|
+
* @param { string } [targetUrl] - API-generated URL for the requested results page
|
|
460
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
461
|
+
*/
|
|
462
|
+
getPage(targetUrl: string, callback?: (error: Error | null, items: ProfilePage) => any): Promise<ProfilePage>;
|
|
463
|
+
/**
|
|
464
|
+
* Retrieve a single target page of ProfileInstance records from the API with HTTP metadata.
|
|
465
|
+
*
|
|
466
|
+
* The request is executed immediately.
|
|
467
|
+
*
|
|
468
|
+
* @param { string } [targetUrl] - API-generated URL for the requested results page
|
|
469
|
+
* @param { function } [callback] - Callback to handle list of records with metadata
|
|
470
|
+
*/
|
|
471
|
+
getPageWithHttpInfo(targetUrl: string, callback?: (error: Error | null, items: ApiResponse<ProfilePage>) => any): Promise<ApiResponse<ProfilePage>>;
|
|
472
|
+
/**
|
|
473
|
+
* Lists ProfileInstance records from the API as a list.
|
|
474
|
+
*
|
|
475
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
476
|
+
* function.
|
|
477
|
+
*
|
|
478
|
+
* @param { ProfileListInstanceOptions } [params] - Options for request
|
|
479
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
480
|
+
*/
|
|
481
|
+
list(callback?: (error: Error | null, items: string[]) => any): Promise<string[]>;
|
|
482
|
+
list(params: ProfileListInstanceOptions, callback?: (error: Error | null, items: string[]) => any): Promise<string[]>;
|
|
483
|
+
/**
|
|
484
|
+
* Lists ProfileInstance records from the API as a list with HTTP metadata.
|
|
485
|
+
*
|
|
486
|
+
* Returns all records along with HTTP metadata from the first page fetched.
|
|
487
|
+
*
|
|
488
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
489
|
+
* function.
|
|
490
|
+
*
|
|
491
|
+
* @param { ProfileListInstanceOptions } [params] - Options for request
|
|
492
|
+
* @param { function } [callback] - Callback to handle list of records with metadata
|
|
493
|
+
*/
|
|
494
|
+
listWithHttpInfo(callback?: (error: Error | null, items: ApiResponse<string[]>) => any): Promise<ApiResponse<string[]>>;
|
|
495
|
+
listWithHttpInfo(params: ProfileListInstanceOptions, callback?: (error: Error | null, items: ApiResponse<string[]>) => any): Promise<ApiResponse<string[]>>;
|
|
496
|
+
/**
|
|
497
|
+
* Retrieve a single page of ProfileInstance records from the API.
|
|
498
|
+
*
|
|
499
|
+
* The request is executed immediately.
|
|
500
|
+
*
|
|
501
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
502
|
+
* function.
|
|
503
|
+
*
|
|
504
|
+
* @param { ProfileListInstancePageOptions } [params] - Options for request
|
|
505
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
506
|
+
*/
|
|
507
|
+
page(callback?: (error: Error | null, items: ProfilePage) => any): Promise<ProfilePage>;
|
|
508
|
+
page(params: ProfileListInstancePageOptions, callback?: (error: Error | null, items: ProfilePage) => any): Promise<ProfilePage>;
|
|
509
|
+
/**
|
|
510
|
+
* Retrieve a single page of ProfileInstance records from the API with HTTP metadata.
|
|
511
|
+
*
|
|
512
|
+
* The request is executed immediately.
|
|
513
|
+
*
|
|
514
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
515
|
+
* function.
|
|
516
|
+
*
|
|
517
|
+
* @param { ProfileListInstancePageOptions } [params] - Options for request
|
|
518
|
+
* @param { function } [callback] - Callback to handle list of records with metadata
|
|
519
|
+
*/
|
|
520
|
+
pageWithHttpInfo(callback?: (error: Error | null, items: ApiResponse<ProfilePage>) => any): Promise<ApiResponse<ProfilePage>>;
|
|
521
|
+
pageWithHttpInfo(params: ProfileListInstancePageOptions, callback?: (error: Error | null, items: ApiResponse<ProfilePage>) => any): Promise<ApiResponse<ProfilePage>>;
|
|
522
|
+
/**
|
|
523
|
+
* Provide a user-friendly representation
|
|
524
|
+
*/
|
|
525
|
+
toJSON(): any;
|
|
526
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
527
|
+
}
|
|
528
|
+
export declare function ProfileListInstance(version: V1, storeId: string): ProfileListInstance;
|
|
529
|
+
export declare class ProfilePage extends TokenPage<V1, ProfilePayload, ProfileResource, string> {
|
|
530
|
+
/**
|
|
531
|
+
* Initialize the ProfilePage
|
|
532
|
+
*
|
|
533
|
+
* @param version - Version of the resource
|
|
534
|
+
* @param response - Response from the API
|
|
535
|
+
* @param uri - URI of the resource
|
|
536
|
+
* @param params - Query parameters
|
|
537
|
+
* @param solution - Path solution
|
|
538
|
+
*/
|
|
539
|
+
constructor(version: V1, response: Response<string>, uri: string, params: any, solution: ProfileSolution);
|
|
540
|
+
/**
|
|
541
|
+
* Build an instance of ProfileInstance
|
|
542
|
+
*
|
|
543
|
+
* @param payload - Payload response from the API
|
|
544
|
+
*/
|
|
545
|
+
getInstance(payload: ProfileResource): string;
|
|
546
|
+
[inspect.custom](depth: any, options: InspectOptions): string;
|
|
547
|
+
}
|
|
548
|
+
export {};
|