@keboola/api-client 29.0.0 → 32.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 (396) hide show
  1. package/AGENTS.md +11 -5
  2. package/API-SURFACE.md +7 -2
  3. package/CHANGELOG.md +1890 -0
  4. package/README.md +45 -19
  5. package/dist/{ManagementClientAuthError-ZJ2-RoKT.cjs → ManagementClientAuthError-B-tyPlyG.cjs} +2 -2
  6. package/dist/{ManagementClientAuthError-ZJ2-RoKT.cjs.map → ManagementClientAuthError-B-tyPlyG.cjs.map} +1 -1
  7. package/dist/{ManagementClientAuthError-B97OtOQ7.js → ManagementClientAuthError-BAFNvOdf.js} +2 -2
  8. package/dist/{ManagementClientAuthError-B97OtOQ7.js.map → ManagementClientAuthError-BAFNvOdf.js.map} +1 -1
  9. package/dist/ai/index.cjs +2 -2
  10. package/dist/ai/index.d.cts +2 -2
  11. package/dist/ai/index.d.ts +2 -2
  12. package/dist/ai/index.js +2 -2
  13. package/dist/ai/types.d.cts +1 -1
  14. package/dist/ai/types.d.ts +1 -1
  15. package/dist/{appLogs-Dl5BcCSD.d.cts → appLogs-BAaaGYKg.d.cts} +2 -2
  16. package/dist/{appLogs-enL9XR9r.js → appLogs-DTLE6HTy.js} +2 -2
  17. package/dist/{appLogs-enL9XR9r.js.map → appLogs-DTLE6HTy.js.map} +1 -1
  18. package/dist/{appLogs-VdgP08aX.d.ts → appLogs-DX_WTBCa.d.ts} +2 -2
  19. package/dist/{appLogs-CNG3yby-.cjs → appLogs-NIEDTDHf.cjs} +2 -2
  20. package/dist/{appLogs-CNG3yby-.cjs.map → appLogs-NIEDTDHf.cjs.map} +1 -1
  21. package/dist/apps/index.cjs +3 -3
  22. package/dist/apps/index.d.cts +3 -3
  23. package/dist/apps/index.d.ts +3 -3
  24. package/dist/apps/index.js +3 -3
  25. package/dist/apps/types.d.cts +2 -2
  26. package/dist/apps/types.d.ts +2 -2
  27. package/dist/assets/index.cjs +1 -1
  28. package/dist/assets/index.d.cts +1 -1
  29. package/dist/assets/index.d.ts +1 -1
  30. package/dist/assets/index.js +1 -1
  31. package/dist/auth/index.cjs +2 -1
  32. package/dist/auth/index.d.cts +2 -2
  33. package/dist/auth/index.d.ts +2 -2
  34. package/dist/auth/index.js +2 -2
  35. package/dist/auth/types.d.cts +2 -2
  36. package/dist/auth/types.d.ts +2 -2
  37. package/dist/{auth-5HCvCsZO.cjs → auth-DP-6TFiM.cjs} +2 -2
  38. package/dist/{auth-5HCvCsZO.cjs.map → auth-DP-6TFiM.cjs.map} +1 -1
  39. package/dist/{auth-D2jfNlpX.js → auth-DtbQaeDj.js} +2 -2
  40. package/dist/{auth-D2jfNlpX.js.map → auth-DtbQaeDj.js.map} +1 -1
  41. package/dist/{authClient-DOk6VKdV.js → authClient--BtZgjIc.js} +76 -11
  42. package/dist/authClient--BtZgjIc.js.map +1 -0
  43. package/dist/{authClient-Dsd7W99W.d.ts → authClient-CtfyVHRD.d.ts} +52 -5
  44. package/dist/{authClient-Bgj2Ay7h.d.cts → authClient-DhfzOUaa.d.cts} +52 -5
  45. package/dist/{authClient-Z8Eg8rlN.cjs → authClient-b7uec7sw.cjs} +81 -10
  46. package/dist/authClient-b7uec7sw.cjs.map +1 -0
  47. package/dist/chat/index.cjs +3 -3
  48. package/dist/chat/index.d.cts +2 -7
  49. package/dist/chat/index.d.ts +2 -7
  50. package/dist/chat/index.js +3 -3
  51. package/dist/chat/types.d.cts +1 -1
  52. package/dist/chat/types.d.ts +1 -1
  53. package/dist/{configurations-CujCwDcB.cjs → configurations-Ck-mNB_E.cjs} +2 -2
  54. package/dist/{configurations-CujCwDcB.cjs.map → configurations-Ck-mNB_E.cjs.map} +1 -1
  55. package/dist/{configurations-DCOJONZZ.cjs → configurations-CqwAxiQL.cjs} +5 -1
  56. package/dist/configurations-CqwAxiQL.cjs.map +1 -0
  57. package/dist/{configurations-Byt59bIa.js → configurations-ZwBXilW-.js} +2 -2
  58. package/dist/{configurations-Byt59bIa.js.map → configurations-ZwBXilW-.js.map} +1 -1
  59. package/dist/{configurations-iCbhe0tb.js → configurations-d7SZmw69.js} +5 -1
  60. package/dist/configurations-d7SZmw69.js.map +1 -0
  61. package/dist/constants/index.cjs +4 -1
  62. package/dist/constants/index.d.cts +3 -2
  63. package/dist/constants/index.d.ts +3 -2
  64. package/dist/constants/index.js +2 -2
  65. package/dist/{constants-CqyyBkXW.cjs → constants-ByEwVtGf.js} +48 -25
  66. package/dist/constants-ByEwVtGf.js.map +1 -0
  67. package/dist/{constants-_HhqKvBg.js → constants-lIfSdTzS.cjs} +89 -2
  68. package/dist/constants-lIfSdTzS.cjs.map +1 -0
  69. package/dist/{createFetchClient-BsG719K1.cjs → createFetchClient-BRfTjBLV.cjs} +29 -10
  70. package/dist/createFetchClient-BRfTjBLV.cjs.map +1 -0
  71. package/dist/{createFetchClient-BK0TZK-U.js → createFetchClient-BbG46bL0.js} +24 -11
  72. package/dist/createFetchClient-BbG46bL0.js.map +1 -0
  73. package/dist/{createGenericFetchClient-CVZYekDk.js → createGenericFetchClient-BHYQLZhe.js} +2 -2
  74. package/dist/{createGenericFetchClient-CVZYekDk.js.map → createGenericFetchClient-BHYQLZhe.js.map} +1 -1
  75. package/dist/{createGenericFetchClient-DLbjX0eM.cjs → createGenericFetchClient-DHs-i7_O.cjs} +2 -2
  76. package/dist/{createGenericFetchClient-DLbjX0eM.cjs.map → createGenericFetchClient-DHs-i7_O.cjs.map} +1 -1
  77. package/dist/{createOpenapiFetchClient-B5U1fCHS.js → createOpenapiFetchClient-Bn6_Pn0H.js} +2 -2
  78. package/dist/{createOpenapiFetchClient-B5U1fCHS.js.map → createOpenapiFetchClient-Bn6_Pn0H.js.map} +1 -1
  79. package/dist/{createOpenapiFetchClient-Cr90VXY4.cjs → createOpenapiFetchClient-CyDUFxHB.cjs} +2 -2
  80. package/dist/{createOpenapiFetchClient-Cr90VXY4.cjs.map → createOpenapiFetchClient-CyDUFxHB.cjs.map} +1 -1
  81. package/dist/{credential-0c6yFwtp.cjs → credential-DOXH7XRS.cjs} +2 -2
  82. package/dist/{credential-0c6yFwtp.cjs.map → credential-DOXH7XRS.cjs.map} +1 -1
  83. package/dist/{credential-kEGLnVez.js → credential-d2RDcXRB.js} +2 -2
  84. package/dist/{credential-kEGLnVez.js.map → credential-d2RDcXRB.js.map} +1 -1
  85. package/dist/dataScience/index.cjs +2 -2
  86. package/dist/dataScience/index.d.cts +2 -2
  87. package/dist/dataScience/index.d.ts +2 -2
  88. package/dist/dataScience/index.js +2 -2
  89. package/dist/dataScience/types.d.cts +2 -2
  90. package/dist/dataScience/types.d.ts +2 -2
  91. package/dist/{dataScience-CE0pSWbl.js → dataScience-Sm8iONhP.js} +5 -5
  92. package/dist/{dataScience-CE0pSWbl.js.map → dataScience-Sm8iONhP.js.map} +1 -1
  93. package/dist/{dataScience-C-JrA0Uk.cjs → dataScience-wexHEIue.cjs} +5 -5
  94. package/dist/{dataScience-C-JrA0Uk.cjs.map → dataScience-wexHEIue.cjs.map} +1 -1
  95. package/dist/developerPortal/index.cjs +1 -1
  96. package/dist/developerPortal/index.d.cts +2 -2
  97. package/dist/developerPortal/index.d.ts +2 -2
  98. package/dist/developerPortal/index.js +1 -1
  99. package/dist/developerPortal/types.d.cts +1 -1
  100. package/dist/developerPortal/types.d.ts +1 -1
  101. package/dist/{developerPortalClient-C8oq48xW.cjs → developerPortalClient-CgTSzLoG.cjs} +3 -3
  102. package/dist/{developerPortalClient-C8oq48xW.cjs.map → developerPortalClient-CgTSzLoG.cjs.map} +1 -1
  103. package/dist/{developerPortalClient-BPPEAdJW.js → developerPortalClient-DywKpDlW.js} +3 -3
  104. package/dist/{developerPortalClient-BPPEAdJW.js.map → developerPortalClient-DywKpDlW.js.map} +1 -1
  105. package/dist/domain/permissions/index.cjs +63 -1
  106. package/dist/domain/permissions/index.cjs.map +1 -0
  107. package/dist/domain/permissions/index.d.cts +52 -3
  108. package/dist/domain/permissions/index.d.ts +52 -3
  109. package/dist/domain/permissions/index.js +59 -2
  110. package/dist/domain/permissions/index.js.map +1 -0
  111. package/dist/editor/index.cjs +2 -2
  112. package/dist/editor/index.d.cts +2 -2
  113. package/dist/editor/index.d.ts +2 -2
  114. package/dist/editor/index.js +2 -2
  115. package/dist/editor/types.d.cts +1 -1
  116. package/dist/editor/types.d.ts +1 -1
  117. package/dist/encryption/index.cjs +1 -1
  118. package/dist/encryption/index.d.cts +1 -1
  119. package/dist/encryption/index.d.ts +1 -1
  120. package/dist/encryption/index.js +1 -1
  121. package/dist/encryption/types.d.cts +1 -1
  122. package/dist/encryption/types.d.ts +1 -1
  123. package/dist/import/index.cjs +1 -1
  124. package/dist/import/index.d.cts +3 -3
  125. package/dist/import/index.d.ts +3 -3
  126. package/dist/import/index.js +1 -1
  127. package/dist/{import-KLH1uRtx.cjs → import-C0-y1GQK.cjs} +3 -3
  128. package/dist/{import-KLH1uRtx.cjs.map → import-C0-y1GQK.cjs.map} +1 -1
  129. package/dist/{import-Cf0W-7YD.js → import-SQuurg1G.js} +3 -3
  130. package/dist/{import-Cf0W-7YD.js.map → import-SQuurg1G.js.map} +1 -1
  131. package/dist/{index-BEKaJ7Cc.d.cts → index-BKh0prif.d.cts} +4 -4
  132. package/dist/{index-KKJkrxjx.d.ts → index-Bc_hXWae.d.ts} +3 -3
  133. package/dist/{index-DYQt4zxC.d.ts → index-Bg1P6Bb2.d.ts} +6 -6
  134. package/dist/{index-DplMbm9E.d.cts → index-Bjk-tCpG.d.cts} +548 -3073
  135. package/dist/{index-eEBVG5s3.d.cts → index-C7e3wBt9.d.cts} +3 -3
  136. package/dist/{index-8pN6Emos.d.ts → index-CQrKS7PV.d.cts} +24 -4
  137. package/dist/{index-DVsnxZap.d.cts → index-CXtdQ7be.d.cts} +4 -4
  138. package/dist/{index-CLPrlyIz.d.cts → index-CeJOmN-P.d.ts} +24 -4
  139. package/dist/{index-BmjeNd9u.d.ts → index-Ctqkm3Fx.d.ts} +4 -4
  140. package/dist/{index-WQkVzx5e.d.cts → index-D_7yCRKy.d.cts} +4 -4
  141. package/dist/{index-DNlX-H1V.d.ts → index-Dbzjvy5h.d.ts} +5 -5
  142. package/dist/{index-BWBScAYc.d.cts → index-DeKPpYQy.d.ts} +3 -3
  143. package/dist/{index-DXi6wsr5.d.cts → index-DiHHyMEo.d.cts} +6 -6
  144. package/dist/{index-IN0qzs52.d.cts → index-DqOAjqxN.d.cts} +5 -5
  145. package/dist/{index-Dwp8tF6O.d.ts → index-FhKX7Cv1.d.ts} +548 -3073
  146. package/dist/{index-BthgbVdd.d.ts → index-GDdFZCXp.d.ts} +4 -4
  147. package/dist/{index-CXQRvZ-f.d.cts → index-Gn1H63Hk.d.cts} +4 -4
  148. package/dist/{index-vb9Rfqca.d.ts → index-NaYLwG_h.d.cts} +155 -4
  149. package/dist/{index-vb9Rfqca.d.cts → index-NaYLwG_h.d.ts} +155 -4
  150. package/dist/{index-DIM8KZly.d.ts → index-eAlN694c.d.cts} +3 -3
  151. package/dist/{index-Cfrl7sd5.d.ts → index-fHfc_VqS.d.ts} +4 -4
  152. package/dist/{index-CeistZnj.d.ts → index-tKsiUarj.d.ts} +4 -4
  153. package/dist/index.cjs +46 -225
  154. package/dist/index.cjs.map +1 -1
  155. package/dist/index.d.cts +6 -6
  156. package/dist/index.d.ts +6 -6
  157. package/dist/index.js +44 -226
  158. package/dist/index.js.map +1 -1
  159. package/dist/kaiAgent/index.cjs +3 -0
  160. package/dist/kaiAgent/index.d.cts +210 -0
  161. package/dist/kaiAgent/index.d.ts +210 -0
  162. package/dist/kaiAgent/index.js +2 -0
  163. package/dist/kaiAgent/types.cjs +0 -0
  164. package/dist/kaiAgent/types.d.cts +2 -0
  165. package/dist/kaiAgent/types.d.ts +2 -0
  166. package/dist/kaiAgent/types.js +1 -0
  167. package/dist/kaiAgent-4OiIK1C2.cjs +222 -0
  168. package/dist/kaiAgent-4OiIK1C2.cjs.map +1 -0
  169. package/dist/kaiAgent-HDaFS9BR.js +217 -0
  170. package/dist/kaiAgent-HDaFS9BR.js.map +1 -0
  171. package/dist/management/index.cjs +1 -1
  172. package/dist/management/index.d.cts +1 -1
  173. package/dist/management/index.d.ts +1 -1
  174. package/dist/management/index.js +1 -1
  175. package/dist/management/types.d.cts +1 -1
  176. package/dist/management/types.d.ts +1 -1
  177. package/dist/{management-DqwQcDCx.js → management-CIFhu1Nm.js} +6 -7
  178. package/dist/management-CIFhu1Nm.js.map +1 -0
  179. package/dist/{management-WOmlBt6H.cjs → management-DfjwQo7z.cjs} +6 -7
  180. package/dist/management-DfjwQo7z.cjs.map +1 -0
  181. package/dist/metastore/index.cjs +1 -1
  182. package/dist/metastore/index.d.cts +1 -1
  183. package/dist/metastore/index.d.ts +1 -1
  184. package/dist/metastore/index.js +1 -1
  185. package/dist/metastore/types.d.cts +1 -1
  186. package/dist/metastore/types.d.ts +1 -1
  187. package/dist/{metastore-CNEhL66f.js → metastore-CrXkKufo.js} +4 -4
  188. package/dist/{metastore-CNEhL66f.js.map → metastore-CrXkKufo.js.map} +1 -1
  189. package/dist/{metastore-CkQluyX1.cjs → metastore-Dq2NS6jb.cjs} +4 -4
  190. package/dist/{metastore-CkQluyX1.cjs.map → metastore-Dq2NS6jb.cjs.map} +1 -1
  191. package/dist/microsoftGraph/index.cjs +92 -0
  192. package/dist/microsoftGraph/index.cjs.map +1 -0
  193. package/dist/microsoftGraph/index.d.cts +305 -0
  194. package/dist/microsoftGraph/index.d.ts +305 -0
  195. package/dist/microsoftGraph/index.js +90 -0
  196. package/dist/microsoftGraph/index.js.map +1 -0
  197. package/dist/microsoftGraph/types.cjs +0 -0
  198. package/dist/microsoftGraph/types.d.cts +10 -0
  199. package/dist/microsoftGraph/types.d.ts +10 -0
  200. package/dist/microsoftGraph/types.js +1 -0
  201. package/dist/notifications/index.cjs +3 -3
  202. package/dist/notifications/index.d.cts +2 -2
  203. package/dist/notifications/index.d.ts +2 -2
  204. package/dist/notifications/index.js +3 -3
  205. package/dist/notifications/types.d.cts +1 -1
  206. package/dist/notifications/types.d.ts +1 -1
  207. package/dist/oauth/index.cjs +1 -1
  208. package/dist/oauth/index.d.cts +2 -2
  209. package/dist/oauth/index.d.ts +2 -2
  210. package/dist/oauth/index.js +1 -1
  211. package/dist/oauth/types.d.cts +1 -1
  212. package/dist/oauth/types.d.ts +1 -1
  213. package/dist/{oauth-DYDObUX9.js → oauth-CFwSNz37.js} +5 -5
  214. package/dist/{oauth-DYDObUX9.js.map → oauth-CFwSNz37.js.map} +1 -1
  215. package/dist/{oauth-DTvrqe6P.cjs → oauth-CkW5gln-.cjs} +5 -5
  216. package/dist/{oauth-DTvrqe6P.cjs.map → oauth-CkW5gln-.cjs.map} +1 -1
  217. package/dist/omnisearch/index.cjs +2 -2
  218. package/dist/omnisearch/index.d.cts +2 -2
  219. package/dist/omnisearch/index.d.ts +2 -2
  220. package/dist/omnisearch/index.js +2 -2
  221. package/dist/omnisearch/types.d.cts +1 -1
  222. package/dist/omnisearch/types.d.ts +1 -1
  223. package/dist/{project-io1pY-hW.d.ts → project-BOGaVs-q.d.ts} +2 -2
  224. package/dist/{project-CcGxXIW_.d.cts → project-BnQkL8cb.d.cts} +2 -2
  225. package/dist/queryService/index.cjs +1 -1
  226. package/dist/queryService/index.d.cts +1 -1
  227. package/dist/queryService/index.d.ts +1 -1
  228. package/dist/queryService/index.js +1 -1
  229. package/dist/queryService/types.d.cts +1 -1
  230. package/dist/queryService/types.d.ts +1 -1
  231. package/dist/{queryService-CvqDqigW.cjs → queryService-BLaGbpm-.cjs} +5 -5
  232. package/dist/{queryService-CvqDqigW.cjs.map → queryService-BLaGbpm-.cjs.map} +1 -1
  233. package/dist/{queryService-BHV_OZI2.js → queryService-DK-jUnET.js} +5 -5
  234. package/dist/{queryService-BHV_OZI2.js.map → queryService-DK-jUnET.js.map} +1 -1
  235. package/dist/queue/index.cjs +1 -1
  236. package/dist/queue/index.d.cts +3 -3
  237. package/dist/queue/index.d.ts +3 -3
  238. package/dist/queue/index.js +1 -1
  239. package/dist/queue/types.d.cts +1 -1
  240. package/dist/queue/types.d.ts +1 -1
  241. package/dist/{queue-CUHKupTA.cjs → queue-B7TY4JLf.cjs} +4 -4
  242. package/dist/{queue-CUHKupTA.cjs.map → queue-B7TY4JLf.cjs.map} +1 -1
  243. package/dist/{queue-uofE4Eu6.js → queue-DViSQ-eq.js} +4 -4
  244. package/dist/{queue-uofE4Eu6.js.map → queue-DViSQ-eq.js.map} +1 -1
  245. package/dist/scheduler/index.cjs +3 -3
  246. package/dist/scheduler/index.d.cts +2 -2
  247. package/dist/scheduler/index.d.ts +2 -2
  248. package/dist/scheduler/index.js +3 -3
  249. package/dist/scheduler/types.d.cts +1 -1
  250. package/dist/scheduler/types.d.ts +1 -1
  251. package/dist/schema-D1oxyn1O.d.cts +8760 -0
  252. package/dist/schema-D1oxyn1O.d.ts +8760 -0
  253. package/dist/sdk/configurations/index.cjs +1 -1
  254. package/dist/sdk/configurations/index.d.cts +4 -4
  255. package/dist/sdk/configurations/index.d.ts +4 -4
  256. package/dist/sdk/configurations/index.js +1 -1
  257. package/dist/sdk/developerPortal/index.cjs +3 -3
  258. package/dist/sdk/developerPortal/index.d.cts +3 -3
  259. package/dist/sdk/developerPortal/index.d.ts +3 -3
  260. package/dist/sdk/developerPortal/index.js +3 -3
  261. package/dist/sdk/queryService/index.d.cts +1 -1
  262. package/dist/sdk/queryService/index.d.ts +1 -1
  263. package/dist/sdk/semanticLayer/index.d.cts +1 -1
  264. package/dist/sdk/semanticLayer/index.d.ts +1 -1
  265. package/dist/sdk/semanticLayer/types.d.cts +1 -1
  266. package/dist/sdk/semanticLayer/types.d.ts +1 -1
  267. package/dist/sdk/storage/index.d.cts +1 -1
  268. package/dist/sdk/storage/index.d.ts +1 -1
  269. package/dist/sdk/tag/index.d.cts +2 -2
  270. package/dist/sdk/tag/index.d.ts +2 -2
  271. package/dist/sdk/tag/types.d.cts +1 -1
  272. package/dist/sdk/tag/types.d.ts +1 -1
  273. package/dist/sdk/vault/index.d.cts +1 -1
  274. package/dist/sdk/vault/index.d.ts +1 -1
  275. package/dist/serviceIds-fHLDwOg9.d.cts +31 -0
  276. package/dist/serviceIds-fHLDwOg9.d.ts +31 -0
  277. package/dist/status/index.cjs +1 -1
  278. package/dist/status/index.d.cts +1 -1
  279. package/dist/status/index.d.ts +1 -1
  280. package/dist/status/index.js +1 -1
  281. package/dist/storage/index.cjs +6 -3
  282. package/dist/storage/index.d.cts +3 -3
  283. package/dist/storage/index.d.ts +3 -3
  284. package/dist/storage/index.js +5 -4
  285. package/dist/storage/types.d.cts +4 -3
  286. package/dist/storage/types.d.ts +4 -3
  287. package/dist/{storage-DbyNnkIJ.cjs → storage-CihHwZ7z.cjs} +153 -161
  288. package/dist/storage-CihHwZ7z.cjs.map +1 -0
  289. package/dist/{storage-luq7YBZF.js → storage-kgxscFEg.js} +153 -161
  290. package/dist/storage-kgxscFEg.js.map +1 -0
  291. package/dist/stream/index.cjs +3 -3
  292. package/dist/stream/index.d.cts +2 -2
  293. package/dist/stream/index.d.ts +2 -2
  294. package/dist/stream/index.js +3 -3
  295. package/dist/stream/types.d.cts +1 -1
  296. package/dist/stream/types.d.ts +1 -1
  297. package/dist/syncActions/index.cjs +1 -1
  298. package/dist/syncActions/index.d.cts +1 -1
  299. package/dist/syncActions/index.d.ts +1 -1
  300. package/dist/syncActions/index.js +1 -1
  301. package/dist/syncActions/types.d.cts +1 -1
  302. package/dist/syncActions/types.d.ts +1 -1
  303. package/dist/{syncActions-ssWWVN_4.js → syncActions-B75t0NwP.js} +5 -5
  304. package/dist/{syncActions-ssWWVN_4.js.map → syncActions-B75t0NwP.js.map} +1 -1
  305. package/dist/{syncActions-DKWeJ8GH.cjs → syncActions-CevF_TEb.cjs} +5 -5
  306. package/dist/{syncActions-DKWeJ8GH.cjs.map → syncActions-CevF_TEb.cjs.map} +1 -1
  307. package/dist/telemetry/index.cjs +1 -1
  308. package/dist/telemetry/index.d.cts +2 -2
  309. package/dist/telemetry/index.d.ts +2 -2
  310. package/dist/telemetry/index.js +1 -1
  311. package/dist/{telemetry-2IrE8HaZ.cjs → telemetry-DwlSLVAU.cjs} +3 -3
  312. package/dist/{telemetry-2IrE8HaZ.cjs.map → telemetry-DwlSLVAU.cjs.map} +1 -1
  313. package/dist/{telemetry-yQfQxBBI.js → telemetry-FXpodtJN.js} +3 -3
  314. package/dist/{telemetry-yQfQxBBI.js.map → telemetry-FXpodtJN.js.map} +1 -1
  315. package/dist/{types-DEKF5pbg.d.cts → types-Av2egS_l.d.ts} +408 -24
  316. package/dist/{types-DBOEA7l0.d.cts → types-B2vmg_UF.d.cts} +3 -3
  317. package/dist/{types-DMvU4kZ2.d.cts → types-B4jdPHoL.d.cts} +2 -2
  318. package/dist/{types-CAOvDtMC.d.cts → types-BH9ljNmj.d.cts} +2 -2
  319. package/dist/{types-QOIQ-dZU.d.cts → types-BI2jI-3-.d.cts} +3 -3
  320. package/dist/types-BMQW-2Yw.d.ts +2804 -0
  321. package/dist/{types-C8XiTXxi.d.cts → types-BREGN3qo.d.cts} +2 -2
  322. package/dist/{types-B1S2H7q1.d.ts → types-BTbczawY.d.ts} +2 -2
  323. package/dist/{types-CwvOcTOm.d.cts → types-BV2BDccJ.d.cts} +247 -430
  324. package/dist/{types-BREBK0xX.d.ts → types-BZBdLUpH.d.ts} +2 -2
  325. package/dist/{types-Z-vUwgym.d.ts → types-BlCoTm7n.d.ts} +2 -2
  326. package/dist/{types-CSmttcZ_.d.ts → types-BnaAo7xn.d.ts} +2 -2
  327. package/dist/{types-V8rC5if7.d.cts → types-BoV9M5Xg.d.cts} +2 -2
  328. package/dist/{types-BCt0EMiO.d.ts → types-Bpnpa2Wt.d.ts} +3 -3
  329. package/dist/{types-BhBvnvqe.d.ts → types-BptQ7jpP.d.cts} +408 -24
  330. package/dist/{types-x4xPlrr0.d.ts → types-ByWD2oeV.d.ts} +2 -2
  331. package/dist/{types-BefwoXik.d.cts → types-C1vhYcic.d.cts} +2 -2
  332. package/dist/{types-DwX1uxp_.d.ts → types-C2CLlR4i.d.ts} +2 -2
  333. package/dist/{types-BO-mTxKb.d.cts → types-CGH_lfxS.d.cts} +2 -16
  334. package/dist/{types-CyRK5z-E.d.cts → types-CJHi0zdD.d.cts} +2 -2
  335. package/dist/{types-DeApSCzx.d.cts → types-COIsNoTQ.d.cts} +2 -2
  336. package/dist/{types-DkbfBOBr.d.cts → types-COc-nind.d.cts} +2 -2
  337. package/dist/{types-DvsGS8By.d.cts → types-CPanB0p7.d.cts} +3 -3
  338. package/dist/{types-BmFyDKe6.d.ts → types-CXTqFYah.d.ts} +28 -7
  339. package/dist/{types-DS8uFAeq.d.cts → types-CcuG9cid.d.cts} +2 -2
  340. package/dist/{types-2mHlPakp.d.cts → types-Cj4bLPp5.d.cts} +28 -7
  341. package/dist/{types-SGuvOEV8.d.ts → types-CkcMoXRk.d.ts} +3 -3
  342. package/dist/{types-D2n3h1gp.d.ts → types-CpALS017.d.ts} +2 -16
  343. package/dist/{types-DCBKso0t.d.cts → types-CvkqEvhv.d.cts} +2 -2
  344. package/dist/{types-B1glyy_Q.d.ts → types-CyHZ1ZQe.d.ts} +2 -2
  345. package/dist/{types-B06L4-WE.d.cts → types-CyiRYRVq.d.cts} +3 -3
  346. package/dist/{types-CvADp-x-.d.ts → types-Cz1dj_TM.d.ts} +2 -2
  347. package/dist/{types-CjAia48k.d.ts → types-D-qI9ne4.d.ts} +2 -2
  348. package/dist/{types-CtdyAkzI.d.cts → types-D1uloiuY.d.cts} +2 -2
  349. package/dist/{types-CC0wymfG.d.ts → types-D6jKxUv_.d.ts} +247 -430
  350. package/dist/{types-CexuN7Mw.d.cts → types-DNXC_-fA.d.cts} +7 -5
  351. package/dist/{types-BpWqpMkL.d.ts → types-DeSd3gqW.d.ts} +3 -3
  352. package/dist/{types-BD6czYPH.d.ts → types-De_DA2ga.d.ts} +7 -5
  353. package/dist/{types-h9TTimS_.d.ts → types-Dfc58bPE.d.ts} +2 -2
  354. package/dist/{types-n4FFKqa4.d.ts → types-Di8VIZwQ.d.ts} +2 -2
  355. package/dist/{types--T-vBqdd.d.cts → types-DlbiVsVo.d.cts} +2 -2
  356. package/dist/types-DuiUN0h8.d.ts +33557 -0
  357. package/dist/{types-7H6Dnz0Y.d.ts → types-DwpRt3e9.d.ts} +2 -2
  358. package/dist/{types-CI1mW2lA.d.ts → types-EJEoI3ZK.d.ts} +2 -2
  359. package/dist/types-GuWtMCMn.d.cts +33557 -0
  360. package/dist/{types-BRQAKEC1.d.cts → types-MbcIiKDI.d.cts} +3 -3
  361. package/dist/{types-DebL68-g.d.ts → types-RfaldD4P.d.ts} +3 -3
  362. package/dist/{types-CbZ8aMKW.d.cts → types-cDU_J45_.d.cts} +2 -2
  363. package/dist/{types-bws2RtKq.d.ts → types-dybUhlU2.d.ts} +2 -2
  364. package/dist/types-iNlsdRkx.d.cts +2804 -0
  365. package/dist/{types-BXK6Ebtm.d.ts → types-sVYo0o9_.d.ts} +3 -3
  366. package/dist/{types-DgaYUtu_.d.cts → types-zA3H84SM.d.cts} +2 -2
  367. package/dist/validateConnectionStatus-BrLXkoSI.js +38 -0
  368. package/dist/validateConnectionStatus-BrLXkoSI.js.map +1 -0
  369. package/dist/validateConnectionStatus-V9q6Nl6u.cjs +55 -0
  370. package/dist/validateConnectionStatus-V9q6Nl6u.cjs.map +1 -0
  371. package/dist/vault/index.cjs +4 -4
  372. package/dist/vault/index.d.cts +1 -1
  373. package/dist/vault/index.d.ts +1 -1
  374. package/dist/vault/index.js +4 -4
  375. package/dist/vault/types.d.cts +1 -1
  376. package/dist/vault/types.d.ts +1 -1
  377. package/package.json +57 -4
  378. package/surface/auth.md +9 -2
  379. package/surface/chat.md +1 -1
  380. package/surface/kaiAgent.md +1 -0
  381. package/surface/sdk.md +4 -4
  382. package/surface/storage.md +44 -44
  383. package/dist/authClient-DOk6VKdV.js.map +0 -1
  384. package/dist/authClient-Z8Eg8rlN.cjs.map +0 -1
  385. package/dist/configurations-DCOJONZZ.cjs.map +0 -1
  386. package/dist/configurations-iCbhe0tb.js.map +0 -1
  387. package/dist/constants-CqyyBkXW.cjs.map +0 -1
  388. package/dist/constants-_HhqKvBg.js.map +0 -1
  389. package/dist/createFetchClient-BK0TZK-U.js.map +0 -1
  390. package/dist/createFetchClient-BsG719K1.cjs.map +0 -1
  391. package/dist/management-DqwQcDCx.js.map +0 -1
  392. package/dist/management-WOmlBt6H.cjs.map +0 -1
  393. package/dist/storage-DbyNnkIJ.cjs.map +0 -1
  394. package/dist/storage-luq7YBZF.js.map +0 -1
  395. package/dist/types-CRYtdj5w.d.ts +0 -18784
  396. package/dist/types-ISUNM_BR.d.cts +0 -18784
