@wildix/xbees-conversations-client 1.0.35 → 1.0.37

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.
Files changed (114) hide show
  1. package/dist-cjs/ConversationsClient.js +7 -3
  2. package/dist-cjs/commands/AddChannelMemberCommand.js +12 -32
  3. package/dist-cjs/commands/AddChannelMembersCommand.js +12 -32
  4. package/dist-cjs/commands/CreateGroupChannelCommand.js +12 -32
  5. package/dist-cjs/commands/DeleteChannelCommand.js +12 -32
  6. package/dist-cjs/commands/DeleteChannelMemberCommand.js +12 -32
  7. package/dist-cjs/commands/DeleteMessageCommand.js +12 -32
  8. package/dist-cjs/commands/DeleteMessageReactionCommand.js +12 -32
  9. package/dist-cjs/commands/GetChannelCommand.js +12 -32
  10. package/dist-cjs/commands/GetChannelMemberCommand.js +12 -32
  11. package/dist-cjs/commands/GetDirectChannelIdCommand.js +12 -32
  12. package/dist-cjs/commands/GetMessageCommand.js +12 -32
  13. package/dist-cjs/commands/GetOrCreateDirectChannelCommand.js +12 -32
  14. package/dist-cjs/commands/HideChannelCommand.js +12 -32
  15. package/dist-cjs/commands/InviteCommand.js +12 -32
  16. package/dist-cjs/commands/JoinChannelCommand.js +12 -32
  17. package/dist-cjs/commands/LeaveChannelCommand.js +12 -32
  18. package/dist-cjs/commands/ListChannelMembersCommand.js +12 -32
  19. package/dist-cjs/commands/ListChannelsCommand.js +12 -32
  20. package/dist-cjs/commands/ListMessageReactionsCommand.js +12 -32
  21. package/dist-cjs/commands/ListMessagesCommand.js +12 -32
  22. package/dist-cjs/commands/MarkReadCommand.js +12 -32
  23. package/dist-cjs/commands/PartialUpdateChannelCommand.js +12 -32
  24. package/dist-cjs/commands/PartialUpdateMessageCommand.js +12 -32
  25. package/dist-cjs/commands/ScheduleExternalFlagAdjustmentJobCommand.js +12 -32
  26. package/dist-cjs/commands/SendGiphyCommand.js +12 -32
  27. package/dist-cjs/commands/SendMessageCommand.js +12 -32
  28. package/dist-cjs/commands/SendMessageReactionCommand.js +12 -32
  29. package/dist-cjs/commands/SendTypingStartCommand.js +12 -32
  30. package/dist-cjs/commands/SendTypingStopCommand.js +12 -32
  31. package/dist-cjs/commands/ShowChannelCommand.js +12 -32
  32. package/dist-cjs/commands/UpdateChannelCommand.js +12 -32
  33. package/dist-cjs/commands/UpdateMessageCommand.js +12 -32
  34. package/dist-cjs/protocols/Aws_restJson1.js +346 -1270
  35. package/dist-cjs/runtimeConfig.browser.js +5 -1
  36. package/dist-cjs/runtimeConfig.js +5 -1
  37. package/dist-cjs/runtimeConfig.shared.js +13 -11
  38. package/dist-es/ConversationsClient.js +7 -3
  39. package/dist-es/commands/AddChannelMemberCommand.js +12 -32
  40. package/dist-es/commands/AddChannelMembersCommand.js +12 -32
  41. package/dist-es/commands/CreateGroupChannelCommand.js +12 -32
  42. package/dist-es/commands/DeleteChannelCommand.js +12 -32
  43. package/dist-es/commands/DeleteChannelMemberCommand.js +12 -32
  44. package/dist-es/commands/DeleteMessageCommand.js +12 -32
  45. package/dist-es/commands/DeleteMessageReactionCommand.js +12 -32
  46. package/dist-es/commands/GetChannelCommand.js +12 -32
  47. package/dist-es/commands/GetChannelMemberCommand.js +12 -32
  48. package/dist-es/commands/GetDirectChannelIdCommand.js +12 -32
  49. package/dist-es/commands/GetMessageCommand.js +12 -32
  50. package/dist-es/commands/GetOrCreateDirectChannelCommand.js +12 -32
  51. package/dist-es/commands/HideChannelCommand.js +12 -32
  52. package/dist-es/commands/InviteCommand.js +12 -32
  53. package/dist-es/commands/JoinChannelCommand.js +12 -32
  54. package/dist-es/commands/LeaveChannelCommand.js +12 -32
  55. package/dist-es/commands/ListChannelMembersCommand.js +12 -32
  56. package/dist-es/commands/ListChannelsCommand.js +12 -32
  57. package/dist-es/commands/ListMessageReactionsCommand.js +12 -32
  58. package/dist-es/commands/ListMessagesCommand.js +12 -32
  59. package/dist-es/commands/MarkReadCommand.js +12 -32
  60. package/dist-es/commands/PartialUpdateChannelCommand.js +12 -32
  61. package/dist-es/commands/PartialUpdateMessageCommand.js +12 -32
  62. package/dist-es/commands/ScheduleExternalFlagAdjustmentJobCommand.js +12 -32
  63. package/dist-es/commands/SendGiphyCommand.js +12 -32
  64. package/dist-es/commands/SendMessageCommand.js +12 -32
  65. package/dist-es/commands/SendMessageReactionCommand.js +12 -32
  66. package/dist-es/commands/SendTypingStartCommand.js +12 -32
  67. package/dist-es/commands/SendTypingStopCommand.js +12 -32
  68. package/dist-es/commands/ShowChannelCommand.js +12 -32
  69. package/dist-es/commands/UpdateChannelCommand.js +12 -32
  70. package/dist-es/commands/UpdateMessageCommand.js +12 -32
  71. package/dist-es/protocols/Aws_restJson1.js +347 -1271
  72. package/dist-es/runtimeConfig.browser.js +4 -1
  73. package/dist-es/runtimeConfig.js +4 -1
  74. package/dist-es/runtimeConfig.shared.js +13 -11
  75. package/dist-types/Conversations.d.ts +4 -0
  76. package/dist-types/ConversationsClient.d.ts +13 -7
  77. package/dist-types/commands/AddChannelMemberCommand.d.ts +8 -19
  78. package/dist-types/commands/AddChannelMembersCommand.d.ts +8 -19
  79. package/dist-types/commands/CreateGroupChannelCommand.d.ts +7 -19
  80. package/dist-types/commands/DeleteChannelCommand.d.ts +7 -19
  81. package/dist-types/commands/DeleteChannelMemberCommand.d.ts +8 -19
  82. package/dist-types/commands/DeleteMessageCommand.d.ts +7 -19
  83. package/dist-types/commands/DeleteMessageReactionCommand.d.ts +7 -19
  84. package/dist-types/commands/GetChannelCommand.d.ts +7 -19
  85. package/dist-types/commands/GetChannelMemberCommand.d.ts +7 -19
  86. package/dist-types/commands/GetDirectChannelIdCommand.d.ts +9 -21
  87. package/dist-types/commands/GetMessageCommand.d.ts +7 -19
  88. package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +7 -19
  89. package/dist-types/commands/HideChannelCommand.d.ts +8 -84
  90. package/dist-types/commands/InviteCommand.d.ts +7 -19
  91. package/dist-types/commands/JoinChannelCommand.d.ts +7 -19
  92. package/dist-types/commands/LeaveChannelCommand.d.ts +7 -19
  93. package/dist-types/commands/ListChannelMembersCommand.d.ts +7 -19
  94. package/dist-types/commands/ListChannelsCommand.d.ts +7 -19
  95. package/dist-types/commands/ListMessageReactionsCommand.d.ts +7 -19
  96. package/dist-types/commands/ListMessagesCommand.d.ts +8 -20
  97. package/dist-types/commands/MarkReadCommand.d.ts +7 -19
  98. package/dist-types/commands/PartialUpdateChannelCommand.d.ts +8 -19
  99. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +7 -19
  100. package/dist-types/commands/ScheduleExternalFlagAdjustmentJobCommand.d.ts +8 -20
  101. package/dist-types/commands/SendGiphyCommand.d.ts +7 -19
  102. package/dist-types/commands/SendMessageCommand.d.ts +7 -19
  103. package/dist-types/commands/SendMessageReactionCommand.d.ts +7 -19
  104. package/dist-types/commands/SendTypingStartCommand.d.ts +7 -19
  105. package/dist-types/commands/SendTypingStopCommand.d.ts +7 -19
  106. package/dist-types/commands/ShowChannelCommand.d.ts +8 -84
  107. package/dist-types/commands/UpdateChannelCommand.d.ts +8 -19
  108. package/dist-types/commands/UpdateMessageCommand.d.ts +7 -19
  109. package/dist-types/index.d.ts +2 -0
  110. package/dist-types/models/models_0.d.ts +69 -46
  111. package/dist-types/runtimeConfig.browser.d.ts +3 -4
  112. package/dist-types/runtimeConfig.d.ts +3 -4
  113. package/dist-types/runtimeConfig.native.d.ts +3 -4
  114. package/package.json +30 -28
