@xemahq/authorization-internal-api-client 0.11.1 → 0.11.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.
@@ -19,8 +19,8 @@ export declare const getInstalledWorkloadGrantsControllerCheckUrl: () => string;
19
19
  * @summary Does the workload hold the operation for the organization through an active installation? Callable only by a service the deployment granted authorization:installed-workload-grants.check@1
20
20
  */
21
21
  export declare const installedWorkloadGrantsControllerCheck: (checkInstalledWorkloadGrantDto: CheckInstalledWorkloadGrantDto, options?: RequestInit) => Promise<CheckInstalledWorkloadGrantResultDtoDataEnvelope>;
22
- export declare const getInstalledWorkloadGrantsControllerListSelfUrl: (params: InstalledWorkloadGrantsControllerListSelfParams) => string;
22
+ export declare const getInstalledWorkloadGrantsControllerListSelfUrl: (params?: InstalledWorkloadGrantsControllerListSelfParams) => string;
23
23
  /**
24
- * @summary The active grants the calling workload holds for the organization
24
+ * @summary The active grants the calling workload holds for the organization, or for the System with fence=global
25
25
  */
26
- export declare const installedWorkloadGrantsControllerListSelf: (params: InstalledWorkloadGrantsControllerListSelfParams, options?: RequestInit) => Promise<ListHeldInstalledWorkloadGrantsResultDtoDataEnvelope>;
26
+ export declare const installedWorkloadGrantsControllerListSelf: (params?: InstalledWorkloadGrantsControllerListSelfParams, options?: RequestInit) => Promise<ListHeldInstalledWorkloadGrantsResultDtoDataEnvelope>;
@@ -91,7 +91,7 @@ const getInstalledWorkloadGrantsControllerListSelfUrl = (params) => {
91
91
  };
92
92
  exports.getInstalledWorkloadGrantsControllerListSelfUrl = getInstalledWorkloadGrantsControllerListSelfUrl;
93
93
  /**
94
- * @summary The active grants the calling workload holds for the organization
94
+ * @summary The active grants the calling workload holds for the organization, or for the System with fence=global
95
95
  */