package/README.md CHANGED
@@ -522,24 +522,20 @@ apis:
522
522
 
523
523
  #### Step 2: Generate Types
524
524
 
525
- Run the type generation command:
525
+ Name the service you just registered, so the other schemas stay untouched:
526
526
 
527
527
  ```bash
528
- pnpm gen:types
528
+ pnpm --filter @keboola/api-client gen:types yourNewService
529
529
  ```
530
530
 
531
- This will create the TypeScript definitions at the specified output path. Leave the generated file's
532
- contents alone — `oxlint.config.ts` turns `consistent-type-definitions` off for
531
+ This will create the TypeScript definitions at the specified output path, already formatted. Leave
532
+ the generated file's contents alone — `oxlint.config.ts` turns `consistent-type-definitions` off for
533
533
  `src/clients/*/__generated__/*.d.ts`, so the `export interface operations` the generator emits
534
- despite `--export-type` is fine as it stands. Two mechanical steps do follow: run `oxfmt` on the new
535
- file (the raw output is 4-space), and revert the other schemas the command regenerated — it rewrites
536
- all of them, mostly reformatting. See
537
- [`docs/regenerate-api-types.md`](./docs/regenerate-api-types.md).
534
+ despite `--export-type` is fine as it stands.
538
535
 
539
- `gen:types` regenerates every source in `redocly.yaml`, so to generate only the new one, run
540
- `openapi-typescript` directly against its URL from a directory without a `redocly.yaml` (it
541
- auto-discovers the file up the tree and ignores a positional URL when it finds one) with an absolute
542
- `--output`.
536
+ Passing no service regenerates every source in `redocly.yaml`, which is a full refresh, not what
537
+ adding one client calls for. See [`docs/regenerate-api-types.md`](./docs/regenerate-api-types.md)
538
+ for the local-backend workflow and for services with no `redocly.yaml` entry.
543
539
 
