mtmsdk 0.0.48 → 0.0.49

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 (236) hide show
  1. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts +2 -80
  2. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +1 -1
  3. package/dist/gomtmapi/@tanstack/react-query.gen.js +2 -176
  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 +14 -328
  10. package/dist/gomtmapi/schemas.gen.d.ts.map +1 -1
  11. package/dist/gomtmapi/schemas.gen.js +14 -341
  12. package/dist/gomtmapi/schemas.gen.js.map +1 -1
  13. package/dist/gomtmapi/sdk.gen.d.ts +2 -80
  14. package/dist/gomtmapi/sdk.gen.d.ts.map +1 -1
  15. package/dist/gomtmapi/sdk.gen.js +1 -135
  16. package/dist/gomtmapi/sdk.gen.js.map +1 -1
  17. package/dist/gomtmapi/types.gen.d.ts +10 -437
  18. package/dist/gomtmapi/types.gen.d.ts.map +1 -1
  19. package/dist/gomtmapi/zod.gen.d.ts +8 -308
  20. package/dist/gomtmapi/zod.gen.d.ts.map +1 -1
  21. package/dist/gomtmapi/zod.gen.js +4 -232
  22. package/dist/gomtmapi/zod.gen.js.map +1 -1
  23. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +1 -29
  24. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -1
  25. package/dist/mtgate_api/@tanstack/react-query.gen.js +1 -17
  26. package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -1
  27. package/dist/mtgate_api/index.d.ts +2 -2
  28. package/dist/mtgate_api/index.d.ts.map +1 -1
  29. package/dist/mtgate_api/index.js +1 -1
  30. package/dist/mtgate_api/index.js.map +1 -1
  31. package/dist/mtgate_api/sdk.gen.d.ts +1 -5
  32. package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
  33. package/dist/mtgate_api/sdk.gen.js +0 -4
  34. package/dist/mtgate_api/sdk.gen.js.map +1 -1
  35. package/dist/mtgate_api/types.gen.d.ts +0 -6
  36. package/dist/mtgate_api/types.gen.d.ts.map +1 -1
  37. package/dist/mtgate_api/zod.gen.d.ts +0 -5
  38. package/dist/mtgate_api/zod.gen.d.ts.map +1 -1
  39. package/dist/mtgate_api/zod.gen.js +0 -5
  40. package/dist/mtgate_api/zod.gen.js.map +1 -1
  41. package/dist/mtmai_api/index.d.ts +2 -2
  42. package/dist/mtmai_api/index.d.ts.map +1 -1
  43. package/dist/mtmai_api/index.js +1 -1
  44. package/dist/mtmai_api/index.js.map +1 -1
  45. package/dist/mtmai_api/zod.gen.d.ts +96 -96
  46. package/dist/openclaw/client-info.d.ts +0 -18
  47. package/dist/openclaw/client-info.d.ts.map +1 -1
  48. package/dist/openclaw/client-info.js +0 -6
  49. package/dist/openclaw/client-info.js.map +1 -1
  50. package/dist/openclaw/device-auth-utils.d.ts +3 -4
  51. package/dist/openclaw/device-auth-utils.d.ts.map +1 -1
  52. package/dist/openclaw/device-auth-utils.js +4 -8
  53. package/dist/openclaw/device-auth-utils.js.map +1 -1
  54. package/dist/openclaw/device-auth.d.ts.map +1 -1
  55. package/dist/openclaw/device-auth.js +5 -2
  56. package/dist/openclaw/device-auth.js.map +1 -1
  57. package/dist/openclaw/device-identity.js +2 -2
  58. package/dist/openclaw/device-identity.js.map +1 -1
  59. package/dist/openclaw/gateway.d.ts +19 -5
  60. package/dist/openclaw/gateway.d.ts.map +1 -1
  61. package/dist/openclaw/gateway.js +75 -37
  62. package/dist/openclaw/gateway.js.map +1 -1
  63. package/dist/sbmng/@tanstack/react-query.gen.d.ts +36 -8
  64. package/dist/sbmng/@tanstack/react-query.gen.d.ts.map +1 -1
  65. package/dist/sbmng/@tanstack/react-query.gen.js +22 -6
  66. package/dist/sbmng/@tanstack/react-query.gen.js.map +1 -1
  67. package/dist/sbmng/index.d.ts +2 -2
  68. package/dist/sbmng/index.d.ts.map +1 -1
  69. package/dist/sbmng/index.js +1 -1
  70. package/dist/sbmng/index.js.map +1 -1
  71. package/dist/sbmng/schemas.gen.d.ts +97 -34
  72. package/dist/sbmng/schemas.gen.d.ts.map +1 -1
  73. package/dist/sbmng/schemas.gen.js +120 -49
  74. package/dist/sbmng/schemas.gen.js.map +1 -1
  75. package/dist/sbmng/sdk.gen.d.ts +7 -3
  76. package/dist/sbmng/sdk.gen.d.ts.map +1 -1
  77. package/dist/sbmng/sdk.gen.js +11 -3
  78. package/dist/sbmng/sdk.gen.js.map +1 -1
  79. package/dist/sbmng/types.gen.d.ts +82 -30
  80. package/dist/sbmng/types.gen.d.ts.map +1 -1
  81. package/dist/supabase/schema/index.d.ts +0 -8
  82. package/dist/supabase/schema/index.d.ts.map +1 -1
  83. package/dist/supabase/schema/index.js +0 -5
  84. package/dist/supabase/schema/index.js.map +1 -1
  85. package/dist/supabase/supabase-client.d.ts +900 -719
  86. package/dist/supabase/supabase-client.d.ts.map +1 -1
  87. package/dist/supabase/supabase.d.ts +1836 -1474
  88. package/dist/supabase/supabase.d.ts.map +1 -1
  89. package/dist/supabase/use-sb-query/use-rpc-query.d.ts.map +1 -1
  90. package/dist/supabase/use-sb-query/use-rpc-query.js +2 -1
  91. package/dist/supabase/use-sb-query/use-rpc-query.js.map +1 -1
  92. package/dist/types/database.schemas.d.ts +999 -920
  93. package/dist/types/database.schemas.d.ts.map +1 -1
  94. package/dist/types/database.schemas.js +739 -435
  95. package/dist/types/database.schemas.js.map +1 -1
  96. package/dist/types/database.types.d.ts +919 -736
  97. package/dist/types/database.types.d.ts.map +1 -1
  98. package/dist/types/database.types.js +18 -2
  99. package/dist/types/database.types.js.map +1 -1
  100. package/dist/types/index.d.ts +35 -3
  101. package/dist/types/index.d.ts.map +1 -1
  102. package/dist/types/index.js +4 -1
  103. package/dist/types/index.js.map +1 -1
  104. package/package.json +4 -3
  105. package/src/gomtmapi/@tanstack/react-query.gen.ts +3 -185
  106. package/src/gomtmapi/index.ts +2 -2
  107. package/src/gomtmapi/schemas.gen.ts +14 -356
  108. package/src/gomtmapi/sdk.gen.ts +2 -144
  109. package/src/gomtmapi/types.gen.ts +10 -492
  110. package/src/gomtmapi/zod.gen.ts +4 -263
  111. package/src/mtgate_api/@tanstack/react-query.gen.ts +2 -20
  112. package/src/mtgate_api/index.ts +2 -2
  113. package/src/mtgate_api/sdk.gen.ts +1 -6
  114. package/src/mtgate_api/types.gen.ts +0 -7
  115. package/src/mtgate_api/zod.gen.ts +0 -6
  116. package/src/mtmai_api/index.ts +2 -2
  117. package/src/openclaw/client-info.ts +0 -9
  118. package/src/openclaw/device-auth-utils.ts +7 -12
  119. package/src/openclaw/device-auth.ts +5 -2
  120. package/src/openclaw/device-identity.ts +2 -2
  121. package/src/openclaw/gateway.ts +96 -50
  122. package/src/sbmng/@tanstack/react-query.gen.ts +25 -7
  123. package/src/sbmng/index.ts +2 -2
  124. package/src/sbmng/schemas.gen.ts +121 -49
  125. package/src/sbmng/sdk.gen.ts +13 -4
  126. package/src/sbmng/types.gen.ts +87 -30
  127. package/src/supabase/schema/index.ts +0 -5
  128. package/src/supabase/use-sb-query/use-rpc-query.ts +2 -1
  129. package/src/types/database.schemas.ts +948 -598
  130. package/src/types/database.types.ts +864 -674
  131. package/src/types/index.ts +20 -4
  132. package/dist/api_hatchet/@tanstack/react-query.gen.d.ts +0 -3017
  133. package/dist/api_hatchet/@tanstack/react-query.gen.d.ts.map +0 -1
  134. package/dist/api_hatchet/@tanstack/react-query.gen.js +0 -2776
  135. package/dist/api_hatchet/@tanstack/react-query.gen.js.map +0 -1
  136. package/dist/api_hatchet/client/client.gen.d.ts +0 -3
  137. package/dist/api_hatchet/client/client.gen.d.ts.map +0 -1
  138. package/dist/api_hatchet/client/client.gen.js +0 -236
  139. package/dist/api_hatchet/client/client.gen.js.map +0 -1
  140. package/dist/api_hatchet/client/index.d.ts +0 -9
  141. package/dist/api_hatchet/client/index.d.ts.map +0 -1
  142. package/dist/api_hatchet/client/index.js +0 -7
  143. package/dist/api_hatchet/client/index.js.map +0 -1
  144. package/dist/api_hatchet/client/types.gen.d.ts +0 -118
  145. package/dist/api_hatchet/client/types.gen.d.ts.map +0 -1
  146. package/dist/api_hatchet/client/types.gen.js +0 -3
  147. package/dist/api_hatchet/client/types.gen.js.map +0 -1
  148. package/dist/api_hatchet/client/utils.gen.d.ts +0 -34
  149. package/dist/api_hatchet/client/utils.gen.d.ts.map +0 -1
  150. package/dist/api_hatchet/client/utils.gen.js +0 -232
  151. package/dist/api_hatchet/client/utils.gen.js.map +0 -1
  152. package/dist/api_hatchet/client.gen.d.ts +0 -13
  153. package/dist/api_hatchet/client.gen.d.ts.map +0 -1
  154. package/dist/api_hatchet/client.gen.js +0 -4
  155. package/dist/api_hatchet/client.gen.js.map +0 -1
  156. package/dist/api_hatchet/core/auth.gen.d.ts +0 -19
  157. package/dist/api_hatchet/core/auth.gen.d.ts.map +0 -1
  158. package/dist/api_hatchet/core/auth.gen.js +0 -15
  159. package/dist/api_hatchet/core/auth.gen.js.map +0 -1
  160. package/dist/api_hatchet/core/bodySerializer.gen.d.ts +0 -26
  161. package/dist/api_hatchet/core/bodySerializer.gen.d.ts.map +0 -1
  162. package/dist/api_hatchet/core/bodySerializer.gen.js +0 -58
  163. package/dist/api_hatchet/core/bodySerializer.gen.js.map +0 -1
  164. package/dist/api_hatchet/core/params.gen.d.ts +0 -44
  165. package/dist/api_hatchet/core/params.gen.d.ts.map +0 -1
  166. package/dist/api_hatchet/core/params.gen.js +0 -101
  167. package/dist/api_hatchet/core/params.gen.js.map +0 -1
  168. package/dist/api_hatchet/core/pathSerializer.gen.d.ts +0 -34
  169. package/dist/api_hatchet/core/pathSerializer.gen.d.ts.map +0 -1
  170. package/dist/api_hatchet/core/pathSerializer.gen.js +0 -115
  171. package/dist/api_hatchet/core/pathSerializer.gen.js.map +0 -1
  172. package/dist/api_hatchet/core/queryKeySerializer.gen.d.ts +0 -19
  173. package/dist/api_hatchet/core/queryKeySerializer.gen.d.ts.map +0 -1
  174. package/dist/api_hatchet/core/queryKeySerializer.gen.js +0 -100
  175. package/dist/api_hatchet/core/queryKeySerializer.gen.js.map +0 -1
  176. package/dist/api_hatchet/core/serverSentEvents.gen.d.ts +0 -72
  177. package/dist/api_hatchet/core/serverSentEvents.gen.d.ts.map +0 -1
  178. package/dist/api_hatchet/core/serverSentEvents.gen.js +0 -138
  179. package/dist/api_hatchet/core/serverSentEvents.gen.js.map +0 -1
  180. package/dist/api_hatchet/core/types.gen.d.ts +0 -79
  181. package/dist/api_hatchet/core/types.gen.d.ts.map +0 -1
  182. package/dist/api_hatchet/core/types.gen.js +0 -3
  183. package/dist/api_hatchet/core/types.gen.js.map +0 -1
  184. package/dist/api_hatchet/core/utils.gen.d.ts +0 -20
  185. package/dist/api_hatchet/core/utils.gen.d.ts.map +0 -1
  186. package/dist/api_hatchet/core/utils.gen.js +0 -88
  187. package/dist/api_hatchet/core/utils.gen.js.map +0 -1
  188. package/dist/api_hatchet/index.d.ts +0 -3
  189. package/dist/api_hatchet/index.d.ts.map +0 -1
  190. package/dist/api_hatchet/index.js +0 -4
  191. package/dist/api_hatchet/index.js.map +0 -1
  192. package/dist/api_hatchet/schemas.gen.d.ts +0 -4068
  193. package/dist/api_hatchet/schemas.gen.d.ts.map +0 -1
  194. package/dist/api_hatchet/schemas.gen.js +0 -4743
  195. package/dist/api_hatchet/schemas.gen.js.map +0 -1
  196. package/dist/api_hatchet/sdk.gen.d.ts +0 -784
  197. package/dist/api_hatchet/sdk.gen.d.ts.map +0 -1
  198. package/dist/api_hatchet/sdk.gen.js +0 -1849
  199. package/dist/api_hatchet/sdk.gen.js.map +0 -1
  200. package/dist/api_hatchet/types.gen.d.ts +0 -6861
  201. package/dist/api_hatchet/types.gen.d.ts.map +0 -1
  202. package/dist/api_hatchet/types.gen.js +0 -209
  203. package/dist/api_hatchet/types.gen.js.map +0 -1
  204. package/dist/api_hatchet/zod.gen.d.ts +0 -10429
  205. package/dist/api_hatchet/zod.gen.d.ts.map +0 -1
  206. package/dist/api_hatchet/zod.gen.js +0 -2766
  207. package/dist/api_hatchet/zod.gen.js.map +0 -1
  208. package/dist/openclaw/uuid.d.ts +0 -6
  209. package/dist/openclaw/uuid.d.ts.map +0 -1
  210. package/dist/openclaw/uuid.js +0 -39
  211. package/dist/openclaw/uuid.js.map +0 -1
  212. package/dist/types/rpc.schemas.d.ts +0 -52
  213. package/dist/types/rpc.schemas.d.ts.map +0 -1
  214. package/dist/types/rpc.schemas.js +0 -108
  215. package/dist/types/rpc.schemas.js.map +0 -1
  216. package/src/api_hatchet/@tanstack/react-query.gen.ts +0 -3025
  217. package/src/api_hatchet/client/client.gen.ts +0 -311
  218. package/src/api_hatchet/client/index.ts +0 -25
  219. package/src/api_hatchet/client/types.gen.ts +0 -241
  220. package/src/api_hatchet/client/utils.gen.ts +0 -332
  221. package/src/api_hatchet/client.gen.ts +0 -16
  222. package/src/api_hatchet/core/auth.gen.ts +0 -42
  223. package/src/api_hatchet/core/bodySerializer.gen.ts +0 -100
  224. package/src/api_hatchet/core/params.gen.ts +0 -176
  225. package/src/api_hatchet/core/pathSerializer.gen.ts +0 -181
  226. package/src/api_hatchet/core/queryKeySerializer.gen.ts +0 -136
  227. package/src/api_hatchet/core/serverSentEvents.gen.ts +0 -266
  228. package/src/api_hatchet/core/types.gen.ts +0 -118
  229. package/src/api_hatchet/core/utils.gen.ts +0 -143
  230. package/src/api_hatchet/index.ts +0 -4
  231. package/src/api_hatchet/schemas.gen.ts +0 -4961
  232. package/src/api_hatchet/sdk.gen.ts +0 -1994
  233. package/src/api_hatchet/types.gen.ts +0 -7688
  234. package/src/api_hatchet/zod.gen.ts +0 -3230
  235. package/src/openclaw/uuid.ts +0 -48
  236. package/src/types/rpc.schemas.ts +0 -142
