@leaflow/sdk 0.0.0-dev.23.g7fcf334 → 0.0.0-dev.230.g6609f68

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 (77) hide show
  1. package/README.md +22 -1
  2. package/dist/account/v1/client.d.ts +4 -0
  3. package/dist/account/v1/client.js +7 -0
  4. package/dist/account/v1/index.d.ts +33 -22
  5. package/dist/account/v1/index.js +4 -4
  6. package/dist/account/v1/schema.d.ts +307 -89
  7. package/dist/assistant/v1/client.d.ts +4 -0
  8. package/dist/assistant/v1/client.js +7 -0
  9. package/dist/assistant/v1/index.d.ts +71 -40
  10. package/dist/assistant/v1/index.js +4 -4
  11. package/dist/assistant/v1/schema.d.ts +1204 -139
  12. package/dist/billing/account/v1/client.d.ts +4 -0
  13. package/dist/billing/account/v1/client.js +7 -0
  14. package/dist/billing/account/v1/index.d.ts +143 -0
  15. package/dist/billing/account/v1/index.js +5 -0
  16. package/dist/billing/account/v1/schema.d.ts +3989 -0
  17. package/dist/billing/account/v1/schema.js +5 -0
  18. package/dist/billing/catalog/v1/client.d.ts +4 -0
  19. package/dist/billing/catalog/v1/client.js +7 -0
  20. package/dist/billing/catalog/v1/index.d.ts +29 -0
  21. package/dist/billing/catalog/v1/index.js +5 -0
  22. package/dist/billing/catalog/v1/schema.d.ts +910 -0
  23. package/dist/billing/catalog/v1/schema.js +5 -0
  24. package/dist/billing/index.d.ts +3 -0
  25. package/dist/billing/index.js +6 -0
  26. package/dist/billing/project/v1/client.d.ts +4 -0
  27. package/dist/billing/project/v1/client.js +7 -0
  28. package/dist/billing/project/v1/index.d.ts +45 -0
  29. package/dist/billing/project/v1/index.js +5 -0
  30. package/dist/billing/project/v1/schema.d.ts +1440 -0
  31. package/dist/billing/project/v1/schema.js +5 -0
  32. package/dist/canopy/v1/client.d.ts +4 -0
  33. package/dist/canopy/v1/client.js +7 -0
  34. package/dist/canopy/v1/index.d.ts +24 -23
  35. package/dist/canopy/v1/index.js +4 -4
  36. package/dist/canopy/v1/schema.d.ts +113 -109
  37. package/dist/compute/v1/client.d.ts +4 -0
  38. package/dist/compute/v1/client.js +7 -0
  39. package/dist/compute/v1/index.d.ts +182 -127
  40. package/dist/compute/v1/index.js +4 -4
  41. package/dist/compute/v1/schema.d.ts +1501 -286
  42. package/dist/dns/v1/client.d.ts +4 -0
  43. package/dist/dns/v1/client.js +7 -0
  44. package/dist/dns/v1/index.d.ts +43 -0
  45. package/dist/dns/v1/index.js +5 -0
  46. package/dist/dns/v1/schema.d.ts +887 -0
  47. package/dist/dns/v1/schema.js +5 -0
  48. package/dist/iam/v1/client.d.ts +4 -0
  49. package/dist/iam/v1/client.js +7 -0
  50. package/dist/iam/v1/index.d.ts +55 -32
  51. package/dist/iam/v1/index.js +4 -4
  52. package/dist/iam/v1/schema.d.ts +521 -88
  53. package/dist/index.d.ts +11 -7
  54. package/dist/index.js +19 -5
  55. package/dist/monitoring/v1/client.d.ts +4 -0
  56. package/dist/monitoring/v1/client.js +7 -0
  57. package/dist/monitoring/v1/index.d.ts +130 -49
  58. package/dist/monitoring/v1/index.js +4 -4
  59. package/dist/monitoring/v1/schema.d.ts +2420 -527
  60. package/dist/notification/v1/client.d.ts +4 -0
  61. package/dist/notification/v1/client.js +7 -0
  62. package/dist/notification/v1/index.d.ts +77 -0
  63. package/dist/notification/v1/index.js +5 -0
  64. package/dist/notification/v1/schema.d.ts +2048 -0
  65. package/dist/notification/v1/schema.js +5 -0
  66. package/dist/support/v1/client.d.ts +4 -0
  67. package/dist/support/v1/client.js +7 -0
  68. package/dist/support/v1/index.d.ts +51 -0
  69. package/dist/support/v1/index.js +5 -0
  70. package/dist/support/v1/schema.d.ts +1082 -0
  71. package/dist/support/v1/schema.js +5 -0
  72. package/dist/tunnel/v1/client.d.ts +4 -0
  73. package/dist/tunnel/v1/client.js +7 -0
  74. package/dist/tunnel/v1/index.d.ts +8 -7
  75. package/dist/tunnel/v1/index.js +4 -4
  76. package/dist/tunnel/v1/schema.d.ts +40 -34
  77. package/package.json +30 -10