544
540
  #### Step 3: Create the Client Implementation
545
541
 
@@ -624,15 +620,42 @@ import { createYourNewServiceClient } from './clients/yourNewService';
624
620
 
625
621
  ### Adding a New Generic Client
626
622
 
627
- Follow the same steps but use `createGenericFetchClient` instead of `createOpenapiFetchClient`. No `redocly.yaml` registration or `pnpm gen:types` step is needed. Define request/response types manually.
623
+ Follow the same steps but use `createGenericFetchClient` instead of `createOpenapiFetchClient`. No `redocly.yaml` registration or `gen:types` step is needed. Define request/response types manually.
624
+
625
+ ### `gen:types` — regenerating OpenAPI types
626
+
627
+ Every `__generated__/schema.d.ts` comes out of one command, scoped to the services you name:
628
+
629
+ ```bash
630
+ pnpm --filter @keboola/api-client gen:types --list # what can be regenerated
631
+ pnpm --filter @keboola/api-client gen:types storage # one service — leaves the rest alone
632
+ pnpm --filter @keboola/api-client gen:types chat queue # several
633
+ pnpm --filter @keboola/api-client gen:types # every API in redocly.yaml
634
+
635
+ # One service's spec from a local dev server instead of its registered URL:
636
+ pnpm --filter @keboola/api-client gen:types chat --url http://localhost:3001/api/docs
628
637
 
629
- ### OpenAPI Type Generation Workflow
638
+ ```
630
639
 
631
- 1. Update API specifications (if needed, edit `redocly.yaml`)
632
- 2. Run `pnpm gen:types` to regenerate TypeScript definitions
633
- 3. Review generated files in `__generated__/` directories
634
- 4. Update client implementation if the API surface changed
635
- 5. Always commit generated files to version control
640
+ A service is named by its `redocly.yaml` key. Local-backend ports for `chat` and `kaiAgent` are in
641
+ [`docs/regenerate-api-types.md`](./docs/regenerate-api-types.md).
642
+
643
+ How it behaves:
644
+
645
+ - **Only the named services' `schema.d.ts` files are rewritten**; every other schema is untouched.
646
+ (`openapi-typescript` has no per-API flag, so the script hands it a filtered copy of
647
+ `redocly.yaml` in a temp directory.)
648
+ - **Output is committable as generated** — the script runs `oxfmt` over it, so a diff is the spec
649
+ change, not whitespace. Commit the generated files.
650
+ - **Bad invocations exit non-zero** with the service listing appended: an unknown service name, or
651
+ `--url` with anything but exactly one service.
652
+ - **`microsoftGraph` is the one local `root`** — a committed slice of Microsoft's ~41MB Graph
653
+ document. A run that selects it re-vendors the slice from upstream first, so naming the service
654
+ fetches its current spec exactly as every URL root does; a run that doesn't select it can never
655
+ re-pin the slice. If the download fails, or an operation in the slice no longer exists upstream
656
+ (a Microsoft rename), the run warns, keeps the committed slice, and carries on — it only
657
+ hard-fails when there is no committed slice to fall back on. Why a slice at all:
658
+ [`scripts/vendor-microsoft-graph-spec.mjs`](./scripts/vendor-microsoft-graph-spec.mjs).
636
659
 
637
660
  ### redocly.yaml Configuration Reference
638
661
 
@@ -643,3 +666,6 @@ apis:
643
666
  x-openapi-ts:
644
667
  output: ./src/clients/serviceName/__generated__/schema.d.ts
