mtmsdk 0.0.51 → 0.0.53

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 (446) hide show
  1. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts +21 -185
  2. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +1 -1
  3. package/dist/gomtmapi/@tanstack/react-query.gen.js +39 -215
  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 +67 -138
  10. package/dist/gomtmapi/schemas.gen.d.ts.map +1 -1
  11. package/dist/gomtmapi/schemas.gen.js +68 -142
  12. package/dist/gomtmapi/schemas.gen.js.map +1 -1
  13. package/dist/gomtmapi/sdk.gen.d.ts +15 -107
  14. package/dist/gomtmapi/sdk.gen.d.ts.map +1 -1
  15. package/dist/gomtmapi/sdk.gen.js +22 -128
  16. package/dist/gomtmapi/sdk.gen.js.map +1 -1
  17. package/dist/gomtmapi/types.gen.d.ts +66 -303
  18. package/dist/gomtmapi/types.gen.d.ts.map +1 -1
  19. package/dist/gomtmapi/zod.gen.d.ts +48 -183
  20. package/dist/gomtmapi/zod.gen.d.ts.map +1 -1
  21. package/dist/gomtmapi/zod.gen.js +36 -150
  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/sbmng/@tanstack/react-query.gen.d.ts +183 -209
  28. package/dist/sbmng/@tanstack/react-query.gen.d.ts.map +1 -1
  29. package/dist/sbmng/@tanstack/react-query.gen.js +25 -71
  30. package/dist/sbmng/@tanstack/react-query.gen.js.map +1 -1
  31. package/dist/sbmng/index.d.ts +2 -2
  32. package/dist/sbmng/index.d.ts.map +1 -1
  33. package/dist/sbmng/index.js +1 -1
  34. package/dist/sbmng/index.js.map +1 -1
  35. package/dist/sbmng/schemas.gen.d.ts +10 -99
  36. package/dist/sbmng/schemas.gen.d.ts.map +1 -1
  37. package/dist/sbmng/schemas.gen.js +11 -143
  38. package/dist/sbmng/schemas.gen.js.map +1 -1
  39. package/dist/sbmng/sdk.gen.d.ts +13 -23
  40. package/dist/sbmng/sdk.gen.d.ts.map +1 -1
  41. package/dist/sbmng/sdk.gen.js +16 -38
  42. package/dist/sbmng/sdk.gen.js.map +1 -1
  43. package/dist/sbmng/types.gen.d.ts +41 -157
  44. package/dist/sbmng/types.gen.d.ts.map +1 -1
  45. package/dist/supabase/auth-provider.d.ts +8 -1
  46. package/dist/supabase/auth-provider.d.ts.map +1 -1
  47. package/dist/supabase/context.d.ts +3844 -1
  48. package/dist/supabase/context.d.ts.map +1 -1
  49. package/dist/supabase/cursor-pagination.d.ts +4 -4
  50. package/dist/supabase/cursor-pagination.js +4 -4
  51. package/dist/supabase/schema/index.d.ts +1 -11
  52. package/dist/supabase/schema/index.d.ts.map +1 -1
  53. package/dist/supabase/schema/index.js +1 -19
  54. package/dist/supabase/schema/index.js.map +1 -1
  55. package/dist/supabase/schema/system-config.d.ts +12 -0
  56. package/dist/supabase/schema/system-config.d.ts.map +1 -0
  57. package/dist/supabase/schema/system-config.js +22 -0
  58. package/dist/supabase/schema/system-config.js.map +1 -0
  59. package/dist/supabase/supabase-client.d.ts +25 -591
  60. package/dist/supabase/supabase-client.d.ts.map +1 -1
  61. package/dist/supabase/supabase.d.ts +59 -1191
  62. package/dist/supabase/supabase.d.ts.map +1 -1
  63. package/dist/supabase/use-sb-query/build-query-opts.d.ts +6 -2
  64. package/dist/supabase/use-sb-query/build-query-opts.d.ts.map +1 -1
  65. package/dist/supabase/use-sb-query/build-query-opts.js +8 -4
  66. package/dist/supabase/use-sb-query/build-query-opts.js.map +1 -1
  67. package/dist/supabase/use-sb-query/use-query.d.ts +9 -6
  68. package/dist/supabase/use-sb-query/use-query.d.ts.map +1 -1
  69. package/dist/supabase/use-sb-query/use-query.js.map +1 -1
  70. package/dist/supabase/use-sb-query/use-rpc-mutation.d.ts +8 -8
  71. package/dist/supabase/use-sb-query/use-rpc-mutation.js +8 -8
  72. package/dist/supabase/use-sb-query/use-rpc-query.d.ts +25 -17
  73. package/dist/supabase/use-sb-query/use-rpc-query.d.ts.map +1 -1
  74. package/dist/supabase/use-sb-query/use-rpc-query.js +48 -26
  75. package/dist/supabase/use-sb-query/use-rpc-query.js.map +1 -1
  76. package/dist/types/contracts.d.ts +63 -0
  77. package/dist/types/contracts.d.ts.map +1 -0
  78. package/dist/types/contracts.js +17 -0
  79. package/dist/types/contracts.js.map +1 -0
  80. package/dist/types/database.schemas.d.ts +94 -786
  81. package/dist/types/database.schemas.d.ts.map +1 -1
  82. package/dist/types/database.schemas.js +30 -474
  83. package/dist/types/database.schemas.js.map +1 -1
  84. package/dist/types/database.types.d.ts +25 -596
  85. package/dist/types/database.types.d.ts.map +1 -1
  86. package/dist/types/database.types.js +0 -10
  87. package/dist/types/database.types.js.map +1 -1
  88. package/dist/types/index.d.ts +22 -67
  89. package/dist/types/index.d.ts.map +1 -1
  90. package/dist/types/index.js +16 -5
  91. package/dist/types/index.js.map +1 -1
  92. package/package.json +17 -26
  93. package/dist/adk/api/client.d.ts +0 -9
  94. package/dist/adk/api/client.d.ts.map +0 -1
  95. package/dist/adk/api/client.js +0 -39
  96. package/dist/adk/api/client.js.map +0 -1
  97. package/dist/adk/core/constants/tool-icons.d.ts +0 -21
  98. package/dist/adk/core/constants/tool-icons.d.ts.map +0 -1
  99. package/dist/adk/core/constants/tool-icons.js +0 -47
  100. package/dist/adk/core/constants/tool-icons.js.map +0 -1
  101. package/dist/adk/core/models/AgentBuilder.d.ts +0 -77
  102. package/dist/adk/core/models/AgentBuilder.d.ts.map +0 -1
  103. package/dist/adk/core/models/AgentBuilder.js +0 -18
  104. package/dist/adk/core/models/AgentBuilder.js.map +0 -1
  105. package/dist/adk/core/models/AgentRunRequest.d.ts +0 -37
  106. package/dist/adk/core/models/AgentRunRequest.d.ts.map +0 -1
  107. package/dist/adk/core/models/AgentRunRequest.js +0 -18
  108. package/dist/adk/core/models/AgentRunRequest.js.map +0 -1
  109. package/dist/adk/core/models/Eval.d.ts +0 -55
  110. package/dist/adk/core/models/Eval.d.ts.map +0 -1
  111. package/dist/adk/core/models/Eval.js +0 -27
  112. package/dist/adk/core/models/Eval.js.map +0 -1
  113. package/dist/adk/core/models/LiveRequest.d.ts +0 -23
  114. package/dist/adk/core/models/LiveRequest.d.ts.map +0 -1
  115. package/dist/adk/core/models/LiveRequest.js +0 -18
  116. package/dist/adk/core/models/LiveRequest.js.map +0 -1
  117. package/dist/adk/core/models/RuntimeConfig.d.ts +0 -32
  118. package/dist/adk/core/models/RuntimeConfig.d.ts.map +0 -1
  119. package/dist/adk/core/models/RuntimeConfig.js +0 -18
  120. package/dist/adk/core/models/RuntimeConfig.js.map +0 -1
  121. package/dist/adk/core/models/Session.d.ts +0 -117
  122. package/dist/adk/core/models/Session.d.ts.map +0 -1
  123. package/dist/adk/core/models/Session.js +0 -31
  124. package/dist/adk/core/models/Session.js.map +0 -1
  125. package/dist/adk/core/models/Trace.d.ts +0 -40
  126. package/dist/adk/core/models/Trace.d.ts.map +0 -1
  127. package/dist/adk/core/models/Trace.js +0 -2
  128. package/dist/adk/core/models/Trace.js.map +0 -1
  129. package/dist/adk/core/models/types.d.ts +0 -338
  130. package/dist/adk/core/models/types.d.ts.map +0 -1
  131. package/dist/adk/core/models/types.js +0 -189
  132. package/dist/adk/core/models/types.js.map +0 -1
  133. package/dist/cloud-account/platform-configs.d.ts +0 -64
  134. package/dist/cloud-account/platform-configs.d.ts.map +0 -1
  135. package/dist/cloud-account/platform-configs.js +0 -44
  136. package/dist/cloud-account/platform-configs.js.map +0 -1
  137. package/dist/lib/aisdk/types.d.ts +0 -3
  138. package/dist/lib/aisdk/types.d.ts.map +0 -1
  139. package/dist/lib/aisdk/types.js +0 -5
  140. package/dist/lib/aisdk/types.js.map +0 -1
  141. package/dist/lib/logger/index.d.ts +0 -22
  142. package/dist/lib/logger/index.d.ts.map +0 -1
  143. package/dist/lib/logger/index.js +0 -7
  144. package/dist/lib/logger/index.js.map +0 -1
  145. package/dist/lib/schema.d.ts +0 -53
  146. package/dist/lib/schema.d.ts.map +0 -1
  147. package/dist/lib/schema.js +0 -37
  148. package/dist/lib/schema.js.map +0 -1
  149. package/dist/lib/utils.d.ts +0 -14
  150. package/dist/lib/utils.d.ts.map +0 -1
  151. package/dist/lib/utils.js +0 -45
  152. package/dist/lib/utils.js.map +0 -1
  153. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +0 -166
  154. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +0 -1
  155. package/dist/mtgate_api/@tanstack/react-query.gen.js +0 -118
  156. package/dist/mtgate_api/@tanstack/react-query.gen.js.map +0 -1
  157. package/dist/mtgate_api/client/client.gen.d.ts +0 -3
  158. package/dist/mtgate_api/client/client.gen.d.ts.map +0 -1
  159. package/dist/mtgate_api/client/client.gen.js +0 -236
  160. package/dist/mtgate_api/client/client.gen.js.map +0 -1
  161. package/dist/mtgate_api/client/index.d.ts +0 -9
  162. package/dist/mtgate_api/client/index.d.ts.map +0 -1
  163. package/dist/mtgate_api/client/index.js +0 -7
  164. package/dist/mtgate_api/client/index.js.map +0 -1
  165. package/dist/mtgate_api/client/types.gen.d.ts +0 -118
  166. package/dist/mtgate_api/client/types.gen.d.ts.map +0 -1
  167. package/dist/mtgate_api/client/types.gen.js +0 -3
  168. package/dist/mtgate_api/client/types.gen.js.map +0 -1
  169. package/dist/mtgate_api/client/utils.gen.d.ts +0 -34
  170. package/dist/mtgate_api/client/utils.gen.d.ts.map +0 -1
  171. package/dist/mtgate_api/client/utils.gen.js +0 -232
  172. package/dist/mtgate_api/client/utils.gen.js.map +0 -1
  173. package/dist/mtgate_api/client.gen.d.ts +0 -13
  174. package/dist/mtgate_api/client.gen.d.ts.map +0 -1
  175. package/dist/mtgate_api/client.gen.js +0 -4
  176. package/dist/mtgate_api/client.gen.js.map +0 -1
  177. package/dist/mtgate_api/core/auth.gen.d.ts +0 -19
  178. package/dist/mtgate_api/core/auth.gen.d.ts.map +0 -1
  179. package/dist/mtgate_api/core/auth.gen.js +0 -15
  180. package/dist/mtgate_api/core/auth.gen.js.map +0 -1
  181. package/dist/mtgate_api/core/bodySerializer.gen.d.ts +0 -26
  182. package/dist/mtgate_api/core/bodySerializer.gen.d.ts.map +0 -1
  183. package/dist/mtgate_api/core/bodySerializer.gen.js +0 -58
  184. package/dist/mtgate_api/core/bodySerializer.gen.js.map +0 -1
  185. package/dist/mtgate_api/core/params.gen.d.ts +0 -44
  186. package/dist/mtgate_api/core/params.gen.d.ts.map +0 -1
  187. package/dist/mtgate_api/core/params.gen.js +0 -101
  188. package/dist/mtgate_api/core/params.gen.js.map +0 -1
  189. package/dist/mtgate_api/core/pathSerializer.gen.d.ts +0 -34
  190. package/dist/mtgate_api/core/pathSerializer.gen.d.ts.map +0 -1
  191. package/dist/mtgate_api/core/pathSerializer.gen.js +0 -115
  192. package/dist/mtgate_api/core/pathSerializer.gen.js.map +0 -1
  193. package/dist/mtgate_api/core/queryKeySerializer.gen.d.ts +0 -19
  194. package/dist/mtgate_api/core/queryKeySerializer.gen.d.ts.map +0 -1
  195. package/dist/mtgate_api/core/queryKeySerializer.gen.js +0 -100
  196. package/dist/mtgate_api/core/queryKeySerializer.gen.js.map +0 -1
  197. package/dist/mtgate_api/core/serverSentEvents.gen.d.ts +0 -72
  198. package/dist/mtgate_api/core/serverSentEvents.gen.d.ts.map +0 -1
  199. package/dist/mtgate_api/core/serverSentEvents.gen.js +0 -138
  200. package/dist/mtgate_api/core/serverSentEvents.gen.js.map +0 -1
  201. package/dist/mtgate_api/core/types.gen.d.ts +0 -79
  202. package/dist/mtgate_api/core/types.gen.d.ts.map +0 -1
  203. package/dist/mtgate_api/core/types.gen.js +0 -3
  204. package/dist/mtgate_api/core/types.gen.js.map +0 -1
  205. package/dist/mtgate_api/core/utils.gen.d.ts +0 -20
  206. package/dist/mtgate_api/core/utils.gen.d.ts.map +0 -1
  207. package/dist/mtgate_api/core/utils.gen.js +0 -88
  208. package/dist/mtgate_api/core/utils.gen.js.map +0 -1
  209. package/dist/mtgate_api/index.d.ts +0 -3
  210. package/dist/mtgate_api/index.d.ts.map +0 -1
  211. package/dist/mtgate_api/index.js +0 -3
  212. package/dist/mtgate_api/index.js.map +0 -1
  213. package/dist/mtgate_api/schemas.gen.d.ts +0 -233
  214. package/dist/mtgate_api/schemas.gen.d.ts.map +0 -1
  215. package/dist/mtgate_api/schemas.gen.js +0 -277
  216. package/dist/mtgate_api/schemas.gen.js.map +0 -1
  217. package/dist/mtgate_api/sdk.gen.d.ts +0 -23
  218. package/dist/mtgate_api/sdk.gen.d.ts.map +0 -1
  219. package/dist/mtgate_api/sdk.gen.js +0 -31
  220. package/dist/mtgate_api/sdk.gen.js.map +0 -1
  221. package/dist/mtgate_api/types.gen.d.ts +0 -203
  222. package/dist/mtgate_api/types.gen.d.ts.map +0 -1
  223. package/dist/mtgate_api/types.gen.js +0 -3
  224. package/dist/mtgate_api/types.gen.js.map +0 -1
  225. package/dist/mtgate_api/zod.gen.d.ts +0 -321
  226. package/dist/mtgate_api/zod.gen.d.ts.map +0 -1
  227. package/dist/mtgate_api/zod.gen.js +0 -148
  228. package/dist/mtgate_api/zod.gen.js.map +0 -1
  229. package/dist/mtmai_api/@tanstack/react-query.gen.d.ts +0 -949
  230. package/dist/mtmai_api/@tanstack/react-query.gen.d.ts.map +0 -1
  231. package/dist/mtmai_api/@tanstack/react-query.gen.js +0 -917
  232. package/dist/mtmai_api/@tanstack/react-query.gen.js.map +0 -1
  233. package/dist/mtmai_api/client/client.gen.d.ts +0 -3
  234. package/dist/mtmai_api/client/client.gen.d.ts.map +0 -1
  235. package/dist/mtmai_api/client/client.gen.js +0 -236
  236. package/dist/mtmai_api/client/client.gen.js.map +0 -1
  237. package/dist/mtmai_api/client/index.d.ts +0 -9
  238. package/dist/mtmai_api/client/index.d.ts.map +0 -1
  239. package/dist/mtmai_api/client/index.js +0 -7
  240. package/dist/mtmai_api/client/index.js.map +0 -1
  241. package/dist/mtmai_api/client/types.gen.d.ts +0 -118
  242. package/dist/mtmai_api/client/types.gen.d.ts.map +0 -1
  243. package/dist/mtmai_api/client/types.gen.js +0 -3
  244. package/dist/mtmai_api/client/types.gen.js.map +0 -1
  245. package/dist/mtmai_api/client/utils.gen.d.ts +0 -34
  246. package/dist/mtmai_api/client/utils.gen.d.ts.map +0 -1
  247. package/dist/mtmai_api/client/utils.gen.js +0 -232
  248. package/dist/mtmai_api/client/utils.gen.js.map +0 -1
  249. package/dist/mtmai_api/client.gen.d.ts +0 -13
  250. package/dist/mtmai_api/client.gen.d.ts.map +0 -1
  251. package/dist/mtmai_api/client.gen.js +0 -4
  252. package/dist/mtmai_api/client.gen.js.map +0 -1
  253. package/dist/mtmai_api/core/auth.gen.d.ts +0 -19
  254. package/dist/mtmai_api/core/auth.gen.d.ts.map +0 -1
  255. package/dist/mtmai_api/core/auth.gen.js +0 -15
  256. package/dist/mtmai_api/core/auth.gen.js.map +0 -1
  257. package/dist/mtmai_api/core/bodySerializer.gen.d.ts +0 -26
  258. package/dist/mtmai_api/core/bodySerializer.gen.d.ts.map +0 -1
  259. package/dist/mtmai_api/core/bodySerializer.gen.js +0 -58
  260. package/dist/mtmai_api/core/bodySerializer.gen.js.map +0 -1
  261. package/dist/mtmai_api/core/params.gen.d.ts +0 -44
  262. package/dist/mtmai_api/core/params.gen.d.ts.map +0 -1
  263. package/dist/mtmai_api/core/params.gen.js +0 -101
  264. package/dist/mtmai_api/core/params.gen.js.map +0 -1
  265. package/dist/mtmai_api/core/pathSerializer.gen.d.ts +0 -34
  266. package/dist/mtmai_api/core/pathSerializer.gen.d.ts.map +0 -1
  267. package/dist/mtmai_api/core/pathSerializer.gen.js +0 -115
  268. package/dist/mtmai_api/core/pathSerializer.gen.js.map +0 -1
  269. package/dist/mtmai_api/core/queryKeySerializer.gen.d.ts +0 -19
  270. package/dist/mtmai_api/core/queryKeySerializer.gen.d.ts.map +0 -1
  271. package/dist/mtmai_api/core/queryKeySerializer.gen.js +0 -100
  272. package/dist/mtmai_api/core/queryKeySerializer.gen.js.map +0 -1
  273. package/dist/mtmai_api/core/serverSentEvents.gen.d.ts +0 -72
  274. package/dist/mtmai_api/core/serverSentEvents.gen.d.ts.map +0 -1
  275. package/dist/mtmai_api/core/serverSentEvents.gen.js +0 -138
  276. package/dist/mtmai_api/core/serverSentEvents.gen.js.map +0 -1
  277. package/dist/mtmai_api/core/types.gen.d.ts +0 -79
  278. package/dist/mtmai_api/core/types.gen.d.ts.map +0 -1
  279. package/dist/mtmai_api/core/types.gen.js +0 -3
  280. package/dist/mtmai_api/core/types.gen.js.map +0 -1
  281. package/dist/mtmai_api/core/utils.gen.d.ts +0 -20
  282. package/dist/mtmai_api/core/utils.gen.d.ts.map +0 -1
  283. package/dist/mtmai_api/core/utils.gen.js +0 -88
  284. package/dist/mtmai_api/core/utils.gen.js.map +0 -1
  285. package/dist/mtmai_api/index.d.ts +0 -3
  286. package/dist/mtmai_api/index.d.ts.map +0 -1
  287. package/dist/mtmai_api/index.js +0 -4
  288. package/dist/mtmai_api/index.js.map +0 -1
  289. package/dist/mtmai_api/schemas.gen.d.ts +0 -7721
  290. package/dist/mtmai_api/schemas.gen.d.ts.map +0 -1
  291. package/dist/mtmai_api/schemas.gen.js +0 -9774
  292. package/dist/mtmai_api/schemas.gen.js.map +0 -1
  293. package/dist/mtmai_api/sdk.gen.d.ts +0 -282
  294. package/dist/mtmai_api/sdk.gen.d.ts.map +0 -1
  295. package/dist/mtmai_api/sdk.gen.js +0 -404
  296. package/dist/mtmai_api/sdk.gen.js.map +0 -1
  297. package/dist/mtmai_api/types.gen.d.ts +0 -7152
  298. package/dist/mtmai_api/types.gen.d.ts.map +0 -1
  299. package/dist/mtmai_api/types.gen.js +0 -253
  300. package/dist/mtmai_api/types.gen.js.map +0 -1
  301. package/dist/mtmai_api/zod.gen.d.ts +0 -55827
  302. package/dist/mtmai_api/zod.gen.d.ts.map +0 -1
  303. package/dist/mtmai_api/zod.gen.js +0 -4805
  304. package/dist/mtmai_api/zod.gen.js.map +0 -1
  305. package/dist/openclaw/client-info.d.ts +0 -38
  306. package/dist/openclaw/client-info.d.ts.map +0 -1
  307. package/dist/openclaw/client-info.js +0 -38
  308. package/dist/openclaw/client-info.js.map +0 -1
  309. package/dist/openclaw/device-auth-utils.d.ts +0 -12
  310. package/dist/openclaw/device-auth-utils.d.ts.map +0 -1
  311. package/dist/openclaw/device-auth-utils.js +0 -16
  312. package/dist/openclaw/device-auth-utils.js.map +0 -1
  313. package/dist/openclaw/device-auth.d.ts +0 -21
  314. package/dist/openclaw/device-auth.d.ts.map +0 -1
  315. package/dist/openclaw/device-auth.js +0 -87
  316. package/dist/openclaw/device-auth.js.map +0 -1
  317. package/dist/openclaw/device-identity.d.ts +0 -8
  318. package/dist/openclaw/device-identity.d.ts.map +0 -1
  319. package/dist/openclaw/device-identity.js +0 -87
  320. package/dist/openclaw/device-identity.js.map +0 -1
  321. package/dist/openclaw/gateway.d.ts +0 -100
  322. package/dist/openclaw/gateway.d.ts.map +0 -1
  323. package/dist/openclaw/gateway.js +0 -302
  324. package/dist/openclaw/gateway.js.map +0 -1
  325. package/dist/openclaw/types.d.ts +0 -473
  326. package/dist/openclaw/types.d.ts.map +0 -1
  327. package/dist/openclaw/types.js +0 -2
  328. package/dist/openclaw/types.js.map +0 -1
  329. package/dist/supabase/use-sb-query/prefetch.d.ts +0 -10
  330. package/dist/supabase/use-sb-query/prefetch.d.ts.map +0 -1
  331. package/dist/supabase/use-sb-query/prefetch.js +0 -14
  332. package/dist/supabase/use-sb-query/prefetch.js.map +0 -1
  333. package/src/adk/api/client.ts +0 -46
  334. package/src/adk/core/constants/tool-icons.ts +0 -51
  335. package/src/adk/core/models/AgentBuilder.ts +0 -80
  336. package/src/adk/core/models/AgentRunRequest.ts +0 -33
  337. package/src/adk/core/models/Eval.ts +0 -70
  338. package/src/adk/core/models/LiveRequest.ts +0 -23
  339. package/src/adk/core/models/RuntimeConfig.ts +0 -33
  340. package/src/adk/core/models/Session.ts +0 -52
  341. package/src/adk/core/models/Trace.ts +0 -42
  342. package/src/adk/core/models/types.ts +0 -255
  343. package/src/cloud-account/platform-configs.ts +0 -73
  344. package/src/gomtmapi/@tanstack/react-query.gen.ts +0 -575
  345. package/src/gomtmapi/client/client.gen.ts +0 -311
  346. package/src/gomtmapi/client/index.ts +0 -25
  347. package/src/gomtmapi/client/types.gen.ts +0 -241
  348. package/src/gomtmapi/client/utils.gen.ts +0 -332
  349. package/src/gomtmapi/client.gen.ts +0 -16
  350. package/src/gomtmapi/core/auth.gen.ts +0 -42
  351. package/src/gomtmapi/core/bodySerializer.gen.ts +0 -100
  352. package/src/gomtmapi/core/params.gen.ts +0 -176
  353. package/src/gomtmapi/core/pathSerializer.gen.ts +0 -181
  354. package/src/gomtmapi/core/queryKeySerializer.gen.ts +0 -136
  355. package/src/gomtmapi/core/serverSentEvents.gen.ts +0 -266
  356. package/src/gomtmapi/core/types.gen.ts +0 -118
  357. package/src/gomtmapi/core/utils.gen.ts +0 -143
  358. package/src/gomtmapi/index.ts +0 -4
  359. package/src/gomtmapi/schemas.gen.ts +0 -596
  360. package/src/gomtmapi/sdk.gen.ts +0 -399
  361. package/src/gomtmapi/types.gen.ts +0 -962
  362. package/src/gomtmapi/zod.gen.ts +0 -507
  363. package/src/index.ts +0 -5
  364. package/src/lib/aisdk/types.ts +0 -8
  365. package/src/lib/logger/index.ts +0 -8
  366. package/src/lib/schema.ts +0 -50
  367. package/src/lib/utils.ts +0 -54
  368. package/src/mtgate_api/@tanstack/react-query.gen.ts +0 -142
  369. package/src/mtgate_api/client/client.gen.ts +0 -311
  370. package/src/mtgate_api/client/index.ts +0 -25
  371. package/src/mtgate_api/client/types.gen.ts +0 -241
  372. package/src/mtgate_api/client/utils.gen.ts +0 -332
  373. package/src/mtgate_api/client.gen.ts +0 -16
  374. package/src/mtgate_api/core/auth.gen.ts +0 -42
  375. package/src/mtgate_api/core/bodySerializer.gen.ts +0 -100
  376. package/src/mtgate_api/core/params.gen.ts +0 -176
  377. package/src/mtgate_api/core/pathSerializer.gen.ts +0 -181
  378. package/src/mtgate_api/core/queryKeySerializer.gen.ts +0 -136
  379. package/src/mtgate_api/core/serverSentEvents.gen.ts +0 -266
  380. package/src/mtgate_api/core/types.gen.ts +0 -118
  381. package/src/mtgate_api/core/utils.gen.ts +0 -143
  382. package/src/mtgate_api/index.ts +0 -4
  383. package/src/mtgate_api/schemas.gen.ts +0 -290
  384. package/src/mtgate_api/sdk.gen.ts +0 -54
  385. package/src/mtgate_api/types.gen.ts +0 -239
  386. package/src/mtgate_api/zod.gen.ts +0 -176
  387. package/src/mtmai_api/@tanstack/react-query.gen.ts +0 -1010
  388. package/src/mtmai_api/client/client.gen.ts +0 -311
  389. package/src/mtmai_api/client/index.ts +0 -25
  390. package/src/mtmai_api/client/types.gen.ts +0 -241
  391. package/src/mtmai_api/client/utils.gen.ts +0 -332
  392. package/src/mtmai_api/client.gen.ts +0 -16
  393. package/src/mtmai_api/core/auth.gen.ts +0 -42
  394. package/src/mtmai_api/core/bodySerializer.gen.ts +0 -100
  395. package/src/mtmai_api/core/params.gen.ts +0 -176
  396. package/src/mtmai_api/core/pathSerializer.gen.ts +0 -181
  397. package/src/mtmai_api/core/queryKeySerializer.gen.ts +0 -136
  398. package/src/mtmai_api/core/serverSentEvents.gen.ts +0 -266
  399. package/src/mtmai_api/core/types.gen.ts +0 -118
  400. package/src/mtmai_api/core/utils.gen.ts +0 -143
  401. package/src/mtmai_api/index.ts +0 -4
  402. package/src/mtmai_api/schemas.gen.ts +0 -9980
  403. package/src/mtmai_api/sdk.gen.ts +0 -471
  404. package/src/mtmai_api/types.gen.ts +0 -7609
  405. package/src/mtmai_api/zod.gen.ts +0 -5101
  406. package/src/openclaw/client-info.ts +0 -54
  407. package/src/openclaw/device-auth-utils.ts +0 -26
  408. package/src/openclaw/device-auth.ts +0 -99
  409. package/src/openclaw/device-identity.ts +0 -108
  410. package/src/openclaw/gateway.ts +0 -392
  411. package/src/openclaw/types.ts +0 -518
  412. package/src/sbmng/@tanstack/react-query.gen.ts +0 -3017
  413. package/src/sbmng/client/client.gen.ts +0 -311
  414. package/src/sbmng/client/index.ts +0 -25
  415. package/src/sbmng/client/types.gen.ts +0 -241
  416. package/src/sbmng/client/utils.gen.ts +0 -332
  417. package/src/sbmng/client.gen.ts +0 -16
  418. package/src/sbmng/core/auth.gen.ts +0 -42
  419. package/src/sbmng/core/bodySerializer.gen.ts +0 -100
  420. package/src/sbmng/core/params.gen.ts +0 -176
  421. package/src/sbmng/core/pathSerializer.gen.ts +0 -181
  422. package/src/sbmng/core/queryKeySerializer.gen.ts +0 -136
  423. package/src/sbmng/core/serverSentEvents.gen.ts +0 -266
  424. package/src/sbmng/core/types.gen.ts +0 -118
  425. package/src/sbmng/core/utils.gen.ts +0 -143
  426. package/src/sbmng/index.ts +0 -4
  427. package/src/sbmng/schemas.gen.ts +0 -9805
  428. package/src/sbmng/sdk.gen.ts +0 -1780
  429. package/src/sbmng/types.gen.ts +0 -8016
  430. package/src/supabase/auth-provider.tsx +0 -67
  431. package/src/supabase/context.tsx +0 -51
  432. package/src/supabase/cursor-pagination.ts +0 -155
  433. package/src/supabase/schema/browser.ts +0 -45
  434. package/src/supabase/schema/index.ts +0 -25
  435. package/src/supabase/supabase-client.ts +0 -30
  436. package/src/supabase/supabase.ts +0 -67
  437. package/src/supabase/use-sb-query/build-query-opts.ts +0 -56
  438. package/src/supabase/use-sb-query/key.ts +0 -57
  439. package/src/supabase/use-sb-query/prefetch.ts +0 -59
  440. package/src/supabase/use-sb-query/use-query.ts +0 -340
  441. package/src/supabase/use-sb-query/use-rpc-mutation.ts +0 -83
  442. package/src/supabase/use-sb-query/use-rpc-query.ts +0 -231
  443. package/src/supabase/utils.ts +0 -75
  444. package/src/types/database.schemas.ts +0 -4378
  445. package/src/types/database.types.ts +0 -4288
  446. package/src/types/index.ts +0 -102
