@wildix/xbees-conversations-client 1.0.37 → 1.0.39

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.
@@ -3,24 +3,24 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-cli
3
3
  /**
4
4
  * @public
5
5
  */
6
- export declare class ForbiddenException extends __BaseException {
7
- readonly name: "ForbiddenException";
6
+ export declare class ValidationException extends __BaseException {
7
+ readonly name: "ValidationException";
8
8
  readonly $fault: "client";
9
9
  /**
10
10
  * @internal
11
11
  */
12
- constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
12
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
13
13
  }
14
14
  /**
15
15
  * @public
16
16
  */
17
- export declare class ValidationException extends __BaseException {
18
- readonly name: "ValidationException";
17
+ export declare class ForbiddenException extends __BaseException {
18
+ readonly name: "ForbiddenException";
19
19
  readonly $fault: "client";
20
20
  /**
21
21
  * @internal
22
22
  */
23
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
23
+ constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
24
24
  }
25
25
  /**
26
26
  * @public
@@ -285,6 +285,18 @@ export declare class ChannelAlreadyExistException extends __BaseException {
285
285
  */
286
286
  constructor(opts: __ExceptionOptionType<ChannelAlreadyExistException, __BaseException>);
287
287
  }
288
+ /**
289
+ * @public
290
+ * @enum
291
+ */
292
+ export declare const ConversationFileCategory: {
293
+ readonly GENERAL: "channels";
294
+ readonly RECORDING: "recordings";
295
+ };
296
+ /**
297
+ * @public
298
+ */
299
+ export type ConversationFileCategory = typeof ConversationFileCategory[keyof typeof ConversationFileCategory];
288
300
  /**
289
301
  * @public
290
302
  */
@@ -471,6 +483,48 @@ export interface GetDirectChannelIdInput {
471
483
  export interface GetDirectChannelIdOutput {
472
484
  channelId: string;
473
485
  }
486
+ /**
487
+ * @public
488
+ */
489
+ export declare class FileNotFoundException extends __BaseException {
490
+ readonly name: "FileNotFoundException";
491
+ readonly $fault: "client";
492
+ /**
493
+ * @internal
494
+ */
495
+ constructor(opts: __ExceptionOptionType<FileNotFoundException, __BaseException>);
496
+ }
497
+ /**
498
+ * @public
499
+ */
500
+ export interface GetFilePresignedDownloadUrlInput {
501
+ /**
502
+ * Channel Id.
503
+ * @public
504
+ */
505
+ channelId: string;
506
+ /**
507
+ * Message Id.
508
+ * @public
509
+ */
510
+ messageId: string;
511
+ fileId: string;
512
+ /**
513
+ * File category. Channel files or conference recordings. Default: channels.
514
+ * @public
515
+ */
516
+ category?: ConversationFileCategory;
517
+ }
518
+ /**
519
+ * @public
520
+ */
521
+ export interface GetFilePresignedDownloadUrlOutput {
522
+ /**
523
+ * Presigned URL for download file.
524
+ * @public
525
+ */
526
+ presignedDownloadUrl: string;
527
+ }
474
528
  /**
475
529
  * @public
476
530
  */
@@ -607,6 +661,32 @@ export interface GetOrCreateDirectChannelInput {
607
661
  export interface GetOrCreateDirectChannelOutput {
608
662
  channel: Channel;
609
663
  }
664
+ /**
665
+ * @public
666
+ */
667
+ export interface GetUploadedFileInfoInput {
668
+ /**
669
+ * Channel Id.
670
+ * @public
671
+ */
672
+ channelId: string;
673
+ /**
674
+ * File Id. Support cds file's ID.
675
+ * @public
676
+ */
677
+ fileId: string;
678
+ /**
679
+ * File category. Channel files or conference recordings. Default: channels.
680
+ * @public
681
+ */
682
+ category?: ConversationFileCategory;
683
+ }
684
+ /**
685
+ * @public
686
+ */
687
+ export interface GetUploadedFileInfoOutput {
688
+ file?: MessageAttachment;
689
+ }
610
690
  /**
611
691
  * @public
612
692
  */
@@ -1013,3 +1093,58 @@ export interface UpdateMessageInput {
1013
1093
  export interface UpdateMessageOutput {
1014
1094
  message?: Message;
1015
1095
  }
1096
+ /**
1097
+ * @public
1098
+ */
1099
+ export interface UploadFileOptions {
1100
+ /**
1101
+ * User Id. It is only for s2s, in other cases it will be ignored.
1102
+ * @public
1103
+ */
1104
+ userId?: string;
1105
+ /**
1106
+ * File category. Channel files or conference recordings. Default: channels.
1107
+ * @public
1108
+ */
1109
+ category?: ConversationFileCategory;
1110
+ /**
1111
+ * The region in which you need to upload the file. It is only for s2s, in other cases it will be ignored.
1112
+ * @public
1113
+ */
1114
+ region?: string;
1115
+ }
1116
+ /**
1117
+ * @public
1118
+ */
1119
+ export interface UploadFileInput {
1120
+ /**
1121
+ * Channel Id.
1122
+ * @public
1123
+ */
1124
+ channelId: string;
1125
+ /**
1126
+ * File name, unreadable characters will be replaced with underscores.
1127
+ * @public
1128
+ */
1129
+ name: string;
1130
+ /**
1131
+ * Additional options.
1132
+ * @public
1133
+ */
1134
+ options?: UploadFileOptions;
1135
+ }
1136
+ /**
1137
+ * @public
1138
+ */
1139
+ export interface UploadFileOutput {
1140
+ /**
1141
+ * File Id. Format ownerId_uuid.
1142
+ * @public
1143
+ */
1144
+ fileId: string;
1145
+ /**
1146
+ * Presigned URL for upload file.
1147
+ * @public
1148
+ */
1149
+ presignedUploadUrl: string;
1150
+ }
@@ -8,8 +8,10 @@ import { DeleteMessageReactionCommandInput, DeleteMessageReactionCommandOutput }
8
8
  import { GetChannelCommandInput, GetChannelCommandOutput } from "../commands/GetChannelCommand";
9
9
  import { GetChannelMemberCommandInput, GetChannelMemberCommandOutput } from "../commands/GetChannelMemberCommand";
10
10
  import { GetDirectChannelIdCommandInput, GetDirectChannelIdCommandOutput } from "../commands/GetDirectChannelIdCommand";
11
+ import { GetFilePresignedDownloadUrlCommandInput, GetFilePresignedDownloadUrlCommandOutput } from "../commands/GetFilePresignedDownloadUrlCommand";
11
12
  import { GetMessageCommandInput, GetMessageCommandOutput } from "../commands/GetMessageCommand";
12
13
  import { GetOrCreateDirectChannelCommandInput, GetOrCreateDirectChannelCommandOutput } from "../commands/GetOrCreateDirectChannelCommand";
14
+ import { GetUploadedFileInfoCommandInput, GetUploadedFileInfoCommandOutput } from "../commands/GetUploadedFileInfoCommand";
13
15
  import { HideChannelCommandInput, HideChannelCommandOutput } from "../commands/HideChannelCommand";
14
16
  import { InviteCommandInput, InviteCommandOutput } from "../commands/InviteCommand";
15
17
  import { JoinChannelCommandInput, JoinChannelCommandOutput } from "../commands/JoinChannelCommand";
@@ -30,6 +32,7 @@ import { SendTypingStopCommandInput, SendTypingStopCommandOutput } from "../comm
30
32
  import { ShowChannelCommandInput, ShowChannelCommandOutput } from "../commands/ShowChannelCommand";
31
33
  import { UpdateChannelCommandInput, UpdateChannelCommandOutput } from "../commands/UpdateChannelCommand";
32
34
  import { UpdateMessageCommandInput, UpdateMessageCommandOutput } from "../commands/UpdateMessageCommand";
35
+ import { UploadFileCommandInput, UploadFileCommandOutput } from "../commands/UploadFileCommand";
33
36
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
34
37
  import { SerdeContext as __SerdeContext } from "@smithy/types";
35
38
  /**
@@ -72,6 +75,10 @@ export declare const se_GetChannelMemberCommand: (input: GetChannelMemberCommand
72
75
  * serializeAws_restJson1GetDirectChannelIdCommand
73
76
  */
74
77
  export declare const se_GetDirectChannelIdCommand: (input: GetDirectChannelIdCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
78
+ /**
79
+ * serializeAws_restJson1GetFilePresignedDownloadUrlCommand
80
+ */
81
+ export declare const se_GetFilePresignedDownloadUrlCommand: (input: GetFilePresignedDownloadUrlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
75
82
  /**
76
83
  * serializeAws_restJson1GetMessageCommand
77
84
  */
@@ -80,6 +87,10 @@ export declare const se_GetMessageCommand: (input: GetMessageCommandInput, conte
80
87
  * serializeAws_restJson1GetOrCreateDirectChannelCommand
81
88
  */
82
89
  export declare const se_GetOrCreateDirectChannelCommand: (input: GetOrCreateDirectChannelCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
90
+ /**
91
+ * serializeAws_restJson1GetUploadedFileInfoCommand
92
+ */
93
+ export declare const se_GetUploadedFileInfoCommand: (input: GetUploadedFileInfoCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
83
94
  /**
84
95
  * serializeAws_restJson1HideChannelCommand
85
96
  */
@@ -160,6 +171,10 @@ export declare const se_UpdateChannelCommand: (input: UpdateChannelCommandInput,
160
171
  * serializeAws_restJson1UpdateMessageCommand
161
172
  */
162
173
  export declare const se_UpdateMessageCommand: (input: UpdateMessageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
174
+ /**
175
+ * serializeAws_restJson1UploadFileCommand
176
+ */
177
+ export declare const se_UploadFileCommand: (input: UploadFileCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
163
178
  /**
164
179
  * deserializeAws_restJson1AddChannelMemberCommand
165
180
  */
@@ -200,6 +215,10 @@ export declare const de_GetChannelMemberCommand: (output: __HttpResponse, contex
200
215
  * deserializeAws_restJson1GetDirectChannelIdCommand
201
216
  */
202
217
  export declare const de_GetDirectChannelIdCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDirectChannelIdCommandOutput>;
218
+ /**
219
+ * deserializeAws_restJson1GetFilePresignedDownloadUrlCommand
220
+ */
221
+ export declare const de_GetFilePresignedDownloadUrlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetFilePresignedDownloadUrlCommandOutput>;
203
222
  /**
204
223
  * deserializeAws_restJson1GetMessageCommand
205
224
  */
@@ -208,6 +227,10 @@ export declare const de_GetMessageCommand: (output: __HttpResponse, context: __S
208
227
  * deserializeAws_restJson1GetOrCreateDirectChannelCommand
209
228
  */
210
229
  export declare const de_GetOrCreateDirectChannelCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetOrCreateDirectChannelCommandOutput>;
230
+ /**
231
+ * deserializeAws_restJson1GetUploadedFileInfoCommand
232
+ */
233
+ export declare const de_GetUploadedFileInfoCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetUploadedFileInfoCommandOutput>;
211
234
  /**
212
235
  * deserializeAws_restJson1HideChannelCommand
213
236
  */
@@ -288,3 +311,7 @@ export declare const de_UpdateChannelCommand: (output: __HttpResponse, context:
288
311
  * deserializeAws_restJson1UpdateMessageCommand
289
312
  */
290
313
  export declare const de_UpdateMessageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateMessageCommandOutput>;
314
+ /**
315
+ * deserializeAws_restJson1UploadFileCommand
316
+ */
317
+ export declare const de_UploadFileCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UploadFileCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/xbees-conversations-client",
3
3
  "description": "@wildix/xbees-conversations-client client",
4
- "version": "1.0.37",
4
+ "version": "1.0.39",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",