@aws-sdk/client-repostspace 3.474.0 → 3.477.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.
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_UpdateSpaceCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SendInvitesCommand = exports.de_RegisterAdminCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSpacesCommand = exports.de_GetSpaceCommand = exports.de_DeregisterAdminCommand = exports.de_DeleteSpaceCommand = exports.de_CreateSpaceCommand = exports.se_UpdateSpaceCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SendInvitesCommand = exports.se_RegisterAdminCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSpacesCommand = exports.se_GetSpaceCommand = exports.se_DeregisterAdminCommand = exports.se_DeleteSpaceCommand = exports.se_CreateSpaceCommand = void 0;
|
|
4
|
-
const
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const RepostspaceServiceException_1 = require("../models/RepostspaceServiceException");
|
|
8
8
|
const se_CreateSpaceCommand = async (input, context) => {
|
|
9
|
-
const
|
|
9
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/json",
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
b.bp("/spaces");
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
16
16
|
description: [],
|
|
@@ -21,217 +21,138 @@ const se_CreateSpaceCommand = async (input, context) => {
|
|
|
21
21
|
tier: [],
|
|
22
22
|
userKMSKey: [],
|
|
23
23
|
}));
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
hostname,
|
|
27
|
-
port,
|
|
28
|
-
method: "POST",
|
|
29
|
-
headers,
|
|
30
|
-
path: resolvedPath,
|
|
31
|
-
body,
|
|
32
|
-
});
|
|
24
|
+
b.m("POST").h(headers).b(body);
|
|
25
|
+
return b.build();
|
|
33
26
|
};
|
|
34
27
|
exports.se_CreateSpaceCommand = se_CreateSpaceCommand;
|
|
35
28
|
const se_DeleteSpaceCommand = async (input, context) => {
|
|
36
|
-
const
|
|
29
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
37
30
|
const headers = {};
|
|
38
|
-
|
|
39
|
-
|
|
31
|
+
b.bp("/spaces/{spaceId}");
|
|
32
|
+
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
40
33
|
let body;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
hostname,
|
|
44
|
-
port,
|
|
45
|
-
method: "DELETE",
|
|
46
|
-
headers,
|
|
47
|
-
path: resolvedPath,
|
|
48
|
-
body,
|
|
49
|
-
});
|
|
34
|
+
b.m("DELETE").h(headers).b(body);
|
|
35
|
+
return b.build();
|
|
50
36
|
};
|
|
51
37
|
exports.se_DeleteSpaceCommand = se_DeleteSpaceCommand;
|
|
52
38
|
const se_DeregisterAdminCommand = async (input, context) => {
|
|
53
|
-
const
|
|
39
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
54
40
|
const headers = {};
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
41
|
+
b.bp("/spaces/{spaceId}/admins/{adminId}");
|
|
42
|
+
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
43
|
+
b.p("adminId", () => input.adminId, "{adminId}", false);
|
|
58
44
|
let body;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
hostname,
|
|
62
|
-
port,
|
|
63
|
-
method: "DELETE",
|
|
64
|
-
headers,
|
|
65
|
-
path: resolvedPath,
|
|
66
|
-
body,
|
|
67
|
-
});
|
|
45
|
+
b.m("DELETE").h(headers).b(body);
|
|
46
|
+
return b.build();
|
|
68
47
|
};
|
|
69
48
|
exports.se_DeregisterAdminCommand = se_DeregisterAdminCommand;
|
|
70
49
|
const se_GetSpaceCommand = async (input, context) => {
|
|
71
|
-
const
|
|
50
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
72
51
|
const headers = {};
|
|
73
|
-
|
|
74
|
-
|
|
52
|
+
b.bp("/spaces/{spaceId}");
|
|
53
|
+
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
75
54
|
let body;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
hostname,
|
|
79
|
-
port,
|
|
80
|
-
method: "GET",
|
|
81
|
-
headers,
|
|
82
|
-
path: resolvedPath,
|
|
83
|
-
body,
|
|
84
|
-
});
|
|
55
|
+
b.m("GET").h(headers).b(body);
|
|
56
|
+
return b.build();
|
|
85
57
|
};
|
|
86
58
|
exports.se_GetSpaceCommand = se_GetSpaceCommand;
|
|
87
59
|
const se_ListSpacesCommand = async (input, context) => {
|
|
88
|
-
const
|
|
60
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
89
61
|
const headers = {};
|
|
90
|
-
|
|
62
|
+
b.bp("/spaces");
|
|
91
63
|
const query = (0, smithy_client_1.map)({
|
|
92
|
-
|
|
93
|
-
|
|
64
|
+
[_nT]: [, input[_nT]],
|
|
65
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
94
66
|
});
|
|
95
67
|
let body;
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
hostname,
|
|
99
|
-
port,
|
|
100
|
-
method: "GET",
|
|
101
|
-
headers,
|
|
102
|
-
path: resolvedPath,
|
|
103
|
-
query,
|
|
104
|
-
body,
|
|
105
|
-
});
|
|
68
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
69
|
+
return b.build();
|
|
106
70
|
};
|
|
107
71
|
exports.se_ListSpacesCommand = se_ListSpacesCommand;
|
|
108
72
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
109
|
-
const
|
|
73
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
110
74
|
const headers = {};
|
|
111
|
-
|
|
112
|
-
|
|
75
|
+
b.bp("/tags/{resourceArn}");
|
|
76
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
113
77
|
let body;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
hostname,
|
|
117
|
-
port,
|
|
118
|
-
method: "GET",
|
|
119
|
-
headers,
|
|
120
|
-
path: resolvedPath,
|
|
121
|
-
body,
|
|
122
|
-
});
|
|
78
|
+
b.m("GET").h(headers).b(body);
|
|
79
|
+
return b.build();
|
|
123
80
|
};
|
|
124
81
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
125
82
|
const se_RegisterAdminCommand = async (input, context) => {
|
|
126
|
-
const
|
|
83
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
127
84
|
const headers = {};
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
85
|
+
b.bp("/spaces/{spaceId}/admins/{adminId}");
|
|
86
|
+
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
87
|
+
b.p("adminId", () => input.adminId, "{adminId}", false);
|
|
131
88
|
let body;
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
hostname,
|
|
135
|
-
port,
|
|
136
|
-
method: "POST",
|
|
137
|
-
headers,
|
|
138
|
-
path: resolvedPath,
|
|
139
|
-
body,
|
|
140
|
-
});
|
|
89
|
+
b.m("POST").h(headers).b(body);
|
|
90
|
+
return b.build();
|
|
141
91
|
};
|
|
142
92
|
exports.se_RegisterAdminCommand = se_RegisterAdminCommand;
|
|
143
93
|
const se_SendInvitesCommand = async (input, context) => {
|
|
144
|
-
const
|
|
94
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
145
95
|
const headers = {
|
|
146
96
|
"content-type": "application/json",
|
|
147
97
|
};
|
|
148
|
-
|
|
149
|
-
|
|
98
|
+
b.bp("/spaces/{spaceId}/invite");
|
|
99
|
+
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
150
100
|
let body;
|
|
151
101
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
152
102
|
accessorIds: (_) => (0, smithy_client_1._json)(_),
|
|
153
103
|
body: [],
|
|
154
104
|
title: [],
|
|
155
105
|
}));
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
hostname,
|
|
159
|
-
port,
|
|
160
|
-
method: "POST",
|
|
161
|
-
headers,
|
|
162
|
-
path: resolvedPath,
|
|
163
|
-
body,
|
|
164
|
-
});
|
|
106
|
+
b.m("POST").h(headers).b(body);
|
|
107
|
+
return b.build();
|
|
165
108
|
};
|
|
166
109
|
exports.se_SendInvitesCommand = se_SendInvitesCommand;
|
|
167
110
|
const se_TagResourceCommand = async (input, context) => {
|
|
168
|
-
const
|
|
111
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
169
112
|
const headers = {
|
|
170
113
|
"content-type": "application/json",
|
|
171
114
|
};
|
|
172
|
-
|
|
173
|
-
|
|
115
|
+
b.bp("/tags/{resourceArn}");
|
|
116
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
174
117
|
let body;
|
|
175
118
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
176
119
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
177
120
|
}));
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
hostname,
|
|
181
|
-
port,
|
|
182
|
-
method: "POST",
|
|
183
|
-
headers,
|
|
184
|
-
path: resolvedPath,
|
|
185
|
-
body,
|
|
186
|
-
});
|
|
121
|
+
b.m("POST").h(headers).b(body);
|
|
122
|
+
return b.build();
|
|
187
123
|
};
|
|
188
124
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
189
125
|
const se_UntagResourceCommand = async (input, context) => {
|
|
190
|
-
const
|
|
126
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
191
127
|
const headers = {};
|
|
192
|
-
|
|
193
|
-
|
|
128
|
+
b.bp("/tags/{resourceArn}");
|
|
129
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
194
130
|
const query = (0, smithy_client_1.map)({
|
|
195
|
-
|
|
131
|
+
[_tK]: [
|
|
196
132
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
197
|
-
() => (input
|
|
133
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
198
134
|
],
|
|
199
135
|
});
|
|
200
136
|
let body;
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
hostname,
|
|
204
|
-
port,
|
|
205
|
-
method: "DELETE",
|
|
206
|
-
headers,
|
|
207
|
-
path: resolvedPath,
|
|
208
|
-
query,
|
|
209
|
-
body,
|
|
210
|
-
});
|
|
137
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
138
|
+
return b.build();
|
|
211
139
|
};
|
|
212
140
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
213
141
|
const se_UpdateSpaceCommand = async (input, context) => {
|
|
214
|
-
const
|
|
142
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
215
143
|
const headers = {
|
|
216
144
|
"content-type": "application/json",
|
|
217
145
|
};
|
|
218
|
-
|
|
219
|
-
|
|
146
|
+
b.bp("/spaces/{spaceId}");
|
|
147
|
+
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
220
148
|
let body;
|
|
221
149
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
222
150
|
description: [],
|
|
223
151
|
roleArn: [],
|
|
224
152
|
tier: [],
|
|
225
153
|
}));
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
hostname,
|
|
229
|
-
port,
|
|
230
|
-
method: "PUT",
|
|
231
|
-
headers,
|
|
232
|
-
path: resolvedPath,
|
|
233
|
-
body,
|
|
234
|
-
});
|
|
154
|
+
b.m("PUT").h(headers).b(body);
|
|
155
|
+
return b.build();
|
|
235
156
|
};
|
|
236
157
|
exports.se_UpdateSpaceCommand = se_UpdateSpaceCommand;
|
|
237
158
|
const de_CreateSpaceCommand = async (output, context) => {
|
|
@@ -769,10 +690,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
769
690
|
};
|
|
770
691
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
771
692
|
const contents = (0, smithy_client_1.map)({
|
|
772
|
-
|
|
773
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
774
|
-
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
775
|
-
],
|
|
693
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
776
694
|
});
|
|
777
695
|
const data = parsedOutput.body;
|
|
778
696
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -819,10 +737,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
819
737
|
};
|
|
820
738
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
821
739
|
const contents = (0, smithy_client_1.map)({
|
|
822
|
-
|
|
823
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
824
|
-
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
825
|
-
],
|
|
740
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
826
741
|
});
|
|
827
742
|
const data = parsedOutput.body;
|
|
828
743
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -892,6 +807,11 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
892
807
|
value !== "" &&
|
|
893
808
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
894
809
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
810
|
+
const _mR = "maxResults";
|
|
811
|
+
const _nT = "nextToken";
|
|
812
|
+
const _rAS = "retryAfterSeconds";
|
|
813
|
+
const _ra = "retry-after";
|
|
814
|
+
const _tK = "tagKeys";
|
|
895
815
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
896
816
|
if (encoded.length) {
|
|
897
817
|
return JSON.parse(encoded);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
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,
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
|
+
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";
|
|
3
3
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
4
4
|
import { RepostspaceServiceException as __BaseException } from "../models/RepostspaceServiceException";
|
|
5
5
|
export const se_CreateSpaceCommand = async (input, context) => {
|
|
6
|
-
const
|
|
6
|
+
const b = rb(input, context);
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
b.bp("/spaces");
|
|
11
11
|
let body;
|
|
12
12
|
body = JSON.stringify(take(input, {
|
|
13
13
|
description: [],
|
|
@@ -18,207 +18,128 @@ export const se_CreateSpaceCommand = async (input, context) => {
|
|
|
18
18
|
tier: [],
|
|
19
19
|
userKMSKey: [],
|
|
20
20
|
}));
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
hostname,
|
|
24
|
-
port,
|
|
25
|
-
method: "POST",
|
|
26
|
-
headers,
|
|
27
|
-
path: resolvedPath,
|
|
28
|
-
body,
|
|
29
|
-
});
|
|
21
|
+
b.m("POST").h(headers).b(body);
|
|
22
|
+
return b.build();
|
|
30
23
|
};
|
|
31
24
|
export const se_DeleteSpaceCommand = async (input, context) => {
|
|
32
|
-
const
|
|
25
|
+
const b = rb(input, context);
|
|
33
26
|
const headers = {};
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
b.bp("/spaces/{spaceId}");
|
|
28
|
+
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
36
29
|
let body;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
hostname,
|
|
40
|
-
port,
|
|
41
|
-
method: "DELETE",
|
|
42
|
-
headers,
|
|
43
|
-
path: resolvedPath,
|
|
44
|
-
body,
|
|
45
|
-
});
|
|
30
|
+
b.m("DELETE").h(headers).b(body);
|
|
31
|
+
return b.build();
|
|
46
32
|
};
|
|
47
33
|
export const se_DeregisterAdminCommand = async (input, context) => {
|
|
48
|
-
const
|
|
34
|
+
const b = rb(input, context);
|
|
49
35
|
const headers = {};
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
36
|
+
b.bp("/spaces/{spaceId}/admins/{adminId}");
|
|
37
|
+
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
38
|
+
b.p("adminId", () => input.adminId, "{adminId}", false);
|
|
53
39
|
let body;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
hostname,
|
|
57
|
-
port,
|
|
58
|
-
method: "DELETE",
|
|
59
|
-
headers,
|
|
60
|
-
path: resolvedPath,
|
|
61
|
-
body,
|
|
62
|
-
});
|
|
40
|
+
b.m("DELETE").h(headers).b(body);
|
|
41
|
+
return b.build();
|
|
63
42
|
};
|
|
64
43
|
export const se_GetSpaceCommand = async (input, context) => {
|
|
65
|
-
const
|
|
44
|
+
const b = rb(input, context);
|
|
66
45
|
const headers = {};
|
|
67
|
-
|
|
68
|
-
|
|
46
|
+
b.bp("/spaces/{spaceId}");
|
|
47
|
+
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
69
48
|
let body;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
hostname,
|
|
73
|
-
port,
|
|
74
|
-
method: "GET",
|
|
75
|
-
headers,
|
|
76
|
-
path: resolvedPath,
|
|
77
|
-
body,
|
|
78
|
-
});
|
|
49
|
+
b.m("GET").h(headers).b(body);
|
|
50
|
+
return b.build();
|
|
79
51
|
};
|
|
80
52
|
export const se_ListSpacesCommand = async (input, context) => {
|
|
81
|
-
const
|
|
53
|
+
const b = rb(input, context);
|
|
82
54
|
const headers = {};
|
|
83
|
-
|
|
55
|
+
b.bp("/spaces");
|
|
84
56
|
const query = map({
|
|
85
|
-
|
|
86
|
-
|
|
57
|
+
[_nT]: [, input[_nT]],
|
|
58
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
87
59
|
});
|
|
88
60
|
let body;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
hostname,
|
|
92
|
-
port,
|
|
93
|
-
method: "GET",
|
|
94
|
-
headers,
|
|
95
|
-
path: resolvedPath,
|
|
96
|
-
query,
|
|
97
|
-
body,
|
|
98
|
-
});
|
|
61
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
62
|
+
return b.build();
|
|
99
63
|
};
|
|
100
64
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
101
|
-
const
|
|
65
|
+
const b = rb(input, context);
|
|
102
66
|
const headers = {};
|
|
103
|
-
|
|
104
|
-
|
|
67
|
+
b.bp("/tags/{resourceArn}");
|
|
68
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
105
69
|
let body;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
hostname,
|
|
109
|
-
port,
|
|
110
|
-
method: "GET",
|
|
111
|
-
headers,
|
|
112
|
-
path: resolvedPath,
|
|
113
|
-
body,
|
|
114
|
-
});
|
|
70
|
+
b.m("GET").h(headers).b(body);
|
|
71
|
+
return b.build();
|
|
115
72
|
};
|
|
116
73
|
export const se_RegisterAdminCommand = async (input, context) => {
|
|
117
|
-
const
|
|
74
|
+
const b = rb(input, context);
|
|
118
75
|
const headers = {};
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
76
|
+
b.bp("/spaces/{spaceId}/admins/{adminId}");
|
|
77
|
+
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
78
|
+
b.p("adminId", () => input.adminId, "{adminId}", false);
|
|
122
79
|
let body;
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
hostname,
|
|
126
|
-
port,
|
|
127
|
-
method: "POST",
|
|
128
|
-
headers,
|
|
129
|
-
path: resolvedPath,
|
|
130
|
-
body,
|
|
131
|
-
});
|
|
80
|
+
b.m("POST").h(headers).b(body);
|
|
81
|
+
return b.build();
|
|
132
82
|
};
|
|
133
83
|
export const se_SendInvitesCommand = async (input, context) => {
|
|
134
|
-
const
|
|
84
|
+
const b = rb(input, context);
|
|
135
85
|
const headers = {
|
|
136
86
|
"content-type": "application/json",
|
|
137
87
|
};
|
|
138
|
-
|
|
139
|
-
|
|
88
|
+
b.bp("/spaces/{spaceId}/invite");
|
|
89
|
+
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
140
90
|
let body;
|
|
141
91
|
body = JSON.stringify(take(input, {
|
|
142
92
|
accessorIds: (_) => _json(_),
|
|
143
93
|
body: [],
|
|
144
94
|
title: [],
|
|
145
95
|
}));
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
hostname,
|
|
149
|
-
port,
|
|
150
|
-
method: "POST",
|
|
151
|
-
headers,
|
|
152
|
-
path: resolvedPath,
|
|
153
|
-
body,
|
|
154
|
-
});
|
|
96
|
+
b.m("POST").h(headers).b(body);
|
|
97
|
+
return b.build();
|
|
155
98
|
};
|
|
156
99
|
export const se_TagResourceCommand = async (input, context) => {
|
|
157
|
-
const
|
|
100
|
+
const b = rb(input, context);
|
|
158
101
|
const headers = {
|
|
159
102
|
"content-type": "application/json",
|
|
160
103
|
};
|
|
161
|
-
|
|
162
|
-
|
|
104
|
+
b.bp("/tags/{resourceArn}");
|
|
105
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
163
106
|
let body;
|
|
164
107
|
body = JSON.stringify(take(input, {
|
|
165
108
|
tags: (_) => _json(_),
|
|
166
109
|
}));
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
hostname,
|
|
170
|
-
port,
|
|
171
|
-
method: "POST",
|
|
172
|
-
headers,
|
|
173
|
-
path: resolvedPath,
|
|
174
|
-
body,
|
|
175
|
-
});
|
|
110
|
+
b.m("POST").h(headers).b(body);
|
|
111
|
+
return b.build();
|
|
176
112
|
};
|
|
177
113
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
178
|
-
const
|
|
114
|
+
const b = rb(input, context);
|
|
179
115
|
const headers = {};
|
|
180
|
-
|
|
181
|
-
|
|
116
|
+
b.bp("/tags/{resourceArn}");
|
|
117
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
182
118
|
const query = map({
|
|
183
|
-
|
|
119
|
+
[_tK]: [
|
|
184
120
|
__expectNonNull(input.tagKeys, `tagKeys`) != null,
|
|
185
|
-
() => (input
|
|
121
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
186
122
|
],
|
|
187
123
|
});
|
|
188
124
|
let body;
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
hostname,
|
|
192
|
-
port,
|
|
193
|
-
method: "DELETE",
|
|
194
|
-
headers,
|
|
195
|
-
path: resolvedPath,
|
|
196
|
-
query,
|
|
197
|
-
body,
|
|
198
|
-
});
|
|
125
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
126
|
+
return b.build();
|
|
199
127
|
};
|
|
200
128
|
export const se_UpdateSpaceCommand = async (input, context) => {
|
|
201
|
-
const
|
|
129
|
+
const b = rb(input, context);
|
|
202
130
|
const headers = {
|
|
203
131
|
"content-type": "application/json",
|
|
204
132
|
};
|
|
205
|
-
|
|
206
|
-
|
|
133
|
+
b.bp("/spaces/{spaceId}");
|
|
134
|
+
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
207
135
|
let body;
|
|
208
136
|
body = JSON.stringify(take(input, {
|
|
209
137
|
description: [],
|
|
210
138
|
roleArn: [],
|
|
211
139
|
tier: [],
|
|
212
140
|
}));
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
hostname,
|
|
216
|
-
port,
|
|
217
|
-
method: "PUT",
|
|
218
|
-
headers,
|
|
219
|
-
path: resolvedPath,
|
|
220
|
-
body,
|
|
221
|
-
});
|
|
141
|
+
b.m("PUT").h(headers).b(body);
|
|
142
|
+
return b.build();
|
|
222
143
|
};
|
|
223
144
|
export const de_CreateSpaceCommand = async (output, context) => {
|
|
224
145
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -744,10 +665,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
744
665
|
};
|
|
745
666
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
746
667
|
const contents = map({
|
|
747
|
-
|
|
748
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
749
|
-
() => __strictParseInt32(parsedOutput.headers["retry-after"]),
|
|
750
|
-
],
|
|
668
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
751
669
|
});
|
|
752
670
|
const data = parsedOutput.body;
|
|
753
671
|
const doc = take(data, {
|
|
@@ -794,10 +712,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
794
712
|
};
|
|
795
713
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
796
714
|
const contents = map({
|
|
797
|
-
|
|
798
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
799
|
-
() => __strictParseInt32(parsedOutput.headers["retry-after"]),
|
|
800
|
-
],
|
|
715
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
801
716
|
});
|
|
802
717
|
const data = parsedOutput.body;
|
|
803
718
|
const doc = take(data, {
|
|
@@ -867,6 +782,11 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
867
782
|
value !== "" &&
|
|
868
783
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
869
784
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
785
|
+
const _mR = "maxResults";
|
|
786
|
+
const _nT = "nextToken";
|
|
787
|
+
const _rAS = "retryAfterSeconds";
|
|
788
|
+
const _ra = "retry-after";
|
|
789
|
+
const _tK = "tagKeys";
|
|
870
790
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
871
791
|
if (encoded.length) {
|
|
872
792
|
return JSON.parse(encoded);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-repostspace",
|
|
3
3
|
"description": "AWS SDK for JavaScript Repostspace Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.477.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.477.0",
|
|
24
|
+
"@aws-sdk/core": "3.477.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.477.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|
|
37
|
+
"@smithy/core": "^1.2.0",
|
|
37
38
|
"@smithy/fetch-http-handler": "^2.3.1",
|
|
38
39
|
"@smithy/hash-node": "^2.0.17",
|
|
39
40
|
"@smithy/invalid-dependency": "^2.0.15",
|