@keboola/api-client 17.0.0 → 18.0.1
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/API-SURFACE.md +16 -1
- package/dist/index.cjs +9 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +63 -21
- package/dist/index.d.ts +63 -21
- package/dist/index.js +9 -7
- package/dist/index.js.map +1 -1
- package/dist/metastore/index.d.cts +1 -1
- package/dist/metastore/index.d.ts +1 -1
- package/dist/metastore/types.d.cts +1 -1
- package/dist/metastore/types.d.ts +1 -1
- package/dist/sdk/tag/index.d.cts +1 -1
- package/dist/sdk/tag/index.d.ts +1 -1
- package/dist/sdk/tag/types.d.cts +1 -1
- package/dist/sdk/tag/types.d.ts +1 -1
- package/dist/storage/types.d.cts +2 -2
- package/dist/storage/types.d.ts +2 -2
- package/dist/{types-DTkxk0fW.d.cts → types-BCPmAXOQ.d.cts} +4 -4
- package/dist/{types-Mghz1gMD.d.ts → types-BowqtZ7v.d.ts} +4 -4
- package/package.json +2 -2
- package/surface/metastore.md +24 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { c as components$
|
|
1
|
+
import { c as components$9, A as AssertSamlBody, I as InitiateSamlBody, C as CreatePatBody, E as ExchangePatBody, R as RevokePatPath, a as CreateDeviceAuthorizationBody, b as ApproveDeviceAuthorizationBody, G as GetDeviceAuthorizationTokenBody, S as SudoBody, d as GetPkceTokenBody, e as RevokeSessionPath, f as RevokeTokenBody } from './types-59-LNg5i.cjs';
|
|
2
2
|
import { L as LoginInput, O as OidcInput, M as MfaCodeInput, a as MfaWebauthnInput } from './schemas-DVB6wC7L.cjs';
|
|
3
3
|
import { M as MiddlewareFn, c as BaseClientOptions, A as ApiResponse, H as HttpMethod } from './types-BLJoO6YL.cjs';
|
|
4
4
|
export { a as ApiError } from './types-BLJoO6YL.cjs';
|
|
5
5
|
import { D as DeletedProjectsListQuery, a as DeletedProject, b as DeletedProjectPurgeResult, M as Maintainer, c as MaintainerDetail, C as CreateMaintainerBody, U as UpdateMaintainerBody, d as MaintainerUser, A as AddMaintainerUserBody, e as CreateMaintainerInvitationBody, f as CreateMaintainerOrganizationBody, g as MetadataItem, S as SetMaintainerMetadataBody, O as OrganizationDetail, h as UpdateOrganizationBody, i as AddOrganizationUserBody, j as CreateOrganizationInvitationBody, P as Project, k as CreateOrganizationProjectBody, l as SetOrganizationMetadataBody, G as GetAllFeaturesQuery, F as Feature, m as FeatureProject, n as FeatureAdmin, o as GetProjectPath, p as CreateProjectFeaturePath, q as CreateProjectFeatureBody, R as RemoveProjectFeaturePath, r as User, L as ListProjectUsersPath, s as ListProjectInvitationsPath, t as CreateProjectInvitationPath, u as CreateProjectInvitationBody, v as DeleteProjectInvitationPath, w as AddProjectUserPath, x as AddProjectUserBody, y as RemoveProjectUserPath, z as GetProjectMetadataPath, B as ProjectMetadataItem, E as SetProjectMetadataPath, H as SetProjectMetadataBody, I as GetProjectReviewersPath, J as Reviewer, K as SetProjectReviewersPath, N as SetProjectReviewersBody, Q as UpdateProjectBody, T as MoveProjectBody, V as SetProjectDisabledBody, W as AddUserFeatureBody, X as AddUserFeaturePath, Y as RemoveUserFeaturePath } from './types-YEfQ5pAy.cjs';
|
|
6
|
-
import { S as StorageToken, c as components$
|
|
6
|
+
import { S as StorageToken, c as components$8, C as CreateTokenBody, U as UpdateTokenBody, a as ShareTokenBody } from './types-CMEwVQ78.cjs';
|
|
7
7
|
import { StorageTableScope as StorageTable } from './domain/storageTable/index.cjs';
|
|
8
|
+
import { M as MetaObject, G as GetMetaObjectsPath, a as MetaStoreListResponse, b as GetMetaObjectRevisionsPath, c as GetMetaObjectPath, d as MetaStoreObjectResponse, C as CreateMetaObjectInput, D as DeleteMetaObjectPath, U as UpdateMetaObjectInput, R as ReplaceMetaObjectInput, e as GetMetaObjectRevisionPath, f as DeleteMetaObjectRevisionPath, g as GetSchemaPath, h as components$7, i as GetVersionedSchemaPath } from './types-BCPmAXOQ.cjs';
|
|
8
9
|
import { L as ListSubscriptionsQuery, c as components$6, G as GetSubscriptionPath, C as CreateSubscriptionBody, D as DeleteSubscriptionPath } from './types-BVldT2vs.cjs';
|
|
9
10
|
import { P as PaginationQuery, c as components$5, C as CreateSourceRequestBody, U as UpdateSourceRequestBody, D as DeleteSourceQuery, a as UpdateSourceSettingsRequestBody, T as TestSourceQuery, b as CreateSinkRequestBody, d as UpdateSinkRequestBody, e as UpdateSinkSettingsRequestBody, S as SinkStatisticsFilesQuery } from './types-DFWnAftN.cjs';
|
|
10
11
|
import { GetSchedulesQuery, ActivateScheduleBody, SchedulePath, ConfigurationPath as ConfigurationPath$1 } from './scheduler/types.cjs';
|
|
@@ -24,7 +25,6 @@ import { G as GetDataAppRunsPath, a as GetDataAppRunsQuery, b as GetDataAppRunPa
|
|
|
24
25
|
export { p as parseLogLines } from './utils-DDERw8dM.cjs';
|
|
25
26
|
import { CreateVariableBody, VariableWithHash, DeleteVariablePath, GetVariablesQuery, GetVariablesByBranchId } from './vault/types.cjs';
|
|
26
27
|
import { a as EncryptionCtx } from './types-DsqDUWJn.cjs';
|
|
27
|
-
import { M as MetaObject } from './types-DTkxk0fW.cjs';
|
|
28
28
|
import { TagWithBindings, TagData, CreateMetaObjectMetaDataInput, UpdateMetaObjectMetaDataInput } from './sdk/tag/types.cjs';
|
|
29
29
|
import * as zod_v4_core from 'zod/v4/core';
|
|
30
30
|
import * as zod from 'zod';
|
|
@@ -3672,9 +3672,9 @@ type ServiceUrls = Partial<Record<ServiceId, (url: string) => string | undefined
|
|
|
3672
3672
|
* Service clients reached through the registry — the key is the `clientName`
|
|
3673
3673
|
* the user accesses them by (e.g. `api.dataScience`), not the `serviceId`.
|
|
3674
3674
|
*/
|
|
3675
|
-
type ServiceClientName = 'vault' | 'dataScience' | 'encryption' | 'editor' | 'syncActions' | 'telemetry' | 'queryService' | 'queue' | 'chat' | 'ai' | 'import' | 'kaiAgent' | 'oauth' | 'stream' | 'notifications' | 'scheduler';
|
|
3675
|
+
type ServiceClientName = 'vault' | 'dataScience' | 'encryption' | 'editor' | 'syncActions' | 'telemetry' | 'queryService' | 'queue' | 'chat' | 'ai' | 'import' | 'kaiAgent' | 'oauth' | 'stream' | 'notifications' | 'scheduler' | 'metastore';
|
|
3676
3676
|
/** Clients instantiated directly (not stack-discovered), keyed by their property name. */
|
|
3677
|
-
type NonServiceClientName = 'storage' | 'management' | '
|
|
3677
|
+
type NonServiceClientName = 'storage' | 'management' | 'auth';
|
|
3678
3678
|
type MiddlewareTarget = ServiceClientName | NonServiceClientName;
|
|
3679
3679
|
type Middlewares = MiddlewareFn[] | ({
|
|
3680
3680
|
all?: MiddlewareFn[];
|
|
@@ -3685,7 +3685,6 @@ type ApiClientOptions = {
|
|
|
3685
3685
|
storageApi: string;
|
|
3686
3686
|
managementApi?: string;
|
|
3687
3687
|
};
|
|
3688
|
-
metastoreBaseUrl: string;
|
|
3689
3688
|
middlewares?: Middlewares;
|
|
3690
3689
|
clientServiceUrls?: ServiceUrls;
|
|
3691
3690
|
} & BaseClientOptions;
|
|
@@ -3714,7 +3713,7 @@ declare const createLiveProject: ({ initialToken, verify, }: {
|
|
|
3714
3713
|
}) => void) => () => void;
|
|
3715
3714
|
middleware: MiddlewareFn;
|
|
3716
3715
|
};
|
|
3717
|
-
declare const createClients: ({ baseUrl, token,
|
|
3716
|
+
declare const createClients: ({ baseUrl, token, clientServiceUrls, middlewares, }: ApiClientOptions) => Promise<{
|
|
3718
3717
|
sdk: {
|
|
3719
3718
|
configuration: {
|
|
3720
3719
|
getConfiguration: <ComponentId extends RegisteredComponentId>(path: ConfigurationPath<ComponentId>) => Promise<{
|
|
@@ -12117,6 +12116,49 @@ declare const createClients: ({ baseUrl, token, metastoreBaseUrl, clientServiceU
|
|
|
12117
12116
|
}>;
|
|
12118
12117
|
deleteSubscription: (subscriptionId: DeleteSubscriptionPath["subscriptionId"], signal?: AbortSignal) => Promise<void>;
|
|
12119
12118
|
};
|
|
12119
|
+
metastore: {
|
|
12120
|
+
healthCheck: (signal?: AbortSignal) => Promise<{
|
|
12121
|
+
service?: string;
|
|
12122
|
+
status?: string;
|
|
12123
|
+
timestamp?: string;
|
|
12124
|
+
version?: string;
|
|
12125
|
+
}>;
|
|
12126
|
+
repository: {
|
|
12127
|
+
getMetaObjects: <TData extends Record<string, unknown>, TDataOptional extends boolean = false>(input: GetMetaObjectsPath, signal?: AbortSignal) => Promise<MetaStoreListResponse<TData, TDataOptional>>;
|
|
12128
|
+
getMetaObjectRevisions: <TData extends Record<string, unknown>, TDataOptional extends boolean = false>(input: GetMetaObjectRevisionsPath, signal?: AbortSignal) => Promise<MetaStoreListResponse<TData, TDataOptional>>;
|
|
12129
|
+
getMetaObject: <TData extends Record<string, unknown>, TDataOptional extends boolean = false>(input: GetMetaObjectPath, signal?: AbortSignal) => Promise<MetaStoreObjectResponse<TData, TDataOptional>>;
|
|
12130
|
+
createMetaObject: <TData extends Record<string, unknown>, TDataOptional extends boolean = false>({ objectType, data, ...body }: CreateMetaObjectInput<TData>) => Promise<MetaStoreObjectResponse<TData, TDataOptional>>;
|
|
12131
|
+
deleteMetaObject: (input: DeleteMetaObjectPath) => Promise<never>;
|
|
12132
|
+
updateMetaObject: <TData extends Record<string, unknown>, TDataOptional extends boolean = false>({ objectType, UUID, data, ...body }: UpdateMetaObjectInput<TData>) => Promise<MetaStoreObjectResponse<TData, TDataOptional>>;
|
|
12133
|
+
replaceMetaObject: <TData extends Record<string, unknown>, TDataOptional extends boolean = false>({ objectType, UUID, data, ...body }: ReplaceMetaObjectInput<TData>) => Promise<MetaStoreObjectResponse<TData, TDataOptional>>;
|
|
12134
|
+
getMetaObjectRevision: <TData extends Record<string, unknown>, TDataOptional extends boolean = false>(input: GetMetaObjectRevisionPath, signal?: AbortSignal) => Promise<MetaStoreObjectResponse<TData, TDataOptional>>;
|
|
12135
|
+
deleteMetaObjectRevision: (input: DeleteMetaObjectRevisionPath) => Promise<never>;
|
|
12136
|
+
};
|
|
12137
|
+
schema: {
|
|
12138
|
+
getSchema: (input: GetSchemaPath, signal?: AbortSignal) => Promise<{
|
|
12139
|
+
createdAt?: string;
|
|
12140
|
+
createdBy?: components$7["schemas"]["models.JSONData"];
|
|
12141
|
+
description?: string;
|
|
12142
|
+
id?: string;
|
|
12143
|
+
isDefault?: boolean;
|
|
12144
|
+
objectType?: string;
|
|
12145
|
+
schema?: components$7["schemas"]["models.JSONData"];
|
|
12146
|
+
updatedAt?: string;
|
|
12147
|
+
version?: string;
|
|
12148
|
+
}>;
|
|
12149
|
+
getVersionedSchema: (input: GetVersionedSchemaPath, signal?: AbortSignal) => Promise<{
|
|
12150
|
+
createdAt?: string;
|
|
12151
|
+
createdBy?: components$7["schemas"]["models.JSONData"];
|
|
12152
|
+
description?: string;
|
|
12153
|
+
id?: string;
|
|
12154
|
+
isDefault?: boolean;
|
|
12155
|
+
objectType?: string;
|
|
12156
|
+
schema?: components$7["schemas"]["models.JSONData"];
|
|
12157
|
+
updatedAt?: string;
|
|
12158
|
+
version?: string;
|
|
12159
|
+
}>;
|
|
12160
|
+
};
|
|
12161
|
+
};
|
|
12120
12162
|
context: {
|
|
12121
12163
|
stack: {
|
|
12122
12164
|
services: Service[];
|
|
@@ -13398,7 +13440,7 @@ declare const createClients: ({ baseUrl, token, metastoreBaseUrl, clientServiceU
|
|
|
13398
13440
|
startTime?: string | null;
|
|
13399
13441
|
endTime?: string | null;
|
|
13400
13442
|
runId: string;
|
|
13401
|
-
results?: components$
|
|
13443
|
+
results?: components$8["schemas"]["BucketListingUpdateJobResponse"] | components$8["schemas"]["BucketListingCreateJobResult"] | components$8["schemas"]["BucketListingDeleteResponse"] | components$8["schemas"]["RefreshJobResponse"] | components$8["schemas"]["FileDeleteResponse"] | components$8["schemas"]["TableSnapshotCreateJobResult"] | components$8["schemas"]["TableSwapResult"] | components$8["schemas"]["TableCreateResponse"] | components$8["schemas"]["TableExportJobResponse"];
|
|
13402
13444
|
creatorToken: {
|
|
13403
13445
|
id?: string;
|
|
13404
13446
|
description?: string;
|
|
@@ -14260,7 +14302,7 @@ declare const createClients: ({ baseUrl, token, metastoreBaseUrl, clientServiceU
|
|
|
14260
14302
|
tokenType: string;
|
|
14261
14303
|
expiresIn: number;
|
|
14262
14304
|
sessionId: string;
|
|
14263
|
-
user: components$
|
|
14305
|
+
user: components$9["schemas"]["UserLoggedInResponse"];
|
|
14264
14306
|
}>;
|
|
14265
14307
|
verifyWithWebauthn: (input: MfaWebauthnInput, signal?: AbortSignal) => Promise<{
|
|
14266
14308
|
accessToken: string;
|
|
@@ -14268,7 +14310,7 @@ declare const createClients: ({ baseUrl, token, metastoreBaseUrl, clientServiceU
|
|
|
14268
14310
|
tokenType: string;
|
|
14269
14311
|
expiresIn: number;
|
|
14270
14312
|
sessionId: string;
|
|
14271
|
-
user: components$
|
|
14313
|
+
user: components$9["schemas"]["UserLoggedInResponse"];
|
|
14272
14314
|
}>;
|
|
14273
14315
|
regenerateRecoveryCodes: (signal?: AbortSignal) => Promise<{
|
|
14274
14316
|
codes: string[];
|
|
@@ -14281,7 +14323,7 @@ declare const createClients: ({ baseUrl, token, metastoreBaseUrl, clientServiceU
|
|
|
14281
14323
|
tokenType: string;
|
|
14282
14324
|
expiresIn: number;
|
|
14283
14325
|
sessionId: string;
|
|
14284
|
-
user: components$
|
|
14326
|
+
user: components$9["schemas"]["UserLoggedInResponse"];
|
|
14285
14327
|
} | {
|
|
14286
14328
|
mfaRequired: boolean;
|
|
14287
14329
|
mfaType: string;
|
|
@@ -14301,7 +14343,7 @@ declare const createClients: ({ baseUrl, token, metastoreBaseUrl, clientServiceU
|
|
|
14301
14343
|
accessToken: string;
|
|
14302
14344
|
tokenType: string;
|
|
14303
14345
|
expiresIn: number;
|
|
14304
|
-
pat: components$
|
|
14346
|
+
pat: components$9["schemas"]["PatItemResponse"];
|
|
14305
14347
|
}>;
|
|
14306
14348
|
exchange: (body?: ExchangePatBody, signal?: AbortSignal) => Promise<{
|
|
14307
14349
|
accessToken: string;
|
|
@@ -14312,11 +14354,11 @@ declare const createClients: ({ baseUrl, token, metastoreBaseUrl, clientServiceU
|
|
|
14312
14354
|
parentTokenId: string;
|
|
14313
14355
|
parentTokenType: "session" | "pat";
|
|
14314
14356
|
expiresAt: string;
|
|
14315
|
-
pat: components$
|
|
14357
|
+
pat: components$9["schemas"]["PatItemResponse"];
|
|
14316
14358
|
}>;
|
|
14317
14359
|
revoke: (id: RevokePatPath["id"], signal?: AbortSignal) => Promise<void>;
|
|
14318
14360
|
getAll: (signal?: AbortSignal) => Promise<{
|
|
14319
|
-
items: components$
|
|
14361
|
+
items: components$9["schemas"]["PatItemResponse"][];
|
|
14320
14362
|
}>;
|
|
14321
14363
|
};
|
|
14322
14364
|
device: {
|
|
@@ -14331,7 +14373,7 @@ declare const createClients: ({ baseUrl, token, metastoreBaseUrl, clientServiceU
|
|
|
14331
14373
|
approve: (body: ApproveDeviceAuthorizationBody, signal?: AbortSignal) => Promise<{
|
|
14332
14374
|
status: "approved" | "denied";
|
|
14333
14375
|
idempotent: boolean;
|
|
14334
|
-
decision: components$
|
|
14376
|
+
decision: components$9["schemas"]["DeviceApprovalDecision"];
|
|
14335
14377
|
}>;
|
|
14336
14378
|
getToken: (body: GetDeviceAuthorizationTokenBody, signal?: AbortSignal) => Promise<{
|
|
14337
14379
|
accessToken: string;
|
|
@@ -14339,7 +14381,7 @@ declare const createClients: ({ baseUrl, token, metastoreBaseUrl, clientServiceU
|
|
|
14339
14381
|
tokenType: string;
|
|
14340
14382
|
expiresIn: number;
|
|
14341
14383
|
sessionId: string;
|
|
14342
|
-
user: components$
|
|
14384
|
+
user: components$9["schemas"]["UserLoggedInResponse"];
|
|
14343
14385
|
}>;
|
|
14344
14386
|
};
|
|
14345
14387
|
sudo: {
|
|
@@ -14361,12 +14403,12 @@ declare const createClients: ({ baseUrl, token, metastoreBaseUrl, clientServiceU
|
|
|
14361
14403
|
tokenType: string;
|
|
14362
14404
|
expiresIn: number;
|
|
14363
14405
|
sessionId: string;
|
|
14364
|
-
user: components$
|
|
14406
|
+
user: components$9["schemas"]["UserLoggedInResponse"];
|
|
14365
14407
|
}>;
|
|
14366
14408
|
};
|
|
14367
14409
|
session: {
|
|
14368
14410
|
getAll: (signal?: AbortSignal) => Promise<{
|
|
14369
|
-
sessions?: components$
|
|
14411
|
+
sessions?: components$9["schemas"]["SessionItemResponse"][];
|
|
14370
14412
|
}>;
|
|
14371
14413
|
revoke: (sessionId: RevokeSessionPath["sessionId"], signal?: AbortSignal) => Promise<void>;
|
|
14372
14414
|
revokeAll: (signal?: AbortSignal) => Promise<void>;
|
|
@@ -14378,11 +14420,11 @@ declare const createClients: ({ baseUrl, token, metastoreBaseUrl, clientServiceU
|
|
|
14378
14420
|
tokenType: string;
|
|
14379
14421
|
expiresIn: number;
|
|
14380
14422
|
sessionId: string;
|
|
14381
|
-
user: components$
|
|
14423
|
+
user: components$9["schemas"]["UserLoggedInResponse"];
|
|
14382
14424
|
}>;
|
|
14383
14425
|
introspect: (token?: string, signal?: AbortSignal) => Promise<{
|
|
14384
14426
|
sessionId: string;
|
|
14385
|
-
user: components$
|
|
14427
|
+
user: components$9["schemas"]["UserLoggedInResponse"];
|
|
14386
14428
|
grantType: string;
|
|
14387
14429
|
sudoVerified: boolean;
|
|
14388
14430
|
createdAt: string;
|
|
@@ -14390,7 +14432,7 @@ declare const createClients: ({ baseUrl, token, metastoreBaseUrl, clientServiceU
|
|
|
14390
14432
|
lastUsedAt?: string | null;
|
|
14391
14433
|
lastUsedIp?: string | null;
|
|
14392
14434
|
userAgent?: string | null;
|
|
14393
|
-
projects: components$
|
|
14435
|
+
projects: components$9["schemas"]["ProjectAccessItem"][];
|
|
14394
14436
|
}>;
|
|
14395
14437
|
revoke: (body: RevokeTokenBody, signal?: AbortSignal) => Promise<void>;
|
|
14396
14438
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { c as components$
|
|
1
|
+
import { c as components$9, A as AssertSamlBody, I as InitiateSamlBody, C as CreatePatBody, E as ExchangePatBody, R as RevokePatPath, a as CreateDeviceAuthorizationBody, b as ApproveDeviceAuthorizationBody, G as GetDeviceAuthorizationTokenBody, S as SudoBody, d as GetPkceTokenBody, e as RevokeSessionPath, f as RevokeTokenBody } from './types-oJnjpvPi.js';
|
|
2
2
|
import { L as LoginInput, O as OidcInput, M as MfaCodeInput, a as MfaWebauthnInput } from './schemas-DVB6wC7L.js';
|
|
3
3
|
import { M as MiddlewareFn, c as BaseClientOptions, A as ApiResponse, H as HttpMethod } from './types-BLJoO6YL.js';
|
|
4
4
|
export { a as ApiError } from './types-BLJoO6YL.js';
|
|
5
5
|
import { D as DeletedProjectsListQuery, a as DeletedProject, b as DeletedProjectPurgeResult, M as Maintainer, c as MaintainerDetail, C as CreateMaintainerBody, U as UpdateMaintainerBody, d as MaintainerUser, A as AddMaintainerUserBody, e as CreateMaintainerInvitationBody, f as CreateMaintainerOrganizationBody, g as MetadataItem, S as SetMaintainerMetadataBody, O as OrganizationDetail, h as UpdateOrganizationBody, i as AddOrganizationUserBody, j as CreateOrganizationInvitationBody, P as Project, k as CreateOrganizationProjectBody, l as SetOrganizationMetadataBody, G as GetAllFeaturesQuery, F as Feature, m as FeatureProject, n as FeatureAdmin, o as GetProjectPath, p as CreateProjectFeaturePath, q as CreateProjectFeatureBody, R as RemoveProjectFeaturePath, r as User, L as ListProjectUsersPath, s as ListProjectInvitationsPath, t as CreateProjectInvitationPath, u as CreateProjectInvitationBody, v as DeleteProjectInvitationPath, w as AddProjectUserPath, x as AddProjectUserBody, y as RemoveProjectUserPath, z as GetProjectMetadataPath, B as ProjectMetadataItem, E as SetProjectMetadataPath, H as SetProjectMetadataBody, I as GetProjectReviewersPath, J as Reviewer, K as SetProjectReviewersPath, N as SetProjectReviewersBody, Q as UpdateProjectBody, T as MoveProjectBody, V as SetProjectDisabledBody, W as AddUserFeatureBody, X as AddUserFeaturePath, Y as RemoveUserFeaturePath } from './types-YEfQ5pAy.js';
|
|
6
|
-
import { S as StorageToken, c as components$
|
|
6
|
+
import { S as StorageToken, c as components$8, C as CreateTokenBody, U as UpdateTokenBody, a as ShareTokenBody } from './types-GmAeMsok.js';
|
|
7
7
|
import { StorageTableScope as StorageTable } from './domain/storageTable/index.js';
|
|
8
|
+
import { M as MetaObject, G as GetMetaObjectsPath, a as MetaStoreListResponse, b as GetMetaObjectRevisionsPath, c as GetMetaObjectPath, d as MetaStoreObjectResponse, C as CreateMetaObjectInput, D as DeleteMetaObjectPath, U as UpdateMetaObjectInput, R as ReplaceMetaObjectInput, e as GetMetaObjectRevisionPath, f as DeleteMetaObjectRevisionPath, g as GetSchemaPath, h as components$7, i as GetVersionedSchemaPath } from './types-BowqtZ7v.js';
|
|
8
9
|
import { L as ListSubscriptionsQuery, c as components$6, G as GetSubscriptionPath, C as CreateSubscriptionBody, D as DeleteSubscriptionPath } from './types-CS8MYc2k.js';
|
|
9
10
|
import { P as PaginationQuery, c as components$5, C as CreateSourceRequestBody, U as UpdateSourceRequestBody, D as DeleteSourceQuery, a as UpdateSourceSettingsRequestBody, T as TestSourceQuery, b as CreateSinkRequestBody, d as UpdateSinkRequestBody, e as UpdateSinkSettingsRequestBody, S as SinkStatisticsFilesQuery } from './types-Dv3vN7M9.js';
|
|
10
11
|
import { GetSchedulesQuery, ActivateScheduleBody, SchedulePath, ConfigurationPath as ConfigurationPath$1 } from './scheduler/types.js';
|
|
@@ -24,7 +25,6 @@ import { G as GetDataAppRunsPath, a as GetDataAppRunsQuery, b as GetDataAppRunPa
|
|
|
24
25
|
export { p as parseLogLines } from './utils-C7eSJKtG.js';
|
|
25
26
|
import { CreateVariableBody, VariableWithHash, DeleteVariablePath, GetVariablesQuery, GetVariablesByBranchId } from './vault/types.js';
|
|
26
27
|
import { a as EncryptionCtx } from './types-D64zThBJ.js';
|
|
27
|
-
import { M as MetaObject } from './types-Mghz1gMD.js';
|
|
28
28
|
import { TagWithBindings, TagData, CreateMetaObjectMetaDataInput, UpdateMetaObjectMetaDataInput } from './sdk/tag/types.js';
|
|
29
29
|
import * as zod_v4_core from 'zod/v4/core';
|
|
30
30
|
import * as zod from 'zod';
|
|
@@ -3672,9 +3672,9 @@ type ServiceUrls = Partial<Record<ServiceId, (url: string) => string | undefined
|
|
|
3672
3672
|
* Service clients reached through the registry — the key is the `clientName`
|
|
3673
3673
|
* the user accesses them by (e.g. `api.dataScience`), not the `serviceId`.
|
|
3674
3674
|
*/
|
|
3675
|
-
type ServiceClientName = 'vault' | 'dataScience' | 'encryption' | 'editor' | 'syncActions' | 'telemetry' | 'queryService' | 'queue' | 'chat' | 'ai' | 'import' | 'kaiAgent' | 'oauth' | 'stream' | 'notifications' | 'scheduler';
|
|
3675
|
+
type ServiceClientName = 'vault' | 'dataScience' | 'encryption' | 'editor' | 'syncActions' | 'telemetry' | 'queryService' | 'queue' | 'chat' | 'ai' | 'import' | 'kaiAgent' | 'oauth' | 'stream' | 'notifications' | 'scheduler' | 'metastore';
|
|
3676
3676
|
/** Clients instantiated directly (not stack-discovered), keyed by their property name. */
|
|
3677
|
-
type NonServiceClientName = 'storage' | 'management' | '
|
|
3677
|
+
type NonServiceClientName = 'storage' | 'management' | 'auth';
|
|
3678
3678
|
type MiddlewareTarget = ServiceClientName | NonServiceClientName;
|
|
3679
3679
|
type Middlewares = MiddlewareFn[] | ({
|
|
3680
3680
|
all?: MiddlewareFn[];
|
|
@@ -3685,7 +3685,6 @@ type ApiClientOptions = {
|
|
|
3685
3685
|
storageApi: string;
|
|
3686
3686
|
managementApi?: string;
|
|
3687
3687
|
};
|
|
3688
|
-
metastoreBaseUrl: string;
|
|
3689
3688
|
middlewares?: Middlewares;
|
|
3690
3689
|
clientServiceUrls?: ServiceUrls;
|
|
3691
3690
|
} & BaseClientOptions;
|
|
@@ -3714,7 +3713,7 @@ declare const createLiveProject: ({ initialToken, verify, }: {
|
|
|
3714
3713
|
}) => void) => () => void;
|
|
3715
3714
|
middleware: MiddlewareFn;
|
|
3716
3715
|
};
|
|
3717
|
-
declare const createClients: ({ baseUrl, token,
|
|
3716
|
+
declare const createClients: ({ baseUrl, token, clientServiceUrls, middlewares, }: ApiClientOptions) => Promise<{
|
|
3718
3717
|
sdk: {
|
|
3719
3718
|
configuration: {
|
|
3720
3719
|
getConfiguration: <ComponentId extends RegisteredComponentId>(path: ConfigurationPath<ComponentId>) => Promise<{
|
|
@@ -12117,6 +12116,49 @@ declare const createClients: ({ baseUrl, token, metastoreBaseUrl, clientServiceU
|
|
|
12117
12116
|
}>;
|
|
12118
12117
|
deleteSubscription: (subscriptionId: DeleteSubscriptionPath["subscriptionId"], signal?: AbortSignal) => Promise<void>;
|
|
12119
12118
|
};
|
|
12119
|
+
metastore: {
|
|
12120
|
+
healthCheck: (signal?: AbortSignal) => Promise<{
|
|
12121
|
+
service?: string;
|
|
12122
|
+
status?: string;
|
|
12123
|
+
timestamp?: string;
|
|
12124
|
+
version?: string;
|
|
12125
|
+
}>;
|
|
12126
|
+
repository: {
|
|
12127
|
+
getMetaObjects: <TData extends Record<string, unknown>, TDataOptional extends boolean = false>(input: GetMetaObjectsPath, signal?: AbortSignal) => Promise<MetaStoreListResponse<TData, TDataOptional>>;
|
|
12128
|
+
getMetaObjectRevisions: <TData extends Record<string, unknown>, TDataOptional extends boolean = false>(input: GetMetaObjectRevisionsPath, signal?: AbortSignal) => Promise<MetaStoreListResponse<TData, TDataOptional>>;
|
|
12129
|
+
getMetaObject: <TData extends Record<string, unknown>, TDataOptional extends boolean = false>(input: GetMetaObjectPath, signal?: AbortSignal) => Promise<MetaStoreObjectResponse<TData, TDataOptional>>;
|
|
12130
|
+
createMetaObject: <TData extends Record<string, unknown>, TDataOptional extends boolean = false>({ objectType, data, ...body }: CreateMetaObjectInput<TData>) => Promise<MetaStoreObjectResponse<TData, TDataOptional>>;
|
|
12131
|
+
deleteMetaObject: (input: DeleteMetaObjectPath) => Promise<never>;
|
|
12132
|
+
updateMetaObject: <TData extends Record<string, unknown>, TDataOptional extends boolean = false>({ objectType, UUID, data, ...body }: UpdateMetaObjectInput<TData>) => Promise<MetaStoreObjectResponse<TData, TDataOptional>>;
|
|
12133
|
+
replaceMetaObject: <TData extends Record<string, unknown>, TDataOptional extends boolean = false>({ objectType, UUID, data, ...body }: ReplaceMetaObjectInput<TData>) => Promise<MetaStoreObjectResponse<TData, TDataOptional>>;
|
|
12134
|
+
getMetaObjectRevision: <TData extends Record<string, unknown>, TDataOptional extends boolean = false>(input: GetMetaObjectRevisionPath, signal?: AbortSignal) => Promise<MetaStoreObjectResponse<TData, TDataOptional>>;
|
|
12135
|
+
deleteMetaObjectRevision: (input: DeleteMetaObjectRevisionPath) => Promise<never>;
|
|
12136
|
+
};
|
|
12137
|
+
schema: {
|
|
12138
|
+
getSchema: (input: GetSchemaPath, signal?: AbortSignal) => Promise<{
|
|
12139
|
+
createdAt?: string;
|
|
12140
|
+
createdBy?: components$7["schemas"]["models.JSONData"];
|
|
12141
|
+
description?: string;
|
|
12142
|
+
id?: string;
|
|
12143
|
+
isDefault?: boolean;
|
|
12144
|
+
objectType?: string;
|
|
12145
|
+
schema?: components$7["schemas"]["models.JSONData"];
|
|
12146
|
+
updatedAt?: string;
|
|
12147
|
+
version?: string;
|
|
12148
|
+
}>;
|
|
12149
|
+
getVersionedSchema: (input: GetVersionedSchemaPath, signal?: AbortSignal) => Promise<{
|
|
12150
|
+
createdAt?: string;
|
|
12151
|
+
createdBy?: components$7["schemas"]["models.JSONData"];
|
|
12152
|
+
description?: string;
|
|
12153
|
+
id?: string;
|
|
12154
|
+
isDefault?: boolean;
|
|
12155
|
+
objectType?: string;
|
|
12156
|
+
schema?: components$7["schemas"]["models.JSONData"];
|
|
12157
|
+
updatedAt?: string;
|
|
12158
|
+
version?: string;
|
|
12159
|
+
}>;
|
|
12160
|
+
};
|
|
12161
|
+
};
|
|
12120
12162
|
context: {
|
|
12121
12163
|
stack: {
|
|
12122
12164
|
services: Service[];
|
|
@@ -13398,7 +13440,7 @@ declare const createClients: ({ baseUrl, token, metastoreBaseUrl, clientServiceU
|
|
|
13398
13440
|
startTime?: string | null;
|
|
13399
13441
|
endTime?: string | null;
|
|
13400
13442
|
runId: string;
|
|
13401
|
-
results?: components$
|
|
13443
|
+
results?: components$8["schemas"]["BucketListingUpdateJobResponse"] | components$8["schemas"]["BucketListingCreateJobResult"] | components$8["schemas"]["BucketListingDeleteResponse"] | components$8["schemas"]["RefreshJobResponse"] | components$8["schemas"]["FileDeleteResponse"] | components$8["schemas"]["TableSnapshotCreateJobResult"] | components$8["schemas"]["TableSwapResult"] | components$8["schemas"]["TableCreateResponse"] | components$8["schemas"]["TableExportJobResponse"];
|
|
13402
13444
|
creatorToken: {
|
|
13403
13445
|
id?: string;
|
|
13404
13446
|
description?: string;
|
|
@@ -14260,7 +14302,7 @@ declare const createClients: ({ baseUrl, token, metastoreBaseUrl, clientServiceU
|
|
|
14260
14302
|
tokenType: string;
|
|
14261
14303
|
expiresIn: number;
|
|
14262
14304
|
sessionId: string;
|
|
14263
|
-
user: components$
|
|
14305
|
+
user: components$9["schemas"]["UserLoggedInResponse"];
|
|
14264
14306
|
}>;
|
|
14265
14307
|
verifyWithWebauthn: (input: MfaWebauthnInput, signal?: AbortSignal) => Promise<{
|
|
14266
14308
|
accessToken: string;
|
|
@@ -14268,7 +14310,7 @@ declare const createClients: ({ baseUrl, token, metastoreBaseUrl, clientServiceU
|
|
|
14268
14310
|
tokenType: string;
|
|
14269
14311
|
expiresIn: number;
|
|
14270
14312
|
sessionId: string;
|
|
14271
|
-
user: components$
|
|
14313
|
+
user: components$9["schemas"]["UserLoggedInResponse"];
|
|
14272
14314
|
}>;
|
|
14273
14315
|
regenerateRecoveryCodes: (signal?: AbortSignal) => Promise<{
|
|
14274
14316
|
codes: string[];
|
|
@@ -14281,7 +14323,7 @@ declare const createClients: ({ baseUrl, token, metastoreBaseUrl, clientServiceU
|
|
|
14281
14323
|
tokenType: string;
|
|
14282
14324
|
expiresIn: number;
|
|
14283
14325
|
sessionId: string;
|
|
14284
|
-
user: components$
|
|
14326
|
+
user: components$9["schemas"]["UserLoggedInResponse"];
|
|
14285
14327
|
} | {
|
|
14286
14328
|
mfaRequired: boolean;
|
|
14287
14329
|
mfaType: string;
|
|
@@ -14301,7 +14343,7 @@ declare const createClients: ({ baseUrl, token, metastoreBaseUrl, clientServiceU
|
|
|
14301
14343
|
accessToken: string;
|
|
14302
14344
|
tokenType: string;
|
|
14303
14345
|
expiresIn: number;
|
|
14304
|
-
pat: components$
|
|
14346
|
+
pat: components$9["schemas"]["PatItemResponse"];
|
|
14305
14347
|
}>;
|
|
14306
14348
|
exchange: (body?: ExchangePatBody, signal?: AbortSignal) => Promise<{
|
|
14307
14349
|
accessToken: string;
|
|
@@ -14312,11 +14354,11 @@ declare const createClients: ({ baseUrl, token, metastoreBaseUrl, clientServiceU
|
|
|
14312
14354
|
parentTokenId: string;
|
|
14313
14355
|
parentTokenType: "session" | "pat";
|
|
14314
14356
|
expiresAt: string;
|
|
14315
|
-
pat: components$
|
|
14357
|
+
pat: components$9["schemas"]["PatItemResponse"];
|
|
14316
14358
|
}>;
|
|
14317
14359
|
revoke: (id: RevokePatPath["id"], signal?: AbortSignal) => Promise<void>;
|
|
14318
14360
|
getAll: (signal?: AbortSignal) => Promise<{
|
|
14319
|
-
items: components$
|
|
14361
|
+
items: components$9["schemas"]["PatItemResponse"][];
|
|
14320
14362
|
}>;
|
|
14321
14363
|
};
|
|
14322
14364
|
device: {
|
|
@@ -14331,7 +14373,7 @@ declare const createClients: ({ baseUrl, token, metastoreBaseUrl, clientServiceU
|
|
|
14331
14373
|
approve: (body: ApproveDeviceAuthorizationBody, signal?: AbortSignal) => Promise<{
|
|
14332
14374
|
status: "approved" | "denied";
|
|
14333
14375
|
idempotent: boolean;
|
|
14334
|
-
decision: components$
|
|
14376
|
+
decision: components$9["schemas"]["DeviceApprovalDecision"];
|
|
14335
14377
|
}>;
|
|
14336
14378
|
getToken: (body: GetDeviceAuthorizationTokenBody, signal?: AbortSignal) => Promise<{
|
|
14337
14379
|
accessToken: string;
|
|
@@ -14339,7 +14381,7 @@ declare const createClients: ({ baseUrl, token, metastoreBaseUrl, clientServiceU
|
|
|
14339
14381
|
tokenType: string;
|
|
14340
14382
|
expiresIn: number;
|
|
14341
14383
|
sessionId: string;
|
|
14342
|
-
user: components$
|
|
14384
|
+
user: components$9["schemas"]["UserLoggedInResponse"];
|
|
14343
14385
|
}>;
|
|
14344
14386
|
};
|
|
14345
14387
|
sudo: {
|
|
@@ -14361,12 +14403,12 @@ declare const createClients: ({ baseUrl, token, metastoreBaseUrl, clientServiceU
|
|
|
14361
14403
|
tokenType: string;
|
|
14362
14404
|
expiresIn: number;
|
|
14363
14405
|
sessionId: string;
|
|
14364
|
-
user: components$
|
|
14406
|
+
user: components$9["schemas"]["UserLoggedInResponse"];
|
|
14365
14407
|
}>;
|
|
14366
14408
|
};
|
|
14367
14409
|
session: {
|
|
14368
14410
|
getAll: (signal?: AbortSignal) => Promise<{
|
|
14369
|
-
sessions?: components$
|
|
14411
|
+
sessions?: components$9["schemas"]["SessionItemResponse"][];
|
|
14370
14412
|
}>;
|
|
14371
14413
|
revoke: (sessionId: RevokeSessionPath["sessionId"], signal?: AbortSignal) => Promise<void>;
|
|
14372
14414
|
revokeAll: (signal?: AbortSignal) => Promise<void>;
|
|
@@ -14378,11 +14420,11 @@ declare const createClients: ({ baseUrl, token, metastoreBaseUrl, clientServiceU
|
|
|
14378
14420
|
tokenType: string;
|
|
14379
14421
|
expiresIn: number;
|
|
14380
14422
|
sessionId: string;
|
|
14381
|
-
user: components$
|
|
14423
|
+
user: components$9["schemas"]["UserLoggedInResponse"];
|
|
14382
14424
|
}>;
|
|
14383
14425
|
introspect: (token?: string, signal?: AbortSignal) => Promise<{
|
|
14384
14426
|
sessionId: string;
|
|
14385
|
-
user: components$
|
|
14427
|
+
user: components$9["schemas"]["UserLoggedInResponse"];
|
|
14386
14428
|
grantType: string;
|
|
14387
14429
|
sudoVerified: boolean;
|
|
14388
14430
|
createdAt: string;
|
|
@@ -14390,7 +14432,7 @@ declare const createClients: ({ baseUrl, token, metastoreBaseUrl, clientServiceU
|
|
|
14390
14432
|
lastUsedAt?: string | null;
|
|
14391
14433
|
lastUsedIp?: string | null;
|
|
14392
14434
|
userAgent?: string | null;
|
|
14393
|
-
projects: components$
|
|
14435
|
+
projects: components$9["schemas"]["ProjectAccessItem"][];
|
|
14394
14436
|
}>;
|
|
14395
14437
|
revoke: (body: RevokeTokenBody, signal?: AbortSignal) => Promise<void>;
|
|
14396
14438
|
};
|
package/dist/index.js
CHANGED
|
@@ -630,7 +630,6 @@ var createLiveToken = ({ initialToken }) => {
|
|
|
630
630
|
var createClients = async ({
|
|
631
631
|
baseUrl,
|
|
632
632
|
token,
|
|
633
|
-
metastoreBaseUrl,
|
|
634
633
|
clientServiceUrls,
|
|
635
634
|
middlewares
|
|
636
635
|
}) => {
|
|
@@ -809,14 +808,17 @@ var createClients = async ({
|
|
|
809
808
|
middlewares: middlewareFor("notifications", [liveToken.attachTokenMiddleware]),
|
|
810
809
|
token: token.storageApi
|
|
811
810
|
})
|
|
811
|
+
}).add({
|
|
812
|
+
serviceId: "metastore",
|
|
813
|
+
clientName: "metastore",
|
|
814
|
+
clientFn: (serviceBaseUrl) => createMetastoreClient({
|
|
815
|
+
baseUrl: serviceBaseUrl,
|
|
816
|
+
middlewares: middlewareFor("metastore", [liveToken.attachTokenMiddleware]),
|
|
817
|
+
token: token.storageApi
|
|
818
|
+
})
|
|
812
819
|
}).build();
|
|
813
|
-
const metastore = createMetastoreClient({
|
|
814
|
-
baseUrl: metastoreBaseUrl,
|
|
815
|
-
middlewares: middlewareFor("metastore", [liveToken.attachTokenMiddleware]),
|
|
816
|
-
token: token.storageApi
|
|
817
|
-
});
|
|
818
820
|
const tag = createTagSdk({
|
|
819
|
-
metastoreClient: metastore
|
|
821
|
+
metastoreClient: client.metastore
|
|
820
822
|
});
|
|
821
823
|
const storageSdk = createStorageSdk({
|
|
822
824
|
storageClient: storage
|