@alienplatform/manager-api 1.7.1 → 1.9.0
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/esm/funcs/deploymentsListDeployments.js +1 -0
- package/esm/funcs/deploymentsListDeployments.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/acquirerequest.d.ts +4 -0
- package/esm/models/acquirerequest.d.ts.map +1 -1
- package/esm/models/acquirerequest.js +2 -0
- package/esm/models/acquirerequest.js.map +1 -1
- package/esm/models/computepoolselection.d.ts +73 -0
- package/esm/models/computepoolselection.d.ts.map +1 -0
- package/esm/models/computepoolselection.js +60 -0
- package/esm/models/computepoolselection.js.map +1 -0
- package/esm/models/computesettings.d.ts +34 -0
- package/esm/models/computesettings.d.ts.map +1 -0
- package/esm/models/computesettings.js +21 -0
- package/esm/models/computesettings.js.map +1 -0
- package/esm/models/createreleaserequest.d.ts +7 -0
- package/esm/models/createreleaserequest.d.ts.map +1 -1
- package/esm/models/createreleaserequest.js.map +1 -1
- package/esm/models/deploymentgroupresponse.d.ts +12 -0
- package/esm/models/deploymentgroupresponse.d.ts.map +1 -1
- package/esm/models/deploymentgroupresponse.js +2 -0
- package/esm/models/deploymentgroupresponse.js.map +1 -1
- package/esm/models/deploymentresponse.d.ts +20 -0
- package/esm/models/deploymentresponse.d.ts.map +1 -1
- package/esm/models/deploymentresponse.js +3 -0
- package/esm/models/deploymentresponse.js.map +1 -1
- package/esm/models/index.d.ts +2 -0
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +2 -0
- package/esm/models/index.js.map +1 -1
- package/esm/models/initializerequest.d.ts +13 -0
- package/esm/models/initializerequest.d.ts.map +1 -1
- package/esm/models/initializerequest.js +1 -0
- package/esm/models/initializerequest.js.map +1 -1
- package/esm/models/operations/listdeployments.d.ts +5 -0
- package/esm/models/operations/listdeployments.d.ts.map +1 -1
- package/esm/models/operations/listdeployments.js +1 -0
- package/esm/models/operations/listdeployments.js.map +1 -1
- package/esm/models/releaseresponse.d.ts +12 -0
- package/esm/models/releaseresponse.d.ts.map +1 -1
- package/esm/models/releaseresponse.js +1 -0
- package/esm/models/releaseresponse.js.map +1 -1
- package/esm/models/stackimportrequest.d.ts +14 -0
- package/esm/models/stackimportrequest.d.ts.map +1 -1
- package/esm/models/stackimportrequest.js +1 -0
- package/esm/models/stackimportrequest.js.map +1 -1
- package/esm/models/stacksettings.d.ts +3 -0
- package/esm/models/stacksettings.d.ts.map +1 -1
- package/esm/models/stacksettings.js +3 -0
- package/esm/models/stacksettings.js.map +1 -1
- package/esm/models/whoamiresponse.d.ts +7 -0
- package/esm/models/whoamiresponse.d.ts.map +1 -1
- package/esm/models/whoamiresponse.js +1 -0
- package/esm/models/whoamiresponse.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +3 -3
- package/src/funcs/deploymentsListDeployments.ts +1 -0
- package/src/lib/config.ts +2 -2
- package/src/models/acquirerequest.ts +6 -0
- package/src/models/computepoolselection.ts +179 -0
- package/src/models/computesettings.ts +65 -0
- package/src/models/createreleaserequest.ts +7 -0
- package/src/models/deploymentgroupresponse.ts +14 -0
- package/src/models/deploymentresponse.ts +23 -0
- package/src/models/index.ts +2 -0
- package/src/models/initializerequest.ts +10 -0
- package/src/models/operations/listdeployments.ts +6 -0
- package/src/models/releaseresponse.ts +11 -0
- package/src/models/stackimportrequest.ts +11 -0
- package/src/models/stacksettings.ts +10 -0
- package/src/models/whoamiresponse.ts +8 -0
|
@@ -21,6 +21,14 @@ export type DeploymentResponse = {
|
|
|
21
21
|
currentReleaseId?: string | null | undefined;
|
|
22
22
|
deploymentGroup?: DeploymentGroupMinimal | null | undefined;
|
|
23
23
|
deploymentGroupId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Required by the platform-SDK Deployment schema. Hard-coded to
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* alien-core's `CURRENT_DEPLOYMENT_PROTOCOL_VERSION` so the CLI
|
|
29
|
+
* accepts the response.
|
|
30
|
+
*/
|
|
31
|
+
deploymentProtocolVersion: number;
|
|
24
32
|
desiredReleaseId?: string | null | undefined;
|
|
25
33
|
environmentInfo?: any | undefined;
|
|
26
34
|
error?: any | undefined;
|
|
@@ -31,12 +39,24 @@ export type DeploymentResponse = {
|
|
|
31
39
|
* Represents the target cloud platform.
|
|
32
40
|
*/
|
|
33
41
|
platform: PlatformEnum;
|
|
42
|
+
/**
|
|
43
|
+
* Required by the platform-SDK Deployment schema. Standalone is
|
|
44
|
+
*
|
|
45
|
+
* @remarks
|
|
46
|
+
* single-tenant; reuse the same synthetic project id used in the
|
|
47
|
+
* deployment-groups route.
|
|
48
|
+
*/
|
|
49
|
+
projectId: string;
|
|
34
50
|
retryRequested: boolean;
|
|
35
51
|
runtimeMetadata?: any | undefined;
|
|
36
52
|
stackSettings?: any | undefined;
|
|
37
53
|
stackState?: any | undefined;
|
|
38
54
|
status: string;
|
|
39
55
|
updatedAt?: string | null | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Required by the platform-SDK Deployment schema.
|
|
58
|
+
*/
|
|
59
|
+
workspaceId: string;
|
|
40
60
|
};
|
|
41
61
|
|
|
42
62
|
/** @internal */
|
|
@@ -48,6 +68,7 @@ export const DeploymentResponse$inboundSchema: z.ZodType<
|
|
|
48
68
|
currentReleaseId: z.nullable(z.string()).optional(),
|
|
49
69
|
deploymentGroup: z.nullable(DeploymentGroupMinimal$inboundSchema).optional(),
|
|
50
70
|
deploymentGroupId: z.string(),
|
|
71
|
+
deploymentProtocolVersion: z.int(),
|
|
51
72
|
desiredReleaseId: z.nullable(z.string()).optional(),
|
|
52
73
|
environmentInfo: z.any().optional(),
|
|
53
74
|
error: z.any().optional(),
|
|
@@ -55,12 +76,14 @@ export const DeploymentResponse$inboundSchema: z.ZodType<
|
|
|
55
76
|
importSource: z.nullable(ImportSourceKind$inboundSchema).optional(),
|
|
56
77
|
name: z.string(),
|
|
57
78
|
platform: PlatformEnum$inboundSchema,
|
|
79
|
+
projectId: z.string(),
|
|
58
80
|
retryRequested: z.boolean(),
|
|
59
81
|
runtimeMetadata: z.any().optional(),
|
|
60
82
|
stackSettings: z.any().optional(),
|
|
61
83
|
stackState: z.any().optional(),
|
|
62
84
|
status: z.string(),
|
|
63
85
|
updatedAt: z.nullable(z.string()).optional(),
|
|
86
|
+
workspaceId: z.string(),
|
|
64
87
|
});
|
|
65
88
|
|
|
66
89
|
export function deploymentResponseFromJSON(
|
package/src/models/index.ts
CHANGED
|
@@ -38,6 +38,8 @@ export * from "./computecapacitygroupstatus.js";
|
|
|
38
38
|
export * from "./computecapacityrecommendation.js";
|
|
39
39
|
export * from "./computeclusterheartbeatdata.js";
|
|
40
40
|
export * from "./computeclusterheartbeatstatus.js";
|
|
41
|
+
export * from "./computepoolselection.js";
|
|
42
|
+
export * from "./computesettings.js";
|
|
41
43
|
export * from "./containerheartbeatdata.js";
|
|
42
44
|
export * from "./createcommandrequest.js";
|
|
43
45
|
export * from "./createcommandresponse.js";
|
|
@@ -12,6 +12,14 @@ import {
|
|
|
12
12
|
|
|
13
13
|
export type InitializeRequest = {
|
|
14
14
|
basePlatform?: PlatformEnum | null | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Deployer-provided stack inputs. Embedded platform managers resolve
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* these before creating the deployment; standalone managers accept the
|
|
20
|
+
* field so generated setup clients have one stable initialize contract.
|
|
21
|
+
*/
|
|
22
|
+
inputValues?: { [k: string]: any } | undefined;
|
|
15
23
|
name?: string | null | undefined;
|
|
16
24
|
platform?: PlatformEnum | null | undefined;
|
|
17
25
|
stackSettings?: StackSettings | null | undefined;
|
|
@@ -20,6 +28,7 @@ export type InitializeRequest = {
|
|
|
20
28
|
/** @internal */
|
|
21
29
|
export type InitializeRequest$Outbound = {
|
|
22
30
|
basePlatform?: string | null | undefined;
|
|
31
|
+
inputValues?: { [k: string]: any } | undefined;
|
|
23
32
|
name?: string | null | undefined;
|
|
24
33
|
platform?: string | null | undefined;
|
|
25
34
|
stackSettings?: StackSettings$Outbound | null | undefined;
|
|
@@ -31,6 +40,7 @@ export const InitializeRequest$outboundSchema: z.ZodType<
|
|
|
31
40
|
InitializeRequest
|
|
32
41
|
> = z.object({
|
|
33
42
|
basePlatform: z.nullable(PlatformEnum$outboundSchema).optional(),
|
|
43
|
+
inputValues: z.record(z.string(), z.any()).optional(),
|
|
34
44
|
name: z.nullable(z.string()).optional(),
|
|
35
45
|
platform: z.nullable(PlatformEnum$outboundSchema).optional(),
|
|
36
46
|
stackSettings: z.nullable(StackSettings$outboundSchema).optional(),
|
|
@@ -9,6 +9,10 @@ export type ListDeploymentsRequest = {
|
|
|
9
9
|
* Filter by deployment group ID
|
|
10
10
|
*/
|
|
11
11
|
deploymentGroupId?: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Filter by exact deployment name. Requires deploymentGroupId unless the token is scoped to a deployment group.
|
|
14
|
+
*/
|
|
15
|
+
name?: string | undefined;
|
|
12
16
|
/**
|
|
13
17
|
* Include related resources (e.g. deploymentGroup)
|
|
14
18
|
*/
|
|
@@ -18,6 +22,7 @@ export type ListDeploymentsRequest = {
|
|
|
18
22
|
/** @internal */
|
|
19
23
|
export type ListDeploymentsRequest$Outbound = {
|
|
20
24
|
deploymentGroupId?: string | undefined;
|
|
25
|
+
name?: string | undefined;
|
|
21
26
|
include?: Array<string> | undefined;
|
|
22
27
|
};
|
|
23
28
|
|
|
@@ -27,6 +32,7 @@ export const ListDeploymentsRequest$outboundSchema: z.ZodType<
|
|
|
27
32
|
ListDeploymentsRequest
|
|
28
33
|
> = z.object({
|
|
29
34
|
deploymentGroupId: z.string().optional(),
|
|
35
|
+
name: z.string().optional(),
|
|
30
36
|
include: z.array(z.string()).optional(),
|
|
31
37
|
});
|
|
32
38
|
|
|
@@ -20,6 +20,16 @@ export type ReleaseResponse = {
|
|
|
20
20
|
gitMetadata?: GitMetadataResponse | null | undefined;
|
|
21
21
|
id: string;
|
|
22
22
|
projectId: string;
|
|
23
|
+
/**
|
|
24
|
+
* Setup-step fingerprints — used by `alien release` to short-circuit
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* re-pushing artifacts that haven't changed across releases. The
|
|
28
|
+
* platform-API client requires this field to be present (even if
|
|
29
|
+
* empty). The OSS standalone manager doesn't track per-setup-step
|
|
30
|
+
* fingerprints, so we return an empty map.
|
|
31
|
+
*/
|
|
32
|
+
setupFingerprints?: { [k: string]: any } | undefined;
|
|
23
33
|
/**
|
|
24
34
|
* The release API accepts stacks keyed by platform.
|
|
25
35
|
*
|
|
@@ -39,6 +49,7 @@ export const ReleaseResponse$inboundSchema: z.ZodType<
|
|
|
39
49
|
gitMetadata: z.nullable(GitMetadataResponse$inboundSchema).optional(),
|
|
40
50
|
id: z.string(),
|
|
41
51
|
projectId: z.string(),
|
|
52
|
+
setupFingerprints: z.record(z.string(), z.any()).optional(),
|
|
42
53
|
stack: StackByPlatform$inboundSchema,
|
|
43
54
|
workspaceId: z.string(),
|
|
44
55
|
});
|
|
@@ -44,6 +44,15 @@ export type StackImportRequest = {
|
|
|
44
44
|
* `name` attribute on the `alien_deployment` resource.
|
|
45
45
|
*/
|
|
46
46
|
deploymentName: string;
|
|
47
|
+
/**
|
|
48
|
+
* Deployer-provided stack input values collected by generated setup
|
|
49
|
+
*
|
|
50
|
+
* @remarks
|
|
51
|
+
* surfaces. Platform-backed managers resolve these into runtime
|
|
52
|
+
* environment variables before deployment creation; standalone managers
|
|
53
|
+
* accept the field for setup package compatibility.
|
|
54
|
+
*/
|
|
55
|
+
inputValues?: { [k: string]: any } | undefined;
|
|
47
56
|
managementConfig?: ManagementConfig | null | undefined;
|
|
48
57
|
/**
|
|
49
58
|
* Represents the target cloud platform.
|
|
@@ -116,6 +125,7 @@ export type StackImportRequest$Outbound = {
|
|
|
116
125
|
basePlatform?: string | null | undefined;
|
|
117
126
|
deploymentGroupToken: string;
|
|
118
127
|
deploymentName: string;
|
|
128
|
+
inputValues?: { [k: string]: any } | undefined;
|
|
119
129
|
managementConfig?: ManagementConfig$Outbound | null | undefined;
|
|
120
130
|
platform: string;
|
|
121
131
|
region: string;
|
|
@@ -139,6 +149,7 @@ export const StackImportRequest$outboundSchema: z.ZodType<
|
|
|
139
149
|
basePlatform: z.nullable(PlatformEnum$outboundSchema).optional(),
|
|
140
150
|
deploymentGroupToken: z.string(),
|
|
141
151
|
deploymentName: z.string(),
|
|
152
|
+
inputValues: z.record(z.string(), z.any()).optional(),
|
|
142
153
|
managementConfig: z.nullable(ManagementConfig$outboundSchema).optional(),
|
|
143
154
|
platform: PlatformEnum$outboundSchema,
|
|
144
155
|
region: z.string(),
|
|
@@ -5,6 +5,12 @@
|
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { safeParse } from "../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import {
|
|
9
|
+
ComputeSettings,
|
|
10
|
+
ComputeSettings$inboundSchema,
|
|
11
|
+
ComputeSettings$Outbound,
|
|
12
|
+
ComputeSettings$outboundSchema,
|
|
13
|
+
} from "./computesettings.js";
|
|
8
14
|
import {
|
|
9
15
|
DeploymentModel,
|
|
10
16
|
DeploymentModel$inboundSchema,
|
|
@@ -68,6 +74,7 @@ export type ExternalBindings = {};
|
|
|
68
74
|
* is platform-derived (from the Manager's ServiceAccount).
|
|
69
75
|
*/
|
|
70
76
|
export type StackSettings = {
|
|
77
|
+
compute?: ComputeSettings | null | undefined;
|
|
71
78
|
/**
|
|
72
79
|
* Deployment model: how updates are delivered to the remote environment.
|
|
73
80
|
*/
|
|
@@ -132,6 +139,7 @@ export function externalBindingsFromJSON(
|
|
|
132
139
|
/** @internal */
|
|
133
140
|
export const StackSettings$inboundSchema: z.ZodType<StackSettings, unknown> = z
|
|
134
141
|
.object({
|
|
142
|
+
compute: z.nullable(ComputeSettings$inboundSchema).optional(),
|
|
135
143
|
deploymentModel: DeploymentModel$inboundSchema.optional(),
|
|
136
144
|
domains: z.nullable(DomainSettings$inboundSchema).optional(),
|
|
137
145
|
externalBindings: z.nullable(z.lazy(() => ExternalBindings$inboundSchema))
|
|
@@ -144,6 +152,7 @@ export const StackSettings$inboundSchema: z.ZodType<StackSettings, unknown> = z
|
|
|
144
152
|
});
|
|
145
153
|
/** @internal */
|
|
146
154
|
export type StackSettings$Outbound = {
|
|
155
|
+
compute?: ComputeSettings$Outbound | null | undefined;
|
|
147
156
|
deploymentModel?: string | undefined;
|
|
148
157
|
domains?: DomainSettings$Outbound | null | undefined;
|
|
149
158
|
externalBindings?: ExternalBindings$Outbound | null | undefined;
|
|
@@ -159,6 +168,7 @@ export const StackSettings$outboundSchema: z.ZodType<
|
|
|
159
168
|
StackSettings$Outbound,
|
|
160
169
|
StackSettings
|
|
161
170
|
> = z.object({
|
|
171
|
+
compute: z.nullable(ComputeSettings$outboundSchema).optional(),
|
|
162
172
|
deploymentModel: DeploymentModel$outboundSchema.optional(),
|
|
163
173
|
domains: z.nullable(DomainSettings$outboundSchema).optional(),
|
|
164
174
|
externalBindings: z.nullable(z.lazy(() => ExternalBindings$outboundSchema))
|
|
@@ -14,6 +14,13 @@ export type WhoamiResponse = {
|
|
|
14
14
|
role: string;
|
|
15
15
|
scope: ScopeInfo;
|
|
16
16
|
workspaceId: string;
|
|
17
|
+
/**
|
|
18
|
+
* Required by the platform-SDK `ServiceAccountSubject` parser when
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* the CLI looks up a deployment-group token by workspace name.
|
|
22
|
+
*/
|
|
23
|
+
workspaceName: string;
|
|
17
24
|
};
|
|
18
25
|
|
|
19
26
|
/** @internal */
|
|
@@ -24,6 +31,7 @@ export const WhoamiResponse$inboundSchema: z.ZodType<WhoamiResponse, unknown> =
|
|
|
24
31
|
role: z.string(),
|
|
25
32
|
scope: ScopeInfo$inboundSchema,
|
|
26
33
|
workspaceId: z.string(),
|
|
34
|
+
workspaceName: z.string(),
|
|
27
35
|
});
|
|
28
36
|
|
|
29
37
|
export function whoamiResponseFromJSON(
|