mtmsdk 0.0.15 → 0.0.16

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 (480) hide show
  1. package/dist/adk/api/client.d.ts +9 -0
  2. package/dist/adk/api/client.d.ts.map +1 -0
  3. package/dist/adk/api/client.js +39 -0
  4. package/dist/adk/api/client.js.map +1 -0
  5. package/dist/adk/core/constants/tool-icons.d.ts +21 -0
  6. package/dist/adk/core/constants/tool-icons.d.ts.map +1 -0
  7. package/dist/adk/core/constants/tool-icons.js +47 -0
  8. package/dist/adk/core/constants/tool-icons.js.map +1 -0
  9. package/dist/adk/core/models/AgentBuilder.d.ts +77 -0
  10. package/dist/adk/core/models/AgentBuilder.d.ts.map +1 -0
  11. package/dist/adk/core/models/AgentBuilder.js +18 -0
  12. package/dist/adk/core/models/AgentBuilder.js.map +1 -0
  13. package/dist/adk/core/models/AgentRunRequest.d.ts +37 -0
  14. package/dist/adk/core/models/AgentRunRequest.d.ts.map +1 -0
  15. package/dist/adk/core/models/AgentRunRequest.js +18 -0
  16. package/dist/adk/core/models/AgentRunRequest.js.map +1 -0
  17. package/dist/adk/core/models/Eval.d.ts +55 -0
  18. package/dist/adk/core/models/Eval.d.ts.map +1 -0
  19. package/dist/adk/core/models/Eval.js +27 -0
  20. package/dist/adk/core/models/Eval.js.map +1 -0
  21. package/dist/adk/core/models/LiveRequest.d.ts +23 -0
  22. package/dist/adk/core/models/LiveRequest.d.ts.map +1 -0
  23. package/dist/adk/core/models/LiveRequest.js +18 -0
  24. package/dist/adk/core/models/LiveRequest.js.map +1 -0
  25. package/dist/adk/core/models/RuntimeConfig.d.ts +32 -0
  26. package/dist/adk/core/models/RuntimeConfig.d.ts.map +1 -0
  27. package/dist/adk/core/models/RuntimeConfig.js +18 -0
  28. package/dist/adk/core/models/RuntimeConfig.js.map +1 -0
  29. package/dist/adk/core/models/Session.d.ts +117 -0
  30. package/dist/adk/core/models/Session.d.ts.map +1 -0
  31. package/dist/adk/core/models/Session.js +31 -0
  32. package/dist/adk/core/models/Session.js.map +1 -0
  33. package/dist/adk/core/models/Trace.d.ts +40 -0
  34. package/dist/adk/core/models/Trace.d.ts.map +1 -0
  35. package/dist/adk/core/models/Trace.js +2 -0
  36. package/dist/adk/core/models/Trace.js.map +1 -0
  37. package/dist/adk/core/models/types.d.ts +338 -0
  38. package/dist/adk/core/models/types.d.ts.map +1 -0
  39. package/dist/adk/core/models/types.js +189 -0
  40. package/dist/adk/core/models/types.js.map +1 -0
  41. package/dist/api_hatchet/@tanstack/react-query.gen.d.ts +3017 -0
  42. package/dist/api_hatchet/@tanstack/react-query.gen.d.ts.map +1 -0
  43. package/dist/api_hatchet/@tanstack/react-query.gen.js +2776 -0
  44. package/dist/api_hatchet/@tanstack/react-query.gen.js.map +1 -0
  45. package/dist/api_hatchet/client/client.gen.d.ts +3 -0
  46. package/dist/api_hatchet/client/client.gen.d.ts.map +1 -0
  47. package/dist/{gomtmapi → api_hatchet}/client/client.gen.js +70 -46
  48. package/dist/api_hatchet/client/client.gen.js.map +1 -0
  49. package/dist/api_hatchet/client/index.d.ts +9 -0
  50. package/dist/api_hatchet/client/index.d.ts.map +1 -0
  51. package/dist/api_hatchet/client/index.js +7 -0
  52. package/dist/api_hatchet/client/index.js.map +1 -0
  53. package/dist/{gomtmapi → api_hatchet}/client/types.gen.d.ts +19 -26
  54. package/dist/api_hatchet/client/types.gen.d.ts.map +1 -0
  55. package/dist/api_hatchet/client/types.gen.js.map +1 -0
  56. package/dist/{gomtmapi → api_hatchet}/client/utils.gen.d.ts +4 -4
  57. package/dist/api_hatchet/client/utils.gen.d.ts.map +1 -0
  58. package/dist/{gomtmapi → api_hatchet}/client/utils.gen.js +41 -40
  59. package/dist/api_hatchet/client/utils.gen.js.map +1 -0
  60. package/dist/{gomtmapi → api_hatchet}/client.gen.d.ts +2 -2
  61. package/dist/api_hatchet/client.gen.d.ts.map +1 -0
  62. package/dist/{gomtmapi → api_hatchet}/client.gen.js +1 -1
  63. package/dist/api_hatchet/client.gen.js.map +1 -0
  64. package/dist/{gomtmapi → api_hatchet}/core/auth.gen.d.ts +3 -3
  65. package/dist/api_hatchet/core/auth.gen.d.ts.map +1 -0
  66. package/dist/{gomtmapi → api_hatchet}/core/auth.gen.js +3 -3
  67. package/dist/api_hatchet/core/auth.gen.js.map +1 -0
  68. package/dist/{gomtmapi → api_hatchet}/core/bodySerializer.gen.d.ts +13 -5
  69. package/dist/api_hatchet/core/bodySerializer.gen.d.ts.map +1 -0
  70. package/dist/{gomtmapi → api_hatchet}/core/bodySerializer.gen.js +3 -3
  71. package/dist/api_hatchet/core/bodySerializer.gen.js.map +1 -0
  72. package/dist/{gomtmapi → api_hatchet}/core/params.gen.d.ts +13 -3
  73. package/dist/api_hatchet/core/params.gen.d.ts.map +1 -0
  74. package/dist/{gomtmapi → api_hatchet}/core/params.gen.js +24 -12
  75. package/dist/api_hatchet/core/params.gen.js.map +1 -0
  76. package/dist/{gomtmapi → api_hatchet}/core/pathSerializer.gen.d.ts +3 -3
  77. package/dist/api_hatchet/core/pathSerializer.gen.d.ts.map +1 -0
  78. package/dist/{gomtmapi → api_hatchet}/core/pathSerializer.gen.js +36 -36
  79. package/dist/api_hatchet/core/pathSerializer.gen.js.map +1 -0
  80. package/dist/api_hatchet/core/queryKeySerializer.gen.d.ts +19 -0
  81. package/dist/api_hatchet/core/queryKeySerializer.gen.d.ts.map +1 -0
  82. package/dist/api_hatchet/core/queryKeySerializer.gen.js +100 -0
  83. package/dist/api_hatchet/core/queryKeySerializer.gen.js.map +1 -0
  84. package/dist/{gomtmapi → api_hatchet}/core/serverSentEvents.gen.d.ts +3 -3
  85. package/dist/api_hatchet/core/serverSentEvents.gen.d.ts.map +1 -0
  86. package/dist/{gomtmapi → api_hatchet}/core/serverSentEvents.gen.js +20 -18
  87. package/dist/api_hatchet/core/serverSentEvents.gen.js.map +1 -0
  88. package/dist/{gomtmapi → api_hatchet}/core/types.gen.d.ts +4 -4
  89. package/dist/api_hatchet/core/types.gen.d.ts.map +1 -0
  90. package/dist/api_hatchet/core/types.gen.js.map +1 -0
  91. package/dist/{gomtmapi → api_hatchet}/core/utils.gen.d.ts +1 -1
  92. package/dist/api_hatchet/core/utils.gen.d.ts.map +1 -0
  93. package/dist/{gomtmapi → api_hatchet}/core/utils.gen.js +17 -17
  94. package/dist/api_hatchet/core/utils.gen.js.map +1 -0
  95. package/dist/api_hatchet/index.d.ts +3 -0
  96. package/dist/api_hatchet/index.d.ts.map +1 -0
  97. package/dist/api_hatchet/index.js +4 -0
  98. package/dist/api_hatchet/index.js.map +1 -0
  99. package/dist/api_hatchet/schemas.gen.d.ts +4068 -0
  100. package/dist/api_hatchet/schemas.gen.d.ts.map +1 -0
  101. package/dist/api_hatchet/schemas.gen.js +4743 -0
  102. package/dist/api_hatchet/schemas.gen.js.map +1 -0
  103. package/dist/api_hatchet/sdk.gen.d.ts +784 -0
  104. package/dist/api_hatchet/sdk.gen.d.ts.map +1 -0
  105. package/dist/api_hatchet/sdk.gen.js +1849 -0
  106. package/dist/api_hatchet/sdk.gen.js.map +1 -0
  107. package/dist/api_hatchet/types.gen.d.ts +6861 -0
  108. package/dist/api_hatchet/types.gen.d.ts.map +1 -0
  109. package/dist/api_hatchet/types.gen.js +209 -0
  110. package/dist/api_hatchet/types.gen.js.map +1 -0
  111. package/dist/api_hatchet/zod.gen.d.ts +10429 -0
  112. package/dist/api_hatchet/zod.gen.d.ts.map +1 -0
  113. package/dist/api_hatchet/zod.gen.js +2766 -0
  114. package/dist/api_hatchet/zod.gen.js.map +1 -0
  115. package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts +114 -687
  116. package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts.map +1 -1
  117. package/dist/gomtmapi_v2/@tanstack/react-query.gen.js +418 -1026
  118. package/dist/gomtmapi_v2/@tanstack/react-query.gen.js.map +1 -1
  119. package/dist/gomtmapi_v2/client/client.gen.d.ts +1 -1
  120. package/dist/gomtmapi_v2/client/client.gen.d.ts.map +1 -1
  121. package/dist/gomtmapi_v2/client/client.gen.js +70 -46
  122. package/dist/gomtmapi_v2/client/client.gen.js.map +1 -1
  123. package/dist/gomtmapi_v2/client/index.d.ts +8 -8
  124. package/dist/gomtmapi_v2/client/index.d.ts.map +1 -1
  125. package/dist/gomtmapi_v2/client/index.js +5 -5
  126. package/dist/gomtmapi_v2/client/index.js.map +1 -1
  127. package/dist/gomtmapi_v2/client/types.gen.d.ts +19 -26
  128. package/dist/gomtmapi_v2/client/types.gen.d.ts.map +1 -1
  129. package/dist/gomtmapi_v2/client/utils.gen.d.ts +3 -3
  130. package/dist/gomtmapi_v2/client/utils.gen.d.ts.map +1 -1
  131. package/dist/gomtmapi_v2/client/utils.gen.js +34 -34
  132. package/dist/gomtmapi_v2/client/utils.gen.js.map +1 -1
  133. package/dist/gomtmapi_v2/client.gen.d.ts +2 -2
  134. package/dist/gomtmapi_v2/client.gen.d.ts.map +1 -1
  135. package/dist/gomtmapi_v2/client.gen.js +1 -1
  136. package/dist/gomtmapi_v2/client.gen.js.map +1 -1
  137. package/dist/gomtmapi_v2/core/auth.gen.d.ts +3 -3
  138. package/dist/gomtmapi_v2/core/auth.gen.js +3 -3
  139. package/dist/gomtmapi_v2/core/bodySerializer.gen.d.ts +1 -1
  140. package/dist/gomtmapi_v2/core/bodySerializer.gen.js +3 -3
  141. package/dist/gomtmapi_v2/core/params.gen.d.ts +13 -3
  142. package/dist/gomtmapi_v2/core/params.gen.d.ts.map +1 -1
  143. package/dist/gomtmapi_v2/core/params.gen.js +24 -12
  144. package/dist/gomtmapi_v2/core/params.gen.js.map +1 -1
  145. package/dist/gomtmapi_v2/core/pathSerializer.gen.d.ts +3 -3
  146. package/dist/gomtmapi_v2/core/pathSerializer.gen.js +36 -36
  147. package/dist/gomtmapi_v2/core/queryKeySerializer.gen.js +11 -11
  148. package/dist/gomtmapi_v2/core/serverSentEvents.gen.d.ts +3 -3
  149. package/dist/gomtmapi_v2/core/serverSentEvents.gen.d.ts.map +1 -1
  150. package/dist/gomtmapi_v2/core/serverSentEvents.gen.js +20 -18
  151. package/dist/gomtmapi_v2/core/serverSentEvents.gen.js.map +1 -1
  152. package/dist/gomtmapi_v2/core/types.gen.d.ts +4 -4
  153. package/dist/gomtmapi_v2/core/types.gen.d.ts.map +1 -1
  154. package/dist/gomtmapi_v2/core/utils.gen.d.ts +1 -1
  155. package/dist/gomtmapi_v2/core/utils.gen.js +17 -17
  156. package/dist/gomtmapi_v2/index.d.ts +2 -2
  157. package/dist/gomtmapi_v2/index.js +1 -1
  158. package/dist/gomtmapi_v2/schemas.gen.d.ts +51 -727
  159. package/dist/gomtmapi_v2/schemas.gen.d.ts.map +1 -1
  160. package/dist/gomtmapi_v2/schemas.gen.js +752 -1392
  161. package/dist/gomtmapi_v2/schemas.gen.js.map +1 -1
  162. package/dist/gomtmapi_v2/sdk.gen.d.ts +50 -381
  163. package/dist/gomtmapi_v2/sdk.gen.d.ts.map +1 -1
  164. package/dist/gomtmapi_v2/sdk.gen.js +201 -795
  165. package/dist/gomtmapi_v2/sdk.gen.js.map +1 -1
  166. package/dist/gomtmapi_v2/types.gen.d.ts +132 -917
  167. package/dist/gomtmapi_v2/types.gen.d.ts.map +1 -1
  168. package/dist/gomtmapi_v2/zod.gen.d.ts +40 -734
  169. package/dist/gomtmapi_v2/zod.gen.d.ts.map +1 -1
  170. package/dist/gomtmapi_v2/zod.gen.js +191 -651
  171. package/dist/gomtmapi_v2/zod.gen.js.map +1 -1
  172. package/dist/lib/aisdk/types.d.ts +3 -0
  173. package/dist/lib/aisdk/types.d.ts.map +1 -0
  174. package/dist/lib/aisdk/types.js +5 -0
  175. package/dist/lib/aisdk/types.js.map +1 -0
  176. package/dist/lib/logger/index.d.ts +19 -0
  177. package/dist/lib/logger/index.d.ts.map +1 -0
  178. package/dist/lib/logger/index.js +7 -0
  179. package/dist/lib/logger/index.js.map +1 -0
  180. package/dist/lib/schema.d.ts +41 -0
  181. package/dist/lib/schema.d.ts.map +1 -0
  182. package/dist/lib/schema.js +37 -0
  183. package/dist/lib/schema.js.map +1 -0
  184. package/dist/lib/utils.d.ts +14 -0
  185. package/dist/lib/utils.d.ts.map +1 -0
  186. package/dist/lib/utils.js +45 -0
  187. package/dist/lib/utils.js.map +1 -0
  188. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +145 -1698
  189. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -1
  190. package/dist/mtgate_api/@tanstack/react-query.gen.js +212 -1872
  191. package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -1
  192. package/dist/mtgate_api/client/client.gen.d.ts +1 -1
  193. package/dist/mtgate_api/client/client.gen.d.ts.map +1 -1
  194. package/dist/mtgate_api/client/client.gen.js +70 -46
  195. package/dist/mtgate_api/client/client.gen.js.map +1 -1
  196. package/dist/mtgate_api/client/index.d.ts +8 -8
  197. package/dist/mtgate_api/client/index.d.ts.map +1 -1
  198. package/dist/mtgate_api/client/index.js +5 -5
  199. package/dist/mtgate_api/client/index.js.map +1 -1
  200. package/dist/mtgate_api/client/types.gen.d.ts +19 -26
  201. package/dist/mtgate_api/client/types.gen.d.ts.map +1 -1
  202. package/dist/mtgate_api/client/utils.gen.d.ts +3 -3
  203. package/dist/mtgate_api/client/utils.gen.d.ts.map +1 -1
  204. package/dist/mtgate_api/client/utils.gen.js +34 -34
  205. package/dist/mtgate_api/client/utils.gen.js.map +1 -1
  206. package/dist/mtgate_api/client.gen.d.ts +2 -2
  207. package/dist/mtgate_api/client.gen.d.ts.map +1 -1
  208. package/dist/mtgate_api/client.gen.js +2 -4
  209. package/dist/mtgate_api/client.gen.js.map +1 -1
  210. package/dist/mtgate_api/core/auth.gen.d.ts +3 -3
  211. package/dist/mtgate_api/core/auth.gen.js +3 -3
  212. package/dist/mtgate_api/core/bodySerializer.gen.d.ts +1 -1
  213. package/dist/mtgate_api/core/bodySerializer.gen.js +3 -3
  214. package/dist/mtgate_api/core/params.gen.d.ts +13 -3
  215. package/dist/mtgate_api/core/params.gen.d.ts.map +1 -1
  216. package/dist/mtgate_api/core/params.gen.js +24 -12
  217. package/dist/mtgate_api/core/params.gen.js.map +1 -1
  218. package/dist/mtgate_api/core/pathSerializer.gen.d.ts +3 -3
  219. package/dist/mtgate_api/core/pathSerializer.gen.js +36 -36
  220. package/dist/mtgate_api/core/queryKeySerializer.gen.js +11 -11
  221. package/dist/mtgate_api/core/serverSentEvents.gen.d.ts +3 -3
  222. package/dist/mtgate_api/core/serverSentEvents.gen.d.ts.map +1 -1
  223. package/dist/mtgate_api/core/serverSentEvents.gen.js +20 -18
  224. package/dist/mtgate_api/core/serverSentEvents.gen.js.map +1 -1
  225. package/dist/mtgate_api/core/types.gen.d.ts +4 -4
  226. package/dist/mtgate_api/core/types.gen.d.ts.map +1 -1
  227. package/dist/mtgate_api/core/utils.gen.d.ts +1 -1
  228. package/dist/mtgate_api/core/utils.gen.js +17 -17
  229. package/dist/mtgate_api/index.d.ts +2 -2
  230. package/dist/mtgate_api/index.d.ts.map +1 -1
  231. package/dist/mtgate_api/index.js +1 -2
  232. package/dist/mtgate_api/index.js.map +1 -1
  233. package/dist/mtgate_api/schemas.gen.d.ts +377 -3070
  234. package/dist/mtgate_api/schemas.gen.d.ts.map +1 -1
  235. package/dist/mtgate_api/schemas.gen.js +590 -3332
  236. package/dist/mtgate_api/schemas.gen.js.map +1 -1
  237. package/dist/mtgate_api/sdk.gen.d.ts +25 -205
  238. package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
  239. package/dist/mtgate_api/sdk.gen.js +97 -1097
  240. package/dist/mtgate_api/sdk.gen.js.map +1 -1
  241. package/dist/mtgate_api/types.gen.d.ts +435 -4744
  242. package/dist/mtgate_api/types.gen.d.ts.map +1 -1
  243. package/dist/mtgate_api/types.gen.js +1 -10
  244. package/dist/mtgate_api/types.gen.js.map +1 -1
  245. package/dist/mtgate_api/zod.gen.d.ts +989 -5722
  246. package/dist/mtgate_api/zod.gen.d.ts.map +1 -1
  247. package/dist/mtgate_api/zod.gen.js +340 -2939
  248. package/dist/mtgate_api/zod.gen.js.map +1 -1
  249. package/dist/mtmai_api/@tanstack/react-query.gen.d.ts +82 -82
  250. package/dist/mtmai_api/@tanstack/react-query.gen.d.ts.map +1 -1
  251. package/dist/mtmai_api/@tanstack/react-query.gen.js +416 -475
  252. package/dist/mtmai_api/@tanstack/react-query.gen.js.map +1 -1
  253. package/dist/mtmai_api/client/client.gen.d.ts +1 -1
  254. package/dist/mtmai_api/client/client.gen.d.ts.map +1 -1
  255. package/dist/mtmai_api/client/client.gen.js +70 -46
  256. package/dist/mtmai_api/client/client.gen.js.map +1 -1
  257. package/dist/mtmai_api/client/index.d.ts +8 -8
  258. package/dist/mtmai_api/client/index.d.ts.map +1 -1
  259. package/dist/mtmai_api/client/index.js +5 -5
  260. package/dist/mtmai_api/client/index.js.map +1 -1
  261. package/dist/mtmai_api/client/types.gen.d.ts +19 -26
  262. package/dist/mtmai_api/client/types.gen.d.ts.map +1 -1
  263. package/dist/mtmai_api/client/utils.gen.d.ts +3 -3
  264. package/dist/mtmai_api/client/utils.gen.d.ts.map +1 -1
  265. package/dist/mtmai_api/client/utils.gen.js +34 -34
  266. package/dist/mtmai_api/client/utils.gen.js.map +1 -1
  267. package/dist/mtmai_api/client.gen.d.ts +2 -2
  268. package/dist/mtmai_api/client.gen.d.ts.map +1 -1
  269. package/dist/mtmai_api/client.gen.js +1 -1
  270. package/dist/mtmai_api/client.gen.js.map +1 -1
  271. package/dist/mtmai_api/core/auth.gen.d.ts +3 -3
  272. package/dist/mtmai_api/core/auth.gen.js +3 -3
  273. package/dist/mtmai_api/core/bodySerializer.gen.d.ts +1 -1
  274. package/dist/mtmai_api/core/bodySerializer.gen.js +3 -3
  275. package/dist/mtmai_api/core/params.gen.d.ts +13 -3
  276. package/dist/mtmai_api/core/params.gen.d.ts.map +1 -1
  277. package/dist/mtmai_api/core/params.gen.js +24 -12
  278. package/dist/mtmai_api/core/params.gen.js.map +1 -1
  279. package/dist/mtmai_api/core/pathSerializer.gen.d.ts +3 -3
  280. package/dist/mtmai_api/core/pathSerializer.gen.js +36 -36
  281. package/dist/mtmai_api/core/queryKeySerializer.gen.js +11 -11
  282. package/dist/mtmai_api/core/serverSentEvents.gen.d.ts +3 -3
  283. package/dist/mtmai_api/core/serverSentEvents.gen.d.ts.map +1 -1
  284. package/dist/mtmai_api/core/serverSentEvents.gen.js +20 -18
  285. package/dist/mtmai_api/core/serverSentEvents.gen.js.map +1 -1
  286. package/dist/mtmai_api/core/types.gen.d.ts +4 -4
  287. package/dist/mtmai_api/core/types.gen.d.ts.map +1 -1
  288. package/dist/mtmai_api/core/utils.gen.d.ts +1 -1
  289. package/dist/mtmai_api/core/utils.gen.js +17 -17
  290. package/dist/mtmai_api/index.d.ts +2 -2
  291. package/dist/mtmai_api/index.js +2 -2
  292. package/dist/mtmai_api/schemas.gen.d.ts.map +1 -1
  293. package/dist/mtmai_api/schemas.gen.js +4363 -4616
  294. package/dist/mtmai_api/schemas.gen.js.map +1 -1
  295. package/dist/mtmai_api/sdk.gen.d.ts +2 -2
  296. package/dist/mtmai_api/sdk.gen.d.ts.map +1 -1
  297. package/dist/mtmai_api/sdk.gen.js +188 -391
  298. package/dist/mtmai_api/sdk.gen.js.map +1 -1
  299. package/dist/mtmai_api/types.gen.d.ts +93 -81
  300. package/dist/mtmai_api/types.gen.d.ts.map +1 -1
  301. package/dist/mtmai_api/types.gen.js +97 -103
  302. package/dist/mtmai_api/types.gen.js.map +1 -1
  303. package/dist/mtmai_api/zod.gen.d.ts +794 -794
  304. package/dist/mtmai_api/zod.gen.d.ts.map +1 -1
  305. package/dist/mtmai_api/zod.gen.js +2530 -876
  306. package/dist/mtmai_api/zod.gen.js.map +1 -1
  307. package/dist/sbapi/@tanstack/react-query.gen.d.ts +35 -0
  308. package/dist/sbapi/@tanstack/react-query.gen.d.ts.map +1 -0
  309. package/dist/sbapi/@tanstack/react-query.gen.js +40 -0
  310. package/dist/sbapi/@tanstack/react-query.gen.js.map +1 -0
  311. package/dist/sbapi/client/client.gen.d.ts +3 -0
  312. package/dist/sbapi/client/client.gen.d.ts.map +1 -0
  313. package/dist/sbapi/client/client.gen.js +229 -0
  314. package/dist/sbapi/client/client.gen.js.map +1 -0
  315. package/dist/sbapi/client/index.d.ts +9 -0
  316. package/dist/sbapi/client/index.d.ts.map +1 -0
  317. package/dist/sbapi/client/index.js +7 -0
  318. package/dist/sbapi/client/index.js.map +1 -0
  319. package/dist/sbapi/client/types.gen.d.ts +118 -0
  320. package/dist/sbapi/client/types.gen.d.ts.map +1 -0
  321. package/dist/sbapi/client/types.gen.js +3 -0
  322. package/dist/sbapi/client/types.gen.js.map +1 -0
  323. package/dist/sbapi/client/utils.gen.d.ts +34 -0
  324. package/dist/sbapi/client/utils.gen.d.ts.map +1 -0
  325. package/dist/sbapi/client/utils.gen.js +232 -0
  326. package/dist/sbapi/client/utils.gen.js.map +1 -0
  327. package/dist/sbapi/client.gen.d.ts +13 -0
  328. package/dist/sbapi/client.gen.d.ts.map +1 -0
  329. package/dist/sbapi/client.gen.js +4 -0
  330. package/dist/sbapi/client.gen.js.map +1 -0
  331. package/dist/sbapi/core/auth.gen.d.ts +19 -0
  332. package/dist/sbapi/core/auth.gen.d.ts.map +1 -0
  333. package/dist/sbapi/core/auth.gen.js +15 -0
  334. package/dist/sbapi/core/auth.gen.js.map +1 -0
  335. package/dist/sbapi/core/bodySerializer.gen.d.ts +26 -0
  336. package/dist/sbapi/core/bodySerializer.gen.d.ts.map +1 -0
  337. package/dist/sbapi/core/bodySerializer.gen.js +58 -0
  338. package/dist/sbapi/core/bodySerializer.gen.js.map +1 -0
  339. package/dist/sbapi/core/params.gen.d.ts +44 -0
  340. package/dist/sbapi/core/params.gen.d.ts.map +1 -0
  341. package/dist/sbapi/core/params.gen.js +101 -0
  342. package/dist/sbapi/core/params.gen.js.map +1 -0
  343. package/dist/sbapi/core/pathSerializer.gen.d.ts +34 -0
  344. package/dist/sbapi/core/pathSerializer.gen.d.ts.map +1 -0
  345. package/dist/sbapi/core/pathSerializer.gen.js +115 -0
  346. package/dist/sbapi/core/pathSerializer.gen.js.map +1 -0
  347. package/dist/sbapi/core/queryKeySerializer.gen.d.ts +19 -0
  348. package/dist/sbapi/core/queryKeySerializer.gen.d.ts.map +1 -0
  349. package/dist/sbapi/core/queryKeySerializer.gen.js +100 -0
  350. package/dist/sbapi/core/queryKeySerializer.gen.js.map +1 -0
  351. package/dist/sbapi/core/serverSentEvents.gen.d.ts +72 -0
  352. package/dist/sbapi/core/serverSentEvents.gen.d.ts.map +1 -0
  353. package/dist/sbapi/core/serverSentEvents.gen.js +138 -0
  354. package/dist/sbapi/core/serverSentEvents.gen.js.map +1 -0
  355. package/dist/sbapi/core/types.gen.d.ts +79 -0
  356. package/dist/sbapi/core/types.gen.d.ts.map +1 -0
  357. package/dist/sbapi/core/types.gen.js +3 -0
  358. package/dist/sbapi/core/types.gen.js.map +1 -0
  359. package/dist/sbapi/core/utils.gen.d.ts +20 -0
  360. package/dist/sbapi/core/utils.gen.d.ts.map +1 -0
  361. package/dist/sbapi/core/utils.gen.js +88 -0
  362. package/dist/sbapi/core/utils.gen.js.map +1 -0
  363. package/dist/sbapi/index.d.ts +3 -0
  364. package/dist/sbapi/index.d.ts.map +1 -0
  365. package/dist/sbapi/index.js +3 -0
  366. package/dist/sbapi/index.js.map +1 -0
  367. package/dist/sbapi/schemas.gen.d.ts +38 -0
  368. package/dist/sbapi/schemas.gen.d.ts.map +1 -0
  369. package/dist/sbapi/schemas.gen.js +48 -0
  370. package/dist/sbapi/schemas.gen.js.map +1 -0
  371. package/dist/sbapi/sdk.gen.d.ts +17 -0
  372. package/dist/sbapi/sdk.gen.d.ts.map +1 -0
  373. package/dist/sbapi/sdk.gen.js +4 -0
  374. package/dist/sbapi/sdk.gen.js.map +1 -0
  375. package/dist/sbapi/types.gen.d.ts +54 -0
  376. package/dist/sbapi/types.gen.d.ts.map +1 -0
  377. package/dist/sbapi/types.gen.js +3 -0
  378. package/dist/sbapi/types.gen.js.map +1 -0
  379. package/dist/sbapi/zod.gen.d.ts +39 -0
  380. package/dist/sbapi/zod.gen.d.ts.map +1 -0
  381. package/dist/sbapi/zod.gen.js +31 -0
  382. package/dist/sbapi/zod.gen.js.map +1 -0
  383. package/dist/schema/browser.d.ts +29 -0
  384. package/dist/schema/browser.d.ts.map +1 -0
  385. package/dist/schema/browser.js +41 -0
  386. package/dist/schema/browser.js.map +1 -0
  387. package/dist/supabase/supabase-browser.d.ts +4 -0
  388. package/dist/supabase/supabase-browser.d.ts.map +1 -0
  389. package/dist/supabase/supabase-browser.js +20 -0
  390. package/dist/supabase/supabase-browser.js.map +1 -0
  391. package/dist/supabase/supabase-client.d.ts +1941 -0
  392. package/dist/supabase/supabase-client.d.ts.map +1 -0
  393. package/dist/supabase/supabase-client.js +23 -0
  394. package/dist/supabase/supabase-client.js.map +1 -0
  395. package/dist/supabase/supabase.d.ts +3881 -0
  396. package/dist/supabase/supabase.d.ts.map +1 -0
  397. package/dist/supabase/supabase.js +89 -0
  398. package/dist/supabase/supabase.js.map +1 -0
  399. package/dist/supabase/use-sb-query/build-query-opts.d.ts +6 -0
  400. package/dist/supabase/use-sb-query/build-query-opts.d.ts.map +1 -0
  401. package/dist/supabase/use-sb-query/build-query-opts.js +33 -0
  402. package/dist/supabase/use-sb-query/build-query-opts.js.map +1 -0
  403. package/dist/supabase/use-sb-query/key.d.ts +10 -0
  404. package/dist/supabase/use-sb-query/key.d.ts.map +1 -0
  405. package/dist/supabase/use-sb-query/key.js +46 -0
  406. package/dist/supabase/use-sb-query/key.js.map +1 -0
  407. package/dist/supabase/use-sb-query/prefetch.d.ts +10 -0
  408. package/dist/supabase/use-sb-query/prefetch.d.ts.map +1 -0
  409. package/dist/supabase/use-sb-query/prefetch.js +14 -0
  410. package/dist/supabase/use-sb-query/prefetch.js.map +1 -0
  411. package/dist/supabase/use-sb-query/use-query.d.ts +133 -0
  412. package/dist/supabase/use-sb-query/use-query.d.ts.map +1 -0
  413. package/dist/supabase/use-sb-query/use-query.js +117 -0
  414. package/dist/supabase/use-sb-query/use-query.js.map +1 -0
  415. package/dist/supabase/utils.d.ts +21 -0
  416. package/dist/supabase/utils.d.ts.map +1 -0
  417. package/dist/supabase/utils.js +46 -0
  418. package/dist/supabase/utils.js.map +1 -0
  419. package/dist/types/database.types.d.ts +2018 -0
  420. package/dist/types/database.types.d.ts.map +1 -0
  421. package/dist/types/database.types.js +6 -0
  422. package/dist/types/database.types.js.map +1 -0
  423. package/dist/types/index.d.ts +21 -0
  424. package/dist/types/index.d.ts.map +1 -0
  425. package/dist/types/index.js +2 -0
  426. package/dist/types/index.js.map +1 -0
  427. package/package.json +59 -91
  428. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts +0 -947
  429. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +0 -1
  430. package/dist/gomtmapi/@tanstack/react-query.gen.js +0 -1023
  431. package/dist/gomtmapi/@tanstack/react-query.gen.js.map +0 -1
  432. package/dist/gomtmapi/client/client.gen.d.ts +0 -3
  433. package/dist/gomtmapi/client/client.gen.d.ts.map +0 -1
  434. package/dist/gomtmapi/client/client.gen.js.map +0 -1
  435. package/dist/gomtmapi/client/index.d.ts +0 -8
  436. package/dist/gomtmapi/client/index.d.ts.map +0 -1
  437. package/dist/gomtmapi/client/index.js +0 -6
  438. package/dist/gomtmapi/client/index.js.map +0 -1
  439. package/dist/gomtmapi/client/types.gen.d.ts.map +0 -1
  440. package/dist/gomtmapi/client/types.gen.js.map +0 -1
  441. package/dist/gomtmapi/client/utils.gen.d.ts.map +0 -1
  442. package/dist/gomtmapi/client/utils.gen.js.map +0 -1
  443. package/dist/gomtmapi/client.gen.d.ts.map +0 -1
  444. package/dist/gomtmapi/client.gen.js.map +0 -1
  445. package/dist/gomtmapi/core/auth.gen.d.ts.map +0 -1
  446. package/dist/gomtmapi/core/auth.gen.js.map +0 -1
  447. package/dist/gomtmapi/core/bodySerializer.gen.d.ts.map +0 -1
  448. package/dist/gomtmapi/core/bodySerializer.gen.js.map +0 -1
  449. package/dist/gomtmapi/core/params.gen.d.ts.map +0 -1
  450. package/dist/gomtmapi/core/params.gen.js.map +0 -1
  451. package/dist/gomtmapi/core/pathSerializer.gen.d.ts.map +0 -1
  452. package/dist/gomtmapi/core/pathSerializer.gen.js.map +0 -1
  453. package/dist/gomtmapi/core/serverSentEvents.gen.d.ts.map +0 -1
  454. package/dist/gomtmapi/core/serverSentEvents.gen.js.map +0 -1
  455. package/dist/gomtmapi/core/types.gen.d.ts.map +0 -1
  456. package/dist/gomtmapi/core/types.gen.js.map +0 -1
  457. package/dist/gomtmapi/core/utils.gen.d.ts.map +0 -1
  458. package/dist/gomtmapi/core/utils.gen.js.map +0 -1
  459. package/dist/gomtmapi/index.d.ts +0 -3
  460. package/dist/gomtmapi/index.d.ts.map +0 -1
  461. package/dist/gomtmapi/index.js +0 -4
  462. package/dist/gomtmapi/index.js.map +0 -1
  463. package/dist/gomtmapi/schemas.gen.d.ts +0 -1445
  464. package/dist/gomtmapi/schemas.gen.d.ts.map +0 -1
  465. package/dist/gomtmapi/schemas.gen.js +0 -1474
  466. package/dist/gomtmapi/schemas.gen.js.map +0 -1
  467. package/dist/gomtmapi/sdk.gen.d.ts +0 -271
  468. package/dist/gomtmapi/sdk.gen.d.ts.map +0 -1
  469. package/dist/gomtmapi/sdk.gen.js +0 -974
  470. package/dist/gomtmapi/sdk.gen.js.map +0 -1
  471. package/dist/gomtmapi/types.gen.d.ts +0 -2302
  472. package/dist/gomtmapi/types.gen.d.ts.map +0 -1
  473. package/dist/gomtmapi/types.gen.js +0 -33
  474. package/dist/gomtmapi/types.gen.js.map +0 -1
  475. package/dist/gomtmapi/zod.gen.d.ts +0 -2067
  476. package/dist/gomtmapi/zod.gen.d.ts.map +0 -1
  477. package/dist/gomtmapi/zod.gen.js +0 -875
  478. package/dist/gomtmapi/zod.gen.js.map +0 -1
  479. /package/dist/{gomtmapi → api_hatchet}/client/types.gen.js +0 -0
  480. /package/dist/{gomtmapi → api_hatchet}/core/types.gen.js +0 -0