@@ -0,0 +1,4 @@
1
+ import { type ClientOptions } from "openapi-fetch";
2
+ import type { paths } from "./schema.js";
3
+ /** A client for the assistant 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://assistant.leaflow.cloud";
4
+ /** A client for the assistant service. Pass baseUrl to override the address. */
5
+ export function client(options = {}) {
6
+ return createClient({ baseUrl: defaultBaseUrl, ...options });
7
+ }
@@ -1,80 +1,111 @@
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
- /** `POST /api/v1/attachments` 成功时的响应体。 */
4
+ /** The success response body of `GET /api/v1/models`. */
5
+ export type ListModelsResult = operations["list-models"]["responses"][200]["content"]["application/json"];
6
+ /** The success response body of `POST /api/v1/attachments`. */
4
7
  export type UploadAttachmentResult = operations["upload-attachment"]["responses"][201]["content"]["application/json"];
5
- /** `GET /api/v1/bindings` 成功时的响应体。 */
8
+ /** The query parameters of `POST /api/v1/attachments`. */
9
+ export type UploadAttachmentQuery = operations["upload-attachment"]["parameters"]["query"];
10
+ /** The success response body of `GET /api/v1/bindings`. */
6
11
  export type ListBindingsResult = operations["list-bindings"]["responses"][200]["content"]["application/json"];
7
- /** `GET /api/v1/bindings` 的查询参数。 */
12
+ /** The query parameters of `GET /api/v1/bindings`. */
8
13
  export type ListBindingsQuery = operations["list-bindings"]["parameters"]["query"];
9
- /** `GET /api/v1/bindings/{binding}` 成功时的响应体。 */
14
+ /** The success response body of `GET /api/v1/bindings/{binding}`. */
10
15
  export type GetBindingResult = operations["get-binding"]["responses"][200]["content"]["application/json"];
11
- /** `GET /api/v1/channels` 成功时的响应体。 */
16
+ /** The success response body of `GET /api/v1/channels`. */
12
17
  export type ListChannelsResult = operations["list-channels"]["responses"][200]["content"]["application/json"];
13
- /** `GET /api/v1/channels` 的查询参数。 */
18
+ /** The query parameters of `GET /api/v1/channels`. */
14
19
  export type ListChannelsQuery = operations["list-channels"]["parameters"]["query"];
15
- /** `POST /api/v1/channels` 成功时的响应体。 */
20
+ /** The success response body of `POST /api/v1/channels`. */
16
21
  export type CreateChannelResult = operations["create-channel"]["responses"][201]["content"]["application/json"];
17
- /** `POST /api/v1/channels` 的请求体。 */
22
+ /** The request body of `POST /api/v1/channels`. */
18
23
  export type CreateChannelBody = NonNullable<operations["create-channel"]["requestBody"]>["content"]["application/json"];
