@xemahq/space-registry-api-client 0.2.10 → 0.2.17

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.
Files changed (47) hide show
  1. package/dist/endpoints/resource-roles/resource-roles.d.ts +12 -0
  2. package/dist/endpoints/resource-roles/resource-roles.js +38 -0
  3. package/dist/endpoints/spaces/spaces.d.ts +2 -2
  4. package/dist/endpoints/spaces/spaces.js +2 -2
  5. package/dist/index.d.ts +1 -0
  6. package/dist/index.js +1 -0
  7. package/dist/models/createSpaceDto.d.ts +4 -1
  8. package/dist/models/growthGateDto.d.ts +4 -1
  9. package/dist/models/index.d.ts +12 -4
  10. package/dist/models/index.js +12 -4
  11. package/dist/models/memberShellModeOverrideDto.d.ts +1 -0
  12. package/dist/models/orgExperienceSettingsDto.d.ts +7 -1
  13. package/dist/models/orgExperienceSettingsDtoEffectiveShellMode.d.ts +13 -0
  14. package/dist/models/orgExperienceSettingsDtoEffectiveShellMode.js +12 -0
  15. package/dist/models/orgExperienceSettingsDtoMemberShellMode.d.ts +1 -1
  16. package/dist/models/orgExperienceSettingsDtoUnstatedMemberShellMode.d.ts +13 -0
  17. package/dist/models/orgExperienceSettingsDtoUnstatedMemberShellMode.js +12 -0
  18. package/dist/models/orgGovernanceSettingsDto.d.ts +3 -0
  19. package/dist/models/orgGovernanceSettingsDto.js +0 -5
  20. package/dist/models/parameterSourceKind.d.ts +14 -0
  21. package/dist/models/parameterSourceKind.js +13 -0
  22. package/dist/models/parameterStepOutcome.d.ts +14 -0
  23. package/dist/models/parameterStepOutcome.js +13 -0
  24. package/dist/models/problemDetailsDto.d.ts +24 -0
  25. package/dist/models/problemFieldIssueDto.d.ts +10 -0
  26. package/dist/models/resourceRoleCatalogueResponseDto.d.ts +9 -0
  27. package/dist/models/resourceRoleCatalogueResponseDtoDataEnvelope.d.ts +9 -0
  28. package/dist/models/resourceRoleDeclarationResponseDto.d.ts +22 -0
  29. package/dist/models/resourceRoleDeclarationResponseDto.js +2 -0
  30. package/dist/models/resourceRoleDeclarationResponseDtoResolvedAtSpaceKindsItem.d.ts +15 -0
  31. package/dist/models/resourceRoleDeclarationResponseDtoResolvedAtSpaceKindsItem.js +17 -0
  32. package/dist/models/resourceRolesCatalogueControllerListParams.d.ts +11 -0
  33. package/dist/models/{errorDetailsDtoDetails.d.ts → resourceRolesCatalogueControllerListParams.js} +2 -6
  34. package/dist/models/resourceRolesControllerResolveParams.d.ts +7 -0
  35. package/dist/models/spaceClassificationDto.d.ts +13 -0
  36. package/dist/models/spaceClassificationStepDto.d.ts +17 -0
  37. package/dist/models/spaceClassificationStepDto.js +2 -0
  38. package/dist/models/updateOrgGovernanceSettingsDto.d.ts +4 -1
  39. package/dist/models/updateOrgGrowthSettingsDto.d.ts +2 -0
  40. package/package.json +26 -2
  41. package/dist/models/errorDetailsDto.d.ts +0 -10
  42. package/dist/models/errorPayloadDto.d.ts +0 -11
  43. package/dist/models/errorResponseDto.d.ts +0 -9
  44. /package/dist/models/{errorDetailsDto.js → problemDetailsDto.js} +0 -0
  45. /package/dist/models/{errorDetailsDtoDetails.js → problemFieldIssueDto.js} +0 -0
  46. /package/dist/models/{errorPayloadDto.js → resourceRoleCatalogueResponseDto.js} +0 -0
  47. /package/dist/models/{errorResponseDto.js → resourceRoleCatalogueResponseDtoDataEnvelope.js} +0 -0
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Space Registry API
4
+ * OpenAPI spec version: 0.1.0
5
+ */
6
+ import type { ResourceRoleCatalogueResponseDtoDataEnvelope, ResourceRolesCatalogueControllerListParams } from '../../models';
7
+ export declare const getResourceRolesCatalogueControllerListUrl: (params?: ResourceRolesCatalogueControllerListParams) => string;
8
+ /**
9
+ * The roles a biome (or a system seed) has declared, each with what it is for and the space tiers a consumer resolves it at. Declaring a role and ANSWERING one are different questions: which resource plays a role is the organisation’s, per owner, and is served by `/resource-role-bindings`. An empty list is an answer — nothing has declared a role — never a defaulted catalogue.
10
+ * @summary Every role DECLARED in this deployment
11
+ */
12
+ export declare const resourceRolesCatalogueControllerList: (params?: ResourceRolesCatalogueControllerListParams, options?: RequestInit) => Promise<ResourceRoleCatalogueResponseDtoDataEnvelope>;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resourceRolesCatalogueControllerList = exports.getResourceRolesCatalogueControllerListUrl = void 0;
4
+ const custom_fetch_1 = require("../../custom-fetch");
5
+ const getResourceRolesCatalogueControllerListUrl = (params) => {
6
+ const normalizedParams = new URLSearchParams();
7
+ Object.entries(params || {}).forEach(([key, value]) => {
8
+ if (value === undefined)
9
+ return;
10
+ if (value === null) {
11
+ normalizedParams.append(key, 'null');
12
+ return;
13
+ }
14
+ if (Array.isArray(value)) {
15
+ for (const item of value) {
16
+ if (item === undefined || item === null)
17
+ continue;
18
+ normalizedParams.append(key, item.toString());
19
+ }
20
+ return;
21
+ }
22
+ normalizedParams.append(key, value.toString());
23
+ });
24
+ const stringifiedParams = normalizedParams.toString();
25
+ return stringifiedParams.length > 0 ? `/resource-roles?${stringifiedParams}` : `/resource-roles`;
26
+ };
27
+ exports.getResourceRolesCatalogueControllerListUrl = getResourceRolesCatalogueControllerListUrl;
28
+ /**
29
+ * The roles a biome (or a system seed) has declared, each with what it is for and the space tiers a consumer resolves it at. Declaring a role and ANSWERING one are different questions: which resource plays a role is the organisation’s, per owner, and is served by `/resource-role-bindings`. An empty list is an answer — nothing has declared a role — never a defaulted catalogue.
30
+ * @summary Every role DECLARED in this deployment
31
+ */
32
+ const resourceRolesCatalogueControllerList = async (params, options) => {
33
+ return (0, custom_fetch_1.customFetch)((0, exports.getResourceRolesCatalogueControllerListUrl)(params), {
34
+ ...options,
35
+ method: 'GET'
36
+ });
37
+ };
38
+ exports.resourceRolesCatalogueControllerList = resourceRolesCatalogueControllerList;
@@ -65,8 +65,8 @@ export declare const getSpacesControllerAncestorsUrl: (params: SpacesControllerA
65
65
  export declare const spacesControllerAncestors: (params: SpacesControllerAncestorsParams, options?: RequestInit) => Promise<SpaceAncestorsDtoDataEnvelope>;
66
66
  export declare const getSpacesControllerClassificationUrl: (params: SpacesControllerClassificationParams) => string;
67
67
  /**
68
- * Same tenant rule as /spaces/resolve. A data-classification label is exactly the kind of metadata a cross-tenant read must not expose, so a ref naming another organization is refused with 403.
69
- * @summary Resolve effective (most-specific-wins) classification over the ancestry.
68
+ * The monotone JOIN over every declaration on the ref and its ancestors — NOT most-specific-wins, which is the whole safety property: a project declaring `public` cannot escape an org that declared `secret`. The response carries the ANSWER as well as the value — `configured`, `source`, the full `inheritancePath` (silent rungs included) and `clampedByRefUri`, the ancestor that overrode a nearer declaration. Same tenant rule as /spaces/resolve. A data-classification label is exactly the kind of metadata a cross-tenant read must not expose, so a ref naming another organization is refused with 403.
69
+ * @summary Resolve the effective classification over the ancestry, with its source.
70
70
  */
71
71
  export declare const spacesControllerClassification: (params: SpacesControllerClassificationParams, options?: RequestInit) => Promise<SpaceClassificationDtoDataEnvelope>;
72
72
  export declare const getSpacesControllerGetByIdUrl: (id: string) => string;
@@ -240,8 +240,8 @@ const getSpacesControllerClassificationUrl = (params) => {
240
240
  };
241
241
  exports.getSpacesControllerClassificationUrl = getSpacesControllerClassificationUrl;
242
242
  /**
243
- * Same tenant rule as /spaces/resolve. A data-classification label is exactly the kind of metadata a cross-tenant read must not expose, so a ref naming another organization is refused with 403.
244
- * @summary Resolve effective (most-specific-wins) classification over the ancestry.
243
+ * The monotone JOIN over every declaration on the ref and its ancestors — NOT most-specific-wins, which is the whole safety property: a project declaring `public` cannot escape an org that declared `secret`. The response carries the ANSWER as well as the value — `configured`, `source`, the full `inheritancePath` (silent rungs included) and `clampedByRefUri`, the ancestor that overrode a nearer declaration. Same tenant rule as /spaces/resolve. A data-classification label is exactly the kind of metadata a cross-tenant read must not expose, so a ref naming another organization is refused with 403.
244
+ * @summary Resolve the effective classification over the ancestry, with its source.
245
245
  */
246
246
  const spacesControllerClassification = async (params, options) => {
247
247
  return (0, custom_fetch_1.customFetch)((0, exports.getSpacesControllerClassificationUrl)(params), {
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export { configureClient, getClientConfig, ClientError, customFetch, type ClientConfig, type RetryNotice } from './custom-fetch';
2
2
  export * from './models';
3
3
  export * from './endpoints/resource-role-bindings/resource-role-bindings';
4
+ export * from './endpoints/resource-roles/resource-roles';
4
5
  export * from './endpoints/spaces/spaces';
package/dist/index.js CHANGED
@@ -23,4 +23,5 @@ Object.defineProperty(exports, "ClientError", { enumerable: true, get: function
23
23
  Object.defineProperty(exports, "customFetch", { enumerable: true, get: function () { return custom_fetch_1.customFetch; } });
24
24
  __exportStar(require("./models"), exports);
25
25
  __exportStar(require("./endpoints/resource-role-bindings/resource-role-bindings"), exports);
26
+ __exportStar(require("./endpoints/resource-roles/resource-roles"), exports);
26
27
  __exportStar(require("./endpoints/spaces/spaces"), exports);
@@ -6,7 +6,10 @@
6
6
  import type { CreateSpaceDtoLabels } from './createSpaceDtoLabels.js';
7
7
  import type { DataClassification } from './dataClassification.js';
8
8
  export interface CreateSpaceDto {
9
- /** Canonical xema:// Space URI to create. */
9
+ /**
10
+ * Canonical xema:// Space URI to create.
11
+ * @pattern /^xema:\/\//
12
+ */
10
13
  ref: string;
11
14
  /** Human-readable label for this Space. */
12
15
  displayName: string;
@@ -9,6 +9,9 @@ export interface GrowthGateDto {
9
9
  enabled?: boolean;
10
10
  /** Minimum organization role. Absent means every member satisfies it. */
11
11
  minimumOrgRole?: GrowthGateDtoMinimumOrgRole;
12
- /** Restrict to members of these identity groups. Absent or empty means no group restriction was stated — it never means "nobody". */
12
+ /**
13
+ * Restrict to members of these identity groups. Absent or empty means no group restriction was stated — it never means "nobody".
14
+ * @items.maxLength 256
15
+ */
13
16
  restrictedToGroupIds?: string[];
14
17
  }
@@ -1,21 +1,23 @@
1
1
  export * from './createSpaceDto';
2
2
  export * from './createSpaceDtoLabels';
3
3
  export * from './dataClassification';
4
- export * from './errorDetailsDto';
5
- export * from './errorDetailsDtoDetails';
6
- export * from './errorPayloadDto';
7
- export * from './errorResponseDto';
8
4
  export * from './growthGateDto';
9
5
  export * from './growthGateDtoMinimumOrgRole';
10
6
  export * from './memberShellModeOverrideDto';
11
7
  export * from './memberShellModeOverrideDtoMode';
12
8
  export * from './orgExperienceSettingsDto';
13
9
  export * from './orgExperienceSettingsDtoDataEnvelope';
10
+ export * from './orgExperienceSettingsDtoEffectiveShellMode';
14
11
  export * from './orgExperienceSettingsDtoMemberShellMode';
12
+ export * from './orgExperienceSettingsDtoUnstatedMemberShellMode';
15
13
  export * from './orgGovernanceSettingsDto';
16
14
  export * from './orgGovernanceSettingsDtoDataEnvelope';
17
15
  export * from './orgGrowthSettingsDto';
18
16
  export * from './orgGrowthSettingsDtoDataEnvelope';
17
+ export * from './parameterSourceKind';
18
+ export * from './parameterStepOutcome';
19
+ export * from './problemDetailsDto';
20
+ export * from './problemFieldIssueDto';
19
21
  export * from './resolvedResourceRoleBindingResponseDto';
20
22
  export * from './resolvedResourceRoleBindingResponseDtoDataEnvelope';
21
23
  export * from './resourceRoleBindingListResponseDto';
@@ -23,6 +25,11 @@ export * from './resourceRoleBindingListResponseDtoDataEnvelope';
23
25
  export * from './resourceRoleBindingResponseDto';
24
26
  export * from './resourceRoleBindingResponseDtoDataEnvelope';
25
27
  export * from './resourceRoleBindingResponseDtoTarget';
28
+ export * from './resourceRoleCatalogueResponseDto';
29
+ export * from './resourceRoleCatalogueResponseDtoDataEnvelope';
30
+ export * from './resourceRoleDeclarationResponseDto';
31
+ export * from './resourceRoleDeclarationResponseDtoResolvedAtSpaceKindsItem';
32
+ export * from './resourceRolesCatalogueControllerListParams';
26
33
  export * from './resourceRolesControllerListParams';
27
34
  export * from './resourceRolesControllerResolveParams';
28
35
  export * from './resourceRolesControllerUnsetParams';
@@ -32,6 +39,7 @@ export * from './spaceAncestorsDto';
32
39
  export * from './spaceAncestorsDtoDataEnvelope';
33
40
  export * from './spaceClassificationDto';
34
41
  export * from './spaceClassificationDtoDataEnvelope';
42
+ export * from './spaceClassificationStepDto';
35
43
  export * from './spaceDto';
36
44
  export * from './spaceDtoDataArrayEnvelope';
37
45
  export * from './spaceDtoDataEnvelope';
@@ -18,21 +18,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  __exportStar(require("./createSpaceDto"), exports);
19
19
  __exportStar(require("./createSpaceDtoLabels"), exports);
20
20
  __exportStar(require("./dataClassification"), exports);
21
- __exportStar(require("./errorDetailsDto"), exports);
22
- __exportStar(require("./errorDetailsDtoDetails"), exports);
23
- __exportStar(require("./errorPayloadDto"), exports);
24
- __exportStar(require("./errorResponseDto"), exports);
25
21
  __exportStar(require("./growthGateDto"), exports);
26
22
  __exportStar(require("./growthGateDtoMinimumOrgRole"), exports);
27
23
  __exportStar(require("./memberShellModeOverrideDto"), exports);
28
24
  __exportStar(require("./memberShellModeOverrideDtoMode"), exports);
29
25
  __exportStar(require("./orgExperienceSettingsDto"), exports);
30
26
  __exportStar(require("./orgExperienceSettingsDtoDataEnvelope"), exports);
27
+ __exportStar(require("./orgExperienceSettingsDtoEffectiveShellMode"), exports);
31
28
  __exportStar(require("./orgExperienceSettingsDtoMemberShellMode"), exports);
29
+ __exportStar(require("./orgExperienceSettingsDtoUnstatedMemberShellMode"), exports);
32
30
  __exportStar(require("./orgGovernanceSettingsDto"), exports);
33
31
  __exportStar(require("./orgGovernanceSettingsDtoDataEnvelope"), exports);
34
32
  __exportStar(require("./orgGrowthSettingsDto"), exports);
35
33
  __exportStar(require("./orgGrowthSettingsDtoDataEnvelope"), exports);
34
+ __exportStar(require("./parameterSourceKind"), exports);
35
+ __exportStar(require("./parameterStepOutcome"), exports);
36
+ __exportStar(require("./problemDetailsDto"), exports);
37
+ __exportStar(require("./problemFieldIssueDto"), exports);
36
38
  __exportStar(require("./resolvedResourceRoleBindingResponseDto"), exports);
37
39
  __exportStar(require("./resolvedResourceRoleBindingResponseDtoDataEnvelope"), exports);
38
40
  __exportStar(require("./resourceRoleBindingListResponseDto"), exports);
@@ -40,6 +42,11 @@ __exportStar(require("./resourceRoleBindingListResponseDtoDataEnvelope"), export
40
42
  __exportStar(require("./resourceRoleBindingResponseDto"), exports);
41
43
  __exportStar(require("./resourceRoleBindingResponseDtoDataEnvelope"), exports);
42
44
  __exportStar(require("./resourceRoleBindingResponseDtoTarget"), exports);
45
+ __exportStar(require("./resourceRoleCatalogueResponseDto"), exports);
46
+ __exportStar(require("./resourceRoleCatalogueResponseDtoDataEnvelope"), exports);
47
+ __exportStar(require("./resourceRoleDeclarationResponseDto"), exports);
48
+ __exportStar(require("./resourceRoleDeclarationResponseDtoResolvedAtSpaceKindsItem"), exports);
49
+ __exportStar(require("./resourceRolesCatalogueControllerListParams"), exports);
43
50
  __exportStar(require("./resourceRolesControllerListParams"), exports);
44
51
  __exportStar(require("./resourceRolesControllerResolveParams"), exports);
45
52
  __exportStar(require("./resourceRolesControllerUnsetParams"), exports);
@@ -49,6 +56,7 @@ __exportStar(require("./spaceAncestorsDto"), exports);
49
56
  __exportStar(require("./spaceAncestorsDtoDataEnvelope"), exports);
50
57
  __exportStar(require("./spaceClassificationDto"), exports);
51
58
  __exportStar(require("./spaceClassificationDtoDataEnvelope"), exports);
59
+ __exportStar(require("./spaceClassificationStepDto"), exports);
52
60
  __exportStar(require("./spaceDto"), exports);
53
61
  __exportStar(require("./spaceDtoDataArrayEnvelope"), exports);
54
62
  __exportStar(require("./spaceDtoDataEnvelope"), exports);
@@ -5,6 +5,7 @@
5
5
  */
6
6
  import type { MemberShellModeOverrideDtoMode } from './memberShellModeOverrideDtoMode.js';
7
7
  export interface MemberShellModeOverrideDto {
8
+ /** @maxLength 256 */
8
9
  groupId: string;
9
10
  mode: MemberShellModeOverrideDtoMode;
10
11
  }
@@ -4,14 +4,20 @@
4
4
  * OpenAPI spec version: 0.1.0
5
5
  */
6
6
  import type { MemberShellModeOverrideDto } from './memberShellModeOverrideDto.js';
7
+ import type { OrgExperienceSettingsDtoEffectiveShellMode } from './orgExperienceSettingsDtoEffectiveShellMode.js';
7
8
  import type { OrgExperienceSettingsDtoMemberShellMode } from './orgExperienceSettingsDtoMemberShellMode.js';
9
+ import type { OrgExperienceSettingsDtoUnstatedMemberShellMode } from './orgExperienceSettingsDtoUnstatedMemberShellMode.js';
8
10
  export interface OrgExperienceSettingsDto {
9
11
  /** False when this organization has never written an experience policy. */
10
12
  configured: boolean;
11
- /** How the shell presents itself to an ordinary member. Absent = the full shell (today's behaviour). Administrators are never confined. */
13
+ /** How the shell presents itself to an ordinary member. Absent leaves today's behaviour in place, which is portal-focused for an ordinary member — see `effectiveShellMode`, which is the field a shell should read. Administrators are never confined. */
12
14
  memberShellMode?: OrgExperienceSettingsDtoMemberShellMode;
13
15
  /** Per-group overrides, evaluated in declaration order so a member of two overridden groups gets a deterministic answer. */
14
16
  shellModeOverrides?: MemberShellModeOverrideDto[];
17
+ /** THE FIELD A SHELL READS: which mode THIS caller is in, with the org-wide setting, the per-group overrides and the caller's role already applied. Always present — there is always an answer, and an unconfigured org resolves to the behaviour it already has. The fields above are the POLICY an administrator edits; a shell that reads them instead would re-implement this resolution and drift from it. Still presentation only: it grants and withholds nothing. */
18
+ effectiveShellMode: OrgExperienceSettingsDtoEffectiveShellMode;
19
+ /** What an ordinary member gets when this organization has stated nothing — the platform default, not a value anyone configured. Published because an administrator looking at an unconfigured policy still needs to know what their members see, and the alternative is every consumer hard-coding a copy of this constant and drifting from it silently. It does NOT depend on the caller: `effectiveShellMode` is what YOU get, this is what an unconfigured member gets. */
20
+ unstatedMemberShellMode: OrgExperienceSettingsDtoUnstatedMemberShellMode;
15
21
  /** @nullable */
16
22
  updatedByActorId: string | null;
17
23
  /** @nullable */
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Space Registry API
4
+ * OpenAPI spec version: 0.1.0
5
+ */
6
+ /**
7
+ * THE FIELD A SHELL READS: which mode THIS caller is in, with the org-wide setting, the per-group overrides and the caller's role already applied. Always present — there is always an answer, and an unconfigured org resolves to the behaviour it already has. The fields above are the POLICY an administrator edits; a shell that reads them instead would re-implement this resolution and drift from it. Still presentation only: it grants and withholds nothing.
8
+ */
9
+ export type OrgExperienceSettingsDtoEffectiveShellMode = typeof OrgExperienceSettingsDtoEffectiveShellMode[keyof typeof OrgExperienceSettingsDtoEffectiveShellMode];
10
+ export declare const OrgExperienceSettingsDtoEffectiveShellMode: {
11
+ readonly full: "full";
12
+ readonly 'portal-focused': "portal-focused";
13
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by @xemahq/api-client-generator — do not edit manually.
4
+ * Space Registry API
5
+ * OpenAPI spec version: 0.1.0
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.OrgExperienceSettingsDtoEffectiveShellMode = void 0;
9
+ exports.OrgExperienceSettingsDtoEffectiveShellMode = {
10
+ full: 'full',
11
+ 'portal-focused': 'portal-focused',
12
+ };
@@ -4,7 +4,7 @@
4
4
  * OpenAPI spec version: 0.1.0
5
5
  */
6
6
  /**
7
- * How the shell presents itself to an ordinary member. Absent = the full shell (today's behaviour). Administrators are never confined.
7
+ * How the shell presents itself to an ordinary member. Absent leaves today's behaviour in place, which is portal-focused for an ordinary member — see `effectiveShellMode`, which is the field a shell should read. Administrators are never confined.
8
8
  */
9
9
  export type OrgExperienceSettingsDtoMemberShellMode = typeof OrgExperienceSettingsDtoMemberShellMode[keyof typeof OrgExperienceSettingsDtoMemberShellMode];
10
10
  export declare const OrgExperienceSettingsDtoMemberShellMode: {
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Space Registry API
4
+ * OpenAPI spec version: 0.1.0
5
+ */
6
+ /**
7
+ * What an ordinary member gets when this organization has stated nothing — the platform default, not a value anyone configured. Published because an administrator looking at an unconfigured policy still needs to know what their members see, and the alternative is every consumer hard-coding a copy of this constant and drifting from it silently. It does NOT depend on the caller: `effectiveShellMode` is what YOU get, this is what an unconfigured member gets.
8
+ */
9
+ export type OrgExperienceSettingsDtoUnstatedMemberShellMode = typeof OrgExperienceSettingsDtoUnstatedMemberShellMode[keyof typeof OrgExperienceSettingsDtoUnstatedMemberShellMode];
10
+ export declare const OrgExperienceSettingsDtoUnstatedMemberShellMode: {
11
+ readonly full: "full";
12
+ readonly 'portal-focused': "portal-focused";
13
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by @xemahq/api-client-generator — do not edit manually.
4
+ * Space Registry API
5
+ * OpenAPI spec version: 0.1.0
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.OrgExperienceSettingsDtoUnstatedMemberShellMode = void 0;
9
+ exports.OrgExperienceSettingsDtoUnstatedMemberShellMode = {
10
+ full: 'full',
11
+ 'portal-focused': 'portal-focused',
12
+ };
@@ -3,9 +3,12 @@
3
3
  * Space Registry API
4
4
  * OpenAPI spec version: 0.1.0
5
5
  */
6
+ import type { ParameterSourceKind } from './parameterSourceKind.js';
6
7
  export interface OrgGovernanceSettingsDto {
7
8
  /** False when this organization has never written a governance setting — the resting state, not an error. */
8
9
  configured: boolean;
10
+ /** Where an effective value came from: `platform-default` (nobody stated it anywhere), `stated` (the scope being read stated it) or `inherited` (a less specific scope in the same chain stated it). */
11
+ source: ParameterSourceKind;
9
12
  /** When true, LOWERING a Space classification opens a Decision addressed to the data-governance group instead of performing the write. Raising a classification is never affected. */
10
13
  downgradeSeparationOfDuties: boolean;
11
14
  /**
@@ -1,7 +1,2 @@
1
1
  "use strict";
2
- /**
3
- * Generated by @xemahq/api-client-generator — do not edit manually.
4
- * Space Registry API
5
- * OpenAPI spec version: 0.1.0
6
- */
7
2
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Space Registry API
4
+ * OpenAPI spec version: 0.1.0
5
+ */
6
+ /**
7
+ * Where an effective value came from: `platform-default` (nobody stated it anywhere), `stated` (the scope being read stated it) or `inherited` (a less specific scope in the same chain stated it).
8
+ */
9
+ export type ParameterSourceKind = typeof ParameterSourceKind[keyof typeof ParameterSourceKind];
10
+ export declare const ParameterSourceKind: {
11
+ readonly 'platform-default': "platform-default";
12
+ readonly stated: "stated";
13
+ readonly inherited: "inherited";
14
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by @xemahq/api-client-generator — do not edit manually.
4
+ * Space Registry API
5
+ * OpenAPI spec version: 0.1.0
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.ParameterSourceKind = void 0;
9
+ exports.ParameterSourceKind = {
10
+ 'platform-default': 'platform-default',
11
+ stated: 'stated',
12
+ inherited: 'inherited',
13
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Space Registry API
4
+ * OpenAPI spec version: 0.1.0
5
+ */
6
+ /**
7
+ * What this rung did: `silent` (declared nothing), `decided` (its value IS the effective one — exactly one rung ever is), `shadowed` (it declared something and something else decided).
8
+ */
9
+ export type ParameterStepOutcome = typeof ParameterStepOutcome[keyof typeof ParameterStepOutcome];
10
+ export declare const ParameterStepOutcome: {
11
+ readonly silent: "silent";
12
+ readonly decided: "decided";
13
+ readonly shadowed: "shadowed";
14
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by @xemahq/api-client-generator — do not edit manually.
4
+ * Space Registry API
5
+ * OpenAPI spec version: 0.1.0
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.ParameterStepOutcome = void 0;
9
+ exports.ParameterStepOutcome = {
10
+ silent: 'silent',
11
+ decided: 'decided',
12
+ shadowed: 'shadowed',
13
+ };
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Space Registry API
4
+ * OpenAPI spec version: 0.1.0
5
+ */
6
+ import type { ProblemFieldIssueDto } from './problemFieldIssueDto.js';
7
+ export interface ProblemDetailsDto {
8
+ /** Absolute URI identifying the refusal TYPE. Derived one-to-one from `code`, so a caller may branch on either and can never be told two different things. Never `about:blank`. */
9
+ type: string;
10
+ /** Short, human-readable, and STABLE for a given `type`. Never per-occurrence — that is `detail`. */
11
+ title: string;
12
+ /** The HTTP status code, repeated in the body so a logged document is self-contained. */
13
+ status: number;
14
+ /** SCREAMING_SNAKE_CASE. The machine-branchable refusal, and the value a policy rule, a retry predicate and a UI branch all name. */
15
+ code: string;
16
+ /** Human-readable and specific to THIS occurrence. */
17
+ detail?: string;
18
+ /** URI reference identifying the occurrence — a request path, a run, a row. */
19
+ instance?: string;
20
+ /** W3C trace-context trace-id, present when the caller sent a `traceparent`. Omitted rather than invented when it did not. */
21
+ traceId?: string;
22
+ /** Field-level issues, when the refusal is about the request body. */
23
+ errors?: ProblemFieldIssueDto[];
24
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Space Registry API
4
+ * OpenAPI spec version: 0.1.0
5
+ */
6
+ export interface ProblemFieldIssueDto {
7
+ /** RFC 6901 JSON Pointer into the request body. Root is "/". */
8
+ pointer: string;
9
+ detail: string;
10
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Space Registry API
4
+ * OpenAPI spec version: 0.1.0
5
+ */
6
+ import type { ResourceRoleDeclarationResponseDto } from './resourceRoleDeclarationResponseDto.js';
7
+ export interface ResourceRoleCatalogueResponseDto {
8
+ roles: ResourceRoleDeclarationResponseDto[];
9
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Space Registry API
4
+ * OpenAPI spec version: 0.1.0
5
+ */
6
+ import type { ResourceRoleCatalogueResponseDto } from './resourceRoleCatalogueResponseDto.js';
7
+ export interface ResourceRoleCatalogueResponseDtoDataEnvelope {
8
+ data: ResourceRoleCatalogueResponseDto;
9
+ }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Space Registry API
4
+ * OpenAPI spec version: 0.1.0
5
+ */
6
+ import type { ResourceRoleDeclarationResponseDtoResolvedAtSpaceKindsItem } from './resourceRoleDeclarationResponseDtoResolvedAtSpaceKindsItem.js';
7
+ export interface ResourceRoleDeclarationResponseDto {
8
+ /** The STABLE identifier a binding names, as `<resourceKind>.<role>`. It survives a re-implementation of the thing behind it, so it encodes no biome id, route or service name — a key that moved would silently invalidate every binding that names it. */
9
+ roleKey: string;
10
+ /** The heading a person reads on a settings surface. */
11
+ title: string;
12
+ /** What choosing a resource for this role DOES, in the reader’s words. An administrator picking an agent for a role they cannot picture is the failure a settings surface exists to end. */
13
+ description: string;
14
+ /** The space tiers a CONSUMER resolves this role at — NOT where a binding may be stated (a binding may be stated anywhere on the ladder and is inherited downward). A surface reads this to tell an administrator the truth about what they are stating, per role, instead of presenting identical controls with different real behaviours. */
15
+ resolvedAtSpaceKinds: ResourceRoleDeclarationResponseDtoResolvedAtSpaceKindsItem[];
16
+ /** The space that OWNS this declaration — `xema://biomes/<id>` for a biome-contributed role, `xema://system` for a platform seed. Derived from the contribution owner; never authored. */
17
+ ownerSpaceRef: string;
18
+ /** The biome that declared it, when a biome did. Absent for a system seed. */
19
+ biomeId?: string;
20
+ /** The version of that biome at the time it was declared. */
21
+ biomeVersion?: string;
22
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Space Registry API
4
+ * OpenAPI spec version: 0.1.0
5
+ */
6
+ export type ResourceRoleDeclarationResponseDtoResolvedAtSpaceKindsItem = typeof ResourceRoleDeclarationResponseDtoResolvedAtSpaceKindsItem[keyof typeof ResourceRoleDeclarationResponseDtoResolvedAtSpaceKindsItem];
7
+ export declare const ResourceRoleDeclarationResponseDtoResolvedAtSpaceKindsItem: {
8
+ readonly system: "system";
9
+ readonly org: "org";
10
+ readonly project: "project";
11
+ readonly app: "app";
12
+ readonly session: "session";
13
+ readonly biome: "biome";
14
+ readonly user: "user";
15
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by @xemahq/api-client-generator — do not edit manually.
4
+ * Space Registry API
5
+ * OpenAPI spec version: 0.1.0
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.ResourceRoleDeclarationResponseDtoResolvedAtSpaceKindsItem = void 0;
9
+ exports.ResourceRoleDeclarationResponseDtoResolvedAtSpaceKindsItem = {
10
+ system: 'system',
11
+ org: 'org',
12
+ project: 'project',
13
+ app: 'app',
14
+ session: 'session',
15
+ biome: 'biome',
16
+ user: 'user',
17
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Space Registry API
4
+ * OpenAPI spec version: 0.1.0
5
+ */
6
+ export type ResourceRolesCatalogueControllerListParams = {
7
+ /**
8
+ * Narrow to one kind, e.g. `launch-definition` — matched as the `<kind>.` prefix of the role key, the same narrowing the bindings list accepts.
9
+ */
10
+ resourceKind?: string;
11
+ };
@@ -1,11 +1,7 @@
1
+ "use strict";
1
2
  /**
2
3
  * Generated by @xemahq/api-client-generator — do not edit manually.
3
4
  * Space Registry API
4
5
  * OpenAPI spec version: 0.1.0
5
6
  */
6
- /**
7
- * @nullable
8
- */
9
- export type ErrorDetailsDtoDetails = {
10
- [key: string]: unknown;
11
- } | null;
7
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,6 +4,13 @@
4
4
  * OpenAPI spec version: 0.1.0
5
5
  */
6
6
  export type ResourceRolesControllerResolveParams = {
7
+ /**
8
+ * The owner space to resolve AT, as `<fence>::<SpaceRef>`. Resolution walks the ladder from here; the most specific statement wins.
9
+ */
7
10
  ownerSpaceRef: string;
11
+ /**
12
+ * The role, as `<resourceKind>.<role>`. Roles are an OPEN vocabulary, so this is validated for GRAMMAR only — an unknown but well-formed role resolves to `configured: false`, which is an answer rather than an error.
13
+ * @pattern ^[a-z][a-z0-9-]{0,62}\.[a-z][a-z0-9-]{0,62}$
14
+ */
8
15
  roleKey: string;
9
16
  };
@@ -4,6 +4,8 @@
4
4
  * OpenAPI spec version: 0.1.0
5
5
  */
6
6
  import type { DataClassification } from './dataClassification.js';
7
+ import type { ParameterSourceKind } from './parameterSourceKind.js';
8
+ import type { SpaceClassificationStepDto } from './spaceClassificationStepDto.js';
7
9
  export interface SpaceClassificationDto {
8
10
  /** The Space URI that was resolved. */
9
11
  refUri: string;
@@ -14,4 +16,15 @@ export interface SpaceClassificationDto {
14
16
  * @nullable
15
17
  */
16
18
  resolvedFromRefUri?: string | null;
19
+ /** Did ANYBODY in the chain declare a classification? A different fact from what the value is: `false` means "nobody has armed this", which a UI must not present as "this is public". */
20
+ configured: boolean;
21
+ /** `platform-default` (nobody declared anything), `stated` (this ref declared the winning value), `inherited` (an ancestor did). */
22
+ source: ParameterSourceKind;
23
+ /** Every rung considered, CLOSEST-FIRST with the ref itself at index 0, silent rungs included. */
24
+ inheritancePath: SpaceClassificationStepDto[];
25
+ /**
26
+ * The ANCESTOR whose floor overrode a declaration this ref itself made — Law 9's "which override decided this". Null when nothing was taken away, including when this ref declared nothing.
27
+ * @nullable
28
+ */
29
+ clampedByRefUri?: string | null;
17
30
  }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Space Registry API
4
+ * OpenAPI spec version: 0.1.0
5
+ */
6
+ import type { DataClassification } from './dataClassification.js';
7
+ import type { ParameterStepOutcome } from './parameterStepOutcome.js';
8
+ export interface SpaceClassificationStepDto {
9
+ /** The Space URI of this rung. */
10
+ refUri: string;
11
+ /** The rung's tier (`SpaceKind` value). Carried so a UI can say "your org's floor" without re-parsing the URI. */
12
+ tier: string;
13
+ /** What THIS rung declares. Null when it declares nothing — the join's identity, and indistinguishable from having no row at all. */
14
+ declared?: DataClassification | null;
15
+ /** What this rung did: `silent` (declared nothing), `decided` (its value IS the effective one — exactly one rung ever is), `shadowed` (it declared something and something else decided). */
16
+ outcome: ParameterStepOutcome;
17
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,7 +6,10 @@
6
6
  export interface UpdateOrgGovernanceSettingsDto {
7
7
  /** Arm (true) or disarm (false) separation of duties on classification downgrades. Arming REQUIRES dataGovernanceGroupId. */
8
8
  downgradeSeparationOfDuties: boolean;
9
- /** Identity group the approval is addressed to. decision-api expands it against the identity directory at open time; an empty or unknown group fails the downgrade fast rather than producing an ask nobody can answer. */
9
+ /**
10
+ * Identity group the approval is addressed to. decision-api expands it against the identity directory at open time; an empty or unknown group fails the downgrade fast rather than producing an ask nobody can answer.
11
+ * @maxLength 256
12
+ */
10
13
  dataGovernanceGroupId?: string;
11
14
  /**
12
15
  * Approvals required. Defaults to 2.
@@ -15,6 +15,8 @@ export interface UpdateOrgGrowthSettingsDto {
15
15
  * @maximum 10
16
16
  */
17
17
  internalPublishReviewQuorum?: number;
18
+ /** @items.maxLength 128 */
18
19
  allowedCapabilityDomains?: string[];
20
+ /** @items.maxLength 128 */
19
21
  allowedConnectorProviders?: string[];
20
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xemahq/space-registry-api-client",
3
- "version": "0.2.10",
3
+ "version": "0.2.17",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
@@ -19,7 +19,7 @@
19
19
  "service": "space-registry-api",
20
20
  "biome": "space-registry",
21
21
  "target": "server",
22
- "generator": "@xemahq/api-client-generator@0.15.2",
22
+ "generator": "@xemahq/api-client-generator@0.19.0",
23
23
  "source": "openapi.public.json"
24
24
  },
25
25
  "license": "LicenseRef-Xema-BSL-1.1",
@@ -32,6 +32,30 @@
32
32
  "directory": "packages/clients/space-registry-api"
33
33
  },
34
34
  "description": "Generated public API client for the Xema space-registry-api service.",
35
+ "exports": {
36
+ ".": {
37
+ "types": "./dist/index.d.ts",
38
+ "default": "./dist/index.js"
39
+ },
40
+ "./models": {
41
+ "types": "./dist/models/index.d.ts",
42
+ "default": "./dist/models/index.js"
43
+ },
44
+ "./models/*": {
45
+ "types": "./dist/models/*.d.ts",
46
+ "default": "./dist/models/*.js"
47
+ },
48
+ "./endpoints/*": {
49
+ "types": "./dist/endpoints/*.d.ts",
50
+ "default": "./dist/endpoints/*.js"
51
+ },
52
+ "./custom-fetch": {
53
+ "types": "./dist/custom-fetch.d.ts",
54
+ "default": "./dist/custom-fetch.js"
55
+ },
56
+ "./package.json": "./package.json"
57
+ },
58
+ "sideEffects": false,
35
59
  "scripts": {
36
60
  "build": "tsc -p tsconfig.json"
37
61
  }
@@ -1,10 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Space Registry API
4
- * OpenAPI spec version: 0.1.0
5
- */
6
- import type { ErrorDetailsDtoDetails } from './errorDetailsDtoDetails.js';
7
- export interface ErrorDetailsDto {
8
- /** @nullable */
9
- details: ErrorDetailsDtoDetails;
10
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Space Registry API
4
- * OpenAPI spec version: 0.1.0
5
- */
6
- import type { ErrorDetailsDto } from './errorDetailsDto.js';
7
- export interface ErrorPayloadDto {
8
- code: string;
9
- message: string;
10
- details: ErrorDetailsDto | null;
11
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Space Registry API
4
- * OpenAPI spec version: 0.1.0
5
- */
6
- import type { ErrorPayloadDto } from './errorPayloadDto.js';
7
- export interface ErrorResponseDto {
8
- error: ErrorPayloadDto;
9
- }