@leaflow/sdk 0.168.0 → 0.169.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/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,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 reinstallRequestImageIdMax = 256;
|
|
10
|
+
export const reinstallRequestImageIdRegExp = new RegExp("^[A-Za-z0-9_.-]+$");
|
|
11
|
+
export const ReinstallRequest = zod.strictObject({
|
|
12
|
+
expected_generation: zod.int().min(1),
|
|
13
|
+
image_id: zod
|
|
14
|
+
.string()
|
|
15
|
+
.min(1)
|
|
16
|
+
.max(reinstallRequestImageIdMax)
|
|
17
|
+
.regex(reinstallRequestImageIdRegExp),
|
|
18
|
+
confirm_data_loss: zod.literal(true),
|
|
19
|
+
});
|
|
@@ -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 setInstancePasswordHeadersIdempotencyKeyMax = 128;
|
|
10
|
+
export declare const setInstancePasswordHeadersIdempotencyKeyRegExp: RegExp;
|
|
11
|
+
export declare const SetInstancePasswordHeaders: zod.ZodObject<{
|
|
12
|
+
"Idempotency-Key": zod.ZodString;
|
|
13
|
+
}, zod.z.core.$strict>;
|
|
14
|
+
export type SetInstancePasswordHeaders = zod.input<typeof SetInstancePasswordHeaders>;
|
|
15
|
+
export type SetInstancePasswordHeadersOutput = zod.output<typeof SetInstancePasswordHeaders>;
|
|
@@ -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 setInstancePasswordHeadersIdempotencyKeyMax = 128;
|
|
10
|
+
export const setInstancePasswordHeadersIdempotencyKeyRegExp = new RegExp("^[A-Za-z0-9_.-]+$");
|
|
11
|
+
export const SetInstancePasswordHeaders = zod.strictObject({
|
|
12
|
+
"Idempotency-Key": zod
|
|
13
|
+
.string()
|
|
14
|
+
.min(1)
|
|
15
|
+
.max(setInstancePasswordHeadersIdempotencyKeyMax)
|
|
16
|
+
.regex(setInstancePasswordHeadersIdempotencyKeyRegExp),
|
|
17
|
+
});
|
|
@@ -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 startInstanceHeadersIdempotencyKeyMax = 128;
|
|
10
|
+
export declare const startInstanceHeadersIdempotencyKeyRegExp: RegExp;
|
|
11
|
+
export declare const StartInstanceHeaders: zod.ZodObject<{
|
|
12
|
+
"Idempotency-Key": zod.ZodString;
|
|
13
|
+
}, zod.z.core.$strict>;
|
|
14
|
+
export type StartInstanceHeaders = zod.input<typeof StartInstanceHeaders>;
|
|
15
|
+
export type StartInstanceHeadersOutput = zod.output<typeof StartInstanceHeaders>;
|
|
@@ -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 startInstanceHeadersIdempotencyKeyMax = 128;
|
|
10
|
+
export const startInstanceHeadersIdempotencyKeyRegExp = new RegExp("^[A-Za-z0-9_.-]+$");
|
|
11
|
+
export const StartInstanceHeaders = zod.strictObject({
|
|
12
|
+
"Idempotency-Key": zod
|
|
13
|
+
.string()
|
|
14
|
+
.min(1)
|
|
15
|
+
.max(startInstanceHeadersIdempotencyKeyMax)
|
|
16
|
+
.regex(startInstanceHeadersIdempotencyKeyRegExp),
|
|
17
|
+
});
|
|
@@ -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 stopInstanceHeadersIdempotencyKeyMax = 128;
|
|
10
|
+
export declare const stopInstanceHeadersIdempotencyKeyRegExp: RegExp;
|
|
11
|
+
export declare const StopInstanceHeaders: zod.ZodObject<{
|
|
12
|
+
"Idempotency-Key": zod.ZodString;
|
|
13
|
+
}, zod.z.core.$strict>;
|
|
14
|
+
export type StopInstanceHeaders = zod.input<typeof StopInstanceHeaders>;
|
|
15
|
+
export type StopInstanceHeadersOutput = zod.output<typeof StopInstanceHeaders>;
|
|
@@ -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 stopInstanceHeadersIdempotencyKeyMax = 128;
|
|
10
|
+
export const stopInstanceHeadersIdempotencyKeyRegExp = new RegExp("^[A-Za-z0-9_.-]+$");
|
|
11
|
+
export const StopInstanceHeaders = zod.strictObject({
|
|
12
|
+
"Idempotency-Key": zod
|
|
13
|
+
.string()
|
|
14
|
+
.min(1)
|
|
15
|
+
.max(stopInstanceHeadersIdempotencyKeyMax)
|
|
16
|
+
.regex(stopInstanceHeadersIdempotencyKeyRegExp),
|
|
17
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
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 trafficInstanceIdRegExp: RegExp;
|
|
10
|
+
export declare const Traffic: zod.ZodObject<{
|
|
11
|
+
instance_id: zod.ZodUUID;
|
|
12
|
+
period_start: zod.ZodNull;
|
|
13
|
+
period_end: zod.ZodNull;
|
|
14
|
+
used_bytes: zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>;
|
|
15
|
+
included_bytes: zod.ZodUnion<readonly [zod.ZodString, zod.ZodNull]>;
|
|
16
|
+
availability: zod.ZodEnum<{
|
|
17
|
+
unavailable: "unavailable";
|
|
18
|
+
partial: "partial";
|
|
19
|
+
}>;
|
|
20
|
+
}, zod.z.core.$strict>;
|
|
21
|
+
export type Traffic = zod.input<typeof Traffic>;
|
|
22
|
+
export type TrafficOutput = zod.output<typeof Traffic>;
|
|
@@ -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
|
+
import { Decimal } from "./decimal.zod.js";
|
|
10
|
+
export const trafficInstanceIdRegExp = new RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$");
|
|
11
|
+
export const Traffic = zod
|
|
12
|
+
.strictObject({
|
|
13
|
+
instance_id: zod.uuid().regex(trafficInstanceIdRegExp),
|
|
14
|
+
period_start: zod.null(),
|
|
15
|
+
period_end: zod.null(),
|
|
16
|
+
used_bytes: zod.union([Decimal, zod.null()]),
|
|
17
|
+
included_bytes: zod.union([Decimal, zod.null()]),
|
|
18
|
+
availability: zod.enum(["unavailable", "partial"]),
|
|
19
|
+
})
|
|
20
|
+
.describe("Reference traffic observations. Unknown periods and missing values remain null; these values are not a billing measurement.");
|
|
@@ -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 updateInstanceFirewallRuleHeadersIdempotencyKeyMax = 128;
|
|
10
|
+
export declare const updateInstanceFirewallRuleHeadersIdempotencyKeyRegExp: RegExp;
|
|
11
|
+
export declare const UpdateInstanceFirewallRuleHeaders: zod.ZodObject<{
|
|
12
|
+
"Idempotency-Key": zod.ZodString;
|
|
13
|
+
}, zod.z.core.$strict>;
|
|
14
|
+
export type UpdateInstanceFirewallRuleHeaders = zod.input<typeof UpdateInstanceFirewallRuleHeaders>;
|
|
15
|
+
export type UpdateInstanceFirewallRuleHeadersOutput = zod.output<typeof UpdateInstanceFirewallRuleHeaders>;
|
|
@@ -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 updateInstanceFirewallRuleHeadersIdempotencyKeyMax = 128;
|
|
10
|
+
export const updateInstanceFirewallRuleHeadersIdempotencyKeyRegExp = new RegExp("^[A-Za-z0-9_.-]+$");
|
|
11
|
+
export const UpdateInstanceFirewallRuleHeaders = zod.strictObject({
|
|
12
|
+
"Idempotency-Key": zod
|
|
13
|
+
.string()
|
|
14
|
+
.min(1)
|
|
15
|
+
.max(updateInstanceFirewallRuleHeadersIdempotencyKeyMax)
|
|
16
|
+
.regex(updateInstanceFirewallRuleHeadersIdempotencyKeyRegExp),
|
|
17
|
+
});
|