@@ -25,24 +25,6 @@ export const zAddContactResponse = z.object({
25
25
  user_id: z.optional(z.coerce.bigint().min(BigInt('-9223372036854775808'), { error: 'Invalid value: Expected int64 to be >= -9223372036854775808' }).max(BigInt('9223372036854775807'), { error: 'Invalid value: Expected int64 to be <= 9223372036854775807' }))
26
26
  });
27
27
 
28
- /**
29
- * AgentRunReq schema
30
- */
31
- export const zAgentRunReq = z.object({
32
- payload: z.optional(z.record(z.string(), z.unknown())),
33
- target_worker_id: z.optional(z.string()),
34
- type: z.string()
35
- });
36
-
37
- /**
38
- * AgentRunResp schema
39
- */
40
- export const zAgentRunResp = z.object({
41
- data: z.optional(z.unknown()),
42
- error: z.optional(z.string()),
43
- status: z.optional(z.string())
44
- });
45
-
46
28
  /**
47
29
  * AuthResponse schema
48
30
  */
@@ -87,20 +69,6 @@ export const zBrowserOpenResp = z.object({
87
69
  task_id: z.optional(z.string())
88
70
  });
89
71
 
90
- /**
91
- * ChatCompletionRequest schema
92
- */
93
- export const zChatCompletionRequest = z.object({
94
- max_tokens: z.optional(z.int()),
95
- messages: z.optional(z.array(z.object({
96
- content: z.optional(z.string()),
97
- role: z.optional(z.string())
98
- }))),
99
- model: z.optional(z.string()),
100
- stream: z.optional(z.boolean()),
101
- temperature: z.optional(z.number())
102
- });
103
-
104
72
  /**
105
73
  * CheckUpdateResponse schema
106
74
  */
