@wildix/xbees-conversations-client 1.0.18
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/dist-cjs/Conversations.js +27 -0
- package/dist-cjs/ConversationsClient.js +33 -0
- package/dist-cjs/commands/CreateChannelCommand.js +41 -0
- package/dist-cjs/commands/CreateMessageCommand.js +41 -0
- package/dist-cjs/commands/DeleteChannelCommand.js +41 -0
- package/dist-cjs/commands/GetChannelCommand.js +41 -0
- package/dist-cjs/commands/GetChannelMemberCommand.js +41 -0
- package/dist-cjs/commands/GetMessageCommand.js +41 -0
- package/dist-cjs/commands/PartialUpdateChannelCommand.js +41 -0
- package/dist-cjs/commands/UpdateChannelCommand.js +41 -0
- package/dist-cjs/commands/index.js +11 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +10 -0
- package/dist-cjs/models/ConversationsServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +96 -0
- package/dist-cjs/protocols/Aws_restJson1.js +597 -0
- package/dist-cjs/runtimeConfig.browser.js +28 -0
- package/dist-cjs/runtimeConfig.js +32 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +19 -0
- package/dist-cjs/runtimeExtensions.js +19 -0
- package/dist-es/Conversations.js +23 -0
- package/dist-es/ConversationsClient.js +29 -0
- package/dist-es/commands/CreateChannelCommand.js +37 -0
- package/dist-es/commands/CreateMessageCommand.js +37 -0
- package/dist-es/commands/DeleteChannelCommand.js +37 -0
- package/dist-es/commands/GetChannelCommand.js +37 -0
- package/dist-es/commands/GetChannelMemberCommand.js +37 -0
- package/dist-es/commands/GetMessageCommand.js +37 -0
- package/dist-es/commands/PartialUpdateChannelCommand.js +37 -0
- package/dist-es/commands/UpdateChannelCommand.js +37 -0
- package/dist-es/commands/index.js +8 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/ConversationsServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +90 -0
- package/dist-es/protocols/Aws_restJson1.js +578 -0
- package/dist-es/runtimeConfig.browser.js +24 -0
- package/dist-es/runtimeConfig.js +28 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +15 -0
- package/dist-es/runtimeExtensions.js +15 -0
- package/dist-types/Conversations.d.ts +65 -0
- package/dist-types/ConversationsClient.d.ts +144 -0
- package/dist-types/commands/CreateChannelCommand.d.ts +194 -0
- package/dist-types/commands/CreateMessageCommand.d.ts +360 -0
- package/dist-types/commands/DeleteChannelCommand.d.ts +71 -0
- package/dist-types/commands/GetChannelCommand.d.ts +136 -0
- package/dist-types/commands/GetChannelMemberCommand.d.ts +80 -0
- package/dist-types/commands/GetMessageCommand.d.ts +209 -0
- package/dist-types/commands/PartialUpdateChannelCommand.d.ts +193 -0
- package/dist-types/commands/UpdateChannelCommand.d.ts +190 -0
- package/dist-types/commands/index.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +7 -0
- package/dist-types/index.d.ts +5 -0
- package/dist-types/models/ConversationsServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +508 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +74 -0
- package/dist-types/runtimeConfig.browser.d.ts +29 -0
- package/dist-types/runtimeConfig.d.ts +29 -0
- package/dist-types/runtimeConfig.native.d.ts +28 -0
- package/dist-types/runtimeConfig.shared.d.ts +15 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/package.json +77 -0
|
@@ -0,0 +1,508 @@
|
|
|
1
|
+
import { ConversationsServiceException as __BaseException } from "./ConversationsServiceException";
|
|
2
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare class ValidationException extends __BaseException {
|
|
7
|
+
readonly name: "ValidationException";
|
|
8
|
+
readonly $fault: "client";
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
* @enum
|
|
17
|
+
*/
|
|
18
|
+
export declare const ChannelAccess: {
|
|
19
|
+
readonly PRIVATE: "private";
|
|
20
|
+
readonly PUBLIC: "public";
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export type ChannelAccess = typeof ChannelAccess[keyof typeof ChannelAccess];
|
|
26
|
+
/**
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
export interface User {
|
|
30
|
+
id: string;
|
|
31
|
+
name?: string;
|
|
32
|
+
email?: string;
|
|
33
|
+
phone?: string;
|
|
34
|
+
picture?: string;
|
|
35
|
+
company?: string;
|
|
36
|
+
pbxDomain?: string;
|
|
37
|
+
pbxPort?: string;
|
|
38
|
+
pbxExtension?: string;
|
|
39
|
+
pbxSerial?: string;
|
|
40
|
+
pbxUserId?: string;
|
|
41
|
+
createdAt?: string;
|
|
42
|
+
updatedAt?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @public
|
|
46
|
+
* @enum
|
|
47
|
+
*/
|
|
48
|
+
export declare const ChannelType: {
|
|
49
|
+
readonly DIRECT: "direct";
|
|
50
|
+
readonly GROUP: "group";
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* @public
|
|
54
|
+
*/
|
|
55
|
+
export type ChannelType = typeof ChannelType[keyof typeof ChannelType];
|
|
56
|
+
/**
|
|
57
|
+
* @public
|
|
58
|
+
* @enum
|
|
59
|
+
*/
|
|
60
|
+
export declare const ChannelContextEventAttendeeStatus: {
|
|
61
|
+
readonly ACCEPTED: "accepted";
|
|
62
|
+
readonly DECLINED: "declined";
|
|
63
|
+
readonly NONE: "none";
|
|
64
|
+
readonly TENTATIVE: "tentative";
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* @public
|
|
68
|
+
*/
|
|
69
|
+
export type ChannelContextEventAttendeeStatus = typeof ChannelContextEventAttendeeStatus[keyof typeof ChannelContextEventAttendeeStatus];
|
|
70
|
+
/**
|
|
71
|
+
* @public
|
|
72
|
+
*/
|
|
73
|
+
export interface ChannelContextEventAttendee {
|
|
74
|
+
email: string;
|
|
75
|
+
name?: string;
|
|
76
|
+
status: ChannelContextEventAttendeeStatus | string;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
export interface ChannelContextEvent {
|
|
82
|
+
id?: string;
|
|
83
|
+
owner?: string;
|
|
84
|
+
start?: string;
|
|
85
|
+
end?: string;
|
|
86
|
+
summary?: string;
|
|
87
|
+
attendees?: (ChannelContextEventAttendee)[];
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* @public
|
|
91
|
+
* @enum
|
|
92
|
+
*/
|
|
93
|
+
export declare const ChannelContextSource: {
|
|
94
|
+
readonly KITE: "kite";
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
99
|
+
export type ChannelContextSource = typeof ChannelContextSource[keyof typeof ChannelContextSource];
|
|
100
|
+
/**
|
|
101
|
+
* @public
|
|
102
|
+
*/
|
|
103
|
+
export interface ChannelContext {
|
|
104
|
+
source?: ChannelContextSource | string;
|
|
105
|
+
target?: string;
|
|
106
|
+
events?: (ChannelContextEvent)[];
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* @public
|
|
110
|
+
*/
|
|
111
|
+
export interface Channel {
|
|
112
|
+
subject?: string;
|
|
113
|
+
description?: string;
|
|
114
|
+
/**
|
|
115
|
+
* @public
|
|
116
|
+
* Picture URL
|
|
117
|
+
*/
|
|
118
|
+
picture?: string;
|
|
119
|
+
/**
|
|
120
|
+
* @public
|
|
121
|
+
* Picture dominant color represented by a hex value.
|
|
122
|
+
*/
|
|
123
|
+
pictureColor?: string;
|
|
124
|
+
access?: ChannelAccess | string;
|
|
125
|
+
company?: string;
|
|
126
|
+
context?: ChannelContext;
|
|
127
|
+
kite?: boolean;
|
|
128
|
+
kiteTarget?: string;
|
|
129
|
+
kiteVariant?: string;
|
|
130
|
+
kiteAssign?: string;
|
|
131
|
+
kiteServiceName?: string;
|
|
132
|
+
kiteDefaultSubject?: string;
|
|
133
|
+
service?: string;
|
|
134
|
+
serviceTitle?: string;
|
|
135
|
+
serviceRecipient?: string;
|
|
136
|
+
assignee?: User;
|
|
137
|
+
telephony?: boolean;
|
|
138
|
+
sms?: boolean;
|
|
139
|
+
broadcast?: boolean;
|
|
140
|
+
external?: boolean;
|
|
141
|
+
channelId: string;
|
|
142
|
+
channelType: ChannelType | string;
|
|
143
|
+
memberCount: number;
|
|
144
|
+
createdAt: string;
|
|
145
|
+
createdBy: string;
|
|
146
|
+
updatedAt?: string;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* @public
|
|
150
|
+
*/
|
|
151
|
+
export interface ChannelCreateFields {
|
|
152
|
+
subject?: string;
|
|
153
|
+
description?: string;
|
|
154
|
+
/**
|
|
155
|
+
* @public
|
|
156
|
+
* Picture URL
|
|
157
|
+
*/
|
|
158
|
+
picture?: string;
|
|
159
|
+
/**
|
|
160
|
+
* @public
|
|
161
|
+
* Picture dominant color represented by a hex value.
|
|
162
|
+
*/
|
|
163
|
+
pictureColor?: string;
|
|
164
|
+
access?: ChannelAccess | string;
|
|
165
|
+
company?: string;
|
|
166
|
+
context?: ChannelContext;
|
|
167
|
+
kite?: boolean;
|
|
168
|
+
kiteTarget?: string;
|
|
169
|
+
kiteVariant?: string;
|
|
170
|
+
kiteAssign?: string;
|
|
171
|
+
kiteServiceName?: string;
|
|
172
|
+
kiteDefaultSubject?: string;
|
|
173
|
+
service?: string;
|
|
174
|
+
serviceTitle?: string;
|
|
175
|
+
serviceRecipient?: string;
|
|
176
|
+
assignee?: User;
|
|
177
|
+
telephony?: boolean;
|
|
178
|
+
sms?: boolean;
|
|
179
|
+
broadcast?: boolean;
|
|
180
|
+
external?: boolean;
|
|
181
|
+
channelId?: string;
|
|
182
|
+
channelType: ChannelType | string;
|
|
183
|
+
members?: (string)[];
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* @public
|
|
187
|
+
* @enum
|
|
188
|
+
*/
|
|
189
|
+
export declare const ChannelMemberRole: {
|
|
190
|
+
readonly MEMBER: "member";
|
|
191
|
+
readonly SUPERVISOR: "supervisor";
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* @public
|
|
195
|
+
*/
|
|
196
|
+
export type ChannelMemberRole = typeof ChannelMemberRole[keyof typeof ChannelMemberRole];
|
|
197
|
+
/**
|
|
198
|
+
* @public
|
|
199
|
+
*/
|
|
200
|
+
export interface ChannelMember {
|
|
201
|
+
id: string;
|
|
202
|
+
createdAt: string;
|
|
203
|
+
role: ChannelMemberRole | string;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* @public
|
|
207
|
+
*/
|
|
208
|
+
export declare class ChannelNotFoundException extends __BaseException {
|
|
209
|
+
readonly name: "ChannelNotFoundException";
|
|
210
|
+
readonly $fault: "client";
|
|
211
|
+
/**
|
|
212
|
+
* @internal
|
|
213
|
+
*/
|
|
214
|
+
constructor(opts: __ExceptionOptionType<ChannelNotFoundException, __BaseException>);
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* @public
|
|
218
|
+
* @enum
|
|
219
|
+
*/
|
|
220
|
+
export declare const ChannelUnsetFields: {
|
|
221
|
+
readonly ACCESS: "access";
|
|
222
|
+
readonly ASSIGNEE: "assignee";
|
|
223
|
+
readonly BROADCAST: "broadcast";
|
|
224
|
+
readonly COMPANY: "company";
|
|
225
|
+
readonly CONTEXT: "context";
|
|
226
|
+
readonly DESCRIPTION: "description";
|
|
227
|
+
readonly EXTERNAL: "external";
|
|
228
|
+
readonly KITE: "kite";
|
|
229
|
+
readonly KITE_ASSIGN: "kiteAssign";
|
|
230
|
+
readonly KITE_DEFAULT_SUBJECT: "kiteDefaultSubject";
|
|
231
|
+
readonly KITE_SERVICE_NAME: "kiteServiceName";
|
|
232
|
+
readonly KITE_TARGET: "kiteTarget";
|
|
233
|
+
readonly KITE_VARIANT: "kiteVariant";
|
|
234
|
+
readonly PICTURE: "picture";
|
|
235
|
+
readonly PICTURE_COLOR: "pictureColor";
|
|
236
|
+
readonly SERVICE: "service";
|
|
237
|
+
readonly SERVICE_RECIPIENT: "serviceRecipient";
|
|
238
|
+
readonly SERVICE_TITLE: "serviceTitle";
|
|
239
|
+
readonly SMS: "sms";
|
|
240
|
+
readonly SUBJECT: "subject";
|
|
241
|
+
readonly TELEPHONY: "telephony";
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* @public
|
|
245
|
+
*/
|
|
246
|
+
export type ChannelUnsetFields = typeof ChannelUnsetFields[keyof typeof ChannelUnsetFields];
|
|
247
|
+
/**
|
|
248
|
+
* @public
|
|
249
|
+
*/
|
|
250
|
+
export interface ChannelUpdateFields {
|
|
251
|
+
subject?: string;
|
|
252
|
+
description?: string;
|
|
253
|
+
/**
|
|
254
|
+
* @public
|
|
255
|
+
* Picture URL
|
|
256
|
+
*/
|
|
257
|
+
picture?: string;
|
|
258
|
+
/**
|
|
259
|
+
* @public
|
|
260
|
+
* Picture dominant color represented by a hex value.
|
|
261
|
+
*/
|
|
262
|
+
pictureColor?: string;
|
|
263
|
+
access?: ChannelAccess | string;
|
|
264
|
+
company?: string;
|
|
265
|
+
context?: ChannelContext;
|
|
266
|
+
kite?: boolean;
|
|
267
|
+
kiteTarget?: string;
|
|
268
|
+
kiteVariant?: string;
|
|
269
|
+
kiteAssign?: string;
|
|
270
|
+
kiteServiceName?: string;
|
|
271
|
+
kiteDefaultSubject?: string;
|
|
272
|
+
service?: string;
|
|
273
|
+
serviceTitle?: string;
|
|
274
|
+
serviceRecipient?: string;
|
|
275
|
+
assignee?: User;
|
|
276
|
+
telephony?: boolean;
|
|
277
|
+
sms?: boolean;
|
|
278
|
+
broadcast?: boolean;
|
|
279
|
+
external?: boolean;
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* @public
|
|
283
|
+
*/
|
|
284
|
+
export interface CreateChannelInput {
|
|
285
|
+
channel: ChannelCreateFields;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* @public
|
|
289
|
+
*/
|
|
290
|
+
export interface CreateChannelOutput {
|
|
291
|
+
channel: Channel;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* @public
|
|
295
|
+
*/
|
|
296
|
+
export interface MessageAttachment {
|
|
297
|
+
id: string;
|
|
298
|
+
/**
|
|
299
|
+
* @public
|
|
300
|
+
* This *is* documentation about the field. Describe here what fsId and how to get it.
|
|
301
|
+
*/
|
|
302
|
+
fsId: string;
|
|
303
|
+
mime?: string;
|
|
304
|
+
name?: string;
|
|
305
|
+
size: number;
|
|
306
|
+
width?: number;
|
|
307
|
+
height?: number;
|
|
308
|
+
thumbnail?: string;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* @public
|
|
312
|
+
*/
|
|
313
|
+
export interface MessageForward {
|
|
314
|
+
forwardCompany?: string;
|
|
315
|
+
forwardDate: string;
|
|
316
|
+
forwardEmail?: string;
|
|
317
|
+
forwardName?: string;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* @public
|
|
321
|
+
*/
|
|
322
|
+
export interface MessageGiphy {
|
|
323
|
+
id?: string;
|
|
324
|
+
size?: string;
|
|
325
|
+
url?: string;
|
|
326
|
+
height?: string;
|
|
327
|
+
width?: string;
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* @public
|
|
331
|
+
*/
|
|
332
|
+
export interface Reaction {
|
|
333
|
+
type?: string;
|
|
334
|
+
userId?: string;
|
|
335
|
+
messageId?: string;
|
|
336
|
+
user?: User;
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* @public
|
|
340
|
+
* @enum
|
|
341
|
+
*/
|
|
342
|
+
export declare const MessageSmsStatus: {
|
|
343
|
+
readonly DELIVERED: "delivered";
|
|
344
|
+
readonly ERROR: "error";
|
|
345
|
+
readonly SENT: "sent";
|
|
346
|
+
readonly TRYING: "trying";
|
|
347
|
+
};
|
|
348
|
+
/**
|
|
349
|
+
* @public
|
|
350
|
+
*/
|
|
351
|
+
export type MessageSmsStatus = typeof MessageSmsStatus[keyof typeof MessageSmsStatus];
|
|
352
|
+
/**
|
|
353
|
+
* @public
|
|
354
|
+
* @enum
|
|
355
|
+
*/
|
|
356
|
+
export declare const MessageType: {
|
|
357
|
+
readonly REGULAR: "regular";
|
|
358
|
+
};
|
|
359
|
+
/**
|
|
360
|
+
* @public
|
|
361
|
+
*/
|
|
362
|
+
export type MessageType = typeof MessageType[keyof typeof MessageType];
|
|
363
|
+
/**
|
|
364
|
+
* @public
|
|
365
|
+
*/
|
|
366
|
+
export interface DeleteChannelInput {
|
|
367
|
+
channelId: string;
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* @public
|
|
371
|
+
*/
|
|
372
|
+
export interface DeleteChannelOutput {
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* @public
|
|
376
|
+
*/
|
|
377
|
+
export interface GetChannelInput {
|
|
378
|
+
channelId: string;
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* @public
|
|
382
|
+
*/
|
|
383
|
+
export interface GetChannelOutput {
|
|
384
|
+
channel: Channel;
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* @public
|
|
388
|
+
*/
|
|
389
|
+
export interface GetChannelMemberInput {
|
|
390
|
+
channelId: string;
|
|
391
|
+
memberId: string;
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* @public
|
|
395
|
+
*/
|
|
396
|
+
export interface GetChannelMemberOutput {
|
|
397
|
+
member: ChannelMember;
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* @public
|
|
401
|
+
*/
|
|
402
|
+
export declare class MemberNotFoundException extends __BaseException {
|
|
403
|
+
readonly name: "MemberNotFoundException";
|
|
404
|
+
readonly $fault: "client";
|
|
405
|
+
/**
|
|
406
|
+
* @internal
|
|
407
|
+
*/
|
|
408
|
+
constructor(opts: __ExceptionOptionType<MemberNotFoundException, __BaseException>);
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* @public
|
|
412
|
+
*/
|
|
413
|
+
export interface GetMessageInput {
|
|
414
|
+
channelId: string;
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* @public
|
|
418
|
+
*/
|
|
419
|
+
export interface PartialUpdateChannelInput {
|
|
420
|
+
channelId: string;
|
|
421
|
+
set?: ChannelUpdateFields;
|
|
422
|
+
unset?: (ChannelUnsetFields | string)[];
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* @public
|
|
426
|
+
*/
|
|
427
|
+
export interface PartialUpdateChannelOutput {
|
|
428
|
+
channel: Channel;
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* @public
|
|
432
|
+
*/
|
|
433
|
+
export interface UpdateChannelInput {
|
|
434
|
+
channelId: string;
|
|
435
|
+
channel: ChannelUpdateFields;
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* @public
|
|
439
|
+
*/
|
|
440
|
+
export interface UpdateChannelOutput {
|
|
441
|
+
channel: Channel;
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* @public
|
|
445
|
+
*/
|
|
446
|
+
export interface Message {
|
|
447
|
+
type: MessageType | string;
|
|
448
|
+
text?: string;
|
|
449
|
+
silent?: boolean;
|
|
450
|
+
event?: string;
|
|
451
|
+
attachments?: (MessageAttachment)[];
|
|
452
|
+
giphy?: MessageGiphy;
|
|
453
|
+
quote?: Message;
|
|
454
|
+
forward?: MessageForward;
|
|
455
|
+
sms?: boolean;
|
|
456
|
+
smsStatus?: MessageSmsStatus | string;
|
|
457
|
+
messageId: string;
|
|
458
|
+
channelId: string;
|
|
459
|
+
user: User;
|
|
460
|
+
edit?: boolean;
|
|
461
|
+
mentions?: (User)[];
|
|
462
|
+
latestReactions?: (Reaction)[];
|
|
463
|
+
reactionCounts?: Record<string, number>;
|
|
464
|
+
createdAt: string;
|
|
465
|
+
updatedAt?: string;
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* @public
|
|
469
|
+
*/
|
|
470
|
+
export interface CreateMessageOutput {
|
|
471
|
+
message?: Message;
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* @public
|
|
475
|
+
*/
|
|
476
|
+
export interface GetMessageOutput {
|
|
477
|
+
message?: Message;
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* @public
|
|
481
|
+
* An interface of available options for new message command
|
|
482
|
+
*/
|
|
483
|
+
export interface MessageCreateFields {
|
|
484
|
+
type: MessageType | string;
|
|
485
|
+
text?: string;
|
|
486
|
+
silent?: boolean;
|
|
487
|
+
event?: string;
|
|
488
|
+
attachments?: (MessageAttachment)[];
|
|
489
|
+
giphy?: MessageGiphy;
|
|
490
|
+
quote?: Message;
|
|
491
|
+
forward?: MessageForward;
|
|
492
|
+
sms?: boolean;
|
|
493
|
+
smsStatus?: MessageSmsStatus | string;
|
|
494
|
+
messageId?: string;
|
|
495
|
+
mentions?: (string)[];
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* @public
|
|
499
|
+
*/
|
|
500
|
+
export interface CreateMessageInput {
|
|
501
|
+
channelId: string;
|
|
502
|
+
userId: string;
|
|
503
|
+
/**
|
|
504
|
+
* @public
|
|
505
|
+
* An interface of available options for new message command
|
|
506
|
+
*/
|
|
507
|
+
message: MessageCreateFields;
|
|
508
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { CreateChannelCommandInput, CreateChannelCommandOutput } from "../commands/CreateChannelCommand";
|
|
2
|
+
import { CreateMessageCommandInput, CreateMessageCommandOutput } from "../commands/CreateMessageCommand";
|
|
3
|
+
import { DeleteChannelCommandInput, DeleteChannelCommandOutput } from "../commands/DeleteChannelCommand";
|
|
4
|
+
import { GetChannelCommandInput, GetChannelCommandOutput } from "../commands/GetChannelCommand";
|
|
5
|
+
import { GetChannelMemberCommandInput, GetChannelMemberCommandOutput } from "../commands/GetChannelMemberCommand";
|
|
6
|
+
import { GetMessageCommandInput, GetMessageCommandOutput } from "../commands/GetMessageCommand";
|
|
7
|
+
import { PartialUpdateChannelCommandInput, PartialUpdateChannelCommandOutput } from "../commands/PartialUpdateChannelCommand";
|
|
8
|
+
import { UpdateChannelCommandInput, UpdateChannelCommandOutput } from "../commands/UpdateChannelCommand";
|
|
9
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
10
|
+
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
11
|
+
/**
|
|
12
|
+
* serializeAws_restJson1CreateChannelCommand
|
|
13
|
+
*/
|
|
14
|
+
export declare const se_CreateChannelCommand: (input: CreateChannelCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
15
|
+
/**
|
|
16
|
+
* serializeAws_restJson1CreateMessageCommand
|
|
17
|
+
*/
|
|
18
|
+
export declare const se_CreateMessageCommand: (input: CreateMessageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
19
|
+
/**
|
|
20
|
+
* serializeAws_restJson1DeleteChannelCommand
|
|
21
|
+
*/
|
|
22
|
+
export declare const se_DeleteChannelCommand: (input: DeleteChannelCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
23
|
+
/**
|
|
24
|
+
* serializeAws_restJson1GetChannelCommand
|
|
25
|
+
*/
|
|
26
|
+
export declare const se_GetChannelCommand: (input: GetChannelCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
27
|
+
/**
|
|
28
|
+
* serializeAws_restJson1GetChannelMemberCommand
|
|
29
|
+
*/
|
|
30
|
+
export declare const se_GetChannelMemberCommand: (input: GetChannelMemberCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
31
|
+
/**
|
|
32
|
+
* serializeAws_restJson1GetMessageCommand
|
|
33
|
+
*/
|
|
34
|
+
export declare const se_GetMessageCommand: (input: GetMessageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
35
|
+
/**
|
|
36
|
+
* serializeAws_restJson1PartialUpdateChannelCommand
|
|
37
|
+
*/
|
|
38
|
+
export declare const se_PartialUpdateChannelCommand: (input: PartialUpdateChannelCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
39
|
+
/**
|
|
40
|
+
* serializeAws_restJson1UpdateChannelCommand
|
|
41
|
+
*/
|
|
42
|
+
export declare const se_UpdateChannelCommand: (input: UpdateChannelCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
43
|
+
/**
|
|
44
|
+
* deserializeAws_restJson1CreateChannelCommand
|
|
45
|
+
*/
|
|
46
|
+
export declare const de_CreateChannelCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateChannelCommandOutput>;
|
|
47
|
+
/**
|
|
48
|
+
* deserializeAws_restJson1CreateMessageCommand
|
|
49
|
+
*/
|
|
50
|
+
export declare const de_CreateMessageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateMessageCommandOutput>;
|
|
51
|
+
/**
|
|
52
|
+
* deserializeAws_restJson1DeleteChannelCommand
|
|
53
|
+
*/
|
|
54
|
+
export declare const de_DeleteChannelCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteChannelCommandOutput>;
|
|
55
|
+
/**
|
|
56
|
+
* deserializeAws_restJson1GetChannelCommand
|
|
57
|
+
*/
|
|
58
|
+
export declare const de_GetChannelCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetChannelCommandOutput>;
|
|
59
|
+
/**
|
|
60
|
+
* deserializeAws_restJson1GetChannelMemberCommand
|
|
61
|
+
*/
|
|
62
|
+
export declare const de_GetChannelMemberCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetChannelMemberCommandOutput>;
|
|
63
|
+
/**
|
|
64
|
+
* deserializeAws_restJson1GetMessageCommand
|
|
65
|
+
*/
|
|
66
|
+
export declare const de_GetMessageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetMessageCommandOutput>;
|
|
67
|
+
/**
|
|
68
|
+
* deserializeAws_restJson1PartialUpdateChannelCommand
|
|
69
|
+
*/
|
|
70
|
+
export declare const de_PartialUpdateChannelCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PartialUpdateChannelCommandOutput>;
|
|
71
|
+
/**
|
|
72
|
+
* deserializeAws_restJson1UpdateChannelCommand
|
|
73
|
+
*/
|
|
74
|
+
export declare const de_UpdateChannelCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateChannelCommandOutput>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
|
|
2
|
+
import { ConversationsClientConfig } from "./ConversationsClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const getRuntimeConfig: (config: ConversationsClientConfig) => {
|
|
7
|
+
runtime: string;
|
|
8
|
+
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
11
|
+
requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
|
|
12
|
+
updateHttpClientConfig(key: never, value: never): void;
|
|
13
|
+
httpHandlerConfigs(): {};
|
|
14
|
+
}) | RequestHandler;
|
|
15
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
17
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
18
|
+
env: "stage" | "stable" | "prod";
|
|
19
|
+
token: import("@wildix/smithy-utils").TokenProvider;
|
|
20
|
+
apiVersion: string;
|
|
21
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
22
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
23
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
24
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
25
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
26
|
+
disableHostPrefix: boolean;
|
|
27
|
+
logger: import("@smithy/types").Logger;
|
|
28
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
29
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
|
|
2
|
+
import { ConversationsClientConfig } from "./ConversationsClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const getRuntimeConfig: (config: ConversationsClientConfig) => {
|
|
7
|
+
runtime: string;
|
|
8
|
+
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
11
|
+
requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
|
|
12
|
+
updateHttpClientConfig(key: never, value: never): void;
|
|
13
|
+
httpHandlerConfigs(): {};
|
|
14
|
+
}) | RequestHandler;
|
|
15
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
17
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
18
|
+
env: "stage" | "stable" | "prod";
|
|
19
|
+
token: import("@wildix/smithy-utils").TokenProvider;
|
|
20
|
+
apiVersion: string;
|
|
21
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
22
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
23
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
24
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
25
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
26
|
+
disableHostPrefix: boolean;
|
|
27
|
+
logger: import("@smithy/types").Logger;
|
|
28
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
29
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ConversationsClientConfig } from "./ConversationsClient";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const getRuntimeConfig: (config: ConversationsClientConfig) => {
|
|
6
|
+
runtime: string;
|
|
7
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
8
|
+
env: "stage" | "stable" | "prod";
|
|
9
|
+
token: import("@wildix/smithy-utils").TokenProvider;
|
|
10
|
+
requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
|
|
11
|
+
updateHttpClientConfig(key: never, value: never): void;
|
|
12
|
+
httpHandlerConfigs(): {};
|
|
13
|
+
}) | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
14
|
+
apiVersion: string;
|
|
15
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
16
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
17
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
18
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
19
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
20
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
21
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
22
|
+
disableHostPrefix: boolean;
|
|
23
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
24
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
25
|
+
logger: import("@smithy/types").Logger;
|
|
26
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
27
|
+
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
28
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ConversationsClientConfig } from "./ConversationsClient";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const getRuntimeConfig: (config: ConversationsClientConfig) => {
|
|
6
|
+
apiVersion: string;
|
|
7
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
8
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
9
|
+
disableHostPrefix: boolean;
|
|
10
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
11
|
+
logger: import("@smithy/types").Logger;
|
|
12
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
13
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
14
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
15
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ConversationsExtensionConfiguration } from "./extensionConfiguration";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface RuntimeExtension {
|
|
6
|
+
configure(extensionConfiguration: ConversationsExtensionConfiguration): void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export interface RuntimeExtensionsConfig {
|
|
12
|
+
extensions: RuntimeExtension[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export declare const resolveRuntimeExtensions: (runtimeConfig: any, extensions: RuntimeExtension[]) => any;
|