mtmsdk 0.0.36 → 0.0.38

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 (243) hide show
  1. package/dist/api_hatchet/client/client.gen.d.ts.map +1 -1
  2. package/dist/api_hatchet/client/client.gen.js +8 -1
  3. package/dist/api_hatchet/client/client.gen.js.map +1 -1
  4. package/dist/api_hatchet/index.d.ts +2 -2
  5. package/dist/api_hatchet/index.d.ts.map +1 -1
  6. package/dist/api_hatchet/index.js +2 -2
  7. package/dist/api_hatchet/index.js.map +1 -1
  8. package/dist/api_hatchet/zod.gen.d.ts +3 -3
  9. package/dist/api_hatchet/zod.gen.js +53 -53
  10. package/dist/api_hatchet/zod.gen.js.map +1 -1
  11. package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts +73 -979
  12. package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts.map +1 -1
  13. package/dist/gomtmapi_v2/@tanstack/react-query.gen.js +208 -1000
  14. package/dist/gomtmapi_v2/@tanstack/react-query.gen.js.map +1 -1
  15. package/dist/gomtmapi_v2/client/client.gen.d.ts.map +1 -1
  16. package/dist/gomtmapi_v2/client/client.gen.js +8 -1
  17. package/dist/gomtmapi_v2/client/client.gen.js.map +1 -1
  18. package/dist/gomtmapi_v2/index.d.ts +2 -2
  19. package/dist/gomtmapi_v2/index.d.ts.map +1 -1
  20. package/dist/gomtmapi_v2/index.js +1 -1
  21. package/dist/gomtmapi_v2/index.js.map +1 -1
  22. package/dist/gomtmapi_v2/schemas.gen.d.ts +305 -1415
  23. package/dist/gomtmapi_v2/schemas.gen.d.ts.map +1 -1
  24. package/dist/gomtmapi_v2/schemas.gen.js +282 -1407
  25. package/dist/gomtmapi_v2/schemas.gen.js.map +1 -1
  26. package/dist/gomtmapi_v2/sdk.gen.d.ts +63 -513
  27. package/dist/gomtmapi_v2/sdk.gen.d.ts.map +1 -1
  28. package/dist/gomtmapi_v2/sdk.gen.js +94 -537
  29. package/dist/gomtmapi_v2/sdk.gen.js.map +1 -1
  30. package/dist/gomtmapi_v2/types.gen.d.ts +443 -1531
  31. package/dist/gomtmapi_v2/types.gen.d.ts.map +1 -1
  32. package/dist/gomtmapi_v2/zod.gen.d.ts +293 -1292
  33. package/dist/gomtmapi_v2/zod.gen.d.ts.map +1 -1
  34. package/dist/gomtmapi_v2/zod.gen.js +187 -793
  35. package/dist/gomtmapi_v2/zod.gen.js.map +1 -1
  36. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +4 -158
  37. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -1
  38. package/dist/mtgate_api/@tanstack/react-query.gen.js +17 -212
  39. package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -1
  40. package/dist/mtgate_api/client/client.gen.d.ts.map +1 -1
  41. package/dist/mtgate_api/client/client.gen.js +8 -1
  42. package/dist/mtgate_api/client/client.gen.js.map +1 -1
  43. package/dist/mtgate_api/index.d.ts +2 -2
  44. package/dist/mtgate_api/index.d.ts.map +1 -1
  45. package/dist/mtgate_api/index.js +1 -1
  46. package/dist/mtgate_api/index.js.map +1 -1
  47. package/dist/mtgate_api/schemas.gen.d.ts +0 -396
  48. package/dist/mtgate_api/schemas.gen.d.ts.map +1 -1
  49. package/dist/mtgate_api/schemas.gen.js +0 -439
  50. package/dist/mtgate_api/schemas.gen.js.map +1 -1
  51. package/dist/mtgate_api/sdk.gen.d.ts +1 -26
  52. package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
  53. package/dist/mtgate_api/sdk.gen.js +0 -67
  54. package/dist/mtgate_api/sdk.gen.js.map +1 -1
  55. package/dist/mtgate_api/types.gen.d.ts +0 -310
  56. package/dist/mtgate_api/types.gen.d.ts.map +1 -1
  57. package/dist/mtgate_api/zod.gen.d.ts +0 -771
  58. package/dist/mtgate_api/zod.gen.d.ts.map +1 -1
  59. package/dist/mtgate_api/zod.gen.js +0 -249
  60. package/dist/mtgate_api/zod.gen.js.map +1 -1
  61. package/dist/mtmai_api/client/client.gen.d.ts.map +1 -1
  62. package/dist/mtmai_api/client/client.gen.js +8 -1
  63. package/dist/mtmai_api/client/client.gen.js.map +1 -1
  64. package/dist/mtmai_api/index.d.ts +2 -2
  65. package/dist/mtmai_api/index.d.ts.map +1 -1
  66. package/dist/mtmai_api/index.js +2 -2
  67. package/dist/mtmai_api/index.js.map +1 -1
  68. package/dist/opencode/@tanstack/react-query.gen.d.ts +1903 -0
  69. package/dist/opencode/@tanstack/react-query.gen.d.ts.map +1 -0
  70. package/dist/opencode/@tanstack/react-query.gen.js +1696 -0
  71. package/dist/opencode/@tanstack/react-query.gen.js.map +1 -0
  72. package/dist/opencode/client/client.gen.d.ts +3 -0
  73. package/dist/opencode/client/client.gen.d.ts.map +1 -0
  74. package/dist/opencode/client/client.gen.js +236 -0
  75. package/dist/opencode/client/client.gen.js.map +1 -0
  76. package/dist/opencode/client/index.d.ts +9 -0
  77. package/dist/opencode/client/index.d.ts.map +1 -0
  78. package/dist/opencode/client/index.js +7 -0
  79. package/dist/opencode/client/index.js.map +1 -0
  80. package/dist/opencode/client/types.gen.d.ts +118 -0
  81. package/dist/opencode/client/types.gen.d.ts.map +1 -0
  82. package/dist/opencode/client/types.gen.js +3 -0
  83. package/dist/opencode/client/types.gen.js.map +1 -0
  84. package/dist/opencode/client/utils.gen.d.ts +34 -0
  85. package/dist/opencode/client/utils.gen.d.ts.map +1 -0
  86. package/dist/opencode/client/utils.gen.js +232 -0
  87. package/dist/opencode/client/utils.gen.js.map +1 -0
  88. package/dist/opencode/client.gen.d.ts +13 -0
  89. package/dist/opencode/client.gen.d.ts.map +1 -0
  90. package/dist/opencode/client.gen.js +4 -0
  91. package/dist/opencode/client.gen.js.map +1 -0
  92. package/dist/opencode/core/auth.gen.d.ts +19 -0
  93. package/dist/opencode/core/auth.gen.d.ts.map +1 -0
  94. package/dist/opencode/core/auth.gen.js +15 -0
  95. package/dist/opencode/core/auth.gen.js.map +1 -0
  96. package/dist/opencode/core/bodySerializer.gen.d.ts +26 -0
  97. package/dist/opencode/core/bodySerializer.gen.d.ts.map +1 -0
  98. package/dist/opencode/core/bodySerializer.gen.js +58 -0
  99. package/dist/opencode/core/bodySerializer.gen.js.map +1 -0
  100. package/dist/opencode/core/params.gen.d.ts +44 -0
  101. package/dist/opencode/core/params.gen.d.ts.map +1 -0
  102. package/dist/opencode/core/params.gen.js +101 -0
  103. package/dist/opencode/core/params.gen.js.map +1 -0
  104. package/dist/opencode/core/pathSerializer.gen.d.ts +34 -0
  105. package/dist/opencode/core/pathSerializer.gen.d.ts.map +1 -0
  106. package/dist/opencode/core/pathSerializer.gen.js +115 -0
  107. package/dist/opencode/core/pathSerializer.gen.js.map +1 -0
  108. package/dist/opencode/core/queryKeySerializer.gen.d.ts +19 -0
  109. package/dist/opencode/core/queryKeySerializer.gen.d.ts.map +1 -0
  110. package/dist/opencode/core/queryKeySerializer.gen.js +100 -0
  111. package/dist/opencode/core/queryKeySerializer.gen.js.map +1 -0
  112. package/dist/opencode/core/serverSentEvents.gen.d.ts +72 -0
  113. package/dist/opencode/core/serverSentEvents.gen.d.ts.map +1 -0
  114. package/dist/opencode/core/serverSentEvents.gen.js +138 -0
  115. package/dist/opencode/core/serverSentEvents.gen.js.map +1 -0
  116. package/dist/opencode/core/types.gen.d.ts +79 -0
  117. package/dist/opencode/core/types.gen.d.ts.map +1 -0
  118. package/dist/opencode/core/types.gen.js +3 -0
  119. package/dist/opencode/core/types.gen.js.map +1 -0
  120. package/dist/opencode/core/utils.gen.d.ts +20 -0
  121. package/dist/opencode/core/utils.gen.d.ts.map +1 -0
  122. package/dist/opencode/core/utils.gen.js +88 -0
  123. package/dist/opencode/core/utils.gen.js.map +1 -0
  124. package/dist/opencode/index.d.ts +3 -0
  125. package/dist/opencode/index.d.ts.map +1 -0
  126. package/dist/opencode/index.js +4 -0
  127. package/dist/opencode/index.js.map +1 -0
  128. package/dist/opencode/schemas.gen.d.ts +4823 -0
  129. package/dist/opencode/schemas.gen.d.ts.map +1 -0
  130. package/dist/opencode/schemas.gen.js +5816 -0
  131. package/dist/opencode/schemas.gen.js.map +1 -0
  132. package/dist/opencode/sdk.gen.d.ts +562 -0
  133. package/dist/opencode/sdk.gen.d.ts.map +1 -0
  134. package/dist/opencode/sdk.gen.js +766 -0
  135. package/dist/opencode/sdk.gen.js.map +1 -0
  136. package/dist/opencode/types.gen.d.ts +4213 -0
  137. package/dist/opencode/types.gen.d.ts.map +1 -0
  138. package/dist/opencode/types.gen.js +25 -0
  139. package/dist/opencode/types.gen.js.map +1 -0
  140. package/dist/opencode/zod.gen.d.ts +17243 -0
  141. package/dist/opencode/zod.gen.d.ts.map +1 -0
  142. package/dist/opencode/zod.gen.js +2876 -0
  143. package/dist/opencode/zod.gen.js.map +1 -0
  144. package/dist/sbapi/client/client.gen.d.ts.map +1 -1
  145. package/dist/sbapi/client/client.gen.js +8 -1
  146. package/dist/sbapi/client/client.gen.js.map +1 -1
  147. package/dist/sbapi/index.d.ts +2 -2
  148. package/dist/sbapi/index.d.ts.map +1 -1
  149. package/dist/sbapi/index.js +1 -1
  150. package/dist/sbapi/index.js.map +1 -1
  151. package/dist/sbmng/@tanstack/react-query.gen.d.ts +2418 -0
  152. package/dist/sbmng/@tanstack/react-query.gen.d.ts.map +1 -0
  153. package/dist/sbmng/@tanstack/react-query.gen.js +2657 -0
  154. package/dist/sbmng/@tanstack/react-query.gen.js.map +1 -0
  155. package/dist/sbmng/client/client.gen.d.ts +3 -0
  156. package/dist/sbmng/client/client.gen.d.ts.map +1 -0
  157. package/dist/sbmng/client/client.gen.js +236 -0
  158. package/dist/sbmng/client/client.gen.js.map +1 -0
  159. package/dist/sbmng/client/index.d.ts +9 -0
  160. package/dist/sbmng/client/index.d.ts.map +1 -0
  161. package/dist/sbmng/client/index.js +7 -0
  162. package/dist/sbmng/client/index.js.map +1 -0
  163. package/dist/sbmng/client/types.gen.d.ts +118 -0
  164. package/dist/sbmng/client/types.gen.d.ts.map +1 -0
  165. package/dist/sbmng/client/types.gen.js +3 -0
  166. package/dist/sbmng/client/types.gen.js.map +1 -0
  167. package/dist/sbmng/client/utils.gen.d.ts +34 -0
  168. package/dist/sbmng/client/utils.gen.d.ts.map +1 -0
  169. package/dist/sbmng/client/utils.gen.js +232 -0
  170. package/dist/sbmng/client/utils.gen.js.map +1 -0
  171. package/dist/sbmng/client.gen.d.ts +13 -0
  172. package/dist/sbmng/client.gen.d.ts.map +1 -0
  173. package/dist/sbmng/client.gen.js +4 -0
  174. package/dist/sbmng/client.gen.js.map +1 -0
  175. package/dist/sbmng/core/auth.gen.d.ts +19 -0
  176. package/dist/sbmng/core/auth.gen.d.ts.map +1 -0
  177. package/dist/sbmng/core/auth.gen.js +15 -0
  178. package/dist/sbmng/core/auth.gen.js.map +1 -0
  179. package/dist/sbmng/core/bodySerializer.gen.d.ts +26 -0
  180. package/dist/sbmng/core/bodySerializer.gen.d.ts.map +1 -0
  181. package/dist/sbmng/core/bodySerializer.gen.js +58 -0
  182. package/dist/sbmng/core/bodySerializer.gen.js.map +1 -0
  183. package/dist/sbmng/core/params.gen.d.ts +44 -0
  184. package/dist/sbmng/core/params.gen.d.ts.map +1 -0
  185. package/dist/sbmng/core/params.gen.js +101 -0
  186. package/dist/sbmng/core/params.gen.js.map +1 -0
  187. package/dist/sbmng/core/pathSerializer.gen.d.ts +34 -0
  188. package/dist/sbmng/core/pathSerializer.gen.d.ts.map +1 -0
  189. package/dist/sbmng/core/pathSerializer.gen.js +115 -0
  190. package/dist/sbmng/core/pathSerializer.gen.js.map +1 -0
  191. package/dist/sbmng/core/queryKeySerializer.gen.d.ts +19 -0
  192. package/dist/sbmng/core/queryKeySerializer.gen.d.ts.map +1 -0
  193. package/dist/sbmng/core/queryKeySerializer.gen.js +100 -0
  194. package/dist/sbmng/core/queryKeySerializer.gen.js.map +1 -0
  195. package/dist/sbmng/core/serverSentEvents.gen.d.ts +72 -0
  196. package/dist/sbmng/core/serverSentEvents.gen.d.ts.map +1 -0
  197. package/dist/sbmng/core/serverSentEvents.gen.js +138 -0
  198. package/dist/sbmng/core/serverSentEvents.gen.js.map +1 -0
  199. package/dist/sbmng/core/types.gen.d.ts +79 -0
  200. package/dist/sbmng/core/types.gen.d.ts.map +1 -0
  201. package/dist/sbmng/core/types.gen.js +3 -0
  202. package/dist/sbmng/core/types.gen.js.map +1 -0
  203. package/dist/sbmng/core/utils.gen.d.ts +20 -0
  204. package/dist/sbmng/core/utils.gen.d.ts.map +1 -0
  205. package/dist/sbmng/core/utils.gen.js +88 -0
  206. package/dist/sbmng/core/utils.gen.js.map +1 -0
  207. package/dist/sbmng/index.d.ts +3 -0
  208. package/dist/sbmng/index.d.ts.map +1 -0
  209. package/dist/sbmng/index.js +3 -0
  210. package/dist/sbmng/index.js.map +1 -0
  211. package/dist/sbmng/schemas.gen.d.ts +7220 -0
  212. package/dist/sbmng/schemas.gen.d.ts.map +1 -0
  213. package/dist/sbmng/schemas.gen.js +9392 -0
  214. package/dist/sbmng/schemas.gen.js.map +1 -0
  215. package/dist/sbmng/sdk.gen.d.ts +743 -0
  216. package/dist/sbmng/sdk.gen.d.ts.map +1 -0
  217. package/dist/sbmng/sdk.gen.js +1543 -0
  218. package/dist/sbmng/sdk.gen.js.map +1 -0
  219. package/dist/sbmng/types.gen.d.ts +7003 -0
  220. package/dist/sbmng/types.gen.d.ts.map +1 -0
  221. package/dist/sbmng/types.gen.js +3 -0
  222. package/dist/sbmng/types.gen.js.map +1 -0
  223. package/dist/supabase/context.d.ts +14 -0
  224. package/dist/supabase/context.d.ts.map +1 -0
  225. package/dist/supabase/context.js +33 -0
  226. package/dist/supabase/context.js.map +1 -0
  227. package/dist/supabase/supabase-client.d.ts +1625 -304
  228. package/dist/supabase/supabase-client.d.ts.map +1 -1
  229. package/dist/supabase/supabase.d.ts +3551 -909
  230. package/dist/supabase/supabase.d.ts.map +1 -1
  231. package/dist/supabase/supabase.js +1 -34
  232. package/dist/supabase/supabase.js.map +1 -1
  233. package/dist/types/database.types.d.ts +1656 -314
  234. package/dist/types/database.types.d.ts.map +1 -1
  235. package/dist/types/database.types.js +3 -1
  236. package/dist/types/database.types.js.map +1 -1
  237. package/dist/types/index.d.ts +30 -1
  238. package/dist/types/index.d.ts.map +1 -1
  239. package/package.json +45 -42
  240. package/dist/supabase/supabase-browser.d.ts +0 -4
  241. package/dist/supabase/supabase-browser.d.ts.map +0 -1
  242. package/dist/supabase/supabase-browser.js +0 -20
  243. package/dist/supabase/supabase-browser.js.map +0 -1