19
- /** `GET /api/v1/channels/{channel}` 成功时的响应体。 */
24
+ /** The success response body of `GET /api/v1/channels/{channel}`. */
20
25
  export type GetChannelResult = operations["get-channel"]["responses"][200]["content"]["application/json"];
21
- /** `PATCH /api/v1/channels/{channel}` 成功时的响应体。 */
26
+ /** The success response body of `PATCH /api/v1/channels/{channel}`. */
22
27
  export type UpdateChannelResult = operations["update-channel"]["responses"][200]["content"]["application/json"];
23
- /** `PATCH /api/v1/channels/{channel}` 的请求体。 */
28
+ /** The request body of `PATCH /api/v1/channels/{channel}`. */
24
29
  export type UpdateChannelBody = NonNullable<operations["update-channel"]["requestBody"]>["content"]["application/json"];
25
- /** `POST /api/v1/channels/{channel}/binding-codes` 成功时的响应体。 */
30
+ /** The success response body of `POST /api/v1/channels/{channel}/binding-codes`. */
26
31
  export type CreateBindingCodeResult = operations["create-binding-code"]["responses"][201]["content"]["application/json"];
27
- /** `GET /api/v1/channels/{channel}/rejections` 成功时的响应体。 */
32
+ /** The success response body of `GET /api/v1/channels/{channel}/rejections`. */
28
33
  export type ListChannelRejectionsResult = operations["list-channel-rejections"]["responses"][200]["content"]["application/json"];
29
- /** `GET /api/v1/channels/{channel}/rejections` 的查询参数。 */
34
+ /** The query parameters of `GET /api/v1/channels/{channel}/rejections`. */
30
35
  export type ListChannelRejectionsQuery = operations["list-channel-rejections"]["parameters"]["query"];
31
- /** `POST /api/v1/channels/{channel}/secret` 成功时的响应体。 */
36
+ /** The success response body of `POST /api/v1/channels/{channel}/secret`. */
32
37
  export type RotateChannelSecretResult = operations["rotate-channel-secret"]["responses"][200]["content"]["application/json"];
33
- /** `POST /api/v1/channels/{channel}/secret` 的请求体。 */
38
+ /** The request body of `POST /api/v1/channels/{channel}/secret`. */
34
39
  export type RotateChannelSecretBody = NonNullable<operations["rotate-channel-secret"]["requestBody"]>["content"]["application/json"];
35
- /** `GET /api/v1/channels/{channel}/sender-check` 成功时的响应体。 */
40
+ /** The success response body of `GET /api/v1/channels/{channel}/sender-check`. */
36
41
  export type CheckSenderResult = operations["check-sender"]["responses"][200]["content"]["application/json"];
37
- /** `GET /api/v1/channels/{channel}/sender-check` 的查询参数。 */
42
+ /** The query parameters of `GET /api/v1/channels/{channel}/sender-check`. */
38
43
  export type CheckSenderQuery = operations["check-sender"]["parameters"]["query"];
39
- /** `POST /api/v1/channels/{channel}/weixin-logins` 成功时的响应体。 */
44
+ /** The success response body of `POST /api/v1/channels/{channel}/weixin-logins`. */
40
45
  export type BeginWeixinLoginResult = operations["begin-weixin-login"]["responses"][201]["content"]["application/json"];
41
- /** `GET /api/v1/platforms` 成功时的响应体。 */
46
+ /** The success response body of `GET /api/v1/platforms`. */
42
47
  export type ListPlatformsResult = operations["list-platforms"]["responses"][200]["content"]["application/json"];
43
- /** `GET /api/v1/weixin-logins/{login}` 成功时的响应体。 */
48
+ /** The success response body of `GET /api/v1/weixin-logins/{login}`. */
44
49
  export type GetWeixinLoginResult = operations["get-weixin-login"]["responses"][200]["content"]["application/json"];
