@xemahq/app-platform-internal-api-client 0.3.11 → 0.3.19
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/custom-fetch.d.ts +22 -0
- package/dist/custom-fetch.js +27 -0
- package/dist/endpoints/app-releases/app-releases.d.ts +17 -7
- package/dist/endpoints/app-releases/app-releases.js +59 -10
- package/dist/models/appReleaseDto.d.ts +21 -10
- package/dist/models/{audiencePolicyDtoRateLimitPerHourPerSubject.d.ts → appReleaseDtoCompatibilityEvidence.d.ts} +2 -5
- package/dist/models/appReleaseDtoDependenciesItem.d.ts +8 -0
- package/dist/models/appReleaseDtoProvenanceEvidence.d.ts +8 -0
- package/dist/models/appReleaseDtoRelease.d.ts +11 -0
- package/dist/models/appReleaseDtoRelease.js +7 -0
- package/dist/models/{updateAudiencePolicyDtoRateLimitPerHourPerSubject.d.ts → appReleaseDtoReleasePolicyEvidence.d.ts} +2 -5
- package/dist/models/appReleaseDtoReleasePolicyEvidence.js +7 -0
- package/dist/models/appReleaseDtoSignatureEvidence.d.ts +8 -0
- package/dist/models/appReleaseDtoSignatureEvidence.js +7 -0
- package/dist/models/appReleaseHistoryDto.d.ts +21 -0
- package/dist/models/appReleaseHistoryDtoDataArrayEnvelope.d.ts +9 -0
- package/dist/models/appReleaseHistoryDtoDataArrayEnvelope.js +2 -0
- package/dist/models/appReleaseHistoryDtoOperation.d.ts +11 -0
- package/dist/models/appReleaseHistoryDtoOperation.js +13 -0
- package/dist/models/appReleaseHistoryDtoTarget.d.ts +8 -0
- package/dist/models/appReleaseHistoryDtoTarget.js +7 -0
- package/dist/models/appReleaseImpactDto.d.ts +13 -0
- package/dist/models/appReleaseImpactDto.js +2 -0
- package/dist/models/appReleaseImpactDtoDataArrayEnvelope.d.ts +9 -0
- package/dist/models/appReleaseImpactDtoDataArrayEnvelope.js +2 -0
- package/dist/models/appReleaseImpactDtoOwnerSpaceRef.d.ts +8 -0
- package/dist/models/appReleaseImpactDtoOwnerSpaceRef.js +7 -0
- package/dist/models/appReleaseImpactDtoTarget.d.ts +8 -0
- package/dist/models/appReleaseImpactDtoTarget.js +7 -0
- package/dist/models/appReleaseRequestDto.d.ts +15 -0
- package/dist/models/appReleaseRequestDto.js +2 -0
- package/dist/models/appReleaseRequestDtoDataEnvelope.d.ts +9 -0
- package/dist/models/appReleaseRequestDtoDataEnvelope.js +2 -0
- package/dist/models/appReleaseRequestDtoStatus.d.ts +11 -0
- package/dist/models/appReleaseRequestDtoStatus.js +13 -0
- package/dist/models/{releaseOrgDto.d.ts → appReleasesControllerPreviewImpactParams.d.ts} +2 -2
- package/dist/models/appReleasesControllerPreviewImpactParams.js +7 -0
- package/dist/models/audiencePolicyDto.d.ts +4 -3
- package/dist/models/biomeInstallDto.d.ts +0 -2
- package/dist/models/createAudiencePolicyDto.d.ts +3 -1
- package/dist/models/index.d.ts +26 -5
- package/dist/models/index.js +26 -5
- package/dist/models/internalAppReleaseActionDto.d.ts +10 -0
- package/dist/models/internalAppReleaseActionDto.js +7 -0
- package/dist/models/prepareAppReleaseDto.d.ts +10 -0
- package/dist/models/prepareAppReleaseDtoCompatibilityEvidence.d.ts +8 -0
- package/dist/models/prepareAppReleaseDtoCompatibilityEvidence.js +7 -0
- package/dist/models/prepareAppReleaseDtoDependenciesItem.d.ts +8 -0
- package/dist/models/prepareAppReleaseDtoDependenciesItem.js +7 -0
- package/dist/models/prepareAppReleaseDtoProvenanceEvidence.d.ts +8 -0
- package/dist/models/prepareAppReleaseDtoProvenanceEvidence.js +7 -0
- package/dist/models/prepareAppReleaseDtoReleasePolicyEvidence.d.ts +8 -0
- package/dist/models/prepareAppReleaseDtoReleasePolicyEvidence.js +7 -0
- package/dist/models/prepareAppReleaseDtoSignatureEvidence.d.ts +8 -0
- package/dist/models/prepareAppReleaseDtoSignatureEvidence.js +7 -0
- package/dist/models/requestAppReleaseDto.d.ts +10 -0
- package/dist/models/requestAppReleaseDto.js +7 -0
- package/dist/models/rollbackAppReleaseDto.d.ts +11 -0
- package/dist/models/rollbackAppReleaseDto.js +7 -0
- package/dist/models/updateAudiencePolicyDto.d.ts +2 -3
- package/dist/models/xemaObjectKind.d.ts +2 -2
- package/dist/models/xemaObjectKind.js +2 -2
- package/package.json +2 -2
- package/dist/models/appReleaseDtoDataArrayEnvelope.d.ts +0 -9
- package/dist/models/appReleaseState.d.ts +0 -14
- package/dist/models/appReleaseState.js +0 -16
- /package/dist/models/{audiencePolicyDtoRateLimitPerHourPerSubject.js → appReleaseDtoCompatibilityEvidence.js} +0 -0
- /package/dist/models/{releaseOrgDto.js → appReleaseDtoDependenciesItem.js} +0 -0
- /package/dist/models/{updateAudiencePolicyDtoRateLimitPerHourPerSubject.js → appReleaseDtoProvenanceEvidence.js} +0 -0
- /package/dist/models/{appReleaseDtoDataArrayEnvelope.js → appReleaseHistoryDto.js} +0 -0
package/dist/custom-fetch.d.ts
CHANGED
|
@@ -47,6 +47,28 @@ export interface ClientConfig {
|
|
|
47
47
|
getAuthToken?: () => Promise<string>;
|
|
48
48
|
/** Optional callback returning headers to inject on every request. Per-call headers take precedence. */
|
|
49
49
|
getHeaders?: () => Record<string, string> | Promise<Record<string, string>>;
|
|
50
|
+
/**
|
|
51
|
+
* Optional resolver for the CORRELATION ID of the request being made — the
|
|
52
|
+
* handle that ties one causal chain together across every service hop.
|
|
53
|
+
*
|
|
54
|
+
* WHY IT IS A CALLBACK AND NOT A VALUE. `ClientConfig` is process-global
|
|
55
|
+
* (`configureClient` is called once at wiring time), and a correlation id is
|
|
56
|
+
* per-request. This is invoked INSIDE the request, so a server can point it
|
|
57
|
+
* at whatever carries its ambient request context and get the CURRENT id
|
|
58
|
+
* rather than the one that happened to be live at boot.
|
|
59
|
+
*
|
|
60
|
+
* WHY THE TRANSPORT DOES NOT MINT ONE. Returning `undefined` sends no header,
|
|
61
|
+
* and the receiving service's `RequestContextMiddleware` mints its own — a
|
|
62
|
+
* new trace, which is honest. A transport that minted per call would produce
|
|
63
|
+
* a FRESH id on every hop while looking like propagation, which is strictly
|
|
64
|
+
* worse than none: every row would carry a correlation id and no two rows
|
|
65
|
+
* that belong together would share one. That is the exact defect this exists
|
|
66
|
+
* to fix, so the transport must not reproduce it one layer down.
|
|
67
|
+
*
|
|
68
|
+
* A caller-supplied `X-Correlation-Id` header always wins, and so does one
|
|
69
|
+
* from `getHeaders`.
|
|
70
|
+
*/
|
|
71
|
+
getCorrelationId?: () => string | undefined | Promise<string | undefined>;
|
|
50
72
|
/**
|
|
51
73
|
* Optional callback invoked on a 401 before ONE re-attempt. Supplying it is
|
|
52
74
|
* what opts this client into that re-attempt; without it a 401 comes back to
|
package/dist/custom-fetch.js
CHANGED
|
@@ -89,6 +89,16 @@ function getClientConfig() {
|
|
|
89
89
|
*/
|
|
90
90
|
/** The only statuses that state the request was NOT processed. See above. */
|
|
91
91
|
const RETRYABLE_STATUSES = [429, 503];
|
|
92
|
+
/**
|
|
93
|
+
* The platform's correlation header, spelled once.
|
|
94
|
+
*
|
|
95
|
+
* Value-identical to what `RequestContextMiddleware` reads in
|
|
96
|
+
* `@xemahq/platform-common`. It is a literal here rather than an import
|
|
97
|
+
* because this file has ZERO imports on purpose: it ships byte-identical into
|
|
98
|
+
* browser-target clients as well as server-target ones, and a dependency on a
|
|
99
|
+
* NestJS-peer package would follow it into every one of them.
|
|
100
|
+
*/
|
|
101
|
+
const CORRELATION_ID_HEADER = 'X-Correlation-Id';
|
|
92
102
|
/** Backoff floor, doubling per attempt up to {@link MAX_BACKOFF_MS}. */
|
|
93
103
|
const BASE_BACKOFF_MS = 1000;
|
|
94
104
|
/** Ceiling on a single backoff, however many attempts have elapsed. */
|
|
@@ -104,6 +114,23 @@ async function buildHeaders(config, callerHeaders) {
|
|
|
104
114
|
}
|
|
105
115
|
}
|
|
106
116
|
}
|
|
117
|
+
// Correlation id (caller and global headers still take precedence).
|
|
118
|
+
//
|
|
119
|
+
// Without this, every server-to-server hop through a generated client started
|
|
120
|
+
// a NEW trace: the id is read-or-minted per hop by the receiving service's
|
|
121
|
+
// RequestContextMiddleware, and nothing carried it outbound — so an audit
|
|
122
|
+
// journal could record a whole causal chain and offer no way to join it back
|
|
123
|
+
// together.
|
|
124
|
+
//
|
|
125
|
+
// Absent resolver, or a resolver that answers `undefined`: NO header. The
|
|
126
|
+
// receiver mints and a new trace begins, which is the truthful outcome when
|
|
127
|
+
// there is nothing to continue.
|
|
128
|
+
if (config.getCorrelationId && !headers.has(CORRELATION_ID_HEADER)) {
|
|
129
|
+
const correlationId = await Promise.resolve(config.getCorrelationId());
|
|
130
|
+
if (correlationId) {
|
|
131
|
+
headers.set(CORRELATION_ID_HEADER, correlationId);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
107
134
|
// Auth token (caller or global headers take precedence)
|
|
108
135
|
if (config.getAuthToken && !headers.has('Authorization')) {
|
|
109
136
|
const token = await config.getAuthToken();
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* App Runtime API
|
|
4
4
|
* OpenAPI spec version: 0.1.2
|
|
5
5
|
*/
|
|
6
|
-
import type {
|
|
6
|
+
import type { AppReleaseDtoDataEnvelope, AppReleaseHistoryDtoDataArrayEnvelope, AppReleaseImpactDtoDataArrayEnvelope, AppReleaseRequestDtoDataEnvelope, AppReleasesControllerGetActiveParams, AppReleasesControllerListHistoryParams, AppReleasesControllerPreviewImpactParams, InternalAppReleaseActionDto, PrepareAppReleaseDto, RequestAppReleaseDto, RollbackAppReleaseDto } from '../../models';
|
|
7
7
|
export declare const getAppReleasesControllerPrepareUrl: (appId: string) => string;
|
|
8
8
|
/**
|
|
9
9
|
* @summary Idempotently prepare an immutable App release from a pinned Forge source revision.
|
|
@@ -11,14 +11,19 @@ export declare const getAppReleasesControllerPrepareUrl: (appId: string) => stri
|
|
|
11
11
|
export declare const appReleasesControllerPrepare: (appId: string, prepareAppReleaseDto: PrepareAppReleaseDto, options?: RequestInit) => Promise<AppReleaseDtoDataEnvelope>;
|
|
12
12
|
export declare const getAppReleasesControllerActivateUrl: (appId: string, releaseId: string) => string;
|
|
13
13
|
/**
|
|
14
|
-
* @summary
|
|
14
|
+
* @summary Request governed activation of a prepared release. The request may remain pending for a decision and is idempotent.
|
|
15
15
|
*/
|
|
16
|
-
export declare const appReleasesControllerActivate: (appId: string, releaseId: string,
|
|
17
|
-
export declare const getAppReleasesControllerRollbackUrl: (appId: string
|
|
16
|
+
export declare const appReleasesControllerActivate: (appId: string, releaseId: string, requestAppReleaseDto: RequestAppReleaseDto, options?: RequestInit) => Promise<AppReleaseRequestDtoDataEnvelope>;
|
|
17
|
+
export declare const getAppReleasesControllerRollbackUrl: (appId: string) => string;
|
|
18
18
|
/**
|
|
19
|
-
* @summary
|
|
19
|
+
* @summary Request governed rollback to a retained superseded release.
|
|
20
20
|
*/
|
|
21
|
-
export declare const appReleasesControllerRollback: (appId: string,
|
|
21
|
+
export declare const appReleasesControllerRollback: (appId: string, rollbackAppReleaseDto: RollbackAppReleaseDto, options?: RequestInit) => Promise<AppReleaseRequestDtoDataEnvelope>;
|
|
22
|
+
export declare const getAppReleasesControllerRetireUrl: (appId: string) => string;
|
|
23
|
+
/**
|
|
24
|
+
* @summary Request governed retirement of the stable App channel.
|
|
25
|
+
*/
|
|
26
|
+
export declare const appReleasesControllerRetire: (appId: string, internalAppReleaseActionDto: InternalAppReleaseActionDto, options?: RequestInit) => Promise<AppReleaseRequestDtoDataEnvelope>;
|
|
22
27
|
export declare const getAppReleasesControllerGetActiveUrl: (appId: string, params: AppReleasesControllerGetActiveParams) => string;
|
|
23
28
|
/**
|
|
24
29
|
* @summary Resolve the sole production/live release. Draft, prepared, failed, and stale Forge versions are never returned.
|
|
@@ -28,4 +33,9 @@ export declare const getAppReleasesControllerListHistoryUrl: (appId: string, par
|
|
|
28
33
|
/**
|
|
29
34
|
* @summary List immutable release history newest-first.
|
|
30
35
|
*/
|
|
31
|
-
export declare const appReleasesControllerListHistory: (appId: string, params: AppReleasesControllerListHistoryParams, options?: RequestInit) => Promise<
|
|
36
|
+
export declare const appReleasesControllerListHistory: (appId: string, params: AppReleasesControllerListHistoryParams, options?: RequestInit) => Promise<AppReleaseHistoryDtoDataArrayEnvelope>;
|
|
37
|
+
export declare const getAppReleasesControllerPreviewImpactUrl: (appId: string, revisionId: string, params: AppReleasesControllerPreviewImpactParams) => string;
|
|
38
|
+
/**
|
|
39
|
+
* @summary Dry-run reverse impact of advancing stable to an exact App revision.
|
|
40
|
+
*/
|
|
41
|
+
export declare const appReleasesControllerPreviewImpact: (appId: string, revisionId: string, params: AppReleasesControllerPreviewImpactParams, options?: RequestInit) => Promise<AppReleaseImpactDtoDataArrayEnvelope>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.appReleasesControllerListHistory = exports.getAppReleasesControllerListHistoryUrl = exports.appReleasesControllerGetActive = exports.getAppReleasesControllerGetActiveUrl = exports.appReleasesControllerRollback = exports.getAppReleasesControllerRollbackUrl = exports.appReleasesControllerActivate = exports.getAppReleasesControllerActivateUrl = exports.appReleasesControllerPrepare = exports.getAppReleasesControllerPrepareUrl = void 0;
|
|
3
|
+
exports.appReleasesControllerPreviewImpact = exports.getAppReleasesControllerPreviewImpactUrl = exports.appReleasesControllerListHistory = exports.getAppReleasesControllerListHistoryUrl = exports.appReleasesControllerGetActive = exports.getAppReleasesControllerGetActiveUrl = exports.appReleasesControllerRetire = exports.getAppReleasesControllerRetireUrl = exports.appReleasesControllerRollback = exports.getAppReleasesControllerRollbackUrl = exports.appReleasesControllerActivate = exports.getAppReleasesControllerActivateUrl = exports.appReleasesControllerPrepare = exports.getAppReleasesControllerPrepareUrl = void 0;
|
|
4
4
|
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
5
|
const getAppReleasesControllerPrepareUrl = (appId) => {
|
|
6
6
|
return `/releases/apps/${appId}`;
|
|
@@ -23,33 +23,49 @@ const getAppReleasesControllerActivateUrl = (appId, releaseId) => {
|
|
|
23
23
|
};
|
|
24
24
|
exports.getAppReleasesControllerActivateUrl = getAppReleasesControllerActivateUrl;
|
|
25
25
|
/**
|
|
26
|
-
* @summary
|
|
26
|
+
* @summary Request governed activation of a prepared release. The request may remain pending for a decision and is idempotent.
|
|
27
27
|
*/
|
|
28
|
-
const appReleasesControllerActivate = async (appId, releaseId,
|
|
28
|
+
const appReleasesControllerActivate = async (appId, releaseId, requestAppReleaseDto, options) => {
|
|
29
29
|
return (0, custom_fetch_1.customFetch)((0, exports.getAppReleasesControllerActivateUrl)(appId, releaseId), {
|
|
30
30
|
...options,
|
|
31
31
|
method: 'POST',
|
|
32
32
|
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
33
|
-
body: JSON.stringify(
|
|
33
|
+
body: JSON.stringify(requestAppReleaseDto)
|
|
34
34
|
});
|
|
35
35
|
};
|
|
36
36
|
exports.appReleasesControllerActivate = appReleasesControllerActivate;
|
|
37
|
-
const getAppReleasesControllerRollbackUrl = (appId
|
|
38
|
-
return `/releases/apps/${appId}
|
|
37
|
+
const getAppReleasesControllerRollbackUrl = (appId) => {
|
|
38
|
+
return `/releases/apps/${appId}/rollback`;
|
|
39
39
|
};
|
|
40
40
|
exports.getAppReleasesControllerRollbackUrl = getAppReleasesControllerRollbackUrl;
|
|
41
41
|
/**
|
|
42
|
-
* @summary
|
|
42
|
+
* @summary Request governed rollback to a retained superseded release.
|
|
43
43
|
*/
|
|
44
|
-
const appReleasesControllerRollback = async (appId,
|
|
45
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getAppReleasesControllerRollbackUrl)(appId
|
|
44
|
+
const appReleasesControllerRollback = async (appId, rollbackAppReleaseDto, options) => {
|
|
45
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getAppReleasesControllerRollbackUrl)(appId), {
|
|
46
46
|
...options,
|
|
47
47
|
method: 'POST',
|
|
48
48
|
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
49
|
-
body: JSON.stringify(
|
|
49
|
+
body: JSON.stringify(rollbackAppReleaseDto)
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
exports.appReleasesControllerRollback = appReleasesControllerRollback;
|
|
53
|
+
const getAppReleasesControllerRetireUrl = (appId) => {
|
|
54
|
+
return `/releases/apps/${appId}/retire`;
|
|
55
|
+
};
|
|
56
|
+
exports.getAppReleasesControllerRetireUrl = getAppReleasesControllerRetireUrl;
|
|
57
|
+
/**
|
|
58
|
+
* @summary Request governed retirement of the stable App channel.
|
|
59
|
+
*/
|
|
60
|
+
const appReleasesControllerRetire = async (appId, internalAppReleaseActionDto, options) => {
|
|
61
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getAppReleasesControllerRetireUrl)(appId), {
|
|
62
|
+
...options,
|
|
63
|
+
method: 'POST',
|
|
64
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
65
|
+
body: JSON.stringify(internalAppReleaseActionDto)
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
exports.appReleasesControllerRetire = appReleasesControllerRetire;
|
|
53
69
|
const getAppReleasesControllerGetActiveUrl = (appId, params) => {
|
|
54
70
|
const normalizedParams = new URLSearchParams();
|
|
55
71
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -116,3 +132,36 @@ const appReleasesControllerListHistory = async (appId, params, options) => {
|
|
|
116
132
|
});
|
|
117
133
|
};
|
|
118
134
|
exports.appReleasesControllerListHistory = appReleasesControllerListHistory;
|
|
135
|
+
const getAppReleasesControllerPreviewImpactUrl = (appId, revisionId, params) => {
|
|
136
|
+
const normalizedParams = new URLSearchParams();
|
|
137
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
138
|
+
if (value === undefined)
|
|
139
|
+
return;
|
|
140
|
+
if (value === null) {
|
|
141
|
+
normalizedParams.append(key, 'null');
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
if (Array.isArray(value)) {
|
|
145
|
+
for (const item of value) {
|
|
146
|
+
if (item === undefined || item === null)
|
|
147
|
+
continue;
|
|
148
|
+
normalizedParams.append(key, item.toString());
|
|
149
|
+
}
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
normalizedParams.append(key, value.toString());
|
|
153
|
+
});
|
|
154
|
+
const stringifiedParams = normalizedParams.toString();
|
|
155
|
+
return stringifiedParams.length > 0 ? `/releases/apps/${appId}/${revisionId}/impact?${stringifiedParams}` : `/releases/apps/${appId}/${revisionId}/impact`;
|
|
156
|
+
};
|
|
157
|
+
exports.getAppReleasesControllerPreviewImpactUrl = getAppReleasesControllerPreviewImpactUrl;
|
|
158
|
+
/**
|
|
159
|
+
* @summary Dry-run reverse impact of advancing stable to an exact App revision.
|
|
160
|
+
*/
|
|
161
|
+
const appReleasesControllerPreviewImpact = async (appId, revisionId, params, options) => {
|
|
162
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getAppReleasesControllerPreviewImpactUrl)(appId, revisionId, params), {
|
|
163
|
+
...options,
|
|
164
|
+
method: 'GET'
|
|
165
|
+
});
|
|
166
|
+
};
|
|
167
|
+
exports.appReleasesControllerPreviewImpact = appReleasesControllerPreviewImpact;
|
|
@@ -5,26 +5,37 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { AppLockfileDto } from './appLockfileDto.js';
|
|
7
7
|
import type { AppReleaseDtoAudienceSnapshot } from './appReleaseDtoAudienceSnapshot.js';
|
|
8
|
+
import type { AppReleaseDtoCompatibilityEvidence } from './appReleaseDtoCompatibilityEvidence.js';
|
|
8
9
|
import type { AppReleaseDtoDefinition } from './appReleaseDtoDefinition.js';
|
|
10
|
+
import type { AppReleaseDtoDependenciesItem } from './appReleaseDtoDependenciesItem.js';
|
|
9
11
|
import type { AppReleaseDtoPolicySnapshot } from './appReleaseDtoPolicySnapshot.js';
|
|
12
|
+
import type { AppReleaseDtoProvenanceEvidence } from './appReleaseDtoProvenanceEvidence.js';
|
|
13
|
+
import type { AppReleaseDtoRelease } from './appReleaseDtoRelease.js';
|
|
14
|
+
import type { AppReleaseDtoReleasePolicyEvidence } from './appReleaseDtoReleasePolicyEvidence.js';
|
|
10
15
|
import type { AppReleaseDtoSchemaPlan } from './appReleaseDtoSchemaPlan.js';
|
|
16
|
+
import type { AppReleaseDtoSignatureEvidence } from './appReleaseDtoSignatureEvidence.js';
|
|
11
17
|
import type { AppReleaseDtoSourceArtifacts } from './appReleaseDtoSourceArtifacts.js';
|
|
12
|
-
import type { AppReleaseState } from './appReleaseState.js';
|
|
13
18
|
export interface AppReleaseDto {
|
|
14
19
|
id: string;
|
|
15
20
|
appId: string;
|
|
21
|
+
/** Immutable descriptive revision sequence. */
|
|
16
22
|
version: number;
|
|
17
23
|
definition: AppReleaseDtoDefinition;
|
|
18
24
|
lockfile: AppLockfileDto;
|
|
19
25
|
schemaPlan: AppReleaseDtoSchemaPlan;
|
|
20
|
-
state: AppReleaseState;
|
|
21
26
|
preparationKey?: string;
|
|
22
|
-
manifestHash
|
|
23
|
-
sourceRevisionId
|
|
24
|
-
sourceContentHash
|
|
25
|
-
sourceArtifacts
|
|
26
|
-
audienceSnapshot
|
|
27
|
-
policySnapshot
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
manifestHash: string;
|
|
28
|
+
sourceRevisionId: string;
|
|
29
|
+
sourceContentHash: string;
|
|
30
|
+
sourceArtifacts: AppReleaseDtoSourceArtifacts;
|
|
31
|
+
audienceSnapshot: AppReleaseDtoAudienceSnapshot;
|
|
32
|
+
policySnapshot: AppReleaseDtoPolicySnapshot;
|
|
33
|
+
dependencies: AppReleaseDtoDependenciesItem[];
|
|
34
|
+
signatureEvidence: AppReleaseDtoSignatureEvidence;
|
|
35
|
+
provenanceEvidence: AppReleaseDtoProvenanceEvidence;
|
|
36
|
+
compatibilityEvidence: AppReleaseDtoCompatibilityEvidence;
|
|
37
|
+
releasePolicyEvidence: AppReleaseDtoReleasePolicyEvidence;
|
|
38
|
+
preparedAt: string;
|
|
39
|
+
/** Generic exact resolution metadata, including resolutionId, closureHash, closure, and followed channels. */
|
|
40
|
+
release?: AppReleaseDtoRelease;
|
|
30
41
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
* Generic exact resolution metadata, including resolutionId, closureHash, closure, and followed channels.
|
|
8
|
+
*/
|
|
9
|
+
export type AppReleaseDtoRelease = {
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
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 { AppReleaseHistoryDtoOperation } from './appReleaseHistoryDtoOperation.js';
|
|
7
|
+
import type { AppReleaseHistoryDtoTarget } from './appReleaseHistoryDtoTarget.js';
|
|
8
|
+
export interface AppReleaseHistoryDto {
|
|
9
|
+
releaseSetId: string;
|
|
10
|
+
resolutionId: string;
|
|
11
|
+
closureHash: string;
|
|
12
|
+
operation: AppReleaseHistoryDtoOperation;
|
|
13
|
+
rollbackOfReleaseSetId?: string;
|
|
14
|
+
target: AppReleaseHistoryDtoTarget;
|
|
15
|
+
channel: string;
|
|
16
|
+
channelVersion: number;
|
|
17
|
+
retired: boolean;
|
|
18
|
+
actorClientId: string;
|
|
19
|
+
reason: string;
|
|
20
|
+
createdAt: string;
|
|
21
|
+
}
|
|
@@ -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 { AppReleaseHistoryDto } from './appReleaseHistoryDto.js';
|
|
7
|
+
export interface AppReleaseHistoryDtoDataArrayEnvelope {
|
|
8
|
+
data: AppReleaseHistoryDto[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
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 AppReleaseHistoryDtoOperation = typeof AppReleaseHistoryDtoOperation[keyof typeof AppReleaseHistoryDtoOperation];
|
|
7
|
+
export declare const AppReleaseHistoryDtoOperation: {
|
|
8
|
+
readonly promote: "promote";
|
|
9
|
+
readonly rollback: "rollback";
|
|
10
|
+
readonly retire: "retire";
|
|
11
|
+
};
|
|
@@ -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.AppReleaseHistoryDtoOperation = void 0;
|
|
9
|
+
exports.AppReleaseHistoryDtoOperation = {
|
|
10
|
+
promote: 'promote',
|
|
11
|
+
rollback: 'rollback',
|
|
12
|
+
retire: 'retire',
|
|
13
|
+
};
|
|
@@ -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
|
+
import type { AppReleaseImpactDtoOwnerSpaceRef } from './appReleaseImpactDtoOwnerSpaceRef.js';
|
|
7
|
+
import type { AppReleaseImpactDtoTarget } from './appReleaseImpactDtoTarget.js';
|
|
8
|
+
export interface AppReleaseImpactDto {
|
|
9
|
+
ownerSpaceRef: AppReleaseImpactDtoOwnerSpaceRef;
|
|
10
|
+
target: AppReleaseImpactDtoTarget;
|
|
11
|
+
depth: number;
|
|
12
|
+
followedIntentPaths: string[];
|
|
13
|
+
}
|
|
@@ -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 { AppReleaseImpactDto } from './appReleaseImpactDto.js';
|
|
7
|
+
export interface AppReleaseImpactDtoDataArrayEnvelope {
|
|
8
|
+
data: AppReleaseImpactDto[];
|
|
9
|
+
}
|
|
@@ -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
|
+
import type { AppReleaseDto } from './appReleaseDto.js';
|
|
7
|
+
import type { AppReleaseRequestDtoStatus } from './appReleaseRequestDtoStatus.js';
|
|
8
|
+
export interface AppReleaseRequestDto {
|
|
9
|
+
/** @nullable */
|
|
10
|
+
requestId?: string | null;
|
|
11
|
+
status: AppReleaseRequestDtoStatus;
|
|
12
|
+
decisionId?: string;
|
|
13
|
+
denialReason?: string;
|
|
14
|
+
release?: AppReleaseDto;
|
|
15
|
+
}
|
|
@@ -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 { AppReleaseRequestDto } from './appReleaseRequestDto.js';
|
|
7
|
+
export interface AppReleaseRequestDtoDataEnvelope {
|
|
8
|
+
data: AppReleaseRequestDto;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
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 AppReleaseRequestDtoStatus = typeof AppReleaseRequestDtoStatus[keyof typeof AppReleaseRequestDtoStatus];
|
|
7
|
+
export declare const AppReleaseRequestDtoStatus: {
|
|
8
|
+
readonly 'pending-decision': "pending-decision";
|
|
9
|
+
readonly promoted: "promoted";
|
|
10
|
+
readonly denied: "denied";
|
|
11
|
+
};
|
|
@@ -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.AppReleaseRequestDtoStatus = void 0;
|
|
9
|
+
exports.AppReleaseRequestDtoStatus = {
|
|
10
|
+
'pending-decision': 'pending-decision',
|
|
11
|
+
promoted: 'promoted',
|
|
12
|
+
denied: 'denied',
|
|
13
|
+
};
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* OpenAPI spec version: 0.1.2
|
|
5
5
|
*/
|
|
6
6
|
import type { AudienceKind } from './audienceKind.js';
|
|
7
|
-
import type { AudiencePolicyDtoRateLimitPerHourPerSubject } from './audiencePolicyDtoRateLimitPerHourPerSubject.js';
|
|
8
7
|
import type { AudienceUpstreamDto } from './audienceUpstreamDto.js';
|
|
9
8
|
export interface AudiencePolicyDto {
|
|
10
9
|
id: string;
|
|
@@ -12,8 +11,10 @@ export interface AudiencePolicyDto {
|
|
|
12
11
|
kind: AudienceKind;
|
|
13
12
|
allowedEnvironments: string[];
|
|
14
13
|
authUpstream?: AudienceUpstreamDto | null;
|
|
15
|
-
/**
|
|
16
|
-
rateLimitPerHourPerSubject
|
|
14
|
+
/** Session opens per hour for ONE identified external subject. Never null: a null used to mean "no limit", so an audience created without one was uncapped while reading as configured. */
|
|
15
|
+
rateLimitPerHourPerSubject: number;
|
|
16
|
+
/** Session opens per hour for the whole AppClient, across subjects. This is the cap the ANONYMOUS door is measured against — an anon subject is minted fresh on every call, so no per-subject bucket can bound it. */
|
|
17
|
+
rateLimitPerHourPerClient: number;
|
|
17
18
|
createdAt: string;
|
|
18
19
|
updatedAt: string;
|
|
19
20
|
}
|
|
@@ -7,8 +7,6 @@ import type { BiomeInstallDtoConfiguration } from './biomeInstallDtoConfiguratio
|
|
|
7
7
|
export interface BiomeInstallDto {
|
|
8
8
|
/** Canonical XemaObjectRef for the biome (e.g. `xema://system/biome/document-buddy`). */
|
|
9
9
|
biomeRef: string;
|
|
10
|
-
/** Semver-range string (`^1.2.0`, `~1.2.0`, `1.2.0`, `latest-compatible`). */
|
|
11
|
-
versionConstraint: string;
|
|
12
10
|
/** Free-form per-install configuration the biome consumes. */
|
|
13
11
|
configuration?: BiomeInstallDtoConfiguration;
|
|
14
12
|
}
|
|
@@ -10,6 +10,8 @@ export interface CreateAudiencePolicyDto {
|
|
|
10
10
|
/** ExecutionEnvironmentRef slugs this audience may invoke. Required. */
|
|
11
11
|
allowedEnvironments: string[];
|
|
12
12
|
authUpstream?: AudienceUpstreamDto;
|
|
13
|
-
/**
|
|
13
|
+
/** Session opens per hour for ONE identified external subject. Omitted means the column default, NOT "unlimited" — there is no value that means unlimited. */
|
|
14
14
|
rateLimitPerHourPerSubject?: number;
|
|
15
|
+
/** Session opens per hour for the whole AppClient, across subjects. This is the cap the ANONYMOUS door is measured against — an anon subject is minted fresh on every call, so no per-subject bucket can bound it. Omitted means the column default, NOT "unlimited". */
|
|
16
|
+
rateLimitPerHourPerClient?: number;
|
|
15
17
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -15,21 +15,36 @@ export * from './appLockfileDtoSkills';
|
|
|
15
15
|
export * from './appLockfileDtoWorkflows';
|
|
16
16
|
export * from './appReleaseDto';
|
|
17
17
|
export * from './appReleaseDtoAudienceSnapshot';
|
|
18
|
-
export * from './
|
|
18
|
+
export * from './appReleaseDtoCompatibilityEvidence';
|
|
19
19
|
export * from './appReleaseDtoDataEnvelope';
|
|
20
20
|
export * from './appReleaseDtoDefinition';
|
|
21
|
+
export * from './appReleaseDtoDependenciesItem';
|
|
21
22
|
export * from './appReleaseDtoPolicySnapshot';
|
|
23
|
+
export * from './appReleaseDtoProvenanceEvidence';
|
|
24
|
+
export * from './appReleaseDtoRelease';
|
|
25
|
+
export * from './appReleaseDtoReleasePolicyEvidence';
|
|
22
26
|
export * from './appReleaseDtoSchemaPlan';
|
|
27
|
+
export * from './appReleaseDtoSignatureEvidence';
|
|
23
28
|
export * from './appReleaseDtoSourceArtifacts';
|
|
24
|
-
export * from './
|
|
29
|
+
export * from './appReleaseHistoryDto';
|
|
30
|
+
export * from './appReleaseHistoryDtoDataArrayEnvelope';
|
|
31
|
+
export * from './appReleaseHistoryDtoOperation';
|
|
32
|
+
export * from './appReleaseHistoryDtoTarget';
|
|
33
|
+
export * from './appReleaseImpactDto';
|
|
34
|
+
export * from './appReleaseImpactDtoDataArrayEnvelope';
|
|
35
|
+
export * from './appReleaseImpactDtoOwnerSpaceRef';
|
|
36
|
+
export * from './appReleaseImpactDtoTarget';
|
|
37
|
+
export * from './appReleaseRequestDto';
|
|
38
|
+
export * from './appReleaseRequestDtoDataEnvelope';
|
|
39
|
+
export * from './appReleaseRequestDtoStatus';
|
|
25
40
|
export * from './appReleasesControllerGetActiveParams';
|
|
26
41
|
export * from './appReleasesControllerListHistoryParams';
|
|
42
|
+
export * from './appReleasesControllerPreviewImpactParams';
|
|
27
43
|
export * from './appsControllerListParams';
|
|
28
44
|
export * from './audienceKind';
|
|
29
45
|
export * from './audiencePolicyDto';
|
|
30
46
|
export * from './audiencePolicyDtoDataArrayEnvelope';
|
|
31
47
|
export * from './audiencePolicyDtoDataEnvelope';
|
|
32
|
-
export * from './audiencePolicyDtoRateLimitPerHourPerSubject';
|
|
33
48
|
export * from './audienceUpstreamDto';
|
|
34
49
|
export * from './audienceUpstreamDtoMetadata';
|
|
35
50
|
export * from './audienceUpstreamType';
|
|
@@ -51,20 +66,26 @@ export * from './errorDetailsDto';
|
|
|
51
66
|
export * from './errorDetailsDtoDetails';
|
|
52
67
|
export * from './errorPayloadDto';
|
|
53
68
|
export * from './errorResponseDto';
|
|
69
|
+
export * from './internalAppReleaseActionDto';
|
|
54
70
|
export * from './objectLifecycle';
|
|
55
71
|
export * from './prepareAppReleaseDto';
|
|
56
72
|
export * from './prepareAppReleaseDtoAudienceSnapshot';
|
|
73
|
+
export * from './prepareAppReleaseDtoCompatibilityEvidence';
|
|
57
74
|
export * from './prepareAppReleaseDtoDefinition';
|
|
75
|
+
export * from './prepareAppReleaseDtoDependenciesItem';
|
|
58
76
|
export * from './prepareAppReleaseDtoPolicySnapshot';
|
|
77
|
+
export * from './prepareAppReleaseDtoProvenanceEvidence';
|
|
78
|
+
export * from './prepareAppReleaseDtoReleasePolicyEvidence';
|
|
59
79
|
export * from './prepareAppReleaseDtoSchemaPlan';
|
|
80
|
+
export * from './prepareAppReleaseDtoSignatureEvidence';
|
|
60
81
|
export * from './prepareAppReleaseDtoSourceArtifacts';
|
|
61
|
-
export * from './
|
|
82
|
+
export * from './requestAppReleaseDto';
|
|
62
83
|
export * from './resourceManagedBy';
|
|
84
|
+
export * from './rollbackAppReleaseDto';
|
|
63
85
|
export * from './spaceKind';
|
|
64
86
|
export * from './surfaceKind';
|
|
65
87
|
export * from './updateAppDto';
|
|
66
88
|
export * from './updateAudiencePolicyDto';
|
|
67
|
-
export * from './updateAudiencePolicyDtoRateLimitPerHourPerSubject';
|
|
68
89
|
export * from './xemaObjectKind';
|
|
69
90
|
export * from './xemaObjectResponseDto';
|
|
70
91
|
export * from './xemaObjectResponseDtoPayload';
|
package/dist/models/index.js
CHANGED
|
@@ -32,21 +32,36 @@ __exportStar(require("./appLockfileDtoSkills"), exports);
|
|
|
32
32
|
__exportStar(require("./appLockfileDtoWorkflows"), exports);
|
|
33
33
|
__exportStar(require("./appReleaseDto"), exports);
|
|
34
34
|
__exportStar(require("./appReleaseDtoAudienceSnapshot"), exports);
|
|
35
|
-
__exportStar(require("./
|
|
35
|
+
__exportStar(require("./appReleaseDtoCompatibilityEvidence"), exports);
|
|
36
36
|
__exportStar(require("./appReleaseDtoDataEnvelope"), exports);
|
|
37
37
|
__exportStar(require("./appReleaseDtoDefinition"), exports);
|
|
38
|
+
__exportStar(require("./appReleaseDtoDependenciesItem"), exports);
|
|
38
39
|
__exportStar(require("./appReleaseDtoPolicySnapshot"), exports);
|
|
40
|
+
__exportStar(require("./appReleaseDtoProvenanceEvidence"), exports);
|
|
41
|
+
__exportStar(require("./appReleaseDtoRelease"), exports);
|
|
42
|
+
__exportStar(require("./appReleaseDtoReleasePolicyEvidence"), exports);
|
|
39
43
|
__exportStar(require("./appReleaseDtoSchemaPlan"), exports);
|
|
44
|
+
__exportStar(require("./appReleaseDtoSignatureEvidence"), exports);
|
|
40
45
|
__exportStar(require("./appReleaseDtoSourceArtifacts"), exports);
|
|
41
|
-
__exportStar(require("./
|
|
46
|
+
__exportStar(require("./appReleaseHistoryDto"), exports);
|
|
47
|
+
__exportStar(require("./appReleaseHistoryDtoDataArrayEnvelope"), exports);
|
|
48
|
+
__exportStar(require("./appReleaseHistoryDtoOperation"), exports);
|
|
49
|
+
__exportStar(require("./appReleaseHistoryDtoTarget"), exports);
|
|
50
|
+
__exportStar(require("./appReleaseImpactDto"), exports);
|
|
51
|
+
__exportStar(require("./appReleaseImpactDtoDataArrayEnvelope"), exports);
|
|
52
|
+
__exportStar(require("./appReleaseImpactDtoOwnerSpaceRef"), exports);
|
|
53
|
+
__exportStar(require("./appReleaseImpactDtoTarget"), exports);
|
|
54
|
+
__exportStar(require("./appReleaseRequestDto"), exports);
|
|
55
|
+
__exportStar(require("./appReleaseRequestDtoDataEnvelope"), exports);
|
|
56
|
+
__exportStar(require("./appReleaseRequestDtoStatus"), exports);
|
|
42
57
|
__exportStar(require("./appReleasesControllerGetActiveParams"), exports);
|
|
43
58
|
__exportStar(require("./appReleasesControllerListHistoryParams"), exports);
|
|
59
|
+
__exportStar(require("./appReleasesControllerPreviewImpactParams"), exports);
|
|
44
60
|
__exportStar(require("./appsControllerListParams"), exports);
|
|
45
61
|
__exportStar(require("./audienceKind"), exports);
|
|
46
62
|
__exportStar(require("./audiencePolicyDto"), exports);
|
|
47
63
|
__exportStar(require("./audiencePolicyDtoDataArrayEnvelope"), exports);
|
|
48
64
|
__exportStar(require("./audiencePolicyDtoDataEnvelope"), exports);
|
|
49
|
-
__exportStar(require("./audiencePolicyDtoRateLimitPerHourPerSubject"), exports);
|
|
50
65
|
__exportStar(require("./audienceUpstreamDto"), exports);
|
|
51
66
|
__exportStar(require("./audienceUpstreamDtoMetadata"), exports);
|
|
52
67
|
__exportStar(require("./audienceUpstreamType"), exports);
|
|
@@ -68,20 +83,26 @@ __exportStar(require("./errorDetailsDto"), exports);
|
|
|
68
83
|
__exportStar(require("./errorDetailsDtoDetails"), exports);
|
|
69
84
|
__exportStar(require("./errorPayloadDto"), exports);
|
|
70
85
|
__exportStar(require("./errorResponseDto"), exports);
|
|
86
|
+
__exportStar(require("./internalAppReleaseActionDto"), exports);
|
|
71
87
|
__exportStar(require("./objectLifecycle"), exports);
|
|
72
88
|
__exportStar(require("./prepareAppReleaseDto"), exports);
|
|
73
89
|
__exportStar(require("./prepareAppReleaseDtoAudienceSnapshot"), exports);
|
|
90
|
+
__exportStar(require("./prepareAppReleaseDtoCompatibilityEvidence"), exports);
|
|
74
91
|
__exportStar(require("./prepareAppReleaseDtoDefinition"), exports);
|
|
92
|
+
__exportStar(require("./prepareAppReleaseDtoDependenciesItem"), exports);
|
|
75
93
|
__exportStar(require("./prepareAppReleaseDtoPolicySnapshot"), exports);
|
|
94
|
+
__exportStar(require("./prepareAppReleaseDtoProvenanceEvidence"), exports);
|
|
95
|
+
__exportStar(require("./prepareAppReleaseDtoReleasePolicyEvidence"), exports);
|
|
76
96
|
__exportStar(require("./prepareAppReleaseDtoSchemaPlan"), exports);
|
|
97
|
+
__exportStar(require("./prepareAppReleaseDtoSignatureEvidence"), exports);
|
|
77
98
|
__exportStar(require("./prepareAppReleaseDtoSourceArtifacts"), exports);
|
|
78
|
-
__exportStar(require("./
|
|
99
|
+
__exportStar(require("./requestAppReleaseDto"), exports);
|
|
79
100
|
__exportStar(require("./resourceManagedBy"), exports);
|
|
101
|
+
__exportStar(require("./rollbackAppReleaseDto"), exports);
|
|
80
102
|
__exportStar(require("./spaceKind"), exports);
|
|
81
103
|
__exportStar(require("./surfaceKind"), exports);
|
|
82
104
|
__exportStar(require("./updateAppDto"), exports);
|
|
83
105
|
__exportStar(require("./updateAudiencePolicyDto"), exports);
|
|
84
|
-
__exportStar(require("./updateAudiencePolicyDtoRateLimitPerHourPerSubject"), exports);
|
|
85
106
|
__exportStar(require("./xemaObjectKind"), exports);
|
|
86
107
|
__exportStar(require("./xemaObjectResponseDto"), exports);
|
|
87
108
|
__exportStar(require("./xemaObjectResponseDtoPayload"), exports);
|
|
@@ -6,9 +6,14 @@
|
|
|
6
6
|
import type { AppLockfileDto } from './appLockfileDto.js';
|
|
7
7
|
import type { CodedReleaseRuntimeDto } from './codedReleaseRuntimeDto.js';
|
|
8
8
|
import type { PrepareAppReleaseDtoAudienceSnapshot } from './prepareAppReleaseDtoAudienceSnapshot.js';
|
|
9
|
+
import type { PrepareAppReleaseDtoCompatibilityEvidence } from './prepareAppReleaseDtoCompatibilityEvidence.js';
|
|
9
10
|
import type { PrepareAppReleaseDtoDefinition } from './prepareAppReleaseDtoDefinition.js';
|
|
11
|
+
import type { PrepareAppReleaseDtoDependenciesItem } from './prepareAppReleaseDtoDependenciesItem.js';
|
|
10
12
|
import type { PrepareAppReleaseDtoPolicySnapshot } from './prepareAppReleaseDtoPolicySnapshot.js';
|
|
13
|
+
import type { PrepareAppReleaseDtoProvenanceEvidence } from './prepareAppReleaseDtoProvenanceEvidence.js';
|
|
14
|
+
import type { PrepareAppReleaseDtoReleasePolicyEvidence } from './prepareAppReleaseDtoReleasePolicyEvidence.js';
|
|
11
15
|
import type { PrepareAppReleaseDtoSchemaPlan } from './prepareAppReleaseDtoSchemaPlan.js';
|
|
16
|
+
import type { PrepareAppReleaseDtoSignatureEvidence } from './prepareAppReleaseDtoSignatureEvidence.js';
|
|
12
17
|
import type { PrepareAppReleaseDtoSourceArtifacts } from './prepareAppReleaseDtoSourceArtifacts.js';
|
|
13
18
|
export interface PrepareAppReleaseDto {
|
|
14
19
|
orgId: string;
|
|
@@ -25,6 +30,11 @@ export interface PrepareAppReleaseDto {
|
|
|
25
30
|
sourceArtifacts: PrepareAppReleaseDtoSourceArtifacts;
|
|
26
31
|
audienceSnapshot: PrepareAppReleaseDtoAudienceSnapshot;
|
|
27
32
|
policySnapshot: PrepareAppReleaseDtoPolicySnapshot;
|
|
33
|
+
dependencies: PrepareAppReleaseDtoDependenciesItem[];
|
|
34
|
+
signatureEvidence: PrepareAppReleaseDtoSignatureEvidence;
|
|
35
|
+
provenanceEvidence: PrepareAppReleaseDtoProvenanceEvidence;
|
|
36
|
+
compatibilityEvidence: PrepareAppReleaseDtoCompatibilityEvidence;
|
|
37
|
+
releasePolicyEvidence: PrepareAppReleaseDtoReleasePolicyEvidence;
|
|
28
38
|
/** 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
39
|
codedRuntime?: CodedReleaseRuntimeDto;
|
|
30
40
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
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 RollbackAppReleaseDto {
|
|
7
|
+
expectedChannelVersion: number;
|
|
8
|
+
reason: string;
|
|
9
|
+
orgId: string;
|
|
10
|
+
priorReleaseSetId: string;
|
|
11
|
+
}
|
|
@@ -4,10 +4,9 @@
|
|
|
4
4
|
* OpenAPI spec version: 0.1.2
|
|
5
5
|
*/
|
|
6
6
|
import type { AudienceUpstreamDto } from './audienceUpstreamDto.js';
|
|
7
|
-
import type { UpdateAudiencePolicyDtoRateLimitPerHourPerSubject } from './updateAudiencePolicyDtoRateLimitPerHourPerSubject.js';
|
|
8
7
|
export interface UpdateAudiencePolicyDto {
|
|
9
8
|
allowedEnvironments?: string[];
|
|
10
9
|
authUpstream?: AudienceUpstreamDto | null;
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
rateLimitPerHourPerSubject?: number;
|
|
11
|
+
rateLimitPerHourPerClient?: number;
|
|
13
12
|
}
|
|
@@ -27,10 +27,10 @@ export declare const XemaObjectKind: {
|
|
|
27
27
|
readonly 'mount-source': "mount-source";
|
|
28
28
|
readonly 'artifact-type': "artifact-type";
|
|
29
29
|
readonly artifact: "artifact";
|
|
30
|
+
readonly 'output-route': "output-route";
|
|
31
|
+
readonly resource: "resource";
|
|
30
32
|
readonly 'knowledge-space': "knowledge-space";
|
|
31
33
|
readonly 'knowledge-page': "knowledge-page";
|
|
32
|
-
readonly 'document-template': "document-template";
|
|
33
|
-
readonly 'document-theme': "document-theme";
|
|
34
34
|
readonly 'chart-runtime': "chart-runtime";
|
|
35
35
|
readonly 'presentation-runtime': "presentation-runtime";
|
|
36
36
|
readonly 'widget-kind': "widget-kind";
|
|
@@ -26,10 +26,10 @@ exports.XemaObjectKind = {
|
|
|
26
26
|
'mount-source': 'mount-source',
|
|
27
27
|
'artifact-type': 'artifact-type',
|
|
28
28
|
artifact: 'artifact',
|
|
29
|
+
'output-route': 'output-route',
|
|
30
|
+
resource: 'resource',
|
|
29
31
|
'knowledge-space': 'knowledge-space',
|
|
30
32
|
'knowledge-page': 'knowledge-page',
|
|
31
|
-
'document-template': 'document-template',
|
|
32
|
-
'document-theme': 'document-theme',
|
|
33
33
|
'chart-runtime': 'chart-runtime',
|
|
34
34
|
'presentation-runtime': 'presentation-runtime',
|
|
35
35
|
'widget-kind': 'widget-kind',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xemahq/app-platform-internal-api-client",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.19",
|
|
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.
|
|
22
|
+
"generator": "@xemahq/api-client-generator@0.15.0",
|
|
23
23
|
"source": "openapi.internal.json"
|
|
24
24
|
},
|
|
25
25
|
"license": "LicenseRef-Xema-BSL-1.1",
|
|
@@ -1,9 +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
|
-
import type { AppReleaseDto } from './appReleaseDto.js';
|
|
7
|
-
export interface AppReleaseDtoDataArrayEnvelope {
|
|
8
|
-
data: AppReleaseDto[];
|
|
9
|
-
}
|
|
@@ -1,14 +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
|
-
export type AppReleaseState = typeof AppReleaseState[keyof typeof AppReleaseState];
|
|
7
|
-
export declare const AppReleaseState: {
|
|
8
|
-
readonly preparing: "preparing";
|
|
9
|
-
readonly prepared: "prepared";
|
|
10
|
-
readonly activating: "activating";
|
|
11
|
-
readonly active: "active";
|
|
12
|
-
readonly superseded: "superseded";
|
|
13
|
-
readonly failed: "failed";
|
|
14
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
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.AppReleaseState = void 0;
|
|
9
|
-
exports.AppReleaseState = {
|
|
10
|
-
preparing: 'preparing',
|
|
11
|
-
prepared: 'prepared',
|
|
12
|
-
activating: 'activating',
|
|
13
|
-
active: 'active',
|
|
14
|
-
superseded: 'superseded',
|
|
15
|
-
failed: 'failed',
|
|
16
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|