@wildix/stream-client 0.0.11 → 0.0.12
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 +0 -4
- package/dist-cjs/commands/index.js +0 -2
- package/dist-cjs/models/models_0.js +1 -5
- package/dist-cjs/protocols/Aws_restJson1.js +3 -80
- package/dist-es/StreamService.js +0 -4
- package/dist-es/commands/index.js +0 -2
- package/dist-es/models/models_0.js +0 -4
- package/dist-es/protocols/Aws_restJson1.js +1 -74
- package/dist-types/StreamService.d.ts +0 -14
- package/dist-types/StreamServiceClient.d.ts +2 -4
- package/dist-types/commands/AddChannelMemberCommand.d.ts +3 -1
- package/dist-types/commands/AddChannelMembersCommand.d.ts +3 -1
- package/dist-types/commands/AssignChannelCommand.d.ts +3 -1
- package/dist-types/commands/CreateGroupChannelCommand.d.ts +4 -1
- package/dist-types/commands/CreateKiteChannelCommand.d.ts +4 -1
- package/dist-types/commands/CreateSectionCommand.d.ts +3 -1
- package/dist-types/commands/DeleteChannelCommand.d.ts +3 -1
- package/dist-types/commands/DeleteChannelMemberCommand.d.ts +3 -1
- package/dist-types/commands/DeleteMessageCommand.d.ts +3 -1
- package/dist-types/commands/DeleteMessageReactionCommand.d.ts +3 -1
- package/dist-types/commands/DeleteSectionCommand.d.ts +3 -1
- package/dist-types/commands/GetChannelCommand.d.ts +4 -1
- package/dist-types/commands/GetChannelMemberCommand.d.ts +3 -1
- package/dist-types/commands/GetDirectChannelIdCommand.d.ts +3 -1
- package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +3 -1
- package/dist-types/commands/GetInboxCommand.d.ts +4 -1
- package/dist-types/commands/GetMessageCommand.d.ts +3 -1
- package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +4 -1
- package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +4 -1
- package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +4 -1
- package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +4 -1
- package/dist-types/commands/GetSmsChannelIdCommand.d.ts +3 -1
- package/dist-types/commands/GetTelephonyChannelIdCommand.d.ts +3 -1
- package/dist-types/commands/GetTokenCommand.d.ts +3 -1
- package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +3 -1
- package/dist-types/commands/GetWhatsAppChannelIdCommand.d.ts +3 -1
- package/dist-types/commands/HideChannelCommand.d.ts +3 -1
- package/dist-types/commands/JoinChannelCommand.d.ts +4 -1
- package/dist-types/commands/LeaveChannelCommand.d.ts +3 -1
- package/dist-types/commands/ListChannelMembersCommand.d.ts +3 -1
- package/dist-types/commands/ListChannelMembersReadStatusCommand.d.ts +3 -1
- package/dist-types/commands/ListChannelsCommand.d.ts +4 -1
- package/dist-types/commands/ListMentionsCommand.d.ts +3 -1
- package/dist-types/commands/ListMessagesCommand.d.ts +3 -1
- package/dist-types/commands/MarkReadCommand.d.ts +3 -1
- package/dist-types/commands/MarkUnreadCommand.d.ts +3 -1
- package/dist-types/commands/MoveChannelToSectionCommand.d.ts +3 -1
- package/dist-types/commands/MuteChannelCommand.d.ts +3 -1
- package/dist-types/commands/PartialUpdateChannelCommand.d.ts +4 -1
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +3 -1
- package/dist-types/commands/PinChannelCommand.d.ts +3 -1
- package/dist-types/commands/PinMessageCommand.d.ts +3 -1
- package/dist-types/commands/QueryChannelsCommand.d.ts +4 -1
- package/dist-types/commands/RemoveChannelFromSectionCommand.d.ts +3 -1
- package/dist-types/commands/RenameSectionCommand.d.ts +3 -1
- package/dist-types/commands/SendGiphyCommand.d.ts +3 -1
- package/dist-types/commands/SendMessageCommand.d.ts +3 -1
- package/dist-types/commands/SendMessageReactionCommand.d.ts +3 -1
- package/dist-types/commands/SendSystemMessageCommand.d.ts +3 -1
- package/dist-types/commands/SendTypingStartCommand.d.ts +3 -1
- package/dist-types/commands/SendTypingStopCommand.d.ts +3 -1
- package/dist-types/commands/ShowChannelCommand.d.ts +3 -1
- package/dist-types/commands/UnmuteChannelCommand.d.ts +3 -1
- package/dist-types/commands/UnpinChannelCommand.d.ts +3 -1
- package/dist-types/commands/UnpinMessageCommand.d.ts +3 -1
- package/dist-types/commands/UpdateChannelCommand.d.ts +4 -1
- package/dist-types/commands/UpdateMessageCommand.d.ts +3 -1
- package/dist-types/commands/UploadFileCommand.d.ts +3 -1
- package/dist-types/commands/index.d.ts +0 -2
- package/dist-types/models/models_0.d.ts +5 -144
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -18
- package/dist-types/runtimeConfig.browser.d.ts +3 -1
- package/dist-types/runtimeConfig.d.ts +3 -1
- package/dist-types/runtimeConfig.native.d.ts +3 -1
- package/package.json +1 -1
- package/dist-cjs/commands/SearchChannelsCommand.js +0 -21
- package/dist-cjs/commands/SearchMessagesCommand.js +0 -21
- package/dist-es/commands/SearchChannelsCommand.js +0 -17
- package/dist-es/commands/SearchMessagesCommand.js +0 -17
- package/dist-types/commands/SearchChannelsCommand.d.ts +0 -159
- package/dist-types/commands/SearchMessagesCommand.d.ts +0 -204
|
@@ -24,7 +24,9 @@ export interface UploadFileCommandOutput extends UploadFileOutput, __MetadataBea
|
|
|
24
24
|
declare const UploadFileCommand_base: {
|
|
25
25
|
new (input: UploadFileCommandInput): import("@smithy/smithy-client").CommandImpl<UploadFileCommandInput, UploadFileCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
26
|
new (__0_0: UploadFileCommandInput): import("@smithy/smithy-client").CommandImpl<UploadFileCommandInput, UploadFileCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* 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,8 +43,6 @@ 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";
|
|
48
46
|
export * from "./SendGiphyCommand";
|
|
49
47
|
export * from "./SendMessageCommand";
|
|
50
48
|
export * from "./SendMessageReactionCommand";
|
|
@@ -562,6 +562,11 @@ export interface LastMessagePreview {
|
|
|
562
562
|
* @public
|
|
563
563
|
*/
|
|
564
564
|
text?: string | undefined;
|
|
565
|
+
/**
|
|
566
|
+
* System event identifier for client rendering.
|
|
567
|
+
* @public
|
|
568
|
+
*/
|
|
569
|
+
event?: string | undefined;
|
|
565
570
|
/**
|
|
566
571
|
* Creation timestamp of the message.
|
|
567
572
|
* @public
|
|
@@ -3336,150 +3341,6 @@ export interface RenameSectionOutput {
|
|
|
3336
3341
|
*/
|
|
3337
3342
|
section: Section;
|
|
3338
3343
|
}
|
|
3339
|
-
/**
|
|
3340
|
-
* @public
|
|
3341
|
-
*/
|
|
3342
|
-
export interface SearchChannelHit {
|
|
3343
|
-
channel: Channel;
|
|
3344
|
-
/**
|
|
3345
|
-
* Highlighted fragments from the matched channel subject or description.
|
|
3346
|
-
* @public
|
|
3347
|
-
*/
|
|
3348
|
-
highlights?: (string)[] | undefined;
|
|
3349
|
-
}
|
|
3350
|
-
/**
|
|
3351
|
-
* @public
|
|
3352
|
-
*/
|
|
3353
|
-
export interface SearchChannelsInput {
|
|
3354
|
-
/**
|
|
3355
|
-
* The unique identifier of the tenant when a service token is used.
|
|
3356
|
-
* @public
|
|
3357
|
-
*/
|
|
3358
|
-
companyId?: string | undefined;
|
|
3359
|
-
/**
|
|
3360
|
-
* The unique identifier of the user when a service or PBX token is used.
|
|
3361
|
-
* @public
|
|
3362
|
-
*/
|
|
3363
|
-
userId?: string | undefined;
|
|
3364
|
-
/**
|
|
3365
|
-
* Search text.
|
|
3366
|
-
* @public
|
|
3367
|
-
*/
|
|
3368
|
-
q: string;
|
|
3369
|
-
/**
|
|
3370
|
-
* Page size. Default 20, max 50.
|
|
3371
|
-
* @public
|
|
3372
|
-
*/
|
|
3373
|
-
size?: number | undefined;
|
|
3374
|
-
/**
|
|
3375
|
-
* Opaque continuation token from the previous response.
|
|
3376
|
-
* @public
|
|
3377
|
-
*/
|
|
3378
|
-
cursor?: string | undefined;
|
|
3379
|
-
}
|
|
3380
|
-
/**
|
|
3381
|
-
* @public
|
|
3382
|
-
*/
|
|
3383
|
-
export interface SearchChannelsOutput {
|
|
3384
|
-
/**
|
|
3385
|
-
* Matching channels ordered by relevance.
|
|
3386
|
-
* @public
|
|
3387
|
-
*/
|
|
3388
|
-
results: (SearchChannelHit)[];
|
|
3389
|
-
/**
|
|
3390
|
-
* Cursor for the next page. Absent when there are no more pages.
|
|
3391
|
-
* @public
|
|
3392
|
-
*/
|
|
3393
|
-
nextCursor?: string | undefined;
|
|
3394
|
-
}
|
|
3395
|
-
/**
|
|
3396
|
-
* @public
|
|
3397
|
-
*/
|
|
3398
|
-
export interface SearchMessageHit {
|
|
3399
|
-
channelId: string;
|
|
3400
|
-
/**
|
|
3401
|
-
* Message row returned by listing and lookup endpoints. Deleted messages keep their position with `deletedAt` set and empty body.
|
|
3402
|
-
* @public
|
|
3403
|
-
*/
|
|
3404
|
-
message: Message;
|
|
3405
|
-
/**
|
|
3406
|
-
* Highlighted fragments from the matched message text or attachment names.
|
|
3407
|
-
* @public
|
|
3408
|
-
*/
|
|
3409
|
-
highlights?: (string)[] | undefined;
|
|
3410
|
-
}
|
|
3411
|
-
/**
|
|
3412
|
-
* @public
|
|
3413
|
-
* @enum
|
|
3414
|
-
*/
|
|
3415
|
-
export declare const SearchSort: {
|
|
3416
|
-
readonly RECENCY: "recency";
|
|
3417
|
-
readonly RELEVANCE: "relevance";
|
|
3418
|
-
};
|
|
3419
|
-
/**
|
|
3420
|
-
* @public
|
|
3421
|
-
*/
|
|
3422
|
-
export type SearchSort = typeof SearchSort[keyof typeof SearchSort];
|
|
3423
|
-
/**
|
|
3424
|
-
* @public
|
|
3425
|
-
*/
|
|
3426
|
-
export interface SearchMessagesInput {
|
|
3427
|
-
/**
|
|
3428
|
-
* The unique identifier of the tenant when a service token is used.
|
|
3429
|
-
* @public
|
|
3430
|
-
*/
|
|
3431
|
-
companyId?: string | undefined;
|
|
3432
|
-
/**
|
|
3433
|
-
* The unique identifier of the user when a service or PBX token is used.
|
|
3434
|
-
* @public
|
|
3435
|
-
*/
|
|
3436
|
-
userId?: string | undefined;
|
|
3437
|
-
/**
|
|
3438
|
-
* Search text.
|
|
3439
|
-
* @public
|
|
3440
|
-
*/
|
|
3441
|
-
q: string;
|
|
3442
|
-
/**
|
|
3443
|
-
* When set, restricts the search to this channel (in-channel search).
|
|
3444
|
-
* @public
|
|
3445
|
-
*/
|
|
3446
|
-
channelId?: string | undefined;
|
|
3447
|
-
/**
|
|
3448
|
-
* Page size. Default 20, max 50.
|
|
3449
|
-
* @public
|
|
3450
|
-
*/
|
|
3451
|
-
size?: number | undefined;
|
|
3452
|
-
/**
|
|
3453
|
-
* Opaque continuation token from the previous response.
|
|
3454
|
-
* @public
|
|
3455
|
-
*/
|
|
3456
|
-
cursor?: string | undefined;
|
|
3457
|
-
/**
|
|
3458
|
-
* Result ordering. `relevance` (default) or `recency`.
|
|
3459
|
-
* @public
|
|
3460
|
-
*/
|
|
3461
|
-
sort?: SearchSort | undefined;
|
|
3462
|
-
}
|
|
3463
|
-
/**
|
|
3464
|
-
* @public
|
|
3465
|
-
*/
|
|
3466
|
-
export interface SearchMessagesOutput {
|
|
3467
|
-
/**
|
|
3468
|
-
* Matching messages, access-filtered and ordered by the requested sort.
|
|
3469
|
-
* @public
|
|
3470
|
-
*/
|
|
3471
|
-
results: (SearchMessageHit)[];
|
|
3472
|
-
/**
|
|
3473
|
-
* Total OpenSearch hit count before the visibility post-filter; approximate.
|
|
3474
|
-
* @public
|
|
3475
|
-
*/
|
|
3476
|
-
totalCount?: number | undefined;
|
|
3477
|
-
/**
|
|
3478
|
-
* Cursor for the next page. Absent when there are no more pages.
|
|
3479
|
-
* @public
|
|
3480
|
-
*/
|
|
3481
|
-
nextCursor?: string | undefined;
|
|
3482
|
-
}
|
|
3483
3344
|
/**
|
|
3484
3345
|
* @public
|
|
3485
3346
|
*/
|
|
@@ -43,8 +43,6 @@ import { PinMessageCommandInput, PinMessageCommandOutput } from "../commands/Pin
|
|
|
43
43
|
import { QueryChannelsCommandInput, QueryChannelsCommandOutput } from "../commands/QueryChannelsCommand";
|
|
44
44
|
import { RemoveChannelFromSectionCommandInput, RemoveChannelFromSectionCommandOutput } from "../commands/RemoveChannelFromSectionCommand";
|
|
45
45
|
import { RenameSectionCommandInput, RenameSectionCommandOutput } from "../commands/RenameSectionCommand";
|
|
46
|
-
import { SearchChannelsCommandInput, SearchChannelsCommandOutput } from "../commands/SearchChannelsCommand";
|
|
47
|
-
import { SearchMessagesCommandInput, SearchMessagesCommandOutput } from "../commands/SearchMessagesCommand";
|
|
48
46
|
import { SendGiphyCommandInput, SendGiphyCommandOutput } from "../commands/SendGiphyCommand";
|
|
49
47
|
import { SendMessageCommandInput, SendMessageCommandOutput } from "../commands/SendMessageCommand";
|
|
50
48
|
import { SendMessageReactionCommandInput, SendMessageReactionCommandOutput } from "../commands/SendMessageReactionCommand";
|
|
@@ -240,14 +238,6 @@ export declare const se_RemoveChannelFromSectionCommand: (input: RemoveChannelFr
|
|
|
240
238
|
* serializeAws_restJson1RenameSectionCommand
|
|
241
239
|
*/
|
|
242
240
|
export declare const se_RenameSectionCommand: (input: RenameSectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
243
|
-
/**
|
|
244
|
-
* serializeAws_restJson1SearchChannelsCommand
|
|
245
|
-
*/
|
|
246
|
-
export declare const se_SearchChannelsCommand: (input: SearchChannelsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
247
|
-
/**
|
|
248
|
-
* serializeAws_restJson1SearchMessagesCommand
|
|
249
|
-
*/
|
|
250
|
-
export declare const se_SearchMessagesCommand: (input: SearchMessagesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
251
241
|
/**
|
|
252
242
|
* serializeAws_restJson1SendGiphyCommand
|
|
253
243
|
*/
|
|
@@ -480,14 +470,6 @@ export declare const de_RemoveChannelFromSectionCommand: (output: __HttpResponse
|
|
|
480
470
|
* deserializeAws_restJson1RenameSectionCommand
|
|
481
471
|
*/
|
|
482
472
|
export declare const de_RenameSectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RenameSectionCommandOutput>;
|
|
483
|
-
/**
|
|
484
|
-
* deserializeAws_restJson1SearchChannelsCommand
|
|
485
|
-
*/
|
|
486
|
-
export declare const de_SearchChannelsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SearchChannelsCommandOutput>;
|
|
487
|
-
/**
|
|
488
|
-
* deserializeAws_restJson1SearchMessagesCommand
|
|
489
|
-
*/
|
|
490
|
-
export declare const de_SearchMessagesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SearchMessagesCommandOutput>;
|
|
491
473
|
/**
|
|
492
474
|
* deserializeAws_restJson1SendGiphyCommand
|
|
493
475
|
*/
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
1
3
|
import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
|
|
2
4
|
import { StreamServiceClientConfig } from "./StreamServiceClient";
|
|
3
5
|
/**
|
|
@@ -12,7 +14,7 @@ export declare const getRuntimeConfig: (config: StreamServiceClientConfig) => {
|
|
|
12
14
|
requestHandler: import("@smithy/protocol-http").HttpHandler<any> | RequestHandler;
|
|
13
15
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
14
16
|
sha256: import("@smithy/types").HashConstructor;
|
|
15
|
-
streamCollector: import("
|
|
17
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream<any> | ReadableStream<any> | Blob) => Promise<Uint8Array>;
|
|
16
18
|
serviceRegion?: "eu-1" | "us-1" | undefined;
|
|
17
19
|
env?: "stage" | "stable" | "prod" | undefined;
|
|
18
20
|
token: import("@wildix/smithy-utils").TokenProvider;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
1
3
|
import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
|
|
2
4
|
import { StreamServiceClientConfig } from "./StreamServiceClient";
|
|
3
5
|
/**
|
|
@@ -12,7 +14,7 @@ export declare const getRuntimeConfig: (config: StreamServiceClientConfig) => {
|
|
|
12
14
|
requestHandler: RequestHandler | import("@smithy/protocol-http").HttpHandler<any>;
|
|
13
15
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
14
16
|
sha256: import("@smithy/types").HashConstructor;
|
|
15
|
-
streamCollector: import("
|
|
17
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream<any> | ReadableStream<any> | Blob) => Promise<Uint8Array>;
|
|
16
18
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
17
19
|
serviceRegion?: "eu-1" | "us-1" | undefined;
|
|
18
20
|
env?: "stage" | "stable" | "prod" | undefined;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
1
3
|
import { StreamServiceClientConfig } from "./StreamServiceClient";
|
|
2
4
|
/**
|
|
3
5
|
* @internal
|
|
@@ -19,7 +21,7 @@ export declare const getRuntimeConfig: (config: StreamServiceClientConfig) => {
|
|
|
19
21
|
apiVersion: string;
|
|
20
22
|
urlParser: import("@smithy/types").UrlParser;
|
|
21
23
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
22
|
-
streamCollector: import("
|
|
24
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream<any> | ReadableStream<any> | Blob) => Promise<Uint8Array>;
|
|
23
25
|
base64Decoder: import("@smithy/types").Decoder;
|
|
24
26
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
25
27
|
utf8Decoder: import("@smithy/types").Decoder;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/stream-client",
|
|
3
3
|
"description": "@wildix/stream-client client",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.12",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SearchChannelsCommand = exports.$Command = void 0;
|
|
4
|
-
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
-
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
class SearchChannelsCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [
|
|
11
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
-
];
|
|
13
|
-
})
|
|
14
|
-
.s("StreamService", "SearchChannels", {})
|
|
15
|
-
.n("StreamServiceClient", "SearchChannelsCommand")
|
|
16
|
-
.f(void 0, void 0)
|
|
17
|
-
.ser(Aws_restJson1_1.se_SearchChannelsCommand)
|
|
18
|
-
.de(Aws_restJson1_1.de_SearchChannelsCommand)
|
|
19
|
-
.build() {
|
|
20
|
-
}
|
|
21
|
-
exports.SearchChannelsCommand = SearchChannelsCommand;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SearchMessagesCommand = exports.$Command = void 0;
|
|
4
|
-
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
-
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
class SearchMessagesCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [
|
|
11
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
-
];
|
|
13
|
-
})
|
|
14
|
-
.s("StreamService", "SearchMessages", {})
|
|
15
|
-
.n("StreamServiceClient", "SearchMessagesCommand")
|
|
16
|
-
.f(void 0, void 0)
|
|
17
|
-
.ser(Aws_restJson1_1.se_SearchMessagesCommand)
|
|
18
|
-
.de(Aws_restJson1_1.de_SearchMessagesCommand)
|
|
19
|
-
.build() {
|
|
20
|
-
}
|
|
21
|
-
exports.SearchMessagesCommand = SearchMessagesCommand;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { de_SearchChannelsCommand, se_SearchChannelsCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
-
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
export { $Command };
|
|
5
|
-
export class SearchChannelsCommand extends $Command.classBuilder()
|
|
6
|
-
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
-
})
|
|
11
|
-
.s("StreamService", "SearchChannels", {})
|
|
12
|
-
.n("StreamServiceClient", "SearchChannelsCommand")
|
|
13
|
-
.f(void 0, void 0)
|
|
14
|
-
.ser(se_SearchChannelsCommand)
|
|
15
|
-
.de(de_SearchChannelsCommand)
|
|
16
|
-
.build() {
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { de_SearchMessagesCommand, se_SearchMessagesCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
-
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
export { $Command };
|
|
5
|
-
export class SearchMessagesCommand extends $Command.classBuilder()
|
|
6
|
-
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
-
})
|
|
11
|
-
.s("StreamService", "SearchMessages", {})
|
|
12
|
-
.n("StreamServiceClient", "SearchMessagesCommand")
|
|
13
|
-
.f(void 0, void 0)
|
|
14
|
-
.ser(se_SearchMessagesCommand)
|
|
15
|
-
.de(de_SearchMessagesCommand)
|
|
16
|
-
.build() {
|
|
17
|
-
}
|
|
@@ -1,159 +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 (__0_0: 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", // required
|
|
41
|
-
* size: Number("int"),
|
|
42
|
-
* cursor: "STRING_VALUE",
|
|
43
|
-
* };
|
|
44
|
-
* const command = new SearchChannelsCommand(input);
|
|
45
|
-
* const response = await client.send(command);
|
|
46
|
-
* // { // SearchChannelsOutput
|
|
47
|
-
* // results: [ // SearchChannelHitList // required
|
|
48
|
-
* // { // SearchChannelHit
|
|
49
|
-
* // channel: { // Channel
|
|
50
|
-
* // channelId: "STRING_VALUE", // required
|
|
51
|
-
* // channelType: "direct" || "group", // required
|
|
52
|
-
* // membersCount: Number("int"), // required
|
|
53
|
-
* // createdAt: "STRING_VALUE", // required
|
|
54
|
-
* // createdBy: "STRING_VALUE", // required
|
|
55
|
-
* // updatedAt: "STRING_VALUE",
|
|
56
|
-
* // channelVersion: Number("long"), // required
|
|
57
|
-
* // lastActivityAt: "STRING_VALUE", // required
|
|
58
|
-
* // lastMessage: { // LastMessagePreview
|
|
59
|
-
* // messageId: "STRING_VALUE", // required
|
|
60
|
-
* // userId: "STRING_VALUE", // required
|
|
61
|
-
* // messageType: "regular" || "system" || "deleted", // required
|
|
62
|
-
* // text: "STRING_VALUE",
|
|
63
|
-
* // createdAt: "STRING_VALUE", // required
|
|
64
|
-
* // },
|
|
65
|
-
* // company: "STRING_VALUE",
|
|
66
|
-
* // kite: true || false,
|
|
67
|
-
* // kiteTarget: "STRING_VALUE",
|
|
68
|
-
* // kiteVariant: "STRING_VALUE",
|
|
69
|
-
* // kiteServiceName: "STRING_VALUE",
|
|
70
|
-
* // kiteDefaultSubject: "STRING_VALUE",
|
|
71
|
-
* // service: "STRING_VALUE",
|
|
72
|
-
* // serviceRecipient: "STRING_VALUE",
|
|
73
|
-
* // telephony: true || false,
|
|
74
|
-
* // external: true || false,
|
|
75
|
-
* // subject: "STRING_VALUE",
|
|
76
|
-
* // description: "STRING_VALUE",
|
|
77
|
-
* // picture: "STRING_VALUE",
|
|
78
|
-
* // pictureColor: "STRING_VALUE",
|
|
79
|
-
* // access: "private" || "public",
|
|
80
|
-
* // broadcast: true || false,
|
|
81
|
-
* // context: { // ChannelContext
|
|
82
|
-
* // source: "kite",
|
|
83
|
-
* // target: "STRING_VALUE",
|
|
84
|
-
* // events: [ // ChannelContextEventList
|
|
85
|
-
* // { // ChannelContextEvent
|
|
86
|
-
* // id: "STRING_VALUE",
|
|
87
|
-
* // owner: "STRING_VALUE",
|
|
88
|
-
* // start: "STRING_VALUE",
|
|
89
|
-
* // end: "STRING_VALUE",
|
|
90
|
-
* // summary: "STRING_VALUE",
|
|
91
|
-
* // attendees: [ // ChannelContextEventAttendeeList
|
|
92
|
-
* // { // ChannelContextEventAttendee
|
|
93
|
-
* // email: "STRING_VALUE", // required
|
|
94
|
-
* // name: "STRING_VALUE",
|
|
95
|
-
* // status: "accepted" || "tentative" || "declined" || "none", // required
|
|
96
|
-
* // },
|
|
97
|
-
* // ],
|
|
98
|
-
* // },
|
|
99
|
-
* // ],
|
|
100
|
-
* // ptt: { // ChannelContextPushToTalk
|
|
101
|
-
* // broadcastId: "STRING_VALUE",
|
|
102
|
-
* // },
|
|
103
|
-
* // },
|
|
104
|
-
* // whatsappStatus: "24h_channel_closed",
|
|
105
|
-
* // sms: true || false,
|
|
106
|
-
* // mms: true || false,
|
|
107
|
-
* // whatsapp: true || false,
|
|
108
|
-
* // kiteAssign: "STRING_VALUE",
|
|
109
|
-
* // serviceTitle: "STRING_VALUE",
|
|
110
|
-
* // assigneeId: "STRING_VALUE",
|
|
111
|
-
* // autoRecord: true || false,
|
|
112
|
-
* // transcriptionLanguage: "STRING_VALUE",
|
|
113
|
-
* // wizyGuestViewOnly: true || false,
|
|
114
|
-
* // },
|
|
115
|
-
* // highlights: [ // StringList
|
|
116
|
-
* // "STRING_VALUE",
|
|
117
|
-
* // ],
|
|
118
|
-
* // },
|
|
119
|
-
* // ],
|
|
120
|
-
* // nextCursor: "STRING_VALUE",
|
|
121
|
-
* // };
|
|
122
|
-
*
|
|
123
|
-
* ```
|
|
124
|
-
*
|
|
125
|
-
* @param SearchChannelsCommandInput - {@link SearchChannelsCommandInput}
|
|
126
|
-
* @returns {@link SearchChannelsCommandOutput}
|
|
127
|
-
* @see {@link SearchChannelsCommandInput} for command's `input` shape.
|
|
128
|
-
* @see {@link SearchChannelsCommandOutput} for command's `response` shape.
|
|
129
|
-
* @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
|
|
130
|
-
*
|
|
131
|
-
* @throws {@link StreamServiceException} (server fault)
|
|
132
|
-
*
|
|
133
|
-
* @throws {@link UnauthorizedException} (client fault)
|
|
134
|
-
*
|
|
135
|
-
* @throws {@link ForbiddenException} (client fault)
|
|
136
|
-
*
|
|
137
|
-
* @throws {@link ValidationException} (client fault)
|
|
138
|
-
*
|
|
139
|
-
* @throws {@link RateLimitExceededException} (client fault)
|
|
140
|
-
*
|
|
141
|
-
* @throws {@link StreamServiceServiceException}
|
|
142
|
-
* <p>Base exception class for all service exceptions from StreamService service.</p>
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
* @public
|
|
146
|
-
*/
|
|
147
|
-
export declare class SearchChannelsCommand extends SearchChannelsCommand_base {
|
|
148
|
-
/** @internal type navigation helper, not in runtime. */
|
|
149
|
-
protected static __types: {
|
|
150
|
-
api: {
|
|
151
|
-
input: SearchChannelsInput;
|
|
152
|
-
output: SearchChannelsOutput;
|
|
153
|
-
};
|
|
154
|
-
sdk: {
|
|
155
|
-
input: SearchChannelsCommandInput;
|
|
156
|
-
output: SearchChannelsCommandOutput;
|
|
157
|
-
};
|
|
158
|
-
};
|
|
159
|
-
}
|