@wildix/stream-client 4.3.0 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist-cjs/StreamService.js +10 -0
  2. package/dist-cjs/commands/CreateScheduledMessageCommand.js +20 -0
  3. package/dist-cjs/commands/DeleteScheduledMessageCommand.js +20 -0
  4. package/dist-cjs/commands/ListScheduledMessagesCommand.js +20 -0
  5. package/dist-cjs/commands/SendScheduledMessageNowCommand.js +20 -0
  6. package/dist-cjs/commands/UpdateScheduledMessageCommand.js +20 -0
  7. package/dist-cjs/commands/index.js +5 -0
  8. package/dist-cjs/models/enums.js +24 -1
  9. package/dist-cjs/models/errors.js +29 -1
  10. package/dist-cjs/schemas/schemas_0.js +171 -23
  11. package/dist-es/StreamService.js +10 -0
  12. package/dist-es/commands/CreateScheduledMessageCommand.js +16 -0
  13. package/dist-es/commands/DeleteScheduledMessageCommand.js +16 -0
  14. package/dist-es/commands/ListScheduledMessagesCommand.js +16 -0
  15. package/dist-es/commands/SendScheduledMessageNowCommand.js +16 -0
  16. package/dist-es/commands/UpdateScheduledMessageCommand.js +16 -0
  17. package/dist-es/commands/index.js +5 -0
  18. package/dist-es/models/enums.js +23 -0
  19. package/dist-es/models/errors.js +26 -0
  20. package/dist-es/schemas/schemas_0.js +166 -18
  21. package/dist-types/StreamService.d.ts +36 -0
  22. package/dist-types/StreamServiceClient.d.ts +7 -2
  23. package/dist-types/commands/CreateGroupChannelCommand.d.ts +2 -0
  24. package/dist-types/commands/CreateKiteChannelCommand.d.ts +45 -0
  25. package/dist-types/commands/CreateScheduledMessageCommand.d.ts +147 -0
  26. package/dist-types/commands/DeleteMessageReactionCommand.d.ts +22 -0
  27. package/dist-types/commands/DeleteScheduledMessageCommand.d.ts +89 -0
  28. package/dist-types/commands/GetChannelCommand.d.ts +1 -0
  29. package/dist-types/commands/GetInboxCommand.d.ts +1 -0
  30. package/dist-types/commands/GetMessageCommand.d.ts +22 -0
  31. package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +1 -0
  32. package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +1 -0
  33. package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +1 -0
  34. package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +1 -0
  35. package/dist-types/commands/JoinChannelCommand.d.ts +1 -0
  36. package/dist-types/commands/ListChannelsCommand.d.ts +1 -0
  37. package/dist-types/commands/ListMentionsCommand.d.ts +22 -0
  38. package/dist-types/commands/ListMessagesCommand.d.ts +22 -0
  39. package/dist-types/commands/ListScheduledMessagesCommand.d.ts +124 -0
  40. package/dist-types/commands/PartialUpdateChannelCommand.d.ts +2 -0
  41. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +44 -0
  42. package/dist-types/commands/PinMessageCommand.d.ts +22 -0
  43. package/dist-types/commands/QueryChannelsCommand.d.ts +1 -0
  44. package/dist-types/commands/SearchChannelsCommand.d.ts +1 -0
  45. package/dist-types/commands/SearchMessagesCommand.d.ts +22 -0
  46. package/dist-types/commands/SendGiphyCommand.d.ts +22 -0
  47. package/dist-types/commands/SendMessageCommand.d.ts +44 -0
  48. package/dist-types/commands/SendMessageReactionCommand.d.ts +22 -0
  49. package/dist-types/commands/SendScheduledMessageNowCommand.d.ts +124 -0
  50. package/dist-types/commands/SendSystemMessageCommand.d.ts +22 -0
  51. package/dist-types/commands/UnpinMessageCommand.d.ts +22 -0
  52. package/dist-types/commands/UpdateChannelCommand.d.ts +2 -0
  53. package/dist-types/commands/UpdateMessageCommand.d.ts +44 -0
  54. package/dist-types/commands/UpdateScheduledMessageCommand.d.ts +146 -0
  55. package/dist-types/commands/index.d.ts +5 -0
  56. package/dist-types/models/enums.d.ts +64 -0
  57. package/dist-types/models/errors.d.ts +27 -0
  58. package/dist-types/models/models_0.d.ts +497 -92
  59. package/dist-types/runtimeConfig.browser.d.ts +3 -3
  60. package/dist-types/runtimeConfig.d.ts +3 -3
  61. package/dist-types/runtimeConfig.native.d.ts +2 -2
  62. package/dist-types/runtimeConfig.shared.d.ts +1 -1
  63. package/dist-types/schemas/schemas_0.d.ts +21 -0
  64. package/package.json +1 -1
