@leaflow/sdk 0.171.0 → 0.173.1
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/account/v1/generated/models.d.ts +52 -10
- package/dist/account/v1/generated/validators/error.zod.d.ts +13 -4
- package/dist/account/v1/generated/validators/error.zod.js +6 -9
- package/dist/account/v1/generated/validators/errorStatus.zod.d.ts +41 -0
- package/dist/account/v1/generated/validators/errorStatus.zod.js +56 -0
- package/dist/account/v1/generated/validators/fieldViolation.zod.d.ts +32 -0
- package/dist/account/v1/generated/validators/fieldViolation.zod.js +35 -0
- package/dist/assistant/v1/generated/models.d.ts +52 -10
- package/dist/assistant/v1/generated/validators/error.zod.d.ts +13 -4
- package/dist/assistant/v1/generated/validators/error.zod.js +6 -9
- package/dist/assistant/v1/generated/validators/errorStatus.zod.d.ts +40 -0
- package/dist/assistant/v1/generated/validators/errorStatus.zod.js +55 -0
- package/dist/assistant/v1/generated/validators/fieldViolation.zod.d.ts +31 -0
- package/dist/assistant/v1/generated/validators/fieldViolation.zod.js +34 -0
- package/dist/billing/v1/generated/models.d.ts +52 -10
- package/dist/billing/v1/generated/validators/error.zod.d.ts +13 -4
- package/dist/billing/v1/generated/validators/error.zod.js +6 -9
- package/dist/billing/v1/generated/validators/errorStatus.zod.d.ts +23 -0
- package/dist/billing/v1/generated/validators/errorStatus.zod.js +38 -0
- package/dist/billing/v1/generated/validators/fieldViolation.zod.d.ts +14 -0
- package/dist/billing/v1/generated/validators/fieldViolation.zod.js +17 -0
- package/dist/canopy/v1/generated/models.d.ts +52 -10
- package/dist/canopy/v1/generated/validators/error.zod.d.ts +13 -4
- package/dist/canopy/v1/generated/validators/error.zod.js +6 -9
- package/dist/canopy/v1/generated/validators/errorStatus.zod.d.ts +56 -0
- package/dist/canopy/v1/generated/validators/errorStatus.zod.js +71 -0
- package/dist/canopy/v1/generated/validators/fieldViolation.zod.d.ts +47 -0
- package/dist/canopy/v1/generated/validators/fieldViolation.zod.js +50 -0
- package/dist/compute/v2/generated/models.d.ts +52 -10
- package/dist/compute/v2/generated/validators/error.zod.d.ts +13 -4
- package/dist/compute/v2/generated/validators/error.zod.js +6 -9
- package/dist/compute/v2/generated/validators/errorStatus.zod.d.ts +50 -0
- package/dist/compute/v2/generated/validators/errorStatus.zod.js +65 -0
- package/dist/compute/v2/generated/validators/fieldViolation.zod.d.ts +41 -0
- package/dist/compute/v2/generated/validators/fieldViolation.zod.js +44 -0
- package/dist/dns/v1/generated/models.d.ts +52 -10
- package/dist/dns/v1/generated/validators/error.zod.d.ts +13 -4
- package/dist/dns/v1/generated/validators/error.zod.js +6 -9
- package/dist/dns/v1/generated/validators/errorStatus.zod.d.ts +66 -0
- package/dist/dns/v1/generated/validators/errorStatus.zod.js +81 -0
- package/dist/dns/v1/generated/validators/fieldViolation.zod.d.ts +57 -0
- package/dist/dns/v1/generated/validators/fieldViolation.zod.js +60 -0
- package/dist/iam/v1/generated/models.d.ts +52 -10
- package/dist/iam/v1/generated/validators/error.zod.d.ts +13 -4
- package/dist/iam/v1/generated/validators/error.zod.js +6 -9
- package/dist/iam/v1/generated/validators/errorStatus.zod.d.ts +30 -0
- package/dist/iam/v1/generated/validators/errorStatus.zod.js +45 -0
- package/dist/iam/v1/generated/validators/fieldViolation.zod.d.ts +21 -0
- package/dist/iam/v1/generated/validators/fieldViolation.zod.js +24 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/membership/v1/generated/models.d.ts +52 -10
- package/dist/membership/v1/generated/validators/error.zod.d.ts +13 -4
- package/dist/membership/v1/generated/validators/error.zod.js +6 -9
- package/dist/membership/v1/generated/validators/errorStatus.zod.d.ts +23 -0
- package/dist/membership/v1/generated/validators/errorStatus.zod.js +38 -0
- package/dist/membership/v1/generated/validators/fieldViolation.zod.d.ts +14 -0
- package/dist/membership/v1/generated/validators/fieldViolation.zod.js +17 -0
- package/dist/monitoring/v1/generated/models.d.ts +52 -10
- package/dist/monitoring/v1/generated/validators/error.zod.d.ts +13 -4
- package/dist/monitoring/v1/generated/validators/error.zod.js +6 -9
- package/dist/monitoring/v1/generated/validators/errorStatus.zod.d.ts +36 -0
- package/dist/monitoring/v1/generated/validators/errorStatus.zod.js +51 -0
- package/dist/monitoring/v1/generated/validators/fieldViolation.zod.d.ts +27 -0
- package/dist/monitoring/v1/generated/validators/fieldViolation.zod.js +30 -0
- package/dist/notification/v1/generated/models.d.ts +52 -10
- package/dist/notification/v1/generated/validators/error.zod.d.ts +13 -4
- package/dist/notification/v1/generated/validators/error.zod.js +6 -9
- package/dist/notification/v1/generated/validators/errorStatus.zod.d.ts +77 -0
- package/dist/notification/v1/generated/validators/errorStatus.zod.js +92 -0
- package/dist/notification/v1/generated/validators/fieldViolation.zod.d.ts +68 -0
- package/dist/notification/v1/generated/validators/fieldViolation.zod.js +71 -0
- package/dist/routes.d.ts +80 -0
- package/dist/routes.js +90 -0
- package/dist/support/v1/generated/models.d.ts +52 -10
- package/dist/support/v1/generated/validators/error.zod.d.ts +13 -4
- package/dist/support/v1/generated/validators/error.zod.js +6 -9
- package/dist/support/v1/generated/validators/errorStatus.zod.d.ts +66 -0
- package/dist/support/v1/generated/validators/errorStatus.zod.js +81 -0
- package/dist/support/v1/generated/validators/fieldViolation.zod.d.ts +57 -0
- package/dist/support/v1/generated/validators/fieldViolation.zod.js +60 -0
- package/dist/swas/v1/generated/functions.d.ts +418 -0
- package/dist/swas/v1/generated/functions.js +250 -0
- package/dist/swas/v1/generated/models.d.ts +426 -0
- package/dist/swas/v1/generated/models.js +87 -0
- package/dist/swas/v1/generated/schemas.zod.d.ts +117 -0
- package/dist/swas/v1/generated/schemas.zod.js +120 -0
- package/dist/swas/v1/generated/validators/catalog.zod.d.ts +32 -0
- package/dist/swas/v1/generated/validators/catalog.zod.js +16 -0
- package/dist/swas/v1/generated/validators/createPurchaseHeaders.zod.d.ts +14 -0
- package/dist/swas/v1/generated/validators/createPurchaseHeaders.zod.js +12 -0
- package/dist/swas/v1/generated/validators/cursorPagination.zod.d.ts +14 -0
- package/dist/swas/v1/generated/validators/cursorPagination.zod.js +14 -0
- package/dist/swas/v1/generated/validators/customerRefundProgress.zod.d.ts +16 -0
- package/dist/swas/v1/generated/validators/customerRefundProgress.zod.js +14 -0
- package/dist/swas/v1/generated/validators/decimalAmount.zod.d.ts +12 -0
- package/dist/swas/v1/generated/validators/decimalAmount.zod.js +11 -0
- package/dist/swas/v1/generated/validators/error.zod.d.ts +25 -0
- package/dist/swas/v1/generated/validators/error.zod.js +14 -0
- package/dist/swas/v1/generated/validators/errorStatus.zod.d.ts +23 -0
- package/dist/swas/v1/generated/validators/errorStatus.zod.js +38 -0
- package/dist/swas/v1/generated/validators/expectedQuote.zod.d.ts +14 -0
- package/dist/swas/v1/generated/validators/expectedQuote.zod.js +13 -0
- package/dist/swas/v1/generated/validators/fieldViolation.zod.d.ts +14 -0
- package/dist/swas/v1/generated/validators/fieldViolation.zod.js +17 -0
- package/dist/swas/v1/generated/validators/instance.zod.d.ts +58 -0
- package/dist/swas/v1/generated/validators/instance.zod.js +47 -0
- package/dist/swas/v1/generated/validators/instanceCapabilities.zod.d.ts +16 -0
- package/dist/swas/v1/generated/validators/instanceCapabilities.zod.js +14 -0
- package/dist/swas/v1/generated/validators/instanceList.zod.d.ts +62 -0
- package/dist/swas/v1/generated/validators/instanceList.zod.js +15 -0
- package/dist/swas/v1/generated/validators/instancePagination.zod.d.ts +15 -0
- package/dist/swas/v1/generated/validators/instancePagination.zod.js +10 -0
- package/dist/swas/v1/generated/validators/instancePrice.zod.d.ts +15 -0
- package/dist/swas/v1/generated/validators/instancePrice.zod.js +21 -0
- package/dist/swas/v1/generated/validators/listInstancesParams.zod.d.ts +20 -0
- package/dist/swas/v1/generated/validators/listInstancesParams.zod.js +22 -0
- package/dist/swas/v1/generated/validators/listPlansParams.zod.d.ts +14 -0
- package/dist/swas/v1/generated/validators/listPlansParams.zod.js +12 -0
- package/dist/swas/v1/generated/validators/managementOperation.zod.d.ts +36 -0
- package/dist/swas/v1/generated/validators/managementOperation.zod.js +21 -0
- package/dist/swas/v1/generated/validators/money.zod.d.ts +11 -0
- package/dist/swas/v1/generated/validators/money.zod.js +11 -0
- package/dist/swas/v1/generated/validators/offsetPagination.zod.d.ts +16 -0
- package/dist/swas/v1/generated/validators/offsetPagination.zod.js +16 -0
- package/dist/swas/v1/generated/validators/plan.zod.d.ts +29 -0
- package/dist/swas/v1/generated/validators/plan.zod.js +22 -0
- package/dist/swas/v1/generated/validators/price.zod.d.ts +19 -0
- package/dist/swas/v1/generated/validators/price.zod.js +28 -0
- package/dist/swas/v1/generated/validators/purchase.zod.d.ts +34 -0
- package/dist/swas/v1/generated/validators/purchase.zod.js +34 -0
- package/dist/swas/v1/generated/validators/purchaseCreate.zod.d.ts +27 -0
- package/dist/swas/v1/generated/validators/purchaseCreate.zod.js +23 -0
- package/dist/swas/v1/generated/validators/rebootCycle.zod.d.ts +14 -0
- package/dist/swas/v1/generated/validators/rebootCycle.zod.js +17 -0
- package/dist/swas/v1/generated/validators/rebootInstance.zod.d.ts +11 -0
- package/dist/swas/v1/generated/validators/rebootInstance.zod.js +9 -0
- package/dist/swas/v1/generated/validators/rebootInstanceHeaders.zod.d.ts +14 -0
- package/dist/swas/v1/generated/validators/rebootInstanceHeaders.zod.js +12 -0
- package/dist/swas/v1/generated/validators/refundProgress.zod.d.ts +33 -0
- package/dist/swas/v1/generated/validators/refundProgress.zod.js +27 -0
- package/dist/swas/v1/generated/validators/startInstance.zod.d.ts +11 -0
- package/dist/swas/v1/generated/validators/startInstance.zod.js +9 -0
- package/dist/swas/v1/generated/validators/startInstanceHeaders.zod.d.ts +14 -0
- package/dist/swas/v1/generated/validators/startInstanceHeaders.zod.js +12 -0
- package/dist/swas/v1/generated/validators/stopInstance.zod.d.ts +11 -0
- package/dist/swas/v1/generated/validators/stopInstance.zod.js +9 -0
- package/dist/swas/v1/generated/validators/stopInstanceHeaders.zod.d.ts +14 -0
- package/dist/swas/v1/generated/validators/stopInstanceHeaders.zod.js +12 -0
- package/dist/swas/v1/generated/validators/supplierRefundProgress.zod.d.ts +14 -0
- package/dist/swas/v1/generated/validators/supplierRefundProgress.zod.js +12 -0
- package/dist/swas/v1/index.d.ts +4 -0
- package/dist/swas/v1/index.js +4 -0
- package/dist/swas/v1/response-schemas.d.ts +18 -0
- package/dist/swas/v1/response-schemas.js +19 -0
- package/dist/type/error/v1/generated/models.d.ts +52 -10
- package/dist/type/error/v1/generated/validators/error.zod.d.ts +13 -4
- package/dist/type/error/v1/generated/validators/error.zod.js +6 -9
- package/dist/type/error/v1/generated/validators/errorStatus.zod.d.ts +24 -0
- package/dist/type/error/v1/generated/validators/errorStatus.zod.js +39 -0
- package/dist/type/error/v1/generated/validators/fieldViolation.zod.d.ts +15 -0
- package/dist/type/error/v1/generated/validators/fieldViolation.zod.js +18 -0
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS API
|
|
5
|
+
* Manage SWAS purchases and instances in the current project. Use an IAM scoped token for every request. Amounts are decimal strings in the stated currency; timestamps are UTC RFC 3339. Accepted requests may still be in progress. Read purchase, operation and refund progress separately.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export const rebootInstanceHeadersIdempotencyKeyMax = 128;
|
|
10
|
+
export const RebootInstanceHeaders = zod.strictObject({
|
|
11
|
+
"Idempotency-Key": zod.string().min(1).max(rebootInstanceHeadersIdempotencyKeyMax),
|
|
12
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS API
|
|
5
|
+
* Manage SWAS purchases and instances in the current project. Use an IAM scoped token for every request. Amounts are decimal strings in the stated currency; timestamps are UTC RFC 3339. Accepted requests may still be in progress. Read purchase, operation and refund progress separately.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const RefundProgress: zod.ZodObject<{
|
|
10
|
+
purchase_id: zod.ZodUUID;
|
|
11
|
+
cancellation_id: zod.ZodUUID;
|
|
12
|
+
cancellation_state: zod.ZodEnum<{
|
|
13
|
+
scheduled: "scheduled";
|
|
14
|
+
completed: "completed";
|
|
15
|
+
failed: "failed";
|
|
16
|
+
requested: "requested";
|
|
17
|
+
releasing: "releasing";
|
|
18
|
+
canceled: "canceled";
|
|
19
|
+
}>;
|
|
20
|
+
customer_refund: zod.ZodObject<{
|
|
21
|
+
state: zod.ZodLiteral<"unknown">;
|
|
22
|
+
reason: zod.ZodLiteral<"billing_refund_reader_unavailable">;
|
|
23
|
+
amount: zod.ZodNull;
|
|
24
|
+
currency: zod.ZodNull;
|
|
25
|
+
}, zod.z.core.$strict>;
|
|
26
|
+
supplier_refund: zod.ZodObject<{
|
|
27
|
+
state: zod.ZodLiteral<"not_observed">;
|
|
28
|
+
reason: zod.ZodLiteral<"supplier_refund_not_queried">;
|
|
29
|
+
}, zod.z.core.$strict>;
|
|
30
|
+
observed_at: zod.z.ZodISODateTime;
|
|
31
|
+
}, zod.z.core.$strict>;
|
|
32
|
+
export type RefundProgress = zod.input<typeof RefundProgress>;
|
|
33
|
+
export type RefundProgressOutput = zod.output<typeof RefundProgress>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS API
|
|
5
|
+
* Manage SWAS purchases and instances in the current project. Use an IAM scoped token for every request. Amounts are decimal strings in the stated currency; timestamps are UTC RFC 3339. Accepted requests may still be in progress. Read purchase, operation and refund progress separately.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
import { CustomerRefundProgress } from "./customerRefundProgress.zod.js";
|
|
10
|
+
import { SupplierRefundProgress } from "./supplierRefundProgress.zod.js";
|
|
11
|
+
export const RefundProgress = zod
|
|
12
|
+
.strictObject({
|
|
13
|
+
purchase_id: zod.uuid(),
|
|
14
|
+
cancellation_id: zod.uuid(),
|
|
15
|
+
cancellation_state: zod.enum([
|
|
16
|
+
"requested",
|
|
17
|
+
"scheduled",
|
|
18
|
+
"releasing",
|
|
19
|
+
"completed",
|
|
20
|
+
"canceled",
|
|
21
|
+
"failed",
|
|
22
|
+
]),
|
|
23
|
+
customer_refund: CustomerRefundProgress,
|
|
24
|
+
supplier_refund: SupplierRefundProgress,
|
|
25
|
+
observed_at: zod.iso.datetime({ offset: true }).describe("UTC RFC 3339 timestamp."),
|
|
26
|
+
})
|
|
27
|
+
.describe("Cancellation and refund progress are independent. Unknown money amounts and currencies are null; cancellation completion does not confirm cash settlement.");
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS API
|
|
5
|
+
* Manage SWAS purchases and instances in the current project. Use an IAM scoped token for every request. Amounts are decimal strings in the stated currency; timestamps are UTC RFC 3339. Accepted requests may still be in progress. Read purchase, operation and refund progress separately.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const StartInstance: zod.ZodObject<{}, zod.z.core.$strict>;
|
|
10
|
+
export type StartInstance = zod.input<typeof StartInstance>;
|
|
11
|
+
export type StartInstanceOutput = zod.output<typeof StartInstance>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS API
|
|
5
|
+
* Manage SWAS purchases and instances in the current project. Use an IAM scoped token for every request. Amounts are decimal strings in the stated currency; timestamps are UTC RFC 3339. Accepted requests may still be in progress. Read purchase, operation and refund progress separately.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export const StartInstance = zod.strictObject({});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS API
|
|
5
|
+
* Manage SWAS purchases and instances in the current project. Use an IAM scoped token for every request. Amounts are decimal strings in the stated currency; timestamps are UTC RFC 3339. Accepted requests may still be in progress. Read purchase, operation and refund progress separately.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const startInstanceHeadersIdempotencyKeyMax = 128;
|
|
10
|
+
export declare const StartInstanceHeaders: zod.ZodObject<{
|
|
11
|
+
"Idempotency-Key": zod.ZodString;
|
|
12
|
+
}, zod.z.core.$strict>;
|
|
13
|
+
export type StartInstanceHeaders = zod.input<typeof StartInstanceHeaders>;
|
|
14
|
+
export type StartInstanceHeadersOutput = zod.output<typeof StartInstanceHeaders>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS API
|
|
5
|
+
* Manage SWAS purchases and instances in the current project. Use an IAM scoped token for every request. Amounts are decimal strings in the stated currency; timestamps are UTC RFC 3339. Accepted requests may still be in progress. Read purchase, operation and refund progress separately.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export const startInstanceHeadersIdempotencyKeyMax = 128;
|
|
10
|
+
export const StartInstanceHeaders = zod.strictObject({
|
|
11
|
+
"Idempotency-Key": zod.string().min(1).max(startInstanceHeadersIdempotencyKeyMax),
|
|
12
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS API
|
|
5
|
+
* Manage SWAS purchases and instances in the current project. Use an IAM scoped token for every request. Amounts are decimal strings in the stated currency; timestamps are UTC RFC 3339. Accepted requests may still be in progress. Read purchase, operation and refund progress separately.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const StopInstance: zod.ZodObject<{}, zod.z.core.$strict>;
|
|
10
|
+
export type StopInstance = zod.input<typeof StopInstance>;
|
|
11
|
+
export type StopInstanceOutput = zod.output<typeof StopInstance>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS API
|
|
5
|
+
* Manage SWAS purchases and instances in the current project. Use an IAM scoped token for every request. Amounts are decimal strings in the stated currency; timestamps are UTC RFC 3339. Accepted requests may still be in progress. Read purchase, operation and refund progress separately.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export const StopInstance = zod.strictObject({});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS API
|
|
5
|
+
* Manage SWAS purchases and instances in the current project. Use an IAM scoped token for every request. Amounts are decimal strings in the stated currency; timestamps are UTC RFC 3339. Accepted requests may still be in progress. Read purchase, operation and refund progress separately.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const stopInstanceHeadersIdempotencyKeyMax = 128;
|
|
10
|
+
export declare const StopInstanceHeaders: zod.ZodObject<{
|
|
11
|
+
"Idempotency-Key": zod.ZodString;
|
|
12
|
+
}, zod.z.core.$strict>;
|
|
13
|
+
export type StopInstanceHeaders = zod.input<typeof StopInstanceHeaders>;
|
|
14
|
+
export type StopInstanceHeadersOutput = zod.output<typeof StopInstanceHeaders>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS API
|
|
5
|
+
* Manage SWAS purchases and instances in the current project. Use an IAM scoped token for every request. Amounts are decimal strings in the stated currency; timestamps are UTC RFC 3339. Accepted requests may still be in progress. Read purchase, operation and refund progress separately.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export const stopInstanceHeadersIdempotencyKeyMax = 128;
|
|
10
|
+
export const StopInstanceHeaders = zod.strictObject({
|
|
11
|
+
"Idempotency-Key": zod.string().min(1).max(stopInstanceHeadersIdempotencyKeyMax),
|
|
12
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS API
|
|
5
|
+
* Manage SWAS purchases and instances in the current project. Use an IAM scoped token for every request. Amounts are decimal strings in the stated currency; timestamps are UTC RFC 3339. Accepted requests may still be in progress. Read purchase, operation and refund progress separately.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const SupplierRefundProgress: zod.ZodObject<{
|
|
10
|
+
state: zod.ZodLiteral<"not_observed">;
|
|
11
|
+
reason: zod.ZodLiteral<"supplier_refund_not_queried">;
|
|
12
|
+
}, zod.z.core.$strict>;
|
|
13
|
+
export type SupplierRefundProgress = zod.input<typeof SupplierRefundProgress>;
|
|
14
|
+
export type SupplierRefundProgressOutput = zod.output<typeof SupplierRefundProgress>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS API
|
|
5
|
+
* Manage SWAS purchases and instances in the current project. Use an IAM scoped token for every request. Amounts are decimal strings in the stated currency; timestamps are UTC RFC 3339. Accepted requests may still be in progress. Read purchase, operation and refund progress separately.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export const SupplierRefundProgress = zod.strictObject({
|
|
10
|
+
state: zod.literal("not_observed"),
|
|
11
|
+
reason: zod.literal("supplier_refund_not_queried"),
|
|
12
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { Catalog } from "./generated/validators/catalog.zod.js";
|
|
2
|
+
export { Purchase } from "./generated/validators/purchase.zod.js";
|
|
3
|
+
export { InstanceList } from "./generated/validators/instanceList.zod.js";
|
|
4
|
+
export { Instance } from "./generated/validators/instance.zod.js";
|
|
5
|
+
export { ManagementOperation } from "./generated/validators/managementOperation.zod.js";
|
|
6
|
+
export { RefundProgress } from "./generated/validators/refundProgress.zod.js";
|
|
7
|
+
export { Error } from "./generated/validators/error.zod.js";
|
|
8
|
+
export { Plan } from "./generated/validators/plan.zod.js";
|
|
9
|
+
export { Price } from "./generated/validators/price.zod.js";
|
|
10
|
+
export { InstancePagination } from "./generated/validators/instancePagination.zod.js";
|
|
11
|
+
export { OffsetPagination } from "./generated/validators/offsetPagination.zod.js";
|
|
12
|
+
export { InstancePrice } from "./generated/validators/instancePrice.zod.js";
|
|
13
|
+
export { InstanceCapabilities } from "./generated/validators/instanceCapabilities.zod.js";
|
|
14
|
+
export { RebootCycle } from "./generated/validators/rebootCycle.zod.js";
|
|
15
|
+
export { CustomerRefundProgress } from "./generated/validators/customerRefundProgress.zod.js";
|
|
16
|
+
export { SupplierRefundProgress } from "./generated/validators/supplierRefundProgress.zod.js";
|
|
17
|
+
export { DecimalAmount } from "./generated/validators/decimalAmount.zod.js";
|
|
18
|
+
export { Money } from "./generated/validators/money.zod.js";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Re-export native Orval validators; the public contract remains the only schema source.
|
|
2
|
+
export { Catalog } from "./generated/validators/catalog.zod.js";
|
|
3
|
+
export { Purchase } from "./generated/validators/purchase.zod.js";
|
|
4
|
+
export { InstanceList } from "./generated/validators/instanceList.zod.js";
|
|
5
|
+
export { Instance } from "./generated/validators/instance.zod.js";
|
|
6
|
+
export { ManagementOperation } from "./generated/validators/managementOperation.zod.js";
|
|
7
|
+
export { RefundProgress } from "./generated/validators/refundProgress.zod.js";
|
|
8
|
+
export { Error } from "./generated/validators/error.zod.js";
|
|
9
|
+
export { Plan } from "./generated/validators/plan.zod.js";
|
|
10
|
+
export { Price } from "./generated/validators/price.zod.js";
|
|
11
|
+
export { InstancePagination } from "./generated/validators/instancePagination.zod.js";
|
|
12
|
+
export { OffsetPagination } from "./generated/validators/offsetPagination.zod.js";
|
|
13
|
+
export { InstancePrice } from "./generated/validators/instancePrice.zod.js";
|
|
14
|
+
export { InstanceCapabilities } from "./generated/validators/instanceCapabilities.zod.js";
|
|
15
|
+
export { RebootCycle } from "./generated/validators/rebootCycle.zod.js";
|
|
16
|
+
export { CustomerRefundProgress } from "./generated/validators/customerRefundProgress.zod.js";
|
|
17
|
+
export { SupplierRefundProgress } from "./generated/validators/supplierRefundProgress.zod.js";
|
|
18
|
+
export { DecimalAmount } from "./generated/validators/decimalAmount.zod.js";
|
|
19
|
+
export { Money } from "./generated/validators/money.zod.js";
|
|
@@ -6,20 +6,62 @@
|
|
|
6
6
|
* operations and `paths` is empty.
|
|
7
7
|
* OpenAPI spec version: v1
|
|
8
8
|
*/
|
|
9
|
+
export interface FieldViolation {
|
|
10
|
+
/** The path to the rejected field in the request body, such as `items[2].price_id`. */
|
|
11
|
+
field: string;
|
|
12
|
+
/** Why the field was rejected, such as `REQUIRED` or `OUT_OF_RANGE`. */
|
|
13
|
+
reason?: string;
|
|
14
|
+
}
|
|
9
15
|
/**
|
|
10
|
-
*
|
|
11
|
-
* and
|
|
16
|
+
* Values that belong to `reason`, one set per reason. Clients use them to fill in
|
|
17
|
+
* localized text and never parse `message` to obtain them. Keys are documented per
|
|
18
|
+
* reason; a key that has appeared once keeps appearing.
|
|
12
19
|
*/
|
|
13
|
-
export type
|
|
14
|
-
[key: string]:
|
|
20
|
+
export type ErrorStatusMetadata = {
|
|
21
|
+
[key: string]: string;
|
|
15
22
|
};
|
|
16
|
-
export interface
|
|
17
|
-
code
|
|
23
|
+
export interface ErrorStatus {
|
|
24
|
+
/** The HTTP status code of the response. */
|
|
25
|
+
code: number;
|
|
26
|
+
/** The canonical name of the status, such as `INVALID_ARGUMENT` or `UNAVAILABLE`. */
|
|
27
|
+
status: string;
|
|
28
|
+
/**
|
|
29
|
+
* A description of the failure for developers. It is always English and is not meant
|
|
30
|
+
* to be shown to end users as is.
|
|
31
|
+
*/
|
|
18
32
|
message: string;
|
|
19
33
|
/**
|
|
20
|
-
*
|
|
21
|
-
* and
|
|
34
|
+
* A stable machine-readable code identifying the failure. Clients branch on this value
|
|
35
|
+
* and render their own text; it does not change once published.
|
|
36
|
+
*/
|
|
37
|
+
reason?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Values that belong to `reason`, one set per reason. Clients use them to fill in
|
|
40
|
+
* localized text and never parse `message` to obtain them. Keys are documented per
|
|
41
|
+
* reason; a key that has appeared once keeps appearing.
|
|
42
|
+
*/
|
|
43
|
+
metadata?: ErrorStatusMetadata;
|
|
44
|
+
/**
|
|
45
|
+
* Request fields rejected by the request's constraints. Present on validation
|
|
46
|
+
* failures; one request may violate several fields.
|
|
22
47
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
48
|
+
field_violations?: FieldViolation[];
|
|
49
|
+
/**
|
|
50
|
+
* How long the client should wait before retrying, as a duration string such as
|
|
51
|
+
* `30s`. Present only when waiting can succeed.
|
|
52
|
+
*/
|
|
53
|
+
retry_delay?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The identifier of the request in the service's logs. Quote it when reporting a
|
|
56
|
+
* failure.
|
|
57
|
+
*/
|
|
58
|
+
request_id?: string;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* A failed request. The envelope follows the Google REST error format: `code` is the HTTP
|
|
62
|
+
* status, `status` is its canonical name, and `reason` is the stable machine-readable code
|
|
63
|
+
* that identifies the failure.
|
|
64
|
+
*/
|
|
65
|
+
export interface Error {
|
|
66
|
+
error: ErrorStatus;
|
|
25
67
|
}
|
|
@@ -8,10 +8,19 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import * as zod from "zod";
|
|
10
10
|
export declare const Error: zod.ZodObject<{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
error: zod.ZodObject<{
|
|
12
|
+
code: zod.ZodInt;
|
|
13
|
+
status: zod.ZodString;
|
|
14
|
+
message: zod.ZodString;
|
|
15
|
+
reason: zod.ZodOptional<zod.ZodString>;
|
|
16
|
+
metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
17
|
+
field_violations: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
18
|
+
field: zod.ZodString;
|
|
19
|
+
reason: zod.ZodOptional<zod.ZodString>;
|
|
20
|
+
}, zod.z.core.$strict>>>;
|
|
21
|
+
retry_delay: zod.ZodOptional<zod.ZodString>;
|
|
22
|
+
request_id: zod.ZodOptional<zod.ZodString>;
|
|
23
|
+
}, zod.z.core.$strict>;
|
|
15
24
|
}, zod.z.core.$strict>;
|
|
16
25
|
export type Error = zod.input<typeof Error>;
|
|
17
26
|
export type ErrorOutput = zod.output<typeof Error>;
|
|
@@ -7,12 +7,9 @@
|
|
|
7
7
|
* OpenAPI spec version: v1
|
|
8
8
|
*/
|
|
9
9
|
import * as zod from "zod";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
.describe("What a given `code` carries alongside the message. The keys depend on the code,\nand a client that does not recognise one ignores it."),
|
|
17
|
-
status: zod.int(),
|
|
18
|
-
});
|
|
10
|
+
import { ErrorStatus } from "./errorStatus.zod.js";
|
|
11
|
+
export const Error = zod
|
|
12
|
+
.strictObject({
|
|
13
|
+
error: ErrorStatus,
|
|
14
|
+
})
|
|
15
|
+
.describe("A failed request. The envelope follows the Google REST error format: `code` is the HTTP\nstatus, `status` is its canonical name, and `reason` is the stable machine-readable code\nthat identifies the failure.");
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Shared Types
|
|
5
|
+
* Shapes shared across the platform. This document declares types only; it has no
|
|
6
|
+
* operations and `paths` is empty.
|
|
7
|
+
* OpenAPI spec version: v1
|
|
8
|
+
*/
|
|
9
|
+
import * as zod from "zod";
|
|
10
|
+
export declare const ErrorStatus: zod.ZodObject<{
|
|
11
|
+
code: zod.ZodInt;
|
|
12
|
+
status: zod.ZodString;
|
|
13
|
+
message: zod.ZodString;
|
|
14
|
+
reason: zod.ZodOptional<zod.ZodString>;
|
|
15
|
+
metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
16
|
+
field_violations: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
17
|
+
field: zod.ZodString;
|
|
18
|
+
reason: zod.ZodOptional<zod.ZodString>;
|
|
19
|
+
}, zod.z.core.$strict>>>;
|
|
20
|
+
retry_delay: zod.ZodOptional<zod.ZodString>;
|
|
21
|
+
request_id: zod.ZodOptional<zod.ZodString>;
|
|
22
|
+
}, zod.z.core.$strict>;
|
|
23
|
+
export type ErrorStatus = zod.input<typeof ErrorStatus>;
|
|
24
|
+
export type ErrorStatusOutput = zod.output<typeof ErrorStatus>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Shared Types
|
|
5
|
+
* Shapes shared across the platform. This document declares types only; it has no
|
|
6
|
+
* operations and `paths` is empty.
|
|
7
|
+
* OpenAPI spec version: v1
|
|
8
|
+
*/
|
|
9
|
+
import * as zod from "zod";
|
|
10
|
+
import { FieldViolation } from "./fieldViolation.zod.js";
|
|
11
|
+
export const ErrorStatus = zod.strictObject({
|
|
12
|
+
code: zod.int().describe("The HTTP status code of the response."),
|
|
13
|
+
status: zod
|
|
14
|
+
.string()
|
|
15
|
+
.describe("The canonical name of the status, such as `INVALID_ARGUMENT` or `UNAVAILABLE`."),
|
|
16
|
+
message: zod
|
|
17
|
+
.string()
|
|
18
|
+
.describe("A description of the failure for developers. It is always English and is not meant\nto be shown to end users as is."),
|
|
19
|
+
reason: zod
|
|
20
|
+
.string()
|
|
21
|
+
.optional()
|
|
22
|
+
.describe("A stable machine-readable code identifying the failure. Clients branch on this value\nand render their own text; it does not change once published."),
|
|
23
|
+
metadata: zod
|
|
24
|
+
.record(zod.string(), zod.string())
|
|
25
|
+
.optional()
|
|
26
|
+
.describe("Values that belong to `reason`, one set per reason. Clients use them to fill in\nlocalized text and never parse `message` to obtain them. Keys are documented per\nreason; a key that has appeared once keeps appearing."),
|
|
27
|
+
field_violations: zod
|
|
28
|
+
.array(FieldViolation)
|
|
29
|
+
.optional()
|
|
30
|
+
.describe("Request fields rejected by the request's constraints. Present on validation\nfailures; one request may violate several fields."),
|
|
31
|
+
retry_delay: zod
|
|
32
|
+
.string()
|
|
33
|
+
.optional()
|
|
34
|
+
.describe("How long the client should wait before retrying, as a duration string such as\n`30s`. Present only when waiting can succeed."),
|
|
35
|
+
request_id: zod
|
|
36
|
+
.string()
|
|
37
|
+
.optional()
|
|
38
|
+
.describe("The identifier of the request in the service's logs. Quote it when reporting a\nfailure."),
|
|
39
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Shared Types
|
|
5
|
+
* Shapes shared across the platform. This document declares types only; it has no
|
|
6
|
+
* operations and `paths` is empty.
|
|
7
|
+
* OpenAPI spec version: v1
|
|
8
|
+
*/
|
|
9
|
+
import * as zod from "zod";
|
|
10
|
+
export declare const FieldViolation: zod.ZodObject<{
|
|
11
|
+
field: zod.ZodString;
|
|
12
|
+
reason: zod.ZodOptional<zod.ZodString>;
|
|
13
|
+
}, zod.z.core.$strict>;
|
|
14
|
+
export type FieldViolation = zod.input<typeof FieldViolation>;
|
|
15
|
+
export type FieldViolationOutput = zod.output<typeof FieldViolation>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Shared Types
|
|
5
|
+
* Shapes shared across the platform. This document declares types only; it has no
|
|
6
|
+
* operations and `paths` is empty.
|
|
7
|
+
* OpenAPI spec version: v1
|
|
8
|
+
*/
|
|
9
|
+
import * as zod from "zod";
|
|
10
|
+
export const FieldViolation = zod.strictObject({
|
|
11
|
+
field: zod
|
|
12
|
+
.string()
|
|
13
|
+
.describe("The path to the rejected field in the request body, such as `items[2].price_id`."),
|
|
14
|
+
reason: zod
|
|
15
|
+
.string()
|
|
16
|
+
.optional()
|
|
17
|
+
.describe("Why the field was rejected, such as `REQUIRED` or `OUT_OF_RANGE`."),
|
|
18
|
+
});
|