@keboola/api-client 27.0.0 → 29.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.
- package/AGENTS.md +145 -11
- package/API-SURFACE.md +8 -1
- package/README.md +53 -18
- package/dist/ManagementClientAuthError-B97OtOQ7.js +15 -0
- package/dist/ManagementClientAuthError-B97OtOQ7.js.map +1 -0
- package/dist/ManagementClientAuthError-ZJ2-RoKT.cjs +20 -0
- package/dist/ManagementClientAuthError-ZJ2-RoKT.cjs.map +1 -0
- package/dist/QueryJobTimeoutError-C7JbNGOM.js +38 -0
- package/dist/QueryJobTimeoutError-C7JbNGOM.js.map +1 -0
- package/dist/QueryJobTimeoutError-CVNPdCWX.cjs +61 -0
- package/dist/QueryJobTimeoutError-CVNPdCWX.cjs.map +1 -0
- package/dist/SyncActionError-BG0zwchi.cjs +35 -0
- package/dist/SyncActionError-BG0zwchi.cjs.map +1 -0
- package/dist/SyncActionError-CoZFsdUk.js +24 -0
- package/dist/SyncActionError-CoZFsdUk.js.map +1 -0
- package/dist/UserError-By_Zckmc.js +10 -0
- package/dist/UserError-By_Zckmc.js.map +1 -0
- package/dist/UserError-CSGO1qII.cjs +15 -0
- package/dist/UserError-CSGO1qII.cjs.map +1 -0
- package/dist/ValidationError-CzPWydEb.js +44 -0
- package/dist/ValidationError-CzPWydEb.js.map +1 -0
- package/dist/ValidationError-h5qvwahi.cjs +61 -0
- package/dist/ValidationError-h5qvwahi.cjs.map +1 -0
- package/dist/adminRoles-B40yBcmq.js +14 -0
- package/dist/adminRoles-B40yBcmq.js.map +1 -0
- package/dist/adminRoles-C696kD_U.d.cts +14 -0
- package/dist/adminRoles-C696kD_U.d.ts +14 -0
- package/dist/adminRoles-CO7J5qAy.cjs +19 -0
- package/dist/adminRoles-CO7J5qAy.cjs.map +1 -0
- package/dist/ai/index.cjs +62 -12
- package/dist/ai/index.cjs.map +1 -1
- package/dist/ai/index.d.cts +52 -53
- package/dist/ai/index.d.ts +52 -53
- package/dist/ai/index.js +62 -4
- package/dist/ai/index.js.map +1 -1
- package/dist/ai/types.cjs +0 -4
- package/dist/ai/types.d.cts +2 -2
- package/dist/ai/types.d.ts +2 -2
- package/dist/ai/types.js +1 -3
- package/dist/appLogs-CNG3yby-.cjs +153 -0
- package/dist/appLogs-CNG3yby-.cjs.map +1 -0
- package/dist/appLogs-Dl5BcCSD.d.cts +10 -0
- package/dist/appLogs-VdgP08aX.d.ts +10 -0
- package/dist/appLogs-enL9XR9r.js +132 -0
- package/dist/appLogs-enL9XR9r.js.map +1 -0
- package/dist/apps/index.cjs +229 -14
- package/dist/apps/index.cjs.map +1 -1
- package/dist/apps/index.d.cts +219 -220
- package/dist/apps/index.d.ts +219 -220
- package/dist/apps/index.js +229 -6
- package/dist/apps/index.js.map +1 -1
- package/dist/apps/types.cjs +0 -4
- package/dist/apps/types.d.cts +3 -3
- package/dist/apps/types.d.ts +3 -3
- package/dist/apps/types.js +1 -3
- package/dist/assets/index.cjs +33 -38
- package/dist/assets/index.cjs.map +1 -1
- package/dist/assets/index.d.cts +22 -22
- package/dist/assets/index.d.ts +22 -22
- package/dist/assets/index.js +32 -36
- package/dist/assets/index.js.map +1 -1
- package/dist/assets/schema.cjs +23 -13
- package/dist/assets/schema.cjs.map +1 -1
- package/dist/assets/schema.d.cts +29 -28
- package/dist/assets/schema.d.ts +29 -28
- package/dist/assets/schema.js +21 -2
- package/dist/assets/schema.js.map +1 -1
- package/dist/auth/index.cjs +14 -57
- package/dist/auth/index.d.cts +2 -318
- package/dist/auth/index.d.ts +2 -318
- package/dist/auth/index.js +2 -4
- package/dist/auth/types.cjs +0 -4
- package/dist/auth/types.d.cts +2 -7
- package/dist/auth/types.d.ts +2 -7
- package/dist/auth/types.js +1 -3
- package/dist/auth-5HCvCsZO.cjs +18 -0
- package/dist/auth-5HCvCsZO.cjs.map +1 -0
- package/dist/auth-D2jfNlpX.js +13 -0
- package/dist/{chunk-5A3AQIXR.js.map → auth-D2jfNlpX.js.map} +1 -1
- package/dist/authClient-Bgj2Ay7h.d.cts +320 -0
- package/dist/authClient-DOk6VKdV.js +332 -0
- package/dist/authClient-DOk6VKdV.js.map +1 -0
- package/dist/authClient-Dsd7W99W.d.ts +320 -0
- package/dist/authClient-Z8Eg8rlN.cjs +405 -0
- package/dist/authClient-Z8Eg8rlN.cjs.map +1 -0
- package/dist/backends-DKBz5OxE.d.cts +9 -0
- package/dist/backends-DKBz5OxE.d.ts +9 -0
- package/dist/chat/index.cjs +134 -13
- package/dist/chat/index.cjs.map +1 -1
- package/dist/chat/index.d.cts +49 -51
- package/dist/chat/index.d.ts +49 -51
- package/dist/chat/index.js +134 -5
- package/dist/chat/index.js.map +1 -1
- package/dist/chat/suggestions.cjs +152 -74
- package/dist/chat/suggestions.cjs.map +1 -1
- package/dist/chat/suggestions.d.cts +2 -437
- package/dist/chat/suggestions.d.ts +2 -437
- package/dist/chat/suggestions.js +136 -2
- package/dist/chat/suggestions.js.map +1 -1
- package/dist/chat/types.cjs +6 -8
- package/dist/chat/types.cjs.map +1 -1
- package/dist/chat/types.d.cts +2 -3
- package/dist/chat/types.d.ts +2 -3
- package/dist/chat/types.js +5 -6
- package/dist/chat/types.js.map +1 -1
- package/dist/componentId-DkyQ8PM0.cjs +73 -0
- package/dist/componentId-DkyQ8PM0.cjs.map +1 -0
- package/dist/componentId-vJz-kWs6.js +68 -0
- package/dist/componentId-vJz-kWs6.js.map +1 -0
- package/dist/concurrent-CH9fbNr3.js +34 -0
- package/dist/concurrent-CH9fbNr3.js.map +1 -0
- package/dist/concurrent-tbiIa0UL.cjs +39 -0
- package/dist/concurrent-tbiIa0UL.cjs.map +1 -0
- package/dist/configurations-Byt59bIa.js +726 -0
- package/dist/configurations-Byt59bIa.js.map +1 -0
- package/dist/configurations-CujCwDcB.cjs +743 -0
- package/dist/configurations-CujCwDcB.cjs.map +1 -0
- package/dist/configurations-DCOJONZZ.cjs +313 -0
- package/dist/configurations-DCOJONZZ.cjs.map +1 -0
- package/dist/configurations-iCbhe0tb.js +158 -0
- package/dist/configurations-iCbhe0tb.js.map +1 -0
- package/dist/constants/index.cjs +10 -34
- package/dist/constants/index.d.cts +4 -104
- package/dist/constants/index.d.ts +4 -104
- package/dist/constants/index.js +4 -5
- package/dist/constants-CqyyBkXW.cjs +197 -0
- package/dist/constants-CqyyBkXW.cjs.map +1 -0
- package/dist/constants-_HhqKvBg.js +174 -0
- package/dist/constants-_HhqKvBg.js.map +1 -0
- package/dist/createFetchClient-BK0TZK-U.js +184 -0
- package/dist/createFetchClient-BK0TZK-U.js.map +1 -0
- package/dist/createFetchClient-BsG719K1.cjs +263 -0
- package/dist/createFetchClient-BsG719K1.cjs.map +1 -0
- package/dist/createGenericFetchClient-CVZYekDk.js +7 -0
- package/dist/createGenericFetchClient-CVZYekDk.js.map +1 -0
- package/dist/createGenericFetchClient-DLbjX0eM.cjs +12 -0
- package/dist/createGenericFetchClient-DLbjX0eM.cjs.map +1 -0
- package/dist/createOpenapiFetchClient-B5U1fCHS.js +7 -0
- package/dist/createOpenapiFetchClient-B5U1fCHS.js.map +1 -0
- package/dist/createOpenapiFetchClient-Cr90VXY4.cjs +12 -0
- package/dist/createOpenapiFetchClient-Cr90VXY4.cjs.map +1 -0
- package/dist/createStore-BNiCRQXa.js +148 -0
- package/dist/createStore-BNiCRQXa.js.map +1 -0
- package/dist/createStore-MQbboXcB.cjs +177 -0
- package/dist/createStore-MQbboXcB.cjs.map +1 -0
- package/dist/credential-0c6yFwtp.cjs +44 -0
- package/dist/credential-0c6yFwtp.cjs.map +1 -0
- package/dist/credential-kEGLnVez.js +33 -0
- package/dist/credential-kEGLnVez.js.map +1 -0
- package/dist/dataScience/index.cjs +5 -20
- package/dist/dataScience/index.d.cts +3 -209
- package/dist/dataScience/index.d.ts +3 -209
- package/dist/dataScience/index.js +3 -7
- package/dist/dataScience/types.cjs +0 -4
- package/dist/dataScience/types.d.cts +3 -2172
- package/dist/dataScience/types.d.ts +3 -2172
- package/dist/dataScience/types.js +1 -3
- package/dist/dataScience-C-JrA0Uk.cjs +114 -0
- package/dist/dataScience-C-JrA0Uk.cjs.map +1 -0
- package/dist/dataScience-CE0pSWbl.js +109 -0
- package/dist/dataScience-CE0pSWbl.js.map +1 -0
- package/dist/dedupe-CiskLkGR.cjs +30 -0
- package/dist/dedupe-CiskLkGR.cjs.map +1 -0
- package/dist/dedupe-DYIHgZoG.js +25 -0
- package/dist/dedupe-DYIHgZoG.js.map +1 -0
- package/dist/developerPortal/index.cjs +6 -0
- package/dist/developerPortal/index.d.cts +3 -0
- package/dist/developerPortal/index.d.ts +3 -0
- package/dist/developerPortal/index.js +2 -0
- package/dist/developerPortal/types.cjs +0 -0
- package/dist/developerPortal/types.d.cts +2 -0
- package/dist/developerPortal/types.d.ts +2 -0
- package/dist/developerPortal/types.js +1 -0
- package/dist/developerPortalClient-BPPEAdJW.js +485 -0
- package/dist/developerPortalClient-BPPEAdJW.js.map +1 -0
- package/dist/developerPortalClient-C8oq48xW.cjs +508 -0
- package/dist/developerPortalClient-C8oq48xW.cjs.map +1 -0
- package/dist/domain/permissions/index.cjs +31 -122
- package/dist/domain/permissions/index.d.cts +19 -52
- package/dist/domain/permissions/index.d.ts +19 -52
- package/dist/domain/permissions/index.js +3 -5
- package/dist/domain/storageTable/index.cjs +4 -16
- package/dist/domain/storageTable/index.d.cts +2 -131
- package/dist/domain/storageTable/index.d.ts +2 -131
- package/dist/domain/storageTable/index.js +2 -3
- package/dist/editor/index.cjs +96 -12
- package/dist/editor/index.cjs.map +1 -1
- package/dist/editor/index.d.cts +163 -164
- package/dist/editor/index.d.ts +163 -164
- package/dist/editor/index.js +96 -4
- package/dist/editor/index.js.map +1 -1
- package/dist/editor/types.cjs +0 -4
- package/dist/editor/types.d.cts +2 -2
- package/dist/editor/types.d.ts +2 -2
- package/dist/editor/types.js +1 -3
- package/dist/encryption/index.cjs +58 -11
- package/dist/encryption/index.cjs.map +1 -1
- package/dist/encryption/index.d.cts +2 -20
- package/dist/encryption/index.d.ts +2 -20
- package/dist/encryption/index.js +58 -3
- package/dist/encryption/index.js.map +1 -1
- package/dist/encryption/types.cjs +0 -4
- package/dist/encryption/types.d.cts +2 -69
- package/dist/encryption/types.d.ts +2 -69
- package/dist/encryption/types.js +1 -3
- package/dist/generateUUID-C6qKBPIv.cjs +11 -0
- package/dist/generateUUID-C6qKBPIv.cjs.map +1 -0
- package/dist/generateUUID-Dr8l-aoc.js +6 -0
- package/dist/generateUUID-Dr8l-aoc.js.map +1 -0
- package/dist/import/index.cjs +3 -14
- package/dist/import/index.d.cts +41 -41
- package/dist/import/index.d.ts +41 -41
- package/dist/import/index.js +2 -5
- package/dist/import-Cf0W-7YD.js +116 -0
- package/dist/import-Cf0W-7YD.js.map +1 -0
- package/dist/import-KLH1uRtx.cjs +121 -0
- package/dist/import-KLH1uRtx.cjs.map +1 -0
- package/dist/index-8pN6Emos.d.ts +218 -0
- package/dist/index-BEKaJ7Cc.d.cts +1388 -0
- package/dist/index-BMqLPS6S.d.cts +135 -0
- package/dist/index-BMqLPS6S.d.ts +135 -0
- package/dist/index-BWBScAYc.d.cts +16 -0
- package/dist/index-BmjeNd9u.d.ts +1075 -0
- package/dist/index-BthgbVdd.d.ts +31 -0
- package/dist/index-CLPrlyIz.d.cts +218 -0
- package/dist/index-CXQRvZ-f.d.cts +31 -0
- package/dist/index-CeistZnj.d.ts +1388 -0
- package/dist/index-Cfrl7sd5.d.ts +65 -0
- package/dist/index-DIM8KZly.d.ts +16 -0
- package/dist/index-DNlX-H1V.d.ts +208 -0
- package/dist/index-DVsnxZap.d.cts +65 -0
- package/dist/index-DXi6wsr5.d.cts +77 -0
- package/dist/index-DYQt4zxC.d.ts +77 -0
- package/dist/index-DplMbm9E.d.cts +19882 -0
- package/dist/index-Dwp8tF6O.d.ts +19882 -0
- package/dist/index-IN0qzs52.d.cts +208 -0
- package/dist/index-KKJkrxjx.d.ts +26 -0
- package/dist/index-NC1dXRTD.d.cts +40 -0
- package/dist/index-NC1dXRTD.d.ts +40 -0
- package/dist/index-WQkVzx5e.d.cts +1075 -0
- package/dist/index-eEBVG5s3.d.cts +26 -0
- package/dist/index-vb9Rfqca.d.cts +115 -0
- package/dist/index-vb9Rfqca.d.ts +115 -0
- package/dist/index.cjs +1726 -1884
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -15778
- package/dist/index.d.ts +7 -15778
- package/dist/index.js +1676 -1724
- package/dist/index.js.map +1 -1
- package/dist/isPlainObject-BB3iy87C.cjs +16 -0
- package/dist/isPlainObject-BB3iy87C.cjs.map +1 -0
- package/dist/isPlainObject-LYW-03uB.js +11 -0
- package/dist/isPlainObject-LYW-03uB.js.map +1 -0
- package/dist/jobStatus-DbMupQEK.js +423 -0
- package/dist/jobStatus-DbMupQEK.js.map +1 -0
- package/dist/jobStatus-kQ9JqF8t.cjs +494 -0
- package/dist/jobStatus-kQ9JqF8t.cjs.map +1 -0
- package/dist/management/index.cjs +4 -18
- package/dist/management/index.d.cts +2 -1076
- package/dist/management/index.d.ts +2 -1076
- package/dist/management/index.js +2 -5
- package/dist/management/types.cjs +0 -4
- package/dist/management/types.d.cts +2 -12
- package/dist/management/types.d.ts +2 -12
- package/dist/management/types.js +1 -3
- package/dist/management-DqwQcDCx.js +1065 -0
- package/dist/management-DqwQcDCx.js.map +1 -0
- package/dist/management-WOmlBt6H.cjs +1076 -0
- package/dist/management-WOmlBt6H.cjs.map +1 -0
- package/dist/metastore/index.cjs +3 -14
- package/dist/metastore/index.d.cts +2 -32
- package/dist/metastore/index.d.ts +2 -32
- package/dist/metastore/index.js +2 -5
- package/dist/metastore/types.cjs +0 -4
- package/dist/metastore/types.d.cts +2 -2
- package/dist/metastore/types.d.ts +2 -2
- package/dist/metastore/types.js +1 -3
- package/dist/metastore-CNEhL66f.js +134 -0
- package/dist/metastore-CNEhL66f.js.map +1 -0
- package/dist/metastore-CkQluyX1.cjs +139 -0
- package/dist/metastore-CkQluyX1.cjs.map +1 -0
- package/dist/notifications/index.cjs +67 -13
- package/dist/notifications/index.cjs.map +1 -1
- package/dist/notifications/index.d.cts +56 -57
- package/dist/notifications/index.d.ts +56 -57
- package/dist/notifications/index.js +67 -5
- package/dist/notifications/index.js.map +1 -1
- package/dist/notifications/types.cjs +0 -4
- package/dist/notifications/types.d.cts +2 -2
- package/dist/notifications/types.d.ts +2 -2
- package/dist/notifications/types.js +1 -3
- package/dist/oauth/index.cjs +3 -14
- package/dist/oauth/index.d.cts +49 -50
- package/dist/oauth/index.d.ts +49 -50
- package/dist/oauth/index.js +2 -5
- package/dist/oauth/types.cjs +0 -4
- package/dist/oauth/types.d.cts +2 -725
- package/dist/oauth/types.d.ts +2 -725
- package/dist/oauth/types.js +1 -3
- package/dist/oauth-DTvrqe6P.cjs +88 -0
- package/dist/oauth-DTvrqe6P.cjs.map +1 -0
- package/dist/oauth-DYDObUX9.js +83 -0
- package/dist/oauth-DYDObUX9.js.map +1 -0
- package/dist/omnisearch/index.cjs +47 -12
- package/dist/omnisearch/index.cjs.map +1 -1
- package/dist/omnisearch/index.d.cts +12 -14
- package/dist/omnisearch/index.d.ts +12 -14
- package/dist/omnisearch/index.js +47 -4
- package/dist/omnisearch/index.js.map +1 -1
- package/dist/omnisearch/types.cjs +0 -4
- package/dist/omnisearch/types.d.cts +2 -3
- package/dist/omnisearch/types.d.ts +2 -3
- package/dist/omnisearch/types.js +1 -3
- package/dist/project-BvFi19K_.cjs +56 -0
- package/dist/project-BvFi19K_.cjs.map +1 -0
- package/dist/project-CcGxXIW_.d.cts +18 -0
- package/dist/project-DWwZv66D.js +39 -0
- package/dist/project-DWwZv66D.js.map +1 -0
- package/dist/project-io1pY-hW.d.ts +18 -0
- package/dist/queryService/index.cjs +3 -14
- package/dist/queryService/index.d.cts +2 -40
- package/dist/queryService/index.d.ts +2 -40
- package/dist/queryService/index.js +2 -5
- package/dist/queryService/types.cjs +0 -4
- package/dist/queryService/types.d.cts +2 -2
- package/dist/queryService/types.d.ts +2 -2
- package/dist/queryService/types.js +1 -3
- package/dist/queryService-BHV_OZI2.js +114 -0
- package/dist/queryService-BHV_OZI2.js.map +1 -0
- package/dist/queryService-CvqDqigW.cjs +119 -0
- package/dist/queryService-CvqDqigW.cjs.map +1 -0
- package/dist/queue/index.cjs +3 -15
- package/dist/queue/index.d.cts +411 -340
- package/dist/queue/index.d.ts +411 -340
- package/dist/queue/index.js +2 -6
- package/dist/queue/types.cjs +0 -4
- package/dist/queue/types.d.cts +2 -2
- package/dist/queue/types.d.ts +2 -2
- package/dist/queue/types.js +1 -3
- package/dist/queue-CUHKupTA.cjs +137 -0
- package/dist/queue-CUHKupTA.cjs.map +1 -0
- package/dist/queue-uofE4Eu6.js +126 -0
- package/dist/queue-uofE4Eu6.js.map +1 -0
- package/dist/rolldown-runtime-VH7oDXx4.cjs +28 -0
- package/dist/scheduler/index.cjs +61 -13
- package/dist/scheduler/index.cjs.map +1 -1
- package/dist/scheduler/index.d.cts +73 -74
- package/dist/scheduler/index.d.ts +73 -74
- package/dist/scheduler/index.js +61 -5
- package/dist/scheduler/index.js.map +1 -1
- package/dist/scheduler/types.cjs +0 -4
- package/dist/scheduler/types.d.cts +2 -372
- package/dist/scheduler/types.d.ts +2 -372
- package/dist/scheduler/types.js +1 -3
- package/dist/sdk/configurations/index.cjs +3 -16
- package/dist/sdk/configurations/index.d.cts +3066 -3078
- package/dist/sdk/configurations/index.d.ts +3066 -3078
- package/dist/sdk/configurations/index.js +2 -7
- package/dist/sdk/developerPortal/index.cjs +203 -0
- package/dist/sdk/developerPortal/index.cjs.map +1 -0
- package/dist/sdk/developerPortal/index.d.cts +1371 -0
- package/dist/sdk/developerPortal/index.d.ts +1371 -0
- package/dist/sdk/developerPortal/index.js +202 -0
- package/dist/sdk/developerPortal/index.js.map +1 -0
- package/dist/sdk/queryService/index.cjs +91 -14
- package/dist/sdk/queryService/index.cjs.map +1 -1
- package/dist/sdk/queryService/index.d.cts +2 -35
- package/dist/sdk/queryService/index.d.ts +2 -35
- package/dist/sdk/queryService/index.js +91 -6
- package/dist/sdk/queryService/index.js.map +1 -1
- package/dist/sdk/semanticLayer/index.cjs +352 -54
- package/dist/sdk/semanticLayer/index.cjs.map +1 -1
- package/dist/sdk/semanticLayer/index.d.cts +95 -99
- package/dist/sdk/semanticLayer/index.d.ts +95 -99
- package/dist/sdk/semanticLayer/index.js +346 -4
- package/dist/sdk/semanticLayer/index.js.map +1 -1
- package/dist/sdk/semanticLayer/types.cjs +0 -4
- package/dist/sdk/semanticLayer/types.d.cts +2 -152
- package/dist/sdk/semanticLayer/types.d.ts +2 -152
- package/dist/sdk/semanticLayer/types.js +1 -3
- package/dist/sdk/storage/index.cjs +267 -48
- package/dist/sdk/storage/index.cjs.map +1 -1
- package/dist/sdk/storage/index.d.cts +2 -120
- package/dist/sdk/storage/index.d.ts +2 -120
- package/dist/sdk/storage/index.js +258 -4
- package/dist/sdk/storage/index.js.map +1 -1
- package/dist/sdk/tag/index.cjs +3 -14
- package/dist/sdk/tag/index.d.cts +16 -20
- package/dist/sdk/tag/index.d.ts +16 -20
- package/dist/sdk/tag/index.js +2 -5
- package/dist/sdk/tag/types.cjs +0 -4
- package/dist/sdk/tag/types.d.cts +2 -36
- package/dist/sdk/tag/types.d.ts +2 -36
- package/dist/sdk/tag/types.js +1 -3
- package/dist/sdk/vault/index.cjs +93 -31
- package/dist/sdk/vault/index.cjs.map +1 -1
- package/dist/sdk/vault/index.d.cts +2 -73
- package/dist/sdk/vault/index.d.ts +2 -73
- package/dist/sdk/vault/index.js +88 -3
- package/dist/sdk/vault/index.js.map +1 -1
- package/dist/status/index.cjs +16 -20
- package/dist/status/index.cjs.map +1 -1
- package/dist/status/index.d.cts +8 -9
- package/dist/status/index.d.ts +8 -9
- package/dist/status/index.js +15 -18
- package/dist/status/index.js.map +1 -1
- package/dist/status/types.cjs +0 -6
- package/dist/status/types.d.cts +17 -15
- package/dist/status/types.d.ts +17 -15
- package/dist/status/types.js +1 -3
- package/dist/storage/index.cjs +27 -92
- package/dist/storage/index.d.cts +3 -24
- package/dist/storage/index.d.ts +3 -24
- package/dist/storage/index.js +8 -11
- package/dist/storage/types.cjs +0 -4
- package/dist/storage/types.d.cts +5 -1949
- package/dist/storage/types.d.ts +5 -1949
- package/dist/storage/types.js +1 -3
- package/dist/storage-DbyNnkIJ.cjs +2458 -0
- package/dist/storage-DbyNnkIJ.cjs.map +1 -0
- package/dist/storage-luq7YBZF.js +2429 -0
- package/dist/storage-luq7YBZF.js.map +1 -0
- package/dist/storageTable-C9crh4Ef.cjs +310 -0
- package/dist/storageTable-C9crh4Ef.cjs.map +1 -0
- package/dist/storageTable-DslXtqNL.js +299 -0
- package/dist/storageTable-DslXtqNL.js.map +1 -0
- package/dist/stream/index.cjs +363 -12
- package/dist/stream/index.cjs.map +1 -1
- package/dist/stream/index.d.cts +345 -346
- package/dist/stream/index.d.ts +345 -346
- package/dist/stream/index.js +363 -4
- package/dist/stream/index.js.map +1 -1
- package/dist/stream/types.cjs +0 -4
- package/dist/stream/types.d.cts +2 -2
- package/dist/stream/types.d.ts +2 -2
- package/dist/stream/types.js +1 -3
- package/dist/suggestions-BH3x7xU7.d.cts +438 -0
- package/dist/suggestions-BH3x7xU7.d.ts +438 -0
- package/dist/syncActions/index.cjs +3 -19
- package/dist/syncActions/index.d.cts +2 -67
- package/dist/syncActions/index.d.ts +2 -67
- package/dist/syncActions/index.js +2 -10
- package/dist/syncActions/types.cjs +0 -4
- package/dist/syncActions/types.d.cts +2 -614
- package/dist/syncActions/types.d.ts +2 -614
- package/dist/syncActions/types.js +1 -3
- package/dist/syncActions-DKWeJ8GH.cjs +504 -0
- package/dist/syncActions-DKWeJ8GH.cjs.map +1 -0
- package/dist/syncActions-ssWWVN_4.js +497 -0
- package/dist/syncActions-ssWWVN_4.js.map +1 -0
- package/dist/tag-CsoOZWB_.cjs +175 -0
- package/dist/tag-CsoOZWB_.cjs.map +1 -0
- package/dist/tag-DCsoewjL.js +164 -0
- package/dist/{chunk-WUFODWZV.js.map → tag-DCsoewjL.js.map} +1 -1
- package/dist/telemetry/index.cjs +3 -14
- package/dist/telemetry/index.d.cts +10 -10
- package/dist/telemetry/index.d.ts +10 -10
- package/dist/telemetry/index.js +2 -5
- package/dist/telemetry/types.cjs +0 -4
- package/dist/telemetry/types.d.cts +2 -12
- package/dist/telemetry/types.d.ts +2 -12
- package/dist/telemetry/types.js +1 -3
- package/dist/telemetry-2IrE8HaZ.cjs +29 -0
- package/dist/telemetry-2IrE8HaZ.cjs.map +1 -0
- package/dist/telemetry-yQfQxBBI.js +24 -0
- package/dist/telemetry-yQfQxBBI.js.map +1 -0
- package/dist/types--T-vBqdd.d.cts +2835 -0
- package/dist/{types-Cffam0Nw.d.ts → types-2mHlPakp.d.cts} +84 -80
- package/dist/types-7H6Dnz0Y.d.ts +23 -0
- package/dist/{types-BcaALDYY.d.cts → types-B06L4-WE.d.cts} +9 -15
- package/dist/types-B1S2H7q1.d.ts +373 -0
- package/dist/types-B1glyy_Q.d.ts +726 -0
- package/dist/types-BCt0EMiO.d.ts +2162 -0
- package/dist/{types-Y1ynT2PH.d.cts → types-BD6czYPH.d.ts} +29 -106
- package/dist/{types-CwAYn1EJ.d.cts → types-BO-mTxKb.d.cts} +48 -80
- package/dist/{types-nt7I4XNc.d.cts → types-BREBK0xX.d.ts} +7 -6
- package/dist/types-BRQAKEC1.d.cts +32 -0
- package/dist/types-BXK6Ebtm.d.ts +32 -0
- package/dist/types-BefwoXik.d.cts +373 -0
- package/dist/{types-BuEkMmKT.d.ts → types-BhBvnvqe.d.ts} +219 -234
- package/dist/{types-qvle4Ydu.d.cts → types-BmFyDKe6.d.ts} +84 -80
- package/dist/types-BpWqpMkL.d.ts +66 -0
- package/dist/types-C8XiTXxi.d.cts +23 -0
- package/dist/{types-DrGnvgkB.d.ts → types-CAOvDtMC.d.cts} +9 -14
- package/dist/types-CC0wymfG.d.ts +2088 -0
- package/dist/{types-Bom93Zx2.d.cts → types-CI1mW2lA.d.ts} +9 -14
- package/dist/{types-EZBBpiFU.d.ts → types-CRYtdj5w.d.ts} +238 -349
- package/dist/{types-CniF_D1P.d.cts → types-CSmttcZ_.d.ts} +8 -10
- package/dist/{types-CxAH36ip.d.cts → types-CbZ8aMKW.d.cts} +9 -12
- package/dist/{types-D2qGShlS.d.ts → types-CexuN7Mw.d.cts} +29 -106
- package/dist/types-CjAia48k.d.ts +386 -0
- package/dist/{types-ebolWqn1.d.ts → types-CtdyAkzI.d.cts} +27 -16
- package/dist/{types-COti0FGo.d.ts → types-CvADp-x-.d.ts} +9 -12
- package/dist/types-CwvOcTOm.d.cts +2088 -0
- package/dist/types-CyRK5z-E.d.cts +386 -0
- package/dist/{types-BALUbGA5.d.ts → types-D2n3h1gp.d.ts} +48 -80
- package/dist/types-DBOEA7l0.d.cts +148 -0
- package/dist/{types-DM1glEQI.d.ts → types-DCBKso0t.d.cts} +8 -10
- package/dist/{types-DNyZ0z3L.d.cts → types-DEKF5pbg.d.cts} +219 -234
- package/dist/{types-D6dnnju2.d.ts → types-DMvU4kZ2.d.cts} +32 -30
- package/dist/{types-BPKQRahf.d.cts → types-DS8uFAeq.d.cts} +8 -13
- package/dist/{types-DOc5_aYZ.d.ts → types-DeApSCzx.d.cts} +16 -21
- package/dist/types-DebL68-g.d.ts +148 -0
- package/dist/types-DgaYUtu_.d.cts +726 -0
- package/dist/{types-CfzHhZVG.d.ts → types-DkbfBOBr.d.cts} +7 -6
- package/dist/types-DvsGS8By.d.cts +66 -0
- package/dist/{types-Dpwb4dD0.d.ts → types-DwX1uxp_.d.ts} +8 -13
- package/dist/{types-cxk-0ftN.d.cts → types-ISUNM_BR.d.cts} +238 -349
- package/dist/types-QOIQ-dZU.d.cts +2162 -0
- package/dist/{types-BsejtGjZ.d.ts → types-SGuvOEV8.d.ts} +9 -15
- package/dist/types-V8rC5if7.d.cts +621 -0
- package/dist/{types-BCBF_5cU.d.cts → types-Z-vUwgym.d.ts} +32 -30
- package/dist/{types-Bp8d9PJf.d.cts → types-bws2RtKq.d.ts} +16 -21
- package/dist/types-h9TTimS_.d.ts +2835 -0
- package/dist/types-lFsTSkhe.d.cts +14 -0
- package/dist/types-lFsTSkhe.d.ts +14 -0
- package/dist/types-n4FFKqa4.d.ts +621 -0
- package/dist/{types-CFeOCzzg.d.cts → types-x4xPlrr0.d.ts} +27 -16
- package/dist/vault/index.cjs +49 -13
- package/dist/vault/index.cjs.map +1 -1
- package/dist/vault/index.d.cts +2 -27
- package/dist/vault/index.d.ts +2 -27
- package/dist/vault/index.js +49 -5
- package/dist/vault/index.js.map +1 -1
- package/dist/vault/types.cjs +0 -4
- package/dist/vault/types.d.cts +2 -385
- package/dist/vault/types.d.ts +2 -385
- package/dist/vault/types.js +1 -3
- package/package.json +43 -5
- package/surface/apps.md +2 -2
- package/surface/chat.md +2 -2
- package/surface/dataScience.md +2 -2
- package/surface/kaiAgent.md +1 -1
- package/surface/queryService.md +4 -3
- package/surface/queue.md +2 -1
- package/surface/sdk.md +8 -8
- package/surface/storage.md +40 -35
- package/surface/syncActions.md +2 -2
- package/dist/ManagementClientAuthError-4J0S5tV-.d.ts +0 -9
- package/dist/ManagementClientAuthError-CyDpa4NS.d.cts +0 -9
- package/dist/adminRoles-BSUPLfNf.d.cts +0 -12
- package/dist/adminRoles-BSUPLfNf.d.ts +0 -12
- package/dist/ai/types.cjs.map +0 -1
- package/dist/ai/types.js.map +0 -1
- package/dist/appLogs-BbgAJ5I8.d.cts +0 -7
- package/dist/appLogs-BbgAJ5I8.d.ts +0 -7
- package/dist/apps/types.cjs.map +0 -1
- package/dist/apps/types.js.map +0 -1
- package/dist/auth/index.cjs.map +0 -1
- package/dist/auth/index.js.map +0 -1
- package/dist/auth/types.cjs.map +0 -1
- package/dist/auth/types.js.map +0 -1
- package/dist/backends-UNp_e5y9.d.cts +0 -7
- package/dist/backends-UNp_e5y9.d.ts +0 -7
- package/dist/chunk-22E6IGXR.js +0 -6
- package/dist/chunk-22E6IGXR.js.map +0 -1
- package/dist/chunk-24YVNNAG.js +0 -83
- package/dist/chunk-24YVNNAG.js.map +0 -1
- package/dist/chunk-255CHZ3U.js +0 -200
- package/dist/chunk-255CHZ3U.js.map +0 -1
- package/dist/chunk-2BCH2U57.js +0 -67
- package/dist/chunk-2BCH2U57.js.map +0 -1
- package/dist/chunk-2BQBKU6E.js +0 -270
- package/dist/chunk-2BQBKU6E.js.map +0 -1
- package/dist/chunk-2JKTV7UG.cjs +0 -35
- package/dist/chunk-2JKTV7UG.cjs.map +0 -1
- package/dist/chunk-3UBGQFBU.js +0 -29
- package/dist/chunk-3UBGQFBU.js.map +0 -1
- package/dist/chunk-4RC5E3SL.js +0 -140
- package/dist/chunk-4RC5E3SL.js.map +0 -1
- package/dist/chunk-552FC4ZV.js +0 -14
- package/dist/chunk-552FC4ZV.js.map +0 -1
- package/dist/chunk-57Q4CY4H.js +0 -190
- package/dist/chunk-57Q4CY4H.js.map +0 -1
- package/dist/chunk-5A3AQIXR.js +0 -14
- package/dist/chunk-5HEIR4DC.js +0 -39
- package/dist/chunk-5HEIR4DC.js.map +0 -1
- package/dist/chunk-5SR2L35Y.cjs +0 -1828
- package/dist/chunk-5SR2L35Y.cjs.map +0 -1
- package/dist/chunk-62LG5KPI.js +0 -285
- package/dist/chunk-62LG5KPI.js.map +0 -1
- package/dist/chunk-67P5UI6H.js +0 -58
- package/dist/chunk-67P5UI6H.js.map +0 -1
- package/dist/chunk-6PVEHUJL.cjs +0 -1308
- package/dist/chunk-6PVEHUJL.cjs.map +0 -1
- package/dist/chunk-6XFXU5N4.js +0 -119
- package/dist/chunk-6XFXU5N4.js.map +0 -1
- package/dist/chunk-6YZQIMML.cjs +0 -163
- package/dist/chunk-6YZQIMML.cjs.map +0 -1
- package/dist/chunk-6ZQBFK2Y.js +0 -24
- package/dist/chunk-6ZQBFK2Y.js.map +0 -1
- package/dist/chunk-7J2R6XHB.js +0 -3
- package/dist/chunk-7J2R6XHB.js.map +0 -1
- package/dist/chunk-AJ3SCWUB.cjs +0 -69
- package/dist/chunk-AJ3SCWUB.cjs.map +0 -1
- package/dist/chunk-AXYNFDUI.cjs +0 -43
- package/dist/chunk-AXYNFDUI.cjs.map +0 -1
- package/dist/chunk-B45B4AYG.js +0 -272
- package/dist/chunk-B45B4AYG.js.map +0 -1
- package/dist/chunk-B4T4QCLB.js +0 -116
- package/dist/chunk-B4T4QCLB.js.map +0 -1
- package/dist/chunk-BCZPCMGL.cjs +0 -49
- package/dist/chunk-BCZPCMGL.cjs.map +0 -1
- package/dist/chunk-BGJWHTBJ.js +0 -66
- package/dist/chunk-BGJWHTBJ.js.map +0 -1
- package/dist/chunk-BVRPZKRE.cjs +0 -147
- package/dist/chunk-BVRPZKRE.cjs.map +0 -1
- package/dist/chunk-BZB4UVQA.cjs +0 -192
- package/dist/chunk-BZB4UVQA.cjs.map +0 -1
- package/dist/chunk-CHRBWCL7.cjs +0 -472
- package/dist/chunk-CHRBWCL7.cjs.map +0 -1
- package/dist/chunk-CPZME73I.js +0 -16
- package/dist/chunk-CPZME73I.js.map +0 -1
- package/dist/chunk-DVV35AIS.js +0 -468
- package/dist/chunk-DVV35AIS.js.map +0 -1
- package/dist/chunk-E7GGDLAH.cjs +0 -202
- package/dist/chunk-E7GGDLAH.cjs.map +0 -1
- package/dist/chunk-EQPBR3BE.cjs +0 -85
- package/dist/chunk-EQPBR3BE.cjs.map +0 -1
- package/dist/chunk-ERZEQ5JR.js +0 -40
- package/dist/chunk-ERZEQ5JR.js.map +0 -1
- package/dist/chunk-ES3ADC2G.cjs +0 -18
- package/dist/chunk-ES3ADC2G.cjs.map +0 -1
- package/dist/chunk-EWMXK3EI.cjs +0 -8
- package/dist/chunk-EWMXK3EI.cjs.map +0 -1
- package/dist/chunk-FEAE6L3K.cjs +0 -60
- package/dist/chunk-FEAE6L3K.cjs.map +0 -1
- package/dist/chunk-FPB6OGTV.js +0 -26
- package/dist/chunk-FPB6OGTV.js.map +0 -1
- package/dist/chunk-FVU7WU2H.cjs +0 -66
- package/dist/chunk-FVU7WU2H.cjs.map +0 -1
- package/dist/chunk-FW5GBBKL.js +0 -67
- package/dist/chunk-FW5GBBKL.js.map +0 -1
- package/dist/chunk-G2SWCC3X.js +0 -90
- package/dist/chunk-G2SWCC3X.js.map +0 -1
- package/dist/chunk-G3JHVIDZ.cjs +0 -286
- package/dist/chunk-G3JHVIDZ.cjs.map +0 -1
- package/dist/chunk-G3N5KDEY.js +0 -10
- package/dist/chunk-G3N5KDEY.js.map +0 -1
- package/dist/chunk-HGKDXF35.js +0 -301
- package/dist/chunk-HGKDXF35.js.map +0 -1
- package/dist/chunk-HITKHHWN.cjs +0 -174
- package/dist/chunk-HITKHHWN.cjs.map +0 -1
- package/dist/chunk-HQO572JW.cjs +0 -34
- package/dist/chunk-HQO572JW.cjs.map +0 -1
- package/dist/chunk-HUQ5ATIL.cjs +0 -290
- package/dist/chunk-HUQ5ATIL.cjs.map +0 -1
- package/dist/chunk-HZDVMHU6.js +0 -344
- package/dist/chunk-HZDVMHU6.js.map +0 -1
- package/dist/chunk-ICWUR5WA.cjs +0 -68
- package/dist/chunk-ICWUR5WA.cjs.map +0 -1
- package/dist/chunk-IQFNHQWP.cjs +0 -47
- package/dist/chunk-IQFNHQWP.cjs.map +0 -1
- package/dist/chunk-IZ4QM7O4.js +0 -1304
- package/dist/chunk-IZ4QM7O4.js.map +0 -1
- package/dist/chunk-J5JCXSAS.cjs +0 -117
- package/dist/chunk-J5JCXSAS.cjs.map +0 -1
- package/dist/chunk-JI7HLIDL.cjs +0 -119
- package/dist/chunk-JI7HLIDL.cjs.map +0 -1
- package/dist/chunk-JWISA775.cjs +0 -92
- package/dist/chunk-JWISA775.cjs.map +0 -1
- package/dist/chunk-K3BLXPLA.cjs +0 -16
- package/dist/chunk-K3BLXPLA.cjs.map +0 -1
- package/dist/chunk-KATUDT3E.js +0 -45
- package/dist/chunk-KATUDT3E.js.map +0 -1
- package/dist/chunk-KGBWWS6I.js +0 -32
- package/dist/chunk-KGBWWS6I.js.map +0 -1
- package/dist/chunk-KQENBXPS.cjs +0 -34
- package/dist/chunk-KQENBXPS.cjs.map +0 -1
- package/dist/chunk-KTKJD4DM.js +0 -60
- package/dist/chunk-KTKJD4DM.js.map +0 -1
- package/dist/chunk-LNZP2O4P.js +0 -169
- package/dist/chunk-LNZP2O4P.js.map +0 -1
- package/dist/chunk-LWQP7OWA.js +0 -75
- package/dist/chunk-LWQP7OWA.js.map +0 -1
- package/dist/chunk-MRHQJNWF.cjs +0 -8
- package/dist/chunk-MRHQJNWF.cjs.map +0 -1
- package/dist/chunk-MSI6FVGG.js +0 -6
- package/dist/chunk-MSI6FVGG.js.map +0 -1
- package/dist/chunk-N4COL54U.cjs +0 -22
- package/dist/chunk-N4COL54U.cjs.map +0 -1
- package/dist/chunk-NFJKJGXR.js +0 -397
- package/dist/chunk-NFJKJGXR.js.map +0 -1
- package/dist/chunk-NH2TQGRL.cjs +0 -28
- package/dist/chunk-NH2TQGRL.cjs.map +0 -1
- package/dist/chunk-NHYL5QPM.js +0 -74
- package/dist/chunk-NHYL5QPM.js.map +0 -1
- package/dist/chunk-ON4ILCHP.js +0 -1822
- package/dist/chunk-ON4ILCHP.js.map +0 -1
- package/dist/chunk-PLF4JX5B.cjs +0 -155
- package/dist/chunk-PLF4JX5B.cjs.map +0 -1
- package/dist/chunk-PSR3N4NC.js +0 -136
- package/dist/chunk-PSR3N4NC.js.map +0 -1
- package/dist/chunk-QHD4LPAQ.cjs +0 -8
- package/dist/chunk-QHD4LPAQ.cjs.map +0 -1
- package/dist/chunk-QNF3L4B7.js +0 -115
- package/dist/chunk-QNF3L4B7.js.map +0 -1
- package/dist/chunk-RBN3ITTM.js +0 -153
- package/dist/chunk-RBN3ITTM.js.map +0 -1
- package/dist/chunk-RRC5RKF7.cjs +0 -12
- package/dist/chunk-RRC5RKF7.cjs.map +0 -1
- package/dist/chunk-RXYT7EMN.cjs +0 -318
- package/dist/chunk-RXYT7EMN.cjs.map +0 -1
- package/dist/chunk-S46FMY4G.cjs +0 -64
- package/dist/chunk-S46FMY4G.cjs.map +0 -1
- package/dist/chunk-S6BWQKHJ.cjs +0 -116
- package/dist/chunk-S6BWQKHJ.cjs.map +0 -1
- package/dist/chunk-SFTI6QFB.cjs +0 -85
- package/dist/chunk-SFTI6QFB.cjs.map +0 -1
- package/dist/chunk-SNP577FA.cjs +0 -346
- package/dist/chunk-SNP577FA.cjs.map +0 -1
- package/dist/chunk-SUVM3S2T.cjs +0 -69
- package/dist/chunk-SUVM3S2T.cjs.map +0 -1
- package/dist/chunk-SYZ5OFNT.js +0 -114
- package/dist/chunk-SYZ5OFNT.js.map +0 -1
- package/dist/chunk-SZBW4EE2.cjs +0 -180
- package/dist/chunk-SZBW4EE2.cjs.map +0 -1
- package/dist/chunk-T526LPBK.js +0 -6
- package/dist/chunk-T526LPBK.js.map +0 -1
- package/dist/chunk-TBHJQCAE.js +0 -64
- package/dist/chunk-TBHJQCAE.js.map +0 -1
- package/dist/chunk-U3E5YMLO.cjs +0 -82
- package/dist/chunk-U3E5YMLO.cjs.map +0 -1
- package/dist/chunk-U5SE6W5M.cjs +0 -158
- package/dist/chunk-U5SE6W5M.cjs.map +0 -1
- package/dist/chunk-UUY6LQT6.cjs +0 -267
- package/dist/chunk-UUY6LQT6.cjs.map +0 -1
- package/dist/chunk-UVX733BX.js +0 -83
- package/dist/chunk-UVX733BX.js.map +0 -1
- package/dist/chunk-V6FT3RTU.cjs +0 -42
- package/dist/chunk-V6FT3RTU.cjs.map +0 -1
- package/dist/chunk-VB56OVFM.cjs +0 -312
- package/dist/chunk-VB56OVFM.cjs.map +0 -1
- package/dist/chunk-WQ7NNIJ3.js +0 -33
- package/dist/chunk-WQ7NNIJ3.js.map +0 -1
- package/dist/chunk-WUFODWZV.js +0 -177
- package/dist/chunk-WUJ53PP7.cjs +0 -76
- package/dist/chunk-WUJ53PP7.cjs.map +0 -1
- package/dist/chunk-XPDEQND7.cjs +0 -4
- package/dist/chunk-XPDEQND7.cjs.map +0 -1
- package/dist/chunk-YDOSWWE4.cjs +0 -419
- package/dist/chunk-YDOSWWE4.cjs.map +0 -1
- package/dist/chunk-YGEJDWGG.js +0 -19
- package/dist/chunk-YGEJDWGG.js.map +0 -1
- package/dist/chunk-YXGBD4WP.cjs +0 -16
- package/dist/chunk-YXGBD4WP.cjs.map +0 -1
- package/dist/chunk-ZOREOLGE.js +0 -264
- package/dist/chunk-ZOREOLGE.js.map +0 -1
- package/dist/constants/index.cjs.map +0 -1
- package/dist/constants/index.js.map +0 -1
- package/dist/createFetchClient-BHAsPDgF.d.cts +0 -86
- package/dist/createFetchClient-CFIwc6Lh.d.ts +0 -86
- package/dist/createGenericFetchClient-JcbIIqwF.d.cts +0 -18
- package/dist/createGenericFetchClient-ZGG5wbAC.d.ts +0 -18
- package/dist/createOpenapiFetchClient-CduEua6F.d.cts +0 -24
- package/dist/createOpenapiFetchClient-wLlVgp3k.d.ts +0 -24
- package/dist/dataScience/index.cjs.map +0 -1
- package/dist/dataScience/index.js.map +0 -1
- package/dist/dataScience/types.cjs.map +0 -1
- package/dist/dataScience/types.js.map +0 -1
- package/dist/domain/permissions/index.cjs.map +0 -1
- package/dist/domain/permissions/index.js.map +0 -1
- package/dist/domain/storageTable/index.cjs.map +0 -1
- package/dist/domain/storageTable/index.js.map +0 -1
- package/dist/editor/types.cjs.map +0 -1
- package/dist/editor/types.js.map +0 -1
- package/dist/encryption/types.cjs.map +0 -1
- package/dist/encryption/types.js.map +0 -1
- package/dist/import/index.cjs.map +0 -1
- package/dist/import/index.js.map +0 -1
- package/dist/keboolaUID-D1DGSbge.d.cts +0 -19
- package/dist/keboolaUID-D1DGSbge.d.ts +0 -19
- package/dist/management/index.cjs.map +0 -1
- package/dist/management/index.js.map +0 -1
- package/dist/management/types.cjs.map +0 -1
- package/dist/management/types.js.map +0 -1
- package/dist/metastore/index.cjs.map +0 -1
- package/dist/metastore/index.js.map +0 -1
- package/dist/metastore/types.cjs.map +0 -1
- package/dist/metastore/types.js.map +0 -1
- package/dist/notifications/types.cjs.map +0 -1
- package/dist/notifications/types.js.map +0 -1
- package/dist/oauth/index.cjs.map +0 -1
- package/dist/oauth/index.js.map +0 -1
- package/dist/oauth/types.cjs.map +0 -1
- package/dist/oauth/types.js.map +0 -1
- package/dist/omnisearch/types.cjs.map +0 -1
- package/dist/omnisearch/types.js.map +0 -1
- package/dist/project-Dmr-zrQG.d.ts +0 -17
- package/dist/project-DstzWVMN.d.cts +0 -17
- package/dist/queryService/index.cjs.map +0 -1
- package/dist/queryService/index.js.map +0 -1
- package/dist/queryService/types.cjs.map +0 -1
- package/dist/queryService/types.js.map +0 -1
- package/dist/queue/index.cjs.map +0 -1
- package/dist/queue/index.js.map +0 -1
- package/dist/queue/types.cjs.map +0 -1
- package/dist/queue/types.js.map +0 -1
- package/dist/registry-CcKlB-yY.d.ts +0 -1046
- package/dist/registry-Cg0Yng1z.d.cts +0 -1046
- package/dist/scheduler/types.cjs.map +0 -1
- package/dist/scheduler/types.js.map +0 -1
- package/dist/sdk/configurations/index.cjs.map +0 -1
- package/dist/sdk/configurations/index.js.map +0 -1
- package/dist/sdk/semanticLayer/types.cjs.map +0 -1
- package/dist/sdk/semanticLayer/types.js.map +0 -1
- package/dist/sdk/tag/index.cjs.map +0 -1
- package/dist/sdk/tag/index.js.map +0 -1
- package/dist/sdk/tag/types.cjs.map +0 -1
- package/dist/sdk/tag/types.js.map +0 -1
- package/dist/status/types.cjs.map +0 -1
- package/dist/status/types.js.map +0 -1
- package/dist/storage/index.cjs.map +0 -1
- package/dist/storage/index.js.map +0 -1
- package/dist/storage/types.cjs.map +0 -1
- package/dist/storage/types.js.map +0 -1
- package/dist/storageClient-BAid0vi2.d.cts +0 -1750
- package/dist/storageClient-BX50Attd.d.ts +0 -1750
- package/dist/storageSdk-BS5982c_.d.cts +0 -753
- package/dist/storageSdk-BeJcnEIO.d.ts +0 -753
- package/dist/stream/types.cjs.map +0 -1
- package/dist/stream/types.js.map +0 -1
- package/dist/syncActions/index.cjs.map +0 -1
- package/dist/syncActions/index.js.map +0 -1
- package/dist/syncActions/types.cjs.map +0 -1
- package/dist/syncActions/types.js.map +0 -1
- package/dist/telemetry/index.cjs.map +0 -1
- package/dist/telemetry/index.js.map +0 -1
- package/dist/telemetry/types.cjs.map +0 -1
- package/dist/telemetry/types.js.map +0 -1
- package/dist/types-C5DdOzx8.d.cts +0 -12
- package/dist/types-C_jxWM7A.d.ts +0 -12
- package/dist/types-UwuKN9Kx.d.cts +0 -60
- package/dist/types-UwuKN9Kx.d.ts +0 -60
- package/dist/types-f8dUjMX4.d.cts +0 -90
- package/dist/types-f8dUjMX4.d.ts +0 -90
- package/dist/vault/types.cjs.map +0 -1
- package/dist/vault/types.js.map +0 -1
package/AGENTS.md
CHANGED
|
@@ -11,7 +11,7 @@ This file is the **usage** guide — how to get a client, call it, and handle er
|
|
|
11
11
|
All commands run from monorepo root using `--filter`:
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
pnpm build --filter=@keboola/api-client # Build with
|
|
14
|
+
pnpm build --filter=@keboola/api-client # Build with tsdown (ESM + CJS + .d.ts)
|
|
15
15
|
pnpm test --filter=@keboola/api-client # Vitest
|
|
16
16
|
pnpm type-check --filter=@keboola/api-client # tsc --noEmit
|
|
17
17
|
pnpm --filter @keboola/api-client gen:types # Regenerate OpenAPI types from redocly.yaml
|
|
@@ -137,14 +137,15 @@ genuinely secure option — keeping the refresh token out of JS entirely behind
|
|
|
137
137
|
|
|
138
138
|
Import paths:
|
|
139
139
|
|
|
140
|
-
| Export path
|
|
141
|
-
|
|
|
142
|
-
| `@keboola/api-client`
|
|
143
|
-
| `@keboola/api-client/<client>`
|
|
144
|
-
| `@keboola/api-client/<client>/types`
|
|
145
|
-
| `@keboola/api-client/sdk/tag`
|
|
146
|
-
| `@keboola/api-client/sdk/
|
|
147
|
-
| `@keboola/api-client/
|
|
140
|
+
| Export path | Purpose |
|
|
141
|
+
| ----------------------------------------- | ---------------------------------------------------------------- |
|
|
142
|
+
| `@keboola/api-client` | Full SDK: `createKeboola` / `createLegacyKeboola`, errors, utils |
|
|
143
|
+
| `@keboola/api-client/<client>` | Per-client factory (e.g. `storage`) |
|
|
144
|
+
| `@keboola/api-client/<client>/types` | Per-client type imports |
|
|
145
|
+
| `@keboola/api-client/sdk/tag` | Tag SDK (composes multiple clients) |
|
|
146
|
+
| `@keboola/api-client/sdk/developerPortal` | Developer Portal SDK (client + its session) |
|
|
147
|
+
| `@keboola/api-client/sdk/configurations` | Core configuration SDK |
|
|
148
|
+
| `@keboola/api-client/domain/permissions` | Permission primitives |
|
|
148
149
|
|
|
149
150
|
## Consumption Hierarchy
|
|
150
151
|
|
|
@@ -387,6 +388,57 @@ Both clients run the same middleware chain; the OpenAPI one additionally sends a
|
|
|
387
388
|
|
|
388
389
|
Don't invent a shape for the second case. These specs are uneven and, where present, often wrong — `vault` declares the path POST-only though a GET answers 200; `metastore` and `queryService` type the body as a bare index signature; `dataScience` and `oauth` declare a service-info shape with no `status` field at all, despite really answering `{"status":"ok"}`. A client moves to a generated type only once its spec matches what the endpoint actually returns, which you confirm by probing it, not by reading the spec.
|
|
389
390
|
|
|
391
|
+
## Off-session clients: the Developer Portal (apps-api)
|
|
392
|
+
|
|
393
|
+
`apps-api.keboola.com` (the Developer Portal / `components.keboola.com` backend) authenticates with its
|
|
394
|
+
**own Cognito pool**, issuing a token trio — `token` (id), `accessToken`, `refreshToken` — not a
|
|
395
|
+
Connection storage token. `createKeboola`'s session cannot drive it: driving to ready runs
|
|
396
|
+
`tokens.verify()` against Connection, and `setProjectAsync` is meaningless. So it is not registered in
|
|
397
|
+
`createServiceClients.ts` and never appears on the `api` proxy — `api.developerPortal` does not exist.
|
|
398
|
+
|
|
399
|
+
Two layers, as everywhere else in this package:
|
|
400
|
+
|
|
401
|
+
| Layer | Subpath | What it is |
|
|
402
|
+
| ---------- | ------------------------------------------- | ---------------------------------------------------------------- |
|
|
403
|
+
| **SDK** | `@keboola/api-client/sdk/developerPortal` | `createDeveloperPortalSdk` → `{ api, session }`. **Start here.** |
|
|
404
|
+
| **Client** | `@keboola/api-client/developerPortal` | One method per endpoint, no state |
|
|
405
|
+
| Types | `@keboola/api-client/developerPortal/types` | Response and `Input` types |
|
|
406
|
+
|
|
407
|
+
```ts
|
|
408
|
+
import { createDeveloperPortalSdk } from '@keboola/api-client/sdk/developerPortal';
|
|
409
|
+
import { isMfaChallengeResponse } from '@keboola/api-client/developerPortal';
|
|
410
|
+
import type { App, Vendor } from '@keboola/api-client/developerPortal/types';
|
|
411
|
+
|
|
412
|
+
const { api, session } = createDeveloperPortalSdk({
|
|
413
|
+
baseUrl: 'https://apps-api.keboola.com',
|
|
414
|
+
tokens: readPersistedTokens(),
|
|
415
|
+
onTokensChange: persistTokens, // the SDK never touches storage
|
|
416
|
+
onSessionExpired: () => redirectToLogin(),
|
|
417
|
+
});
|
|
418
|
+
```
|
|
419
|
+
|
|
420
|
+
An endpoint goes on the client; anything that has to _know a token over time_ goes in the SDK, which
|
|
421
|
+
owns the store, `credential.ts`, `middleware.ts` and `tokenExpiry.ts` — the analogue of
|
|
422
|
+
`keboola/bearer/` for Connection. The client alone covers every operation the spec marks `security: []`.
|
|
423
|
+
|
|
424
|
+
Three things about it are unusual:
|
|
425
|
+
|
|
426
|
+
- **Generated from the spec, like every other client.** `https://apps-api.keboola.com/docs/openapi.yaml`
|
|
427
|
+
is registered in `redocly.yaml`, so `pnpm gen:types` refreshes
|
|
428
|
+
`developerPortal/__generated__/schema.d.ts` and `types.ts` derives from it. **The spec is the source of
|
|
429
|
+
truth** — if it is wrong, fix it in `keboola/developer-portal` and regenerate, rather than
|
|
430
|
+
hand-writing a parallel shape here.
|
|
431
|
+
- **No `Bearer` prefix** — the spec's security schemes are `type: apiKey` and say "passed verbatim", so
|
|
432
|
+
`createBearerAuthMiddleware` is not reusable and the SDK ships `createDeveloperPortalAuthMiddleware`.
|
|
433
|
+
- **Two fetch clients.** The authenticated one carries the auth middleware, which stamps the **id**
|
|
434
|
+
token. The other carries none and backs the `security: []` operations plus the four calls that supply
|
|
435
|
+
their own `Authorization` (`GET /auth/token` takes the refresh token, `POST /auth/logout` the access
|
|
436
|
+
token, and `/auth/mfa` + `/auth/mfa/confirm` the id token alongside an access token in the **body**).
|
|
437
|
+
Those four take the token as an argument — the client holds no session — and the SDK binds them from
|
|
438
|
+
the store, so `api.auth.logout()` needs nothing from the caller. Keeping `/auth/mfa*` off the
|
|
439
|
+
authenticated client is what keeps them out of refresh-and-replay: restamping a header cannot fix a
|
|
440
|
+
stale token in a body.
|
|
441
|
+
|
|
390
442
|
## Testing with `@keboola/api-fixtures`
|
|
391
443
|
|
|
392
444
|
`@keboola/api-fixtures` provides typed, endpoint-keyed fixtures so tests don't hand-roll response shapes. Early today (storage tables only); extend it as more services need coverage.
|
|
@@ -456,6 +508,27 @@ const getBucket = async (…): Promise<BucketDetail> => { … }; //
|
|
|
456
508
|
|
|
457
509
|
One shape needs a judgement call: an endpoint that answers _either_ the resource or a job depending on a parameter (`createAliasTable` → `Table | CreateAliasJob`). Prefer splitting it into a sync method and an `*Async` sibling; where that isn't worth it, leave the bare name and say so in a comment, because a caller that must branch on the response can't be told anything useful by the name alone.
|
|
458
510
|
|
|
511
|
+
### A method that waits for its job ends in `AndWait`
|
|
512
|
+
|
|
513
|
+
The sibling of an `*Async` method that also waits for the enqueued job to finish ends in `AndWait`: `createTableAndWait`, `importAndWait`, `unshareBucketAndWait`. It lives on the client, next to the `*Async` it mirrors.
|
|
514
|
+
|
|
515
|
+
| What the call does | Name shape | Example |
|
|
516
|
+
| ------------------------------------------------ | ---------- | --------------------------- |
|
|
517
|
+
| returns the finished resource in one request | bare verb | `getBucket`, `deleteBucket` |
|
|
518
|
+
| enqueues the work and hands back a `Job` to poll | `*Async` | `createTableAsync` |
|
|
519
|
+
| enqueues the work and polls it to completion | `*AndWait` | `createTableAndWait` |
|
|
520
|
+
|
|
521
|
+
- **Never a bare verb.** `buckets.deleteBucket` is a real single-request endpoint sitting next to `deleteBucketAsync`, so a bare name would mean "one request" on one resource and "poll loop" on the next.
|
|
522
|
+
- **Never `Sync`.** In JavaScript that suffix promises no yielding (`readFileSync`); this is the method that yields most.
|
|
523
|
+
- **Never a `{ wait: true }` option.** Both branches return `Job` — the same TS type — so nothing discriminates work that is merely enqueued from work that is done, and the name is the only signal a call site gets.
|
|
524
|
+
- **Never `AndPoll`.** That names the transport, not the contract. A route that later grows long-poll or SSE turns every `AndPoll` into a lie.
|
|
525
|
+
|
|
526
|
+
It is a suffix, not a prefix, because a suffix means "same endpoint, different completion contract" — the variant shares its sibling's prefix and so sorts beside it in autocomplete, where a `waitForTableCreate` would sort nowhere near `createTableAsync`.
|
|
527
|
+
|
|
528
|
+
Storage's wait helpers currently live in `sdks/storage` under bare-verb names (`createTable`); the clients are where new ones belong.
|
|
529
|
+
|
|
530
|
+
**What an `*AndWait` resolves with is not settled** — the job, its `results`, and whether a failed job throws are all open. Don't document a return contract until it is decided.
|
|
531
|
+
|
|
459
532
|
## Extending the SDK (endpoint not in the client yet)
|
|
460
533
|
|
|
461
534
|
When a backend endpoint you need has no method on any client, the sanctioned path is to **add it to `@keboola/api-client` first, then consume it** — never drop to `fetch()` in the app. A one-off `fetch()` skips the middleware chain (storage-token, auth, retry, logging), the typed error guards, and `signal` forwarding, and it can't be mocked with `@keboola/api-fixtures`. The [What NOT to Do](#what-not-to-do) `fetch()` ban is enforced by oxlint precisely so this stays the only route.
|
|
@@ -466,11 +539,72 @@ Decision:
|
|
|
466
539
|
| ------------------------------------------------------ | ----------------------------------------------------------------------------- |
|
|
467
540
|
| Endpoint belongs to an existing service (`storage`, …) | Add the method to that client; cover it with an `@keboola/api-fixtures` entry |
|
|
468
541
|
| Endpoint belongs to a brand-new service | Add a new client/namespace under `src/clients/<x>/`, then wire its sub-path |
|
|
469
|
-
| Multi-client orchestration
|
|
542
|
+
| Multi-client orchestration, or any session/token state | Add (or extend) an `sdks/` SDK that composes the clients |
|
|
543
|
+
|
|
544
|
+
### Eight rules for a new client or SDK
|
|
545
|
+
|
|
546
|
+
Every one of these was a round of review on a single PR (#7953). They are not style
|
|
547
|
+
preferences — each cost a rewrite. Work them in order; the first three decide the shape of
|
|
548
|
+
everything after.
|
|
549
|
+
|
|
550
|
+
**1. Find the spec before you write a single type.** Probe the service directly —
|
|
551
|
+
`/docs/openapi.yaml`, `/docs/swagger.yaml`, `/openapi.json`, `/api/docs` — and only then conclude
|
|
552
|
+
there isn't one. A README, a wiki page or an Apiary link is not evidence of absence. A
|
|
553
|
+
hand-written client on a service that turned out to publish a spec is a full rewrite, and the
|
|
554
|
+
generated types immediately found 15 wrong path placeholders, a `healthCheck` on the wrong
|
|
555
|
+
endpoint, and 12 operations that had simply been missed.
|
|
556
|
+
|
|
557
|
+
**2. The spec is the source of truth, including where it is wrong.** When it disagrees with
|
|
558
|
+
production, **fix it in the service's repo** — do not carry a corrected shape here. Overlays look
|
|
559
|
+
cheap and are not: they force an `as` cast at every call site (23 of them, in that PR), and they
|
|
560
|
+
silently absorb the real bugs the generated types would have caught. Verify the divergence against
|
|
561
|
+
production **and** against the handler that builds the response before claiming it, then open the
|
|
562
|
+
backend PR. To prove a spec fix before it deploys: run `openapi-typescript` over the fixed file and
|
|
563
|
+
`oxfmt` the result, having first round-tripped the _live_ spec the same way and reproduced the
|
|
564
|
+
committed schema byte-for-byte.
|
|
565
|
+
|
|
566
|
+
**3. Client and SDK are different things, and the split is not negotiable.** A client is one method
|
|
567
|
+
per endpoint, holds **no state and never holds a token** — if it takes a credential, it is not a
|
|
568
|
+
client. Anything that knows a token over time (a store, refresh-and-replay, expiry) belongs in
|
|
569
|
+
`sdks/`, the way `keboola/bearer/` does for Connection. A client that needs auth takes a
|
|
570
|
+
`MiddlewareFn`, not an `auth: AuthStrategy` and not a credential; the SDK supplies it. Endpoints
|
|
571
|
+
that authenticate with something other than the default credential take that token **as an
|
|
572
|
+
argument** and the SDK binds it, so the consumer surface stays argument-free.
|
|
573
|
+
|
|
574
|
+
**4. Naming — read [`API-SURFACE.md`](./API-SURFACE.md) before inventing a shape.**
|
|
575
|
+
|
|
576
|
+
- **`get*`, never `list*`.** 180 methods start with `get`, 7 with `list`, and those 7 are strays.
|
|
577
|
+
A collection read is the plural noun: `getBuckets`, `getDeletedProjects`, `getAllFeatures`.
|
|
578
|
+
`delete*` (62) over `remove*` (11), except when unlinking a relation rather than destroying a row.
|
|
579
|
+
- **One level of sub-namespace, and the method carries the noun** — `buckets.getBucket`,
|
|
580
|
+
`currentUser.getProjectInvitations`. Not `buckets.get`, and not `admin.apps.get`. If a namespace
|
|
581
|
+
is growing a second level, add a sibling namespace instead. (`auth.mfa.totp.*` is the one
|
|
582
|
+
exception in the package; don't copy it.)
|
|
583
|
+
- Query and input types follow their method: `GetAppsQuery`, not `ListAppsQuery`.
|
|
584
|
+
|
|
585
|
+
**5. Never send a credential to an endpoint the spec marks `security: []`.** Those responses are
|
|
586
|
+
public and cacheable; a token on one buys nothing and leaks into any shared cache in front of it.
|
|
587
|
+
When the spec splits its operations, build **two fetch clients** — one carrying the auth
|
|
588
|
+
middleware, one carrying none — and put each endpoint on the side the spec says.
|
|
589
|
+
|
|
590
|
+
**6. Test the logic, not the transport.** A test asserting that a method called its URL, or
|
|
591
|
+
substituted its path parameters, tests the generated client and the mock server. Delete it. Test
|
|
592
|
+
where a decision lives: which credential an endpoint gets, refresh-and-replay, dedupe, what happens
|
|
593
|
+
when the session is cleared mid-rotation. If the generated `paths` type already makes a mistake a
|
|
594
|
+
compile error, a runtime assertion of the same thing proves nothing.
|
|
595
|
+
|
|
596
|
+
**7. Comment what the code cannot say, and nothing else.** Package median is **9%** of lines,
|
|
597
|
+
p90 32%; `vaultClient.ts` and `queueClient.ts` are at 0%. Past ~20% you are narrating the code. Keep
|
|
598
|
+
the comment that explains why sign-out has to win a race against an in-flight rotation; delete the
|
|
599
|
+
one that says a method issues a GET.
|
|
600
|
+
|
|
601
|
+
**8. Read your own diff before pushing.** `git add -A` swallows build output when a `.gitignore`
|
|
602
|
+
is not on the branch you switched to. Stage explicit paths, and check the pushed file list against
|
|
603
|
+
the GitHub API rather than trusting the local working tree.
|
|
470
604
|
|
|
471
605
|
A new client/namespace means touching four places that must stay in lock-step — **guarded by the [`subpathExportParity` test](./src/subpathExportParity.test.ts)**, so forgetting one fails CI instead of silently breaking resolution:
|
|
472
606
|
|
|
473
|
-
1. `
|
|
607
|
+
1. `tsdown.config.ts` — add `<x>/index` and (if you ship a `types.ts`) `<x>/types` build entries
|
|
474
608
|
2. `package.json` `exports` — add `./<x>` and `./<x>/types`
|
|
475
609
|
3. `package.json` `typesVersions` — add `<x>` and `<x>/types`
|
|
476
610
|
4. `src/keboola/createServiceClients.ts` — register the client in the registry with `.add({ serviceId, clientName, clientFn })` (+ `src/keboola/createMiddlewareFor.ts` for its `ServiceClientName` entry and any bespoke middleware)
|
package/API-SURFACE.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Every namespace and method reachable from a ready `KeboolaApi` — the `api` half of a keboola client (`createKeboola(...).api` / `createLegacyKeboola(...).api`, or `useApiClient()`). Generated from the TypeScript type checker — see `scripts/gen-surface.mjs`.
|
|
6
6
|
|
|
7
|
-
24 top-level namespaces,
|
|
7
|
+
24 top-level namespaces, 616 methods. This index lists method **names** only — full signatures live per namespace under [`surface/`](./surface). Open `surface/<namespace>.md` for the one you need.
|
|
8
8
|
|
|
9
9
|
## [`api.ai`](./surface/ai.md)
|
|
10
10
|
|
|
@@ -387,6 +387,7 @@ Every namespace and method reachable from a ready `KeboolaApi` — the `api` hal
|
|
|
387
387
|
- `getQueryJob`
|
|
388
388
|
- `getQueryResults`
|
|
389
389
|
- `healthCheck`
|
|
390
|
+
- `poller`
|
|
390
391
|
|
|
391
392
|
## [`api.queue`](./surface/queue.md)
|
|
392
393
|
|
|
@@ -395,6 +396,7 @@ Every namespace and method reachable from a ready `KeboolaApi` — the `api` hal
|
|
|
395
396
|
- `getOrchestrationRerunPlan`
|
|
396
397
|
- `healthCheck`
|
|
397
398
|
- `killJob`
|
|
399
|
+
- `poller`
|
|
398
400
|
- `searchAllJobs`
|
|
399
401
|
- `searchGroupedJobs`
|
|
400
402
|
- `searchJobs`
|
|
@@ -468,7 +470,9 @@ Every namespace and method reachable from a ready `KeboolaApi` — the `api` hal
|
|
|
468
470
|
|
|
469
471
|
## [`api.storage`](./surface/storage.md)
|
|
470
472
|
|
|
473
|
+
- `branches.createDevBranchAndWait`
|
|
471
474
|
- `branches.createDevBranchAsync`
|
|
475
|
+
- `branches.deleteDevBranchAndWait`
|
|
472
476
|
- `branches.deleteDevBranchAsync`
|
|
473
477
|
- `branches.deleteDevBranchMetadata`
|
|
474
478
|
- `branches.getDevBranchMetadata`
|
|
@@ -541,6 +545,7 @@ Every namespace and method reachable from a ready `KeboolaApi` — the `api` hal
|
|
|
541
545
|
- `configurations.purgeConfiguration`
|
|
542
546
|
- `configurations.purgeConfigurations`
|
|
543
547
|
- `configurations.rebaseConfiguration`
|
|
548
|
+
- `configurations.rebaseConfigurationToDeleted`
|
|
544
549
|
- `configurations.resetConfigurationToDefault`
|
|
545
550
|
- `configurations.restoreConfiguration`
|
|
546
551
|
- `configurations.searchComponentConfigurations`
|
|
@@ -572,6 +577,7 @@ Every namespace and method reachable from a ready `KeboolaApi` — the `api` hal
|
|
|
572
577
|
- `mergeRequests.requestChangesMergeRequest`
|
|
573
578
|
- `mergeRequests.requestReview`
|
|
574
579
|
- `mergeRequests.updateMergeRequest`
|
|
580
|
+
- `poller`
|
|
575
581
|
- `search.globalSearch`
|
|
576
582
|
- `search.searchTables`
|
|
577
583
|
- `snapshots.createSnapshotAsync`
|
|
@@ -599,6 +605,7 @@ Every namespace and method reachable from a ready `KeboolaApi` — the `api` hal
|
|
|
599
605
|
- `tables.updateTableDefinition`
|
|
600
606
|
- `tokens.createToken`
|
|
601
607
|
- `tokens.deleteToken`
|
|
608
|
+
- `tokens.getTokenEvents`
|
|
602
609
|
- `tokens.getTokens`
|
|
603
610
|
- `tokens.refresh`
|
|
604
611
|
- `tokens.shareToken`
|
package/README.md
CHANGED
|
@@ -199,7 +199,7 @@ src/
|
|
|
199
199
|
utils/
|
|
200
200
|
concurrent.ts # Concurrent task runner with middleware
|
|
201
201
|
series.ts # Sequential task runner
|
|
202
|
-
poll
|
|
202
|
+
poll/ # Polling: the loop, the poller, the registry
|
|
203
203
|
delay.ts # Abortable delay
|
|
204
204
|
keboolaUID.ts # Keboola object ID serialization
|
|
205
205
|
generateUUID.ts # crypto.randomUUID wrapper
|
|
@@ -363,27 +363,36 @@ const ordered = await series({
|
|
|
363
363
|
|
|
364
364
|
### poll
|
|
365
365
|
|
|
366
|
+
A poll **returns** how it ended — `done`, `timedOut`, `exhausted`, `aborted`, `errored` — so nothing is
|
|
367
|
+
thrown at a caller that wants to branch. `unwrap()` is the shortcut for the caller that doesn't: it
|
|
368
|
+
resolves the value or throws.
|
|
369
|
+
|
|
366
370
|
```typescript
|
|
367
|
-
import { poll
|
|
371
|
+
import { poll } from '@keboola/api-client';
|
|
372
|
+
|
|
373
|
+
// `pollKey` is the poll's identity, in the shape of a TanStack query key. It is handed to `pollFn`
|
|
374
|
+
// the way a `queryFn` gets its key, and dev tools name a running poll from it.
|
|
375
|
+
// `backoff` names the curve by the field it starts from: `interval` for `constant`, `initialInterval`
|
|
376
|
+
// for `linear` and `exponential`. Add `jitter: 'full' | 'equal'` to spread a herd of polls apart.
|
|
377
|
+
const result = await poll({
|
|
378
|
+
pollKey: ['queue.job', { jobId }] as const,
|
|
379
|
+
pollFn: ({ pollKey: [, params], signal }) => api.queue.getJob(params.jobId, signal),
|
|
380
|
+
until: ({ data }) => data.status === 'success' || data.status === 'error',
|
|
381
|
+
backoff: { type: 'exponential', initialInterval: 1000, factor: 2, maxInterval: 30_000 },
|
|
382
|
+
maxAttempts: 30,
|
|
383
|
+
timeout: 5 * 60_000,
|
|
384
|
+
});
|
|
368
385
|
|
|
369
|
-
|
|
386
|
+
if (result.state === 'done') console.log(result.data.status);
|
|
370
387
|
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
isDone: (job) => job.status === 'success',
|
|
375
|
-
isFailed: (job) => job.status === 'error',
|
|
376
|
-
interval: 2000,
|
|
377
|
-
maxAttempts: 30,
|
|
378
|
-
abortSignal: controller.signal,
|
|
379
|
-
});
|
|
380
|
-
} catch (error) {
|
|
381
|
-
if (error instanceof PollException) {
|
|
382
|
-
console.error(error.message, error.result);
|
|
383
|
-
}
|
|
384
|
-
}
|
|
388
|
+
// Or: resolve the value, throw on anything else. `stop()` ends the poll from outside.
|
|
389
|
+
const task = poll({ pollFn, until });
|
|
390
|
+
const job = await task.unwrap();
|
|
385
391
|
```
|
|
386
392
|
|
|
393
|
+
`poller(options)` is the same thing cold — it polls only once `start()` is called, and adds
|
|
394
|
+
`subscribe()` / `debug()` for watching a poll's attempts as they happen.
|
|
395
|
+
|
|
387
396
|
### keboolaUID
|
|
388
397
|
|
|
389
398
|
```typescript
|
|
@@ -448,6 +457,27 @@ MIT. See [LICENSE](./LICENSE).
|
|
|
448
457
|
|
|
449
458
|
Internal guide for adding new service clients to this package.
|
|
450
459
|
|
|
460
|
+
### Method naming conventions
|
|
461
|
+
|
|
462
|
+
A method's name states what the call does, so a call site can tell whether the work is finished once the promise settles. Clients expose the endpoint methods plus — where the endpoint enqueues a job — a wait-variant suffixed `AndWait`.
|
|
463
|
+
|
|
464
|
+
| What the call does | Name shape | Example |
|
|
465
|
+
| ------------------------------------------------ | ---------- | ----------------------------- |
|
|
466
|
+
| returns the finished resource in one request | bare verb | `buckets.getBucket()` |
|
|
467
|
+
| enqueues the work and hands back a `Job` to poll | `*Async` | `tables.createTableAsync()` |
|
|
468
|
+
| enqueues the work and polls it to completion | `*AndWait` | `tables.createTableAndWait()` |
|
|
469
|
+
|
|
470
|
+
The suffix is a suffix on purpose: a wait-variant shares its sibling's prefix, so the two sort together in autocomplete.
|
|
471
|
+
|
|
472
|
+
Names that are ruled out, and why:
|
|
473
|
+
|
|
474
|
+
- **bare verb** for a wait-variant — `buckets.deleteBucket` is a genuinely synchronous endpoint sitting next to `deleteBucketAsync`, so one name shape would mean two different things.
|
|
475
|
+
- **`*Sync`** as the opposite of `*Async` — in JavaScript that promises no yielding (`readFileSync`).
|
|
476
|
+
- **`createTableAsync(input, { wait: true })`** — both branches return `Job`, the same TS type, so nothing discriminates work that is merely enqueued from work that is done.
|
|
477
|
+
- **`*AndPoll`** — names the transport rather than the contract.
|
|
478
|
+
|
|
479
|
+
[`poll`](#poll) is the shared engine underneath. Storage's wait helpers currently live in the `sdks/storage` layer under bare-verb names; new ones go on the client.
|
|
480
|
+
|
|
451
481
|
### Testing conventions
|
|
452
482
|
|
|
453
483
|
Tests are co-located `*.test.ts` files run by Vitest. There are two complementary ways to fake the network — pick by what the test is about:
|
|
@@ -472,6 +502,11 @@ Publish-time export-shape validation stays in `build:check` via `attw` — ortho
|
|
|
472
502
|
|
|
473
503
|
### Adding a New OpenAPI Client
|
|
474
504
|
|
|
505
|
+
> These are the mechanical steps. The decisions they don't cover — client vs SDK, method naming,
|
|
506
|
+
> what to do when the published spec is wrong, what not to test — are the eight rules in
|
|
507
|
+
> [`AGENTS.md`](./AGENTS.md#eight-rules-for-a-new-client-or-sdk). Read those first; each one is a
|
|
508
|
+
> review round somebody already paid for.
|
|
509
|
+
|
|
475
510
|
#### Step 1: Register the API in `redocly.yaml`
|
|
476
511
|
|
|
477
512
|
Add your API specification to the `redocly.yaml` file:
|
|
@@ -552,7 +587,7 @@ export * from './yourNewServiceClient';
|
|
|
552
587
|
|
|
553
588
|
#### Step 6: Add Type Export to package.json
|
|
554
589
|
|
|
555
|
-
Add the type export path to `package.json` exports and add the entry to `
|
|
590
|
+
Add the type export path to `package.json` exports and add the entry to `tsdown.config.ts`:
|
|
556
591
|
|
|
557
592
|
```json
|
|
558
593
|
{
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { p as ApiError } from "./createFetchClient-BK0TZK-U.js";
|
|
2
|
+
//#region src/errors/ManagementClientAuthError.ts
|
|
3
|
+
var ManagementClientAuthError = class extends ApiError {
|
|
4
|
+
title;
|
|
5
|
+
message;
|
|
6
|
+
constructor(title, message, res) {
|
|
7
|
+
super(res);
|
|
8
|
+
this.title = title;
|
|
9
|
+
this.message = message;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { ManagementClientAuthError as t };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=ManagementClientAuthError-B97OtOQ7.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const require_createFetchClient = require("./createFetchClient-BsG719K1.cjs");
|
|
2
|
+
//#region src/errors/ManagementClientAuthError.ts
|
|
3
|
+
var ManagementClientAuthError = class extends require_createFetchClient.ApiError {
|
|
4
|
+
title;
|
|
5
|
+
message;
|
|
6
|
+
constructor(title, message, res) {
|
|
7
|
+
super(res);
|
|
8
|
+
this.title = title;
|
|
9
|
+
this.message = message;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
Object.defineProperty(exports, "ManagementClientAuthError", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function() {
|
|
16
|
+
return ManagementClientAuthError;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=ManagementClientAuthError-ZJ2-RoKT.cjs.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
//#region src/errors/QueryJobError.ts
|
|
2
|
+
/**
|
|
3
|
+
* A query job that reached the API's terminal `failed` state — the submit/poll round-trip
|
|
4
|
+
* succeeded, the job itself did not. Distinct from {@link ApiError}, which is an HTTP-level failure
|
|
5
|
+
* of the submit/poll/results requests themselves.
|
|
6
|
+
*/
|
|
7
|
+
var QueryJobError = class QueryJobError extends Error {
|
|
8
|
+
queryJobId;
|
|
9
|
+
failedStatements;
|
|
10
|
+
constructor(message, queryJobId, { failedStatements }) {
|
|
11
|
+
super(message);
|
|
12
|
+
this.name = "QueryJobError";
|
|
13
|
+
this.queryJobId = queryJobId;
|
|
14
|
+
this.failedStatements = failedStatements;
|
|
15
|
+
Object.setPrototypeOf(this, QueryJobError.prototype);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
const isQueryJobError = (error) => error instanceof QueryJobError;
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/errors/QueryJobTimeoutError.ts
|
|
21
|
+
/**
|
|
22
|
+
* A query job that never reached a terminal state within the caller's `maxWaitTime` — the job may
|
|
23
|
+
* still complete later; this only means `waitForJob`/`executeQuery` gave up watching it.
|
|
24
|
+
*/
|
|
25
|
+
var QueryJobTimeoutError = class QueryJobTimeoutError extends Error {
|
|
26
|
+
queryJobId;
|
|
27
|
+
constructor(message, queryJobId) {
|
|
28
|
+
super(message);
|
|
29
|
+
this.name = "QueryJobTimeoutError";
|
|
30
|
+
this.queryJobId = queryJobId;
|
|
31
|
+
Object.setPrototypeOf(this, QueryJobTimeoutError.prototype);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
const isQueryJobTimeoutError = (error) => error instanceof QueryJobTimeoutError;
|
|
35
|
+
//#endregion
|
|
36
|
+
export { isQueryJobError as i, isQueryJobTimeoutError as n, QueryJobError as r, QueryJobTimeoutError as t };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=QueryJobTimeoutError-C7JbNGOM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryJobTimeoutError-C7JbNGOM.js","names":[],"sources":["../src/errors/QueryJobError.ts","../src/errors/QueryJobTimeoutError.ts"],"sourcesContent":["type FailedStatement = {\n id: string;\n error?: string;\n};\n\ntype QueryJobErrorOptions = {\n failedStatements: FailedStatement[];\n};\n\n/**\n * A query job that reached the API's terminal `failed` state — the submit/poll round-trip\n * succeeded, the job itself did not. Distinct from {@link ApiError}, which is an HTTP-level failure\n * of the submit/poll/results requests themselves.\n */\nexport class QueryJobError extends Error {\n queryJobId: string;\n failedStatements: FailedStatement[];\n\n constructor(message: string, queryJobId: string, { failedStatements }: QueryJobErrorOptions) {\n super(message);\n this.name = 'QueryJobError';\n this.queryJobId = queryJobId;\n this.failedStatements = failedStatements;\n Object.setPrototypeOf(this, QueryJobError.prototype);\n }\n}\n\nexport const isQueryJobError = (error: unknown): error is QueryJobError =>\n error instanceof QueryJobError;\n","/**\n * A query job that never reached a terminal state within the caller's `maxWaitTime` — the job may\n * still complete later; this only means `waitForJob`/`executeQuery` gave up watching it.\n */\nexport class QueryJobTimeoutError extends Error {\n queryJobId: string;\n\n constructor(message: string, queryJobId: string) {\n super(message);\n this.name = 'QueryJobTimeoutError';\n this.queryJobId = queryJobId;\n Object.setPrototypeOf(this, QueryJobTimeoutError.prototype);\n }\n}\n\nexport const isQueryJobTimeoutError = (error: unknown): error is QueryJobTimeoutError =>\n error instanceof QueryJobTimeoutError;\n"],"mappings":";;;;;;AAcA,IAAa,gBAAb,MAAa,sBAAsB,MAAM;CACvC;CACA;CAEA,YAAY,SAAiB,YAAoB,EAAE,oBAA0C;EAC3F,MAAM,OAAO;EACb,KAAK,OAAO;EACZ,KAAK,aAAa;EAClB,KAAK,mBAAmB;EACxB,OAAO,eAAe,MAAM,cAAc,SAAS;CACrD;AACF;AAEA,MAAa,mBAAmB,UAC9B,iBAAiB;;;;;;;ACxBnB,IAAa,uBAAb,MAAa,6BAA6B,MAAM;CAC9C;CAEA,YAAY,SAAiB,YAAoB;EAC/C,MAAM,OAAO;EACb,KAAK,OAAO;EACZ,KAAK,aAAa;EAClB,OAAO,eAAe,MAAM,qBAAqB,SAAS;CAC5D;AACF;AAEA,MAAa,0BAA0B,UACrC,iBAAiB"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
//#region src/errors/QueryJobError.ts
|
|
2
|
+
/**
|
|
3
|
+
* A query job that reached the API's terminal `failed` state — the submit/poll round-trip
|
|
4
|
+
* succeeded, the job itself did not. Distinct from {@link ApiError}, which is an HTTP-level failure
|
|
5
|
+
* of the submit/poll/results requests themselves.
|
|
6
|
+
*/
|
|
7
|
+
var QueryJobError = class QueryJobError extends Error {
|
|
8
|
+
queryJobId;
|
|
9
|
+
failedStatements;
|
|
10
|
+
constructor(message, queryJobId, { failedStatements }) {
|
|
11
|
+
super(message);
|
|
12
|
+
this.name = "QueryJobError";
|
|
13
|
+
this.queryJobId = queryJobId;
|
|
14
|
+
this.failedStatements = failedStatements;
|
|
15
|
+
Object.setPrototypeOf(this, QueryJobError.prototype);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
const isQueryJobError = (error) => error instanceof QueryJobError;
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/errors/QueryJobTimeoutError.ts
|
|
21
|
+
/**
|
|
22
|
+
* A query job that never reached a terminal state within the caller's `maxWaitTime` — the job may
|
|
23
|
+
* still complete later; this only means `waitForJob`/`executeQuery` gave up watching it.
|
|
24
|
+
*/
|
|
25
|
+
var QueryJobTimeoutError = class QueryJobTimeoutError extends Error {
|
|
26
|
+
queryJobId;
|
|
27
|
+
constructor(message, queryJobId) {
|
|
28
|
+
super(message);
|
|
29
|
+
this.name = "QueryJobTimeoutError";
|
|
30
|
+
this.queryJobId = queryJobId;
|
|
31
|
+
Object.setPrototypeOf(this, QueryJobTimeoutError.prototype);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
const isQueryJobTimeoutError = (error) => error instanceof QueryJobTimeoutError;
|
|
35
|
+
//#endregion
|
|
36
|
+
Object.defineProperty(exports, "QueryJobError", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function() {
|
|
39
|
+
return QueryJobError;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "QueryJobTimeoutError", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function() {
|
|
45
|
+
return QueryJobTimeoutError;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "isQueryJobError", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function() {
|
|
51
|
+
return isQueryJobError;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "isQueryJobTimeoutError", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function() {
|
|
57
|
+
return isQueryJobTimeoutError;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
//# sourceMappingURL=QueryJobTimeoutError-CVNPdCWX.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryJobTimeoutError-CVNPdCWX.cjs","names":[],"sources":["../src/errors/QueryJobError.ts","../src/errors/QueryJobTimeoutError.ts"],"sourcesContent":["type FailedStatement = {\n id: string;\n error?: string;\n};\n\ntype QueryJobErrorOptions = {\n failedStatements: FailedStatement[];\n};\n\n/**\n * A query job that reached the API's terminal `failed` state — the submit/poll round-trip\n * succeeded, the job itself did not. Distinct from {@link ApiError}, which is an HTTP-level failure\n * of the submit/poll/results requests themselves.\n */\nexport class QueryJobError extends Error {\n queryJobId: string;\n failedStatements: FailedStatement[];\n\n constructor(message: string, queryJobId: string, { failedStatements }: QueryJobErrorOptions) {\n super(message);\n this.name = 'QueryJobError';\n this.queryJobId = queryJobId;\n this.failedStatements = failedStatements;\n Object.setPrototypeOf(this, QueryJobError.prototype);\n }\n}\n\nexport const isQueryJobError = (error: unknown): error is QueryJobError =>\n error instanceof QueryJobError;\n","/**\n * A query job that never reached a terminal state within the caller's `maxWaitTime` — the job may\n * still complete later; this only means `waitForJob`/`executeQuery` gave up watching it.\n */\nexport class QueryJobTimeoutError extends Error {\n queryJobId: string;\n\n constructor(message: string, queryJobId: string) {\n super(message);\n this.name = 'QueryJobTimeoutError';\n this.queryJobId = queryJobId;\n Object.setPrototypeOf(this, QueryJobTimeoutError.prototype);\n }\n}\n\nexport const isQueryJobTimeoutError = (error: unknown): error is QueryJobTimeoutError =>\n error instanceof QueryJobTimeoutError;\n"],"mappings":";;;;;;AAcA,IAAa,gBAAb,MAAa,sBAAsB,MAAM;CACvC;CACA;CAEA,YAAY,SAAiB,YAAoB,EAAE,oBAA0C;EAC3F,MAAM,OAAO;EACb,KAAK,OAAO;EACZ,KAAK,aAAa;EAClB,KAAK,mBAAmB;EACxB,OAAO,eAAe,MAAM,cAAc,SAAS;CACrD;AACF;AAEA,MAAa,mBAAmB,UAC9B,iBAAiB;;;;;;;ACxBnB,IAAa,uBAAb,MAAa,6BAA6B,MAAM;CAC9C;CAEA,YAAY,SAAiB,YAAoB;EAC/C,MAAM,OAAO;EACb,KAAK,OAAO;EACZ,KAAK,aAAa;EAClB,OAAO,eAAe,MAAM,qBAAqB,SAAS;CAC5D;AACF;AAEA,MAAa,0BAA0B,UACrC,iBAAiB"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//#region src/errors/SyncActionError.ts
|
|
2
|
+
/**
|
|
3
|
+
* A sync action reports failure two ways: a non-2xx response, and a 2xx response whose body carries
|
|
4
|
+
* `status: 'error'` (the component ran, and said no). Both collapse into this class so consumers
|
|
5
|
+
* branch on one thing.
|
|
6
|
+
*/
|
|
7
|
+
var SyncActionError = class SyncActionError extends Error {
|
|
8
|
+
exceptionId;
|
|
9
|
+
code;
|
|
10
|
+
data;
|
|
11
|
+
constructor(message, { exceptionId, code, data } = {}) {
|
|
12
|
+
super(message);
|
|
13
|
+
this.name = "SyncActionError";
|
|
14
|
+
this.exceptionId = exceptionId;
|
|
15
|
+
this.code = code;
|
|
16
|
+
this.data = data;
|
|
17
|
+
Object.setPrototypeOf(this, SyncActionError.prototype);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
const isSyncActionError = (error) => error instanceof SyncActionError;
|
|
21
|
+
//#endregion
|
|
22
|
+
Object.defineProperty(exports, "SyncActionError", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function() {
|
|
25
|
+
return SyncActionError;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "isSyncActionError", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function() {
|
|
31
|
+
return isSyncActionError;
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=SyncActionError-BG0zwchi.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SyncActionError-BG0zwchi.cjs","names":[],"sources":["../src/errors/SyncActionError.ts"],"sourcesContent":["type SyncActionErrorOptions = {\n exceptionId?: string;\n code?: number;\n data?: unknown;\n};\n\n/**\n * A sync action reports failure two ways: a non-2xx response, and a 2xx response whose body carries\n * `status: 'error'` (the component ran, and said no). Both collapse into this class so consumers\n * branch on one thing.\n */\nexport class SyncActionError extends Error {\n exceptionId?: string;\n code?: number;\n data?: unknown;\n\n constructor(message: string, { exceptionId, code, data }: SyncActionErrorOptions = {}) {\n super(message);\n this.name = 'SyncActionError';\n this.exceptionId = exceptionId;\n this.code = code;\n this.data = data;\n Object.setPrototypeOf(this, SyncActionError.prototype);\n }\n}\n\nexport const isSyncActionError = (error: unknown): error is SyncActionError =>\n error instanceof SyncActionError;\n"],"mappings":";;;;;;AAWA,IAAa,kBAAb,MAAa,wBAAwB,MAAM;CACzC;CACA;CACA;CAEA,YAAY,SAAiB,EAAE,aAAa,MAAM,SAAiC,CAAC,GAAG;EACrF,MAAM,OAAO;EACb,KAAK,OAAO;EACZ,KAAK,cAAc;EACnB,KAAK,OAAO;EACZ,KAAK,OAAO;EACZ,OAAO,eAAe,MAAM,gBAAgB,SAAS;CACvD;AACF;AAEA,MAAa,qBAAqB,UAChC,iBAAiB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/errors/SyncActionError.ts
|
|
2
|
+
/**
|
|
3
|
+
* A sync action reports failure two ways: a non-2xx response, and a 2xx response whose body carries
|
|
4
|
+
* `status: 'error'` (the component ran, and said no). Both collapse into this class so consumers
|
|
5
|
+
* branch on one thing.
|
|
6
|
+
*/
|
|
7
|
+
var SyncActionError = class SyncActionError extends Error {
|
|
8
|
+
exceptionId;
|
|
9
|
+
code;
|
|
10
|
+
data;
|
|
11
|
+
constructor(message, { exceptionId, code, data } = {}) {
|
|
12
|
+
super(message);
|
|
13
|
+
this.name = "SyncActionError";
|
|
14
|
+
this.exceptionId = exceptionId;
|
|
15
|
+
this.code = code;
|
|
16
|
+
this.data = data;
|
|
17
|
+
Object.setPrototypeOf(this, SyncActionError.prototype);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
const isSyncActionError = (error) => error instanceof SyncActionError;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { isSyncActionError as n, SyncActionError as t };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=SyncActionError-CoZFsdUk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SyncActionError-CoZFsdUk.js","names":[],"sources":["../src/errors/SyncActionError.ts"],"sourcesContent":["type SyncActionErrorOptions = {\n exceptionId?: string;\n code?: number;\n data?: unknown;\n};\n\n/**\n * A sync action reports failure two ways: a non-2xx response, and a 2xx response whose body carries\n * `status: 'error'` (the component ran, and said no). Both collapse into this class so consumers\n * branch on one thing.\n */\nexport class SyncActionError extends Error {\n exceptionId?: string;\n code?: number;\n data?: unknown;\n\n constructor(message: string, { exceptionId, code, data }: SyncActionErrorOptions = {}) {\n super(message);\n this.name = 'SyncActionError';\n this.exceptionId = exceptionId;\n this.code = code;\n this.data = data;\n Object.setPrototypeOf(this, SyncActionError.prototype);\n }\n}\n\nexport const isSyncActionError = (error: unknown): error is SyncActionError =>\n error instanceof SyncActionError;\n"],"mappings":";;;;;;AAWA,IAAa,kBAAb,MAAa,wBAAwB,MAAM;CACzC;CACA;CACA;CAEA,YAAY,SAAiB,EAAE,aAAa,MAAM,SAAiC,CAAC,GAAG;EACrF,MAAM,OAAO;EACb,KAAK,OAAO;EACZ,KAAK,cAAc;EACnB,KAAK,OAAO;EACZ,KAAK,OAAO;EACZ,OAAO,eAAe,MAAM,gBAAgB,SAAS;CACvD;AACF;AAEA,MAAa,qBAAqB,UAChC,iBAAiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserError-By_Zckmc.js","names":[],"sources":["../src/errors/UserError.ts"],"sourcesContent":["export class UserError extends Error {\n constructor(message: string) {\n super(message);\n }\n}\n"],"mappings":";AAAA,IAAa,YAAb,cAA+B,MAAM;CACnC,YAAY,SAAiB;EAC3B,MAAM,OAAO;CACf;AACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/errors/UserError.ts
|
|
2
|
+
var UserError = class extends Error {
|
|
3
|
+
constructor(message) {
|
|
4
|
+
super(message);
|
|
5
|
+
}
|
|
6
|
+
};
|
|
7
|
+
//#endregion
|
|
8
|
+
Object.defineProperty(exports, "UserError", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function() {
|
|
11
|
+
return UserError;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=UserError-CSGO1qII.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserError-CSGO1qII.cjs","names":[],"sources":["../src/errors/UserError.ts"],"sourcesContent":["export class UserError extends Error {\n constructor(message: string) {\n super(message);\n }\n}\n"],"mappings":";AAAA,IAAa,YAAb,cAA+B,MAAM;CACnC,YAAY,SAAiB;EAC3B,MAAM,OAAO;CACf;AACF"}
|