@leaflow/sdk 0.0.0-dev.407.g035f1ea → 0.0.0-dev.410.gb8719fe
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/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/routes.d.ts +128 -0
- package/dist/routes.js +144 -0
- package/dist/swas-legacy/v1/generated/functions.d.ts +652 -0
- package/dist/swas-legacy/v1/generated/functions.js +438 -0
- package/dist/swas-legacy/v1/generated/models.d.ts +0 -0
- package/dist/swas-legacy/v1/generated/models.js +98 -0
- package/dist/swas-legacy/v1/generated/schemas.zod.d.ts +257 -0
- package/dist/swas-legacy/v1/generated/schemas.zod.js +288 -0
- package/dist/swas-legacy/v1/generated/validators/capabilities.zod.d.ts +16 -0
- package/dist/swas-legacy/v1/generated/validators/capabilities.zod.js +14 -0
- package/dist/swas-legacy/v1/generated/validators/console.zod.d.ts +16 -0
- package/dist/swas-legacy/v1/generated/validators/console.zod.js +16 -0
- package/dist/swas-legacy/v1/generated/validators/createInstanceConsoleHeaders.zod.d.ts +15 -0
- package/dist/swas-legacy/v1/generated/validators/createInstanceConsoleHeaders.zod.js +17 -0
- package/dist/swas-legacy/v1/generated/validators/createInstanceFirewallRuleHeaders.zod.d.ts +15 -0
- package/dist/swas-legacy/v1/generated/validators/createInstanceFirewallRuleHeaders.zod.js +17 -0
- package/dist/swas-legacy/v1/generated/validators/decimal.zod.d.ts +12 -0
- package/dist/swas-legacy/v1/generated/validators/decimal.zod.js +10 -0
- package/dist/swas-legacy/v1/generated/validators/deleteInstanceFirewallRuleHeaders.zod.d.ts +15 -0
- package/dist/swas-legacy/v1/generated/validators/deleteInstanceFirewallRuleHeaders.zod.js +17 -0
- package/dist/swas-legacy/v1/generated/validators/error.zod.d.ts +21 -0
- package/dist/swas-legacy/v1/generated/validators/error.zod.js +19 -0
- package/dist/swas-legacy/v1/generated/validators/firewallRule.zod.d.ts +24 -0
- package/dist/swas-legacy/v1/generated/validators/firewallRule.zod.js +17 -0
- package/dist/swas-legacy/v1/generated/validators/firewallRuleList.zod.d.ts +29 -0
- package/dist/swas-legacy/v1/generated/validators/firewallRuleList.zod.js +14 -0
- package/dist/swas-legacy/v1/generated/validators/firewallWriteRequest.zod.d.ts +28 -0
- package/dist/swas-legacy/v1/generated/validators/firewallWriteRequest.zod.js +0 -0
- package/dist/swas-legacy/v1/generated/validators/generationRequest.zod.d.ts +13 -0
- package/dist/swas-legacy/v1/generated/validators/generationRequest.zod.js +11 -0
- package/dist/swas-legacy/v1/generated/validators/image.zod.d.ts +20 -0
- package/dist/swas-legacy/v1/generated/validators/image.zod.js +18 -0
- package/dist/swas-legacy/v1/generated/validators/imageList.zod.d.ts +24 -0
- package/dist/swas-legacy/v1/generated/validators/imageList.zod.js +14 -0
- package/dist/swas-legacy/v1/generated/validators/instance.zod.d.ts +82 -0
- package/dist/swas-legacy/v1/generated/validators/instance.zod.js +33 -0
- package/dist/swas-legacy/v1/generated/validators/instanceList.zod.d.ts +88 -0
- package/dist/swas-legacy/v1/generated/validators/instanceList.zod.js +14 -0
- package/dist/swas-legacy/v1/generated/validators/lastOperation.zod.d.ts +33 -0
- package/dist/swas-legacy/v1/generated/validators/lastOperation.zod.js +31 -0
- package/dist/swas-legacy/v1/generated/validators/listInstanceFirewallRulesParams.zod.d.ts +18 -0
- package/dist/swas-legacy/v1/generated/validators/listInstanceFirewallRulesParams.zod.js +24 -0
- package/dist/swas-legacy/v1/generated/validators/listInstanceMetricsParams.zod.d.ts +19 -0
- package/dist/swas-legacy/v1/generated/validators/listInstanceMetricsParams.zod.js +12 -0
- package/dist/swas-legacy/v1/generated/validators/listInstanceOperationsParams.zod.d.ts +18 -0
- package/dist/swas-legacy/v1/generated/validators/listInstanceOperationsParams.zod.js +24 -0
- package/dist/swas-legacy/v1/generated/validators/listInstanceReinstallImagesParams.zod.d.ts +18 -0
- package/dist/swas-legacy/v1/generated/validators/listInstanceReinstallImagesParams.zod.js +24 -0
- package/dist/swas-legacy/v1/generated/validators/listInstancesParams.zod.d.ts +18 -0
- package/dist/swas-legacy/v1/generated/validators/listInstancesParams.zod.js +20 -0
- package/dist/swas-legacy/v1/generated/validators/metricPoint.zod.d.ts +14 -0
- package/dist/swas-legacy/v1/generated/validators/metricPoint.zod.js +13 -0
- package/dist/swas-legacy/v1/generated/validators/metricSeries.zod.d.ts +30 -0
- package/dist/swas-legacy/v1/generated/validators/metricSeries.zod.js +23 -0
- package/dist/swas-legacy/v1/generated/validators/metrics.zod.d.ts +41 -0
- package/dist/swas-legacy/v1/generated/validators/metrics.zod.js +19 -0
- package/dist/swas-legacy/v1/generated/validators/operation.zod.d.ts +35 -0
- package/dist/swas-legacy/v1/generated/validators/operation.zod.js +33 -0
- package/dist/swas-legacy/v1/generated/validators/operationLogList.zod.d.ts +39 -0
- package/dist/swas-legacy/v1/generated/validators/operationLogList.zod.js +16 -0
- package/dist/swas-legacy/v1/generated/validators/pagination.zod.d.ts +18 -0
- package/dist/swas-legacy/v1/generated/validators/pagination.zod.js +18 -0
- package/dist/swas-legacy/v1/generated/validators/passwordRequest.zod.d.ts +17 -0
- package/dist/swas-legacy/v1/generated/validators/passwordRequest.zod.js +0 -0
- package/dist/swas-legacy/v1/generated/validators/rebootInstanceHeaders.zod.d.ts +15 -0
- package/dist/swas-legacy/v1/generated/validators/rebootInstanceHeaders.zod.js +17 -0
- package/dist/swas-legacy/v1/generated/validators/reinstallInstanceHeaders.zod.d.ts +15 -0
- package/dist/swas-legacy/v1/generated/validators/reinstallInstanceHeaders.zod.js +17 -0
- package/dist/swas-legacy/v1/generated/validators/reinstallRequest.zod.d.ts +17 -0
- package/dist/swas-legacy/v1/generated/validators/reinstallRequest.zod.js +19 -0
- package/dist/swas-legacy/v1/generated/validators/setInstancePasswordHeaders.zod.d.ts +15 -0
- package/dist/swas-legacy/v1/generated/validators/setInstancePasswordHeaders.zod.js +17 -0
- package/dist/swas-legacy/v1/generated/validators/startInstanceHeaders.zod.d.ts +15 -0
- package/dist/swas-legacy/v1/generated/validators/startInstanceHeaders.zod.js +17 -0
- package/dist/swas-legacy/v1/generated/validators/stopInstanceHeaders.zod.d.ts +15 -0
- package/dist/swas-legacy/v1/generated/validators/stopInstanceHeaders.zod.js +17 -0
- package/dist/swas-legacy/v1/generated/validators/traffic.zod.d.ts +22 -0
- package/dist/swas-legacy/v1/generated/validators/traffic.zod.js +20 -0
- package/dist/swas-legacy/v1/generated/validators/updateInstanceFirewallRuleHeaders.zod.d.ts +15 -0
- package/dist/swas-legacy/v1/generated/validators/updateInstanceFirewallRuleHeaders.zod.js +17 -0
- package/dist/swas-legacy/v1/index.d.ts +3 -0
- package/dist/swas-legacy/v1/index.js +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS Legacy API candidate
|
|
5
|
+
* Manage existing SWAS instances assigned to the current project. The scoped token supplies the user and project; caller identity headers do not. This contract does not create, renew, bill or release instances. Mutation acceptance is not completion: inspect the resource operation until a durable terminal state is available. This candidate is not published or deployed.
|
|
6
|
+
* OpenAPI spec version: 0.1.0-candidate
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export const createInstanceFirewallRuleHeadersIdempotencyKeyMax = 128;
|
|
10
|
+
export const createInstanceFirewallRuleHeadersIdempotencyKeyRegExp = new RegExp("^[A-Za-z0-9_.-]+$");
|
|
11
|
+
export const CreateInstanceFirewallRuleHeaders = zod.strictObject({
|
|
12
|
+
"Idempotency-Key": zod
|
|
13
|
+
.string()
|
|
14
|
+
.min(1)
|
|
15
|
+
.max(createInstanceFirewallRuleHeadersIdempotencyKeyMax)
|
|
16
|
+
.regex(createInstanceFirewallRuleHeadersIdempotencyKeyRegExp),
|
|
17
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS Legacy API candidate
|
|
5
|
+
* Manage existing SWAS instances assigned to the current project. The scoped token supplies the user and project; caller identity headers do not. This contract does not create, renew, bill or release instances. Mutation acceptance is not completion: inspect the resource operation until a durable terminal state is available. This candidate is not published or deployed.
|
|
6
|
+
* OpenAPI spec version: 0.1.0-candidate
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const DecimalRegExp: RegExp;
|
|
10
|
+
export declare const Decimal: zod.ZodString;
|
|
11
|
+
export type Decimal = zod.input<typeof Decimal>;
|
|
12
|
+
export type DecimalOutput = zod.output<typeof Decimal>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS Legacy API candidate
|
|
5
|
+
* Manage existing SWAS instances assigned to the current project. The scoped token supplies the user and project; caller identity headers do not. This contract does not create, renew, bill or release instances. Mutation acceptance is not completion: inspect the resource operation until a durable terminal state is available. This candidate is not published or deployed.
|
|
6
|
+
* OpenAPI spec version: 0.1.0-candidate
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export const DecimalRegExp = new RegExp("^(0|[1-9][0-9]{0,27})(\\.[0-9]{1,10})?$");
|
|
10
|
+
export const Decimal = zod.string().regex(DecimalRegExp);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS Legacy API candidate
|
|
5
|
+
* Manage existing SWAS instances assigned to the current project. The scoped token supplies the user and project; caller identity headers do not. This contract does not create, renew, bill or release instances. Mutation acceptance is not completion: inspect the resource operation until a durable terminal state is available. This candidate is not published or deployed.
|
|
6
|
+
* OpenAPI spec version: 0.1.0-candidate
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const deleteInstanceFirewallRuleHeadersIdempotencyKeyMax = 128;
|
|
10
|
+
export declare const deleteInstanceFirewallRuleHeadersIdempotencyKeyRegExp: RegExp;
|
|
11
|
+
export declare const DeleteInstanceFirewallRuleHeaders: zod.ZodObject<{
|
|
12
|
+
"Idempotency-Key": zod.ZodString;
|
|
13
|
+
}, zod.z.core.$strict>;
|
|
14
|
+
export type DeleteInstanceFirewallRuleHeaders = zod.input<typeof DeleteInstanceFirewallRuleHeaders>;
|
|
15
|
+
export type DeleteInstanceFirewallRuleHeadersOutput = zod.output<typeof DeleteInstanceFirewallRuleHeaders>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS Legacy API candidate
|
|
5
|
+
* Manage existing SWAS instances assigned to the current project. The scoped token supplies the user and project; caller identity headers do not. This contract does not create, renew, bill or release instances. Mutation acceptance is not completion: inspect the resource operation until a durable terminal state is available. This candidate is not published or deployed.
|
|
6
|
+
* OpenAPI spec version: 0.1.0-candidate
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export const deleteInstanceFirewallRuleHeadersIdempotencyKeyMax = 128;
|
|
10
|
+
export const deleteInstanceFirewallRuleHeadersIdempotencyKeyRegExp = new RegExp("^[A-Za-z0-9_.-]+$");
|
|
11
|
+
export const DeleteInstanceFirewallRuleHeaders = zod.strictObject({
|
|
12
|
+
"Idempotency-Key": zod
|
|
13
|
+
.string()
|
|
14
|
+
.min(1)
|
|
15
|
+
.max(deleteInstanceFirewallRuleHeadersIdempotencyKeyMax)
|
|
16
|
+
.regex(deleteInstanceFirewallRuleHeadersIdempotencyKeyRegExp),
|
|
17
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS Legacy API candidate
|
|
5
|
+
* Manage existing SWAS instances assigned to the current project. The scoped token supplies the user and project; caller identity headers do not. This contract does not create, renew, bill or release instances. Mutation acceptance is not completion: inspect the resource operation until a durable terminal state is available. This candidate is not published or deployed.
|
|
6
|
+
* OpenAPI spec version: 0.1.0-candidate
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const Error: zod.ZodObject<{
|
|
10
|
+
code: zod.ZodEnum<{
|
|
11
|
+
TOKEN_INVALID: "TOKEN_INVALID";
|
|
12
|
+
PERMISSION_DENIED: "PERMISSION_DENIED";
|
|
13
|
+
INVALID_INPUT: "INVALID_INPUT";
|
|
14
|
+
NOT_FOUND: "NOT_FOUND";
|
|
15
|
+
CONFLICT: "CONFLICT";
|
|
16
|
+
DEPENDENCY_UNAVAILABLE: "DEPENDENCY_UNAVAILABLE";
|
|
17
|
+
}>;
|
|
18
|
+
message: zod.ZodString;
|
|
19
|
+
}, zod.z.core.$strict>;
|
|
20
|
+
export type Error = zod.input<typeof Error>;
|
|
21
|
+
export type ErrorOutput = zod.output<typeof Error>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS Legacy API candidate
|
|
5
|
+
* Manage existing SWAS instances assigned to the current project. The scoped token supplies the user and project; caller identity headers do not. This contract does not create, renew, bill or release instances. Mutation acceptance is not completion: inspect the resource operation until a durable terminal state is available. This candidate is not published or deployed.
|
|
6
|
+
* OpenAPI spec version: 0.1.0-candidate
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export const Error = zod.strictObject({
|
|
10
|
+
code: zod.enum([
|
|
11
|
+
"TOKEN_INVALID",
|
|
12
|
+
"PERMISSION_DENIED",
|
|
13
|
+
"INVALID_INPUT",
|
|
14
|
+
"NOT_FOUND",
|
|
15
|
+
"CONFLICT",
|
|
16
|
+
"DEPENDENCY_UNAVAILABLE",
|
|
17
|
+
]),
|
|
18
|
+
message: zod.string(),
|
|
19
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS Legacy API candidate
|
|
5
|
+
* Manage existing SWAS instances assigned to the current project. The scoped token supplies the user and project; caller identity headers do not. This contract does not create, renew, bill or release instances. Mutation acceptance is not completion: inspect the resource operation until a durable terminal state is available. This candidate is not published or deployed.
|
|
6
|
+
* OpenAPI spec version: 0.1.0-candidate
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const firewallRuleIdMax = 256;
|
|
10
|
+
export declare const firewallRuleRemarkMax = 256;
|
|
11
|
+
export declare const FirewallRule: zod.ZodObject<{
|
|
12
|
+
id: zod.ZodString;
|
|
13
|
+
protocol: zod.ZodEnum<{
|
|
14
|
+
tcp: "tcp";
|
|
15
|
+
udp: "udp";
|
|
16
|
+
tcp_udp: "tcp_udp";
|
|
17
|
+
icmp: "icmp";
|
|
18
|
+
}>;
|
|
19
|
+
port_range: zod.ZodString;
|
|
20
|
+
source_cidr: zod.ZodString;
|
|
21
|
+
remark: zod.ZodString;
|
|
22
|
+
}, zod.z.core.$strict>;
|
|
23
|
+
export type FirewallRule = zod.input<typeof FirewallRule>;
|
|
24
|
+
export type FirewallRuleOutput = zod.output<typeof FirewallRule>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS Legacy API candidate
|
|
5
|
+
* Manage existing SWAS instances assigned to the current project. The scoped token supplies the user and project; caller identity headers do not. This contract does not create, renew, bill or release instances. Mutation acceptance is not completion: inspect the resource operation until a durable terminal state is available. This candidate is not published or deployed.
|
|
6
|
+
* OpenAPI spec version: 0.1.0-candidate
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export const firewallRuleIdMax = 256;
|
|
10
|
+
export const firewallRuleRemarkMax = 256;
|
|
11
|
+
export const FirewallRule = zod.strictObject({
|
|
12
|
+
id: zod.string().min(1).max(firewallRuleIdMax),
|
|
13
|
+
protocol: zod.enum(["tcp", "udp", "tcp_udp", "icmp"]),
|
|
14
|
+
port_range: zod.string(),
|
|
15
|
+
source_cidr: zod.string(),
|
|
16
|
+
remark: zod.string().max(firewallRuleRemarkMax),
|
|
17
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS Legacy API candidate
|
|
5
|
+
* Manage existing SWAS instances assigned to the current project. The scoped token supplies the user and project; caller identity headers do not. This contract does not create, renew, bill or release instances. Mutation acceptance is not completion: inspect the resource operation until a durable terminal state is available. This candidate is not published or deployed.
|
|
6
|
+
* OpenAPI spec version: 0.1.0-candidate
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const FirewallRuleList: zod.ZodObject<{
|
|
10
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
11
|
+
id: zod.ZodString;
|
|
12
|
+
protocol: zod.ZodEnum<{
|
|
13
|
+
tcp: "tcp";
|
|
14
|
+
udp: "udp";
|
|
15
|
+
tcp_udp: "tcp_udp";
|
|
16
|
+
icmp: "icmp";
|
|
17
|
+
}>;
|
|
18
|
+
port_range: zod.ZodString;
|
|
19
|
+
source_cidr: zod.ZodString;
|
|
20
|
+
remark: zod.ZodString;
|
|
21
|
+
}, zod.z.core.$strict>>;
|
|
22
|
+
pagination: zod.ZodObject<{
|
|
23
|
+
page: zod.ZodInt;
|
|
24
|
+
page_size: zod.ZodInt;
|
|
25
|
+
total: zod.ZodInt;
|
|
26
|
+
}, zod.z.core.$strict>;
|
|
27
|
+
}, zod.z.core.$strict>;
|
|
28
|
+
export type FirewallRuleList = zod.input<typeof FirewallRuleList>;
|
|
29
|
+
export type FirewallRuleListOutput = zod.output<typeof FirewallRuleList>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS Legacy API candidate
|
|
5
|
+
* Manage existing SWAS instances assigned to the current project. The scoped token supplies the user and project; caller identity headers do not. This contract does not create, renew, bill or release instances. Mutation acceptance is not completion: inspect the resource operation until a durable terminal state is available. This candidate is not published or deployed.
|
|
6
|
+
* OpenAPI spec version: 0.1.0-candidate
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
import { FirewallRule } from "./firewallRule.zod.js";
|
|
10
|
+
import { Pagination } from "./pagination.zod.js";
|
|
11
|
+
export const FirewallRuleList = zod.strictObject({
|
|
12
|
+
items: zod.array(FirewallRule),
|
|
13
|
+
pagination: Pagination,
|
|
14
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS Legacy API candidate
|
|
5
|
+
* Manage existing SWAS instances assigned to the current project. The scoped token supplies the user and project; caller identity headers do not. This contract does not create, renew, bill or release instances. Mutation acceptance is not completion: inspect the resource operation until a durable terminal state is available. This candidate is not published or deployed.
|
|
6
|
+
* OpenAPI spec version: 0.1.0-candidate
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const firewallWriteRequestPortRangeMax = 11;
|
|
10
|
+
export declare const firewallWriteRequestPortRangeRegExp: RegExp;
|
|
11
|
+
export declare const firewallWriteRequestSourceCidrMin = 3;
|
|
12
|
+
export declare const firewallWriteRequestSourceCidrMax = 64;
|
|
13
|
+
export declare const firewallWriteRequestRemarkMax = 256;
|
|
14
|
+
export declare const firewallWriteRequestRemarkRegExp: RegExp;
|
|
15
|
+
export declare const FirewallWriteRequest: zod.ZodObject<{
|
|
16
|
+
expected_generation: zod.ZodInt;
|
|
17
|
+
protocol: zod.ZodEnum<{
|
|
18
|
+
tcp: "tcp";
|
|
19
|
+
udp: "udp";
|
|
20
|
+
tcp_udp: "tcp_udp";
|
|
21
|
+
icmp: "icmp";
|
|
22
|
+
}>;
|
|
23
|
+
port_range: zod.ZodString;
|
|
24
|
+
source_cidr: zod.ZodString;
|
|
25
|
+
remark: zod.ZodOptional<zod.ZodString>;
|
|
26
|
+
}, zod.z.core.$strict>;
|
|
27
|
+
export type FirewallWriteRequest = zod.input<typeof FirewallWriteRequest>;
|
|
28
|
+
export type FirewallWriteRequestOutput = zod.output<typeof FirewallWriteRequest>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS Legacy API candidate
|
|
5
|
+
* Manage existing SWAS instances assigned to the current project. The scoped token supplies the user and project; caller identity headers do not. This contract does not create, renew, bill or release instances. Mutation acceptance is not completion: inspect the resource operation until a durable terminal state is available. This candidate is not published or deployed.
|
|
6
|
+
* OpenAPI spec version: 0.1.0-candidate
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const GenerationRequest: zod.ZodObject<{
|
|
10
|
+
expected_generation: zod.ZodInt;
|
|
11
|
+
}, zod.z.core.$strict>;
|
|
12
|
+
export type GenerationRequest = zod.input<typeof GenerationRequest>;
|
|
13
|
+
export type GenerationRequestOutput = zod.output<typeof GenerationRequest>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS Legacy API candidate
|
|
5
|
+
* Manage existing SWAS instances assigned to the current project. The scoped token supplies the user and project; caller identity headers do not. This contract does not create, renew, bill or release instances. Mutation acceptance is not completion: inspect the resource operation until a durable terminal state is available. This candidate is not published or deployed.
|
|
6
|
+
* OpenAPI spec version: 0.1.0-candidate
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export const GenerationRequest = zod.strictObject({
|
|
10
|
+
expected_generation: zod.int().min(1),
|
|
11
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS Legacy API candidate
|
|
5
|
+
* Manage existing SWAS instances assigned to the current project. The scoped token supplies the user and project; caller identity headers do not. This contract does not create, renew, bill or release instances. Mutation acceptance is not completion: inspect the resource operation until a durable terminal state is available. This candidate is not published or deployed.
|
|
6
|
+
* OpenAPI spec version: 0.1.0-candidate
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const imageIdMax = 256;
|
|
10
|
+
export declare const imageNameMax = 256;
|
|
11
|
+
export declare const imagePlatformMax = 128;
|
|
12
|
+
export declare const Image: zod.ZodObject<{
|
|
13
|
+
id: zod.ZodString;
|
|
14
|
+
region_id: zod.ZodString;
|
|
15
|
+
name: zod.ZodString;
|
|
16
|
+
platform: zod.ZodString;
|
|
17
|
+
compatible: zod.ZodLiteral<true>;
|
|
18
|
+
}, zod.z.core.$strict>;
|
|
19
|
+
export type Image = zod.input<typeof Image>;
|
|
20
|
+
export type ImageOutput = zod.output<typeof Image>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS Legacy API candidate
|
|
5
|
+
* Manage existing SWAS instances assigned to the current project. The scoped token supplies the user and project; caller identity headers do not. This contract does not create, renew, bill or release instances. Mutation acceptance is not completion: inspect the resource operation until a durable terminal state is available. This candidate is not published or deployed.
|
|
6
|
+
* OpenAPI spec version: 0.1.0-candidate
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export const imageIdMax = 256;
|
|
10
|
+
export const imageNameMax = 256;
|
|
11
|
+
export const imagePlatformMax = 128;
|
|
12
|
+
export const Image = zod.strictObject({
|
|
13
|
+
id: zod.string().min(1).max(imageIdMax),
|
|
14
|
+
region_id: zod.string(),
|
|
15
|
+
name: zod.string().max(imageNameMax),
|
|
16
|
+
platform: zod.string().min(1).max(imagePlatformMax),
|
|
17
|
+
compatible: zod.literal(true),
|
|
18
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS Legacy API candidate
|
|
5
|
+
* Manage existing SWAS instances assigned to the current project. The scoped token supplies the user and project; caller identity headers do not. This contract does not create, renew, bill or release instances. Mutation acceptance is not completion: inspect the resource operation until a durable terminal state is available. This candidate is not published or deployed.
|
|
6
|
+
* OpenAPI spec version: 0.1.0-candidate
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const ImageList: zod.ZodObject<{
|
|
10
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
11
|
+
id: zod.ZodString;
|
|
12
|
+
region_id: zod.ZodString;
|
|
13
|
+
name: zod.ZodString;
|
|
14
|
+
platform: zod.ZodString;
|
|
15
|
+
compatible: zod.ZodLiteral<true>;
|
|
16
|
+
}, zod.z.core.$strict>>;
|
|
17
|
+
pagination: zod.ZodObject<{
|
|
18
|
+
page: zod.ZodInt;
|
|
19
|
+
page_size: zod.ZodInt;
|
|
20
|
+
total: zod.ZodInt;
|
|
21
|
+
}, zod.z.core.$strict>;
|
|
22
|
+
}, zod.z.core.$strict>;
|
|
23
|
+
export type ImageList = zod.input<typeof ImageList>;
|
|
24
|
+
export type ImageListOutput = zod.output<typeof ImageList>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS Legacy API candidate
|
|
5
|
+
* Manage existing SWAS instances assigned to the current project. The scoped token supplies the user and project; caller identity headers do not. This contract does not create, renew, bill or release instances. Mutation acceptance is not completion: inspect the resource operation until a durable terminal state is available. This candidate is not published or deployed.
|
|
6
|
+
* OpenAPI spec version: 0.1.0-candidate
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
import { Image } from "./image.zod.js";
|
|
10
|
+
import { Pagination } from "./pagination.zod.js";
|
|
11
|
+
export const ImageList = zod.strictObject({
|
|
12
|
+
items: zod.array(Image),
|
|
13
|
+
pagination: Pagination,
|
|
14
|
+
});
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS Legacy API candidate
|
|
5
|
+
* Manage existing SWAS instances assigned to the current project. The scoped token supplies the user and project; caller identity headers do not. This contract does not create, renew, bill or release instances. Mutation acceptance is not completion: inspect the resource operation until a durable terminal state is available. This candidate is not published or deployed.
|
|
6
|
+
* OpenAPI spec version: 0.1.0-candidate
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const instanceIdRegExp: RegExp;
|
|
10
|
+
export declare const Instance: zod.ZodObject<{
|
|
11
|
+
id: zod.ZodUUID;
|
|
12
|
+
service_id: zod.ZodLiteral<"swas-legacy">;
|
|
13
|
+
region_id: zod.ZodString;
|
|
14
|
+
name: zod.ZodString;
|
|
15
|
+
generation: zod.ZodInt;
|
|
16
|
+
status: zod.ZodEnum<{
|
|
17
|
+
binding_pending: "binding_pending";
|
|
18
|
+
managed: "managed";
|
|
19
|
+
}>;
|
|
20
|
+
power_state: zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
21
|
+
unknown: "unknown";
|
|
22
|
+
starting: "starting";
|
|
23
|
+
running: "running";
|
|
24
|
+
stopped: "stopped";
|
|
25
|
+
stopping: "stopping";
|
|
26
|
+
restarting: "restarting";
|
|
27
|
+
}>, zod.ZodNull]>;
|
|
28
|
+
addresses: zod.ZodUnion<readonly [zod.ZodArray<zod.ZodString>, zod.ZodNull]>;
|
|
29
|
+
observed_expires_at: zod.ZodUnion<readonly [zod.z.ZodISODateTime, zod.ZodNull]>;
|
|
30
|
+
operation: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
31
|
+
id: zod.ZodUUID;
|
|
32
|
+
type: zod.ZodEnum<{
|
|
33
|
+
start: "start";
|
|
34
|
+
stop: "stop";
|
|
35
|
+
reboot: "reboot";
|
|
36
|
+
reset_password: "reset_password";
|
|
37
|
+
reinstall: "reinstall";
|
|
38
|
+
console: "console";
|
|
39
|
+
firewall_create: "firewall_create";
|
|
40
|
+
firewall_update: "firewall_update";
|
|
41
|
+
firewall_delete: "firewall_delete";
|
|
42
|
+
}>;
|
|
43
|
+
state: zod.ZodEnum<{
|
|
44
|
+
running: "running";
|
|
45
|
+
failed: "failed";
|
|
46
|
+
succeeded: "succeeded";
|
|
47
|
+
needs_attention: "needs_attention";
|
|
48
|
+
}>;
|
|
49
|
+
started_at: zod.z.ZodISODateTime;
|
|
50
|
+
failure_code: zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>;
|
|
51
|
+
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
52
|
+
last_operation: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
53
|
+
id: zod.ZodUUID;
|
|
54
|
+
type: zod.ZodEnum<{
|
|
55
|
+
start: "start";
|
|
56
|
+
stop: "stop";
|
|
57
|
+
reboot: "reboot";
|
|
58
|
+
reset_password: "reset_password";
|
|
59
|
+
reinstall: "reinstall";
|
|
60
|
+
console: "console";
|
|
61
|
+
firewall_create: "firewall_create";
|
|
62
|
+
firewall_update: "firewall_update";
|
|
63
|
+
firewall_delete: "firewall_delete";
|
|
64
|
+
}>;
|
|
65
|
+
result: zod.ZodEnum<{
|
|
66
|
+
failed: "failed";
|
|
67
|
+
succeeded: "succeeded";
|
|
68
|
+
}>;
|
|
69
|
+
completed_at: zod.z.ZodISODateTime;
|
|
70
|
+
failure_code: zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>;
|
|
71
|
+
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
72
|
+
capabilities: zod.ZodObject<{
|
|
73
|
+
purchase: zod.ZodLiteral<false>;
|
|
74
|
+
renewal: zod.ZodLiteral<false>;
|
|
75
|
+
upgrade_order: zod.ZodLiteral<false>;
|
|
76
|
+
refund: zod.ZodLiteral<false>;
|
|
77
|
+
}, zod.z.core.$strict>;
|
|
78
|
+
created_at: zod.z.ZodISODateTime;
|
|
79
|
+
updated_at: zod.z.ZodISODateTime;
|
|
80
|
+
}, zod.z.core.$strict>;
|
|
81
|
+
export type Instance = zod.input<typeof Instance>;
|
|
82
|
+
export type InstanceOutput = zod.output<typeof Instance>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS Legacy API candidate
|
|
5
|
+
* Manage existing SWAS instances assigned to the current project. The scoped token supplies the user and project; caller identity headers do not. This contract does not create, renew, bill or release instances. Mutation acceptance is not completion: inspect the resource operation until a durable terminal state is available. This candidate is not published or deployed.
|
|
6
|
+
* OpenAPI spec version: 0.1.0-candidate
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
import { Capabilities } from "./capabilities.zod.js";
|
|
10
|
+
import { LastOperation } from "./lastOperation.zod.js";
|
|
11
|
+
import { Operation } from "./operation.zod.js";
|
|
12
|
+
export const instanceIdRegExp = new RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$");
|
|
13
|
+
export const Instance = zod
|
|
14
|
+
.strictObject({
|
|
15
|
+
id: zod.uuid().regex(instanceIdRegExp),
|
|
16
|
+
service_id: zod.literal("swas-legacy"),
|
|
17
|
+
region_id: zod.string(),
|
|
18
|
+
name: zod.string(),
|
|
19
|
+
generation: zod.int().min(1),
|
|
20
|
+
status: zod.enum(["binding_pending", "managed"]),
|
|
21
|
+
power_state: zod.union([
|
|
22
|
+
zod.enum(["running", "stopped", "starting", "stopping", "restarting", "unknown"]),
|
|
23
|
+
zod.null(),
|
|
24
|
+
]),
|
|
25
|
+
addresses: zod.union([zod.array(zod.string()), zod.null()]),
|
|
26
|
+
observed_expires_at: zod.union([zod.iso.datetime({ offset: true }), zod.null()]),
|
|
27
|
+
operation: zod.union([Operation, zod.null()]),
|
|
28
|
+
last_operation: zod.union([LastOperation, zod.null()]),
|
|
29
|
+
capabilities: Capabilities,
|
|
30
|
+
created_at: zod.iso.datetime({ offset: true }),
|
|
31
|
+
updated_at: zod.iso.datetime({ offset: true }),
|
|
32
|
+
})
|
|
33
|
+
.describe("id is this API's resource UUID, not a supplier instance number. A collection entry is a registry view; retrieving it observes supplier state. observed_expires_at is informational and never triggers charging or deletion.");
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS Legacy API candidate
|
|
5
|
+
* Manage existing SWAS instances assigned to the current project. The scoped token supplies the user and project; caller identity headers do not. This contract does not create, renew, bill or release instances. Mutation acceptance is not completion: inspect the resource operation until a durable terminal state is available. This candidate is not published or deployed.
|
|
6
|
+
* OpenAPI spec version: 0.1.0-candidate
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const InstanceList: zod.ZodObject<{
|
|
10
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
11
|
+
id: zod.ZodUUID;
|
|
12
|
+
service_id: zod.ZodLiteral<"swas-legacy">;
|
|
13
|
+
region_id: zod.ZodString;
|
|
14
|
+
name: zod.ZodString;
|
|
15
|
+
generation: zod.ZodInt;
|
|
16
|
+
status: zod.ZodEnum<{
|
|
17
|
+
binding_pending: "binding_pending";
|
|
18
|
+
managed: "managed";
|
|
19
|
+
}>;
|
|
20
|
+
power_state: zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
21
|
+
unknown: "unknown";
|
|
22
|
+
starting: "starting";
|
|
23
|
+
running: "running";
|
|
24
|
+
stopped: "stopped";
|
|
25
|
+
stopping: "stopping";
|
|
26
|
+
restarting: "restarting";
|
|
27
|
+
}>, zod.ZodNull]>;
|
|
28
|
+
addresses: zod.ZodUnion<readonly [zod.ZodArray<zod.ZodString>, zod.ZodNull]>;
|
|
29
|
+
observed_expires_at: zod.ZodUnion<readonly [zod.z.ZodISODateTime, zod.ZodNull]>;
|
|
30
|
+
operation: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
31
|
+
id: zod.ZodUUID;
|
|
32
|
+
type: zod.ZodEnum<{
|
|
33
|
+
start: "start";
|
|
34
|
+
stop: "stop";
|
|
35
|
+
reboot: "reboot";
|
|
36
|
+
reset_password: "reset_password";
|
|
37
|
+
reinstall: "reinstall";
|
|
38
|
+
console: "console";
|
|
39
|
+
firewall_create: "firewall_create";
|
|
40
|
+
firewall_update: "firewall_update";
|
|
41
|
+
firewall_delete: "firewall_delete";
|
|
42
|
+
}>;
|
|
43
|
+
state: zod.ZodEnum<{
|
|
44
|
+
running: "running";
|
|
45
|
+
failed: "failed";
|
|
46
|
+
succeeded: "succeeded";
|
|
47
|
+
needs_attention: "needs_attention";
|
|
48
|
+
}>;
|
|
49
|
+
started_at: zod.z.ZodISODateTime;
|
|
50
|
+
failure_code: zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>;
|
|
51
|
+
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
52
|
+
last_operation: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
53
|
+
id: zod.ZodUUID;
|
|
54
|
+
type: zod.ZodEnum<{
|
|
55
|
+
start: "start";
|
|
56
|
+
stop: "stop";
|
|
57
|
+
reboot: "reboot";
|
|
58
|
+
reset_password: "reset_password";
|
|
59
|
+
reinstall: "reinstall";
|
|
60
|
+
console: "console";
|
|
61
|
+
firewall_create: "firewall_create";
|
|
62
|
+
firewall_update: "firewall_update";
|
|
63
|
+
firewall_delete: "firewall_delete";
|
|
64
|
+
}>;
|
|
65
|
+
result: zod.ZodEnum<{
|
|
66
|
+
failed: "failed";
|
|
67
|
+
succeeded: "succeeded";
|
|
68
|
+
}>;
|
|
69
|
+
completed_at: zod.z.ZodISODateTime;
|
|
70
|
+
failure_code: zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>;
|
|
71
|
+
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
72
|
+
capabilities: zod.ZodObject<{
|
|
73
|
+
purchase: zod.ZodLiteral<false>;
|
|
74
|
+
renewal: zod.ZodLiteral<false>;
|
|
75
|
+
upgrade_order: zod.ZodLiteral<false>;
|
|
76
|
+
refund: zod.ZodLiteral<false>;
|
|
77
|
+
}, zod.z.core.$strict>;
|
|
78
|
+
created_at: zod.z.ZodISODateTime;
|
|
79
|
+
updated_at: zod.z.ZodISODateTime;
|
|
80
|
+
}, zod.z.core.$strict>>;
|
|
81
|
+
pagination: zod.ZodObject<{
|
|
82
|
+
page: zod.ZodInt;
|
|
83
|
+
page_size: zod.ZodInt;
|
|
84
|
+
total: zod.ZodInt;
|
|
85
|
+
}, zod.z.core.$strict>;
|
|
86
|
+
}, zod.z.core.$strict>;
|
|
87
|
+
export type InstanceList = zod.input<typeof InstanceList>;
|
|
88
|
+
export type InstanceListOutput = zod.output<typeof InstanceList>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS Legacy API candidate
|
|
5
|
+
* Manage existing SWAS instances assigned to the current project. The scoped token supplies the user and project; caller identity headers do not. This contract does not create, renew, bill or release instances. Mutation acceptance is not completion: inspect the resource operation until a durable terminal state is available. This candidate is not published or deployed.
|
|
6
|
+
* OpenAPI spec version: 0.1.0-candidate
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
import { Instance } from "./instance.zod.js";
|
|
10
|
+
import { Pagination } from "./pagination.zod.js";
|
|
11
|
+
export const InstanceList = zod.strictObject({
|
|
12
|
+
items: zod.array(Instance),
|
|
13
|
+
pagination: Pagination,
|
|
14
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS Legacy API candidate
|
|
5
|
+
* Manage existing SWAS instances assigned to the current project. The scoped token supplies the user and project; caller identity headers do not. This contract does not create, renew, bill or release instances. Mutation acceptance is not completion: inspect the resource operation until a durable terminal state is available. This candidate is not published or deployed.
|
|
6
|
+
* OpenAPI spec version: 0.1.0-candidate
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const lastOperationIdRegExp: RegExp;
|
|
10
|
+
export declare const lastOperationFailureCodeOneMax = 128;
|
|
11
|
+
export declare const lastOperationFailureCodeOneRegExp: RegExp;
|
|
12
|
+
export declare const LastOperation: zod.ZodObject<{
|
|
13
|
+
id: zod.ZodUUID;
|
|
14
|
+
type: zod.ZodEnum<{
|
|
15
|
+
start: "start";
|
|
16
|
+
stop: "stop";
|
|
17
|
+
reboot: "reboot";
|
|
18
|
+
reset_password: "reset_password";
|
|
19
|
+
reinstall: "reinstall";
|
|
20
|
+
console: "console";
|
|
21
|
+
firewall_create: "firewall_create";
|
|
22
|
+
firewall_update: "firewall_update";
|
|
23
|
+
firewall_delete: "firewall_delete";
|
|
24
|
+
}>;
|
|
25
|
+
result: zod.ZodEnum<{
|
|
26
|
+
failed: "failed";
|
|
27
|
+
succeeded: "succeeded";
|
|
28
|
+
}>;
|
|
29
|
+
completed_at: zod.z.ZodISODateTime;
|
|
30
|
+
failure_code: zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>;
|
|
31
|
+
}, zod.z.core.$strict>;
|
|
32
|
+
export type LastOperation = zod.input<typeof LastOperation>;
|
|
33
|
+
export type LastOperationOutput = zod.output<typeof LastOperation>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS Legacy API candidate
|
|
5
|
+
* Manage existing SWAS instances assigned to the current project. The scoped token supplies the user and project; caller identity headers do not. This contract does not create, renew, bill or release instances. Mutation acceptance is not completion: inspect the resource operation until a durable terminal state is available. This candidate is not published or deployed.
|
|
6
|
+
* OpenAPI spec version: 0.1.0-candidate
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export const lastOperationIdRegExp = new RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$");
|
|
10
|
+
export const lastOperationFailureCodeOneMax = 128;
|
|
11
|
+
export const lastOperationFailureCodeOneRegExp = new RegExp("^[A-Z0-9_]*$");
|
|
12
|
+
export const LastOperation = zod.strictObject({
|
|
13
|
+
id: zod.uuid().regex(lastOperationIdRegExp),
|
|
14
|
+
type: zod.enum([
|
|
15
|
+
"start",
|
|
16
|
+
"stop",
|
|
17
|
+
"reboot",
|
|
18
|
+
"reinstall",
|
|
19
|
+
"reset_password",
|
|
20
|
+
"console",
|
|
21
|
+
"firewall_create",
|
|
22
|
+
"firewall_update",
|
|
23
|
+
"firewall_delete",
|
|
24
|
+
]),
|
|
25
|
+
result: zod.enum(["succeeded", "failed"]),
|
|
26
|
+
completed_at: zod.iso.datetime({ offset: true }),
|
|
27
|
+
failure_code: zod.union([
|
|
28
|
+
zod.string().max(lastOperationFailureCodeOneMax).regex(lastOperationFailureCodeOneRegExp),
|
|
29
|
+
zod.null(),
|
|
30
|
+
]),
|
|
31
|
+
});
|