@mistralai/mistralai 2.3.0 → 2.4.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 (376) hide show
  1. package/README.md +101 -30
  2. package/esm/funcs/betaLibrariesDocumentsGetSignedUploadUrl.d.ts +19 -0
  3. package/esm/funcs/betaLibrariesDocumentsGetSignedUploadUrl.d.ts.map +1 -0
  4. package/esm/funcs/betaLibrariesDocumentsGetSignedUploadUrl.js +95 -0
  5. package/esm/funcs/betaLibrariesDocumentsGetSignedUploadUrl.js.map +1 -0
  6. package/esm/funcs/betaLibrariesDocumentsIngestFromBlobStorage.d.ts +19 -0
  7. package/esm/funcs/betaLibrariesDocumentsIngestFromBlobStorage.d.ts.map +1 -0
  8. package/esm/funcs/betaLibrariesDocumentsIngestFromBlobStorage.js +94 -0
  9. package/esm/funcs/betaLibrariesDocumentsIngestFromBlobStorage.js.map +1 -0
  10. package/esm/funcs/betaLibrariesList.js +1 -0
  11. package/esm/funcs/betaLibrariesList.js.map +1 -1
  12. package/esm/funcs/betaPromptsCreate.d.ts +15 -0
  13. package/esm/funcs/betaPromptsCreate.d.ts.map +1 -0
  14. package/esm/funcs/betaPromptsCreate.js +78 -0
  15. package/esm/funcs/betaPromptsCreate.js.map +1 -0
  16. package/esm/funcs/betaPromptsCreateVersion.d.ts +14 -0
  17. package/esm/funcs/betaPromptsCreateVersion.d.ts.map +1 -0
  18. package/esm/funcs/betaPromptsCreateVersion.js +87 -0
  19. package/esm/funcs/betaPromptsCreateVersion.js.map +1 -0
  20. package/esm/funcs/betaPromptsDelete.d.ts +14 -0
  21. package/esm/funcs/betaPromptsDelete.d.ts.map +1 -0
  22. package/esm/funcs/betaPromptsDelete.js +82 -0
  23. package/esm/funcs/betaPromptsDelete.js.map +1 -0
  24. package/esm/funcs/betaPromptsGet.d.ts +14 -0
  25. package/esm/funcs/betaPromptsGet.d.ts.map +1 -0
  26. package/esm/funcs/betaPromptsGet.js +88 -0
  27. package/esm/funcs/betaPromptsGet.js.map +1 -0
  28. package/esm/funcs/betaPromptsGetVersion.d.ts +14 -0
  29. package/esm/funcs/betaPromptsGetVersion.d.ts.map +1 -0
  30. package/esm/funcs/betaPromptsGetVersion.js +90 -0
  31. package/esm/funcs/betaPromptsGetVersion.js.map +1 -0
  32. package/esm/funcs/betaPromptsList.d.ts +17 -0
  33. package/esm/funcs/betaPromptsList.d.ts.map +1 -0
  34. package/esm/funcs/betaPromptsList.js +123 -0
  35. package/esm/funcs/betaPromptsList.js.map +1 -0
  36. package/esm/funcs/betaPromptsListVersions.d.ts +14 -0
  37. package/esm/funcs/betaPromptsListVersions.d.ts.map +1 -0
  38. package/esm/funcs/betaPromptsListVersions.js +82 -0
  39. package/esm/funcs/betaPromptsListVersions.js.map +1 -0
  40. package/esm/funcs/betaPromptsUpdateMetadata.d.ts +14 -0
  41. package/esm/funcs/betaPromptsUpdateMetadata.d.ts.map +1 -0
  42. package/esm/funcs/betaPromptsUpdateMetadata.js +87 -0
  43. package/esm/funcs/betaPromptsUpdateMetadata.js.map +1 -0
  44. package/esm/funcs/betaPromptsUpdateVersionMetadata.d.ts +14 -0
  45. package/esm/funcs/betaPromptsUpdateVersionMetadata.d.ts.map +1 -0
  46. package/esm/funcs/betaPromptsUpdateVersionMetadata.js +92 -0
  47. package/esm/funcs/betaPromptsUpdateVersionMetadata.js.map +1 -0
  48. package/esm/funcs/betaSkillsCreate.d.ts +15 -0
  49. package/esm/funcs/betaSkillsCreate.d.ts.map +1 -0
  50. package/esm/funcs/betaSkillsCreate.js +78 -0
  51. package/esm/funcs/betaSkillsCreate.js.map +1 -0
  52. package/esm/funcs/betaSkillsCreateVersion.d.ts +14 -0
  53. package/esm/funcs/betaSkillsCreateVersion.d.ts.map +1 -0
  54. package/esm/funcs/betaSkillsCreateVersion.js +87 -0
  55. package/esm/funcs/betaSkillsCreateVersion.js.map +1 -0
  56. package/esm/funcs/betaSkillsDelete.d.ts +14 -0
  57. package/esm/funcs/betaSkillsDelete.d.ts.map +1 -0
  58. package/esm/funcs/betaSkillsDelete.js +82 -0
  59. package/esm/funcs/betaSkillsDelete.js.map +1 -0
  60. package/esm/funcs/betaSkillsGet.d.ts +14 -0
  61. package/esm/funcs/betaSkillsGet.d.ts.map +1 -0
  62. package/esm/funcs/betaSkillsGet.js +88 -0
  63. package/esm/funcs/betaSkillsGet.js.map +1 -0
  64. package/esm/funcs/betaSkillsGetVersion.d.ts +14 -0
  65. package/esm/funcs/betaSkillsGetVersion.d.ts.map +1 -0
  66. package/esm/funcs/betaSkillsGetVersion.js +90 -0
  67. package/esm/funcs/betaSkillsGetVersion.js.map +1 -0
  68. package/esm/funcs/betaSkillsList.d.ts +17 -0
  69. package/esm/funcs/betaSkillsList.d.ts.map +1 -0
  70. package/esm/funcs/betaSkillsList.js +121 -0
  71. package/esm/funcs/betaSkillsList.js.map +1 -0
  72. package/esm/funcs/betaSkillsListVersions.d.ts +14 -0
  73. package/esm/funcs/betaSkillsListVersions.d.ts.map +1 -0
  74. package/esm/funcs/betaSkillsListVersions.js +82 -0
  75. package/esm/funcs/betaSkillsListVersions.js.map +1 -0
  76. package/esm/funcs/betaSkillsUpdateMetadata.d.ts +14 -0
  77. package/esm/funcs/betaSkillsUpdateMetadata.d.ts.map +1 -0
  78. package/esm/funcs/betaSkillsUpdateMetadata.js +87 -0
  79. package/esm/funcs/betaSkillsUpdateMetadata.js.map +1 -0
  80. package/esm/funcs/betaSkillsUpdateVersionMetadata.d.ts +14 -0
  81. package/esm/funcs/betaSkillsUpdateVersionMetadata.d.ts.map +1 -0
  82. package/esm/funcs/betaSkillsUpdateVersionMetadata.js +92 -0
  83. package/esm/funcs/betaSkillsUpdateVersionMetadata.js.map +1 -0
  84. package/esm/lib/config.d.ts +2 -2
  85. package/esm/lib/config.js +2 -2
  86. package/esm/models/components/aliaslist.d.ts +15 -0
  87. package/esm/models/components/aliaslist.d.ts.map +1 -0
  88. package/esm/models/components/aliaslist.js +13 -0
  89. package/esm/models/components/aliaslist.js.map +1 -0
  90. package/esm/models/components/connecterror.d.ts +54 -0
  91. package/esm/models/components/connecterror.d.ts.map +1 -0
  92. package/esm/models/components/connecterror.js +43 -0
  93. package/esm/models/components/connecterror.js.map +1 -0
  94. package/esm/models/components/createpromptrequest.d.ts +44 -0
  95. package/esm/models/components/createpromptrequest.d.ts.map +1 -0
  96. package/esm/models/components/createpromptrequest.js +21 -0
  97. package/esm/models/components/createpromptrequest.js.map +1 -0
  98. package/esm/models/components/createpromptversionresponse.d.ts +11 -0
  99. package/esm/models/components/createpromptversionresponse.d.ts.map +1 -0
  100. package/esm/models/components/createpromptversionresponse.js +15 -0
  101. package/esm/models/components/createpromptversionresponse.js.map +1 -0
  102. package/esm/models/components/createskillrequest.d.ts +34 -0
  103. package/esm/models/components/createskillrequest.d.ts.map +1 -0
  104. package/esm/models/components/createskillrequest.js +19 -0
  105. package/esm/models/components/createskillrequest.js.map +1 -0
  106. package/esm/models/components/createskillversionresponse.d.ts +11 -0
  107. package/esm/models/components/createskillversionresponse.d.ts.map +1 -0
  108. package/esm/models/components/createskillversionresponse.js +15 -0
  109. package/esm/models/components/createskillversionresponse.js.map +1 -0
  110. package/esm/models/components/deletepromptresponse.d.ts +8 -0
  111. package/esm/models/components/deletepromptresponse.d.ts.map +1 -0
  112. package/esm/models/components/deletepromptresponse.js +12 -0
  113. package/esm/models/components/deletepromptresponse.js.map +1 -0
  114. package/esm/models/components/deleteskillresponse.d.ts +8 -0
  115. package/esm/models/components/deleteskillresponse.d.ts.map +1 -0
  116. package/esm/models/components/deleteskillresponse.js +12 -0
  117. package/esm/models/components/deleteskillresponse.js.map +1 -0
  118. package/esm/models/components/index.d.ts +24 -0
  119. package/esm/models/components/index.d.ts.map +1 -1
  120. package/esm/models/components/index.js +24 -0
  121. package/esm/models/components/index.js.map +1 -1
  122. package/esm/models/components/ingestfromblobstoragerequest.d.ts +23 -0
  123. package/esm/models/components/ingestfromblobstoragerequest.d.ts.map +1 -0
  124. package/esm/models/components/ingestfromblobstoragerequest.js +19 -0
  125. package/esm/models/components/ingestfromblobstoragerequest.js.map +1 -0
  126. package/esm/models/components/listlibrariesresponse.d.ts +10 -1
  127. package/esm/models/components/listlibrariesresponse.d.ts.map +1 -1
  128. package/esm/models/components/listlibrariesresponse.js +7 -1
  129. package/esm/models/components/listlibrariesresponse.js.map +1 -1
  130. package/esm/models/components/listpromptsresponse.d.ts +12 -0
  131. package/esm/models/components/listpromptsresponse.d.ts.map +1 -0
  132. package/esm/models/components/listpromptsresponse.js +16 -0
  133. package/esm/models/components/listpromptsresponse.js.map +1 -0
  134. package/esm/models/components/listpromptversionsresponse.d.ts +11 -0
  135. package/esm/models/components/listpromptversionsresponse.d.ts.map +1 -0
  136. package/esm/models/components/listpromptversionsresponse.js +15 -0
  137. package/esm/models/components/listpromptversionsresponse.js.map +1 -0
  138. package/esm/models/components/listskillsresponse.d.ts +12 -0
  139. package/esm/models/components/listskillsresponse.d.ts.map +1 -0
  140. package/esm/models/components/listskillsresponse.js +16 -0
  141. package/esm/models/components/listskillsresponse.js.map +1 -0
  142. package/esm/models/components/listskillversionsresponse.d.ts +11 -0
  143. package/esm/models/components/listskillversionsresponse.d.ts.map +1 -0
  144. package/esm/models/components/listskillversionsresponse.js +15 -0
  145. package/esm/models/components/listskillversionsresponse.js.map +1 -0
  146. package/esm/models/components/prompt.d.ts +50 -0
  147. package/esm/models/components/prompt.d.ts.map +1 -0
  148. package/esm/models/components/prompt.js +29 -0
  149. package/esm/models/components/prompt.js.map +1 -0
  150. package/esm/models/components/promptdefinition.d.ts +29 -0
  151. package/esm/models/components/promptdefinition.d.ts.map +1 -0
  152. package/esm/models/components/promptdefinition.js +24 -0
  153. package/esm/models/components/promptdefinition.js.map +1 -0
  154. package/esm/models/components/promptvariable.d.ts +20 -0
  155. package/esm/models/components/promptvariable.d.ts.map +1 -0
  156. package/esm/models/components/promptvariable.js +21 -0
  157. package/esm/models/components/promptvariable.js.map +1 -0
  158. package/esm/models/components/promptversion.d.ts +27 -0
  159. package/esm/models/components/promptversion.d.ts.map +1 -0
  160. package/esm/models/components/promptversion.js +21 -0
  161. package/esm/models/components/promptversion.js.map +1 -0
  162. package/esm/models/components/protobufany.d.ts +18 -0
  163. package/esm/models/components/protobufany.d.ts.map +1 -0
  164. package/esm/models/components/protobufany.js +18 -0
  165. package/esm/models/components/protobufany.js.map +1 -0
  166. package/esm/models/components/registrysharingscope.d.ts +13 -0
  167. package/esm/models/components/registrysharingscope.d.ts.map +1 -0
  168. package/esm/models/components/registrysharingscope.js +15 -0
  169. package/esm/models/components/registrysharingscope.js.map +1 -0
  170. package/esm/models/components/requestuploadurlresponse.d.ts +13 -0
  171. package/esm/models/components/requestuploadurlresponse.d.ts.map +1 -0
  172. package/esm/models/components/requestuploadurlresponse.js +19 -0
  173. package/esm/models/components/requestuploadurlresponse.js.map +1 -0
  174. package/esm/models/components/skill.d.ts +42 -0
  175. package/esm/models/components/skill.d.ts.map +1 -0
  176. package/esm/models/components/skill.js +27 -0
  177. package/esm/models/components/skill.js.map +1 -0
  178. package/esm/models/components/skillassetcontent.d.ts +43 -0
  179. package/esm/models/components/skillassetcontent.d.ts.map +1 -0
  180. package/esm/models/components/skillassetcontent.js +57 -0
  181. package/esm/models/components/skillassetcontent.js.map +1 -0
  182. package/esm/models/components/skilldefinition.d.ts +38 -0
  183. package/esm/models/components/skilldefinition.d.ts.map +1 -0
  184. package/esm/models/components/skilldefinition.js +26 -0
  185. package/esm/models/components/skilldefinition.js.map +1 -0
  186. package/esm/models/components/skillversion.d.ts +27 -0
  187. package/esm/models/components/skillversion.d.ts.map +1 -0
  188. package/esm/models/components/skillversion.js +21 -0
  189. package/esm/models/components/skillversion.js.map +1 -0
  190. package/esm/models/operations/index.d.ts +20 -0
  191. package/esm/models/operations/index.d.ts.map +1 -1
  192. package/esm/models/operations/index.js +20 -0
  193. package/esm/models/operations/index.js.map +1 -1
  194. package/esm/models/operations/librariesdocumentsgetsigneduploadurlv1.d.ts +14 -0
  195. package/esm/models/operations/librariesdocumentsgetsigneduploadurlv1.d.ts.map +1 -0
  196. package/esm/models/operations/librariesdocumentsgetsigneduploadurlv1.js +19 -0
  197. package/esm/models/operations/librariesdocumentsgetsigneduploadurlv1.js.map +1 -0
  198. package/esm/models/operations/librariesdocumentsingestfromblobstoragev1.d.ts +15 -0
  199. package/esm/models/operations/librariesdocumentsingestfromblobstoragev1.d.ts.map +1 -0
  200. package/esm/models/operations/librariesdocumentsingestfromblobstoragev1.js +21 -0
  201. package/esm/models/operations/librariesdocumentsingestfromblobstoragev1.js.map +1 -0
  202. package/esm/models/operations/librarieslistv1.d.ts +10 -0
  203. package/esm/models/operations/librarieslistv1.d.ts.map +1 -1
  204. package/esm/models/operations/librarieslistv1.js +2 -0
  205. package/esm/models/operations/librarieslistv1.js.map +1 -1
  206. package/esm/models/operations/promptscreate.d.ts +9 -0
  207. package/esm/models/operations/promptscreate.d.ts.map +1 -0
  208. package/esm/models/operations/promptscreate.js +16 -0
  209. package/esm/models/operations/promptscreate.js.map +1 -0
  210. package/esm/models/operations/promptscreateversion.d.ts +44 -0
  211. package/esm/models/operations/promptscreateversion.d.ts.map +1 -0
  212. package/esm/models/operations/promptscreateversion.js +40 -0
  213. package/esm/models/operations/promptscreateversion.js.map +1 -0
  214. package/esm/models/operations/promptsdelete.d.ts +19 -0
  215. package/esm/models/operations/promptsdelete.d.ts.map +1 -0
  216. package/esm/models/operations/promptsdelete.js +29 -0
  217. package/esm/models/operations/promptsdelete.js.map +1 -0
  218. package/esm/models/operations/promptsget.d.ts +25 -0
  219. package/esm/models/operations/promptsget.d.ts.map +1 -0
  220. package/esm/models/operations/promptsget.js +32 -0
  221. package/esm/models/operations/promptsget.js.map +1 -0
  222. package/esm/models/operations/promptsgetversion.d.ts +23 -0
  223. package/esm/models/operations/promptsgetversion.d.ts.map +1 -0
  224. package/esm/models/operations/promptsgetversion.js +31 -0
  225. package/esm/models/operations/promptsgetversion.js.map +1 -0
  226. package/esm/models/operations/promptslist.d.ts +31 -0
  227. package/esm/models/operations/promptslist.d.ts.map +1 -0
  228. package/esm/models/operations/promptslist.js +42 -0
  229. package/esm/models/operations/promptslist.js.map +1 -0
  230. package/esm/models/operations/promptslistversions.d.ts +19 -0
  231. package/esm/models/operations/promptslistversions.d.ts.map +1 -0
  232. package/esm/models/operations/promptslistversions.js +29 -0
  233. package/esm/models/operations/promptslistversions.js.map +1 -0
  234. package/esm/models/operations/promptsupdate.d.ts +41 -0
  235. package/esm/models/operations/promptsupdate.d.ts.map +1 -0
  236. package/esm/models/operations/promptsupdate.js +40 -0
  237. package/esm/models/operations/promptsupdate.js.map +1 -0
  238. package/esm/models/operations/promptsupdateversionmetadata.d.ts +41 -0
  239. package/esm/models/operations/promptsupdateversionmetadata.d.ts.map +1 -0
  240. package/esm/models/operations/promptsupdateversionmetadata.js +40 -0
  241. package/esm/models/operations/promptsupdateversionmetadata.js.map +1 -0
  242. package/esm/models/operations/skillscreate.d.ts +9 -0
  243. package/esm/models/operations/skillscreate.d.ts.map +1 -0
  244. package/esm/models/operations/skillscreate.js +16 -0
  245. package/esm/models/operations/skillscreate.js.map +1 -0
  246. package/esm/models/operations/skillscreateversion.d.ts +44 -0
  247. package/esm/models/operations/skillscreateversion.d.ts.map +1 -0
  248. package/esm/models/operations/skillscreateversion.js +40 -0
  249. package/esm/models/operations/skillscreateversion.js.map +1 -0
  250. package/esm/models/operations/skillsdelete.d.ts +19 -0
  251. package/esm/models/operations/skillsdelete.d.ts.map +1 -0
  252. package/esm/models/operations/skillsdelete.js +29 -0
  253. package/esm/models/operations/skillsdelete.js.map +1 -0
  254. package/esm/models/operations/skillsget.d.ts +25 -0
  255. package/esm/models/operations/skillsget.d.ts.map +1 -0
  256. package/esm/models/operations/skillsget.js +32 -0
  257. package/esm/models/operations/skillsget.js.map +1 -0
  258. package/esm/models/operations/skillsgetversion.d.ts +23 -0
  259. package/esm/models/operations/skillsgetversion.d.ts.map +1 -0
  260. package/esm/models/operations/skillsgetversion.js +31 -0
  261. package/esm/models/operations/skillsgetversion.js.map +1 -0
  262. package/esm/models/operations/skillslist.d.ts +31 -0
  263. package/esm/models/operations/skillslist.d.ts.map +1 -0
  264. package/esm/models/operations/skillslist.js +42 -0
  265. package/esm/models/operations/skillslist.js.map +1 -0
  266. package/esm/models/operations/skillslistversions.d.ts +19 -0
  267. package/esm/models/operations/skillslistversions.d.ts.map +1 -0
  268. package/esm/models/operations/skillslistversions.js +29 -0
  269. package/esm/models/operations/skillslistversions.js.map +1 -0
  270. package/esm/models/operations/skillsupdate.d.ts +31 -0
  271. package/esm/models/operations/skillsupdate.d.ts.map +1 -0
  272. package/esm/models/operations/skillsupdate.js +38 -0
  273. package/esm/models/operations/skillsupdate.js.map +1 -0
  274. package/esm/models/operations/skillsupdateversionmetadata.d.ts +41 -0
  275. package/esm/models/operations/skillsupdateversionmetadata.d.ts.map +1 -0
  276. package/esm/models/operations/skillsupdateversionmetadata.js +40 -0
  277. package/esm/models/operations/skillsupdateversionmetadata.js.map +1 -0
  278. package/esm/sdk/beta.d.ts +6 -0
  279. package/esm/sdk/beta.d.ts.map +1 -1
  280. package/esm/sdk/beta.js +10 -0
  281. package/esm/sdk/beta.js.map +1 -1
  282. package/esm/sdk/documents.d.ts +14 -0
  283. package/esm/sdk/documents.d.ts.map +1 -1
  284. package/esm/sdk/documents.js +20 -0
  285. package/esm/sdk/documents.js.map +1 -1
  286. package/esm/sdk/prompts.d.ts +45 -0
  287. package/esm/sdk/prompts.d.ts.map +1 -0
  288. package/esm/sdk/prompts.js +73 -0
  289. package/esm/sdk/prompts.js.map +1 -0
  290. package/esm/sdk/sdk.d.ts +2 -2
  291. package/esm/sdk/sdk.d.ts.map +1 -1
  292. package/esm/sdk/sdk.js +4 -4
  293. package/esm/sdk/sdk.js.map +1 -1
  294. package/esm/sdk/skills.d.ts +45 -0
  295. package/esm/sdk/skills.d.ts.map +1 -0
  296. package/esm/sdk/skills.js +73 -0
  297. package/esm/sdk/skills.js.map +1 -0
  298. package/examples/src/prompt_lifecycle.ts +40 -0
  299. package/examples/src/skill_lifecycle.ts +54 -0
  300. package/jsr.json +1 -1
  301. package/package.json +1 -1
  302. package/src/funcs/betaLibrariesDocumentsGetSignedUploadUrl.ts +187 -0
  303. package/src/funcs/betaLibrariesDocumentsIngestFromBlobStorage.ts +185 -0
  304. package/src/funcs/betaLibrariesList.ts +1 -0
  305. package/src/funcs/betaPromptsCreate.ts +162 -0
  306. package/src/funcs/betaPromptsCreateVersion.ts +176 -0
  307. package/src/funcs/betaPromptsDelete.ts +166 -0
  308. package/src/funcs/betaPromptsGet.ts +173 -0
  309. package/src/funcs/betaPromptsGetVersion.ts +177 -0
  310. package/src/funcs/betaPromptsList.ts +246 -0
  311. package/src/funcs/betaPromptsListVersions.ts +167 -0
  312. package/src/funcs/betaPromptsUpdateMetadata.ts +175 -0
  313. package/src/funcs/betaPromptsUpdateVersionMetadata.ts +191 -0
  314. package/src/funcs/betaSkillsCreate.ts +162 -0
  315. package/src/funcs/betaSkillsCreateVersion.ts +176 -0
  316. package/src/funcs/betaSkillsDelete.ts +166 -0
  317. package/src/funcs/betaSkillsGet.ts +173 -0
  318. package/src/funcs/betaSkillsGetVersion.ts +177 -0
  319. package/src/funcs/betaSkillsList.ts +244 -0
  320. package/src/funcs/betaSkillsListVersions.ts +166 -0
  321. package/src/funcs/betaSkillsUpdateMetadata.ts +175 -0
  322. package/src/funcs/betaSkillsUpdateVersionMetadata.ts +189 -0
  323. package/src/lib/config.ts +2 -2
  324. package/src/models/components/aliaslist.ts +30 -0
  325. package/src/models/components/connecterror.ts +79 -0
  326. package/src/models/components/createpromptrequest.ts +76 -0
  327. package/src/models/components/createpromptversionresponse.ts +33 -0
  328. package/src/models/components/createskillrequest.ts +64 -0
  329. package/src/models/components/createskillversionresponse.ts +33 -0
  330. package/src/models/components/deletepromptresponse.ts +27 -0
  331. package/src/models/components/deleteskillresponse.ts +27 -0
  332. package/src/models/components/index.ts +24 -0
  333. package/src/models/components/ingestfromblobstoragerequest.ts +50 -0
  334. package/src/models/components/listlibrariesresponse.ts +17 -2
  335. package/src/models/components/listpromptsresponse.ts +34 -0
  336. package/src/models/components/listpromptversionsresponse.ts +32 -0
  337. package/src/models/components/listskillsresponse.ts +34 -0
  338. package/src/models/components/listskillversionsresponse.ts +32 -0
  339. package/src/models/components/prompt.ts +87 -0
  340. package/src/models/components/promptdefinition.ts +69 -0
  341. package/src/models/components/promptvariable.ts +47 -0
  342. package/src/models/components/promptversion.ts +54 -0
  343. package/src/models/components/protobufany.ts +38 -0
  344. package/src/models/components/registrysharingscope.ts +26 -0
  345. package/src/models/components/requestuploadurlresponse.ts +39 -0
  346. package/src/models/components/skill.ts +77 -0
  347. package/src/models/components/skillassetcontent.ts +137 -0
  348. package/src/models/components/skilldefinition.ts +74 -0
  349. package/src/models/components/skillversion.ts +54 -0
  350. package/src/models/operations/index.ts +20 -0
  351. package/src/models/operations/librariesdocumentsgetsigneduploadurlv1.ts +43 -0
  352. package/src/models/operations/librariesdocumentsingestfromblobstoragev1.ts +47 -0
  353. package/src/models/operations/librarieslistv1.ts +12 -0
  354. package/src/models/operations/promptscreate.ts +32 -0
  355. package/src/models/operations/promptscreateversion.ts +110 -0
  356. package/src/models/operations/promptsdelete.ts +64 -0
  357. package/src/models/operations/promptsget.ts +71 -0
  358. package/src/models/operations/promptsgetversion.ts +70 -0
  359. package/src/models/operations/promptslist.ts +98 -0
  360. package/src/models/operations/promptslistversions.ts +64 -0
  361. package/src/models/operations/promptsupdate.ts +103 -0
  362. package/src/models/operations/promptsupdateversionmetadata.ts +108 -0
  363. package/src/models/operations/skillscreate.ts +32 -0
  364. package/src/models/operations/skillscreateversion.ts +108 -0
  365. package/src/models/operations/skillsdelete.ts +64 -0
  366. package/src/models/operations/skillsget.ts +71 -0
  367. package/src/models/operations/skillsgetversion.ts +70 -0
  368. package/src/models/operations/skillslist.ts +98 -0
  369. package/src/models/operations/skillslistversions.ts +64 -0
  370. package/src/models/operations/skillsupdate.ts +91 -0
  371. package/src/models/operations/skillsupdateversionmetadata.ts +108 -0
  372. package/src/sdk/beta.ts +12 -0
  373. package/src/sdk/documents.ts +36 -0
  374. package/src/sdk/prompts.ts +155 -0
  375. package/src/sdk/sdk.ts +5 -5
  376. package/src/sdk/skills.ts +155 -0
