@xemahq/space-registry-api-client 0.2.9 → 0.2.12

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 (55) hide show
  1. package/dist/endpoints/resource-role-bindings/resource-role-bindings.d.ts +11 -5
  2. package/dist/endpoints/resource-role-bindings/resource-role-bindings.js +43 -9
  3. package/dist/endpoints/resource-roles/resource-roles.d.ts +12 -0
  4. package/dist/endpoints/resource-roles/resource-roles.js +38 -0
  5. package/dist/endpoints/spaces/spaces.d.ts +25 -1
  6. package/dist/endpoints/spaces/spaces.js +65 -1
  7. package/dist/index.d.ts +1 -0
  8. package/dist/index.js +1 -0
  9. package/dist/models/growthGateDto.d.ts +14 -0
  10. package/dist/models/growthGateDto.js +2 -0
  11. package/dist/models/growthGateDtoMinimumOrgRole.d.ts +14 -0
  12. package/dist/models/growthGateDtoMinimumOrgRole.js +13 -0
  13. package/dist/models/index.d.ts +22 -0
  14. package/dist/models/index.js +22 -0
  15. package/dist/models/memberShellModeOverrideDto.d.ts +10 -0
  16. package/dist/models/memberShellModeOverrideDto.js +2 -0
  17. package/dist/models/memberShellModeOverrideDtoMode.d.ts +10 -0
  18. package/dist/models/memberShellModeOverrideDtoMode.js +12 -0
  19. package/dist/models/orgExperienceSettingsDto.d.ts +25 -0
  20. package/dist/models/orgExperienceSettingsDto.js +2 -0
  21. package/dist/models/orgExperienceSettingsDtoDataEnvelope.d.ts +9 -0
  22. package/dist/models/orgExperienceSettingsDtoDataEnvelope.js +2 -0
  23. package/dist/models/orgExperienceSettingsDtoEffectiveShellMode.d.ts +13 -0
  24. package/dist/models/orgExperienceSettingsDtoEffectiveShellMode.js +12 -0
  25. package/dist/models/orgExperienceSettingsDtoMemberShellMode.d.ts +13 -0
  26. package/dist/models/orgExperienceSettingsDtoMemberShellMode.js +12 -0
  27. package/dist/models/orgExperienceSettingsDtoUnstatedMemberShellMode.d.ts +13 -0
  28. package/dist/models/orgExperienceSettingsDtoUnstatedMemberShellMode.js +12 -0
  29. package/dist/models/orgGrowthSettingsDto.d.ts +26 -0
  30. package/dist/models/orgGrowthSettingsDto.js +2 -0
  31. package/dist/models/orgGrowthSettingsDtoDataEnvelope.d.ts +9 -0
  32. package/dist/models/orgGrowthSettingsDtoDataEnvelope.js +2 -0
  33. package/dist/models/resourceRoleBindingListResponseDto.d.ts +9 -0
  34. package/dist/models/resourceRoleBindingListResponseDto.js +2 -0
  35. package/dist/models/resourceRoleBindingListResponseDtoDataEnvelope.d.ts +9 -0
  36. package/dist/models/resourceRoleBindingListResponseDtoDataEnvelope.js +2 -0
  37. package/dist/models/resourceRoleCatalogueResponseDto.d.ts +9 -0
  38. package/dist/models/resourceRoleCatalogueResponseDto.js +2 -0
  39. package/dist/models/resourceRoleCatalogueResponseDtoDataEnvelope.d.ts +9 -0
  40. package/dist/models/resourceRoleCatalogueResponseDtoDataEnvelope.js +2 -0
  41. package/dist/models/resourceRoleDeclarationResponseDto.d.ts +22 -0
  42. package/dist/models/resourceRoleDeclarationResponseDto.js +2 -0
  43. package/dist/models/resourceRoleDeclarationResponseDtoResolvedAtSpaceKindsItem.d.ts +15 -0
  44. package/dist/models/resourceRoleDeclarationResponseDtoResolvedAtSpaceKindsItem.js +17 -0
  45. package/dist/models/resourceRolesCatalogueControllerListParams.d.ts +11 -0
  46. package/dist/models/resourceRolesCatalogueControllerListParams.js +7 -0
  47. package/dist/models/resourceRolesControllerListParams.d.ts +11 -0
  48. package/dist/models/resourceRolesControllerListParams.js +7 -0
  49. package/dist/models/updateOrgExperienceSettingsDto.d.ts +11 -0
  50. package/dist/models/updateOrgExperienceSettingsDto.js +2 -0
  51. package/dist/models/updateOrgExperienceSettingsDtoMemberShellMode.d.ts +10 -0
  52. package/dist/models/updateOrgExperienceSettingsDtoMemberShellMode.js +12 -0
  53. package/dist/models/updateOrgGrowthSettingsDto.d.ts +20 -0
  54. package/dist/models/updateOrgGrowthSettingsDto.js +2 -0
  55. package/package.json +2 -2
