@wildix/stream-client 4.0.1 → 4.0.3

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 (79) hide show
  1. package/dist-cjs/StreamService.js +4 -0
  2. package/dist-cjs/commands/SearchChannelsCommand.js +20 -0
  3. package/dist-cjs/commands/SearchMessagesCommand.js +20 -0
  4. package/dist-cjs/commands/index.js +2 -0
  5. package/dist-cjs/models/enums.js +12 -1
  6. package/dist-cjs/schemas/schemas_0.js +84 -19
  7. package/dist-es/StreamService.js +4 -0
  8. package/dist-es/commands/SearchChannelsCommand.js +16 -0
  9. package/dist-es/commands/SearchMessagesCommand.js +16 -0
  10. package/dist-es/commands/index.js +2 -0
  11. package/dist-es/models/enums.js +11 -0
  12. package/dist-es/schemas/schemas_0.js +81 -16
  13. package/dist-types/StreamService.d.ts +16 -0
  14. package/dist-types/StreamServiceClient.d.ts +4 -2
  15. package/dist-types/commands/AddChannelMemberCommand.d.ts +1 -3
  16. package/dist-types/commands/AddChannelMembersCommand.d.ts +1 -3
  17. package/dist-types/commands/AssignChannelCommand.d.ts +1 -3
  18. package/dist-types/commands/CreateGroupChannelCommand.d.ts +4 -3
  19. package/dist-types/commands/CreateKiteChannelCommand.d.ts +4 -3
  20. package/dist-types/commands/CreateSectionCommand.d.ts +1 -3
  21. package/dist-types/commands/DeleteChannelCommand.d.ts +1 -3
  22. package/dist-types/commands/DeleteChannelMemberCommand.d.ts +1 -3
  23. package/dist-types/commands/DeleteMessageCommand.d.ts +1 -3
  24. package/dist-types/commands/DeleteMessageReactionCommand.d.ts +1 -3
  25. package/dist-types/commands/DeleteSectionCommand.d.ts +1 -3
  26. package/dist-types/commands/GetChannelCommand.d.ts +4 -3
  27. package/dist-types/commands/GetChannelMemberCommand.d.ts +1 -3
  28. package/dist-types/commands/GetDirectChannelIdCommand.d.ts +1 -3
  29. package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +1 -3
  30. package/dist-types/commands/GetInboxCommand.d.ts +4 -3
  31. package/dist-types/commands/GetMessageCommand.d.ts +1 -3
  32. package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +4 -3
  33. package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +4 -3
  34. package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +4 -3
  35. package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +4 -3
  36. package/dist-types/commands/GetSmsChannelIdCommand.d.ts +1 -3
  37. package/dist-types/commands/GetTelephonyChannelIdCommand.d.ts +1 -3
  38. package/dist-types/commands/GetTokenCommand.d.ts +1 -3
  39. package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +1 -3
  40. package/dist-types/commands/GetWhatsAppChannelIdCommand.d.ts +1 -3
  41. package/dist-types/commands/HideChannelCommand.d.ts +1 -3
  42. package/dist-types/commands/JoinChannelCommand.d.ts +4 -3
  43. package/dist-types/commands/LeaveChannelCommand.d.ts +1 -3
  44. package/dist-types/commands/ListChannelMembersCommand.d.ts +1 -3
  45. package/dist-types/commands/ListChannelMembersReadStatusCommand.d.ts +1 -3
  46. package/dist-types/commands/ListChannelsCommand.d.ts +4 -3
  47. package/dist-types/commands/ListMentionsCommand.d.ts +1 -3
  48. package/dist-types/commands/ListMessagesCommand.d.ts +1 -3
  49. package/dist-types/commands/MarkReadCommand.d.ts +1 -3
  50. package/dist-types/commands/MarkUnreadCommand.d.ts +1 -3
  51. package/dist-types/commands/MoveChannelToSectionCommand.d.ts +1 -3
  52. package/dist-types/commands/MuteChannelCommand.d.ts +1 -3
  53. package/dist-types/commands/PartialUpdateChannelCommand.d.ts +4 -3
  54. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +1 -3
  55. package/dist-types/commands/PinChannelCommand.d.ts +1 -3
  56. package/dist-types/commands/PinMessageCommand.d.ts +1 -3
  57. package/dist-types/commands/QueryChannelsCommand.d.ts +4 -3
  58. package/dist-types/commands/RemoveChannelFromSectionCommand.d.ts +1 -3
  59. package/dist-types/commands/RenameSectionCommand.d.ts +1 -3
  60. package/dist-types/commands/SearchChannelsCommand.d.ts +168 -0
  61. package/dist-types/commands/SearchMessagesCommand.d.ts +213 -0
  62. package/dist-types/commands/SendGiphyCommand.d.ts +1 -3
  63. package/dist-types/commands/SendMessageCommand.d.ts +1 -3
  64. package/dist-types/commands/SendMessageReactionCommand.d.ts +1 -3
  65. package/dist-types/commands/SendSystemMessageCommand.d.ts +1 -3
  66. package/dist-types/commands/SendTypingStartCommand.d.ts +1 -3
  67. package/dist-types/commands/SendTypingStopCommand.d.ts +1 -3
  68. package/dist-types/commands/ShowChannelCommand.d.ts +1 -3
  69. package/dist-types/commands/UnmuteChannelCommand.d.ts +1 -3
  70. package/dist-types/commands/UnpinChannelCommand.d.ts +1 -3
  71. package/dist-types/commands/UnpinMessageCommand.d.ts +1 -3
  72. package/dist-types/commands/UpdateChannelCommand.d.ts +4 -3
  73. package/dist-types/commands/UpdateMessageCommand.d.ts +1 -3
  74. package/dist-types/commands/UploadFileCommand.d.ts +1 -3
  75. package/dist-types/commands/index.d.ts +2 -0
  76. package/dist-types/models/enums.d.ts +27 -0
  77. package/dist-types/models/models_0.d.ts +173 -1
  78. package/dist-types/schemas/schemas_0.d.ts +8 -0
  79. package/package.json +1 -1
