@mutagent/sdk 0.2.28 → 0.2.33

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 (334) hide show
  1. package/dist/commonjs/lib/config.d.ts +2 -2
  2. package/dist/commonjs/lib/config.js +2 -2
  3. package/dist/commonjs/models/index.d.ts +4 -6
  4. package/dist/commonjs/models/index.d.ts.map +1 -1
  5. package/dist/commonjs/models/index.js +4 -6
  6. package/dist/commonjs/models/index.js.map +1 -1
  7. package/dist/commonjs/models/name-description-is-latest.d.ts +55 -0
  8. package/dist/commonjs/models/name-description-is-latest.d.ts.map +1 -0
  9. package/dist/commonjs/models/{schemadefaul18.js → name-description-is-latest.js} +17 -13
  10. package/dist/commonjs/models/name-description-is-latest.js.map +1 -0
  11. package/dist/commonjs/models/name-description-version.d.ts +6 -33
  12. package/dist/commonjs/models/name-description-version.d.ts.map +1 -1
  13. package/dist/commonjs/models/name-description-version.js +4 -22
  14. package/dist/commonjs/models/name-description-version.js.map +1 -1
  15. package/dist/commonjs/models/name-provider-api-key.d.ts +3 -2
  16. package/dist/commonjs/models/name-provider-api-key.d.ts.map +1 -1
  17. package/dist/commonjs/models/name-provider-api-key.js +2 -1
  18. package/dist/commonjs/models/name-provider-api-key.js.map +1 -1
  19. package/dist/commonjs/models/new-version-changes.d.ts +3 -3
  20. package/dist/commonjs/models/new-version-changes.d.ts.map +1 -1
  21. package/dist/commonjs/models/new-version-changes.js +2 -2
  22. package/dist/commonjs/models/new-version-changes.js.map +1 -1
  23. package/dist/commonjs/models/operations/delete-agent-dataset.d.ts +1 -1
  24. package/dist/commonjs/models/operations/delete-agent-dataset.d.ts.map +1 -1
  25. package/dist/commonjs/models/operations/delete-agent-dataset.js +1 -1
  26. package/dist/commonjs/models/operations/delete-agent-dataset.js.map +1 -1
  27. package/dist/commonjs/models/operations/delete-prompt-dataset.d.ts +1 -1
  28. package/dist/commonjs/models/operations/delete-prompt-dataset.d.ts.map +1 -1
  29. package/dist/commonjs/models/operations/delete-prompt-dataset.js +1 -1
  30. package/dist/commonjs/models/operations/delete-prompt-dataset.js.map +1 -1
  31. package/dist/commonjs/models/operations/list-optimizations.d.ts +1 -1
  32. package/dist/commonjs/models/operations/list-optimizations.js +1 -1
  33. package/dist/commonjs/models/operations/list-providers.d.ts +1 -1
  34. package/dist/commonjs/models/operations/list-providers.d.ts.map +1 -1
  35. package/dist/commonjs/models/operations/list-providers.js +1 -1
  36. package/dist/commonjs/models/operations/list-providers.js.map +1 -1
  37. package/dist/commonjs/models/operations/list-traces.d.ts +4 -4
  38. package/dist/commonjs/models/operations/list-traces.d.ts.map +1 -1
  39. package/dist/commonjs/models/operations/list-traces.js +2 -2
  40. package/dist/commonjs/models/operations/list-traces.js.map +1 -1
  41. package/dist/commonjs/models/operations/list-workspaces.d.ts +1 -1
  42. package/dist/commonjs/models/operations/list-workspaces.d.ts.map +1 -1
  43. package/dist/commonjs/models/operations/list-workspaces.js +1 -1
  44. package/dist/commonjs/models/operations/list-workspaces.js.map +1 -1
  45. package/dist/commonjs/models/operations/update-organization-member.d.ts +1 -1
  46. package/dist/commonjs/models/operations/update-organization-member.js +1 -1
  47. package/dist/commonjs/models/operations/update-prompt.d.ts +2 -2
  48. package/dist/commonjs/models/operations/update-prompt.d.ts.map +1 -1
  49. package/dist/commonjs/models/operations/update-prompt.js +1 -1
  50. package/dist/commonjs/models/operations/update-prompt.js.map +1 -1
  51. package/dist/commonjs/models/operations/update-workspace-member.d.ts +1 -1
  52. package/dist/commonjs/models/operations/update-workspace-member.js +1 -1
  53. package/dist/commonjs/models/schemadefaul12.d.ts +10 -0
  54. package/dist/commonjs/models/{schemadefaul13.d.ts.map → schemadefaul12.d.ts.map} +1 -1
  55. package/dist/commonjs/models/{schemadefaul13.js → schemadefaul12.js} +10 -10
  56. package/dist/commonjs/models/{schemadefaul13.js.map → schemadefaul12.js.map} +1 -1
  57. package/dist/commonjs/models/schemadefaul14.d.ts +9 -0
  58. package/dist/commonjs/models/{schemadefaul15.d.ts.map → schemadefaul14.d.ts.map} +1 -1
  59. package/dist/commonjs/models/{schemadefaul15.js → schemadefaul14.js} +9 -9
  60. package/dist/commonjs/models/{schemadefaul15.js.map → schemadefaul14.js.map} +1 -1
  61. package/dist/commonjs/models/schemadefaul8.d.ts +10 -0
  62. package/dist/commonjs/models/{schemadefaul9.d.ts.map → schemadefaul8.d.ts.map} +1 -1
  63. package/dist/commonjs/models/{schemadefaul9.js → schemadefaul8.js} +8 -8
  64. package/dist/commonjs/models/{schemadefaul9.js.map → schemadefaul8.js.map} +1 -1
  65. package/dist/esm/lib/config.d.ts +2 -2
  66. package/dist/esm/lib/config.js +2 -2
  67. package/dist/esm/models/index.d.ts +4 -6
  68. package/dist/esm/models/index.d.ts.map +1 -1
  69. package/dist/esm/models/index.js +4 -6
  70. package/dist/esm/models/index.js.map +1 -1
  71. package/dist/esm/models/name-description-is-latest.d.ts +55 -0
  72. package/dist/esm/models/name-description-is-latest.d.ts.map +1 -0
  73. package/dist/esm/models/name-description-is-latest.js +20 -0
  74. package/dist/esm/models/name-description-is-latest.js.map +1 -0
  75. package/dist/esm/models/name-description-version.d.ts +6 -33
  76. package/dist/esm/models/name-description-version.d.ts.map +1 -1
  77. package/dist/esm/models/name-description-version.js +3 -18
  78. package/dist/esm/models/name-description-version.js.map +1 -1
  79. package/dist/esm/models/name-provider-api-key.d.ts +3 -2
  80. package/dist/esm/models/name-provider-api-key.d.ts.map +1 -1
  81. package/dist/esm/models/name-provider-api-key.js +2 -1
  82. package/dist/esm/models/name-provider-api-key.js.map +1 -1
  83. package/dist/esm/models/new-version-changes.d.ts +3 -3
  84. package/dist/esm/models/new-version-changes.d.ts.map +1 -1
  85. package/dist/esm/models/new-version-changes.js +2 -2
  86. package/dist/esm/models/new-version-changes.js.map +1 -1
  87. package/dist/esm/models/operations/delete-agent-dataset.d.ts +1 -1
  88. package/dist/esm/models/operations/delete-agent-dataset.d.ts.map +1 -1
  89. package/dist/esm/models/operations/delete-agent-dataset.js +1 -1
  90. package/dist/esm/models/operations/delete-agent-dataset.js.map +1 -1
  91. package/dist/esm/models/operations/delete-prompt-dataset.d.ts +1 -1
  92. package/dist/esm/models/operations/delete-prompt-dataset.d.ts.map +1 -1
  93. package/dist/esm/models/operations/delete-prompt-dataset.js +1 -1
  94. package/dist/esm/models/operations/delete-prompt-dataset.js.map +1 -1
  95. package/dist/esm/models/operations/list-optimizations.d.ts +1 -1
  96. package/dist/esm/models/operations/list-optimizations.js +1 -1
  97. package/dist/esm/models/operations/list-providers.d.ts +1 -1
  98. package/dist/esm/models/operations/list-providers.d.ts.map +1 -1
  99. package/dist/esm/models/operations/list-providers.js +1 -1
  100. package/dist/esm/models/operations/list-providers.js.map +1 -1
  101. package/dist/esm/models/operations/list-traces.d.ts +4 -4
  102. package/dist/esm/models/operations/list-traces.d.ts.map +1 -1
  103. package/dist/esm/models/operations/list-traces.js +2 -2
  104. package/dist/esm/models/operations/list-traces.js.map +1 -1
  105. package/dist/esm/models/operations/list-workspaces.d.ts +1 -1
  106. package/dist/esm/models/operations/list-workspaces.d.ts.map +1 -1
  107. package/dist/esm/models/operations/list-workspaces.js +1 -1
  108. package/dist/esm/models/operations/list-workspaces.js.map +1 -1
  109. package/dist/esm/models/operations/update-organization-member.d.ts +1 -1
  110. package/dist/esm/models/operations/update-organization-member.js +1 -1
  111. package/dist/esm/models/operations/update-prompt.d.ts +2 -2
  112. package/dist/esm/models/operations/update-prompt.d.ts.map +1 -1
  113. package/dist/esm/models/operations/update-prompt.js +1 -1
  114. package/dist/esm/models/operations/update-prompt.js.map +1 -1
  115. package/dist/esm/models/operations/update-workspace-member.d.ts +1 -1
  116. package/dist/esm/models/operations/update-workspace-member.js +1 -1
  117. package/dist/esm/models/schemadefaul12.d.ts +10 -0
  118. package/dist/esm/models/{schemadefaul13.d.ts.map → schemadefaul12.d.ts.map} +1 -1
  119. package/dist/esm/models/schemadefaul12.js +14 -0
  120. package/dist/esm/models/{schemadefaul13.js.map → schemadefaul12.js.map} +1 -1
  121. package/dist/esm/models/schemadefaul14.d.ts +9 -0
  122. package/dist/esm/models/{schemadefaul15.d.ts.map → schemadefaul14.d.ts.map} +1 -1
  123. package/dist/esm/models/schemadefaul14.js +13 -0
  124. package/dist/esm/models/{schemadefaul15.js.map → schemadefaul14.js.map} +1 -1
  125. package/dist/esm/models/schemadefaul8.d.ts +10 -0
  126. package/dist/esm/models/{schemadefaul9.d.ts.map → schemadefaul8.d.ts.map} +1 -1
  127. package/dist/esm/models/schemadefaul8.js +12 -0
  128. package/dist/esm/models/{schemadefaul9.js.map → schemadefaul8.js.map} +1 -1
  129. package/jsr.json +1 -1
  130. package/openapi.json +59 -73
  131. package/package.json +2 -3
  132. package/scripts/fix-openapi.ts +138 -18
  133. package/src/lib/config.ts +2 -2
  134. package/src/models/index.ts +4 -6
  135. package/src/models/name-description-is-latest.ts +81 -0
  136. package/src/models/name-description-version.ts +9 -79
  137. package/src/models/name-provider-api-key.ts +3 -2
  138. package/src/models/new-version-changes.ts +7 -7
  139. package/src/models/operations/delete-agent-dataset.ts +2 -2
  140. package/src/models/operations/delete-prompt-dataset.ts +2 -2
  141. package/src/models/operations/list-optimizations.ts +3 -3
  142. package/src/models/operations/list-providers.ts +2 -2
  143. package/src/models/operations/list-traces.ts +6 -12
  144. package/src/models/operations/list-workspaces.ts +2 -2
  145. package/src/models/operations/update-organization-member.ts +3 -3
  146. package/src/models/operations/update-prompt.ts +3 -3
  147. package/src/models/operations/update-workspace-member.ts +3 -3
  148. package/src/models/{schemadefaul13.ts → schemadefaul12.ts} +4 -4
  149. package/src/models/{schemadefaul15.ts → schemadefaul14.ts} +4 -4
  150. package/src/models/{schemadefaul9.ts → schemadefaul8.ts} +5 -5
  151. package/dist/commonjs/models/description-is-latest-system-prompt.d.ts +0 -68
  152. package/dist/commonjs/models/description-is-latest-system-prompt.d.ts.map +0 -1
  153. package/dist/commonjs/models/description-is-latest-system-prompt.js +0 -68
  154. package/dist/commonjs/models/description-is-latest-system-prompt.js.map +0 -1
  155. package/dist/commonjs/models/schemadefaul13.d.ts +0 -10
  156. package/dist/commonjs/models/schemadefaul15.d.ts +0 -9
  157. package/dist/commonjs/models/schemadefaul18.d.ts +0 -13
  158. package/dist/commonjs/models/schemadefaul18.d.ts.map +0 -1
  159. package/dist/commonjs/models/schemadefaul18.js.map +0 -1
  160. package/dist/commonjs/models/schemadefaul19.d.ts +0 -9
  161. package/dist/commonjs/models/schemadefaul19.d.ts.map +0 -1
  162. package/dist/commonjs/models/schemadefaul19.js +0 -49
  163. package/dist/commonjs/models/schemadefaul19.js.map +0 -1
  164. package/dist/commonjs/models/schemadefaul9.d.ts +0 -10
  165. package/dist/esm/models/description-is-latest-system-prompt.d.ts +0 -68
  166. package/dist/esm/models/description-is-latest-system-prompt.d.ts.map +0 -1
  167. package/dist/esm/models/description-is-latest-system-prompt.js +0 -29
  168. package/dist/esm/models/description-is-latest-system-prompt.js.map +0 -1
  169. package/dist/esm/models/schemadefaul13.d.ts +0 -10
  170. package/dist/esm/models/schemadefaul13.js +0 -14
  171. package/dist/esm/models/schemadefaul15.d.ts +0 -9
  172. package/dist/esm/models/schemadefaul15.js +0 -13
  173. package/dist/esm/models/schemadefaul18.d.ts +0 -13
  174. package/dist/esm/models/schemadefaul18.d.ts.map +0 -1
  175. package/dist/esm/models/schemadefaul18.js +0 -17
  176. package/dist/esm/models/schemadefaul18.js.map +0 -1
  177. package/dist/esm/models/schemadefaul19.d.ts +0 -9
  178. package/dist/esm/models/schemadefaul19.d.ts.map +0 -1
  179. package/dist/esm/models/schemadefaul19.js +0 -13
  180. package/dist/esm/models/schemadefaul19.js.map +0 -1
  181. package/dist/esm/models/schemadefaul9.d.ts +0 -10
  182. package/dist/esm/models/schemadefaul9.js +0 -12
  183. package/examples/node_modules/.package-lock.json +0 -174
  184. package/examples/node_modules/@esbuild/darwin-arm64/package.json +0 -20
  185. package/examples/node_modules/@types/node/assert/strict.d.ts +0 -8
  186. package/examples/node_modules/@types/node/assert.d.ts +0 -1062
  187. package/examples/node_modules/@types/node/async_hooks.d.ts +0 -605
  188. package/examples/node_modules/@types/node/buffer.buffer.d.ts +0 -471
  189. package/examples/node_modules/@types/node/buffer.d.ts +0 -1936
  190. package/examples/node_modules/@types/node/child_process.d.ts +0 -1475
  191. package/examples/node_modules/@types/node/cluster.d.ts +0 -577
  192. package/examples/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
  193. package/examples/node_modules/@types/node/compatibility/index.d.ts +0 -9
  194. package/examples/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
  195. package/examples/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
  196. package/examples/node_modules/@types/node/console.d.ts +0 -452
  197. package/examples/node_modules/@types/node/constants.d.ts +0 -21
  198. package/examples/node_modules/@types/node/crypto.d.ts +0 -4590
  199. package/examples/node_modules/@types/node/dgram.d.ts +0 -597
  200. package/examples/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
  201. package/examples/node_modules/@types/node/dns/promises.d.ts +0 -479
  202. package/examples/node_modules/@types/node/dns.d.ts +0 -871
  203. package/examples/node_modules/@types/node/domain.d.ts +0 -170
  204. package/examples/node_modules/@types/node/events.d.ts +0 -977
  205. package/examples/node_modules/@types/node/fs/promises.d.ts +0 -1270
  206. package/examples/node_modules/@types/node/fs.d.ts +0 -4375
  207. package/examples/node_modules/@types/node/globals.d.ts +0 -172
  208. package/examples/node_modules/@types/node/globals.typedarray.d.ts +0 -38
  209. package/examples/node_modules/@types/node/http.d.ts +0 -2049
  210. package/examples/node_modules/@types/node/http2.d.ts +0 -2631
  211. package/examples/node_modules/@types/node/https.d.ts +0 -578
  212. package/examples/node_modules/@types/node/index.d.ts +0 -93
  213. package/examples/node_modules/@types/node/inspector.generated.d.ts +0 -3966
  214. package/examples/node_modules/@types/node/module.d.ts +0 -539
  215. package/examples/node_modules/@types/node/net.d.ts +0 -1012
  216. package/examples/node_modules/@types/node/os.d.ts +0 -506
  217. package/examples/node_modules/@types/node/package.json +0 -140
  218. package/examples/node_modules/@types/node/path.d.ts +0 -200
  219. package/examples/node_modules/@types/node/perf_hooks.d.ts +0 -961
  220. package/examples/node_modules/@types/node/process.d.ts +0 -1966
  221. package/examples/node_modules/@types/node/punycode.d.ts +0 -117
  222. package/examples/node_modules/@types/node/querystring.d.ts +0 -152
  223. package/examples/node_modules/@types/node/readline/promises.d.ts +0 -162
  224. package/examples/node_modules/@types/node/readline.d.ts +0 -589
  225. package/examples/node_modules/@types/node/repl.d.ts +0 -430
  226. package/examples/node_modules/@types/node/sea.d.ts +0 -153
  227. package/examples/node_modules/@types/node/stream/consumers.d.ts +0 -38
  228. package/examples/node_modules/@types/node/stream/promises.d.ts +0 -90
  229. package/examples/node_modules/@types/node/stream/web.d.ts +0 -533
  230. package/examples/node_modules/@types/node/stream.d.ts +0 -1675
  231. package/examples/node_modules/@types/node/string_decoder.d.ts +0 -67
  232. package/examples/node_modules/@types/node/test.d.ts +0 -1787
  233. package/examples/node_modules/@types/node/timers/promises.d.ts +0 -108
  234. package/examples/node_modules/@types/node/timers.d.ts +0 -286
  235. package/examples/node_modules/@types/node/tls.d.ts +0 -1259
  236. package/examples/node_modules/@types/node/trace_events.d.ts +0 -197
  237. package/examples/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -468
  238. package/examples/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -34
  239. package/examples/node_modules/@types/node/ts5.6/index.d.ts +0 -93
  240. package/examples/node_modules/@types/node/tty.d.ts +0 -208
  241. package/examples/node_modules/@types/node/url.d.ts +0 -964
  242. package/examples/node_modules/@types/node/util.d.ts +0 -2331
  243. package/examples/node_modules/@types/node/v8.d.ts +0 -809
  244. package/examples/node_modules/@types/node/vm.d.ts +0 -1001
  245. package/examples/node_modules/@types/node/wasi.d.ts +0 -181
  246. package/examples/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
  247. package/examples/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
  248. package/examples/node_modules/@types/node/web-globals/events.d.ts +0 -97
  249. package/examples/node_modules/@types/node/web-globals/fetch.d.ts +0 -46
  250. package/examples/node_modules/@types/node/worker_threads.d.ts +0 -715
  251. package/examples/node_modules/@types/node/zlib.d.ts +0 -540
  252. package/examples/node_modules/dotenv/config.d.ts +0 -1
  253. package/examples/node_modules/dotenv/config.js +0 -9
  254. package/examples/node_modules/dotenv/lib/cli-options.js +0 -17
  255. package/examples/node_modules/dotenv/lib/env-options.js +0 -28
  256. package/examples/node_modules/dotenv/lib/main.d.ts +0 -162
  257. package/examples/node_modules/dotenv/lib/main.js +0 -386
  258. package/examples/node_modules/dotenv/package.json +0 -62
  259. package/examples/node_modules/esbuild/install.js +0 -289
  260. package/examples/node_modules/esbuild/lib/main.d.ts +0 -716
  261. package/examples/node_modules/esbuild/lib/main.js +0 -2242
  262. package/examples/node_modules/esbuild/package.json +0 -49
  263. package/examples/node_modules/fsevents/fsevents.d.ts +0 -46
  264. package/examples/node_modules/fsevents/fsevents.js +0 -83
  265. package/examples/node_modules/fsevents/package.json +0 -62
  266. package/examples/node_modules/get-tsconfig/dist/index.mjs +0 -7
  267. package/examples/node_modules/get-tsconfig/package.json +0 -46
  268. package/examples/node_modules/resolve-pkg-maps/dist/index.mjs +0 -1
  269. package/examples/node_modules/resolve-pkg-maps/package.json +0 -42
  270. package/examples/node_modules/tsx/dist/cjs/api/index.mjs +0 -1
  271. package/examples/node_modules/tsx/dist/cjs/index.mjs +0 -1
  272. package/examples/node_modules/tsx/dist/cli.mjs +0 -55
  273. package/examples/node_modules/tsx/dist/client-BQVF1NaW.mjs +0 -1
  274. package/examples/node_modules/tsx/dist/esm/api/index.mjs +0 -1
  275. package/examples/node_modules/tsx/dist/esm/index.mjs +0 -2
  276. package/examples/node_modules/tsx/dist/get-pipe-path-BHW2eJdv.mjs +0 -1
  277. package/examples/node_modules/tsx/dist/index-7AaEi15b.mjs +0 -14
  278. package/examples/node_modules/tsx/dist/index-gbaejti9.mjs +0 -1
  279. package/examples/node_modules/tsx/dist/lexer-DQCqS3nf.mjs +0 -3
  280. package/examples/node_modules/tsx/dist/loader.mjs +0 -1
  281. package/examples/node_modules/tsx/dist/node-features-_8ZFwP_x.mjs +0 -1
  282. package/examples/node_modules/tsx/dist/package-CeBgXWuR.mjs +0 -1
  283. package/examples/node_modules/tsx/dist/patch-repl.mjs +0 -1
  284. package/examples/node_modules/tsx/dist/preflight.mjs +0 -1
  285. package/examples/node_modules/tsx/dist/register-B7jrtLTO.mjs +0 -1
  286. package/examples/node_modules/tsx/dist/register-CFH5oNdT.mjs +0 -4
  287. package/examples/node_modules/tsx/dist/repl.mjs +0 -3
  288. package/examples/node_modules/tsx/dist/require-DQxpCAr4.mjs +0 -1
  289. package/examples/node_modules/tsx/dist/suppress-warnings.mjs +0 -1
  290. package/examples/node_modules/tsx/dist/temporary-directory-CwHp0_NW.mjs +0 -1
  291. package/examples/node_modules/tsx/dist/types-Cxp8y2TL.d.ts +0 -5
  292. package/examples/node_modules/tsx/package.json +0 -68
  293. package/examples/node_modules/undici-types/agent.d.ts +0 -31
  294. package/examples/node_modules/undici-types/api.d.ts +0 -43
  295. package/examples/node_modules/undici-types/balanced-pool.d.ts +0 -29
  296. package/examples/node_modules/undici-types/cache.d.ts +0 -36
  297. package/examples/node_modules/undici-types/client.d.ts +0 -108
  298. package/examples/node_modules/undici-types/connector.d.ts +0 -34
  299. package/examples/node_modules/undici-types/content-type.d.ts +0 -21
  300. package/examples/node_modules/undici-types/cookies.d.ts +0 -28
  301. package/examples/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  302. package/examples/node_modules/undici-types/dispatcher.d.ts +0 -256
  303. package/examples/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  304. package/examples/node_modules/undici-types/errors.d.ts +0 -149
  305. package/examples/node_modules/undici-types/eventsource.d.ts +0 -61
  306. package/examples/node_modules/undici-types/fetch.d.ts +0 -209
  307. package/examples/node_modules/undici-types/file.d.ts +0 -39
  308. package/examples/node_modules/undici-types/filereader.d.ts +0 -54
  309. package/examples/node_modules/undici-types/formdata.d.ts +0 -108
  310. package/examples/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  311. package/examples/node_modules/undici-types/global-origin.d.ts +0 -7
  312. package/examples/node_modules/undici-types/handlers.d.ts +0 -15
  313. package/examples/node_modules/undici-types/header.d.ts +0 -4
  314. package/examples/node_modules/undici-types/index.d.ts +0 -71
  315. package/examples/node_modules/undici-types/interceptors.d.ts +0 -17
  316. package/examples/node_modules/undici-types/mock-agent.d.ts +0 -50
  317. package/examples/node_modules/undici-types/mock-client.d.ts +0 -25
  318. package/examples/node_modules/undici-types/mock-errors.d.ts +0 -12
  319. package/examples/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  320. package/examples/node_modules/undici-types/mock-pool.d.ts +0 -25
  321. package/examples/node_modules/undici-types/package.json +0 -55
  322. package/examples/node_modules/undici-types/patch.d.ts +0 -33
  323. package/examples/node_modules/undici-types/pool-stats.d.ts +0 -19
  324. package/examples/node_modules/undici-types/pool.d.ts +0 -39
  325. package/examples/node_modules/undici-types/proxy-agent.d.ts +0 -28
  326. package/examples/node_modules/undici-types/readable.d.ts +0 -65
  327. package/examples/node_modules/undici-types/retry-agent.d.ts +0 -8
  328. package/examples/node_modules/undici-types/retry-handler.d.ts +0 -116
  329. package/examples/node_modules/undici-types/util.d.ts +0 -18
  330. package/examples/node_modules/undici-types/webidl.d.ts +0 -228
  331. package/examples/node_modules/undici-types/websocket.d.ts +0 -150
  332. package/src/models/description-is-latest-system-prompt.ts +0 -135
  333. package/src/models/schemadefaul18.ts +0 -20
  334. package/src/models/schemadefaul19.ts +0 -16