@@ -67,8 +67,13 @@ export interface UserToInvite {
67
67
  export interface AddChannelMemberInput {
68
68
  channelId: string;
69
69
  /**
70
+ * User ID for server side calls
70
71
  * @public
72
+ */
73
+ userId?: string;
74
+ /**
71
75
  * True to not send a system message that members added from the conversartion. Default - false.
76
+ * @public
72
77
  */
73
78
  silent?: boolean;
74
79
  memberId?: string;
@@ -92,20 +97,20 @@ export type ChannelMemberRole = typeof ChannelMemberRole[keyof typeof ChannelMem
92
97
  export interface ChannelMember {
93
98
  id: string;
94
99
  createdAt: string;
95
- role: ChannelMemberRole | string;
100
+ role: ChannelMemberRole;
96
101
  }
97
102
  /**
98
103
  * @public
99
104
  */
100
105
  export interface AddChannelMemberOutput {
101
106
  /**
102
- * @public
103
107
  * Member added to the channel
108
+ * @public
104
109
  */
105
110
  member: ChannelMember;
106
111
  /**
107
- * @public
108
112
  * Users added to the channel
113
+ * @public
109
114
  */
110
115
  user: User;
111
116
  }
@@ -137,8 +142,13 @@ export declare class MemberAlreadyExistException extends __BaseException {
137
142
  export interface AddChannelMembersInput {
138
143
  channelId: string;
139
144
  /**
145
+ * User ID for server side calls
140
146
  * @public
147
+ */
148
+ userId?: string;
149
+ /**
141
150
  * True to not send a system message that members added from the conversartion. Default - false.
151
+ * @public
142
152
  */
143
153
  silent?: boolean;
144
154
  members?: (string)[];
@@ -149,13 +159,13 @@ export interface AddChannelMembersInput {
149
159
  */
150
160
  export interface AddChannelMembersOutput {
151
161
  /**
152
- * @public
153
162
  * The list of members added to the channel
163
+ * @public
154
164
  */
155
165
  members: (ChannelMember)[];
156
166
  /**
157
- * @public
158
167
  * The list of users added to the channel
168
+ * @public
159
169
  */
160
170
  users: (User)[];
161
171
  }
@@ -191,7 +201,7 @@ export type ChannelContextEventAttendeeStatus = typeof ChannelContextEventAttend
191
201
  export interface ChannelContextEventAttendee {
192
202
  email: string;
193
203
  name?: string;
194
- status: ChannelContextEventAttendeeStatus | string;
204
+ status: ChannelContextEventAttendeeStatus;
195
205
  }
196
206
  /**
197
207
  * @public
@@ -219,7 +229,7 @@ export type ChannelContextSource = typeof ChannelContextSource[keyof typeof Chan
219
229
  * @public
220
230
  */
221
231
  export interface ChannelContext {
222
- source?: ChannelContextSource | string;
232
+ source?: ChannelContextSource;
223
233
  target?: string;
224
234
  events?: (ChannelContextEvent)[];
225
235
  }
@@ -230,16 +240,16 @@ export interface Channel {
230
240
  subject?: string;
231
241
  description?: string;
232
242
  /**
233
- * @public
234
243
  * Picture URL
244
+ * @public
235
245
  */
236
246
  picture?: string;
237
247
  /**
238
- * @public
239
248
  * Picture dominant color represented by a hex value.
249
+ * @public
240
250
  */
241
251
  pictureColor?: string;
242
- access?: ChannelAccess | string;
252
+ access?: ChannelAccess;
243
253
  company?: string;
244
254
  context?: ChannelContext;
245
255
  kite?: boolean;
@@ -258,7 +268,7 @@ export interface Channel {
258
268
  broadcast?: boolean;
259
269
  external?: boolean;
260
270
  channelId: string;
261
- channelType: ChannelType | string;
271
+ channelType: ChannelType;
262
272
  memberCount: number;
263
273
  createdAt: string;
264
274
  createdBy: string;
@@ -282,16 +292,16 @@ export interface CreateGroupChannelInput {
282
292
  subject?: string;
283
293
  description?: string;
284
294
  /**
285
- * @public
286
295
  * Picture URL
296
+ * @public
287
297
  */
288
298
  picture?: string;
289
299
  /**
290
- * @public
291
300
  * Picture dominant color represented by a hex value.
301
+ * @public
292
302
  */
293
303
  pictureColor?: string;
294
- access?: ChannelAccess | string;
304
+ access?: ChannelAccess;
295
305
  broadcast?: boolean;
296
306
  userId?: string;
297
307
  channelId?: string;
@@ -320,10 +330,15 @@ export interface DeleteChannelOutput {
320
330
  */
321
331
  export interface DeleteChannelMemberInput {
322
332
  channelId: string;
323
- memberId: string;
324
333
  /**
334
+ * User ID for server side calls
325
335
  * @public
336
+ */
337
+ userId?: string;
338
+ memberId: string;
339
+ /**
326
340
  * True to not send a system message that member was removed from the conversartion. Default - false.
341
+ * @public
327
342
  */
328
343
  silent?: boolean;
329
344
  }
@@ -350,8 +365,8 @@ export interface DeleteMessageInput {
350
365
  channelId: string;
351
366
  messageId: string;
352
367
  /**
353
- * @public
354
368
  * User ID for server side calls
369
+ * @public
355
370
  */
356
371
  userId?: string;
357
372
  }
@@ -396,18 +411,18 @@ export type ReactionType = typeof ReactionType[keyof typeof ReactionType];
396
411
  export interface DeleteMessageReactionInput {
397
412
  channelId: string;
398
413
  /**
399
- * @public
400
414
  * ID of the message to react to.
415
+ * @public
401
416
  */
402
417
  messageId: string;
403
418
  /**
404
- * @public
405
419
  * Type of the reaction.
420
+ * @public
406
421
  */
407
- reactionType: ReactionType | string;
422
+ reactionType: ReactionType;
408
423
  /**
409
- * @public
410
424
  * User ID for server side calls
425
+ * @public
411
426
  */
412
427
  userId?: string;
413
428
  }
@@ -447,8 +462,8 @@ export interface GetChannelMemberOutput {
447
462
  */
448
463
  export interface GetDirectChannelIdInput {
449
464
  userId?: string;
450
- participantId: string;
451
- participantToInvite: UserToInvite;
465
+ memberId?: string;
466
+ memberToInvite?: UserToInvite;
452
467
  }
453
468
  /**
454
469
  * @public
@@ -469,8 +484,8 @@ export interface GetMessageInput {
469
484
  export interface MessageAttachment {
470
485
  id: string;
471
486
  /**
472
- * @public
473
487
  * This *is* documentation about the field. Describe here what fsId and how to get it.
488
+ * @public
474
489
  */
475
490
  fsId: string;
476
491
  mime?: string;
@@ -556,12 +571,12 @@ export interface Message {
556
571
  attachments?: (MessageAttachment)[];
557
572
  quote?: MessageQuote;
558
573
  forward?: MessageForward;
559
- type: MessageType | string;
574
+ type: MessageType;
560
575
  giphy?: MessageGiphy;
561
576
  silent?: boolean;
562
577
  event?: string;
563
578
  sms?: boolean;
564
- smsStatus?: MessageSmsStatus | string;
579
+ smsStatus?: MessageSmsStatus;
565
580
  messageId: string;
566
581
  channelId: string;
567
582
  user: User;
@@ -603,7 +618,6 @@ export interface HideChannelInput {
603
618
  * @public
604
619
  */
605
620
  export interface HideChannelOutput {
606
- channel: Channel;
607
621
  }
608
622
  /**
609
623
  * @public
@@ -657,13 +671,13 @@ export interface ListChannelMembersInput {
657
671
  */
658
672
  export interface ListChannelMembersOutput {
659
673
  /**
660
- * @public
661
674
  * The list of members matching the query
675
+ * @public
662
676
  */
663
677
  members: (ChannelMember)[];
664
678
  /**
665
- * @public
666
679
  * The list of users matching the query
680
+ * @public
667
681
  */
668
682
  users: (User)[];
669
683
  }
@@ -708,7 +722,7 @@ export interface ListMessagesInput {
708
722
  * @public
709
723
  */
710
724
  export interface ListMessagesOutput {
711
- messages?: (Message)[];
725
+ messages: (Message)[];
712
726
  }
713
727
  /**
714
728
  * @public
@@ -729,16 +743,16 @@ export interface PartialUpdateChannelSetOptions {
729
743
  subject?: string;
730
744
  description?: string;
731
745
  /**
732
- * @public
733
746
  * Picture URL
747
+ * @public
734
748
  */
735
749
  picture?: string;
736
750
  /**
737
- * @public
738
751
  * Picture dominant color represented by a hex value.
752
+ * @public
739
753
  */
740
754
  pictureColor?: string;
741
- access?: ChannelAccess | string;
755
+ access?: ChannelAccess;
742
756
  broadcast?: boolean;
743
757
  }
744
758
  /**
@@ -763,8 +777,13 @@ export type GroupChannelUnsetOptions = typeof GroupChannelUnsetOptions[keyof typ
763
777
  export interface PartialUpdateChannelInput {
764
778
  channelId: string;
765
779
  userId?: string;
780
+ /**
781
+ * True to not send a system message about updates. Default - false.
782
+ * @public
783
+ */
784
+ silent?: boolean;
766
785
  set?: PartialUpdateChannelSetOptions;
767
- unset?: (GroupChannelUnsetOptions | string)[];
786
+ unset?: (GroupChannelUnsetOptions)[];
768
787
  }
769
788
  /**
770
789
  * @public
@@ -802,7 +821,7 @@ export interface PartialUpdateMessageInput {
802
821
  channelId: string;
803
822
  messageId: string;
804
823
  set?: PartialUpdateMessageSetInput;
805
- unset?: (MessageUnsetFields | string)[];
824
+ unset?: (MessageUnsetFields)[];
806
825
  }
807
826
  /**
808
827
  * @public
@@ -826,8 +845,8 @@ export declare class ConversationsServiceException extends __BaseException {
826
845
  */
827
846
  export interface ScheduleExternalFlagAdjustmentJobInput {
828
847
  /**
829
- * @public
830
848
  * User ID at x-bees.
849
+ * @public
831
850
  */
832
851
  userId: string;
833
852
  }
@@ -842,13 +861,13 @@ export interface ScheduleExternalFlagAdjustmentJobOutput {
842
861
  export interface SendGiphyInput {
843
862
  channelId: string;
844
863
  /**
845
- * @public
846
864
  * User ID for server side calls
865
+ * @public
847
866
  */
848
867
  userId?: string;
849
868
  /**
850
- * @public
851
869
  * Message ID if empty ID will be auto-generated.
870
+ * @public
852
871
  */
853
872
  messageId?: string;
854
873
  giphy: MessageGiphy;
@@ -869,13 +888,13 @@ export interface SendMessageInput {
869
888
  forward?: MessageForward;
870
889
  channelId: string;
871
890
  /**
872
- * @public
873
891
  * User ID for server side calls
892
+ * @public
874
893
  */
875
894
  userId?: string;
876
895
  /**
877
- * @public
878
896
  * Message ID if empty ID will be auto-generated.
897
+ * @public
879
898
  */
880
899
  messageId?: string;
881
900
  mentions?: (string)[];
@@ -893,13 +912,13 @@ export interface SendMessageReactionInput {
893
912
  channelId: string;
894
913
  messageId: string;
895
914
  /**
896
- * @public
897
915
  * Type of the reaction. User could have only 1 reaction of each type per message.
916
+ * @public
898
917
  */
899
- reactionType: ReactionType | string;
918
+ reactionType: ReactionType;
900
919
  /**
901
- * @public
902
920
  * User ID for server side calls
921
+ * @public
903
922
  */
904
923
  userId?: string;
905
924
  }
@@ -943,7 +962,6 @@ export interface ShowChannelInput {
943
962
  * @public
944
963
  */
945
964
  export interface ShowChannelOutput {
946
- channel: Channel;
947
965
  }
948
966
  /**
949
967
  * @public
@@ -952,19 +970,24 @@ export interface UpdateChannelInput {
952
970
  subject?: string;
953
971
  description?: string;
954
972
  /**
955
- * @public
956
973
  * Picture URL
974
+ * @public
957
975
  */
958
976
  picture?: string;
959
977
  /**
960
- * @public
961
978
  * Picture dominant color represented by a hex value.
979
+ * @public
962
980
  */
963
981
  pictureColor?: string;
964
- access?: ChannelAccess | string;
982
+ access?: ChannelAccess;
965
983
  broadcast?: boolean;
966
984
  channelId: string;
967
985
  userId?: string;
986
+ /**
987
+ * True to not send a system message about updates. Default - false.
988
+ * @public
989
+ */
990
+ silent?: boolean;
968
991
  }
969
992
  /**
970
993
  * @public
@@ -7,11 +7,9 @@ export declare const getRuntimeConfig: (config: ConversationsClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
+ defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
10
11
  maxAttempts: number | import("@smithy/types").Provider<number>;
11
- requestHandler: ((import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> | Record<string, unknown> | import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/fetch-http-handler").FetchHttpHandlerOptions) & 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;
12
+ requestHandler: import("@smithy/protocol-http").HttpHandler<any> | RequestHandler;
15
13
  retryMode: string | import("@smithy/types").Provider<string>;
16
14
  sha256: import("@smithy/types").HashConstructor;
17
15
  streamCollector: import("@smithy/types").StreamCollector;
@@ -26,4 +24,5 @@ export declare const getRuntimeConfig: (config: ConversationsClientConfig) => {
26
24
  disableHostPrefix: boolean;
27
25
  logger: import("@smithy/types").Logger;
28
26
  extensions: import("./runtimeExtensions").RuntimeExtension[];
27
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
29
28
  };
@@ -7,11 +7,9 @@ export declare const getRuntimeConfig: (config: ConversationsClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
+ defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
10
11
  maxAttempts: number | import("@smithy/types").Provider<number>;
11
- requestHandler: ((import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> | Record<string, unknown> | import("@smithy/node-http-handler").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions) & 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;
12
+ requestHandler: RequestHandler | import("@smithy/protocol-http").HttpHandler<any>;
15
13
  retryMode: string | import("@smithy/types").Provider<string>;
16
14
  sha256: import("@smithy/types").HashConstructor;
17
15
  streamCollector: import("@smithy/types").StreamCollector;
@@ -26,4 +24,5 @@ export declare const getRuntimeConfig: (config: ConversationsClientConfig) => {
26
24
  disableHostPrefix: boolean;
27
25
  logger: import("@smithy/types").Logger;
28
26
  extensions: import("./runtimeExtensions").RuntimeExtension[];
27
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
29
28
  };
@@ -7,10 +7,7 @@ export declare const getRuntimeConfig: (config: ConversationsClientConfig) => {
7
7
  sha256: import("@smithy/types").HashConstructor;
8
8
  env: "stage" | "stable" | "prod";
9
9
  token: import("@wildix/smithy-utils").TokenProvider;
10
- requestHandler: ((import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> | Record<string, unknown> | import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions) & 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;
10
+ requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
14
11
  apiVersion: string;
15
12
  urlParser: import("@smithy/types").UrlParser;
16
13
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
@@ -20,9 +17,11 @@ export declare const getRuntimeConfig: (config: ConversationsClientConfig) => {
20
17
  utf8Decoder: import("@smithy/types").Decoder;
21
18
  utf8Encoder: (input: string | Uint8Array) => string;
22
19
  disableHostPrefix: boolean;
20
+ defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
23
21
  maxAttempts: number | import("@smithy/types").Provider<number>;
24
22
  retryMode: string | import("@smithy/types").Provider<string>;
25
23
  logger: import("@smithy/types").Logger;
26
24
  extensions: import("./runtimeExtensions").RuntimeExtension[];
27
25
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
26
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
28
27
  };
package/package.json CHANGED
@@ -1,15 +1,14 @@
1
1
  {
2
2
  "name": "@wildix/xbees-conversations-client",
3
3
  "description": "@wildix/xbees-conversations-client client",
4
- "version": "1.0.35",
4
+ "version": "1.0.37",
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",
8
- "build:docs": "typedoc",
9
8
  "build:es": "tsc -p tsconfig.es.json",
10
9
  "build:types": "tsc -p tsconfig.types.json",
11
10
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
11
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
13
12
  "prepack": "yarn run clean && yarn run build"
14
13
  },
15
14
  "main": "./dist-cjs/index.js",
@@ -17,41 +16,44 @@
17
16
  "module": "./dist-es/index.js",
18
17
  "sideEffects": false,
19
18
  "dependencies": {
20
- "tslib": "^2.5.0",
19
+ "tslib": "^2.6.2",
21
20
  "@aws-crypto/sha256-browser": "3.0.0",
22
21
  "@aws-crypto/sha256-js": "3.0.0",
22
+ "@aws-sdk/middleware-user-agent": "3.428.0",
23
23
  "@aws-sdk/types": "latest",
24
- "@smithy/config-resolver": "^2.0.11",
25
- "@smithy/fetch-http-handler": "^2.2.1",
26
- "@smithy/hash-node": "^2.0.10",
27
- "@smithy/invalid-dependency": "^2.0.10",
28
- "@smithy/middleware-content-length": "^2.0.12",
29
- "@smithy/middleware-retry": "^2.0.13",
30
- "@smithy/middleware-serde": "^2.0.10",
31
- "@smithy/middleware-stack": "^2.0.4",
32
- "@smithy/node-config-provider": "^2.0.13",
33
- "@smithy/node-http-handler": "^2.1.6",
34
- "@smithy/protocol-http": "^3.0.6",
35
- "@smithy/smithy-client": "^2.1.9",
36
- "@smithy/types": "^2.3.4",
37
- "@smithy/url-parser": "^2.0.10",
38
- "@smithy/util-base64": "^2.0.0",
39
- "@smithy/util-body-length-browser": "^2.0.0",
40
- "@smithy/util-body-length-node": "^2.1.0",
41
- "@smithy/util-defaults-mode-browser": "^2.0.13",
42
- "@smithy/util-defaults-mode-node": "^2.0.15",
43
- "@smithy/util-retry": "^2.0.3",
44
- "@smithy/util-utf8": "^2.0.0",
45
- "@wildix/smithy-utils": "^1.0.1"
24
+ "@aws-sdk/util-user-agent-browser": "3.428.0",
25
+ "@aws-sdk/util-user-agent-node": "3.428.0",
26
+ "@smithy/config-resolver": "^2.2.0",
27
+ "@smithy/core": "^1.4.0",
28
+ "@smithy/fetch-http-handler": "^2.5.0",
29
+ "@smithy/hash-node": "^2.2.0",
30
+ "@smithy/invalid-dependency": "^2.2.0",
31
+ "@smithy/middleware-content-length": "^2.2.0",
32
+ "@smithy/middleware-retry": "^2.2.0",
33
+ "@smithy/middleware-serde": "^2.3.0",
34
+ "@smithy/middleware-stack": "^2.2.0",
35
+ "@smithy/node-config-provider": "^2.3.0",
36
+ "@smithy/node-http-handler": "^2.5.0",
37
+ "@smithy/protocol-http": "^3.3.0",
38
+ "@smithy/smithy-client": "^2.5.0",
39
+ "@smithy/types": "^2.12.0",
40
+ "@smithy/url-parser": "^2.2.0",
41
+ "@smithy/util-base64": "^2.3.0",
42
+ "@smithy/util-body-length-browser": "^2.2.0",
43
+ "@smithy/util-body-length-node": "^2.3.0",
44
+ "@smithy/util-defaults-mode-browser": "^2.2.0",
45
+ "@smithy/util-defaults-mode-node": "^2.3.0",
46
+ "@smithy/util-retry": "^2.2.0",
47
+ "@smithy/util-utf8": "^2.3.0",
48
+ "@wildix/smithy-utils": "^1.0.2"
46
49
  },
47
50
  "devDependencies": {
48
51
  "@tsconfig/node14": "1.0.3",
49
52
  "concurrently": "7.0.0",
50
53
  "downlevel-dts": "0.10.1",
51
54
  "rimraf": "^3.0.0",
52
- "typedoc": "0.23.23",
53
55
  "typescript": "~4.9.5",
54
- "@smithy/service-client-documentation-generator": "^2.0.0",
56
+ "@smithy/service-client-documentation-generator": "^2.2.0",
55
57
  "@types/node": "^14.14.31"
56
58
  },
57
59
  "engines": {