@leaflow/sdk 0.54.3 → 0.55.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.
@@ -95,6 +95,26 @@ export interface paths {
95
95
  patch?: never;
96
96
  trace?: never;
97
97
  };
98
+ "/api/v1/disk-types/{diskTypeId}": {
99
+ parameters: {
100
+ query?: never;
101
+ header?: never;
102
+ path?: never;
103
+ cookie?: never;
104
+ };
105
+ /**
106
+ * Get a disk type
107
+ * @description Retrieve capacity and performance constraints for an existing disk, including system disk types and types withdrawn from sale.
108
+ */
109
+ get: operations["get-disk-type"];
110
+ put?: never;
111
+ post?: never;
112
+ delete?: never;
113
+ options?: never;
114
+ head?: never;
115
+ patch?: never;
116
+ trace?: never;
117
+ };
98
118
  "/api/v1/images": {
99
119
  parameters: {
100
120
  query?: never;
@@ -1290,6 +1310,10 @@ export interface components {
1290
1310
  Error: {
1291
1311
  code?: string;
1292
1312
  message: string;
1313
+ /**
1314
+ * @description What a given `code` carries alongside the message. The keys depend on the code,
1315
+ * and a client that does not recognise one ignores it.
1316
+ */
1293
1317
  meta?: {
1294
1318
  [key: string]: unknown;
1295
1319
  };
@@ -2648,6 +2672,37 @@ export interface operations {
2648
2672
  };
2649
2673
  };
2650
2674
  };
2675
+ "get-disk-type": {
2676
+ parameters: {
2677
+ query?: never;
2678
+ header?: never;
2679
+ path: {
2680
+ diskTypeId: string;
2681
+ };
2682
+ cookie?: never;
2683
+ };
2684
+ requestBody?: never;
2685
+ responses: {
2686
+ /** @description OK */
2687
+ 200: {
2688
+ headers: {
2689
+ [name: string]: unknown;
2690
+ };
2691
+ content: {
2692
+ "application/json": components["schemas"]["DiskTypeResource"];
2693
+ };
2694
+ };
2695
+ /** @description Error */
2696
+ default: {
2697
+ headers: {
2698
+ [name: string]: unknown;
2699
+ };
2700
+ content: {
2701
+ "application/json": components["schemas"]["Error"];
2702
+ };
2703
+ };
2704
+ };
2705
+ };
2651
2706
  "list-images": {
2652
2707
  parameters: {
2653
2708
  query: {
@@ -26,17 +26,17 @@ export type ListRecordsResult = operations["list-records"]["responses"][200]["co
26
26
  export type ListRecordsQuery = operations["list-records"]["parameters"]["query"];
27
27
  /** `GET /api/v1/zones/{zone}/records/{name}/{type}` 成功时的响应体。 */
28
28
  export type GetRecordSetResult = operations["get-record-set"]["responses"][200]["content"]["application/json"];
29
- /** `PATCH /api/v1/zones/{zone}/records/{name}/{type}` 成功时的响应体。 */
30
- export type ModifyRecordSetResult = operations["modify-record-set"]["responses"][200]["content"]["application/json"];
31
- /** `PATCH /api/v1/zones/{zone}/records/{name}/{type}` 的查询参数。 */
32
- export type ModifyRecordSetQuery = operations["modify-record-set"]["parameters"]["query"];
33
- /** `PATCH /api/v1/zones/{zone}/records/{name}/{type}` 的请求体。 */
34
- export type ModifyRecordSetBody = NonNullable<operations["modify-record-set"]["requestBody"]>["content"]["application/json"];
35
29
  /** `PUT /api/v1/zones/{zone}/records/{name}/{type}` 成功时的响应体。 */
36
30
  export type SetRecordSetResult = operations["set-record-set"]["responses"][200]["content"]["application/json"];
37
31
  /** `PUT /api/v1/zones/{zone}/records/{name}/{type}` 的查询参数。 */
38
32
  export type SetRecordSetQuery = operations["set-record-set"]["parameters"]["query"];
39
33
  /** `PUT /api/v1/zones/{zone}/records/{name}/{type}` 的请求体。 */
40
34
  export type SetRecordSetBody = NonNullable<operations["set-record-set"]["requestBody"]>["content"]["application/json"];
35
+ /** `PATCH /api/v1/zones/{zone}/records/{name}/{type}` 成功时的响应体。 */
36
+ export type ModifyRecordSetResult = operations["modify-record-set"]["responses"][200]["content"]["application/json"];
37
+ /** `PATCH /api/v1/zones/{zone}/records/{name}/{type}` 的查询参数。 */
38
+ export type ModifyRecordSetQuery = operations["modify-record-set"]["parameters"]["query"];
39
+ /** `PATCH /api/v1/zones/{zone}/records/{name}/{type}` 的请求体。 */
40
+ export type ModifyRecordSetBody = NonNullable<operations["modify-record-set"]["requestBody"]>["content"]["application/json"];
41
41
  /** `DELETE /api/v1/zones/{zone}/records/{name}/{type}` 的查询参数。 */
42
42
  export type DeleteRecordSetQuery = operations["delete-record-set"]["parameters"]["query"];
@@ -234,6 +234,10 @@ export interface components {
234
234
  Error: {
235
235
  code?: string;
236
236
  message: string;
237
+ /**
238
+ * @description What a given `code` carries alongside the message. The keys depend on the code,
239
+ * and a client that does not recognise one ignores it.
240
+ */
237
241
  meta?: {
238
242
  [key: string]: unknown;
239
243
  };
@@ -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,5 @@
1
+ // 由 scripts/generate-ts.mjs 生成,不要手改。
2
+ //
3
+ // 别名把 operations[...] 那串下标换成一个名字。原始的 paths / components / operations 也
4
+ // 一并导出:paths 是给 openapi-fetch 的 createClient<paths>() 用的。
5
+ export {};
@@ -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
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export {};
@@ -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` 成功时的响应体。 */
@@ -74,11 +74,11 @@ export type ListSshKeysQuery = operations["list-ssh-keys"]["parameters"]["query"
74
74
  export type CreateSshKeyResult = operations["create-ssh-key"]["responses"][201]["content"]["application/json"];
75
75
  /** `POST /api/v1/ssh-keys` 的请求体。 */
76
76
  export type CreateSshKeyBody = NonNullable<operations["create-ssh-key"]["requestBody"]>["content"]["application/json"];
77
- /** `DELETE /api/v1/ssh-keys/{keyId}` 成功时的响应体。 */
78
- export type RevokeSshKeyResult = operations["revoke-ssh-key"]["responses"][200]["content"]["application/json"];
79
77
  /** `GET /api/v1/ssh-keys/{keyId}` 成功时的响应体。 */
80
78
  export type GetSshKeyResult = operations["get-ssh-key"]["responses"][200]["content"]["application/json"];
81
79
  /** `PATCH /api/v1/ssh-keys/{keyId}` 成功时的响应体。 */
82
80
  export type RenameSshKeyResult = operations["rename-ssh-key"]["responses"][200]["content"]["application/json"];
83
81
  /** `PATCH /api/v1/ssh-keys/{keyId}` 的请求体。 */
84
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"];