@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 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
|
-
/** `
|
|
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
|
-
/** `
|
|
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
|
-
/** `
|
|
50
|
-
export type
|
|
51
|
-
/** `GET /api/v1/
|
|
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
|
-
//
|
|
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";
|