@leaflow/sdk 0.0.0-dev.25.g6c5751f → 0.0.0-dev.250.g6df166c
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 -1
- package/dist/account/v1/client.d.ts +4 -0
- package/dist/account/v1/client.js +7 -0
- package/dist/account/v1/index.d.ts +33 -22
- package/dist/account/v1/index.js +4 -4
- package/dist/account/v1/schema.d.ts +307 -89
- package/dist/assistant/v1/client.d.ts +4 -0
- package/dist/assistant/v1/client.js +7 -0
- package/dist/assistant/v1/index.d.ts +71 -40
- package/dist/assistant/v1/index.js +4 -4
- package/dist/assistant/v1/schema.d.ts +1204 -139
- package/dist/billing/account/v1/client.d.ts +4 -0
- package/dist/billing/account/v1/client.js +7 -0
- package/dist/billing/account/v1/index.d.ts +169 -0
- package/dist/billing/account/v1/index.js +5 -0
- package/dist/billing/account/v1/schema.d.ts +4385 -0
- package/dist/billing/account/v1/schema.js +5 -0
- package/dist/billing/catalog/v1/client.d.ts +4 -0
- package/dist/billing/catalog/v1/client.js +7 -0
- package/dist/billing/catalog/v1/index.d.ts +33 -0
- package/dist/billing/catalog/v1/index.js +5 -0
- package/dist/billing/catalog/v1/schema.d.ts +915 -0
- package/dist/billing/catalog/v1/schema.js +5 -0
- package/dist/billing/index.d.ts +3 -0
- package/dist/billing/index.js +6 -0
- package/dist/billing/project/v1/client.d.ts +4 -0
- package/dist/billing/project/v1/client.js +7 -0
- package/dist/billing/project/v1/index.d.ts +59 -0
- package/dist/billing/project/v1/index.js +5 -0
- package/dist/billing/project/v1/schema.d.ts +1892 -0
- package/dist/billing/project/v1/schema.js +5 -0
- package/dist/canopy/v1/client.d.ts +4 -0
- package/dist/canopy/v1/client.js +7 -0
- package/dist/canopy/v1/index.d.ts +24 -23
- package/dist/canopy/v1/index.js +4 -4
- package/dist/canopy/v1/schema.d.ts +113 -109
- package/dist/compute/v1/client.d.ts +4 -0
- package/dist/compute/v1/client.js +7 -0
- package/dist/compute/v1/index.d.ts +207 -134
- package/dist/compute/v1/index.js +4 -4
- package/dist/compute/v1/schema.d.ts +1945 -553
- package/dist/dns/v1/client.d.ts +4 -0
- package/dist/dns/v1/client.js +7 -0
- package/dist/dns/v1/index.d.ts +43 -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/iam/v1/client.d.ts +4 -0
- package/dist/iam/v1/client.js +7 -0
- package/dist/iam/v1/index.d.ts +55 -32
- package/dist/iam/v1/index.js +4 -4
- package/dist/iam/v1/schema.d.ts +521 -88
- package/dist/index.d.ts +11 -7
- package/dist/index.js +19 -5
- package/dist/monitoring/v1/client.d.ts +4 -0
- package/dist/monitoring/v1/client.js +7 -0
- package/dist/monitoring/v1/index.d.ts +130 -49
- package/dist/monitoring/v1/index.js +4 -4
- package/dist/monitoring/v1/schema.d.ts +2420 -527
- package/dist/notification/v1/client.d.ts +4 -0
- package/dist/notification/v1/client.js +7 -0
- package/dist/notification/v1/index.d.ts +81 -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/routes.d.ts +3234 -0
- package/dist/routes.js +3639 -0
- package/dist/support/v1/client.d.ts +4 -0
- package/dist/support/v1/client.js +7 -0
- package/dist/support/v1/index.d.ts +51 -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/client.d.ts +4 -0
- package/dist/tunnel/v1/client.js +7 -0
- package/dist/tunnel/v1/index.d.ts +8 -7
- package/dist/tunnel/v1/index.js +4 -4
- package/dist/tunnel/v1/schema.d.ts +40 -34
- package/package.json +34 -10
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ClientOptions } from "openapi-fetch";
|
|
2
|
+
import type { paths } from "./schema.js";
|
|
3
|
+
/** A client for the iam service. Pass baseUrl to override the address. */
|
|
4
|
+
export declare function client(options?: ClientOptions): import("openapi-fetch").Client<paths, `${string}/${string}`>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Code generated from the contract's servers[0]. DO NOT EDIT.
|
|
2
|
+
import createClient, {} from "openapi-fetch";
|
|
3
|
+
const defaultBaseUrl = "https://iam.leaflow.cloud";
|
|
4
|
+
/** A client for the iam service. Pass baseUrl to override the address. */
|
|
5
|
+
export function client(options = {}) {
|
|
6
|
+
return createClient({ baseUrl: defaultBaseUrl, ...options });
|
|
7
|
+
}
|
package/dist/iam/v1/index.d.ts
CHANGED
|
@@ -1,62 +1,85 @@
|
|
|
1
1
|
export type { paths, components, operations, webhooks } from "./schema.js";
|
|
2
|
+
export { client } from "./client.js";
|
|
2
3
|
import type { operations } from "./schema.js";
|
|
3
|
-
/** `GET /api/v1/permissions
|
|
4
|
+
/** The success response body of `GET /api/v1/permissions`. */
|
|
4
5
|
export type ListPermissionsResult = operations["list-permissions"]["responses"][200]["content"]["application/json"];
|
|
5
|
-
/** `
|
|
6
|
-
export type DeleteProjectResult = operations["delete-project"]["responses"][200]["content"]["application/json"];
|
|
7
|
-
/** `GET /api/v1/project` 成功时的响应体。 */
|
|
6
|
+
/** The success response body of `GET /api/v1/project`. */
|
|
8
7
|
export type GetProjectResult = operations["get-project"]["responses"][200]["content"]["application/json"];
|
|
9
|
-
/** `PATCH /api/v1/project
|
|
8
|
+
/** The success response body of `PATCH /api/v1/project`. */
|
|
10
9
|
export type UpdateProjectResult = operations["update-project"]["responses"][200]["content"]["application/json"];
|
|
11
|
-
/** `PATCH /api/v1/project
|
|
10
|
+
/** The request body of `PATCH /api/v1/project`. */
|
|
12
11
|
export type UpdateProjectBody = NonNullable<operations["update-project"]["requestBody"]>["content"]["application/json"];
|
|
13
|
-
/** `
|
|
12
|
+
/** The success response body of `DELETE /api/v1/project`. */
|
|
13
|
+
export type DeleteProjectResult = operations["delete-project"]["responses"][200]["content"]["application/json"];
|
|
14
|
+
/** The success response body of `GET /api/v1/membership`. */
|
|
14
15
|
export type GetProjectMembershipResult = operations["get-project-membership"]["responses"][200]["content"]["application/json"];
|
|
15
|
-
/** `GET /api/v1/invitations
|
|
16
|
+
/** The success response body of `GET /api/v1/invitations`. */
|
|
16
17
|
export type ListProjectInvitationsResult = operations["list-project-invitations"]["responses"][200]["content"]["application/json"];
|
|
17
|
-
/** `GET /api/v1/invitations
|
|
18
|
+
/** The query parameters of `GET /api/v1/invitations`. */
|
|
18
19
|
export type ListProjectInvitationsQuery = operations["list-project-invitations"]["parameters"]["query"];
|
|
19
|
-
/** `POST /api/v1/invitations
|
|
20
|
+
/** The success response body of `POST /api/v1/invitations`. */
|
|
20
21
|
export type IssueInvitationResult = operations["issue-invitation"]["responses"][201]["content"]["application/json"];
|
|
21
|
-
/** `POST /api/v1/invitations
|
|
22
|
+
/** The request body of `POST /api/v1/invitations`. */
|
|
22
23
|
export type IssueInvitationBody = NonNullable<operations["issue-invitation"]["requestBody"]>["content"]["application/json"];
|
|
23
|
-
/** `
|
|
24
|
+
/** The success response body of `POST /api/v1/members:batchGet`. */
|
|
25
|
+
export type BatchGetMembersResult = operations["batch-get-members"]["responses"][200]["content"]["application/json"];
|
|
26
|
+
/** The request body of `POST /api/v1/members:batchGet`. */
|
|
27
|
+
export type BatchGetMembersBody = NonNullable<operations["batch-get-members"]["requestBody"]>["content"]["application/json"];
|
|
28
|
+
/** The success response body of `GET /api/v1/members`. */
|
|
24
29
|
export type ListMembersResult = operations["list-members"]["responses"][200]["content"]["application/json"];
|
|
25
|
-
/** `GET /api/v1/members
|
|
30
|
+
/** The query parameters of `GET /api/v1/members`. */
|
|
26
31
|
export type ListMembersQuery = operations["list-members"]["parameters"]["query"];
|
|
27
|
-
/** `PUT /api/v1/members/{userId}/roles
|
|
32
|
+
/** The success response body of `PUT /api/v1/members/{userId}/roles`. */
|
|
28
33
|
export type SetMemberRolesResult = operations["set-member-roles"]["responses"][200]["content"]["application/json"];
|
|
29
|
-
/** `PUT /api/v1/members/{userId}/roles
|
|
34
|
+
/** The request body of `PUT /api/v1/members/{userId}/roles`. */
|
|
30
35
|
export type SetMemberRolesBody = NonNullable<operations["set-member-roles"]["requestBody"]>["content"]["application/json"];
|
|
31
|
-
/** `
|
|
36
|
+
/** The success response body of `PUT /api/v1/members/{userId}/permissions`. */
|
|
37
|
+
export type SetMemberPermissionsResult = operations["set-member-permissions"]["responses"][200]["content"]["application/json"];
|
|
38
|
+
/** The request body of `PUT /api/v1/members/{userId}/permissions`. */
|
|
39
|
+
export type SetMemberPermissionsBody = NonNullable<operations["set-member-permissions"]["requestBody"]>["content"]["application/json"];
|
|
40
|
+
/** The success response body of `GET /api/v1/policies`. */
|
|
41
|
+
export type ListPoliciesResult = operations["list-policies"]["responses"][200]["content"]["application/json"];
|
|
42
|
+
/** The query parameters of `GET /api/v1/policies`. */
|
|
43
|
+
export type ListPoliciesQuery = operations["list-policies"]["parameters"]["query"];
|
|
44
|
+
/** The success response body of `POST /api/v1/policies`. */
|
|
45
|
+
export type AttachPolicyResult = operations["attach-policy"]["responses"][201]["content"]["application/json"];
|
|
46
|
+
/** The request body of `POST /api/v1/policies`. */
|
|
47
|
+
export type AttachPolicyBody = NonNullable<operations["attach-policy"]["requestBody"]>["content"]["application/json"];
|
|
48
|
+
/** The success response body of `GET /api/v1/policies/{policyId}`. */
|
|
49
|
+
export type GetPolicyResult = operations["get-policy"]["responses"][200]["content"]["application/json"];
|
|
50
|
+
/** The success response body of `PUT /api/v1/policies/{policyId}`. */
|
|
51
|
+
export type UpdatePolicyResult = operations["update-policy"]["responses"][200]["content"]["application/json"];
|
|
52
|
+
/** The request body of `PUT /api/v1/policies/{policyId}`. */
|
|
53
|
+
export type UpdatePolicyBody = NonNullable<operations["update-policy"]["requestBody"]>["content"]["application/json"];
|
|
54
|
+
/** The success response body of `POST /api/v1/transfer-ownership`. */
|
|
32
55
|
export type TransferProjectOwnershipResult = operations["transfer-project-ownership"]["responses"][200]["content"]["application/json"];
|
|
33
|
-
/** `POST /api/v1/transfer-ownership
|
|
56
|
+
/** The request body of `POST /api/v1/transfer-ownership`. */
|
|
34
57
|
export type TransferProjectOwnershipBody = NonNullable<operations["transfer-project-ownership"]["requestBody"]>["content"]["application/json"];
|
|
35
|
-
/** `GET /api/v1/roles
|
|
58
|
+
/** The success response body of `GET /api/v1/roles`. */
|
|
36
59
|
export type ListRolesResult = operations["list-roles"]["responses"][200]["content"]["application/json"];
|
|
37
|
-
/** `POST /api/v1/roles
|
|
60
|
+
/** The success response body of `POST /api/v1/roles`. */
|
|
38
61
|
export type CreateRoleResult = operations["create-role"]["responses"][201]["content"]["application/json"];
|
|
39
|
-
/** `POST /api/v1/roles
|
|
62
|
+
/** The request body of `POST /api/v1/roles`. */
|
|
40
63
|
export type CreateRoleBody = NonNullable<operations["create-role"]["requestBody"]>["content"]["application/json"];
|
|
41
|
-
/** `GET /api/v1/roles/{code}
|
|
64
|
+
/** The success response body of `GET /api/v1/roles/{code}`. */
|
|
42
65
|
export type GetRoleResult = operations["get-role"]["responses"][200]["content"]["application/json"];
|
|
43
|
-
/** `PUT /api/v1/roles/{code}
|
|
66
|
+
/** The success response body of `PUT /api/v1/roles/{code}`. */
|
|
44
67
|
export type UpdateRoleResult = operations["update-role"]["responses"][200]["content"]["application/json"];
|
|
45
|
-
/** `PUT /api/v1/roles/{code}
|
|
68
|
+
/** The request body of `PUT /api/v1/roles/{code}`. */
|
|
46
69
|
export type UpdateRoleBody = NonNullable<operations["update-role"]["requestBody"]>["content"]["application/json"];
|
|
47
|
-
/** `GET /api/v1/ssh-keys
|
|
70
|
+
/** The success response body of `GET /api/v1/ssh-keys`. */
|
|
48
71
|
export type ListSshKeysResult = operations["list-ssh-keys"]["responses"][200]["content"]["application/json"];
|
|
49
|
-
/** `GET /api/v1/ssh-keys
|
|
72
|
+
/** The query parameters of `GET /api/v1/ssh-keys`. */
|
|
50
73
|
export type ListSshKeysQuery = operations["list-ssh-keys"]["parameters"]["query"];
|
|
51
|
-
/** `POST /api/v1/ssh-keys
|
|
74
|
+
/** The success response body of `POST /api/v1/ssh-keys`. */
|
|
52
75
|
export type CreateSshKeyResult = operations["create-ssh-key"]["responses"][201]["content"]["application/json"];
|
|
53
|
-
/** `POST /api/v1/ssh-keys
|
|
76
|
+
/** The request body of `POST /api/v1/ssh-keys`. */
|
|
54
77
|
export type CreateSshKeyBody = NonNullable<operations["create-ssh-key"]["requestBody"]>["content"]["application/json"];
|
|
55
|
-
/** `
|
|
56
|
-
export type RevokeSshKeyResult = operations["revoke-ssh-key"]["responses"][200]["content"]["application/json"];
|
|
57
|
-
/** `GET /api/v1/ssh-keys/{keyId}` 成功时的响应体。 */
|
|
78
|
+
/** The success response body of `GET /api/v1/ssh-keys/{keyId}`. */
|
|
58
79
|
export type GetSshKeyResult = operations["get-ssh-key"]["responses"][200]["content"]["application/json"];
|
|
59
|
-
/** `PATCH /api/v1/ssh-keys/{keyId}
|
|
80
|
+
/** The success response body of `PATCH /api/v1/ssh-keys/{keyId}`. */
|
|
60
81
|
export type RenameSshKeyResult = operations["rename-ssh-key"]["responses"][200]["content"]["application/json"];
|
|
61
|
-
/** `PATCH /api/v1/ssh-keys/{keyId}
|
|
82
|
+
/** The request body of `PATCH /api/v1/ssh-keys/{keyId}`. */
|
|
62
83
|
export type RenameSshKeyBody = NonNullable<operations["rename-ssh-key"]["requestBody"]>["content"]["application/json"];
|
|
84
|
+
/** The success response body of `DELETE /api/v1/ssh-keys/{keyId}`. */
|
|
85
|
+
export type RevokeSshKeyResult = operations["revoke-ssh-key"]["responses"][200]["content"]["application/json"];
|
package/dist/iam/v1/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by scripts/generate.mjs. DO NOT EDIT.
|
|
2
2
|
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
export {};
|
|
3
|
+
// The aliases replace the operations[...] subscript chain with a name. The raw paths /
|
|
4
|
+
// components / operations are exported as well: paths is what createClient<paths>() takes.
|
|
5
|
+
export { client } from "./client.js";
|