@@ -76,6 +76,7 @@ declare const UpdateChannelCommand_base: {
76
76
  * serviceTitle: "STRING_VALUE",
77
77
  * assigneeId: "STRING_VALUE",
78
78
  * autoRecord: true || false,
79
+ * autoTranscribe: true || false,
79
80
  * transcriptionLanguage: "STRING_VALUE",
80
81
  * wizyGuestViewOnly: true || false,
81
82
  * messagingStatus: "window_closed",
@@ -159,6 +160,7 @@ declare const UpdateChannelCommand_base: {
159
160
  * // serviceTitle: "STRING_VALUE",
160
161
  * // assigneeId: "STRING_VALUE",
161
162
  * // autoRecord: true || false,
163
+ * // autoTranscribe: true || false,
162
164
  * // transcriptionLanguage: "STRING_VALUE",
163
165
  * // wizyGuestViewOnly: true || false,
164
166
  * // messagingStatus: "window_closed",
@@ -73,6 +73,28 @@ declare const UpdateMessageCommand_base: {
73
73
  * },
74
74
  * },
75
75
  * ],
76
+ * wilma: { // WilmaChatElement
77
+ * sessionId: "STRING_VALUE", // required
78
+ * verbosity: "none" || "simple" || "full", // required
79
+ * turn: Number("int"), // required
80
+ * startIndex: Number("int"), // required
81
+ * endIndex: Number("int"),
82
+ * summary: { // WilmaChatTurnSummary
83
+ * outcome: "done" || "stopped" || "failed", // required
84
+ * durationMs: Number("int"),
85
+ * toolCount: Number("int"), // required
86
+ * failedCount: Number("int"), // required
87
+ * },
88
+ * artifacts: [ // WilmaChatArtifactList
89
+ * { // WilmaChatArtifact
90
+ * artifactId: "STRING_VALUE", // required
91
+ * title: "STRING_VALUE", // required
92
+ * kind: "STRING_VALUE", // required
93
+ * size: Number("long"), // required
94
+ * name: "STRING_VALUE",
95
+ * },
96
+ * ],
97
+ * },
76
98
  * },
77
99
  * ],
