@alienplatform/manager-api 3.3.30 → 3.3.32
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/agentsyncrequest.d.ts +3 -0
- package/esm/models/agentsyncrequest.d.ts.map +1 -1
- package/esm/models/agentsyncrequest.js +2 -0
- package/esm/models/agentsyncrequest.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/computesettings.d.ts +10 -0
- package/esm/models/computesettings.d.ts.map +1 -1
- package/esm/models/computesettings.js +5 -0
- package/esm/models/computesettings.js.map +1 -1
- package/esm/models/containerresourceselection.d.ts +28 -0
- package/esm/models/containerresourceselection.d.ts.map +1 -0
- package/esm/models/containerresourceselection.js +22 -0
- package/esm/models/containerresourceselection.js.map +1 -0
- package/esm/models/custompluginoperationsconfig.d.ts +46 -0
- package/esm/models/custompluginoperationsconfig.d.ts.map +1 -0
- package/esm/models/custompluginoperationsconfig.js +19 -0
- package/esm/models/custompluginoperationsconfig.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 +17 -0
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +17 -0
- package/esm/models/index.js.map +1 -1
- package/esm/models/operationapprovaldecision.d.ts +16 -0
- package/esm/models/operationapprovaldecision.d.ts.map +1 -0
- package/esm/models/operationapprovaldecision.js +14 -0
- package/esm/models/operationapprovaldecision.js.map +1 -0
- package/esm/models/operationapprovalunion.d.ts +36 -0
- package/esm/models/operationapprovalunion.d.ts.map +1 -0
- package/esm/models/operationapprovalunion.js +22 -0
- package/esm/models/operationapprovalunion.js.map +1 -0
- package/esm/models/operationsbundledownload.d.ts +9 -0
- package/esm/models/operationsbundledownload.d.ts.map +1 -1
- package/esm/models/operationsbundledownload.js +1 -0
- package/esm/models/operationsbundledownload.js.map +1 -1
- package/esm/models/operationsconfig.d.ts +29 -0
- package/esm/models/operationsconfig.d.ts.map +1 -0
- package/esm/models/operationsconfig.js +16 -0
- package/esm/models/operationsconfig.js.map +1 -0
- package/esm/models/operationsettingvalueunion.d.ts +62 -0
- package/esm/models/operationsettingvalueunion.d.ts.map +1 -0
- package/esm/models/operationsettingvalueunion.js +36 -0
- package/esm/models/operationsettingvalueunion.js.map +1 -0
- package/esm/models/pluginoperationsconfig.d.ts +36 -0
- package/esm/models/pluginoperationsconfig.d.ts.map +1 -0
- package/esm/models/pluginoperationsconfig.js +17 -0
- package/esm/models/pluginoperationsconfig.js.map +1 -0
- 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/agentsyncrequest.ts +8 -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/computesettings.ts +15 -0
- package/src/models/containerresourceselection.ts +62 -0
- package/src/models/custompluginoperationsconfig.ts +71 -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 +17 -0
- package/src/models/operationapprovaldecision.ts +25 -0
- package/src/models/operationapprovalunion.ts +78 -0
- package/src/models/operationsbundledownload.ts +8 -0
- package/src/models/operationsconfig.ts +53 -0
- package/src/models/operationsettingvalueunion.ts +136 -0
- package/src/models/pluginoperationsconfig.ts +57 -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,111 @@
|
|
|
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
|
+
import {
|
|
10
|
+
SecretReference,
|
|
11
|
+
SecretReference$inboundSchema,
|
|
12
|
+
SecretReference$Outbound,
|
|
13
|
+
SecretReference$outboundSchema,
|
|
14
|
+
} from "./secretreference.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* A Kubernetes Secret reference (must come before Expression)
|
|
18
|
+
*/
|
|
19
|
+
export type BindingValueString = {
|
|
20
|
+
/**
|
|
21
|
+
* Reference to a Kubernetes Secret
|
|
22
|
+
*/
|
|
23
|
+
secretRef: SecretReference;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Represents a value that can be either a concrete value, a template expression,
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* or a reference to a Kubernetes Secret
|
|
31
|
+
*/
|
|
32
|
+
export type BindingValueStringUnion = BindingValueString | string | any;
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const BindingValueString$inboundSchema: z.ZodType<
|
|
36
|
+
BindingValueString,
|
|
37
|
+
unknown
|
|
38
|
+
> = z.object({
|
|
39
|
+
secretRef: SecretReference$inboundSchema,
|
|
40
|
+
});
|
|
41
|
+
/** @internal */
|
|
42
|
+
export type BindingValueString$Outbound = {
|
|
43
|
+
secretRef: SecretReference$Outbound;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const BindingValueString$outboundSchema: z.ZodType<
|
|
48
|
+
BindingValueString$Outbound,
|
|
49
|
+
BindingValueString
|
|
50
|
+
> = z.object({
|
|
51
|
+
secretRef: SecretReference$outboundSchema,
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export function bindingValueStringToJSON(
|
|
55
|
+
bindingValueString: BindingValueString,
|
|
56
|
+
): string {
|
|
57
|
+
return JSON.stringify(
|
|
58
|
+
BindingValueString$outboundSchema.parse(bindingValueString),
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
export function bindingValueStringFromJSON(
|
|
62
|
+
jsonString: string,
|
|
63
|
+
): SafeParseResult<BindingValueString, SDKValidationError> {
|
|
64
|
+
return safeParse(
|
|
65
|
+
jsonString,
|
|
66
|
+
(x) => BindingValueString$inboundSchema.parse(JSON.parse(x)),
|
|
67
|
+
`Failed to parse 'BindingValueString' from JSON`,
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export const BindingValueStringUnion$inboundSchema: z.ZodType<
|
|
73
|
+
BindingValueStringUnion,
|
|
74
|
+
unknown
|
|
75
|
+
> = z.union([
|
|
76
|
+
z.lazy(() => BindingValueString$inboundSchema),
|
|
77
|
+
z.string(),
|
|
78
|
+
z.any(),
|
|
79
|
+
]);
|
|
80
|
+
/** @internal */
|
|
81
|
+
export type BindingValueStringUnion$Outbound =
|
|
82
|
+
| BindingValueString$Outbound
|
|
83
|
+
| string
|
|
84
|
+
| any;
|
|
85
|
+
|
|
86
|
+
/** @internal */
|
|
87
|
+
export const BindingValueStringUnion$outboundSchema: z.ZodType<
|
|
88
|
+
BindingValueStringUnion$Outbound,
|
|
89
|
+
BindingValueStringUnion
|
|
90
|
+
> = z.union([
|
|
91
|
+
z.lazy(() => BindingValueString$outboundSchema),
|
|
92
|
+
z.string(),
|
|
93
|
+
z.any(),
|
|
94
|
+
]);
|
|
95
|
+
|
|
96
|
+
export function bindingValueStringUnionToJSON(
|
|
97
|
+
bindingValueStringUnion: BindingValueStringUnion,
|
|
98
|
+
): string {
|
|
99
|
+
return JSON.stringify(
|
|
100
|
+
BindingValueStringUnion$outboundSchema.parse(bindingValueStringUnion),
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
export function bindingValueStringUnionFromJSON(
|
|
104
|
+
jsonString: string,
|
|
105
|
+
): SafeParseResult<BindingValueStringUnion, SDKValidationError> {
|
|
106
|
+
return safeParse(
|
|
107
|
+
jsonString,
|
|
108
|
+
(x) => BindingValueStringUnion$inboundSchema.parse(JSON.parse(x)),
|
|
109
|
+
`Failed to parse 'BindingValueStringUnion' from JSON`,
|
|
110
|
+
);
|
|
111
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
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
|
+
import {
|
|
10
|
+
SecretReference,
|
|
11
|
+
SecretReference$inboundSchema,
|
|
12
|
+
SecretReference$Outbound,
|
|
13
|
+
SecretReference$outboundSchema,
|
|
14
|
+
} from "./secretreference.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* A Kubernetes Secret reference (must come before Expression)
|
|
18
|
+
*/
|
|
19
|
+
export type BindingValueU16 = {
|
|
20
|
+
/**
|
|
21
|
+
* Reference to a Kubernetes Secret
|
|
22
|
+
*/
|
|
23
|
+
secretRef: SecretReference;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Represents a value that can be either a concrete value, a template expression,
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* or a reference to a Kubernetes Secret
|
|
31
|
+
*/
|
|
32
|
+
export type BindingValueU16Union = BindingValueU16 | number | any;
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const BindingValueU16$inboundSchema: z.ZodType<
|
|
36
|
+
BindingValueU16,
|
|
37
|
+
unknown
|
|
38
|
+
> = z.object({
|
|
39
|
+
secretRef: SecretReference$inboundSchema,
|
|
40
|
+
});
|
|
41
|
+
/** @internal */
|
|
42
|
+
export type BindingValueU16$Outbound = {
|
|
43
|
+
secretRef: SecretReference$Outbound;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const BindingValueU16$outboundSchema: z.ZodType<
|
|
48
|
+
BindingValueU16$Outbound,
|
|
49
|
+
BindingValueU16
|
|
50
|
+
> = z.object({
|
|
51
|
+
secretRef: SecretReference$outboundSchema,
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export function bindingValueU16ToJSON(
|
|
55
|
+
bindingValueU16: BindingValueU16,
|
|
56
|
+
): string {
|
|
57
|
+
return JSON.stringify(BindingValueU16$outboundSchema.parse(bindingValueU16));
|
|
58
|
+
}
|
|
59
|
+
export function bindingValueU16FromJSON(
|
|
60
|
+
jsonString: string,
|
|
61
|
+
): SafeParseResult<BindingValueU16, SDKValidationError> {
|
|
62
|
+
return safeParse(
|
|
63
|
+
jsonString,
|
|
64
|
+
(x) => BindingValueU16$inboundSchema.parse(JSON.parse(x)),
|
|
65
|
+
`Failed to parse 'BindingValueU16' from JSON`,
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** @internal */
|
|
70
|
+
export const BindingValueU16Union$inboundSchema: z.ZodType<
|
|
71
|
+
BindingValueU16Union,
|
|
72
|
+
unknown
|
|
73
|
+
> = z.union([z.lazy(() => BindingValueU16$inboundSchema), z.int(), z.any()]);
|
|
74
|
+
/** @internal */
|
|
75
|
+
export type BindingValueU16Union$Outbound =
|
|
76
|
+
| BindingValueU16$Outbound
|
|
77
|
+
| number
|
|
78
|
+
| any;
|
|
79
|
+
|
|
80
|
+
/** @internal */
|
|
81
|
+
export const BindingValueU16Union$outboundSchema: z.ZodType<
|
|
82
|
+
BindingValueU16Union$Outbound,
|
|
83
|
+
BindingValueU16Union
|
|
84
|
+
> = z.union([z.lazy(() => BindingValueU16$outboundSchema), z.int(), z.any()]);
|
|
85
|
+
|
|
86
|
+
export function bindingValueU16UnionToJSON(
|
|
87
|
+
bindingValueU16Union: BindingValueU16Union,
|
|
88
|
+
): string {
|
|
89
|
+
return JSON.stringify(
|
|
90
|
+
BindingValueU16Union$outboundSchema.parse(bindingValueU16Union),
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
export function bindingValueU16UnionFromJSON(
|
|
94
|
+
jsonString: string,
|
|
95
|
+
): SafeParseResult<BindingValueU16Union, SDKValidationError> {
|
|
96
|
+
return safeParse(
|
|
97
|
+
jsonString,
|
|
98
|
+
(x) => BindingValueU16Union$inboundSchema.parse(JSON.parse(x)),
|
|
99
|
+
`Failed to parse 'BindingValueU16Union' from JSON`,
|
|
100
|
+
);
|
|
101
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
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
|
+
import {
|
|
10
|
+
SecretReference,
|
|
11
|
+
SecretReference$inboundSchema,
|
|
12
|
+
SecretReference$Outbound,
|
|
13
|
+
SecretReference$outboundSchema,
|
|
14
|
+
} from "./secretreference.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* A Kubernetes Secret reference (must come before Expression)
|
|
18
|
+
*/
|
|
19
|
+
export type BindingValueU8 = {
|
|
20
|
+
/**
|
|
21
|
+
* Reference to a Kubernetes Secret
|
|
22
|
+
*/
|
|
23
|
+
secretRef: SecretReference;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Represents a value that can be either a concrete value, a template expression,
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* or a reference to a Kubernetes Secret
|
|
31
|
+
*/
|
|
32
|
+
export type BindingValueU8Union = BindingValueU8 | number | any;
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const BindingValueU8$inboundSchema: z.ZodType<BindingValueU8, unknown> =
|
|
36
|
+
z.object({
|
|
37
|
+
secretRef: SecretReference$inboundSchema,
|
|
38
|
+
});
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type BindingValueU8$Outbound = {
|
|
41
|
+
secretRef: SecretReference$Outbound;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const BindingValueU8$outboundSchema: z.ZodType<
|
|
46
|
+
BindingValueU8$Outbound,
|
|
47
|
+
BindingValueU8
|
|
48
|
+
> = z.object({
|
|
49
|
+
secretRef: SecretReference$outboundSchema,
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export function bindingValueU8ToJSON(bindingValueU8: BindingValueU8): string {
|
|
53
|
+
return JSON.stringify(BindingValueU8$outboundSchema.parse(bindingValueU8));
|
|
54
|
+
}
|
|
55
|
+
export function bindingValueU8FromJSON(
|
|
56
|
+
jsonString: string,
|
|
57
|
+
): SafeParseResult<BindingValueU8, SDKValidationError> {
|
|
58
|
+
return safeParse(
|
|
59
|
+
jsonString,
|
|
60
|
+
(x) => BindingValueU8$inboundSchema.parse(JSON.parse(x)),
|
|
61
|
+
`Failed to parse 'BindingValueU8' from JSON`,
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** @internal */
|
|
66
|
+
export const BindingValueU8Union$inboundSchema: z.ZodType<
|
|
67
|
+
BindingValueU8Union,
|
|
68
|
+
unknown
|
|
69
|
+
> = z.union([z.lazy(() => BindingValueU8$inboundSchema), z.int(), z.any()]);
|
|
70
|
+
/** @internal */
|
|
71
|
+
export type BindingValueU8Union$Outbound =
|
|
72
|
+
| BindingValueU8$Outbound
|
|
73
|
+
| number
|
|
74
|
+
| any;
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const BindingValueU8Union$outboundSchema: z.ZodType<
|
|
78
|
+
BindingValueU8Union$Outbound,
|
|
79
|
+
BindingValueU8Union
|
|
80
|
+
> = z.union([z.lazy(() => BindingValueU8$outboundSchema), z.int(), z.any()]);
|
|
81
|
+
|
|
82
|
+
export function bindingValueU8UnionToJSON(
|
|
83
|
+
bindingValueU8Union: BindingValueU8Union,
|
|
84
|
+
): string {
|
|
85
|
+
return JSON.stringify(
|
|
86
|
+
BindingValueU8Union$outboundSchema.parse(bindingValueU8Union),
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
export function bindingValueU8UnionFromJSON(
|
|
90
|
+
jsonString: string,
|
|
91
|
+
): SafeParseResult<BindingValueU8Union, SDKValidationError> {
|
|
92
|
+
return safeParse(
|
|
93
|
+
jsonString,
|
|
94
|
+
(x) => BindingValueU8Union$inboundSchema.parse(JSON.parse(x)),
|
|
95
|
+
`Failed to parse 'BindingValueU8Union' from JSON`,
|
|
96
|
+
);
|
|
97
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
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
|
+
import {
|
|
10
|
+
SecretReference,
|
|
11
|
+
SecretReference$inboundSchema,
|
|
12
|
+
SecretReference$Outbound,
|
|
13
|
+
SecretReference$outboundSchema,
|
|
14
|
+
} from "./secretreference.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* A Kubernetes Secret reference (must come before Expression)
|
|
18
|
+
*/
|
|
19
|
+
export type BindingValueVecString = {
|
|
20
|
+
/**
|
|
21
|
+
* Reference to a Kubernetes Secret
|
|
22
|
+
*/
|
|
23
|
+
secretRef: SecretReference;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Represents a value that can be either a concrete value, a template expression,
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* or a reference to a Kubernetes Secret
|
|
31
|
+
*/
|
|
32
|
+
export type BindingValueVecStringUnion =
|
|
33
|
+
| BindingValueVecString
|
|
34
|
+
| Array<string>
|
|
35
|
+
| any;
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const BindingValueVecString$inboundSchema: z.ZodType<
|
|
39
|
+
BindingValueVecString,
|
|
40
|
+
unknown
|
|
41
|
+
> = z.object({
|
|
42
|
+
secretRef: SecretReference$inboundSchema,
|
|
43
|
+
});
|
|
44
|
+
/** @internal */
|
|
45
|
+
export type BindingValueVecString$Outbound = {
|
|
46
|
+
secretRef: SecretReference$Outbound;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const BindingValueVecString$outboundSchema: z.ZodType<
|
|
51
|
+
BindingValueVecString$Outbound,
|
|
52
|
+
BindingValueVecString
|
|
53
|
+
> = z.object({
|
|
54
|
+
secretRef: SecretReference$outboundSchema,
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
export function bindingValueVecStringToJSON(
|
|
58
|
+
bindingValueVecString: BindingValueVecString,
|
|
59
|
+
): string {
|
|
60
|
+
return JSON.stringify(
|
|
61
|
+
BindingValueVecString$outboundSchema.parse(bindingValueVecString),
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
export function bindingValueVecStringFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<BindingValueVecString, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => BindingValueVecString$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'BindingValueVecString' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const BindingValueVecStringUnion$inboundSchema: z.ZodType<
|
|
76
|
+
BindingValueVecStringUnion,
|
|
77
|
+
unknown
|
|
78
|
+
> = z.union([
|
|
79
|
+
z.lazy(() => BindingValueVecString$inboundSchema),
|
|
80
|
+
z.array(z.string()),
|
|
81
|
+
z.any(),
|
|
82
|
+
]);
|
|
83
|
+
/** @internal */
|
|
84
|
+
export type BindingValueVecStringUnion$Outbound =
|
|
85
|
+
| BindingValueVecString$Outbound
|
|
86
|
+
| Array<string>
|
|
87
|
+
| any;
|
|
88
|
+
|
|
89
|
+
/** @internal */
|
|
90
|
+
export const BindingValueVecStringUnion$outboundSchema: z.ZodType<
|
|
91
|
+
BindingValueVecStringUnion$Outbound,
|
|
92
|
+
BindingValueVecStringUnion
|
|
93
|
+
> = z.union([
|
|
94
|
+
z.lazy(() => BindingValueVecString$outboundSchema),
|
|
95
|
+
z.array(z.string()),
|
|
96
|
+
z.any(),
|
|
97
|
+
]);
|
|
98
|
+
|
|
99
|
+
export function bindingValueVecStringUnionToJSON(
|
|
100
|
+
bindingValueVecStringUnion: BindingValueVecStringUnion,
|
|
101
|
+
): string {
|
|
102
|
+
return JSON.stringify(
|
|
103
|
+
BindingValueVecStringUnion$outboundSchema.parse(bindingValueVecStringUnion),
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
export function bindingValueVecStringUnionFromJSON(
|
|
107
|
+
jsonString: string,
|
|
108
|
+
): SafeParseResult<BindingValueVecStringUnion, SDKValidationError> {
|
|
109
|
+
return safeParse(
|
|
110
|
+
jsonString,
|
|
111
|
+
(x) => BindingValueVecStringUnion$inboundSchema.parse(JSON.parse(x)),
|
|
112
|
+
`Failed to parse 'BindingValueVecStringUnion' from JSON`,
|
|
113
|
+
);
|
|
114
|
+
}
|
|
@@ -11,6 +11,12 @@ import {
|
|
|
11
11
|
ComputePoolSelection$Outbound,
|
|
12
12
|
ComputePoolSelection$outboundSchema,
|
|
13
13
|
} from "./computepoolselection.js";
|
|
14
|
+
import {
|
|
15
|
+
ContainerResourceSelection,
|
|
16
|
+
ContainerResourceSelection$inboundSchema,
|
|
17
|
+
ContainerResourceSelection$Outbound,
|
|
18
|
+
ContainerResourceSelection$outboundSchema,
|
|
19
|
+
} from "./containerresourceselection.js";
|
|
14
20
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
15
21
|
|
|
16
22
|
/**
|
|
@@ -23,6 +29,10 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
|
23
29
|
* provider machine type and selected machine counts.
|
|
24
30
|
*/
|
|
25
31
|
export type ComputeSettings = {
|
|
32
|
+
/**
|
|
33
|
+
* Per-replica resources selected within each container's declared ranges.
|
|
34
|
+
*/
|
|
35
|
+
containers?: { [k: string]: ContainerResourceSelection } | undefined;
|
|
26
36
|
/**
|
|
27
37
|
* Selected compute choices keyed by pool ID.
|
|
28
38
|
*/
|
|
@@ -34,10 +44,13 @@ export const ComputeSettings$inboundSchema: z.ZodType<
|
|
|
34
44
|
ComputeSettings,
|
|
35
45
|
unknown
|
|
36
46
|
> = z.object({
|
|
47
|
+
containers: z.record(z.string(), ContainerResourceSelection$inboundSchema)
|
|
48
|
+
.optional(),
|
|
37
49
|
pools: z.record(z.string(), ComputePoolSelection$inboundSchema).optional(),
|
|
38
50
|
});
|
|
39
51
|
/** @internal */
|
|
40
52
|
export type ComputeSettings$Outbound = {
|
|
53
|
+
containers?: { [k: string]: ContainerResourceSelection$Outbound } | undefined;
|
|
41
54
|
pools?: { [k: string]: ComputePoolSelection$Outbound } | undefined;
|
|
42
55
|
};
|
|
43
56
|
|
|
@@ -46,6 +59,8 @@ export const ComputeSettings$outboundSchema: z.ZodType<
|
|
|
46
59
|
ComputeSettings$Outbound,
|
|
47
60
|
ComputeSettings
|
|
48
61
|
> = z.object({
|
|
62
|
+
containers: z.record(z.string(), ContainerResourceSelection$outboundSchema)
|
|
63
|
+
.optional(),
|
|
49
64
|
pools: z.record(z.string(), ComputePoolSelection$outboundSchema).optional(),
|
|
50
65
|
});
|
|
51
66
|
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
* Deployment-time resource allocation for a container. Omitted fields use release defaults.
|
|
12
|
+
*/
|
|
13
|
+
export type ContainerResourceSelection = {
|
|
14
|
+
/**
|
|
15
|
+
* CPU allocation in vCPUs.
|
|
16
|
+
*/
|
|
17
|
+
cpu?: number | null | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Memory allocation, using binary units such as Mi or Gi.
|
|
20
|
+
*/
|
|
21
|
+
memory?: string | null | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const ContainerResourceSelection$inboundSchema: z.ZodType<
|
|
26
|
+
ContainerResourceSelection,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
cpu: z.nullable(z.number()).optional(),
|
|
30
|
+
memory: z.nullable(z.string()).optional(),
|
|
31
|
+
});
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type ContainerResourceSelection$Outbound = {
|
|
34
|
+
cpu?: number | null | undefined;
|
|
35
|
+
memory?: string | null | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const ContainerResourceSelection$outboundSchema: z.ZodType<
|
|
40
|
+
ContainerResourceSelection$Outbound,
|
|
41
|
+
ContainerResourceSelection
|
|
42
|
+
> = z.object({
|
|
43
|
+
cpu: z.nullable(z.number()).optional(),
|
|
44
|
+
memory: z.nullable(z.string()).optional(),
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export function containerResourceSelectionToJSON(
|
|
48
|
+
containerResourceSelection: ContainerResourceSelection,
|
|
49
|
+
): string {
|
|
50
|
+
return JSON.stringify(
|
|
51
|
+
ContainerResourceSelection$outboundSchema.parse(containerResourceSelection),
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
export function containerResourceSelectionFromJSON(
|
|
55
|
+
jsonString: string,
|
|
56
|
+
): SafeParseResult<ContainerResourceSelection, SDKValidationError> {
|
|
57
|
+
return safeParse(
|
|
58
|
+
jsonString,
|
|
59
|
+
(x) => ContainerResourceSelection$inboundSchema.parse(JSON.parse(x)),
|
|
60
|
+
`Failed to parse 'ContainerResourceSelection' from JSON`,
|
|
61
|
+
);
|
|
62
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import {
|
|
7
|
+
OperationApprovalUnion,
|
|
8
|
+
OperationApprovalUnion$Outbound,
|
|
9
|
+
OperationApprovalUnion$outboundSchema,
|
|
10
|
+
} from "./operationapprovalunion.js";
|
|
11
|
+
import {
|
|
12
|
+
OperationSettingValueUnion,
|
|
13
|
+
OperationSettingValueUnion$Outbound,
|
|
14
|
+
OperationSettingValueUnion$outboundSchema,
|
|
15
|
+
} from "./operationsettingvalueunion.js";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* A published custom plugin at an exact version.
|
|
19
|
+
*/
|
|
20
|
+
export type CustomPluginOperationsConfig = {
|
|
21
|
+
/**
|
|
22
|
+
* Approval rule per operation: an operation name, or `*` for all of them.
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* Operations no rule matches need approval.
|
|
26
|
+
*/
|
|
27
|
+
approval?: { [k: string]: OperationApprovalUnion } | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Values for the settings the plugin's manifest declares.
|
|
30
|
+
*/
|
|
31
|
+
settings?: { [k: string]: OperationSettingValueUnion } | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Plugin name as published.
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
* Exact published version.
|
|
38
|
+
*/
|
|
39
|
+
version: string;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export type CustomPluginOperationsConfig$Outbound = {
|
|
44
|
+
approval?: { [k: string]: OperationApprovalUnion$Outbound } | undefined;
|
|
45
|
+
settings?: { [k: string]: OperationSettingValueUnion$Outbound } | undefined;
|
|
46
|
+
name: string;
|
|
47
|
+
version: string;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const CustomPluginOperationsConfig$outboundSchema: z.ZodType<
|
|
52
|
+
CustomPluginOperationsConfig$Outbound,
|
|
53
|
+
CustomPluginOperationsConfig
|
|
54
|
+
> = z.object({
|
|
55
|
+
approval: z.record(z.string(), OperationApprovalUnion$outboundSchema)
|
|
56
|
+
.optional(),
|
|
57
|
+
settings: z.record(z.string(), OperationSettingValueUnion$outboundSchema)
|
|
58
|
+
.optional(),
|
|
59
|
+
name: z.string(),
|
|
60
|
+
version: z.string(),
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
export function customPluginOperationsConfigToJSON(
|
|
64
|
+
customPluginOperationsConfig: CustomPluginOperationsConfig,
|
|
65
|
+
): string {
|
|
66
|
+
return JSON.stringify(
|
|
67
|
+
CustomPluginOperationsConfig$outboundSchema.parse(
|
|
68
|
+
customPluginOperationsConfig,
|
|
69
|
+
),
|
|
70
|
+
);
|
|
71
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
* Why an explicitly requested deployment was not acquired.
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
*
|
|
13
|
+
* These reasons are intentionally bounded and do not identify the session
|
|
14
|
+
* that owns a competing lease.
|
|
15
|
+
*/
|
|
16
|
+
export const DeploymentAcquireUnavailableReason = {
|
|
17
|
+
Contended: "contended",
|
|
18
|
+
Deferred: "deferred",
|
|
19
|
+
StatusMismatch: "statusMismatch",
|
|
20
|
+
DeploymentModelMismatch: "deploymentModelMismatch",
|
|
21
|
+
PlatformMismatch: "platformMismatch",
|
|
22
|
+
SetupMethodMismatch: "setupMethodMismatch",
|
|
23
|
+
AcquireModeMismatch: "acquireModeMismatch",
|
|
24
|
+
LimitReached: "limitReached",
|
|
25
|
+
} as const;
|
|
26
|
+
/**
|
|
27
|
+
* Why an explicitly requested deployment was not acquired.
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
*
|
|
31
|
+
* These reasons are intentionally bounded and do not identify the session
|
|
32
|
+
* that owns a competing lease.
|
|
33
|
+
*/
|
|
34
|
+
export type DeploymentAcquireUnavailableReason = ClosedEnum<
|
|
35
|
+
typeof DeploymentAcquireUnavailableReason
|
|
36
|
+
>;
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const DeploymentAcquireUnavailableReason$inboundSchema: z.ZodEnum<
|
|
40
|
+
typeof DeploymentAcquireUnavailableReason
|
|
41
|
+
> = z.enum(DeploymentAcquireUnavailableReason);
|