@@ -0,0 +1,69 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 2252ea085aaf
4
+ */
5
+
6
+ import * as z from "zod/v4";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ PromptVariable,
12
+ PromptVariable$inboundSchema,
13
+ PromptVariable$Outbound,
14
+ PromptVariable$outboundSchema,
15
+ } from "./promptvariable.js";
16
+
17
+ /**
18
+ * Versioned prompt content.
19
+ */
20
+ export type PromptDefinition = {
21
+ /**
22
+ * Prompt template content.
23
+ */
24
+ content: string;
25
+ /**
26
+ * Variables used by the prompt.
27
+ */
28
+ variables?: Array<PromptVariable> | undefined;
29
+ };
30
+
31
+ /** @internal */
32
+ export const PromptDefinition$inboundSchema: z.ZodType<
33
+ PromptDefinition,
34
+ unknown
35
+ > = z.object({
36
+ content: z.string(),
37
+ variables: z.array(PromptVariable$inboundSchema).optional(),
38
+ });
39
+ /** @internal */
40
+ export type PromptDefinition$Outbound = {
41
+ content: string;
42
+ variables?: Array<PromptVariable$Outbound> | undefined;
43
+ };
44
+
45
+ /** @internal */
46
+ export const PromptDefinition$outboundSchema: z.ZodType<
47
+ PromptDefinition$Outbound,
48
+ PromptDefinition
49
+ > = z.object({
50
+ content: z.string(),
51
+ variables: z.array(PromptVariable$outboundSchema).optional(),
52
+ });
53
+
54
+ export function promptDefinitionToJSON(
55
+ promptDefinition: PromptDefinition,
56
+ ): string {
57
+ return JSON.stringify(
58
+ PromptDefinition$outboundSchema.parse(promptDefinition),
59
+ );
60
+ }
61
+ export function promptDefinitionFromJSON(
62
+ jsonString: string,
63
+ ): SafeParseResult<PromptDefinition, SDKValidationError> {
64
+ return safeParse(
65
+ jsonString,
66
+ (x) => PromptDefinition$inboundSchema.parse(JSON.parse(x)),
67
+ `Failed to parse 'PromptDefinition' from JSON`,
68
+ );
69
+ }
@@ -0,0 +1,47 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 8b75b50032cc
4
+ */
5
+
6
+ import * as z from "zod/v4";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type PromptVariable = {
12
+ /**
13
+ * Stable object name.
14
+ */
15
+ name?: string | undefined;
16
+ };
17
+
18
+ /** @internal */
19
+ export const PromptVariable$inboundSchema: z.ZodType<PromptVariable, unknown> =
20
+ z.object({
21
+ name: z.string().optional(),
22
+ });
23
+ /** @internal */
24
+ export type PromptVariable$Outbound = {
25
+ name?: string | undefined;
26
+ };
27
+
28
+ /** @internal */
29
+ export const PromptVariable$outboundSchema: z.ZodType<
30
+ PromptVariable$Outbound,
31
+ PromptVariable
32
+ > = z.object({
33
+ name: z.string().optional(),
34
+ });
35
+
36
+ export function promptVariableToJSON(promptVariable: PromptVariable): string {
37
+ return JSON.stringify(PromptVariable$outboundSchema.parse(promptVariable));
38
+ }
39
+ export function promptVariableFromJSON(
40
+ jsonString: string,
41
+ ): SafeParseResult<PromptVariable, SDKValidationError> {
42
+ return safeParse(
43
+ jsonString,
44
+ (x) => PromptVariable$inboundSchema.parse(JSON.parse(x)),
45
+ `Failed to parse 'PromptVariable' from JSON`,
46
+ );
47
+ }
@@ -0,0 +1,54 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 1f2518b3cccb
4
+ */
5
+
6
+ import * as z from "zod/v4";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ PromptDefinition,
12
+ PromptDefinition$inboundSchema,
13
+ } from "./promptdefinition.js";
14
+
15
+ export type PromptVersion = {
16
+ version?: number | undefined;
17
+ /**
18
+ * Versioned prompt content.
19
+ */
20
+ definition?: PromptDefinition | undefined;
21
+ /**
22
+ * Notes for this version.
23
+ */
24
+ notes?: string | undefined;
25
+ /**
26
+ * Aliases pointing to this version.
27
+ */
28
+ aliases?: Array<string> | undefined;
29
+ /**
30
+ * RFC 3339 timestamp.
31
+ */
32
+ createdAt?: Date | undefined;
33
+ };
34
+
35
+ /** @internal */
36
+ export const PromptVersion$inboundSchema: z.ZodType<PromptVersion, unknown> = z
37
+ .object({
38
+ version: z.int().optional(),
39
+ definition: PromptDefinition$inboundSchema.optional(),
40
+ notes: z.string().optional(),
41
+ aliases: z.array(z.string()).optional(),
42
+ createdAt: z.iso.datetime({ offset: true }).transform(v => new Date(v))
43
+ .optional(),
44
+ });
45
+
46
+ export function promptVersionFromJSON(
47
+ jsonString: string,
48
+ ): SafeParseResult<PromptVersion, SDKValidationError> {
49
+ return safeParse(
50
+ jsonString,
51
+ (x) => PromptVersion$inboundSchema.parse(JSON.parse(x)),
52
+ `Failed to parse 'PromptVersion' from JSON`,
53
+ );
54
+ }
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: fb33fbe77a4b
4
+ */
5
+
6
+ import * as z from "zod/v4";
7
+ import * as b64$ from "../../lib/base64.js";
8
+ import { safeParse } from "../../lib/schemas.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ /**
13
+ * Additional structured error detail.
14
+ */
15
+ export type ProtobufAny = {
16
+ type?: string | undefined;
17
+ value?: Uint8Array | string | undefined;
18
+ debug?: { [k: string]: any } | undefined;
19
+ [additionalProperties: string]: unknown;
20
+ };
21
+
22
+ /** @internal */
23
+ export const ProtobufAny$inboundSchema: z.ZodType<ProtobufAny, unknown> = z
24
+ .object({
25
+ type: z.string().optional(),
26
+ value: b64$.zodInbound.optional(),
27
+ debug: z.record(z.string(), z.any()).optional(),
28
+ }).catchall(z.any());
29
+
30
+ export function protobufAnyFromJSON(
31
+ jsonString: string,
32
+ ): SafeParseResult<ProtobufAny, SDKValidationError> {
33
+ return safeParse(
34
+ jsonString,
35
+ (x) => ProtobufAny$inboundSchema.parse(JSON.parse(x)),
36
+ `Failed to parse 'ProtobufAny' from JSON`,
37
+ );
38
+ }
@@ -0,0 +1,26 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 8b46bd3a2bf8
4
+ */
5
+
6
+ import * as z from "zod/v4";
7
+ import * as openEnums from "../../types/enums.js";
8
+ import { OpenEnum } from "../../types/enums.js";
9
+
10
+ export const RegistrySharingScope = {
11
+ SharingScopeUnspecified: "sharing_scope_unspecified",
12
+ Private: "private",
13
+ Workspace: "workspace",
14
+ } as const;
15
+ export type RegistrySharingScope = OpenEnum<typeof RegistrySharingScope>;
16
+
17
+ /** @internal */
18
+ export const RegistrySharingScope$inboundSchema: z.ZodType<
19
+ RegistrySharingScope,
20
+ unknown
21
+ > = openEnums.inboundSchema(RegistrySharingScope);
22
+ /** @internal */
23
+ export const RegistrySharingScope$outboundSchema: z.ZodType<
24
+ string,
25
+ RegistrySharingScope
26
+ > = openEnums.outboundSchema(RegistrySharingScope);
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 27330130c02e
4
+ */
5
+
6
+ import * as z from "zod/v4";
7
+ import { remap as remap$ } from "../../lib/primitives.js";
8
+ import { safeParse } from "../../lib/schemas.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type RequestUploadUrlResponse = {
13
+ /**
14
+ * Temporary signed URL for uploading a document to blob storage.
15
+ */
16
+ signedUrl: string;
17
+ };
18
+
19
+ /** @internal */
20
+ export const RequestUploadUrlResponse$inboundSchema: z.ZodType<
21
+ RequestUploadUrlResponse,
22
+ unknown
23
+ > = z.object({
24
+ signed_url: z.string(),
25
+ }).transform((v) => {
26
+ return remap$(v, {
27
+ "signed_url": "signedUrl",
28
+ });
29
+ });
30
+
31
+ export function requestUploadUrlResponseFromJSON(
32
+ jsonString: string,
33
+ ): SafeParseResult<RequestUploadUrlResponse, SDKValidationError> {
34
+ return safeParse(
35
+ jsonString,
36
+ (x) => RequestUploadUrlResponse$inboundSchema.parse(JSON.parse(x)),
37
+ `Failed to parse 'RequestUploadUrlResponse' from JSON`,
38
+ );
39
+ }
@@ -0,0 +1,77 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 762b25305020
4
+ */
5
+
6
+ import * as z from "zod/v4";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ RegistrySharingScope,
12
+ RegistrySharingScope$inboundSchema,
13
+ } from "./registrysharingscope.js";
14
+ import {
15
+ SkillDefinition,
16
+ SkillDefinition$inboundSchema,
17
+ } from "./skilldefinition.js";
18
+
19
+ export type Skill = {
20
+ id?: string | undefined;
21
+ /**
22
+ * Stable object name.
23
+ */
24
+ name?: string | undefined;
25
+ /**
26
+ * Versioned skill content.
27
+ */
28
+ definition?: SkillDefinition | undefined;
29
+ version?: number | undefined;
30
+ /**
31
+ * Notes for this version.
32
+ */
33
+ notes?: string | undefined;
34
+ /**
35
+ * Aliases pointing to this version.
36
+ */
37
+ aliases?: Array<string> | undefined;
38
+ sharingScope?: RegistrySharingScope | undefined;
39
+ /**
40
+ * RFC 3339 timestamp.
41
+ */
42
+ createdAt?: Date | undefined;
43
+ /**
44
+ * RFC 3339 timestamp.
45
+ */
46
+ updatedAt?: Date | undefined;
47
+ /**
48
+ * Latest version number.
49
+ */
50
+ latestVersion?: number | undefined;
51
+ };
52
+
53
+ /** @internal */
54
+ export const Skill$inboundSchema: z.ZodType<Skill, unknown> = z.object({
55
+ id: z.string().optional(),
56
+ name: z.string().optional(),
57
+ definition: SkillDefinition$inboundSchema.optional(),
58
+ version: z.int().optional(),
59
+ notes: z.string().optional(),
60
+ aliases: z.array(z.string()).optional(),
61
+ sharingScope: RegistrySharingScope$inboundSchema.optional(),
62
+ createdAt: z.iso.datetime({ offset: true }).transform(v => new Date(v))
63
+ .optional(),
64
+ updatedAt: z.iso.datetime({ offset: true }).transform(v => new Date(v))
65
+ .optional(),
66
+ latestVersion: z.int().optional(),
67
+ });
68
+
69
+ export function skillFromJSON(
70
+ jsonString: string,
71
+ ): SafeParseResult<Skill, SDKValidationError> {
72
+ return safeParse(
73
+ jsonString,
74
+ (x) => Skill$inboundSchema.parse(JSON.parse(x)),
75
+ `Failed to parse 'Skill' from JSON`,
76
+ );
77
+ }
@@ -0,0 +1,137 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 6f35b94388b6
4
+ */
5
+
6
+ import * as z from "zod/v4";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { smartUnion } from "../../types/smartUnion.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type SkillAssetContentTextContent = {
13
+ textContent: string;
14
+ isExecutable?: boolean | undefined;
15
+ };
16
+
17
+ export type RawContent = {
18
+ rawContent: string;
19
+ isExecutable?: boolean | undefined;
20
+ };
21
+
22
+ export type SkillAssetContent = RawContent | SkillAssetContentTextContent;
23
+
24
+ /** @internal */
25
+ export const SkillAssetContentTextContent$inboundSchema: z.ZodType<
26
+ SkillAssetContentTextContent,
27
+ unknown
28
+ > = z.object({
29
+ textContent: z.string(),
30
+ isExecutable: z.boolean().optional(),
31
+ });
32
+ /** @internal */
33
+ export type SkillAssetContentTextContent$Outbound = {
34
+ textContent: string;
35
+ isExecutable?: boolean | undefined;
36
+ };
37
+
38
+ /** @internal */
39
+ export const SkillAssetContentTextContent$outboundSchema: z.ZodType<
40
+ SkillAssetContentTextContent$Outbound,
41
+ SkillAssetContentTextContent
42
+ > = z.object({
43
+ textContent: z.string(),
44
+ isExecutable: z.boolean().optional(),
45
+ });
46
+
47
+ export function skillAssetContentTextContentToJSON(
48
+ skillAssetContentTextContent: SkillAssetContentTextContent,
49
+ ): string {
50
+ return JSON.stringify(
51
+ SkillAssetContentTextContent$outboundSchema.parse(
52
+ skillAssetContentTextContent,
53
+ ),
54
+ );
55
+ }
56
+ export function skillAssetContentTextContentFromJSON(
57
+ jsonString: string,
58
+ ): SafeParseResult<SkillAssetContentTextContent, SDKValidationError> {
59
+ return safeParse(
60
+ jsonString,
61
+ (x) => SkillAssetContentTextContent$inboundSchema.parse(JSON.parse(x)),
62
+ `Failed to parse 'SkillAssetContentTextContent' from JSON`,
63
+ );
64
+ }
65
+
66
+ /** @internal */
67
+ export const RawContent$inboundSchema: z.ZodType<RawContent, unknown> = z
68
+ .object({
69
+ rawContent: z.string(),
70
+ isExecutable: z.boolean().optional(),
71
+ });
72
+ /** @internal */
73
+ export type RawContent$Outbound = {
74
+ rawContent: string;
75
+ isExecutable?: boolean | undefined;
76
+ };
77
+
78
+ /** @internal */
79
+ export const RawContent$outboundSchema: z.ZodType<
80
+ RawContent$Outbound,
81
+ RawContent
82
+ > = z.object({
83
+ rawContent: z.string(),
84
+ isExecutable: z.boolean().optional(),
85
+ });
86
+
87
+ export function rawContentToJSON(rawContent: RawContent): string {
88
+ return JSON.stringify(RawContent$outboundSchema.parse(rawContent));
89
+ }
90
+ export function rawContentFromJSON(
91
+ jsonString: string,
92
+ ): SafeParseResult<RawContent, SDKValidationError> {
93
+ return safeParse(
94
+ jsonString,
95
+ (x) => RawContent$inboundSchema.parse(JSON.parse(x)),
96
+ `Failed to parse 'RawContent' from JSON`,
97
+ );
98
+ }
99
+
100
+ /** @internal */
101
+ export const SkillAssetContent$inboundSchema: z.ZodType<
102
+ SkillAssetContent,
103
+ unknown
104
+ > = smartUnion([
105
+ z.lazy(() => RawContent$inboundSchema),
106
+ z.lazy(() => SkillAssetContentTextContent$inboundSchema),
107
+ ]);
108
+ /** @internal */
109
+ export type SkillAssetContent$Outbound =
110
+ | RawContent$Outbound
111
+ | SkillAssetContentTextContent$Outbound;
112
+
113
+ /** @internal */
114
+ export const SkillAssetContent$outboundSchema: z.ZodType<
115
+ SkillAssetContent$Outbound,
116
+ SkillAssetContent
117
+ > = smartUnion([
118
+ z.lazy(() => RawContent$outboundSchema),
119
+ z.lazy(() => SkillAssetContentTextContent$outboundSchema),
120
+ ]);
121
+
122
+ export function skillAssetContentToJSON(
123
+ skillAssetContent: SkillAssetContent,
124
+ ): string {
125
+ return JSON.stringify(
126
+ SkillAssetContent$outboundSchema.parse(skillAssetContent),
127
+ );
128
+ }
129
+ export function skillAssetContentFromJSON(
130
+ jsonString: string,
131
+ ): SafeParseResult<SkillAssetContent, SDKValidationError> {
132
+ return safeParse(
133
+ jsonString,
134
+ (x) => SkillAssetContent$inboundSchema.parse(JSON.parse(x)),
135
+ `Failed to parse 'SkillAssetContent' from JSON`,
136
+ );
137
+ }
@@ -0,0 +1,74 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 4e9a30e817bb
4
+ */
5
+
6
+ import * as z from "zod/v4";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ SkillAssetContent,
12
+ SkillAssetContent$inboundSchema,
13
+ SkillAssetContent$Outbound,
14
+ SkillAssetContent$outboundSchema,
15
+ } from "./skillassetcontent.js";
16
+
17
+ /**
18
+ * Versioned skill content.
19
+ */
20
+ export type SkillDefinition = {
21
+ /**
22
+ * Model-facing trigger and usage description.
23
+ */
24
+ description?: string | undefined;
25
+ /**
26
+ * Skill body content.
27
+ */
28
+ body: string;
29
+ /**
30
+ * Additional files available to the skill.
31
+ */
32
+ assets?: { [k: string]: SkillAssetContent } | undefined;
33
+ };
34
+
35
+ /** @internal */
36
+ export const SkillDefinition$inboundSchema: z.ZodType<
37
+ SkillDefinition,
38
+ unknown
39
+ > = z.object({
40
+ description: z.string().optional(),
41
+ body: z.string(),
42
+ assets: z.record(z.string(), SkillAssetContent$inboundSchema).optional(),
43
+ });
44
+ /** @internal */
45
+ export type SkillDefinition$Outbound = {
46
+ description?: string | undefined;
47
+ body: string;
48
+ assets?: { [k: string]: SkillAssetContent$Outbound } | undefined;
49
+ };
50
+
51
+ /** @internal */
52
+ export const SkillDefinition$outboundSchema: z.ZodType<
53
+ SkillDefinition$Outbound,
54
+ SkillDefinition
55
+ > = z.object({
56
+ description: z.string().optional(),
57
+ body: z.string(),
58
+ assets: z.record(z.string(), SkillAssetContent$outboundSchema).optional(),
59
+ });
60
+
61
+ export function skillDefinitionToJSON(
62
+ skillDefinition: SkillDefinition,
63
+ ): string {
64
+ return JSON.stringify(SkillDefinition$outboundSchema.parse(skillDefinition));
65
+ }
66
+ export function skillDefinitionFromJSON(
67
+ jsonString: string,
68
+ ): SafeParseResult<SkillDefinition, SDKValidationError> {
69
+ return safeParse(
70
+ jsonString,
71
+ (x) => SkillDefinition$inboundSchema.parse(JSON.parse(x)),
72
+ `Failed to parse 'SkillDefinition' from JSON`,
73
+ );
74
+ }
@@ -0,0 +1,54 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: c602e6218b20
4
+ */
5
+
6
+ import * as z from "zod/v4";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ SkillDefinition,
12
+ SkillDefinition$inboundSchema,
13
+ } from "./skilldefinition.js";
14
+
15
+ export type SkillVersion = {
16
+ version?: number | undefined;
17
+ /**
18
+ * Versioned skill content.
19
+ */
20
+ definition?: SkillDefinition | undefined;
21
+ /**
22
+ * Notes for this version.
23
+ */
24
+ notes?: string | undefined;
25
+ /**
26
+ * Aliases pointing to this version.
27
+ */
28
+ aliases?: Array<string> | undefined;
29
+ /**
30
+ * RFC 3339 timestamp.
31
+ */
32
+ createdAt?: Date | undefined;
33
+ };
34
+
35
+ /** @internal */
36
+ export const SkillVersion$inboundSchema: z.ZodType<SkillVersion, unknown> = z
37
+ .object({
38
+ version: z.int().optional(),
39
+ definition: SkillDefinition$inboundSchema.optional(),
40
+ notes: z.string().optional(),
41
+ aliases: z.array(z.string()).optional(),
42
+ createdAt: z.iso.datetime({ offset: true }).transform(v => new Date(v))
43
+ .optional(),
44
+ });
45
+
46
+ export function skillVersionFromJSON(
47
+ jsonString: string,
48
+ ): SafeParseResult<SkillVersion, SDKValidationError> {
49
+ return safeParse(
50
+ jsonString,
51
+ (x) => SkillVersion$inboundSchema.parse(JSON.parse(x)),
52
+ `Failed to parse 'SkillVersion' from JSON`,
53
+ );
54
+ }
@@ -132,10 +132,12 @@ export * from "./judgedatasetrecordv1observabilitydatasetrecordsdatasetrecordidl
132
132
  export * from "./librariesdeletev1.js";
