@wildix/stream-client 0.0.15 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/StreamService.js +3 -7
- package/dist-cjs/StreamServiceClient.js +34 -27
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +58 -0
- package/dist-cjs/commands/AddChannelMemberCommand.js +10 -11
- package/dist-cjs/commands/AddChannelMembersCommand.js +10 -11
- package/dist-cjs/commands/AssignChannelCommand.js +10 -11
- package/dist-cjs/commands/CreateGroupChannelCommand.js +10 -11
- package/dist-cjs/commands/CreateKiteChannelCommand.js +10 -11
- package/dist-cjs/commands/CreateSectionCommand.js +10 -11
- package/dist-cjs/commands/DeleteChannelCommand.js +10 -11
- package/dist-cjs/commands/DeleteChannelMemberCommand.js +10 -11
- package/dist-cjs/commands/DeleteMessageCommand.js +10 -11
- package/dist-cjs/commands/DeleteMessageReactionCommand.js +10 -11
- package/dist-cjs/commands/DeleteSectionCommand.js +10 -11
- package/dist-cjs/commands/GetChannelCommand.js +10 -11
- package/dist-cjs/commands/GetChannelMemberCommand.js +10 -11
- package/dist-cjs/commands/GetDirectChannelIdCommand.js +10 -11
- package/dist-cjs/commands/GetFilePresignedDownloadUrlCommand.js +10 -11
- package/dist-cjs/commands/GetInboxCommand.js +10 -11
- package/dist-cjs/commands/GetMessageCommand.js +10 -11
- package/dist-cjs/commands/GetOrCreateDirectChannelCommand.js +10 -11
- package/dist-cjs/commands/GetOrCreateSmsChannelCommand.js +10 -11
- package/dist-cjs/commands/GetOrCreateTelephonyChannelCommand.js +10 -11
- package/dist-cjs/commands/GetOrCreateWhatsAppChannelCommand.js +10 -11
- package/dist-cjs/commands/GetSmsChannelIdCommand.js +10 -11
- package/dist-cjs/commands/GetTelephonyChannelIdCommand.js +10 -11
- package/dist-cjs/commands/GetTokenCommand.js +10 -11
- package/dist-cjs/commands/GetUploadedFileInfoCommand.js +10 -11
- package/dist-cjs/commands/GetWhatsAppChannelIdCommand.js +10 -11
- package/dist-cjs/commands/HideChannelCommand.js +10 -11
- package/dist-cjs/commands/JoinChannelCommand.js +10 -11
- package/dist-cjs/commands/LeaveChannelCommand.js +10 -11
- package/dist-cjs/commands/ListChannelMembersCommand.js +10 -11
- package/dist-cjs/commands/ListChannelMembersReadStatusCommand.js +10 -11
- package/dist-cjs/commands/ListChannelsCommand.js +10 -11
- package/dist-cjs/commands/ListMentionsCommand.js +10 -11
- package/dist-cjs/commands/ListMessagesCommand.js +10 -11
- package/dist-cjs/commands/MarkReadCommand.js +10 -11
- package/dist-cjs/commands/MarkUnreadCommand.js +10 -11
- package/dist-cjs/commands/MoveChannelToSectionCommand.js +10 -11
- package/dist-cjs/commands/MuteChannelCommand.js +10 -11
- package/dist-cjs/commands/PartialUpdateChannelCommand.js +10 -11
- package/dist-cjs/commands/PartialUpdateMessageCommand.js +10 -11
- package/dist-cjs/commands/PinChannelCommand.js +10 -11
- package/dist-cjs/commands/PinMessageCommand.js +10 -11
- package/dist-cjs/commands/QueryChannelsCommand.js +10 -11
- package/dist-cjs/commands/RemoveChannelFromSectionCommand.js +10 -11
- package/dist-cjs/commands/RenameSectionCommand.js +10 -11
- package/dist-cjs/commands/SendGiphyCommand.js +10 -11
- package/dist-cjs/commands/SendMessageCommand.js +10 -11
- package/dist-cjs/commands/SendMessageReactionCommand.js +10 -11
- package/dist-cjs/commands/SendSystemMessageCommand.js +10 -11
- package/dist-cjs/commands/SendTypingStartCommand.js +10 -11
- package/dist-cjs/commands/SendTypingStopCommand.js +10 -11
- package/dist-cjs/commands/ShowChannelCommand.js +10 -11
- package/dist-cjs/commands/UnmuteChannelCommand.js +10 -11
- package/dist-cjs/commands/UnpinChannelCommand.js +10 -11
- package/dist-cjs/commands/UnpinMessageCommand.js +10 -11
- package/dist-cjs/commands/UpdateChannelCommand.js +10 -11
- package/dist-cjs/commands/UpdateMessageCommand.js +10 -11
- package/dist-cjs/commands/UploadFileCommand.js +10 -11
- package/dist-cjs/commands/index.js +0 -2
- package/dist-cjs/endpoint/EndpointParameters.js +18 -0
- package/dist-cjs/endpoint/bdd.js +28 -0
- package/dist-cjs/endpoint/endpointResolver.js +16 -0
- package/dist-cjs/index.js +4 -1
- package/dist-cjs/models/StreamServiceServiceException.js +3 -3
- package/dist-cjs/models/enums.js +114 -0
- package/dist-cjs/models/errors.js +209 -0
- package/dist-cjs/models/models_0.js +0 -387
- package/dist-cjs/runtimeConfig.browser.js +11 -11
- package/dist-cjs/runtimeConfig.js +22 -18
- package/dist-cjs/runtimeConfig.shared.js +30 -10
- package/dist-cjs/runtimeExtensions.js +6 -5
- package/dist-cjs/schemas/schemas_0.js +1584 -0
- package/dist-es/StreamService.js +6 -10
- package/dist-es/StreamServiceClient.js +30 -23
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +52 -0
- package/dist-es/commands/AddChannelMemberCommand.js +9 -10
- package/dist-es/commands/AddChannelMembersCommand.js +9 -10
- package/dist-es/commands/AssignChannelCommand.js +9 -10
- package/dist-es/commands/CreateGroupChannelCommand.js +9 -10
- package/dist-es/commands/CreateKiteChannelCommand.js +9 -10
- package/dist-es/commands/CreateSectionCommand.js +9 -10
- package/dist-es/commands/DeleteChannelCommand.js +9 -10
- package/dist-es/commands/DeleteChannelMemberCommand.js +9 -10
- package/dist-es/commands/DeleteMessageCommand.js +9 -10
- package/dist-es/commands/DeleteMessageReactionCommand.js +9 -10
- package/dist-es/commands/DeleteSectionCommand.js +9 -10
- package/dist-es/commands/GetChannelCommand.js +9 -10
- package/dist-es/commands/GetChannelMemberCommand.js +9 -10
- package/dist-es/commands/GetDirectChannelIdCommand.js +9 -10
- package/dist-es/commands/GetFilePresignedDownloadUrlCommand.js +9 -10
- package/dist-es/commands/GetInboxCommand.js +9 -10
- package/dist-es/commands/GetMessageCommand.js +9 -10
- package/dist-es/commands/GetOrCreateDirectChannelCommand.js +9 -10
- package/dist-es/commands/GetOrCreateSmsChannelCommand.js +9 -10
- package/dist-es/commands/GetOrCreateTelephonyChannelCommand.js +9 -10
- package/dist-es/commands/GetOrCreateWhatsAppChannelCommand.js +9 -10
- package/dist-es/commands/GetSmsChannelIdCommand.js +9 -10
- package/dist-es/commands/GetTelephonyChannelIdCommand.js +9 -10
- package/dist-es/commands/GetTokenCommand.js +9 -10
- package/dist-es/commands/GetUploadedFileInfoCommand.js +9 -10
- package/dist-es/commands/GetWhatsAppChannelIdCommand.js +9 -10
- package/dist-es/commands/HideChannelCommand.js +9 -10
- package/dist-es/commands/JoinChannelCommand.js +9 -10
- package/dist-es/commands/LeaveChannelCommand.js +9 -10
- package/dist-es/commands/ListChannelMembersCommand.js +9 -10
- package/dist-es/commands/ListChannelMembersReadStatusCommand.js +9 -10
- package/dist-es/commands/ListChannelsCommand.js +9 -10
- package/dist-es/commands/ListMentionsCommand.js +9 -10
- package/dist-es/commands/ListMessagesCommand.js +9 -10
- package/dist-es/commands/MarkReadCommand.js +9 -10
- package/dist-es/commands/MarkUnreadCommand.js +9 -10
- package/dist-es/commands/MoveChannelToSectionCommand.js +9 -10
- package/dist-es/commands/MuteChannelCommand.js +9 -10
- package/dist-es/commands/PartialUpdateChannelCommand.js +9 -10
- package/dist-es/commands/PartialUpdateMessageCommand.js +9 -10
- package/dist-es/commands/PinChannelCommand.js +9 -10
- package/dist-es/commands/PinMessageCommand.js +9 -10
- package/dist-es/commands/QueryChannelsCommand.js +9 -10
- package/dist-es/commands/RemoveChannelFromSectionCommand.js +9 -10
- package/dist-es/commands/RenameSectionCommand.js +9 -10
- package/dist-es/commands/SendGiphyCommand.js +9 -10
- package/dist-es/commands/SendMessageCommand.js +9 -10
- package/dist-es/commands/SendMessageReactionCommand.js +9 -10
- package/dist-es/commands/SendSystemMessageCommand.js +9 -10
- package/dist-es/commands/SendTypingStartCommand.js +9 -10
- package/dist-es/commands/SendTypingStopCommand.js +9 -10
- package/dist-es/commands/ShowChannelCommand.js +9 -10
- package/dist-es/commands/UnmuteChannelCommand.js +9 -10
- package/dist-es/commands/UnpinChannelCommand.js +9 -10
- package/dist-es/commands/UnpinMessageCommand.js +9 -10
- package/dist-es/commands/UpdateChannelCommand.js +9 -10
- package/dist-es/commands/UpdateMessageCommand.js +9 -10
- package/dist-es/commands/UploadFileCommand.js +9 -10
- package/dist-es/commands/index.js +0 -2
- package/dist-es/endpoint/EndpointParameters.js +14 -0
- package/dist-es/endpoint/bdd.js +25 -0
- package/dist-es/endpoint/endpointResolver.js +12 -0
- package/dist-es/index.js +4 -1
- package/dist-es/models/StreamServiceServiceException.js +1 -1
- package/dist-es/models/enums.js +111 -0
- package/dist-es/models/errors.js +191 -0
- package/dist-es/models/models_0.js +1 -371
- package/dist-es/runtimeConfig.browser.js +7 -7
- package/dist-es/runtimeConfig.js +17 -13
- package/dist-es/runtimeConfig.shared.js +24 -4
- package/dist-es/runtimeExtensions.js +6 -5
- package/dist-es/schemas/schemas_0.js +1577 -0
- package/dist-types/StreamService.d.ts +59 -75
- package/dist-types/StreamServiceClient.d.ts +90 -76
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
- package/dist-types/commands/AddChannelMemberCommand.d.ts +11 -7
- package/dist-types/commands/AddChannelMembersCommand.d.ts +11 -7
- package/dist-types/commands/AssignChannelCommand.d.ts +11 -7
- package/dist-types/commands/CreateGroupChannelCommand.d.ts +11 -7
- package/dist-types/commands/CreateKiteChannelCommand.d.ts +11 -7
- package/dist-types/commands/CreateSectionCommand.d.ts +11 -7
- package/dist-types/commands/DeleteChannelCommand.d.ts +11 -7
- package/dist-types/commands/DeleteChannelMemberCommand.d.ts +11 -7
- package/dist-types/commands/DeleteMessageCommand.d.ts +11 -7
- package/dist-types/commands/DeleteMessageReactionCommand.d.ts +11 -7
- package/dist-types/commands/DeleteSectionCommand.d.ts +11 -7
- package/dist-types/commands/GetChannelCommand.d.ts +11 -7
- package/dist-types/commands/GetChannelMemberCommand.d.ts +11 -7
- package/dist-types/commands/GetDirectChannelIdCommand.d.ts +11 -7
- package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +11 -7
- package/dist-types/commands/GetInboxCommand.d.ts +11 -7
- package/dist-types/commands/GetMessageCommand.d.ts +11 -7
- package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +11 -7
- package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +11 -7
- package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +11 -7
- package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +11 -7
- package/dist-types/commands/GetSmsChannelIdCommand.d.ts +11 -7
- package/dist-types/commands/GetTelephonyChannelIdCommand.d.ts +11 -7
- package/dist-types/commands/GetTokenCommand.d.ts +11 -7
- package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +11 -7
- package/dist-types/commands/GetWhatsAppChannelIdCommand.d.ts +11 -7
- package/dist-types/commands/HideChannelCommand.d.ts +11 -7
- package/dist-types/commands/JoinChannelCommand.d.ts +11 -7
- package/dist-types/commands/LeaveChannelCommand.d.ts +11 -7
- package/dist-types/commands/ListChannelMembersCommand.d.ts +11 -7
- package/dist-types/commands/ListChannelMembersReadStatusCommand.d.ts +11 -7
- package/dist-types/commands/ListChannelsCommand.d.ts +11 -7
- package/dist-types/commands/ListMentionsCommand.d.ts +11 -7
- package/dist-types/commands/ListMessagesCommand.d.ts +11 -7
- package/dist-types/commands/MarkReadCommand.d.ts +11 -7
- package/dist-types/commands/MarkUnreadCommand.d.ts +11 -7
- package/dist-types/commands/MoveChannelToSectionCommand.d.ts +11 -7
- package/dist-types/commands/MuteChannelCommand.d.ts +11 -7
- package/dist-types/commands/PartialUpdateChannelCommand.d.ts +11 -7
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +11 -7
- package/dist-types/commands/PinChannelCommand.d.ts +11 -7
- package/dist-types/commands/PinMessageCommand.d.ts +11 -7
- package/dist-types/commands/QueryChannelsCommand.d.ts +11 -7
- package/dist-types/commands/RemoveChannelFromSectionCommand.d.ts +11 -7
- package/dist-types/commands/RenameSectionCommand.d.ts +11 -7
- package/dist-types/commands/SendGiphyCommand.d.ts +11 -7
- package/dist-types/commands/SendMessageCommand.d.ts +11 -7
- package/dist-types/commands/SendMessageReactionCommand.d.ts +11 -7
- package/dist-types/commands/SendSystemMessageCommand.d.ts +11 -7
- package/dist-types/commands/SendTypingStartCommand.d.ts +11 -7
- package/dist-types/commands/SendTypingStopCommand.d.ts +11 -7
- package/dist-types/commands/ShowChannelCommand.d.ts +11 -7
- package/dist-types/commands/UnmuteChannelCommand.d.ts +11 -7
- package/dist-types/commands/UnpinChannelCommand.d.ts +11 -7
- package/dist-types/commands/UnpinMessageCommand.d.ts +11 -7
- package/dist-types/commands/UpdateChannelCommand.d.ts +11 -7
- package/dist-types/commands/UpdateMessageCommand.d.ts +11 -7
- package/dist-types/commands/UploadFileCommand.d.ts +11 -7
- package/dist-types/commands/index.d.ts +0 -2
- package/dist-types/endpoint/EndpointParameters.d.ts +48 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +4 -3
- package/dist-types/index.d.ts +5 -1
- package/dist-types/models/StreamServiceServiceException.d.ts +1 -1
- package/dist-types/models/enums.d.ts +286 -0
- package/dist-types/models/errors.d.ts +189 -0
- package/dist-types/models/models_0.d.ts +69 -713
- package/dist-types/runtimeConfig.browser.d.ts +37 -18
- package/dist-types/runtimeConfig.d.ts +36 -17
- package/dist-types/runtimeConfig.native.d.ts +38 -19
- package/dist-types/runtimeConfig.shared.d.ts +20 -3
- package/dist-types/runtimeExtensions.d.ts +1 -1
- package/dist-types/schemas/schemas_0.d.ts +243 -0
- package/package.json +14 -40
- package/dist-cjs/commands/SearchChannelsCommand.js +0 -21
- package/dist-cjs/commands/SearchMessagesCommand.js +0 -21
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/protocols/Aws_restJson1.js +0 -2474
- package/dist-es/commands/SearchChannelsCommand.js +0 -17
- package/dist-es/commands/SearchMessagesCommand.js +0 -17
- package/dist-es/models/index.js +0 -1
- package/dist-es/protocols/Aws_restJson1.js +0 -2349
- package/dist-types/commands/SearchChannelsCommand.d.ts +0 -163
- package/dist-types/commands/SearchMessagesCommand.d.ts +0 -211
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -542
|
@@ -1,69 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export declare class ForbiddenException extends __BaseException {
|
|
7
|
-
readonly name: "ForbiddenException";
|
|
8
|
-
readonly $fault: "client";
|
|
9
|
-
/**
|
|
10
|
-
* @internal
|
|
11
|
-
*/
|
|
12
|
-
constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @public
|
|
16
|
-
*/
|
|
17
|
-
export declare class RateLimitExceededException extends __BaseException {
|
|
18
|
-
readonly name: "RateLimitExceededException";
|
|
19
|
-
readonly $fault: "client";
|
|
20
|
-
/**
|
|
21
|
-
* Displays the applicable rate limits for the current request.
|
|
22
|
-
* @public
|
|
23
|
-
*/
|
|
24
|
-
rateLimit?: string | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* Indicates how many requests a user can still make within the current time window.
|
|
27
|
-
* @public
|
|
28
|
-
*/
|
|
29
|
-
rateLimitRemaining?: number | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* Shows the time in seconds until the rate limit resets.
|
|
32
|
-
* @public
|
|
33
|
-
*/
|
|
34
|
-
rateLimitReset?: number | undefined;
|
|
35
|
-
/**
|
|
36
|
-
* Displays how many seconds the user agent should wait before making a follow-up request.
|
|
37
|
-
* @public
|
|
38
|
-
*/
|
|
39
|
-
retryAfter?: number | undefined;
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
43
|
-
constructor(opts: __ExceptionOptionType<RateLimitExceededException, __BaseException>);
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* @public
|
|
47
|
-
*/
|
|
48
|
-
export declare class UnauthorizedException extends __BaseException {
|
|
49
|
-
readonly name: "UnauthorizedException";
|
|
50
|
-
readonly $fault: "client";
|
|
51
|
-
/**
|
|
52
|
-
* @internal
|
|
53
|
-
*/
|
|
54
|
-
constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* @public
|
|
58
|
-
*/
|
|
59
|
-
export declare class ValidationException extends __BaseException {
|
|
60
|
-
readonly name: "ValidationException";
|
|
61
|
-
readonly $fault: "client";
|
|
62
|
-
/**
|
|
63
|
-
* @internal
|
|
64
|
-
*/
|
|
65
|
-
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
66
|
-
}
|
|
1
|
+
import type { AssignChannelVariant, ButtonVariant, ChannelAccess, ChannelContextEventAttendeeStatus, ChannelContextSource, ChannelMemberRole, ChannelsFilter, ChannelType, ChannelWhatsAppStatus, DownloadStrategy, FileCategory, GroupChannelCreationEventType, GroupChannelUnsetOptions, MentionsFilter, MessageSmsStatus, MessageType, MessageUnsetFields, MessageWhatsAppStatus, SectionType } from "./enums";
|
|
67
2
|
/**
|
|
68
3
|
* @public
|
|
69
4
|
*/
|
|
@@ -76,7 +11,7 @@ export interface TemplateParameter {
|
|
|
76
11
|
*/
|
|
77
12
|
export interface TemplateWithParameters {
|
|
78
13
|
name: string;
|
|
79
|
-
parameters?:
|
|
14
|
+
parameters?: TemplateParameter[] | undefined;
|
|
80
15
|
}
|
|
81
16
|
/**
|
|
82
17
|
* @public
|
|
@@ -135,26 +70,17 @@ export declare namespace ButtonHandler {
|
|
|
135
70
|
action?: never;
|
|
136
71
|
$unknown: [string, any];
|
|
137
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* @deprecated unused in schema-serde mode.
|
|
75
|
+
*
|
|
76
|
+
*/
|
|
138
77
|
interface Visitor<T> {
|
|
139
78
|
link: (value: ButtonLinkHandler) => T;
|
|
140
79
|
reply: (value: ButtonReplyHandler) => T;
|
|
141
80
|
action: (value: ButtonActionHandler) => T;
|
|
142
81
|
_: (name: string, value: any) => T;
|
|
143
82
|
}
|
|
144
|
-
const visit: <T>(value: ButtonHandler, visitor: Visitor<T>) => T;
|
|
145
83
|
}
|
|
146
|
-
/**
|
|
147
|
-
* @public
|
|
148
|
-
* @enum
|
|
149
|
-
*/
|
|
150
|
-
export declare const ButtonVariant: {
|
|
151
|
-
readonly CONTAINED: "contained";
|
|
152
|
-
readonly OUTLINED: "outlined";
|
|
153
|
-
};
|
|
154
|
-
/**
|
|
155
|
-
* @public
|
|
156
|
-
*/
|
|
157
|
-
export type ButtonVariant = typeof ButtonVariant[keyof typeof ButtonVariant];
|
|
158
84
|
/**
|
|
159
85
|
* @public
|
|
160
86
|
*/
|
|
@@ -183,11 +109,14 @@ export declare namespace ActionElement {
|
|
|
183
109
|
button?: never;
|
|
184
110
|
$unknown: [string, any];
|
|
185
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* @deprecated unused in schema-serde mode.
|
|
114
|
+
*
|
|
115
|
+
*/
|
|
186
116
|
interface Visitor<T> {
|
|
187
117
|
button: (value: ButtonElement) => T;
|
|
188
118
|
_: (name: string, value: any) => T;
|
|
189
119
|
}
|
|
190
|
-
const visit: <T>(value: ActionElement, visitor: Visitor<T>) => T;
|
|
191
120
|
}
|
|
192
121
|
/**
|
|
193
122
|
* User invitation payload used when creating channels or adding members.
|
|
@@ -239,18 +168,6 @@ export interface AddChannelMemberInput {
|
|
|
239
168
|
memberToInvite?: UserToInvite | undefined;
|
|
240
169
|
hideHistory?: boolean | undefined;
|
|
241
170
|
}
|
|
242
|
-
/**
|
|
243
|
-
* @public
|
|
244
|
-
* @enum
|
|
245
|
-
*/
|
|
246
|
-
export declare const ChannelMemberRole: {
|
|
247
|
-
readonly MEMBER: "member";
|
|
248
|
-
readonly SUPERVISOR: "supervisor";
|
|
249
|
-
};
|
|
250
|
-
/**
|
|
251
|
-
* @public
|
|
252
|
-
*/
|
|
253
|
-
export type ChannelMemberRole = typeof ChannelMemberRole[keyof typeof ChannelMemberRole];
|
|
254
171
|
/**
|
|
255
172
|
* Channel membership row.
|
|
256
173
|
* @public
|
|
@@ -274,39 +191,6 @@ export interface AddChannelMemberOutput {
|
|
|
274
191
|
*/
|
|
275
192
|
member: ChannelMember;
|
|
276
193
|
}
|
|
277
|
-
/**
|
|
278
|
-
* @public
|
|
279
|
-
*/
|
|
280
|
-
export declare class ChannelNotFoundException extends __BaseException {
|
|
281
|
-
readonly name: "ChannelNotFoundException";
|
|
282
|
-
readonly $fault: "client";
|
|
283
|
-
/**
|
|
284
|
-
* @internal
|
|
285
|
-
*/
|
|
286
|
-
constructor(opts: __ExceptionOptionType<ChannelNotFoundException, __BaseException>);
|
|
287
|
-
}
|
|
288
|
-
/**
|
|
289
|
-
* @public
|
|
290
|
-
*/
|
|
291
|
-
export declare class MemberAlreadyExistException extends __BaseException {
|
|
292
|
-
readonly name: "MemberAlreadyExistException";
|
|
293
|
-
readonly $fault: "client";
|
|
294
|
-
/**
|
|
295
|
-
* @internal
|
|
296
|
-
*/
|
|
297
|
-
constructor(opts: __ExceptionOptionType<MemberAlreadyExistException, __BaseException>);
|
|
298
|
-
}
|
|
299
|
-
/**
|
|
300
|
-
* @public
|
|
301
|
-
*/
|
|
302
|
-
export declare class StreamServiceException extends __BaseException {
|
|
303
|
-
readonly name: "StreamServiceException";
|
|
304
|
-
readonly $fault: "server";
|
|
305
|
-
/**
|
|
306
|
-
* @internal
|
|
307
|
-
*/
|
|
308
|
-
constructor(opts: __ExceptionOptionType<StreamServiceException, __BaseException>);
|
|
309
|
-
}
|
|
310
194
|
/**
|
|
311
195
|
* @public
|
|
312
196
|
*/
|
|
@@ -323,8 +207,8 @@ export interface AddChannelMembersInput {
|
|
|
323
207
|
userId?: string | undefined;
|
|
324
208
|
channelId: string;
|
|
325
209
|
silent?: boolean | undefined;
|
|
326
|
-
members?:
|
|
327
|
-
membersToInvite?:
|
|
210
|
+
members?: string[] | undefined;
|
|
211
|
+
membersToInvite?: UserToInvite[] | undefined;
|
|
328
212
|
hideHistory?: boolean | undefined;
|
|
329
213
|
/**
|
|
330
214
|
* Message id used to seed unread state for added members.
|
|
@@ -336,7 +220,7 @@ export interface AddChannelMembersInput {
|
|
|
336
220
|
* @public
|
|
337
221
|
*/
|
|
338
222
|
export interface AddChannelMembersOutput {
|
|
339
|
-
members:
|
|
223
|
+
members: ChannelMember[];
|
|
340
224
|
}
|
|
341
225
|
/**
|
|
342
226
|
* @public
|
|
@@ -364,12 +248,15 @@ export declare namespace AssignChannelAssigneeRequest {
|
|
|
364
248
|
email?: never;
|
|
365
249
|
$unknown: [string, any];
|
|
366
250
|
}
|
|
251
|
+
/**
|
|
252
|
+
* @deprecated unused in schema-serde mode.
|
|
253
|
+
*
|
|
254
|
+
*/
|
|
367
255
|
interface Visitor<T> {
|
|
368
256
|
id: (value: string) => T;
|
|
369
257
|
email: (value: string) => T;
|
|
370
258
|
_: (name: string, value: any) => T;
|
|
371
259
|
}
|
|
372
|
-
const visit: <T>(value: AssignChannelAssigneeRequest, visitor: Visitor<T>) => T;
|
|
373
260
|
}
|
|
374
261
|
/**
|
|
375
262
|
* @public
|
|
@@ -394,26 +281,15 @@ export declare namespace AssignChannelServiceRequest {
|
|
|
394
281
|
uri?: never;
|
|
395
282
|
$unknown: [string, any];
|
|
396
283
|
}
|
|
284
|
+
/**
|
|
285
|
+
* @deprecated unused in schema-serde mode.
|
|
286
|
+
*
|
|
287
|
+
*/
|
|
397
288
|
interface Visitor<T> {
|
|
398
289
|
uri: (value: string) => T;
|
|
399
290
|
_: (name: string, value: any) => T;
|
|
400
291
|
}
|
|
401
|
-
const visit: <T>(value: AssignChannelServiceRequest, visitor: Visitor<T>) => T;
|
|
402
292
|
}
|
|
403
|
-
/**
|
|
404
|
-
* @public
|
|
405
|
-
* @enum
|
|
406
|
-
*/
|
|
407
|
-
export declare const AssignChannelVariant: {
|
|
408
|
-
readonly ADAPTIVE: "ADAPTIVE";
|
|
409
|
-
readonly EVERYBODY: "EVERYBODY";
|
|
410
|
-
readonly SELECTED: "SELECTED";
|
|
411
|
-
readonly SKIP: "SKIP";
|
|
412
|
-
};
|
|
413
|
-
/**
|
|
414
|
-
* @public
|
|
415
|
-
*/
|
|
416
|
-
export type AssignChannelVariant = typeof AssignChannelVariant[keyof typeof AssignChannelVariant];
|
|
417
293
|
/**
|
|
418
294
|
* @public
|
|
419
295
|
*/
|
|
@@ -441,58 +317,6 @@ export interface AssignChannelOutput {
|
|
|
441
317
|
assigneeId?: string | undefined;
|
|
442
318
|
serviceUri?: string | undefined;
|
|
443
319
|
}
|
|
444
|
-
/**
|
|
445
|
-
* @public
|
|
446
|
-
* @enum
|
|
447
|
-
*/
|
|
448
|
-
export declare const AttachmentType: {
|
|
449
|
-
readonly AUDIO: "audio";
|
|
450
|
-
readonly FILE: "file";
|
|
451
|
-
readonly IMAGE: "image";
|
|
452
|
-
readonly VIDEO: "video";
|
|
453
|
-
};
|
|
454
|
-
/**
|
|
455
|
-
* @public
|
|
456
|
-
*/
|
|
457
|
-
export type AttachmentType = typeof AttachmentType[keyof typeof AttachmentType];
|
|
458
|
-
/**
|
|
459
|
-
* @public
|
|
460
|
-
* @enum
|
|
461
|
-
*/
|
|
462
|
-
export declare const ChannelAccess: {
|
|
463
|
-
readonly PRIVATE: "private";
|
|
464
|
-
readonly PUBLIC: "public";
|
|
465
|
-
};
|
|
466
|
-
/**
|
|
467
|
-
* @public
|
|
468
|
-
*/
|
|
469
|
-
export type ChannelAccess = typeof ChannelAccess[keyof typeof ChannelAccess];
|
|
470
|
-
/**
|
|
471
|
-
* @public
|
|
472
|
-
* @enum
|
|
473
|
-
*/
|
|
474
|
-
export declare const ChannelType: {
|
|
475
|
-
readonly DIRECT: "direct";
|
|
476
|
-
readonly GROUP: "group";
|
|
477
|
-
};
|
|
478
|
-
/**
|
|
479
|
-
* @public
|
|
480
|
-
*/
|
|
481
|
-
export type ChannelType = typeof ChannelType[keyof typeof ChannelType];
|
|
482
|
-
/**
|
|
483
|
-
* @public
|
|
484
|
-
* @enum
|
|
485
|
-
*/
|
|
486
|
-
export declare const ChannelContextEventAttendeeStatus: {
|
|
487
|
-
readonly ACCEPTED: "accepted";
|
|
488
|
-
readonly DECLINED: "declined";
|
|
489
|
-
readonly NONE: "none";
|
|
490
|
-
readonly TENTATIVE: "tentative";
|
|
491
|
-
};
|
|
492
|
-
/**
|
|
493
|
-
* @public
|
|
494
|
-
*/
|
|
495
|
-
export type ChannelContextEventAttendeeStatus = typeof ChannelContextEventAttendeeStatus[keyof typeof ChannelContextEventAttendeeStatus];
|
|
496
320
|
/**
|
|
497
321
|
* @public
|
|
498
322
|
*/
|
|
@@ -510,7 +334,7 @@ export interface ChannelContextEvent {
|
|
|
510
334
|
start?: string | undefined;
|
|
511
335
|
end?: string | undefined;
|
|
512
336
|
summary?: string | undefined;
|
|
513
|
-
attendees?:
|
|
337
|
+
attendees?: ChannelContextEventAttendee[] | undefined;
|
|
514
338
|
}
|
|
515
339
|
/**
|
|
516
340
|
* @public
|
|
@@ -522,39 +346,15 @@ export interface ChannelContextPushToTalk {
|
|
|
522
346
|
*/
|
|
523
347
|
broadcastId?: string | undefined;
|
|
524
348
|
}
|
|
525
|
-
/**
|
|
526
|
-
* @public
|
|
527
|
-
* @enum
|
|
528
|
-
*/
|
|
529
|
-
export declare const ChannelContextSource: {
|
|
530
|
-
readonly KITE: "kite";
|
|
531
|
-
};
|
|
532
|
-
/**
|
|
533
|
-
* @public
|
|
534
|
-
*/
|
|
535
|
-
export type ChannelContextSource = typeof ChannelContextSource[keyof typeof ChannelContextSource];
|
|
536
349
|
/**
|
|
537
350
|
* @public
|
|
538
351
|
*/
|
|
539
352
|
export interface ChannelContext {
|
|
540
353
|
source?: ChannelContextSource | undefined;
|
|
541
354
|
target?: string | undefined;
|
|
542
|
-
events?:
|
|
355
|
+
events?: ChannelContextEvent[] | undefined;
|
|
543
356
|
ptt?: ChannelContextPushToTalk | undefined;
|
|
544
357
|
}
|
|
545
|
-
/**
|
|
546
|
-
* @public
|
|
547
|
-
* @enum
|
|
548
|
-
*/
|
|
549
|
-
export declare const MessageType: {
|
|
550
|
-
readonly DELETED: "deleted";
|
|
551
|
-
readonly REGULAR: "regular";
|
|
552
|
-
readonly SYSTEM: "system";
|
|
553
|
-
};
|
|
554
|
-
/**
|
|
555
|
-
* @public
|
|
556
|
-
*/
|
|
557
|
-
export type MessageType = typeof MessageType[keyof typeof MessageType];
|
|
558
358
|
/**
|
|
559
359
|
* Preview of the most recent visible message in a channel.
|
|
560
360
|
* @public
|
|
@@ -587,17 +387,6 @@ export interface LastMessagePreview {
|
|
|
587
387
|
*/
|
|
588
388
|
createdAt: string;
|
|
589
389
|
}
|
|
590
|
-
/**
|
|
591
|
-
* @public
|
|
592
|
-
* @enum
|
|
593
|
-
*/
|
|
594
|
-
export declare const ChannelWhatsAppStatus: {
|
|
595
|
-
readonly CHANNEL_CLOSED: "24h_channel_closed";
|
|
596
|
-
};
|
|
597
|
-
/**
|
|
598
|
-
* @public
|
|
599
|
-
*/
|
|
600
|
-
export type ChannelWhatsAppStatus = typeof ChannelWhatsAppStatus[keyof typeof ChannelWhatsAppStatus];
|
|
601
390
|
/**
|
|
602
391
|
* @public
|
|
603
392
|
*/
|
|
@@ -731,17 +520,6 @@ export interface Channel {
|
|
|
731
520
|
*/
|
|
732
521
|
wizyGuestViewOnly?: boolean | undefined;
|
|
733
522
|
}
|
|
734
|
-
/**
|
|
735
|
-
* @public
|
|
736
|
-
*/
|
|
737
|
-
export declare class ChannelAlreadyExistException extends __BaseException {
|
|
738
|
-
readonly name: "ChannelAlreadyExistException";
|
|
739
|
-
readonly $fault: "client";
|
|
740
|
-
/**
|
|
741
|
-
* @internal
|
|
742
|
-
*/
|
|
743
|
-
constructor(opts: __ExceptionOptionType<ChannelAlreadyExistException, __BaseException>);
|
|
744
|
-
}
|
|
745
523
|
/**
|
|
746
524
|
* Read pointer for one channel member.
|
|
747
525
|
* @public
|
|
@@ -759,43 +537,13 @@ export interface ChannelMemberReadStatus {
|
|
|
759
537
|
*/
|
|
760
538
|
lastReadVisibleSeq?: number | undefined;
|
|
761
539
|
}
|
|
762
|
-
/**
|
|
763
|
-
* @public
|
|
764
|
-
* @enum
|
|
765
|
-
*/
|
|
766
|
-
export declare const ChannelsFilter: {
|
|
767
|
-
/**
|
|
768
|
-
* Archived (hidden) channels.
|
|
769
|
-
*/
|
|
770
|
-
readonly ARCHIVED: "archived";
|
|
771
|
-
/**
|
|
772
|
-
* Non-archived channels with at least one unread message.
|
|
773
|
-
*/
|
|
774
|
-
readonly UNREAD: "unread";
|
|
775
|
-
};
|
|
776
|
-
/**
|
|
777
|
-
* @public
|
|
778
|
-
*/
|
|
779
|
-
export type ChannelsFilter = typeof ChannelsFilter[keyof typeof ChannelsFilter];
|
|
780
540
|
/**
|
|
781
541
|
* Batch channel lookup query.
|
|
782
542
|
* @public
|
|
783
543
|
*/
|
|
784
544
|
export interface ChannelsQuery {
|
|
785
|
-
ids?:
|
|
545
|
+
ids?: string[] | undefined;
|
|
786
546
|
}
|
|
787
|
-
/**
|
|
788
|
-
* @public
|
|
789
|
-
* @enum
|
|
790
|
-
*/
|
|
791
|
-
export declare const GroupChannelCreationEventType: {
|
|
792
|
-
readonly CONVERSATION_CREATED: "conversation_created";
|
|
793
|
-
readonly CONVERSATION_CREATED_WITH_NAME: "conversation_created_with_name";
|
|
794
|
-
};
|
|
795
|
-
/**
|
|
796
|
-
* @public
|
|
797
|
-
*/
|
|
798
|
-
export type GroupChannelCreationEventType = typeof GroupChannelCreationEventType[keyof typeof GroupChannelCreationEventType];
|
|
799
547
|
/**
|
|
800
548
|
* @public
|
|
801
549
|
*/
|
|
@@ -896,12 +644,12 @@ export interface CreateGroupChannelInput {
|
|
|
896
644
|
* Existing users to add as members.
|
|
897
645
|
* @public
|
|
898
646
|
*/
|
|
899
|
-
members?:
|
|
647
|
+
members?: string[] | undefined;
|
|
900
648
|
/**
|
|
901
649
|
* Users to invite by email or phone.
|
|
902
650
|
* @public
|
|
903
651
|
*/
|
|
904
|
-
membersToInvite?:
|
|
652
|
+
membersToInvite?: UserToInvite[] | undefined;
|
|
905
653
|
/**
|
|
906
654
|
* System event emitted when a group channel is created.
|
|
907
655
|
* @public
|
|
@@ -976,7 +724,7 @@ export declare namespace Element {
|
|
|
976
724
|
}
|
|
977
725
|
interface ActionsMember {
|
|
978
726
|
template?: never;
|
|
979
|
-
actions:
|
|
727
|
+
actions: ActionElement[];
|
|
980
728
|
$unknown?: never;
|
|
981
729
|
}
|
|
982
730
|
/**
|
|
@@ -987,12 +735,15 @@ export declare namespace Element {
|
|
|
987
735
|
actions?: never;
|
|
988
736
|
$unknown: [string, any];
|
|
989
737
|
}
|
|
738
|
+
/**
|
|
739
|
+
* @deprecated unused in schema-serde mode.
|
|
740
|
+
*
|
|
741
|
+
*/
|
|
990
742
|
interface Visitor<T> {
|
|
991
743
|
template: (value: MessageTemplateConfig) => T;
|
|
992
|
-
actions: (value:
|
|
744
|
+
actions: (value: ActionElement[]) => T;
|
|
993
745
|
_: (name: string, value: any) => T;
|
|
994
746
|
}
|
|
995
|
-
const visit: <T>(value: Element, visitor: Visitor<T>) => T;
|
|
996
747
|
}
|
|
997
748
|
/**
|
|
998
749
|
* Forward reference supplied by the client. The server resolves the original author and snapshot fields at write time.
|
|
@@ -1010,34 +761,6 @@ export interface MessageQuoteRef {
|
|
|
1010
761
|
channelId: string;
|
|
1011
762
|
messageId: string;
|
|
1012
763
|
}
|
|
1013
|
-
/**
|
|
1014
|
-
* @public
|
|
1015
|
-
* @enum
|
|
1016
|
-
*/
|
|
1017
|
-
export declare const MessageSmsStatus: {
|
|
1018
|
-
readonly DELIVERED: "delivered";
|
|
1019
|
-
readonly ERROR: "error";
|
|
1020
|
-
readonly SENT: "sent";
|
|
1021
|
-
readonly TRYING: "trying";
|
|
1022
|
-
};
|
|
1023
|
-
/**
|
|
1024
|
-
* @public
|
|
1025
|
-
*/
|
|
1026
|
-
export type MessageSmsStatus = typeof MessageSmsStatus[keyof typeof MessageSmsStatus];
|
|
1027
|
-
/**
|
|
1028
|
-
* @public
|
|
1029
|
-
* @enum
|
|
1030
|
-
*/
|
|
1031
|
-
export declare const MessageWhatsAppStatus: {
|
|
1032
|
-
readonly DELIVERED: "delivered";
|
|
1033
|
-
readonly ERROR: "error";
|
|
1034
|
-
readonly SENT: "sent";
|
|
1035
|
-
readonly TRYING: "trying";
|
|
1036
|
-
};
|
|
1037
|
-
/**
|
|
1038
|
-
* @public
|
|
1039
|
-
*/
|
|
1040
|
-
export type MessageWhatsAppStatus = typeof MessageWhatsAppStatus[keyof typeof MessageWhatsAppStatus];
|
|
1041
764
|
/**
|
|
1042
765
|
* Initial user message seeded during channel creation.
|
|
1043
766
|
* @public
|
|
@@ -1052,12 +775,12 @@ export interface InitialMessage {
|
|
|
1052
775
|
* Structured rich content blocks.
|
|
1053
776
|
* @public
|
|
1054
777
|
*/
|
|
1055
|
-
elements?:
|
|
778
|
+
elements?: Element[] | undefined;
|
|
1056
779
|
/**
|
|
1057
780
|
* Pre-uploaded file references. Required unless `text` is provided.
|
|
1058
781
|
* @public
|
|
1059
782
|
*/
|
|
1060
|
-
attachments?:
|
|
783
|
+
attachments?: MessageAttachmentRequest[] | undefined;
|
|
1061
784
|
/**
|
|
1062
785
|
* Reply context referencing a quoted message.
|
|
1063
786
|
* @public
|
|
@@ -1099,7 +822,7 @@ export interface InitialMessage {
|
|
|
1099
822
|
* Direct `@user` ids. `@all`, `@here`, and `@channel` are not supported.
|
|
1100
823
|
* @public
|
|
1101
824
|
*/
|
|
1102
|
-
mentions?:
|
|
825
|
+
mentions?: string[] | undefined;
|
|
1103
826
|
}
|
|
1104
827
|
/**
|
|
1105
828
|
* Welcome message seeded during channel creation.
|
|
@@ -1115,12 +838,12 @@ export interface WelcomeMessage {
|
|
|
1115
838
|
* Structured rich content blocks.
|
|
1116
839
|
* @public
|
|
1117
840
|
*/
|
|
1118
|
-
elements?:
|
|
841
|
+
elements?: Element[] | undefined;
|
|
1119
842
|
/**
|
|
1120
843
|
* Pre-uploaded file references. Required unless `text` is provided.
|
|
1121
844
|
* @public
|
|
1122
845
|
*/
|
|
1123
|
-
attachments?:
|
|
846
|
+
attachments?: MessageAttachmentRequest[] | undefined;
|
|
1124
847
|
/**
|
|
1125
848
|
* Reply context referencing a quoted message.
|
|
1126
849
|
* @public
|
|
@@ -1162,7 +885,7 @@ export interface WelcomeMessage {
|
|
|
1162
885
|
* Direct `@user` ids. `@all`, `@here`, and `@channel` are not supported.
|
|
1163
886
|
* @public
|
|
1164
887
|
*/
|
|
1165
|
-
mentions?:
|
|
888
|
+
mentions?: string[] | undefined;
|
|
1166
889
|
userId: string;
|
|
1167
890
|
}
|
|
1168
891
|
/**
|
|
@@ -1186,7 +909,7 @@ export interface CreateKiteChannelInput {
|
|
|
1186
909
|
*/
|
|
1187
910
|
targetId: string;
|
|
1188
911
|
targetRouteId?: string | undefined;
|
|
1189
|
-
welcomeMessages?:
|
|
912
|
+
welcomeMessages?: WelcomeMessage[] | undefined;
|
|
1190
913
|
/**
|
|
1191
914
|
* Initial user message seeded during channel creation.
|
|
1192
915
|
* @public
|
|
@@ -1199,40 +922,6 @@ export interface CreateKiteChannelInput {
|
|
|
1199
922
|
export interface CreateKiteChannelOutput {
|
|
1200
923
|
channel: Channel;
|
|
1201
924
|
}
|
|
1202
|
-
/**
|
|
1203
|
-
* @public
|
|
1204
|
-
* @enum
|
|
1205
|
-
*/
|
|
1206
|
-
export declare const TargetNotEligibleReason: {
|
|
1207
|
-
readonly NO_LICENSE: "no_license";
|
|
1208
|
-
};
|
|
1209
|
-
/**
|
|
1210
|
-
* @public
|
|
1211
|
-
*/
|
|
1212
|
-
export type TargetNotEligibleReason = typeof TargetNotEligibleReason[keyof typeof TargetNotEligibleReason];
|
|
1213
|
-
/**
|
|
1214
|
-
* @public
|
|
1215
|
-
*/
|
|
1216
|
-
export declare class TargetNotEligibleException extends __BaseException {
|
|
1217
|
-
readonly name: "TargetNotEligibleException";
|
|
1218
|
-
readonly $fault: "client";
|
|
1219
|
-
reason?: TargetNotEligibleReason | undefined;
|
|
1220
|
-
/**
|
|
1221
|
-
* @internal
|
|
1222
|
-
*/
|
|
1223
|
-
constructor(opts: __ExceptionOptionType<TargetNotEligibleException, __BaseException>);
|
|
1224
|
-
}
|
|
1225
|
-
/**
|
|
1226
|
-
* @public
|
|
1227
|
-
*/
|
|
1228
|
-
export declare class TargetNotFoundException extends __BaseException {
|
|
1229
|
-
readonly name: "TargetNotFoundException";
|
|
1230
|
-
readonly $fault: "client";
|
|
1231
|
-
/**
|
|
1232
|
-
* @internal
|
|
1233
|
-
*/
|
|
1234
|
-
constructor(opts: __ExceptionOptionType<TargetNotFoundException, __BaseException>);
|
|
1235
|
-
}
|
|
1236
925
|
/**
|
|
1237
926
|
* @public
|
|
1238
927
|
*/
|
|
@@ -1254,24 +943,6 @@ export interface CreateSectionInput {
|
|
|
1254
943
|
sectionId: string;
|
|
1255
944
|
name: string;
|
|
1256
945
|
}
|
|
1257
|
-
/**
|
|
1258
|
-
* @public
|
|
1259
|
-
* @enum
|
|
1260
|
-
*/
|
|
1261
|
-
export declare const SectionType: {
|
|
1262
|
-
/**
|
|
1263
|
-
* Custom section created by the user.
|
|
1264
|
-
*/
|
|
1265
|
-
readonly CUSTOM: "custom";
|
|
1266
|
-
/**
|
|
1267
|
-
* System section maintained by the backend.
|
|
1268
|
-
*/
|
|
1269
|
-
readonly SYSTEM: "system";
|
|
1270
|
-
};
|
|
1271
|
-
/**
|
|
1272
|
-
* @public
|
|
1273
|
-
*/
|
|
1274
|
-
export type SectionType = typeof SectionType[keyof typeof SectionType];
|
|
1275
946
|
/**
|
|
1276
947
|
* Inbox section with metadata, channel count, and unread counters.
|
|
1277
948
|
* @public
|
|
@@ -1372,17 +1043,6 @@ export interface DeleteChannelMemberInput {
|
|
|
1372
1043
|
*/
|
|
1373
1044
|
export interface DeleteChannelMemberOutput {
|
|
1374
1045
|
}
|
|
1375
|
-
/**
|
|
1376
|
-
* @public
|
|
1377
|
-
*/
|
|
1378
|
-
export declare class MemberNotFoundException extends __BaseException {
|
|
1379
|
-
readonly name: "MemberNotFoundException";
|
|
1380
|
-
readonly $fault: "client";
|
|
1381
|
-
/**
|
|
1382
|
-
* @internal
|
|
1383
|
-
*/
|
|
1384
|
-
constructor(opts: __ExceptionOptionType<MemberNotFoundException, __BaseException>);
|
|
1385
|
-
}
|
|
1386
1046
|
/**
|
|
1387
1047
|
* @public
|
|
1388
1048
|
*/
|
|
@@ -1405,17 +1065,6 @@ export interface DeleteMessageInput {
|
|
|
1405
1065
|
*/
|
|
1406
1066
|
export interface DeleteMessageOutput {
|
|
1407
1067
|
}
|
|
1408
|
-
/**
|
|
1409
|
-
* @public
|
|
1410
|
-
*/
|
|
1411
|
-
export declare class MessageNotFoundException extends __BaseException {
|
|
1412
|
-
readonly name: "MessageNotFoundException";
|
|
1413
|
-
readonly $fault: "client";
|
|
1414
|
-
/**
|
|
1415
|
-
* @internal
|
|
1416
|
-
*/
|
|
1417
|
-
constructor(opts: __ExceptionOptionType<MessageNotFoundException, __BaseException>);
|
|
1418
|
-
}
|
|
1419
1068
|
/**
|
|
1420
1069
|
* @public
|
|
1421
1070
|
*/
|
|
@@ -1586,12 +1235,12 @@ export interface Message {
|
|
|
1586
1235
|
* Attached files.
|
|
1587
1236
|
* @public
|
|
1588
1237
|
*/
|
|
1589
|
-
attachments:
|
|
1238
|
+
attachments: MessageAttachment[];
|
|
1590
1239
|
/**
|
|
1591
1240
|
* Users directly mentioned in the message.
|
|
1592
1241
|
* @public
|
|
1593
1242
|
*/
|
|
1594
|
-
mentions:
|
|
1243
|
+
mentions: string[];
|
|
1595
1244
|
/**
|
|
1596
1245
|
* Quoted message reference.
|
|
1597
1246
|
* @public
|
|
@@ -1611,7 +1260,7 @@ export interface Message {
|
|
|
1611
1260
|
* Most recent reactions per type. Fetch the full list on demand.
|
|
1612
1261
|
* @public
|
|
1613
1262
|
*/
|
|
1614
|
-
latestReactions?:
|
|
1263
|
+
latestReactions?: Reaction[] | undefined;
|
|
1615
1264
|
/**
|
|
1616
1265
|
* True when the message is currently pinned at channel scope.
|
|
1617
1266
|
* @public
|
|
@@ -1667,7 +1316,7 @@ export interface Message {
|
|
|
1667
1316
|
* @public
|
|
1668
1317
|
*/
|
|
1669
1318
|
deletedAt?: string | undefined;
|
|
1670
|
-
elements?:
|
|
1319
|
+
elements?: Element[] | undefined;
|
|
1671
1320
|
whatsapp?: boolean | undefined;
|
|
1672
1321
|
whatsappStatus?: MessageWhatsAppStatus | undefined;
|
|
1673
1322
|
sms?: boolean | undefined;
|
|
@@ -1716,54 +1365,6 @@ export interface DeleteSectionInput {
|
|
|
1716
1365
|
*/
|
|
1717
1366
|
export interface DeleteSectionOutput {
|
|
1718
1367
|
}
|
|
1719
|
-
/**
|
|
1720
|
-
* @public
|
|
1721
|
-
*/
|
|
1722
|
-
export declare class SectionNotFoundException extends __BaseException {
|
|
1723
|
-
readonly name: "SectionNotFoundException";
|
|
1724
|
-
readonly $fault: "client";
|
|
1725
|
-
/**
|
|
1726
|
-
* @internal
|
|
1727
|
-
*/
|
|
1728
|
-
constructor(opts: __ExceptionOptionType<SectionNotFoundException, __BaseException>);
|
|
1729
|
-
}
|
|
1730
|
-
export declare enum DownloadStrategy {
|
|
1731
|
-
DEFAULT = 0,
|
|
1732
|
-
DOWNLOAD = 1
|
|
1733
|
-
}
|
|
1734
|
-
/**
|
|
1735
|
-
* @public
|
|
1736
|
-
* @enum
|
|
1737
|
-
*/
|
|
1738
|
-
export declare const FileCategory: {
|
|
1739
|
-
/**
|
|
1740
|
-
* Channel-attached files. Default.
|
|
1741
|
-
*/
|
|
1742
|
-
readonly GENERAL: "channels";
|
|
1743
|
-
/**
|
|
1744
|
-
* Conference recordings.
|
|
1745
|
-
*/
|
|
1746
|
-
readonly RECORDING: "recordings";
|
|
1747
|
-
/**
|
|
1748
|
-
* Wizy conference recordings.
|
|
1749
|
-
*/
|
|
1750
|
-
readonly WIZY_RECORDING: "wizyconfRecordings";
|
|
1751
|
-
};
|
|
1752
|
-
/**
|
|
1753
|
-
* @public
|
|
1754
|
-
*/
|
|
1755
|
-
export type FileCategory = typeof FileCategory[keyof typeof FileCategory];
|
|
1756
|
-
/**
|
|
1757
|
-
* @public
|
|
1758
|
-
*/
|
|
1759
|
-
export declare class FileNotFoundException extends __BaseException {
|
|
1760
|
-
readonly name: "FileNotFoundException";
|
|
1761
|
-
readonly $fault: "client";
|
|
1762
|
-
/**
|
|
1763
|
-
* @internal
|
|
1764
|
-
*/
|
|
1765
|
-
constructor(opts: __ExceptionOptionType<FileNotFoundException, __BaseException>);
|
|
1766
|
-
}
|
|
1767
1368
|
/**
|
|
1768
1369
|
* @public
|
|
1769
1370
|
*/
|
|
@@ -1906,7 +1507,7 @@ export interface InboxState {
|
|
|
1906
1507
|
* Sections that include this channel.
|
|
1907
1508
|
* @public
|
|
1908
1509
|
*/
|
|
1909
|
-
sectionIds:
|
|
1510
|
+
sectionIds: string[];
|
|
1910
1511
|
/**
|
|
1911
1512
|
* Number of unread visible messages.
|
|
1912
1513
|
* @public
|
|
@@ -2100,12 +1701,12 @@ export interface GetInboxOutput {
|
|
|
2100
1701
|
* Recent channels with per-user state and last-message preview.
|
|
2101
1702
|
* @public
|
|
2102
1703
|
*/
|
|
2103
|
-
channels:
|
|
1704
|
+
channels: InboxChannel[];
|
|
2104
1705
|
/**
|
|
2105
1706
|
* Inbox sections with channel counts and unread counters.
|
|
2106
1707
|
* @public
|
|
2107
1708
|
*/
|
|
2108
|
-
sections:
|
|
1709
|
+
sections: Section[];
|
|
2109
1710
|
}
|
|
2110
1711
|
/**
|
|
2111
1712
|
* @public
|
|
@@ -2491,33 +2092,6 @@ export interface GetWhatsAppChannelIdInput {
|
|
|
2491
2092
|
export interface GetWhatsAppChannelIdOutput {
|
|
2492
2093
|
channelId: string;
|
|
2493
2094
|
}
|
|
2494
|
-
/**
|
|
2495
|
-
* @public
|
|
2496
|
-
* @enum
|
|
2497
|
-
*/
|
|
2498
|
-
export declare const GroupChannelUnsetOptions: {
|
|
2499
|
-
readonly ACCESS: "access";
|
|
2500
|
-
readonly ASSIGNEE: "assignee";
|
|
2501
|
-
readonly BROADCAST: "broadcast";
|
|
2502
|
-
readonly CONTEXT: "context";
|
|
2503
|
-
readonly CONTEXT_EVENTS: "contextEvents";
|
|
2504
|
-
readonly CONTEXT_PTT: "contextPtt";
|
|
2505
|
-
readonly DESCRIPTION: "description";
|
|
2506
|
-
readonly KITE_ASSIGN: "kiteAssign";
|
|
2507
|
-
readonly MMS: "mms";
|
|
2508
|
-
readonly PICTURE: "picture";
|
|
2509
|
-
readonly PICTURE_COLOR: "pictureColor";
|
|
2510
|
-
readonly SERVICE: "service";
|
|
2511
|
-
readonly SERVICE_TITLE: "serviceTitle";
|
|
2512
|
-
readonly SMS: "sms";
|
|
2513
|
-
readonly SUBJECT: "subject";
|
|
2514
|
-
readonly WHATSAPP: "whatsapp";
|
|
2515
|
-
readonly WHATSAPP_STATUS: "whatsappStatus";
|
|
2516
|
-
};
|
|
2517
|
-
/**
|
|
2518
|
-
* @public
|
|
2519
|
-
*/
|
|
2520
|
-
export type GroupChannelUnsetOptions = typeof GroupChannelUnsetOptions[keyof typeof GroupChannelUnsetOptions];
|
|
2521
2095
|
/**
|
|
2522
2096
|
* @public
|
|
2523
2097
|
*/
|
|
@@ -2606,7 +2180,7 @@ export interface ListChannelMembersInput {
|
|
|
2606
2180
|
* @public
|
|
2607
2181
|
*/
|
|
2608
2182
|
export interface ListChannelMembersOutput {
|
|
2609
|
-
members:
|
|
2183
|
+
members: ChannelMember[];
|
|
2610
2184
|
}
|
|
2611
2185
|
/**
|
|
2612
2186
|
* @public
|
|
@@ -2628,7 +2202,7 @@ export interface ListChannelMembersReadStatusInput {
|
|
|
2628
2202
|
* @public
|
|
2629
2203
|
*/
|
|
2630
2204
|
export interface ListChannelMembersReadStatusOutput {
|
|
2631
|
-
members:
|
|
2205
|
+
members: ChannelMemberReadStatus[];
|
|
2632
2206
|
}
|
|
2633
2207
|
/**
|
|
2634
2208
|
* @public
|
|
@@ -2668,27 +2242,13 @@ export interface ListChannelsOutput {
|
|
|
2668
2242
|
* Ordered page of channels for the requested section.
|
|
2669
2243
|
* @public
|
|
2670
2244
|
*/
|
|
2671
|
-
channels:
|
|
2245
|
+
channels: InboxChannel[];
|
|
2672
2246
|
/**
|
|
2673
2247
|
* Cursor for the next page. Absent when there are no more pages.
|
|
2674
2248
|
* @public
|
|
2675
2249
|
*/
|
|
2676
2250
|
nextCursor?: string | undefined;
|
|
2677
2251
|
}
|
|
2678
|
-
/**
|
|
2679
|
-
* @public
|
|
2680
|
-
* @enum
|
|
2681
|
-
*/
|
|
2682
|
-
export declare const MentionsFilter: {
|
|
2683
|
-
/**
|
|
2684
|
-
* Unread mentions only.
|
|
2685
|
-
*/
|
|
2686
|
-
readonly UNREAD: "unread";
|
|
2687
|
-
};
|
|
2688
|
-
/**
|
|
2689
|
-
* @public
|
|
2690
|
-
*/
|
|
2691
|
-
export type MentionsFilter = typeof MentionsFilter[keyof typeof MentionsFilter];
|
|
2692
2252
|
/**
|
|
2693
2253
|
* @public
|
|
2694
2254
|
*/
|
|
@@ -2802,7 +2362,7 @@ export interface ListMentionsOutput {
|
|
|
2802
2362
|
* Mentions ordered by most recent `mentionAddedAt` first.
|
|
2803
2363
|
* @public
|
|
2804
2364
|
*/
|
|
2805
|
-
mentions:
|
|
2365
|
+
mentions: MentionEntry[];
|
|
2806
2366
|
/**
|
|
2807
2367
|
* Cursor for the next page. Absent when there are no more pages.
|
|
2808
2368
|
* @public
|
|
@@ -2843,7 +2403,7 @@ export interface ListMessagesOutput {
|
|
|
2843
2403
|
* Messages ordered newest-first by `timelineSeq`.
|
|
2844
2404
|
* @public
|
|
2845
2405
|
*/
|
|
2846
|
-
messages:
|
|
2406
|
+
messages: Message[];
|
|
2847
2407
|
}
|
|
2848
2408
|
/**
|
|
2849
2409
|
* @public
|
|
@@ -2876,17 +2436,6 @@ export interface MarkReadOutput {
|
|
|
2876
2436
|
*/
|
|
2877
2437
|
inbox: InboxState;
|
|
2878
2438
|
}
|
|
2879
|
-
/**
|
|
2880
|
-
* @public
|
|
2881
|
-
*/
|
|
2882
|
-
export declare class MarkUnreadChannelsLimitReachedException extends __BaseException {
|
|
2883
|
-
readonly name: "MarkUnreadChannelsLimitReachedException";
|
|
2884
|
-
readonly $fault: "client";
|
|
2885
|
-
/**
|
|
2886
|
-
* @internal
|
|
2887
|
-
*/
|
|
2888
|
-
constructor(opts: __ExceptionOptionType<MarkUnreadChannelsLimitReachedException, __BaseException>);
|
|
2889
|
-
}
|
|
2890
2439
|
/**
|
|
2891
2440
|
* @public
|
|
2892
2441
|
*/
|
|
@@ -2928,27 +2477,6 @@ export interface MarkUnreadOutput {
|
|
|
2928
2477
|
*/
|
|
2929
2478
|
inbox: InboxState;
|
|
2930
2479
|
}
|
|
2931
|
-
/**
|
|
2932
|
-
* @public
|
|
2933
|
-
* @enum
|
|
2934
|
-
*/
|
|
2935
|
-
export declare const MessageUnsetFields: {
|
|
2936
|
-
readonly ATTACHMENTS: "attachments";
|
|
2937
|
-
readonly ELEMENTS: "elements";
|
|
2938
|
-
readonly FORWARD: "forward";
|
|
2939
|
-
readonly MARKDOWN: "markdown";
|
|
2940
|
-
readonly MENTIONS: "mentions";
|
|
2941
|
-
readonly QUOTE: "quote";
|
|
2942
|
-
readonly SMS: "sms";
|
|
2943
|
-
readonly SMS_STATUS: "smsStatus";
|
|
2944
|
-
readonly TEXT: "text";
|
|
2945
|
-
readonly WHATSAPP: "whatsapp";
|
|
2946
|
-
readonly WHATSAPP_STATUS: "whatsappStatus";
|
|
2947
|
-
};
|
|
2948
|
-
/**
|
|
2949
|
-
* @public
|
|
2950
|
-
*/
|
|
2951
|
-
export type MessageUnsetFields = typeof MessageUnsetFields[keyof typeof MessageUnsetFields];
|
|
2952
2480
|
/**
|
|
2953
2481
|
* @public
|
|
2954
2482
|
*/
|
|
@@ -2985,7 +2513,7 @@ export interface MoveChannelToSectionOutput {
|
|
|
2985
2513
|
* @public
|
|
2986
2514
|
*/
|
|
2987
2515
|
export interface MultipleMembersJoinedSystemMessage {
|
|
2988
|
-
addedMembers:
|
|
2516
|
+
addedMembers: string[];
|
|
2989
2517
|
}
|
|
2990
2518
|
/**
|
|
2991
2519
|
* @public
|
|
@@ -3117,7 +2645,7 @@ export interface PartialUpdateChannelInput {
|
|
|
3117
2645
|
channelId: string;
|
|
3118
2646
|
silent?: boolean | undefined;
|
|
3119
2647
|
set?: PartialUpdateChannelSetOptions | undefined;
|
|
3120
|
-
unset?:
|
|
2648
|
+
unset?: GroupChannelUnsetOptions[] | undefined;
|
|
3121
2649
|
}
|
|
3122
2650
|
/**
|
|
3123
2651
|
* @public
|
|
@@ -3138,12 +2666,12 @@ export interface PartialUpdateMessageSetInput {
|
|
|
3138
2666
|
* Structured rich content blocks.
|
|
3139
2667
|
* @public
|
|
3140
2668
|
*/
|
|
3141
|
-
elements?:
|
|
2669
|
+
elements?: Element[] | undefined;
|
|
3142
2670
|
/**
|
|
3143
2671
|
* Pre-uploaded file references. Required unless `text` is provided.
|
|
3144
2672
|
* @public
|
|
3145
2673
|
*/
|
|
3146
|
-
attachments?:
|
|
2674
|
+
attachments?: MessageAttachmentRequest[] | undefined;
|
|
3147
2675
|
/**
|
|
3148
2676
|
* Reply context referencing a quoted message.
|
|
3149
2677
|
* @public
|
|
@@ -3163,7 +2691,7 @@ export interface PartialUpdateMessageSetInput {
|
|
|
3163
2691
|
* Direct `@user` ids.
|
|
3164
2692
|
* @public
|
|
3165
2693
|
*/
|
|
3166
|
-
mentions?:
|
|
2694
|
+
mentions?: string[] | undefined;
|
|
3167
2695
|
/**
|
|
3168
2696
|
* Mark as a WhatsApp message. The server may infer this from the channel type.
|
|
3169
2697
|
* @public
|
|
@@ -3202,7 +2730,7 @@ export interface PartialUpdateMessageInput {
|
|
|
3202
2730
|
* Fields to clear during the partial update.
|
|
3203
2731
|
* @public
|
|
3204
2732
|
*/
|
|
3205
|
-
unset?:
|
|
2733
|
+
unset?: MessageUnsetFields[] | undefined;
|
|
3206
2734
|
/**
|
|
3207
2735
|
* Suppress the updated indicator for this edit.
|
|
3208
2736
|
* @public
|
|
@@ -3291,7 +2819,7 @@ export interface QueryChannelsInput {
|
|
|
3291
2819
|
* @public
|
|
3292
2820
|
*/
|
|
3293
2821
|
export interface QueryChannelsOutput {
|
|
3294
|
-
channels:
|
|
2822
|
+
channels: InboxChannel[];
|
|
3295
2823
|
}
|
|
3296
2824
|
/**
|
|
3297
2825
|
* @public
|
|
@@ -3355,181 +2883,6 @@ export interface RenameSectionOutput {
|
|
|
3355
2883
|
*/
|
|
3356
2884
|
section: Section;
|
|
3357
2885
|
}
|
|
3358
|
-
/**
|
|
3359
|
-
* @public
|
|
3360
|
-
*/
|
|
3361
|
-
export interface SearchChannelHit {
|
|
3362
|
-
channel: Channel;
|
|
3363
|
-
/**
|
|
3364
|
-
* Highlighted fragments from the matched channel subject or description.
|
|
3365
|
-
* @public
|
|
3366
|
-
*/
|
|
3367
|
-
highlights?: (string)[] | undefined;
|
|
3368
|
-
}
|
|
3369
|
-
/**
|
|
3370
|
-
* @public
|
|
3371
|
-
* @enum
|
|
3372
|
-
*/
|
|
3373
|
-
export declare const SearchSort: {
|
|
3374
|
-
readonly RECENCY: "recency";
|
|
3375
|
-
readonly RECENCY_ASC: "recency_asc";
|
|
3376
|
-
readonly RELEVANCE: "relevance";
|
|
3377
|
-
};
|
|
3378
|
-
/**
|
|
3379
|
-
* @public
|
|
3380
|
-
*/
|
|
3381
|
-
export type SearchSort = typeof SearchSort[keyof typeof SearchSort];
|
|
3382
|
-
/**
|
|
3383
|
-
* @public
|
|
3384
|
-
*/
|
|
3385
|
-
export interface SearchChannelsInput {
|
|
3386
|
-
/**
|
|
3387
|
-
* The unique identifier of the tenant when a service token is used.
|
|
3388
|
-
* @public
|
|
3389
|
-
*/
|
|
3390
|
-
companyId?: string | undefined;
|
|
3391
|
-
/**
|
|
3392
|
-
* The unique identifier of the user when a service or PBX token is used.
|
|
3393
|
-
* @public
|
|
3394
|
-
*/
|
|
3395
|
-
userId?: string | undefined;
|
|
3396
|
-
/**
|
|
3397
|
-
* Search text. Optional when `memberId` is provided (then lists shared channels).
|
|
3398
|
-
* @public
|
|
3399
|
-
*/
|
|
3400
|
-
q?: string | undefined;
|
|
3401
|
-
/**
|
|
3402
|
-
* Restrict to channels that also contain this member. Combined with the caller, returns channels both users belong to.
|
|
3403
|
-
* @public
|
|
3404
|
-
*/
|
|
3405
|
-
memberId?: string | undefined;
|
|
3406
|
-
/**
|
|
3407
|
-
* Restrict results to this channel type.
|
|
3408
|
-
* @public
|
|
3409
|
-
*/
|
|
3410
|
-
channelType?: ChannelType | undefined;
|
|
3411
|
-
/**
|
|
3412
|
-
* Page size. Default 20, max 50.
|
|
3413
|
-
* @public
|
|
3414
|
-
*/
|
|
3415
|
-
size?: number | undefined;
|
|
3416
|
-
/**
|
|
3417
|
-
* Opaque continuation token from the previous response.
|
|
3418
|
-
* @public
|
|
3419
|
-
*/
|
|
3420
|
-
cursor?: string | undefined;
|
|
3421
|
-
/**
|
|
3422
|
-
* Result ordering. `relevance` (default with `q`) or `recency` (newest activity first, default without `q`).
|
|
3423
|
-
* @public
|
|
3424
|
-
*/
|
|
3425
|
-
sort?: SearchSort | undefined;
|
|
3426
|
-
}
|
|
3427
|
-
/**
|
|
3428
|
-
* @public
|
|
3429
|
-
*/
|
|
3430
|
-
export interface SearchChannelsOutput {
|
|
3431
|
-
/**
|
|
3432
|
-
* Matching channels ordered by relevance.
|
|
3433
|
-
* @public
|
|
3434
|
-
*/
|
|
3435
|
-
results: (SearchChannelHit)[];
|
|
3436
|
-
/**
|
|
3437
|
-
* Cursor for the next page. Absent when there are no more pages.
|
|
3438
|
-
* @public
|
|
3439
|
-
*/
|
|
3440
|
-
nextCursor?: string | undefined;
|
|
3441
|
-
}
|
|
3442
|
-
/**
|
|
3443
|
-
* @public
|
|
3444
|
-
*/
|
|
3445
|
-
export interface SearchMessageHit {
|
|
3446
|
-
channelId: string;
|
|
3447
|
-
/**
|
|
3448
|
-
* Message row returned by listing and lookup endpoints. Deleted messages keep their position with `deletedAt` set and empty body.
|
|
3449
|
-
* @public
|
|
3450
|
-
*/
|
|
3451
|
-
message: Message;
|
|
3452
|
-
/**
|
|
3453
|
-
* Highlighted fragments from the matched message text or attachment names.
|
|
3454
|
-
* @public
|
|
3455
|
-
*/
|
|
3456
|
-
highlights?: (string)[] | undefined;
|
|
3457
|
-
}
|
|
3458
|
-
/**
|
|
3459
|
-
* @public
|
|
3460
|
-
*/
|
|
3461
|
-
export interface SearchMessagesInput {
|
|
3462
|
-
/**
|
|
3463
|
-
* The unique identifier of the tenant when a service token is used.
|
|
3464
|
-
* @public
|
|
3465
|
-
*/
|
|
3466
|
-
companyId?: string | undefined;
|
|
3467
|
-
/**
|
|
3468
|
-
* The unique identifier of the user when a service or PBX token is used.
|
|
3469
|
-
* @public
|
|
3470
|
-
*/
|
|
3471
|
-
userId?: string | undefined;
|
|
3472
|
-
/**
|
|
3473
|
-
* Search text. Optional when an attachment filter (`hasAttachments`/`attachmentTypes`/`mimeTypes`) is provided.
|
|
3474
|
-
* @public
|
|
3475
|
-
*/
|
|
3476
|
-
q?: string | undefined;
|
|
3477
|
-
/**
|
|
3478
|
-
* When set, restricts the search to this channel (in-channel search).
|
|
3479
|
-
* @public
|
|
3480
|
-
*/
|
|
3481
|
-
channelId?: string | undefined;
|
|
3482
|
-
/**
|
|
3483
|
-
* When true, matches only messages that have at least one attachment.
|
|
3484
|
-
* @public
|
|
3485
|
-
*/
|
|
3486
|
-
hasAttachments?: boolean | undefined;
|
|
3487
|
-
/**
|
|
3488
|
-
* Restrict to attachments of these coarse categories. `file` means any non-image/video/audio attachment.
|
|
3489
|
-
* @public
|
|
3490
|
-
*/
|
|
3491
|
-
attachmentTypes?: (AttachmentType)[] | undefined;
|
|
3492
|
-
/**
|
|
3493
|
-
* Restrict to attachments whose MIME type is one of these exact values.
|
|
3494
|
-
* @public
|
|
3495
|
-
*/
|
|
3496
|
-
mimeTypes?: (string)[] | undefined;
|
|
3497
|
-
/**
|
|
3498
|
-
* Page size. Default 20, max 50.
|
|
3499
|
-
* @public
|
|
3500
|
-
*/
|
|
3501
|
-
size?: number | undefined;
|
|
3502
|
-
/**
|
|
3503
|
-
* Opaque continuation token from the previous response.
|
|
3504
|
-
* @public
|
|
3505
|
-
*/
|
|
3506
|
-
cursor?: string | undefined;
|
|
3507
|
-
/**
|
|
3508
|
-
* Result ordering. `relevance` (default), `recency` (newest first), or `recency_asc` (oldest first).
|
|
3509
|
-
* @public
|
|
3510
|
-
*/
|
|
3511
|
-
sort?: SearchSort | undefined;
|
|
3512
|
-
}
|
|
3513
|
-
/**
|
|
3514
|
-
* @public
|
|
3515
|
-
*/
|
|
3516
|
-
export interface SearchMessagesOutput {
|
|
3517
|
-
/**
|
|
3518
|
-
* Matching messages, access-filtered and ordered by the requested sort.
|
|
3519
|
-
* @public
|
|
3520
|
-
*/
|
|
3521
|
-
results: (SearchMessageHit)[];
|
|
3522
|
-
/**
|
|
3523
|
-
* Total OpenSearch hit count before the visibility post-filter; approximate.
|
|
3524
|
-
* @public
|
|
3525
|
-
*/
|
|
3526
|
-
totalCount?: number | undefined;
|
|
3527
|
-
/**
|
|
3528
|
-
* Cursor for the next page. Absent when there are no more pages.
|
|
3529
|
-
* @public
|
|
3530
|
-
*/
|
|
3531
|
-
nextCursor?: string | undefined;
|
|
3532
|
-
}
|
|
3533
2886
|
/**
|
|
3534
2887
|
* @public
|
|
3535
2888
|
*/
|
|
@@ -3555,7 +2908,7 @@ export interface SendGiphyInput {
|
|
|
3555
2908
|
* Direct `@user` ids.
|
|
3556
2909
|
* @public
|
|
3557
2910
|
*/
|
|
3558
|
-
mentions?:
|
|
2911
|
+
mentions?: string[] | undefined;
|
|
3559
2912
|
/**
|
|
3560
2913
|
* Reply context referencing a quoted message.
|
|
3561
2914
|
* @public
|
|
@@ -3600,12 +2953,12 @@ export interface SendMessageInput {
|
|
|
3600
2953
|
* Structured rich content blocks.
|
|
3601
2954
|
* @public
|
|
3602
2955
|
*/
|
|
3603
|
-
elements?:
|
|
2956
|
+
elements?: Element[] | undefined;
|
|
3604
2957
|
/**
|
|
3605
2958
|
* Pre-uploaded file references. Required unless `text` is provided.
|
|
3606
2959
|
* @public
|
|
3607
2960
|
*/
|
|
3608
|
-
attachments?:
|
|
2961
|
+
attachments?: MessageAttachmentRequest[] | undefined;
|
|
3609
2962
|
/**
|
|
3610
2963
|
* Reply context referencing a quoted message.
|
|
3611
2964
|
* @public
|
|
@@ -3647,7 +3000,7 @@ export interface SendMessageInput {
|
|
|
3647
3000
|
* Direct `@user` ids. `@all`, `@here`, and `@channel` are not supported.
|
|
3648
3001
|
* @public
|
|
3649
3002
|
*/
|
|
3650
|
-
mentions?:
|
|
3003
|
+
mentions?: string[] | undefined;
|
|
3651
3004
|
channelId: string;
|
|
3652
3005
|
/**
|
|
3653
3006
|
* Rendering hint for the message.
|
|
@@ -3738,12 +3091,15 @@ export declare namespace SystemMessage {
|
|
|
3738
3091
|
multipleMembersJoined?: never;
|
|
3739
3092
|
$unknown: [string, any];
|
|
3740
3093
|
}
|
|
3094
|
+
/**
|
|
3095
|
+
* @deprecated unused in schema-serde mode.
|
|
3096
|
+
*
|
|
3097
|
+
*/
|
|
3741
3098
|
interface Visitor<T> {
|
|
3742
3099
|
whatsAppClosed: (value: WhatsAppClosedSystemMessage) => T;
|
|
3743
3100
|
multipleMembersJoined: (value: MultipleMembersJoinedSystemMessage) => T;
|
|
3744
3101
|
_: (name: string, value: any) => T;
|
|
3745
3102
|
}
|
|
3746
|
-
const visit: <T>(value: SystemMessage, visitor: Visitor<T>) => T;
|
|
3747
3103
|
}
|
|
3748
3104
|
/**
|
|
3749
3105
|
* @public
|
|
@@ -4046,12 +3402,12 @@ export interface UpdateMessageInput {
|
|
|
4046
3402
|
* Structured rich content blocks.
|
|
4047
3403
|
* @public
|
|
4048
3404
|
*/
|
|
4049
|
-
elements?:
|
|
3405
|
+
elements?: Element[] | undefined;
|
|
4050
3406
|
/**
|
|
4051
3407
|
* Pre-uploaded file references. Required unless `text` is provided.
|
|
4052
3408
|
* @public
|
|
4053
3409
|
*/
|
|
4054
|
-
attachments?:
|
|
3410
|
+
attachments?: MessageAttachmentRequest[] | undefined;
|
|
4055
3411
|
/**
|
|
4056
3412
|
* Reply context referencing a quoted message.
|
|
4057
3413
|
* @public
|
|
@@ -4071,7 +3427,7 @@ export interface UpdateMessageInput {
|
|
|
4071
3427
|
* Direct `@user` ids.
|
|
4072
3428
|
* @public
|
|
4073
3429
|
*/
|
|
4074
|
-
mentions?:
|
|
3430
|
+
mentions?: string[] | undefined;
|
|
4075
3431
|
/**
|
|
4076
3432
|
* Mark as a WhatsApp message. The server may infer this from the channel type.
|
|
4077
3433
|
* @public
|