@alienplatform/manager-api 1.4.2 → 1.7.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 +7 -1
- package/esm/funcs/deploymentsDeleteDeployment.js +7 -9
- package/esm/funcs/deploymentsDeleteDeployment.js.map +1 -1
- package/esm/funcs/releasesListReleases.d.ts +16 -0
- package/esm/funcs/releasesListReleases.d.ts.map +1 -0
- package/esm/funcs/releasesListReleases.js +67 -0
- package/esm/funcs/releasesListReleases.js.map +1 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/azurecustomcertificateconfig.d.ts +2 -0
- package/esm/models/azurecustomcertificateconfig.d.ts.map +1 -1
- package/esm/models/azurecustomcertificateconfig.js +2 -0
- package/esm/models/azurecustomcertificateconfig.js.map +1 -1
- package/esm/models/computecapacityblocker.d.ts +21 -0
- package/esm/models/computecapacityblocker.d.ts.map +1 -0
- package/esm/models/computecapacityblocker.js +17 -0
- package/esm/models/computecapacityblocker.js.map +1 -0
- package/esm/models/computecapacityblockercategory.d.ts +12 -0
- package/esm/models/computecapacityblockercategory.d.ts.map +1 -0
- package/esm/models/computecapacityblockercategory.js +13 -0
- package/esm/models/computecapacityblockercategory.js.map +1 -0
- package/esm/models/computecapacitygroupstatus.d.ts +3 -0
- package/esm/models/computecapacitygroupstatus.d.ts.map +1 -1
- package/esm/models/computecapacitygroupstatus.js +2 -0
- package/esm/models/computecapacitygroupstatus.js.map +1 -1
- package/esm/models/deletedeploymentaction.d.ts +11 -0
- package/esm/models/deletedeploymentaction.d.ts.map +1 -0
- package/esm/models/deletedeploymentaction.js +12 -0
- package/esm/models/deletedeploymentaction.js.map +1 -0
- package/esm/models/deletedeploymentrequest.d.ts +13 -0
- package/esm/models/deletedeploymentrequest.d.ts.map +1 -0
- package/esm/models/deletedeploymentrequest.js +13 -0
- package/esm/models/deletedeploymentrequest.js.map +1 -0
- package/esm/models/index.d.ts +5 -1
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +5 -1
- package/esm/models/index.js.map +1 -1
- package/esm/models/listreleasesresponse.d.ts +14 -0
- package/esm/models/listreleasesresponse.d.ts.map +1 -0
- package/esm/models/listreleasesresponse.js +14 -0
- package/esm/models/listreleasesresponse.js.map +1 -0
- package/esm/models/networkheartbeatdata.d.ts +2 -0
- package/esm/models/networkheartbeatdata.d.ts.map +1 -1
- package/esm/models/networkheartbeatdata.js +1 -0
- package/esm/models/networkheartbeatdata.js.map +1 -1
- package/esm/models/networksettings.d.ts +5 -0
- package/esm/models/networksettings.d.ts.map +1 -1
- package/esm/models/networksettings.js +4 -0
- package/esm/models/networksettings.js.map +1 -1
- package/esm/models/operations/deletedeployment.d.ts +2 -10
- package/esm/models/operations/deletedeployment.d.ts.map +1 -1
- package/esm/models/operations/deletedeployment.js +6 -2
- package/esm/models/operations/deletedeployment.js.map +1 -1
- package/esm/models/reconcilerequest.d.ts +0 -2
- package/esm/models/reconcilerequest.d.ts.map +1 -1
- package/esm/models/reconcilerequest.js +0 -1
- package/esm/models/reconcilerequest.js.map +1 -1
- package/esm/models/resourcestatus.d.ts +1 -0
- package/esm/models/resourcestatus.d.ts.map +1 -1
- package/esm/models/resourcestatus.js +1 -0
- package/esm/models/resourcestatus.js.map +1 -1
- package/esm/models/stackimportrequest.d.ts +8 -0
- package/esm/models/stackimportrequest.d.ts.map +1 -1
- package/esm/models/stackimportrequest.js +1 -0
- package/esm/models/stackimportrequest.js.map +1 -1
- package/esm/sdk/releases.d.ts +6 -0
- package/esm/sdk/releases.d.ts.map +1 -1
- package/esm/sdk/releases.js +9 -0
- package/esm/sdk/releases.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +3 -3
- package/src/funcs/deploymentsDeleteDeployment.ts +7 -10
- package/src/funcs/releasesListReleases.ts +141 -0
- package/src/lib/config.ts +2 -2
- package/src/models/azurecustomcertificateconfig.ts +4 -0
- package/src/models/computecapacityblocker.ts +46 -0
- package/src/models/computecapacityblockercategory.ts +21 -0
- package/src/models/computecapacitygroupstatus.ts +8 -0
- package/src/models/deletedeploymentaction.ts +18 -0
- package/src/models/deletedeploymentrequest.ts +34 -0
- package/src/models/index.ts +5 -1
- package/src/models/listreleasesresponse.ts +37 -0
- package/src/models/networkheartbeatdata.ts +3 -0
- package/src/models/networksettings.ts +9 -0
- package/src/models/operations/deletedeployment.ts +8 -12
- package/src/models/reconcilerequest.ts +0 -3
- package/src/models/resourcestatus.ts +1 -0
- package/src/models/stackimportrequest.ts +9 -0
- package/src/sdk/releases.ts +15 -0
- package/esm/models/deletescope.d.ts +0 -30
- package/esm/models/deletescope.d.ts.map +0 -1
- package/esm/models/deletescope.js +0 -21
- package/esm/models/deletescope.js.map +0 -1
- package/src/models/deletescope.ts +0 -37
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { AlienManagerCore } from "../core.js";
|
|
6
|
+
import * as M from "../lib/matchers.js";
|
|
7
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
9
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
10
|
+
import { pathToFunc } from "../lib/url.js";
|
|
11
|
+
import { AlienManagerError } from "../models/errors/alienmanagererror.js";
|
|
12
|
+
import {
|
|
13
|
+
ConnectionError,
|
|
14
|
+
InvalidRequestError,
|
|
15
|
+
RequestAbortedError,
|
|
16
|
+
RequestTimeoutError,
|
|
17
|
+
UnexpectedClientError,
|
|
18
|
+
} from "../models/errors/httpclienterrors.js";
|
|
19
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
20
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
21
|
+
import * as models from "../models/index.js";
|
|
22
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
23
|
+
import { Result } from "../types/fp.js";
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* `GET /v1/releases` — Inbound: workspace / project bearer (or authenticated
|
|
27
|
+
* user). Outbound: caller bearer (passthrough). Returns only releases the
|
|
28
|
+
* caller may read.
|
|
29
|
+
*/
|
|
30
|
+
export function releasesListReleases(
|
|
31
|
+
client: AlienManagerCore,
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): APIPromise<
|
|
34
|
+
Result<
|
|
35
|
+
models.ListReleasesResponse,
|
|
36
|
+
| AlienManagerError
|
|
37
|
+
| ResponseValidationError
|
|
38
|
+
| ConnectionError
|
|
39
|
+
| RequestAbortedError
|
|
40
|
+
| RequestTimeoutError
|
|
41
|
+
| InvalidRequestError
|
|
42
|
+
| UnexpectedClientError
|
|
43
|
+
| SDKValidationError
|
|
44
|
+
>
|
|
45
|
+
> {
|
|
46
|
+
return new APIPromise($do(
|
|
47
|
+
client,
|
|
48
|
+
options,
|
|
49
|
+
));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
async function $do(
|
|
53
|
+
client: AlienManagerCore,
|
|
54
|
+
options?: RequestOptions,
|
|
55
|
+
): Promise<
|
|
56
|
+
[
|
|
57
|
+
Result<
|
|
58
|
+
models.ListReleasesResponse,
|
|
59
|
+
| AlienManagerError
|
|
60
|
+
| ResponseValidationError
|
|
61
|
+
| ConnectionError
|
|
62
|
+
| RequestAbortedError
|
|
63
|
+
| RequestTimeoutError
|
|
64
|
+
| InvalidRequestError
|
|
65
|
+
| UnexpectedClientError
|
|
66
|
+
| SDKValidationError
|
|
67
|
+
>,
|
|
68
|
+
APICall,
|
|
69
|
+
]
|
|
70
|
+
> {
|
|
71
|
+
const path = pathToFunc("/v1/releases")();
|
|
72
|
+
|
|
73
|
+
const headers = new Headers(compactMap({
|
|
74
|
+
Accept: "application/json",
|
|
75
|
+
}));
|
|
76
|
+
|
|
77
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
78
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
79
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
80
|
+
|
|
81
|
+
const context = {
|
|
82
|
+
options: client._options,
|
|
83
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
84
|
+
operationID: "list_releases",
|
|
85
|
+
oAuth2Scopes: null,
|
|
86
|
+
|
|
87
|
+
resolvedSecurity: requestSecurity,
|
|
88
|
+
|
|
89
|
+
securitySource: client._options.bearer,
|
|
90
|
+
retryConfig: options?.retries
|
|
91
|
+
|| client._options.retryConfig
|
|
92
|
+
|| { strategy: "none" },
|
|
93
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
const requestRes = client._createRequest(context, {
|
|
97
|
+
security: requestSecurity,
|
|
98
|
+
method: "GET",
|
|
99
|
+
baseURL: options?.serverURL,
|
|
100
|
+
path: path,
|
|
101
|
+
headers: headers,
|
|
102
|
+
userAgent: client._options.userAgent,
|
|
103
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
104
|
+
}, options);
|
|
105
|
+
if (!requestRes.ok) {
|
|
106
|
+
return [requestRes, { status: "invalid" }];
|
|
107
|
+
}
|
|
108
|
+
const req = requestRes.value;
|
|
109
|
+
|
|
110
|
+
const doResult = await client._do(req, {
|
|
111
|
+
context,
|
|
112
|
+
errorCodes: ["401", "4XX", "5XX"],
|
|
113
|
+
retryConfig: context.retryConfig,
|
|
114
|
+
retryCodes: context.retryCodes,
|
|
115
|
+
});
|
|
116
|
+
if (!doResult.ok) {
|
|
117
|
+
return [doResult, { status: "request-error", request: req }];
|
|
118
|
+
}
|
|
119
|
+
const response = doResult.value;
|
|
120
|
+
|
|
121
|
+
const [result] = await M.match<
|
|
122
|
+
models.ListReleasesResponse,
|
|
123
|
+
| AlienManagerError
|
|
124
|
+
| ResponseValidationError
|
|
125
|
+
| ConnectionError
|
|
126
|
+
| RequestAbortedError
|
|
127
|
+
| RequestTimeoutError
|
|
128
|
+
| InvalidRequestError
|
|
129
|
+
| UnexpectedClientError
|
|
130
|
+
| SDKValidationError
|
|
131
|
+
>(
|
|
132
|
+
M.json(200, models.ListReleasesResponse$inboundSchema),
|
|
133
|
+
M.fail([401, "4XX"]),
|
|
134
|
+
M.fail("5XX"),
|
|
135
|
+
)(response, req);
|
|
136
|
+
if (!result.ok) {
|
|
137
|
+
return [result, { status: "complete", request: req, response }];
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
return [result, { status: "complete", request: req, response }];
|
|
141
|
+
}
|
package/src/lib/config.ts
CHANGED
|
@@ -58,8 +58,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
58
58
|
export const SDK_METADATA = {
|
|
59
59
|
language: "typescript",
|
|
60
60
|
openapiDocVersion: "1.0.0",
|
|
61
|
-
sdkVersion: "1.2.
|
|
61
|
+
sdkVersion: "1.2.55",
|
|
62
62
|
genVersion: "2.788.15",
|
|
63
63
|
userAgent:
|
|
64
|
-
"speakeasy-sdk/typescript 1.2.
|
|
64
|
+
"speakeasy-sdk/typescript 1.2.55 2.788.15 1.0.0 @alienplatform/manager-api",
|
|
65
65
|
} as const;
|
|
@@ -9,6 +9,7 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
|
9
9
|
|
|
10
10
|
export type AzureCustomCertificateConfig = {
|
|
11
11
|
keyVaultCertificateId: string;
|
|
12
|
+
keyVaultResourceId?: string | null | undefined;
|
|
12
13
|
};
|
|
13
14
|
|
|
14
15
|
/** @internal */
|
|
@@ -17,10 +18,12 @@ export const AzureCustomCertificateConfig$inboundSchema: z.ZodType<
|
|
|
17
18
|
unknown
|
|
18
19
|
> = z.object({
|
|
19
20
|
keyVaultCertificateId: z.string(),
|
|
21
|
+
keyVaultResourceId: z.nullable(z.string()).optional(),
|
|
20
22
|
});
|
|
21
23
|
/** @internal */
|
|
22
24
|
export type AzureCustomCertificateConfig$Outbound = {
|
|
23
25
|
keyVaultCertificateId: string;
|
|
26
|
+
keyVaultResourceId?: string | null | undefined;
|
|
24
27
|
};
|
|
25
28
|
|
|
26
29
|
/** @internal */
|
|
@@ -29,6 +32,7 @@ export const AzureCustomCertificateConfig$outboundSchema: z.ZodType<
|
|
|
29
32
|
AzureCustomCertificateConfig
|
|
30
33
|
> = z.object({
|
|
31
34
|
keyVaultCertificateId: z.string(),
|
|
35
|
+
keyVaultResourceId: z.nullable(z.string()).optional(),
|
|
32
36
|
});
|
|
33
37
|
|
|
34
38
|
export function azureCustomCertificateConfigToJSON(
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import {
|
|
7
|
+
ComputeCapacityBlockerCategory,
|
|
8
|
+
ComputeCapacityBlockerCategory$outboundSchema,
|
|
9
|
+
} from "./computecapacityblockercategory.js";
|
|
10
|
+
|
|
11
|
+
export type ComputeCapacityBlocker = {
|
|
12
|
+
category: ComputeCapacityBlockerCategory;
|
|
13
|
+
message: string;
|
|
14
|
+
observedAt: Date;
|
|
15
|
+
providerCode?: string | null | undefined;
|
|
16
|
+
providerReference?: string | null | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export type ComputeCapacityBlocker$Outbound = {
|
|
21
|
+
category: string;
|
|
22
|
+
message: string;
|
|
23
|
+
observedAt: string;
|
|
24
|
+
providerCode?: string | null | undefined;
|
|
25
|
+
providerReference?: string | null | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const ComputeCapacityBlocker$outboundSchema: z.ZodType<
|
|
30
|
+
ComputeCapacityBlocker$Outbound,
|
|
31
|
+
ComputeCapacityBlocker
|
|
32
|
+
> = z.object({
|
|
33
|
+
category: ComputeCapacityBlockerCategory$outboundSchema,
|
|
34
|
+
message: z.string(),
|
|
35
|
+
observedAt: z.date().transform(v => v.toISOString()),
|
|
36
|
+
providerCode: z.nullable(z.string()).optional(),
|
|
37
|
+
providerReference: z.nullable(z.string()).optional(),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export function computeCapacityBlockerToJSON(
|
|
41
|
+
computeCapacityBlocker: ComputeCapacityBlocker,
|
|
42
|
+
): string {
|
|
43
|
+
return JSON.stringify(
|
|
44
|
+
ComputeCapacityBlocker$outboundSchema.parse(computeCapacityBlocker),
|
|
45
|
+
);
|
|
46
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 ComputeCapacityBlockerCategory = {
|
|
9
|
+
Quota: "quota",
|
|
10
|
+
Capacity: "capacity",
|
|
11
|
+
Allocation: "allocation",
|
|
12
|
+
Other: "other",
|
|
13
|
+
} as const;
|
|
14
|
+
export type ComputeCapacityBlockerCategory = ClosedEnum<
|
|
15
|
+
typeof ComputeCapacityBlockerCategory
|
|
16
|
+
>;
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const ComputeCapacityBlockerCategory$outboundSchema: z.ZodEnum<
|
|
20
|
+
typeof ComputeCapacityBlockerCategory
|
|
21
|
+
> = z.enum(ComputeCapacityBlockerCategory);
|
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
|
+
import {
|
|
7
|
+
ComputeCapacityBlocker,
|
|
8
|
+
ComputeCapacityBlocker$Outbound,
|
|
9
|
+
ComputeCapacityBlocker$outboundSchema,
|
|
10
|
+
} from "./computecapacityblocker.js";
|
|
6
11
|
import {
|
|
7
12
|
ComputeCapacityRecommendation,
|
|
8
13
|
ComputeCapacityRecommendation$Outbound,
|
|
@@ -10,6 +15,7 @@ import {
|
|
|
10
15
|
} from "./computecapacityrecommendation.js";
|
|
11
16
|
|
|
12
17
|
export type ComputeCapacityGroupStatus = {
|
|
18
|
+
capacityBlocker?: ComputeCapacityBlocker | null | undefined;
|
|
13
19
|
currentMachines: number;
|
|
14
20
|
desiredMachines: number;
|
|
15
21
|
groupId: string;
|
|
@@ -21,6 +27,7 @@ export type ComputeCapacityGroupStatus = {
|
|
|
21
27
|
|
|
22
28
|
/** @internal */
|
|
23
29
|
export type ComputeCapacityGroupStatus$Outbound = {
|
|
30
|
+
capacityBlocker?: ComputeCapacityBlocker$Outbound | null | undefined;
|
|
24
31
|
currentMachines: number;
|
|
25
32
|
desiredMachines: number;
|
|
26
33
|
groupId: string;
|
|
@@ -35,6 +42,7 @@ export const ComputeCapacityGroupStatus$outboundSchema: z.ZodType<
|
|
|
35
42
|
ComputeCapacityGroupStatus$Outbound,
|
|
36
43
|
ComputeCapacityGroupStatus
|
|
37
44
|
> = z.object({
|
|
45
|
+
capacityBlocker: z.nullable(ComputeCapacityBlocker$outboundSchema).optional(),
|
|
38
46
|
currentMachines: z.int(),
|
|
39
47
|
desiredMachines: z.int(),
|
|
40
48
|
groupId: z.string(),
|
|
@@ -0,0 +1,18 @@
|
|
|
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 DeleteDeploymentAction = {
|
|
9
|
+
Cleanup: "cleanup",
|
|
10
|
+
Detach: "detach",
|
|
11
|
+
Forget: "forget",
|
|
12
|
+
} as const;
|
|
13
|
+
export type DeleteDeploymentAction = ClosedEnum<typeof DeleteDeploymentAction>;
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const DeleteDeploymentAction$outboundSchema: z.ZodEnum<
|
|
17
|
+
typeof DeleteDeploymentAction
|
|
18
|
+
> = z.enum(DeleteDeploymentAction);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import {
|
|
7
|
+
DeleteDeploymentAction,
|
|
8
|
+
DeleteDeploymentAction$outboundSchema,
|
|
9
|
+
} from "./deletedeploymentaction.js";
|
|
10
|
+
|
|
11
|
+
export type DeleteDeploymentRequest = {
|
|
12
|
+
action: DeleteDeploymentAction;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type DeleteDeploymentRequest$Outbound = {
|
|
17
|
+
action: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const DeleteDeploymentRequest$outboundSchema: z.ZodType<
|
|
22
|
+
DeleteDeploymentRequest$Outbound,
|
|
23
|
+
DeleteDeploymentRequest
|
|
24
|
+
> = z.object({
|
|
25
|
+
action: DeleteDeploymentAction$outboundSchema,
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export function deleteDeploymentRequestToJSON(
|
|
29
|
+
deleteDeploymentRequest: DeleteDeploymentRequest,
|
|
30
|
+
): string {
|
|
31
|
+
return JSON.stringify(
|
|
32
|
+
DeleteDeploymentRequest$outboundSchema.parse(deleteDeploymentRequest),
|
|
33
|
+
);
|
|
34
|
+
}
|
package/src/models/index.ts
CHANGED
|
@@ -32,6 +32,8 @@ export * from "./commandresponse.js";
|
|
|
32
32
|
export * from "./commandsinfo.js";
|
|
33
33
|
export * from "./commandstate.js";
|
|
34
34
|
export * from "./commandstatusresponse.js";
|
|
35
|
+
export * from "./computecapacityblocker.js";
|
|
36
|
+
export * from "./computecapacityblockercategory.js";
|
|
35
37
|
export * from "./computecapacitygroupstatus.js";
|
|
36
38
|
export * from "./computecapacityrecommendation.js";
|
|
37
39
|
export * from "./computeclusterheartbeatdata.js";
|
|
@@ -47,7 +49,8 @@ export * from "./createtokenresponse.js";
|
|
|
47
49
|
export * from "./customcertificateconfig.js";
|
|
48
50
|
export * from "./customdomainconfig.js";
|
|
49
51
|
export * from "./daemonheartbeatdata.js";
|
|
50
|
-
export * from "./
|
|
52
|
+
export * from "./deletedeploymentaction.js";
|
|
53
|
+
export * from "./deletedeploymentrequest.js";
|
|
51
54
|
export * from "./deploymentgroupminimal.js";
|
|
52
55
|
export * from "./deploymentgroupresponse.js";
|
|
53
56
|
export * from "./deploymentinforesponse.js";
|
|
@@ -101,6 +104,7 @@ export * from "./leaserequest.js";
|
|
|
101
104
|
export * from "./leaseresponse.js";
|
|
102
105
|
export * from "./listdeploymentgroupsresponse.js";
|
|
103
106
|
export * from "./listdeploymentsresponse.js";
|
|
107
|
+
export * from "./listreleasesresponse.js";
|
|
104
108
|
export * from "./localoperation.js";
|
|
105
109
|
export * from "./localruntimeeventsnapshot.js";
|
|
106
110
|
export * from "./localruntimeeventsubject.js";
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
ReleaseResponse,
|
|
11
|
+
ReleaseResponse$inboundSchema,
|
|
12
|
+
} from "./releaseresponse.js";
|
|
13
|
+
|
|
14
|
+
export type ListReleasesResponse = {
|
|
15
|
+
/**
|
|
16
|
+
* Releases the caller may read, newest first.
|
|
17
|
+
*/
|
|
18
|
+
items: Array<ReleaseResponse>;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const ListReleasesResponse$inboundSchema: z.ZodType<
|
|
23
|
+
ListReleasesResponse,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
items: z.array(ReleaseResponse$inboundSchema),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function listReleasesResponseFromJSON(
|
|
30
|
+
jsonString: string,
|
|
31
|
+
): SafeParseResult<ListReleasesResponse, SDKValidationError> {
|
|
32
|
+
return safeParse(
|
|
33
|
+
jsonString,
|
|
34
|
+
(x) => ListReleasesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
35
|
+
`Failed to parse 'ListReleasesResponse' from JSON`,
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
} from "./networkheartbeatstatus.js";
|
|
11
11
|
|
|
12
12
|
export type NetworkHeartbeatDataAzureVnet = {
|
|
13
|
+
applicationGatewaySubnetName?: string | null | undefined;
|
|
13
14
|
cidrBlock?: string | null | undefined;
|
|
14
15
|
isByoVnet: boolean;
|
|
15
16
|
lastByoVnetVerificationErrorCode?: string | null | undefined;
|
|
@@ -64,6 +65,7 @@ export type NetworkHeartbeatData =
|
|
|
64
65
|
|
|
65
66
|
/** @internal */
|
|
66
67
|
export type NetworkHeartbeatDataAzureVnet$Outbound = {
|
|
68
|
+
applicationGatewaySubnetName?: string | null | undefined;
|
|
67
69
|
cidrBlock?: string | null | undefined;
|
|
68
70
|
isByoVnet: boolean;
|
|
69
71
|
lastByoVnetVerificationErrorCode?: string | null | undefined;
|
|
@@ -85,6 +87,7 @@ export const NetworkHeartbeatDataAzureVnet$outboundSchema: z.ZodType<
|
|
|
85
87
|
NetworkHeartbeatDataAzureVnet$Outbound,
|
|
86
88
|
NetworkHeartbeatDataAzureVnet
|
|
87
89
|
> = z.object({
|
|
90
|
+
applicationGatewaySubnetName: z.nullable(z.string()).optional(),
|
|
88
91
|
cidrBlock: z.nullable(z.string()).optional(),
|
|
89
92
|
isByoVnet: z.boolean(),
|
|
90
93
|
lastByoVnetVerificationErrorCode: z.nullable(z.string()).optional(),
|
|
@@ -17,6 +17,10 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
|
17
17
|
* The customer is responsible for routing and egress (NAT Gateway, proxy, VPN, etc.).
|
|
18
18
|
*/
|
|
19
19
|
export type NetworkSettingsByoVnetAzure = {
|
|
20
|
+
/**
|
|
21
|
+
* Name of the dedicated classic Application Gateway subnet within the VNet.
|
|
22
|
+
*/
|
|
23
|
+
applicationGatewaySubnetName?: string | null | undefined;
|
|
20
24
|
/**
|
|
21
25
|
* Name of the private subnet within the VNet
|
|
22
26
|
*/
|
|
@@ -161,12 +165,14 @@ export const NetworkSettingsByoVnetAzure$inboundSchema: z.ZodType<
|
|
|
161
165
|
NetworkSettingsByoVnetAzure,
|
|
162
166
|
unknown
|
|
163
167
|
> = z.object({
|
|
168
|
+
application_gateway_subnet_name: z.nullable(z.string()).optional(),
|
|
164
169
|
private_subnet_name: z.string(),
|
|
165
170
|
public_subnet_name: z.string(),
|
|
166
171
|
type: z.literal("byo-vnet-azure"),
|
|
167
172
|
vnet_resource_id: z.string(),
|
|
168
173
|
}).transform((v) => {
|
|
169
174
|
return remap$(v, {
|
|
175
|
+
"application_gateway_subnet_name": "applicationGatewaySubnetName",
|
|
170
176
|
"private_subnet_name": "privateSubnetName",
|
|
171
177
|
"public_subnet_name": "publicSubnetName",
|
|
172
178
|
"vnet_resource_id": "vnetResourceId",
|
|
@@ -174,6 +180,7 @@ export const NetworkSettingsByoVnetAzure$inboundSchema: z.ZodType<
|
|
|
174
180
|
});
|
|
175
181
|
/** @internal */
|
|
176
182
|
export type NetworkSettingsByoVnetAzure$Outbound = {
|
|
183
|
+
application_gateway_subnet_name?: string | null | undefined;
|
|
177
184
|
private_subnet_name: string;
|
|
178
185
|
public_subnet_name: string;
|
|
179
186
|
type: "byo-vnet-azure";
|
|
@@ -185,12 +192,14 @@ export const NetworkSettingsByoVnetAzure$outboundSchema: z.ZodType<
|
|
|
185
192
|
NetworkSettingsByoVnetAzure$Outbound,
|
|
186
193
|
NetworkSettingsByoVnetAzure
|
|
187
194
|
> = z.object({
|
|
195
|
+
applicationGatewaySubnetName: z.nullable(z.string()).optional(),
|
|
188
196
|
privateSubnetName: z.string(),
|
|
189
197
|
publicSubnetName: z.string(),
|
|
190
198
|
type: z.literal("byo-vnet-azure"),
|
|
191
199
|
vnetResourceId: z.string(),
|
|
192
200
|
}).transform((v) => {
|
|
193
201
|
return remap$(v, {
|
|
202
|
+
applicationGatewaySubnetName: "application_gateway_subnet_name",
|
|
194
203
|
privateSubnetName: "private_subnet_name",
|
|
195
204
|
publicSubnetName: "public_subnet_name",
|
|
196
205
|
vnetResourceId: "vnet_resource_id",
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
7
|
import * as models from "../index.js";
|
|
7
8
|
|
|
8
9
|
export type DeleteDeploymentRequest = {
|
|
@@ -10,21 +11,13 @@ export type DeleteDeploymentRequest = {
|
|
|
10
11
|
* Deployment ID
|
|
11
12
|
*/
|
|
12
13
|
id: string;
|
|
13
|
-
|
|
14
|
-
* Force delete without running cleanup (immediately removes record)
|
|
15
|
-
*/
|
|
16
|
-
force?: boolean | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* Delete scope: full or liveOnly
|
|
19
|
-
*/
|
|
20
|
-
deleteScope?: models.DeleteScope | undefined;
|
|
14
|
+
deleteDeploymentRequest: models.DeleteDeploymentRequest;
|
|
21
15
|
};
|
|
22
16
|
|
|
23
17
|
/** @internal */
|
|
24
18
|
export type DeleteDeploymentRequest$Outbound = {
|
|
25
19
|
id: string;
|
|
26
|
-
|
|
27
|
-
deleteScope?: string | undefined;
|
|
20
|
+
DeleteDeploymentRequest: models.DeleteDeploymentRequest$Outbound;
|
|
28
21
|
};
|
|
29
22
|
|
|
30
23
|
/** @internal */
|
|
@@ -33,8 +26,11 @@ export const DeleteDeploymentRequest$outboundSchema: z.ZodType<
|
|
|
33
26
|
DeleteDeploymentRequest
|
|
34
27
|
> = z.object({
|
|
35
28
|
id: z.string(),
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
deleteDeploymentRequest: models.DeleteDeploymentRequest$outboundSchema,
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
deleteDeploymentRequest: "DeleteDeploymentRequest",
|
|
33
|
+
});
|
|
38
34
|
});
|
|
39
35
|
|
|
40
36
|
export function deleteDeploymentRequestToJSON(
|
|
@@ -11,7 +11,6 @@ import {
|
|
|
11
11
|
|
|
12
12
|
export type ReconcileRequest = {
|
|
13
13
|
deploymentId: string;
|
|
14
|
-
error?: any | undefined;
|
|
15
14
|
heartbeats?: Array<ResourceHeartbeat> | undefined;
|
|
16
15
|
session: string;
|
|
17
16
|
state: any;
|
|
@@ -22,7 +21,6 @@ export type ReconcileRequest = {
|
|
|
22
21
|
/** @internal */
|
|
23
22
|
export type ReconcileRequest$Outbound = {
|
|
24
23
|
deploymentId: string;
|
|
25
|
-
error?: any | undefined;
|
|
26
24
|
heartbeats?: Array<ResourceHeartbeat$Outbound> | undefined;
|
|
27
25
|
session: string;
|
|
28
26
|
state: any;
|
|
@@ -36,7 +34,6 @@ export const ReconcileRequest$outboundSchema: z.ZodType<
|
|
|
36
34
|
ReconcileRequest
|
|
37
35
|
> = z.object({
|
|
38
36
|
deploymentId: z.string(),
|
|
39
|
-
error: z.any().optional(),
|
|
40
37
|
heartbeats: z.array(ResourceHeartbeat$outboundSchema).optional(),
|
|
41
38
|
session: z.string(),
|
|
42
39
|
state: z.any(),
|
|
@@ -84,6 +84,13 @@ export type StackImportRequest = {
|
|
|
84
84
|
* Wire-format version for the setup import payload.
|
|
85
85
|
*/
|
|
86
86
|
setupImportFormatVersion: number;
|
|
87
|
+
/**
|
|
88
|
+
* Setup source metadata needed by the control plane to guide privileged
|
|
89
|
+
*
|
|
90
|
+
* @remarks
|
|
91
|
+
* teardown. The manager treats this as opaque JSON.
|
|
92
|
+
*/
|
|
93
|
+
setupMetadata?: any | undefined;
|
|
87
94
|
/**
|
|
88
95
|
* Setup target this package was generated for.
|
|
89
96
|
*/
|
|
@@ -118,6 +125,7 @@ export type StackImportRequest$Outbound = {
|
|
|
118
125
|
setupFingerprint: string;
|
|
119
126
|
setupFingerprintVersion: number;
|
|
120
127
|
setupImportFormatVersion: number;
|
|
128
|
+
setupMetadata?: any | undefined;
|
|
121
129
|
setupTarget: string;
|
|
122
130
|
sourceKind?: string | null | undefined;
|
|
123
131
|
stackSettings: StackSettings$Outbound;
|
|
@@ -140,6 +148,7 @@ export const StackImportRequest$outboundSchema: z.ZodType<
|
|
|
140
148
|
setupFingerprint: z.string(),
|
|
141
149
|
setupFingerprintVersion: z.int(),
|
|
142
150
|
setupImportFormatVersion: z.int(),
|
|
151
|
+
setupMetadata: z.any().optional(),
|
|
143
152
|
setupTarget: z.string(),
|
|
144
153
|
sourceKind: z.nullable(ImportSourceKind$outboundSchema).optional(),
|
|
145
154
|
stackSettings: StackSettings$outboundSchema,
|
package/src/sdk/releases.ts
CHANGED
|
@@ -5,12 +5,27 @@
|
|
|
5
5
|
import { releasesCreateRelease } from "../funcs/releasesCreateRelease.js";
|
|
6
6
|
import { releasesGetLatestRelease } from "../funcs/releasesGetLatestRelease.js";
|
|
7
7
|
import { releasesGetRelease } from "../funcs/releasesGetRelease.js";
|
|
8
|
+
import { releasesListReleases } from "../funcs/releasesListReleases.js";
|
|
8
9
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
9
10
|
import * as models from "../models/index.js";
|
|
10
11
|
import * as operations from "../models/operations/index.js";
|
|
11
12
|
import { unwrapAsync } from "../types/fp.js";
|
|
12
13
|
|
|
13
14
|
export class Releases extends ClientSDK {
|
|
15
|
+
/**
|
|
16
|
+
* `GET /v1/releases` — Inbound: workspace / project bearer (or authenticated
|
|
17
|
+
* user). Outbound: caller bearer (passthrough). Returns only releases the
|
|
18
|
+
* caller may read.
|
|
19
|
+
*/
|
|
20
|
+
async listReleases(
|
|
21
|
+
options?: RequestOptions,
|
|
22
|
+
): Promise<models.ListReleasesResponse> {
|
|
23
|
+
return unwrapAsync(releasesListReleases(
|
|
24
|
+
this,
|
|
25
|
+
options,
|
|
26
|
+
));
|
|
27
|
+
}
|
|
28
|
+
|
|
14
29
|
async createRelease(
|
|
15
30
|
request: models.CreateReleaseRequest,
|
|
16
31
|
options?: RequestOptions,
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
-
/**
|
|
4
|
-
* Scope for a delete operation.
|
|
5
|
-
*
|
|
6
|
-
* @remarks
|
|
7
|
-
*
|
|
8
|
-
* Full deletes are setup/admin owned and may remove both Frozen and Live
|
|
9
|
-
* resources. Live-only deletes are used by setup handoff resources
|
|
10
|
-
* (Terraform/CloudFormation) so Alien removes only the resources it owns
|
|
11
|
-
* before setup tears down Frozen resources.
|
|
12
|
-
*/
|
|
13
|
-
export declare const DeleteScope: {
|
|
14
|
-
readonly Full: "full";
|
|
15
|
-
readonly LiveOnly: "liveOnly";
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Scope for a delete operation.
|
|
19
|
-
*
|
|
20
|
-
* @remarks
|
|
21
|
-
*
|
|
22
|
-
* Full deletes are setup/admin owned and may remove both Frozen and Live
|
|
23
|
-
* resources. Live-only deletes are used by setup handoff resources
|
|
24
|
-
* (Terraform/CloudFormation) so Alien removes only the resources it owns
|
|
25
|
-
* before setup tears down Frozen resources.
|
|
26
|
-
*/
|
|
27
|
-
export type DeleteScope = ClosedEnum<typeof DeleteScope>;
|
|
28
|
-
/** @internal */
|
|
29
|
-
export declare const DeleteScope$outboundSchema: z.ZodEnum<typeof DeleteScope>;
|
|
30
|
-
//# sourceMappingURL=deletescope.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deletescope.d.ts","sourceRoot":"","sources":["../../src/models/deletescope.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW;;;CAGd,CAAC;AACX;;;;;;;;;GASG;AACH,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAEzD,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,WAAW,CAEpE,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v4";
|
|
5
|
-
/**
|
|
6
|
-
* Scope for a delete operation.
|
|
7
|
-
*
|
|
8
|
-
* @remarks
|
|
9
|
-
*
|
|
10
|
-
* Full deletes are setup/admin owned and may remove both Frozen and Live
|
|
11
|
-
* resources. Live-only deletes are used by setup handoff resources
|
|
12
|
-
* (Terraform/CloudFormation) so Alien removes only the resources it owns
|
|
13
|
-
* before setup tears down Frozen resources.
|
|
14
|
-
*/
|
|
15
|
-
export const DeleteScope = {
|
|
16
|
-
Full: "full",
|
|
17
|
-
LiveOnly: "liveOnly",
|
|
18
|
-
};
|
|
19
|
-
/** @internal */
|
|
20
|
-
export const DeleteScope$outboundSchema = z.enum(DeleteScope);
|
|
21
|
-
//# sourceMappingURL=deletescope.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deletescope.js","sourceRoot":"","sources":["../../src/models/deletescope.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;CACZ,CAAC;AAaX,gBAAgB;AAChB,MAAM,CAAC,MAAM,0BAA0B,GAAkC,CAAC,CAAC,IAAI,CAC7E,WAAW,CACZ,CAAC"}
|