45
- /** `POST /api/v1/weixin-logins/{login}/verify-code` 成功时的响应体。 */
50
+ /** The success response body of `POST /api/v1/weixin-logins/{login}/verify-code`. */
46
51
  export type SubmitWeixinVerifyCodeResult = operations["submit-weixin-verify-code"]["responses"][200]["content"]["application/json"];
47
- /** `POST /api/v1/weixin-logins/{login}/verify-code` 的请求体。 */
52
+ /** The request body of `POST /api/v1/weixin-logins/{login}/verify-code`. */
48
53
  export type SubmitWeixinVerifyCodeBody = NonNullable<operations["submit-weixin-verify-code"]["requestBody"]>["content"]["application/json"];
49
- /** `GET /api/v1/models` 成功时的响应体。 */
50
- export type ListModelsResult = operations["list-models"]["responses"][200]["content"]["application/json"];
51
- /** `GET /api/v1/threads` 成功时的响应体。 */
54
+ /** The request body of `POST /api/v1/dynamic-calls/{call}/result`. */
55
+ export type SubmitDynamicCallResultBody = NonNullable<operations["submit-dynamic-call-result"]["requestBody"]>["content"]["application/json"];
56
+ /** The success response body of `GET /api/v1/folders`. */
57
+ export type ListFoldersResult = operations["list-folders"]["responses"][200]["content"]["application/json"];
58
+ /** The success response body of `POST /api/v1/folders`. */
59
+ export type CreateFolderResult = operations["create-folder"]["responses"][201]["content"]["application/json"];
60
+ /** The request body of `POST /api/v1/folders`. */
61
+ export type CreateFolderBody = NonNullable<operations["create-folder"]["requestBody"]>["content"]["application/json"];
62
+ /** The success response body of `GET /api/v1/folders/{folder}`. */
63
+ export type GetFolderResult = operations["get-folder"]["responses"][200]["content"]["application/json"];
64
+ /** The success response body of `PATCH /api/v1/folders/{folder}`. */
65
+ export type UpdateFolderResult = operations["update-folder"]["responses"][200]["content"]["application/json"];
66
+ /** The request body of `PATCH /api/v1/folders/{folder}`. */
67
+ export type UpdateFolderBody = NonNullable<operations["update-folder"]["requestBody"]>["content"]["application/json"];
68
+ /** The success response body of `GET /api/v1/memories`. */
69
+ export type ListMemoriesResult = operations["list-memories"]["responses"][200]["content"]["application/json"];
70
+ /** The success response body of `GET /api/v1/skills`. */
71
+ export type ListSkillsResult = operations["list-skills"]["responses"][200]["content"]["application/json"];
72
+ /** The success response body of `POST /api/v1/skills`. */
73
+ export type PutSkillResult = operations["put-skill"]["responses"][200]["content"]["application/json"];
74
+ /** The request body of `POST /api/v1/skills`. */
75
+ export type PutSkillBody = NonNullable<operations["put-skill"]["requestBody"]>["content"]["application/json"];
76
+ /** The success response body of `GET /api/v1/skills/{skill}`. */
77
+ export type GetSkillResult = operations["get-skill"]["responses"][200]["content"]["application/json"];
78
+ /** The success response body of `PATCH /api/v1/skills/{skill}`. */
79
+ export type SetSkillEnabledResult = operations["set-skill-enabled"]["responses"][200]["content"]["application/json"];
80
+ /** The request body of `PATCH /api/v1/skills/{skill}`. */
81
+ export type SetSkillEnabledBody = NonNullable<operations["set-skill-enabled"]["requestBody"]>["content"]["application/json"];
82
+ /** The success response body of `GET /api/v1/threads`. */
52
83
  export type ListThreadsResult = operations["list-threads"]["responses"][200]["content"]["application/json"];
