@leaflow/sdk 0.54.4 → 0.56.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.
Files changed (62) hide show
  1. package/dist/account/v1/client.d.ts +4 -0
  2. package/dist/account/v1/client.js +7 -0
  3. package/dist/account/v1/index.d.ts +28 -27
  4. package/dist/account/v1/index.js +4 -4
  5. package/dist/account/v1/schema.d.ts +123 -122
  6. package/dist/assistant/v1/client.d.ts +4 -0
  7. package/dist/assistant/v1/client.js +7 -0
  8. package/dist/assistant/v1/index.d.ts +54 -53
  9. package/dist/assistant/v1/index.js +4 -4
  10. package/dist/assistant/v1/schema.d.ts +4 -0
  11. package/dist/billing/v1/index.d.ts +99 -93
  12. package/dist/billing/v1/index.js +3 -3
  13. package/dist/billing/v1/schema.d.ts +174 -5
  14. package/dist/canopy/v1/client.d.ts +4 -0
  15. package/dist/canopy/v1/client.js +7 -0
  16. package/dist/canopy/v1/index.d.ts +24 -23
  17. package/dist/canopy/v1/index.js +4 -4
  18. package/dist/canopy/v1/schema.d.ts +113 -109
  19. package/dist/compute/v1/client.d.ts +4 -0
  20. package/dist/compute/v1/client.js +7 -0
  21. package/dist/compute/v1/index.d.ts +126 -123
  22. package/dist/compute/v1/index.js +4 -4
  23. package/dist/compute/v1/schema.d.ts +55 -0
  24. package/dist/dns/v1/client.d.ts +4 -0
  25. package/dist/dns/v1/client.js +7 -0
  26. package/dist/dns/v1/index.d.ts +24 -23
  27. package/dist/dns/v1/index.js +4 -4
  28. package/dist/dns/v1/schema.d.ts +4 -0
  29. package/dist/fleet/v1/client.d.ts +4 -0
  30. package/dist/fleet/v1/client.js +7 -0
  31. package/dist/fleet/v1/index.d.ts +7 -0
  32. package/dist/fleet/v1/index.js +5 -0
  33. package/dist/fleet/v1/schema.d.ts +156 -0
  34. package/dist/fleet/v1/schema.js +5 -0
  35. package/dist/iam/v1/client.d.ts +4 -0
  36. package/dist/iam/v1/client.js +7 -0
  37. package/dist/iam/v1/index.d.ts +44 -43
  38. package/dist/iam/v1/index.js +4 -4
  39. package/dist/iam/v1/schema.d.ts +119 -115
  40. package/dist/index.d.ts +12 -11
  41. package/dist/index.js +20 -5
  42. package/dist/monitoring/v1/client.d.ts +4 -0
  43. package/dist/monitoring/v1/client.js +7 -0
  44. package/dist/monitoring/v1/index.d.ts +90 -89
  45. package/dist/monitoring/v1/index.js +4 -4
  46. package/dist/monitoring/v1/schema.d.ts +4 -0
  47. package/dist/notification/v1/client.d.ts +4 -0
  48. package/dist/notification/v1/client.js +7 -0
  49. package/dist/notification/v1/index.d.ts +38 -37
  50. package/dist/notification/v1/index.js +4 -4
  51. package/dist/notification/v1/schema.d.ts +4 -0
  52. package/dist/support/v1/client.d.ts +4 -0
  53. package/dist/support/v1/client.js +7 -0
  54. package/dist/support/v1/index.d.ts +25 -24
  55. package/dist/support/v1/index.js +4 -4
  56. package/dist/support/v1/schema.d.ts +4 -0
  57. package/dist/tunnel/v1/client.d.ts +4 -0
  58. package/dist/tunnel/v1/client.js +7 -0
  59. package/dist/tunnel/v1/index.d.ts +8 -7
  60. package/dist/tunnel/v1/index.js +4 -4
  61. package/dist/tunnel/v1/schema.d.ts +39 -35
  62. package/package.json +6 -4
