mtmsdk 0.0.51 → 0.0.52

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 (341) hide show
  1. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts +1 -13
  2. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +1 -1
  3. package/dist/gomtmapi/@tanstack/react-query.gen.js +1 -37
  4. package/dist/gomtmapi/@tanstack/react-query.gen.js.map +1 -1
  5. package/dist/gomtmapi/index.d.ts +2 -2
  6. package/dist/gomtmapi/index.d.ts.map +1 -1
  7. package/dist/gomtmapi/index.js +1 -1
  8. package/dist/gomtmapi/index.js.map +1 -1
  9. package/dist/gomtmapi/schemas.gen.d.ts +0 -57
  10. package/dist/gomtmapi/schemas.gen.d.ts.map +1 -1
  11. package/dist/gomtmapi/schemas.gen.js +0 -60
  12. package/dist/gomtmapi/schemas.gen.js.map +1 -1
  13. package/dist/gomtmapi/sdk.gen.d.ts +1 -13
  14. package/dist/gomtmapi/sdk.gen.d.ts.map +1 -1
  15. package/dist/gomtmapi/sdk.gen.js +0 -26
  16. package/dist/gomtmapi/sdk.gen.js.map +1 -1
  17. package/dist/gomtmapi/types.gen.d.ts +0 -94
  18. package/dist/gomtmapi/types.gen.d.ts.map +1 -1
  19. package/dist/gomtmapi/zod.gen.d.ts +0 -62
  20. package/dist/gomtmapi/zod.gen.d.ts.map +1 -1
  21. package/dist/gomtmapi/zod.gen.js +0 -51
  22. package/dist/gomtmapi/zod.gen.js.map +1 -1
  23. package/dist/index.d.ts +1 -1
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +1 -4
  26. package/dist/index.js.map +1 -1
  27. package/dist/lib/schema.d.ts +1 -11
  28. package/dist/lib/schema.d.ts.map +1 -1
  29. package/dist/lib/schema.js +0 -9
  30. package/dist/lib/schema.js.map +1 -1
  31. package/dist/mtgate_api/client.gen.d.ts.map +1 -1
  32. package/dist/mtgate_api/client.gen.js +1 -1
  33. package/dist/mtgate_api/client.gen.js.map +1 -1
  34. package/dist/mtgate_api/index.d.ts +2 -2
  35. package/dist/mtgate_api/index.d.ts.map +1 -1
  36. package/dist/mtgate_api/index.js +1 -1
  37. package/dist/mtgate_api/index.js.map +1 -1
  38. package/dist/mtgate_api/sdk.gen.d.ts +0 -8
  39. package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
  40. package/dist/mtgate_api/sdk.gen.js +1 -29
  41. package/dist/mtgate_api/sdk.gen.js.map +1 -1
  42. package/dist/mtgate_api/types.gen.d.ts +1 -200
  43. package/dist/mtgate_api/types.gen.d.ts.map +1 -1
  44. package/dist/openclaw/gateway.d.ts.map +1 -1
  45. package/dist/openclaw/gateway.js +1 -1
  46. package/dist/openclaw/gateway.js.map +1 -1
  47. package/dist/sbmng/@tanstack/react-query.gen.d.ts +39 -65
  48. package/dist/sbmng/@tanstack/react-query.gen.d.ts.map +1 -1
  49. package/dist/sbmng/@tanstack/react-query.gen.js +19 -65
  50. package/dist/sbmng/@tanstack/react-query.gen.js.map +1 -1
  51. package/dist/sbmng/index.d.ts +2 -2
  52. package/dist/sbmng/index.d.ts.map +1 -1
  53. package/dist/sbmng/index.js +1 -1
  54. package/dist/sbmng/index.js.map +1 -1
  55. package/dist/sbmng/schemas.gen.d.ts +6 -95
  56. package/dist/sbmng/schemas.gen.d.ts.map +1 -1
  57. package/dist/sbmng/schemas.gen.js +7 -139
  58. package/dist/sbmng/schemas.gen.js.map +1 -1
  59. package/dist/sbmng/sdk.gen.d.ts +7 -17
  60. package/dist/sbmng/sdk.gen.d.ts.map +1 -1
  61. package/dist/sbmng/sdk.gen.js +10 -32
  62. package/dist/sbmng/sdk.gen.js.map +1 -1
  63. package/dist/sbmng/types.gen.d.ts +41 -157
  64. package/dist/sbmng/types.gen.d.ts.map +1 -1
  65. package/dist/supabase/supabase-client.d.ts +85 -181
  66. package/dist/supabase/supabase-client.d.ts.map +1 -1
  67. package/dist/supabase/supabase.d.ts +170 -362
  68. package/dist/supabase/supabase.d.ts.map +1 -1
  69. package/dist/supabase/use-sb-query/build-query-opts.d.ts +6 -2
  70. package/dist/supabase/use-sb-query/build-query-opts.d.ts.map +1 -1
  71. package/dist/supabase/use-sb-query/build-query-opts.js +8 -4
  72. package/dist/supabase/use-sb-query/build-query-opts.js.map +1 -1
  73. package/dist/supabase/use-sb-query/use-query.d.ts +9 -6
  74. package/dist/supabase/use-sb-query/use-query.d.ts.map +1 -1
  75. package/dist/supabase/use-sb-query/use-query.js.map +1 -1
  76. package/dist/supabase/use-sb-query/use-rpc-query.d.ts +25 -17
  77. package/dist/supabase/use-sb-query/use-rpc-query.d.ts.map +1 -1
  78. package/dist/supabase/use-sb-query/use-rpc-query.js +48 -26
  79. package/dist/supabase/use-sb-query/use-rpc-query.js.map +1 -1
  80. package/dist/types/database.schemas.d.ts +129 -222
  81. package/dist/types/database.schemas.d.ts.map +1 -1
  82. package/dist/types/database.schemas.js +112 -124
  83. package/dist/types/database.schemas.js.map +1 -1
  84. package/dist/types/database.types.d.ts +85 -181
  85. package/dist/types/database.types.d.ts.map +1 -1
  86. package/dist/types/database.types.js.map +1 -1
  87. package/dist/types/index.d.ts +30 -59
  88. package/dist/types/index.d.ts.map +1 -1
  89. package/dist/types/index.js +16 -3
  90. package/dist/types/index.js.map +1 -1
  91. package/package.json +105 -110
  92. package/src/cloud-account/platform-configs.ts +73 -73
  93. package/src/gomtmapi/@tanstack/react-query.gen.ts +537 -575
  94. package/src/gomtmapi/client/client.gen.ts +311 -311
  95. package/src/gomtmapi/client/index.ts +25 -25
  96. package/src/gomtmapi/client/types.gen.ts +241 -241
  97. package/src/gomtmapi/client/utils.gen.ts +332 -332
  98. package/src/gomtmapi/client.gen.ts +16 -16
  99. package/src/gomtmapi/core/auth.gen.ts +42 -42
  100. package/src/gomtmapi/core/bodySerializer.gen.ts +100 -100
  101. package/src/gomtmapi/core/params.gen.ts +176 -176
  102. package/src/gomtmapi/core/pathSerializer.gen.ts +181 -181
  103. package/src/gomtmapi/core/queryKeySerializer.gen.ts +136 -136
  104. package/src/gomtmapi/core/serverSentEvents.gen.ts +266 -266
  105. package/src/gomtmapi/core/types.gen.ts +118 -118
  106. package/src/gomtmapi/core/utils.gen.ts +143 -143
  107. package/src/gomtmapi/index.ts +4 -4
  108. package/src/gomtmapi/schemas.gen.ts +532 -596
  109. package/src/gomtmapi/sdk.gen.ts +371 -399
  110. package/src/gomtmapi/types.gen.ts +854 -962
  111. package/src/gomtmapi/zod.gen.ts +448 -507
  112. package/src/index.ts +4 -5
  113. package/src/lib/aisdk/types.ts +7 -7
  114. package/src/lib/logger/index.ts +8 -8
  115. package/src/lib/schema.ts +37 -50
  116. package/src/mtgate_api/client/client.gen.ts +311 -311
  117. package/src/mtgate_api/client/index.ts +25 -25
  118. package/src/mtgate_api/client/types.gen.ts +241 -241
  119. package/src/mtgate_api/client/utils.gen.ts +332 -332
  120. package/src/mtgate_api/client.gen.ts +16 -16
  121. package/src/mtgate_api/core/auth.gen.ts +42 -42
  122. package/src/mtgate_api/core/bodySerializer.gen.ts +100 -100
  123. package/src/mtgate_api/core/params.gen.ts +176 -176
  124. package/src/mtgate_api/core/pathSerializer.gen.ts +181 -181
  125. package/src/mtgate_api/core/queryKeySerializer.gen.ts +136 -136
  126. package/src/mtgate_api/core/serverSentEvents.gen.ts +266 -266
  127. package/src/mtgate_api/core/types.gen.ts +118 -118
  128. package/src/mtgate_api/core/utils.gen.ts +143 -143
  129. package/src/mtgate_api/index.ts +4 -4
  130. package/src/mtgate_api/sdk.gen.ts +17 -54
  131. package/src/mtgate_api/types.gen.ts +5 -239
  132. package/src/openclaw/client-info.ts +54 -54
  133. package/src/openclaw/device-auth-utils.ts +26 -26
  134. package/src/openclaw/device-auth.ts +99 -99
  135. package/src/openclaw/device-identity.ts +108 -108
  136. package/src/openclaw/gateway.ts +392 -392
  137. package/src/openclaw/types.ts +518 -518
  138. package/src/sbmng/@tanstack/react-query.gen.ts +2967 -3017
  139. package/src/sbmng/client/client.gen.ts +311 -311
  140. package/src/sbmng/client/index.ts +25 -25
  141. package/src/sbmng/client/types.gen.ts +241 -241
  142. package/src/sbmng/client/utils.gen.ts +332 -332
  143. package/src/sbmng/client.gen.ts +16 -16
  144. package/src/sbmng/core/auth.gen.ts +42 -42
  145. package/src/sbmng/core/bodySerializer.gen.ts +100 -100
  146. package/src/sbmng/core/params.gen.ts +176 -176
  147. package/src/sbmng/core/pathSerializer.gen.ts +181 -181
  148. package/src/sbmng/core/queryKeySerializer.gen.ts +136 -136
  149. package/src/sbmng/core/serverSentEvents.gen.ts +266 -266
  150. package/src/sbmng/core/types.gen.ts +118 -118
  151. package/src/sbmng/core/utils.gen.ts +143 -143
  152. package/src/sbmng/index.ts +4 -4
  153. package/src/sbmng/schemas.gen.ts +9671 -9805
  154. package/src/sbmng/sdk.gen.ts +1755 -1780
  155. package/src/sbmng/types.gen.ts +7886 -8016
  156. package/src/supabase/auth-provider.tsx +67 -67
  157. package/src/supabase/context.tsx +51 -51
  158. package/src/supabase/cursor-pagination.ts +155 -155
  159. package/src/supabase/schema/browser.ts +44 -44
  160. package/src/supabase/schema/index.ts +25 -25
  161. package/src/supabase/supabase-client.ts +30 -30
  162. package/src/supabase/supabase.ts +67 -67
  163. package/src/supabase/use-sb-query/build-query-opts.ts +68 -56
  164. package/src/supabase/use-sb-query/key.ts +57 -57
  165. package/src/supabase/use-sb-query/use-query.ts +352 -340
  166. package/src/supabase/use-sb-query/use-rpc-mutation.ts +83 -83
  167. package/src/supabase/use-sb-query/use-rpc-query.ts +267 -231
  168. package/src/supabase/utils.ts +75 -75
  169. package/src/types/database.schemas.ts +4359 -4378
  170. package/src/types/database.types.ts +4182 -4288
  171. package/src/types/index.ts +85 -102
  172. package/dist/adk/api/client.d.ts +0 -9
  173. package/dist/adk/api/client.d.ts.map +0 -1
  174. package/dist/adk/api/client.js +0 -39
  175. package/dist/adk/api/client.js.map +0 -1
  176. package/dist/adk/core/constants/tool-icons.d.ts +0 -21
  177. package/dist/adk/core/constants/tool-icons.d.ts.map +0 -1
  178. package/dist/adk/core/constants/tool-icons.js +0 -47
  179. package/dist/adk/core/constants/tool-icons.js.map +0 -1
  180. package/dist/adk/core/models/AgentBuilder.d.ts +0 -77
  181. package/dist/adk/core/models/AgentBuilder.d.ts.map +0 -1
  182. package/dist/adk/core/models/AgentBuilder.js +0 -18
  183. package/dist/adk/core/models/AgentBuilder.js.map +0 -1
  184. package/dist/adk/core/models/AgentRunRequest.d.ts +0 -37
  185. package/dist/adk/core/models/AgentRunRequest.d.ts.map +0 -1
  186. package/dist/adk/core/models/AgentRunRequest.js +0 -18
  187. package/dist/adk/core/models/AgentRunRequest.js.map +0 -1
  188. package/dist/adk/core/models/Eval.d.ts +0 -55
  189. package/dist/adk/core/models/Eval.d.ts.map +0 -1
  190. package/dist/adk/core/models/Eval.js +0 -27
  191. package/dist/adk/core/models/Eval.js.map +0 -1
  192. package/dist/adk/core/models/LiveRequest.d.ts +0 -23
  193. package/dist/adk/core/models/LiveRequest.d.ts.map +0 -1
  194. package/dist/adk/core/models/LiveRequest.js +0 -18
  195. package/dist/adk/core/models/LiveRequest.js.map +0 -1
  196. package/dist/adk/core/models/RuntimeConfig.d.ts +0 -32
  197. package/dist/adk/core/models/RuntimeConfig.d.ts.map +0 -1
  198. package/dist/adk/core/models/RuntimeConfig.js +0 -18
  199. package/dist/adk/core/models/RuntimeConfig.js.map +0 -1
  200. package/dist/adk/core/models/Session.d.ts +0 -117
  201. package/dist/adk/core/models/Session.d.ts.map +0 -1
  202. package/dist/adk/core/models/Session.js +0 -31
  203. package/dist/adk/core/models/Session.js.map +0 -1
  204. package/dist/adk/core/models/Trace.d.ts +0 -40
  205. package/dist/adk/core/models/Trace.d.ts.map +0 -1
  206. package/dist/adk/core/models/Trace.js +0 -2
  207. package/dist/adk/core/models/Trace.js.map +0 -1
  208. package/dist/adk/core/models/types.d.ts +0 -338
  209. package/dist/adk/core/models/types.d.ts.map +0 -1
  210. package/dist/adk/core/models/types.js +0 -189
  211. package/dist/adk/core/models/types.js.map +0 -1
  212. package/dist/lib/utils.d.ts +0 -14
  213. package/dist/lib/utils.d.ts.map +0 -1
  214. package/dist/lib/utils.js +0 -45
  215. package/dist/lib/utils.js.map +0 -1
  216. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +0 -166
  217. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +0 -1
  218. package/dist/mtgate_api/@tanstack/react-query.gen.js +0 -118
  219. package/dist/mtgate_api/@tanstack/react-query.gen.js.map +0 -1
  220. package/dist/mtgate_api/schemas.gen.d.ts +0 -233
  221. package/dist/mtgate_api/schemas.gen.d.ts.map +0 -1
  222. package/dist/mtgate_api/schemas.gen.js +0 -277
  223. package/dist/mtgate_api/schemas.gen.js.map +0 -1
  224. package/dist/mtgate_api/zod.gen.d.ts +0 -321
  225. package/dist/mtgate_api/zod.gen.d.ts.map +0 -1
  226. package/dist/mtgate_api/zod.gen.js +0 -148
  227. package/dist/mtgate_api/zod.gen.js.map +0 -1
  228. package/dist/mtmai_api/@tanstack/react-query.gen.d.ts +0 -949
  229. package/dist/mtmai_api/@tanstack/react-query.gen.d.ts.map +0 -1
  230. package/dist/mtmai_api/@tanstack/react-query.gen.js +0 -917
  231. package/dist/mtmai_api/@tanstack/react-query.gen.js.map +0 -1
  232. package/dist/mtmai_api/client/client.gen.d.ts +0 -3
  233. package/dist/mtmai_api/client/client.gen.d.ts.map +0 -1
  234. package/dist/mtmai_api/client/client.gen.js +0 -236
  235. package/dist/mtmai_api/client/client.gen.js.map +0 -1
  236. package/dist/mtmai_api/client/index.d.ts +0 -9
  237. package/dist/mtmai_api/client/index.d.ts.map +0 -1
  238. package/dist/mtmai_api/client/index.js +0 -7
  239. package/dist/mtmai_api/client/index.js.map +0 -1
  240. package/dist/mtmai_api/client/types.gen.d.ts +0 -118
  241. package/dist/mtmai_api/client/types.gen.d.ts.map +0 -1
  242. package/dist/mtmai_api/client/types.gen.js +0 -3
  243. package/dist/mtmai_api/client/types.gen.js.map +0 -1
  244. package/dist/mtmai_api/client/utils.gen.d.ts +0 -34
  245. package/dist/mtmai_api/client/utils.gen.d.ts.map +0 -1
  246. package/dist/mtmai_api/client/utils.gen.js +0 -232
  247. package/dist/mtmai_api/client/utils.gen.js.map +0 -1
  248. package/dist/mtmai_api/client.gen.d.ts +0 -13
  249. package/dist/mtmai_api/client.gen.d.ts.map +0 -1
  250. package/dist/mtmai_api/client.gen.js +0 -4
  251. package/dist/mtmai_api/client.gen.js.map +0 -1
  252. package/dist/mtmai_api/core/auth.gen.d.ts +0 -19
  253. package/dist/mtmai_api/core/auth.gen.d.ts.map +0 -1
  254. package/dist/mtmai_api/core/auth.gen.js +0 -15
  255. package/dist/mtmai_api/core/auth.gen.js.map +0 -1
  256. package/dist/mtmai_api/core/bodySerializer.gen.d.ts +0 -26
  257. package/dist/mtmai_api/core/bodySerializer.gen.d.ts.map +0 -1
  258. package/dist/mtmai_api/core/bodySerializer.gen.js +0 -58
  259. package/dist/mtmai_api/core/bodySerializer.gen.js.map +0 -1
  260. package/dist/mtmai_api/core/params.gen.d.ts +0 -44
  261. package/dist/mtmai_api/core/params.gen.d.ts.map +0 -1
  262. package/dist/mtmai_api/core/params.gen.js +0 -101
  263. package/dist/mtmai_api/core/params.gen.js.map +0 -1
  264. package/dist/mtmai_api/core/pathSerializer.gen.d.ts +0 -34
  265. package/dist/mtmai_api/core/pathSerializer.gen.d.ts.map +0 -1
  266. package/dist/mtmai_api/core/pathSerializer.gen.js +0 -115
  267. package/dist/mtmai_api/core/pathSerializer.gen.js.map +0 -1
  268. package/dist/mtmai_api/core/queryKeySerializer.gen.d.ts +0 -19
  269. package/dist/mtmai_api/core/queryKeySerializer.gen.d.ts.map +0 -1
  270. package/dist/mtmai_api/core/queryKeySerializer.gen.js +0 -100
  271. package/dist/mtmai_api/core/queryKeySerializer.gen.js.map +0 -1
  272. package/dist/mtmai_api/core/serverSentEvents.gen.d.ts +0 -72
  273. package/dist/mtmai_api/core/serverSentEvents.gen.d.ts.map +0 -1
  274. package/dist/mtmai_api/core/serverSentEvents.gen.js +0 -138
  275. package/dist/mtmai_api/core/serverSentEvents.gen.js.map +0 -1
  276. package/dist/mtmai_api/core/types.gen.d.ts +0 -79
  277. package/dist/mtmai_api/core/types.gen.d.ts.map +0 -1
  278. package/dist/mtmai_api/core/types.gen.js +0 -3
  279. package/dist/mtmai_api/core/types.gen.js.map +0 -1
  280. package/dist/mtmai_api/core/utils.gen.d.ts +0 -20
  281. package/dist/mtmai_api/core/utils.gen.d.ts.map +0 -1
  282. package/dist/mtmai_api/core/utils.gen.js +0 -88
  283. package/dist/mtmai_api/core/utils.gen.js.map +0 -1
  284. package/dist/mtmai_api/index.d.ts +0 -3
  285. package/dist/mtmai_api/index.d.ts.map +0 -1
  286. package/dist/mtmai_api/index.js +0 -4
  287. package/dist/mtmai_api/index.js.map +0 -1
  288. package/dist/mtmai_api/schemas.gen.d.ts +0 -7721
  289. package/dist/mtmai_api/schemas.gen.d.ts.map +0 -1
  290. package/dist/mtmai_api/schemas.gen.js +0 -9774
  291. package/dist/mtmai_api/schemas.gen.js.map +0 -1
  292. package/dist/mtmai_api/sdk.gen.d.ts +0 -282
  293. package/dist/mtmai_api/sdk.gen.d.ts.map +0 -1
  294. package/dist/mtmai_api/sdk.gen.js +0 -404
  295. package/dist/mtmai_api/sdk.gen.js.map +0 -1
  296. package/dist/mtmai_api/types.gen.d.ts +0 -7152
  297. package/dist/mtmai_api/types.gen.d.ts.map +0 -1
  298. package/dist/mtmai_api/types.gen.js +0 -253
  299. package/dist/mtmai_api/types.gen.js.map +0 -1
  300. package/dist/mtmai_api/zod.gen.d.ts +0 -55827
  301. package/dist/mtmai_api/zod.gen.d.ts.map +0 -1
  302. package/dist/mtmai_api/zod.gen.js +0 -4805
  303. package/dist/mtmai_api/zod.gen.js.map +0 -1
  304. package/dist/supabase/use-sb-query/prefetch.d.ts +0 -10
  305. package/dist/supabase/use-sb-query/prefetch.d.ts.map +0 -1
  306. package/dist/supabase/use-sb-query/prefetch.js +0 -14
  307. package/dist/supabase/use-sb-query/prefetch.js.map +0 -1
  308. package/src/adk/api/client.ts +0 -46
  309. package/src/adk/core/constants/tool-icons.ts +0 -51
  310. package/src/adk/core/models/AgentBuilder.ts +0 -80
  311. package/src/adk/core/models/AgentRunRequest.ts +0 -33
  312. package/src/adk/core/models/Eval.ts +0 -70
  313. package/src/adk/core/models/LiveRequest.ts +0 -23
  314. package/src/adk/core/models/RuntimeConfig.ts +0 -33
  315. package/src/adk/core/models/Session.ts +0 -52
  316. package/src/adk/core/models/Trace.ts +0 -42
  317. package/src/adk/core/models/types.ts +0 -255
  318. package/src/lib/utils.ts +0 -54
  319. package/src/mtgate_api/@tanstack/react-query.gen.ts +0 -142
  320. package/src/mtgate_api/schemas.gen.ts +0 -290
  321. package/src/mtgate_api/zod.gen.ts +0 -176
  322. package/src/mtmai_api/@tanstack/react-query.gen.ts +0 -1010
  323. package/src/mtmai_api/client/client.gen.ts +0 -311
  324. package/src/mtmai_api/client/index.ts +0 -25
  325. package/src/mtmai_api/client/types.gen.ts +0 -241
  326. package/src/mtmai_api/client/utils.gen.ts +0 -332
  327. package/src/mtmai_api/client.gen.ts +0 -16
  328. package/src/mtmai_api/core/auth.gen.ts +0 -42
  329. package/src/mtmai_api/core/bodySerializer.gen.ts +0 -100
  330. package/src/mtmai_api/core/params.gen.ts +0 -176
  331. package/src/mtmai_api/core/pathSerializer.gen.ts +0 -181
  332. package/src/mtmai_api/core/queryKeySerializer.gen.ts +0 -136
  333. package/src/mtmai_api/core/serverSentEvents.gen.ts +0 -266
  334. package/src/mtmai_api/core/types.gen.ts +0 -118
  335. package/src/mtmai_api/core/utils.gen.ts +0 -143
  336. package/src/mtmai_api/index.ts +0 -4
  337. package/src/mtmai_api/schemas.gen.ts +0 -9980
  338. package/src/mtmai_api/sdk.gen.ts +0 -471
  339. package/src/mtmai_api/types.gen.ts +0 -7609
  340. package/src/mtmai_api/zod.gen.ts +0 -5101
  341. package/src/supabase/use-sb-query/prefetch.ts +0 -59
