@wildix/xbees-conversations-client 1.5.0 → 3.1.1
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 +3 -3
- package/dist-cjs/ConversationsClient.js +34 -26
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +183 -0
- package/dist-cjs/commands/AddChannelMemberCommand.js +10 -11
- package/dist-cjs/commands/AddChannelMembersCommand.js +10 -11
- package/dist-cjs/commands/AssignChannelCommand.js +10 -11
- package/dist-cjs/commands/CreateGroupChannelCommand.js +10 -11
- package/dist-cjs/commands/CreateInboxTagCommand.js +10 -11
- package/dist-cjs/commands/CreateKiteChannelCommand.js +10 -11
- package/dist-cjs/commands/DeleteChannelCommand.js +10 -11
- package/dist-cjs/commands/DeleteChannelMemberCommand.js +10 -11
- package/dist-cjs/commands/DeleteInboxTagCommand.js +10 -11
- package/dist-cjs/commands/DeleteMessageCommand.js +10 -11
- package/dist-cjs/commands/DeleteMessageReactionCommand.js +10 -11
- package/dist-cjs/commands/DescribeEventCommand.js +10 -11
- package/dist-cjs/commands/GetActionTriggerResultCommand.js +10 -11
- package/dist-cjs/commands/GetChannelCommand.js +10 -11
- package/dist-cjs/commands/GetChannelMemberCommand.js +10 -11
- package/dist-cjs/commands/GetDirectChannelIdCommand.js +10 -11
- package/dist-cjs/commands/GetFilePresignedDownloadUrlCommand.js +10 -11
- package/dist-cjs/commands/GetInboxStateCommand.js +10 -11
- package/dist-cjs/commands/GetMessageCommand.js +10 -11
- package/dist-cjs/commands/GetOrCreateDirectChannelCommand.js +10 -11
- package/dist-cjs/commands/GetOrCreateSmsChannelCommand.js +10 -11
- package/dist-cjs/commands/GetOrCreateTelephonyChannelCommand.js +10 -11
- package/dist-cjs/commands/GetOrCreateWhatsAppChannelCommand.js +10 -11
- package/dist-cjs/commands/GetSmsChannelIdCommand.js +10 -11
- package/dist-cjs/commands/GetTelephonyChannelIdCommand.js +10 -11
- package/dist-cjs/commands/GetTokenCommand.js +10 -11
- package/dist-cjs/commands/GetUploadedFileInfoCommand.js +10 -11
- package/dist-cjs/commands/GetWhatsAppChannelIdCommand.js +10 -11
- package/dist-cjs/commands/HideChannelCommand.js +10 -11
- package/dist-cjs/commands/InviteCommand.js +10 -11
- package/dist-cjs/commands/JoinChannelCommand.js +10 -11
- package/dist-cjs/commands/LeaveChannelCommand.js +10 -11
- package/dist-cjs/commands/ListChannelMembersCommand.js +10 -11
- package/dist-cjs/commands/ListChannelMembersReadStatusCommand.js +10 -11
- package/dist-cjs/commands/ListChannelsCommand.js +10 -11
- package/dist-cjs/commands/ListInboxTaggedChannelsCommand.js +10 -11
- package/dist-cjs/commands/ListInboxTagsCommand.js +10 -11
- package/dist-cjs/commands/ListMessageReactionsCommand.js +10 -11
- package/dist-cjs/commands/ListMessagesCommand.js +10 -11
- package/dist-cjs/commands/ListPinnedMessagesCommand.js +10 -11
- package/dist-cjs/commands/MarkReadCommand.js +10 -11
- package/dist-cjs/commands/MarkUnreadCommand.js +10 -11
- package/dist-cjs/commands/PartialUpdateChannelCommand.js +10 -11
- package/dist-cjs/commands/PartialUpdateMessageCommand.js +10 -11
- package/dist-cjs/commands/PinChannelCommand.js +10 -11
- package/dist-cjs/commands/PinMessageCommand.js +10 -11
- package/dist-cjs/commands/QueryChannelsCommand.js +10 -11
- package/dist-cjs/commands/ScheduleExternalFlagAdjustmentJobCommand.js +10 -11
- package/dist-cjs/commands/SendActionTriggerResultCommand.js +10 -11
- package/dist-cjs/commands/SendGiphyCommand.js +10 -11
- package/dist-cjs/commands/SendMessageCommand.js +10 -11
- package/dist-cjs/commands/SendMessageReactionCommand.js +10 -11
- package/dist-cjs/commands/SendSystemMessageCommand.js +10 -11
- package/dist-cjs/commands/SendTypingStartCommand.js +10 -11
- package/dist-cjs/commands/SendTypingStopCommand.js +10 -11
- package/dist-cjs/commands/ShowChannelCommand.js +10 -11
- package/dist-cjs/commands/TagChannelCommand.js +10 -11
- package/dist-cjs/commands/TriggerMessageActionCommand.js +10 -11
- package/dist-cjs/commands/UnpinChannelCommand.js +10 -11
- package/dist-cjs/commands/UnpinMessageCommand.js +10 -11
- package/dist-cjs/commands/UntagChannelCommand.js +10 -11
- package/dist-cjs/commands/UpdateChannelCommand.js +10 -11
- package/dist-cjs/commands/UpdateInboxTagCommand.js +10 -11
- package/dist-cjs/commands/UpdateMessageCommand.js +10 -11
- package/dist-cjs/commands/UploadFileCommand.js +10 -11
- package/dist-cjs/endpoint/EndpointParameters.js +16 -0
- package/dist-cjs/endpoint/bdd.js +28 -0
- package/dist-cjs/endpoint/endpointResolver.js +16 -0
- package/dist-cjs/index.js +7 -4
- package/dist-cjs/models/ConversationsSyntheticServiceException.js +12 -0
- package/dist-cjs/models/enums.js +124 -0
- package/dist-cjs/models/errors.js +274 -0
- package/dist-cjs/models/models_0.js +0 -451
- package/dist-cjs/runtimeConfig.browser.js +11 -11
- package/dist-cjs/runtimeConfig.js +22 -18
- package/dist-cjs/runtimeConfig.shared.js +30 -10
- package/dist-cjs/runtimeExtensions.js +6 -5
- package/dist-cjs/schemas/schemas_0.js +1854 -0
- package/dist-es/Conversations.js +6 -6
- package/dist-es/ConversationsClient.js +30 -22
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +177 -0
- package/dist-es/commands/AddChannelMemberCommand.js +9 -10
- package/dist-es/commands/AddChannelMembersCommand.js +9 -10
- package/dist-es/commands/AssignChannelCommand.js +9 -10
- package/dist-es/commands/CreateGroupChannelCommand.js +9 -10
- package/dist-es/commands/CreateInboxTagCommand.js +9 -10
- package/dist-es/commands/CreateKiteChannelCommand.js +9 -10
- package/dist-es/commands/DeleteChannelCommand.js +9 -10
- package/dist-es/commands/DeleteChannelMemberCommand.js +9 -10
- package/dist-es/commands/DeleteInboxTagCommand.js +9 -10
- package/dist-es/commands/DeleteMessageCommand.js +9 -10
- package/dist-es/commands/DeleteMessageReactionCommand.js +9 -10
- package/dist-es/commands/DescribeEventCommand.js +9 -10
- package/dist-es/commands/GetActionTriggerResultCommand.js +9 -10
- package/dist-es/commands/GetChannelCommand.js +9 -10
- package/dist-es/commands/GetChannelMemberCommand.js +9 -10
- package/dist-es/commands/GetDirectChannelIdCommand.js +9 -10
- package/dist-es/commands/GetFilePresignedDownloadUrlCommand.js +9 -10
- package/dist-es/commands/GetInboxStateCommand.js +9 -10
- package/dist-es/commands/GetMessageCommand.js +9 -10
- package/dist-es/commands/GetOrCreateDirectChannelCommand.js +9 -10
- package/dist-es/commands/GetOrCreateSmsChannelCommand.js +9 -10
- package/dist-es/commands/GetOrCreateTelephonyChannelCommand.js +9 -10
- package/dist-es/commands/GetOrCreateWhatsAppChannelCommand.js +9 -10
- package/dist-es/commands/GetSmsChannelIdCommand.js +9 -10
- package/dist-es/commands/GetTelephonyChannelIdCommand.js +9 -10
- package/dist-es/commands/GetTokenCommand.js +9 -10
- package/dist-es/commands/GetUploadedFileInfoCommand.js +9 -10
- package/dist-es/commands/GetWhatsAppChannelIdCommand.js +9 -10
- package/dist-es/commands/HideChannelCommand.js +9 -10
- package/dist-es/commands/InviteCommand.js +9 -10
- package/dist-es/commands/JoinChannelCommand.js +9 -10
- package/dist-es/commands/LeaveChannelCommand.js +9 -10
- package/dist-es/commands/ListChannelMembersCommand.js +9 -10
- package/dist-es/commands/ListChannelMembersReadStatusCommand.js +9 -10
- package/dist-es/commands/ListChannelsCommand.js +9 -10
- package/dist-es/commands/ListInboxTaggedChannelsCommand.js +9 -10
- package/dist-es/commands/ListInboxTagsCommand.js +9 -10
- package/dist-es/commands/ListMessageReactionsCommand.js +9 -10
- package/dist-es/commands/ListMessagesCommand.js +9 -10
- package/dist-es/commands/ListPinnedMessagesCommand.js +9 -10
- package/dist-es/commands/MarkReadCommand.js +9 -10
- package/dist-es/commands/MarkUnreadCommand.js +9 -10
- package/dist-es/commands/PartialUpdateChannelCommand.js +9 -10
- package/dist-es/commands/PartialUpdateMessageCommand.js +9 -10
- package/dist-es/commands/PinChannelCommand.js +9 -10
- package/dist-es/commands/PinMessageCommand.js +9 -10
- package/dist-es/commands/QueryChannelsCommand.js +9 -10
- package/dist-es/commands/ScheduleExternalFlagAdjustmentJobCommand.js +9 -10
- package/dist-es/commands/SendActionTriggerResultCommand.js +9 -10
- package/dist-es/commands/SendGiphyCommand.js +9 -10
- package/dist-es/commands/SendMessageCommand.js +9 -10
- package/dist-es/commands/SendMessageReactionCommand.js +9 -10
- package/dist-es/commands/SendSystemMessageCommand.js +9 -10
- package/dist-es/commands/SendTypingStartCommand.js +9 -10
- package/dist-es/commands/SendTypingStopCommand.js +9 -10
- package/dist-es/commands/ShowChannelCommand.js +9 -10
- package/dist-es/commands/TagChannelCommand.js +9 -10
- package/dist-es/commands/TriggerMessageActionCommand.js +9 -10
- package/dist-es/commands/UnpinChannelCommand.js +9 -10
- package/dist-es/commands/UnpinMessageCommand.js +9 -10
- package/dist-es/commands/UntagChannelCommand.js +9 -10
- package/dist-es/commands/UpdateChannelCommand.js +9 -10
- package/dist-es/commands/UpdateInboxTagCommand.js +9 -10
- package/dist-es/commands/UpdateMessageCommand.js +9 -10
- package/dist-es/commands/UploadFileCommand.js +9 -10
- package/dist-es/endpoint/EndpointParameters.js +12 -0
- package/dist-es/endpoint/bdd.js +25 -0
- package/dist-es/endpoint/endpointResolver.js +12 -0
- package/dist-es/index.js +5 -2
- package/dist-es/models/ConversationsSyntheticServiceException.js +8 -0
- package/dist-es/models/enums.js +121 -0
- package/dist-es/models/errors.js +251 -0
- package/dist-es/models/models_0.js +1 -430
- package/dist-es/runtimeConfig.browser.js +7 -7
- package/dist-es/runtimeConfig.js +17 -13
- package/dist-es/runtimeConfig.shared.js +24 -4
- package/dist-es/runtimeExtensions.js +6 -5
- package/dist-es/schemas/schemas_0.js +1846 -0
- package/dist-types/Conversations.d.ts +66 -66
- package/dist-types/ConversationsClient.d.ts +95 -77
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
- package/dist-types/commands/AddChannelMemberCommand.d.ts +12 -8
- package/dist-types/commands/AddChannelMembersCommand.d.ts +12 -8
- package/dist-types/commands/AssignChannelCommand.d.ts +12 -8
- package/dist-types/commands/CreateGroupChannelCommand.d.ts +12 -8
- package/dist-types/commands/CreateInboxTagCommand.d.ts +12 -8
- package/dist-types/commands/CreateKiteChannelCommand.d.ts +12 -8
- package/dist-types/commands/DeleteChannelCommand.d.ts +12 -8
- package/dist-types/commands/DeleteChannelMemberCommand.d.ts +12 -8
- package/dist-types/commands/DeleteInboxTagCommand.d.ts +12 -8
- package/dist-types/commands/DeleteMessageCommand.d.ts +12 -8
- package/dist-types/commands/DeleteMessageReactionCommand.d.ts +12 -8
- package/dist-types/commands/DescribeEventCommand.d.ts +12 -8
- package/dist-types/commands/GetActionTriggerResultCommand.d.ts +12 -8
- package/dist-types/commands/GetChannelCommand.d.ts +12 -8
- package/dist-types/commands/GetChannelMemberCommand.d.ts +12 -8
- package/dist-types/commands/GetDirectChannelIdCommand.d.ts +12 -8
- package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +12 -8
- package/dist-types/commands/GetInboxStateCommand.d.ts +12 -8
- package/dist-types/commands/GetMessageCommand.d.ts +12 -8
- package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +12 -8
- package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +12 -8
- package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +12 -8
- package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +12 -8
- package/dist-types/commands/GetSmsChannelIdCommand.d.ts +12 -8
- package/dist-types/commands/GetTelephonyChannelIdCommand.d.ts +12 -8
- package/dist-types/commands/GetTokenCommand.d.ts +12 -8
- package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +12 -8
- package/dist-types/commands/GetWhatsAppChannelIdCommand.d.ts +12 -8
- package/dist-types/commands/HideChannelCommand.d.ts +12 -8
- package/dist-types/commands/InviteCommand.d.ts +12 -8
- package/dist-types/commands/JoinChannelCommand.d.ts +12 -8
- package/dist-types/commands/LeaveChannelCommand.d.ts +12 -8
- package/dist-types/commands/ListChannelMembersCommand.d.ts +12 -8
- package/dist-types/commands/ListChannelMembersReadStatusCommand.d.ts +12 -8
- package/dist-types/commands/ListChannelsCommand.d.ts +12 -8
- package/dist-types/commands/ListInboxTaggedChannelsCommand.d.ts +12 -8
- package/dist-types/commands/ListInboxTagsCommand.d.ts +12 -8
- package/dist-types/commands/ListMessageReactionsCommand.d.ts +12 -8
- package/dist-types/commands/ListMessagesCommand.d.ts +12 -8
- package/dist-types/commands/ListPinnedMessagesCommand.d.ts +12 -8
- package/dist-types/commands/MarkReadCommand.d.ts +12 -8
- package/dist-types/commands/MarkUnreadCommand.d.ts +12 -8
- package/dist-types/commands/PartialUpdateChannelCommand.d.ts +12 -8
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +12 -8
- package/dist-types/commands/PinChannelCommand.d.ts +12 -8
- package/dist-types/commands/PinMessageCommand.d.ts +12 -8
- package/dist-types/commands/QueryChannelsCommand.d.ts +12 -8
- package/dist-types/commands/ScheduleExternalFlagAdjustmentJobCommand.d.ts +12 -8
- package/dist-types/commands/SendActionTriggerResultCommand.d.ts +12 -8
- package/dist-types/commands/SendGiphyCommand.d.ts +12 -8
- package/dist-types/commands/SendMessageCommand.d.ts +12 -8
- package/dist-types/commands/SendMessageReactionCommand.d.ts +12 -8
- package/dist-types/commands/SendSystemMessageCommand.d.ts +12 -8
- package/dist-types/commands/SendTypingStartCommand.d.ts +12 -8
- package/dist-types/commands/SendTypingStopCommand.d.ts +12 -8
- package/dist-types/commands/ShowChannelCommand.d.ts +12 -8
- package/dist-types/commands/TagChannelCommand.d.ts +12 -8
- package/dist-types/commands/TriggerMessageActionCommand.d.ts +12 -8
- package/dist-types/commands/UnpinChannelCommand.d.ts +12 -8
- package/dist-types/commands/UnpinMessageCommand.d.ts +12 -8
- package/dist-types/commands/UntagChannelCommand.d.ts +12 -8
- package/dist-types/commands/UpdateChannelCommand.d.ts +12 -8
- package/dist-types/commands/UpdateInboxTagCommand.d.ts +12 -8
- package/dist-types/commands/UpdateMessageCommand.d.ts +12 -8
- package/dist-types/commands/UploadFileCommand.d.ts +12 -8
- package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +4 -3
- package/dist-types/index.d.ts +6 -2
- package/dist-types/models/{ConversationsServiceException.d.ts → ConversationsSyntheticServiceException.d.ts} +2 -2
- package/dist-types/models/enums.d.ts +285 -0
- package/dist-types/models/errors.d.ts +244 -0
- package/dist-types/models/models_0.d.ts +85 -594
- package/dist-types/runtimeConfig.browser.d.ts +35 -16
- package/dist-types/runtimeConfig.d.ts +34 -15
- package/dist-types/runtimeConfig.native.d.ts +36 -17
- package/dist-types/runtimeConfig.shared.d.ts +20 -3
- package/dist-types/runtimeExtensions.d.ts +1 -1
- package/dist-types/schemas/schemas_0.d.ts +286 -0
- package/package.json +14 -40
- package/dist-cjs/models/ConversationsServiceException.js +0 -12
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/protocols/Aws_restJson1.js +0 -2574
- package/dist-es/models/ConversationsServiceException.js +0 -8
- package/dist-es/models/index.js +0 -1
- package/dist-es/protocols/Aws_restJson1.js +0 -2439
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -587
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { ShowChannel$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class ShowChannelCommand extends $Command
|
|
6
|
+
export class ShowChannelCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Conversations", "ShowChannel", {})
|
|
12
13
|
.n("ConversationsClient", "ShowChannelCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_ShowChannelCommand)
|
|
15
|
-
.de(de_ShowChannelCommand)
|
|
14
|
+
.sc(ShowChannel$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { TagChannel$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class TagChannelCommand extends $Command
|
|
6
|
+
export class TagChannelCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Conversations", "TagChannel", {})
|
|
12
13
|
.n("ConversationsClient", "TagChannelCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_TagChannelCommand)
|
|
15
|
-
.de(de_TagChannelCommand)
|
|
14
|
+
.sc(TagChannel$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { TriggerMessageAction$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class TriggerMessageActionCommand extends $Command
|
|
6
|
+
export class TriggerMessageActionCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Conversations", "TriggerMessageAction", {})
|
|
12
13
|
.n("ConversationsClient", "TriggerMessageActionCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_TriggerMessageActionCommand)
|
|
15
|
-
.de(de_TriggerMessageActionCommand)
|
|
14
|
+
.sc(TriggerMessageAction$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { UnpinChannel$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class UnpinChannelCommand extends $Command
|
|
6
|
+
export class UnpinChannelCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Conversations", "UnpinChannel", {})
|
|
12
13
|
.n("ConversationsClient", "UnpinChannelCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_UnpinChannelCommand)
|
|
15
|
-
.de(de_UnpinChannelCommand)
|
|
14
|
+
.sc(UnpinChannel$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { UnpinMessage$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class UnpinMessageCommand extends $Command
|
|
6
|
+
export class UnpinMessageCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Conversations", "UnpinMessage", {})
|
|
12
13
|
.n("ConversationsClient", "UnpinMessageCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_UnpinMessageCommand)
|
|
15
|
-
.de(de_UnpinMessageCommand)
|
|
14
|
+
.sc(UnpinMessage$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { UntagChannel$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class UntagChannelCommand extends $Command
|
|
6
|
+
export class UntagChannelCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Conversations", "UntagChannel", {})
|
|
12
13
|
.n("ConversationsClient", "UntagChannelCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_UntagChannelCommand)
|
|
15
|
-
.de(de_UntagChannelCommand)
|
|
14
|
+
.sc(UntagChannel$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { UpdateChannel$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class UpdateChannelCommand extends $Command
|
|
6
|
+
export class UpdateChannelCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Conversations", "UpdateChannel", {})
|
|
12
13
|
.n("ConversationsClient", "UpdateChannelCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_UpdateChannelCommand)
|
|
15
|
-
.de(de_UpdateChannelCommand)
|
|
14
|
+
.sc(UpdateChannel$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { UpdateInboxTag$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class UpdateInboxTagCommand extends $Command
|
|
6
|
+
export class UpdateInboxTagCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Conversations", "UpdateInboxTag", {})
|
|
12
13
|
.n("ConversationsClient", "UpdateInboxTagCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_UpdateInboxTagCommand)
|
|
15
|
-
.de(de_UpdateInboxTagCommand)
|
|
14
|
+
.sc(UpdateInboxTag$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { UpdateMessage$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class UpdateMessageCommand extends $Command
|
|
6
|
+
export class UpdateMessageCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Conversations", "UpdateMessage", {})
|
|
12
13
|
.n("ConversationsClient", "UpdateMessageCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_UpdateMessageCommand)
|
|
15
|
-
.de(de_UpdateMessageCommand)
|
|
14
|
+
.sc(UpdateMessage$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { UploadFile$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class UploadFileCommand extends $Command
|
|
6
|
+
export class UploadFileCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Conversations", "UploadFile", {})
|
|
12
13
|
.n("ConversationsClient", "UploadFileCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_UploadFileCommand)
|
|
15
|
-
.de(de_UploadFileCommand)
|
|
14
|
+
.sc(UploadFile$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const clientContextParamDefaults = {};
|
|
2
|
+
export const resolveClientEndpointParameters = (options) => {
|
|
3
|
+
return Object.assign(options, {
|
|
4
|
+
env: options.env ?? "prod",
|
|
5
|
+
defaultSigningName: "",
|
|
6
|
+
clientContextParams: Object.assign(clientContextParamDefaults, options.clientContextParams),
|
|
7
|
+
});
|
|
8
|
+
};
|
|
9
|
+
export const commonParams = {
|
|
10
|
+
env: { type: "clientContextParams", name: "env" },
|
|
11
|
+
endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
|
|
2
|
+
const a = "stringEquals", b = { "ref": "endpoint" }, c = { "ref": "env" };
|
|
3
|
+
const _data = {
|
|
4
|
+
conditions: [
|
|
5
|
+
["isSet", [b]],
|
|
6
|
+
[a, [c, "stable"]],
|
|
7
|
+
[a, [c, "stage"]]
|
|
8
|
+
],
|
|
9
|
+
results: [
|
|
10
|
+
[-1],
|
|
11
|
+
[b, {}],
|
|
12
|
+
["https://api-stable.x-bees.com", {}],
|
|
13
|
+
["https://api-stage.x-bees.com", {}],
|
|
14
|
+
["https://api.x-bees.com", {}]
|
|
15
|
+
]
|
|
16
|
+
};
|
|
17
|
+
const root = 2;
|
|
18
|
+
const r = 100_000_000;
|
|
19
|
+
const nodes = new Int32Array([
|
|
20
|
+
-1, 1, -1,
|
|
21
|
+
0, r + 1, 3,
|
|
22
|
+
1, r + 2, 4,
|
|
23
|
+
2, r + 3, r + 4,
|
|
24
|
+
]);
|
|
25
|
+
export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { decideEndpoint, EndpointCache } from "@smithy/core/endpoints";
|
|
2
|
+
import { bdd } from "./bdd";
|
|
3
|
+
const cache = new EndpointCache({
|
|
4
|
+
size: 50,
|
|
5
|
+
params: ["endpoint", "env"],
|
|
6
|
+
});
|
|
7
|
+
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
8
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
9
|
+
endpointParams: endpointParams,
|
|
10
|
+
logger: context.logger,
|
|
11
|
+
}));
|
|
12
|
+
};
|
package/dist-es/index.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export * from "./ConversationsClient";
|
|
2
2
|
export * from "./Conversations";
|
|
3
3
|
export * from "./commands";
|
|
4
|
-
export * from "./
|
|
5
|
-
export
|
|
4
|
+
export * from "./schemas/schemas_0";
|
|
5
|
+
export * from "./models/enums";
|
|
6
|
+
export * from "./models/errors";
|
|
7
|
+
export * from "./models/models_0";
|
|
8
|
+
export { ConversationsSyntheticServiceException } from "./models/ConversationsSyntheticServiceException";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@smithy/core/client";
|
|
2
|
+
export { __ServiceException };
|
|
3
|
+
export class ConversationsSyntheticServiceException extends __ServiceException {
|
|
4
|
+
constructor(options) {
|
|
5
|
+
super(options);
|
|
6
|
+
Object.setPrototypeOf(this, ConversationsSyntheticServiceException.prototype);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
export const TargetNotEligibleReason = {
|
|
2
|
+
NO_LICENSE: "no_license",
|
|
3
|
+
};
|
|
4
|
+
export const ChannelAccess = {
|
|
5
|
+
PRIVATE: "private",
|
|
6
|
+
PUBLIC: "public",
|
|
7
|
+
};
|
|
8
|
+
export const ChannelType = {
|
|
9
|
+
DIRECT: "direct",
|
|
10
|
+
GROUP: "group",
|
|
11
|
+
};
|
|
12
|
+
export const ChannelContextEventAttendeeStatus = {
|
|
13
|
+
ACCEPTED: "accepted",
|
|
14
|
+
DECLINED: "declined",
|
|
15
|
+
NONE: "none",
|
|
16
|
+
TENTATIVE: "tentative",
|
|
17
|
+
};
|
|
18
|
+
export const ChannelContextSource = {
|
|
19
|
+
KITE: "kite",
|
|
20
|
+
};
|
|
21
|
+
export const ChannelWhatsAppStatus = {
|
|
22
|
+
CHANNEL_CLOSED: "24h_channel_closed",
|
|
23
|
+
};
|
|
24
|
+
export const ButtonVariant = {
|
|
25
|
+
CONTAINED: "contained",
|
|
26
|
+
OUTLINED: "outlined",
|
|
27
|
+
};
|
|
28
|
+
export const MessageSmsStatus = {
|
|
29
|
+
DELIVERED: "delivered",
|
|
30
|
+
ERROR: "error",
|
|
31
|
+
SENT: "sent",
|
|
32
|
+
TRYING: "trying",
|
|
33
|
+
};
|
|
34
|
+
export const MessageType = {
|
|
35
|
+
DELETED: "deleted",
|
|
36
|
+
REGULAR: "regular",
|
|
37
|
+
SYSTEM: "system",
|
|
38
|
+
};
|
|
39
|
+
export const MessageWhatsAppStatus = {
|
|
40
|
+
DELIVERED: "delivered",
|
|
41
|
+
ERROR: "error",
|
|
42
|
+
SENT: "sent",
|
|
43
|
+
TRYING: "trying",
|
|
44
|
+
};
|
|
45
|
+
export const ConversationFileCategory = {
|
|
46
|
+
GENERAL: "channels",
|
|
47
|
+
RECORDING: "recordings",
|
|
48
|
+
WIZY_RECORDING: "wizyconfRecordings",
|
|
49
|
+
};
|
|
50
|
+
export const ActionTriggerStatus = {
|
|
51
|
+
COMPLETED: "completed",
|
|
52
|
+
PENDING: "pending",
|
|
53
|
+
};
|
|
54
|
+
export const ChannelMemberRole = {
|
|
55
|
+
MEMBER: "member",
|
|
56
|
+
SUPERVISOR: "supervisor",
|
|
57
|
+
};
|
|
58
|
+
export const AssignChannelVariant = {
|
|
59
|
+
ADAPTIVE: "ADAPTIVE",
|
|
60
|
+
EVERYBODY: "EVERYBODY",
|
|
61
|
+
SELECTED: "SELECTED",
|
|
62
|
+
SKIP: "SKIP",
|
|
63
|
+
};
|
|
64
|
+
export const GroupChannelCreationEventType = {
|
|
65
|
+
CONVERSATION_CREATED: "conversation_created",
|
|
66
|
+
CONVERSATION_CREATED_WITH_NAME: "conversation_created_with_name",
|
|
67
|
+
};
|
|
68
|
+
export const ReactionType = {
|
|
69
|
+
CLAP: "clap",
|
|
70
|
+
CONFUSED: "confused",
|
|
71
|
+
EYES: "eyes",
|
|
72
|
+
HEART: "heart",
|
|
73
|
+
SLIGHTLY_SMILING_FACE: "slightly_smiling_face",
|
|
74
|
+
SMILEY: "smiley",
|
|
75
|
+
THUMBSDOWN: "thumbsdown",
|
|
76
|
+
THUMBSUP: "thumbsup",
|
|
77
|
+
WHITE_CHECK_MARK: "white_check_mark",
|
|
78
|
+
};
|
|
79
|
+
export const WebhookEventType = {
|
|
80
|
+
ACTION_TRIGGERED: "chat:action:triggered",
|
|
81
|
+
CHANNEL_CREATED: "chat:channel:created",
|
|
82
|
+
CHANNEL_UPDATED: "chat:channel:updated",
|
|
83
|
+
MEMBER_ADDED: "chat:member:added",
|
|
84
|
+
MEMBER_REMOVED: "chat:member:removed",
|
|
85
|
+
MESSAGE_DELETED: "chat:message:deleted",
|
|
86
|
+
MESSAGE_NEW: "chat:message:new",
|
|
87
|
+
MESSAGE_UPDATED: "chat:message:updated",
|
|
88
|
+
REACTION_DELETED: "chat:reaction:deleted",
|
|
89
|
+
REACTION_NEW: "chat:reaction:new",
|
|
90
|
+
};
|
|
91
|
+
export const GroupChannelUnsetOptions = {
|
|
92
|
+
ACCESS: "access",
|
|
93
|
+
ASSIGNEE: "assignee",
|
|
94
|
+
BROADCAST: "broadcast",
|
|
95
|
+
CONTEXT: "context",
|
|
96
|
+
CONTEXT_EVENTS: "contextEvents",
|
|
97
|
+
CONTEXT_PTT: "contextPtt",
|
|
98
|
+
DESCRIPTION: "description",
|
|
99
|
+
KITE_ASSIGN: "kiteAssign",
|
|
100
|
+
MMS: "mms",
|
|
101
|
+
PICTURE: "picture",
|
|
102
|
+
PICTURE_COLOR: "pictureColor",
|
|
103
|
+
SERVICE: "service",
|
|
104
|
+
SERVICE_TITLE: "serviceTitle",
|
|
105
|
+
SMS: "sms",
|
|
106
|
+
SUBJECT: "subject",
|
|
107
|
+
WHATSAPP: "whatsapp",
|
|
108
|
+
WHATSAPP_STATUS: "whatsappStatus",
|
|
109
|
+
};
|
|
110
|
+
export const MessageUnsetFields = {
|
|
111
|
+
ATTACHMENTS: "attachments",
|
|
112
|
+
ELEMENTS: "elements",
|
|
113
|
+
FORWARD: "forward",
|
|
114
|
+
MENTIONS: "mentions",
|
|
115
|
+
QUOTE: "quote",
|
|
116
|
+
SMS: "sms",
|
|
117
|
+
SMS_STATUS: "smsStatus",
|
|
118
|
+
TEXT: "text",
|
|
119
|
+
WHATSAPP: "whatsapp",
|
|
120
|
+
WHATSAPP_STATUS: "whatsappStatus",
|
|
121
|
+
};
|