@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,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./CreateChatTokenCommand"), exports);
5
+ tslib_1.__exportStar(require("./CreateRoomCommand"), exports);
6
+ tslib_1.__exportStar(require("./DeleteMessageCommand"), exports);
7
+ tslib_1.__exportStar(require("./DeleteRoomCommand"), exports);
8
+ tslib_1.__exportStar(require("./DisconnectUserCommand"), exports);
9
+ tslib_1.__exportStar(require("./GetRoomCommand"), exports);
10
+ tslib_1.__exportStar(require("./ListRoomsCommand"), exports);
11
+ tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
12
+ tslib_1.__exportStar(require("./SendEventCommand"), exports);
13
+ tslib_1.__exportStar(require("./TagResourceCommand"), exports);
14
+ tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
15
+ tslib_1.__exportStar(require("./UpdateRoomCommand"), exports);
@@ -0,0 +1,131 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultRegionInfoProvider = void 0;
4
+ const config_resolver_1 = require("@aws-sdk/config-resolver");
5
+ const regionHash = {};
6
+ const partitionHash = {
7
+ aws: {
8
+ regions: [
9
+ "af-south-1",
10
+ "ap-east-1",
11
+ "ap-northeast-1",
12
+ "ap-northeast-2",
13
+ "ap-northeast-3",
14
+ "ap-south-1",
15
+ "ap-southeast-1",
16
+ "ap-southeast-2",
17
+ "ap-southeast-3",
18
+ "ca-central-1",
19
+ "eu-central-1",
20
+ "eu-north-1",
21
+ "eu-south-1",
22
+ "eu-west-1",
23
+ "eu-west-2",
24
+ "eu-west-3",
25
+ "me-south-1",
26
+ "sa-east-1",
27
+ "us-east-1",
28
+ "us-east-2",
29
+ "us-west-1",
30
+ "us-west-2",
31
+ ],
32
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
33
+ variants: [
34
+ {
35
+ hostname: "ivschat.{region}.amazonaws.com",
36
+ tags: [],
37
+ },
38
+ {
39
+ hostname: "ivschat-fips.{region}.amazonaws.com",
40
+ tags: ["fips"],
41
+ },
42
+ {
43
+ hostname: "ivschat-fips.{region}.api.aws",
44
+ tags: ["dualstack", "fips"],
45
+ },
46
+ {
47
+ hostname: "ivschat.{region}.api.aws",
48
+ tags: ["dualstack"],
49
+ },
50
+ ],
51
+ },
52
+ "aws-cn": {
53
+ regions: ["cn-north-1", "cn-northwest-1"],
54
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
55
+ variants: [
56
+ {
57
+ hostname: "ivschat.{region}.amazonaws.com.cn",
58
+ tags: [],
59
+ },
60
+ {
61
+ hostname: "ivschat-fips.{region}.amazonaws.com.cn",
62
+ tags: ["fips"],
63
+ },
64
+ {
65
+ hostname: "ivschat-fips.{region}.api.amazonwebservices.com.cn",
66
+ tags: ["dualstack", "fips"],
67
+ },
68
+ {
69
+ hostname: "ivschat.{region}.api.amazonwebservices.com.cn",
70
+ tags: ["dualstack"],
71
+ },
72
+ ],
73
+ },
74
+ "aws-iso": {
75
+ regions: ["us-iso-east-1", "us-iso-west-1"],
76
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
77
+ variants: [
78
+ {
79
+ hostname: "ivschat.{region}.c2s.ic.gov",
80
+ tags: [],
81
+ },
82
+ {
83
+ hostname: "ivschat-fips.{region}.c2s.ic.gov",
84
+ tags: ["fips"],
85
+ },
86
+ ],
87
+ },
88
+ "aws-iso-b": {
89
+ regions: ["us-isob-east-1"],
90
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
91
+ variants: [
92
+ {
93
+ hostname: "ivschat.{region}.sc2s.sgov.gov",
94
+ tags: [],
95
+ },
96
+ {
97
+ hostname: "ivschat-fips.{region}.sc2s.sgov.gov",
98
+ tags: ["fips"],
99
+ },
100
+ ],
101
+ },
102
+ "aws-us-gov": {
103
+ regions: ["us-gov-east-1", "us-gov-west-1"],
104
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
105
+ variants: [
106
+ {
107
+ hostname: "ivschat.{region}.amazonaws.com",
108
+ tags: [],
109
+ },
110
+ {
111
+ hostname: "ivschat-fips.{region}.amazonaws.com",
112
+ tags: ["fips"],
113
+ },
114
+ {
115
+ hostname: "ivschat-fips.{region}.api.aws",
116
+ tags: ["dualstack", "fips"],
117
+ },
118
+ {
119
+ hostname: "ivschat.{region}.api.aws",
120
+ tags: ["dualstack"],
121
+ },
122
+ ],
123
+ },
124
+ };
125
+ const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
126
+ ...options,
127
+ signingService: "ivschat",
128
+ regionHash,
129
+ partitionHash,
130
+ });
131
+ exports.defaultRegionInfoProvider = defaultRegionInfoProvider;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IvschatServiceException = void 0;
4
+ const tslib_1 = require("tslib");
5
+ tslib_1.__exportStar(require("./Ivschat"), exports);
6
+ tslib_1.__exportStar(require("./IvschatClient"), exports);
7
+ tslib_1.__exportStar(require("./commands"), exports);
8
+ tslib_1.__exportStar(require("./models"), exports);
9
+ tslib_1.__exportStar(require("./pagination"), exports);
10
+ var IvschatServiceException_1 = require("./models/IvschatServiceException");
11
+ Object.defineProperty(exports, "IvschatServiceException", { enumerable: true, get: function () { return IvschatServiceException_1.IvschatServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IvschatServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class IvschatServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, IvschatServiceException.prototype);
9
+ }
10
+ }
11
+ exports.IvschatServiceException = IvschatServiceException;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./models_0"), exports);
@@ -0,0 +1,297 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateRoomResponse = exports.UpdateRoomRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.SendEventResponse = exports.SendEventRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.InternalServerException = exports.ListRoomsResponse = exports.RoomSummary = exports.ListRoomsRequest = exports.GetRoomResponse = exports.GetRoomRequest = exports.DisconnectUserResponse = exports.DisconnectUserRequest = exports.DeleteRoomRequest = exports.ThrottlingException = exports.DeleteMessageResponse = exports.DeleteMessageRequest = exports.ServiceQuotaExceededException = exports.CreateRoomResponse = exports.CreateRoomRequest = exports.MessageReviewHandler = exports.FallbackResult = exports.ConflictException = exports.ValidationException = exports.ValidationExceptionReason = exports.ValidationExceptionField = exports.ResourceNotFoundException = exports.ResourceType = exports.PendingVerification = exports.CreateChatTokenResponse = exports.CreateChatTokenRequest = exports.ChatTokenCapability = exports.AccessDeniedException = void 0;
4
+ const IvschatServiceException_1 = require("./IvschatServiceException");
5
+ class AccessDeniedException extends IvschatServiceException_1.IvschatServiceException {
6
+ constructor(opts) {
7
+ super({
8
+ name: "AccessDeniedException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ this.name = "AccessDeniedException";
13
+ this.$fault = "client";
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ }
16
+ }
17
+ exports.AccessDeniedException = AccessDeniedException;
18
+ var ChatTokenCapability;
19
+ (function (ChatTokenCapability) {
20
+ ChatTokenCapability["DELETE_MESSAGE"] = "DELETE_MESSAGE";
21
+ ChatTokenCapability["DISCONNECT_USER"] = "DISCONNECT_USER";
22
+ ChatTokenCapability["SEND_MESSAGE"] = "SEND_MESSAGE";
23
+ })(ChatTokenCapability = exports.ChatTokenCapability || (exports.ChatTokenCapability = {}));
24
+ var CreateChatTokenRequest;
25
+ (function (CreateChatTokenRequest) {
26
+ CreateChatTokenRequest.filterSensitiveLog = (obj) => ({
27
+ ...obj,
28
+ });
29
+ })(CreateChatTokenRequest = exports.CreateChatTokenRequest || (exports.CreateChatTokenRequest = {}));
30
+ var CreateChatTokenResponse;
31
+ (function (CreateChatTokenResponse) {
32
+ CreateChatTokenResponse.filterSensitiveLog = (obj) => ({
33
+ ...obj,
34
+ });
35
+ })(CreateChatTokenResponse = exports.CreateChatTokenResponse || (exports.CreateChatTokenResponse = {}));
36
+ class PendingVerification extends IvschatServiceException_1.IvschatServiceException {
37
+ constructor(opts) {
38
+ super({
39
+ name: "PendingVerification",
40
+ $fault: "client",
41
+ ...opts,
42
+ });
43
+ this.name = "PendingVerification";
44
+ this.$fault = "client";
45
+ Object.setPrototypeOf(this, PendingVerification.prototype);
46
+ }
47
+ }
48
+ exports.PendingVerification = PendingVerification;
49
+ var ResourceType;
50
+ (function (ResourceType) {
51
+ ResourceType["ROOM"] = "ROOM";
52
+ })(ResourceType = exports.ResourceType || (exports.ResourceType = {}));
53
+ class ResourceNotFoundException extends IvschatServiceException_1.IvschatServiceException {
54
+ constructor(opts) {
55
+ super({
56
+ name: "ResourceNotFoundException",
57
+ $fault: "client",
58
+ ...opts,
59
+ });
60
+ this.name = "ResourceNotFoundException";
61
+ this.$fault = "client";
62
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
63
+ this.resourceId = opts.resourceId;
64
+ this.resourceType = opts.resourceType;
65
+ }
66
+ }
67
+ exports.ResourceNotFoundException = ResourceNotFoundException;
68
+ var ValidationExceptionField;
69
+ (function (ValidationExceptionField) {
70
+ ValidationExceptionField.filterSensitiveLog = (obj) => ({
71
+ ...obj,
72
+ });
73
+ })(ValidationExceptionField = exports.ValidationExceptionField || (exports.ValidationExceptionField = {}));
74
+ var ValidationExceptionReason;
75
+ (function (ValidationExceptionReason) {
76
+ ValidationExceptionReason["FIELD_VALIDATION_FAILED"] = "FIELD_VALIDATION_FAILED";
77
+ ValidationExceptionReason["OTHER"] = "OTHER";
78
+ ValidationExceptionReason["UNKNOWN_OPERATION"] = "UNKNOWN_OPERATION";
79
+ })(ValidationExceptionReason = exports.ValidationExceptionReason || (exports.ValidationExceptionReason = {}));
80
+ class ValidationException extends IvschatServiceException_1.IvschatServiceException {
81
+ constructor(opts) {
82
+ super({
83
+ name: "ValidationException",
84
+ $fault: "client",
85
+ ...opts,
86
+ });
87
+ this.name = "ValidationException";
88
+ this.$fault = "client";
89
+ Object.setPrototypeOf(this, ValidationException.prototype);
90
+ this.reason = opts.reason;
91
+ this.fieldList = opts.fieldList;
92
+ }
93
+ }
94
+ exports.ValidationException = ValidationException;
95
+ class ConflictException extends IvschatServiceException_1.IvschatServiceException {
96
+ constructor(opts) {
97
+ super({
98
+ name: "ConflictException",
99
+ $fault: "client",
100
+ ...opts,
101
+ });
102
+ this.name = "ConflictException";
103
+ this.$fault = "client";
104
+ Object.setPrototypeOf(this, ConflictException.prototype);
105
+ this.resourceId = opts.resourceId;
106
+ this.resourceType = opts.resourceType;
107
+ }
108
+ }
109
+ exports.ConflictException = ConflictException;
110
+ var FallbackResult;
111
+ (function (FallbackResult) {
112
+ FallbackResult["ALLOW"] = "ALLOW";
113
+ FallbackResult["DENY"] = "DENY";
114
+ })(FallbackResult = exports.FallbackResult || (exports.FallbackResult = {}));
115
+ var MessageReviewHandler;
116
+ (function (MessageReviewHandler) {
117
+ MessageReviewHandler.filterSensitiveLog = (obj) => ({
118
+ ...obj,
119
+ });
120
+ })(MessageReviewHandler = exports.MessageReviewHandler || (exports.MessageReviewHandler = {}));
121
+ var CreateRoomRequest;
122
+ (function (CreateRoomRequest) {
123
+ CreateRoomRequest.filterSensitiveLog = (obj) => ({
124
+ ...obj,
125
+ });
126
+ })(CreateRoomRequest = exports.CreateRoomRequest || (exports.CreateRoomRequest = {}));
127
+ var CreateRoomResponse;
128
+ (function (CreateRoomResponse) {
129
+ CreateRoomResponse.filterSensitiveLog = (obj) => ({
130
+ ...obj,
131
+ });
132
+ })(CreateRoomResponse = exports.CreateRoomResponse || (exports.CreateRoomResponse = {}));
133
+ class ServiceQuotaExceededException extends IvschatServiceException_1.IvschatServiceException {
134
+ constructor(opts) {
135
+ super({
136
+ name: "ServiceQuotaExceededException",
137
+ $fault: "client",
138
+ ...opts,
139
+ });
140
+ this.name = "ServiceQuotaExceededException";
141
+ this.$fault = "client";
142
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
143
+ this.resourceId = opts.resourceId;
144
+ this.resourceType = opts.resourceType;
145
+ this.limit = opts.limit;
146
+ }
147
+ }
148
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
149
+ var DeleteMessageRequest;
150
+ (function (DeleteMessageRequest) {
151
+ DeleteMessageRequest.filterSensitiveLog = (obj) => ({
152
+ ...obj,
153
+ });
154
+ })(DeleteMessageRequest = exports.DeleteMessageRequest || (exports.DeleteMessageRequest = {}));
155
+ var DeleteMessageResponse;
156
+ (function (DeleteMessageResponse) {
157
+ DeleteMessageResponse.filterSensitiveLog = (obj) => ({
158
+ ...obj,
159
+ });
160
+ })(DeleteMessageResponse = exports.DeleteMessageResponse || (exports.DeleteMessageResponse = {}));
161
+ class ThrottlingException extends IvschatServiceException_1.IvschatServiceException {
162
+ constructor(opts) {
163
+ super({
164
+ name: "ThrottlingException",
165
+ $fault: "client",
166
+ ...opts,
167
+ });
168
+ this.name = "ThrottlingException";
169
+ this.$fault = "client";
170
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
171
+ this.resourceId = opts.resourceId;
172
+ this.resourceType = opts.resourceType;
173
+ this.limit = opts.limit;
174
+ }
175
+ }
176
+ exports.ThrottlingException = ThrottlingException;
177
+ var DeleteRoomRequest;
178
+ (function (DeleteRoomRequest) {
179
+ DeleteRoomRequest.filterSensitiveLog = (obj) => ({
180
+ ...obj,
181
+ });
182
+ })(DeleteRoomRequest = exports.DeleteRoomRequest || (exports.DeleteRoomRequest = {}));
183
+ var DisconnectUserRequest;
184
+ (function (DisconnectUserRequest) {
185
+ DisconnectUserRequest.filterSensitiveLog = (obj) => ({
186
+ ...obj,
187
+ });
188
+ })(DisconnectUserRequest = exports.DisconnectUserRequest || (exports.DisconnectUserRequest = {}));
189
+ var DisconnectUserResponse;
190
+ (function (DisconnectUserResponse) {
191
+ DisconnectUserResponse.filterSensitiveLog = (obj) => ({
192
+ ...obj,
193
+ });
194
+ })(DisconnectUserResponse = exports.DisconnectUserResponse || (exports.DisconnectUserResponse = {}));
195
+ var GetRoomRequest;
196
+ (function (GetRoomRequest) {
197
+ GetRoomRequest.filterSensitiveLog = (obj) => ({
198
+ ...obj,
199
+ });
200
+ })(GetRoomRequest = exports.GetRoomRequest || (exports.GetRoomRequest = {}));
201
+ var GetRoomResponse;
202
+ (function (GetRoomResponse) {
203
+ GetRoomResponse.filterSensitiveLog = (obj) => ({
204
+ ...obj,
205
+ });
206
+ })(GetRoomResponse = exports.GetRoomResponse || (exports.GetRoomResponse = {}));
207
+ var ListRoomsRequest;
208
+ (function (ListRoomsRequest) {
209
+ ListRoomsRequest.filterSensitiveLog = (obj) => ({
210
+ ...obj,
211
+ });
212
+ })(ListRoomsRequest = exports.ListRoomsRequest || (exports.ListRoomsRequest = {}));
213
+ var RoomSummary;
214
+ (function (RoomSummary) {
215
+ RoomSummary.filterSensitiveLog = (obj) => ({
216
+ ...obj,
217
+ });
218
+ })(RoomSummary = exports.RoomSummary || (exports.RoomSummary = {}));
219
+ var ListRoomsResponse;
220
+ (function (ListRoomsResponse) {
221
+ ListRoomsResponse.filterSensitiveLog = (obj) => ({
222
+ ...obj,
223
+ });
224
+ })(ListRoomsResponse = exports.ListRoomsResponse || (exports.ListRoomsResponse = {}));
225
+ class InternalServerException extends IvschatServiceException_1.IvschatServiceException {
226
+ constructor(opts) {
227
+ super({
228
+ name: "InternalServerException",
229
+ $fault: "server",
230
+ ...opts,
231
+ });
232
+ this.name = "InternalServerException";
233
+ this.$fault = "server";
234
+ Object.setPrototypeOf(this, InternalServerException.prototype);
235
+ }
236
+ }
237
+ exports.InternalServerException = InternalServerException;
238
+ var ListTagsForResourceRequest;
239
+ (function (ListTagsForResourceRequest) {
240
+ ListTagsForResourceRequest.filterSensitiveLog = (obj) => ({
241
+ ...obj,
242
+ });
243
+ })(ListTagsForResourceRequest = exports.ListTagsForResourceRequest || (exports.ListTagsForResourceRequest = {}));
244
+ var ListTagsForResourceResponse;
245
+ (function (ListTagsForResourceResponse) {
246
+ ListTagsForResourceResponse.filterSensitiveLog = (obj) => ({
247
+ ...obj,
248
+ });
249
+ })(ListTagsForResourceResponse = exports.ListTagsForResourceResponse || (exports.ListTagsForResourceResponse = {}));
250
+ var SendEventRequest;
251
+ (function (SendEventRequest) {
252
+ SendEventRequest.filterSensitiveLog = (obj) => ({
253
+ ...obj,
254
+ });
255
+ })(SendEventRequest = exports.SendEventRequest || (exports.SendEventRequest = {}));
256
+ var SendEventResponse;
257
+ (function (SendEventResponse) {
258
+ SendEventResponse.filterSensitiveLog = (obj) => ({
259
+ ...obj,
260
+ });
261
+ })(SendEventResponse = exports.SendEventResponse || (exports.SendEventResponse = {}));
262
+ var TagResourceRequest;
263
+ (function (TagResourceRequest) {
264
+ TagResourceRequest.filterSensitiveLog = (obj) => ({
265
+ ...obj,
266
+ });
267
+ })(TagResourceRequest = exports.TagResourceRequest || (exports.TagResourceRequest = {}));
268
+ var TagResourceResponse;
269
+ (function (TagResourceResponse) {
270
+ TagResourceResponse.filterSensitiveLog = (obj) => ({
271
+ ...obj,
272
+ });
273
+ })(TagResourceResponse = exports.TagResourceResponse || (exports.TagResourceResponse = {}));
274
+ var UntagResourceRequest;
275
+ (function (UntagResourceRequest) {
276
+ UntagResourceRequest.filterSensitiveLog = (obj) => ({
277
+ ...obj,
278
+ });
279
+ })(UntagResourceRequest = exports.UntagResourceRequest || (exports.UntagResourceRequest = {}));
280
+ var UntagResourceResponse;
281
+ (function (UntagResourceResponse) {
282
+ UntagResourceResponse.filterSensitiveLog = (obj) => ({
283
+ ...obj,
284
+ });
285
+ })(UntagResourceResponse = exports.UntagResourceResponse || (exports.UntagResourceResponse = {}));
286
+ var UpdateRoomRequest;
287
+ (function (UpdateRoomRequest) {
288
+ UpdateRoomRequest.filterSensitiveLog = (obj) => ({
289
+ ...obj,
290
+ });
291
+ })(UpdateRoomRequest = exports.UpdateRoomRequest || (exports.UpdateRoomRequest = {}));
292
+ var UpdateRoomResponse;
293
+ (function (UpdateRoomResponse) {
294
+ UpdateRoomResponse.filterSensitiveLog = (obj) => ({
295
+ ...obj,
296
+ });
297
+ })(UpdateRoomResponse = exports.UpdateRoomResponse || (exports.UpdateRoomResponse = {}));
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListRooms = void 0;
4
+ const ListRoomsCommand_1 = require("../commands/ListRoomsCommand");
5
+ const Ivschat_1 = require("../Ivschat");
6
+ const IvschatClient_1 = require("../IvschatClient");
7
+ const makePagedClientRequest = async (client, input, ...args) => {
8
+ return await client.send(new ListRoomsCommand_1.ListRoomsCommand(input), ...args);
9
+ };
10
+ const makePagedRequest = async (client, input, ...args) => {
11
+ return await client.listRooms(input, ...args);
12
+ };
13
+ async function* paginateListRooms(config, input, ...additionalArguments) {
14
+ let token = config.startingToken || undefined;
15
+ let hasNext = true;
16
+ let page;
17
+ while (hasNext) {
18
+ input.nextToken = token;
19
+ input["maxResults"] = config.pageSize;
20
+ if (config.client instanceof Ivschat_1.Ivschat) {
21
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else if (config.client instanceof IvschatClient_1.IvschatClient) {
24
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
+ }
26
+ else {
27
+ throw new Error("Invalid client, expected Ivschat | IvschatClient");
28
+ }
29
+ yield page;
30
+ const prevToken = token;
31
+ token = page.nextToken;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
33
+ }
34
+ return undefined;
35
+ }
36
+ exports.paginateListRooms = paginateListRooms;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Interfaces"), exports);
5
+ tslib_1.__exportStar(require("./ListRoomsPaginator"), exports);