96
96
  const installedWorkloadGrantsControllerListSelf = async (params, options) => {
97
97
  return (0, custom_fetch_1.customFetch)((0, exports.getInstalledWorkloadGrantsControllerListSelfUrl)(params), {
@@ -7,10 +7,11 @@ import type { ApplyInstalledWorkloadGrantsDtoRequested } from './applyInstalledW
7
7
  import type { ApplyInstalledWorkloadGrantsDtoStore } from './applyInstalledWorkloadGrantsDtoStore.js';
8
8
  export interface ApplyInstalledWorkloadGrantsDto {
9
9
  /**
10
- * The organization that installed the biome.
10
+ * The organization that installed the biome; null exactly when the owner Space is the System Space.
11
11
  * @minLength 1
12
+ * @nullable
12
13
  */
13
- orgId: string;
14
+ orgId: string | null;
14
15
  /**
15
16
  * The installed biome id.
16
17
  * @minLength 1
@@ -22,7 +23,7 @@ export interface ApplyInstalledWorkloadGrantsDto {
22
23
  */
23
24
  biomeVersion: string;
24
25
  /**
25
- * The installation's owner Space: the xema:// URI of an Org, Project or User Space.
26
+ * The installation's owner Space: the xema:// URI of the System, an Org, a Project or a User Space.
26
27
  * @minLength 1
27
28
  */
28
29
  ownerSpaceUri: string;
@@ -4,8 +4,12 @@
4
4
  * OpenAPI spec version: 0.1.1
5
5
  */
6
6
  export interface CheckInstalledWorkloadGrantDto {
7
- /** @minLength 1 */
8
- orgId: string;
7
+ /**
8
+ * The organization; null for an org-less question, which only a System-owned grant answers.
9
+ * @minLength 1
10
+ * @nullable
11
+ */
12
+ orgId: string | null;
9
13
  /**
10
14
  * The workload name the receiver sees as the caller.
11
15
  * @minLength 1
@@ -17,7 +21,7 @@ export interface CheckInstalledWorkloadGrantDto {
17
21
  */
18
22
  operation: string;
19
23
  /**
20
- * The Space the workload acts on: the xema:// URI of an Org, Project, App or User Space of the organization. Absent: only an organization-owned grant admits.
24
+ * The Space the workload acts on: the xema:// URI of an Org, Project, App or User Space of the organization. Absent: only an organization-owned grant admits. Org-less: only the System Space is covered, by a System-owned grant; absent means the System Space.
21
25
  * @minLength 1
22
26
  */
23
27
  targetSpaceUri?: string;
@@ -105,6 +105,7 @@ export * from './outputRouteReleaseRequestDtoDataEnvelope';
105
105
  export * from './outputRouteReleaseRequestDtoStatus';
106
106
  export * from './outputRouteRevisionDto';
107
107
  export * from './outputRouteRevisionDtoAllowedOutputSchema';
108
+ export * from './ownerSpaceFence';
108
109
  export * from './paginationMeta';
109
110
  export * from './policySetTestFileDto';
110
111
  export * from './policySetTestFileResultDto';
@@ -122,6 +122,7 @@ __exportStar(require("./outputRouteReleaseRequestDtoDataEnvelope"), exports);
122
122
  __exportStar(require("./outputRouteReleaseRequestDtoStatus"), exports);
123
123
  __exportStar(require("./outputRouteRevisionDto"), exports);
124
124
  __exportStar(require("./outputRouteRevisionDtoAllowedOutputSchema"), exports);
125
+ __exportStar(require("./ownerSpaceFence"), exports);
125
126
  __exportStar(require("./paginationMeta"), exports);
126
127
  __exportStar(require("./policySetTestFileDto"), exports);
127
128
  __exportStar(require("./policySetTestFileResultDto"), exports);
@@ -3,9 +3,15 @@
3
3
  * Authorization API
4
4
  * OpenAPI spec version: 0.1.1
5
5
  */
6
+ import type { OwnerSpaceFence } from './ownerSpaceFence.js';
6
7
  export type InstalledWorkloadGrantsControllerListSelfParams = {
7
8
  /**
9
+ * The organization. Absent only with fence=global.
8
10
  * @minLength 1
9
11
  */
10
- orgId: string;
12
+ orgId?: string;
13
+ /**
14
+ * global: the System fence (no orgId). Absent or tenant: the organization named by orgId.
15
+ */
16
+ fence?: OwnerSpaceFence;
11
17
  };
@@ -1,7 +1,2 @@
1
1
  "use strict";
2
- /**
3
- * Generated by @xemahq/api-client-generator — do not edit manually.
4
- * Authorization API
5
- * OpenAPI spec version: 0.1.1
6
- */
7
2
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,10 +4,16 @@
4
4
  * OpenAPI spec version: 0.1.1
5
5
  */
6
6
  import type { InstalledWorkloadGrantWithdrawal } from './installedWorkloadGrantWithdrawal.js';
7
+ import type { OwnerSpaceFence } from './ownerSpaceFence.js';
7
8
  export type InstalledWorkloadGrantsControllerRevokeParams = {
8
9
  /**
10
+ * The organization. Absent only with fence=global.
9
11
  * @minLength 1
10
12
  */
11
- orgId: string;
13
+ orgId?: string;
14
+ /**
15
+ * global: the System fence (no orgId). Absent or tenant: the organization named by orgId.
16
+ */
17
+ fence?: OwnerSpaceFence;
12
18
  reason: InstalledWorkloadGrantWithdrawal;
13
19
  };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Authorization API
4
+ * OpenAPI spec version: 0.1.1
5
+ */
6
+ export type OwnerSpaceFence = typeof OwnerSpaceFence[keyof typeof OwnerSpaceFence];
7
+ export declare const OwnerSpaceFence: {
8
+ readonly global: "global";
9
+ readonly tenant: "tenant";
10
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by @xemahq/api-client-generator — do not edit manually.
4
+ * Authorization API
5
+ * OpenAPI spec version: 0.1.1
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.OwnerSpaceFence = void 0;
9
+ exports.OwnerSpaceFence = {
10
+ global: 'global',
11
+ tenant: 'tenant',
12
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xemahq/authorization-internal-api-client",
3
- "version": "0.11.1",
3
+ "version": "0.11.2",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
@@ -60,6 +60,6 @@
60
60
  "build": "tsc -p tsconfig.json"
61
61
  },
62
62
  "xemaRelease": {
63
- "sourceDigest": "sha256:6205f22beb01ed2f46d4436e5fddba474516d611c7a3cd4c36ecf313123733fa"
63
+ "sourceDigest": "sha256:df39b3b92defa596a451173fe7279c09de027ed089fb6bd928b5ede3a223b1c8"
64
64
  }
65
65
  }