@aws-sdk/client-ivschat 3.78.0

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 (116) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +201 -0
  3. package/README.md +374 -0
  4. package/dist-cjs/Ivschat.js +187 -0
  5. package/dist-cjs/IvschatClient.js +35 -0
  6. package/dist-cjs/commands/CreateChatTokenCommand.js +36 -0
  7. package/dist-cjs/commands/CreateRoomCommand.js +36 -0
  8. package/dist-cjs/commands/DeleteMessageCommand.js +36 -0
  9. package/dist-cjs/commands/DeleteRoomCommand.js +36 -0
  10. package/dist-cjs/commands/DisconnectUserCommand.js +36 -0
  11. package/dist-cjs/commands/GetRoomCommand.js +36 -0
  12. package/dist-cjs/commands/ListRoomsCommand.js +36 -0
  13. package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
  14. package/dist-cjs/commands/SendEventCommand.js +36 -0
  15. package/dist-cjs/commands/TagResourceCommand.js +36 -0
  16. package/dist-cjs/commands/UntagResourceCommand.js +36 -0
  17. package/dist-cjs/commands/UpdateRoomCommand.js +36 -0
  18. package/dist-cjs/commands/index.js +15 -0
  19. package/dist-cjs/endpoints.js +131 -0
  20. package/dist-cjs/index.js +11 -0
  21. package/dist-cjs/models/IvschatServiceException.js +11 -0
  22. package/dist-cjs/models/index.js +4 -0
  23. package/dist-cjs/models/models_0.js +297 -0
  24. package/dist-cjs/pagination/Interfaces.js +2 -0
  25. package/dist-cjs/pagination/ListRoomsPaginator.js +36 -0
  26. package/dist-cjs/pagination/index.js +5 -0
  27. package/dist-cjs/protocols/Aws_restJson1.js +1253 -0
  28. package/dist-cjs/runtimeConfig.browser.js +45 -0
  29. package/dist-cjs/runtimeConfig.js +50 -0
  30. package/dist-cjs/runtimeConfig.native.js +16 -0
  31. package/dist-cjs/runtimeConfig.shared.js +17 -0
  32. package/dist-es/Ivschat.js +190 -0
  33. package/dist-es/IvschatClient.js +37 -0
  34. package/dist-es/commands/CreateChatTokenCommand.js +39 -0
  35. package/dist-es/commands/CreateRoomCommand.js +39 -0
  36. package/dist-es/commands/DeleteMessageCommand.js +39 -0
  37. package/dist-es/commands/DeleteRoomCommand.js +39 -0
  38. package/dist-es/commands/DisconnectUserCommand.js +39 -0
  39. package/dist-es/commands/GetRoomCommand.js +39 -0
  40. package/dist-es/commands/ListRoomsCommand.js +39 -0
  41. package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
  42. package/dist-es/commands/SendEventCommand.js +39 -0
  43. package/dist-es/commands/TagResourceCommand.js +39 -0
  44. package/dist-es/commands/UntagResourceCommand.js +39 -0
  45. package/dist-es/commands/UpdateRoomCommand.js +39 -0
  46. package/dist-es/commands/index.js +12 -0
  47. package/dist-es/endpoints.js +127 -0
  48. package/dist-es/index.js +6 -0
  49. package/dist-es/models/IvschatServiceException.js +12 -0
  50. package/dist-es/models/index.js +1 -0
  51. package/dist-es/models/models_0.js +235 -0
  52. package/dist-es/pagination/Interfaces.js +1 -0
  53. package/dist-es/pagination/ListRoomsPaginator.js +75 -0
  54. package/dist-es/pagination/index.js +2 -0
  55. package/dist-es/protocols/Aws_restJson1.js +1519 -0
  56. package/dist-es/runtimeConfig.browser.js +26 -0
  57. package/dist-es/runtimeConfig.js +28 -0
  58. package/dist-es/runtimeConfig.native.js +8 -0
  59. package/dist-es/runtimeConfig.shared.js +13 -0
  60. package/dist-types/Ivschat.d.ts +278 -0
  61. package/dist-types/IvschatClient.d.ts +332 -0
  62. package/dist-types/commands/CreateChatTokenCommand.d.ts +39 -0
  63. package/dist-types/commands/CreateRoomCommand.d.ts +35 -0
  64. package/dist-types/commands/DeleteMessageCommand.d.ts +38 -0
  65. package/dist-types/commands/DeleteRoomCommand.d.ts +35 -0
  66. package/dist-types/commands/DisconnectUserCommand.d.ts +36 -0
  67. package/dist-types/commands/GetRoomCommand.d.ts +35 -0
  68. package/dist-types/commands/ListRoomsCommand.d.ts +36 -0
  69. package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
  70. package/dist-types/commands/SendEventCommand.d.ts +37 -0
  71. package/dist-types/commands/TagResourceCommand.d.ts +35 -0
  72. package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
  73. package/dist-types/commands/UpdateRoomCommand.d.ts +35 -0
  74. package/dist-types/commands/index.d.ts +12 -0
  75. package/dist-types/endpoints.d.ts +2 -0
  76. package/dist-types/index.d.ts +6 -0
  77. package/dist-types/models/IvschatServiceException.d.ts +10 -0
  78. package/dist-types/models/index.d.ts +1 -0
  79. package/dist-types/models/models_0.d.ts +762 -0
  80. package/dist-types/pagination/Interfaces.d.ts +6 -0
  81. package/dist-types/pagination/ListRoomsPaginator.d.ts +4 -0
  82. package/dist-types/pagination/index.d.ts +2 -0
  83. package/dist-types/protocols/Aws_restJson1.d.ts +38 -0
  84. package/dist-types/runtimeConfig.browser.d.ts +40 -0
  85. package/dist-types/runtimeConfig.d.ts +40 -0
  86. package/dist-types/runtimeConfig.native.d.ts +39 -0
  87. package/dist-types/runtimeConfig.shared.d.ts +13 -0
  88. package/dist-types/ts3.4/Ivschat.d.ts +65 -0
  89. package/dist-types/ts3.4/IvschatClient.d.ts +85 -0
  90. package/dist-types/ts3.4/commands/CreateChatTokenCommand.d.ts +17 -0
  91. package/dist-types/ts3.4/commands/CreateRoomCommand.d.ts +17 -0
  92. package/dist-types/ts3.4/commands/DeleteMessageCommand.d.ts +17 -0
  93. package/dist-types/ts3.4/commands/DeleteRoomCommand.d.ts +17 -0
  94. package/dist-types/ts3.4/commands/DisconnectUserCommand.d.ts +17 -0
  95. package/dist-types/ts3.4/commands/GetRoomCommand.d.ts +17 -0
  96. package/dist-types/ts3.4/commands/ListRoomsCommand.d.ts +17 -0
  97. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
  98. package/dist-types/ts3.4/commands/SendEventCommand.d.ts +17 -0
  99. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  100. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  101. package/dist-types/ts3.4/commands/UpdateRoomCommand.d.ts +17 -0
  102. package/dist-types/ts3.4/commands/index.d.ts +12 -0
  103. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  104. package/dist-types/ts3.4/index.d.ts +6 -0
  105. package/dist-types/ts3.4/models/IvschatServiceException.d.ts +6 -0
  106. package/dist-types/ts3.4/models/index.d.ts +1 -0
  107. package/dist-types/ts3.4/models/models_0.d.ts +438 -0
  108. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  109. package/dist-types/ts3.4/pagination/ListRoomsPaginator.d.ts +4 -0
  110. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  111. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +38 -0
  112. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
  113. package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
  114. package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
  115. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
  116. package/package.json +93 -0