133
133
  export * from "./librariesdocumentsdeletev1.js";
134
134
  export * from "./librariesdocumentsgetextractedtextsignedurlv1.js";
135
+ export * from "./librariesdocumentsgetsigneduploadurlv1.js";
135
136
  export * from "./librariesdocumentsgetsignedurlv1.js";
136
137
  export * from "./librariesdocumentsgetstatusv1.js";
137
138
  export * from "./librariesdocumentsgettextcontentv1.js";
138
139
  export * from "./librariesdocumentsgetv1.js";
140
+ export * from "./librariesdocumentsingestfromblobstoragev1.js";
139
141
  export * from "./librariesdocumentslistv1.js";
140
142
  export * from "./librariesdocumentspatchv1.js";
141
143
  export * from "./librariesdocumentsreprocessv1.js";
@@ -158,6 +160,15 @@ export * from "./postdatasetrecordsfromdatasetv1observabilitydatasetsdatasetidim
158
160
  export * from "./postdatasetrecordsfromexplorerv1observabilitydatasetsdatasetidimportsfromexplorerpost.js";
159
161
  export * from "./postdatasetrecordsfromfilev1observabilitydatasetsdatasetidimportsfromfilepost.js";
160
162
  export * from "./postdatasetrecordsfromplaygroundv1observabilitydatasetsdatasetidimportsfromplaygroundpost.js";
