@xemahq/space-registry-api-client 0.2.9 → 0.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/endpoints/resource-role-bindings/resource-role-bindings.d.ts +11 -5
- package/dist/endpoints/resource-role-bindings/resource-role-bindings.js +43 -9
- package/dist/endpoints/spaces/spaces.d.ts +25 -1
- package/dist/endpoints/spaces/spaces.js +65 -1
- package/dist/models/growthGateDto.d.ts +14 -0
- package/dist/models/growthGateDto.js +2 -0
- package/dist/models/growthGateDtoMinimumOrgRole.d.ts +14 -0
- package/dist/models/growthGateDtoMinimumOrgRole.js +13 -0
- package/dist/models/index.d.ts +15 -0
- package/dist/models/index.js +15 -0
- package/dist/models/memberShellModeOverrideDto.d.ts +10 -0
- package/dist/models/memberShellModeOverrideDto.js +2 -0
- package/dist/models/memberShellModeOverrideDtoMode.d.ts +10 -0
- package/dist/models/memberShellModeOverrideDtoMode.js +12 -0
- package/dist/models/orgExperienceSettingsDto.d.ts +19 -0
- package/dist/models/orgExperienceSettingsDto.js +2 -0
- package/dist/models/orgExperienceSettingsDtoDataEnvelope.d.ts +9 -0
- package/dist/models/orgExperienceSettingsDtoDataEnvelope.js +2 -0
- package/dist/models/orgExperienceSettingsDtoMemberShellMode.d.ts +13 -0
- package/dist/models/orgExperienceSettingsDtoMemberShellMode.js +12 -0
- package/dist/models/orgGrowthSettingsDto.d.ts +26 -0
- package/dist/models/orgGrowthSettingsDto.js +2 -0
- package/dist/models/orgGrowthSettingsDtoDataEnvelope.d.ts +9 -0
- package/dist/models/orgGrowthSettingsDtoDataEnvelope.js +2 -0
- package/dist/models/resourceRoleBindingListResponseDto.d.ts +9 -0
- package/dist/models/resourceRoleBindingListResponseDto.js +2 -0
- package/dist/models/resourceRoleBindingListResponseDtoDataEnvelope.d.ts +9 -0
- package/dist/models/resourceRoleBindingListResponseDtoDataEnvelope.js +2 -0
- package/dist/models/resourceRolesControllerListParams.d.ts +11 -0
- package/dist/models/resourceRolesControllerListParams.js +7 -0
- package/dist/models/updateOrgExperienceSettingsDto.d.ts +11 -0
- package/dist/models/updateOrgExperienceSettingsDto.js +2 -0
- package/dist/models/updateOrgExperienceSettingsDtoMemberShellMode.d.ts +10 -0
- package/dist/models/updateOrgExperienceSettingsDtoMemberShellMode.js +12 -0
- package/dist/models/updateOrgGrowthSettingsDto.d.ts +20 -0
- package/dist/models/updateOrgGrowthSettingsDto.js +2 -0
- 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
|
|
6
|
+
import type { ResolvedResourceRoleBindingResponseDtoDataEnvelope, ResourceRoleBindingListResponseDtoDataEnvelope, ResourceRoleBindingResponseDtoDataEnvelope, ResourceRolesControllerListParams, ResourceRolesControllerResolveParams, ResourceRolesControllerUnsetParams, SetResourceRoleBindingDto } from '../../models';
|
|
7
|
+
export declare const getResourceRolesControllerListUrl: (params?: ResourceRolesControllerListParams) => string;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
* @summary
|
|
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
|
|
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.
|
|
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
|
|
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
|
|
25
|
+
return stringifiedParams.length > 0 ? `/resource-role-bindings?${stringifiedParams}` : `/resource-role-bindings`;
|
|
26
26
|
};
|
|
27
|
-
exports.
|
|
27
|
+
exports.getResourceRolesControllerListUrl = getResourceRolesControllerListUrl;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
30
|
-
* @summary
|
|
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
|
|
33
|
-
return (0, custom_fetch_1.customFetch)((0, exports.
|
|
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.
|
|
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;
|
|
@@ -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
|
};
|
|
@@ -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,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
|
+
};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -5,13 +5,25 @@ 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 './orgExperienceSettingsDtoMemberShellMode';
|
|
8
15
|
export * from './orgGovernanceSettingsDto';
|
|
9
16
|
export * from './orgGovernanceSettingsDtoDataEnvelope';
|
|
17
|
+
export * from './orgGrowthSettingsDto';
|
|
18
|
+
export * from './orgGrowthSettingsDtoDataEnvelope';
|
|
10
19
|
export * from './resolvedResourceRoleBindingResponseDto';
|
|
11
20
|
export * from './resolvedResourceRoleBindingResponseDtoDataEnvelope';
|
|
21
|
+
export * from './resourceRoleBindingListResponseDto';
|
|
22
|
+
export * from './resourceRoleBindingListResponseDtoDataEnvelope';
|
|
12
23
|
export * from './resourceRoleBindingResponseDto';
|
|
13
24
|
export * from './resourceRoleBindingResponseDtoDataEnvelope';
|
|
14
25
|
export * from './resourceRoleBindingResponseDtoTarget';
|
|
26
|
+
export * from './resourceRolesControllerListParams';
|
|
15
27
|
export * from './resourceRolesControllerResolveParams';
|
|
16
28
|
export * from './resourceRolesControllerUnsetParams';
|
|
17
29
|
export * from './setResourceRoleBindingDto';
|
|
@@ -30,4 +42,7 @@ export * from './spacesControllerClassificationParams';
|
|
|
30
42
|
export * from './spacesControllerListParams';
|
|
31
43
|
export * from './spacesControllerResolveParams';
|
|
32
44
|
export * from './updateClassificationDto';
|
|
45
|
+
export * from './updateOrgExperienceSettingsDto';
|
|
46
|
+
export * from './updateOrgExperienceSettingsDtoMemberShellMode';
|
|
33
47
|
export * from './updateOrgGovernanceSettingsDto';
|
|
48
|
+
export * from './updateOrgGrowthSettingsDto';
|
package/dist/models/index.js
CHANGED
|
@@ -22,13 +22,25 @@ __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("./orgExperienceSettingsDtoMemberShellMode"), exports);
|
|
25
32
|
__exportStar(require("./orgGovernanceSettingsDto"), exports);
|
|
26
33
|
__exportStar(require("./orgGovernanceSettingsDtoDataEnvelope"), exports);
|
|
34
|
+
__exportStar(require("./orgGrowthSettingsDto"), exports);
|
|
35
|
+
__exportStar(require("./orgGrowthSettingsDtoDataEnvelope"), exports);
|
|
27
36
|
__exportStar(require("./resolvedResourceRoleBindingResponseDto"), exports);
|
|
28
37
|
__exportStar(require("./resolvedResourceRoleBindingResponseDtoDataEnvelope"), exports);
|
|
38
|
+
__exportStar(require("./resourceRoleBindingListResponseDto"), exports);
|
|
39
|
+
__exportStar(require("./resourceRoleBindingListResponseDtoDataEnvelope"), exports);
|
|
29
40
|
__exportStar(require("./resourceRoleBindingResponseDto"), exports);
|
|
30
41
|
__exportStar(require("./resourceRoleBindingResponseDtoDataEnvelope"), exports);
|
|
31
42
|
__exportStar(require("./resourceRoleBindingResponseDtoTarget"), exports);
|
|
43
|
+
__exportStar(require("./resourceRolesControllerListParams"), exports);
|
|
32
44
|
__exportStar(require("./resourceRolesControllerResolveParams"), exports);
|
|
33
45
|
__exportStar(require("./resourceRolesControllerUnsetParams"), exports);
|
|
34
46
|
__exportStar(require("./setResourceRoleBindingDto"), exports);
|
|
@@ -47,4 +59,7 @@ __exportStar(require("./spacesControllerClassificationParams"), exports);
|
|
|
47
59
|
__exportStar(require("./spacesControllerListParams"), exports);
|
|
48
60
|
__exportStar(require("./spacesControllerResolveParams"), exports);
|
|
49
61
|
__exportStar(require("./updateClassificationDto"), exports);
|
|
62
|
+
__exportStar(require("./updateOrgExperienceSettingsDto"), exports);
|
|
63
|
+
__exportStar(require("./updateOrgExperienceSettingsDtoMemberShellMode"), exports);
|
|
50
64
|
__exportStar(require("./updateOrgGovernanceSettingsDto"), exports);
|
|
65
|
+
__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,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,19 @@
|
|
|
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 { OrgExperienceSettingsDtoMemberShellMode } from './orgExperienceSettingsDtoMemberShellMode.js';
|
|
8
|
+
export interface OrgExperienceSettingsDto {
|
|
9
|
+
/** False when this organization has never written an experience policy. */
|
|
10
|
+
configured: boolean;
|
|
11
|
+
/** How the shell presents itself to an ordinary member. Absent = the full shell (today's behaviour). Administrators are never confined. */
|
|
12
|
+
memberShellMode?: OrgExperienceSettingsDtoMemberShellMode;
|
|
13
|
+
/** Per-group overrides, evaluated in declaration order so a member of two overridden groups gets a deterministic answer. */
|
|
14
|
+
shellModeOverrides?: MemberShellModeOverrideDto[];
|
|
15
|
+
/** @nullable */
|
|
16
|
+
updatedByActorId: string | null;
|
|
17
|
+
/** @nullable */
|
|
18
|
+
updatedAt: string | null;
|
|
19
|
+
}
|
|
@@ -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,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 = the full shell (today's behaviour). 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,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,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,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,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,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,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,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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xemahq/space-registry-api-client",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
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.
|
|
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",
|