@@ -115,29 +83,9 @@ export const zCheckUpdateResponse = z.object({
115
83
  */
116
84
  export const zCodeRunResult = z.object({
117
85
  duration: z.optional(z.number()),
118
- error: z.optional(z.string()),
119
- logs: z.optional(z.string()),
120
- result: z.optional(z.unknown()),
121
- status: z.optional(z.string())
122
- });
123
-
124
- /**
125
- * EditFileRequest schema
126
- */
127
- export const zEditFileRequest = z.object({
128
- file_path: z.string(),
129
- new_string: z.optional(z.string()),
130
- old_string: z.optional(z.string()),
131
- replace_all: z.optional(z.boolean())
132
- });
133
-
134
- /**
135
- * EditFileResponse schema
136
- */
137
- export const zEditFileResponse = z.object({
138
- diff: z.optional(z.string()),
139
- message: z.optional(z.string()),
140
- success: z.optional(z.boolean())
86
+ exitCode: z.optional(z.int()),
87
+ stderr: z.optional(z.string()),
88
+ stdout: z.optional(z.string())
141
89
  });
142
90
 
143
91
  /**
@@ -156,43 +104,6 @@ export const zHttpError = z.object({
156
104
  type: z.optional(z.string())
157
105
  });
158
106
 
159
- /**
160
- * HumanActionReq schema
161
- */
162
- export const zHumanActionReq = z.object({
163
- action_type: z.string(),
164
- message: z.string(),
165
- resource_id: z.optional(z.string())
166
- });
167
-
168
- /**
169
- * HumanActionResp schema
170
- */
171
- export const zHumanActionResp = z.object({
172
- client_action: z.optional(z.record(z.string(), z.string())),
173
- message: z.optional(z.string()),
174
- status: z.optional(z.string())
175
- });
176
-
177
- /**
178
- * ListDirRequest schema
179
- */
180
- export const zListDirRequest = z.object({
181
- path: z.string()
182
- });
183
-
184
- /**
185
- * ListDirResponse schema
186
- */
187
- export const zListDirResponse = z.object({
188
- entries: z.optional(z.array(z.object({
189
- is_dir: z.optional(z.boolean()),
190
- name: z.optional(z.string()),
191
- size: z.optional(z.coerce.bigint().min(BigInt('-9223372036854775808'), { error: 'Invalid value: Expected int64 to be >= -9223372036854775808' }).max(BigInt('9223372036854775807'), { error: 'Invalid value: Expected int64 to be <= 9223372036854775807' }))
192
- }))),
193
- error: z.optional(z.string())
194
- });
195
-
196
107
  /**
197
108
  * NapcatStatus schema
198
109
  */
@@ -230,52 +141,16 @@ export const zPerformUpgradeResponse = z.object({
230
141
  status: z.optional(z.string())
231
142
  });
232
143
 
233
- /**
234
- * ReadFilesRequest schema
235
- */
236
- export const zReadFilesRequest = z.object({
237
- paths: z.array(z.string())
238
- });
239
-
240
- /**
241
- * ReadFilesResponse schema
242
- */
243
- export const zReadFilesResponse = z.object({
244
- results: z.optional(z.array(z.object({
245
- content: z.optional(z.string()),
246
- error: z.optional(z.string()),
247
- file_path: z.optional(z.string())
248
- }))),
249
- summary: z.optional(z.string())
250
- });
251
-
252
144
  /**
253
145
  * RunCodeReq schema
254
146
  */
255
147
  export const zRunCodeReq = z.object({
256
148
  codeType: z.string().min(2),
257
149
  content: z.string().min(1),
258
- context: z.optional(z.record(z.string(), z.unknown())),
150
+ env: z.optional(z.record(z.string(), z.string())),
259
151
  timeout: z.optional(z.int())
260
152
  });
261
153
 
262
- /**
263
- * SearchFilesRequest schema
264
- */
265
- export const zSearchFilesRequest = z.object({
266
- glob: z.optional(z.string()),
267
- path: z.optional(z.string()),
268
- pattern: z.string()
269
- });
270
-
271
- /**
272
- * SearchFilesResponse schema
273
- */
274
- export const zSearchFilesResponse = z.object({
275
- error: z.optional(z.string()),
276
- matches: z.optional(z.array(z.string()))
277
- });
278
-
279
154
  /**
280
155
  * SendCodeRequest schema
281
156
  */
@@ -347,28 +222,6 @@ export const zStatusResponse = z.object({
347
222
  version: z.optional(z.string())
348
223
  });
349
224
 
350
- /**
351
- * TaskExecuteRequest schema
352
- */
353
- export const zTaskExecuteRequest = z.object({
354
- code: z.optional(z.string()),
355
- code_type: z.optional(z.string()),
356
- meta: z.optional(z.record(z.string(), z.unknown())),
357
- task_id: z.optional(z.string()),
358
- timeout_seconds: z.optional(z.int())
359
- });
360
-
361
- /**
362
- * TaskExecuteResponse schema
363
- */
364
- export const zTaskExecuteResponse = z.object({
365
- error: z.optional(z.string()),
366
- output: z.optional(z.string()),
367
- result: z.optional(z.record(z.string(), z.unknown())),
368
- success: z.optional(z.boolean()),
369
- task_id: z.optional(z.string())
370
- });
371
-
372
225
  /**
373
226
  * UserInfoRequest schema
374
227
  */
@@ -388,20 +241,6 @@ export const zString = z.string();
388
241
  */
389
242
  export const zUnknownInterface = z.unknown();
390
243
 
391
- export const zAgentRunData = z.object({
392
- body: zAgentRunReq,
393
- path: z.optional(z.never()),
394
- query: z.optional(z.never()),
395
- headers: z.optional(z.object({
396
- Accept: z.optional(z.string())
397
- }))
398
- });
399
-
400
- /**
401
- * OK
402
- */
403
- export const zAgentRunResponse = zAgentRunResp;
404
-
405
244
  export const zBrowserActionData = z.object({
406
245
  body: zBrowserActionReq,
407
246
  path: z.optional(z.never()),
@@ -430,62 +269,6 @@ export const zBrowserOpenData = z.object({
430
269
  */
431
270
  export const zBrowserOpenResponse = zBrowserOpenResp;
432
271
 
433
- export const zCoddingToolEditFileData = z.object({
434
- body: zEditFileRequest,
435
- path: z.optional(z.never()),
436
- query: z.optional(z.never()),
437
- headers: z.optional(z.object({
438
- Accept: z.optional(z.string())
439
- }))
440
- });
441
-
442
- /**
443
- * OK
444
- */
445
- export const zCoddingToolEditFileResponse = zEditFileResponse;
446
-
447
- export const zCoddingToolListDirData = z.object({
448
- body: zListDirRequest,
449
- path: z.optional(z.never()),
450
- query: z.optional(z.never()),
451
- headers: z.optional(z.object({
452
- Accept: z.optional(z.string())
453
- }))
454
- });
455
-
456
- /**
457
- * OK
458
- */
459
- export const zCoddingToolListDirResponse = zListDirResponse;
460
-
461
- export const zCoddingToolReadFilesData = z.object({
462
- body: zReadFilesRequest,
463
- path: z.optional(z.never()),
464
- query: z.optional(z.never()),
465
- headers: z.optional(z.object({
466
- Accept: z.optional(z.string())
467
- }))
468
- });
469
-
470
- /**
471
- * OK
472
- */
473
- export const zCoddingToolReadFilesResponse = zReadFilesResponse;
474
-
475
- export const zCoddingToolSearchFilesData = z.object({
476
- body: zSearchFilesRequest,
477
- path: z.optional(z.never()),
478
- query: z.optional(z.never()),
479
- headers: z.optional(z.object({
480
- Accept: z.optional(z.string())
481
- }))
482
- });
483
-
484
- /**
485
- * OK
486
- */
487
- export const zCoddingToolSearchFilesResponse = zSearchFilesResponse;
488
-
489
272
  export const zCodeRunData = z.object({
490
273
  body: zRunCodeReq,
491
274
  path: z.optional(z.never()),
@@ -513,20 +296,6 @@ export const zPostApiDbQueryQueryData = z.object({
513
296
  */
514
297
  export const zPostApiDbQueryQueryResponse = zUnknownInterface;
515
298
 
516
- export const zHumanRequestActionData = z.object({
517
- body: zHumanActionReq,
518
- path: z.optional(z.never()),
519
- query: z.optional(z.never()),
520
- headers: z.optional(z.object({
521
- Accept: z.optional(z.string())
522
- }))
523
- });
524
-
525
- /**
526
- * OK
527
- */
528
- export const zHumanRequestActionResponse = zHumanActionResp;
529
-
530
299
  export const zNapcatStartData = z.object({
531
300
  body: zStartNapcatRequest,
532
301
  path: z.optional(z.never()),
@@ -625,34 +394,6 @@ export const zGetApiSystemStatusData = z.object({
625
394
  */
626
395
  export const zGetApiSystemStatusResponse = zStatusResponse;
627
396
 
628
- export const zPostApiV1GeminiChatCompletionsData = z.object({
629
- body: zChatCompletionRequest,
630
- path: z.optional(z.never()),
631
- query: z.optional(z.never()),
632
- headers: z.optional(z.object({
633
- Accept: z.optional(z.string())
634
- }))
635
- });
636
-
637
- /**
638
- * OK
639
- */
640
- export const zPostApiV1GeminiChatCompletionsResponse = zUnknownInterface;
641
-
642
- export const zPostApiV1TaskExecuteData = z.object({
643
- body: zTaskExecuteRequest,
644
- path: z.optional(z.never()),
645
- query: z.optional(z.never()),
646
- headers: z.optional(z.object({
647
- Accept: z.optional(z.string())
648
- }))
649
- });
650
-
651
- /**
652
- * OK
653
- */
654
- export const zPostApiV1TaskExecuteResponse = zTaskExecuteResponse;
655
-
656
397
  export const zPostApiV1TelegramAuthPasswordData = z.object({
657
398
  body: zPasswordRequest,
658
399
  path: z.optional(z.never()),
@@ -3,8 +3,8 @@
3
3
  import { type DefaultError, queryOptions, type UseMutationOptions } from '@tanstack/react-query';
4
4
 
5
5
  import { client } from '../client.gen';
6
- import { adkAgentRun, agentChatList, agentQuickAction, agentRun, browserOpen, clawdSessionsList, humanTasksList, mcpApiHello, type Options } from '../sdk.gen';
7
- import type { AdkAgentRunData, AdkAgentRunResponse, AgentChatListData, AgentChatListResponse, AgentQuickActionData, AgentQuickActionResponse, AgentRunData, AgentRunResponse, BrowserOpenData, BrowserOpenResponse, ClawdSessionsListData, HumanTasksListData, HumanTasksListResponse, McpApiHelloData } from '../types.gen';
6
+ import { adkAgentRun, agentChatList, agentQuickAction, agentRun, browserOpen, humanTasksList, mcpApiHello, type Options } from '../sdk.gen';
7
+ import type { AdkAgentRunData, AdkAgentRunResponse, AgentChatListData, AgentChatListResponse, AgentQuickActionData, AgentQuickActionResponse, AgentRunData, AgentRunResponse, BrowserOpenData, BrowserOpenResponse, HumanTasksListData, HumanTasksListResponse, McpApiHelloData } from '../types.gen';
8
8
 
9
9
  export const adkAgentRunMutation = (options?: Partial<Options<AdkAgentRunData>>): UseMutationOptions<AdkAgentRunResponse, DefaultError, Options<AdkAgentRunData>> => {
10
10
  const mutationOptions: UseMutationOptions<AdkAgentRunResponse, DefaultError, Options<AdkAgentRunData>> = {
@@ -140,21 +140,3 @@ export const mcpApiHelloOptions = (options: Options<McpApiHelloData>) => queryOp
140
140
  },
141
141
  queryKey: mcpApiHelloQueryKey(options)
142
142
  });
143
-
144
- export const clawdSessionsListQueryKey = (options?: Options<ClawdSessionsListData>) => createQueryKey('clawdSessionsList', options);
145
-
146
- /**
147
- * List clawd sessions via WebSocket proxy using Gateway Protocol
148
- */
149
- export const clawdSessionsListOptions = (options?: Options<ClawdSessionsListData>) => queryOptions<unknown, DefaultError, unknown, ReturnType<typeof clawdSessionsListQueryKey>>({
150
- queryFn: async ({ queryKey, signal }) => {
151
- const { data } = await clawdSessionsList({
152
- ...options,
153
- ...queryKey[0],
154
- signal,
155
- throwOnError: true
156
- });
157
- return data;
158
- },
159
- queryKey: clawdSessionsListQueryKey(options)
160
- });
@@ -1,4 +1,4 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
 
3
- export { adkAgentRun, agentChatList, agentQuickAction, agentRun, browserOpen, clawdSessionsList, humanTasksList, mcpApiHello, type Options } from './sdk.gen';
4
- export type { AdkAgentRunData, AdkAgentRunResponse, AdkAgentRunResponses, AdkBlob, AdkCodeExecutionResult, AdkExecutableCode, AdkFileData, AdkFunctionCall, AdkFunctionResp, AdkPart, AgentChatItem, AgentChatListData, AgentChatListResponse, AgentChatListResponses, AgentQuickActionData, AgentQuickActionItem, AgentQuickActionResponse, AgentQuickActionResponses, AgentRunData, AgentRunReq, AgentRunResponse, AgentRunResponses, AgentRunResult, BrowserOpenData, BrowserOpenResponse, BrowserOpenResponses, ChatlistParams, ClawdSessionsListData, ClientOptions, GenaiContent, HumanTasksListData, HumanTasksListResponse, HumanTasksListResponses, McpApiHelloData, McpApiHelloResponses, MtAgentRunReq, ZMtAgentRun } from './types.gen';
3
+ export { adkAgentRun, agentChatList, agentQuickAction, agentRun, browserOpen, humanTasksList, mcpApiHello, type Options } from './sdk.gen';
4
+ export type { AdkAgentRunData, AdkAgentRunResponse, AdkAgentRunResponses, AdkBlob, AdkCodeExecutionResult, AdkExecutableCode, AdkFileData, AdkFunctionCall, AdkFunctionResp, AdkPart, AgentChatItem, AgentChatListData, AgentChatListResponse, AgentChatListResponses, AgentQuickActionData, AgentQuickActionItem, AgentQuickActionResponse, AgentQuickActionResponses, AgentRunData, AgentRunReq, AgentRunResponse, AgentRunResponses, AgentRunResult, BrowserOpenData, BrowserOpenResponse, BrowserOpenResponses, ChatlistParams, ClientOptions, GenaiContent, HumanTasksListData, HumanTasksListResponse, HumanTasksListResponses, McpApiHelloData, McpApiHelloResponses, MtAgentRunReq, ZMtAgentRun } from './types.gen';
@@ -2,7 +2,7 @@
2
2
 
3
3
  import type { Client, Options as Options2, TDataShape } from './client';
4
4
  import { client } from './client.gen';
5
- import type { AdkAgentRunData, AdkAgentRunResponses, AgentChatListData, AgentChatListResponses, AgentQuickActionData, AgentQuickActionResponses, AgentRunData, AgentRunResponses, BrowserOpenData, BrowserOpenResponses, ClawdSessionsListData, HumanTasksListData, HumanTasksListResponses, McpApiHelloData, McpApiHelloResponses } from './types.gen';
5
+ import type { AdkAgentRunData, AdkAgentRunResponses, AgentChatListData, AgentChatListResponses, AgentQuickActionData, AgentQuickActionResponses, AgentRunData, AgentRunResponses, BrowserOpenData, BrowserOpenResponses, HumanTasksListData, HumanTasksListResponses, McpApiHelloData, McpApiHelloResponses } from './types.gen';
6
6
 
7
7
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
8
8
  /**
@@ -52,8 +52,3 @@ export const agentQuickAction = <ThrowOnError extends boolean = false>(options?:
52
52
  export const humanTasksList = <ThrowOnError extends boolean = false>(options?: Options<HumanTasksListData, ThrowOnError>) => (options?.client ?? client).get<HumanTasksListResponses, unknown, ThrowOnError>({ url: '/api/cf/human/tasks/list', ...options });
53
53
 
54
54
  export const mcpApiHello = <ThrowOnError extends boolean = false>(options: Options<McpApiHelloData, ThrowOnError>) => (options.client ?? client).get<McpApiHelloResponses, unknown, ThrowOnError>({ url: '/api/cf/mcpapi/hello', ...options });
55
-
56
- /**
57
- * List clawd sessions via WebSocket proxy using Gateway Protocol
58
- */
59
- export const clawdSessionsList = <ThrowOnError extends boolean = false>(options?: Options<ClawdSessionsListData, ThrowOnError>) => (options?.client ?? client).get<unknown, unknown, ThrowOnError>({ url: '/api/cf/clawd/sessions', ...options });
@@ -237,10 +237,3 @@ export type McpApiHelloResponses = {
237
237
  */
238
238
  200: unknown;
239
239
  };
240
-
241
- export type ClawdSessionsListData = {
242
- body?: never;
243
- path?: never;
244
- query?: never;
245
- url: '/api/cf/clawd/sessions';
246
- };
@@ -174,9 +174,3 @@ export const zMcpApiHelloData = z.object({
174
174
  msg: z.string()
175
175
  })
176
176
  });
177
-
178
- export const zClawdSessionsListData = z.object({
179
- body: z.optional(z.never()),
180
- path: z.optional(z.never()),
181
- query: z.optional(z.never())
182
- });
@@ -1,4 +1,4 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
 
3
- export { agentsAgentrun, builderBuild, chatAgentChat, chatAgentExportConfig, chatAgentGetChatConfig, chatAgentGetProviders, chatAgentImportConfig, chatAgentUpdateChatConfig, chatAgentValidateApiKey, createItem, createSession, createSessionWithId, debugGetEventGraph, debugGetSessionTrace, debugGetTraceDict, deleteArtifact, deleteItem, deleteSession, evaluationAddSessionToEvalSet, evaluationCreateEvalSet, evaluationCreateEvalSetLegacy, evaluationDeleteEval, evaluationGetEval, evaluationGetEvalResult, evaluationGetEvalResultLegacy, evaluationListEvalResults, evaluationListEvalResultsLegacy, evaluationListEvalSets, evaluationListEvalSetsLegacy, evaluationListEvalsInEvalSet, evaluationListMetricsInfo, evaluationRunEval, evaluationRunEvalLegacy, evaluationUpdateEval, getAgentBuilder, getItem, getSession, listApps, listArtifactNames, listArtifactVersions, listItems, listSessions, loadArtifact, loadArtifactVersion, type Options, redirectDevUiAddSlash, redirectRootToDevUi, runAgent, runAgentSse, sandboxCheckSandboxStatus, sandboxStartNapcatSandbox, searchItems, updateItem } from './sdk.gen';
4
- export { type AddSessionToEvalSetRequest, type AgentDetailsInput, type AgentDetailsOutput, type AgentsAgentrunData, type AgentsAgentrunError, type AgentsAgentrunErrors, type AgentsAgentrunResponses, type ApiKey, type ApiKeyConfig, ApiKeyIn, type AppDetailsInput, type AppDetailsOutput, type AuthConfigGoogleServiceAccountConfig, type AuthConfigHttpBasicAuthConfig, type AuthConfigOauthConfig, type AuthConfigOidcConfig, type AuthCredentialInput, type AuthCredentialOutput, AuthCredentialTypes, AuthType, type AutomaticFunctionCallingConfig, type BaseCriterion, Behavior, type Blob, type BodyBuilderBuild, type BuilderBuildData, type BuilderBuildError, type BuilderBuildErrors, type BuilderBuildResponse, type BuilderBuildResponses, type CacheMetadata, type ChatAgentChatData, type ChatAgentChatError, type ChatAgentChatErrors, type ChatAgentChatResponse, type ChatAgentChatResponses, type ChatAgentExportConfigData, type ChatAgentExportConfigResponses, type ChatAgentGetChatConfigData, type ChatAgentGetChatConfigResponse, type ChatAgentGetChatConfigResponses, type ChatAgentGetProvidersData, type ChatAgentGetProvidersResponses, type ChatAgentImportConfigData, type ChatAgentImportConfigError, type ChatAgentImportConfigErrors, type ChatAgentImportConfigResponses, type ChatAgentUpdateChatConfigData, type ChatAgentUpdateChatConfigError, type ChatAgentUpdateChatConfigErrors, type ChatAgentUpdateChatConfigResponse, type ChatAgentUpdateChatConfigResponses, type ChatAgentValidateApiKeyData, type ChatAgentValidateApiKeyError, type ChatAgentValidateApiKeyErrors, type ChatAgentValidateApiKeyResponses, type ChatConfig, type ChatRequest, type ChatResponse, type CheckSandboxStatusRequest, type CheckSandboxStatusResponse, type ClientOptions, type CodeExecutionResult, type ContentInput, type ContentOutput, type CreateEvalSetRequest, type CreateItemData, type CreateItemError, type CreateItemErrors, type CreateItemResponse, type CreateItemResponses, type CreateSessionData, type CreateSessionError, type CreateSessionErrors, type CreateSessionRequest, type CreateSessionResponse, type CreateSessionResponses, type CreateSessionWithIdData, type CreateSessionWithIdError, type CreateSessionWithIdErrors, type CreateSessionWithIdResponse, type CreateSessionWithIdResponses, type DebugGetEventGraphData, type DebugGetEventGraphError, type DebugGetEventGraphErrors, type DebugGetEventGraphResponses, type DebugGetSessionTraceData, type DebugGetSessionTraceError, type DebugGetSessionTraceErrors, type DebugGetSessionTraceResponses, type DebugGetTraceDictData, type DebugGetTraceDictError, type DebugGetTraceDictErrors, type DebugGetTraceDictResponses, type DeleteArtifactData, type DeleteArtifactError, type DeleteArtifactErrors, type DeleteArtifactResponse, type DeleteArtifactResponses, type DeleteItemData, type DeleteItemError, type DeleteItemErrors, type DeleteItemResponses, type DeleteSessionData, type DeleteSessionError, type DeleteSessionErrors, type DeleteSessionResponse, type DeleteSessionResponses, type DynamicRetrievalConfig, DynamicRetrievalConfigMode, type EnterpriseWebSearch, type EvalCaseInput, type EvalCaseOutput, type EvalCaseResult, type EvalMetricInput, type EvalMetricOutput, type EvalMetricResult, type EvalMetricResultDetails, type EvalMetricResultPerInvocation, type EvalResult, type EvalSetInput, type EvalSetOutput, type EvalSetResult, EvalStatus, type EvaluationAddSessionToEvalSetData, type EvaluationAddSessionToEvalSetError, type EvaluationAddSessionToEvalSetErrors, type EvaluationAddSessionToEvalSetResponses, type EvaluationCreateEvalSetData, type EvaluationCreateEvalSetError, type EvaluationCreateEvalSetErrors, type EvaluationCreateEvalSetLegacyData, type EvaluationCreateEvalSetLegacyError, type EvaluationCreateEvalSetLegacyErrors, type EvaluationCreateEvalSetLegacyResponses, type EvaluationCreateEvalSetResponse, type EvaluationCreateEvalSetResponses, type EvaluationDeleteEvalData, type EvaluationDeleteEvalError, type EvaluationDeleteEvalErrors, type EvaluationDeleteEvalResponse, type EvaluationDeleteEvalResponses, type EvaluationGetEvalData, type EvaluationGetEvalError, type EvaluationGetEvalErrors, type EvaluationGetEvalResponse, type EvaluationGetEvalResponses, type EvaluationGetEvalResultData, type EvaluationGetEvalResultError, type EvaluationGetEvalResultErrors, type EvaluationGetEvalResultLegacyData, type EvaluationGetEvalResultLegacyError, type EvaluationGetEvalResultLegacyErrors, type EvaluationGetEvalResultLegacyResponse, type EvaluationGetEvalResultLegacyResponses, type EvaluationGetEvalResultResponse, type EvaluationGetEvalResultResponses, type EvaluationListEvalResultsData, type EvaluationListEvalResultsError, type EvaluationListEvalResultsErrors, type EvaluationListEvalResultsLegacyData, type EvaluationListEvalResultsLegacyError, type EvaluationListEvalResultsLegacyErrors, type EvaluationListEvalResultsLegacyResponse, type EvaluationListEvalResultsLegacyResponses, type EvaluationListEvalResultsResponse, type EvaluationListEvalResultsResponses, type EvaluationListEvalSetsData, type EvaluationListEvalSetsError, type EvaluationListEvalSetsErrors, type EvaluationListEvalSetsLegacyData, type EvaluationListEvalSetsLegacyError, type EvaluationListEvalSetsLegacyErrors, type EvaluationListEvalSetsLegacyResponse, type EvaluationListEvalSetsLegacyResponses, type EvaluationListEvalSetsResponse, type EvaluationListEvalSetsResponses, type EvaluationListEvalsInEvalSetData, type EvaluationListEvalsInEvalSetError, type EvaluationListEvalsInEvalSetErrors, type EvaluationListEvalsInEvalSetResponse, type EvaluationListEvalsInEvalSetResponses, type EvaluationListMetricsInfoData, type EvaluationListMetricsInfoError, type EvaluationListMetricsInfoErrors, type EvaluationListMetricsInfoResponse, type EvaluationListMetricsInfoResponses, type EvaluationRunEvalData, type EvaluationRunEvalError, type EvaluationRunEvalErrors, type EvaluationRunEvalLegacyData, type EvaluationRunEvalLegacyError, type EvaluationRunEvalLegacyErrors, type EvaluationRunEvalLegacyResponse, type EvaluationRunEvalLegacyResponses, type EvaluationRunEvalResponse, type EvaluationRunEvalResponses, type EvaluationUpdateEvalData, type EvaluationUpdateEvalError, type EvaluationUpdateEvalErrors, type EvaluationUpdateEvalResponses, type EventActionsInput, type EventActionsOutput, type EventCompactionInput, type EventCompactionOutput, type EventInput, type EventOutput, type ExecutableCode, FeatureSelectionPreference, type File, type FileData, FileSource, FileState, type FileStatus, FinishReason, type FunctionCall, type FunctionCallingConfig, FunctionCallingConfigMode, type FunctionDeclarationInput, type FunctionDeclarationOutput, type FunctionResponse, FunctionResponseScheduling, type GenerateContentConfigInput, type GenerateContentConfigOutput, type GenerateContentResponseUsageMetadataInput, type GenerateContentResponseUsageMetadataOutput, type GenerationConfigRoutingConfig, type GenerationConfigRoutingConfigAutoRoutingMode, type GenerationConfigRoutingConfigManualRoutingMode, type GetAgentBuilderData, type GetAgentBuilderError, type GetAgentBuilderErrors, type GetAgentBuilderResponse, type GetAgentBuilderResponses, type GetItemData, type GetItemError, type GetItemErrors, type GetItemResponse, type GetItemResponses, type GetSessionData, type GetSessionError, type GetSessionErrors, type GetSessionResponse, type GetSessionResponses, type GoogleAdkAuthAuthToolAuthConfigInput, type GoogleAdkAuthAuthToolAuthConfigOutput, type GoogleAdkEvaluationEvalMetricsInterval, type GoogleGenaiTypesAuthConfig, type GoogleGenaiTypesInterval, type GoogleGenaiTypesToolInput, type GoogleGenaiTypesToolOutput, type GoogleMapsInput, type GoogleMapsOutput, type GoogleSearchInput, type GoogleSearchOutput, type GoogleSearchRetrievalInput, type GoogleSearchRetrievalOutput, type GroundingChunkInput, type GroundingChunkOutput, type GroundingChunkRetrievedContextInput, type GroundingChunkRetrievedContextOutput, type GroundingChunkWeb, type GroundingMetadataInput, type GroundingMetadataOutput, type GroundingSupport, HarmBlockMethod, HarmBlockThreshold, HarmCategory, type HttpAuth, type HttpBase, type HttpBearer, type HttpCredentials, type HttpOptions, type HttpRetryOptions, type HttpValidationError, type IntermediateDataInput, type IntermediateDataOutput, type IntervalInput, type InvocationEventInput, type InvocationEventOutput, type InvocationEventsInput, type InvocationEventsOutput, type InvocationInput, type InvocationOutput, type Item, type JudgeModelOptionsInput, type JudgeModelOptionsOutput, Language, type LatLng, type ListAppsData, type ListAppsResponse, type ListAppsResponses, type ListArtifactNamesData, type ListArtifactNamesError, type ListArtifactNamesErrors, type ListArtifactNamesResponse, type ListArtifactNamesResponses, type ListArtifactVersionsData, type ListArtifactVersionsError, type ListArtifactVersionsErrors, type ListArtifactVersionsResponse, type ListArtifactVersionsResponses, type ListEvalResultsResponse, type ListEvalSetsResponse, type ListItemsData, type ListItemsError, type ListItemsErrors, type ListItemsResponse, type ListItemsResponses, type ListMetricsInfoResponse, type ListSessionsData, type ListSessionsError, type ListSessionsErrors, type ListSessionsResponse, type ListSessionsResponses, type LiveServerSessionResumptionUpdate, type LoadArtifactData, type LoadArtifactError, type LoadArtifactErrors, type LoadArtifactResponse, type LoadArtifactResponses, type LoadArtifactVersionData, type LoadArtifactVersionError, type LoadArtifactVersionErrors, type LoadArtifactVersionResponse, type LoadArtifactVersionResponses, type LogprobsResultCandidate, type LogprobsResultInput, type LogprobsResultOutput, type LogprobsResultTopCandidates, type McpTypesTool, MediaModality, MediaResolution, type MetricInfo, type MetricValueInfo, type ModalityTokenCount, type ModelSelectionConfig, type MultiSpeakerVoiceConfigInput, type MultiSpeakerVoiceConfigOutput, type OAuth2Auth, type OAuth2Input, type OAuth2Output, type OAuthFlowAuthorizationCode, type OAuthFlowClientCredentials, type OAuthFlowImplicit, type OAuthFlowPassword, type OAuthFlows, type OpenIdConnect, type OpenIdConnectWithConfig, Outcome, type PartInput, type PartOutput, type PrebuiltVoiceConfig, type RagChunk, type RagChunkPageSpan, type RagRetrievalConfigFilter, type RagRetrievalConfigHybridSearch, type RagRetrievalConfigInput, type RagRetrievalConfigOutput, type RagRetrievalConfigRanking, type RagRetrievalConfigRankingLlmRanker, type RagRetrievalConfigRankingRankService, type RedirectDevUiAddSlashData, type RedirectDevUiAddSlashResponses, type RedirectRootToDevUiData, type RedirectRootToDevUiResponses, type RetrievalConfig, type RetrievalInput, type RetrievalMetadata, type RetrievalOutput, type Rubric, type RubricContent, type RubricScore, type RunAgentData, type RunAgentError, type RunAgentErrors, type RunAgentRequest, type RunAgentResponse, type RunAgentResponses, type RunAgentSseData, type RunAgentSseError, type RunAgentSseErrors, type RunAgentSseResponses, type RunEvalRequest, type RunEvalResponse, type RunEvalResult, type SafetySetting, type SandboxCheckSandboxStatusData, type SandboxCheckSandboxStatusError, type SandboxCheckSandboxStatusErrors, type SandboxCheckSandboxStatusResponse, type SandboxCheckSandboxStatusResponses, type SandboxStartNapcatSandboxData, type SandboxStartNapcatSandboxError, type SandboxStartNapcatSandboxErrors, type SandboxStartNapcatSandboxResponse, type SandboxStartNapcatSandboxResponses, type SandboxStatusInfo, type SchemaInput, type SchemaOutput, type SearchEntryPoint, type SearchItemsData, type SearchItemsError, type SearchItemsErrors, type SearchItemsResponse, type SearchItemsResponses, SecuritySchemeType, type Segment, type ServiceAccount, type ServiceAccountCredential, type Session, type SessionInput, type SpeakerVoiceConfigInput, type SpeakerVoiceConfigOutput, type SpeechConfigInput, type SpeechConfigOutput, type StartNapcatRequest, type StartNapcatResponse, type ThinkingConfig, type ToolAnnotations, type ToolCodeExecution, type ToolConfigInput, type ToolConfigOutput, type ToolConfirmation, TrafficType, type Transcription, Type, type UpdateItemData, type UpdateItemError, type UpdateItemErrors, type UpdateItemResponse, type UpdateItemResponses, type UrlContext, type ValidationError, type VertexAiSearch, type VertexAiSearchDataStoreSpec, type VertexRagStoreInput, type VertexRagStoreOutput, type VertexRagStoreRagResource, type VideoMetadata, type VoiceConfig } from './types.gen';
3
+ export { agentsAgentrun, builderBuild, chatAgentChat, chatAgentExportConfig, chatAgentGetChatConfig, chatAgentGetProviders, chatAgentImportConfig, chatAgentUpdateChatConfig, chatAgentValidateApiKey, createItem, createSession, createSessionWithId, debugGetEventGraph, debugGetSessionTrace, debugGetTraceDict, deleteArtifact, deleteItem, deleteSession, evaluationAddSessionToEvalSet, evaluationCreateEvalSet, evaluationDeleteEval, evaluationGetEval, evaluationGetEvalResult, evaluationListEvalResults, evaluationListEvalSets, evaluationListEvalsInEvalSet, evaluationListMetricsInfo, evaluationRunEval, evaluationUpdateEval, getAgentBuilder, getItem, getSession, listApps, listArtifactNames, listArtifactVersions, listItems, listSessions, loadArtifact, loadArtifactVersion, type Options, redirectDevUiAddSlash, redirectRootToDevUi, runAgent, runAgentSse, sandboxCheckSandboxStatus, sandboxStartNapcatSandbox, searchItems, updateItem } from './sdk.gen';
4
+ export { type AddSessionToEvalSetRequest, type AgentDetailsInput, type AgentDetailsOutput, type AgentsAgentrunData, type AgentsAgentrunError, type AgentsAgentrunErrors, type AgentsAgentrunResponses, type ApiKey, type ApiKeyConfig, ApiKeyIn, type AppDetailsInput, type AppDetailsOutput, type AuthConfigGoogleServiceAccountConfig, type AuthConfigHttpBasicAuthConfig, type AuthConfigOauthConfig, type AuthConfigOidcConfig, type AuthCredentialInput, type AuthCredentialOutput, AuthCredentialTypes, AuthType, type AutomaticFunctionCallingConfig, type BaseCriterion, Behavior, type Blob, type BodyBuilderBuild, type BuilderBuildData, type BuilderBuildError, type BuilderBuildErrors, type BuilderBuildResponse, type BuilderBuildResponses, type CacheMetadata, type ChatAgentChatData, type ChatAgentChatError, type ChatAgentChatErrors, type ChatAgentChatResponse, type ChatAgentChatResponses, type ChatAgentExportConfigData, type ChatAgentExportConfigResponses, type ChatAgentGetChatConfigData, type ChatAgentGetChatConfigResponse, type ChatAgentGetChatConfigResponses, type ChatAgentGetProvidersData, type ChatAgentGetProvidersResponses, type ChatAgentImportConfigData, type ChatAgentImportConfigError, type ChatAgentImportConfigErrors, type ChatAgentImportConfigResponses, type ChatAgentUpdateChatConfigData, type ChatAgentUpdateChatConfigError, type ChatAgentUpdateChatConfigErrors, type ChatAgentUpdateChatConfigResponse, type ChatAgentUpdateChatConfigResponses, type ChatAgentValidateApiKeyData, type ChatAgentValidateApiKeyError, type ChatAgentValidateApiKeyErrors, type ChatAgentValidateApiKeyResponses, type ChatConfig, type ChatRequest, type ChatResponse, type CheckSandboxStatusRequest, type CheckSandboxStatusResponse, type ClientOptions, type CodeExecutionResult, type ContentInput, type ContentOutput, type CreateEvalSetRequest, type CreateItemData, type CreateItemError, type CreateItemErrors, type CreateItemResponse, type CreateItemResponses, type CreateSessionData, type CreateSessionError, type CreateSessionErrors, type CreateSessionRequest, type CreateSessionResponse, type CreateSessionResponses, type CreateSessionWithIdData, type CreateSessionWithIdError, type CreateSessionWithIdErrors, type CreateSessionWithIdResponse, type CreateSessionWithIdResponses, type DebugGetEventGraphData, type DebugGetEventGraphError, type DebugGetEventGraphErrors, type DebugGetEventGraphResponses, type DebugGetSessionTraceData, type DebugGetSessionTraceError, type DebugGetSessionTraceErrors, type DebugGetSessionTraceResponses, type DebugGetTraceDictData, type DebugGetTraceDictError, type DebugGetTraceDictErrors, type DebugGetTraceDictResponses, type DeleteArtifactData, type DeleteArtifactError, type DeleteArtifactErrors, type DeleteArtifactResponse, type DeleteArtifactResponses, type DeleteItemData, type DeleteItemError, type DeleteItemErrors, type DeleteItemResponses, type DeleteSessionData, type DeleteSessionError, type DeleteSessionErrors, type DeleteSessionResponse, type DeleteSessionResponses, type DynamicRetrievalConfig, DynamicRetrievalConfigMode, type EnterpriseWebSearch, type EvalCaseInput, type EvalCaseOutput, type EvalCaseResult, type EvalMetricInput, type EvalMetricOutput, type EvalMetricResult, type EvalMetricResultDetails, type EvalMetricResultPerInvocation, type EvalResult, type EvalSetInput, type EvalSetOutput, type EvalSetResult, EvalStatus, type EvaluationAddSessionToEvalSetData, type EvaluationAddSessionToEvalSetError, type EvaluationAddSessionToEvalSetErrors, type EvaluationAddSessionToEvalSetResponses, type EvaluationCreateEvalSetData, type EvaluationCreateEvalSetError, type EvaluationCreateEvalSetErrors, type EvaluationCreateEvalSetResponse, type EvaluationCreateEvalSetResponses, type EvaluationDeleteEvalData, type EvaluationDeleteEvalError, type EvaluationDeleteEvalErrors, type EvaluationDeleteEvalResponse, type EvaluationDeleteEvalResponses, type EvaluationGetEvalData, type EvaluationGetEvalError, type EvaluationGetEvalErrors, type EvaluationGetEvalResponse, type EvaluationGetEvalResponses, type EvaluationGetEvalResultData, type EvaluationGetEvalResultError, type EvaluationGetEvalResultErrors, type EvaluationGetEvalResultResponse, type EvaluationGetEvalResultResponses, type EvaluationListEvalResultsData, type EvaluationListEvalResultsError, type EvaluationListEvalResultsErrors, type EvaluationListEvalResultsResponse, type EvaluationListEvalResultsResponses, type EvaluationListEvalSetsData, type EvaluationListEvalSetsError, type EvaluationListEvalSetsErrors, type EvaluationListEvalSetsResponse, type EvaluationListEvalSetsResponses, type EvaluationListEvalsInEvalSetData, type EvaluationListEvalsInEvalSetError, type EvaluationListEvalsInEvalSetErrors, type EvaluationListEvalsInEvalSetResponse, type EvaluationListEvalsInEvalSetResponses, type EvaluationListMetricsInfoData, type EvaluationListMetricsInfoError, type EvaluationListMetricsInfoErrors, type EvaluationListMetricsInfoResponse, type EvaluationListMetricsInfoResponses, type EvaluationRunEvalData, type EvaluationRunEvalError, type EvaluationRunEvalErrors, type EvaluationRunEvalResponse, type EvaluationRunEvalResponses, type EvaluationUpdateEvalData, type EvaluationUpdateEvalError, type EvaluationUpdateEvalErrors, type EvaluationUpdateEvalResponses, type EventActionsInput, type EventActionsOutput, type EventCompactionInput, type EventCompactionOutput, type EventInput, type EventOutput, type ExecutableCode, FeatureSelectionPreference, type File, type FileData, FileSource, FileState, type FileStatus, FinishReason, type FunctionCall, type FunctionCallingConfig, FunctionCallingConfigMode, type FunctionDeclarationInput, type FunctionDeclarationOutput, type FunctionResponse, FunctionResponseScheduling, type GenerateContentConfigInput, type GenerateContentConfigOutput, type GenerateContentResponseUsageMetadataInput, type GenerateContentResponseUsageMetadataOutput, type GenerationConfigRoutingConfig, type GenerationConfigRoutingConfigAutoRoutingMode, type GenerationConfigRoutingConfigManualRoutingMode, type GetAgentBuilderData, type GetAgentBuilderError, type GetAgentBuilderErrors, type GetAgentBuilderResponse, type GetAgentBuilderResponses, type GetItemData, type GetItemError, type GetItemErrors, type GetItemResponse, type GetItemResponses, type GetSessionData, type GetSessionError, type GetSessionErrors, type GetSessionResponse, type GetSessionResponses, type GoogleAdkAuthAuthToolAuthConfigInput, type GoogleAdkAuthAuthToolAuthConfigOutput, type GoogleAdkEvaluationEvalMetricsInterval, type GoogleGenaiTypesAuthConfig, type GoogleGenaiTypesInterval, type GoogleGenaiTypesToolInput, type GoogleGenaiTypesToolOutput, type GoogleMapsInput, type GoogleMapsOutput, type GoogleSearchInput, type GoogleSearchOutput, type GoogleSearchRetrievalInput, type GoogleSearchRetrievalOutput, type GroundingChunkInput, type GroundingChunkOutput, type GroundingChunkRetrievedContextInput, type GroundingChunkRetrievedContextOutput, type GroundingChunkWeb, type GroundingMetadataInput, type GroundingMetadataOutput, type GroundingSupport, HarmBlockMethod, HarmBlockThreshold, HarmCategory, type HttpAuth, type HttpBase, type HttpBearer, type HttpCredentials, type HttpOptions, type HttpRetryOptions, type HttpValidationError, type IntermediateDataInput, type IntermediateDataOutput, type IntervalInput, type InvocationEventInput, type InvocationEventOutput, type InvocationEventsInput, type InvocationEventsOutput, type InvocationInput, type InvocationOutput, type Item, type JudgeModelOptionsInput, type JudgeModelOptionsOutput, Language, type LatLng, type ListAppsData, type ListAppsResponse, type ListAppsResponses, type ListArtifactNamesData, type ListArtifactNamesError, type ListArtifactNamesErrors, type ListArtifactNamesResponse, type ListArtifactNamesResponses, type ListArtifactVersionsData, type ListArtifactVersionsError, type ListArtifactVersionsErrors, type ListArtifactVersionsResponse, type ListArtifactVersionsResponses, type ListEvalResultsResponse, type ListEvalSetsResponse, type ListItemsData, type ListItemsError, type ListItemsErrors, type ListItemsResponse, type ListItemsResponses, type ListMetricsInfoResponse, type ListSessionsData, type ListSessionsError, type ListSessionsErrors, type ListSessionsResponse, type ListSessionsResponses, type LiveServerSessionResumptionUpdate, type LoadArtifactData, type LoadArtifactError, type LoadArtifactErrors, type LoadArtifactResponse, type LoadArtifactResponses, type LoadArtifactVersionData, type LoadArtifactVersionError, type LoadArtifactVersionErrors, type LoadArtifactVersionResponse, type LoadArtifactVersionResponses, type LogprobsResultCandidate, type LogprobsResultInput, type LogprobsResultOutput, type LogprobsResultTopCandidates, type McpTypesTool, MediaModality, MediaResolution, type MetricInfo, type MetricValueInfo, type ModalityTokenCount, type ModelSelectionConfig, type MultiSpeakerVoiceConfigInput, type MultiSpeakerVoiceConfigOutput, type OAuth2Auth, type OAuth2Input, type OAuth2Output, type OAuthFlowAuthorizationCode, type OAuthFlowClientCredentials, type OAuthFlowImplicit, type OAuthFlowPassword, type OAuthFlows, type OpenIdConnect, type OpenIdConnectWithConfig, Outcome, type PartInput, type PartOutput, type PrebuiltVoiceConfig, type RagChunk, type RagChunkPageSpan, type RagRetrievalConfigFilter, type RagRetrievalConfigHybridSearch, type RagRetrievalConfigInput, type RagRetrievalConfigOutput, type RagRetrievalConfigRanking, type RagRetrievalConfigRankingLlmRanker, type RagRetrievalConfigRankingRankService, type RedirectDevUiAddSlashData, type RedirectDevUiAddSlashResponses, type RedirectRootToDevUiData, type RedirectRootToDevUiResponses, type RetrievalConfig, type RetrievalInput, type RetrievalMetadata, type RetrievalOutput, type Rubric, type RubricContent, type RubricScore, type RunAgentData, type RunAgentError, type RunAgentErrors, type RunAgentRequest, type RunAgentResponse, type RunAgentResponses, type RunAgentSseData, type RunAgentSseError, type RunAgentSseErrors, type RunAgentSseResponses, type RunEvalRequest, type RunEvalResponse, type RunEvalResult, type SafetySetting, type SandboxCheckSandboxStatusData, type SandboxCheckSandboxStatusError, type SandboxCheckSandboxStatusErrors, type SandboxCheckSandboxStatusResponse, type SandboxCheckSandboxStatusResponses, type SandboxStartNapcatSandboxData, type SandboxStartNapcatSandboxError, type SandboxStartNapcatSandboxErrors, type SandboxStartNapcatSandboxResponse, type SandboxStartNapcatSandboxResponses, type SandboxStatusInfo, type SchemaInput, type SchemaOutput, type SearchEntryPoint, type SearchItemsData, type SearchItemsError, type SearchItemsErrors, type SearchItemsResponse, type SearchItemsResponses, SecuritySchemeType, type Segment, type ServiceAccount, type ServiceAccountCredential, type Session, type SessionInput, type SpeakerVoiceConfigInput, type SpeakerVoiceConfigOutput, type SpeechConfigInput, type SpeechConfigOutput, type StartNapcatRequest, type StartNapcatResponse, type ThinkingConfig, type ToolAnnotations, type ToolCodeExecution, type ToolConfigInput, type ToolConfigOutput, type ToolConfirmation, TrafficType, type Transcription, Type, type UpdateItemData, type UpdateItemError, type UpdateItemErrors, type UpdateItemResponse, type UpdateItemResponses, type UrlContext, type ValidationError, type VertexAiSearch, type VertexAiSearchDataStoreSpec, type VertexRagStoreInput, type VertexRagStoreOutput, type VertexRagStoreRagResource, type VideoMetadata, type VoiceConfig } from './types.gen';
@@ -11,15 +11,10 @@ export const GATEWAY_CLIENT_IDS = {
11
11
  TEST: "test",
12
12
  FINGERPRINT: "fingerprint",
13
13
  PROBE: "openclaw-probe",
14
- CLAWDBOT_CONTROL_UI: "clawdbot-control-ui",
15
14
  } as const;
16
15
 
17
16
  export type GatewayClientId = (typeof GATEWAY_CLIENT_IDS)[keyof typeof GATEWAY_CLIENT_IDS];
18
17
 
19
- // Back-compat naming (internal): these values are IDs, not display names.
20
- export const GATEWAY_CLIENT_NAMES = GATEWAY_CLIENT_IDS;
21
- export type GatewayClientName = GatewayClientId;
22
-
23
18
  export const GATEWAY_CLIENT_MODES = {
24
19
  WEBCHAT: "webchat",
25
20
  CLI: "cli",
@@ -52,10 +47,6 @@ export function normalizeGatewayClientId(raw?: string | null): GatewayClientId |
52
47
  return GATEWAY_CLIENT_ID_SET.has(normalized as GatewayClientId) ? (normalized as GatewayClientId) : undefined;
53
48
  }
54
49
 
55
- export function normalizeGatewayClientName(raw?: string | null): GatewayClientName | undefined {
56
- return normalizeGatewayClientId(raw);
57
- }
58
-
59
50
  export function normalizeGatewayClientMode(raw?: string | null): GatewayClientMode | undefined {
60
51
  const normalized = raw?.trim().toLowerCase();
61
52
  if (!normalized) return undefined;
@@ -1,21 +1,19 @@
1
1
  export interface DeviceAuthPayloadParams {
2
- version?: string;
3
- nonce?: string;
4
- scopes: string[];
5
- token?: string;
6
2
  deviceId: string;
7
3
  clientId: string;
8
4
  clientMode: string;
9
5
  role: string;
6
+ scopes: string[];
10
7
  signedAtMs: number;
8
+ token?: string | null;
9
+ nonce: string;
11
10
  }
12
11
 
13
12
  export function buildDeviceAuthPayload(params: DeviceAuthPayloadParams) {
14
- const version = params.version ?? (params.nonce ? "v2" : "v1");
15
13
  const scopes = params.scopes.join(",");
16
14
  const token = params.token ?? "";
17
- const base = [
18
- version,
15
+ return [
16
+ "v2",
19
17
  params.deviceId,
20
18
  params.clientId,
21
19
  params.clientMode,
@@ -23,9 +21,6 @@ export function buildDeviceAuthPayload(params: DeviceAuthPayloadParams) {
23
21
  scopes,
24
22
  String(params.signedAtMs),
25
23
  token,
26
- ];
27
- if (version === "v2") {
28
- base.push(params.nonce ?? "");
29
- }
30
- return base.join("|");
24
+ params.nonce,
25
+ ].join("|");
31
26
  }
@@ -11,7 +11,7 @@ type DeviceAuthStore = {
11
11
  tokens: Record<string, DeviceAuthEntry>;
12
12
  };
13
13
 
14
- const STORAGE_KEY = "moltbot.device.auth.v1";
14
+ const STORAGE_KEY = "openclaw.device.auth.v1";
15
15
 
16
16
  function normalizeRole(role: string): string {
17
17
  return role.trim();
@@ -90,7 +90,10 @@ export function clearDeviceAuthToken(params: { deviceId: string; role: string })
90
90
  if (!store || store.deviceId !== params.deviceId) return;
91
91
  const role = normalizeRole(params.role);
92
92
  if (!store.tokens[role]) return;
93
- const next = { ...store, tokens: { ...store.tokens } };
93
+ const next = {
94
+ ...store,
95
+ tokens: { ...store.tokens },
96
+ };
94
97
  delete next.tokens[role];
95
98
  writeStore(next);
96
99
  }
@@ -14,7 +14,7 @@ export type DeviceIdentity = {
14
14
  privateKey: string;
15
15
  };
16
16
 
17
- const STORAGE_KEY = "moltbot-device-identity-v1";
17
+ const STORAGE_KEY = "openclaw-device-identity-v1";
18
18
 
19
19
  function base64UrlEncode(bytes: Uint8Array): string {
20
20
  let binary = "";
@@ -38,7 +38,7 @@ function bytesToHex(bytes: Uint8Array): string {
38
38
  }
39
39
 
40
40
  async function fingerprintPublicKey(publicKey: Uint8Array): Promise<string> {
41
- const hash = await crypto.subtle.digest("SHA-256", publicKey as unknown as BufferSource);
41
+ const hash = await crypto.subtle.digest("SHA-256", publicKey.slice().buffer);
42
42
  return bytesToHex(new Uint8Array(hash));
43
43
  }
44
44