@@ -0,0 +1,4 @@
1
+ import { type ClientOptions } from "openapi-fetch";
2
+ import type { paths } from "./schema.js";
3
+ /** A client for the account 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://account.leaflow.cloud";
4
+ /** A client for the account service. Pass baseUrl to override the address. */
5
+ export function client(options = {}) {
6
+ return createClient({ baseUrl: defaultBaseUrl, ...options });
7
+ }
@@ -1,54 +1,55 @@
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 /account/v1/settings` 成功时的响应体。 */
4
+ /** The success response body of `GET /account/v1/settings`. */
4
5
  export type GetSettingsResult = operations["get-settings"]["responses"][200]["content"]["application/json"];
5
- /** `GET /account/v1/locales` 成功时的响应体。 */
6
+ /** The success response body of `GET /account/v1/locales`. */
6
7
  export type ListLocalesResult = operations["list-locales"]["responses"][200]["content"]["application/json"];
7
- /** `GET /account/v1/agreements` 成功时的响应体。 */
8
+ /** The success response body of `GET /account/v1/agreements`. */
8
9
  export type ListAgreementsResult = operations["list-agreements"]["responses"][200]["content"]["application/json"];
9
- /** `GET /account/v1/me/consents` 成功时的响应体。 */
10
+ /** The success response body of `GET /account/v1/me/consents`. */
10
11
  export type ListConsentsResult = operations["list-consents"]["responses"][200]["content"]["application/json"];
11
- /** `POST /account/v1/me/consents` 成功时的响应体。 */
12
+ /** The success response body of `POST /account/v1/me/consents`. */
12
13
  export type AcceptAgreementsResult = operations["accept-agreements"]["responses"][200]["content"]["application/json"];
13
- /** `POST /account/v1/me/consents` 的请求体。 */
14
+ /** The request body of `POST /account/v1/me/consents`. */
14
15
  export type AcceptAgreementsBody = NonNullable<operations["accept-agreements"]["requestBody"]>["content"]["application/json"];
15
- /** `POST /account/v1/register` 成功时的响应体。 */
16
+ /** The success response body of `POST /account/v1/register`. */
16
17
  export type RegisterResult = operations["register"]["responses"][201]["content"]["application/json"];
17
- /** `POST /account/v1/register` 的请求体。 */
18
+ /** The request body of `POST /account/v1/register`. */
18
19
  export type RegisterBody = NonNullable<operations["register"]["requestBody"]>["content"]["application/json"];
19
- /** `GET /account/v1/me` 成功时的响应体。 */
20
+ /** The success response body of `GET /account/v1/me`. */
20
21
  export type GetAccountResult = operations["get-account"]["responses"][200]["content"]["application/json"];
21
- /** `PATCH /account/v1/me` 成功时的响应体。 */
22
+ /** The success response body of `PATCH /account/v1/me`. */
22
23
  export type UpdateAccountResult = operations["update-account"]["responses"][200]["content"]["application/json"];
23
- /** `PATCH /account/v1/me` 的请求体。 */
24
+ /** The request body of `PATCH /account/v1/me`. */
24
25
  export type UpdateAccountBody = NonNullable<operations["update-account"]["requestBody"]>["content"]["application/json"];
25
- /** `GET /account/v1/me/identity-verification` 成功时的响应体。 */
26
+ /** The success response body of `GET /account/v1/me/identity-verification`. */
26
27
  export type GetIdentityVerificationResult = operations["get-identity-verification"]["responses"][200]["content"]["application/json"];
27
- /** `POST /account/v1/me/identity-verification` 成功时的响应体。 */
28
+ /** The success response body of `POST /account/v1/me/identity-verification`. */
28
29
  export type SubmitIdentityVerificationResult = operations["submit-identity-verification"]["responses"][202]["content"]["application/json"];
29
- /** `POST /account/v1/me/identity-verification` 的请求体。 */
30
+ /** The request body of `POST /account/v1/me/identity-verification`. */
30
31
  export type SubmitIdentityVerificationBody = NonNullable<operations["submit-identity-verification"]["requestBody"]>["content"]["application/json"];
31
- /** `GET /account/v1/me/invitations` 成功时的响应体。 */
32
+ /** The success response body of `GET /account/v1/me/invitations`. */
32
33
  export type ListMyInvitationsResult = operations["list-my-invitations"]["responses"][200]["content"]["application/json"];
33
- /** `GET /account/v1/me/invitations` 的查询参数。 */
34
+ /** The query parameters of `GET /account/v1/me/invitations`. */
34
35
  export type ListMyInvitationsQuery = operations["list-my-invitations"]["parameters"]["query"];
35
- /** `GET /account/v1/invitations/by-token` 成功时的响应体。 */
36
+ /** The success response body of `GET /account/v1/invitations/by-token`. */
36
37
  export type PreviewInvitationByTokenResult = operations["preview-invitation-by-token"]["responses"][200]["content"]["application/json"];
37
- /** `GET /account/v1/invitations/by-token` 的查询参数。 */
38
+ /** The query parameters of `GET /account/v1/invitations/by-token`. */
38
39
  export type PreviewInvitationByTokenQuery = operations["preview-invitation-by-token"]["parameters"]["query"];
39
- /** `POST /account/v1/me/invitations/accept` 成功时的响应体。 */
40
+ /** The success response body of `POST /account/v1/me/invitations/accept`. */
40
41
  export type AcceptInvitationByTokenResult = operations["accept-invitation-by-token"]["responses"][200]["content"]["application/json"];
41
- /** `POST /account/v1/me/invitations/accept` 的请求体。 */
42
+ /** The request body of `POST /account/v1/me/invitations/accept`. */
42
43
  export type AcceptInvitationByTokenBody = NonNullable<operations["accept-invitation-by-token"]["requestBody"]>["content"]["application/json"];
43
- /** `POST /account/v1/me/invitations/{invitationId}/accept` 成功时的响应体。 */
44
+ /** The success response body of `POST /account/v1/me/invitations/{invitationId}/accept`. */
44
45
  export type AcceptInvitationResult = operations["accept-invitation"]["responses"][200]["content"]["application/json"];
45
- /** `GET /account/v1/projects` 成功时的响应体。 */
46
+ /** The success response body of `GET /account/v1/projects`. */
46
47
  export type ListProjectsResult = operations["list-projects"]["responses"][200]["content"]["application/json"];
47
- /** `GET /account/v1/projects` 的查询参数。 */
48
+ /** The query parameters of `GET /account/v1/projects`. */
48
49
  export type ListProjectsQuery = operations["list-projects"]["parameters"]["query"];
49
- /** `POST /account/v1/projects` 成功时的响应体。 */
50
+ /** The success response body of `POST /account/v1/projects`. */
50
51
  export type CreateProjectResult = operations["create-project"]["responses"][201]["content"]["application/json"];
51
- /** `POST /account/v1/projects` 的请求体。 */
52
+ /** The request body of `POST /account/v1/projects`. */
52
53
  export type CreateProjectBody = NonNullable<operations["create-project"]["requestBody"]>["content"]["application/json"];
53
- /** `POST /account/v1/projects/{projectId}/token` 成功时的响应体。 */
54
- export type ExchangeProjectTokenResult = operations["exchange-project-token"]["responses"][201]["content"]["application/json"];
54
+ /** The success response body of `POST /account/v1/projects/{projectId}/scoped-tokens`. */
55
+ export type CreateScopedTokenResult = operations["create-scoped-token"]["responses"][201]["content"]["application/json"];
@@ -1,5 +1,5 @@
1
- // scripts/generate-ts.mjs 生成,不要手改。
1
+ // Code generated by scripts/generate.mjs. DO NOT EDIT.
2
2
  //
3
- // 别名把 operations[...] 那串下标换成一个名字。原始的 paths / components / operations
4
- // 一并导出:paths 是给 openapi-fetch createClient<paths>() 用的。
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";