@cadenya/cadenya 0.134.0 → 1.0.0

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 (958) hide show
  1. package/README.md +86 -358
  2. package/api.md +781 -0
  3. package/dist/client.d.ts +69 -0
  4. package/dist/client.d.ts.map +1 -0
  5. package/dist/client.js +97 -0
  6. package/dist/client.js.map +1 -0
  7. package/dist/core/error.d.ts +39 -0
  8. package/dist/core/error.d.ts.map +1 -0
  9. package/dist/core/error.js +56 -0
  10. package/dist/core/error.js.map +1 -0
  11. package/dist/core/http.d.ts +140 -0
  12. package/dist/core/http.d.ts.map +1 -0
  13. package/dist/core/http.js +525 -0
  14. package/dist/core/http.js.map +1 -0
  15. package/dist/core/pagination.d.ts +12 -0
  16. package/dist/core/pagination.d.ts.map +1 -0
  17. package/dist/core/pagination.js +29 -0
  18. package/dist/core/pagination.js.map +1 -0
  19. package/dist/core/sse.d.ts +44 -0
  20. package/dist/core/sse.d.ts.map +1 -0
  21. package/dist/core/sse.js +350 -0
  22. package/dist/core/sse.js.map +1 -0
  23. package/dist/core/webhooks.d.ts +25 -0
  24. package/dist/core/webhooks.d.ts.map +1 -0
  25. package/dist/core/webhooks.js +124 -0
  26. package/dist/core/webhooks.js.map +1 -0
  27. package/dist/index.d.ts +35 -0
  28. package/dist/index.d.ts.map +1 -0
  29. package/dist/index.js +32 -0
  30. package/dist/index.js.map +1 -0
  31. package/dist/resources/accounts.d.ts +34 -0
  32. package/dist/resources/accounts.d.ts.map +1 -0
  33. package/dist/resources/accounts.js +47 -0
  34. package/dist/resources/accounts.js.map +1 -0
  35. package/dist/resources/agent-schedules.d.ts +186 -0
  36. package/dist/resources/agent-schedules.d.ts.map +1 -0
  37. package/dist/resources/agent-schedules.js +141 -0
  38. package/dist/resources/agent-schedules.js.map +1 -0
  39. package/dist/resources/agent-variations.d.ts +230 -0
  40. package/dist/resources/agent-variations.d.ts.map +1 -0
  41. package/dist/resources/agent-variations.js +174 -0
  42. package/dist/resources/agent-variations.js.map +1 -0
  43. package/dist/resources/agents.d.ts +318 -0
  44. package/dist/resources/agents.d.ts.map +1 -0
  45. package/dist/resources/agents.js +202 -0
  46. package/dist/resources/agents.js.map +1 -0
  47. package/dist/resources/ai-provider-keys.d.ts +141 -0
  48. package/dist/resources/ai-provider-keys.d.ts.map +1 -0
  49. package/dist/resources/ai-provider-keys.js +93 -0
  50. package/dist/resources/ai-provider-keys.js.map +1 -0
  51. package/dist/resources/api-keys.d.ts +222 -0
  52. package/dist/resources/api-keys.d.ts.map +1 -0
  53. package/dist/resources/api-keys.js +194 -0
  54. package/dist/resources/api-keys.js.map +1 -0
  55. package/dist/resources/memory-entries.d.ts +122 -0
  56. package/dist/resources/memory-entries.d.ts.map +1 -0
  57. package/dist/resources/memory-entries.js +93 -0
  58. package/dist/resources/memory-entries.js.map +1 -0
  59. package/dist/resources/memory-layers.d.ts +137 -0
  60. package/dist/resources/memory-layers.d.ts.map +1 -0
  61. package/dist/resources/memory-layers.js +97 -0
  62. package/dist/resources/memory-layers.js.map +1 -0
  63. package/dist/resources/models.d.ts +148 -0
  64. package/dist/resources/models.d.ts.map +1 -0
  65. package/dist/resources/models.js +93 -0
  66. package/dist/resources/models.js.map +1 -0
  67. package/dist/resources/objectives.d.ts +602 -0
  68. package/dist/resources/objectives.d.ts.map +1 -0
  69. package/dist/resources/objectives.js +356 -0
  70. package/dist/resources/objectives.js.map +1 -0
  71. package/dist/resources/profiles.d.ts +16 -0
  72. package/dist/resources/profiles.d.ts.map +1 -0
  73. package/dist/resources/profiles.js +21 -0
  74. package/dist/resources/profiles.js.map +1 -0
  75. package/dist/resources/tenants.d.ts +135 -0
  76. package/dist/resources/tenants.d.ts.map +1 -0
  77. package/dist/resources/tenants.js +80 -0
  78. package/dist/resources/tenants.js.map +1 -0
  79. package/dist/resources/tool-search.d.ts +27 -0
  80. package/dist/resources/tool-search.d.ts.map +1 -0
  81. package/dist/resources/tool-search.js +25 -0
  82. package/dist/resources/tool-search.js.map +1 -0
  83. package/dist/resources/tool-set-secrets.d.ts +128 -0
  84. package/dist/resources/tool-set-secrets.d.ts.map +1 -0
  85. package/dist/resources/tool-set-secrets.js +93 -0
  86. package/dist/resources/tool-set-secrets.js.map +1 -0
  87. package/dist/resources/tool-sets.d.ts +271 -0
  88. package/dist/resources/tool-sets.d.ts.map +1 -0
  89. package/dist/resources/tool-sets.js +185 -0
  90. package/dist/resources/tool-sets.js.map +1 -0
  91. package/dist/resources/tools.d.ts +178 -0
  92. package/dist/resources/tools.d.ts.map +1 -0
  93. package/dist/resources/tools.js +125 -0
  94. package/dist/resources/tools.js.map +1 -0
  95. package/dist/resources/uploads.d.ts +43 -0
  96. package/dist/resources/uploads.d.ts.map +1 -0
  97. package/dist/resources/uploads.js +41 -0
  98. package/dist/resources/uploads.js.map +1 -0
  99. package/dist/resources/widget-sessions.d.ts +168 -0
  100. package/dist/resources/widget-sessions.d.ts.map +1 -0
  101. package/dist/resources/widget-sessions.js +110 -0
  102. package/dist/resources/widget-sessions.js.map +1 -0
  103. package/dist/resources/widgets.d.ts +166 -0
  104. package/dist/resources/widgets.d.ts.map +1 -0
  105. package/dist/resources/widgets.js +125 -0
  106. package/dist/resources/widgets.js.map +1 -0
  107. package/dist/resources/workspace-admin.d.ts +214 -0
  108. package/dist/resources/workspace-admin.d.ts.map +1 -0
  109. package/dist/resources/workspace-admin.js +154 -0
  110. package/dist/resources/workspace-admin.js.map +1 -0
  111. package/dist/resources/workspace-secrets.d.ts +134 -0
  112. package/dist/resources/workspace-secrets.d.ts.map +1 -0
  113. package/dist/resources/workspace-secrets.js +93 -0
  114. package/dist/resources/workspace-secrets.js.map +1 -0
  115. package/dist/resources/workspaces.d.ts +44 -0
  116. package/dist/resources/workspaces.d.ts.map +1 -0
  117. package/dist/resources/workspaces.js +26 -0
  118. package/dist/resources/workspaces.js.map +1 -0
  119. package/dist/types.d.ts +4634 -0
  120. package/dist/types.d.ts.map +1 -0
  121. package/dist/types.js +103 -0
  122. package/dist/types.js.map +1 -0
  123. package/dist/webhooks.d.ts +93 -0
  124. package/dist/webhooks.d.ts.map +1 -0
  125. package/dist/webhooks.js +21 -0
  126. package/dist/webhooks.js.map +1 -0
  127. package/package.json +24 -165
  128. package/src/client.ts +124 -1504
  129. package/src/core/error.ts +50 -111
  130. package/src/core/http.ts +639 -0
  131. package/src/core/pagination.ts +16 -152
  132. package/src/core/sse.ts +338 -0
  133. package/src/core/webhooks.ts +141 -0
  134. package/src/index.ts +35 -22
  135. package/src/resources/accounts.ts +50 -0
  136. package/src/resources/agent-schedules.ts +251 -0
  137. package/src/resources/agent-variations.ts +312 -0
  138. package/src/resources/agents.ts +410 -2
  139. package/src/resources/ai-provider-keys.ts +119 -311
  140. package/src/resources/api-keys.ts +218 -277
  141. package/src/resources/memory-entries.ts +163 -0
  142. package/src/resources/memory-layers.ts +180 -2
  143. package/src/resources/models.ts +130 -229
  144. package/src/resources/objectives.ts +763 -2
  145. package/src/resources/profiles.ts +16 -14
  146. package/src/resources/tenants.ts +167 -2
  147. package/src/resources/tool-search.ts +36 -0
  148. package/src/resources/tool-set-secrets.ts +169 -0
  149. package/src/resources/tool-sets.ts +354 -2
  150. package/src/resources/tools.ts +235 -0
  151. package/src/resources/uploads.ts +42 -129
  152. package/src/resources/widget-sessions.ts +148 -439
  153. package/src/resources/widgets.ts +154 -248
  154. package/src/resources/workspace-admin.ts +280 -2
  155. package/src/resources/workspace-secrets.ts +120 -160
  156. package/src/resources/workspaces.ts +32 -77
  157. package/src/types.ts +5188 -0
  158. package/src/webhooks.ts +107 -0
  159. package/CHANGELOG.md +0 -1532
  160. package/api-promise.d.mts +0 -3
  161. package/api-promise.d.mts.map +0 -1
  162. package/api-promise.d.ts +0 -3
  163. package/api-promise.d.ts.map +0 -1
  164. package/api-promise.js +0 -6
  165. package/api-promise.js.map +0 -1
  166. package/api-promise.mjs +0 -3
  167. package/api-promise.mjs.map +0 -1
  168. package/client.d.mts +0 -335
  169. package/client.d.mts.map +0 -1
  170. package/client.d.ts +0 -335
  171. package/client.d.ts.map +0 -1
  172. package/client.js +0 -631
  173. package/client.js.map +0 -1
  174. package/client.mjs +0 -627
  175. package/client.mjs.map +0 -1
  176. package/core/api-promise.d.mts +0 -46
  177. package/core/api-promise.d.mts.map +0 -1
  178. package/core/api-promise.d.ts +0 -46
  179. package/core/api-promise.d.ts.map +0 -1
  180. package/core/api-promise.js +0 -74
  181. package/core/api-promise.js.map +0 -1
  182. package/core/api-promise.mjs +0 -70
  183. package/core/api-promise.mjs.map +0 -1
  184. package/core/error.d.mts +0 -46
  185. package/core/error.d.mts.map +0 -1
  186. package/core/error.d.ts +0 -46
  187. package/core/error.d.ts.map +0 -1
  188. package/core/error.js +0 -113
  189. package/core/error.js.map +0 -1
  190. package/core/error.mjs +0 -97
  191. package/core/error.mjs.map +0 -1
  192. package/core/pagination.d.mts +0 -59
  193. package/core/pagination.d.mts.map +0 -1
  194. package/core/pagination.d.ts +0 -59
  195. package/core/pagination.d.ts.map +0 -1
  196. package/core/pagination.js +0 -101
  197. package/core/pagination.js.map +0 -1
  198. package/core/pagination.mjs +0 -95
  199. package/core/pagination.mjs.map +0 -1
  200. package/core/resource.d.mts +0 -6
  201. package/core/resource.d.mts.map +0 -1
  202. package/core/resource.d.ts +0 -6
  203. package/core/resource.d.ts.map +0 -1
  204. package/core/resource.js +0 -11
  205. package/core/resource.js.map +0 -1
  206. package/core/resource.mjs +0 -7
  207. package/core/resource.mjs.map +0 -1
  208. package/core/streaming.d.mts +0 -33
  209. package/core/streaming.d.mts.map +0 -1
  210. package/core/streaming.d.ts +0 -33
  211. package/core/streaming.d.ts.map +0 -1
  212. package/core/streaming.js +0 -268
  213. package/core/streaming.js.map +0 -1
  214. package/core/streaming.mjs +0 -263
  215. package/core/streaming.mjs.map +0 -1
  216. package/core/uploads.d.mts +0 -3
  217. package/core/uploads.d.mts.map +0 -1
  218. package/core/uploads.d.ts +0 -3
  219. package/core/uploads.d.ts.map +0 -1
  220. package/core/uploads.js +0 -6
  221. package/core/uploads.js.map +0 -1
  222. package/core/uploads.mjs +0 -2
  223. package/core/uploads.mjs.map +0 -1
  224. package/error.d.mts +0 -3
  225. package/error.d.mts.map +0 -1
  226. package/error.d.ts +0 -3
  227. package/error.d.ts.map +0 -1
  228. package/error.js +0 -6
  229. package/error.js.map +0 -1
  230. package/error.mjs +0 -3
  231. package/error.mjs.map +0 -1
  232. package/index.d.mts +0 -7
  233. package/index.d.mts.map +0 -1
  234. package/index.d.ts +0 -7
  235. package/index.d.ts.map +0 -1
  236. package/index.js +0 -32
  237. package/index.js.map +0 -1
  238. package/index.mjs +0 -8
  239. package/index.mjs.map +0 -1
  240. package/internal/builtin-types.d.mts +0 -73
  241. package/internal/builtin-types.d.mts.map +0 -1
  242. package/internal/builtin-types.d.ts +0 -73
  243. package/internal/builtin-types.d.ts.map +0 -1
  244. package/internal/builtin-types.js +0 -4
  245. package/internal/builtin-types.js.map +0 -1
  246. package/internal/builtin-types.mjs +0 -3
  247. package/internal/builtin-types.mjs.map +0 -1
  248. package/internal/decoders/line.d.mts +0 -17
  249. package/internal/decoders/line.d.mts.map +0 -1
  250. package/internal/decoders/line.d.ts +0 -17
  251. package/internal/decoders/line.d.ts.map +0 -1
  252. package/internal/decoders/line.js +0 -113
  253. package/internal/decoders/line.js.map +0 -1
  254. package/internal/decoders/line.mjs +0 -108
  255. package/internal/decoders/line.mjs.map +0 -1
  256. package/internal/detect-platform.d.mts +0 -15
  257. package/internal/detect-platform.d.mts.map +0 -1
  258. package/internal/detect-platform.d.ts +0 -15
  259. package/internal/detect-platform.d.ts.map +0 -1
  260. package/internal/detect-platform.js +0 -162
  261. package/internal/detect-platform.js.map +0 -1
  262. package/internal/detect-platform.mjs +0 -157
  263. package/internal/detect-platform.mjs.map +0 -1
  264. package/internal/errors.d.mts +0 -3
  265. package/internal/errors.d.mts.map +0 -1
  266. package/internal/errors.d.ts +0 -3
  267. package/internal/errors.d.ts.map +0 -1
  268. package/internal/errors.js +0 -41
  269. package/internal/errors.js.map +0 -1
  270. package/internal/errors.mjs +0 -36
  271. package/internal/errors.mjs.map +0 -1
  272. package/internal/headers.d.mts +0 -20
  273. package/internal/headers.d.mts.map +0 -1
  274. package/internal/headers.d.ts +0 -20
  275. package/internal/headers.d.ts.map +0 -1
  276. package/internal/headers.js +0 -79
  277. package/internal/headers.js.map +0 -1
  278. package/internal/headers.mjs +0 -74
  279. package/internal/headers.mjs.map +0 -1
  280. package/internal/parse.d.mts +0 -12
  281. package/internal/parse.d.mts.map +0 -1
  282. package/internal/parse.d.ts +0 -12
  283. package/internal/parse.d.ts.map +0 -1
  284. package/internal/parse.js +0 -50
  285. package/internal/parse.js.map +0 -1
  286. package/internal/parse.mjs +0 -47
  287. package/internal/parse.mjs.map +0 -1
  288. package/internal/qs/formats.d.mts +0 -7
  289. package/internal/qs/formats.d.mts.map +0 -1
  290. package/internal/qs/formats.d.ts +0 -7
  291. package/internal/qs/formats.d.ts.map +0 -1
  292. package/internal/qs/formats.js +0 -13
  293. package/internal/qs/formats.js.map +0 -1
  294. package/internal/qs/formats.mjs +0 -9
  295. package/internal/qs/formats.mjs.map +0 -1
  296. package/internal/qs/index.d.mts +0 -10
  297. package/internal/qs/index.d.mts.map +0 -1
  298. package/internal/qs/index.d.ts +0 -10
  299. package/internal/qs/index.d.ts.map +0 -1
  300. package/internal/qs/index.js +0 -14
  301. package/internal/qs/index.js.map +0 -1
  302. package/internal/qs/index.mjs +0 -10
  303. package/internal/qs/index.mjs.map +0 -1
  304. package/internal/qs/stringify.d.mts +0 -3
  305. package/internal/qs/stringify.d.mts.map +0 -1
  306. package/internal/qs/stringify.d.ts +0 -3
  307. package/internal/qs/stringify.d.ts.map +0 -1
  308. package/internal/qs/stringify.js +0 -277
  309. package/internal/qs/stringify.js.map +0 -1
  310. package/internal/qs/stringify.mjs +0 -274
  311. package/internal/qs/stringify.mjs.map +0 -1
  312. package/internal/qs/types.d.mts +0 -57
  313. package/internal/qs/types.d.mts.map +0 -1
  314. package/internal/qs/types.d.ts +0 -57
  315. package/internal/qs/types.d.ts.map +0 -1
  316. package/internal/qs/types.js +0 -3
  317. package/internal/qs/types.js.map +0 -1
  318. package/internal/qs/types.mjs +0 -2
  319. package/internal/qs/types.mjs.map +0 -1
  320. package/internal/qs/utils.d.mts +0 -15
  321. package/internal/qs/utils.d.mts.map +0 -1
  322. package/internal/qs/utils.d.ts +0 -15
  323. package/internal/qs/utils.d.ts.map +0 -1
  324. package/internal/qs/utils.js +0 -230
  325. package/internal/qs/utils.js.map +0 -1
  326. package/internal/qs/utils.mjs +0 -217
  327. package/internal/qs/utils.mjs.map +0 -1
  328. package/internal/request-options.d.mts +0 -77
  329. package/internal/request-options.d.mts.map +0 -1
  330. package/internal/request-options.d.ts +0 -77
  331. package/internal/request-options.d.ts.map +0 -1
  332. package/internal/request-options.js +0 -14
  333. package/internal/request-options.js.map +0 -1
  334. package/internal/request-options.mjs +0 -10
  335. package/internal/request-options.mjs.map +0 -1
  336. package/internal/shim-types.d.mts +0 -17
  337. package/internal/shim-types.d.mts.map +0 -1
  338. package/internal/shim-types.d.ts +0 -17
  339. package/internal/shim-types.d.ts.map +0 -1
  340. package/internal/shim-types.js +0 -4
  341. package/internal/shim-types.js.map +0 -1
  342. package/internal/shim-types.mjs +0 -3
  343. package/internal/shim-types.mjs.map +0 -1
  344. package/internal/shims.d.mts +0 -26
  345. package/internal/shims.d.mts.map +0 -1
  346. package/internal/shims.d.ts +0 -26
  347. package/internal/shims.d.ts.map +0 -1
  348. package/internal/shims.js +0 -92
  349. package/internal/shims.js.map +0 -1
  350. package/internal/shims.mjs +0 -85
  351. package/internal/shims.mjs.map +0 -1
  352. package/internal/to-file.d.mts +0 -45
  353. package/internal/to-file.d.mts.map +0 -1
  354. package/internal/to-file.d.ts +0 -45
  355. package/internal/to-file.d.ts.map +0 -1
  356. package/internal/to-file.js +0 -91
  357. package/internal/to-file.js.map +0 -1
  358. package/internal/to-file.mjs +0 -88
  359. package/internal/to-file.mjs.map +0 -1
  360. package/internal/tslib.js +0 -81
  361. package/internal/tslib.mjs +0 -17
  362. package/internal/types.d.mts +0 -69
  363. package/internal/types.d.mts.map +0 -1
  364. package/internal/types.d.ts +0 -69
  365. package/internal/types.d.ts.map +0 -1
  366. package/internal/types.js +0 -4
  367. package/internal/types.js.map +0 -1
  368. package/internal/types.mjs +0 -3
  369. package/internal/types.mjs.map +0 -1
  370. package/internal/uploads.d.mts +0 -42
  371. package/internal/uploads.d.mts.map +0 -1
  372. package/internal/uploads.d.ts +0 -42
  373. package/internal/uploads.d.ts.map +0 -1
  374. package/internal/uploads.js +0 -141
  375. package/internal/uploads.js.map +0 -1
  376. package/internal/uploads.mjs +0 -131
  377. package/internal/uploads.mjs.map +0 -1
  378. package/internal/utils/base64.d.mts +0 -3
  379. package/internal/utils/base64.d.mts.map +0 -1
  380. package/internal/utils/base64.d.ts +0 -3
  381. package/internal/utils/base64.d.ts.map +0 -1
  382. package/internal/utils/base64.js +0 -38
  383. package/internal/utils/base64.js.map +0 -1
  384. package/internal/utils/base64.mjs +0 -33
  385. package/internal/utils/base64.mjs.map +0 -1
  386. package/internal/utils/bytes.d.mts +0 -4
  387. package/internal/utils/bytes.d.mts.map +0 -1
  388. package/internal/utils/bytes.d.ts +0 -4
  389. package/internal/utils/bytes.d.ts.map +0 -1
  390. package/internal/utils/bytes.js +0 -31
  391. package/internal/utils/bytes.js.map +0 -1
  392. package/internal/utils/bytes.mjs +0 -26
  393. package/internal/utils/bytes.mjs.map +0 -1
  394. package/internal/utils/env.d.mts +0 -9
  395. package/internal/utils/env.d.mts.map +0 -1
  396. package/internal/utils/env.d.ts +0 -9
  397. package/internal/utils/env.d.ts.map +0 -1
  398. package/internal/utils/env.js +0 -22
  399. package/internal/utils/env.js.map +0 -1
  400. package/internal/utils/env.mjs +0 -18
  401. package/internal/utils/env.mjs.map +0 -1
  402. package/internal/utils/log.d.mts +0 -37
  403. package/internal/utils/log.d.mts.map +0 -1
  404. package/internal/utils/log.d.ts +0 -37
  405. package/internal/utils/log.d.ts.map +0 -1
  406. package/internal/utils/log.js +0 -87
  407. package/internal/utils/log.js.map +0 -1
  408. package/internal/utils/log.mjs +0 -81
  409. package/internal/utils/log.mjs.map +0 -1
  410. package/internal/utils/path.d.mts +0 -15
  411. package/internal/utils/path.d.mts.map +0 -1
  412. package/internal/utils/path.d.ts +0 -15
  413. package/internal/utils/path.d.ts.map +0 -1
  414. package/internal/utils/path.js +0 -79
  415. package/internal/utils/path.js.map +0 -1
  416. package/internal/utils/path.mjs +0 -74
  417. package/internal/utils/path.mjs.map +0 -1
  418. package/internal/utils/query.d.mts +0 -2
  419. package/internal/utils/query.d.mts.map +0 -1
  420. package/internal/utils/query.d.ts +0 -2
  421. package/internal/utils/query.d.ts.map +0 -1
  422. package/internal/utils/query.js +0 -10
  423. package/internal/utils/query.js.map +0 -1
  424. package/internal/utils/query.mjs +0 -6
  425. package/internal/utils/query.mjs.map +0 -1
  426. package/internal/utils/sleep.d.mts +0 -2
  427. package/internal/utils/sleep.d.mts.map +0 -1
  428. package/internal/utils/sleep.d.ts +0 -2
  429. package/internal/utils/sleep.d.ts.map +0 -1
  430. package/internal/utils/sleep.js +0 -7
  431. package/internal/utils/sleep.js.map +0 -1
  432. package/internal/utils/sleep.mjs +0 -3
  433. package/internal/utils/sleep.mjs.map +0 -1
  434. package/internal/utils/uuid.d.mts +0 -5
  435. package/internal/utils/uuid.d.mts.map +0 -1
  436. package/internal/utils/uuid.d.ts +0 -5
  437. package/internal/utils/uuid.d.ts.map +0 -1
  438. package/internal/utils/uuid.js +0 -19
  439. package/internal/utils/uuid.js.map +0 -1
  440. package/internal/utils/uuid.mjs +0 -15
  441. package/internal/utils/uuid.mjs.map +0 -1
  442. package/internal/utils/values.d.mts +0 -18
  443. package/internal/utils/values.d.mts.map +0 -1
  444. package/internal/utils/values.d.ts +0 -18
  445. package/internal/utils/values.d.ts.map +0 -1
  446. package/internal/utils/values.js +0 -112
  447. package/internal/utils/values.js.map +0 -1
  448. package/internal/utils/values.mjs +0 -94
  449. package/internal/utils/values.mjs.map +0 -1
  450. package/internal/utils.d.mts +0 -8
  451. package/internal/utils.d.mts.map +0 -1
  452. package/internal/utils.d.ts +0 -8
  453. package/internal/utils.d.ts.map +0 -1
  454. package/internal/utils.js +0 -12
  455. package/internal/utils.js.map +0 -1
  456. package/internal/utils.mjs +0 -9
  457. package/internal/utils.mjs.map +0 -1
  458. package/pagination.d.mts +0 -3
  459. package/pagination.d.mts.map +0 -1
  460. package/pagination.d.ts +0 -3
  461. package/pagination.d.ts.map +0 -1
  462. package/pagination.js +0 -6
  463. package/pagination.js.map +0 -1
  464. package/pagination.mjs +0 -3
  465. package/pagination.mjs.map +0 -1
  466. package/resource.d.mts +0 -3
  467. package/resource.d.mts.map +0 -1
  468. package/resource.d.ts +0 -3
  469. package/resource.d.ts.map +0 -1
  470. package/resource.js +0 -6
  471. package/resource.js.map +0 -1
  472. package/resource.mjs +0 -3
  473. package/resource.mjs.map +0 -1
  474. package/resources/account.d.mts +0 -124
  475. package/resources/account.d.mts.map +0 -1
  476. package/resources/account.d.ts +0 -124
  477. package/resources/account.d.ts.map +0 -1
  478. package/resources/account.js +0 -33
  479. package/resources/account.js.map +0 -1
  480. package/resources/account.mjs +0 -29
  481. package/resources/account.mjs.map +0 -1
  482. package/resources/agents/agents.d.mts +0 -379
  483. package/resources/agents/agents.d.mts.map +0 -1
  484. package/resources/agents/agents.d.ts +0 -379
  485. package/resources/agents/agents.d.ts.map +0 -1
  486. package/resources/agents/agents.js +0 -192
  487. package/resources/agents/agents.js.map +0 -1
  488. package/resources/agents/agents.mjs +0 -187
  489. package/resources/agents/agents.mjs.map +0 -1
  490. package/resources/agents/feedback.d.mts +0 -71
  491. package/resources/agents/feedback.d.mts.map +0 -1
  492. package/resources/agents/feedback.d.ts +0 -71
  493. package/resources/agents/feedback.d.ts.map +0 -1
  494. package/resources/agents/feedback.js +0 -34
  495. package/resources/agents/feedback.js.map +0 -1
  496. package/resources/agents/feedback.mjs +0 -30
  497. package/resources/agents/feedback.mjs.map +0 -1
  498. package/resources/agents/index.d.mts +0 -6
  499. package/resources/agents/index.d.mts.map +0 -1
  500. package/resources/agents/index.d.ts +0 -6
  501. package/resources/agents/index.d.ts.map +0 -1
  502. package/resources/agents/index.js +0 -15
  503. package/resources/agents/index.js.map +0 -1
  504. package/resources/agents/index.mjs +0 -7
  505. package/resources/agents/index.mjs.map +0 -1
  506. package/resources/agents/schedules.d.mts +0 -383
  507. package/resources/agents/schedules.d.mts.map +0 -1
  508. package/resources/agents/schedules.d.ts +0 -383
  509. package/resources/agents/schedules.d.ts.map +0 -1
  510. package/resources/agents/schedules.js +0 -172
  511. package/resources/agents/schedules.js.map +0 -1
  512. package/resources/agents/schedules.mjs +0 -168
  513. package/resources/agents/schedules.mjs.map +0 -1
  514. package/resources/agents/variations.d.mts +0 -682
  515. package/resources/agents/variations.d.mts.map +0 -1
  516. package/resources/agents/variations.d.ts +0 -682
  517. package/resources/agents/variations.d.ts.map +0 -1
  518. package/resources/agents/variations.js +0 -209
  519. package/resources/agents/variations.js.map +0 -1
  520. package/resources/agents/variations.mjs +0 -205
  521. package/resources/agents/variations.mjs.map +0 -1
  522. package/resources/agents/webhook-deliveries.d.mts +0 -96
  523. package/resources/agents/webhook-deliveries.d.mts.map +0 -1
  524. package/resources/agents/webhook-deliveries.d.ts +0 -96
  525. package/resources/agents/webhook-deliveries.d.ts.map +0 -1
  526. package/resources/agents/webhook-deliveries.js +0 -32
  527. package/resources/agents/webhook-deliveries.js.map +0 -1
  528. package/resources/agents/webhook-deliveries.mjs +0 -28
  529. package/resources/agents/webhook-deliveries.mjs.map +0 -1
  530. package/resources/agents.d.mts +0 -2
  531. package/resources/agents.d.mts.map +0 -1
  532. package/resources/agents.d.ts +0 -2
  533. package/resources/agents.d.ts.map +0 -1
  534. package/resources/agents.js +0 -6
  535. package/resources/agents.js.map +0 -1
  536. package/resources/agents.mjs +0 -3
  537. package/resources/agents.mjs.map +0 -1
  538. package/resources/ai-provider-keys.d.mts +0 -269
  539. package/resources/ai-provider-keys.d.mts.map +0 -1
  540. package/resources/ai-provider-keys.d.ts +0 -269
  541. package/resources/ai-provider-keys.d.ts.map +0 -1
  542. package/resources/ai-provider-keys.js +0 -53
  543. package/resources/ai-provider-keys.js.map +0 -1
  544. package/resources/ai-provider-keys.mjs +0 -49
  545. package/resources/ai-provider-keys.mjs.map +0 -1
  546. package/resources/api-keys.d.mts +0 -268
  547. package/resources/api-keys.d.mts.map +0 -1
  548. package/resources/api-keys.d.ts +0 -268
  549. package/resources/api-keys.d.ts.map +0 -1
  550. package/resources/api-keys.js +0 -84
  551. package/resources/api-keys.js.map +0 -1
  552. package/resources/api-keys.mjs +0 -80
  553. package/resources/api-keys.mjs.map +0 -1
  554. package/resources/global-api-key.d.mts +0 -33
  555. package/resources/global-api-key.d.mts.map +0 -1
  556. package/resources/global-api-key.d.ts +0 -33
  557. package/resources/global-api-key.d.ts.map +0 -1
  558. package/resources/global-api-key.js +0 -43
  559. package/resources/global-api-key.js.map +0 -1
  560. package/resources/global-api-key.mjs +0 -39
  561. package/resources/global-api-key.mjs.map +0 -1
  562. package/resources/index.d.mts +0 -21
  563. package/resources/index.d.mts.map +0 -1
  564. package/resources/index.d.ts +0 -21
  565. package/resources/index.d.ts.map +0 -1
  566. package/resources/index.js +0 -45
  567. package/resources/index.js.map +0 -1
  568. package/resources/index.mjs +0 -22
  569. package/resources/index.mjs.map +0 -1
  570. package/resources/memory-layers/entries.d.mts +0 -257
  571. package/resources/memory-layers/entries.d.mts.map +0 -1
  572. package/resources/memory-layers/entries.d.ts +0 -257
  573. package/resources/memory-layers/entries.d.ts.map +0 -1
  574. package/resources/memory-layers/entries.js +0 -59
  575. package/resources/memory-layers/entries.js.map +0 -1
  576. package/resources/memory-layers/entries.mjs +0 -55
  577. package/resources/memory-layers/entries.mjs.map +0 -1
  578. package/resources/memory-layers/index.d.mts +0 -3
  579. package/resources/memory-layers/index.d.mts.map +0 -1
  580. package/resources/memory-layers/index.d.ts +0 -3
  581. package/resources/memory-layers/index.d.ts.map +0 -1
  582. package/resources/memory-layers/index.js +0 -9
  583. package/resources/memory-layers/index.js.map +0 -1
  584. package/resources/memory-layers/index.mjs +0 -4
  585. package/resources/memory-layers/index.mjs.map +0 -1
  586. package/resources/memory-layers/memory-layers.d.mts +0 -196
  587. package/resources/memory-layers/memory-layers.d.mts.map +0 -1
  588. package/resources/memory-layers/memory-layers.d.ts +0 -196
  589. package/resources/memory-layers/memory-layers.d.ts.map +0 -1
  590. package/resources/memory-layers/memory-layers.js +0 -64
  591. package/resources/memory-layers/memory-layers.js.map +0 -1
  592. package/resources/memory-layers/memory-layers.mjs +0 -59
  593. package/resources/memory-layers/memory-layers.mjs.map +0 -1
  594. package/resources/memory-layers.d.mts +0 -2
  595. package/resources/memory-layers.d.mts.map +0 -1
  596. package/resources/memory-layers.d.ts +0 -2
  597. package/resources/memory-layers.d.ts.map +0 -1
  598. package/resources/memory-layers.js +0 -6
  599. package/resources/memory-layers.js.map +0 -1
  600. package/resources/memory-layers.mjs +0 -3
  601. package/resources/memory-layers.mjs.map +0 -1
  602. package/resources/models.d.mts +0 -209
  603. package/resources/models.d.mts.map +0 -1
  604. package/resources/models.d.ts +0 -209
  605. package/resources/models.d.ts.map +0 -1
  606. package/resources/models.js +0 -60
  607. package/resources/models.js.map +0 -1
  608. package/resources/models.mjs +0 -56
  609. package/resources/models.mjs.map +0 -1
  610. package/resources/objectives/feedback.d.mts +0 -126
  611. package/resources/objectives/feedback.d.mts.map +0 -1
  612. package/resources/objectives/feedback.d.ts +0 -126
  613. package/resources/objectives/feedback.d.ts.map +0 -1
  614. package/resources/objectives/feedback.js +0 -53
  615. package/resources/objectives/feedback.js.map +0 -1
  616. package/resources/objectives/feedback.mjs +0 -49
  617. package/resources/objectives/feedback.mjs.map +0 -1
  618. package/resources/objectives/index.d.mts +0 -6
  619. package/resources/objectives/index.d.mts.map +0 -1
  620. package/resources/objectives/index.d.ts +0 -6
  621. package/resources/objectives/index.d.ts.map +0 -1
  622. package/resources/objectives/index.js +0 -15
  623. package/resources/objectives/index.js.map +0 -1
  624. package/resources/objectives/index.mjs +0 -7
  625. package/resources/objectives/index.mjs.map +0 -1
  626. package/resources/objectives/objectives.d.mts +0 -1280
  627. package/resources/objectives/objectives.d.mts.map +0 -1
  628. package/resources/objectives/objectives.d.ts +0 -1280
  629. package/resources/objectives/objectives.d.ts.map +0 -1
  630. package/resources/objectives/objectives.js +0 -214
  631. package/resources/objectives/objectives.js.map +0 -1
  632. package/resources/objectives/objectives.mjs +0 -209
  633. package/resources/objectives/objectives.mjs.map +0 -1
  634. package/resources/objectives/tasks.d.mts +0 -88
  635. package/resources/objectives/tasks.d.mts.map +0 -1
  636. package/resources/objectives/tasks.d.ts +0 -88
  637. package/resources/objectives/tasks.d.ts.map +0 -1
  638. package/resources/objectives/tasks.js +0 -46
  639. package/resources/objectives/tasks.js.map +0 -1
  640. package/resources/objectives/tasks.mjs +0 -42
  641. package/resources/objectives/tasks.mjs.map +0 -1
  642. package/resources/objectives/tool-calls.d.mts +0 -379
  643. package/resources/objectives/tool-calls.d.mts.map +0 -1
  644. package/resources/objectives/tool-calls.d.ts +0 -379
  645. package/resources/objectives/tool-calls.d.ts.map +0 -1
  646. package/resources/objectives/tool-calls.js +0 -111
  647. package/resources/objectives/tool-calls.js.map +0 -1
  648. package/resources/objectives/tool-calls.mjs +0 -107
  649. package/resources/objectives/tool-calls.mjs.map +0 -1
  650. package/resources/objectives/tools.d.mts +0 -53
  651. package/resources/objectives/tools.d.mts.map +0 -1
  652. package/resources/objectives/tools.d.ts +0 -53
  653. package/resources/objectives/tools.d.ts.map +0 -1
  654. package/resources/objectives/tools.js +0 -29
  655. package/resources/objectives/tools.js.map +0 -1
  656. package/resources/objectives/tools.mjs +0 -25
  657. package/resources/objectives/tools.mjs.map +0 -1
  658. package/resources/objectives.d.mts +0 -2
  659. package/resources/objectives.d.mts.map +0 -1
  660. package/resources/objectives.d.ts +0 -2
  661. package/resources/objectives.d.ts.map +0 -1
  662. package/resources/objectives.js +0 -6
  663. package/resources/objectives.js.map +0 -1
  664. package/resources/objectives.mjs +0 -3
  665. package/resources/objectives.mjs.map +0 -1
  666. package/resources/profiles.d.mts +0 -16
  667. package/resources/profiles.d.mts.map +0 -1
  668. package/resources/profiles.d.ts +0 -16
  669. package/resources/profiles.d.ts.map +0 -1
  670. package/resources/profiles.js +0 -20
  671. package/resources/profiles.js.map +0 -1
  672. package/resources/profiles.mjs +0 -16
  673. package/resources/profiles.mjs.map +0 -1
  674. package/resources/search.d.mts +0 -33
  675. package/resources/search.d.mts.map +0 -1
  676. package/resources/search.d.ts +0 -33
  677. package/resources/search.d.ts.map +0 -1
  678. package/resources/search.js +0 -20
  679. package/resources/search.js.map +0 -1
  680. package/resources/search.mjs +0 -16
  681. package/resources/search.mjs.map +0 -1
  682. package/resources/shared.d.mts +0 -215
  683. package/resources/shared.d.mts.map +0 -1
  684. package/resources/shared.d.ts +0 -215
  685. package/resources/shared.d.ts.map +0 -1
  686. package/resources/shared.js +0 -4
  687. package/resources/shared.js.map +0 -1
  688. package/resources/shared.mjs +0 -3
  689. package/resources/shared.mjs.map +0 -1
  690. package/resources/tenants/index.d.mts +0 -3
  691. package/resources/tenants/index.d.mts.map +0 -1
  692. package/resources/tenants/index.d.ts +0 -3
  693. package/resources/tenants/index.d.ts.map +0 -1
  694. package/resources/tenants/index.js +0 -9
  695. package/resources/tenants/index.js.map +0 -1
  696. package/resources/tenants/index.mjs +0 -4
  697. package/resources/tenants/index.mjs.map +0 -1
  698. package/resources/tenants/subjects.d.mts +0 -43
  699. package/resources/tenants/subjects.d.mts.map +0 -1
  700. package/resources/tenants/subjects.d.ts +0 -43
  701. package/resources/tenants/subjects.d.ts.map +0 -1
  702. package/resources/tenants/subjects.js +0 -27
  703. package/resources/tenants/subjects.js.map +0 -1
  704. package/resources/tenants/subjects.mjs +0 -23
  705. package/resources/tenants/subjects.mjs.map +0 -1
  706. package/resources/tenants/tenants.d.mts +0 -158
  707. package/resources/tenants/tenants.d.mts.map +0 -1
  708. package/resources/tenants/tenants.d.ts +0 -158
  709. package/resources/tenants/tenants.d.ts.map +0 -1
  710. package/resources/tenants/tenants.js +0 -58
  711. package/resources/tenants/tenants.js.map +0 -1
  712. package/resources/tenants/tenants.mjs +0 -53
  713. package/resources/tenants/tenants.mjs.map +0 -1
  714. package/resources/tenants.d.mts +0 -2
  715. package/resources/tenants.d.mts.map +0 -1
  716. package/resources/tenants.d.ts +0 -2
  717. package/resources/tenants.d.ts.map +0 -1
  718. package/resources/tenants.js +0 -6
  719. package/resources/tenants.js.map +0 -1
  720. package/resources/tenants.mjs +0 -3
  721. package/resources/tenants.mjs.map +0 -1
  722. package/resources/tool-sets/index.d.mts +0 -4
  723. package/resources/tool-sets/index.d.mts.map +0 -1
  724. package/resources/tool-sets/index.d.ts +0 -4
  725. package/resources/tool-sets/index.d.ts.map +0 -1
  726. package/resources/tool-sets/index.js +0 -11
  727. package/resources/tool-sets/index.js.map +0 -1
  728. package/resources/tool-sets/index.mjs +0 -5
  729. package/resources/tool-sets/index.mjs.map +0 -1
  730. package/resources/tool-sets/secrets.d.mts +0 -135
  731. package/resources/tool-sets/secrets.d.mts.map +0 -1
  732. package/resources/tool-sets/secrets.d.ts +0 -135
  733. package/resources/tool-sets/secrets.d.ts.map +0 -1
  734. package/resources/tool-sets/secrets.js +0 -63
  735. package/resources/tool-sets/secrets.js.map +0 -1
  736. package/resources/tool-sets/secrets.mjs +0 -59
  737. package/resources/tool-sets/secrets.mjs.map +0 -1
  738. package/resources/tool-sets/tool-sets.d.mts +0 -595
  739. package/resources/tool-sets/tool-sets.d.mts.map +0 -1
  740. package/resources/tool-sets/tool-sets.d.ts +0 -595
  741. package/resources/tool-sets/tool-sets.d.ts.map +0 -1
  742. package/resources/tool-sets/tool-sets.js +0 -123
  743. package/resources/tool-sets/tool-sets.js.map +0 -1
  744. package/resources/tool-sets/tool-sets.mjs +0 -118
  745. package/resources/tool-sets/tool-sets.mjs.map +0 -1
  746. package/resources/tool-sets/tools.d.mts +0 -305
  747. package/resources/tool-sets/tools.d.mts.map +0 -1
  748. package/resources/tool-sets/tools.d.ts +0 -305
  749. package/resources/tool-sets/tools.d.ts.map +0 -1
  750. package/resources/tool-sets/tools.js +0 -85
  751. package/resources/tool-sets/tools.js.map +0 -1
  752. package/resources/tool-sets/tools.mjs +0 -81
  753. package/resources/tool-sets/tools.mjs.map +0 -1
  754. package/resources/tool-sets.d.mts +0 -2
  755. package/resources/tool-sets.d.mts.map +0 -1
  756. package/resources/tool-sets.d.ts +0 -2
  757. package/resources/tool-sets.d.ts.map +0 -1
  758. package/resources/tool-sets.js +0 -6
  759. package/resources/tool-sets.js.map +0 -1
  760. package/resources/tool-sets.mjs +0 -3
  761. package/resources/tool-sets.mjs.map +0 -1
  762. package/resources/uploads.d.mts +0 -107
  763. package/resources/uploads.d.mts.map +0 -1
  764. package/resources/uploads.d.ts +0 -107
  765. package/resources/uploads.d.ts.map +0 -1
  766. package/resources/uploads.js +0 -31
  767. package/resources/uploads.js.map +0 -1
  768. package/resources/uploads.mjs +0 -27
  769. package/resources/uploads.mjs.map +0 -1
  770. package/resources/webhooks.d.mts +0 -92
  771. package/resources/webhooks.d.mts.map +0 -1
  772. package/resources/webhooks.d.ts +0 -92
  773. package/resources/webhooks.d.ts.map +0 -1
  774. package/resources/webhooks.js +0 -23
  775. package/resources/webhooks.js.map +0 -1
  776. package/resources/webhooks.mjs +0 -19
  777. package/resources/webhooks.mjs.map +0 -1
  778. package/resources/widget-sessions.d.mts +0 -388
  779. package/resources/widget-sessions.d.mts.map +0 -1
  780. package/resources/widget-sessions.d.ts +0 -388
  781. package/resources/widget-sessions.d.ts.map +0 -1
  782. package/resources/widget-sessions.js +0 -79
  783. package/resources/widget-sessions.js.map +0 -1
  784. package/resources/widget-sessions.mjs +0 -75
  785. package/resources/widget-sessions.mjs.map +0 -1
  786. package/resources/widgets.d.mts +0 -225
  787. package/resources/widgets.d.mts.map +0 -1
  788. package/resources/widgets.d.ts +0 -225
  789. package/resources/widgets.d.ts.map +0 -1
  790. package/resources/widgets.js +0 -83
  791. package/resources/widgets.js.map +0 -1
  792. package/resources/widgets.mjs +0 -79
  793. package/resources/widgets.mjs.map +0 -1
  794. package/resources/workspace-admin/index.d.mts +0 -4
  795. package/resources/workspace-admin/index.d.mts.map +0 -1
  796. package/resources/workspace-admin/index.d.ts +0 -4
  797. package/resources/workspace-admin/index.d.ts.map +0 -1
  798. package/resources/workspace-admin/index.js +0 -11
  799. package/resources/workspace-admin/index.js.map +0 -1
  800. package/resources/workspace-admin/index.mjs +0 -5
  801. package/resources/workspace-admin/index.mjs.map +0 -1
  802. package/resources/workspace-admin/members.d.mts +0 -90
  803. package/resources/workspace-admin/members.d.mts.map +0 -1
  804. package/resources/workspace-admin/members.d.ts +0 -90
  805. package/resources/workspace-admin/members.d.ts.map +0 -1
  806. package/resources/workspace-admin/members.js +0 -74
  807. package/resources/workspace-admin/members.js.map +0 -1
  808. package/resources/workspace-admin/members.mjs +0 -70
  809. package/resources/workspace-admin/members.mjs.map +0 -1
  810. package/resources/workspace-admin/profiles.d.mts +0 -46
  811. package/resources/workspace-admin/profiles.d.mts.map +0 -1
  812. package/resources/workspace-admin/profiles.d.ts +0 -46
  813. package/resources/workspace-admin/profiles.d.ts.map +0 -1
  814. package/resources/workspace-admin/profiles.js +0 -36
  815. package/resources/workspace-admin/profiles.js.map +0 -1
  816. package/resources/workspace-admin/profiles.mjs +0 -32
  817. package/resources/workspace-admin/profiles.mjs.map +0 -1
  818. package/resources/workspace-admin/workspace-admin.d.mts +0 -227
  819. package/resources/workspace-admin/workspace-admin.d.mts.map +0 -1
  820. package/resources/workspace-admin/workspace-admin.d.ts +0 -227
  821. package/resources/workspace-admin/workspace-admin.d.ts.map +0 -1
  822. package/resources/workspace-admin/workspace-admin.js +0 -112
  823. package/resources/workspace-admin/workspace-admin.js.map +0 -1
  824. package/resources/workspace-admin/workspace-admin.mjs +0 -107
  825. package/resources/workspace-admin/workspace-admin.mjs.map +0 -1
  826. package/resources/workspace-admin.d.mts +0 -2
  827. package/resources/workspace-admin.d.mts.map +0 -1
  828. package/resources/workspace-admin.d.ts +0 -2
  829. package/resources/workspace-admin.d.ts.map +0 -1
  830. package/resources/workspace-admin.js +0 -6
  831. package/resources/workspace-admin.js.map +0 -1
  832. package/resources/workspace-admin.mjs +0 -3
  833. package/resources/workspace-admin.mjs.map +0 -1
  834. package/resources/workspace-secrets.d.mts +0 -134
  835. package/resources/workspace-secrets.d.mts.map +0 -1
  836. package/resources/workspace-secrets.d.ts +0 -134
  837. package/resources/workspace-secrets.d.ts.map +0 -1
  838. package/resources/workspace-secrets.js +0 -53
  839. package/resources/workspace-secrets.js.map +0 -1
  840. package/resources/workspace-secrets.mjs +0 -49
  841. package/resources/workspace-secrets.mjs.map +0 -1
  842. package/resources/workspaces.d.mts +0 -70
  843. package/resources/workspaces.d.mts.map +0 -1
  844. package/resources/workspaces.d.ts +0 -70
  845. package/resources/workspaces.d.ts.map +0 -1
  846. package/resources/workspaces.js +0 -24
  847. package/resources/workspaces.js.map +0 -1
  848. package/resources/workspaces.mjs +0 -20
  849. package/resources/workspaces.mjs.map +0 -1
  850. package/resources.d.mts +0 -2
  851. package/resources.d.mts.map +0 -1
  852. package/resources.d.ts +0 -2
  853. package/resources.d.ts.map +0 -1
  854. package/resources.js +0 -5
  855. package/resources.js.map +0 -1
  856. package/resources.mjs +0 -2
  857. package/resources.mjs.map +0 -1
  858. package/src/api-promise.ts +0 -2
  859. package/src/core/README.md +0 -3
  860. package/src/core/api-promise.ts +0 -92
  861. package/src/core/resource.ts +0 -11
  862. package/src/core/streaming.ts +0 -319
  863. package/src/core/uploads.ts +0 -2
  864. package/src/error.ts +0 -2
  865. package/src/internal/README.md +0 -3
  866. package/src/internal/builtin-types.ts +0 -93
  867. package/src/internal/decoders/line.ts +0 -135
  868. package/src/internal/detect-platform.ts +0 -196
  869. package/src/internal/errors.ts +0 -33
  870. package/src/internal/headers.ts +0 -97
  871. package/src/internal/parse.ts +0 -70
  872. package/src/internal/qs/LICENSE.md +0 -13
  873. package/src/internal/qs/README.md +0 -3
  874. package/src/internal/qs/formats.ts +0 -10
  875. package/src/internal/qs/index.ts +0 -13
  876. package/src/internal/qs/stringify.ts +0 -385
  877. package/src/internal/qs/types.ts +0 -71
  878. package/src/internal/qs/utils.ts +0 -265
  879. package/src/internal/request-options.ts +0 -93
  880. package/src/internal/shim-types.ts +0 -26
  881. package/src/internal/shims.ts +0 -107
  882. package/src/internal/to-file.ts +0 -154
  883. package/src/internal/types.ts +0 -93
  884. package/src/internal/uploads.ts +0 -187
  885. package/src/internal/utils/base64.ts +0 -40
  886. package/src/internal/utils/bytes.ts +0 -32
  887. package/src/internal/utils/env.ts +0 -18
  888. package/src/internal/utils/log.ts +0 -128
  889. package/src/internal/utils/path.ts +0 -88
  890. package/src/internal/utils/query.ts +0 -7
  891. package/src/internal/utils/sleep.ts +0 -3
  892. package/src/internal/utils/uuid.ts +0 -17
  893. package/src/internal/utils/values.ts +0 -105
  894. package/src/internal/utils.ts +0 -9
  895. package/src/lib/.keep +0 -4
  896. package/src/pagination.ts +0 -2
  897. package/src/resource.ts +0 -2
  898. package/src/resources/account.ts +0 -160
  899. package/src/resources/agents/agents.ts +0 -618
  900. package/src/resources/agents/feedback.ts +0 -98
  901. package/src/resources/agents/index.ts +0 -77
  902. package/src/resources/agents/schedules.ts +0 -543
  903. package/src/resources/agents/variations.ts +0 -931
  904. package/src/resources/agents/webhook-deliveries.ts +0 -178
  905. package/src/resources/global-api-key.ts +0 -46
  906. package/src/resources/index.ts +0 -294
  907. package/src/resources/memory-layers/entries.ts +0 -375
  908. package/src/resources/memory-layers/index.ts +0 -31
  909. package/src/resources/memory-layers/memory-layers.ts +0 -316
  910. package/src/resources/objectives/feedback.ts +0 -173
  911. package/src/resources/objectives/index.ts +0 -117
  912. package/src/resources/objectives/objectives.ts +0 -1789
  913. package/src/resources/objectives/tasks.ts +0 -131
  914. package/src/resources/objectives/tool-calls.ts +0 -574
  915. package/src/resources/objectives/tools.ts +0 -76
  916. package/src/resources/search.ts +0 -54
  917. package/src/resources/shared.ts +0 -236
  918. package/src/resources/tenants/index.ts +0 -15
  919. package/src/resources/tenants/subjects.ts +0 -63
  920. package/src/resources/tenants/tenants.ts +0 -220
  921. package/src/resources/tool-sets/index.ts +0 -89
  922. package/src/resources/tool-sets/secrets.ts +0 -225
  923. package/src/resources/tool-sets/tool-sets.ts +0 -936
  924. package/src/resources/tool-sets/tools.ts +0 -458
  925. package/src/resources/webhooks.ts +0 -124
  926. package/src/resources/workspace-admin/index.ts +0 -14
  927. package/src/resources/workspace-admin/members.ts +0 -133
  928. package/src/resources/workspace-admin/profiles.ts +0 -60
  929. package/src/resources/workspace-admin/workspace-admin.ts +0 -304
  930. package/src/resources.ts +0 -1
  931. package/src/streaming.ts +0 -2
  932. package/src/tsconfig.json +0 -11
  933. package/src/uploads.ts +0 -2
  934. package/src/version.ts +0 -1
  935. package/streaming.d.mts +0 -3
  936. package/streaming.d.mts.map +0 -1
  937. package/streaming.d.ts +0 -3
  938. package/streaming.d.ts.map +0 -1
  939. package/streaming.js +0 -6
  940. package/streaming.js.map +0 -1
  941. package/streaming.mjs +0 -3
  942. package/streaming.mjs.map +0 -1
  943. package/uploads.d.mts +0 -3
  944. package/uploads.d.mts.map +0 -1
  945. package/uploads.d.ts +0 -3
  946. package/uploads.d.ts.map +0 -1
  947. package/uploads.js +0 -6
  948. package/uploads.js.map +0 -1
  949. package/uploads.mjs +0 -3
  950. package/uploads.mjs.map +0 -1
  951. package/version.d.mts +0 -2
  952. package/version.d.mts.map +0 -1
  953. package/version.d.ts +0 -2
  954. package/version.d.ts.map +0 -1
  955. package/version.js +0 -5
  956. package/version.js.map +0 -1
  957. package/version.mjs +0 -2
  958. package/version.mjs.map +0 -1
