@tambo-ai/typescript-sdk 0.31.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 (291) hide show
  1. package/CHANGELOG.md +389 -0
  2. package/LICENSE +201 -0
  3. package/README.md +434 -0
  4. package/_shims/MultipartBody.d.ts +9 -0
  5. package/_shims/MultipartBody.d.ts.map +1 -0
  6. package/_shims/MultipartBody.js +16 -0
  7. package/_shims/MultipartBody.js.map +1 -0
  8. package/_shims/MultipartBody.mjs +12 -0
  9. package/_shims/MultipartBody.mjs.map +1 -0
  10. package/_shims/README.md +46 -0
  11. package/_shims/auto/runtime-bun.d.ts +5 -0
  12. package/_shims/auto/runtime-bun.d.ts.map +1 -0
  13. package/_shims/auto/runtime-bun.js +21 -0
  14. package/_shims/auto/runtime-bun.js.map +1 -0
  15. package/_shims/auto/runtime-bun.mjs +2 -0
  16. package/_shims/auto/runtime-bun.mjs.map +1 -0
  17. package/_shims/auto/runtime-node.d.ts +5 -0
  18. package/_shims/auto/runtime-node.d.ts.map +1 -0
  19. package/_shims/auto/runtime-node.js +21 -0
  20. package/_shims/auto/runtime-node.js.map +1 -0
  21. package/_shims/auto/runtime-node.mjs +2 -0
  22. package/_shims/auto/runtime-node.mjs.map +1 -0
  23. package/_shims/auto/runtime.d.ts +5 -0
  24. package/_shims/auto/runtime.d.ts.map +1 -0
  25. package/_shims/auto/runtime.js +21 -0
  26. package/_shims/auto/runtime.js.map +1 -0
  27. package/_shims/auto/runtime.mjs +2 -0
  28. package/_shims/auto/runtime.mjs.map +1 -0
  29. package/_shims/auto/types-node.d.ts +5 -0
  30. package/_shims/auto/types-node.d.ts.map +1 -0
  31. package/_shims/auto/types-node.js +21 -0
  32. package/_shims/auto/types-node.js.map +1 -0
  33. package/_shims/auto/types-node.mjs +2 -0
  34. package/_shims/auto/types-node.mjs.map +1 -0
  35. package/_shims/auto/types.d.ts +101 -0
  36. package/_shims/auto/types.js +3 -0
  37. package/_shims/auto/types.mjs +3 -0
  38. package/_shims/bun-runtime.d.ts +6 -0
  39. package/_shims/bun-runtime.d.ts.map +1 -0
  40. package/_shims/bun-runtime.js +14 -0
  41. package/_shims/bun-runtime.js.map +1 -0
  42. package/_shims/bun-runtime.mjs +10 -0
  43. package/_shims/bun-runtime.mjs.map +1 -0
  44. package/_shims/index.d.ts +81 -0
  45. package/_shims/index.js +13 -0
  46. package/_shims/index.mjs +7 -0
  47. package/_shims/manual-types.d.ts +12 -0
  48. package/_shims/manual-types.js +3 -0
  49. package/_shims/manual-types.mjs +3 -0
  50. package/_shims/node-runtime.d.ts +3 -0
  51. package/_shims/node-runtime.d.ts.map +1 -0
  52. package/_shims/node-runtime.js +89 -0
  53. package/_shims/node-runtime.js.map +1 -0
  54. package/_shims/node-runtime.mjs +56 -0
  55. package/_shims/node-runtime.mjs.map +1 -0
  56. package/_shims/node-types.d.ts +42 -0
  57. package/_shims/node-types.js +3 -0
  58. package/_shims/node-types.mjs +3 -0
  59. package/_shims/registry.d.ts +37 -0
  60. package/_shims/registry.d.ts.map +1 -0
  61. package/_shims/registry.js +41 -0
  62. package/_shims/registry.js.map +1 -0
  63. package/_shims/registry.mjs +37 -0
  64. package/_shims/registry.mjs.map +1 -0
  65. package/_shims/web-runtime.d.ts +5 -0
  66. package/_shims/web-runtime.d.ts.map +1 -0
  67. package/_shims/web-runtime.js +78 -0
  68. package/_shims/web-runtime.js.map +1 -0
  69. package/_shims/web-runtime.mjs +71 -0
  70. package/_shims/web-runtime.mjs.map +1 -0
  71. package/_shims/web-types.d.ts +83 -0
  72. package/_shims/web-types.js +3 -0
  73. package/_shims/web-types.mjs +3 -0
  74. package/core.d.ts +241 -0
  75. package/core.d.ts.map +1 -0
  76. package/core.js +914 -0
  77. package/core.js.map +1 -0
  78. package/core.mjs +882 -0
  79. package/core.mjs.map +1 -0
  80. package/error.d.ts +47 -0
  81. package/error.d.ts.map +1 -0
  82. package/error.js +113 -0
  83. package/error.js.map +1 -0
  84. package/error.mjs +97 -0
  85. package/error.mjs.map +1 -0
  86. package/index.d.mts +124 -0
  87. package/index.d.ts +124 -0
  88. package/index.d.ts.map +1 -0
  89. package/index.js +140 -0
  90. package/index.js.map +1 -0
  91. package/index.mjs +94 -0
  92. package/index.mjs.map +1 -0
  93. package/lib/advance-stream.d.ts +5 -0
  94. package/lib/advance-stream.d.ts.map +1 -0
  95. package/lib/advance-stream.js +35 -0
  96. package/lib/advance-stream.js.map +1 -0
  97. package/lib/advance-stream.mjs +31 -0
  98. package/lib/advance-stream.mjs.map +1 -0
  99. package/lib/streaming-components.d.ts +7 -0
  100. package/lib/streaming-components.d.ts.map +1 -0
  101. package/lib/streaming-components.js +48 -0
  102. package/lib/streaming-components.js.map +1 -0
  103. package/lib/streaming-components.mjs +43 -0
  104. package/lib/streaming-components.mjs.map +1 -0
  105. package/package.json +122 -0
  106. package/pagination.d.ts +20 -0
  107. package/pagination.d.ts.map +1 -0
  108. package/pagination.js +46 -0
  109. package/pagination.js.map +1 -0
  110. package/pagination.mjs +42 -0
  111. package/pagination.mjs.map +1 -0
  112. package/resource.d.ts +6 -0
  113. package/resource.d.ts.map +1 -0
  114. package/resource.js +11 -0
  115. package/resource.js.map +1 -0
  116. package/resource.mjs +7 -0
  117. package/resource.mjs.map +1 -0
  118. package/resources/beta/beta.d.ts +22 -0
  119. package/resources/beta/beta.d.ts.map +1 -0
  120. package/resources/beta/beta.js +52 -0
  121. package/resources/beta/beta.js.map +1 -0
  122. package/resources/beta/beta.mjs +25 -0
  123. package/resources/beta/beta.mjs.map +1 -0
  124. package/resources/beta/components.d.ts +44 -0
  125. package/resources/beta/components.d.ts.map +1 -0
  126. package/resources/beta/components.js +29 -0
  127. package/resources/beta/components.js.map +1 -0
  128. package/resources/beta/components.mjs +25 -0
  129. package/resources/beta/components.mjs.map +1 -0
  130. package/resources/beta/index.d.ts +6 -0
  131. package/resources/beta/index.d.ts.map +1 -0
  132. package/resources/beta/index.js +16 -0
  133. package/resources/beta/index.js.map +1 -0
  134. package/resources/beta/index.mjs +7 -0
  135. package/resources/beta/index.mjs.map +1 -0
  136. package/resources/beta/projects/api-key.d.ts +24 -0
  137. package/resources/beta/projects/api-key.d.ts.map +1 -0
  138. package/resources/beta/projects/api-key.js +18 -0
  139. package/resources/beta/projects/api-key.js.map +1 -0
  140. package/resources/beta/projects/api-key.mjs +14 -0
  141. package/resources/beta/projects/api-key.mjs.map +1 -0
  142. package/resources/beta/projects/index.d.ts +5 -0
  143. package/resources/beta/projects/index.d.ts.map +1 -0
  144. package/resources/beta/projects/index.js +13 -0
  145. package/resources/beta/projects/index.js.map +1 -0
  146. package/resources/beta/projects/index.mjs +6 -0
  147. package/resources/beta/projects/index.mjs.map +1 -0
  148. package/resources/beta/projects/projects.d.ts +52 -0
  149. package/resources/beta/projects/projects.d.ts.map +1 -0
  150. package/resources/beta/projects/projects.js +62 -0
  151. package/resources/beta/projects/projects.js.map +1 -0
  152. package/resources/beta/projects/projects.mjs +35 -0
  153. package/resources/beta/projects/projects.mjs.map +1 -0
  154. package/resources/beta/projects/provider-key.d.ts +34 -0
  155. package/resources/beta/projects/provider-key.d.ts.map +1 -0
  156. package/resources/beta/projects/provider-key.js +18 -0
  157. package/resources/beta/projects/provider-key.js.map +1 -0
  158. package/resources/beta/projects/provider-key.mjs +14 -0
  159. package/resources/beta/projects/provider-key.mjs.map +1 -0
  160. package/resources/beta/projects/user.d.ts +17 -0
  161. package/resources/beta/projects/user.d.ts.map +1 -0
  162. package/resources/beta/projects/user.js +12 -0
  163. package/resources/beta/projects/user.js.map +1 -0
  164. package/resources/beta/projects/user.mjs +8 -0
  165. package/resources/beta/projects/user.mjs.map +1 -0
  166. package/resources/beta/registry.d.ts +10 -0
  167. package/resources/beta/registry.d.ts.map +1 -0
  168. package/resources/beta/registry.js +12 -0
  169. package/resources/beta/registry.js.map +1 -0
  170. package/resources/beta/registry.mjs +8 -0
  171. package/resources/beta/registry.mjs.map +1 -0
  172. package/resources/beta/threads/index.d.ts +4 -0
  173. package/resources/beta/threads/index.d.ts.map +1 -0
  174. package/resources/beta/threads/index.js +12 -0
  175. package/resources/beta/threads/index.js.map +1 -0
  176. package/resources/beta/threads/index.mjs +5 -0
  177. package/resources/beta/threads/index.mjs.map +1 -0
  178. package/resources/beta/threads/messages.d.ts +42 -0
  179. package/resources/beta/threads/messages.d.ts.map +1 -0
  180. package/resources/beta/threads/messages.js +28 -0
  181. package/resources/beta/threads/messages.js.map +1 -0
  182. package/resources/beta/threads/messages.mjs +24 -0
  183. package/resources/beta/threads/messages.mjs.map +1 -0
  184. package/resources/beta/threads/suggestions.d.ts +55 -0
  185. package/resources/beta/threads/suggestions.d.ts.map +1 -0
  186. package/resources/beta/threads/suggestions.js +21 -0
  187. package/resources/beta/threads/suggestions.js.map +1 -0
  188. package/resources/beta/threads/suggestions.mjs +17 -0
  189. package/resources/beta/threads/suggestions.mjs.map +1 -0
  190. package/resources/beta/threads/threads.d.ts +161 -0
  191. package/resources/beta/threads/threads.d.ts.map +1 -0
  192. package/resources/beta/threads/threads.js +79 -0
  193. package/resources/beta/threads/threads.js.map +1 -0
  194. package/resources/beta/threads/threads.mjs +51 -0
  195. package/resources/beta/threads/threads.mjs.map +1 -0
  196. package/resources/components.d.ts +57 -0
  197. package/resources/components.d.ts.map +1 -0
  198. package/resources/components.js +15 -0
  199. package/resources/components.js.map +1 -0
  200. package/resources/components.mjs +11 -0
  201. package/resources/components.mjs.map +1 -0
  202. package/resources/index.d.ts +4 -0
  203. package/resources/index.d.ts.map +1 -0
  204. package/resources/index.js +24 -0
  205. package/resources/index.js.map +1 -0
  206. package/resources/index.mjs +5 -0
  207. package/resources/index.mjs.map +1 -0
  208. package/resources/shared.d.ts +38 -0
  209. package/resources/shared.d.ts.map +1 -0
  210. package/resources/shared.js +4 -0
  211. package/resources/shared.js.map +1 -0
  212. package/resources/shared.mjs +3 -0
  213. package/resources/shared.mjs.map +1 -0
  214. package/shims/node.d.ts +30 -0
  215. package/shims/node.d.ts.map +1 -0
  216. package/shims/node.js +31 -0
  217. package/shims/node.js.map +1 -0
  218. package/shims/node.mjs +5 -0
  219. package/shims/node.mjs.map +1 -0
  220. package/shims/web.d.ts +26 -0
  221. package/shims/web.d.ts.map +1 -0
  222. package/shims/web.js +31 -0
  223. package/shims/web.js.map +1 -0
  224. package/shims/web.mjs +5 -0
  225. package/shims/web.mjs.map +1 -0
  226. package/src/_shims/MultipartBody.ts +9 -0
  227. package/src/_shims/README.md +46 -0
  228. package/src/_shims/auto/runtime-bun.ts +4 -0
  229. package/src/_shims/auto/runtime-node.ts +4 -0
  230. package/src/_shims/auto/runtime.ts +4 -0
  231. package/src/_shims/auto/types-node.ts +4 -0
  232. package/src/_shims/auto/types.d.ts +101 -0
  233. package/src/_shims/auto/types.js +3 -0
  234. package/src/_shims/auto/types.mjs +3 -0
  235. package/src/_shims/bun-runtime.ts +14 -0
  236. package/src/_shims/index.d.ts +81 -0
  237. package/src/_shims/index.js +13 -0
  238. package/src/_shims/index.mjs +7 -0
  239. package/src/_shims/manual-types.d.ts +12 -0
  240. package/src/_shims/manual-types.js +3 -0
  241. package/src/_shims/manual-types.mjs +3 -0
  242. package/src/_shims/node-runtime.ts +81 -0
  243. package/src/_shims/node-types.d.ts +42 -0
  244. package/src/_shims/node-types.js +3 -0
  245. package/src/_shims/node-types.mjs +3 -0
  246. package/src/_shims/registry.ts +67 -0
  247. package/src/_shims/web-runtime.ts +103 -0
  248. package/src/_shims/web-types.d.ts +83 -0
  249. package/src/_shims/web-types.js +3 -0
  250. package/src/_shims/web-types.mjs +3 -0
  251. package/src/core.ts +1208 -0
  252. package/src/error.ts +130 -0
  253. package/src/index.ts +229 -0
  254. package/src/lib/.keep +4 -0
  255. package/src/lib/advance-stream.ts +47 -0
  256. package/src/lib/streaming-components.ts +71 -0
  257. package/src/pagination.ts +73 -0
  258. package/src/resource.ts +11 -0
  259. package/src/resources/beta/beta.ts +96 -0
  260. package/src/resources/beta/components.ts +97 -0
  261. package/src/resources/beta/index.ts +38 -0
  262. package/src/resources/beta/projects/api-key.ts +48 -0
  263. package/src/resources/beta/projects/index.ts +26 -0
  264. package/src/resources/beta/projects/projects.ts +121 -0
  265. package/src/resources/beta/projects/provider-key.ts +71 -0
  266. package/src/resources/beta/projects/user.ts +26 -0
  267. package/src/resources/beta/registry.ts +16 -0
  268. package/src/resources/beta/threads/index.ts +32 -0
  269. package/src/resources/beta/threads/messages.ts +100 -0
  270. package/src/resources/beta/threads/suggestions.ts +89 -0
  271. package/src/resources/beta/threads/threads.ts +379 -0
  272. package/src/resources/components.ts +105 -0
  273. package/src/resources/index.ts +12 -0
  274. package/src/resources/shared.ts +59 -0
  275. package/src/shims/node.ts +50 -0
  276. package/src/shims/web.ts +50 -0
  277. package/src/tsconfig.json +16 -0
  278. package/src/uploads.ts +255 -0
  279. package/src/version.ts +1 -0
  280. package/uploads.d.ts +75 -0
  281. package/uploads.d.ts.map +1 -0
  282. package/uploads.js +171 -0
  283. package/uploads.js.map +1 -0
  284. package/uploads.mjs +158 -0
  285. package/uploads.mjs.map +1 -0
  286. package/version.d.ts +2 -0
  287. package/version.d.ts.map +1 -0
  288. package/version.js +5 -0
  289. package/version.js.map +1 -0
  290. package/version.mjs +2 -0
  291. package/version.mjs.map +1 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.js","sourceRoot":"","sources":["src/pagination.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAA0F;AAgB1F,MAAa,cAAqB,SAAQ,mBAAkB;IAO1D,YACE,MAAiB,EACjB,QAAkB,EAClB,IAAkC,EAClC,OAA4B;QAE5B,KAAK,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEvC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QAC9B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,CAAC,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;IAC1B,CAAC;IAED,kDAAkD;IAClD,cAAc;QACZ,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QACjC,IAAI,CAAC,IAAI;YAAE,OAAO,IAAI,CAAC;QACvB,IAAI,QAAQ,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC,MAAM,CAAC;QACzC,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QACzD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QAC7C,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,YAAY;QACV,MAAM,MAAM,GAAI,IAAI,CAAC,OAAO,CAAC,KAA8B,CAAC,MAAM,IAAI,CAAC,CAAC;QACxE,IAAI,CAAC,MAAM,EAAE;YACX,OAAO,IAAI,CAAC;SACb;QAED,MAAM,MAAM,GAAG,IAAI,CAAC,iBAAiB,EAAE,CAAC,MAAM,CAAC;QAC/C,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC;QAErC,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC;QAC9B,IAAI,CAAC,UAAU,EAAE;YACf,OAAO,IAAI,CAAC;SACb;QAED,IAAI,YAAY,GAAG,UAAU,EAAE;YAC7B,OAAO,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,CAAC;SAC7C;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAtDD,wCAsDC"}
