@xemahq/app-platform-internal-api-client 0.3.4 → 0.3.9

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.
@@ -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
+ }
@@ -7,7 +7,7 @@ import type { AppLockfileDto } from './appLockfileDto.js';
7
7
  import type { BiomeInstallDto } from './biomeInstallDto.js';
8
8
  import type { BrandingConfigDto } from './brandingConfigDto.js';
9
9
  import type { CapabilityPolicyOverrideDto } from './capabilityPolicyOverrideDto.js';
10
- import type { CreateAppDtoProjectId } from './createAppDtoProjectId.js';
10
+ import type { SurfaceKind } from './surfaceKind.js';
11
11
  export interface CreateAppDto {
12
12
  /** Stable slug unique within (orgId, projectId) for project apps, or (orgId) for portals. */
13
13
  slug: string;
@@ -16,7 +16,7 @@ export interface CreateAppDto {
16
16
  * Project id. Null or absent for org-scoped portals.
17
17
  * @nullable
18
18
  */
19
- projectId?: CreateAppDtoProjectId;
19
+ projectId?: string | null;
20
20
  displayName: string;
21
21
  /** Default ExecutionEnvironment slug (e.g. `public-session`). */
22
22
  defaultZone: string;
@@ -29,4 +29,6 @@ export interface CreateAppDto {
29
29
  subdomainEnabled?: boolean;
30
30
  defaultAudience?: string;
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
  }
@@ -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';
@@ -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
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xemahq/app-platform-internal-api-client",
3
- "version": "0.3.4",
3
+ "version": "0.3.9",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
@@ -19,7 +19,7 @@
19
19
  "service": "app-platform-api",
20
20
  "biome": "app-platform",
21
21
  "target": "server",
22
- "generator": "@xemahq/api-client-generator@0.12.0",
22
+ "generator": "@xemahq/api-client-generator@0.12.1",
23
23
  "source": "openapi.internal.json"
24
24
  },
25
25
  "license": "LicenseRef-Xema-BSL-1.1",
@@ -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;