@@ -2,112 +2,93 @@ export type ClientOptions = {
2
2
  baseUrl: `${string}://${string}` | (string & {});
3
3
  };
4
4
  /**
5
- * BrowserConfig schema
5
+ * AddComputeNodeReq schema
6
6
  */
7
- export type BrowserConfig = {
8
- createdAt?: string;
9
- id?: string;
7
+ export type AddComputeNodeReq = {
8
+ /**
9
+ * Private key or password
10
+ */
11
+ auth_secret?: string;
12
+ /**
13
+ * Auth type: 'key' or 'password'
14
+ */
15
+ auth_type?: string;
16
+ /**
17
+ * IP address
18
+ */
19
+ ip?: string;
20
+ /**
21
+ * Max parallel instances/sandboxes
22
+ */
23
+ max_instances?: number;
24
+ /**
25
+ * Name of the compute node
26
+ */
10
27
  name?: string;
11
- settings?: {
12
- [key: string]: unknown;
13
- };
14
- type?: string;
15
- updatedAt?: string;
28
+ /**
29
+ * SSH port
30
+ */
31
+ port?: number;
32
+ /**
33
+ * Provider type (ssh)
34
+ */
35
+ provider?: string;
36
+ /**
37
+ * SSH username
38
+ */
39
+ username?: string;
16
40
  };
17
41
  /**
18
- * BrowserConfigCreate schema
42
+ * AgentRunReq schema
19
43
  */
20
- export type BrowserConfigCreate = {
21
- name?: string;
22
- settings?: {
44
+ export type AgentRunReq = {
45
+ payload?: {
23
46
  [key: string]: unknown;
24
47
  };
25
- type?: string;
48
+ target_worker_id?: string;
49
+ type: string;
26
50
  };
27
51
  /**
28
- * ChatbotListResponse schema
52
+ * AgentRunResp schema
29
53
  */
30
- export type ChatbotListResponse = {
31
- data?: Array<{
32
- config?: {
33
- [key: string]: unknown;
34
- };
35
- createdAt?: string;
36
- createdBy?: string;
37
- description?: string;
38
- id?: string;
39
- lastActiveAt?: string;
40
- name?: string;
41
- platform?: string;
42
- serverType?: string;
43
- serverUrl?: string;
44
- state?: {
45
- humanInteractMsg?: string;
46
- isHumanInteract?: boolean;
47
- isLogined?: boolean;
48
- isRunning?: boolean;
49
- lastStatusUpdate?: number;
50
- lastestReceiveMsg?: string;
51
- lastestSendMsg?: string;
52
- status?: string;
53
- statusMessage?: string;
54
- };
55
- status?: string;
56
- tags?: Array<string>;
57
- tenantId?: string;
58
- updatedAt?: string;
59
- }>;
60
- limit?: number;
61
- page?: number;
62
- total?: number;
54
+ export type AgentRunResp = {
55
+ data?: unknown;
56
+ error?: string;
57
+ status?: string;
63
58
  };
64
59
  /**
65
- * ChatbotResponse schema
60
+ * BrowserActionReq schema
66
61
  */
67
- export type ChatbotResponse = {
68
- config?: {
69
- [key: string]: unknown;
70
- };
71
- createdAt?: string;
72
- createdBy?: string;
73
- description?: string;
74
- id?: string;
75
- lastActiveAt?: string;
76
- name?: string;
77
- platform?: string;
78
- serverType?: string;
79
- serverUrl?: string;
80
- state?: {
81
- humanInteractMsg?: string;
82
- isHumanInteract?: boolean;
83
- isLogined?: boolean;
84
- isRunning?: boolean;
85
- lastStatusUpdate?: number;
86
- lastestReceiveMsg?: string;
87
- lastestSendMsg?: string;
88
- status?: string;
89
- statusMessage?: string;
90
- };
91
- status?: string;
92
- tags?: Array<string>;
93
- tenantId?: string;
94
- updatedAt?: string;
62
+ export type BrowserActionReq = {
63
+ /**
64
+ * navigate, click, input, wait
65
+ */
66
+ action: string;
67
+ browser_id: string;
68
+ selector?: string;
69
+ text?: string;
70
+ url?: string;
95
71
  };
96
72
  /**
97
- * ChatbotUpsertRequest schema
73
+ * BrowserOpenReq schema
98
74
  */
99
- export type ChatbotUpsertRequest = {
100
- config?: {
101
- [key: string]: unknown;
75
+ export type BrowserOpenReq = {
76
+ /**
77
+ * Optional browser ID. If empty, a new one is created.
78
+ */
79
+ browser_id?: string;
80
+ };
81
+ /**
82
+ * BrowserOpenResp schema
83
+ */
84
+ export type BrowserOpenResp = {
85
+ browser_id?: string;
86
+ client_action?: {
87
+ [key: string]: string;
102
88
  };
103
- description?: string;
104
- id?: string;
105
- name: string;
106
- platform: string;
107
- serverType?: string;
108
- serverUrl?: string;
109
- status: string;
110
- tags?: Array<string>;
89
+ message?: string;
90
+ status?: string;
91
+ task_id?: string;
111
92
  };
112
93
  /**
113
94
  * CodeRunResult schema
@@ -135,119 +116,61 @@ export type CodeRunResult = {
135
116
  status?: string;
136
117
  };
137
118
  /**
138
- * CreatePAccountRequest schema
119
+ * EditFileRequest schema
139
120
  */
140
- export type CreatePAccountRequest = {
141
- config?: {
142
- [key: string]: unknown;
143
- };
144
- /**
145
- * string schema
146
- */
147
- description?: string;
148
- enabled?: boolean;
149
- /**
150
- * string schema
151
- */
152
- icon?: string;
121
+ export type EditFileRequest = {
153
122
  /**
154
- * string schema
123
+ * Absolute path to the file
155
124
  */
156
- name?: string;
157
- platformId: string;
158
- tags?: Array<string>;
159
- };
160
- /**
161
- * CreatePlatformRequest schema
162
- */
163
- export type CreatePlatformRequest = {
125
+ file_path: string;
164
126
  /**
165
- * string schema
127
+ * The new string to replace with.
166
128
  */
167
- description?: string;
129
+ new_string?: string;
168
130
  /**
169
- * string schema
131
+ * The exact string to replace. If empty, creates a new file.
170
132
  */
171
- loginUrl?: string;
172
- name: string;
173
- tags?: Array<string>;
133
+ old_string?: string;
174
134
  /**
175
- * string schema
135
+ * If true, replace all occurrences. If false, fails if multiple matches found.
176
136
  */
177
- url?: string;
137
+ replace_all?: boolean;
178
138
  };
179
139
  /**
180
- * CreateSessionRequest schema
140
+ * EditFileResponse schema
181
141
  */
182
- export type CreateSessionRequest = {
183
- config?: {
184
- [key: string]: unknown;
185
- };
186
- type?: string;
142
+ export type EditFileResponse = {
143
+ diff?: string;
144
+ message?: string;
145
+ success?: boolean;
187
146
  };
188
147
  /**
189
- * ExportPAccountsResponse schema
148
+ * EnsureSandboxReq schema
190
149
  */
191
- export type ExportPAccountsResponse = {
192
- data?: Array<{
193
- config?: {
194
- [key: string]: unknown;
195
- };
196
- createdAt?: string;
197
- /**
198
- * string schema
199
- */
200
- description?: string;
201
- enabled?: boolean;
202
- /**
203
- * string schema
204
- */
205
- error?: string;
206
- /**
207
- * string schema
208
- */
209
- icon?: string;
210
- id?: string;
211
- /**
212
- * string schema
213
- */
214
- name?: string;
215
- platform?: {
216
- /**
217
- * string schema
218
- */
219
- description?: string;
220
- id?: string;
221
- name?: string;
222
- };
223
- platformId?: string;
224
- state?: {
225
- [key: string]: unknown;
226
- };
227
- tags?: Array<string>;
228
- updatedAt?: string;
229
- }>;
230
- exportedAt?: string;
231
- totalCount?: number;
232
- version?: string;
150
+ export type EnsureSandboxReq = {
151
+ /**
152
+ * Reason for requesting the sandbox
153
+ */
154
+ reason?: string;
155
+ /**
156
+ * Optional user ID override (admin/system only)
157
+ */
158
+ user_id?: string;
233
159
  };
234
160
  /**
235
- * ExportPlatformsResponse schema
161
+ * EnsureSandboxResp schema
236
162
  */
237
- export type ExportPlatformsResponse = {
238
- data?: Array<{
239
- createdAt?: string;
240
- description?: string;
241
- id?: string;
242
- loginUrl?: string;
243
- name?: string;
244
- tags?: Array<string>;
245
- updatedAt?: string;
246
- url?: string;
247
- }>;
248
- exportedAt?: string;
249
- totalCount?: number;
250
- version?: string;
163
+ export type EnsureSandboxResp = {
164
+ api_url?: string;
165
+ client_action?: {
166
+ [key: string]: string;
167
+ };
168
+ error_code?: string;
169
+ message?: string;
170
+ sandbox_id?: string;
171
+ status?: string;
172
+ task_id?: string;
173
+ vnc_url?: string;
251
174
  };
252
175
  /**
253
176
  * HTTPError schema
@@ -288,241 +211,64 @@ export type HttpError = {
288
211
  type?: string;
289
212
  };
290
213
  /**
291
- * ImportPAccountsRequest schema
292
- */
293
- export type ImportPAccountsRequest = {
294
- data?: Array<{
295
- config?: {
296
- [key: string]: unknown;
297
- };
298
- /**
299
- * string schema
300
- */
301
- description?: string;
302
- /**
303
- * bool schema
304
- */
305
- enabled?: boolean;
306
- /**
307
- * string schema
308
- */
309
- icon?: string;
310
- /**
311
- * string schema
312
- */
313
- name?: string;
314
- platformId: string;
315
- tags?: Array<string>;
316
- }>;
317
- options?: {
318
- overwrite?: boolean;
319
- skipDuplicates?: boolean;
320
- };
321
- };
322
- /**
323
- * ImportPAccountsResponse schema
214
+ * HumanActionReq schema
324
215
  */
325
- export type ImportPAccountsResponse = {
326
- errors?: Array<{
327
- line?: number;
328
- message?: string;
329
- }>;
330
- imported?: number;
331
- skipped?: number;
332
- success?: boolean;
216
+ export type HumanActionReq = {
217
+ /**
218
+ * The type of action required (e.g., 'add_resource', 'check_resource')
219
+ */
220
+ action_type: string;
221
+ /**
222
+ * Explanation to the user why this action is needed
223
+ */
224
+ message: string;
225
+ /**
226
+ * The specific ID of the resource that failed or needs attention
227
+ */
228
+ resource_id?: string;
333
229
  };
334
230
  /**
335
- * ImportPlatformsRequest schema
231
+ * HumanActionResp schema
336
232
  */
337
- export type ImportPlatformsRequest = {
338
- data?: Array<{
339
- /**
340
- * string schema
341
- */
342
- description?: string;
343
- /**
344
- * string schema
345
- */
346
- loginUrl?: string;
347
- name: string;
348
- tags?: Array<string>;
349
- /**
350
- * string schema
351
- */
352
- url?: string;
353
- }>;
354
- options?: {
355
- overwrite?: boolean;
356
- skipDuplicates?: boolean;
233
+ export type HumanActionResp = {
234
+ client_action?: {
235
+ [key: string]: string;
357
236
  };
237
+ message?: string;
238
+ status?: string;
358
239
  };
359
240
  /**
360
- * ImportPlatformsResponse schema
241
+ * ListComputeNodesReq schema
361
242
  */
362
- export type ImportPlatformsResponse = {
363
- errors?: Array<{
364
- line?: number;
365
- message?: string;
366
- }>;
367
- imported?: number;
368
- skipped?: number;
369
- success?: boolean;
243
+ export type ListComputeNodesReq = {
244
+ kw?: string;
245
+ page_no?: number;
246
+ page_size?: number;
370
247
  };
371
248
  /**
372
- * ListMessagesResponse schema
249
+ * ListDirRequest schema
373
250
  */
374
- export type ListMessagesResponse = {
375
- data: Array<{
376
- createdAt?: string;
377
- /**
378
- * string schema
379
- */
380
- errorMessage?: string;
381
- font?: number;
382
- groupId?: number;
383
- /**
384
- * message id
385
- */
386
- id: string;
387
- message?: string;
388
- messageId?: number;
389
- /**
390
- * string schema
391
- */
392
- messageType?: string;
393
- metadata?: string;
394
- postType: string;
395
- processed?: boolean;
396
- /**
397
- * string schema
398
- */
399
- processedAt?: string;
400
- rawData?: string;
401
- /**
402
- * string schema
403
- */
404
- rawMessage?: string;
405
- selfId: string;
406
- /**
407
- * string schema
408
- */
409
- senderCard?: string;
410
- /**
411
- * string schema
412
- */
413
- senderNickname?: string;
414
- /**
415
- * string schema
416
- */
417
- senderRole?: string;
418
- /**
419
- * string schema
420
- */
421
- subType?: string;
422
- time?: number;
423
- updatedAt?: string;
424
- userId?: number;
425
- }>;
426
- limit: number;
427
- page: number;
428
- total: number;
251
+ export type ListDirRequest = {
252
+ /**
253
+ * Directory path to list
254
+ */
255
+ path: string;
429
256
  };
430
257
  /**
431
- * ListSessionsResponse schema
258
+ * ListDirResponse schema
432
259
  */
433
- export type ListSessionsResponse = {
434
- data?: Array<{
435
- createdAt?: string;
436
- id?: string;
437
- isActive?: boolean;
438
- /**
439
- * string schema
440
- */
441
- lastMessageAt?: string;
442
- messageCount?: number;
443
- selfId?: string;
444
- sessionId?: string;
445
- /**
446
- * string schema
447
- */
448
- sessionName?: string;
449
- sessionType?: string;
450
- updatedAt?: string;
260
+ export type ListDirResponse = {
261
+ entries?: Array<{
262
+ is_dir?: boolean;
263
+ name?: string;
264
+ size?: number;
451
265
  }>;
452
- limit?: number;
453
- page?: number;
454
- total?: number;
455
- };
456
- /**
457
- * LoginChatbotRequest schema
458
- */
459
- export type LoginChatbotRequest = {
460
- chatbotId: string;
461
- };
462
- /**
463
- * LoginChatbotResponse schema
464
- */
465
- export type LoginChatbotResponse = {
466
- chatbotId?: string;
467
- currentStatus?: string;
468
- message?: string;
469
- success?: boolean;
470
- workflowId?: string;
266
+ error?: string;
471
267
  };
472
268
  /**
473
- * MessageResponse schema
269
+ * ListTasksReq schema
474
270
  */
475
- export type MessageResponse = {
476
- createdAt?: string;
477
- /**
478
- * string schema
479
- */
480
- errorMessage?: string;
481
- font?: number;
482
- groupId?: number;
483
- /**
484
- * message id
485
- */
486
- id: string;
487
- message?: string;
488
- messageId?: number;
489
- /**
490
- * string schema
491
- */
492
- messageType?: string;
493
- metadata?: string;
494
- postType: string;
495
- processed?: boolean;
496
- /**
497
- * string schema
498
- */
499
- processedAt?: string;
500
- rawData?: string;
501
- /**
502
- * string schema
503
- */
504
- rawMessage?: string;
505
- selfId: string;
506
- /**
507
- * string schema
508
- */
509
- senderCard?: string;
510
- /**
511
- * string schema
512
- */
513
- senderNickname?: string;
514
- /**
515
- * string schema
516
- */
517
- senderRole?: string;
518
- /**
519
- * string schema
520
- */
521
- subType?: string;
522
- time?: number;
523
- updatedAt?: string;
524
- userId?: number;
525
- };
271
+ export type ListTasksReq = unknown;
526
272
  /**
527
273
  * NapcatStatus schema
528
274
  */
@@ -535,920 +281,152 @@ export type NapcatStatus = {
535
281
  webui_port?: number;
536
282
  };
537
283
  /**
538
- * OperationMessage schema
539
- */
540
- export type OperationMessage = {
541
- message?: string;
542
- };
543
- /**
544
- * OperationSuccess schema
545
- */
546
- export type OperationSuccess = {
547
- success?: boolean;
548
- };
549
- /**
550
- * PAccountListData schema
551
- */
552
- export type PAccountListData = {
553
- accounts?: Array<{
554
- config?: {
555
- [key: string]: unknown;
556
- };
557
- createdAt?: string;
558
- /**
559
- * string schema
560
- */
561
- description?: string;
562
- enabled?: boolean;
563
- /**
564
- * string schema
565
- */
566
- error?: string;
567
- /**
568
- * string schema
569
- */
570
- icon?: string;
571
- id?: string;
572
- /**
573
- * string schema
574
- */
575
- name?: string;
576
- platform?: {
577
- /**
578
- * string schema
579
- */
580
- description?: string;
581
- id?: string;
582
- name?: string;
583
- };
584
- platformId?: string;
585
- state?: {
586
- [key: string]: unknown;
587
- };
588
- tags?: Array<string>;
589
- updatedAt?: string;
590
- }>;
591
- limit?: number;
592
- page?: number;
593
- total?: number;
594
- };
595
- /**
596
- * PAccountResponse schema
284
+ * QueryRequest schema
597
285
  */
598
- export type PAccountResponse = {
599
- config?: {
600
- [key: string]: unknown;
601
- };
602
- createdAt?: string;
603
- /**
604
- * string schema
605
- */
606
- description?: string;
607
- enabled?: boolean;
286
+ export type QueryRequest = {
608
287
  /**
609
- * string schema
288
+ * The SQL query (or queries) to execute. Multiple statements can be separated by semicolons.
610
289
  */
611
- error?: string;
612
- /**
613
- * string schema
614
- */
615
- icon?: string;
616
- id?: string;
617
- /**
618
- * string schema
619
- */
620
- name?: string;
621
- platform?: {
622
- /**
623
- * string schema
624
- */
625
- description?: string;
626
- id?: string;
627
- name?: string;
628
- };
629
- platformId?: string;
630
- state?: {
631
- [key: string]: unknown;
632
- };
633
- tags?: Array<string>;
634
- updatedAt?: string;
635
- };
636
- /**
637
- * PAccountSession schema
638
- */
639
- export type PAccountSession = {
640
- createdAt?: string;
641
- id?: string;
642
- metadata?: {
643
- [key: string]: unknown;
644
- };
645
- status?: string;
646
- updatedAt?: string;
647
- };
648
- /**
649
- * PlatformListData schema
650
- */
651
- export type PlatformListData = {
652
- limit?: number;
653
- page?: number;
654
- platforms?: Array<{
655
- createdAt?: string;
656
- description?: string;
657
- id?: string;
658
- loginUrl?: string;
659
- name?: string;
660
- tags?: Array<string>;
661
- updatedAt?: string;
662
- url?: string;
663
- }>;
664
- total?: number;
665
- };
666
- /**
667
- * PlatformResponse schema
668
- */
669
- export type PlatformResponse = {
670
- createdAt?: string;
671
- description?: string;
672
- id?: string;
673
- loginUrl?: string;
674
- name?: string;
675
- tags?: Array<string>;
676
- updatedAt?: string;
677
- url?: string;
678
- };
679
- /**
680
- * PlatformTypeListResponse schema
681
- */
682
- export type PlatformTypeListResponse = {
683
- data?: Array<{
684
- code?: string;
685
- createdAt?: string;
686
- enabled?: boolean;
687
- id?: string;
688
- name?: string;
689
- updatedAt?: string;
690
- }>;
691
- limit?: number;
692
- page?: number;
693
- total?: number;
290
+ sql: string;
694
291
  };
695
292
  /**
696
- * RunChatbotRequest schema
293
+ * QueryResponse schema
697
294
  */
698
- export type RunChatbotRequest = {
699
- chatbotId: string;
700
- };
701
- /**
702
- * RunChatbotResponse schema
703
- */
704
- export type RunChatbotResponse = {
705
- chatbotId?: string;
706
- currentStatus?: string;
707
- message?: string;
708
- success?: boolean;
709
- workflowId?: string;
710
- };
711
- /**
712
- * RunCodeReq schema
713
- */
714
- export type RunCodeReq = {
715
- /**
716
- * 代码类型: python | browserjs
717
- */
718
- codeType: string;
719
- /**
720
- * 代码正文
721
- */
722
- content: string;
723
- /**
724
- * 注入到代码运行环境的上下文变量
725
- */
726
- context?: {
727
- [key: string]: unknown;
728
- };
729
- /**
730
- * 运行超时时间(秒), 如果不填默认为60秒
731
- */
732
- timeout?: number;
733
- };
734
- /**
735
- * StartNapcatRequest schema
736
- */
737
- export type StartNapcatRequest = {
738
- config_dir?: string;
739
- data_dir?: string;
740
- napcat_port?: number;
741
- qq_account?: string;
742
- webui_port?: number;
743
- };
744
- /**
745
- * TaskRunReq schema
746
- */
747
- export type TaskRunReq = {
748
- browserId?: string;
749
- payload?: unknown;
750
- taskId?: string;
751
- type?: string;
752
- };
753
- /**
754
- * TaskRunResp schema
755
- */
756
- export type TaskRunResp = {
757
- message?: string;
758
- status?: string;
759
- };
760
- /**
761
- * UpdatePAccountRequest schema
762
- */
763
- export type UpdatePAccountRequest = {
764
- config?: {
765
- [key: string]: unknown;
766
- };
767
- /**
768
- * string schema
769
- */
770
- description?: string;
771
- enabled?: boolean;
772
- /**
773
- * string schema
774
- */
775
- icon?: string;
776
- /**
777
- * string schema
778
- */
779
- name?: string;
780
- platformId: string;
781
- tags?: Array<string>;
782
- };
783
- /**
784
- * UpdatePlatformRequest schema
785
- */
786
- export type UpdatePlatformRequest = {
787
- /**
788
- * string schema
789
- */
790
- description?: string;
791
- /**
792
- * string schema
793
- */
794
- loginUrl?: string;
795
- name: string;
796
- tags?: Array<string>;
797
- /**
798
- * string schema
799
- */
800
- url?: string;
801
- };
802
- /**
803
- * UpdateSessionRequest schema
804
- */
805
- export type UpdateSessionRequest = {
806
- config?: {
807
- [key: string]: unknown;
808
- };
809
- status?: string;
810
- };
811
- /**
812
- * UserResponse schema
813
- */
814
- export type UserResponse = {
815
- /**
816
- * string schema
817
- */
818
- avatarUrl?: string;
819
- email?: string;
820
- hasPassword?: boolean;
821
- /**
822
- * string schema
823
- */
824
- hashedEmail?: string;
825
- id?: string;
826
- /**
827
- * string schema
828
- */
829
- name?: string;
830
- };
831
- /**
832
- * bool schema
833
- */
834
- export type Bool = boolean;
835
- /**
836
- * string schema
837
- */
838
- export type String = string;
839
- /**
840
- * unknown-interface schema
841
- */
842
- export type UnknownInterface = unknown;
843
- export type CodeRunData = {
844
- /**
845
- * Request body for code.RunCodeReq
846
- */
847
- body: RunCodeReq;
848
- headers?: {
849
- Accept?: string;
850
- };
851
- path?: never;
852
- query?: never;
853
- url: '/api/code/run';
854
- };
855
- export type CodeRunErrors = {
856
- /**
857
- * Bad Request _(validation or deserialization error)_
858
- */
859
- 400: HttpError;
860
- /**
861
- * Internal Server Error _(panics)_
862
- */
863
- 500: HttpError;
864
- default: unknown;
865
- };
866
- export type CodeRunError = CodeRunErrors[keyof CodeRunErrors];
867
- export type CodeRunResponses = {
868
- /**
869
- * OK
870
- */
871
- 200: CodeRunResult;
872
- };
873
- export type CodeRunResponse = CodeRunResponses[keyof CodeRunResponses];
874
- export type LangchatChatbotsListData = {
875
- body?: never;
876
- headers?: {
877
- Accept?: string;
878
- };
879
- path?: never;
880
- query?: never;
881
- url: '/api/langchat/chatbots';
882
- };
883
- export type LangchatChatbotsListErrors = {
884
- /**
885
- * Bad Request _(validation or deserialization error)_
886
- */
887
- 400: HttpError;
888
- /**
889
- * Internal Server Error _(panics)_
890
- */
891
- 500: HttpError;
892
- default: unknown;
893
- };
894
- export type LangchatChatbotsListError = LangchatChatbotsListErrors[keyof LangchatChatbotsListErrors];
895
- export type LangchatChatbotsListResponses = {
896
- /**
897
- * OK
898
- */
899
- 200: ChatbotListResponse;
900
- };
901
- export type LangchatChatbotsListResponse = LangchatChatbotsListResponses[keyof LangchatChatbotsListResponses];
902
- export type LangchatChatbotsUpsertData = {
903
- /**
904
- * Request body for langchat.ChatbotUpsertRequest
905
- */
906
- body: ChatbotUpsertRequest;
907
- headers?: {
908
- Accept?: string;
909
- };
910
- path?: never;
911
- query?: never;
912
- url: '/api/langchat/chatbots';
913
- };
914
- export type LangchatChatbotsUpsertErrors = {
915
- /**
916
- * Bad Request _(validation or deserialization error)_
917
- */
918
- 400: HttpError;
919
- /**
920
- * Internal Server Error _(panics)_
921
- */
922
- 500: HttpError;
923
- default: unknown;
924
- };
925
- export type LangchatChatbotsUpsertError = LangchatChatbotsUpsertErrors[keyof LangchatChatbotsUpsertErrors];
926
- export type LangchatChatbotsUpsertResponses = {
927
- /**
928
- * OK
929
- */
930
- 200: ChatbotResponse;
931
- };
932
- export type LangchatChatbotsUpsertResponse = LangchatChatbotsUpsertResponses[keyof LangchatChatbotsUpsertResponses];
933
- export type LangchatChatbotsLoginData = {
934
- /**
935
- * Request body for langchat.LoginChatbotRequest
936
- */
937
- body: LoginChatbotRequest;
938
- headers?: {
939
- Accept?: string;
940
- };
941
- path?: never;
942
- query?: never;
943
- url: '/api/langchat/chatbots/login';
944
- };
945
- export type LangchatChatbotsLoginErrors = {
946
- /**
947
- * Bad Request _(validation or deserialization error)_
948
- */
949
- 400: HttpError;
950
- /**
951
- * Internal Server Error _(panics)_
952
- */
953
- 500: HttpError;
954
- default: unknown;
955
- };
956
- export type LangchatChatbotsLoginError = LangchatChatbotsLoginErrors[keyof LangchatChatbotsLoginErrors];
957
- export type LangchatChatbotsLoginResponses = {
958
- /**
959
- * OK
960
- */
961
- 200: LoginChatbotResponse;
962
- };
963
- export type LangchatChatbotsLoginResponse = LangchatChatbotsLoginResponses[keyof LangchatChatbotsLoginResponses];
964
- export type LangchatChatbotsRunData = {
965
- /**
966
- * Request body for langchat.RunChatbotRequest
967
- */
968
- body: RunChatbotRequest;
969
- headers?: {
970
- Accept?: string;
971
- };
972
- path?: never;
973
- query?: never;
974
- url: '/api/langchat/chatbots/run';
975
- };
976
- export type LangchatChatbotsRunErrors = {
977
- /**
978
- * Bad Request _(validation or deserialization error)_
979
- */
980
- 400: HttpError;
981
- /**
982
- * Internal Server Error _(panics)_
983
- */
984
- 500: HttpError;
985
- default: unknown;
986
- };
987
- export type LangchatChatbotsRunError = LangchatChatbotsRunErrors[keyof LangchatChatbotsRunErrors];
988
- export type LangchatChatbotsRunResponses = {
989
- /**
990
- * OK
991
- */
992
- 200: RunChatbotResponse;
993
- };
994
- export type LangchatChatbotsRunResponse = LangchatChatbotsRunResponses[keyof LangchatChatbotsRunResponses];
995
- export type LangchatChatbotsDeleteData = {
996
- body?: never;
997
- headers?: {
998
- Accept?: string;
999
- };
1000
- path: {
1001
- chatbotId: string;
1002
- };
1003
- query?: never;
1004
- url: '/api/langchat/chatbots/{chatbotId}';
1005
- };
1006
- export type LangchatChatbotsDeleteErrors = {
1007
- /**
1008
- * Bad Request _(validation or deserialization error)_
1009
- */
1010
- 400: HttpError;
1011
- /**
1012
- * Internal Server Error _(panics)_
1013
- */
1014
- 500: HttpError;
1015
- default: unknown;
1016
- };
1017
- export type LangchatChatbotsDeleteError = LangchatChatbotsDeleteErrors[keyof LangchatChatbotsDeleteErrors];
1018
- export type LangchatChatbotsDeleteResponses = {
1019
- /**
1020
- * OK
1021
- */
1022
- 200: String;
1023
- };
1024
- export type LangchatChatbotsDeleteResponse = LangchatChatbotsDeleteResponses[keyof LangchatChatbotsDeleteResponses];
1025
- export type LangchatChatbotsGetData = {
1026
- body?: never;
1027
- headers?: {
1028
- Accept?: string;
1029
- };
1030
- path: {
1031
- chatbotId: string;
1032
- };
1033
- query?: never;
1034
- url: '/api/langchat/chatbots/{chatbotId}';
1035
- };
1036
- export type LangchatChatbotsGetErrors = {
1037
- /**
1038
- * Bad Request _(validation or deserialization error)_
1039
- */
1040
- 400: HttpError;
1041
- /**
1042
- * Internal Server Error _(panics)_
1043
- */
1044
- 500: HttpError;
1045
- default: unknown;
1046
- };
1047
- export type LangchatChatbotsGetError = LangchatChatbotsGetErrors[keyof LangchatChatbotsGetErrors];
1048
- export type LangchatChatbotsGetResponses = {
1049
- /**
1050
- * OK
1051
- */
1052
- 200: ChatbotResponse;
1053
- };
1054
- export type LangchatChatbotsGetResponse = LangchatChatbotsGetResponses[keyof LangchatChatbotsGetResponses];
1055
- export type LangchatChatbotsUpdateData = {
1056
- /**
1057
- * Request body for langchat.ChatbotUpsertRequest
1058
- */
1059
- body: ChatbotUpsertRequest;
1060
- headers?: {
1061
- Accept?: string;
1062
- };
1063
- path: {
1064
- chatbotId: string;
1065
- };
1066
- query?: never;
1067
- url: '/api/langchat/chatbots/{chatbotId}';
1068
- };
1069
- export type LangchatChatbotsUpdateErrors = {
1070
- /**
1071
- * Bad Request _(validation or deserialization error)_
1072
- */
1073
- 400: HttpError;
1074
- /**
1075
- * Internal Server Error _(panics)_
1076
- */
1077
- 500: HttpError;
1078
- default: unknown;
1079
- };
1080
- export type LangchatChatbotsUpdateError = LangchatChatbotsUpdateErrors[keyof LangchatChatbotsUpdateErrors];
1081
- export type LangchatChatbotsUpdateResponses = {
1082
- /**
1083
- * OK
1084
- */
1085
- 200: ChatbotResponse;
1086
- };
1087
- export type LangchatChatbotsUpdateResponse = LangchatChatbotsUpdateResponses[keyof LangchatChatbotsUpdateResponses];
1088
- export type LangchatPlatformTypesData = {
1089
- body?: never;
1090
- headers?: {
1091
- Accept?: string;
1092
- };
1093
- path?: never;
1094
- query?: never;
1095
- url: '/api/langchat/platform-types';
1096
- };
1097
- export type LangchatPlatformTypesErrors = {
1098
- /**
1099
- * Bad Request _(validation or deserialization error)_
1100
- */
1101
- 400: HttpError;
1102
- /**
1103
- * Internal Server Error _(panics)_
1104
- */
1105
- 500: HttpError;
1106
- default: unknown;
1107
- };
1108
- export type LangchatPlatformTypesError = LangchatPlatformTypesErrors[keyof LangchatPlatformTypesErrors];
1109
- export type LangchatPlatformTypesResponses = {
1110
- /**
1111
- * OK
1112
- */
1113
- 200: PlatformTypeListResponse;
1114
- };
1115
- export type LangchatPlatformTypesResponse = LangchatPlatformTypesResponses[keyof LangchatPlatformTypesResponses];
1116
- export type NapcatStartData = {
1117
- /**
1118
- * Request body for napcat.StartNapcatRequest
1119
- */
1120
- body: StartNapcatRequest;
1121
- headers?: {
1122
- Accept?: string;
1123
- };
1124
- path?: never;
1125
- query?: never;
1126
- url: '/api/napcat/start';
1127
- };
1128
- export type NapcatStartErrors = {
1129
- /**
1130
- * Bad Request _(validation or deserialization error)_
1131
- */
1132
- 400: HttpError;
1133
- /**
1134
- * Internal Server Error _(panics)_
1135
- */
1136
- 500: HttpError;
1137
- default: unknown;
1138
- };
1139
- export type NapcatStartError = NapcatStartErrors[keyof NapcatStartErrors];
1140
- export type NapcatStartResponses = {
1141
- /**
1142
- * OK
1143
- */
1144
- 200: NapcatStatus;
1145
- };
1146
- export type NapcatStartResponse = NapcatStartResponses[keyof NapcatStartResponses];
1147
- export type NapcatGetStatusData = {
1148
- body?: never;
1149
- headers?: {
1150
- Accept?: string;
1151
- };
1152
- path?: never;
1153
- query?: never;
1154
- url: '/api/napcat/status';
1155
- };
1156
- export type NapcatGetStatusErrors = {
1157
- /**
1158
- * Bad Request _(validation or deserialization error)_
1159
- */
1160
- 400: HttpError;
1161
- /**
1162
- * Internal Server Error _(panics)_
1163
- */
1164
- 500: HttpError;
1165
- default: unknown;
1166
- };
1167
- export type NapcatGetStatusError = NapcatGetStatusErrors[keyof NapcatGetStatusErrors];
1168
- export type NapcatGetStatusResponses = {
1169
- /**
1170
- * OK
1171
- */
1172
- 200: NapcatStatus;
1173
- };
1174
- export type NapcatGetStatusResponse = NapcatGetStatusResponses[keyof NapcatGetStatusResponses];
1175
- export type NapcatProxyOneBot11GetData = {
1176
- body?: never;
1177
- headers?: {
1178
- Accept?: string;
1179
- };
1180
- path?: never;
1181
- query?: never;
1182
- url: '/api/onebot11/*';
1183
- };
1184
- export type NapcatProxyOneBot11GetErrors = {
1185
- /**
1186
- * Bad Request _(validation or deserialization error)_
1187
- */
1188
- 400: HttpError;
1189
- /**
1190
- * Internal Server Error _(panics)_
1191
- */
1192
- 500: HttpError;
1193
- default: unknown;
1194
- };
1195
- export type NapcatProxyOneBot11GetError = NapcatProxyOneBot11GetErrors[keyof NapcatProxyOneBot11GetErrors];
1196
- export type NapcatProxyOneBot11GetResponses = {
1197
- /**
1198
- * OK
1199
- */
1200
- 200: UnknownInterface;
1201
- };
1202
- export type NapcatProxyOneBot11GetResponse = NapcatProxyOneBot11GetResponses[keyof NapcatProxyOneBot11GetResponses];
1203
- export type NapcatProxyOneBot11PostData = {
1204
- body?: never;
1205
- headers?: {
1206
- Accept?: string;
1207
- };
1208
- path?: never;
1209
- query?: never;
1210
- url: '/api/onebot11/*';
1211
- };
1212
- export type NapcatProxyOneBot11PostErrors = {
1213
- /**
1214
- * Bad Request _(validation or deserialization error)_
1215
- */
1216
- 400: HttpError;
1217
- /**
1218
- * Internal Server Error _(panics)_
1219
- */
1220
- 500: HttpError;
1221
- default: unknown;
1222
- };
1223
- export type NapcatProxyOneBot11PostError = NapcatProxyOneBot11PostErrors[keyof NapcatProxyOneBot11PostErrors];
1224
- export type NapcatProxyOneBot11PostResponses = {
1225
- /**
1226
- * OK
1227
- */
1228
- 200: UnknownInterface;
1229
- };
1230
- export type NapcatProxyOneBot11PostResponse = NapcatProxyOneBot11PostResponses[keyof NapcatProxyOneBot11PostResponses];
1231
- export type LangchatChatbotsMessagesListData = {
1232
- body?: never;
1233
- headers?: {
1234
- Accept?: string;
1235
- };
1236
- path?: never;
1237
- query?: {
1238
- /**
1239
- * Filter by self ID
1240
- */
1241
- selfId?: string;
1242
- /**
1243
- * Filter by post type (message, meta_event, etc.)
1244
- */
1245
- postType?: string;
1246
- /**
1247
- * Filter by message type (private, group)
1248
- */
1249
- messageType?: string;
1250
- /**
1251
- * Filter by user ID
1252
- */
1253
- userId?: number;
1254
- /**
1255
- * Filter by group ID
1256
- */
1257
- groupId?: number;
1258
- /**
1259
- * Filter by processed status
1260
- */
1261
- processed?: boolean;
1262
- /**
1263
- * Search in message content and sender nickname
1264
- */
1265
- search?: string;
1266
- /**
1267
- * Page number
1268
- */
1269
- page?: number;
1270
- /**
1271
- * Items per page
1272
- */
1273
- limit?: number;
1274
- /**
1275
- * Order by field
1276
- */
1277
- orderBy?: string;
1278
- /**
1279
- * Order descending
1280
- */
1281
- orderDesc?: boolean;
1282
- };
1283
- url: '/api/onebot11/messages';
1284
- };
1285
- export type LangchatChatbotsMessagesListErrors = {
1286
- /**
1287
- * Bad Request _(validation or deserialization error)_
1288
- */
1289
- 400: HttpError;
1290
- /**
1291
- * Internal Server Error _(panics)_
1292
- */
1293
- 500: HttpError;
1294
- default: unknown;
1295
- };
1296
- export type LangchatChatbotsMessagesListError = LangchatChatbotsMessagesListErrors[keyof LangchatChatbotsMessagesListErrors];
1297
- export type LangchatChatbotsMessagesListResponses = {
1298
- /**
1299
- * OK
1300
- */
1301
- 200: ListMessagesResponse;
1302
- };
1303
- export type LangchatChatbotsMessagesListResponse = LangchatChatbotsMessagesListResponses[keyof LangchatChatbotsMessagesListResponses];
1304
- export type LangchatChatbotsMessagesGetData = {
1305
- body?: never;
1306
- headers?: {
1307
- Accept?: string;
1308
- };
1309
- path: {
1310
- id: string;
1311
- };
1312
- query?: never;
1313
- url: '/api/onebot11/messages/{id}';
1314
- };
1315
- export type LangchatChatbotsMessagesGetErrors = {
1316
- /**
1317
- * Bad Request _(validation or deserialization error)_
1318
- */
1319
- 400: HttpError;
1320
- /**
1321
- * Internal Server Error _(panics)_
1322
- */
1323
- 500: HttpError;
1324
- default: unknown;
295
+ export type QueryResponse = {
296
+ error?: string;
297
+ results?: Array<{
298
+ error?: string;
299
+ message?: string;
300
+ rows?: Array<{
301
+ [key: string]: unknown;
302
+ }>;
303
+ sql?: string;
304
+ status?: string;
305
+ }>;
1325
306
  };
1326
- export type LangchatChatbotsMessagesGetError = LangchatChatbotsMessagesGetErrors[keyof LangchatChatbotsMessagesGetErrors];
1327
- export type LangchatChatbotsMessagesGetResponses = {
307
+ /**
308
+ * ReadFilesRequest schema
309
+ */
310
+ export type ReadFilesRequest = {
1328
311
  /**
1329
- * OK
312
+ * List of file paths or glob patterns
1330
313
  */
1331
- 200: MessageResponse;
314
+ paths: Array<string>;
1332
315
  };
1333
- export type LangchatChatbotsMessagesGetResponse = LangchatChatbotsMessagesGetResponses[keyof LangchatChatbotsMessagesGetResponses];
1334
- export type LangchatChatbotsSessionsListData = {
1335
- body?: never;
1336
- headers?: {
1337
- Accept?: string;
1338
- };
1339
- path?: never;
1340
- query?: {
1341
- /**
1342
- * Filter by self ID
1343
- */
1344
- selfId?: string;
1345
- /**
1346
- * Filter by session type
1347
- */
1348
- sessionType?: string;
1349
- /**
1350
- * Filter by active status
1351
- */
1352
- isActive?: boolean;
1353
- /**
1354
- * Page number
1355
- */
1356
- page?: number;
1357
- /**
1358
- * Items per page
1359
- */
1360
- limit?: number;
1361
- };
1362
- url: '/api/onebot11/sessions';
316
+ /**
317
+ * ReadFilesResponse schema
318
+ */
319
+ export type ReadFilesResponse = {
320
+ results?: Array<{
321
+ content?: string;
322
+ error?: string;
323
+ file_path?: string;
324
+ }>;
325
+ summary?: string;
1363
326
  };
1364
- export type LangchatChatbotsSessionsListErrors = {
1365
- /**
1366
- * Bad Request _(validation or deserialization error)_
1367
- */
1368
- 400: HttpError;
327
+ /**
328
+ * RemoveComputeNodeReq schema
329
+ */
330
+ export type RemoveComputeNodeReq = {
1369
331
  /**
1370
- * Internal Server Error _(panics)_
332
+ * ID of the compute node to remove
1371
333
  */
1372
- 500: HttpError;
1373
- default: unknown;
334
+ id?: string;
1374
335
  };
1375
- export type LangchatChatbotsSessionsListError = LangchatChatbotsSessionsListErrors[keyof LangchatChatbotsSessionsListErrors];
1376
- export type LangchatChatbotsSessionsListResponses = {
336
+ /**
337
+ * RunCodeReq schema
338
+ */
339
+ export type RunCodeReq = {
1377
340
  /**
1378
- * OK
341
+ * 代码类型: python | browserjs
1379
342
  */
1380
- 200: ListSessionsResponse;
1381
- };
1382
- export type LangchatChatbotsSessionsListResponse = LangchatChatbotsSessionsListResponses[keyof LangchatChatbotsSessionsListResponses];
1383
- export type PAccountListData2 = {
1384
- body?: never;
1385
- headers?: {
1386
- Accept?: string;
1387
- };
1388
- path?: never;
1389
- query?: never;
1390
- url: '/api/paccounts';
1391
- };
1392
- export type PAccountListErrors = {
343
+ codeType: string;
1393
344
  /**
1394
- * Bad Request _(validation or deserialization error)_
345
+ * 代码正文
1395
346
  */
1396
- 400: HttpError;
347
+ content: string;
1397
348
  /**
1398
- * Internal Server Error _(panics)_
349
+ * 注入到代码运行环境的上下文变量
1399
350
  */
1400
- 500: HttpError;
1401
- default: unknown;
1402
- };
1403
- export type PAccountListError = PAccountListErrors[keyof PAccountListErrors];
1404
- export type PAccountListResponses = {
351
+ context?: {
352
+ [key: string]: unknown;
353
+ };
1405
354
  /**
1406
- * OK
355
+ * 运行超时时间(秒), 如果不填默认为60秒
1407
356
  */
1408
- 200: PAccountListData;
357
+ timeout?: number;
1409
358
  };
1410
- export type PAccountListResponse = PAccountListResponses[keyof PAccountListResponses];
1411
- export type PAccountCreateData = {
359
+ /**
360
+ * SearchFilesRequest schema
361
+ */
362
+ export type SearchFilesRequest = {
1412
363
  /**
1413
- * Request body for paccount.CreatePAccountRequest
364
+ * File pattern to include e.g. *.go
1414
365
  */
1415
- body: CreatePAccountRequest;
1416
- headers?: {
1417
- Accept?: string;
1418
- };
1419
- path?: never;
1420
- query?: never;
1421
- url: '/api/paccounts';
1422
- };
1423
- export type PAccountCreateErrors = {
366
+ glob?: string;
1424
367
  /**
1425
- * Bad Request _(validation or deserialization error)_
368
+ * Directory to search in
1426
369
  */
1427
- 400: HttpError;
370
+ path?: string;
1428
371
  /**
1429
- * Internal Server Error _(panics)_
372
+ * Regex pattern to search
1430
373
  */
1431
- 500: HttpError;
1432
- default: unknown;
374
+ pattern: string;
375
+ };
376
+ /**
377
+ * SearchFilesResponse schema
378
+ */
379
+ export type SearchFilesResponse = {
380
+ error?: string;
381
+ matches?: Array<string>;
382
+ };
383
+ /**
384
+ * StartNapcatRequest schema
385
+ */
386
+ export type StartNapcatRequest = {
387
+ config_dir?: string;
388
+ data_dir?: string;
389
+ napcat_port?: number;
390
+ qq_account?: string;
391
+ webui_port?: number;
392
+ };
393
+ /**
394
+ * TaskRunReq schema
395
+ */
396
+ export type TaskRunReq = {
397
+ browserId?: string;
398
+ payload?: unknown;
399
+ taskId?: string;
400
+ type?: string;
401
+ };
402
+ /**
403
+ * TaskRunResp schema
404
+ */
405
+ export type TaskRunResp = {
406
+ message?: string;
407
+ status?: string;
1433
408
  };
1434
- export type PAccountCreateError = PAccountCreateErrors[keyof PAccountCreateErrors];
1435
- export type PAccountCreateResponses = {
409
+ /**
410
+ * string schema
411
+ */
412
+ export type String = string;
413
+ /**
414
+ * unknown-interface schema
415
+ */
416
+ export type UnknownInterface = unknown;
417
+ export type AgentRunData = {
1436
418
  /**
1437
- * OK
419
+ * Request body for agent.AgentRunReq
1438
420
  */
1439
- 200: PAccountResponse;
1440
- };
1441
- export type PAccountCreateResponse = PAccountCreateResponses[keyof PAccountCreateResponses];
1442
- export type PAccountExportData = {
1443
- body?: never;
421
+ body: AgentRunReq;
1444
422
  headers?: {
1445
423
  Accept?: string;
1446
424
  };
1447
425
  path?: never;
1448
426
  query?: never;
1449
- url: '/api/paccounts/export';
427
+ url: '/api/agent/run';
1450
428
  };
1451
- export type PAccountExportErrors = {
429
+ export type AgentRunErrors = {
1452
430
  /**
1453
431
  * Bad Request _(validation or deserialization error)_
1454
432
  */
@@ -1459,27 +437,27 @@ export type PAccountExportErrors = {
1459
437
  500: HttpError;
1460
438
  default: unknown;
1461
439
  };
1462
- export type PAccountExportError = PAccountExportErrors[keyof PAccountExportErrors];
1463
- export type PAccountExportResponses = {
440
+ export type AgentRunError = AgentRunErrors[keyof AgentRunErrors];
441
+ export type AgentRunResponses = {
1464
442
  /**
1465
443
  * OK
1466
444
  */
1467
- 200: ExportPAccountsResponse;
445
+ 200: AgentRunResp;
1468
446
  };
1469
- export type PAccountExportResponse = PAccountExportResponses[keyof PAccountExportResponses];
1470
- export type PAccountImportData = {
447
+ export type AgentRunResponse = AgentRunResponses[keyof AgentRunResponses];
448
+ export type BrowserActionData = {
1471
449
  /**
1472
- * Request body for paccount.ImportPAccountsRequest
450
+ * Request body for browser.BrowserActionReq
1473
451
  */
1474
- body: ImportPAccountsRequest;
452
+ body: BrowserActionReq;
1475
453
  headers?: {
1476
454
  Accept?: string;
1477
455
  };
1478
456
  path?: never;
1479
457
  query?: never;
1480
- url: '/api/paccounts/import';
458
+ url: '/api/browser/action';
1481
459
  };
1482
- export type PAccountImportErrors = {
460
+ export type BrowserActionErrors = {
1483
461
  /**
1484
462
  * Bad Request _(validation or deserialization error)_
1485
463
  */
@@ -1490,56 +468,27 @@ export type PAccountImportErrors = {
1490
468
  500: HttpError;
1491
469
  default: unknown;
1492
470
  };
1493
- export type PAccountImportError = PAccountImportErrors[keyof PAccountImportErrors];
1494
- export type PAccountImportResponses = {
471
+ export type BrowserActionError = BrowserActionErrors[keyof BrowserActionErrors];
472
+ export type BrowserActionResponses = {
1495
473
  /**
1496
474
  * OK
1497
475
  */
1498
- 200: ImportPAccountsResponse;
1499
- };
1500
- export type PAccountImportResponse = PAccountImportResponses[keyof PAccountImportResponses];
1501
- export type PAccountDeleteData = {
1502
- body?: never;
1503
- headers?: {
1504
- Accept?: string;
1505
- };
1506
- path: {
1507
- accountId: string;
1508
- };
1509
- query?: never;
1510
- url: '/api/paccounts/{accountId}';
1511
- };
1512
- export type PAccountDeleteErrors = {
1513
- /**
1514
- * Bad Request _(validation or deserialization error)_
1515
- */
1516
- 400: HttpError;
1517
- /**
1518
- * Internal Server Error _(panics)_
1519
- */
1520
- 500: HttpError;
1521
- default: unknown;
476
+ 200: String;
1522
477
  };
1523
- export type PAccountDeleteError = PAccountDeleteErrors[keyof PAccountDeleteErrors];
1524
- export type PAccountDeleteResponses = {
478
+ export type BrowserActionResponse = BrowserActionResponses[keyof BrowserActionResponses];
479
+ export type BrowserOpenData = {
1525
480
  /**
1526
- * OK
481
+ * Request body for browser.BrowserOpenReq
1527
482
  */
1528
- 200: Bool;
1529
- };
1530
- export type PAccountDeleteResponse = PAccountDeleteResponses[keyof PAccountDeleteResponses];
1531
- export type PAccountGetData = {
1532
- body?: never;
483
+ body: BrowserOpenReq;
1533
484
  headers?: {
1534
485
  Accept?: string;
1535
486
  };
1536
- path: {
1537
- accountId: string;
1538
- };
487
+ path?: never;
1539
488
  query?: never;
1540
- url: '/api/paccounts/{accountId}';
489
+ url: '/api/browser/open';
1541
490
  };
1542
- export type PAccountGetErrors = {
491
+ export type BrowserOpenErrors = {
1543
492
  /**
1544
493
  * Bad Request _(validation or deserialization error)_
1545
494
  */
@@ -1550,29 +499,27 @@ export type PAccountGetErrors = {
1550
499
  500: HttpError;
1551
500
  default: unknown;
1552
501
  };
1553
- export type PAccountGetError = PAccountGetErrors[keyof PAccountGetErrors];
1554
- export type PAccountGetResponses = {
502
+ export type BrowserOpenError = BrowserOpenErrors[keyof BrowserOpenErrors];
503
+ export type BrowserOpenResponses = {
1555
504
  /**
1556
505
  * OK
1557
506
  */
1558
- 200: PAccountResponse;
507
+ 200: BrowserOpenResp;
1559
508
  };
1560
- export type PAccountGetResponse = PAccountGetResponses[keyof PAccountGetResponses];
1561
- export type PAccountUpdateData = {
509
+ export type BrowserOpenResponse = BrowserOpenResponses[keyof BrowserOpenResponses];
510
+ export type CoddingToolEditFileData = {
1562
511
  /**
1563
- * Request body for paccount.UpdatePAccountRequest
512
+ * Request body for coddingtool.EditFileRequest
1564
513
  */
1565
- body: UpdatePAccountRequest;
514
+ body: EditFileRequest;
1566
515
  headers?: {
1567
516
  Accept?: string;
1568
517
  };
1569
- path: {
1570
- accountId: string;
1571
- };
518
+ path?: never;
1572
519
  query?: never;
1573
- url: '/api/paccounts/{accountId}';
520
+ url: '/api/codding_tool/edit_file';
1574
521
  };
1575
- export type PAccountUpdateErrors = {
522
+ export type CoddingToolEditFileErrors = {
1576
523
  /**
1577
524
  * Bad Request _(validation or deserialization error)_
1578
525
  */
@@ -1583,26 +530,27 @@ export type PAccountUpdateErrors = {
1583
530
  500: HttpError;
1584
531
  default: unknown;
1585
532
  };
1586
- export type PAccountUpdateError = PAccountUpdateErrors[keyof PAccountUpdateErrors];
1587
- export type PAccountUpdateResponses = {
533
+ export type CoddingToolEditFileError = CoddingToolEditFileErrors[keyof CoddingToolEditFileErrors];
534
+ export type CoddingToolEditFileResponses = {
1588
535
  /**
1589
536
  * OK
1590
537
  */
1591
- 200: PAccountResponse;
538
+ 200: EditFileResponse;
1592
539
  };
1593
- export type PAccountUpdateResponse = PAccountUpdateResponses[keyof PAccountUpdateResponses];
1594
- export type PAccountListBrowserConfigsData = {
1595
- body?: never;
540
+ export type CoddingToolEditFileResponse = CoddingToolEditFileResponses[keyof CoddingToolEditFileResponses];
541
+ export type CoddingToolListDirData = {
542
+ /**
543
+ * Request body for coddingtool.ListDirRequest
544
+ */
545
+ body: ListDirRequest;
1596
546
  headers?: {
1597
547
  Accept?: string;
1598
548
  };
1599
- path: {
1600
- accountId: string;
1601
- };
549
+ path?: never;
1602
550
  query?: never;
1603
- url: '/api/paccounts/{accountId}/browser/configs';
551
+ url: '/api/codding_tool/list_dir';
1604
552
  };
1605
- export type PAccountListBrowserConfigsErrors = {
553
+ export type CoddingToolListDirErrors = {
1606
554
  /**
1607
555
  * Bad Request _(validation or deserialization error)_
1608
556
  */
@@ -1613,29 +561,27 @@ export type PAccountListBrowserConfigsErrors = {
1613
561
  500: HttpError;
1614
562
  default: unknown;
1615
563
  };
1616
- export type PAccountListBrowserConfigsError = PAccountListBrowserConfigsErrors[keyof PAccountListBrowserConfigsErrors];
1617
- export type PAccountListBrowserConfigsResponses = {
564
+ export type CoddingToolListDirError = CoddingToolListDirErrors[keyof CoddingToolListDirErrors];
565
+ export type CoddingToolListDirResponses = {
1618
566
  /**
1619
567
  * OK
1620
568
  */
1621
- 200: Array<BrowserConfig>;
569
+ 200: ListDirResponse;
1622
570
  };
1623
- export type PAccountListBrowserConfigsResponse = PAccountListBrowserConfigsResponses[keyof PAccountListBrowserConfigsResponses];
1624
- export type PAccountCreateBrowserConfigData = {
571
+ export type CoddingToolListDirResponse = CoddingToolListDirResponses[keyof CoddingToolListDirResponses];
572
+ export type CoddingToolReadFilesData = {
1625
573
  /**
1626
- * Request body for paccount.BrowserConfigCreate
574
+ * Request body for coddingtool.ReadFilesRequest
1627
575
  */
1628
- body: BrowserConfigCreate;
576
+ body: ReadFilesRequest;
1629
577
  headers?: {
1630
578
  Accept?: string;
1631
579
  };
1632
- path: {
1633
- accountId: string;
1634
- };
580
+ path?: never;
1635
581
  query?: never;
1636
- url: '/api/paccounts/{accountId}/browser/configs';
582
+ url: '/api/codding_tool/read_files';
1637
583
  };
1638
- export type PAccountCreateBrowserConfigErrors = {
584
+ export type CoddingToolReadFilesErrors = {
1639
585
  /**
1640
586
  * Bad Request _(validation or deserialization error)_
1641
587
  */
@@ -1646,26 +592,27 @@ export type PAccountCreateBrowserConfigErrors = {
1646
592
  500: HttpError;
1647
593
  default: unknown;
1648
594
  };
1649
- export type PAccountCreateBrowserConfigError = PAccountCreateBrowserConfigErrors[keyof PAccountCreateBrowserConfigErrors];
1650
- export type PAccountCreateBrowserConfigResponses = {
595
+ export type CoddingToolReadFilesError = CoddingToolReadFilesErrors[keyof CoddingToolReadFilesErrors];
596
+ export type CoddingToolReadFilesResponses = {
1651
597
  /**
1652
598
  * OK
1653
599
  */
1654
- 200: OperationMessage;
600
+ 200: ReadFilesResponse;
1655
601
  };
1656
- export type PAccountCreateBrowserConfigResponse = PAccountCreateBrowserConfigResponses[keyof PAccountCreateBrowserConfigResponses];
1657
- export type PAccountLaunchBrowserData = {
1658
- body?: never;
602
+ export type CoddingToolReadFilesResponse = CoddingToolReadFilesResponses[keyof CoddingToolReadFilesResponses];
603
+ export type CoddingToolSearchFilesData = {
604
+ /**
605
+ * Request body for coddingtool.SearchFilesRequest
606
+ */
607
+ body: SearchFilesRequest;
1659
608
  headers?: {
1660
609
  Accept?: string;
1661
610
  };
1662
- path: {
1663
- accountId: string;
1664
- };
611
+ path?: never;
1665
612
  query?: never;
1666
- url: '/api/paccounts/{accountId}/browser/launch';
613
+ url: '/api/codding_tool/search_files';
1667
614
  };
1668
- export type PAccountLaunchBrowserErrors = {
615
+ export type CoddingToolSearchFilesErrors = {
1669
616
  /**
1670
617
  * Bad Request _(validation or deserialization error)_
1671
618
  */
@@ -1676,26 +623,27 @@ export type PAccountLaunchBrowserErrors = {
1676
623
  500: HttpError;
1677
624
  default: unknown;
1678
625
  };
1679
- export type PAccountLaunchBrowserError = PAccountLaunchBrowserErrors[keyof PAccountLaunchBrowserErrors];
1680
- export type PAccountLaunchBrowserResponses = {
626
+ export type CoddingToolSearchFilesError = CoddingToolSearchFilesErrors[keyof CoddingToolSearchFilesErrors];
627
+ export type CoddingToolSearchFilesResponses = {
1681
628
  /**
1682
629
  * OK
1683
630
  */
1684
- 200: OperationMessage;
631
+ 200: SearchFilesResponse;
1685
632
  };
1686
- export type PAccountLaunchBrowserResponse = PAccountLaunchBrowserResponses[keyof PAccountLaunchBrowserResponses];
1687
- export type PAccountListSessionsData = {
1688
- body?: never;
633
+ export type CoddingToolSearchFilesResponse = CoddingToolSearchFilesResponses[keyof CoddingToolSearchFilesResponses];
634
+ export type CodeRunData = {
635
+ /**
636
+ * Request body for code.RunCodeReq
637
+ */
638
+ body: RunCodeReq;
1689
639
  headers?: {
1690
640
  Accept?: string;
1691
641
  };
1692
- path: {
1693
- accountId: string;
1694
- };
642
+ path?: never;
1695
643
  query?: never;
1696
- url: '/api/paccounts/{accountId}/sessions';
644
+ url: '/api/code/run';
1697
645
  };
1698
- export type PAccountListSessionsErrors = {
646
+ export type CodeRunErrors = {
1699
647
  /**
1700
648
  * Bad Request _(validation or deserialization error)_
1701
649
  */
@@ -1706,29 +654,27 @@ export type PAccountListSessionsErrors = {
1706
654
  500: HttpError;
1707
655
  default: unknown;
1708
656
  };
1709
- export type PAccountListSessionsError = PAccountListSessionsErrors[keyof PAccountListSessionsErrors];
1710
- export type PAccountListSessionsResponses = {
657
+ export type CodeRunError = CodeRunErrors[keyof CodeRunErrors];
658
+ export type CodeRunResponses = {
1711
659
  /**
1712
660
  * OK
1713
661
  */
1714
- 200: Array<PAccountSession>;
662
+ 200: CodeRunResult;
1715
663
  };
1716
- export type PAccountListSessionsResponse = PAccountListSessionsResponses[keyof PAccountListSessionsResponses];
1717
- export type PAccountCreateSessionData = {
664
+ export type CodeRunResponse = CodeRunResponses[keyof CodeRunResponses];
665
+ export type ComputeAddNodeData = {
1718
666
  /**
1719
- * Request body for paccount.CreateSessionRequest
667
+ * Request body for compute.AddComputeNodeReq
1720
668
  */
1721
- body: CreateSessionRequest;
669
+ body: AddComputeNodeReq;
1722
670
  headers?: {
1723
671
  Accept?: string;
1724
672
  };
1725
- path: {
1726
- accountId: string;
1727
- };
673
+ path?: never;
1728
674
  query?: never;
1729
- url: '/api/paccounts/{accountId}/sessions';
675
+ url: '/api/compute/nodes/add';
1730
676
  };
1731
- export type PAccountCreateSessionErrors = {
677
+ export type ComputeAddNodeErrors = {
1732
678
  /**
1733
679
  * Bad Request _(validation or deserialization error)_
1734
680
  */
@@ -1739,27 +685,27 @@ export type PAccountCreateSessionErrors = {
1739
685
  500: HttpError;
1740
686
  default: unknown;
1741
687
  };
1742
- export type PAccountCreateSessionError = PAccountCreateSessionErrors[keyof PAccountCreateSessionErrors];
1743
- export type PAccountCreateSessionResponses = {
688
+ export type ComputeAddNodeError = ComputeAddNodeErrors[keyof ComputeAddNodeErrors];
689
+ export type ComputeAddNodeResponses = {
1744
690
  /**
1745
691
  * OK
1746
692
  */
1747
- 200: OperationMessage;
693
+ 200: UnknownInterface;
1748
694
  };
1749
- export type PAccountCreateSessionResponse = PAccountCreateSessionResponses[keyof PAccountCreateSessionResponses];
1750
- export type PAccountDeleteSessionData = {
1751
- body?: never;
695
+ export type ComputeAddNodeResponse = ComputeAddNodeResponses[keyof ComputeAddNodeResponses];
696
+ export type ComputeListNodesData = {
697
+ /**
698
+ * Request body for compute.ListComputeNodesReq
699
+ */
700
+ body: ListComputeNodesReq;
1752
701
  headers?: {
1753
702
  Accept?: string;
1754
703
  };
1755
- path: {
1756
- accountId: string;
1757
- sessionId: string;
1758
- };
704
+ path?: never;
1759
705
  query?: never;
1760
- url: '/api/paccounts/{accountId}/sessions/{sessionId}';
706
+ url: '/api/compute/nodes/list';
1761
707
  };
1762
- export type PAccountDeleteSessionErrors = {
708
+ export type ComputeListNodesErrors = {
1763
709
  /**
1764
710
  * Bad Request _(validation or deserialization error)_
1765
711
  */
@@ -1770,27 +716,27 @@ export type PAccountDeleteSessionErrors = {
1770
716
  500: HttpError;
1771
717
  default: unknown;
1772
718
  };
1773
- export type PAccountDeleteSessionError = PAccountDeleteSessionErrors[keyof PAccountDeleteSessionErrors];
1774
- export type PAccountDeleteSessionResponses = {
719
+ export type ComputeListNodesError = ComputeListNodesErrors[keyof ComputeListNodesErrors];
720
+ export type ComputeListNodesResponses = {
1775
721
  /**
1776
722
  * OK
1777
723
  */
1778
- 200: OperationSuccess;
724
+ 200: UnknownInterface;
1779
725
  };
1780
- export type PAccountDeleteSessionResponse = PAccountDeleteSessionResponses[keyof PAccountDeleteSessionResponses];
1781
- export type PAccountGetSessionData = {
1782
- body?: never;
726
+ export type ComputeListNodesResponse = ComputeListNodesResponses[keyof ComputeListNodesResponses];
727
+ export type ComputeRemoveNodeData = {
728
+ /**
729
+ * Request body for compute.RemoveComputeNodeReq
730
+ */
731
+ body: RemoveComputeNodeReq;
1783
732
  headers?: {
1784
733
  Accept?: string;
1785
734
  };
1786
- path: {
1787
- accountId: string;
1788
- sessionId: string;
1789
- };
735
+ path?: never;
1790
736
  query?: never;
1791
- url: '/api/paccounts/{accountId}/sessions/{sessionId}';
737
+ url: '/api/compute/nodes/remove';
1792
738
  };
1793
- export type PAccountGetSessionErrors = {
739
+ export type ComputeRemoveNodeErrors = {
1794
740
  /**
1795
741
  * Bad Request _(validation or deserialization error)_
1796
742
  */
@@ -1801,30 +747,27 @@ export type PAccountGetSessionErrors = {
1801
747
  500: HttpError;
1802
748
  default: unknown;
1803
749
  };
1804
- export type PAccountGetSessionError = PAccountGetSessionErrors[keyof PAccountGetSessionErrors];
1805
- export type PAccountGetSessionResponses = {
750
+ export type ComputeRemoveNodeError = ComputeRemoveNodeErrors[keyof ComputeRemoveNodeErrors];
751
+ export type ComputeRemoveNodeResponses = {
1806
752
  /**
1807
753
  * OK
1808
754
  */
1809
- 200: PAccountSession;
755
+ 200: UnknownInterface;
1810
756
  };
1811
- export type PAccountGetSessionResponse = PAccountGetSessionResponses[keyof PAccountGetSessionResponses];
1812
- export type PAccountUpdateSessionData = {
757
+ export type ComputeRemoveNodeResponse = ComputeRemoveNodeResponses[keyof ComputeRemoveNodeResponses];
758
+ export type DbQueryExecuteQueryData = {
1813
759
  /**
1814
- * Request body for paccount.UpdateSessionRequest
760
+ * Request body for dbquery.QueryRequest
1815
761
  */
1816
- body: UpdateSessionRequest;
762
+ body: QueryRequest;
1817
763
  headers?: {
1818
764
  Accept?: string;
1819
765
  };
1820
- path: {
1821
- accountId: string;
1822
- sessionId: string;
1823
- };
766
+ path?: never;
1824
767
  query?: never;
1825
- url: '/api/paccounts/{accountId}/sessions/{sessionId}';
768
+ url: '/api/db_query/query';
1826
769
  };
1827
- export type PAccountUpdateSessionErrors = {
770
+ export type DbQueryExecuteQueryErrors = {
1828
771
  /**
1829
772
  * Bad Request _(validation or deserialization error)_
1830
773
  */
@@ -1835,24 +778,27 @@ export type PAccountUpdateSessionErrors = {
1835
778
  500: HttpError;
1836
779
  default: unknown;
1837
780
  };
1838
- export type PAccountUpdateSessionError = PAccountUpdateSessionErrors[keyof PAccountUpdateSessionErrors];
1839
- export type PAccountUpdateSessionResponses = {
781
+ export type DbQueryExecuteQueryError = DbQueryExecuteQueryErrors[keyof DbQueryExecuteQueryErrors];
782
+ export type DbQueryExecuteQueryResponses = {
1840
783
  /**
1841
784
  * OK
1842
785
  */
1843
- 200: OperationMessage;
786
+ 200: QueryResponse;
1844
787
  };
1845
- export type PAccountUpdateSessionResponse = PAccountUpdateSessionResponses[keyof PAccountUpdateSessionResponses];
1846
- export type PlatformListData2 = {
1847
- body?: never;
788
+ export type DbQueryExecuteQueryResponse = DbQueryExecuteQueryResponses[keyof DbQueryExecuteQueryResponses];
789
+ export type HumanRequestActionData = {
790
+ /**
791
+ * Request body for human.HumanActionReq
792
+ */
793
+ body: HumanActionReq;
1848
794
  headers?: {
1849
795
  Accept?: string;
1850
796
  };
1851
797
  path?: never;
1852
798
  query?: never;
1853
- url: '/api/platforms';
799
+ url: '/api/human/action';
1854
800
  };
1855
- export type PlatformListErrors = {
801
+ export type HumanRequestActionErrors = {
1856
802
  /**
1857
803
  * Bad Request _(validation or deserialization error)_
1858
804
  */
@@ -1863,27 +809,27 @@ export type PlatformListErrors = {
1863
809
  500: HttpError;
1864
810
  default: unknown;
1865
811
  };
1866
- export type PlatformListError = PlatformListErrors[keyof PlatformListErrors];
1867
- export type PlatformListResponses = {
812
+ export type HumanRequestActionError = HumanRequestActionErrors[keyof HumanRequestActionErrors];
813
+ export type HumanRequestActionResponses = {
1868
814
  /**
1869
815
  * OK
1870
816
  */
1871
- 200: PlatformListData;
817
+ 200: HumanActionResp;
1872
818
  };
1873
- export type PlatformListResponse = PlatformListResponses[keyof PlatformListResponses];
1874
- export type PlatformCreateData = {
819
+ export type HumanRequestActionResponse = HumanRequestActionResponses[keyof HumanRequestActionResponses];
820
+ export type NapcatStartData = {
1875
821
  /**
1876
- * Request body for platform.CreatePlatformRequest
822
+ * Request body for napcat.StartNapcatRequest
1877
823
  */
1878
- body: CreatePlatformRequest;
824
+ body: StartNapcatRequest;
1879
825
  headers?: {
1880
826
  Accept?: string;
1881
827
  };
1882
828
  path?: never;
1883
829
  query?: never;
1884
- url: '/api/platforms';
830
+ url: '/api/napcat/start';
1885
831
  };
1886
- export type PlatformCreateErrors = {
832
+ export type NapcatStartErrors = {
1887
833
  /**
1888
834
  * Bad Request _(validation or deserialization error)_
1889
835
  */
@@ -1894,24 +840,24 @@ export type PlatformCreateErrors = {
1894
840
  500: HttpError;
1895
841
  default: unknown;
1896
842
  };
1897
- export type PlatformCreateError = PlatformCreateErrors[keyof PlatformCreateErrors];
1898
- export type PlatformCreateResponses = {
843
+ export type NapcatStartError = NapcatStartErrors[keyof NapcatStartErrors];
844
+ export type NapcatStartResponses = {
1899
845
  /**
1900
846
  * OK
1901
847
  */
1902
- 200: PlatformResponse;
848
+ 200: NapcatStatus;
1903
849
  };
1904
- export type PlatformCreateResponse = PlatformCreateResponses[keyof PlatformCreateResponses];
1905
- export type PlatformExportData = {
850
+ export type NapcatStartResponse = NapcatStartResponses[keyof NapcatStartResponses];
851
+ export type NapcatGetStatusData = {
1906
852
  body?: never;
1907
853
  headers?: {
1908
854
  Accept?: string;
1909
855
  };
1910
856
  path?: never;
1911
857
  query?: never;
1912
- url: '/api/platforms/export';
858
+ url: '/api/napcat/status';
1913
859
  };
1914
- export type PlatformExportErrors = {
860
+ export type NapcatGetStatusErrors = {
1915
861
  /**
1916
862
  * Bad Request _(validation or deserialization error)_
1917
863
  */
@@ -1922,27 +868,24 @@ export type PlatformExportErrors = {
1922
868
  500: HttpError;
1923
869
  default: unknown;
1924
870
  };
1925
- export type PlatformExportError = PlatformExportErrors[keyof PlatformExportErrors];
1926
- export type PlatformExportResponses = {
871
+ export type NapcatGetStatusError = NapcatGetStatusErrors[keyof NapcatGetStatusErrors];
872
+ export type NapcatGetStatusResponses = {
1927
873
  /**
1928
874
  * OK
1929
875
  */
1930
- 200: ExportPlatformsResponse;
876
+ 200: NapcatStatus;
1931
877
  };
1932
- export type PlatformExportResponse = PlatformExportResponses[keyof PlatformExportResponses];
1933
- export type PlatformImportData = {
1934
- /**
1935
- * Request body for platform.ImportPlatformsRequest
1936
- */
1937
- body: ImportPlatformsRequest;
878
+ export type NapcatGetStatusResponse = NapcatGetStatusResponses[keyof NapcatGetStatusResponses];
879
+ export type NapcatProxyOneBot11GetData = {
880
+ body?: never;
1938
881
  headers?: {
1939
882
  Accept?: string;
1940
883
  };
1941
884
  path?: never;
1942
885
  query?: never;
1943
- url: '/api/platforms/import';
886
+ url: '/api/onebot11/*';
1944
887
  };
1945
- export type PlatformImportErrors = {
888
+ export type NapcatProxyOneBot11GetErrors = {
1946
889
  /**
1947
890
  * Bad Request _(validation or deserialization error)_
1948
891
  */
@@ -1953,26 +896,24 @@ export type PlatformImportErrors = {
1953
896
  500: HttpError;
1954
897
  default: unknown;
1955
898
  };
1956
- export type PlatformImportError = PlatformImportErrors[keyof PlatformImportErrors];
1957
- export type PlatformImportResponses = {
899
+ export type NapcatProxyOneBot11GetError = NapcatProxyOneBot11GetErrors[keyof NapcatProxyOneBot11GetErrors];
900
+ export type NapcatProxyOneBot11GetResponses = {
1958
901
  /**
1959
902
  * OK
1960
903
  */
1961
- 200: ImportPlatformsResponse;
904
+ 200: UnknownInterface;
1962
905
  };
1963
- export type PlatformImportResponse = PlatformImportResponses[keyof PlatformImportResponses];
1964
- export type PlatformDeleteData = {
906
+ export type NapcatProxyOneBot11GetResponse = NapcatProxyOneBot11GetResponses[keyof NapcatProxyOneBot11GetResponses];
907
+ export type NapcatProxyOneBot11PostData = {
1965
908
  body?: never;
1966
909
  headers?: {
1967
910
  Accept?: string;
1968
911
  };
1969
- path: {
1970
- platformId: string;
1971
- };
912
+ path?: never;
1972
913
  query?: never;
1973
- url: '/api/platforms/{platformId}';
914
+ url: '/api/onebot11/*';
1974
915
  };
1975
- export type PlatformDeleteErrors = {
916
+ export type NapcatProxyOneBot11PostErrors = {
1976
917
  /**
1977
918
  * Bad Request _(validation or deserialization error)_
1978
919
  */
@@ -1983,26 +924,27 @@ export type PlatformDeleteErrors = {
1983
924
  500: HttpError;
1984
925
  default: unknown;
1985
926
  };
1986
- export type PlatformDeleteError = PlatformDeleteErrors[keyof PlatformDeleteErrors];
1987
- export type PlatformDeleteResponses = {
927
+ export type NapcatProxyOneBot11PostError = NapcatProxyOneBot11PostErrors[keyof NapcatProxyOneBot11PostErrors];
928
+ export type NapcatProxyOneBot11PostResponses = {
1988
929
  /**
1989
930
  * OK
1990
931
  */
1991
- 200: Bool;
932
+ 200: UnknownInterface;
1992
933
  };
1993
- export type PlatformDeleteResponse = PlatformDeleteResponses[keyof PlatformDeleteResponses];
1994
- export type PlatformGetData = {
1995
- body?: never;
934
+ export type NapcatProxyOneBot11PostResponse = NapcatProxyOneBot11PostResponses[keyof NapcatProxyOneBot11PostResponses];
935
+ export type SandboxEnsureData = {
936
+ /**
937
+ * Request body for sandbox.EnsureSandboxReq
938
+ */
939
+ body: EnsureSandboxReq;
1996
940
  headers?: {
1997
941
  Accept?: string;
1998
942
  };
1999
- path: {
2000
- platformId: string;
2001
- };
943
+ path?: never;
2002
944
  query?: never;
2003
- url: '/api/platforms/{platformId}';
945
+ url: '/api/sandbox/ensure';
2004
946
  };
2005
- export type PlatformGetErrors = {
947
+ export type SandboxEnsureErrors = {
2006
948
  /**
2007
949
  * Bad Request _(validation or deserialization error)_
2008
950
  */
@@ -2013,29 +955,27 @@ export type PlatformGetErrors = {
2013
955
  500: HttpError;
2014
956
  default: unknown;
2015
957
  };
2016
- export type PlatformGetError = PlatformGetErrors[keyof PlatformGetErrors];
2017
- export type PlatformGetResponses = {
958
+ export type SandboxEnsureError = SandboxEnsureErrors[keyof SandboxEnsureErrors];
959
+ export type SandboxEnsureResponses = {
2018
960
  /**
2019
961
  * OK
2020
962
  */
2021
- 200: PlatformResponse;
963
+ 200: EnsureSandboxResp;
2022
964
  };
2023
- export type PlatformGetResponse = PlatformGetResponses[keyof PlatformGetResponses];
2024
- export type PlatformUpdateData = {
965
+ export type SandboxEnsureResponse = SandboxEnsureResponses[keyof SandboxEnsureResponses];
966
+ export type SandboxListTasksData = {
2025
967
  /**
2026
- * Request body for platform.UpdatePlatformRequest
968
+ * Request body for sandbox.ListTasksReq
2027
969
  */
2028
- body: UpdatePlatformRequest;
970
+ body: ListTasksReq;
2029
971
  headers?: {
2030
972
  Accept?: string;
2031
973
  };
2032
- path: {
2033
- platformId: string;
2034
- };
974
+ path?: never;
2035
975
  query?: never;
2036
- url: '/api/platforms/{platformId}';
976
+ url: '/api/sandbox/tasks';
2037
977
  };
2038
- export type PlatformUpdateErrors = {
978
+ export type SandboxListTasksErrors = {
2039
979
  /**
2040
980
  * Bad Request _(validation or deserialization error)_
2041
981
  */
@@ -2046,14 +986,14 @@ export type PlatformUpdateErrors = {
2046
986
  500: HttpError;
2047
987
  default: unknown;
2048
988
  };
2049
- export type PlatformUpdateError = PlatformUpdateErrors[keyof PlatformUpdateErrors];
2050
- export type PlatformUpdateResponses = {
989
+ export type SandboxListTasksError = SandboxListTasksErrors[keyof SandboxListTasksErrors];
990
+ export type SandboxListTasksResponses = {
2051
991
  /**
2052
992
  * OK
2053
993
  */
2054
- 200: PlatformResponse;
994
+ 200: UnknownInterface;
2055
995
  };
2056
- export type PlatformUpdateResponse = PlatformUpdateResponses[keyof PlatformUpdateResponses];
996
+ export type SandboxListTasksResponse = SandboxListTasksResponses[keyof SandboxListTasksResponses];
2057
997
  export type TaskRunData = {
2058
998
  /**
2059
999
  * Request body for task.TaskRunReq
@@ -2085,34 +1025,6 @@ export type TaskRunResponses = {
2085
1025
  200: TaskRunResp;
2086
1026
  };
2087
1027
  export type TaskRunResponse = TaskRunResponses[keyof TaskRunResponses];
2088
- export type UserGetCurrentData = {
2089
- body?: never;
2090
- headers?: {
2091
- Accept?: string;
2092
- };
2093
- path?: never;
2094
- query?: never;
2095
- url: '/api/users/current';
2096
- };
2097
- export type UserGetCurrentErrors = {
2098
- /**
2099
- * Bad Request _(validation or deserialization error)_
2100
- */
2101
- 400: HttpError;
2102
- /**
2103
- * Internal Server Error _(panics)_
2104
- */
2105
- 500: HttpError;
2106
- default: unknown;
2107
- };
2108
- export type UserGetCurrentError = UserGetCurrentErrors[keyof UserGetCurrentErrors];
2109
- export type UserGetCurrentResponses = {
2110
- /**
2111
- * OK
2112
- */
2113
- 200: UserResponse;
2114
- };
2115
- export type UserGetCurrentResponse = UserGetCurrentResponses[keyof UserGetCurrentResponses];
2116
1028
  export type NapcatProxyWebUigetData = {
2117
1029
  body?: never;
2118
1030
  headers?: {