@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,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { SendTypingStopInput, SendTypingStopOutput } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -22,9 +22,11 @@ export interface SendTypingStopCommandInput extends SendTypingStopInput {
|
|
|
22
22
|
export interface SendTypingStopCommandOutput extends SendTypingStopOutput, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const SendTypingStopCommand_base: {
|
|
25
|
-
new (input: SendTypingStopCommandInput): import("@smithy/
|
|
26
|
-
new (
|
|
27
|
-
getEndpointParameterInstructions():
|
|
25
|
+
new (input: SendTypingStopCommandInput): import("@smithy/core/client").CommandImpl<SendTypingStopCommandInput, SendTypingStopCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: SendTypingStopCommandInput): import("@smithy/core/client").CommandImpl<SendTypingStopCommandInput, SendTypingStopCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* Broadcasts a typing-stop indicator for the current user in a channel.
|
|
@@ -33,6 +35,8 @@ declare const SendTypingStopCommand_base: {
|
|
|
33
35
|
* ```javascript
|
|
34
36
|
* import { StreamServiceClient, SendTypingStopCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
37
|
* // const { StreamServiceClient, SendTypingStopCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
38
|
+
* // import type { StreamServiceClientConfig } from "@wildix/stream-client";
|
|
39
|
+
* const config = {}; // type is StreamServiceClientConfig
|
|
36
40
|
* const client = new StreamServiceClient(config);
|
|
37
41
|
* const input = { // SendTypingStopInput
|
|
38
42
|
* companyId: "STRING_VALUE",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { ShowChannelInput, ShowChannelOutput } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -22,9 +22,11 @@ export interface ShowChannelCommandInput extends ShowChannelInput {
|
|
|
22
22
|
export interface ShowChannelCommandOutput extends ShowChannelOutput, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const ShowChannelCommand_base: {
|
|
25
|
-
new (input: ShowChannelCommandInput): import("@smithy/
|
|
26
|
-
new (
|
|
27
|
-
getEndpointParameterInstructions():
|
|
25
|
+
new (input: ShowChannelCommandInput): import("@smithy/core/client").CommandImpl<ShowChannelCommandInput, ShowChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: ShowChannelCommandInput): import("@smithy/core/client").CommandImpl<ShowChannelCommandInput, ShowChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* Restores a hidden channel for the current user.
|
|
@@ -33,6 +35,8 @@ declare const ShowChannelCommand_base: {
|
|
|
33
35
|
* ```javascript
|
|
34
36
|
* import { StreamServiceClient, ShowChannelCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
37
|
* // const { StreamServiceClient, ShowChannelCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
38
|
+
* // import type { StreamServiceClientConfig } from "@wildix/stream-client";
|
|
39
|
+
* const config = {}; // type is StreamServiceClientConfig
|
|
36
40
|
* const client = new StreamServiceClient(config);
|
|
37
41
|
* const input = { // ShowChannelInput
|
|
38
42
|
* companyId: "STRING_VALUE",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { UnmuteChannelInput, UnmuteChannelOutput } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -22,9 +22,11 @@ export interface UnmuteChannelCommandInput extends UnmuteChannelInput {
|
|
|
22
22
|
export interface UnmuteChannelCommandOutput extends UnmuteChannelOutput, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const UnmuteChannelCommand_base: {
|
|
25
|
-
new (input: UnmuteChannelCommandInput): import("@smithy/
|
|
26
|
-
new (
|
|
27
|
-
getEndpointParameterInstructions():
|
|
25
|
+
new (input: UnmuteChannelCommandInput): import("@smithy/core/client").CommandImpl<UnmuteChannelCommandInput, UnmuteChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: UnmuteChannelCommandInput): import("@smithy/core/client").CommandImpl<UnmuteChannelCommandInput, UnmuteChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* Unmutes a channel for the current user.
|
|
@@ -33,6 +35,8 @@ declare const UnmuteChannelCommand_base: {
|
|
|
33
35
|
* ```javascript
|
|
34
36
|
* import { StreamServiceClient, UnmuteChannelCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
37
|
* // const { StreamServiceClient, UnmuteChannelCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
38
|
+
* // import type { StreamServiceClientConfig } from "@wildix/stream-client";
|
|
39
|
+
* const config = {}; // type is StreamServiceClientConfig
|
|
36
40
|
* const client = new StreamServiceClient(config);
|
|
37
41
|
* const input = { // UnmuteChannelInput
|
|
38
42
|
* companyId: "STRING_VALUE",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { UnpinChannelInput, UnpinChannelOutput } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -22,9 +22,11 @@ export interface UnpinChannelCommandInput extends UnpinChannelInput {
|
|
|
22
22
|
export interface UnpinChannelCommandOutput extends UnpinChannelOutput, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const UnpinChannelCommand_base: {
|
|
25
|
-
new (input: UnpinChannelCommandInput): import("@smithy/
|
|
26
|
-
new (
|
|
27
|
-
getEndpointParameterInstructions():
|
|
25
|
+
new (input: UnpinChannelCommandInput): import("@smithy/core/client").CommandImpl<UnpinChannelCommandInput, UnpinChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: UnpinChannelCommandInput): import("@smithy/core/client").CommandImpl<UnpinChannelCommandInput, UnpinChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* Unpins a channel in the current user's inbox.
|
|
@@ -33,6 +35,8 @@ declare const UnpinChannelCommand_base: {
|
|
|
33
35
|
* ```javascript
|
|
34
36
|
* import { StreamServiceClient, UnpinChannelCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
37
|
* // const { StreamServiceClient, UnpinChannelCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
38
|
+
* // import type { StreamServiceClientConfig } from "@wildix/stream-client";
|
|
39
|
+
* const config = {}; // type is StreamServiceClientConfig
|
|
36
40
|
* const client = new StreamServiceClient(config);
|
|
37
41
|
* const input = { // UnpinChannelInput
|
|
38
42
|
* companyId: "STRING_VALUE",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { UnpinMessageInput, UnpinMessageOutput } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -22,9 +22,11 @@ export interface UnpinMessageCommandInput extends UnpinMessageInput {
|
|
|
22
22
|
export interface UnpinMessageCommandOutput extends UnpinMessageOutput, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const UnpinMessageCommand_base: {
|
|
25
|
-
new (input: UnpinMessageCommandInput): import("@smithy/
|
|
26
|
-
new (
|
|
27
|
-
getEndpointParameterInstructions():
|
|
25
|
+
new (input: UnpinMessageCommandInput): import("@smithy/core/client").CommandImpl<UnpinMessageCommandInput, UnpinMessageCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: UnpinMessageCommandInput): import("@smithy/core/client").CommandImpl<UnpinMessageCommandInput, UnpinMessageCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* Unpins one message at channel scope. Duplicate calls on an already-unpinned message are absorbed and do not advance `messageVersion`.
|
|
@@ -33,6 +35,8 @@ declare const UnpinMessageCommand_base: {
|
|
|
33
35
|
* ```javascript
|
|
34
36
|
* import { StreamServiceClient, UnpinMessageCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
37
|
* // const { StreamServiceClient, UnpinMessageCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
38
|
+
* // import type { StreamServiceClientConfig } from "@wildix/stream-client";
|
|
39
|
+
* const config = {}; // type is StreamServiceClientConfig
|
|
36
40
|
* const client = new StreamServiceClient(config);
|
|
37
41
|
* const input = { // UnpinMessageInput
|
|
38
42
|
* companyId: "STRING_VALUE",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { UpdateChannelInput, UpdateChannelOutput } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -22,9 +22,11 @@ export interface UpdateChannelCommandInput extends UpdateChannelInput {
|
|
|
22
22
|
export interface UpdateChannelCommandOutput extends UpdateChannelOutput, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const UpdateChannelCommand_base: {
|
|
25
|
-
new (input: UpdateChannelCommandInput): import("@smithy/
|
|
26
|
-
new (
|
|
27
|
-
getEndpointParameterInstructions():
|
|
25
|
+
new (input: UpdateChannelCommandInput): import("@smithy/core/client").CommandImpl<UpdateChannelCommandInput, UpdateChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: UpdateChannelCommandInput): import("@smithy/core/client").CommandImpl<UpdateChannelCommandInput, UpdateChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* Replaces editable channel metadata.
|
|
@@ -33,6 +35,8 @@ declare const UpdateChannelCommand_base: {
|
|
|
33
35
|
* ```javascript
|
|
34
36
|
* import { StreamServiceClient, UpdateChannelCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
37
|
* // const { StreamServiceClient, UpdateChannelCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
38
|
+
* // import type { StreamServiceClientConfig } from "@wildix/stream-client";
|
|
39
|
+
* const config = {}; // type is StreamServiceClientConfig
|
|
36
40
|
* const client = new StreamServiceClient(config);
|
|
37
41
|
* const input = { // UpdateChannelInput
|
|
38
42
|
* companyId: "STRING_VALUE",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { UpdateMessageInput, UpdateMessageOutput } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -22,9 +22,11 @@ export interface UpdateMessageCommandInput extends UpdateMessageInput {
|
|
|
22
22
|
export interface UpdateMessageCommandOutput extends UpdateMessageOutput, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const UpdateMessageCommand_base: {
|
|
25
|
-
new (input: UpdateMessageCommandInput): import("@smithy/
|
|
26
|
-
new (
|
|
27
|
-
getEndpointParameterInstructions():
|
|
25
|
+
new (input: UpdateMessageCommandInput): import("@smithy/core/client").CommandImpl<UpdateMessageCommandInput, UpdateMessageCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: UpdateMessageCommandInput): import("@smithy/core/client").CommandImpl<UpdateMessageCommandInput, UpdateMessageCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* 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.
|
|
@@ -33,6 +35,8 @@ declare const UpdateMessageCommand_base: {
|
|
|
33
35
|
* ```javascript
|
|
34
36
|
* import { StreamServiceClient, UpdateMessageCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
37
|
* // const { StreamServiceClient, UpdateMessageCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
38
|
+
* // import type { StreamServiceClientConfig } from "@wildix/stream-client";
|
|
39
|
+
* const config = {}; // type is StreamServiceClientConfig
|
|
36
40
|
* const client = new StreamServiceClient(config);
|
|
37
41
|
* const input = { // UpdateMessageInput
|
|
38
42
|
* companyId: "STRING_VALUE",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { UploadFileInput, UploadFileOutput } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -22,9 +22,11 @@ export interface UploadFileCommandInput extends UploadFileInput {
|
|
|
22
22
|
export interface UploadFileCommandOutput extends UploadFileOutput, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const UploadFileCommand_base: {
|
|
25
|
-
new (input: UploadFileCommandInput): import("@smithy/
|
|
26
|
-
new (
|
|
27
|
-
getEndpointParameterInstructions():
|
|
25
|
+
new (input: UploadFileCommandInput): import("@smithy/core/client").CommandImpl<UploadFileCommandInput, UploadFileCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: UploadFileCommandInput): import("@smithy/core/client").CommandImpl<UploadFileCommandInput, UploadFileCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
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.
|
|
@@ -33,6 +35,8 @@ declare const UploadFileCommand_base: {
|
|
|
33
35
|
* ```javascript
|
|
34
36
|
* import { StreamServiceClient, UploadFileCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
37
|
* // const { StreamServiceClient, UploadFileCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
38
|
+
* // import type { StreamServiceClientConfig } from "@wildix/stream-client";
|
|
39
|
+
* const config = {}; // type is StreamServiceClientConfig
|
|
36
40
|
* const client = new StreamServiceClient(config);
|
|
37
41
|
* const input = { // UploadFileInput
|
|
38
42
|
* companyId: "STRING_VALUE",
|
|
@@ -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";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface ClientInputEndpointParameters {
|
|
6
|
+
clientContextParams?: {
|
|
7
|
+
serviceRegion?: string | undefined | Provider<string | undefined>;
|
|
8
|
+
env?: string | undefined | Provider<string | undefined>;
|
|
9
|
+
};
|
|
10
|
+
serviceRegion?: string | undefined | Provider<string | undefined>;
|
|
11
|
+
env?: string | undefined | Provider<string | undefined>;
|
|
12
|
+
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
|
|
18
|
+
defaultSigningName: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare const commonParams: {
|
|
28
|
+
readonly serviceRegion: {
|
|
29
|
+
readonly type: "clientContextParams";
|
|
30
|
+
readonly name: "serviceRegion";
|
|
31
|
+
};
|
|
32
|
+
readonly env: {
|
|
33
|
+
readonly type: "clientContextParams";
|
|
34
|
+
readonly name: "env";
|
|
35
|
+
};
|
|
36
|
+
readonly endpoint: {
|
|
37
|
+
readonly type: "builtInParams";
|
|
38
|
+
readonly name: "endpoint";
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
44
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
45
|
+
serviceRegion?: string | undefined;
|
|
46
|
+
env?: string | undefined;
|
|
47
|
+
endpoint?: string | undefined;
|
|
48
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { EndpointV2, Logger } from "@smithy/types";
|
|
2
|
+
import type { EndpointParameters } from "./EndpointParameters";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
|
|
7
|
+
logger?: Logger;
|
|
8
|
+
}) => EndpointV2;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { HttpHandlerExtensionConfiguration } from "@smithy/
|
|
2
|
-
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerExtensionConfiguration } from "@smithy/core/protocols";
|
|
2
|
+
import type { DefaultExtensionConfiguration } from "@smithy/types";
|
|
3
|
+
import type { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
3
4
|
/**
|
|
4
5
|
* @internal
|
|
5
6
|
*/
|
|
6
|
-
export interface StreamServiceExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration {
|
|
7
|
+
export interface StreamServiceExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, HttpAuthExtensionConfiguration {
|
|
7
8
|
}
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
export * from "./StreamServiceClient";
|
|
2
2
|
export * from "./StreamService";
|
|
3
|
+
export type { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
3
4
|
export type { RuntimeExtension } from "./runtimeExtensions";
|
|
4
5
|
export type { StreamServiceExtensionConfiguration } from "./extensionConfiguration";
|
|
5
6
|
export * from "./commands";
|
|
6
|
-
export * from "./
|
|
7
|
+
export * from "./schemas/schemas_0";
|
|
8
|
+
export * from "./models/enums";
|
|
9
|
+
export * from "./models/errors";
|
|
10
|
+
export * from "./models/models_0";
|
|
7
11
|
export { StreamServiceServiceException } from "./models/StreamServiceServiceException";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type ServiceExceptionOptions as __ServiceExceptionOptions, ServiceException as __ServiceException } from "@smithy/core/client";
|
|
2
2
|
export type { __ServiceExceptionOptions };
|
|
3
3
|
export { __ServiceException };
|
|
4
4
|
/**
|