645
668
  ```
669
+
670
+ `root` is normally a URL the generator fetches; the one local-file `root` (`microsoftGraph`) is the
671
+ vendored slice described in the [`gen:types` section](#gentypes--regenerating-openapi-types) above.
@@ -1,4 +1,4 @@
1
- const require_createFetchClient = require("./createFetchClient-BsG719K1.cjs");
1
+ const require_createFetchClient = require("./createFetchClient-BRfTjBLV.cjs");
2
2
  //#region src/errors/ManagementClientAuthError.ts
3
3
  var ManagementClientAuthError = class extends require_createFetchClient.ApiError {
4
4
  title;
@@ -17,4 +17,4 @@ Object.defineProperty(exports, "ManagementClientAuthError", {
17
17
  }
18
18
  });
19
19
 
20
- //# sourceMappingURL=ManagementClientAuthError-ZJ2-RoKT.cjs.map
20
+ //# sourceMappingURL=ManagementClientAuthError-B-tyPlyG.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ManagementClientAuthError-ZJ2-RoKT.cjs","names":["ApiError"],"sources":["../src/errors/ManagementClientAuthError.ts"],"sourcesContent":["import type { ApiResponse } from '../fetchClient/createFetchClient/types';\n\nimport { ApiError } from './ApiError';\n\nexport class ManagementClientAuthError extends ApiError {\n title: string;\n message: string;\n constructor(title: string, message: string, res: ApiResponse) {\n super(res);\n this.title = title;\n this.message = message;\n }\n}\n"],"mappings":";;AAIA,IAAa,4BAAb,cAA+CA,0BAAAA,SAAS;CACtD;CACA;CACA,YAAY,OAAe,SAAiB,KAAkB;EAC5D,MAAM,GAAG;EACT,KAAK,QAAQ;EACb,KAAK,UAAU;CACjB;AACF"}
1
+ {"version":3,"file":"ManagementClientAuthError-B-tyPlyG.cjs","names":["ApiError"],"sources":["../src/errors/ManagementClientAuthError.ts"],"sourcesContent":["import type { ApiResponse } from '../fetchClient/createFetchClient/types';\n\nimport { ApiError } from './ApiError';\n\nexport class ManagementClientAuthError extends ApiError {\n title: string;\n message: string;\n constructor(title: string, message: string, res: ApiResponse) {\n super(res);\n this.title = title;\n this.message = message;\n }\n}\n"],"mappings":";;AAIA,IAAa,4BAAb,cAA+CA,0BAAAA,SAAS;CACtD;CACA;CACA,YAAY,OAAe,SAAiB,KAAkB;EAC5D,MAAM,GAAG;EACT,KAAK,QAAQ;EACb,KAAK,UAAU;CACjB;AACF"}
@@ -1,4 +1,4 @@
1
- import { p as ApiError } from "./createFetchClient-BK0TZK-U.js";
1
+ import { m as ApiError } from "./createFetchClient-BbG46bL0.js";
2
2
  //#region src/errors/ManagementClientAuthError.ts
3
3
  var ManagementClientAuthError = class extends ApiError {
4
4
  title;
@@ -12,4 +12,4 @@ var ManagementClientAuthError = class extends ApiError {
12
12
  //#endregion
13
13
  export { ManagementClientAuthError as t };
14
14
 
15
- //# sourceMappingURL=ManagementClientAuthError-B97OtOQ7.js.map
15
+ //# sourceMappingURL=ManagementClientAuthError-BAFNvOdf.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ManagementClientAuthError-B97OtOQ7.js","names":[],"sources":["../src/errors/ManagementClientAuthError.ts"],"sourcesContent":["import type { ApiResponse } from '../fetchClient/createFetchClient/types';\n\nimport { ApiError } from './ApiError';\n\nexport class ManagementClientAuthError extends ApiError {\n title: string;\n message: string;\n constructor(title: string, message: string, res: ApiResponse) {\n super(res);\n this.title = title;\n this.message = message;\n }\n}\n"],"mappings":";;AAIA,IAAa,4BAAb,cAA+C,SAAS;CACtD;CACA;CACA,YAAY,OAAe,SAAiB,KAAkB;EAC5D,MAAM,GAAG;EACT,KAAK,QAAQ;EACb,KAAK,UAAU;CACjB;AACF"}
1
+ {"version":3,"file":"ManagementClientAuthError-BAFNvOdf.js","names":[],"sources":["../src/errors/ManagementClientAuthError.ts"],"sourcesContent":["import type { ApiResponse } from '../fetchClient/createFetchClient/types';\n\nimport { ApiError } from './ApiError';\n\nexport class ManagementClientAuthError extends ApiError {\n title: string;\n message: string;\n constructor(title: string, message: string, res: ApiResponse) {\n super(res);\n this.title = title;\n this.message = message;\n }\n}\n"],"mappings":";;AAIA,IAAa,4BAAb,cAA+C,SAAS;CACtD;CACA;CACA,YAAY,OAAe,SAAiB,KAAkB;EAC5D,MAAM,GAAG;EACT,KAAK,QAAQ;EACb,KAAK,UAAU;CACjB;AACF"}
package/dist/ai/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_createOpenapiFetchClient = require("../createOpenapiFetchClient-Cr90VXY4.cjs");
3
- const require_auth = require("../auth-5HCvCsZO.cjs");
2
+ const require_createOpenapiFetchClient = require("../createOpenapiFetchClient-CyDUFxHB.cjs");
3
+ const require_auth = require("../auth-DP-6TFiM.cjs");
4
4
  //#region src/clients/ai/aiClient.ts
5
5
  const createAiClient = ({ baseUrl, middlewares, auth }) => {
6
6
  const client = require_createOpenapiFetchClient.createOpenapiFetchClient({
@@ -1,5 +1,5 @@
1
- import { a as DescribeConfigurationVersionBody, f as SuggestComponentBody, i as DescribeConfigurationMergeBody, l as ExplainErrorBody, p as components, r as DescribeConfigurationBody, s as DocsQuestionBody, u as FeedbackBody } from "../types-DCBKso0t.cjs";
2
- import { n as ClientInitOptions } from "../types-C8XiTXxi.cjs";
1
+ import { a as DescribeConfigurationVersionBody, f as SuggestComponentBody, i as DescribeConfigurationMergeBody, l as ExplainErrorBody, p as components, r as DescribeConfigurationBody, s as DocsQuestionBody, u as FeedbackBody } from "../types-CvkqEvhv.cjs";
2
+ import { n as ClientInitOptions } from "../types-BREGN3qo.cjs";
3
3
  //#region src/clients/ai/aiClient.d.ts
4
4
  declare const createAiClient: ({ baseUrl, middlewares, auth }: ClientInitOptions) => {
5
5
  healthCheck: (signal?: AbortSignal) => Promise<{
@@ -1,5 +1,5 @@
1
- import { a as DescribeConfigurationVersionBody, f as SuggestComponentBody, i as DescribeConfigurationMergeBody, l as ExplainErrorBody, p as components, r as DescribeConfigurationBody, s as DocsQuestionBody, u as FeedbackBody } from "../types-CSmttcZ_.js";
2
- import { n as ClientInitOptions } from "../types-7H6Dnz0Y.js";
1
+ import { a as DescribeConfigurationVersionBody, f as SuggestComponentBody, i as DescribeConfigurationMergeBody, l as ExplainErrorBody, p as components, r as DescribeConfigurationBody, s as DocsQuestionBody, u as FeedbackBody } from "../types-BnaAo7xn.js";
2
+ import { n as ClientInitOptions } from "../types-DwpRt3e9.js";
3
3
  //#region src/clients/ai/aiClient.d.ts
4
4
  declare const createAiClient: ({ baseUrl, middlewares, auth }: ClientInitOptions) => {
5
5
  healthCheck: (signal?: AbortSignal) => Promise<{
package/dist/ai/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { t as createOpenapiFetchClient } from "../createOpenapiFetchClient-B5U1fCHS.js";
2
- import { t as createAuthHeaders } from "../auth-D2jfNlpX.js";
1
+ import { t as createOpenapiFetchClient } from "../createOpenapiFetchClient-Bn6_Pn0H.js";
2
+ import { t as createAuthHeaders } from "../auth-DtbQaeDj.js";
3
3
  //#region src/clients/ai/aiClient.ts
4
4
  const createAiClient = ({ baseUrl, middlewares, auth }) => {
5
5
  const client = createOpenapiFetchClient({
@@ -1,2 +1,2 @@
1
- import { a as DescribeConfigurationVersionBody, c as ErrorExplanation, d as ObjectDescription, f as SuggestComponentBody, i as DescribeConfigurationMergeBody, l as ExplainErrorBody, n as ComponentSuggestion, o as DocsAnswer, r as DescribeConfigurationBody, s as DocsQuestionBody, t as ComponentDocsDetail, u as FeedbackBody } from "../types-DCBKso0t.cjs";
1
+ import { a as DescribeConfigurationVersionBody, c as ErrorExplanation, d as ObjectDescription, f as SuggestComponentBody, i as DescribeConfigurationMergeBody, l as ExplainErrorBody, n as ComponentSuggestion, o as DocsAnswer, r as DescribeConfigurationBody, s as DocsQuestionBody, t as ComponentDocsDetail, u as FeedbackBody } from "../types-CvkqEvhv.cjs";
2
2
  export { ComponentDocsDetail, ComponentSuggestion, DescribeConfigurationBody, DescribeConfigurationMergeBody, DescribeConfigurationVersionBody, DocsAnswer, DocsQuestionBody, ErrorExplanation, ExplainErrorBody, FeedbackBody, ObjectDescription, SuggestComponentBody };
@@ -1,2 +1,2 @@
1
- import { a as DescribeConfigurationVersionBody, c as ErrorExplanation, d as ObjectDescription, f as SuggestComponentBody, i as DescribeConfigurationMergeBody, l as ExplainErrorBody, n as ComponentSuggestion, o as DocsAnswer, r as DescribeConfigurationBody, s as DocsQuestionBody, t as ComponentDocsDetail, u as FeedbackBody } from "../types-CSmttcZ_.js";
1
+ import { a as DescribeConfigurationVersionBody, c as ErrorExplanation, d as ObjectDescription, f as SuggestComponentBody, i as DescribeConfigurationMergeBody, l as ExplainErrorBody, n as ComponentSuggestion, o as DocsAnswer, r as DescribeConfigurationBody, s as DocsQuestionBody, t as ComponentDocsDetail, u as FeedbackBody } from "../types-BnaAo7xn.js";
2
2
  export { ComponentDocsDetail, ComponentSuggestion, DescribeConfigurationBody, DescribeConfigurationMergeBody, DescribeConfigurationVersionBody, DocsAnswer, DocsQuestionBody, ErrorExplanation, ExplainErrorBody, FeedbackBody, ObjectDescription, SuggestComponentBody };
@@ -1,4 +1,4 @@
1
- import "./index-CLPrlyIz.cjs";
1
+ import "./index-CQrKS7PV.cjs";
2
2
  //#region src/domain/appLogs.d.ts
3
3
  type LogEntry = {
4
4
  timestamp: string | null;
@@ -7,4 +7,4 @@ type LogEntry = {
7
7
  declare const parseLogLines: (raw: unknown) => LogEntry[];
8
8
  //#endregion
9
9
  export { parseLogLines as n, LogEntry as t };
10
- //# sourceMappingURL=appLogs-Dl5BcCSD.d.cts.map
10
+ //# sourceMappingURL=appLogs-BAaaGYKg.d.cts.map
@@ -1,5 +1,5 @@
1
1
  import { t as isPlainObject } from "./isPlainObject-LYW-03uB.js";
2
- import { d as HttpStatus, l as parseContentDispositionHeader, o as HttpHeader, r as isApiError } from "./createFetchClient-BK0TZK-U.js";
2
+ import { f as HttpStatus, o as HttpHeader, r as isApiError, u as parseContentDispositionHeader } from "./createFetchClient-BbG46bL0.js";
3
3
  import * as z$1 from "zod";
4
4
  import dayjs from "dayjs";
5
5
  import utc from "dayjs/plugin/utc.js";
@@ -129,4 +129,4 @@ const readAppLogsDownload = async (fetchLogs) => {
129
129
  //#endregion
130
130
  export { readAppLogsDownload as n, readAppLogsTail as r, parseLogLines as t };
131
131
 
132
- //# sourceMappingURL=appLogs-enL9XR9r.js.map
132
+ //# sourceMappingURL=appLogs-DTLE6HTy.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"appLogs-enL9XR9r.js","names":["z","record"],"sources":["../src/domain/appLogs.ts"],"sourcesContent":["import dayjs from 'dayjs';\nimport utc from 'dayjs/plugin/utc.js';\nimport * as z from 'zod';\n\nimport {\n type ApiResponse,\n HttpHeader,\n isApiError,\n parseContentDispositionHeader,\n} from '../fetchClient';\nimport { HttpStatus } from '../internal';\nimport { isPlainObject } from '../utils/isPlainObject';\n\n/**\n * Reading a data app's container output. Shared by the two clients wrapping sandboxes-service —\n * `dataScience` (`/v1`) and `apps` (`/v2`) — which serve the same logs under different paths, so the\n * tail contract (how a line is parsed, where the next poll resumes, and that an idle app is not an\n * error) is defined once here rather than per surface.\n */\n\ndayjs.extend(utc);\n\nexport type LogEntry = {\n timestamp: string | null;\n message: string;\n};\n\nconst DEFAULT_LOGS_FILE_NAME = 'logs.txt';\n\nconst ISO_TIMESTAMP_REGEX = /\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z/;\nconst LEADING_ISO_TIMESTAMP_REGEX = /^(\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z)\\s?/;\n\n/** The error envelope sandboxes-service returns; the tail branches on its `code`. */\nconst TailError = z.object({\n context: z.object({\n code: z.string(),\n }),\n});\n\n/**\n * There is nothing to read right now, reported per scope: an app whose serving member is asleep\n * answers `apps.appNotRunning`, a deployment that isn't running answers `apps.deploymentNotRunning` —\n * the normal state of a staged or retired one, since a deployment only runs while it is production.\n */\nconst NOTHING_RUNNING_CODES = new Set(['apps.appNotRunning', 'apps.deploymentNotRunning']);\n\nconst tryParseJsonl = (line: string): LogEntry | null => {\n if (!line.startsWith('{')) return null;\n\n let parsed: unknown;\n try {\n parsed = JSON.parse(line);\n } catch {\n return null;\n }\n\n if (typeof parsed !== 'object' || parsed === null) return null;\n\n const record = parsed as Record<string, unknown>;\n const { timestamp, message } = record;\n\n if (typeof timestamp !== 'string' || typeof message !== 'string') return null;\n\n return {\n timestamp,\n message,\n };\n};\n\nconst parsePlainTextLine = (line: string): LogEntry => {\n const match = line.match(LEADING_ISO_TIMESTAMP_REGEX);\n if (match) {\n return { timestamp: match[1]!, message: line.slice(match[0].length) };\n }\n return { timestamp: null, message: line };\n};\n\nexport const parseLogLine = (line: string): LogEntry =>\n tryParseJsonl(line) ?? parsePlainTextLine(line);\n\nconst toLogEntryFromObject = (raw: Record<string, unknown>): LogEntry | null => {\n if (typeof raw.message !== 'string') return null;\n return {\n timestamp: typeof raw.timestamp === 'string' ? raw.timestamp : null,\n message: raw.message,\n };\n};\n\nexport const parseLogLines = (raw: unknown): LogEntry[] => {\n if (raw === null || raw === undefined || raw === '') return [];\n\n if (Array.isArray(raw)) {\n return raw.flatMap((item) => {\n if (typeof item === 'string') return item === '' ? [] : [parseLogLine(item)];\n if (isPlainObject(item)) {\n const entry = toLogEntryFromObject(item);\n return entry ? [entry] : [];\n }\n return [];\n });\n }\n\n if (isPlainObject(raw)) {\n const entry = toLogEntryFromObject(raw);\n return entry ? [entry] : [];\n }\n\n if (typeof raw !== 'string') return [];\n\n const lines = raw.split('\\n');\n const entries: LogEntry[] = [];\n for (const line of lines) {\n if (line === '') continue;\n entries.push(parseLogLine(line));\n }\n return entries;\n};\n\nexport const lastLogTimestamp = (entries: LogEntry[]) => {\n for (let i = entries.length - 1; i >= 0; i--) {\n const entry = entries[i];\n if (!entry) continue;\n if (entry.timestamp) return entry.timestamp;\n\n // A plain-text line may carry a timestamp embedded mid-line (legacy format).\n const match = entry.message.match(ISO_TIMESTAMP_REGEX);\n if (match) return match[0];\n }\n return null;\n};\n\nconst calculateNextLogTimestamp = (timestamp: string | null) => {\n if (timestamp === null) return null;\n return dayjs(timestamp).utc().add(1, 'second').utc().format();\n};\n\n/**\n * The tail plus the timestamp a follow-up poll resumes from. A {@link NOTHING_RUNNING_CODES} `400`\n * reads as an empty tail rather than an error — an idle app between visits, or a deployment that is\n * not the one currently serving, has no logs to stream and that is its normal condition.\n */\nexport const readAppLogsTail = async (fetchTail: () => Promise<ApiResponse<string>>) => {\n try {\n const { data } = await fetchTail();\n const entries = parseLogLines(data);\n\n return {\n entries,\n nextLogTimestamp: calculateNextLogTimestamp(lastLogTimestamp(entries)),\n };\n } catch (error) {\n if (isApiError(error) && error.response.status === HttpStatus.BAD_REQUEST) {\n const code = TailError.safeParse(error.data).data?.context?.code;\n if (code !== undefined && NOTHING_RUNNING_CODES.has(code)) {\n return { entries: [], nextLogTimestamp: null };\n }\n }\n throw error;\n }\n};\n\n/** The whole log as a file download, named by the service's `Content-Disposition` where it sets one. */\nexport const readAppLogsDownload = async (fetchLogs: () => Promise<ApiResponse<string>>) => {\n const { data, response } = await fetchLogs();\n const contentDisposition = parseContentDispositionHeader(\n response.headers.get(HttpHeader.CONTENT_DISPOSITION),\n );\n\n return {\n logs: data,\n fileName: contentDisposition.filename ?? DEFAULT_LOGS_FILE_NAME,\n };\n};\n"],"mappings":";;;;;;;;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aAAa;GACzE,MAAM,OAAO,UAAU,UAAU,MAAM,IAAI,CAAC,CAAC,MAAM,SAAS;GAC5D,IAAI,SAAS,KAAA,KAAa,sBAAsB,IAAI,IAAI,GACtD,OAAO;IAAE,SAAS,CAAC;IAAG,kBAAkB;GAAK;EAEjD;EACA,MAAM;CACR;AACF;;AAGA,MAAa,sBAAsB,OAAO,cAAkD;CAC1F,MAAM,EAAE,MAAM,aAAa,MAAM,UAAU;CAK3C,OAAO;EACL,MAAM;EACN,UANyB,8BACzB,SAAS,QAAQ,IAAI,WAAW,mBAAmB,CAKxB,CAAC,CAAC,YAAY;CAC3C;AACF"}
1
+ {"version":3,"file":"appLogs-DTLE6HTy.js","names":["z","record"],"sources":["../src/domain/appLogs.ts"],"sourcesContent":["import dayjs from 'dayjs';\nimport utc from 'dayjs/plugin/utc.js';\nimport * as z from 'zod';\n\nimport {\n type ApiResponse,\n HttpHeader,\n isApiError,\n parseContentDispositionHeader,\n} from '../fetchClient';\nimport { HttpStatus } from '../internal';\nimport { isPlainObject } from '../utils/isPlainObject';\n\n/**\n * Reading a data app's container output. Shared by the two clients wrapping sandboxes-service —\n * `dataScience` (`/v1`) and `apps` (`/v2`) — which serve the same logs under different paths, so the\n * tail contract (how a line is parsed, where the next poll resumes, and that an idle app is not an\n * error) is defined once here rather than per surface.\n */\n\ndayjs.extend(utc);\n\nexport type LogEntry = {\n timestamp: string | null;\n message: string;\n};\n\nconst DEFAULT_LOGS_FILE_NAME = 'logs.txt';\n\nconst ISO_TIMESTAMP_REGEX = /\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z/;\nconst LEADING_ISO_TIMESTAMP_REGEX = /^(\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z)\\s?/;\n\n/** The error envelope sandboxes-service returns; the tail branches on its `code`. */\nconst TailError = z.object({\n context: z.object({\n code: z.string(),\n }),\n});\n\n/**\n * There is nothing to read right now, reported per scope: an app whose serving member is asleep\n * answers `apps.appNotRunning`, a deployment that isn't running answers `apps.deploymentNotRunning` —\n * the normal state of a staged or retired one, since a deployment only runs while it is production.\n */\nconst NOTHING_RUNNING_CODES = new Set(['apps.appNotRunning', 'apps.deploymentNotRunning']);\n\nconst tryParseJsonl = (line: string): LogEntry | null => {\n if (!line.startsWith('{')) return null;\n\n let parsed: unknown;\n try {\n parsed = JSON.parse(line);\n } catch {\n return null;\n }\n\n if (typeof parsed !== 'object' || parsed === null) return null;\n\n const record = parsed as Record<string, unknown>;\n const { timestamp, message } = record;\n\n if (typeof timestamp !== 'string' || typeof message !== 'string') return null;\n\n return {\n timestamp,\n message,\n };\n};\n\nconst parsePlainTextLine = (line: string): LogEntry => {\n const match = line.match(LEADING_ISO_TIMESTAMP_REGEX);\n if (match) {\n return { timestamp: match[1]!, message: line.slice(match[0].length) };\n }\n return { timestamp: null, message: line };\n};\n\nexport const parseLogLine = (line: string): LogEntry =>\n tryParseJsonl(line) ?? parsePlainTextLine(line);\n\nconst toLogEntryFromObject = (raw: Record<string, unknown>): LogEntry | null => {\n if (typeof raw.message !== 'string') return null;\n return {\n timestamp: typeof raw.timestamp === 'string' ? raw.timestamp : null,\n message: raw.message,\n };\n};\n\nexport const parseLogLines = (raw: unknown): LogEntry[] => {\n if (raw === null || raw === undefined || raw === '') return [];\n\n if (Array.isArray(raw)) {\n return raw.flatMap((item) => {\n if (typeof item === 'string') return item === '' ? [] : [parseLogLine(item)];\n if (isPlainObject(item)) {\n const entry = toLogEntryFromObject(item);\n return entry ? [entry] : [];\n }\n return [];\n });\n }\n\n if (isPlainObject(raw)) {\n const entry = toLogEntryFromObject(raw);\n return entry ? [entry] : [];\n }\n\n if (typeof raw !== 'string') return [];\n\n const lines = raw.split('\\n');\n const entries: LogEntry[] = [];\n for (const line of lines) {\n if (line === '') continue;\n entries.push(parseLogLine(line));\n }\n return entries;\n};\n\nexport const lastLogTimestamp = (entries: LogEntry[]) => {\n for (let i = entries.length - 1; i >= 0; i--) {\n const entry = entries[i];\n if (!entry) continue;\n if (entry.timestamp) return entry.timestamp;\n\n // A plain-text line may carry a timestamp embedded mid-line (legacy format).\n const match = entry.message.match(ISO_TIMESTAMP_REGEX);\n if (match) return match[0];\n }\n return null;\n};\n\nconst calculateNextLogTimestamp = (timestamp: string | null) => {\n if (timestamp === null) return null;\n return dayjs(timestamp).utc().add(1, 'second').utc().format();\n};\n\n/**\n * The tail plus the timestamp a follow-up poll resumes from. A {@link NOTHING_RUNNING_CODES} `400`\n * reads as an empty tail rather than an error — an idle app between visits, or a deployment that is\n * not the one currently serving, has no logs to stream and that is its normal condition.\n */\nexport const readAppLogsTail = async (fetchTail: () => Promise<ApiResponse<string>>) => {\n try {\n const { data } = await fetchTail();\n const entries = parseLogLines(data);\n\n return {\n entries,\n nextLogTimestamp: calculateNextLogTimestamp(lastLogTimestamp(entries)),\n };\n } catch (error) {\n if (isApiError(error) && error.response.status === HttpStatus.BAD_REQUEST) {\n const code = TailError.safeParse(error.data).data?.context?.code;\n if (code !== undefined && NOTHING_RUNNING_CODES.has(code)) {\n return { entries: [], nextLogTimestamp: null };\n }\n }\n throw error;\n }\n};\n\n/** The whole log as a file download, named by the service's `Content-Disposition` where it sets one. */\nexport const readAppLogsDownload = async (fetchLogs: () => Promise<ApiResponse<string>>) => {\n const { data, response } = await fetchLogs();\n const contentDisposition = parseContentDispositionHeader(\n response.headers.get(HttpHeader.CONTENT_DISPOSITION),\n );\n\n return {\n logs: data,\n fileName: contentDisposition.filename ?? DEFAULT_LOGS_FILE_NAME,\n };\n};\n"],"mappings":";;;;;;;;;;;;AAoBA,MAAM,OAAO,GAAG;AAOhB,MAAM,yBAAyB;AAE/B,MAAM,sBAAsB;AAC5B,MAAM,8BAA8B;;AAGpC,MAAM,YAAYA,IAAE,OAAO,EACzB,SAASA,IAAE,OAAO,EAChB,MAAMA,IAAE,OAAO,EACjB,CAAC,EACH,CAAC;;;;;;AAOD,MAAM,wCAAwB,IAA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AAkD;CAC1F,MAAM,EAAE,MAAM,aAAa,MAAM,UAAU;CAK3C,OAAO;EACL,MAAM;EACN,UANyB,8BACzB,SAAS,QAAQ,IAAI,WAAW,mBAAmB,CAKxB,CAAC,CAAC,YAAY;CAC3C;AACF"}
@@ -1,4 +1,4 @@
1
- import "./index-8pN6Emos.js";
1
+ import "./index-CeJOmN-P.js";
2
2
  //#region src/domain/appLogs.d.ts
3
3
  type LogEntry = {
4
4
  timestamp: string | null;
@@ -7,4 +7,4 @@ type LogEntry = {
7
7
  declare const parseLogLines: (raw: unknown) => LogEntry[];
8
8
  //#endregion
9
9
  export { parseLogLines as n, LogEntry as t };
10
- //# sourceMappingURL=appLogs-VdgP08aX.d.ts.map
10
+ //# sourceMappingURL=appLogs-DX_WTBCa.d.ts.map
@@ -1,6 +1,6 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-VH7oDXx4.cjs");
2
2
  const require_isPlainObject = require("./isPlainObject-BB3iy87C.cjs");
3
- const require_createFetchClient = require("./createFetchClient-BsG719K1.cjs");
3
+ const require_createFetchClient = require("./createFetchClient-BRfTjBLV.cjs");
4
4
  let zod = require("zod");
5
5
  zod = require_rolldown_runtime.__toESM(zod, 1);
6
6
  let dayjs = require("dayjs");
@@ -150,4 +150,4 @@ Object.defineProperty(exports, "readAppLogsTail", {
150
150
  }
151
151
  });
152
152
 
153
- //# sourceMappingURL=appLogs-CNG3yby-.cjs.map
153
+ //# sourceMappingURL=appLogs-NIEDTDHf.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"appLogs-CNG3yby-.cjs","names":["utc","z","record","isPlainObject","isApiError","HttpStatus","parseContentDispositionHeader","HttpHeader"],"sources":["../src/domain/appLogs.ts"],"sourcesContent":["import dayjs from 'dayjs';\nimport utc from 'dayjs/plugin/utc.js';\nimport * as z from 'zod';\n\nimport {\n type ApiResponse,\n HttpHeader,\n isApiError,\n parseContentDispositionHeader,\n} from '../fetchClient';\nimport { HttpStatus } from '../internal';\nimport { isPlainObject } from '../utils/isPlainObject';\n\n/**\n * Reading a data app's container output. Shared by the two clients wrapping sandboxes-service —\n * `dataScience` (`/v1`) and `apps` (`/v2`) — which serve the same logs under different paths, so the\n * tail contract (how a line is parsed, where the next poll resumes, and that an idle app is not an\n * error) is defined once here rather than per surface.\n */\n\ndayjs.extend(utc);\n\nexport type LogEntry = {\n timestamp: string | null;\n message: string;\n};\n\nconst DEFAULT_LOGS_FILE_NAME = 'logs.txt';\n\nconst ISO_TIMESTAMP_REGEX = /\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z/;\nconst LEADING_ISO_TIMESTAMP_REGEX = /^(\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z)\\s?/;\n\n/** The error envelope sandboxes-service returns; the tail branches on its `code`. */\nconst TailError = z.object({\n context: z.object({\n code: z.string(),\n }),\n});\n\n/**\n * There is nothing to read right now, reported per scope: an app whose serving member is asleep\n * answers `apps.appNotRunning`, a deployment that isn't running answers `apps.deploymentNotRunning` —\n * the normal state of a staged or retired one, since a deployment only runs while it is production.\n */\nconst NOTHING_RUNNING_CODES = new Set(['apps.appNotRunning', 'apps.deploymentNotRunning']);\n\nconst tryParseJsonl = (line: string): LogEntry | null => {\n if (!line.startsWith('{')) return null;\n\n let parsed: unknown;\n try {\n parsed = JSON.parse(line);\n } catch {\n return null;\n }\n\n if (typeof parsed !== 'object' || parsed === null) return null;\n\n const record = parsed as Record<string, unknown>;\n const { timestamp, message } = record;\n\n if (typeof timestamp !== 'string' || typeof message !== 'string') return null;\n\n return {\n timestamp,\n message,\n };\n};\n\nconst parsePlainTextLine = (line: string): LogEntry => {\n const match = line.match(LEADING_ISO_TIMESTAMP_REGEX);\n if (match) {\n return { timestamp: match[1]!, message: line.slice(match[0].length) };\n }\n return { timestamp: null, message: line };\n};\n\nexport const parseLogLine = (line: string): LogEntry =>\n tryParseJsonl(line) ?? parsePlainTextLine(line);\n\nconst toLogEntryFromObject = (raw: Record<string, unknown>): LogEntry | null => {\n if (typeof raw.message !== 'string') return null;\n return {\n timestamp: typeof raw.timestamp === 'string' ? raw.timestamp : null,\n message: raw.message,\n };\n};\n\nexport const parseLogLines = (raw: unknown): LogEntry[] => {\n if (raw === null || raw === undefined || raw === '') return [];\n\n if (Array.isArray(raw)) {\n return raw.flatMap((item) => {\n if (typeof item === 'string') return item === '' ? [] : [parseLogLine(item)];\n if (isPlainObject(item)) {\n const entry = toLogEntryFromObject(item);\n return entry ? [entry] : [];\n }\n return [];\n });\n }\n\n if (isPlainObject(raw)) {\n const entry = toLogEntryFromObject(raw);\n return entry ? [entry] : [];\n }\n\n if (typeof raw !== 'string') return [];\n\n const lines = raw.split('\\n');\n const entries: LogEntry[] = [];\n for (const line of lines) {\n if (line === '') continue;\n entries.push(parseLogLine(line));\n }\n return entries;\n};\n\nexport const lastLogTimestamp = (entries: LogEntry[]) => {\n for (let i = entries.length - 1; i >= 0; i--) {\n const entry = entries[i];\n if (!entry) continue;\n if (entry.timestamp) return entry.timestamp;\n\n // A plain-text line may carry a timestamp embedded mid-line (legacy format).\n const match = entry.message.match(ISO_TIMESTAMP_REGEX);\n if (match) return match[0];\n }\n return null;\n};\n\nconst calculateNextLogTimestamp = (timestamp: string | null) => {\n if (timestamp === null) return null;\n return dayjs(timestamp).utc().add(1, 'second').utc().format();\n};\n\n/**\n * The tail plus the timestamp a follow-up poll resumes from. A {@link NOTHING_RUNNING_CODES} `400`\n * reads as an empty tail rather than an error — an idle app between visits, or a deployment that is\n * not the one currently serving, has no logs to stream and that is its normal condition.\n */\nexport const readAppLogsTail = async (fetchTail: () => Promise<ApiResponse<string>>) => {\n try {\n const { data } = await fetchTail();\n const entries = parseLogLines(data);\n\n return {\n entries,\n nextLogTimestamp: calculateNextLogTimestamp(lastLogTimestamp(entries)),\n };\n } catch (error) {\n if (isApiError(error) && error.response.status === HttpStatus.BAD_REQUEST) {\n const code = TailError.safeParse(error.data).data?.context?.code;\n if (code !== undefined && NOTHING_RUNNING_CODES.has(code)) {\n return { entries: [], nextLogTimestamp: null };\n }\n }\n throw error;\n }\n};\n\n/** The whole log as a file download, named by the service's `Content-Disposition` where it sets one. */\nexport const readAppLogsDownload = async (fetchLogs: () => Promise<ApiResponse<string>>) => {\n const { data, response } = await fetchLogs();\n const contentDisposition = parseContentDispositionHeader(\n response.headers.get(HttpHeader.CONTENT_DISPOSITION),\n );\n\n return {\n logs: data,\n fileName: contentDisposition.filename ?? DEFAULT_LOGS_FILE_NAME,\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAoBA,MAAA,QAAM,OAAOA,oBAAAA,OAAG;AAOhB,MAAM,yBAAyB;AAE/B,MAAM,sBAAsB;AAC5B,MAAM,8BAA8B;;AAGpC,MAAM,YAAYC,IAAE,OAAO,EACzB,SAASA,IAAE,OAAO,EAChB,MAAMA,IAAE,OAAO,EACjB,CAAC,EACH,CAAC;;;;;;AAOD,MAAM,wCAAwB,IAAI,IAAI,CAAC,sBAAsB,2BAA2B,CAAC;AAEzF,MAAM,iBAAiB,SAAkC;CACvD,IAAI,CAAC,KAAK,WAAW,GAAG,GAAG,OAAO;CAElC,IAAI;CACJ,IAAI;EACF,SAAS,KAAK,MAAM,IAAI;CAC1B,QAAQ;EACN,OAAO;CACT;CAEA,IAAI,OAAO,WAAW,YAAY,WAAW,MAAM,OAAO;CAG1D,MAAM,EAAE,WAAW,YAAYC;CAE/B,IAAI,OAAO,cAAc,YAAY,OAAO,YAAY,UAAU,OAAO;CAEzE,OAAO;EACL;EACA;CACF;AACF;AAEA,MAAM,sBAAsB,SAA2B;CACrD,MAAM,QAAQ,KAAK,MAAM,2BAA2B;CACpD,IAAI,OACF,OAAO;EAAE,WAAW,MAAM;EAAK,SAAS,KAAK,MAAM,MAAM,EAAE,CAAC,MAAM;CAAE;CAEtE,OAAO;EAAE,WAAW;EAAM,SAAS;CAAK;AAC1C;AAEA,MAAa,gBAAgB,SAC3B,cAAc,IAA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6B;CAC9D,IAAI,cAAc,MAAM,OAAO;CAC/B,QAAA,GAAO,MAAA,QAAA,CAAM,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,GAAG,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO;AAC9D;;;;;;AAOA,MAAa,kBAAkB,OAAO,cAAkD;CACtF,IAAI;EACF,MAAM,EAAE,SAAS,MAAM,UAAU;EACjC,MAAM,UAAU,cAAc,IAAI;EAElC,OAAO;GACL;GACA,kBAAkB,0BAA0B,iBAAiB,OAAO,CAAC;EACvE;CACF,SAAS,OAAO;EACd,IAAIC,0BAAAA,WAAW,KAAK,KAAK,MAAM,SAAS,WAAWC,0BAAAA,WAAW,aAAa;GACzE,MAAM,OAAO,UAAU,UAAU,MAAM,IAAI,CAAC,CAAC,MAAM,SAAS;GAC5D,IAAI,SAAS,KAAA,KAAa,sBAAsB,IAAI,IAAI,GACtD,OAAO;IAAE,SAAS,CAAC;IAAG,kBAAkB;GAAK;EAEjD;EACA,MAAM;CACR;AACF;;AAGA,MAAa,sBAAsB,OAAO,cAAkD;CAC1F,MAAM,EAAE,MAAM,aAAa,MAAM,UAAU;CAK3C,OAAO;EACL,MAAM;EACN,UANyBC,0BAAAA,8BACzB,SAAS,QAAQ,IAAIC,0BAAAA,WAAW,mBAAmB,CAKxB,CAAC,CAAC,YAAY;CAC3C;AACF"}
1
+ {"version":3,"file":"appLogs-NIEDTDHf.cjs","names":["utc","z","record","isPlainObject","isApiError","HttpStatus","parseContentDispositionHeader","HttpHeader"],"sources":["../src/domain/appLogs.ts"],"sourcesContent":["import dayjs from 'dayjs';\nimport utc from 'dayjs/plugin/utc.js';\nimport * as z from 'zod';\n\nimport {\n type ApiResponse,\n HttpHeader,\n isApiError,\n parseContentDispositionHeader,\n} from '../fetchClient';\nimport { HttpStatus } from '../internal';\nimport { isPlainObject } from '../utils/isPlainObject';\n\n/**\n * Reading a data app's container output. Shared by the two clients wrapping sandboxes-service —\n * `dataScience` (`/v1`) and `apps` (`/v2`) — which serve the same logs under different paths, so the\n * tail contract (how a line is parsed, where the next poll resumes, and that an idle app is not an\n * error) is defined once here rather than per surface.\n */\n\ndayjs.extend(utc);\n\nexport type LogEntry = {\n timestamp: string | null;\n message: string;\n};\n\nconst DEFAULT_LOGS_FILE_NAME = 'logs.txt';\n\nconst ISO_TIMESTAMP_REGEX = /\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z/;\nconst LEADING_ISO_TIMESTAMP_REGEX = /^(\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z)\\s?/;\n\n/** The error envelope sandboxes-service returns; the tail branches on its `code`. */\nconst TailError = z.object({\n context: z.object({\n code: z.string(),\n }),\n});\n\n/**\n * There is nothing to read right now, reported per scope: an app whose serving member is asleep\n * answers `apps.appNotRunning`, a deployment that isn't running answers `apps.deploymentNotRunning` —\n * the normal state of a staged or retired one, since a deployment only runs while it is production.\n */\nconst NOTHING_RUNNING_CODES = new Set(['apps.appNotRunning', 'apps.deploymentNotRunning']);\n\nconst tryParseJsonl = (line: string): LogEntry | null => {\n if (!line.startsWith('{')) return null;\n\n let parsed: unknown;\n try {\n parsed = JSON.parse(line);\n } catch {\n return null;\n }\n\n if (typeof parsed !== 'object' || parsed === null) return null;\n\n const record = parsed as Record<string, unknown>;\n const { timestamp, message } = record;\n\n if (typeof timestamp !== 'string' || typeof message !== 'string') return null;\n\n return {\n timestamp,\n message,\n };\n};\n\nconst parsePlainTextLine = (line: string): LogEntry => {\n const match = line.match(LEADING_ISO_TIMESTAMP_REGEX);\n if (match) {\n return { timestamp: match[1]!, message: line.slice(match[0].length) };\n }\n return { timestamp: null, message: line };\n};\n\nexport const parseLogLine = (line: string): LogEntry =>\n tryParseJsonl(line) ?? parsePlainTextLine(line);\n\nconst toLogEntryFromObject = (raw: Record<string, unknown>): LogEntry | null => {\n if (typeof raw.message !== 'string') return null;\n return {\n timestamp: typeof raw.timestamp === 'string' ? raw.timestamp : null,\n message: raw.message,\n };\n};\n\nexport const parseLogLines = (raw: unknown): LogEntry[] => {\n if (raw === null || raw === undefined || raw === '') return [];\n\n if (Array.isArray(raw)) {\n return raw.flatMap((item) => {\n if (typeof item === 'string') return item === '' ? [] : [parseLogLine(item)];\n if (isPlainObject(item)) {\n const entry = toLogEntryFromObject(item);\n return entry ? [entry] : [];\n }\n return [];\n });\n }\n\n if (isPlainObject(raw)) {\n const entry = toLogEntryFromObject(raw);\n return entry ? [entry] : [];\n }\n\n if (typeof raw !== 'string') return [];\n\n const lines = raw.split('\\n');\n const entries: LogEntry[] = [];\n for (const line of lines) {\n if (line === '') continue;\n entries.push(parseLogLine(line));\n }\n return entries;\n};\n\nexport const lastLogTimestamp = (entries: LogEntry[]) => {\n for (let i = entries.length - 1; i >= 0; i--) {\n const entry = entries[i];\n if (!entry) continue;\n if (entry.timestamp) return entry.timestamp;\n\n // A plain-text line may carry a timestamp embedded mid-line (legacy format).\n const match = entry.message.match(ISO_TIMESTAMP_REGEX);\n if (match) return match[0];\n }\n return null;\n};\n\nconst calculateNextLogTimestamp = (timestamp: string | null) => {\n if (timestamp === null) return null;\n return dayjs(timestamp).utc().add(1, 'second').utc().format();\n};\n\n/**\n * The tail plus the timestamp a follow-up poll resumes from. A {@link NOTHING_RUNNING_CODES} `400`\n * reads as an empty tail rather than an error — an idle app between visits, or a deployment that is\n * not the one currently serving, has no logs to stream and that is its normal condition.\n */\nexport const readAppLogsTail = async (fetchTail: () => Promise<ApiResponse<string>>) => {\n try {\n const { data } = await fetchTail();\n const entries = parseLogLines(data);\n\n return {\n entries,\n nextLogTimestamp: calculateNextLogTimestamp(lastLogTimestamp(entries)),\n };\n } catch (error) {\n if (isApiError(error) && error.response.status === HttpStatus.BAD_REQUEST) {\n const code = TailError.safeParse(error.data).data?.context?.code;\n if (code !== undefined && NOTHING_RUNNING_CODES.has(code)) {\n return { entries: [], nextLogTimestamp: null };\n }\n }\n throw error;\n }\n};\n\n/** The whole log as a file download, named by the service's `Content-Disposition` where it sets one. */\nexport const readAppLogsDownload = async (fetchLogs: () => Promise<ApiResponse<string>>) => {\n const { data, response } = await fetchLogs();\n const contentDisposition = parseContentDispositionHeader(\n response.headers.get(HttpHeader.CONTENT_DISPOSITION),\n );\n\n return {\n logs: data,\n fileName: contentDisposition.filename ?? DEFAULT_LOGS_FILE_NAME,\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAoBA,MAAA,QAAM,OAAOA,oBAAAA,OAAG;AAOhB,MAAM,yBAAyB;AAE/B,MAAM,sBAAsB;AAC5B,MAAM,8BAA8B;;AAGpC,MAAM,YAAYC,IAAE,OAAO,EACzB,SAASA,IAAE,OAAO,EAChB,MAAMA,IAAE,OAAO,EACjB,CAAC,EACH,CAAC;;;;;;AAOD,MAAM,wCAAwB,IAAI,IAAI,CAAC,sBAAsB,2BAA2B,CAAC;AAEzF,MAAM,iBAAiB,SAAkC;CACvD,IAAI,CAAC,KAAK,WAAW,GAAG,GAAG,OAAO;CAElC,IAAI;CACJ,IAAI;EACF,SAAS,KAAK,MAAM,IAAI;CAC1B,QAAQ;EACN,OAAO;CACT;CAEA,IAAI,OAAO,WAAW,YAAY,WAAW,MAAM,OAAO;CAG1D,MAAM,EAAE,WAAW,YAAYC;CAE/B,IAAI,OAAO,cAAc,YAAY,OAAO,YAAY,UAAU,OAAO;CAEzE,OAAO;EACL;EACA;CACF;AACF;AAEA,MAAM,sBAAsB,SAA2B;CACrD,MAAM,QAAQ,KAAK,MAAM,2BAA2B;CACpD,IAAI,OACF,OAAO;EAAE,WAAW,MAAM;EAAK,SAAS,KAAK,MAAM,MAAM,EAAE,CAAC,MAAM;CAAE;CAEtE,OAAO;EAAE,WAAW;EAAM,SAAS;CAAK;AAC1C;AAEA,MAAa,gBAAgB,SAC3B,cAAc,IAAI,KAAK,mBAAmB,IAAI;AAEhD,MAAM,wBAAwB,QAAkD;CAC9E,IAAI,OAAO,IAAI,YAAY,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,CAAC,IAAI,CAAC,CAAC,IAAI,GAAG,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO;AAC9D;;;;;;AAOA,MAAa,kBAAkB,OAAO,cAAkD;CACtF,IAAI;EACF,MAAM,EAAE,SAAS,MAAM,UAAU;EACjC,MAAM,UAAU,cAAc,IAAI;EAElC,OAAO;GACL;GACA,kBAAkB,0BAA0B,iBAAiB,OAAO,CAAC;EACvE;CACF,SAAS,OAAO;EACd,IAAIC,0BAAAA,WAAW,KAAK,KAAK,MAAM,SAAS,WAAWC,0BAAAA,WAAW,aAAa;GACzE,MAAM,OAAO,UAAU,UAAU,MAAM,IAAI,CAAC,CAAC,MAAM,SAAS;GAC5D,IAAI,SAAS,KAAA,KAAa,sBAAsB,IAAI,IAAI,GACtD,OAAO;IAAE,SAAS,CAAC;IAAG,kBAAkB;GAAK;EAEjD;EACA,MAAM;CACR;AACF;;AAGA,MAAa,sBAAsB,OAAO,cAAkD;CAC1F,MAAM,EAAE,MAAM,aAAa,MAAM,UAAU;CAK3C,OAAO;EACL,MAAM;EACN,UANyBC,0BAAAA,8BACzB,SAAS,QAAQ,IAAIC,0BAAAA,WAAW,mBAAmB,CAKxB,CAAC,CAAC,YAAY;CAC3C;AACF"}
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_createOpenapiFetchClient = require("../createOpenapiFetchClient-Cr90VXY4.cjs");
3
- const require_auth = require("../auth-5HCvCsZO.cjs");
4
- const require_appLogs = require("../appLogs-CNG3yby-.cjs");
2
+ const require_createOpenapiFetchClient = require("../createOpenapiFetchClient-CyDUFxHB.cjs");
3
+ const require_auth = require("../auth-DP-6TFiM.cjs");
4
+ const require_appLogs = require("../appLogs-NIEDTDHf.cjs");
5
5
  //#region src/clients/apps/appsClient.ts
6
6
  /**
7
7
  * `/v2` App Deployments — data apps plus the immutable deployment history behind them. Sibling of
@@ -1,6 +1,6 @@
1
- import { n as ClientInitOptions } from "../types-C8XiTXxi.cjs";
2
- import { S as components, b as GetLogsTailQuery, c as CreateCredentialBody, f as CredentialId, g as DeploymentId, l as CreateDeploymentBody, r as AppId, s as CreateAppBody, t as App, v as GetAppRunsQuery, x as RunId, y as GetAppsQuery } from "../types-B06L4-WE.cjs";
3
- import { t as LogEntry } from "../appLogs-Dl5BcCSD.cjs";
1
+ import { n as ClientInitOptions } from "../types-BREGN3qo.cjs";
2
+ import { S as components, b as GetLogsTailQuery, c as CreateCredentialBody, f as CredentialId, g as DeploymentId, l as CreateDeploymentBody, r as AppId, s as CreateAppBody, t as App, v as GetAppRunsQuery, x as RunId, y as GetAppsQuery } from "../types-CyiRYRVq.cjs";
3
+ import { t as LogEntry } from "../appLogs-BAaaGYKg.cjs";
4
4
  //#region src/clients/apps/appsClient.d.ts
5
5
  /**
6
6
  * No `idempotencyKey`. The service accepted an `Idempotency-Key` that turned a replayed create
@@ -1,6 +1,6 @@
1
- import { n as ClientInitOptions } from "../types-7H6Dnz0Y.js";
2
- import { S as components, b as GetLogsTailQuery, c as CreateCredentialBody, f as CredentialId, g as DeploymentId, l as CreateDeploymentBody, r as AppId, s as CreateAppBody, t as App, v as GetAppRunsQuery, x as RunId, y as GetAppsQuery } from "../types-SGuvOEV8.js";
3
- import { t as LogEntry } from "../appLogs-VdgP08aX.js";
1
+ import { n as ClientInitOptions } from "../types-DwpRt3e9.js";
2
+ import { S as components, b as GetLogsTailQuery, c as CreateCredentialBody, f as CredentialId, g as DeploymentId, l as CreateDeploymentBody, r as AppId, s as CreateAppBody, t as App, v as GetAppRunsQuery, x as RunId, y as GetAppsQuery } from "../types-CkcMoXRk.js";
3
+ import { t as LogEntry } from "../appLogs-DX_WTBCa.js";
4
4
  //#region src/clients/apps/appsClient.d.ts
5
5
  /**
6
6
  * No `idempotencyKey`. The service accepted an `Idempotency-Key` that turned a replayed create
@@ -1,6 +1,6 @@
1
- import { t as createOpenapiFetchClient } from "../createOpenapiFetchClient-B5U1fCHS.js";
2
- import { t as createAuthHeaders } from "../auth-D2jfNlpX.js";
3
- import { n as readAppLogsDownload, r as readAppLogsTail } from "../appLogs-enL9XR9r.js";
1
+ import { t as createOpenapiFetchClient } from "../createOpenapiFetchClient-Bn6_Pn0H.js";
2
+ import { t as createAuthHeaders } from "../auth-DtbQaeDj.js";
3
+ import { n as readAppLogsDownload, r as readAppLogsTail } from "../appLogs-DTLE6HTy.js";
4
4
  //#region src/clients/apps/appsClient.ts
5
5
  /**
6
6
  * `/v2` App Deployments — data apps plus the immutable deployment history behind them. Sibling of
@@ -1,3 +1,3 @@
1
- import { _ as DeploymentRunState, a as AppRun, b as GetLogsTailQuery, c as CreateCredentialBody, d as Credential, f as CredentialId, g as DeploymentId, h as DeploymentBuildState, i as AppPassword, l as CreateDeploymentBody, m as Deployment, n as AppGitRepo, o as AppState, p as CredentialList, r as AppId, s as CreateAppBody, t as App, u as CreatedCredential, v as GetAppRunsQuery, x as RunId, y as GetAppsQuery } from "../types-B06L4-WE.cjs";
2
- import { t as LogEntry } from "../appLogs-Dl5BcCSD.cjs";
1
+ import { _ as DeploymentRunState, a as AppRun, b as GetLogsTailQuery, c as CreateCredentialBody, d as Credential, f as CredentialId, g as DeploymentId, h as DeploymentBuildState, i as AppPassword, l as CreateDeploymentBody, m as Deployment, n as AppGitRepo, o as AppState, p as CredentialList, r as AppId, s as CreateAppBody, t as App, u as CreatedCredential, v as GetAppRunsQuery, x as RunId, y as GetAppsQuery } from "../types-CyiRYRVq.cjs";
2
+ import { t as LogEntry } from "../appLogs-BAaaGYKg.cjs";
3
3
  export { App, AppGitRepo, AppId, AppPassword, AppRun, AppState, CreateAppBody, CreateCredentialBody, CreateDeploymentBody, CreatedCredential, Credential, CredentialId, CredentialList, Deployment, DeploymentBuildState, DeploymentId, DeploymentRunState, GetAppRunsQuery, GetAppsQuery, GetLogsTailQuery, type LogEntry, RunId };
@@ -1,3 +1,3 @@
1
- import { _ as DeploymentRunState, a as AppRun, b as GetLogsTailQuery, c as CreateCredentialBody, d as Credential, f as CredentialId, g as DeploymentId, h as DeploymentBuildState, i as AppPassword, l as CreateDeploymentBody, m as Deployment, n as AppGitRepo, o as AppState, p as CredentialList, r as AppId, s as CreateAppBody, t as App, u as CreatedCredential, v as GetAppRunsQuery, x as RunId, y as GetAppsQuery } from "../types-SGuvOEV8.js";
2
- import { t as LogEntry } from "../appLogs-VdgP08aX.js";
1
+ import { _ as DeploymentRunState, a as AppRun, b as GetLogsTailQuery, c as CreateCredentialBody, d as Credential, f as CredentialId, g as DeploymentId, h as DeploymentBuildState, i as AppPassword, l as CreateDeploymentBody, m as Deployment, n as AppGitRepo, o as AppState, p as CredentialList, r as AppId, s as CreateAppBody, t as App, u as CreatedCredential, v as GetAppRunsQuery, x as RunId, y as GetAppsQuery } from "../types-CkcMoXRk.js";
2
+ import { t as LogEntry } from "../appLogs-DX_WTBCa.js";
3
3
  export { App, AppGitRepo, AppId, AppPassword, AppRun, AppState, CreateAppBody, CreateCredentialBody, CreateDeploymentBody, CreatedCredential, Credential, CredentialId, CredentialList, Deployment, DeploymentBuildState, DeploymentId, DeploymentRunState, GetAppRunsQuery, GetAppsQuery, GetLogsTailQuery, type LogEntry, RunId };
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_createGenericFetchClient = require("../createGenericFetchClient-DLbjX0eM.cjs");
2
+ const require_createGenericFetchClient = require("../createGenericFetchClient-DHs-i7_O.cjs");
3
3
  const require_assets_schema = require("./schema.cjs");
4
4
  //#region src/clients/assets/assetsClient.ts
5
5
  const createAssetsClient = ({ baseUrl, middlewares }) => {
@@ -1,4 +1,4 @@
1
- import { n as ClientInitOptions } from "../types-C8XiTXxi.cjs";
1
+ import { n as ClientInitOptions } from "../types-BREGN3qo.cjs";
2
2
  //#region src/clients/assets/assetsClient.d.ts
3
3
  declare const createAssetsClient: ({ baseUrl, middlewares }: Omit<ClientInitOptions, 'auth'>) => {
4
4
  getPublishedChangelogPosts: (signal?: AbortSignal) => Promise<{
@@ -1,4 +1,4 @@
1
- import { n as ClientInitOptions } from "../types-7H6Dnz0Y.js";
1
+ import { n as ClientInitOptions } from "../types-DwpRt3e9.js";
2
2
  //#region src/clients/assets/assetsClient.d.ts
3
3
  declare const createAssetsClient: ({ baseUrl, middlewares }: Omit<ClientInitOptions, 'auth'>) => {
4
4
  getPublishedChangelogPosts: (signal?: AbortSignal) => Promise<{
@@ -1,4 +1,4 @@
1
- import { t as createGenericFetchClient } from "../createGenericFetchClient-CVZYekDk.js";
1
+ import { t as createGenericFetchClient } from "../createGenericFetchClient-BHYQLZhe.js";
2
2
  import { componentTemplatesSchema, publishedPostsSchema } from "./schema.js";
3
3
  //#region src/clients/assets/assetsClient.ts
4
4
  const createAssetsClient = ({ baseUrl, middlewares }) => {
@@ -1,5 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_authClient = require("../authClient-Z8Eg8rlN.cjs");
2
+ const require_authClient = require("../authClient-b7uec7sw.cjs");
3
+ exports.MFA_METHOD = require_authClient.MFA_METHOD;
3
4
  exports.changeInputSchema = require_authClient.changeInputSchema;
4
5
  exports.createAuthClient = require_authClient.createAuthClient;
5
6
  exports.loginInputSchema = require_authClient.loginInputSchema;
@@ -1,2 +1,2 @@
1
- import { C as loginSuccessSchema, S as loginResultSchema, T as oidcInputSchema, _ as LoginResult, a as ResetInput, b as OidcInput, c as resetInputSchema, d as MfaWebauthnInput, f as TotpVerifyInput, g as LoginInput, h as totpVerifyInputSchema, i as ChangePasswordInput, l as resetRequestInputSchema, m as mfaWebauthnInputSchema, n as AuthOpenApiFetchClient, o as ResetRequestInput, p as mfaCodeInputSchema, r as createAuthClient, s as changeInputSchema, t as AuthClientInitOptions, u as MfaCodeInput, v as LoginSuccess, w as mfaChallengeSchema, x as loginInputSchema, y as LoginUser } from "../authClient-Bgj2Ay7h.cjs";
2
- export { AuthClientInitOptions, AuthOpenApiFetchClient, ChangePasswordInput, LoginInput, LoginResult, LoginSuccess, LoginUser, MfaCodeInput, MfaWebauthnInput, OidcInput, ResetInput, ResetRequestInput, TotpVerifyInput, changeInputSchema, createAuthClient, loginInputSchema, loginResultSchema, loginSuccessSchema, mfaChallengeSchema, mfaCodeInputSchema, mfaWebauthnInputSchema, oidcInputSchema, resetInputSchema, resetRequestInputSchema, totpVerifyInputSchema };
1
+ import { C as OidcInput, D as mfaChallengeSchema, E as loginSuccessSchema, O as oidcInputSchema, S as MfaChallenge, T as loginResultSchema, _ as totpVerifyInputSchema, a as ResetInput, b as LoginSuccess, c as resetInputSchema, d as MfaCodeInput, f as MfaMethod, g as mfaWebauthnInputSchema, h as mfaCodeInputSchema, i as ChangePasswordInput, l as resetRequestInputSchema, m as TotpVerifyInput, n as AuthOpenApiFetchClient, o as ResetRequestInput, p as MfaWebauthnInput, r as createAuthClient, s as changeInputSchema, t as AuthClientInitOptions, u as MFA_METHOD, v as LoginInput, w as loginInputSchema, x as LoginUser, y as LoginResult } from "../authClient-DhfzOUaa.cjs";
2
+ export { AuthClientInitOptions, AuthOpenApiFetchClient, ChangePasswordInput, LoginInput, LoginResult, LoginSuccess, LoginUser, MFA_METHOD, MfaChallenge, MfaCodeInput, MfaMethod, MfaWebauthnInput, OidcInput, ResetInput, ResetRequestInput, TotpVerifyInput, changeInputSchema, createAuthClient, loginInputSchema, loginResultSchema, loginSuccessSchema, mfaChallengeSchema, mfaCodeInputSchema, mfaWebauthnInputSchema, oidcInputSchema, resetInputSchema, resetRequestInputSchema, totpVerifyInputSchema };
@@ -1,2 +1,2 @@
1
- import { C as loginSuccessSchema, S as loginResultSchema, T as oidcInputSchema, _ as LoginResult, a as ResetInput, b as OidcInput, c as resetInputSchema, d as MfaWebauthnInput, f as TotpVerifyInput, g as LoginInput, h as totpVerifyInputSchema, i as ChangePasswordInput, l as resetRequestInputSchema, m as mfaWebauthnInputSchema, n as AuthOpenApiFetchClient, o as ResetRequestInput, p as mfaCodeInputSchema, r as createAuthClient, s as changeInputSchema, t as AuthClientInitOptions, u as MfaCodeInput, v as LoginSuccess, w as mfaChallengeSchema, x as loginInputSchema, y as LoginUser } from "../authClient-Dsd7W99W.js";
2
- export { AuthClientInitOptions, AuthOpenApiFetchClient, ChangePasswordInput, LoginInput, LoginResult, LoginSuccess, LoginUser, MfaCodeInput, MfaWebauthnInput, OidcInput, ResetInput, ResetRequestInput, TotpVerifyInput, changeInputSchema, createAuthClient, loginInputSchema, loginResultSchema, loginSuccessSchema, mfaChallengeSchema, mfaCodeInputSchema, mfaWebauthnInputSchema, oidcInputSchema, resetInputSchema, resetRequestInputSchema, totpVerifyInputSchema };
1
+ import { C as OidcInput, D as mfaChallengeSchema, E as loginSuccessSchema, O as oidcInputSchema, S as MfaChallenge, T as loginResultSchema, _ as totpVerifyInputSchema, a as ResetInput, b as LoginSuccess, c as resetInputSchema, d as MfaCodeInput, f as MfaMethod, g as mfaWebauthnInputSchema, h as mfaCodeInputSchema, i as ChangePasswordInput, l as resetRequestInputSchema, m as TotpVerifyInput, n as AuthOpenApiFetchClient, o as ResetRequestInput, p as MfaWebauthnInput, r as createAuthClient, s as changeInputSchema, t as AuthClientInitOptions, u as MFA_METHOD, v as LoginInput, w as loginInputSchema, x as LoginUser, y as LoginResult } from "../authClient-CtfyVHRD.js";
2
+ export { AuthClientInitOptions, AuthOpenApiFetchClient, ChangePasswordInput, LoginInput, LoginResult, LoginSuccess, LoginUser, MFA_METHOD, MfaChallenge, MfaCodeInput, MfaMethod, MfaWebauthnInput, OidcInput, ResetInput, ResetRequestInput, TotpVerifyInput, changeInputSchema, createAuthClient, loginInputSchema, loginResultSchema, loginSuccessSchema, mfaChallengeSchema, mfaCodeInputSchema, mfaWebauthnInputSchema, oidcInputSchema, resetInputSchema, resetRequestInputSchema, totpVerifyInputSchema };
@@ -1,2 +1,2 @@
1
- import { a as mfaCodeInputSchema, c as loginInputSchema, d as mfaChallengeSchema, f as oidcInputSchema, i as resetRequestInputSchema, l as loginResultSchema, n as changeInputSchema, o as mfaWebauthnInputSchema, r as resetInputSchema, s as totpVerifyInputSchema, t as createAuthClient, u as loginSuccessSchema } from "../authClient-DOk6VKdV.js";
2
- export { changeInputSchema, createAuthClient, loginInputSchema, loginResultSchema, loginSuccessSchema, mfaChallengeSchema, mfaCodeInputSchema, mfaWebauthnInputSchema, oidcInputSchema, resetInputSchema, resetRequestInputSchema, totpVerifyInputSchema };
1
+ import { a as MFA_METHOD, c as totpVerifyInputSchema, d as loginSuccessSchema, f as mfaChallengeSchema, i as resetRequestInputSchema, l as loginInputSchema, n as changeInputSchema, o as mfaCodeInputSchema, p as oidcInputSchema, r as resetInputSchema, s as mfaWebauthnInputSchema, t as createAuthClient, u as loginResultSchema } from "../authClient--BtZgjIc.js";
2
+ export { MFA_METHOD, changeInputSchema, createAuthClient, loginInputSchema, loginResultSchema, loginSuccessSchema, mfaChallengeSchema, mfaCodeInputSchema, mfaWebauthnInputSchema, oidcInputSchema, resetInputSchema, resetRequestInputSchema, totpVerifyInputSchema };
@@ -1,2 +1,2 @@
1
- import { A as CreateDeviceAuthorizationBody, C as TotpSetupResult, D as LoginBody, E as VerifyMfaResult, M as GetDeviceAuthorizationTokenBody, N as GetDeviceAuthorizationTokenResult, O as ApproveDeviceAuthorizationBody, S as RegenerateRecoveryCodesResult, T as VerifyMfaBody, _ as ExchangePatBody, a as SudoBodyRaw, b as RevokePatPath, c as RevokeSessionPath, d as InitiateSamlBody, f as InitiateSamlResult, g as CreatePatResult, h as CreatePatBody, i as SudoBody, j as CreateDeviceAuthorizationResult, k as ApproveDeviceAuthorizationResult, l as AssertSamlBody, m as GetPkceTokenResult, n as RefreshTokenResult, o as SudoChallengeResult, p as GetPkceTokenBody, r as RevokeTokenBody, s as SudoResult, t as IntrospectTokenResult, u as AssertSamlResult, v as ExchangePatResult, w as TotpVerifyResult, x as DisableTotpPath, y as ListPatsResult } from "../types-2mHlPakp.cjs";
2
- export { ApproveDeviceAuthorizationBody, ApproveDeviceAuthorizationResult, AssertSamlBody, AssertSamlResult, CreateDeviceAuthorizationBody, CreateDeviceAuthorizationResult, CreatePatBody, CreatePatResult, DisableTotpPath, ExchangePatBody, ExchangePatResult, GetDeviceAuthorizationTokenBody, GetDeviceAuthorizationTokenResult, GetPkceTokenBody, GetPkceTokenResult, InitiateSamlBody, InitiateSamlResult, IntrospectTokenResult, ListPatsResult, LoginBody, RefreshTokenResult, RegenerateRecoveryCodesResult, RevokePatPath, RevokeSessionPath, RevokeTokenBody, SudoBody, SudoBodyRaw, SudoChallengeResult, SudoResult, TotpSetupResult, TotpVerifyResult, VerifyMfaBody, VerifyMfaResult };
1
+ import { A as TotpSetupResult, B as GetDeviceAuthorizationTokenResult, C as CreatePatResult, D as RevokePatPath, E as ListPatsResult, F as ApproveDeviceAuthorizationBody, I as ApproveDeviceAuthorizationResult, L as CreateDeviceAuthorizationBody, M as VerifyMfaBody, N as VerifyMfaResult, O as DisableTotpPath, P as LoginBody, R as CreateDeviceAuthorizationResult, S as CreatePatBody, T as ExchangePatResult, _ as AssertSamlResult, a as RemoveWebauthnInput, b as GetPkceTokenBody, c as IntrospectTokenResult, d as SudoBody, f as SudoBodyRaw, g as AssertSamlBody, h as RevokeSessionPath, i as RegisterWebauthnResult, j as TotpVerifyResult, k as RegenerateRecoveryCodesResult, l as RefreshTokenResult, m as SudoResult, n as RegisterWebauthnInput, o as RemoveWebauthnPath, p as SudoChallengeResult, r as RegisterWebauthnOptionsResult, s as RemoveWebauthnQuery, t as ListWebauthnCredentialsResult, u as RevokeTokenBody, v as InitiateSamlBody, w as ExchangePatBody, x as GetPkceTokenResult, y as InitiateSamlResult, z as GetDeviceAuthorizationTokenBody } from "../types-Cj4bLPp5.cjs";
2
+ export { ApproveDeviceAuthorizationBody, ApproveDeviceAuthorizationResult, AssertSamlBody, AssertSamlResult, CreateDeviceAuthorizationBody, CreateDeviceAuthorizationResult, CreatePatBody, CreatePatResult, DisableTotpPath, ExchangePatBody, ExchangePatResult, GetDeviceAuthorizationTokenBody, GetDeviceAuthorizationTokenResult, GetPkceTokenBody, GetPkceTokenResult, InitiateSamlBody, InitiateSamlResult, IntrospectTokenResult, ListPatsResult, ListWebauthnCredentialsResult, LoginBody, RefreshTokenResult, RegenerateRecoveryCodesResult, RegisterWebauthnInput, RegisterWebauthnOptionsResult, RegisterWebauthnResult, RemoveWebauthnInput, RemoveWebauthnPath, RemoveWebauthnQuery, RevokePatPath, RevokeSessionPath, RevokeTokenBody, SudoBody, SudoBodyRaw, SudoChallengeResult, SudoResult, TotpSetupResult, TotpVerifyResult, VerifyMfaBody, VerifyMfaResult };
@@ -1,2 +1,2 @@
1
- import { A as CreateDeviceAuthorizationBody, C as TotpSetupResult, D as LoginBody, E as VerifyMfaResult, M as GetDeviceAuthorizationTokenBody, N as GetDeviceAuthorizationTokenResult, O as ApproveDeviceAuthorizationBody, S as RegenerateRecoveryCodesResult, T as VerifyMfaBody, _ as ExchangePatBody, a as SudoBodyRaw, b as RevokePatPath, c as RevokeSessionPath, d as InitiateSamlBody, f as InitiateSamlResult, g as CreatePatResult, h as CreatePatBody, i as SudoBody, j as CreateDeviceAuthorizationResult, k as ApproveDeviceAuthorizationResult, l as AssertSamlBody, m as GetPkceTokenResult, n as RefreshTokenResult, o as SudoChallengeResult, p as GetPkceTokenBody, r as RevokeTokenBody, s as SudoResult, t as IntrospectTokenResult, u as AssertSamlResult, v as ExchangePatResult, w as TotpVerifyResult, x as DisableTotpPath, y as ListPatsResult } from "../types-BmFyDKe6.js";
2
- export { ApproveDeviceAuthorizationBody, ApproveDeviceAuthorizationResult, AssertSamlBody, AssertSamlResult, CreateDeviceAuthorizationBody, CreateDeviceAuthorizationResult, CreatePatBody, CreatePatResult, DisableTotpPath, ExchangePatBody, ExchangePatResult, GetDeviceAuthorizationTokenBody, GetDeviceAuthorizationTokenResult, GetPkceTokenBody, GetPkceTokenResult, InitiateSamlBody, InitiateSamlResult, IntrospectTokenResult, ListPatsResult, LoginBody, RefreshTokenResult, RegenerateRecoveryCodesResult, RevokePatPath, RevokeSessionPath, RevokeTokenBody, SudoBody, SudoBodyRaw, SudoChallengeResult, SudoResult, TotpSetupResult, TotpVerifyResult, VerifyMfaBody, VerifyMfaResult };
1
+ import { A as TotpSetupResult, B as GetDeviceAuthorizationTokenResult, C as CreatePatResult, D as RevokePatPath, E as ListPatsResult, F as ApproveDeviceAuthorizationBody, I as ApproveDeviceAuthorizationResult, L as CreateDeviceAuthorizationBody, M as VerifyMfaBody, N as VerifyMfaResult, O as DisableTotpPath, P as LoginBody, R as CreateDeviceAuthorizationResult, S as CreatePatBody, T as ExchangePatResult, _ as AssertSamlResult, a as RemoveWebauthnInput, b as GetPkceTokenBody, c as IntrospectTokenResult, d as SudoBody, f as SudoBodyRaw, g as AssertSamlBody, h as RevokeSessionPath, i as RegisterWebauthnResult, j as TotpVerifyResult, k as RegenerateRecoveryCodesResult, l as RefreshTokenResult, m as SudoResult, n as RegisterWebauthnInput, o as RemoveWebauthnPath, p as SudoChallengeResult, r as RegisterWebauthnOptionsResult, s as RemoveWebauthnQuery, t as ListWebauthnCredentialsResult, u as RevokeTokenBody, v as InitiateSamlBody, w as ExchangePatBody, x as GetPkceTokenResult, y as InitiateSamlResult, z as GetDeviceAuthorizationTokenBody } from "../types-CXTqFYah.js";
2
+ export { ApproveDeviceAuthorizationBody, ApproveDeviceAuthorizationResult, AssertSamlBody, AssertSamlResult, CreateDeviceAuthorizationBody, CreateDeviceAuthorizationResult, CreatePatBody, CreatePatResult, DisableTotpPath, ExchangePatBody, ExchangePatResult, GetDeviceAuthorizationTokenBody, GetDeviceAuthorizationTokenResult, GetPkceTokenBody, GetPkceTokenResult, InitiateSamlBody, InitiateSamlResult, IntrospectTokenResult, ListPatsResult, ListWebauthnCredentialsResult, LoginBody, RefreshTokenResult, RegenerateRecoveryCodesResult, RegisterWebauthnInput, RegisterWebauthnOptionsResult, RegisterWebauthnResult, RemoveWebauthnInput, RemoveWebauthnPath, RemoveWebauthnQuery, RevokePatPath, RevokeSessionPath, RevokeTokenBody, SudoBody, SudoBodyRaw, SudoChallengeResult, SudoResult, TotpSetupResult, TotpVerifyResult, VerifyMfaBody, VerifyMfaResult };
@@ -1,4 +1,4 @@
1
- const require_createFetchClient = require("./createFetchClient-BsG719K1.cjs");
1
+ const require_createFetchClient = require("./createFetchClient-BRfTjBLV.cjs");
2
2
  //#region src/clients/auth.ts
3
3
  const createAuthHeaders = (auth) => {
4
4
  if (auth.type === "sapi-token") return { [require_createFetchClient.KeboolaHttpHeader.STORAGE_API_TOKEN]: auth.token };
@@ -15,4 +15,4 @@ Object.defineProperty(exports, "createAuthHeaders", {
15
15
  }
16
16
  });
17
17
 
18
- //# sourceMappingURL=auth-5HCvCsZO.cjs.map
18
+ //# sourceMappingURL=auth-DP-6TFiM.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth-5HCvCsZO.cjs","names":["KeboolaHttpHeader","HttpHeader"],"sources":["../src/clients/auth.ts"],"sourcesContent":["import { HttpHeader } from '../fetchClient';\nimport { KeboolaHttpHeader } from '../internal';\n\nexport type AuthStrategy =\n | {\n type: 'sapi-token';\n token: string;\n }\n | {\n type: 'bearer';\n token: string;\n projectId: number;\n };\n\nexport const createAuthHeaders = (auth: AuthStrategy): Record<string, string> => {\n if (auth.type === 'sapi-token') return { [KeboolaHttpHeader.STORAGE_API_TOKEN]: auth.token };\n\n // `auth.token` is the bare token; the `Bearer ` wire prefix is added here (mirroring the\n // management client). In the browser bearer flow the bearer auth middleware stamps the\n // Authorization header on every request, so this value only matters for middleware-less\n // clients (e.g. kai-agent's storage token verification).\n return {\n [HttpHeader.AUTHORIZATION]: `Bearer ${auth.token}`,\n [KeboolaHttpHeader.PROJECT_ID]: auth.projectId.toString(),\n };\n};\n"],"mappings":";;AAcA,MAAa,qBAAqB,SAA+C;CAC/E,IAAI,KAAK,SAAS,cAAc,OAAO,GAAGA,0BAAAA,kBAAkB,oBAAoB,KAAK,MAAM;CAM3F,OAAO;GACJC,0BAAAA,WAAW,gBAAgB,UAAU,KAAK;GAC1CD,0BAAAA,kBAAkB,aAAa,KAAK,UAAU,SAAS;CAC1D;AACF"}
1
+ {"version":3,"file":"auth-DP-6TFiM.cjs","names":["KeboolaHttpHeader","HttpHeader"],"sources":["../src/clients/auth.ts"],"sourcesContent":["import { HttpHeader } from '../fetchClient';\nimport { KeboolaHttpHeader } from '../internal';\n\nexport type AuthStrategy =\n | {\n type: 'sapi-token';\n token: string;\n }\n | {\n type: 'bearer';\n token: string;\n projectId: number;\n };\n\nexport const createAuthHeaders = (auth: AuthStrategy): Record<string, string> => {\n if (auth.type === 'sapi-token') return { [KeboolaHttpHeader.STORAGE_API_TOKEN]: auth.token };\n\n // `auth.token` is the bare token; the `Bearer ` wire prefix is added here (mirroring the\n // management client). In the browser bearer flow the bearer auth middleware stamps the\n // Authorization header on every request, so this value only matters for middleware-less\n // clients (e.g. kai-agent's storage token verification).\n return {\n [HttpHeader.AUTHORIZATION]: `Bearer ${auth.token}`,\n [KeboolaHttpHeader.PROJECT_ID]: auth.projectId.toString(),\n };\n};\n"],"mappings":";;AAcA,MAAa,qBAAqB,SAA+C;CAC/E,IAAI,KAAK,SAAS,cAAc,OAAO,GAAGA,0BAAAA,kBAAkB,oBAAoB,KAAK,MAAM;CAM3F,OAAO;GACJC,0BAAAA,WAAW,gBAAgB,UAAU,KAAK;GAC1CD,0BAAAA,kBAAkB,aAAa,KAAK,UAAU,SAAS;CAC1D;AACF"}
@@ -1,4 +1,4 @@
1
- import { f as KeboolaHttpHeader, o as HttpHeader } from "./createFetchClient-BK0TZK-U.js";
1
+ import { o as HttpHeader, p as KeboolaHttpHeader } from "./createFetchClient-BbG46bL0.js";
2
2
  //#region src/clients/auth.ts
3
3
  const createAuthHeaders = (auth) => {
4
4
  if (auth.type === "sapi-token") return { [KeboolaHttpHeader.STORAGE_API_TOKEN]: auth.token };
@@ -10,4 +10,4 @@ const createAuthHeaders = (auth) => {
10
10
  //#endregion
11
11
  export { createAuthHeaders as t };
12
12
 
13
- //# sourceMappingURL=auth-D2jfNlpX.js.map
13
+ //# sourceMappingURL=auth-DtbQaeDj.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth-D2jfNlpX.js","names":[],"sources":["../src/clients/auth.ts"],"sourcesContent":["import { HttpHeader } from '../fetchClient';\nimport { KeboolaHttpHeader } from '../internal';\n\nexport type AuthStrategy =\n | {\n type: 'sapi-token';\n token: string;\n }\n | {\n type: 'bearer';\n token: string;\n projectId: number;\n };\n\nexport const createAuthHeaders = (auth: AuthStrategy): Record<string, string> => {\n if (auth.type === 'sapi-token') return { [KeboolaHttpHeader.STORAGE_API_TOKEN]: auth.token };\n\n // `auth.token` is the bare token; the `Bearer ` wire prefix is added here (mirroring the\n // management client). In the browser bearer flow the bearer auth middleware stamps the\n // Authorization header on every request, so this value only matters for middleware-less\n // clients (e.g. kai-agent's storage token verification).\n return {\n [HttpHeader.AUTHORIZATION]: `Bearer ${auth.token}`,\n [KeboolaHttpHeader.PROJECT_ID]: auth.projectId.toString(),\n };\n};\n"],"mappings":";;AAcA,MAAa,qBAAqB,SAA+C;CAC/E,IAAI,KAAK,SAAS,cAAc,OAAO,GAAG,kBAAkB,oBAAoB,KAAK,MAAM;CAM3F,OAAO;GACJ,WAAW,gBAAgB,UAAU,KAAK;GAC1C,kBAAkB,aAAa,KAAK,UAAU,SAAS;CAC1D;AACF"}
1
+ {"version":3,"file":"auth-DtbQaeDj.js","names":[],"sources":["../src/clients/auth.ts"],"sourcesContent":["import { HttpHeader } from '../fetchClient';\nimport { KeboolaHttpHeader } from '../internal';\n\nexport type AuthStrategy =\n | {\n type: 'sapi-token';\n token: string;\n }\n | {\n type: 'bearer';\n token: string;\n projectId: number;\n };\n\nexport const createAuthHeaders = (auth: AuthStrategy): Record<string, string> => {\n if (auth.type === 'sapi-token') return { [KeboolaHttpHeader.STORAGE_API_TOKEN]: auth.token };\n\n // `auth.token` is the bare token; the `Bearer ` wire prefix is added here (mirroring the\n // management client). In the browser bearer flow the bearer auth middleware stamps the\n // Authorization header on every request, so this value only matters for middleware-less\n // clients (e.g. kai-agent's storage token verification).\n return {\n [HttpHeader.AUTHORIZATION]: `Bearer ${auth.token}`,\n [KeboolaHttpHeader.PROJECT_ID]: auth.projectId.toString(),\n };\n};\n"],"mappings":";;AAcA,MAAa,qBAAqB,SAA+C;CAC/E,IAAI,KAAK,SAAS,cAAc,OAAO,GAAG,kBAAkB,oBAAoB,KAAK,MAAM;CAM3F,OAAO;GACJ,WAAW,gBAAgB,UAAU,KAAK;GAC1C,kBAAkB,aAAa,KAAK,UAAU,SAAS;CAC1D;AACF"}