@spotify/backstage-plugin-rbac-common 0.6.7 → 0.6.8
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/CHANGELOG.md +6 -0
- package/dist/index.d.ts +375 -753
- package/package.json +11 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as _backstage_plugin_permission_common_index from '@backstage/plugin-permission-common/index';
|
|
2
1
|
import * as _backstage_plugin_permission_common from '@backstage/plugin-permission-common';
|
|
3
2
|
import { PermissionCondition, PermissionCriteria, AllOfCriteria, AnyOfCriteria, NotCriteria, Permission, PermissionRuleParam, PermissionRuleParams } from '@backstage/plugin-permission-common';
|
|
4
3
|
import { z } from 'zod';
|
|
@@ -19,12 +18,12 @@ declare const ConditionalDecisionParser: z.ZodObject<{
|
|
|
19
18
|
conditions: z.ZodType<PermissionCriteria<RBACPermissionCondition>, z.ZodTypeDef, PermissionCriteria<RBACPermissionCondition>>;
|
|
20
19
|
}, "strip", z.ZodTypeAny, {
|
|
21
20
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
22
|
-
pluginId: string;
|
|
23
21
|
resourceType: string;
|
|
22
|
+
pluginId: string;
|
|
24
23
|
}, {
|
|
25
24
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
26
|
-
pluginId: string;
|
|
27
25
|
resourceType: string;
|
|
26
|
+
pluginId: string;
|
|
28
27
|
}>;
|
|
29
28
|
/** @public */
|
|
30
29
|
declare const LiteralDecisionParser: z.ZodUnion<[z.ZodLiteral<"allow">, z.ZodLiteral<"deny">]>;
|
|
@@ -35,12 +34,12 @@ declare const PermissionDecisionParser: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"al
|
|
|
35
34
|
conditions: z.ZodType<PermissionCriteria<RBACPermissionCondition>, z.ZodTypeDef, PermissionCriteria<RBACPermissionCondition>>;
|
|
36
35
|
}, "strip", z.ZodTypeAny, {
|
|
37
36
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
38
|
-
pluginId: string;
|
|
39
37
|
resourceType: string;
|
|
38
|
+
pluginId: string;
|
|
40
39
|
}, {
|
|
41
40
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
42
|
-
pluginId: string;
|
|
43
41
|
resourceType: string;
|
|
42
|
+
pluginId: string;
|
|
44
43
|
}>]>;
|
|
45
44
|
/** @public */
|
|
46
45
|
declare const PermissionMatchParser: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodObject<{
|
|
@@ -78,12 +77,12 @@ declare const RolePermissionParser: z.ZodEffects<z.ZodObject<{
|
|
|
78
77
|
conditions: z.ZodType<PermissionCriteria<RBACPermissionCondition>, z.ZodTypeDef, PermissionCriteria<RBACPermissionCondition>>;
|
|
79
78
|
}, "strip", z.ZodTypeAny, {
|
|
80
79
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
81
|
-
pluginId: string;
|
|
82
80
|
resourceType: string;
|
|
81
|
+
pluginId: string;
|
|
83
82
|
}, {
|
|
84
83
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
85
|
-
pluginId: string;
|
|
86
84
|
resourceType: string;
|
|
85
|
+
pluginId: string;
|
|
87
86
|
}>]>;
|
|
88
87
|
}, "strip", z.ZodTypeAny, {
|
|
89
88
|
id: string;
|
|
@@ -94,8 +93,8 @@ declare const RolePermissionParser: z.ZodEffects<z.ZodObject<{
|
|
|
94
93
|
};
|
|
95
94
|
decision: "allow" | {
|
|
96
95
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
97
|
-
pluginId: string;
|
|
98
96
|
resourceType: string;
|
|
97
|
+
pluginId: string;
|
|
99
98
|
} | "deny";
|
|
100
99
|
}, {
|
|
101
100
|
match: "*" | {
|
|
@@ -105,8 +104,8 @@ declare const RolePermissionParser: z.ZodEffects<z.ZodObject<{
|
|
|
105
104
|
};
|
|
106
105
|
decision: "allow" | {
|
|
107
106
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
108
|
-
pluginId: string;
|
|
109
107
|
resourceType: string;
|
|
108
|
+
pluginId: string;
|
|
110
109
|
} | "deny";
|
|
111
110
|
id?: string | undefined;
|
|
112
111
|
}>, {
|
|
@@ -118,8 +117,8 @@ declare const RolePermissionParser: z.ZodEffects<z.ZodObject<{
|
|
|
118
117
|
};
|
|
119
118
|
decision: "allow" | {
|
|
120
119
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
121
|
-
pluginId: string;
|
|
122
120
|
resourceType: string;
|
|
121
|
+
pluginId: string;
|
|
123
122
|
} | "deny";
|
|
124
123
|
}, {
|
|
125
124
|
match: "*" | {
|
|
@@ -129,8 +128,8 @@ declare const RolePermissionParser: z.ZodEffects<z.ZodObject<{
|
|
|
129
128
|
};
|
|
130
129
|
decision: "allow" | {
|
|
131
130
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
132
|
-
pluginId: string;
|
|
133
131
|
resourceType: string;
|
|
132
|
+
pluginId: string;
|
|
134
133
|
} | "deny";
|
|
135
134
|
id?: string | undefined;
|
|
136
135
|
}>;
|
|
@@ -156,12 +155,12 @@ declare const RolePermissionsParser: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodO
|
|
|
156
155
|
conditions: z.ZodType<PermissionCriteria<RBACPermissionCondition>, z.ZodTypeDef, PermissionCriteria<RBACPermissionCondition>>;
|
|
157
156
|
}, "strip", z.ZodTypeAny, {
|
|
158
157
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
159
|
-
pluginId: string;
|
|
160
158
|
resourceType: string;
|
|
159
|
+
pluginId: string;
|
|
161
160
|
}, {
|
|
162
161
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
163
|
-
pluginId: string;
|
|
164
162
|
resourceType: string;
|
|
163
|
+
pluginId: string;
|
|
165
164
|
}>]>;
|
|
166
165
|
}, "strip", z.ZodTypeAny, {
|
|
167
166
|
id: string;
|
|
@@ -172,8 +171,8 @@ declare const RolePermissionsParser: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodO
|
|
|
172
171
|
};
|
|
173
172
|
decision: "allow" | {
|
|
174
173
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
175
|
-
pluginId: string;
|
|
176
174
|
resourceType: string;
|
|
175
|
+
pluginId: string;
|
|
177
176
|
} | "deny";
|
|
178
177
|
}, {
|
|
179
178
|
match: "*" | {
|
|
@@ -183,8 +182,8 @@ declare const RolePermissionsParser: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodO
|
|
|
183
182
|
};
|
|
184
183
|
decision: "allow" | {
|
|
185
184
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
186
|
-
pluginId: string;
|
|
187
185
|
resourceType: string;
|
|
186
|
+
pluginId: string;
|
|
188
187
|
} | "deny";
|
|
189
188
|
id?: string | undefined;
|
|
190
189
|
}>, {
|
|
@@ -196,8 +195,8 @@ declare const RolePermissionsParser: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodO
|
|
|
196
195
|
};
|
|
197
196
|
decision: "allow" | {
|
|
198
197
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
199
|
-
pluginId: string;
|
|
200
198
|
resourceType: string;
|
|
199
|
+
pluginId: string;
|
|
201
200
|
} | "deny";
|
|
202
201
|
}, {
|
|
203
202
|
match: "*" | {
|
|
@@ -207,8 +206,8 @@ declare const RolePermissionsParser: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodO
|
|
|
207
206
|
};
|
|
208
207
|
decision: "allow" | {
|
|
209
208
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
210
|
-
pluginId: string;
|
|
211
209
|
resourceType: string;
|
|
210
|
+
pluginId: string;
|
|
212
211
|
} | "deny";
|
|
213
212
|
id?: string | undefined;
|
|
214
213
|
}>, "many">, {
|
|
@@ -220,8 +219,8 @@ declare const RolePermissionsParser: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodO
|
|
|
220
219
|
};
|
|
221
220
|
decision: "allow" | {
|
|
222
221
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
223
|
-
pluginId: string;
|
|
224
222
|
resourceType: string;
|
|
223
|
+
pluginId: string;
|
|
225
224
|
} | "deny";
|
|
226
225
|
}[], {
|
|
227
226
|
match: "*" | {
|
|
@@ -231,8 +230,8 @@ declare const RolePermissionsParser: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodO
|
|
|
231
230
|
};
|
|
232
231
|
decision: "allow" | {
|
|
233
232
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
234
|
-
pluginId: string;
|
|
235
233
|
resourceType: string;
|
|
234
|
+
pluginId: string;
|
|
236
235
|
} | "deny";
|
|
237
236
|
id?: string | undefined;
|
|
238
237
|
}[]>;
|
|
@@ -263,12 +262,12 @@ declare const RoleParser: z.ZodObject<{
|
|
|
263
262
|
conditions: z.ZodType<PermissionCriteria<RBACPermissionCondition>, z.ZodTypeDef, PermissionCriteria<RBACPermissionCondition>>;
|
|
264
263
|
}, "strip", z.ZodTypeAny, {
|
|
265
264
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
266
|
-
pluginId: string;
|
|
267
265
|
resourceType: string;
|
|
266
|
+
pluginId: string;
|
|
268
267
|
}, {
|
|
269
268
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
270
|
-
pluginId: string;
|
|
271
269
|
resourceType: string;
|
|
270
|
+
pluginId: string;
|
|
272
271
|
}>]>;
|
|
273
272
|
}, "strip", z.ZodTypeAny, {
|
|
274
273
|
id: string;
|
|
@@ -279,8 +278,8 @@ declare const RoleParser: z.ZodObject<{
|
|
|
279
278
|
};
|
|
280
279
|
decision: "allow" | {
|
|
281
280
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
282
|
-
pluginId: string;
|
|
283
281
|
resourceType: string;
|
|
282
|
+
pluginId: string;
|
|
284
283
|
} | "deny";
|
|
285
284
|
}, {
|
|
286
285
|
match: "*" | {
|
|
@@ -290,8 +289,8 @@ declare const RoleParser: z.ZodObject<{
|
|
|
290
289
|
};
|
|
291
290
|
decision: "allow" | {
|
|
292
291
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
293
|
-
pluginId: string;
|
|
294
292
|
resourceType: string;
|
|
293
|
+
pluginId: string;
|
|
295
294
|
} | "deny";
|
|
296
295
|
id?: string | undefined;
|
|
297
296
|
}>, {
|
|
@@ -303,8 +302,8 @@ declare const RoleParser: z.ZodObject<{
|
|
|
303
302
|
};
|
|
304
303
|
decision: "allow" | {
|
|
305
304
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
306
|
-
pluginId: string;
|
|
307
305
|
resourceType: string;
|
|
306
|
+
pluginId: string;
|
|
308
307
|
} | "deny";
|
|
309
308
|
}, {
|
|
310
309
|
match: "*" | {
|
|
@@ -314,8 +313,8 @@ declare const RoleParser: z.ZodObject<{
|
|
|
314
313
|
};
|
|
315
314
|
decision: "allow" | {
|
|
316
315
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
317
|
-
pluginId: string;
|
|
318
316
|
resourceType: string;
|
|
317
|
+
pluginId: string;
|
|
319
318
|
} | "deny";
|
|
320
319
|
id?: string | undefined;
|
|
321
320
|
}>, "many">, {
|
|
@@ -327,8 +326,8 @@ declare const RoleParser: z.ZodObject<{
|
|
|
327
326
|
};
|
|
328
327
|
decision: "allow" | {
|
|
329
328
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
330
|
-
pluginId: string;
|
|
331
329
|
resourceType: string;
|
|
330
|
+
pluginId: string;
|
|
332
331
|
} | "deny";
|
|
333
332
|
}[], {
|
|
334
333
|
match: "*" | {
|
|
@@ -338,8 +337,8 @@ declare const RoleParser: z.ZodObject<{
|
|
|
338
337
|
};
|
|
339
338
|
decision: "allow" | {
|
|
340
339
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
341
|
-
pluginId: string;
|
|
342
340
|
resourceType: string;
|
|
341
|
+
pluginId: string;
|
|
343
342
|
} | "deny";
|
|
344
343
|
id?: string | undefined;
|
|
345
344
|
}[]>;
|
|
@@ -356,8 +355,8 @@ declare const RoleParser: z.ZodObject<{
|
|
|
356
355
|
};
|
|
357
356
|
decision: "allow" | {
|
|
358
357
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
359
|
-
pluginId: string;
|
|
360
358
|
resourceType: string;
|
|
359
|
+
pluginId: string;
|
|
361
360
|
} | "deny";
|
|
362
361
|
}[];
|
|
363
362
|
description?: string | undefined;
|
|
@@ -372,8 +371,8 @@ declare const RoleParser: z.ZodObject<{
|
|
|
372
371
|
};
|
|
373
372
|
decision: "allow" | {
|
|
374
373
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
375
|
-
pluginId: string;
|
|
376
374
|
resourceType: string;
|
|
375
|
+
pluginId: string;
|
|
377
376
|
} | "deny";
|
|
378
377
|
id?: string | undefined;
|
|
379
378
|
}[];
|
|
@@ -407,12 +406,12 @@ declare const RolesParser: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
|
407
406
|
conditions: z.ZodType<PermissionCriteria<RBACPermissionCondition>, z.ZodTypeDef, PermissionCriteria<RBACPermissionCondition>>;
|
|
408
407
|
}, "strip", z.ZodTypeAny, {
|
|
409
408
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
410
|
-
pluginId: string;
|
|
411
409
|
resourceType: string;
|
|
410
|
+
pluginId: string;
|
|
412
411
|
}, {
|
|
413
412
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
414
|
-
pluginId: string;
|
|
415
413
|
resourceType: string;
|
|
414
|
+
pluginId: string;
|
|
416
415
|
}>]>;
|
|
417
416
|
}, "strip", z.ZodTypeAny, {
|
|
418
417
|
id: string;
|
|
@@ -423,8 +422,8 @@ declare const RolesParser: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
|
423
422
|
};
|
|
424
423
|
decision: "allow" | {
|
|
425
424
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
426
|
-
pluginId: string;
|
|
427
425
|
resourceType: string;
|
|
426
|
+
pluginId: string;
|
|
428
427
|
} | "deny";
|
|
429
428
|
}, {
|
|
430
429
|
match: "*" | {
|
|
@@ -434,8 +433,8 @@ declare const RolesParser: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
|
434
433
|
};
|
|
435
434
|
decision: "allow" | {
|
|
436
435
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
437
|
-
pluginId: string;
|
|
438
436
|
resourceType: string;
|
|
437
|
+
pluginId: string;
|
|
439
438
|
} | "deny";
|
|
440
439
|
id?: string | undefined;
|
|
441
440
|
}>, {
|
|
@@ -447,8 +446,8 @@ declare const RolesParser: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
|
447
446
|
};
|
|
448
447
|
decision: "allow" | {
|
|
449
448
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
450
|
-
pluginId: string;
|
|
451
449
|
resourceType: string;
|
|
450
|
+
pluginId: string;
|
|
452
451
|
} | "deny";
|
|
453
452
|
}, {
|
|
454
453
|
match: "*" | {
|
|
@@ -458,8 +457,8 @@ declare const RolesParser: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
|
458
457
|
};
|
|
459
458
|
decision: "allow" | {
|
|
460
459
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
461
|
-
pluginId: string;
|
|
462
460
|
resourceType: string;
|
|
461
|
+
pluginId: string;
|
|
463
462
|
} | "deny";
|
|
464
463
|
id?: string | undefined;
|
|
465
464
|
}>, "many">, {
|
|
@@ -471,8 +470,8 @@ declare const RolesParser: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
|
471
470
|
};
|
|
472
471
|
decision: "allow" | {
|
|
473
472
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
474
|
-
pluginId: string;
|
|
475
473
|
resourceType: string;
|
|
474
|
+
pluginId: string;
|
|
476
475
|
} | "deny";
|
|
477
476
|
}[], {
|
|
478
477
|
match: "*" | {
|
|
@@ -482,8 +481,8 @@ declare const RolesParser: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
|
482
481
|
};
|
|
483
482
|
decision: "allow" | {
|
|
484
483
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
485
|
-
pluginId: string;
|
|
486
484
|
resourceType: string;
|
|
485
|
+
pluginId: string;
|
|
487
486
|
} | "deny";
|
|
488
487
|
id?: string | undefined;
|
|
489
488
|
}[]>;
|
|
@@ -500,8 +499,8 @@ declare const RolesParser: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
|
500
499
|
};
|
|
501
500
|
decision: "allow" | {
|
|
502
501
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
503
|
-
pluginId: string;
|
|
504
502
|
resourceType: string;
|
|
503
|
+
pluginId: string;
|
|
505
504
|
} | "deny";
|
|
506
505
|
}[];
|
|
507
506
|
description?: string | undefined;
|
|
@@ -516,8 +515,8 @@ declare const RolesParser: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
|
516
515
|
};
|
|
517
516
|
decision: "allow" | {
|
|
518
517
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
519
|
-
pluginId: string;
|
|
520
518
|
resourceType: string;
|
|
519
|
+
pluginId: string;
|
|
521
520
|
} | "deny";
|
|
522
521
|
id?: string | undefined;
|
|
523
522
|
}[];
|
|
@@ -536,8 +535,8 @@ declare const RolesParser: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
|
536
535
|
};
|
|
537
536
|
decision: "allow" | {
|
|
538
537
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
539
|
-
pluginId: string;
|
|
540
538
|
resourceType: string;
|
|
539
|
+
pluginId: string;
|
|
541
540
|
} | "deny";
|
|
542
541
|
}[];
|
|
543
542
|
description?: string | undefined;
|
|
@@ -552,8 +551,8 @@ declare const RolesParser: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
|
552
551
|
};
|
|
553
552
|
decision: "allow" | {
|
|
554
553
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
555
|
-
pluginId: string;
|
|
556
554
|
resourceType: string;
|
|
555
|
+
pluginId: string;
|
|
557
556
|
} | "deny";
|
|
558
557
|
id?: string | undefined;
|
|
559
558
|
}[];
|
|
@@ -568,28 +567,28 @@ declare const RoleDecisionParser: z.ZodObject<{
|
|
|
568
567
|
conditions: z.ZodType<PermissionCriteria<RBACPermissionCondition>, z.ZodTypeDef, PermissionCriteria<RBACPermissionCondition>>;
|
|
569
568
|
}, "strip", z.ZodTypeAny, {
|
|
570
569
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
571
|
-
pluginId: string;
|
|
572
570
|
resourceType: string;
|
|
571
|
+
pluginId: string;
|
|
573
572
|
}, {
|
|
574
573
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
575
|
-
pluginId: string;
|
|
576
574
|
resourceType: string;
|
|
575
|
+
pluginId: string;
|
|
577
576
|
}>]>;
|
|
578
577
|
roleId: z.ZodDefault<z.ZodString>;
|
|
579
578
|
rolePermissionId: z.ZodDefault<z.ZodString>;
|
|
580
579
|
}, "strip", z.ZodTypeAny, {
|
|
581
580
|
decision: "allow" | {
|
|
582
581
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
583
|
-
pluginId: string;
|
|
584
582
|
resourceType: string;
|
|
583
|
+
pluginId: string;
|
|
585
584
|
} | "deny";
|
|
586
585
|
roleId: string;
|
|
587
586
|
rolePermissionId: string;
|
|
588
587
|
}, {
|
|
589
588
|
decision: "allow" | {
|
|
590
589
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
591
|
-
pluginId: string;
|
|
592
590
|
resourceType: string;
|
|
591
|
+
pluginId: string;
|
|
593
592
|
} | "deny";
|
|
594
593
|
roleId?: string | undefined;
|
|
595
594
|
rolePermissionId?: string | undefined;
|
|
@@ -642,12 +641,12 @@ declare const PolicyConfigParser: z.ZodObject<{
|
|
|
642
641
|
conditions: z.ZodType<PermissionCriteria<RBACPermissionCondition>, z.ZodTypeDef, PermissionCriteria<RBACPermissionCondition>>;
|
|
643
642
|
}, "strip", z.ZodTypeAny, {
|
|
644
643
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
645
|
-
pluginId: string;
|
|
646
644
|
resourceType: string;
|
|
645
|
+
pluginId: string;
|
|
647
646
|
}, {
|
|
648
647
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
649
|
-
pluginId: string;
|
|
650
648
|
resourceType: string;
|
|
649
|
+
pluginId: string;
|
|
651
650
|
}>]>;
|
|
652
651
|
}, "strip", z.ZodTypeAny, {
|
|
653
652
|
id: string;
|
|
@@ -658,8 +657,8 @@ declare const PolicyConfigParser: z.ZodObject<{
|
|
|
658
657
|
};
|
|
659
658
|
decision: "allow" | {
|
|
660
659
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
661
|
-
pluginId: string;
|
|
662
660
|
resourceType: string;
|
|
661
|
+
pluginId: string;
|
|
663
662
|
} | "deny";
|
|
664
663
|
}, {
|
|
665
664
|
match: "*" | {
|
|
@@ -669,8 +668,8 @@ declare const PolicyConfigParser: z.ZodObject<{
|
|
|
669
668
|
};
|
|
670
669
|
decision: "allow" | {
|
|
671
670
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
672
|
-
pluginId: string;
|
|
673
671
|
resourceType: string;
|
|
672
|
+
pluginId: string;
|
|
674
673
|
} | "deny";
|
|
675
674
|
id?: string | undefined;
|
|
676
675
|
}>, {
|
|
@@ -682,8 +681,8 @@ declare const PolicyConfigParser: z.ZodObject<{
|
|
|
682
681
|
};
|
|
683
682
|
decision: "allow" | {
|
|
684
683
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
685
|
-
pluginId: string;
|
|
686
684
|
resourceType: string;
|
|
685
|
+
pluginId: string;
|
|
687
686
|
} | "deny";
|
|
688
687
|
}, {
|
|
689
688
|
match: "*" | {
|
|
@@ -693,8 +692,8 @@ declare const PolicyConfigParser: z.ZodObject<{
|
|
|
693
692
|
};
|
|
694
693
|
decision: "allow" | {
|
|
695
694
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
696
|
-
pluginId: string;
|
|
697
695
|
resourceType: string;
|
|
696
|
+
pluginId: string;
|
|
698
697
|
} | "deny";
|
|
699
698
|
id?: string | undefined;
|
|
700
699
|
}>, "many">, {
|
|
@@ -706,8 +705,8 @@ declare const PolicyConfigParser: z.ZodObject<{
|
|
|
706
705
|
};
|
|
707
706
|
decision: "allow" | {
|
|
708
707
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
709
|
-
pluginId: string;
|
|
710
708
|
resourceType: string;
|
|
709
|
+
pluginId: string;
|
|
711
710
|
} | "deny";
|
|
712
711
|
}[], {
|
|
713
712
|
match: "*" | {
|
|
@@ -717,8 +716,8 @@ declare const PolicyConfigParser: z.ZodObject<{
|
|
|
717
716
|
};
|
|
718
717
|
decision: "allow" | {
|
|
719
718
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
720
|
-
pluginId: string;
|
|
721
719
|
resourceType: string;
|
|
720
|
+
pluginId: string;
|
|
722
721
|
} | "deny";
|
|
723
722
|
id?: string | undefined;
|
|
724
723
|
}[]>;
|
|
@@ -735,8 +734,8 @@ declare const PolicyConfigParser: z.ZodObject<{
|
|
|
735
734
|
};
|
|
736
735
|
decision: "allow" | {
|
|
737
736
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
738
|
-
pluginId: string;
|
|
739
737
|
resourceType: string;
|
|
738
|
+
pluginId: string;
|
|
740
739
|
} | "deny";
|
|
741
740
|
}[];
|
|
742
741
|
description?: string | undefined;
|
|
@@ -751,8 +750,8 @@ declare const PolicyConfigParser: z.ZodObject<{
|
|
|
751
750
|
};
|
|
752
751
|
decision: "allow" | {
|
|
753
752
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
754
|
-
pluginId: string;
|
|
755
753
|
resourceType: string;
|
|
754
|
+
pluginId: string;
|
|
756
755
|
} | "deny";
|
|
757
756
|
id?: string | undefined;
|
|
758
757
|
}[];
|
|
@@ -771,8 +770,8 @@ declare const PolicyConfigParser: z.ZodObject<{
|
|
|
771
770
|
};
|
|
772
771
|
decision: "allow" | {
|
|
773
772
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
774
|
-
pluginId: string;
|
|
775
773
|
resourceType: string;
|
|
774
|
+
pluginId: string;
|
|
776
775
|
} | "deny";
|
|
777
776
|
}[];
|
|
778
777
|
description?: string | undefined;
|
|
@@ -787,8 +786,8 @@ declare const PolicyConfigParser: z.ZodObject<{
|
|
|
787
786
|
};
|
|
788
787
|
decision: "allow" | {
|
|
789
788
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
790
|
-
pluginId: string;
|
|
791
789
|
resourceType: string;
|
|
790
|
+
pluginId: string;
|
|
792
791
|
} | "deny";
|
|
793
792
|
id?: string | undefined;
|
|
794
793
|
}[];
|
|
@@ -796,10 +795,10 @@ declare const PolicyConfigParser: z.ZodObject<{
|
|
|
796
795
|
description?: string | undefined;
|
|
797
796
|
}[] | undefined>;
|
|
798
797
|
}, "strip", z.ZodTypeAny, {
|
|
799
|
-
name: string;
|
|
800
798
|
options: {
|
|
801
799
|
resolutionStrategy: "first-match" | "any-allow";
|
|
802
800
|
};
|
|
801
|
+
name: string;
|
|
803
802
|
roles: {
|
|
804
803
|
id: string;
|
|
805
804
|
name: string;
|
|
@@ -813,17 +812,17 @@ declare const PolicyConfigParser: z.ZodObject<{
|
|
|
813
812
|
};
|
|
814
813
|
decision: "allow" | {
|
|
815
814
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
816
|
-
pluginId: string;
|
|
817
815
|
resourceType: string;
|
|
816
|
+
pluginId: string;
|
|
818
817
|
} | "deny";
|
|
819
818
|
}[];
|
|
820
819
|
description?: string | undefined;
|
|
821
820
|
}[];
|
|
822
821
|
}, {
|
|
823
|
-
name?: string | undefined;
|
|
824
822
|
options?: {
|
|
825
823
|
resolutionStrategy: "first-match" | "any-allow";
|
|
826
824
|
} | undefined;
|
|
825
|
+
name?: string | undefined;
|
|
827
826
|
roles?: {
|
|
828
827
|
name: string;
|
|
829
828
|
members: string[] | "*";
|
|
@@ -835,8 +834,8 @@ declare const PolicyConfigParser: z.ZodObject<{
|
|
|
835
834
|
};
|
|
836
835
|
decision: "allow" | {
|
|
837
836
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
838
|
-
pluginId: string;
|
|
839
837
|
resourceType: string;
|
|
838
|
+
pluginId: string;
|
|
840
839
|
} | "deny";
|
|
841
840
|
id?: string | undefined;
|
|
842
841
|
}[];
|
|
@@ -880,12 +879,12 @@ declare const DefaultingPolicyConfigParser: z.ZodDefault<z.ZodObject<{
|
|
|
880
879
|
conditions: z.ZodType<PermissionCriteria<RBACPermissionCondition>, z.ZodTypeDef, PermissionCriteria<RBACPermissionCondition>>;
|
|
881
880
|
}, "strip", z.ZodTypeAny, {
|
|
882
881
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
883
|
-
pluginId: string;
|
|
884
882
|
resourceType: string;
|
|
883
|
+
pluginId: string;
|
|
885
884
|
}, {
|
|
886
885
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
887
|
-
pluginId: string;
|
|
888
886
|
resourceType: string;
|
|
887
|
+
pluginId: string;
|
|
889
888
|
}>]>;
|
|
890
889
|
}, "strip", z.ZodTypeAny, {
|
|
891
890
|
id: string;
|
|
@@ -896,8 +895,8 @@ declare const DefaultingPolicyConfigParser: z.ZodDefault<z.ZodObject<{
|
|
|
896
895
|
};
|
|
897
896
|
decision: "allow" | {
|
|
898
897
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
899
|
-
pluginId: string;
|
|
900
898
|
resourceType: string;
|
|
899
|
+
pluginId: string;
|
|
901
900
|
} | "deny";
|
|
902
901
|
}, {
|
|
903
902
|
match: "*" | {
|
|
@@ -907,8 +906,8 @@ declare const DefaultingPolicyConfigParser: z.ZodDefault<z.ZodObject<{
|
|
|
907
906
|
};
|
|
908
907
|
decision: "allow" | {
|
|
909
908
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
910
|
-
pluginId: string;
|
|
911
909
|
resourceType: string;
|
|
910
|
+
pluginId: string;
|
|
912
911
|
} | "deny";
|
|
913
912
|
id?: string | undefined;
|
|
914
913
|
}>, {
|
|
@@ -920,8 +919,8 @@ declare const DefaultingPolicyConfigParser: z.ZodDefault<z.ZodObject<{
|
|
|
920
919
|
};
|
|
921
920
|
decision: "allow" | {
|
|
922
921
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
923
|
-
pluginId: string;
|
|
924
922
|
resourceType: string;
|
|
923
|
+
pluginId: string;
|
|
925
924
|
} | "deny";
|
|
926
925
|
}, {
|
|
927
926
|
match: "*" | {
|
|
@@ -931,8 +930,8 @@ declare const DefaultingPolicyConfigParser: z.ZodDefault<z.ZodObject<{
|
|
|
931
930
|
};
|
|
932
931
|
decision: "allow" | {
|
|
933
932
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
934
|
-
pluginId: string;
|
|
935
933
|
resourceType: string;
|
|
934
|
+
pluginId: string;
|
|
936
935
|
} | "deny";
|
|
937
936
|
id?: string | undefined;
|
|
938
937
|
}>, "many">, {
|
|
@@ -944,8 +943,8 @@ declare const DefaultingPolicyConfigParser: z.ZodDefault<z.ZodObject<{
|
|
|
944
943
|
};
|
|
945
944
|
decision: "allow" | {
|
|
946
945
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
947
|
-
pluginId: string;
|
|
948
946
|
resourceType: string;
|
|
947
|
+
pluginId: string;
|
|
949
948
|
} | "deny";
|
|
950
949
|
}[], {
|
|
951
950
|
match: "*" | {
|
|
@@ -955,8 +954,8 @@ declare const DefaultingPolicyConfigParser: z.ZodDefault<z.ZodObject<{
|
|
|
955
954
|
};
|
|
956
955
|
decision: "allow" | {
|
|
957
956
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
958
|
-
pluginId: string;
|
|
959
957
|
resourceType: string;
|
|
958
|
+
pluginId: string;
|
|
960
959
|
} | "deny";
|
|
961
960
|
id?: string | undefined;
|
|
962
961
|
}[]>;
|
|
@@ -973,8 +972,8 @@ declare const DefaultingPolicyConfigParser: z.ZodDefault<z.ZodObject<{
|
|
|
973
972
|
};
|
|
974
973
|
decision: "allow" | {
|
|
975
974
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
976
|
-
pluginId: string;
|
|
977
975
|
resourceType: string;
|
|
976
|
+
pluginId: string;
|
|
978
977
|
} | "deny";
|
|
979
978
|
}[];
|
|
980
979
|
description?: string | undefined;
|
|
@@ -989,8 +988,8 @@ declare const DefaultingPolicyConfigParser: z.ZodDefault<z.ZodObject<{
|
|
|
989
988
|
};
|
|
990
989
|
decision: "allow" | {
|
|
991
990
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
992
|
-
pluginId: string;
|
|
993
991
|
resourceType: string;
|
|
992
|
+
pluginId: string;
|
|
994
993
|
} | "deny";
|
|
995
994
|
id?: string | undefined;
|
|
996
995
|
}[];
|
|
@@ -1009,8 +1008,8 @@ declare const DefaultingPolicyConfigParser: z.ZodDefault<z.ZodObject<{
|
|
|
1009
1008
|
};
|
|
1010
1009
|
decision: "allow" | {
|
|
1011
1010
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
1012
|
-
pluginId: string;
|
|
1013
1011
|
resourceType: string;
|
|
1012
|
+
pluginId: string;
|
|
1014
1013
|
} | "deny";
|
|
1015
1014
|
}[];
|
|
1016
1015
|
description?: string | undefined;
|
|
@@ -1025,8 +1024,8 @@ declare const DefaultingPolicyConfigParser: z.ZodDefault<z.ZodObject<{
|
|
|
1025
1024
|
};
|
|
1026
1025
|
decision: "allow" | {
|
|
1027
1026
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
1028
|
-
pluginId: string;
|
|
1029
1027
|
resourceType: string;
|
|
1028
|
+
pluginId: string;
|
|
1030
1029
|
} | "deny";
|
|
1031
1030
|
id?: string | undefined;
|
|
1032
1031
|
}[];
|
|
@@ -1034,10 +1033,10 @@ declare const DefaultingPolicyConfigParser: z.ZodDefault<z.ZodObject<{
|
|
|
1034
1033
|
description?: string | undefined;
|
|
1035
1034
|
}[] | undefined>;
|
|
1036
1035
|
}, "strip", z.ZodTypeAny, {
|
|
1037
|
-
name: string;
|
|
1038
1036
|
options: {
|
|
1039
1037
|
resolutionStrategy: "first-match" | "any-allow";
|
|
1040
1038
|
};
|
|
1039
|
+
name: string;
|
|
1041
1040
|
roles: {
|
|
1042
1041
|
id: string;
|
|
1043
1042
|
name: string;
|
|
@@ -1051,17 +1050,17 @@ declare const DefaultingPolicyConfigParser: z.ZodDefault<z.ZodObject<{
|
|
|
1051
1050
|
};
|
|
1052
1051
|
decision: "allow" | {
|
|
1053
1052
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
1054
|
-
pluginId: string;
|
|
1055
1053
|
resourceType: string;
|
|
1054
|
+
pluginId: string;
|
|
1056
1055
|
} | "deny";
|
|
1057
1056
|
}[];
|
|
1058
1057
|
description?: string | undefined;
|
|
1059
1058
|
}[];
|
|
1060
1059
|
}, {
|
|
1061
|
-
name?: string | undefined;
|
|
1062
1060
|
options?: {
|
|
1063
1061
|
resolutionStrategy: "first-match" | "any-allow";
|
|
1064
1062
|
} | undefined;
|
|
1063
|
+
name?: string | undefined;
|
|
1065
1064
|
roles?: {
|
|
1066
1065
|
name: string;
|
|
1067
1066
|
members: string[] | "*";
|
|
@@ -1073,8 +1072,8 @@ declare const DefaultingPolicyConfigParser: z.ZodDefault<z.ZodObject<{
|
|
|
1073
1072
|
};
|
|
1074
1073
|
decision: "allow" | {
|
|
1075
1074
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
1076
|
-
pluginId: string;
|
|
1077
1075
|
resourceType: string;
|
|
1076
|
+
pluginId: string;
|
|
1078
1077
|
} | "deny";
|
|
1079
1078
|
id?: string | undefined;
|
|
1080
1079
|
}[];
|
|
@@ -1091,7 +1090,7 @@ declare function isAnyOfPermissionCriteria(conditions: PermissionCriteria<RBACPe
|
|
|
1091
1090
|
/** @public */
|
|
1092
1091
|
declare function isNotPermissionCriteria(conditions: PermissionCriteria<RBACPermissionCondition>): conditions is NotCriteria<RBACPermissionCondition>;
|
|
1093
1092
|
/** @public */
|
|
1094
|
-
declare const PolicyParser: z.ZodObject<
|
|
1093
|
+
declare const PolicyParser: z.ZodObject<{
|
|
1095
1094
|
name: z.ZodDefault<z.ZodString>;
|
|
1096
1095
|
options: z.ZodDefault<z.ZodObject<{
|
|
1097
1096
|
resolutionStrategy: z.ZodUnion<[z.ZodLiteral<"first-match">, z.ZodLiteral<"any-allow">]>;
|
|
@@ -1126,12 +1125,12 @@ declare const PolicyParser: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1126
1125
|
conditions: z.ZodType<PermissionCriteria<RBACPermissionCondition>, z.ZodTypeDef, PermissionCriteria<RBACPermissionCondition>>;
|
|
1127
1126
|
}, "strip", z.ZodTypeAny, {
|
|
1128
1127
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
1129
|
-
pluginId: string;
|
|
1130
1128
|
resourceType: string;
|
|
1129
|
+
pluginId: string;
|
|
1131
1130
|
}, {
|
|
1132
1131
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
1133
|
-
pluginId: string;
|
|
1134
1132
|
resourceType: string;
|
|
1133
|
+
pluginId: string;
|
|
1135
1134
|
}>]>;
|
|
1136
1135
|
}, "strip", z.ZodTypeAny, {
|
|
1137
1136
|
id: string;
|
|
@@ -1142,8 +1141,8 @@ declare const PolicyParser: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1142
1141
|
};
|
|
1143
1142
|
decision: "allow" | {
|
|
1144
1143
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
1145
|
-
pluginId: string;
|
|
1146
1144
|
resourceType: string;
|
|
1145
|
+
pluginId: string;
|
|
1147
1146
|
} | "deny";
|
|
1148
1147
|
}, {
|
|
1149
1148
|
match: "*" | {
|
|
@@ -1153,8 +1152,8 @@ declare const PolicyParser: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1153
1152
|
};
|
|
1154
1153
|
decision: "allow" | {
|
|
1155
1154
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
1156
|
-
pluginId: string;
|
|
1157
1155
|
resourceType: string;
|
|
1156
|
+
pluginId: string;
|
|
1158
1157
|
} | "deny";
|
|
1159
1158
|
id?: string | undefined;
|
|
1160
1159
|
}>, {
|
|
@@ -1166,8 +1165,8 @@ declare const PolicyParser: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1166
1165
|
};
|
|
1167
1166
|
decision: "allow" | {
|
|
1168
1167
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
1169
|
-
pluginId: string;
|
|
1170
1168
|
resourceType: string;
|
|
1169
|
+
pluginId: string;
|
|
1171
1170
|
} | "deny";
|
|
1172
1171
|
}, {
|
|
1173
1172
|
match: "*" | {
|
|
@@ -1177,8 +1176,8 @@ declare const PolicyParser: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1177
1176
|
};
|
|
1178
1177
|
decision: "allow" | {
|
|
1179
1178
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
1180
|
-
pluginId: string;
|
|
1181
1179
|
resourceType: string;
|
|
1180
|
+
pluginId: string;
|
|
1182
1181
|
} | "deny";
|
|
1183
1182
|
id?: string | undefined;
|
|
1184
1183
|
}>, "many">, {
|
|
@@ -1190,8 +1189,8 @@ declare const PolicyParser: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1190
1189
|
};
|
|
1191
1190
|
decision: "allow" | {
|
|
1192
1191
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
1193
|
-
pluginId: string;
|
|
1194
1192
|
resourceType: string;
|
|
1193
|
+
pluginId: string;
|
|
1195
1194
|
} | "deny";
|
|
1196
1195
|
}[], {
|
|
1197
1196
|
match: "*" | {
|
|
@@ -1201,8 +1200,8 @@ declare const PolicyParser: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1201
1200
|
};
|
|
1202
1201
|
decision: "allow" | {
|
|
1203
1202
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
1204
|
-
pluginId: string;
|
|
1205
1203
|
resourceType: string;
|
|
1204
|
+
pluginId: string;
|
|
1206
1205
|
} | "deny";
|
|
1207
1206
|
id?: string | undefined;
|
|
1208
1207
|
}[]>;
|
|
@@ -1219,8 +1218,8 @@ declare const PolicyParser: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1219
1218
|
};
|
|
1220
1219
|
decision: "allow" | {
|
|
1221
1220
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
1222
|
-
pluginId: string;
|
|
1223
1221
|
resourceType: string;
|
|
1222
|
+
pluginId: string;
|
|
1224
1223
|
} | "deny";
|
|
1225
1224
|
}[];
|
|
1226
1225
|
description?: string | undefined;
|
|
@@ -1235,8 +1234,8 @@ declare const PolicyParser: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1235
1234
|
};
|
|
1236
1235
|
decision: "allow" | {
|
|
1237
1236
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
1238
|
-
pluginId: string;
|
|
1239
1237
|
resourceType: string;
|
|
1238
|
+
pluginId: string;
|
|
1240
1239
|
} | "deny";
|
|
1241
1240
|
id?: string | undefined;
|
|
1242
1241
|
}[];
|
|
@@ -1255,8 +1254,8 @@ declare const PolicyParser: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1255
1254
|
};
|
|
1256
1255
|
decision: "allow" | {
|
|
1257
1256
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
1258
|
-
pluginId: string;
|
|
1259
1257
|
resourceType: string;
|
|
1258
|
+
pluginId: string;
|
|
1260
1259
|
} | "deny";
|
|
1261
1260
|
}[];
|
|
1262
1261
|
description?: string | undefined;
|
|
@@ -1271,15 +1270,15 @@ declare const PolicyParser: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1271
1270
|
};
|
|
1272
1271
|
decision: "allow" | {
|
|
1273
1272
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
1274
|
-
pluginId: string;
|
|
1275
1273
|
resourceType: string;
|
|
1274
|
+
pluginId: string;
|
|
1276
1275
|
} | "deny";
|
|
1277
1276
|
id?: string | undefined;
|
|
1278
1277
|
}[];
|
|
1279
1278
|
id?: string | undefined;
|
|
1280
1279
|
description?: string | undefined;
|
|
1281
1280
|
}[] | undefined>;
|
|
1282
|
-
}
|
|
1281
|
+
} & {
|
|
1283
1282
|
/**
|
|
1284
1283
|
* Internal ID for lookups/references.
|
|
1285
1284
|
*/
|
|
@@ -1316,13 +1315,14 @@ declare const PolicyParser: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1316
1315
|
* Current status of the policy.
|
|
1317
1316
|
*/
|
|
1318
1317
|
status: z.ZodEnum<["draft", "active", "inactive"]>;
|
|
1319
|
-
}
|
|
1318
|
+
}, "strip", z.ZodTypeAny, {
|
|
1320
1319
|
id: string;
|
|
1321
|
-
name: string;
|
|
1322
1320
|
status: "active" | "inactive" | "draft";
|
|
1323
1321
|
options: {
|
|
1324
1322
|
resolutionStrategy: "first-match" | "any-allow";
|
|
1325
1323
|
};
|
|
1324
|
+
name: string;
|
|
1325
|
+
createdBy: string;
|
|
1326
1326
|
createdAt: string;
|
|
1327
1327
|
updatedAt: string;
|
|
1328
1328
|
roles: {
|
|
@@ -1338,13 +1338,12 @@ declare const PolicyParser: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1338
1338
|
};
|
|
1339
1339
|
decision: "allow" | {
|
|
1340
1340
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
1341
|
-
pluginId: string;
|
|
1342
1341
|
resourceType: string;
|
|
1342
|
+
pluginId: string;
|
|
1343
1343
|
} | "deny";
|
|
1344
1344
|
}[];
|
|
1345
1345
|
description?: string | undefined;
|
|
1346
1346
|
}[];
|
|
1347
|
-
createdBy: string;
|
|
1348
1347
|
updatedBy: string;
|
|
1349
1348
|
description?: string | null | undefined;
|
|
1350
1349
|
lastPublishedAt?: string | null | undefined;
|
|
@@ -1352,14 +1351,14 @@ declare const PolicyParser: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1352
1351
|
}, {
|
|
1353
1352
|
id: string;
|
|
1354
1353
|
status: "active" | "inactive" | "draft";
|
|
1354
|
+
createdBy: string;
|
|
1355
1355
|
createdAt: string;
|
|
1356
1356
|
updatedAt: string;
|
|
1357
|
-
createdBy: string;
|
|
1358
1357
|
updatedBy: string;
|
|
1359
|
-
name?: string | undefined;
|
|
1360
1358
|
options?: {
|
|
1361
1359
|
resolutionStrategy: "first-match" | "any-allow";
|
|
1362
1360
|
} | undefined;
|
|
1361
|
+
name?: string | undefined;
|
|
1363
1362
|
description?: string | null | undefined;
|
|
1364
1363
|
roles?: {
|
|
1365
1364
|
name: string;
|
|
@@ -1372,8 +1371,8 @@ declare const PolicyParser: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1372
1371
|
};
|
|
1373
1372
|
decision: "allow" | {
|
|
1374
1373
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
1375
|
-
pluginId: string;
|
|
1376
1374
|
resourceType: string;
|
|
1375
|
+
pluginId: string;
|
|
1377
1376
|
} | "deny";
|
|
1378
1377
|
id?: string | undefined;
|
|
1379
1378
|
}[];
|
|
@@ -1445,15 +1444,15 @@ declare const CreateDraftRequestParser: z.ZodObject<{
|
|
|
1445
1444
|
decision: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"allow">, z.ZodLiteral<"deny">]>, z.ZodObject<{
|
|
1446
1445
|
pluginId: z.ZodString;
|
|
1447
1446
|
resourceType: z.ZodString;
|
|
1448
|
-
conditions: z.ZodType<
|
|
1447
|
+
conditions: z.ZodType<_backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>, z.ZodTypeDef, _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>>;
|
|
1449
1448
|
}, "strip", z.ZodTypeAny, {
|
|
1450
|
-
conditions:
|
|
1451
|
-
pluginId: string;
|
|
1449
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1452
1450
|
resourceType: string;
|
|
1453
|
-
}, {
|
|
1454
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
1455
1451
|
pluginId: string;
|
|
1452
|
+
}, {
|
|
1453
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1456
1454
|
resourceType: string;
|
|
1455
|
+
pluginId: string;
|
|
1457
1456
|
}>]>;
|
|
1458
1457
|
}, "strip", z.ZodTypeAny, {
|
|
1459
1458
|
id: string;
|
|
@@ -1463,9 +1462,9 @@ declare const CreateDraftRequestParser: z.ZodObject<{
|
|
|
1463
1462
|
resourceType?: string | undefined;
|
|
1464
1463
|
};
|
|
1465
1464
|
decision: "allow" | {
|
|
1466
|
-
conditions:
|
|
1467
|
-
pluginId: string;
|
|
1465
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1468
1466
|
resourceType: string;
|
|
1467
|
+
pluginId: string;
|
|
1469
1468
|
} | "deny";
|
|
1470
1469
|
}, {
|
|
1471
1470
|
match: "*" | {
|
|
@@ -1474,9 +1473,9 @@ declare const CreateDraftRequestParser: z.ZodObject<{
|
|
|
1474
1473
|
resourceType?: string | undefined;
|
|
1475
1474
|
};
|
|
1476
1475
|
decision: "allow" | {
|
|
1477
|
-
conditions:
|
|
1478
|
-
pluginId: string;
|
|
1476
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1479
1477
|
resourceType: string;
|
|
1478
|
+
pluginId: string;
|
|
1480
1479
|
} | "deny";
|
|
1481
1480
|
id?: string | undefined;
|
|
1482
1481
|
}>, {
|
|
@@ -1487,9 +1486,9 @@ declare const CreateDraftRequestParser: z.ZodObject<{
|
|
|
1487
1486
|
resourceType?: string | undefined;
|
|
1488
1487
|
};
|
|
1489
1488
|
decision: "allow" | {
|
|
1490
|
-
conditions:
|
|
1491
|
-
pluginId: string;
|
|
1489
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1492
1490
|
resourceType: string;
|
|
1491
|
+
pluginId: string;
|
|
1493
1492
|
} | "deny";
|
|
1494
1493
|
}, {
|
|
1495
1494
|
match: "*" | {
|
|
@@ -1498,9 +1497,9 @@ declare const CreateDraftRequestParser: z.ZodObject<{
|
|
|
1498
1497
|
resourceType?: string | undefined;
|
|
1499
1498
|
};
|
|
1500
1499
|
decision: "allow" | {
|
|
1501
|
-
conditions:
|
|
1502
|
-
pluginId: string;
|
|
1500
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1503
1501
|
resourceType: string;
|
|
1502
|
+
pluginId: string;
|
|
1504
1503
|
} | "deny";
|
|
1505
1504
|
id?: string | undefined;
|
|
1506
1505
|
}>, "many">, {
|
|
@@ -1511,9 +1510,9 @@ declare const CreateDraftRequestParser: z.ZodObject<{
|
|
|
1511
1510
|
resourceType?: string | undefined;
|
|
1512
1511
|
};
|
|
1513
1512
|
decision: "allow" | {
|
|
1514
|
-
conditions:
|
|
1515
|
-
pluginId: string;
|
|
1513
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1516
1514
|
resourceType: string;
|
|
1515
|
+
pluginId: string;
|
|
1517
1516
|
} | "deny";
|
|
1518
1517
|
}[], {
|
|
1519
1518
|
match: "*" | {
|
|
@@ -1522,9 +1521,9 @@ declare const CreateDraftRequestParser: z.ZodObject<{
|
|
|
1522
1521
|
resourceType?: string | undefined;
|
|
1523
1522
|
};
|
|
1524
1523
|
decision: "allow" | {
|
|
1525
|
-
conditions:
|
|
1526
|
-
pluginId: string;
|
|
1524
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1527
1525
|
resourceType: string;
|
|
1526
|
+
pluginId: string;
|
|
1528
1527
|
} | "deny";
|
|
1529
1528
|
id?: string | undefined;
|
|
1530
1529
|
}[]>;
|
|
@@ -1540,9 +1539,9 @@ declare const CreateDraftRequestParser: z.ZodObject<{
|
|
|
1540
1539
|
resourceType?: string | undefined;
|
|
1541
1540
|
};
|
|
1542
1541
|
decision: "allow" | {
|
|
1543
|
-
conditions:
|
|
1544
|
-
pluginId: string;
|
|
1542
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1545
1543
|
resourceType: string;
|
|
1544
|
+
pluginId: string;
|
|
1546
1545
|
} | "deny";
|
|
1547
1546
|
}[];
|
|
1548
1547
|
description?: string | undefined;
|
|
@@ -1556,9 +1555,9 @@ declare const CreateDraftRequestParser: z.ZodObject<{
|
|
|
1556
1555
|
resourceType?: string | undefined;
|
|
1557
1556
|
};
|
|
1558
1557
|
decision: "allow" | {
|
|
1559
|
-
conditions:
|
|
1560
|
-
pluginId: string;
|
|
1558
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1561
1559
|
resourceType: string;
|
|
1560
|
+
pluginId: string;
|
|
1562
1561
|
} | "deny";
|
|
1563
1562
|
id?: string | undefined;
|
|
1564
1563
|
}[];
|
|
@@ -1576,9 +1575,9 @@ declare const CreateDraftRequestParser: z.ZodObject<{
|
|
|
1576
1575
|
resourceType?: string | undefined;
|
|
1577
1576
|
};
|
|
1578
1577
|
decision: "allow" | {
|
|
1579
|
-
conditions:
|
|
1580
|
-
pluginId: string;
|
|
1578
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1581
1579
|
resourceType: string;
|
|
1580
|
+
pluginId: string;
|
|
1582
1581
|
} | "deny";
|
|
1583
1582
|
}[];
|
|
1584
1583
|
description?: string | undefined;
|
|
@@ -1592,9 +1591,9 @@ declare const CreateDraftRequestParser: z.ZodObject<{
|
|
|
1592
1591
|
resourceType?: string | undefined;
|
|
1593
1592
|
};
|
|
1594
1593
|
decision: "allow" | {
|
|
1595
|
-
conditions:
|
|
1596
|
-
pluginId: string;
|
|
1594
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1597
1595
|
resourceType: string;
|
|
1596
|
+
pluginId: string;
|
|
1598
1597
|
} | "deny";
|
|
1599
1598
|
id?: string | undefined;
|
|
1600
1599
|
}[];
|
|
@@ -1602,10 +1601,10 @@ declare const CreateDraftRequestParser: z.ZodObject<{
|
|
|
1602
1601
|
description?: string | undefined;
|
|
1603
1602
|
}[] | undefined>;
|
|
1604
1603
|
}, "strip", z.ZodTypeAny, {
|
|
1605
|
-
name: string;
|
|
1606
1604
|
options: {
|
|
1607
1605
|
resolutionStrategy: "first-match" | "any-allow";
|
|
1608
1606
|
};
|
|
1607
|
+
name: string;
|
|
1609
1608
|
roles: {
|
|
1610
1609
|
id: string;
|
|
1611
1610
|
name: string;
|
|
@@ -1618,18 +1617,18 @@ declare const CreateDraftRequestParser: z.ZodObject<{
|
|
|
1618
1617
|
resourceType?: string | undefined;
|
|
1619
1618
|
};
|
|
1620
1619
|
decision: "allow" | {
|
|
1621
|
-
conditions:
|
|
1622
|
-
pluginId: string;
|
|
1620
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1623
1621
|
resourceType: string;
|
|
1622
|
+
pluginId: string;
|
|
1624
1623
|
} | "deny";
|
|
1625
1624
|
}[];
|
|
1626
1625
|
description?: string | undefined;
|
|
1627
1626
|
}[];
|
|
1628
1627
|
}, {
|
|
1629
|
-
name?: string | undefined;
|
|
1630
1628
|
options?: {
|
|
1631
1629
|
resolutionStrategy: "first-match" | "any-allow";
|
|
1632
1630
|
} | undefined;
|
|
1631
|
+
name?: string | undefined;
|
|
1633
1632
|
roles?: {
|
|
1634
1633
|
name: string;
|
|
1635
1634
|
members: string[] | "*";
|
|
@@ -1640,9 +1639,9 @@ declare const CreateDraftRequestParser: z.ZodObject<{
|
|
|
1640
1639
|
resourceType?: string | undefined;
|
|
1641
1640
|
};
|
|
1642
1641
|
decision: "allow" | {
|
|
1643
|
-
conditions:
|
|
1644
|
-
pluginId: string;
|
|
1642
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1645
1643
|
resourceType: string;
|
|
1644
|
+
pluginId: string;
|
|
1646
1645
|
} | "deny";
|
|
1647
1646
|
id?: string | undefined;
|
|
1648
1647
|
}[];
|
|
@@ -1651,16 +1650,16 @@ declare const CreateDraftRequestParser: z.ZodObject<{
|
|
|
1651
1650
|
}[] | undefined;
|
|
1652
1651
|
}>;
|
|
1653
1652
|
/** @public */
|
|
1654
|
-
declare const UpdateDraftRequestParser: z.ZodObject<
|
|
1655
|
-
name: z.ZodDefault<z.ZodString
|
|
1656
|
-
options: z.ZodDefault<z.ZodObject<{
|
|
1653
|
+
declare const UpdateDraftRequestParser: z.ZodObject<{} & {
|
|
1654
|
+
name: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1655
|
+
options: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
1657
1656
|
resolutionStrategy: z.ZodUnion<[z.ZodLiteral<"first-match">, z.ZodLiteral<"any-allow">]>;
|
|
1658
1657
|
}, "strip", z.ZodTypeAny, {
|
|
1659
1658
|
resolutionStrategy: "first-match" | "any-allow";
|
|
1660
1659
|
}, {
|
|
1661
1660
|
resolutionStrategy: "first-match" | "any-allow";
|
|
1662
|
-
}
|
|
1663
|
-
roles: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1661
|
+
}>>>;
|
|
1662
|
+
roles: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1664
1663
|
name: z.ZodString;
|
|
1665
1664
|
description: z.ZodOptional<z.ZodString>;
|
|
1666
1665
|
id: z.ZodDefault<z.ZodString>;
|
|
@@ -1683,15 +1682,15 @@ declare const UpdateDraftRequestParser: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1683
1682
|
decision: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"allow">, z.ZodLiteral<"deny">]>, z.ZodObject<{
|
|
1684
1683
|
pluginId: z.ZodString;
|
|
1685
1684
|
resourceType: z.ZodString;
|
|
1686
|
-
conditions: z.ZodType<
|
|
1685
|
+
conditions: z.ZodType<_backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>, z.ZodTypeDef, _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>>;
|
|
1687
1686
|
}, "strip", z.ZodTypeAny, {
|
|
1688
|
-
conditions:
|
|
1689
|
-
pluginId: string;
|
|
1687
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1690
1688
|
resourceType: string;
|
|
1691
|
-
}, {
|
|
1692
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
1693
1689
|
pluginId: string;
|
|
1690
|
+
}, {
|
|
1691
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1694
1692
|
resourceType: string;
|
|
1693
|
+
pluginId: string;
|
|
1695
1694
|
}>]>;
|
|
1696
1695
|
}, "strip", z.ZodTypeAny, {
|
|
1697
1696
|
id: string;
|
|
@@ -1701,9 +1700,9 @@ declare const UpdateDraftRequestParser: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1701
1700
|
resourceType?: string | undefined;
|
|
1702
1701
|
};
|
|
1703
1702
|
decision: "allow" | {
|
|
1704
|
-
conditions:
|
|
1705
|
-
pluginId: string;
|
|
1703
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1706
1704
|
resourceType: string;
|
|
1705
|
+
pluginId: string;
|
|
1707
1706
|
} | "deny";
|
|
1708
1707
|
}, {
|
|
1709
1708
|
match: "*" | {
|
|
@@ -1712,9 +1711,9 @@ declare const UpdateDraftRequestParser: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1712
1711
|
resourceType?: string | undefined;
|
|
1713
1712
|
};
|
|
1714
1713
|
decision: "allow" | {
|
|
1715
|
-
conditions:
|
|
1716
|
-
pluginId: string;
|
|
1714
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1717
1715
|
resourceType: string;
|
|
1716
|
+
pluginId: string;
|
|
1718
1717
|
} | "deny";
|
|
1719
1718
|
id?: string | undefined;
|
|
1720
1719
|
}>, {
|
|
@@ -1725,9 +1724,9 @@ declare const UpdateDraftRequestParser: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1725
1724
|
resourceType?: string | undefined;
|
|
1726
1725
|
};
|
|
1727
1726
|
decision: "allow" | {
|
|
1728
|
-
conditions:
|
|
1729
|
-
pluginId: string;
|
|
1727
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1730
1728
|
resourceType: string;
|
|
1729
|
+
pluginId: string;
|
|
1731
1730
|
} | "deny";
|
|
1732
1731
|
}, {
|
|
1733
1732
|
match: "*" | {
|
|
@@ -1736,9 +1735,9 @@ declare const UpdateDraftRequestParser: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1736
1735
|
resourceType?: string | undefined;
|
|
1737
1736
|
};
|
|
1738
1737
|
decision: "allow" | {
|
|
1739
|
-
conditions:
|
|
1740
|
-
pluginId: string;
|
|
1738
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1741
1739
|
resourceType: string;
|
|
1740
|
+
pluginId: string;
|
|
1742
1741
|
} | "deny";
|
|
1743
1742
|
id?: string | undefined;
|
|
1744
1743
|
}>, "many">, {
|
|
@@ -1749,9 +1748,9 @@ declare const UpdateDraftRequestParser: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1749
1748
|
resourceType?: string | undefined;
|
|
1750
1749
|
};
|
|
1751
1750
|
decision: "allow" | {
|
|
1752
|
-
conditions:
|
|
1753
|
-
pluginId: string;
|
|
1751
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1754
1752
|
resourceType: string;
|
|
1753
|
+
pluginId: string;
|
|
1755
1754
|
} | "deny";
|
|
1756
1755
|
}[], {
|
|
1757
1756
|
match: "*" | {
|
|
@@ -1760,9 +1759,9 @@ declare const UpdateDraftRequestParser: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1760
1759
|
resourceType?: string | undefined;
|
|
1761
1760
|
};
|
|
1762
1761
|
decision: "allow" | {
|
|
1763
|
-
conditions:
|
|
1764
|
-
pluginId: string;
|
|
1762
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1765
1763
|
resourceType: string;
|
|
1764
|
+
pluginId: string;
|
|
1766
1765
|
} | "deny";
|
|
1767
1766
|
id?: string | undefined;
|
|
1768
1767
|
}[]>;
|
|
@@ -1778,9 +1777,9 @@ declare const UpdateDraftRequestParser: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1778
1777
|
resourceType?: string | undefined;
|
|
1779
1778
|
};
|
|
1780
1779
|
decision: "allow" | {
|
|
1781
|
-
conditions:
|
|
1782
|
-
pluginId: string;
|
|
1780
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1783
1781
|
resourceType: string;
|
|
1782
|
+
pluginId: string;
|
|
1784
1783
|
} | "deny";
|
|
1785
1784
|
}[];
|
|
1786
1785
|
description?: string | undefined;
|
|
@@ -1794,9 +1793,9 @@ declare const UpdateDraftRequestParser: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1794
1793
|
resourceType?: string | undefined;
|
|
1795
1794
|
};
|
|
1796
1795
|
decision: "allow" | {
|
|
1797
|
-
conditions:
|
|
1798
|
-
pluginId: string;
|
|
1796
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1799
1797
|
resourceType: string;
|
|
1798
|
+
pluginId: string;
|
|
1800
1799
|
} | "deny";
|
|
1801
1800
|
id?: string | undefined;
|
|
1802
1801
|
}[];
|
|
@@ -1814,9 +1813,9 @@ declare const UpdateDraftRequestParser: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1814
1813
|
resourceType?: string | undefined;
|
|
1815
1814
|
};
|
|
1816
1815
|
decision: "allow" | {
|
|
1817
|
-
conditions:
|
|
1818
|
-
pluginId: string;
|
|
1816
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1819
1817
|
resourceType: string;
|
|
1818
|
+
pluginId: string;
|
|
1820
1819
|
} | "deny";
|
|
1821
1820
|
}[];
|
|
1822
1821
|
description?: string | undefined;
|
|
@@ -1830,444 +1829,68 @@ declare const UpdateDraftRequestParser: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1830
1829
|
resourceType?: string | undefined;
|
|
1831
1830
|
};
|
|
1832
1831
|
decision: "allow" | {
|
|
1833
|
-
conditions:
|
|
1834
|
-
pluginId: string;
|
|
1832
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1835
1833
|
resourceType: string;
|
|
1834
|
+
pluginId: string;
|
|
1836
1835
|
} | "deny";
|
|
1837
1836
|
id?: string | undefined;
|
|
1838
1837
|
}[];
|
|
1839
1838
|
id?: string | undefined;
|
|
1840
1839
|
description?: string | undefined;
|
|
1841
|
-
}[] | undefined
|
|
1842
|
-
}, {
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
name: z.ZodString;
|
|
1853
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1854
|
-
id: z.ZodDefault<z.ZodString>;
|
|
1855
|
-
members: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">]>;
|
|
1856
|
-
permissions: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
1857
|
-
id: z.ZodDefault<z.ZodString>;
|
|
1858
|
-
match: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodObject<{
|
|
1859
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1860
|
-
actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1861
|
-
resourceType: z.ZodOptional<z.ZodString>;
|
|
1862
|
-
}, "strip", z.ZodTypeAny, {
|
|
1863
|
-
name?: string | undefined;
|
|
1864
|
-
actions?: string[] | undefined;
|
|
1865
|
-
resourceType?: string | undefined;
|
|
1866
|
-
}, {
|
|
1867
|
-
name?: string | undefined;
|
|
1868
|
-
actions?: string[] | undefined;
|
|
1869
|
-
resourceType?: string | undefined;
|
|
1870
|
-
}>]>;
|
|
1871
|
-
decision: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"allow">, z.ZodLiteral<"deny">]>, z.ZodObject<{
|
|
1872
|
-
pluginId: z.ZodString;
|
|
1873
|
-
resourceType: z.ZodString;
|
|
1874
|
-
conditions: z.ZodType<_backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>, z.ZodTypeDef, _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>>;
|
|
1875
|
-
}, "strip", z.ZodTypeAny, {
|
|
1876
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
1877
|
-
pluginId: string;
|
|
1878
|
-
resourceType: string;
|
|
1879
|
-
}, {
|
|
1880
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
1881
|
-
pluginId: string;
|
|
1882
|
-
resourceType: string;
|
|
1883
|
-
}>]>;
|
|
1884
|
-
}, "strip", z.ZodTypeAny, {
|
|
1885
|
-
id: string;
|
|
1886
|
-
match: "*" | {
|
|
1887
|
-
name?: string | undefined;
|
|
1888
|
-
actions?: string[] | undefined;
|
|
1889
|
-
resourceType?: string | undefined;
|
|
1890
|
-
};
|
|
1891
|
-
decision: "allow" | {
|
|
1892
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
1893
|
-
pluginId: string;
|
|
1894
|
-
resourceType: string;
|
|
1895
|
-
} | "deny";
|
|
1896
|
-
}, {
|
|
1897
|
-
match: "*" | {
|
|
1898
|
-
name?: string | undefined;
|
|
1899
|
-
actions?: string[] | undefined;
|
|
1900
|
-
resourceType?: string | undefined;
|
|
1901
|
-
};
|
|
1902
|
-
decision: "allow" | {
|
|
1903
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
1904
|
-
pluginId: string;
|
|
1905
|
-
resourceType: string;
|
|
1906
|
-
} | "deny";
|
|
1907
|
-
id?: string | undefined;
|
|
1908
|
-
}>, {
|
|
1909
|
-
id: string;
|
|
1910
|
-
match: "*" | {
|
|
1911
|
-
name?: string | undefined;
|
|
1912
|
-
actions?: string[] | undefined;
|
|
1913
|
-
resourceType?: string | undefined;
|
|
1914
|
-
};
|
|
1915
|
-
decision: "allow" | {
|
|
1916
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
1917
|
-
pluginId: string;
|
|
1918
|
-
resourceType: string;
|
|
1919
|
-
} | "deny";
|
|
1920
|
-
}, {
|
|
1921
|
-
match: "*" | {
|
|
1922
|
-
name?: string | undefined;
|
|
1923
|
-
actions?: string[] | undefined;
|
|
1924
|
-
resourceType?: string | undefined;
|
|
1925
|
-
};
|
|
1926
|
-
decision: "allow" | {
|
|
1927
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
1928
|
-
pluginId: string;
|
|
1929
|
-
resourceType: string;
|
|
1930
|
-
} | "deny";
|
|
1931
|
-
id?: string | undefined;
|
|
1932
|
-
}>, "many">, {
|
|
1933
|
-
id: string;
|
|
1934
|
-
match: "*" | {
|
|
1935
|
-
name?: string | undefined;
|
|
1936
|
-
actions?: string[] | undefined;
|
|
1937
|
-
resourceType?: string | undefined;
|
|
1938
|
-
};
|
|
1939
|
-
decision: "allow" | {
|
|
1940
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
1941
|
-
pluginId: string;
|
|
1942
|
-
resourceType: string;
|
|
1943
|
-
} | "deny";
|
|
1944
|
-
}[], {
|
|
1945
|
-
match: "*" | {
|
|
1946
|
-
name?: string | undefined;
|
|
1947
|
-
actions?: string[] | undefined;
|
|
1948
|
-
resourceType?: string | undefined;
|
|
1949
|
-
};
|
|
1950
|
-
decision: "allow" | {
|
|
1951
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
1952
|
-
pluginId: string;
|
|
1953
|
-
resourceType: string;
|
|
1954
|
-
} | "deny";
|
|
1955
|
-
id?: string | undefined;
|
|
1956
|
-
}[]>;
|
|
1957
|
-
}, "strip", z.ZodTypeAny, {
|
|
1958
|
-
id: string;
|
|
1959
|
-
name: string;
|
|
1960
|
-
members: string[] | "*";
|
|
1961
|
-
permissions: {
|
|
1962
|
-
id: string;
|
|
1963
|
-
match: "*" | {
|
|
1964
|
-
name?: string | undefined;
|
|
1965
|
-
actions?: string[] | undefined;
|
|
1966
|
-
resourceType?: string | undefined;
|
|
1967
|
-
};
|
|
1968
|
-
decision: "allow" | {
|
|
1969
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
1970
|
-
pluginId: string;
|
|
1971
|
-
resourceType: string;
|
|
1972
|
-
} | "deny";
|
|
1973
|
-
}[];
|
|
1974
|
-
description?: string | undefined;
|
|
1975
|
-
}, {
|
|
1976
|
-
name: string;
|
|
1977
|
-
members: string[] | "*";
|
|
1978
|
-
permissions: {
|
|
1979
|
-
match: "*" | {
|
|
1980
|
-
name?: string | undefined;
|
|
1981
|
-
actions?: string[] | undefined;
|
|
1982
|
-
resourceType?: string | undefined;
|
|
1983
|
-
};
|
|
1984
|
-
decision: "allow" | {
|
|
1985
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
1986
|
-
pluginId: string;
|
|
1987
|
-
resourceType: string;
|
|
1988
|
-
} | "deny";
|
|
1989
|
-
id?: string | undefined;
|
|
1990
|
-
}[];
|
|
1991
|
-
id?: string | undefined;
|
|
1992
|
-
description?: string | undefined;
|
|
1993
|
-
}>, "many">>, {
|
|
1994
|
-
id: string;
|
|
1995
|
-
name: string;
|
|
1996
|
-
members: string[] | "*";
|
|
1997
|
-
permissions: {
|
|
1998
|
-
id: string;
|
|
1999
|
-
match: "*" | {
|
|
2000
|
-
name?: string | undefined;
|
|
2001
|
-
actions?: string[] | undefined;
|
|
2002
|
-
resourceType?: string | undefined;
|
|
2003
|
-
};
|
|
2004
|
-
decision: "allow" | {
|
|
2005
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
2006
|
-
pluginId: string;
|
|
2007
|
-
resourceType: string;
|
|
2008
|
-
} | "deny";
|
|
2009
|
-
}[];
|
|
2010
|
-
description?: string | undefined;
|
|
2011
|
-
}[], {
|
|
2012
|
-
name: string;
|
|
2013
|
-
members: string[] | "*";
|
|
2014
|
-
permissions: {
|
|
2015
|
-
match: "*" | {
|
|
2016
|
-
name?: string | undefined;
|
|
2017
|
-
actions?: string[] | undefined;
|
|
2018
|
-
resourceType?: string | undefined;
|
|
2019
|
-
};
|
|
2020
|
-
decision: "allow" | {
|
|
2021
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
2022
|
-
pluginId: string;
|
|
2023
|
-
resourceType: string;
|
|
2024
|
-
} | "deny";
|
|
2025
|
-
id?: string | undefined;
|
|
2026
|
-
}[];
|
|
2027
|
-
id?: string | undefined;
|
|
2028
|
-
description?: string | undefined;
|
|
2029
|
-
}[] | undefined>>;
|
|
2030
|
-
}>, "strip", z.ZodTypeAny, {
|
|
2031
|
-
name?: string | undefined;
|
|
2032
|
-
options?: {
|
|
2033
|
-
resolutionStrategy: "first-match" | "any-allow";
|
|
2034
|
-
} | undefined;
|
|
2035
|
-
roles?: {
|
|
2036
|
-
id: string;
|
|
2037
|
-
name: string;
|
|
2038
|
-
members: string[] | "*";
|
|
2039
|
-
permissions: {
|
|
2040
|
-
id: string;
|
|
2041
|
-
match: "*" | {
|
|
2042
|
-
name?: string | undefined;
|
|
2043
|
-
actions?: string[] | undefined;
|
|
2044
|
-
resourceType?: string | undefined;
|
|
2045
|
-
};
|
|
2046
|
-
decision: "allow" | {
|
|
2047
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
2048
|
-
pluginId: string;
|
|
2049
|
-
resourceType: string;
|
|
2050
|
-
} | "deny";
|
|
2051
|
-
}[];
|
|
2052
|
-
description?: string | undefined;
|
|
2053
|
-
}[] | undefined;
|
|
2054
|
-
}, {
|
|
2055
|
-
name?: string | undefined;
|
|
2056
|
-
options?: {
|
|
2057
|
-
resolutionStrategy: "first-match" | "any-allow";
|
|
2058
|
-
} | undefined;
|
|
2059
|
-
roles?: {
|
|
2060
|
-
name: string;
|
|
2061
|
-
members: string[] | "*";
|
|
2062
|
-
permissions: {
|
|
2063
|
-
match: "*" | {
|
|
2064
|
-
name?: string | undefined;
|
|
2065
|
-
actions?: string[] | undefined;
|
|
2066
|
-
resourceType?: string | undefined;
|
|
2067
|
-
};
|
|
2068
|
-
decision: "allow" | {
|
|
2069
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
2070
|
-
pluginId: string;
|
|
2071
|
-
resourceType: string;
|
|
2072
|
-
} | "deny";
|
|
2073
|
-
id?: string | undefined;
|
|
2074
|
-
}[];
|
|
2075
|
-
id?: string | undefined;
|
|
2076
|
-
description?: string | undefined;
|
|
2077
|
-
}[] | undefined;
|
|
2078
|
-
}>;
|
|
2079
|
-
/** @public */
|
|
2080
|
-
declare const PublishVersionRequestParser: z.ZodObject<{
|
|
2081
|
-
description: z.ZodOptional<z.ZodString>;
|
|
2082
|
-
update: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
2083
|
-
name: z.ZodDefault<z.ZodString>;
|
|
2084
|
-
options: z.ZodDefault<z.ZodObject<{
|
|
2085
|
-
resolutionStrategy: z.ZodUnion<[z.ZodLiteral<"first-match">, z.ZodLiteral<"any-allow">]>;
|
|
2086
|
-
}, "strip", z.ZodTypeAny, {
|
|
2087
|
-
resolutionStrategy: "first-match" | "any-allow";
|
|
2088
|
-
}, {
|
|
2089
|
-
resolutionStrategy: "first-match" | "any-allow";
|
|
2090
|
-
}>>;
|
|
2091
|
-
roles: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2092
|
-
name: z.ZodString;
|
|
2093
|
-
description: z.ZodOptional<z.ZodString>;
|
|
2094
|
-
id: z.ZodDefault<z.ZodString>;
|
|
2095
|
-
members: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">]>;
|
|
2096
|
-
permissions: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
2097
|
-
id: z.ZodDefault<z.ZodString>;
|
|
2098
|
-
match: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodObject<{
|
|
2099
|
-
name: z.ZodOptional<z.ZodString>;
|
|
2100
|
-
actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2101
|
-
resourceType: z.ZodOptional<z.ZodString>;
|
|
2102
|
-
}, "strip", z.ZodTypeAny, {
|
|
2103
|
-
name?: string | undefined;
|
|
2104
|
-
actions?: string[] | undefined;
|
|
2105
|
-
resourceType?: string | undefined;
|
|
2106
|
-
}, {
|
|
2107
|
-
name?: string | undefined;
|
|
2108
|
-
actions?: string[] | undefined;
|
|
2109
|
-
resourceType?: string | undefined;
|
|
2110
|
-
}>]>;
|
|
2111
|
-
decision: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"allow">, z.ZodLiteral<"deny">]>, z.ZodObject<{
|
|
2112
|
-
pluginId: z.ZodString;
|
|
2113
|
-
resourceType: z.ZodString;
|
|
2114
|
-
conditions: z.ZodType<_backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>, z.ZodTypeDef, _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>>;
|
|
2115
|
-
}, "strip", z.ZodTypeAny, {
|
|
2116
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
2117
|
-
pluginId: string;
|
|
2118
|
-
resourceType: string;
|
|
2119
|
-
}, {
|
|
2120
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
2121
|
-
pluginId: string;
|
|
2122
|
-
resourceType: string;
|
|
2123
|
-
}>]>;
|
|
2124
|
-
}, "strip", z.ZodTypeAny, {
|
|
2125
|
-
id: string;
|
|
2126
|
-
match: "*" | {
|
|
2127
|
-
name?: string | undefined;
|
|
2128
|
-
actions?: string[] | undefined;
|
|
2129
|
-
resourceType?: string | undefined;
|
|
2130
|
-
};
|
|
2131
|
-
decision: "allow" | {
|
|
2132
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
2133
|
-
pluginId: string;
|
|
2134
|
-
resourceType: string;
|
|
2135
|
-
} | "deny";
|
|
2136
|
-
}, {
|
|
2137
|
-
match: "*" | {
|
|
2138
|
-
name?: string | undefined;
|
|
2139
|
-
actions?: string[] | undefined;
|
|
2140
|
-
resourceType?: string | undefined;
|
|
2141
|
-
};
|
|
2142
|
-
decision: "allow" | {
|
|
2143
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
2144
|
-
pluginId: string;
|
|
2145
|
-
resourceType: string;
|
|
2146
|
-
} | "deny";
|
|
2147
|
-
id?: string | undefined;
|
|
2148
|
-
}>, {
|
|
2149
|
-
id: string;
|
|
2150
|
-
match: "*" | {
|
|
2151
|
-
name?: string | undefined;
|
|
2152
|
-
actions?: string[] | undefined;
|
|
2153
|
-
resourceType?: string | undefined;
|
|
2154
|
-
};
|
|
2155
|
-
decision: "allow" | {
|
|
2156
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
2157
|
-
pluginId: string;
|
|
2158
|
-
resourceType: string;
|
|
2159
|
-
} | "deny";
|
|
2160
|
-
}, {
|
|
2161
|
-
match: "*" | {
|
|
2162
|
-
name?: string | undefined;
|
|
2163
|
-
actions?: string[] | undefined;
|
|
2164
|
-
resourceType?: string | undefined;
|
|
2165
|
-
};
|
|
2166
|
-
decision: "allow" | {
|
|
2167
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
2168
|
-
pluginId: string;
|
|
2169
|
-
resourceType: string;
|
|
2170
|
-
} | "deny";
|
|
2171
|
-
id?: string | undefined;
|
|
2172
|
-
}>, "many">, {
|
|
2173
|
-
id: string;
|
|
2174
|
-
match: "*" | {
|
|
2175
|
-
name?: string | undefined;
|
|
2176
|
-
actions?: string[] | undefined;
|
|
2177
|
-
resourceType?: string | undefined;
|
|
2178
|
-
};
|
|
2179
|
-
decision: "allow" | {
|
|
2180
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
2181
|
-
pluginId: string;
|
|
2182
|
-
resourceType: string;
|
|
2183
|
-
} | "deny";
|
|
2184
|
-
}[], {
|
|
2185
|
-
match: "*" | {
|
|
2186
|
-
name?: string | undefined;
|
|
2187
|
-
actions?: string[] | undefined;
|
|
2188
|
-
resourceType?: string | undefined;
|
|
2189
|
-
};
|
|
2190
|
-
decision: "allow" | {
|
|
2191
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
2192
|
-
pluginId: string;
|
|
2193
|
-
resourceType: string;
|
|
2194
|
-
} | "deny";
|
|
2195
|
-
id?: string | undefined;
|
|
2196
|
-
}[]>;
|
|
2197
|
-
}, "strip", z.ZodTypeAny, {
|
|
2198
|
-
id: string;
|
|
2199
|
-
name: string;
|
|
2200
|
-
members: string[] | "*";
|
|
2201
|
-
permissions: {
|
|
2202
|
-
id: string;
|
|
2203
|
-
match: "*" | {
|
|
2204
|
-
name?: string | undefined;
|
|
2205
|
-
actions?: string[] | undefined;
|
|
2206
|
-
resourceType?: string | undefined;
|
|
2207
|
-
};
|
|
2208
|
-
decision: "allow" | {
|
|
2209
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
2210
|
-
pluginId: string;
|
|
2211
|
-
resourceType: string;
|
|
2212
|
-
} | "deny";
|
|
2213
|
-
}[];
|
|
2214
|
-
description?: string | undefined;
|
|
2215
|
-
}, {
|
|
2216
|
-
name: string;
|
|
2217
|
-
members: string[] | "*";
|
|
2218
|
-
permissions: {
|
|
2219
|
-
match: "*" | {
|
|
2220
|
-
name?: string | undefined;
|
|
2221
|
-
actions?: string[] | undefined;
|
|
2222
|
-
resourceType?: string | undefined;
|
|
2223
|
-
};
|
|
2224
|
-
decision: "allow" | {
|
|
2225
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
2226
|
-
pluginId: string;
|
|
2227
|
-
resourceType: string;
|
|
2228
|
-
} | "deny";
|
|
2229
|
-
id?: string | undefined;
|
|
2230
|
-
}[];
|
|
2231
|
-
id?: string | undefined;
|
|
2232
|
-
description?: string | undefined;
|
|
2233
|
-
}>, "many">>, {
|
|
1840
|
+
}[] | undefined>>;
|
|
1841
|
+
}, "strip", z.ZodTypeAny, {
|
|
1842
|
+
options?: {
|
|
1843
|
+
resolutionStrategy: "first-match" | "any-allow";
|
|
1844
|
+
} | undefined;
|
|
1845
|
+
name?: string | undefined;
|
|
1846
|
+
roles?: {
|
|
1847
|
+
id: string;
|
|
1848
|
+
name: string;
|
|
1849
|
+
members: string[] | "*";
|
|
1850
|
+
permissions: {
|
|
2234
1851
|
id: string;
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
}
|
|
1852
|
+
match: "*" | {
|
|
1853
|
+
name?: string | undefined;
|
|
1854
|
+
actions?: string[] | undefined;
|
|
1855
|
+
resourceType?: string | undefined;
|
|
1856
|
+
};
|
|
1857
|
+
decision: "allow" | {
|
|
1858
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1859
|
+
resourceType: string;
|
|
1860
|
+
pluginId: string;
|
|
1861
|
+
} | "deny";
|
|
1862
|
+
}[];
|
|
1863
|
+
description?: string | undefined;
|
|
1864
|
+
}[] | undefined;
|
|
1865
|
+
}, {
|
|
1866
|
+
options?: {
|
|
1867
|
+
resolutionStrategy: "first-match" | "any-allow";
|
|
1868
|
+
} | undefined;
|
|
1869
|
+
name?: string | undefined;
|
|
1870
|
+
roles?: {
|
|
1871
|
+
name: string;
|
|
1872
|
+
members: string[] | "*";
|
|
1873
|
+
permissions: {
|
|
1874
|
+
match: "*" | {
|
|
1875
|
+
name?: string | undefined;
|
|
1876
|
+
actions?: string[] | undefined;
|
|
1877
|
+
resourceType?: string | undefined;
|
|
1878
|
+
};
|
|
1879
|
+
decision: "allow" | {
|
|
1880
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1881
|
+
resourceType: string;
|
|
1882
|
+
pluginId: string;
|
|
1883
|
+
} | "deny";
|
|
2267
1884
|
id?: string | undefined;
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
1885
|
+
}[];
|
|
1886
|
+
id?: string | undefined;
|
|
1887
|
+
description?: string | undefined;
|
|
1888
|
+
}[] | undefined;
|
|
1889
|
+
}>;
|
|
1890
|
+
/** @public */
|
|
1891
|
+
declare const PublishVersionRequestParser: z.ZodObject<{
|
|
1892
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1893
|
+
update: z.ZodOptional<z.ZodObject<{} & {
|
|
2271
1894
|
name: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
2272
1895
|
options: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
2273
1896
|
resolutionStrategy: z.ZodUnion<[z.ZodLiteral<"first-match">, z.ZodLiteral<"any-allow">]>;
|
|
@@ -2299,15 +1922,15 @@ declare const PublishVersionRequestParser: z.ZodObject<{
|
|
|
2299
1922
|
decision: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"allow">, z.ZodLiteral<"deny">]>, z.ZodObject<{
|
|
2300
1923
|
pluginId: z.ZodString;
|
|
2301
1924
|
resourceType: z.ZodString;
|
|
2302
|
-
conditions: z.ZodType<
|
|
1925
|
+
conditions: z.ZodType<_backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>, z.ZodTypeDef, _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>>;
|
|
2303
1926
|
}, "strip", z.ZodTypeAny, {
|
|
2304
|
-
conditions:
|
|
2305
|
-
pluginId: string;
|
|
1927
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2306
1928
|
resourceType: string;
|
|
2307
|
-
}, {
|
|
2308
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
2309
1929
|
pluginId: string;
|
|
1930
|
+
}, {
|
|
1931
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2310
1932
|
resourceType: string;
|
|
1933
|
+
pluginId: string;
|
|
2311
1934
|
}>]>;
|
|
2312
1935
|
}, "strip", z.ZodTypeAny, {
|
|
2313
1936
|
id: string;
|
|
@@ -2317,9 +1940,9 @@ declare const PublishVersionRequestParser: z.ZodObject<{
|
|
|
2317
1940
|
resourceType?: string | undefined;
|
|
2318
1941
|
};
|
|
2319
1942
|
decision: "allow" | {
|
|
2320
|
-
conditions:
|
|
2321
|
-
pluginId: string;
|
|
1943
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2322
1944
|
resourceType: string;
|
|
1945
|
+
pluginId: string;
|
|
2323
1946
|
} | "deny";
|
|
2324
1947
|
}, {
|
|
2325
1948
|
match: "*" | {
|
|
@@ -2328,9 +1951,9 @@ declare const PublishVersionRequestParser: z.ZodObject<{
|
|
|
2328
1951
|
resourceType?: string | undefined;
|
|
2329
1952
|
};
|
|
2330
1953
|
decision: "allow" | {
|
|
2331
|
-
conditions:
|
|
2332
|
-
pluginId: string;
|
|
1954
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2333
1955
|
resourceType: string;
|
|
1956
|
+
pluginId: string;
|
|
2334
1957
|
} | "deny";
|
|
2335
1958
|
id?: string | undefined;
|
|
2336
1959
|
}>, {
|
|
@@ -2341,9 +1964,9 @@ declare const PublishVersionRequestParser: z.ZodObject<{
|
|
|
2341
1964
|
resourceType?: string | undefined;
|
|
2342
1965
|
};
|
|
2343
1966
|
decision: "allow" | {
|
|
2344
|
-
conditions:
|
|
2345
|
-
pluginId: string;
|
|
1967
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2346
1968
|
resourceType: string;
|
|
1969
|
+
pluginId: string;
|
|
2347
1970
|
} | "deny";
|
|
2348
1971
|
}, {
|
|
2349
1972
|
match: "*" | {
|
|
@@ -2352,9 +1975,9 @@ declare const PublishVersionRequestParser: z.ZodObject<{
|
|
|
2352
1975
|
resourceType?: string | undefined;
|
|
2353
1976
|
};
|
|
2354
1977
|
decision: "allow" | {
|
|
2355
|
-
conditions:
|
|
2356
|
-
pluginId: string;
|
|
1978
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2357
1979
|
resourceType: string;
|
|
1980
|
+
pluginId: string;
|
|
2358
1981
|
} | "deny";
|
|
2359
1982
|
id?: string | undefined;
|
|
2360
1983
|
}>, "many">, {
|
|
@@ -2365,9 +1988,9 @@ declare const PublishVersionRequestParser: z.ZodObject<{
|
|
|
2365
1988
|
resourceType?: string | undefined;
|
|
2366
1989
|
};
|
|
2367
1990
|
decision: "allow" | {
|
|
2368
|
-
conditions:
|
|
2369
|
-
pluginId: string;
|
|
1991
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2370
1992
|
resourceType: string;
|
|
1993
|
+
pluginId: string;
|
|
2371
1994
|
} | "deny";
|
|
2372
1995
|
}[], {
|
|
2373
1996
|
match: "*" | {
|
|
@@ -2376,9 +1999,9 @@ declare const PublishVersionRequestParser: z.ZodObject<{
|
|
|
2376
1999
|
resourceType?: string | undefined;
|
|
2377
2000
|
};
|
|
2378
2001
|
decision: "allow" | {
|
|
2379
|
-
conditions:
|
|
2380
|
-
pluginId: string;
|
|
2002
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2381
2003
|
resourceType: string;
|
|
2004
|
+
pluginId: string;
|
|
2382
2005
|
} | "deny";
|
|
2383
2006
|
id?: string | undefined;
|
|
2384
2007
|
}[]>;
|
|
@@ -2394,9 +2017,9 @@ declare const PublishVersionRequestParser: z.ZodObject<{
|
|
|
2394
2017
|
resourceType?: string | undefined;
|
|
2395
2018
|
};
|
|
2396
2019
|
decision: "allow" | {
|
|
2397
|
-
conditions:
|
|
2398
|
-
pluginId: string;
|
|
2020
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2399
2021
|
resourceType: string;
|
|
2022
|
+
pluginId: string;
|
|
2400
2023
|
} | "deny";
|
|
2401
2024
|
}[];
|
|
2402
2025
|
description?: string | undefined;
|
|
@@ -2410,9 +2033,9 @@ declare const PublishVersionRequestParser: z.ZodObject<{
|
|
|
2410
2033
|
resourceType?: string | undefined;
|
|
2411
2034
|
};
|
|
2412
2035
|
decision: "allow" | {
|
|
2413
|
-
conditions:
|
|
2414
|
-
pluginId: string;
|
|
2036
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2415
2037
|
resourceType: string;
|
|
2038
|
+
pluginId: string;
|
|
2416
2039
|
} | "deny";
|
|
2417
2040
|
id?: string | undefined;
|
|
2418
2041
|
}[];
|
|
@@ -2430,9 +2053,9 @@ declare const PublishVersionRequestParser: z.ZodObject<{
|
|
|
2430
2053
|
resourceType?: string | undefined;
|
|
2431
2054
|
};
|
|
2432
2055
|
decision: "allow" | {
|
|
2433
|
-
conditions:
|
|
2434
|
-
pluginId: string;
|
|
2056
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2435
2057
|
resourceType: string;
|
|
2058
|
+
pluginId: string;
|
|
2436
2059
|
} | "deny";
|
|
2437
2060
|
}[];
|
|
2438
2061
|
description?: string | undefined;
|
|
@@ -2446,20 +2069,20 @@ declare const PublishVersionRequestParser: z.ZodObject<{
|
|
|
2446
2069
|
resourceType?: string | undefined;
|
|
2447
2070
|
};
|
|
2448
2071
|
decision: "allow" | {
|
|
2449
|
-
conditions:
|
|
2450
|
-
pluginId: string;
|
|
2072
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2451
2073
|
resourceType: string;
|
|
2074
|
+
pluginId: string;
|
|
2452
2075
|
} | "deny";
|
|
2453
2076
|
id?: string | undefined;
|
|
2454
2077
|
}[];
|
|
2455
2078
|
id?: string | undefined;
|
|
2456
2079
|
description?: string | undefined;
|
|
2457
2080
|
}[] | undefined>>;
|
|
2458
|
-
}
|
|
2459
|
-
name?: string | undefined;
|
|
2081
|
+
}, "strip", z.ZodTypeAny, {
|
|
2460
2082
|
options?: {
|
|
2461
2083
|
resolutionStrategy: "first-match" | "any-allow";
|
|
2462
2084
|
} | undefined;
|
|
2085
|
+
name?: string | undefined;
|
|
2463
2086
|
roles?: {
|
|
2464
2087
|
id: string;
|
|
2465
2088
|
name: string;
|
|
@@ -2472,18 +2095,18 @@ declare const PublishVersionRequestParser: z.ZodObject<{
|
|
|
2472
2095
|
resourceType?: string | undefined;
|
|
2473
2096
|
};
|
|
2474
2097
|
decision: "allow" | {
|
|
2475
|
-
conditions:
|
|
2476
|
-
pluginId: string;
|
|
2098
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2477
2099
|
resourceType: string;
|
|
2100
|
+
pluginId: string;
|
|
2478
2101
|
} | "deny";
|
|
2479
2102
|
}[];
|
|
2480
2103
|
description?: string | undefined;
|
|
2481
2104
|
}[] | undefined;
|
|
2482
2105
|
}, {
|
|
2483
|
-
name?: string | undefined;
|
|
2484
2106
|
options?: {
|
|
2485
2107
|
resolutionStrategy: "first-match" | "any-allow";
|
|
2486
2108
|
} | undefined;
|
|
2109
|
+
name?: string | undefined;
|
|
2487
2110
|
roles?: {
|
|
2488
2111
|
name: string;
|
|
2489
2112
|
members: string[] | "*";
|
|
@@ -2494,9 +2117,9 @@ declare const PublishVersionRequestParser: z.ZodObject<{
|
|
|
2494
2117
|
resourceType?: string | undefined;
|
|
2495
2118
|
};
|
|
2496
2119
|
decision: "allow" | {
|
|
2497
|
-
conditions:
|
|
2498
|
-
pluginId: string;
|
|
2120
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2499
2121
|
resourceType: string;
|
|
2122
|
+
pluginId: string;
|
|
2500
2123
|
} | "deny";
|
|
2501
2124
|
id?: string | undefined;
|
|
2502
2125
|
}[];
|
|
@@ -2507,10 +2130,10 @@ declare const PublishVersionRequestParser: z.ZodObject<{
|
|
|
2507
2130
|
}, "strip", z.ZodTypeAny, {
|
|
2508
2131
|
description?: string | undefined;
|
|
2509
2132
|
update?: {
|
|
2510
|
-
name?: string | undefined;
|
|
2511
2133
|
options?: {
|
|
2512
2134
|
resolutionStrategy: "first-match" | "any-allow";
|
|
2513
2135
|
} | undefined;
|
|
2136
|
+
name?: string | undefined;
|
|
2514
2137
|
roles?: {
|
|
2515
2138
|
id: string;
|
|
2516
2139
|
name: string;
|
|
@@ -2523,9 +2146,9 @@ declare const PublishVersionRequestParser: z.ZodObject<{
|
|
|
2523
2146
|
resourceType?: string | undefined;
|
|
2524
2147
|
};
|
|
2525
2148
|
decision: "allow" | {
|
|
2526
|
-
conditions:
|
|
2527
|
-
pluginId: string;
|
|
2149
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2528
2150
|
resourceType: string;
|
|
2151
|
+
pluginId: string;
|
|
2529
2152
|
} | "deny";
|
|
2530
2153
|
}[];
|
|
2531
2154
|
description?: string | undefined;
|
|
@@ -2534,10 +2157,10 @@ declare const PublishVersionRequestParser: z.ZodObject<{
|
|
|
2534
2157
|
}, {
|
|
2535
2158
|
description?: string | undefined;
|
|
2536
2159
|
update?: {
|
|
2537
|
-
name?: string | undefined;
|
|
2538
2160
|
options?: {
|
|
2539
2161
|
resolutionStrategy: "first-match" | "any-allow";
|
|
2540
2162
|
} | undefined;
|
|
2163
|
+
name?: string | undefined;
|
|
2541
2164
|
roles?: {
|
|
2542
2165
|
name: string;
|
|
2543
2166
|
members: string[] | "*";
|
|
@@ -2548,9 +2171,9 @@ declare const PublishVersionRequestParser: z.ZodObject<{
|
|
|
2548
2171
|
resourceType?: string | undefined;
|
|
2549
2172
|
};
|
|
2550
2173
|
decision: "allow" | {
|
|
2551
|
-
conditions:
|
|
2552
|
-
pluginId: string;
|
|
2174
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2553
2175
|
resourceType: string;
|
|
2176
|
+
pluginId: string;
|
|
2554
2177
|
} | "deny";
|
|
2555
2178
|
id?: string | undefined;
|
|
2556
2179
|
}[];
|
|
@@ -2562,94 +2185,93 @@ declare const PublishVersionRequestParser: z.ZodObject<{
|
|
|
2562
2185
|
/** @public */
|
|
2563
2186
|
declare const TestPolicyDecisionResponseParser: z.ZodObject<{
|
|
2564
2187
|
decision: z.ZodUnion<[z.ZodObject<{
|
|
2565
|
-
result: z.ZodUnion<[z.ZodLiteral<
|
|
2188
|
+
result: z.ZodUnion<[z.ZodLiteral<_backstage_plugin_permission_common.AuthorizeResult.ALLOW>, z.ZodLiteral<_backstage_plugin_permission_common.AuthorizeResult.DENY>]>;
|
|
2566
2189
|
}, "strip", z.ZodTypeAny, {
|
|
2567
|
-
result:
|
|
2190
|
+
result: _backstage_plugin_permission_common.AuthorizeResult.DENY | _backstage_plugin_permission_common.AuthorizeResult.ALLOW;
|
|
2568
2191
|
}, {
|
|
2569
|
-
result:
|
|
2570
|
-
}>, z.ZodObject<
|
|
2192
|
+
result: _backstage_plugin_permission_common.AuthorizeResult.DENY | _backstage_plugin_permission_common.AuthorizeResult.ALLOW;
|
|
2193
|
+
}>, z.ZodObject<{
|
|
2571
2194
|
pluginId: z.ZodString;
|
|
2572
2195
|
resourceType: z.ZodString;
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<_backstage_plugin_permission_common_index.PermissionCondition>;
|
|
2580
|
-
pluginId: string;
|
|
2196
|
+
} & {
|
|
2197
|
+
result: z.ZodLiteral<_backstage_plugin_permission_common.AuthorizeResult.CONDITIONAL>;
|
|
2198
|
+
conditions: z.ZodType<_backstage_plugin_permission_common.PermissionCriteria<_backstage_plugin_permission_common.PermissionCondition>, z.ZodTypeDef, _backstage_plugin_permission_common.PermissionCriteria<_backstage_plugin_permission_common.PermissionCondition>>;
|
|
2199
|
+
}, "strip", z.ZodTypeAny, {
|
|
2200
|
+
result: _backstage_plugin_permission_common.AuthorizeResult.CONDITIONAL;
|
|
2201
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<_backstage_plugin_permission_common.PermissionCondition>;
|
|
2581
2202
|
resourceType: string;
|
|
2582
|
-
}, {
|
|
2583
|
-
result: _backstage_plugin_permission_common_index.AuthorizeResult.CONDITIONAL;
|
|
2584
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<_backstage_plugin_permission_common_index.PermissionCondition>;
|
|
2585
2203
|
pluginId: string;
|
|
2204
|
+
}, {
|
|
2205
|
+
result: _backstage_plugin_permission_common.AuthorizeResult.CONDITIONAL;
|
|
2206
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<_backstage_plugin_permission_common.PermissionCondition>;
|
|
2586
2207
|
resourceType: string;
|
|
2208
|
+
pluginId: string;
|
|
2587
2209
|
}>]>;
|
|
2588
2210
|
decisionOrigin: z.ZodArray<z.ZodObject<{
|
|
2589
2211
|
decision: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"allow">, z.ZodLiteral<"deny">]>, z.ZodObject<{
|
|
2590
2212
|
pluginId: z.ZodString;
|
|
2591
2213
|
resourceType: z.ZodString;
|
|
2592
|
-
conditions: z.ZodType<
|
|
2214
|
+
conditions: z.ZodType<_backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>, z.ZodTypeDef, _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>>;
|
|
2593
2215
|
}, "strip", z.ZodTypeAny, {
|
|
2594
|
-
conditions:
|
|
2595
|
-
pluginId: string;
|
|
2216
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2596
2217
|
resourceType: string;
|
|
2597
|
-
}, {
|
|
2598
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
2599
2218
|
pluginId: string;
|
|
2219
|
+
}, {
|
|
2220
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2600
2221
|
resourceType: string;
|
|
2222
|
+
pluginId: string;
|
|
2601
2223
|
}>]>;
|
|
2602
2224
|
roleId: z.ZodDefault<z.ZodString>;
|
|
2603
2225
|
rolePermissionId: z.ZodDefault<z.ZodString>;
|
|
2604
2226
|
}, "strip", z.ZodTypeAny, {
|
|
2605
2227
|
decision: "allow" | {
|
|
2606
|
-
conditions:
|
|
2607
|
-
pluginId: string;
|
|
2228
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2608
2229
|
resourceType: string;
|
|
2230
|
+
pluginId: string;
|
|
2609
2231
|
} | "deny";
|
|
2610
2232
|
roleId: string;
|
|
2611
2233
|
rolePermissionId: string;
|
|
2612
2234
|
}, {
|
|
2613
2235
|
decision: "allow" | {
|
|
2614
|
-
conditions:
|
|
2615
|
-
pluginId: string;
|
|
2236
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2616
2237
|
resourceType: string;
|
|
2238
|
+
pluginId: string;
|
|
2617
2239
|
} | "deny";
|
|
2618
2240
|
roleId?: string | undefined;
|
|
2619
2241
|
rolePermissionId?: string | undefined;
|
|
2620
2242
|
}>, "many">;
|
|
2621
2243
|
}, "strip", z.ZodTypeAny, {
|
|
2622
2244
|
decision: {
|
|
2623
|
-
result:
|
|
2245
|
+
result: _backstage_plugin_permission_common.AuthorizeResult.DENY | _backstage_plugin_permission_common.AuthorizeResult.ALLOW;
|
|
2624
2246
|
} | {
|
|
2625
|
-
result:
|
|
2626
|
-
conditions:
|
|
2627
|
-
pluginId: string;
|
|
2247
|
+
result: _backstage_plugin_permission_common.AuthorizeResult.CONDITIONAL;
|
|
2248
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<_backstage_plugin_permission_common.PermissionCondition>;
|
|
2628
2249
|
resourceType: string;
|
|
2250
|
+
pluginId: string;
|
|
2629
2251
|
};
|
|
2630
2252
|
decisionOrigin: {
|
|
2631
2253
|
decision: "allow" | {
|
|
2632
|
-
conditions:
|
|
2633
|
-
pluginId: string;
|
|
2254
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2634
2255
|
resourceType: string;
|
|
2256
|
+
pluginId: string;
|
|
2635
2257
|
} | "deny";
|
|
2636
2258
|
roleId: string;
|
|
2637
2259
|
rolePermissionId: string;
|
|
2638
2260
|
}[];
|
|
2639
2261
|
}, {
|
|
2640
2262
|
decision: {
|
|
2641
|
-
result:
|
|
2263
|
+
result: _backstage_plugin_permission_common.AuthorizeResult.DENY | _backstage_plugin_permission_common.AuthorizeResult.ALLOW;
|
|
2642
2264
|
} | {
|
|
2643
|
-
result:
|
|
2644
|
-
conditions:
|
|
2645
|
-
pluginId: string;
|
|
2265
|
+
result: _backstage_plugin_permission_common.AuthorizeResult.CONDITIONAL;
|
|
2266
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<_backstage_plugin_permission_common.PermissionCondition>;
|
|
2646
2267
|
resourceType: string;
|
|
2268
|
+
pluginId: string;
|
|
2647
2269
|
};
|
|
2648
2270
|
decisionOrigin: {
|
|
2649
2271
|
decision: "allow" | {
|
|
2650
|
-
conditions:
|
|
2651
|
-
pluginId: string;
|
|
2272
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2652
2273
|
resourceType: string;
|
|
2274
|
+
pluginId: string;
|
|
2653
2275
|
} | "deny";
|
|
2654
2276
|
roleId?: string | undefined;
|
|
2655
2277
|
rolePermissionId?: string | undefined;
|
|
@@ -2660,30 +2282,30 @@ declare const TestPolicyDecisionRequestParser: z.ZodObject<{
|
|
|
2660
2282
|
permission: z.ZodUnion<[z.ZodObject<{
|
|
2661
2283
|
type: z.ZodLiteral<"basic">;
|
|
2662
2284
|
name: z.ZodString;
|
|
2663
|
-
attributes: z.ZodType<
|
|
2285
|
+
attributes: z.ZodType<_backstage_plugin_permission_common.PermissionAttributes, z.ZodTypeDef, _backstage_plugin_permission_common.PermissionAttributes>;
|
|
2664
2286
|
}, "strip", z.ZodTypeAny, {
|
|
2665
2287
|
type: "basic";
|
|
2666
2288
|
name: string;
|
|
2667
|
-
attributes:
|
|
2289
|
+
attributes: _backstage_plugin_permission_common.PermissionAttributes;
|
|
2668
2290
|
}, {
|
|
2669
2291
|
type: "basic";
|
|
2670
2292
|
name: string;
|
|
2671
|
-
attributes:
|
|
2293
|
+
attributes: _backstage_plugin_permission_common.PermissionAttributes;
|
|
2672
2294
|
}>, z.ZodObject<{
|
|
2673
2295
|
type: z.ZodLiteral<"resource">;
|
|
2674
2296
|
name: z.ZodString;
|
|
2675
|
-
attributes: z.ZodType<
|
|
2297
|
+
attributes: z.ZodType<_backstage_plugin_permission_common.PermissionAttributes, z.ZodTypeDef, _backstage_plugin_permission_common.PermissionAttributes>;
|
|
2676
2298
|
resourceType: z.ZodString;
|
|
2677
2299
|
}, "strip", z.ZodTypeAny, {
|
|
2678
2300
|
type: "resource";
|
|
2679
2301
|
name: string;
|
|
2680
|
-
attributes: _backstage_plugin_permission_common_index.PermissionAttributes;
|
|
2681
2302
|
resourceType: string;
|
|
2303
|
+
attributes: _backstage_plugin_permission_common.PermissionAttributes;
|
|
2682
2304
|
}, {
|
|
2683
2305
|
type: "resource";
|
|
2684
2306
|
name: string;
|
|
2685
|
-
attributes: _backstage_plugin_permission_common_index.PermissionAttributes;
|
|
2686
2307
|
resourceType: string;
|
|
2308
|
+
attributes: _backstage_plugin_permission_common.PermissionAttributes;
|
|
2687
2309
|
}>]>;
|
|
2688
2310
|
policyConfig: z.ZodObject<{
|
|
2689
2311
|
name: z.ZodDefault<z.ZodString>;
|
|
@@ -2717,15 +2339,15 @@ declare const TestPolicyDecisionRequestParser: z.ZodObject<{
|
|
|
2717
2339
|
decision: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"allow">, z.ZodLiteral<"deny">]>, z.ZodObject<{
|
|
2718
2340
|
pluginId: z.ZodString;
|
|
2719
2341
|
resourceType: z.ZodString;
|
|
2720
|
-
conditions: z.ZodType<
|
|
2342
|
+
conditions: z.ZodType<_backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>, z.ZodTypeDef, _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>>;
|
|
2721
2343
|
}, "strip", z.ZodTypeAny, {
|
|
2722
|
-
conditions:
|
|
2723
|
-
pluginId: string;
|
|
2344
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2724
2345
|
resourceType: string;
|
|
2725
|
-
}, {
|
|
2726
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
2727
2346
|
pluginId: string;
|
|
2347
|
+
}, {
|
|
2348
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2728
2349
|
resourceType: string;
|
|
2350
|
+
pluginId: string;
|
|
2729
2351
|
}>]>;
|
|
2730
2352
|
}, "strip", z.ZodTypeAny, {
|
|
2731
2353
|
id: string;
|
|
@@ -2735,9 +2357,9 @@ declare const TestPolicyDecisionRequestParser: z.ZodObject<{
|
|
|
2735
2357
|
resourceType?: string | undefined;
|
|
2736
2358
|
};
|
|
2737
2359
|
decision: "allow" | {
|
|
2738
|
-
conditions:
|
|
2739
|
-
pluginId: string;
|
|
2360
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2740
2361
|
resourceType: string;
|
|
2362
|
+
pluginId: string;
|
|
2741
2363
|
} | "deny";
|
|
2742
2364
|
}, {
|
|
2743
2365
|
match: "*" | {
|
|
@@ -2746,9 +2368,9 @@ declare const TestPolicyDecisionRequestParser: z.ZodObject<{
|
|
|
2746
2368
|
resourceType?: string | undefined;
|
|
2747
2369
|
};
|
|
2748
2370
|
decision: "allow" | {
|
|
2749
|
-
conditions:
|
|
2750
|
-
pluginId: string;
|
|
2371
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2751
2372
|
resourceType: string;
|
|
2373
|
+
pluginId: string;
|
|
2752
2374
|
} | "deny";
|
|
2753
2375
|
id?: string | undefined;
|
|
2754
2376
|
}>, {
|
|
@@ -2759,9 +2381,9 @@ declare const TestPolicyDecisionRequestParser: z.ZodObject<{
|
|
|
2759
2381
|
resourceType?: string | undefined;
|
|
2760
2382
|
};
|
|
2761
2383
|
decision: "allow" | {
|
|
2762
|
-
conditions:
|
|
2763
|
-
pluginId: string;
|
|
2384
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2764
2385
|
resourceType: string;
|
|
2386
|
+
pluginId: string;
|
|
2765
2387
|
} | "deny";
|
|
2766
2388
|
}, {
|
|
2767
2389
|
match: "*" | {
|
|
@@ -2770,9 +2392,9 @@ declare const TestPolicyDecisionRequestParser: z.ZodObject<{
|
|
|
2770
2392
|
resourceType?: string | undefined;
|
|
2771
2393
|
};
|
|
2772
2394
|
decision: "allow" | {
|
|
2773
|
-
conditions:
|
|
2774
|
-
pluginId: string;
|
|
2395
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2775
2396
|
resourceType: string;
|
|
2397
|
+
pluginId: string;
|
|
2776
2398
|
} | "deny";
|
|
2777
2399
|
id?: string | undefined;
|
|
2778
2400
|
}>, "many">, {
|
|
@@ -2783,9 +2405,9 @@ declare const TestPolicyDecisionRequestParser: z.ZodObject<{
|
|
|
2783
2405
|
resourceType?: string | undefined;
|
|
2784
2406
|
};
|
|
2785
2407
|
decision: "allow" | {
|
|
2786
|
-
conditions:
|
|
2787
|
-
pluginId: string;
|
|
2408
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2788
2409
|
resourceType: string;
|
|
2410
|
+
pluginId: string;
|
|
2789
2411
|
} | "deny";
|
|
2790
2412
|
}[], {
|
|
2791
2413
|
match: "*" | {
|
|
@@ -2794,9 +2416,9 @@ declare const TestPolicyDecisionRequestParser: z.ZodObject<{
|
|
|
2794
2416
|
resourceType?: string | undefined;
|
|
2795
2417
|
};
|
|
2796
2418
|
decision: "allow" | {
|
|
2797
|
-
conditions:
|
|
2798
|
-
pluginId: string;
|
|
2419
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2799
2420
|
resourceType: string;
|
|
2421
|
+
pluginId: string;
|
|
2800
2422
|
} | "deny";
|
|
2801
2423
|
id?: string | undefined;
|
|
2802
2424
|
}[]>;
|
|
@@ -2812,9 +2434,9 @@ declare const TestPolicyDecisionRequestParser: z.ZodObject<{
|
|
|
2812
2434
|
resourceType?: string | undefined;
|
|
2813
2435
|
};
|
|
2814
2436
|
decision: "allow" | {
|
|
2815
|
-
conditions:
|
|
2816
|
-
pluginId: string;
|
|
2437
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2817
2438
|
resourceType: string;
|
|
2439
|
+
pluginId: string;
|
|
2818
2440
|
} | "deny";
|
|
2819
2441
|
}[];
|
|
2820
2442
|
description?: string | undefined;
|
|
@@ -2828,9 +2450,9 @@ declare const TestPolicyDecisionRequestParser: z.ZodObject<{
|
|
|
2828
2450
|
resourceType?: string | undefined;
|
|
2829
2451
|
};
|
|
2830
2452
|
decision: "allow" | {
|
|
2831
|
-
conditions:
|
|
2832
|
-
pluginId: string;
|
|
2453
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2833
2454
|
resourceType: string;
|
|
2455
|
+
pluginId: string;
|
|
2834
2456
|
} | "deny";
|
|
2835
2457
|
id?: string | undefined;
|
|
2836
2458
|
}[];
|
|
@@ -2848,9 +2470,9 @@ declare const TestPolicyDecisionRequestParser: z.ZodObject<{
|
|
|
2848
2470
|
resourceType?: string | undefined;
|
|
2849
2471
|
};
|
|
2850
2472
|
decision: "allow" | {
|
|
2851
|
-
conditions:
|
|
2852
|
-
pluginId: string;
|
|
2473
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2853
2474
|
resourceType: string;
|
|
2475
|
+
pluginId: string;
|
|
2854
2476
|
} | "deny";
|
|
2855
2477
|
}[];
|
|
2856
2478
|
description?: string | undefined;
|
|
@@ -2864,9 +2486,9 @@ declare const TestPolicyDecisionRequestParser: z.ZodObject<{
|
|
|
2864
2486
|
resourceType?: string | undefined;
|
|
2865
2487
|
};
|
|
2866
2488
|
decision: "allow" | {
|
|
2867
|
-
conditions:
|
|
2868
|
-
pluginId: string;
|
|
2489
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2869
2490
|
resourceType: string;
|
|
2491
|
+
pluginId: string;
|
|
2870
2492
|
} | "deny";
|
|
2871
2493
|
id?: string | undefined;
|
|
2872
2494
|
}[];
|
|
@@ -2874,10 +2496,10 @@ declare const TestPolicyDecisionRequestParser: z.ZodObject<{
|
|
|
2874
2496
|
description?: string | undefined;
|
|
2875
2497
|
}[] | undefined>;
|
|
2876
2498
|
}, "strip", z.ZodTypeAny, {
|
|
2877
|
-
name: string;
|
|
2878
2499
|
options: {
|
|
2879
2500
|
resolutionStrategy: "first-match" | "any-allow";
|
|
2880
2501
|
};
|
|
2502
|
+
name: string;
|
|
2881
2503
|
roles: {
|
|
2882
2504
|
id: string;
|
|
2883
2505
|
name: string;
|
|
@@ -2890,18 +2512,18 @@ declare const TestPolicyDecisionRequestParser: z.ZodObject<{
|
|
|
2890
2512
|
resourceType?: string | undefined;
|
|
2891
2513
|
};
|
|
2892
2514
|
decision: "allow" | {
|
|
2893
|
-
conditions:
|
|
2894
|
-
pluginId: string;
|
|
2515
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2895
2516
|
resourceType: string;
|
|
2517
|
+
pluginId: string;
|
|
2896
2518
|
} | "deny";
|
|
2897
2519
|
}[];
|
|
2898
2520
|
description?: string | undefined;
|
|
2899
2521
|
}[];
|
|
2900
2522
|
}, {
|
|
2901
|
-
name?: string | undefined;
|
|
2902
2523
|
options?: {
|
|
2903
2524
|
resolutionStrategy: "first-match" | "any-allow";
|
|
2904
2525
|
} | undefined;
|
|
2526
|
+
name?: string | undefined;
|
|
2905
2527
|
roles?: {
|
|
2906
2528
|
name: string;
|
|
2907
2529
|
members: string[] | "*";
|
|
@@ -2912,9 +2534,9 @@ declare const TestPolicyDecisionRequestParser: z.ZodObject<{
|
|
|
2912
2534
|
resourceType?: string | undefined;
|
|
2913
2535
|
};
|
|
2914
2536
|
decision: "allow" | {
|
|
2915
|
-
conditions:
|
|
2916
|
-
pluginId: string;
|
|
2537
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2917
2538
|
resourceType: string;
|
|
2539
|
+
pluginId: string;
|
|
2918
2540
|
} | "deny";
|
|
2919
2541
|
id?: string | undefined;
|
|
2920
2542
|
}[];
|
|
@@ -2927,18 +2549,18 @@ declare const TestPolicyDecisionRequestParser: z.ZodObject<{
|
|
|
2927
2549
|
permission: {
|
|
2928
2550
|
type: "basic";
|
|
2929
2551
|
name: string;
|
|
2930
|
-
attributes:
|
|
2552
|
+
attributes: _backstage_plugin_permission_common.PermissionAttributes;
|
|
2931
2553
|
} | {
|
|
2932
2554
|
type: "resource";
|
|
2933
2555
|
name: string;
|
|
2934
|
-
attributes: _backstage_plugin_permission_common_index.PermissionAttributes;
|
|
2935
2556
|
resourceType: string;
|
|
2557
|
+
attributes: _backstage_plugin_permission_common.PermissionAttributes;
|
|
2936
2558
|
};
|
|
2937
2559
|
policyConfig: {
|
|
2938
|
-
name: string;
|
|
2939
2560
|
options: {
|
|
2940
2561
|
resolutionStrategy: "first-match" | "any-allow";
|
|
2941
2562
|
};
|
|
2563
|
+
name: string;
|
|
2942
2564
|
roles: {
|
|
2943
2565
|
id: string;
|
|
2944
2566
|
name: string;
|
|
@@ -2951,9 +2573,9 @@ declare const TestPolicyDecisionRequestParser: z.ZodObject<{
|
|
|
2951
2573
|
resourceType?: string | undefined;
|
|
2952
2574
|
};
|
|
2953
2575
|
decision: "allow" | {
|
|
2954
|
-
conditions:
|
|
2955
|
-
pluginId: string;
|
|
2576
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2956
2577
|
resourceType: string;
|
|
2578
|
+
pluginId: string;
|
|
2957
2579
|
} | "deny";
|
|
2958
2580
|
}[];
|
|
2959
2581
|
description?: string | undefined;
|
|
@@ -2964,18 +2586,18 @@ declare const TestPolicyDecisionRequestParser: z.ZodObject<{
|
|
|
2964
2586
|
permission: {
|
|
2965
2587
|
type: "basic";
|
|
2966
2588
|
name: string;
|
|
2967
|
-
attributes:
|
|
2589
|
+
attributes: _backstage_plugin_permission_common.PermissionAttributes;
|
|
2968
2590
|
} | {
|
|
2969
2591
|
type: "resource";
|
|
2970
2592
|
name: string;
|
|
2971
|
-
attributes: _backstage_plugin_permission_common_index.PermissionAttributes;
|
|
2972
2593
|
resourceType: string;
|
|
2594
|
+
attributes: _backstage_plugin_permission_common.PermissionAttributes;
|
|
2973
2595
|
};
|
|
2974
2596
|
policyConfig: {
|
|
2975
|
-
name?: string | undefined;
|
|
2976
2597
|
options?: {
|
|
2977
2598
|
resolutionStrategy: "first-match" | "any-allow";
|
|
2978
2599
|
} | undefined;
|
|
2600
|
+
name?: string | undefined;
|
|
2979
2601
|
roles?: {
|
|
2980
2602
|
name: string;
|
|
2981
2603
|
members: string[] | "*";
|
|
@@ -2986,9 +2608,9 @@ declare const TestPolicyDecisionRequestParser: z.ZodObject<{
|
|
|
2986
2608
|
resourceType?: string | undefined;
|
|
2987
2609
|
};
|
|
2988
2610
|
decision: "allow" | {
|
|
2989
|
-
conditions:
|
|
2990
|
-
pluginId: string;
|
|
2611
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
2991
2612
|
resourceType: string;
|
|
2613
|
+
pluginId: string;
|
|
2992
2614
|
} | "deny";
|
|
2993
2615
|
id?: string | undefined;
|
|
2994
2616
|
}[];
|
|
@@ -3184,7 +2806,7 @@ type PaginatedResponse<T> = {
|
|
|
3184
2806
|
type PoliciesResponse = PaginatedResponse<Policy>;
|
|
3185
2807
|
/** @public */
|
|
3186
2808
|
declare const PolicyResponseParser: z.ZodObject<{
|
|
3187
|
-
items: z.ZodArray<z.ZodObject<
|
|
2809
|
+
items: z.ZodArray<z.ZodObject<{
|
|
3188
2810
|
name: z.ZodDefault<z.ZodString>;
|
|
3189
2811
|
options: z.ZodDefault<z.ZodObject<{
|
|
3190
2812
|
resolutionStrategy: z.ZodUnion<[z.ZodLiteral<"first-match">, z.ZodLiteral<"any-allow">]>;
|
|
@@ -3216,15 +2838,15 @@ declare const PolicyResponseParser: z.ZodObject<{
|
|
|
3216
2838
|
decision: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"allow">, z.ZodLiteral<"deny">]>, z.ZodObject<{
|
|
3217
2839
|
pluginId: z.ZodString;
|
|
3218
2840
|
resourceType: z.ZodString;
|
|
3219
|
-
conditions: z.ZodType<
|
|
2841
|
+
conditions: z.ZodType<_backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>, z.ZodTypeDef, _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>>;
|
|
3220
2842
|
}, "strip", z.ZodTypeAny, {
|
|
3221
|
-
conditions:
|
|
3222
|
-
pluginId: string;
|
|
2843
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
3223
2844
|
resourceType: string;
|
|
3224
|
-
}, {
|
|
3225
|
-
conditions: _backstage_plugin_permission_common_index.PermissionCriteria<RBACPermissionCondition>;
|
|
3226
2845
|
pluginId: string;
|
|
2846
|
+
}, {
|
|
2847
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
3227
2848
|
resourceType: string;
|
|
2849
|
+
pluginId: string;
|
|
3228
2850
|
}>]>;
|
|
3229
2851
|
}, "strip", z.ZodTypeAny, {
|
|
3230
2852
|
id: string;
|
|
@@ -3234,9 +2856,9 @@ declare const PolicyResponseParser: z.ZodObject<{
|
|
|
3234
2856
|
resourceType?: string | undefined;
|
|
3235
2857
|
};
|
|
3236
2858
|
decision: "allow" | {
|
|
3237
|
-
conditions:
|
|
3238
|
-
pluginId: string;
|
|
2859
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
3239
2860
|
resourceType: string;
|
|
2861
|
+
pluginId: string;
|
|
3240
2862
|
} | "deny";
|
|
3241
2863
|
}, {
|
|
3242
2864
|
match: "*" | {
|
|
@@ -3245,9 +2867,9 @@ declare const PolicyResponseParser: z.ZodObject<{
|
|
|
3245
2867
|
resourceType?: string | undefined;
|
|
3246
2868
|
};
|
|
3247
2869
|
decision: "allow" | {
|
|
3248
|
-
conditions:
|
|
3249
|
-
pluginId: string;
|
|
2870
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
3250
2871
|
resourceType: string;
|
|
2872
|
+
pluginId: string;
|
|
3251
2873
|
} | "deny";
|
|
3252
2874
|
id?: string | undefined;
|
|
3253
2875
|
}>, {
|
|
@@ -3258,9 +2880,9 @@ declare const PolicyResponseParser: z.ZodObject<{
|
|
|
3258
2880
|
resourceType?: string | undefined;
|
|
3259
2881
|
};
|
|
3260
2882
|
decision: "allow" | {
|
|
3261
|
-
conditions:
|
|
3262
|
-
pluginId: string;
|
|
2883
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
3263
2884
|
resourceType: string;
|
|
2885
|
+
pluginId: string;
|
|
3264
2886
|
} | "deny";
|
|
3265
2887
|
}, {
|
|
3266
2888
|
match: "*" | {
|
|
@@ -3269,9 +2891,9 @@ declare const PolicyResponseParser: z.ZodObject<{
|
|
|
3269
2891
|
resourceType?: string | undefined;
|
|
3270
2892
|
};
|
|
3271
2893
|
decision: "allow" | {
|
|
3272
|
-
conditions:
|
|
3273
|
-
pluginId: string;
|
|
2894
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
3274
2895
|
resourceType: string;
|
|
2896
|
+
pluginId: string;
|
|
3275
2897
|
} | "deny";
|
|
3276
2898
|
id?: string | undefined;
|
|
3277
2899
|
}>, "many">, {
|
|
@@ -3282,9 +2904,9 @@ declare const PolicyResponseParser: z.ZodObject<{
|
|
|
3282
2904
|
resourceType?: string | undefined;
|
|
3283
2905
|
};
|
|
3284
2906
|
decision: "allow" | {
|
|
3285
|
-
conditions:
|
|
3286
|
-
pluginId: string;
|
|
2907
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
3287
2908
|
resourceType: string;
|
|
2909
|
+
pluginId: string;
|
|
3288
2910
|
} | "deny";
|
|
3289
2911
|
}[], {
|
|
3290
2912
|
match: "*" | {
|
|
@@ -3293,9 +2915,9 @@ declare const PolicyResponseParser: z.ZodObject<{
|
|
|
3293
2915
|
resourceType?: string | undefined;
|
|
3294
2916
|
};
|
|
3295
2917
|
decision: "allow" | {
|
|
3296
|
-
conditions:
|
|
3297
|
-
pluginId: string;
|
|
2918
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
3298
2919
|
resourceType: string;
|
|
2920
|
+
pluginId: string;
|
|
3299
2921
|
} | "deny";
|
|
3300
2922
|
id?: string | undefined;
|
|
3301
2923
|
}[]>;
|
|
@@ -3311,9 +2933,9 @@ declare const PolicyResponseParser: z.ZodObject<{
|
|
|
3311
2933
|
resourceType?: string | undefined;
|
|
3312
2934
|
};
|
|
3313
2935
|
decision: "allow" | {
|
|
3314
|
-
conditions:
|
|
3315
|
-
pluginId: string;
|
|
2936
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
3316
2937
|
resourceType: string;
|
|
2938
|
+
pluginId: string;
|
|
3317
2939
|
} | "deny";
|
|
3318
2940
|
}[];
|
|
3319
2941
|
description?: string | undefined;
|
|
@@ -3327,9 +2949,9 @@ declare const PolicyResponseParser: z.ZodObject<{
|
|
|
3327
2949
|
resourceType?: string | undefined;
|
|
3328
2950
|
};
|
|
3329
2951
|
decision: "allow" | {
|
|
3330
|
-
conditions:
|
|
3331
|
-
pluginId: string;
|
|
2952
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
3332
2953
|
resourceType: string;
|
|
2954
|
+
pluginId: string;
|
|
3333
2955
|
} | "deny";
|
|
3334
2956
|
id?: string | undefined;
|
|
3335
2957
|
}[];
|
|
@@ -3347,9 +2969,9 @@ declare const PolicyResponseParser: z.ZodObject<{
|
|
|
3347
2969
|
resourceType?: string | undefined;
|
|
3348
2970
|
};
|
|
3349
2971
|
decision: "allow" | {
|
|
3350
|
-
conditions:
|
|
3351
|
-
pluginId: string;
|
|
2972
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
3352
2973
|
resourceType: string;
|
|
2974
|
+
pluginId: string;
|
|
3353
2975
|
} | "deny";
|
|
3354
2976
|
}[];
|
|
3355
2977
|
description?: string | undefined;
|
|
@@ -3363,16 +2985,16 @@ declare const PolicyResponseParser: z.ZodObject<{
|
|
|
3363
2985
|
resourceType?: string | undefined;
|
|
3364
2986
|
};
|
|
3365
2987
|
decision: "allow" | {
|
|
3366
|
-
conditions:
|
|
3367
|
-
pluginId: string;
|
|
2988
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
3368
2989
|
resourceType: string;
|
|
2990
|
+
pluginId: string;
|
|
3369
2991
|
} | "deny";
|
|
3370
2992
|
id?: string | undefined;
|
|
3371
2993
|
}[];
|
|
3372
2994
|
id?: string | undefined;
|
|
3373
2995
|
description?: string | undefined;
|
|
3374
2996
|
}[] | undefined>;
|
|
3375
|
-
}
|
|
2997
|
+
} & {
|
|
3376
2998
|
id: z.ZodString;
|
|
3377
2999
|
createdAt: z.ZodString;
|
|
3378
3000
|
createdBy: z.ZodString;
|
|
@@ -3382,13 +3004,14 @@ declare const PolicyResponseParser: z.ZodObject<{
|
|
|
3382
3004
|
lastPublishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3383
3005
|
lastPublishedBy: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3384
3006
|
status: z.ZodEnum<["draft", "active", "inactive"]>;
|
|
3385
|
-
}
|
|
3007
|
+
}, "strip", z.ZodTypeAny, {
|
|
3386
3008
|
id: string;
|
|
3387
|
-
name: string;
|
|
3388
3009
|
status: "active" | "inactive" | "draft";
|
|
3389
3010
|
options: {
|
|
3390
3011
|
resolutionStrategy: "first-match" | "any-allow";
|
|
3391
3012
|
};
|
|
3013
|
+
name: string;
|
|
3014
|
+
createdBy: string;
|
|
3392
3015
|
createdAt: string;
|
|
3393
3016
|
updatedAt: string;
|
|
3394
3017
|
roles: {
|
|
@@ -3403,14 +3026,13 @@ declare const PolicyResponseParser: z.ZodObject<{
|
|
|
3403
3026
|
resourceType?: string | undefined;
|
|
3404
3027
|
};
|
|
3405
3028
|
decision: "allow" | {
|
|
3406
|
-
conditions:
|
|
3407
|
-
pluginId: string;
|
|
3029
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
3408
3030
|
resourceType: string;
|
|
3031
|
+
pluginId: string;
|
|
3409
3032
|
} | "deny";
|
|
3410
3033
|
}[];
|
|
3411
3034
|
description?: string | undefined;
|
|
3412
3035
|
}[];
|
|
3413
|
-
createdBy: string;
|
|
3414
3036
|
updatedBy: string;
|
|
3415
3037
|
description?: string | null | undefined;
|
|
3416
3038
|
lastPublishedAt?: string | null | undefined;
|
|
@@ -3418,14 +3040,14 @@ declare const PolicyResponseParser: z.ZodObject<{
|
|
|
3418
3040
|
}, {
|
|
3419
3041
|
id: string;
|
|
3420
3042
|
status: "active" | "inactive" | "draft";
|
|
3043
|
+
createdBy: string;
|
|
3421
3044
|
createdAt: string;
|
|
3422
3045
|
updatedAt: string;
|
|
3423
|
-
createdBy: string;
|
|
3424
3046
|
updatedBy: string;
|
|
3425
|
-
name?: string | undefined;
|
|
3426
3047
|
options?: {
|
|
3427
3048
|
resolutionStrategy: "first-match" | "any-allow";
|
|
3428
3049
|
} | undefined;
|
|
3050
|
+
name?: string | undefined;
|
|
3429
3051
|
description?: string | null | undefined;
|
|
3430
3052
|
roles?: {
|
|
3431
3053
|
name: string;
|
|
@@ -3437,9 +3059,9 @@ declare const PolicyResponseParser: z.ZodObject<{
|
|
|
3437
3059
|
resourceType?: string | undefined;
|
|
3438
3060
|
};
|
|
3439
3061
|
decision: "allow" | {
|
|
3440
|
-
conditions:
|
|
3441
|
-
pluginId: string;
|
|
3062
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
3442
3063
|
resourceType: string;
|
|
3064
|
+
pluginId: string;
|
|
3443
3065
|
} | "deny";
|
|
3444
3066
|
id?: string | undefined;
|
|
3445
3067
|
}[];
|
|
@@ -3455,11 +3077,12 @@ declare const PolicyResponseParser: z.ZodObject<{
|
|
|
3455
3077
|
}, "strip", z.ZodTypeAny, {
|
|
3456
3078
|
items: {
|
|
3457
3079
|
id: string;
|
|
3458
|
-
name: string;
|
|
3459
3080
|
status: "active" | "inactive" | "draft";
|
|
3460
3081
|
options: {
|
|
3461
3082
|
resolutionStrategy: "first-match" | "any-allow";
|
|
3462
3083
|
};
|
|
3084
|
+
name: string;
|
|
3085
|
+
createdBy: string;
|
|
3463
3086
|
createdAt: string;
|
|
3464
3087
|
updatedAt: string;
|
|
3465
3088
|
roles: {
|
|
@@ -3474,14 +3097,13 @@ declare const PolicyResponseParser: z.ZodObject<{
|
|
|
3474
3097
|
resourceType?: string | undefined;
|
|
3475
3098
|
};
|
|
3476
3099
|
decision: "allow" | {
|
|
3477
|
-
conditions:
|
|
3478
|
-
pluginId: string;
|
|
3100
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
3479
3101
|
resourceType: string;
|
|
3102
|
+
pluginId: string;
|
|
3480
3103
|
} | "deny";
|
|
3481
3104
|
}[];
|
|
3482
3105
|
description?: string | undefined;
|
|
3483
3106
|
}[];
|
|
3484
|
-
createdBy: string;
|
|
3485
3107
|
updatedBy: string;
|
|
3486
3108
|
description?: string | null | undefined;
|
|
3487
3109
|
lastPublishedAt?: string | null | undefined;
|
|
@@ -3494,14 +3116,14 @@ declare const PolicyResponseParser: z.ZodObject<{
|
|
|
3494
3116
|
items: {
|
|
3495
3117
|
id: string;
|
|
3496
3118
|
status: "active" | "inactive" | "draft";
|
|
3119
|
+
createdBy: string;
|
|
3497
3120
|
createdAt: string;
|
|
3498
3121
|
updatedAt: string;
|
|
3499
|
-
createdBy: string;
|
|
3500
3122
|
updatedBy: string;
|
|
3501
|
-
name?: string | undefined;
|
|
3502
3123
|
options?: {
|
|
3503
3124
|
resolutionStrategy: "first-match" | "any-allow";
|
|
3504
3125
|
} | undefined;
|
|
3126
|
+
name?: string | undefined;
|
|
3505
3127
|
description?: string | null | undefined;
|
|
3506
3128
|
roles?: {
|
|
3507
3129
|
name: string;
|
|
@@ -3513,9 +3135,9 @@ declare const PolicyResponseParser: z.ZodObject<{
|
|
|
3513
3135
|
resourceType?: string | undefined;
|
|
3514
3136
|
};
|
|
3515
3137
|
decision: "allow" | {
|
|
3516
|
-
conditions:
|
|
3517
|
-
pluginId: string;
|
|
3138
|
+
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
3518
3139
|
resourceType: string;
|
|
3140
|
+
pluginId: string;
|
|
3519
3141
|
} | "deny";
|
|
3520
3142
|
id?: string | undefined;
|
|
3521
3143
|
}[];
|
|
@@ -3542,8 +3164,8 @@ declare const getMatchingRolePermissions: (role: Role, permission: Permission) =
|
|
|
3542
3164
|
};
|
|
3543
3165
|
decision: "allow" | {
|
|
3544
3166
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
3545
|
-
pluginId: string;
|
|
3546
3167
|
resourceType: string;
|
|
3168
|
+
pluginId: string;
|
|
3547
3169
|
} | "deny";
|
|
3548
3170
|
}[];
|
|
3549
3171
|
/**
|