@@ -1,962 +1,854 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
-
3
- export type ClientOptions = {
4
- baseUrl: `${string}://${string}` | (string & {});
5
- };
6
-
7
- /**
8
- * AddContactRequest schema
9
- */
10
- export type AddContactRequest = {
11
- api_hash?: string;
12
- api_id?: number;
13
- first_name?: string;
14
- last_name?: string;
15
- phone: string;
16
- session_data: string;
17
- };
18
-
19
- /**
20
- * AddContactResponse schema
21
- */
22
- export type AddContactResponse = {
23
- access_hash?: number;
24
- message?: string;
25
- session_data?: string;
26
- success?: boolean;
27
- user_id?: number;
28
- };
29
-
30
- /**
31
- * AuthResponse schema
32
- */
33
- export type AuthResponse = {
34
- message?: string;
35
- result?: {
36
- [key: string]: string;
37
- };
38
- session_data?: string;
39
- success?: boolean;
40
- user_info?: {
41
- first_name?: string;
42
- id?: number;
43
- is_bot?: boolean;
44
- last_name?: string;
45
- phone?: string;
46
- username?: string;
47
- };
48
- };
49
-
50
- /**
51
- * BrowserActionReq schema
52
- */
53
- export type BrowserActionReq = {
54
- /**
55
- * navigate, click, input, wait
56
- */
57
- action: string;
58
- browser_id: string;
59
- selector?: string;
60
- text?: string;
61
- url?: string;
62
- };
63
-
64
- /**
65
- * BrowserOpenReq schema
66
- */
67
- export type BrowserOpenReq = unknown;
68
-
69
- /**
70
- * BrowserOpenResp schema
71
- */
72
- export type BrowserOpenResp = {
73
- client_action?: {
74
- [key: string]: string;
75
- };
76
- message?: string;
77
- status?: string;
78
- task_id?: string;
79
- };
80
-
81
- /**
82
- * CheckUpdateResponse schema
83
- */
84
- export type CheckUpdateResponse = {
85
- current_version?: string;
86
- latest_version?: string;
87
- update_available?: boolean;
88
- };
89
-
90
- /**
91
- * CodeRunResult schema
92
- */
93
- export type CodeRunResult = {
94
- /**
95
- * 耗时(秒)
96
- */
97
- duration?: number;
98
- /**
99
- * 进程退出码
100
- */
101
- exitCode?: number;
102
- /**
103
- * 标准错误输出
104
- */
105
- stderr?: string;
106
- /**
107
- * 标准输出
108
- */
109
- stdout?: string;
110
- };
111
-
112
- /**
113
- * HTTPError schema
114
- */
115
- export type HttpError = {
116
- /**
117
- * Human readable error message
118
- */
119
- detail?: string;
120
- errors?: Array<{
121
- /**
122
- * Additional information about the error
123
- */
124
- more?: {
125
- [key: string]: unknown;
126
- };
127
- /**
128
- * For example, name of the parameter that caused the error
129
- */
130
- name?: string;
131
- /**
132
- * Human readable error message
133
- */
134
- reason?: string;
135
- }>;
136
- instance?: string;
137
- /**
138
- * HTTP status code
139
- */
140
- status?: number;
141
- /**
142
- * Short title of the error
143
- */
144
- title?: string;
145
- /**
146
- * URL of the error type. Can be used to lookup the error in a documentation
147
- */
148
- type?: string;
149
- };
150
-
151
- /**
152
- * NapcatStatus schema
153
- */
154
- export type NapcatStatus = {
155
- config_dir?: string;
156
- data_dir?: string;
157
- is_running?: boolean;
158
- napcat_port?: number;
159
- process_id?: number;
160
- webui_port?: number;
161
- };
162
-
163
- /**
164
- * PasswordRequest schema
165
- */
166
- export type PasswordRequest = {
167
- api_hash?: string;
168
- api_id?: number;
169
- password: string;
170
- session_data?: string;
171
- };
172
-
173
- /**
174
- * PerformUpgradeRequest schema
175
- */
176
- export type PerformUpgradeRequest = {
177
- version?: string;
178
- };
179
-
180
- /**
181
- * PerformUpgradeResponse schema
182
- */
183
- export type PerformUpgradeResponse = {
184
- message?: string;
185
- status?: string;
186
- };
187
-
188
- /**
189
- * RunCodeReq schema
190
- */
191
- export type RunCodeReq = {
192
- /**
193
- * 代码类型: python | bash | sh | nodejs | browserjs
194
- */
195
- codeType: string;
196
- /**
197
- * 代码正文
198
- */
199
- content: string;
200
- /**
201
- * 环境变量
202
- */
203
- env?: {
204
- [key: string]: string;
205
- };
206
- /**
207
- * 运行超时时间(秒), 如果不填默认为60秒
208
- */
209
- timeout?: number;
210
- };
211
-
212
- /**
213
- * SendCodeRequest schema
214
- */
215
- export type SendCodeRequest = {
216
- api_hash?: string;
217
- api_id?: number;
218
- phone: string;
219
- session_data?: string;
220
- };
221
-
222
- /**
223
- * SendMessageRequest schema
224
- */
225
- export type SendMessageRequest = {
226
- access_hash?: number;
227
- api_hash?: string;
228
- api_id?: number;
229
- message: string;
230
- phone?: string;
231
- session_data: string;
232
- user_id?: number;
233
- username?: string;
234
- };
235
-
236
- /**
237
- * SendMessageResponse schema
238
- */
239
- export type SendMessageResponse = {
240
- message?: string;
241
- session_data?: string;
242
- success?: boolean;
243
- };
244
-
245
- /**
246
- * SignInRequest schema
247
- */
248
- export type SignInRequest = {
249
- api_hash?: string;
250
- api_id?: number;
251
- code: string;
252
- phone: string;
253
- phone_code_hash: string;
254
- session_data?: string;
255
- };
256
-
257
- /**
258
- * StartNapcatRequest schema
259
- */
260
- export type StartNapcatRequest = {
261
- config_dir?: string;
262
- data_dir?: string;
263
- napcat_port?: number;
264
- qq_account?: string;
265
- webui_port?: number;
266
- };
267
-
268
- /**
269
- * StatusResponse schema
270
- */
271
- export type StatusResponse = {
272
- go_version?: string;
273
- instance_id?: string;
274
- mem_alloc_mb?: number;
275
- mode?: string;
276
- num_cpu?: number;
277
- num_goroutine?: number;
278
- status?: string;
279
- uptime?: string;
280
- version?: string;
281
- };
282
-
283
- /**
284
- * UserInfoRequest schema
285
- */
286
- export type UserInfoRequest = {
287
- api_hash?: string;
288
- api_id?: number;
289
- session_data: string;
290
- };
291
-
292
- /**
293
- * string schema
294
- */
295
- export type String = string;
296
-
297
- /**
298
- * unknown-interface schema
299
- */
300
- export type UnknownInterface = unknown;
301
-
302
- export type BrowserActionData = {
303
- /**
304
- * Request body for browser.BrowserActionReq
305
- */
306
- body: BrowserActionReq;
307
- headers?: {
308
- Accept?: string;
309
- };
310
- path?: never;
311
- query?: never;
312
- url: '/api/browser/action';
313
- };
314
-
315
- export type BrowserActionErrors = {
316
- /**
317
- * Bad Request _(validation or deserialization error)_
318
- */
319
- 400: HttpError;
320
- /**
321
- * Internal Server Error _(panics)_
322
- */
323
- 500: HttpError;
324
- default: unknown;
325
- };
326
-
327
- export type BrowserActionError = BrowserActionErrors[keyof BrowserActionErrors];
328
-
329
- export type BrowserActionResponses = {
330
- /**
331
- * OK
332
- */
333
- 200: String;
334
- };
335
-
336
- export type BrowserActionResponse = BrowserActionResponses[keyof BrowserActionResponses];
337
-
338
- export type BrowserOpenData = {
339
- /**
340
- * Request body for browser.BrowserOpenReq
341
- */
342
- body: BrowserOpenReq;
343
- headers?: {
344
- Accept?: string;
345
- };
346
- path?: never;
347
- query?: never;
348
- url: '/api/browser/open';
349
- };
350
-
351
- export type BrowserOpenErrors = {
352
- /**
353
- * Bad Request _(validation or deserialization error)_
354
- */
355
- 400: HttpError;
356
- /**
357
- * Internal Server Error _(panics)_
358
- */
359
- 500: HttpError;
360
- default: unknown;
361
- };
362
-
363
- export type BrowserOpenError = BrowserOpenErrors[keyof BrowserOpenErrors];
364
-
365
- export type BrowserOpenResponses = {
366
- /**
367
- * OK
368
- */
369
- 200: BrowserOpenResp;
370
- };
371
-
372
- export type BrowserOpenResponse = BrowserOpenResponses[keyof BrowserOpenResponses];
373
-
374
- export type CodeRunData = {
375
- /**
376
- * Request body for code.RunCodeReq
377
- */
378
- body: RunCodeReq;
379
- headers?: {
380
- Accept?: string;
381
- };
382
- path?: never;
383
- query?: never;
384
- url: '/api/code/run';
385
- };
386
-
387
- export type CodeRunErrors = {
388
- /**
389
- * Bad Request _(validation or deserialization error)_
390
- */
391
- 400: HttpError;
392
- /**
393
- * Internal Server Error _(panics)_
394
- */
395
- 500: HttpError;
396
- default: unknown;
397
- };
398
-
399
- export type CodeRunError = CodeRunErrors[keyof CodeRunErrors];
400
-
401
- export type CodeRunResponses = {
402
- /**
403
- * OK
404
- */
405
- 200: CodeRunResult;
406
- };
407
-
408
- export type CodeRunResponse = CodeRunResponses[keyof CodeRunResponses];
409
-
410
- export type PostApiDbQueryQueryData = {
411
- body?: never;
412
- path?: never;
413
- query?: {
414
- /**
415
- * 输出格式: table|full|json|raw
416
- */
417
- format?: string;
418
- };
419
- url: '/api/db_query/query';
420
- };
421
-
422
- export type PostApiDbQueryQueryErrors = {
423
- /**
424
- * Bad Request _(validation or deserialization error)_
425
- */
426
- 400: HttpError;
427
- /**
428
- * Internal Server Error _(panics)_
429
- */
430
- 500: HttpError;
431
- default: unknown;
432
- };
433
-
434
- export type PostApiDbQueryQueryError = PostApiDbQueryQueryErrors[keyof PostApiDbQueryQueryErrors];
435
-
436
- export type PostApiDbQueryQueryResponses = {
437
- /**
438
- * OK
439
- */
440
- 200: UnknownInterface;
441
- };
442
-
443
- export type PostApiDbQueryQueryResponse = PostApiDbQueryQueryResponses[keyof PostApiDbQueryQueryResponses];
444
-
445
- export type NapcatStartData = {
446
- /**
447
- * Request body for napcat.StartNapcatRequest
448
- */
449
- body: StartNapcatRequest;
450
- headers?: {
451
- Accept?: string;
452
- };
453
- path?: never;
454
- query?: never;
455
- url: '/api/napcat/start';
456
- };
457
-
458
- export type NapcatStartErrors = {
459
- /**
460
- * Bad Request _(validation or deserialization error)_
461
- */
462
- 400: HttpError;
463
- /**
464
- * Internal Server Error _(panics)_
465
- */
466
- 500: HttpError;
467
- default: unknown;
468
- };
469
-
470
- export type NapcatStartError = NapcatStartErrors[keyof NapcatStartErrors];
471
-
472
- export type NapcatStartResponses = {
473
- /**
474
- * OK
475
- */
476
- 200: NapcatStatus;
477
- };
478
-
479
- export type NapcatStartResponse = NapcatStartResponses[keyof NapcatStartResponses];
480
-
481
- export type NapcatGetStatusData = {
482
- body?: never;
483
- headers?: {
484
- Accept?: string;
485
- };
486
- path?: never;
487
- query?: never;
488
- url: '/api/napcat/status';
489
- };
490
-
491
- export type NapcatGetStatusErrors = {
492
- /**
493
- * Bad Request _(validation or deserialization error)_
494
- */
495
- 400: HttpError;
496
- /**
497
- * Internal Server Error _(panics)_
498
- */
499
- 500: HttpError;
500
- default: unknown;
501
- };
502
-
503
- export type NapcatGetStatusError = NapcatGetStatusErrors[keyof NapcatGetStatusErrors];
504
-
505
- export type NapcatGetStatusResponses = {
506
- /**
507
- * OK
508
- */
509
- 200: NapcatStatus;
510
- };
511
-
512
- export type NapcatGetStatusResponse = NapcatGetStatusResponses[keyof NapcatGetStatusResponses];
513
-
514
- export type NapcatProxyOneBot11GetData = {
515
- body?: never;
516
- headers?: {
517
- Accept?: string;
518
- };
519
- path?: never;
520
- query?: never;
521
- url: '/api/onebot11/*';
522
- };
523
-
524
- export type NapcatProxyOneBot11GetErrors = {
525
- /**
526
- * Bad Request _(validation or deserialization error)_
527
- */
528
- 400: HttpError;
529
- /**
530
- * Internal Server Error _(panics)_
531
- */
532
- 500: HttpError;
533
- default: unknown;
534
- };
535
-
536
- export type NapcatProxyOneBot11GetError = NapcatProxyOneBot11GetErrors[keyof NapcatProxyOneBot11GetErrors];
537
-
538
- export type NapcatProxyOneBot11GetResponses = {
539
- /**
540
- * OK
541
- */
542
- 200: UnknownInterface;
543
- };
544
-
545
- export type NapcatProxyOneBot11GetResponse = NapcatProxyOneBot11GetResponses[keyof NapcatProxyOneBot11GetResponses];
546
-
547
- export type NapcatProxyOneBot11PostData = {
548
- body?: never;
549
- headers?: {
550
- Accept?: string;
551
- };
552
- path?: never;
553
- query?: never;
554
- url: '/api/onebot11/*';
555
- };
556
-
557
- export type NapcatProxyOneBot11PostErrors = {
558
- /**
559
- * Bad Request _(validation or deserialization error)_
560
- */
561
- 400: HttpError;
562
- /**
563
- * Internal Server Error _(panics)_
564
- */
565
- 500: HttpError;
566
- default: unknown;
567
- };
568
-
569
- export type NapcatProxyOneBot11PostError = NapcatProxyOneBot11PostErrors[keyof NapcatProxyOneBot11PostErrors];
570
-
571
- export type NapcatProxyOneBot11PostResponses = {
572
- /**
573
- * OK
574
- */
575
- 200: UnknownInterface;
576
- };
577
-
578
- export type NapcatProxyOneBot11PostResponse = NapcatProxyOneBot11PostResponses[keyof NapcatProxyOneBot11PostResponses];
579
-
580
- export type PostApiSystemCheckUpdateData = {
581
- body?: never;
582
- headers?: {
583
- Accept?: string;
584
- };
585
- path?: never;
586
- query?: never;
587
- url: '/api/system/check_update';
588
- };
589
-
590
- export type PostApiSystemCheckUpdateErrors = {
591
- /**
592
- * Bad Request _(validation or deserialization error)_
593
- */
594
- 400: HttpError;
595
- /**
596
- * Internal Server Error _(panics)_
597
- */
598
- 500: HttpError;
599
- default: unknown;
600
- };
601
-
602
- export type PostApiSystemCheckUpdateError = PostApiSystemCheckUpdateErrors[keyof PostApiSystemCheckUpdateErrors];
603
-
604
- export type PostApiSystemCheckUpdateResponses = {
605
- /**
606
- * OK
607
- */
608
- 200: CheckUpdateResponse;
609
- };
610
-
611
- export type PostApiSystemCheckUpdateResponse = PostApiSystemCheckUpdateResponses[keyof PostApiSystemCheckUpdateResponses];
612
-
613
- export type PostApiSystemPerformUpgradeData = {
614
- /**
615
- * Request body for system.PerformUpgradeRequest
616
- */
617
- body: PerformUpgradeRequest;
618
- headers?: {
619
- Accept?: string;
620
- };
621
- path?: never;
622
- query?: never;
623
- url: '/api/system/perform_upgrade';
624
- };
625
-
626
- export type PostApiSystemPerformUpgradeErrors = {
627
- /**
628
- * Bad Request _(validation or deserialization error)_
629
- */
630
- 400: HttpError;
631
- /**
632
- * Internal Server Error _(panics)_
633
- */
634
- 500: HttpError;
635
- default: unknown;
636
- };
637
-
638
- export type PostApiSystemPerformUpgradeError = PostApiSystemPerformUpgradeErrors[keyof PostApiSystemPerformUpgradeErrors];
639
-
640
- export type PostApiSystemPerformUpgradeResponses = {
641
- /**
642
- * OK
643
- */
644
- 200: PerformUpgradeResponse;
645
- };
646
-
647
- export type PostApiSystemPerformUpgradeResponse = PostApiSystemPerformUpgradeResponses[keyof PostApiSystemPerformUpgradeResponses];
648
-
649
- export type GetApiSystemStatusData = {
650
- body?: never;
651
- headers?: {
652
- Accept?: string;
653
- };
654
- path?: never;
655
- query?: never;
656
- url: '/api/system/status';
657
- };
658
-
659
- export type GetApiSystemStatusErrors = {
660
- /**
661
- * Bad Request _(validation or deserialization error)_
662
- */
663
- 400: HttpError;
664
- /**
665
- * Internal Server Error _(panics)_
666
- */
667
- 500: HttpError;
668
- default: unknown;
669
- };
670
-
671
- export type GetApiSystemStatusError = GetApiSystemStatusErrors[keyof GetApiSystemStatusErrors];
672
-
673
- export type GetApiSystemStatusResponses = {
674
- /**
675
- * OK
676
- */
677
- 200: StatusResponse;
678
- };
679
-
680
- export type GetApiSystemStatusResponse = GetApiSystemStatusResponses[keyof GetApiSystemStatusResponses];
681
-
682
- export type PostApiV1TelegramAuthPasswordData = {
683
- /**
684
- * Request body for telegram.PasswordRequest
685
- */
686
- body: PasswordRequest;
687
- headers?: {
688
- Accept?: string;
689
- };
690
- path?: never;
691
- query?: never;
692
- url: '/api/v1/telegram/auth/password';
693
- };
694
-
695
- export type PostApiV1TelegramAuthPasswordErrors = {
696
- /**
697
- * Bad Request _(validation or deserialization error)_
698
- */
699
- 400: HttpError;
700
- /**
701
- * Internal Server Error _(panics)_
702
- */
703
- 500: HttpError;
704
- default: unknown;
705
- };
706
-
707
- export type PostApiV1TelegramAuthPasswordError = PostApiV1TelegramAuthPasswordErrors[keyof PostApiV1TelegramAuthPasswordErrors];
708
-
709
- export type PostApiV1TelegramAuthPasswordResponses = {
710
- /**
711
- * OK
712
- */
713
- 200: AuthResponse;
714
- };
715
-
716
- export type PostApiV1TelegramAuthPasswordResponse = PostApiV1TelegramAuthPasswordResponses[keyof PostApiV1TelegramAuthPasswordResponses];
717
-
718
- export type PostApiV1TelegramAuthSendCodeData = {
719
- /**
720
- * Request body for telegram.SendCodeRequest
721
- */
722
- body: SendCodeRequest;
723
- headers?: {
724
- Accept?: string;
725
- };
726
- path?: never;
727
- query?: never;
728
- url: '/api/v1/telegram/auth/send-code';
729
- };
730
-
731
- export type PostApiV1TelegramAuthSendCodeErrors = {
732
- /**
733
- * Bad Request _(validation or deserialization error)_
734
- */
735
- 400: HttpError;
736
- /**
737
- * Internal Server Error _(panics)_
738
- */
739
- 500: HttpError;
740
- default: unknown;
741
- };
742
-
743
- export type PostApiV1TelegramAuthSendCodeError = PostApiV1TelegramAuthSendCodeErrors[keyof PostApiV1TelegramAuthSendCodeErrors];
744
-
745
- export type PostApiV1TelegramAuthSendCodeResponses = {
746
- /**
747
- * OK
748
- */
749
- 200: AuthResponse;
750
- };
751
-
752
- export type PostApiV1TelegramAuthSendCodeResponse = PostApiV1TelegramAuthSendCodeResponses[keyof PostApiV1TelegramAuthSendCodeResponses];
753
-
754
- export type PostApiV1TelegramAuthSignInData = {
755
- /**
756
- * Request body for telegram.SignInRequest
757
- */
758
- body: SignInRequest;
759
- headers?: {
760
- Accept?: string;
761
- };
762
- path?: never;
763
- query?: never;
764
- url: '/api/v1/telegram/auth/sign-in';
765
- };
766
-
767
- export type PostApiV1TelegramAuthSignInErrors = {
768
- /**
769
- * Bad Request _(validation or deserialization error)_
770
- */
771
- 400: HttpError;
772
- /**
773
- * Internal Server Error _(panics)_
774
- */
775
- 500: HttpError;
776
- default: unknown;
777
- };
778
-
779
- export type PostApiV1TelegramAuthSignInError = PostApiV1TelegramAuthSignInErrors[keyof PostApiV1TelegramAuthSignInErrors];
780
-
781
- export type PostApiV1TelegramAuthSignInResponses = {
782
- /**
783
- * OK
784
- */
785
- 200: AuthResponse;
786
- };
787
-
788
- export type PostApiV1TelegramAuthSignInResponse = PostApiV1TelegramAuthSignInResponses[keyof PostApiV1TelegramAuthSignInResponses];
789
-
790
- export type PostApiV1TelegramAuthUserInfoData = {
791
- /**
792
- * Request body for telegram.UserInfoRequest
793
- */
794
- body: UserInfoRequest;
795
- headers?: {
796
- Accept?: string;
797
- };
798
- path?: never;
799
- query?: never;
800
- url: '/api/v1/telegram/auth/user-info';
801
- };
802
-
803
- export type PostApiV1TelegramAuthUserInfoErrors = {
804
- /**
805
- * Bad Request _(validation or deserialization error)_
806
- */
807
- 400: HttpError;
808
- /**
809
- * Internal Server Error _(panics)_
810
- */
811
- 500: HttpError;
812
- default: unknown;
813
- };
814
-
815
- export type PostApiV1TelegramAuthUserInfoError = PostApiV1TelegramAuthUserInfoErrors[keyof PostApiV1TelegramAuthUserInfoErrors];
816
-
817
- export type PostApiV1TelegramAuthUserInfoResponses = {
818
- /**
819
- * OK
820
- */
821
- 200: AuthResponse;
822
- };
823
-
824
- export type PostApiV1TelegramAuthUserInfoResponse = PostApiV1TelegramAuthUserInfoResponses[keyof PostApiV1TelegramAuthUserInfoResponses];
825
-
826
- export type PostApiV1TelegramContactAddData = {
827
- /**
828
- * Request body for telegram.AddContactRequest
829
- */
830
- body: AddContactRequest;
831
- headers?: {
832
- Accept?: string;
833
- };
834
- path?: never;
835
- query?: never;
836
- url: '/api/v1/telegram/contact/add';
837
- };
838
-
839
- export type PostApiV1TelegramContactAddErrors = {
840
- /**
841
- * Bad Request _(validation or deserialization error)_
842
- */
843
- 400: HttpError;
844
- /**
845
- * Internal Server Error _(panics)_
846
- */
847
- 500: HttpError;
848
- default: unknown;
849
- };
850
-
851
- export type PostApiV1TelegramContactAddError = PostApiV1TelegramContactAddErrors[keyof PostApiV1TelegramContactAddErrors];
852
-
853
- export type PostApiV1TelegramContactAddResponses = {
854
- /**
855
- * OK
856
- */
857
- 200: AddContactResponse;
858
- };
859
-
860
- export type PostApiV1TelegramContactAddResponse = PostApiV1TelegramContactAddResponses[keyof PostApiV1TelegramContactAddResponses];
861
-
862
- export type PostApiV1TelegramMessageSendData = {
863
- /**
864
- * Request body for telegram.SendMessageRequest
865
- */
866
- body: SendMessageRequest;
867
- headers?: {
868
- Accept?: string;
869
- };
870
- path?: never;
871
- query?: never;
872
- url: '/api/v1/telegram/message/send';
873
- };
874
-
875
- export type PostApiV1TelegramMessageSendErrors = {
876
- /**
877
- * Bad Request _(validation or deserialization error)_
878
- */
879
- 400: HttpError;
880
- /**
881
- * Internal Server Error _(panics)_
882
- */
883
- 500: HttpError;
884
- default: unknown;
885
- };
886
-
887
- export type PostApiV1TelegramMessageSendError = PostApiV1TelegramMessageSendErrors[keyof PostApiV1TelegramMessageSendErrors];
888
-
889
- export type PostApiV1TelegramMessageSendResponses = {
890
- /**
891
- * OK
892
- */
893
- 200: SendMessageResponse;
894
- };
895
-
896
- export type PostApiV1TelegramMessageSendResponse = PostApiV1TelegramMessageSendResponses[keyof PostApiV1TelegramMessageSendResponses];
897
-
898
- export type NapcatProxyWebUigetData = {
899
- body?: never;
900
- headers?: {
901
- Accept?: string;
902
- };
903
- path?: never;
904
- query?: never;
905
- url: '/api/webui/*';
906
- };
907
-
908
- export type NapcatProxyWebUigetErrors = {
909
- /**
910
- * Bad Request _(validation or deserialization error)_
911
- */
912
- 400: HttpError;
913
- /**
914
- * Internal Server Error _(panics)_
915
- */
916
- 500: HttpError;
917
- default: unknown;
918
- };
919
-
920
- export type NapcatProxyWebUigetError = NapcatProxyWebUigetErrors[keyof NapcatProxyWebUigetErrors];
921
-
922
- export type NapcatProxyWebUigetResponses = {
923
- /**
924
- * OK
925
- */
926
- 200: UnknownInterface;
927
- };
928
-
929
- export type NapcatProxyWebUigetResponse = NapcatProxyWebUigetResponses[keyof NapcatProxyWebUigetResponses];
930
-
931
- export type NapcatProxyWebUipostData = {
932
- body?: never;
933
- headers?: {
934
- Accept?: string;
935
- };
936
- path?: never;
937
- query?: never;
938
- url: '/api/webui/*';
939
- };
940
-
941
- export type NapcatProxyWebUipostErrors = {
942
- /**
943
- * Bad Request _(validation or deserialization error)_
944
- */
945
- 400: HttpError;
946
- /**
947
- * Internal Server Error _(panics)_
948
- */
949
- 500: HttpError;
950
- default: unknown;
951
- };
952
-
953
- export type NapcatProxyWebUipostError = NapcatProxyWebUipostErrors[keyof NapcatProxyWebUipostErrors];
954
-
955
- export type NapcatProxyWebUipostResponses = {
956
- /**
957
- * OK
958
- */
959
- 200: UnknownInterface;
960
- };
961
-
962
- export type NapcatProxyWebUipostResponse = NapcatProxyWebUipostResponses[keyof NapcatProxyWebUipostResponses];
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+
3
+ export type ClientOptions = {
4
+ baseUrl: `${string}://${string}` | (string & {});
5
+ };
6
+
7
+ /**
8
+ * AddContactRequest schema
9
+ */
10
+ export type AddContactRequest = {
11
+ api_hash?: string;
12
+ api_id?: number;
13
+ first_name?: string;
14
+ last_name?: string;
15
+ phone: string;
16
+ session_data: string;
17
+ };
18
+
19
+ /**
20
+ * AddContactResponse schema
21
+ */
22
+ export type AddContactResponse = {
23
+ access_hash?: number;
24
+ message?: string;
25
+ session_data?: string;
26
+ success?: boolean;
27
+ user_id?: number;
28
+ };
29
+
30
+ /**
31
+ * AuthResponse schema
32
+ */
33
+ export type AuthResponse = {
34
+ message?: string;
35
+ result?: {
36
+ [key: string]: string;
37
+ };
38
+ session_data?: string;
39
+ success?: boolean;
40
+ user_info?: {
41
+ first_name?: string;
42
+ id?: number;
43
+ is_bot?: boolean;
44
+ last_name?: string;
45
+ phone?: string;
46
+ username?: string;
47
+ };
48
+ };
49
+
50
+ /**
51
+ * CheckUpdateResponse schema
52
+ */
53
+ export type CheckUpdateResponse = {
54
+ current_version?: string;
55
+ latest_version?: string;
56
+ update_available?: boolean;
57
+ };
58
+
59
+ /**
60
+ * CodeRunResult schema
61
+ */
62
+ export type CodeRunResult = {
63
+ /**
64
+ * 耗时(秒)
65
+ */
66
+ duration?: number;
67
+ /**
68
+ * 进程退出码
69
+ */
70
+ exitCode?: number;
71
+ /**
72
+ * 标准错误输出
73
+ */
74
+ stderr?: string;
75
+ /**
76
+ * 标准输出
77
+ */
78
+ stdout?: string;
79
+ };
80
+
81
+ /**
82
+ * HTTPError schema
83
+ */
84
+ export type HttpError = {
85
+ /**
86
+ * Human readable error message
87
+ */
88
+ detail?: string;
89
+ errors?: Array<{
90
+ /**
91
+ * Additional information about the error
92
+ */
93
+ more?: {
94
+ [key: string]: unknown;
95
+ };
96
+ /**
97
+ * For example, name of the parameter that caused the error
98
+ */
99
+ name?: string;
100
+ /**
101
+ * Human readable error message
102
+ */
103
+ reason?: string;
104
+ }>;
105
+ instance?: string;
106
+ /**
107
+ * HTTP status code
108
+ */
109
+ status?: number;
110
+ /**
111
+ * Short title of the error
112
+ */
113
+ title?: string;
114
+ /**
115
+ * URL of the error type. Can be used to lookup the error in a documentation
116
+ */
117
+ type?: string;
118
+ };
119
+
120
+ /**
121
+ * NapcatStatus schema
122
+ */
123
+ export type NapcatStatus = {
124
+ config_dir?: string;
125
+ data_dir?: string;
126
+ is_running?: boolean;
127
+ napcat_port?: number;
128
+ process_id?: number;
129
+ webui_port?: number;
130
+ };
131
+
132
+ /**
133
+ * PasswordRequest schema
134
+ */
135
+ export type PasswordRequest = {
136
+ api_hash?: string;
137
+ api_id?: number;
138
+ password: string;
139
+ session_data?: string;
140
+ };
141
+
142
+ /**
143
+ * PerformUpgradeRequest schema
144
+ */
145
+ export type PerformUpgradeRequest = {
146
+ version?: string;
147
+ };
148
+
149
+ /**
150
+ * PerformUpgradeResponse schema
151
+ */
152
+ export type PerformUpgradeResponse = {
153
+ message?: string;
154
+ status?: string;
155
+ };
156
+
157
+ /**
158
+ * RunCodeReq schema
159
+ */
160
+ export type RunCodeReq = {
161
+ /**
162
+ * 代码类型: python | bash | sh | nodejs | browserjs
163
+ */
164
+ codeType: string;
165
+ /**
166
+ * 代码正文
167
+ */
168
+ content: string;
169
+ /**
170
+ * 环境变量
171
+ */
172
+ env?: {
173
+ [key: string]: string;
174
+ };
175
+ /**
176
+ * 运行超时时间(秒), 如果不填默认为60秒
177
+ */
178
+ timeout?: number;
179
+ };
180
+
181
+ /**
182
+ * SendCodeRequest schema
183
+ */
184
+ export type SendCodeRequest = {
185
+ api_hash?: string;
186
+ api_id?: number;
187
+ phone: string;
188
+ session_data?: string;
189
+ };
190
+
191
+ /**
192
+ * SendMessageRequest schema
193
+ */
194
+ export type SendMessageRequest = {
195
+ access_hash?: number;
196
+ api_hash?: string;
197
+ api_id?: number;
198
+ message: string;
199
+ phone?: string;
200
+ session_data: string;
201
+ user_id?: number;
202
+ username?: string;
203
+ };
204
+
205
+ /**
206
+ * SendMessageResponse schema
207
+ */
208
+ export type SendMessageResponse = {
209
+ message?: string;
210
+ session_data?: string;
211
+ success?: boolean;
212
+ };
213
+
214
+ /**
215
+ * SignInRequest schema
216
+ */
217
+ export type SignInRequest = {
218
+ api_hash?: string;
219
+ api_id?: number;
220
+ code: string;
221
+ phone: string;
222
+ phone_code_hash: string;
223
+ session_data?: string;
224
+ };
225
+
226
+ /**
227
+ * StartNapcatRequest schema
228
+ */
229
+ export type StartNapcatRequest = {
230
+ config_dir?: string;
231
+ data_dir?: string;
232
+ napcat_port?: number;
233
+ qq_account?: string;
234
+ webui_port?: number;
235
+ };
236
+
237
+ /**
238
+ * StatusResponse schema
239
+ */
240
+ export type StatusResponse = {
241
+ go_version?: string;
242
+ instance_id?: string;
243
+ mem_alloc_mb?: number;
244
+ mode?: string;
245
+ num_cpu?: number;
246
+ num_goroutine?: number;
247
+ status?: string;
248
+ uptime?: string;
249
+ version?: string;
250
+ };
251
+
252
+ /**
253
+ * UserInfoRequest schema
254
+ */
255
+ export type UserInfoRequest = {
256
+ api_hash?: string;
257
+ api_id?: number;
258
+ session_data: string;
259
+ };
260
+
261
+ /**
262
+ * unknown-interface schema
263
+ */
264
+ export type UnknownInterface = unknown;
265
+
266
+ export type CodeRunData = {
267
+ /**
268
+ * Request body for code.RunCodeReq
269
+ */
270
+ body: RunCodeReq;
271
+ headers?: {
272
+ Accept?: string;
273
+ };
274
+ path?: never;
275
+ query?: never;
276
+ url: '/api/code/run';
277
+ };
278
+
279
+ export type CodeRunErrors = {
280
+ /**
281
+ * Bad Request _(validation or deserialization error)_
282
+ */
283
+ 400: HttpError;
284
+ /**
285
+ * Internal Server Error _(panics)_
286
+ */
287
+ 500: HttpError;
288
+ default: unknown;
289
+ };
290
+
291
+ export type CodeRunError = CodeRunErrors[keyof CodeRunErrors];
292
+
293
+ export type CodeRunResponses = {
294
+ /**
295
+ * OK
296
+ */
297
+ 200: CodeRunResult;
298
+ };
299
+
300
+ export type CodeRunResponse = CodeRunResponses[keyof CodeRunResponses];
301
+
302
+ export type PostApiDbQueryQueryData = {
303
+ body?: never;
304
+ path?: never;
305
+ query?: {
306
+ /**
307
+ * 输出格式: table|full|json|raw
308
+ */
309
+ format?: string;
310
+ };
311
+ url: '/api/db_query/query';
312
+ };
313
+
314
+ export type PostApiDbQueryQueryErrors = {
315
+ /**
316
+ * Bad Request _(validation or deserialization error)_
317
+ */
318
+ 400: HttpError;
319
+ /**
320
+ * Internal Server Error _(panics)_
321
+ */
322
+ 500: HttpError;
323
+ default: unknown;
324
+ };
325
+
326
+ export type PostApiDbQueryQueryError = PostApiDbQueryQueryErrors[keyof PostApiDbQueryQueryErrors];
327
+
328
+ export type PostApiDbQueryQueryResponses = {
329
+ /**
330
+ * OK
331
+ */
332
+ 200: UnknownInterface;
333
+ };
334
+
335
+ export type PostApiDbQueryQueryResponse = PostApiDbQueryQueryResponses[keyof PostApiDbQueryQueryResponses];
336
+
337
+ export type NapcatStartData = {
338
+ /**
339
+ * Request body for napcat.StartNapcatRequest
340
+ */
341
+ body: StartNapcatRequest;
342
+ headers?: {
343
+ Accept?: string;
344
+ };
345
+ path?: never;
346
+ query?: never;
347
+ url: '/api/napcat/start';
348
+ };
349
+
350
+ export type NapcatStartErrors = {
351
+ /**
352
+ * Bad Request _(validation or deserialization error)_
353
+ */
354
+ 400: HttpError;
355
+ /**
356
+ * Internal Server Error _(panics)_
357
+ */
358
+ 500: HttpError;
359
+ default: unknown;
360
+ };
361
+
362
+ export type NapcatStartError = NapcatStartErrors[keyof NapcatStartErrors];
363
+
364
+ export type NapcatStartResponses = {
365
+ /**
366
+ * OK
367
+ */
368
+ 200: NapcatStatus;
369
+ };
370
+
371
+ export type NapcatStartResponse = NapcatStartResponses[keyof NapcatStartResponses];
372
+
373
+ export type NapcatGetStatusData = {
374
+ body?: never;
375
+ headers?: {
376
+ Accept?: string;
377
+ };
378
+ path?: never;
379
+ query?: never;
380
+ url: '/api/napcat/status';
381
+ };
382
+
383
+ export type NapcatGetStatusErrors = {
384
+ /**
385
+ * Bad Request _(validation or deserialization error)_
386
+ */
387
+ 400: HttpError;
388
+ /**
389
+ * Internal Server Error _(panics)_
390
+ */
391
+ 500: HttpError;
392
+ default: unknown;
393
+ };
394
+
395
+ export type NapcatGetStatusError = NapcatGetStatusErrors[keyof NapcatGetStatusErrors];
396
+
397
+ export type NapcatGetStatusResponses = {
398
+ /**
399
+ * OK
400
+ */
401
+ 200: NapcatStatus;
402
+ };
403
+
404
+ export type NapcatGetStatusResponse = NapcatGetStatusResponses[keyof NapcatGetStatusResponses];
405
+
406
+ export type NapcatProxyOneBot11GetData = {
407
+ body?: never;
408
+ headers?: {
409
+ Accept?: string;
410
+ };
411
+ path?: never;
412
+ query?: never;
413
+ url: '/api/onebot11/*';
414
+ };
415
+
416
+ export type NapcatProxyOneBot11GetErrors = {
417
+ /**
418
+ * Bad Request _(validation or deserialization error)_
419
+ */
420
+ 400: HttpError;
421
+ /**
422
+ * Internal Server Error _(panics)_
423
+ */
424
+ 500: HttpError;
425
+ default: unknown;
426
+ };
427
+
428
+ export type NapcatProxyOneBot11GetError = NapcatProxyOneBot11GetErrors[keyof NapcatProxyOneBot11GetErrors];
429
+
430
+ export type NapcatProxyOneBot11GetResponses = {
431
+ /**
432
+ * OK
433
+ */
434
+ 200: UnknownInterface;
435
+ };
436
+
437
+ export type NapcatProxyOneBot11GetResponse = NapcatProxyOneBot11GetResponses[keyof NapcatProxyOneBot11GetResponses];
438
+
439
+ export type NapcatProxyOneBot11PostData = {
440
+ body?: never;
441
+ headers?: {
442
+ Accept?: string;
443
+ };
444
+ path?: never;
445
+ query?: never;
446
+ url: '/api/onebot11/*';
447
+ };
448
+
449
+ export type NapcatProxyOneBot11PostErrors = {
450
+ /**
451
+ * Bad Request _(validation or deserialization error)_
452
+ */
453
+ 400: HttpError;
454
+ /**
455
+ * Internal Server Error _(panics)_
456
+ */
457
+ 500: HttpError;
458
+ default: unknown;
459
+ };
460
+
461
+ export type NapcatProxyOneBot11PostError = NapcatProxyOneBot11PostErrors[keyof NapcatProxyOneBot11PostErrors];
462
+
463
+ export type NapcatProxyOneBot11PostResponses = {
464
+ /**
465
+ * OK
466
+ */
467
+ 200: UnknownInterface;
468
+ };
469
+
470
+ export type NapcatProxyOneBot11PostResponse = NapcatProxyOneBot11PostResponses[keyof NapcatProxyOneBot11PostResponses];
471
+
472
+ export type PostApiSystemCheckUpdateData = {
473
+ body?: never;
474
+ headers?: {
475
+ Accept?: string;
476
+ };
477
+ path?: never;
478
+ query?: never;
479
+ url: '/api/system/check_update';
480
+ };
481
+
482
+ export type PostApiSystemCheckUpdateErrors = {
483
+ /**
484
+ * Bad Request _(validation or deserialization error)_
485
+ */
486
+ 400: HttpError;
487
+ /**
488
+ * Internal Server Error _(panics)_
489
+ */
490
+ 500: HttpError;
491
+ default: unknown;
492
+ };
493
+
494
+ export type PostApiSystemCheckUpdateError = PostApiSystemCheckUpdateErrors[keyof PostApiSystemCheckUpdateErrors];
495
+
496
+ export type PostApiSystemCheckUpdateResponses = {
497
+ /**
498
+ * OK
499
+ */
500
+ 200: CheckUpdateResponse;
501
+ };
502
+
503
+ export type PostApiSystemCheckUpdateResponse = PostApiSystemCheckUpdateResponses[keyof PostApiSystemCheckUpdateResponses];
504
+
505
+ export type PostApiSystemPerformUpgradeData = {
506
+ /**
507
+ * Request body for system.PerformUpgradeRequest
508
+ */
509
+ body: PerformUpgradeRequest;
510
+ headers?: {
511
+ Accept?: string;
512
+ };
513
+ path?: never;
514
+ query?: never;
515
+ url: '/api/system/perform_upgrade';
516
+ };
517
+
518
+ export type PostApiSystemPerformUpgradeErrors = {
519
+ /**
520
+ * Bad Request _(validation or deserialization error)_
521
+ */
522
+ 400: HttpError;
523
+ /**
524
+ * Internal Server Error _(panics)_
525
+ */
526
+ 500: HttpError;
527
+ default: unknown;
528
+ };
529
+
530
+ export type PostApiSystemPerformUpgradeError = PostApiSystemPerformUpgradeErrors[keyof PostApiSystemPerformUpgradeErrors];
531
+
532
+ export type PostApiSystemPerformUpgradeResponses = {
533
+ /**
534
+ * OK
535
+ */
536
+ 200: PerformUpgradeResponse;
537
+ };
538
+
539
+ export type PostApiSystemPerformUpgradeResponse = PostApiSystemPerformUpgradeResponses[keyof PostApiSystemPerformUpgradeResponses];
540
+
541
+ export type GetApiSystemStatusData = {
542
+ body?: never;
543
+ headers?: {
544
+ Accept?: string;
545
+ };
546
+ path?: never;
547
+ query?: never;
548
+ url: '/api/system/status';
549
+ };
550
+
551
+ export type GetApiSystemStatusErrors = {
552
+ /**
553
+ * Bad Request _(validation or deserialization error)_
554
+ */
555
+ 400: HttpError;
556
+ /**
557
+ * Internal Server Error _(panics)_
558
+ */
559
+ 500: HttpError;
560
+ default: unknown;
561
+ };
562
+
563
+ export type GetApiSystemStatusError = GetApiSystemStatusErrors[keyof GetApiSystemStatusErrors];
564
+
565
+ export type GetApiSystemStatusResponses = {
566
+ /**
567
+ * OK
568
+ */
569
+ 200: StatusResponse;
570
+ };
571
+
572
+ export type GetApiSystemStatusResponse = GetApiSystemStatusResponses[keyof GetApiSystemStatusResponses];
573
+
574
+ export type PostApiV1TelegramAuthPasswordData = {
575
+ /**
576
+ * Request body for telegram.PasswordRequest
577
+ */
578
+ body: PasswordRequest;
579
+ headers?: {
580
+ Accept?: string;
581
+ };
582
+ path?: never;
583
+ query?: never;
584
+ url: '/api/v1/telegram/auth/password';
585
+ };
586
+
587
+ export type PostApiV1TelegramAuthPasswordErrors = {
588
+ /**
589
+ * Bad Request _(validation or deserialization error)_
590
+ */
591
+ 400: HttpError;
592
+ /**
593
+ * Internal Server Error _(panics)_
594
+ */
595
+ 500: HttpError;
596
+ default: unknown;
597
+ };
598
+
599
+ export type PostApiV1TelegramAuthPasswordError = PostApiV1TelegramAuthPasswordErrors[keyof PostApiV1TelegramAuthPasswordErrors];
600
+
601
+ export type PostApiV1TelegramAuthPasswordResponses = {
602
+ /**
603
+ * OK
604
+ */
605
+ 200: AuthResponse;
606
+ };
607
+
608
+ export type PostApiV1TelegramAuthPasswordResponse = PostApiV1TelegramAuthPasswordResponses[keyof PostApiV1TelegramAuthPasswordResponses];
609
+
610
+ export type PostApiV1TelegramAuthSendCodeData = {
611
+ /**
612
+ * Request body for telegram.SendCodeRequest
613
+ */
614
+ body: SendCodeRequest;
615
+ headers?: {
616
+ Accept?: string;
617
+ };
618
+ path?: never;
619
+ query?: never;
620
+ url: '/api/v1/telegram/auth/send-code';
621
+ };
622
+
623
+ export type PostApiV1TelegramAuthSendCodeErrors = {
624
+ /**
625
+ * Bad Request _(validation or deserialization error)_
626
+ */
627
+ 400: HttpError;
628
+ /**
629
+ * Internal Server Error _(panics)_
630
+ */
631
+ 500: HttpError;
632
+ default: unknown;
633
+ };
634
+
635
+ export type PostApiV1TelegramAuthSendCodeError = PostApiV1TelegramAuthSendCodeErrors[keyof PostApiV1TelegramAuthSendCodeErrors];
636
+
637
+ export type PostApiV1TelegramAuthSendCodeResponses = {
638
+ /**
639
+ * OK
640
+ */
641
+ 200: AuthResponse;
642
+ };
643
+
644
+ export type PostApiV1TelegramAuthSendCodeResponse = PostApiV1TelegramAuthSendCodeResponses[keyof PostApiV1TelegramAuthSendCodeResponses];
645
+
646
+ export type PostApiV1TelegramAuthSignInData = {
647
+ /**
648
+ * Request body for telegram.SignInRequest
649
+ */
650
+ body: SignInRequest;
651
+ headers?: {
652
+ Accept?: string;
653
+ };
654
+ path?: never;
655
+ query?: never;
656
+ url: '/api/v1/telegram/auth/sign-in';
657
+ };
658
+
659
+ export type PostApiV1TelegramAuthSignInErrors = {
660
+ /**
661
+ * Bad Request _(validation or deserialization error)_
662
+ */
663
+ 400: HttpError;
664
+ /**
665
+ * Internal Server Error _(panics)_
666
+ */
667
+ 500: HttpError;
668
+ default: unknown;
669
+ };
670
+
671
+ export type PostApiV1TelegramAuthSignInError = PostApiV1TelegramAuthSignInErrors[keyof PostApiV1TelegramAuthSignInErrors];
672
+
673
+ export type PostApiV1TelegramAuthSignInResponses = {
674
+ /**
675
+ * OK
676
+ */
677
+ 200: AuthResponse;
678
+ };
679
+
680
+ export type PostApiV1TelegramAuthSignInResponse = PostApiV1TelegramAuthSignInResponses[keyof PostApiV1TelegramAuthSignInResponses];
681
+
682
+ export type PostApiV1TelegramAuthUserInfoData = {
683
+ /**
684
+ * Request body for telegram.UserInfoRequest
685
+ */
686
+ body: UserInfoRequest;
687
+ headers?: {
688
+ Accept?: string;
689
+ };
690
+ path?: never;
691
+ query?: never;
692
+ url: '/api/v1/telegram/auth/user-info';
693
+ };
694
+
695
+ export type PostApiV1TelegramAuthUserInfoErrors = {
696
+ /**
697
+ * Bad Request _(validation or deserialization error)_
698
+ */
699
+ 400: HttpError;
700
+ /**
701
+ * Internal Server Error _(panics)_
702
+ */
703
+ 500: HttpError;
704
+ default: unknown;
705
+ };
706
+
707
+ export type PostApiV1TelegramAuthUserInfoError = PostApiV1TelegramAuthUserInfoErrors[keyof PostApiV1TelegramAuthUserInfoErrors];
708
+
709
+ export type PostApiV1TelegramAuthUserInfoResponses = {
710
+ /**
711
+ * OK
712
+ */
713
+ 200: AuthResponse;
714
+ };
715
+
716
+ export type PostApiV1TelegramAuthUserInfoResponse = PostApiV1TelegramAuthUserInfoResponses[keyof PostApiV1TelegramAuthUserInfoResponses];
717
+
718
+ export type PostApiV1TelegramContactAddData = {
719
+ /**
720
+ * Request body for telegram.AddContactRequest
721
+ */
722
+ body: AddContactRequest;
723
+ headers?: {
724
+ Accept?: string;
725
+ };
726
+ path?: never;
727
+ query?: never;
728
+ url: '/api/v1/telegram/contact/add';
729
+ };
730
+
731
+ export type PostApiV1TelegramContactAddErrors = {
732
+ /**
733
+ * Bad Request _(validation or deserialization error)_
734
+ */
735
+ 400: HttpError;
736
+ /**
737
+ * Internal Server Error _(panics)_
738
+ */
739
+ 500: HttpError;
740
+ default: unknown;
741
+ };
742
+
743
+ export type PostApiV1TelegramContactAddError = PostApiV1TelegramContactAddErrors[keyof PostApiV1TelegramContactAddErrors];
744
+
745
+ export type PostApiV1TelegramContactAddResponses = {
746
+ /**
747
+ * OK
748
+ */
749
+ 200: AddContactResponse;
750
+ };
751
+
752
+ export type PostApiV1TelegramContactAddResponse = PostApiV1TelegramContactAddResponses[keyof PostApiV1TelegramContactAddResponses];
753
+
754
+ export type PostApiV1TelegramMessageSendData = {
755
+ /**
756
+ * Request body for telegram.SendMessageRequest
757
+ */
758
+ body: SendMessageRequest;
759
+ headers?: {
760
+ Accept?: string;
761
+ };
762
+ path?: never;
763
+ query?: never;
764
+ url: '/api/v1/telegram/message/send';
765
+ };
766
+
767
+ export type PostApiV1TelegramMessageSendErrors = {
768
+ /**
769
+ * Bad Request _(validation or deserialization error)_
770
+ */
771
+ 400: HttpError;
772
+ /**
773
+ * Internal Server Error _(panics)_
774
+ */
775
+ 500: HttpError;
776
+ default: unknown;
777
+ };
778
+
779
+ export type PostApiV1TelegramMessageSendError = PostApiV1TelegramMessageSendErrors[keyof PostApiV1TelegramMessageSendErrors];
780
+
781
+ export type PostApiV1TelegramMessageSendResponses = {
782
+ /**
783
+ * OK
784
+ */
785
+ 200: SendMessageResponse;
786
+ };
787
+
788
+ export type PostApiV1TelegramMessageSendResponse = PostApiV1TelegramMessageSendResponses[keyof PostApiV1TelegramMessageSendResponses];
789
+
790
+ export type NapcatProxyWebUigetData = {
791
+ body?: never;
792
+ headers?: {
793
+ Accept?: string;
794
+ };
795
+ path?: never;
796
+ query?: never;
797
+ url: '/api/webui/*';
798
+ };
799
+
800
+ export type NapcatProxyWebUigetErrors = {
801
+ /**
802
+ * Bad Request _(validation or deserialization error)_
803
+ */
804
+ 400: HttpError;
805
+ /**
806
+ * Internal Server Error _(panics)_
807
+ */
808
+ 500: HttpError;
809
+ default: unknown;
810
+ };
811
+
812
+ export type NapcatProxyWebUigetError = NapcatProxyWebUigetErrors[keyof NapcatProxyWebUigetErrors];
813
+
814
+ export type NapcatProxyWebUigetResponses = {
815
+ /**
816
+ * OK
817
+ */
818
+ 200: UnknownInterface;
819
+ };
820
+
821
+ export type NapcatProxyWebUigetResponse = NapcatProxyWebUigetResponses[keyof NapcatProxyWebUigetResponses];
822
+
823
+ export type NapcatProxyWebUipostData = {
824
+ body?: never;
825
+ headers?: {
826
+ Accept?: string;
827
+ };
828
+ path?: never;
829
+ query?: never;
830
+ url: '/api/webui/*';
831
+ };
832
+
833
+ export type NapcatProxyWebUipostErrors = {
834
+ /**
835
+ * Bad Request _(validation or deserialization error)_
836
+ */
837
+ 400: HttpError;
838
+ /**
839
+ * Internal Server Error _(panics)_
840
+ */
841
+ 500: HttpError;
842
+ default: unknown;
843
+ };
844
+
845
+ export type NapcatProxyWebUipostError = NapcatProxyWebUipostErrors[keyof NapcatProxyWebUipostErrors];
846
+
847
+ export type NapcatProxyWebUipostResponses = {
848
+ /**
849
+ * OK
850
+ */
851
+ 200: UnknownInterface;
852
+ };
853
+
854
+ export type NapcatProxyWebUipostResponse = NapcatProxyWebUipostResponses[keyof NapcatProxyWebUipostResponses];