@@ -3,13 +3,13 @@
3
3
  * Space Registry API
4
4
  * OpenAPI spec version: 0.1.0
5
5
  */
6
- import type { ResolvedResourceRoleBindingResponseDtoDataEnvelope, ResourceRoleBindingResponseDtoDataEnvelope, ResourceRolesControllerResolveParams, ResourceRolesControllerUnsetParams, SetResourceRoleBindingDto } from '../../models';
7
- export declare const getResourceRolesControllerResolveUrl: (params: ResourceRolesControllerResolveParams) => string;
6
+ import type { ResolvedResourceRoleBindingResponseDtoDataEnvelope, ResourceRoleBindingListResponseDtoDataEnvelope, ResourceRoleBindingResponseDtoDataEnvelope, ResourceRolesControllerListParams, ResourceRolesControllerResolveParams, ResourceRolesControllerUnsetParams, SetResourceRoleBindingDto } from '../../models';
7
+ export declare const getResourceRolesControllerListUrl: (params?: ResourceRolesControllerListParams) => string;
8
8
  /**
9
- * Most specific wins. `configured: false` means the owner has stated nothing anywhere on the ladder an answer, never a defaulted value.
10
- * @summary The binding in force for a role, resolved through the space ladder
9
+ * Enumerating is not resolving: this returns the rows as stated, several per role if several spaces state one, and marks none of them as in force. Ask `/resolve` for that — a winner computed here would be a second implementation of the precedence ladder. Roles are an OPEN vocabulary, so without this a consumer must know a role name before it can ask about it. Platform-fenced rows are not included. An empty list is an answer, never a default.
10
+ * @summary Every binding this organization has DECLARED
11
11
  */
12
- export declare const resourceRolesControllerResolve: (params: ResourceRolesControllerResolveParams, options?: RequestInit) => Promise<ResolvedResourceRoleBindingResponseDtoDataEnvelope>;
12
+ export declare const resourceRolesControllerList: (params?: ResourceRolesControllerListParams, options?: RequestInit) => Promise<ResourceRoleBindingListResponseDtoDataEnvelope>;
13
13
  export declare const getResourceRolesControllerSetUrl: () => string;
14
14
  /**
15
15
  * @summary State the binding at one space (org-admin)
@@ -21,3 +21,9 @@ export declare const getResourceRolesControllerUnsetUrl: (params: ResourceRolesC
21
21
  * @summary Remove the binding stated at one space (org-admin)
22
22
  */
23
23
  export declare const resourceRolesControllerUnset: (params: ResourceRolesControllerUnsetParams, options?: RequestInit) => Promise<void>;
24
+ export declare const getResourceRolesControllerResolveUrl: (params: ResourceRolesControllerResolveParams) => string;
25
+ /**
26
+ * Most specific wins. `configured: false` means the owner has stated nothing anywhere on the ladder — an answer, never a defaulted value.
27
+ * @summary The binding in force for a role, resolved through the space ladder
28
+ */
29
+ export declare const resourceRolesControllerResolve: (params: ResourceRolesControllerResolveParams, options?: RequestInit) => Promise<ResolvedResourceRoleBindingResponseDtoDataEnvelope>;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resourceRolesControllerUnset = exports.getResourceRolesControllerUnsetUrl = exports.resourceRolesControllerSet = exports.getResourceRolesControllerSetUrl = exports.resourceRolesControllerResolve = exports.getResourceRolesControllerResolveUrl = void 0;
3
+ exports.resourceRolesControllerResolve = exports.getResourceRolesControllerResolveUrl = exports.resourceRolesControllerUnset = exports.getResourceRolesControllerUnsetUrl = exports.resourceRolesControllerSet = exports.getResourceRolesControllerSetUrl = exports.resourceRolesControllerList = exports.getResourceRolesControllerListUrl = void 0;
4
4
  const custom_fetch_1 = require("../../custom-fetch");
