@puku-ai/sdk 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 (336) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +251 -0
  3. package/dist/index.cjs +7 -0
  4. package/dist/index.d.ts +23 -0
  5. package/dist/index.d.ts.map +1 -0
  6. package/dist/index.js +26 -0
  7. package/dist/index.js.map +1 -0
  8. package/dist/vendor/_vendor/partial-json-parser/parser.d.ts +3 -0
  9. package/dist/vendor/_vendor/partial-json-parser/parser.d.ts.map +1 -0
  10. package/dist/vendor/_vendor/partial-json-parser/parser.js +223 -0
  11. package/dist/vendor/_vendor/partial-json-parser/parser.js.map +1 -0
  12. package/dist/vendor/api-promise.d.ts +3 -0
  13. package/dist/vendor/api-promise.d.ts.map +1 -0
  14. package/dist/vendor/api-promise.js +3 -0
  15. package/dist/vendor/api-promise.js.map +1 -0
  16. package/dist/vendor/client.d.ts +248 -0
  17. package/dist/vendor/client.d.ts.map +1 -0
  18. package/dist/vendor/client.js +567 -0
  19. package/dist/vendor/client.js.map +1 -0
  20. package/dist/vendor/core/api-promise.d.ts +49 -0
  21. package/dist/vendor/core/api-promise.d.ts.map +1 -0
  22. package/dist/vendor/core/api-promise.js +72 -0
  23. package/dist/vendor/core/api-promise.js.map +1 -0
  24. package/dist/vendor/core/error.d.ts +50 -0
  25. package/dist/vendor/core/error.d.ts.map +1 -0
  26. package/dist/vendor/core/error.js +109 -0
  27. package/dist/vendor/core/error.js.map +1 -0
  28. package/dist/vendor/core/pagination.d.ts +105 -0
  29. package/dist/vendor/core/pagination.d.ts.map +1 -0
  30. package/dist/vendor/core/pagination.js +188 -0
  31. package/dist/vendor/core/pagination.js.map +1 -0
  32. package/dist/vendor/core/resource.d.ts +6 -0
  33. package/dist/vendor/core/resource.d.ts.map +1 -0
  34. package/dist/vendor/core/resource.js +8 -0
  35. package/dist/vendor/core/resource.js.map +1 -0
  36. package/dist/vendor/core/streaming.d.ts +33 -0
  37. package/dist/vendor/core/streaming.d.ts.map +1 -0
  38. package/dist/vendor/core/streaming.js +288 -0
  39. package/dist/vendor/core/streaming.js.map +1 -0
  40. package/dist/vendor/core/uploads.d.ts +3 -0
  41. package/dist/vendor/core/uploads.d.ts.map +1 -0
  42. package/dist/vendor/core/uploads.js +2 -0
  43. package/dist/vendor/core/uploads.js.map +1 -0
  44. package/dist/vendor/error.d.ts +3 -0
  45. package/dist/vendor/error.d.ts.map +1 -0
  46. package/dist/vendor/error.js +3 -0
  47. package/dist/vendor/error.js.map +1 -0
  48. package/dist/vendor/helpers/beta/json-schema.d.ts +31 -0
  49. package/dist/vendor/helpers/beta/json-schema.d.ts.map +1 -0
  50. package/dist/vendor/helpers/beta/json-schema.js +52 -0
  51. package/dist/vendor/helpers/beta/json-schema.js.map +1 -0
  52. package/dist/vendor/helpers/beta/mcp.d.ts +303 -0
  53. package/dist/vendor/helpers/beta/mcp.d.ts.map +1 -0
  54. package/dist/vendor/helpers/beta/mcp.js +406 -0
  55. package/dist/vendor/helpers/beta/mcp.js.map +1 -0
  56. package/dist/vendor/helpers/beta/memory.d.ts +11 -0
  57. package/dist/vendor/helpers/beta/memory.d.ts.map +1 -0
  58. package/dist/vendor/helpers/beta/memory.js +15 -0
  59. package/dist/vendor/helpers/beta/memory.js.map +1 -0
  60. package/dist/vendor/helpers/beta/zod.d.ts +7 -0
  61. package/dist/vendor/helpers/beta/zod.d.ts.map +1 -0
  62. package/dist/vendor/helpers/beta/zod.js +15 -0
  63. package/dist/vendor/helpers/beta/zod.js.map +1 -0
  64. package/dist/vendor/helpers/index.d.ts +3 -0
  65. package/dist/vendor/helpers/index.d.ts.map +1 -0
  66. package/dist/vendor/helpers/index.js +3 -0
  67. package/dist/vendor/helpers/index.js.map +1 -0
  68. package/dist/vendor/helpers/json-schema.d.ts +18 -0
  69. package/dist/vendor/helpers/json-schema.d.ts.map +1 -0
  70. package/dist/vendor/helpers/json-schema.js +34 -0
  71. package/dist/vendor/helpers/json-schema.js.map +1 -0
  72. package/dist/vendor/helpers/zod.d.ts +13 -0
  73. package/dist/vendor/helpers/zod.d.ts.map +1 -0
  74. package/dist/vendor/helpers/zod.js +21 -0
  75. package/dist/vendor/helpers/zod.js.map +1 -0
  76. package/dist/vendor/index.d.ts +8 -0
  77. package/dist/vendor/index.d.ts.map +1 -0
  78. package/dist/vendor/index.js +8 -0
  79. package/dist/vendor/index.js.map +1 -0
  80. package/dist/vendor/internal/builtin-types.d.ts +73 -0
  81. package/dist/vendor/internal/builtin-types.d.ts.map +1 -0
  82. package/dist/vendor/internal/builtin-types.js +3 -0
  83. package/dist/vendor/internal/builtin-types.js.map +1 -0
  84. package/dist/vendor/internal/constants.d.ts +5 -0
  85. package/dist/vendor/internal/constants.d.ts.map +1 -0
  86. package/dist/vendor/internal/constants.js +15 -0
  87. package/dist/vendor/internal/constants.js.map +1 -0
  88. package/dist/vendor/internal/decoders/jsonl.d.ts +10 -0
  89. package/dist/vendor/internal/decoders/jsonl.d.ts.map +1 -0
  90. package/dist/vendor/internal/decoders/jsonl.js +37 -0
  91. package/dist/vendor/internal/decoders/jsonl.js.map +1 -0
  92. package/dist/vendor/internal/decoders/line.d.ts +17 -0
  93. package/dist/vendor/internal/decoders/line.d.ts.map +1 -0
  94. package/dist/vendor/internal/decoders/line.js +105 -0
  95. package/dist/vendor/internal/decoders/line.js.map +1 -0
  96. package/dist/vendor/internal/detect-platform.d.ts +15 -0
  97. package/dist/vendor/internal/detect-platform.d.ts.map +1 -0
  98. package/dist/vendor/internal/detect-platform.js +157 -0
  99. package/dist/vendor/internal/detect-platform.js.map +1 -0
  100. package/dist/vendor/internal/errors.d.ts +3 -0
  101. package/dist/vendor/internal/errors.d.ts.map +1 -0
  102. package/dist/vendor/internal/errors.js +36 -0
  103. package/dist/vendor/internal/errors.js.map +1 -0
  104. package/dist/vendor/internal/headers.d.ts +22 -0
  105. package/dist/vendor/internal/headers.d.ts.map +1 -0
  106. package/dist/vendor/internal/headers.js +74 -0
  107. package/dist/vendor/internal/headers.js.map +1 -0
  108. package/dist/vendor/internal/parse.d.ts +17 -0
  109. package/dist/vendor/internal/parse.d.ts.map +1 -0
  110. package/dist/vendor/internal/parse.js +56 -0
  111. package/dist/vendor/internal/parse.js.map +1 -0
  112. package/dist/vendor/internal/request-options.d.ts +77 -0
  113. package/dist/vendor/internal/request-options.d.ts.map +1 -0
  114. package/dist/vendor/internal/request-options.js +10 -0
  115. package/dist/vendor/internal/request-options.js.map +1 -0
  116. package/dist/vendor/internal/shim-types.d.ts +17 -0
  117. package/dist/vendor/internal/shim-types.d.ts.map +1 -0
  118. package/dist/vendor/internal/shim-types.js +3 -0
  119. package/dist/vendor/internal/shim-types.js.map +1 -0
  120. package/dist/vendor/internal/shims.d.ts +26 -0
  121. package/dist/vendor/internal/shims.d.ts.map +1 -0
  122. package/dist/vendor/internal/shims.js +85 -0
  123. package/dist/vendor/internal/shims.js.map +1 -0
  124. package/dist/vendor/internal/stream-utils.d.ts +8 -0
  125. package/dist/vendor/internal/stream-utils.d.ts.map +1 -0
  126. package/dist/vendor/internal/stream-utils.js +35 -0
  127. package/dist/vendor/internal/stream-utils.js.map +1 -0
  128. package/dist/vendor/internal/to-file.d.ts +45 -0
  129. package/dist/vendor/internal/to-file.d.ts.map +1 -0
  130. package/dist/vendor/internal/to-file.js +93 -0
  131. package/dist/vendor/internal/to-file.js.map +1 -0
  132. package/dist/vendor/internal/types.d.ts +69 -0
  133. package/dist/vendor/internal/types.d.ts.map +1 -0
  134. package/dist/vendor/internal/types.js +3 -0
  135. package/dist/vendor/internal/types.js.map +1 -0
  136. package/dist/vendor/internal/uploads.d.ts +42 -0
  137. package/dist/vendor/internal/uploads.d.ts.map +1 -0
  138. package/dist/vendor/internal/uploads.js +135 -0
  139. package/dist/vendor/internal/uploads.js.map +1 -0
  140. package/dist/vendor/internal/utils/base64.d.ts +3 -0
  141. package/dist/vendor/internal/utils/base64.d.ts.map +1 -0
  142. package/dist/vendor/internal/utils/base64.js +33 -0
  143. package/dist/vendor/internal/utils/base64.js.map +1 -0
  144. package/dist/vendor/internal/utils/bytes.d.ts +4 -0
  145. package/dist/vendor/internal/utils/bytes.d.ts.map +1 -0
  146. package/dist/vendor/internal/utils/bytes.js +26 -0
  147. package/dist/vendor/internal/utils/bytes.js.map +1 -0
  148. package/dist/vendor/internal/utils/env.d.ts +9 -0
  149. package/dist/vendor/internal/utils/env.d.ts.map +1 -0
  150. package/dist/vendor/internal/utils/env.js +18 -0
  151. package/dist/vendor/internal/utils/env.js.map +1 -0
  152. package/dist/vendor/internal/utils/log.d.ts +37 -0
  153. package/dist/vendor/internal/utils/log.d.ts.map +1 -0
  154. package/dist/vendor/internal/utils/log.js +80 -0
  155. package/dist/vendor/internal/utils/log.js.map +1 -0
  156. package/dist/vendor/internal/utils/path.d.ts +15 -0
  157. package/dist/vendor/internal/utils/path.d.ts.map +1 -0
  158. package/dist/vendor/internal/utils/path.js +74 -0
  159. package/dist/vendor/internal/utils/path.js.map +1 -0
  160. package/dist/vendor/internal/utils/query.d.ts +5 -0
  161. package/dist/vendor/internal/utils/query.d.ts.map +1 -0
  162. package/dist/vendor/internal/utils/query.js +20 -0
  163. package/dist/vendor/internal/utils/query.js.map +1 -0
  164. package/dist/vendor/internal/utils/sleep.d.ts +2 -0
  165. package/dist/vendor/internal/utils/sleep.d.ts.map +1 -0
  166. package/dist/vendor/internal/utils/sleep.js +3 -0
  167. package/dist/vendor/internal/utils/sleep.js.map +1 -0
  168. package/dist/vendor/internal/utils/uuid.d.ts +5 -0
  169. package/dist/vendor/internal/utils/uuid.d.ts.map +1 -0
  170. package/dist/vendor/internal/utils/uuid.js +15 -0
  171. package/dist/vendor/internal/utils/uuid.js.map +1 -0
  172. package/dist/vendor/internal/utils/values.d.ts +19 -0
  173. package/dist/vendor/internal/utils/values.d.ts.map +1 -0
  174. package/dist/vendor/internal/utils/values.js +100 -0
  175. package/dist/vendor/internal/utils/values.js.map +1 -0
  176. package/dist/vendor/internal/utils.d.ts +8 -0
  177. package/dist/vendor/internal/utils.d.ts.map +1 -0
  178. package/dist/vendor/internal/utils.js +9 -0
  179. package/dist/vendor/internal/utils.js.map +1 -0
  180. package/dist/vendor/lib/BetaMessageStream.d.ts +122 -0
  181. package/dist/vendor/lib/BetaMessageStream.d.ts.map +1 -0
  182. package/dist/vendor/lib/BetaMessageStream.js +624 -0
  183. package/dist/vendor/lib/BetaMessageStream.js.map +1 -0
  184. package/dist/vendor/lib/MessageStream.d.ts +121 -0
  185. package/dist/vendor/lib/MessageStream.d.ts.map +1 -0
  186. package/dist/vendor/lib/MessageStream.js +599 -0
  187. package/dist/vendor/lib/MessageStream.js.map +1 -0
  188. package/dist/vendor/lib/beta-parser.d.ts +37 -0
  189. package/dist/vendor/lib/beta-parser.d.ts.map +1 -0
  190. package/dist/vendor/lib/beta-parser.js +75 -0
  191. package/dist/vendor/lib/beta-parser.js.map +1 -0
  192. package/dist/vendor/lib/parser.d.ts +32 -0
  193. package/dist/vendor/lib/parser.d.ts.map +1 -0
  194. package/dist/vendor/lib/parser.js +62 -0
  195. package/dist/vendor/lib/parser.js.map +1 -0
  196. package/dist/vendor/lib/stainless-helper-header.d.ts +34 -0
  197. package/dist/vendor/lib/stainless-helper-header.d.ts.map +1 -0
  198. package/dist/vendor/lib/stainless-helper-header.js +63 -0
  199. package/dist/vendor/lib/stainless-helper-header.js.map +1 -0
  200. package/dist/vendor/lib/tools/BetaRunnableTool.d.ts +12 -0
  201. package/dist/vendor/lib/tools/BetaRunnableTool.d.ts.map +1 -0
  202. package/dist/vendor/lib/tools/BetaRunnableTool.js +2 -0
  203. package/dist/vendor/lib/tools/BetaRunnableTool.js.map +1 -0
  204. package/dist/vendor/lib/tools/BetaToolRunner.d.ts +136 -0
  205. package/dist/vendor/lib/tools/BetaToolRunner.d.ts.map +1 -0
  206. package/dist/vendor/lib/tools/BetaToolRunner.js +370 -0
  207. package/dist/vendor/lib/tools/BetaToolRunner.js.map +1 -0
  208. package/dist/vendor/lib/tools/CompactionControl.d.ts +25 -0
  209. package/dist/vendor/lib/tools/CompactionControl.d.ts.map +1 -0
  210. package/dist/vendor/lib/tools/CompactionControl.js +25 -0
  211. package/dist/vendor/lib/tools/CompactionControl.js.map +1 -0
  212. package/dist/vendor/lib/tools/ToolError.d.ts +33 -0
  213. package/dist/vendor/lib/tools/ToolError.d.ts.map +1 -0
  214. package/dist/vendor/lib/tools/ToolError.js +43 -0
  215. package/dist/vendor/lib/tools/ToolError.js.map +1 -0
  216. package/dist/vendor/lib/tools/ToolRunner.d.ts +132 -0
  217. package/dist/vendor/lib/tools/ToolRunner.d.ts.map +1 -0
  218. package/dist/vendor/lib/tools/ToolRunner.js +287 -0
  219. package/dist/vendor/lib/tools/ToolRunner.js.map +1 -0
  220. package/dist/vendor/lib/transform-json-schema.d.ts +3 -0
  221. package/dist/vendor/lib/transform-json-schema.d.ts.map +1 -0
  222. package/dist/vendor/lib/transform-json-schema.js +111 -0
  223. package/dist/vendor/lib/transform-json-schema.js.map +1 -0
  224. package/dist/vendor/pagination.d.ts +3 -0
  225. package/dist/vendor/pagination.d.ts.map +1 -0
  226. package/dist/vendor/pagination.js +3 -0
  227. package/dist/vendor/pagination.js.map +1 -0
  228. package/dist/vendor/resource.d.ts +3 -0
  229. package/dist/vendor/resource.d.ts.map +1 -0
  230. package/dist/vendor/resource.js +3 -0
  231. package/dist/vendor/resource.js.map +1 -0
  232. package/dist/vendor/resources/beta/beta.d.ts +66 -0
  233. package/dist/vendor/resources/beta/beta.d.ts.map +1 -0
  234. package/dist/vendor/resources/beta/beta.js +21 -0
  235. package/dist/vendor/resources/beta/beta.js.map +1 -0
  236. package/dist/vendor/resources/beta/files.d.ts +151 -0
  237. package/dist/vendor/resources/beta/files.d.ts.map +1 -0
  238. package/dist/vendor/resources/beta/files.js +120 -0
  239. package/dist/vendor/resources/beta/files.js.map +1 -0
  240. package/dist/vendor/resources/beta/index.d.ts +6 -0
  241. package/dist/vendor/resources/beta/index.d.ts.map +1 -0
  242. package/dist/vendor/resources/beta/index.js +7 -0
  243. package/dist/vendor/resources/beta/index.js.map +1 -0
  244. package/dist/vendor/resources/beta/messages/batches.d.ts +646 -0
  245. package/dist/vendor/resources/beta/messages/batches.d.ts.map +1 -0
  246. package/dist/vendor/resources/beta/messages/batches.js +200 -0
  247. package/dist/vendor/resources/beta/messages/batches.js.map +1 -0
  248. package/dist/vendor/resources/beta/messages/index.d.ts +4 -0
  249. package/dist/vendor/resources/beta/messages/index.d.ts.map +1 -0
  250. package/dist/vendor/resources/beta/messages/index.js +5 -0
  251. package/dist/vendor/resources/beta/messages/index.js.map +1 -0
  252. package/dist/vendor/resources/beta/messages/messages.d.ts +2966 -0
  253. package/dist/vendor/resources/beta/messages/messages.d.ts.map +1 -0
  254. package/dist/vendor/resources/beta/messages/messages.js +153 -0
  255. package/dist/vendor/resources/beta/messages/messages.js.map +1 -0
  256. package/dist/vendor/resources/beta/messages.d.ts +2 -0
  257. package/dist/vendor/resources/beta/messages.d.ts.map +1 -0
  258. package/dist/vendor/resources/beta/messages.js +3 -0
  259. package/dist/vendor/resources/beta/messages.js.map +1 -0
  260. package/dist/vendor/resources/beta/models.d.ts +208 -0
  261. package/dist/vendor/resources/beta/models.d.ts.map +1 -0
  262. package/dist/vendor/resources/beta/models.js +56 -0
  263. package/dist/vendor/resources/beta/models.js.map +1 -0
  264. package/dist/vendor/resources/beta/skills/index.d.ts +3 -0
  265. package/dist/vendor/resources/beta/skills/index.d.ts.map +1 -0
  266. package/dist/vendor/resources/beta/skills/index.js +4 -0
  267. package/dist/vendor/resources/beta/skills/index.js.map +1 -0
  268. package/dist/vendor/resources/beta/skills/skills.d.ts +249 -0
  269. package/dist/vendor/resources/beta/skills/skills.d.ts.map +1 -0
  270. package/dist/vendor/resources/beta/skills/skills.js +90 -0
  271. package/dist/vendor/resources/beta/skills/skills.js.map +1 -0
  272. package/dist/vendor/resources/beta/skills/versions.d.ts +257 -0
  273. package/dist/vendor/resources/beta/skills/versions.d.ts.map +1 -0
  274. package/dist/vendor/resources/beta/skills/versions.js +96 -0
  275. package/dist/vendor/resources/beta/skills/versions.js.map +1 -0
  276. package/dist/vendor/resources/beta/skills.d.ts +2 -0
  277. package/dist/vendor/resources/beta/skills.d.ts.map +1 -0
  278. package/dist/vendor/resources/beta/skills.js +3 -0
  279. package/dist/vendor/resources/beta/skills.js.map +1 -0
  280. package/dist/vendor/resources/beta.d.ts +2 -0
  281. package/dist/vendor/resources/beta.d.ts.map +1 -0
  282. package/dist/vendor/resources/beta.js +3 -0
  283. package/dist/vendor/resources/beta.js.map +1 -0
  284. package/dist/vendor/resources/completions.d.ts +182 -0
  285. package/dist/vendor/resources/completions.d.ts.map +1 -0
  286. package/dist/vendor/resources/completions.js +19 -0
  287. package/dist/vendor/resources/completions.js.map +1 -0
  288. package/dist/vendor/resources/index.d.ts +6 -0
  289. package/dist/vendor/resources/index.d.ts.map +1 -0
  290. package/dist/vendor/resources/index.js +7 -0
  291. package/dist/vendor/resources/index.js.map +1 -0
  292. package/dist/vendor/resources/messages/batches.d.ts +304 -0
  293. package/dist/vendor/resources/messages/batches.d.ts.map +1 -0
  294. package/dist/vendor/resources/messages/batches.js +149 -0
  295. package/dist/vendor/resources/messages/batches.js.map +1 -0
  296. package/dist/vendor/resources/messages/index.d.ts +3 -0
  297. package/dist/vendor/resources/messages/index.d.ts.map +1 -0
  298. package/dist/vendor/resources/messages/index.js +4 -0
  299. package/dist/vendor/resources/messages/index.js.map +1 -0
  300. package/dist/vendor/resources/messages/messages.d.ts +2258 -0
  301. package/dist/vendor/resources/messages/messages.d.ts.map +1 -0
  302. package/dist/vendor/resources/messages/messages.js +120 -0
  303. package/dist/vendor/resources/messages/messages.js.map +1 -0
  304. package/dist/vendor/resources/messages.d.ts +2 -0
  305. package/dist/vendor/resources/messages.d.ts.map +1 -0
  306. package/dist/vendor/resources/messages.js +3 -0
  307. package/dist/vendor/resources/messages.js.map +1 -0
  308. package/dist/vendor/resources/models.d.ts +193 -0
  309. package/dist/vendor/resources/models.d.ts.map +1 -0
  310. package/dist/vendor/resources/models.js +41 -0
  311. package/dist/vendor/resources/models.js.map +1 -0
  312. package/dist/vendor/resources/shared.d.ts +44 -0
  313. package/dist/vendor/resources/shared.d.ts.map +1 -0
  314. package/dist/vendor/resources/shared.js +3 -0
  315. package/dist/vendor/resources/shared.js.map +1 -0
  316. package/dist/vendor/resources/top-level.d.ts +2 -0
  317. package/dist/vendor/resources/top-level.d.ts.map +1 -0
  318. package/dist/vendor/resources/top-level.js +3 -0
  319. package/dist/vendor/resources/top-level.js.map +1 -0
  320. package/dist/vendor/streaming.d.ts +3 -0
  321. package/dist/vendor/streaming.d.ts.map +1 -0
  322. package/dist/vendor/streaming.js +3 -0
  323. package/dist/vendor/streaming.js.map +1 -0
  324. package/dist/vendor/tools/memory/node.d.ts +18 -0
  325. package/dist/vendor/tools/memory/node.d.ts.map +1 -0
  326. package/dist/vendor/tools/memory/node.js +320 -0
  327. package/dist/vendor/tools/memory/node.js.map +1 -0
  328. package/dist/vendor/uploads.d.ts +3 -0
  329. package/dist/vendor/uploads.d.ts.map +1 -0
  330. package/dist/vendor/uploads.js +3 -0
  331. package/dist/vendor/uploads.js.map +1 -0
  332. package/dist/vendor/version.d.ts +2 -0
  333. package/dist/vendor/version.d.ts.map +1 -0
  334. package/dist/vendor/version.js +2 -0
  335. package/dist/vendor/version.js.map +1 -0
  336. package/package.json +66 -0