@@ -1,3497 +1,755 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- export const PgAgentSchema = {
3
- description: "PgAgent",
4
- type: "object",
2
+ export const WorkerUpRespSchema = {
3
+ description: 'WorkerUpResp',
4
+ type: 'object',
5
5
  properties: {
6
- id: {
7
- type: "string",
8
- },
9
- createdAt: {
10
- type: "string",
11
- format: "date-time",
12
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
13
- },
14
- updatedAt: {
15
- type: "string",
16
- format: "date-time",
17
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
18
- },
19
- deletedAt: {
20
- type: "string",
21
- format: "date-time",
22
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
23
- },
24
- organizationId: {
25
- type: "string",
26
- },
27
- name: {
28
- type: "string",
29
- },
30
- agentType: {
31
- type: "string",
32
- },
33
- description: {
34
- type: "string",
35
- },
36
- status: {
37
- type: "string",
38
- },
39
- config: {
40
- type: "object",
41
- propertyNames: {
42
- type: "string",
43
- },
44
- additionalProperties: {},
45
- },
46
- state: {
47
- type: "object",
48
- propertyNames: {
49
- type: "string",
50
- },
51
- additionalProperties: {},
52
- },
53
- envs: {
54
- type: "object",
55
- propertyNames: {
56
- type: "string",
57
- },
58
- additionalProperties: {
59
- type: "string",
60
- },
61
- },
62
- },
63
- required: [
64
- "id",
65
- "createdAt",
66
- "updatedAt",
67
- "organizationId",
68
- "name",
69
- "agentType",
70
- "status",
71
- ],
72
- };
73
- export const PgAgentListRespSchema = {
74
- description: "PgAgentListResp",
75
- type: "object",
76
- properties: {
77
- agents: {
78
- type: "array",
79
- items: {
80
- $ref: "#/components/schemas/PgAgent",
81
- },
82
- },
83
- total: {
84
- type: "number",
85
- },
86
- },
87
- required: ["agents", "total"],
88
- };
89
- export const PgAgentGetRespSchema = {
90
- description: "PgAgentGetResp",
91
- type: "object",
92
- properties: {
93
- agent: {
94
- $ref: "#/components/schemas/PgAgent",
95
- },
96
- },
97
- };
98
- export const DeleteRespSchema = {
99
- description: "删除响应",
100
- type: "object",
101
- properties: {
102
- success: {
103
- type: "boolean",
104
- },
105
- error: {
106
- type: "string",
107
- },
108
- },
109
- required: ["success"],
110
- };
111
- export const DeleteReqSchema = {
112
- description: "删除请求",
113
- type: "object",
114
- properties: {
115
- ids: {
116
- type: "array",
117
- items: {
118
- type: "string",
119
- },
120
- },
121
- },
122
- required: ["ids"],
123
- };
124
- export const AgentCreateRequestSchema = {
125
- description: "AgentCreateRequest",
126
- type: "object",
127
- properties: {
128
- name: {
129
- type: "string",
130
- minLength: 1,
131
- maxLength: 255,
132
- },
133
- agentType: {
134
- type: "string",
135
- minLength: 1,
136
- maxLength: 255,
137
- },
138
- description: {
139
- type: "string",
140
- },
141
- },
142
- required: ["name", "agentType"],
143
- };
144
- export const AgentChatbotUpdateBodyConfigSchema = {
145
- description: "AgentChatbotUpdateBodyConfig",
146
- type: "object",
147
- properties: {
148
- name: {
149
- type: "string",
150
- minLength: 1,
151
- maxLength: 255,
152
- },
153
- agentType: {
154
- type: "string",
155
- minLength: 1,
156
- maxLength: 255,
157
- },
158
- description: {
159
- type: "string",
160
- },
161
- status: {
162
- type: "string",
163
- enum: ["active", "inactive", "error"],
164
- },
165
- config: {
166
- type: "object",
167
- propertyNames: {
168
- type: "string",
169
- },
170
- additionalProperties: {},
171
- },
172
- state: {
173
- type: "object",
174
- propertyNames: {
175
- type: "string",
176
- },
177
- additionalProperties: {},
178
- },
179
- envs: {
180
- type: "object",
181
- propertyNames: {
182
- type: "string",
183
- },
184
- additionalProperties: {
185
- type: "string",
186
- },
187
- },
188
- },
189
- };
190
- export const CfTunnelSettingsSchema = {
191
- description: "Cloudflare隧道设置",
192
- type: "object",
193
- properties: {
194
- CfToken: {
195
- type: "string",
196
- },
197
- accountId: {
198
- type: "string",
199
- },
200
- apiToken: {
201
- type: "string",
202
- },
203
- zoneName: {
204
- type: "string",
205
- },
206
- mainDomain: {
207
- default: "yuepa8.com",
208
- type: "string",
209
- },
210
- },
211
- };
212
- export const VncSchema = {
213
- description: "VNC服务配置",
214
- type: "object",
215
- properties: {
216
- enabled: {
217
- type: "boolean",
218
- },
219
- error: {
220
- type: "string",
221
- },
222
- lastUpdated: {
223
- type: "number",
224
- },
225
- port: {
226
- default: 5900,
227
- type: "number",
228
- },
229
- password: {
230
- default: "mtworker",
231
- type: "string",
232
- },
233
- display: {
234
- default: ":1",
235
- type: "string",
236
- },
237
- },
238
- required: ["enabled"],
239
- };
240
- export const MainApiSchema = {
241
- description: "主API服务配置",
242
- type: "object",
243
- properties: {
244
- enabled: {
245
- type: "boolean",
246
- },
247
- error: {
248
- type: "string",
249
- },
250
- lastUpdated: {
251
- type: "number",
252
- },
253
- port: {
254
- default: 8080,
255
- type: "number",
256
- },
257
- host: {
258
- default: "0.0.0.0",
259
- type: "string",
260
- },
261
- },
262
- required: ["enabled"],
263
- };
264
- export const MtproxyServiceSchema = {
265
- description: "MtproxyService",
266
- type: "object",
267
- properties: {
268
- enabled: {
269
- default: false,
270
- type: "boolean",
271
- },
272
- port: {
273
- default: 10801,
274
- type: "number",
275
- },
276
- bindAddr: {
277
- default: "0.0.0.0",
278
- type: "string",
279
- },
280
- },
281
- };
282
- export const HelloOnionWebSchema = {
283
- description: "HelloOnionWeb服务配置",
284
- type: "object",
285
- properties: {
286
- enabled: {
287
- type: "boolean",
288
- },
289
- error: {
290
- type: "string",
291
- },
292
- lastUpdated: {
293
- type: "number",
294
- },
295
- port: {
296
- default: 8081,
297
- type: "number",
298
- },
299
- },
300
- required: ["enabled"],
301
- };
302
- export const NstbrowserApiSchema = {
303
- description: "Nstbrowser API状态",
304
- type: "object",
305
- properties: {
306
- enabled: {
307
- type: "boolean",
308
- },
309
- error: {
310
- type: "string",
311
- },
312
- lastUpdated: {
313
- type: "number",
314
- },
315
- token: {
316
- default: "",
317
- type: "string",
318
- },
319
- },
320
- required: ["enabled"],
321
- };
322
- export const GomtmAgentStateSchema = {
323
- description: "Gomtm Agent状态",
324
- type: "object",
325
- properties: {
326
- title: {
327
- type: "string",
328
- },
329
- error: {
330
- type: "string",
331
- },
332
- mcpServerUrl: {
333
- type: "string",
334
- },
335
- enabledDebug: {
336
- default: false,
337
- type: "boolean",
338
- },
339
- enabledAutoDispatch: {
340
- default: false,
341
- type: "boolean",
342
- },
343
- counter: {
344
- default: 0,
345
- type: "number",
346
- },
347
- tasks: {
348
- default: {},
349
- type: "object",
350
- propertyNames: {
351
- type: "string",
352
- },
353
- additionalProperties: {
354
- type: "object",
355
- properties: {
356
- id: {
357
- type: "string",
358
- },
359
- kind: {
360
- type: "string",
361
- const: "task",
362
- },
363
- contextId: {
364
- type: "string",
365
- },
366
- status: {
367
- type: "object",
368
- properties: {
369
- state: {
370
- type: "string",
371
- enum: [
372
- "submitted",
373
- "working",
374
- "input-required",
375
- "completed",
376
- "canceled",
377
- "failed",
378
- "rejected",
379
- "auth-required",
380
- "unknown",
381
- ],
382
- },
383
- timestamp: {
384
- type: "string",
385
- },
386
- message: {
387
- type: "object",
388
- properties: {
389
- kind: {
390
- type: "string",
391
- const: "message",
392
- },
393
- messageId: {
394
- type: "string",
395
- },
396
- role: {
397
- type: "string",
398
- enum: ["agent", "user"],
399
- },
400
- parts: {
401
- type: "array",
402
- items: {
403
- anyOf: [
404
- {
405
- type: "object",
406
- properties: {
407
- kind: {
408
- type: "string",
409
- const: "text",
410
- },
411
- text: {
412
- type: "string",
413
- },
414
- metadata: {
415
- type: "object",
416
- propertyNames: {
417
- type: "string",
418
- },
419
- additionalProperties: {},
420
- },
421
- },
422
- required: ["kind", "text"],
423
- },
424
- {
425
- type: "object",
426
- properties: {
427
- kind: {
428
- type: "string",
429
- const: "file",
430
- },
431
- file: {
432
- anyOf: [
433
- {
434
- type: "object",
435
- properties: {
436
- bytes: {
437
- type: "string",
438
- },
439
- mimeType: {
440
- type: "string",
441
- },
442
- name: {
443
- type: "string",
444
- },
445
- },
446
- required: ["bytes"],
447
- },
448
- {
449
- type: "object",
450
- properties: {
451
- uri: {
452
- type: "string",
453
- },
454
- mimeType: {
455
- type: "string",
456
- },
457
- name: {
458
- type: "string",
459
- },
460
- },
461
- required: ["uri"],
462
- },
463
- ],
464
- },
465
- metadata: {
466
- type: "object",
467
- propertyNames: {
468
- type: "string",
469
- },
470
- additionalProperties: {},
471
- },
472
- },
473
- required: ["kind", "file"],
474
- },
475
- {
476
- type: "object",
477
- properties: {
478
- kind: {
479
- type: "string",
480
- const: "data",
481
- },
482
- data: {
483
- type: "object",
484
- propertyNames: {
485
- type: "string",
486
- },
487
- additionalProperties: {},
488
- },
489
- metadata: {
490
- type: "object",
491
- propertyNames: {
492
- type: "string",
493
- },
494
- additionalProperties: {},
495
- },
496
- },
497
- required: ["kind", "data"],
498
- },
499
- ],
500
- },
501
- },
502
- contextId: {
503
- type: "string",
504
- },
505
- taskId: {
506
- type: "string",
507
- },
508
- extensions: {
509
- type: "array",
510
- items: {
511
- type: "string",
512
- },
513
- },
514
- referenceTaskIds: {
515
- type: "array",
516
- items: {
517
- type: "string",
518
- },
519
- },
520
- metadata: {
521
- type: "object",
522
- propertyNames: {
523
- type: "string",
524
- },
525
- additionalProperties: {},
526
- },
527
- },
528
- required: ["kind", "messageId", "role", "parts"],
529
- },
530
- },
531
- required: ["state"],
532
- },
533
- artifacts: {
534
- type: "array",
535
- items: {
536
- type: "object",
537
- properties: {
538
- artifactId: {
539
- type: "string",
540
- },
541
- name: {
542
- type: "string",
543
- },
544
- description: {
545
- type: "string",
546
- },
547
- parts: {
548
- type: "array",
549
- items: {
550
- anyOf: [
551
- {
552
- type: "object",
553
- properties: {
554
- kind: {
555
- type: "string",
556
- const: "text",
557
- },
558
- text: {
559
- type: "string",
560
- },
561
- metadata: {
562
- type: "object",
563
- propertyNames: {
564
- type: "string",
565
- },
566
- additionalProperties: {},
567
- },
568
- },
569
- required: ["kind", "text"],
570
- },
571
- {
572
- type: "object",
573
- properties: {
574
- kind: {
575
- type: "string",
576
- const: "file",
577
- },
578
- file: {
579
- anyOf: [
580
- {
581
- type: "object",
582
- properties: {
583
- bytes: {
584
- type: "string",
585
- },
586
- mimeType: {
587
- type: "string",
588
- },
589
- name: {
590
- type: "string",
591
- },
592
- },
593
- required: ["bytes"],
594
- },
595
- {
596
- type: "object",
597
- properties: {
598
- uri: {
599
- type: "string",
600
- },
601
- mimeType: {
602
- type: "string",
603
- },
604
- name: {
605
- type: "string",
606
- },
607
- },
608
- required: ["uri"],
609
- },
610
- ],
611
- },
612
- metadata: {
613
- type: "object",
614
- propertyNames: {
615
- type: "string",
616
- },
617
- additionalProperties: {},
618
- },
619
- },
620
- required: ["kind", "file"],
621
- },
622
- {
623
- type: "object",
624
- properties: {
625
- kind: {
626
- type: "string",
627
- const: "data",
628
- },
629
- data: {
630
- type: "object",
631
- propertyNames: {
632
- type: "string",
633
- },
634
- additionalProperties: {},
635
- },
636
- metadata: {
637
- type: "object",
638
- propertyNames: {
639
- type: "string",
640
- },
641
- additionalProperties: {},
642
- },
643
- },
644
- required: ["kind", "data"],
645
- },
646
- ],
647
- },
648
- },
649
- extensions: {
650
- type: "array",
651
- items: {
652
- type: "string",
653
- },
654
- },
655
- metadata: {
656
- type: "object",
657
- propertyNames: {
658
- type: "string",
659
- },
660
- additionalProperties: {},
661
- },
662
- },
663
- required: ["artifactId", "parts"],
664
- },
665
- },
666
- history: {
667
- type: "array",
668
- items: {
669
- type: "object",
670
- properties: {
671
- kind: {
672
- type: "string",
673
- const: "message",
674
- },
675
- messageId: {
676
- type: "string",
677
- },
678
- role: {
679
- type: "string",
680
- enum: ["agent", "user"],
681
- },
682
- parts: {
683
- type: "array",
684
- items: {
685
- anyOf: [
686
- {
687
- type: "object",
688
- properties: {
689
- kind: {
690
- type: "string",
691
- const: "text",
692
- },
693
- text: {
694
- type: "string",
695
- },
696
- metadata: {
697
- type: "object",
698
- propertyNames: {
699
- type: "string",
700
- },
701
- additionalProperties: {},
702
- },
703
- },
704
- required: ["kind", "text"],
705
- },
706
- {
707
- type: "object",
708
- properties: {
709
- kind: {
710
- type: "string",
711
- const: "file",
712
- },
713
- file: {
714
- anyOf: [
715
- {
716
- type: "object",
717
- properties: {
718
- bytes: {
719
- type: "string",
720
- },
721
- mimeType: {
722
- type: "string",
723
- },
724
- name: {
725
- type: "string",
726
- },
727
- },
728
- required: ["bytes"],
729
- },
730
- {
731
- type: "object",
732
- properties: {
733
- uri: {
734
- type: "string",
735
- },
736
- mimeType: {
737
- type: "string",
738
- },
739
- name: {
740
- type: "string",
741
- },
742
- },
743
- required: ["uri"],
744
- },
745
- ],
746
- },
747
- metadata: {
748
- type: "object",
749
- propertyNames: {
750
- type: "string",
751
- },
752
- additionalProperties: {},
753
- },
754
- },
755
- required: ["kind", "file"],
756
- },
757
- {
758
- type: "object",
759
- properties: {
760
- kind: {
761
- type: "string",
762
- const: "data",
763
- },
764
- data: {
765
- type: "object",
766
- propertyNames: {
767
- type: "string",
768
- },
769
- additionalProperties: {},
770
- },
771
- metadata: {
772
- type: "object",
773
- propertyNames: {
774
- type: "string",
775
- },
776
- additionalProperties: {},
777
- },
778
- },
779
- required: ["kind", "data"],
780
- },
781
- ],
782
- },
783
- },
784
- contextId: {
785
- type: "string",
786
- },
787
- taskId: {
788
- type: "string",
789
- },
790
- extensions: {
791
- type: "array",
792
- items: {
793
- type: "string",
794
- },
795
- },
796
- referenceTaskIds: {
797
- type: "array",
798
- items: {
799
- type: "string",
800
- },
801
- },
802
- metadata: {
803
- type: "object",
804
- propertyNames: {
805
- type: "string",
806
- },
807
- additionalProperties: {},
808
- },
809
- },
810
- required: ["kind", "messageId", "role", "parts"],
811
- },
812
- },
813
- metadata: {
814
- type: "object",
815
- propertyNames: {
816
- type: "string",
817
- },
818
- additionalProperties: {},
819
- },
820
- },
821
- required: ["id", "kind", "contextId", "status"],
822
- },
823
- },
824
- taskConfirmations: {
825
- default: [],
826
- type: "array",
827
- items: {
828
- type: "object",
829
- properties: {
830
- id: {
831
- type: "string",
832
- },
833
- action: {
834
- type: "string",
835
- },
836
- title: {
837
- type: "string",
838
- },
839
- description: {
840
- type: "string",
841
- },
842
- taskId: {
843
- type: "string",
844
- },
845
- },
846
- required: ["id", "action"],
847
- },
848
- },
849
- lastUpdated: {
850
- type: "number",
851
- },
852
- configTimeout: {
853
- default: 60,
854
- type: "number",
855
- },
856
- connectionStatus: {
857
- default: false,
858
- type: "boolean",
859
- },
860
- runServerCommand: {
861
- type: "string",
862
- },
863
- envs: {
864
- type: "object",
865
- propertyNames: {
866
- type: "string",
867
- },
868
- additionalProperties: {
869
- type: "string",
870
- },
871
- },
872
- settings: {
873
- type: "object",
874
- properties: {
875
- cftunnelSettings: {
876
- $ref: "#/components/schemas/CfTunnelSettings",
877
- },
878
- },
879
- required: ["cftunnelSettings"],
880
- },
881
- tunnel: {
882
- type: "object",
883
- properties: {
884
- enabled: {
885
- type: "boolean",
886
- },
887
- error: {
888
- type: "string",
889
- },
890
- lastUpdated: {
891
- type: "number",
892
- },
893
- type: {
894
- default: "singbox",
895
- type: "string",
896
- },
897
- configUrl: {
898
- type: "string",
899
- },
900
- },
901
- required: ["enabled"],
902
- },
903
- vnc: {
904
- $ref: "#/components/schemas/Vnc",
905
- },
906
- mainApi: {
907
- $ref: "#/components/schemas/MainApi",
908
- },
909
- mtproxy: {
910
- $ref: "#/components/schemas/MtproxyService",
911
- },
912
- helloOnionWeb: {
913
- $ref: "#/components/schemas/HelloOnionWeb",
914
- },
915
- nstbrowserApi: {
916
- $ref: "#/components/schemas/NstbrowserApi",
917
- },
918
- },
919
- required: [
920
- "lastUpdated",
921
- "settings",
922
- "tunnel",
923
- "vnc",
924
- "mainApi",
925
- "mtproxy",
926
- "helloOnionWeb",
927
- "nstbrowserApi",
928
- ],
929
- };
930
- export const ApiErrorSchema = {
931
- description: "API错误响应",
932
- type: "object",
933
- properties: {
934
- error: {
935
- type: "object",
936
- properties: {
937
- code: {
938
- type: "string",
939
- enum: [
940
- "VALIDATION_ERROR",
941
- "NOT_FOUND",
942
- "UNAUTHORIZED",
943
- "FORBIDDEN",
944
- "INTERNAL_ERROR",
945
- "CONFLICT",
946
- "BAD_REQUEST",
947
- "UNPROCESSABLE_ENTITY",
948
- ],
949
- },
950
- message: {
951
- type: "string",
952
- },
953
- cause: {
954
- type: "string",
955
- },
956
- details: {
957
- type: "string",
958
- },
959
- field: {
960
- type: "string",
961
- },
962
- },
963
- required: ["message"],
964
- },
965
- },
966
- required: ["error"],
967
- };
968
- export const AgentSchema = {
969
- description: "Agent",
970
- type: "object",
971
- properties: {
972
- id: {
973
- type: "string",
974
- },
975
- name: {
976
- type: "string",
977
- },
978
- agentType: {
979
- type: "string",
980
- },
981
- description: {
982
- type: "string",
983
- },
984
- },
985
- required: ["id", "name", "agentType"],
986
- };
987
- export const AgentListRespSchema = {
988
- description: "AgentListResp",
989
- type: "object",
990
- properties: {
991
- paginate: {
992
- type: "object",
993
- properties: {
994
- total: {
995
- description: "Total number of records",
996
- type: "number",
997
- },
998
- page: {
999
- description: "Current page number",
1000
- type: "number",
1001
- },
1002
- pageSize: {
1003
- description: "Number of records per page",
1004
- type: "number",
1005
- },
1006
- totalPages: {
1007
- description: "Total number of pages",
1008
- type: "number",
1009
- },
1010
- hasNext: {
1011
- description: "Whether there is a next page",
1012
- type: "boolean",
1013
- },
1014
- },
1015
- required: ["total", "page", "pageSize", "totalPages", "hasNext"],
1016
- },
1017
- rows: {
1018
- type: "array",
1019
- items: {
1020
- $ref: "#/components/schemas/Agent",
1021
- },
1022
- },
1023
- },
1024
- required: ["paginate", "rows"],
1025
- };
1026
- export const BrowserSchema = {
1027
- description: "浏览器",
1028
- type: "object",
1029
- properties: {
1030
- id: {
1031
- type: "string",
1032
- },
1033
- organizationId: {
1034
- type: "string",
1035
- },
1036
- name: {
1037
- type: "string",
1038
- },
1039
- description: {
1040
- type: "string",
1041
- },
1042
- url: {
1043
- type: "string",
1044
- },
1045
- properties: {
1046
- default: {},
1047
- type: "object",
1048
- propertyNames: {
1049
- type: "string",
1050
- },
1051
- additionalProperties: {},
1052
- },
1053
- tags: {
1054
- type: "array",
1055
- items: {
1056
- type: "string",
1057
- },
1058
- },
1059
- lastUsedAt: {
1060
- type: "string",
1061
- format: "date-time",
1062
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
1063
- },
1064
- createdAt: {
1065
- type: "string",
1066
- format: "date-time",
1067
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
1068
- },
1069
- updatedAt: {
1070
- type: "string",
1071
- format: "date-time",
1072
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
1073
- },
1074
- deletedAt: {
1075
- type: "string",
1076
- format: "date-time",
1077
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
1078
- },
1079
- platformId: {
1080
- type: "string",
1081
- },
1082
- autoLoginScript: {
1083
- type: "string",
1084
- },
1085
- sessionData: {
1086
- default: {},
1087
- type: "object",
1088
- propertyNames: {
1089
- type: "string",
1090
- },
1091
- additionalProperties: {},
1092
- },
1093
- },
1094
- required: ["id", "organizationId", "name", "url", "createdAt", "updatedAt"],
1095
- };
1096
- export const BrowserGetRespSchema = {
1097
- description: "浏览器获取响应",
1098
- type: "object",
1099
- properties: {
1100
- id: {
1101
- type: "string",
1102
- },
1103
- organizationId: {
1104
- type: "string",
1105
- },
1106
- name: {
1107
- type: "string",
1108
- },
1109
- description: {
1110
- type: "string",
1111
- },
1112
- url: {
1113
- type: "string",
1114
- },
1115
- properties: {
1116
- default: {},
1117
- type: "object",
1118
- propertyNames: {
1119
- type: "string",
1120
- },
1121
- additionalProperties: {},
1122
- },
1123
- tags: {
1124
- type: "array",
1125
- items: {
1126
- type: "string",
1127
- },
1128
- },
1129
- lastUsedAt: {
1130
- type: "string",
1131
- format: "date-time",
1132
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
1133
- },
1134
- createdAt: {
1135
- type: "string",
1136
- format: "date-time",
1137
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
1138
- },
1139
- updatedAt: {
1140
- type: "string",
1141
- format: "date-time",
1142
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
1143
- },
1144
- platformId: {
1145
- type: "string",
1146
- },
1147
- autoLoginScript: {
1148
- type: "string",
1149
- },
1150
- sessionData: {
1151
- default: {},
1152
- type: "object",
1153
- propertyNames: {
1154
- type: "string",
1155
- },
1156
- additionalProperties: {},
1157
- },
1158
- },
1159
- required: ["id", "organizationId", "name", "url", "createdAt", "updatedAt"],
1160
- };
1161
- export const BrowserUpsertRequestSchema = {
1162
- description: "浏览器更新请求",
1163
- type: "object",
1164
- properties: {
1165
- name: {
1166
- type: "string",
1167
- minLength: 1,
1168
- },
1169
- description: {
1170
- type: "string",
1171
- },
1172
- url: {
1173
- type: "string",
1174
- format: "uri",
1175
- },
1176
- properties: {
1177
- default: {},
1178
- type: "object",
1179
- propertyNames: {
1180
- type: "string",
1181
- },
1182
- additionalProperties: {},
1183
- },
1184
- tags: {
1185
- type: "array",
1186
- items: {
1187
- type: "string",
1188
- },
1189
- },
1190
- platformId: {
1191
- type: "string",
1192
- },
1193
- autoLoginScript: {
1194
- type: "string",
1195
- },
1196
- sessionData: {
1197
- default: {},
1198
- type: "object",
1199
- propertyNames: {
1200
- type: "string",
1201
- },
1202
- additionalProperties: {},
1203
- },
1204
- },
1205
- required: ["name", "url"],
1206
- };
1207
- export const PAccountSchema = {
1208
- description: "平台账户",
1209
- type: "object",
1210
- properties: {
1211
- id: {
1212
- type: "string",
1213
- },
1214
- tenantId: {
1215
- type: "string",
1216
- },
1217
- createdAt: {
1218
- type: "string",
1219
- format: "date-time",
1220
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
1221
- },
1222
- updatedAt: {
1223
- type: "string",
1224
- format: "date-time",
1225
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
1226
- },
1227
- deletedAt: {
1228
- type: "string",
1229
- format: "date-time",
1230
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
1231
- },
1232
- name: {
1233
- type: "string",
1234
- },
1235
- description: {
1236
- type: "string",
1237
- },
1238
- platformId: {
1239
- type: "string",
1240
- },
1241
- tags: {
1242
- type: "array",
1243
- items: {
1244
- type: "string",
1245
- },
1246
- },
1247
- enabled: {
1248
- type: "boolean",
1249
- },
1250
- state: {
1251
- type: "object",
1252
- propertyNames: {
1253
- type: "string",
1254
- },
1255
- additionalProperties: {},
1256
- },
1257
- config: {
1258
- type: "object",
1259
- propertyNames: {
1260
- type: "string",
1261
- },
1262
- additionalProperties: {},
1263
- },
1264
- error: {
1265
- type: "string",
1266
- },
1267
- icon: {
1268
- type: "string",
1269
- },
1270
- platform: {
1271
- type: "object",
1272
- properties: {
1273
- id: {
1274
- type: "string",
1275
- },
1276
- name: {
1277
- type: "string",
1278
- },
1279
- description: {
1280
- type: "string",
1281
- },
1282
- url: {
1283
- type: "string",
1284
- },
1285
- loginUrl: {
1286
- type: "string",
1287
- },
1288
- },
1289
- required: ["id", "name"],
1290
- },
1291
- },
1292
- required: [
1293
- "id",
1294
- "tenantId",
1295
- "createdAt",
1296
- "updatedAt",
1297
- "platformId",
1298
- "enabled",
1299
- ],
1300
- };
1301
- export const PAccountListRespSchema = {
1302
- description: "PAccountListResp",
1303
- type: "object",
1304
- properties: {
1305
- paginate: {
1306
- type: "object",
1307
- properties: {
1308
- total: {
1309
- description: "Total number of records",
1310
- type: "number",
1311
- },
1312
- page: {
1313
- description: "Current page number",
1314
- type: "number",
1315
- },
1316
- pageSize: {
1317
- description: "Number of records per page",
1318
- type: "number",
1319
- },
1320
- totalPages: {
1321
- description: "Total number of pages",
1322
- type: "number",
1323
- },
1324
- hasNext: {
1325
- description: "Whether there is a next page",
1326
- type: "boolean",
1327
- },
1328
- },
1329
- required: ["total", "page", "pageSize", "totalPages", "hasNext"],
1330
- },
1331
- rows: {
1332
- type: "array",
1333
- items: {
1334
- $ref: "#/components/schemas/PAccount",
1335
- },
1336
- },
1337
- },
1338
- required: ["paginate", "rows"],
1339
- };
1340
- export const PAccountCreateRequestSchema = {
1341
- description: "平台账户创建请求",
1342
- type: "object",
1343
- properties: {
1344
- name: {
1345
- type: "string",
1346
- minLength: 1,
1347
- },
1348
- description: {
1349
- type: "string",
1350
- },
1351
- platformId: {
1352
- type: "string",
1353
- minLength: 1,
1354
- },
1355
- enabled: {
1356
- default: true,
1357
- type: "boolean",
1358
- },
1359
- tags: {
1360
- default: [],
1361
- type: "array",
1362
- items: {
1363
- type: "string",
1364
- },
1365
- },
1366
- config: {
1367
- default: {},
1368
- type: "object",
1369
- propertyNames: {
1370
- type: "string",
1371
- },
1372
- additionalProperties: {},
1373
- },
1374
- icon: {
1375
- type: "string",
1376
- },
1377
- },
1378
- required: ["name", "platformId"],
1379
- };
1380
- export const PAccountUpdateRequestSchema = {
1381
- description: "平台账户更新请求",
1382
- type: "object",
1383
- properties: {
1384
- name: {
1385
- type: "string",
1386
- minLength: 1,
1387
- },
1388
- description: {
1389
- type: "string",
1390
- },
1391
- platformId: {
1392
- type: "string",
1393
- minLength: 1,
1394
- },
1395
- enabled: {
1396
- type: "boolean",
1397
- },
1398
- tags: {
1399
- type: "array",
1400
- items: {
1401
- type: "string",
1402
- },
1403
- },
1404
- config: {
1405
- type: "object",
1406
- propertyNames: {
1407
- type: "string",
1408
- },
1409
- additionalProperties: {},
1410
- },
1411
- icon: {
1412
- type: "string",
1413
- },
1414
- },
1415
- };
1416
- export const PlatformSchema = {
1417
- description: "平台",
1418
- type: "object",
1419
- properties: {
1420
- id: {
1421
- type: "string",
1422
- },
1423
- name: {
1424
- type: "string",
1425
- },
1426
- description: {
1427
- type: "string",
1428
- },
1429
- url: {
1430
- type: "string",
1431
- },
1432
- loginUrl: {
1433
- type: "string",
1434
- },
1435
- type: {
1436
- type: "string",
1437
- },
1438
- status: {
1439
- type: "string",
1440
- },
1441
- config: {
1442
- default: {},
1443
- type: "object",
1444
- propertyNames: {
1445
- type: "string",
1446
- },
1447
- additionalProperties: {},
1448
- },
1449
- tags: {
1450
- type: "array",
1451
- items: {
1452
- type: "string",
1453
- },
1454
- },
1455
- createdAt: {
1456
- type: "string",
1457
- format: "date-time",
1458
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
1459
- },
1460
- updatedAt: {
1461
- type: "string",
1462
- format: "date-time",
1463
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
1464
- },
1465
- },
1466
- required: ["id", "name", "createdAt", "updatedAt"],
1467
- };
1468
- export const PlatformGetRespSchema = {
1469
- description: "平台获取响应",
1470
- type: "object",
1471
- properties: {
1472
- id: {
1473
- type: "string",
1474
- },
1475
- name: {
1476
- type: "string",
1477
- },
1478
- description: {
1479
- type: "string",
1480
- },
1481
- url: {
1482
- type: "string",
1483
- },
1484
- loginUrl: {
1485
- type: "string",
1486
- },
1487
- type: {
1488
- type: "string",
1489
- },
1490
- status: {
1491
- type: "string",
1492
- },
1493
- config: {
1494
- default: {},
1495
- type: "object",
1496
- propertyNames: {
1497
- type: "string",
1498
- },
1499
- additionalProperties: {},
1500
- },
1501
- tags: {
1502
- type: "array",
1503
- items: {
1504
- type: "string",
1505
- },
1506
- },
1507
- createdAt: {
1508
- type: "string",
1509
- format: "date-time",
1510
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
1511
- },
1512
- updatedAt: {
1513
- type: "string",
1514
- format: "date-time",
1515
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
1516
- },
1517
- },
1518
- required: ["id", "name", "createdAt", "updatedAt"],
1519
- };
1520
- export const zPlatformCreateSchema = {
1521
- description: "平台创建请求",
1522
- type: "object",
1523
- properties: {
1524
- id: {
1525
- type: "string",
1526
- },
1527
- name: {
1528
- type: "string",
1529
- minLength: 1,
1530
- },
1531
- description: {
1532
- type: "string",
1533
- },
1534
- url: {
1535
- type: "string",
1536
- },
1537
- loginUrl: {
1538
- type: "string",
1539
- },
1540
- type: {
1541
- type: "string",
1542
- },
1543
- status: {
1544
- type: "string",
1545
- },
1546
- config: {
1547
- default: {},
1548
- type: "object",
1549
- propertyNames: {
1550
- type: "string",
1551
- },
1552
- additionalProperties: {},
1553
- },
1554
- tags: {
1555
- type: "array",
1556
- items: {
1557
- type: "string",
1558
- },
1559
- },
1560
- },
1561
- required: ["name"],
1562
- };
1563
- export const ProxyGetRespSchema = {
1564
- description: "代理获取响应",
1565
- type: "object",
1566
- properties: {
1567
- id: {
1568
- type: "string",
1569
- },
1570
- name: {
1571
- type: "string",
1572
- },
1573
- description: {
1574
- anyOf: [
1575
- {
1576
- type: "string",
1577
- },
1578
- {
1579
- type: "null",
1580
- },
1581
- ],
1582
- },
1583
- url: {
1584
- type: "string",
1585
- },
1586
- type: {
1587
- type: "string",
1588
- },
1589
- provider: {
1590
- type: "string",
1591
- },
1592
- detour: {
1593
- anyOf: [
1594
- {
1595
- type: "string",
1596
- },
1597
- {
1598
- type: "null",
1599
- },
1600
- ],
1601
- },
1602
- country_code: {
1603
- type: "string",
1604
- },
1605
- port: {
1606
- type: "number",
1607
- },
1608
- enabled: {
1609
- type: "boolean",
1610
- },
1611
- created_at: {
1612
- type: "string",
1613
- format: "date-time",
1614
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
1615
- },
1616
- updated_at: {
1617
- type: "string",
1618
- format: "date-time",
1619
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
1620
- },
1621
- },
1622
- required: ["id", "name", "url", "enabled"],
1623
- };
1624
- export const ProxyListRespSchema = {
1625
- description: "代理列表响应",
1626
- type: "object",
1627
- properties: {
1628
- paginate: {
1629
- type: "object",
1630
- properties: {
1631
- total: {
1632
- description: "Total number of records",
1633
- type: "number",
1634
- },
1635
- page: {
1636
- description: "Current page number",
1637
- type: "number",
1638
- },
1639
- pageSize: {
1640
- description: "Number of records per page",
1641
- type: "number",
1642
- },
1643
- totalPages: {
1644
- description: "Total number of pages",
1645
- type: "number",
1646
- },
1647
- hasNext: {
1648
- description: "Whether there is a next page",
1649
- type: "boolean",
1650
- },
1651
- },
1652
- required: ["total", "page", "pageSize", "totalPages", "hasNext"],
1653
- },
1654
- rows: {
1655
- type: "array",
1656
- items: {
1657
- $ref: "#/components/schemas/ProxyGetResp",
1658
- },
1659
- },
1660
- },
1661
- required: ["paginate", "rows"],
1662
- };
1663
- export const ProxyUpsertRequestSchema = {
1664
- description: "代理更新请求",
1665
- type: "object",
1666
- properties: {
1667
- id: {
1668
- type: "string",
1669
- },
1670
- name: {
1671
- type: "string",
1672
- minLength: 1,
1673
- },
1674
- description: {
1675
- type: "string",
1676
- },
1677
- url: {
1678
- type: "string",
1679
- format: "uri",
1680
- },
1681
- detour: {
1682
- type: "string",
1683
- },
1684
- },
1685
- required: ["url"],
1686
- };
1687
- export const SandboxSchema = {
1688
- description: "沙箱",
1689
- type: "object",
1690
- properties: {
1691
- id: {
1692
- type: "string",
1693
- },
1694
- createdAt: {
1695
- type: "string",
1696
- format: "date-time",
1697
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
1698
- },
1699
- updatedAt: {
1700
- type: "string",
1701
- format: "date-time",
1702
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
1703
- },
1704
- deletedAt: {
1705
- type: "string",
1706
- format: "date-time",
1707
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
1708
- },
1709
- organizationId: {
1710
- type: "string",
1711
- },
1712
- name: {
1713
- type: "string",
1714
- },
1715
- description: {
1716
- type: "string",
1717
- },
1718
- deployType: {
1719
- type: "string",
1720
- },
1721
- serverUrl: {
1722
- type: "string",
1723
- },
1724
- status: {
1725
- type: "string",
1726
- },
1727
- state: {
1728
- default: {},
1729
- },
1730
- config: {
1731
- default: {},
1732
- },
1733
- },
1734
- required: [
1735
- "id",
1736
- "createdAt",
1737
- "updatedAt",
1738
- "organizationId",
1739
- "name",
1740
- "description",
1741
- "deployType",
1742
- "serverUrl",
1743
- "status",
1744
- ],
1745
- };
1746
- export const SandboxListSchema = {
1747
- description: "沙箱列表响应",
1748
- type: "object",
1749
- properties: {
1750
- services: {
1751
- type: "array",
1752
- items: {
1753
- $ref: "#/components/schemas/Sandbox",
1754
- },
1755
- },
1756
- total: {
1757
- type: "number",
1758
- },
1759
- },
1760
- required: ["services", "total"],
1761
- };
1762
- export const SandboxGetSchema = {
1763
- description: "沙箱获取响应",
1764
- type: "object",
1765
- properties: {
1766
- service: {
1767
- $ref: "#/components/schemas/Sandbox",
1768
- },
1769
- },
1770
- };
1771
- export const SandboxStartSchema = {
1772
- description: "沙箱启动响应",
1773
- type: "object",
1774
- properties: {
1775
- message: {
1776
- type: "string",
1777
- },
1778
- serviceId: {
1779
- type: "string",
1780
- },
1781
- },
1782
- required: ["message", "serviceId"],
1783
- };
1784
- export const NavItemChildSchema = {
1785
- description: "导航菜单子项",
1786
- type: "object",
1787
- properties: {
1788
- title: {
1789
- type: "string",
1790
- },
1791
- url: {
1792
- type: "string",
1793
- },
1794
- icon: {
1795
- type: "string",
1796
- },
1797
- debugOnly: {
1798
- type: "boolean",
1799
- },
1800
- badge: {
1801
- type: "string",
1802
- },
1803
- roles: {
1804
- type: "array",
1805
- items: {
1806
- type: "string",
1807
- },
1808
- },
1809
- },
1810
- required: ["title"],
1811
- };
1812
- export const NavItemSchema = {
1813
- description: "导航菜单项",
1814
- type: "object",
1815
- properties: {
1816
- title: {
1817
- type: "string",
1818
- },
1819
- url: {
1820
- type: "string",
1821
- },
1822
- icon: {
1823
- type: "string",
1824
- },
1825
- debugOnly: {
1826
- type: "boolean",
1827
- },
1828
- badge: {
1829
- type: "string",
1830
- },
1831
- roles: {
1832
- type: "array",
1833
- items: {
1834
- type: "string",
1835
- },
1836
- },
1837
- children: {
1838
- type: "array",
1839
- items: {
1840
- $ref: "#/components/schemas/NavItemChild",
1841
- },
1842
- },
1843
- },
1844
- required: ["title"],
1845
- };
1846
- export const DashUiResponseSchema = {
1847
- description: "DashUI响应",
1848
- type: "object",
1849
- properties: {
1850
- navItems: {
1851
- type: "array",
1852
- items: {
1853
- $ref: "#/components/schemas/NavItem",
1854
- },
1855
- },
1856
- },
1857
- required: ["navItems"],
1858
- };
1859
- export const OrganizationSchema = {
1860
- description: "Organization",
1861
- type: "object",
1862
- properties: {
1863
- id: {
1864
- type: "string",
1865
- },
1866
- name: {
1867
- type: "string",
1868
- minLength: 1,
1869
- maxLength: 100,
1870
- },
1871
- slug: {
1872
- type: "string",
1873
- minLength: 1,
1874
- maxLength: 50,
1875
- },
1876
- logo: {
1877
- type: "string",
1878
- },
1879
- metadata: {
1880
- type: "object",
1881
- propertyNames: {
1882
- type: "string",
1883
- },
1884
- additionalProperties: {},
1885
- },
1886
- createdAt: {
1887
- type: "string",
1888
- },
1889
- updatedAt: {
1890
- type: "string",
1891
- },
1892
- },
1893
- required: ["id", "name", "slug", "createdAt", "updatedAt"],
1894
- };
1895
- export const OrganizationCreateRequestSchema = {
1896
- description: "OrganizationCreateRequest",
1897
- type: "object",
1898
- properties: {
1899
- name: {
1900
- type: "string",
1901
- minLength: 1,
1902
- maxLength: 100,
1903
- },
1904
- slug: {
1905
- type: "string",
1906
- minLength: 1,
1907
- maxLength: 50,
1908
- },
1909
- logo: {
1910
- type: "string",
1911
- },
1912
- metadata: {
1913
- type: "object",
1914
- propertyNames: {
1915
- type: "string",
1916
- },
1917
- additionalProperties: {},
1918
- },
1919
- },
1920
- required: ["name", "slug"],
1921
- };
1922
- export const OrganizationUpdateRequestSchema = {
1923
- description: "OrganizationUpdateRequest",
1924
- type: "object",
1925
- properties: {
1926
- name: {
1927
- type: "string",
1928
- minLength: 1,
1929
- maxLength: 100,
1930
- },
1931
- logo: {
1932
- type: "string",
1933
- },
1934
- metadata: {
1935
- type: "object",
1936
- propertyNames: {
1937
- type: "string",
1938
- },
1939
- additionalProperties: {},
1940
- },
1941
- },
1942
- };
1943
- export const InvitationSchema = {
1944
- description: "Invitation",
1945
- type: "object",
1946
- properties: {
1947
- id: {
1948
- type: "string",
1949
- },
1950
- organizationId: {
1951
- type: "string",
1952
- },
1953
- email: {
1954
- type: "string",
1955
- format: "email",
1956
- pattern: "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
1957
- },
1958
- role: {
1959
- type: "string",
1960
- enum: ["admin", "member"],
1961
- },
1962
- status: {
1963
- type: "string",
1964
- enum: ["pending", "accepted", "rejected", "cancelled"],
1965
- },
1966
- inviterId: {
1967
- type: "string",
1968
- },
1969
- expiresAt: {
1970
- type: "string",
1971
- },
1972
- createdAt: {
1973
- type: "string",
1974
- },
1975
- updatedAt: {
1976
- type: "string",
1977
- },
1978
- },
1979
- required: [
1980
- "id",
1981
- "organizationId",
1982
- "email",
1983
- "role",
1984
- "status",
1985
- "inviterId",
1986
- "expiresAt",
1987
- "createdAt",
1988
- "updatedAt",
1989
- ],
1990
- };
1991
- export const InviteRequestSchema = {
1992
- description: "InviteRequest",
1993
- type: "object",
1994
- properties: {
1995
- email: {
1996
- type: "string",
1997
- format: "email",
1998
- pattern: "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
1999
- },
2000
- role: {
2001
- default: "member",
2002
- type: "string",
2003
- enum: ["admin", "member"],
2004
- },
2005
- organizationId: {
2006
- type: "string",
2007
- },
2008
- },
2009
- required: ["email"],
2010
- };
2011
- export const MemberSchema = {
2012
- description: "Member",
2013
- type: "object",
2014
- properties: {
2015
- id: {
2016
- type: "string",
2017
- },
2018
- organizationId: {
2019
- type: "string",
2020
- },
2021
- userId: {
2022
- type: "string",
6
+ workerId: {
7
+ type: 'string'
2023
8
  },
2024
- role: {
2025
- type: "string",
2026
- enum: ["owner", "admin", "member"],
2027
- },
2028
- createdAt: {
2029
- type: "string",
2030
- },
2031
- updatedAt: {
2032
- type: "string",
2033
- },
2034
- },
2035
- required: [
2036
- "id",
2037
- "organizationId",
2038
- "userId",
2039
- "role",
2040
- "createdAt",
2041
- "updatedAt",
2042
- ],
2043
- };
2044
- export const UpdateMemberRoleRequestSchema = {
2045
- description: "UpdateMemberRoleRequest",
2046
- type: "object",
2047
- properties: {
2048
- role: {
2049
- type: "string",
2050
- enum: ["admin", "member"],
2051
- },
2052
- },
2053
- required: ["role"],
2054
- };
2055
- export const SysConfigRespSchema = {
2056
- description: "系统配置响应",
2057
- type: "object",
2058
- properties: {
2059
- len: {
2060
- description: "用户数量",
2061
- type: "number",
2062
- },
2063
- },
2064
- required: ["len"],
2065
- };
2066
- export const SystemConfigValueSchema = {
2067
- description: "系统配置值",
2068
- type: "object",
2069
- properties: {
2070
- hatchet: {
2071
- type: "object",
9
+ supabase: {
10
+ type: 'object',
2072
11
  properties: {
2073
- serverUrl: {
2074
- type: "string",
2075
- format: "uri",
12
+ sbUserName: {
13
+ type: 'string'
14
+ },
15
+ sbPassword: {
16
+ type: 'string'
2076
17
  },
2077
- token: {
2078
- type: "string",
18
+ sbUrl: {
19
+ type: 'string'
2079
20
  },
21
+ sbPublicKey: {
22
+ type: 'string'
23
+ }
2080
24
  },
25
+ required: [
26
+ 'sbUserName',
27
+ 'sbPassword',
28
+ 'sbUrl',
29
+ 'sbPublicKey'
30
+ ]
2081
31
  },
2082
- },
2083
- };
2084
- export const SystemConfigResponseSchema = {
2085
- description: "系统配置响应",
2086
- type: "object",
2087
- properties: {
2088
- id: {
2089
- description: "配置ID",
2090
- type: "string",
2091
- },
2092
- value: {
2093
- $ref: "#/components/schemas/SystemConfigValue",
2094
- },
2095
- createdAt: {
2096
- description: "创建时间",
2097
- type: "string",
2098
- },
2099
- updatedAt: {
2100
- description: "更新时间",
2101
- type: "string",
2102
- },
2103
- },
2104
- required: ["id", "value", "createdAt", "updatedAt"],
2105
- };
2106
- export const SingboxConfigSchema = {
2107
- description: "SingboxConfig",
2108
- type: "object",
2109
- properties: {
2110
- configUrl: {
2111
- type: "string",
2112
- },
2113
- containerOnly: {
2114
- default: false,
2115
- type: "boolean",
2116
- },
2117
- },
2118
- };
2119
- export const TunnelConfigSchema = {
2120
- description: "TunnelConfig",
2121
- type: "object",
2122
- properties: {
2123
- cloudflareToken: {
2124
- default: "",
2125
- type: "string",
2126
- },
2127
- tunnelName: {
2128
- type: "string",
2129
- },
2130
- localPort: {
2131
- type: "integer",
2132
- minimum: 1,
2133
- maximum: 65535,
2134
- },
2135
- singbox: {
2136
- $ref: "#/components/schemas/SingboxConfig",
2137
- },
2138
- },
2139
- required: ["localPort", "singbox"],
2140
- };
2141
- export const OnionConfigSchema = {
2142
- description: "OnionConfig",
2143
- type: "object",
2144
- properties: {
2145
- privateKey: {
2146
- type: "string",
2147
- },
2148
- },
2149
- };
2150
- export const VncServiceSchema = {
2151
- description: "VncService",
2152
- type: "object",
2153
- properties: {
2154
- enabled: {
2155
- default: false,
2156
- type: "boolean",
2157
- },
2158
- port: {
2159
- default: 8444,
2160
- type: "number",
2161
- },
2162
- display: {
2163
- default: ":1",
2164
- type: "string",
2165
- },
2166
- password: {
2167
- type: "string",
2168
- },
2169
- resolution: {
2170
- type: "string",
2171
- },
2172
- colorDepth: {
2173
- type: "number",
2174
- },
2175
- onionConfig: {
2176
- $ref: "#/components/schemas/OnionConfig",
2177
- },
2178
- },
2179
- };
2180
- export const MainApiServiceSchema = {
2181
- description: "MainApiService",
2182
- type: "object",
2183
- properties: {
2184
- enabled: {
2185
- default: false,
2186
- type: "boolean",
2187
- },
2188
- port: {
2189
- default: 8000,
2190
- type: "number",
2191
- },
2192
- onionConfig: {
2193
- $ref: "#/components/schemas/OnionConfig",
2194
- },
2195
- },
2196
- };
2197
- export const GomtmConfigSchema = {
2198
- description: "GomtmConfig",
2199
- type: "object",
2200
- properties: {
2201
32
  tunnel: {
2202
- $ref: "#/components/schemas/TunnelConfig",
2203
- },
2204
- vnc: {
2205
- $ref: "#/components/schemas/VncService",
2206
- },
2207
- mainApi: {
2208
- $ref: "#/components/schemas/MainApiService",
2209
- },
2210
- mtproxy: {
2211
- $ref: "#/components/schemas/MtproxyService",
2212
- },
2213
- },
2214
- };
2215
- export const MtgateProfileSchema = {
2216
- description: "Mtgate配置文件",
2217
- type: "object",
2218
- properties: {
2219
- id: {
2220
- type: "string",
2221
- },
2222
- description: {
2223
- type: "string",
2224
- },
2225
- config: {
2226
- $ref: "#/components/schemas/GomtmConfig",
2227
- },
2228
- isDefault: {
2229
- default: false,
2230
- type: "boolean",
2231
- },
2232
- createdAt: {
2233
- type: "string",
2234
- format: "date-time",
2235
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
2236
- },
2237
- updatedAt: {
2238
- type: "string",
2239
- format: "date-time",
2240
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
2241
- },
2242
- },
2243
- required: ["id", "config", "createdAt", "updatedAt"],
2244
- };
2245
- export const SiteSchema = {
2246
- description: "站点",
2247
- type: "object",
2248
- properties: {
2249
- id: {
2250
- type: "string",
2251
- },
2252
- title: {
2253
- type: "string",
2254
- },
2255
- description: {
2256
- type: "string",
2257
- },
2258
- organizationId: {
2259
- type: "string",
2260
- },
2261
- enabled: {
2262
- type: "boolean",
2263
- },
2264
- createdAt: {
2265
- type: "string",
2266
- },
2267
- updatedAt: {
2268
- type: "string",
2269
- },
2270
- state: {
2271
- type: "object",
2272
- propertyNames: {
2273
- type: "string",
2274
- },
2275
- additionalProperties: {},
2276
- },
2277
- automationEnabled: {
2278
- type: "boolean",
2279
- },
2280
- },
2281
- required: [
2282
- "id",
2283
- "title",
2284
- "organizationId",
2285
- "enabled",
2286
- "createdAt",
2287
- "updatedAt",
2288
- "automationEnabled",
2289
- ],
2290
- };
2291
- export const SiteCreateRequestSchema = {
2292
- description: "站点创建请求",
2293
- type: "object",
2294
- properties: {
2295
- title: {
2296
- type: "string",
2297
- minLength: 1,
2298
- },
2299
- description: {
2300
- type: "string",
2301
- },
2302
- enabled: {
2303
- default: true,
2304
- type: "boolean",
2305
- },
2306
- automationEnabled: {
2307
- default: false,
2308
- type: "boolean",
2309
- },
2310
- state: {
2311
- default: {},
2312
- type: "object",
2313
- propertyNames: {
2314
- type: "string",
2315
- },
2316
- additionalProperties: {},
2317
- },
2318
- organizationId: {
2319
- type: "string",
2320
- },
2321
- },
2322
- required: ["title", "organizationId"],
2323
- };
2324
- export const SiteUpdateRequestSchema = {
2325
- description: "站点更新请求",
2326
- type: "object",
2327
- properties: {
2328
- id: {
2329
- type: "string",
2330
- },
2331
- title: {
2332
- type: "string",
2333
- minLength: 1,
2334
- },
2335
- description: {
2336
- type: "string",
2337
- },
2338
- enabled: {
2339
- type: "boolean",
2340
- },
2341
- automationEnabled: {
2342
- type: "boolean",
2343
- },
2344
- state: {
2345
- type: "object",
2346
- propertyNames: {
2347
- type: "string",
2348
- },
2349
- additionalProperties: {},
2350
- },
2351
- tenantId: {
2352
- type: "string",
2353
- },
2354
- },
2355
- required: ["id", "tenantId"],
2356
- };
2357
- export const BlogPostSchema = {
2358
- description: "博客文章",
2359
- type: "object",
2360
- properties: {
2361
- id: {
2362
- type: "string",
2363
- },
2364
- createdAt: {
2365
- type: "string",
2366
- format: "date-time",
2367
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
2368
- },
2369
- updatedAt: {
2370
- type: "string",
2371
- format: "date-time",
2372
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
2373
- },
2374
- title: {
2375
- type: "string",
2376
- },
2377
- content: {
2378
- type: "string",
2379
- },
2380
- description: {
2381
- type: "string",
2382
- },
2383
- slug: {
2384
- type: "string",
2385
- },
2386
- status: {
2387
- type: "string",
2388
- },
2389
- state: {
2390
- type: "string",
2391
- },
2392
- publishDate: {
2393
- type: "string",
2394
- format: "date-time",
2395
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
2396
- },
2397
- siteId: {
2398
- type: "string",
2399
- },
2400
- tenantId: {
2401
- type: "string",
2402
- },
2403
- authorId: {
2404
- type: "string",
2405
- },
2406
- image: {
2407
- type: "string",
2408
- },
2409
- settings: {
2410
- type: "string",
2411
- },
2412
- deletedAt: {
2413
- type: "string",
2414
- format: "date-time",
2415
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
2416
- },
2417
- parentPostId: {
2418
- type: "string",
2419
- },
2420
- releaseId: {
2421
- type: "string",
2422
- },
2423
- releaseURL: {
2424
- type: "string",
2425
- },
2426
- lastMessageId: {
2427
- type: "string",
2428
- },
2429
- error: {
2430
- type: "string",
2431
- },
2432
- },
2433
- required: [
2434
- "id",
2435
- "createdAt",
2436
- "updatedAt",
2437
- "content",
2438
- "slug",
2439
- "status",
2440
- "state",
2441
- "siteId",
2442
- "tenantId",
2443
- "authorId",
2444
- ],
2445
- };
2446
- export const BlogPostCreateSchema = {
2447
- description: "创建博客文章请求",
2448
- type: "object",
2449
- properties: {
2450
- title: {
2451
- type: "string",
2452
- minLength: 1,
2453
- },
2454
- content: {
2455
- type: "string",
2456
- minLength: 1,
2457
- },
2458
- description: {
2459
- type: "string",
2460
- },
2461
- slug: {
2462
- type: "string",
2463
- },
2464
- status: {
2465
- default: "DRAFT",
2466
- type: "string",
2467
- },
2468
- state: {
2469
- default: "QUEUE",
2470
- type: "string",
2471
- },
2472
- publishDate: {
2473
- type: "string",
2474
- },
2475
- siteId: {
2476
- type: "string",
2477
- minLength: 1,
2478
- },
2479
- image: {
2480
- type: "string",
2481
- },
2482
- settings: {
2483
- type: "string",
2484
- },
2485
- },
2486
- required: ["content", "siteId"],
2487
- };
2488
- export const BlogPostUpdateSchema = {
2489
- description: "更新博客文章请求",
2490
- type: "object",
2491
- properties: {
2492
- title: {
2493
- type: "string",
2494
- minLength: 1,
2495
- },
2496
- content: {
2497
- type: "string",
2498
- },
2499
- description: {
2500
- type: "string",
2501
- },
2502
- slug: {
2503
- type: "string",
2504
- },
2505
- status: {
2506
- type: "string",
2507
- },
2508
- state: {
2509
- type: "string",
2510
- },
2511
- publishDate: {
2512
- type: "string",
2513
- },
2514
- image: {
2515
- type: "string",
2516
- },
2517
- settings: {
2518
- type: "string",
2519
- },
2520
- },
2521
- };
2522
- export const SiteHostSchema = {
2523
- description: "SiteHost",
2524
- type: "object",
2525
- properties: {
2526
- id: {
2527
- type: "string",
2528
- },
2529
- siteId: {
2530
- type: "string",
2531
- },
2532
- host: {
2533
- type: "string",
2534
- },
2535
- createdAt: {
2536
- type: "string",
2537
- },
2538
- updatedAt: {
2539
- type: "string",
2540
- },
2541
- },
2542
- required: ["id", "siteId", "host", "createdAt", "updatedAt"],
2543
- };
2544
- export const SiteHostCreateRequestSchema = {
2545
- description: "SiteHostCreateRequest",
2546
- type: "object",
2547
- properties: {
2548
- host: {
2549
- type: "string",
2550
- minLength: 1,
2551
- },
2552
- },
2553
- required: ["host"],
2554
- };
2555
- export const AdkSessionStateSchema = {
2556
- default: {},
2557
- description: "ADK会话状态",
2558
- type: "object",
2559
- propertyNames: {
2560
- type: "string",
2561
- },
2562
- additionalProperties: {},
2563
- };
2564
- export const AdkSessionSchema = {
2565
- description: "ADK会话",
2566
- type: "object",
2567
- properties: {
2568
- id: {
2569
- type: "string",
2570
- },
2571
- app_name: {
2572
- type: "string",
2573
- },
2574
- user_id: {
2575
- type: "string",
2576
- },
2577
- state: {
2578
- $ref: "#/components/schemas/AdkSessionState",
2579
- },
2580
- events: {
2581
- default: [],
2582
- type: "array",
2583
- items: {},
2584
- },
2585
- last_update_time: {
2586
- type: "number",
2587
- },
2588
- },
2589
- required: ["id", "app_name", "user_id"],
2590
- };
2591
- export const AdkSessionCreateReqSchema = {
2592
- description: "创建会话请求",
2593
- type: "object",
2594
- properties: {
2595
- app_name: {
2596
- type: "string",
2597
- },
2598
- user_id: {
2599
- type: "string",
2600
- },
2601
- state: {
2602
- $ref: "#/components/schemas/AdkSessionState",
2603
- },
2604
- session_id: {
2605
- type: "string",
2606
- },
2607
- },
2608
- required: ["app_name", "user_id"],
2609
- };
2610
- export const AdkSessionGetSchema = {
2611
- description: "获取会话响应",
2612
- type: "object",
2613
- properties: {
2614
- id: {
2615
- type: "string",
2616
- },
2617
- app_name: {
2618
- type: "string",
2619
- },
2620
- user_id: {
2621
- type: "string",
2622
- },
2623
- state: {
2624
- $ref: "#/components/schemas/AdkSessionState",
2625
- },
2626
- events: {
2627
- default: [],
2628
- type: "array",
2629
- items: {},
2630
- },
2631
- last_update_time: {
2632
- type: "number",
2633
- },
2634
- },
2635
- required: ["id", "app_name", "user_id"],
2636
- };
2637
- export const AdkSessionGetReqSchema = {
2638
- description: "获取会话请求",
2639
- type: "object",
2640
- properties: {
2641
- app_name: {
2642
- type: "string",
2643
- },
2644
- user_id: {
2645
- type: "string",
2646
- },
2647
- session_id: {
2648
- type: "string",
2649
- },
2650
- num_recent_events: {
2651
- type: "string",
2652
- },
2653
- after_timestamp: {
2654
- type: "string",
2655
- },
2656
- },
2657
- required: ["app_name", "user_id", "session_id"],
2658
- };
2659
- export const AdkSessionListSchema = {
2660
- description: "列表会话响应",
2661
- type: "object",
2662
- properties: {
2663
- paginate: {
2664
- type: "object",
33
+ type: 'object',
2665
34
  properties: {
2666
- total: {
2667
- description: "Total number of records",
2668
- type: "number",
2669
- },
2670
- page: {
2671
- description: "Current page number",
2672
- type: "number",
2673
- },
2674
- pageSize: {
2675
- description: "Number of records per page",
2676
- type: "number",
2677
- },
2678
- totalPages: {
2679
- description: "Total number of pages",
2680
- type: "number",
2681
- },
2682
- hasNext: {
2683
- description: "Whether there is a next page",
2684
- type: "boolean",
2685
- },
2686
- },
2687
- required: ["total", "page", "pageSize", "totalPages", "hasNext"],
2688
- },
2689
- rows: {
2690
- type: "array",
2691
- items: {
2692
- $ref: "#/components/schemas/AdkSession",
2693
- },
35
+ cloudflared: {
36
+ type: 'object',
37
+ properties: {
38
+ token: {
39
+ type: 'string'
40
+ }
41
+ }
42
+ },
43
+ tailscale: {
44
+ type: 'object',
45
+ properties: {
46
+ token: {
47
+ type: 'string'
48
+ }
49
+ }
50
+ }
51
+ },
52
+ required: [
53
+ 'cloudflared',
54
+ 'tailscale'
55
+ ]
2694
56
  },
57
+ services: {
58
+ type: 'object',
59
+ properties: {
60
+ mainapi: {
61
+ type: 'object',
62
+ properties: {
63
+ enabled: {
64
+ type: 'boolean'
65
+ }
66
+ }
67
+ },
68
+ vnc: {
69
+ type: 'object',
70
+ properties: {
71
+ enabled: {
72
+ type: 'boolean'
73
+ }
74
+ }
75
+ },
76
+ browserApi: {
77
+ type: 'object',
78
+ properties: {
79
+ enabled: {
80
+ type: 'boolean'
81
+ },
82
+ apiToken: {
83
+ type: 'string'
84
+ }
85
+ },
86
+ required: [
87
+ 'apiToken'
88
+ ]
89
+ }
90
+ },
91
+ required: [
92
+ 'mainapi',
93
+ 'vnc',
94
+ 'browserApi'
95
+ ]
96
+ }
2695
97
  },
2696
- required: ["paginate", "rows"],
98
+ required: [
99
+ 'workerId',
100
+ 'supabase',
101
+ 'tunnel',
102
+ 'services'
103
+ ]
2697
104
  };
2698
- export const AdkSessionAppendEventResultSchema = {
2699
- description: "追加事件响应",
2700
- type: "object",
105
+ export const WorkerUpRequestSchema = {
106
+ description: 'WorkerUpRequest',
107
+ type: 'object',
2701
108
  properties: {
2702
- timestamp: {
2703
- type: "number",
109
+ workerId: {
110
+ description: '',
111
+ type: 'string'
2704
112
  },
2705
- },
2706
- required: ["timestamp"],
113
+ botType: {
114
+ default: 'mainapi',
115
+ type: 'string'
116
+ }
117
+ }
2707
118
  };
2708
- export const AdkEventSchema = {
2709
- description: "ADK事件",
2710
- type: "object",
119
+ export const WorkerCheckResultSchema = {
120
+ type: 'object',
2711
121
  properties: {
2712
- invocation_id: {
2713
- type: "string",
2714
- },
2715
- author: {
2716
- type: "string",
2717
- },
2718
- actions: {},
2719
- long_running_tool_ids: {
2720
- type: "array",
2721
- items: {
2722
- type: "string",
2723
- },
2724
- },
2725
- branch: {
2726
- type: "string",
2727
- },
2728
122
  id: {
2729
- type: "string",
2730
- },
2731
- timestamp: {
2732
- type: "number",
2733
- },
2734
- content: {},
2735
- partial: {
2736
- type: "boolean",
2737
- },
2738
- turn_complete: {
2739
- type: "boolean",
2740
- },
2741
- error_code: {
2742
- type: "string",
2743
- },
2744
- error_message: {
2745
- type: "string",
2746
- },
2747
- interrupted: {
2748
- type: "boolean",
2749
- },
2750
- grounding_metadata: {},
2751
- custom_metadata: {},
123
+ type: 'string'
124
+ }
2752
125
  },
2753
- required: ["invocation_id", "author", "id", "timestamp"],
126
+ required: [
127
+ 'id'
128
+ ]
2754
129
  };
2755
- export const AdkSessionAppendEventBodySchema = {
2756
- description: "追加事件请求",
2757
- type: "object",
130
+ export const MqMessageSchema = {
131
+ type: 'object',
2758
132
  properties: {
2759
- session: {
2760
- $ref: "#/components/schemas/AdkSession",
133
+ msg_id: {
134
+ type: 'number'
135
+ },
136
+ read_ct: {
137
+ type: 'number'
2761
138
  },
2762
- event: {
2763
- $ref: "#/components/schemas/AdkEvent",
139
+ enqueued_at: {
140
+ type: 'string'
2764
141
  },
142
+ message: {}
2765
143
  },
2766
- required: ["session", "event"],
144
+ required: [
145
+ 'msg_id',
146
+ 'read_ct',
147
+ 'message'
148
+ ]
2767
149
  };
2768
- export const AdkArtifactSaveSchema = {
2769
- description: "保存artifact响应",
2770
- type: "object",
150
+ export const WorkerPullRespSchema = {
151
+ type: 'object',
2771
152
  properties: {
2772
- version: {
2773
- type: "integer",
2774
- minimum: -9007199254740991,
2775
- maximum: 9007199254740991,
153
+ error: {
154
+ type: 'string'
2776
155
  },
156
+ data: {
157
+ type: 'array',
158
+ items: {
159
+ $ref: '#/components/schemas/MqMessage'
160
+ }
161
+ }
2777
162
  },
2778
- required: ["version"],
163
+ required: [
164
+ 'data'
165
+ ]
2779
166
  };
2780
- export const AdkArtifactSaveRequestSchema = {
2781
- description: "保存artifact请求",
2782
- type: "object",
167
+ export const WorkerPullRequestSchema = {
168
+ type: 'object',
2783
169
  properties: {
2784
- app_name: {
2785
- type: "string",
2786
- },
2787
- user_id: {
2788
- type: "string",
2789
- },
2790
- session_id: {
2791
- type: "string",
2792
- },
2793
- filename: {
2794
- type: "string",
2795
- },
2796
- content_type: {
2797
- type: "string",
2798
- },
2799
- content_data: {},
170
+ worker_id: {
171
+ type: 'string'
172
+ }
2800
173
  },
2801
- required: ["app_name", "user_id", "session_id", "filename", "content_data"],
174
+ required: [
175
+ 'worker_id'
176
+ ]
2802
177
  };
2803
- export const AdkArtifactRespSchema = {
2804
- description: "Artifact响应",
2805
- type: "object",
178
+ export const WorkerAckRespSchema = {
179
+ type: 'object',
2806
180
  properties: {
2807
- app_name: {
2808
- type: "string",
2809
- },
2810
- user_id: {
2811
- type: "string",
2812
- },
2813
- session_id: {
2814
- type: "string",
2815
- },
2816
- filename: {
2817
- type: "string",
2818
- },
2819
- version: {
2820
- type: "integer",
2821
- minimum: -9007199254740991,
2822
- maximum: 9007199254740991,
2823
- },
2824
- content_type: {
2825
- type: "string",
2826
- },
2827
- content_data: {},
2828
- created_at: {
2829
- type: "string",
2830
- },
2831
- updated_at: {
2832
- type: "string",
181
+ error: {
182
+ type: 'string'
2833
183
  },
184
+ data: {}
185
+ }
186
+ };
187
+ export const WorkerAckRequestSchema = {
188
+ type: 'object',
189
+ properties: {
190
+ msg_id: {
191
+ type: 'number'
192
+ }
2834
193
  },
2835
194
  required: [
2836
- "app_name",
2837
- "user_id",
2838
- "session_id",
2839
- "filename",
2840
- "version",
2841
- "content_data",
2842
- "created_at",
2843
- "updated_at",
2844
- ],
195
+ 'msg_id'
196
+ ]
2845
197
  };
2846
- export const AdkArtifactLoadRequestSchema = {
2847
- description: "加载artifact请求",
2848
- type: "object",
198
+ export const AgentRunResultSchema = {
199
+ type: 'object',
200
+ properties: {}
201
+ };
202
+ export const AdkBlobSchema = {
203
+ type: 'object',
2849
204
  properties: {
2850
- app_name: {
2851
- type: "string",
2852
- },
2853
- user_id: {
2854
- type: "string",
2855
- },
2856
- session_id: {
2857
- type: "string",
2858
- },
2859
- filename: {
2860
- type: "string",
2861
- },
2862
- version: {
2863
- type: "integer",
2864
- minimum: -9007199254740991,
2865
- maximum: 9007199254740991,
205
+ mimeType: {
206
+ type: 'string'
2866
207
  },
208
+ data: {
209
+ type: 'string'
210
+ }
2867
211
  },
2868
- required: ["app_name", "user_id", "session_id", "filename"],
212
+ required: [
213
+ 'data'
214
+ ]
2869
215
  };
2870
- export const AdkArtifactSummarySchema = {
2871
- description: "Artifact摘要",
2872
- type: "object",
216
+ export const AdkFunctionCallSchema = {
217
+ type: 'object',
2873
218
  properties: {
2874
- app_name: {
2875
- type: "string",
2876
- },
2877
- user_id: {
2878
- type: "string",
2879
- },
2880
- session_id: {
2881
- type: "string",
2882
- },
2883
- filename: {
2884
- type: "string",
2885
- },
2886
- version: {
2887
- type: "integer",
2888
- minimum: -9007199254740991,
2889
- maximum: 9007199254740991,
2890
- },
2891
- content_type: {
2892
- type: "string",
2893
- },
2894
- size: {
2895
- type: "integer",
2896
- minimum: -9007199254740991,
2897
- maximum: 9007199254740991,
2898
- },
2899
- created_at: {
2900
- type: "string",
219
+ id: {
220
+ type: 'string'
2901
221
  },
2902
- updated_at: {
2903
- type: "string",
222
+ name: {
223
+ type: 'string'
2904
224
  },
225
+ args: {
226
+ type: 'object',
227
+ propertyNames: {
228
+ type: 'string'
229
+ },
230
+ additionalProperties: {}
231
+ }
2905
232
  },
2906
233
  required: [
2907
- "app_name",
2908
- "user_id",
2909
- "session_id",
2910
- "filename",
2911
- "version",
2912
- "created_at",
2913
- "updated_at",
2914
- ],
234
+ 'name',
235
+ 'args'
236
+ ]
2915
237
  };
2916
- export const AdkArtifactListSchema = {
2917
- description: "列表artifacts响应",
2918
- type: "object",
238
+ export const AdkFunctionRespSchema = {
239
+ type: 'object',
2919
240
  properties: {
2920
- paginate: {
2921
- type: "object",
2922
- properties: {
2923
- total: {
2924
- description: "Total number of records",
2925
- type: "number",
2926
- },
2927
- page: {
2928
- description: "Current page number",
2929
- type: "number",
2930
- },
2931
- pageSize: {
2932
- description: "Number of records per page",
2933
- type: "number",
2934
- },
2935
- totalPages: {
2936
- description: "Total number of pages",
2937
- type: "number",
2938
- },
2939
- hasNext: {
2940
- description: "Whether there is a next page",
2941
- type: "boolean",
2942
- },
2943
- },
2944
- required: ["total", "page", "pageSize", "totalPages", "hasNext"],
241
+ id: {
242
+ type: 'string'
2945
243
  },
2946
- rows: {
2947
- type: "array",
2948
- items: {
2949
- $ref: "#/components/schemas/AdkArtifactSummary",
2950
- },
244
+ name: {
245
+ type: 'string'
2951
246
  },
2952
- },
2953
- required: ["paginate", "rows"],
2954
- };
2955
- export const AdkArtifactListKeysSchema = {
2956
- description: "列表artifact keys响应",
2957
- type: "object",
2958
- properties: {
2959
- filenames: {
2960
- type: "array",
2961
- items: {
2962
- type: "string",
247
+ response: {
248
+ type: 'object',
249
+ propertyNames: {
250
+ type: 'string'
2963
251
  },
2964
- },
252
+ additionalProperties: {}
253
+ }
2965
254
  },
2966
- required: ["filenames"],
255
+ required: [
256
+ 'name',
257
+ 'response'
258
+ ]
2967
259
  };
2968
- export const AdkArtifactListVersionsSchema = {
2969
- description: "列表版本响应",
2970
- type: "object",
260
+ export const AdkFileDataSchema = {
261
+ type: 'object',
2971
262
  properties: {
2972
- versions: {
2973
- type: "array",
2974
- items: {
2975
- type: "integer",
2976
- minimum: -9007199254740991,
2977
- maximum: 9007199254740991,
2978
- },
263
+ mimeType: {
264
+ type: 'string'
2979
265
  },
266
+ fileUri: {
267
+ type: 'string'
268
+ }
2980
269
  },
2981
- required: ["versions"],
270
+ required: [
271
+ 'mimeType',
272
+ 'fileUri'
273
+ ]
2982
274
  };
2983
- export const AdkTaskSaveSchema = {
2984
- description: "任务保存响应",
2985
- type: "object",
275
+ export const AdkExecutableCodeSchema = {
276
+ type: 'object',
2986
277
  properties: {
2987
- success: {
2988
- type: "boolean",
278
+ language: {
279
+ type: 'string',
280
+ enum: [
281
+ 'UNKNOWN',
282
+ 'PYTHON'
283
+ ]
2989
284
  },
285
+ code: {
286
+ type: 'string'
287
+ }
2990
288
  },
2991
- required: ["success"],
289
+ required: [
290
+ 'language',
291
+ 'code'
292
+ ]
293
+ };
294
+ export const AdkCodeExecutionResultSchema = {
295
+ type: 'object',
296
+ properties: {
297
+ outcome: {
298
+ type: 'string',
299
+ enum: [
300
+ 'UNKNOWN',
301
+ 'OK',
302
+ 'FAILED',
303
+ 'DEADLINE_EXCEEDED'
304
+ ]
305
+ },
306
+ output: {
307
+ type: 'string'
308
+ }
309
+ },
310
+ required: [
311
+ 'outcome',
312
+ 'output'
313
+ ]
2992
314
  };
2993
- export const MessageSchema = {
2994
- description: "Message",
2995
- type: "object",
315
+ export const AdkPartSchema = {
316
+ type: 'object',
2996
317
  properties: {
2997
- kind: {
2998
- type: "string",
2999
- const: "message",
3000
- },
3001
- messageId: {
3002
- type: "string",
318
+ text: {
319
+ type: 'string'
3003
320
  },
3004
- role: {
3005
- type: "string",
3006
- enum: ["agent", "user"],
3007
- },
3008
- parts: {
3009
- type: "array",
3010
- items: {},
321
+ inlineData: {
322
+ $ref: '#/components/schemas/AdkBlob'
3011
323
  },
3012
- contextId: {
3013
- type: "string",
324
+ functionCall: {
325
+ $ref: '#/components/schemas/AdkFunctionCall'
3014
326
  },
3015
- taskId: {
3016
- type: "string",
327
+ functionResponse: {
328
+ $ref: '#/components/schemas/AdkFunctionResp'
3017
329
  },
3018
- extensions: {
3019
- type: "array",
3020
- items: {
3021
- type: "string",
3022
- },
330
+ thought: {
331
+ type: 'boolean'
3023
332
  },
3024
- referenceTaskIds: {
3025
- type: "array",
3026
- items: {
3027
- type: "string",
3028
- },
333
+ fileData: {
334
+ $ref: '#/components/schemas/AdkFileData'
3029
335
  },
3030
- metadata: {
3031
- type: "object",
3032
- propertyNames: {
3033
- type: "string",
3034
- },
3035
- additionalProperties: {},
336
+ executableCode: {
337
+ $ref: '#/components/schemas/AdkExecutableCode'
3036
338
  },
3037
- },
3038
- required: ["kind", "messageId", "role", "parts"],
339
+ codeExecutionResult: {
340
+ $ref: '#/components/schemas/AdkCodeExecutionResult'
341
+ }
342
+ }
3039
343
  };
3040
- export const TaskStateSchema = {
3041
- description: "TaskState",
3042
- type: "string",
3043
- enum: ["submitted", "running", "completed", "failed", "cancelled"],
3044
- };
3045
- export const TaskStatusSchema = {
3046
- description: "TaskStatus",
3047
- type: "object",
344
+ export const GenaiContentSchema = {
345
+ type: 'object',
3048
346
  properties: {
3049
- message: {
3050
- $ref: "#/components/schemas/Message",
3051
- },
3052
- state: {
3053
- $ref: "#/components/schemas/TaskState",
3054
- },
3055
- timestamp: {
3056
- type: "string",
347
+ role: {
348
+ type: 'string'
3057
349
  },
350
+ parts: {
351
+ type: 'array',
352
+ items: {
353
+ $ref: '#/components/schemas/AdkPart'
354
+ }
355
+ }
3058
356
  },
3059
- required: ["state"],
357
+ required: [
358
+ 'role',
359
+ 'parts'
360
+ ]
3060
361
  };
3061
- export const ArtifactSchema = {
3062
- description: "Artifact",
3063
- type: "object",
362
+ export const AgentRunReqSchema = {
363
+ type: 'object',
3064
364
  properties: {
3065
- artifactId: {
3066
- type: "string",
3067
- },
3068
- name: {
3069
- type: "string",
3070
- },
3071
- description: {
3072
- type: "string",
365
+ agentName: {
366
+ type: 'string'
3073
367
  },
3074
- parts: {
3075
- type: "array",
3076
- items: {},
368
+ newMessage: {
369
+ $ref: '#/components/schemas/GenaiContent'
3077
370
  },
3078
- extensions: {
3079
- type: "array",
3080
- items: {
3081
- type: "string",
3082
- },
371
+ sessionId: {
372
+ type: 'string'
3083
373
  },
3084
- metadata: {
3085
- type: "object",
3086
- propertyNames: {
3087
- type: "string",
3088
- },
3089
- additionalProperties: {},
374
+ stateDelta: {},
375
+ streaming: {
376
+ default: false,
377
+ type: 'boolean'
3090
378
  },
379
+ userId: {
380
+ type: 'string'
381
+ }
3091
382
  },
3092
- required: ["artifactId", "parts"],
383
+ required: [
384
+ 'agentName',
385
+ 'newMessage',
386
+ 'sessionId'
387
+ ]
3093
388
  };
3094
- export const AdkTaskSaveRequestSchema = {
3095
- description: "保存任务请求",
3096
- type: "object",
389
+ export const AdkEventActionsSchema = {
390
+ type: 'object',
3097
391
  properties: {
3098
- id: {
3099
- type: "string",
3100
- },
3101
- context_id: {
3102
- type: "string",
3103
- },
3104
- kind: {
3105
- default: "task",
3106
- type: "string",
3107
- },
3108
- status: {
3109
- $ref: "#/components/schemas/TaskStatus",
3110
- },
3111
- artifacts: {
3112
- type: "array",
3113
- items: {
3114
- $ref: "#/components/schemas/Artifact",
3115
- },
392
+ message: {
393
+ type: 'string'
3116
394
  },
3117
- history: {
3118
- type: "array",
3119
- items: {
3120
- $ref: "#/components/schemas/Message",
3121
- },
395
+ artifactDelta: {},
396
+ functionCall: {
397
+ $ref: '#/components/schemas/AdkFunctionCall'
3122
398
  },
3123
- metadata: {
3124
- type: "object",
3125
- propertyNames: {
3126
- type: "string",
3127
- },
3128
- additionalProperties: {},
399
+ functionResponse: {
400
+ $ref: '#/components/schemas/AdkFunctionResp'
3129
401
  },
3130
- },
3131
- required: ["id", "context_id", "status"],
402
+ finishReason: {
403
+ type: 'string'
404
+ }
405
+ }
3132
406
  };
3133
- export const TaskSchema = {
3134
- description: "Task",
3135
- type: "object",
407
+ export const AdkEventSchema = {
408
+ type: 'object',
3136
409
  properties: {
3137
410
  id: {
3138
- type: "string",
411
+ type: 'string'
3139
412
  },
3140
- context_id: {
3141
- type: "string",
413
+ author: {
414
+ type: 'string'
3142
415
  },
3143
- kind: {
3144
- default: "task",
3145
- type: "string",
416
+ invocationId: {
417
+ type: 'string'
3146
418
  },
3147
- status: {
3148
- $ref: "#/components/schemas/TaskStatus",
419
+ actions: {
420
+ $ref: '#/components/schemas/AdkEventActions'
3149
421
  },
3150
- artifacts: {
3151
- type: "array",
422
+ longRunningToolIds: {
423
+ type: 'array',
3152
424
  items: {
3153
- $ref: "#/components/schemas/Artifact",
3154
- },
425
+ type: 'string'
426
+ }
3155
427
  },
3156
- history: {
3157
- type: "array",
3158
- items: {
3159
- $ref: "#/components/schemas/Message",
3160
- },
428
+ branch: {
429
+ type: 'string'
3161
430
  },
3162
- metadata: {
3163
- type: "object",
3164
- propertyNames: {
3165
- type: "string",
3166
- },
3167
- additionalProperties: {},
431
+ timestamp: {
432
+ type: 'number'
3168
433
  },
3169
- },
3170
- required: ["id", "context_id", "status"],
3171
- };
3172
- export const AdkTaskGetSchema = {
3173
- description: "获取任务响应",
3174
- anyOf: [
3175
- {
3176
- $ref: "#/components/schemas/Task",
434
+ content: {
435
+ $ref: '#/components/schemas/GenaiContent'
3177
436
  },
3178
- {
3179
- type: "null",
437
+ error: {
438
+ type: 'string'
3180
439
  },
3181
- ],
3182
- };
3183
- export const AdkTaskGetRequestSchema = {
3184
- description: "获取任务请求",
3185
- type: "object",
3186
- properties: {
3187
- task_id: {
3188
- type: "string",
440
+ errorMessage: {
441
+ type: 'string'
3189
442
  },
3190
- },
3191
- required: ["task_id"],
443
+ errorCode: {
444
+ type: 'string'
445
+ },
446
+ groundingMetadata: {},
447
+ usageMetadata: {},
448
+ citationMetadata: {},
449
+ customMetadata: {},
450
+ turnComplete: {
451
+ type: 'boolean'
452
+ },
453
+ interrupted: {
454
+ type: 'boolean'
455
+ }
456
+ }
3192
457
  };
3193
- export const AdkTaskListSchema = {
3194
- description: "任务列表响应",
3195
- type: "object",
458
+ export const AdkSessionCreateRespSchema = {
459
+ type: 'object',
3196
460
  properties: {
3197
- paginate: {
3198
- type: "object",
461
+ error: {
462
+ type: 'string'
463
+ },
464
+ data: {
465
+ type: 'object',
3199
466
  properties: {
3200
- total: {
3201
- description: "Total number of records",
3202
- type: "number",
3203
- },
3204
- page: {
3205
- description: "Current page number",
3206
- type: "number",
467
+ id: {
468
+ type: 'string'
3207
469
  },
3208
- pageSize: {
3209
- description: "Number of records per page",
3210
- type: "number",
470
+ appName: {
471
+ type: 'string'
3211
472
  },
3212
- totalPages: {
3213
- description: "Total number of pages",
3214
- type: "number",
473
+ userId: {
474
+ type: 'string'
3215
475
  },
3216
- hasNext: {
3217
- description: "Whether there is a next page",
3218
- type: "boolean",
476
+ state: {},
477
+ events: {
478
+ type: 'array',
479
+ items: {
480
+ $ref: '#/components/schemas/AdkEvent'
481
+ }
3219
482
  },
483
+ updateAt: {
484
+ type: 'string',
485
+ format: 'date-time',
486
+ pattern: '^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$'
487
+ }
3220
488
  },
3221
- required: ["total", "page", "pageSize", "totalPages", "hasNext"],
489
+ required: [
490
+ 'state'
491
+ ]
492
+ }
493
+ }
494
+ };
495
+ export const AdkSessionGetRespSchema = {
496
+ type: 'object',
497
+ properties: {
498
+ error: {
499
+ type: 'string'
3222
500
  },
3223
- rows: {
3224
- type: "array",
3225
- items: {
3226
- $ref: "#/components/schemas/Task",
501
+ data: {
502
+ type: 'object',
503
+ properties: {
504
+ id: {
505
+ type: 'string'
506
+ },
507
+ appName: {
508
+ type: 'string'
509
+ },
510
+ userId: {
511
+ type: 'string'
512
+ },
513
+ state: {},
514
+ events: {
515
+ type: 'array',
516
+ items: {
517
+ $ref: '#/components/schemas/AdkEvent'
518
+ }
519
+ },
520
+ updateAt: {
521
+ type: 'string',
522
+ format: 'date-time',
523
+ pattern: '^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$'
524
+ }
3227
525
  },
3228
- },
3229
- },
3230
- required: ["paginate", "rows"],
526
+ required: [
527
+ 'state'
528
+ ]
529
+ }
530
+ }
3231
531
  };
3232
- export const MtWorkerSchema = {
3233
- description: "Mtworker",
3234
- type: "object",
532
+ export const AgentChatItemSchema = {
533
+ type: 'object',
3235
534
  properties: {
3236
535
  id: {
3237
- type: "string",
3238
- },
3239
- organizationId: {
3240
- type: "string",
536
+ type: 'string'
3241
537
  },
3242
- description: {
3243
- type: "string",
3244
- },
3245
- config: {},
3246
- status: {
3247
- default: "offline",
3248
- type: "string",
3249
- enum: ["offline", "online", "starting", "stopping", "error"],
3250
- },
3251
- lastHeartbeat: {
3252
- type: "string",
3253
- format: "date-time",
3254
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
538
+ title: {
539
+ type: 'string'
3255
540
  },
3256
- isDefault: {
3257
- default: false,
3258
- type: "boolean",
541
+ user_id: {
542
+ type: 'string'
3259
543
  },
3260
- createdAt: {
3261
- type: "string",
3262
- format: "date-time",
3263
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
544
+ visibility: {
545
+ type: 'string'
3264
546
  },
3265
- updatedAt: {
3266
- type: "string",
3267
- format: "date-time",
3268
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
547
+ lastContext: {},
548
+ created_at: {
549
+ type: 'string',
550
+ format: 'date-time',
551
+ pattern: '^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$'
3269
552
  },
553
+ updated_at: {
554
+ type: 'string',
555
+ format: 'date-time',
556
+ pattern: '^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$'
557
+ }
3270
558
  },
3271
- required: ["id", "organizationId", "config", "createdAt", "updatedAt"],
3272
- };
3273
- export const CreateMtWorkerSchema = {
3274
- description: "创建Mtworker",
3275
- type: "object",
3276
- properties: {
3277
- description: {
3278
- type: "string",
3279
- },
3280
- config: {
3281
- $ref: "#/components/schemas/GomtmConfig",
3282
- },
3283
- isDefault: {
559
+ required: [
560
+ 'id',
561
+ 'title',
562
+ 'user_id',
563
+ 'visibility',
564
+ 'created_at',
565
+ 'updated_at'
566
+ ]
567
+ };
568
+ export const zMtAgentRunSchema = {
569
+ type: 'object',
570
+ properties: {}
571
+ };
572
+ export const MtAgentRunReqSchema = {
573
+ type: 'object',
574
+ properties: {
575
+ agentName: {
576
+ default: 'assistant',
577
+ type: 'string'
578
+ },
579
+ messages: {
580
+ type: 'array',
581
+ items: {}
582
+ },
583
+ sessionId: {
584
+ type: 'string'
585
+ },
586
+ stateDelta: {},
587
+ streaming: {
3284
588
  default: false,
3285
- type: "boolean",
589
+ type: 'boolean'
3286
590
  },
591
+ userId: {
592
+ type: 'string'
593
+ }
3287
594
  },
3288
- required: ["config"],
595
+ required: [
596
+ 'messages'
597
+ ]
3289
598
  };
3290
- export const HatchetWorkerConfigSchema = {
3291
- description: "Hatchet Worker配置",
3292
- type: "object",
599
+ export const AgentQuickActionItemSchema = {
600
+ type: 'object',
3293
601
  properties: {
3294
- hatchetUrl: {
3295
- description: "Hatchet server URL",
3296
- type: "string",
3297
- minLength: 1,
602
+ id: {
603
+ type: 'string'
3298
604
  },
3299
- hatchetToken: {
3300
- description: "Hatchet authentication token",
3301
- type: "string",
3302
- minLength: 1,
605
+ icon: {
606
+ type: 'string'
3303
607
  },
608
+ text: {
609
+ type: 'string'
610
+ }
3304
611
  },
3305
- required: ["hatchetUrl", "hatchetToken"],
612
+ required: [
613
+ 'text'
614
+ ]
3306
615
  };
3307
- export const HatchetWorkerConfigResponseSchema = {
3308
- description: "Hatchet Worker配置响应",
3309
- type: "object",
616
+ export const ChatMessageSchema = {
617
+ type: 'object',
3310
618
  properties: {
3311
619
  id: {
3312
- type: "string",
620
+ type: 'string'
3313
621
  },
3314
- config: {
3315
- $ref: "#/components/schemas/HatchetWorkerConfig",
622
+ created_at: {
623
+ type: 'string',
624
+ format: 'date-time',
625
+ pattern: '^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$'
626
+ },
627
+ updated_at: {
628
+ type: 'string',
629
+ format: 'date-time',
630
+ pattern: '^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$'
3316
631
  },
3317
- createdAt: {
3318
- type: "string",
3319
- minLength: 1,
632
+ chat_id: {
633
+ type: 'string'
3320
634
  },
3321
- updatedAt: {
3322
- type: "string",
3323
- minLength: 1,
635
+ role: {
636
+ type: 'string'
3324
637
  },
638
+ parts: {},
639
+ attachments: {},
640
+ user_id: {
641
+ type: 'string'
642
+ }
3325
643
  },
3326
- required: ["id", "config", "createdAt", "updatedAt"],
3327
- };
3328
- export const MtProxyConfigSchema = {
3329
- default: {
3330
- enabled: false,
3331
- port: 10801,
3332
- bindAddr: "0.0.0.0",
3333
- },
3334
- description: "Mtproxy配置",
3335
- type: "object",
644
+ required: [
645
+ 'id',
646
+ 'created_at',
647
+ 'updated_at',
648
+ 'chat_id',
649
+ 'role',
650
+ 'parts',
651
+ 'attachments',
652
+ 'user_id'
653
+ ]
654
+ };
655
+ export const BrowserCreateResultSchema = {
656
+ type: 'object',
3336
657
  properties: {
3337
- enabled: {
3338
- default: false,
3339
- type: "boolean",
658
+ id: {
659
+ type: 'string'
3340
660
  },
3341
- port: {
3342
- default: 10801,
3343
- type: "number",
661
+ title: {
662
+ type: 'string'
3344
663
  },
3345
- bindAddr: {
3346
- default: "0.0.0.0",
3347
- type: "string",
664
+ created_at: {
665
+ type: 'string'
3348
666
  },
667
+ provider: {
668
+ type: 'string'
669
+ }
3349
670
  },
671
+ required: [
672
+ 'id'
673
+ ]
3350
674
  };
3351
- export const OrgWorkerConfigSchema = {
3352
- description: "OrgWorker配置",
3353
- type: "object",
675
+ export const BrowserCreateReqSchema = {
676
+ type: 'object',
3354
677
  properties: {
3355
- mtgateUrl: {
3356
- type: "string",
678
+ id: {
679
+ description: '如果不传则自动生成,传入则更新对应记录',
680
+ type: 'string'
3357
681
  },
3358
- profile: {
3359
- type: "string",
682
+ title: {
683
+ description: '配置名称',
684
+ type: 'string',
685
+ minLength: 1
3360
686
  },
3361
- metadata: {},
3362
- mtproxy: {
3363
- $ref: "#/components/schemas/MtProxyConfig",
687
+ description: {
688
+ description: '描述信息',
689
+ type: 'string'
3364
690
  },
3365
- },
3366
- };
3367
- export const OrgWorkerStateSchema = {
3368
- description: "OrgWorker状态",
3369
- type: "object",
3370
- properties: {
3371
- status: {
3372
- default: "offline",
3373
- type: "string",
3374
- enum: ["offline", "online", "starting", "stopping", "error"],
691
+ profile_id: {
692
+ description: '关联的 profile ID',
693
+ type: 'string'
3375
694
  },
3376
- lastHeartbeat: {
3377
- type: "string",
3378
- format: "date-time",
3379
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
695
+ provider: {
696
+ description: '底层提供商,如 nst',
697
+ type: 'string'
3380
698
  },
3381
- error: {
3382
- type: "string",
699
+ provider_config: {
700
+ description: '提供商特定配置'
3383
701
  },
702
+ config: {
703
+ description: '通用配置'
704
+ }
3384
705
  },
706
+ required: [
707
+ 'title'
708
+ ]
3385
709
  };
3386
- export const OrgWorkerSchema = {
3387
- description: "组织Worker",
3388
- type: "object",
710
+ export const BrowserRowSchema = {
711
+ type: 'object',
3389
712
  properties: {
3390
713
  id: {
3391
- type: "string",
714
+ type: 'string'
3392
715
  },
3393
- orgId: {
3394
- type: "string",
716
+ created_at: {
717
+ type: 'string'
3395
718
  },
3396
- name: {
3397
- type: "string",
719
+ updated_at: {
720
+ type: 'string'
3398
721
  },
3399
- description: {
3400
- type: "string",
722
+ title: {
723
+ type: 'string'
3401
724
  },
3402
- isDefault: {
3403
- default: false,
3404
- type: "boolean",
725
+ description: {
726
+ type: 'string'
3405
727
  },
3406
- config: {
3407
- $ref: "#/components/schemas/OrgWorkerConfig",
728
+ profile_id: {
729
+ type: 'string'
3408
730
  },
3409
- state: {
3410
- $ref: "#/components/schemas/OrgWorkerState",
731
+ provider: {
732
+ type: 'string'
3411
733
  },
3412
- createdAt: {
3413
- type: "string",
3414
- format: "date-time",
3415
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
734
+ provider_config: {},
735
+ config: {},
736
+ sandbox_id: {
737
+ type: 'string'
3416
738
  },
3417
- updatedAt: {
3418
- type: "string",
3419
- format: "date-time",
3420
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
739
+ vnc_url: {
740
+ type: 'string'
3421
741
  },
3422
- deletedAt: {
3423
- type: "string",
3424
- format: "date-time",
3425
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
742
+ worker_name: {
743
+ type: 'string'
3426
744
  },
745
+ is_running: {
746
+ type: 'boolean'
747
+ }
3427
748
  },
3428
749
  required: [
3429
- "id",
3430
- "orgId",
3431
- "name",
3432
- "config",
3433
- "state",
3434
- "createdAt",
3435
- "updatedAt",
3436
- ],
3437
- };
3438
- export const OrgWorkerListSchema = {
3439
- description: "组织Worker列表响应",
3440
- type: "object",
3441
- properties: {
3442
- paginate: {
3443
- type: "object",
3444
- properties: {
3445
- total: {
3446
- description: "Total number of records",
3447
- type: "number",
3448
- },
3449
- page: {
3450
- description: "Current page number",
3451
- type: "number",
3452
- },
3453
- pageSize: {
3454
- description: "Number of records per page",
3455
- type: "number",
3456
- },
3457
- totalPages: {
3458
- description: "Total number of pages",
3459
- type: "number",
3460
- },
3461
- hasNext: {
3462
- description: "Whether there is a next page",
3463
- type: "boolean",
3464
- },
3465
- },
3466
- required: ["total", "page", "pageSize", "totalPages", "hasNext"],
3467
- },
3468
- rows: {
3469
- type: "array",
3470
- items: {
3471
- $ref: "#/components/schemas/OrgWorker",
3472
- },
3473
- },
3474
- },
3475
- required: ["paginate", "rows"],
3476
- };
3477
- export const OrgWorkerUpsertRequestSchema = {
3478
- description: "组织Worker更新请求",
3479
- type: "object",
3480
- properties: {
3481
- name: {
3482
- type: "string",
3483
- minLength: 1,
3484
- },
3485
- description: {
3486
- type: "string",
3487
- },
3488
- isDefault: {
3489
- type: "boolean",
3490
- },
3491
- config: {
3492
- $ref: "#/components/schemas/OrgWorkerConfig",
3493
- },
3494
- },
3495
- required: ["name"],
750
+ 'id',
751
+ 'created_at',
752
+ 'updated_at'
753
+ ]
3496
754
  };
3497
755
  //# sourceMappingURL=schemas.gen.js.map