@keboola/api-client 52.0.0 → 54.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 +33 -6
- package/API-SURFACE.md +5 -1
- package/CHANGELOG.md +39 -0
- package/README.md +1 -1
- package/dist/{admin-Di-MmGFP.cjs → admin-BZ7knTd0.cjs} +18 -2
- package/dist/admin-BZ7knTd0.cjs.map +1 -0
- package/dist/{admin-CbMOsfgs.js → admin-xFfHSZHQ.js} +13 -3
- package/dist/admin-xFfHSZHQ.js.map +1 -0
- package/dist/{componentId-DZP1rBix.js → componentId-Cps6WBy1.js} +1 -2
- package/dist/{componentId-DZP1rBix.js.map → componentId-Cps6WBy1.js.map} +1 -1
- package/dist/{componentId-olp0tltf.cjs → componentId-_tRhEv6W.cjs} +1 -2
- package/dist/{componentId-olp0tltf.cjs.map → componentId-_tRhEv6W.cjs.map} +1 -1
- package/dist/{configurations-WI8H4zLk.cjs → configurations-BM63ep1s.cjs} +2 -2
- package/dist/{configurations-WI8H4zLk.cjs.map → configurations-BM63ep1s.cjs.map} +1 -1
- package/dist/{configurations-Cd6Nsox-.js → configurations-BqvtIQm4.js} +2 -2
- package/dist/{configurations-Cd6Nsox-.js.map → configurations-BqvtIQm4.js.map} +1 -1
- package/dist/constants/index.cjs +4 -3
- package/dist/constants/index.d.cts +1 -1
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +3 -2
- package/dist/{constants-Dqi0ewGv.js → constants-DLPkpnGv.js} +4 -32
- package/dist/{constants-Dqi0ewGv.js.map → constants-DLPkpnGv.js.map} +1 -1
- package/dist/{constants-d0Do9NSN.cjs → constants-Day8CU5i.cjs} +3 -37
- package/dist/{constants-d0Do9NSN.cjs.map → constants-Day8CU5i.cjs.map} +1 -1
- package/dist/domain/permissions/index.cjs +4 -3
- package/dist/domain/permissions/index.d.cts +9 -1
- package/dist/domain/permissions/index.d.ts +9 -1
- package/dist/domain/permissions/index.js +4 -4
- package/dist/encryption/index.d.cts +1 -1
- package/dist/encryption/index.d.ts +1 -1
- package/dist/encryption/types.d.cts +1 -1
- package/dist/encryption/types.d.ts +1 -1
- package/dist/{index-Df8lZNSH.d.cts → index-B04rWq_0.d.cts} +2 -2
- package/dist/{index-B7el5pJU.d.cts → index-BtvWJBYh.d.cts} +20 -7
- package/dist/{index-B5rELADq.d.cts → index-Cd0naVic.d.cts} +2 -2
- package/dist/{index-CveF5RFQ.d.ts → index-DCfumWzq.d.ts} +2 -2
- package/dist/{index-81wn1jc3.d.cts → index-DX7qciZA.d.cts} +36 -2
- package/dist/{index-Dhyrg5zd.d.ts → index-DbStyQKc.d.ts} +2 -2
- package/dist/{index-C7JcNvbd.d.ts → index-Df30jjpZ.d.ts} +20 -7
- package/dist/{index-JoKfPQND.d.ts → index-DzqHh0lE.d.ts} +36 -2
- package/dist/index.cjs +9 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -7
- package/dist/management/index.cjs +1 -1
- package/dist/management/index.d.cts +1 -1
- package/dist/management/index.d.ts +1 -1
- 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-Cz5ut18k.js → management-BAfg8BmK.js} +45 -4
- package/dist/management-BAfg8BmK.js.map +1 -0
- package/dist/{management-CUXgB2rb.cjs → management-BuNIc7Mr.cjs} +45 -4
- package/dist/management-BuNIc7Mr.cjs.map +1 -0
- package/dist/metaObject-CSGF3d-o.js +53 -0
- package/dist/metaObject-CSGF3d-o.js.map +1 -0
- package/dist/metaObject-Ciyow2gr.cjs +64 -0
- package/dist/metaObject-Ciyow2gr.cjs.map +1 -0
- package/dist/metaObject-ClvW342q.d.ts +35 -0
- package/dist/metaObject-D7oudegV.d.cts +35 -0
- package/dist/oauth/index.cjs +2 -1
- package/dist/oauth/index.d.cts +34 -2
- package/dist/oauth/index.d.ts +34 -2
- package/dist/oauth/index.js +1 -1
- package/dist/oauth/types.d.cts +2 -2
- package/dist/oauth/types.d.ts +2 -2
- package/dist/{oauth-CSBChWuf.cjs → oauth-CXcrilOp.cjs} +47 -1
- package/dist/oauth-CXcrilOp.cjs.map +1 -0
- package/dist/{oauth-DOveZKUv.js → oauth-Ci0qeaS2.js} +43 -3
- package/dist/oauth-Ci0qeaS2.js.map +1 -0
- package/dist/{project-Onf-IcPW.cjs → project-BQ2oD6IW.cjs} +2 -2
- package/dist/{project-Onf-IcPW.cjs.map → project-BQ2oD6IW.cjs.map} +1 -1
- package/dist/{project-DmuC0bMK.js → project-aAVAOcmx.js} +2 -2
- package/dist/{project-DmuC0bMK.js.map → project-aAVAOcmx.js.map} +1 -1
- package/dist/queryService/index.d.cts +1 -1
- package/dist/queryService/index.d.ts +1 -1
- package/dist/queryService/types.d.cts +1 -1
- package/dist/queryService/types.d.ts +1 -1
- package/dist/queryService-B4h1Ez44.cjs +117 -0
- package/dist/queryService-B4h1Ez44.cjs.map +1 -0
- package/dist/queryService-DE_yE_S4.js +106 -0
- package/dist/queryService-DE_yE_S4.js.map +1 -0
- package/dist/queue/index.d.cts +1 -1
- package/dist/queue/index.d.ts +1 -1
- package/dist/readJwtClaims-CMZ3cNC_.js +28 -0
- package/dist/readJwtClaims-CMZ3cNC_.js.map +1 -0
- package/dist/readJwtClaims-SVJgo04x.cjs +33 -0
- package/dist/readJwtClaims-SVJgo04x.cjs.map +1 -0
- package/dist/sdk/configurations/index.cjs +2 -2
- package/dist/sdk/configurations/index.d.cts +2 -2
- package/dist/sdk/configurations/index.d.ts +2 -2
- package/dist/sdk/configurations/index.js +2 -2
- package/dist/sdk/dataAppServer/index.cjs +230 -0
- package/dist/sdk/dataAppServer/index.cjs.map +1 -0
- package/dist/sdk/dataAppServer/index.d.cts +55 -0
- package/dist/sdk/dataAppServer/index.d.ts +55 -0
- package/dist/sdk/dataAppServer/index.js +228 -0
- package/dist/sdk/dataAppServer/index.js.map +1 -0
- package/dist/sdk/developerPortal/index.cjs +3 -15
- package/dist/sdk/developerPortal/index.cjs.map +1 -1
- package/dist/sdk/developerPortal/index.js +3 -15
- package/dist/sdk/developerPortal/index.js.map +1 -1
- package/dist/sdk/queryService/index.cjs +3 -70
- package/dist/sdk/queryService/index.d.cts +2 -2
- package/dist/sdk/queryService/index.d.ts +2 -2
- package/dist/sdk/queryService/index.js +1 -70
- package/dist/sdk/securityPolicy/index.cjs +355 -0
- package/dist/sdk/securityPolicy/index.cjs.map +1 -0
- package/dist/sdk/securityPolicy/index.d.cts +100 -0
- package/dist/sdk/securityPolicy/index.d.ts +100 -0
- package/dist/sdk/securityPolicy/index.js +342 -0
- package/dist/sdk/securityPolicy/index.js.map +1 -0
- package/dist/sdk/securityPolicy/types.cjs +0 -0
- package/dist/sdk/securityPolicy/types.d.cts +2 -0
- package/dist/sdk/securityPolicy/types.d.ts +2 -0
- package/dist/sdk/securityPolicy/types.js +1 -0
- package/dist/sdk/semanticLayer/index.cjs +3 -2
- package/dist/sdk/semanticLayer/index.d.cts +8 -3
- package/dist/sdk/semanticLayer/index.d.ts +8 -3
- package/dist/sdk/semanticLayer/index.js +3 -1
- package/dist/sdk/semanticLayer/types.d.cts +1 -1
- package/dist/sdk/semanticLayer/types.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-djom-J78.cjs → semanticLayer-BVpdWKJn.cjs} +19 -52
- package/dist/semanticLayer-BVpdWKJn.cjs.map +1 -0
- package/dist/{semanticLayer-BdPW_wLo.js → semanticLayer-Btj1Qy9O.js} +20 -47
- package/dist/semanticLayer-Btj1Qy9O.js.map +1 -0
- package/dist/serviceIds-Bg1pWiPE.cjs +37 -0
- package/dist/serviceIds-Bg1pWiPE.cjs.map +1 -0
- package/dist/serviceIds-RAVtP4nK.js +32 -0
- package/dist/serviceIds-RAVtP4nK.js.map +1 -0
- package/dist/storage/index.d.cts +2 -2
- package/dist/storage/index.d.ts +2 -2
- package/dist/storage/types.d.cts +2 -2
- package/dist/storage/types.d.ts +2 -2
- package/dist/syncActions/index.cjs +1 -1
- package/dist/syncActions/index.js +1 -1
- package/dist/{syncActions-DToUhyP3.cjs → syncActions-CR7xvuIv.cjs} +2 -2
- package/dist/{syncActions-DToUhyP3.cjs.map → syncActions-CR7xvuIv.cjs.map} +1 -1
- package/dist/{syncActions-DV_aObTQ.js → syncActions-CU4cIGRf.js} +2 -2
- package/dist/{syncActions-DV_aObTQ.js.map → syncActions-CU4cIGRf.js.map} +1 -1
- package/dist/{types-CLtYOszN.d.cts → types-B7FKoyfy.d.cts} +442 -2
- package/dist/{types-iU1Sc1IM.d.ts → types-BDgOF2WN.d.ts} +6 -29
- package/dist/types-BXKL0wTI.d.cts +85 -0
- package/dist/{types-Ey59ZILC.d.ts → types-COb2O9c1.d.ts} +442 -2
- package/dist/{types-DjWubjvP.d.cts → types-CaBcgsT2.d.cts} +121 -53
- package/dist/{types-BljDxuWG.d.cts → types-DCARsJWs.d.cts} +6 -29
- package/dist/{types-CsVRsObb.d.ts → types-DFcj9YyQ.d.ts} +121 -53
- package/dist/types-DK1bSUNr.d.ts +85 -0
- package/package.json +40 -1
- package/surface/management.md +5 -0
- package/surface/sdk.md +2 -0
- package/dist/admin-CbMOsfgs.js.map +0 -1
- package/dist/admin-Di-MmGFP.cjs.map +0 -1
- package/dist/management-CUXgB2rb.cjs.map +0 -1
- package/dist/management-Cz5ut18k.js.map +0 -1
- package/dist/oauth-CSBChWuf.cjs.map +0 -1
- package/dist/oauth-DOveZKUv.js.map +0 -1
- package/dist/sdk/queryService/index.cjs.map +0 -1
- package/dist/sdk/queryService/index.js.map +0 -1
- package/dist/semanticLayer-BdPW_wLo.js.map +0 -1
- package/dist/semanticLayer-djom-J78.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Br as QueueJobError, C as isValidationError, E as isStorageJobError, Rr as RowLevelSecurityError, S as formatValidationIssues, T as StorageJobError, Vr as isQueueJobError, _ as isAbortError, b as isTimeoutError, di as MiddlewareFn, g as FetchClientError, h as HttpHeader, ii as manageErrorCode, m as HttpContentType, ni as ManagementClientAuthError, oi as HtmlResponseError, p as createGenericFetchClient, pi as ApiError, ri as isManageError, si as isHtmlResponseError, ti as ManagementSessionMintError, v as isApiError, w as parseOrThrow, x as ValidationError, y as isFetchClientError, zr as isRowLevelSecurityError } from "./index-FrsEkDvX.cjs";
|
|
2
|
-
import { $t as
|
|
2
|
+
import { $t as isPlainObject, A as createBranchRefs, As as QueryJobError, At as Retained, B as Logger, Bt as asError, Ct as KeboolaOptions, Ds as ServiceUnavailableError, Dt as FetchStatus, Es as isSyncActionError, Et as Credential, F as createUiVersionMiddleware, Ft as isKeboolaError, G as BearerSession, Gt as createPersistor, H as RequestLog, Ht as queueSeries, I as RetryOptions, It as Stack, J as createKeboola, Jt as createMemoryStorage, K as LegacySession, Kt as StorageAdapter, L as createRetryMiddleware, Lt as Failure, M as createAdminAccount, Ms as UserError, Mt as State, N as jobStatus, Nt as KeboolaError, Os as retryAfterSeconds, Ot as Grant, P as KeboolaHttpHeader, Pt as KeboolaErrorType, Qt as isEmptyDeep, R as Log, Rt as Result, S as createQueryServiceSdk, Sn as TaskFn, St as SESSION_STORAGE_KEY, Ts as SyncActionError, Tt as Auth, U as ResponseLog, Ut as Cell, V as LoggingOptions, Vt as series, W as createLoggingMiddleware, Wt as Persistor, X as ProjectClients, Xt as createSessionStorage, Y as ProjectApi, Yt as createNullStorage, Z as StackApi, Zt as deepMerge, _n as collectByCursor, an as Store, bn as collectByOffset, bt as RestoreStatus, cn as ensure, dn as delay, en as AsyncState, fn as dedupe, gn as CursorPage, hn as CollectByCursorOptions, in as ReadableStore, j as AdminAccount, js as isQueryJobError, jt as Stack$1, k as BranchRefs, ks as readableReason, kt as GrantType, ln as assert, mn as concurrent, nn as createDerivedStore, on as createStore, pn as ConcurrentOptions, q as createLegacyKeboola, qt as createLocalStorage, rn as shallowEqual, sn as generateUUID, tn as createDerivedAsyncStore, un as lazy, vn as nextCursorOf, wt as LegacyKeboolaOptions, xn as coalesce, xt as StackRestore, yn as CollectByOffsetOptions, z as LogLevel, zt as Success } from "./index-BtvWJBYh.cjs";
|
|
3
3
|
import { r as AuthStrategy, t as BaseClientOptions } from "./types-B4ezB18r.cjs";
|
|
4
4
|
import { T as parseLogLines } from "./types-CRC4lbPw.cjs";
|
|
5
5
|
import { n as createProject, t as Project } from "./project-BGk9CtOq.cjs";
|
|
6
6
|
import { _ as schemaGuidedMerge, a as PollKey, c as Poller, d as failureOf, f as poller, g as PollTick, h as PollResult, i as ObservedPoller, l as PollerOptions, m as PollOptions, n as PollRegistry, o as PollSnapshot, p as PollContext, r as createPollRegistry, s as PollState, t as PollEntry, u as emitter, v as KeboolaObjectId, y as keboolaUID } from "./index-24GpnYhn.cjs";
|
|
7
7
|
import { r as createEmitter, t as Emitter } from "./emitter-raKkIqRp.cjs";
|
|
8
|
-
import { n as isManagementSessionMintError, t as isManagementClientAuthError } from "./index-
|
|
8
|
+
import { n as isManagementSessionMintError, t as isManagementClientAuthError } from "./index-DX7qciZA.cjs";
|
|
9
9
|
export { type AdminAccount, ApiError, type AsyncState, type Auth as AuthPhase, type AuthStrategy, type BaseClientOptions, BearerSession, type BranchRefs, Cell, CollectByCursorOptions, CollectByOffsetOptions, ConcurrentOptions, type Credential as CredentialEntry, CursorPage, type Emitter, Failure, type FetchClientError, type FetchStatus, type Grant, type GrantType, HtmlResponseError, HttpContentType, HttpHeader, KeboolaError, KeboolaErrorType, KeboolaHttpHeader, KeboolaObjectId, type KeboolaOptions, type LegacyKeboolaOptions, LegacySession, Log, LogLevel, Logger, LoggingOptions, ManagementClientAuthError, ManagementSessionMintError, MiddlewareFn, ObservedPoller, Persistor, type PollContext, PollEntry, PollKey, type PollOptions, PollRegistry, type PollResult, PollSnapshot, PollState, type PollTick, Poller, PollerOptions, type Project, type ProjectApi, type ProjectClients, QueryJobError, QueueJobError, type ReadableStore, RequestLog, ResponseLog, type RestoreStatus, Result, type Retained, RetryOptions, RowLevelSecurityError, SESSION_STORAGE_KEY, ServiceUnavailableError, type State as SessionState, type Stack, type StackApi, type Stack$1 as StackEntry, type StackRestore, type StorageAdapter, StorageJobError, type Store, Success, SyncActionError, TaskFn, UserError, ValidationError, asError, assert, coalesce, collectByCursor, collectByOffset, concurrent, createAdminAccount, createBranchRefs, createDerivedAsyncStore, createDerivedStore, createEmitter, createGenericFetchClient, createKeboola, createLegacyKeboola, createLocalStorage, createLoggingMiddleware, createMemoryStorage, createNullStorage, createPersistor, createPollRegistry, createProject, createQueryServiceSdk, createRetryMiddleware, createSessionStorage, createStore, createUiVersionMiddleware, dedupe, deepMerge, delay, emitter, ensure, failureOf, formatValidationIssues, generateUUID, isAbortError, isApiError, isEmptyDeep, isFetchClientError, isHtmlResponseError, isKeboolaError, isManageError, isManagementClientAuthError, isManagementSessionMintError, isPlainObject, isQueryJobError, isQueueJobError, isRowLevelSecurityError, isStorageJobError, isSyncActionError, isTimeoutError, isValidationError, jobStatus, keboolaUID, lazy, manageErrorCode, nextCursorOf, parseLogLines, parseOrThrow, poller, queueSeries, readableReason, retryAfterSeconds, schemaGuidedMerge, series, shallowEqual };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Br as QueueJobError, C as isValidationError, E as isStorageJobError, Rr as RowLevelSecurityError, S as formatValidationIssues, T as StorageJobError, Vr as isQueueJobError, _ as isAbortError, b as isTimeoutError, di as MiddlewareFn, g as FetchClientError, h as HttpHeader, ii as manageErrorCode, m as HttpContentType, ni as ManagementClientAuthError, oi as HtmlResponseError, p as createGenericFetchClient, pi as ApiError, ri as isManageError, si as isHtmlResponseError, ti as ManagementSessionMintError, v as isApiError, w as parseOrThrow, x as ValidationError, y as isFetchClientError, zr as isRowLevelSecurityError } from "./index-FrsEkDvX.js";
|
|
2
|
-
import { $t as
|
|
2
|
+
import { $t as isPlainObject, A as createBranchRefs, As as QueryJobError, At as Retained, B as Logger, Bt as asError, Ct as KeboolaOptions, Ds as ServiceUnavailableError, Dt as FetchStatus, Es as isSyncActionError, Et as Credential, F as createUiVersionMiddleware, Ft as isKeboolaError, G as BearerSession, Gt as createPersistor, H as RequestLog, Ht as queueSeries, I as RetryOptions, It as Stack, J as createKeboola, Jt as createMemoryStorage, K as LegacySession, Kt as StorageAdapter, L as createRetryMiddleware, Lt as Failure, M as createAdminAccount, Ms as UserError, Mt as State, N as jobStatus, Nt as KeboolaError, Os as retryAfterSeconds, Ot as Grant, P as KeboolaHttpHeader, Pt as KeboolaErrorType, Qt as isEmptyDeep, R as Log, Rt as Result, S as createQueryServiceSdk, Sn as TaskFn, St as SESSION_STORAGE_KEY, Ts as SyncActionError, Tt as Auth, U as ResponseLog, Ut as Cell, V as LoggingOptions, Vt as series, W as createLoggingMiddleware, Wt as Persistor, X as ProjectClients, Xt as createSessionStorage, Y as ProjectApi, Yt as createNullStorage, Z as StackApi, Zt as deepMerge, _n as collectByCursor, an as Store, bn as collectByOffset, bt as RestoreStatus, cn as ensure, dn as delay, en as AsyncState, fn as dedupe, gn as CursorPage, hn as CollectByCursorOptions, in as ReadableStore, j as AdminAccount, js as isQueryJobError, jt as Stack$1, k as BranchRefs, ks as readableReason, kt as GrantType, ln as assert, mn as concurrent, nn as createDerivedStore, on as createStore, pn as ConcurrentOptions, q as createLegacyKeboola, qt as createLocalStorage, rn as shallowEqual, sn as generateUUID, tn as createDerivedAsyncStore, un as lazy, vn as nextCursorOf, wt as LegacyKeboolaOptions, xn as coalesce, xt as StackRestore, yn as CollectByOffsetOptions, z as LogLevel, zt as Success } from "./index-Df30jjpZ.js";
|
|
3
3
|
import { r as AuthStrategy, t as BaseClientOptions } from "./types-Tg3euEN_.js";
|
|
4
4
|
import { T as parseLogLines } from "./types-DoSZQ1Bi.js";
|
|
5
5
|
import { n as createProject, t as Project } from "./project-DS0HOV3M.js";
|
|
6
6
|
import { _ as schemaGuidedMerge, a as PollKey, c as Poller, d as failureOf, f as poller, g as PollTick, h as PollResult, i as ObservedPoller, l as PollerOptions, m as PollOptions, n as PollRegistry, o as PollSnapshot, p as PollContext, r as createPollRegistry, s as PollState, t as PollEntry, u as emitter, v as KeboolaObjectId, y as keboolaUID } from "./index-BUZ-vTRt.js";
|
|
7
7
|
import { r as createEmitter, t as Emitter } from "./emitter-raKkIqRp.js";
|
|
8
|
-
import { n as isManagementSessionMintError, t as isManagementClientAuthError } from "./index-
|
|
8
|
+
import { n as isManagementSessionMintError, t as isManagementClientAuthError } from "./index-DzqHh0lE.js";
|
|
9
9
|
export { type AdminAccount, ApiError, type AsyncState, type Auth as AuthPhase, type AuthStrategy, type BaseClientOptions, BearerSession, type BranchRefs, Cell, CollectByCursorOptions, CollectByOffsetOptions, ConcurrentOptions, type Credential as CredentialEntry, CursorPage, type Emitter, Failure, type FetchClientError, type FetchStatus, type Grant, type GrantType, HtmlResponseError, HttpContentType, HttpHeader, KeboolaError, KeboolaErrorType, KeboolaHttpHeader, KeboolaObjectId, type KeboolaOptions, type LegacyKeboolaOptions, LegacySession, Log, LogLevel, Logger, LoggingOptions, ManagementClientAuthError, ManagementSessionMintError, MiddlewareFn, ObservedPoller, Persistor, type PollContext, PollEntry, PollKey, type PollOptions, PollRegistry, type PollResult, PollSnapshot, PollState, type PollTick, Poller, PollerOptions, type Project, type ProjectApi, type ProjectClients, QueryJobError, QueueJobError, type ReadableStore, RequestLog, ResponseLog, type RestoreStatus, Result, type Retained, RetryOptions, RowLevelSecurityError, SESSION_STORAGE_KEY, ServiceUnavailableError, type State as SessionState, type Stack, type StackApi, type Stack$1 as StackEntry, type StackRestore, type StorageAdapter, StorageJobError, type Store, Success, SyncActionError, TaskFn, UserError, ValidationError, asError, assert, coalesce, collectByCursor, collectByOffset, concurrent, createAdminAccount, createBranchRefs, createDerivedAsyncStore, createDerivedStore, createEmitter, createGenericFetchClient, createKeboola, createLegacyKeboola, createLocalStorage, createLoggingMiddleware, createMemoryStorage, createNullStorage, createPersistor, createPollRegistry, createProject, createQueryServiceSdk, createRetryMiddleware, createSessionStorage, createStore, createUiVersionMiddleware, dedupe, deepMerge, delay, emitter, ensure, failureOf, formatValidationIssues, generateUUID, isAbortError, isApiError, isEmptyDeep, isFetchClientError, isHtmlResponseError, isKeboolaError, isManageError, isManagementClientAuthError, isManagementSessionMintError, isPlainObject, isQueryJobError, isQueueJobError, isRowLevelSecurityError, isStorageJobError, isSyncActionError, isTimeoutError, isValidationError, jobStatus, keboolaUID, lazy, manageErrorCode, nextCursorOf, parseLogLines, parseOrThrow, poller, queueSeries, readableReason, retryAfterSeconds, schemaGuidedMerge, series, shallowEqual };
|
package/dist/index.js
CHANGED
|
@@ -19,10 +19,10 @@ import { n as keboolaUID, t as createTagSdk } from "./tag-BwjbG3tT.js";
|
|
|
19
19
|
import { t as generateUUID } from "./generateUUID-DE9sNyJF.js";
|
|
20
20
|
import { t as isPlainObject } from "./isPlainObject-BxsT8_t2.js";
|
|
21
21
|
import { n as isEmptyDeep, t as schemaGuidedMerge } from "./schemaGuidedMerge-DFNqj9Nz.js";
|
|
22
|
-
import { n as isManagementClientAuthError, r as isManagementSessionMintError, t as createManagementClient } from "./management-
|
|
23
|
-
import {
|
|
22
|
+
import { n as isManagementClientAuthError, r as isManagementSessionMintError, t as createManagementClient } from "./management-BAfg8BmK.js";
|
|
23
|
+
import { t as ServiceId } from "./serviceIds-RAVtP4nK.js";
|
|
24
24
|
import { i as createKaiMemorySdk } from "./kaiMemory-B1wIwH8Y.js";
|
|
25
|
-
import { i as createSemanticLayerSdk } from "./semanticLayer-
|
|
25
|
+
import { i as createSemanticLayerSdk } from "./semanticLayer-Btj1Qy9O.js";
|
|
26
26
|
import { createVaultSdk } from "./sdk/vault/index.js";
|
|
27
27
|
import { createAiClient } from "./ai/index.js";
|
|
28
28
|
import { n as parseLogLines, t as createAppsClient } from "./apps-BN7fWtSm.js";
|
|
@@ -35,18 +35,18 @@ import { createEncryptionClient } from "./encryption/index.js";
|
|
|
35
35
|
import { t as createKaiAgentClient } from "./kaiAgent-D0MoKqXe.js";
|
|
36
36
|
import { t as createMetastoreClient } from "./metastore-CkqFnEfu.js";
|
|
37
37
|
import { createNotificationsClient } from "./notifications/index.js";
|
|
38
|
-
import {
|
|
38
|
+
import { n as createOauthClient } from "./oauth-Ci0qeaS2.js";
|
|
39
39
|
import { createOmnisearchClient } from "./omnisearch/index.js";
|
|
40
40
|
import { t as createQueryServiceClient } from "./queryService-DQHtHy2-.js";
|
|
41
41
|
import { t as createQueueClient } from "./queue-6cywDnA-.js";
|
|
42
42
|
import { createSchedulerClient } from "./scheduler/index.js";
|
|
43
43
|
import { createStreamClient } from "./stream/index.js";
|
|
44
|
-
import { t as createSyncActionsClient } from "./syncActions-
|
|
44
|
+
import { t as createSyncActionsClient } from "./syncActions-CU4cIGRf.js";
|
|
45
45
|
import { createTelemetryClient } from "./telemetry/index.js";
|
|
46
46
|
import { createVaultClient } from "./vault/index.js";
|
|
47
47
|
import { n as isUnauthorized, t as createBearerAuthMiddleware } from "./middleware-DxGv7DG8.js";
|
|
48
|
-
import { t as createProject } from "./project-
|
|
49
|
-
import { createQueryServiceSdk } from "./
|
|
48
|
+
import { t as createProject } from "./project-aAVAOcmx.js";
|
|
49
|
+
import { n as createQueryServiceSdk } from "./queryService-DE_yE_S4.js";
|
|
50
50
|
import * as z$1 from "zod";
|
|
51
51
|
// src/keboola/errors.ts
|
|
52
52
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_management = require("../management-
|
|
2
|
+
const require_management = require("../management-BuNIc7Mr.cjs");
|
|
3
3
|
exports.createManagementClient = require_management.createManagementClient;
|
|
4
4
|
exports.isManagementClientAuthError = require_management.isManagementClientAuthError;
|
|
5
5
|
exports.isManagementSessionMintError = require_management.isManagementSessionMintError;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ManagementOpenApiFetchClient, i as ManagementGenericFetchClient, n as isManagementSessionMintError, o as createManagementClient, r as AuthStrategy, t as isManagementClientAuthError } from "../index-
|
|
1
|
+
import { a as ManagementOpenApiFetchClient, i as ManagementGenericFetchClient, n as isManagementSessionMintError, o as createManagementClient, r as AuthStrategy, t as isManagementClientAuthError } from "../index-DX7qciZA.cjs";
|
|
2
2
|
export { AuthStrategy, ManagementGenericFetchClient, ManagementOpenApiFetchClient, createManagementClient, isManagementClientAuthError, isManagementSessionMintError };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ManagementOpenApiFetchClient, i as ManagementGenericFetchClient, n as isManagementSessionMintError, o as createManagementClient, r as AuthStrategy, t as isManagementClientAuthError } from "../index-
|
|
1
|
+
import { a as ManagementOpenApiFetchClient, i as ManagementGenericFetchClient, n as isManagementSessionMintError, o as createManagementClient, r as AuthStrategy, t as isManagementClientAuthError } from "../index-DzqHh0lE.js";
|
|
2
2
|
export { AuthStrategy, ManagementGenericFetchClient, ManagementOpenApiFetchClient, createManagementClient, isManagementClientAuthError, isManagementSessionMintError };
|
package/dist/management/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as createManagementClient, n as isManagementClientAuthError, r as isManagementSessionMintError } from "../management-
|
|
1
|
+
export { t as createManagementClient, n as isManagementClientAuthError, r as isManagementSessionMintError } from "../management-BAfg8BmK.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { AddMaintainerUserBody, AddMaintainerUserInput, AddOrganizationUserBody, AddOrganizationUserInput, AddProjectUserBody, AddProjectUserPath, AddUserFeatureBody, AddUserFeaturePath, AdminUser, ApplicationToken, ApplicationTokenScope, AssignFeatureBody, AssignProjectTemplateFeatureInput, ChangeProjectUserRoleBody, ChangeProjectUserRoleInput, ChangeProjectUserRolePath, CompleteSamlSetupBody, CompleteSamlSetupInput, ConfirmProgrammaticProjectBody, ConfirmProgrammaticProjectResult, CreateApplicationTokenBody, CreateBigqueryServerSideStorageBackendBody, CreateBigqueryStorageBackendBody, CreateFileStorageAbsBody, CreateFileStorageGcsBody, CreateFileStorageS3Body, CreateMaintainerBody, CreateMaintainerInvitationBody, CreateMaintainerInvitationInput, CreateMaintainerOrganizationBody, CreateMaintainerOrganizationInput, CreateOrganizationInvitationBody, CreateOrganizationInvitationInput, CreateOrganizationProjectBody, CreateOrganizationProjectInput, CreatePaymentRequestBody, CreateProjectFeatureBody, CreateProjectFeaturePath, CreateProjectInvitationBody, CreateProjectInvitationPath, CreateSamlConfigBody, CreateSamlConfigInput, CreateSamlConfigPath, CreateSnowflakeStorageBackendBody, CreateSnowflakeStorageBackendResponse, CreatedApplicationToken, CreditPaymentRequest, CreditPurchase, DeleteProjectInvitationPath, DeleteProjectMetadataPath, DeleteUserMetadataPath, DeletedProject, DeletedProjectPurgeResult, DeletedProjectsListFilter, DeletedProjectsListQuery, DeletedProjectsPage, DeletedProjectsStats, DeletedProjectsStatus, Feature, FeatureAdmin, FeatureProject, FeatureType, FileStorage, FileStorageAbs, FileStorageGcs, FileStorageS3, GetAllFeaturesQuery, GetProjectMetadataPath, GetProjectPath, GetProjectReviewersPath, GetStorageBackendProjectsQuery, GetUiAppsQuery, GetUsersQuery, JoinProjectBody, JoinProjectInput, ListProjectInvitationsPath, ListProjectJoinRequestsPath, ListProjectUsersPath, Maintainer, MaintainerDetail, MaintainerInvitation, MaintainerInvitationDetail, MaintainerInvitationPath, MaintainerMetadataItemPath, MaintainerPath, MaintainerUser, MaintainerUserPath, ManagementToken, MetadataItem, MoveProjectBody, MoveProjectInput, Organization, OrganizationDetail, OrganizationInvitation, OrganizationInvitationDetail, OrganizationInvitationPath, OrganizationListItem, OrganizationMaintainer, OrganizationMetadataItemPath, OrganizationPath, OrganizationProject, OrganizationUserPath, PayAsYouGoBillingConfiguration, PolicyTagCapability, PolicyTagEnablementGuide, PolicyTagEnablementGuideInput, PolicyTagEnablementGuidePath, PolicyTagEnablementGuideQuery, PolicyTagEnablementGuideSchemaQuery, ProgrammaticProjectClaim, Project, ProjectBase, ProjectFeatureWarning, ProjectInvitableRole, ProjectInvitation, ProjectInvitationDetail, ProjectJoinRequest, ProjectJoinRequestDetail, ProjectJoinRequestPath, ProjectMetadataInput, ProjectMetadataItem, ProjectPath, ProjectRetentionWorkspace, ProjectRetentionWorkspaceState, ProjectTemplate, ProjectTemplatePath, ProjectWithFeatureWarnings, ReactivateWorkspaceResult, RegisterUiAppBody, RemoveProjectFeaturePath, RemoveProjectLimitPath, RemoveProjectTemplateFeaturePath, RemoveProjectUserPath, RemoveUserFeaturePath, RenameUiAppBody, RequestProjectAccessBody, RequestProjectAccessInput, Reviewer, RotateFileStorageAbsBody, RotateFileStorageAbsInput, RotateFileStorageAbsPath, RotateFileStorageGcsBody, RotateFileStorageGcsInput, RotateFileStorageGcsPath, RotateFileStorageS3Body, RotateFileStorageS3Input, RotateFileStorageS3Path, SamlConfigDetail, SamlConfigPath, SamlConfigSummary, SetMaintainerMetadataBody, SetMaintainerMetadataInput, SetOrganizationMetadataBody, SetOrganizationMetadataInput, SetProjectDisabledBody, SetProjectDisabledInput, SetProjectLimitsBody, SetProjectLimitsInput, SetProjectMetadataBody, SetProjectMetadataPath, SetProjectReviewersBody, SetProjectReviewersPath, SetUpBigQueryBody, SetUserMetadataBody, SetUserMetadataInput, StorageBackend, StorageBackendBigquery, StorageBackendMaintainer, StorageBackendPath, StorageBackendProject, StripeCustomer, StripeCustomerCard, TopUpSetting, UiApp, UiAppDetail, UiAppRegistrationResult, UiAppVersion, UpdateBigqueryStorageBackendBody, UpdateBigqueryStorageBackendInput, UpdateFileStorageBody, UpdateMaintainerBody, UpdateMaintainerInput, UpdateOrganizationBody, UpdateOrganizationInput, UpdateProjectBody, UpdateProjectInput, UpdateSamlConfigBody, UpdateSamlConfigInput, UpdateStorageBackendBody, UpdateStorageBackendInput, UpdateStripeCustomerBody, UpdateTopUpSettingBody, UpdateUserBody, UpdateUserInput, User, UserDetail, UserListItem, UserMaintainerMembership, UserOrganizationMembership, UserPath, UserProjectMembership, X402PaymentStatus, X402_PAYMENT_STATUS, X402_TOP_UP_TYPE };
|
|
1
|
+
import { $ as GetProjectReviewersPath, $n as OrganizationInvitationDetail, $t as ConfirmProgrammaticProjectBody, A as UpdateStorageBackendBody, An as MaintainerMetadataItemPath, Ar as RotateFileStorageS3Path, At as SetProjectLimitsInput, B as AssignFeatureBody, Bn as UpdateMaintainerBody, Br as DeletedProjectsListQuery, Bt as GetUsersQuery, C as StorageBackend, Cn as CreateSamlConfigBody, Cr as RotateFileStorageAbsInput, Ct as RemoveProjectUserPath, D as StorageBackendProject, Dn as MaintainerDetail, Dr as RotateFileStorageGcsPath, Dt as SetProjectDisabledBody, E as StorageBackendPath, En as Maintainer, Er as RotateFileStorageGcsInput, Et as Reviewer, F as SearchQuery, Fn as SamlConfigDetail, Fr as FeatureType, Ft as UpdateProjectBody, G as CreateProjectFeatureBody, Gn as AddOrganizationUserInput, Gr as OrganizationInvitation, Gt as UpdateUserInput, H as ChangeProjectUserRoleBody, Hn as UpdateSamlConfigBody, Hr as DeletedProjectsStats, Ht as SetUserMetadataBody, I as SearchResult, In as SamlConfigPath, Ir as GetAllFeaturesQuery, It as UpdateProjectInput, J as CreateProjectInvitationPath, Jn as CreateOrganizationInvitationInput, Jr as ApplicationToken, Jt as UserListItem, K as CreateProjectFeaturePath, Kn as AdminUser, Kr as ProjectInvitation, Kt as User, L as UserSearchItem, Ln as SamlConfigSummary, Lr as DeletedProject, Lt as AddUserFeatureBody, M as MaintainerSearchItem, Mn as MaintainerUser, Mr as Feature, Mt as SetProjectMetadataPath, N as OrganizationSearchItem, Nn as MaintainerUserPath, Nr as FeatureAdmin, Nt as SetProjectReviewersBody, O as UpdateBigqueryStorageBackendBody, On as MaintainerInvitationDetail, Or as RotateFileStorageS3Body, Ot as SetProjectDisabledInput, P as ProjectSearchItem, Pn as MetadataItem, Pr as FeatureProject, Pt as SetProjectReviewersPath, Q as GetProjectPath, Qn as OrganizationDetail, Qt as UserProjectMembership, R as AddProjectUserBody, Rn as SetMaintainerMetadataBody, Rr as DeletedProjectPurgeResult, Rt as AddUserFeaturePath, S as PolicyTagEnablementGuideSchemaQuery, Sn as CreateMaintainerOrganizationInput, Sr as RotateFileStorageAbsBody, St as RemoveProjectTemplateFeaturePath, T as StorageBackendMaintainer, Tn as CreateSamlConfigPath, Tr as RotateFileStorageGcsBody, Tt as RequestProjectAccessInput, U as ChangeProjectUserRoleInput, Un as UpdateSamlConfigInput, Ur as DeletedProjectsStatus, Ut as SetUserMetadataInput, V as AssignProjectTemplateFeatureInput, Vn as UpdateMaintainerInput, Vr as DeletedProjectsPage, Vt as RemoveUserFeaturePath, W as ChangeProjectUserRolePath, Wn as AddOrganizationUserBody, Wr as MaintainerInvitation, Wt as UpdateUserBody, X as DeleteProjectMetadataPath, Xn as CreateOrganizationProjectInput, Xr as CreateApplicationTokenBody, Xt as UserOrganizationMembership, Y as DeleteProjectInvitationPath, Yn as CreateOrganizationProjectBody, Yr as ApplicationTokenScope, Yt as UserMaintainerMembership, Z as GetProjectMetadataPath, Zn as Organization, Zr as CreatedApplicationToken, Zt as UserPath, _ as PolicyTagCapability, _n as CompleteSamlSetupInput, _r as FileStorageGcs, _t as ProjectTemplate, a as GetUiAppsQuery, an as PayAsYouGoBillingConfiguration, ar as OrganizationProject, at as MoveProjectBody, b as PolicyTagEnablementGuidePath, bn as CreateMaintainerInvitationInput, br as FileStorageProjectsQuery, bt as RemoveProjectFeaturePath, c as UiApp, cn as TopUpSetting, cr as SetOrganizationMetadataInput, ct as ProjectBase, d as UiAppVersion, dn as X402PaymentStatus, dr as SetUpBigQueryBody, dt as ProjectInvitationDetail, en as ConfirmProgrammaticProjectResult, er as OrganizationInvitationPath, et as JoinProjectBody, f as CreateBigqueryServerSideStorageBackendBody, fn as X402_PAYMENT_STATUS, fr as CreateFileStorageAbsBody, ft as ProjectJoinRequestDetail, g as GetStorageBackendProjectsQuery, gn as CompleteSamlSetupBody, gr as FileStorageAbs, gt as ProjectPath, h as CreateSnowflakeStorageBackendResponse, hn as AddMaintainerUserInput, hr as FileStorage, ht as ProjectMetadataItem, i as ReactivateWorkspaceResult, in as CreditPurchase, ir as OrganizationPath, it as ListProjectUsersPath, j as UpdateStorageBackendInput, jn as MaintainerPath, jr as UpdateFileStorageBody, jt as SetProjectMetadataBody, k as UpdateBigqueryStorageBackendInput, kn as MaintainerInvitationPath, kr as RotateFileStorageS3Input, kt as SetProjectLimitsBody, l as UiAppDetail, ln as UpdateStripeCustomerBody, lr as UpdateOrganizationBody, lt as ProjectFeatureWarning, m as CreateSnowflakeStorageBackendBody, mn as AddMaintainerUserBody, mr as CreateFileStorageS3Body, mt as ProjectMetadataInput, n as ProjectRetentionWorkspace, nn as CreatePaymentRequestBody, nr as OrganizationMaintainer, nt as ListProjectInvitationsPath, o as RegisterUiAppBody, on as StripeCustomer, or as OrganizationUserPath, ot as MoveProjectInput, p as CreateBigqueryStorageBackendBody, pn as X402_TOP_UP_TYPE, pr as CreateFileStorageGcsBody, pt as ProjectJoinRequestPath, q as CreateProjectInvitationBody, qn as CreateOrganizationInvitationBody, qr as ProjectJoinRequest, qt as UserDetail, r as ProjectRetentionWorkspaceState, rn as CreditPaymentRequest, rr as OrganizationMetadataItemPath, rt as ListProjectJoinRequestsPath, s as RenameUiAppBody, sn as StripeCustomerCard, sr as SetOrganizationMetadataBody, st as Project, t as ManagementToken, tn as ProgrammaticProjectClaim, tr as OrganizationListItem, tt as JoinProjectInput, u as UiAppRegistrationResult, un as UpdateTopUpSettingBody, ur as UpdateOrganizationInput, ut as ProjectInvitableRole, v as PolicyTagEnablementGuide, vn as CreateMaintainerBody, vr as FileStorageProject, vt as ProjectTemplatePath, w as StorageBackendBigquery, wn as CreateSamlConfigInput, wr as RotateFileStorageAbsPath, wt as RequestProjectAccessBody, x as PolicyTagEnablementGuideQuery, xn as CreateMaintainerOrganizationBody, xr as FileStorageS3, xt as RemoveProjectLimitPath, y as PolicyTagEnablementGuideInput, yn as CreateMaintainerInvitationBody, yr as FileStorageProjectsPage, yt as ProjectWithFeatureWarnings, z as AddProjectUserPath, zn as SetMaintainerMetadataInput, zr as DeletedProjectsListFilter, zt as DeleteUserMetadataPath } from "../types-B7FKoyfy.cjs";
|
|
2
|
+
export { AddMaintainerUserBody, AddMaintainerUserInput, AddOrganizationUserBody, AddOrganizationUserInput, AddProjectUserBody, AddProjectUserPath, AddUserFeatureBody, AddUserFeaturePath, AdminUser, ApplicationToken, ApplicationTokenScope, AssignFeatureBody, AssignProjectTemplateFeatureInput, ChangeProjectUserRoleBody, ChangeProjectUserRoleInput, ChangeProjectUserRolePath, CompleteSamlSetupBody, CompleteSamlSetupInput, ConfirmProgrammaticProjectBody, ConfirmProgrammaticProjectResult, CreateApplicationTokenBody, CreateBigqueryServerSideStorageBackendBody, CreateBigqueryStorageBackendBody, CreateFileStorageAbsBody, CreateFileStorageGcsBody, CreateFileStorageS3Body, CreateMaintainerBody, CreateMaintainerInvitationBody, CreateMaintainerInvitationInput, CreateMaintainerOrganizationBody, CreateMaintainerOrganizationInput, CreateOrganizationInvitationBody, CreateOrganizationInvitationInput, CreateOrganizationProjectBody, CreateOrganizationProjectInput, CreatePaymentRequestBody, CreateProjectFeatureBody, CreateProjectFeaturePath, CreateProjectInvitationBody, CreateProjectInvitationPath, CreateSamlConfigBody, CreateSamlConfigInput, CreateSamlConfigPath, CreateSnowflakeStorageBackendBody, CreateSnowflakeStorageBackendResponse, CreatedApplicationToken, CreditPaymentRequest, CreditPurchase, DeleteProjectInvitationPath, DeleteProjectMetadataPath, DeleteUserMetadataPath, DeletedProject, DeletedProjectPurgeResult, DeletedProjectsListFilter, DeletedProjectsListQuery, DeletedProjectsPage, DeletedProjectsStats, DeletedProjectsStatus, Feature, FeatureAdmin, FeatureProject, FeatureType, FileStorage, FileStorageAbs, FileStorageGcs, FileStorageProject, FileStorageProjectsPage, FileStorageProjectsQuery, FileStorageS3, GetAllFeaturesQuery, GetProjectMetadataPath, GetProjectPath, GetProjectReviewersPath, GetStorageBackendProjectsQuery, GetUiAppsQuery, GetUsersQuery, JoinProjectBody, JoinProjectInput, ListProjectInvitationsPath, ListProjectJoinRequestsPath, ListProjectUsersPath, Maintainer, MaintainerDetail, MaintainerInvitation, MaintainerInvitationDetail, MaintainerInvitationPath, MaintainerMetadataItemPath, MaintainerPath, MaintainerSearchItem, MaintainerUser, MaintainerUserPath, ManagementToken, MetadataItem, MoveProjectBody, MoveProjectInput, Organization, OrganizationDetail, OrganizationInvitation, OrganizationInvitationDetail, OrganizationInvitationPath, OrganizationListItem, OrganizationMaintainer, OrganizationMetadataItemPath, OrganizationPath, OrganizationProject, OrganizationSearchItem, OrganizationUserPath, PayAsYouGoBillingConfiguration, PolicyTagCapability, PolicyTagEnablementGuide, PolicyTagEnablementGuideInput, PolicyTagEnablementGuidePath, PolicyTagEnablementGuideQuery, PolicyTagEnablementGuideSchemaQuery, ProgrammaticProjectClaim, Project, ProjectBase, ProjectFeatureWarning, ProjectInvitableRole, ProjectInvitation, ProjectInvitationDetail, ProjectJoinRequest, ProjectJoinRequestDetail, ProjectJoinRequestPath, ProjectMetadataInput, ProjectMetadataItem, ProjectPath, ProjectRetentionWorkspace, ProjectRetentionWorkspaceState, ProjectSearchItem, ProjectTemplate, ProjectTemplatePath, ProjectWithFeatureWarnings, ReactivateWorkspaceResult, RegisterUiAppBody, RemoveProjectFeaturePath, RemoveProjectLimitPath, RemoveProjectTemplateFeaturePath, RemoveProjectUserPath, RemoveUserFeaturePath, RenameUiAppBody, RequestProjectAccessBody, RequestProjectAccessInput, Reviewer, RotateFileStorageAbsBody, RotateFileStorageAbsInput, RotateFileStorageAbsPath, RotateFileStorageGcsBody, RotateFileStorageGcsInput, RotateFileStorageGcsPath, RotateFileStorageS3Body, RotateFileStorageS3Input, RotateFileStorageS3Path, SamlConfigDetail, SamlConfigPath, SamlConfigSummary, SearchQuery, SearchResult, SetMaintainerMetadataBody, SetMaintainerMetadataInput, SetOrganizationMetadataBody, SetOrganizationMetadataInput, SetProjectDisabledBody, SetProjectDisabledInput, SetProjectLimitsBody, SetProjectLimitsInput, SetProjectMetadataBody, SetProjectMetadataPath, SetProjectReviewersBody, SetProjectReviewersPath, SetUpBigQueryBody, SetUserMetadataBody, SetUserMetadataInput, StorageBackend, StorageBackendBigquery, StorageBackendMaintainer, StorageBackendPath, StorageBackendProject, StripeCustomer, StripeCustomerCard, TopUpSetting, UiApp, UiAppDetail, UiAppRegistrationResult, UiAppVersion, UpdateBigqueryStorageBackendBody, UpdateBigqueryStorageBackendInput, UpdateFileStorageBody, UpdateMaintainerBody, UpdateMaintainerInput, UpdateOrganizationBody, UpdateOrganizationInput, UpdateProjectBody, UpdateProjectInput, UpdateSamlConfigBody, UpdateSamlConfigInput, UpdateStorageBackendBody, UpdateStorageBackendInput, UpdateStripeCustomerBody, UpdateTopUpSettingBody, UpdateUserBody, UpdateUserInput, User, UserDetail, UserListItem, UserMaintainerMembership, UserOrganizationMembership, UserPath, UserProjectMembership, UserSearchItem, X402PaymentStatus, X402_PAYMENT_STATUS, X402_TOP_UP_TYPE };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { AddMaintainerUserBody, AddMaintainerUserInput, AddOrganizationUserBody, AddOrganizationUserInput, AddProjectUserBody, AddProjectUserPath, AddUserFeatureBody, AddUserFeaturePath, AdminUser, ApplicationToken, ApplicationTokenScope, AssignFeatureBody, AssignProjectTemplateFeatureInput, ChangeProjectUserRoleBody, ChangeProjectUserRoleInput, ChangeProjectUserRolePath, CompleteSamlSetupBody, CompleteSamlSetupInput, ConfirmProgrammaticProjectBody, ConfirmProgrammaticProjectResult, CreateApplicationTokenBody, CreateBigqueryServerSideStorageBackendBody, CreateBigqueryStorageBackendBody, CreateFileStorageAbsBody, CreateFileStorageGcsBody, CreateFileStorageS3Body, CreateMaintainerBody, CreateMaintainerInvitationBody, CreateMaintainerInvitationInput, CreateMaintainerOrganizationBody, CreateMaintainerOrganizationInput, CreateOrganizationInvitationBody, CreateOrganizationInvitationInput, CreateOrganizationProjectBody, CreateOrganizationProjectInput, CreatePaymentRequestBody, CreateProjectFeatureBody, CreateProjectFeaturePath, CreateProjectInvitationBody, CreateProjectInvitationPath, CreateSamlConfigBody, CreateSamlConfigInput, CreateSamlConfigPath, CreateSnowflakeStorageBackendBody, CreateSnowflakeStorageBackendResponse, CreatedApplicationToken, CreditPaymentRequest, CreditPurchase, DeleteProjectInvitationPath, DeleteProjectMetadataPath, DeleteUserMetadataPath, DeletedProject, DeletedProjectPurgeResult, DeletedProjectsListFilter, DeletedProjectsListQuery, DeletedProjectsPage, DeletedProjectsStats, DeletedProjectsStatus, Feature, FeatureAdmin, FeatureProject, FeatureType, FileStorage, FileStorageAbs, FileStorageGcs, FileStorageS3, GetAllFeaturesQuery, GetProjectMetadataPath, GetProjectPath, GetProjectReviewersPath, GetStorageBackendProjectsQuery, GetUiAppsQuery, GetUsersQuery, JoinProjectBody, JoinProjectInput, ListProjectInvitationsPath, ListProjectJoinRequestsPath, ListProjectUsersPath, Maintainer, MaintainerDetail, MaintainerInvitation, MaintainerInvitationDetail, MaintainerInvitationPath, MaintainerMetadataItemPath, MaintainerPath, MaintainerUser, MaintainerUserPath, ManagementToken, MetadataItem, MoveProjectBody, MoveProjectInput, Organization, OrganizationDetail, OrganizationInvitation, OrganizationInvitationDetail, OrganizationInvitationPath, OrganizationListItem, OrganizationMaintainer, OrganizationMetadataItemPath, OrganizationPath, OrganizationProject, OrganizationUserPath, PayAsYouGoBillingConfiguration, PolicyTagCapability, PolicyTagEnablementGuide, PolicyTagEnablementGuideInput, PolicyTagEnablementGuidePath, PolicyTagEnablementGuideQuery, PolicyTagEnablementGuideSchemaQuery, ProgrammaticProjectClaim, Project, ProjectBase, ProjectFeatureWarning, ProjectInvitableRole, ProjectInvitation, ProjectInvitationDetail, ProjectJoinRequest, ProjectJoinRequestDetail, ProjectJoinRequestPath, ProjectMetadataInput, ProjectMetadataItem, ProjectPath, ProjectRetentionWorkspace, ProjectRetentionWorkspaceState, ProjectTemplate, ProjectTemplatePath, ProjectWithFeatureWarnings, ReactivateWorkspaceResult, RegisterUiAppBody, RemoveProjectFeaturePath, RemoveProjectLimitPath, RemoveProjectTemplateFeaturePath, RemoveProjectUserPath, RemoveUserFeaturePath, RenameUiAppBody, RequestProjectAccessBody, RequestProjectAccessInput, Reviewer, RotateFileStorageAbsBody, RotateFileStorageAbsInput, RotateFileStorageAbsPath, RotateFileStorageGcsBody, RotateFileStorageGcsInput, RotateFileStorageGcsPath, RotateFileStorageS3Body, RotateFileStorageS3Input, RotateFileStorageS3Path, SamlConfigDetail, SamlConfigPath, SamlConfigSummary, SetMaintainerMetadataBody, SetMaintainerMetadataInput, SetOrganizationMetadataBody, SetOrganizationMetadataInput, SetProjectDisabledBody, SetProjectDisabledInput, SetProjectLimitsBody, SetProjectLimitsInput, SetProjectMetadataBody, SetProjectMetadataPath, SetProjectReviewersBody, SetProjectReviewersPath, SetUpBigQueryBody, SetUserMetadataBody, SetUserMetadataInput, StorageBackend, StorageBackendBigquery, StorageBackendMaintainer, StorageBackendPath, StorageBackendProject, StripeCustomer, StripeCustomerCard, TopUpSetting, UiApp, UiAppDetail, UiAppRegistrationResult, UiAppVersion, UpdateBigqueryStorageBackendBody, UpdateBigqueryStorageBackendInput, UpdateFileStorageBody, UpdateMaintainerBody, UpdateMaintainerInput, UpdateOrganizationBody, UpdateOrganizationInput, UpdateProjectBody, UpdateProjectInput, UpdateSamlConfigBody, UpdateSamlConfigInput, UpdateStorageBackendBody, UpdateStorageBackendInput, UpdateStripeCustomerBody, UpdateTopUpSettingBody, UpdateUserBody, UpdateUserInput, User, UserDetail, UserListItem, UserMaintainerMembership, UserOrganizationMembership, UserPath, UserProjectMembership, X402PaymentStatus, X402_PAYMENT_STATUS, X402_TOP_UP_TYPE };
|
|
1
|
+
import { $ as GetProjectReviewersPath, $n as OrganizationInvitationDetail, $t as ConfirmProgrammaticProjectBody, A as UpdateStorageBackendBody, An as MaintainerMetadataItemPath, Ar as RotateFileStorageS3Path, At as SetProjectLimitsInput, B as AssignFeatureBody, Bn as UpdateMaintainerBody, Br as DeletedProjectsListQuery, Bt as GetUsersQuery, C as StorageBackend, Cn as CreateSamlConfigBody, Cr as RotateFileStorageAbsInput, Ct as RemoveProjectUserPath, D as StorageBackendProject, Dn as MaintainerDetail, Dr as RotateFileStorageGcsPath, Dt as SetProjectDisabledBody, E as StorageBackendPath, En as Maintainer, Er as RotateFileStorageGcsInput, Et as Reviewer, F as SearchQuery, Fn as SamlConfigDetail, Fr as FeatureType, Ft as UpdateProjectBody, G as CreateProjectFeatureBody, Gn as AddOrganizationUserInput, Gr as OrganizationInvitation, Gt as UpdateUserInput, H as ChangeProjectUserRoleBody, Hn as UpdateSamlConfigBody, Hr as DeletedProjectsStats, Ht as SetUserMetadataBody, I as SearchResult, In as SamlConfigPath, Ir as GetAllFeaturesQuery, It as UpdateProjectInput, J as CreateProjectInvitationPath, Jn as CreateOrganizationInvitationInput, Jr as ApplicationToken, Jt as UserListItem, K as CreateProjectFeaturePath, Kn as AdminUser, Kr as ProjectInvitation, Kt as User, L as UserSearchItem, Ln as SamlConfigSummary, Lr as DeletedProject, Lt as AddUserFeatureBody, M as MaintainerSearchItem, Mn as MaintainerUser, Mr as Feature, Mt as SetProjectMetadataPath, N as OrganizationSearchItem, Nn as MaintainerUserPath, Nr as FeatureAdmin, Nt as SetProjectReviewersBody, O as UpdateBigqueryStorageBackendBody, On as MaintainerInvitationDetail, Or as RotateFileStorageS3Body, Ot as SetProjectDisabledInput, P as ProjectSearchItem, Pn as MetadataItem, Pr as FeatureProject, Pt as SetProjectReviewersPath, Q as GetProjectPath, Qn as OrganizationDetail, Qt as UserProjectMembership, R as AddProjectUserBody, Rn as SetMaintainerMetadataBody, Rr as DeletedProjectPurgeResult, Rt as AddUserFeaturePath, S as PolicyTagEnablementGuideSchemaQuery, Sn as CreateMaintainerOrganizationInput, Sr as RotateFileStorageAbsBody, St as RemoveProjectTemplateFeaturePath, T as StorageBackendMaintainer, Tn as CreateSamlConfigPath, Tr as RotateFileStorageGcsBody, Tt as RequestProjectAccessInput, U as ChangeProjectUserRoleInput, Un as UpdateSamlConfigInput, Ur as DeletedProjectsStatus, Ut as SetUserMetadataInput, V as AssignProjectTemplateFeatureInput, Vn as UpdateMaintainerInput, Vr as DeletedProjectsPage, Vt as RemoveUserFeaturePath, W as ChangeProjectUserRolePath, Wn as AddOrganizationUserBody, Wr as MaintainerInvitation, Wt as UpdateUserBody, X as DeleteProjectMetadataPath, Xn as CreateOrganizationProjectInput, Xr as CreateApplicationTokenBody, Xt as UserOrganizationMembership, Y as DeleteProjectInvitationPath, Yn as CreateOrganizationProjectBody, Yr as ApplicationTokenScope, Yt as UserMaintainerMembership, Z as GetProjectMetadataPath, Zn as Organization, Zr as CreatedApplicationToken, Zt as UserPath, _ as PolicyTagCapability, _n as CompleteSamlSetupInput, _r as FileStorageGcs, _t as ProjectTemplate, a as GetUiAppsQuery, an as PayAsYouGoBillingConfiguration, ar as OrganizationProject, at as MoveProjectBody, b as PolicyTagEnablementGuidePath, bn as CreateMaintainerInvitationInput, br as FileStorageProjectsQuery, bt as RemoveProjectFeaturePath, c as UiApp, cn as TopUpSetting, cr as SetOrganizationMetadataInput, ct as ProjectBase, d as UiAppVersion, dn as X402PaymentStatus, dr as SetUpBigQueryBody, dt as ProjectInvitationDetail, en as ConfirmProgrammaticProjectResult, er as OrganizationInvitationPath, et as JoinProjectBody, f as CreateBigqueryServerSideStorageBackendBody, fn as X402_PAYMENT_STATUS, fr as CreateFileStorageAbsBody, ft as ProjectJoinRequestDetail, g as GetStorageBackendProjectsQuery, gn as CompleteSamlSetupBody, gr as FileStorageAbs, gt as ProjectPath, h as CreateSnowflakeStorageBackendResponse, hn as AddMaintainerUserInput, hr as FileStorage, ht as ProjectMetadataItem, i as ReactivateWorkspaceResult, in as CreditPurchase, ir as OrganizationPath, it as ListProjectUsersPath, j as UpdateStorageBackendInput, jn as MaintainerPath, jr as UpdateFileStorageBody, jt as SetProjectMetadataBody, k as UpdateBigqueryStorageBackendInput, kn as MaintainerInvitationPath, kr as RotateFileStorageS3Input, kt as SetProjectLimitsBody, l as UiAppDetail, ln as UpdateStripeCustomerBody, lr as UpdateOrganizationBody, lt as ProjectFeatureWarning, m as CreateSnowflakeStorageBackendBody, mn as AddMaintainerUserBody, mr as CreateFileStorageS3Body, mt as ProjectMetadataInput, n as ProjectRetentionWorkspace, nn as CreatePaymentRequestBody, nr as OrganizationMaintainer, nt as ListProjectInvitationsPath, o as RegisterUiAppBody, on as StripeCustomer, or as OrganizationUserPath, ot as MoveProjectInput, p as CreateBigqueryStorageBackendBody, pn as X402_TOP_UP_TYPE, pr as CreateFileStorageGcsBody, pt as ProjectJoinRequestPath, q as CreateProjectInvitationBody, qn as CreateOrganizationInvitationBody, qr as ProjectJoinRequest, qt as UserDetail, r as ProjectRetentionWorkspaceState, rn as CreditPaymentRequest, rr as OrganizationMetadataItemPath, rt as ListProjectJoinRequestsPath, s as RenameUiAppBody, sn as StripeCustomerCard, sr as SetOrganizationMetadataBody, st as Project, t as ManagementToken, tn as ProgrammaticProjectClaim, tr as OrganizationListItem, tt as JoinProjectInput, u as UiAppRegistrationResult, un as UpdateTopUpSettingBody, ur as UpdateOrganizationInput, ut as ProjectInvitableRole, v as PolicyTagEnablementGuide, vn as CreateMaintainerBody, vr as FileStorageProject, vt as ProjectTemplatePath, w as StorageBackendBigquery, wn as CreateSamlConfigInput, wr as RotateFileStorageAbsPath, wt as RequestProjectAccessBody, x as PolicyTagEnablementGuideQuery, xn as CreateMaintainerOrganizationBody, xr as FileStorageS3, xt as RemoveProjectLimitPath, y as PolicyTagEnablementGuideInput, yn as CreateMaintainerInvitationBody, yr as FileStorageProjectsPage, yt as ProjectWithFeatureWarnings, z as AddProjectUserPath, zn as SetMaintainerMetadataInput, zr as DeletedProjectsListFilter, zt as DeleteUserMetadataPath } from "../types-COb2O9c1.js";
|
|
2
|
+
export { AddMaintainerUserBody, AddMaintainerUserInput, AddOrganizationUserBody, AddOrganizationUserInput, AddProjectUserBody, AddProjectUserPath, AddUserFeatureBody, AddUserFeaturePath, AdminUser, ApplicationToken, ApplicationTokenScope, AssignFeatureBody, AssignProjectTemplateFeatureInput, ChangeProjectUserRoleBody, ChangeProjectUserRoleInput, ChangeProjectUserRolePath, CompleteSamlSetupBody, CompleteSamlSetupInput, ConfirmProgrammaticProjectBody, ConfirmProgrammaticProjectResult, CreateApplicationTokenBody, CreateBigqueryServerSideStorageBackendBody, CreateBigqueryStorageBackendBody, CreateFileStorageAbsBody, CreateFileStorageGcsBody, CreateFileStorageS3Body, CreateMaintainerBody, CreateMaintainerInvitationBody, CreateMaintainerInvitationInput, CreateMaintainerOrganizationBody, CreateMaintainerOrganizationInput, CreateOrganizationInvitationBody, CreateOrganizationInvitationInput, CreateOrganizationProjectBody, CreateOrganizationProjectInput, CreatePaymentRequestBody, CreateProjectFeatureBody, CreateProjectFeaturePath, CreateProjectInvitationBody, CreateProjectInvitationPath, CreateSamlConfigBody, CreateSamlConfigInput, CreateSamlConfigPath, CreateSnowflakeStorageBackendBody, CreateSnowflakeStorageBackendResponse, CreatedApplicationToken, CreditPaymentRequest, CreditPurchase, DeleteProjectInvitationPath, DeleteProjectMetadataPath, DeleteUserMetadataPath, DeletedProject, DeletedProjectPurgeResult, DeletedProjectsListFilter, DeletedProjectsListQuery, DeletedProjectsPage, DeletedProjectsStats, DeletedProjectsStatus, Feature, FeatureAdmin, FeatureProject, FeatureType, FileStorage, FileStorageAbs, FileStorageGcs, FileStorageProject, FileStorageProjectsPage, FileStorageProjectsQuery, FileStorageS3, GetAllFeaturesQuery, GetProjectMetadataPath, GetProjectPath, GetProjectReviewersPath, GetStorageBackendProjectsQuery, GetUiAppsQuery, GetUsersQuery, JoinProjectBody, JoinProjectInput, ListProjectInvitationsPath, ListProjectJoinRequestsPath, ListProjectUsersPath, Maintainer, MaintainerDetail, MaintainerInvitation, MaintainerInvitationDetail, MaintainerInvitationPath, MaintainerMetadataItemPath, MaintainerPath, MaintainerSearchItem, MaintainerUser, MaintainerUserPath, ManagementToken, MetadataItem, MoveProjectBody, MoveProjectInput, Organization, OrganizationDetail, OrganizationInvitation, OrganizationInvitationDetail, OrganizationInvitationPath, OrganizationListItem, OrganizationMaintainer, OrganizationMetadataItemPath, OrganizationPath, OrganizationProject, OrganizationSearchItem, OrganizationUserPath, PayAsYouGoBillingConfiguration, PolicyTagCapability, PolicyTagEnablementGuide, PolicyTagEnablementGuideInput, PolicyTagEnablementGuidePath, PolicyTagEnablementGuideQuery, PolicyTagEnablementGuideSchemaQuery, ProgrammaticProjectClaim, Project, ProjectBase, ProjectFeatureWarning, ProjectInvitableRole, ProjectInvitation, ProjectInvitationDetail, ProjectJoinRequest, ProjectJoinRequestDetail, ProjectJoinRequestPath, ProjectMetadataInput, ProjectMetadataItem, ProjectPath, ProjectRetentionWorkspace, ProjectRetentionWorkspaceState, ProjectSearchItem, ProjectTemplate, ProjectTemplatePath, ProjectWithFeatureWarnings, ReactivateWorkspaceResult, RegisterUiAppBody, RemoveProjectFeaturePath, RemoveProjectLimitPath, RemoveProjectTemplateFeaturePath, RemoveProjectUserPath, RemoveUserFeaturePath, RenameUiAppBody, RequestProjectAccessBody, RequestProjectAccessInput, Reviewer, RotateFileStorageAbsBody, RotateFileStorageAbsInput, RotateFileStorageAbsPath, RotateFileStorageGcsBody, RotateFileStorageGcsInput, RotateFileStorageGcsPath, RotateFileStorageS3Body, RotateFileStorageS3Input, RotateFileStorageS3Path, SamlConfigDetail, SamlConfigPath, SamlConfigSummary, SearchQuery, SearchResult, SetMaintainerMetadataBody, SetMaintainerMetadataInput, SetOrganizationMetadataBody, SetOrganizationMetadataInput, SetProjectDisabledBody, SetProjectDisabledInput, SetProjectLimitsBody, SetProjectLimitsInput, SetProjectMetadataBody, SetProjectMetadataPath, SetProjectReviewersBody, SetProjectReviewersPath, SetUpBigQueryBody, SetUserMetadataBody, SetUserMetadataInput, StorageBackend, StorageBackendBigquery, StorageBackendMaintainer, StorageBackendPath, StorageBackendProject, StripeCustomer, StripeCustomerCard, TopUpSetting, UiApp, UiAppDetail, UiAppRegistrationResult, UiAppVersion, UpdateBigqueryStorageBackendBody, UpdateBigqueryStorageBackendInput, UpdateFileStorageBody, UpdateMaintainerBody, UpdateMaintainerInput, UpdateOrganizationBody, UpdateOrganizationInput, UpdateProjectBody, UpdateProjectInput, UpdateSamlConfigBody, UpdateSamlConfigInput, UpdateStorageBackendBody, UpdateStorageBackendInput, UpdateStripeCustomerBody, UpdateTopUpSettingBody, UpdateUserBody, UpdateUserInput, User, UserDetail, UserListItem, UserMaintainerMembership, UserOrganizationMembership, UserPath, UserProjectMembership, UserSearchItem, X402PaymentStatus, X402_PAYMENT_STATUS, X402_TOP_UP_TYPE };
|
|
@@ -107,11 +107,15 @@ const createAuthMiddleware = ({ accessToken, baseUrl, mintSessionToken = false }
|
|
|
107
107
|
return token;
|
|
108
108
|
};
|
|
109
109
|
const ensureValidTokenDeduped = dedupe(ensureValidToken);
|
|
110
|
-
|
|
110
|
+
const middleware = (next) => async (request) => {
|
|
111
111
|
const validToken = await ensureValidTokenDeduped();
|
|
112
112
|
request.request.headers.set(KeboolaHttpHeader.MANAGEMENT_API_TOKEN, validToken);
|
|
113
113
|
return next(request);
|
|
114
114
|
};
|
|
115
|
+
return {
|
|
116
|
+
middleware,
|
|
117
|
+
getToken: ensureValidTokenDeduped
|
|
118
|
+
};
|
|
115
119
|
};
|
|
116
120
|
// src/clients/management/currentUser/currentUser.ts
|
|
117
121
|
const createCurrentUser = (client) => {
|
|
@@ -334,9 +338,23 @@ const createFileStorage = (client) => {
|
|
|
334
338
|
});
|
|
335
339
|
return data;
|
|
336
340
|
};
|
|
341
|
+
/**
|
|
342
|
+
* One page of the projects using a file storage of any provider, ordered by id.
|
|
343
|
+
*
|
|
344
|
+
* - Every project not yet purged counts, deleted ones awaiting purge included (`isDeleted`).
|
|
345
|
+
* - 404 when no file storage has that id.
|
|
346
|
+
*/
|
|
347
|
+
const getFileStorageProjects = async (fileStorageId, query, signal) => {
|
|
348
|
+
const { data } = await client.get("/manage/file-storage/{fileStorageId}/projects", {
|
|
349
|
+
path: { fileStorageId },
|
|
350
|
+
query: { page: query?.page }
|
|
351
|
+
}, { signal });
|
|
352
|
+
return data;
|
|
353
|
+
};
|
|
337
354
|
return {
|
|
338
355
|
deleteFileStorage,
|
|
339
356
|
updateFileStorage,
|
|
357
|
+
getFileStorageProjects,
|
|
340
358
|
getFileStoragesS3,
|
|
341
359
|
getFileStoragesAbs,
|
|
342
360
|
getFileStoragesGcs,
|
|
@@ -951,6 +969,19 @@ const createProjects = (client) => {
|
|
|
951
969
|
deleteProjectMetadata
|
|
952
970
|
};
|
|
953
971
|
};
|
|
972
|
+
// src/clients/management/search/search.ts
|
|
973
|
+
const createSearch = (client) => {
|
|
974
|
+
/** Hits grouped by type; a type the caller may not read is absent rather than empty. */
|
|
975
|
+
const find = async (query, signal) => {
|
|
976
|
+
const { data } = await client.get("/manage/search", { query: {
|
|
977
|
+
q: query.q,
|
|
978
|
+
filter: query.filter,
|
|
979
|
+
page: query.page
|
|
980
|
+
} }, { signal });
|
|
981
|
+
return data;
|
|
982
|
+
};
|
|
983
|
+
return { find };
|
|
984
|
+
};
|
|
954
985
|
// src/clients/management/snowflakePartnerConnect/snowflakePartnerConnect.ts
|
|
955
986
|
const createSnowflakePartnerConnect = (client) => {
|
|
956
987
|
/** `queriesToRun` lists what the Snowflake account admin still has to run before `unlock`. */
|
|
@@ -1224,11 +1255,12 @@ const createAuthHeaders = (auth) => {
|
|
|
1224
1255
|
return { [HttpHeader.AUTHORIZATION]: `Bearer ${auth.token}` };
|
|
1225
1256
|
};
|
|
1226
1257
|
const createManagementClient = ({ baseUrl, middlewares = [], auth, withAuthMiddleware = true }) => {
|
|
1227
|
-
const
|
|
1258
|
+
const tokenAuth = withAuthMiddleware && auth.type === "management-token" ? createAuthMiddleware({
|
|
1228
1259
|
baseUrl,
|
|
1229
1260
|
accessToken: auth.token,
|
|
1230
1261
|
mintSessionToken: auth.mintSessionToken
|
|
1231
|
-
})
|
|
1262
|
+
}) : null;
|
|
1263
|
+
const allMiddlewares = tokenAuth ? [...middlewares, tokenAuth.middleware] : middlewares;
|
|
1232
1264
|
const headers = withAuthMiddleware ? void 0 : createAuthHeaders(auth);
|
|
1233
1265
|
const client = createOpenapiFetchClient({
|
|
1234
1266
|
baseUrl,
|
|
@@ -1254,6 +1286,13 @@ const createManagementClient = ({ baseUrl, middlewares = [], auth, withAuthMiddl
|
|
|
1254
1286
|
const { data } = await genericClient.get("/health-check", {}, { signal });
|
|
1255
1287
|
return data;
|
|
1256
1288
|
};
|
|
1289
|
+
/**
|
|
1290
|
+
* The Manage API token the client currently sends, verified and re-minted as it expires.
|
|
1291
|
+
*
|
|
1292
|
+
* - For services that accept a Manage token, e.g. oauth-service's organization credentials.
|
|
1293
|
+
* - `null` when the client authenticates otherwise (bearer, or no auth middleware).
|
|
1294
|
+
*/
|
|
1295
|
+
const getManageToken = tokenAuth?.getToken ?? null;
|
|
1257
1296
|
return {
|
|
1258
1297
|
applicationTokens: createApplicationTokens(client),
|
|
1259
1298
|
healthCheck,
|
|
@@ -1266,15 +1305,17 @@ const createManagementClient = ({ baseUrl, middlewares = [], auth, withAuthMiddl
|
|
|
1266
1305
|
fileStorage: createFileStorage(client),
|
|
1267
1306
|
gcpPartner: createGcpPartner(client),
|
|
1268
1307
|
projects: createProjects(client),
|
|
1308
|
+
search: createSearch(client),
|
|
1269
1309
|
snowflakePartnerConnect: createSnowflakePartnerConnect(client),
|
|
1270
1310
|
programmaticProjects: createProgrammaticProjects(client),
|
|
1271
1311
|
storageBackends: createStorageBackends(client),
|
|
1272
1312
|
uiApps: createUiApps(client),
|
|
1273
1313
|
users: createUsers(client),
|
|
1274
1314
|
verifyToken,
|
|
1315
|
+
getManageToken,
|
|
1275
1316
|
workspaces: createWorkspaces(authedGenericClient)
|
|
1276
1317
|
};
|
|
1277
1318
|
};
|
|
1278
1319
|
export { isManagementClientAuthError as n, isManagementSessionMintError as r, createManagementClient as t };
|
|
1279
1320
|
|
|
1280
|
-
//# sourceMappingURL=management-
|
|
1321
|
+
//# sourceMappingURL=management-BAfg8BmK.js.map
|