@wildix/xbees-conversations-client 1.0.45 → 1.0.47
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 -1
- package/dist-cjs/commands/AssignChannelCommand.js +21 -0
- package/dist-cjs/commands/index.js +2 -1
- package/dist-cjs/models/models_0.js +44 -237
- package/dist-cjs/protocols/Aws_restJson1.js +80 -129
- package/dist-es/Conversations.js +3 -1
- package/dist-es/commands/AssignChannelCommand.js +17 -0
- package/dist-es/commands/index.js +2 -1
- package/dist-es/models/models_0.js +43 -235
- package/dist-es/protocols/Aws_restJson1.js +71 -122
- package/dist-types/Conversations.d.ts +14 -7
- package/dist-types/ConversationsClient.d.ts +3 -2
- package/dist-types/commands/AssignChannelCommand.d.ts +101 -0
- package/dist-types/commands/DescribeEventCommand.d.ts +659 -1410
- package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +2 -2
- package/dist-types/commands/GetMessageCommand.d.ts +1 -1
- package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +2 -2
- package/dist-types/commands/ListMessagesCommand.d.ts +1 -1
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +1 -1
- package/dist-types/commands/SendGiphyCommand.d.ts +1 -1
- package/dist-types/commands/SendMessageCommand.d.ts +1 -1
- package/dist-types/commands/UpdateMessageCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +402 -1696
- package/dist-types/protocols/Aws_restJson1.d.ts +17 -8
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AddChannelMemberCommandInput, AddChannelMemberCommandOutput } from "./commands/AddChannelMemberCommand";
|
|
2
2
|
import { AddChannelMembersCommandInput, AddChannelMembersCommandOutput } from "./commands/AddChannelMembersCommand";
|
|
3
|
+
import { AssignChannelCommandInput, AssignChannelCommandOutput } from "./commands/AssignChannelCommand";
|
|
3
4
|
import { CreateGroupChannelCommandInput, CreateGroupChannelCommandOutput } from "./commands/CreateGroupChannelCommand";
|
|
4
5
|
import { DeleteChannelCommandInput, DeleteChannelCommandOutput } from "./commands/DeleteChannelCommand";
|
|
5
6
|
import { DeleteChannelMemberCommandInput, DeleteChannelMemberCommandOutput } from "./commands/DeleteChannelMemberCommand";
|
|
@@ -44,11 +45,11 @@ export { __Client };
|
|
|
44
45
|
/**
|
|
45
46
|
* @public
|
|
46
47
|
*/
|
|
47
|
-
export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | CreateGroupChannelCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DescribeEventCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetUploadedFileInfoCommandInput | HideChannelCommandInput | InviteCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelsCommandInput | ListMessageReactionsCommandInput | ListMessagesCommandInput | MarkReadCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | UpdateChannelCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
|
|
48
|
+
export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | AssignChannelCommandInput | CreateGroupChannelCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DescribeEventCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetUploadedFileInfoCommandInput | HideChannelCommandInput | InviteCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelsCommandInput | ListMessageReactionsCommandInput | ListMessagesCommandInput | MarkReadCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | UpdateChannelCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
|
|
48
49
|
/**
|
|
49
50
|
* @public
|
|
50
51
|
*/
|
|
51
|
-
export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | CreateGroupChannelCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DescribeEventCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetUploadedFileInfoCommandOutput | HideChannelCommandOutput | InviteCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelsCommandOutput | ListMessageReactionsCommandOutput | ListMessagesCommandOutput | MarkReadCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | UpdateChannelCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
|
|
52
|
+
export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | AssignChannelCommandOutput | CreateGroupChannelCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DescribeEventCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetUploadedFileInfoCommandOutput | HideChannelCommandOutput | InviteCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelsCommandOutput | ListMessageReactionsCommandOutput | ListMessagesCommandOutput | MarkReadCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | UpdateChannelCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
|
|
52
53
|
/**
|
|
53
54
|
* @public
|
|
54
55
|
*/
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
|
|
2
|
+
import { AssignChannelInput, AssignChannelOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link AssignChannelCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface AssignChannelCommandInput extends AssignChannelInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link AssignChannelCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface AssignChannelCommandOutput extends AssignChannelOutput, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
declare const AssignChannelCommand_base: {
|
|
24
|
+
new (input: AssignChannelCommandInput): import("@smithy/smithy-client").CommandImpl<AssignChannelCommandInput, AssignChannelCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: AssignChannelCommandInput): import("@smithy/smithy-client").CommandImpl<AssignChannelCommandInput, AssignChannelCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ConversationsClient, AssignChannelCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
|
|
35
|
+
* // const { ConversationsClient, AssignChannelCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
|
|
36
|
+
* const client = new ConversationsClient(config);
|
|
37
|
+
* const input = { // AssignChannelInput
|
|
38
|
+
* channelId: "STRING_VALUE", // required
|
|
39
|
+
* userId: "STRING_VALUE",
|
|
40
|
+
* silent: true || false,
|
|
41
|
+
* service: { // AssignChannelServiceRequest Union: only one key present
|
|
42
|
+
* uri: "STRING_VALUE",
|
|
43
|
+
* id: "STRING_VALUE",
|
|
44
|
+
* name: "STRING_VALUE",
|
|
45
|
+
* },
|
|
46
|
+
* assignee: { // AssignChannelAssigneeRequest Union: only one key present
|
|
47
|
+
* id: "STRING_VALUE",
|
|
48
|
+
* email: "STRING_VALUE",
|
|
49
|
+
* },
|
|
50
|
+
* options: { // AssignChannelOptions
|
|
51
|
+
* addAgentFromService: true || false,
|
|
52
|
+
* },
|
|
53
|
+
* };
|
|
54
|
+
* const command = new AssignChannelCommand(input);
|
|
55
|
+
* const response = await client.send(command);
|
|
56
|
+
* // { // AssignChannelOutput
|
|
57
|
+
* // assignee: { // User
|
|
58
|
+
* // id: "STRING_VALUE", // required
|
|
59
|
+
* // name: "STRING_VALUE",
|
|
60
|
+
* // email: "STRING_VALUE",
|
|
61
|
+
* // phone: "STRING_VALUE",
|
|
62
|
+
* // picture: "STRING_VALUE",
|
|
63
|
+
* // locale: "STRING_VALUE",
|
|
64
|
+
* // timeZone: "STRING_VALUE",
|
|
65
|
+
* // company: "STRING_VALUE",
|
|
66
|
+
* // bot: true || false,
|
|
67
|
+
* // pbxDomain: "STRING_VALUE",
|
|
68
|
+
* // pbxPort: "STRING_VALUE",
|
|
69
|
+
* // pbxExtension: "STRING_VALUE",
|
|
70
|
+
* // pbxSerial: "STRING_VALUE",
|
|
71
|
+
* // pbxUserId: "STRING_VALUE",
|
|
72
|
+
* // createdAt: "STRING_VALUE",
|
|
73
|
+
* // updatedAt: "STRING_VALUE",
|
|
74
|
+
* // },
|
|
75
|
+
* // service: { // AssignService
|
|
76
|
+
* // uri: "STRING_VALUE", // required
|
|
77
|
+
* // id: "STRING_VALUE", // required
|
|
78
|
+
* // name: "STRING_VALUE", // required
|
|
79
|
+
* // },
|
|
80
|
+
* // };
|
|
81
|
+
*
|
|
82
|
+
* ```
|
|
83
|
+
*
|
|
84
|
+
* @param AssignChannelCommandInput - {@link AssignChannelCommandInput}
|
|
85
|
+
* @returns {@link AssignChannelCommandOutput}
|
|
86
|
+
* @see {@link AssignChannelCommandInput} for command's `input` shape.
|
|
87
|
+
* @see {@link AssignChannelCommandOutput} for command's `response` shape.
|
|
88
|
+
* @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link ChannelNotFoundException} (client fault)
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link ValidationException} (client fault)
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link ConversationsServiceException}
|
|
97
|
+
* <p>Base exception class for all service exceptions from Conversations service.</p>
|
|
98
|
+
*
|
|
99
|
+
*/
|
|
100
|
+
export declare class AssignChannelCommand extends AssignChannelCommand_base {
|
|
101
|
+
}
|