@scaleway/sdk-iam 1.0.1

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.
@@ -0,0 +1,307 @@
1
+ const CreateAPIKeyRequest = {
2
+ description: {
3
+ ignoreEmpty: true,
4
+ maxLength: 200
5
+ }
6
+ };
7
+ const CreateApplicationRequest = {
8
+ description: {
9
+ ignoreEmpty: true,
10
+ maxLength: 200
11
+ },
12
+ name: {
13
+ maxLength: 64,
14
+ minLength: 1,
15
+ pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/
16
+ }
17
+ };
18
+ const CreateGroupRequest = {
19
+ description: {
20
+ ignoreEmpty: true,
21
+ maxLength: 200
22
+ },
23
+ name: {
24
+ maxLength: 64,
25
+ minLength: 1,
26
+ pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/
27
+ }
28
+ };
29
+ const CreatePolicyRequest = {
30
+ description: {
31
+ ignoreEmpty: true,
32
+ maxLength: 200
33
+ },
34
+ name: {
35
+ maxLength: 64,
36
+ minLength: 1,
37
+ pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/
38
+ }
39
+ };
40
+ const CreateSSHKeyRequest = {
41
+ name: {
42
+ ignoreEmpty: true,
43
+ maxLength: 1e3
44
+ },
45
+ publicKey: {
46
+ maxLength: 65e3,
47
+ minLength: 1
48
+ }
49
+ };
50
+ const CreateUserRequestMember = {
51
+ firstName: {
52
+ maxLength: 64
53
+ },
54
+ lastName: {
55
+ maxLength: 64
56
+ },
57
+ password: {
58
+ ignoreEmpty: true,
59
+ maxLength: 72
60
+ },
61
+ username: {
62
+ maxLength: 64,
63
+ minLength: 2,
64
+ pattern: /^[a-zA-Z0-9._-]+$/
65
+ }
66
+ };
67
+ const GetQuotumRequest = {
68
+ quotumName: {
69
+ minLength: 1
70
+ }
71
+ };
72
+ const ListAPIKeysRequest = {
73
+ description: {
74
+ maxLength: 200
75
+ },
76
+ page: {
77
+ greaterThanOrEqual: 1,
78
+ lessThanOrEqual: 1e4
79
+ },
80
+ pageSize: {
81
+ greaterThanOrEqual: 1,
82
+ lessThanOrEqual: 100
83
+ }
84
+ };
85
+ const ListApplicationsRequest = {
86
+ name: {
87
+ maxLength: 64,
88
+ minLength: 1,
89
+ pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/
90
+ },
91
+ page: {
92
+ greaterThanOrEqual: 1,
93
+ lessThanOrEqual: 1e4
94
+ },
95
+ pageSize: {
96
+ greaterThanOrEqual: 1,
97
+ lessThanOrEqual: 100
98
+ }
99
+ };
100
+ const ListGroupsRequest = {
101
+ name: {
102
+ minLength: 1
103
+ },
104
+ page: {
105
+ greaterThanOrEqual: 1,
106
+ lessThanOrEqual: 1e4
107
+ },
108
+ pageSize: {
109
+ greaterThanOrEqual: 1,
110
+ lessThanOrEqual: 100
111
+ }
112
+ };
113
+ const ListJWTsRequest = {
114
+ page: {
115
+ greaterThanOrEqual: 1,
116
+ lessThanOrEqual: 1e4
117
+ },
118
+ pageSize: {
119
+ greaterThanOrEqual: 1,
120
+ lessThanOrEqual: 100
121
+ }
122
+ };
123
+ const ListLogsRequest = {
124
+ page: {
125
+ greaterThanOrEqual: 1,
126
+ lessThanOrEqual: 1e4
127
+ },
128
+ pageSize: {
129
+ greaterThanOrEqual: 1,
130
+ lessThanOrEqual: 100
131
+ }
132
+ };
133
+ const ListPermissionSetsRequest = {
134
+ page: {
135
+ greaterThanOrEqual: 1,
136
+ lessThanOrEqual: 1e4
137
+ },
138
+ pageSize: {
139
+ greaterThanOrEqual: 1,
140
+ lessThanOrEqual: 100
141
+ }
142
+ };
143
+ const ListPoliciesRequest = {
144
+ page: {
145
+ greaterThanOrEqual: 1,
146
+ lessThanOrEqual: 1e4
147
+ },
148
+ pageSize: {
149
+ greaterThanOrEqual: 1,
150
+ lessThanOrEqual: 100
151
+ },
152
+ policyName: {
153
+ minLength: 1
154
+ }
155
+ };
156
+ const ListQuotaRequest = {
157
+ page: {
158
+ greaterThanOrEqual: 1,
159
+ lessThanOrEqual: 1e4
160
+ },
161
+ pageSize: {
162
+ greaterThanOrEqual: 1,
163
+ lessThanOrEqual: 100
164
+ }
165
+ };
166
+ const ListRulesRequest = {
167
+ page: {
168
+ greaterThanOrEqual: 1,
169
+ lessThanOrEqual: 1e4
170
+ },
171
+ pageSize: {
172
+ greaterThanOrEqual: 1,
173
+ lessThanOrEqual: 100
174
+ }
175
+ };
176
+ const ListSSHKeysRequest = {
177
+ name: {
178
+ maxLength: 1e3,
179
+ minLength: 1
180
+ },
181
+ page: {
182
+ greaterThanOrEqual: 1,
183
+ lessThanOrEqual: 1e4
184
+ },
185
+ pageSize: {
186
+ greaterThanOrEqual: 1,
187
+ lessThanOrEqual: 100
188
+ }
189
+ };
190
+ const ListUsersRequest = {
191
+ page: {
192
+ greaterThanOrEqual: 1,
193
+ lessThanOrEqual: 1e4
194
+ },
195
+ pageSize: {
196
+ greaterThanOrEqual: 1,
197
+ lessThanOrEqual: 100
198
+ }
199
+ };
200
+ const RuleSpecs = {
201
+ condition: {
202
+ maxLength: 1024
203
+ }
204
+ };
205
+ const UpdateAPIKeyRequest = {
206
+ description: {
207
+ maxLength: 200
208
+ }
209
+ };
210
+ const UpdateApplicationRequest = {
211
+ description: {
212
+ maxLength: 200
213
+ },
214
+ name: {
215
+ maxLength: 64,
216
+ minLength: 1,
217
+ pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/
218
+ }
219
+ };
220
+ const UpdateGroupRequest = {
221
+ description: {
222
+ maxLength: 200
223
+ },
224
+ name: {
225
+ maxLength: 64,
226
+ minLength: 1,
227
+ pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/
228
+ }
229
+ };
230
+ const UpdateOrganizationSecuritySettingsRequest = {
231
+ loginAttemptsBeforeLocked: {
232
+ greaterThanOrEqual: 1,
233
+ lessThanOrEqual: 50
234
+ }
235
+ };
236
+ const UpdatePolicyRequest = {
237
+ description: {
238
+ maxLength: 200
239
+ },
240
+ name: {
241
+ maxLength: 64,
242
+ minLength: 1,
243
+ pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/
244
+ }
245
+ };
246
+ const UpdateSSHKeyRequest = {
247
+ name: {
248
+ maxLength: 1e3
249
+ }
250
+ };
251
+ const UpdateUserPasswordRequest = {
252
+ password: {
253
+ maxLength: 72,
254
+ minLength: 1
255
+ }
256
+ };
257
+ const UpdateUserRequest = {
258
+ firstName: {
259
+ maxLength: 64
260
+ },
261
+ lastName: {
262
+ maxLength: 64
263
+ }
264
+ };
265
+ const UpdateUserUsernameRequest = {
266
+ username: {
267
+ maxLength: 64,
268
+ minLength: 2,
269
+ pattern: /^[a-zA-Z0-9._-]+$/
270
+ }
271
+ };
272
+ const ValidateUserMFAOTPRequest = {
273
+ oneTimePassword: {
274
+ pattern: /^[0-9]{6}$/
275
+ }
276
+ };
277
+ export {
278
+ CreateAPIKeyRequest,
279
+ CreateApplicationRequest,
280
+ CreateGroupRequest,
281
+ CreatePolicyRequest,
282
+ CreateSSHKeyRequest,
283
+ CreateUserRequestMember,
284
+ GetQuotumRequest,
285
+ ListAPIKeysRequest,
286
+ ListApplicationsRequest,
287
+ ListGroupsRequest,
288
+ ListJWTsRequest,
289
+ ListLogsRequest,
290
+ ListPermissionSetsRequest,
291
+ ListPoliciesRequest,
292
+ ListQuotaRequest,
293
+ ListRulesRequest,
294
+ ListSSHKeysRequest,
295
+ ListUsersRequest,
296
+ RuleSpecs,
297
+ UpdateAPIKeyRequest,
298
+ UpdateApplicationRequest,
299
+ UpdateGroupRequest,
300
+ UpdateOrganizationSecuritySettingsRequest,
301
+ UpdatePolicyRequest,
302
+ UpdateSSHKeyRequest,
303
+ UpdateUserPasswordRequest,
304
+ UpdateUserRequest,
305
+ UpdateUserUsernameRequest,
306
+ ValidateUserMFAOTPRequest
307
+ };
package/package.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "@scaleway/sdk-iam",
3
+ "version": "1.0.1",
4
+ "description": "Scaleway SDK iam",
5
+ "types": "dist/index.d.ts",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "type": "module",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.gen.d.ts",
13
+ "import": "./dist/index.gen.js",
14
+ "require": "./dist/index.gen.cjs",
15
+ "default": "./dist/index.gen.js"
16
+ },
17
+ "./*": {
18
+ "types": "./dist/*/index.gen.d.ts",
19
+ "import": "./dist/*/index.gen.js",
20
+ "require": "./dist/*/index.gen.cjs",
21
+ "default": "./dist/*/index.gen.js"
22
+ }
23
+ },
24
+ "repository": {
25
+ "type": "git",
26
+ "directory": "packages_generated/iam"
27
+ },
28
+ "engines": {
29
+ "node": ">=20.18.3"
30
+ },
31
+ "dependencies": {
32
+ "@scaleway/random-name": "5.1.1",
33
+ "@scaleway/sdk-std": "1.0.1"
34
+ },
35
+ "peerDependencies": {
36
+ "@scaleway/sdk-client": "^1.2.1"
37
+ },
38
+ "devDependencies": {
39
+ "@scaleway/sdk-client": "^1.2.1"
40
+ },
41
+ "bundledDependencies": [
42
+ "@scaleway/random-name"
43
+ ],
44
+ "scripts": {
45
+ "package:check": "pnpm publint",
46
+ "typecheck": "tsc --noEmit",
47
+ "type:generate": "tsc --declaration -p tsconfig.build.json",
48
+ "build": "vite build --config vite.config.ts && pnpm run type:generate",
49
+ "build:profile": "npx vite-bundle-visualizer -c vite.config.ts"
50
+ }
51
+ }