@keboola/api-client 36.0.0 → 39.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 +12 -3
- package/API-SURFACE.md +14 -1
- package/CHANGELOG.md +74 -0
- package/README.md +19 -17
- package/dist/{ManagementClientAuthError-ey-f03vy.js → ManagementClientAuthError-Cr9IOsnJ.js} +3 -2
- package/dist/{ManagementClientAuthError-ey-f03vy.js.map → ManagementClientAuthError-Cr9IOsnJ.js.map} +1 -1
- package/dist/{ManagementClientAuthError-DD4u0EU7.cjs → ManagementClientAuthError-FcfMJNhr.cjs} +3 -2
- package/dist/{ManagementClientAuthError-DD4u0EU7.cjs.map → ManagementClientAuthError-FcfMJNhr.cjs.map} +1 -1
- package/dist/ai/index.cjs +2 -2
- package/dist/ai/index.js +2 -2
- package/dist/{appLogs-BjfUoWzs.cjs → appLogs-C_zP0lpv.cjs} +2 -2
- package/dist/{appLogs-BjfUoWzs.cjs.map → appLogs-C_zP0lpv.cjs.map} +1 -1
- package/dist/{appLogs-xsVkTriU.js → appLogs-Cl7Q_MR9.js} +2 -2
- package/dist/{appLogs-xsVkTriU.js.map → appLogs-Cl7Q_MR9.js.map} +1 -1
- package/dist/apps/index.cjs +3 -3
- package/dist/apps/index.js +3 -3
- package/dist/assets/index.cjs +1 -1
- package/dist/assets/index.js +1 -1
- package/dist/auth/index.cjs +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/{auth-aItmDu45.js → auth-BjmkFOgd.js} +2 -2
- package/dist/{auth-aItmDu45.js.map → auth-BjmkFOgd.js.map} +1 -1
- package/dist/{auth-JQ33o3nU.cjs → auth-DLWnl18b.cjs} +2 -2
- package/dist/{auth-JQ33o3nU.cjs.map → auth-DLWnl18b.cjs.map} +1 -1
- package/dist/{authClient-_PpvGgZJ.cjs → authClient-8yU1last.cjs} +5 -5
- package/dist/{authClient-_PpvGgZJ.cjs.map → authClient-8yU1last.cjs.map} +1 -1
- package/dist/{authClient-D7W9vWPR.js → authClient-BTo4Afm6.js} +5 -5
- package/dist/{authClient-D7W9vWPR.js.map → authClient-BTo4Afm6.js.map} +1 -1
- package/dist/billing/index.cjs +2 -2
- package/dist/billing/index.js +2 -2
- package/dist/businessWorkspaceApi/index.cjs +3 -0
- package/dist/businessWorkspaceApi/index.d.cts +2 -0
- package/dist/businessWorkspaceApi/index.d.ts +2 -0
- package/dist/businessWorkspaceApi/index.js +2 -0
- package/dist/businessWorkspaceApi/types.cjs +0 -0
- package/dist/businessWorkspaceApi/types.d.cts +2 -0
- package/dist/businessWorkspaceApi/types.d.ts +2 -0
- package/dist/businessWorkspaceApi/types.js +1 -0
- package/dist/businessWorkspaceApi-BD-iUj07.js +61 -0
- package/dist/businessWorkspaceApi-BD-iUj07.js.map +1 -0
- package/dist/businessWorkspaceApi-wyBdbpIJ.cjs +66 -0
- package/dist/businessWorkspaceApi-wyBdbpIJ.cjs.map +1 -0
- package/dist/businessWorkspaceApiClient-C2WyWN3b.d.ts +529 -0
- package/dist/businessWorkspaceApiClient-CRM1U8b-.d.cts +529 -0
- package/dist/chat/index.cjs +5 -5
- package/dist/chat/index.cjs.map +1 -1
- package/dist/chat/index.d.cts +1 -1
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat/index.js +5 -5
- package/dist/chat/index.js.map +1 -1
- package/dist/constants/index.cjs +1 -1
- package/dist/constants/index.d.cts +2 -2
- package/dist/constants/index.d.ts +2 -2
- package/dist/constants/index.js +1 -1
- package/dist/{constants-wfbFsqqN.js → constants-C2tYAJSj.js} +10 -1
- package/dist/constants-C2tYAJSj.js.map +1 -0
- package/dist/{constants-C4DlsF_M.cjs → constants-C6xku_Vx.cjs} +10 -1
- package/dist/constants-C6xku_Vx.cjs.map +1 -0
- package/dist/{createFetchClient-DgMiqTJ8.cjs → createFetchClient-BlgPbjFj.cjs} +14 -2
- package/dist/createFetchClient-BlgPbjFj.cjs.map +1 -0
- package/dist/{createFetchClient-U-ZrwPl2.js → createFetchClient-C-cadpBx.js} +14 -2
- package/dist/createFetchClient-C-cadpBx.js.map +1 -0
- package/dist/{createGenericFetchClient-rxvUUbap.js → createGenericFetchClient-Bnf1QK9W.js} +2 -2
- package/dist/{createGenericFetchClient-rxvUUbap.js.map → createGenericFetchClient-Bnf1QK9W.js.map} +1 -1
- package/dist/{createGenericFetchClient-o3cPJeRn.cjs → createGenericFetchClient-lcozzwk2.cjs} +2 -2
- package/dist/{createGenericFetchClient-o3cPJeRn.cjs.map → createGenericFetchClient-lcozzwk2.cjs.map} +1 -1
- package/dist/{createOpenapiFetchClient-DhUU3M1W.cjs → createOpenapiFetchClient-C3UmDXpe.cjs} +2 -2
- package/dist/{createOpenapiFetchClient-DhUU3M1W.cjs.map → createOpenapiFetchClient-C3UmDXpe.cjs.map} +1 -1
- package/dist/{createOpenapiFetchClient-BVSc9ibR.js → createOpenapiFetchClient-COaPeeQ0.js} +2 -2
- package/dist/{createOpenapiFetchClient-BVSc9ibR.js.map → createOpenapiFetchClient-COaPeeQ0.js.map} +1 -1
- package/dist/{credential-DVWvJFJs.cjs → credential-CAulvfZ-.cjs} +2 -2
- package/dist/{credential-DVWvJFJs.cjs.map → credential-CAulvfZ-.cjs.map} +1 -1
- package/dist/{credential-CihSf_xs.js → credential-DWXbo4IX.js} +2 -2
- package/dist/{credential-CihSf_xs.js.map → credential-DWXbo4IX.js.map} +1 -1
- package/dist/dataScience/index.cjs +2 -2
- package/dist/dataScience/index.js +2 -2
- package/dist/{dataScience-C1gO5zUn.js → dataScience-B_BmnB1m.js} +5 -5
- package/dist/{dataScience-C1gO5zUn.js.map → dataScience-B_BmnB1m.js.map} +1 -1
- package/dist/{dataScience-0Rl_EuV_.cjs → dataScience-D-hyc4GY.cjs} +5 -5
- package/dist/{dataScience-0Rl_EuV_.cjs.map → dataScience-D-hyc4GY.cjs.map} +1 -1
- package/dist/developerPortal/index.cjs +1 -1
- package/dist/developerPortal/index.js +1 -1
- package/dist/{developerPortalClient-ki0XS_OD.cjs → developerPortalClient-CutPqoAa.cjs} +3 -3
- package/dist/{developerPortalClient-ki0XS_OD.cjs.map → developerPortalClient-CutPqoAa.cjs.map} +1 -1
- package/dist/{developerPortalClient-C_48z8BN.js → developerPortalClient-yHFTkKPb.js} +3 -3
- package/dist/{developerPortalClient-C_48z8BN.js.map → developerPortalClient-yHFTkKPb.js.map} +1 -1
- package/dist/domain/permissions/index.d.cts +2 -2
- package/dist/domain/permissions/index.d.ts +2 -2
- package/dist/editor/index.cjs +2 -2
- package/dist/editor/index.js +2 -2
- package/dist/encryption/index.cjs +1 -1
- package/dist/encryption/index.d.cts +1 -1
- package/dist/encryption/index.d.ts +1 -1
- package/dist/encryption/index.js +1 -1
- package/dist/encryption/types.d.cts +1 -1
- package/dist/encryption/types.d.ts +1 -1
- package/dist/import/index.cjs +1 -1
- package/dist/import/index.js +1 -1
- package/dist/{import-C83w7BKz.cjs → import-7YyyD_U_.cjs} +3 -3
- package/dist/{import-C83w7BKz.cjs.map → import-7YyyD_U_.cjs.map} +1 -1
- package/dist/{import-CROEK82b.js → import-xliONVib.js} +3 -3
- package/dist/{import-CROEK82b.js.map → import-xliONVib.js.map} +1 -1
- package/dist/{index-D8rcUbnk.d.ts → index-1r_CskjU.d.ts} +2 -2
- package/dist/{index-BXF-bs2d.d.ts → index-BK-qHT39.d.ts} +8 -4
- package/dist/{index-DIAyi-EZ.d.cts → index-CHXnJQ9s.d.cts} +92 -14
- package/dist/{index-BDG-LKXj.d.cts → index-CWoEnDJ_.d.cts} +8 -4
- package/dist/{index-NaYLwG_h.d.ts → index-DBklbaTp.d.cts} +9 -1
- package/dist/{index-NaYLwG_h.d.cts → index-DBklbaTp.d.ts} +9 -1
- package/dist/{index-BgLnWTZU.d.cts → index-DVw4Av4b.d.cts} +4 -4
- package/dist/{index-DR4QqItd.d.cts → index-DWf6FXOr.d.cts} +2 -2
- package/dist/{index-CqgtL2NU.d.ts → index-De5qUWhp.d.ts} +4 -4
- package/dist/{index-2JM0gyAf.d.ts → index-GfKzh267.d.ts} +92 -14
- package/dist/index.cjs +30 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +30 -20
- package/dist/index.js.map +1 -1
- package/dist/{isLoginPageRedirect-B0EmRsHr.cjs → isLoginPageRedirect-Cm6Pn8Pj.cjs} +2 -2
- package/dist/{isLoginPageRedirect-B0EmRsHr.cjs.map → isLoginPageRedirect-Cm6Pn8Pj.cjs.map} +1 -1
- package/dist/{isLoginPageRedirect-BTTAedW-.js → isLoginPageRedirect-hyPqyWNX.js} +2 -2
- package/dist/{isLoginPageRedirect-BTTAedW-.js.map → isLoginPageRedirect-hyPqyWNX.js.map} +1 -1
- package/dist/kaiAgent/index.cjs +1 -1
- package/dist/kaiAgent/index.d.cts +1 -1
- package/dist/kaiAgent/index.d.ts +1 -1
- package/dist/kaiAgent/index.js +1 -1
- package/dist/kaiAgent/types.d.cts +2 -2
- package/dist/kaiAgent/types.d.ts +2 -2
- package/dist/{kaiAgent-8LNzGhZc.js → kaiAgent-CcT2oNip.js} +41 -6
- package/dist/kaiAgent-CcT2oNip.js.map +1 -0
- package/dist/{kaiAgent-B_TaUPRt.cjs → kaiAgent-DaB6UCsh.cjs} +41 -6
- package/dist/kaiAgent-DaB6UCsh.cjs.map +1 -0
- package/dist/{kaiAgentClient-BJj_2aqt.d.ts → kaiAgentClient-B5L4gbQ1.d.ts} +8 -3
- package/dist/{kaiAgentClient-DhTaM3GC.d.cts → kaiAgentClient-CHpULyeG.d.cts} +8 -3
- package/dist/management/index.cjs +1 -1
- package/dist/management/index.d.cts +2 -2
- package/dist/management/index.d.ts +2 -2
- package/dist/management/index.js +1 -1
- package/dist/management/types.d.cts +2 -2
- package/dist/management/types.d.ts +2 -2
- package/dist/{management-BoxlRNg2.cjs → management-DeZiQSlw.cjs} +41 -8
- package/dist/management-DeZiQSlw.cjs.map +1 -0
- package/dist/{management-Bp440RsV.js → management-ckdnu1dA.js} +41 -8
- package/dist/management-ckdnu1dA.js.map +1 -0
- package/dist/metastore/index.cjs +1 -1
- package/dist/metastore/index.js +1 -1
- package/dist/{metastore-BYYWTb3m.cjs → metastore-9AGrwjmN.cjs} +4 -4
- package/dist/{metastore-BYYWTb3m.cjs.map → metastore-9AGrwjmN.cjs.map} +1 -1
- package/dist/{metastore-VCDRVhUT.js → metastore-B0PolCjQ.js} +4 -4
- package/dist/{metastore-VCDRVhUT.js.map → metastore-B0PolCjQ.js.map} +1 -1
- package/dist/microsoftGraph/index.cjs +2 -2
- package/dist/microsoftGraph/index.js +2 -2
- package/dist/notifications/index.cjs +3 -3
- package/dist/notifications/index.js +3 -3
- package/dist/oauth/index.cjs +1 -1
- package/dist/oauth/index.js +1 -1
- package/dist/{oauth--asfePw-.js → oauth-BnHVf4cB.js} +5 -5
- package/dist/{oauth--asfePw-.js.map → oauth-BnHVf4cB.js.map} +1 -1
- package/dist/{oauth-B8yqG6Sy.cjs → oauth-DNtv4Ihb.cjs} +5 -5
- package/dist/{oauth-B8yqG6Sy.cjs.map → oauth-DNtv4Ihb.cjs.map} +1 -1
- package/dist/omnisearch/index.cjs +2 -2
- package/dist/omnisearch/index.js +2 -2
- package/dist/{project-hePfzUY0.d.cts → project-BRpzv3yE.d.cts} +2 -2
- package/dist/{project-C2wvX0xZ.d.ts → project-DCHOxRWd.d.ts} +2 -2
- package/dist/queryService/index.cjs +1 -1
- package/dist/queryService/index.d.cts +1 -1
- package/dist/queryService/index.d.ts +1 -1
- package/dist/queryService/index.js +1 -1
- package/dist/{queryService-BVtjkXy1.cjs → queryService-BVwD6Vmc.cjs} +5 -5
- package/dist/{queryService-BVtjkXy1.cjs.map → queryService-BVwD6Vmc.cjs.map} +1 -1
- package/dist/{queryService-Ca65E5KH.js → queryService-j3XZ2mX6.js} +5 -5
- package/dist/{queryService-Ca65E5KH.js.map → queryService-j3XZ2mX6.js.map} +1 -1
- package/dist/queue/index.cjs +1 -1
- package/dist/queue/index.d.cts +1 -1
- package/dist/queue/index.d.ts +1 -1
- package/dist/queue/index.js +1 -1
- package/dist/{queue-DyotLFJi.js → queue-Dagl0sdP.js} +4 -4
- package/dist/{queue-DyotLFJi.js.map → queue-Dagl0sdP.js.map} +1 -1
- package/dist/{queue-OJJUUqc2.cjs → queue-e3rMWbmK.cjs} +4 -4
- package/dist/{queue-OJJUUqc2.cjs.map → queue-e3rMWbmK.cjs.map} +1 -1
- package/dist/scheduler/index.cjs +3 -3
- package/dist/scheduler/index.js +3 -3
- package/dist/sdk/configurations/index.d.cts +4 -4
- package/dist/sdk/configurations/index.d.ts +4 -4
- package/dist/sdk/developerPortal/index.cjs +3 -3
- package/dist/sdk/developerPortal/index.js +3 -3
- package/dist/sdk/queryService/index.d.cts +1 -1
- package/dist/sdk/queryService/index.d.ts +1 -1
- package/dist/sdk/semanticLayer/index.cjs +1 -1
- package/dist/sdk/semanticLayer/index.js +1 -1
- package/dist/sdk/storage/index.d.cts +1 -1
- package/dist/sdk/storage/index.d.ts +1 -1
- package/dist/sdk/vault/index.d.cts +1 -1
- package/dist/sdk/vault/index.d.ts +1 -1
- package/dist/{semanticLayer-CSqmtHRo.js → semanticLayer-6_gtFxDu.js} +38 -5
- package/dist/semanticLayer-6_gtFxDu.js.map +1 -0
- package/dist/{semanticLayer-E0Vilu8u.cjs → semanticLayer-9uTaU7UT.cjs} +38 -5
- package/dist/semanticLayer-9uTaU7UT.cjs.map +1 -0
- package/dist/{serviceIds-DRcoTnSd.d.ts → serviceIds-DC-H6ZD9.d.cts} +2 -1
- package/dist/{serviceIds-DRcoTnSd.d.cts → serviceIds-DC-H6ZD9.d.ts} +2 -1
- package/dist/status/index.cjs +1 -1
- package/dist/status/index.js +1 -1
- package/dist/storage/index.cjs +5 -4
- package/dist/storage/index.d.cts +2 -2
- package/dist/storage/index.d.ts +2 -2
- package/dist/storage/index.js +5 -5
- package/dist/storage/types.d.cts +3 -3
- package/dist/storage/types.d.ts +3 -3
- package/dist/{storage-BKm7cztt.cjs → storage-HFUdEy7P.cjs} +43 -6
- package/dist/storage-HFUdEy7P.cjs.map +1 -0
- package/dist/{storage-LYwFQPNO.js → storage-Ob1LUIDq.js} +38 -7
- package/dist/storage-Ob1LUIDq.js.map +1 -0
- package/dist/stream/index.cjs +3 -3
- package/dist/stream/index.js +3 -3
- package/dist/syncActions/index.cjs +1 -1
- package/dist/syncActions/index.js +1 -1
- package/dist/{syncActions-QeBhIVhG.js → syncActions-B3NS5a0g.js} +5 -5
- package/dist/{syncActions-QeBhIVhG.js.map → syncActions-B3NS5a0g.js.map} +1 -1
- package/dist/{syncActions-OEZdVffK.cjs → syncActions-D2DhY6pP.cjs} +5 -5
- package/dist/{syncActions-OEZdVffK.cjs.map → syncActions-D2DhY6pP.cjs.map} +1 -1
- package/dist/telemetry/index.cjs +3 -3
- package/dist/telemetry/index.js +3 -3
- package/dist/{types-CzsnuPFh.d.cts → types-B-P4vQe0.d.cts} +35 -2
- package/dist/{types-DEc55spK.d.ts → types-B95uNQ9o.d.ts} +3 -3
- package/dist/{types-BQsOHNI0.d.ts → types-BrPlv-NS.d.ts} +3 -3
- package/dist/{types-DjrRmQUe.d.cts → types-CmF3pR2n.d.cts} +3 -3
- package/dist/{types-f8W_j6qD.d.cts → types-Crhy0c9m.d.cts} +657 -199
- package/dist/{types-DPS8nwkV.d.cts → types-DOyNe7oe.d.cts} +2 -1
- package/dist/{types-BuqxXXYP.d.ts → types-DPl8pZsY.d.ts} +35 -2
- package/dist/{types-CaYtinmA.d.cts → types-D_j2Uq5X.d.cts} +3 -3
- package/dist/{types-BupPADSm.d.ts → types-DrqKICcK.d.ts} +657 -199
- package/dist/{types-DBOSvWtD.d.ts → types-gi4Eay19.d.ts} +2 -1
- package/dist/{validateConnectionStatus-olE2sQ3U.js → validateConnectionStatus-828HV8WL.js} +4 -3
- package/dist/validateConnectionStatus-828HV8WL.js.map +1 -0
- package/dist/{validateConnectionStatus-CsvYmCOI.cjs → validateConnectionStatus-CvBKyeDO.cjs} +4 -3
- package/dist/validateConnectionStatus-CvBKyeDO.cjs.map +1 -0
- package/dist/vault/index.cjs +4 -4
- package/dist/vault/index.js +4 -4
- package/package.json +28 -2
- package/surface/businessWorkspaceApi.md +12 -0
- package/surface/chat.md +1 -1
- package/surface/kaiAgent.md +5 -2
- package/surface/management.md +4 -0
- package/dist/constants-C4DlsF_M.cjs.map +0 -1
- package/dist/constants-wfbFsqqN.js.map +0 -1
- package/dist/createFetchClient-DgMiqTJ8.cjs.map +0 -1
- package/dist/createFetchClient-U-ZrwPl2.js.map +0 -1
- package/dist/kaiAgent-8LNzGhZc.js.map +0 -1
- package/dist/kaiAgent-B_TaUPRt.cjs.map +0 -1
- package/dist/management-BoxlRNg2.cjs.map +0 -1
- package/dist/management-Bp440RsV.js.map +0 -1
- package/dist/semanticLayer-CSqmtHRo.js.map +0 -1
- package/dist/semanticLayer-E0Vilu8u.cjs.map +0 -1
- package/dist/storage-BKm7cztt.cjs.map +0 -1
- package/dist/storage-LYwFQPNO.js.map +0 -1
- package/dist/validateConnectionStatus-CsvYmCOI.cjs.map +0 -1
- package/dist/validateConnectionStatus-olE2sQ3U.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-
|
|
1
|
+
{"version":3,"file":"import-7YyyD_U_.cjs","names":["createOpenapiFetchClient","createAuthHeaders"],"sources":["../src/fetchClient/xhrFetch.ts","../src/clients/import/utils.ts","../src/clients/import/importClient.ts"],"sourcesContent":["import type { FetchFn } from './createFetchClient';\n\nexport type UploadProgress = {\n loaded: number;\n total: number;\n percent: number;\n};\n\nconst parseResponseHeaders = (raw: string) => {\n const headers = new Headers();\n\n for (const line of raw.trim().split(/[\\r\\n]+/)) {\n const separator = line.indexOf(':');\n if (separator < 0) continue;\n\n headers.append(line.slice(0, separator).trim(), line.slice(separator + 1).trim());\n }\n\n return headers;\n};\n\nconst createAbortError = () => new DOMException('The operation was aborted.', 'AbortError');\n\n// `new Response(body)` throws for these statuses even when the body is empty.\nconst BODILESS_STATUSES = [204, 205];\n\nconst BODILESS_METHODS = ['GET', 'HEAD'];\n\n/**\n * A `fetch` implementation backed by XHR, for the `fetchFn` escape hatch: `fetch` cannot observe\n * request-body upload progress outside Chromium, `xhr.upload.onprogress` can.\n */\nexport const xhrFetch = (onProgress: (progress: UploadProgress) => void): FetchFn => {\n return async (input, init) => {\n // Node has no XHR, and asking for progress is not worth failing an upload over — the caller\n // simply gets no progress events there.\n if (typeof XMLHttpRequest === 'undefined') return fetch(input, init);\n\n const request = new Request(input, init);\n const body = BODILESS_METHODS.includes(request.method) ? null : await request.blob();\n\n if (request.signal.aborted) throw createAbortError();\n\n const { promise, resolve, reject } = Promise.withResolvers<Response>();\n const xhr = new XMLHttpRequest();\n\n const handleProgress = (event: ProgressEvent) => {\n if (!event.lengthComputable) return;\n\n onProgress({\n loaded: event.loaded,\n total: event.total,\n percent: (event.loaded / event.total) * 100,\n });\n };\n\n const handleLoad = () => {\n resolve(\n new Response(BODILESS_STATUSES.includes(xhr.status) ? null : xhr.response, {\n status: xhr.status,\n statusText: xhr.statusText,\n headers: parseResponseHeaders(xhr.getAllResponseHeaders()),\n }),\n );\n };\n\n // `TypeError` for parity with `fetch` — `isFetchClientError` keys off it.\n const handleError = () => reject(new TypeError('Failed to fetch'));\n const handleAbort = () => reject(createAbortError());\n\n xhr.open(request.method, request.url, true);\n xhr.responseType = 'blob';\n xhr.withCredentials = request.credentials === 'include';\n\n // The body we send is the one this `Request` serialized, so its `content-type` — multipart\n // boundary included — describes those exact bytes and can be forwarded as-is.\n request.headers.forEach((value, name) => xhr.setRequestHeader(name, value));\n\n xhr.upload.addEventListener('progress', handleProgress);\n xhr.addEventListener('load', handleLoad);\n xhr.addEventListener('error', handleError);\n xhr.addEventListener('abort', handleAbort);\n request.signal.addEventListener('abort', () => xhr.abort(), { once: true });\n\n xhr.send(body);\n\n return promise;\n };\n};\n","/**\n * Every field the importer takes is a form part, named exactly as the spec names it: flags go as\n * `1` when on and are left out when off (so the service applies its own default), and arrays repeat\n * under the `[]`-suffixed name. The payload rides along as the `data` part — `file` is the public\n * API's word for it, not the wire's.\n */\nexport const createFormData = (\n fields: Record<string, string | boolean | string[] | File | null | undefined>,\n) => {\n const formData = new FormData();\n\n for (const [name, value] of Object.entries(fields)) {\n if (!value) {\n continue;\n }\n\n if (Array.isArray(value)) {\n for (const item of value) {\n formData.append(`${name}[]`, item);\n }\n } else {\n formData.append(name, value === true ? '1' : value);\n }\n }\n\n return formData;\n};\n","import type { UploadProgress } from '../../fetchClient';\nimport { createOpenapiFetchClient, xhrFetch } from '../../fetchClient';\nimport { createAuthHeaders } from '../auth';\nimport type { ClientInitOptions } from '../types';\n\nimport type { paths } from './__generated__/schema';\nimport type { UploadFileInput, WriteTableInput } from './types';\nimport { createFormData } from './utils';\n\ntype Options = {\n signal?: AbortSignal;\n onProgress?: (progress: UploadProgress) => void;\n};\n\nexport const createImportClient = ({ baseUrl, middlewares, auth }: ClientInitOptions) => {\n const client = createOpenapiFetchClient<paths>({\n baseUrl,\n middlewares,\n headers: createAuthHeaders(auth),\n });\n\n const uploadFile = async (\n { file, ...fields }: UploadFileInput,\n { signal, onProgress }: Options = {},\n ) => {\n const { data } = await client.post(\n '/upload-file',\n { body: createFormData({ data: file, ...fields }) },\n { signal, fetchFn: onProgress ? xhrFetch(onProgress) : undefined },\n );\n\n return data;\n };\n\n const writeTable = async (\n { file, ...fields }: WriteTableInput,\n { signal, onProgress }: Options = {},\n ) => {\n const { data } = await client.post(\n '/write-table',\n { body: createFormData({ data: file, ...fields }) },\n { signal, fetchFn: onProgress ? xhrFetch(onProgress) : undefined },\n );\n\n return data;\n };\n\n const healthCheck = async (signal?: AbortSignal) => {\n const { data } = await client.get('/health-check', {}, { signal });\n\n return data;\n };\n\n return {\n healthCheck,\n uploadFile,\n writeTable,\n };\n};\n"],"mappings":";;;AAQA,MAAM,wBAAwB,QAAgB;CAC5C,MAAM,UAAU,IAAI,QAAQ;CAE5B,KAAK,MAAM,QAAQ,IAAI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AM,OAAO,KAC5B,gBACA,EAAE,MAAM,eAAe;GAAE,MAAM;GAAM,GAAG;EAAO,CAAC,EAAE,GAClD;GAAE;GAAQ,SAAS,aAAa,SAAS,UAAU,IAAI,KAAA;EAAU,CACnE;EAEA,OAAO;CACT;CAEA,MAAM,cAAc,OAAO,WAAyB;EAClD,MAAM,EAAE,SAAS,MAAM,OAAO,IAAI,iBAAiB,CAAC,GAAG,EAAE,OAAO,CAAC;EAEjE,OAAO;CACT;CAEA,OAAO;EACL;EACA;EACA;CACF;AACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as createOpenapiFetchClient } from "./createOpenapiFetchClient-
|
|
2
|
-
import { t as createAuthHeaders } from "./auth-
|
|
1
|
+
import { t as createOpenapiFetchClient } from "./createOpenapiFetchClient-COaPeeQ0.js";
|
|
2
|
+
import { t as createAuthHeaders } from "./auth-BjmkFOgd.js";
|
|
3
3
|
//#region src/fetchClient/xhrFetch.ts
|
|
4
4
|
const parseResponseHeaders = (raw) => {
|
|
5
5
|
const headers = new Headers();
|
|
@@ -113,4 +113,4 @@ const createImportClient = ({ baseUrl, middlewares, auth }) => {
|
|
|
113
113
|
//#endregion
|
|
114
114
|
export { createImportClient as t };
|
|
115
115
|
|
|
116
|
-
//# sourceMappingURL=import-
|
|
116
|
+
//# sourceMappingURL=import-xliONVib.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-
|
|
1
|
+
{"version":3,"file":"import-xliONVib.js","names":[],"sources":["../src/fetchClient/xhrFetch.ts","../src/clients/import/utils.ts","../src/clients/import/importClient.ts"],"sourcesContent":["import type { FetchFn } from './createFetchClient';\n\nexport type UploadProgress = {\n loaded: number;\n total: number;\n percent: number;\n};\n\nconst parseResponseHeaders = (raw: string) => {\n const headers = new Headers();\n\n for (const line of raw.trim().split(/[\\r\\n]+/)) {\n const separator = line.indexOf(':');\n if (separator < 0) continue;\n\n headers.append(line.slice(0, separator).trim(), line.slice(separator + 1).trim());\n }\n\n return headers;\n};\n\nconst createAbortError = () => new DOMException('The operation was aborted.', 'AbortError');\n\n// `new Response(body)` throws for these statuses even when the body is empty.\nconst BODILESS_STATUSES = [204, 205];\n\nconst BODILESS_METHODS = ['GET', 'HEAD'];\n\n/**\n * A `fetch` implementation backed by XHR, for the `fetchFn` escape hatch: `fetch` cannot observe\n * request-body upload progress outside Chromium, `xhr.upload.onprogress` can.\n */\nexport const xhrFetch = (onProgress: (progress: UploadProgress) => void): FetchFn => {\n return async (input, init) => {\n // Node has no XHR, and asking for progress is not worth failing an upload over — the caller\n // simply gets no progress events there.\n if (typeof XMLHttpRequest === 'undefined') return fetch(input, init);\n\n const request = new Request(input, init);\n const body = BODILESS_METHODS.includes(request.method) ? null : await request.blob();\n\n if (request.signal.aborted) throw createAbortError();\n\n const { promise, resolve, reject } = Promise.withResolvers<Response>();\n const xhr = new XMLHttpRequest();\n\n const handleProgress = (event: ProgressEvent) => {\n if (!event.lengthComputable) return;\n\n onProgress({\n loaded: event.loaded,\n total: event.total,\n percent: (event.loaded / event.total) * 100,\n });\n };\n\n const handleLoad = () => {\n resolve(\n new Response(BODILESS_STATUSES.includes(xhr.status) ? null : xhr.response, {\n status: xhr.status,\n statusText: xhr.statusText,\n headers: parseResponseHeaders(xhr.getAllResponseHeaders()),\n }),\n );\n };\n\n // `TypeError` for parity with `fetch` — `isFetchClientError` keys off it.\n const handleError = () => reject(new TypeError('Failed to fetch'));\n const handleAbort = () => reject(createAbortError());\n\n xhr.open(request.method, request.url, true);\n xhr.responseType = 'blob';\n xhr.withCredentials = request.credentials === 'include';\n\n // The body we send is the one this `Request` serialized, so its `content-type` — multipart\n // boundary included — describes those exact bytes and can be forwarded as-is.\n request.headers.forEach((value, name) => xhr.setRequestHeader(name, value));\n\n xhr.upload.addEventListener('progress', handleProgress);\n xhr.addEventListener('load', handleLoad);\n xhr.addEventListener('error', handleError);\n xhr.addEventListener('abort', handleAbort);\n request.signal.addEventListener('abort', () => xhr.abort(), { once: true });\n\n xhr.send(body);\n\n return promise;\n };\n};\n","/**\n * Every field the importer takes is a form part, named exactly as the spec names it: flags go as\n * `1` when on and are left out when off (so the service applies its own default), and arrays repeat\n * under the `[]`-suffixed name. The payload rides along as the `data` part — `file` is the public\n * API's word for it, not the wire's.\n */\nexport const createFormData = (\n fields: Record<string, string | boolean | string[] | File | null | undefined>,\n) => {\n const formData = new FormData();\n\n for (const [name, value] of Object.entries(fields)) {\n if (!value) {\n continue;\n }\n\n if (Array.isArray(value)) {\n for (const item of value) {\n formData.append(`${name}[]`, item);\n }\n } else {\n formData.append(name, value === true ? '1' : value);\n }\n }\n\n return formData;\n};\n","import type { UploadProgress } from '../../fetchClient';\nimport { createOpenapiFetchClient, xhrFetch } from '../../fetchClient';\nimport { createAuthHeaders } from '../auth';\nimport type { ClientInitOptions } from '../types';\n\nimport type { paths } from './__generated__/schema';\nimport type { UploadFileInput, WriteTableInput } from './types';\nimport { createFormData } from './utils';\n\ntype Options = {\n signal?: AbortSignal;\n onProgress?: (progress: UploadProgress) => void;\n};\n\nexport const createImportClient = ({ baseUrl, middlewares, auth }: ClientInitOptions) => {\n const client = createOpenapiFetchClient<paths>({\n baseUrl,\n middlewares,\n headers: createAuthHeaders(auth),\n });\n\n const uploadFile = async (\n { file, ...fields }: UploadFileInput,\n { signal, onProgress }: Options = {},\n ) => {\n const { data } = await client.post(\n '/upload-file',\n { body: createFormData({ data: file, ...fields }) },\n { signal, fetchFn: onProgress ? xhrFetch(onProgress) : undefined },\n );\n\n return data;\n };\n\n const writeTable = async (\n { file, ...fields }: WriteTableInput,\n { signal, onProgress }: Options = {},\n ) => {\n const { data } = await client.post(\n '/write-table',\n { body: createFormData({ data: file, ...fields }) },\n { signal, fetchFn: onProgress ? xhrFetch(onProgress) : undefined },\n );\n\n return data;\n };\n\n const healthCheck = async (signal?: AbortSignal) => {\n const { data } = await client.get('/health-check', {}, { signal });\n\n return data;\n };\n\n return {\n healthCheck,\n uploadFile,\n writeTable,\n };\n};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Aa,OACjB,EAAE,MAAM,GAAG,UACX,EAAE,QAAQ,eAAwB,CAAC,MAChC;EACH,MAAM,EAAE,SAAS,MAAM,OAAO,KAC5B,gBACA,EAAE,MAAM,eAAe;GAAE,MAAM;GAAM,GAAG;EAAO,CAAC,EAAE,GAClD;GAAE;GAAQ,SAAS,aAAa,SAAS,UAAU,IAAI,KAAA;EAAU,CACnE;EAEA,OAAO;CACT;CAEA,MAAM,cAAc,OAAO,WAAyB;EAClD,MAAM,EAAE,SAAS,MAAM,OAAO,IAAI,iBAAiB,CAAC,GAAG,EAAE,OAAO,CAAC;EAEjE,OAAO;CACT;CAEA,OAAO;EACL;EACA;EACA;CACF;AACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as ClientInitOptions } from "./types-Ct0YPy2w.js";
|
|
2
|
-
import { a as EncryptQuery, s as ScopedSecrets } from "./types-
|
|
2
|
+
import { a as EncryptQuery, s as ScopedSecrets } from "./types-BrPlv-NS.js";
|
|
3
3
|
//#region src/clients/encryption/encryptionClient.d.ts
|
|
4
4
|
declare const createEncryptionClient: ({ baseUrl, middlewares }: Omit<ClientInitOptions, 'auth'>) => {
|
|
5
5
|
healthCheck: (signal?: AbortSignal) => Promise<unknown>;
|
|
@@ -13,4 +13,4 @@ declare const createEncryptionClient: ({ baseUrl, middlewares }: Omit<ClientInit
|
|
|
13
13
|
};
|
|
14
14
|
//#endregion
|
|
15
15
|
export { createEncryptionClient as t };
|
|
16
|
-
//# sourceMappingURL=index-
|
|
16
|
+
//# sourceMappingURL=index-1r_CskjU.d.ts.map
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { D as MiddlewareFn, S as ManagementClientAuthError, t as createOpenapiFetchClient } from "./index-KuQ79Mnz.js";
|
|
1
|
+
import { D as MiddlewareFn, S as ManagementClientAuthError, t as createOpenapiFetchClient, u as createGenericFetchClient } from "./index-KuQ79Mnz.js";
|
|
2
2
|
import { n as ClientInitOptions } from "./types-Ct0YPy2w.js";
|
|
3
|
-
import { $ as RemoveProjectUserPath, $n as
|
|
3
|
+
import { $ as RemoveProjectUserPath, $n as Feature, $t as MaintainerDetail, A as GetProjectPath, At as ConfirmProgrammaticProjectResult, B as ProjectBase, C as CreateProjectFeatureBody, Ct as UserDetail, D as DeleteProjectInvitationPath, E as CreateProjectInvitationPath, En as OrganizationInvitationPath, Et as UserOrganizationMembership, F as ListProjectJoinRequestsPath, Ft as StripeCustomer, Gn as RotateFileStorageAbsInput, Hn as FileStorageGcs, I as ListProjectUsersPath, In as UpdateOrganizationInput, Jn as RotateFileStorageGcsInput, Jt as CreateMaintainerOrganizationInput, K as ProjectMetadataItem, Kt as CreateMaintainerInvitationInput, Ln as CreateFileStorageAbsBody, Lt as TopUpSetting, Mn as OrganizationUserPath, Mt as CreditPaymentRequest, N as JoinProjectInput, Nt as CreditPurchase, O as DeleteProjectMetadataPath, Ot as UserProjectMembership, P as ListProjectInvitationsPath, Pn as SetOrganizationMetadataInput, Pt as PayAsYouGoBillingConfiguration, Q as RemoveProjectTemplateFeaturePath, Qt as Maintainer, R as MoveProjectInput, Rn as CreateFileStorageGcsBody, Rt as UpdateStripeCustomerBody, Sn as CreateOrganizationProjectInput, St as User, T as CreateProjectInvitationBody, Tt as UserMaintainerMembership, Ut as CompleteSamlSetupInput, Vt as AddMaintainerUserInput, W as ProjectJoinRequestPath, Wt as CreateMaintainerBody, X as RemoveProjectFeaturePath, Xt as CreateSamlConfigInput, Z as RemoveProjectLimitPath, Zn as RotateFileStorageS3Input, _ as AddProjectUserPath, _n as AddOrganizationUserInput, _t as RemoveUserFeaturePath, a as CreateBigqueryStorageBackendBody, an as MaintainerUserPath, bn as CreateOrganizationInvitationInput, c as StorageBackend, cn as SamlConfigPath, ct as SetProjectMetadataPath, dn as SetMaintainerMetadataInput, dr as paths, er as FeatureAdmin, ft as UpdateProjectInput, g as AddProjectUserBody, gt as GetUsersQuery, h as UpdateStorageBackendInput, hn as UpdateSamlConfigInput, ht as DeleteUserMetadataPath, in as MaintainerUser, it as SetProjectDisabledInput, j as GetProjectReviewersPath, jt as CreatePaymentRequestBody, k as GetProjectMetadataPath, kn as OrganizationMetadataItemPath, kt as ConfirmProgrammaticProjectPayload, lt as SetProjectReviewersBody, mt as AddUserFeaturePath, n as ActivateUiAppVersionPath, nn as MaintainerMetadataItemPath, nt as Reviewer, o as CreateSnowflakeStorageBackendBody, on as MetadataItem, or as DeletedProjectsListQuery, ot as SetProjectLimitsInput, p as UpdateBigqueryStorageBackendInput, pn as UpdateMaintainerInput, pt as AddUserFeatureBody, r as RegisterUiAppBody, rr as GetAllFeaturesQuery, s as GetStorageBackendProjectsQuery, st as SetProjectMetadataBody, tn as MaintainerInvitationPath, tr as FeatureProject, tt as RequestProjectAccessInput, ut as SetProjectReviewersPath, w as CreateProjectFeaturePath, wn as OrganizationDetail, wt as UserListItem, x as ChangeProjectUserRoleInput, xt as UpdateUserInput, y as AssignProjectTemplateFeatureInput, yt as SetUserMetadataInput, z as Project, zn as CreateFileStorageS3Body, zt as UpdateTopUpSettingBody } from "./types-DPl8pZsY.js";
|
|
4
4
|
//#region src/clients/management/managementClient.d.ts
|
|
5
5
|
type ManagementOpenApiFetchClient = ReturnType<typeof createOpenapiFetchClient<paths>>;
|
|
6
|
+
type ManagementGenericFetchClient = ReturnType<typeof createGenericFetchClient>;
|
|
6
7
|
type AuthStrategy = {
|
|
7
8
|
type: 'management-token';
|
|
8
9
|
token?: string;
|
|
@@ -901,6 +902,9 @@ declare const createManagementClient: ({ baseUrl, middlewares, auth, withAuthMid
|
|
|
901
902
|
removeProjectLimit: ({ projectId, limitName }: RemoveProjectLimitPath) => Promise<void>;
|
|
902
903
|
deleteProjectMetadata: ({ projectId, metadataId }: DeleteProjectMetadataPath) => Promise<void>;
|
|
903
904
|
};
|
|
905
|
+
programmaticProjects: {
|
|
906
|
+
confirm: (payload: ConfirmProgrammaticProjectPayload, signal?: AbortSignal) => Promise<ConfirmProgrammaticProjectResult>;
|
|
907
|
+
};
|
|
904
908
|
storageBackends: {
|
|
905
909
|
getStorageBackend: (id: number, signal?: AbortSignal) => Promise<StorageBackend>;
|
|
906
910
|
getStorageBackends: (signal?: AbortSignal) => Promise<StorageBackend[]>;
|
|
@@ -1104,5 +1108,5 @@ declare const createManagementClient: ({ baseUrl, middlewares, auth, withAuthMid
|
|
|
1104
1108
|
//#region src/clients/management/authMiddleware.d.ts
|
|
1105
1109
|
declare const isManagementClientAuthError: (error: unknown) => error is ManagementClientAuthError;
|
|
1106
1110
|
//#endregion
|
|
1107
|
-
export { createManagementClient as i, AuthStrategy as n,
|
|
1108
|
-
//# sourceMappingURL=index-
|
|
1111
|
+
export { createManagementClient as a, ManagementOpenApiFetchClient as i, AuthStrategy as n, ManagementGenericFetchClient as r, isManagementClientAuthError as t };
|
|
1112
|
+
//# sourceMappingURL=index-BK-qHT39.d.ts.map
|
|
@@ -4,32 +4,33 @@ import { n as ClientInitOptions } from "./types-_RhBCj4_.cjs";
|
|
|
4
4
|
import { C as components$1, S as RunId, b as GetDeploymentsQuery, 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 GetLogsTailQuery, y as GetAppsQuery } from "./types-DXskkNp8.cjs";
|
|
5
5
|
import { t as LogEntry } from "./appLogs-D5A13Y0y.cjs";
|
|
6
6
|
import { r as createAuthClient } from "./authClient-CTHNs6Tq.cjs";
|
|
7
|
+
import { a as DashboardId, o as DashboardInput } from "./businessWorkspaceApiClient-CRM1U8b-.cjs";
|
|
7
8
|
import { C as Vote, O as components$2, _ as ToolsListResponse, b as UsageResponse, d as GetVotesQuery, l as GetChatPath, o as ChatRequest, t as AgentSettings, u as GetHistoryQuery, v as UpdateAgentSettingsRequest, w as VoteRequest, x as UserAgentSettings, y as UpdateUserAgentSettingsRequest } from "./types-bGQb4Jtl.cjs";
|
|
8
9
|
import { d as SuggestionsApiResponse, f as SuggestionsRequestBody } from "./suggestions-BH3x7xU7.cjs";
|
|
9
10
|
import { _ as PatchDataAppPath, a as DeleteSandboxPath, c as GetDataAppLogsTailPath, d as GetDataAppPath, f as GetDataAppRunPath, g as PatchDataAppBody, h as GetSandboxPath, i as DeleteDataAppPath, l as GetDataAppLogsTailQuery, m as GetDataAppRunsQuery, o as GetAppsQuery$1, p as GetDataAppRunsPath, s as GetDataAppLogsDownloadPath, t as CreateDataAppBody, u as GetDataAppPasswordPath, y as ResetDataAppPasswordPath } from "./types-DZk3XHiN.cjs";
|
|
10
11
|
import "./index-DppA4k3b.cjs";
|
|
11
12
|
import { C as components$3, a as GetSqlSessionTableDdlPath, c as PostSqlRunQueryBody, d as PostSqlSessionLoadPath, f as PostSqlSessionUnloadBody, h as PostSqlTablePreviewPath, i as GetSqlSessionSchemaQuery, l as PostSqlRunQueryPath, m as PostSqlTablePreviewBody, n as GetSqlSessionPath, o as GetSqlSessionTableDdlQuery, p as PostSqlSessionUnloadPath, r as GetSqlSessionSchemaPath, s as GetSqlSessionsQuery, t as CreateSqlSessionBody, u as PostSqlSessionLoadBody } from "./types-COL1kVEB.cjs";
|
|
12
|
-
import { t as ServiceId } from "./serviceIds-
|
|
13
|
-
import { g as paths, h as components$4, i as GetTokenEventsInput, l as StorageToken, p as UpdateTokenInput, s as ShareTokenInput, t as CreateTokenBody } from "./types-
|
|
14
|
-
import { $ as ConfigurationRowVersionDetailPath, $i as DeleteTablesInput, $r as CreateEventInput, $t as ConfigurationDiff, A as GetJobsQuery, Aa as TableDetail, Ao as CreateBucketBody, Ar as CreateDevBranchBody, At as CreateConfigurationWorkspaceInput, Bn as DeleteConfigurationRowInput, C as CreateTriggerBody, Cn as SearchComponentConfigurationsInput, Co as Bucket, Ct as GetConfigurationMetadataPath, D as UpdateTriggerInput, Dn as UpdateConfigurationInput, Ea as SetAliasTableFilterInput, F as StorageJobStatus, Fn as CreateConfigurationRowInput, Fo as GetBucketOwnerInput, Ft as Component, G as MergeRequestDetailWithActivityLog, Ga as CreateBucketListingInput, Gi as DeleteTableMetadataInput, Gr as File, Gt as GetComponentsInput, I as CreateMergeRequestBody, Ir as SaveDevBranchMetadataInput, Jn as UpdateConfigurationRowInput, Jo as UpdateBucketOwnerInput, Jr as GetFilesQuery, Kn as Row, Ko as UpdateBucketInput, Kr as GetFileContentPath, Li as CreateTableAsyncInput, M as Job, Mn as UpdateConfigurationStateInput, Mo as DeleteBucketAsyncInput, Mr as DeleteDevBranchMetadataPath, N as JobOperation, No as DeleteBucketMetadataInput, Nt as GetConfigurationWorkspacesPath, Oi as RemoveTablePrimaryKeyInput, On as UpdateConfigurationResult, Ot as ConfigurationUseCaseType, P as JobUnion, Pn as CreateConfigurationRowBody, Po as GetBucketInput, Pr as DevBranch, Q as ConfigurationRowVersionDetail, Qn as UpdateConfigurationRowStateInput, Qt as ConfigType, Ra as UpdateTableDefinitionInput, Rn as CreateConfigurationRowsInput, Ro as GetBucketsInput, Rr as UpdateDevBranchInput, Sa as SaveTableMetadataInput, Sn as SearchComponentConfiguration, Sr as WorkspaceInputMappingLoadPreviewInput, St as DeleteConfigurationMetadataPath, T as Trigger, Ti as DeleteTableColumnInput, To as BucketDetail, Tt as SaveConfigurationMetadataInput, Un as DeleteConfigurationRowsInput, Uo as SaveBucketMetadataInput, Ur as DeleteFilePath, Ut as GetComponentPath, Va as UpdateTableInput, Vi as CreateTableDefinitionInput, Vr as AddFileTagInput, W as MergeRequestDetail, Wa as CreateBucketListingBody, Wi as DeleteTableInput, Wn as GetConfigurationRowInput, Wr as DeleteFileTagPath, Xa as UpdateBucketListingBody, Xr as PrepareFileBody, Xt as BaseComponentConfig, Y as UpdateMergeRequestInput, Ya as Subscriber, Yi as DeleteTableRowsInput, Z as ConfigurationRowVersion, Za as UpdateBucketListingInput, Zo as BucketRegistrationGuideQuery, Zt as ComponentConfig, _a as PreviewData, _i as AddTableColumnInput, _n as RebaseConfigurationInput, a as Service, an as ConfigurationPath, ao as ShareBucketToOrganizationInput, ar as DeleteWorkspacePath, at as ConfigurationVersionDetailPath, bo as SharedBucketsQuery, c as RunIdStats, ci as GetEventsInput, cr as GetWorkspacePath, d as CreateSnapshotInput, di as GetTableEventsInput, dn as GetConfigurationsPath, dr as ResetWorkspacePassword, ea as ExportAsyncInput, eo as ForceUnlinkBucketInput, es as CreateScheduledRefreshInput, et as ConfigurationRowVersionPath, fr as ResetWorkspacePasswordPath, gr as UnloadWorkspaceInput, gt as RollbackConfigurationRowToVersionInput, ho as ShareBucketToUsersInput, ii as GetBucketEventsInput, is as RegisterBucketBody, it as ConfigurationVersionDetail, ja as TableExportAsyncBody, ji as CreateAliasTableInput, k as GetJobPath, ka as Table, ki as SaveColumnMetadataInput, kr as WorkspaceSaml2Login, la as GetTablesInput, lr as GetWorkspaceSaml2LoginPath, m as Snapshot, mi as StorageEvent, mn as PurgeConfigurationsInput, mt as CopyConfigurationRowFromVersionInput, n as GetStackInfoQuery, ni as CreatedEvent, ns as RefreshExternalBucketInput, o as StackComponent, oo as ShareBucketToOrganizationProjectInput, or as DeleteWorkspacesInput, ot as ConfigurationVersionPath, p as GetTableSnapshotsInput, pa as ImportAsyncInput, pn as PurgeConfigurationInput, pr as SetWorkspacePublicInput, qr as GetFilePath, ra as GetDataPreviewInput, ro as LinkBucketBody, rr as DeleteWorkspaceObjectInput, rs as RefreshExternalBucketQuery, rt as ConfigurationVersion, s as StackInfo, sa as GetTableInput, si as GetEventPath, sn as CreateConfigurationInput, sr as GetWorkspaceObjectsPath, tn as ConfigurationDiffPath, un as DeleteConfigurationInput, uo as ShareBucketToProjectsInput, ur as GetWorkspacesPath, ut as CopyConfigurationFromVersionInput, v as GlobalSearchQuery, va as PullTableAsyncInput, vt as RollbackConfigurationToVersionInput, w as GetTriggersQuery, wi as DeleteColumnMetadataInput, x as SearchTablesQuery, xi as CreateTablePrimaryKeyInput, xn as RebaseConfigurationToDeletedInput, xo as UnshareBucketInput, y as GlobalSearchResponse, yr as Workspace } from "./types-
|
|
15
|
-
import { a as EncryptQuery, s as ScopedSecrets } from "./types-
|
|
13
|
+
import { t as ServiceId } from "./serviceIds-DC-H6ZD9.cjs";
|
|
14
|
+
import { g as paths, h as components$4, i as GetTokenEventsInput, l as StorageToken, p as UpdateTokenInput, s as ShareTokenInput, t as CreateTokenBody } from "./types-DOyNe7oe.cjs";
|
|
15
|
+
import { $ as ConfigurationRowVersionDetailPath, $i as DeleteTablesInput, $r as CreateEventInput, $t as ConfigurationDiff, A as GetJobsQuery, Aa as TableDetail, Ao as CreateBucketBody, Ar as CreateDevBranchBody, At as CreateConfigurationWorkspaceInput, Bn as DeleteConfigurationRowInput, C as CreateTriggerBody, Cn as SearchComponentConfigurationsInput, Co as Bucket, Ct as GetConfigurationMetadataPath, D as UpdateTriggerInput, Dn as UpdateConfigurationInput, Ea as SetAliasTableFilterInput, F as StorageJobStatus, Fn as CreateConfigurationRowInput, Fo as GetBucketOwnerInput, Ft as Component, G as MergeRequestDetailWithActivityLog, Ga as CreateBucketListingInput, Gi as DeleteTableMetadataInput, Gr as File, Gt as GetComponentsInput, I as CreateMergeRequestBody, Ir as SaveDevBranchMetadataInput, Jn as UpdateConfigurationRowInput, Jo as UpdateBucketOwnerInput, Jr as GetFilesQuery, Kn as Row, Ko as UpdateBucketInput, Kr as GetFileContentPath, Li as CreateTableAsyncInput, M as Job, Mn as UpdateConfigurationStateInput, Mo as DeleteBucketAsyncInput, Mr as DeleteDevBranchMetadataPath, N as JobOperation, No as DeleteBucketMetadataInput, Nt as GetConfigurationWorkspacesPath, Oi as RemoveTablePrimaryKeyInput, On as UpdateConfigurationResult, Ot as ConfigurationUseCaseType, P as JobUnion, Pn as CreateConfigurationRowBody, Po as GetBucketInput, Pr as DevBranch, Q as ConfigurationRowVersionDetail, Qn as UpdateConfigurationRowStateInput, Qt as ConfigType, Ra as UpdateTableDefinitionInput, Rn as CreateConfigurationRowsInput, Ro as GetBucketsInput, Rr as UpdateDevBranchInput, Sa as SaveTableMetadataInput, Sn as SearchComponentConfiguration, Sr as WorkspaceInputMappingLoadPreviewInput, St as DeleteConfigurationMetadataPath, T as Trigger, Ti as DeleteTableColumnInput, To as BucketDetail, Tt as SaveConfigurationMetadataInput, Un as DeleteConfigurationRowsInput, Uo as SaveBucketMetadataInput, Ur as DeleteFilePath, Ut as GetComponentPath, Va as UpdateTableInput, Vi as CreateTableDefinitionInput, Vr as AddFileTagInput, W as MergeRequestDetail, Wa as CreateBucketListingBody, Wi as DeleteTableInput, Wn as GetConfigurationRowInput, Wr as DeleteFileTagPath, Xa as UpdateBucketListingBody, Xr as PrepareFileBody, Xt as BaseComponentConfig, Y as UpdateMergeRequestInput, Ya as Subscriber, Yi as DeleteTableRowsInput, Z as ConfigurationRowVersion, Za as UpdateBucketListingInput, Zo as BucketRegistrationGuideQuery, Zt as ComponentConfig, _a as PreviewData, _i as AddTableColumnInput, _n as RebaseConfigurationInput, a as Service, an as ConfigurationPath, ao as ShareBucketToOrganizationInput, ar as DeleteWorkspacePath, at as ConfigurationVersionDetailPath, bo as SharedBucketsQuery, c as RunIdStats, ci as GetEventsInput, cr as GetWorkspacePath, d as CreateSnapshotInput, di as GetTableEventsInput, dn as GetConfigurationsPath, dr as ResetWorkspacePassword, ea as ExportAsyncInput, eo as ForceUnlinkBucketInput, es as CreateScheduledRefreshInput, et as ConfigurationRowVersionPath, fr as ResetWorkspacePasswordPath, gr as UnloadWorkspaceInput, gt as RollbackConfigurationRowToVersionInput, ho as ShareBucketToUsersInput, ii as GetBucketEventsInput, is as RegisterBucketBody, it as ConfigurationVersionDetail, ja as TableExportAsyncBody, ji as CreateAliasTableInput, k as GetJobPath, ka as Table, ki as SaveColumnMetadataInput, kr as WorkspaceSaml2Login, la as GetTablesInput, lr as GetWorkspaceSaml2LoginPath, m as Snapshot, mi as StorageEvent, mn as PurgeConfigurationsInput, mt as CopyConfigurationRowFromVersionInput, n as GetStackInfoQuery, ni as CreatedEvent, ns as RefreshExternalBucketInput, o as StackComponent, oo as ShareBucketToOrganizationProjectInput, or as DeleteWorkspacesInput, ot as ConfigurationVersionPath, p as GetTableSnapshotsInput, pa as ImportAsyncInput, pn as PurgeConfigurationInput, pr as SetWorkspacePublicInput, qr as GetFilePath, ra as GetDataPreviewInput, ro as LinkBucketBody, rr as DeleteWorkspaceObjectInput, rs as RefreshExternalBucketQuery, rt as ConfigurationVersion, s as StackInfo, sa as GetTableInput, si as GetEventPath, sn as CreateConfigurationInput, sr as GetWorkspaceObjectsPath, tn as ConfigurationDiffPath, un as DeleteConfigurationInput, uo as ShareBucketToProjectsInput, ur as GetWorkspacesPath, ut as CopyConfigurationFromVersionInput, v as GlobalSearchQuery, va as PullTableAsyncInput, vt as RollbackConfigurationToVersionInput, w as GetTriggersQuery, wi as DeleteColumnMetadataInput, x as SearchTablesQuery, xi as CreateTablePrimaryKeyInput, xn as RebaseConfigurationToDeletedInput, xo as UnshareBucketInput, y as GlobalSearchResponse, yr as Workspace } from "./types-CmF3pR2n.cjs";
|
|
16
|
+
import { a as EncryptQuery, s as ScopedSecrets } from "./types-D_j2Uq5X.cjs";
|
|
16
17
|
import { n as WriteTableInput, t as UploadFileInput } from "./types-BEe50G2r.cjs";
|
|
17
|
-
import {
|
|
18
|
-
import { n as SpendCapsView, t as SpendCapMember } from "./kaiAgentClient-
|
|
19
|
-
import {
|
|
18
|
+
import { c as GetChatPath$1, d as UsageResponse$1, f as VoteRequest$1, i as ChatRequest$1, l as GetHistoryQuery$1, n as ArtifactListResponse, o as GetArtifactPath, r as ArtifactResponse, s as GetArtifactsQuery, t as ApprovalBody, u as GetVotesQuery$1 } from "./types-Crhy0c9m.cjs";
|
|
19
|
+
import { n as SpendCapsView, t as SpendCapMember } from "./kaiAgentClient-CHpULyeG.cjs";
|
|
20
|
+
import { a as createManagementClient } from "./index-CWoEnDJ_.cjs";
|
|
20
21
|
import { D as components$5, S as ReplaceTargetProjectsInput, T as UpdateMetaObjectInput, c as DeleteMetaObjectRevisionPath, d as GetMetaObjectRevisionsPath, f as GetMetaObjectsPath, g as MetaStoreObjectResponse, h as MetaStoreListResponse, i as CreateMetaObjectInput, l as GetMetaObjectPath, n as GetVersionedSchemaPath, p as MetaObject, s as DeleteMetaObjectPath, t as GetSchemaPath, u as GetMetaObjectRevisionPath, y as ReplaceMetaObjectInput } from "./types-Cz83RiVu.cjs";
|
|
21
22
|
import { a as SubscriptionId, n as ListSubscriptionsQuery, s as components$6, t as CreateSubscriptionBody } from "./types-DNxOHnZI.cjs";
|
|
22
23
|
import { a as CredentialInput, r as CreateCredentialInput, s as GetCredentialsInput } from "./types-N3EChotg.cjs";
|
|
23
24
|
import { h as components$7, m as TablesLineageResponse, n as GetTablesLineageQuery, t as GetProjectsLineageQuery } from "./types-DqxIx9Pi.cjs";
|
|
24
25
|
import { a as GetQueryJobPath, c as JobStatusResponse, d as PostQueryPath, h as components$8, i as GetQueriesPath, l as PostCancelQueryJobPath, n as GetExportResultsQuery, o as GetQueryResultsPath, p as QueryResult, r as GetQueriesHistoryQuery, s as GetQueryResutsQuery, t as ExportResultsResponse, u as PostQueryBody } from "./types-3eUgOA7I.cjs";
|
|
25
26
|
import { n as Listener, t as Emitter } from "./emitter-dLF1Fyfg.cjs";
|
|
26
|
-
import { t as Project } from "./project-
|
|
27
|
+
import { t as Project } from "./project-BRpzv3yE.cjs";
|
|
27
28
|
import { r as createStorageTable } from "./index-BMqLPS6S.cjs";
|
|
28
29
|
import { n as KeboolaObjectId } from "./index-NC1dXRTD.cjs";
|
|
29
30
|
import { a as TagWithBindings, i as TagData, o as UpdateMetaObjectMetaDataInput, t as CreateMetaObjectMetaDataInput } from "./types-BOqD3Hqy.cjs";
|
|
30
31
|
import { D as UpdateSemanticObjectMeta, _ as SemanticModelData, a as SemanticChildObjectType, b as SemanticObjectType, g as SemanticModelChildRef, i as SemanticChildObjectDataMap, m as SemanticMetricData, o as SemanticConstraintData, p as SemanticGlossaryData, t as CreateSemanticObjectMeta, u as SemanticDatasetData, v as SemanticObject, x as SemanticRelationshipData } from "./types-fX4gbxfV.cjs";
|
|
31
32
|
import { a as GetVariablesQuery, i as GetVariablesByBranchId, n as CreateVariableBody, o as VariableWithHash, r as DeleteVariablePath } from "./types-M46WuBSm.cjs";
|
|
32
|
-
import { s as EncryptionCtx } from "./index-
|
|
33
|
+
import { s as EncryptionCtx } from "./index-DVw4Av4b.cjs";
|
|
33
34
|
import { a as OrchestrationRerunPlanPath, c as SearchAllJobsQuery, d as SearchJobsQuery, l as SearchGroupedJobsQuery, n as GetQueueJobPath, p as components$9, r as KillJobPath, t as CreateJobBody } from "./types-BQvv4RaI.cjs";
|
|
34
35
|
import { a as SchedulePath, n as ConfigurationPath$1, r as GetSchedulesQuery, t as ActivateScheduleBody } from "./types-BW2BXUB4.cjs";
|
|
35
36
|
import { C as UpdateSinkSettingsRequestBody, E as components$10, S as UpdateSinkRequestBody, T as UpdateSourceSettingsRequestBody, d as SinkStatisticsFilesQuery, n as CreateSourceRequestBody, o as PaginationQuery, r as DeleteSourceQuery, t as CreateSinkRequestBody, w as UpdateSourceRequestBody, x as TestSourceQuery } from "./types-BsxLGDoC.cjs";
|
|
@@ -62,6 +63,23 @@ declare class QueryJobError extends Error {
|
|
|
62
63
|
}
|
|
63
64
|
declare const isQueryJobError: (error: unknown) => error is QueryJobError;
|
|
64
65
|
//#endregion
|
|
66
|
+
//#region src/errors/readableReason.d.ts
|
|
67
|
+
/**
|
|
68
|
+
* The part of a failure worth putting in front of a reader, or `undefined` when there is none.
|
|
69
|
+
*
|
|
70
|
+
* - A plain `ApiError`'s `message` is a status line ("502 Bad Gateway") — addressed to whoever reads
|
|
71
|
+
* the error report, and no help to someone deciding what to do next. It is never returned; the
|
|
72
|
+
* service's own sentence is read from the parsed body instead.
|
|
73
|
+
* - Every other error's message *is* a reason, and is returned as-is: a network failure says so in
|
|
74
|
+
* words, and an `ApiError` subclass carries wording written for exactly this spot ("The session
|
|
75
|
+
* has most likely expired").
|
|
76
|
+
*
|
|
77
|
+
* `undefined` is the caller's cue to render its own wording. Branching on an empty `message`
|
|
78
|
+
* cannot do that job — a status line is never empty, so such a test silently stops firing and the
|
|
79
|
+
* reader gets the status number instead of the sentence written for them.
|
|
80
|
+
*/
|
|
81
|
+
declare const readableReason: (error: unknown) => string | undefined;
|
|
82
|
+
//#endregion
|
|
65
83
|
//#region src/errors/QueryJobTimeoutError.d.ts
|
|
66
84
|
/**
|
|
67
85
|
* A query job that never reached a terminal state within the caller's `maxWaitTime` — the job may
|
|
@@ -3747,7 +3765,7 @@ type RegisteredComponentId = InferComponentId<typeof registry>;
|
|
|
3747
3765
|
* Service clients reached through the registry — the key is the `clientName`
|
|
3748
3766
|
* the user accesses them by (e.g. `api.dataScience`), not the `serviceId`.
|
|
3749
3767
|
*/
|
|
3750
|
-
type ServiceClientName = 'vault' | 'dataScience' | 'apps' | 'encryption' | 'editor' | 'syncActions' | 'telemetry' | 'queryService' | 'queue' | 'chat' | 'ai' | 'import' | 'kaiAgent' | 'oauth' | 'omnisearch' | 'stream' | 'notifications' | 'scheduler' | 'metastore' | 'billing';
|
|
3768
|
+
type ServiceClientName = 'vault' | 'dataScience' | 'apps' | 'encryption' | 'editor' | 'syncActions' | 'telemetry' | 'queryService' | 'queue' | 'chat' | 'ai' | 'import' | 'kaiAgent' | 'businessWorkspaceApi' | 'oauth' | 'omnisearch' | 'stream' | 'notifications' | 'scheduler' | 'metastore' | 'billing';
|
|
3751
3769
|
/** Clients instantiated directly (not stack-discovered), keyed by their property name. */
|
|
3752
3770
|
type NonServiceClientName = 'storage' | 'management' | 'auth';
|
|
3753
3771
|
type MiddlewareTarget = ServiceClientName | NonServiceClientName;
|
|
@@ -14329,11 +14347,66 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
|
|
|
14329
14347
|
};
|
|
14330
14348
|
}>;
|
|
14331
14349
|
};
|
|
14350
|
+
businessWorkspaceApi: {
|
|
14351
|
+
healthCheck: (signal?: AbortSignal) => Promise<{
|
|
14352
|
+
status: 'ok';
|
|
14353
|
+
}>;
|
|
14354
|
+
getDashboards: (signal?: AbortSignal) => Promise<{
|
|
14355
|
+
id: string;
|
|
14356
|
+
ownerUserId: number;
|
|
14357
|
+
primaryProjectId: number;
|
|
14358
|
+
sourceProjectIds: number[];
|
|
14359
|
+
title: string;
|
|
14360
|
+
description: string | null;
|
|
14361
|
+
createdAt: string;
|
|
14362
|
+
updatedAt: string;
|
|
14363
|
+
}[]>;
|
|
14364
|
+
getDashboard: (id: DashboardId, signal?: AbortSignal) => Promise<{
|
|
14365
|
+
id: string;
|
|
14366
|
+
ownerUserId: number;
|
|
14367
|
+
primaryProjectId: number;
|
|
14368
|
+
sourceProjectIds: number[];
|
|
14369
|
+
title: string;
|
|
14370
|
+
description: string | null;
|
|
14371
|
+
spec: {
|
|
14372
|
+
[key: string]: unknown;
|
|
14373
|
+
};
|
|
14374
|
+
createdAt: string;
|
|
14375
|
+
updatedAt: string;
|
|
14376
|
+
}>;
|
|
14377
|
+
createDashboard: (input: DashboardInput, signal?: AbortSignal) => Promise<{
|
|
14378
|
+
id: string;
|
|
14379
|
+
ownerUserId: number;
|
|
14380
|
+
primaryProjectId: number;
|
|
14381
|
+
sourceProjectIds: number[];
|
|
14382
|
+
title: string;
|
|
14383
|
+
description: string | null;
|
|
14384
|
+
spec: {
|
|
14385
|
+
[key: string]: unknown;
|
|
14386
|
+
};
|
|
14387
|
+
createdAt: string;
|
|
14388
|
+
updatedAt: string;
|
|
14389
|
+
}>;
|
|
14390
|
+
updateDashboard: (id: DashboardId, input: DashboardInput, signal?: AbortSignal) => Promise<{
|
|
14391
|
+
id: string;
|
|
14392
|
+
ownerUserId: number;
|
|
14393
|
+
primaryProjectId: number;
|
|
14394
|
+
sourceProjectIds: number[];
|
|
14395
|
+
title: string;
|
|
14396
|
+
description: string | null;
|
|
14397
|
+
spec: {
|
|
14398
|
+
[key: string]: unknown;
|
|
14399
|
+
};
|
|
14400
|
+
createdAt: string;
|
|
14401
|
+
updatedAt: string;
|
|
14402
|
+
}>;
|
|
14403
|
+
deleteDashboard: (id: DashboardId, signal?: AbortSignal) => Promise<void>;
|
|
14404
|
+
};
|
|
14332
14405
|
chat: {
|
|
14333
14406
|
healthCheck: (signal?: AbortSignal) => Promise<{
|
|
14334
14407
|
timestamp: string;
|
|
14335
14408
|
}>;
|
|
14336
|
-
getHistory: (params?: GetHistoryQuery) => Promise<{
|
|
14409
|
+
getHistory: (params?: GetHistoryQuery, signal?: AbortSignal) => Promise<{
|
|
14337
14410
|
chats: components$2['schemas']['Chat'][];
|
|
14338
14411
|
hasMore: boolean;
|
|
14339
14412
|
}>;
|
|
@@ -14780,7 +14853,7 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
|
|
|
14780
14853
|
};
|
|
14781
14854
|
kaiAgent: {
|
|
14782
14855
|
healthCheck: (signal?: AbortSignal) => Promise<unknown>;
|
|
14783
|
-
getHistory: (params?: GetHistoryQuery$1) => Promise<{
|
|
14856
|
+
getHistory: (params?: GetHistoryQuery$1, signal?: AbortSignal) => Promise<{
|
|
14784
14857
|
chats: {
|
|
14785
14858
|
id?: string;
|
|
14786
14859
|
title?: string;
|
|
@@ -14877,6 +14950,8 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
|
|
|
14877
14950
|
}[]>;
|
|
14878
14951
|
submitVote: (params: VoteRequest$1) => Promise<void>;
|
|
14879
14952
|
getUsage: (signal?: AbortSignal) => Promise<UsageResponse$1>;
|
|
14953
|
+
getArtifacts: (chatId: GetArtifactsQuery['chatId'], signal?: AbortSignal) => Promise<ArtifactListResponse>;
|
|
14954
|
+
getArtifact: (artifactId: GetArtifactPath['id'], signal?: AbortSignal) => Promise<ArtifactResponse>;
|
|
14880
14955
|
approveToolCall: (chatId: string, body: ApprovalBody) => Promise<void>;
|
|
14881
14956
|
submitToolOutput: (chatId: string, body: {
|
|
14882
14957
|
toolUseId: string;
|
|
@@ -14886,6 +14961,9 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
|
|
|
14886
14961
|
stopChat: (chatId: string) => Promise<{
|
|
14887
14962
|
stopped: boolean;
|
|
14888
14963
|
}>;
|
|
14964
|
+
prepareChat: (chatId: string, signal?: AbortSignal) => Promise<{
|
|
14965
|
+
started: boolean;
|
|
14966
|
+
}>;
|
|
14889
14967
|
getSuggestions: (request: SuggestionsRequestBody, signal?: AbortSignal) => Promise<SuggestionsApiResponse>;
|
|
14890
14968
|
getAgentSettings: (signal?: AbortSignal) => Promise<{
|
|
14891
14969
|
projectId: string;
|
|
@@ -17417,5 +17495,5 @@ declare const createQueryServiceClient: ({ baseUrl, middlewares, auth }: ClientI
|
|
|
17417
17495
|
exportResults: (queryJobId: GetQueryResultsPath['queryJobId'], statementId: GetQueryResultsPath['statementId'], query: GetExportResultsQuery, signal?: AbortSignal) => Promise<ExportResultsResponse>;
|
|
17418
17496
|
};
|
|
17419
17497
|
//#endregion
|
|
17420
|
-
export { createDerivedStore as $, LegacySession as A, delay as At, createStorageClient as B, KeboolaErrorType as Bt, LogLevel as C, poller as Ct, ResponseLog as D, PollResult as Dt, RequestLog as E, PollOptions as Et, ProjectClients as F, collect as Ft, createMemoryStorage as G, SyncActionError as Gt, createPersistor as H, ClientContext as Ht, RegisteredComponentId as I, coalesce as It, deepMerge as J, QueryJobTimeoutError as Jt, createNullStorage as K, isSyncActionError as Kt, registry as L, TaskFn as Lt, createKeboola as M, ConcurrentOptions as Mt, KeboolaOptions as N, concurrent as Nt, createLoggingMiddleware as O, PollTick as Ot, KeboolaApi as P, CollectOptions as Pt, createDerivedAsyncStore as Q,
|
|
17421
|
-
//# sourceMappingURL=index-
|
|
17498
|
+
export { createDerivedStore as $, UserError as $t, LegacySession as A, delay as At, createStorageClient as B, KeboolaErrorType as Bt, LogLevel as C, poller as Ct, ResponseLog as D, PollResult as Dt, RequestLog as E, PollOptions as Et, ProjectClients as F, collect as Ft, createMemoryStorage as G, SyncActionError as Gt, createPersistor as H, ClientContext as Ht, RegisteredComponentId as I, coalesce as It, deepMerge as J, QueryJobTimeoutError as Jt, createNullStorage as K, isSyncActionError as Kt, registry as L, TaskFn as Lt, createKeboola as M, ConcurrentOptions as Mt, KeboolaOptions as N, concurrent as Nt, createLoggingMiddleware as O, PollTick as Ot, KeboolaApi as P, CollectOptions as Pt, createDerivedAsyncStore as Q, isQueryJobError as Qt, GenericFetchClient as R, assert as Rt, Log as S, poll as St, LoggingOptions as T, PollKey as Tt, StorageAdapter as U, isStorageTokenMutatingRequest as Ut, Persistor as V, isKeboolaError as Vt, createLocalStorage as W, createDefaultBranch as Wt, isPlainObject as X, readableReason as Xt, isEmptyDeep as Y, isQueryJobTimeoutError as Yt, AsyncState as Z, QueryJobError as Zt, toBackendSubscribers as _, Poller as _t, parseCurrentDevBranchIdFromUrl as a, Failure as at, RetryOptions as b, emitter as bt, removeBranchFromUrl as c, asError as ct, constructFQID as d, PollRegistry as dt, shallowEqual as et, parseFQID as f, createPollRegistry as ft, fromBackendSubscribers as g, PollTask as gt, createStorageSdk as h, PollState as ht, createQueryServiceSdk as i, generateUUID as it, createLegacyKeboola as j, dedupe as jt, BearerSession as k, lazy as kt, FQID_TYPES as l, series as lt, tableIdParser as m, PollSnapshot as mt, ExecuteQueryOptions as n, Store as nt, parseDevBranchId as o, Result as ot, parse as p, ObservedPoller as pt, createSessionStorage as q, ServiceUnavailableError as qt, WaitForJobOptions as r, createStore as rt, prefixTagsWithDevBranchId as s, Success as st, createQueryServiceClient as t, ReadableStore as tt, ParsedFQID as u, PollEntry as ut, jobStatus as v, PollerStartFn as vt, Logger as w, PollContext as wt, createRetryMiddleware as x, failureOf as xt, KeboolaHttpHeader as y, PollerStopFn as yt, StorageOpenApiFetchClient as z, KeboolaError as zt };
|
|
17499
|
+
//# sourceMappingURL=index-CHXnJQ9s.d.cts.map
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { D as MiddlewareFn, S as ManagementClientAuthError, t as createOpenapiFetchClient } from "./index-V7XKUQm9.cjs";
|
|
1
|
+
import { D as MiddlewareFn, S as ManagementClientAuthError, t as createOpenapiFetchClient, u as createGenericFetchClient } from "./index-V7XKUQm9.cjs";
|
|
2
2
|
import { n as ClientInitOptions } from "./types-_RhBCj4_.cjs";
|
|
3
|
-
import { $ as RemoveProjectUserPath, $n as
|
|
3
|
+
import { $ as RemoveProjectUserPath, $n as Feature, $t as MaintainerDetail, A as GetProjectPath, At as ConfirmProgrammaticProjectResult, B as ProjectBase, C as CreateProjectFeatureBody, Ct as UserDetail, D as DeleteProjectInvitationPath, E as CreateProjectInvitationPath, En as OrganizationInvitationPath, Et as UserOrganizationMembership, F as ListProjectJoinRequestsPath, Ft as StripeCustomer, Gn as RotateFileStorageAbsInput, Hn as FileStorageGcs, I as ListProjectUsersPath, In as UpdateOrganizationInput, Jn as RotateFileStorageGcsInput, Jt as CreateMaintainerOrganizationInput, K as ProjectMetadataItem, Kt as CreateMaintainerInvitationInput, Ln as CreateFileStorageAbsBody, Lt as TopUpSetting, Mn as OrganizationUserPath, Mt as CreditPaymentRequest, N as JoinProjectInput, Nt as CreditPurchase, O as DeleteProjectMetadataPath, Ot as UserProjectMembership, P as ListProjectInvitationsPath, Pn as SetOrganizationMetadataInput, Pt as PayAsYouGoBillingConfiguration, Q as RemoveProjectTemplateFeaturePath, Qt as Maintainer, R as MoveProjectInput, Rn as CreateFileStorageGcsBody, Rt as UpdateStripeCustomerBody, Sn as CreateOrganizationProjectInput, St as User, T as CreateProjectInvitationBody, Tt as UserMaintainerMembership, Ut as CompleteSamlSetupInput, Vt as AddMaintainerUserInput, W as ProjectJoinRequestPath, Wt as CreateMaintainerBody, X as RemoveProjectFeaturePath, Xt as CreateSamlConfigInput, Z as RemoveProjectLimitPath, Zn as RotateFileStorageS3Input, _ as AddProjectUserPath, _n as AddOrganizationUserInput, _t as RemoveUserFeaturePath, a as CreateBigqueryStorageBackendBody, an as MaintainerUserPath, bn as CreateOrganizationInvitationInput, c as StorageBackend, cn as SamlConfigPath, ct as SetProjectMetadataPath, dn as SetMaintainerMetadataInput, dr as paths, er as FeatureAdmin, ft as UpdateProjectInput, g as AddProjectUserBody, gt as GetUsersQuery, h as UpdateStorageBackendInput, hn as UpdateSamlConfigInput, ht as DeleteUserMetadataPath, in as MaintainerUser, it as SetProjectDisabledInput, j as GetProjectReviewersPath, jt as CreatePaymentRequestBody, k as GetProjectMetadataPath, kn as OrganizationMetadataItemPath, kt as ConfirmProgrammaticProjectPayload, lt as SetProjectReviewersBody, mt as AddUserFeaturePath, n as ActivateUiAppVersionPath, nn as MaintainerMetadataItemPath, nt as Reviewer, o as CreateSnowflakeStorageBackendBody, on as MetadataItem, or as DeletedProjectsListQuery, ot as SetProjectLimitsInput, p as UpdateBigqueryStorageBackendInput, pn as UpdateMaintainerInput, pt as AddUserFeatureBody, r as RegisterUiAppBody, rr as GetAllFeaturesQuery, s as GetStorageBackendProjectsQuery, st as SetProjectMetadataBody, tn as MaintainerInvitationPath, tr as FeatureProject, tt as RequestProjectAccessInput, ut as SetProjectReviewersPath, w as CreateProjectFeaturePath, wn as OrganizationDetail, wt as UserListItem, x as ChangeProjectUserRoleInput, xt as UpdateUserInput, y as AssignProjectTemplateFeatureInput, yt as SetUserMetadataInput, z as Project, zn as CreateFileStorageS3Body, zt as UpdateTopUpSettingBody } from "./types-B-P4vQe0.cjs";
|
|
4
4
|
//#region src/clients/management/managementClient.d.ts
|
|
5
5
|
type ManagementOpenApiFetchClient = ReturnType<typeof createOpenapiFetchClient<paths>>;
|
|
6
|
+
type ManagementGenericFetchClient = ReturnType<typeof createGenericFetchClient>;
|
|
6
7
|
type AuthStrategy = {
|
|
7
8
|
type: 'management-token';
|
|
8
9
|
token?: string;
|
|
@@ -901,6 +902,9 @@ declare const createManagementClient: ({ baseUrl, middlewares, auth, withAuthMid
|
|
|
901
902
|
removeProjectLimit: ({ projectId, limitName }: RemoveProjectLimitPath) => Promise<void>;
|
|
902
903
|
deleteProjectMetadata: ({ projectId, metadataId }: DeleteProjectMetadataPath) => Promise<void>;
|
|
903
904
|
};
|
|
905
|
+
programmaticProjects: {
|
|
906
|
+
confirm: (payload: ConfirmProgrammaticProjectPayload, signal?: AbortSignal) => Promise<ConfirmProgrammaticProjectResult>;
|
|
907
|
+
};
|
|
904
908
|
storageBackends: {
|
|
905
909
|
getStorageBackend: (id: number, signal?: AbortSignal) => Promise<StorageBackend>;
|
|
906
910
|
getStorageBackends: (signal?: AbortSignal) => Promise<StorageBackend[]>;
|
|
@@ -1104,5 +1108,5 @@ declare const createManagementClient: ({ baseUrl, middlewares, auth, withAuthMid
|
|
|
1104
1108
|
//#region src/clients/management/authMiddleware.d.ts
|
|
1105
1109
|
declare const isManagementClientAuthError: (error: unknown) => error is ManagementClientAuthError;
|
|
1106
1110
|
//#endregion
|
|
1107
|
-
export { createManagementClient as i, AuthStrategy as n,
|
|
1108
|
-
//# sourceMappingURL=index-
|
|
1111
|
+
export { createManagementClient as a, ManagementOpenApiFetchClient as i, AuthStrategy as n, ManagementGenericFetchClient as r, isManagementClientAuthError as t };
|
|
1112
|
+
//# sourceMappingURL=index-CWoEnDJ_.d.cts.map
|
|
@@ -211,6 +211,14 @@ declare const stacks: {
|
|
|
211
211
|
continent: "europe";
|
|
212
212
|
isTesting: true;
|
|
213
213
|
};
|
|
214
|
+
DEV_US_EAST_1_AWS_E2E: {
|
|
215
|
+
id: string;
|
|
216
|
+
region: string;
|
|
217
|
+
host: string;
|
|
218
|
+
provider: "aws";
|
|
219
|
+
continent: "us";
|
|
220
|
+
isTesting: true;
|
|
221
|
+
};
|
|
214
222
|
DEV_US_EAST_2_AZURE: {
|
|
215
223
|
id: string;
|
|
216
224
|
region: string;
|
|
@@ -263,4 +271,4 @@ declare const URLS: {
|
|
|
263
271
|
};
|
|
264
272
|
//#endregion
|
|
265
273
|
export { STACKS as a, Provider as i, Continent as n, ProjectFeature as o, KeboolaStack as r, ComponentId as s, URLS as t };
|
|
266
|
-
//# sourceMappingURL=index-
|
|
274
|
+
//# sourceMappingURL=index-DBklbaTp.d.cts.map
|
|
@@ -211,6 +211,14 @@ declare const stacks: {
|
|
|
211
211
|
continent: "europe";
|
|
212
212
|
isTesting: true;
|
|
213
213
|
};
|
|
214
|
+
DEV_US_EAST_1_AWS_E2E: {
|
|
215
|
+
id: string;
|
|
216
|
+
region: string;
|
|
217
|
+
host: string;
|
|
218
|
+
provider: "aws";
|
|
219
|
+
continent: "us";
|
|
220
|
+
isTesting: true;
|
|
221
|
+
};
|
|
214
222
|
DEV_US_EAST_2_AZURE: {
|
|
215
223
|
id: string;
|
|
216
224
|
region: string;
|
|
@@ -263,4 +271,4 @@ declare const URLS: {
|
|
|
263
271
|
};
|
|
264
272
|
//#endregion
|
|
265
273
|
export { STACKS as a, Provider as i, Continent as n, ProjectFeature as o, KeboolaStack as r, ComponentId as s, URLS as t };
|
|
266
|
-
//# sourceMappingURL=index-
|
|
274
|
+
//# sourceMappingURL=index-DBklbaTp.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as ProjectId } from "./types-
|
|
2
|
-
import "./types-
|
|
3
|
-
import { t as createEncryptionClient } from "./index-
|
|
1
|
+
import { a as ProjectId } from "./types-DOyNe7oe.cjs";
|
|
2
|
+
import "./types-CmF3pR2n.cjs";
|
|
3
|
+
import { t as createEncryptionClient } from "./index-DWf6FXOr.cjs";
|
|
4
4
|
import { n as CreateVariableBody, o as VariableWithHash, t as AnyVariable } from "./types-M46WuBSm.cjs";
|
|
5
5
|
import { t as createVaultClient } from "./index-Dx52hNLP.cjs";
|
|
6
6
|
//#region src/sdks/vault/types.d.ts
|
|
@@ -74,4 +74,4 @@ declare const partitionByOauth: <T extends AnyVariable>(variables: T[]) => {
|
|
|
74
74
|
};
|
|
75
75
|
//#endregion
|
|
76
76
|
export { vaultRef as a, partitionByOauth as i, isVariableEncryptionRequired as n, createVaultSdk as o, isVariableOauth as r, EncryptionCtx as s, isSameVariable as t };
|
|
77
|
-
//# sourceMappingURL=index-
|
|
77
|
+
//# sourceMappingURL=index-DVw4Av4b.d.cts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as ClientInitOptions } from "./types-_RhBCj4_.cjs";
|
|
2
|
-
import { a as EncryptQuery, s as ScopedSecrets } from "./types-
|
|
2
|
+
import { a as EncryptQuery, s as ScopedSecrets } from "./types-D_j2Uq5X.cjs";
|
|
3
3
|
//#region src/clients/encryption/encryptionClient.d.ts
|
|
4
4
|
declare const createEncryptionClient: ({ baseUrl, middlewares }: Omit<ClientInitOptions, 'auth'>) => {
|
|
5
5
|
healthCheck: (signal?: AbortSignal) => Promise<unknown>;
|
|
@@ -13,4 +13,4 @@ declare const createEncryptionClient: ({ baseUrl, middlewares }: Omit<ClientInit
|
|
|
13
13
|
};
|
|
14
14
|
//#endregion
|
|
15
15
|
export { createEncryptionClient as t };
|
|
16
|
-
//# sourceMappingURL=index-
|
|
16
|
+
//# sourceMappingURL=index-DWf6FXOr.d.cts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as ProjectId } from "./types-
|
|
2
|
-
import "./types-
|
|
3
|
-
import { t as createEncryptionClient } from "./index-
|
|
1
|
+
import { a as ProjectId } from "./types-gi4Eay19.js";
|
|
2
|
+
import "./types-B95uNQ9o.js";
|
|
3
|
+
import { t as createEncryptionClient } from "./index-1r_CskjU.js";
|
|
4
4
|
import { n as CreateVariableBody, o as VariableWithHash, t as AnyVariable } from "./types-l9o4gFsI.js";
|
|
5
5
|
import { t as createVaultClient } from "./index-BuegqrS1.js";
|
|
6
6
|
//#region src/sdks/vault/types.d.ts
|
|
@@ -74,4 +74,4 @@ declare const partitionByOauth: <T extends AnyVariable>(variables: T[]) => {
|
|
|
74
74
|
};
|
|
75
75
|
//#endregion
|
|
76
76
|
export { vaultRef as a, partitionByOauth as i, isVariableEncryptionRequired as n, createVaultSdk as o, isVariableOauth as r, EncryptionCtx as s, isSameVariable as t };
|
|
77
|
-
//# sourceMappingURL=index-
|
|
77
|
+
//# sourceMappingURL=index-De5qUWhp.d.ts.map
|