mtmsdk 0.0.11 → 0.0.13

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 (410) hide show
  1. package/dist/components/MustAdmin.d.ts +14 -0
  2. package/dist/components/MustAdmin.d.ts.map +1 -0
  3. package/dist/components/MustAdmin.js +37 -0
  4. package/dist/components/MustAdmin.js.map +1 -0
  5. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts +137 -2073
  6. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +1 -1
  7. package/dist/gomtmapi/@tanstack/react-query.gen.js +118 -2085
  8. package/dist/gomtmapi/@tanstack/react-query.gen.js.map +1 -1
  9. package/dist/gomtmapi/client/client.gen.d.ts +3 -0
  10. package/dist/gomtmapi/client/client.gen.d.ts.map +1 -0
  11. package/dist/{gomtmapi_v2/client/client.js → gomtmapi/client/client.gen.js} +82 -23
  12. package/dist/gomtmapi/client/client.gen.js.map +1 -0
  13. package/dist/gomtmapi/client/index.d.ts +7 -7
  14. package/dist/gomtmapi/client/index.d.ts.map +1 -1
  15. package/dist/gomtmapi/client/index.js +5 -4
  16. package/dist/gomtmapi/client/index.js.map +1 -1
  17. package/dist/gomtmapi/client/{types.d.ts → types.gen.d.ts} +19 -14
  18. package/dist/gomtmapi/client/types.gen.d.ts.map +1 -0
  19. package/dist/gomtmapi/client/types.gen.js +3 -0
  20. package/dist/gomtmapi/client/types.gen.js.map +1 -0
  21. package/dist/gomtmapi/client/{utils.d.ts → utils.gen.d.ts} +9 -21
  22. package/dist/gomtmapi/client/utils.gen.d.ts.map +1 -0
  23. package/dist/{gomtmapi_v2/client/utils.js → gomtmapi/client/utils.gen.js} +56 -110
  24. package/dist/gomtmapi/client/utils.gen.js.map +1 -0
  25. package/dist/gomtmapi/client.gen.d.ts +3 -3
  26. package/dist/gomtmapi/client.gen.d.ts.map +1 -1
  27. package/dist/gomtmapi/client.gen.js.map +1 -1
  28. package/dist/gomtmapi/core/{auth.d.ts → auth.gen.d.ts} +1 -1
  29. package/dist/gomtmapi/core/auth.gen.d.ts.map +1 -0
  30. package/dist/gomtmapi/core/{auth.js → auth.gen.js} +2 -1
  31. package/dist/gomtmapi/core/auth.gen.js.map +1 -0
  32. package/dist/{mtgate_api/core/bodySerializer.d.ts → gomtmapi/core/bodySerializer.gen.d.ts} +2 -2
  33. package/dist/gomtmapi/core/bodySerializer.gen.d.ts.map +1 -0
  34. package/dist/{mtgate_api/core/bodySerializer.js → gomtmapi/core/bodySerializer.gen.js} +5 -1
  35. package/dist/gomtmapi/core/bodySerializer.gen.js.map +1 -0
  36. package/dist/{mtgate_api/core/params.d.ts → gomtmapi/core/params.gen.d.ts} +11 -1
  37. package/dist/gomtmapi/core/params.gen.d.ts.map +1 -0
  38. package/dist/gomtmapi/core/{params.js → params.gen.js} +2 -1
  39. package/dist/gomtmapi/core/params.gen.js.map +1 -0
  40. package/dist/{mtgate_api/core/pathSerializer.d.ts → gomtmapi/core/pathSerializer.gen.d.ts} +1 -1
  41. package/dist/gomtmapi/core/pathSerializer.gen.d.ts.map +1 -0
  42. package/dist/gomtmapi/core/{pathSerializer.js → pathSerializer.gen.js} +2 -1
  43. package/dist/gomtmapi/core/pathSerializer.gen.js.map +1 -0
  44. package/dist/gomtmapi/core/serverSentEvents.gen.d.ts +72 -0
  45. package/dist/gomtmapi/core/serverSentEvents.gen.d.ts.map +1 -0
  46. package/dist/gomtmapi/core/serverSentEvents.gen.js +136 -0
  47. package/dist/gomtmapi/core/serverSentEvents.gen.js.map +1 -0
  48. package/dist/{mtgate_api/core/types.d.ts → gomtmapi/core/types.gen.d.ts} +20 -15
  49. package/dist/gomtmapi/core/types.gen.d.ts.map +1 -0
  50. package/dist/gomtmapi/core/types.gen.js +3 -0
  51. package/dist/gomtmapi/core/types.gen.js.map +1 -0
  52. package/dist/gomtmapi/core/utils.gen.d.ts +20 -0
  53. package/dist/gomtmapi/core/utils.gen.d.ts.map +1 -0
  54. package/dist/gomtmapi/core/utils.gen.js +88 -0
  55. package/dist/gomtmapi/core/utils.gen.js.map +1 -0
  56. package/dist/gomtmapi/index.d.ts.map +1 -1
  57. package/dist/gomtmapi/index.js.map +1 -1
  58. package/dist/gomtmapi/schemas.gen.d.ts +806 -3746
  59. package/dist/gomtmapi/schemas.gen.d.ts.map +1 -1
  60. package/dist/gomtmapi/schemas.gen.js +780 -3827
  61. package/dist/gomtmapi/schemas.gen.js.map +1 -1
  62. package/dist/gomtmapi/sdk.gen.d.ts +3 -306
  63. package/dist/gomtmapi/sdk.gen.d.ts.map +1 -1
  64. package/dist/gomtmapi/sdk.gen.js +53 -1338
  65. package/dist/gomtmapi/sdk.gen.js.map +1 -1
  66. package/dist/gomtmapi/types.gen.d.ts +1186 -5364
  67. package/dist/gomtmapi/types.gen.d.ts.map +1 -1
  68. package/dist/gomtmapi/types.gen.js +8 -45
  69. package/dist/gomtmapi/types.gen.js.map +1 -1
  70. package/dist/gomtmapi/zod.gen.d.ts +1371 -4628
  71. package/dist/gomtmapi/zod.gen.d.ts.map +1 -1
  72. package/dist/gomtmapi/zod.gen.js +565 -2224
  73. package/dist/gomtmapi/zod.gen.js.map +1 -1
  74. package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts +286 -823
  75. package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts.map +1 -1
  76. package/dist/gomtmapi_v2/@tanstack/react-query.gen.js +226 -787
  77. package/dist/gomtmapi_v2/@tanstack/react-query.gen.js.map +1 -1
  78. package/dist/gomtmapi_v2/client/client.gen.d.ts +3 -0
  79. package/dist/gomtmapi_v2/client/client.gen.d.ts.map +1 -0
  80. package/dist/{mtgate_api/client/client.js → gomtmapi_v2/client/client.gen.js} +82 -23
  81. package/dist/gomtmapi_v2/client/client.gen.js.map +1 -0
  82. package/dist/gomtmapi_v2/client/index.d.ts +7 -7
  83. package/dist/gomtmapi_v2/client/index.d.ts.map +1 -1
  84. package/dist/gomtmapi_v2/client/index.js +5 -4
  85. package/dist/gomtmapi_v2/client/index.js.map +1 -1
  86. package/dist/{mtgate_api/client/types.d.ts → gomtmapi_v2/client/types.gen.d.ts} +19 -14
  87. package/dist/gomtmapi_v2/client/types.gen.d.ts.map +1 -0
  88. package/dist/gomtmapi_v2/client/types.gen.js +3 -0
  89. package/dist/gomtmapi_v2/client/types.gen.js.map +1 -0
  90. package/dist/{mtgate_api/client/utils.d.ts → gomtmapi_v2/client/utils.gen.d.ts} +9 -21
  91. package/dist/gomtmapi_v2/client/utils.gen.d.ts.map +1 -0
  92. package/dist/{gomtmapi/client/utils.js → gomtmapi_v2/client/utils.gen.js} +56 -110
  93. package/dist/gomtmapi_v2/client/utils.gen.js.map +1 -0
  94. package/dist/gomtmapi_v2/client.gen.d.ts +3 -3
  95. package/dist/gomtmapi_v2/client.gen.d.ts.map +1 -1
  96. package/dist/gomtmapi_v2/client.gen.js.map +1 -1
  97. package/dist/{mtmai_api/core/auth.d.ts → gomtmapi_v2/core/auth.gen.d.ts} +1 -1
  98. package/dist/gomtmapi_v2/core/auth.gen.d.ts.map +1 -0
  99. package/dist/{mtmai_api/core/auth.js → gomtmapi_v2/core/auth.gen.js} +2 -1
  100. package/dist/gomtmapi_v2/core/auth.gen.js.map +1 -0
  101. package/dist/gomtmapi_v2/core/{bodySerializer.d.ts → bodySerializer.gen.d.ts} +2 -2
  102. package/dist/gomtmapi_v2/core/bodySerializer.gen.d.ts.map +1 -0
  103. package/dist/{gomtmapi/core/bodySerializer.js → gomtmapi_v2/core/bodySerializer.gen.js} +5 -1
  104. package/dist/gomtmapi_v2/core/bodySerializer.gen.js.map +1 -0
  105. package/dist/gomtmapi_v2/core/{params.d.ts → params.gen.d.ts} +11 -1
  106. package/dist/gomtmapi_v2/core/params.gen.d.ts.map +1 -0
  107. package/dist/{mtgate_api/core/params.js → gomtmapi_v2/core/params.gen.js} +2 -1
  108. package/dist/gomtmapi_v2/core/params.gen.js.map +1 -0
  109. package/dist/{mtmai_api/core/pathSerializer.d.ts → gomtmapi_v2/core/pathSerializer.gen.d.ts} +1 -1
  110. package/dist/gomtmapi_v2/core/pathSerializer.gen.d.ts.map +1 -0
  111. package/dist/{mtgate_api/core/pathSerializer.js → gomtmapi_v2/core/pathSerializer.gen.js} +2 -1
  112. package/dist/gomtmapi_v2/core/pathSerializer.gen.js.map +1 -0
  113. package/dist/gomtmapi_v2/core/serverSentEvents.gen.d.ts +72 -0
  114. package/dist/gomtmapi_v2/core/serverSentEvents.gen.d.ts.map +1 -0
  115. package/dist/gomtmapi_v2/core/serverSentEvents.gen.js +136 -0
  116. package/dist/gomtmapi_v2/core/serverSentEvents.gen.js.map +1 -0
  117. package/dist/{mtmai_api/core/types.d.ts → gomtmapi_v2/core/types.gen.d.ts} +20 -15
  118. package/dist/gomtmapi_v2/core/types.gen.d.ts.map +1 -0
  119. package/dist/gomtmapi_v2/core/types.gen.js +3 -0
  120. package/dist/gomtmapi_v2/core/types.gen.js.map +1 -0
  121. package/dist/gomtmapi_v2/core/utils.gen.d.ts +20 -0
  122. package/dist/gomtmapi_v2/core/utils.gen.d.ts.map +1 -0
  123. package/dist/gomtmapi_v2/core/utils.gen.js +88 -0
  124. package/dist/gomtmapi_v2/core/utils.gen.js.map +1 -0
  125. package/dist/gomtmapi_v2/index.d.ts +1 -1
  126. package/dist/gomtmapi_v2/index.d.ts.map +1 -1
  127. package/dist/gomtmapi_v2/index.js +0 -1
  128. package/dist/gomtmapi_v2/index.js.map +1 -1
  129. package/dist/gomtmapi_v2/schemas.gen.d.ts +317 -222
  130. package/dist/gomtmapi_v2/schemas.gen.d.ts.map +1 -1
  131. package/dist/gomtmapi_v2/schemas.gen.js +317 -222
  132. package/dist/gomtmapi_v2/schemas.gen.js.map +1 -1
  133. package/dist/gomtmapi_v2/sdk.gen.d.ts +142 -156
  134. package/dist/gomtmapi_v2/sdk.gen.d.ts.map +1 -1
  135. package/dist/gomtmapi_v2/sdk.gen.js +210 -233
  136. package/dist/gomtmapi_v2/sdk.gen.js.map +1 -1
  137. package/dist/gomtmapi_v2/types.gen.d.ts +188 -195
  138. package/dist/gomtmapi_v2/types.gen.d.ts.map +1 -1
  139. package/dist/gomtmapi_v2/zod.gen.d.ts +474 -428
  140. package/dist/gomtmapi_v2/zod.gen.d.ts.map +1 -1
  141. package/dist/gomtmapi_v2/zod.gen.js +892 -1054
  142. package/dist/gomtmapi_v2/zod.gen.js.map +1 -1
  143. package/dist/lib/adk-utils.d.ts +0 -5
  144. package/dist/lib/adk-utils.d.ts.map +1 -1
  145. package/dist/lib/adk-utils.js +31 -32
  146. package/dist/lib/adk-utils.js.map +1 -1
  147. package/dist/lib/auth-client.d.ts +5965 -0
  148. package/dist/lib/auth-client.d.ts.map +1 -0
  149. package/dist/lib/auth-client.js +29 -0
  150. package/dist/lib/auth-client.js.map +1 -0
  151. package/dist/lib/get-query-client.d.ts.map +1 -1
  152. package/dist/lib/get-query-client.js +1 -21
  153. package/dist/lib/get-query-client.js.map +1 -1
  154. package/dist/lib/mtgate_client_ss.d.ts +10 -0
  155. package/dist/lib/mtgate_client_ss.d.ts.map +1 -0
  156. package/dist/lib/mtgate_client_ss.js +24 -0
  157. package/dist/lib/mtgate_client_ss.js.map +1 -0
  158. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +367 -2123
  159. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -1
  160. package/dist/mtgate_api/@tanstack/react-query.gen.js +142 -1018
  161. package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -1
  162. package/dist/mtgate_api/client/client.gen.d.ts +3 -0
  163. package/dist/mtgate_api/client/client.gen.d.ts.map +1 -0
  164. package/dist/{gomtmapi/client/client.js → mtgate_api/client/client.gen.js} +82 -23
  165. package/dist/mtgate_api/client/client.gen.js.map +1 -0
  166. package/dist/mtgate_api/client/index.d.ts +7 -7
  167. package/dist/mtgate_api/client/index.d.ts.map +1 -1
  168. package/dist/mtgate_api/client/index.js +5 -4
  169. package/dist/mtgate_api/client/index.js.map +1 -1
  170. package/dist/{gomtmapi_v2/client/types.d.ts → mtgate_api/client/types.gen.d.ts} +19 -14
  171. package/dist/mtgate_api/client/types.gen.d.ts.map +1 -0
  172. package/dist/mtgate_api/client/types.gen.js +3 -0
  173. package/dist/mtgate_api/client/types.gen.js.map +1 -0
  174. package/dist/{mtmai_api/client/utils.d.ts → mtgate_api/client/utils.gen.d.ts} +9 -21
  175. package/dist/mtgate_api/client/utils.gen.d.ts.map +1 -0
  176. package/dist/mtgate_api/client/{utils.js → utils.gen.js} +56 -110
  177. package/dist/mtgate_api/client/utils.gen.js.map +1 -0
  178. package/dist/mtgate_api/client.gen.d.ts +3 -3
  179. package/dist/mtgate_api/client.gen.d.ts.map +1 -1
  180. package/dist/mtgate_api/client.gen.js.map +1 -1
  181. package/dist/{gomtmapi_v2/core/auth.d.ts → mtgate_api/core/auth.gen.d.ts} +1 -1
  182. package/dist/mtgate_api/core/auth.gen.d.ts.map +1 -0
  183. package/dist/mtgate_api/core/{auth.js → auth.gen.js} +2 -1
  184. package/dist/mtgate_api/core/auth.gen.js.map +1 -0
  185. package/dist/{gomtmapi/core/bodySerializer.d.ts → mtgate_api/core/bodySerializer.gen.d.ts} +2 -2
  186. package/dist/mtgate_api/core/bodySerializer.gen.d.ts.map +1 -0
  187. package/dist/{mtmai_api/core/bodySerializer.js → mtgate_api/core/bodySerializer.gen.js} +5 -1
  188. package/dist/mtgate_api/core/bodySerializer.gen.js.map +1 -0
  189. package/dist/{mtmai_api/core/params.d.ts → mtgate_api/core/params.gen.d.ts} +11 -1
  190. package/dist/mtgate_api/core/params.gen.d.ts.map +1 -0
  191. package/dist/{gomtmapi_v2/core/params.js → mtgate_api/core/params.gen.js} +2 -1
  192. package/dist/mtgate_api/core/params.gen.js.map +1 -0
  193. package/dist/{gomtmapi_v2/core/pathSerializer.d.ts → mtgate_api/core/pathSerializer.gen.d.ts} +1 -1
  194. package/dist/mtgate_api/core/pathSerializer.gen.d.ts.map +1 -0
  195. package/dist/{gomtmapi_v2/core/pathSerializer.js → mtgate_api/core/pathSerializer.gen.js} +2 -1
  196. package/dist/mtgate_api/core/pathSerializer.gen.js.map +1 -0
  197. package/dist/mtgate_api/core/serverSentEvents.gen.d.ts +72 -0
  198. package/dist/mtgate_api/core/serverSentEvents.gen.d.ts.map +1 -0
  199. package/dist/mtgate_api/core/serverSentEvents.gen.js +136 -0
  200. package/dist/mtgate_api/core/serverSentEvents.gen.js.map +1 -0
  201. package/dist/{gomtmapi/core/types.d.ts → mtgate_api/core/types.gen.d.ts} +20 -15
  202. package/dist/mtgate_api/core/types.gen.d.ts.map +1 -0
  203. package/dist/mtgate_api/core/types.gen.js +3 -0
  204. package/dist/mtgate_api/core/types.gen.js.map +1 -0
  205. package/dist/mtgate_api/core/utils.gen.d.ts +20 -0
  206. package/dist/mtgate_api/core/utils.gen.d.ts.map +1 -0
  207. package/dist/mtgate_api/core/utils.gen.js +88 -0
  208. package/dist/mtgate_api/core/utils.gen.js.map +1 -0
  209. package/dist/mtgate_api/index.d.ts.map +1 -1
  210. package/dist/mtgate_api/index.js.map +1 -1
  211. package/dist/mtgate_api/schemas.gen.d.ts +206 -289
  212. package/dist/mtgate_api/schemas.gen.d.ts.map +1 -1
  213. package/dist/mtgate_api/schemas.gen.js +230 -307
  214. package/dist/mtgate_api/schemas.gen.js.map +1 -1
  215. package/dist/mtgate_api/sdk.gen.d.ts +20 -43
  216. package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
  217. package/dist/mtgate_api/sdk.gen.js +88 -234
  218. package/dist/mtgate_api/sdk.gen.js.map +1 -1
  219. package/dist/mtgate_api/types.gen.d.ts +383 -862
  220. package/dist/mtgate_api/types.gen.d.ts.map +1 -1
  221. package/dist/mtgate_api/types.gen.js.map +1 -1
  222. package/dist/mtgate_api/zod.gen.d.ts +607 -978
  223. package/dist/mtgate_api/zod.gen.d.ts.map +1 -1
  224. package/dist/mtgate_api/zod.gen.js +718 -1215
  225. package/dist/mtgate_api/zod.gen.js.map +1 -1
  226. package/dist/mtmai_api/@tanstack/react-query.gen.d.ts +115 -475
  227. package/dist/mtmai_api/@tanstack/react-query.gen.d.ts.map +1 -1
  228. package/dist/mtmai_api/@tanstack/react-query.gen.js +55 -423
  229. package/dist/mtmai_api/@tanstack/react-query.gen.js.map +1 -1
  230. package/dist/mtmai_api/client/client.gen.d.ts +3 -0
  231. package/dist/mtmai_api/client/client.gen.d.ts.map +1 -0
  232. package/dist/mtmai_api/client/{client.js → client.gen.js} +82 -23
  233. package/dist/mtmai_api/client/client.gen.js.map +1 -0
  234. package/dist/mtmai_api/client/index.d.ts +7 -7
  235. package/dist/mtmai_api/client/index.d.ts.map +1 -1
  236. package/dist/mtmai_api/client/index.js +5 -4
  237. package/dist/mtmai_api/client/index.js.map +1 -1
  238. package/dist/mtmai_api/client/{types.d.ts → types.gen.d.ts} +19 -14
  239. package/dist/mtmai_api/client/types.gen.d.ts.map +1 -0
  240. package/dist/mtmai_api/client/types.gen.js +3 -0
  241. package/dist/mtmai_api/client/types.gen.js.map +1 -0
  242. package/dist/{gomtmapi_v2/client/utils.d.ts → mtmai_api/client/utils.gen.d.ts} +9 -21
  243. package/dist/mtmai_api/client/utils.gen.d.ts.map +1 -0
  244. package/dist/mtmai_api/client/{utils.js → utils.gen.js} +56 -110
  245. package/dist/mtmai_api/client/utils.gen.js.map +1 -0
  246. package/dist/mtmai_api/client.gen.d.ts +3 -3
  247. package/dist/mtmai_api/client.gen.d.ts.map +1 -1
  248. package/dist/mtmai_api/client.gen.js.map +1 -1
  249. package/dist/{mtgate_api/core/auth.d.ts → mtmai_api/core/auth.gen.d.ts} +1 -1
  250. package/dist/mtmai_api/core/auth.gen.d.ts.map +1 -0
  251. package/dist/{gomtmapi_v2/core/auth.js → mtmai_api/core/auth.gen.js} +2 -1
  252. package/dist/mtmai_api/core/auth.gen.js.map +1 -0
  253. package/dist/mtmai_api/core/{bodySerializer.d.ts → bodySerializer.gen.d.ts} +2 -2
  254. package/dist/mtmai_api/core/bodySerializer.gen.d.ts.map +1 -0
  255. package/dist/{gomtmapi_v2/core/bodySerializer.js → mtmai_api/core/bodySerializer.gen.js} +5 -1
  256. package/dist/mtmai_api/core/bodySerializer.gen.js.map +1 -0
  257. package/dist/{gomtmapi/core/params.d.ts → mtmai_api/core/params.gen.d.ts} +11 -1
  258. package/dist/mtmai_api/core/params.gen.d.ts.map +1 -0
  259. package/dist/mtmai_api/core/{params.js → params.gen.js} +2 -1
  260. package/dist/mtmai_api/core/params.gen.js.map +1 -0
  261. package/dist/{gomtmapi/core/pathSerializer.d.ts → mtmai_api/core/pathSerializer.gen.d.ts} +1 -1
  262. package/dist/mtmai_api/core/pathSerializer.gen.d.ts.map +1 -0
  263. package/dist/mtmai_api/core/{pathSerializer.js → pathSerializer.gen.js} +2 -1
  264. package/dist/mtmai_api/core/pathSerializer.gen.js.map +1 -0
  265. package/dist/mtmai_api/core/serverSentEvents.gen.d.ts +72 -0
  266. package/dist/mtmai_api/core/serverSentEvents.gen.d.ts.map +1 -0
  267. package/dist/mtmai_api/core/serverSentEvents.gen.js +136 -0
  268. package/dist/mtmai_api/core/serverSentEvents.gen.js.map +1 -0
  269. package/dist/{gomtmapi_v2/core/types.d.ts → mtmai_api/core/types.gen.d.ts} +20 -15
  270. package/dist/mtmai_api/core/types.gen.d.ts.map +1 -0
  271. package/dist/mtmai_api/core/types.gen.js +3 -0
  272. package/dist/mtmai_api/core/types.gen.js.map +1 -0
  273. package/dist/mtmai_api/core/utils.gen.d.ts +20 -0
  274. package/dist/mtmai_api/core/utils.gen.d.ts.map +1 -0
  275. package/dist/mtmai_api/core/utils.gen.js +88 -0
  276. package/dist/mtmai_api/core/utils.gen.js.map +1 -0
  277. package/dist/mtmai_api/index.d.ts.map +1 -1
  278. package/dist/mtmai_api/index.js.map +1 -1
  279. package/dist/mtmai_api/schemas.gen.d.ts +447 -90
  280. package/dist/mtmai_api/schemas.gen.d.ts.map +1 -1
  281. package/dist/mtmai_api/schemas.gen.js +561 -108
  282. package/dist/mtmai_api/schemas.gen.js.map +1 -1
  283. package/dist/mtmai_api/sdk.gen.d.ts +3 -8
  284. package/dist/mtmai_api/sdk.gen.d.ts.map +1 -1
  285. package/dist/mtmai_api/sdk.gen.js +53 -67
  286. package/dist/mtmai_api/sdk.gen.js.map +1 -1
  287. package/dist/mtmai_api/types.gen.d.ts +420 -208
  288. package/dist/mtmai_api/types.gen.d.ts.map +1 -1
  289. package/dist/mtmai_api/types.gen.js.map +1 -1
  290. package/dist/mtmai_api/zod.gen.d.ts +26092 -5524
  291. package/dist/mtmai_api/zod.gen.d.ts.map +1 -1
  292. package/dist/mtmai_api/zod.gen.js +1391 -1362
  293. package/dist/mtmai_api/zod.gen.js.map +1 -1
  294. package/dist/store/AuthProviders.d.ts +8 -0
  295. package/dist/store/AuthProviders.d.ts.map +1 -0
  296. package/dist/store/AuthProviders.js +34 -0
  297. package/dist/store/AuthProviders.js.map +1 -0
  298. package/dist/store/{ReactQueryApiV2Provider.d.ts → GomtmProvider.d.ts} +1 -1
  299. package/dist/store/GomtmProvider.d.ts.map +1 -0
  300. package/dist/store/{ReactQueryApiV2Provider.js → GomtmProvider.js} +2 -2
  301. package/dist/store/GomtmProvider.js.map +1 -0
  302. package/dist/store/{ReactQueryProvider.d.ts → GomtmV1Provider.d.ts} +1 -1
  303. package/dist/store/GomtmV1Provider.d.ts.map +1 -0
  304. package/dist/store/{ReactQueryProvider.js → GomtmV1Provider.js} +2 -2
  305. package/dist/store/GomtmV1Provider.js.map +1 -0
  306. package/dist/store/MtgateProvider.d.ts +6015 -0
  307. package/dist/store/MtgateProvider.d.ts.map +1 -0
  308. package/dist/store/MtgateProvider.js +76 -0
  309. package/dist/store/MtgateProvider.js.map +1 -0
  310. package/dist/store/MtmsdkProvider.d.ts +1 -0
  311. package/dist/store/MtmsdkProvider.d.ts.map +1 -1
  312. package/dist/store/MtmsdkProvider.js +10 -13
  313. package/dist/store/MtmsdkProvider.js.map +1 -1
  314. package/package.json +68 -72
  315. package/dist/gomtmapi/client/client.d.ts +0 -3
  316. package/dist/gomtmapi/client/client.d.ts.map +0 -1
  317. package/dist/gomtmapi/client/client.js.map +0 -1
  318. package/dist/gomtmapi/client/types.d.ts.map +0 -1
  319. package/dist/gomtmapi/client/types.js +0 -2
  320. package/dist/gomtmapi/client/types.js.map +0 -1
  321. package/dist/gomtmapi/client/utils.d.ts.map +0 -1
  322. package/dist/gomtmapi/client/utils.js.map +0 -1
  323. package/dist/gomtmapi/core/auth.d.ts.map +0 -1
  324. package/dist/gomtmapi/core/auth.js.map +0 -1
  325. package/dist/gomtmapi/core/bodySerializer.d.ts.map +0 -1
  326. package/dist/gomtmapi/core/bodySerializer.js.map +0 -1
  327. package/dist/gomtmapi/core/params.d.ts.map +0 -1
  328. package/dist/gomtmapi/core/params.js.map +0 -1
  329. package/dist/gomtmapi/core/pathSerializer.d.ts.map +0 -1
  330. package/dist/gomtmapi/core/pathSerializer.js.map +0 -1
  331. package/dist/gomtmapi/core/types.d.ts.map +0 -1
  332. package/dist/gomtmapi/core/types.js +0 -2
  333. package/dist/gomtmapi/core/types.js.map +0 -1
  334. package/dist/gomtmapi_v2/client/client.d.ts +0 -3
  335. package/dist/gomtmapi_v2/client/client.d.ts.map +0 -1
  336. package/dist/gomtmapi_v2/client/client.js.map +0 -1
  337. package/dist/gomtmapi_v2/client/types.d.ts.map +0 -1
  338. package/dist/gomtmapi_v2/client/types.js +0 -2
  339. package/dist/gomtmapi_v2/client/types.js.map +0 -1
  340. package/dist/gomtmapi_v2/client/utils.d.ts.map +0 -1
  341. package/dist/gomtmapi_v2/client/utils.js.map +0 -1
  342. package/dist/gomtmapi_v2/core/auth.d.ts.map +0 -1
  343. package/dist/gomtmapi_v2/core/auth.js.map +0 -1
  344. package/dist/gomtmapi_v2/core/bodySerializer.d.ts.map +0 -1
  345. package/dist/gomtmapi_v2/core/bodySerializer.js.map +0 -1
  346. package/dist/gomtmapi_v2/core/params.d.ts.map +0 -1
  347. package/dist/gomtmapi_v2/core/params.js.map +0 -1
  348. package/dist/gomtmapi_v2/core/pathSerializer.d.ts.map +0 -1
  349. package/dist/gomtmapi_v2/core/pathSerializer.js.map +0 -1
  350. package/dist/gomtmapi_v2/core/types.d.ts.map +0 -1
  351. package/dist/gomtmapi_v2/core/types.js +0 -2
  352. package/dist/gomtmapi_v2/core/types.js.map +0 -1
  353. package/dist/lib/constants.d.ts +0 -40
  354. package/dist/lib/constants.d.ts.map +0 -1
  355. package/dist/lib/constants.js +0 -40
  356. package/dist/lib/constants.js.map +0 -1
  357. package/dist/lib/d1-utils.d.ts +0 -5
  358. package/dist/lib/d1-utils.d.ts.map +0 -1
  359. package/dist/lib/d1-utils.js +0 -36
  360. package/dist/lib/d1-utils.js.map +0 -1
  361. package/dist/lib/mtmutils.d.ts +0 -2
  362. package/dist/lib/mtmutils.d.ts.map +0 -1
  363. package/dist/lib/mtmutils.js +0 -9
  364. package/dist/lib/mtmutils.js.map +0 -1
  365. package/dist/mtgate_api/client/client.d.ts +0 -3
  366. package/dist/mtgate_api/client/client.d.ts.map +0 -1
  367. package/dist/mtgate_api/client/client.js.map +0 -1
  368. package/dist/mtgate_api/client/types.d.ts.map +0 -1
  369. package/dist/mtgate_api/client/types.js +0 -2
  370. package/dist/mtgate_api/client/types.js.map +0 -1
  371. package/dist/mtgate_api/client/utils.d.ts.map +0 -1
  372. package/dist/mtgate_api/client/utils.js.map +0 -1
  373. package/dist/mtgate_api/core/auth.d.ts.map +0 -1
  374. package/dist/mtgate_api/core/auth.js.map +0 -1
  375. package/dist/mtgate_api/core/bodySerializer.d.ts.map +0 -1
  376. package/dist/mtgate_api/core/bodySerializer.js.map +0 -1
  377. package/dist/mtgate_api/core/params.d.ts.map +0 -1
  378. package/dist/mtgate_api/core/params.js.map +0 -1
  379. package/dist/mtgate_api/core/pathSerializer.d.ts.map +0 -1
  380. package/dist/mtgate_api/core/pathSerializer.js.map +0 -1
  381. package/dist/mtgate_api/core/types.d.ts.map +0 -1
  382. package/dist/mtgate_api/core/types.js +0 -2
  383. package/dist/mtgate_api/core/types.js.map +0 -1
  384. package/dist/mtmai_api/client/client.d.ts +0 -3
  385. package/dist/mtmai_api/client/client.d.ts.map +0 -1
  386. package/dist/mtmai_api/client/client.js.map +0 -1
  387. package/dist/mtmai_api/client/types.d.ts.map +0 -1
  388. package/dist/mtmai_api/client/types.js +0 -2
  389. package/dist/mtmai_api/client/types.js.map +0 -1
  390. package/dist/mtmai_api/client/utils.d.ts.map +0 -1
  391. package/dist/mtmai_api/client/utils.js.map +0 -1
  392. package/dist/mtmai_api/core/auth.d.ts.map +0 -1
  393. package/dist/mtmai_api/core/auth.js.map +0 -1
  394. package/dist/mtmai_api/core/bodySerializer.d.ts.map +0 -1
  395. package/dist/mtmai_api/core/bodySerializer.js.map +0 -1
  396. package/dist/mtmai_api/core/params.d.ts.map +0 -1
  397. package/dist/mtmai_api/core/params.js.map +0 -1
  398. package/dist/mtmai_api/core/pathSerializer.d.ts.map +0 -1
  399. package/dist/mtmai_api/core/pathSerializer.js.map +0 -1
  400. package/dist/mtmai_api/core/types.d.ts.map +0 -1
  401. package/dist/mtmai_api/core/types.js +0 -2
  402. package/dist/mtmai_api/core/types.js.map +0 -1
  403. package/dist/store/ReactQueryApiV2Provider.d.ts.map +0 -1
  404. package/dist/store/ReactQueryApiV2Provider.js.map +0 -1
  405. package/dist/store/ReactQueryCfApiProvider.d.ts +0 -9
  406. package/dist/store/ReactQueryCfApiProvider.d.ts.map +0 -1
  407. package/dist/store/ReactQueryCfApiProvider.js +0 -26
  408. package/dist/store/ReactQueryCfApiProvider.js.map +0 -1
  409. package/dist/store/ReactQueryProvider.d.ts.map +0 -1
  410. package/dist/store/ReactQueryProvider.js.map +0 -1
