@wildix/stream-client 0.0.4 → 0.0.6
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 +255 -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 +243 -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} +27 -28
- 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 +5 -6
- 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 +6 -7
- package/dist-types/commands/ListMessagesCommand.d.ts +5 -6
- 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 +5 -6
- 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} +41 -42
- package/dist-types/commands/SendMessageCommand.d.ts +53 -13
- package/dist-types/commands/{AddReactionCommand.d.ts → SendMessageReactionCommand.d.ts} +28 -29
- 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 +5 -6
- 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 +3077 -563
- package/dist-types/protocols/Aws_restJson1.d.ts +429 -15
- package/package.json +1 -1
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
2
|
+
import { GetOrCreateWhatsAppChannelInput, GetOrCreateWhatsAppChannelOutput } 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 GetOrCreateWhatsAppChannelCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetOrCreateWhatsAppChannelCommandInput extends GetOrCreateWhatsAppChannelInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetOrCreateWhatsAppChannelCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetOrCreateWhatsAppChannelCommandOutput extends GetOrCreateWhatsAppChannelOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetOrCreateWhatsAppChannelCommand_base: {
|
|
25
|
+
new (input: GetOrCreateWhatsAppChannelCommandInput): import("@smithy/smithy-client").CommandImpl<GetOrCreateWhatsAppChannelCommandInput, GetOrCreateWhatsAppChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetOrCreateWhatsAppChannelCommandInput): import("@smithy/smithy-client").CommandImpl<GetOrCreateWhatsAppChannelCommandInput, GetOrCreateWhatsAppChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Gets or creates a WhatsApp channel.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { StreamServiceClient, GetOrCreateWhatsAppChannelCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
|
+
* // const { StreamServiceClient, GetOrCreateWhatsAppChannelCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
36
|
+
* const client = new StreamServiceClient(config);
|
|
37
|
+
* const input = { // GetOrCreateWhatsAppChannelInput
|
|
38
|
+
* companyId: "STRING_VALUE",
|
|
39
|
+
* userId: "STRING_VALUE",
|
|
40
|
+
* serviceUri: "STRING_VALUE", // required
|
|
41
|
+
* recipientId: "STRING_VALUE",
|
|
42
|
+
* recipientNumber: "STRING_VALUE",
|
|
43
|
+
* outgoing: true || false,
|
|
44
|
+
* };
|
|
45
|
+
* const command = new GetOrCreateWhatsAppChannelCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // { // GetOrCreateWhatsAppChannelOutput
|
|
48
|
+
* // channel: { // Channel
|
|
49
|
+
* // channelId: "STRING_VALUE", // required
|
|
50
|
+
* // channelType: "direct" || "group", // required
|
|
51
|
+
* // membersCount: Number("int"), // required
|
|
52
|
+
* // createdAt: "STRING_VALUE", // required
|
|
53
|
+
* // createdBy: "STRING_VALUE", // required
|
|
54
|
+
* // updatedAt: "STRING_VALUE",
|
|
55
|
+
* // channelVersion: Number("long"), // required
|
|
56
|
+
* // lastActivityAt: "STRING_VALUE", // required
|
|
57
|
+
* // lastMessage: { // LastMessagePreview
|
|
58
|
+
* // messageId: "STRING_VALUE", // required
|
|
59
|
+
* // userId: "STRING_VALUE", // required
|
|
60
|
+
* // text: "STRING_VALUE",
|
|
61
|
+
* // createdAt: "STRING_VALUE", // required
|
|
62
|
+
* // },
|
|
63
|
+
* // company: "STRING_VALUE",
|
|
64
|
+
* // kite: true || false,
|
|
65
|
+
* // kiteTarget: "STRING_VALUE",
|
|
66
|
+
* // kiteVariant: "STRING_VALUE",
|
|
67
|
+
* // kiteServiceName: "STRING_VALUE",
|
|
68
|
+
* // kiteDefaultSubject: "STRING_VALUE",
|
|
69
|
+
* // service: "STRING_VALUE",
|
|
70
|
+
* // serviceRecipient: "STRING_VALUE",
|
|
71
|
+
* // telephony: true || false,
|
|
72
|
+
* // external: true || false,
|
|
73
|
+
* // subject: "STRING_VALUE",
|
|
74
|
+
* // description: "STRING_VALUE",
|
|
75
|
+
* // picture: "STRING_VALUE",
|
|
76
|
+
* // pictureColor: "STRING_VALUE",
|
|
77
|
+
* // access: "private" || "public",
|
|
78
|
+
* // broadcast: true || false,
|
|
79
|
+
* // context: { // ChannelContext
|
|
80
|
+
* // source: "kite",
|
|
81
|
+
* // target: "STRING_VALUE",
|
|
82
|
+
* // events: [ // ChannelContextEventList
|
|
83
|
+
* // { // ChannelContextEvent
|
|
84
|
+
* // id: "STRING_VALUE",
|
|
85
|
+
* // owner: "STRING_VALUE",
|
|
86
|
+
* // start: "STRING_VALUE",
|
|
87
|
+
* // end: "STRING_VALUE",
|
|
88
|
+
* // summary: "STRING_VALUE",
|
|
89
|
+
* // attendees: [ // ChannelContextEventAttendeeList
|
|
90
|
+
* // { // ChannelContextEventAttendee
|
|
91
|
+
* // email: "STRING_VALUE", // required
|
|
92
|
+
* // name: "STRING_VALUE",
|
|
93
|
+
* // status: "accepted" || "tentative" || "declined" || "none", // required
|
|
94
|
+
* // },
|
|
95
|
+
* // ],
|
|
96
|
+
* // },
|
|
97
|
+
* // ],
|
|
98
|
+
* // ptt: { // ChannelContextPushToTalk
|
|
99
|
+
* // broadcastId: "STRING_VALUE",
|
|
100
|
+
* // },
|
|
101
|
+
* // },
|
|
102
|
+
* // whatsappStatus: "24h_channel_closed",
|
|
103
|
+
* // sms: true || false,
|
|
104
|
+
* // mms: true || false,
|
|
105
|
+
* // whatsapp: true || false,
|
|
106
|
+
* // kiteAssign: "STRING_VALUE",
|
|
107
|
+
* // serviceTitle: "STRING_VALUE",
|
|
108
|
+
* // assigneeId: "STRING_VALUE",
|
|
109
|
+
* // autoRecord: true || false,
|
|
110
|
+
* // transcriptionLanguage: "STRING_VALUE",
|
|
111
|
+
* // wizyGuestViewOnly: true || false,
|
|
112
|
+
* // },
|
|
113
|
+
* // };
|
|
114
|
+
*
|
|
115
|
+
* ```
|
|
116
|
+
*
|
|
117
|
+
* @param GetOrCreateWhatsAppChannelCommandInput - {@link GetOrCreateWhatsAppChannelCommandInput}
|
|
118
|
+
* @returns {@link GetOrCreateWhatsAppChannelCommandOutput}
|
|
119
|
+
* @see {@link GetOrCreateWhatsAppChannelCommandInput} for command's `input` shape.
|
|
120
|
+
* @see {@link GetOrCreateWhatsAppChannelCommandOutput} for command's `response` shape.
|
|
121
|
+
* @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
|
|
122
|
+
*
|
|
123
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
124
|
+
*
|
|
125
|
+
* @throws {@link StreamServiceException} (server fault)
|
|
126
|
+
*
|
|
127
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
128
|
+
*
|
|
129
|
+
* @throws {@link ValidationException} (client fault)
|
|
130
|
+
*
|
|
131
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
132
|
+
*
|
|
133
|
+
* @throws {@link StreamServiceServiceException}
|
|
134
|
+
* <p>Base exception class for all service exceptions from StreamService service.</p>
|
|
135
|
+
*
|
|
136
|
+
*
|
|
137
|
+
* @public
|
|
138
|
+
*/
|
|
139
|
+
export declare class GetOrCreateWhatsAppChannelCommand extends GetOrCreateWhatsAppChannelCommand_base {
|
|
140
|
+
/** @internal type navigation helper, not in runtime. */
|
|
141
|
+
protected static __types: {
|
|
142
|
+
api: {
|
|
143
|
+
input: GetOrCreateWhatsAppChannelInput;
|
|
144
|
+
output: GetOrCreateWhatsAppChannelOutput;
|
|
145
|
+
};
|
|
146
|
+
sdk: {
|
|
147
|
+
input: GetOrCreateWhatsAppChannelCommandInput;
|
|
148
|
+
output: GetOrCreateWhatsAppChannelCommandOutput;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
2
|
+
import { GetSmsChannelIdInput, GetSmsChannelIdOutput } 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 GetSmsChannelIdCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetSmsChannelIdCommandInput extends GetSmsChannelIdInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetSmsChannelIdCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetSmsChannelIdCommandOutput extends GetSmsChannelIdOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetSmsChannelIdCommand_base: {
|
|
25
|
+
new (input: GetSmsChannelIdCommandInput): import("@smithy/smithy-client").CommandImpl<GetSmsChannelIdCommandInput, GetSmsChannelIdCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetSmsChannelIdCommandInput): import("@smithy/smithy-client").CommandImpl<GetSmsChannelIdCommandInput, GetSmsChannelIdCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Resolves the channel id of an SMS channel without creating it.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { StreamServiceClient, GetSmsChannelIdCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
|
+
* // const { StreamServiceClient, GetSmsChannelIdCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
36
|
+
* const client = new StreamServiceClient(config);
|
|
37
|
+
* const input = { // GetSmsChannelIdInput
|
|
38
|
+
* companyId: "STRING_VALUE",
|
|
39
|
+
* userId: "STRING_VALUE",
|
|
40
|
+
* serviceUri: "STRING_VALUE", // required
|
|
41
|
+
* recipientId: "STRING_VALUE",
|
|
42
|
+
* recipientNumber: "STRING_VALUE",
|
|
43
|
+
* };
|
|
44
|
+
* const command = new GetSmsChannelIdCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // { // GetSmsChannelIdOutput
|
|
47
|
+
* // channelId: "STRING_VALUE", // required
|
|
48
|
+
* // };
|
|
49
|
+
*
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* @param GetSmsChannelIdCommandInput - {@link GetSmsChannelIdCommandInput}
|
|
53
|
+
* @returns {@link GetSmsChannelIdCommandOutput}
|
|
54
|
+
* @see {@link GetSmsChannelIdCommandInput} for command's `input` shape.
|
|
55
|
+
* @see {@link GetSmsChannelIdCommandOutput} for command's `response` shape.
|
|
56
|
+
* @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link StreamServiceException} (server fault)
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ValidationException} (client fault)
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link StreamServiceServiceException}
|
|
69
|
+
* <p>Base exception class for all service exceptions from StreamService service.</p>
|
|
70
|
+
*
|
|
71
|
+
*
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
export declare class GetSmsChannelIdCommand extends GetSmsChannelIdCommand_base {
|
|
75
|
+
/** @internal type navigation helper, not in runtime. */
|
|
76
|
+
protected static __types: {
|
|
77
|
+
api: {
|
|
78
|
+
input: GetSmsChannelIdInput;
|
|
79
|
+
output: GetSmsChannelIdOutput;
|
|
80
|
+
};
|
|
81
|
+
sdk: {
|
|
82
|
+
input: GetSmsChannelIdCommandInput;
|
|
83
|
+
output: GetSmsChannelIdCommandOutput;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
2
|
+
import { GetTelephonyChannelIdInput, GetTelephonyChannelIdOutput } 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 GetTelephonyChannelIdCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetTelephonyChannelIdCommandInput extends GetTelephonyChannelIdInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetTelephonyChannelIdCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetTelephonyChannelIdCommandOutput extends GetTelephonyChannelIdOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetTelephonyChannelIdCommand_base: {
|
|
25
|
+
new (input: GetTelephonyChannelIdCommandInput): import("@smithy/smithy-client").CommandImpl<GetTelephonyChannelIdCommandInput, GetTelephonyChannelIdCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetTelephonyChannelIdCommandInput): import("@smithy/smithy-client").CommandImpl<GetTelephonyChannelIdCommandInput, GetTelephonyChannelIdCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Resolves the channel id of a telephony channel without creating it.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { StreamServiceClient, GetTelephonyChannelIdCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
|
+
* // const { StreamServiceClient, GetTelephonyChannelIdCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
36
|
+
* const client = new StreamServiceClient(config);
|
|
37
|
+
* const input = { // GetTelephonyChannelIdInput
|
|
38
|
+
* companyId: "STRING_VALUE",
|
|
39
|
+
* userId: "STRING_VALUE",
|
|
40
|
+
* serviceUri: "STRING_VALUE", // required
|
|
41
|
+
* recipientId: "STRING_VALUE",
|
|
42
|
+
* recipientNumber: "STRING_VALUE",
|
|
43
|
+
* };
|
|
44
|
+
* const command = new GetTelephonyChannelIdCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // { // GetTelephonyChannelIdOutput
|
|
47
|
+
* // channelId: "STRING_VALUE", // required
|
|
48
|
+
* // };
|
|
49
|
+
*
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* @param GetTelephonyChannelIdCommandInput - {@link GetTelephonyChannelIdCommandInput}
|
|
53
|
+
* @returns {@link GetTelephonyChannelIdCommandOutput}
|
|
54
|
+
* @see {@link GetTelephonyChannelIdCommandInput} for command's `input` shape.
|
|
55
|
+
* @see {@link GetTelephonyChannelIdCommandOutput} for command's `response` shape.
|
|
56
|
+
* @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link StreamServiceException} (server fault)
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ValidationException} (client fault)
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link StreamServiceServiceException}
|
|
69
|
+
* <p>Base exception class for all service exceptions from StreamService service.</p>
|
|
70
|
+
*
|
|
71
|
+
*
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
export declare class GetTelephonyChannelIdCommand extends GetTelephonyChannelIdCommand_base {
|
|
75
|
+
/** @internal type navigation helper, not in runtime. */
|
|
76
|
+
protected static __types: {
|
|
77
|
+
api: {
|
|
78
|
+
input: GetTelephonyChannelIdInput;
|
|
79
|
+
output: GetTelephonyChannelIdOutput;
|
|
80
|
+
};
|
|
81
|
+
sdk: {
|
|
82
|
+
input: GetTelephonyChannelIdCommandInput;
|
|
83
|
+
output: GetTelephonyChannelIdCommandOutput;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
2
|
+
import { GetTokenInput, GetTokenOutput } 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 GetTokenCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetTokenCommandInput extends GetTokenInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetTokenCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetTokenCommandOutput extends GetTokenOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetTokenCommand_base: {
|
|
25
|
+
new (input: GetTokenCommandInput): import("@smithy/smithy-client").CommandImpl<GetTokenCommandInput, GetTokenCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [GetTokenCommandInput]): import("@smithy/smithy-client").CommandImpl<GetTokenCommandInput, GetTokenCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Returns a short-lived authorization token for the stream chat client.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { StreamServiceClient, GetTokenCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
|
+
* // const { StreamServiceClient, GetTokenCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
36
|
+
* const client = new StreamServiceClient(config);
|
|
37
|
+
* const input = { // GetTokenInput
|
|
38
|
+
* companyId: "STRING_VALUE",
|
|
39
|
+
* userId: "STRING_VALUE",
|
|
40
|
+
* clientId: "STRING_VALUE",
|
|
41
|
+
* };
|
|
42
|
+
* const command = new GetTokenCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // GetTokenOutput
|
|
45
|
+
* // token: "STRING_VALUE", // required
|
|
46
|
+
* // expires: Number("long"), // required
|
|
47
|
+
* // };
|
|
48
|
+
*
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param GetTokenCommandInput - {@link GetTokenCommandInput}
|
|
52
|
+
* @returns {@link GetTokenCommandOutput}
|
|
53
|
+
* @see {@link GetTokenCommandInput} for command's `input` shape.
|
|
54
|
+
* @see {@link GetTokenCommandOutput} for command's `response` shape.
|
|
55
|
+
* @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link StreamServiceException} (server fault)
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ValidationException} (client fault)
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link StreamServiceServiceException}
|
|
68
|
+
* <p>Base exception class for all service exceptions from StreamService service.</p>
|
|
69
|
+
*
|
|
70
|
+
*
|
|
71
|
+
* @public
|
|
72
|
+
*/
|
|
73
|
+
export declare class GetTokenCommand extends GetTokenCommand_base {
|
|
74
|
+
/** @internal type navigation helper, not in runtime. */
|
|
75
|
+
protected static __types: {
|
|
76
|
+
api: {
|
|
77
|
+
input: GetTokenInput;
|
|
78
|
+
output: GetTokenOutput;
|
|
79
|
+
};
|
|
80
|
+
sdk: {
|
|
81
|
+
input: GetTokenCommandInput;
|
|
82
|
+
output: GetTokenCommandOutput;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
2
|
+
import { GetUploadedFileInfoInput, GetUploadedFileInfoOutput } 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 GetUploadedFileInfoCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetUploadedFileInfoCommandInput extends GetUploadedFileInfoInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetUploadedFileInfoCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetUploadedFileInfoCommandOutput extends GetUploadedFileInfoOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetUploadedFileInfoCommand_base: {
|
|
25
|
+
new (input: GetUploadedFileInfoCommandInput): import("@smithy/smithy-client").CommandImpl<GetUploadedFileInfoCommandInput, GetUploadedFileInfoCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetUploadedFileInfoCommandInput): import("@smithy/smithy-client").CommandImpl<GetUploadedFileInfoCommandInput, GetUploadedFileInfoCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Returns metadata for an uploaded file in 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, GetUploadedFileInfoCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
|
+
* // const { StreamServiceClient, GetUploadedFileInfoCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
36
|
+
* const client = new StreamServiceClient(config);
|
|
37
|
+
* const input = { // GetUploadedFileInfoInput
|
|
38
|
+
* companyId: "STRING_VALUE",
|
|
39
|
+
* userId: "STRING_VALUE",
|
|
40
|
+
* channelId: "STRING_VALUE", // required
|
|
41
|
+
* fsId: "STRING_VALUE", // required
|
|
42
|
+
* category: "channels" || "recordings" || "wizyconfRecordings",
|
|
43
|
+
* };
|
|
44
|
+
* const command = new GetUploadedFileInfoCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // { // GetUploadedFileInfoOutput
|
|
47
|
+
* // file: { // UploadedFileInfo
|
|
48
|
+
* // fsId: "STRING_VALUE", // required
|
|
49
|
+
* // mime: "STRING_VALUE",
|
|
50
|
+
* // name: "STRING_VALUE", // required
|
|
51
|
+
* // size: Number("long"), // required
|
|
52
|
+
* // width: Number("int"),
|
|
53
|
+
* // height: Number("int"),
|
|
54
|
+
* // thumbnail: "STRING_VALUE",
|
|
55
|
+
* // },
|
|
56
|
+
* // };
|
|
57
|
+
*
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* @param GetUploadedFileInfoCommandInput - {@link GetUploadedFileInfoCommandInput}
|
|
61
|
+
* @returns {@link GetUploadedFileInfoCommandOutput}
|
|
62
|
+
* @see {@link GetUploadedFileInfoCommandInput} for command's `input` shape.
|
|
63
|
+
* @see {@link GetUploadedFileInfoCommandOutput} 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 FileNotFoundException} (client fault)
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link StreamServiceException} (server fault)
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ValidationException} (client fault)
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link StreamServiceServiceException}
|
|
81
|
+
* <p>Base exception class for all service exceptions from StreamService service.</p>
|
|
82
|
+
*
|
|
83
|
+
*
|
|
84
|
+
* @public
|
|
85
|
+
*/
|
|
86
|
+
export declare class GetUploadedFileInfoCommand extends GetUploadedFileInfoCommand_base {
|
|
87
|
+
/** @internal type navigation helper, not in runtime. */
|
|
88
|
+
protected static __types: {
|
|
89
|
+
api: {
|
|
90
|
+
input: GetUploadedFileInfoInput;
|
|
91
|
+
output: GetUploadedFileInfoOutput;
|
|
92
|
+
};
|
|
93
|
+
sdk: {
|
|
94
|
+
input: GetUploadedFileInfoCommandInput;
|
|
95
|
+
output: GetUploadedFileInfoCommandOutput;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
2
|
+
import { GetWhatsAppChannelIdInput, GetWhatsAppChannelIdOutput } 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 GetWhatsAppChannelIdCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetWhatsAppChannelIdCommandInput extends GetWhatsAppChannelIdInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetWhatsAppChannelIdCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetWhatsAppChannelIdCommandOutput extends GetWhatsAppChannelIdOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetWhatsAppChannelIdCommand_base: {
|
|
25
|
+
new (input: GetWhatsAppChannelIdCommandInput): import("@smithy/smithy-client").CommandImpl<GetWhatsAppChannelIdCommandInput, GetWhatsAppChannelIdCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetWhatsAppChannelIdCommandInput): import("@smithy/smithy-client").CommandImpl<GetWhatsAppChannelIdCommandInput, GetWhatsAppChannelIdCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Resolves the channel id of a WhatsApp channel without creating it.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { StreamServiceClient, GetWhatsAppChannelIdCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
|
+
* // const { StreamServiceClient, GetWhatsAppChannelIdCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
36
|
+
* const client = new StreamServiceClient(config);
|
|
37
|
+
* const input = { // GetWhatsAppChannelIdInput
|
|
38
|
+
* companyId: "STRING_VALUE",
|
|
39
|
+
* userId: "STRING_VALUE",
|
|
40
|
+
* serviceUri: "STRING_VALUE", // required
|
|
41
|
+
* recipientId: "STRING_VALUE",
|
|
42
|
+
* recipientNumber: "STRING_VALUE",
|
|
43
|
+
* };
|
|
44
|
+
* const command = new GetWhatsAppChannelIdCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // { // GetWhatsAppChannelIdOutput
|
|
47
|
+
* // channelId: "STRING_VALUE", // required
|
|
48
|
+
* // };
|
|
49
|
+
*
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* @param GetWhatsAppChannelIdCommandInput - {@link GetWhatsAppChannelIdCommandInput}
|
|
53
|
+
* @returns {@link GetWhatsAppChannelIdCommandOutput}
|
|
54
|
+
* @see {@link GetWhatsAppChannelIdCommandInput} for command's `input` shape.
|
|
55
|
+
* @see {@link GetWhatsAppChannelIdCommandOutput} for command's `response` shape.
|
|
56
|
+
* @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link StreamServiceException} (server fault)
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ValidationException} (client fault)
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link StreamServiceServiceException}
|
|
69
|
+
* <p>Base exception class for all service exceptions from StreamService service.</p>
|
|
70
|
+
*
|
|
71
|
+
*
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
export declare class GetWhatsAppChannelIdCommand extends GetWhatsAppChannelIdCommand_base {
|
|
75
|
+
/** @internal type navigation helper, not in runtime. */
|
|
76
|
+
protected static __types: {
|
|
77
|
+
api: {
|
|
78
|
+
input: GetWhatsAppChannelIdInput;
|
|
79
|
+
output: GetWhatsAppChannelIdOutput;
|
|
80
|
+
};
|
|
81
|
+
sdk: {
|
|
82
|
+
input: GetWhatsAppChannelIdCommandInput;
|
|
83
|
+
output: GetWhatsAppChannelIdCommandOutput;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
2
|
+
import { HideChannelInput, HideChannelOutput } 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 HideChannelCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface HideChannelCommandInput extends HideChannelInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link HideChannelCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface HideChannelCommandOutput extends HideChannelOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const HideChannelCommand_base: {
|
|
25
|
+
new (input: HideChannelCommandInput): import("@smithy/smithy-client").CommandImpl<HideChannelCommandInput, HideChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: HideChannelCommandInput): import("@smithy/smithy-client").CommandImpl<HideChannelCommandInput, HideChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Archives a channel for the current user (`inbox.hidden = true`).
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { StreamServiceClient, HideChannelCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
|
+
* // const { StreamServiceClient, HideChannelCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
36
|
+
* const client = new StreamServiceClient(config);
|
|
37
|
+
* const input = { // HideChannelInput
|
|
38
|
+
* companyId: "STRING_VALUE",
|
|
39
|
+
* userId: "STRING_VALUE",
|
|
40
|
+
* channelId: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new HideChannelCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // {};
|
|
45
|
+
*
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param HideChannelCommandInput - {@link HideChannelCommandInput}
|
|
49
|
+
* @returns {@link HideChannelCommandOutput}
|
|
50
|
+
* @see {@link HideChannelCommandInput} for command's `input` shape.
|
|
51
|
+
* @see {@link HideChannelCommandOutput} for command's `response` shape.
|
|
52
|
+
* @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link ChannelNotFoundException} (client fault)
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link StreamServiceException} (server fault)
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link ValidationException} (client fault)
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link StreamServiceServiceException}
|
|
67
|
+
* <p>Base exception class for all service exceptions from StreamService service.</p>
|
|
68
|
+
*
|
|
69
|
+
*
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
export declare class HideChannelCommand extends HideChannelCommand_base {
|
|
73
|
+
/** @internal type navigation helper, not in runtime. */
|
|
74
|
+
protected static __types: {
|
|
75
|
+
api: {
|
|
76
|
+
input: HideChannelInput;
|
|
77
|
+
output: {};
|
|
78
|
+
};
|
|
79
|
+
sdk: {
|
|
80
|
+
input: HideChannelCommandInput;
|
|
81
|
+
output: HideChannelCommandOutput;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
}
|