5
- const getResourceRolesControllerResolveUrl = (params) => {
5
+ const getResourceRolesControllerListUrl = (params) => {
6
6
  const normalizedParams = new URLSearchParams();
7
7
  Object.entries(params || {}).forEach(([key, value]) => {
8
8
  if (value === undefined)
@@ -22,20 +22,20 @@ const getResourceRolesControllerResolveUrl = (params) => {
22
22
  normalizedParams.append(key, value.toString());
23
23
  });
24
24
  const stringifiedParams = normalizedParams.toString();
25
- return stringifiedParams.length > 0 ? `/resource-role-bindings/resolve?${stringifiedParams}` : `/resource-role-bindings/resolve`;
25
+ return stringifiedParams.length > 0 ? `/resource-role-bindings?${stringifiedParams}` : `/resource-role-bindings`;
26
26
  };
27
- exports.getResourceRolesControllerResolveUrl = getResourceRolesControllerResolveUrl;
27
+ exports.getResourceRolesControllerListUrl = getResourceRolesControllerListUrl;
28
28
  /**
29
- * Most specific wins. `configured: false` means the owner has stated nothing anywhere on the ladder an answer, never a defaulted value.
30
- * @summary The binding in force for a role, resolved through the space ladder
29
+ * Enumerating is not resolving: this returns the rows as stated, several per role if several spaces state one, and marks none of them as in force. Ask `/resolve` for that — a winner computed here would be a second implementation of the precedence ladder. Roles are an OPEN vocabulary, so without this a consumer must know a role name before it can ask about it. Platform-fenced rows are not included. An empty list is an answer, never a default.
30
+ * @summary Every binding this organization has DECLARED
31
31
  */
32
- const resourceRolesControllerResolve = async (params, options) => {
33
- return (0, custom_fetch_1.customFetch)((0, exports.getResourceRolesControllerResolveUrl)(params), {
32
+ const resourceRolesControllerList = async (params, options) => {
33
+ return (0, custom_fetch_1.customFetch)((0, exports.getResourceRolesControllerListUrl)(params), {
34
34
  ...options,
35
35
  method: 'GET'
36
36
  });
37
37
  };
38
- exports.resourceRolesControllerResolve = resourceRolesControllerResolve;
38
+ exports.resourceRolesControllerList = resourceRolesControllerList;
39
39
  const getResourceRolesControllerSetUrl = () => {
40
40
  return `/resource-role-bindings`;
41
41
  };
@@ -86,3 +86,37 @@ const resourceRolesControllerUnset = async (params, options) => {
86
86
  });
87
87
  };
88
88
  exports.resourceRolesControllerUnset = resourceRolesControllerUnset;
89
+ const getResourceRolesControllerResolveUrl = (params) => {
90
+ const normalizedParams = new URLSearchParams();
91
+ Object.entries(params || {}).forEach(([key, value]) => {
92
+ if (value === undefined)
93
+ return;
94
+ if (value === null) {
95
+ normalizedParams.append(key, 'null');
96
+ return;
97
+ }
98
+ if (Array.isArray(value)) {
99
+ for (const item of value) {
100
+ if (item === undefined || item === null)
101
+ continue;
102
+ normalizedParams.append(key, item.toString());
103
+ }
104
+ return;
105
+ }
106
+ normalizedParams.append(key, value.toString());
107
+ });
108
+ const stringifiedParams = normalizedParams.toString();
109
+ return stringifiedParams.length > 0 ? `/resource-role-bindings/resolve?${stringifiedParams}` : `/resource-role-bindings/resolve`;
110
+ };
111
+ exports.getResourceRolesControllerResolveUrl = getResourceRolesControllerResolveUrl;
112
+ /**
113
+ * Most specific wins. `configured: false` means the owner has stated nothing anywhere on the ladder — an answer, never a defaulted value.
114
+ * @summary The binding in force for a role, resolved through the space ladder
115
+ */
116
+ const resourceRolesControllerResolve = async (params, options) => {
117
+ return (0, custom_fetch_1.customFetch)((0, exports.getResourceRolesControllerResolveUrl)(params), {
118
+ ...options,
119
+ method: 'GET'
120
+ });
121
+ };
122
+ exports.resourceRolesControllerResolve = resourceRolesControllerResolve;
@@ -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;
@@ -3,7 +3,7 @@
3
3
  * Space Registry API
4
4
  * OpenAPI spec version: 0.1.0
5
5
  */
6
- import type { CreateSpaceDto, OrgGovernanceSettingsDtoDataEnvelope, SpaceAncestorsDtoDataEnvelope, SpaceClassificationDtoDataEnvelope, SpaceDtoDataArrayEnvelope, SpaceDtoDataEnvelope, SpacesControllerAncestorsParams, SpacesControllerClassificationParams, SpacesControllerListParams, SpacesControllerResolveParams, UpdateClassificationDto, UpdateOrgGovernanceSettingsDto } from '../../models';
6
+ import type { CreateSpaceDto, OrgExperienceSettingsDtoDataEnvelope, OrgGovernanceSettingsDtoDataEnvelope, OrgGrowthSettingsDtoDataEnvelope, SpaceAncestorsDtoDataEnvelope, SpaceClassificationDtoDataEnvelope, SpaceDtoDataArrayEnvelope, SpaceDtoDataEnvelope, SpacesControllerAncestorsParams, SpacesControllerClassificationParams, SpacesControllerListParams, SpacesControllerResolveParams, UpdateClassificationDto, UpdateOrgExperienceSettingsDto, UpdateOrgGovernanceSettingsDto, UpdateOrgGrowthSettingsDto } from '../../models';
7
7
  export declare const getSpacesControllerReadGovernanceUrl: () => string;
8
8
  /**
9
9
  * An organization that has never armed anything returns 200 with `configured: false` — never a 404. Un-configured is an answer.
@@ -16,6 +16,30 @@ export declare const getSpacesControllerUpdateGovernanceUrl: () => string;
16
16
  * @summary Arm or disarm approval-on-downgrade for the caller org. Requires the org admin role.
17
17
  */
18
18
  export declare const spacesControllerUpdateGovernance: (updateOrgGovernanceSettingsDto: UpdateOrgGovernanceSettingsDto, options?: RequestInit) => Promise<OrgGovernanceSettingsDtoDataEnvelope>;
19
+ export declare const getSpacesControllerReadGrowthUrl: () => string;
20
+ /**
21
+ * An organization that has never written one returns 200 with `configured: false` and permissive defaults — never a 404, and never a fence nobody armed. Un-configured is an answer.
22
+ * @summary Read the caller org's growth policy (who may build and publish).
23
+ */
24
+ export declare const spacesControllerReadGrowth: (options?: RequestInit) => Promise<OrgGrowthSettingsDtoDataEnvelope>;
25
+ export declare const getSpacesControllerUpdateGrowthUrl: () => string;
26
+ /**
27
+ * Configuration TIGHTENS. Authoring and internal publishing are policy toggles that move in either direction; external publishing is a floor (always a Decision, never below org admin) and a looser value is refused. A field omitted here is CLEARED, not left standing.
28
+ * @summary Write the caller org's growth policy. Requires the org admin role.
29
+ */
30
+ export declare const spacesControllerUpdateGrowth: (updateOrgGrowthSettingsDto: UpdateOrgGrowthSettingsDto, options?: RequestInit) => Promise<OrgGrowthSettingsDtoDataEnvelope>;
31
+ export declare const getSpacesControllerReadExperienceUrl: () => string;
32
+ /**
33
+ * Presentation only. A member whose shell is portal-focused still reaches any surface they are authorized for; the fences are the per-surface guards and the PDP, for every member equally.
34
+ * @summary Read the caller org's shell-presentation policy.
35
+ */
36
+ export declare const spacesControllerReadExperience: (options?: RequestInit) => Promise<OrgExperienceSettingsDtoDataEnvelope>;
37
+ export declare const getSpacesControllerUpdateExperienceUrl: () => string;
38
+ /**
39
+ * Administrators are never confined. This decides what the shell leads with, and grants or withholds nothing.
40
+ * @summary Write the caller org's shell-presentation policy. Requires the org admin role.
41
+ */
42
+ export declare const spacesControllerUpdateExperience: (updateOrgExperienceSettingsDto: UpdateOrgExperienceSettingsDto, options?: RequestInit) => Promise<OrgExperienceSettingsDtoDataEnvelope>;
19
43
  export declare const getSpacesControllerCreateUrl: () => string;
20
44
  /**
21
45
  * Nothing about the ancestry needs to exist first — a declaration on a project ref whose org ref has no row is valid, because ancestry is derived from the ref grammar rather than stored.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.spacesControllerSetClassification = exports.getSpacesControllerSetClassificationUrl = exports.spacesControllerRemove = exports.getSpacesControllerRemoveUrl = exports.spacesControllerGetById = exports.getSpacesControllerGetByIdUrl = exports.spacesControllerClassification = exports.getSpacesControllerClassificationUrl = exports.spacesControllerAncestors = exports.getSpacesControllerAncestorsUrl = exports.spacesControllerResolve = exports.getSpacesControllerResolveUrl = exports.spacesControllerList = exports.getSpacesControllerListUrl = exports.spacesControllerCreate = exports.getSpacesControllerCreateUrl = exports.spacesControllerUpdateGovernance = exports.getSpacesControllerUpdateGovernanceUrl = exports.spacesControllerReadGovernance = exports.getSpacesControllerReadGovernanceUrl = void 0;
3
+ exports.spacesControllerSetClassification = exports.getSpacesControllerSetClassificationUrl = exports.spacesControllerRemove = exports.getSpacesControllerRemoveUrl = exports.spacesControllerGetById = exports.getSpacesControllerGetByIdUrl = exports.spacesControllerClassification = exports.getSpacesControllerClassificationUrl = exports.spacesControllerAncestors = exports.getSpacesControllerAncestorsUrl = exports.spacesControllerResolve = exports.getSpacesControllerResolveUrl = exports.spacesControllerList = exports.getSpacesControllerListUrl = exports.spacesControllerCreate = exports.getSpacesControllerCreateUrl = exports.spacesControllerUpdateExperience = exports.getSpacesControllerUpdateExperienceUrl = exports.spacesControllerReadExperience = exports.getSpacesControllerReadExperienceUrl = exports.spacesControllerUpdateGrowth = exports.getSpacesControllerUpdateGrowthUrl = exports.spacesControllerReadGrowth = exports.getSpacesControllerReadGrowthUrl = exports.spacesControllerUpdateGovernance = exports.getSpacesControllerUpdateGovernanceUrl = exports.spacesControllerReadGovernance = exports.getSpacesControllerReadGovernanceUrl = void 0;
4
4
  const custom_fetch_1 = require("../../custom-fetch");
5
5
  const getSpacesControllerReadGovernanceUrl = () => {
6
6
  return `/spaces/governance`;
@@ -34,6 +34,70 @@ const spacesControllerUpdateGovernance = async (updateOrgGovernanceSettingsDto,
34
34
  });
35
35
  };
36
36
  exports.spacesControllerUpdateGovernance = spacesControllerUpdateGovernance;
37
+ const getSpacesControllerReadGrowthUrl = () => {
38
+ return `/spaces/growth`;
39
+ };
40
+ exports.getSpacesControllerReadGrowthUrl = getSpacesControllerReadGrowthUrl;
41
+ /**
42
+ * An organization that has never written one returns 200 with `configured: false` and permissive defaults — never a 404, and never a fence nobody armed. Un-configured is an answer.
43
+ * @summary Read the caller org's growth policy (who may build and publish).
44
+ */
45
+ const spacesControllerReadGrowth = async (options) => {
46
+ return (0, custom_fetch_1.customFetch)((0, exports.getSpacesControllerReadGrowthUrl)(), {
47
+ ...options,
48
+ method: 'GET'
49
+ });
50
+ };
51
+ exports.spacesControllerReadGrowth = spacesControllerReadGrowth;
52
+ const getSpacesControllerUpdateGrowthUrl = () => {
53
+ return `/spaces/growth`;
54
+ };
55
+ exports.getSpacesControllerUpdateGrowthUrl = getSpacesControllerUpdateGrowthUrl;
56
+ /**
57
+ * Configuration TIGHTENS. Authoring and internal publishing are policy toggles that move in either direction; external publishing is a floor (always a Decision, never below org admin) and a looser value is refused. A field omitted here is CLEARED, not left standing.
58
+ * @summary Write the caller org's growth policy. Requires the org admin role.
59
+ */
60
+ const spacesControllerUpdateGrowth = async (updateOrgGrowthSettingsDto, options) => {
61
+ return (0, custom_fetch_1.customFetch)((0, exports.getSpacesControllerUpdateGrowthUrl)(), {
62
+ ...options,
63
+ method: 'PUT',
64
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
65
+ body: JSON.stringify(updateOrgGrowthSettingsDto)
66
+ });
67
+ };
68
+ exports.spacesControllerUpdateGrowth = spacesControllerUpdateGrowth;
69
+ const getSpacesControllerReadExperienceUrl = () => {
70
+ return `/spaces/experience`;
71
+ };
72
+ exports.getSpacesControllerReadExperienceUrl = getSpacesControllerReadExperienceUrl;
73
+ /**
74
+ * Presentation only. A member whose shell is portal-focused still reaches any surface they are authorized for; the fences are the per-surface guards and the PDP, for every member equally.
75
+ * @summary Read the caller org's shell-presentation policy.
76
+ */
77
+ const spacesControllerReadExperience = async (options) => {
78
+ return (0, custom_fetch_1.customFetch)((0, exports.getSpacesControllerReadExperienceUrl)(), {
79
+ ...options,
80
+ method: 'GET'
81
+ });
82
+ };
83
+ exports.spacesControllerReadExperience = spacesControllerReadExperience;
84
+ const getSpacesControllerUpdateExperienceUrl = () => {
85
+ return `/spaces/experience`;
86
+ };
87
+ exports.getSpacesControllerUpdateExperienceUrl = getSpacesControllerUpdateExperienceUrl;
88
+ /**
89
+ * Administrators are never confined. This decides what the shell leads with, and grants or withholds nothing.
90
+ * @summary Write the caller org's shell-presentation policy. Requires the org admin role.
91
+ */
92
+ const spacesControllerUpdateExperience = async (updateOrgExperienceSettingsDto, options) => {
93
+ return (0, custom_fetch_1.customFetch)((0, exports.getSpacesControllerUpdateExperienceUrl)(), {
94
+ ...options,
95
+ method: 'PUT',
96
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
97
+ body: JSON.stringify(updateOrgExperienceSettingsDto)
98
+ });
99
+ };
100
+ exports.spacesControllerUpdateExperience = spacesControllerUpdateExperience;
37
101
  const getSpacesControllerCreateUrl = () => {
38
102
  return `/spaces`;
39
103
  };
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);
@@ -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
+ import type { GrowthGateDtoMinimumOrgRole } from './growthGateDtoMinimumOrgRole.js';
7
+ export interface GrowthGateDto {
8
+ /** False closes this action to everyone. Absent leaves it open — absence is the resting state, not a denial. */
9
+ enabled?: boolean;
10
+ /** Minimum organization role. Absent means every member satisfies it. */
11
+ minimumOrgRole?: GrowthGateDtoMinimumOrgRole;
12
+ /** Restrict to members of these identity groups. Absent or empty means no group restriction was stated — it never means "nobody". */
13
+ restrictedToGroupIds?: string[];
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
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
+ * Minimum organization role. Absent means every member satisfies it.
8
+ */
9
+ export type GrowthGateDtoMinimumOrgRole = typeof GrowthGateDtoMinimumOrgRole[keyof typeof GrowthGateDtoMinimumOrgRole];
10
+ export declare const GrowthGateDtoMinimumOrgRole: {
11
+ readonly org_owner: "org_owner";
12
+ readonly org_admin: "org_admin";
13
+ readonly org_member: "org_member";
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.GrowthGateDtoMinimumOrgRole = void 0;
9
+ exports.GrowthGateDtoMinimumOrgRole = {
10
+ org_owner: 'org_owner',
11
+ org_admin: 'org_admin',
12
+ org_member: 'org_member',
13
+ };
@@ -5,13 +5,32 @@ export * from './errorDetailsDto';
5
5
  export * from './errorDetailsDtoDetails';
6
6
  export * from './errorPayloadDto';
7
7
  export * from './errorResponseDto';
8
+ export * from './growthGateDto';
9
+ export * from './growthGateDtoMinimumOrgRole';
10
+ export * from './memberShellModeOverrideDto';
11
+ export * from './memberShellModeOverrideDtoMode';
12
+ export * from './orgExperienceSettingsDto';
13
+ export * from './orgExperienceSettingsDtoDataEnvelope';
14
+ export * from './orgExperienceSettingsDtoEffectiveShellMode';
15
+ export * from './orgExperienceSettingsDtoMemberShellMode';
16
+ export * from './orgExperienceSettingsDtoUnstatedMemberShellMode';
8
17
  export * from './orgGovernanceSettingsDto';
9
18
  export * from './orgGovernanceSettingsDtoDataEnvelope';
19
+ export * from './orgGrowthSettingsDto';
20
+ export * from './orgGrowthSettingsDtoDataEnvelope';
10
21
  export * from './resolvedResourceRoleBindingResponseDto';
11
22
  export * from './resolvedResourceRoleBindingResponseDtoDataEnvelope';
23
+ export * from './resourceRoleBindingListResponseDto';
24
+ export * from './resourceRoleBindingListResponseDtoDataEnvelope';
12
25
  export * from './resourceRoleBindingResponseDto';
13
26
  export * from './resourceRoleBindingResponseDtoDataEnvelope';
14
27
  export * from './resourceRoleBindingResponseDtoTarget';
28
+ export * from './resourceRoleCatalogueResponseDto';
29
+ export * from './resourceRoleCatalogueResponseDtoDataEnvelope';
30
+ export * from './resourceRoleDeclarationResponseDto';
31
+ export * from './resourceRoleDeclarationResponseDtoResolvedAtSpaceKindsItem';
32
+ export * from './resourceRolesCatalogueControllerListParams';
33
+ export * from './resourceRolesControllerListParams';
15
34
  export * from './resourceRolesControllerResolveParams';
16
35
  export * from './resourceRolesControllerUnsetParams';
17
36
  export * from './setResourceRoleBindingDto';
@@ -30,4 +49,7 @@ export * from './spacesControllerClassificationParams';
30
49
  export * from './spacesControllerListParams';
31
50
  export * from './spacesControllerResolveParams';
32
51
  export * from './updateClassificationDto';
52
+ export * from './updateOrgExperienceSettingsDto';
53
+ export * from './updateOrgExperienceSettingsDtoMemberShellMode';
33
54
  export * from './updateOrgGovernanceSettingsDto';
55
+ export * from './updateOrgGrowthSettingsDto';
@@ -22,13 +22,32 @@ __exportStar(require("./errorDetailsDto"), exports);
22
22
  __exportStar(require("./errorDetailsDtoDetails"), exports);
23
23
  __exportStar(require("./errorPayloadDto"), exports);
24
24
  __exportStar(require("./errorResponseDto"), exports);
25
+ __exportStar(require("./growthGateDto"), exports);
26
+ __exportStar(require("./growthGateDtoMinimumOrgRole"), exports);
27
+ __exportStar(require("./memberShellModeOverrideDto"), exports);
28
+ __exportStar(require("./memberShellModeOverrideDtoMode"), exports);
29
+ __exportStar(require("./orgExperienceSettingsDto"), exports);
30
+ __exportStar(require("./orgExperienceSettingsDtoDataEnvelope"), exports);
31
+ __exportStar(require("./orgExperienceSettingsDtoEffectiveShellMode"), exports);
32
+ __exportStar(require("./orgExperienceSettingsDtoMemberShellMode"), exports);
33
+ __exportStar(require("./orgExperienceSettingsDtoUnstatedMemberShellMode"), exports);
25
34
  __exportStar(require("./orgGovernanceSettingsDto"), exports);
26
35
  __exportStar(require("./orgGovernanceSettingsDtoDataEnvelope"), exports);
36
+ __exportStar(require("./orgGrowthSettingsDto"), exports);
37
+ __exportStar(require("./orgGrowthSettingsDtoDataEnvelope"), exports);
27
38
  __exportStar(require("./resolvedResourceRoleBindingResponseDto"), exports);
28
39
  __exportStar(require("./resolvedResourceRoleBindingResponseDtoDataEnvelope"), exports);
40
+ __exportStar(require("./resourceRoleBindingListResponseDto"), exports);
41
+ __exportStar(require("./resourceRoleBindingListResponseDtoDataEnvelope"), exports);
29
42
  __exportStar(require("./resourceRoleBindingResponseDto"), exports);
30
43
  __exportStar(require("./resourceRoleBindingResponseDtoDataEnvelope"), exports);
31
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);
50
+ __exportStar(require("./resourceRolesControllerListParams"), exports);
32
51
  __exportStar(require("./resourceRolesControllerResolveParams"), exports);
33
52
  __exportStar(require("./resourceRolesControllerUnsetParams"), exports);
34
53
  __exportStar(require("./setResourceRoleBindingDto"), exports);
@@ -47,4 +66,7 @@ __exportStar(require("./spacesControllerClassificationParams"), exports);
47
66
  __exportStar(require("./spacesControllerListParams"), exports);
48
67
  __exportStar(require("./spacesControllerResolveParams"), exports);
49
68
  __exportStar(require("./updateClassificationDto"), exports);
69
+ __exportStar(require("./updateOrgExperienceSettingsDto"), exports);
70
+ __exportStar(require("./updateOrgExperienceSettingsDtoMemberShellMode"), exports);
50
71
  __exportStar(require("./updateOrgGovernanceSettingsDto"), exports);
72
+ __exportStar(require("./updateOrgGrowthSettingsDto"), exports);
@@ -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
+ import type { MemberShellModeOverrideDtoMode } from './memberShellModeOverrideDtoMode.js';
7
+ export interface MemberShellModeOverrideDto {
8
+ groupId: string;
9
+ mode: MemberShellModeOverrideDtoMode;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 type MemberShellModeOverrideDtoMode = typeof MemberShellModeOverrideDtoMode[keyof typeof MemberShellModeOverrideDtoMode];
7
+ export declare const MemberShellModeOverrideDtoMode: {
8
+ readonly full: "full";
9
+ readonly 'portal-focused': "portal-focused";
10
+ };
@@ -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.MemberShellModeOverrideDtoMode = void 0;
9
+ exports.MemberShellModeOverrideDtoMode = {
10
+ full: 'full',
11
+ 'portal-focused': 'portal-focused',
12
+ };
@@ -0,0 +1,25 @@
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 { MemberShellModeOverrideDto } from './memberShellModeOverrideDto.js';
7
+ import type { OrgExperienceSettingsDtoEffectiveShellMode } from './orgExperienceSettingsDtoEffectiveShellMode.js';
8
+ import type { OrgExperienceSettingsDtoMemberShellMode } from './orgExperienceSettingsDtoMemberShellMode.js';
9
+ import type { OrgExperienceSettingsDtoUnstatedMemberShellMode } from './orgExperienceSettingsDtoUnstatedMemberShellMode.js';
10
+ export interface OrgExperienceSettingsDto {
11
+ /** False when this organization has never written an experience policy. */
12
+ configured: boolean;
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. */
14
+ memberShellMode?: OrgExperienceSettingsDtoMemberShellMode;
15
+ /** Per-group overrides, evaluated in declaration order so a member of two overridden groups gets a deterministic answer. */
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;
21
+ /** @nullable */
22
+ updatedByActorId: string | null;
23
+ /** @nullable */
24
+ updatedAt: string | null;
25
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 { OrgExperienceSettingsDto } from './orgExperienceSettingsDto.js';
7
+ export interface OrgExperienceSettingsDtoDataEnvelope {
8
+ data: OrgExperienceSettingsDto;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ };
@@ -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
+ * 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
+ */
9
+ export type OrgExperienceSettingsDtoMemberShellMode = typeof OrgExperienceSettingsDtoMemberShellMode[keyof typeof OrgExperienceSettingsDtoMemberShellMode];
10
+ export declare const OrgExperienceSettingsDtoMemberShellMode: {
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.OrgExperienceSettingsDtoMemberShellMode = void 0;
9
+ exports.OrgExperienceSettingsDtoMemberShellMode = {
10
+ full: 'full',
11
+ 'portal-focused': 'portal-focused',
12
+ };
@@ -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
+ };
@@ -0,0 +1,26 @@
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 { GrowthGateDto } from './growthGateDto.js';
7
+ export interface OrgGrowthSettingsDto {
8
+ /** False when this organization has never written a growth policy — the resting state, not an error. Every default below is permissive. */
9
+ configured: boolean;
10
+ /** May members author at their own scope (apps, skills, agents, bundles, personal portals)? Absent = every member. */
11
+ authoring?: GrowthGateDto;
12
+ /** May a member publish their OWN grown artifact org-wide? Absent = every member, with NO approval step: promoting what you built is a share, not an acquisition of new authority. */
13
+ publishToOrg?: GrowthGateDto;
14
+ /** Publishing beyond the organization. This is a FLOOR: it always opens a Decision and always requires at least the org admin role, at every organization size. Configuration can only make it stricter. */
15
+ externalPublishing?: GrowthGateDto;
16
+ /** Absent = internal org publishing needs no review. Setting it ADDS a Decision with this quorum. Absent is an answer, not a quorum of zero. */
17
+ internalPublishReviewQuorum?: number;
18
+ /** Capability domains a grown bundle may use. ABSENT admits every domain (no restriction stated); an EMPTY list admits none (a deliberate statement). The two are different facts. */
19
+ allowedCapabilityDomains?: string[];
20
+ /** Connector providers a grown bundle may use. Same absent-vs-empty semantics as allowedCapabilityDomains. */
21
+ allowedConnectorProviders?: string[];
22
+ /** @nullable */
23
+ updatedByActorId: string | null;
24
+ /** @nullable */
25
+ updatedAt: string | null;
26
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 { OrgGrowthSettingsDto } from './orgGrowthSettingsDto.js';
7
+ export interface OrgGrowthSettingsDtoDataEnvelope {
8
+ data: OrgGrowthSettingsDto;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 { ResourceRoleBindingResponseDto } from './resourceRoleBindingResponseDto.js';
7
+ export interface ResourceRoleBindingListResponseDto {
8
+ bindings: ResourceRoleBindingResponseDto[];
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 { ResourceRoleBindingListResponseDto } from './resourceRoleBindingListResponseDto.js';
7
+ export interface ResourceRoleBindingListResponseDtoDataEnvelope {
8
+ data: ResourceRoleBindingListResponseDto;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ };
@@ -0,0 +1,7 @@
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 });
@@ -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 ResourceRolesControllerListParams = {
7
+ /**
8
+ * Narrow to one kind, e.g. `model` — matched as the `<kind>.` prefix of the role key.
9
+ */
10
+ resourceKind?: string;
11
+ };
@@ -0,0 +1,7 @@
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 });
@@ -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
+ import type { MemberShellModeOverrideDto } from './memberShellModeOverrideDto.js';
7
+ import type { UpdateOrgExperienceSettingsDtoMemberShellMode } from './updateOrgExperienceSettingsDtoMemberShellMode.js';
8
+ export interface UpdateOrgExperienceSettingsDto {
9
+ memberShellMode?: UpdateOrgExperienceSettingsDtoMemberShellMode;
10
+ shellModeOverrides?: MemberShellModeOverrideDto[];
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 type UpdateOrgExperienceSettingsDtoMemberShellMode = typeof UpdateOrgExperienceSettingsDtoMemberShellMode[keyof typeof UpdateOrgExperienceSettingsDtoMemberShellMode];
7
+ export declare const UpdateOrgExperienceSettingsDtoMemberShellMode: {
8
+ readonly full: "full";
9
+ readonly 'portal-focused': "portal-focused";
10
+ };
@@ -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.UpdateOrgExperienceSettingsDtoMemberShellMode = void 0;
9
+ exports.UpdateOrgExperienceSettingsDtoMemberShellMode = {
10
+ full: 'full',
11
+ 'portal-focused': 'portal-focused',
12
+ };
@@ -0,0 +1,20 @@
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 { GrowthGateDto } from './growthGateDto.js';
7
+ export interface UpdateOrgGrowthSettingsDto {
8
+ authoring?: GrowthGateDto;
9
+ publishToOrg?: GrowthGateDto;
10
+ /** May only be made STRICTER than the platform floor (org admin). A looser value is refused rather than silently clamped. */
11
+ externalPublishing?: GrowthGateDto;
12
+ /**
13
+ * Omit to require no review on internal org publishing (the default).
14
+ * @minimum 1
15
+ * @maximum 10
16
+ */
17
+ internalPublishReviewQuorum?: number;
18
+ allowedCapabilityDomains?: string[];
19
+ allowedConnectorProviders?: string[];
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xemahq/space-registry-api-client",
3
- "version": "0.2.9",
3
+ "version": "0.2.12",
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.0",
22
+ "generator": "@xemahq/api-client-generator@0.15.2",
23
23
  "source": "openapi.public.json"
24
24
  },
25
25
  "license": "LicenseRef-Xema-BSL-1.1",