53
- /** `GET /api/v1/threads` 的查询参数。 */
84
+ /** The query parameters of `GET /api/v1/threads`. */
54
85
  export type ListThreadsQuery = operations["list-threads"]["parameters"]["query"];
55
- /** `POST /api/v1/threads` 成功时的响应体。 */
86
+ /** The success response body of `POST /api/v1/threads`. */
56
87
  export type CreateThreadResult = operations["create-thread"]["responses"][201]["content"]["application/json"];
57
- /** `POST /api/v1/threads` 的请求体。 */
88
+ /** The request body of `POST /api/v1/threads`. */
58
89
  export type CreateThreadBody = NonNullable<operations["create-thread"]["requestBody"]>["content"]["application/json"];
59
- /** `GET /api/v1/threads/{thread}` 成功时的响应体。 */
90
+ /** The success response body of `GET /api/v1/threads/{thread}`. */
60
91
  export type GetThreadResult = operations["get-thread"]["responses"][200]["content"]["application/json"];
61
- /** `PATCH /api/v1/threads/{thread}` 成功时的响应体。 */
92
+ /** The success response body of `PATCH /api/v1/threads/{thread}`. */
62
93
  export type UpdateThreadResult = operations["update-thread"]["responses"][200]["content"]["application/json"];
63
- /** `PATCH /api/v1/threads/{thread}` 的请求体。 */
94
+ /** The request body of `PATCH /api/v1/threads/{thread}`. */
64
95
  export type UpdateThreadBody = NonNullable<operations["update-thread"]["requestBody"]>["content"]["application/json"];
65
- /** `POST /api/v1/threads/{thread}/approvals/{batch}` 的请求体。 */
96
+ /** The request body of `POST /api/v1/threads/{thread}/approvals/{batch}`. */
66
97
  export type DecideApprovalBody = NonNullable<operations["decide-approval"]["requestBody"]>["content"]["application/json"];
67
- /** `GET /api/v1/threads/{thread}/earlier` 成功时的响应体。 */
98
+ /** The success response body of `GET /api/v1/threads/{thread}/earlier`. */
68
99
  export type ListEarlierItemsResult = operations["list-earlier-items"]["responses"][200]["content"]["application/json"];
69
- /** `GET /api/v1/threads/{thread}/earlier` 的查询参数。 */
100
+ /** The query parameters of `GET /api/v1/threads/{thread}/earlier`. */
70
101
  export type ListEarlierItemsQuery = operations["list-earlier-items"]["parameters"]["query"];
71
- /** `POST /api/v1/threads/{thread}/messages` 成功时的响应体。 */
102
+ /** The success response body of `POST /api/v1/threads/{thread}/messages`. */
72
103
  export type SendMessageResult = operations["send-message"]["responses"][202]["content"]["application/json"];
73
- /** `POST /api/v1/threads/{thread}/messages` 的请求体。 */
104
+ /** The request body of `POST /api/v1/threads/{thread}/messages`. */
74
105
  export type SendMessageBody = NonNullable<operations["send-message"]["requestBody"]>["content"]["application/json"];
75
- /** `POST /api/v1/threads/{thread}/questions/{item}` 的请求体。 */
106
+ /** The request body of `POST /api/v1/threads/{thread}/questions/{item}`. */
76
107
  export type AnswerQuestionBody = NonNullable<operations["answer-question"]["requestBody"]>["content"]["application/json"];
77
- /** `POST /api/v1/threads/{thread}/revert` 成功时的响应体。 */
108
+ /** The success response body of `POST /api/v1/threads/{thread}/revert`. */
78
109
  export type RevertThreadResult = operations["revert-thread"]["responses"][200]["content"]["application/json"];
79
- /** `POST /api/v1/threads/{thread}/revert` 的请求体。 */
110
+ /** The request body of `POST /api/v1/threads/{thread}/revert`. */
80
111
  export type RevertThreadBody = NonNullable<operations["revert-thread"]["requestBody"]>["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";