@spotify/backstage-plugin-rbac-common 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +249 -249
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -84,17 +84,17 @@ declare const RolePermissionParser: z.ZodEffects<z.ZodObject<{
|
|
|
84
84
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
85
85
|
}>]>;
|
|
86
86
|
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
id: string;
|
|
87
88
|
match: "*" | {
|
|
88
89
|
name?: string | undefined;
|
|
89
90
|
actions?: string[] | undefined;
|
|
90
91
|
resourceType?: string | undefined;
|
|
91
92
|
};
|
|
92
|
-
|
|
93
|
-
decision: "allow" | "deny" | {
|
|
93
|
+
decision: "allow" | {
|
|
94
94
|
pluginId: string;
|
|
95
95
|
resourceType: string;
|
|
96
96
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
97
|
-
};
|
|
97
|
+
} | "deny";
|
|
98
98
|
}, {
|
|
99
99
|
id?: string | undefined;
|
|
100
100
|
match: "*" | {
|
|
@@ -102,23 +102,23 @@ declare const RolePermissionParser: z.ZodEffects<z.ZodObject<{
|
|
|
102
102
|
actions?: string[] | undefined;
|
|
103
103
|
resourceType?: string | undefined;
|
|
104
104
|
};
|
|
105
|
-
decision: "allow" |
|
|
105
|
+
decision: "allow" | {
|
|
106
106
|
pluginId: string;
|
|
107
107
|
resourceType: string;
|
|
108
108
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
109
|
-
};
|
|
109
|
+
} | "deny";
|
|
110
110
|
}>, {
|
|
111
|
+
id: string;
|
|
111
112
|
match: "*" | {
|
|
112
113
|
name?: string | undefined;
|
|
113
114
|
actions?: string[] | undefined;
|
|
114
115
|
resourceType?: string | undefined;
|
|
115
116
|
};
|
|
116
|
-
|
|
117
|
-
decision: "allow" | "deny" | {
|
|
117
|
+
decision: "allow" | {
|
|
118
118
|
pluginId: string;
|
|
119
119
|
resourceType: string;
|
|
120
120
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
121
|
-
};
|
|
121
|
+
} | "deny";
|
|
122
122
|
}, {
|
|
123
123
|
id?: string | undefined;
|
|
124
124
|
match: "*" | {
|
|
@@ -126,11 +126,11 @@ declare const RolePermissionParser: z.ZodEffects<z.ZodObject<{
|
|
|
126
126
|
actions?: string[] | undefined;
|
|
127
127
|
resourceType?: string | undefined;
|
|
128
128
|
};
|
|
129
|
-
decision: "allow" |
|
|
129
|
+
decision: "allow" | {
|
|
130
130
|
pluginId: string;
|
|
131
131
|
resourceType: string;
|
|
132
132
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
133
|
-
};
|
|
133
|
+
} | "deny";
|
|
134
134
|
}>;
|
|
135
135
|
/** @public */
|
|
136
136
|
declare const RolePermissionsParser: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
@@ -162,17 +162,17 @@ declare const RolePermissionsParser: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodO
|
|
|
162
162
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
163
163
|
}>]>;
|
|
164
164
|
}, "strip", z.ZodTypeAny, {
|
|
165
|
+
id: string;
|
|
165
166
|
match: "*" | {
|
|
166
167
|
name?: string | undefined;
|
|
167
168
|
actions?: string[] | undefined;
|
|
168
169
|
resourceType?: string | undefined;
|
|
169
170
|
};
|
|
170
|
-
|
|
171
|
-
decision: "allow" | "deny" | {
|
|
171
|
+
decision: "allow" | {
|
|
172
172
|
pluginId: string;
|
|
173
173
|
resourceType: string;
|
|
174
174
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
175
|
-
};
|
|
175
|
+
} | "deny";
|
|
176
176
|
}, {
|
|
177
177
|
id?: string | undefined;
|
|
178
178
|
match: "*" | {
|
|
@@ -180,23 +180,23 @@ declare const RolePermissionsParser: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodO
|
|
|
180
180
|
actions?: string[] | undefined;
|
|
181
181
|
resourceType?: string | undefined;
|
|
182
182
|
};
|
|
183
|
-
decision: "allow" |
|
|
183
|
+
decision: "allow" | {
|
|
184
184
|
pluginId: string;
|
|
185
185
|
resourceType: string;
|
|
186
186
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
187
|
-
};
|
|
187
|
+
} | "deny";
|
|
188
188
|
}>, {
|
|
189
|
+
id: string;
|
|
189
190
|
match: "*" | {
|
|
190
191
|
name?: string | undefined;
|
|
191
192
|
actions?: string[] | undefined;
|
|
192
193
|
resourceType?: string | undefined;
|
|
193
194
|
};
|
|
194
|
-
|
|
195
|
-
decision: "allow" | "deny" | {
|
|
195
|
+
decision: "allow" | {
|
|
196
196
|
pluginId: string;
|
|
197
197
|
resourceType: string;
|
|
198
198
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
199
|
-
};
|
|
199
|
+
} | "deny";
|
|
200
200
|
}, {
|
|
201
201
|
id?: string | undefined;
|
|
202
202
|
match: "*" | {
|
|
@@ -204,23 +204,23 @@ declare const RolePermissionsParser: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodO
|
|
|
204
204
|
actions?: string[] | undefined;
|
|
205
205
|
resourceType?: string | undefined;
|
|
206
206
|
};
|
|
207
|
-
decision: "allow" |
|
|
207
|
+
decision: "allow" | {
|
|
208
208
|
pluginId: string;
|
|
209
209
|
resourceType: string;
|
|
210
210
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
211
|
-
};
|
|
211
|
+
} | "deny";
|
|
212
212
|
}>, "many">, {
|
|
213
|
+
id: string;
|
|
213
214
|
match: "*" | {
|
|
214
215
|
name?: string | undefined;
|
|
215
216
|
actions?: string[] | undefined;
|
|
216
217
|
resourceType?: string | undefined;
|
|
217
218
|
};
|
|
218
|
-
|
|
219
|
-
decision: "allow" | "deny" | {
|
|
219
|
+
decision: "allow" | {
|
|
220
220
|
pluginId: string;
|
|
221
221
|
resourceType: string;
|
|
222
222
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
223
|
-
};
|
|
223
|
+
} | "deny";
|
|
224
224
|
}[], {
|
|
225
225
|
id?: string | undefined;
|
|
226
226
|
match: "*" | {
|
|
@@ -228,11 +228,11 @@ declare const RolePermissionsParser: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodO
|
|
|
228
228
|
actions?: string[] | undefined;
|
|
229
229
|
resourceType?: string | undefined;
|
|
230
230
|
};
|
|
231
|
-
decision: "allow" |
|
|
231
|
+
decision: "allow" | {
|
|
232
232
|
pluginId: string;
|
|
233
233
|
resourceType: string;
|
|
234
234
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
235
|
-
};
|
|
235
|
+
} | "deny";
|
|
236
236
|
}[]>;
|
|
237
237
|
/** @public */
|
|
238
238
|
declare const RoleParser: z.ZodObject<{
|
|
@@ -268,17 +268,17 @@ declare const RoleParser: z.ZodObject<{
|
|
|
268
268
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
269
269
|
}>]>;
|
|
270
270
|
}, "strip", z.ZodTypeAny, {
|
|
271
|
+
id: string;
|
|
271
272
|
match: "*" | {
|
|
272
273
|
name?: string | undefined;
|
|
273
274
|
actions?: string[] | undefined;
|
|
274
275
|
resourceType?: string | undefined;
|
|
275
276
|
};
|
|
276
|
-
|
|
277
|
-
decision: "allow" | "deny" | {
|
|
277
|
+
decision: "allow" | {
|
|
278
278
|
pluginId: string;
|
|
279
279
|
resourceType: string;
|
|
280
280
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
281
|
-
};
|
|
281
|
+
} | "deny";
|
|
282
282
|
}, {
|
|
283
283
|
id?: string | undefined;
|
|
284
284
|
match: "*" | {
|
|
@@ -286,23 +286,23 @@ declare const RoleParser: z.ZodObject<{
|
|
|
286
286
|
actions?: string[] | undefined;
|
|
287
287
|
resourceType?: string | undefined;
|
|
288
288
|
};
|
|
289
|
-
decision: "allow" |
|
|
289
|
+
decision: "allow" | {
|
|
290
290
|
pluginId: string;
|
|
291
291
|
resourceType: string;
|
|
292
292
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
293
|
-
};
|
|
293
|
+
} | "deny";
|
|
294
294
|
}>, {
|
|
295
|
+
id: string;
|
|
295
296
|
match: "*" | {
|
|
296
297
|
name?: string | undefined;
|
|
297
298
|
actions?: string[] | undefined;
|
|
298
299
|
resourceType?: string | undefined;
|
|
299
300
|
};
|
|
300
|
-
|
|
301
|
-
decision: "allow" | "deny" | {
|
|
301
|
+
decision: "allow" | {
|
|
302
302
|
pluginId: string;
|
|
303
303
|
resourceType: string;
|
|
304
304
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
305
|
-
};
|
|
305
|
+
} | "deny";
|
|
306
306
|
}, {
|
|
307
307
|
id?: string | undefined;
|
|
308
308
|
match: "*" | {
|
|
@@ -310,23 +310,23 @@ declare const RoleParser: z.ZodObject<{
|
|
|
310
310
|
actions?: string[] | undefined;
|
|
311
311
|
resourceType?: string | undefined;
|
|
312
312
|
};
|
|
313
|
-
decision: "allow" |
|
|
313
|
+
decision: "allow" | {
|
|
314
314
|
pluginId: string;
|
|
315
315
|
resourceType: string;
|
|
316
316
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
317
|
-
};
|
|
317
|
+
} | "deny";
|
|
318
318
|
}>, "many">, {
|
|
319
|
+
id: string;
|
|
319
320
|
match: "*" | {
|
|
320
321
|
name?: string | undefined;
|
|
321
322
|
actions?: string[] | undefined;
|
|
322
323
|
resourceType?: string | undefined;
|
|
323
324
|
};
|
|
324
|
-
|
|
325
|
-
decision: "allow" | "deny" | {
|
|
325
|
+
decision: "allow" | {
|
|
326
326
|
pluginId: string;
|
|
327
327
|
resourceType: string;
|
|
328
328
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
329
|
-
};
|
|
329
|
+
} | "deny";
|
|
330
330
|
}[], {
|
|
331
331
|
id?: string | undefined;
|
|
332
332
|
match: "*" | {
|
|
@@ -334,33 +334,33 @@ declare const RoleParser: z.ZodObject<{
|
|
|
334
334
|
actions?: string[] | undefined;
|
|
335
335
|
resourceType?: string | undefined;
|
|
336
336
|
};
|
|
337
|
-
decision: "allow" |
|
|
337
|
+
decision: "allow" | {
|
|
338
338
|
pluginId: string;
|
|
339
339
|
resourceType: string;
|
|
340
340
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
341
|
-
};
|
|
341
|
+
} | "deny";
|
|
342
342
|
}[]>;
|
|
343
343
|
}, "strip", z.ZodTypeAny, {
|
|
344
344
|
id: string;
|
|
345
|
-
name: string;
|
|
346
345
|
members: string[] | "*";
|
|
346
|
+
name: string;
|
|
347
347
|
permissions: {
|
|
348
|
+
id: string;
|
|
348
349
|
match: "*" | {
|
|
349
350
|
name?: string | undefined;
|
|
350
351
|
actions?: string[] | undefined;
|
|
351
352
|
resourceType?: string | undefined;
|
|
352
353
|
};
|
|
353
|
-
|
|
354
|
-
decision: "allow" | "deny" | {
|
|
354
|
+
decision: "allow" | {
|
|
355
355
|
pluginId: string;
|
|
356
356
|
resourceType: string;
|
|
357
357
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
358
|
-
};
|
|
358
|
+
} | "deny";
|
|
359
359
|
}[];
|
|
360
360
|
}, {
|
|
361
361
|
id?: string | undefined;
|
|
362
|
-
name: string;
|
|
363
362
|
members: string[] | "*";
|
|
363
|
+
name: string;
|
|
364
364
|
permissions: {
|
|
365
365
|
id?: string | undefined;
|
|
366
366
|
match: "*" | {
|
|
@@ -368,11 +368,11 @@ declare const RoleParser: z.ZodObject<{
|
|
|
368
368
|
actions?: string[] | undefined;
|
|
369
369
|
resourceType?: string | undefined;
|
|
370
370
|
};
|
|
371
|
-
decision: "allow" |
|
|
371
|
+
decision: "allow" | {
|
|
372
372
|
pluginId: string;
|
|
373
373
|
resourceType: string;
|
|
374
374
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
375
|
-
};
|
|
375
|
+
} | "deny";
|
|
376
376
|
}[];
|
|
377
377
|
}>;
|
|
378
378
|
/** @public */
|
|
@@ -409,17 +409,17 @@ declare const RolesParser: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
|
409
409
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
410
410
|
}>]>;
|
|
411
411
|
}, "strip", z.ZodTypeAny, {
|
|
412
|
+
id: string;
|
|
412
413
|
match: "*" | {
|
|
413
414
|
name?: string | undefined;
|
|
414
415
|
actions?: string[] | undefined;
|
|
415
416
|
resourceType?: string | undefined;
|
|
416
417
|
};
|
|
417
|
-
|
|
418
|
-
decision: "allow" | "deny" | {
|
|
418
|
+
decision: "allow" | {
|
|
419
419
|
pluginId: string;
|
|
420
420
|
resourceType: string;
|
|
421
421
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
422
|
-
};
|
|
422
|
+
} | "deny";
|
|
423
423
|
}, {
|
|
424
424
|
id?: string | undefined;
|
|
425
425
|
match: "*" | {
|
|
@@ -427,23 +427,23 @@ declare const RolesParser: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
|
427
427
|
actions?: string[] | undefined;
|
|
428
428
|
resourceType?: string | undefined;
|
|
429
429
|
};
|
|
430
|
-
decision: "allow" |
|
|
430
|
+
decision: "allow" | {
|
|
431
431
|
pluginId: string;
|
|
432
432
|
resourceType: string;
|
|
433
433
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
434
|
-
};
|
|
434
|
+
} | "deny";
|
|
435
435
|
}>, {
|
|
436
|
+
id: string;
|
|
436
437
|
match: "*" | {
|
|
437
438
|
name?: string | undefined;
|
|
438
439
|
actions?: string[] | undefined;
|
|
439
440
|
resourceType?: string | undefined;
|
|
440
441
|
};
|
|
441
|
-
|
|
442
|
-
decision: "allow" | "deny" | {
|
|
442
|
+
decision: "allow" | {
|
|
443
443
|
pluginId: string;
|
|
444
444
|
resourceType: string;
|
|
445
445
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
446
|
-
};
|
|
446
|
+
} | "deny";
|
|
447
447
|
}, {
|
|
448
448
|
id?: string | undefined;
|
|
449
449
|
match: "*" | {
|
|
@@ -451,23 +451,23 @@ declare const RolesParser: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
|
451
451
|
actions?: string[] | undefined;
|
|
452
452
|
resourceType?: string | undefined;
|
|
453
453
|
};
|
|
454
|
-
decision: "allow" |
|
|
454
|
+
decision: "allow" | {
|
|
455
455
|
pluginId: string;
|
|
456
456
|
resourceType: string;
|
|
457
457
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
458
|
-
};
|
|
458
|
+
} | "deny";
|
|
459
459
|
}>, "many">, {
|
|
460
|
+
id: string;
|
|
460
461
|
match: "*" | {
|
|
461
462
|
name?: string | undefined;
|
|
462
463
|
actions?: string[] | undefined;
|
|
463
464
|
resourceType?: string | undefined;
|
|
464
465
|
};
|
|
465
|
-
|
|
466
|
-
decision: "allow" | "deny" | {
|
|
466
|
+
decision: "allow" | {
|
|
467
467
|
pluginId: string;
|
|
468
468
|
resourceType: string;
|
|
469
469
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
470
|
-
};
|
|
470
|
+
} | "deny";
|
|
471
471
|
}[], {
|
|
472
472
|
id?: string | undefined;
|
|
473
473
|
match: "*" | {
|
|
@@ -475,33 +475,33 @@ declare const RolesParser: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
|
475
475
|
actions?: string[] | undefined;
|
|
476
476
|
resourceType?: string | undefined;
|
|
477
477
|
};
|
|
478
|
-
decision: "allow" |
|
|
478
|
+
decision: "allow" | {
|
|
479
479
|
pluginId: string;
|
|
480
480
|
resourceType: string;
|
|
481
481
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
482
|
-
};
|
|
482
|
+
} | "deny";
|
|
483
483
|
}[]>;
|
|
484
484
|
}, "strip", z.ZodTypeAny, {
|
|
485
485
|
id: string;
|
|
486
|
-
name: string;
|
|
487
486
|
members: string[] | "*";
|
|
487
|
+
name: string;
|
|
488
488
|
permissions: {
|
|
489
|
+
id: string;
|
|
489
490
|
match: "*" | {
|
|
490
491
|
name?: string | undefined;
|
|
491
492
|
actions?: string[] | undefined;
|
|
492
493
|
resourceType?: string | undefined;
|
|
493
494
|
};
|
|
494
|
-
|
|
495
|
-
decision: "allow" | "deny" | {
|
|
495
|
+
decision: "allow" | {
|
|
496
496
|
pluginId: string;
|
|
497
497
|
resourceType: string;
|
|
498
498
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
499
|
-
};
|
|
499
|
+
} | "deny";
|
|
500
500
|
}[];
|
|
501
501
|
}, {
|
|
502
502
|
id?: string | undefined;
|
|
503
|
-
name: string;
|
|
504
503
|
members: string[] | "*";
|
|
504
|
+
name: string;
|
|
505
505
|
permissions: {
|
|
506
506
|
id?: string | undefined;
|
|
507
507
|
match: "*" | {
|
|
@@ -509,33 +509,33 @@ declare const RolesParser: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
|
509
509
|
actions?: string[] | undefined;
|
|
510
510
|
resourceType?: string | undefined;
|
|
511
511
|
};
|
|
512
|
-
decision: "allow" |
|
|
512
|
+
decision: "allow" | {
|
|
513
513
|
pluginId: string;
|
|
514
514
|
resourceType: string;
|
|
515
515
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
516
|
-
};
|
|
516
|
+
} | "deny";
|
|
517
517
|
}[];
|
|
518
518
|
}>, "many">>, {
|
|
519
519
|
id: string;
|
|
520
|
-
name: string;
|
|
521
520
|
members: string[] | "*";
|
|
521
|
+
name: string;
|
|
522
522
|
permissions: {
|
|
523
|
+
id: string;
|
|
523
524
|
match: "*" | {
|
|
524
525
|
name?: string | undefined;
|
|
525
526
|
actions?: string[] | undefined;
|
|
526
527
|
resourceType?: string | undefined;
|
|
527
528
|
};
|
|
528
|
-
|
|
529
|
-
decision: "allow" | "deny" | {
|
|
529
|
+
decision: "allow" | {
|
|
530
530
|
pluginId: string;
|
|
531
531
|
resourceType: string;
|
|
532
532
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
533
|
-
};
|
|
533
|
+
} | "deny";
|
|
534
534
|
}[];
|
|
535
535
|
}[], {
|
|
536
536
|
id?: string | undefined;
|
|
537
|
-
name: string;
|
|
538
537
|
members: string[] | "*";
|
|
538
|
+
name: string;
|
|
539
539
|
permissions: {
|
|
540
540
|
id?: string | undefined;
|
|
541
541
|
match: "*" | {
|
|
@@ -543,11 +543,11 @@ declare const RolesParser: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
|
543
543
|
actions?: string[] | undefined;
|
|
544
544
|
resourceType?: string | undefined;
|
|
545
545
|
};
|
|
546
|
-
decision: "allow" |
|
|
546
|
+
decision: "allow" | {
|
|
547
547
|
pluginId: string;
|
|
548
548
|
resourceType: string;
|
|
549
549
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
550
|
-
};
|
|
550
|
+
} | "deny";
|
|
551
551
|
}[];
|
|
552
552
|
}[] | undefined>;
|
|
553
553
|
/** @public */
|
|
@@ -588,17 +588,17 @@ declare const PolicyConfigParser: z.ZodObject<{
|
|
|
588
588
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
589
589
|
}>]>;
|
|
590
590
|
}, "strip", z.ZodTypeAny, {
|
|
591
|
+
id: string;
|
|
591
592
|
match: "*" | {
|
|
592
593
|
name?: string | undefined;
|
|
593
594
|
actions?: string[] | undefined;
|
|
594
595
|
resourceType?: string | undefined;
|
|
595
596
|
};
|
|
596
|
-
|
|
597
|
-
decision: "allow" | "deny" | {
|
|
597
|
+
decision: "allow" | {
|
|
598
598
|
pluginId: string;
|
|
599
599
|
resourceType: string;
|
|
600
600
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
601
|
-
};
|
|
601
|
+
} | "deny";
|
|
602
602
|
}, {
|
|
603
603
|
id?: string | undefined;
|
|
604
604
|
match: "*" | {
|
|
@@ -606,23 +606,23 @@ declare const PolicyConfigParser: z.ZodObject<{
|
|
|
606
606
|
actions?: string[] | undefined;
|
|
607
607
|
resourceType?: string | undefined;
|
|
608
608
|
};
|
|
609
|
-
decision: "allow" |
|
|
609
|
+
decision: "allow" | {
|
|
610
610
|
pluginId: string;
|
|
611
611
|
resourceType: string;
|
|
612
612
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
613
|
-
};
|
|
613
|
+
} | "deny";
|
|
614
614
|
}>, {
|
|
615
|
+
id: string;
|
|
615
616
|
match: "*" | {
|
|
616
617
|
name?: string | undefined;
|
|
617
618
|
actions?: string[] | undefined;
|
|
618
619
|
resourceType?: string | undefined;
|
|
619
620
|
};
|
|
620
|
-
|
|
621
|
-
decision: "allow" | "deny" | {
|
|
621
|
+
decision: "allow" | {
|
|
622
622
|
pluginId: string;
|
|
623
623
|
resourceType: string;
|
|
624
624
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
625
|
-
};
|
|
625
|
+
} | "deny";
|
|
626
626
|
}, {
|
|
627
627
|
id?: string | undefined;
|
|
628
628
|
match: "*" | {
|
|
@@ -630,23 +630,23 @@ declare const PolicyConfigParser: z.ZodObject<{
|
|
|
630
630
|
actions?: string[] | undefined;
|
|
631
631
|
resourceType?: string | undefined;
|
|
632
632
|
};
|
|
633
|
-
decision: "allow" |
|
|
633
|
+
decision: "allow" | {
|
|
634
634
|
pluginId: string;
|
|
635
635
|
resourceType: string;
|
|
636
636
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
637
|
-
};
|
|
637
|
+
} | "deny";
|
|
638
638
|
}>, "many">, {
|
|
639
|
+
id: string;
|
|
639
640
|
match: "*" | {
|
|
640
641
|
name?: string | undefined;
|
|
641
642
|
actions?: string[] | undefined;
|
|
642
643
|
resourceType?: string | undefined;
|
|
643
644
|
};
|
|
644
|
-
|
|
645
|
-
decision: "allow" | "deny" | {
|
|
645
|
+
decision: "allow" | {
|
|
646
646
|
pluginId: string;
|
|
647
647
|
resourceType: string;
|
|
648
648
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
649
|
-
};
|
|
649
|
+
} | "deny";
|
|
650
650
|
}[], {
|
|
651
651
|
id?: string | undefined;
|
|
652
652
|
match: "*" | {
|
|
@@ -654,33 +654,33 @@ declare const PolicyConfigParser: z.ZodObject<{
|
|
|
654
654
|
actions?: string[] | undefined;
|
|
655
655
|
resourceType?: string | undefined;
|
|
656
656
|
};
|
|
657
|
-
decision: "allow" |
|
|
657
|
+
decision: "allow" | {
|
|
658
658
|
pluginId: string;
|
|
659
659
|
resourceType: string;
|
|
660
660
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
661
|
-
};
|
|
661
|
+
} | "deny";
|
|
662
662
|
}[]>;
|
|
663
663
|
}, "strip", z.ZodTypeAny, {
|
|
664
664
|
id: string;
|
|
665
|
-
name: string;
|
|
666
665
|
members: string[] | "*";
|
|
666
|
+
name: string;
|
|
667
667
|
permissions: {
|
|
668
|
+
id: string;
|
|
668
669
|
match: "*" | {
|
|
669
670
|
name?: string | undefined;
|
|
670
671
|
actions?: string[] | undefined;
|
|
671
672
|
resourceType?: string | undefined;
|
|
672
673
|
};
|
|
673
|
-
|
|
674
|
-
decision: "allow" | "deny" | {
|
|
674
|
+
decision: "allow" | {
|
|
675
675
|
pluginId: string;
|
|
676
676
|
resourceType: string;
|
|
677
677
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
678
|
-
};
|
|
678
|
+
} | "deny";
|
|
679
679
|
}[];
|
|
680
680
|
}, {
|
|
681
681
|
id?: string | undefined;
|
|
682
|
-
name: string;
|
|
683
682
|
members: string[] | "*";
|
|
683
|
+
name: string;
|
|
684
684
|
permissions: {
|
|
685
685
|
id?: string | undefined;
|
|
686
686
|
match: "*" | {
|
|
@@ -688,33 +688,33 @@ declare const PolicyConfigParser: z.ZodObject<{
|
|
|
688
688
|
actions?: string[] | undefined;
|
|
689
689
|
resourceType?: string | undefined;
|
|
690
690
|
};
|
|
691
|
-
decision: "allow" |
|
|
691
|
+
decision: "allow" | {
|
|
692
692
|
pluginId: string;
|
|
693
693
|
resourceType: string;
|
|
694
694
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
695
|
-
};
|
|
695
|
+
} | "deny";
|
|
696
696
|
}[];
|
|
697
697
|
}>, "many">>, {
|
|
698
698
|
id: string;
|
|
699
|
-
name: string;
|
|
700
699
|
members: string[] | "*";
|
|
700
|
+
name: string;
|
|
701
701
|
permissions: {
|
|
702
|
+
id: string;
|
|
702
703
|
match: "*" | {
|
|
703
704
|
name?: string | undefined;
|
|
704
705
|
actions?: string[] | undefined;
|
|
705
706
|
resourceType?: string | undefined;
|
|
706
707
|
};
|
|
707
|
-
|
|
708
|
-
decision: "allow" | "deny" | {
|
|
708
|
+
decision: "allow" | {
|
|
709
709
|
pluginId: string;
|
|
710
710
|
resourceType: string;
|
|
711
711
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
712
|
-
};
|
|
712
|
+
} | "deny";
|
|
713
713
|
}[];
|
|
714
714
|
}[], {
|
|
715
715
|
id?: string | undefined;
|
|
716
|
-
name: string;
|
|
717
716
|
members: string[] | "*";
|
|
717
|
+
name: string;
|
|
718
718
|
permissions: {
|
|
719
719
|
id?: string | undefined;
|
|
720
720
|
match: "*" | {
|
|
@@ -722,39 +722,39 @@ declare const PolicyConfigParser: z.ZodObject<{
|
|
|
722
722
|
actions?: string[] | undefined;
|
|
723
723
|
resourceType?: string | undefined;
|
|
724
724
|
};
|
|
725
|
-
decision: "allow" |
|
|
725
|
+
decision: "allow" | {
|
|
726
726
|
pluginId: string;
|
|
727
727
|
resourceType: string;
|
|
728
728
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
729
|
-
};
|
|
729
|
+
} | "deny";
|
|
730
730
|
}[];
|
|
731
731
|
}[] | undefined>;
|
|
732
732
|
}, "strip", z.ZodTypeAny, {
|
|
733
733
|
name: string;
|
|
734
734
|
roles: {
|
|
735
735
|
id: string;
|
|
736
|
-
name: string;
|
|
737
736
|
members: string[] | "*";
|
|
737
|
+
name: string;
|
|
738
738
|
permissions: {
|
|
739
|
+
id: string;
|
|
739
740
|
match: "*" | {
|
|
740
741
|
name?: string | undefined;
|
|
741
742
|
actions?: string[] | undefined;
|
|
742
743
|
resourceType?: string | undefined;
|
|
743
744
|
};
|
|
744
|
-
|
|
745
|
-
decision: "allow" | "deny" | {
|
|
745
|
+
decision: "allow" | {
|
|
746
746
|
pluginId: string;
|
|
747
747
|
resourceType: string;
|
|
748
748
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
749
|
-
};
|
|
749
|
+
} | "deny";
|
|
750
750
|
}[];
|
|
751
751
|
}[];
|
|
752
752
|
}, {
|
|
753
753
|
name?: string | undefined;
|
|
754
754
|
roles?: {
|
|
755
755
|
id?: string | undefined;
|
|
756
|
-
name: string;
|
|
757
756
|
members: string[] | "*";
|
|
757
|
+
name: string;
|
|
758
758
|
permissions: {
|
|
759
759
|
id?: string | undefined;
|
|
760
760
|
match: "*" | {
|
|
@@ -762,11 +762,11 @@ declare const PolicyConfigParser: z.ZodObject<{
|
|
|
762
762
|
actions?: string[] | undefined;
|
|
763
763
|
resourceType?: string | undefined;
|
|
764
764
|
};
|
|
765
|
-
decision: "allow" |
|
|
765
|
+
decision: "allow" | {
|
|
766
766
|
pluginId: string;
|
|
767
767
|
resourceType: string;
|
|
768
768
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
769
|
-
};
|
|
769
|
+
} | "deny";
|
|
770
770
|
}[];
|
|
771
771
|
}[] | undefined;
|
|
772
772
|
}>;
|
|
@@ -806,17 +806,17 @@ declare const DefaultingPolicyConfigParser: z.ZodDefault<z.ZodObject<{
|
|
|
806
806
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
807
807
|
}>]>;
|
|
808
808
|
}, "strip", z.ZodTypeAny, {
|
|
809
|
+
id: string;
|
|
809
810
|
match: "*" | {
|
|
810
811
|
name?: string | undefined;
|
|
811
812
|
actions?: string[] | undefined;
|
|
812
813
|
resourceType?: string | undefined;
|
|
813
814
|
};
|
|
814
|
-
|
|
815
|
-
decision: "allow" | "deny" | {
|
|
815
|
+
decision: "allow" | {
|
|
816
816
|
pluginId: string;
|
|
817
817
|
resourceType: string;
|
|
818
818
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
819
|
-
};
|
|
819
|
+
} | "deny";
|
|
820
820
|
}, {
|
|
821
821
|
id?: string | undefined;
|
|
822
822
|
match: "*" | {
|
|
@@ -824,23 +824,23 @@ declare const DefaultingPolicyConfigParser: z.ZodDefault<z.ZodObject<{
|
|
|
824
824
|
actions?: string[] | undefined;
|
|
825
825
|
resourceType?: string | undefined;
|
|
826
826
|
};
|
|
827
|
-
decision: "allow" |
|
|
827
|
+
decision: "allow" | {
|
|
828
828
|
pluginId: string;
|
|
829
829
|
resourceType: string;
|
|
830
830
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
831
|
-
};
|
|
831
|
+
} | "deny";
|
|
832
832
|
}>, {
|
|
833
|
+
id: string;
|
|
833
834
|
match: "*" | {
|
|
834
835
|
name?: string | undefined;
|
|
835
836
|
actions?: string[] | undefined;
|
|
836
837
|
resourceType?: string | undefined;
|
|
837
838
|
};
|
|
838
|
-
|
|
839
|
-
decision: "allow" | "deny" | {
|
|
839
|
+
decision: "allow" | {
|
|
840
840
|
pluginId: string;
|
|
841
841
|
resourceType: string;
|
|
842
842
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
843
|
-
};
|
|
843
|
+
} | "deny";
|
|
844
844
|
}, {
|
|
845
845
|
id?: string | undefined;
|
|
846
846
|
match: "*" | {
|
|
@@ -848,23 +848,23 @@ declare const DefaultingPolicyConfigParser: z.ZodDefault<z.ZodObject<{
|
|
|
848
848
|
actions?: string[] | undefined;
|
|
849
849
|
resourceType?: string | undefined;
|
|
850
850
|
};
|
|
851
|
-
decision: "allow" |
|
|
851
|
+
decision: "allow" | {
|
|
852
852
|
pluginId: string;
|
|
853
853
|
resourceType: string;
|
|
854
854
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
855
|
-
};
|
|
855
|
+
} | "deny";
|
|
856
856
|
}>, "many">, {
|
|
857
|
+
id: string;
|
|
857
858
|
match: "*" | {
|
|
858
859
|
name?: string | undefined;
|
|
859
860
|
actions?: string[] | undefined;
|
|
860
861
|
resourceType?: string | undefined;
|
|
861
862
|
};
|
|
862
|
-
|
|
863
|
-
decision: "allow" | "deny" | {
|
|
863
|
+
decision: "allow" | {
|
|
864
864
|
pluginId: string;
|
|
865
865
|
resourceType: string;
|
|
866
866
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
867
|
-
};
|
|
867
|
+
} | "deny";
|
|
868
868
|
}[], {
|
|
869
869
|
id?: string | undefined;
|
|
870
870
|
match: "*" | {
|
|
@@ -872,33 +872,33 @@ declare const DefaultingPolicyConfigParser: z.ZodDefault<z.ZodObject<{
|
|
|
872
872
|
actions?: string[] | undefined;
|
|
873
873
|
resourceType?: string | undefined;
|
|
874
874
|
};
|
|
875
|
-
decision: "allow" |
|
|
875
|
+
decision: "allow" | {
|
|
876
876
|
pluginId: string;
|
|
877
877
|
resourceType: string;
|
|
878
878
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
879
|
-
};
|
|
879
|
+
} | "deny";
|
|
880
880
|
}[]>;
|
|
881
881
|
}, "strip", z.ZodTypeAny, {
|
|
882
882
|
id: string;
|
|
883
|
-
name: string;
|
|
884
883
|
members: string[] | "*";
|
|
884
|
+
name: string;
|
|
885
885
|
permissions: {
|
|
886
|
+
id: string;
|
|
886
887
|
match: "*" | {
|
|
887
888
|
name?: string | undefined;
|
|
888
889
|
actions?: string[] | undefined;
|
|
889
890
|
resourceType?: string | undefined;
|
|
890
891
|
};
|
|
891
|
-
|
|
892
|
-
decision: "allow" | "deny" | {
|
|
892
|
+
decision: "allow" | {
|
|
893
893
|
pluginId: string;
|
|
894
894
|
resourceType: string;
|
|
895
895
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
896
|
-
};
|
|
896
|
+
} | "deny";
|
|
897
897
|
}[];
|
|
898
898
|
}, {
|
|
899
899
|
id?: string | undefined;
|
|
900
|
-
name: string;
|
|
901
900
|
members: string[] | "*";
|
|
901
|
+
name: string;
|
|
902
902
|
permissions: {
|
|
903
903
|
id?: string | undefined;
|
|
904
904
|
match: "*" | {
|
|
@@ -906,33 +906,33 @@ declare const DefaultingPolicyConfigParser: z.ZodDefault<z.ZodObject<{
|
|
|
906
906
|
actions?: string[] | undefined;
|
|
907
907
|
resourceType?: string | undefined;
|
|
908
908
|
};
|
|
909
|
-
decision: "allow" |
|
|
909
|
+
decision: "allow" | {
|
|
910
910
|
pluginId: string;
|
|
911
911
|
resourceType: string;
|
|
912
912
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
913
|
-
};
|
|
913
|
+
} | "deny";
|
|
914
914
|
}[];
|
|
915
915
|
}>, "many">>, {
|
|
916
916
|
id: string;
|
|
917
|
-
name: string;
|
|
918
917
|
members: string[] | "*";
|
|
918
|
+
name: string;
|
|
919
919
|
permissions: {
|
|
920
|
+
id: string;
|
|
920
921
|
match: "*" | {
|
|
921
922
|
name?: string | undefined;
|
|
922
923
|
actions?: string[] | undefined;
|
|
923
924
|
resourceType?: string | undefined;
|
|
924
925
|
};
|
|
925
|
-
|
|
926
|
-
decision: "allow" | "deny" | {
|
|
926
|
+
decision: "allow" | {
|
|
927
927
|
pluginId: string;
|
|
928
928
|
resourceType: string;
|
|
929
929
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
930
|
-
};
|
|
930
|
+
} | "deny";
|
|
931
931
|
}[];
|
|
932
932
|
}[], {
|
|
933
933
|
id?: string | undefined;
|
|
934
|
-
name: string;
|
|
935
934
|
members: string[] | "*";
|
|
935
|
+
name: string;
|
|
936
936
|
permissions: {
|
|
937
937
|
id?: string | undefined;
|
|
938
938
|
match: "*" | {
|
|
@@ -940,39 +940,39 @@ declare const DefaultingPolicyConfigParser: z.ZodDefault<z.ZodObject<{
|
|
|
940
940
|
actions?: string[] | undefined;
|
|
941
941
|
resourceType?: string | undefined;
|
|
942
942
|
};
|
|
943
|
-
decision: "allow" |
|
|
943
|
+
decision: "allow" | {
|
|
944
944
|
pluginId: string;
|
|
945
945
|
resourceType: string;
|
|
946
946
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
947
|
-
};
|
|
947
|
+
} | "deny";
|
|
948
948
|
}[];
|
|
949
949
|
}[] | undefined>;
|
|
950
950
|
}, "strip", z.ZodTypeAny, {
|
|
951
951
|
name: string;
|
|
952
952
|
roles: {
|
|
953
953
|
id: string;
|
|
954
|
-
name: string;
|
|
955
954
|
members: string[] | "*";
|
|
955
|
+
name: string;
|
|
956
956
|
permissions: {
|
|
957
|
+
id: string;
|
|
957
958
|
match: "*" | {
|
|
958
959
|
name?: string | undefined;
|
|
959
960
|
actions?: string[] | undefined;
|
|
960
961
|
resourceType?: string | undefined;
|
|
961
962
|
};
|
|
962
|
-
|
|
963
|
-
decision: "allow" | "deny" | {
|
|
963
|
+
decision: "allow" | {
|
|
964
964
|
pluginId: string;
|
|
965
965
|
resourceType: string;
|
|
966
966
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
967
|
-
};
|
|
967
|
+
} | "deny";
|
|
968
968
|
}[];
|
|
969
969
|
}[];
|
|
970
970
|
}, {
|
|
971
971
|
name?: string | undefined;
|
|
972
972
|
roles?: {
|
|
973
973
|
id?: string | undefined;
|
|
974
|
-
name: string;
|
|
975
974
|
members: string[] | "*";
|
|
975
|
+
name: string;
|
|
976
976
|
permissions: {
|
|
977
977
|
id?: string | undefined;
|
|
978
978
|
match: "*" | {
|
|
@@ -980,11 +980,11 @@ declare const DefaultingPolicyConfigParser: z.ZodDefault<z.ZodObject<{
|
|
|
980
980
|
actions?: string[] | undefined;
|
|
981
981
|
resourceType?: string | undefined;
|
|
982
982
|
};
|
|
983
|
-
decision: "allow" |
|
|
983
|
+
decision: "allow" | {
|
|
984
984
|
pluginId: string;
|
|
985
985
|
resourceType: string;
|
|
986
986
|
conditions: PermissionCriteria<RBACPermissionCondition>;
|
|
987
|
-
};
|
|
987
|
+
} | "deny";
|
|
988
988
|
}[];
|
|
989
989
|
}[] | undefined;
|
|
990
990
|
}>>;
|
|
@@ -1101,17 +1101,17 @@ declare const CreateDraftRequestParser: z.ZodObject<{
|
|
|
1101
1101
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1102
1102
|
}>]>;
|
|
1103
1103
|
}, "strip", z.ZodTypeAny, {
|
|
1104
|
+
id: string;
|
|
1104
1105
|
match: "*" | {
|
|
1105
1106
|
name?: string | undefined;
|
|
1106
1107
|
actions?: string[] | undefined;
|
|
1107
1108
|
resourceType?: string | undefined;
|
|
1108
1109
|
};
|
|
1109
|
-
|
|
1110
|
-
decision: "allow" | "deny" | {
|
|
1110
|
+
decision: "allow" | {
|
|
1111
1111
|
pluginId: string;
|
|
1112
1112
|
resourceType: string;
|
|
1113
1113
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1114
|
-
};
|
|
1114
|
+
} | "deny";
|
|
1115
1115
|
}, {
|
|
1116
1116
|
id?: string | undefined;
|
|
1117
1117
|
match: "*" | {
|
|
@@ -1119,23 +1119,23 @@ declare const CreateDraftRequestParser: z.ZodObject<{
|
|
|
1119
1119
|
actions?: string[] | undefined;
|
|
1120
1120
|
resourceType?: string | undefined;
|
|
1121
1121
|
};
|
|
1122
|
-
decision: "allow" |
|
|
1122
|
+
decision: "allow" | {
|
|
1123
1123
|
pluginId: string;
|
|
1124
1124
|
resourceType: string;
|
|
1125
1125
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1126
|
-
};
|
|
1126
|
+
} | "deny";
|
|
1127
1127
|
}>, {
|
|
1128
|
+
id: string;
|
|
1128
1129
|
match: "*" | {
|
|
1129
1130
|
name?: string | undefined;
|
|
1130
1131
|
actions?: string[] | undefined;
|
|
1131
1132
|
resourceType?: string | undefined;
|
|
1132
1133
|
};
|
|
1133
|
-
|
|
1134
|
-
decision: "allow" | "deny" | {
|
|
1134
|
+
decision: "allow" | {
|
|
1135
1135
|
pluginId: string;
|
|
1136
1136
|
resourceType: string;
|
|
1137
1137
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1138
|
-
};
|
|
1138
|
+
} | "deny";
|
|
1139
1139
|
}, {
|
|
1140
1140
|
id?: string | undefined;
|
|
1141
1141
|
match: "*" | {
|
|
@@ -1143,23 +1143,23 @@ declare const CreateDraftRequestParser: z.ZodObject<{
|
|
|
1143
1143
|
actions?: string[] | undefined;
|
|
1144
1144
|
resourceType?: string | undefined;
|
|
1145
1145
|
};
|
|
1146
|
-
decision: "allow" |
|
|
1146
|
+
decision: "allow" | {
|
|
1147
1147
|
pluginId: string;
|
|
1148
1148
|
resourceType: string;
|
|
1149
1149
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1150
|
-
};
|
|
1150
|
+
} | "deny";
|
|
1151
1151
|
}>, "many">, {
|
|
1152
|
+
id: string;
|
|
1152
1153
|
match: "*" | {
|
|
1153
1154
|
name?: string | undefined;
|
|
1154
1155
|
actions?: string[] | undefined;
|
|
1155
1156
|
resourceType?: string | undefined;
|
|
1156
1157
|
};
|
|
1157
|
-
|
|
1158
|
-
decision: "allow" | "deny" | {
|
|
1158
|
+
decision: "allow" | {
|
|
1159
1159
|
pluginId: string;
|
|
1160
1160
|
resourceType: string;
|
|
1161
1161
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1162
|
-
};
|
|
1162
|
+
} | "deny";
|
|
1163
1163
|
}[], {
|
|
1164
1164
|
id?: string | undefined;
|
|
1165
1165
|
match: "*" | {
|
|
@@ -1167,33 +1167,33 @@ declare const CreateDraftRequestParser: z.ZodObject<{
|
|
|
1167
1167
|
actions?: string[] | undefined;
|
|
1168
1168
|
resourceType?: string | undefined;
|
|
1169
1169
|
};
|
|
1170
|
-
decision: "allow" |
|
|
1170
|
+
decision: "allow" | {
|
|
1171
1171
|
pluginId: string;
|
|
1172
1172
|
resourceType: string;
|
|
1173
1173
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1174
|
-
};
|
|
1174
|
+
} | "deny";
|
|
1175
1175
|
}[]>;
|
|
1176
1176
|
}, "strip", z.ZodTypeAny, {
|
|
1177
1177
|
id: string;
|
|
1178
|
-
name: string;
|
|
1179
1178
|
members: string[] | "*";
|
|
1179
|
+
name: string;
|
|
1180
1180
|
permissions: {
|
|
1181
|
+
id: string;
|
|
1181
1182
|
match: "*" | {
|
|
1182
1183
|
name?: string | undefined;
|
|
1183
1184
|
actions?: string[] | undefined;
|
|
1184
1185
|
resourceType?: string | undefined;
|
|
1185
1186
|
};
|
|
1186
|
-
|
|
1187
|
-
decision: "allow" | "deny" | {
|
|
1187
|
+
decision: "allow" | {
|
|
1188
1188
|
pluginId: string;
|
|
1189
1189
|
resourceType: string;
|
|
1190
1190
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1191
|
-
};
|
|
1191
|
+
} | "deny";
|
|
1192
1192
|
}[];
|
|
1193
1193
|
}, {
|
|
1194
1194
|
id?: string | undefined;
|
|
1195
|
-
name: string;
|
|
1196
1195
|
members: string[] | "*";
|
|
1196
|
+
name: string;
|
|
1197
1197
|
permissions: {
|
|
1198
1198
|
id?: string | undefined;
|
|
1199
1199
|
match: "*" | {
|
|
@@ -1201,33 +1201,33 @@ declare const CreateDraftRequestParser: z.ZodObject<{
|
|
|
1201
1201
|
actions?: string[] | undefined;
|
|
1202
1202
|
resourceType?: string | undefined;
|
|
1203
1203
|
};
|
|
1204
|
-
decision: "allow" |
|
|
1204
|
+
decision: "allow" | {
|
|
1205
1205
|
pluginId: string;
|
|
1206
1206
|
resourceType: string;
|
|
1207
1207
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1208
|
-
};
|
|
1208
|
+
} | "deny";
|
|
1209
1209
|
}[];
|
|
1210
1210
|
}>, "many">>, {
|
|
1211
1211
|
id: string;
|
|
1212
|
-
name: string;
|
|
1213
1212
|
members: string[] | "*";
|
|
1213
|
+
name: string;
|
|
1214
1214
|
permissions: {
|
|
1215
|
+
id: string;
|
|
1215
1216
|
match: "*" | {
|
|
1216
1217
|
name?: string | undefined;
|
|
1217
1218
|
actions?: string[] | undefined;
|
|
1218
1219
|
resourceType?: string | undefined;
|
|
1219
1220
|
};
|
|
1220
|
-
|
|
1221
|
-
decision: "allow" | "deny" | {
|
|
1221
|
+
decision: "allow" | {
|
|
1222
1222
|
pluginId: string;
|
|
1223
1223
|
resourceType: string;
|
|
1224
1224
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1225
|
-
};
|
|
1225
|
+
} | "deny";
|
|
1226
1226
|
}[];
|
|
1227
1227
|
}[], {
|
|
1228
1228
|
id?: string | undefined;
|
|
1229
|
-
name: string;
|
|
1230
1229
|
members: string[] | "*";
|
|
1230
|
+
name: string;
|
|
1231
1231
|
permissions: {
|
|
1232
1232
|
id?: string | undefined;
|
|
1233
1233
|
match: "*" | {
|
|
@@ -1235,39 +1235,39 @@ declare const CreateDraftRequestParser: z.ZodObject<{
|
|
|
1235
1235
|
actions?: string[] | undefined;
|
|
1236
1236
|
resourceType?: string | undefined;
|
|
1237
1237
|
};
|
|
1238
|
-
decision: "allow" |
|
|
1238
|
+
decision: "allow" | {
|
|
1239
1239
|
pluginId: string;
|
|
1240
1240
|
resourceType: string;
|
|
1241
1241
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1242
|
-
};
|
|
1242
|
+
} | "deny";
|
|
1243
1243
|
}[];
|
|
1244
1244
|
}[] | undefined>;
|
|
1245
1245
|
}, "strip", z.ZodTypeAny, {
|
|
1246
1246
|
name: string;
|
|
1247
1247
|
roles: {
|
|
1248
1248
|
id: string;
|
|
1249
|
-
name: string;
|
|
1250
1249
|
members: string[] | "*";
|
|
1250
|
+
name: string;
|
|
1251
1251
|
permissions: {
|
|
1252
|
+
id: string;
|
|
1252
1253
|
match: "*" | {
|
|
1253
1254
|
name?: string | undefined;
|
|
1254
1255
|
actions?: string[] | undefined;
|
|
1255
1256
|
resourceType?: string | undefined;
|
|
1256
1257
|
};
|
|
1257
|
-
|
|
1258
|
-
decision: "allow" | "deny" | {
|
|
1258
|
+
decision: "allow" | {
|
|
1259
1259
|
pluginId: string;
|
|
1260
1260
|
resourceType: string;
|
|
1261
1261
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1262
|
-
};
|
|
1262
|
+
} | "deny";
|
|
1263
1263
|
}[];
|
|
1264
1264
|
}[];
|
|
1265
1265
|
}, {
|
|
1266
1266
|
name?: string | undefined;
|
|
1267
1267
|
roles?: {
|
|
1268
1268
|
id?: string | undefined;
|
|
1269
|
-
name: string;
|
|
1270
1269
|
members: string[] | "*";
|
|
1270
|
+
name: string;
|
|
1271
1271
|
permissions: {
|
|
1272
1272
|
id?: string | undefined;
|
|
1273
1273
|
match: "*" | {
|
|
@@ -1275,11 +1275,11 @@ declare const CreateDraftRequestParser: z.ZodObject<{
|
|
|
1275
1275
|
actions?: string[] | undefined;
|
|
1276
1276
|
resourceType?: string | undefined;
|
|
1277
1277
|
};
|
|
1278
|
-
decision: "allow" |
|
|
1278
|
+
decision: "allow" | {
|
|
1279
1279
|
pluginId: string;
|
|
1280
1280
|
resourceType: string;
|
|
1281
1281
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1282
|
-
};
|
|
1282
|
+
} | "deny";
|
|
1283
1283
|
}[];
|
|
1284
1284
|
}[] | undefined;
|
|
1285
1285
|
}>;
|
|
@@ -1319,17 +1319,17 @@ declare const UpdateDraftRequestParser: z.ZodObject<z.extendShape<{
|
|
|
1319
1319
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1320
1320
|
}>]>;
|
|
1321
1321
|
}, "strip", z.ZodTypeAny, {
|
|
1322
|
+
id: string;
|
|
1322
1323
|
match: "*" | {
|
|
1323
1324
|
name?: string | undefined;
|
|
1324
1325
|
actions?: string[] | undefined;
|
|
1325
1326
|
resourceType?: string | undefined;
|
|
1326
1327
|
};
|
|
1327
|
-
|
|
1328
|
-
decision: "allow" | "deny" | {
|
|
1328
|
+
decision: "allow" | {
|
|
1329
1329
|
pluginId: string;
|
|
1330
1330
|
resourceType: string;
|
|
1331
1331
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1332
|
-
};
|
|
1332
|
+
} | "deny";
|
|
1333
1333
|
}, {
|
|
1334
1334
|
id?: string | undefined;
|
|
1335
1335
|
match: "*" | {
|
|
@@ -1337,23 +1337,23 @@ declare const UpdateDraftRequestParser: z.ZodObject<z.extendShape<{
|
|
|
1337
1337
|
actions?: string[] | undefined;
|
|
1338
1338
|
resourceType?: string | undefined;
|
|
1339
1339
|
};
|
|
1340
|
-
decision: "allow" |
|
|
1340
|
+
decision: "allow" | {
|
|
1341
1341
|
pluginId: string;
|
|
1342
1342
|
resourceType: string;
|
|
1343
1343
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1344
|
-
};
|
|
1344
|
+
} | "deny";
|
|
1345
1345
|
}>, {
|
|
1346
|
+
id: string;
|
|
1346
1347
|
match: "*" | {
|
|
1347
1348
|
name?: string | undefined;
|
|
1348
1349
|
actions?: string[] | undefined;
|
|
1349
1350
|
resourceType?: string | undefined;
|
|
1350
1351
|
};
|
|
1351
|
-
|
|
1352
|
-
decision: "allow" | "deny" | {
|
|
1352
|
+
decision: "allow" | {
|
|
1353
1353
|
pluginId: string;
|
|
1354
1354
|
resourceType: string;
|
|
1355
1355
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1356
|
-
};
|
|
1356
|
+
} | "deny";
|
|
1357
1357
|
}, {
|
|
1358
1358
|
id?: string | undefined;
|
|
1359
1359
|
match: "*" | {
|
|
@@ -1361,23 +1361,23 @@ declare const UpdateDraftRequestParser: z.ZodObject<z.extendShape<{
|
|
|
1361
1361
|
actions?: string[] | undefined;
|
|
1362
1362
|
resourceType?: string | undefined;
|
|
1363
1363
|
};
|
|
1364
|
-
decision: "allow" |
|
|
1364
|
+
decision: "allow" | {
|
|
1365
1365
|
pluginId: string;
|
|
1366
1366
|
resourceType: string;
|
|
1367
1367
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1368
|
-
};
|
|
1368
|
+
} | "deny";
|
|
1369
1369
|
}>, "many">, {
|
|
1370
|
+
id: string;
|
|
1370
1371
|
match: "*" | {
|
|
1371
1372
|
name?: string | undefined;
|
|
1372
1373
|
actions?: string[] | undefined;
|
|
1373
1374
|
resourceType?: string | undefined;
|
|
1374
1375
|
};
|
|
1375
|
-
|
|
1376
|
-
decision: "allow" | "deny" | {
|
|
1376
|
+
decision: "allow" | {
|
|
1377
1377
|
pluginId: string;
|
|
1378
1378
|
resourceType: string;
|
|
1379
1379
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1380
|
-
};
|
|
1380
|
+
} | "deny";
|
|
1381
1381
|
}[], {
|
|
1382
1382
|
id?: string | undefined;
|
|
1383
1383
|
match: "*" | {
|
|
@@ -1385,33 +1385,33 @@ declare const UpdateDraftRequestParser: z.ZodObject<z.extendShape<{
|
|
|
1385
1385
|
actions?: string[] | undefined;
|
|
1386
1386
|
resourceType?: string | undefined;
|
|
1387
1387
|
};
|
|
1388
|
-
decision: "allow" |
|
|
1388
|
+
decision: "allow" | {
|
|
1389
1389
|
pluginId: string;
|
|
1390
1390
|
resourceType: string;
|
|
1391
1391
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1392
|
-
};
|
|
1392
|
+
} | "deny";
|
|
1393
1393
|
}[]>;
|
|
1394
1394
|
}, "strip", z.ZodTypeAny, {
|
|
1395
1395
|
id: string;
|
|
1396
|
-
name: string;
|
|
1397
1396
|
members: string[] | "*";
|
|
1397
|
+
name: string;
|
|
1398
1398
|
permissions: {
|
|
1399
|
+
id: string;
|
|
1399
1400
|
match: "*" | {
|
|
1400
1401
|
name?: string | undefined;
|
|
1401
1402
|
actions?: string[] | undefined;
|
|
1402
1403
|
resourceType?: string | undefined;
|
|
1403
1404
|
};
|
|
1404
|
-
|
|
1405
|
-
decision: "allow" | "deny" | {
|
|
1405
|
+
decision: "allow" | {
|
|
1406
1406
|
pluginId: string;
|
|
1407
1407
|
resourceType: string;
|
|
1408
1408
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1409
|
-
};
|
|
1409
|
+
} | "deny";
|
|
1410
1410
|
}[];
|
|
1411
1411
|
}, {
|
|
1412
1412
|
id?: string | undefined;
|
|
1413
|
-
name: string;
|
|
1414
1413
|
members: string[] | "*";
|
|
1414
|
+
name: string;
|
|
1415
1415
|
permissions: {
|
|
1416
1416
|
id?: string | undefined;
|
|
1417
1417
|
match: "*" | {
|
|
@@ -1419,33 +1419,33 @@ declare const UpdateDraftRequestParser: z.ZodObject<z.extendShape<{
|
|
|
1419
1419
|
actions?: string[] | undefined;
|
|
1420
1420
|
resourceType?: string | undefined;
|
|
1421
1421
|
};
|
|
1422
|
-
decision: "allow" |
|
|
1422
|
+
decision: "allow" | {
|
|
1423
1423
|
pluginId: string;
|
|
1424
1424
|
resourceType: string;
|
|
1425
1425
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1426
|
-
};
|
|
1426
|
+
} | "deny";
|
|
1427
1427
|
}[];
|
|
1428
1428
|
}>, "many">>, {
|
|
1429
1429
|
id: string;
|
|
1430
|
-
name: string;
|
|
1431
1430
|
members: string[] | "*";
|
|
1431
|
+
name: string;
|
|
1432
1432
|
permissions: {
|
|
1433
|
+
id: string;
|
|
1433
1434
|
match: "*" | {
|
|
1434
1435
|
name?: string | undefined;
|
|
1435
1436
|
actions?: string[] | undefined;
|
|
1436
1437
|
resourceType?: string | undefined;
|
|
1437
1438
|
};
|
|
1438
|
-
|
|
1439
|
-
decision: "allow" | "deny" | {
|
|
1439
|
+
decision: "allow" | {
|
|
1440
1440
|
pluginId: string;
|
|
1441
1441
|
resourceType: string;
|
|
1442
1442
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1443
|
-
};
|
|
1443
|
+
} | "deny";
|
|
1444
1444
|
}[];
|
|
1445
1445
|
}[], {
|
|
1446
1446
|
id?: string | undefined;
|
|
1447
|
-
name: string;
|
|
1448
1447
|
members: string[] | "*";
|
|
1448
|
+
name: string;
|
|
1449
1449
|
permissions: {
|
|
1450
1450
|
id?: string | undefined;
|
|
1451
1451
|
match: "*" | {
|
|
@@ -1453,11 +1453,11 @@ declare const UpdateDraftRequestParser: z.ZodObject<z.extendShape<{
|
|
|
1453
1453
|
actions?: string[] | undefined;
|
|
1454
1454
|
resourceType?: string | undefined;
|
|
1455
1455
|
};
|
|
1456
|
-
decision: "allow" |
|
|
1456
|
+
decision: "allow" | {
|
|
1457
1457
|
pluginId: string;
|
|
1458
1458
|
resourceType: string;
|
|
1459
1459
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1460
|
-
};
|
|
1460
|
+
} | "deny";
|
|
1461
1461
|
}[];
|
|
1462
1462
|
}[] | undefined>;
|
|
1463
1463
|
}, {
|
|
@@ -1495,17 +1495,17 @@ declare const UpdateDraftRequestParser: z.ZodObject<z.extendShape<{
|
|
|
1495
1495
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1496
1496
|
}>]>;
|
|
1497
1497
|
}, "strip", z.ZodTypeAny, {
|
|
1498
|
+
id: string;
|
|
1498
1499
|
match: "*" | {
|
|
1499
1500
|
name?: string | undefined;
|
|
1500
1501
|
actions?: string[] | undefined;
|
|
1501
1502
|
resourceType?: string | undefined;
|
|
1502
1503
|
};
|
|
1503
|
-
|
|
1504
|
-
decision: "allow" | "deny" | {
|
|
1504
|
+
decision: "allow" | {
|
|
1505
1505
|
pluginId: string;
|
|
1506
1506
|
resourceType: string;
|
|
1507
1507
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1508
|
-
};
|
|
1508
|
+
} | "deny";
|
|
1509
1509
|
}, {
|
|
1510
1510
|
id?: string | undefined;
|
|
1511
1511
|
match: "*" | {
|
|
@@ -1513,23 +1513,23 @@ declare const UpdateDraftRequestParser: z.ZodObject<z.extendShape<{
|
|
|
1513
1513
|
actions?: string[] | undefined;
|
|
1514
1514
|
resourceType?: string | undefined;
|
|
1515
1515
|
};
|
|
1516
|
-
decision: "allow" |
|
|
1516
|
+
decision: "allow" | {
|
|
1517
1517
|
pluginId: string;
|
|
1518
1518
|
resourceType: string;
|
|
1519
1519
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1520
|
-
};
|
|
1520
|
+
} | "deny";
|
|
1521
1521
|
}>, {
|
|
1522
|
+
id: string;
|
|
1522
1523
|
match: "*" | {
|
|
1523
1524
|
name?: string | undefined;
|
|
1524
1525
|
actions?: string[] | undefined;
|
|
1525
1526
|
resourceType?: string | undefined;
|
|
1526
1527
|
};
|
|
1527
|
-
|
|
1528
|
-
decision: "allow" | "deny" | {
|
|
1528
|
+
decision: "allow" | {
|
|
1529
1529
|
pluginId: string;
|
|
1530
1530
|
resourceType: string;
|
|
1531
1531
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1532
|
-
};
|
|
1532
|
+
} | "deny";
|
|
1533
1533
|
}, {
|
|
1534
1534
|
id?: string | undefined;
|
|
1535
1535
|
match: "*" | {
|
|
@@ -1537,23 +1537,23 @@ declare const UpdateDraftRequestParser: z.ZodObject<z.extendShape<{
|
|
|
1537
1537
|
actions?: string[] | undefined;
|
|
1538
1538
|
resourceType?: string | undefined;
|
|
1539
1539
|
};
|
|
1540
|
-
decision: "allow" |
|
|
1540
|
+
decision: "allow" | {
|
|
1541
1541
|
pluginId: string;
|
|
1542
1542
|
resourceType: string;
|
|
1543
1543
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1544
|
-
};
|
|
1544
|
+
} | "deny";
|
|
1545
1545
|
}>, "many">, {
|
|
1546
|
+
id: string;
|
|
1546
1547
|
match: "*" | {
|
|
1547
1548
|
name?: string | undefined;
|
|
1548
1549
|
actions?: string[] | undefined;
|
|
1549
1550
|
resourceType?: string | undefined;
|
|
1550
1551
|
};
|
|
1551
|
-
|
|
1552
|
-
decision: "allow" | "deny" | {
|
|
1552
|
+
decision: "allow" | {
|
|
1553
1553
|
pluginId: string;
|
|
1554
1554
|
resourceType: string;
|
|
1555
1555
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1556
|
-
};
|
|
1556
|
+
} | "deny";
|
|
1557
1557
|
}[], {
|
|
1558
1558
|
id?: string | undefined;
|
|
1559
1559
|
match: "*" | {
|
|
@@ -1561,33 +1561,33 @@ declare const UpdateDraftRequestParser: z.ZodObject<z.extendShape<{
|
|
|
1561
1561
|
actions?: string[] | undefined;
|
|
1562
1562
|
resourceType?: string | undefined;
|
|
1563
1563
|
};
|
|
1564
|
-
decision: "allow" |
|
|
1564
|
+
decision: "allow" | {
|
|
1565
1565
|
pluginId: string;
|
|
1566
1566
|
resourceType: string;
|
|
1567
1567
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1568
|
-
};
|
|
1568
|
+
} | "deny";
|
|
1569
1569
|
}[]>;
|
|
1570
1570
|
}, "strip", z.ZodTypeAny, {
|
|
1571
1571
|
id: string;
|
|
1572
|
-
name: string;
|
|
1573
1572
|
members: string[] | "*";
|
|
1573
|
+
name: string;
|
|
1574
1574
|
permissions: {
|
|
1575
|
+
id: string;
|
|
1575
1576
|
match: "*" | {
|
|
1576
1577
|
name?: string | undefined;
|
|
1577
1578
|
actions?: string[] | undefined;
|
|
1578
1579
|
resourceType?: string | undefined;
|
|
1579
1580
|
};
|
|
1580
|
-
|
|
1581
|
-
decision: "allow" | "deny" | {
|
|
1581
|
+
decision: "allow" | {
|
|
1582
1582
|
pluginId: string;
|
|
1583
1583
|
resourceType: string;
|
|
1584
1584
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1585
|
-
};
|
|
1585
|
+
} | "deny";
|
|
1586
1586
|
}[];
|
|
1587
1587
|
}, {
|
|
1588
1588
|
id?: string | undefined;
|
|
1589
|
-
name: string;
|
|
1590
1589
|
members: string[] | "*";
|
|
1590
|
+
name: string;
|
|
1591
1591
|
permissions: {
|
|
1592
1592
|
id?: string | undefined;
|
|
1593
1593
|
match: "*" | {
|
|
@@ -1595,33 +1595,33 @@ declare const UpdateDraftRequestParser: z.ZodObject<z.extendShape<{
|
|
|
1595
1595
|
actions?: string[] | undefined;
|
|
1596
1596
|
resourceType?: string | undefined;
|
|
1597
1597
|
};
|
|
1598
|
-
decision: "allow" |
|
|
1598
|
+
decision: "allow" | {
|
|
1599
1599
|
pluginId: string;
|
|
1600
1600
|
resourceType: string;
|
|
1601
1601
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1602
|
-
};
|
|
1602
|
+
} | "deny";
|
|
1603
1603
|
}[];
|
|
1604
1604
|
}>, "many">>, {
|
|
1605
1605
|
id: string;
|
|
1606
|
-
name: string;
|
|
1607
1606
|
members: string[] | "*";
|
|
1607
|
+
name: string;
|
|
1608
1608
|
permissions: {
|
|
1609
|
+
id: string;
|
|
1609
1610
|
match: "*" | {
|
|
1610
1611
|
name?: string | undefined;
|
|
1611
1612
|
actions?: string[] | undefined;
|
|
1612
1613
|
resourceType?: string | undefined;
|
|
1613
1614
|
};
|
|
1614
|
-
|
|
1615
|
-
decision: "allow" | "deny" | {
|
|
1615
|
+
decision: "allow" | {
|
|
1616
1616
|
pluginId: string;
|
|
1617
1617
|
resourceType: string;
|
|
1618
1618
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1619
|
-
};
|
|
1619
|
+
} | "deny";
|
|
1620
1620
|
}[];
|
|
1621
1621
|
}[], {
|
|
1622
1622
|
id?: string | undefined;
|
|
1623
|
-
name: string;
|
|
1624
1623
|
members: string[] | "*";
|
|
1624
|
+
name: string;
|
|
1625
1625
|
permissions: {
|
|
1626
1626
|
id?: string | undefined;
|
|
1627
1627
|
match: "*" | {
|
|
@@ -1629,39 +1629,39 @@ declare const UpdateDraftRequestParser: z.ZodObject<z.extendShape<{
|
|
|
1629
1629
|
actions?: string[] | undefined;
|
|
1630
1630
|
resourceType?: string | undefined;
|
|
1631
1631
|
};
|
|
1632
|
-
decision: "allow" |
|
|
1632
|
+
decision: "allow" | {
|
|
1633
1633
|
pluginId: string;
|
|
1634
1634
|
resourceType: string;
|
|
1635
1635
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1636
|
-
};
|
|
1636
|
+
} | "deny";
|
|
1637
1637
|
}[];
|
|
1638
1638
|
}[] | undefined>>;
|
|
1639
1639
|
}>, "strip", z.ZodTypeAny, {
|
|
1640
1640
|
name?: string | undefined;
|
|
1641
1641
|
roles?: {
|
|
1642
1642
|
id: string;
|
|
1643
|
-
name: string;
|
|
1644
1643
|
members: string[] | "*";
|
|
1644
|
+
name: string;
|
|
1645
1645
|
permissions: {
|
|
1646
|
+
id: string;
|
|
1646
1647
|
match: "*" | {
|
|
1647
1648
|
name?: string | undefined;
|
|
1648
1649
|
actions?: string[] | undefined;
|
|
1649
1650
|
resourceType?: string | undefined;
|
|
1650
1651
|
};
|
|
1651
|
-
|
|
1652
|
-
decision: "allow" | "deny" | {
|
|
1652
|
+
decision: "allow" | {
|
|
1653
1653
|
pluginId: string;
|
|
1654
1654
|
resourceType: string;
|
|
1655
1655
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1656
|
-
};
|
|
1656
|
+
} | "deny";
|
|
1657
1657
|
}[];
|
|
1658
1658
|
}[] | undefined;
|
|
1659
1659
|
}, {
|
|
1660
1660
|
name?: string | undefined;
|
|
1661
1661
|
roles?: {
|
|
1662
1662
|
id?: string | undefined;
|
|
1663
|
-
name: string;
|
|
1664
1663
|
members: string[] | "*";
|
|
1664
|
+
name: string;
|
|
1665
1665
|
permissions: {
|
|
1666
1666
|
id?: string | undefined;
|
|
1667
1667
|
match: "*" | {
|
|
@@ -1669,11 +1669,11 @@ declare const UpdateDraftRequestParser: z.ZodObject<z.extendShape<{
|
|
|
1669
1669
|
actions?: string[] | undefined;
|
|
1670
1670
|
resourceType?: string | undefined;
|
|
1671
1671
|
};
|
|
1672
|
-
decision: "allow" |
|
|
1672
|
+
decision: "allow" | {
|
|
1673
1673
|
pluginId: string;
|
|
1674
1674
|
resourceType: string;
|
|
1675
1675
|
conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
|
|
1676
|
-
};
|
|
1676
|
+
} | "deny";
|
|
1677
1677
|
}[];
|
|
1678
1678
|
}[] | undefined;
|
|
1679
1679
|
}>;
|