mtmsdk 0.0.47 → 0.0.49
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/dist/gomtmapi/@tanstack/react-query.gen.d.ts +2 -80
- package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/gomtmapi/@tanstack/react-query.gen.js +2 -176
- package/dist/gomtmapi/@tanstack/react-query.gen.js.map +1 -1
- package/dist/gomtmapi/index.d.ts +2 -2
- package/dist/gomtmapi/index.d.ts.map +1 -1
- package/dist/gomtmapi/index.js +1 -1
- package/dist/gomtmapi/index.js.map +1 -1
- package/dist/gomtmapi/schemas.gen.d.ts +14 -328
- package/dist/gomtmapi/schemas.gen.d.ts.map +1 -1
- package/dist/gomtmapi/schemas.gen.js +14 -341
- package/dist/gomtmapi/schemas.gen.js.map +1 -1
- package/dist/gomtmapi/sdk.gen.d.ts +2 -80
- package/dist/gomtmapi/sdk.gen.d.ts.map +1 -1
- package/dist/gomtmapi/sdk.gen.js +1 -135
- package/dist/gomtmapi/sdk.gen.js.map +1 -1
- package/dist/gomtmapi/types.gen.d.ts +10 -437
- package/dist/gomtmapi/types.gen.d.ts.map +1 -1
- package/dist/gomtmapi/zod.gen.d.ts +8 -308
- package/dist/gomtmapi/zod.gen.d.ts.map +1 -1
- package/dist/gomtmapi/zod.gen.js +4 -232
- package/dist/gomtmapi/zod.gen.js.map +1 -1
- package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +1 -29
- package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/mtgate_api/@tanstack/react-query.gen.js +1 -17
- package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -1
- package/dist/mtgate_api/index.d.ts +2 -2
- package/dist/mtgate_api/index.d.ts.map +1 -1
- package/dist/mtgate_api/index.js +1 -1
- package/dist/mtgate_api/index.js.map +1 -1
- package/dist/mtgate_api/sdk.gen.d.ts +1 -5
- package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
- package/dist/mtgate_api/sdk.gen.js +0 -4
- package/dist/mtgate_api/sdk.gen.js.map +1 -1
- package/dist/mtgate_api/types.gen.d.ts +0 -6
- package/dist/mtgate_api/types.gen.d.ts.map +1 -1
- package/dist/mtgate_api/zod.gen.d.ts +0 -5
- package/dist/mtgate_api/zod.gen.d.ts.map +1 -1
- package/dist/mtgate_api/zod.gen.js +0 -5
- package/dist/mtgate_api/zod.gen.js.map +1 -1
- package/dist/mtmai_api/index.d.ts +2 -2
- package/dist/mtmai_api/index.d.ts.map +1 -1
- package/dist/mtmai_api/index.js +1 -1
- package/dist/mtmai_api/index.js.map +1 -1
- package/dist/mtmai_api/zod.gen.d.ts +96 -96
- package/dist/openclaw/client-info.d.ts +0 -18
- package/dist/openclaw/client-info.d.ts.map +1 -1
- package/dist/openclaw/client-info.js +0 -6
- package/dist/openclaw/client-info.js.map +1 -1
- package/dist/openclaw/device-auth-utils.d.ts +3 -4
- package/dist/openclaw/device-auth-utils.d.ts.map +1 -1
- package/dist/openclaw/device-auth-utils.js +4 -8
- package/dist/openclaw/device-auth-utils.js.map +1 -1
- package/dist/openclaw/device-auth.d.ts.map +1 -1
- package/dist/openclaw/device-auth.js +5 -2
- package/dist/openclaw/device-auth.js.map +1 -1
- package/dist/openclaw/device-identity.js +2 -2
- package/dist/openclaw/device-identity.js.map +1 -1
- package/dist/openclaw/gateway.d.ts +19 -5
- package/dist/openclaw/gateway.d.ts.map +1 -1
- package/dist/openclaw/gateway.js +75 -37
- package/dist/openclaw/gateway.js.map +1 -1
- package/dist/sbmng/@tanstack/react-query.gen.d.ts +36 -8
- package/dist/sbmng/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/sbmng/@tanstack/react-query.gen.js +22 -6
- package/dist/sbmng/@tanstack/react-query.gen.js.map +1 -1
- package/dist/sbmng/index.d.ts +2 -2
- package/dist/sbmng/index.d.ts.map +1 -1
- package/dist/sbmng/index.js +1 -1
- package/dist/sbmng/index.js.map +1 -1
- package/dist/sbmng/schemas.gen.d.ts +97 -34
- package/dist/sbmng/schemas.gen.d.ts.map +1 -1
- package/dist/sbmng/schemas.gen.js +120 -49
- package/dist/sbmng/schemas.gen.js.map +1 -1
- package/dist/sbmng/sdk.gen.d.ts +7 -3
- package/dist/sbmng/sdk.gen.d.ts.map +1 -1
- package/dist/sbmng/sdk.gen.js +11 -3
- package/dist/sbmng/sdk.gen.js.map +1 -1
- package/dist/sbmng/types.gen.d.ts +82 -30
- package/dist/sbmng/types.gen.d.ts.map +1 -1
- package/dist/supabase/schema/index.d.ts +0 -8
- package/dist/supabase/schema/index.d.ts.map +1 -1
- package/dist/supabase/schema/index.js +0 -5
- package/dist/supabase/schema/index.js.map +1 -1
- package/dist/supabase/supabase-client.d.ts +900 -719
- package/dist/supabase/supabase-client.d.ts.map +1 -1
- package/dist/supabase/supabase.d.ts +1836 -1474
- package/dist/supabase/supabase.d.ts.map +1 -1
- package/dist/supabase/use-sb-query/use-rpc-query.d.ts.map +1 -1
- package/dist/supabase/use-sb-query/use-rpc-query.js +2 -1
- package/dist/supabase/use-sb-query/use-rpc-query.js.map +1 -1
- package/dist/types/database.schemas.d.ts +999 -920
- package/dist/types/database.schemas.d.ts.map +1 -1
- package/dist/types/database.schemas.js +739 -435
- package/dist/types/database.schemas.js.map +1 -1
- package/dist/types/database.types.d.ts +919 -736
- package/dist/types/database.types.d.ts.map +1 -1
- package/dist/types/database.types.js +18 -2
- package/dist/types/database.types.js.map +1 -1
- package/dist/types/index.d.ts +35 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +4 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +4 -3
- package/src/gomtmapi/@tanstack/react-query.gen.ts +3 -185
- package/src/gomtmapi/index.ts +2 -2
- package/src/gomtmapi/schemas.gen.ts +14 -356
- package/src/gomtmapi/sdk.gen.ts +2 -144
- package/src/gomtmapi/types.gen.ts +10 -492
- package/src/gomtmapi/zod.gen.ts +4 -263
- package/src/mtgate_api/@tanstack/react-query.gen.ts +2 -20
- package/src/mtgate_api/index.ts +2 -2
- package/src/mtgate_api/sdk.gen.ts +1 -6
- package/src/mtgate_api/types.gen.ts +0 -7
- package/src/mtgate_api/zod.gen.ts +0 -6
- package/src/mtmai_api/index.ts +2 -2
- package/src/openclaw/client-info.ts +0 -9
- package/src/openclaw/device-auth-utils.ts +7 -12
- package/src/openclaw/device-auth.ts +5 -2
- package/src/openclaw/device-identity.ts +2 -2
- package/src/openclaw/gateway.ts +96 -50
- package/src/sbmng/@tanstack/react-query.gen.ts +25 -7
- package/src/sbmng/index.ts +2 -2
- package/src/sbmng/schemas.gen.ts +121 -49
- package/src/sbmng/sdk.gen.ts +13 -4
- package/src/sbmng/types.gen.ts +87 -30
- package/src/supabase/schema/index.ts +0 -5
- package/src/supabase/use-sb-query/use-rpc-query.ts +2 -1
- package/src/types/database.schemas.ts +948 -598
- package/src/types/database.types.ts +864 -674
- package/src/types/index.ts +20 -4
- package/dist/api_hatchet/@tanstack/react-query.gen.d.ts +0 -3017
- package/dist/api_hatchet/@tanstack/react-query.gen.d.ts.map +0 -1
- package/dist/api_hatchet/@tanstack/react-query.gen.js +0 -2776
- package/dist/api_hatchet/@tanstack/react-query.gen.js.map +0 -1
- package/dist/api_hatchet/client/client.gen.d.ts +0 -3
- package/dist/api_hatchet/client/client.gen.d.ts.map +0 -1
- package/dist/api_hatchet/client/client.gen.js +0 -236
- package/dist/api_hatchet/client/client.gen.js.map +0 -1
- package/dist/api_hatchet/client/index.d.ts +0 -9
- package/dist/api_hatchet/client/index.d.ts.map +0 -1
- package/dist/api_hatchet/client/index.js +0 -7
- package/dist/api_hatchet/client/index.js.map +0 -1
- package/dist/api_hatchet/client/types.gen.d.ts +0 -118
- package/dist/api_hatchet/client/types.gen.d.ts.map +0 -1
- package/dist/api_hatchet/client/types.gen.js +0 -3
- package/dist/api_hatchet/client/types.gen.js.map +0 -1
- package/dist/api_hatchet/client/utils.gen.d.ts +0 -34
- package/dist/api_hatchet/client/utils.gen.d.ts.map +0 -1
- package/dist/api_hatchet/client/utils.gen.js +0 -232
- package/dist/api_hatchet/client/utils.gen.js.map +0 -1
- package/dist/api_hatchet/client.gen.d.ts +0 -13
- package/dist/api_hatchet/client.gen.d.ts.map +0 -1
- package/dist/api_hatchet/client.gen.js +0 -4
- package/dist/api_hatchet/client.gen.js.map +0 -1
- package/dist/api_hatchet/core/auth.gen.d.ts +0 -19
- package/dist/api_hatchet/core/auth.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/auth.gen.js +0 -15
- package/dist/api_hatchet/core/auth.gen.js.map +0 -1
- package/dist/api_hatchet/core/bodySerializer.gen.d.ts +0 -26
- package/dist/api_hatchet/core/bodySerializer.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/bodySerializer.gen.js +0 -58
- package/dist/api_hatchet/core/bodySerializer.gen.js.map +0 -1
- package/dist/api_hatchet/core/params.gen.d.ts +0 -44
- package/dist/api_hatchet/core/params.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/params.gen.js +0 -101
- package/dist/api_hatchet/core/params.gen.js.map +0 -1
- package/dist/api_hatchet/core/pathSerializer.gen.d.ts +0 -34
- package/dist/api_hatchet/core/pathSerializer.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/pathSerializer.gen.js +0 -115
- package/dist/api_hatchet/core/pathSerializer.gen.js.map +0 -1
- package/dist/api_hatchet/core/queryKeySerializer.gen.d.ts +0 -19
- package/dist/api_hatchet/core/queryKeySerializer.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/queryKeySerializer.gen.js +0 -100
- package/dist/api_hatchet/core/queryKeySerializer.gen.js.map +0 -1
- package/dist/api_hatchet/core/serverSentEvents.gen.d.ts +0 -72
- package/dist/api_hatchet/core/serverSentEvents.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/serverSentEvents.gen.js +0 -138
- package/dist/api_hatchet/core/serverSentEvents.gen.js.map +0 -1
- package/dist/api_hatchet/core/types.gen.d.ts +0 -79
- package/dist/api_hatchet/core/types.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/types.gen.js +0 -3
- package/dist/api_hatchet/core/types.gen.js.map +0 -1
- package/dist/api_hatchet/core/utils.gen.d.ts +0 -20
- package/dist/api_hatchet/core/utils.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/utils.gen.js +0 -88
- package/dist/api_hatchet/core/utils.gen.js.map +0 -1
- package/dist/api_hatchet/index.d.ts +0 -3
- package/dist/api_hatchet/index.d.ts.map +0 -1
- package/dist/api_hatchet/index.js +0 -4
- package/dist/api_hatchet/index.js.map +0 -1
- package/dist/api_hatchet/schemas.gen.d.ts +0 -4068
- package/dist/api_hatchet/schemas.gen.d.ts.map +0 -1
- package/dist/api_hatchet/schemas.gen.js +0 -4743
- package/dist/api_hatchet/schemas.gen.js.map +0 -1
- package/dist/api_hatchet/sdk.gen.d.ts +0 -784
- package/dist/api_hatchet/sdk.gen.d.ts.map +0 -1
- package/dist/api_hatchet/sdk.gen.js +0 -1849
- package/dist/api_hatchet/sdk.gen.js.map +0 -1
- package/dist/api_hatchet/types.gen.d.ts +0 -6861
- package/dist/api_hatchet/types.gen.d.ts.map +0 -1
- package/dist/api_hatchet/types.gen.js +0 -209
- package/dist/api_hatchet/types.gen.js.map +0 -1
- package/dist/api_hatchet/zod.gen.d.ts +0 -10429
- package/dist/api_hatchet/zod.gen.d.ts.map +0 -1
- package/dist/api_hatchet/zod.gen.js +0 -2766
- package/dist/api_hatchet/zod.gen.js.map +0 -1
- package/dist/openclaw/uuid.d.ts +0 -6
- package/dist/openclaw/uuid.d.ts.map +0 -1
- package/dist/openclaw/uuid.js +0 -39
- package/dist/openclaw/uuid.js.map +0 -1
- package/dist/types/rpc.schemas.d.ts +0 -52
- package/dist/types/rpc.schemas.d.ts.map +0 -1
- package/dist/types/rpc.schemas.js +0 -108
- package/dist/types/rpc.schemas.js.map +0 -1
- package/src/api_hatchet/@tanstack/react-query.gen.ts +0 -3025
- package/src/api_hatchet/client/client.gen.ts +0 -311
- package/src/api_hatchet/client/index.ts +0 -25
- package/src/api_hatchet/client/types.gen.ts +0 -241
- package/src/api_hatchet/client/utils.gen.ts +0 -332
- package/src/api_hatchet/client.gen.ts +0 -16
- package/src/api_hatchet/core/auth.gen.ts +0 -42
- package/src/api_hatchet/core/bodySerializer.gen.ts +0 -100
- package/src/api_hatchet/core/params.gen.ts +0 -176
- package/src/api_hatchet/core/pathSerializer.gen.ts +0 -181
- package/src/api_hatchet/core/queryKeySerializer.gen.ts +0 -136
- package/src/api_hatchet/core/serverSentEvents.gen.ts +0 -266
- package/src/api_hatchet/core/types.gen.ts +0 -118
- package/src/api_hatchet/core/utils.gen.ts +0 -143
- package/src/api_hatchet/index.ts +0 -4
- package/src/api_hatchet/schemas.gen.ts +0 -4961
- package/src/api_hatchet/sdk.gen.ts +0 -1994
- package/src/api_hatchet/types.gen.ts +0 -7688
- package/src/api_hatchet/zod.gen.ts +0 -3230
- package/src/openclaw/uuid.ts +0 -48
- package/src/types/rpc.schemas.ts +0 -142
|
@@ -17,8 +17,16 @@ export const Constants = {
|
|
|
17
17
|
"suspended",
|
|
18
18
|
"disabled",
|
|
19
19
|
],
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
openclaw_status: [
|
|
21
|
+
"disabled",
|
|
22
|
+
"pending",
|
|
23
|
+
"starting",
|
|
24
|
+
"running",
|
|
25
|
+
"stopping",
|
|
26
|
+
"stopped",
|
|
27
|
+
"error",
|
|
28
|
+
"migrating",
|
|
29
|
+
],
|
|
22
30
|
sys_log_level: ["error", "warn", "info"],
|
|
23
31
|
task_code_type: ["sql", "bash", "python", "agent", "javascript"],
|
|
24
32
|
task_status: [
|
|
@@ -31,6 +39,14 @@ export const Constants = {
|
|
|
31
39
|
"cancelled",
|
|
32
40
|
"paused",
|
|
33
41
|
],
|
|
42
|
+
telegram_login_state: [
|
|
43
|
+
"idle",
|
|
44
|
+
"wait_code",
|
|
45
|
+
"need_2fa",
|
|
46
|
+
"wait_password",
|
|
47
|
+
"success",
|
|
48
|
+
"failed",
|
|
49
|
+
],
|
|
34
50
|
telegram_login_step: [
|
|
35
51
|
"pending",
|
|
36
52
|
"send_code",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"database.types.js","sourceRoot":"","sources":["../../src/types/database.types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"database.types.js","sourceRoot":"","sources":["../../src/types/database.types.ts"],"names":[],"mappings":"AAkoIA,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,cAAc,EAAE;QACd,KAAK,EAAE,EAAE;KACV;IACD,MAAM,EAAE;QACN,KAAK,EAAE;YACL,QAAQ,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,CAAC;YAC1C,sBAAsB,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAC;YACrE,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC;YACpE,eAAe,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;YACtC,oBAAoB,EAAE;gBACpB,SAAS;gBACT,QAAQ;gBACR,eAAe;gBACf,cAAc;gBACd,gBAAgB;gBAChB,WAAW;gBACX,UAAU;aACX;YACD,eAAe,EAAE;gBACf,UAAU;gBACV,SAAS;gBACT,UAAU;gBACV,SAAS;gBACT,UAAU;gBACV,SAAS;gBACT,OAAO;gBACP,WAAW;aACZ;YACD,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC;YACxC,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,CAAC;YAChE,WAAW,EAAE;gBACX,OAAO;gBACP,SAAS;gBACT,QAAQ;gBACR,SAAS;gBACT,WAAW;gBACX,QAAQ;gBACR,WAAW;gBACX,QAAQ;aACT;YACD,oBAAoB,EAAE;gBACpB,MAAM;gBACN,WAAW;gBACX,UAAU;gBACV,eAAe;gBACf,SAAS;gBACT,QAAQ;aACT;YACD,mBAAmB,EAAE;gBACnB,SAAS;gBACT,WAAW;gBACX,WAAW;gBACX,aAAa;gBACb,UAAU;gBACV,SAAS;gBACT,QAAQ;gBACR,YAAY;aACb;SACF;KACF;CACO,CAAA"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,14 +1,46 @@
|
|
|
1
1
|
import type { createBrowserClient } from "@supabase/ssr";
|
|
2
2
|
import type { Database } from "./database.types";
|
|
3
3
|
export * from "./database.schemas";
|
|
4
|
-
export * from "./rpc.schemas";
|
|
5
4
|
export type TypedSupabaseClient = ReturnType<typeof createBrowserClient<Database>>;
|
|
6
|
-
export type
|
|
5
|
+
export type InternalHelperFunctionName = "code_run_result_parse" | "openclaw_refresh_resolved_config" | "telegram_server_post";
|
|
6
|
+
export type RawSBFunctions = Database["public"]["Functions"];
|
|
7
|
+
export type SBFunctions = Omit<RawSBFunctions, InternalHelperFunctionName>;
|
|
8
|
+
export type InternalHelperFunctions = Pick<RawSBFunctions, InternalHelperFunctionName>;
|
|
9
|
+
export type ServerInstanceListReturns = Database["public"]["Functions"]["server_list_cursor"]["Returns"][number];
|
|
10
|
+
export type ServerInstanceGetReturns = Database["public"]["Functions"]["server_get"]["Returns"][number];
|
|
11
|
+
export type ComputeNodeListReturns = Database["public"]["Functions"]["compute_node_list"]["Returns"][number];
|
|
12
|
+
export declare const serverInstanceListItemSchema: import("zod").ZodObject<{
|
|
13
|
+
config: import("zod").ZodNullable<import("zod").ZodType<import("./database.types").Json, unknown, import("zod/v4/core").$ZodTypeInternals<import("./database.types").Json, unknown>>>;
|
|
14
|
+
created_at: import("zod").ZodString;
|
|
15
|
+
id: import("zod").ZodString;
|
|
16
|
+
state: import("zod").ZodNullable<import("zod").ZodType<import("./database.types").Json, unknown, import("zod/v4/core").$ZodTypeInternals<import("./database.types").Json, unknown>>>;
|
|
17
|
+
updated_at: import("zod").ZodString;
|
|
18
|
+
}, import("zod/v4/core").$strip>;
|
|
19
|
+
export declare const serverInstanceGetResultSchema: import("zod").ZodObject<{
|
|
20
|
+
config: import("zod").ZodNullable<import("zod").ZodType<import("./database.types").Json, unknown, import("zod/v4/core").$ZodTypeInternals<import("./database.types").Json, unknown>>>;
|
|
21
|
+
created_at: import("zod").ZodString;
|
|
22
|
+
id: import("zod").ZodString;
|
|
23
|
+
state: import("zod").ZodNullable<import("zod").ZodType<import("./database.types").Json, unknown, import("zod/v4/core").$ZodTypeInternals<import("./database.types").Json, unknown>>>;
|
|
24
|
+
updated_at: import("zod").ZodString;
|
|
25
|
+
}, import("zod/v4/core").$strip>;
|
|
26
|
+
export declare const computeNodeListItemSchema: import("zod").ZodObject<{
|
|
27
|
+
auth_secret: import("zod").ZodNullable<import("zod").ZodString>;
|
|
28
|
+
created_at: import("zod").ZodString;
|
|
29
|
+
host: import("zod").ZodString;
|
|
30
|
+
id: import("zod").ZodString;
|
|
31
|
+
is_public: import("zod").ZodNullable<import("zod").ZodBoolean>;
|
|
32
|
+
name: import("zod").ZodString;
|
|
33
|
+
port: import("zod").ZodNumber;
|
|
34
|
+
provider: import("zod").ZodString;
|
|
35
|
+
updated_at: import("zod").ZodString;
|
|
36
|
+
user_id: import("zod").ZodString;
|
|
37
|
+
username: import("zod").ZodNullable<import("zod").ZodString>;
|
|
38
|
+
}, import("zod/v4/core").$strip>;
|
|
7
39
|
export type DBChatMessage = Database["public"]["Tables"]["chat_messages"]["Row"];
|
|
8
40
|
export type ChatRow = Database["public"]["Tables"]["chats"]["Row"];
|
|
9
41
|
export type AdkEventRow = Database["public"]["Tables"]["adk_events"]["Row"];
|
|
10
42
|
export type AdkSessionRow = Database["public"]["Tables"]["adk_sessions"]["Row"];
|
|
11
|
-
export type ResourceListItem =
|
|
43
|
+
export type ResourceListItem = Database["public"]["Functions"]["resource_list"]["Returns"][number];
|
|
12
44
|
export type ComputeNode = Database["public"]["Tables"]["compute_nodes"]["Row"];
|
|
13
45
|
export type ServerInstanceRow = Database["public"]["Tables"]["servers"]["Row"];
|
|
14
46
|
export type AuditProject = Database["public"]["Tables"]["audit_projects"]["Row"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"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"}
|
package/dist/types/index.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { publicServersRowSchema, publicComputeNodesRowSchema, } from "./database.schemas";
|
|
1
2
|
export * from "./database.schemas";
|
|
2
|
-
export
|
|
3
|
+
export const serverInstanceListItemSchema = publicServersRowSchema;
|
|
4
|
+
export const serverInstanceGetResultSchema = publicServersRowSchema;
|
|
5
|
+
export const computeNodeListItemSchema = publicComputeNodesRowSchema;
|
|
3
6
|
//# sourceMappingURL=index.js.map
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,sBAAsB,EACtB,2BAA2B,GAC5B,MAAM,oBAAoB,CAAC;AAE5B,cAAc,oBAAoB,CAAC;AAgBnC,MAAM,CAAC,MAAM,4BAA4B,GAAG,sBAAsB,CAAC;AACnE,MAAM,CAAC,MAAM,6BAA6B,GAAG,sBAAsB,CAAC;AACpE,MAAM,CAAC,MAAM,yBAAyB,GAAG,2BAA2B,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"keywords": [],
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
|
-
"version": "0.0.
|
|
6
|
+
"version": "0.0.49",
|
|
7
7
|
"author": "MTM Team",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "bun run tsc",
|
|
@@ -12,12 +12,13 @@
|
|
|
12
12
|
"format": "echo 'format skipped'",
|
|
13
13
|
"check": "bun run typecheck",
|
|
14
14
|
"clean": "rm -rf dist",
|
|
15
|
-
"gen": "bun gen:openapi:gomtm && bun gen:openapi:mtmai && bun gen:openapi:mtgate && bun gen:openapi:mtmng",
|
|
15
|
+
"gen": "bun gen:openapi:gomtm && bun gen:openapi:mtmai && bun gen:openapi:mtgate && bun gen:openapi:mtmng && bun run gen:sanitize-legacy-exports",
|
|
16
16
|
"gen:openapi:gomtm": "openapi-ts --file=openapi-ts.gomtm.config.ts",
|
|
17
17
|
"gen:openapi:mtgate": "openapi-ts --file=openapi-ts.mtgate.config.ts",
|
|
18
18
|
"gen:openapi:mtmai": "openapi-ts --file=openapi-ts.mtmai.config.ts",
|
|
19
19
|
"gen:openapi:sb--": "openapi-ts --file=openapi-ts.sb.config.ts",
|
|
20
20
|
"gen:openapi:mtmng": "openapi-ts --file=openapi-ts.sbmng.config.ts",
|
|
21
|
+
"gen:sanitize-legacy-exports": "bun ./scripts/sanitize-legacy-exports.ts",
|
|
21
22
|
"prepublishOnly": "bun run clean && bun run build"
|
|
22
23
|
},
|
|
23
24
|
"type": "module",
|
|
@@ -106,4 +107,4 @@
|
|
|
106
107
|
"other":{
|
|
107
108
|
"jose": "^6.1.0"
|
|
108
109
|
}
|
|
109
|
-
}
|
|
110
|
+
}
|
|
@@ -3,37 +3,8 @@
|
|
|
3
3
|
import { queryOptions, type UseMutationOptions } from '@tanstack/react-query';
|
|
4
4
|
|
|
5
5
|
import { client } from '../client.gen';
|
|
6
|
-
import {
|
|
7
|
-
import type {
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* agent run
|
|
11
|
-
*
|
|
12
|
-
* #### Controller:
|
|
13
|
-
*
|
|
14
|
-
* `github.com/codeh007/gomtm/pkg/routes/api/agent.(*AgentService).AgentRun`
|
|
15
|
-
*
|
|
16
|
-
* #### Middlewares:
|
|
17
|
-
*
|
|
18
|
-
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
19
|
-
*
|
|
20
|
-
* ---
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
export const agentRunMutation = (options?: Partial<Options<AgentRunData>>): UseMutationOptions<AgentRunResponse, AgentRunError, Options<AgentRunData>> => {
|
|
25
|
-
const mutationOptions: UseMutationOptions<AgentRunResponse, AgentRunError, Options<AgentRunData>> = {
|
|
26
|
-
mutationFn: async (fnOptions) => {
|
|
27
|
-
const { data } = await agentRun({
|
|
28
|
-
...options,
|
|
29
|
-
...fnOptions,
|
|
30
|
-
throwOnError: true
|
|
31
|
-
});
|
|
32
|
-
return data;
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
return mutationOptions;
|
|
36
|
-
};
|
|
6
|
+
import { browserAction, browserOpen, codeRun, getApiSystemStatus, napcatGetStatus, napcatProxyOneBot11Get, napcatProxyOneBot11Post, napcatProxyWebUiget, napcatProxyWebUipost, napcatStart, type Options, postApiDbQueryQuery, postApiSystemCheckUpdate, postApiSystemPerformUpgrade, postApiV1TelegramAuthPassword, postApiV1TelegramAuthSendCode, postApiV1TelegramAuthSignIn, postApiV1TelegramAuthUserInfo, postApiV1TelegramContactAdd, postApiV1TelegramMessageSend } from '../sdk.gen';
|
|
7
|
+
import type { BrowserActionData, BrowserActionError, BrowserActionResponse, BrowserOpenData, BrowserOpenError, BrowserOpenResponse, CodeRunData, CodeRunError, CodeRunResponse, GetApiSystemStatusData, GetApiSystemStatusError, GetApiSystemStatusResponse, NapcatGetStatusData, NapcatGetStatusError, NapcatGetStatusResponse, NapcatProxyOneBot11GetData, NapcatProxyOneBot11GetError, NapcatProxyOneBot11GetResponse, NapcatProxyOneBot11PostData, NapcatProxyOneBot11PostError, NapcatProxyOneBot11PostResponse, NapcatProxyWebUigetData, NapcatProxyWebUigetError, NapcatProxyWebUigetResponse, NapcatProxyWebUipostData, NapcatProxyWebUipostError, NapcatProxyWebUipostResponse, NapcatStartData, NapcatStartError, NapcatStartResponse, PostApiDbQueryQueryData, PostApiDbQueryQueryError, PostApiDbQueryQueryResponse, PostApiSystemCheckUpdateData, PostApiSystemCheckUpdateError, PostApiSystemCheckUpdateResponse, PostApiSystemPerformUpgradeData, PostApiSystemPerformUpgradeError, PostApiSystemPerformUpgradeResponse, PostApiV1TelegramAuthPasswordData, PostApiV1TelegramAuthPasswordError, PostApiV1TelegramAuthPasswordResponse, PostApiV1TelegramAuthSendCodeData, PostApiV1TelegramAuthSendCodeError, PostApiV1TelegramAuthSendCodeResponse, PostApiV1TelegramAuthSignInData, PostApiV1TelegramAuthSignInError, PostApiV1TelegramAuthSignInResponse, PostApiV1TelegramAuthUserInfoData, PostApiV1TelegramAuthUserInfoError, PostApiV1TelegramAuthUserInfoResponse, PostApiV1TelegramContactAddData, PostApiV1TelegramContactAddError, PostApiV1TelegramContactAddResponse, PostApiV1TelegramMessageSendData, PostApiV1TelegramMessageSendError, PostApiV1TelegramMessageSendResponse } from '../types.gen';
|
|
37
8
|
|
|
38
9
|
/**
|
|
39
10
|
* handle action submit
|
|
@@ -73,82 +44,6 @@ export const browserOpenMutation = (options?: Partial<Options<BrowserOpenData>>)
|
|
|
73
44
|
return mutationOptions;
|
|
74
45
|
};
|
|
75
46
|
|
|
76
|
-
/**
|
|
77
|
-
* edit file
|
|
78
|
-
*
|
|
79
|
-
* Replace text in a file. Matches exact 'old_string'. Use 'replace_all=true' for multiple occurrences.
|
|
80
|
-
*/
|
|
81
|
-
export const coddingToolEditFileMutation = (options?: Partial<Options<CoddingToolEditFileData>>): UseMutationOptions<CoddingToolEditFileResponse, CoddingToolEditFileError, Options<CoddingToolEditFileData>> => {
|
|
82
|
-
const mutationOptions: UseMutationOptions<CoddingToolEditFileResponse, CoddingToolEditFileError, Options<CoddingToolEditFileData>> = {
|
|
83
|
-
mutationFn: async (fnOptions) => {
|
|
84
|
-
const { data } = await coddingToolEditFile({
|
|
85
|
-
...options,
|
|
86
|
-
...fnOptions,
|
|
87
|
-
throwOnError: true
|
|
88
|
-
});
|
|
89
|
-
return data;
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
return mutationOptions;
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* list dir
|
|
97
|
-
*
|
|
98
|
-
* List files and directories in a given path.
|
|
99
|
-
*/
|
|
100
|
-
export const coddingToolListDirMutation = (options?: Partial<Options<CoddingToolListDirData>>): UseMutationOptions<CoddingToolListDirResponse, CoddingToolListDirError, Options<CoddingToolListDirData>> => {
|
|
101
|
-
const mutationOptions: UseMutationOptions<CoddingToolListDirResponse, CoddingToolListDirError, Options<CoddingToolListDirData>> = {
|
|
102
|
-
mutationFn: async (fnOptions) => {
|
|
103
|
-
const { data } = await coddingToolListDir({
|
|
104
|
-
...options,
|
|
105
|
-
...fnOptions,
|
|
106
|
-
throwOnError: true
|
|
107
|
-
});
|
|
108
|
-
return data;
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
return mutationOptions;
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* read files
|
|
116
|
-
*
|
|
117
|
-
* Read content of multiple files. Supports simple glob patterns.
|
|
118
|
-
*/
|
|
119
|
-
export const coddingToolReadFilesMutation = (options?: Partial<Options<CoddingToolReadFilesData>>): UseMutationOptions<CoddingToolReadFilesResponse, CoddingToolReadFilesError, Options<CoddingToolReadFilesData>> => {
|
|
120
|
-
const mutationOptions: UseMutationOptions<CoddingToolReadFilesResponse, CoddingToolReadFilesError, Options<CoddingToolReadFilesData>> = {
|
|
121
|
-
mutationFn: async (fnOptions) => {
|
|
122
|
-
const { data } = await coddingToolReadFiles({
|
|
123
|
-
...options,
|
|
124
|
-
...fnOptions,
|
|
125
|
-
throwOnError: true
|
|
126
|
-
});
|
|
127
|
-
return data;
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
return mutationOptions;
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* search files
|
|
135
|
-
*
|
|
136
|
-
* Search for a pattern in files using grep.
|
|
137
|
-
*/
|
|
138
|
-
export const coddingToolSearchFilesMutation = (options?: Partial<Options<CoddingToolSearchFilesData>>): UseMutationOptions<CoddingToolSearchFilesResponse, CoddingToolSearchFilesError, Options<CoddingToolSearchFilesData>> => {
|
|
139
|
-
const mutationOptions: UseMutationOptions<CoddingToolSearchFilesResponse, CoddingToolSearchFilesError, Options<CoddingToolSearchFilesData>> = {
|
|
140
|
-
mutationFn: async (fnOptions) => {
|
|
141
|
-
const { data } = await coddingToolSearchFiles({
|
|
142
|
-
...options,
|
|
143
|
-
...fnOptions,
|
|
144
|
-
throwOnError: true
|
|
145
|
-
});
|
|
146
|
-
return data;
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
return mutationOptions;
|
|
150
|
-
};
|
|
151
|
-
|
|
152
47
|
/**
|
|
153
48
|
* run code
|
|
154
49
|
*
|
|
@@ -207,25 +102,6 @@ export const postApiDbQueryQueryMutation = (options?: Partial<Options<PostApiDbQ
|
|
|
207
102
|
return mutationOptions;
|
|
208
103
|
};
|
|
209
104
|
|
|
210
|
-
/**
|
|
211
|
-
* request action
|
|
212
|
-
*
|
|
213
|
-
* Request specific manual actions from the user when automated attempts fail.
|
|
214
|
-
*/
|
|
215
|
-
export const humanRequestActionMutation = (options?: Partial<Options<HumanRequestActionData>>): UseMutationOptions<HumanRequestActionResponse, HumanRequestActionError, Options<HumanRequestActionData>> => {
|
|
216
|
-
const mutationOptions: UseMutationOptions<HumanRequestActionResponse, HumanRequestActionError, Options<HumanRequestActionData>> = {
|
|
217
|
-
mutationFn: async (fnOptions) => {
|
|
218
|
-
const { data } = await humanRequestAction({
|
|
219
|
-
...options,
|
|
220
|
-
...fnOptions,
|
|
221
|
-
throwOnError: true
|
|
222
|
-
});
|
|
223
|
-
return data;
|
|
224
|
-
}
|
|
225
|
-
};
|
|
226
|
-
return mutationOptions;
|
|
227
|
-
};
|
|
228
|
-
|
|
229
105
|
/**
|
|
230
106
|
* Start napcat service
|
|
231
107
|
*
|
|
@@ -450,7 +326,7 @@ export const getApiSystemStatusQueryKey = (options?: Options<GetApiSystemStatusD
|
|
|
450
326
|
*
|
|
451
327
|
* ---
|
|
452
328
|
*
|
|
453
|
-
* 返回完整的实例运行状态 (v6: 合并 info + health)。数据库通过
|
|
329
|
+
* 返回完整的实例运行状态 (v6: 合并 info + health)。数据库通过 HTTP 探测读取该端点,并据此调和 servers.state。
|
|
454
330
|
*/
|
|
455
331
|
export const getApiSystemStatusOptions = (options?: Options<GetApiSystemStatusData>) => queryOptions<GetApiSystemStatusResponse, GetApiSystemStatusError, GetApiSystemStatusResponse, ReturnType<typeof getApiSystemStatusQueryKey>>({
|
|
456
332
|
queryFn: async ({ queryKey, signal }) => {
|
|
@@ -465,64 +341,6 @@ export const getApiSystemStatusOptions = (options?: Options<GetApiSystemStatusDa
|
|
|
465
341
|
queryKey: getApiSystemStatusQueryKey(options)
|
|
466
342
|
});
|
|
467
343
|
|
|
468
|
-
/**
|
|
469
|
-
* handle chat completion
|
|
470
|
-
*
|
|
471
|
-
* #### Controller:
|
|
472
|
-
*
|
|
473
|
-
* `github.com/codeh007/gomtm/pkg/routes/api/gemini.(*Service).handleChatCompletion`
|
|
474
|
-
*
|
|
475
|
-
* #### Middlewares:
|
|
476
|
-
*
|
|
477
|
-
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
478
|
-
*
|
|
479
|
-
* ---
|
|
480
|
-
*
|
|
481
|
-
*
|
|
482
|
-
*/
|
|
483
|
-
export const postApiV1GeminiChatCompletionsMutation = (options?: Partial<Options<PostApiV1GeminiChatCompletionsData>>): UseMutationOptions<PostApiV1GeminiChatCompletionsResponse, PostApiV1GeminiChatCompletionsError, Options<PostApiV1GeminiChatCompletionsData>> => {
|
|
484
|
-
const mutationOptions: UseMutationOptions<PostApiV1GeminiChatCompletionsResponse, PostApiV1GeminiChatCompletionsError, Options<PostApiV1GeminiChatCompletionsData>> = {
|
|
485
|
-
mutationFn: async (fnOptions) => {
|
|
486
|
-
const { data } = await postApiV1GeminiChatCompletions({
|
|
487
|
-
...options,
|
|
488
|
-
...fnOptions,
|
|
489
|
-
throwOnError: true
|
|
490
|
-
});
|
|
491
|
-
return data;
|
|
492
|
-
}
|
|
493
|
-
};
|
|
494
|
-
return mutationOptions;
|
|
495
|
-
};
|
|
496
|
-
|
|
497
|
-
/**
|
|
498
|
-
* 执行任务
|
|
499
|
-
*
|
|
500
|
-
* #### Controller:
|
|
501
|
-
*
|
|
502
|
-
* `github.com/codeh007/gomtm/pkg/routes/api/task_executor.(*Service).Execute`
|
|
503
|
-
*
|
|
504
|
-
* #### Middlewares:
|
|
505
|
-
*
|
|
506
|
-
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
507
|
-
*
|
|
508
|
-
* ---
|
|
509
|
-
*
|
|
510
|
-
* 接收来自数据库调度的任务并执行。支持 bash/python/agent 类型。
|
|
511
|
-
*/
|
|
512
|
-
export const postApiV1TaskExecuteMutation = (options?: Partial<Options<PostApiV1TaskExecuteData>>): UseMutationOptions<PostApiV1TaskExecuteResponse, PostApiV1TaskExecuteError, Options<PostApiV1TaskExecuteData>> => {
|
|
513
|
-
const mutationOptions: UseMutationOptions<PostApiV1TaskExecuteResponse, PostApiV1TaskExecuteError, Options<PostApiV1TaskExecuteData>> = {
|
|
514
|
-
mutationFn: async (fnOptions) => {
|
|
515
|
-
const { data } = await postApiV1TaskExecute({
|
|
516
|
-
...options,
|
|
517
|
-
...fnOptions,
|
|
518
|
-
throwOnError: true
|
|
519
|
-
});
|
|
520
|
-
return data;
|
|
521
|
-
}
|
|
522
|
-
};
|
|
523
|
-
return mutationOptions;
|
|
524
|
-
};
|
|
525
|
-
|
|
526
344
|
/**
|
|
527
345
|
* password
|
|
528
346
|
*
|
package/src/gomtmapi/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
|
-
export {
|
|
4
|
-
export type { AddContactRequest, AddContactResponse,
|
|
3
|
+
export { browserAction, browserOpen, codeRun, getApiSystemStatus, napcatGetStatus, napcatProxyOneBot11Get, napcatProxyOneBot11Post, napcatProxyWebUiget, napcatProxyWebUipost, napcatStart, type Options, postApiDbQueryQuery, postApiSystemCheckUpdate, postApiSystemPerformUpgrade, postApiV1TelegramAuthPassword, postApiV1TelegramAuthSendCode, postApiV1TelegramAuthSignIn, postApiV1TelegramAuthUserInfo, postApiV1TelegramContactAdd, postApiV1TelegramMessageSend } from './sdk.gen';
|
|
4
|
+
export type { AddContactRequest, AddContactResponse, AuthResponse, BrowserActionData, BrowserActionError, BrowserActionErrors, BrowserActionReq, BrowserActionResponse, BrowserActionResponses, BrowserOpenData, BrowserOpenError, BrowserOpenErrors, BrowserOpenReq, BrowserOpenResp, BrowserOpenResponse, BrowserOpenResponses, CheckUpdateResponse, ClientOptions, CodeRunData, CodeRunError, CodeRunErrors, CodeRunResponse, CodeRunResponses, CodeRunResult, GetApiSystemStatusData, GetApiSystemStatusError, GetApiSystemStatusErrors, GetApiSystemStatusResponse, GetApiSystemStatusResponses, HttpError, NapcatGetStatusData, NapcatGetStatusError, NapcatGetStatusErrors, NapcatGetStatusResponse, NapcatGetStatusResponses, NapcatProxyOneBot11GetData, NapcatProxyOneBot11GetError, NapcatProxyOneBot11GetErrors, NapcatProxyOneBot11GetResponse, NapcatProxyOneBot11GetResponses, NapcatProxyOneBot11PostData, NapcatProxyOneBot11PostError, NapcatProxyOneBot11PostErrors, NapcatProxyOneBot11PostResponse, NapcatProxyOneBot11PostResponses, NapcatProxyWebUigetData, NapcatProxyWebUigetError, NapcatProxyWebUigetErrors, NapcatProxyWebUigetResponse, NapcatProxyWebUigetResponses, NapcatProxyWebUipostData, NapcatProxyWebUipostError, NapcatProxyWebUipostErrors, NapcatProxyWebUipostResponse, NapcatProxyWebUipostResponses, NapcatStartData, NapcatStartError, NapcatStartErrors, NapcatStartResponse, NapcatStartResponses, NapcatStatus, PasswordRequest, PerformUpgradeRequest, PerformUpgradeResponse, PostApiDbQueryQueryData, PostApiDbQueryQueryError, PostApiDbQueryQueryErrors, PostApiDbQueryQueryResponse, PostApiDbQueryQueryResponses, PostApiSystemCheckUpdateData, PostApiSystemCheckUpdateError, PostApiSystemCheckUpdateErrors, PostApiSystemCheckUpdateResponse, PostApiSystemCheckUpdateResponses, PostApiSystemPerformUpgradeData, PostApiSystemPerformUpgradeError, PostApiSystemPerformUpgradeErrors, PostApiSystemPerformUpgradeResponse, PostApiSystemPerformUpgradeResponses, PostApiV1TelegramAuthPasswordData, PostApiV1TelegramAuthPasswordError, PostApiV1TelegramAuthPasswordErrors, PostApiV1TelegramAuthPasswordResponse, PostApiV1TelegramAuthPasswordResponses, PostApiV1TelegramAuthSendCodeData, PostApiV1TelegramAuthSendCodeError, PostApiV1TelegramAuthSendCodeErrors, PostApiV1TelegramAuthSendCodeResponse, PostApiV1TelegramAuthSendCodeResponses, PostApiV1TelegramAuthSignInData, PostApiV1TelegramAuthSignInError, PostApiV1TelegramAuthSignInErrors, PostApiV1TelegramAuthSignInResponse, PostApiV1TelegramAuthSignInResponses, PostApiV1TelegramAuthUserInfoData, PostApiV1TelegramAuthUserInfoError, PostApiV1TelegramAuthUserInfoErrors, PostApiV1TelegramAuthUserInfoResponse, PostApiV1TelegramAuthUserInfoResponses, PostApiV1TelegramContactAddData, PostApiV1TelegramContactAddError, PostApiV1TelegramContactAddErrors, PostApiV1TelegramContactAddResponse, PostApiV1TelegramContactAddResponses, PostApiV1TelegramMessageSendData, PostApiV1TelegramMessageSendError, PostApiV1TelegramMessageSendErrors, PostApiV1TelegramMessageSendResponse, PostApiV1TelegramMessageSendResponses, RunCodeReq, SendCodeRequest, SendMessageRequest, SendMessageResponse, SignInRequest, StartNapcatRequest, StatusResponse, String, UnknownInterface, UserInfoRequest } from './types.gen';
|