@xemahq/app-platform-internal-api-client 0.3.5 → 0.3.11
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/apps/apps.d.ts +1 -1
- package/dist/endpoints/apps/apps.js +1 -1
- package/dist/models/appDto.d.ts +5 -3
- package/dist/models/appsControllerListParams.d.ts +7 -0
- package/dist/models/codedReleaseRuntimeDto.d.ts +18 -0
- package/dist/models/createAppDto.d.ts +7 -5
- package/dist/models/index.d.ts +2 -1
- package/dist/models/index.js +2 -1
- package/dist/models/prepareAppReleaseDto.d.ts +3 -0
- package/dist/models/surfaceKind.d.ts +14 -0
- package/dist/models/surfaceKind.js +13 -0
- package/dist/models/updateAppDto.d.ts +3 -3
- package/package.json +1 -1
- package/dist/models/createAppDtoProjectId.d.ts +0 -12
- /package/dist/models/{createAppDtoProjectId.js → codedReleaseRuntimeDto.js} +0 -0
|
@@ -11,7 +11,7 @@ export declare const getAppsControllerCreateUrl: () => string;
|
|
|
11
11
|
export declare const appsControllerCreate: (createAppDto: CreateAppDto, options?: RequestInit) => Promise<AppDtoDataEnvelope>;
|
|
12
12
|
export declare const getAppsControllerListUrl: (params?: AppsControllerListParams) => string;
|
|
13
13
|
/**
|
|
14
|
-
* @summary List Apps (filtered by orgId, projectId, portalOnly, and/or slug).
|
|
14
|
+
* @summary List Apps (filtered by orgId, projectId, portalOnly, and/or slug). Archived Apps are excluded unless `includeArchived=true`.
|
|
15
15
|
*/
|
|
16
16
|
export declare const appsControllerList: (params?: AppsControllerListParams, options?: RequestInit) => Promise<AppDtoDataArrayEnvelope>;
|
|
17
17
|
export declare const getAppsControllerGetByIdUrl: (id: string) => string;
|
|
@@ -42,7 +42,7 @@ const getAppsControllerListUrl = (params) => {
|
|
|
42
42
|
};
|
|
43
43
|
exports.getAppsControllerListUrl = getAppsControllerListUrl;
|
|
44
44
|
/**
|
|
45
|
-
* @summary List Apps (filtered by orgId, projectId, portalOnly, and/or slug).
|
|
45
|
+
* @summary List Apps (filtered by orgId, projectId, portalOnly, and/or slug). Archived Apps are excluded unless `includeArchived=true`.
|
|
46
46
|
*/
|
|
47
47
|
const appsControllerList = async (params, options) => {
|
|
48
48
|
return (0, custom_fetch_1.customFetch)((0, exports.getAppsControllerListUrl)(params), {
|
package/dist/models/appDto.d.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* OpenAPI spec version: 0.1.2
|
|
5
5
|
*/
|
|
6
6
|
import type { AppLockfileDto } from './appLockfileDto.js';
|
|
7
|
+
import type { AudienceKind } from './audienceKind.js';
|
|
7
8
|
import type { BiomeInstallDto } from './biomeInstallDto.js';
|
|
8
9
|
import type { BrandingConfigDto } from './brandingConfigDto.js';
|
|
9
10
|
import type { CapabilityPolicyOverrideDto } from './capabilityPolicyOverrideDto.js';
|
|
@@ -22,13 +23,14 @@ export interface AppDto {
|
|
|
22
23
|
lockfile: AppLockfileDto;
|
|
23
24
|
installedBiomes: BiomeInstallDto[];
|
|
24
25
|
capabilityPolicy: CapabilityPolicyOverrideDto[];
|
|
25
|
-
/**
|
|
26
|
-
subdomain: string | null;
|
|
26
|
+
/** Whether this App is reachable on a public host. The host itself is DERIVED (see `codedAppSubdomain`), never tenant-chosen — this is the switch for WHETHER, not WHERE. */
|
|
27
27
|
subdomainEnabled: boolean;
|
|
28
|
-
defaultAudience:
|
|
28
|
+
defaultAudience: AudienceKind;
|
|
29
29
|
archived: boolean;
|
|
30
30
|
/** Provisioning ownership marker. `iac` = managed by the declarative control plane (Terraform / xema.yaml); `seeder` = a distribution default; `ui` = hand-managed (or adopted from iac/seeder via a UI edit); `system` = platform-shipped; null = unmanaged/legacy. Lets a console badge an IaC-owned resource and surface an "export as code" affordance. */
|
|
31
31
|
managedBy: ResourceManagedBy | null;
|
|
32
|
+
/** Whether this App can be handed back to the portal reconciler — the exact precondition of POST /bff/portals/:id/readopt (true iff the row carries the reconciler natural key). Read-only, server-derived. A `ui`-managed App with readoptable=false was hand-created and was never reconciler-owned; with readoptable=true it is an adopted default portal, and readopt restores automatic updates. */
|
|
33
|
+
readoptable: boolean;
|
|
32
34
|
createdAt: string;
|
|
33
35
|
updatedAt: string;
|
|
34
36
|
}
|
|
@@ -7,5 +7,12 @@ export type AppsControllerListParams = {
|
|
|
7
7
|
orgId?: string;
|
|
8
8
|
projectId?: string;
|
|
9
9
|
slug?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Restrict to ORG-scoped Apps (projectId IS NULL).
|
|
12
|
+
*/
|
|
10
13
|
portalOnly?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Include archived Apps. Default false — an archived App is refused by public ingress and by every external-auth flow, so it is out of the listing unless explicitly asked for.
|
|
16
|
+
*/
|
|
17
|
+
includeArchived?: boolean;
|
|
11
18
|
};
|
|
@@ -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
|
+
export interface CodedReleaseRuntimeDto {
|
|
7
|
+
/** Repository + tag the build pushed to. A tag is required: a ref without one is indistinguishable from one whose tag was lost in string assembly. */
|
|
8
|
+
imageRef: string;
|
|
9
|
+
/**
|
|
10
|
+
* The manifest digest the registry SERVES at that ref — this is what the workload runs, so a retag cannot move a live app out from under its own release. The ref returned when a build is DISPATCHED is an address the image is expected to occupy, not evidence that anything is there.
|
|
11
|
+
* @pattern ^sha256:[a-f0-9]{64}$
|
|
12
|
+
*/
|
|
13
|
+
imageDigest: string;
|
|
14
|
+
/** The port the app's server listens on inside the container. */
|
|
15
|
+
containerPort: number;
|
|
16
|
+
/** HTTP path the readiness and liveness probes GET. Defaults to `/` — the one path a server that serves this app must answer. A Xema convention like `/health/ready` would be a guess about someone else's app, and a wrong probe path leaves the deployment permanently un-ready rather than failing loudly. */
|
|
17
|
+
healthPath?: string;
|
|
18
|
+
}
|
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
* OpenAPI spec version: 0.1.2
|
|
5
5
|
*/
|
|
6
6
|
import type { AppLockfileDto } from './appLockfileDto.js';
|
|
7
|
+
import type { AudienceKind } from './audienceKind.js';
|
|
7
8
|
import type { BiomeInstallDto } from './biomeInstallDto.js';
|
|
8
9
|
import type { BrandingConfigDto } from './brandingConfigDto.js';
|
|
9
10
|
import type { CapabilityPolicyOverrideDto } from './capabilityPolicyOverrideDto.js';
|
|
10
|
-
import type {
|
|
11
|
+
import type { SurfaceKind } from './surfaceKind.js';
|
|
11
12
|
export interface CreateAppDto {
|
|
12
13
|
/** Stable slug unique within (orgId, projectId) for project apps, or (orgId) for portals. */
|
|
13
14
|
slug: string;
|
|
@@ -16,7 +17,7 @@ export interface CreateAppDto {
|
|
|
16
17
|
* Project id. Null or absent for org-scoped portals.
|
|
17
18
|
* @nullable
|
|
18
19
|
*/
|
|
19
|
-
projectId?:
|
|
20
|
+
projectId?: string | null;
|
|
20
21
|
displayName: string;
|
|
21
22
|
/** Default ExecutionEnvironment slug (e.g. `public-session`). */
|
|
22
23
|
defaultZone: string;
|
|
@@ -24,9 +25,10 @@ export interface CreateAppDto {
|
|
|
24
25
|
lockfile: AppLockfileDto;
|
|
25
26
|
installedBiomes: BiomeInstallDto[];
|
|
26
27
|
capabilityPolicy: CapabilityPolicyOverrideDto[];
|
|
27
|
-
/**
|
|
28
|
-
subdomain?: string | null;
|
|
28
|
+
/** Whether this App is reachable on a public host. The host itself is DERIVED, never tenant-chosen — this is the switch for WHETHER, not WHERE. */
|
|
29
29
|
subdomainEnabled?: boolean;
|
|
30
|
-
defaultAudience?:
|
|
30
|
+
defaultAudience?: AudienceKind;
|
|
31
31
|
archived?: boolean;
|
|
32
|
+
/** Authoring tier. `declared` (the default) and `composed` Apps ARE their JSON definition. A `coded` App is one the platform hosts but does not author — a Webapp Studio session builds a container image from the user's own repo, and every release of it carries that image coordinate. Immutable after creation: the tier decides what a release IS, so changing it would leave existing releases describing the wrong thing. */
|
|
33
|
+
surface?: SurfaceKind;
|
|
32
34
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -38,9 +38,9 @@ export * from './biomeInstallDtoConfiguration';
|
|
|
38
38
|
export * from './brandingConfigDto';
|
|
39
39
|
export * from './brandingConfigDtoCssTokens';
|
|
40
40
|
export * from './capabilityPolicyOverrideDto';
|
|
41
|
+
export * from './codedReleaseRuntimeDto';
|
|
41
42
|
export * from './createAppClientDto';
|
|
42
43
|
export * from './createAppDto';
|
|
43
|
-
export * from './createAppDtoProjectId';
|
|
44
44
|
export * from './createAudiencePolicyDto';
|
|
45
45
|
export * from './createdAppClientDto';
|
|
46
46
|
export * from './createdAppClientDtoDataEnvelope';
|
|
@@ -61,6 +61,7 @@ export * from './prepareAppReleaseDtoSourceArtifacts';
|
|
|
61
61
|
export * from './releaseOrgDto';
|
|
62
62
|
export * from './resourceManagedBy';
|
|
63
63
|
export * from './spaceKind';
|
|
64
|
+
export * from './surfaceKind';
|
|
64
65
|
export * from './updateAppDto';
|
|
65
66
|
export * from './updateAudiencePolicyDto';
|
|
66
67
|
export * from './updateAudiencePolicyDtoRateLimitPerHourPerSubject';
|
package/dist/models/index.js
CHANGED
|
@@ -55,9 +55,9 @@ __exportStar(require("./biomeInstallDtoConfiguration"), exports);
|
|
|
55
55
|
__exportStar(require("./brandingConfigDto"), exports);
|
|
56
56
|
__exportStar(require("./brandingConfigDtoCssTokens"), exports);
|
|
57
57
|
__exportStar(require("./capabilityPolicyOverrideDto"), exports);
|
|
58
|
+
__exportStar(require("./codedReleaseRuntimeDto"), exports);
|
|
58
59
|
__exportStar(require("./createAppClientDto"), exports);
|
|
59
60
|
__exportStar(require("./createAppDto"), exports);
|
|
60
|
-
__exportStar(require("./createAppDtoProjectId"), exports);
|
|
61
61
|
__exportStar(require("./createAudiencePolicyDto"), exports);
|
|
62
62
|
__exportStar(require("./createdAppClientDto"), exports);
|
|
63
63
|
__exportStar(require("./createdAppClientDtoDataEnvelope"), exports);
|
|
@@ -78,6 +78,7 @@ __exportStar(require("./prepareAppReleaseDtoSourceArtifacts"), exports);
|
|
|
78
78
|
__exportStar(require("./releaseOrgDto"), exports);
|
|
79
79
|
__exportStar(require("./resourceManagedBy"), exports);
|
|
80
80
|
__exportStar(require("./spaceKind"), exports);
|
|
81
|
+
__exportStar(require("./surfaceKind"), exports);
|
|
81
82
|
__exportStar(require("./updateAppDto"), exports);
|
|
82
83
|
__exportStar(require("./updateAudiencePolicyDto"), exports);
|
|
83
84
|
__exportStar(require("./updateAudiencePolicyDtoRateLimitPerHourPerSubject"), exports);
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* OpenAPI spec version: 0.1.2
|
|
5
5
|
*/
|
|
6
6
|
import type { AppLockfileDto } from './appLockfileDto.js';
|
|
7
|
+
import type { CodedReleaseRuntimeDto } from './codedReleaseRuntimeDto.js';
|
|
7
8
|
import type { PrepareAppReleaseDtoAudienceSnapshot } from './prepareAppReleaseDtoAudienceSnapshot.js';
|
|
8
9
|
import type { PrepareAppReleaseDtoDefinition } from './prepareAppReleaseDtoDefinition.js';
|
|
9
10
|
import type { PrepareAppReleaseDtoPolicySnapshot } from './prepareAppReleaseDtoPolicySnapshot.js';
|
|
@@ -24,4 +25,6 @@ export interface PrepareAppReleaseDto {
|
|
|
24
25
|
sourceArtifacts: PrepareAppReleaseDtoSourceArtifacts;
|
|
25
26
|
audienceSnapshot: PrepareAppReleaseDtoAudienceSnapshot;
|
|
26
27
|
policySnapshot: PrepareAppReleaseDtoPolicySnapshot;
|
|
28
|
+
/** Container coordinate. REQUIRED when the App's surface is `coded` and REFUSED otherwise — the surface decides what a release IS, and an image on a declared release would read as deployable to anything checking the column instead of the surface. */
|
|
29
|
+
codedRuntime?: CodedReleaseRuntimeDto;
|
|
27
30
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
* Authoring tier. `declared` (the default) and `composed` Apps ARE their JSON definition. A `coded` App is one the platform hosts but does not author — a Webapp Studio session builds a container image from the user's own repo, and every release of it carries that image coordinate. Immutable after creation: the tier decides what a release IS, so changing it would leave existing releases describing the wrong thing.
|
|
8
|
+
*/
|
|
9
|
+
export type SurfaceKind = typeof SurfaceKind[keyof typeof SurfaceKind];
|
|
10
|
+
export declare const SurfaceKind: {
|
|
11
|
+
readonly declared: "declared";
|
|
12
|
+
readonly composed: "composed";
|
|
13
|
+
readonly coded: "coded";
|
|
14
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
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.SurfaceKind = void 0;
|
|
9
|
+
exports.SurfaceKind = {
|
|
10
|
+
declared: 'declared',
|
|
11
|
+
composed: 'composed',
|
|
12
|
+
coded: 'coded',
|
|
13
|
+
};
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* OpenAPI spec version: 0.1.2
|
|
5
5
|
*/
|
|
6
6
|
import type { AppLockfileDto } from './appLockfileDto.js';
|
|
7
|
+
import type { AudienceKind } from './audienceKind.js';
|
|
7
8
|
import type { BiomeInstallDto } from './biomeInstallDto.js';
|
|
8
9
|
import type { BrandingConfigDto } from './brandingConfigDto.js';
|
|
9
10
|
import type { CapabilityPolicyOverrideDto } from './capabilityPolicyOverrideDto.js';
|
|
@@ -14,8 +15,7 @@ export interface UpdateAppDto {
|
|
|
14
15
|
lockfile?: AppLockfileDto;
|
|
15
16
|
installedBiomes?: BiomeInstallDto[];
|
|
16
17
|
capabilityPolicy?: CapabilityPolicyOverrideDto[];
|
|
17
|
-
/**
|
|
18
|
-
subdomain?: string | null;
|
|
18
|
+
/** Whether this App is reachable on a public host. The host itself is DERIVED, never tenant-chosen — this is the switch for WHETHER, not WHERE. */
|
|
19
19
|
subdomainEnabled?: boolean;
|
|
20
|
-
defaultAudience?:
|
|
20
|
+
defaultAudience?: AudienceKind;
|
|
21
21
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
* Project id. Null or absent for org-scoped portals.
|
|
8
|
-
* @nullable
|
|
9
|
-
*/
|
|
10
|
-
export type CreateAppDtoProjectId = {
|
|
11
|
-
[key: string]: unknown;
|
|
12
|
-
} | null;
|
|
File without changes
|