@wildix/stream-client 0.0.4 → 0.0.5
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/StreamService.js +98 -6
- package/dist-cjs/commands/AddChannelMemberCommand.js +21 -0
- package/dist-cjs/commands/AddChannelMembersCommand.js +21 -0
- package/dist-cjs/commands/AssignChannelCommand.js +21 -0
- package/dist-cjs/commands/CreateGroupChannelCommand.js +21 -0
- package/dist-cjs/commands/CreateKiteChannelCommand.js +21 -0
- package/dist-cjs/commands/CreateSectionCommand.js +21 -0
- package/dist-cjs/commands/DeleteChannelCommand.js +21 -0
- package/dist-cjs/commands/DeleteChannelMemberCommand.js +21 -0
- package/dist-cjs/commands/DeleteMessageReactionCommand.js +21 -0
- package/dist-cjs/commands/DeleteSectionCommand.js +21 -0
- package/dist-cjs/commands/GetChannelCommand.js +21 -0
- package/dist-cjs/commands/GetChannelMemberCommand.js +21 -0
- package/dist-cjs/commands/GetDirectChannelIdCommand.js +21 -0
- package/dist-cjs/commands/GetFilePresignedDownloadUrlCommand.js +21 -0
- package/dist-cjs/commands/GetOrCreateDirectChannelCommand.js +21 -0
- package/dist-cjs/commands/GetOrCreateSmsChannelCommand.js +21 -0
- package/dist-cjs/commands/GetOrCreateTelephonyChannelCommand.js +21 -0
- package/dist-cjs/commands/GetOrCreateWhatsAppChannelCommand.js +21 -0
- package/dist-cjs/commands/GetSmsChannelIdCommand.js +21 -0
- package/dist-cjs/commands/GetTelephonyChannelIdCommand.js +21 -0
- package/dist-cjs/commands/GetTokenCommand.js +21 -0
- package/dist-cjs/commands/GetUploadedFileInfoCommand.js +21 -0
- package/dist-cjs/commands/GetWhatsAppChannelIdCommand.js +21 -0
- package/dist-cjs/commands/{AddReactionCommand.js → HideChannelCommand.js} +7 -7
- package/dist-cjs/commands/{EditMessageCommand.js → JoinChannelCommand.js} +7 -7
- package/dist-cjs/commands/LeaveChannelCommand.js +21 -0
- package/dist-cjs/commands/ListChannelMembersCommand.js +21 -0
- package/dist-cjs/commands/ListChannelMembersReadStatusCommand.js +21 -0
- package/dist-cjs/commands/MarkReadCommand.js +21 -0
- package/dist-cjs/commands/MarkUnreadCommand.js +21 -0
- package/dist-cjs/commands/MoveChannelToSectionCommand.js +21 -0
- package/dist-cjs/commands/MuteChannelCommand.js +21 -0
- package/dist-cjs/commands/PartialUpdateChannelCommand.js +21 -0
- package/dist-cjs/commands/PartialUpdateMessageCommand.js +21 -0
- package/dist-cjs/commands/PinChannelCommand.js +21 -0
- package/dist-cjs/commands/QueryChannelsCommand.js +21 -0
- package/dist-cjs/commands/RemoveChannelFromSectionCommand.js +21 -0
- package/dist-cjs/commands/RenameSectionCommand.js +21 -0
- package/dist-cjs/commands/SendGiphyCommand.js +21 -0
- package/dist-cjs/commands/SendMessageReactionCommand.js +21 -0
- package/dist-cjs/commands/SendSystemMessageCommand.js +21 -0
- package/dist-cjs/commands/SendTypingStartCommand.js +21 -0
- package/dist-cjs/commands/{RemoveReactionCommand.js → SendTypingStopCommand.js} +7 -7
- package/dist-cjs/commands/ShowChannelCommand.js +21 -0
- package/dist-cjs/commands/UnmuteChannelCommand.js +21 -0
- package/dist-cjs/commands/UnpinChannelCommand.js +21 -0
- package/dist-cjs/commands/UpdateChannelCommand.js +21 -0
- package/dist-cjs/commands/UpdateMessageCommand.js +21 -0
- package/dist-cjs/commands/UploadFileCommand.js +21 -0
- package/dist-cjs/commands/index.js +49 -3
- package/dist-cjs/models/models_0.js +254 -49
- package/dist-cjs/protocols/Aws_restJson1.js +1954 -130
- package/dist-es/StreamService.js +98 -6
- package/dist-es/commands/AddChannelMemberCommand.js +17 -0
- package/dist-es/commands/AddChannelMembersCommand.js +17 -0
- package/dist-es/commands/AssignChannelCommand.js +17 -0
- package/dist-es/commands/CreateGroupChannelCommand.js +17 -0
- package/dist-es/commands/CreateKiteChannelCommand.js +17 -0
- package/dist-es/commands/CreateSectionCommand.js +17 -0
- package/dist-es/commands/DeleteChannelCommand.js +17 -0
- package/dist-es/commands/DeleteChannelMemberCommand.js +17 -0
- package/dist-es/commands/DeleteMessageReactionCommand.js +17 -0
- package/dist-es/commands/DeleteSectionCommand.js +17 -0
- package/dist-es/commands/GetChannelCommand.js +17 -0
- package/dist-es/commands/GetChannelMemberCommand.js +17 -0
- package/dist-es/commands/GetDirectChannelIdCommand.js +17 -0
- package/dist-es/commands/GetFilePresignedDownloadUrlCommand.js +17 -0
- package/dist-es/commands/GetOrCreateDirectChannelCommand.js +17 -0
- package/dist-es/commands/GetOrCreateSmsChannelCommand.js +17 -0
- package/dist-es/commands/GetOrCreateTelephonyChannelCommand.js +17 -0
- package/dist-es/commands/GetOrCreateWhatsAppChannelCommand.js +17 -0
- package/dist-es/commands/GetSmsChannelIdCommand.js +17 -0
- package/dist-es/commands/GetTelephonyChannelIdCommand.js +17 -0
- package/dist-es/commands/GetTokenCommand.js +17 -0
- package/dist-es/commands/GetUploadedFileInfoCommand.js +17 -0
- package/dist-es/commands/GetWhatsAppChannelIdCommand.js +17 -0
- package/dist-es/commands/{EditMessageCommand.js → HideChannelCommand.js} +6 -6
- package/dist-es/commands/{AddReactionCommand.js → JoinChannelCommand.js} +6 -6
- package/dist-es/commands/LeaveChannelCommand.js +17 -0
- package/dist-es/commands/ListChannelMembersCommand.js +17 -0
- package/dist-es/commands/ListChannelMembersReadStatusCommand.js +17 -0
- package/dist-es/commands/MarkReadCommand.js +17 -0
- package/dist-es/commands/MarkUnreadCommand.js +17 -0
- package/dist-es/commands/MoveChannelToSectionCommand.js +17 -0
- package/dist-es/commands/MuteChannelCommand.js +17 -0
- package/dist-es/commands/PartialUpdateChannelCommand.js +17 -0
- package/dist-es/commands/PartialUpdateMessageCommand.js +17 -0
- package/dist-es/commands/PinChannelCommand.js +17 -0
- package/dist-es/commands/QueryChannelsCommand.js +17 -0
- package/dist-es/commands/RemoveChannelFromSectionCommand.js +17 -0
- package/dist-es/commands/RenameSectionCommand.js +17 -0
- package/dist-es/commands/SendGiphyCommand.js +17 -0
- package/dist-es/commands/SendMessageReactionCommand.js +17 -0
- package/dist-es/commands/SendSystemMessageCommand.js +17 -0
- package/dist-es/commands/SendTypingStartCommand.js +17 -0
- package/dist-es/commands/{RemoveReactionCommand.js → SendTypingStopCommand.js} +6 -6
- package/dist-es/commands/ShowChannelCommand.js +17 -0
- package/dist-es/commands/UnmuteChannelCommand.js +17 -0
- package/dist-es/commands/UnpinChannelCommand.js +17 -0
- package/dist-es/commands/UpdateChannelCommand.js +17 -0
- package/dist-es/commands/UpdateMessageCommand.js +17 -0
- package/dist-es/commands/UploadFileCommand.js +17 -0
- package/dist-es/commands/index.js +49 -3
- package/dist-es/models/models_0.js +242 -46
- package/dist-es/protocols/Aws_restJson1.js +1842 -112
- package/dist-types/StreamService.d.ts +341 -15
- package/dist-types/StreamServiceClient.d.ts +51 -5
- package/dist-types/commands/AddChannelMemberCommand.d.ts +101 -0
- package/dist-types/commands/AddChannelMembersCommand.d.ts +108 -0
- package/dist-types/commands/AssignChannelCommand.d.ts +96 -0
- package/dist-types/commands/CreateGroupChannelCommand.d.ts +201 -0
- package/dist-types/commands/CreateKiteChannelCommand.d.ts +291 -0
- package/dist-types/commands/CreateSectionCommand.d.ts +96 -0
- package/dist-types/commands/DeleteChannelCommand.d.ts +82 -0
- package/dist-types/commands/DeleteChannelMemberCommand.d.ts +88 -0
- package/dist-types/commands/DeleteMessageCommand.d.ts +1 -1
- package/dist-types/commands/{RemoveReactionCommand.d.ts → DeleteMessageReactionCommand.d.ts} +26 -27
- package/dist-types/commands/DeleteSectionCommand.d.ts +84 -0
- package/dist-types/commands/GetChannelCommand.d.ts +150 -0
- package/dist-types/commands/GetChannelMemberCommand.d.ts +93 -0
- package/dist-types/commands/GetDirectChannelIdCommand.d.ts +90 -0
- package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +94 -0
- package/dist-types/commands/GetInboxCommand.d.ts +35 -35
- package/dist-types/commands/GetMessageCommand.d.ts +4 -5
- package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +154 -0
- package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +151 -0
- package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +150 -0
- package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +151 -0
- package/dist-types/commands/GetSmsChannelIdCommand.d.ts +86 -0
- package/dist-types/commands/GetTelephonyChannelIdCommand.d.ts +86 -0
- package/dist-types/commands/GetTokenCommand.d.ts +85 -0
- package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +98 -0
- package/dist-types/commands/GetWhatsAppChannelIdCommand.d.ts +86 -0
- package/dist-types/commands/HideChannelCommand.d.ts +84 -0
- package/dist-types/commands/JoinChannelCommand.d.ts +151 -0
- package/dist-types/commands/LeaveChannelCommand.d.ts +85 -0
- package/dist-types/commands/ListChannelMembersCommand.d.ts +94 -0
- package/dist-types/commands/ListChannelMembersReadStatusCommand.d.ts +92 -0
- package/dist-types/commands/ListChannelsCommand.d.ts +35 -35
- package/dist-types/commands/ListMentionsCommand.d.ts +5 -6
- package/dist-types/commands/ListMessagesCommand.d.ts +4 -5
- package/dist-types/commands/MarkReadCommand.d.ts +99 -0
- package/dist-types/commands/MarkUnreadCommand.d.ts +103 -0
- package/dist-types/commands/MoveChannelToSectionCommand.d.ts +101 -0
- package/dist-types/commands/MuteChannelCommand.d.ts +99 -0
- package/dist-types/commands/PartialUpdateChannelCommand.d.ts +195 -0
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +261 -0
- package/dist-types/commands/PinChannelCommand.d.ts +87 -0
- package/dist-types/commands/PinMessageCommand.d.ts +4 -5
- package/dist-types/commands/QueryChannelsCommand.d.ts +167 -0
- package/dist-types/commands/RemoveChannelFromSectionCommand.d.ts +101 -0
- package/dist-types/commands/RenameSectionCommand.d.ts +98 -0
- package/dist-types/commands/{EditMessageCommand.d.ts → SendGiphyCommand.d.ts} +40 -41
- package/dist-types/commands/SendMessageCommand.d.ts +52 -12
- package/dist-types/commands/{AddReactionCommand.d.ts → SendMessageReactionCommand.d.ts} +27 -28
- package/dist-types/commands/SendSystemMessageCommand.d.ts +199 -0
- package/dist-types/commands/SendTypingStartCommand.d.ts +84 -0
- package/dist-types/commands/SendTypingStopCommand.d.ts +84 -0
- package/dist-types/commands/ShowChannelCommand.d.ts +84 -0
- package/dist-types/commands/UnmuteChannelCommand.d.ts +98 -0
- package/dist-types/commands/UnpinChannelCommand.d.ts +84 -0
- package/dist-types/commands/UnpinMessageCommand.d.ts +4 -5
- package/dist-types/commands/UpdateChannelCommand.d.ts +190 -0
- package/dist-types/commands/UpdateMessageCommand.d.ts +256 -0
- package/dist-types/commands/UploadFileCommand.d.ts +94 -0
- package/dist-types/commands/index.d.ts +49 -3
- package/dist-types/models/models_0.d.ts +3076 -563
- package/dist-types/protocols/Aws_restJson1.d.ts +429 -15
- package/package.json +1 -1
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
2
|
+
import { AddChannelMembersInput, AddChannelMembersOutput } 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 type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link AddChannelMembersCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface AddChannelMembersCommandInput extends AddChannelMembersInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link AddChannelMembersCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface AddChannelMembersCommandOutput extends AddChannelMembersOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const AddChannelMembersCommand_base: {
|
|
25
|
+
new (input: AddChannelMembersCommandInput): import("@smithy/smithy-client").CommandImpl<AddChannelMembersCommandInput, AddChannelMembersCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: AddChannelMembersCommandInput): import("@smithy/smithy-client").CommandImpl<AddChannelMembersCommandInput, AddChannelMembersCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Adds members to a channel.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { StreamServiceClient, AddChannelMembersCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
|
+
* // const { StreamServiceClient, AddChannelMembersCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
36
|
+
* const client = new StreamServiceClient(config);
|
|
37
|
+
* const input = { // AddChannelMembersInput
|
|
38
|
+
* companyId: "STRING_VALUE",
|
|
39
|
+
* userId: "STRING_VALUE",
|
|
40
|
+
* channelId: "STRING_VALUE", // required
|
|
41
|
+
* silent: true || false,
|
|
42
|
+
* members: [ // UserIdList
|
|
43
|
+
* "STRING_VALUE",
|
|
44
|
+
* ],
|
|
45
|
+
* membersToInvite: [ // UserToInviteList
|
|
46
|
+
* { // UserToInvite
|
|
47
|
+
* email: "STRING_VALUE",
|
|
48
|
+
* phone: "STRING_VALUE",
|
|
49
|
+
* name: "STRING_VALUE",
|
|
50
|
+
* colleague: true || false,
|
|
51
|
+
* },
|
|
52
|
+
* ],
|
|
53
|
+
* hideHistory: true || false,
|
|
54
|
+
* unreadMessageId: "STRING_VALUE",
|
|
55
|
+
* };
|
|
56
|
+
* const command = new AddChannelMembersCommand(input);
|
|
57
|
+
* const response = await client.send(command);
|
|
58
|
+
* // { // AddChannelMembersOutput
|
|
59
|
+
* // members: [ // ChannelMemberList // required
|
|
60
|
+
* // { // ChannelMember
|
|
61
|
+
* // userId: "STRING_VALUE", // required
|
|
62
|
+
* // joinedAt: "STRING_VALUE", // required
|
|
63
|
+
* // role: "member" || "supervisor", // required
|
|
64
|
+
* // },
|
|
65
|
+
* // ],
|
|
66
|
+
* // };
|
|
67
|
+
*
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
70
|
+
* @param AddChannelMembersCommandInput - {@link AddChannelMembersCommandInput}
|
|
71
|
+
* @returns {@link AddChannelMembersCommandOutput}
|
|
72
|
+
* @see {@link AddChannelMembersCommandInput} for command's `input` shape.
|
|
73
|
+
* @see {@link AddChannelMembersCommandOutput} for command's `response` shape.
|
|
74
|
+
* @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ChannelNotFoundException} (client fault)
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link MemberAlreadyExistException} (client fault)
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link StreamServiceException} (server fault)
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link ValidationException} (client fault)
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link StreamServiceServiceException}
|
|
91
|
+
* <p>Base exception class for all service exceptions from StreamService service.</p>
|
|
92
|
+
*
|
|
93
|
+
*
|
|
94
|
+
* @public
|
|
95
|
+
*/
|
|
96
|
+
export declare class AddChannelMembersCommand extends AddChannelMembersCommand_base {
|
|
97
|
+
/** @internal type navigation helper, not in runtime. */
|
|
98
|
+
protected static __types: {
|
|
99
|
+
api: {
|
|
100
|
+
input: AddChannelMembersInput;
|
|
101
|
+
output: AddChannelMembersOutput;
|
|
102
|
+
};
|
|
103
|
+
sdk: {
|
|
104
|
+
input: AddChannelMembersCommandInput;
|
|
105
|
+
output: AddChannelMembersCommandOutput;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
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 type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link AssignChannelCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface AssignChannelCommandInput extends AssignChannelInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link AssignChannelCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface AssignChannelCommandOutput extends AssignChannelOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const AssignChannelCommand_base: {
|
|
25
|
+
new (input: AssignChannelCommandInput): import("@smithy/smithy-client").CommandImpl<AssignChannelCommandInput, AssignChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: AssignChannelCommandInput): import("@smithy/smithy-client").CommandImpl<AssignChannelCommandInput, AssignChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Assigns a channel to a service and/or assignee.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { StreamServiceClient, AssignChannelCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
|
+
* // const { StreamServiceClient, AssignChannelCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
36
|
+
* const client = new StreamServiceClient(config);
|
|
37
|
+
* const input = { // AssignChannelInput
|
|
38
|
+
* companyId: "STRING_VALUE",
|
|
39
|
+
* userId: "STRING_VALUE",
|
|
40
|
+
* channelId: "STRING_VALUE", // required
|
|
41
|
+
* silent: true || false,
|
|
42
|
+
* service: { // AssignChannelServiceRequest Union: only one key present
|
|
43
|
+
* uri: "STRING_VALUE",
|
|
44
|
+
* },
|
|
45
|
+
* assignee: { // AssignChannelAssigneeRequest Union: only one key present
|
|
46
|
+
* id: "STRING_VALUE",
|
|
47
|
+
* email: "STRING_VALUE",
|
|
48
|
+
* },
|
|
49
|
+
* variant: "ADAPTIVE" || "SELECTED" || "EVERYBODY" || "SKIP",
|
|
50
|
+
* };
|
|
51
|
+
* const command = new AssignChannelCommand(input);
|
|
52
|
+
* const response = await client.send(command);
|
|
53
|
+
* // { // AssignChannelOutput
|
|
54
|
+
* // assigneeId: "STRING_VALUE",
|
|
55
|
+
* // serviceUri: "STRING_VALUE",
|
|
56
|
+
* // };
|
|
57
|
+
*
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* @param AssignChannelCommandInput - {@link AssignChannelCommandInput}
|
|
61
|
+
* @returns {@link AssignChannelCommandOutput}
|
|
62
|
+
* @see {@link AssignChannelCommandInput} for command's `input` shape.
|
|
63
|
+
* @see {@link AssignChannelCommandOutput} for command's `response` shape.
|
|
64
|
+
* @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ChannelNotFoundException} (client fault)
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link StreamServiceException} (server fault)
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ValidationException} (client fault)
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link StreamServiceServiceException}
|
|
79
|
+
* <p>Base exception class for all service exceptions from StreamService service.</p>
|
|
80
|
+
*
|
|
81
|
+
*
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
export declare class AssignChannelCommand extends AssignChannelCommand_base {
|
|
85
|
+
/** @internal type navigation helper, not in runtime. */
|
|
86
|
+
protected static __types: {
|
|
87
|
+
api: {
|
|
88
|
+
input: AssignChannelInput;
|
|
89
|
+
output: AssignChannelOutput;
|
|
90
|
+
};
|
|
91
|
+
sdk: {
|
|
92
|
+
input: AssignChannelCommandInput;
|
|
93
|
+
output: AssignChannelCommandOutput;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
2
|
+
import { CreateGroupChannelInput, CreateGroupChannelOutput } 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 type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateGroupChannelCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateGroupChannelCommandInput extends CreateGroupChannelInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateGroupChannelCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateGroupChannelCommandOutput extends CreateGroupChannelOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateGroupChannelCommand_base: {
|
|
25
|
+
new (input: CreateGroupChannelCommandInput): import("@smithy/smithy-client").CommandImpl<CreateGroupChannelCommandInput, CreateGroupChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [CreateGroupChannelCommandInput]): import("@smithy/smithy-client").CommandImpl<CreateGroupChannelCommandInput, CreateGroupChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Creates a new group channel with specified members and members to invite.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { StreamServiceClient, CreateGroupChannelCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
|
+
* // const { StreamServiceClient, CreateGroupChannelCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
36
|
+
* const client = new StreamServiceClient(config);
|
|
37
|
+
* const input = { // CreateGroupChannelInput
|
|
38
|
+
* companyId: "STRING_VALUE",
|
|
39
|
+
* userId: "STRING_VALUE",
|
|
40
|
+
* subject: "STRING_VALUE",
|
|
41
|
+
* description: "STRING_VALUE",
|
|
42
|
+
* picture: "STRING_VALUE",
|
|
43
|
+
* pictureColor: "STRING_VALUE",
|
|
44
|
+
* access: "private" || "public",
|
|
45
|
+
* broadcast: true || false,
|
|
46
|
+
* context: { // ChannelContext
|
|
47
|
+
* source: "kite",
|
|
48
|
+
* target: "STRING_VALUE",
|
|
49
|
+
* events: [ // ChannelContextEventList
|
|
50
|
+
* { // ChannelContextEvent
|
|
51
|
+
* id: "STRING_VALUE",
|
|
52
|
+
* owner: "STRING_VALUE",
|
|
53
|
+
* start: "STRING_VALUE",
|
|
54
|
+
* end: "STRING_VALUE",
|
|
55
|
+
* summary: "STRING_VALUE",
|
|
56
|
+
* attendees: [ // ChannelContextEventAttendeeList
|
|
57
|
+
* { // ChannelContextEventAttendee
|
|
58
|
+
* email: "STRING_VALUE", // required
|
|
59
|
+
* name: "STRING_VALUE",
|
|
60
|
+
* status: "accepted" || "tentative" || "declined" || "none", // required
|
|
61
|
+
* },
|
|
62
|
+
* ],
|
|
63
|
+
* },
|
|
64
|
+
* ],
|
|
65
|
+
* ptt: { // ChannelContextPushToTalk
|
|
66
|
+
* broadcastId: "STRING_VALUE",
|
|
67
|
+
* },
|
|
68
|
+
* },
|
|
69
|
+
* whatsappStatus: "24h_channel_closed",
|
|
70
|
+
* sms: true || false,
|
|
71
|
+
* mms: true || false,
|
|
72
|
+
* whatsapp: true || false,
|
|
73
|
+
* kiteAssign: "STRING_VALUE",
|
|
74
|
+
* serviceTitle: "STRING_VALUE",
|
|
75
|
+
* assigneeId: "STRING_VALUE",
|
|
76
|
+
* autoRecord: true || false,
|
|
77
|
+
* transcriptionLanguage: "STRING_VALUE",
|
|
78
|
+
* wizyGuestViewOnly: true || false,
|
|
79
|
+
* channelId: "STRING_VALUE",
|
|
80
|
+
* members: [ // UserIdList
|
|
81
|
+
* "STRING_VALUE",
|
|
82
|
+
* ],
|
|
83
|
+
* membersToInvite: [ // UserToInviteList
|
|
84
|
+
* { // UserToInvite
|
|
85
|
+
* email: "STRING_VALUE",
|
|
86
|
+
* phone: "STRING_VALUE",
|
|
87
|
+
* name: "STRING_VALUE",
|
|
88
|
+
* colleague: true || false,
|
|
89
|
+
* },
|
|
90
|
+
* ],
|
|
91
|
+
* creationEventType: "conversation_created" || "conversation_created_with_name",
|
|
92
|
+
* };
|
|
93
|
+
* const command = new CreateGroupChannelCommand(input);
|
|
94
|
+
* const response = await client.send(command);
|
|
95
|
+
* // { // CreateGroupChannelOutput
|
|
96
|
+
* // channel: { // Channel
|
|
97
|
+
* // channelId: "STRING_VALUE", // required
|
|
98
|
+
* // channelType: "direct" || "group", // required
|
|
99
|
+
* // membersCount: Number("int"), // required
|
|
100
|
+
* // createdAt: "STRING_VALUE", // required
|
|
101
|
+
* // createdBy: "STRING_VALUE", // required
|
|
102
|
+
* // updatedAt: "STRING_VALUE",
|
|
103
|
+
* // channelVersion: Number("long"), // required
|
|
104
|
+
* // lastActivityAt: "STRING_VALUE", // required
|
|
105
|
+
* // lastMessage: { // LastMessagePreview
|
|
106
|
+
* // messageId: "STRING_VALUE", // required
|
|
107
|
+
* // userId: "STRING_VALUE", // required
|
|
108
|
+
* // text: "STRING_VALUE",
|
|
109
|
+
* // createdAt: "STRING_VALUE", // required
|
|
110
|
+
* // },
|
|
111
|
+
* // company: "STRING_VALUE",
|
|
112
|
+
* // kite: true || false,
|
|
113
|
+
* // kiteTarget: "STRING_VALUE",
|
|
114
|
+
* // kiteVariant: "STRING_VALUE",
|
|
115
|
+
* // kiteServiceName: "STRING_VALUE",
|
|
116
|
+
* // kiteDefaultSubject: "STRING_VALUE",
|
|
117
|
+
* // service: "STRING_VALUE",
|
|
118
|
+
* // serviceRecipient: "STRING_VALUE",
|
|
119
|
+
* // telephony: true || false,
|
|
120
|
+
* // external: true || false,
|
|
121
|
+
* // subject: "STRING_VALUE",
|
|
122
|
+
* // description: "STRING_VALUE",
|
|
123
|
+
* // picture: "STRING_VALUE",
|
|
124
|
+
* // pictureColor: "STRING_VALUE",
|
|
125
|
+
* // access: "private" || "public",
|
|
126
|
+
* // broadcast: true || false,
|
|
127
|
+
* // context: { // ChannelContext
|
|
128
|
+
* // source: "kite",
|
|
129
|
+
* // target: "STRING_VALUE",
|
|
130
|
+
* // events: [ // ChannelContextEventList
|
|
131
|
+
* // { // ChannelContextEvent
|
|
132
|
+
* // id: "STRING_VALUE",
|
|
133
|
+
* // owner: "STRING_VALUE",
|
|
134
|
+
* // start: "STRING_VALUE",
|
|
135
|
+
* // end: "STRING_VALUE",
|
|
136
|
+
* // summary: "STRING_VALUE",
|
|
137
|
+
* // attendees: [ // ChannelContextEventAttendeeList
|
|
138
|
+
* // { // ChannelContextEventAttendee
|
|
139
|
+
* // email: "STRING_VALUE", // required
|
|
140
|
+
* // name: "STRING_VALUE",
|
|
141
|
+
* // status: "accepted" || "tentative" || "declined" || "none", // required
|
|
142
|
+
* // },
|
|
143
|
+
* // ],
|
|
144
|
+
* // },
|
|
145
|
+
* // ],
|
|
146
|
+
* // ptt: { // ChannelContextPushToTalk
|
|
147
|
+
* // broadcastId: "STRING_VALUE",
|
|
148
|
+
* // },
|
|
149
|
+
* // },
|
|
150
|
+
* // whatsappStatus: "24h_channel_closed",
|
|
151
|
+
* // sms: true || false,
|
|
152
|
+
* // mms: true || false,
|
|
153
|
+
* // whatsapp: true || false,
|
|
154
|
+
* // kiteAssign: "STRING_VALUE",
|
|
155
|
+
* // serviceTitle: "STRING_VALUE",
|
|
156
|
+
* // assigneeId: "STRING_VALUE",
|
|
157
|
+
* // autoRecord: true || false,
|
|
158
|
+
* // transcriptionLanguage: "STRING_VALUE",
|
|
159
|
+
* // wizyGuestViewOnly: true || false,
|
|
160
|
+
* // },
|
|
161
|
+
* // };
|
|
162
|
+
*
|
|
163
|
+
* ```
|
|
164
|
+
*
|
|
165
|
+
* @param CreateGroupChannelCommandInput - {@link CreateGroupChannelCommandInput}
|
|
166
|
+
* @returns {@link CreateGroupChannelCommandOutput}
|
|
167
|
+
* @see {@link CreateGroupChannelCommandInput} for command's `input` shape.
|
|
168
|
+
* @see {@link CreateGroupChannelCommandOutput} for command's `response` shape.
|
|
169
|
+
* @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
|
|
170
|
+
*
|
|
171
|
+
* @throws {@link ChannelAlreadyExistException} (client fault)
|
|
172
|
+
*
|
|
173
|
+
* @throws {@link StreamServiceException} (server fault)
|
|
174
|
+
*
|
|
175
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
176
|
+
*
|
|
177
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
178
|
+
*
|
|
179
|
+
* @throws {@link ValidationException} (client fault)
|
|
180
|
+
*
|
|
181
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
182
|
+
*
|
|
183
|
+
* @throws {@link StreamServiceServiceException}
|
|
184
|
+
* <p>Base exception class for all service exceptions from StreamService service.</p>
|
|
185
|
+
*
|
|
186
|
+
*
|
|
187
|
+
* @public
|
|
188
|
+
*/
|
|
189
|
+
export declare class CreateGroupChannelCommand extends CreateGroupChannelCommand_base {
|
|
190
|
+
/** @internal type navigation helper, not in runtime. */
|
|
191
|
+
protected static __types: {
|
|
192
|
+
api: {
|
|
193
|
+
input: CreateGroupChannelInput;
|
|
194
|
+
output: CreateGroupChannelOutput;
|
|
195
|
+
};
|
|
196
|
+
sdk: {
|
|
197
|
+
input: CreateGroupChannelCommandInput;
|
|
198
|
+
output: CreateGroupChannelCommandOutput;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
}
|