@leaflow/sdk 0.0.0-dev.11.g7f2d603

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.
@@ -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 {};
@@ -0,0 +1,80 @@
1
+ export type { paths, components, operations, webhooks } from "./schema.js";
2
+ import type { operations } from "./schema.js";
3
+ /** `POST /api/v1/attachments` 成功时的响应体。 */
4
+ export type UploadAttachmentResult = operations["upload-attachment"]["responses"][201]["content"]["application/json"];
5
+ /** `GET /api/v1/bindings` 成功时的响应体。 */
6
+ export type ListBindingsResult = operations["list-bindings"]["responses"][200]["content"]["application/json"];
7
+ /** `GET /api/v1/bindings` 的查询参数。 */
8
+ export type ListBindingsQuery = operations["list-bindings"]["parameters"]["query"];
9
+ /** `GET /api/v1/bindings/{binding}` 成功时的响应体。 */
10
+ export type GetBindingResult = operations["get-binding"]["responses"][200]["content"]["application/json"];
11
+ /** `GET /api/v1/channels` 成功时的响应体。 */
12
+ export type ListChannelsResult = operations["list-channels"]["responses"][200]["content"]["application/json"];
13
+ /** `GET /api/v1/channels` 的查询参数。 */
14
+ export type ListChannelsQuery = operations["list-channels"]["parameters"]["query"];
15
+ /** `POST /api/v1/channels` 成功时的响应体。 */
16
+ export type CreateChannelResult = operations["create-channel"]["responses"][201]["content"]["application/json"];
17
+ /** `POST /api/v1/channels` 的请求体。 */
18
+ export type CreateChannelBody = NonNullable<operations["create-channel"]["requestBody"]>["content"]["application/json"];
19
+ /** `GET /api/v1/channels/{channel}` 成功时的响应体。 */
20
+ export type GetChannelResult = operations["get-channel"]["responses"][200]["content"]["application/json"];
21
+ /** `PATCH /api/v1/channels/{channel}` 成功时的响应体。 */
22
+ export type UpdateChannelResult = operations["update-channel"]["responses"][200]["content"]["application/json"];
23
+ /** `PATCH /api/v1/channels/{channel}` 的请求体。 */
24
+ export type UpdateChannelBody = NonNullable<operations["update-channel"]["requestBody"]>["content"]["application/json"];
25
+ /** `POST /api/v1/channels/{channel}/binding-codes` 成功时的响应体。 */
26
+ export type CreateBindingCodeResult = operations["create-binding-code"]["responses"][201]["content"]["application/json"];
27
+ /** `GET /api/v1/channels/{channel}/rejections` 成功时的响应体。 */
28
+ export type ListChannelRejectionsResult = operations["list-channel-rejections"]["responses"][200]["content"]["application/json"];
29
+ /** `GET /api/v1/channels/{channel}/rejections` 的查询参数。 */
30
+ export type ListChannelRejectionsQuery = operations["list-channel-rejections"]["parameters"]["query"];
31
+ /** `POST /api/v1/channels/{channel}/secret` 成功时的响应体。 */
32
+ export type RotateChannelSecretResult = operations["rotate-channel-secret"]["responses"][200]["content"]["application/json"];
33
+ /** `POST /api/v1/channels/{channel}/secret` 的请求体。 */
34
+ export type RotateChannelSecretBody = NonNullable<operations["rotate-channel-secret"]["requestBody"]>["content"]["application/json"];
35
+ /** `GET /api/v1/channels/{channel}/sender-check` 成功时的响应体。 */
36
+ export type CheckSenderResult = operations["check-sender"]["responses"][200]["content"]["application/json"];
37
+ /** `GET /api/v1/channels/{channel}/sender-check` 的查询参数。 */
38
+ export type CheckSenderQuery = operations["check-sender"]["parameters"]["query"];
39
+ /** `POST /api/v1/channels/{channel}/weixin-logins` 成功时的响应体。 */
40
+ export type BeginWeixinLoginResult = operations["begin-weixin-login"]["responses"][201]["content"]["application/json"];
41
+ /** `GET /api/v1/platforms` 成功时的响应体。 */
42
+ export type ListPlatformsResult = operations["list-platforms"]["responses"][200]["content"]["application/json"];
43
+ /** `GET /api/v1/weixin-logins/{login}` 成功时的响应体。 */
44
+ export type GetWeixinLoginResult = operations["get-weixin-login"]["responses"][200]["content"]["application/json"];
45
+ /** `POST /api/v1/weixin-logins/{login}/verify-code` 成功时的响应体。 */
46
+ export type SubmitWeixinVerifyCodeResult = operations["submit-weixin-verify-code"]["responses"][200]["content"]["application/json"];
47
+ /** `POST /api/v1/weixin-logins/{login}/verify-code` 的请求体。 */
48
+ 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` 成功时的响应体。 */
52
+ export type ListThreadsResult = operations["list-threads"]["responses"][200]["content"]["application/json"];
53
+ /** `GET /api/v1/threads` 的查询参数。 */
54
+ export type ListThreadsQuery = operations["list-threads"]["parameters"]["query"];
55
+ /** `POST /api/v1/threads` 成功时的响应体。 */
56
+ export type CreateThreadResult = operations["create-thread"]["responses"][201]["content"]["application/json"];
57
+ /** `POST /api/v1/threads` 的请求体。 */
58
+ export type CreateThreadBody = NonNullable<operations["create-thread"]["requestBody"]>["content"]["application/json"];
59
+ /** `GET /api/v1/threads/{thread}` 成功时的响应体。 */
60
+ export type GetThreadResult = operations["get-thread"]["responses"][200]["content"]["application/json"];
61
+ /** `PATCH /api/v1/threads/{thread}` 成功时的响应体。 */
62
+ export type UpdateThreadResult = operations["update-thread"]["responses"][200]["content"]["application/json"];
63
+ /** `PATCH /api/v1/threads/{thread}` 的请求体。 */
64
+ export type UpdateThreadBody = NonNullable<operations["update-thread"]["requestBody"]>["content"]["application/json"];
65
+ /** `POST /api/v1/threads/{thread}/approvals/{batch}` 的请求体。 */
66
+ export type DecideApprovalBody = NonNullable<operations["decide-approval"]["requestBody"]>["content"]["application/json"];
67
+ /** `GET /api/v1/threads/{thread}/earlier` 成功时的响应体。 */
68
+ export type ListEarlierItemsResult = operations["list-earlier-items"]["responses"][200]["content"]["application/json"];
69
+ /** `GET /api/v1/threads/{thread}/earlier` 的查询参数。 */
70
+ export type ListEarlierItemsQuery = operations["list-earlier-items"]["parameters"]["query"];
71
+ /** `POST /api/v1/threads/{thread}/messages` 成功时的响应体。 */
72
+ export type SendMessageResult = operations["send-message"]["responses"][202]["content"]["application/json"];
73
+ /** `POST /api/v1/threads/{thread}/messages` 的请求体。 */
74
+ export type SendMessageBody = NonNullable<operations["send-message"]["requestBody"]>["content"]["application/json"];
75
+ /** `POST /api/v1/threads/{thread}/questions/{item}` 的请求体。 */
76
+ export type AnswerQuestionBody = NonNullable<operations["answer-question"]["requestBody"]>["content"]["application/json"];
77
+ /** `POST /api/v1/threads/{thread}/revert` 成功时的响应体。 */
78
+ export type RevertThreadResult = operations["revert-thread"]["responses"][200]["content"]["application/json"];
79
+ /** `POST /api/v1/threads/{thread}/revert` 的请求体。 */
80
+ export type RevertThreadBody = NonNullable<operations["revert-thread"]["requestBody"]>["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 {};