@spotify/backstage-plugin-rbac-common 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @spotify/backstage-plugin-rbac-common
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 7488dd5e: Updated to Backstage release `1.11.0`.
8
+
9
+ ### Patch Changes
10
+
11
+ - 75240255: Updated dependency `uuid` to `^v9.0.0`.
12
+ - 3da31b35: Updated dependency `zod` to `^v3.20.0`.
13
+
3
14
  ## 0.3.0
4
15
 
5
16
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -1284,183 +1284,7 @@ declare const CreateDraftRequestParser: z.ZodObject<{
1284
1284
  }[] | undefined;
1285
1285
  }>;
1286
1286
  /** @public */
1287
- declare const UpdateDraftRequestParser: z.ZodObject<z.extendShape<{
1288
- name: z.ZodDefault<z.ZodString>;
1289
- roles: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodObject<{
1290
- name: z.ZodString;
1291
- id: z.ZodDefault<z.ZodString>;
1292
- members: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">]>;
1293
- permissions: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
1294
- id: z.ZodDefault<z.ZodString>;
1295
- match: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodObject<{
1296
- name: z.ZodOptional<z.ZodString>;
1297
- actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1298
- resourceType: z.ZodOptional<z.ZodString>;
1299
- }, "strip", z.ZodTypeAny, {
1300
- name?: string | undefined;
1301
- actions?: string[] | undefined;
1302
- resourceType?: string | undefined;
1303
- }, {
1304
- name?: string | undefined;
1305
- actions?: string[] | undefined;
1306
- resourceType?: string | undefined;
1307
- }>]>;
1308
- decision: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"allow">, z.ZodLiteral<"deny">]>, z.ZodObject<{
1309
- pluginId: z.ZodString;
1310
- resourceType: z.ZodString;
1311
- conditions: z.ZodType<_backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>, z.ZodTypeDef, _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>>;
1312
- }, "strip", z.ZodTypeAny, {
1313
- pluginId: string;
1314
- resourceType: string;
1315
- conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
1316
- }, {
1317
- pluginId: string;
1318
- resourceType: string;
1319
- conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
1320
- }>]>;
1321
- }, "strip", z.ZodTypeAny, {
1322
- id: string;
1323
- match: "*" | {
1324
- name?: string | undefined;
1325
- actions?: string[] | undefined;
1326
- resourceType?: string | undefined;
1327
- };
1328
- decision: "allow" | {
1329
- pluginId: string;
1330
- resourceType: string;
1331
- conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
1332
- } | "deny";
1333
- }, {
1334
- id?: string | undefined;
1335
- match: "*" | {
1336
- name?: string | undefined;
1337
- actions?: string[] | undefined;
1338
- resourceType?: string | undefined;
1339
- };
1340
- decision: "allow" | {
1341
- pluginId: string;
1342
- resourceType: string;
1343
- conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
1344
- } | "deny";
1345
- }>, {
1346
- id: string;
1347
- match: "*" | {
1348
- name?: string | undefined;
1349
- actions?: string[] | undefined;
1350
- resourceType?: string | undefined;
1351
- };
1352
- decision: "allow" | {
1353
- pluginId: string;
1354
- resourceType: string;
1355
- conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
1356
- } | "deny";
1357
- }, {
1358
- id?: string | undefined;
1359
- match: "*" | {
1360
- name?: string | undefined;
1361
- actions?: string[] | undefined;
1362
- resourceType?: string | undefined;
1363
- };
1364
- decision: "allow" | {
1365
- pluginId: string;
1366
- resourceType: string;
1367
- conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
1368
- } | "deny";
1369
- }>, "many">, {
1370
- id: string;
1371
- match: "*" | {
1372
- name?: string | undefined;
1373
- actions?: string[] | undefined;
1374
- resourceType?: string | undefined;
1375
- };
1376
- decision: "allow" | {
1377
- pluginId: string;
1378
- resourceType: string;
1379
- conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
1380
- } | "deny";
1381
- }[], {
1382
- id?: string | undefined;
1383
- match: "*" | {
1384
- name?: string | undefined;
1385
- actions?: string[] | undefined;
1386
- resourceType?: string | undefined;
1387
- };
1388
- decision: "allow" | {
1389
- pluginId: string;
1390
- resourceType: string;
1391
- conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
1392
- } | "deny";
1393
- }[]>;
1394
- }, "strip", z.ZodTypeAny, {
1395
- id: string;
1396
- members: string[] | "*";
1397
- name: string;
1398
- permissions: {
1399
- id: string;
1400
- match: "*" | {
1401
- name?: string | undefined;
1402
- actions?: string[] | undefined;
1403
- resourceType?: string | undefined;
1404
- };
1405
- decision: "allow" | {
1406
- pluginId: string;
1407
- resourceType: string;
1408
- conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
1409
- } | "deny";
1410
- }[];
1411
- }, {
1412
- id?: string | undefined;
1413
- members: string[] | "*";
1414
- name: string;
1415
- permissions: {
1416
- id?: string | undefined;
1417
- match: "*" | {
1418
- name?: string | undefined;
1419
- actions?: string[] | undefined;
1420
- resourceType?: string | undefined;
1421
- };
1422
- decision: "allow" | {
1423
- pluginId: string;
1424
- resourceType: string;
1425
- conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
1426
- } | "deny";
1427
- }[];
1428
- }>, "many">>, {
1429
- id: string;
1430
- members: string[] | "*";
1431
- name: string;
1432
- permissions: {
1433
- id: string;
1434
- match: "*" | {
1435
- name?: string | undefined;
1436
- actions?: string[] | undefined;
1437
- resourceType?: string | undefined;
1438
- };
1439
- decision: "allow" | {
1440
- pluginId: string;
1441
- resourceType: string;
1442
- conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
1443
- } | "deny";
1444
- }[];
1445
- }[], {
1446
- id?: string | undefined;
1447
- members: string[] | "*";
1448
- name: string;
1449
- permissions: {
1450
- id?: string | undefined;
1451
- match: "*" | {
1452
- name?: string | undefined;
1453
- actions?: string[] | undefined;
1454
- resourceType?: string | undefined;
1455
- };
1456
- decision: "allow" | {
1457
- pluginId: string;
1458
- resourceType: string;
1459
- conditions: _backstage_plugin_permission_common.PermissionCriteria<RBACPermissionCondition>;
1460
- } | "deny";
1461
- }[];
1462
- }[] | undefined>;
1463
- }, {
1287
+ declare const UpdateDraftRequestParser: z.ZodObject<{
1464
1288
  name: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1465
1289
  roles: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodObject<{
1466
1290
  name: z.ZodString;
@@ -1636,7 +1460,7 @@ declare const UpdateDraftRequestParser: z.ZodObject<z.extendShape<{
1636
1460
  } | "deny";
1637
1461
  }[];
1638
1462
  }[] | undefined>>;
1639
- }>, "strip", z.ZodTypeAny, {
1463
+ }, "strip", z.ZodTypeAny, {
1640
1464
  name?: string | undefined;
1641
1465
  roles?: {
1642
1466
  id: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spotify/backstage-plugin-rbac-common",
3
3
  "description": "Control access to actions and data in Backstage with ease.",
4
- "version": "0.3.0",
4
+ "version": "0.4.0",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "homepage": "https://backstage.spotify.com/",
7
7
  "main": "dist/index.cjs.js",
@@ -23,14 +23,14 @@
23
23
  "postpack": "backstage-cli package postpack"
24
24
  },
25
25
  "dependencies": {
26
- "@backstage/catalog-model": "^1.1.5",
26
+ "@backstage/catalog-model": "^1.2.0",
27
27
  "@backstage/plugin-permission-common": "^0.7.3",
28
28
  "@backstage/types": "^1.0.2",
29
- "uuid": "^8.3.2",
30
- "zod": "^3.18.0"
29
+ "uuid": "^9.0.0",
30
+ "zod": "^3.20.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@backstage/cli": "^0.22.1"
33
+ "@backstage/cli": "^0.22.2"
34
34
  },
35
35
  "files": [
36
36
  "dist",