@xemahq/app-platform-api-client 0.3.19 → 0.3.21
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/project-apps/project-apps.d.ts +12 -2
- package/dist/endpoints/project-apps/project-apps.js +33 -3
- package/dist/models/appDto.d.ts +2 -0
- package/dist/models/createPortalDto.d.ts +2 -0
- package/dist/models/createProjectAppDto.d.ts +2 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/dist/models/portalPromotionGovernanceDto.d.ts +13 -0
- package/dist/models/portalPromotionGovernanceDto.js +7 -0
- package/dist/models/portalPromotionPreviewDto.d.ts +18 -0
- package/dist/models/portalPromotionPreviewDto.js +2 -0
- package/dist/models/portalPromotionPreviewDtoDataEnvelope.d.ts +9 -0
- package/dist/models/portalPromotionPreviewDtoDataEnvelope.js +2 -0
- package/dist/models/portalPromotionRefusalDto.d.ts +12 -0
- package/dist/models/portalPromotionRefusalDto.js +2 -0
- package/dist/models/portalPromotionRefusalReason.d.ts +16 -0
- package/dist/models/portalPromotionRefusalReason.js +15 -0
- package/dist/models/rescopePortalDto.d.ts +10 -0
- package/dist/models/rescopePortalDto.js +2 -0
- package/dist/models/rescopePortalTargetDto.d.ts +10 -0
- package/dist/models/rescopePortalTargetDto.js +2 -0
- package/dist/models/rescopePortalTargetDtoTier.d.ts +12 -0
- package/dist/models/rescopePortalTargetDtoTier.js +11 -0
- package/dist/models/spaceKind.d.ts +15 -0
- package/dist/models/spaceKind.js +17 -0
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* App Runtime API
|
|
4
4
|
* OpenAPI spec version: 0.1.2
|
|
5
5
|
*/
|
|
6
|
-
import type { AppClientDtoDataArrayEnvelope, AppClientDtoDataEnvelope, AppDtoDataArrayEnvelope, AppDtoDataEnvelope, AppDtoPaginatedEnvelope, AppReleaseActionDto, AppReleaseDtoDataEnvelope, AppReleaseHistoryDtoDataArrayEnvelope, AudiencePolicyDtoDataArrayEnvelope, AudiencePolicyDtoDataEnvelope, CreateAppClientDto, CreateAudiencePolicyDto, CreatePortalDto, CreatePortalLaunchEntryDto, CreateProjectAppDto, CreatedAppClientDtoDataEnvelope, InstallPortalBiomeDto, PortalDetailDtoDataEnvelope, PortalLaunchEntriesControllerRemoveParams, PortalLaunchEntryDtoDataArrayEnvelope, PortalLaunchEntryDtoDataEnvelope, PortalsControllerListParams, ProjectAppsControllerListParams, ResolvedPortalLaunchDtoDataEnvelope, UnarchivePortalDto, UpdateAudiencePolicyDto, UpdatePortalDto, UpdatePortalLaunchEntryDto } from '../../models';
|
|
6
|
+
import type { AppClientDtoDataArrayEnvelope, AppClientDtoDataEnvelope, AppDtoDataArrayEnvelope, AppDtoDataEnvelope, AppDtoPaginatedEnvelope, AppReleaseActionDto, AppReleaseDtoDataEnvelope, AppReleaseHistoryDtoDataArrayEnvelope, AudiencePolicyDtoDataArrayEnvelope, AudiencePolicyDtoDataEnvelope, CreateAppClientDto, CreateAudiencePolicyDto, CreatePortalDto, CreatePortalLaunchEntryDto, CreateProjectAppDto, CreatedAppClientDtoDataEnvelope, InstallPortalBiomeDto, PortalDetailDtoDataEnvelope, PortalLaunchEntriesControllerRemoveParams, PortalLaunchEntryDtoDataArrayEnvelope, PortalLaunchEntryDtoDataEnvelope, PortalPromotionPreviewDtoDataEnvelope, PortalsControllerListParams, ProjectAppsControllerListParams, RescopePortalDto, ResolvedPortalLaunchDtoDataEnvelope, UnarchivePortalDto, UpdateAudiencePolicyDto, UpdatePortalDto, UpdatePortalLaunchEntryDto } from '../../models';
|
|
7
7
|
export declare const getProjectAppsControllerCreateUrl: () => string;
|
|
8
8
|
/**
|
|
9
9
|
* @summary Create an App in the caller org + named project.
|
|
@@ -76,7 +76,7 @@ export declare const getPortalsControllerListUrl: (params?: PortalsControllerLis
|
|
|
76
76
|
export declare const portalsControllerList: (params?: PortalsControllerListParams, options?: RequestInit) => Promise<AppDtoPaginatedEnvelope>;
|
|
77
77
|
export declare const getPortalsControllerCreateUrl: () => string;
|
|
78
78
|
/**
|
|
79
|
-
* @summary Create an
|
|
79
|
+
* @summary Create a portal. Omit `ownerSpaceUri` for an ORGANISATION portal (portal-admin only); pass your own `xema://users/<id>` for a PERSONAL portal, which any member may create and which nobody else can see until it is promoted.
|
|
80
80
|
*/
|
|
81
81
|
export declare const portalsControllerCreate: (createPortalDto: CreatePortalDto, options?: RequestInit) => Promise<AppDtoDataEnvelope>;
|
|
82
82
|
export declare const getPortalsControllerGetOneUrl: (id: string) => string;
|
|
@@ -109,6 +109,16 @@ export declare const getPortalsControllerReadoptUrl: (id: string) => string;
|
|
|
109
109
|
* @summary Hand a UI-adopted default portal back to the reconciler (portal-admin only), so it resumes tracking the installed web biomes.
|
|
110
110
|
*/
|
|
111
111
|
export declare const portalsControllerReadopt: (id: string, options?: RequestInit) => Promise<AppDtoDataEnvelope>;
|
|
112
|
+
export declare const getPortalsControllerPromotionPreviewUrl: (id: string) => string;
|
|
113
|
+
/**
|
|
114
|
+
* @summary READ-ONLY: what WOULD happen if this portal were promoted to the organisation. Reports every reason it would be refused — ownership, org role, an illegal tier move, and the organisation's own growth gate — rather than only the first, and never performs the promotion. Same authority as seeing the portal; it reports no fact about the portal a viewer could not already read. An unreachable policy authority is reported as UNKNOWN, never as permitted.
|
|
115
|
+
*/
|
|
116
|
+
export declare const portalsControllerPromotionPreview: (id: string, options?: RequestInit) => Promise<PortalPromotionPreviewDtoDataEnvelope>;
|
|
117
|
+
export declare const getPortalsControllerRescopeUrl: (id: string) => string;
|
|
118
|
+
/**
|
|
119
|
+
* @summary Promote a PERSONAL portal to organisation ownership — "share this with my organisation". Only the owner may release it (an org admin cannot publish somebody else's), and only `org` is a legal target. A demotion or a same-tier move is 422; a portal you may not see is 404.
|
|
120
|
+
*/
|
|
121
|
+
export declare const portalsControllerRescope: (id: string, rescopePortalDto: RescopePortalDto, options?: RequestInit) => Promise<AppDtoDataEnvelope>;
|
|
112
122
|
export declare const getPortalsControllerInstallBiomeUrl: (id: string) => string;
|
|
113
123
|
/**
|
|
114
124
|
* @summary Install one biome on a portal (portal-admin only). Idempotent per ref; serialized against concurrent installs by a per-portal lock. Returns 422 for a ref no web biome is registered for.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.portalLaunchEntriesControllerResolve = exports.getPortalLaunchEntriesControllerResolveUrl = exports.portalLaunchEntriesControllerRemove = exports.getPortalLaunchEntriesControllerRemoveUrl = exports.portalLaunchEntriesControllerUpdate = exports.getPortalLaunchEntriesControllerUpdateUrl = exports.portalLaunchEntriesControllerCreate = exports.getPortalLaunchEntriesControllerCreateUrl = void 0;
|
|
3
|
+
exports.portalsControllerUninstallBiome = exports.getPortalsControllerUninstallBiomeUrl = exports.portalsControllerInstallBiome = exports.getPortalsControllerInstallBiomeUrl = exports.portalsControllerRescope = exports.getPortalsControllerRescopeUrl = exports.portalsControllerPromotionPreview = exports.getPortalsControllerPromotionPreviewUrl = exports.portalsControllerReadopt = exports.getPortalsControllerReadoptUrl = exports.portalsControllerUnarchive = exports.getPortalsControllerUnarchiveUrl = exports.portalsControllerArchive = exports.getPortalsControllerArchiveUrl = exports.portalsControllerRemove = exports.getPortalsControllerRemoveUrl = exports.portalsControllerUpdate = exports.getPortalsControllerUpdateUrl = exports.portalsControllerGetOne = exports.getPortalsControllerGetOneUrl = exports.portalsControllerCreate = exports.getPortalsControllerCreateUrl = exports.portalsControllerList = exports.getPortalsControllerListUrl = exports.projectAudiencePoliciesControllerDelete = exports.getProjectAudiencePoliciesControllerDeleteUrl = exports.projectAudiencePoliciesControllerUpdate = exports.getProjectAudiencePoliciesControllerUpdateUrl = exports.projectAudiencePoliciesControllerList = exports.getProjectAudiencePoliciesControllerListUrl = exports.projectAudiencePoliciesControllerCreate = exports.getProjectAudiencePoliciesControllerCreateUrl = exports.projectAppReleasesControllerRollback = exports.getProjectAppReleasesControllerRollbackUrl = exports.projectAppReleasesControllerListHistory = exports.getProjectAppReleasesControllerListHistoryUrl = exports.projectAppReleasesControllerGetLive = exports.getProjectAppReleasesControllerGetLiveUrl = exports.projectAppClientsControllerRevoke = exports.getProjectAppClientsControllerRevokeUrl = exports.projectAppClientsControllerList = exports.getProjectAppClientsControllerListUrl = exports.projectAppClientsControllerCreate = exports.getProjectAppClientsControllerCreateUrl = exports.projectAppsControllerGetById = exports.getProjectAppsControllerGetByIdUrl = exports.projectAppsControllerList = exports.getProjectAppsControllerListUrl = exports.projectAppsControllerCreate = exports.getProjectAppsControllerCreateUrl = void 0;
|
|
4
|
+
exports.portalLaunchEntriesControllerResolve = exports.getPortalLaunchEntriesControllerResolveUrl = exports.portalLaunchEntriesControllerRemove = exports.getPortalLaunchEntriesControllerRemoveUrl = exports.portalLaunchEntriesControllerUpdate = exports.getPortalLaunchEntriesControllerUpdateUrl = exports.portalLaunchEntriesControllerCreate = exports.getPortalLaunchEntriesControllerCreateUrl = exports.portalLaunchEntriesControllerList = exports.getPortalLaunchEntriesControllerListUrl = exports.portalsControllerRefreshLockfile = exports.getPortalsControllerRefreshLockfileUrl = void 0;
|
|
5
5
|
const custom_fetch_1 = require("../../custom-fetch");
|
|
6
6
|
const getProjectAppsControllerCreateUrl = () => {
|
|
7
7
|
return `/bff/apps`;
|
|
@@ -252,7 +252,7 @@ const getPortalsControllerCreateUrl = () => {
|
|
|
252
252
|
};
|
|
253
253
|
exports.getPortalsControllerCreateUrl = getPortalsControllerCreateUrl;
|
|
254
254
|
/**
|
|
255
|
-
* @summary Create an
|
|
255
|
+
* @summary Create a portal. Omit `ownerSpaceUri` for an ORGANISATION portal (portal-admin only); pass your own `xema://users/<id>` for a PERSONAL portal, which any member may create and which nobody else can see until it is promoted.
|
|
256
256
|
*/
|
|
257
257
|
const portalsControllerCreate = async (createPortalDto, options) => {
|
|
258
258
|
return (0, custom_fetch_1.customFetch)((0, exports.getPortalsControllerCreateUrl)(), {
|
|
@@ -351,6 +351,36 @@ const portalsControllerReadopt = async (id, options) => {
|
|
|
351
351
|
});
|
|
352
352
|
};
|
|
353
353
|
exports.portalsControllerReadopt = portalsControllerReadopt;
|
|
354
|
+
const getPortalsControllerPromotionPreviewUrl = (id) => {
|
|
355
|
+
return `/bff/portals/${id}/promotion-preview`;
|
|
356
|
+
};
|
|
357
|
+
exports.getPortalsControllerPromotionPreviewUrl = getPortalsControllerPromotionPreviewUrl;
|
|
358
|
+
/**
|
|
359
|
+
* @summary READ-ONLY: what WOULD happen if this portal were promoted to the organisation. Reports every reason it would be refused — ownership, org role, an illegal tier move, and the organisation's own growth gate — rather than only the first, and never performs the promotion. Same authority as seeing the portal; it reports no fact about the portal a viewer could not already read. An unreachable policy authority is reported as UNKNOWN, never as permitted.
|
|
360
|
+
*/
|
|
361
|
+
const portalsControllerPromotionPreview = async (id, options) => {
|
|
362
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getPortalsControllerPromotionPreviewUrl)(id), {
|
|
363
|
+
...options,
|
|
364
|
+
method: 'GET'
|
|
365
|
+
});
|
|
366
|
+
};
|
|
367
|
+
exports.portalsControllerPromotionPreview = portalsControllerPromotionPreview;
|
|
368
|
+
const getPortalsControllerRescopeUrl = (id) => {
|
|
369
|
+
return `/bff/portals/${id}/rescope`;
|
|
370
|
+
};
|
|
371
|
+
exports.getPortalsControllerRescopeUrl = getPortalsControllerRescopeUrl;
|
|
372
|
+
/**
|
|
373
|
+
* @summary Promote a PERSONAL portal to organisation ownership — "share this with my organisation". Only the owner may release it (an org admin cannot publish somebody else's), and only `org` is a legal target. A demotion or a same-tier move is 422; a portal you may not see is 404.
|
|
374
|
+
*/
|
|
375
|
+
const portalsControllerRescope = async (id, rescopePortalDto, options) => {
|
|
376
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getPortalsControllerRescopeUrl)(id), {
|
|
377
|
+
...options,
|
|
378
|
+
method: 'POST',
|
|
379
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
380
|
+
body: JSON.stringify(rescopePortalDto)
|
|
381
|
+
});
|
|
382
|
+
};
|
|
383
|
+
exports.portalsControllerRescope = portalsControllerRescope;
|
|
354
384
|
const getPortalsControllerInstallBiomeUrl = (id) => {
|
|
355
385
|
return `/bff/portals/${id}/biomes`;
|
|
356
386
|
};
|
package/dist/models/appDto.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export interface AppDto {
|
|
|
15
15
|
orgId: string;
|
|
16
16
|
/** @nullable */
|
|
17
17
|
projectId: string | null;
|
|
18
|
+
/** Canonical `xema://…` Space URI of the owner. TOTAL — every portal states its owner, and an org-owned portal reads `xema://orgs/<orgId>` rather than an absence, so one fact has exactly one representation. A PERSONAL portal is `xema://users/<id>`; it is visible to its owner by ownership and to nobody else until promoted via `POST /bff/portals/:id/rescope`. Ask THIS field, never `projectId`: an org-owned portal and a personal one both carry `projectId === null`. */
|
|
19
|
+
ownerSpaceUri: string;
|
|
18
20
|
/** Canonical XemaObjectRef computed from (orgId, projectId, App, slug). */
|
|
19
21
|
ref: string;
|
|
20
22
|
displayName: string;
|
|
@@ -12,6 +12,8 @@ import type { PortalAccessDto } from './portalAccessDto.js';
|
|
|
12
12
|
export interface CreatePortalDto {
|
|
13
13
|
/** Stable slug unique within (orgId, projectId) for project apps, or (orgId) for portals. */
|
|
14
14
|
slug: string;
|
|
15
|
+
/** Canonical `xema://…` Space URI of the owner, when it is anything other than the organisation. OMITTED means the organisation owns it — an answer, not a gap, and the state every existing portal is in. A personal portal is `xema://users/<id>`. Refused (422) if the address does not parse or names a tier the `portal` resource kind does not admit; never silently defaulted to the organisation, which would be the widest possible reading of a malformed request. */
|
|
16
|
+
ownerSpaceUri?: string;
|
|
15
17
|
displayName: string;
|
|
16
18
|
/** Default ExecutionEnvironment slug (e.g. `public-session`). */
|
|
17
19
|
defaultZone: string;
|
|
@@ -12,6 +12,8 @@ import type { SurfaceKind } from './surfaceKind.js';
|
|
|
12
12
|
export interface CreateProjectAppDto {
|
|
13
13
|
/** Stable slug unique within (orgId, projectId) for project apps, or (orgId) for portals. */
|
|
14
14
|
slug: string;
|
|
15
|
+
/** Canonical `xema://…` Space URI of the owner, when it is anything other than the organisation. OMITTED means the organisation owns it — an answer, not a gap, and the state every existing portal is in. A personal portal is `xema://users/<id>`. Refused (422) if the address does not parse or names a tier the `portal` resource kind does not admit; never silently defaulted to the organisation, which would be the widest possible reading of a malformed request. */
|
|
16
|
+
ownerSpaceUri?: string;
|
|
15
17
|
/**
|
|
16
18
|
* Project id. Null or absent for org-scoped portals.
|
|
17
19
|
* @nullable
|
package/dist/models/index.d.ts
CHANGED
|
@@ -85,6 +85,11 @@ export * from './portalLaunchEntryDto';
|
|
|
85
85
|
export * from './portalLaunchEntryDtoDataArrayEnvelope';
|
|
86
86
|
export * from './portalLaunchEntryDtoDataEnvelope';
|
|
87
87
|
export * from './portalLaunchPresentationDto';
|
|
88
|
+
export * from './portalPromotionGovernanceDto';
|
|
89
|
+
export * from './portalPromotionPreviewDto';
|
|
90
|
+
export * from './portalPromotionPreviewDtoDataEnvelope';
|
|
91
|
+
export * from './portalPromotionRefusalDto';
|
|
92
|
+
export * from './portalPromotionRefusalReason';
|
|
88
93
|
export * from './portalShareDto';
|
|
89
94
|
export * from './portalsControllerListParams';
|
|
90
95
|
export * from './projectAppsControllerListParams';
|
|
@@ -93,11 +98,15 @@ export * from './releaseChannelRevisionSelectorDtoKind';
|
|
|
93
98
|
export * from './requestMagicLinkDto';
|
|
94
99
|
export * from './requestMagicLinkResultDto';
|
|
95
100
|
export * from './requestMagicLinkResultDtoDataEnvelope';
|
|
101
|
+
export * from './rescopePortalDto';
|
|
102
|
+
export * from './rescopePortalTargetDto';
|
|
103
|
+
export * from './rescopePortalTargetDtoTier';
|
|
96
104
|
export * from './resolvedPortalLaunchDto';
|
|
97
105
|
export * from './resolvedPortalLaunchDtoDataEnvelope';
|
|
98
106
|
export * from './resourceManagedBy';
|
|
99
107
|
export * from './resourceVisibilityPattern';
|
|
100
108
|
export * from './revisionTargetDto';
|
|
109
|
+
export * from './spaceKind';
|
|
101
110
|
export * from './subjectKind';
|
|
102
111
|
export * from './surfaceKind';
|
|
103
112
|
export * from './tokenClass';
|
package/dist/models/index.js
CHANGED
|
@@ -102,6 +102,11 @@ __exportStar(require("./portalLaunchEntryDto"), exports);
|
|
|
102
102
|
__exportStar(require("./portalLaunchEntryDtoDataArrayEnvelope"), exports);
|
|
103
103
|
__exportStar(require("./portalLaunchEntryDtoDataEnvelope"), exports);
|
|
104
104
|
__exportStar(require("./portalLaunchPresentationDto"), exports);
|
|
105
|
+
__exportStar(require("./portalPromotionGovernanceDto"), exports);
|
|
106
|
+
__exportStar(require("./portalPromotionPreviewDto"), exports);
|
|
107
|
+
__exportStar(require("./portalPromotionPreviewDtoDataEnvelope"), exports);
|
|
108
|
+
__exportStar(require("./portalPromotionRefusalDto"), exports);
|
|
109
|
+
__exportStar(require("./portalPromotionRefusalReason"), exports);
|
|
105
110
|
__exportStar(require("./portalShareDto"), exports);
|
|
106
111
|
__exportStar(require("./portalsControllerListParams"), exports);
|
|
107
112
|
__exportStar(require("./projectAppsControllerListParams"), exports);
|
|
@@ -110,11 +115,15 @@ __exportStar(require("./releaseChannelRevisionSelectorDtoKind"), exports);
|
|
|
110
115
|
__exportStar(require("./requestMagicLinkDto"), exports);
|
|
111
116
|
__exportStar(require("./requestMagicLinkResultDto"), exports);
|
|
112
117
|
__exportStar(require("./requestMagicLinkResultDtoDataEnvelope"), exports);
|
|
118
|
+
__exportStar(require("./rescopePortalDto"), exports);
|
|
119
|
+
__exportStar(require("./rescopePortalTargetDto"), exports);
|
|
120
|
+
__exportStar(require("./rescopePortalTargetDtoTier"), exports);
|
|
113
121
|
__exportStar(require("./resolvedPortalLaunchDto"), exports);
|
|
114
122
|
__exportStar(require("./resolvedPortalLaunchDtoDataEnvelope"), exports);
|
|
115
123
|
__exportStar(require("./resourceManagedBy"), exports);
|
|
116
124
|
__exportStar(require("./resourceVisibilityPattern"), exports);
|
|
117
125
|
__exportStar(require("./revisionTargetDto"), exports);
|
|
126
|
+
__exportStar(require("./spaceKind"), exports);
|
|
118
127
|
__exportStar(require("./subjectKind"), exports);
|
|
119
128
|
__exportStar(require("./surfaceKind"), exports);
|
|
120
129
|
__exportStar(require("./tokenClass"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* App Runtime API
|
|
4
|
+
* OpenAPI spec version: 0.1.2
|
|
5
|
+
*/
|
|
6
|
+
export interface PortalPromotionGovernanceDto {
|
|
7
|
+
/** Whether the organisation growth policy could be READ. False means the authority was unreachable — distinct from a refusal, because a refusal is final and an outage is transient, and a UI must not present one as the other. */
|
|
8
|
+
known: boolean;
|
|
9
|
+
/** Whether the organisation's growth gate permits this promotion. Meaningless unless `known` is true; an unreachable authority is never reported as permitted. */
|
|
10
|
+
allowed: boolean;
|
|
11
|
+
/** @nullable */
|
|
12
|
+
detail: string | null;
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* App Runtime API
|
|
4
|
+
* OpenAPI spec version: 0.1.2
|
|
5
|
+
*/
|
|
6
|
+
import type { PortalPromotionGovernanceDto } from './portalPromotionGovernanceDto.js';
|
|
7
|
+
import type { PortalPromotionRefusalDto } from './portalPromotionRefusalDto.js';
|
|
8
|
+
import type { SpaceKind } from './spaceKind.js';
|
|
9
|
+
export interface PortalPromotionPreviewDto {
|
|
10
|
+
currentTier: SpaceKind;
|
|
11
|
+
/** The only legal promotion target for a portal today: `org`. */
|
|
12
|
+
target: SpaceKind;
|
|
13
|
+
/** True only when EVERY check passed and the growth gate was reachable. An unknown gate is not an allowance. */
|
|
14
|
+
allowed: boolean;
|
|
15
|
+
/** EVERY reason it would be refused, not just the first. The write path short-circuits, which is right for a write and wrong for a preview — fixing one blocker at a time is three round trips through a human. */
|
|
16
|
+
refusals: PortalPromotionRefusalDto[];
|
|
17
|
+
governance: PortalPromotionGovernanceDto;
|
|
18
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* App Runtime API
|
|
4
|
+
* OpenAPI spec version: 0.1.2
|
|
5
|
+
*/
|
|
6
|
+
import type { PortalPromotionPreviewDto } from './portalPromotionPreviewDto.js';
|
|
7
|
+
export interface PortalPromotionPreviewDtoDataEnvelope {
|
|
8
|
+
data: PortalPromotionPreviewDto;
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* App Runtime API
|
|
4
|
+
* OpenAPI spec version: 0.1.2
|
|
5
|
+
*/
|
|
6
|
+
import type { PortalPromotionRefusalReason } from './portalPromotionRefusalReason.js';
|
|
7
|
+
export interface PortalPromotionRefusalDto {
|
|
8
|
+
/** Which check refused. A CLOSED set, so a renderer can map each to its own remedy instead of printing a message it did not expect. */
|
|
9
|
+
reason: PortalPromotionRefusalReason;
|
|
10
|
+
/** The refusing check's own message, verbatim. */
|
|
11
|
+
detail: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* App Runtime API
|
|
4
|
+
* OpenAPI spec version: 0.1.2
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Which check refused. A CLOSED set, so a renderer can map each to its own remedy instead of printing a message it did not expect.
|
|
8
|
+
*/
|
|
9
|
+
export type PortalPromotionRefusalReason = typeof PortalPromotionRefusalReason[keyof typeof PortalPromotionRefusalReason];
|
|
10
|
+
export declare const PortalPromotionRefusalReason: {
|
|
11
|
+
readonly 'target-unsupported': "target-unsupported";
|
|
12
|
+
readonly 'not-the-owner': "not-the-owner";
|
|
13
|
+
readonly 'org-role': "org-role";
|
|
14
|
+
readonly 'illegal-promotion': "illegal-promotion";
|
|
15
|
+
readonly 'org-growth-gate': "org-growth-gate";
|
|
16
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
4
|
+
* App Runtime API
|
|
5
|
+
* OpenAPI spec version: 0.1.2
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.PortalPromotionRefusalReason = void 0;
|
|
9
|
+
exports.PortalPromotionRefusalReason = {
|
|
10
|
+
'target-unsupported': 'target-unsupported',
|
|
11
|
+
'not-the-owner': 'not-the-owner',
|
|
12
|
+
'org-role': 'org-role',
|
|
13
|
+
'illegal-promotion': 'illegal-promotion',
|
|
14
|
+
'org-growth-gate': 'org-growth-gate',
|
|
15
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* App Runtime API
|
|
4
|
+
* OpenAPI spec version: 0.1.2
|
|
5
|
+
*/
|
|
6
|
+
import type { RescopePortalTargetDto } from './rescopePortalTargetDto.js';
|
|
7
|
+
export interface RescopePortalDto {
|
|
8
|
+
/** The Space to promote this portal into. Promotion only ever BROADENS the audience; a demotion or a same-tier move is refused with 422. */
|
|
9
|
+
toSpace: RescopePortalTargetDto;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* App Runtime API
|
|
4
|
+
* OpenAPI spec version: 0.1.2
|
|
5
|
+
*/
|
|
6
|
+
import type { RescopePortalTargetDtoTier } from './rescopePortalTargetDtoTier.js';
|
|
7
|
+
export interface RescopePortalTargetDto {
|
|
8
|
+
/** Owning tier to promote this portal INTO. Only `org` is accepted: promotion only ever broadens, and a portal has no project-owner tier because `projectId` already is its project axis. */
|
|
9
|
+
tier: RescopePortalTargetDtoTier;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* App Runtime API
|
|
4
|
+
* OpenAPI spec version: 0.1.2
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Owning tier to promote this portal INTO. Only `org` is accepted: promotion only ever broadens, and a portal has no project-owner tier because `projectId` already is its project axis.
|
|
8
|
+
*/
|
|
9
|
+
export type RescopePortalTargetDtoTier = typeof RescopePortalTargetDtoTier[keyof typeof RescopePortalTargetDtoTier];
|
|
10
|
+
export declare const RescopePortalTargetDtoTier: {
|
|
11
|
+
readonly org: "org";
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
4
|
+
* App Runtime API
|
|
5
|
+
* OpenAPI spec version: 0.1.2
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.RescopePortalTargetDtoTier = void 0;
|
|
9
|
+
exports.RescopePortalTargetDtoTier = {
|
|
10
|
+
org: 'org',
|
|
11
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* App Runtime API
|
|
4
|
+
* OpenAPI spec version: 0.1.2
|
|
5
|
+
*/
|
|
6
|
+
export type SpaceKind = typeof SpaceKind[keyof typeof SpaceKind];
|
|
7
|
+
export declare const SpaceKind: {
|
|
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
|
+
* App Runtime API
|
|
5
|
+
* OpenAPI spec version: 0.1.2
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.SpaceKind = void 0;
|
|
9
|
+
exports.SpaceKind = {
|
|
10
|
+
system: 'system',
|
|
11
|
+
org: 'org',
|
|
12
|
+
project: 'project',
|
|
13
|
+
app: 'app',
|
|
14
|
+
session: 'session',
|
|
15
|
+
biome: 'biome',
|
|
16
|
+
user: 'user',
|
|
17
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xemahq/app-platform-api-client",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.21",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"service": "app-platform-api",
|
|
21
21
|
"biome": "app-platform",
|
|
22
22
|
"target": "server",
|
|
23
|
-
"generator": "@xemahq/api-client-generator@0.15.
|
|
23
|
+
"generator": "@xemahq/api-client-generator@0.15.2",
|
|
24
24
|
"source": "openapi.public.json"
|
|
25
25
|
},
|
|
26
26
|
"license": "LicenseRef-Xema-BSL-1.1",
|