package/openapi.json CHANGED
@@ -4435,10 +4435,6 @@
4435
4435
  "type": "string"
4436
4436
  }
4437
4437
  },
4438
- "Schemadefaul4": {
4439
- "type": "boolean",
4440
- "default": false
4441
- },
4442
4438
  "TargetPromptIdTargetPromptGroupIdNewName": {
4443
4439
  "type": "object",
4444
4440
  "properties": {
@@ -4689,17 +4685,17 @@
4689
4685
  }
4690
4686
  }
4691
4687
  },
4692
- "Schemadefaul5": {
4688
+ "Schemadefaul4": {
4693
4689
  "default": "gpt-5",
4694
4690
  "type": "string"
4695
4691
  },
4696
- "Schemadefaul6": {
4692
+ "Schemadefaul5": {
4697
4693
  "minimum": 0,
4698
4694
  "maximum": 2,
4699
4695
  "default": 0.7,
4700
4696
  "type": "number"
4701
4697
  },
4702
- "Schemadefaul7": {
4698
+ "Schemadefaul6": {
4703
4699
  "minimum": 1,
4704
4700
  "maximum": 128000,
4705
4701
  "default": 4096,
@@ -4764,16 +4760,13 @@
4764
4760
  "type": "string"
4765
4761
  },
4766
4762
  "inputSchema": {
4767
- "description": "JSON Schema defining expected input variables (e.g., {\"name\": {\"type\": \"string\"}})",
4768
- "type": "object"
4763
+ "description": "JSON Schema defining expected input variables (e.g., {\"name\": {\"type\": \"string\"}})"
4769
4764
  },
4770
4765
  "outputSchema": {
4771
- "description": "JSON Schema defining expected LLM output structure",
4772
- "type": "object"
4766
+ "description": "JSON Schema defining expected LLM output structure"
4773
4767
  },
4774
4768
  "metadata": {
4775
- "description": "Arbitrary metadata for categorization or tracking (e.g., {\"department\": \"sales\"})",
4776
- "type": "object"
4769
+ "description": "Arbitrary metadata for categorization or tracking (e.g., {\"department\": \"sales\"})"
4777
4770
  },
4778
4771
  "createdBy": {
4779
4772
  "allOf": [
@@ -4801,9 +4794,17 @@
4801
4794
  "pattern": "^\\d+\\.\\d+\\.\\d+$",
4802
4795
  "type": "string"
4803
4796
  },
4804
- "DescriptionIsLatestSystemPrompt": {
4797
+ "NameDescriptionIsLatest": {
4805
4798
  "type": "object",
4806
4799
  "properties": {
4800
+ "name": {
4801
+ "allOf": [
4802
+ {
4803
+ "$ref": "#/components/schemas/SchemamaxLen"
4804
+ }
4805
+ ],
4806
+ "description": "Updated prompt name"
4807
+ },
4807
4808
  "description": {
4808
4809
  "allOf": [
4809
4810
  {
@@ -4829,12 +4830,10 @@
4829
4830
  "type": "string"
4830
4831
  },
4831
4832
  "outputSchema": {
4832
- "description": "Updated output schema",
4833
- "type": "object"
4833
+ "description": "Updated output schema"
4834
4834
  },
4835
4835
  "metadata": {
4836
- "description": "Updated metadata",
4837
- "type": "object"
4836
+ "description": "Updated metadata"
4838
4837
  },
4839
4838
  "tags": {
4840
4839
  "allOf": [
@@ -4860,7 +4859,7 @@
4860
4859
  "changes": {
4861
4860
  "allOf": [
4862
4861
  {
4863
- "$ref": "#/components/schemas/DescriptionIsLatestSystemPrompt"
4862
+ "$ref": "#/components/schemas/NameDescriptionIsLatest"
4864
4863
  }
4865
4864
  ],
4866
4865
  "description": "Fields to update on an existing prompt (all fields optional)"
@@ -5000,7 +4999,7 @@
5000
4999
  "maxIterations"
5001
5000
  ]
5002
5001
  },
5003
- "Schemadefaul8": {
5002
+ "Schemadefaul7": {
5004
5003
  "minimum": 1,
5005
5004
  "maximum": 100,
5006
5005
  "default": 10,
@@ -5016,7 +5015,7 @@
5016
5015
  "maximum": 50,
5017
5016
  "type": "number"
5018
5017
  },
5019
- "Schemadefaul9": {
5018
+ "Schemadefaul8": {
5020
5019
  "default": "worker_loop",
5021
5020
  "type": "string",
5022
5021
  "enum": [
@@ -5411,7 +5410,7 @@
5411
5410
  "type"
5412
5411
  ]
5413
5412
  },
5414
- "Schemadefaul10": {
5413
+ "Schemadefaul9": {
5415
5414
  "default": "text",
5416
5415
  "type": "string",
5417
5416
  "enum": [
@@ -5477,7 +5476,7 @@
5477
5476
  "type"
5478
5477
  ]
5479
5478
  },
5480
- "Schemadefaul11": {
5479
+ "Schemadefaul10": {
5481
5480
  "default": "webpage",
5482
5481
  "type": "string",
5483
5482
  "enum": [
@@ -5832,7 +5831,7 @@
5832
5831
  "connectionType"
5833
5832
  ]
5834
5833
  },
5835
- "Schemadefaul12": {
5834
+ "Schemadefaul11": {
5836
5835
  "default": "stdio",
5837
5836
  "type": "string",
5838
5837
  "enum": [
@@ -6149,7 +6148,7 @@
6149
6148
  "role"
6150
6149
  ]
6151
6150
  },
6152
- "Schemadefaul13": {
6151
+ "Schemadefaul12": {
6153
6152
  "default": "owner",
6154
6153
  "type": "string",
6155
6154
  "enum": [
@@ -6159,7 +6158,7 @@
6159
6158
  "viewer"
6160
6159
  ]
6161
6160
  },
6162
- "Schemadefaul14": {
6161
+ "Schemadefaul13": {
6163
6162
  "default": "active",
6164
6163
  "type": "string",
6165
6164
  "enum": [
@@ -6241,7 +6240,7 @@
6241
6240
  "role"
6242
6241
  ]
6243
6242
  },
6244
- "Schemadefaul15": {
6243
+ "Schemadefaul14": {
6245
6244
  "default": "admin",
6246
6245
  "type": "string",
6247
6246
  "enum": [
@@ -6263,13 +6262,14 @@
6263
6262
  },
6264
6263
  "provider": {
6265
6264
  "default": "openai",
6266
- "description": "Provider type (openai, anthropic, google, azure, groq, custom)",
6265
+ "description": "Provider type (openai, anthropic, google, azure, bedrock, groq, glm, moonshot, custom)",
6267
6266
  "type": "string",
6268
6267
  "enum": [
6269
6268
  "openai",
6270
6269
  "anthropic",
6271
6270
  "google",
6272
6271
  "azure",
6272
+ "bedrock",
6273
6273
  "groq",
6274
6274
  "glm",
6275
6275
  "moonshot",
@@ -6312,12 +6312,9 @@
6312
6312
  "type": "object"
6313
6313
  },
6314
6314
  "isDefault": {
6315
- "allOf": [
6316
- {
6317
- "$ref": "#/components/schemas/Schemadefaul4"
6318
- }
6319
- ],
6320
- "description": "Set as default provider for this scope"
6315
+ "description": "Set as default provider for this scope",
6316
+ "default": false,
6317
+ "type": "boolean"
6321
6318
  },
6322
6319
  "metadata": {
6323
6320
  "description": "Additional metadata",
@@ -6331,7 +6328,7 @@
6331
6328
  "scope"
6332
6329
  ]
6333
6330
  },
6334
- "Schemadefaul16": {
6331
+ "Schemadefaul15": {
6335
6332
  "default": "openai",
6336
6333
  "type": "string",
6337
6334
  "enum": [
@@ -6339,6 +6336,7 @@
6339
6336
  "anthropic",
6340
6337
  "google",
6341
6338
  "azure",
6339
+ "bedrock",
6342
6340
  "groq",
6343
6341
  "glm",
6344
6342
  "moonshot",
@@ -6366,6 +6364,10 @@
6366
6364
  "format": "uri",
6367
6365
  "type": "string"
6368
6366
  },
6367
+ "Schemadefaul16": {
6368
+ "default": false,
6369
+ "type": "boolean"
6370
+ },
6369
6371
  "Schemaformat7": {
6370
6372
  "format": "uuid",
6371
6373
  "type": "string"
@@ -8799,7 +8801,7 @@
8799
8801
  "in": "query",
8800
8802
  "required": false,
8801
8803
  "schema": {
8802
- "$ref": "#/components/schemas/Schemadefaul4"
8804
+ "type": "boolean"
8803
8805
  }
8804
8806
  }
8805
8807
  ]
@@ -9996,8 +9998,8 @@
9996
9998
  "in": "query",
9997
9999
  "required": false,
9998
10000
  "schema": {
9999
- "type": "boolean",
10000
- "description": "Filter by latest version flag (true/false)"
10001
+ "description": "Filter by latest version flag (true/false)",
10002
+ "type": "boolean"
10001
10003
  }
10002
10004
  },
10003
10005
  {
@@ -10197,7 +10199,7 @@
10197
10199
  "schema": {
10198
10200
  "allOf": [
10199
10201
  {
10200
- "$ref": "#/components/schemas/DescriptionIsLatestSystemPrompt"
10202
+ "$ref": "#/components/schemas/NameDescriptionIsLatest"
10201
10203
  }
10202
10204
  ],
10203
10205
  "description": "Fields to update on an existing prompt (all fields optional)"
@@ -10207,7 +10209,7 @@
10207
10209
  "schema": {
10208
10210
  "allOf": [
10209
10211
  {
10210
- "$ref": "#/components/schemas/DescriptionIsLatestSystemPrompt"
10212
+ "$ref": "#/components/schemas/NameDescriptionIsLatest"
10211
10213
  }
10212
10214
  ],
10213
10215
  "description": "Fields to update on an existing prompt (all fields optional)"
@@ -10217,7 +10219,7 @@
10217
10219
  "schema": {
10218
10220
  "allOf": [
10219
10221
  {
10220
- "$ref": "#/components/schemas/DescriptionIsLatestSystemPrompt"
10222
+ "$ref": "#/components/schemas/NameDescriptionIsLatest"
10221
10223
  }
10222
10224
  ],
10223
10225
  "description": "Fields to update on an existing prompt (all fields optional)"
@@ -10692,7 +10694,7 @@
10692
10694
  "type": "string"
10693
10695
  },
10694
10696
  "executionMode": {
10695
- "$ref": "#/components/schemas/Schemadefaul9"
10697
+ "$ref": "#/components/schemas/Schemadefaul8"
10696
10698
  },
10697
10699
  "config": {
10698
10700
  "type": "object"
@@ -11502,7 +11504,7 @@
11502
11504
  "in": "query",
11503
11505
  "required": false,
11504
11506
  "schema": {
11505
- "$ref": "#/components/schemas/Schemadefaul4"
11507
+ "type": "boolean"
11506
11508
  }
11507
11509
  }
11508
11510
  ]
@@ -13644,12 +13646,8 @@
13644
13646
  "in": "query",
13645
13647
  "required": false,
13646
13648
  "schema": {
13647
- "allOf": [
13648
- {
13649
- "$ref": "#/components/schemas/Schemadefaul4"
13650
- }
13651
- ],
13652
- "description": "Include inactive workspaces (default: false)"
13649
+ "description": "Include inactive workspaces (default: false)",
13650
+ "type": "boolean"
13653
13651
  }
13654
13652
  }
13655
13653
  ]
@@ -14338,7 +14336,7 @@
14338
14336
  "role": {
14339
14337
  "allOf": [
14340
14338
  {
14341
- "$ref": "#/components/schemas/Schemadefaul13"
14339
+ "$ref": "#/components/schemas/Schemadefaul12"
14342
14340
  }
14343
14341
  ],
14344
14342
  "description": "The new role for the member"
@@ -14356,7 +14354,7 @@
14356
14354
  "role": {
14357
14355
  "allOf": [
14358
14356
  {
14359
- "$ref": "#/components/schemas/Schemadefaul13"
14357
+ "$ref": "#/components/schemas/Schemadefaul12"
14360
14358
  }
14361
14359
  ],
14362
14360
  "description": "The new role for the member"
@@ -14374,7 +14372,7 @@
14374
14372
  "role": {
14375
14373
  "allOf": [
14376
14374
  {
14377
- "$ref": "#/components/schemas/Schemadefaul13"
14375
+ "$ref": "#/components/schemas/Schemadefaul12"
14378
14376
  }
14379
14377
  ],
14380
14378
  "description": "The new role for the member"
@@ -14750,7 +14748,7 @@
14750
14748
  "role": {
14751
14749
  "allOf": [
14752
14750
  {
14753
- "$ref": "#/components/schemas/Schemadefaul15"
14751
+ "$ref": "#/components/schemas/Schemadefaul14"
14754
14752
  }
14755
14753
  ],
14756
14754
  "description": "The new role for the member"
@@ -14768,7 +14766,7 @@
14768
14766
  "role": {
14769
14767
  "allOf": [
14770
14768
  {
14771
- "$ref": "#/components/schemas/Schemadefaul15"
14769
+ "$ref": "#/components/schemas/Schemadefaul14"
14772
14770
  }
14773
14771
  ],
14774
14772
  "description": "The new role for the member"
@@ -14786,7 +14784,7 @@
14786
14784
  "role": {
14787
14785
  "allOf": [
14788
14786
  {
14789
- "$ref": "#/components/schemas/Schemadefaul15"
14787
+ "$ref": "#/components/schemas/Schemadefaul14"
14790
14788
  }
14791
14789
  ],
14792
14790
  "description": "The new role for the member"
@@ -14959,12 +14957,8 @@
14959
14957
  "in": "query",
14960
14958
  "required": false,
14961
14959
  "schema": {
14962
- "allOf": [
14963
- {
14964
- "$ref": "#/components/schemas/Schemadefaul4"
14965
- }
14966
- ],
14967
- "description": "Include inactive configs (default: false)"
14960
+ "description": "Include inactive configs (default: false)",
14961
+ "type": "boolean"
14968
14962
  }
14969
14963
  }
14970
14964
  ]
@@ -16045,12 +16039,8 @@
16045
16039
  "in": "query",
16046
16040
  "required": false,
16047
16041
  "schema": {
16048
- "allOf": [
16049
- {
16050
- "$ref": "#/components/schemas/Schemadefaul18"
16051
- }
16052
- ],
16053
- "description": "Source integration that produced this trace"
16042
+ "description": "Filter by source (sdk, langchain, langgraph, vercel-ai, openai, otel, manual)",
16043
+ "type": "string"
16054
16044
  }
16055
16045
  },
16056
16046
  {
@@ -16058,12 +16048,8 @@
16058
16048
  "in": "query",
16059
16049
  "required": false,
16060
16050
  "schema": {
16061
- "allOf": [
16062
- {
16063
- "$ref": "#/components/schemas/Schemadefaul19"
16064
- }
16065
- ],
16066
- "description": "Environment where the trace was captured"
16051
+ "description": "Filter by environment (production, staging, development)",
16052
+ "type": "string"
16067
16053
  }
16068
16054
  },
16069
16055
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mutagent/sdk",
3
- "version": "0.2.28",
3
+ "version": "0.2.33",
4
4
  "author": "Speakeasy",
5
5
  "tshy": {
6
6
  "sourceDialects": [
@@ -22,8 +22,7 @@
22
22
  "sideEffects": false,
23
23
  "repository": {
24
24
  "type": "git",
25
- "url": "https://github.com/architech-printworks/mutagent-monorepo.git",
26
- "directory": "mutagent-sdk"
25
+ "url": "https://github.com/architech-printworks/mutagent-monorepo.git"
27
26
  },
28
27
  "scripts": {
29
28
  "lint": "eslint --cache --max-warnings=0 src",
@@ -106,43 +106,159 @@ function removeWebsocketPaths(spec: OpenAPISpec): string[] {
106
106
  // MISSING RESPONSE HANDLING
107
107
  // =============================================================================
108
108
 
109
- function addMissingResponses(spec: OpenAPISpec): number {
109
+ function addMissingResponses(spec: OpenAPISpec): { noResponseCount: number; noSuccessCount: number } {
110
110
  /**
111
111
  * Add default responses to operations missing them.
112
112
  *
113
- * Problem: Some Elysia routes don't have response schemas defined,
113
+ * Problem 1: Some Elysia routes don't have any response schemas defined,
114
114
  * which is required by OpenAPI spec.
115
115
  *
116
- * Solution: Add a generic 200 response with object schema.
116
+ * Problem 2: SSE/streaming endpoints may have error responses from
117
+ * detail.responses but no 2xx success response, which Speakeasy flags as
118
+ * `style-operation-success-response`.
119
+ *
120
+ * Solution: Add a generic 200 response where needed.
117
121
  */
118
- const defaultResponse = {
119
- "200": {
120
- "description": "Successful response",
121
- "content": {
122
- "application/json": {
123
- "schema": {
124
- "type": "object"
125
- }
122
+ const defaultSuccessResponse = {
123
+ "description": "Successful response",
124
+ "content": {
125
+ "application/json": {
126
+ "schema": {
127
+ "type": "object"
126
128
  }
127
129
  }
128
130
  }
129
131
  };
130
132
 
131
- let fixedCount = 0;
132
- if (!spec.paths) return fixedCount;
133
+ let noResponseCount = 0;
134
+ let noSuccessCount = 0;
135
+ if (!spec.paths) return { noResponseCount, noSuccessCount };
133
136
 
134
137
  for (const [path, methods] of Object.entries(spec.paths)) {
135
138
  for (const [method, operation] of Object.entries(methods)) {
136
139
  if (['get', 'post', 'put', 'patch', 'delete'].includes(method)) {
137
140
  if (!operation.responses || Object.keys(operation.responses).length === 0) {
138
- operation.responses = JSON.parse(JSON.stringify(defaultResponse));
139
- fixedCount++;
141
+ // No responses at all - add default 200
142
+ operation.responses = { "200": JSON.parse(JSON.stringify(defaultSuccessResponse)) };
143
+ noResponseCount++;
144
+ } else {
145
+ // Has responses but check if missing any 2xx/3xx
146
+ const codes = Object.keys(operation.responses);
147
+ const hasSuccess = codes.some(c => {
148
+ const num = Number(c);
149
+ return num >= 200 && num < 400;
150
+ });
151
+ if (!hasSuccess) {
152
+ // Has only error responses (e.g., SSE/streaming endpoints) - add 200
153
+ operation.responses["200"] = JSON.parse(JSON.stringify(defaultSuccessResponse));
154
+ noSuccessCount++;
155
+ }
140
156
  }
141
157
  }
142
158
  }
143
159
  }
144
160
 
145
- return fixedCount;
161
+ return { noResponseCount, noSuccessCount };
162
+ }
163
+
164
+ // =============================================================================
165
+ // INJECT STANDARD ERROR RESPONSES
166
+ // =============================================================================
167
+
168
+ function injectStandardErrorResponses(spec: OpenAPISpec): { getCount: number; mutationCount: number } {
169
+ /**
170
+ * Inject standard error responses (4xx/5xx) for operations missing them.
171
+ *
172
+ * Problem: Elysia's `detail.responses` (standardErrorResponses / standardMutationErrorResponses)
173
+ * are NOT merged into the generated OpenAPI spec when the route uses a shorthand
174
+ * `response: 'SomeModel'` instead of explicit per-status-code response mapping.
175
+ * This means routes that define `detail: { responses: standardErrorResponses }` in
176
+ * their route config still only produce a 200 response in the OpenAPI output.
177
+ * Speakeasy flags these as `generator-missing-error-response` hints.
178
+ *
179
+ * Solution: For each operation that only has 2xx responses, inject the standard
180
+ * error response schemas based on the HTTP method:
181
+ * - GET/HEAD: 400, 401, 403, 404, 500 (standardErrorResponses)
182
+ * - POST/PATCH/PUT/DELETE: 400, 401, 403, 404, 409, 500 (standardMutationErrorResponses)
183
+ *
184
+ * These match the exact schemas defined in mutagent/src/shared/error-responses.ts.
185
+ */
186
+
187
+ const errorSchema = {
188
+ type: 'object',
189
+ properties: {
190
+ error: { type: 'string' },
191
+ message: { type: 'string' },
192
+ },
193
+ required: ['error', 'message'],
194
+ };
195
+
196
+ const errorWithStatusSchema = {
197
+ type: 'object',
198
+ properties: {
199
+ error: { type: 'string' },
200
+ message: { type: 'string' },
201
+ statusCode: { type: 'number' },
202
+ },
203
+ required: ['error', 'message', 'statusCode'],
204
+ };
205
+
206
+ const makeErrorResponse = (description: string, schema: AnyValue) => ({
207
+ description,
208
+ content: { 'application/json': { schema: JSON.parse(JSON.stringify(schema)) } },
209
+ });
210
+
211
+ // Standard error responses for GET routes
212
+ const standardErrors: Record<string, AnyValue> = {
213
+ '400': makeErrorResponse('Bad Request', errorSchema),
214
+ '401': makeErrorResponse('Unauthorized', errorSchema),
215
+ '403': makeErrorResponse('Forbidden', errorSchema),
216
+ '404': makeErrorResponse('Not Found', errorSchema),
217
+ '500': makeErrorResponse('Internal Server Error', errorWithStatusSchema),
218
+ };
219
+
220
+ // Mutation error responses add 409 Conflict
221
+ const mutationErrors: Record<string, AnyValue> = {
222
+ ...standardErrors,
223
+ '409': makeErrorResponse('Conflict', errorWithStatusSchema),
224
+ };
225
+
226
+ let getCount = 0;
227
+ let mutationCount = 0;
228
+
229
+ if (!spec.paths) return { getCount, mutationCount };
230
+
231
+ for (const [_path, methods] of Object.entries(spec.paths)) {
232
+ for (const [method, operation] of Object.entries(methods)) {
233
+ if (!['get', 'post', 'put', 'patch', 'delete', 'head'].includes(method)) continue;
234
+ if (!operation.responses) continue;
235
+
236
+ const responseCodes = Object.keys(operation.responses);
237
+ const hasErrorResponse = responseCodes.some(code => Number(code) >= 400);
238
+
239
+ // Skip if already has error responses
240
+ if (hasErrorResponse) continue;
241
+
242
+ // Determine which error set to use based on HTTP method
243
+ const isMutation = ['post', 'put', 'patch', 'delete'].includes(method);
244
+ const errorsToInject = isMutation ? mutationErrors : standardErrors;
245
+
246
+ // Inject error responses
247
+ for (const [code, response] of Object.entries(errorsToInject)) {
248
+ if (!operation.responses[code]) {
249
+ operation.responses[code] = JSON.parse(JSON.stringify(response));
250
+ }
251
+ }
252
+
253
+ if (isMutation) {
254
+ mutationCount++;
255
+ } else {
256
+ getCount++;
257
+ }
258
+ }
259
+ }
260
+
261
+ return { getCount, mutationCount };
146
262
  }
147
263
 
148
264
  // =============================================================================
@@ -925,8 +1041,12 @@ async function main() {
925
1041
  console.log(` Removed ${wsPaths.length} WebSocket paths: ${JSON.stringify(wsPaths)}`);
926
1042
 
927
1043
  console.log("3. Adding missing responses...");
928
- const responseCount = addMissingResponses(spec);
929
- console.log(` Added responses to ${responseCount} operations`);
1044
+ const responseResult = addMissingResponses(spec);
1045
+ console.log(` Added default 200 to ${responseResult.noResponseCount} operations with no responses, ${responseResult.noSuccessCount} operations missing 2xx success`);
1046
+
1047
+ console.log("3b. Injecting standard error responses...");
1048
+ const errorResponseResult = injectStandardErrorResponses(spec);
1049
+ console.log(` Injected error responses: ${errorResponseResult.getCount} GET, ${errorResponseResult.mutationCount} mutation operations`);
930
1050
 
931
1051
  console.log("4. Removing patternProperties...");
932
1052
  spec = removePatternProperties(spec);
package/src/lib/config.ts CHANGED
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
65
65
  export const SDK_METADATA = {
66
66
  language: "typescript",
67
67
  openapiDocVersion: "2.0.0",
68
- sdkVersion: "0.2.28",
68
+ sdkVersion: "0.2.33",
69
69
  genVersion: "2.814.0",
70
- userAgent: "speakeasy-sdk/typescript 0.2.28 2.814.0 2.0.0 @mutagent/sdk",
70
+ userAgent: "speakeasy-sdk/typescript 0.2.33 2.814.0 2.0.0 @mutagent/sdk",
71
71
  } as const;
@@ -21,7 +21,6 @@ export * from "./conversation-list.js";
21
21
  export * from "./conversation.js";
22
22
  export * from "./current-password-new-password.js";
23
23
  export * from "./dataset-id-config-execution-mode.js";
24
- export * from "./description-is-latest-system-prompt.js";
25
24
  export * from "./email-role-expires-in-days.js";
26
25
  export * from "./evaluation-list.js";
27
26
  export * from "./evaluation-result.js";
@@ -39,6 +38,7 @@ export * from "./input-llm-config.js";
39
38
  export * from "./mcp-server.js";
40
39
  export * from "./model-temperature-max-tokens.js";
41
40
  export * from "./name-api-key-base-url.js";
41
+ export * from "./name-description-is-latest.js";
42
42
  export * from "./name-description-metadata.js";
43
43
  export * from "./name-description-metadata2.js";
44
44
  export * from "./name-description-system-prompt.js";
@@ -72,11 +72,9 @@ export * from "./prompt.js";
72
72
  export * from "./provider-config.js";
73
73
  export * from "./provider-configs-list.js";
74
74
  export * from "./provider-success.js";
75
- export * from "./schemadefaul13.js";
76
- export * from "./schemadefaul15.js";
77
- export * from "./schemadefaul18.js";
78
- export * from "./schemadefaul19.js";
79
- export * from "./schemadefaul9.js";
75
+ export * from "./schemadefaul12.js";
76
+ export * from "./schemadefaul14.js";
77
+ export * from "./schemadefaul8.js";
80
78
  export * from "./schemaitems4.js";
81
79
  export * from "./schemanullab3.js";
82
80
  export * from "./security.js";