@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.
Files changed (67) hide show
  1. package/dist-cjs/Conversations.js +27 -0
  2. package/dist-cjs/ConversationsClient.js +33 -0
  3. package/dist-cjs/commands/CreateChannelCommand.js +41 -0
  4. package/dist-cjs/commands/CreateMessageCommand.js +41 -0
  5. package/dist-cjs/commands/DeleteChannelCommand.js +41 -0
  6. package/dist-cjs/commands/GetChannelCommand.js +41 -0
  7. package/dist-cjs/commands/GetChannelMemberCommand.js +41 -0
  8. package/dist-cjs/commands/GetMessageCommand.js +41 -0
  9. package/dist-cjs/commands/PartialUpdateChannelCommand.js +41 -0
  10. package/dist-cjs/commands/UpdateChannelCommand.js +41 -0
  11. package/dist-cjs/commands/index.js +11 -0
  12. package/dist-cjs/extensionConfiguration.js +2 -0
  13. package/dist-cjs/index.js +10 -0
  14. package/dist-cjs/models/ConversationsServiceException.js +12 -0
  15. package/dist-cjs/models/index.js +4 -0
  16. package/dist-cjs/models/models_0.js +96 -0
  17. package/dist-cjs/protocols/Aws_restJson1.js +597 -0
  18. package/dist-cjs/runtimeConfig.browser.js +28 -0
  19. package/dist-cjs/runtimeConfig.js +32 -0
  20. package/dist-cjs/runtimeConfig.native.js +15 -0
  21. package/dist-cjs/runtimeConfig.shared.js +19 -0
  22. package/dist-cjs/runtimeExtensions.js +19 -0
  23. package/dist-es/Conversations.js +23 -0
  24. package/dist-es/ConversationsClient.js +29 -0
  25. package/dist-es/commands/CreateChannelCommand.js +37 -0
  26. package/dist-es/commands/CreateMessageCommand.js +37 -0
  27. package/dist-es/commands/DeleteChannelCommand.js +37 -0
  28. package/dist-es/commands/GetChannelCommand.js +37 -0
  29. package/dist-es/commands/GetChannelMemberCommand.js +37 -0
  30. package/dist-es/commands/GetMessageCommand.js +37 -0
  31. package/dist-es/commands/PartialUpdateChannelCommand.js +37 -0
  32. package/dist-es/commands/UpdateChannelCommand.js +37 -0
  33. package/dist-es/commands/index.js +8 -0
  34. package/dist-es/extensionConfiguration.js +1 -0
  35. package/dist-es/index.js +5 -0
  36. package/dist-es/models/ConversationsServiceException.js +8 -0
  37. package/dist-es/models/index.js +1 -0
  38. package/dist-es/models/models_0.js +90 -0
  39. package/dist-es/protocols/Aws_restJson1.js +578 -0
  40. package/dist-es/runtimeConfig.browser.js +24 -0
  41. package/dist-es/runtimeConfig.js +28 -0
  42. package/dist-es/runtimeConfig.native.js +11 -0
  43. package/dist-es/runtimeConfig.shared.js +15 -0
  44. package/dist-es/runtimeExtensions.js +15 -0
  45. package/dist-types/Conversations.d.ts +65 -0
  46. package/dist-types/ConversationsClient.d.ts +144 -0
  47. package/dist-types/commands/CreateChannelCommand.d.ts +194 -0
  48. package/dist-types/commands/CreateMessageCommand.d.ts +360 -0
  49. package/dist-types/commands/DeleteChannelCommand.d.ts +71 -0
  50. package/dist-types/commands/GetChannelCommand.d.ts +136 -0
  51. package/dist-types/commands/GetChannelMemberCommand.d.ts +80 -0
  52. package/dist-types/commands/GetMessageCommand.d.ts +209 -0
  53. package/dist-types/commands/PartialUpdateChannelCommand.d.ts +193 -0
  54. package/dist-types/commands/UpdateChannelCommand.d.ts +190 -0
  55. package/dist-types/commands/index.d.ts +8 -0
  56. package/dist-types/extensionConfiguration.d.ts +7 -0
  57. package/dist-types/index.d.ts +5 -0
  58. package/dist-types/models/ConversationsServiceException.d.ts +13 -0
  59. package/dist-types/models/index.d.ts +1 -0
  60. package/dist-types/models/models_0.d.ts +508 -0
  61. package/dist-types/protocols/Aws_restJson1.d.ts +74 -0
  62. package/dist-types/runtimeConfig.browser.d.ts +29 -0
  63. package/dist-types/runtimeConfig.d.ts +29 -0
  64. package/dist-types/runtimeConfig.native.d.ts +28 -0
  65. package/dist-types/runtimeConfig.shared.d.ts +15 -0
  66. package/dist-types/runtimeExtensions.d.ts +17 -0
  67. package/package.json +77 -0
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ const url_parser_1 = require("@smithy/url-parser");
6
+ const util_base64_1 = require("@smithy/util-base64");
7
+ const util_utf8_1 = require("@smithy/util-utf8");
8
+ const getRuntimeConfig = (config) => ({
9
+ apiVersion: "v2",
10
+ base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
11
+ base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
12
+ disableHostPrefix: config?.disableHostPrefix ?? false,
13
+ extensions: config?.extensions ?? [],
14
+ logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
15
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
16
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
17
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
18
+ });
19
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveRuntimeExtensions = void 0;
4
+ const protocol_http_1 = require("@smithy/protocol-http");
5
+ const smithy_client_1 = require("@smithy/smithy-client");
6
+ const asPartial = (t) => t;
7
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
8
+ const extensionConfiguration = {
9
+ ...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
10
+ ...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
11
+ };
12
+ extensions.forEach(extension => extension.configure(extensionConfiguration));
13
+ return {
14
+ ...runtimeConfig,
15
+ ...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
16
+ ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
17
+ };
18
+ };
19
+ exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
@@ -0,0 +1,23 @@
1
+ import { ConversationsClient, } from "./ConversationsClient";
2
+ import { CreateChannelCommand, } from "./commands/CreateChannelCommand";
3
+ import { CreateMessageCommand, } from "./commands/CreateMessageCommand";
4
+ import { DeleteChannelCommand, } from "./commands/DeleteChannelCommand";
5
+ import { GetChannelCommand, } from "./commands/GetChannelCommand";
6
+ import { GetChannelMemberCommand, } from "./commands/GetChannelMemberCommand";
7
+ import { GetMessageCommand, } from "./commands/GetMessageCommand";
8
+ import { PartialUpdateChannelCommand, } from "./commands/PartialUpdateChannelCommand";
9
+ import { UpdateChannelCommand, } from "./commands/UpdateChannelCommand";
10
+ import { createAggregatedClient } from "@smithy/smithy-client";
11
+ const commands = {
12
+ CreateChannelCommand,
13
+ CreateMessageCommand,
14
+ DeleteChannelCommand,
15
+ GetChannelCommand,
16
+ GetChannelMemberCommand,
17
+ GetMessageCommand,
18
+ PartialUpdateChannelCommand,
19
+ UpdateChannelCommand,
20
+ };
21
+ export class Conversations extends ConversationsClient {
22
+ }
23
+ createAggregatedClient(commands, Conversations);
@@ -0,0 +1,29 @@
1
+ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
2
+ import { resolveRuntimeExtensions, } from "./runtimeExtensions";
3
+ import { Client as __Client, } from "@smithy/smithy-client";
4
+ import { authorizationMiddleware } from '@wildix/smithy-utils';
5
+ export { __Client };
6
+ export class ConversationsClient extends __Client {
7
+ constructor(...[configuration]) {
8
+ let _config_0 = __getRuntimeConfig(configuration || {});
9
+ let _config_1 = resolveRuntimeExtensions(_config_0, configuration?.extensions || []);
10
+ const endpoint = () => {
11
+ return {
12
+ hostname: configuration.env === 'prod' ? 'api.x-bees.com' : configuration.env === 'stable' ? 'api-stable.x-bees.com' : 'api-stage.x-bees.com',
13
+ protocol: "https",
14
+ port: '443',
15
+ path: ''
16
+ };
17
+ };
18
+ const config = {
19
+ ..._config_1,
20
+ endpoint,
21
+ };
22
+ super(config);
23
+ this.config = config;
24
+ this.middlewareStack.add(authorizationMiddleware.bind(this, configuration.token), { step: "build" });
25
+ }
26
+ destroy() {
27
+ super.destroy();
28
+ }
29
+ }
@@ -0,0 +1,37 @@
1
+ import { de_CreateChannelCommand, se_CreateChannelCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ export { $Command };
6
+ export class CreateChannelCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ resolveMiddleware(clientStack, configuration, options) {
12
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
+ const stack = clientStack.concat(this.middlewareStack);
14
+ const { logger } = configuration;
15
+ const clientName = "ConversationsClient";
16
+ const commandName = "CreateChannelCommand";
17
+ const handlerExecutionContext = {
18
+ logger,
19
+ clientName,
20
+ commandName,
21
+ inputFilterSensitiveLog: (_) => _,
22
+ outputFilterSensitiveLog: (_) => _,
23
+ [SMITHY_CONTEXT_KEY]: {
24
+ service: "Conversations",
25
+ operation: "CreateChannel",
26
+ },
27
+ };
28
+ const { requestHandler } = configuration;
29
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
+ }
31
+ serialize(input, context) {
32
+ return se_CreateChannelCommand(input, context);
33
+ }
34
+ deserialize(output, context) {
35
+ return de_CreateChannelCommand(output, context);
36
+ }
37
+ }
@@ -0,0 +1,37 @@
1
+ import { de_CreateMessageCommand, se_CreateMessageCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ export { $Command };
6
+ export class CreateMessageCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ resolveMiddleware(clientStack, configuration, options) {
12
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
+ const stack = clientStack.concat(this.middlewareStack);
14
+ const { logger } = configuration;
15
+ const clientName = "ConversationsClient";
16
+ const commandName = "CreateMessageCommand";
17
+ const handlerExecutionContext = {
18
+ logger,
19
+ clientName,
20
+ commandName,
21
+ inputFilterSensitiveLog: (_) => _,
22
+ outputFilterSensitiveLog: (_) => _,
23
+ [SMITHY_CONTEXT_KEY]: {
24
+ service: "Conversations",
25
+ operation: "CreateMessage",
26
+ },
27
+ };
28
+ const { requestHandler } = configuration;
29
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
+ }
31
+ serialize(input, context) {
32
+ return se_CreateMessageCommand(input, context);
33
+ }
34
+ deserialize(output, context) {
35
+ return de_CreateMessageCommand(output, context);
36
+ }
37
+ }
@@ -0,0 +1,37 @@
1
+ import { de_DeleteChannelCommand, se_DeleteChannelCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ export { $Command };
6
+ export class DeleteChannelCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ resolveMiddleware(clientStack, configuration, options) {
12
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
+ const stack = clientStack.concat(this.middlewareStack);
14
+ const { logger } = configuration;
15
+ const clientName = "ConversationsClient";
16
+ const commandName = "DeleteChannelCommand";
17
+ const handlerExecutionContext = {
18
+ logger,
19
+ clientName,
20
+ commandName,
21
+ inputFilterSensitiveLog: (_) => _,
22
+ outputFilterSensitiveLog: (_) => _,
23
+ [SMITHY_CONTEXT_KEY]: {
24
+ service: "Conversations",
25
+ operation: "DeleteChannel",
26
+ },
27
+ };
28
+ const { requestHandler } = configuration;
29
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
+ }
31
+ serialize(input, context) {
32
+ return se_DeleteChannelCommand(input, context);
33
+ }
34
+ deserialize(output, context) {
35
+ return de_DeleteChannelCommand(output, context);
36
+ }
37
+ }
@@ -0,0 +1,37 @@
1
+ import { de_GetChannelCommand, se_GetChannelCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ export { $Command };
6
+ export class GetChannelCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ resolveMiddleware(clientStack, configuration, options) {
12
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
+ const stack = clientStack.concat(this.middlewareStack);
14
+ const { logger } = configuration;
15
+ const clientName = "ConversationsClient";
16
+ const commandName = "GetChannelCommand";
17
+ const handlerExecutionContext = {
18
+ logger,
19
+ clientName,
20
+ commandName,
21
+ inputFilterSensitiveLog: (_) => _,
22
+ outputFilterSensitiveLog: (_) => _,
23
+ [SMITHY_CONTEXT_KEY]: {
24
+ service: "Conversations",
25
+ operation: "GetChannel",
26
+ },
27
+ };
28
+ const { requestHandler } = configuration;
29
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
+ }
31
+ serialize(input, context) {
32
+ return se_GetChannelCommand(input, context);
33
+ }
34
+ deserialize(output, context) {
35
+ return de_GetChannelCommand(output, context);
36
+ }
37
+ }
@@ -0,0 +1,37 @@
1
+ import { de_GetChannelMemberCommand, se_GetChannelMemberCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ export { $Command };
6
+ export class GetChannelMemberCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ resolveMiddleware(clientStack, configuration, options) {
12
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
+ const stack = clientStack.concat(this.middlewareStack);
14
+ const { logger } = configuration;
15
+ const clientName = "ConversationsClient";
16
+ const commandName = "GetChannelMemberCommand";
17
+ const handlerExecutionContext = {
18
+ logger,
19
+ clientName,
20
+ commandName,
21
+ inputFilterSensitiveLog: (_) => _,
22
+ outputFilterSensitiveLog: (_) => _,
23
+ [SMITHY_CONTEXT_KEY]: {
24
+ service: "Conversations",
25
+ operation: "GetChannelMember",
26
+ },
27
+ };
28
+ const { requestHandler } = configuration;
29
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
+ }
31
+ serialize(input, context) {
32
+ return se_GetChannelMemberCommand(input, context);
33
+ }
34
+ deserialize(output, context) {
35
+ return de_GetChannelMemberCommand(output, context);
36
+ }
37
+ }
@@ -0,0 +1,37 @@
1
+ import { de_GetMessageCommand, se_GetMessageCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ export { $Command };
6
+ export class GetMessageCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ resolveMiddleware(clientStack, configuration, options) {
12
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
+ const stack = clientStack.concat(this.middlewareStack);
14
+ const { logger } = configuration;
15
+ const clientName = "ConversationsClient";
16
+ const commandName = "GetMessageCommand";
17
+ const handlerExecutionContext = {
18
+ logger,
19
+ clientName,
20
+ commandName,
21
+ inputFilterSensitiveLog: (_) => _,
22
+ outputFilterSensitiveLog: (_) => _,
23
+ [SMITHY_CONTEXT_KEY]: {
24
+ service: "Conversations",
25
+ operation: "GetMessage",
26
+ },
27
+ };
28
+ const { requestHandler } = configuration;
29
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
+ }
31
+ serialize(input, context) {
32
+ return se_GetMessageCommand(input, context);
33
+ }
34
+ deserialize(output, context) {
35
+ return de_GetMessageCommand(output, context);
36
+ }
37
+ }
@@ -0,0 +1,37 @@
1
+ import { de_PartialUpdateChannelCommand, se_PartialUpdateChannelCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ export { $Command };
6
+ export class PartialUpdateChannelCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ resolveMiddleware(clientStack, configuration, options) {
12
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
+ const stack = clientStack.concat(this.middlewareStack);
14
+ const { logger } = configuration;
15
+ const clientName = "ConversationsClient";
16
+ const commandName = "PartialUpdateChannelCommand";
17
+ const handlerExecutionContext = {
18
+ logger,
19
+ clientName,
20
+ commandName,
21
+ inputFilterSensitiveLog: (_) => _,
22
+ outputFilterSensitiveLog: (_) => _,
23
+ [SMITHY_CONTEXT_KEY]: {
24
+ service: "Conversations",
25
+ operation: "PartialUpdateChannel",
26
+ },
27
+ };
28
+ const { requestHandler } = configuration;
29
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
+ }
31
+ serialize(input, context) {
32
+ return se_PartialUpdateChannelCommand(input, context);
33
+ }
34
+ deserialize(output, context) {
35
+ return de_PartialUpdateChannelCommand(output, context);
36
+ }
37
+ }
@@ -0,0 +1,37 @@
1
+ import { de_UpdateChannelCommand, se_UpdateChannelCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ export { $Command };
6
+ export class UpdateChannelCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ resolveMiddleware(clientStack, configuration, options) {
12
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
+ const stack = clientStack.concat(this.middlewareStack);
14
+ const { logger } = configuration;
15
+ const clientName = "ConversationsClient";
16
+ const commandName = "UpdateChannelCommand";
17
+ const handlerExecutionContext = {
18
+ logger,
19
+ clientName,
20
+ commandName,
21
+ inputFilterSensitiveLog: (_) => _,
22
+ outputFilterSensitiveLog: (_) => _,
23
+ [SMITHY_CONTEXT_KEY]: {
24
+ service: "Conversations",
25
+ operation: "UpdateChannel",
26
+ },
27
+ };
28
+ const { requestHandler } = configuration;
29
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
+ }
31
+ serialize(input, context) {
32
+ return se_UpdateChannelCommand(input, context);
33
+ }
34
+ deserialize(output, context) {
35
+ return de_UpdateChannelCommand(output, context);
36
+ }
37
+ }
@@ -0,0 +1,8 @@
1
+ export * from "./CreateChannelCommand";
2
+ export * from "./CreateMessageCommand";
3
+ export * from "./DeleteChannelCommand";
4
+ export * from "./GetChannelCommand";
5
+ export * from "./GetChannelMemberCommand";
6
+ export * from "./GetMessageCommand";
7
+ export * from "./PartialUpdateChannelCommand";
8
+ export * from "./UpdateChannelCommand";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export * from "./ConversationsClient";
2
+ export * from "./Conversations";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export { ConversationsServiceException } from "./models/ConversationsServiceException";
@@ -0,0 +1,8 @@
1
+ import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
2
+ export { __ServiceException };
3
+ export class ConversationsServiceException extends __ServiceException {
4
+ constructor(options) {
5
+ super(options);
6
+ Object.setPrototypeOf(this, ConversationsServiceException.prototype);
7
+ }
8
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";
@@ -0,0 +1,90 @@
1
+ import { ConversationsServiceException as __BaseException } from "./ConversationsServiceException";
2
+ export class ValidationException extends __BaseException {
3
+ constructor(opts) {
4
+ super({
5
+ name: "ValidationException",
6
+ $fault: "client",
7
+ ...opts
8
+ });
9
+ this.name = "ValidationException";
10
+ this.$fault = "client";
11
+ Object.setPrototypeOf(this, ValidationException.prototype);
12
+ }
13
+ }
14
+ export const ChannelAccess = {
15
+ PRIVATE: "private",
16
+ PUBLIC: "public",
17
+ };
18
+ export const ChannelType = {
19
+ DIRECT: "direct",
20
+ GROUP: "group",
21
+ };
22
+ export const ChannelContextEventAttendeeStatus = {
23
+ ACCEPTED: "accepted",
24
+ DECLINED: "declined",
25
+ NONE: "none",
26
+ TENTATIVE: "tentative",
27
+ };
28
+ export const ChannelContextSource = {
29
+ KITE: "kite",
30
+ };
31
+ export const ChannelMemberRole = {
32
+ MEMBER: "member",
33
+ SUPERVISOR: "supervisor",
34
+ };
35
+ export class ChannelNotFoundException extends __BaseException {
36
+ constructor(opts) {
37
+ super({
38
+ name: "ChannelNotFoundException",
39
+ $fault: "client",
40
+ ...opts
41
+ });
42
+ this.name = "ChannelNotFoundException";
43
+ this.$fault = "client";
44
+ Object.setPrototypeOf(this, ChannelNotFoundException.prototype);
45
+ }
46
+ }
47
+ export const ChannelUnsetFields = {
48
+ ACCESS: "access",
49
+ ASSIGNEE: "assignee",
50
+ BROADCAST: "broadcast",
51
+ COMPANY: "company",
52
+ CONTEXT: "context",
53
+ DESCRIPTION: "description",
54
+ EXTERNAL: "external",
55
+ KITE: "kite",
56
+ KITE_ASSIGN: "kiteAssign",
57
+ KITE_DEFAULT_SUBJECT: "kiteDefaultSubject",
58
+ KITE_SERVICE_NAME: "kiteServiceName",
59
+ KITE_TARGET: "kiteTarget",
60
+ KITE_VARIANT: "kiteVariant",
61
+ PICTURE: "picture",
62
+ PICTURE_COLOR: "pictureColor",
63
+ SERVICE: "service",
64
+ SERVICE_RECIPIENT: "serviceRecipient",
65
+ SERVICE_TITLE: "serviceTitle",
66
+ SMS: "sms",
67
+ SUBJECT: "subject",
68
+ TELEPHONY: "telephony",
69
+ };
70
+ export const MessageSmsStatus = {
71
+ DELIVERED: "delivered",
72
+ ERROR: "error",
73
+ SENT: "sent",
74
+ TRYING: "trying",
75
+ };
76
+ export const MessageType = {
77
+ REGULAR: "regular",
78
+ };
79
+ export class MemberNotFoundException extends __BaseException {
80
+ constructor(opts) {
81
+ super({
82
+ name: "MemberNotFoundException",
83
+ $fault: "client",
84
+ ...opts
85
+ });
86
+ this.name = "MemberNotFoundException";
87
+ this.$fault = "client";
88
+ Object.setPrototypeOf(this, MemberNotFoundException.prototype);
89
+ }
90
+ }