@@ -1,225 +0,0 @@
1
- import { APIResource } from "../core/resource.mjs";
2
- import * as AccountAPI from "./account.mjs";
3
- import * as Shared from "./shared.mjs";
4
- import { APIPromise } from "../core/api-promise.mjs";
5
- import { CursorPagination, type CursorPaginationParams, PagePromise } from "../core/pagination.mjs";
6
- import { RequestOptions } from "../internal/request-options.mjs";
7
- /**
8
- * Manage embeddable chat widgets. A widget binds an agent to a globally
9
- * unique hostname with a per-widget origin allowlist; browsers reach it with
10
- * session tokens minted via WidgetSessionService.
11
- */
12
- export declare class Widgets extends APIResource {
13
- /**
14
- * Creates a widget bound to an agent. The widget's DNS label and hostname are
15
- * generated by the server and returned in `info`. The hostname may take up to a
16
- * minute to become reachable while the edge propagates.
17
- */
18
- create(params: WidgetCreateParams, options?: RequestOptions): APIPromise<Widget>;
19
- /**
20
- * Retrieves a widget by ID
21
- */
22
- retrieve(id: string, params?: WidgetRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Widget>;
23
- /**
24
- * Updates a widget's metadata or spec. The DNS label is immutable and cannot be
25
- * updated. Re-pointing the agent affects new sessions only; in-flight
26
- * conversations finish against the agent they started with.
27
- */
28
- update(id: string, params: WidgetUpdateParams, options?: RequestOptions): APIPromise<Widget>;
29
- /**
30
- * Lists all widgets in a workspace
31
- */
32
- list(params?: WidgetListParams | null | undefined, options?: RequestOptions): PagePromise<WidgetsCursorPagination, Widget>;
33
- /**
34
- * Deletes a widget. Its hostname stops serving and all of its sessions are
35
- * revoked.
36
- */
37
- delete(id: string, params?: WidgetDeleteParams | null | undefined, options?: RequestOptions): APIPromise<void>;
38
- /**
39
- * Transitions a widget to STATE_ARCHIVED. The hostname stops serving at the edge,
40
- * existing sessions are revoked, and no new sessions can be minted. Reversible via
41
- * :unarchive.
42
- */
43
- archive(id: string, params: WidgetArchiveParams, options?: RequestOptions): APIPromise<Widget>;
44
- /**
45
- * Transitions an archived widget back to STATE_ACTIVE so its hostname serves
46
- * traffic again. Sessions revoked by archival stay revoked; mint new ones.
47
- */
48
- unarchive(id: string, params: WidgetUnarchiveParams, options?: RequestOptions): APIPromise<Widget>;
49
- }
50
- export type WidgetsCursorPagination = CursorPagination<Widget>;
51
- /**
52
- * Widget is an embeddable chat surface bound to a single agent. Each widget owns a
53
- * globally unique, immutable DNS label under the widgets domain (e.g.
54
- * "k7m2xq9fp4wn.widgets.cadenya.com"): one widget = one hostname = one origin
55
- * allowlist = one agent binding. Browsers talk to the widget host with session
56
- * bearer tokens minted server-side via WidgetSessionService.
57
- */
58
- export interface Widget {
59
- /**
60
- * Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
61
- */
62
- metadata: Shared.ResourceMetadata;
63
- /**
64
- * WidgetSpec is the user-provided configuration for a widget.
65
- */
66
- spec: WidgetSpec;
67
- /**
68
- * The current lifecycle state of the widget. Output only. Widgets are created
69
- * STATE_ACTIVE; use the :archive and :unarchive actions to transition between
70
- * states.
71
- */
72
- state: 'STATE_UNSPECIFIED' | 'STATE_ACTIVE' | 'STATE_ARCHIVED';
73
- /**
74
- * WidgetInfo provides read-only server-derived data about a widget.
75
- */
76
- info?: WidgetInfo;
77
- }
78
- /**
79
- * WidgetInfo provides read-only server-derived data about a widget.
80
- */
81
- export interface WidgetInfo {
82
- /**
83
- * BareMetadata contains the minimal metadata for a resource: the ID and an
84
- * optional human-readable name. These are used for reference fields where the full
85
- * metadata (account scoping, timestamps, labels, external IDs) is not needed —
86
- * e.g., the tool references inside an agent variation spec or the tools assigned
87
- * to an objective. Both fields are server-populated; clients provide IDs through
88
- * sibling fields rather than by constructing a BareMetadata themselves.
89
- */
90
- agent?: Shared.BareMetadata;
91
- /**
92
- * A profile identifies a user or non-human principal (such as an API key) at the
93
- * account level. Profiles are account-scoped and can be granted access to multiple
94
- * workspaces.
95
- */
96
- createdBy?: AccountAPI.Profile;
97
- /**
98
- * The widget's DNS label — the single hostname label under the widgets domain.
99
- * Server-generated at creation, globally unique, immutable, and deliberately
100
- * unrelated to the widget's id.
101
- */
102
- dnsLabel?: string;
103
- /**
104
- * The full hostname browsers talk to. Authoritative — clients must use this value
105
- * rather than constructing the hostname themselves.
106
- */
107
- host?: string;
108
- }
109
- /**
110
- * WidgetSpec is the user-provided configuration for a widget.
111
- */
112
- export interface WidgetSpec {
113
- /**
114
- * Agent this widget is bound to. Accepts the canonical `agent_…` form or the
115
- * `external_id:<value>` form. Sessions copy the agent at mint: re-pointing a
116
- * widget's agent affects new sessions only.
117
- */
118
- agentId: string;
119
- /**
120
- * Web origins allowed to embed and use this widget, enforced at the edge on every
121
- * browser request. Exact origins only (scheme + host + optional port), no paths,
122
- * no wildcard subdomains.
123
- */
124
- originAllowlist?: Array<string>;
125
- /**
126
- * Optional explicit variation pin. Must belong to the widget's agent. When set,
127
- * every objective created through the widget runs this variation — bypassing the
128
- * agent's variation_selection_mode (staged rollout: pin in production, follow in
129
- * staging, promote by clearing). When unset, the agent's selection mode chooses
130
- * per conversation.
131
- */
132
- variationId?: string;
133
- }
134
- export interface WidgetCreateParams {
135
- /**
136
- * Path param: Workspace ID.
137
- */
138
- workspaceId?: string;
139
- /**
140
- * Body param: CreateResourceMetadata contains the user-provided fields for
141
- * creating a workspace-scoped resource. Read-only fields (id, account_id,
142
- * workspace_id, profile_id, created_at) are excluded since they are set by the
143
- * server.
144
- */
145
- metadata: Shared.CreateResourceMetadata;
146
- /**
147
- * Body param: WidgetSpec is the user-provided configuration for a widget.
148
- */
149
- spec: WidgetSpec;
150
- }
151
- export interface WidgetRetrieveParams {
152
- /**
153
- * Workspace ID.
154
- */
155
- workspaceId?: string;
156
- }
157
- export interface WidgetUpdateParams {
158
- /**
159
- * Path param: Workspace ID.
160
- */
161
- workspaceId?: string;
162
- /**
163
- * Body param: UpdateResourceMetadata contains the user-provided fields for
164
- * updating a workspace-scoped resource. Read-only fields (id, account_id,
165
- * workspace_id, profile_id, created_at) are excluded since they are set by the
166
- * server.
167
- */
168
- metadata?: Shared.UpdateResourceMetadata;
169
- /**
170
- * Body param: WidgetSpec is the user-provided configuration for a widget.
171
- */
172
- spec?: WidgetSpec;
173
- /**
174
- * Body param: Fields to update.
175
- */
176
- updateMask?: string;
177
- }
178
- export interface WidgetListParams extends CursorPaginationParams {
179
- /**
180
- * Path param: Workspace ID.
181
- */
182
- workspaceId?: string;
183
- /**
184
- * Query param: Filter to widgets bound to a specific agent. Accepts the canonical
185
- * `agent_…` form or the `external_id:<value>` form.
186
- */
187
- agentId?: string;
188
- /**
189
- * Query param: When true, the `info` field on each returned widget is populated.
190
- * Requests with this flag count more against your rate limit.
191
- */
192
- includeInfo?: boolean;
193
- /**
194
- * Query param: Filters by metadata labels. Comma-separated key=value pairs, e.g.
195
- * "env=prod,team=ai". A resource matches only if every pair matches exactly (AND
196
- * semantics).
197
- */
198
- labels?: string;
199
- /**
200
- * Query param: Sort order for results (asc or desc by creation time).
201
- */
202
- sortOrder?: string;
203
- }
204
- export interface WidgetDeleteParams {
205
- /**
206
- * Workspace ID.
207
- */
208
- workspaceId?: string;
209
- }
210
- export interface WidgetArchiveParams {
211
- /**
212
- * Workspace ID.
213
- */
214
- workspaceId?: string;
215
- }
216
- export interface WidgetUnarchiveParams {
217
- /**
218
- * Workspace ID.
219
- */
220
- workspaceId?: string;
221
- }
222
- export declare namespace Widgets {
223
- export { type Widget as Widget, type WidgetInfo as WidgetInfo, type WidgetSpec as WidgetSpec, type WidgetsCursorPagination as WidgetsCursorPagination, type WidgetCreateParams as WidgetCreateParams, type WidgetRetrieveParams as WidgetRetrieveParams, type WidgetUpdateParams as WidgetUpdateParams, type WidgetListParams as WidgetListParams, type WidgetDeleteParams as WidgetDeleteParams, type WidgetArchiveParams as WidgetArchiveParams, type WidgetUnarchiveParams as WidgetUnarchiveParams, };
224
- }
225
- //# sourceMappingURL=widgets.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"widgets.d.mts","sourceRoot":"","sources":["../src/resources/widgets.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,KAAK,MAAM,qBAAiB;AACnC,OAAO,EAAE,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AEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,gBAAiB,SAAQ,sBAAsB;IAC9D;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
@@ -1,225 +0,0 @@
1
- import { APIResource } from "../core/resource.js";
2
- import * as AccountAPI from "./account.js";
3
- import * as Shared from "./shared.js";
4
- import { APIPromise } from "../core/api-promise.js";
5
- import { CursorPagination, type CursorPaginationParams, PagePromise } from "../core/pagination.js";
6
- import { RequestOptions } from "../internal/request-options.js";
7
- /**
8
- * Manage embeddable chat widgets. A widget binds an agent to a globally
9
- * unique hostname with a per-widget origin allowlist; browsers reach it with
10
- * session tokens minted via WidgetSessionService.
11
- */
12
- export declare class Widgets extends APIResource {
13
- /**
14
- * Creates a widget bound to an agent. The widget's DNS label and hostname are
15
- * generated by the server and returned in `info`. The hostname may take up to a
16
- * minute to become reachable while the edge propagates.
17
- */
18
- create(params: WidgetCreateParams, options?: RequestOptions): APIPromise<Widget>;
19
- /**
20
- * Retrieves a widget by ID
21
- */
22
- retrieve(id: string, params?: WidgetRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Widget>;
23
- /**
24
- * Updates a widget's metadata or spec. The DNS label is immutable and cannot be
25
- * updated. Re-pointing the agent affects new sessions only; in-flight
26
- * conversations finish against the agent they started with.
27
- */
28
- update(id: string, params: WidgetUpdateParams, options?: RequestOptions): APIPromise<Widget>;
29
- /**
30
- * Lists all widgets in a workspace
31
- */
32
- list(params?: WidgetListParams | null | undefined, options?: RequestOptions): PagePromise<WidgetsCursorPagination, Widget>;
33
- /**
34
- * Deletes a widget. Its hostname stops serving and all of its sessions are
35
- * revoked.
36
- */
37
- delete(id: string, params?: WidgetDeleteParams | null | undefined, options?: RequestOptions): APIPromise<void>;
38
- /**
39
- * Transitions a widget to STATE_ARCHIVED. The hostname stops serving at the edge,
40
- * existing sessions are revoked, and no new sessions can be minted. Reversible via
41
- * :unarchive.
42
- */
43
- archive(id: string, params: WidgetArchiveParams, options?: RequestOptions): APIPromise<Widget>;
44
- /**
45
- * Transitions an archived widget back to STATE_ACTIVE so its hostname serves
46
- * traffic again. Sessions revoked by archival stay revoked; mint new ones.
47
- */
48
- unarchive(id: string, params: WidgetUnarchiveParams, options?: RequestOptions): APIPromise<Widget>;
49
- }
50
- export type WidgetsCursorPagination = CursorPagination<Widget>;
51
- /**
52
- * Widget is an embeddable chat surface bound to a single agent. Each widget owns a
53
- * globally unique, immutable DNS label under the widgets domain (e.g.
54
- * "k7m2xq9fp4wn.widgets.cadenya.com"): one widget = one hostname = one origin
55
- * allowlist = one agent binding. Browsers talk to the widget host with session
56
- * bearer tokens minted server-side via WidgetSessionService.
57
- */
58
- export interface Widget {
59
- /**
60
- * Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
61
- */
62
- metadata: Shared.ResourceMetadata;
63
- /**
64
- * WidgetSpec is the user-provided configuration for a widget.
65
- */
66
- spec: WidgetSpec;
67
- /**
68
- * The current lifecycle state of the widget. Output only. Widgets are created
69
- * STATE_ACTIVE; use the :archive and :unarchive actions to transition between
70
- * states.
71
- */
72
- state: 'STATE_UNSPECIFIED' | 'STATE_ACTIVE' | 'STATE_ARCHIVED';
73
- /**
74
- * WidgetInfo provides read-only server-derived data about a widget.
75
- */
76
- info?: WidgetInfo;
77
- }
78
- /**
79
- * WidgetInfo provides read-only server-derived data about a widget.
80
- */
81
- export interface WidgetInfo {
82
- /**
83
- * BareMetadata contains the minimal metadata for a resource: the ID and an
84
- * optional human-readable name. These are used for reference fields where the full
85
- * metadata (account scoping, timestamps, labels, external IDs) is not needed —
86
- * e.g., the tool references inside an agent variation spec or the tools assigned
87
- * to an objective. Both fields are server-populated; clients provide IDs through
88
- * sibling fields rather than by constructing a BareMetadata themselves.
89
- */
90
- agent?: Shared.BareMetadata;
91
- /**
92
- * A profile identifies a user or non-human principal (such as an API key) at the
93
- * account level. Profiles are account-scoped and can be granted access to multiple
94
- * workspaces.
95
- */
96
- createdBy?: AccountAPI.Profile;
97
- /**
98
- * The widget's DNS label — the single hostname label under the widgets domain.
99
- * Server-generated at creation, globally unique, immutable, and deliberately
100
- * unrelated to the widget's id.
101
- */
102
- dnsLabel?: string;
103
- /**
104
- * The full hostname browsers talk to. Authoritative — clients must use this value
105
- * rather than constructing the hostname themselves.
106
- */
107
- host?: string;
108
- }
109
- /**
110
- * WidgetSpec is the user-provided configuration for a widget.
111
- */
112
- export interface WidgetSpec {
113
- /**
114
- * Agent this widget is bound to. Accepts the canonical `agent_…` form or the
115
- * `external_id:<value>` form. Sessions copy the agent at mint: re-pointing a
116
- * widget's agent affects new sessions only.
117
- */
118
- agentId: string;
119
- /**
120
- * Web origins allowed to embed and use this widget, enforced at the edge on every
121
- * browser request. Exact origins only (scheme + host + optional port), no paths,
122
- * no wildcard subdomains.
123
- */
124
- originAllowlist?: Array<string>;
125
- /**
126
- * Optional explicit variation pin. Must belong to the widget's agent. When set,
127
- * every objective created through the widget runs this variation — bypassing the
128
- * agent's variation_selection_mode (staged rollout: pin in production, follow in
129
- * staging, promote by clearing). When unset, the agent's selection mode chooses
130
- * per conversation.
131
- */
132
- variationId?: string;
133
- }
134
- export interface WidgetCreateParams {
135
- /**
136
- * Path param: Workspace ID.
137
- */
138
- workspaceId?: string;
139
- /**
140
- * Body param: CreateResourceMetadata contains the user-provided fields for
141
- * creating a workspace-scoped resource. Read-only fields (id, account_id,
142
- * workspace_id, profile_id, created_at) are excluded since they are set by the
143
- * server.
144
- */
145
- metadata: Shared.CreateResourceMetadata;
146
- /**
147
- * Body param: WidgetSpec is the user-provided configuration for a widget.
148
- */
149
- spec: WidgetSpec;
150
- }
151
- export interface WidgetRetrieveParams {
152
- /**
153
- * Workspace ID.
154
- */
155
- workspaceId?: string;
156
- }
157
- export interface WidgetUpdateParams {
158
- /**
159
- * Path param: Workspace ID.
160
- */
161
- workspaceId?: string;
162
- /**
163
- * Body param: UpdateResourceMetadata contains the user-provided fields for
164
- * updating a workspace-scoped resource. Read-only fields (id, account_id,
165
- * workspace_id, profile_id, created_at) are excluded since they are set by the
166
- * server.
167
- */
168
- metadata?: Shared.UpdateResourceMetadata;
169
- /**
170
- * Body param: WidgetSpec is the user-provided configuration for a widget.
171
- */
172
- spec?: WidgetSpec;
173
- /**
174
- * Body param: Fields to update.
175
- */
176
- updateMask?: string;
177
- }
178
- export interface WidgetListParams extends CursorPaginationParams {
179
- /**
180
- * Path param: Workspace ID.
181
- */
182
- workspaceId?: string;
183
- /**
184
- * Query param: Filter to widgets bound to a specific agent. Accepts the canonical
185
- * `agent_…` form or the `external_id:<value>` form.
186
- */
187
- agentId?: string;
188
- /**
189
- * Query param: When true, the `info` field on each returned widget is populated.
190
- * Requests with this flag count more against your rate limit.
191
- */
192
- includeInfo?: boolean;
193
- /**
194
- * Query param: Filters by metadata labels. Comma-separated key=value pairs, e.g.
195
- * "env=prod,team=ai". A resource matches only if every pair matches exactly (AND
196
- * semantics).
197
- */
198
- labels?: string;
199
- /**
200
- * Query param: Sort order for results (asc or desc by creation time).
201
- */
202
- sortOrder?: string;
203
- }
204
- export interface WidgetDeleteParams {
205
- /**
206
- * Workspace ID.
207
- */
208
- workspaceId?: string;
209
- }
210
- export interface WidgetArchiveParams {
211
- /**
212
- * Workspace ID.
213
- */
214
- workspaceId?: string;
215
- }
216
- export interface WidgetUnarchiveParams {
217
- /**
218
- * Workspace ID.
219
- */
220
- workspaceId?: string;
221
- }
222
- export declare namespace Widgets {
223
- export { type Widget as Widget, type WidgetInfo as WidgetInfo, type WidgetSpec as WidgetSpec, type WidgetsCursorPagination as WidgetsCursorPagination, type WidgetCreateParams as WidgetCreateParams, type WidgetRetrieveParams as WidgetRetrieveParams, type WidgetUpdateParams as WidgetUpdateParams, type WidgetListParams as WidgetListParams, type WidgetDeleteParams as WidgetDeleteParams, type WidgetArchiveParams as WidgetArchiveParams, type WidgetUnarchiveParams as WidgetUnarchiveParams, };
224
- }
225
- //# sourceMappingURL=widgets.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"widgets.d.ts","sourceRoot":"","sources":["../src/resources/widgets.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,KAAK,MAAM,oBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,8BAA2B;AAEhG,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;;;GAIG;AAC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H,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
@@ -1,83 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Widgets = void 0;
5
- const resource_1 = require("../core/resource.js");
6
- const pagination_1 = require("../core/pagination.js");
7
- const headers_1 = require("../internal/headers.js");
8
- const path_1 = require("../internal/utils/path.js");
9
- /**
10
- * Manage embeddable chat widgets. A widget binds an agent to a globally
11
- * unique hostname with a per-widget origin allowlist; browsers reach it with
12
- * session tokens minted via WidgetSessionService.
13
- */
14
- class Widgets extends resource_1.APIResource {
15
- /**
16
- * Creates a widget bound to an agent. The widget's DNS label and hostname are
17
- * generated by the server and returned in `info`. The hostname may take up to a
18
- * minute to become reachable while the edge propagates.
19
- */
20
- create(params, options) {
21
- const { workspaceId = this._client.workspaceID, ...body } = params;
22
- return this._client.post((0, path_1.path) `/v1/workspaces/${workspaceId}/widgets`, { body, ...options });
23
- }
24
- /**
25
- * Retrieves a widget by ID
26
- */
27
- retrieve(id, params = {}, options) {
28
- const { workspaceId = this._client.workspaceID } = params ?? {};
29
- return this._client.get((0, path_1.path) `/v1/workspaces/${workspaceId}/widgets/${id}`, options);
30
- }
31
- /**
32
- * Updates a widget's metadata or spec. The DNS label is immutable and cannot be
33
- * updated. Re-pointing the agent affects new sessions only; in-flight
34
- * conversations finish against the agent they started with.
35
- */
36
- update(id, params, options) {
37
- const { workspaceId = this._client.workspaceID, ...body } = params;
38
- return this._client.patch((0, path_1.path) `/v1/workspaces/${workspaceId}/widgets/${id}`, { body, ...options });
39
- }
40
- /**
41
- * Lists all widgets in a workspace
42
- */
43
- list(params = {}, options) {
44
- const { workspaceId = this._client.workspaceID, ...query } = params ?? {};
45
- return this._client.getAPIList((0, path_1.path) `/v1/workspaces/${workspaceId}/widgets`, (pagination_1.CursorPagination), {
46
- query,
47
- ...options,
48
- });
49
- }
50
- /**
51
- * Deletes a widget. Its hostname stops serving and all of its sessions are
52
- * revoked.
53
- */
54
- delete(id, params = {}, options) {
55
- const { workspaceId = this._client.workspaceID } = params ?? {};
56
- return this._client.delete((0, path_1.path) `/v1/workspaces/${workspaceId}/widgets/${id}`, {
57
- ...options,
58
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
59
- });
60
- }
61
- /**
62
- * Transitions a widget to STATE_ARCHIVED. The hostname stops serving at the edge,
63
- * existing sessions are revoked, and no new sessions can be minted. Reversible via
64
- * :unarchive.
65
- */
66
- archive(id, params, options) {
67
- const { workspaceId = this._client.workspaceID, ...body } = params;
68
- return this._client.post((0, path_1.path) `/v1/workspaces/${workspaceId}/widgets/${id}:archive`, { body, ...options });
69
- }
70
- /**
71
- * Transitions an archived widget back to STATE_ACTIVE so its hostname serves
72
- * traffic again. Sessions revoked by archival stay revoked; mint new ones.
73
- */
74
- unarchive(id, params, options) {
75
- const { workspaceId = this._client.workspaceID, ...body } = params;
76
- return this._client.post((0, path_1.path) `/v1/workspaces/${workspaceId}/widgets/${id}:unarchive`, {
77
- body,
78
- ...options,
79
- });
80
- }
81
- }
82
- exports.Widgets = Widgets;
83
- //# sourceMappingURL=widgets.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"widgets.js","sourceRoot":"","sources":["../src/resources/widgets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,sDAAgG;AAChG,oDAAmD;AAEnD,oDAA8C;AAE9C;;;;GAIG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;OAIG;IACH,MAAM,CAAC,MAA0B,EAAE,OAAwB;QACzD,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,kBAAkB,WAAW,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,SAAkD,EAAE,EACpD,OAAwB;QAExB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,WAAW,YAAY,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,EAAU,EAAE,MAA0B,EAAE,OA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,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,kBAAkB,WAAW,YAAY,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5G,CAAC;IAED;;;OAGG;IACH,SAAS,CAAC,EAAU,EAAE,MAA6B,EAAE,OAAwB;QAC3E,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,kBAAkB,WAAW,YAAY,EAAE,YAAY,EAAE;YACpF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AApFD,0BAoFC"}
@@ -1,79 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../core/resource.mjs";
3
- import { CursorPagination } from "../core/pagination.mjs";
4
- import { buildHeaders } from "../internal/headers.mjs";
5
- import { path } from "../internal/utils/path.mjs";
6
- /**
7
- * Manage embeddable chat widgets. A widget binds an agent to a globally
8
- * unique hostname with a per-widget origin allowlist; browsers reach it with
9
- * session tokens minted via WidgetSessionService.
10
- */
11
- export class Widgets extends APIResource {
12
- /**
13
- * Creates a widget bound to an agent. The widget's DNS label and hostname are
14
- * generated by the server and returned in `info`. The hostname may take up to a
15
- * minute to become reachable while the edge propagates.
16
- */
17
- create(params, options) {
18
- const { workspaceId = this._client.workspaceID, ...body } = params;
19
- return this._client.post(path `/v1/workspaces/${workspaceId}/widgets`, { body, ...options });
20
- }
21
- /**
22
- * Retrieves a widget by ID
23
- */
24
- retrieve(id, params = {}, options) {
25
- const { workspaceId = this._client.workspaceID } = params ?? {};
26
- return this._client.get(path `/v1/workspaces/${workspaceId}/widgets/${id}`, options);
27
- }
28
- /**
29
- * Updates a widget's metadata or spec. The DNS label is immutable and cannot be
30
- * updated. Re-pointing the agent affects new sessions only; in-flight
31
- * conversations finish against the agent they started with.
32
- */
33
- update(id, params, options) {
34
- const { workspaceId = this._client.workspaceID, ...body } = params;
35
- return this._client.patch(path `/v1/workspaces/${workspaceId}/widgets/${id}`, { body, ...options });
36
- }
37
- /**
38
- * Lists all widgets in a workspace
39
- */
40
- list(params = {}, options) {
41
- const { workspaceId = this._client.workspaceID, ...query } = params ?? {};
42
- return this._client.getAPIList(path `/v1/workspaces/${workspaceId}/widgets`, (CursorPagination), {
43
- query,
44
- ...options,
45
- });
46
- }
47
- /**
48
- * Deletes a widget. Its hostname stops serving and all of its sessions are
49
- * revoked.
50
- */
51
- delete(id, params = {}, options) {
52
- const { workspaceId = this._client.workspaceID } = params ?? {};
53
- return this._client.delete(path `/v1/workspaces/${workspaceId}/widgets/${id}`, {
54
- ...options,
55
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
56
- });
57
- }
58
- /**
59
- * Transitions a widget to STATE_ARCHIVED. The hostname stops serving at the edge,
60
- * existing sessions are revoked, and no new sessions can be minted. Reversible via
61
- * :unarchive.
62
- */
63
- archive(id, params, options) {
64
- const { workspaceId = this._client.workspaceID, ...body } = params;
65
- return this._client.post(path `/v1/workspaces/${workspaceId}/widgets/${id}:archive`, { body, ...options });
66
- }
67
- /**
68
- * Transitions an archived widget back to STATE_ACTIVE so its hostname serves
69
- * traffic again. Sessions revoked by archival stay revoked; mint new ones.
70
- */
71
- unarchive(id, params, options) {
72
- const { workspaceId = this._client.workspaceID, ...body } = params;
73
- return this._client.post(path `/v1/workspaces/${workspaceId}/widgets/${id}:unarchive`, {
74
- body,
75
- ...options,
76
- });
77
- }
78
- }
79
- //# sourceMappingURL=widgets.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"widgets.mjs","sourceRoot":"","sources":["../src/resources/widgets.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,OAAO,EAAE,gBAAgB,EAA4C,+BAA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@ -1,4 +0,0 @@
1
- export { Members, type MemberListParams, type MemberAddParams, type MemberRemoveParams } from "./members.mjs";
2
- export { Profiles, type ProfileListParams } from "./profiles.mjs";
3
- export { WorkspaceAdmin, type WorkspaceMember, type WorkspaceAdminCreateParams, type WorkspaceAdminRetrieveParams, type WorkspaceAdminUpdateParams, type WorkspaceAdminListParams, type WorkspaceAdminArchiveParams, type WorkspaceMembersCursorPagination, } from "./workspace-admin.mjs";
4
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/workspace-admin/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,KAAK,kBAAkB,EAAE,sBAAkB;AAC1G,OAAO,EAAE,QAAQ,EAAE,KAAK,iBAAiB,EAAE,uBAAmB;AAC9D,OAAO,EACL,cAAc,EACd,KAAK,eAAe,EACpB,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,gCAAgC,GACtC,8BAA0B"}
@@ -1,4 +0,0 @@
1
- export { Members, type MemberListParams, type MemberAddParams, type MemberRemoveParams } from "./members.js";
2
- export { Profiles, type ProfileListParams } from "./profiles.js";
3
- export { WorkspaceAdmin, type WorkspaceMember, type WorkspaceAdminCreateParams, type WorkspaceAdminRetrieveParams, type WorkspaceAdminUpdateParams, type WorkspaceAdminListParams, type WorkspaceAdminArchiveParams, type WorkspaceMembersCursorPagination, } from "./workspace-admin.js";
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/workspace-admin/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,KAAK,kBAAkB,EAAE,qBAAkB;AAC1G,OAAO,EAAE,QAAQ,EAAE,KAAK,iBAAiB,EAAE,sBAAmB;AAC9D,OAAO,EACL,cAAc,EACd,KAAK,eAAe,EACpB,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,gCAAgC,GACtC,6BAA0B"}