@@ -0,0 +1,26 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
+ import packageInfo from "../package.json";
3
+ import { Sha256 } from "@aws-crypto/sha256-browser";
4
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
6
+ import { invalidProvider } from "@aws-sdk/invalid-dependency";
7
+ import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
8
+ import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
9
+ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
10
+ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
11
+ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
15
+ export var getRuntimeConfig = function (config) {
16
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ var defaultsMode = resolveDefaultsModeConfig(config);
18
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
+ var clientSharedValues = getSharedRuntimeConfig(config);
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
+ switch (_a.label) {
22
+ case 0: return [4, defaultConfigProvider()];
23
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
+ }
25
+ }); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
26
+ };
@@ -0,0 +1,28 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
+ import packageInfo from "../package.json";
3
+ import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
+ import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
+ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
+ import { Hash } from "@aws-sdk/hash-node";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
8
+ import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
+ import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
+ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
+ import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
+ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
17
+ export var getRuntimeConfig = function (config) {
18
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
19
+ var defaultsMode = resolveDefaultsModeConfig(config);
20
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
21
+ var clientSharedValues = getSharedRuntimeConfig(config);
22
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
23
+ switch (_a.label) {
24
+ case 0: return [4, defaultConfigProvider()];
25
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
26
+ }
27
+ }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
28
+ };
@@ -0,0 +1,8 @@
1
+ import { __assign } from "tslib";
2
+ import { Sha256 } from "@aws-crypto/sha256-js";
3
+ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
4
+ export var getRuntimeConfig = function (config) {
5
+ var _a;
6
+ var browserDefaults = getBrowserRuntimeConfig(config);
7
+ return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
8
+ };
@@ -0,0 +1,13 @@
1
+ import { parseUrl } from "@aws-sdk/url-parser";
2
+ import { defaultRegionInfoProvider } from "./endpoints";
3
+ export var getRuntimeConfig = function (config) {
4
+ var _a, _b, _c, _d, _e;
5
+ return ({
6
+ apiVersion: "2020-07-14",
7
+ disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
8
+ logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {},
9
+ regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : defaultRegionInfoProvider,
10
+ serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "ivschat",
11
+ urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
12
+ });
13
+ };
@@ -0,0 +1,278 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
+ import { CreateChatTokenCommandInput, CreateChatTokenCommandOutput } from "./commands/CreateChatTokenCommand";
3
+ import { CreateRoomCommandInput, CreateRoomCommandOutput } from "./commands/CreateRoomCommand";
4
+ import { DeleteMessageCommandInput, DeleteMessageCommandOutput } from "./commands/DeleteMessageCommand";
5
+ import { DeleteRoomCommandInput, DeleteRoomCommandOutput } from "./commands/DeleteRoomCommand";
6
+ import { DisconnectUserCommandInput, DisconnectUserCommandOutput } from "./commands/DisconnectUserCommand";
7
+ import { GetRoomCommandInput, GetRoomCommandOutput } from "./commands/GetRoomCommand";
8
+ import { ListRoomsCommandInput, ListRoomsCommandOutput } from "./commands/ListRoomsCommand";
9
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
10
+ import { SendEventCommandInput, SendEventCommandOutput } from "./commands/SendEventCommand";
11
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
12
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
13
+ import { UpdateRoomCommandInput, UpdateRoomCommandOutput } from "./commands/UpdateRoomCommand";
14
+ import { IvschatClient } from "./IvschatClient";
15
+ /**
16
+ * <p>
17
+ * <b>Introduction</b>
18
+ * </p>
19
+ * <p>The Amazon IVS Chat control-plane API enables you to create and manage Amazon IVS Chat
20
+ * resources. You also need to integrate with the <a href="https://docs.aws.amazon.com/ivs/latest/chatmsgapireference/chat-messaging-api.html"> Amazon IVS Chat Messaging
21
+ * API</a>, to enable users to interact with chat rooms in real time.</p>
22
+ * <p>The API is an AWS regional service. For a list of supported regions and Amazon IVS Chat
23
+ * HTTPS service endpoints, see the Amazon IVS Chat information on the <a href="https://docs.aws.amazon.com/general/latest/gr/ivs.html">Amazon IVS page</a> in the
24
+ * <i>AWS General Reference</i>. </p>
25
+ * <p>
26
+ * <b>Notes on terminology:</b>
27
+ * </p>
28
+ * <ul>
29
+ * <li>
30
+ * <p>You create service applications using the Amazon IVS Chat API. We refer to these as
31
+ * <i>applications</i>.</p>
32
+ * </li>
33
+ * <li>
34
+ * <p>You create front-end client applications (browser and Android/iOS apps) using the
35
+ * Amazon IVS Chat Messaging API. We refer to these as <i>clients</i>. </p>
36
+ * </li>
37
+ * </ul>
38
+ *
39
+ * <p>
40
+ * <b>Resources</b>
41
+ * </p>
42
+ * <p>The following resource is part of Amazon IVS Chat:</p>
43
+ * <ul>
44
+ * <li>
45
+ * <p>
46
+ * <b>Room</b> — The central Amazon IVS Chat resource through
47
+ * which clients connect to and exchange chat messages. See the Room endpoints for more
48
+ * information.</p>
49
+ * </li>
50
+ * </ul>
51
+ *
52
+ * <p>
53
+ * <b>API Access Security</b>
54
+ * </p>
55
+ * <p>Your Amazon IVS Chat applications (service applications and clients) must be authenticated
56
+ * and authorized to access Amazon IVS Chat resources. Note the differences between these
57
+ * concepts:</p>
58
+ * <ul>
59
+ * <li>
60
+ * <p>
61
+ * <i>Authentication</i> is about verifying identity. Requests to the
62
+ * Amazon IVS Chat API must be signed to verify your identity.</p>
63
+ * </li>
64
+ * <li>
65
+ * <p>
66
+ * <i>Authorization</i> is about granting permissions. Your IAM roles need
67
+ * to have permissions for Amazon IVS Chat API requests.</p>
68
+ * </li>
69
+ * </ul>
70
+ * <p>Users (viewers) connect to a room using secure access tokens that you create using the
71
+ * <a>CreateChatToken</a> endpoint through the AWS SDK. You call CreateChatToken for
72
+ * every user’s chat session, passing identity and authorization information about the
73
+ * user.</p>
74
+ * <p>
75
+ * <b>Signing API Requests</b>
76
+ * </p>
77
+ * <p>HTTP API requests must be signed with an AWS SigV4 signature using your AWS security
78
+ * credentials. The AWS Command Line Interface (CLI) and the AWS SDKs take care of signing the
79
+ * underlying API calls for you. However, if your application calls the Amazon IVS Chat HTTP API
80
+ * directly, it’s your responsibility to sign the requests.</p>
81
+ *
82
+ *
83
+ *
84
+ *
85
+ * <p>You generate a signature using valid AWS credentials for an IAM role that has permission
86
+ * to perform the requested action. For example, DeleteMessage requests must be made using an IAM
87
+ * role that has the <code>ivschat:DeleteMessage</code> permission.</p>
88
+ * <p>For more information:</p>
89
+ * <ul>
90
+ * <li>
91
+ * <p>Authentication and generating signatures — See <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating Requests
92
+ * (Amazon Web Services Signature Version 4)</a> in the <i>Amazon Web Services
93
+ * General Reference</i>.</p>
94
+ * </li>
95
+ * <li>
96
+ * <p>Managing Amazon IVS permissions — See <a href="https://docs.aws.amazon.com/ivs/latest/userguide/security-iam.html">Identity and Access Management</a> on
97
+ * the Security page of the <i>Amazon IVS User Guide</i>.</p>
98
+ * </li>
99
+ * </ul>
100
+ *
101
+ * <p>
102
+ * <b>Messaging Endpoints</b>
103
+ * </p>
104
+ * <ul>
105
+ * <li>
106
+ * <p>
107
+ * <a>DeleteMessage</a> — Sends an event to a specific room which
108
+ * directs clients to delete a specific message; that is, unrender it from view and delete it
109
+ * from the client’s chat history. This event’s <code>EventName</code> is
110
+ * <code>aws:DELETE_MESSAGE</code>. This replicates the <a href="https://docs.aws.amazon.com/ivs/latest/chatmsgapireference/actions-deletemessage-publish.html"> DeleteMessage</a> WebSocket operation
111
+ * in the Amazon IVS Chat Messaging API.</p>
112
+ * </li>
113
+ * <li>
114
+ * <p>
115
+ * <a>DisconnectUser</a> — Disconnects all connections using a specified
116
+ * user ID from a room. This replicates the <a href="https://docs.aws.amazon.com/ivs/latest/chatmsgapireference/actions-disconnectuser-publish.html"> DisconnectUser</a> WebSocket operation
117
+ * in the Amazon IVS Chat Messaging API.</p>
118
+ * </li>
119
+ * <li>
120
+ * <p>
121
+ * <a>SendEvent</a> — Sends an event to a room. Use this within your
122
+ * application’s business logic to send events to clients of a room; e.g., to notify clients
123
+ * to change the way the chat UI is rendered.</p>
124
+ * </li>
125
+ * </ul>
126
+ * <p>
127
+ * <b>Chat Token Endpoint</b>
128
+ * </p>
129
+ * <ul>
130
+ * <li>
131
+ * <p>
132
+ * <a>CreateChatToken</a> — Creates an encrypted token that is used to
133
+ * establish an individual WebSocket connection to a room. The token is valid for one minute,
134
+ * and a connection (session) established with the token is valid for the specified
135
+ * duration.</p>
136
+ * </li>
137
+ * </ul>
138
+ *
139
+ *
140
+ * <p>
141
+ * <b>Room Endpoints</b>
142
+ * </p>
143
+ * <ul>
144
+ * <li>
145
+ * <p>
146
+ * <a>CreateRoom</a> — Creates a room that allows clients to connect and
147
+ * pass messages.</p>
148
+ * </li>
149
+ * <li>
150
+ * <p>
151
+ * <a>DeleteRoom</a> — Deletes the specified room.</p>
152
+ * </li>
153
+ * <li>
154
+ * <p>
155
+ * <a>GetRoom</a> — Gets the specified room.</p>
156
+ * </li>
157
+ * <li>
158
+ * <p>
159
+ * <a>ListRooms</a> — Gets summary information about all your rooms in
160
+ * the AWS region where the API request is processed. </p>
161
+ * </li>
162
+ * <li>
163
+ * <p>
164
+ * <a>UpdateRoom</a> — Updates a room’s configuration.</p>
165
+ * </li>
166
+ * </ul>
167
+ *
168
+ * <p>
169
+ * <b>Tags Endpoints</b>
170
+ * </p>
171
+ * <ul>
172
+ * <li>
173
+ * <p>
174
+ * <a>ListTagsForResource</a> — Gets information about AWS tags for the
175
+ * specified ARN.</p>
176
+ * </li>
177
+ * <li>
178
+ * <p>
179
+ * <a>TagResource</a> — Adds or updates tags for the AWS resource with
180
+ * the specified ARN.</p>
181
+ * </li>
182
+ * <li>
183
+ * <p>
184
+ * <a>UntagResource</a> — Removes tags from the resource with the
185
+ * specified ARN.</p>
186
+ * </li>
187
+ * </ul>
188
+ *
189
+ *
190
+ * <p>All the above are HTTP operations. There is a separate <i>messaging</i> API
191
+ * for managing Chat resources; see the <a href="https://docs.aws.amazon.com/ivs/latest/chatmsgapireference/chat-messaging-api.html"> Amazon IVS Chat Messaging API
192
+ * Reference</a>.</p>
193
+ */
194
+ export declare class Ivschat extends IvschatClient {
195
+ /**
196
+ * <p>Creates an encrypted token that is used to establish an individual WebSocket connection
197
+ * to a room. The token is valid for one minute, and a connection (session) established with
198
+ * the token is valid for the specified duration.</p>
199
+ * <p>Encryption keys are owned by Amazon IVS Chat and never used directly by your
200
+ * application.</p>
201
+ */
202
+ createChatToken(args: CreateChatTokenCommandInput, options?: __HttpHandlerOptions): Promise<CreateChatTokenCommandOutput>;
203
+ createChatToken(args: CreateChatTokenCommandInput, cb: (err: any, data?: CreateChatTokenCommandOutput) => void): void;
204
+ createChatToken(args: CreateChatTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateChatTokenCommandOutput) => void): void;
205
+ /**
206
+ * <p>Creates a room that allows clients to connect and pass messages.</p>
207
+ */
208
+ createRoom(args: CreateRoomCommandInput, options?: __HttpHandlerOptions): Promise<CreateRoomCommandOutput>;
209
+ createRoom(args: CreateRoomCommandInput, cb: (err: any, data?: CreateRoomCommandOutput) => void): void;
210
+ createRoom(args: CreateRoomCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateRoomCommandOutput) => void): void;
211
+ /**
212
+ * <p>Sends an event to a specific room which directs clients to delete a specific message;
213
+ * that is, unrender it from view and delete it from the client’s chat history. This event’s
214
+ * <code>EventName</code> is <code>aws:DELETE_MESSAGE</code>. This replicates the <a href="https://docs.aws.amazon.com/ivs/latest/chatmsgapireference/actions-deletemessage-publish.html"> DeleteMessage</a> WebSocket operation
215
+ * in the Amazon IVS Chat Messaging API.</p>
216
+ */
217
+ deleteMessage(args: DeleteMessageCommandInput, options?: __HttpHandlerOptions): Promise<DeleteMessageCommandOutput>;
218
+ deleteMessage(args: DeleteMessageCommandInput, cb: (err: any, data?: DeleteMessageCommandOutput) => void): void;
219
+ deleteMessage(args: DeleteMessageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteMessageCommandOutput) => void): void;
220
+ /**
221
+ * <p>Deletes the specified room.</p>
222
+ */
223
+ deleteRoom(args: DeleteRoomCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRoomCommandOutput>;
224
+ deleteRoom(args: DeleteRoomCommandInput, cb: (err: any, data?: DeleteRoomCommandOutput) => void): void;
225
+ deleteRoom(args: DeleteRoomCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteRoomCommandOutput) => void): void;
226
+ /**
227
+ * <p>Disconnects all connections using a specified user ID from a room. This replicates the <a href="https://docs.aws.amazon.com/ivs/latest/chatmsgapireference/actions-disconnectuser-publish.html"> DisconnectUser</a> WebSocket operation
228
+ * in the Amazon IVS Chat Messaging API.</p>
229
+ */
230
+ disconnectUser(args: DisconnectUserCommandInput, options?: __HttpHandlerOptions): Promise<DisconnectUserCommandOutput>;
231
+ disconnectUser(args: DisconnectUserCommandInput, cb: (err: any, data?: DisconnectUserCommandOutput) => void): void;
232
+ disconnectUser(args: DisconnectUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisconnectUserCommandOutput) => void): void;
233
+ /**
234
+ * <p>Gets the specified room.</p>
235
+ */
236
+ getRoom(args: GetRoomCommandInput, options?: __HttpHandlerOptions): Promise<GetRoomCommandOutput>;
237
+ getRoom(args: GetRoomCommandInput, cb: (err: any, data?: GetRoomCommandOutput) => void): void;
238
+ getRoom(args: GetRoomCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRoomCommandOutput) => void): void;
239
+ /**
240
+ * <p>Gets summary information about all your rooms in the AWS region where the API request is
241
+ * processed. Results are sorted in descending order of <code>updateTime</code>.</p>
242
+ */
243
+ listRooms(args: ListRoomsCommandInput, options?: __HttpHandlerOptions): Promise<ListRoomsCommandOutput>;
244
+ listRooms(args: ListRoomsCommandInput, cb: (err: any, data?: ListRoomsCommandOutput) => void): void;
245
+ listRooms(args: ListRoomsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRoomsCommandOutput) => void): void;
246
+ /**
247
+ * <p>Gets information about AWS tags for the specified ARN.</p>
248
+ */
249
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
250
+ listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
251
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
252
+ /**
253
+ * <p>Sends an event to a room. Use this within your application’s business logic to send
254
+ * events to clients of a room; e.g., to notify clients to change the way the chat UI is
255
+ * rendered.</p>
256
+ */
257
+ sendEvent(args: SendEventCommandInput, options?: __HttpHandlerOptions): Promise<SendEventCommandOutput>;
258
+ sendEvent(args: SendEventCommandInput, cb: (err: any, data?: SendEventCommandOutput) => void): void;
259
+ sendEvent(args: SendEventCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendEventCommandOutput) => void): void;
260
+ /**
261
+ * <p>Adds or updates tags for the AWS resource with the specified ARN.</p>
262
+ */
263
+ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
264
+ tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
265
+ tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
266
+ /**
267
+ * <p>Removes tags from the resource with the specified ARN.</p>
268
+ */
269
+ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
270
+ untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
271
+ untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
272
+ /**
273
+ * <p>Updates a room’s configuration.</p>
274
+ */
275
+ updateRoom(args: UpdateRoomCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRoomCommandOutput>;
276
+ updateRoom(args: UpdateRoomCommandInput, cb: (err: any, data?: UpdateRoomCommandOutput) => void): void;
277
+ updateRoom(args: UpdateRoomCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRoomCommandOutput) => void): void;
278
+ }