@@ -0,0 +1,213 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { SearchMessagesInput, SearchMessagesOutput } 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 SearchMessagesCommand}.
14
+ */
15
+ export interface SearchMessagesCommandInput extends SearchMessagesInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link SearchMessagesCommand}.
21
+ */
22
+ export interface SearchMessagesCommandOutput extends SearchMessagesOutput, __MetadataBearer {
23
+ }
24
+ declare const SearchMessagesCommand_base: {
25
+ new (input: SearchMessagesCommandInput): import("@smithy/core/client").CommandImpl<SearchMessagesCommandInput, SearchMessagesCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [SearchMessagesCommandInput]): import("@smithy/core/client").CommandImpl<SearchMessagesCommandInput, SearchMessagesCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Full-text search over messages. With `channelId`, searches within that channel (membership required); without it, searches across the caller's channels. Results are access-filtered against DynamoDB.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { StreamServiceClient, SearchMessagesCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, SearchMessagesCommand } = 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 = { // SearchMessagesInput
40
+ * companyId: "STRING_VALUE",
41
+ * userId: "STRING_VALUE",
42
+ * q: "STRING_VALUE",
43
+ * channelId: "STRING_VALUE",
44
+ * hasAttachments: true || false,
45
+ * attachmentTypes: [ // AttachmentTypeList
46
+ * "image" || "video" || "audio" || "file",
47
+ * ],
48
+ * mimeTypes: [ // MimeTypeList
49
+ * "STRING_VALUE",
50
+ * ],
51
+ * size: Number("int"),
52
+ * cursor: "STRING_VALUE",
53
+ * sort: "relevance" || "recency" || "recency_asc",
54
+ * };
55
+ * const command = new SearchMessagesCommand(input);
56
+ * const response = await client.send(command);
57
+ * // { // SearchMessagesOutput
58
+ * // results: [ // SearchMessageHitList // required
59
+ * // { // SearchMessageHit
60
+ * // channelId: "STRING_VALUE", // required
61
+ * // message: { // Message
62
+ * // messageId: "STRING_VALUE", // required
63
+ * // userId: "STRING_VALUE", // required
64
+ * // messageType: "regular" || "system" || "deleted", // required
65
+ * // text: "STRING_VALUE",
66
+ * // attachments: [ // MessageAttachmentList // required
67
+ * // { // MessageAttachment
68
+ * // fsId: "STRING_VALUE", // required
69
+ * // mime: "STRING_VALUE",
70
+ * // name: "STRING_VALUE", // required
71
+ * // size: Number("long"), // required
72
+ * // width: Number("int"),
73
+ * // height: Number("int"),
74
+ * // thumbnail: "STRING_VALUE",
75
+ * // id: "STRING_VALUE", // required
76
+ * // },
77
+ * // ],
78
+ * // mentions: [ // UserIdList // required
79
+ * // "STRING_VALUE",
80
+ * // ],
81
+ * // quote: { // MessageQuote
82
+ * // channelId: "STRING_VALUE", // required
83
+ * // messageId: "STRING_VALUE", // required
84
+ * // userId: "STRING_VALUE", // required
85
+ * // text: "STRING_VALUE",
86
+ * // createdAt: "STRING_VALUE", // required
87
+ * // },
88
+ * // forward: { // MessageForward
89
+ * // channelId: "STRING_VALUE", // required
90
+ * // messageId: "STRING_VALUE", // required
91
+ * // userId: "STRING_VALUE", // required
92
+ * // companyId: "STRING_VALUE",
93
+ * // createdAt: "STRING_VALUE",
94
+ * // },
95
+ * // reactionCounts: { // ReactionCounts // required
96
+ * // "<keys>": Number("int"),
97
+ * // },
98
+ * // latestReactions: [ // ReactionList
99
+ * // { // Reaction
100
+ * // type: "STRING_VALUE", // required
101
+ * // userId: "STRING_VALUE", // required
102
+ * // messageId: "STRING_VALUE", // required
103
+ * // },
104
+ * // ],
105
+ * // pinned: true || false, // required
106
+ * // pinnedAt: "STRING_VALUE",
107
+ * // pinnedBy: "STRING_VALUE",
108
+ * // system: true || false, // required
109
+ * // timelineSeq: Number("long"), // required
110
+ * // visibleSeq: Number("long"), // required
111
+ * // channelVersion: Number("long"), // required
112
+ * // messageVersion: Number("long"), // required
113
+ * // createdAt: "STRING_VALUE", // required
114
+ * // editedAt: "STRING_VALUE",
115
+ * // deletedAt: "STRING_VALUE",
116
+ * // elements: [ // ElementsList
117
+ * // { // Element Union: only one key present
118
+ * // template: { // MessageTemplateConfig
119
+ * // whatsapp: { // TemplateWithParameters
120
+ * // name: "STRING_VALUE", // required
121
+ * // parameters: [ // ListTemplateParameter
122
+ * // { // TemplateParameter
123
+ * // name: "STRING_VALUE", // required
124
+ * // value: "STRING_VALUE", // required
125
+ * // },
126
+ * // ],
127
+ * // },
128
+ * // },
129
+ * // actions: [ // ActionsElementsList
130
+ * // { // ActionElement Union: only one key present
131
+ * // button: { // ButtonElement
132
+ * // text: "STRING_VALUE", // required
133
+ * // handler: { // ButtonHandler Union: only one key present
134
+ * // link: { // ButtonLinkHandler
135
+ * // url: "STRING_VALUE", // required
136
+ * // },
137
+ * // reply: { // ButtonReplyHandler
138
+ * // text: "STRING_VALUE",
139
+ * // },
140
+ * // action: { // ButtonActionHandler
141
+ * // id: "STRING_VALUE", // required
142
+ * // },
143
+ * // },
144
+ * // variant: "contained" || "outlined",
145
+ * // disabled: true || false,
146
+ * // },
147
+ * // },
148
+ * // ],
149
+ * // },
150
+ * // ],
151
+ * // whatsapp: true || false,
152
+ * // whatsappStatus: "trying" || "sent" || "delivered" || "error",
153
+ * // sms: true || false,
154
+ * // smsStatus: "sent" || "delivered" || "trying" || "error",
155
+ * // markdown: true || false,
156
+ * // giphy: { // MessageGiphy
157
+ * // id: "STRING_VALUE", // required
158
+ * // size: "STRING_VALUE", // required
159
+ * // url: "STRING_VALUE", // required
160
+ * // height: "STRING_VALUE", // required
161
+ * // width: "STRING_VALUE", // required
162
+ * // },
163
+ * // silent: true || false,
164
+ * // event: "STRING_VALUE",
165
+ * // },
166
+ * // highlights: [ // StringList
167
+ * // "STRING_VALUE",
168
+ * // ],
169
+ * // },
170
+ * // ],
171
+ * // totalCount: Number("int"),
172
+ * // nextCursor: "STRING_VALUE",
173
+ * // };
174
+ *
175
+ * ```
176
+ *
177
+ * @param SearchMessagesCommandInput - {@link SearchMessagesCommandInput}
178
+ * @returns {@link SearchMessagesCommandOutput}
179
+ * @see {@link SearchMessagesCommandInput} for command's `input` shape.
180
+ * @see {@link SearchMessagesCommandOutput} for command's `response` shape.
181
+ * @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
182
+ *
183
+ * @throws {@link ChannelNotFoundException} (client fault)
184
+ *
185
+ * @throws {@link StreamServiceException} (server fault)
186
+ *
187
+ * @throws {@link UnauthorizedException} (client fault)
188
+ *
189
+ * @throws {@link ForbiddenException} (client fault)
190
+ *
191
+ * @throws {@link ValidationException} (client fault)
192
+ *
193
+ * @throws {@link RateLimitExceededException} (client fault)
194
+ *
195
+ * @throws {@link StreamServiceServiceException}
196
+ * <p>Base exception class for all service exceptions from StreamService service.</p>
197
+ *
198
+ *
199
+ * @public
200
+ */
201
+ export declare class SearchMessagesCommand extends SearchMessagesCommand_base {
202
+ /** @internal type navigation helper, not in runtime. */
203
+ protected static __types: {
204
+ api: {
205
+ input: SearchMessagesInput;
206
+ output: SearchMessagesOutput;
207
+ };
208
+ sdk: {
209
+ input: SearchMessagesCommandInput;
210
+ output: SearchMessagesCommandOutput;
211
+ };
212
+ };
213
+ }
@@ -24,9 +24,7 @@ export interface SendGiphyCommandOutput extends SendGiphyOutput, __MetadataBeare
24
24
  declare const SendGiphyCommand_base: {
25
25
  new (input: SendGiphyCommandInput): import("@smithy/core/client").CommandImpl<SendGiphyCommandInput, SendGiphyCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (input: SendGiphyCommandInput): import("@smithy/core/client").CommandImpl<SendGiphyCommandInput, SendGiphyCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
28
  };
31
29
  /**
32
30
  * Persists a Giphy message to a channel. Returns the full message snapshot in the same shape as one `ListMessages` item.
@@ -24,9 +24,7 @@ export interface SendMessageCommandOutput extends SendMessageOutput, __MetadataB
24
24
  declare const SendMessageCommand_base: {
25
25
  new (input: SendMessageCommandInput): import("@smithy/core/client").CommandImpl<SendMessageCommandInput, SendMessageCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (input: SendMessageCommandInput): import("@smithy/core/client").CommandImpl<SendMessageCommandInput, SendMessageCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
28
  };
31
29
  /**
32
30
  * Persists a new user message to a channel. Supports text, attachments, rich `elements`, replies (`quote`), forwards (`forward`), and targeted user mentions (`mentions[]`). File attachments must be uploaded first to the file service and referenced by `attachments[].fsId`. Returns the full message snapshot in the same shape as one `ListMessages` item.
@@ -24,9 +24,7 @@ export interface SendMessageReactionCommandOutput extends SendMessageReactionOut
24
24
  declare const SendMessageReactionCommand_base: {
25
25
  new (input: SendMessageReactionCommandInput): import("@smithy/core/client").CommandImpl<SendMessageReactionCommandInput, SendMessageReactionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (input: SendMessageReactionCommandInput): import("@smithy/core/client").CommandImpl<SendMessageReactionCommandInput, SendMessageReactionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
28
  };
31
29
  /**
32
30
  * Adds the current user's reaction of `<type>` on one message. Duplicate adds are absorbed and only the first apply advances `messageVersion`. Reactions on a deleted message are rejected.
@@ -24,9 +24,7 @@ export interface SendSystemMessageCommandOutput extends SendSystemMessageOutput,
24
24
  declare const SendSystemMessageCommand_base: {
25
25
  new (input: SendSystemMessageCommandInput): import("@smithy/core/client").CommandImpl<SendSystemMessageCommandInput, SendSystemMessageCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (input: SendSystemMessageCommandInput): import("@smithy/core/client").CommandImpl<SendSystemMessageCommandInput, SendSystemMessageCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
28
  };
31
29
  /**
32
30
  * Persists a backend-generated system message to a channel. Available with S2S authorization only. Each `message` variant maps to a server-side template; optional `event` carries a client rendering hint.
@@ -24,9 +24,7 @@ export interface SendTypingStartCommandOutput extends SendTypingStartOutput, __M
24
24
  declare const SendTypingStartCommand_base: {
25
25
  new (input: SendTypingStartCommandInput): import("@smithy/core/client").CommandImpl<SendTypingStartCommandInput, SendTypingStartCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (input: SendTypingStartCommandInput): import("@smithy/core/client").CommandImpl<SendTypingStartCommandInput, SendTypingStartCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
28
  };
31
29
  /**
32
30
  * Broadcasts a typing-start indicator for the current user in a channel.
@@ -24,9 +24,7 @@ export interface SendTypingStopCommandOutput extends SendTypingStopOutput, __Met
24
24
  declare const SendTypingStopCommand_base: {
25
25
  new (input: SendTypingStopCommandInput): import("@smithy/core/client").CommandImpl<SendTypingStopCommandInput, SendTypingStopCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (input: SendTypingStopCommandInput): import("@smithy/core/client").CommandImpl<SendTypingStopCommandInput, SendTypingStopCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
28
  };
31
29
  /**
32
30
  * Broadcasts a typing-stop indicator for the current user in a channel.
@@ -24,9 +24,7 @@ export interface ShowChannelCommandOutput extends ShowChannelOutput, __MetadataB
24
24
  declare const ShowChannelCommand_base: {
25
25
  new (input: ShowChannelCommandInput): import("@smithy/core/client").CommandImpl<ShowChannelCommandInput, ShowChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (input: ShowChannelCommandInput): import("@smithy/core/client").CommandImpl<ShowChannelCommandInput, ShowChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
28
  };
31
29
  /**
32
30
  * Restores a hidden channel for the current user.
@@ -24,9 +24,7 @@ export interface UnmuteChannelCommandOutput extends UnmuteChannelOutput, __Metad
24
24
  declare const UnmuteChannelCommand_base: {
25
25
  new (input: UnmuteChannelCommandInput): import("@smithy/core/client").CommandImpl<UnmuteChannelCommandInput, UnmuteChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (input: UnmuteChannelCommandInput): import("@smithy/core/client").CommandImpl<UnmuteChannelCommandInput, UnmuteChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
28
  };
31
29
  /**
32
30
  * Unmutes a channel for the current user.
@@ -24,9 +24,7 @@ export interface UnpinChannelCommandOutput extends UnpinChannelOutput, __Metadat
24
24
  declare const UnpinChannelCommand_base: {
25
25
  new (input: UnpinChannelCommandInput): import("@smithy/core/client").CommandImpl<UnpinChannelCommandInput, UnpinChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (input: UnpinChannelCommandInput): import("@smithy/core/client").CommandImpl<UnpinChannelCommandInput, UnpinChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
28
  };
31
29
  /**
32
30
  * Unpins a channel in the current user's inbox.
@@ -24,9 +24,7 @@ export interface UnpinMessageCommandOutput extends UnpinMessageOutput, __Metadat
24
24
  declare const UnpinMessageCommand_base: {
25
25
  new (input: UnpinMessageCommandInput): import("@smithy/core/client").CommandImpl<UnpinMessageCommandInput, UnpinMessageCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (input: UnpinMessageCommandInput): import("@smithy/core/client").CommandImpl<UnpinMessageCommandInput, UnpinMessageCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
28
  };
31
29
  /**
32
30
  * Unpins one message at channel scope. Duplicate calls on an already-unpinned message are absorbed and do not advance `messageVersion`.
@@ -24,9 +24,7 @@ export interface UpdateChannelCommandOutput extends UpdateChannelOutput, __Metad
24
24
  declare const UpdateChannelCommand_base: {
25
25
  new (input: UpdateChannelCommandInput): import("@smithy/core/client").CommandImpl<UpdateChannelCommandInput, UpdateChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (input: UpdateChannelCommandInput): import("@smithy/core/client").CommandImpl<UpdateChannelCommandInput, UpdateChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
28
  };
31
29
  /**
32
30
  * Replaces editable channel metadata.
@@ -113,6 +111,9 @@ declare const UpdateChannelCommand_base: {
113
111
  * // serviceRecipient: "STRING_VALUE",
114
112
  * // telephony: true || false,
115
113
  * // external: true || false,
114
+ * // pinnedMessageIds: [ // PinnedMessageIdList
115
+ * // "STRING_VALUE",
116
+ * // ],
116
117
  * // subject: "STRING_VALUE",
117
118
  * // description: "STRING_VALUE",
118
119
  * // picture: "STRING_VALUE",
@@ -24,9 +24,7 @@ export interface UpdateMessageCommandOutput extends UpdateMessageOutput, __Metad
24
24
  declare const UpdateMessageCommand_base: {
25
25
  new (input: UpdateMessageCommandInput): import("@smithy/core/client").CommandImpl<UpdateMessageCommandInput, UpdateMessageCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (input: UpdateMessageCommandInput): import("@smithy/core/client").CommandImpl<UpdateMessageCommandInput, UpdateMessageCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
28
  };
31
29
  /**
32
30
  * Replaces the editable content of an existing message in place. Updates never move the message in the timeline. The server rejects payloads that would empty both `text` and `attachments`. Returns the rewritten message snapshot with `messageVersion` incremented and `editedAt` set.
@@ -24,9 +24,7 @@ export interface UploadFileCommandOutput extends UploadFileOutput, __MetadataBea
24
24
  declare const UploadFileCommand_base: {
25
25
  new (input: UploadFileCommandInput): import("@smithy/core/client").CommandImpl<UploadFileCommandInput, UploadFileCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  new (input: UploadFileCommandInput): import("@smithy/core/client").CommandImpl<UploadFileCommandInput, UploadFileCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
28
  };
31
29
  /**
32
30
  * Creates a presigned URL for uploading a file into a channel. The returned `fsId` is referenced verbatim as `attachments[].fsId` when sending or editing a message.
@@ -43,6 +43,8 @@ export * from "./PinMessageCommand";
43
43
  export * from "./QueryChannelsCommand";
44
44
  export * from "./RemoveChannelFromSectionCommand";
45
45
  export * from "./RenameSectionCommand";
46
+ export * from "./SearchChannelsCommand";
47
+ export * from "./SearchMessagesCommand";
46
48
  export * from "./SendGiphyCommand";
47
49
  export * from "./SendMessageCommand";
48
50
  export * from "./SendMessageReactionCommand";
@@ -36,6 +36,20 @@ export declare const AssignChannelVariant: {
36
36
  * @public
37
37
  */
38
38
  export type AssignChannelVariant = (typeof AssignChannelVariant)[keyof typeof AssignChannelVariant];
39
+ /**
40
+ * @public
41
+ * @enum
42
+ */
43
+ export declare const AttachmentType: {
44
+ readonly AUDIO: "audio";
45
+ readonly FILE: "file";
46
+ readonly IMAGE: "image";
47
+ readonly VIDEO: "video";
48
+ };
49
+ /**
50
+ * @public
51
+ */
52
+ export type AttachmentType = (typeof AttachmentType)[keyof typeof AttachmentType];
39
53
  /**
40
54
  * @public
41
55
  * @enum
@@ -284,3 +298,16 @@ export declare const MessageUnsetFields: {
284
298
  * @public
285
299
  */
286
300
  export type MessageUnsetFields = (typeof MessageUnsetFields)[keyof typeof MessageUnsetFields];
301
+ /**
302
+ * @public
303
+ * @enum
304
+ */
305
+ export declare const SearchSort: {
306
+ readonly RECENCY: "recency";
307
+ readonly RECENCY_ASC: "recency_asc";
308
+ readonly RELEVANCE: "relevance";
309
+ };
310
+ /**
311
+ * @public
312
+ */
313
+ export type SearchSort = (typeof SearchSort)[keyof typeof SearchSort];
@@ -1,4 +1,4 @@
1
- import type { AssignChannelVariant, ButtonVariant, ChannelAccess, ChannelContextEventAttendeeStatus, ChannelContextSource, ChannelMemberRole, ChannelsFilter, ChannelType, ChannelWhatsAppStatus, DownloadStrategy, FileCategory, GroupChannelCreationEventType, GroupChannelUnsetOptions, MentionsFilter, MessageSmsStatus, MessageType, MessageUnsetFields, MessageWhatsAppStatus, SectionType } from "./enums";
1
+ import type { AssignChannelVariant, AttachmentType, ButtonVariant, ChannelAccess, ChannelContextEventAttendeeStatus, ChannelContextSource, ChannelMemberRole, ChannelsFilter, ChannelType, ChannelWhatsAppStatus, DownloadStrategy, FileCategory, GroupChannelCreationEventType, GroupChannelUnsetOptions, MentionsFilter, MessageSmsStatus, MessageType, MessageUnsetFields, MessageWhatsAppStatus, SearchSort, SectionType } from "./enums";
2
2
  /**
3
3
  * @public
4
4
  */
@@ -442,6 +442,11 @@ export interface Channel {
442
442
  serviceRecipient?: string | undefined;
443
443
  telephony?: boolean | undefined;
444
444
  external?: boolean | undefined;
445
+ /**
446
+ * Message ids currently pinned at channel scope, newest pin first. Empty when nothing is pinned.
447
+ * @public
448
+ */
449
+ pinnedMessageIds?: string[] | undefined;
445
450
  /**
446
451
  * The subject of the channel.
447
452
  * @public
@@ -1610,6 +1615,11 @@ export interface InboxChannel {
1610
1615
  serviceRecipient?: string | undefined;
1611
1616
  telephony?: boolean | undefined;
1612
1617
  external?: boolean | undefined;
1618
+ /**
1619
+ * Message ids currently pinned at channel scope, newest pin first. Empty when nothing is pinned.
1620
+ * @public
1621
+ */
1622
+ pinnedMessageIds?: string[] | undefined;
1613
1623
  /**
1614
1624
  * The subject of the channel.
1615
1625
  * @public
@@ -2883,6 +2893,168 @@ export interface RenameSectionOutput {
2883
2893
  */
2884
2894
  section: Section;
2885
2895
  }
2896
+ /**
2897
+ * @public
2898
+ */
2899
+ export interface SearchChannelHit {
2900
+ channel: Channel;
2901
+ /**
2902
+ * Highlighted fragments from the matched channel subject or description.
2903
+ * @public
2904
+ */
2905
+ highlights?: string[] | undefined;
2906
+ }
2907
+ /**
2908
+ * @public
2909
+ */
2910
+ export interface SearchChannelsInput {
2911
+ /**
2912
+ * The unique identifier of the tenant when a service token is used.
2913
+ * @public
2914
+ */
2915
+ companyId?: string | undefined;
2916
+ /**
2917
+ * The unique identifier of the user when a service or PBX token is used.
2918
+ * @public
2919
+ */
2920
+ userId?: string | undefined;
2921
+ /**
2922
+ * Search text. Optional when `memberId` is provided (then lists shared channels).
2923
+ * @public
2924
+ */
2925
+ q?: string | undefined;
2926
+ /**
2927
+ * Restrict to channels that also contain this member. Combined with the caller, returns channels both users belong to.
2928
+ * @public
2929
+ */
2930
+ memberId?: string | undefined;
2931
+ /**
2932
+ * Restrict results to this channel type.
2933
+ * @public
2934
+ */
2935
+ channelType?: ChannelType | undefined;
2936
+ /**
2937
+ * Page size. Default 20, max 50.
2938
+ * @public
2939
+ */
2940
+ size?: number | undefined;
2941
+ /**
2942
+ * Opaque continuation token from the previous response.
2943
+ * @public
2944
+ */
2945
+ cursor?: string | undefined;
2946
+ /**
2947
+ * Result ordering. `relevance` (default with `q`) or `recency` (newest activity first, default without `q`).
2948
+ * @public
2949
+ */
2950
+ sort?: SearchSort | undefined;
2951
+ }
2952
+ /**
2953
+ * @public
2954
+ */
2955
+ export interface SearchChannelsOutput {
2956
+ /**
2957
+ * Matching channels ordered by relevance.
2958
+ * @public
2959
+ */
2960
+ results: SearchChannelHit[];
2961
+ /**
2962
+ * Cursor for the next page. Absent when there are no more pages.
2963
+ * @public
2964
+ */
2965
+ nextCursor?: string | undefined;
2966
+ }
2967
+ /**
2968
+ * @public
2969
+ */
2970
+ export interface SearchMessageHit {
2971
+ channelId: string;
2972
+ /**
2973
+ * Message row returned by listing and lookup endpoints. Deleted messages keep their position with `deletedAt` set and empty body.
2974
+ * @public
2975
+ */
2976
+ message: Message;
2977
+ /**
2978
+ * Highlighted fragments from the matched message text or attachment names.
2979
+ * @public
2980
+ */
2981
+ highlights?: string[] | undefined;
2982
+ }
2983
+ /**
2984
+ * @public
2985
+ */
2986
+ export interface SearchMessagesInput {
2987
+ /**
2988
+ * The unique identifier of the tenant when a service token is used.
2989
+ * @public
2990
+ */
2991
+ companyId?: string | undefined;
2992
+ /**
2993
+ * The unique identifier of the user when a service or PBX token is used.
2994
+ * @public
2995
+ */
2996
+ userId?: string | undefined;
2997
+ /**
2998
+ * Search text. Optional when an attachment filter (`hasAttachments`/`attachmentTypes`/`mimeTypes`) is provided.
2999
+ * @public
3000
+ */
3001
+ q?: string | undefined;
3002
+ /**
3003
+ * When set, restricts the search to this channel (in-channel search).
3004
+ * @public
3005
+ */
3006
+ channelId?: string | undefined;
3007
+ /**
3008
+ * When true, matches only messages that have at least one attachment.
3009
+ * @public
3010
+ */
3011
+ hasAttachments?: boolean | undefined;
3012
+ /**
3013
+ * Restrict to attachments of these coarse categories. `file` means any non-image/video/audio attachment.
3014
+ * @public
3015
+ */
3016
+ attachmentTypes?: AttachmentType[] | undefined;
3017
+ /**
3018
+ * Restrict to attachments whose MIME type is one of these exact values.
3019
+ * @public
3020
+ */
3021
+ mimeTypes?: string[] | undefined;
3022
+ /**
3023
+ * Page size. Default 20, max 50.
3024
+ * @public
3025
+ */
3026
+ size?: number | undefined;
3027
+ /**
3028
+ * Opaque continuation token from the previous response.
3029
+ * @public
3030
+ */
3031
+ cursor?: string | undefined;
3032
+ /**
3033
+ * Result ordering. `relevance` (default), `recency` (newest first), or `recency_asc` (oldest first).
3034
+ * @public
3035
+ */
3036
+ sort?: SearchSort | undefined;
3037
+ }
3038
+ /**
3039
+ * @public
3040
+ */
3041
+ export interface SearchMessagesOutput {
3042
+ /**
3043
+ * Matching messages, access-filtered and ordered by the requested sort.
3044
+ * @public
3045
+ */
3046
+ results: SearchMessageHit[];
3047
+ /**
3048
+ * Total OpenSearch hit count before the visibility post-filter; approximate.
3049
+ * @public
3050
+ */
3051
+ totalCount?: number | undefined;
3052
+ /**
3053
+ * Cursor for the next page. Absent when there are no more pages.
3054
+ * @public
3055
+ */
3056
+ nextCursor?: string | undefined;
3057
+ }
2886
3058
  /**
2887
3059
  * @public
2888
3060
  */
@@ -145,6 +145,12 @@ export declare var RemoveChannelFromSectionInput$: StaticStructureSchema;
145
145
  export declare var RemoveChannelFromSectionOutput$: StaticStructureSchema;
146
146
  export declare var RenameSectionInput$: StaticStructureSchema;
147
147
  export declare var RenameSectionOutput$: StaticStructureSchema;
148
+ export declare var SearchChannelHit$: StaticStructureSchema;
149
+ export declare var SearchChannelsInput$: StaticStructureSchema;
150
+ export declare var SearchChannelsOutput$: StaticStructureSchema;
151
+ export declare var SearchMessageHit$: StaticStructureSchema;
152
+ export declare var SearchMessagesInput$: StaticStructureSchema;
153
+ export declare var SearchMessagesOutput$: StaticStructureSchema;
148
154
  export declare var Section$: StaticStructureSchema;
149
155
  export declare var SendGiphyInput$: StaticStructureSchema;
150
156
  export declare var SendGiphyOutput$: StaticStructureSchema;
@@ -228,6 +234,8 @@ export declare var PinMessage$: StaticOperationSchema;
228
234
  export declare var QueryChannels$: StaticOperationSchema;
229
235
  export declare var RemoveChannelFromSection$: StaticOperationSchema;
230
236
  export declare var RenameSection$: StaticOperationSchema;
237
+ export declare var SearchChannels$: StaticOperationSchema;
238
+ export declare var SearchMessages$: StaticOperationSchema;
231
239
  export declare var SendGiphy$: StaticOperationSchema;
232
240
  export declare var SendMessage$: StaticOperationSchema;
233
241
  export declare var SendMessageReaction$: StaticOperationSchema;