@alienplatform/manager-api 3.3.30 → 3.3.31
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/commandsStoreCommandPayload.d.ts +2 -2
- package/esm/funcs/commandsStoreCommandPayload.d.ts.map +1 -1
- package/esm/funcs/commandsStoreCommandPayload.js +8 -4
- package/esm/funcs/commandsStoreCommandPayload.js.map +1 -1
- package/esm/funcs/commandsSubmitResponse.d.ts +2 -2
- package/esm/funcs/commandsSubmitResponse.d.ts.map +1 -1
- package/esm/funcs/commandsSubmitResponse.js +8 -4
- package/esm/funcs/commandsSubmitResponse.js.map +1 -1
- package/esm/funcs/commandsUploadComplete.d.ts +1 -2
- package/esm/funcs/commandsUploadComplete.d.ts.map +1 -1
- package/esm/funcs/commandsUploadComplete.js +8 -4
- package/esm/funcs/commandsUploadComplete.js.map +1 -1
- package/esm/funcs/deploymentsDeleteDeployment.d.ts +1 -2
- package/esm/funcs/deploymentsDeleteDeployment.d.ts.map +1 -1
- package/esm/funcs/deploymentsDeleteDeployment.js +8 -4
- package/esm/funcs/deploymentsDeleteDeployment.js.map +1 -1
- package/esm/funcs/deploymentsImportDeploymentStatus.d.ts +1 -2
- package/esm/funcs/deploymentsImportDeploymentStatus.d.ts.map +1 -1
- package/esm/funcs/deploymentsImportDeploymentStatus.js +8 -4
- package/esm/funcs/deploymentsImportDeploymentStatus.js.map +1 -1
- package/esm/funcs/deploymentsSetDeploymentChannel.d.ts +1 -2
- package/esm/funcs/deploymentsSetDeploymentChannel.d.ts.map +1 -1
- package/esm/funcs/deploymentsSetDeploymentChannel.js +8 -4
- package/esm/funcs/deploymentsSetDeploymentChannel.js.map +1 -1
- package/esm/funcs/deploymentsSetDeploymentPin.d.ts +1 -2
- package/esm/funcs/deploymentsSetDeploymentPin.d.ts.map +1 -1
- package/esm/funcs/deploymentsSetDeploymentPin.js +8 -4
- package/esm/funcs/deploymentsSetDeploymentPin.js.map +1 -1
- package/esm/funcs/deploymentsSignDeploymentBundle.d.ts +1 -2
- package/esm/funcs/deploymentsSignDeploymentBundle.d.ts.map +1 -1
- package/esm/funcs/deploymentsSignDeploymentBundle.js +8 -4
- package/esm/funcs/deploymentsSignDeploymentBundle.js.map +1 -1
- package/esm/funcs/releasesPromoteManagerRelease.d.ts +1 -2
- package/esm/funcs/releasesPromoteManagerRelease.d.ts.map +1 -1
- package/esm/funcs/releasesPromoteManagerRelease.js +8 -4
- package/esm/funcs/releasesPromoteManagerRelease.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/acquireresponse.d.ts +8 -0
- package/esm/models/acquireresponse.d.ts.map +1 -1
- package/esm/models/acquireresponse.js +2 -0
- package/esm/models/acquireresponse.js.map +1 -1
- package/esm/models/bindingvalueoptionstringunion.d.ts +39 -0
- package/esm/models/bindingvalueoptionstringunion.d.ts.map +1 -0
- package/esm/models/bindingvalueoptionstringunion.js +39 -0
- package/esm/models/bindingvalueoptionstringunion.js.map +1 -0
- package/esm/models/bindingvaluestringunion.d.ts +39 -0
- package/esm/models/bindingvaluestringunion.d.ts.map +1 -0
- package/esm/models/bindingvaluestringunion.js +39 -0
- package/esm/models/bindingvaluestringunion.js.map +1 -0
- package/esm/models/bindingvalueu16union.d.ts +39 -0
- package/esm/models/bindingvalueu16union.d.ts.map +1 -0
- package/esm/models/bindingvalueu16union.js +31 -0
- package/esm/models/bindingvalueu16union.js.map +1 -0
- package/esm/models/bindingvalueu8union.d.ts +39 -0
- package/esm/models/bindingvalueu8union.d.ts.map +1 -0
- package/esm/models/bindingvalueu8union.js +31 -0
- package/esm/models/bindingvalueu8union.js.map +1 -0
- package/esm/models/bindingvaluevecstringunion.d.ts +39 -0
- package/esm/models/bindingvaluevecstringunion.d.ts.map +1 -0
- package/esm/models/bindingvaluevecstringunion.js +39 -0
- package/esm/models/bindingvaluevecstringunion.js.map +1 -0
- package/esm/models/deploymentacquireunavailablereason.d.ts +32 -0
- package/esm/models/deploymentacquireunavailablereason.d.ts.map +1 -0
- package/esm/models/deploymentacquireunavailablereason.js +25 -0
- package/esm/models/deploymentacquireunavailablereason.js.map +1 -0
- package/esm/models/externalbindingunion.d.ts +1414 -0
- package/esm/models/externalbindingunion.d.ts.map +1 -0
- package/esm/models/externalbindingunion.js +1075 -0
- package/esm/models/externalbindingunion.js.map +1 -0
- package/esm/models/externalpostgressslmode.d.ts +28 -0
- package/esm/models/externalpostgressslmode.d.ts.map +1 -0
- package/esm/models/externalpostgressslmode.js +21 -0
- package/esm/models/externalpostgressslmode.js.map +1 -0
- package/esm/models/index.d.ts +10 -0
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +10 -0
- package/esm/models/index.js.map +1 -1
- package/esm/models/secretreference.d.ts +22 -0
- package/esm/models/secretreference.d.ts.map +1 -0
- package/esm/models/secretreference.js +22 -0
- package/esm/models/secretreference.js.map +1 -0
- package/esm/models/stacksettings.d.ts +7 -27
- package/esm/models/stacksettings.d.ts.map +1 -1
- package/esm/models/stacksettings.js +3 -14
- package/esm/models/stacksettings.js.map +1 -1
- package/esm/models/unacquireddeployment.d.ts +24 -0
- package/esm/models/unacquireddeployment.d.ts.map +1 -0
- package/esm/models/unacquireddeployment.js +16 -0
- package/esm/models/unacquireddeployment.js.map +1 -0
- package/esm/sdk/commands.d.ts +3 -3
- package/esm/sdk/commands.d.ts.map +1 -1
- package/esm/sdk/commands.js +6 -6
- package/esm/sdk/commands.js.map +1 -1
- package/esm/sdk/deployments.d.ts +5 -5
- package/esm/sdk/deployments.d.ts.map +1 -1
- package/esm/sdk/deployments.js +10 -10
- package/esm/sdk/deployments.js.map +1 -1
- package/esm/sdk/releases.d.ts +1 -1
- package/esm/sdk/releases.d.ts.map +1 -1
- package/esm/sdk/releases.js +2 -2
- package/esm/sdk/releases.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +3 -3
- package/src/funcs/commandsStoreCommandPayload.ts +13 -4
- package/src/funcs/commandsSubmitResponse.ts +13 -4
- package/src/funcs/commandsUploadComplete.ts +12 -4
- package/src/funcs/deploymentsDeleteDeployment.ts +12 -4
- package/src/funcs/deploymentsImportDeploymentStatus.ts +12 -4
- package/src/funcs/deploymentsSetDeploymentChannel.ts +12 -4
- package/src/funcs/deploymentsSetDeploymentPin.ts +12 -4
- package/src/funcs/deploymentsSignDeploymentBundle.ts +12 -4
- package/src/funcs/releasesPromoteManagerRelease.ts +12 -4
- package/src/lib/config.ts +2 -2
- package/src/models/acquireresponse.ts +12 -0
- package/src/models/bindingvalueoptionstringunion.ts +116 -0
- package/src/models/bindingvaluestringunion.ts +111 -0
- package/src/models/bindingvalueu16union.ts +101 -0
- package/src/models/bindingvalueu8union.ts +97 -0
- package/src/models/bindingvaluevecstringunion.ts +114 -0
- package/src/models/deploymentacquireunavailablereason.ts +41 -0
- package/src/models/externalbindingunion.ts +3068 -0
- package/src/models/externalpostgressslmode.ts +39 -0
- package/src/models/index.ts +10 -0
- package/src/models/secretreference.ts +54 -0
- package/src/models/stacksettings.ts +17 -55
- package/src/models/unacquireddeployment.ts +51 -0
- package/src/sdk/commands.ts +12 -6
- package/src/sdk/deployments.ts +20 -10
- package/src/sdk/releases.ts +4 -2
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* TLS policy for an operator-provided / BYO Postgres database.
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
*
|
|
13
|
+
* Unlike libpq's ambiguous `prefer` mode, both choices map exactly to the
|
|
14
|
+
* connection settings exposed by every supported SDK.
|
|
15
|
+
*/
|
|
16
|
+
export const ExternalPostgresSslMode = {
|
|
17
|
+
VerifyFull: "verify-full",
|
|
18
|
+
Disable: "disable",
|
|
19
|
+
} as const;
|
|
20
|
+
/**
|
|
21
|
+
* TLS policy for an operator-provided / BYO Postgres database.
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
*
|
|
25
|
+
* Unlike libpq's ambiguous `prefer` mode, both choices map exactly to the
|
|
26
|
+
* connection settings exposed by every supported SDK.
|
|
27
|
+
*/
|
|
28
|
+
export type ExternalPostgresSslMode = ClosedEnum<
|
|
29
|
+
typeof ExternalPostgresSslMode
|
|
30
|
+
>;
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const ExternalPostgresSslMode$inboundSchema: z.ZodEnum<
|
|
34
|
+
typeof ExternalPostgresSslMode
|
|
35
|
+
> = z.enum(ExternalPostgresSslMode);
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const ExternalPostgresSslMode$outboundSchema: z.ZodEnum<
|
|
38
|
+
typeof ExternalPostgresSslMode
|
|
39
|
+
> = ExternalPostgresSslMode$inboundSchema;
|
package/src/models/index.ts
CHANGED
|
@@ -39,6 +39,11 @@ export * from "./azurestorageaccountendpoints.js";
|
|
|
39
39
|
export * from "./azurestorageaccountheartbeatdata.js";
|
|
40
40
|
export * from "./baseresource.js";
|
|
41
41
|
export * from "./baseresourceoutputs.js";
|
|
42
|
+
export * from "./bindingvalueoptionstringunion.js";
|
|
43
|
+
export * from "./bindingvaluestringunion.js";
|
|
44
|
+
export * from "./bindingvalueu16union.js";
|
|
45
|
+
export * from "./bindingvalueu8union.js";
|
|
46
|
+
export * from "./bindingvaluevecstringunion.js";
|
|
42
47
|
export * from "./bodyspec.js";
|
|
43
48
|
export * from "./buildheartbeatdata.js";
|
|
44
49
|
export * from "./buildheartbeatstatus.js";
|
|
@@ -85,6 +90,7 @@ export * from "./daemonheartbeatdata.js";
|
|
|
85
90
|
export * from "./deletedeploymentaction.js";
|
|
86
91
|
export * from "./deletedeploymentrequest.js";
|
|
87
92
|
export * from "./deletedeploymentresponse.js";
|
|
93
|
+
export * from "./deploymentacquireunavailablereason.js";
|
|
88
94
|
export * from "./deploymentgroupminimal.js";
|
|
89
95
|
export * from "./deploymentgroupresponse.js";
|
|
90
96
|
export * from "./deploymentinforesponse.js";
|
|
@@ -101,6 +107,8 @@ export * from "./environmentvariable.js";
|
|
|
101
107
|
export * from "./environmentvariabletype.js";
|
|
102
108
|
export * from "./executionclaim.js";
|
|
103
109
|
export * from "./exposeprotocol.js";
|
|
110
|
+
export * from "./externalbindingunion.js";
|
|
111
|
+
export * from "./externalpostgressslmode.js";
|
|
104
112
|
export * from "./failuredomainselection.js";
|
|
105
113
|
export * from "./gcpcloudkmskeyheartbeatdata.js";
|
|
106
114
|
export * from "./gcpcredentials.js";
|
|
@@ -256,6 +264,7 @@ export * from "./responsehandling.js";
|
|
|
256
264
|
export * from "./sandboxheartbeatdata.js";
|
|
257
265
|
export * from "./sandboxheartbeatstatus.js";
|
|
258
266
|
export * from "./scopeinfo.js";
|
|
267
|
+
export * from "./secretreference.js";
|
|
259
268
|
export * from "./security.js";
|
|
260
269
|
export * from "./serviceaccountheartbeatdata.js";
|
|
261
270
|
export * from "./serviceaccountheartbeatstatus.js";
|
|
@@ -283,6 +292,7 @@ export * from "./telemetrymode.js";
|
|
|
283
292
|
export * from "./tokenresponse.js";
|
|
284
293
|
export * from "./tooldownload.js";
|
|
285
294
|
export * from "./tracecontext.js";
|
|
295
|
+
export * from "./unacquireddeployment.js";
|
|
286
296
|
export * from "./updatesmode.js";
|
|
287
297
|
export * from "./uploadcompleterequest.js";
|
|
288
298
|
export * from "./uploadcompleteresponse.js";
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Reference to a Kubernetes Secret
|
|
12
|
+
*/
|
|
13
|
+
export type SecretReference = {
|
|
14
|
+
key: string;
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const SecretReference$inboundSchema: z.ZodType<
|
|
20
|
+
SecretReference,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
key: z.string(),
|
|
24
|
+
name: z.string(),
|
|
25
|
+
});
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type SecretReference$Outbound = {
|
|
28
|
+
key: string;
|
|
29
|
+
name: string;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const SecretReference$outboundSchema: z.ZodType<
|
|
34
|
+
SecretReference$Outbound,
|
|
35
|
+
SecretReference
|
|
36
|
+
> = z.object({
|
|
37
|
+
key: z.string(),
|
|
38
|
+
name: z.string(),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export function secretReferenceToJSON(
|
|
42
|
+
secretReference: SecretReference,
|
|
43
|
+
): string {
|
|
44
|
+
return JSON.stringify(SecretReference$outboundSchema.parse(secretReference));
|
|
45
|
+
}
|
|
46
|
+
export function secretReferenceFromJSON(
|
|
47
|
+
jsonString: string,
|
|
48
|
+
): SafeParseResult<SecretReference, SDKValidationError> {
|
|
49
|
+
return safeParse(
|
|
50
|
+
jsonString,
|
|
51
|
+
(x) => SecretReference$inboundSchema.parse(JSON.parse(x)),
|
|
52
|
+
`Failed to parse 'SecretReference' from JSON`,
|
|
53
|
+
);
|
|
54
|
+
}
|
|
@@ -28,6 +28,12 @@ import {
|
|
|
28
28
|
EndpointAccess$outboundSchema,
|
|
29
29
|
} from "./endpointaccess.js";
|
|
30
30
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
31
|
+
import {
|
|
32
|
+
ExternalBindingUnion,
|
|
33
|
+
ExternalBindingUnion$inboundSchema,
|
|
34
|
+
ExternalBindingUnion$Outbound,
|
|
35
|
+
ExternalBindingUnion$outboundSchema,
|
|
36
|
+
} from "./externalbindingunion.js";
|
|
31
37
|
import {
|
|
32
38
|
HeartbeatsMode,
|
|
33
39
|
HeartbeatsMode$inboundSchema,
|
|
@@ -56,16 +62,6 @@ import {
|
|
|
56
62
|
UpdatesMode$outboundSchema,
|
|
57
63
|
} from "./updatesmode.js";
|
|
58
64
|
|
|
59
|
-
/**
|
|
60
|
-
* External bindings for pre-existing infrastructure.
|
|
61
|
-
*
|
|
62
|
-
* @remarks
|
|
63
|
-
* Allows using existing resources (MinIO, Redis, shared Container Apps
|
|
64
|
-
* Environment, etc.) instead of having Alien provision them.
|
|
65
|
-
* Required for Kubernetes platform, optional for cloud platforms.
|
|
66
|
-
*/
|
|
67
|
-
export type ExternalBindings = {};
|
|
68
|
-
|
|
69
65
|
/**
|
|
70
66
|
* User-customizable deployment settings specified at deploy time.
|
|
71
67
|
*
|
|
@@ -89,15 +85,7 @@ export type StackSettings = {
|
|
|
89
85
|
* Reachability of the deployment's public endpoints, fixed at setup.
|
|
90
86
|
*/
|
|
91
87
|
endpointAccess?: EndpointAccess | undefined;
|
|
92
|
-
|
|
93
|
-
* External bindings for pre-existing infrastructure.
|
|
94
|
-
*
|
|
95
|
-
* @remarks
|
|
96
|
-
* Allows using existing resources (MinIO, Redis, shared Container Apps
|
|
97
|
-
* Environment, etc.) instead of having Alien provision them.
|
|
98
|
-
* Required for Kubernetes platform, optional for cloud platforms.
|
|
99
|
-
*/
|
|
100
|
-
externalBindings?: ExternalBindings | null | undefined;
|
|
88
|
+
externalBindings?: { [k: string]: ExternalBindingUnion } | null | undefined;
|
|
101
89
|
/**
|
|
102
90
|
* How heartbeat health checks are handled.
|
|
103
91
|
*/
|
|
@@ -124,37 +112,6 @@ export type StackSettings = {
|
|
|
124
112
|
updates?: UpdatesMode | undefined;
|
|
125
113
|
};
|
|
126
114
|
|
|
127
|
-
/** @internal */
|
|
128
|
-
export const ExternalBindings$inboundSchema: z.ZodType<
|
|
129
|
-
ExternalBindings,
|
|
130
|
-
unknown
|
|
131
|
-
> = z.object({});
|
|
132
|
-
/** @internal */
|
|
133
|
-
export type ExternalBindings$Outbound = {};
|
|
134
|
-
|
|
135
|
-
/** @internal */
|
|
136
|
-
export const ExternalBindings$outboundSchema: z.ZodType<
|
|
137
|
-
ExternalBindings$Outbound,
|
|
138
|
-
ExternalBindings
|
|
139
|
-
> = z.object({});
|
|
140
|
-
|
|
141
|
-
export function externalBindingsToJSON(
|
|
142
|
-
externalBindings: ExternalBindings,
|
|
143
|
-
): string {
|
|
144
|
-
return JSON.stringify(
|
|
145
|
-
ExternalBindings$outboundSchema.parse(externalBindings),
|
|
146
|
-
);
|
|
147
|
-
}
|
|
148
|
-
export function externalBindingsFromJSON(
|
|
149
|
-
jsonString: string,
|
|
150
|
-
): SafeParseResult<ExternalBindings, SDKValidationError> {
|
|
151
|
-
return safeParse(
|
|
152
|
-
jsonString,
|
|
153
|
-
(x) => ExternalBindings$inboundSchema.parse(JSON.parse(x)),
|
|
154
|
-
`Failed to parse 'ExternalBindings' from JSON`,
|
|
155
|
-
);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
115
|
/** @internal */
|
|
159
116
|
export const StackSettings$inboundSchema: z.ZodType<StackSettings, unknown> = z
|
|
160
117
|
.object({
|
|
@@ -162,8 +119,9 @@ export const StackSettings$inboundSchema: z.ZodType<StackSettings, unknown> = z
|
|
|
162
119
|
deploymentModel: DeploymentModel$inboundSchema.optional(),
|
|
163
120
|
domains: z.nullable(DomainSettings$inboundSchema).optional(),
|
|
164
121
|
endpointAccess: EndpointAccess$inboundSchema.optional(),
|
|
165
|
-
externalBindings: z.nullable(
|
|
166
|
-
.
|
|
122
|
+
externalBindings: z.nullable(
|
|
123
|
+
z.record(z.string(), ExternalBindingUnion$inboundSchema),
|
|
124
|
+
).optional(),
|
|
167
125
|
heartbeats: HeartbeatsMode$inboundSchema.optional(),
|
|
168
126
|
kubernetes: z.nullable(KubernetesSettings$inboundSchema).optional(),
|
|
169
127
|
network: z.nullable(NetworkSettings$inboundSchema).optional(),
|
|
@@ -179,7 +137,10 @@ export type StackSettings$Outbound = {
|
|
|
179
137
|
deploymentModel?: string | undefined;
|
|
180
138
|
domains?: DomainSettings$Outbound | null | undefined;
|
|
181
139
|
endpointAccess?: string | undefined;
|
|
182
|
-
externalBindings?:
|
|
140
|
+
externalBindings?:
|
|
141
|
+
| { [k: string]: ExternalBindingUnion$Outbound }
|
|
142
|
+
| null
|
|
143
|
+
| undefined;
|
|
183
144
|
heartbeats?: string | undefined;
|
|
184
145
|
kubernetes?: KubernetesSettings$Outbound | null | undefined;
|
|
185
146
|
network?: NetworkSettings$Outbound | null | undefined;
|
|
@@ -197,8 +158,9 @@ export const StackSettings$outboundSchema: z.ZodType<
|
|
|
197
158
|
deploymentModel: DeploymentModel$outboundSchema.optional(),
|
|
198
159
|
domains: z.nullable(DomainSettings$outboundSchema).optional(),
|
|
199
160
|
endpointAccess: EndpointAccess$outboundSchema.optional(),
|
|
200
|
-
externalBindings: z.nullable(
|
|
201
|
-
.
|
|
161
|
+
externalBindings: z.nullable(
|
|
162
|
+
z.record(z.string(), ExternalBindingUnion$outboundSchema),
|
|
163
|
+
).optional(),
|
|
202
164
|
heartbeats: HeartbeatsMode$outboundSchema.optional(),
|
|
203
165
|
kubernetes: z.nullable(KubernetesSettings$outboundSchema).optional(),
|
|
204
166
|
network: z.nullable(NetworkSettings$outboundSchema).optional(),
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import {
|
|
9
|
+
DeploymentAcquireUnavailableReason,
|
|
10
|
+
DeploymentAcquireUnavailableReason$inboundSchema,
|
|
11
|
+
} from "./deploymentacquireunavailablereason.js";
|
|
12
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Atomic outcome for one explicitly requested deployment that was not acquired.
|
|
16
|
+
*/
|
|
17
|
+
export type UnacquiredDeployment = {
|
|
18
|
+
deploymentId: string;
|
|
19
|
+
/**
|
|
20
|
+
* Why an explicitly requested deployment was not acquired.
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
*
|
|
24
|
+
* These reasons are intentionally bounded and do not identify the session
|
|
25
|
+
* that owns a competing lease.
|
|
26
|
+
*/
|
|
27
|
+
reason: DeploymentAcquireUnavailableReason;
|
|
28
|
+
retryAfter?: Date | null | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const UnacquiredDeployment$inboundSchema: z.ZodType<
|
|
33
|
+
UnacquiredDeployment,
|
|
34
|
+
unknown
|
|
35
|
+
> = z.object({
|
|
36
|
+
deploymentId: z.string(),
|
|
37
|
+
reason: DeploymentAcquireUnavailableReason$inboundSchema,
|
|
38
|
+
retryAfter: z.nullable(
|
|
39
|
+
z.iso.datetime({ offset: true }).transform(v => new Date(v)),
|
|
40
|
+
).optional(),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export function unacquiredDeploymentFromJSON(
|
|
44
|
+
jsonString: string,
|
|
45
|
+
): SafeParseResult<UnacquiredDeployment, SDKValidationError> {
|
|
46
|
+
return safeParse(
|
|
47
|
+
jsonString,
|
|
48
|
+
(x) => UnacquiredDeployment$inboundSchema.parse(JSON.parse(x)),
|
|
49
|
+
`Failed to parse 'UnacquiredDeployment' from JSON`,
|
|
50
|
+
);
|
|
51
|
+
}
|
package/src/sdk/commands.ts
CHANGED
|
@@ -68,12 +68,14 @@ export class Commands extends ClientSDK {
|
|
|
68
68
|
* migrating payload data. Does not validate command existence or state.
|
|
69
69
|
*/
|
|
70
70
|
async storeCommandPayload(
|
|
71
|
-
|
|
71
|
+
commandId: string,
|
|
72
|
+
storePayloadRequest: models.StorePayloadRequest,
|
|
72
73
|
options?: RequestOptions,
|
|
73
74
|
): Promise<void> {
|
|
74
75
|
return unwrapAsync(commandsStoreCommandPayload(
|
|
75
76
|
this,
|
|
76
|
-
|
|
77
|
+
commandId,
|
|
78
|
+
storePayloadRequest,
|
|
77
79
|
options,
|
|
78
80
|
));
|
|
79
81
|
}
|
|
@@ -82,12 +84,14 @@ export class Commands extends ClientSDK {
|
|
|
82
84
|
* Submit response from deployment
|
|
83
85
|
*/
|
|
84
86
|
async submitResponse(
|
|
85
|
-
|
|
87
|
+
commandId: string,
|
|
88
|
+
commandResponse: models.CommandResponse,
|
|
86
89
|
options?: RequestOptions,
|
|
87
90
|
): Promise<void> {
|
|
88
91
|
return unwrapAsync(commandsSubmitResponse(
|
|
89
92
|
this,
|
|
90
|
-
|
|
93
|
+
commandId,
|
|
94
|
+
commandResponse,
|
|
91
95
|
options,
|
|
92
96
|
));
|
|
93
97
|
}
|
|
@@ -96,12 +100,14 @@ export class Commands extends ClientSDK {
|
|
|
96
100
|
* Mark upload as complete
|
|
97
101
|
*/
|
|
98
102
|
async uploadComplete(
|
|
99
|
-
|
|
103
|
+
commandId: string,
|
|
104
|
+
uploadCompleteRequest: models.UploadCompleteRequest,
|
|
100
105
|
options?: RequestOptions,
|
|
101
106
|
): Promise<models.UploadCompleteResponse> {
|
|
102
107
|
return unwrapAsync(commandsUploadComplete(
|
|
103
108
|
this,
|
|
104
|
-
|
|
109
|
+
commandId,
|
|
110
|
+
uploadCompleteRequest,
|
|
105
111
|
options,
|
|
106
112
|
));
|
|
107
113
|
}
|
package/src/sdk/deployments.ts
CHANGED
|
@@ -68,12 +68,14 @@ export class Deployments extends ClientSDK {
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
async signDeploymentBundle(
|
|
71
|
-
|
|
71
|
+
id: string,
|
|
72
|
+
bundleSignatureRequest: models.BundleSignatureRequest,
|
|
72
73
|
options?: RequestOptions,
|
|
73
74
|
): Promise<models.BundleSignatureResponse> {
|
|
74
75
|
return unwrapAsync(deploymentsSignDeploymentBundle(
|
|
75
76
|
this,
|
|
76
|
-
|
|
77
|
+
id,
|
|
78
|
+
bundleSignatureRequest,
|
|
77
79
|
options,
|
|
78
80
|
));
|
|
79
81
|
}
|
|
@@ -90,23 +92,27 @@ export class Deployments extends ClientSDK {
|
|
|
90
92
|
}
|
|
91
93
|
|
|
92
94
|
async setDeploymentChannel(
|
|
93
|
-
|
|
95
|
+
id: string,
|
|
96
|
+
setDeploymentChannelRequest: models.SetDeploymentChannelRequest,
|
|
94
97
|
options?: RequestOptions,
|
|
95
98
|
): Promise<models.DeploymentRoutingResponse> {
|
|
96
99
|
return unwrapAsync(deploymentsSetDeploymentChannel(
|
|
97
100
|
this,
|
|
98
|
-
|
|
101
|
+
id,
|
|
102
|
+
setDeploymentChannelRequest,
|
|
99
103
|
options,
|
|
100
104
|
));
|
|
101
105
|
}
|
|
102
106
|
|
|
103
107
|
async deleteDeployment(
|
|
104
|
-
|
|
108
|
+
id: string,
|
|
109
|
+
deleteDeploymentRequest: models.DeleteDeploymentRequest,
|
|
105
110
|
options?: RequestOptions,
|
|
106
111
|
): Promise<models.DeleteDeploymentResponse> {
|
|
107
112
|
return unwrapAsync(deploymentsDeleteDeployment(
|
|
108
113
|
this,
|
|
109
|
-
|
|
114
|
+
id,
|
|
115
|
+
deleteDeploymentRequest,
|
|
110
116
|
options,
|
|
111
117
|
));
|
|
112
118
|
}
|
|
@@ -134,12 +140,14 @@ export class Deployments extends ClientSDK {
|
|
|
134
140
|
}
|
|
135
141
|
|
|
136
142
|
async setDeploymentPin(
|
|
137
|
-
|
|
143
|
+
id: string,
|
|
144
|
+
setDeploymentPinRequest: models.SetDeploymentPinRequest,
|
|
138
145
|
options?: RequestOptions,
|
|
139
146
|
): Promise<models.DeploymentRoutingResponse> {
|
|
140
147
|
return unwrapAsync(deploymentsSetDeploymentPin(
|
|
141
148
|
this,
|
|
142
|
-
|
|
149
|
+
id,
|
|
150
|
+
setDeploymentPinRequest,
|
|
143
151
|
options,
|
|
144
152
|
));
|
|
145
153
|
}
|
|
@@ -178,12 +186,14 @@ export class Deployments extends ClientSDK {
|
|
|
178
186
|
}
|
|
179
187
|
|
|
180
188
|
async importDeploymentStatus(
|
|
181
|
-
|
|
189
|
+
id: string,
|
|
190
|
+
statusReport: models.StatusReport,
|
|
182
191
|
options?: RequestOptions,
|
|
183
192
|
): Promise<models.StatusReportResponse> {
|
|
184
193
|
return unwrapAsync(deploymentsImportDeploymentStatus(
|
|
185
194
|
this,
|
|
186
|
-
|
|
195
|
+
id,
|
|
196
|
+
statusReport,
|
|
187
197
|
options,
|
|
188
198
|
));
|
|
189
199
|
}
|
package/src/sdk/releases.ts
CHANGED
|
@@ -93,12 +93,14 @@ export class Releases extends ClientSDK {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
async promoteManagerRelease(
|
|
96
|
-
|
|
96
|
+
id: string,
|
|
97
|
+
promoteReleaseRequest: models.PromoteReleaseRequest,
|
|
97
98
|
options?: RequestOptions,
|
|
98
99
|
): Promise<models.ReleaseChannelResponse> {
|
|
99
100
|
return unwrapAsync(releasesPromoteManagerRelease(
|
|
100
101
|
this,
|
|
101
|
-
|
|
102
|
+
id,
|
|
103
|
+
promoteReleaseRequest,
|
|
102
104
|
options,
|
|
103
105
|
));
|
|
104
106
|
}
|