@@ -1,373 +1,243 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
  import { z } from "zod";
3
- export const zHealthStatus = z.object({
4
- status: z.enum(["healthy", "unhealthy", "degraded"]),
5
- version: z.string(),
6
- timestamp: z.string().datetime(),
7
- services: z
8
- .object({
9
- database: z.enum(["healthy", "unhealthy"]).optional(),
10
- repository: z.enum(["healthy", "unhealthy"]).optional(),
11
- })
12
- .optional(),
13
- uptime: z.coerce.bigint().optional(),
14
- });
15
- export const zApiError = z.object({
16
- code: z.number().int().optional(),
17
- field: z.string().optional(),
18
- description: z.string(),
19
- docs_link: z.string().optional(),
20
- });
21
- export const zApiErrors = z.object({
22
- errors: z.array(zApiError),
23
- });
24
3
  export const zApiMetaAuth = z.object({
25
- schemes: z.array(z.string()).optional(),
4
+ schemes: z.optional(z.array(z.string())),
26
5
  });
27
6
  export const zApiMetaPosthog = z.object({
28
- apiKey: z.string().optional(),
29
- apiHost: z.string().optional(),
7
+ apiKey: z.optional(z.string()),
8
+ apiHost: z.optional(z.string()),
30
9
  });
31
10
  export const zApiMeta = z.object({
32
- auth: zApiMetaAuth.optional(),
33
- pylonAppId: z.string().optional(),
34
- posthog: zApiMetaPosthog.optional(),
35
- allowSignup: z.boolean().optional(),
36
- allowInvites: z.boolean().optional(),
37
- allowCreateTenant: z.boolean().optional(),
38
- allowChangePassword: z.boolean().optional(),
11
+ auth: z.optional(zApiMetaAuth),
12
+ pylonAppId: z.optional(z.string()),
13
+ posthog: z.optional(zApiMetaPosthog),
14
+ allowSignup: z.optional(z.boolean()),
15
+ allowInvites: z.optional(z.boolean()),
16
+ allowCreateTenant: z.optional(z.boolean()),
17
+ allowChangePassword: z.optional(z.boolean()),
39
18
  });
40
19
  export const zApiMetaIntegration = z.object({
41
20
  name: z.string(),
42
21
  enabled: z.boolean(),
43
22
  });
44
23
  export const zListApiMetaIntegration = z.array(zApiMetaIntegration);
