@aws-sdk/client-repostspace 3.490.0 → 3.495.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.
- package/dist-cjs/Repostspace.js +1 -33
- package/dist-cjs/RepostspaceClient.js +1 -43
- package/dist-cjs/commands/CreateSpaceCommand.js +1 -29
- package/dist-cjs/commands/DeleteSpaceCommand.js +1 -28
- package/dist-cjs/commands/DeregisterAdminCommand.js +1 -28
- package/dist-cjs/commands/GetSpaceCommand.js +1 -29
- package/dist-cjs/commands/ListSpacesCommand.js +1 -29
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -29
- package/dist-cjs/commands/RegisterAdminCommand.js +1 -28
- package/dist-cjs/commands/SendInvitesCommand.js +1 -29
- package/dist-cjs/commands/TagResourceCommand.js +1 -29
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateSpaceCommand.js +1 -29
- package/dist-cjs/commands/index.js +1 -14
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +1443 -11
- package/dist-cjs/models/RepostspaceServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -178
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListSpacesPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -5
- package/dist-cjs/protocols/Aws_restJson1.js +1 -854
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,1444 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
ConfigurationStatus: () => ConfigurationStatus,
|
|
26
|
+
ConflictException: () => ConflictException,
|
|
27
|
+
CreateSpaceCommand: () => CreateSpaceCommand,
|
|
28
|
+
CreateSpaceInputFilterSensitiveLog: () => CreateSpaceInputFilterSensitiveLog,
|
|
29
|
+
DeleteSpaceCommand: () => DeleteSpaceCommand,
|
|
30
|
+
DeregisterAdminCommand: () => DeregisterAdminCommand,
|
|
31
|
+
GetSpaceCommand: () => GetSpaceCommand,
|
|
32
|
+
GetSpaceOutputFilterSensitiveLog: () => GetSpaceOutputFilterSensitiveLog,
|
|
33
|
+
InternalServerException: () => InternalServerException,
|
|
34
|
+
ListSpacesCommand: () => ListSpacesCommand,
|
|
35
|
+
ListSpacesOutputFilterSensitiveLog: () => ListSpacesOutputFilterSensitiveLog,
|
|
36
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
37
|
+
ListTagsForResourceResponseFilterSensitiveLog: () => ListTagsForResourceResponseFilterSensitiveLog,
|
|
38
|
+
RegisterAdminCommand: () => RegisterAdminCommand,
|
|
39
|
+
Repostspace: () => Repostspace,
|
|
40
|
+
RepostspaceClient: () => RepostspaceClient,
|
|
41
|
+
RepostspaceServiceException: () => RepostspaceServiceException,
|
|
42
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
43
|
+
SendInvitesCommand: () => SendInvitesCommand,
|
|
44
|
+
SendInvitesInputFilterSensitiveLog: () => SendInvitesInputFilterSensitiveLog,
|
|
45
|
+
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
46
|
+
SpaceDataFilterSensitiveLog: () => SpaceDataFilterSensitiveLog,
|
|
47
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
48
|
+
TagResourceRequestFilterSensitiveLog: () => TagResourceRequestFilterSensitiveLog,
|
|
49
|
+
ThrottlingException: () => ThrottlingException,
|
|
50
|
+
TierLevel: () => TierLevel,
|
|
51
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
52
|
+
UpdateSpaceCommand: () => UpdateSpaceCommand,
|
|
53
|
+
UpdateSpaceInputFilterSensitiveLog: () => UpdateSpaceInputFilterSensitiveLog,
|
|
54
|
+
ValidationException: () => ValidationException,
|
|
55
|
+
ValidationExceptionReason: () => ValidationExceptionReason,
|
|
56
|
+
VanityDomainStatus: () => VanityDomainStatus,
|
|
57
|
+
__Client: () => import_smithy_client.Client,
|
|
58
|
+
paginateListSpaces: () => paginateListSpaces
|
|
59
|
+
});
|
|
60
|
+
module.exports = __toCommonJS(src_exports);
|
|
61
|
+
|
|
62
|
+
// src/RepostspaceClient.ts
|
|
63
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
64
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
65
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
66
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
67
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
68
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
69
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
70
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
71
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
// src/endpoint/EndpointParameters.ts
|
|
75
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
76
|
+
return {
|
|
77
|
+
...options,
|
|
78
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
79
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
80
|
+
defaultSigningName: "repostspace"
|
|
81
|
+
};
|
|
82
|
+
}, "resolveClientEndpointParameters");
|
|
83
|
+
var commonParams = {
|
|
84
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
85
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
86
|
+
Region: { type: "builtInParams", name: "region" },
|
|
87
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
// src/RepostspaceClient.ts
|
|
91
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
92
|
+
|
|
93
|
+
// src/runtimeExtensions.ts
|
|
94
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
95
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
96
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
97
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
98
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
99
|
+
const extensionConfiguration = {
|
|
100
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
101
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
102
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
103
|
+
};
|
|
104
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
105
|
+
return {
|
|
106
|
+
...runtimeConfig,
|
|
107
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
108
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
109
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
110
|
+
};
|
|
111
|
+
}, "resolveRuntimeExtensions");
|
|
112
|
+
|
|
113
|
+
// src/RepostspaceClient.ts
|
|
114
|
+
var _RepostspaceClient = class _RepostspaceClient extends import_smithy_client.Client {
|
|
115
|
+
constructor(...[configuration]) {
|
|
116
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
117
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
118
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
119
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
120
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
121
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
122
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
123
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
124
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
125
|
+
super(_config_8);
|
|
126
|
+
this.config = _config_8;
|
|
127
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
128
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
129
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
130
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
131
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
132
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
133
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
137
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
138
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
139
|
+
*/
|
|
140
|
+
destroy() {
|
|
141
|
+
super.destroy();
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
__name(_RepostspaceClient, "RepostspaceClient");
|
|
145
|
+
var RepostspaceClient = _RepostspaceClient;
|
|
146
|
+
|
|
147
|
+
// src/Repostspace.ts
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
// src/commands/CreateSpaceCommand.ts
|
|
151
|
+
|
|
152
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
153
|
+
|
|
154
|
+
var import_types = require("@smithy/types");
|
|
155
|
+
|
|
156
|
+
// src/models/models_0.ts
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
// src/models/RepostspaceServiceException.ts
|
|
160
|
+
|
|
161
|
+
var _RepostspaceServiceException = class _RepostspaceServiceException extends import_smithy_client.ServiceException {
|
|
162
|
+
/**
|
|
163
|
+
* @internal
|
|
164
|
+
*/
|
|
165
|
+
constructor(options) {
|
|
166
|
+
super(options);
|
|
167
|
+
Object.setPrototypeOf(this, _RepostspaceServiceException.prototype);
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
__name(_RepostspaceServiceException, "RepostspaceServiceException");
|
|
171
|
+
var RepostspaceServiceException = _RepostspaceServiceException;
|
|
172
|
+
|
|
173
|
+
// src/models/models_0.ts
|
|
174
|
+
var _AccessDeniedException = class _AccessDeniedException extends RepostspaceServiceException {
|
|
175
|
+
/**
|
|
176
|
+
* @internal
|
|
177
|
+
*/
|
|
178
|
+
constructor(opts) {
|
|
179
|
+
super({
|
|
180
|
+
name: "AccessDeniedException",
|
|
181
|
+
$fault: "client",
|
|
182
|
+
...opts
|
|
183
|
+
});
|
|
184
|
+
this.name = "AccessDeniedException";
|
|
185
|
+
this.$fault = "client";
|
|
186
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
__name(_AccessDeniedException, "AccessDeniedException");
|
|
190
|
+
var AccessDeniedException = _AccessDeniedException;
|
|
191
|
+
var ConfigurationStatus = {
|
|
192
|
+
CONFIGURED: "CONFIGURED",
|
|
193
|
+
UNCONFIGURED: "UNCONFIGURED"
|
|
194
|
+
};
|
|
195
|
+
var _ConflictException = class _ConflictException extends RepostspaceServiceException {
|
|
196
|
+
/**
|
|
197
|
+
* @internal
|
|
198
|
+
*/
|
|
199
|
+
constructor(opts) {
|
|
200
|
+
super({
|
|
201
|
+
name: "ConflictException",
|
|
202
|
+
$fault: "client",
|
|
203
|
+
...opts
|
|
204
|
+
});
|
|
205
|
+
this.name = "ConflictException";
|
|
206
|
+
this.$fault = "client";
|
|
207
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
208
|
+
this.resourceId = opts.resourceId;
|
|
209
|
+
this.resourceType = opts.resourceType;
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
__name(_ConflictException, "ConflictException");
|
|
213
|
+
var ConflictException = _ConflictException;
|
|
214
|
+
var TierLevel = {
|
|
215
|
+
BASIC: "BASIC",
|
|
216
|
+
STANDARD: "STANDARD"
|
|
217
|
+
};
|
|
218
|
+
var _InternalServerException = class _InternalServerException extends RepostspaceServiceException {
|
|
219
|
+
/**
|
|
220
|
+
* @internal
|
|
221
|
+
*/
|
|
222
|
+
constructor(opts) {
|
|
223
|
+
super({
|
|
224
|
+
name: "InternalServerException",
|
|
225
|
+
$fault: "server",
|
|
226
|
+
...opts
|
|
227
|
+
});
|
|
228
|
+
this.name = "InternalServerException";
|
|
229
|
+
this.$fault = "server";
|
|
230
|
+
this.$retryable = {};
|
|
231
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
232
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
__name(_InternalServerException, "InternalServerException");
|
|
236
|
+
var InternalServerException = _InternalServerException;
|
|
237
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends RepostspaceServiceException {
|
|
238
|
+
/**
|
|
239
|
+
* @internal
|
|
240
|
+
*/
|
|
241
|
+
constructor(opts) {
|
|
242
|
+
super({
|
|
243
|
+
name: "ResourceNotFoundException",
|
|
244
|
+
$fault: "client",
|
|
245
|
+
...opts
|
|
246
|
+
});
|
|
247
|
+
this.name = "ResourceNotFoundException";
|
|
248
|
+
this.$fault = "client";
|
|
249
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
250
|
+
this.resourceId = opts.resourceId;
|
|
251
|
+
this.resourceType = opts.resourceType;
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
255
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
256
|
+
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends RepostspaceServiceException {
|
|
257
|
+
/**
|
|
258
|
+
* @internal
|
|
259
|
+
*/
|
|
260
|
+
constructor(opts) {
|
|
261
|
+
super({
|
|
262
|
+
name: "ServiceQuotaExceededException",
|
|
263
|
+
$fault: "client",
|
|
264
|
+
...opts
|
|
265
|
+
});
|
|
266
|
+
this.name = "ServiceQuotaExceededException";
|
|
267
|
+
this.$fault = "client";
|
|
268
|
+
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
269
|
+
this.resourceId = opts.resourceId;
|
|
270
|
+
this.resourceType = opts.resourceType;
|
|
271
|
+
this.serviceCode = opts.serviceCode;
|
|
272
|
+
this.quotaCode = opts.quotaCode;
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
276
|
+
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
277
|
+
var _ThrottlingException = class _ThrottlingException extends RepostspaceServiceException {
|
|
278
|
+
/**
|
|
279
|
+
* @internal
|
|
280
|
+
*/
|
|
281
|
+
constructor(opts) {
|
|
282
|
+
super({
|
|
283
|
+
name: "ThrottlingException",
|
|
284
|
+
$fault: "client",
|
|
285
|
+
...opts
|
|
286
|
+
});
|
|
287
|
+
this.name = "ThrottlingException";
|
|
288
|
+
this.$fault = "client";
|
|
289
|
+
this.$retryable = {
|
|
290
|
+
throttling: true
|
|
291
|
+
};
|
|
292
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
293
|
+
this.serviceCode = opts.serviceCode;
|
|
294
|
+
this.quotaCode = opts.quotaCode;
|
|
295
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
__name(_ThrottlingException, "ThrottlingException");
|
|
299
|
+
var ThrottlingException = _ThrottlingException;
|
|
300
|
+
var ValidationExceptionReason = {
|
|
301
|
+
CANNOT_PARSE: "cannotParse",
|
|
302
|
+
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
303
|
+
OTHER: "other",
|
|
304
|
+
UNKNOWN_OPERATION: "unknownOperation"
|
|
305
|
+
};
|
|
306
|
+
var _ValidationException = class _ValidationException extends RepostspaceServiceException {
|
|
307
|
+
/**
|
|
308
|
+
* @internal
|
|
309
|
+
*/
|
|
310
|
+
constructor(opts) {
|
|
311
|
+
super({
|
|
312
|
+
name: "ValidationException",
|
|
313
|
+
$fault: "client",
|
|
314
|
+
...opts
|
|
315
|
+
});
|
|
316
|
+
this.name = "ValidationException";
|
|
317
|
+
this.$fault = "client";
|
|
318
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
319
|
+
this.reason = opts.reason;
|
|
320
|
+
this.fieldList = opts.fieldList;
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
__name(_ValidationException, "ValidationException");
|
|
324
|
+
var ValidationException = _ValidationException;
|
|
325
|
+
var VanityDomainStatus = {
|
|
326
|
+
APPROVED: "APPROVED",
|
|
327
|
+
PENDING: "PENDING",
|
|
328
|
+
UNAPPROVED: "UNAPPROVED"
|
|
329
|
+
};
|
|
330
|
+
var CreateSpaceInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
331
|
+
...obj,
|
|
332
|
+
...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
|
|
333
|
+
...obj.description && { description: import_smithy_client.SENSITIVE_STRING },
|
|
334
|
+
...obj.tags && { tags: import_smithy_client.SENSITIVE_STRING }
|
|
335
|
+
}), "CreateSpaceInputFilterSensitiveLog");
|
|
336
|
+
var GetSpaceOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
337
|
+
...obj,
|
|
338
|
+
...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
|
|
339
|
+
...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
|
|
340
|
+
}), "GetSpaceOutputFilterSensitiveLog");
|
|
341
|
+
var SpaceDataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
342
|
+
...obj,
|
|
343
|
+
...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
|
|
344
|
+
...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
|
|
345
|
+
}), "SpaceDataFilterSensitiveLog");
|
|
346
|
+
var ListSpacesOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
347
|
+
...obj,
|
|
348
|
+
...obj.spaces && { spaces: obj.spaces.map((item) => SpaceDataFilterSensitiveLog(item)) }
|
|
349
|
+
}), "ListSpacesOutputFilterSensitiveLog");
|
|
350
|
+
var ListTagsForResourceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
351
|
+
...obj,
|
|
352
|
+
...obj.tags && { tags: import_smithy_client.SENSITIVE_STRING }
|
|
353
|
+
}), "ListTagsForResourceResponseFilterSensitiveLog");
|
|
354
|
+
var SendInvitesInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
355
|
+
...obj,
|
|
356
|
+
...obj.title && { title: import_smithy_client.SENSITIVE_STRING },
|
|
357
|
+
...obj.body && { body: import_smithy_client.SENSITIVE_STRING }
|
|
358
|
+
}), "SendInvitesInputFilterSensitiveLog");
|
|
359
|
+
var TagResourceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
360
|
+
...obj,
|
|
361
|
+
...obj.tags && { tags: import_smithy_client.SENSITIVE_STRING }
|
|
362
|
+
}), "TagResourceRequestFilterSensitiveLog");
|
|
363
|
+
var UpdateSpaceInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
364
|
+
...obj,
|
|
365
|
+
...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
|
|
366
|
+
}), "UpdateSpaceInputFilterSensitiveLog");
|
|
367
|
+
|
|
368
|
+
// src/protocols/Aws_restJson1.ts
|
|
369
|
+
var import_core = require("@smithy/core");
|
|
370
|
+
|
|
371
|
+
var se_CreateSpaceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
372
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
373
|
+
const headers = {
|
|
374
|
+
"content-type": "application/json"
|
|
375
|
+
};
|
|
376
|
+
b.bp("/spaces");
|
|
377
|
+
let body;
|
|
378
|
+
body = JSON.stringify(
|
|
379
|
+
(0, import_smithy_client.take)(input, {
|
|
380
|
+
description: [],
|
|
381
|
+
name: [],
|
|
382
|
+
roleArn: [],
|
|
383
|
+
subdomain: [],
|
|
384
|
+
tags: (_) => (0, import_smithy_client._json)(_),
|
|
385
|
+
tier: [],
|
|
386
|
+
userKMSKey: []
|
|
387
|
+
})
|
|
388
|
+
);
|
|
389
|
+
b.m("POST").h(headers).b(body);
|
|
390
|
+
return b.build();
|
|
391
|
+
}, "se_CreateSpaceCommand");
|
|
392
|
+
var se_DeleteSpaceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
393
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
394
|
+
const headers = {};
|
|
395
|
+
b.bp("/spaces/{spaceId}");
|
|
396
|
+
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
397
|
+
let body;
|
|
398
|
+
b.m("DELETE").h(headers).b(body);
|
|
399
|
+
return b.build();
|
|
400
|
+
}, "se_DeleteSpaceCommand");
|
|
401
|
+
var se_DeregisterAdminCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
402
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
403
|
+
const headers = {};
|
|
404
|
+
b.bp("/spaces/{spaceId}/admins/{adminId}");
|
|
405
|
+
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
406
|
+
b.p("adminId", () => input.adminId, "{adminId}", false);
|
|
407
|
+
let body;
|
|
408
|
+
b.m("DELETE").h(headers).b(body);
|
|
409
|
+
return b.build();
|
|
410
|
+
}, "se_DeregisterAdminCommand");
|
|
411
|
+
var se_GetSpaceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
412
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
413
|
+
const headers = {};
|
|
414
|
+
b.bp("/spaces/{spaceId}");
|
|
415
|
+
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
416
|
+
let body;
|
|
417
|
+
b.m("GET").h(headers).b(body);
|
|
418
|
+
return b.build();
|
|
419
|
+
}, "se_GetSpaceCommand");
|
|
420
|
+
var se_ListSpacesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
421
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
422
|
+
const headers = {};
|
|
423
|
+
b.bp("/spaces");
|
|
424
|
+
const query = (0, import_smithy_client.map)({
|
|
425
|
+
[_nT]: [, input[_nT]],
|
|
426
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
427
|
+
});
|
|
428
|
+
let body;
|
|
429
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
430
|
+
return b.build();
|
|
431
|
+
}, "se_ListSpacesCommand");
|
|
432
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
433
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
434
|
+
const headers = {};
|
|
435
|
+
b.bp("/tags/{resourceArn}");
|
|
436
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
437
|
+
let body;
|
|
438
|
+
b.m("GET").h(headers).b(body);
|
|
439
|
+
return b.build();
|
|
440
|
+
}, "se_ListTagsForResourceCommand");
|
|
441
|
+
var se_RegisterAdminCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
442
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
443
|
+
const headers = {};
|
|
444
|
+
b.bp("/spaces/{spaceId}/admins/{adminId}");
|
|
445
|
+
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
446
|
+
b.p("adminId", () => input.adminId, "{adminId}", false);
|
|
447
|
+
let body;
|
|
448
|
+
b.m("POST").h(headers).b(body);
|
|
449
|
+
return b.build();
|
|
450
|
+
}, "se_RegisterAdminCommand");
|
|
451
|
+
var se_SendInvitesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
452
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
453
|
+
const headers = {
|
|
454
|
+
"content-type": "application/json"
|
|
455
|
+
};
|
|
456
|
+
b.bp("/spaces/{spaceId}/invite");
|
|
457
|
+
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
458
|
+
let body;
|
|
459
|
+
body = JSON.stringify(
|
|
460
|
+
(0, import_smithy_client.take)(input, {
|
|
461
|
+
accessorIds: (_) => (0, import_smithy_client._json)(_),
|
|
462
|
+
body: [],
|
|
463
|
+
title: []
|
|
464
|
+
})
|
|
465
|
+
);
|
|
466
|
+
b.m("POST").h(headers).b(body);
|
|
467
|
+
return b.build();
|
|
468
|
+
}, "se_SendInvitesCommand");
|
|
469
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
470
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
471
|
+
const headers = {
|
|
472
|
+
"content-type": "application/json"
|
|
473
|
+
};
|
|
474
|
+
b.bp("/tags/{resourceArn}");
|
|
475
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
476
|
+
let body;
|
|
477
|
+
body = JSON.stringify(
|
|
478
|
+
(0, import_smithy_client.take)(input, {
|
|
479
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
480
|
+
})
|
|
481
|
+
);
|
|
482
|
+
b.m("POST").h(headers).b(body);
|
|
483
|
+
return b.build();
|
|
484
|
+
}, "se_TagResourceCommand");
|
|
485
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
486
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
487
|
+
const headers = {};
|
|
488
|
+
b.bp("/tags/{resourceArn}");
|
|
489
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
490
|
+
const query = (0, import_smithy_client.map)({
|
|
491
|
+
[_tK]: [
|
|
492
|
+
(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
493
|
+
() => (input[_tK] || []).map((_entry) => _entry)
|
|
494
|
+
]
|
|
495
|
+
});
|
|
496
|
+
let body;
|
|
497
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
498
|
+
return b.build();
|
|
499
|
+
}, "se_UntagResourceCommand");
|
|
500
|
+
var se_UpdateSpaceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
501
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
502
|
+
const headers = {
|
|
503
|
+
"content-type": "application/json"
|
|
504
|
+
};
|
|
505
|
+
b.bp("/spaces/{spaceId}");
|
|
506
|
+
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
507
|
+
let body;
|
|
508
|
+
body = JSON.stringify(
|
|
509
|
+
(0, import_smithy_client.take)(input, {
|
|
510
|
+
description: [],
|
|
511
|
+
roleArn: [],
|
|
512
|
+
tier: []
|
|
513
|
+
})
|
|
514
|
+
);
|
|
515
|
+
b.m("PUT").h(headers).b(body);
|
|
516
|
+
return b.build();
|
|
517
|
+
}, "se_UpdateSpaceCommand");
|
|
518
|
+
var de_CreateSpaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
519
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
520
|
+
return de_CreateSpaceCommandError(output, context);
|
|
521
|
+
}
|
|
522
|
+
const contents = (0, import_smithy_client.map)({
|
|
523
|
+
$metadata: deserializeMetadata(output)
|
|
524
|
+
});
|
|
525
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
526
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
527
|
+
spaceId: import_smithy_client.expectString
|
|
528
|
+
});
|
|
529
|
+
Object.assign(contents, doc);
|
|
530
|
+
return contents;
|
|
531
|
+
}, "de_CreateSpaceCommand");
|
|
532
|
+
var de_CreateSpaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
533
|
+
const parsedOutput = {
|
|
534
|
+
...output,
|
|
535
|
+
body: await parseErrorBody(output.body, context)
|
|
536
|
+
};
|
|
537
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
538
|
+
switch (errorCode) {
|
|
539
|
+
case "AccessDeniedException":
|
|
540
|
+
case "com.amazonaws.repostspace#AccessDeniedException":
|
|
541
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
542
|
+
case "ConflictException":
|
|
543
|
+
case "com.amazonaws.repostspace#ConflictException":
|
|
544
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
545
|
+
case "InternalServerException":
|
|
546
|
+
case "com.amazonaws.repostspace#InternalServerException":
|
|
547
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
548
|
+
case "ResourceNotFoundException":
|
|
549
|
+
case "com.amazonaws.repostspace#ResourceNotFoundException":
|
|
550
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
551
|
+
case "ServiceQuotaExceededException":
|
|
552
|
+
case "com.amazonaws.repostspace#ServiceQuotaExceededException":
|
|
553
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
554
|
+
case "ThrottlingException":
|
|
555
|
+
case "com.amazonaws.repostspace#ThrottlingException":
|
|
556
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
557
|
+
case "ValidationException":
|
|
558
|
+
case "com.amazonaws.repostspace#ValidationException":
|
|
559
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
560
|
+
default:
|
|
561
|
+
const parsedBody = parsedOutput.body;
|
|
562
|
+
return throwDefaultError({
|
|
563
|
+
output,
|
|
564
|
+
parsedBody,
|
|
565
|
+
errorCode
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
}, "de_CreateSpaceCommandError");
|
|
569
|
+
var de_DeleteSpaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
570
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
571
|
+
return de_DeleteSpaceCommandError(output, context);
|
|
572
|
+
}
|
|
573
|
+
const contents = (0, import_smithy_client.map)({
|
|
574
|
+
$metadata: deserializeMetadata(output)
|
|
575
|
+
});
|
|
576
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
577
|
+
return contents;
|
|
578
|
+
}, "de_DeleteSpaceCommand");
|
|
579
|
+
var de_DeleteSpaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
580
|
+
const parsedOutput = {
|
|
581
|
+
...output,
|
|
582
|
+
body: await parseErrorBody(output.body, context)
|
|
583
|
+
};
|
|
584
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
585
|
+
switch (errorCode) {
|
|
586
|
+
case "AccessDeniedException":
|
|
587
|
+
case "com.amazonaws.repostspace#AccessDeniedException":
|
|
588
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
589
|
+
case "InternalServerException":
|
|
590
|
+
case "com.amazonaws.repostspace#InternalServerException":
|
|
591
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
592
|
+
case "ResourceNotFoundException":
|
|
593
|
+
case "com.amazonaws.repostspace#ResourceNotFoundException":
|
|
594
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
595
|
+
case "ThrottlingException":
|
|
596
|
+
case "com.amazonaws.repostspace#ThrottlingException":
|
|
597
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
598
|
+
case "ValidationException":
|
|
599
|
+
case "com.amazonaws.repostspace#ValidationException":
|
|
600
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
601
|
+
default:
|
|
602
|
+
const parsedBody = parsedOutput.body;
|
|
603
|
+
return throwDefaultError({
|
|
604
|
+
output,
|
|
605
|
+
parsedBody,
|
|
606
|
+
errorCode
|
|
607
|
+
});
|
|
608
|
+
}
|
|
609
|
+
}, "de_DeleteSpaceCommandError");
|
|
610
|
+
var de_DeregisterAdminCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
611
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
612
|
+
return de_DeregisterAdminCommandError(output, context);
|
|
613
|
+
}
|
|
614
|
+
const contents = (0, import_smithy_client.map)({
|
|
615
|
+
$metadata: deserializeMetadata(output)
|
|
616
|
+
});
|
|
617
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
618
|
+
return contents;
|
|
619
|
+
}, "de_DeregisterAdminCommand");
|
|
620
|
+
var de_DeregisterAdminCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
621
|
+
const parsedOutput = {
|
|
622
|
+
...output,
|
|
623
|
+
body: await parseErrorBody(output.body, context)
|
|
624
|
+
};
|
|
625
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
626
|
+
switch (errorCode) {
|
|
627
|
+
case "AccessDeniedException":
|
|
628
|
+
case "com.amazonaws.repostspace#AccessDeniedException":
|
|
629
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
630
|
+
case "InternalServerException":
|
|
631
|
+
case "com.amazonaws.repostspace#InternalServerException":
|
|
632
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
633
|
+
case "ResourceNotFoundException":
|
|
634
|
+
case "com.amazonaws.repostspace#ResourceNotFoundException":
|
|
635
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
636
|
+
case "ThrottlingException":
|
|
637
|
+
case "com.amazonaws.repostspace#ThrottlingException":
|
|
638
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
639
|
+
case "ValidationException":
|
|
640
|
+
case "com.amazonaws.repostspace#ValidationException":
|
|
641
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
642
|
+
default:
|
|
643
|
+
const parsedBody = parsedOutput.body;
|
|
644
|
+
return throwDefaultError({
|
|
645
|
+
output,
|
|
646
|
+
parsedBody,
|
|
647
|
+
errorCode
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
}, "de_DeregisterAdminCommandError");
|
|
651
|
+
var de_GetSpaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
652
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
653
|
+
return de_GetSpaceCommandError(output, context);
|
|
654
|
+
}
|
|
655
|
+
const contents = (0, import_smithy_client.map)({
|
|
656
|
+
$metadata: deserializeMetadata(output)
|
|
657
|
+
});
|
|
658
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
659
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
660
|
+
arn: import_smithy_client.expectString,
|
|
661
|
+
clientId: import_smithy_client.expectString,
|
|
662
|
+
configurationStatus: import_smithy_client.expectString,
|
|
663
|
+
contentSize: import_smithy_client.expectLong,
|
|
664
|
+
createDateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
665
|
+
customerRoleArn: import_smithy_client.expectString,
|
|
666
|
+
deleteDateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
667
|
+
description: import_smithy_client.expectString,
|
|
668
|
+
groupAdmins: import_smithy_client._json,
|
|
669
|
+
name: import_smithy_client.expectString,
|
|
670
|
+
randomDomain: import_smithy_client.expectString,
|
|
671
|
+
spaceId: import_smithy_client.expectString,
|
|
672
|
+
status: import_smithy_client.expectString,
|
|
673
|
+
storageLimit: import_smithy_client.expectLong,
|
|
674
|
+
tier: import_smithy_client.expectString,
|
|
675
|
+
userAdmins: import_smithy_client._json,
|
|
676
|
+
userCount: import_smithy_client.expectInt32,
|
|
677
|
+
userKMSKey: import_smithy_client.expectString,
|
|
678
|
+
vanityDomain: import_smithy_client.expectString,
|
|
679
|
+
vanityDomainStatus: import_smithy_client.expectString
|
|
680
|
+
});
|
|
681
|
+
Object.assign(contents, doc);
|
|
682
|
+
return contents;
|
|
683
|
+
}, "de_GetSpaceCommand");
|
|
684
|
+
var de_GetSpaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
685
|
+
const parsedOutput = {
|
|
686
|
+
...output,
|
|
687
|
+
body: await parseErrorBody(output.body, context)
|
|
688
|
+
};
|
|
689
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
690
|
+
switch (errorCode) {
|
|
691
|
+
case "AccessDeniedException":
|
|
692
|
+
case "com.amazonaws.repostspace#AccessDeniedException":
|
|
693
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
694
|
+
case "InternalServerException":
|
|
695
|
+
case "com.amazonaws.repostspace#InternalServerException":
|
|
696
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
697
|
+
case "ResourceNotFoundException":
|
|
698
|
+
case "com.amazonaws.repostspace#ResourceNotFoundException":
|
|
699
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
700
|
+
case "ThrottlingException":
|
|
701
|
+
case "com.amazonaws.repostspace#ThrottlingException":
|
|
702
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
703
|
+
case "ValidationException":
|
|
704
|
+
case "com.amazonaws.repostspace#ValidationException":
|
|
705
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
706
|
+
default:
|
|
707
|
+
const parsedBody = parsedOutput.body;
|
|
708
|
+
return throwDefaultError({
|
|
709
|
+
output,
|
|
710
|
+
parsedBody,
|
|
711
|
+
errorCode
|
|
712
|
+
});
|
|
713
|
+
}
|
|
714
|
+
}, "de_GetSpaceCommandError");
|
|
715
|
+
var de_ListSpacesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
716
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
717
|
+
return de_ListSpacesCommandError(output, context);
|
|
718
|
+
}
|
|
719
|
+
const contents = (0, import_smithy_client.map)({
|
|
720
|
+
$metadata: deserializeMetadata(output)
|
|
721
|
+
});
|
|
722
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
723
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
724
|
+
nextToken: import_smithy_client.expectString,
|
|
725
|
+
spaces: (_) => de_SpacesList(_, context)
|
|
726
|
+
});
|
|
727
|
+
Object.assign(contents, doc);
|
|
728
|
+
return contents;
|
|
729
|
+
}, "de_ListSpacesCommand");
|
|
730
|
+
var de_ListSpacesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
731
|
+
const parsedOutput = {
|
|
732
|
+
...output,
|
|
733
|
+
body: await parseErrorBody(output.body, context)
|
|
734
|
+
};
|
|
735
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
736
|
+
switch (errorCode) {
|
|
737
|
+
case "AccessDeniedException":
|
|
738
|
+
case "com.amazonaws.repostspace#AccessDeniedException":
|
|
739
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
740
|
+
case "InternalServerException":
|
|
741
|
+
case "com.amazonaws.repostspace#InternalServerException":
|
|
742
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
743
|
+
case "ThrottlingException":
|
|
744
|
+
case "com.amazonaws.repostspace#ThrottlingException":
|
|
745
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
746
|
+
case "ValidationException":
|
|
747
|
+
case "com.amazonaws.repostspace#ValidationException":
|
|
748
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
749
|
+
default:
|
|
750
|
+
const parsedBody = parsedOutput.body;
|
|
751
|
+
return throwDefaultError({
|
|
752
|
+
output,
|
|
753
|
+
parsedBody,
|
|
754
|
+
errorCode
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
}, "de_ListSpacesCommandError");
|
|
758
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
759
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
760
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
761
|
+
}
|
|
762
|
+
const contents = (0, import_smithy_client.map)({
|
|
763
|
+
$metadata: deserializeMetadata(output)
|
|
764
|
+
});
|
|
765
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
766
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
767
|
+
tags: import_smithy_client._json
|
|
768
|
+
});
|
|
769
|
+
Object.assign(contents, doc);
|
|
770
|
+
return contents;
|
|
771
|
+
}, "de_ListTagsForResourceCommand");
|
|
772
|
+
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
773
|
+
const parsedOutput = {
|
|
774
|
+
...output,
|
|
775
|
+
body: await parseErrorBody(output.body, context)
|
|
776
|
+
};
|
|
777
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
778
|
+
switch (errorCode) {
|
|
779
|
+
case "AccessDeniedException":
|
|
780
|
+
case "com.amazonaws.repostspace#AccessDeniedException":
|
|
781
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
782
|
+
case "InternalServerException":
|
|
783
|
+
case "com.amazonaws.repostspace#InternalServerException":
|
|
784
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
785
|
+
case "ResourceNotFoundException":
|
|
786
|
+
case "com.amazonaws.repostspace#ResourceNotFoundException":
|
|
787
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
788
|
+
case "ThrottlingException":
|
|
789
|
+
case "com.amazonaws.repostspace#ThrottlingException":
|
|
790
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
791
|
+
case "ValidationException":
|
|
792
|
+
case "com.amazonaws.repostspace#ValidationException":
|
|
793
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
794
|
+
default:
|
|
795
|
+
const parsedBody = parsedOutput.body;
|
|
796
|
+
return throwDefaultError({
|
|
797
|
+
output,
|
|
798
|
+
parsedBody,
|
|
799
|
+
errorCode
|
|
800
|
+
});
|
|
801
|
+
}
|
|
802
|
+
}, "de_ListTagsForResourceCommandError");
|
|
803
|
+
var de_RegisterAdminCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
804
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
805
|
+
return de_RegisterAdminCommandError(output, context);
|
|
806
|
+
}
|
|
807
|
+
const contents = (0, import_smithy_client.map)({
|
|
808
|
+
$metadata: deserializeMetadata(output)
|
|
809
|
+
});
|
|
810
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
811
|
+
return contents;
|
|
812
|
+
}, "de_RegisterAdminCommand");
|
|
813
|
+
var de_RegisterAdminCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
814
|
+
const parsedOutput = {
|
|
815
|
+
...output,
|
|
816
|
+
body: await parseErrorBody(output.body, context)
|
|
817
|
+
};
|
|
818
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
819
|
+
switch (errorCode) {
|
|
820
|
+
case "AccessDeniedException":
|
|
821
|
+
case "com.amazonaws.repostspace#AccessDeniedException":
|
|
822
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
823
|
+
case "InternalServerException":
|
|
824
|
+
case "com.amazonaws.repostspace#InternalServerException":
|
|
825
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
826
|
+
case "ResourceNotFoundException":
|
|
827
|
+
case "com.amazonaws.repostspace#ResourceNotFoundException":
|
|
828
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
829
|
+
case "ThrottlingException":
|
|
830
|
+
case "com.amazonaws.repostspace#ThrottlingException":
|
|
831
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
832
|
+
case "ValidationException":
|
|
833
|
+
case "com.amazonaws.repostspace#ValidationException":
|
|
834
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
835
|
+
default:
|
|
836
|
+
const parsedBody = parsedOutput.body;
|
|
837
|
+
return throwDefaultError({
|
|
838
|
+
output,
|
|
839
|
+
parsedBody,
|
|
840
|
+
errorCode
|
|
841
|
+
});
|
|
842
|
+
}
|
|
843
|
+
}, "de_RegisterAdminCommandError");
|
|
844
|
+
var de_SendInvitesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
845
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
846
|
+
return de_SendInvitesCommandError(output, context);
|
|
847
|
+
}
|
|
848
|
+
const contents = (0, import_smithy_client.map)({
|
|
849
|
+
$metadata: deserializeMetadata(output)
|
|
850
|
+
});
|
|
851
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
852
|
+
return contents;
|
|
853
|
+
}, "de_SendInvitesCommand");
|
|
854
|
+
var de_SendInvitesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
855
|
+
const parsedOutput = {
|
|
856
|
+
...output,
|
|
857
|
+
body: await parseErrorBody(output.body, context)
|
|
858
|
+
};
|
|
859
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
860
|
+
switch (errorCode) {
|
|
861
|
+
case "AccessDeniedException":
|
|
862
|
+
case "com.amazonaws.repostspace#AccessDeniedException":
|
|
863
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
864
|
+
case "InternalServerException":
|
|
865
|
+
case "com.amazonaws.repostspace#InternalServerException":
|
|
866
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
867
|
+
case "ResourceNotFoundException":
|
|
868
|
+
case "com.amazonaws.repostspace#ResourceNotFoundException":
|
|
869
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
870
|
+
case "ThrottlingException":
|
|
871
|
+
case "com.amazonaws.repostspace#ThrottlingException":
|
|
872
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
873
|
+
case "ValidationException":
|
|
874
|
+
case "com.amazonaws.repostspace#ValidationException":
|
|
875
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
876
|
+
default:
|
|
877
|
+
const parsedBody = parsedOutput.body;
|
|
878
|
+
return throwDefaultError({
|
|
879
|
+
output,
|
|
880
|
+
parsedBody,
|
|
881
|
+
errorCode
|
|
882
|
+
});
|
|
883
|
+
}
|
|
884
|
+
}, "de_SendInvitesCommandError");
|
|
885
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
886
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
887
|
+
return de_TagResourceCommandError(output, context);
|
|
888
|
+
}
|
|
889
|
+
const contents = (0, import_smithy_client.map)({
|
|
890
|
+
$metadata: deserializeMetadata(output)
|
|
891
|
+
});
|
|
892
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
893
|
+
return contents;
|
|
894
|
+
}, "de_TagResourceCommand");
|
|
895
|
+
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
896
|
+
const parsedOutput = {
|
|
897
|
+
...output,
|
|
898
|
+
body: await parseErrorBody(output.body, context)
|
|
899
|
+
};
|
|
900
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
901
|
+
switch (errorCode) {
|
|
902
|
+
case "AccessDeniedException":
|
|
903
|
+
case "com.amazonaws.repostspace#AccessDeniedException":
|
|
904
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
905
|
+
case "InternalServerException":
|
|
906
|
+
case "com.amazonaws.repostspace#InternalServerException":
|
|
907
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
908
|
+
case "ResourceNotFoundException":
|
|
909
|
+
case "com.amazonaws.repostspace#ResourceNotFoundException":
|
|
910
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
911
|
+
case "ThrottlingException":
|
|
912
|
+
case "com.amazonaws.repostspace#ThrottlingException":
|
|
913
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
914
|
+
case "ValidationException":
|
|
915
|
+
case "com.amazonaws.repostspace#ValidationException":
|
|
916
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
917
|
+
default:
|
|
918
|
+
const parsedBody = parsedOutput.body;
|
|
919
|
+
return throwDefaultError({
|
|
920
|
+
output,
|
|
921
|
+
parsedBody,
|
|
922
|
+
errorCode
|
|
923
|
+
});
|
|
924
|
+
}
|
|
925
|
+
}, "de_TagResourceCommandError");
|
|
926
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
927
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
928
|
+
return de_UntagResourceCommandError(output, context);
|
|
929
|
+
}
|
|
930
|
+
const contents = (0, import_smithy_client.map)({
|
|
931
|
+
$metadata: deserializeMetadata(output)
|
|
932
|
+
});
|
|
933
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
934
|
+
return contents;
|
|
935
|
+
}, "de_UntagResourceCommand");
|
|
936
|
+
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
937
|
+
const parsedOutput = {
|
|
938
|
+
...output,
|
|
939
|
+
body: await parseErrorBody(output.body, context)
|
|
940
|
+
};
|
|
941
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
942
|
+
switch (errorCode) {
|
|
943
|
+
case "AccessDeniedException":
|
|
944
|
+
case "com.amazonaws.repostspace#AccessDeniedException":
|
|
945
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
946
|
+
case "InternalServerException":
|
|
947
|
+
case "com.amazonaws.repostspace#InternalServerException":
|
|
948
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
949
|
+
case "ResourceNotFoundException":
|
|
950
|
+
case "com.amazonaws.repostspace#ResourceNotFoundException":
|
|
951
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
952
|
+
case "ThrottlingException":
|
|
953
|
+
case "com.amazonaws.repostspace#ThrottlingException":
|
|
954
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
955
|
+
case "ValidationException":
|
|
956
|
+
case "com.amazonaws.repostspace#ValidationException":
|
|
957
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
958
|
+
default:
|
|
959
|
+
const parsedBody = parsedOutput.body;
|
|
960
|
+
return throwDefaultError({
|
|
961
|
+
output,
|
|
962
|
+
parsedBody,
|
|
963
|
+
errorCode
|
|
964
|
+
});
|
|
965
|
+
}
|
|
966
|
+
}, "de_UntagResourceCommandError");
|
|
967
|
+
var de_UpdateSpaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
968
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
969
|
+
return de_UpdateSpaceCommandError(output, context);
|
|
970
|
+
}
|
|
971
|
+
const contents = (0, import_smithy_client.map)({
|
|
972
|
+
$metadata: deserializeMetadata(output)
|
|
973
|
+
});
|
|
974
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
975
|
+
return contents;
|
|
976
|
+
}, "de_UpdateSpaceCommand");
|
|
977
|
+
var de_UpdateSpaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
978
|
+
const parsedOutput = {
|
|
979
|
+
...output,
|
|
980
|
+
body: await parseErrorBody(output.body, context)
|
|
981
|
+
};
|
|
982
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
983
|
+
switch (errorCode) {
|
|
984
|
+
case "AccessDeniedException":
|
|
985
|
+
case "com.amazonaws.repostspace#AccessDeniedException":
|
|
986
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
987
|
+
case "ConflictException":
|
|
988
|
+
case "com.amazonaws.repostspace#ConflictException":
|
|
989
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
990
|
+
case "InternalServerException":
|
|
991
|
+
case "com.amazonaws.repostspace#InternalServerException":
|
|
992
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
993
|
+
case "ResourceNotFoundException":
|
|
994
|
+
case "com.amazonaws.repostspace#ResourceNotFoundException":
|
|
995
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
996
|
+
case "ThrottlingException":
|
|
997
|
+
case "com.amazonaws.repostspace#ThrottlingException":
|
|
998
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
999
|
+
case "ValidationException":
|
|
1000
|
+
case "com.amazonaws.repostspace#ValidationException":
|
|
1001
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1002
|
+
default:
|
|
1003
|
+
const parsedBody = parsedOutput.body;
|
|
1004
|
+
return throwDefaultError({
|
|
1005
|
+
output,
|
|
1006
|
+
parsedBody,
|
|
1007
|
+
errorCode
|
|
1008
|
+
});
|
|
1009
|
+
}
|
|
1010
|
+
}, "de_UpdateSpaceCommandError");
|
|
1011
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(RepostspaceServiceException);
|
|
1012
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1013
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1014
|
+
const data = parsedOutput.body;
|
|
1015
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1016
|
+
message: import_smithy_client.expectString
|
|
1017
|
+
});
|
|
1018
|
+
Object.assign(contents, doc);
|
|
1019
|
+
const exception = new AccessDeniedException({
|
|
1020
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1021
|
+
...contents
|
|
1022
|
+
});
|
|
1023
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1024
|
+
}, "de_AccessDeniedExceptionRes");
|
|
1025
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1026
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1027
|
+
const data = parsedOutput.body;
|
|
1028
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1029
|
+
message: import_smithy_client.expectString,
|
|
1030
|
+
resourceId: import_smithy_client.expectString,
|
|
1031
|
+
resourceType: import_smithy_client.expectString
|
|
1032
|
+
});
|
|
1033
|
+
Object.assign(contents, doc);
|
|
1034
|
+
const exception = new ConflictException({
|
|
1035
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1036
|
+
...contents
|
|
1037
|
+
});
|
|
1038
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1039
|
+
}, "de_ConflictExceptionRes");
|
|
1040
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1041
|
+
const contents = (0, import_smithy_client.map)({
|
|
1042
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
|
|
1043
|
+
});
|
|
1044
|
+
const data = parsedOutput.body;
|
|
1045
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1046
|
+
message: import_smithy_client.expectString
|
|
1047
|
+
});
|
|
1048
|
+
Object.assign(contents, doc);
|
|
1049
|
+
const exception = new InternalServerException({
|
|
1050
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1051
|
+
...contents
|
|
1052
|
+
});
|
|
1053
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1054
|
+
}, "de_InternalServerExceptionRes");
|
|
1055
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1056
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1057
|
+
const data = parsedOutput.body;
|
|
1058
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1059
|
+
message: import_smithy_client.expectString,
|
|
1060
|
+
resourceId: import_smithy_client.expectString,
|
|
1061
|
+
resourceType: import_smithy_client.expectString
|
|
1062
|
+
});
|
|
1063
|
+
Object.assign(contents, doc);
|
|
1064
|
+
const exception = new ResourceNotFoundException({
|
|
1065
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1066
|
+
...contents
|
|
1067
|
+
});
|
|
1068
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1069
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
1070
|
+
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1071
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1072
|
+
const data = parsedOutput.body;
|
|
1073
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1074
|
+
message: import_smithy_client.expectString,
|
|
1075
|
+
quotaCode: import_smithy_client.expectString,
|
|
1076
|
+
resourceId: import_smithy_client.expectString,
|
|
1077
|
+
resourceType: import_smithy_client.expectString,
|
|
1078
|
+
serviceCode: import_smithy_client.expectString
|
|
1079
|
+
});
|
|
1080
|
+
Object.assign(contents, doc);
|
|
1081
|
+
const exception = new ServiceQuotaExceededException({
|
|
1082
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1083
|
+
...contents
|
|
1084
|
+
});
|
|
1085
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1086
|
+
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1087
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1088
|
+
const contents = (0, import_smithy_client.map)({
|
|
1089
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
|
|
1090
|
+
});
|
|
1091
|
+
const data = parsedOutput.body;
|
|
1092
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1093
|
+
message: import_smithy_client.expectString,
|
|
1094
|
+
quotaCode: import_smithy_client.expectString,
|
|
1095
|
+
serviceCode: import_smithy_client.expectString
|
|
1096
|
+
});
|
|
1097
|
+
Object.assign(contents, doc);
|
|
1098
|
+
const exception = new ThrottlingException({
|
|
1099
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1100
|
+
...contents
|
|
1101
|
+
});
|
|
1102
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1103
|
+
}, "de_ThrottlingExceptionRes");
|
|
1104
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1105
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1106
|
+
const data = parsedOutput.body;
|
|
1107
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1108
|
+
fieldList: import_smithy_client._json,
|
|
1109
|
+
message: import_smithy_client.expectString,
|
|
1110
|
+
reason: import_smithy_client.expectString
|
|
1111
|
+
});
|
|
1112
|
+
Object.assign(contents, doc);
|
|
1113
|
+
const exception = new ValidationException({
|
|
1114
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1115
|
+
...contents
|
|
1116
|
+
});
|
|
1117
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1118
|
+
}, "de_ValidationExceptionRes");
|
|
1119
|
+
var de_SpaceData = /* @__PURE__ */ __name((output, context) => {
|
|
1120
|
+
return (0, import_smithy_client.take)(output, {
|
|
1121
|
+
arn: import_smithy_client.expectString,
|
|
1122
|
+
configurationStatus: import_smithy_client.expectString,
|
|
1123
|
+
contentSize: import_smithy_client.expectLong,
|
|
1124
|
+
createDateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1125
|
+
deleteDateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1126
|
+
description: import_smithy_client.expectString,
|
|
1127
|
+
name: import_smithy_client.expectString,
|
|
1128
|
+
randomDomain: import_smithy_client.expectString,
|
|
1129
|
+
spaceId: import_smithy_client.expectString,
|
|
1130
|
+
status: import_smithy_client.expectString,
|
|
1131
|
+
storageLimit: import_smithy_client.expectLong,
|
|
1132
|
+
tier: import_smithy_client.expectString,
|
|
1133
|
+
userCount: import_smithy_client.expectInt32,
|
|
1134
|
+
userKMSKey: import_smithy_client.expectString,
|
|
1135
|
+
vanityDomain: import_smithy_client.expectString,
|
|
1136
|
+
vanityDomainStatus: import_smithy_client.expectString
|
|
1137
|
+
});
|
|
1138
|
+
}, "de_SpaceData");
|
|
1139
|
+
var de_SpacesList = /* @__PURE__ */ __name((output, context) => {
|
|
1140
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1141
|
+
return de_SpaceData(entry, context);
|
|
1142
|
+
});
|
|
1143
|
+
return retVal;
|
|
1144
|
+
}, "de_SpacesList");
|
|
1145
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1146
|
+
httpStatusCode: output.statusCode,
|
|
1147
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1148
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1149
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1150
|
+
}), "deserializeMetadata");
|
|
1151
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1152
|
+
var _mR = "maxResults";
|
|
1153
|
+
var _nT = "nextToken";
|
|
1154
|
+
var _rAS = "retryAfterSeconds";
|
|
1155
|
+
var _ra = "retry-after";
|
|
1156
|
+
var _tK = "tagKeys";
|
|
1157
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1158
|
+
if (encoded.length) {
|
|
1159
|
+
return JSON.parse(encoded);
|
|
1160
|
+
}
|
|
1161
|
+
return {};
|
|
1162
|
+
}), "parseBody");
|
|
1163
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1164
|
+
const value = await parseBody(errorBody, context);
|
|
1165
|
+
value.message = value.message ?? value.Message;
|
|
1166
|
+
return value;
|
|
1167
|
+
}, "parseErrorBody");
|
|
1168
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1169
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1170
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1171
|
+
let cleanValue = rawValue;
|
|
1172
|
+
if (typeof cleanValue === "number") {
|
|
1173
|
+
cleanValue = cleanValue.toString();
|
|
1174
|
+
}
|
|
1175
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1176
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1177
|
+
}
|
|
1178
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1179
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1180
|
+
}
|
|
1181
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1182
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1183
|
+
}
|
|
1184
|
+
return cleanValue;
|
|
1185
|
+
}, "sanitizeErrorCode");
|
|
1186
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1187
|
+
if (headerKey !== void 0) {
|
|
1188
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1189
|
+
}
|
|
1190
|
+
if (data.code !== void 0) {
|
|
1191
|
+
return sanitizeErrorCode(data.code);
|
|
1192
|
+
}
|
|
1193
|
+
if (data["__type"] !== void 0) {
|
|
1194
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1195
|
+
}
|
|
1196
|
+
}, "loadRestJsonErrorCode");
|
|
1197
|
+
|
|
1198
|
+
// src/commands/CreateSpaceCommand.ts
|
|
1199
|
+
var _CreateSpaceCommand = class _CreateSpaceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1200
|
+
...commonParams
|
|
1201
|
+
}).m(function(Command, cs, config, o) {
|
|
1202
|
+
return [
|
|
1203
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1204
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1205
|
+
];
|
|
1206
|
+
}).s("RepostSpace", "CreateSpace", {}).n("RepostspaceClient", "CreateSpaceCommand").f(CreateSpaceInputFilterSensitiveLog, void 0).ser(se_CreateSpaceCommand).de(de_CreateSpaceCommand).build() {
|
|
1207
|
+
};
|
|
1208
|
+
__name(_CreateSpaceCommand, "CreateSpaceCommand");
|
|
1209
|
+
var CreateSpaceCommand = _CreateSpaceCommand;
|
|
1210
|
+
|
|
1211
|
+
// src/commands/DeleteSpaceCommand.ts
|
|
1212
|
+
|
|
1213
|
+
|
|
1214
|
+
|
|
1215
|
+
|
|
1216
|
+
var _DeleteSpaceCommand = class _DeleteSpaceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1217
|
+
...commonParams
|
|
1218
|
+
}).m(function(Command, cs, config, o) {
|
|
1219
|
+
return [
|
|
1220
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1221
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1222
|
+
];
|
|
1223
|
+
}).s("RepostSpace", "DeleteSpace", {}).n("RepostspaceClient", "DeleteSpaceCommand").f(void 0, void 0).ser(se_DeleteSpaceCommand).de(de_DeleteSpaceCommand).build() {
|
|
1224
|
+
};
|
|
1225
|
+
__name(_DeleteSpaceCommand, "DeleteSpaceCommand");
|
|
1226
|
+
var DeleteSpaceCommand = _DeleteSpaceCommand;
|
|
1227
|
+
|
|
1228
|
+
// src/commands/DeregisterAdminCommand.ts
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
|
|
1232
|
+
|
|
1233
|
+
var _DeregisterAdminCommand = class _DeregisterAdminCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1234
|
+
...commonParams
|
|
1235
|
+
}).m(function(Command, cs, config, o) {
|
|
1236
|
+
return [
|
|
1237
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1238
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1239
|
+
];
|
|
1240
|
+
}).s("RepostSpace", "DeregisterAdmin", {}).n("RepostspaceClient", "DeregisterAdminCommand").f(void 0, void 0).ser(se_DeregisterAdminCommand).de(de_DeregisterAdminCommand).build() {
|
|
1241
|
+
};
|
|
1242
|
+
__name(_DeregisterAdminCommand, "DeregisterAdminCommand");
|
|
1243
|
+
var DeregisterAdminCommand = _DeregisterAdminCommand;
|
|
1244
|
+
|
|
1245
|
+
// src/commands/GetSpaceCommand.ts
|
|
1246
|
+
|
|
1247
|
+
|
|
1248
|
+
|
|
1249
|
+
|
|
1250
|
+
var _GetSpaceCommand = class _GetSpaceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1251
|
+
...commonParams
|
|
1252
|
+
}).m(function(Command, cs, config, o) {
|
|
1253
|
+
return [
|
|
1254
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1255
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1256
|
+
];
|
|
1257
|
+
}).s("RepostSpace", "GetSpace", {}).n("RepostspaceClient", "GetSpaceCommand").f(void 0, GetSpaceOutputFilterSensitiveLog).ser(se_GetSpaceCommand).de(de_GetSpaceCommand).build() {
|
|
1258
|
+
};
|
|
1259
|
+
__name(_GetSpaceCommand, "GetSpaceCommand");
|
|
1260
|
+
var GetSpaceCommand = _GetSpaceCommand;
|
|
1261
|
+
|
|
1262
|
+
// src/commands/ListSpacesCommand.ts
|
|
1263
|
+
|
|
1264
|
+
|
|
1265
|
+
|
|
1266
|
+
|
|
1267
|
+
var _ListSpacesCommand = class _ListSpacesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1268
|
+
...commonParams
|
|
1269
|
+
}).m(function(Command, cs, config, o) {
|
|
1270
|
+
return [
|
|
1271
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1272
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1273
|
+
];
|
|
1274
|
+
}).s("RepostSpace", "ListSpaces", {}).n("RepostspaceClient", "ListSpacesCommand").f(void 0, ListSpacesOutputFilterSensitiveLog).ser(se_ListSpacesCommand).de(de_ListSpacesCommand).build() {
|
|
1275
|
+
};
|
|
1276
|
+
__name(_ListSpacesCommand, "ListSpacesCommand");
|
|
1277
|
+
var ListSpacesCommand = _ListSpacesCommand;
|
|
1278
|
+
|
|
1279
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
1280
|
+
|
|
1281
|
+
|
|
1282
|
+
|
|
1283
|
+
|
|
1284
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1285
|
+
...commonParams
|
|
1286
|
+
}).m(function(Command, cs, config, o) {
|
|
1287
|
+
return [
|
|
1288
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1289
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1290
|
+
];
|
|
1291
|
+
}).s("RepostSpace", "ListTagsForResource", {}).n("RepostspaceClient", "ListTagsForResourceCommand").f(void 0, ListTagsForResourceResponseFilterSensitiveLog).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
1292
|
+
};
|
|
1293
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
1294
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
1295
|
+
|
|
1296
|
+
// src/commands/RegisterAdminCommand.ts
|
|
1297
|
+
|
|
1298
|
+
|
|
1299
|
+
|
|
1300
|
+
|
|
1301
|
+
var _RegisterAdminCommand = class _RegisterAdminCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1302
|
+
...commonParams
|
|
1303
|
+
}).m(function(Command, cs, config, o) {
|
|
1304
|
+
return [
|
|
1305
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1306
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1307
|
+
];
|
|
1308
|
+
}).s("RepostSpace", "RegisterAdmin", {}).n("RepostspaceClient", "RegisterAdminCommand").f(void 0, void 0).ser(se_RegisterAdminCommand).de(de_RegisterAdminCommand).build() {
|
|
1309
|
+
};
|
|
1310
|
+
__name(_RegisterAdminCommand, "RegisterAdminCommand");
|
|
1311
|
+
var RegisterAdminCommand = _RegisterAdminCommand;
|
|
1312
|
+
|
|
1313
|
+
// src/commands/SendInvitesCommand.ts
|
|
1314
|
+
|
|
1315
|
+
|
|
1316
|
+
|
|
1317
|
+
|
|
1318
|
+
var _SendInvitesCommand = class _SendInvitesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1319
|
+
...commonParams
|
|
1320
|
+
}).m(function(Command, cs, config, o) {
|
|
1321
|
+
return [
|
|
1322
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1323
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1324
|
+
];
|
|
1325
|
+
}).s("RepostSpace", "SendInvites", {}).n("RepostspaceClient", "SendInvitesCommand").f(SendInvitesInputFilterSensitiveLog, void 0).ser(se_SendInvitesCommand).de(de_SendInvitesCommand).build() {
|
|
1326
|
+
};
|
|
1327
|
+
__name(_SendInvitesCommand, "SendInvitesCommand");
|
|
1328
|
+
var SendInvitesCommand = _SendInvitesCommand;
|
|
1329
|
+
|
|
1330
|
+
// src/commands/TagResourceCommand.ts
|
|
1331
|
+
|
|
1332
|
+
|
|
1333
|
+
|
|
1334
|
+
|
|
1335
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1336
|
+
...commonParams
|
|
1337
|
+
}).m(function(Command, cs, config, o) {
|
|
1338
|
+
return [
|
|
1339
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1340
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1341
|
+
];
|
|
1342
|
+
}).s("RepostSpace", "TagResource", {}).n("RepostspaceClient", "TagResourceCommand").f(TagResourceRequestFilterSensitiveLog, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
1343
|
+
};
|
|
1344
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
1345
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
1346
|
+
|
|
1347
|
+
// src/commands/UntagResourceCommand.ts
|
|
1348
|
+
|
|
1349
|
+
|
|
1350
|
+
|
|
1351
|
+
|
|
1352
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1353
|
+
...commonParams
|
|
1354
|
+
}).m(function(Command, cs, config, o) {
|
|
1355
|
+
return [
|
|
1356
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1357
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1358
|
+
];
|
|
1359
|
+
}).s("RepostSpace", "UntagResource", {}).n("RepostspaceClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
1360
|
+
};
|
|
1361
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
1362
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
1363
|
+
|
|
1364
|
+
// src/commands/UpdateSpaceCommand.ts
|
|
1365
|
+
|
|
1366
|
+
|
|
1367
|
+
|
|
1368
|
+
|
|
1369
|
+
var _UpdateSpaceCommand = class _UpdateSpaceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1370
|
+
...commonParams
|
|
1371
|
+
}).m(function(Command, cs, config, o) {
|
|
1372
|
+
return [
|
|
1373
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1374
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1375
|
+
];
|
|
1376
|
+
}).s("RepostSpace", "UpdateSpace", {}).n("RepostspaceClient", "UpdateSpaceCommand").f(UpdateSpaceInputFilterSensitiveLog, void 0).ser(se_UpdateSpaceCommand).de(de_UpdateSpaceCommand).build() {
|
|
1377
|
+
};
|
|
1378
|
+
__name(_UpdateSpaceCommand, "UpdateSpaceCommand");
|
|
1379
|
+
var UpdateSpaceCommand = _UpdateSpaceCommand;
|
|
1380
|
+
|
|
1381
|
+
// src/Repostspace.ts
|
|
1382
|
+
var commands = {
|
|
1383
|
+
CreateSpaceCommand,
|
|
1384
|
+
DeleteSpaceCommand,
|
|
1385
|
+
DeregisterAdminCommand,
|
|
1386
|
+
GetSpaceCommand,
|
|
1387
|
+
ListSpacesCommand,
|
|
1388
|
+
ListTagsForResourceCommand,
|
|
1389
|
+
RegisterAdminCommand,
|
|
1390
|
+
SendInvitesCommand,
|
|
1391
|
+
TagResourceCommand,
|
|
1392
|
+
UntagResourceCommand,
|
|
1393
|
+
UpdateSpaceCommand
|
|
1394
|
+
};
|
|
1395
|
+
var _Repostspace = class _Repostspace extends RepostspaceClient {
|
|
1396
|
+
};
|
|
1397
|
+
__name(_Repostspace, "Repostspace");
|
|
1398
|
+
var Repostspace = _Repostspace;
|
|
1399
|
+
(0, import_smithy_client.createAggregatedClient)(commands, Repostspace);
|
|
1400
|
+
|
|
1401
|
+
// src/pagination/ListSpacesPaginator.ts
|
|
1402
|
+
|
|
1403
|
+
var paginateListSpaces = (0, import_core.createPaginator)(RepostspaceClient, ListSpacesCommand, "nextToken", "nextToken", "maxResults");
|
|
1404
|
+
|
|
1405
|
+
// src/index.ts
|
|
1406
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
1407
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1408
|
+
0 && (module.exports = {
|
|
1409
|
+
AccessDeniedException,
|
|
1410
|
+
ConfigurationStatus,
|
|
1411
|
+
ConflictException,
|
|
1412
|
+
CreateSpaceCommand,
|
|
1413
|
+
CreateSpaceInputFilterSensitiveLog,
|
|
1414
|
+
DeleteSpaceCommand,
|
|
1415
|
+
DeregisterAdminCommand,
|
|
1416
|
+
GetSpaceCommand,
|
|
1417
|
+
GetSpaceOutputFilterSensitiveLog,
|
|
1418
|
+
InternalServerException,
|
|
1419
|
+
ListSpacesCommand,
|
|
1420
|
+
ListSpacesOutputFilterSensitiveLog,
|
|
1421
|
+
ListTagsForResourceCommand,
|
|
1422
|
+
ListTagsForResourceResponseFilterSensitiveLog,
|
|
1423
|
+
RegisterAdminCommand,
|
|
1424
|
+
Repostspace,
|
|
1425
|
+
RepostspaceClient,
|
|
1426
|
+
RepostspaceServiceException,
|
|
1427
|
+
ResourceNotFoundException,
|
|
1428
|
+
SendInvitesCommand,
|
|
1429
|
+
SendInvitesInputFilterSensitiveLog,
|
|
1430
|
+
ServiceQuotaExceededException,
|
|
1431
|
+
SpaceDataFilterSensitiveLog,
|
|
1432
|
+
TagResourceCommand,
|
|
1433
|
+
TagResourceRequestFilterSensitiveLog,
|
|
1434
|
+
ThrottlingException,
|
|
1435
|
+
TierLevel,
|
|
1436
|
+
UntagResourceCommand,
|
|
1437
|
+
UpdateSpaceCommand,
|
|
1438
|
+
UpdateSpaceInputFilterSensitiveLog,
|
|
1439
|
+
ValidationException,
|
|
1440
|
+
ValidationExceptionReason,
|
|
1441
|
+
VanityDomainStatus,
|
|
1442
|
+
__Client,
|
|
1443
|
+
paginateListSpaces
|
|
1444
|
+
});
|