@@ -1,241 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
-
3
- import type { Auth } from '../core/auth.gen';
4
- import type {
5
- ServerSentEventsOptions,
6
- ServerSentEventsResult,
7
- } from '../core/serverSentEvents.gen';
8
- import type {
9
- Client as CoreClient,
10
- Config as CoreConfig,
11
- } from '../core/types.gen';
12
- import type { Middleware } from './utils.gen';
13
-
14
- export type ResponseStyle = 'data' | 'fields';
15
-
16
- export interface Config<T extends ClientOptions = ClientOptions>
17
- extends Omit<RequestInit, 'body' | 'headers' | 'method'>,
18
- CoreConfig {
19
- /**
20
- * Base URL for all requests made by this client.
21
- */
22
- baseUrl?: T['baseUrl'];
23
- /**
24
- * Fetch API implementation. You can use this option to provide a custom
25
- * fetch instance.
26
- *
27
- * @default globalThis.fetch
28
- */
29
- fetch?: typeof fetch;
30
- /**
31
- * Please don't use the Fetch client for Next.js applications. The `next`
32
- * options won't have any effect.
33
- *
34
- * Install {@link https://www.npmjs.com/package/@hey-api/client-next `@hey-api/client-next`} instead.
35
- */
36
- next?: never;
37
- /**
38
- * Return the response data parsed in a specified format. By default, `auto`
39
- * will infer the appropriate method from the `Content-Type` response header.
40
- * You can override this behavior with any of the {@link Body} methods.
41
- * Select `stream` if you don't want to parse response data at all.
42
- *
43
- * @default 'auto'
44
- */
45
- parseAs?:
46
- | 'arrayBuffer'
47
- | 'auto'
48
- | 'blob'
49
- | 'formData'
50
- | 'json'
51
- | 'stream'
52
- | 'text';
53
- /**
54
- * Should we return only data or multiple fields (data, error, response, etc.)?
55
- *
56
- * @default 'fields'
57
- */
58
- responseStyle?: ResponseStyle;
59
- /**
60
- * Throw an error instead of returning it in the response?
61
- *
62
- * @default false
63
- */
64
- throwOnError?: T['throwOnError'];
65
- }
66
-
67
- export interface RequestOptions<
68
- TData = unknown,
69
- TResponseStyle extends ResponseStyle = 'fields',
70
- ThrowOnError extends boolean = boolean,
71
- Url extends string = string,
72
- > extends Config<{
73
- responseStyle: TResponseStyle;
74
- throwOnError: ThrowOnError;
75
- }>,
76
- Pick<
77
- ServerSentEventsOptions<TData>,
78
- | 'onSseError'
79
- | 'onSseEvent'
80
- | 'sseDefaultRetryDelay'
81
- | 'sseMaxRetryAttempts'
82
- | 'sseMaxRetryDelay'
83
- > {
84
- /**
85
- * Any body that you want to add to your request.
86
- *
87
- * {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
88
- */
89
- body?: unknown;
90
- path?: Record<string, unknown>;
91
- query?: Record<string, unknown>;
92
- /**
93
- * Security mechanism(s) to use for the request.
94
- */
95
- security?: ReadonlyArray<Auth>;
96
- url: Url;
97
- }
98
-
99
- export interface ResolvedRequestOptions<
100
- TResponseStyle extends ResponseStyle = 'fields',
101
- ThrowOnError extends boolean = boolean,
102
- Url extends string = string,
103
- > extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
104
- serializedBody?: string;
105
- }
106
-
107
- export type RequestResult<
108
- TData = unknown,
109
- TError = unknown,
110
- ThrowOnError extends boolean = boolean,
111
- TResponseStyle extends ResponseStyle = 'fields',
112
- > = ThrowOnError extends true
113
- ? Promise<
114
- TResponseStyle extends 'data'
115
- ? TData extends Record<string, unknown>
116
- ? TData[keyof TData]
117
- : TData
118
- : {
119
- data: TData extends Record<string, unknown>
120
- ? TData[keyof TData]
121
- : TData;
122
- request: Request;
123
- response: Response;
124
- }
125
- >
126
- : Promise<
127
- TResponseStyle extends 'data'
128
- ?
129
- | (TData extends Record<string, unknown>
130
- ? TData[keyof TData]
131
- : TData)
132
- | undefined
133
- : (
134
- | {
135
- data: TData extends Record<string, unknown>
136
- ? TData[keyof TData]
137
- : TData;
138
- error: undefined;
139
- }
140
- | {
141
- data: undefined;
142
- error: TError extends Record<string, unknown>
143
- ? TError[keyof TError]
144
- : TError;
145
- }
146
- ) & {
147
- request: Request;
148
- response: Response;
149
- }
150
- >;
151
-
152
- export interface ClientOptions {
153
- baseUrl?: string;
154
- responseStyle?: ResponseStyle;
155
- throwOnError?: boolean;
156
- }
157
-
158
- type MethodFn = <
159
- TData = unknown,
160
- TError = unknown,
161
- ThrowOnError extends boolean = false,
162
- TResponseStyle extends ResponseStyle = 'fields',
163
- >(
164
- options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>,
165
- ) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
166
-
167
- type SseFn = <
168
- TData = unknown,
169
- TError = unknown,
170
- ThrowOnError extends boolean = false,
171
- TResponseStyle extends ResponseStyle = 'fields',
172
- >(
173
- options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>,
174
- ) => Promise<ServerSentEventsResult<TData, TError>>;
175
-
176
- type RequestFn = <
177
- TData = unknown,
178
- TError = unknown,
179
- ThrowOnError extends boolean = false,
180
- TResponseStyle extends ResponseStyle = 'fields',
181
- >(
182
- options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'> &
183
- Pick<
184
- Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>,
185
- 'method'
186
- >,
187
- ) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
188
-
189
- type BuildUrlFn = <
190
- TData extends {
191
- body?: unknown;
192
- path?: Record<string, unknown>;
193
- query?: Record<string, unknown>;
194
- url: string;
195
- },
196
- >(
197
- options: TData & Options<TData>,
198
- ) => string;
199
-
200
- export type Client = CoreClient<
201
- RequestFn,
202
- Config,
203
- MethodFn,
204
- BuildUrlFn,
205
- SseFn
206
- > & {
207
- interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
208
- };
209
-
210
- /**
211
- * The `createClientConfig()` function will be called on client initialization
212
- * and the returned object will become the client's initial configuration.
213
- *
214
- * You may want to initialize your client this way instead of calling
215
- * `setConfig()`. This is useful for example if you're using Next.js
216
- * to ensure your client always has the correct values.
217
- */
218
- export type CreateClientConfig<T extends ClientOptions = ClientOptions> = (
219
- override?: Config<ClientOptions & T>,
220
- ) => Config<Required<ClientOptions> & T>;
221
-
222
- export interface TDataShape {
223
- body?: unknown;
224
- headers?: unknown;
225
- path?: unknown;
226
- query?: unknown;
227
- url: string;
228
- }
229
-
230
- type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
231
-
232
- export type Options<
233
- TData extends TDataShape = TDataShape,
234
- ThrowOnError extends boolean = boolean,
235
- TResponse = unknown,
236
- TResponseStyle extends ResponseStyle = 'fields',
237
- > = OmitKeys<
238
- RequestOptions<TResponse, TResponseStyle, ThrowOnError>,
239
- 'body' | 'path' | 'query' | 'url'
240
- > &
241
- ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
@@ -1,332 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
-
3
- import { getAuthToken } from '../core/auth.gen';
4
- import type { QuerySerializerOptions } from '../core/bodySerializer.gen';
5
- import { jsonBodySerializer } from '../core/bodySerializer.gen';
6
- import {
7
- serializeArrayParam,
8
- serializeObjectParam,
9
- serializePrimitiveParam,
10
- } from '../core/pathSerializer.gen';
11
- import { getUrl } from '../core/utils.gen';
12
- import type { Client, ClientOptions, Config, RequestOptions } from './types.gen';
13
-
14
- export const createQuerySerializer = <T = unknown>({
15
- parameters = {},
16
- ...args
17
- }: QuerySerializerOptions = {}) => {
18
- const querySerializer = (queryParams: T) => {
19
- const search: string[] = [];
20
- if (queryParams && typeof queryParams === 'object') {
21
- for (const name in queryParams) {
22
- const value = queryParams[name];
23
-
24
- if (value === undefined || value === null) {
25
- continue;
26
- }
27
-
28
- const options = parameters[name] || args;
29
-
30
- if (Array.isArray(value)) {
31
- const serializedArray = serializeArrayParam({
32
- allowReserved: options.allowReserved,
33
- explode: true,
34
- name,
35
- style: 'form',
36
- value,
37
- ...options.array,
38
- });
39
- if (serializedArray) search.push(serializedArray);
40
- } else if (typeof value === 'object') {
41
- const serializedObject = serializeObjectParam({
42
- allowReserved: options.allowReserved,
43
- explode: true,
44
- name,
45
- style: 'deepObject',
46
- value: value as Record<string, unknown>,
47
- ...options.object,
48
- });
49
- if (serializedObject) search.push(serializedObject);
50
- } else {
51
- const serializedPrimitive = serializePrimitiveParam({
52
- allowReserved: options.allowReserved,
53
- name,
54
- value: value as string,
55
- });
56
- if (serializedPrimitive) search.push(serializedPrimitive);
57
- }
58
- }
59
- }
60
- return search.join('&');
61
- };
62
- return querySerializer;
63
- };
64
-
65
- /**
66
- * Infers parseAs value from provided Content-Type header.
67
- */
68
- export const getParseAs = (
69
- contentType: string | null,
70
- ): Exclude<Config['parseAs'], 'auto'> => {
71
- if (!contentType) {
72
- // If no Content-Type header is provided, the best we can do is return the raw response body,
73
- // which is effectively the same as the 'stream' option.
74
- return 'stream';
75
- }
76
-
77
- const cleanContent = contentType.split(';')[0]?.trim();
78
-
79
- if (!cleanContent) {
80
- return;
81
- }
82
-
83
- if (
84
- cleanContent.startsWith('application/json') ||
85
- cleanContent.endsWith('+json')
86
- ) {
87
- return 'json';
88
- }
89
-
90
- if (cleanContent === 'multipart/form-data') {
91
- return 'formData';
92
- }
93
-
94
- if (
95
- ['application/', 'audio/', 'image/', 'video/'].some((type) =>
96
- cleanContent.startsWith(type),
97
- )
98
- ) {
99
- return 'blob';
100
- }
101
-
102
- if (cleanContent.startsWith('text/')) {
103
- return 'text';
104
- }
105
-
106
- return;
107
- };
108
-
109
- const checkForExistence = (
110
- options: Pick<RequestOptions, 'auth' | 'query'> & {
111
- headers: Headers;
112
- },
113
- name?: string,
114
- ): boolean => {
115
- if (!name) {
116
- return false;
117
- }
118
- if (
119
- options.headers.has(name) ||
120
- options.query?.[name] ||
121
- options.headers.get('Cookie')?.includes(`${name}=`)
122
- ) {
123
- return true;
124
- }
125
- return false;
126
- };
127
-
128
- export const setAuthParams = async ({
129
- security,
130
- ...options
131
- }: Pick<Required<RequestOptions>, 'security'> &
132
- Pick<RequestOptions, 'auth' | 'query'> & {
133
- headers: Headers;
134
- }) => {
135
- for (const auth of security) {
136
- if (checkForExistence(options, auth.name)) {
137
- continue;
138
- }
139
-
140
- const token = await getAuthToken(auth, options.auth);
141
-
142
- if (!token) {
143
- continue;
144
- }
145
-
146
- const name = auth.name ?? 'Authorization';
147
-
148
- switch (auth.in) {
149
- case 'query':
150
- if (!options.query) {
151
- options.query = {};
152
- }
153
- options.query[name] = token;
154
- break;
155
- case 'cookie':
156
- options.headers.append('Cookie', `${name}=${token}`);
157
- break;
158
- case 'header':
159
- default:
160
- options.headers.set(name, token);
161
- break;
162
- }
163
- }
164
- };
165
-
166
- export const buildUrl: Client['buildUrl'] = (options) =>
167
- getUrl({
168
- baseUrl: options.baseUrl as string,
169
- path: options.path,
170
- query: options.query,
171
- querySerializer:
172
- typeof options.querySerializer === 'function'
173
- ? options.querySerializer
174
- : createQuerySerializer(options.querySerializer),
175
- url: options.url,
176
- });
177
-
178
- export const mergeConfigs = (a: Config, b: Config): Config => {
179
- const config = { ...a, ...b };
180
- if (config.baseUrl?.endsWith('/')) {
181
- config.baseUrl = config.baseUrl.substring(0, config.baseUrl.length - 1);
182
- }
183
- config.headers = mergeHeaders(a.headers, b.headers);
184
- return config;
185
- };
186
-
187
- const headersEntries = (headers: Headers): Array<[string, string]> => {
188
- const entries: Array<[string, string]> = [];
189
- headers.forEach((value, key) => {
190
- entries.push([key, value]);
191
- });
192
- return entries;
193
- };
194
-
195
- export const mergeHeaders = (
196
- ...headers: Array<Required<Config>['headers'] | undefined>
197
- ): Headers => {
198
- const mergedHeaders = new Headers();
199
- for (const header of headers) {
200
- if (!header) {
201
- continue;
202
- }
203
-
204
- const iterator =
205
- header instanceof Headers
206
- ? headersEntries(header)
207
- : Object.entries(header);
208
-
209
- for (const [key, value] of iterator) {
210
- if (value === null) {
211
- mergedHeaders.delete(key);
212
- } else if (Array.isArray(value)) {
213
- for (const v of value) {
214
- mergedHeaders.append(key, v as string);
215
- }
216
- } else if (value !== undefined) {
217
- // assume object headers are meant to be JSON stringified, i.e. their
218
- // content value in OpenAPI specification is 'application/json'
219
- mergedHeaders.set(
220
- key,
221
- typeof value === 'object' ? JSON.stringify(value) : (value as string),
222
- );
223
- }
224
- }
225
- }
226
- return mergedHeaders;
227
- };
228
-
229
- type ErrInterceptor<Err, Res, Req, Options> = (
230
- error: Err,
231
- response: Res,
232
- request: Req,
233
- options: Options,
234
- ) => Err | Promise<Err>;
235
-
236
- type ReqInterceptor<Req, Options> = (
237
- request: Req,
238
- options: Options,
239
- ) => Req | Promise<Req>;
240
-
241
- type ResInterceptor<Res, Req, Options> = (
242
- response: Res,
243
- request: Req,
244
- options: Options,
245
- ) => Res | Promise<Res>;
246
-
247
- class Interceptors<Interceptor> {
248
- fns: Array<Interceptor | null> = [];
249
-
250
- clear(): void {
251
- this.fns = [];
252
- }
253
-
254
- eject(id: number | Interceptor): void {
255
- const index = this.getInterceptorIndex(id);
256
- if (this.fns[index]) {
257
- this.fns[index] = null;
258
- }
259
- }
260
-
261
- exists(id: number | Interceptor): boolean {
262
- const index = this.getInterceptorIndex(id);
263
- return Boolean(this.fns[index]);
264
- }
265
-
266
- getInterceptorIndex(id: number | Interceptor): number {
267
- if (typeof id === 'number') {
268
- return this.fns[id] ? id : -1;
269
- }
270
- return this.fns.indexOf(id);
271
- }
272
-
273
- update(
274
- id: number | Interceptor,
275
- fn: Interceptor,
276
- ): number | Interceptor | false {
277
- const index = this.getInterceptorIndex(id);
278
- if (this.fns[index]) {
279
- this.fns[index] = fn;
280
- return id;
281
- }
282
- return false;
283
- }
284
-
285
- use(fn: Interceptor): number {
286
- this.fns.push(fn);
287
- return this.fns.length - 1;
288
- }
289
- }
290
-
291
- export interface Middleware<Req, Res, Err, Options> {
292
- error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;
293
- request: Interceptors<ReqInterceptor<Req, Options>>;
294
- response: Interceptors<ResInterceptor<Res, Req, Options>>;
295
- }
296
-
297
- export const createInterceptors = <Req, Res, Err, Options>(): Middleware<
298
- Req,
299
- Res,
300
- Err,
301
- Options
302
- > => ({
303
- error: new Interceptors<ErrInterceptor<Err, Res, Req, Options>>(),
304
- request: new Interceptors<ReqInterceptor<Req, Options>>(),
305
- response: new Interceptors<ResInterceptor<Res, Req, Options>>(),
306
- });
307
-
308
- const defaultQuerySerializer = createQuerySerializer({
309
- allowReserved: false,
310
- array: {
311
- explode: true,
312
- style: 'form',
313
- },
314
- object: {
315
- explode: true,
316
- style: 'deepObject',
317
- },
318
- });
319
-
320
- const defaultHeaders = {
321
- 'Content-Type': 'application/json',
322
- };
323
-
324
- export const createConfig = <T extends ClientOptions = ClientOptions>(
325
- override: Config<Omit<ClientOptions, keyof T> & T> = {},
326
- ): Config<Omit<ClientOptions, keyof T> & T> => ({
327
- ...jsonBodySerializer,
328
- headers: defaultHeaders,
329
- parseAs: 'auto',
330
- querySerializer: defaultQuerySerializer,
331
- ...override,
332
- });
@@ -1,16 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
-
3
- import { type ClientOptions, type Config, createClient, createConfig } from './client';
4
- import type { ClientOptions as ClientOptions2 } from './types.gen';
5
-
6
- /**
7
- * The `createClientConfig()` function will be called on client initialization
8
- * and the returned object will become the client's initial configuration.
9
- *
10
- * You may want to initialize your client this way instead of calling
11
- * `setConfig()`. This is useful for example if you're using Next.js
12
- * to ensure your client always has the correct values.
13
- */
14
- export type CreateClientConfig<T extends ClientOptions = ClientOptions2> = (override?: Config<ClientOptions & T>) => Config<Required<ClientOptions> & T>;
15
-
16
- export const client = createClient(createConfig<ClientOptions2>({ baseUrl: 'https://mtgateapi.yuepa8.com' }));
@@ -1,42 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
-
3
- export type AuthToken = string | undefined;
4
-
5
- export interface Auth {
6
- /**
7
- * Which part of the request do we use to send the auth?
8
- *
9
- * @default 'header'
10
- */
11
- in?: 'header' | 'query' | 'cookie';
12
- /**
13
- * Header or query parameter name.
14
- *
15
- * @default 'Authorization'
16
- */
17
- name?: string;
18
- scheme?: 'basic' | 'bearer';
19
- type: 'apiKey' | 'http';
20
- }
21
-
22
- export const getAuthToken = async (
23
- auth: Auth,
24
- callback: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken,
25
- ): Promise<string | undefined> => {
26
- const token =
27
- typeof callback === 'function' ? await callback(auth) : callback;
28
-
29
- if (!token) {
30
- return;
31
- }
32
-
33
- if (auth.scheme === 'bearer') {
34
- return `Bearer ${token}`;
35
- }
36
-
37
- if (auth.scheme === 'basic') {
38
- return `Basic ${btoa(token)}`;
39
- }
40
-
41
- return token;
42
- };