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,521 @@
|
|
|
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
|
+
* Request payload for creating one or more observations. Supports creation of up to 10 observations.
|
|
8
|
+
*/
|
|
9
|
+
export declare class CreateObservationsRequest {
|
|
10
|
+
/**
|
|
11
|
+
* Array of observations to create in a single batch operation.
|
|
12
|
+
*/
|
|
13
|
+
"observations": Array<ObservationCore>;
|
|
14
|
+
constructor(payload: any);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Core mutable properties for creating observation objects.
|
|
18
|
+
*/
|
|
19
|
+
export declare class ObservationCore {
|
|
20
|
+
/**
|
|
21
|
+
* The main content of the observation.
|
|
22
|
+
*/
|
|
23
|
+
"content": string;
|
|
24
|
+
/**
|
|
25
|
+
* The timestamp when the observation originally occurred.
|
|
26
|
+
*/
|
|
27
|
+
"occurredAt": Date;
|
|
28
|
+
/**
|
|
29
|
+
* The source system that generated this observation. Allows letters, numbers, spaces, and URL-safe symbols. Excludes URL-unsafe characters like quotes, angle brackets, and control characters.
|
|
30
|
+
*/
|
|
31
|
+
"source": string;
|
|
32
|
+
/**
|
|
33
|
+
* Array of conversation IDs associated with this observation.
|
|
34
|
+
*/
|
|
35
|
+
"conversationIds"?: Array<string>;
|
|
36
|
+
constructor(payload: any);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Options to pass to patch a ObservationInstance
|
|
40
|
+
*/
|
|
41
|
+
export interface ObservationContextPatchOptions {
|
|
42
|
+
/** */
|
|
43
|
+
observationCore: ObservationCore;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Options to pass to create a ObservationInstance
|
|
47
|
+
*/
|
|
48
|
+
export interface ObservationListInstanceCreateOptions {
|
|
49
|
+
/** */
|
|
50
|
+
createObservationsRequest: CreateObservationsRequest;
|
|
51
|
+
/** Compression algorithms supported by the client (e.g., gzip, deflate, br) */
|
|
52
|
+
acceptEncoding?: string;
|
|
53
|
+
/** Compression algorithm used for the request body (e.g., gzip, deflate, br) */
|
|
54
|
+
contentEncoding?: "gzip" | "deflate" | "br" | "compress";
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Options to pass to each
|
|
58
|
+
*/
|
|
59
|
+
export interface ObservationListInstanceEachOptions {
|
|
60
|
+
/** The maximum number of items to return per page, maximum of 1000. */
|
|
61
|
+
pageSize?: number;
|
|
62
|
+
/** The token for the page of results to retrieve. */
|
|
63
|
+
pageToken?: string;
|
|
64
|
+
/** Either \'ASC\' or \'DESC\' to sort results ascending or descending respectively. */
|
|
65
|
+
orderBy?: "ASC" | "DESC";
|
|
66
|
+
/** Filter by source. Allows letters, numbers, spaces, and URL-safe symbols. Excludes URL-unsafe characters like quotes, angle brackets, and control characters. */
|
|
67
|
+
source?: string;
|
|
68
|
+
/** Filter observations created after this timestamp (inclusive). */
|
|
69
|
+
createdAfter?: Date;
|
|
70
|
+
/** Filter observations created before this timestamp (exclusive). */
|
|
71
|
+
createdBefore?: Date;
|
|
72
|
+
/** Compression algorithms supported by the client (e.g., gzip, deflate, br) */
|
|
73
|
+
acceptEncoding?: string;
|
|
74
|
+
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
75
|
+
callback?: (item: ObservationInstance, done: (err?: Error) => void) => void;
|
|
76
|
+
/** Function to be called upon completion of streaming */
|
|
77
|
+
done?: Function;
|
|
78
|
+
/** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
|
|
79
|
+
limit?: number;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Options to pass to list
|
|
83
|
+
*/
|
|
84
|
+
export interface ObservationListInstanceOptions {
|
|
85
|
+
/** The maximum number of items to return per page, maximum of 1000. */
|
|
86
|
+
pageSize?: number;
|
|
87
|
+
/** The token for the page of results to retrieve. */
|
|
88
|
+
pageToken?: string;
|
|
89
|
+
/** Either \'ASC\' or \'DESC\' to sort results ascending or descending respectively. */
|
|
90
|
+
orderBy?: "ASC" | "DESC";
|
|
91
|
+
/** Filter by source. Allows letters, numbers, spaces, and URL-safe symbols. Excludes URL-unsafe characters like quotes, angle brackets, and control characters. */
|
|
92
|
+
source?: string;
|
|
93
|
+
/** Filter observations created after this timestamp (inclusive). */
|
|
94
|
+
createdAfter?: Date;
|
|
95
|
+
/** Filter observations created before this timestamp (exclusive). */
|
|
96
|
+
createdBefore?: Date;
|
|
97
|
+
/** Compression algorithms supported by the client (e.g., gzip, deflate, br) */
|
|
98
|
+
acceptEncoding?: string;
|
|
99
|
+
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
100
|
+
limit?: number;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Options to pass to page
|
|
104
|
+
*/
|
|
105
|
+
export interface ObservationListInstancePageOptions {
|
|
106
|
+
/** The maximum number of items to return per page, maximum of 1000. */
|
|
107
|
+
pageSize?: number;
|
|
108
|
+
/** The token for the page of results to retrieve. */
|
|
109
|
+
pageToken?: string;
|
|
110
|
+
/** Either \'ASC\' or \'DESC\' to sort results ascending or descending respectively. */
|
|
111
|
+
orderBy?: "ASC" | "DESC";
|
|
112
|
+
/** Filter by source. Allows letters, numbers, spaces, and URL-safe symbols. Excludes URL-unsafe characters like quotes, angle brackets, and control characters. */
|
|
113
|
+
source?: string;
|
|
114
|
+
/** Filter observations created after this timestamp (inclusive). */
|
|
115
|
+
createdAfter?: Date;
|
|
116
|
+
/** Filter observations created before this timestamp (exclusive). */
|
|
117
|
+
createdBefore?: Date;
|
|
118
|
+
/** Compression algorithms supported by the client (e.g., gzip, deflate, br) */
|
|
119
|
+
acceptEncoding?: string;
|
|
120
|
+
}
|
|
121
|
+
export interface ObservationContext {
|
|
122
|
+
/**
|
|
123
|
+
* Remove a ObservationInstance
|
|
124
|
+
*
|
|
125
|
+
* @param callback - Callback to handle processed record
|
|
126
|
+
*
|
|
127
|
+
* @returns Resolves to processed ObservationInstance
|
|
128
|
+
*/
|
|
129
|
+
remove(callback?: (error: Error | null, item?: ObservationInstance) => any): Promise<ObservationInstance>;
|
|
130
|
+
/**
|
|
131
|
+
* Remove a ObservationInstance and return HTTP info
|
|
132
|
+
*
|
|
133
|
+
* @param callback - Callback to handle processed record
|
|
134
|
+
*
|
|
135
|
+
* @returns Resolves to processed ObservationInstance with HTTP metadata
|
|
136
|
+
*/
|
|
137
|
+
removeWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ObservationInstance>) => any): Promise<ApiResponse<ObservationInstance>>;
|
|
138
|
+
/**
|
|
139
|
+
* Fetch a ObservationInstance
|
|
140
|
+
*
|
|
141
|
+
* @param callback - Callback to handle processed record
|
|
142
|
+
*
|
|
143
|
+
* @returns Resolves to processed ObservationInstance
|
|
144
|
+
*/
|
|
145
|
+
fetch(callback?: (error: Error | null, item?: ObservationInstance) => any): Promise<ObservationInstance>;
|
|
146
|
+
/**
|
|
147
|
+
* Fetch a ObservationInstance and return HTTP info
|
|
148
|
+
*
|
|
149
|
+
* @param callback - Callback to handle processed record
|
|
150
|
+
*
|
|
151
|
+
* @returns Resolves to processed ObservationInstance with HTTP metadata
|
|
152
|
+
*/
|
|
153
|
+
fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ObservationInstance>) => any): Promise<ApiResponse<ObservationInstance>>;
|
|
154
|
+
/**
|
|
155
|
+
* Patch a ObservationInstance
|
|
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 ObservationInstance
|
|
162
|
+
*/
|
|
163
|
+
patch(params: ObservationCore, headers?: any, callback?: (error: Error | null, item?: ObservationInstance) => any): Promise<ObservationInstance>;
|
|
164
|
+
/**
|
|
165
|
+
* Patch a ObservationInstance 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 ObservationInstance with HTTP metadata
|
|
172
|
+
*/
|
|
173
|
+
patchWithHttpInfo(params: ObservationCore, headers?: any, callback?: (error: Error | null, item?: ApiResponse<ObservationInstance>) => any): Promise<ApiResponse<ObservationInstance>>;
|
|
174
|
+
/**
|
|
175
|
+
* Provide a user-friendly representation
|
|
176
|
+
*/
|
|
177
|
+
toJSON(): any;
|
|
178
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
179
|
+
}
|
|
180
|
+
export interface ObservationContextSolution {
|
|
181
|
+
storeId: string;
|
|
182
|
+
profileId: string;
|
|
183
|
+
observationId: string;
|
|
184
|
+
}
|
|
185
|
+
export declare class ObservationContextImpl implements ObservationContext {
|
|
186
|
+
protected _version: V1;
|
|
187
|
+
protected _solution: ObservationContextSolution;
|
|
188
|
+
protected _uri: string;
|
|
189
|
+
constructor(_version: V1, storeId: string, profileId: string, observationId: string);
|
|
190
|
+
remove(callback?: (error: Error | null, item?: ObservationInstance) => any): Promise<ObservationInstance>;
|
|
191
|
+
removeWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ObservationInstance>) => any): Promise<ApiResponse<ObservationInstance>>;
|
|
192
|
+
fetch(callback?: (error: Error | null, item?: ObservationInstance) => any): Promise<ObservationInstance>;
|
|
193
|
+
fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ObservationInstance>) => any): Promise<ApiResponse<ObservationInstance>>;
|
|
194
|
+
patch(params: ObservationCore, headers?: any, callback?: (error: Error | null, item?: ObservationInstance) => any): Promise<ObservationInstance>;
|
|
195
|
+
patchWithHttpInfo(params: ObservationCore, headers?: any, callback?: (error: Error | null, item?: ApiResponse<ObservationInstance>) => any): Promise<ApiResponse<ObservationInstance>>;
|
|
196
|
+
/**
|
|
197
|
+
* Provide a user-friendly representation
|
|
198
|
+
*
|
|
199
|
+
* @returns Object
|
|
200
|
+
*/
|
|
201
|
+
toJSON(): ObservationContextSolution;
|
|
202
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Nested model for CreateObservationsRequest
|
|
206
|
+
*/
|
|
207
|
+
export interface CreateObservationsRequest {
|
|
208
|
+
observations: Array<ObservationCore>;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Nested model for ObservationCore
|
|
212
|
+
*/
|
|
213
|
+
export interface ObservationCore {
|
|
214
|
+
content: string;
|
|
215
|
+
occurredAt: Date;
|
|
216
|
+
source: string;
|
|
217
|
+
conversationIds?: Array<string>;
|
|
218
|
+
}
|
|
219
|
+
interface ObservationPayload extends TokenPaginationPayload {
|
|
220
|
+
observations: ObservationResource[];
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Response model for DeleteProfileObservation202Response operations
|
|
224
|
+
*/
|
|
225
|
+
interface DeleteProfileObservation202Response_ResponseResource {
|
|
226
|
+
message: string;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Response model for ObservationCreatedResponse operations
|
|
230
|
+
*/
|
|
231
|
+
interface ObservationCreatedResponse_ResponseResource {
|
|
232
|
+
message: string;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Response model for PatchProfileObservation202Response operations
|
|
236
|
+
*/
|
|
237
|
+
interface PatchProfileObservation202Response_ResponseResource {
|
|
238
|
+
message: string;
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Response model for ObservationInfo operations
|
|
242
|
+
*/
|
|
243
|
+
interface ObservationInfo_ResponseResource {
|
|
244
|
+
content: string;
|
|
245
|
+
occurredAt: Date;
|
|
246
|
+
source: string;
|
|
247
|
+
conversationIds?: Array<string>;
|
|
248
|
+
id: string;
|
|
249
|
+
createdAt: Date;
|
|
250
|
+
updatedAt: Date;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Union type for all possible response models
|
|
254
|
+
*/
|
|
255
|
+
type ObservationResource = DeleteProfileObservation202Response_ResponseResource | ObservationCreatedResponse_ResponseResource | PatchProfileObservation202Response_ResponseResource | ObservationInfo_ResponseResource;
|
|
256
|
+
/**
|
|
257
|
+
* Response for batch observation creation.
|
|
258
|
+
*/
|
|
259
|
+
export declare class ObservationInstance {
|
|
260
|
+
protected _version: V1;
|
|
261
|
+
protected _solution: ObservationContextSolution;
|
|
262
|
+
protected _context?: ObservationContext;
|
|
263
|
+
constructor(_version: V1, _payload: ObservationResource, storeId: string, profileId: string, observationId?: string);
|
|
264
|
+
message?: string;
|
|
265
|
+
/**
|
|
266
|
+
* The main content of the observation.
|
|
267
|
+
*/
|
|
268
|
+
content?: string;
|
|
269
|
+
/**
|
|
270
|
+
* The timestamp when the observation originally occurred.
|
|
271
|
+
*/
|
|
272
|
+
occurredAt?: Date;
|
|
273
|
+
/**
|
|
274
|
+
* The source system that generated this observation. Allows letters, numbers, spaces, and URL-safe symbols. Excludes URL-unsafe characters like quotes, angle brackets, and control characters.
|
|
275
|
+
*/
|
|
276
|
+
source?: string;
|
|
277
|
+
/**
|
|
278
|
+
* Array of conversation IDs associated with this observation.
|
|
279
|
+
*/
|
|
280
|
+
conversationIds?: Array<string>;
|
|
281
|
+
/**
|
|
282
|
+
* A unique identifier for the observation using Twilio Type ID (TTID) format.
|
|
283
|
+
*/
|
|
284
|
+
id?: string;
|
|
285
|
+
/**
|
|
286
|
+
* The timestamp when the observation was created.
|
|
287
|
+
*/
|
|
288
|
+
createdAt?: Date;
|
|
289
|
+
/**
|
|
290
|
+
* The timestamp when the observation was last updated.
|
|
291
|
+
*/
|
|
292
|
+
updatedAt?: Date;
|
|
293
|
+
private get _proxy();
|
|
294
|
+
/**
|
|
295
|
+
* Remove a ObservationInstance
|
|
296
|
+
*
|
|
297
|
+
* @param callback - Callback to handle processed record
|
|
298
|
+
*
|
|
299
|
+
* @returns Resolves to processed ObservationInstance
|
|
300
|
+
*/
|
|
301
|
+
remove(callback?: (error: Error | null, item?: ObservationInstance) => any): Promise<ObservationInstance>;
|
|
302
|
+
/**
|
|
303
|
+
* Remove a ObservationInstance and return HTTP info
|
|
304
|
+
*
|
|
305
|
+
* @param callback - Callback to handle processed record
|
|
306
|
+
*
|
|
307
|
+
* @returns Resolves to processed ObservationInstance with HTTP metadata
|
|
308
|
+
*/
|
|
309
|
+
removeWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ObservationInstance>) => any): Promise<ApiResponse<ObservationInstance>>;
|
|
310
|
+
/**
|
|
311
|
+
* Fetch a ObservationInstance
|
|
312
|
+
*
|
|
313
|
+
* @param callback - Callback to handle processed record
|
|
314
|
+
*
|
|
315
|
+
* @returns Resolves to processed ObservationInstance
|
|
316
|
+
*/
|
|
317
|
+
fetch(callback?: (error: Error | null, item?: ObservationInstance) => any): Promise<ObservationInstance>;
|
|
318
|
+
/**
|
|
319
|
+
* Fetch a ObservationInstance and return HTTP info
|
|
320
|
+
*
|
|
321
|
+
* @param callback - Callback to handle processed record
|
|
322
|
+
*
|
|
323
|
+
* @returns Resolves to processed ObservationInstance with HTTP metadata
|
|
324
|
+
*/
|
|
325
|
+
fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ObservationInstance>) => any): Promise<ApiResponse<ObservationInstance>>;
|
|
326
|
+
/**
|
|
327
|
+
* Patch a ObservationInstance
|
|
328
|
+
*
|
|
329
|
+
* @param params - Body for request
|
|
330
|
+
* @param headers - header params for request
|
|
331
|
+
* @param callback - Callback to handle processed record
|
|
332
|
+
*
|
|
333
|
+
* @returns Resolves to processed ObservationInstance
|
|
334
|
+
*/
|
|
335
|
+
patch(params: ObservationCore, headers?: any, callback?: (error: Error | null, item?: ObservationInstance) => any): Promise<ObservationInstance>;
|
|
336
|
+
/**
|
|
337
|
+
* Patch a ObservationInstance and return HTTP info
|
|
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 ObservationInstance with HTTP metadata
|
|
344
|
+
*/
|
|
345
|
+
patchWithHttpInfo(params: ObservationCore, headers?: any, callback?: (error: Error | null, item?: ApiResponse<ObservationInstance>) => any): Promise<ApiResponse<ObservationInstance>>;
|
|
346
|
+
/**
|
|
347
|
+
* Provide a user-friendly representation
|
|
348
|
+
*
|
|
349
|
+
* @returns Object
|
|
350
|
+
*/
|
|
351
|
+
toJSON(): {
|
|
352
|
+
message: string;
|
|
353
|
+
content: string;
|
|
354
|
+
occurredAt: Date;
|
|
355
|
+
source: string;
|
|
356
|
+
conversationIds: string[];
|
|
357
|
+
id: string;
|
|
358
|
+
createdAt: Date;
|
|
359
|
+
updatedAt: Date;
|
|
360
|
+
};
|
|
361
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
362
|
+
}
|
|
363
|
+
export interface ObservationSolution {
|
|
364
|
+
storeId: string;
|
|
365
|
+
profileId: string;
|
|
366
|
+
}
|
|
367
|
+
export interface ObservationListInstance {
|
|
368
|
+
_version: V1;
|
|
369
|
+
_solution: ObservationSolution;
|
|
370
|
+
_uri: string;
|
|
371
|
+
(observationId: string): ObservationContext;
|
|
372
|
+
get(observationId: string): ObservationContext;
|
|
373
|
+
/**
|
|
374
|
+
* Create a ObservationInstance
|
|
375
|
+
*
|
|
376
|
+
* @param params - Body for request
|
|
377
|
+
* @param headers - header params for request
|
|
378
|
+
* @param callback - Callback to handle processed record
|
|
379
|
+
*
|
|
380
|
+
* @returns Resolves to processed ObservationInstance
|
|
381
|
+
*/
|
|
382
|
+
create(params: CreateObservationsRequest, headers?: any, callback?: (error: Error | null, item?: ObservationInstance) => any): Promise<ObservationInstance>;
|
|
383
|
+
/**
|
|
384
|
+
* Create a ObservationInstance and return HTTP info
|
|
385
|
+
*
|
|
386
|
+
* @param params - Body for request
|
|
387
|
+
* @param headers - header params for request
|
|
388
|
+
* @param callback - Callback to handle processed record
|
|
389
|
+
*
|
|
390
|
+
* @returns Resolves to processed ObservationInstance with HTTP metadata
|
|
391
|
+
*/
|
|
392
|
+
createWithHttpInfo(params: CreateObservationsRequest, headers?: any, callback?: (error: Error | null, item?: ApiResponse<ObservationInstance>) => any): Promise<ApiResponse<ObservationInstance>>;
|
|
393
|
+
/**
|
|
394
|
+
* Streams ObservationInstance records from the API.
|
|
395
|
+
*
|
|
396
|
+
* This operation lazily loads records as efficiently as possible until the limit
|
|
397
|
+
* is reached.
|
|
398
|
+
*
|
|
399
|
+
* The results are passed into the callback function, so this operation is memory
|
|
400
|
+
* efficient.
|
|
401
|
+
*
|
|
402
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
403
|
+
* function.
|
|
404
|
+
*
|
|
405
|
+
* @param { ObservationListInstanceEachOptions } [params] - Options for request
|
|
406
|
+
* @param { function } [callback] - Function to process each record
|
|
407
|
+
*/
|
|
408
|
+
each(callback?: (item: ObservationInstance, done: (err?: Error) => void) => void): void;
|
|
409
|
+
each(params: ObservationListInstanceEachOptions, callback?: (item: ObservationInstance, done: (err?: Error) => void) => void): void;
|
|
410
|
+
/**
|
|
411
|
+
* Streams ObservationInstance records from the API with HTTP metadata captured per page.
|
|
412
|
+
*
|
|
413
|
+
* This operation lazily loads records as efficiently as possible until the limit
|
|
414
|
+
* is reached. HTTP metadata (status code, headers) is captured for each page request.
|
|
415
|
+
*
|
|
416
|
+
* The results are passed into the callback function, so this operation is memory
|
|
417
|
+
* efficient.
|
|
418
|
+
*
|
|
419
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
420
|
+
* function.
|
|
421
|
+
*
|
|
422
|
+
* @param { ObservationListInstanceEachOptions } [params] - Options for request
|
|
423
|
+
* @param { function } [callback] - Function to process each record
|
|
424
|
+
*/
|
|
425
|
+
eachWithHttpInfo(callback?: (item: ObservationInstance, done: (err?: Error) => void) => void): void;
|
|
426
|
+
eachWithHttpInfo(params: ObservationListInstanceEachOptions, callback?: (item: ObservationInstance, done: (err?: Error) => void) => void): void;
|
|
427
|
+
/**
|
|
428
|
+
* Retrieve a single target page of ObservationInstance records from the API.
|
|
429
|
+
*
|
|
430
|
+
* The request is executed immediately.
|
|
431
|
+
*
|
|
432
|
+
* @param { string } [targetUrl] - API-generated URL for the requested results page
|
|
433
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
434
|
+
*/
|
|
435
|
+
getPage(targetUrl: string, callback?: (error: Error | null, items: ObservationPage) => any): Promise<ObservationPage>;
|
|
436
|
+
/**
|
|
437
|
+
* Retrieve a single target page of ObservationInstance records from the API with HTTP metadata.
|
|
438
|
+
*
|
|
439
|
+
* The request is executed immediately.
|
|
440
|
+
*
|
|
441
|
+
* @param { string } [targetUrl] - API-generated URL for the requested results page
|
|
442
|
+
* @param { function } [callback] - Callback to handle list of records with metadata
|
|
443
|
+
*/
|
|
444
|
+
getPageWithHttpInfo(targetUrl: string, callback?: (error: Error | null, items: ApiResponse<ObservationPage>) => any): Promise<ApiResponse<ObservationPage>>;
|
|
445
|
+
/**
|
|
446
|
+
* Lists ObservationInstance records from the API as a list.
|
|
447
|
+
*
|
|
448
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
449
|
+
* function.
|
|
450
|
+
*
|
|
451
|
+
* @param { ObservationListInstanceOptions } [params] - Options for request
|
|
452
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
453
|
+
*/
|
|
454
|
+
list(callback?: (error: Error | null, items: ObservationInstance[]) => any): Promise<ObservationInstance[]>;
|
|
455
|
+
list(params: ObservationListInstanceOptions, callback?: (error: Error | null, items: ObservationInstance[]) => any): Promise<ObservationInstance[]>;
|
|
456
|
+
/**
|
|
457
|
+
* Lists ObservationInstance records from the API as a list with HTTP metadata.
|
|
458
|
+
*
|
|
459
|
+
* Returns all records along with HTTP metadata from the first page fetched.
|
|
460
|
+
*
|
|
461
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
462
|
+
* function.
|
|
463
|
+
*
|
|
464
|
+
* @param { ObservationListInstanceOptions } [params] - Options for request
|
|
465
|
+
* @param { function } [callback] - Callback to handle list of records with metadata
|
|
466
|
+
*/
|
|
467
|
+
listWithHttpInfo(callback?: (error: Error | null, items: ApiResponse<ObservationInstance[]>) => any): Promise<ApiResponse<ObservationInstance[]>>;
|
|
468
|
+
listWithHttpInfo(params: ObservationListInstanceOptions, callback?: (error: Error | null, items: ApiResponse<ObservationInstance[]>) => any): Promise<ApiResponse<ObservationInstance[]>>;
|
|
469
|
+
/**
|
|
470
|
+
* Retrieve a single page of ObservationInstance records from the API.
|
|
471
|
+
*
|
|
472
|
+
* The request is executed immediately.
|
|
473
|
+
*
|
|
474
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
475
|
+
* function.
|
|
476
|
+
*
|
|
477
|
+
* @param { ObservationListInstancePageOptions } [params] - Options for request
|
|
478
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
479
|
+
*/
|
|
480
|
+
page(callback?: (error: Error | null, items: ObservationPage) => any): Promise<ObservationPage>;
|
|
481
|
+
page(params: ObservationListInstancePageOptions, callback?: (error: Error | null, items: ObservationPage) => any): Promise<ObservationPage>;
|
|
482
|
+
/**
|
|
483
|
+
* Retrieve a single page of ObservationInstance records from the API with HTTP metadata.
|
|
484
|
+
*
|
|
485
|
+
* The request is executed immediately.
|
|
486
|
+
*
|
|
487
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
488
|
+
* function.
|
|
489
|
+
*
|
|
490
|
+
* @param { ObservationListInstancePageOptions } [params] - Options for request
|
|
491
|
+
* @param { function } [callback] - Callback to handle list of records with metadata
|
|
492
|
+
*/
|
|
493
|
+
pageWithHttpInfo(callback?: (error: Error | null, items: ApiResponse<ObservationPage>) => any): Promise<ApiResponse<ObservationPage>>;
|
|
494
|
+
pageWithHttpInfo(params: ObservationListInstancePageOptions, callback?: (error: Error | null, items: ApiResponse<ObservationPage>) => any): Promise<ApiResponse<ObservationPage>>;
|
|
495
|
+
/**
|
|
496
|
+
* Provide a user-friendly representation
|
|
497
|
+
*/
|
|
498
|
+
toJSON(): any;
|
|
499
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
500
|
+
}
|
|
501
|
+
export declare function ObservationListInstance(version: V1, storeId: string, profileId: string): ObservationListInstance;
|
|
502
|
+
export declare class ObservationPage extends TokenPage<V1, ObservationPayload, ObservationResource, ObservationInstance> {
|
|
503
|
+
/**
|
|
504
|
+
* Initialize the ObservationPage
|
|
505
|
+
*
|
|
506
|
+
* @param version - Version of the resource
|
|
507
|
+
* @param response - Response from the API
|
|
508
|
+
* @param uri - URI of the resource
|
|
509
|
+
* @param params - Query parameters
|
|
510
|
+
* @param solution - Path solution
|
|
511
|
+
*/
|
|
512
|
+
constructor(version: V1, response: Response<string>, uri: string, params: any, solution: ObservationSolution);
|
|
513
|
+
/**
|
|
514
|
+
* Build an instance of ObservationInstance
|
|
515
|
+
*
|
|
516
|
+
* @param payload - Payload response from the API
|
|
517
|
+
*/
|
|
518
|
+
getInstance(payload: ObservationResource): ObservationInstance;
|
|
519
|
+
[inspect.custom](depth: any, options: InspectOptions): string;
|
|
520
|
+
}
|
|
521
|
+
export {};
|