45
- export const zUserLoginRequest = z.object({
46
- email: z.string().email(),
47
- password: z.string(),
24
+ export const zApiError = z.object({
25
+ code: z.optional(z.int()),
26
+ field: z.optional(z.string()),
27
+ description: z.string(),
28
+ docs_link: z.optional(z.string()),
29
+ });
30
+ export const zApiErrors = z.object({
31
+ errors: z.array(zApiError),
32
+ });
33
+ export const zApiMessage = z.object({
34
+ message: z.string(),
35
+ });
36
+ export const zPaginationResponse = z.object({
37
+ current_page: z.optional(z.coerce.bigint()),
38
+ next_page: z.optional(z.coerce.bigint()),
39
+ num_pages: z.optional(z.coerce.bigint()),
48
40
  });
49
41
  export const zApiResourceMeta = z.object({
50
42
  id: z.string().min(0).max(36),
51
- createdAt: z.string().datetime(),
52
- updatedAt: z.string().datetime(),
43
+ createdAt: z.iso.datetime(),
44
+ updatedAt: z.iso.datetime(),
45
+ });
46
+ export const zApiResourceMetaProperties = z.object({
47
+ metadata: zApiResourceMeta,
48
+ });
49
+ export const zHealthStatus = z.object({
50
+ status: z.enum(["healthy", "unhealthy", "degraded"]),
51
+ version: z.string(),
52
+ timestamp: z.iso.datetime(),
53
+ services: z.optional(z.object({
54
+ database: z.optional(z.enum(["healthy", "unhealthy"])),
55
+ repository: z.optional(z.enum(["healthy", "unhealthy"])),
56
+ })),
57
+ uptime: z.optional(z.coerce.bigint()),
53
58
  });
59
+ export const zTenantParameter = z.uuid().length(36);
54
60
  /**
55
61
  * User role in the system
56
62
  */
57
63
  export const zUserRole = z.enum(["USER", "ADMIN", "SUPER_ADMIN"]);
58
64
  export const zUser = z.object({
59
65
  metadata: zApiResourceMeta,
60
- name: z.string().optional(),
61
- email: z.string().email(),
66
+ name: z.optional(z.string()),
67
+ email: z.email(),
62
68
  emailVerified: z.boolean(),
63
- hasPassword: z.boolean().optional(),
64
- emailHash: z.string().optional(),
69
+ hasPassword: z.optional(z.boolean()),
70
+ emailHash: z.optional(z.string()),
65
71
  userToken: z.string(),
66
- avatarUrl: z.string().optional(),
72
+ avatarUrl: z.optional(z.string()),
67
73
  role: zUserRole,
68
74
  });
69
- export const zPaginationResponse = z.object({
70
- current_page: z.coerce.bigint().optional(),
71
- next_page: z.coerce.bigint().optional(),
72
- num_pages: z.coerce.bigint().optional(),
73
- });
74
- export const zTenantAlertEmailGroup = z.object({
75
- metadata: zApiResourceMeta,
76
- emails: z.array(z.string()),
77
- });
78
- export const zTenantAlertEmailGroupList = z.object({
79
- pagination: zPaginationResponse.optional(),
80
- rows: z.array(zTenantAlertEmailGroup).optional(),
81
- });
82
- export const zCreateTenantAlertEmailGroupRequest = z.object({
83
- emails: z.array(z.string()),
84
- });
85
- export const zTenantResource = z.enum([
86
- "WORKER",
87
- "WORKER_SLOT",
88
- "WORKFLOW_RUN",
89
- "TASK_RUN",
90
- "CRON",
91
- "SCHEDULE",
92
- ]);
93
- export const zTenantResourceLimit = z.object({
94
- metadata: zApiResourceMeta,
95
- resource: zTenantResource,
96
- limitValue: z.number().int(),
97
- alarmValue: z.number().int().optional(),
98
- value: z.number().int(),
99
- window: z.string().optional(),
100
- lastRefill: z.string().datetime().optional(),
101
- });
102
- export const zTenantResourcePolicy = z.object({
103
- limits: z.array(zTenantResourceLimit),
75
+ export const zUserTenantPublic = z.object({
76
+ email: z.email(),
77
+ name: z.optional(z.string()),
104
78
  });
105
- export const zUpdateTenantAlertEmailGroupRequest = z.object({
106
- emails: z.array(z.string()),
79
+ export const zUserLoginRequest = z.object({
80
+ email: z.email(),
81
+ password: z.string(),
107
82
  });
108
83
  export const zUserChangePasswordRequest = z.object({
109
84
  password: z.string(),
110
85
  newPassword: z.string(),
111
86
  });
112
87
  export const zUserRegisterRequest = z.object({
113
- name: z.string().optional(),
114
- email: z.string().email(),
88
+ name: z.optional(z.string()),
89
+ email: z.email(),
115
90
  password: z.string(),
116
91
  });
117
- export const zUserTenantPublic = z.object({
118
- email: z.string().email(),
119
- name: z.string().optional(),
120
- });
121
92
  export const zTenantMemberRole = z.enum(["OWNER", "ADMIN", "MEMBER"]);
122
93
  export const zTenant = z.object({
123
94
  metadata: zApiResourceMeta,
124
95
  name: z.string(),
125
96
  slug: z.string(),
126
- analyticsOptOut: z.boolean().optional(),
127
- alertMemberEmails: z.boolean().optional(),
97
+ analyticsOptOut: z.optional(z.boolean()),
98
+ alertMemberEmails: z.optional(z.boolean()),
128
99
  });
129
100
  export const zTenantMember = z.object({
130
101
  metadata: zApiResourceMeta,
131
102
  user: zUserTenantPublic,
132
103
  role: zTenantMemberRole,
133
- tenant: zTenant.optional(),
104
+ tenant: z.optional(zTenant),
134
105
  });
135
106
  export const zUserTenantMembershipsList = z.object({
136
- pagination: zPaginationResponse.optional(),
137
- rows: z.array(zTenantMember).optional(),
138
- });
139
- export const zTenantInvite = z.object({
140
- metadata: zApiResourceMeta,
141
- email: z.string(),
142
- role: zTenantMemberRole,
143
- tenantId: z.string(),
144
- tenantName: z.string().optional(),
145
- expires: z.string().datetime(),
146
- });
147
- export const zTenantInviteList = z.object({
148
- pagination: zPaginationResponse.optional(),
149
- rows: z.array(zTenantInvite).optional(),
150
- });
151
- export const zAcceptInviteRequest = z.object({
152
- invite: z.string().length(36),
153
- });
154
- export const zRejectInviteRequest = z.object({
155
- invite: z.string().length(36),
107
+ pagination: z.optional(zPaginationResponse),
108
+ rows: z.optional(z.array(zTenantMember)),
156
109
  });
157
110
  export const zGitHubRepository = z.object({
158
- id: z.number().int(),
111
+ id: z.int(),
159
112
  name: z.string(),
160
113
  fullName: z.string(),
161
- htmlUrl: z.string().url(),
162
- cloneUrl: z.string().url(),
114
+ htmlUrl: z.url(),
115
+ cloneUrl: z.url(),
163
116
  private: z.boolean(),
164
- description: z.string().optional(),
165
- language: z.string().optional(),
166
- stargazersCount: z.number().int(),
167
- forksCount: z.number().int(),
168
- updatedAt: z.string().datetime(),
117
+ description: z.optional(z.string()),
118
+ language: z.optional(z.string()),
119
+ stargazersCount: z.int(),
120
+ forksCount: z.int(),
121
+ updatedAt: z.iso.datetime(),
169
122
  });
170
123
  export const zGitHubRepositoryList = z.object({
171
124
  rows: z.array(zGitHubRepository),
172
125
  });
126
+ export const zRole = z.object({
127
+ metadata: zApiResourceMeta,
128
+ name: z.string(),
129
+ description: z.optional(z.string()),
130
+ });
131
+ export const zRoleList = z.object({
132
+ rows: z.array(zRole),
133
+ });
134
+ export const zAdminAssignRoleRequest = z.object({
135
+ roleName: z.string(),
136
+ });
173
137
  export const zAdminUserList = z.object({
174
- pagination: zPaginationResponse.optional(),
138
+ pagination: z.optional(zPaginationResponse),
175
139
  rows: z.array(zUser),
176
- totalCount: z.number().int(),
140
+ totalCount: z.int(),
177
141
  });
178
142
  export const zAdminUserCreateRequest = z.object({
179
- name: z.string().max(255).optional(),
180
- email: z.string().email().max(255),
143
+ name: z.optional(z.string().max(255)),
144
+ email: z.email().max(255),
181
145
  password: z.string().min(8).max(128),
182
- role: zUserRole.optional(),
183
- emailVerified: z.boolean().optional().default(false),
146
+ role: z.optional(zUserRole),
147
+ emailVerified: z.optional(z.boolean()).default(false),
184
148
  });
185
149
  export const zAdminUserUpdateRequest = z.object({
186
- name: z.string().max(255).optional(),
187
- email: z.string().email().max(255).optional(),
188
- password: z.string().min(8).max(128).optional(),
189
- role: zUserRole.optional(),
190
- emailVerified: z.boolean().optional(),
150
+ name: z.optional(z.string().max(255)),
151
+ email: z.optional(z.email().max(255)),
152
+ password: z.optional(z.string().min(8).max(128)),
153
+ role: z.optional(zUserRole),
154
+ emailVerified: z.optional(z.boolean()),
191
155
  });
192
- export const zApiMessage = z.object({
193
- message: z.string(),
156
+ export const zTenantMemberList = z.object({
157
+ pagination: z.optional(zPaginationResponse),
158
+ rows: z.optional(z.array(zTenantMember)),
194
159
  });
195
- export const zRole = z.object({
160
+ export const zTenantResource = z.enum([
161
+ "WORKER",
162
+ "WORKER_SLOT",
163
+ "WORKFLOW_RUN",
164
+ "TASK_RUN",
165
+ "CRON",
166
+ "SCHEDULE",
167
+ ]);
168
+ export const zTenantResourceLimit = z.object({
196
169
  metadata: zApiResourceMeta,
197
- name: z.string(),
198
- description: z.string().optional(),
170
+ resource: zTenantResource,
171
+ limitValue: z.int(),
172
+ alarmValue: z.optional(z.int()),
173
+ value: z.int(),
174
+ window: z.optional(z.string()),
175
+ lastRefill: z.optional(z.iso.datetime()),
199
176
  });
200
- export const zRoleList = z.object({
201
- rows: z.array(zRole),
177
+ export const zTenantResourcePolicy = z.object({
178
+ limits: z.array(zTenantResourceLimit),
202
179
  });
203
- export const zAdminAssignRoleRequest = z.object({
204
- roleName: z.string(),
180
+ export const zCreateTenantInviteRequest = z.object({
181
+ email: z.string(),
182
+ role: zTenantMemberRole,
205
183
  });
206
- export const zTenantParameter = z.string().uuid().length(36);
207
- export const zTunnelConfig = z.object({
208
- cloudflareToken: z.string(),
209
- domain: z.string(),
210
- localPort: z.string(),
211
- tunnelName: z.string().optional(),
212
- description: z.string().optional(),
184
+ export const zUpdateTenantInviteRequest = z.object({
185
+ role: zTenantMemberRole,
213
186
  });
214
- export const zUserSettings = z.object({
187
+ export const zTenantAlertingSettings = z.object({
215
188
  metadata: zApiResourceMeta,
216
- tunnelConfig: zTunnelConfig.optional(),
217
- exportMetadata: z
218
- .object({
219
- exportTimestamp: z.string().datetime().optional(),
220
- exportVersion: z.string().optional(),
221
- exportBy: z.string().optional(),
222
- })
223
- .optional(),
189
+ alertMemberEmails: z.optional(z.boolean()),
190
+ enableWorkflowRunFailureAlerts: z.optional(z.boolean()),
191
+ enableExpiringTokenAlerts: z.optional(z.boolean()),
192
+ enableTenantResourceLimitAlerts: z.optional(z.boolean()),
193
+ maxAlertingFrequency: z.string(),
194
+ lastAlertedAt: z.optional(z.iso.datetime()),
224
195
  });
225
- export const zUserSettingsUpdateRequest = z.object({
226
- tunnelConfig: zTunnelConfig.optional(),
227
- exportMetadata: z
228
- .object({
229
- exportTimestamp: z.string().datetime().optional(),
230
- exportVersion: z.string().optional(),
231
- exportBy: z.string().optional(),
232
- })
233
- .optional(),
196
+ export const zTenantAlertEmailGroup = z.object({
197
+ metadata: zApiResourceMeta,
198
+ emails: z.array(z.string()),
234
199
  });
235
- export const zUserSettingsCreateRequest = z.object({
236
- tunnelConfig: zTunnelConfig.optional(),
237
- exportMetadata: z
238
- .object({
239
- exportTimestamp: z.string().datetime().optional(),
240
- exportVersion: z.string().optional(),
241
- exportBy: z.string().optional(),
242
- })
243
- .optional(),
244
- });
245
- export const zService = z.object({
246
- name: z.enum(["vnc", "sshd", "tunnel", "napcat"]),
247
- displayName: z.string(),
248
- status: z.enum(["running", "stopped", "starting", "stopping", "error"]),
249
- description: z.string(),
250
- port: z.number().int().optional(),
251
- url: z.string().optional(),
252
- pid: z.number().int().optional(),
253
- startedAt: z.string().datetime().optional(),
254
- config: z.object({}).optional(),
255
- logs: z.array(z.string()).optional(),
256
- health: z
257
- .object({
258
- status: z.enum(["healthy", "unhealthy", "unknown"]).optional(),
259
- lastCheck: z.string().datetime().optional(),
260
- message: z.string().optional(),
261
- })
262
- .optional(),
263
- });
264
- export const zServiceStartRequest = z.object({
265
- config: z.object({}).optional(),
266
- force: z.boolean().optional().default(false),
267
- });
268
- export const zServiceOperationResponse = z.object({
269
- success: z.boolean(),
270
- message: z.string(),
271
- service: zService,
272
- operationId: z.string().optional(),
273
- timestamp: z.string().datetime(),
274
- });
275
- export const zVncServiceLogs = z.object({
276
- logs: z.array(z.object({
277
- timestamp: z.string().datetime(),
278
- level: z.enum(["debug", "info", "warn", "error"]),
279
- message: z.string(),
280
- source: z.string().optional(),
281
- })),
282
- totalLines: z.number().int(),
283
- hasMore: z.boolean(),
284
- });
285
- export const zVncServiceDiagnostics = z.object({
286
- service: z.string(),
287
- status: z.enum(["healthy", "warning", "error"]),
288
- checks: z.array(z.object({
289
- name: z.string(),
290
- status: z.enum(["pass", "fail", "warning"]),
291
- message: z.string(),
292
- details: z.object({}).optional(),
293
- })),
294
- environment: z.object({
295
- hostname: z.string().optional(),
296
- platform: z.string().optional(),
297
- containerized: z.boolean().optional(),
298
- display: z.string().optional(),
299
- }),
300
- recommendations: z.array(z.string()).optional(),
301
- });
302
- export const zServiceConfig = z.object({
303
- id: z.string().uuid(),
304
- tenantId: z.string().uuid(),
305
- serviceName: z.enum(["vnc", "sshd", "tunnel", "napcat"]),
306
- displayName: z.string(),
307
- description: z.string().optional(),
308
- config: z.object({}),
309
- isEnabled: z.boolean(),
310
- autoStart: z.boolean(),
311
- createdAt: z.string().datetime(),
312
- updatedAt: z.string().datetime(),
313
- });
314
- export const zServiceConfigUpdateRequest = z.object({
315
- displayName: z.string().optional(),
316
- description: z.string().optional(),
317
- config: z.object({}),
318
- isEnabled: z.boolean().optional(),
319
- autoStart: z.boolean().optional(),
200
+ export const zTenantAlertEmailGroupList = z.object({
201
+ pagination: z.optional(zPaginationResponse),
202
+ rows: z.optional(z.array(zTenantAlertEmailGroup)),
320
203
  });
321
- export const zCreateTenantRequest = z.object({
322
- name: z.string(),
323
- slug: z.string(),
204
+ export const zCreateTenantAlertEmailGroupRequest = z.object({
205
+ emails: z.array(z.string()),
324
206
  });
325
- export const zTenantVersion = z.enum(["V0", "V1"]);
326
- export const zUpdateTenantRequest = z.object({
327
- name: z.string().optional(),
328
- analyticsOptOut: z.boolean().optional(),
329
- alertMemberEmails: z.boolean().optional(),
330
- enableWorkflowRunFailureAlerts: z.boolean().optional(),
331
- enableExpiringTokenAlerts: z.boolean().optional(),
332
- enableTenantResourceLimitAlerts: z.boolean().optional(),
333
- maxAlertingFrequency: z.string().optional(),
334
- version: zTenantVersion.optional(),
207
+ export const zUpdateTenantAlertEmailGroupRequest = z.object({
208
+ emails: z.array(z.string()),
335
209
  });
336
- export const zTenantAlertingSettings = z.object({
210
+ export const zTenantInvite = z.object({
337
211
  metadata: zApiResourceMeta,
338
- alertMemberEmails: z.boolean().optional(),
339
- enableWorkflowRunFailureAlerts: z.boolean().optional(),
340
- enableExpiringTokenAlerts: z.boolean().optional(),
341
- enableTenantResourceLimitAlerts: z.boolean().optional(),
342
- maxAlertingFrequency: z.string(),
343
- lastAlertedAt: z.string().datetime().optional(),
344
- });
345
- export const zCreateTenantInviteRequest = z.object({
346
212
  email: z.string(),
347
213
  role: zTenantMemberRole,
214
+ tenantId: z.string(),
215
+ tenantName: z.optional(z.string()),
216
+ expires: z.iso.datetime(),
348
217
  });
349
- export const zUpdateTenantInviteRequest = z.object({
350
- role: zTenantMemberRole,
218
+ export const zTenantInviteList = z.object({
219
+ pagination: z.optional(zPaginationResponse),
220
+ rows: z.optional(z.array(zTenantInvite)),
351
221
  });
352
- export const zApiToken = z.object({
353
- metadata: zApiResourceMeta,
354
- name: z.string().max(255),
355
- expiresAt: z.string().datetime(),
222
+ export const zQueueMetrics = z.object({
223
+ numQueued: z.int(),
224
+ numRunning: z.int(),
225
+ numPending: z.int(),
356
226
  });
357
- export const zListApiTokensResponse = z.object({
358
- pagination: zPaginationResponse.optional(),
359
- rows: z.array(zApiToken).optional(),
227
+ export const zTenantQueueMetrics = z.object({
228
+ total: z.optional(zQueueMetrics),
229
+ workflow: z.optional(z.record(z.string(), zQueueMetrics)),
230
+ queues: z.optional(z.record(z.string(), z.int())),
360
231
  });
361
- export const zCreateApiTokenRequest = z.object({
362
- name: z.string().max(255),
363
- expiresIn: z.string().optional(),
232
+ export const zAcceptInviteRequest = z.object({
233
+ invite: z.string().length(36),
364
234
  });
365
- export const zCreateApiTokenResponse = z.object({
366
- token: z.string(),
235
+ export const zRejectInviteRequest = z.object({
236
+ invite: z.string().length(36),
367
237
  });
368
- export const zTenantMemberList = z.object({
369
- pagination: zPaginationResponse.optional(),
370
- rows: z.array(zTenantMember).optional(),
238
+ export const zTenantList = z.object({
239
+ pagination: z.optional(zPaginationResponse),
240
+ rows: z.optional(z.array(zTenant)),
371
241
  });
372
242
  export const zTenantInfoExport = z.object({
373
243
  tenant: zTenant,
@@ -375,61 +245,57 @@ export const zTenantInfoExport = z.object({
375
245
  invites: z.array(zTenantInvite),
376
246
  export_metadata: z.object({
377
247
  export_version: z.string(),
378
- export_timestamp: z.string().datetime(),
379
- export_by: z.string().uuid(),
380
- total_members: z.number().int(),
381
- total_invites: z.number().int(),
248
+ export_timestamp: z.iso.datetime(),
249
+ export_by: z.uuid(),
250
+ total_members: z.int(),
251
+ total_invites: z.int(),
382
252
  }),
383
253
  });
384
- export const zServerInfo = z.object({
385
- version: z.string(),
386
- frontend: z.object({
387
- port: z.number().int(),
388
- enabled: z.boolean(),
389
- dir: z.string(),
390
- autoOpenBrowser: z.boolean(),
391
- }),
392
- server: z.object({
393
- port: z.number().int(),
394
- host: z.string(),
395
- }),
254
+ export const zCreateTenantRequest = z.object({
255
+ name: z.string(),
256
+ slug: z.string(),
396
257
  });
397
- export const zSiteProperties = z.object({
398
- id: z.string(),
399
- tenant_id: z.string(),
400
- updated_at: z.string().optional(),
401
- created_at: z.string().optional(),
402
- enabled: z.boolean(),
403
- title: z.string(),
404
- description: z.string(),
405
- automation_enabled: z.boolean(),
406
- state: z.object({
407
- status: z.string().optional(),
408
- }),
258
+ export const zTenantVersion = z.enum(["V0", "V1"]);
259
+ export const zUpdateTenantRequest = z.object({
260
+ name: z.optional(z.string()),
261
+ analyticsOptOut: z.optional(z.boolean()),
262
+ alertMemberEmails: z.optional(z.boolean()),
263
+ enableWorkflowRunFailureAlerts: z.optional(z.boolean()),
264
+ enableExpiringTokenAlerts: z.optional(z.boolean()),
265
+ enableTenantResourceLimitAlerts: z.optional(z.boolean()),
266
+ maxAlertingFrequency: z.optional(z.string()),
267
+ version: z.optional(zTenantVersion),
268
+ });
269
+ export const zApiToken = z.object({
270
+ metadata: zApiResourceMeta,
271
+ name: z.string().max(255),
272
+ expiresAt: z.iso.datetime(),
409
273
  });
410
- export const zSite = zSiteProperties;
411
- export const zSiteList = z.object({
412
- pagination: zPaginationResponse.optional(),
413
- rows: z.array(zSite).optional(),
274
+ export const zCreateApiTokenRequest = z.object({
275
+ name: z.string().max(255),
276
+ expiresIn: z.optional(z.string()),
414
277
  });
415
- export const zCreateSiteRequest = z.object({
416
- title: z.string(),
417
- description: z.string(),
418
- host: z.string().optional(),
278
+ export const zCreateApiTokenResponse = z.object({
279
+ token: z.string(),
280
+ });
281
+ export const zListApiTokensResponse = z.object({
282
+ pagination: z.optional(zPaginationResponse),
283
+ rows: z.optional(z.array(zApiToken)),
419
284
  });
420
- export const zUpdateSiteRequest = z.object({
421
- title: z.string().optional(),
285
+ export const zLogLine = z.object({
286
+ createdAt: z.iso.datetime(),
287
+ message: z.string(),
288
+ metadata: z.record(z.string(), z.unknown()),
422
289
  });
423
- export const zSiteHostProperties = z.object({
424
- id: z.string(),
425
- title: z.string().optional(),
426
- description: z.string().optional(),
427
- host: z.string(),
290
+ export const zLogLineLevel = z.enum(["DEBUG", "INFO", "WARN", "ERROR"]);
291
+ export const zLogLineList = z.object({
292
+ pagination: z.optional(zPaginationResponse),
293
+ rows: z.optional(z.array(zLogLine)),
428
294
  });
429
- export const zSiteHost = zSiteHostProperties;
430
- export const zSiteHostList = z.object({
431
- pagination: zPaginationResponse.optional(),
432
- rows: z.array(zSiteHost).optional(),
295
+ export const zCommonResult = z.object({
296
+ Success: z.boolean(),
297
+ Message: z.string(),
298
+ other: z.optional(z.record(z.string(), z.unknown())),
433
299
  });
434
300
  export const zFrontendConfig = z.object({
435
301
  cookieAccessToken: z.string(),
@@ -437,2098 +303,573 @@ export const zFrontendConfig = z.object({
437
303
  hotKeyDebug: z.string(),
438
304
  defaultTenantAccessToken: z.string(),
439
305
  });
440
- export const zEndpoint = z.object({
441
- metadata: zApiResourceMeta,
442
- name: z.string(),
443
- url: z.string(),
444
- token: z.string(),
445
- type: z.string(),
446
- });
447
- export const zEndpointList = z.object({
448
- pagination: zPaginationResponse.optional(),
449
- rows: z.array(zEndpoint).optional(),
450
- });
451
- export const zUpdateEndpointRequest = z.object({
452
- name: z.string().optional(),
453
- url: z.string().optional(),
454
- token: z.string().optional(),
455
- });
456
- export const zMtWorkerTask = z.object({
457
- id: z.string().optional(),
458
- name: z.string().optional(),
459
- });
460
- export const zWorkflowWorker = z.object({
461
- id: z.string().optional(),
462
- name: z.string().optional(),
463
- status: z
464
- .enum(["running", "stopped", "starting", "stopping", "error"])
465
- .optional(),
466
- hatchetUrl: z.string().optional(),
467
- startedAt: z.string().datetime().optional(),
468
- pid: z.number().int().optional(),
469
- workflows: z.array(z.string()).optional(),
470
- });
471
- export const zStartWorkerRequest = z.object({
306
+ export const zServerInfo = z.object({
307
+ version: z.string(),
308
+ frontend: z.object({
309
+ port: z.int(),
310
+ enabled: z.boolean(),
311
+ dir: z.string(),
312
+ autoOpenBrowser: z.boolean(),
313
+ }),
314
+ server: z.object({
315
+ port: z.int(),
316
+ host: z.string(),
317
+ }),
318
+ });
319
+ export const zFormField = z.object({
320
+ type: z.enum(["text", "number", "boolean", "array", "object"]),
472
321
  name: z.string(),
473
- hatchetUrl: z.string().optional(),
474
- hatchetToken: z.string().optional(),
475
- workflows: z.array(z.string()).optional(),
476
- });
477
- export const zStopWorkerRequest = z.object({
478
- workerId: z.string(),
479
- });
480
- export const zWorkerStatus = z.object({
481
- id: z.string().optional(),
482
- name: z.string().optional(),
483
- status: z
484
- .enum(["running", "stopped", "starting", "stopping", "error"])
485
- .optional(),
486
- uptime: z.number().int().optional(),
487
- tasksProcessed: z.number().int().optional(),
488
- lastActivity: z.string().datetime().optional(),
489
- errorMessage: z.string().optional(),
490
- });
491
- export const zRunWorkflowRequest = z.object({
492
- workflowType: z.enum(["hello", "first-task"]),
493
- name: z.string().optional(),
494
- message: z.string().optional(),
495
- });
496
- export const zWorkflowResult = z.object({
497
- success: z.boolean().optional(),
498
- result: z.object({}).optional(),
499
- error: z.string().optional(),
500
- executionTime: z.number().optional(),
501
- });
502
- export const zRunContainerRequest = z.object({
503
- name: z.string().min(1).max(255).optional(),
504
- image: z.string().optional().default("gitgit188/gomtm:latest"),
505
- command: z.string().optional(),
506
- environment: z.object({}).optional(),
507
- volumes: z.array(z.string()).optional(),
508
- ports: z.array(z.string()).optional(),
509
- privileged: z.boolean().optional().default(true),
510
- autoRemove: z.boolean().optional().default(true),
511
- });
512
- export const zRunContainerResponse = z.object({
513
- containerId: z.string(),
514
- containerName: z.string(),
515
- status: z.enum(["created", "running", "stopped", "error"]),
516
- message: z.string(),
517
- dockerCommand: z.string().optional(),
322
+ default_value: z.optional(z.string()),
323
+ label: z.optional(z.string()),
324
+ description: z.optional(z.string()),
325
+ required: z.optional(z.boolean()),
326
+ min: z.optional(z.number()),
327
+ max: z.optional(z.number()),
328
+ placeholder: z.optional(z.string()),
518
329
  });
519
- export const zPost = z.object({
520
- metadata: zApiResourceMeta,
330
+ export const zSchemaForm = z.object({
331
+ form_type: z.optional(z.enum(["schema", "custom"])),
332
+ form_name: z.optional(z.string()),
521
333
  title: z.string(),
522
- content: z.string(),
523
- slug: z.string(),
524
- status: z.enum(["DRAFT", "PUBLISHED"]),
525
- });
526
- export const zPostList = z.object({
527
- pagination: zPaginationResponse.optional(),
528
- rows: z.array(zPost).optional(),
529
- });
530
- export const zUpdatePostRequest = z.object({
531
- title: z.string().min(3).max(200),
532
- content: z.string().min(50).max(10240),
533
- slug: z.string().min(3).max(200),
534
- status: z.enum(["DRAFT", "PUBLISHED"]),
535
- });
536
- export const zCreatePostRequest = z.object({
537
- siteId: z.string().uuid().length(36),
538
- title: z.string().min(3).max(200),
539
- content: z.string().min(50).max(10240),
540
- slug: z.string().min(3).max(200),
541
- authorId: z.string().uuid().length(36).optional(),
542
- status: z.enum(["draft", "published"]).optional(),
543
- });
544
- export const zSbWorkerProfile = z.object({
545
- frontendUrl: z.string(),
546
- isDebug: z.boolean(),
547
- autoStart: z.boolean(),
548
- defaultProfileName: z.string(),
549
- defaultProfileUrl: z.string(),
334
+ description: z.optional(z.string()),
335
+ layout: z.optional(z.enum(["vertical", "horizontal"])),
336
+ fields: z.array(zFormField),
550
337
  });
551
- /**
552
- * Sing-box outbound configuration
553
- */
554
- export const zSbOutbound = z.object({
555
- id: z.string().uuid().optional(),
556
- tag: z.string().optional(),
557
- type: z.string().optional(),
558
- server: z.string().optional(),
559
- server_port: z.number().int().optional(),
560
- password: z.string().optional(),
561
- security: z.string().optional(),
562
- domain_resolver: z.string().optional(),
563
- full_config: z.object({}).optional(),
564
- created_at: z.string().datetime().optional(),
565
- updated_at: z.string().datetime().optional(),
338
+ export const zTunnelConfig = z.object({
339
+ cloudflareToken: z.string(),
340
+ domain: z.string(),
341
+ localPort: z.string(),
342
+ tunnelName: z.optional(z.string()),
343
+ description: z.optional(z.string()),
566
344
  });
567
- /**
568
- * Create a new sing-box outbound
569
- */
570
- export const zSbOutboundCreate = z.object({
571
- tag: z.string(),
572
- type: z.string(),
573
- server: z.string(),
574
- server_port: z.number().int(),
575
- password: z.string().optional(),
576
- security: z.string().optional(),
577
- domain_resolver: z.string().optional(),
578
- full_config: z.object({}),
579
- });
580
- export const zSbImportRequest = z.object({
581
- url: z.string(),
345
+ export const zUserSettings = z.object({
346
+ metadata: zApiResourceMeta,
347
+ tunnelConfig: z.optional(zTunnelConfig),
348
+ exportMetadata: z.optional(z.object({
349
+ exportTimestamp: z.optional(z.iso.datetime()),
350
+ exportVersion: z.optional(z.string()),
351
+ exportBy: z.optional(z.string()),
352
+ })),
582
353
  });
583
- /**
584
- * 浏览器配置,类似于指纹浏览器的功能,用于管理浏览器配置文件
585
- */
586
- export const zBrowser = z.object({
587
- metadata: zApiResourceMeta.optional(),
588
- name: z.string(),
589
- description: z.string().optional(),
590
- url: z.string(),
591
- properties: z.object({}).optional(),
592
- tags: z.array(z.string()).optional(),
593
- lastUsedAt: z.string().datetime().optional(),
594
- createdAt: z.string().datetime().optional(),
595
- updatedAt: z.string().datetime().optional(),
354
+ export const zUserSettingsCreateRequest = z.object({
355
+ tunnelConfig: z.optional(zTunnelConfig),
356
+ exportMetadata: z.optional(z.object({
357
+ exportTimestamp: z.optional(z.iso.datetime()),
358
+ exportVersion: z.optional(z.string()),
359
+ exportBy: z.optional(z.string()),
360
+ })),
596
361
  });
597
- /**
598
- * 浏览器配置列表响应
599
- */
600
- export const zBrowserList = z.object({
601
- pagination: zPaginationResponse.optional(),
602
- rows: z.array(zBrowser).optional(),
362
+ export const zUserSettingsUpdateRequest = z.object({
363
+ tunnelConfig: z.optional(zTunnelConfig),
364
+ exportMetadata: z.optional(z.object({
365
+ exportTimestamp: z.optional(z.iso.datetime()),
366
+ exportVersion: z.optional(z.string()),
367
+ exportBy: z.optional(z.string()),
368
+ })),
603
369
  });
604
- /**
605
- * 创建浏览器配置的请求
606
- */
607
- export const zBrowserCreate = z.object({
608
- name: z.string(),
609
- description: z.string().optional(),
610
- url: z.string(),
611
- properties: z.object({}).optional(),
612
- tags: z.array(z.string()).optional(),
370
+ export const zReadinessGetData = z.object({
371
+ body: z.optional(z.never()),
372
+ path: z.optional(z.never()),
373
+ query: z.optional(z.never()),
613
374
  });
614
- /**
615
- * 浏览器配置导出响应
616
- */
617
- export const zBrowserExport = z.object({
618
- exportedAt: z.string().datetime().optional(),
619
- tenantId: z.string().uuid().optional(),
620
- browsers: z.array(zBrowser).optional(),
621
- count: z.number().int().optional(),
375
+ export const zLivenessGetData = z.object({
376
+ body: z.optional(z.never()),
377
+ path: z.optional(z.never()),
378
+ query: z.optional(z.never()),
622
379
  });
623
- /**
624
- * 用户数据归档信息
625
- */
626
- export const zUserDataArchive = z.object({
627
- archive: z.string().optional(),
628
- checksum: z.string().optional(),
629
- size: z.coerce.bigint().optional(),
380
+ export const zHealthGetData = z.object({
381
+ body: z.optional(z.never()),
382
+ path: z.optional(z.never()),
383
+ query: z.optional(z.never()),
630
384
  });
631
385
  /**
632
- * 包含用户数据的浏览器配置
386
+ * Service is healthy
633
387
  */
634
- export const zBrowserWithUserData = z.object({
635
- config: zBrowser.optional(),
636
- userData: zUserDataArchive.optional(),
637
- });
638
- /**
639
- * 导出元数据
640
- */
641
- export const zExportMetadata = z.object({
642
- version: z.string().optional(),
643
- includeUserData: z.boolean().optional(),
644
- totalSize: z.coerce.bigint().optional(),
645
- compressionRatio: z.number().optional(),
646
- });
647
- /**
648
- * 浏览器完整导出响应,包含配置和用户数据
649
- */
650
- export const zBrowserCompleteExport = z.object({
651
- exportedAt: z.string().datetime().optional(),
652
- tenantId: z.string().uuid().optional(),
653
- browsers: z.array(zBrowserWithUserData).optional(),
654
- count: z.number().int().optional(),
655
- metadata: zExportMetadata.optional(),
656
- });
657
- /**
658
- * 浏览器配置导入请求
659
- */
660
- export const zBrowserImport = z.object({
661
- browsers: z.array(zBrowserCreate),
662
- overwrite: z.boolean().optional().default(false),
663
- });
664
- /**
665
- * 浏览器配置导入结果
666
- */
667
- export const zBrowserImportResult = z.object({
668
- importedAt: z.string().datetime().optional(),
669
- totalCount: z.number().int().optional(),
670
- successCount: z.number().int().optional(),
671
- failedCount: z.number().int().optional(),
672
- errors: z
673
- .array(z.object({
674
- index: z.number().int().optional(),
675
- name: z.string().optional(),
676
- error: z.string().optional(),
677
- }))
678
- .optional(),
679
- });
680
- /**
681
- * 更新浏览器配置的请求
682
- */
683
- export const zBrowserUpdate = z.object({
684
- name: z.string().optional(),
685
- description: z.string().optional(),
686
- url: z.string().optional(),
687
- properties: z.object({}).optional(),
688
- tags: z.array(z.string()).optional(),
689
- });
690
- /**
691
- * 浏览器启动可选参数
692
- */
693
- export const zBrowserLaunchOptions = z.object({
694
- headless: z.boolean().optional().default(true),
695
- display: z.string().optional().default(":1"),
696
- });
697
- /**
698
- * 浏览器启动结果
699
- */
700
- export const zBrowserLaunchResult = z.object({
701
- success: z.boolean().optional(),
702
- message: z.string().optional(),
703
- launchedAt: z.string().datetime().optional(),
704
- browserId: z.string().uuid().optional(),
705
- browserName: z.string().optional(),
706
- url: z.string().optional(),
707
- });
708
- /**
709
- * 浏览器关闭结果
710
- */
711
- export const zBrowserCloseResult = z.object({
712
- success: z.boolean().optional(),
713
- message: z.string().optional(),
714
- closedAt: z.string().datetime().optional(),
715
- browserId: z.string().uuid().optional(),
716
- browserName: z.string().optional(),
717
- processInfo: z
718
- .object({
719
- pid: z.number().int().optional(),
720
- status: z.enum(["running", "stopped", "not_found"]).optional(),
721
- })
722
- .optional(),
723
- });
724
- /**
725
- * 浏览器实例运行状态
726
- */
727
- export const zBrowserStatus = z.object({
728
- browserId: z.string().uuid().optional(),
729
- browserName: z.string().optional(),
730
- status: z.enum(["running", "stopped", "starting", "stopping"]).optional(),
731
- processId: z.number().int().optional(),
732
- startedAt: z.string().datetime().optional(),
733
- stoppedAt: z.string().datetime().optional(),
734
- remoteDebuggingUrl: z.string().optional(),
735
- error: z.string().optional(),
736
- });
737
- /**
738
- * 浏览器cookie信息
739
- */
740
- export const zBrowserCookie = z.object({
741
- name: z.string(),
742
- value: z.string(),
743
- domain: z.string(),
744
- path: z.string(),
745
- expires: z.string().datetime().optional(),
746
- httpOnly: z.boolean().optional(),
747
- secure: z.boolean().optional(),
748
- sameSite: z.enum(["Strict", "Lax", "None"]).optional(),
749
- size: z.number().int().optional(),
750
- });
751
- /**
752
- * 浏览器cookies信息,按域名分组
753
- */
754
- export const zBrowserCookies = z.object({
755
- browserId: z.string().uuid(),
756
- browserName: z.string(),
757
- status: z.enum(["running", "stopped"]),
758
- cookiesByDomain: z.object({}),
759
- totalCookies: z.number().int(),
760
- domainCount: z.number().int(),
761
- retrievedAt: z.string().datetime(),
762
- });
763
- /**
764
- * 单个cookie更新信息
765
- */
766
- export const zBrowserCookieUpdate = z.object({
767
- name: z.string(),
768
- value: z.string().optional(),
769
- domain: z.string(),
770
- path: z.string().optional().default("/"),
771
- expires: z.string().datetime().optional(),
772
- httpOnly: z.boolean().optional().default(false),
773
- secure: z.boolean().optional().default(false),
774
- sameSite: z.enum(["Strict", "Lax", "None"]).optional(),
775
- });
776
- /**
777
- * 浏览器cookies更新请求
778
- */
779
- export const zBrowserCookiesUpdate = z.object({
780
- cookies: z.array(zBrowserCookieUpdate),
781
- operation: z.enum(["replace", "merge", "delete"]).optional(),
782
- });
783
- /**
784
- * Cookies更新结果
785
- */
786
- export const zBrowserCookiesUpdateResult = z.object({
787
- success: z.boolean().optional(),
788
- message: z.string().optional(),
789
- updatedAt: z.string().datetime().optional(),
790
- affectedCount: z.number().int().optional(),
791
- browserId: z.string().uuid().optional(),
792
- });
793
- /**
794
- * 浏览器持久化状态信息
795
- */
796
- export const zBrowserState = z.object({
797
- browserId: z.string().uuid().optional(),
798
- browserName: z.string().optional(),
799
- sessionData: z.object({}).optional(),
800
- lastSavedAt: z.string().datetime().optional(),
801
- version: z.string().optional().default("1.0"),
802
- });
803
- /**
804
- * 浏览器状态更新请求
805
- */
806
- export const zBrowserStateUpdate = z.object({
807
- sessionData: z.object({}).optional(),
808
- mergeMode: z.boolean().optional().default(true),
809
- });
810
- /**
811
- * 浏览器状态更新结果
812
- */
813
- export const zBrowserStateUpdateResult = z.object({
814
- success: z.boolean().optional(),
815
- message: z.string().optional(),
816
- updatedAt: z.string().datetime().optional(),
817
- browserId: z.string().uuid().optional(),
818
- version: z.string().optional(),
819
- });
820
- export const zBotConfig = z.object({
821
- public_server: z.string(),
822
- private_server: z.string(),
823
- frontend_url: z.string(),
824
- local_http_server_enabled: z.boolean(),
825
- local_http_server_port: z.number().int(),
826
- adb_server_enabled: z.boolean(),
827
- adb_server_port: z.number().int().optional().default(5555),
828
- hatchet_token: z.string(),
829
- });
830
- export const zBot = z.object({
831
- id: z.string(),
832
- created_at: z.string().datetime(),
833
- updated_at: z.string().datetime(),
834
- name: z.string(),
835
- description: z.string(),
836
- config: zBotConfig,
837
- });
838
- export const zBotList = z.object({
839
- pagination: zPaginationResponse,
840
- rows: z.array(zBot),
841
- });
842
- export const zBotLocalState = z.object({
843
- bot_id: z.string(),
844
- device_type: z.enum(["unknown", "android", "ios", "web"]),
845
- host_name: z.string(),
846
- });
847
- export const zSystemSetupRequest = z.object({
848
- dbUrl: z.string().regex(/^postgresql:/),
849
- email: z.string().email(),
850
- password: z.string().min(6),
851
- });
852
- export const zSystemLogEntry = z.object({
853
- id: z.string(),
854
- timestamp: z.string().datetime(),
855
- level: z.enum(["DEBUG", "INFO", "WARN", "ERROR"]),
856
- module: z.string(),
857
- message: z.string(),
858
- context: z.object({}).optional(),
859
- source: z.string().optional(),
860
- });
861
- export const zSystemLogsResponse = z.object({
862
- logs: z.array(zSystemLogEntry),
863
- total: z.number().int(),
864
- limit: z.number().int(),
865
- offset: z.number().int(),
866
- hasMore: z.boolean(),
867
- });
868
- export const zOAuthProvider = z.object({
869
- name: z.string(),
870
- displayName: z.string(),
871
- enabled: z.boolean(),
872
- clientId: z.string().optional(),
873
- clientSecret: z.string().optional(),
874
- scopes: z.array(z.string()).optional(),
875
- });
876
- export const zOAuthConfigResponse = z.object({
877
- success: z.boolean(),
878
- message: z.string(),
879
- providers: z.object({}),
880
- });
881
- export const zOAuthConfigRequest = z.object({
882
- providers: z.object({}),
883
- });
884
- export const zSystemPerformanceMetrics = z.object({
885
- cpuUsage: z.number().gte(0).lte(100),
886
- memoryUsage: z.number().gte(0).lte(100),
887
- diskUsage: z.number().gte(0).lte(100),
888
- memoryTotal: z.coerce.bigint(),
889
- memoryUsed: z.coerce.bigint(),
890
- memoryFree: z.coerce.bigint(),
891
- loadAverage: z.tuple([z.number(), z.number(), z.number()]),
892
- uptime: z.coerce.bigint(),
893
- timestamp: z.string().datetime(),
894
- });
895
- export const zCloudflareAccountConfig = z.object({
896
- accountId: z.string(),
897
- apiEmail: z.string().email(),
898
- apiToken: z.string(),
899
- });
900
- export const zCloudflareR2Config = z.object({
901
- token: z.string(),
902
- accessKey: z.string(),
903
- secretKey: z.string(),
904
- bucket: z.string(),
905
- });
906
- export const zSystemSettings = z.object({
907
- mainDomain: z.string().optional(),
908
- cloudflareAccount: zCloudflareAccountConfig.optional(),
909
- cloudflareR2: zCloudflareR2Config.optional(),
910
- nodeAuthToken: z.string().optional(),
911
- secretKey: z.string().optional(),
912
- exportMetadata: z
913
- .object({
914
- exportTimestamp: z.string().datetime().optional(),
915
- exportVersion: z.string().optional(),
916
- exportBy: z.string().optional(),
917
- })
918
- .optional(),
919
- });
920
- export const zSystemSettingsResponse = z.object({
921
- success: z.boolean(),
922
- message: z.string(),
923
- settings: zSystemSettings,
924
- });
925
- export const zSystemSettingsUpdateRequest = z.object({
926
- mainDomain: z.string().optional(),
927
- cloudflareAccount: zCloudflareAccountConfig.optional(),
928
- cloudflareR2: zCloudflareR2Config.optional(),
929
- nodeAuthToken: z.string().optional(),
930
- secretKey: z.string().optional(),
931
- });
932
- export const zSystemSettingsImportResponse = z.object({
933
- success: z.boolean(),
934
- message: z.string(),
935
- importedCount: z.number().int(),
936
- skippedCount: z.number().int(),
937
- errors: z.array(z.string()),
938
- });
939
- export const zApiResourceMetaProperties = z.object({
940
- metadata: zApiResourceMeta,
941
- });
942
- export const zQueueMetrics = z.object({
943
- numQueued: z.number().int(),
944
- numRunning: z.number().int(),
945
- numPending: z.number().int(),
946
- });
947
- export const zTenantQueueMetrics = z.object({
948
- total: zQueueMetrics.optional(),
949
- workflow: z.object({}).optional(),
950
- queues: z.object({}).optional(),
951
- });
952
- export const zTenantList = z.object({
953
- pagination: zPaginationResponse.optional(),
954
- rows: z.array(zTenant).optional(),
955
- });
956
- export const zLogLine = z.object({
957
- createdAt: z.string().datetime(),
958
- message: z.string(),
959
- metadata: z.object({}),
960
- });
961
- export const zLogLineLevel = z.enum(["DEBUG", "INFO", "WARN", "ERROR"]);
962
- export const zLogLineList = z.object({
963
- pagination: zPaginationResponse.optional(),
964
- rows: z.array(zLogLine).optional(),
965
- });
966
- export const zCommonResult = z.object({
967
- Success: z.boolean(),
968
- Message: z.string(),
969
- other: z.object({}).optional(),
970
- });
971
- export const zFormField = z.object({
972
- type: z.enum(["text", "number", "boolean", "array", "object"]),
973
- name: z.string(),
974
- default_value: z.string().optional(),
975
- label: z.string().optional(),
976
- description: z.string().optional(),
977
- required: z.boolean().optional(),
978
- min: z.number().optional(),
979
- max: z.number().optional(),
980
- placeholder: z.string().optional(),
981
- });
982
- export const zSchemaForm = z.object({
983
- form_type: z.enum(["schema", "custom"]).optional(),
984
- form_name: z.string().optional(),
985
- title: z.string(),
986
- description: z.string().optional(),
987
- layout: z.enum(["vertical", "horizontal"]).optional(),
988
- fields: z.array(zFormField),
989
- });
990
- export const zMtWorkerProperties = z.object({
991
- id: z.string().optional(),
992
- name: z.string().optional(),
993
- });
994
- /**
995
- * MCP 工具信息
996
- */
997
- export const zMcpTool = z.object({
998
- name: z.string(),
999
- description: z.string(),
1000
- });
1001
- /**
1002
- * MCP 服务信息
1003
- */
1004
- export const zMcpInfo = z.object({
1005
- name: z.string(),
1006
- version: z.string(),
1007
- description: z.string(),
1008
- baseUrl: z.string(),
1009
- endpoints: z.object({
1010
- sse: z.string(),
1011
- message: z.string(),
1012
- health: z.string(),
1013
- }),
1014
- status: z.enum(["running", "stopped", "error"]),
1015
- tools: z.array(zMcpTool).optional(),
1016
- });
1017
- /**
1018
- * MCP 诊断检查项
1019
- */
1020
- export const zMcpDiagnosticCheck = z.object({
1021
- name: z.string(),
1022
- description: z.string(),
1023
- status: z.enum(["passed", "failed", "unknown"]),
1024
- message: z.string(),
1025
- error: z.string().optional(),
1026
- });
1027
- /**
1028
- * MCP 服务诊断结果
1029
- */
1030
- export const zMcpDiagnostics = z.object({
1031
- timestamp: z.string().datetime(),
1032
- sseUrl: z.string(),
1033
- healthUrl: z.string(),
1034
- status: z.enum(["healthy", "unhealthy", "unknown"]),
1035
- message: z.string().optional(),
1036
- checks: z.array(zMcpDiagnosticCheck),
1037
- tools: z.array(zMcpTool).optional(),
1038
- });
1039
- export const zAgentEventType = z.enum([
1040
- "ThoughtEvent",
1041
- "TextMessage",
1042
- "PlatformAccountFlowInput",
1043
- "ChatMessageInput",
1044
- "SocialAddFollowersInput",
1045
- "SocialLoginInput",
1046
- "TenantInitInput",
1047
- "AskUserFunctionCallInput",
1048
- "StartNewChatInput",
1049
- ]);
1050
- export const zFlowNames = z.enum([
1051
- "sys",
1052
- "tenant",
1053
- "assistant",
1054
- "ag",
1055
- "browser",
1056
- "resource",
1057
- "instagram",
1058
- "social",
1059
- "team",
1060
- "adk",
1061
- ]);
1062
- export const zAgentRunnerInput = z.object({
1063
- content: z.string().optional(),
1064
- });
1065
- export const zAgentRunnerOutput = z.object({
1066
- content: z.string().optional(),
1067
- });
1068
- export const zAgentProperties = z.object({
1069
- name: z.string(),
1070
- description: z.string(),
1071
- provider: z.string(),
1072
- config: z.object({}),
1073
- teamId: z.string(),
1074
- });
1075
- export const zAgent = zApiResourceMetaProperties.and(zAgentProperties);
1076
- export const zAgentList = z.object({
1077
- pagination: zPaginationResponse.optional(),
1078
- rows: z.array(zAgent).optional(),
1079
- });
1080
- export const zAgentTopicTypes = z.enum([
1081
- "user",
1082
- "human",
1083
- "instagram",
1084
- "browser",
1085
- "socioety",
1086
- "code",
1087
- "router",
1088
- "research",
1089
- "writer",
1090
- "tenant",
1091
- "closure",
1092
- "response",
1093
- ]);
1094
- /**
1095
- * 浏览器(browser use)任务
1096
- */
1097
- export const zBrowserTask = z.object({
1098
- content: z.string(),
1099
- });
1100
- /**
1101
- * 打开浏览器备用,一般用于调试目的Open a browser and navigate to a URL.
1102
- */
1103
- export const zBrowserOpenTask = z.object({
1104
- url: z.string(),
1105
- });
1106
- /**
1107
- * 浏览器配置(未完成)
1108
- */
1109
- export const zBrowserConfig = z.object({
1110
- persistent: z.boolean().optional(),
1111
- });
1112
- export const zScheduledItem = z.object({
1113
- id: z.string(),
1114
- type: z.enum(["cron", "scheduled", "delayed"]),
1115
- trigger: z.string(),
1116
- nextTrigger: z.string(),
1117
- description: z.string(),
1118
- });
1119
- export const zPlatformAccountProperties = z.object({
1120
- label: z.string().optional(),
1121
- description: z.string().optional(),
1122
- username: z.string(),
1123
- email: z.string().optional(),
1124
- password: z.string(),
1125
- token: z.string().optional(),
1126
- type: z.string().optional(),
1127
- platform: z.string(),
1128
- enabled: z.boolean().optional(),
1129
- tags: z.array(z.string()).optional(),
1130
- state: z.object({}).optional(),
1131
- error: z.string().optional(),
1132
- });
1133
- export const zPlatformAccount = zApiResourceMetaProperties.and(zPlatformAccountProperties);
1134
- export const zPlatformAccountList = z.object({
1135
- pagination: zPaginationResponse.optional(),
1136
- rows: z.array(zPlatformAccount).optional(),
1137
- });
1138
- export const zPlatformAccountUpsert = zPlatformAccountProperties;
1139
- /**
1140
- * List of sing-box outbounds
1141
- */
1142
- export const zSbOutboundList = z.object({
1143
- outbounds: z.array(zSbOutbound).optional(),
1144
- });
1145
- /**
1146
- * Network interface information
1147
- */
1148
- export const zSbNetworkInterface = z.object({
1149
- name: z.string(),
1150
- isUp: z.boolean(),
1151
- type: z.enum(["ethernet", "wifi", "tun", "tap", "loopback", "other"]),
1152
- ipAddresses: z.array(z.string()).optional(),
1153
- macAddress: z.string().optional(),
1154
- mtu: z.number().int().optional(),
1155
- rxBytes: z.number().int().optional(),
1156
- txBytes: z.number().int().optional(),
1157
- flags: z.array(z.string()).optional(),
1158
- });
1159
- /**
1160
- * Information about a Tor process
1161
- */
1162
- export const zSbTorProcess = z.object({
1163
- pid: z.number().int(),
1164
- command: z.string(),
1165
- isEmbedded: z.boolean(),
1166
- startTime: z.string().datetime().optional(),
1167
- memoryUsage: z.number().int().optional(),
1168
- cpuUsage: z.number().optional(),
1169
- status: z.enum(["running", "sleeping", "stopped", "zombie"]).optional(),
1170
- });
1171
- /**
1172
- * System information relevant to Tor operation
1173
- */
1174
- export const zSbSystemInfo = z.object({
1175
- os: z.string(),
1176
- architecture: z.string(),
1177
- hasRootPrivileges: z.boolean(),
1178
- kernelVersion: z.string().optional(),
1179
- availableMemory: z.number().int().optional(),
1180
- totalMemory: z.number().int().optional(),
1181
- loadAverage: z.array(z.number()).optional(),
1182
- isCodespaces: z.boolean().optional(),
1183
- isContainer: z.boolean().optional(),
1184
- });
1185
- /**
1186
- * Information about the embedded Tor instance
1187
- */
1188
- export const zSbEmbeddedTorInfo = z.object({
1189
- version: z.string().optional(),
1190
- isActive: z.boolean().optional(),
1191
- dataDirectory: z.string().optional(),
1192
- configurationSummary: z.object({}).optional(),
1193
- bootstrapProgress: z.number().int().gte(0).lte(100).optional(),
1194
- circuitCount: z.number().int().optional(),
1195
- relayCount: z.number().int().optional(),
1196
- });
1197
- /**
1198
- * Routing table entry
1199
- */
1200
- export const zSbRouteEntry = z.object({
1201
- destination: z.string(),
1202
- gateway: z.string(),
1203
- interface: z.string(),
1204
- metric: z.number().int().optional(),
1205
- flags: z.array(z.string()).optional(),
1206
- });
1207
- /**
1208
- * DNS configuration information
1209
- */
1210
- export const zSbDnsConfiguration = z.object({
1211
- nameservers: z.array(z.string()).optional(),
1212
- searchDomains: z.array(z.string()).optional(),
1213
- torDNSPort: z.number().int().optional(),
1214
- dnsOverTor: z.boolean().optional(),
1215
- });
1216
- /**
1217
- * Performance metrics for Tor V4
1218
- */
1219
- export const zSbPerformanceMetrics = z.object({
1220
- connectionCount: z.number().int().optional(),
1221
- bytesReceived: z.number().int().optional(),
1222
- bytesSent: z.number().int().optional(),
1223
- averageLatency: z.number().optional(),
1224
- circuitBuildTime: z.number().optional(),
1225
- lastActivityTime: z.string().datetime().optional(),
1226
- });
1227
- export const zMobileHello = z.object({
1228
- message: z.string().optional(),
1229
- });
1230
- export const zDatabaseSetupRequest = z.object({
1231
- databaseUrl: z.string().regex(/^postgresql:/),
1232
- });
1233
- export const zDatabaseSetupResponse = z.object({
1234
- success: z.boolean(),
1235
- message: z.string(),
1236
- databaseUrl: z.string().optional(),
1237
- });
1238
- export const zSetupStatusResponse = z.object({
1239
- databaseConfigured: z.boolean(),
1240
- setupComplete: z.boolean(),
1241
- dbReady: z.boolean().optional(),
1242
- lastError: z.string().optional(),
1243
- nextStep: z.enum(["database", "complete"]),
1244
- });
1245
- export const zCreateSiteResponse = zSite;
1246
- export const zCreateSiteHostRequest = zSiteHostProperties;
1247
- export const zUpdateSiteHostRequest = zSiteHost;
1248
- export const zReadinessGetData = z.object({
1249
- body: z.never().optional(),
1250
- path: z.never().optional(),
1251
- query: z.never().optional(),
1252
- });
1253
- export const zLivenessGetData = z.object({
1254
- body: z.never().optional(),
1255
- path: z.never().optional(),
1256
- query: z.never().optional(),
1257
- });
1258
- export const zHealthGetData = z.object({
1259
- body: z.never().optional(),
1260
- path: z.never().optional(),
1261
- query: z.never().optional(),
1262
- });
1263
- /**
1264
- * Service is healthy
1265
- */
1266
- export const zHealthGetResponse = zHealthStatus;
1267
- export const zMetadataGetData = z.object({
1268
- body: z.never().optional(),
1269
- path: z.never().optional(),
1270
- query: z.never().optional(),
1271
- });
1272
- /**
1273
- * Successfully retrieved the metadata
1274
- */
1275
- export const zMetadataGetResponse = zApiMeta;
1276
- export const zMetadataListIntegrationsData = z.object({
1277
- body: z.never().optional(),
1278
- path: z.never().optional(),
1279
- query: z.never().optional(),
1280
- });
1281
- /**
1282
- * Successfully retrieved the list of integrations
1283
- */
1284
- export const zMetadataListIntegrationsResponse = zListApiMetaIntegration;
1285
- export const zUserUpdateLoginData = z.object({
1286
- body: zUserLoginRequest.optional(),
1287
- path: z.never().optional(),
1288
- query: z.never().optional(),
1289
- });
1290
- /**
1291
- * Successfully logged in
1292
- */
1293
- export const zUserUpdateLoginResponse = zUser;
1294
- export const zUserUpdateGoogleOauthStartData = z.object({
1295
- body: z.never().optional(),
1296
- path: z.never().optional(),
1297
- query: z.never().optional(),
1298
- });
1299
- export const zUserUpdateGoogleOauthCallbackData = z.object({
1300
- body: z.never().optional(),
1301
- path: z.never().optional(),
1302
- query: z.never().optional(),
1303
- });
1304
- export const zUserUpdateGithubOauthStartData = z.object({
1305
- body: z.never().optional(),
1306
- path: z.never().optional(),
1307
- query: z.never().optional(),
1308
- });
1309
- export const zUserUpdateGithubOauthCallbackData = z.object({
1310
- body: z.never().optional(),
1311
- path: z.never().optional(),
1312
- query: z.never().optional(),
1313
- });
1314
- export const zAlertEmailGroupListData = z.object({
1315
- body: z.never().optional(),
1316
- path: z.object({
1317
- tenant: z.string().uuid().length(36),
1318
- }),
1319
- query: z.never().optional(),
1320
- });
1321
- /**
1322
- * Successfully retrieved the tenant alert email groups
1323
- */
1324
- export const zAlertEmailGroupListResponse = zTenantAlertEmailGroupList;
1325
- export const zAlertEmailGroupCreateData = z.object({
1326
- body: zCreateTenantAlertEmailGroupRequest,
1327
- path: z.object({
1328
- tenant: z.string().uuid().length(36),
1329
- }),
1330
- query: z.never().optional(),
1331
- });
1332
- /**
1333
- * Successfully created the tenant alert email group
1334
- */
1335
- export const zAlertEmailGroupCreateResponse = zTenantAlertEmailGroup;
1336
- export const zTenantResourcePolicyGetData = z.object({
1337
- body: z.never().optional(),
1338
- path: z.object({
1339
- tenant: z.string().uuid().length(36),
1340
- }),
1341
- query: z.never().optional(),
1342
- });
1343
- /**
1344
- * Successfully retrieved the tenant resource policy
1345
- */
1346
- export const zTenantResourcePolicyGetResponse = zTenantResourcePolicy;
1347
- export const zAlertEmailGroupDeleteData = z.object({
1348
- body: z.never().optional(),
1349
- path: z.object({
1350
- "alert-email-group": z.string().uuid().length(36),
1351
- }),
1352
- query: z.never().optional(),
1353
- });
1354
- /**
1355
- * Successfully deleted the tenant alert email group
1356
- */
1357
- export const zAlertEmailGroupDeleteResponse = z.void();
1358
- export const zAlertEmailGroupUpdateData = z.object({
1359
- body: zUpdateTenantAlertEmailGroupRequest,
1360
- path: z.object({
1361
- "alert-email-group": z.string().uuid().length(36),
1362
- }),
1363
- query: z.never().optional(),
1364
- });
1365
- /**
1366
- * Successfully updated the tenant alert email group
1367
- */
1368
- export const zAlertEmailGroupUpdateResponse = zTenantAlertEmailGroup;
1369
- export const zUserUpdatePasswordData = z.object({
1370
- body: zUserChangePasswordRequest.optional(),
1371
- path: z.never().optional(),
1372
- query: z.never().optional(),
1373
- });
1374
- /**
1375
- * Successfully changed password
1376
- */
1377
- export const zUserUpdatePasswordResponse = zUser;
1378
- export const zUserCreateData = z.object({
1379
- body: zUserRegisterRequest.optional(),
1380
- path: z.never().optional(),
1381
- query: z.never().optional(),
1382
- });
1383
- /**
1384
- * Successfully registered the user
1385
- */
1386
- export const zUserCreateResponse = zUser;
1387
- export const zUserUpdateLogoutData = z.object({
1388
- body: z.never().optional(),
1389
- path: z.never().optional(),
1390
- query: z.never().optional(),
1391
- });
1392
- /**
1393
- * Successfully logged out
1394
- */
1395
- export const zUserUpdateLogoutResponse = zUser;
1396
- export const zTenantMembershipsListData = z.object({
1397
- body: z.never().optional(),
1398
- path: z.never().optional(),
1399
- query: z.never().optional(),
1400
- });
1401
- /**
1402
- * Successfully listed the tenant memberships
1403
- */
1404
- export const zTenantMembershipsListResponse = zUserTenantMembershipsList;
1405
- export const zUserListTenantInvitesData = z.object({
1406
- body: z.never().optional(),
1407
- path: z.never().optional(),
1408
- query: z.never().optional(),
1409
- });
1410
- /**
1411
- * Successfully listed the tenant invites
1412
- */
1413
- export const zUserListTenantInvitesResponse = zTenantInviteList;
1414
- export const zTenantInviteAcceptData = z.object({
1415
- body: zAcceptInviteRequest.optional(),
1416
- path: z.never().optional(),
1417
- query: z.never().optional(),
1418
- });
1419
- export const zTenantInviteRejectData = z.object({
1420
- body: zRejectInviteRequest.optional(),
1421
- path: z.never().optional(),
1422
- query: z.never().optional(),
1423
- });
1424
- export const zUserGetGithubReposData = z.object({
1425
- body: z.never().optional(),
1426
- path: z.never().optional(),
1427
- query: z.never().optional(),
1428
- });
1429
- /**
1430
- * Successfully retrieved GitHub repositories
1431
- */
1432
- export const zUserGetGithubReposResponse = zGitHubRepositoryList;
1433
- export const zAdminUsersListData = z.object({
1434
- body: z.never().optional(),
1435
- path: z.never().optional(),
1436
- query: z
1437
- .object({
1438
- limit: z.number().int().gte(1).lte(100).optional().default(20),
1439
- offset: z.number().int().gte(0).optional().default(0),
1440
- search: z.string().max(100).optional(),
1441
- role: zUserRole.optional(),
1442
- emailVerified: z.boolean().optional(),
1443
- })
1444
- .optional(),
1445
- });
1446
- /**
1447
- * Successfully retrieved user list
1448
- */
1449
- export const zAdminUsersListResponse = zAdminUserList;
1450
- export const zAdminUserCreateData = z.object({
1451
- body: zAdminUserCreateRequest.optional(),
1452
- path: z.never().optional(),
1453
- query: z.never().optional(),
1454
- });
1455
- /**
1456
- * Successfully created user
1457
- */
1458
- export const zAdminUserCreateResponse = zUser;
1459
- export const zAdminUserGetData = z.object({
1460
- body: z.never().optional(),
1461
- path: z.object({
1462
- userId: z.string().uuid(),
1463
- }),
1464
- query: z.never().optional(),
1465
- });
1466
- /**
1467
- * Successfully retrieved user
1468
- */
1469
- export const zAdminUserGetResponse = zUser;
1470
- export const zAdminUserUpdateData = z.object({
1471
- body: zAdminUserUpdateRequest.optional(),
1472
- path: z.object({
1473
- userId: z.string().uuid(),
1474
- }),
1475
- query: z.never().optional(),
1476
- });
1477
- /**
1478
- * Successfully updated user
1479
- */
1480
- export const zAdminUserUpdateResponse = zUser;
1481
- export const zAdminUserDeleteData = z.object({
1482
- body: z.never().optional(),
1483
- path: z.object({
1484
- userId: z.string().uuid(),
1485
- }),
1486
- query: z.never().optional(),
1487
- });
1488
- /**
1489
- * Successfully deleted user
1490
- */
1491
- export const zAdminUserDeleteResponse = zApiMessage;
1492
- export const zAdminRolesListData = z.object({
1493
- body: z.never().optional(),
1494
- path: z.never().optional(),
1495
- query: z.never().optional(),
1496
- });
1497
- /**
1498
- * Successfully retrieved role list
1499
- */
1500
- export const zAdminRolesListResponse = zRoleList;
1501
- export const zAdminUserRolesData = z.object({
1502
- body: z.never().optional(),
1503
- path: z.object({
1504
- userId: z.string().uuid(),
1505
- }),
1506
- query: z.never().optional(),
1507
- });
1508
- /**
1509
- * Successfully retrieved user's roles
1510
- */
1511
- export const zAdminUserRolesResponse = zRoleList;
1512
- export const zAdminUserAssignRoleData = z.object({
1513
- body: zAdminAssignRoleRequest.optional(),
1514
- path: z.object({
1515
- userId: z.string().uuid(),
1516
- }),
1517
- query: z.never().optional(),
1518
- });
1519
- /**
1520
- * Successfully assigned role
1521
- */
1522
- export const zAdminUserAssignRoleResponse = zRoleList;
1523
- export const zAdminUserRemoveRoleData = z.object({
1524
- body: z.never().optional(),
1525
- path: z.object({
1526
- userId: z.string().uuid(),
1527
- }),
1528
- query: z.object({
1529
- roleName: z.string(),
1530
- }),
1531
- });
1532
- /**
1533
- * Successfully removed role
1534
- */
1535
- export const zAdminUserRemoveRoleResponse = zRoleList;
1536
- export const zUserSettingsGetData = z.object({
1537
- body: z.never().optional(),
1538
- path: z.object({
1539
- tenant: zTenantParameter,
1540
- }),
1541
- query: z.never().optional(),
1542
- });
1543
- /**
1544
- * User settings retrieved successfully
1545
- */
1546
- export const zUserSettingsGetResponse = zUserSettings;
1547
- export const zUserSettingsCreateData = z.object({
1548
- body: zUserSettingsCreateRequest,
1549
- path: z.object({
1550
- tenant: zTenantParameter,
1551
- }),
1552
- query: z.never().optional(),
1553
- });
1554
- /**
1555
- * User settings created successfully
1556
- */
1557
- export const zUserSettingsCreateResponse = zUserSettings;
1558
- export const zUserSettingsUpdateData = z.object({
1559
- body: zUserSettingsUpdateRequest,
1560
- path: z.object({
1561
- tenant: zTenantParameter,
1562
- }),
1563
- query: z.never().optional(),
1564
- });
1565
- /**
1566
- * User settings updated successfully
1567
- */
1568
- export const zUserSettingsUpdateResponse = zUserSettings;
1569
- export const zUserSettingsExportData = z.object({
1570
- body: z.never().optional(),
1571
- path: z.object({
1572
- tenant: zTenantParameter,
1573
- }),
1574
- query: z.never().optional(),
1575
- });
1576
- /**
1577
- * User settings in YAML format
1578
- */
1579
- export const zUserSettingsExportResponse = z.string();
1580
- export const zUserSettingsImportData = z.object({
1581
- body: z.string(),
1582
- path: z.object({
1583
- tenant: zTenantParameter,
1584
- }),
1585
- query: z.never().optional(),
1586
- });
1587
- /**
1588
- * User settings imported successfully
1589
- */
1590
- export const zUserSettingsImportResponse = zUserSettings;
1591
- export const zServiceListData = z.object({
1592
- body: z.never().optional(),
1593
- path: z.object({
1594
- tenant: zTenantParameter,
1595
- }),
1596
- query: z.never().optional(),
1597
- });
1598
- /**
1599
- * Services list retrieved successfully
1600
- */
1601
- export const zServiceListResponse = z.object({
1602
- services: z.array(zService).optional(),
1603
- });
1604
- export const zServiceGetData = z.object({
1605
- body: z.never().optional(),
1606
- path: z.object({
1607
- tenant: zTenantParameter,
1608
- service: z.enum(["vnc", "sshd", "tunnel", "dockerd", "napcat"]),
1609
- }),
1610
- query: z.never().optional(),
1611
- });
1612
- /**
1613
- * Service status retrieved successfully
1614
- */
1615
- export const zServiceGetResponse = zService;
1616
- export const zServiceStartData = z.object({
1617
- body: zServiceStartRequest.optional(),
1618
- path: z.object({
1619
- tenant: zTenantParameter,
1620
- service: z.enum(["vnc", "sshd", "tunnel", "dockerd", "napcat"]),
1621
- }),
1622
- query: z.never().optional(),
1623
- });
1624
- /**
1625
- * Service started successfully
1626
- */
1627
- export const zServiceStartResponse = zServiceOperationResponse;
1628
- export const zServiceStopData = z.object({
1629
- body: z.never().optional(),
1630
- path: z.object({
1631
- tenant: zTenantParameter,
1632
- service: z.enum(["vnc", "sshd", "tunnel", "dockerd", "napcat"]),
1633
- }),
1634
- query: z.never().optional(),
1635
- });
1636
- /**
1637
- * Service stopped successfully
1638
- */
1639
- export const zServiceStopResponse = zServiceOperationResponse;
1640
- export const zServiceGetLogsData = z.object({
1641
- body: z.never().optional(),
1642
- path: z.object({
1643
- tenant: zTenantParameter,
1644
- service: z.enum(["vnc", "sshd", "tunnel", "dockerd", "napcat"]),
1645
- }),
1646
- query: z
1647
- .object({
1648
- lines: z.number().int().gte(1).lte(1000).optional().default(100),
1649
- level: z.enum(["debug", "info", "warn", "error"]).optional(),
1650
- })
1651
- .optional(),
1652
- });
1653
- /**
1654
- * Service logs retrieved successfully
1655
- */
1656
- export const zServiceGetLogsResponse = zVncServiceLogs;
1657
- export const zServiceGetDiagnosticsData = z.object({
1658
- body: z.never().optional(),
1659
- path: z.object({
1660
- tenant: zTenantParameter,
1661
- service: z.enum(["vnc", "sshd", "tunnel", "dockerd", "napcat"]),
1662
- }),
1663
- query: z.never().optional(),
1664
- });
1665
- /**
1666
- * Service diagnostics retrieved successfully
1667
- */
1668
- export const zServiceGetDiagnosticsResponse = zVncServiceDiagnostics;
1669
- export const zServiceGetConfigData = z.object({
1670
- body: z.never().optional(),
1671
- path: z.object({
1672
- tenant: zTenantParameter,
1673
- service: z.enum(["vnc", "sshd", "tunnel", "dockerd", "napcat"]),
1674
- }),
1675
- query: z.never().optional(),
1676
- });
1677
- /**
1678
- * Service configuration retrieved successfully
1679
- */
1680
- export const zServiceGetConfigResponse = zServiceConfig;
1681
- export const zServiceUpdateConfigData = z.object({
1682
- body: zServiceConfigUpdateRequest,
1683
- path: z.object({
1684
- tenant: zTenantParameter,
1685
- service: z.enum(["vnc", "sshd", "tunnel", "dockerd"]),
1686
- }),
1687
- query: z.never().optional(),
1688
- });
1689
- /**
1690
- * Service configuration updated successfully
1691
- */
1692
- export const zServiceUpdateConfigResponse = zServiceConfig;
1693
- export const zTenantCreateData = z.object({
1694
- body: zCreateTenantRequest,
1695
- path: z.never().optional(),
1696
- query: z.never().optional(),
1697
- });
1698
- /**
1699
- * Successfully created the tenant
1700
- */
1701
- export const zTenantCreateResponse = zTenant;
1702
- export const zTenantUpdateData = z.object({
1703
- body: zUpdateTenantRequest,
1704
- path: z.object({
1705
- tenant: z.string().uuid().length(36),
1706
- }),
1707
- query: z.never().optional(),
1708
- });
1709
- /**
1710
- * Successfully created the tenant
1711
- */
1712
- export const zTenantUpdateResponse = zTenant;
1713
- export const zTenantAlertingSettingsGetData = z.object({
1714
- body: z.never().optional(),
1715
- path: z.object({
1716
- tenant: z.string().uuid().length(36),
1717
- }),
1718
- query: z.never().optional(),
1719
- });
1720
- /**
1721
- * Successfully retrieved the tenant alerting settings
1722
- */
1723
- export const zTenantAlertingSettingsGetResponse = zTenantAlertingSettings;
1724
- export const zTenantInviteListData = z.object({
1725
- body: z.never().optional(),
1726
- path: z.object({
1727
- tenant: z.string().uuid().length(36),
1728
- }),
1729
- query: z.never().optional(),
1730
- });
1731
- /**
1732
- * Successfully retrieved the tenant invites
1733
- */
1734
- export const zTenantInviteListResponse = zTenantInviteList;
1735
- export const zTenantInviteCreateData = z.object({
1736
- body: zCreateTenantInviteRequest,
1737
- path: z.object({
1738
- tenant: z.string().uuid().length(36),
1739
- }),
1740
- query: z.never().optional(),
1741
- });
1742
- /**
1743
- * Successfully created the tenant invite
1744
- */
1745
- export const zTenantInviteCreateResponse = zTenantInvite;
1746
- export const zTenantInviteDeleteData = z.object({
1747
- body: z.never().optional(),
1748
- path: z.object({
1749
- tenant: z.string().uuid().length(36),
1750
- "tenant-invite": z.string().uuid().length(36),
1751
- }),
1752
- query: z.never().optional(),
1753
- });
1754
- /**
1755
- * Successfully deleted the tenant invite
1756
- */
1757
- export const zTenantInviteDeleteResponse = zTenantInvite;
1758
- export const zTenantInviteUpdateData = z.object({
1759
- body: zUpdateTenantInviteRequest,
1760
- path: z.object({
1761
- tenant: z.string().uuid().length(36),
1762
- "tenant-invite": z.string().uuid().length(36),
1763
- }),
1764
- query: z.never().optional(),
1765
- });
1766
- /**
1767
- * Successfully updated the tenant invite
1768
- */
1769
- export const zTenantInviteUpdateResponse = zTenantInvite;
1770
- export const zApiTokenListData = z.object({
1771
- body: z.never().optional(),
1772
- path: z.object({
1773
- tenant: z.string().uuid().length(36),
1774
- }),
1775
- query: z.never().optional(),
1776
- });
1777
- /**
1778
- * Successfully retrieved the workflows
1779
- */
1780
- export const zApiTokenListResponse = zListApiTokensResponse;
1781
- export const zApiTokenCreateData = z.object({
1782
- body: zCreateApiTokenRequest.optional(),
1783
- path: z.object({
1784
- tenant: z.string().uuid().length(36),
1785
- }),
1786
- query: z.never().optional(),
1787
- });
1788
- /**
1789
- * Successfully retrieved the workflows
1790
- */
1791
- export const zApiTokenCreateResponse = zCreateApiTokenResponse;
1792
- export const zApiTokenUpdateRevokeData = z.object({
1793
- body: z.never().optional(),
1794
- path: z.object({
1795
- "api-token": z.string().uuid().length(36),
1796
- }),
1797
- query: z.never().optional(),
1798
- });
1799
- /**
1800
- * Successfully revoked the token
1801
- */
1802
- export const zApiTokenUpdateRevokeResponse = z.void();
1803
- export const zTenantMemberListData = z.object({
1804
- body: z.never().optional(),
1805
- path: z.object({
1806
- tenant: z.string().uuid().length(36),
1807
- }),
1808
- query: z.never().optional(),
1809
- });
1810
- /**
1811
- * Successfully retrieved the tenant members
1812
- */
1813
- export const zTenantMemberListResponse = zTenantMemberList;
1814
- export const zTenantMemberDeleteData = z.object({
1815
- body: z.never().optional(),
1816
- path: z.object({
1817
- tenant: z.string().uuid().length(36),
1818
- member: z.string().uuid().length(36),
1819
- }),
1820
- query: z.never().optional(),
388
+ export const zHealthGetResponse = zHealthStatus;
389
+ export const zMetadataGetData = z.object({
390
+ body: z.optional(z.never()),
391
+ path: z.optional(z.never()),
392
+ query: z.optional(z.never()),
1821
393
  });
1822
394
  /**
1823
- * Successfully deleted the tenant members
395
+ * Successfully retrieved the metadata
1824
396
  */
1825
- export const zTenantMemberDeleteResponse = zTenantMember;
1826
- export const zTenantExportData = z.object({
1827
- body: z.never().optional(),
1828
- path: z.object({
1829
- tenant: z.string().uuid().length(36),
1830
- }),
1831
- query: z.never().optional(),
397
+ export const zMetadataGetResponse = zApiMeta;
398
+ export const zMetadataListIntegrationsData = z.object({
399
+ body: z.optional(z.never()),
400
+ path: z.optional(z.never()),
401
+ query: z.optional(z.never()),
1832
402
  });
1833
403
  /**
1834
- * Tenant information exported successfully
404
+ * Successfully retrieved the list of integrations
1835
405
  */
1836
- export const zTenantExportResponse = zTenantInfoExport;
1837
- export const zInfoGetVersionData = z.object({
1838
- body: z.never().optional(),
1839
- path: z.never().optional(),
1840
- query: z.never().optional(),
406
+ export const zMetadataListIntegrationsResponse = zListApiMetaIntegration;
407
+ export const zUserUpdateLoginData = z.object({
408
+ body: z.optional(zUserLoginRequest),
409
+ path: z.optional(z.never()),
410
+ query: z.optional(z.never()),
1841
411
  });
1842
412
  /**
1843
- * The version of the server
413
+ * Successfully logged in
1844
414
  */
1845
- export const zInfoGetVersionResponse = z.object({
1846
- version: z.string(),
415
+ export const zUserUpdateLoginResponse = zUser;
416
+ export const zUserUpdateGoogleOauthStartData = z.object({
417
+ body: z.optional(z.never()),
418
+ path: z.optional(z.never()),
419
+ query: z.optional(z.never()),
1847
420
  });
1848
- export const zInfoGetData = z.object({
1849
- body: z.never().optional(),
1850
- path: z.never().optional(),
1851
- query: z.never().optional(),
421
+ export const zUserUpdateGoogleOauthCallbackData = z.object({
422
+ body: z.optional(z.never()),
423
+ path: z.optional(z.never()),
424
+ query: z.optional(z.never()),
1852
425
  });
1853
- /**
1854
- * Server information
1855
- */
1856
- export const zInfoGetResponse = zServerInfo;
1857
- export const zSiteListData = z.object({
1858
- body: z.never().optional(),
1859
- path: z.object({
1860
- tenant: z.string().uuid().length(36),
1861
- }),
1862
- query: z.never().optional(),
426
+ export const zUserUpdateGithubOauthStartData = z.object({
427
+ body: z.optional(z.never()),
428
+ path: z.optional(z.never()),
429
+ query: z.optional(z.never()),
1863
430
  });
1864
- export const zSiteListResponse = zSiteList;
1865
- export const zSiteCreateData = z.object({
1866
- body: zCreateSiteRequest,
1867
- path: z.object({
1868
- tenant: zTenantParameter,
1869
- }),
1870
- query: z.never().optional(),
431
+ export const zUserUpdateGithubOauthCallbackData = z.object({
432
+ body: z.optional(z.never()),
433
+ path: z.optional(z.never()),
434
+ query: z.optional(z.never()),
1871
435
  });
1872
- export const zSiteCreateResponse = zSite;
1873
- export const zSiteDeleteData = z.object({
1874
- body: z.never().optional(),
436
+ export const zAlertEmailGroupListData = z.object({
437
+ body: z.optional(z.never()),
1875
438
  path: z.object({
1876
- tenant: zTenantParameter,
1877
- site: z.string().uuid().length(36),
439
+ tenant: z.uuid().length(36),
1878
440
  }),
1879
- query: z.never().optional(),
441
+ query: z.optional(z.never()),
1880
442
  });
1881
443
  /**
1882
- * Site deleted successfully
444
+ * Successfully retrieved the tenant alert email groups
1883
445
  */
1884
- export const zSiteDeleteResponse = z.void();
1885
- export const zSiteGetData = z.object({
1886
- body: z.never().optional(),
1887
- path: z.object({
1888
- tenant: z.string().uuid().length(36),
1889
- site: z.string().uuid().length(36),
1890
- }),
1891
- query: z.never().optional(),
1892
- });
1893
- export const zSiteGetResponse = zSite;
1894
- export const zSiteUpdateData = z.object({
1895
- body: zUpdateSiteRequest,
446
+ export const zAlertEmailGroupListResponse = zTenantAlertEmailGroupList;
447
+ export const zAlertEmailGroupCreateData = z.object({
448
+ body: zCreateTenantAlertEmailGroupRequest,
1896
449
  path: z.object({
1897
- tenant: zTenantParameter,
1898
- site: z.string().uuid().length(36),
450
+ tenant: z.uuid().length(36),
1899
451
  }),
1900
- query: z.never().optional(),
452
+ query: z.optional(z.never()),
1901
453
  });
1902
454
  /**
1903
- * Successfully created the tenant
455
+ * Successfully created the tenant alert email group
1904
456
  */
1905
- export const zSiteUpdateResponse = zSite;
1906
- export const zSiteGetByHostData = z.object({
1907
- body: z.never().optional(),
1908
- path: z.object({
1909
- tenant: zTenantParameter,
1910
- host: z.string().min(1).max(255),
1911
- }),
1912
- query: z.never().optional(),
1913
- });
1914
- export const zSiteGetByHostResponse = zSite;
1915
- export const zSiteHostListData = z.object({
1916
- body: z.never().optional(),
1917
- path: z.object({
1918
- tenant: z.string().uuid().length(36),
1919
- site: z.string().optional(),
1920
- }),
1921
- query: z
1922
- .object({
1923
- offset: z.coerce.bigint().optional(),
1924
- host: z.string().optional(),
1925
- })
1926
- .optional(),
1927
- });
1928
- export const zSiteHostListResponse = zSiteHostList;
1929
- export const zSiteHostCreateData = z.object({
1930
- body: zSiteHostProperties,
457
+ export const zAlertEmailGroupCreateResponse = zTenantAlertEmailGroup;
458
+ export const zTenantResourcePolicyGetData = z.object({
459
+ body: z.optional(z.never()),
1931
460
  path: z.object({
1932
- tenant: zTenantParameter,
1933
- site: z.string().uuid(),
461
+ tenant: z.uuid().length(36),
1934
462
  }),
1935
- query: z.never().optional(),
463
+ query: z.optional(z.never()),
1936
464
  });
1937
- export const zSiteHostCreateResponse = zSiteHost;
1938
- export const zSiteHostGetData = z.object({
1939
- body: z.never().optional(),
465
+ /**
466
+ * Successfully retrieved the tenant resource policy
467
+ */
468
+ export const zTenantResourcePolicyGetResponse = zTenantResourcePolicy;
469
+ export const zAlertEmailGroupDeleteData = z.object({
470
+ body: z.optional(z.never()),
1940
471
  path: z.object({
1941
- tenant: z.string().uuid().length(36),
1942
- site: z.string(),
1943
- host: z.string().uuid().length(36),
472
+ "alert-email-group": z.uuid().length(36),
1944
473
  }),
1945
- query: z.never().optional(),
474
+ query: z.optional(z.never()),
1946
475
  });
1947
- export const zSiteHostGetResponse = zSiteHost;
1948
- export const zSiteHostUpdateData = z.object({
1949
- body: zSiteHost,
476
+ /**
477
+ * Successfully deleted the tenant alert email group
478
+ */
479
+ export const zAlertEmailGroupDeleteResponse = z.void();
480
+ export const zAlertEmailGroupUpdateData = z.object({
481
+ body: zUpdateTenantAlertEmailGroupRequest,
1950
482
  path: z.object({
1951
- tenant: zTenantParameter,
1952
- site: z.string().uuid(),
1953
- host: z.string().uuid().length(36),
483
+ "alert-email-group": z.uuid().length(36),
1954
484
  }),
1955
- query: z.never().optional(),
485
+ query: z.optional(z.never()),
1956
486
  });
1957
487
  /**
1958
- * Successfully created the tenant
488
+ * Successfully updated the tenant alert email group
1959
489
  */
1960
- export const zSiteHostUpdateResponse = zSiteHost;
1961
- export const zFrontendGetConfigData = z.object({
1962
- body: z.never().optional(),
1963
- path: z.never().optional(),
1964
- query: z.never().optional(),
490
+ export const zAlertEmailGroupUpdateResponse = zTenantAlertEmailGroup;
491
+ export const zUserUpdatePasswordData = z.object({
492
+ body: z.optional(zUserChangePasswordRequest),
493
+ path: z.optional(z.never()),
494
+ query: z.optional(z.never()),
1965
495
  });
1966
496
  /**
1967
- * frontend core config
497
+ * Successfully changed password
1968
498
  */
1969
- export const zFrontendGetConfigResponse = zFrontendConfig;
1970
- export const zEndpointListData = z.object({
1971
- body: z.never().optional(),
1972
- path: z.never().optional(),
1973
- query: z.never().optional(),
1974
- });
1975
- export const zEndpointListResponse = zEndpointList;
1976
- export const zEndpointUpdateData = z.object({
1977
- body: zUpdateEndpointRequest,
1978
- path: z.never().optional(),
1979
- query: z.never().optional(),
499
+ export const zUserUpdatePasswordResponse = zUser;
500
+ export const zUserCreateData = z.object({
501
+ body: z.optional(zUserRegisterRequest),
502
+ path: z.optional(z.never()),
503
+ query: z.optional(z.never()),
1980
504
  });
1981
505
  /**
1982
- * Successfully created the tenant
506
+ * Successfully registered the user
1983
507
  */
1984
- export const zEndpointUpdateResponse = zEndpoint;
1985
- export const zMtworkerGetTasksData = z.object({
1986
- body: z.never().optional(),
1987
- path: z.never().optional(),
1988
- query: z.never().optional(),
508
+ export const zUserCreateResponse = zUser;
509
+ export const zUserUpdateLogoutData = z.object({
510
+ body: z.optional(z.never()),
511
+ path: z.optional(z.never()),
512
+ query: z.optional(z.never()),
1989
513
  });
1990
514
  /**
1991
- * 获取mtworker任务成功
515
+ * Successfully logged out
1992
516
  */
1993
- export const zMtworkerGetTasksResponse = zMtWorkerTask;
1994
- export const zWorkflowGetWorkersData = z.object({
1995
- body: z.never().optional(),
1996
- path: z.never().optional(),
1997
- query: z.never().optional(),
517
+ export const zUserUpdateLogoutResponse = zUser;
518
+ export const zTenantMembershipsListData = z.object({
519
+ body: z.optional(z.never()),
520
+ path: z.optional(z.never()),
521
+ query: z.optional(z.never()),
1998
522
  });
1999
523
  /**
2000
- * 获取Worker列表成功
524
+ * Successfully listed the tenant memberships
2001
525
  */
2002
- export const zWorkflowGetWorkersResponse = z.object({
2003
- workers: z.array(zWorkflowWorker).optional(),
2004
- });
2005
- export const zWorkflowStartWorkerData = z.object({
2006
- body: zStartWorkerRequest,
2007
- path: z.never().optional(),
2008
- query: z.never().optional(),
526
+ export const zTenantMembershipsListResponse = zUserTenantMembershipsList;
527
+ export const zUserListTenantInvitesData = z.object({
528
+ body: z.optional(z.never()),
529
+ path: z.optional(z.never()),
530
+ query: z.optional(z.never()),
2009
531
  });
2010
532
  /**
2011
- * Worker启动成功
533
+ * Successfully listed the tenant invites
2012
534
  */
2013
- export const zWorkflowStartWorkerResponse = zWorkflowWorker;
2014
- export const zWorkflowStopWorkerData = z.object({
2015
- body: zStopWorkerRequest,
2016
- path: z.never().optional(),
2017
- query: z.never().optional(),
535
+ export const zUserListTenantInvitesResponse = zTenantInviteList;
536
+ export const zTenantInviteAcceptData = z.object({
537
+ body: z.optional(zAcceptInviteRequest),
538
+ path: z.optional(z.never()),
539
+ query: z.optional(z.never()),
2018
540
  });
2019
- /**
2020
- * Worker停止成功
2021
- */
2022
- export const zWorkflowStopWorkerResponse = z.object({
2023
- success: z.boolean().optional(),
2024
- message: z.string().optional(),
541
+ export const zTenantInviteRejectData = z.object({
542
+ body: z.optional(zRejectInviteRequest),
543
+ path: z.optional(z.never()),
544
+ query: z.optional(z.never()),
2025
545
  });
2026
- export const zWorkflowGetWorkerStatusData = z.object({
2027
- body: z.never().optional(),
2028
- path: z.never().optional(),
2029
- query: z.never().optional(),
546
+ export const zUserGetGithubReposData = z.object({
547
+ body: z.optional(z.never()),
548
+ path: z.optional(z.never()),
549
+ query: z.optional(z.never()),
2030
550
  });
2031
551
  /**
2032
- * 获取Worker状态成功
552
+ * Successfully retrieved GitHub repositories
2033
553
  */
2034
- export const zWorkflowGetWorkerStatusResponse = z.object({
2035
- workers: z.array(zWorkerStatus).optional(),
2036
- });
2037
- export const zWorkflowGetAvailableWorkflowsData = z.object({
2038
- body: z.never().optional(),
2039
- path: z.never().optional(),
2040
- query: z.never().optional(),
554
+ export const zUserGetGithubReposResponse = zGitHubRepositoryList;
555
+ export const zAdminUsersListData = z.object({
556
+ body: z.optional(z.never()),
557
+ path: z.optional(z.never()),
558
+ query: z.optional(z.object({
559
+ limit: z.optional(z.int().gte(1).lte(100)).default(20),
560
+ offset: z.optional(z.int().gte(0)).default(0),
561
+ search: z.optional(z.string().max(100)),
562
+ role: z.optional(zUserRole),
563
+ emailVerified: z.optional(z.boolean()),
564
+ })),
2041
565
  });
2042
566
  /**
2043
- * 获取可用工作流列表成功
567
+ * Successfully retrieved user list
2044
568
  */
2045
- export const zWorkflowGetAvailableWorkflowsResponse = z.object({
2046
- workflows: z.array(z.string()).optional(),
2047
- });
2048
- export const zWorkflowRunWorkflowData = z.object({
2049
- body: zRunWorkflowRequest,
2050
- path: z.never().optional(),
2051
- query: z.never().optional(),
569
+ export const zAdminUsersListResponse = zAdminUserList;
570
+ export const zAdminUserCreateData = z.object({
571
+ body: z.optional(zAdminUserCreateRequest),
572
+ path: z.optional(z.never()),
573
+ query: z.optional(z.never()),
2052
574
  });
2053
575
  /**
2054
- * 工作流执行成功
576
+ * Successfully created user
2055
577
  */
2056
- export const zWorkflowRunWorkflowResponse = zWorkflowResult;
2057
- export const zToolsRunContainerData = z.object({
2058
- body: zRunContainerRequest.optional(),
578
+ export const zAdminUserCreateResponse = zUser;
579
+ export const zAdminUserGetData = z.object({
580
+ body: z.optional(z.never()),
2059
581
  path: z.object({
2060
- tenant: zTenantParameter,
582
+ userId: z.uuid(),
2061
583
  }),
2062
- query: z.never().optional(),
584
+ query: z.optional(z.never()),
2063
585
  });
2064
586
  /**
2065
- * Container started successfully
587
+ * Successfully retrieved user
2066
588
  */
2067
- export const zToolsRunContainerResponse = zRunContainerResponse;
2068
- export const zPostListPublicData = z.object({
2069
- body: z.never().optional(),
2070
- path: z.never().optional(),
2071
- query: z
2072
- .object({
2073
- siteId: z.string().uuid().length(36).optional(),
2074
- })
2075
- .optional(),
2076
- });
2077
- export const zPostListPublicResponse = zPostList;
2078
- export const zPostDeleteData = z.object({
2079
- body: z.never().optional(),
2080
- path: z.object({
2081
- tenant: z.string().uuid().length(36),
2082
- post: z.string().uuid().length(36),
2083
- }),
2084
- query: z.never().optional(),
2085
- });
2086
- export const zPostDeleteResponse = zPost;
2087
- export const zPostGetData = z.object({
2088
- body: z.never().optional(),
2089
- path: z.object({
2090
- tenant: z.string().uuid().length(36),
2091
- post: z.string().uuid().length(36),
2092
- }),
2093
- query: z.never().optional(),
2094
- });
2095
- export const zPostGetResponse = zPost;
2096
- export const zPostUpdateData = z.object({
2097
- body: zUpdatePostRequest,
2098
- path: z.object({
2099
- tenant: z.string().uuid().length(36),
2100
- post: z.string().uuid().length(36),
2101
- }),
2102
- query: z.never().optional(),
2103
- });
2104
- export const zPostUpdateResponse = zPost;
2105
- export const zPostListData = z.object({
2106
- body: z.never().optional(),
2107
- path: z.object({
2108
- tenant: zTenantParameter,
2109
- }),
2110
- query: z
2111
- .object({
2112
- siteId: z.string().optional(),
2113
- })
2114
- .optional(),
2115
- });
2116
- export const zPostListResponse = zPostList;
2117
- export const zPostCreateData = z.object({
2118
- body: zCreatePostRequest,
2119
- path: z.object({
2120
- tenant: zTenantParameter,
2121
- }),
2122
- query: z.never().optional(),
2123
- });
2124
- export const zPostCreateResponse = zPost;
2125
- export const zScriptsByNameData = z.object({
2126
- body: z.never().optional(),
589
+ export const zAdminUserGetResponse = zUser;
590
+ export const zAdminUserUpdateData = z.object({
591
+ body: z.optional(zAdminUserUpdateRequest),
2127
592
  path: z.object({
2128
- name: z.string(),
593
+ userId: z.uuid(),
2129
594
  }),
2130
- query: z.never().optional(),
595
+ query: z.optional(z.never()),
2131
596
  });
2132
597
  /**
2133
- * A script
598
+ * Successfully updated user
2134
599
  */
2135
- export const zScriptsByNameResponse = z.string();
2136
- export const zSingboxGetWorkerProfileData = z.object({
2137
- body: z.never().optional(),
600
+ export const zAdminUserUpdateResponse = zUser;
601
+ export const zAdminUserDeleteData = z.object({
602
+ body: z.optional(z.never()),
2138
603
  path: z.object({
2139
- profileType: z.string(),
2140
- profile: z.string(),
604
+ userId: z.uuid(),
2141
605
  }),
2142
- query: z.never().optional(),
606
+ query: z.optional(z.never()),
2143
607
  });
2144
608
  /**
2145
- * Successfully get the singbox srs file
609
+ * Successfully deleted user
2146
610
  */
2147
- export const zSingboxGetWorkerProfileResponse = zSbWorkerProfile;
2148
- export const zSingboxSubscribeData = z.object({
2149
- body: z.never().optional(),
2150
- path: z
2151
- .object({
2152
- group: z.string().optional(),
2153
- profile: z.string().optional(),
2154
- })
2155
- .optional(),
2156
- query: z.never().optional(),
611
+ export const zAdminUserDeleteResponse = zApiMessage;
612
+ export const zAdminRolesListData = z.object({
613
+ body: z.optional(z.never()),
614
+ path: z.optional(z.never()),
615
+ query: z.optional(z.never()),
2157
616
  });
2158
617
  /**
2159
- * Successfully get the firerpa config
618
+ * Successfully retrieved role list
2160
619
  */
2161
- export const zSingboxSubscribeResponse = z.object({});
2162
- export const zSingboxGeoipCnSrsData = z.object({
2163
- body: z.never().optional(),
620
+ export const zAdminRolesListResponse = zRoleList;
621
+ export const zAdminUserRolesData = z.object({
622
+ body: z.optional(z.never()),
2164
623
  path: z.object({
2165
- file: z.string(),
624
+ userId: z.uuid(),
2166
625
  }),
2167
- query: z.never().optional(),
2168
- });
2169
- /**
2170
- * Successfully get the singbox srs file
2171
- */
2172
- export const zSingboxGeoipCnSrsResponse = z.string();
2173
- export const zSingboxGetOutboundsData = z.object({
2174
- body: z.never().optional(),
2175
- path: z.never().optional(),
2176
- query: z.never().optional(),
2177
- });
2178
- /**
2179
- * Successfully get outbounds
2180
- */
2181
- export const zSingboxGetOutboundsResponse = z.object({
2182
- outbounds: z.array(zSbOutbound).optional(),
2183
- });
2184
- export const zSingboxCreateOutboundData = z.object({
2185
- body: zSbOutboundCreate.optional(),
2186
- path: z.never().optional(),
2187
- query: z.never().optional(),
626
+ query: z.optional(z.never()),
2188
627
  });
2189
628
  /**
2190
- * Successfully created outbound
629
+ * Successfully retrieved user's roles
2191
630
  */
2192
- export const zSingboxCreateOutboundResponse = zSbOutbound;
2193
- export const zSingboxDeleteOutboundData = z.object({
2194
- body: z.never().optional(),
631
+ export const zAdminUserRolesResponse = zRoleList;
632
+ export const zAdminUserAssignRoleData = z.object({
633
+ body: z.optional(zAdminAssignRoleRequest),
2195
634
  path: z.object({
2196
- id: z.string().uuid(),
635
+ userId: z.uuid(),
2197
636
  }),
2198
- query: z.never().optional(),
637
+ query: z.optional(z.never()),
2199
638
  });
2200
639
  /**
2201
- * Successfully deleted the outbound
640
+ * Successfully assigned role
2202
641
  */
2203
- export const zSingboxDeleteOutboundResponse = z.object({
2204
- success: z.boolean().optional(),
2205
- });
2206
- export const zSingboxGetOutboundData = z.object({
2207
- body: z.never().optional(),
642
+ export const zAdminUserAssignRoleResponse = zRoleList;
643
+ export const zAdminUserRemoveRoleData = z.object({
644
+ body: z.optional(z.never()),
2208
645
  path: z.object({
2209
- id: z.string().uuid(),
646
+ userId: z.uuid(),
2210
647
  }),
2211
- query: z.never().optional(),
2212
- });
2213
- /**
2214
- * Successfully get the outbound
2215
- */
2216
- export const zSingboxGetOutboundResponse = zSbOutbound;
2217
- export const zSingboxUpdateOutboundData = z.object({
2218
- body: zSbOutboundCreate.optional(),
2219
- path: z.object({
2220
- id: z.string().uuid(),
648
+ query: z.object({
649
+ roleName: z.string(),
2221
650
  }),
2222
- query: z.never().optional(),
2223
- });
2224
- /**
2225
- * Successfully updated the outbound
2226
- */
2227
- export const zSingboxUpdateOutboundResponse = zSbOutbound;
2228
- export const zSingboxImportOutboundsData = z.object({
2229
- body: zSbImportRequest.optional(),
2230
- path: z.never().optional(),
2231
- query: z.never().optional(),
2232
651
  });
2233
652
  /**
2234
- * Successfully import the singbox outbound
653
+ * Successfully removed role
2235
654
  */
2236
- export const zSingboxImportOutboundsResponse = zSbOutbound;
2237
- export const zBrowserListData = z.object({
2238
- body: z.never().optional(),
655
+ export const zAdminUserRemoveRoleResponse = zRoleList;
656
+ export const zUserSettingsGetData = z.object({
657
+ body: z.optional(z.never()),
2239
658
  path: z.object({
2240
659
  tenant: zTenantParameter,
2241
660
  }),
2242
- query: z
2243
- .object({
2244
- page: z.number().int().gte(1).optional().default(1),
2245
- limit: z.number().int().gte(1).lte(100).optional().default(20),
2246
- search: z.string().optional(),
2247
- })
2248
- .optional(),
661
+ query: z.optional(z.never()),
2249
662
  });
2250
663
  /**
2251
- * 浏览器配置列表
664
+ * User settings retrieved successfully
2252
665
  */
2253
- export const zBrowserListResponse = zBrowserList;
2254
- export const zBrowserCreateData = z.object({
2255
- body: zBrowserCreate,
666
+ export const zUserSettingsGetResponse = zUserSettings;
667
+ export const zUserSettingsCreateData = z.object({
668
+ body: zUserSettingsCreateRequest,
2256
669
  path: z.object({
2257
670
  tenant: zTenantParameter,
2258
671
  }),
2259
- query: z.never().optional(),
672
+ query: z.optional(z.never()),
2260
673
  });
2261
674
  /**
2262
- * 浏览器配置创建成功
675
+ * User settings created successfully
2263
676
  */
2264
- export const zBrowserCreateResponse = zBrowser;
2265
- export const zBrowserExportData = z.object({
2266
- body: z.never().optional(),
677
+ export const zUserSettingsCreateResponse = zUserSettings;
678
+ export const zUserSettingsUpdateData = z.object({
679
+ body: zUserSettingsUpdateRequest,
2267
680
  path: z.object({
2268
681
  tenant: zTenantParameter,
2269
682
  }),
2270
- query: z
2271
- .object({
2272
- includeUserData: z.boolean().optional().default(false),
2273
- })
2274
- .optional(),
683
+ query: z.optional(z.never()),
2275
684
  });
2276
685
  /**
2277
- * 浏览器配置导出成功
686
+ * User settings updated successfully
2278
687
  */
2279
- export const zBrowserExportResponse = z.union([
2280
- zBrowserExport,
2281
- zBrowserCompleteExport,
2282
- ]);
2283
- export const zBrowserImportData = z.object({
2284
- body: zBrowserImport,
688
+ export const zUserSettingsUpdateResponse = zUserSettings;
689
+ export const zUserSettingsExportData = z.object({
690
+ body: z.optional(z.never()),
2285
691
  path: z.object({
2286
692
  tenant: zTenantParameter,
2287
693
  }),
2288
- query: z.never().optional(),
694
+ query: z.optional(z.never()),
2289
695
  });
2290
696
  /**
2291
- * 浏览器配置导入成功
697
+ * User settings in YAML format
2292
698
  */
2293
- export const zBrowserImportResponse = zBrowserImportResult;
2294
- export const zBrowserDeleteData = z.object({
2295
- body: z.never().optional(),
699
+ export const zUserSettingsExportResponse = z.string();
700
+ export const zUserSettingsImportData = z.object({
701
+ body: z.string(),
2296
702
  path: z.object({
2297
703
  tenant: zTenantParameter,
2298
- browserId: z.string().uuid(),
2299
704
  }),
2300
- query: z.never().optional(),
705
+ query: z.optional(z.never()),
2301
706
  });
2302
707
  /**
2303
- * 浏览器配置删除成功
708
+ * User settings imported successfully
2304
709
  */
2305
- export const zBrowserDeleteResponse = z.void();
2306
- export const zBrowserGetData = z.object({
2307
- body: z.never().optional(),
2308
- path: z.object({
2309
- tenant: zTenantParameter,
2310
- browserId: z.string().uuid(),
2311
- }),
2312
- query: z.never().optional(),
710
+ export const zUserSettingsImportResponse = zUserSettings;
711
+ export const zTenantCreateData = z.object({
712
+ body: zCreateTenantRequest,
713
+ path: z.optional(z.never()),
714
+ query: z.optional(z.never()),
2313
715
  });
2314
716
  /**
2315
- * 浏览器配置详情
717
+ * Successfully created the tenant
2316
718
  */
2317
- export const zBrowserGetResponse = zBrowser;
2318
- export const zBrowserUpdateData = z.object({
2319
- body: zBrowserUpdate,
719
+ export const zTenantCreateResponse = zTenant;
720
+ export const zTenantUpdateData = z.object({
721
+ body: zUpdateTenantRequest,
2320
722
  path: z.object({
2321
- tenant: zTenantParameter,
2322
- browserId: z.string().uuid(),
723
+ tenant: z.uuid().length(36),
2323
724
  }),
2324
- query: z.never().optional(),
725
+ query: z.optional(z.never()),
2325
726
  });
2326
727
  /**
2327
- * 浏览器配置更新成功
728
+ * Successfully created the tenant
2328
729
  */
2329
- export const zBrowserUpdateResponse = zBrowser;
2330
- export const zBrowserLaunchData = z.object({
2331
- body: zBrowserLaunchOptions.optional(),
730
+ export const zTenantUpdateResponse = zTenant;
731
+ export const zTenantAlertingSettingsGetData = z.object({
732
+ body: z.optional(z.never()),
2332
733
  path: z.object({
2333
- tenant: zTenantParameter,
2334
- browserId: z.string().uuid(),
734
+ tenant: z.uuid().length(36),
2335
735
  }),
2336
- query: z.never().optional(),
736
+ query: z.optional(z.never()),
2337
737
  });
2338
738
  /**
2339
- * 浏览器启动成功
739
+ * Successfully retrieved the tenant alerting settings
2340
740
  */
2341
- export const zBrowserLaunchResponse = zBrowserLaunchResult;
2342
- export const zBrowserCloseData = z.object({
2343
- body: z.never().optional(),
741
+ export const zTenantAlertingSettingsGetResponse = zTenantAlertingSettings;
742
+ export const zTenantInviteListData = z.object({
743
+ body: z.optional(z.never()),
2344
744
  path: z.object({
2345
- tenant: zTenantParameter,
2346
- browserId: z.string().uuid(),
745
+ tenant: z.uuid().length(36),
2347
746
  }),
2348
- query: z.never().optional(),
747
+ query: z.optional(z.never()),
2349
748
  });
2350
749
  /**
2351
- * 浏览器关闭成功
750
+ * Successfully retrieved the tenant invites
2352
751
  */
2353
- export const zBrowserCloseResponse = zBrowserCloseResult;
2354
- export const zBrowserStatusData = z.object({
2355
- body: z.never().optional(),
752
+ export const zTenantInviteListResponse = zTenantInviteList;
753
+ export const zTenantInviteCreateData = z.object({
754
+ body: zCreateTenantInviteRequest,
2356
755
  path: z.object({
2357
- tenant: zTenantParameter,
2358
- browserId: z.string().uuid(),
756
+ tenant: z.uuid().length(36),
2359
757
  }),
2360
- query: z.never().optional(),
758
+ query: z.optional(z.never()),
2361
759
  });
2362
760
  /**
2363
- * 浏览器状态信息
761
+ * Successfully created the tenant invite
2364
762
  */
2365
- export const zBrowserStatusResponse = zBrowserStatus;
2366
- export const zBrowserCookiesData = z.object({
2367
- body: z.never().optional(),
763
+ export const zTenantInviteCreateResponse = zTenantInvite;
764
+ export const zTenantInviteDeleteData = z.object({
765
+ body: z.optional(z.never()),
2368
766
  path: z.object({
2369
- tenant: zTenantParameter,
2370
- browserId: z.string().uuid(),
767
+ tenant: z.uuid().length(36),
768
+ "tenant-invite": z.uuid().length(36),
2371
769
  }),
2372
- query: z.never().optional(),
770
+ query: z.optional(z.never()),
2373
771
  });
2374
772
  /**
2375
- * 浏览器cookies信息
773
+ * Successfully deleted the tenant invite
2376
774
  */
2377
- export const zBrowserCookiesResponse = zBrowserCookies;
2378
- export const zBrowserUpdateCookiesData = z.object({
2379
- body: zBrowserCookiesUpdate,
775
+ export const zTenantInviteDeleteResponse = zTenantInvite;
776
+ export const zTenantInviteUpdateData = z.object({
777
+ body: zUpdateTenantInviteRequest,
2380
778
  path: z.object({
2381
- tenant: zTenantParameter,
2382
- browserId: z.string().uuid(),
779
+ tenant: z.uuid().length(36),
780
+ "tenant-invite": z.uuid().length(36),
2383
781
  }),
2384
- query: z.never().optional(),
782
+ query: z.optional(z.never()),
2385
783
  });
2386
784
  /**
2387
- * Cookies更新成功
785
+ * Successfully updated the tenant invite
2388
786
  */
2389
- export const zBrowserUpdateCookiesResponse = zBrowserCookiesUpdateResult;
2390
- export const zBrowserGetStateData = z.object({
2391
- body: z.never().optional(),
787
+ export const zTenantInviteUpdateResponse = zTenantInvite;
788
+ export const zApiTokenListData = z.object({
789
+ body: z.optional(z.never()),
2392
790
  path: z.object({
2393
- tenant: zTenantParameter,
2394
- browserId: z.string().uuid(),
791
+ tenant: z.uuid().length(36),
2395
792
  }),
2396
- query: z.never().optional(),
793
+ query: z.optional(z.never()),
2397
794
  });
2398
795
  /**
2399
- * 浏览器状态信息
796
+ * Successfully retrieved the workflows
2400
797
  */
2401
- export const zBrowserGetStateResponse = zBrowserState;
2402
- export const zBrowserUpdateStateData = z.object({
2403
- body: zBrowserStateUpdate,
798
+ export const zApiTokenListResponse = zListApiTokensResponse;
799
+ export const zApiTokenCreateData = z.object({
800
+ body: z.optional(zCreateApiTokenRequest),
2404
801
  path: z.object({
2405
- tenant: zTenantParameter,
2406
- browserId: z.string().uuid(),
802
+ tenant: z.uuid().length(36),
2407
803
  }),
2408
- query: z.never().optional(),
804
+ query: z.optional(z.never()),
2409
805
  });
2410
806
  /**
2411
- * 状态更新成功
807
+ * Successfully retrieved the workflows
2412
808
  */
2413
- export const zBrowserUpdateStateResponse = zBrowserStateUpdateResult;
2414
- export const zBotListData = z.object({
2415
- body: z.never().optional(),
2416
- path: z.never().optional(),
2417
- query: z.never().optional(),
2418
- });
2419
- export const zBotListResponse = zBotList;
2420
- export const zBotGetData = z.object({
2421
- body: z.never().optional(),
809
+ export const zApiTokenCreateResponse = zCreateApiTokenResponse;
810
+ export const zApiTokenUpdateRevokeData = z.object({
811
+ body: z.optional(z.never()),
2422
812
  path: z.object({
2423
- bot: z.string(),
813
+ "api-token": z.uuid().length(36),
2424
814
  }),
2425
- query: z
2426
- .object({
2427
- autoCreate: z.boolean().optional().default(false),
2428
- })
2429
- .optional(),
2430
- });
2431
- export const zBotGetResponse = zBot;
2432
- export const zBotHeartbeatData = z.object({
2433
- body: zBotLocalState.optional(),
2434
- path: z.never().optional(),
2435
- query: z.never().optional(),
2436
- });
2437
- /**
2438
- * Bot configuration returned successfully
2439
- */
2440
- export const zBotHeartbeatResponse = zBotConfig;
2441
- export const zSystemSetupData = z.object({
2442
- body: zSystemSetupRequest,
2443
- path: z.never().optional(),
2444
- query: z.never().optional(),
815
+ query: z.optional(z.never()),
2445
816
  });
2446
817
  /**
2447
- * SSE formatted event stream
2448
- */
2449
- export const zSystemSetupResponse = z.string();
2450
- export const zSystemGetLogsData = z.object({
2451
- body: z.never().optional(),
2452
- path: z.never().optional(),
2453
- query: z
2454
- .object({
2455
- level: z.enum(["DEBUG", "INFO", "WARN", "ERROR"]).optional(),
2456
- module: z.string().optional(),
2457
- date: z.string().date().optional(),
2458
- limit: z.number().int().gte(1).lte(1000).optional().default(100),
2459
- offset: z.number().int().gte(0).optional().default(0),
2460
- })
2461
- .optional(),
2462
- });
2463
- /**
2464
- * System logs retrieved successfully
2465
- */
2466
- export const zSystemGetLogsResponse = zSystemLogsResponse;
2467
- export const zSystemGetOAuthConfigData = z.object({
2468
- body: z.never().optional(),
2469
- path: z.never().optional(),
2470
- query: z.never().optional(),
2471
- });
2472
- /**
2473
- * OAuth configuration retrieved successfully
818
+ * Successfully revoked the token
2474
819
  */
2475
- export const zSystemGetOAuthConfigResponse = zOAuthConfigResponse;
2476
- export const zSystemUpdateOAuthConfigData = z.object({
2477
- body: zOAuthConfigRequest,
2478
- path: z.never().optional(),
2479
- query: z.never().optional(),
820
+ export const zApiTokenUpdateRevokeResponse = z.void();
821
+ export const zTenantMemberListData = z.object({
822
+ body: z.optional(z.never()),
823
+ path: z.object({
824
+ tenant: z.uuid().length(36),
825
+ }),
826
+ query: z.optional(z.never()),
2480
827
  });
2481
828
  /**
2482
- * OAuth configuration updated successfully
829
+ * Successfully retrieved the tenant members
2483
830
  */
2484
- export const zSystemUpdateOAuthConfigResponse = zOAuthConfigResponse;
2485
- export const zSystemGetPerformanceMetricsData = z.object({
2486
- body: z.never().optional(),
2487
- path: z.never().optional(),
2488
- query: z.never().optional(),
831
+ export const zTenantMemberListResponse = zTenantMemberList;
832
+ export const zTenantMemberDeleteData = z.object({
833
+ body: z.optional(z.never()),
834
+ path: z.object({
835
+ tenant: z.uuid().length(36),
836
+ member: z.uuid().length(36),
837
+ }),
838
+ query: z.optional(z.never()),
2489
839
  });
2490
840
  /**
2491
- * Performance metrics retrieved successfully
841
+ * Successfully deleted the tenant members
2492
842
  */
2493
- export const zSystemGetPerformanceMetricsResponse = zSystemPerformanceMetrics;
2494
- export const zSystemGetSystemSettingsData = z.object({
2495
- body: z.never().optional(),
2496
- path: z.never().optional(),
2497
- query: z.never().optional(),
843
+ export const zTenantMemberDeleteResponse = zTenantMember;
844
+ export const zTenantExportData = z.object({
845
+ body: z.optional(z.never()),
846
+ path: z.object({
847
+ tenant: z.uuid().length(36),
848
+ }),
849
+ query: z.optional(z.never()),
2498
850
  });
2499
851
  /**
2500
- * System settings retrieved successfully
852
+ * Tenant information exported successfully
2501
853
  */
2502
- export const zSystemGetSystemSettingsResponse = zSystemSettingsResponse;
2503
- export const zSystemUpdateSystemSettingsData = z.object({
2504
- body: zSystemSettingsUpdateRequest.optional(),
2505
- path: z.never().optional(),
2506
- query: z.never().optional(),
854
+ export const zTenantExportResponse = zTenantInfoExport;
855
+ export const zInfoGetVersionData = z.object({
856
+ body: z.optional(z.never()),
857
+ path: z.optional(z.never()),
858
+ query: z.optional(z.never()),
2507
859
  });
2508
860
  /**
2509
- * System settings updated successfully
861
+ * The version of the server
2510
862
  */
2511
- export const zSystemUpdateSystemSettingsResponse = zSystemSettingsResponse;
2512
- export const zSystemExportSystemSettingsData = z.object({
2513
- body: z.never().optional(),
2514
- path: z.never().optional(),
2515
- query: z.never().optional(),
863
+ export const zInfoGetVersionResponse = z.object({
864
+ version: z.string(),
2516
865
  });
2517
- /**
2518
- * System settings in YAML format
2519
- */
2520
- export const zSystemExportSystemSettingsResponse = z.string();
2521
- export const zSystemImportSystemSettingsData = z.object({
2522
- body: z
2523
- .object({
2524
- file: z.string(),
2525
- })
2526
- .optional(),
2527
- path: z.never().optional(),
2528
- query: z.never().optional(),
866
+ export const zInfoGetData = z.object({
867
+ body: z.optional(z.never()),
868
+ path: z.optional(z.never()),
869
+ query: z.optional(z.never()),
2529
870
  });
2530
871
  /**
2531
- * System settings imported successfully
872
+ * Server information
2532
873
  */
2533
- export const zSystemImportSystemSettingsResponse = zSystemSettingsImportResponse;
874
+ export const zInfoGetResponse = zServerInfo;
2534
875
  //# sourceMappingURL=zod.gen.js.map