163
+ export * from "./promptscreate.js";
164
+ export * from "./promptscreateversion.js";
165
+ export * from "./promptsdelete.js";
166
+ export * from "./promptsget.js";
167
+ export * from "./promptsgetversion.js";
168
+ export * from "./promptslist.js";
169
+ export * from "./promptslistversions.js";
170
+ export * from "./promptsupdate.js";
171
+ export * from "./promptsupdateversionmetadata.js";
161
172
  export * from "./queryworkflowexecutionv1workflowsexecutionsexecutionidqueriespost.js";
162
173
  export * from "./resetworkflowv1workflowsexecutionsexecutionidresetpost.js";
163
174
  export * from "./resumeschedulev1workflowsschedulesscheduleidresumepost.js";
@@ -170,6 +181,15 @@ export * from "./searchtracesv1observabilitytracessearchpost.js";
170
181
  export * from "./setindexsummaryv1ragindexesindexindexidsummaryfieldput.js";
171
182
  export * from "./setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldput.js";
172
183
  export * from "./signalworkflowexecutionv1workflowsexecutionsexecutionidsignalspost.js";
184
+ export * from "./skillscreate.js";
185
+ export * from "./skillscreateversion.js";
186
+ export * from "./skillsdelete.js";
187
+ export * from "./skillsget.js";
188
+ export * from "./skillsgetversion.js";
189
+ export * from "./skillslist.js";
190
+ export * from "./skillslistversions.js";
191
+ export * from "./skillsupdate.js";
192
+ export * from "./skillsupdateversionmetadata.js";
173
193
  export * from "./speechv1audiospeechpost.js";
174
194
  export * from "./streamdeploymentlogs.js";
175
195
  export * from "./streamv1workflowsexecutionsexecutionidstreamget.js";