@@ -0,0 +1,249 @@
1
+ import { APIResource } from '../../../core/resource.js';
2
+ import * as BetaAPI from '../beta.js';
3
+ import * as VersionsAPI from './versions.js';
4
+ import { VersionCreateParams, VersionCreateResponse, VersionDeleteParams, VersionDeleteResponse, VersionListParams, VersionListResponse, VersionListResponsesPageCursor, VersionRetrieveParams, VersionRetrieveResponse, Versions } from './versions.js';
5
+ import { APIPromise } from '../../../core/api-promise.js';
6
+ import { PageCursor, type PageCursorParams, PagePromise } from '../../../core/pagination.js';
7
+ import { type Uploadable } from '../../../core/uploads.js';
8
+ import { RequestOptions } from '../../../internal/request-options.js';
9
+ export declare class Skills extends APIResource {
10
+ versions: VersionsAPI.Versions;
11
+ /**
12
+ * Create Skill
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const skill = await client.beta.skills.create();
17
+ * ```
18
+ */
19
+ create(params?: SkillCreateParams | null | undefined, options?: RequestOptions): APIPromise<SkillCreateResponse>;
20
+ /**
21
+ * Get Skill
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const skill = await client.beta.skills.retrieve('skill_id');
26
+ * ```
27
+ */
28
+ retrieve(skillID: string, params?: SkillRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<SkillRetrieveResponse>;
29
+ /**
30
+ * List Skills
31
+ *
32
+ * @example
33
+ * ```ts
34
+ * // Automatically fetches more pages as needed.
35
+ * for await (const skillListResponse of client.beta.skills.list()) {
36
+ * // ...
37
+ * }
38
+ * ```
39
+ */
40
+ list(params?: SkillListParams | null | undefined, options?: RequestOptions): PagePromise<SkillListResponsesPageCursor, SkillListResponse>;
41
+ /**
42
+ * Delete Skill
43
+ *
44
+ * @example
45
+ * ```ts
46
+ * const skill = await client.beta.skills.delete('skill_id');
47
+ * ```
48
+ */
49
+ delete(skillID: string, params?: SkillDeleteParams | null | undefined, options?: RequestOptions): APIPromise<SkillDeleteResponse>;
50
+ }
51
+ export type SkillListResponsesPageCursor = PageCursor<SkillListResponse>;
52
+ export interface SkillCreateResponse {
53
+ /**
54
+ * Unique identifier for the skill.
55
+ *
56
+ * The format and length of IDs may change over time.
57
+ */
58
+ id: string;
59
+ /**
60
+ * ISO 8601 timestamp of when the skill was created.
61
+ */
62
+ created_at: string;
63
+ /**
64
+ * Display title for the skill.
65
+ *
66
+ * This is a human-readable label that is not included in the prompt sent to the
67
+ * model.
68
+ */
69
+ display_title: string | null;
70
+ /**
71
+ * The latest version identifier for the skill.
72
+ *
73
+ * This represents the most recent version of the skill that has been created.
74
+ */
75
+ latest_version: string | null;
76
+ /**
77
+ * Source of the skill.
78
+ *
79
+ * This may be one of the following values:
80
+ *
81
+ * - `"custom"`: the skill was created by a user
82
+ * - `"anthropic"`: the skill was created by Anthropic
83
+ */
84
+ source: string;
85
+ /**
86
+ * Object type.
87
+ *
88
+ * For Skills, this is always `"skill"`.
89
+ */
90
+ type: string;
91
+ /**
92
+ * ISO 8601 timestamp of when the skill was last updated.
93
+ */
94
+ updated_at: string;
95
+ }
96
+ export interface SkillRetrieveResponse {
97
+ /**
98
+ * Unique identifier for the skill.
99
+ *
100
+ * The format and length of IDs may change over time.
101
+ */
102
+ id: string;
103
+ /**
104
+ * ISO 8601 timestamp of when the skill was created.
105
+ */
106
+ created_at: string;
107
+ /**
108
+ * Display title for the skill.
109
+ *
110
+ * This is a human-readable label that is not included in the prompt sent to the
111
+ * model.
112
+ */
113
+ display_title: string | null;
114
+ /**
115
+ * The latest version identifier for the skill.
116
+ *
117
+ * This represents the most recent version of the skill that has been created.
118
+ */
119
+ latest_version: string | null;
120
+ /**
121
+ * Source of the skill.
122
+ *
123
+ * This may be one of the following values:
124
+ *
125
+ * - `"custom"`: the skill was created by a user
126
+ * - `"anthropic"`: the skill was created by Anthropic
127
+ */
128
+ source: string;
129
+ /**
130
+ * Object type.
131
+ *
132
+ * For Skills, this is always `"skill"`.
133
+ */
134
+ type: string;
135
+ /**
136
+ * ISO 8601 timestamp of when the skill was last updated.
137
+ */
138
+ updated_at: string;
139
+ }
140
+ export interface SkillListResponse {
141
+ /**
142
+ * Unique identifier for the skill.
143
+ *
144
+ * The format and length of IDs may change over time.
145
+ */
146
+ id: string;
147
+ /**
148
+ * ISO 8601 timestamp of when the skill was created.
149
+ */
150
+ created_at: string;
151
+ /**
152
+ * Display title for the skill.
153
+ *
154
+ * This is a human-readable label that is not included in the prompt sent to the
155
+ * model.
156
+ */
157
+ display_title: string | null;
158
+ /**
159
+ * The latest version identifier for the skill.
160
+ *
161
+ * This represents the most recent version of the skill that has been created.
162
+ */
163
+ latest_version: string | null;
164
+ /**
165
+ * Source of the skill.
166
+ *
167
+ * This may be one of the following values:
168
+ *
169
+ * - `"custom"`: the skill was created by a user
170
+ * - `"anthropic"`: the skill was created by Anthropic
171
+ */
172
+ source: string;
173
+ /**
174
+ * Object type.
175
+ *
176
+ * For Skills, this is always `"skill"`.
177
+ */
178
+ type: string;
179
+ /**
180
+ * ISO 8601 timestamp of when the skill was last updated.
181
+ */
182
+ updated_at: string;
183
+ }
184
+ export interface SkillDeleteResponse {
185
+ /**
186
+ * Unique identifier for the skill.
187
+ *
188
+ * The format and length of IDs may change over time.
189
+ */
190
+ id: string;
191
+ /**
192
+ * Deleted object type.
193
+ *
194
+ * For Skills, this is always `"skill_deleted"`.
195
+ */
196
+ type: string;
197
+ }
198
+ export interface SkillCreateParams {
199
+ /**
200
+ * Body param: Display title for the skill.
201
+ *
202
+ * This is a human-readable label that is not included in the prompt sent to the
203
+ * model.
204
+ */
205
+ display_title?: string | null;
206
+ /**
207
+ * Body param: Files to upload for the skill.
208
+ *
209
+ * All files must be in the same top-level directory and must include a SKILL.md
210
+ * file at the root of that directory.
211
+ */
212
+ files?: Array<Uploadable> | null;
213
+ /**
214
+ * Header param: Optional header to specify the beta version(s) you want to use.
215
+ */
216
+ betas?: Array<BetaAPI.AnthropicBeta>;
217
+ }
218
+ export interface SkillRetrieveParams {
219
+ /**
220
+ * Optional header to specify the beta version(s) you want to use.
221
+ */
222
+ betas?: Array<BetaAPI.AnthropicBeta>;
223
+ }
224
+ export interface SkillListParams extends PageCursorParams {
225
+ /**
226
+ * Query param: Filter skills by source.
227
+ *
228
+ * If provided, only skills from the specified source will be returned:
229
+ *
230
+ * - `"custom"`: only return user-created skills
231
+ * - `"anthropic"`: only return Anthropic-created skills
232
+ */
233
+ source?: string | null;
234
+ /**
235
+ * Header param: Optional header to specify the beta version(s) you want to use.
236
+ */
237
+ betas?: Array<BetaAPI.AnthropicBeta>;
238
+ }
239
+ export interface SkillDeleteParams {
240
+ /**
241
+ * Optional header to specify the beta version(s) you want to use.
242
+ */
243
+ betas?: Array<BetaAPI.AnthropicBeta>;
244
+ }
245
+ export declare namespace Skills {
246
+ export { type SkillCreateResponse as SkillCreateResponse, type SkillRetrieveResponse as SkillRetrieveResponse, type SkillListResponse as SkillListResponse, type SkillDeleteResponse as SkillDeleteResponse, type SkillListResponsesPageCursor as SkillListResponsesPageCursor, type SkillCreateParams as SkillCreateParams, type SkillRetrieveParams as SkillRetrieveParams, type SkillListParams as SkillListParams, type SkillDeleteParams as SkillDeleteParams, };
247
+ export { Versions as Versions, type VersionCreateResponse as VersionCreateResponse, type VersionRetrieveResponse as VersionRetrieveResponse, type VersionListResponse as VersionListResponse, type VersionDeleteResponse as VersionDeleteResponse, type VersionListResponsesPageCursor as VersionListResponsesPageCursor, type VersionCreateParams as VersionCreateParams, type VersionRetrieveParams as VersionRetrieveParams, type VersionListParams as VersionListParams, type VersionDeleteParams as VersionDeleteParams, };
248
+ }
249
+ //# sourceMappingURL=skills.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../../../../src/vendor/resources/beta/skills/skills.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC;AAC7C,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,8BAA8B,EAC9B,qBAAqB,EACrB,uBAAuB,EACvB,QAAQ,EACT,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC7F,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EAAE,cAAc,EAAE,MAAM,sCA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AAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;CACtC;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -0,0 +1,90 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from '../../../core/resource.js';
3
+ import * as VersionsAPI from './versions.js';
4
+ import { Versions, } from './versions.js';
5
+ import { PageCursor } from '../../../core/pagination.js';
6
+ import { buildHeaders } from '../../../internal/headers.js';
7
+ import { multipartFormRequestOptions } from '../../../internal/uploads.js';
8
+ import { path } from '../../../internal/utils/path.js';
9
+ export class Skills extends APIResource {
10
+ versions = new VersionsAPI.Versions(this._client);
11
+ /**
12
+ * Create Skill
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const skill = await client.beta.skills.create();
17
+ * ```
18
+ */
19
+ create(params = {}, options) {
20
+ const { betas, ...body } = params ?? {};
21
+ return this._client.post('/v1/skills?beta=true', multipartFormRequestOptions({
22
+ body,
23
+ ...options,
24
+ headers: buildHeaders([
25
+ { 'anthropic-beta': [...(betas ?? []), 'skills-2025-10-02'].toString() },
26
+ options?.headers,
27
+ ]),
28
+ }, this._client, false));
29
+ }
30
+ /**
31
+ * Get Skill
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * const skill = await client.beta.skills.retrieve('skill_id');
36
+ * ```
37
+ */
38
+ retrieve(skillID, params = {}, options) {
39
+ const { betas } = params ?? {};
40
+ return this._client.get(path `/v1/skills/${skillID}?beta=true`, {
41
+ ...options,
42
+ headers: buildHeaders([
43
+ { 'anthropic-beta': [...(betas ?? []), 'skills-2025-10-02'].toString() },
44
+ options?.headers,
45
+ ]),
46
+ });
47
+ }
48
+ /**
49
+ * List Skills
50
+ *
51
+ * @example
52
+ * ```ts
53
+ * // Automatically fetches more pages as needed.
54
+ * for await (const skillListResponse of client.beta.skills.list()) {
55
+ * // ...
56
+ * }
57
+ * ```
58
+ */
59
+ list(params = {}, options) {
60
+ const { betas, ...query } = params ?? {};
61
+ return this._client.getAPIList('/v1/skills?beta=true', (PageCursor), {
62
+ query,
63
+ ...options,
64
+ headers: buildHeaders([
65
+ { 'anthropic-beta': [...(betas ?? []), 'skills-2025-10-02'].toString() },
66
+ options?.headers,
67
+ ]),
68
+ });
69
+ }
70
+ /**
71
+ * Delete Skill
72
+ *
73
+ * @example
74
+ * ```ts
75
+ * const skill = await client.beta.skills.delete('skill_id');
76
+ * ```
77
+ */
78
+ delete(skillID, params = {}, options) {
79
+ const { betas } = params ?? {};
80
+ return this._client.delete(path `/v1/skills/${skillID}?beta=true`, {
81
+ ...options,
82
+ headers: buildHeaders([
83
+ { 'anthropic-beta': [...(betas ?? []), 'skills-2025-10-02'].toString() },
84
+ options?.headers,
85
+ ]),
86
+ });
87
+ }
88
+ }
89
+ Skills.Versions = Versions;
90
+ //# sourceMappingURL=skills.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skills.js","sourceRoot":"","sources":["../../../../../src/vendor/resources/beta/skills/skills.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC;AAC7C,OAAO,EAUL,QAAQ,GACT,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,UAAU,EAAsC,MAAM,6BAA6B,CAAC;AAE7F,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,OAAO,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AAEvD,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC,QAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAExE;;;;;;;OAOG;IACH,MAAM,CACJ,SAA+C,EAAE,EACjD,OAAwB;QAExB,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,sBAAsB,EACtB,2BAA2B,CACzB;YACE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,gBAAgB,EAAE,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,EAAE,mBAAmB,CAAC,CAAC,QAAQ,EAAE,EAAE;gBACxE,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,EACD,IAAI,CA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ACpB,EAAE,gBAAgB,EAAE,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,EAAE,mBAAmB,CAAC,CAAC,QAAQ,EAAE,EAAE;gBACxE,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAmOD,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
@@ -0,0 +1,257 @@
1
+ import { APIResource } from '../../../core/resource.js';
2
+ import * as BetaAPI from '../beta.js';
3
+ import { APIPromise } from '../../../core/api-promise.js';
4
+ import { PageCursor, type PageCursorParams, PagePromise } from '../../../core/pagination.js';
5
+ import { type Uploadable } from '../../../core/uploads.js';
6
+ import { RequestOptions } from '../../../internal/request-options.js';
7
+ export declare class Versions extends APIResource {
8
+ /**
9
+ * Create Skill Version
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const version = await client.beta.skills.versions.create(
14
+ * 'skill_id',
15
+ * );
16
+ * ```
17
+ */
18
+ create(skillID: string, params?: VersionCreateParams | null | undefined, options?: RequestOptions): APIPromise<VersionCreateResponse>;
19
+ /**
20
+ * Get Skill Version
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const version = await client.beta.skills.versions.retrieve(
25
+ * 'version',
26
+ * { skill_id: 'skill_id' },
27
+ * );
28
+ * ```
29
+ */
30
+ retrieve(version: string, params: VersionRetrieveParams, options?: RequestOptions): APIPromise<VersionRetrieveResponse>;
31
+ /**
32
+ * List Skill Versions
33
+ *
34
+ * @example
35
+ * ```ts
36
+ * // Automatically fetches more pages as needed.
37
+ * for await (const versionListResponse of client.beta.skills.versions.list(
38
+ * 'skill_id',
39
+ * )) {
40
+ * // ...
41
+ * }
42
+ * ```
43
+ */
44
+ list(skillID: string, params?: VersionListParams | null | undefined, options?: RequestOptions): PagePromise<VersionListResponsesPageCursor, VersionListResponse>;
45
+ /**
46
+ * Delete Skill Version
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * const version = await client.beta.skills.versions.delete(
51
+ * 'version',
52
+ * { skill_id: 'skill_id' },
53
+ * );
54
+ * ```
55
+ */
56
+ delete(version: string, params: VersionDeleteParams, options?: RequestOptions): APIPromise<VersionDeleteResponse>;
57
+ }
58
+ export type VersionListResponsesPageCursor = PageCursor<VersionListResponse>;
59
+ export interface VersionCreateResponse {
60
+ /**
61
+ * Unique identifier for the skill version.
62
+ *
63
+ * The format and length of IDs may change over time.
64
+ */
65
+ id: string;
66
+ /**
67
+ * ISO 8601 timestamp of when the skill version was created.
68
+ */
69
+ created_at: string;
70
+ /**
71
+ * Description of the skill version.
72
+ *
73
+ * This is extracted from the SKILL.md file in the skill upload.
74
+ */
75
+ description: string;
76
+ /**
77
+ * Directory name of the skill version.
78
+ *
79
+ * This is the top-level directory name that was extracted from the uploaded files.
80
+ */
81
+ directory: string;
82
+ /**
83
+ * Human-readable name of the skill version.
84
+ *
85
+ * This is extracted from the SKILL.md file in the skill upload.
86
+ */
87
+ name: string;
88
+ /**
89
+ * Identifier for the skill that this version belongs to.
90
+ */
91
+ skill_id: string;
92
+ /**
93
+ * Object type.
94
+ *
95
+ * For Skill Versions, this is always `"skill_version"`.
96
+ */
97
+ type: string;
98
+ /**
99
+ * Version identifier for the skill.
100
+ *
101
+ * Each version is identified by a Unix epoch timestamp (e.g., "1759178010641129").
102
+ */
103
+ version: string;
104
+ }
105
+ export interface VersionRetrieveResponse {
106
+ /**
107
+ * Unique identifier for the skill version.
108
+ *
109
+ * The format and length of IDs may change over time.
110
+ */
111
+ id: string;
112
+ /**
113
+ * ISO 8601 timestamp of when the skill version was created.
114
+ */
115
+ created_at: string;
116
+ /**
117
+ * Description of the skill version.
118
+ *
119
+ * This is extracted from the SKILL.md file in the skill upload.
120
+ */
121
+ description: string;
122
+ /**
123
+ * Directory name of the skill version.
124
+ *
125
+ * This is the top-level directory name that was extracted from the uploaded files.
126
+ */
127
+ directory: string;
128
+ /**
129
+ * Human-readable name of the skill version.
130
+ *
131
+ * This is extracted from the SKILL.md file in the skill upload.
132
+ */
133
+ name: string;
134
+ /**
135
+ * Identifier for the skill that this version belongs to.
136
+ */
137
+ skill_id: string;
138
+ /**
139
+ * Object type.
140
+ *
141
+ * For Skill Versions, this is always `"skill_version"`.
142
+ */
143
+ type: string;
144
+ /**
145
+ * Version identifier for the skill.
146
+ *
147
+ * Each version is identified by a Unix epoch timestamp (e.g., "1759178010641129").
148
+ */
149
+ version: string;
150
+ }
151
+ export interface VersionListResponse {
152
+ /**
153
+ * Unique identifier for the skill version.
154
+ *
155
+ * The format and length of IDs may change over time.
156
+ */
157
+ id: string;
158
+ /**
159
+ * ISO 8601 timestamp of when the skill version was created.
160
+ */
161
+ created_at: string;
162
+ /**
163
+ * Description of the skill version.
164
+ *
165
+ * This is extracted from the SKILL.md file in the skill upload.
166
+ */
167
+ description: string;
168
+ /**
169
+ * Directory name of the skill version.
170
+ *
171
+ * This is the top-level directory name that was extracted from the uploaded files.
172
+ */
173
+ directory: string;
174
+ /**
175
+ * Human-readable name of the skill version.
176
+ *
177
+ * This is extracted from the SKILL.md file in the skill upload.
178
+ */
179
+ name: string;
180
+ /**
181
+ * Identifier for the skill that this version belongs to.
182
+ */
183
+ skill_id: string;
184
+ /**
185
+ * Object type.
186
+ *
187
+ * For Skill Versions, this is always `"skill_version"`.
188
+ */
189
+ type: string;
190
+ /**
191
+ * Version identifier for the skill.
192
+ *
193
+ * Each version is identified by a Unix epoch timestamp (e.g., "1759178010641129").
194
+ */
195
+ version: string;
196
+ }
197
+ export interface VersionDeleteResponse {
198
+ /**
199
+ * Version identifier for the skill.
200
+ *
201
+ * Each version is identified by a Unix epoch timestamp (e.g., "1759178010641129").
202
+ */
203
+ id: string;
204
+ /**
205
+ * Deleted object type.
206
+ *
207
+ * For Skill Versions, this is always `"skill_version_deleted"`.
208
+ */
209
+ type: string;
210
+ }
211
+ export interface VersionCreateParams {
212
+ /**
213
+ * Body param: Files to upload for the skill.
214
+ *
215
+ * All files must be in the same top-level directory and must include a SKILL.md
216
+ * file at the root of that directory.
217
+ */
218
+ files?: Array<Uploadable> | null;
219
+ /**
220
+ * Header param: Optional header to specify the beta version(s) you want to use.
221
+ */
222
+ betas?: Array<BetaAPI.AnthropicBeta>;
223
+ }
224
+ export interface VersionRetrieveParams {
225
+ /**
226
+ * Path param: Unique identifier for the skill.
227
+ *
228
+ * The format and length of IDs may change over time.
229
+ */
230
+ skill_id: string;
231
+ /**
232
+ * Header param: Optional header to specify the beta version(s) you want to use.
233
+ */
234
+ betas?: Array<BetaAPI.AnthropicBeta>;
235
+ }
236
+ export interface VersionListParams extends PageCursorParams {
237
+ /**
238
+ * Header param: Optional header to specify the beta version(s) you want to use.
239
+ */
240
+ betas?: Array<BetaAPI.AnthropicBeta>;
241
+ }
242
+ export interface VersionDeleteParams {
243
+ /**
244
+ * Path param: Unique identifier for the skill.
245
+ *
246
+ * The format and length of IDs may change over time.
247
+ */
248
+ skill_id: string;
249
+ /**
250
+ * Header param: Optional header to specify the beta version(s) you want to use.
251
+ */
252
+ betas?: Array<BetaAPI.AnthropicBeta>;
253
+ }
254
+ export declare namespace Versions {
255
+ export { type VersionCreateResponse as VersionCreateResponse, type VersionRetrieveResponse as VersionRetrieveResponse, type VersionListResponse as VersionListResponse, type VersionDeleteResponse as VersionDeleteResponse, type VersionListResponsesPageCursor as VersionListResponsesPageCursor, type VersionCreateParams as VersionCreateParams, type VersionRetrieveParams as VersionRetrieveParams, type VersionListParams as VersionListParams, type VersionDeleteParams as VersionDeleteParams, };
256
+ }
257
+ //# sourceMappingURL=versions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../../../src/vendor/resources/beta/skills/versions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB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