@spotify/backstage-plugin-rbac-common 0.6.8 → 0.6.10

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,17 @@
1
1
  # @spotify/backstage-plugin-rbac-common
2
2
 
3
+ ## 0.6.10
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependency `backstage` to `1.44.1`.
8
+
9
+ ## 0.6.9
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependency `backstage` to `1.42.0`.
14
+
3
15
  ## 0.6.8
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -795,10 +795,10 @@ declare const PolicyConfigParser: z.ZodObject<{
795
795
  description?: string | undefined;
796
796
  }[] | undefined>;
797
797
  }, "strip", z.ZodTypeAny, {
798
+ name: string;
798
799
  options: {
799
800
  resolutionStrategy: "first-match" | "any-allow";
800
801
  };
801
- name: string;
802
802
  roles: {
803
803
  id: string;
804
804
  name: string;
@@ -819,10 +819,10 @@ declare const PolicyConfigParser: z.ZodObject<{
819
819
  description?: string | undefined;
820
820
  }[];
821
821
  }, {
822
+ name?: string | undefined;
822
823
  options?: {
823
824
  resolutionStrategy: "first-match" | "any-allow";
824
825
  } | undefined;
825
- name?: string | undefined;
826
826
  roles?: {
827
827
  name: string;
828
828
  members: string[] | "*";
@@ -1033,10 +1033,10 @@ declare const DefaultingPolicyConfigParser: z.ZodDefault<z.ZodObject<{
1033
1033
  description?: string | undefined;
1034
1034
  }[] | undefined>;
1035
1035
  }, "strip", z.ZodTypeAny, {
1036
+ name: string;
1036
1037
  options: {
1037
1038
  resolutionStrategy: "first-match" | "any-allow";
1038
1039
  };
1039
- name: string;
1040
1040
  roles: {
1041
1041
  id: string;
1042
1042
  name: string;
@@ -1057,10 +1057,10 @@ declare const DefaultingPolicyConfigParser: z.ZodDefault<z.ZodObject<{
1057
1057
  description?: string | undefined;
1058
1058
  }[];
1059
1059
  }, {
1060
+ name?: string | undefined;
1060
1061
  options?: {
1061
1062
  resolutionStrategy: "first-match" | "any-allow";
1062
1063
  } | undefined;
1063
- name?: string | undefined;
1064
1064
  roles?: {
1065
1065
  name: string;
1066
1066
  members: string[] | "*";
@@ -1318,11 +1318,10 @@ declare const PolicyParser: z.ZodObject<{
1318
1318
  }, "strip", z.ZodTypeAny, {
1319
1319
  id: string;
1320
1320
  status: "active" | "inactive" | "draft";
1321
+ name: string;
1321
1322
  options: {
1322
1323
  resolutionStrategy: "first-match" | "any-allow";
1323
1324
  };
1324
- name: string;
1325
- createdBy: string;
1326
1325
  createdAt: string;
1327
1326
  updatedAt: string;
1328
1327
  roles: {
@@ -1344,6 +1343,7 @@ declare const PolicyParser: z.ZodObject<{
1344
1343
  }[];
1345
1344
  description?: string | undefined;
1346
1345
  }[];
1346
+ createdBy: string;
1347
1347
  updatedBy: string;
1348
1348
  description?: string | null | undefined;
1349
1349
  lastPublishedAt?: string | null | undefined;
@@ -1351,15 +1351,15 @@ declare const PolicyParser: z.ZodObject<{
1351
1351
  }, {
1352
1352
  id: string;
1353
1353
  status: "active" | "inactive" | "draft";
1354
- createdBy: string;
1355
1354
  createdAt: string;
1356
1355
  updatedAt: string;
1356
+ createdBy: string;
1357
1357
  updatedBy: string;
1358
+ name?: string | undefined;
1359
+ description?: string | null | undefined;
1358
1360
  options?: {
1359
1361
  resolutionStrategy: "first-match" | "any-allow";
1360
1362
  } | undefined;
1361
- name?: string | undefined;
1362
- description?: string | null | undefined;
1363
1363
  roles?: {
1364
1364
  name: string;
1365
1365
  members: string[] | "*";
@@ -1601,10 +1601,10 @@ declare const CreateDraftRequestParser: z.ZodObject<{
1601
1601
  description?: string | undefined;
1602
1602
  }[] | undefined>;
1603
1603
  }, "strip", z.ZodTypeAny, {
1604
+ name: string;
1604
1605
  options: {
1605
1606
  resolutionStrategy: "first-match" | "any-allow";
1606
1607
  };
1607
- name: string;
1608
1608
  roles: {
1609
1609
  id: string;
1610
1610
  name: string;
@@ -1625,10 +1625,10 @@ declare const CreateDraftRequestParser: z.ZodObject<{
1625
1625
  description?: string | undefined;
1626
1626
  }[];
1627
1627
  }, {
1628
+ name?: string | undefined;
1628
1629
  options?: {
1629
1630
  resolutionStrategy: "first-match" | "any-allow";
1630
1631
  } | undefined;
1631
- name?: string | undefined;
1632
1632
  roles?: {
1633
1633
  name: string;
1634
1634
  members: string[] | "*";
@@ -1839,10 +1839,10 @@ declare const UpdateDraftRequestParser: z.ZodObject<{} & {
1839
1839
  description?: string | undefined;
1840
1840
  }[] | undefined>>;
1841
1841
  }, "strip", z.ZodTypeAny, {
1842
+ name?: string | undefined;
1842
1843
  options?: {
1843
1844
  resolutionStrategy: "first-match" | "any-allow";
1844
1845
  } | undefined;
1845
- name?: string | undefined;
1846
1846
  roles?: {
1847
1847
  id: string;
1848
1848
  name: string;
@@ -1863,10 +1863,10 @@ declare const UpdateDraftRequestParser: z.ZodObject<{} & {
1863
1863
  description?: string | undefined;
1864
1864
  }[] | undefined;
1865
1865
  }, {
1866
+ name?: string | undefined;
1866
1867
  options?: {
1867
1868
  resolutionStrategy: "first-match" | "any-allow";
1868
1869
  } | undefined;
1869
- name?: string | undefined;
1870
1870
  roles?: {
1871
1871
  name: string;
1872
1872
  members: string[] | "*";
@@ -2079,10 +2079,10 @@ declare const PublishVersionRequestParser: z.ZodObject<{
2079
2079
  description?: string | undefined;
2080
2080
  }[] | undefined>>;
2081
2081
  }, "strip", z.ZodTypeAny, {
2082
+ name?: string | undefined;
2082
2083
  options?: {
2083
2084
  resolutionStrategy: "first-match" | "any-allow";
2084
2085
  } | undefined;
2085
- name?: string | undefined;
2086
2086
  roles?: {
2087
2087
  id: string;
2088
2088
  name: string;
@@ -2103,10 +2103,10 @@ declare const PublishVersionRequestParser: z.ZodObject<{
2103
2103
  description?: string | undefined;
2104
2104
  }[] | undefined;
2105
2105
  }, {
2106
+ name?: string | undefined;
2106
2107
  options?: {
2107
2108
  resolutionStrategy: "first-match" | "any-allow";
2108
2109
  } | undefined;
2109
- name?: string | undefined;
2110
2110
  roles?: {
2111
2111
  name: string;
2112
2112
  members: string[] | "*";
@@ -2128,12 +2128,11 @@ declare const PublishVersionRequestParser: z.ZodObject<{
2128
2128
  }[] | undefined;
2129
2129
  }>>;
2130
2130
  }, "strip", z.ZodTypeAny, {
2131
- description?: string | undefined;
2132
2131
  update?: {
2132
+ name?: string | undefined;
2133
2133
  options?: {
2134
2134
  resolutionStrategy: "first-match" | "any-allow";
2135
2135
  } | undefined;
2136
- name?: string | undefined;
2137
2136
  roles?: {
2138
2137
  id: string;
2139
2138
  name: string;
@@ -2154,13 +2153,13 @@ declare const PublishVersionRequestParser: z.ZodObject<{
2154
2153
  description?: string | undefined;
2155
2154
  }[] | undefined;
2156
2155
  } | undefined;
2157
- }, {
2158
2156
  description?: string | undefined;
2157
+ }, {
2159
2158
  update?: {
2159
+ name?: string | undefined;
2160
2160
  options?: {
2161
2161
  resolutionStrategy: "first-match" | "any-allow";
2162
2162
  } | undefined;
2163
- name?: string | undefined;
2164
2163
  roles?: {
2165
2164
  name: string;
2166
2165
  members: string[] | "*";
@@ -2181,6 +2180,7 @@ declare const PublishVersionRequestParser: z.ZodObject<{
2181
2180
  description?: string | undefined;
2182
2181
  }[] | undefined;
2183
2182
  } | undefined;
2183
+ description?: string | undefined;
2184
2184
  }>;
2185
2185
  /** @public */
2186
2186
  declare const TestPolicyDecisionResponseParser: z.ZodObject<{
@@ -2496,10 +2496,10 @@ declare const TestPolicyDecisionRequestParser: z.ZodObject<{
2496
2496
  description?: string | undefined;
2497
2497
  }[] | undefined>;
2498
2498
  }, "strip", z.ZodTypeAny, {
2499
+ name: string;
2499
2500
  options: {
2500
2501
  resolutionStrategy: "first-match" | "any-allow";
2501
2502
  };
2502
- name: string;
2503
2503
  roles: {
2504
2504
  id: string;
2505
2505
  name: string;
@@ -2520,10 +2520,10 @@ declare const TestPolicyDecisionRequestParser: z.ZodObject<{
2520
2520
  description?: string | undefined;
2521
2521
  }[];
2522
2522
  }, {
2523
+ name?: string | undefined;
2523
2524
  options?: {
2524
2525
  resolutionStrategy: "first-match" | "any-allow";
2525
2526
  } | undefined;
2526
- name?: string | undefined;
2527
2527
  roles?: {
2528
2528
  name: string;
2529
2529
  members: string[] | "*";
@@ -2557,10 +2557,10 @@ declare const TestPolicyDecisionRequestParser: z.ZodObject<{
2557
2557
  attributes: _backstage_plugin_permission_common.PermissionAttributes;
2558
2558
  };
2559
2559
  policyConfig: {
2560
+ name: string;
2560
2561
  options: {
2561
2562
  resolutionStrategy: "first-match" | "any-allow";
2562
2563
  };
2563
- name: string;
2564
2564
  roles: {
2565
2565
  id: string;
2566
2566
  name: string;
@@ -2594,10 +2594,10 @@ declare const TestPolicyDecisionRequestParser: z.ZodObject<{
2594
2594
  attributes: _backstage_plugin_permission_common.PermissionAttributes;
2595
2595
  };
2596
2596
  policyConfig: {
2597
+ name?: string | undefined;
2597
2598
  options?: {
2598
2599
  resolutionStrategy: "first-match" | "any-allow";
2599
2600
  } | undefined;
2600
- name?: string | undefined;
2601
2601
  roles?: {
2602
2602
  name: string;
2603
2603
  members: string[] | "*";
@@ -2680,11 +2680,11 @@ declare const MemberResponseParser: z.ZodObject<{
2680
2680
  } | undefined;
2681
2681
  }>>;
2682
2682
  }, "strip", z.ZodTypeAny, {
2683
- type: "unknown" | "all" | "user" | "group";
2683
+ type: "user" | "group" | "all" | "unknown";
2684
2684
  entityRef: string;
2685
2685
  name?: string | undefined;
2686
- description?: string | undefined;
2687
2686
  namespace?: string | undefined;
2687
+ description?: string | undefined;
2688
2688
  spec?: {
2689
2689
  type?: string | undefined;
2690
2690
  profile?: {
@@ -2692,11 +2692,11 @@ declare const MemberResponseParser: z.ZodObject<{
2692
2692
  } | undefined;
2693
2693
  } | undefined;
2694
2694
  }, {
2695
- type: "unknown" | "all" | "user" | "group";
2695
+ type: "user" | "group" | "all" | "unknown";
2696
2696
  entityRef: string;
2697
2697
  name?: string | undefined;
2698
- description?: string | undefined;
2699
2698
  namespace?: string | undefined;
2699
+ description?: string | undefined;
2700
2700
  spec?: {
2701
2701
  type?: string | undefined;
2702
2702
  profile?: {
@@ -2740,11 +2740,11 @@ declare const SearchMemberResponseParser: z.ZodObject<{
2740
2740
  } | undefined;
2741
2741
  }>>;
2742
2742
  }, "strip", z.ZodTypeAny, {
2743
- type: "unknown" | "all" | "user" | "group";
2743
+ type: "user" | "group" | "all" | "unknown";
2744
2744
  entityRef: string;
2745
2745
  name?: string | undefined;
2746
- description?: string | undefined;
2747
2746
  namespace?: string | undefined;
2747
+ description?: string | undefined;
2748
2748
  spec?: {
2749
2749
  type?: string | undefined;
2750
2750
  profile?: {
@@ -2752,11 +2752,11 @@ declare const SearchMemberResponseParser: z.ZodObject<{
2752
2752
  } | undefined;
2753
2753
  } | undefined;
2754
2754
  }, {
2755
- type: "unknown" | "all" | "user" | "group";
2755
+ type: "user" | "group" | "all" | "unknown";
2756
2756
  entityRef: string;
2757
2757
  name?: string | undefined;
2758
- description?: string | undefined;
2759
2758
  namespace?: string | undefined;
2759
+ description?: string | undefined;
2760
2760
  spec?: {
2761
2761
  type?: string | undefined;
2762
2762
  profile?: {
@@ -2766,11 +2766,11 @@ declare const SearchMemberResponseParser: z.ZodObject<{
2766
2766
  }>, "many">;
2767
2767
  }, "strip", z.ZodTypeAny, {
2768
2768
  members: {
2769
- type: "unknown" | "all" | "user" | "group";
2769
+ type: "user" | "group" | "all" | "unknown";
2770
2770
  entityRef: string;
2771
2771
  name?: string | undefined;
2772
- description?: string | undefined;
2773
2772
  namespace?: string | undefined;
2773
+ description?: string | undefined;
2774
2774
  spec?: {
2775
2775
  type?: string | undefined;
2776
2776
  profile?: {
@@ -2780,11 +2780,11 @@ declare const SearchMemberResponseParser: z.ZodObject<{
2780
2780
  }[];
2781
2781
  }, {
2782
2782
  members: {
2783
- type: "unknown" | "all" | "user" | "group";
2783
+ type: "user" | "group" | "all" | "unknown";
2784
2784
  entityRef: string;
2785
2785
  name?: string | undefined;
2786
- description?: string | undefined;
2787
2786
  namespace?: string | undefined;
2787
+ description?: string | undefined;
2788
2788
  spec?: {
2789
2789
  type?: string | undefined;
2790
2790
  profile?: {
@@ -3007,11 +3007,10 @@ declare const PolicyResponseParser: z.ZodObject<{
3007
3007
  }, "strip", z.ZodTypeAny, {
3008
3008
  id: string;
3009
3009
  status: "active" | "inactive" | "draft";
3010
+ name: string;
3010
3011
  options: {
3011
3012
  resolutionStrategy: "first-match" | "any-allow";
3012
3013
  };
3013
- name: string;
3014
- createdBy: string;
3015
3014
  createdAt: string;
3016
3015
  updatedAt: string;
3017
3016
  roles: {
@@ -3033,6 +3032,7 @@ declare const PolicyResponseParser: z.ZodObject<{
3033
3032
  }[];
3034
3033
  description?: string | undefined;
3035
3034
  }[];
3035
+ createdBy: string;
3036
3036
  updatedBy: string;
3037
3037
  description?: string | null | undefined;
3038
3038
  lastPublishedAt?: string | null | undefined;
@@ -3040,15 +3040,15 @@ declare const PolicyResponseParser: z.ZodObject<{
3040
3040
  }, {
3041
3041
  id: string;
3042
3042
  status: "active" | "inactive" | "draft";
3043
- createdBy: string;
3044
3043
  createdAt: string;
3045
3044
  updatedAt: string;
3045
+ createdBy: string;
3046
3046
  updatedBy: string;
3047
+ name?: string | undefined;
3048
+ description?: string | null | undefined;
3047
3049
  options?: {
3048
3050
  resolutionStrategy: "first-match" | "any-allow";
3049
3051
  } | undefined;
3050
- name?: string | undefined;
3051
- description?: string | null | undefined;
3052
3052
  roles?: {
3053
3053
  name: string;
3054
3054
  members: string[] | "*";
@@ -3078,11 +3078,10 @@ declare const PolicyResponseParser: z.ZodObject<{
3078
3078
  items: {
3079
3079
  id: string;
3080
3080
  status: "active" | "inactive" | "draft";
3081
+ name: string;
3081
3082
  options: {
3082
3083
  resolutionStrategy: "first-match" | "any-allow";
3083
3084
  };
3084
- name: string;
3085
- createdBy: string;
3086
3085
  createdAt: string;
3087
3086
  updatedAt: string;
3088
3087
  roles: {
@@ -3104,6 +3103,7 @@ declare const PolicyResponseParser: z.ZodObject<{
3104
3103
  }[];
3105
3104
  description?: string | undefined;
3106
3105
  }[];
3106
+ createdBy: string;
3107
3107
  updatedBy: string;
3108
3108
  description?: string | null | undefined;
3109
3109
  lastPublishedAt?: string | null | undefined;
@@ -3116,15 +3116,15 @@ declare const PolicyResponseParser: z.ZodObject<{
3116
3116
  items: {
3117
3117
  id: string;
3118
3118
  status: "active" | "inactive" | "draft";
3119
- createdBy: string;
3120
3119
  createdAt: string;
3121
3120
  updatedAt: string;
3121
+ createdBy: string;
3122
3122
  updatedBy: string;
3123
+ name?: string | undefined;
3124
+ description?: string | null | undefined;
3123
3125
  options?: {
3124
3126
  resolutionStrategy: "first-match" | "any-allow";
3125
3127
  } | undefined;
3126
- name?: string | undefined;
3127
- description?: string | null | undefined;
3128
3128
  roles?: {
3129
3129
  name: string;
3130
3130
  members: 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.6.8",
4
+ "version": "0.6.10",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "homepage": "https://backstage.spotify.com",
7
7
  "main": "dist/index.cjs.js",
@@ -32,13 +32,13 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@backstage/catalog-model": "^1.7.5",
35
- "@backstage/plugin-permission-common": "^0.9.1",
36
- "@backstage/types": "^1.2.1",
35
+ "@backstage/plugin-permission-common": "^0.9.2",
36
+ "@backstage/types": "^1.2.2",
37
37
  "uuid": "^11.0.0",
38
38
  "zod": "^3.20.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@backstage/cli": "^0.33.1"
41
+ "@backstage/cli": "^0.34.4"
42
42
  },
43
43
  "files": [
44
44
  "dist",