@leaflow/sdk 0.0.0-dev.13.g732c6b7 → 0.0.0-dev.130.g2ad4b23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -12
- package/dist/account/v1/index.d.ts +14 -2
- package/dist/account/v1/schema.d.ts +368 -81
- package/dist/assistant/v1/index.d.ts +30 -2
- package/dist/assistant/v1/schema.d.ts +1089 -133
- package/dist/billing/v1/index.d.ts +192 -0
- package/dist/billing/v1/index.js +5 -0
- package/dist/billing/v1/schema.d.ts +4625 -0
- package/dist/billing/v1/schema.js +5 -0
- package/dist/canopy/v1/schema.d.ts +113 -109
- package/dist/compute/v1/index.d.ts +30 -6
- package/dist/compute/v1/schema.d.ts +1202 -273
- package/dist/dns/v1/index.d.ts +42 -0
- package/dist/dns/v1/index.js +5 -0
- package/dist/dns/v1/schema.d.ts +887 -0
- package/dist/dns/v1/schema.js +5 -0
- package/dist/fleet/v1/index.d.ts +6 -0
- package/dist/fleet/v1/index.js +5 -0
- package/dist/fleet/v1/schema.d.ts +156 -0
- package/dist/fleet/v1/schema.js +5 -0
- package/dist/iam/v1/index.d.ts +26 -4
- package/dist/iam/v1/schema.d.ts +515 -88
- package/dist/index.d.ts +5 -0
- package/dist/monitoring/v1/index.d.ts +84 -4
- package/dist/monitoring/v1/schema.d.ts +2420 -527
- package/dist/notification/v1/index.d.ts +76 -0
- package/dist/notification/v1/index.js +5 -0
- package/dist/notification/v1/schema.d.ts +2048 -0
- package/dist/notification/v1/schema.js +5 -0
- package/dist/support/v1/index.d.ts +50 -0
- package/dist/support/v1/index.js +5 -0
- package/dist/support/v1/schema.d.ts +1082 -0
- package/dist/support/v1/schema.js +5 -0
- package/dist/tunnel/v1/index.d.ts +14 -36
- package/dist/tunnel/v1/schema.d.ts +70 -510
- package/package.json +2 -2
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type { paths, components, operations, webhooks } from "./schema.js";
|
|
2
|
+
import type { operations } from "./schema.js";
|
|
3
|
+
/** `GET /api/v1/regions` 成功时的响应体。 */
|
|
4
|
+
export type ListRegionsResult = operations["list-regions"]["responses"][200]["content"]["application/json"];
|
|
5
|
+
/** `GET /api/v1/regions/{regionCode}/availability-zones` 成功时的响应体。 */
|
|
6
|
+
export type ListAvailabilityZonesResult = operations["list-availability-zones"]["responses"][200]["content"]["application/json"];
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
export interface paths {
|
|
6
|
+
"/api/v1/regions": {
|
|
7
|
+
parameters: {
|
|
8
|
+
query?: never;
|
|
9
|
+
header?: never;
|
|
10
|
+
path?: never;
|
|
11
|
+
cookie?: never;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* List available regions
|
|
15
|
+
* @description Lists every region currently open to new orders, in display order.
|
|
16
|
+
*
|
|
17
|
+
* The list is the same for every caller and changes rarely.
|
|
18
|
+
*/
|
|
19
|
+
get: operations["list-regions"];
|
|
20
|
+
put?: never;
|
|
21
|
+
post?: never;
|
|
22
|
+
delete?: never;
|
|
23
|
+
options?: never;
|
|
24
|
+
head?: never;
|
|
25
|
+
patch?: never;
|
|
26
|
+
trace?: never;
|
|
27
|
+
};
|
|
28
|
+
"/api/v1/regions/{regionCode}/availability-zones": {
|
|
29
|
+
parameters: {
|
|
30
|
+
query?: never;
|
|
31
|
+
header?: never;
|
|
32
|
+
path?: never;
|
|
33
|
+
cookie?: never;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* List the availability zones of a region
|
|
37
|
+
* @description Lists every availability zone of this region that is currently open to new orders, in display order.
|
|
38
|
+
*
|
|
39
|
+
* Resources are generally required to share an availability zone in order to be attached to one another, so confirm the zone before creating either side.
|
|
40
|
+
*
|
|
41
|
+
* A region that exists but is not open to new orders is reported as not found, exactly as an unknown code is: both mean that nothing can be created there.
|
|
42
|
+
*/
|
|
43
|
+
get: operations["list-availability-zones"];
|
|
44
|
+
put?: never;
|
|
45
|
+
post?: never;
|
|
46
|
+
delete?: never;
|
|
47
|
+
options?: never;
|
|
48
|
+
head?: never;
|
|
49
|
+
patch?: never;
|
|
50
|
+
trace?: never;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export type webhooks = Record<string, never>;
|
|
54
|
+
export interface components {
|
|
55
|
+
schemas: {
|
|
56
|
+
Error: {
|
|
57
|
+
code?: string;
|
|
58
|
+
message: string;
|
|
59
|
+
/**
|
|
60
|
+
* @description What a given `code` carries alongside the message. The keys depend on the code,
|
|
61
|
+
* and a client that does not recognise one ignores it.
|
|
62
|
+
*/
|
|
63
|
+
meta?: {
|
|
64
|
+
[key: string]: unknown;
|
|
65
|
+
};
|
|
66
|
+
/** Format: int64 */
|
|
67
|
+
status: number;
|
|
68
|
+
};
|
|
69
|
+
RegionResource: {
|
|
70
|
+
/** @description Stable identifier of the region, used wherever a region has to be named */
|
|
71
|
+
code: string;
|
|
72
|
+
/** @description ISO 3166-1 alpha-2 code of the country this region is in */
|
|
73
|
+
country_code: string;
|
|
74
|
+
name: string;
|
|
75
|
+
};
|
|
76
|
+
AvailabilityZoneResource: {
|
|
77
|
+
/** @description Stable identifier of the availability zone, used wherever an availability zone has to be named */
|
|
78
|
+
code: string;
|
|
79
|
+
name: string;
|
|
80
|
+
};
|
|
81
|
+
RegionListResponseBody: {
|
|
82
|
+
items: components["schemas"]["RegionResource"][] | null;
|
|
83
|
+
};
|
|
84
|
+
AvailabilityZoneListResponseBody: {
|
|
85
|
+
items: components["schemas"]["AvailabilityZoneResource"][] | null;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
responses: never;
|
|
89
|
+
parameters: never;
|
|
90
|
+
requestBodies: never;
|
|
91
|
+
headers: never;
|
|
92
|
+
pathItems: never;
|
|
93
|
+
}
|
|
94
|
+
export type $defs = Record<string, never>;
|
|
95
|
+
export interface operations {
|
|
96
|
+
"list-regions": {
|
|
97
|
+
parameters: {
|
|
98
|
+
query?: never;
|
|
99
|
+
header?: never;
|
|
100
|
+
path?: never;
|
|
101
|
+
cookie?: never;
|
|
102
|
+
};
|
|
103
|
+
requestBody?: never;
|
|
104
|
+
responses: {
|
|
105
|
+
/** @description OK */
|
|
106
|
+
200: {
|
|
107
|
+
headers: {
|
|
108
|
+
[name: string]: unknown;
|
|
109
|
+
};
|
|
110
|
+
content: {
|
|
111
|
+
"application/json": components["schemas"]["RegionListResponseBody"];
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
/** @description Error */
|
|
115
|
+
default: {
|
|
116
|
+
headers: {
|
|
117
|
+
[name: string]: unknown;
|
|
118
|
+
};
|
|
119
|
+
content: {
|
|
120
|
+
"application/json": components["schemas"]["Error"];
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
"list-availability-zones": {
|
|
126
|
+
parameters: {
|
|
127
|
+
query?: never;
|
|
128
|
+
header?: never;
|
|
129
|
+
path: {
|
|
130
|
+
regionCode: string;
|
|
131
|
+
};
|
|
132
|
+
cookie?: never;
|
|
133
|
+
};
|
|
134
|
+
requestBody?: never;
|
|
135
|
+
responses: {
|
|
136
|
+
/** @description OK */
|
|
137
|
+
200: {
|
|
138
|
+
headers: {
|
|
139
|
+
[name: string]: unknown;
|
|
140
|
+
};
|
|
141
|
+
content: {
|
|
142
|
+
"application/json": components["schemas"]["AvailabilityZoneListResponseBody"];
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
/** @description Error */
|
|
146
|
+
default: {
|
|
147
|
+
headers: {
|
|
148
|
+
[name: string]: unknown;
|
|
149
|
+
};
|
|
150
|
+
content: {
|
|
151
|
+
"application/json": components["schemas"]["Error"];
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
}
|
package/dist/iam/v1/index.d.ts
CHANGED
|
@@ -2,14 +2,14 @@ export type { paths, components, operations, webhooks } from "./schema.js";
|
|
|
2
2
|
import type { operations } from "./schema.js";
|
|
3
3
|
/** `GET /api/v1/permissions` 成功时的响应体。 */
|
|
4
4
|
export type ListPermissionsResult = operations["list-permissions"]["responses"][200]["content"]["application/json"];
|
|
5
|
-
/** `DELETE /api/v1/project` 成功时的响应体。 */
|
|
6
|
-
export type DeleteProjectResult = operations["delete-project"]["responses"][200]["content"]["application/json"];
|
|
7
5
|
/** `GET /api/v1/project` 成功时的响应体。 */
|
|
8
6
|
export type GetProjectResult = operations["get-project"]["responses"][200]["content"]["application/json"];
|
|
9
7
|
/** `PATCH /api/v1/project` 成功时的响应体。 */
|
|
10
8
|
export type UpdateProjectResult = operations["update-project"]["responses"][200]["content"]["application/json"];
|
|
11
9
|
/** `PATCH /api/v1/project` 的请求体。 */
|
|
12
10
|
export type UpdateProjectBody = NonNullable<operations["update-project"]["requestBody"]>["content"]["application/json"];
|
|
11
|
+
/** `DELETE /api/v1/project` 成功时的响应体。 */
|
|
12
|
+
export type DeleteProjectResult = operations["delete-project"]["responses"][200]["content"]["application/json"];
|
|
13
13
|
/** `GET /api/v1/membership` 成功时的响应体。 */
|
|
14
14
|
export type GetProjectMembershipResult = operations["get-project-membership"]["responses"][200]["content"]["application/json"];
|
|
15
15
|
/** `GET /api/v1/invitations` 成功时的响应体。 */
|
|
@@ -20,6 +20,10 @@ export type ListProjectInvitationsQuery = operations["list-project-invitations"]
|
|
|
20
20
|
export type IssueInvitationResult = operations["issue-invitation"]["responses"][201]["content"]["application/json"];
|
|
21
21
|
/** `POST /api/v1/invitations` 的请求体。 */
|
|
22
22
|
export type IssueInvitationBody = NonNullable<operations["issue-invitation"]["requestBody"]>["content"]["application/json"];
|
|
23
|
+
/** `POST /api/v1/members:batchGet` 成功时的响应体。 */
|
|
24
|
+
export type BatchGetMembersResult = operations["batch-get-members"]["responses"][200]["content"]["application/json"];
|
|
25
|
+
/** `POST /api/v1/members:batchGet` 的请求体。 */
|
|
26
|
+
export type BatchGetMembersBody = NonNullable<operations["batch-get-members"]["requestBody"]>["content"]["application/json"];
|
|
23
27
|
/** `GET /api/v1/members` 成功时的响应体。 */
|
|
24
28
|
export type ListMembersResult = operations["list-members"]["responses"][200]["content"]["application/json"];
|
|
25
29
|
/** `GET /api/v1/members` 的查询参数。 */
|
|
@@ -28,6 +32,24 @@ export type ListMembersQuery = operations["list-members"]["parameters"]["query"]
|
|
|
28
32
|
export type SetMemberRolesResult = operations["set-member-roles"]["responses"][200]["content"]["application/json"];
|
|
29
33
|
/** `PUT /api/v1/members/{userId}/roles` 的请求体。 */
|
|
30
34
|
export type SetMemberRolesBody = NonNullable<operations["set-member-roles"]["requestBody"]>["content"]["application/json"];
|
|
35
|
+
/** `PUT /api/v1/members/{userId}/permissions` 成功时的响应体。 */
|
|
36
|
+
export type SetMemberPermissionsResult = operations["set-member-permissions"]["responses"][200]["content"]["application/json"];
|
|
37
|
+
/** `PUT /api/v1/members/{userId}/permissions` 的请求体。 */
|
|
38
|
+
export type SetMemberPermissionsBody = NonNullable<operations["set-member-permissions"]["requestBody"]>["content"]["application/json"];
|
|
39
|
+
/** `GET /api/v1/policies` 成功时的响应体。 */
|
|
40
|
+
export type ListPoliciesResult = operations["list-policies"]["responses"][200]["content"]["application/json"];
|
|
41
|
+
/** `GET /api/v1/policies` 的查询参数。 */
|
|
42
|
+
export type ListPoliciesQuery = operations["list-policies"]["parameters"]["query"];
|
|
43
|
+
/** `POST /api/v1/policies` 成功时的响应体。 */
|
|
44
|
+
export type AttachPolicyResult = operations["attach-policy"]["responses"][201]["content"]["application/json"];
|
|
45
|
+
/** `POST /api/v1/policies` 的请求体。 */
|
|
46
|
+
export type AttachPolicyBody = NonNullable<operations["attach-policy"]["requestBody"]>["content"]["application/json"];
|
|
47
|
+
/** `GET /api/v1/policies/{policyId}` 成功时的响应体。 */
|
|
48
|
+
export type GetPolicyResult = operations["get-policy"]["responses"][200]["content"]["application/json"];
|
|
49
|
+
/** `PUT /api/v1/policies/{policyId}` 成功时的响应体。 */
|
|
50
|
+
export type UpdatePolicyResult = operations["update-policy"]["responses"][200]["content"]["application/json"];
|
|
51
|
+
/** `PUT /api/v1/policies/{policyId}` 的请求体。 */
|
|
52
|
+
export type UpdatePolicyBody = NonNullable<operations["update-policy"]["requestBody"]>["content"]["application/json"];
|
|
31
53
|
/** `POST /api/v1/transfer-ownership` 成功时的响应体。 */
|
|
32
54
|
export type TransferProjectOwnershipResult = operations["transfer-project-ownership"]["responses"][200]["content"]["application/json"];
|
|
33
55
|
/** `POST /api/v1/transfer-ownership` 的请求体。 */
|
|
@@ -52,11 +74,11 @@ export type ListSshKeysQuery = operations["list-ssh-keys"]["parameters"]["query"
|
|
|
52
74
|
export type CreateSshKeyResult = operations["create-ssh-key"]["responses"][201]["content"]["application/json"];
|
|
53
75
|
/** `POST /api/v1/ssh-keys` 的请求体。 */
|
|
54
76
|
export type CreateSshKeyBody = NonNullable<operations["create-ssh-key"]["requestBody"]>["content"]["application/json"];
|
|
55
|
-
/** `DELETE /api/v1/ssh-keys/{keyId}` 成功时的响应体。 */
|
|
56
|
-
export type RevokeSshKeyResult = operations["revoke-ssh-key"]["responses"][200]["content"]["application/json"];
|
|
57
77
|
/** `GET /api/v1/ssh-keys/{keyId}` 成功时的响应体。 */
|
|
58
78
|
export type GetSshKeyResult = operations["get-ssh-key"]["responses"][200]["content"]["application/json"];
|
|
59
79
|
/** `PATCH /api/v1/ssh-keys/{keyId}` 成功时的响应体。 */
|
|
60
80
|
export type RenameSshKeyResult = operations["rename-ssh-key"]["responses"][200]["content"]["application/json"];
|
|
61
81
|
/** `PATCH /api/v1/ssh-keys/{keyId}` 的请求体。 */
|
|
62
82
|
export type RenameSshKeyBody = NonNullable<operations["rename-ssh-key"]["requestBody"]>["content"]["application/json"];
|
|
83
|
+
/** `DELETE /api/v1/ssh-keys/{keyId}` 成功时的响应体。 */
|
|
84
|
+
export type RevokeSshKeyResult = operations["revoke-ssh-key"]["responses"][200]["content"]["application/json"];
|