@aws-sdk/client-repostspace 3.675.0 → 3.677.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/README.md +17 -1
- package/dist-cjs/index.js +170 -61
- package/dist-es/Repostspace.js +4 -0
- package/dist-es/commands/BatchAddRoleCommand.js +22 -0
- package/dist-es/commands/BatchRemoveRoleCommand.js +22 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +43 -37
- package/dist-es/protocols/Aws_restJson1.js +67 -6
- package/dist-types/Repostspace.d.ts +14 -0
- package/dist-types/RepostspaceClient.d.ts +4 -2
- package/dist-types/commands/BatchAddRoleCommand.d.ts +99 -0
- package/dist-types/commands/BatchRemoveRoleCommand.d.ts +99 -0
- package/dist-types/commands/GetSpaceCommand.d.ts +5 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +202 -88
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/Repostspace.d.ts +34 -0
- package/dist-types/ts3.4/RepostspaceClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/BatchAddRoleCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/BatchRemoveRoleCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +68 -37
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ AWS SDK for JavaScript Repostspace Client for Node.js, Browser and React Native.
|
|
|
10
10
|
|
|
11
11
|
## Installing
|
|
12
12
|
|
|
13
|
-
To install
|
|
13
|
+
To install this package, simply type add or install @aws-sdk/client-repostspace
|
|
14
14
|
using your favorite package manager:
|
|
15
15
|
|
|
16
16
|
- `npm install @aws-sdk/client-repostspace`
|
|
@@ -203,6 +203,22 @@ see LICENSE for more information.
|
|
|
203
203
|
|
|
204
204
|
## Client Commands (Operations List)
|
|
205
205
|
|
|
206
|
+
<details>
|
|
207
|
+
<summary>
|
|
208
|
+
BatchAddRole
|
|
209
|
+
</summary>
|
|
210
|
+
|
|
211
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/repostspace/command/BatchAddRoleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-repostspace/Interface/BatchAddRoleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-repostspace/Interface/BatchAddRoleCommandOutput/)
|
|
212
|
+
|
|
213
|
+
</details>
|
|
214
|
+
<details>
|
|
215
|
+
<summary>
|
|
216
|
+
BatchRemoveRole
|
|
217
|
+
</summary>
|
|
218
|
+
|
|
219
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/repostspace/command/BatchRemoveRoleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-repostspace/Interface/BatchRemoveRoleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-repostspace/Interface/BatchRemoveRoleCommandOutput/)
|
|
220
|
+
|
|
221
|
+
</details>
|
|
206
222
|
<details>
|
|
207
223
|
<summary>
|
|
208
224
|
CreateSpace
|
package/dist-cjs/index.js
CHANGED
|
@@ -22,6 +22,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
22
22
|
var src_exports = {};
|
|
23
23
|
__export(src_exports, {
|
|
24
24
|
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
BatchAddRoleCommand: () => BatchAddRoleCommand,
|
|
26
|
+
BatchRemoveRoleCommand: () => BatchRemoveRoleCommand,
|
|
25
27
|
ConfigurationStatus: () => ConfigurationStatus,
|
|
26
28
|
ConflictException: () => ConflictException,
|
|
27
29
|
CreateSpaceCommand: () => CreateSpaceCommand,
|
|
@@ -40,6 +42,7 @@ __export(src_exports, {
|
|
|
40
42
|
RepostspaceClient: () => RepostspaceClient,
|
|
41
43
|
RepostspaceServiceException: () => RepostspaceServiceException,
|
|
42
44
|
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
45
|
+
Role: () => Role,
|
|
43
46
|
SendInvitesCommand: () => SendInvitesCommand,
|
|
44
47
|
SendInvitesInputFilterSensitiveLog: () => SendInvitesInputFilterSensitiveLog,
|
|
45
48
|
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
@@ -199,11 +202,16 @@ var RepostspaceClient = _RepostspaceClient;
|
|
|
199
202
|
// src/Repostspace.ts
|
|
200
203
|
|
|
201
204
|
|
|
202
|
-
// src/commands/
|
|
205
|
+
// src/commands/BatchAddRoleCommand.ts
|
|
203
206
|
|
|
204
207
|
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
205
208
|
|
|
206
209
|
|
|
210
|
+
// src/protocols/Aws_restJson1.ts
|
|
211
|
+
var import_core2 = require("@aws-sdk/core");
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
207
215
|
// src/models/models_0.ts
|
|
208
216
|
|
|
209
217
|
|
|
@@ -239,32 +247,11 @@ var _AccessDeniedException = class _AccessDeniedException extends RepostspaceSer
|
|
|
239
247
|
};
|
|
240
248
|
__name(_AccessDeniedException, "AccessDeniedException");
|
|
241
249
|
var AccessDeniedException = _AccessDeniedException;
|
|
242
|
-
var
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* @internal
|
|
249
|
-
*/
|
|
250
|
-
constructor(opts) {
|
|
251
|
-
super({
|
|
252
|
-
name: "ConflictException",
|
|
253
|
-
$fault: "client",
|
|
254
|
-
...opts
|
|
255
|
-
});
|
|
256
|
-
this.name = "ConflictException";
|
|
257
|
-
this.$fault = "client";
|
|
258
|
-
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
259
|
-
this.resourceId = opts.resourceId;
|
|
260
|
-
this.resourceType = opts.resourceType;
|
|
261
|
-
}
|
|
262
|
-
};
|
|
263
|
-
__name(_ConflictException, "ConflictException");
|
|
264
|
-
var ConflictException = _ConflictException;
|
|
265
|
-
var TierLevel = {
|
|
266
|
-
BASIC: "BASIC",
|
|
267
|
-
STANDARD: "STANDARD"
|
|
250
|
+
var Role = {
|
|
251
|
+
ADMINISTRATOR: "ADMINISTRATOR",
|
|
252
|
+
EXPERT: "EXPERT",
|
|
253
|
+
MODERATOR: "MODERATOR",
|
|
254
|
+
SUPPORTREQUESTOR: "SUPPORTREQUESTOR"
|
|
268
255
|
};
|
|
269
256
|
var _InternalServerException = class _InternalServerException extends RepostspaceServiceException {
|
|
270
257
|
/**
|
|
@@ -304,27 +291,6 @@ var _ResourceNotFoundException = class _ResourceNotFoundException extends Repost
|
|
|
304
291
|
};
|
|
305
292
|
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
306
293
|
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
307
|
-
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends RepostspaceServiceException {
|
|
308
|
-
/**
|
|
309
|
-
* @internal
|
|
310
|
-
*/
|
|
311
|
-
constructor(opts) {
|
|
312
|
-
super({
|
|
313
|
-
name: "ServiceQuotaExceededException",
|
|
314
|
-
$fault: "client",
|
|
315
|
-
...opts
|
|
316
|
-
});
|
|
317
|
-
this.name = "ServiceQuotaExceededException";
|
|
318
|
-
this.$fault = "client";
|
|
319
|
-
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
320
|
-
this.resourceId = opts.resourceId;
|
|
321
|
-
this.resourceType = opts.resourceType;
|
|
322
|
-
this.serviceCode = opts.serviceCode;
|
|
323
|
-
this.quotaCode = opts.quotaCode;
|
|
324
|
-
}
|
|
325
|
-
};
|
|
326
|
-
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
327
|
-
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
328
294
|
var _ThrottlingException = class _ThrottlingException extends RepostspaceServiceException {
|
|
329
295
|
/**
|
|
330
296
|
* @internal
|
|
@@ -373,6 +339,54 @@ var _ValidationException = class _ValidationException extends RepostspaceService
|
|
|
373
339
|
};
|
|
374
340
|
__name(_ValidationException, "ValidationException");
|
|
375
341
|
var ValidationException = _ValidationException;
|
|
342
|
+
var ConfigurationStatus = {
|
|
343
|
+
CONFIGURED: "CONFIGURED",
|
|
344
|
+
UNCONFIGURED: "UNCONFIGURED"
|
|
345
|
+
};
|
|
346
|
+
var _ConflictException = class _ConflictException extends RepostspaceServiceException {
|
|
347
|
+
/**
|
|
348
|
+
* @internal
|
|
349
|
+
*/
|
|
350
|
+
constructor(opts) {
|
|
351
|
+
super({
|
|
352
|
+
name: "ConflictException",
|
|
353
|
+
$fault: "client",
|
|
354
|
+
...opts
|
|
355
|
+
});
|
|
356
|
+
this.name = "ConflictException";
|
|
357
|
+
this.$fault = "client";
|
|
358
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
359
|
+
this.resourceId = opts.resourceId;
|
|
360
|
+
this.resourceType = opts.resourceType;
|
|
361
|
+
}
|
|
362
|
+
};
|
|
363
|
+
__name(_ConflictException, "ConflictException");
|
|
364
|
+
var ConflictException = _ConflictException;
|
|
365
|
+
var TierLevel = {
|
|
366
|
+
BASIC: "BASIC",
|
|
367
|
+
STANDARD: "STANDARD"
|
|
368
|
+
};
|
|
369
|
+
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends RepostspaceServiceException {
|
|
370
|
+
/**
|
|
371
|
+
* @internal
|
|
372
|
+
*/
|
|
373
|
+
constructor(opts) {
|
|
374
|
+
super({
|
|
375
|
+
name: "ServiceQuotaExceededException",
|
|
376
|
+
$fault: "client",
|
|
377
|
+
...opts
|
|
378
|
+
});
|
|
379
|
+
this.name = "ServiceQuotaExceededException";
|
|
380
|
+
this.$fault = "client";
|
|
381
|
+
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
382
|
+
this.resourceId = opts.resourceId;
|
|
383
|
+
this.resourceType = opts.resourceType;
|
|
384
|
+
this.serviceCode = opts.serviceCode;
|
|
385
|
+
this.quotaCode = opts.quotaCode;
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
389
|
+
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
376
390
|
var VanityDomainStatus = {
|
|
377
391
|
APPROVED: "APPROVED",
|
|
378
392
|
PENDING: "PENDING",
|
|
@@ -417,9 +431,40 @@ var UpdateSpaceInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
417
431
|
}), "UpdateSpaceInputFilterSensitiveLog");
|
|
418
432
|
|
|
419
433
|
// src/protocols/Aws_restJson1.ts
|
|
420
|
-
var
|
|
421
|
-
|
|
422
|
-
|
|
434
|
+
var se_BatchAddRoleCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
435
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
436
|
+
const headers = {
|
|
437
|
+
"content-type": "application/json"
|
|
438
|
+
};
|
|
439
|
+
b.bp("/spaces/{spaceId}/roles");
|
|
440
|
+
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
441
|
+
let body;
|
|
442
|
+
body = JSON.stringify(
|
|
443
|
+
(0, import_smithy_client.take)(input, {
|
|
444
|
+
accessorIds: (_) => (0, import_smithy_client._json)(_),
|
|
445
|
+
role: []
|
|
446
|
+
})
|
|
447
|
+
);
|
|
448
|
+
b.m("POST").h(headers).b(body);
|
|
449
|
+
return b.build();
|
|
450
|
+
}, "se_BatchAddRoleCommand");
|
|
451
|
+
var se_BatchRemoveRoleCommand = /* @__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}/roles");
|
|
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
|
+
role: []
|
|
463
|
+
})
|
|
464
|
+
);
|
|
465
|
+
b.m("PATCH").h(headers).b(body);
|
|
466
|
+
return b.build();
|
|
467
|
+
}, "se_BatchRemoveRoleCommand");
|
|
423
468
|
var se_CreateSpaceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
424
469
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
425
470
|
const headers = {
|
|
@@ -564,6 +609,36 @@ var se_UpdateSpaceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
564
609
|
b.m("PUT").h(headers).b(body);
|
|
565
610
|
return b.build();
|
|
566
611
|
}, "se_UpdateSpaceCommand");
|
|
612
|
+
var de_BatchAddRoleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
613
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
614
|
+
return de_CommandError(output, context);
|
|
615
|
+
}
|
|
616
|
+
const contents = (0, import_smithy_client.map)({
|
|
617
|
+
$metadata: deserializeMetadata(output)
|
|
618
|
+
});
|
|
619
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
620
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
621
|
+
addedAccessorIds: import_smithy_client._json,
|
|
622
|
+
errors: import_smithy_client._json
|
|
623
|
+
});
|
|
624
|
+
Object.assign(contents, doc);
|
|
625
|
+
return contents;
|
|
626
|
+
}, "de_BatchAddRoleCommand");
|
|
627
|
+
var de_BatchRemoveRoleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
628
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
629
|
+
return de_CommandError(output, context);
|
|
630
|
+
}
|
|
631
|
+
const contents = (0, import_smithy_client.map)({
|
|
632
|
+
$metadata: deserializeMetadata(output)
|
|
633
|
+
});
|
|
634
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
635
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
636
|
+
errors: import_smithy_client._json,
|
|
637
|
+
removedAccessorIds: import_smithy_client._json
|
|
638
|
+
});
|
|
639
|
+
Object.assign(contents, doc);
|
|
640
|
+
return contents;
|
|
641
|
+
}, "de_BatchRemoveRoleCommand");
|
|
567
642
|
var de_CreateSpaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
568
643
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
569
644
|
return de_CommandError(output, context);
|
|
@@ -618,6 +693,7 @@ var de_GetSpaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
618
693
|
groupAdmins: import_smithy_client._json,
|
|
619
694
|
name: import_smithy_client.expectString,
|
|
620
695
|
randomDomain: import_smithy_client.expectString,
|
|
696
|
+
roles: import_smithy_client._json,
|
|
621
697
|
spaceId: import_smithy_client.expectString,
|
|
622
698
|
status: import_smithy_client.expectString,
|
|
623
699
|
storageLimit: import_smithy_client.expectLong,
|
|
@@ -720,24 +796,24 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
720
796
|
case "AccessDeniedException":
|
|
721
797
|
case "com.amazonaws.repostspace#AccessDeniedException":
|
|
722
798
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
723
|
-
case "ConflictException":
|
|
724
|
-
case "com.amazonaws.repostspace#ConflictException":
|
|
725
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
726
799
|
case "InternalServerException":
|
|
727
800
|
case "com.amazonaws.repostspace#InternalServerException":
|
|
728
801
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
729
802
|
case "ResourceNotFoundException":
|
|
730
803
|
case "com.amazonaws.repostspace#ResourceNotFoundException":
|
|
731
804
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
732
|
-
case "ServiceQuotaExceededException":
|
|
733
|
-
case "com.amazonaws.repostspace#ServiceQuotaExceededException":
|
|
734
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
735
805
|
case "ThrottlingException":
|
|
736
806
|
case "com.amazonaws.repostspace#ThrottlingException":
|
|
737
807
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
738
808
|
case "ValidationException":
|
|
739
809
|
case "com.amazonaws.repostspace#ValidationException":
|
|
740
810
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
811
|
+
case "ConflictException":
|
|
812
|
+
case "com.amazonaws.repostspace#ConflictException":
|
|
813
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
814
|
+
case "ServiceQuotaExceededException":
|
|
815
|
+
case "com.amazonaws.repostspace#ServiceQuotaExceededException":
|
|
816
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
741
817
|
default:
|
|
742
818
|
const parsedBody = parsedOutput.body;
|
|
743
819
|
return throwDefaultError({
|
|
@@ -893,7 +969,35 @@ var _rAS = "retryAfterSeconds";
|
|
|
893
969
|
var _ra = "retry-after";
|
|
894
970
|
var _tK = "tagKeys";
|
|
895
971
|
|
|
972
|
+
// src/commands/BatchAddRoleCommand.ts
|
|
973
|
+
var _BatchAddRoleCommand = class _BatchAddRoleCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
974
|
+
return [
|
|
975
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
976
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
977
|
+
];
|
|
978
|
+
}).s("RepostSpace", "BatchAddRole", {}).n("RepostspaceClient", "BatchAddRoleCommand").f(void 0, void 0).ser(se_BatchAddRoleCommand).de(de_BatchAddRoleCommand).build() {
|
|
979
|
+
};
|
|
980
|
+
__name(_BatchAddRoleCommand, "BatchAddRoleCommand");
|
|
981
|
+
var BatchAddRoleCommand = _BatchAddRoleCommand;
|
|
982
|
+
|
|
983
|
+
// src/commands/BatchRemoveRoleCommand.ts
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
|
|
987
|
+
var _BatchRemoveRoleCommand = class _BatchRemoveRoleCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
988
|
+
return [
|
|
989
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
990
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
991
|
+
];
|
|
992
|
+
}).s("RepostSpace", "BatchRemoveRole", {}).n("RepostspaceClient", "BatchRemoveRoleCommand").f(void 0, void 0).ser(se_BatchRemoveRoleCommand).de(de_BatchRemoveRoleCommand).build() {
|
|
993
|
+
};
|
|
994
|
+
__name(_BatchRemoveRoleCommand, "BatchRemoveRoleCommand");
|
|
995
|
+
var BatchRemoveRoleCommand = _BatchRemoveRoleCommand;
|
|
996
|
+
|
|
896
997
|
// src/commands/CreateSpaceCommand.ts
|
|
998
|
+
|
|
999
|
+
|
|
1000
|
+
|
|
897
1001
|
var _CreateSpaceCommand = class _CreateSpaceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
898
1002
|
return [
|
|
899
1003
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
@@ -1046,6 +1150,8 @@ var UpdateSpaceCommand = _UpdateSpaceCommand;
|
|
|
1046
1150
|
|
|
1047
1151
|
// src/Repostspace.ts
|
|
1048
1152
|
var commands = {
|
|
1153
|
+
BatchAddRoleCommand,
|
|
1154
|
+
BatchRemoveRoleCommand,
|
|
1049
1155
|
CreateSpaceCommand,
|
|
1050
1156
|
DeleteSpaceCommand,
|
|
1051
1157
|
DeregisterAdminCommand,
|
|
@@ -1075,6 +1181,8 @@ var paginateListSpaces = (0, import_core.createPaginator)(RepostspaceClient, Lis
|
|
|
1075
1181
|
RepostspaceClient,
|
|
1076
1182
|
Repostspace,
|
|
1077
1183
|
$Command,
|
|
1184
|
+
BatchAddRoleCommand,
|
|
1185
|
+
BatchRemoveRoleCommand,
|
|
1078
1186
|
CreateSpaceCommand,
|
|
1079
1187
|
DeleteSpaceCommand,
|
|
1080
1188
|
DeregisterAdminCommand,
|
|
@@ -1088,15 +1196,16 @@ var paginateListSpaces = (0, import_core.createPaginator)(RepostspaceClient, Lis
|
|
|
1088
1196
|
UpdateSpaceCommand,
|
|
1089
1197
|
paginateListSpaces,
|
|
1090
1198
|
AccessDeniedException,
|
|
1091
|
-
|
|
1092
|
-
ConflictException,
|
|
1093
|
-
TierLevel,
|
|
1199
|
+
Role,
|
|
1094
1200
|
InternalServerException,
|
|
1095
1201
|
ResourceNotFoundException,
|
|
1096
|
-
ServiceQuotaExceededException,
|
|
1097
1202
|
ThrottlingException,
|
|
1098
1203
|
ValidationExceptionReason,
|
|
1099
1204
|
ValidationException,
|
|
1205
|
+
ConfigurationStatus,
|
|
1206
|
+
ConflictException,
|
|
1207
|
+
TierLevel,
|
|
1208
|
+
ServiceQuotaExceededException,
|
|
1100
1209
|
VanityDomainStatus,
|
|
1101
1210
|
CreateSpaceInputFilterSensitiveLog,
|
|
1102
1211
|
GetSpaceOutputFilterSensitiveLog,
|
package/dist-es/Repostspace.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
|
+
import { BatchAddRoleCommand, } from "./commands/BatchAddRoleCommand";
|
|
3
|
+
import { BatchRemoveRoleCommand, } from "./commands/BatchRemoveRoleCommand";
|
|
2
4
|
import { CreateSpaceCommand } from "./commands/CreateSpaceCommand";
|
|
3
5
|
import { DeleteSpaceCommand } from "./commands/DeleteSpaceCommand";
|
|
4
6
|
import { DeregisterAdminCommand, } from "./commands/DeregisterAdminCommand";
|
|
@@ -12,6 +14,8 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
|
12
14
|
import { UpdateSpaceCommand } from "./commands/UpdateSpaceCommand";
|
|
13
15
|
import { RepostspaceClient } from "./RepostspaceClient";
|
|
14
16
|
const commands = {
|
|
17
|
+
BatchAddRoleCommand,
|
|
18
|
+
BatchRemoveRoleCommand,
|
|
15
19
|
CreateSpaceCommand,
|
|
16
20
|
DeleteSpaceCommand,
|
|
17
21
|
DeregisterAdminCommand,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_BatchAddRoleCommand, se_BatchAddRoleCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class BatchAddRoleCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("RepostSpace", "BatchAddRole", {})
|
|
17
|
+
.n("RepostspaceClient", "BatchAddRoleCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_BatchAddRoleCommand)
|
|
20
|
+
.de(de_BatchAddRoleCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_BatchRemoveRoleCommand, se_BatchRemoveRoleCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class BatchRemoveRoleCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("RepostSpace", "BatchRemoveRole", {})
|
|
17
|
+
.n("RepostspaceClient", "BatchRemoveRoleCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_BatchRemoveRoleCommand)
|
|
20
|
+
.de(de_BatchRemoveRoleCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -12,27 +12,11 @@ export class AccessDeniedException extends __BaseException {
|
|
|
12
12
|
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
export const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
constructor(opts) {
|
|
21
|
-
super({
|
|
22
|
-
name: "ConflictException",
|
|
23
|
-
$fault: "client",
|
|
24
|
-
...opts,
|
|
25
|
-
});
|
|
26
|
-
this.name = "ConflictException";
|
|
27
|
-
this.$fault = "client";
|
|
28
|
-
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
29
|
-
this.resourceId = opts.resourceId;
|
|
30
|
-
this.resourceType = opts.resourceType;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
export const TierLevel = {
|
|
34
|
-
BASIC: "BASIC",
|
|
35
|
-
STANDARD: "STANDARD",
|
|
15
|
+
export const Role = {
|
|
16
|
+
ADMINISTRATOR: "ADMINISTRATOR",
|
|
17
|
+
EXPERT: "EXPERT",
|
|
18
|
+
MODERATOR: "MODERATOR",
|
|
19
|
+
SUPPORTREQUESTOR: "SUPPORTREQUESTOR",
|
|
36
20
|
};
|
|
37
21
|
export class InternalServerException extends __BaseException {
|
|
38
22
|
constructor(opts) {
|
|
@@ -62,22 +46,6 @@ export class ResourceNotFoundException extends __BaseException {
|
|
|
62
46
|
this.resourceType = opts.resourceType;
|
|
63
47
|
}
|
|
64
48
|
}
|
|
65
|
-
export class ServiceQuotaExceededException extends __BaseException {
|
|
66
|
-
constructor(opts) {
|
|
67
|
-
super({
|
|
68
|
-
name: "ServiceQuotaExceededException",
|
|
69
|
-
$fault: "client",
|
|
70
|
-
...opts,
|
|
71
|
-
});
|
|
72
|
-
this.name = "ServiceQuotaExceededException";
|
|
73
|
-
this.$fault = "client";
|
|
74
|
-
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
75
|
-
this.resourceId = opts.resourceId;
|
|
76
|
-
this.resourceType = opts.resourceType;
|
|
77
|
-
this.serviceCode = opts.serviceCode;
|
|
78
|
-
this.quotaCode = opts.quotaCode;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
49
|
export class ThrottlingException extends __BaseException {
|
|
82
50
|
constructor(opts) {
|
|
83
51
|
super({
|
|
@@ -116,6 +84,44 @@ export class ValidationException extends __BaseException {
|
|
|
116
84
|
this.fieldList = opts.fieldList;
|
|
117
85
|
}
|
|
118
86
|
}
|
|
87
|
+
export const ConfigurationStatus = {
|
|
88
|
+
CONFIGURED: "CONFIGURED",
|
|
89
|
+
UNCONFIGURED: "UNCONFIGURED",
|
|
90
|
+
};
|
|
91
|
+
export class ConflictException extends __BaseException {
|
|
92
|
+
constructor(opts) {
|
|
93
|
+
super({
|
|
94
|
+
name: "ConflictException",
|
|
95
|
+
$fault: "client",
|
|
96
|
+
...opts,
|
|
97
|
+
});
|
|
98
|
+
this.name = "ConflictException";
|
|
99
|
+
this.$fault = "client";
|
|
100
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
101
|
+
this.resourceId = opts.resourceId;
|
|
102
|
+
this.resourceType = opts.resourceType;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
export const TierLevel = {
|
|
106
|
+
BASIC: "BASIC",
|
|
107
|
+
STANDARD: "STANDARD",
|
|
108
|
+
};
|
|
109
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
110
|
+
constructor(opts) {
|
|
111
|
+
super({
|
|
112
|
+
name: "ServiceQuotaExceededException",
|
|
113
|
+
$fault: "client",
|
|
114
|
+
...opts,
|
|
115
|
+
});
|
|
116
|
+
this.name = "ServiceQuotaExceededException";
|
|
117
|
+
this.$fault = "client";
|
|
118
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
119
|
+
this.resourceId = opts.resourceId;
|
|
120
|
+
this.resourceType = opts.resourceType;
|
|
121
|
+
this.serviceCode = opts.serviceCode;
|
|
122
|
+
this.quotaCode = opts.quotaCode;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
119
125
|
export const VanityDomainStatus = {
|
|
120
126
|
APPROVED: "APPROVED",
|
|
121
127
|
PENDING: "PENDING",
|
|
@@ -3,6 +3,36 @@ import { requestBuilder as rb } from "@smithy/core";
|
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { RepostspaceServiceException as __BaseException } from "../models/RepostspaceServiceException";
|
|
6
|
+
export const se_BatchAddRoleCommand = async (input, context) => {
|
|
7
|
+
const b = rb(input, context);
|
|
8
|
+
const headers = {
|
|
9
|
+
"content-type": "application/json",
|
|
10
|
+
};
|
|
11
|
+
b.bp("/spaces/{spaceId}/roles");
|
|
12
|
+
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
13
|
+
let body;
|
|
14
|
+
body = JSON.stringify(take(input, {
|
|
15
|
+
accessorIds: (_) => _json(_),
|
|
16
|
+
role: [],
|
|
17
|
+
}));
|
|
18
|
+
b.m("POST").h(headers).b(body);
|
|
19
|
+
return b.build();
|
|
20
|
+
};
|
|
21
|
+
export const se_BatchRemoveRoleCommand = async (input, context) => {
|
|
22
|
+
const b = rb(input, context);
|
|
23
|
+
const headers = {
|
|
24
|
+
"content-type": "application/json",
|
|
25
|
+
};
|
|
26
|
+
b.bp("/spaces/{spaceId}/roles");
|
|
27
|
+
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
28
|
+
let body;
|
|
29
|
+
body = JSON.stringify(take(input, {
|
|
30
|
+
accessorIds: (_) => _json(_),
|
|
31
|
+
role: [],
|
|
32
|
+
}));
|
|
33
|
+
b.m("PATCH").h(headers).b(body);
|
|
34
|
+
return b.build();
|
|
35
|
+
};
|
|
6
36
|
export const se_CreateSpaceCommand = async (input, context) => {
|
|
7
37
|
const b = rb(input, context);
|
|
8
38
|
const headers = {
|
|
@@ -139,6 +169,36 @@ export const se_UpdateSpaceCommand = async (input, context) => {
|
|
|
139
169
|
b.m("PUT").h(headers).b(body);
|
|
140
170
|
return b.build();
|
|
141
171
|
};
|
|
172
|
+
export const de_BatchAddRoleCommand = async (output, context) => {
|
|
173
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
174
|
+
return de_CommandError(output, context);
|
|
175
|
+
}
|
|
176
|
+
const contents = map({
|
|
177
|
+
$metadata: deserializeMetadata(output),
|
|
178
|
+
});
|
|
179
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
180
|
+
const doc = take(data, {
|
|
181
|
+
addedAccessorIds: _json,
|
|
182
|
+
errors: _json,
|
|
183
|
+
});
|
|
184
|
+
Object.assign(contents, doc);
|
|
185
|
+
return contents;
|
|
186
|
+
};
|
|
187
|
+
export const de_BatchRemoveRoleCommand = async (output, context) => {
|
|
188
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
189
|
+
return de_CommandError(output, context);
|
|
190
|
+
}
|
|
191
|
+
const contents = map({
|
|
192
|
+
$metadata: deserializeMetadata(output),
|
|
193
|
+
});
|
|
194
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
195
|
+
const doc = take(data, {
|
|
196
|
+
errors: _json,
|
|
197
|
+
removedAccessorIds: _json,
|
|
198
|
+
});
|
|
199
|
+
Object.assign(contents, doc);
|
|
200
|
+
return contents;
|
|
201
|
+
};
|
|
142
202
|
export const de_CreateSpaceCommand = async (output, context) => {
|
|
143
203
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
144
204
|
return de_CommandError(output, context);
|
|
@@ -193,6 +253,7 @@ export const de_GetSpaceCommand = async (output, context) => {
|
|
|
193
253
|
groupAdmins: _json,
|
|
194
254
|
name: __expectString,
|
|
195
255
|
randomDomain: __expectString,
|
|
256
|
+
roles: _json,
|
|
196
257
|
spaceId: __expectString,
|
|
197
258
|
status: __expectString,
|
|
198
259
|
storageLimit: __expectLong,
|
|
@@ -295,24 +356,24 @@ const de_CommandError = async (output, context) => {
|
|
|
295
356
|
case "AccessDeniedException":
|
|
296
357
|
case "com.amazonaws.repostspace#AccessDeniedException":
|
|
297
358
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
298
|
-
case "ConflictException":
|
|
299
|
-
case "com.amazonaws.repostspace#ConflictException":
|
|
300
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
301
359
|
case "InternalServerException":
|
|
302
360
|
case "com.amazonaws.repostspace#InternalServerException":
|
|
303
361
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
304
362
|
case "ResourceNotFoundException":
|
|
305
363
|
case "com.amazonaws.repostspace#ResourceNotFoundException":
|
|
306
364
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
307
|
-
case "ServiceQuotaExceededException":
|
|
308
|
-
case "com.amazonaws.repostspace#ServiceQuotaExceededException":
|
|
309
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
310
365
|
case "ThrottlingException":
|
|
311
366
|
case "com.amazonaws.repostspace#ThrottlingException":
|
|
312
367
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
313
368
|
case "ValidationException":
|
|
314
369
|
case "com.amazonaws.repostspace#ValidationException":
|
|
315
370
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
371
|
+
case "ConflictException":
|
|
372
|
+
case "com.amazonaws.repostspace#ConflictException":
|
|
373
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
374
|
+
case "ServiceQuotaExceededException":
|
|
375
|
+
case "com.amazonaws.repostspace#ServiceQuotaExceededException":
|
|
376
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
316
377
|
default:
|
|
317
378
|
const parsedBody = parsedOutput.body;
|
|
318
379
|
return throwDefaultError({
|