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