package/pagination.mjs ADDED
@@ -0,0 +1,42 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { AbstractPage } from "./core.mjs";
3
+ export class OffsetAndLimit extends AbstractPage {
4
+ constructor(client, response, body, options) {
5
+ super(client, response, body, options);
6
+ this.items = body.items || [];
7
+ this.total = body.total || 0;
8
+ this.count = body.count || 0;
9
+ }
10
+ getPaginatedItems() {
11
+ return this.items ?? [];
12
+ }
13
+ // @deprecated Please use `nextPageInfo()` instead
14
+ nextPageParams() {
15
+ const info = this.nextPageInfo();
16
+ if (!info)
17
+ return null;
18
+ if ('params' in info)
19
+ return info.params;
20
+ const params = Object.fromEntries(info.url.searchParams);
21
+ if (!Object.keys(params).length)
22
+ return null;
23
+ return params;
24
+ }
25
+ nextPageInfo() {
26
+ const offset = this.options.query.offset ?? 0;
27
+ if (!offset) {
28
+ return null;
29
+ }
30
+ const length = this.getPaginatedItems().length;
31
+ const currentCount = offset + length;
32
+ const totalCount = this.total;
33
+ if (!totalCount) {
34
+ return null;
35
+ }
36
+ if (currentCount < totalCount) {
37
+ return { params: { offset: currentCount } };
38
+ }
39
+ return null;
40
+ }
41
+ }
42
+ //# sourceMappingURL=pagination.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.mjs","sourceRoot":"","sources":["src/pagination.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,YAAY,EAAsD;AAgB3E,MAAM,OAAO,cAAqB,SAAQ,YAAkB;IAO1D,YACE,MAAiB,EACjB,QAAkB,EAClB,IAAkC,EAClC,OAA4B;QAE5B,KAAK,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEvC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QAC9B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,CAAC,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;IAC1B,CAAC;IAED,kDAAkD;IAClD,cAAc;QACZ,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QACjC,IAAI,CAAC,IAAI;YAAE,OAAO,IAAI,CAAC;QACvB,IAAI,QAAQ,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC,MAAM,CAAC;QACzC,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QACzD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QAC7C,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,YAAY;QACV,MAAM,MAAM,GAAI,IAAI,CAAC,OAAO,CAAC,KAA8B,CAAC,MAAM,IAAI,CAAC,CAAC;QACxE,IAAI,CAAC,MAAM,EAAE;YACX,OAAO,IAAI,CAAC;SACb;QAED,MAAM,MAAM,GAAG,IAAI,CAAC,iBAAiB,EAAE,CAAC,MAAM,CAAC;QAC/C,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC;QAErC,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC;QAC9B,IAAI,CAAC,UAAU,EAAE;YACf,OAAO,IAAI,CAAC;SACb;QAED,IAAI,YAAY,GAAG,UAAU,EAAE;YAC7B,OAAO,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,CAAC;SAC7C;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
package/resource.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import type { TamboAI } from "./index.js";
2
+ export declare class APIResource {
3
+ protected _client: TamboAI;
4
+ constructor(client: TamboAI);
5
+ }
6
+ //# sourceMappingURL=resource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,qBAAa,WAAW;IACtB,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC;gBAEf,MAAM,EAAE,OAAO;CAG5B"}
package/resource.js ADDED
@@ -0,0 +1,11 @@
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.APIResource = void 0;
5
+ class APIResource {
6
+ constructor(client) {
7
+ this._client = client;
8
+ }
9
+ }
10
+ exports.APIResource = APIResource;
11
+ //# sourceMappingURL=resource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource.js","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAItF,MAAa,WAAW;IAGtB,YAAY,MAAe;QACzB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;CACF;AAND,kCAMC"}
package/resource.mjs ADDED
@@ -0,0 +1,7 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export class APIResource {
3
+ constructor(client) {
4
+ this._client = client;
5
+ }
6
+ }
7
+ //# sourceMappingURL=resource.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource.mjs","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAItF,MAAM,OAAO,WAAW;IAGtB,YAAY,MAAe;QACzB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;CACF"}
@@ -0,0 +1,22 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as ComponentsAPI from "./components.js";
3
+ import { ComponentGenerateParams, ComponentGenerateResponse, ComponentGenerateStreamParams, ComponentHydrateParams, ComponentHydrateResponse, ComponentHydrateStreamParams, Components } from "./components.js";
4
+ import * as RegistryAPI from "./registry.js";
5
+ import { Registry, RegistryRetrieveResponse } from "./registry.js";
6
+ import * as ProjectsAPI from "./projects/projects.js";
7
+ import { ProjectCreateParams, ProjectCreateResponse, ProjectDeleteResponse, ProjectGetCurrentResponse, ProjectRetrieveResponse, ProjectUpdateParams, ProjectUpdateResponse, Projects } from "./projects/projects.js";
8
+ import * as ThreadsAPI from "./threads/threads.js";
9
+ import { ChatCompletionContentPart, Thread, ThreadAdvanceByIDParams, ThreadAdvanceByIDResponse, ThreadAdvanceParams, ThreadAdvanceResponse, ThreadCreateParams, ThreadListParams, ThreadMessage, ThreadRetrieveResponse, ThreadUpdateParams, Threads, ThreadsOffsetAndLimit } from "./threads/threads.js";
10
+ export declare class Beta extends APIResource {
11
+ components: ComponentsAPI.Components;
12
+ registry: RegistryAPI.Registry;
13
+ projects: ProjectsAPI.Projects;
14
+ threads: ThreadsAPI.Threads;
15
+ }
16
+ export declare namespace Beta {
17
+ export { Components as Components, type ComponentGenerateResponse as ComponentGenerateResponse, type ComponentHydrateResponse as ComponentHydrateResponse, type ComponentGenerateParams as ComponentGenerateParams, type ComponentGenerateStreamParams as ComponentGenerateStreamParams, type ComponentHydrateParams as ComponentHydrateParams, type ComponentHydrateStreamParams as ComponentHydrateStreamParams, };
18
+ export { Registry as Registry, type RegistryRetrieveResponse as RegistryRetrieveResponse };
19
+ export { Projects as Projects, type ProjectCreateResponse as ProjectCreateResponse, type ProjectRetrieveResponse as ProjectRetrieveResponse, type ProjectUpdateResponse as ProjectUpdateResponse, type ProjectDeleteResponse as ProjectDeleteResponse, type ProjectGetCurrentResponse as ProjectGetCurrentResponse, type ProjectCreateParams as ProjectCreateParams, type ProjectUpdateParams as ProjectUpdateParams, };
20
+ export { Threads as Threads, type ChatCompletionContentPart as ChatCompletionContentPart, type Thread as Thread, type ThreadMessage as ThreadMessage, type ThreadRetrieveResponse as ThreadRetrieveResponse, type ThreadAdvanceResponse as ThreadAdvanceResponse, type ThreadAdvanceByIDResponse as ThreadAdvanceByIDResponse, ThreadsOffsetAndLimit as ThreadsOffsetAndLimit, type ThreadCreateParams as ThreadCreateParams, type ThreadUpdateParams as ThreadUpdateParams, type ThreadListParams as ThreadListParams, type ThreadAdvanceParams as ThreadAdvanceParams, type ThreadAdvanceByIDParams as ThreadAdvanceByIDParams, };
21
+ }
22
+ //# sourceMappingURL=beta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"beta.d.ts","sourceRoot":"","sources":["../../src/resources/beta/beta.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,aAAa,MAAM,cAAc,CAAC;AAC9C,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,6BAA6B,EAC7B,sBAAsB,EACtB,wBAAwB,EACxB,4BAA4B,EAC5B,UAAU,EACX,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,WAAW,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AACnD,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,yBAAyB,EACzB,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,QAAQ,EACT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,EACL,yBAAyB,EACzB,MAAM,EACN,uBAAuB,EACvB,yBAAyB,EACzB,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,sBAAsB,EACtB,kBAAkB,EAClB,OAAO,EACP,qBAAqB,EACtB,MAAM,mBAAmB,CAAC;AAE3B,qBAAa,IAAK,SAAQ,WAAW;IACnC,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;IAClF,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;CACpE;AAQD,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,UAAU,IAAI,UAAU,EACxB,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;IAEF,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,KAAK,wBAAwB,IAAI,wBAAwB,EAAE,CAAC;IAE3F,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,qBAAqB,IAAI,qBAAqB,EAC9C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || function (mod) {
20
+ if (mod && mod.__esModule) return mod;
21
+ var result = {};
22
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
23
+ __setModuleDefault(result, mod);
24
+ return result;
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.Beta = void 0;
28
+ const resource_1 = require("../../resource.js");
29
+ const ComponentsAPI = __importStar(require("./components.js"));
30
+ const components_1 = require("./components.js");
31
+ const RegistryAPI = __importStar(require("./registry.js"));
32
+ const registry_1 = require("./registry.js");
33
+ const ProjectsAPI = __importStar(require("./projects/projects.js"));
34
+ const projects_1 = require("./projects/projects.js");
35
+ const ThreadsAPI = __importStar(require("./threads/threads.js"));
36
+ const threads_1 = require("./threads/threads.js");
37
+ class Beta extends resource_1.APIResource {
38
+ constructor() {
39
+ super(...arguments);
40
+ this.components = new ComponentsAPI.Components(this._client);
41
+ this.registry = new RegistryAPI.Registry(this._client);
42
+ this.projects = new ProjectsAPI.Projects(this._client);
43
+ this.threads = new ThreadsAPI.Threads(this._client);
44
+ }
45
+ }
46
+ exports.Beta = Beta;
47
+ Beta.Components = components_1.Components;
48
+ Beta.Registry = registry_1.Registry;
49
+ Beta.Projects = projects_1.Projects;
50
+ Beta.Threads = threads_1.Threads;
51
+ Beta.ThreadsOffsetAndLimit = threads_1.ThreadsOffsetAndLimit;
52
+ //# sourceMappingURL=beta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"beta.js","sourceRoot":"","sources":["../../src/resources/beta/beta.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,+DAA8C;AAC9C,gDAQsB;AACtB,2DAA0C;AAC1C,4CAAgE;AAChE,oEAAmD;AACnD,qDAS6B;AAC7B,iEAAgD;AAChD,kDAc2B;AAE3B,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;CAAA;AALD,oBAKC;AAED,IAAI,CAAC,UAAU,GAAG,uBAAU,CAAC;AAC7B,IAAI,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AACzB,IAAI,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AACzB,IAAI,CAAC,OAAO,GAAG,iBAAO,CAAC;AACvB,IAAI,CAAC,qBAAqB,GAAG,+BAAqB,CAAC"}
@@ -0,0 +1,25 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../resource.mjs";
3
+ import * as ComponentsAPI from "./components.mjs";
4
+ import { Components, } from "./components.mjs";
5
+ import * as RegistryAPI from "./registry.mjs";
6
+ import { Registry } from "./registry.mjs";
7
+ import * as ProjectsAPI from "./projects/projects.mjs";
8
+ import { Projects, } from "./projects/projects.mjs";
9
+ import * as ThreadsAPI from "./threads/threads.mjs";
10
+ import { Threads, ThreadsOffsetAndLimit, } from "./threads/threads.mjs";
11
+ export class Beta extends APIResource {
12
+ constructor() {
13
+ super(...arguments);
14
+ this.components = new ComponentsAPI.Components(this._client);
15
+ this.registry = new RegistryAPI.Registry(this._client);
16
+ this.projects = new ProjectsAPI.Projects(this._client);
17
+ this.threads = new ThreadsAPI.Threads(this._client);
18
+ }
19
+ }
20
+ Beta.Components = Components;
21
+ Beta.Registry = Registry;
22
+ Beta.Projects = Projects;
23
+ Beta.Threads = Threads;
24
+ Beta.ThreadsOffsetAndLimit = ThreadsOffsetAndLimit;
25
+ //# sourceMappingURL=beta.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"beta.mjs","sourceRoot":"","sources":["../../src/resources/beta/beta.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EAOL,UAAU,GACX;OACM,KAAK,WAAW;OAChB,EAAE,QAAQ,EAA4B;OACtC,KAAK,WAAW;OAChB,EAQL,QAAQ,GACT;OACM,KAAK,UAAU;OACf,EAYL,OAAO,EACP,qBAAqB,GACtB;AAED,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;CAAA;AAED,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;AAC7B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACzB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;AACvB,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC"}
@@ -0,0 +1,44 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
+ import * as Shared from "../shared.js";
4
+ import * as ThreadsAPI from "./threads/threads.js";
5
+ export declare class Components extends APIResource {
6
+ generate(body: ComponentGenerateParams, options?: Core.RequestOptions): Core.APIPromise<ComponentGenerateResponse>;
7
+ generateStream(body: ComponentGenerateStreamParams, options?: Core.RequestOptions): Core.APIPromise<void>;
8
+ hydrate(body: ComponentHydrateParams, options?: Core.RequestOptions): Core.APIPromise<ComponentHydrateResponse>;
9
+ hydrateStream(body: ComponentHydrateStreamParams, options?: Core.RequestOptions): Core.APIPromise<void>;
10
+ }
11
+ export interface ComponentGenerateResponse {
12
+ message: ThreadsAPI.ThreadMessage;
13
+ }
14
+ export interface ComponentHydrateResponse {
15
+ message: ThreadsAPI.ThreadMessage;
16
+ }
17
+ export interface ComponentGenerateParams {
18
+ availableComponents: Array<Shared.AvailableComponent>;
19
+ content: Array<ThreadsAPI.ChatCompletionContentPart>;
20
+ contextKey?: string;
21
+ threadId?: string;
22
+ }
23
+ export interface ComponentGenerateStreamParams {
24
+ availableComponents: Array<Shared.AvailableComponent>;
25
+ content: Array<ThreadsAPI.ChatCompletionContentPart>;
26
+ contextKey?: string;
27
+ threadId?: string;
28
+ }
29
+ export interface ComponentHydrateParams {
30
+ component: Shared.AvailableComponent;
31
+ threadId: string;
32
+ contextKey?: string;
33
+ toolResponse?: unknown;
34
+ }
35
+ export interface ComponentHydrateStreamParams {
36
+ component: Shared.AvailableComponent;
37
+ threadId: string;
38
+ contextKey?: string;
39
+ toolResponse?: unknown;
40
+ }
41
+ export declare namespace Components {
42
+ export { type ComponentGenerateResponse as ComponentGenerateResponse, type ComponentHydrateResponse as ComponentHydrateResponse, type ComponentGenerateParams as ComponentGenerateParams, type ComponentGenerateStreamParams as ComponentGenerateStreamParams, type ComponentHydrateParams as ComponentHydrateParams, type ComponentHydrateStreamParams as ComponentHydrateStreamParams, };
43
+ }
44
+ //# sourceMappingURL=components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/resources/beta/components.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAEhD,qBAAa,UAAW,SAAQ,WAAW;IACzC,QAAQ,CACN,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,yBAAyB,CAAC;IAI7C,cAAc,CAAC,IAAI,EAAE,6BAA6B,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IAQzG,OAAO,CACL,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC;IAI5C,aAAa,CAAC,IAAI,EAAE,4BAA4B,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;CAOxG;AAED,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,UAAU,CAAC,aAAa,CAAC;CACnC;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,UAAU,CAAC,aAAa,CAAC;CACnC;AAED,MAAM,WAAW,uBAAuB;IACtC,mBAAmB,EAAE,KAAK,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAEtD,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,yBAAyB,CAAC,CAAC;IAErD,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,6BAA6B;IAC5C,mBAAmB,EAAE,KAAK,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAEtD,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,yBAAyB,CAAC,CAAC;IAErD,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC,kBAAkB,CAAC;IAErC,QAAQ,EAAE,MAAM,CAAC;IAEjB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,4BAA4B;IAC3C,SAAS,EAAE,MAAM,CAAC,kBAAkB,CAAC;IAErC,QAAQ,EAAE,MAAM,CAAC;IAEjB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
@@ -0,0 +1,29 @@
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.Components = void 0;
5
+ const resource_1 = require("../../resource.js");
6
+ class Components extends resource_1.APIResource {
7
+ generate(body, options) {
8
+ return this._client.post('/components/generate2', { body, ...options });
9
+ }
10
+ generateStream(body, options) {
11
+ return this._client.post('/components/generatestream', {
12
+ body,
13
+ ...options,
14
+ headers: { Accept: '*/*', ...options?.headers },
15
+ });
16
+ }
17
+ hydrate(body, options) {
18
+ return this._client.post('/components/hydrate2', { body, ...options });
19
+ }
20
+ hydrateStream(body, options) {
21
+ return this._client.post('/components/hydratestream', {
22
+ body,
23
+ ...options,
24
+ headers: { Accept: '*/*', ...options?.headers },
25
+ });
26
+ }
27
+ }
28
+ exports.Components = Components;
29
+ //# sourceMappingURL=components.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components.js","sourceRoot":"","sources":["../../src/resources/beta/components.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAK7C,MAAa,UAAW,SAAQ,sBAAW;IACzC,QAAQ,CACN,IAA6B,EAC7B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED,cAAc,CAAC,IAAmC,EAAE,OAA6B;QAC/E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE;YACrD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED,OAAO,CACL,IAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED,aAAa,CAAC,IAAkC,EAAE,OAA6B;QAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE;YACpD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AA9BD,gCA8BC"}
@@ -0,0 +1,25 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../resource.mjs";
3
+ export class Components extends APIResource {
4
+ generate(body, options) {
5
+ return this._client.post('/components/generate2', { body, ...options });
6
+ }
7
+ generateStream(body, options) {
8
+ return this._client.post('/components/generatestream', {
9
+ body,
10
+ ...options,
11
+ headers: { Accept: '*/*', ...options?.headers },
12
+ });
13
+ }
14
+ hydrate(body, options) {
15
+ return this._client.post('/components/hydrate2', { body, ...options });
16
+ }
17
+ hydrateStream(body, options) {
18
+ return this._client.post('/components/hydratestream', {
19
+ body,
20
+ ...options,
21
+ headers: { Accept: '*/*', ...options?.headers },
22
+ });
23
+ }
24
+ }
25
+ //# sourceMappingURL=components.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components.mjs","sourceRoot":"","sources":["../../src/resources/beta/components.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC,QAAQ,CACN,IAA6B,EAC7B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED,cAAc,CAAC,IAAmC,EAAE,OAA6B;QAC/E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE;YACrD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED,OAAO,CACL,IAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED,aAAa,CAAC,IAAkC,EAAE,OAA6B;QAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE;YACpD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,6 @@
1
+ export { Beta } from "./beta.js";
2
+ export { Components, type ComponentGenerateResponse, type ComponentHydrateResponse, type ComponentGenerateParams, type ComponentGenerateStreamParams, type ComponentHydrateParams, type ComponentHydrateStreamParams, } from "./components.js";
3
+ export { Projects, type ProjectCreateResponse, type ProjectRetrieveResponse, type ProjectUpdateResponse, type ProjectDeleteResponse, type ProjectGetCurrentResponse, type ProjectCreateParams, type ProjectUpdateParams, } from "./projects/index.js";
4
+ export { Registry, type RegistryRetrieveResponse } from "./registry.js";
5
+ export { ThreadsOffsetAndLimit, Threads, type ChatCompletionContentPart, type Thread, type ThreadMessage, type ThreadRetrieveResponse, type ThreadAdvanceResponse, type ThreadAdvanceByIDResponse, type ThreadCreateParams, type ThreadUpdateParams, type ThreadListParams, type ThreadAdvanceParams, type ThreadAdvanceByIDParams, } from "./threads/index.js";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/beta/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EACL,UAAU,EACV,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,4BAA4B,GAClC,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,KAAK,wBAAwB,EAAE,MAAM,YAAY,CAAC;AACrE,OAAO,EACL,qBAAqB,EACrB,OAAO,EACP,KAAK,yBAAyB,EAC9B,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,GAC7B,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,16 @@
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.Threads = exports.ThreadsOffsetAndLimit = exports.Registry = exports.Projects = exports.Components = exports.Beta = void 0;
5
+ var beta_1 = require("./beta.js");
6
+ Object.defineProperty(exports, "Beta", { enumerable: true, get: function () { return beta_1.Beta; } });
7
+ var components_1 = require("./components.js");
8
+ Object.defineProperty(exports, "Components", { enumerable: true, get: function () { return components_1.Components; } });
9
+ var index_1 = require("./projects/index.js");
10
+ Object.defineProperty(exports, "Projects", { enumerable: true, get: function () { return index_1.Projects; } });
11
+ var registry_1 = require("./registry.js");
12
+ Object.defineProperty(exports, "Registry", { enumerable: true, get: function () { return registry_1.Registry; } });
13
+ var index_2 = require("./threads/index.js");
14
+ Object.defineProperty(exports, "ThreadsOffsetAndLimit", { enumerable: true, get: function () { return index_2.ThreadsOffsetAndLimit; } });
15
+ Object.defineProperty(exports, "Threads", { enumerable: true, get: function () { return index_2.Threads; } });
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/beta/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,8CAQsB;AAPpB,wGAAA,UAAU,OAAA;AAQZ,6CAS0B;AARxB,iGAAA,QAAQ,OAAA;AASV,0CAAqE;AAA5D,oGAAA,QAAQ,OAAA;AACjB,4CAcyB;AAbvB,8GAAA,qBAAqB,OAAA;AACrB,gGAAA,OAAO,OAAA"}
@@ -0,0 +1,7 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Beta } from "./beta.mjs";
3
+ export { Components, } from "./components.mjs";
4
+ export { Projects, } from "./projects/index.mjs";
5
+ export { Registry } from "./registry.mjs";
6
+ export { ThreadsOffsetAndLimit, Threads, } from "./threads/index.mjs";
7
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/beta/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAE;OACR,EACL,UAAU,GAOX;OACM,EACL,QAAQ,GAQT;OACM,EAAE,QAAQ,EAAiC;OAC3C,EACL,qBAAqB,EACrB,OAAO,GAYR"}
@@ -0,0 +1,24 @@
1
+ import { APIResource } from "../../../resource.js";
2
+ import * as Core from "../../../core.js";
3
+ export declare class APIKey extends APIResource {
4
+ update(id: string, name: string, options?: Core.RequestOptions): Core.APIPromise<string>;
5
+ list(id: string, options?: Core.RequestOptions): Core.APIPromise<APIKeyListResponse>;
6
+ delete(id: string, apiKeyId: string, options?: Core.RequestOptions): Core.APIPromise<APIKeyDeleteResponse>;
7
+ }
8
+ export type APIKeyUpdateResponse = string;
9
+ export type APIKeyListResponse = Array<APIKeyListResponse.APIKeyListResponseItem>;
10
+ export declare namespace APIKeyListResponse {
11
+ interface APIKeyListResponseItem {
12
+ id?: string;
13
+ created?: string;
14
+ createdByUserId?: string;
15
+ lastUsed?: string;
16
+ name?: string;
17
+ partiallyHiddenKey?: string;
18
+ }
19
+ }
20
+ export type APIKeyDeleteResponse = boolean;
21
+ export declare namespace APIKey {
22
+ export { type APIKeyUpdateResponse as APIKeyUpdateResponse, type APIKeyListResponse as APIKeyListResponse, type APIKeyDeleteResponse as APIKeyDeleteResponse, };
23
+ }
24
+ //# sourceMappingURL=api-key.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-key.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/projects/api-key.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AAEtC,qBAAa,MAAO,SAAQ,WAAW;IACrC,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;IAIxF,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAIpF,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;CAG3G;AAED,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAE1C,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,CAAC;AAElF,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,sBAAsB;QACrC,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB,eAAe,CAAC,EAAE,MAAM,CAAC;QAEzB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd,kBAAkB,CAAC,EAAE,MAAM,CAAC;KAC7B;CACF;AAED,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC;AAE3C,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -0,0 +1,18 @@
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.APIKey = void 0;
5
+ const resource_1 = require("../../../resource.js");
6
+ class APIKey extends resource_1.APIResource {
7
+ update(id, name, options) {
8
+ return this._client.put(`/projects/${id}/api-key/${name}`, options);
9
+ }
10
+ list(id, options) {
11
+ return this._client.get(`/projects/${id}/api-keys`, options);
12
+ }
13
+ delete(id, apiKeyId, options) {
14
+ return this._client.delete(`/projects/${id}/api-key/${apiKeyId}`, options);
15
+ }
16
+ }
17
+ exports.APIKey = APIKey;
18
+ //# sourceMappingURL=api-key.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-key.js","sourceRoot":"","sources":["../../../src/resources/beta/projects/api-key.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mDAAgD;AAGhD,MAAa,MAAO,SAAQ,sBAAW;IACrC,MAAM,CAAC,EAAU,EAAE,IAAY,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,YAAY,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED,IAAI,CAAC,EAAU,EAAE,OAA6B;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,QAAgB,EAAE,OAA6B;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,YAAY,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;CACF;AAZD,wBAYC"}
@@ -0,0 +1,14 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../../resource.mjs";
3
+ export class APIKey extends APIResource {
4
+ update(id, name, options) {
5
+ return this._client.put(`/projects/${id}/api-key/${name}`, options);
6
+ }
7
+ list(id, options) {
8
+ return this._client.get(`/projects/${id}/api-keys`, options);
9
+ }
10
+ delete(id, apiKeyId, options) {
11
+ return this._client.delete(`/projects/${id}/api-key/${apiKeyId}`, options);
12
+ }
13
+ }
14
+ //# sourceMappingURL=api-key.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-key.mjs","sourceRoot":"","sources":["../../../src/resources/beta/projects/api-key.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC,MAAM,CAAC,EAAU,EAAE,IAAY,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,YAAY,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED,IAAI,CAAC,EAAU,EAAE,OAA6B;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,QAAgB,EAAE,OAA6B;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,YAAY,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;CACF"}
@@ -0,0 +1,5 @@
1
+ export { APIKey, type APIKeyUpdateResponse, type APIKeyListResponse, type APIKeyDeleteResponse, } from "./api-key.js";
2
+ export { Projects, type ProjectCreateResponse, type ProjectRetrieveResponse, type ProjectUpdateResponse, type ProjectDeleteResponse, type ProjectGetCurrentResponse, type ProjectCreateParams, type ProjectUpdateParams, } from "./projects.js";
3
+ export { ProviderKey, type ProviderKeyUpdateResponse, type ProviderKeyListResponse, type ProviderKeyDeleteResponse, type ProviderKeyUpdateParams, } from "./provider-key.js";
4
+ export { User, type UserListResponse } from "./user.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/projects/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,GAC1B,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,WAAW,EACX,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,GAC7B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC"}
@@ -0,0 +1,13 @@
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.User = exports.ProviderKey = exports.Projects = exports.APIKey = void 0;
5
+ var api_key_1 = require("./api-key.js");
6
+ Object.defineProperty(exports, "APIKey", { enumerable: true, get: function () { return api_key_1.APIKey; } });
7
+ var projects_1 = require("./projects.js");
8
+ Object.defineProperty(exports, "Projects", { enumerable: true, get: function () { return projects_1.Projects; } });
9
+ var provider_key_1 = require("./provider-key.js");
10
+ Object.defineProperty(exports, "ProviderKey", { enumerable: true, get: function () { return provider_key_1.ProviderKey; } });
11
+ var user_1 = require("./user.js");
12
+ Object.defineProperty(exports, "User", { enumerable: true, get: function () { return user_1.User; } });
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/beta/projects/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAKmB;AAJjB,iGAAA,MAAM,OAAA;AAKR,0CASoB;AARlB,oGAAA,QAAQ,OAAA;AASV,kDAMwB;AALtB,2GAAA,WAAW,OAAA;AAMb,kCAAqD;AAA5C,4FAAA,IAAI,OAAA"}
@@ -0,0 +1,6 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { APIKey, } from "./api-key.mjs";
3
+ export { Projects, } from "./projects.mjs";
4
+ export { ProviderKey, } from "./provider-key.mjs";
5
+ export { User } from "./user.mjs";
6
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/beta/projects/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,MAAM,GAIP;OACM,EACL,QAAQ,GAQT;OACM,EACL,WAAW,GAKZ;OACM,EAAE,IAAI,EAAyB"}
@@ -0,0 +1,52 @@
1
+ import { APIResource } from "../../../resource.js";
2
+ import * as Core from "../../../core.js";
3
+ import * as APIKeyAPI from "./api-key.js";
4
+ import { APIKey, APIKeyDeleteResponse, APIKeyListResponse, APIKeyUpdateResponse } from "./api-key.js";
5
+ import * as ProviderKeyAPI from "./provider-key.js";
6
+ import { ProviderKey, ProviderKeyDeleteResponse, ProviderKeyListResponse, ProviderKeyUpdateParams, ProviderKeyUpdateResponse } from "./provider-key.js";
7
+ import * as UserAPI from "./user.js";
8
+ import { User, UserListResponse } from "./user.js";
9
+ export declare class Projects extends APIResource {
10
+ user: UserAPI.User;
11
+ apiKey: APIKeyAPI.APIKey;
12
+ providerKey: ProviderKeyAPI.ProviderKey;
13
+ create(body: ProjectCreateParams, options?: Core.RequestOptions): Core.APIPromise<ProjectCreateResponse>;
14
+ retrieve(id: string, options?: Core.RequestOptions): Core.APIPromise<ProjectRetrieveResponse>;
15
+ update(id: string, body: ProjectUpdateParams, options?: Core.RequestOptions): Core.APIPromise<ProjectUpdateResponse>;
16
+ delete(id: string, options?: Core.RequestOptions): Core.APIPromise<ProjectDeleteResponse>;
17
+ getCurrent(options?: Core.RequestOptions): Core.APIPromise<ProjectGetCurrentResponse>;
18
+ }
19
+ export interface ProjectCreateResponse {
20
+ id: string;
21
+ name: string;
22
+ userId: string;
23
+ }
24
+ export interface ProjectRetrieveResponse {
25
+ id: string;
26
+ name: string;
27
+ userId: string;
28
+ }
29
+ export interface ProjectUpdateResponse {
30
+ id: string;
31
+ name: string;
32
+ userId: string;
33
+ }
34
+ export type ProjectDeleteResponse = boolean;
35
+ export interface ProjectGetCurrentResponse {
36
+ id: string;
37
+ name: string;
38
+ userId: string;
39
+ }
40
+ export interface ProjectCreateParams {
41
+ projectName: string;
42
+ }
43
+ export interface ProjectUpdateParams {
44
+ name: string;
45
+ }
46
+ export declare namespace Projects {
47
+ export { type ProjectCreateResponse as ProjectCreateResponse, type ProjectRetrieveResponse as ProjectRetrieveResponse, type ProjectUpdateResponse as ProjectUpdateResponse, type ProjectDeleteResponse as ProjectDeleteResponse, type ProjectGetCurrentResponse as ProjectGetCurrentResponse, type ProjectCreateParams as ProjectCreateParams, type ProjectUpdateParams as ProjectUpdateParams, };
48
+ export { User as User, type UserListResponse as UserListResponse };
49
+ export { APIKey as APIKey, type APIKeyUpdateResponse as APIKeyUpdateResponse, type APIKeyListResponse as APIKeyListResponse, type APIKeyDeleteResponse as APIKeyDeleteResponse, };
50
+ export { ProviderKey as ProviderKey, type ProviderKeyUpdateResponse as ProviderKeyUpdateResponse, type ProviderKeyListResponse as ProviderKeyListResponse, type ProviderKeyDeleteResponse as ProviderKeyDeleteResponse, type ProviderKeyUpdateParams as ProviderKeyUpdateParams, };
51
+ }
52
+ //# sourceMappingURL=projects.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/projects/projects.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AACtC,OAAO,KAAK,SAAS,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACnG,OAAO,KAAK,cAAc,MAAM,gBAAgB,CAAC;AACjD,OAAO,EACL,WAAW,EACX,yBAAyB,EACzB,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EAC1B,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,OAAO,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAEhD,qBAAa,QAAS,SAAQ,WAAW;IACvC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IAEvF,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAIxG,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,uBAAuB,CAAC;IAI7F,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,mBAAmB,EACzB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAIzC,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAIzF,UAAU,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,yBAAyB,CAAC;CAGtF;AAED,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,MAAM,CAAC;IAEb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,MAAM,CAAC;IAEb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,MAAM,CAAC;IAEb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,qBAAqB,GAAG,OAAO,CAAC;AAE5C,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,MAAM,CAAC;IAEb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;CACd;AAMD,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;IAEnE,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || function (mod) {
20
+ if (mod && mod.__esModule) return mod;
21
+ var result = {};
22
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
23
+ __setModuleDefault(result, mod);
24
+ return result;
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.Projects = void 0;
28
+ const resource_1 = require("../../../resource.js");
29
+ const APIKeyAPI = __importStar(require("./api-key.js"));
30
+ const api_key_1 = require("./api-key.js");
31
+ const ProviderKeyAPI = __importStar(require("./provider-key.js"));
32
+ const provider_key_1 = require("./provider-key.js");
33
+ const UserAPI = __importStar(require("./user.js"));
34
+ const user_1 = require("./user.js");
35
+ class Projects extends resource_1.APIResource {
36
+ constructor() {
37
+ super(...arguments);
38
+ this.user = new UserAPI.User(this._client);
39
+ this.apiKey = new APIKeyAPI.APIKey(this._client);
40
+ this.providerKey = new ProviderKeyAPI.ProviderKey(this._client);
41
+ }
42
+ create(body, options) {
43
+ return this._client.post('/projects', { body, ...options });
44
+ }
45
+ retrieve(id, options) {
46
+ return this._client.get(`/projects/${id}`, options);
47
+ }
48
+ update(id, body, options) {
49
+ return this._client.patch(`/projects/${id}`, { body, ...options });
50
+ }
51
+ delete(id, options) {
52
+ return this._client.delete(`/projects/${id}`, options);
53
+ }
54
+ getCurrent(options) {
55
+ return this._client.get('/projects', options);
56
+ }
57
+ }
58
+ exports.Projects = Projects;
59
+ Projects.User = user_1.User;
60
+ Projects.APIKey = api_key_1.APIKey;
61
+ Projects.ProviderKey = provider_key_1.ProviderKey;
62
+ //# sourceMappingURL=projects.js.map