78
100
  * attachments: [ // MessageAttachmentRequestList
@@ -199,6 +221,28 @@ declare const UpdateMessageCommand_base: {
199
221
  * // },
200
222
  * // },
201
223
  * // ],
224
+ * // wilma: { // WilmaChatElement
225
+ * // sessionId: "STRING_VALUE", // required
226
+ * // verbosity: "none" || "simple" || "full", // required
227
+ * // turn: Number("int"), // required
228
+ * // startIndex: Number("int"), // required
229
+ * // endIndex: Number("int"),
230
+ * // summary: { // WilmaChatTurnSummary
231
+ * // outcome: "done" || "stopped" || "failed", // required
232
+ * // durationMs: Number("int"),
233
+ * // toolCount: Number("int"), // required
234
+ * // failedCount: Number("int"), // required
235
+ * // },
236
+ * // artifacts: [ // WilmaChatArtifactList
237
+ * // { // WilmaChatArtifact
238
+ * // artifactId: "STRING_VALUE", // required
239
+ * // title: "STRING_VALUE", // required
240
+ * // kind: "STRING_VALUE", // required
241
+ * // size: Number("long"), // required
242
+ * // name: "STRING_VALUE",
243
+ * // },
244
+ * // ],
245
+ * // },
202
246
  * // },
203
247
  * // ],
204
248
  * // whatsapp: true || false,
@@ -0,0 +1,146 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { UpdateScheduledMessageInput, UpdateScheduledMessageOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateScheduledMessageCommand}.
14
+ */
15
+ export interface UpdateScheduledMessageCommandInput extends UpdateScheduledMessageInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateScheduledMessageCommand}.
21
+ */
22
+ export interface UpdateScheduledMessageCommandOutput extends UpdateScheduledMessageOutput, __MetadataBearer {
23
+ }
24
+ declare const UpdateScheduledMessageCommand_base: {
25
+ new (input: UpdateScheduledMessageCommandInput): import("@smithy/core/client").CommandImpl<UpdateScheduledMessageCommandInput, UpdateScheduledMessageCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateScheduledMessageCommandInput): import("@smithy/core/client").CommandImpl<UpdateScheduledMessageCommandInput, UpdateScheduledMessageCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Changes a scheduled message: content, send time, or pause state. A `failed` message returns to `scheduled`. Not allowed while the message is `sending`.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { StreamServiceClient, UpdateScheduledMessageCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, UpdateScheduledMessageCommand } = require("@wildix/stream-client"); // CommonJS import
36
+ * // import type { StreamServiceClientConfig } from "@wildix/stream-client";
37
+ * const config = {}; // type is StreamServiceClientConfig
38
+ * const client = new StreamServiceClient(config);
39
+ * const input = { // UpdateScheduledMessageInput
40
+ * companyId: "STRING_VALUE",
41
+ * userId: "STRING_VALUE",
42
+ * text: "STRING_VALUE",
43
+ * markdown: true || false,
44
+ * mentions: [ // UserIdList
45
+ * "STRING_VALUE",
46
+ * ],
47
+ * attachments: [ // MessageAttachmentRequestList
48
+ * { // MessageAttachmentRequest
49
+ * fsId: "STRING_VALUE", // required
50
+ * mime: "STRING_VALUE",
51
+ * name: "STRING_VALUE", // required
52
+ * size: Number("long"), // required
53
+ * width: Number("int"),
54
+ * height: Number("int"),
55
+ * thumbnail: "STRING_VALUE",
56
+ * },
57
+ * ],
58
+ * quote: { // MessageQuoteRef
59
+ * channelId: "STRING_VALUE", // required
60
+ * messageId: "STRING_VALUE", // required
61
+ * },
62
+ * scheduledMessageId: "STRING_VALUE", // required
63
+ * scheduledAt: "STRING_VALUE",
64
+ * paused: true || false,
65
+ * };
66
+ * const command = new UpdateScheduledMessageCommand(input);
67
+ * const response = await client.send(command);
68
+ * // { // UpdateScheduledMessageOutput
69
+ * // requestId: "STRING_VALUE",
70
+ * // requestDuration: Number("int"),
71
+ * // scheduledMessage: { // ScheduledMessage
72
+ * // id: "STRING_VALUE", // required
73
+ * // channelId: "STRING_VALUE", // required
74
+ * // messageId: "STRING_VALUE", // required
75
+ * // text: "STRING_VALUE",
76
+ * // markdown: true || false,
77
+ * // mentions: [ // UserIdList
78
+ * // "STRING_VALUE",
79
+ * // ],
80
+ * // attachments: [ // MessageAttachmentList
81
+ * // { // MessageAttachment
82
+ * // fsId: "STRING_VALUE", // required
83
+ * // mime: "STRING_VALUE",
84
+ * // name: "STRING_VALUE", // required
85
+ * // size: Number("long"), // required
86
+ * // width: Number("int"),
87
+ * // height: Number("int"),
88
+ * // thumbnail: "STRING_VALUE",
89
+ * // id: "STRING_VALUE", // required
90
+ * // },
91
+ * // ],
92
+ * // quote: { // MessageQuote
93
+ * // channelId: "STRING_VALUE", // required
94
+ * // messageId: "STRING_VALUE", // required
95
+ * // userId: "STRING_VALUE", // required
96
+ * // text: "STRING_VALUE",
97
+ * // createdAt: "STRING_VALUE", // required
98
+ * // },
99
+ * // scheduledAt: "STRING_VALUE", // required
100
+ * // status: "scheduled" || "paused" || "sending" || "failed", // required
101
+ * // errorCode: "NOT_A_MEMBER" || "CHANNEL_NOT_FOUND" || "ATTACHMENT_UNAVAILABLE" || "TOO_LATE" || "SEND_FAILED",
102
+ * // createdAt: "STRING_VALUE", // required
103
+ * // updatedAt: "STRING_VALUE", // required
104
+ * // version: Number("int"), // required
105
+ * // },
106
+ * // };
107
+ *
108
+ * ```
109
+ *
110
+ * @param UpdateScheduledMessageCommandInput - {@link UpdateScheduledMessageCommandInput}
111
+ * @returns {@link UpdateScheduledMessageCommandOutput}
112
+ * @see {@link UpdateScheduledMessageCommandInput} for command's `input` shape.
113
+ * @see {@link UpdateScheduledMessageCommandOutput} for command's `response` shape.
114
+ * @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
115
+ *
116
+ * @throws {@link ScheduledMessageNotFoundException} (client fault)
117
+ *
118
+ * @throws {@link StreamServiceException} (server fault)
119
+ *
120
+ * @throws {@link UnauthorizedException} (client fault)
121
+ *
122
+ * @throws {@link ForbiddenException} (client fault)
123
+ *
124
+ * @throws {@link ValidationException} (client fault)
125
+ *
126
+ * @throws {@link RateLimitExceededException} (client fault)
127
+ *
128
+ * @throws {@link StreamServiceServiceException}
129
+ * <p>Base exception class for all service exceptions from StreamService service.</p>
130
+ *
131
+ *
132
+ * @public
133
+ */
134
+ export declare class UpdateScheduledMessageCommand extends UpdateScheduledMessageCommand_base {
135
+ /** @internal type navigation helper, not in runtime. */
136
+ protected static __types: {
137
+ api: {
138
+ input: UpdateScheduledMessageInput;
139
+ output: UpdateScheduledMessageOutput;
140
+ };
141
+ sdk: {
142
+ input: UpdateScheduledMessageCommandInput;
143
+ output: UpdateScheduledMessageCommandOutput;
144
+ };
145
+ };
146
+ }
@@ -3,11 +3,13 @@ export * from "./AddChannelMembersCommand";
3
3
  export * from "./AssignChannelCommand";
4
4
  export * from "./CreateGroupChannelCommand";
5
5
  export * from "./CreateKiteChannelCommand";
6
+ export * from "./CreateScheduledMessageCommand";
6
7
  export * from "./CreateSectionCommand";
7
8
  export * from "./DeleteChannelCommand";
8
9
  export * from "./DeleteChannelMemberCommand";
9
10
  export * from "./DeleteMessageCommand";
10
11
  export * from "./DeleteMessageReactionCommand";
12
+ export * from "./DeleteScheduledMessageCommand";
11
13
  export * from "./DeleteSectionCommand";
12
14
  export * from "./GetChannelCommand";
13
15
  export * from "./GetChannelMemberCommand";
@@ -32,6 +34,7 @@ export * from "./ListChannelMembersReadStatusCommand";
32
34
  export * from "./ListChannelsCommand";
33
35
  export * from "./ListMentionsCommand";
34
36
  export * from "./ListMessagesCommand";
37
+ export * from "./ListScheduledMessagesCommand";
35
38
  export * from "./MarkReadCommand";
36
39
  export * from "./MarkUnreadCommand";
37
40
  export * from "./MoveChannelToSectionCommand";
@@ -50,6 +53,7 @@ export * from "./SearchUsersCommand";
50
53
  export * from "./SendGiphyCommand";
51
54
  export * from "./SendMessageCommand";
52
55
  export * from "./SendMessageReactionCommand";
56
+ export * from "./SendScheduledMessageNowCommand";
53
57
  export * from "./SendSystemMessageCommand";
54
58
  export * from "./SendTypingStartCommand";
55
59
  export * from "./SendTypingStopCommand";
@@ -59,4 +63,5 @@ export * from "./UnpinChannelCommand";
59
63
  export * from "./UnpinMessageCommand";
60
64
  export * from "./UpdateChannelCommand";
61
65
  export * from "./UpdateMessageCommand";
66
+ export * from "./UpdateScheduledMessageCommand";
62
67
  export * from "./UploadFileCommand";
@@ -177,6 +177,41 @@ export declare const GroupChannelCreationEventType: {
177
177
  * @public
178
178
  */
179
179
  export type GroupChannelCreationEventType = (typeof GroupChannelCreationEventType)[keyof typeof GroupChannelCreationEventType];
180
+ /**
181
+ * @public
182
+ * @enum
183
+ */
184
+ export declare const WilmaChatTurnOutcome: {
185
+ readonly DONE: "done";
186
+ readonly FAILED: "failed";
187
+ readonly STOPPED: "stopped";
188
+ };
189
+ /**
190
+ * @public
191
+ */
192
+ export type WilmaChatTurnOutcome = (typeof WilmaChatTurnOutcome)[keyof typeof WilmaChatTurnOutcome];
193
+ /**
194
+ * @public
195
+ * @enum
196
+ */
197
+ export declare const ChatVerbosity: {
198
+ /**
199
+ * The default. As `simple`, and the steps can be opened to see each tool's input and output.
200
+ */
201
+ readonly FULL: "full";
202
+ /**
203
+ * Typing only, then the answer.
204
+ */
205
+ readonly NONE: "none";
206
+ /**
207
+ * Each step while the agent works, then the answer.
208
+ */
209
+ readonly SIMPLE: "simple";
210
+ };
211
+ /**
212
+ * @public
213
+ */
214
+ export type ChatVerbosity = (typeof ChatVerbosity)[keyof typeof ChatVerbosity];
180
215
  /**
181
216
  * @public
182
217
  * @enum
@@ -230,6 +265,35 @@ export declare const TargetNotEligibleReason: {
230
265
  * @public
231
266
  */
232
267
  export type TargetNotEligibleReason = (typeof TargetNotEligibleReason)[keyof typeof TargetNotEligibleReason];
268
+ /**
269
+ * @public
270
+ * @enum
271
+ */
272
+ export declare const ScheduledMessageErrorCode: {
273
+ readonly ATTACHMENT_UNAVAILABLE: "ATTACHMENT_UNAVAILABLE";
274
+ readonly CHANNEL_NOT_FOUND: "CHANNEL_NOT_FOUND";
275
+ readonly NOT_A_MEMBER: "NOT_A_MEMBER";
276
+ readonly SEND_FAILED: "SEND_FAILED";
277
+ readonly TOO_LATE: "TOO_LATE";
278
+ };
279
+ /**
280
+ * @public
281
+ */
282
+ export type ScheduledMessageErrorCode = (typeof ScheduledMessageErrorCode)[keyof typeof ScheduledMessageErrorCode];
283
+ /**
284
+ * @public
285
+ * @enum
286
+ */
287
+ export declare const ScheduledMessageStatus: {
288
+ readonly FAILED: "failed";
289
+ readonly PAUSED: "paused";
290
+ readonly SCHEDULED: "scheduled";
291
+ readonly SENDING: "sending";
292
+ };
293
+ /**
294
+ * @public
295
+ */
296
+ export type ScheduledMessageStatus = (typeof ScheduledMessageStatus)[keyof typeof ScheduledMessageStatus];
233
297
  /**
234
298
  * @public
235
299
  * @enum
@@ -132,6 +132,22 @@ export declare class TargetNotFoundException extends __BaseException {
132
132
  */
133
133
  constructor(opts: __ExceptionOptionType<TargetNotFoundException, __BaseException>);
134
134
  }
135
+ /**
136
+ * @public
137
+ */
138
+ export declare class ScheduledMessageLimitExceededException extends __BaseException {
139
+ readonly name: "ScheduledMessageLimitExceededException";
140
+ readonly $fault: "client";
141
+ /**
142
+ * Maximum number of scheduled messages per user.
143
+ * @public
144
+ */
145
+ limit: number;
146
+ /**
147
+ * @internal
148
+ */
149
+ constructor(opts: __ExceptionOptionType<ScheduledMessageLimitExceededException, __BaseException>);
150
+ }
135
151
  /**
136
152
  * @public
137
153
  */
@@ -154,6 +170,17 @@ export declare class MessageNotFoundException extends __BaseException {
154
170
  */
155
171
  constructor(opts: __ExceptionOptionType<MessageNotFoundException, __BaseException>);
156
172
  }
173
+ /**
174
+ * @public
175
+ */
176
+ export declare class ScheduledMessageNotFoundException extends __BaseException {
177
+ readonly name: "ScheduledMessageNotFoundException";
178
+ readonly $fault: "client";
179
+ /**
180
+ * @internal
181
+ */
182
+ constructor(opts: __ExceptionOptionType<ScheduledMessageNotFoundException, __BaseException>);
183
+ }
157
184
  /**
158
185
  * @public
159
186
  */