@wildix/xbees-conversations-client 1.0.18
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/Conversations.js +27 -0
- package/dist-cjs/ConversationsClient.js +33 -0
- package/dist-cjs/commands/CreateChannelCommand.js +41 -0
- package/dist-cjs/commands/CreateMessageCommand.js +41 -0
- package/dist-cjs/commands/DeleteChannelCommand.js +41 -0
- package/dist-cjs/commands/GetChannelCommand.js +41 -0
- package/dist-cjs/commands/GetChannelMemberCommand.js +41 -0
- package/dist-cjs/commands/GetMessageCommand.js +41 -0
- package/dist-cjs/commands/PartialUpdateChannelCommand.js +41 -0
- package/dist-cjs/commands/UpdateChannelCommand.js +41 -0
- package/dist-cjs/commands/index.js +11 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +10 -0
- package/dist-cjs/models/ConversationsServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +96 -0
- package/dist-cjs/protocols/Aws_restJson1.js +597 -0
- package/dist-cjs/runtimeConfig.browser.js +28 -0
- package/dist-cjs/runtimeConfig.js +32 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +19 -0
- package/dist-cjs/runtimeExtensions.js +19 -0
- package/dist-es/Conversations.js +23 -0
- package/dist-es/ConversationsClient.js +29 -0
- package/dist-es/commands/CreateChannelCommand.js +37 -0
- package/dist-es/commands/CreateMessageCommand.js +37 -0
- package/dist-es/commands/DeleteChannelCommand.js +37 -0
- package/dist-es/commands/GetChannelCommand.js +37 -0
- package/dist-es/commands/GetChannelMemberCommand.js +37 -0
- package/dist-es/commands/GetMessageCommand.js +37 -0
- package/dist-es/commands/PartialUpdateChannelCommand.js +37 -0
- package/dist-es/commands/UpdateChannelCommand.js +37 -0
- package/dist-es/commands/index.js +8 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/ConversationsServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +90 -0
- package/dist-es/protocols/Aws_restJson1.js +578 -0
- package/dist-es/runtimeConfig.browser.js +24 -0
- package/dist-es/runtimeConfig.js +28 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +15 -0
- package/dist-es/runtimeExtensions.js +15 -0
- package/dist-types/Conversations.d.ts +65 -0
- package/dist-types/ConversationsClient.d.ts +144 -0
- package/dist-types/commands/CreateChannelCommand.d.ts +194 -0
- package/dist-types/commands/CreateMessageCommand.d.ts +360 -0
- package/dist-types/commands/DeleteChannelCommand.d.ts +71 -0
- package/dist-types/commands/GetChannelCommand.d.ts +136 -0
- package/dist-types/commands/GetChannelMemberCommand.d.ts +80 -0
- package/dist-types/commands/GetMessageCommand.d.ts +209 -0
- package/dist-types/commands/PartialUpdateChannelCommand.d.ts +193 -0
- package/dist-types/commands/UpdateChannelCommand.d.ts +190 -0
- package/dist-types/commands/index.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +7 -0
- package/dist-types/index.d.ts +5 -0
- package/dist-types/models/ConversationsServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +508 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +74 -0
- package/dist-types/runtimeConfig.browser.d.ts +29 -0
- package/dist-types/runtimeConfig.d.ts +29 -0
- package/dist-types/runtimeConfig.native.d.ts +28 -0
- package/dist-types/runtimeConfig.shared.d.ts +15 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/package.json +77 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { ConversationsClient } from "./ConversationsClient";
|
|
2
|
+
import { CreateChannelCommandInput, CreateChannelCommandOutput } from "./commands/CreateChannelCommand";
|
|
3
|
+
import { CreateMessageCommandInput, CreateMessageCommandOutput } from "./commands/CreateMessageCommand";
|
|
4
|
+
import { DeleteChannelCommandInput, DeleteChannelCommandOutput } from "./commands/DeleteChannelCommand";
|
|
5
|
+
import { GetChannelCommandInput, GetChannelCommandOutput } from "./commands/GetChannelCommand";
|
|
6
|
+
import { GetChannelMemberCommandInput, GetChannelMemberCommandOutput } from "./commands/GetChannelMemberCommand";
|
|
7
|
+
import { GetMessageCommandInput, GetMessageCommandOutput } from "./commands/GetMessageCommand";
|
|
8
|
+
import { PartialUpdateChannelCommandInput, PartialUpdateChannelCommandOutput } from "./commands/PartialUpdateChannelCommand";
|
|
9
|
+
import { UpdateChannelCommandInput, UpdateChannelCommandOutput } from "./commands/UpdateChannelCommand";
|
|
10
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
11
|
+
export interface Conversations {
|
|
12
|
+
/**
|
|
13
|
+
* @see {@link CreateChannelCommand}
|
|
14
|
+
*/
|
|
15
|
+
createChannel(args: CreateChannelCommandInput, options?: __HttpHandlerOptions): Promise<CreateChannelCommandOutput>;
|
|
16
|
+
createChannel(args: CreateChannelCommandInput, cb: (err: any, data?: CreateChannelCommandOutput) => void): void;
|
|
17
|
+
createChannel(args: CreateChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateChannelCommandOutput) => void): void;
|
|
18
|
+
/**
|
|
19
|
+
* @see {@link CreateMessageCommand}
|
|
20
|
+
*/
|
|
21
|
+
createMessage(args: CreateMessageCommandInput, options?: __HttpHandlerOptions): Promise<CreateMessageCommandOutput>;
|
|
22
|
+
createMessage(args: CreateMessageCommandInput, cb: (err: any, data?: CreateMessageCommandOutput) => void): void;
|
|
23
|
+
createMessage(args: CreateMessageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateMessageCommandOutput) => void): void;
|
|
24
|
+
/**
|
|
25
|
+
* @see {@link DeleteChannelCommand}
|
|
26
|
+
*/
|
|
27
|
+
deleteChannel(args: DeleteChannelCommandInput, options?: __HttpHandlerOptions): Promise<DeleteChannelCommandOutput>;
|
|
28
|
+
deleteChannel(args: DeleteChannelCommandInput, cb: (err: any, data?: DeleteChannelCommandOutput) => void): void;
|
|
29
|
+
deleteChannel(args: DeleteChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteChannelCommandOutput) => void): void;
|
|
30
|
+
/**
|
|
31
|
+
* @see {@link GetChannelCommand}
|
|
32
|
+
*/
|
|
33
|
+
getChannel(args: GetChannelCommandInput, options?: __HttpHandlerOptions): Promise<GetChannelCommandOutput>;
|
|
34
|
+
getChannel(args: GetChannelCommandInput, cb: (err: any, data?: GetChannelCommandOutput) => void): void;
|
|
35
|
+
getChannel(args: GetChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetChannelCommandOutput) => void): void;
|
|
36
|
+
/**
|
|
37
|
+
* @see {@link GetChannelMemberCommand}
|
|
38
|
+
*/
|
|
39
|
+
getChannelMember(args: GetChannelMemberCommandInput, options?: __HttpHandlerOptions): Promise<GetChannelMemberCommandOutput>;
|
|
40
|
+
getChannelMember(args: GetChannelMemberCommandInput, cb: (err: any, data?: GetChannelMemberCommandOutput) => void): void;
|
|
41
|
+
getChannelMember(args: GetChannelMemberCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetChannelMemberCommandOutput) => void): void;
|
|
42
|
+
/**
|
|
43
|
+
* @see {@link GetMessageCommand}
|
|
44
|
+
*/
|
|
45
|
+
getMessage(args: GetMessageCommandInput, options?: __HttpHandlerOptions): Promise<GetMessageCommandOutput>;
|
|
46
|
+
getMessage(args: GetMessageCommandInput, cb: (err: any, data?: GetMessageCommandOutput) => void): void;
|
|
47
|
+
getMessage(args: GetMessageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMessageCommandOutput) => void): void;
|
|
48
|
+
/**
|
|
49
|
+
* @see {@link PartialUpdateChannelCommand}
|
|
50
|
+
*/
|
|
51
|
+
partialUpdateChannel(args: PartialUpdateChannelCommandInput, options?: __HttpHandlerOptions): Promise<PartialUpdateChannelCommandOutput>;
|
|
52
|
+
partialUpdateChannel(args: PartialUpdateChannelCommandInput, cb: (err: any, data?: PartialUpdateChannelCommandOutput) => void): void;
|
|
53
|
+
partialUpdateChannel(args: PartialUpdateChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PartialUpdateChannelCommandOutput) => void): void;
|
|
54
|
+
/**
|
|
55
|
+
* @see {@link UpdateChannelCommand}
|
|
56
|
+
*/
|
|
57
|
+
updateChannel(args: UpdateChannelCommandInput, options?: __HttpHandlerOptions): Promise<UpdateChannelCommandOutput>;
|
|
58
|
+
updateChannel(args: UpdateChannelCommandInput, cb: (err: any, data?: UpdateChannelCommandOutput) => void): void;
|
|
59
|
+
updateChannel(args: UpdateChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateChannelCommandOutput) => void): void;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @public
|
|
63
|
+
*/
|
|
64
|
+
export declare class Conversations extends ConversationsClient implements Conversations {
|
|
65
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { CreateChannelCommandInput, CreateChannelCommandOutput } from "./commands/CreateChannelCommand";
|
|
2
|
+
import { CreateMessageCommandInput, CreateMessageCommandOutput } from "./commands/CreateMessageCommand";
|
|
3
|
+
import { DeleteChannelCommandInput, DeleteChannelCommandOutput } from "./commands/DeleteChannelCommand";
|
|
4
|
+
import { GetChannelCommandInput, GetChannelCommandOutput } from "./commands/GetChannelCommand";
|
|
5
|
+
import { GetChannelMemberCommandInput, GetChannelMemberCommandOutput } from "./commands/GetChannelMemberCommand";
|
|
6
|
+
import { GetMessageCommandInput, GetMessageCommandOutput } from "./commands/GetMessageCommand";
|
|
7
|
+
import { PartialUpdateChannelCommandInput, PartialUpdateChannelCommandOutput } from "./commands/PartialUpdateChannelCommand";
|
|
8
|
+
import { UpdateChannelCommandInput, UpdateChannelCommandOutput } from "./commands/UpdateChannelCommand";
|
|
9
|
+
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
10
|
+
import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
|
|
11
|
+
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
12
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser } from "@smithy/types";
|
|
13
|
+
import { TokenProvider } from '@wildix/smithy-utils';
|
|
14
|
+
export { __Client };
|
|
15
|
+
/**
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export type ServiceInputTypes = CreateChannelCommandInput | CreateMessageCommandInput | DeleteChannelCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetMessageCommandInput | PartialUpdateChannelCommandInput | UpdateChannelCommandInput;
|
|
19
|
+
/**
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
export type ServiceOutputTypes = CreateChannelCommandOutput | CreateMessageCommandOutput | DeleteChannelCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetMessageCommandOutput | PartialUpdateChannelCommandOutput | UpdateChannelCommandOutput;
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
27
|
+
/**
|
|
28
|
+
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
29
|
+
*/
|
|
30
|
+
requestHandler?: __HttpHandler;
|
|
31
|
+
/**
|
|
32
|
+
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
|
|
33
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
37
|
+
/**
|
|
38
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
urlParser?: __UrlParser;
|
|
42
|
+
/**
|
|
43
|
+
* A function that can calculate the length of a request body.
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
47
|
+
/**
|
|
48
|
+
* A function that converts a stream into an array of bytes.
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
streamCollector?: __StreamCollector;
|
|
52
|
+
/**
|
|
53
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
base64Decoder?: __Decoder;
|
|
57
|
+
/**
|
|
58
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
base64Encoder?: __Encoder;
|
|
62
|
+
/**
|
|
63
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
utf8Decoder?: __Decoder;
|
|
67
|
+
/**
|
|
68
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
utf8Encoder?: __Encoder;
|
|
72
|
+
/**
|
|
73
|
+
* The runtime environment.
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
runtime?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
79
|
+
* trait of an operation.
|
|
80
|
+
*/
|
|
81
|
+
disableHostPrefix?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
84
|
+
*/
|
|
85
|
+
maxAttempts?: number | __Provider<number>;
|
|
86
|
+
/**
|
|
87
|
+
* Specifies which retry algorithm to use.
|
|
88
|
+
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
|
|
89
|
+
*
|
|
90
|
+
*/
|
|
91
|
+
retryMode?: string | __Provider<string>;
|
|
92
|
+
/**
|
|
93
|
+
* Optional logger for logging debug/info/warn/error.
|
|
94
|
+
*/
|
|
95
|
+
logger?: __Logger;
|
|
96
|
+
/**
|
|
97
|
+
* Optional extensions
|
|
98
|
+
*/
|
|
99
|
+
extensions?: RuntimeExtension[];
|
|
100
|
+
/**
|
|
101
|
+
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
102
|
+
*/
|
|
103
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* @public
|
|
107
|
+
*/
|
|
108
|
+
export type ConversationsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults;
|
|
109
|
+
/**
|
|
110
|
+
* @public
|
|
111
|
+
*
|
|
112
|
+
* The configuration interface of ConversationsClient class constructor that set the region, credentials and other options.
|
|
113
|
+
*/
|
|
114
|
+
export interface ConversationsClientConfig extends ConversationsClientConfigType {
|
|
115
|
+
env: 'stage' | 'stable' | 'prod';
|
|
116
|
+
token: TokenProvider;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* @public
|
|
120
|
+
*/
|
|
121
|
+
export type ConversationsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig;
|
|
122
|
+
/**
|
|
123
|
+
* @public
|
|
124
|
+
*
|
|
125
|
+
* The resolved configuration interface of ConversationsClient class. This is resolved and normalized from the {@link ConversationsClientConfig | constructor configuration interface}.
|
|
126
|
+
*/
|
|
127
|
+
export interface ConversationsClientResolvedConfig extends ConversationsClientResolvedConfigType {
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* @public
|
|
131
|
+
*/
|
|
132
|
+
export declare class ConversationsClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, ConversationsClientResolvedConfig> {
|
|
133
|
+
/**
|
|
134
|
+
* The resolved configuration of ConversationsClient class. This is resolved and normalized from the {@link ConversationsClientConfig | constructor configuration interface}.
|
|
135
|
+
*/
|
|
136
|
+
readonly config: ConversationsClientResolvedConfig;
|
|
137
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<ConversationsClientConfig>);
|
|
138
|
+
/**
|
|
139
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
140
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
141
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
142
|
+
*/
|
|
143
|
+
destroy(): void;
|
|
144
|
+
}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
|
|
2
|
+
import { CreateChannelInput, CreateChannelOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link CreateChannelCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface CreateChannelCommandInput extends CreateChannelInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link CreateChannelCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateChannelCommandOutput extends CreateChannelOutput, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
+
* ```javascript
|
|
29
|
+
* import { ConversationsClient, CreateChannelCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
|
|
30
|
+
* // const { ConversationsClient, CreateChannelCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
|
|
31
|
+
* const client = new ConversationsClient(config);
|
|
32
|
+
* const input = { // CreateChannelInput
|
|
33
|
+
* channel: { // ChannelCreateFields
|
|
34
|
+
* subject: "STRING_VALUE",
|
|
35
|
+
* description: "STRING_VALUE",
|
|
36
|
+
* picture: "STRING_VALUE",
|
|
37
|
+
* pictureColor: "STRING_VALUE",
|
|
38
|
+
* access: "private" || "public",
|
|
39
|
+
* company: "STRING_VALUE",
|
|
40
|
+
* context: { // ChannelContext
|
|
41
|
+
* source: "kite",
|
|
42
|
+
* target: "STRING_VALUE",
|
|
43
|
+
* events: [ // ChannelContextEventList
|
|
44
|
+
* { // ChannelContextEvent
|
|
45
|
+
* id: "STRING_VALUE",
|
|
46
|
+
* owner: "STRING_VALUE",
|
|
47
|
+
* start: "STRING_VALUE",
|
|
48
|
+
* end: "STRING_VALUE",
|
|
49
|
+
* summary: "STRING_VALUE",
|
|
50
|
+
* attendees: [ // ChannelContextEventAttendeeList
|
|
51
|
+
* { // ChannelContextEventAttendee
|
|
52
|
+
* email: "STRING_VALUE", // required
|
|
53
|
+
* name: "STRING_VALUE",
|
|
54
|
+
* status: "accepted" || "tentative" || "declined" || "none", // required
|
|
55
|
+
* },
|
|
56
|
+
* ],
|
|
57
|
+
* },
|
|
58
|
+
* ],
|
|
59
|
+
* },
|
|
60
|
+
* kite: true || false,
|
|
61
|
+
* kiteTarget: "STRING_VALUE",
|
|
62
|
+
* kiteVariant: "STRING_VALUE",
|
|
63
|
+
* kiteAssign: "STRING_VALUE",
|
|
64
|
+
* kiteServiceName: "STRING_VALUE",
|
|
65
|
+
* kiteDefaultSubject: "STRING_VALUE",
|
|
66
|
+
* service: "STRING_VALUE",
|
|
67
|
+
* serviceTitle: "STRING_VALUE",
|
|
68
|
+
* serviceRecipient: "STRING_VALUE",
|
|
69
|
+
* assignee: { // User
|
|
70
|
+
* id: "STRING_VALUE", // required
|
|
71
|
+
* name: "STRING_VALUE",
|
|
72
|
+
* email: "STRING_VALUE",
|
|
73
|
+
* phone: "STRING_VALUE",
|
|
74
|
+
* picture: "STRING_VALUE",
|
|
75
|
+
* company: "STRING_VALUE",
|
|
76
|
+
* pbxDomain: "STRING_VALUE",
|
|
77
|
+
* pbxPort: "STRING_VALUE",
|
|
78
|
+
* pbxExtension: "STRING_VALUE",
|
|
79
|
+
* pbxSerial: "STRING_VALUE",
|
|
80
|
+
* pbxUserId: "STRING_VALUE",
|
|
81
|
+
* createdAt: "STRING_VALUE",
|
|
82
|
+
* updatedAt: "STRING_VALUE",
|
|
83
|
+
* },
|
|
84
|
+
* telephony: true || false,
|
|
85
|
+
* sms: true || false,
|
|
86
|
+
* broadcast: true || false,
|
|
87
|
+
* external: true || false,
|
|
88
|
+
* channelId: "STRING_VALUE",
|
|
89
|
+
* channelType: "direct" || "group", // required
|
|
90
|
+
* members: [ // ChannelCreateFieldsMembersList
|
|
91
|
+
* "STRING_VALUE",
|
|
92
|
+
* ],
|
|
93
|
+
* },
|
|
94
|
+
* };
|
|
95
|
+
* const command = new CreateChannelCommand(input);
|
|
96
|
+
* const response = await client.send(command);
|
|
97
|
+
* // { // CreateChannelOutput
|
|
98
|
+
* // channel: { // Channel
|
|
99
|
+
* // subject: "STRING_VALUE",
|
|
100
|
+
* // description: "STRING_VALUE",
|
|
101
|
+
* // picture: "STRING_VALUE",
|
|
102
|
+
* // pictureColor: "STRING_VALUE",
|
|
103
|
+
* // access: "private" || "public",
|
|
104
|
+
* // company: "STRING_VALUE",
|
|
105
|
+
* // context: { // ChannelContext
|
|
106
|
+
* // source: "kite",
|
|
107
|
+
* // target: "STRING_VALUE",
|
|
108
|
+
* // events: [ // ChannelContextEventList
|
|
109
|
+
* // { // ChannelContextEvent
|
|
110
|
+
* // id: "STRING_VALUE",
|
|
111
|
+
* // owner: "STRING_VALUE",
|
|
112
|
+
* // start: "STRING_VALUE",
|
|
113
|
+
* // end: "STRING_VALUE",
|
|
114
|
+
* // summary: "STRING_VALUE",
|
|
115
|
+
* // attendees: [ // ChannelContextEventAttendeeList
|
|
116
|
+
* // { // ChannelContextEventAttendee
|
|
117
|
+
* // email: "STRING_VALUE", // required
|
|
118
|
+
* // name: "STRING_VALUE",
|
|
119
|
+
* // status: "accepted" || "tentative" || "declined" || "none", // required
|
|
120
|
+
* // },
|
|
121
|
+
* // ],
|
|
122
|
+
* // },
|
|
123
|
+
* // ],
|
|
124
|
+
* // },
|
|
125
|
+
* // kite: true || false,
|
|
126
|
+
* // kiteTarget: "STRING_VALUE",
|
|
127
|
+
* // kiteVariant: "STRING_VALUE",
|
|
128
|
+
* // kiteAssign: "STRING_VALUE",
|
|
129
|
+
* // kiteServiceName: "STRING_VALUE",
|
|
130
|
+
* // kiteDefaultSubject: "STRING_VALUE",
|
|
131
|
+
* // service: "STRING_VALUE",
|
|
132
|
+
* // serviceTitle: "STRING_VALUE",
|
|
133
|
+
* // serviceRecipient: "STRING_VALUE",
|
|
134
|
+
* // assignee: { // User
|
|
135
|
+
* // id: "STRING_VALUE", // required
|
|
136
|
+
* // name: "STRING_VALUE",
|
|
137
|
+
* // email: "STRING_VALUE",
|
|
138
|
+
* // phone: "STRING_VALUE",
|
|
139
|
+
* // picture: "STRING_VALUE",
|
|
140
|
+
* // company: "STRING_VALUE",
|
|
141
|
+
* // pbxDomain: "STRING_VALUE",
|
|
142
|
+
* // pbxPort: "STRING_VALUE",
|
|
143
|
+
* // pbxExtension: "STRING_VALUE",
|
|
144
|
+
* // pbxSerial: "STRING_VALUE",
|
|
145
|
+
* // pbxUserId: "STRING_VALUE",
|
|
146
|
+
* // createdAt: "STRING_VALUE",
|
|
147
|
+
* // updatedAt: "STRING_VALUE",
|
|
148
|
+
* // },
|
|
149
|
+
* // telephony: true || false,
|
|
150
|
+
* // sms: true || false,
|
|
151
|
+
* // broadcast: true || false,
|
|
152
|
+
* // external: true || false,
|
|
153
|
+
* // channelId: "STRING_VALUE", // required
|
|
154
|
+
* // channelType: "direct" || "group", // required
|
|
155
|
+
* // memberCount: Number("int"), // required
|
|
156
|
+
* // createdAt: "STRING_VALUE", // required
|
|
157
|
+
* // createdBy: "STRING_VALUE", // required
|
|
158
|
+
* // updatedAt: "STRING_VALUE",
|
|
159
|
+
* // },
|
|
160
|
+
* // };
|
|
161
|
+
*
|
|
162
|
+
* ```
|
|
163
|
+
*
|
|
164
|
+
* @param CreateChannelCommandInput - {@link CreateChannelCommandInput}
|
|
165
|
+
* @returns {@link CreateChannelCommandOutput}
|
|
166
|
+
* @see {@link CreateChannelCommandInput} for command's `input` shape.
|
|
167
|
+
* @see {@link CreateChannelCommandOutput} for command's `response` shape.
|
|
168
|
+
* @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
|
|
169
|
+
*
|
|
170
|
+
* @throws {@link ValidationException} (client fault)
|
|
171
|
+
*
|
|
172
|
+
* @throws {@link ConversationsServiceException}
|
|
173
|
+
* <p>Base exception class for all service exceptions from Conversations service.</p>
|
|
174
|
+
*
|
|
175
|
+
*/
|
|
176
|
+
export declare class CreateChannelCommand extends $Command<CreateChannelCommandInput, CreateChannelCommandOutput, ConversationsClientResolvedConfig> {
|
|
177
|
+
readonly input: CreateChannelCommandInput;
|
|
178
|
+
/**
|
|
179
|
+
* @public
|
|
180
|
+
*/
|
|
181
|
+
constructor(input: CreateChannelCommandInput);
|
|
182
|
+
/**
|
|
183
|
+
* @internal
|
|
184
|
+
*/
|
|
185
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ConversationsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateChannelCommandInput, CreateChannelCommandOutput>;
|
|
186
|
+
/**
|
|
187
|
+
* @internal
|
|
188
|
+
*/
|
|
189
|
+
private serialize;
|
|
190
|
+
/**
|
|
191
|
+
* @internal
|
|
192
|
+
*/
|
|
193
|
+
private deserialize;
|
|
194
|
+
}
|