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,4805 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
- import { z } from 'zod';
3
- /**
4
- * APIKeyIn
5
- */
6
- export const zApiKeyIn = z.enum([
7
- 'query',
8
- 'header',
9
- 'cookie'
10
- ]);
11
- /**
12
- * AddSessionToEvalSetRequest
13
- */
14
- export const zAddSessionToEvalSetRequest = z.object({
15
- evalId: z.string(),
16
- sessionId: z.string(),
17
- userId: z.string()
18
- });
19
- /**
20
- * ApiKeyConfig
21
- *
22
- * Config for authentication with API key.
23
- */
24
- export const zApiKeyConfig = z.object({
25
- apiKeyString: z.optional(z.union([
26
- z.string(),
27
- z.null()
28
- ]))
29
- });
30
- /**
31
- * AuthConfigGoogleServiceAccountConfig
32
- *
33
- * Config for Google Service Account Authentication.
34
- */
35
- export const zAuthConfigGoogleServiceAccountConfig = z.object({
36
- serviceAccount: z.optional(z.union([
37
- z.string(),
38
- z.null()
39
- ]))
40
- });
41
- /**
42
- * AuthConfigHttpBasicAuthConfig
43
- *
44
- * Config for HTTP Basic Authentication.
45
- */
46
- export const zAuthConfigHttpBasicAuthConfig = z.object({
47
- credentialSecret: z.optional(z.union([
48
- z.string(),
49
- z.null()
50
- ]))
51
- });
52
- /**
53
- * AuthConfigOauthConfig
54
- *
55
- * Config for user oauth.
56
- */
57
- export const zAuthConfigOauthConfig = z.object({
58
- accessToken: z.optional(z.union([
59
- z.string(),
60
- z.null()
61
- ])),
62
- serviceAccount: z.optional(z.union([
63
- z.string(),
64
- z.null()
65
- ]))
66
- });
67
- /**
68
- * AuthConfigOidcConfig
69
- *
70
- * Config for user OIDC auth.
71
- */
72
- export const zAuthConfigOidcConfig = z.object({
73
- idToken: z.optional(z.union([
74
- z.string(),
75
- z.null()
76
- ])),
77
- serviceAccount: z.optional(z.union([
78
- z.string(),
79
- z.null()
80
- ]))
81
- });
82
- /**
83
- * AuthCredentialTypes
84
- *
85
- * Represents the type of authentication credential.
86
- */
87
- export const zAuthCredentialTypes = z.enum([
88
- 'apiKey',
89
- 'http',
90
- 'oauth2',
91
- 'openIdConnect',
92
- 'serviceAccount'
93
- ]);
94
- /**
95
- * AuthType
96
- *
97
- * Type of auth scheme.
98
- */
99
- export const zAuthType = z.enum([
100
- 'AUTH_TYPE_UNSPECIFIED',
101
- 'NO_AUTH',
102
- 'API_KEY_AUTH',
103
- 'HTTP_BASIC_AUTH',
104
- 'GOOGLE_SERVICE_ACCOUNT_AUTH',
105
- 'OAUTH',
106
- 'OIDC_AUTH'
107
- ]);
108
- /**
109
- * AutomaticFunctionCallingConfig
110
- *
111
- * The configuration for automatic function calling.
112
- */
113
- export const zAutomaticFunctionCallingConfig = z.object({
114
- disable: z.optional(z.union([
115
- z.boolean(),
116
- z.null()
117
- ])),
118
- maximumRemoteCalls: z.optional(z.union([
119
- z.int(),
120
- z.null()
121
- ])).default(10),
122
- ignoreCallHistory: z.optional(z.union([
123
- z.boolean(),
124
- z.null()
125
- ]))
126
- });
127
- /**
128
- * BaseCriterion
129
- *
130
- * Base creterion to use for an Eval Metric.
131
- */
132
- export const zBaseCriterion = z.object({
133
- threshold: z.number()
134
- });
135
- /**
136
- * Behavior
137
- *
138
- * Defines the function behavior. Defaults to `BLOCKING`.
139
- */
140
- export const zBehavior = z.enum([
141
- 'UNSPECIFIED',
142
- 'BLOCKING',
143
- 'NON_BLOCKING'
144
- ]);
145
- /**
146
- * Blob
147
- *
148
- * Content blob.
149
- */
150
- export const zBlob = z.object({
151
- displayName: z.optional(z.union([
152
- z.string(),
153
- z.null()
154
- ])),
155
- data: z.optional(z.union([
156
- z.string(),
157
- z.null()
158
- ])),
159
- mimeType: z.optional(z.union([
160
- z.string(),
161
- z.null()
162
- ]))
163
- });
164
- /**
165
- * Body_builder_build
166
- */
167
- export const zBodyBuilderBuild = z.object({
168
- files: z.array(z.string())
169
- });
170
- /**
171
- * CacheMetadata
172
- *
173
- * Metadata for context cache associated with LLM responses.
174
- *
175
- * This class stores cache identification, usage tracking, and lifecycle
176
- * information for a particular cache instance.
177
- *
178
- * Token counts (cached and total) are available in the LlmResponse.usage_metadata
179
- * and should be accessed from there to avoid duplication.
180
- *
181
- * Attributes:
182
- * cache_name: The full resource name of the cached content (e.g.,
183
- * 'projects/123/locations/us-central1/cachedContents/456')
184
- * expire_time: Unix timestamp when the cache expires
185
- * fingerprint: Hash of agent configuration (instruction + tools + model)
186
- * invocations_used: Number of invocations this cache has been used for
187
- * cached_contents_count: Number of contents stored in this cache
188
- * created_at: Unix timestamp when the cache was created
189
- */
190
- export const zCacheMetadata = z.object({
191
- cache_name: z.string(),
192
- expire_time: z.number(),
193
- fingerprint: z.string(),
194
- invocations_used: z.int().gte(0),
195
- cached_contents_count: z.int().gte(0),
196
- created_at: z.optional(z.union([
197
- z.number(),
198
- z.null()
199
- ]))
200
- });
201
- /**
202
- * ChatConfig
203
- *
204
- * 聊天配置
205
- */
206
- export const zChatConfig = z.object({
207
- provider: z.optional(z.string()).default('openai'),
208
- model_name: z.optional(z.string()).default('gpt-4o-mini'),
209
- api_key: z.optional(z.union([
210
- z.string(),
211
- z.null()
212
- ])),
213
- base_url: z.optional(z.union([
214
- z.string(),
215
- z.null()
216
- ])),
217
- max_turns: z.optional(z.int()).default(10),
218
- system_message: z.optional(z.string()).default('你是一个有用的AI助手,可以回答各种问题并提供帮助。')
219
- });
220
- /**
221
- * ChatRequest
222
- *
223
- * 聊天请求 - 兼容旧API格式
224
- */
225
- export const zChatRequest = z.object({
226
- message: z.string(),
227
- config: z.optional(z.union([
228
- zChatConfig,
229
- z.null()
230
- ]))
231
- });
232
- /**
233
- * ChatResponse
234
- *
235
- * 聊天响应 - 兼容旧API格式
236
- */
237
- export const zChatResponse = z.object({
238
- message: z.string(),
239
- success: z.optional(z.boolean()).default(true),
240
- error: z.optional(z.union([
241
- z.string(),
242
- z.null()
243
- ]))
244
- });
245
- /**
246
- * CheckSandboxStatusRequest
247
- */
248
- export const zCheckSandboxStatusRequest = z.object({
249
- sandboxIds: z.array(z.string())
250
- });
251
- /**
252
- * DynamicRetrievalConfigMode
253
- *
254
- * Config for the dynamic retrieval config mode.
255
- */
256
- export const zDynamicRetrievalConfigMode = z.enum(['MODE_UNSPECIFIED', 'MODE_DYNAMIC']);
257
- /**
258
- * DynamicRetrievalConfig
259
- *
260
- * Describes the options to customize dynamic retrieval.
261
- */
262
- export const zDynamicRetrievalConfig = z.object({
263
- mode: z.optional(z.union([
264
- zDynamicRetrievalConfigMode,
265
- z.null()
266
- ])),
267
- dynamicThreshold: z.optional(z.union([
268
- z.number(),
269
- z.null()
270
- ]))
271
- });
272
- /**
273
- * EnterpriseWebSearch
274
- *
275
- * Tool to search public web data, powered by Vertex AI Search and Sec4 compliance.
276
- */
277
- export const zEnterpriseWebSearch = z.record(z.string(), z.never());
278
- /**
279
- * EvalStatus
280
- */
281
- export const zEvalStatus = z.union([
282
- z.literal(1),
283
- z.literal(2),
284
- z.literal(3)
285
- ]);
286
- /**
287
- * FeatureSelectionPreference
288
- *
289
- * Options for feature selection preference.
290
- */
291
- export const zFeatureSelectionPreference = z.enum([
292
- 'FEATURE_SELECTION_PREFERENCE_UNSPECIFIED',
293
- 'PRIORITIZE_QUALITY',
294
- 'BALANCED',
295
- 'PRIORITIZE_COST'
296
- ]);
297
- /**
298
- * FileData
299
- *
300
- * URI based data.
301
- */
302
- export const zFileData = z.object({
303
- displayName: z.optional(z.union([
304
- z.string(),
305
- z.null()
306
- ])),
307
- fileUri: z.optional(z.union([
308
- z.string(),
309
- z.null()
310
- ])),
311
- mimeType: z.optional(z.union([
312
- z.string(),
313
- z.null()
314
- ]))
315
- });
316
- /**
317
- * FileSource
318
- *
319
- * Source of the File.
320
- */
321
- export const zFileSource = z.enum([
322
- 'SOURCE_UNSPECIFIED',
323
- 'UPLOADED',
324
- 'GENERATED'
325
- ]);
326
- /**
327
- * FileState
328
- *
329
- * State for the lifecycle of a File.
330
- */
331
- export const zFileState = z.enum([
332
- 'STATE_UNSPECIFIED',
333
- 'PROCESSING',
334
- 'ACTIVE',
335
- 'FAILED'
336
- ]);
337
- /**
338
- * FileStatus
339
- *
340
- * Status of a File that uses a common error model.
341
- */
342
- export const zFileStatus = z.object({
343
- details: z.optional(z.union([
344
- z.array(z.record(z.string(), z.unknown())),
345
- z.null()
346
- ])),
347
- message: z.optional(z.union([
348
- z.string(),
349
- z.null()
350
- ])),
351
- code: z.optional(z.union([
352
- z.int(),
353
- z.null()
354
- ]))
355
- });
356
- /**
357
- * File
358
- *
359
- * A file uploaded to the API.
360
- */
361
- export const zFile = z.object({
362
- name: z.optional(z.union([
363
- z.string(),
364
- z.null()
365
- ])),
366
- displayName: z.optional(z.union([
367
- z.string(),
368
- z.null()
369
- ])),
370
- mimeType: z.optional(z.union([
371
- z.string(),
372
- z.null()
373
- ])),
374
- sizeBytes: z.optional(z.union([
375
- z.int(),
376
- z.null()
377
- ])),
378
- createTime: z.optional(z.union([
379
- z.iso.datetime(),
380
- z.null()
381
- ])),
382
- expirationTime: z.optional(z.union([
383
- z.iso.datetime(),
384
- z.null()
385
- ])),
386
- updateTime: z.optional(z.union([
387
- z.iso.datetime(),
388
- z.null()
389
- ])),
390
- sha256Hash: z.optional(z.union([
391
- z.string(),
392
- z.null()
393
- ])),
394
- uri: z.optional(z.union([
395
- z.string(),
396
- z.null()
397
- ])),
398
- downloadUri: z.optional(z.union([
399
- z.string(),
400
- z.null()
401
- ])),
402
- state: z.optional(z.union([
403
- zFileState,
404
- z.null()
405
- ])),
406
- source: z.optional(z.union([
407
- zFileSource,
408
- z.null()
409
- ])),
410
- videoMetadata: z.optional(z.union([
411
- z.record(z.string(), z.unknown()),
412
- z.null()
413
- ])),
414
- error: z.optional(z.union([
415
- zFileStatus,
416
- z.null()
417
- ]))
418
- });
419
- /**
420
- * FinishReason
421
- *
422
- * Output only. The reason why the model stopped generating tokens.
423
- *
424
- * If empty, the model has not stopped generating the tokens.
425
- */
426
- export const zFinishReason = z.enum([
427
- 'FINISH_REASON_UNSPECIFIED',
428
- 'STOP',
429
- 'MAX_TOKENS',
430
- 'SAFETY',
431
- 'RECITATION',
432
- 'LANGUAGE',
433
- 'OTHER',
434
- 'BLOCKLIST',
435
- 'PROHIBITED_CONTENT',
436
- 'SPII',
437
- 'MALFORMED_FUNCTION_CALL',
438
- 'IMAGE_SAFETY',
439
- 'UNEXPECTED_TOOL_CALL'
440
- ]);
441
- /**
442
- * FunctionCall
443
- *
444
- * A function call.
445
- */
446
- export const zFunctionCall = z.object({
447
- id: z.optional(z.union([
448
- z.string(),
449
- z.null()
450
- ])),
451
- args: z.optional(z.union([
452
- z.record(z.string(), z.unknown()),
453
- z.null()
454
- ])),
455
- name: z.optional(z.union([
456
- z.string(),
457
- z.null()
458
- ]))
459
- });
460
- /**
461
- * FunctionCallingConfigMode
462
- *
463
- * Config for the function calling config mode.
464
- */
465
- export const zFunctionCallingConfigMode = z.enum([
466
- 'MODE_UNSPECIFIED',
467
- 'AUTO',
468
- 'ANY',
469
- 'NONE'
470
- ]);
471
- /**
472
- * FunctionCallingConfig
473
- *
474
- * Function calling config.
475
- */
476
- export const zFunctionCallingConfig = z.object({
477
- mode: z.optional(z.union([
478
- zFunctionCallingConfigMode,
479
- z.null()
480
- ])),
481
- allowedFunctionNames: z.optional(z.union([
482
- z.array(z.string()),
483
- z.null()
484
- ]))
485
- });
486
- /**
487
- * FunctionResponseScheduling
488
- *
489
- * Specifies how the response should be scheduled in the conversation.
490
- */
491
- export const zFunctionResponseScheduling = z.enum([
492
- 'SCHEDULING_UNSPECIFIED',
493
- 'SILENT',
494
- 'WHEN_IDLE',
495
- 'INTERRUPT'
496
- ]);
497
- /**
498
- * FunctionResponse
499
- *
500
- * A function response.
501
- */
502
- export const zFunctionResponse = z.object({
503
- willContinue: z.optional(z.union([
504
- z.boolean(),
505
- z.null()
506
- ])),
507
- scheduling: z.optional(z.union([
508
- zFunctionResponseScheduling,
509
- z.null()
510
- ])),
511
- id: z.optional(z.union([
512
- z.string(),
513
- z.null()
514
- ])),
515
- name: z.optional(z.union([
516
- z.string(),
517
- z.null()
518
- ])),
519
- response: z.optional(z.union([
520
- z.record(z.string(), z.unknown()),
521
- z.null()
522
- ]))
523
- });
524
- /**
525
- * GenerationConfigRoutingConfigAutoRoutingMode
526
- *
527
- * When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference.
528
- */
529
- export const zGenerationConfigRoutingConfigAutoRoutingMode = z.object({
530
- modelRoutingPreference: z.optional(z.union([
531
- z.enum([
532
- 'UNKNOWN',
533
- 'PRIORITIZE_QUALITY',
534
- 'BALANCED',
535
- 'PRIORITIZE_COST'
536
- ]),
537
- z.null()
538
- ]))
539
- });
540
- /**
541
- * GenerationConfigRoutingConfigManualRoutingMode
542
- *
543
- * When manual routing is set, the specified model will be used directly.
544
- */
545
- export const zGenerationConfigRoutingConfigManualRoutingMode = z.object({
546
- modelName: z.optional(z.union([
547
- z.string(),
548
- z.null()
549
- ]))
550
- });
551
- /**
552
- * GenerationConfigRoutingConfig
553
- *
554
- * The configuration for routing the request to a specific model.
555
- */
556
- export const zGenerationConfigRoutingConfig = z.object({
557
- autoMode: z.optional(z.union([
558
- zGenerationConfigRoutingConfigAutoRoutingMode,
559
- z.null()
560
- ])),
561
- manualMode: z.optional(z.union([
562
- zGenerationConfigRoutingConfigManualRoutingMode,
563
- z.null()
564
- ]))
565
- });
566
- /**
567
- * GoogleSearchRetrieval
568
- *
569
- * Tool to retrieve public web data for grounding, powered by Google.
570
- */
571
- export const zGoogleSearchRetrievalInput = z.object({
572
- dynamicRetrievalConfig: z.optional(z.union([
573
- zDynamicRetrievalConfig,
574
- z.null()
575
- ]))
576
- });
577
- /**
578
- * GoogleSearchRetrieval
579
- *
580
- * Tool to retrieve public web data for grounding, powered by Google.
581
- */
582
- export const zGoogleSearchRetrievalOutput = z.object({
583
- dynamicRetrievalConfig: z.optional(z.union([
584
- zDynamicRetrievalConfig,
585
- z.null()
586
- ]))
587
- });
588
- /**
589
- * GroundingChunkWeb
590
- *
591
- * Chunk from the web.
592
- */
593
- export const zGroundingChunkWeb = z.object({
594
- domain: z.optional(z.union([
595
- z.string(),
596
- z.null()
597
- ])),
598
- title: z.optional(z.union([
599
- z.string(),
600
- z.null()
601
- ])),
602
- uri: z.optional(z.union([
603
- z.string(),
604
- z.null()
605
- ]))
606
- });
607
- /**
608
- * HarmBlockMethod
609
- *
610
- * Optional.
611
- *
612
- * Specify if the threshold is used for probability or severity score. If not
613
- * specified, the threshold is used for probability score.
614
- */
615
- export const zHarmBlockMethod = z.enum([
616
- 'HARM_BLOCK_METHOD_UNSPECIFIED',
617
- 'SEVERITY',
618
- 'PROBABILITY'
619
- ]);
620
- /**
621
- * HarmBlockThreshold
622
- *
623
- * Required. The harm block threshold.
624
- */
625
- export const zHarmBlockThreshold = z.enum([
626
- 'HARM_BLOCK_THRESHOLD_UNSPECIFIED',
627
- 'BLOCK_LOW_AND_ABOVE',
628
- 'BLOCK_MEDIUM_AND_ABOVE',
629
- 'BLOCK_ONLY_HIGH',
630
- 'BLOCK_NONE',
631
- 'OFF'
632
- ]);
633
- /**
634
- * HarmCategory
635
- *
636
- * Required. Harm category.
637
- */
638
- export const zHarmCategory = z.enum([
639
- 'HARM_CATEGORY_UNSPECIFIED',
640
- 'HARM_CATEGORY_HATE_SPEECH',
641
- 'HARM_CATEGORY_DANGEROUS_CONTENT',
642
- 'HARM_CATEGORY_HARASSMENT',
643
- 'HARM_CATEGORY_SEXUALLY_EXPLICIT',
644
- 'HARM_CATEGORY_CIVIC_INTEGRITY'
645
- ]);
646
- /**
647
- * HttpCredentials
648
- *
649
- * Represents the secret token value for HTTP authentication, like user name, password, oauth token, etc.
650
- */
651
- export const zHttpCredentials = z.object({
652
- username: z.optional(z.union([
653
- z.string(),
654
- z.null()
655
- ])),
656
- password: z.optional(z.union([
657
- z.string(),
658
- z.null()
659
- ])),
660
- token: z.optional(z.union([
661
- z.string(),
662
- z.null()
663
- ]))
664
- });
665
- /**
666
- * HttpAuth
667
- *
668
- * The credentials and metadata for HTTP authentication.
669
- */
670
- export const zHttpAuth = z.object({
671
- scheme: z.string(),
672
- credentials: zHttpCredentials
673
- });
674
- /**
675
- * HttpRetryOptions
676
- *
677
- * HTTP retry options to be used in each of the requests.
678
- */
679
- export const zHttpRetryOptions = z.object({
680
- attempts: z.optional(z.union([
681
- z.int(),
682
- z.null()
683
- ])),
684
- initialDelay: z.optional(z.union([
685
- z.number(),
686
- z.null()
687
- ])),
688
- maxDelay: z.optional(z.union([
689
- z.number(),
690
- z.null()
691
- ])),
692
- expBase: z.optional(z.union([
693
- z.number(),
694
- z.null()
695
- ])),
696
- jitter: z.optional(z.union([
697
- z.number(),
698
- z.null()
699
- ])),
700
- httpStatusCodes: z.optional(z.union([
701
- z.array(z.int()),
702
- z.null()
703
- ]))
704
- });
705
- /**
706
- * HttpOptions
707
- *
708
- * HTTP options to be used in each of the requests.
709
- */
710
- export const zHttpOptions = z.object({
711
- baseUrl: z.optional(z.union([
712
- z.string(),
713
- z.null()
714
- ])),
715
- apiVersion: z.optional(z.union([
716
- z.string(),
717
- z.null()
718
- ])),
719
- headers: z.optional(z.union([
720
- z.record(z.string(), z.string()),
721
- z.null()
722
- ])),
723
- timeout: z.optional(z.union([
724
- z.int(),
725
- z.null()
726
- ])),
727
- clientArgs: z.optional(z.union([
728
- z.record(z.string(), z.unknown()),
729
- z.null()
730
- ])),
731
- asyncClientArgs: z.optional(z.union([
732
- z.record(z.string(), z.unknown()),
733
- z.null()
734
- ])),
735
- extraBody: z.optional(z.union([
736
- z.record(z.string(), z.unknown()),
737
- z.null()
738
- ])),
739
- retryOptions: z.optional(z.union([
740
- zHttpRetryOptions,
741
- z.null()
742
- ]))
743
- });
744
- /**
745
- * Interval
746
- *
747
- * Represents a time interval, encoded as a start time (inclusive) and an end time (exclusive).
748
- *
749
- * The start time must be less than or equal to the end time.
750
- * When the start equals the end time, the interval is an empty interval.
751
- * (matches no time)
752
- * When both start and end are unspecified, the interval matches any time.
753
- */
754
- export const zIntervalInput = z.object({
755
- startTime: z.optional(z.union([
756
- z.iso.datetime(),
757
- z.null()
758
- ])),
759
- endTime: z.optional(z.union([
760
- z.iso.datetime(),
761
- z.null()
762
- ]))
763
- });
764
- /**
765
- * GoogleSearch
766
- *
767
- * Tool to support Google Search in Model. Powered by Google.
768
- */
769
- export const zGoogleSearchInput = z.object({
770
- timeRangeFilter: z.optional(z.union([
771
- zIntervalInput,
772
- z.null()
773
- ]))
774
- });
775
- /**
776
- * Item
777
- */
778
- export const zItem = z.object({
779
- id: z.int(),
780
- name: z.string(),
781
- description: z.optional(z.union([
782
- z.string(),
783
- z.null()
784
- ])),
785
- price: z.number(),
786
- tags: z.optional(z.array(z.string())).default([])
787
- });
788
- /**
789
- * Language
790
- *
791
- * Required. Programming language of the `code`.
792
- */
793
- export const zLanguage = z.enum(['LANGUAGE_UNSPECIFIED', 'PYTHON']);
794
- /**
795
- * ExecutableCode
796
- *
797
- * Code generated by the model that is meant to be executed, and the result returned to the model.
798
- *
799
- * Generated when using the [FunctionDeclaration] tool and
800
- * [FunctionCallingConfig] mode is set to [Mode.CODE].
801
- */
802
- export const zExecutableCode = z.object({
803
- code: z.optional(z.union([
804
- z.string(),
805
- z.null()
806
- ])),
807
- language: z.optional(z.union([
808
- zLanguage,
809
- z.null()
810
- ]))
811
- });
812
- /**
813
- * LatLng
814
- *
815
- * An object that represents a latitude/longitude pair.
816
- *
817
- * This is expressed as a pair of doubles to represent degrees latitude and
818
- * degrees longitude. Unless specified otherwise, this object must conform to the
819
- * <a href="https://en.wikipedia.org/wiki/World_Geodetic_System#1984_version">
820
- * WGS84 standard</a>. Values must be within normalized ranges.
821
- */
822
- export const zLatLng = z.object({
823
- latitude: z.optional(z.union([
824
- z.number(),
825
- z.null()
826
- ])),
827
- longitude: z.optional(z.union([
828
- z.number(),
829
- z.null()
830
- ]))
831
- });
832
- /**
833
- * ListEvalResultsResponse
834
- */
835
- export const zListEvalResultsResponse = z.object({
836
- evalResultIds: z.array(z.string())
837
- });
838
- /**
839
- * ListEvalSetsResponse
840
- */
841
- export const zListEvalSetsResponse = z.object({
842
- evalSetIds: z.array(z.string())
843
- });
844
- /**
845
- * LiveServerSessionResumptionUpdate
846
- *
847
- * Update of the session resumption state.
848
- *
849
- * Only sent if `session_resumption` was set in the connection config.
850
- */
851
- export const zLiveServerSessionResumptionUpdate = z.object({
852
- newHandle: z.optional(z.union([
853
- z.string(),
854
- z.null()
855
- ])),
856
- resumable: z.optional(z.union([
857
- z.boolean(),
858
- z.null()
859
- ])),
860
- lastConsumedClientMessageIndex: z.optional(z.union([
861
- z.int(),
862
- z.null()
863
- ]))
864
- });
865
- /**
866
- * LogprobsResultCandidate
867
- *
868
- * Candidate for the logprobs token and score.
869
- */
870
- export const zLogprobsResultCandidate = z.object({
871
- logProbability: z.optional(z.union([
872
- z.number(),
873
- z.null()
874
- ])),
875
- token: z.optional(z.union([
876
- z.string(),
877
- z.null()
878
- ])),
879
- tokenId: z.optional(z.union([
880
- z.int(),
881
- z.null()
882
- ]))
883
- });
884
- /**
885
- * LogprobsResultTopCandidates
886
- *
887
- * Candidates with top log probabilities at each decoding step.
888
- */
889
- export const zLogprobsResultTopCandidates = z.object({
890
- candidates: z.optional(z.union([
891
- z.array(zLogprobsResultCandidate),
892
- z.null()
893
- ]))
894
- });
895
- /**
896
- * LogprobsResult
897
- *
898
- * Logprobs Result
899
- */
900
- export const zLogprobsResultInput = z.object({
901
- chosenCandidates: z.optional(z.union([
902
- z.array(zLogprobsResultCandidate),
903
- z.null()
904
- ])),
905
- topCandidates: z.optional(z.union([
906
- z.array(zLogprobsResultTopCandidates),
907
- z.null()
908
- ]))
909
- });
910
- /**
911
- * LogprobsResult
912
- *
913
- * Logprobs Result
914
- */
915
- export const zLogprobsResultOutput = z.object({
916
- chosenCandidates: z.optional(z.union([
917
- z.array(zLogprobsResultCandidate),
918
- z.null()
919
- ])),
920
- topCandidates: z.optional(z.union([
921
- z.array(zLogprobsResultTopCandidates),
922
- z.null()
923
- ]))
924
- });
925
- /**
926
- * MediaModality
927
- *
928
- * Server content modalities.
929
- */
930
- export const zMediaModality = z.enum([
931
- 'MODALITY_UNSPECIFIED',
932
- 'TEXT',
933
- 'IMAGE',
934
- 'VIDEO',
935
- 'AUDIO',
936
- 'DOCUMENT'
937
- ]);
938
- /**
939
- * MediaResolution
940
- *
941
- * The media resolution to use.
942
- */
943
- export const zMediaResolution = z.enum([
944
- 'MEDIA_RESOLUTION_UNSPECIFIED',
945
- 'MEDIA_RESOLUTION_LOW',
946
- 'MEDIA_RESOLUTION_MEDIUM',
947
- 'MEDIA_RESOLUTION_HIGH'
948
- ]);
949
- /**
950
- * ModalityTokenCount
951
- *
952
- * Represents token counting info for a single modality.
953
- */
954
- export const zModalityTokenCount = z.object({
955
- modality: z.optional(z.union([
956
- zMediaModality,
957
- z.null()
958
- ])),
959
- tokenCount: z.optional(z.union([
960
- z.int(),
961
- z.null()
962
- ]))
963
- });
964
- /**
965
- * ModelSelectionConfig
966
- *
967
- * Config for model selection.
968
- */
969
- export const zModelSelectionConfig = z.object({
970
- featureSelectionPreference: z.optional(z.union([
971
- zFeatureSelectionPreference,
972
- z.null()
973
- ]))
974
- });
975
- /**
976
- * OAuth2Auth
977
- *
978
- * Represents credential value and its metadata for a OAuth2 credential.
979
- */
980
- export const zOAuth2Auth = z.object({
981
- clientId: z.optional(z.union([
982
- z.string(),
983
- z.null()
984
- ])),
985
- clientSecret: z.optional(z.union([
986
- z.string(),
987
- z.null()
988
- ])),
989
- authUri: z.optional(z.union([
990
- z.string(),
991
- z.null()
992
- ])),
993
- state: z.optional(z.union([
994
- z.string(),
995
- z.null()
996
- ])),
997
- redirectUri: z.optional(z.union([
998
- z.string(),
999
- z.null()
1000
- ])),
1001
- authResponseUri: z.optional(z.union([
1002
- z.string(),
1003
- z.null()
1004
- ])),
1005
- authCode: z.optional(z.union([
1006
- z.string(),
1007
- z.null()
1008
- ])),
1009
- accessToken: z.optional(z.union([
1010
- z.string(),
1011
- z.null()
1012
- ])),
1013
- refreshToken: z.optional(z.union([
1014
- z.string(),
1015
- z.null()
1016
- ])),
1017
- expiresAt: z.optional(z.union([
1018
- z.int(),
1019
- z.null()
1020
- ])),
1021
- expiresIn: z.optional(z.union([
1022
- z.int(),
1023
- z.null()
1024
- ])),
1025
- audience: z.optional(z.union([
1026
- z.string(),
1027
- z.null()
1028
- ]))
1029
- });
1030
- /**
1031
- * OAuthFlowAuthorizationCode
1032
- */
1033
- export const zOAuthFlowAuthorizationCode = z.object({
1034
- refreshUrl: z.optional(z.union([
1035
- z.string(),
1036
- z.null()
1037
- ])),
1038
- scopes: z.optional(z.record(z.string(), z.string())).default({}),
1039
- authorizationUrl: z.string(),
1040
- tokenUrl: z.string()
1041
- });
1042
- /**
1043
- * OAuthFlowClientCredentials
1044
- */
1045
- export const zOAuthFlowClientCredentials = z.object({
1046
- refreshUrl: z.optional(z.union([
1047
- z.string(),
1048
- z.null()
1049
- ])),
1050
- scopes: z.optional(z.record(z.string(), z.string())).default({}),
1051
- tokenUrl: z.string()
1052
- });
1053
- /**
1054
- * OAuthFlowImplicit
1055
- */
1056
- export const zOAuthFlowImplicit = z.object({
1057
- refreshUrl: z.optional(z.union([
1058
- z.string(),
1059
- z.null()
1060
- ])),
1061
- scopes: z.optional(z.record(z.string(), z.string())).default({}),
1062
- authorizationUrl: z.string()
1063
- });
1064
- /**
1065
- * OAuthFlowPassword
1066
- */
1067
- export const zOAuthFlowPassword = z.object({
1068
- refreshUrl: z.optional(z.union([
1069
- z.string(),
1070
- z.null()
1071
- ])),
1072
- scopes: z.optional(z.record(z.string(), z.string())).default({}),
1073
- tokenUrl: z.string()
1074
- });
1075
- /**
1076
- * OAuthFlows
1077
- */
1078
- export const zOAuthFlows = z.object({
1079
- implicit: z.optional(z.union([
1080
- zOAuthFlowImplicit,
1081
- z.null()
1082
- ])),
1083
- password: z.optional(z.union([
1084
- zOAuthFlowPassword,
1085
- z.null()
1086
- ])),
1087
- clientCredentials: z.optional(z.union([
1088
- zOAuthFlowClientCredentials,
1089
- z.null()
1090
- ])),
1091
- authorizationCode: z.optional(z.union([
1092
- zOAuthFlowAuthorizationCode,
1093
- z.null()
1094
- ]))
1095
- });
1096
- /**
1097
- * Outcome
1098
- *
1099
- * Required. Outcome of the code execution.
1100
- */
1101
- export const zOutcome = z.enum([
1102
- 'OUTCOME_UNSPECIFIED',
1103
- 'OUTCOME_OK',
1104
- 'OUTCOME_FAILED',
1105
- 'OUTCOME_DEADLINE_EXCEEDED'
1106
- ]);
1107
- /**
1108
- * CodeExecutionResult
1109
- *
1110
- * Result of executing the [ExecutableCode].
1111
- *
1112
- * Always follows a `part` containing the [ExecutableCode].
1113
- */
1114
- export const zCodeExecutionResult = z.object({
1115
- outcome: z.optional(z.union([
1116
- zOutcome,
1117
- z.null()
1118
- ])),
1119
- output: z.optional(z.union([
1120
- z.string(),
1121
- z.null()
1122
- ]))
1123
- });
1124
- /**
1125
- * PrebuiltVoiceConfig
1126
- *
1127
- * The configuration for the prebuilt speaker to use.
1128
- */
1129
- export const zPrebuiltVoiceConfig = z.object({
1130
- voiceName: z.optional(z.union([
1131
- z.string(),
1132
- z.null()
1133
- ]))
1134
- });
1135
- /**
1136
- * RagChunkPageSpan
1137
- *
1138
- * Represents where the chunk starts and ends in the document.
1139
- */
1140
- export const zRagChunkPageSpan = z.object({
1141
- firstPage: z.optional(z.union([
1142
- z.int(),
1143
- z.null()
1144
- ])),
1145
- lastPage: z.optional(z.union([
1146
- z.int(),
1147
- z.null()
1148
- ]))
1149
- });
1150
- /**
1151
- * RagChunk
1152
- *
1153
- * A RagChunk includes the content of a chunk of a RagFile, and associated metadata.
1154
- */
1155
- export const zRagChunk = z.object({
1156
- pageSpan: z.optional(z.union([
1157
- zRagChunkPageSpan,
1158
- z.null()
1159
- ])),
1160
- text: z.optional(z.union([
1161
- z.string(),
1162
- z.null()
1163
- ]))
1164
- });
1165
- /**
1166
- * GroundingChunkRetrievedContext
1167
- *
1168
- * Chunk from context retrieved by the retrieval tools.
1169
- */
1170
- export const zGroundingChunkRetrievedContextInput = z.object({
1171
- ragChunk: z.optional(z.union([
1172
- zRagChunk,
1173
- z.null()
1174
- ])),
1175
- text: z.optional(z.union([
1176
- z.string(),
1177
- z.null()
1178
- ])),
1179
- title: z.optional(z.union([
1180
- z.string(),
1181
- z.null()
1182
- ])),
1183
- uri: z.optional(z.union([
1184
- z.string(),
1185
- z.null()
1186
- ]))
1187
- });
1188
- /**
1189
- * GroundingChunk
1190
- *
1191
- * Grounding chunk.
1192
- */
1193
- export const zGroundingChunkInput = z.object({
1194
- retrievedContext: z.optional(z.union([
1195
- zGroundingChunkRetrievedContextInput,
1196
- z.null()
1197
- ])),
1198
- web: z.optional(z.union([
1199
- zGroundingChunkWeb,
1200
- z.null()
1201
- ]))
1202
- });
1203
- /**
1204
- * GroundingChunkRetrievedContext
1205
- *
1206
- * Chunk from context retrieved by the retrieval tools.
1207
- */
1208
- export const zGroundingChunkRetrievedContextOutput = z.object({
1209
- ragChunk: z.optional(z.union([
1210
- zRagChunk,
1211
- z.null()
1212
- ])),
1213
- text: z.optional(z.union([
1214
- z.string(),
1215
- z.null()
1216
- ])),
1217
- title: z.optional(z.union([
1218
- z.string(),
1219
- z.null()
1220
- ])),
1221
- uri: z.optional(z.union([
1222
- z.string(),
1223
- z.null()
1224
- ]))
1225
- });
1226
- /**
1227
- * GroundingChunk
1228
- *
1229
- * Grounding chunk.
1230
- */
1231
- export const zGroundingChunkOutput = z.object({
1232
- retrievedContext: z.optional(z.union([
1233
- zGroundingChunkRetrievedContextOutput,
1234
- z.null()
1235
- ])),
1236
- web: z.optional(z.union([
1237
- zGroundingChunkWeb,
1238
- z.null()
1239
- ]))
1240
- });
1241
- /**
1242
- * RagRetrievalConfigFilter
1243
- *
1244
- * Config for filters.
1245
- */
1246
- export const zRagRetrievalConfigFilter = z.object({
1247
- metadataFilter: z.optional(z.union([
1248
- z.string(),
1249
- z.null()
1250
- ])),
1251
- vectorDistanceThreshold: z.optional(z.union([
1252
- z.number(),
1253
- z.null()
1254
- ])),
1255
- vectorSimilarityThreshold: z.optional(z.union([
1256
- z.number(),
1257
- z.null()
1258
- ]))
1259
- });
1260
- /**
1261
- * RagRetrievalConfigHybridSearch
1262
- *
1263
- * Config for Hybrid Search.
1264
- */
1265
- export const zRagRetrievalConfigHybridSearch = z.object({
1266
- alpha: z.optional(z.union([
1267
- z.number(),
1268
- z.null()
1269
- ]))
1270
- });
1271
- /**
1272
- * RagRetrievalConfigRankingLlmRanker
1273
- *
1274
- * Config for LlmRanker.
1275
- */
1276
- export const zRagRetrievalConfigRankingLlmRanker = z.object({
1277
- modelName: z.optional(z.union([
1278
- z.string(),
1279
- z.null()
1280
- ]))
1281
- });
1282
- /**
1283
- * RagRetrievalConfigRankingRankService
1284
- *
1285
- * Config for Rank Service.
1286
- */
1287
- export const zRagRetrievalConfigRankingRankService = z.object({
1288
- modelName: z.optional(z.union([
1289
- z.string(),
1290
- z.null()
1291
- ]))
1292
- });
1293
- /**
1294
- * RagRetrievalConfigRanking
1295
- *
1296
- * Config for ranking and reranking.
1297
- */
1298
- export const zRagRetrievalConfigRanking = z.object({
1299
- llmRanker: z.optional(z.union([
1300
- zRagRetrievalConfigRankingLlmRanker,
1301
- z.null()
1302
- ])),
1303
- rankService: z.optional(z.union([
1304
- zRagRetrievalConfigRankingRankService,
1305
- z.null()
1306
- ]))
1307
- });
1308
- /**
1309
- * RagRetrievalConfig
1310
- *
1311
- * Specifies the context retrieval config.
1312
- */
1313
- export const zRagRetrievalConfigInput = z.object({
1314
- filter: z.optional(z.union([
1315
- zRagRetrievalConfigFilter,
1316
- z.null()
1317
- ])),
1318
- hybridSearch: z.optional(z.union([
1319
- zRagRetrievalConfigHybridSearch,
1320
- z.null()
1321
- ])),
1322
- ranking: z.optional(z.union([
1323
- zRagRetrievalConfigRanking,
1324
- z.null()
1325
- ])),
1326
- topK: z.optional(z.union([
1327
- z.int(),
1328
- z.null()
1329
- ]))
1330
- });
1331
- /**
1332
- * RagRetrievalConfig
1333
- *
1334
- * Specifies the context retrieval config.
1335
- */
1336
- export const zRagRetrievalConfigOutput = z.object({
1337
- filter: z.optional(z.union([
1338
- zRagRetrievalConfigFilter,
1339
- z.null()
1340
- ])),
1341
- hybridSearch: z.optional(z.union([
1342
- zRagRetrievalConfigHybridSearch,
1343
- z.null()
1344
- ])),
1345
- ranking: z.optional(z.union([
1346
- zRagRetrievalConfigRanking,
1347
- z.null()
1348
- ])),
1349
- topK: z.optional(z.union([
1350
- z.int(),
1351
- z.null()
1352
- ]))
1353
- });
1354
- /**
1355
- * RetrievalConfig
1356
- *
1357
- * Retrieval config.
1358
- */
1359
- export const zRetrievalConfig = z.object({
1360
- latLng: z.optional(z.union([
1361
- zLatLng,
1362
- z.null()
1363
- ])),
1364
- languageCode: z.optional(z.union([
1365
- z.string(),
1366
- z.null()
1367
- ]))
1368
- });
1369
- /**
1370
- * RetrievalMetadata
1371
- *
1372
- * Metadata related to retrieval in the grounding flow.
1373
- */
1374
- export const zRetrievalMetadata = z.object({
1375
- googleSearchDynamicRetrievalScore: z.optional(z.union([
1376
- z.number(),
1377
- z.null()
1378
- ]))
1379
- });
1380
- /**
1381
- * RubricContent
1382
- *
1383
- * The content of a rubric.
1384
- */
1385
- export const zRubricContent = z.object({
1386
- textProperty: z.union([
1387
- z.string(),
1388
- z.null()
1389
- ])
1390
- });
1391
- /**
1392
- * Rubric
1393
- *
1394
- * This class represents a single Rubric.
1395
- */
1396
- export const zRubric = z.object({
1397
- rubricId: z.string(),
1398
- rubricContent: zRubricContent,
1399
- description: z.optional(z.union([
1400
- z.string(),
1401
- z.null()
1402
- ])),
1403
- type: z.optional(z.union([
1404
- z.string(),
1405
- z.null()
1406
- ]))
1407
- });
1408
- /**
1409
- * RubricScore
1410
- *
1411
- * The score obtained after applying the rubric to the Agent's response.
1412
- */
1413
- export const zRubricScore = z.object({
1414
- rubricId: z.string(),
1415
- rationale: z.optional(z.union([
1416
- z.string(),
1417
- z.null()
1418
- ])),
1419
- score: z.optional(z.union([
1420
- z.number(),
1421
- z.null()
1422
- ]))
1423
- });
1424
- /**
1425
- * EvalMetricResultDetails
1426
- */
1427
- export const zEvalMetricResultDetails = z.object({
1428
- rubricScores: z.optional(z.union([
1429
- z.array(zRubricScore),
1430
- z.null()
1431
- ]))
1432
- });
1433
- /**
1434
- * SafetySetting
1435
- *
1436
- * Safety settings.
1437
- */
1438
- export const zSafetySetting = z.object({
1439
- method: z.optional(z.union([
1440
- zHarmBlockMethod,
1441
- z.null()
1442
- ])),
1443
- category: z.optional(z.union([
1444
- zHarmCategory,
1445
- z.null()
1446
- ])),
1447
- threshold: z.optional(z.union([
1448
- zHarmBlockThreshold,
1449
- z.null()
1450
- ]))
1451
- });
1452
- /**
1453
- * SandboxStatusInfo
1454
- *
1455
- * 沙盒状态信息
1456
- */
1457
- export const zSandboxStatusInfo = z.object({
1458
- sandboxId: z.string(),
1459
- status: z.string(),
1460
- error: z.optional(z.union([
1461
- z.string(),
1462
- z.null()
1463
- ]))
1464
- });
1465
- /**
1466
- * CheckSandboxStatusResponse
1467
- */
1468
- export const zCheckSandboxStatusResponse = z.object({
1469
- results: z.optional(z.array(zSandboxStatusInfo)),
1470
- total_checked: z.int()
1471
- });
1472
- /**
1473
- * SearchEntryPoint
1474
- *
1475
- * Google search entry point.
1476
- */
1477
- export const zSearchEntryPoint = z.object({
1478
- renderedContent: z.optional(z.union([
1479
- z.string(),
1480
- z.null()
1481
- ])),
1482
- sdkBlob: z.optional(z.union([
1483
- z.string(),
1484
- z.null()
1485
- ]))
1486
- });
1487
- /**
1488
- * SecuritySchemeType
1489
- */
1490
- export const zSecuritySchemeType = z.enum([
1491
- 'apiKey',
1492
- 'http',
1493
- 'oauth2',
1494
- 'openIdConnect'
1495
- ]);
1496
- /**
1497
- * APIKey
1498
- */
1499
- export const zApiKey = z.object({
1500
- type: z.optional(zSecuritySchemeType).default('apiKey'),
1501
- description: z.optional(z.union([
1502
- z.string(),
1503
- z.null()
1504
- ])),
1505
- in: zApiKeyIn,
1506
- name: z.string()
1507
- });
1508
- /**
1509
- * HTTPBase
1510
- */
1511
- export const zHttpBase = z.object({
1512
- type: z.optional(zSecuritySchemeType).default('http'),
1513
- description: z.optional(z.union([
1514
- z.string(),
1515
- z.null()
1516
- ])),
1517
- scheme: z.string()
1518
- });
1519
- /**
1520
- * HTTPBearer
1521
- */
1522
- export const zHttpBearer = z.object({
1523
- type: z.optional(zSecuritySchemeType).default('http'),
1524
- description: z.optional(z.union([
1525
- z.string(),
1526
- z.null()
1527
- ])),
1528
- scheme: z.optional(z.literal('bearer')).default('bearer'),
1529
- bearerFormat: z.optional(z.union([
1530
- z.string(),
1531
- z.null()
1532
- ]))
1533
- });
1534
- /**
1535
- * OAuth2
1536
- */
1537
- export const zOAuth2Input = z.object({
1538
- type: z.optional(zSecuritySchemeType).default('oauth2'),
1539
- description: z.optional(z.union([
1540
- z.string(),
1541
- z.null()
1542
- ])),
1543
- flows: zOAuthFlows
1544
- });
1545
- /**
1546
- * OAuth2
1547
- */
1548
- export const zOAuth2Output = z.object({
1549
- type: z.optional(zSecuritySchemeType).default('oauth2'),
1550
- description: z.optional(z.union([
1551
- z.string(),
1552
- z.null()
1553
- ])),
1554
- flows: zOAuthFlows
1555
- });
1556
- /**
1557
- * OpenIdConnect
1558
- */
1559
- export const zOpenIdConnect = z.object({
1560
- type: z.optional(zSecuritySchemeType).default('openIdConnect'),
1561
- description: z.optional(z.union([
1562
- z.string(),
1563
- z.null()
1564
- ])),
1565
- openIdConnectUrl: z.string()
1566
- });
1567
- /**
1568
- * OpenIdConnectWithConfig
1569
- */
1570
- export const zOpenIdConnectWithConfig = z.object({
1571
- type: z.optional(zSecuritySchemeType).default('openIdConnect'),
1572
- description: z.optional(z.union([
1573
- z.string(),
1574
- z.null()
1575
- ])),
1576
- authorization_endpoint: z.string(),
1577
- token_endpoint: z.string(),
1578
- userinfo_endpoint: z.optional(z.union([
1579
- z.string(),
1580
- z.null()
1581
- ])),
1582
- revocation_endpoint: z.optional(z.union([
1583
- z.string(),
1584
- z.null()
1585
- ])),
1586
- token_endpoint_auth_methods_supported: z.optional(z.union([
1587
- z.array(z.string()),
1588
- z.null()
1589
- ])),
1590
- grant_types_supported: z.optional(z.union([
1591
- z.array(z.string()),
1592
- z.null()
1593
- ])),
1594
- scopes: z.optional(z.union([
1595
- z.array(z.string()),
1596
- z.null()
1597
- ]))
1598
- });
1599
- /**
1600
- * Segment
1601
- *
1602
- * Segment of the content.
1603
- */
1604
- export const zSegment = z.object({
1605
- endIndex: z.optional(z.union([
1606
- z.int(),
1607
- z.null()
1608
- ])),
1609
- partIndex: z.optional(z.union([
1610
- z.int(),
1611
- z.null()
1612
- ])),
1613
- startIndex: z.optional(z.union([
1614
- z.int(),
1615
- z.null()
1616
- ])),
1617
- text: z.optional(z.union([
1618
- z.string(),
1619
- z.null()
1620
- ]))
1621
- });
1622
- /**
1623
- * GroundingSupport
1624
- *
1625
- * Grounding support.
1626
- */
1627
- export const zGroundingSupport = z.object({
1628
- confidenceScores: z.optional(z.union([
1629
- z.array(z.number()),
1630
- z.null()
1631
- ])),
1632
- groundingChunkIndices: z.optional(z.union([
1633
- z.array(z.int()),
1634
- z.null()
1635
- ])),
1636
- segment: z.optional(z.union([
1637
- zSegment,
1638
- z.null()
1639
- ]))
1640
- });
1641
- /**
1642
- * GroundingMetadata
1643
- *
1644
- * Metadata returned to client when grounding is enabled.
1645
- */
1646
- export const zGroundingMetadataInput = z.object({
1647
- groundingChunks: z.optional(z.union([
1648
- z.array(zGroundingChunkInput),
1649
- z.null()
1650
- ])),
1651
- groundingSupports: z.optional(z.union([
1652
- z.array(zGroundingSupport),
1653
- z.null()
1654
- ])),
1655
- retrievalMetadata: z.optional(z.union([
1656
- zRetrievalMetadata,
1657
- z.null()
1658
- ])),
1659
- retrievalQueries: z.optional(z.union([
1660
- z.array(z.string()),
1661
- z.null()
1662
- ])),
1663
- searchEntryPoint: z.optional(z.union([
1664
- zSearchEntryPoint,
1665
- z.null()
1666
- ])),
1667
- webSearchQueries: z.optional(z.union([
1668
- z.array(z.string()),
1669
- z.null()
1670
- ]))
1671
- });
1672
- /**
1673
- * GroundingMetadata
1674
- *
1675
- * Metadata returned to client when grounding is enabled.
1676
- */
1677
- export const zGroundingMetadataOutput = z.object({
1678
- groundingChunks: z.optional(z.union([
1679
- z.array(zGroundingChunkOutput),
1680
- z.null()
1681
- ])),
1682
- groundingSupports: z.optional(z.union([
1683
- z.array(zGroundingSupport),
1684
- z.null()
1685
- ])),
1686
- retrievalMetadata: z.optional(z.union([
1687
- zRetrievalMetadata,
1688
- z.null()
1689
- ])),
1690
- retrievalQueries: z.optional(z.union([
1691
- z.array(z.string()),
1692
- z.null()
1693
- ])),
1694
- searchEntryPoint: z.optional(z.union([
1695
- zSearchEntryPoint,
1696
- z.null()
1697
- ])),
1698
- webSearchQueries: z.optional(z.union([
1699
- z.array(z.string()),
1700
- z.null()
1701
- ]))
1702
- });
1703
- /**
1704
- * ServiceAccountCredential
1705
- *
1706
- * Represents Google Service Account configuration.
1707
- *
1708
- * Attributes:
1709
- * type: The type should be "service_account".
1710
- * project_id: The project ID.
1711
- * private_key_id: The ID of the private key.
1712
- * private_key: The private key.
1713
- * client_email: The client email.
1714
- * client_id: The client ID.
1715
- * auth_uri: The authorization URI.
1716
- * token_uri: The token URI.
1717
- * auth_provider_x509_cert_url: URL for auth provider's X.509 cert.
1718
- * client_x509_cert_url: URL for the client's X.509 cert.
1719
- * universe_domain: The universe domain.
1720
- *
1721
- * Example:
1722
- *
1723
- * config = ServiceAccountCredential(
1724
- * type_="service_account",
1725
- * project_id="your_project_id",
1726
- * private_key_id="your_private_key_id",
1727
- * private_key="-----BEGIN PRIVATE KEY-----...",
1728
- * client_email="...@....iam.gserviceaccount.com",
1729
- * client_id="your_client_id",
1730
- * auth_uri="https://accounts.google.com/o/oauth2/auth",
1731
- * token_uri="https://oauth2.googleapis.com/token",
1732
- * auth_provider_x509_cert_url="https://www.googleapis.com/oauth2/v1/certs",
1733
- * client_x509_cert_url="https://www.googleapis.com/robot/v1/metadata/x509/...",
1734
- * universe_domain="googleapis.com"
1735
- * )
1736
- *
1737
- *
1738
- * config = ServiceAccountConfig.model_construct(**{
1739
- * ...service account config dict
1740
- * })
1741
- */
1742
- export const zServiceAccountCredential = z.object({
1743
- type: z.optional(z.string()).default(''),
1744
- projectId: z.string(),
1745
- privateKeyId: z.string(),
1746
- privateKey: z.string(),
1747
- clientEmail: z.string(),
1748
- clientId: z.string(),
1749
- authUri: z.string(),
1750
- tokenUri: z.string(),
1751
- authProviderX509CertUrl: z.string(),
1752
- clientX509CertUrl: z.string(),
1753
- universeDomain: z.string()
1754
- });
1755
- /**
1756
- * ServiceAccount
1757
- *
1758
- * Represents Google Service Account configuration.
1759
- */
1760
- export const zServiceAccount = z.object({
1761
- serviceAccountCredential: z.optional(z.union([
1762
- zServiceAccountCredential,
1763
- z.null()
1764
- ])),
1765
- scopes: z.array(z.string()),
1766
- useDefaultCredential: z.optional(z.union([
1767
- z.boolean(),
1768
- z.null()
1769
- ])).default(false)
1770
- });
1771
- /**
1772
- * AuthCredential
1773
- *
1774
- * Data class representing an authentication credential.
1775
- *
1776
- * To exchange for the actual credential, please use
1777
- * CredentialExchanger.exchange_credential().
1778
- *
1779
- * Examples: API Key Auth
1780
- * AuthCredential(
1781
- * auth_type=AuthCredentialTypes.API_KEY,
1782
- * api_key="1234",
1783
- * )
1784
- *
1785
- * Example: HTTP Auth
1786
- * AuthCredential(
1787
- * auth_type=AuthCredentialTypes.HTTP,
1788
- * http=HttpAuth(
1789
- * scheme="basic",
1790
- * credentials=HttpCredentials(username="user", password="password"),
1791
- * ),
1792
- * )
1793
- *
1794
- * Example: OAuth2 Bearer Token in HTTP Header
1795
- * AuthCredential(
1796
- * auth_type=AuthCredentialTypes.HTTP,
1797
- * http=HttpAuth(
1798
- * scheme="bearer",
1799
- * credentials=HttpCredentials(token="eyAkaknabna...."),
1800
- * ),
1801
- * )
1802
- *
1803
- * Example: OAuth2 Auth with Authorization Code Flow
1804
- * AuthCredential(
1805
- * auth_type=AuthCredentialTypes.OAUTH2,
1806
- * oauth2=OAuth2Auth(
1807
- * client_id="1234",
1808
- * client_secret="secret",
1809
- * ),
1810
- * )
1811
- *
1812
- * Example: OpenID Connect Auth
1813
- * AuthCredential(
1814
- * auth_type=AuthCredentialTypes.OPEN_ID_CONNECT,
1815
- * oauth2=OAuth2Auth(
1816
- * client_id="1234",
1817
- * client_secret="secret",
1818
- * redirect_uri="https://example.com",
1819
- * scopes=["scope1", "scope2"],
1820
- * ),
1821
- * )
1822
- *
1823
- * Example: Auth with resource reference
1824
- * AuthCredential(
1825
- * auth_type=AuthCredentialTypes.API_KEY,
1826
- * resource_ref="projects/1234/locations/us-central1/resources/resource1",
1827
- * )
1828
- */
1829
- export const zAuthCredentialInput = z.object({
1830
- authType: zAuthCredentialTypes,
1831
- resourceRef: z.optional(z.union([
1832
- z.string(),
1833
- z.null()
1834
- ])),
1835
- apiKey: z.optional(z.union([
1836
- z.string(),
1837
- z.null()
1838
- ])),
1839
- http: z.optional(z.union([
1840
- zHttpAuth,
1841
- z.null()
1842
- ])),
1843
- serviceAccount: z.optional(z.union([
1844
- zServiceAccount,
1845
- z.null()
1846
- ])),
1847
- oauth2: z.optional(z.union([
1848
- zOAuth2Auth,
1849
- z.null()
1850
- ]))
1851
- });
1852
- /**
1853
- * AuthCredential
1854
- *
1855
- * Data class representing an authentication credential.
1856
- *
1857
- * To exchange for the actual credential, please use
1858
- * CredentialExchanger.exchange_credential().
1859
- *
1860
- * Examples: API Key Auth
1861
- * AuthCredential(
1862
- * auth_type=AuthCredentialTypes.API_KEY,
1863
- * api_key="1234",
1864
- * )
1865
- *
1866
- * Example: HTTP Auth
1867
- * AuthCredential(
1868
- * auth_type=AuthCredentialTypes.HTTP,
1869
- * http=HttpAuth(
1870
- * scheme="basic",
1871
- * credentials=HttpCredentials(username="user", password="password"),
1872
- * ),
1873
- * )
1874
- *
1875
- * Example: OAuth2 Bearer Token in HTTP Header
1876
- * AuthCredential(
1877
- * auth_type=AuthCredentialTypes.HTTP,
1878
- * http=HttpAuth(
1879
- * scheme="bearer",
1880
- * credentials=HttpCredentials(token="eyAkaknabna...."),
1881
- * ),
1882
- * )
1883
- *
1884
- * Example: OAuth2 Auth with Authorization Code Flow
1885
- * AuthCredential(
1886
- * auth_type=AuthCredentialTypes.OAUTH2,
1887
- * oauth2=OAuth2Auth(
1888
- * client_id="1234",
1889
- * client_secret="secret",
1890
- * ),
1891
- * )
1892
- *
1893
- * Example: OpenID Connect Auth
1894
- * AuthCredential(
1895
- * auth_type=AuthCredentialTypes.OPEN_ID_CONNECT,
1896
- * oauth2=OAuth2Auth(
1897
- * client_id="1234",
1898
- * client_secret="secret",
1899
- * redirect_uri="https://example.com",
1900
- * scopes=["scope1", "scope2"],
1901
- * ),
1902
- * )
1903
- *
1904
- * Example: Auth with resource reference
1905
- * AuthCredential(
1906
- * auth_type=AuthCredentialTypes.API_KEY,
1907
- * resource_ref="projects/1234/locations/us-central1/resources/resource1",
1908
- * )
1909
- */
1910
- export const zAuthCredentialOutput = z.object({
1911
- authType: zAuthCredentialTypes,
1912
- resourceRef: z.optional(z.union([
1913
- z.string(),
1914
- z.null()
1915
- ])),
1916
- apiKey: z.optional(z.union([
1917
- z.string(),
1918
- z.null()
1919
- ])),
1920
- http: z.optional(z.union([
1921
- zHttpAuth,
1922
- z.null()
1923
- ])),
1924
- serviceAccount: z.optional(z.union([
1925
- zServiceAccount,
1926
- z.null()
1927
- ])),
1928
- oauth2: z.optional(z.union([
1929
- zOAuth2Auth,
1930
- z.null()
1931
- ]))
1932
- });
1933
- /**
1934
- * SessionInput
1935
- *
1936
- * Values that help initialize a Session.
1937
- */
1938
- export const zSessionInput = z.object({
1939
- appName: z.string(),
1940
- userId: z.string(),
1941
- state: z.optional(z.record(z.string(), z.unknown()))
1942
- });
1943
- /**
1944
- * StartNapcatRequest
1945
- *
1946
- * 启动Napcat沙盒请求模型
1947
- */
1948
- export const zStartNapcatRequest = z.object({
1949
- sandbox_type: z.string(),
1950
- sandboxId: z.string()
1951
- });
1952
- /**
1953
- * StartNapcatResponse
1954
- *
1955
- * 启动Napcat沙盒响应模型
1956
- */
1957
- export const zStartNapcatResponse = z.object({
1958
- sandboxId: z.string(),
1959
- error: z.optional(z.union([
1960
- z.string(),
1961
- z.null()
1962
- ]))
1963
- });
1964
- /**
1965
- * ThinkingConfig
1966
- *
1967
- * The thinking features configuration.
1968
- */
1969
- export const zThinkingConfig = z.object({
1970
- includeThoughts: z.optional(z.union([
1971
- z.boolean(),
1972
- z.null()
1973
- ])),
1974
- thinkingBudget: z.optional(z.union([
1975
- z.int(),
1976
- z.null()
1977
- ]))
1978
- });
1979
- /**
1980
- * ToolAnnotations
1981
- *
1982
- * Additional properties describing a Tool to clients.
1983
- *
1984
- * NOTE: all properties in ToolAnnotations are **hints**.
1985
- * They are not guaranteed to provide a faithful description of
1986
- * tool behavior (including descriptive properties like `title`).
1987
- *
1988
- * Clients should never make tool use decisions based on ToolAnnotations
1989
- * received from untrusted servers.
1990
- */
1991
- export const zToolAnnotations = z.object({
1992
- title: z.optional(z.union([
1993
- z.string(),
1994
- z.null()
1995
- ])),
1996
- readOnlyHint: z.optional(z.union([
1997
- z.boolean(),
1998
- z.null()
1999
- ])),
2000
- destructiveHint: z.optional(z.union([
2001
- z.boolean(),
2002
- z.null()
2003
- ])),
2004
- idempotentHint: z.optional(z.union([
2005
- z.boolean(),
2006
- z.null()
2007
- ])),
2008
- openWorldHint: z.optional(z.union([
2009
- z.boolean(),
2010
- z.null()
2011
- ]))
2012
- });
2013
- /**
2014
- * ToolCodeExecution
2015
- *
2016
- * Tool that executes code generated by the model, and automatically returns the result to the model.
2017
- *
2018
- * See also [ExecutableCode]and [CodeExecutionResult] which are input and output
2019
- * to this tool.
2020
- */
2021
- export const zToolCodeExecution = z.record(z.string(), z.never());
2022
- /**
2023
- * ToolConfig
2024
- *
2025
- * Tool config.
2026
- *
2027
- * This config is shared for all tools provided in the request.
2028
- */
2029
- export const zToolConfigInput = z.object({
2030
- functionCallingConfig: z.optional(z.union([
2031
- zFunctionCallingConfig,
2032
- z.null()
2033
- ])),
2034
- retrievalConfig: z.optional(z.union([
2035
- zRetrievalConfig,
2036
- z.null()
2037
- ]))
2038
- });
2039
- /**
2040
- * ToolConfig
2041
- *
2042
- * Tool config.
2043
- *
2044
- * This config is shared for all tools provided in the request.
2045
- */
2046
- export const zToolConfigOutput = z.object({
2047
- functionCallingConfig: z.optional(z.union([
2048
- zFunctionCallingConfig,
2049
- z.null()
2050
- ])),
2051
- retrievalConfig: z.optional(z.union([
2052
- zRetrievalConfig,
2053
- z.null()
2054
- ]))
2055
- });
2056
- /**
2057
- * ToolConfirmation
2058
- *
2059
- * Represents a tool confirmation configuration.
2060
- */
2061
- export const zToolConfirmation = z.object({
2062
- hint: z.optional(z.string()).default(''),
2063
- confirmed: z.optional(z.boolean()).default(false),
2064
- payload: z.optional(z.union([
2065
- z.unknown(),
2066
- z.null()
2067
- ]))
2068
- });
2069
- /**
2070
- * TrafficType
2071
- *
2072
- * Output only.
2073
- *
2074
- * Traffic type. This shows whether a request consumes Pay-As-You-Go or
2075
- * Provisioned Throughput quota.
2076
- */
2077
- export const zTrafficType = z.enum([
2078
- 'TRAFFIC_TYPE_UNSPECIFIED',
2079
- 'ON_DEMAND',
2080
- 'PROVISIONED_THROUGHPUT'
2081
- ]);
2082
- /**
2083
- * GenerateContentResponseUsageMetadata
2084
- *
2085
- * Usage metadata about response(s).
2086
- */
2087
- export const zGenerateContentResponseUsageMetadataInput = z.object({
2088
- cacheTokensDetails: z.optional(z.union([
2089
- z.array(zModalityTokenCount),
2090
- z.null()
2091
- ])),
2092
- cachedContentTokenCount: z.optional(z.union([
2093
- z.int(),
2094
- z.null()
2095
- ])),
2096
- candidatesTokenCount: z.optional(z.union([
2097
- z.int(),
2098
- z.null()
2099
- ])),
2100
- candidatesTokensDetails: z.optional(z.union([
2101
- z.array(zModalityTokenCount),
2102
- z.null()
2103
- ])),
2104
- promptTokenCount: z.optional(z.union([
2105
- z.int(),
2106
- z.null()
2107
- ])),
2108
- promptTokensDetails: z.optional(z.union([
2109
- z.array(zModalityTokenCount),
2110
- z.null()
2111
- ])),
2112
- thoughtsTokenCount: z.optional(z.union([
2113
- z.int(),
2114
- z.null()
2115
- ])),
2116
- toolUsePromptTokenCount: z.optional(z.union([
2117
- z.int(),
2118
- z.null()
2119
- ])),
2120
- toolUsePromptTokensDetails: z.optional(z.union([
2121
- z.array(zModalityTokenCount),
2122
- z.null()
2123
- ])),
2124
- totalTokenCount: z.optional(z.union([
2125
- z.int(),
2126
- z.null()
2127
- ])),
2128
- trafficType: z.optional(z.union([
2129
- zTrafficType,
2130
- z.null()
2131
- ]))
2132
- });
2133
- /**
2134
- * GenerateContentResponseUsageMetadata
2135
- *
2136
- * Usage metadata about response(s).
2137
- */
2138
- export const zGenerateContentResponseUsageMetadataOutput = z.object({
2139
- cacheTokensDetails: z.optional(z.union([
2140
- z.array(zModalityTokenCount),
2141
- z.null()
2142
- ])),
2143
- cachedContentTokenCount: z.optional(z.union([
2144
- z.int(),
2145
- z.null()
2146
- ])),
2147
- candidatesTokenCount: z.optional(z.union([
2148
- z.int(),
2149
- z.null()
2150
- ])),
2151
- candidatesTokensDetails: z.optional(z.union([
2152
- z.array(zModalityTokenCount),
2153
- z.null()
2154
- ])),
2155
- promptTokenCount: z.optional(z.union([
2156
- z.int(),
2157
- z.null()
2158
- ])),
2159
- promptTokensDetails: z.optional(z.union([
2160
- z.array(zModalityTokenCount),
2161
- z.null()
2162
- ])),
2163
- thoughtsTokenCount: z.optional(z.union([
2164
- z.int(),
2165
- z.null()
2166
- ])),
2167
- toolUsePromptTokenCount: z.optional(z.union([
2168
- z.int(),
2169
- z.null()
2170
- ])),
2171
- toolUsePromptTokensDetails: z.optional(z.union([
2172
- z.array(zModalityTokenCount),
2173
- z.null()
2174
- ])),
2175
- totalTokenCount: z.optional(z.union([
2176
- z.int(),
2177
- z.null()
2178
- ])),
2179
- trafficType: z.optional(z.union([
2180
- zTrafficType,
2181
- z.null()
2182
- ]))
2183
- });
2184
- /**
2185
- * Transcription
2186
- *
2187
- * Audio transcription in Server Conent.
2188
- */
2189
- export const zTranscription = z.object({
2190
- text: z.optional(z.union([
2191
- z.string(),
2192
- z.null()
2193
- ])),
2194
- finished: z.optional(z.union([
2195
- z.boolean(),
2196
- z.null()
2197
- ]))
2198
- });
2199
- /**
2200
- * Type
2201
- *
2202
- * Optional. The type of the data.
2203
- */
2204
- export const zType = z.enum([
2205
- 'TYPE_UNSPECIFIED',
2206
- 'STRING',
2207
- 'NUMBER',
2208
- 'INTEGER',
2209
- 'BOOLEAN',
2210
- 'ARRAY',
2211
- 'OBJECT',
2212
- 'NULL'
2213
- ]);
2214
- /**
2215
- * Schema
2216
- *
2217
- * Schema is used to define the format of input/output data.
2218
- *
2219
- * Represents a select subset of an [OpenAPI 3.0 schema
2220
- * object](https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may
2221
- * be added in the future as needed.
2222
- */
2223
- export const zSchemaInput = z.object({
2224
- additionalProperties: z.optional(z.union([
2225
- z.unknown(),
2226
- z.null()
2227
- ])),
2228
- defs: z.optional(z.union([
2229
- z.record(z.string(), z.lazy(() => zSchemaInput)),
2230
- z.null()
2231
- ])),
2232
- ref: z.optional(z.union([
2233
- z.string(),
2234
- z.null()
2235
- ])),
2236
- anyOf: z.optional(z.union([
2237
- z.array(z.lazy(() => zSchemaInput)),
2238
- z.null()
2239
- ])),
2240
- default: z.optional(z.union([
2241
- z.unknown(),
2242
- z.null()
2243
- ])),
2244
- description: z.optional(z.union([
2245
- z.string(),
2246
- z.null()
2247
- ])),
2248
- enum: z.optional(z.union([
2249
- z.array(z.string()),
2250
- z.null()
2251
- ])),
2252
- example: z.optional(z.union([
2253
- z.unknown(),
2254
- z.null()
2255
- ])),
2256
- format: z.optional(z.union([
2257
- z.string(),
2258
- z.null()
2259
- ])),
2260
- items: z.optional(z.union([
2261
- z.lazy(() => zSchemaInput),
2262
- z.null()
2263
- ])),
2264
- maxItems: z.optional(z.union([
2265
- z.int(),
2266
- z.null()
2267
- ])),
2268
- maxLength: z.optional(z.union([
2269
- z.int(),
2270
- z.null()
2271
- ])),
2272
- maxProperties: z.optional(z.union([
2273
- z.int(),
2274
- z.null()
2275
- ])),
2276
- maximum: z.optional(z.union([
2277
- z.number(),
2278
- z.null()
2279
- ])),
2280
- minItems: z.optional(z.union([
2281
- z.int(),
2282
- z.null()
2283
- ])),
2284
- minLength: z.optional(z.union([
2285
- z.int(),
2286
- z.null()
2287
- ])),
2288
- minProperties: z.optional(z.union([
2289
- z.int(),
2290
- z.null()
2291
- ])),
2292
- minimum: z.optional(z.union([
2293
- z.number(),
2294
- z.null()
2295
- ])),
2296
- nullable: z.optional(z.union([
2297
- z.boolean(),
2298
- z.null()
2299
- ])),
2300
- pattern: z.optional(z.union([
2301
- z.string(),
2302
- z.null()
2303
- ])),
2304
- properties: z.optional(z.union([
2305
- z.record(z.string(), z.lazy(() => zSchemaInput)),
2306
- z.null()
2307
- ])),
2308
- propertyOrdering: z.optional(z.union([
2309
- z.array(z.string()),
2310
- z.null()
2311
- ])),
2312
- required: z.optional(z.union([
2313
- z.array(z.string()),
2314
- z.null()
2315
- ])),
2316
- title: z.optional(z.union([
2317
- z.string(),
2318
- z.null()
2319
- ])),
2320
- type: z.optional(z.union([
2321
- zType,
2322
- z.null()
2323
- ]))
2324
- });
2325
- /**
2326
- * FunctionDeclaration
2327
- *
2328
- * Defines a function that the model can generate JSON inputs for.
2329
- *
2330
- * The inputs are based on `OpenAPI 3.0 specifications
2331
- * <https://spec.openapis.org/oas/v3.0.3>`_.
2332
- */
2333
- export const zFunctionDeclarationInput = z.object({
2334
- behavior: z.optional(z.union([
2335
- zBehavior,
2336
- z.null()
2337
- ])),
2338
- description: z.optional(z.union([
2339
- z.string(),
2340
- z.null()
2341
- ])),
2342
- name: z.optional(z.union([
2343
- z.string(),
2344
- z.null()
2345
- ])),
2346
- parameters: z.optional(z.union([
2347
- zSchemaInput,
2348
- z.null()
2349
- ])),
2350
- parametersJsonSchema: z.optional(z.union([
2351
- z.unknown(),
2352
- z.null()
2353
- ])),
2354
- response: z.optional(z.union([
2355
- zSchemaInput,
2356
- z.null()
2357
- ])),
2358
- responseJsonSchema: z.optional(z.union([
2359
- z.unknown(),
2360
- z.null()
2361
- ]))
2362
- });
2363
- /**
2364
- * Schema
2365
- *
2366
- * Schema is used to define the format of input/output data.
2367
- *
2368
- * Represents a select subset of an [OpenAPI 3.0 schema
2369
- * object](https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may
2370
- * be added in the future as needed.
2371
- */
2372
- export const zSchemaOutput = z.object({
2373
- additionalProperties: z.optional(z.union([
2374
- z.unknown(),
2375
- z.null()
2376
- ])),
2377
- defs: z.optional(z.union([
2378
- z.record(z.string(), z.lazy(() => zSchemaOutput)),
2379
- z.null()
2380
- ])),
2381
- ref: z.optional(z.union([
2382
- z.string(),
2383
- z.null()
2384
- ])),
2385
- anyOf: z.optional(z.union([
2386
- z.array(z.lazy(() => zSchemaOutput)),
2387
- z.null()
2388
- ])),
2389
- default: z.optional(z.union([
2390
- z.unknown(),
2391
- z.null()
2392
- ])),
2393
- description: z.optional(z.union([
2394
- z.string(),
2395
- z.null()
2396
- ])),
2397
- enum: z.optional(z.union([
2398
- z.array(z.string()),
2399
- z.null()
2400
- ])),
2401
- example: z.optional(z.union([
2402
- z.unknown(),
2403
- z.null()
2404
- ])),
2405
- format: z.optional(z.union([
2406
- z.string(),
2407
- z.null()
2408
- ])),
2409
- items: z.optional(z.union([
2410
- z.lazy(() => zSchemaOutput),
2411
- z.null()
2412
- ])),
2413
- maxItems: z.optional(z.union([
2414
- z.int(),
2415
- z.null()
2416
- ])),
2417
- maxLength: z.optional(z.union([
2418
- z.int(),
2419
- z.null()
2420
- ])),
2421
- maxProperties: z.optional(z.union([
2422
- z.int(),
2423
- z.null()
2424
- ])),
2425
- maximum: z.optional(z.union([
2426
- z.number(),
2427
- z.null()
2428
- ])),
2429
- minItems: z.optional(z.union([
2430
- z.int(),
2431
- z.null()
2432
- ])),
2433
- minLength: z.optional(z.union([
2434
- z.int(),
2435
- z.null()
2436
- ])),
2437
- minProperties: z.optional(z.union([
2438
- z.int(),
2439
- z.null()
2440
- ])),
2441
- minimum: z.optional(z.union([
2442
- z.number(),
2443
- z.null()
2444
- ])),
2445
- nullable: z.optional(z.union([
2446
- z.boolean(),
2447
- z.null()
2448
- ])),
2449
- pattern: z.optional(z.union([
2450
- z.string(),
2451
- z.null()
2452
- ])),
2453
- properties: z.optional(z.union([
2454
- z.record(z.string(), z.lazy(() => zSchemaOutput)),
2455
- z.null()
2456
- ])),
2457
- propertyOrdering: z.optional(z.union([
2458
- z.array(z.string()),
2459
- z.null()
2460
- ])),
2461
- required: z.optional(z.union([
2462
- z.array(z.string()),
2463
- z.null()
2464
- ])),
2465
- title: z.optional(z.union([
2466
- z.string(),
2467
- z.null()
2468
- ])),
2469
- type: z.optional(z.union([
2470
- zType,
2471
- z.null()
2472
- ]))
2473
- });
2474
- /**
2475
- * FunctionDeclaration
2476
- *
2477
- * Defines a function that the model can generate JSON inputs for.
2478
- *
2479
- * The inputs are based on `OpenAPI 3.0 specifications
2480
- * <https://spec.openapis.org/oas/v3.0.3>`_.
2481
- */
2482
- export const zFunctionDeclarationOutput = z.object({
2483
- behavior: z.optional(z.union([
2484
- zBehavior,
2485
- z.null()
2486
- ])),
2487
- description: z.optional(z.union([
2488
- z.string(),
2489
- z.null()
2490
- ])),
2491
- name: z.optional(z.union([
2492
- z.string(),
2493
- z.null()
2494
- ])),
2495
- parameters: z.optional(z.union([
2496
- zSchemaOutput,
2497
- z.null()
2498
- ])),
2499
- parametersJsonSchema: z.optional(z.union([
2500
- z.unknown(),
2501
- z.null()
2502
- ])),
2503
- response: z.optional(z.union([
2504
- zSchemaOutput,
2505
- z.null()
2506
- ])),
2507
- responseJsonSchema: z.optional(z.union([
2508
- z.unknown(),
2509
- z.null()
2510
- ]))
2511
- });
2512
- /**
2513
- * UrlContext
2514
- *
2515
- * Tool to support URL context retrieval.
2516
- */
2517
- export const zUrlContext = z.record(z.string(), z.never());
2518
- /**
2519
- * ValidationError
2520
- */
2521
- export const zValidationError = z.object({
2522
- loc: z.array(z.union([z.string(), z.int()])),
2523
- msg: z.string(),
2524
- type: z.string()
2525
- });
2526
- /**
2527
- * HTTPValidationError
2528
- */
2529
- export const zHttpValidationError = z.object({
2530
- detail: z.optional(z.array(zValidationError))
2531
- });
2532
- /**
2533
- * VertexAISearchDataStoreSpec
2534
- *
2535
- * Define data stores within engine to filter on in a search call and configurations for those data stores.
2536
- *
2537
- * For more information, see
2538
- * https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
2539
- */
2540
- export const zVertexAiSearchDataStoreSpec = z.object({
2541
- dataStore: z.optional(z.union([
2542
- z.string(),
2543
- z.null()
2544
- ])),
2545
- filter: z.optional(z.union([
2546
- z.string(),
2547
- z.null()
2548
- ]))
2549
- });
2550
- /**
2551
- * VertexAISearch
2552
- *
2553
- * Retrieve from Vertex AI Search datastore or engine for grounding.
2554
- *
2555
- * datastore and engine are mutually exclusive. See
2556
- * https://cloud.google.com/products/agent-builder
2557
- */
2558
- export const zVertexAiSearch = z.object({
2559
- dataStoreSpecs: z.optional(z.union([
2560
- z.array(zVertexAiSearchDataStoreSpec),
2561
- z.null()
2562
- ])),
2563
- datastore: z.optional(z.union([
2564
- z.string(),
2565
- z.null()
2566
- ])),
2567
- engine: z.optional(z.union([
2568
- z.string(),
2569
- z.null()
2570
- ])),
2571
- filter: z.optional(z.union([
2572
- z.string(),
2573
- z.null()
2574
- ])),
2575
- maxResults: z.optional(z.union([
2576
- z.int(),
2577
- z.null()
2578
- ]))
2579
- });
2580
- /**
2581
- * VertexRagStoreRagResource
2582
- *
2583
- * The definition of the Rag resource.
2584
- */
2585
- export const zVertexRagStoreRagResource = z.object({
2586
- ragCorpus: z.optional(z.union([
2587
- z.string(),
2588
- z.null()
2589
- ])),
2590
- ragFileIds: z.optional(z.union([
2591
- z.array(z.string()),
2592
- z.null()
2593
- ]))
2594
- });
2595
- /**
2596
- * VertexRagStore
2597
- *
2598
- * Retrieve from Vertex RAG Store for grounding.
2599
- */
2600
- export const zVertexRagStoreInput = z.object({
2601
- ragCorpora: z.optional(z.union([
2602
- z.array(z.string()),
2603
- z.null()
2604
- ])),
2605
- ragResources: z.optional(z.union([
2606
- z.array(zVertexRagStoreRagResource),
2607
- z.null()
2608
- ])),
2609
- ragRetrievalConfig: z.optional(z.union([
2610
- zRagRetrievalConfigInput,
2611
- z.null()
2612
- ])),
2613
- similarityTopK: z.optional(z.union([
2614
- z.int(),
2615
- z.null()
2616
- ])),
2617
- storeContext: z.optional(z.union([
2618
- z.boolean(),
2619
- z.null()
2620
- ])),
2621
- vectorDistanceThreshold: z.optional(z.union([
2622
- z.number(),
2623
- z.null()
2624
- ]))
2625
- });
2626
- /**
2627
- * Retrieval
2628
- *
2629
- * Defines a retrieval tool that model can call to access external knowledge.
2630
- */
2631
- export const zRetrievalInput = z.object({
2632
- disableAttribution: z.optional(z.union([
2633
- z.boolean(),
2634
- z.null()
2635
- ])),
2636
- vertexAiSearch: z.optional(z.union([
2637
- zVertexAiSearch,
2638
- z.null()
2639
- ])),
2640
- vertexRagStore: z.optional(z.union([
2641
- zVertexRagStoreInput,
2642
- z.null()
2643
- ]))
2644
- });
2645
- /**
2646
- * VertexRagStore
2647
- *
2648
- * Retrieve from Vertex RAG Store for grounding.
2649
- */
2650
- export const zVertexRagStoreOutput = z.object({
2651
- ragCorpora: z.optional(z.union([
2652
- z.array(z.string()),
2653
- z.null()
2654
- ])),
2655
- ragResources: z.optional(z.union([
2656
- z.array(zVertexRagStoreRagResource),
2657
- z.null()
2658
- ])),
2659
- ragRetrievalConfig: z.optional(z.union([
2660
- zRagRetrievalConfigOutput,
2661
- z.null()
2662
- ])),
2663
- similarityTopK: z.optional(z.union([
2664
- z.int(),
2665
- z.null()
2666
- ])),
2667
- storeContext: z.optional(z.union([
2668
- z.boolean(),
2669
- z.null()
2670
- ])),
2671
- vectorDistanceThreshold: z.optional(z.union([
2672
- z.number(),
2673
- z.null()
2674
- ]))
2675
- });
2676
- /**
2677
- * Retrieval
2678
- *
2679
- * Defines a retrieval tool that model can call to access external knowledge.
2680
- */
2681
- export const zRetrievalOutput = z.object({
2682
- disableAttribution: z.optional(z.union([
2683
- z.boolean(),
2684
- z.null()
2685
- ])),
2686
- vertexAiSearch: z.optional(z.union([
2687
- zVertexAiSearch,
2688
- z.null()
2689
- ])),
2690
- vertexRagStore: z.optional(z.union([
2691
- zVertexRagStoreOutput,
2692
- z.null()
2693
- ]))
2694
- });
2695
- /**
2696
- * VideoMetadata
2697
- *
2698
- * Describes how the video in the Part should be used by the model.
2699
- */
2700
- export const zVideoMetadata = z.object({
2701
- fps: z.optional(z.union([
2702
- z.number(),
2703
- z.null()
2704
- ])),
2705
- endOffset: z.optional(z.union([
2706
- z.string(),
2707
- z.null()
2708
- ])),
2709
- startOffset: z.optional(z.union([
2710
- z.string(),
2711
- z.null()
2712
- ]))
2713
- });
2714
- /**
2715
- * Part
2716
- *
2717
- * A datatype containing media content.
2718
- *
2719
- * Exactly one field within a Part should be set, representing the specific type
2720
- * of content being conveyed. Using multiple fields within the same `Part`
2721
- * instance is considered invalid.
2722
- */
2723
- export const zPartInput = z.object({
2724
- videoMetadata: z.optional(z.union([
2725
- zVideoMetadata,
2726
- z.null()
2727
- ])),
2728
- thought: z.optional(z.union([
2729
- z.boolean(),
2730
- z.null()
2731
- ])),
2732
- inlineData: z.optional(z.union([
2733
- zBlob,
2734
- z.null()
2735
- ])),
2736
- fileData: z.optional(z.union([
2737
- zFileData,
2738
- z.null()
2739
- ])),
2740
- thoughtSignature: z.optional(z.union([
2741
- z.string(),
2742
- z.null()
2743
- ])),
2744
- codeExecutionResult: z.optional(z.union([
2745
- zCodeExecutionResult,
2746
- z.null()
2747
- ])),
2748
- executableCode: z.optional(z.union([
2749
- zExecutableCode,
2750
- z.null()
2751
- ])),
2752
- functionCall: z.optional(z.union([
2753
- zFunctionCall,
2754
- z.null()
2755
- ])),
2756
- functionResponse: z.optional(z.union([
2757
- zFunctionResponse,
2758
- z.null()
2759
- ])),
2760
- text: z.optional(z.union([
2761
- z.string(),
2762
- z.null()
2763
- ]))
2764
- });
2765
- /**
2766
- * Content
2767
- *
2768
- * Contains the multi-part content of a message.
2769
- */
2770
- export const zContentInput = z.object({
2771
- parts: z.optional(z.union([
2772
- z.array(zPartInput),
2773
- z.null()
2774
- ])),
2775
- role: z.optional(z.union([
2776
- z.string(),
2777
- z.null()
2778
- ]))
2779
- });
2780
- /**
2781
- * EventCompaction
2782
- *
2783
- * The compaction of the events.
2784
- */
2785
- export const zEventCompactionInput = z.object({
2786
- startTimestamp: z.number(),
2787
- endTimestamp: z.number(),
2788
- compactedContent: zContentInput
2789
- });
2790
- /**
2791
- * IntermediateData
2792
- *
2793
- * Container for intermediate data that an agent would generate as it responds with a final answer.
2794
- */
2795
- export const zIntermediateDataInput = z.object({
2796
- toolUses: z.optional(z.array(zFunctionCall)).default([]),
2797
- toolResponses: z.optional(z.array(zFunctionResponse)).default([]),
2798
- intermediateResponses: z.optional(z.array(z.tuple([z.string(), z.array(zPartInput)]))).default([])
2799
- });
2800
- /**
2801
- * InvocationEvent
2802
- *
2803
- * An immutable record representing a specific point in the agent's invocation.
2804
- *
2805
- * It captures agent's replies, requests to use tools (function calls), and tool
2806
- * results.
2807
- *
2808
- * This structure is a simple projection of the actual `Event` datamodel that
2809
- * is intended for the Eval System.
2810
- */
2811
- export const zInvocationEventInput = z.object({
2812
- author: z.string(),
2813
- content: z.union([
2814
- zContentInput,
2815
- z.null()
2816
- ])
2817
- });
2818
- /**
2819
- * InvocationEvents
2820
- *
2821
- * A container for events that occur during the course of an invocation.
2822
- */
2823
- export const zInvocationEventsInput = z.object({
2824
- invocationEvents: z.optional(z.array(zInvocationEventInput))
2825
- });
2826
- /**
2827
- * Part
2828
- *
2829
- * A datatype containing media content.
2830
- *
2831
- * Exactly one field within a Part should be set, representing the specific type
2832
- * of content being conveyed. Using multiple fields within the same `Part`
2833
- * instance is considered invalid.
2834
- */
2835
- export const zPartOutput = z.object({
2836
- videoMetadata: z.optional(z.union([
2837
- zVideoMetadata,
2838
- z.null()
2839
- ])),
2840
- thought: z.optional(z.union([
2841
- z.boolean(),
2842
- z.null()
2843
- ])),
2844
- inlineData: z.optional(z.union([
2845
- zBlob,
2846
- z.null()
2847
- ])),
2848
- fileData: z.optional(z.union([
2849
- zFileData,
2850
- z.null()
2851
- ])),
2852
- thoughtSignature: z.optional(z.union([
2853
- z.string(),
2854
- z.null()
2855
- ])),
2856
- codeExecutionResult: z.optional(z.union([
2857
- zCodeExecutionResult,
2858
- z.null()
2859
- ])),
2860
- executableCode: z.optional(z.union([
2861
- zExecutableCode,
2862
- z.null()
2863
- ])),
2864
- functionCall: z.optional(z.union([
2865
- zFunctionCall,
2866
- z.null()
2867
- ])),
2868
- functionResponse: z.optional(z.union([
2869
- zFunctionResponse,
2870
- z.null()
2871
- ])),
2872
- text: z.optional(z.union([
2873
- z.string(),
2874
- z.null()
2875
- ]))
2876
- });
2877
- /**
2878
- * Content
2879
- *
2880
- * Contains the multi-part content of a message.
2881
- */
2882
- export const zContentOutput = z.object({
2883
- parts: z.optional(z.union([
2884
- z.array(zPartOutput),
2885
- z.null()
2886
- ])),
2887
- role: z.optional(z.union([
2888
- z.string(),
2889
- z.null()
2890
- ]))
2891
- });
2892
- /**
2893
- * EventCompaction
2894
- *
2895
- * The compaction of the events.
2896
- */
2897
- export const zEventCompactionOutput = z.object({
2898
- startTimestamp: z.number(),
2899
- endTimestamp: z.number(),
2900
- compactedContent: zContentOutput
2901
- });
2902
- /**
2903
- * IntermediateData
2904
- *
2905
- * Container for intermediate data that an agent would generate as it responds with a final answer.
2906
- */
2907
- export const zIntermediateDataOutput = z.object({
2908
- toolUses: z.optional(z.array(zFunctionCall)).default([]),
2909
- toolResponses: z.optional(z.array(zFunctionResponse)).default([]),
2910
- intermediateResponses: z.optional(z.array(z.tuple([z.string(), z.array(zPartOutput)]))).default([])
2911
- });
2912
- /**
2913
- * InvocationEvent
2914
- *
2915
- * An immutable record representing a specific point in the agent's invocation.
2916
- *
2917
- * It captures agent's replies, requests to use tools (function calls), and tool
2918
- * results.
2919
- *
2920
- * This structure is a simple projection of the actual `Event` datamodel that
2921
- * is intended for the Eval System.
2922
- */
2923
- export const zInvocationEventOutput = z.object({
2924
- author: z.string(),
2925
- content: z.union([
2926
- zContentOutput,
2927
- z.null()
2928
- ])
2929
- });
2930
- /**
2931
- * InvocationEvents
2932
- *
2933
- * A container for events that occur during the course of an invocation.
2934
- */
2935
- export const zInvocationEventsOutput = z.object({
2936
- invocationEvents: z.optional(z.array(zInvocationEventOutput))
2937
- });
2938
- /**
2939
- * RunAgentRequest
2940
- */
2941
- export const zRunAgentRequest = z.object({
2942
- appName: z.string(),
2943
- userId: z.string(),
2944
- sessionId: z.string(),
2945
- newMessage: zContentInput,
2946
- streaming: z.optional(z.boolean()).default(false),
2947
- stateDelta: z.optional(z.union([
2948
- z.record(z.string(), z.unknown()),
2949
- z.null()
2950
- ]))
2951
- });
2952
- /**
2953
- * VoiceConfig
2954
- *
2955
- * The configuration for the voice to use.
2956
- */
2957
- export const zVoiceConfig = z.object({
2958
- prebuiltVoiceConfig: z.optional(z.union([
2959
- zPrebuiltVoiceConfig,
2960
- z.null()
2961
- ]))
2962
- });
2963
- /**
2964
- * SpeakerVoiceConfig
2965
- *
2966
- * The configuration for the speaker to use.
2967
- */
2968
- export const zSpeakerVoiceConfigInput = z.object({
2969
- speaker: z.optional(z.union([
2970
- z.string(),
2971
- z.null()
2972
- ])),
2973
- voiceConfig: z.optional(z.union([
2974
- zVoiceConfig,
2975
- z.null()
2976
- ]))
2977
- });
2978
- /**
2979
- * MultiSpeakerVoiceConfig
2980
- *
2981
- * The configuration for the multi-speaker setup.
2982
- */
2983
- export const zMultiSpeakerVoiceConfigInput = z.object({
2984
- speakerVoiceConfigs: z.optional(z.union([
2985
- z.array(zSpeakerVoiceConfigInput),
2986
- z.null()
2987
- ]))
2988
- });
2989
- /**
2990
- * SpeakerVoiceConfig
2991
- *
2992
- * The configuration for the speaker to use.
2993
- */
2994
- export const zSpeakerVoiceConfigOutput = z.object({
2995
- speaker: z.optional(z.union([
2996
- z.string(),
2997
- z.null()
2998
- ])),
2999
- voiceConfig: z.optional(z.union([
3000
- zVoiceConfig,
3001
- z.null()
3002
- ]))
3003
- });
3004
- /**
3005
- * MultiSpeakerVoiceConfig
3006
- *
3007
- * The configuration for the multi-speaker setup.
3008
- */
3009
- export const zMultiSpeakerVoiceConfigOutput = z.object({
3010
- speakerVoiceConfigs: z.optional(z.union([
3011
- z.array(zSpeakerVoiceConfigOutput),
3012
- z.null()
3013
- ]))
3014
- });
3015
- /**
3016
- * SpeechConfig
3017
- *
3018
- * The speech generation configuration.
3019
- */
3020
- export const zSpeechConfigInput = z.object({
3021
- voiceConfig: z.optional(z.union([
3022
- zVoiceConfig,
3023
- z.null()
3024
- ])),
3025
- multiSpeakerVoiceConfig: z.optional(z.union([
3026
- zMultiSpeakerVoiceConfigInput,
3027
- z.null()
3028
- ])),
3029
- languageCode: z.optional(z.union([
3030
- z.string(),
3031
- z.null()
3032
- ]))
3033
- });
3034
- /**
3035
- * SpeechConfig
3036
- *
3037
- * The speech generation configuration.
3038
- */
3039
- export const zSpeechConfigOutput = z.object({
3040
- voiceConfig: z.optional(z.union([
3041
- zVoiceConfig,
3042
- z.null()
3043
- ])),
3044
- multiSpeakerVoiceConfig: z.optional(z.union([
3045
- zMultiSpeakerVoiceConfigOutput,
3046
- z.null()
3047
- ])),
3048
- languageCode: z.optional(z.union([
3049
- z.string(),
3050
- z.null()
3051
- ]))
3052
- });
3053
- /**
3054
- * AuthConfig
3055
- *
3056
- * The auth config sent by tool asking client to collect auth credentials and
3057
- *
3058
- * adk and client will help to fill in the response
3059
- */
3060
- export const zGoogleAdkAuthAuthToolAuthConfigInput = z.object({
3061
- authScheme: z.union([
3062
- zApiKey,
3063
- zHttpBase,
3064
- zOAuth2Input,
3065
- zOpenIdConnect,
3066
- zHttpBearer,
3067
- zOpenIdConnectWithConfig
3068
- ]),
3069
- rawAuthCredential: z.optional(z.union([
3070
- zAuthCredentialInput,
3071
- z.null()
3072
- ])),
3073
- exchangedAuthCredential: z.optional(z.union([
3074
- zAuthCredentialInput,
3075
- z.null()
3076
- ])),
3077
- credentialKey: z.optional(z.union([
3078
- z.string(),
3079
- z.null()
3080
- ]))
3081
- });
3082
- /**
3083
- * EventActions
3084
- *
3085
- * Represents the actions attached to an event.
3086
- */
3087
- export const zEventActionsInput = z.object({
3088
- skipSummarization: z.optional(z.union([
3089
- z.boolean(),
3090
- z.null()
3091
- ])),
3092
- stateDelta: z.optional(z.record(z.string(), z.unknown())),
3093
- artifactDelta: z.optional(z.record(z.string(), z.int())),
3094
- transferToAgent: z.optional(z.union([
3095
- z.string(),
3096
- z.null()
3097
- ])),
3098
- escalate: z.optional(z.union([
3099
- z.boolean(),
3100
- z.null()
3101
- ])),
3102
- requestedAuthConfigs: z.optional(z.record(z.string(), zGoogleAdkAuthAuthToolAuthConfigInput)),
3103
- requestedToolConfirmations: z.optional(z.record(z.string(), zToolConfirmation)),
3104
- compaction: z.optional(z.union([
3105
- zEventCompactionInput,
3106
- z.null()
3107
- ]))
3108
- });
3109
- /**
3110
- * Event
3111
- *
3112
- * Represents an event in a conversation between agents and users.
3113
- *
3114
- * It is used to store the content of the conversation, as well as the actions
3115
- * taken by the agents like function calls, etc.
3116
- */
3117
- export const zEventInput = z.object({
3118
- content: z.optional(z.union([
3119
- zContentInput,
3120
- z.null()
3121
- ])),
3122
- groundingMetadata: z.optional(z.union([
3123
- zGroundingMetadataInput,
3124
- z.null()
3125
- ])),
3126
- partial: z.optional(z.union([
3127
- z.boolean(),
3128
- z.null()
3129
- ])),
3130
- turnComplete: z.optional(z.union([
3131
- z.boolean(),
3132
- z.null()
3133
- ])),
3134
- finishReason: z.optional(z.union([
3135
- zFinishReason,
3136
- z.null()
3137
- ])),
3138
- errorCode: z.optional(z.union([
3139
- z.string(),
3140
- z.null()
3141
- ])),
3142
- errorMessage: z.optional(z.union([
3143
- z.string(),
3144
- z.null()
3145
- ])),
3146
- interrupted: z.optional(z.union([
3147
- z.boolean(),
3148
- z.null()
3149
- ])),
3150
- customMetadata: z.optional(z.union([
3151
- z.record(z.string(), z.unknown()),
3152
- z.null()
3153
- ])),
3154
- usageMetadata: z.optional(z.union([
3155
- zGenerateContentResponseUsageMetadataInput,
3156
- z.null()
3157
- ])),
3158
- liveSessionResumptionUpdate: z.optional(z.union([
3159
- zLiveServerSessionResumptionUpdate,
3160
- z.null()
3161
- ])),
3162
- inputTranscription: z.optional(z.union([
3163
- zTranscription,
3164
- z.null()
3165
- ])),
3166
- outputTranscription: z.optional(z.union([
3167
- zTranscription,
3168
- z.null()
3169
- ])),
3170
- avgLogprobs: z.optional(z.union([
3171
- z.number(),
3172
- z.null()
3173
- ])),
3174
- logprobsResult: z.optional(z.union([
3175
- zLogprobsResultInput,
3176
- z.null()
3177
- ])),
3178
- cacheMetadata: z.optional(z.union([
3179
- zCacheMetadata,
3180
- z.null()
3181
- ])),
3182
- invocationId: z.optional(z.string()).default(''),
3183
- author: z.string(),
3184
- actions: z.optional(zEventActionsInput),
3185
- longRunningToolIds: z.optional(z.union([
3186
- z.array(z.string()),
3187
- z.null()
3188
- ])),
3189
- branch: z.optional(z.union([
3190
- z.string(),
3191
- z.null()
3192
- ])),
3193
- id: z.optional(z.string()).default(''),
3194
- timestamp: z.optional(z.number())
3195
- });
3196
- /**
3197
- * CreateSessionRequest
3198
- */
3199
- export const zCreateSessionRequest = z.object({
3200
- sessionId: z.optional(z.union([
3201
- z.string(),
3202
- z.null()
3203
- ])),
3204
- state: z.optional(z.union([
3205
- z.record(z.string(), z.unknown()),
3206
- z.null()
3207
- ])),
3208
- events: z.optional(z.union([
3209
- z.array(zEventInput),
3210
- z.null()
3211
- ]))
3212
- });
3213
- /**
3214
- * AuthConfig
3215
- *
3216
- * The auth config sent by tool asking client to collect auth credentials and
3217
- *
3218
- * adk and client will help to fill in the response
3219
- */
3220
- export const zGoogleAdkAuthAuthToolAuthConfigOutput = z.object({
3221
- authScheme: z.union([
3222
- zApiKey,
3223
- zHttpBase,
3224
- zOAuth2Output,
3225
- zOpenIdConnect,
3226
- zHttpBearer,
3227
- zOpenIdConnectWithConfig
3228
- ]),
3229
- rawAuthCredential: z.optional(z.union([
3230
- zAuthCredentialOutput,
3231
- z.null()
3232
- ])),
3233
- exchangedAuthCredential: z.optional(z.union([
3234
- zAuthCredentialOutput,
3235
- z.null()
3236
- ])),
3237
- credentialKey: z.optional(z.union([
3238
- z.string(),
3239
- z.null()
3240
- ]))
3241
- });
3242
- /**
3243
- * EventActions
3244
- *
3245
- * Represents the actions attached to an event.
3246
- */
3247
- export const zEventActionsOutput = z.object({
3248
- skipSummarization: z.optional(z.union([
3249
- z.boolean(),
3250
- z.null()
3251
- ])),
3252
- stateDelta: z.optional(z.record(z.string(), z.unknown())),
3253
- artifactDelta: z.optional(z.record(z.string(), z.int())),
3254
- transferToAgent: z.optional(z.union([
3255
- z.string(),
3256
- z.null()
3257
- ])),
3258
- escalate: z.optional(z.union([
3259
- z.boolean(),
3260
- z.null()
3261
- ])),
3262
- requestedAuthConfigs: z.optional(z.record(z.string(), zGoogleAdkAuthAuthToolAuthConfigOutput)),
3263
- requestedToolConfirmations: z.optional(z.record(z.string(), zToolConfirmation)),
3264
- compaction: z.optional(z.union([
3265
- zEventCompactionOutput,
3266
- z.null()
3267
- ]))
3268
- });
3269
- /**
3270
- * Event
3271
- *
3272
- * Represents an event in a conversation between agents and users.
3273
- *
3274
- * It is used to store the content of the conversation, as well as the actions
3275
- * taken by the agents like function calls, etc.
3276
- */
3277
- export const zEventOutput = z.object({
3278
- content: z.optional(z.union([
3279
- zContentOutput,
3280
- z.null()
3281
- ])),
3282
- groundingMetadata: z.optional(z.union([
3283
- zGroundingMetadataOutput,
3284
- z.null()
3285
- ])),
3286
- partial: z.optional(z.union([
3287
- z.boolean(),
3288
- z.null()
3289
- ])),
3290
- turnComplete: z.optional(z.union([
3291
- z.boolean(),
3292
- z.null()
3293
- ])),
3294
- finishReason: z.optional(z.union([
3295
- zFinishReason,
3296
- z.null()
3297
- ])),
3298
- errorCode: z.optional(z.union([
3299
- z.string(),
3300
- z.null()
3301
- ])),
3302
- errorMessage: z.optional(z.union([
3303
- z.string(),
3304
- z.null()
3305
- ])),
3306
- interrupted: z.optional(z.union([
3307
- z.boolean(),
3308
- z.null()
3309
- ])),
3310
- customMetadata: z.optional(z.union([
3311
- z.record(z.string(), z.unknown()),
3312
- z.null()
3313
- ])),
3314
- usageMetadata: z.optional(z.union([
3315
- zGenerateContentResponseUsageMetadataOutput,
3316
- z.null()
3317
- ])),
3318
- liveSessionResumptionUpdate: z.optional(z.union([
3319
- zLiveServerSessionResumptionUpdate,
3320
- z.null()
3321
- ])),
3322
- inputTranscription: z.optional(z.union([
3323
- zTranscription,
3324
- z.null()
3325
- ])),
3326
- outputTranscription: z.optional(z.union([
3327
- zTranscription,
3328
- z.null()
3329
- ])),
3330
- avgLogprobs: z.optional(z.union([
3331
- z.number(),
3332
- z.null()
3333
- ])),
3334
- logprobsResult: z.optional(z.union([
3335
- zLogprobsResultOutput,
3336
- z.null()
3337
- ])),
3338
- cacheMetadata: z.optional(z.union([
3339
- zCacheMetadata,
3340
- z.null()
3341
- ])),
3342
- invocationId: z.optional(z.string()).default(''),
3343
- author: z.string(),
3344
- actions: z.optional(zEventActionsOutput),
3345
- longRunningToolIds: z.optional(z.union([
3346
- z.array(z.string()),
3347
- z.null()
3348
- ])),
3349
- branch: z.optional(z.union([
3350
- z.string(),
3351
- z.null()
3352
- ])),
3353
- id: z.optional(z.string()).default(''),
3354
- timestamp: z.optional(z.number())
3355
- });
3356
- /**
3357
- * Session
3358
- *
3359
- * Represents a series of interactions between a user and agents.
3360
- */
3361
- export const zSession = z.object({
3362
- id: z.string(),
3363
- appName: z.string(),
3364
- userId: z.string(),
3365
- state: z.optional(z.record(z.string(), z.unknown())),
3366
- events: z.optional(z.array(zEventOutput)),
3367
- lastUpdateTime: z.optional(z.number()).default(0)
3368
- });
3369
- /**
3370
- * Interval
3371
- *
3372
- * Represents a range of numeric values, e.g. [0 ,1] or (2,3) or [-1, 6).
3373
- */
3374
- export const zGoogleAdkEvaluationEvalMetricsInterval = z.object({
3375
- minValue: z.number(),
3376
- openAtMin: z.optional(z.boolean()).default(false),
3377
- maxValue: z.number(),
3378
- openAtMax: z.optional(z.boolean()).default(false)
3379
- });
3380
- /**
3381
- * MetricValueInfo
3382
- *
3383
- * Information about the type of metric value.
3384
- */
3385
- export const zMetricValueInfo = z.object({
3386
- interval: z.optional(z.union([
3387
- zGoogleAdkEvaluationEvalMetricsInterval,
3388
- z.null()
3389
- ]))
3390
- });
3391
- /**
3392
- * MetricInfo
3393
- *
3394
- * Information about the metric that are used for Evals.
3395
- */
3396
- export const zMetricInfo = z.object({
3397
- metricName: z.string(),
3398
- description: z.optional(z.string()),
3399
- metricValueInfo: zMetricValueInfo
3400
- });
3401
- /**
3402
- * ListMetricsInfoResponse
3403
- */
3404
- export const zListMetricsInfoResponse = z.object({
3405
- metricsInfo: z.array(zMetricInfo)
3406
- });
3407
- /**
3408
- * AuthConfig
3409
- *
3410
- * Auth configuration to run the extension.
3411
- */
3412
- export const zGoogleGenaiTypesAuthConfig = z.object({
3413
- apiKeyConfig: z.optional(z.union([
3414
- zApiKeyConfig,
3415
- z.null()
3416
- ])),
3417
- authType: z.optional(z.union([
3418
- zAuthType,
3419
- z.null()
3420
- ])),
3421
- googleServiceAccountConfig: z.optional(z.union([
3422
- zAuthConfigGoogleServiceAccountConfig,
3423
- z.null()
3424
- ])),
3425
- httpBasicAuthConfig: z.optional(z.union([
3426
- zAuthConfigHttpBasicAuthConfig,
3427
- z.null()
3428
- ])),
3429
- oauthConfig: z.optional(z.union([
3430
- zAuthConfigOauthConfig,
3431
- z.null()
3432
- ])),
3433
- oidcConfig: z.optional(z.union([
3434
- zAuthConfigOidcConfig,
3435
- z.null()
3436
- ]))
3437
- });
3438
- /**
3439
- * GoogleMaps
3440
- *
3441
- * Tool to support Google Maps in Model.
3442
- */
3443
- export const zGoogleMapsInput = z.object({
3444
- authConfig: z.optional(z.union([
3445
- zGoogleGenaiTypesAuthConfig,
3446
- z.null()
3447
- ]))
3448
- });
3449
- /**
3450
- * GoogleMaps
3451
- *
3452
- * Tool to support Google Maps in Model.
3453
- */
3454
- export const zGoogleMapsOutput = z.object({
3455
- authConfig: z.optional(z.union([
3456
- zGoogleGenaiTypesAuthConfig,
3457
- z.null()
3458
- ]))
3459
- });
3460
- /**
3461
- * Interval
3462
- *
3463
- * Represents a time interval, encoded as a start time (inclusive) and an end time (exclusive).
3464
- *
3465
- * The start time must be less than or equal to the end time.
3466
- * When the start equals the end time, the interval is an empty interval.
3467
- * (matches no time)
3468
- * When both start and end are unspecified, the interval matches any time.
3469
- */
3470
- export const zGoogleGenaiTypesInterval = z.object({
3471
- startTime: z.optional(z.union([
3472
- z.iso.datetime(),
3473
- z.null()
3474
- ])),
3475
- endTime: z.optional(z.union([
3476
- z.iso.datetime(),
3477
- z.null()
3478
- ]))
3479
- });
3480
- /**
3481
- * GoogleSearch
3482
- *
3483
- * Tool to support Google Search in Model. Powered by Google.
3484
- */
3485
- export const zGoogleSearchOutput = z.object({
3486
- timeRangeFilter: z.optional(z.union([
3487
- zGoogleGenaiTypesInterval,
3488
- z.null()
3489
- ]))
3490
- });
3491
- /**
3492
- * Tool
3493
- *
3494
- * Tool details of a tool that the model may use to generate a response.
3495
- */
3496
- export const zGoogleGenaiTypesToolInput = z.object({
3497
- functionDeclarations: z.optional(z.union([
3498
- z.array(zFunctionDeclarationInput),
3499
- z.null()
3500
- ])),
3501
- retrieval: z.optional(z.union([
3502
- zRetrievalInput,
3503
- z.null()
3504
- ])),
3505
- googleSearch: z.optional(z.union([
3506
- zGoogleSearchInput,
3507
- z.null()
3508
- ])),
3509
- googleSearchRetrieval: z.optional(z.union([
3510
- zGoogleSearchRetrievalInput,
3511
- z.null()
3512
- ])),
3513
- enterpriseWebSearch: z.optional(z.union([
3514
- zEnterpriseWebSearch,
3515
- z.null()
3516
- ])),
3517
- googleMaps: z.optional(z.union([
3518
- zGoogleMapsInput,
3519
- z.null()
3520
- ])),
3521
- urlContext: z.optional(z.union([
3522
- zUrlContext,
3523
- z.null()
3524
- ])),
3525
- codeExecution: z.optional(z.union([
3526
- zToolCodeExecution,
3527
- z.null()
3528
- ]))
3529
- });
3530
- /**
3531
- * Tool
3532
- *
3533
- * Tool details of a tool that the model may use to generate a response.
3534
- */
3535
- export const zGoogleGenaiTypesToolOutput = z.object({
3536
- functionDeclarations: z.optional(z.union([
3537
- z.array(zFunctionDeclarationOutput),
3538
- z.null()
3539
- ])),
3540
- retrieval: z.optional(z.union([
3541
- zRetrievalOutput,
3542
- z.null()
3543
- ])),
3544
- googleSearch: z.optional(z.union([
3545
- zGoogleSearchOutput,
3546
- z.null()
3547
- ])),
3548
- googleSearchRetrieval: z.optional(z.union([
3549
- zGoogleSearchRetrievalOutput,
3550
- z.null()
3551
- ])),
3552
- enterpriseWebSearch: z.optional(z.union([
3553
- zEnterpriseWebSearch,
3554
- z.null()
3555
- ])),
3556
- googleMaps: z.optional(z.union([
3557
- zGoogleMapsOutput,
3558
- z.null()
3559
- ])),
3560
- urlContext: z.optional(z.union([
3561
- zUrlContext,
3562
- z.null()
3563
- ])),
3564
- codeExecution: z.optional(z.union([
3565
- zToolCodeExecution,
3566
- z.null()
3567
- ]))
3568
- });
3569
- /**
3570
- * Tool
3571
- *
3572
- * Definition for a tool the client can call.
3573
- */
3574
- export const zMcpTypesTool = z.object({
3575
- name: z.string(),
3576
- description: z.optional(z.union([
3577
- z.string(),
3578
- z.null()
3579
- ])),
3580
- inputSchema: z.record(z.string(), z.unknown()),
3581
- annotations: z.optional(z.union([
3582
- zToolAnnotations,
3583
- z.null()
3584
- ]))
3585
- });
3586
- /**
3587
- * AgentDetails
3588
- *
3589
- * Details about the individual agent in the App.
3590
- *
3591
- * This could be a root agent or the sub-agents in the Agent Tree.
3592
- */
3593
- export const zAgentDetailsInput = z.object({
3594
- name: z.string(),
3595
- instructions: z.optional(z.string()).default(''),
3596
- toolDeclarations: z.optional(z.array(z.union([zGoogleGenaiTypesToolInput, zMcpTypesTool])))
3597
- });
3598
- /**
3599
- * AgentDetails
3600
- *
3601
- * Details about the individual agent in the App.
3602
- *
3603
- * This could be a root agent or the sub-agents in the Agent Tree.
3604
- */
3605
- export const zAgentDetailsOutput = z.object({
3606
- name: z.string(),
3607
- instructions: z.optional(z.string()).default(''),
3608
- toolDeclarations: z.optional(z.array(z.union([zGoogleGenaiTypesToolOutput, zMcpTypesTool])))
3609
- });
3610
- /**
3611
- * AppDetails
3612
- *
3613
- * Contains details about the App (the agentic system).
3614
- *
3615
- * This structure is only a projection of the acutal app. Only details
3616
- * that are relevant to the Eval System are captured here.
3617
- */
3618
- export const zAppDetailsInput = z.object({
3619
- agentDetails: z.optional(z.record(z.string(), zAgentDetailsInput))
3620
- });
3621
- /**
3622
- * AppDetails
3623
- *
3624
- * Contains details about the App (the agentic system).
3625
- *
3626
- * This structure is only a projection of the acutal app. Only details
3627
- * that are relevant to the Eval System are captured here.
3628
- */
3629
- export const zAppDetailsOutput = z.object({
3630
- agentDetails: z.optional(z.record(z.string(), zAgentDetailsOutput))
3631
- });
3632
- /**
3633
- * GenerateContentConfig
3634
- *
3635
- * Optional model configuration parameters.
3636
- *
3637
- * For more information, see `Content generation parameters
3638
- * <https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/content-generation-parameters>`_.
3639
- */
3640
- export const zGenerateContentConfigInput = z.object({
3641
- httpOptions: z.optional(z.union([
3642
- zHttpOptions,
3643
- z.null()
3644
- ])),
3645
- systemInstruction: z.optional(z.union([
3646
- zContentInput,
3647
- z.array(z.union([
3648
- zFile,
3649
- zPartInput,
3650
- z.string()
3651
- ])),
3652
- zFile,
3653
- zPartInput,
3654
- z.string(),
3655
- z.null()
3656
- ])),
3657
- temperature: z.optional(z.union([
3658
- z.number(),
3659
- z.null()
3660
- ])),
3661
- topP: z.optional(z.union([
3662
- z.number(),
3663
- z.null()
3664
- ])),
3665
- topK: z.optional(z.union([
3666
- z.number(),
3667
- z.null()
3668
- ])),
3669
- candidateCount: z.optional(z.union([
3670
- z.int(),
3671
- z.null()
3672
- ])),
3673
- maxOutputTokens: z.optional(z.union([
3674
- z.int(),
3675
- z.null()
3676
- ])),
3677
- stopSequences: z.optional(z.union([
3678
- z.array(z.string()),
3679
- z.null()
3680
- ])),
3681
- responseLogprobs: z.optional(z.union([
3682
- z.boolean(),
3683
- z.null()
3684
- ])),
3685
- logprobs: z.optional(z.union([
3686
- z.int(),
3687
- z.null()
3688
- ])),
3689
- presencePenalty: z.optional(z.union([
3690
- z.number(),
3691
- z.null()
3692
- ])),
3693
- frequencyPenalty: z.optional(z.union([
3694
- z.number(),
3695
- z.null()
3696
- ])),
3697
- seed: z.optional(z.union([
3698
- z.int(),
3699
- z.null()
3700
- ])),
3701
- responseMimeType: z.optional(z.union([
3702
- z.string(),
3703
- z.null()
3704
- ])),
3705
- responseSchema: z.optional(z.union([
3706
- z.record(z.string(), z.unknown()),
3707
- zSchemaInput,
3708
- z.null()
3709
- ])),
3710
- responseJsonSchema: z.optional(z.union([
3711
- z.unknown(),
3712
- z.null()
3713
- ])),
3714
- routingConfig: z.optional(z.union([
3715
- zGenerationConfigRoutingConfig,
3716
- z.null()
3717
- ])),
3718
- modelSelectionConfig: z.optional(z.union([
3719
- zModelSelectionConfig,
3720
- z.null()
3721
- ])),
3722
- safetySettings: z.optional(z.union([
3723
- z.array(zSafetySetting),
3724
- z.null()
3725
- ])),
3726
- tools: z.optional(z.union([
3727
- z.array(z.union([zGoogleGenaiTypesToolInput, zMcpTypesTool])),
3728
- z.null()
3729
- ])),
3730
- toolConfig: z.optional(z.union([
3731
- zToolConfigInput,
3732
- z.null()
3733
- ])),
3734
- labels: z.optional(z.union([
3735
- z.record(z.string(), z.string()),
3736
- z.null()
3737
- ])),
3738
- cachedContent: z.optional(z.union([
3739
- z.string(),
3740
- z.null()
3741
- ])),
3742
- responseModalities: z.optional(z.union([
3743
- z.array(z.string()),
3744
- z.null()
3745
- ])),
3746
- mediaResolution: z.optional(z.union([
3747
- zMediaResolution,
3748
- z.null()
3749
- ])),
3750
- speechConfig: z.optional(z.union([
3751
- zSpeechConfigInput,
3752
- z.string(),
3753
- z.null()
3754
- ])),
3755
- audioTimestamp: z.optional(z.union([
3756
- z.boolean(),
3757
- z.null()
3758
- ])),
3759
- automaticFunctionCalling: z.optional(z.union([
3760
- zAutomaticFunctionCallingConfig,
3761
- z.null()
3762
- ])),
3763
- thinkingConfig: z.optional(z.union([
3764
- zThinkingConfig,
3765
- z.null()
3766
- ]))
3767
- });
3768
- /**
3769
- * GenerateContentConfig
3770
- *
3771
- * Optional model configuration parameters.
3772
- *
3773
- * For more information, see `Content generation parameters
3774
- * <https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/content-generation-parameters>`_.
3775
- */
3776
- export const zGenerateContentConfigOutput = z.object({
3777
- httpOptions: z.optional(z.union([
3778
- zHttpOptions,
3779
- z.null()
3780
- ])),
3781
- systemInstruction: z.optional(z.union([
3782
- zContentOutput,
3783
- z.array(z.union([
3784
- zFile,
3785
- zPartOutput,
3786
- z.string()
3787
- ])),
3788
- zFile,
3789
- zPartOutput,
3790
- z.string(),
3791
- z.null()
3792
- ])),
3793
- temperature: z.optional(z.union([
3794
- z.number(),
3795
- z.null()
3796
- ])),
3797
- topP: z.optional(z.union([
3798
- z.number(),
3799
- z.null()
3800
- ])),
3801
- topK: z.optional(z.union([
3802
- z.number(),
3803
- z.null()
3804
- ])),
3805
- candidateCount: z.optional(z.union([
3806
- z.int(),
3807
- z.null()
3808
- ])),
3809
- maxOutputTokens: z.optional(z.union([
3810
- z.int(),
3811
- z.null()
3812
- ])),
3813
- stopSequences: z.optional(z.union([
3814
- z.array(z.string()),
3815
- z.null()
3816
- ])),
3817
- responseLogprobs: z.optional(z.union([
3818
- z.boolean(),
3819
- z.null()
3820
- ])),
3821
- logprobs: z.optional(z.union([
3822
- z.int(),
3823
- z.null()
3824
- ])),
3825
- presencePenalty: z.optional(z.union([
3826
- z.number(),
3827
- z.null()
3828
- ])),
3829
- frequencyPenalty: z.optional(z.union([
3830
- z.number(),
3831
- z.null()
3832
- ])),
3833
- seed: z.optional(z.union([
3834
- z.int(),
3835
- z.null()
3836
- ])),
3837
- responseMimeType: z.optional(z.union([
3838
- z.string(),
3839
- z.null()
3840
- ])),
3841
- responseSchema: z.optional(z.union([
3842
- z.record(z.string(), z.unknown()),
3843
- zSchemaOutput,
3844
- z.null()
3845
- ])),
3846
- responseJsonSchema: z.optional(z.union([
3847
- z.unknown(),
3848
- z.null()
3849
- ])),
3850
- routingConfig: z.optional(z.union([
3851
- zGenerationConfigRoutingConfig,
3852
- z.null()
3853
- ])),
3854
- modelSelectionConfig: z.optional(z.union([
3855
- zModelSelectionConfig,
3856
- z.null()
3857
- ])),
3858
- safetySettings: z.optional(z.union([
3859
- z.array(zSafetySetting),
3860
- z.null()
3861
- ])),
3862
- tools: z.optional(z.union([
3863
- z.array(z.union([zGoogleGenaiTypesToolOutput, zMcpTypesTool])),
3864
- z.null()
3865
- ])),
3866
- toolConfig: z.optional(z.union([
3867
- zToolConfigOutput,
3868
- z.null()
3869
- ])),
3870
- labels: z.optional(z.union([
3871
- z.record(z.string(), z.string()),
3872
- z.null()
3873
- ])),
3874
- cachedContent: z.optional(z.union([
3875
- z.string(),
3876
- z.null()
3877
- ])),
3878
- responseModalities: z.optional(z.union([
3879
- z.array(z.string()),
3880
- z.null()
3881
- ])),
3882
- mediaResolution: z.optional(z.union([
3883
- zMediaResolution,
3884
- z.null()
3885
- ])),
3886
- speechConfig: z.optional(z.union([
3887
- zSpeechConfigOutput,
3888
- z.string(),
3889
- z.null()
3890
- ])),
3891
- audioTimestamp: z.optional(z.union([
3892
- z.boolean(),
3893
- z.null()
3894
- ])),
3895
- automaticFunctionCalling: z.optional(z.union([
3896
- zAutomaticFunctionCallingConfig,
3897
- z.null()
3898
- ])),
3899
- thinkingConfig: z.optional(z.union([
3900
- zThinkingConfig,
3901
- z.null()
3902
- ]))
3903
- });
3904
- /**
3905
- * Invocation
3906
- *
3907
- * Represents a single invocation.
3908
- */
3909
- export const zInvocationInput = z.object({
3910
- invocationId: z.optional(z.string()).default(''),
3911
- userContent: zContentInput,
3912
- finalResponse: z.optional(z.union([
3913
- zContentInput,
3914
- z.null()
3915
- ])),
3916
- intermediateData: z.optional(z.union([
3917
- zIntermediateDataInput,
3918
- zInvocationEventsInput,
3919
- z.null()
3920
- ])),
3921
- creationTimestamp: z.optional(z.number()).default(0),
3922
- rubrics: z.optional(z.union([
3923
- z.array(zRubric),
3924
- z.null()
3925
- ])),
3926
- appDetails: z.optional(z.union([
3927
- zAppDetailsInput,
3928
- z.null()
3929
- ]))
3930
- });
3931
- /**
3932
- * EvalCase
3933
- *
3934
- * An eval case.
3935
- */
3936
- export const zEvalCaseInput = z.object({
3937
- evalId: z.string(),
3938
- conversation: z.array(zInvocationInput),
3939
- sessionInput: z.optional(z.union([
3940
- zSessionInput,
3941
- z.null()
3942
- ])),
3943
- creationTimestamp: z.optional(z.number()).default(0),
3944
- rubrics: z.optional(z.union([
3945
- z.array(zRubric),
3946
- z.null()
3947
- ]))
3948
- });
3949
- /**
3950
- * EvalSet
3951
- *
3952
- * A set of eval cases.
3953
- */
3954
- export const zEvalSetInput = z.object({
3955
- eval_set_id: z.string(),
3956
- name: z.optional(z.union([
3957
- z.string(),
3958
- z.null()
3959
- ])),
3960
- description: z.optional(z.union([
3961
- z.string(),
3962
- z.null()
3963
- ])),
3964
- eval_cases: z.array(zEvalCaseInput),
3965
- creation_timestamp: z.optional(z.number()).default(0)
3966
- });
3967
- /**
3968
- * CreateEvalSetRequest
3969
- */
3970
- export const zCreateEvalSetRequest = z.object({
3971
- evalSet: zEvalSetInput
3972
- });
3973
- /**
3974
- * Invocation
3975
- *
3976
- * Represents a single invocation.
3977
- */
3978
- export const zInvocationOutput = z.object({
3979
- invocationId: z.optional(z.string()).default(''),
3980
- userContent: zContentOutput,
3981
- finalResponse: z.optional(z.union([
3982
- zContentOutput,
3983
- z.null()
3984
- ])),
3985
- intermediateData: z.optional(z.union([
3986
- zIntermediateDataOutput,
3987
- zInvocationEventsOutput,
3988
- z.null()
3989
- ])),
3990
- creationTimestamp: z.optional(z.number()).default(0),
3991
- rubrics: z.optional(z.union([
3992
- z.array(zRubric),
3993
- z.null()
3994
- ])),
3995
- appDetails: z.optional(z.union([
3996
- zAppDetailsOutput,
3997
- z.null()
3998
- ]))
3999
- });
4000
- /**
4001
- * EvalCase
4002
- *
4003
- * An eval case.
4004
- */
4005
- export const zEvalCaseOutput = z.object({
4006
- evalId: z.string(),
4007
- conversation: z.array(zInvocationOutput),
4008
- sessionInput: z.optional(z.union([
4009
- zSessionInput,
4010
- z.null()
4011
- ])),
4012
- creationTimestamp: z.optional(z.number()).default(0),
4013
- rubrics: z.optional(z.union([
4014
- z.array(zRubric),
4015
- z.null()
4016
- ]))
4017
- });
4018
- /**
4019
- * EvalSet
4020
- *
4021
- * A set of eval cases.
4022
- */
4023
- export const zEvalSetOutput = z.object({
4024
- eval_set_id: z.string(),
4025
- name: z.optional(z.union([
4026
- z.string(),
4027
- z.null()
4028
- ])),
4029
- description: z.optional(z.union([
4030
- z.string(),
4031
- z.null()
4032
- ])),
4033
- eval_cases: z.array(zEvalCaseOutput),
4034
- creation_timestamp: z.optional(z.number()).default(0)
4035
- });
4036
- /**
4037
- * JudgeModelOptions
4038
- *
4039
- * Options for an eval metric's judge model.
4040
- */
4041
- export const zJudgeModelOptionsInput = z.object({
4042
- judgeModel: z.optional(z.string()).default('gemini-2.5-flash'),
4043
- judgeModelConfig: z.optional(z.union([
4044
- zGenerateContentConfigInput,
4045
- z.null()
4046
- ])),
4047
- numSamples: z.optional(z.int()).default(5)
4048
- });
4049
- /**
4050
- * EvalMetric
4051
- *
4052
- * A metric used to evaluate a particular aspect of an eval case.
4053
- */
4054
- export const zEvalMetricInput = z.object({
4055
- metricName: z.string(),
4056
- threshold: z.number(),
4057
- judgeModelOptions: z.optional(z.union([
4058
- zJudgeModelOptionsInput,
4059
- z.null()
4060
- ])),
4061
- criterion: z.optional(z.union([
4062
- zBaseCriterion,
4063
- z.null()
4064
- ]))
4065
- });
4066
- /**
4067
- * JudgeModelOptions
4068
- *
4069
- * Options for an eval metric's judge model.
4070
- */
4071
- export const zJudgeModelOptionsOutput = z.object({
4072
- judgeModel: z.optional(z.string()).default('gemini-2.5-flash'),
4073
- judgeModelConfig: z.optional(z.union([
4074
- zGenerateContentConfigOutput,
4075
- z.null()
4076
- ])),
4077
- numSamples: z.optional(z.int()).default(5)
4078
- });
4079
- /**
4080
- * EvalMetric
4081
- *
4082
- * A metric used to evaluate a particular aspect of an eval case.
4083
- */
4084
- export const zEvalMetricOutput = z.object({
4085
- metricName: z.string(),
4086
- threshold: z.number(),
4087
- judgeModelOptions: z.optional(z.union([
4088
- zJudgeModelOptionsOutput,
4089
- z.null()
4090
- ])),
4091
- criterion: z.optional(z.union([
4092
- zBaseCriterion,
4093
- z.null()
4094
- ]))
4095
- });
4096
- /**
4097
- * EvalMetricResult
4098
- *
4099
- * The actual computed score/value of a particular EvalMetric.
4100
- */
4101
- export const zEvalMetricResult = z.object({
4102
- metricName: z.string(),
4103
- threshold: z.number(),
4104
- judgeModelOptions: z.optional(z.union([
4105
- zJudgeModelOptionsOutput,
4106
- z.null()
4107
- ])),
4108
- criterion: z.optional(z.union([
4109
- zBaseCriterion,
4110
- z.null()
4111
- ])),
4112
- score: z.optional(z.union([
4113
- z.number(),
4114
- z.null()
4115
- ])),
4116
- evalStatus: zEvalStatus,
4117
- details: z.optional(zEvalMetricResultDetails)
4118
- });
4119
- /**
4120
- * EvalMetricResultPerInvocation
4121
- *
4122
- * Eval metric results per invocation.
4123
- */
4124
- export const zEvalMetricResultPerInvocation = z.object({
4125
- actualInvocation: zInvocationOutput,
4126
- expectedInvocation: zInvocationOutput,
4127
- evalMetricResults: z.optional(z.array(zEvalMetricResult)).default([])
4128
- });
4129
- /**
4130
- * EvalCaseResult
4131
- *
4132
- * Case level evaluation results.
4133
- */
4134
- export const zEvalCaseResult = z.object({
4135
- evalSetFile: z.optional(z.union([
4136
- z.string(),
4137
- z.null()
4138
- ])),
4139
- evalSetId: z.optional(z.string()).default(''),
4140
- evalId: z.optional(z.string()).default(''),
4141
- finalEvalStatus: zEvalStatus,
4142
- evalMetricResults: z.optional(z.union([
4143
- z.array(z.tuple([zEvalMetricOutput, zEvalMetricResult])),
4144
- z.null()
4145
- ])),
4146
- overallEvalMetricResults: z.array(zEvalMetricResult),
4147
- evalMetricResultPerInvocation: z.array(zEvalMetricResultPerInvocation),
4148
- sessionId: z.string(),
4149
- sessionDetails: z.optional(z.union([
4150
- zSession,
4151
- z.null()
4152
- ])),
4153
- userId: z.optional(z.union([
4154
- z.string(),
4155
- z.null()
4156
- ]))
4157
- });
4158
- /**
4159
- * EvalResult
4160
- *
4161
- * This class has no field intentionally.
4162
- *
4163
- * The goal here is to just give a new name to the class to align with the API
4164
- * endpoint.
4165
- */
4166
- export const zEvalResult = z.object({
4167
- evalSetResultId: z.string(),
4168
- evalSetResultName: z.optional(z.union([
4169
- z.string(),
4170
- z.null()
4171
- ])),
4172
- evalSetId: z.string(),
4173
- evalCaseResults: z.optional(z.array(zEvalCaseResult)),
4174
- creationTimestamp: z.optional(z.number()).default(0)
4175
- });
4176
- /**
4177
- * EvalSetResult
4178
- *
4179
- * Eval set level evaluation results.
4180
- */
4181
- export const zEvalSetResult = z.object({
4182
- evalSetResultId: z.string(),
4183
- evalSetResultName: z.optional(z.union([
4184
- z.string(),
4185
- z.null()
4186
- ])),
4187
- evalSetId: z.string(),
4188
- evalCaseResults: z.optional(z.array(zEvalCaseResult)),
4189
- creationTimestamp: z.optional(z.number()).default(0)
4190
- });
4191
- /**
4192
- * RunEvalRequest
4193
- */
4194
- export const zRunEvalRequest = z.object({
4195
- evalIds: z.optional(z.array(z.string())),
4196
- evalCaseIds: z.optional(z.array(z.string())),
4197
- evalMetrics: z.array(zEvalMetricInput)
4198
- });
4199
- /**
4200
- * RunEvalResult
4201
- */
4202
- export const zRunEvalResult = z.object({
4203
- evalSetFile: z.string(),
4204
- evalSetId: z.string(),
4205
- evalId: z.string(),
4206
- finalEvalStatus: zEvalStatus,
4207
- evalMetricResults: z.optional(z.array(z.tuple([zEvalMetricOutput, zEvalMetricResult]))).default([]),
4208
- overallEvalMetricResults: z.array(zEvalMetricResult),
4209
- evalMetricResultPerInvocation: z.array(zEvalMetricResultPerInvocation),
4210
- userId: z.string(),
4211
- sessionId: z.string()
4212
- });
4213
- /**
4214
- * RunEvalResponse
4215
- */
4216
- export const zRunEvalResponse = z.object({
4217
- runEvalResults: z.array(zRunEvalResult)
4218
- });
4219
- export const zListAppsData = z.object({
4220
- body: z.optional(z.never()),
4221
- path: z.optional(z.never()),
4222
- query: z.optional(z.never())
4223
- });
4224
- /**
4225
- * Response List Apps
4226
- *
4227
- * Successful Response
4228
- */
4229
- export const zListAppsResponse = z.array(z.string());
4230
- export const zDebugGetTraceDictData = z.object({
4231
- body: z.optional(z.never()),
4232
- path: z.object({
4233
- event_id: z.string()
4234
- }),
4235
- query: z.optional(z.never())
4236
- });
4237
- export const zDebugGetSessionTraceData = z.object({
4238
- body: z.optional(z.never()),
4239
- path: z.object({
4240
- session_id: z.string()
4241
- }),
4242
- query: z.optional(z.never())
4243
- });
4244
- export const zDeleteSessionData = z.object({
4245
- body: z.optional(z.never()),
4246
- path: z.object({
4247
- app_name: z.string(),
4248
- user_id: z.string(),
4249
- session_id: z.string()
4250
- }),
4251
- query: z.optional(z.never())
4252
- });
4253
- /**
4254
- * Response Delete Session
4255
- *
4256
- * Successful Response
4257
- */
4258
- export const zDeleteSessionResponse = z.null();
4259
- export const zGetSessionData = z.object({
4260
- body: z.optional(z.never()),
4261
- path: z.object({
4262
- app_name: z.string(),
4263
- user_id: z.string(),
4264
- session_id: z.string()
4265
- }),
4266
- query: z.optional(z.never())
4267
- });
4268
- /**
4269
- * Successful Response
4270
- */
4271
- export const zGetSessionResponse = zSession;
4272
- export const zCreateSessionWithIdData = z.object({
4273
- body: z.optional(z.union([
4274
- z.record(z.string(), z.unknown()),
4275
- z.null()
4276
- ])),
4277
- path: z.object({
4278
- app_name: z.string(),
4279
- user_id: z.string(),
4280
- session_id: z.string()
4281
- }),
4282
- query: z.optional(z.never())
4283
- });
4284
- /**
4285
- * Successful Response
4286
- */
4287
- export const zCreateSessionWithIdResponse = zSession;
4288
- export const zListSessionsData = z.object({
4289
- body: z.optional(z.never()),
4290
- path: z.object({
4291
- app_name: z.string(),
4292
- user_id: z.string()
4293
- }),
4294
- query: z.optional(z.never())
4295
- });
4296
- /**
4297
- * Response List Sessions
4298
- *
4299
- * Successful Response
4300
- */
4301
- export const zListSessionsResponse = z.array(zSession);
4302
- export const zCreateSessionData = z.object({
4303
- body: z.optional(z.union([
4304
- zCreateSessionRequest,
4305
- z.null()
4306
- ])),
4307
- path: z.object({
4308
- app_name: z.string(),
4309
- user_id: z.string()
4310
- }),
4311
- query: z.optional(z.never())
4312
- });
4313
- /**
4314
- * Successful Response
4315
- */
4316
- export const zCreateSessionResponse = zSession;
4317
- export const zEvaluationListEvalSetsData = z.object({
4318
- body: z.optional(z.never()),
4319
- path: z.object({
4320
- app_name: z.string()
4321
- }),
4322
- query: z.optional(z.never())
4323
- });
4324
- /**
4325
- * Successful Response
4326
- */
4327
- export const zEvaluationListEvalSetsResponse = zListEvalSetsResponse;
4328
- export const zEvaluationCreateEvalSetData = z.object({
4329
- body: zCreateEvalSetRequest,
4330
- path: z.object({
4331
- app_name: z.string()
4332
- }),
4333
- query: z.optional(z.never())
4334
- });
4335
- /**
4336
- * Successful Response
4337
- */
4338
- export const zEvaluationCreateEvalSetResponse = zEvalSetOutput;
4339
- export const zEvaluationCreateEvalSetLegacyData = z.object({
4340
- body: z.optional(z.never()),
4341
- path: z.object({
4342
- app_name: z.string(),
4343
- eval_set_id: z.string()
4344
- }),
4345
- query: z.optional(z.never())
4346
- });
4347
- export const zEvaluationListEvalSetsLegacyData = z.object({
4348
- body: z.optional(z.never()),
4349
- path: z.object({
4350
- app_name: z.string()
4351
- }),
4352
- query: z.optional(z.never())
4353
- });
4354
- /**
4355
- * Response Evaluation-List Eval Sets Legacy
4356
- *
4357
- * Successful Response
4358
- */
4359
- export const zEvaluationListEvalSetsLegacyResponse = z.array(z.string());
4360
- export const zEvaluationAddSessionToEvalSetData = z.object({
4361
- body: zAddSessionToEvalSetRequest,
4362
- path: z.object({
4363
- app_name: z.string(),
4364
- eval_set_id: z.string()
4365
- }),
4366
- query: z.optional(z.never())
4367
- });
4368
- export const zEvaluationListEvalsInEvalSetData = z.object({
4369
- body: z.optional(z.never()),
4370
- path: z.object({
4371
- app_name: z.string(),
4372
- eval_set_id: z.string()
4373
- }),
4374
- query: z.optional(z.never())
4375
- });
4376
- /**
4377
- * Response Evaluation-List Evals In Eval Set
4378
- *
4379
- * Successful Response
4380
- */
4381
- export const zEvaluationListEvalsInEvalSetResponse = z.array(z.string());
4382
- export const zEvaluationDeleteEvalData = z.object({
4383
- body: z.optional(z.never()),
4384
- path: z.object({
4385
- app_name: z.string(),
4386
- eval_set_id: z.string(),
4387
- eval_case_id: z.string()
4388
- }),
4389
- query: z.optional(z.never())
4390
- });
4391
- /**
4392
- * Response Evaluation-Delete Eval
4393
- *
4394
- * Successful Response
4395
- */
4396
- export const zEvaluationDeleteEvalResponse = z.null();
4397
- export const zEvaluationGetEvalData = z.object({
4398
- body: z.optional(z.never()),
4399
- path: z.object({
4400
- app_name: z.string(),
4401
- eval_set_id: z.string(),
4402
- eval_case_id: z.string()
4403
- }),
4404
- query: z.optional(z.never())
4405
- });
4406
- /**
4407
- * Successful Response
4408
- */
4409
- export const zEvaluationGetEvalResponse = zEvalCaseOutput;
4410
- export const zEvaluationUpdateEvalData = z.object({
4411
- body: zEvalCaseInput,
4412
- path: z.object({
4413
- app_name: z.string(),
4414
- eval_set_id: z.string(),
4415
- eval_case_id: z.string()
4416
- }),
4417
- query: z.optional(z.never())
4418
- });
4419
- export const zEvaluationRunEvalLegacyData = z.object({
4420
- body: zRunEvalRequest,
4421
- path: z.object({
4422
- app_name: z.string(),
4423
- eval_set_id: z.string()
4424
- }),
4425
- query: z.optional(z.never())
4426
- });
4427
- /**
4428
- * Response Evaluation-Run Eval Legacy
4429
- *
4430
- * Successful Response
4431
- */
4432
- export const zEvaluationRunEvalLegacyResponse = z.array(zRunEvalResult);
4433
- export const zEvaluationRunEvalData = z.object({
4434
- body: zRunEvalRequest,
4435
- path: z.object({
4436
- app_name: z.string(),
4437
- eval_set_id: z.string()
4438
- }),
4439
- query: z.optional(z.never())
4440
- });
4441
- /**
4442
- * Successful Response
4443
- */
4444
- export const zEvaluationRunEvalResponse = zRunEvalResponse;
4445
- export const zEvaluationGetEvalResultData = z.object({
4446
- body: z.optional(z.never()),
4447
- path: z.object({
4448
- app_name: z.string(),
4449
- eval_result_id: z.string()
4450
- }),
4451
- query: z.optional(z.never())
4452
- });
4453
- /**
4454
- * Successful Response
4455
- */
4456
- export const zEvaluationGetEvalResultResponse = zEvalResult;
4457
- export const zEvaluationGetEvalResultLegacyData = z.object({
4458
- body: z.optional(z.never()),
4459
- path: z.object({
4460
- app_name: z.string(),
4461
- eval_result_id: z.string()
4462
- }),
4463
- query: z.optional(z.never())
4464
- });
4465
- /**
4466
- * Successful Response
4467
- */
4468
- export const zEvaluationGetEvalResultLegacyResponse = zEvalSetResult;
4469
- export const zEvaluationListEvalResultsData = z.object({
4470
- body: z.optional(z.never()),
4471
- path: z.object({
4472
- app_name: z.string()
4473
- }),
4474
- query: z.optional(z.never())
4475
- });
4476
- /**
4477
- * Successful Response
4478
- */
4479
- export const zEvaluationListEvalResultsResponse = zListEvalResultsResponse;
4480
- export const zEvaluationListEvalResultsLegacyData = z.object({
4481
- body: z.optional(z.never()),
4482
- path: z.object({
4483
- app_name: z.string()
4484
- }),
4485
- query: z.optional(z.never())
4486
- });
4487
- /**
4488
- * Response Evaluation-List Eval Results Legacy
4489
- *
4490
- * Successful Response
4491
- */
4492
- export const zEvaluationListEvalResultsLegacyResponse = z.array(z.string());
4493
- export const zEvaluationListMetricsInfoData = z.object({
4494
- body: z.optional(z.never()),
4495
- path: z.object({
4496
- app_name: z.string()
4497
- }),
4498
- query: z.optional(z.never())
4499
- });
4500
- /**
4501
- * Successful Response
4502
- */
4503
- export const zEvaluationListMetricsInfoResponse = zListMetricsInfoResponse;
4504
- export const zDeleteArtifactData = z.object({
4505
- body: z.optional(z.never()),
4506
- path: z.object({
4507
- app_name: z.string(),
4508
- user_id: z.string(),
4509
- session_id: z.string(),
4510
- artifact_name: z.string()
4511
- }),
4512
- query: z.optional(z.never())
4513
- });
4514
- /**
4515
- * Response Delete Artifact
4516
- *
4517
- * Successful Response
4518
- */
4519
- export const zDeleteArtifactResponse = z.null();
4520
- export const zLoadArtifactData = z.object({
4521
- body: z.optional(z.never()),
4522
- path: z.object({
4523
- app_name: z.string(),
4524
- user_id: z.string(),
4525
- session_id: z.string(),
4526
- artifact_name: z.string()
4527
- }),
4528
- query: z.optional(z.object({
4529
- version: z.optional(z.union([
4530
- z.int(),
4531
- z.null()
4532
- ]))
4533
- }))
4534
- });
4535
- /**
4536
- * Response Load Artifact
4537
- *
4538
- * Successful Response
4539
- */
4540
- export const zLoadArtifactResponse = z.union([
4541
- zPartOutput,
4542
- z.null()
4543
- ]);
4544
- export const zLoadArtifactVersionData = z.object({
4545
- body: z.optional(z.never()),
4546
- path: z.object({
4547
- app_name: z.string(),
4548
- user_id: z.string(),
4549
- session_id: z.string(),
4550
- artifact_name: z.string(),
4551
- version_id: z.int()
4552
- }),
4553
- query: z.optional(z.never())
4554
- });
4555
- /**
4556
- * Response Load Artifact Version
4557
- *
4558
- * Successful Response
4559
- */
4560
- export const zLoadArtifactVersionResponse = z.union([
4561
- zPartOutput,
4562
- z.null()
4563
- ]);
4564
- export const zListArtifactNamesData = z.object({
4565
- body: z.optional(z.never()),
4566
- path: z.object({
4567
- app_name: z.string(),
4568
- user_id: z.string(),
4569
- session_id: z.string()
4570
- }),
4571
- query: z.optional(z.never())
4572
- });
4573
- /**
4574
- * Response List Artifact Names
4575
- *
4576
- * Successful Response
4577
- */
4578
- export const zListArtifactNamesResponse = z.array(z.string());
4579
- export const zListArtifactVersionsData = z.object({
4580
- body: z.optional(z.never()),
4581
- path: z.object({
4582
- app_name: z.string(),
4583
- user_id: z.string(),
4584
- session_id: z.string(),
4585
- artifact_name: z.string()
4586
- }),
4587
- query: z.optional(z.never())
4588
- });
4589
- /**
4590
- * Response List Artifact Versions
4591
- *
4592
- * Successful Response
4593
- */
4594
- export const zListArtifactVersionsResponse = z.array(z.int());
4595
- export const zRunAgentData = z.object({
4596
- body: zRunAgentRequest,
4597
- path: z.optional(z.never()),
4598
- query: z.optional(z.never())
4599
- });
4600
- /**
4601
- * Response Run Agent
4602
- *
4603
- * Successful Response
4604
- */
4605
- export const zRunAgentResponse = z.array(zEventOutput);
4606
- export const zRunAgentSseData = z.object({
4607
- body: zRunAgentRequest,
4608
- path: z.optional(z.never()),
4609
- query: z.optional(z.never())
4610
- });
4611
- export const zDebugGetEventGraphData = z.object({
4612
- body: z.optional(z.never()),
4613
- path: z.object({
4614
- app_name: z.string(),
4615
- user_id: z.string(),
4616
- session_id: z.string(),
4617
- event_id: z.string()
4618
- }),
4619
- query: z.optional(z.never())
4620
- });
4621
- export const zRedirectRootToDevUiData = z.object({
4622
- body: z.optional(z.never()),
4623
- path: z.optional(z.never()),
4624
- query: z.optional(z.never())
4625
- });
4626
- export const zRedirectDevUiAddSlashData = z.object({
4627
- body: z.optional(z.never()),
4628
- path: z.optional(z.never()),
4629
- query: z.optional(z.never())
4630
- });
4631
- export const zBuilderBuildData = z.object({
4632
- body: zBodyBuilderBuild,
4633
- path: z.optional(z.never()),
4634
- query: z.optional(z.never())
4635
- });
4636
- /**
4637
- * Response Builder Build
4638
- *
4639
- * Successful Response
4640
- */
4641
- export const zBuilderBuildResponse = z.boolean();
4642
- export const zGetAgentBuilderData = z.object({
4643
- body: z.optional(z.never()),
4644
- path: z.object({
4645
- app_name: z.string()
4646
- }),
4647
- query: z.optional(z.object({
4648
- file_path: z.optional(z.union([
4649
- z.string(),
4650
- z.null()
4651
- ]))
4652
- }))
4653
- });
4654
- /**
4655
- * Successful Response
4656
- */
4657
- export const zGetAgentBuilderResponse = z.string();
4658
- export const zChatAgentGetChatConfigData = z.object({
4659
- body: z.optional(z.never()),
4660
- path: z.optional(z.never()),
4661
- query: z.optional(z.never())
4662
- });
4663
- /**
4664
- * Successful Response
4665
- */
4666
- export const zChatAgentGetChatConfigResponse = zChatConfig;
4667
- export const zChatAgentUpdateChatConfigData = z.object({
4668
- body: zChatConfig,
4669
- path: z.optional(z.never()),
4670
- query: z.optional(z.never())
4671
- });
4672
- /**
4673
- * Successful Response
4674
- */
4675
- export const zChatAgentUpdateChatConfigResponse = zChatConfig;
4676
- export const zChatAgentGetProvidersData = z.object({
4677
- body: z.optional(z.never()),
4678
- path: z.optional(z.never()),
4679
- query: z.optional(z.never())
4680
- });
4681
- export const zChatAgentValidateApiKeyData = z.object({
4682
- body: z.record(z.string(), z.unknown()),
4683
- path: z.optional(z.never()),
4684
- query: z.optional(z.never())
4685
- });
4686
- export const zChatAgentExportConfigData = z.object({
4687
- body: z.optional(z.never()),
4688
- path: z.optional(z.never()),
4689
- query: z.optional(z.never())
4690
- });
4691
- export const zChatAgentImportConfigData = z.object({
4692
- body: z.record(z.string(), z.unknown()),
4693
- path: z.optional(z.never()),
4694
- query: z.optional(z.never())
4695
- });
4696
- export const zChatAgentChatData = z.object({
4697
- body: zChatRequest,
4698
- path: z.optional(z.never()),
4699
- query: z.optional(z.never())
4700
- });
4701
- /**
4702
- * Successful Response
4703
- */
4704
- export const zChatAgentChatResponse = zChatResponse;
4705
- export const zListItemsData = z.object({
4706
- body: z.optional(z.never()),
4707
- path: z.optional(z.never()),
4708
- query: z.optional(z.object({
4709
- skip: z.optional(z.int()).default(0),
4710
- limit: z.optional(z.int()).default(10)
4711
- }))
4712
- });
4713
- /**
4714
- * Response List Items
4715
- *
4716
- * Successful Response
4717
- */
4718
- export const zListItemsResponse = z.array(zItem);
4719
- export const zCreateItemData = z.object({
4720
- body: zItem,
4721
- path: z.optional(z.never()),
4722
- query: z.optional(z.never())
4723
- });
4724
- /**
4725
- * Successful Response
4726
- */
4727
- export const zCreateItemResponse = zItem;
4728
- export const zDeleteItemData = z.object({
4729
- body: z.optional(z.never()),
4730
- path: z.object({
4731
- item_id: z.int()
4732
- }),
4733
- query: z.optional(z.never())
4734
- });
4735
- export const zGetItemData = z.object({
4736
- body: z.optional(z.never()),
4737
- path: z.object({
4738
- item_id: z.int()
4739
- }),
4740
- query: z.optional(z.never())
4741
- });
4742
- /**
4743
- * Successful Response
4744
- */
4745
- export const zGetItemResponse = zItem;
4746
- export const zUpdateItemData = z.object({
4747
- body: zItem,
4748
- path: z.object({
4749
- item_id: z.int()
4750
- }),
4751
- query: z.optional(z.never())
4752
- });
4753
- /**
4754
- * Successful Response
4755
- */
4756
- export const zUpdateItemResponse = zItem;
4757
- export const zSearchItemsData = z.object({
4758
- body: z.optional(z.never()),
4759
- path: z.optional(z.never()),
4760
- query: z.optional(z.object({
4761
- q: z.optional(z.union([
4762
- z.string(),
4763
- z.null()
4764
- ])),
4765
- min_price: z.optional(z.union([
4766
- z.number(),
4767
- z.null()
4768
- ])),
4769
- max_price: z.optional(z.union([
4770
- z.number(),
4771
- z.null()
4772
- ])),
4773
- tags: z.optional(z.array(z.string())).default([])
4774
- }))
4775
- });
4776
- /**
4777
- * Response Search Items
4778
- *
4779
- * Successful Response
4780
- */
4781
- export const zSearchItemsResponse = z.array(zItem);
4782
- export const zAgentsAgentrunData = z.object({
4783
- body: zRunAgentRequest,
4784
- path: z.optional(z.never()),
4785
- query: z.optional(z.never())
4786
- });
4787
- export const zSandboxStartNapcatSandboxData = z.object({
4788
- body: zStartNapcatRequest,
4789
- path: z.optional(z.never()),
4790
- query: z.optional(z.never())
4791
- });
4792
- /**
4793
- * Successful Response
4794
- */
4795
- export const zSandboxStartNapcatSandboxResponse = zStartNapcatResponse;
4796
- export const zSandboxCheckSandboxStatusData = z.object({
4797
- body: zCheckSandboxStatusRequest,
4798
- path: z.optional(z.never()),
4799
- query: z.optional(z.never())
4800
- });
4801
- /**
4802
- * Successful Response
4803
- */
4804
- export const zSandboxCheckSandboxStatusResponse = zCheckSandboxStatusResponse;
4805
- //# sourceMappingURL=zod.gen.js.map