@alienplatform/platform-api 1.12.0 → 1.13.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/README.md +2 -0
- package/esm/funcs/machinesCancelMachineDrain.js +5 -1
- package/esm/funcs/machinesCancelMachineDrain.js.map +1 -1
- package/esm/funcs/machinesCreateJoinToken.d.ts +13 -0
- package/esm/funcs/machinesCreateJoinToken.d.ts.map +1 -0
- package/esm/funcs/machinesCreateJoinToken.js +86 -0
- package/esm/funcs/machinesCreateJoinToken.js.map +1 -0
- package/esm/funcs/machinesDrainMachine.js +5 -1
- package/esm/funcs/machinesDrainMachine.js.map +1 -1
- package/esm/funcs/machinesListInventory.js +5 -1
- package/esm/funcs/machinesListInventory.js.map +1 -1
- package/esm/funcs/machinesListJoinTokens.js +5 -1
- package/esm/funcs/machinesListJoinTokens.js.map +1 -1
- package/esm/funcs/machinesRemoveMachine.js +5 -1
- package/esm/funcs/machinesRemoveMachine.js.map +1 -1
- package/esm/funcs/machinesRevokeJoinToken.js +5 -1
- package/esm/funcs/machinesRevokeJoinToken.js.map +1 -1
- package/esm/funcs/machinesRotateJoinToken.js +5 -1
- package/esm/funcs/machinesRotateJoinToken.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/createmachinesjointokenresponse.d.ts +22 -0
- package/esm/models/createmachinesjointokenresponse.d.ts.map +1 -0
- package/esm/models/createmachinesjointokenresponse.js +19 -0
- package/esm/models/createmachinesjointokenresponse.js.map +1 -0
- package/esm/models/deploymentinfo.d.ts +4 -0
- package/esm/models/deploymentinfo.d.ts.map +1 -1
- package/esm/models/deploymentinfo.js +1 -0
- package/esm/models/deploymentinfo.js.map +1 -1
- package/esm/models/deploymentsetuppolicy.d.ts +22 -0
- package/esm/models/deploymentsetuppolicy.d.ts.map +1 -1
- package/esm/models/deploymentsetuppolicy.js +15 -0
- package/esm/models/deploymentsetuppolicy.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/kubernetesclustersource.d.ts +12 -0
- package/esm/models/kubernetesclustersource.d.ts.map +1 -0
- package/esm/models/kubernetesclustersource.js +13 -0
- package/esm/models/kubernetesclustersource.js.map +1 -0
- package/esm/models/newdeploymentrequest.d.ts +18 -0
- package/esm/models/newdeploymentrequest.d.ts.map +1 -1
- package/esm/models/newdeploymentrequest.js +10 -0
- package/esm/models/newdeploymentrequest.js.map +1 -1
- package/esm/models/operations/cancelmachinesmachinedrain.d.ts +5 -0
- package/esm/models/operations/cancelmachinesmachinedrain.d.ts.map +1 -1
- package/esm/models/operations/cancelmachinesmachinedrain.js +1 -0
- package/esm/models/operations/cancelmachinesmachinedrain.js.map +1 -1
- package/esm/models/operations/createmachinesjointoken.d.ts +20 -0
- package/esm/models/operations/createmachinesjointoken.d.ts.map +1 -0
- package/esm/models/operations/createmachinesjointoken.js +13 -0
- package/esm/models/operations/createmachinesjointoken.js.map +1 -0
- package/esm/models/operations/drainmachinesmachine.d.ts +5 -0
- package/esm/models/operations/drainmachinesmachine.d.ts.map +1 -1
- package/esm/models/operations/drainmachinesmachine.js +1 -0
- package/esm/models/operations/drainmachinesmachine.js.map +1 -1
- package/esm/models/operations/index.d.ts +1 -0
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +1 -0
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/listmachinesinventory.d.ts +5 -0
- package/esm/models/operations/listmachinesinventory.d.ts.map +1 -1
- package/esm/models/operations/listmachinesinventory.js +1 -0
- package/esm/models/operations/listmachinesinventory.js.map +1 -1
- package/esm/models/operations/listmachinesjointokens.d.ts +5 -0
- package/esm/models/operations/listmachinesjointokens.d.ts.map +1 -1
- package/esm/models/operations/listmachinesjointokens.js +1 -0
- package/esm/models/operations/listmachinesjointokens.js.map +1 -1
- package/esm/models/operations/removemachinesmachine.d.ts +5 -0
- package/esm/models/operations/removemachinesmachine.d.ts.map +1 -1
- package/esm/models/operations/removemachinesmachine.js +1 -0
- package/esm/models/operations/removemachinesmachine.js.map +1 -1
- package/esm/models/operations/revokemachinesjointoken.d.ts +5 -0
- package/esm/models/operations/revokemachinesjointoken.d.ts.map +1 -1
- package/esm/models/operations/revokemachinesjointoken.js +1 -0
- package/esm/models/operations/revokemachinesjointoken.js.map +1 -1
- package/esm/models/operations/rotatemachinesjointoken.d.ts +5 -0
- package/esm/models/operations/rotatemachinesjointoken.d.ts.map +1 -1
- package/esm/models/operations/rotatemachinesjointoken.js +1 -0
- package/esm/models/operations/rotatemachinesjointoken.js.map +1 -1
- package/esm/models/rotatemachinesjointokenresponse.d.ts +8 -0
- package/esm/models/rotatemachinesjointokenresponse.d.ts.map +1 -1
- package/esm/models/rotatemachinesjointokenresponse.js +2 -0
- package/esm/models/rotatemachinesjointokenresponse.js.map +1 -1
- package/esm/sdk/machines.d.ts +1 -0
- package/esm/sdk/machines.d.ts.map +1 -1
- package/esm/sdk/machines.js +4 -0
- package/esm/sdk/machines.js.map +1 -1
- package/esm/sdk/resources.d.ts +3 -0
- package/esm/sdk/resources.d.ts.map +1 -1
- package/esm/sdk/resources.js +3 -0
- package/esm/sdk/resources.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +3 -3
- package/src/funcs/machinesCancelMachineDrain.ts +6 -1
- package/src/funcs/machinesCreateJoinToken.ts +179 -0
- package/src/funcs/machinesDrainMachine.ts +6 -1
- package/src/funcs/machinesListInventory.ts +6 -1
- package/src/funcs/machinesListJoinTokens.ts +6 -1
- package/src/funcs/machinesRemoveMachine.ts +6 -1
- package/src/funcs/machinesRevokeJoinToken.ts +6 -1
- package/src/funcs/machinesRotateJoinToken.ts +6 -1
- package/src/lib/config.ts +2 -2
- package/src/models/createmachinesjointokenresponse.ts +50 -0
- package/src/models/deploymentinfo.ts +5 -0
- package/src/models/deploymentsetuppolicy.ts +48 -0
- package/src/models/index.ts +2 -0
- package/src/models/kubernetesclustersource.ts +23 -0
- package/src/models/newdeploymentrequest.ts +23 -0
- package/src/models/operations/cancelmachinesmachinedrain.ts +6 -0
- package/src/models/operations/createmachinesjointoken.ts +41 -0
- package/src/models/operations/drainmachinesmachine.ts +6 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listmachinesinventory.ts +6 -0
- package/src/models/operations/listmachinesjointokens.ts +6 -0
- package/src/models/operations/removemachinesmachine.ts +6 -0
- package/src/models/operations/revokemachinesjointoken.ts +6 -0
- package/src/models/operations/rotatemachinesjointoken.ts +6 -0
- package/src/models/rotatemachinesjointokenresponse.ts +10 -0
- package/src/sdk/machines.ts +12 -0
- package/src/sdk/resources.ts +3 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { AlienCore } from "../core.js";
|
|
6
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
8
|
import { compactMap } from "../lib/primitives.js";
|
|
9
9
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -95,6 +95,10 @@ async function $do(
|
|
|
95
95
|
pathParams,
|
|
96
96
|
);
|
|
97
97
|
|
|
98
|
+
const query = encodeFormQuery({
|
|
99
|
+
"workspace": payload.workspace,
|
|
100
|
+
});
|
|
101
|
+
|
|
98
102
|
const headers = new Headers(compactMap({
|
|
99
103
|
Accept: "application/json",
|
|
100
104
|
}));
|
|
@@ -124,6 +128,7 @@ async function $do(
|
|
|
124
128
|
baseURL: options?.serverURL,
|
|
125
129
|
path: path,
|
|
126
130
|
headers: headers,
|
|
131
|
+
query: query,
|
|
127
132
|
body: body,
|
|
128
133
|
userAgent: client._options.userAgent,
|
|
129
134
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { AlienCore } from "../core.js";
|
|
6
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
8
|
import { compactMap } from "../lib/primitives.js";
|
|
9
9
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -99,6 +99,10 @@ async function $do(
|
|
|
99
99
|
pathParams,
|
|
100
100
|
);
|
|
101
101
|
|
|
102
|
+
const query = encodeFormQuery({
|
|
103
|
+
"workspace": payload.workspace,
|
|
104
|
+
});
|
|
105
|
+
|
|
102
106
|
const headers = new Headers(compactMap({
|
|
103
107
|
Accept: "application/json",
|
|
104
108
|
}));
|
|
@@ -128,6 +132,7 @@ async function $do(
|
|
|
128
132
|
baseURL: options?.serverURL,
|
|
129
133
|
path: path,
|
|
130
134
|
headers: headers,
|
|
135
|
+
query: query,
|
|
131
136
|
body: body,
|
|
132
137
|
userAgent: client._options.userAgent,
|
|
133
138
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { AlienCore } from "../core.js";
|
|
6
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
8
|
import { compactMap } from "../lib/primitives.js";
|
|
9
9
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -99,6 +99,10 @@ async function $do(
|
|
|
99
99
|
"/v1/machines/deployments/{id}/join-tokens/{tokenId}",
|
|
100
100
|
)(pathParams);
|
|
101
101
|
|
|
102
|
+
const query = encodeFormQuery({
|
|
103
|
+
"workspace": payload.workspace,
|
|
104
|
+
});
|
|
105
|
+
|
|
102
106
|
const headers = new Headers(compactMap({
|
|
103
107
|
Accept: "application/json",
|
|
104
108
|
}));
|
|
@@ -128,6 +132,7 @@ async function $do(
|
|
|
128
132
|
baseURL: options?.serverURL,
|
|
129
133
|
path: path,
|
|
130
134
|
headers: headers,
|
|
135
|
+
query: query,
|
|
131
136
|
body: body,
|
|
132
137
|
userAgent: client._options.userAgent,
|
|
133
138
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { AlienCore } from "../core.js";
|
|
6
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
8
|
import { compactMap } from "../lib/primitives.js";
|
|
9
9
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -95,6 +95,10 @@ async function $do(
|
|
|
95
95
|
pathParams,
|
|
96
96
|
);
|
|
97
97
|
|
|
98
|
+
const query = encodeFormQuery({
|
|
99
|
+
"workspace": payload.workspace,
|
|
100
|
+
});
|
|
101
|
+
|
|
98
102
|
const headers = new Headers(compactMap({
|
|
99
103
|
Accept: "application/json",
|
|
100
104
|
}));
|
|
@@ -124,6 +128,7 @@ async function $do(
|
|
|
124
128
|
baseURL: options?.serverURL,
|
|
125
129
|
path: path,
|
|
126
130
|
headers: headers,
|
|
131
|
+
query: query,
|
|
127
132
|
body: body,
|
|
128
133
|
userAgent: client._options.userAgent,
|
|
129
134
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
package/src/lib/config.ts
CHANGED
|
@@ -61,8 +61,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
61
61
|
export const SDK_METADATA = {
|
|
62
62
|
language: "typescript",
|
|
63
63
|
openapiDocVersion: "1.0.0",
|
|
64
|
-
sdkVersion: "1.0.
|
|
64
|
+
sdkVersion: "1.0.208",
|
|
65
65
|
genVersion: "2.788.15",
|
|
66
66
|
userAgent:
|
|
67
|
-
"speakeasy-sdk/typescript 1.0.
|
|
67
|
+
"speakeasy-sdk/typescript 1.0.208 2.788.15 1.0.0 @alienplatform/platform-api",
|
|
68
68
|
} as const;
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
MachinesJoinTokenSummary,
|
|
11
|
+
MachinesJoinTokenSummary$inboundSchema,
|
|
12
|
+
} from "./machinesjointokensummary.js";
|
|
13
|
+
|
|
14
|
+
export type CreateMachinesJoinTokenResponse = {
|
|
15
|
+
joinToken: string;
|
|
16
|
+
controlPlaneUrl: string;
|
|
17
|
+
clusterId: string;
|
|
18
|
+
token: MachinesJoinTokenSummary;
|
|
19
|
+
/**
|
|
20
|
+
* Deploy CLI install script URL, or null when no ready CLI package exists.
|
|
21
|
+
*/
|
|
22
|
+
cliInstallScriptUrl: string | null;
|
|
23
|
+
/**
|
|
24
|
+
* CLI command name to use in join instructions.
|
|
25
|
+
*/
|
|
26
|
+
cliCommandName: string | null;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const CreateMachinesJoinTokenResponse$inboundSchema: z.ZodType<
|
|
31
|
+
CreateMachinesJoinTokenResponse,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
joinToken: z.string(),
|
|
35
|
+
controlPlaneUrl: z.string(),
|
|
36
|
+
clusterId: z.string(),
|
|
37
|
+
token: MachinesJoinTokenSummary$inboundSchema,
|
|
38
|
+
cliInstallScriptUrl: z.nullable(z.string()),
|
|
39
|
+
cliCommandName: z.nullable(z.string()),
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export function createMachinesJoinTokenResponseFromJSON(
|
|
43
|
+
jsonString: string,
|
|
44
|
+
): SafeParseResult<CreateMachinesJoinTokenResponse, SDKValidationError> {
|
|
45
|
+
return safeParse(
|
|
46
|
+
jsonString,
|
|
47
|
+
(x) => CreateMachinesJoinTokenResponse$inboundSchema.parse(JSON.parse(x)),
|
|
48
|
+
`Failed to parse 'CreateMachinesJoinTokenResponse' from JSON`,
|
|
49
|
+
);
|
|
50
|
+
}
|
|
@@ -129,6 +129,10 @@ export type StackSummary = {
|
|
|
129
129
|
* Platforms supported by the active release
|
|
130
130
|
*/
|
|
131
131
|
platforms: Array<StackSummaryPlatform>;
|
|
132
|
+
/**
|
|
133
|
+
* Whether the stack contains resources that require cloud VPC networking
|
|
134
|
+
*/
|
|
135
|
+
requiresNetwork: boolean;
|
|
132
136
|
resourceCounts: ResourceCounts;
|
|
133
137
|
/**
|
|
134
138
|
* Public endpoints declared by the active release stack
|
|
@@ -859,6 +863,7 @@ export function publicEndpointFromJSON(
|
|
|
859
863
|
export const StackSummary$inboundSchema: z.ZodType<StackSummary, unknown> = z
|
|
860
864
|
.object({
|
|
861
865
|
platforms: z.array(StackSummaryPlatform$inboundSchema),
|
|
866
|
+
requiresNetwork: z.boolean(),
|
|
862
867
|
resourceCounts: z.lazy(() => ResourceCounts$inboundSchema),
|
|
863
868
|
publicEndpoints: z.array(z.lazy(() => PublicEndpoint$inboundSchema)),
|
|
864
869
|
});
|
|
@@ -18,6 +18,11 @@ import {
|
|
|
18
18
|
DeploymentSetupStackSettingsPolicy$outboundSchema,
|
|
19
19
|
} from "./deploymentsetupstacksettingspolicy.js";
|
|
20
20
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
21
|
+
import {
|
|
22
|
+
KubernetesClusterSource,
|
|
23
|
+
KubernetesClusterSource$inboundSchema,
|
|
24
|
+
KubernetesClusterSource$outboundSchema,
|
|
25
|
+
} from "./kubernetesclustersource.js";
|
|
21
26
|
|
|
22
27
|
/**
|
|
23
28
|
* Represents the target cloud platform.
|
|
@@ -36,8 +41,28 @@ export const AllowedPlatform = {
|
|
|
36
41
|
*/
|
|
37
42
|
export type AllowedPlatform = ClosedEnum<typeof AllowedPlatform>;
|
|
38
43
|
|
|
44
|
+
export const AllowedKubernetesBasePlatform = {
|
|
45
|
+
Aws: "aws",
|
|
46
|
+
Gcp: "gcp",
|
|
47
|
+
Azure: "azure",
|
|
48
|
+
OnPrem: "on-prem",
|
|
49
|
+
} as const;
|
|
50
|
+
export type AllowedKubernetesBasePlatform = ClosedEnum<
|
|
51
|
+
typeof AllowedKubernetesBasePlatform
|
|
52
|
+
>;
|
|
53
|
+
|
|
39
54
|
export type DeploymentSetupPolicy = {
|
|
40
55
|
allowedPlatforms: Array<AllowedPlatform>;
|
|
56
|
+
/**
|
|
57
|
+
* Kubernetes base environments the recipient may target.
|
|
58
|
+
*/
|
|
59
|
+
allowedKubernetesBasePlatforms?:
|
|
60
|
+
| Array<AllowedKubernetesBasePlatform>
|
|
61
|
+
| undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Whether recipients may create a cluster, use an existing cluster, or both.
|
|
64
|
+
*/
|
|
65
|
+
allowedKubernetesClusterSources?: Array<KubernetesClusterSource> | undefined;
|
|
41
66
|
allowedSetupMethods: Array<DeploymentSetupMethod>;
|
|
42
67
|
allowReleasePinning?: boolean | undefined;
|
|
43
68
|
stackSettings?: DeploymentSetupStackSettingsPolicy | undefined;
|
|
@@ -50,12 +75,27 @@ export const AllowedPlatform$inboundSchema: z.ZodEnum<typeof AllowedPlatform> =
|
|
|
50
75
|
export const AllowedPlatform$outboundSchema: z.ZodEnum<typeof AllowedPlatform> =
|
|
51
76
|
AllowedPlatform$inboundSchema;
|
|
52
77
|
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const AllowedKubernetesBasePlatform$inboundSchema: z.ZodEnum<
|
|
80
|
+
typeof AllowedKubernetesBasePlatform
|
|
81
|
+
> = z.enum(AllowedKubernetesBasePlatform);
|
|
82
|
+
/** @internal */
|
|
83
|
+
export const AllowedKubernetesBasePlatform$outboundSchema: z.ZodEnum<
|
|
84
|
+
typeof AllowedKubernetesBasePlatform
|
|
85
|
+
> = AllowedKubernetesBasePlatform$inboundSchema;
|
|
86
|
+
|
|
53
87
|
/** @internal */
|
|
54
88
|
export const DeploymentSetupPolicy$inboundSchema: z.ZodType<
|
|
55
89
|
DeploymentSetupPolicy,
|
|
56
90
|
unknown
|
|
57
91
|
> = z.object({
|
|
58
92
|
allowedPlatforms: z.array(AllowedPlatform$inboundSchema),
|
|
93
|
+
allowedKubernetesBasePlatforms: z.array(
|
|
94
|
+
AllowedKubernetesBasePlatform$inboundSchema,
|
|
95
|
+
).optional(),
|
|
96
|
+
allowedKubernetesClusterSources: z.array(
|
|
97
|
+
KubernetesClusterSource$inboundSchema,
|
|
98
|
+
).optional(),
|
|
59
99
|
allowedSetupMethods: z.array(DeploymentSetupMethod$inboundSchema),
|
|
60
100
|
allowReleasePinning: z.boolean().optional(),
|
|
61
101
|
stackSettings: DeploymentSetupStackSettingsPolicy$inboundSchema.optional(),
|
|
@@ -63,6 +103,8 @@ export const DeploymentSetupPolicy$inboundSchema: z.ZodType<
|
|
|
63
103
|
/** @internal */
|
|
64
104
|
export type DeploymentSetupPolicy$Outbound = {
|
|
65
105
|
allowedPlatforms: Array<string>;
|
|
106
|
+
allowedKubernetesBasePlatforms?: Array<string> | undefined;
|
|
107
|
+
allowedKubernetesClusterSources?: Array<string> | undefined;
|
|
66
108
|
allowedSetupMethods: Array<string>;
|
|
67
109
|
allowReleasePinning?: boolean | undefined;
|
|
68
110
|
stackSettings?: DeploymentSetupStackSettingsPolicy$Outbound | undefined;
|
|
@@ -74,6 +116,12 @@ export const DeploymentSetupPolicy$outboundSchema: z.ZodType<
|
|
|
74
116
|
DeploymentSetupPolicy
|
|
75
117
|
> = z.object({
|
|
76
118
|
allowedPlatforms: z.array(AllowedPlatform$outboundSchema),
|
|
119
|
+
allowedKubernetesBasePlatforms: z.array(
|
|
120
|
+
AllowedKubernetesBasePlatform$outboundSchema,
|
|
121
|
+
).optional(),
|
|
122
|
+
allowedKubernetesClusterSources: z.array(
|
|
123
|
+
KubernetesClusterSource$outboundSchema,
|
|
124
|
+
).optional(),
|
|
77
125
|
allowedSetupMethods: z.array(DeploymentSetupMethod$outboundSchema),
|
|
78
126
|
allowReleasePinning: z.boolean().optional(),
|
|
79
127
|
stackSettings: DeploymentSetupStackSettingsPolicy$outboundSchema.optional(),
|
package/src/models/index.ts
CHANGED
|
@@ -29,6 +29,7 @@ export * from "./createdeploymentresponse.js";
|
|
|
29
29
|
export * from "./createdeploymenttokenrequest.js";
|
|
30
30
|
export * from "./createdeploymenttokenresponse.js";
|
|
31
31
|
export * from "./createfirstpartydeploymentsessionresponse.js";
|
|
32
|
+
export * from "./createmachinesjointokenresponse.js";
|
|
32
33
|
export * from "./createmanagerresponse.js";
|
|
33
34
|
export * from "./createreleaserequest.js";
|
|
34
35
|
export * from "./createsetupregistrationoperationrequest.js";
|
|
@@ -93,6 +94,7 @@ export * from "./importedresource.js";
|
|
|
93
94
|
export * from "./importsource.js";
|
|
94
95
|
export * from "./importsourcekind.js";
|
|
95
96
|
export * from "./kubernetesbaseplatform.js";
|
|
97
|
+
export * from "./kubernetesclustersource.js";
|
|
96
98
|
export * from "./listcommanddeploymentsresponse.js";
|
|
97
99
|
export * from "./listcommandnamesresponse.js";
|
|
98
100
|
export * from "./listmachinesinventoryresponse.js";
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
export const KubernetesClusterSource = {
|
|
9
|
+
Create: "create",
|
|
10
|
+
Existing: "existing",
|
|
11
|
+
} as const;
|
|
12
|
+
export type KubernetesClusterSource = ClosedEnum<
|
|
13
|
+
typeof KubernetesClusterSource
|
|
14
|
+
>;
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const KubernetesClusterSource$inboundSchema: z.ZodEnum<
|
|
18
|
+
typeof KubernetesClusterSource
|
|
19
|
+
> = z.enum(KubernetesClusterSource);
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const KubernetesClusterSource$outboundSchema: z.ZodEnum<
|
|
22
|
+
typeof KubernetesClusterSource
|
|
23
|
+
> = KubernetesClusterSource$inboundSchema;
|
|
@@ -1295,6 +1295,18 @@ export type NewDeploymentRequestStackSettings = {
|
|
|
1295
1295
|
updates?: NewDeploymentRequestUpdates | undefined;
|
|
1296
1296
|
};
|
|
1297
1297
|
|
|
1298
|
+
/**
|
|
1299
|
+
* Desired-release selection for a new deployment. Use none to register an environment without initially requesting a release; later updates can assign one.
|
|
1300
|
+
*/
|
|
1301
|
+
export const InitialDesiredRelease = {
|
|
1302
|
+
Active: "active",
|
|
1303
|
+
None: "none",
|
|
1304
|
+
} as const;
|
|
1305
|
+
/**
|
|
1306
|
+
* Desired-release selection for a new deployment. Use none to register an environment without initially requesting a release; later updates can assign one.
|
|
1307
|
+
*/
|
|
1308
|
+
export type InitialDesiredRelease = ClosedEnum<typeof InitialDesiredRelease>;
|
|
1309
|
+
|
|
1298
1310
|
/**
|
|
1299
1311
|
* Request schema for creating a new deployment
|
|
1300
1312
|
*/
|
|
@@ -1362,6 +1374,10 @@ export type NewDeploymentRequest = {
|
|
|
1362
1374
|
* Display-only permission tier reported by the Operator manifest.
|
|
1363
1375
|
*/
|
|
1364
1376
|
operatorPermission?: string | undefined;
|
|
1377
|
+
/**
|
|
1378
|
+
* Desired-release selection for a new deployment. Use none to register an environment without initially requesting a release; later updates can assign one.
|
|
1379
|
+
*/
|
|
1380
|
+
initialDesiredRelease?: InitialDesiredRelease | undefined;
|
|
1365
1381
|
};
|
|
1366
1382
|
|
|
1367
1383
|
/** @internal */
|
|
@@ -3956,6 +3972,11 @@ export function newDeploymentRequestStackSettingsToJSON(
|
|
|
3956
3972
|
);
|
|
3957
3973
|
}
|
|
3958
3974
|
|
|
3975
|
+
/** @internal */
|
|
3976
|
+
export const InitialDesiredRelease$outboundSchema: z.ZodEnum<
|
|
3977
|
+
typeof InitialDesiredRelease
|
|
3978
|
+
> = z.enum(InitialDesiredRelease);
|
|
3979
|
+
|
|
3959
3980
|
/** @internal */
|
|
3960
3981
|
export type NewDeploymentRequest$Outbound = {
|
|
3961
3982
|
name: string;
|
|
@@ -3985,6 +4006,7 @@ export type NewDeploymentRequest$Outbound = {
|
|
|
3985
4006
|
inputValues?: { [k: string]: StackInputValueRequest$Outbound } | undefined;
|
|
3986
4007
|
operatorScope?: string | undefined;
|
|
3987
4008
|
operatorPermission?: string | undefined;
|
|
4009
|
+
initialDesiredRelease: string;
|
|
3988
4010
|
};
|
|
3989
4011
|
|
|
3990
4012
|
/** @internal */
|
|
@@ -4021,6 +4043,7 @@ export const NewDeploymentRequest$outboundSchema: z.ZodType<
|
|
|
4021
4043
|
.optional(),
|
|
4022
4044
|
operatorScope: z.string().optional(),
|
|
4023
4045
|
operatorPermission: z.string().optional(),
|
|
4046
|
+
initialDesiredRelease: InitialDesiredRelease$outboundSchema.default("active"),
|
|
4024
4047
|
});
|
|
4025
4048
|
|
|
4026
4049
|
export function newDeploymentRequestToJSON(
|
|
@@ -10,12 +10,17 @@ export type CancelMachinesMachineDrainRequest = {
|
|
|
10
10
|
*/
|
|
11
11
|
id: string;
|
|
12
12
|
machineId: string;
|
|
13
|
+
/**
|
|
14
|
+
* Workspace name. Required for user/session/OAuth requests. Optional for API keys because API keys are workspace-scoped; if provided with an API key, it must match the key's workspace.
|
|
15
|
+
*/
|
|
16
|
+
workspace?: string | undefined;
|
|
13
17
|
};
|
|
14
18
|
|
|
15
19
|
/** @internal */
|
|
16
20
|
export type CancelMachinesMachineDrainRequest$Outbound = {
|
|
17
21
|
id: string;
|
|
18
22
|
machineId: string;
|
|
23
|
+
workspace?: string | undefined;
|
|
19
24
|
};
|
|
20
25
|
|
|
21
26
|
/** @internal */
|
|
@@ -25,6 +30,7 @@ export const CancelMachinesMachineDrainRequest$outboundSchema: z.ZodType<
|
|
|
25
30
|
> = z.object({
|
|
26
31
|
id: z.string(),
|
|
27
32
|
machineId: z.string(),
|
|
33
|
+
workspace: z.string().optional(),
|
|
28
34
|
});
|
|
29
35
|
|
|
30
36
|
export function cancelMachinesMachineDrainRequestToJSON(
|
|
@@ -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
|
+
|
|
7
|
+
export type CreateMachinesJoinTokenRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* Unique identifier for the deployment.
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
/**
|
|
13
|
+
* Workspace name. Required for user/session/OAuth requests. Optional for API keys because API keys are workspace-scoped; if provided with an API key, it must match the key's workspace.
|
|
14
|
+
*/
|
|
15
|
+
workspace?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export type CreateMachinesJoinTokenRequest$Outbound = {
|
|
20
|
+
id: string;
|
|
21
|
+
workspace?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const CreateMachinesJoinTokenRequest$outboundSchema: z.ZodType<
|
|
26
|
+
CreateMachinesJoinTokenRequest$Outbound,
|
|
27
|
+
CreateMachinesJoinTokenRequest
|
|
28
|
+
> = z.object({
|
|
29
|
+
id: z.string(),
|
|
30
|
+
workspace: z.string().optional(),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function createMachinesJoinTokenRequestToJSON(
|
|
34
|
+
createMachinesJoinTokenRequest: CreateMachinesJoinTokenRequest,
|
|
35
|
+
): string {
|
|
36
|
+
return JSON.stringify(
|
|
37
|
+
CreateMachinesJoinTokenRequest$outboundSchema.parse(
|
|
38
|
+
createMachinesJoinTokenRequest,
|
|
39
|
+
),
|
|
40
|
+
);
|
|
41
|
+
}
|
|
@@ -12,6 +12,10 @@ export type DrainMachinesMachineRequest = {
|
|
|
12
12
|
*/
|
|
13
13
|
id: string;
|
|
14
14
|
machineId: string;
|
|
15
|
+
/**
|
|
16
|
+
* Workspace name. Required for user/session/OAuth requests. Optional for API keys because API keys are workspace-scoped; if provided with an API key, it must match the key's workspace.
|
|
17
|
+
*/
|
|
18
|
+
workspace?: string | undefined;
|
|
15
19
|
drainMachinesMachineRequest?: models.DrainMachinesMachineRequest | undefined;
|
|
16
20
|
};
|
|
17
21
|
|
|
@@ -19,6 +23,7 @@ export type DrainMachinesMachineRequest = {
|
|
|
19
23
|
export type DrainMachinesMachineRequest$Outbound = {
|
|
20
24
|
id: string;
|
|
21
25
|
machineId: string;
|
|
26
|
+
workspace?: string | undefined;
|
|
22
27
|
DrainMachinesMachineRequest?:
|
|
23
28
|
| models.DrainMachinesMachineRequest$Outbound
|
|
24
29
|
| undefined;
|
|
@@ -31,6 +36,7 @@ export const DrainMachinesMachineRequest$outboundSchema: z.ZodType<
|
|
|
31
36
|
> = z.object({
|
|
32
37
|
id: z.string(),
|
|
33
38
|
machineId: z.string(),
|
|
39
|
+
workspace: z.string().optional(),
|
|
34
40
|
drainMachinesMachineRequest: models.DrainMachinesMachineRequest$outboundSchema
|
|
35
41
|
.optional(),
|
|
36
42
|
}).transform((v) => {
|
|
@@ -16,6 +16,7 @@ export * from "./createdeploymenttoken.js";
|
|
|
16
16
|
export * from "./createdomain.js";
|
|
17
17
|
export * from "./createdomainendpoint.js";
|
|
18
18
|
export * from "./createfirstpartydeploymentsession.js";
|
|
19
|
+
export * from "./createmachinesjointoken.js";
|
|
19
20
|
export * from "./createmanager.js";
|
|
20
21
|
export * from "./createproject.js";
|
|
21
22
|
export * from "./createprojectfromtemplate.js";
|
|
@@ -9,11 +9,16 @@ export type ListMachinesInventoryRequest = {
|
|
|
9
9
|
* Unique identifier for the deployment.
|
|
10
10
|
*/
|
|
11
11
|
id: string;
|
|
12
|
+
/**
|
|
13
|
+
* Workspace name. Required for user/session/OAuth requests. Optional for API keys because API keys are workspace-scoped; if provided with an API key, it must match the key's workspace.
|
|
14
|
+
*/
|
|
15
|
+
workspace?: string | undefined;
|
|
12
16
|
};
|
|
13
17
|
|
|
14
18
|
/** @internal */
|
|
15
19
|
export type ListMachinesInventoryRequest$Outbound = {
|
|
16
20
|
id: string;
|
|
21
|
+
workspace?: string | undefined;
|
|
17
22
|
};
|
|
18
23
|
|
|
19
24
|
/** @internal */
|
|
@@ -22,6 +27,7 @@ export const ListMachinesInventoryRequest$outboundSchema: z.ZodType<
|
|
|
22
27
|
ListMachinesInventoryRequest
|
|
23
28
|
> = z.object({
|
|
24
29
|
id: z.string(),
|
|
30
|
+
workspace: z.string().optional(),
|
|
25
31
|
});
|
|
26
32
|
|
|
27
33
|
export function listMachinesInventoryRequestToJSON(
|
|
@@ -9,11 +9,16 @@ export type ListMachinesJoinTokensRequest = {
|
|
|
9
9
|
* Unique identifier for the deployment.
|
|
10
10
|
*/
|
|
11
11
|
id: string;
|
|
12
|
+
/**
|
|
13
|
+
* Workspace name. Required for user/session/OAuth requests. Optional for API keys because API keys are workspace-scoped; if provided with an API key, it must match the key's workspace.
|
|
14
|
+
*/
|
|
15
|
+
workspace?: string | undefined;
|
|
12
16
|
};
|
|
13
17
|
|
|
14
18
|
/** @internal */
|
|
15
19
|
export type ListMachinesJoinTokensRequest$Outbound = {
|
|
16
20
|
id: string;
|
|
21
|
+
workspace?: string | undefined;
|
|
17
22
|
};
|
|
18
23
|
|
|
19
24
|
/** @internal */
|
|
@@ -22,6 +27,7 @@ export const ListMachinesJoinTokensRequest$outboundSchema: z.ZodType<
|
|
|
22
27
|
ListMachinesJoinTokensRequest
|
|
23
28
|
> = z.object({
|
|
24
29
|
id: z.string(),
|
|
30
|
+
workspace: z.string().optional(),
|
|
25
31
|
});
|
|
26
32
|
|
|
27
33
|
export function listMachinesJoinTokensRequestToJSON(
|
|
@@ -10,12 +10,17 @@ export type RemoveMachinesMachineRequest = {
|
|
|
10
10
|
*/
|
|
11
11
|
id: string;
|
|
12
12
|
machineId: string;
|
|
13
|
+
/**
|
|
14
|
+
* Workspace name. Required for user/session/OAuth requests. Optional for API keys because API keys are workspace-scoped; if provided with an API key, it must match the key's workspace.
|
|
15
|
+
*/
|
|
16
|
+
workspace?: string | undefined;
|
|
13
17
|
};
|
|
14
18
|
|
|
15
19
|
/** @internal */
|
|
16
20
|
export type RemoveMachinesMachineRequest$Outbound = {
|
|
17
21
|
id: string;
|
|
18
22
|
machineId: string;
|
|
23
|
+
workspace?: string | undefined;
|
|
19
24
|
};
|
|
20
25
|
|
|
21
26
|
/** @internal */
|
|
@@ -25,6 +30,7 @@ export const RemoveMachinesMachineRequest$outboundSchema: z.ZodType<
|
|
|
25
30
|
> = z.object({
|
|
26
31
|
id: z.string(),
|
|
27
32
|
machineId: z.string(),
|
|
33
|
+
workspace: z.string().optional(),
|
|
28
34
|
});
|
|
29
35
|
|
|
30
36
|
export function removeMachinesMachineRequestToJSON(
|
|
@@ -10,12 +10,17 @@ export type RevokeMachinesJoinTokenRequest = {
|
|
|
10
10
|
*/
|
|
11
11
|
id: string;
|
|
12
12
|
tokenId: string;
|
|
13
|
+
/**
|
|
14
|
+
* Workspace name. Required for user/session/OAuth requests. Optional for API keys because API keys are workspace-scoped; if provided with an API key, it must match the key's workspace.
|
|
15
|
+
*/
|
|
16
|
+
workspace?: string | undefined;
|
|
13
17
|
};
|
|
14
18
|
|
|
15
19
|
/** @internal */
|
|
16
20
|
export type RevokeMachinesJoinTokenRequest$Outbound = {
|
|
17
21
|
id: string;
|
|
18
22
|
tokenId: string;
|
|
23
|
+
workspace?: string | undefined;
|
|
19
24
|
};
|
|
20
25
|
|
|
21
26
|
/** @internal */
|
|
@@ -25,6 +30,7 @@ export const RevokeMachinesJoinTokenRequest$outboundSchema: z.ZodType<
|
|
|
25
30
|
> = z.object({
|
|
26
31
|
id: z.string(),
|
|
27
32
|
tokenId: z.string(),
|
|
33
|
+
workspace: z.string().optional(),
|
|
28
34
|
});
|
|
29
35
|
|
|
30
36
|
export function revokeMachinesJoinTokenRequestToJSON(
|
|
@@ -9,11 +9,16 @@ export type RotateMachinesJoinTokenRequest = {
|
|
|
9
9
|
* Unique identifier for the deployment.
|
|
10
10
|
*/
|
|
11
11
|
id: string;
|
|
12
|
+
/**
|
|
13
|
+
* Workspace name. Required for user/session/OAuth requests. Optional for API keys because API keys are workspace-scoped; if provided with an API key, it must match the key's workspace.
|
|
14
|
+
*/
|
|
15
|
+
workspace?: string | undefined;
|
|
12
16
|
};
|
|
13
17
|
|
|
14
18
|
/** @internal */
|
|
15
19
|
export type RotateMachinesJoinTokenRequest$Outbound = {
|
|
16
20
|
id: string;
|
|
21
|
+
workspace?: string | undefined;
|
|
17
22
|
};
|
|
18
23
|
|
|
19
24
|
/** @internal */
|
|
@@ -22,6 +27,7 @@ export const RotateMachinesJoinTokenRequest$outboundSchema: z.ZodType<
|
|
|
22
27
|
RotateMachinesJoinTokenRequest
|
|
23
28
|
> = z.object({
|
|
24
29
|
id: z.string(),
|
|
30
|
+
workspace: z.string().optional(),
|
|
25
31
|
});
|
|
26
32
|
|
|
27
33
|
export function rotateMachinesJoinTokenRequestToJSON(
|
|
@@ -16,6 +16,14 @@ export type RotateMachinesJoinTokenResponse = {
|
|
|
16
16
|
controlPlaneUrl: string;
|
|
17
17
|
clusterId: string;
|
|
18
18
|
token: MachinesJoinTokenSummary;
|
|
19
|
+
/**
|
|
20
|
+
* Deploy CLI install script URL, or null when no ready CLI package exists.
|
|
21
|
+
*/
|
|
22
|
+
cliInstallScriptUrl: string | null;
|
|
23
|
+
/**
|
|
24
|
+
* CLI command name to use in join instructions.
|
|
25
|
+
*/
|
|
26
|
+
cliCommandName: string | null;
|
|
19
27
|
};
|
|
20
28
|
|
|
21
29
|
/** @internal */
|
|
@@ -27,6 +35,8 @@ export const RotateMachinesJoinTokenResponse$inboundSchema: z.ZodType<
|
|
|
27
35
|
controlPlaneUrl: z.string(),
|
|
28
36
|
clusterId: z.string(),
|
|
29
37
|
token: MachinesJoinTokenSummary$inboundSchema,
|
|
38
|
+
cliInstallScriptUrl: z.nullable(z.string()),
|
|
39
|
+
cliCommandName: z.nullable(z.string()),
|
|
30
40
|
});
|
|
31
41
|
|
|
32
42
|
export function rotateMachinesJoinTokenResponseFromJSON(
|
package/src/sdk/machines.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { machinesCancelMachineDrain } from "../funcs/machinesCancelMachineDrain.js";
|
|
6
|
+
import { machinesCreateJoinToken } from "../funcs/machinesCreateJoinToken.js";
|
|
6
7
|
import { machinesDrainMachine } from "../funcs/machinesDrainMachine.js";
|
|
7
8
|
import { machinesListInventory } from "../funcs/machinesListInventory.js";
|
|
8
9
|
import { machinesListJoinTokens } from "../funcs/machinesListJoinTokens.js";
|
|
@@ -26,6 +27,17 @@ export class Machines extends ClientSDK {
|
|
|
26
27
|
));
|
|
27
28
|
}
|
|
28
29
|
|
|
30
|
+
async createJoinToken(
|
|
31
|
+
request: operations.CreateMachinesJoinTokenRequest,
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): Promise<models.CreateMachinesJoinTokenResponse> {
|
|
34
|
+
return unwrapAsync(machinesCreateJoinToken(
|
|
35
|
+
this,
|
|
36
|
+
request,
|
|
37
|
+
options,
|
|
38
|
+
));
|
|
39
|
+
}
|
|
40
|
+
|
|
29
41
|
async rotateJoinToken(
|
|
30
42
|
request: operations.RotateMachinesJoinTokenRequest,
|
|
31
43
|
options?: RequestOptions,
|
package/src/sdk/resources.ts
CHANGED
|
@@ -33,6 +33,9 @@ export class Resources extends ClientSDK {
|
|
|
33
33
|
));
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
/**
|
|
37
|
+
* List distinct deployments that have commands, including deployment group info. Use for filter dropdowns in the dashboard.
|
|
38
|
+
*/
|
|
36
39
|
async listDeployments(
|
|
37
40
|
request: operations.ListResourceDeploymentsRequest,
|
|
38
41
|
options?: RequestOptions,
|