@leaflow/sdk 0.172.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/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/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/models.d.ts +52 -10
- package/dist/swas/v1/generated/validators/error.zod.d.ts +13 -4
- package/dist/swas/v1/generated/validators/error.zod.js +6 -9
- 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/fieldViolation.zod.d.ts +14 -0
- package/dist/swas/v1/generated/validators/fieldViolation.zod.js +17 -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
|
@@ -49,12 +49,9 @@
|
|
|
49
49
|
* OpenAPI spec version: 1.0.0
|
|
50
50
|
*/
|
|
51
51
|
import * as zod from "zod";
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
.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."),
|
|
59
|
-
status: zod.int(),
|
|
60
|
-
});
|
|
52
|
+
import { ErrorStatus } from "./errorStatus.zod.js";
|
|
53
|
+
export const Error = zod
|
|
54
|
+
.strictObject({
|
|
55
|
+
error: ErrorStatus,
|
|
56
|
+
})
|
|
57
|
+
.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,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Support API
|
|
5
|
+
* Support tickets and scheduled maintenance notices.
|
|
6
|
+
*
|
|
7
|
+
* ## Authentication
|
|
8
|
+
*
|
|
9
|
+
* Every request carries a scoped token; see the `bearerAuth` security scheme. The single
|
|
10
|
+
* exception is `GET /api/v1/notices`, which requires no credentials at all.
|
|
11
|
+
*
|
|
12
|
+
* **Neither the path nor the headers carry a `project_id`**: the current project is determined by
|
|
13
|
+
* the token.
|
|
14
|
+
*
|
|
15
|
+
* ## Tickets belong to the project
|
|
16
|
+
*
|
|
17
|
+
* A ticket is owned by the project it was opened in, not by the person who opened it. Every member
|
|
18
|
+
* of that project can read it, reply to it and close it. `created_by` records who opened it and is
|
|
19
|
+
* informational.
|
|
20
|
+
*
|
|
21
|
+
* A ticket is in one of three states:
|
|
22
|
+
*
|
|
23
|
+
* | State | Meaning |
|
|
24
|
+
* | --- | --- |
|
|
25
|
+
* | `OPEN` | Waiting on us |
|
|
26
|
+
* | `AWAITING_USER` | Waiting on you |
|
|
27
|
+
* | `CLOSED` | Finished |
|
|
28
|
+
*
|
|
29
|
+
* **The state follows whoever spoke last** and cannot be set directly. Posting a message moves the
|
|
30
|
+
* ticket to `OPEN`; a reply from support moves it to `AWAITING_USER`. Posting a message on a closed
|
|
31
|
+
* ticket reopens it as `OPEN`, so a follow-up question never lands on a ticket nobody reads.
|
|
32
|
+
*
|
|
33
|
+
* Tickets left in `AWAITING_USER` without activity are closed automatically after a period of
|
|
34
|
+
* inactivity. Tickets in `OPEN` are never closed automatically.
|
|
35
|
+
*
|
|
36
|
+
* ## Attachments are uploaded before they are referenced
|
|
37
|
+
*
|
|
38
|
+
* Upload a file to `POST /api/v1/attachments`, then pass the returned id in `attachment_ids` when
|
|
39
|
+
* opening a ticket or posting a message. An attachment that is never referenced is removed after a
|
|
40
|
+
* time, so upload and reference in the same session.
|
|
41
|
+
*
|
|
42
|
+
* The content type is determined from the content itself, not from the `Content-Type` header.
|
|
43
|
+
* Files whose determined type is not accepted are rejected with `TICKET_ATTACHMENT_TYPE_REJECTED`.
|
|
44
|
+
*
|
|
45
|
+
* ## Maintenance is read-only here
|
|
46
|
+
*
|
|
47
|
+
* Scheduled maintenance is published by platform operators and is read-only here. Platform
|
|
48
|
+
* announcements are not part of this API; they are owned by the notification service.
|
|
49
|
+
* OpenAPI spec version: 1.0.0
|
|
50
|
+
*/
|
|
51
|
+
import * as zod from "zod";
|
|
52
|
+
export declare const ErrorStatus: zod.ZodObject<{
|
|
53
|
+
code: zod.ZodInt;
|
|
54
|
+
status: zod.ZodString;
|
|
55
|
+
message: zod.ZodString;
|
|
56
|
+
reason: zod.ZodOptional<zod.ZodString>;
|
|
57
|
+
metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
58
|
+
field_violations: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
59
|
+
field: zod.ZodString;
|
|
60
|
+
reason: zod.ZodOptional<zod.ZodString>;
|
|
61
|
+
}, zod.z.core.$strict>>>;
|
|
62
|
+
retry_delay: zod.ZodOptional<zod.ZodString>;
|
|
63
|
+
request_id: zod.ZodOptional<zod.ZodString>;
|
|
64
|
+
}, zod.z.core.$strict>;
|
|
65
|
+
export type ErrorStatus = zod.input<typeof ErrorStatus>;
|
|
66
|
+
export type ErrorStatusOutput = zod.output<typeof ErrorStatus>;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Support API
|
|
5
|
+
* Support tickets and scheduled maintenance notices.
|
|
6
|
+
*
|
|
7
|
+
* ## Authentication
|
|
8
|
+
*
|
|
9
|
+
* Every request carries a scoped token; see the `bearerAuth` security scheme. The single
|
|
10
|
+
* exception is `GET /api/v1/notices`, which requires no credentials at all.
|
|
11
|
+
*
|
|
12
|
+
* **Neither the path nor the headers carry a `project_id`**: the current project is determined by
|
|
13
|
+
* the token.
|
|
14
|
+
*
|
|
15
|
+
* ## Tickets belong to the project
|
|
16
|
+
*
|
|
17
|
+
* A ticket is owned by the project it was opened in, not by the person who opened it. Every member
|
|
18
|
+
* of that project can read it, reply to it and close it. `created_by` records who opened it and is
|
|
19
|
+
* informational.
|
|
20
|
+
*
|
|
21
|
+
* A ticket is in one of three states:
|
|
22
|
+
*
|
|
23
|
+
* | State | Meaning |
|
|
24
|
+
* | --- | --- |
|
|
25
|
+
* | `OPEN` | Waiting on us |
|
|
26
|
+
* | `AWAITING_USER` | Waiting on you |
|
|
27
|
+
* | `CLOSED` | Finished |
|
|
28
|
+
*
|
|
29
|
+
* **The state follows whoever spoke last** and cannot be set directly. Posting a message moves the
|
|
30
|
+
* ticket to `OPEN`; a reply from support moves it to `AWAITING_USER`. Posting a message on a closed
|
|
31
|
+
* ticket reopens it as `OPEN`, so a follow-up question never lands on a ticket nobody reads.
|
|
32
|
+
*
|
|
33
|
+
* Tickets left in `AWAITING_USER` without activity are closed automatically after a period of
|
|
34
|
+
* inactivity. Tickets in `OPEN` are never closed automatically.
|
|
35
|
+
*
|
|
36
|
+
* ## Attachments are uploaded before they are referenced
|
|
37
|
+
*
|
|
38
|
+
* Upload a file to `POST /api/v1/attachments`, then pass the returned id in `attachment_ids` when
|
|
39
|
+
* opening a ticket or posting a message. An attachment that is never referenced is removed after a
|
|
40
|
+
* time, so upload and reference in the same session.
|
|
41
|
+
*
|
|
42
|
+
* The content type is determined from the content itself, not from the `Content-Type` header.
|
|
43
|
+
* Files whose determined type is not accepted are rejected with `TICKET_ATTACHMENT_TYPE_REJECTED`.
|
|
44
|
+
*
|
|
45
|
+
* ## Maintenance is read-only here
|
|
46
|
+
*
|
|
47
|
+
* Scheduled maintenance is published by platform operators and is read-only here. Platform
|
|
48
|
+
* announcements are not part of this API; they are owned by the notification service.
|
|
49
|
+
* OpenAPI spec version: 1.0.0
|
|
50
|
+
*/
|
|
51
|
+
import * as zod from "zod";
|
|
52
|
+
import { FieldViolation } from "./fieldViolation.zod.js";
|
|
53
|
+
export const ErrorStatus = zod.strictObject({
|
|
54
|
+
code: zod.int().describe("The HTTP status code of the response."),
|
|
55
|
+
status: zod
|
|
56
|
+
.string()
|
|
57
|
+
.describe("The canonical name of the status, such as `INVALID_ARGUMENT` or `UNAVAILABLE`."),
|
|
58
|
+
message: zod
|
|
59
|
+
.string()
|
|
60
|
+
.describe("A description of the failure for developers. It is always English and is not meant\nto be shown to end users as is."),
|
|
61
|
+
reason: zod
|
|
62
|
+
.string()
|
|
63
|
+
.optional()
|
|
64
|
+
.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."),
|
|
65
|
+
metadata: zod
|
|
66
|
+
.record(zod.string(), zod.string())
|
|
67
|
+
.optional()
|
|
68
|
+
.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."),
|
|
69
|
+
field_violations: zod
|
|
70
|
+
.array(FieldViolation)
|
|
71
|
+
.optional()
|
|
72
|
+
.describe("Request fields rejected by the request's constraints. Present on validation\nfailures; one request may violate several fields."),
|
|
73
|
+
retry_delay: zod
|
|
74
|
+
.string()
|
|
75
|
+
.optional()
|
|
76
|
+
.describe("How long the client should wait before retrying, as a duration string such as\n`30s`. Present only when waiting can succeed."),
|
|
77
|
+
request_id: zod
|
|
78
|
+
.string()
|
|
79
|
+
.optional()
|
|
80
|
+
.describe("The identifier of the request in the service's logs. Quote it when reporting a\nfailure."),
|
|
81
|
+
});
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Support API
|
|
5
|
+
* Support tickets and scheduled maintenance notices.
|
|
6
|
+
*
|
|
7
|
+
* ## Authentication
|
|
8
|
+
*
|
|
9
|
+
* Every request carries a scoped token; see the `bearerAuth` security scheme. The single
|
|
10
|
+
* exception is `GET /api/v1/notices`, which requires no credentials at all.
|
|
11
|
+
*
|
|
12
|
+
* **Neither the path nor the headers carry a `project_id`**: the current project is determined by
|
|
13
|
+
* the token.
|
|
14
|
+
*
|
|
15
|
+
* ## Tickets belong to the project
|
|
16
|
+
*
|
|
17
|
+
* A ticket is owned by the project it was opened in, not by the person who opened it. Every member
|
|
18
|
+
* of that project can read it, reply to it and close it. `created_by` records who opened it and is
|
|
19
|
+
* informational.
|
|
20
|
+
*
|
|
21
|
+
* A ticket is in one of three states:
|
|
22
|
+
*
|
|
23
|
+
* | State | Meaning |
|
|
24
|
+
* | --- | --- |
|
|
25
|
+
* | `OPEN` | Waiting on us |
|
|
26
|
+
* | `AWAITING_USER` | Waiting on you |
|
|
27
|
+
* | `CLOSED` | Finished |
|
|
28
|
+
*
|
|
29
|
+
* **The state follows whoever spoke last** and cannot be set directly. Posting a message moves the
|
|
30
|
+
* ticket to `OPEN`; a reply from support moves it to `AWAITING_USER`. Posting a message on a closed
|
|
31
|
+
* ticket reopens it as `OPEN`, so a follow-up question never lands on a ticket nobody reads.
|
|
32
|
+
*
|
|
33
|
+
* Tickets left in `AWAITING_USER` without activity are closed automatically after a period of
|
|
34
|
+
* inactivity. Tickets in `OPEN` are never closed automatically.
|
|
35
|
+
*
|
|
36
|
+
* ## Attachments are uploaded before they are referenced
|
|
37
|
+
*
|
|
38
|
+
* Upload a file to `POST /api/v1/attachments`, then pass the returned id in `attachment_ids` when
|
|
39
|
+
* opening a ticket or posting a message. An attachment that is never referenced is removed after a
|
|
40
|
+
* time, so upload and reference in the same session.
|
|
41
|
+
*
|
|
42
|
+
* The content type is determined from the content itself, not from the `Content-Type` header.
|
|
43
|
+
* Files whose determined type is not accepted are rejected with `TICKET_ATTACHMENT_TYPE_REJECTED`.
|
|
44
|
+
*
|
|
45
|
+
* ## Maintenance is read-only here
|
|
46
|
+
*
|
|
47
|
+
* Scheduled maintenance is published by platform operators and is read-only here. Platform
|
|
48
|
+
* announcements are not part of this API; they are owned by the notification service.
|
|
49
|
+
* OpenAPI spec version: 1.0.0
|
|
50
|
+
*/
|
|
51
|
+
import * as zod from "zod";
|
|
52
|
+
export declare const FieldViolation: zod.ZodObject<{
|
|
53
|
+
field: zod.ZodString;
|
|
54
|
+
reason: zod.ZodOptional<zod.ZodString>;
|
|
55
|
+
}, zod.z.core.$strict>;
|
|
56
|
+
export type FieldViolation = zod.input<typeof FieldViolation>;
|
|
57
|
+
export type FieldViolationOutput = zod.output<typeof FieldViolation>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Support API
|
|
5
|
+
* Support tickets and scheduled maintenance notices.
|
|
6
|
+
*
|
|
7
|
+
* ## Authentication
|
|
8
|
+
*
|
|
9
|
+
* Every request carries a scoped token; see the `bearerAuth` security scheme. The single
|
|
10
|
+
* exception is `GET /api/v1/notices`, which requires no credentials at all.
|
|
11
|
+
*
|
|
12
|
+
* **Neither the path nor the headers carry a `project_id`**: the current project is determined by
|
|
13
|
+
* the token.
|
|
14
|
+
*
|
|
15
|
+
* ## Tickets belong to the project
|
|
16
|
+
*
|
|
17
|
+
* A ticket is owned by the project it was opened in, not by the person who opened it. Every member
|
|
18
|
+
* of that project can read it, reply to it and close it. `created_by` records who opened it and is
|
|
19
|
+
* informational.
|
|
20
|
+
*
|
|
21
|
+
* A ticket is in one of three states:
|
|
22
|
+
*
|
|
23
|
+
* | State | Meaning |
|
|
24
|
+
* | --- | --- |
|
|
25
|
+
* | `OPEN` | Waiting on us |
|
|
26
|
+
* | `AWAITING_USER` | Waiting on you |
|
|
27
|
+
* | `CLOSED` | Finished |
|
|
28
|
+
*
|
|
29
|
+
* **The state follows whoever spoke last** and cannot be set directly. Posting a message moves the
|
|
30
|
+
* ticket to `OPEN`; a reply from support moves it to `AWAITING_USER`. Posting a message on a closed
|
|
31
|
+
* ticket reopens it as `OPEN`, so a follow-up question never lands on a ticket nobody reads.
|
|
32
|
+
*
|
|
33
|
+
* Tickets left in `AWAITING_USER` without activity are closed automatically after a period of
|
|
34
|
+
* inactivity. Tickets in `OPEN` are never closed automatically.
|
|
35
|
+
*
|
|
36
|
+
* ## Attachments are uploaded before they are referenced
|
|
37
|
+
*
|
|
38
|
+
* Upload a file to `POST /api/v1/attachments`, then pass the returned id in `attachment_ids` when
|
|
39
|
+
* opening a ticket or posting a message. An attachment that is never referenced is removed after a
|
|
40
|
+
* time, so upload and reference in the same session.
|
|
41
|
+
*
|
|
42
|
+
* The content type is determined from the content itself, not from the `Content-Type` header.
|
|
43
|
+
* Files whose determined type is not accepted are rejected with `TICKET_ATTACHMENT_TYPE_REJECTED`.
|
|
44
|
+
*
|
|
45
|
+
* ## Maintenance is read-only here
|
|
46
|
+
*
|
|
47
|
+
* Scheduled maintenance is published by platform operators and is read-only here. Platform
|
|
48
|
+
* announcements are not part of this API; they are owned by the notification service.
|
|
49
|
+
* OpenAPI spec version: 1.0.0
|
|
50
|
+
*/
|
|
51
|
+
import * as zod from "zod";
|
|
52
|
+
export const FieldViolation = zod.strictObject({
|
|
53
|
+
field: zod
|
|
54
|
+
.string()
|
|
55
|
+
.describe("The path to the rejected field in the request body, such as `items[2].price_id`."),
|
|
56
|
+
reason: zod
|
|
57
|
+
.string()
|
|
58
|
+
.optional()
|
|
59
|
+
.describe("Why the field was rejected, such as `REQUIRED` or `OUT_OF_RANGE`."),
|
|
60
|
+
});
|
|
@@ -127,22 +127,64 @@ export interface Catalog {
|
|
|
127
127
|
source_observed_at: string;
|
|
128
128
|
complete: boolean;
|
|
129
129
|
}
|
|
130
|
+
export interface FieldViolation {
|
|
131
|
+
/** The path to the rejected field in the request body, such as `items[2].price_id`. */
|
|
132
|
+
field: string;
|
|
133
|
+
/** Why the field was rejected, such as `REQUIRED` or `OUT_OF_RANGE`. */
|
|
134
|
+
reason?: string;
|
|
135
|
+
}
|
|
130
136
|
/**
|
|
131
|
-
*
|
|
132
|
-
* and
|
|
137
|
+
* Values that belong to `reason`, one set per reason. Clients use them to fill in
|
|
138
|
+
* localized text and never parse `message` to obtain them. Keys are documented per
|
|
139
|
+
* reason; a key that has appeared once keeps appearing.
|
|
133
140
|
*/
|
|
134
|
-
export type
|
|
135
|
-
[key: string]:
|
|
141
|
+
export type ErrorStatusMetadata = {
|
|
142
|
+
[key: string]: string;
|
|
136
143
|
};
|
|
137
|
-
export interface
|
|
138
|
-
code
|
|
144
|
+
export interface ErrorStatus {
|
|
145
|
+
/** The HTTP status code of the response. */
|
|
146
|
+
code: number;
|
|
147
|
+
/** The canonical name of the status, such as `INVALID_ARGUMENT` or `UNAVAILABLE`. */
|
|
148
|
+
status: string;
|
|
149
|
+
/**
|
|
150
|
+
* A description of the failure for developers. It is always English and is not meant
|
|
151
|
+
* to be shown to end users as is.
|
|
152
|
+
*/
|
|
139
153
|
message: string;
|
|
140
154
|
/**
|
|
141
|
-
*
|
|
142
|
-
* and
|
|
155
|
+
* A stable machine-readable code identifying the failure. Clients branch on this value
|
|
156
|
+
* and render their own text; it does not change once published.
|
|
157
|
+
*/
|
|
158
|
+
reason?: string;
|
|
159
|
+
/**
|
|
160
|
+
* Values that belong to `reason`, one set per reason. Clients use them to fill in
|
|
161
|
+
* localized text and never parse `message` to obtain them. Keys are documented per
|
|
162
|
+
* reason; a key that has appeared once keeps appearing.
|
|
163
|
+
*/
|
|
164
|
+
metadata?: ErrorStatusMetadata;
|
|
165
|
+
/**
|
|
166
|
+
* Request fields rejected by the request's constraints. Present on validation
|
|
167
|
+
* failures; one request may violate several fields.
|
|
143
168
|
*/
|
|
144
|
-
|
|
145
|
-
|
|
169
|
+
field_violations?: FieldViolation[];
|
|
170
|
+
/**
|
|
171
|
+
* How long the client should wait before retrying, as a duration string such as
|
|
172
|
+
* `30s`. Present only when waiting can succeed.
|
|
173
|
+
*/
|
|
174
|
+
retry_delay?: string;
|
|
175
|
+
/**
|
|
176
|
+
* The identifier of the request in the service's logs. Quote it when reporting a
|
|
177
|
+
* failure.
|
|
178
|
+
*/
|
|
179
|
+
request_id?: string;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* A failed request. The envelope follows the Google REST error format: `code` is the HTTP
|
|
183
|
+
* status, `status` is its canonical name, and `reason` is the stable machine-readable code
|
|
184
|
+
* that identifies the failure.
|
|
185
|
+
*/
|
|
186
|
+
export interface Error {
|
|
187
|
+
error: ErrorStatus;
|
|
146
188
|
}
|
|
147
189
|
export type InstancePricePeriodMonths = (typeof InstancePricePeriodMonths)[keyof typeof InstancePricePeriodMonths];
|
|
148
190
|
export declare const InstancePricePeriodMonths: {
|
|
@@ -7,10 +7,19 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
export declare const Error: zod.ZodObject<{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
error: 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>;
|
|
14
23
|
}, zod.z.core.$strict>;
|
|
15
24
|
export type Error = zod.input<typeof Error>;
|
|
16
25
|
export type ErrorOutput = zod.output<typeof Error>;
|
|
@@ -6,12 +6,9 @@
|
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
.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."),
|
|
16
|
-
status: zod.int(),
|
|
17
|
-
});
|
|
9
|
+
import { ErrorStatus } from "./errorStatus.zod.js";
|
|
10
|
+
export const Error = zod
|
|
11
|
+
.strictObject({
|
|
12
|
+
error: ErrorStatus,
|
|
13
|
+
})
|
|
14
|
+
.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,23 @@
|
|
|
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 ErrorStatus: zod.ZodObject<{
|
|
10
|
+
code: zod.ZodInt;
|
|
11
|
+
status: zod.ZodString;
|
|
12
|
+
message: zod.ZodString;
|
|
13
|
+
reason: zod.ZodOptional<zod.ZodString>;
|
|
14
|
+
metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
15
|
+
field_violations: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
16
|
+
field: zod.ZodString;
|
|
17
|
+
reason: zod.ZodOptional<zod.ZodString>;
|
|
18
|
+
}, zod.z.core.$strict>>>;
|
|
19
|
+
retry_delay: zod.ZodOptional<zod.ZodString>;
|
|
20
|
+
request_id: zod.ZodOptional<zod.ZodString>;
|
|
21
|
+
}, zod.z.core.$strict>;
|
|
22
|
+
export type ErrorStatus = zod.input<typeof ErrorStatus>;
|
|
23
|
+
export type ErrorStatusOutput = zod.output<typeof ErrorStatus>;
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { FieldViolation } from "./fieldViolation.zod.js";
|
|
10
|
+
export const ErrorStatus = zod.strictObject({
|
|
11
|
+
code: zod.int().describe("The HTTP status code of the response."),
|
|
12
|
+
status: zod
|
|
13
|
+
.string()
|
|
14
|
+
.describe("The canonical name of the status, such as `INVALID_ARGUMENT` or `UNAVAILABLE`."),
|
|
15
|
+
message: zod
|
|
16
|
+
.string()
|
|
17
|
+
.describe("A description of the failure for developers. It is always English and is not meant\nto be shown to end users as is."),
|
|
18
|
+
reason: zod
|
|
19
|
+
.string()
|
|
20
|
+
.optional()
|
|
21
|
+
.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."),
|
|
22
|
+
metadata: zod
|
|
23
|
+
.record(zod.string(), zod.string())
|
|
24
|
+
.optional()
|
|
25
|
+
.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."),
|
|
26
|
+
field_violations: zod
|
|
27
|
+
.array(FieldViolation)
|
|
28
|
+
.optional()
|
|
29
|
+
.describe("Request fields rejected by the request's constraints. Present on validation\nfailures; one request may violate several fields."),
|
|
30
|
+
retry_delay: zod
|
|
31
|
+
.string()
|
|
32
|
+
.optional()
|
|
33
|
+
.describe("How long the client should wait before retrying, as a duration string such as\n`30s`. Present only when waiting can succeed."),
|
|
34
|
+
request_id: zod
|
|
35
|
+
.string()
|
|
36
|
+
.optional()
|
|
37
|
+
.describe("The identifier of the request in the service's logs. Quote it when reporting a\nfailure."),
|
|
38
|
+
});
|
|
@@ -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 FieldViolation: zod.ZodObject<{
|
|
10
|
+
field: zod.ZodString;
|
|
11
|
+
reason: zod.ZodOptional<zod.ZodString>;
|
|
12
|
+
}, zod.z.core.$strict>;
|
|
13
|
+
export type FieldViolation = zod.input<typeof FieldViolation>;
|
|
14
|
+
export type FieldViolationOutput = zod.output<typeof FieldViolation>;
|
|
@@ -0,0 +1,17 @@
|
|
|
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 FieldViolation = zod.strictObject({
|
|
10
|
+
field: zod
|
|
11
|
+
.string()
|
|
12
|
+
.describe("The path to the rejected field in the request body, such as `items[2].price_id`."),
|
|
13
|
+
reason: zod
|
|
14
|
+
.string()
|
|
15
|
+
.optional()
|
|
16
|
+
.describe("Why the field was rejected, such as `REQUIRED` or `OUT_OF_RANGE`."),
|
|
17
|
+
});
|
|
@@ -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>;
|