@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,163 +0,0 @@
|
|
|
1
|
-
import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
2
|
-
import { SearchChannelsInput, SearchChannelsOutput } from "../models/models_0";
|
|
3
|
-
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
-
/**
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export type { __MetadataBearer };
|
|
9
|
-
export { $Command };
|
|
10
|
-
/**
|
|
11
|
-
* @public
|
|
12
|
-
*
|
|
13
|
-
* The input for {@link SearchChannelsCommand}.
|
|
14
|
-
*/
|
|
15
|
-
export interface SearchChannelsCommandInput extends SearchChannelsInput {
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*
|
|
20
|
-
* The output of {@link SearchChannelsCommand}.
|
|
21
|
-
*/
|
|
22
|
-
export interface SearchChannelsCommandOutput extends SearchChannelsOutput, __MetadataBearer {
|
|
23
|
-
}
|
|
24
|
-
declare const SearchChannelsCommand_base: {
|
|
25
|
-
new (input: SearchChannelsCommandInput): import("@smithy/smithy-client").CommandImpl<SearchChannelsCommandInput, SearchChannelsCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (...[input]: [] | [SearchChannelsCommandInput]): import("@smithy/smithy-client").CommandImpl<SearchChannelsCommandInput, SearchChannelsCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Full-text search over the caller's channels by subject and description. Membership is enforced via the OpenSearch memberIds projection.
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { StreamServiceClient, SearchChannelsCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
|
-
* // const { StreamServiceClient, SearchChannelsCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
36
|
-
* const client = new StreamServiceClient(config);
|
|
37
|
-
* const input = { // SearchChannelsInput
|
|
38
|
-
* companyId: "STRING_VALUE",
|
|
39
|
-
* userId: "STRING_VALUE",
|
|
40
|
-
* q: "STRING_VALUE",
|
|
41
|
-
* memberId: "STRING_VALUE",
|
|
42
|
-
* channelType: "direct" || "group",
|
|
43
|
-
* size: Number("int"),
|
|
44
|
-
* cursor: "STRING_VALUE",
|
|
45
|
-
* sort: "relevance" || "recency" || "recency_asc",
|
|
46
|
-
* };
|
|
47
|
-
* const command = new SearchChannelsCommand(input);
|
|
48
|
-
* const response = await client.send(command);
|
|
49
|
-
* // { // SearchChannelsOutput
|
|
50
|
-
* // results: [ // SearchChannelHitList // required
|
|
51
|
-
* // { // SearchChannelHit
|
|
52
|
-
* // channel: { // Channel
|
|
53
|
-
* // channelId: "STRING_VALUE", // required
|
|
54
|
-
* // channelType: "direct" || "group", // required
|
|
55
|
-
* // membersCount: Number("int"), // required
|
|
56
|
-
* // createdAt: "STRING_VALUE", // required
|
|
57
|
-
* // createdBy: "STRING_VALUE", // required
|
|
58
|
-
* // updatedAt: "STRING_VALUE",
|
|
59
|
-
* // channelVersion: Number("long"), // required
|
|
60
|
-
* // lastActivityAt: "STRING_VALUE", // required
|
|
61
|
-
* // lastMessage: { // LastMessagePreview
|
|
62
|
-
* // messageId: "STRING_VALUE", // required
|
|
63
|
-
* // userId: "STRING_VALUE", // required
|
|
64
|
-
* // messageType: "regular" || "system" || "deleted", // required
|
|
65
|
-
* // text: "STRING_VALUE",
|
|
66
|
-
* // event: "STRING_VALUE",
|
|
67
|
-
* // createdAt: "STRING_VALUE", // required
|
|
68
|
-
* // },
|
|
69
|
-
* // company: "STRING_VALUE",
|
|
70
|
-
* // kite: true || false,
|
|
71
|
-
* // kiteTarget: "STRING_VALUE",
|
|
72
|
-
* // kiteVariant: "STRING_VALUE",
|
|
73
|
-
* // kiteServiceName: "STRING_VALUE",
|
|
74
|
-
* // kiteDefaultSubject: "STRING_VALUE",
|
|
75
|
-
* // service: "STRING_VALUE",
|
|
76
|
-
* // serviceRecipient: "STRING_VALUE",
|
|
77
|
-
* // telephony: true || false,
|
|
78
|
-
* // external: true || false,
|
|
79
|
-
* // subject: "STRING_VALUE",
|
|
80
|
-
* // description: "STRING_VALUE",
|
|
81
|
-
* // picture: "STRING_VALUE",
|
|
82
|
-
* // pictureColor: "STRING_VALUE",
|
|
83
|
-
* // access: "private" || "public",
|
|
84
|
-
* // broadcast: true || false,
|
|
85
|
-
* // context: { // ChannelContext
|
|
86
|
-
* // source: "kite",
|
|
87
|
-
* // target: "STRING_VALUE",
|
|
88
|
-
* // events: [ // ChannelContextEventList
|
|
89
|
-
* // { // ChannelContextEvent
|
|
90
|
-
* // id: "STRING_VALUE",
|
|
91
|
-
* // owner: "STRING_VALUE",
|
|
92
|
-
* // start: "STRING_VALUE",
|
|
93
|
-
* // end: "STRING_VALUE",
|
|
94
|
-
* // summary: "STRING_VALUE",
|
|
95
|
-
* // attendees: [ // ChannelContextEventAttendeeList
|
|
96
|
-
* // { // ChannelContextEventAttendee
|
|
97
|
-
* // email: "STRING_VALUE", // required
|
|
98
|
-
* // name: "STRING_VALUE",
|
|
99
|
-
* // status: "accepted" || "tentative" || "declined" || "none", // required
|
|
100
|
-
* // },
|
|
101
|
-
* // ],
|
|
102
|
-
* // },
|
|
103
|
-
* // ],
|
|
104
|
-
* // ptt: { // ChannelContextPushToTalk
|
|
105
|
-
* // broadcastId: "STRING_VALUE",
|
|
106
|
-
* // },
|
|
107
|
-
* // },
|
|
108
|
-
* // whatsappStatus: "24h_channel_closed",
|
|
109
|
-
* // sms: true || false,
|
|
110
|
-
* // mms: true || false,
|
|
111
|
-
* // whatsapp: true || false,
|
|
112
|
-
* // kiteAssign: "STRING_VALUE",
|
|
113
|
-
* // serviceTitle: "STRING_VALUE",
|
|
114
|
-
* // assigneeId: "STRING_VALUE",
|
|
115
|
-
* // autoRecord: true || false,
|
|
116
|
-
* // transcriptionLanguage: "STRING_VALUE",
|
|
117
|
-
* // wizyGuestViewOnly: true || false,
|
|
118
|
-
* // },
|
|
119
|
-
* // highlights: [ // StringList
|
|
120
|
-
* // "STRING_VALUE",
|
|
121
|
-
* // ],
|
|
122
|
-
* // },
|
|
123
|
-
* // ],
|
|
124
|
-
* // nextCursor: "STRING_VALUE",
|
|
125
|
-
* // };
|
|
126
|
-
*
|
|
127
|
-
* ```
|
|
128
|
-
*
|
|
129
|
-
* @param SearchChannelsCommandInput - {@link SearchChannelsCommandInput}
|
|
130
|
-
* @returns {@link SearchChannelsCommandOutput}
|
|
131
|
-
* @see {@link SearchChannelsCommandInput} for command's `input` shape.
|
|
132
|
-
* @see {@link SearchChannelsCommandOutput} for command's `response` shape.
|
|
133
|
-
* @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
|
|
134
|
-
*
|
|
135
|
-
* @throws {@link StreamServiceException} (server fault)
|
|
136
|
-
*
|
|
137
|
-
* @throws {@link UnauthorizedException} (client fault)
|
|
138
|
-
*
|
|
139
|
-
* @throws {@link ForbiddenException} (client fault)
|
|
140
|
-
*
|
|
141
|
-
* @throws {@link ValidationException} (client fault)
|
|
142
|
-
*
|
|
143
|
-
* @throws {@link RateLimitExceededException} (client fault)
|
|
144
|
-
*
|
|
145
|
-
* @throws {@link StreamServiceServiceException}
|
|
146
|
-
* <p>Base exception class for all service exceptions from StreamService service.</p>
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
* @public
|
|
150
|
-
*/
|
|
151
|
-
export declare class SearchChannelsCommand extends SearchChannelsCommand_base {
|
|
152
|
-
/** @internal type navigation helper, not in runtime. */
|
|
153
|
-
protected static __types: {
|
|
154
|
-
api: {
|
|
155
|
-
input: SearchChannelsInput;
|
|
156
|
-
output: SearchChannelsOutput;
|
|
157
|
-
};
|
|
158
|
-
sdk: {
|
|
159
|
-
input: SearchChannelsCommandInput;
|
|
160
|
-
output: SearchChannelsCommandOutput;
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
}
|
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
2
|
-
import { SearchMessagesInput, SearchMessagesOutput } from "../models/models_0";
|
|
3
|
-
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
-
/**
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export type { __MetadataBearer };
|
|
9
|
-
export { $Command };
|
|
10
|
-
/**
|
|
11
|
-
* @public
|
|
12
|
-
*
|
|
13
|
-
* The input for {@link 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/smithy-client").CommandImpl<SearchMessagesCommandInput, SearchMessagesCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (...[input]: [] | [SearchMessagesCommandInput]): import("@smithy/smithy-client").CommandImpl<SearchMessagesCommandInput, SearchMessagesCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").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
|
-
* const client = new StreamServiceClient(config);
|
|
37
|
-
* const input = { // SearchMessagesInput
|
|
38
|
-
* companyId: "STRING_VALUE",
|
|
39
|
-
* userId: "STRING_VALUE",
|
|
40
|
-
* q: "STRING_VALUE",
|
|
41
|
-
* channelId: "STRING_VALUE",
|
|
42
|
-
* hasAttachments: true || false,
|
|
43
|
-
* attachmentTypes: [ // AttachmentTypeList
|
|
44
|
-
* "image" || "video" || "audio" || "file",
|
|
45
|
-
* ],
|
|
46
|
-
* mimeTypes: [ // MimeTypeList
|
|
47
|
-
* "STRING_VALUE",
|
|
48
|
-
* ],
|
|
49
|
-
* size: Number("int"),
|
|
50
|
-
* cursor: "STRING_VALUE",
|
|
51
|
-
* sort: "relevance" || "recency" || "recency_asc",
|
|
52
|
-
* };
|
|
53
|
-
* const command = new SearchMessagesCommand(input);
|
|
54
|
-
* const response = await client.send(command);
|
|
55
|
-
* // { // SearchMessagesOutput
|
|
56
|
-
* // results: [ // SearchMessageHitList // required
|
|
57
|
-
* // { // SearchMessageHit
|
|
58
|
-
* // channelId: "STRING_VALUE", // required
|
|
59
|
-
* // message: { // Message
|
|
60
|
-
* // messageId: "STRING_VALUE", // required
|
|
61
|
-
* // userId: "STRING_VALUE", // required
|
|
62
|
-
* // messageType: "regular" || "system" || "deleted", // required
|
|
63
|
-
* // text: "STRING_VALUE",
|
|
64
|
-
* // attachments: [ // MessageAttachmentList // required
|
|
65
|
-
* // { // MessageAttachment
|
|
66
|
-
* // fsId: "STRING_VALUE", // required
|
|
67
|
-
* // mime: "STRING_VALUE",
|
|
68
|
-
* // name: "STRING_VALUE", // required
|
|
69
|
-
* // size: Number("long"), // required
|
|
70
|
-
* // width: Number("int"),
|
|
71
|
-
* // height: Number("int"),
|
|
72
|
-
* // thumbnail: "STRING_VALUE",
|
|
73
|
-
* // id: "STRING_VALUE", // required
|
|
74
|
-
* // },
|
|
75
|
-
* // ],
|
|
76
|
-
* // mentions: [ // UserIdList // required
|
|
77
|
-
* // "STRING_VALUE",
|
|
78
|
-
* // ],
|
|
79
|
-
* // quote: { // MessageQuote
|
|
80
|
-
* // channelId: "STRING_VALUE", // required
|
|
81
|
-
* // messageId: "STRING_VALUE", // required
|
|
82
|
-
* // userId: "STRING_VALUE", // required
|
|
83
|
-
* // text: "STRING_VALUE",
|
|
84
|
-
* // createdAt: "STRING_VALUE", // required
|
|
85
|
-
* // },
|
|
86
|
-
* // forward: { // MessageForward
|
|
87
|
-
* // channelId: "STRING_VALUE", // required
|
|
88
|
-
* // messageId: "STRING_VALUE", // required
|
|
89
|
-
* // userId: "STRING_VALUE", // required
|
|
90
|
-
* // companyId: "STRING_VALUE",
|
|
91
|
-
* // createdAt: "STRING_VALUE",
|
|
92
|
-
* // },
|
|
93
|
-
* // reactionCounts: { // ReactionCounts // required
|
|
94
|
-
* // "<keys>": Number("int"),
|
|
95
|
-
* // },
|
|
96
|
-
* // latestReactions: [ // ReactionList
|
|
97
|
-
* // { // Reaction
|
|
98
|
-
* // type: "STRING_VALUE", // required
|
|
99
|
-
* // userId: "STRING_VALUE", // required
|
|
100
|
-
* // messageId: "STRING_VALUE", // required
|
|
101
|
-
* // },
|
|
102
|
-
* // ],
|
|
103
|
-
* // pinned: true || false, // required
|
|
104
|
-
* // pinnedAt: "STRING_VALUE",
|
|
105
|
-
* // pinnedBy: "STRING_VALUE",
|
|
106
|
-
* // system: true || false, // required
|
|
107
|
-
* // timelineSeq: Number("long"), // required
|
|
108
|
-
* // visibleSeq: Number("long"), // required
|
|
109
|
-
* // channelVersion: Number("long"), // required
|
|
110
|
-
* // messageVersion: Number("long"), // required
|
|
111
|
-
* // createdAt: "STRING_VALUE", // required
|
|
112
|
-
* // editedAt: "STRING_VALUE",
|
|
113
|
-
* // deletedAt: "STRING_VALUE",
|
|
114
|
-
* // elements: [ // ElementsList
|
|
115
|
-
* // { // Element Union: only one key present
|
|
116
|
-
* // template: { // MessageTemplateConfig
|
|
117
|
-
* // whatsapp: { // TemplateWithParameters
|
|
118
|
-
* // name: "STRING_VALUE", // required
|
|
119
|
-
* // parameters: [ // ListTemplateParameter
|
|
120
|
-
* // { // TemplateParameter
|
|
121
|
-
* // name: "STRING_VALUE", // required
|
|
122
|
-
* // value: "STRING_VALUE", // required
|
|
123
|
-
* // },
|
|
124
|
-
* // ],
|
|
125
|
-
* // },
|
|
126
|
-
* // },
|
|
127
|
-
* // actions: [ // ActionsElementsList
|
|
128
|
-
* // { // ActionElement Union: only one key present
|
|
129
|
-
* // button: { // ButtonElement
|
|
130
|
-
* // text: "STRING_VALUE", // required
|
|
131
|
-
* // handler: { // ButtonHandler Union: only one key present
|
|
132
|
-
* // link: { // ButtonLinkHandler
|
|
133
|
-
* // url: "STRING_VALUE", // required
|
|
134
|
-
* // },
|
|
135
|
-
* // reply: { // ButtonReplyHandler
|
|
136
|
-
* // text: "STRING_VALUE",
|
|
137
|
-
* // },
|
|
138
|
-
* // action: { // ButtonActionHandler
|
|
139
|
-
* // id: "STRING_VALUE", // required
|
|
140
|
-
* // },
|
|
141
|
-
* // },
|
|
142
|
-
* // variant: "contained" || "outlined",
|
|
143
|
-
* // disabled: true || false,
|
|
144
|
-
* // },
|
|
145
|
-
* // },
|
|
146
|
-
* // ],
|
|
147
|
-
* // },
|
|
148
|
-
* // ],
|
|
149
|
-
* // whatsapp: true || false,
|
|
150
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
151
|
-
* // sms: true || false,
|
|
152
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
153
|
-
* // markdown: true || false,
|
|
154
|
-
* // giphy: { // MessageGiphy
|
|
155
|
-
* // id: "STRING_VALUE", // required
|
|
156
|
-
* // size: "STRING_VALUE", // required
|
|
157
|
-
* // url: "STRING_VALUE", // required
|
|
158
|
-
* // height: "STRING_VALUE", // required
|
|
159
|
-
* // width: "STRING_VALUE", // required
|
|
160
|
-
* // },
|
|
161
|
-
* // silent: true || false,
|
|
162
|
-
* // event: "STRING_VALUE",
|
|
163
|
-
* // },
|
|
164
|
-
* // highlights: [ // StringList
|
|
165
|
-
* // "STRING_VALUE",
|
|
166
|
-
* // ],
|
|
167
|
-
* // },
|
|
168
|
-
* // ],
|
|
169
|
-
* // totalCount: Number("int"),
|
|
170
|
-
* // nextCursor: "STRING_VALUE",
|
|
171
|
-
* // };
|
|
172
|
-
*
|
|
173
|
-
* ```
|
|
174
|
-
*
|
|
175
|
-
* @param SearchMessagesCommandInput - {@link SearchMessagesCommandInput}
|
|
176
|
-
* @returns {@link SearchMessagesCommandOutput}
|
|
177
|
-
* @see {@link SearchMessagesCommandInput} for command's `input` shape.
|
|
178
|
-
* @see {@link SearchMessagesCommandOutput} for command's `response` shape.
|
|
179
|
-
* @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
|
|
180
|
-
*
|
|
181
|
-
* @throws {@link ChannelNotFoundException} (client fault)
|
|
182
|
-
*
|
|
183
|
-
* @throws {@link StreamServiceException} (server fault)
|
|
184
|
-
*
|
|
185
|
-
* @throws {@link UnauthorizedException} (client fault)
|
|
186
|
-
*
|
|
187
|
-
* @throws {@link ForbiddenException} (client fault)
|
|
188
|
-
*
|
|
189
|
-
* @throws {@link ValidationException} (client fault)
|
|
190
|
-
*
|
|
191
|
-
* @throws {@link RateLimitExceededException} (client fault)
|
|
192
|
-
*
|
|
193
|
-
* @throws {@link StreamServiceServiceException}
|
|
194
|
-
* <p>Base exception class for all service exceptions from StreamService service.</p>
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
* @public
|
|
198
|
-
*/
|
|
199
|
-
export declare class SearchMessagesCommand extends SearchMessagesCommand_base {
|
|
200
|
-
/** @internal type navigation helper, not in runtime. */
|
|
201
|
-
protected static __types: {
|
|
202
|
-
api: {
|
|
203
|
-
input: SearchMessagesInput;
|
|
204
|
-
output: SearchMessagesOutput;
|
|
205
|
-
};
|
|
206
|
-
sdk: {
|
|
207
|
-
input: SearchMessagesCommandInput;
|
|
208
|
-
output: SearchMessagesCommandOutput;
|
|
209
|
-
};
|
|
210
|
-
};
|
|
211
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|