@keboola/api-client 1.0.0 → 1.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/dist/chat/index.d.cts +1 -1
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat/types.d.cts +1 -1
- package/dist/chat/types.d.ts +1 -1
- package/dist/index.cjs +165 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +196 -5
- package/dist/index.d.ts +196 -5
- package/dist/index.js +165 -2
- package/dist/index.js.map +1 -1
- package/dist/sdk/storage/index.cjs +20 -1
- package/dist/sdk/storage/index.cjs.map +1 -1
- package/dist/sdk/storage/index.d.cts +2 -2
- package/dist/sdk/storage/index.d.ts +2 -2
- package/dist/sdk/storage/index.js +20 -1
- package/dist/sdk/storage/index.js.map +1 -1
- package/dist/storage/index.cjs +88 -1
- package/dist/storage/index.cjs.map +1 -1
- package/dist/storage/index.d.cts +1 -1
- package/dist/storage/index.d.ts +1 -1
- package/dist/storage/index.js +88 -1
- package/dist/storage/index.js.map +1 -1
- package/dist/storage/types.d.cts +63 -4
- package/dist/storage/types.d.ts +63 -4
- package/dist/{storageClient-D05fdGHW.d.cts → storageClient-DSLTM3Cr.d.cts} +6 -1
- package/dist/{storageClient-C8LDO4gr.d.ts → storageClient-DrYOs4Xm.d.ts} +6 -1
- package/dist/storageSdk-BBqAo0Vx.d.cts +143 -0
- package/dist/storageSdk-ZVmKQQSl.d.ts +143 -0
- package/dist/{types-DJ6nbNq5.d.cts → types-CNkgmuhe.d.cts} +1 -1
- package/dist/{types-BjrNNn5I.d.ts → types-DzwzVgyG.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/storageSdk-CX03lGn-.d.ts +0 -18
- package/dist/storageSdk-DZV4nB3o.d.cts +0 -18
package/dist/storage/types.d.ts
CHANGED
|
@@ -152,6 +152,41 @@ type ScheduledTask = {
|
|
|
152
152
|
cronExpression: string;
|
|
153
153
|
createdAt: string;
|
|
154
154
|
};
|
|
155
|
+
type Subscriber = {
|
|
156
|
+
type: 'user' | 'group';
|
|
157
|
+
email: string;
|
|
158
|
+
};
|
|
159
|
+
type BucketListing = {
|
|
160
|
+
bucketId: string;
|
|
161
|
+
name: string;
|
|
162
|
+
description: string | null;
|
|
163
|
+
listingId: string;
|
|
164
|
+
subscribers: Subscriber[];
|
|
165
|
+
createdAt: string;
|
|
166
|
+
};
|
|
167
|
+
type RawBucketListingResponse = {
|
|
168
|
+
name: string;
|
|
169
|
+
description: string | null;
|
|
170
|
+
bigquery: {
|
|
171
|
+
listingId: string;
|
|
172
|
+
subscribers: string[];
|
|
173
|
+
};
|
|
174
|
+
createdAt: string;
|
|
175
|
+
};
|
|
176
|
+
type RawBucketListingRow = RawBucketListingResponse & {
|
|
177
|
+
bucketId: string;
|
|
178
|
+
};
|
|
179
|
+
type CreateBucketListingInput = {
|
|
180
|
+
name: string;
|
|
181
|
+
description: string | null;
|
|
182
|
+
listingId: string;
|
|
183
|
+
subscribers: Subscriber[];
|
|
184
|
+
};
|
|
185
|
+
type UpdateBucketListingInput = {
|
|
186
|
+
name?: string;
|
|
187
|
+
description?: string | null;
|
|
188
|
+
subscribers?: Subscriber[];
|
|
189
|
+
};
|
|
155
190
|
|
|
156
191
|
type EventType = 'info' | 'warn' | 'error' | 'success';
|
|
157
192
|
type CreateEventBody = {
|
|
@@ -12422,7 +12457,7 @@ type MergeRequestDetailWithActivityLog = MergeRequestDetail & {
|
|
|
12422
12457
|
type MergeRequestConflict = OpenapiReturnType<paths['/v2/storage/merge-request/{id}/conflicts']['get']>[number];
|
|
12423
12458
|
|
|
12424
12459
|
type JobStatus = 'created' | 'waiting' | 'processing' | 'success' | 'error' | 'terminating' | 'terminated' | 'cancelled' | 'warning';
|
|
12425
|
-
type JobOperation = 'bucketDelete' | 'devBranchCreate' | 'devBranchDelete' | 'workspaceDrop' | 'workspaceCreate' | 'tableDefinitionCreate' | 'tableCreate' | 'tableExport' | 'tableImport' | 'workspaceBatchDeleteObject';
|
|
12460
|
+
type JobOperation = 'bucketDelete' | 'bucketListingCreate' | 'bucketListingUpdate' | 'bucketListingDelete' | 'devBranchCreate' | 'devBranchDelete' | 'workspaceDrop' | 'workspaceCreate' | 'tableDefinitionCreate' | 'tableCreate' | 'tableExport' | 'tableImport' | 'workspaceBatchDeleteObject';
|
|
12426
12461
|
type JobResult<SuccessData = unknown, ErrorData = null> = {
|
|
12427
12462
|
status: 'success';
|
|
12428
12463
|
results: SuccessData;
|
|
@@ -12515,6 +12550,15 @@ type TableImportJob = StorageJob<'tableImport', Table, {
|
|
|
12515
12550
|
type DeleteBucketJob = StorageJob<'bucketDelete', null, {
|
|
12516
12551
|
id: string;
|
|
12517
12552
|
}>;
|
|
12553
|
+
type BucketListingCreateJob = StorageJob<'bucketListingCreate', null, {
|
|
12554
|
+
bucketId: string;
|
|
12555
|
+
}>;
|
|
12556
|
+
type BucketListingUpdateJob = StorageJob<'bucketListingUpdate', null, {
|
|
12557
|
+
bucketId: string;
|
|
12558
|
+
}>;
|
|
12559
|
+
type BucketListingDeleteJob = StorageJob<'bucketListingDelete', null, {
|
|
12560
|
+
bucketId: string;
|
|
12561
|
+
}>;
|
|
12518
12562
|
type WorkspaceBatchDeleteObjectResult = {
|
|
12519
12563
|
deleted: {
|
|
12520
12564
|
objectName: string;
|
|
@@ -12531,7 +12575,7 @@ type DeleteWorkspaceObjectsJob = StorageJob<'workspaceBatchDeleteObject', Worksp
|
|
|
12531
12575
|
type GetJobPath = {
|
|
12532
12576
|
id: number;
|
|
12533
12577
|
};
|
|
12534
|
-
type JobUnion = CreateDevBranchJob | DeleteDevBranchJob | DeleteBucketJob | WorkspaceDropJob | CreateWorkspaceJob | TableDefinitionCreateJob | TableCreateJob | TableExportJob | TableImportJob | DeleteWorkspaceObjectsJob;
|
|
12578
|
+
type JobUnion = CreateDevBranchJob | DeleteDevBranchJob | DeleteBucketJob | BucketListingCreateJob | BucketListingUpdateJob | BucketListingDeleteJob | WorkspaceDropJob | CreateWorkspaceJob | TableDefinitionCreateJob | TableCreateJob | TableExportJob | TableImportJob | DeleteWorkspaceObjectsJob;
|
|
12535
12579
|
type GetJobsQuery = {
|
|
12536
12580
|
created_time?: string;
|
|
12537
12581
|
created_time_from?: string;
|
|
@@ -12547,7 +12591,22 @@ type GetJobsQuery = {
|
|
|
12547
12591
|
start_time_to?: string;
|
|
12548
12592
|
storage_job_status?: JobStatus[];
|
|
12549
12593
|
};
|
|
12550
|
-
type
|
|
12594
|
+
type JobByOperation = {
|
|
12595
|
+
bucketDelete: DeleteBucketJob;
|
|
12596
|
+
bucketListingCreate: BucketListingCreateJob;
|
|
12597
|
+
bucketListingUpdate: BucketListingUpdateJob;
|
|
12598
|
+
bucketListingDelete: BucketListingDeleteJob;
|
|
12599
|
+
devBranchCreate: CreateDevBranchJob;
|
|
12600
|
+
devBranchDelete: DeleteDevBranchJob;
|
|
12601
|
+
workspaceDrop: WorkspaceDropJob;
|
|
12602
|
+
workspaceCreate: CreateWorkspaceJob;
|
|
12603
|
+
tableDefinitionCreate: TableDefinitionCreateJob;
|
|
12604
|
+
tableCreate: TableCreateJob;
|
|
12605
|
+
tableExport: TableExportJob;
|
|
12606
|
+
tableImport: TableImportJob;
|
|
12607
|
+
workspaceBatchDeleteObject: DeleteWorkspaceObjectsJob;
|
|
12608
|
+
};
|
|
12609
|
+
type Job<T extends JobOperation | string = string> = T extends keyof JobByOperation ? JobByOperation[T] : JobUnion;
|
|
12551
12610
|
|
|
12552
12611
|
type GetStackInfoQuery = {
|
|
12553
12612
|
exclude: 'componentDetails';
|
|
@@ -12585,4 +12644,4 @@ type StackInfo = {
|
|
|
12585
12644
|
};
|
|
12586
12645
|
type PartialKey<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
12587
12646
|
|
|
12588
|
-
export type { AddFileTagBody, BackendType, BaseComponentConfig, BranchId$2 as BranchId, BranchMetadata, BranchMetadataEntry, BranchMetadataRaw, Bucket, BucketBackend, BucketDetail, BucketShared, BucketStage, Component, ComponentConfig, ComponentData, ComponentDataTypesConfiguration, ComponentDefinition, ComponentLogging, ComponentProcessorConfiguration, ComponentStagingStorage, ComponentVendor, ConfigType, ConfigurationPath, ConfigurationUseCaseType, ConfigurationVersion, ConfigurationVersionDetail, ConfigurationVersionDetailPath, ConfigurationVersionPath, CreateBucketBody, CreateConfigurationBody, CreateConfigurationInput, CreateConfigurationRowBody, CreateConfigurationRowInput, CreateConfigurationRowPath, CreateConfigurationRowsInput, CreateConfigurationWorkspaceBody, CreateConfigurationWorkspaceQuery, CreateDevBranchJobBody, CreateEventBody, CreateMergeRequestParams, CreateScheduledRefreshBody, CreateScheduledRefreshPath, CreateTableAsyncBody, DeleteConfigurationRowBody, DeleteConfigurationRowInput, DeleteConfigurationRowPath, DeleteConfigurationRowsInput, DeleteFileTagPath, DeleteTableRows, DeleteWorkspaceObjectBody, DeleteWorkspaceObjectInput, DeleteWorkspaceQuery, DevBranch, DevBranchPath, EventPath, EventType, File, FilePath, FilterOperator, GetBucketsQuery, GetComponentPath, GetComponentsPath, GetComponentsQuery, GetConfigurationsPath, GetDataPreview, GetEventsQuery, GetFilesQuery, GetJobPath, GetJobsQuery, GetSearchComponentConfigurationsPath, GetStackInfoQuery, GetTablesQuery, GetWorkspaceSaml2LoginPath, Job, JobOperation, JobUnion, LoginType, MergeRequest, MergeRequestActivityEventType, MergeRequestActivityLogEntry, MergeRequestChangeLog, MergeRequestChangeLogEntry, MergeRequestConflict, MergeRequestDetail, MergeRequestDetailWithActivityLog, MergeRequestReviewer, MergeRequestReviewerStatus, Metadata, PartialKey, PrepareFileBody, PreparedFile, PrevieData, ResetWorkspacePassword, Row, ScheduledTask, SearchComponentConfiguration, SearchComponentConfigurationsQuery, Service, ServiceId, SetWorkspacePublicInput, SetWorkspacePublicKeyBody, SetWorkspacePublicKeyPath, StackComponent, StackInfo, StorageEvent, Table, TableCreateJob, TableDetail, TableExportAsyncBody, TableExportJob, TableImportAsyncBody, TableImportJob, UpdateBucketBody, UpdateMergeRequestParams, WhereFilters, Workspace, WorkspaceConnection, WorkspaceLoginType, WorkspaceObject, WorkspacePath, WorkspaceSaml2Login, WorkspacesPath, WrDbRow };
|
|
12647
|
+
export type { AddFileTagBody, BackendType, BaseComponentConfig, BranchId$2 as BranchId, BranchMetadata, BranchMetadataEntry, BranchMetadataRaw, Bucket, BucketBackend, BucketDetail, BucketListing, BucketShared, BucketStage, Component, ComponentConfig, ComponentData, ComponentDataTypesConfiguration, ComponentDefinition, ComponentLogging, ComponentProcessorConfiguration, ComponentStagingStorage, ComponentVendor, ConfigType, ConfigurationPath, ConfigurationUseCaseType, ConfigurationVersion, ConfigurationVersionDetail, ConfigurationVersionDetailPath, ConfigurationVersionPath, CreateBucketBody, CreateBucketListingInput, CreateConfigurationBody, CreateConfigurationInput, CreateConfigurationRowBody, CreateConfigurationRowInput, CreateConfigurationRowPath, CreateConfigurationRowsInput, CreateConfigurationWorkspaceBody, CreateConfigurationWorkspaceQuery, CreateDevBranchJobBody, CreateEventBody, CreateMergeRequestParams, CreateScheduledRefreshBody, CreateScheduledRefreshPath, CreateTableAsyncBody, DeleteConfigurationRowBody, DeleteConfigurationRowInput, DeleteConfigurationRowPath, DeleteConfigurationRowsInput, DeleteFileTagPath, DeleteTableRows, DeleteWorkspaceObjectBody, DeleteWorkspaceObjectInput, DeleteWorkspaceQuery, DevBranch, DevBranchPath, EventPath, EventType, File, FilePath, FilterOperator, GetBucketsQuery, GetComponentPath, GetComponentsPath, GetComponentsQuery, GetConfigurationsPath, GetDataPreview, GetEventsQuery, GetFilesQuery, GetJobPath, GetJobsQuery, GetSearchComponentConfigurationsPath, GetStackInfoQuery, GetTablesQuery, GetWorkspaceSaml2LoginPath, Job, JobOperation, JobUnion, LoginType, MergeRequest, MergeRequestActivityEventType, MergeRequestActivityLogEntry, MergeRequestChangeLog, MergeRequestChangeLogEntry, MergeRequestConflict, MergeRequestDetail, MergeRequestDetailWithActivityLog, MergeRequestReviewer, MergeRequestReviewerStatus, Metadata, PartialKey, PrepareFileBody, PreparedFile, PrevieData, RawBucketListingResponse, RawBucketListingRow, ResetWorkspacePassword, Row, ScheduledTask, SearchComponentConfiguration, SearchComponentConfigurationsQuery, Service, ServiceId, SetWorkspacePublicInput, SetWorkspacePublicKeyBody, SetWorkspacePublicKeyPath, StackComponent, StackInfo, StorageEvent, Subscriber, Table, TableCreateJob, TableDetail, TableExportAsyncBody, TableExportJob, TableImportAsyncBody, TableImportJob, UpdateBucketBody, UpdateBucketListingInput, UpdateMergeRequestParams, WhereFilters, Workspace, WorkspaceConnection, WorkspaceLoginType, WorkspaceObject, WorkspacePath, WorkspaceSaml2Login, WorkspacesPath, WrDbRow };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetBucketsQuery, Bucket, BucketDetail, CreateBucketBody, UpdateBucketBody, CreateScheduledRefreshPath, CreateScheduledRefreshBody, ScheduledTask, GetEventsQuery, StorageEvent, CreateEventBody, File, GetFilesQuery, DeleteFileTagPath, PrepareFileBody, PreparedFile, GetTablesQuery, Table, TableDetail, GetDataPreview, PrevieData, DeleteTableRows, JobUnion, TableExportAsyncBody, TableExportJob, CreateTableAsyncBody, TableCreateJob, TableImportAsyncBody, TableImportJob, DevBranch, CreateDevBranchJobBody, DevBranchPath, BranchMetadata, BranchMetadataEntry, WorkspacePath, Workspace, WorkspacesPath, ResetWorkspacePassword, SetWorkspacePublicInput, GetWorkspaceSaml2LoginPath, WorkspaceSaml2Login, WorkspaceObject, DeleteWorkspaceObjectInput, MergeRequestDetail, MergeRequestDetailWithActivityLog, CreateMergeRequestParams, UpdateMergeRequestParams, JobOperation, GetJobPath,
|
|
1
|
+
import { GetBucketsQuery, Bucket, BucketDetail, CreateBucketBody, UpdateBucketBody, CreateScheduledRefreshPath, CreateScheduledRefreshBody, ScheduledTask, BucketListing, CreateBucketListingInput, Job, UpdateBucketListingInput, GetEventsQuery, StorageEvent, CreateEventBody, File, GetFilesQuery, DeleteFileTagPath, PrepareFileBody, PreparedFile, GetTablesQuery, Table, TableDetail, GetDataPreview, PrevieData, DeleteTableRows, JobUnion, TableExportAsyncBody, TableExportJob, CreateTableAsyncBody, TableCreateJob, TableImportAsyncBody, TableImportJob, DevBranch, CreateDevBranchJobBody, DevBranchPath, BranchMetadata, BranchMetadataEntry, WorkspacePath, Workspace, WorkspacesPath, ResetWorkspacePassword, SetWorkspacePublicInput, GetWorkspaceSaml2LoginPath, WorkspaceSaml2Login, WorkspaceObject, DeleteWorkspaceObjectInput, MergeRequestDetail, MergeRequestDetailWithActivityLog, CreateMergeRequestParams, UpdateMergeRequestParams, JobOperation, GetJobPath, GetJobsQuery, GetComponentPath, Component, GetComponentsPath, GetComponentsQuery, GetSearchComponentConfigurationsPath, SearchComponentConfigurationsQuery, SearchComponentConfiguration, PartialKey, CreateConfigurationInput, BaseComponentConfig, ConfigType, ConfigurationPath, ComponentConfig, GetConfigurationsPath, CreateConfigurationRowInput, Row, CreateConfigurationRowsInput, CreateConfigurationRowBody, DeleteConfigurationRowInput, DeleteConfigurationRowsInput, CreateConfigurationWorkspaceBody, ConfigurationUseCaseType, ConfigurationVersionPath, ConfigurationVersion, ConfigurationVersionDetailPath, ConfigurationVersionDetail, GetStackInfoQuery, StackInfo } from './storage/types.cjs';
|
|
2
2
|
import { C as ClientInitOptions, M as MiddlewareFn$1 } from './types-DgaMV8FF.cjs';
|
|
3
3
|
import { c as createGenericFetchClient } from './createGenericFetchClient-CLUzu-jY.cjs';
|
|
4
4
|
import { c as createOpenapiFetchClient } from './createOpenapiFetchClient-CpXmAIFB.cjs';
|
|
@@ -77,6 +77,11 @@ declare const createStorageClient: ({ baseUrl, middlewares }: StorageClientInitO
|
|
|
77
77
|
})>;
|
|
78
78
|
createScheduledRefresh: (input: CreateScheduledRefreshPath & CreateScheduledRefreshBody) => Promise<ScheduledTask>;
|
|
79
79
|
deleteScheduledTask: (taskId: string) => Promise<void>;
|
|
80
|
+
getListing: (bucketId: string, signal?: AbortSignal) => Promise<BucketListing | null>;
|
|
81
|
+
createListing: (bucketId: string, input: CreateBucketListingInput, signal?: AbortSignal) => Promise<Job<"bucketListingCreate">>;
|
|
82
|
+
updateListing: (bucketId: string, input: UpdateBucketListingInput, signal?: AbortSignal) => Promise<Job<"bucketListingUpdate">>;
|
|
83
|
+
deleteListing: (bucketId: string, signal?: AbortSignal) => Promise<Job<"bucketListingDelete">>;
|
|
84
|
+
listListings: (signal?: AbortSignal) => Promise<BucketListing[]>;
|
|
80
85
|
};
|
|
81
86
|
events: {
|
|
82
87
|
getEvents: (query?: GetEventsQuery, signal?: AbortSignal) => Promise<StorageEvent[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetBucketsQuery, Bucket, BucketDetail, CreateBucketBody, UpdateBucketBody, CreateScheduledRefreshPath, CreateScheduledRefreshBody, ScheduledTask, GetEventsQuery, StorageEvent, CreateEventBody, File, GetFilesQuery, DeleteFileTagPath, PrepareFileBody, PreparedFile, GetTablesQuery, Table, TableDetail, GetDataPreview, PrevieData, DeleteTableRows, JobUnion, TableExportAsyncBody, TableExportJob, CreateTableAsyncBody, TableCreateJob, TableImportAsyncBody, TableImportJob, DevBranch, CreateDevBranchJobBody, DevBranchPath, BranchMetadata, BranchMetadataEntry, WorkspacePath, Workspace, WorkspacesPath, ResetWorkspacePassword, SetWorkspacePublicInput, GetWorkspaceSaml2LoginPath, WorkspaceSaml2Login, WorkspaceObject, DeleteWorkspaceObjectInput, MergeRequestDetail, MergeRequestDetailWithActivityLog, CreateMergeRequestParams, UpdateMergeRequestParams, JobOperation, GetJobPath,
|
|
1
|
+
import { GetBucketsQuery, Bucket, BucketDetail, CreateBucketBody, UpdateBucketBody, CreateScheduledRefreshPath, CreateScheduledRefreshBody, ScheduledTask, BucketListing, CreateBucketListingInput, Job, UpdateBucketListingInput, GetEventsQuery, StorageEvent, CreateEventBody, File, GetFilesQuery, DeleteFileTagPath, PrepareFileBody, PreparedFile, GetTablesQuery, Table, TableDetail, GetDataPreview, PrevieData, DeleteTableRows, JobUnion, TableExportAsyncBody, TableExportJob, CreateTableAsyncBody, TableCreateJob, TableImportAsyncBody, TableImportJob, DevBranch, CreateDevBranchJobBody, DevBranchPath, BranchMetadata, BranchMetadataEntry, WorkspacePath, Workspace, WorkspacesPath, ResetWorkspacePassword, SetWorkspacePublicInput, GetWorkspaceSaml2LoginPath, WorkspaceSaml2Login, WorkspaceObject, DeleteWorkspaceObjectInput, MergeRequestDetail, MergeRequestDetailWithActivityLog, CreateMergeRequestParams, UpdateMergeRequestParams, JobOperation, GetJobPath, GetJobsQuery, GetComponentPath, Component, GetComponentsPath, GetComponentsQuery, GetSearchComponentConfigurationsPath, SearchComponentConfigurationsQuery, SearchComponentConfiguration, PartialKey, CreateConfigurationInput, BaseComponentConfig, ConfigType, ConfigurationPath, ComponentConfig, GetConfigurationsPath, CreateConfigurationRowInput, Row, CreateConfigurationRowsInput, CreateConfigurationRowBody, DeleteConfigurationRowInput, DeleteConfigurationRowsInput, CreateConfigurationWorkspaceBody, ConfigurationUseCaseType, ConfigurationVersionPath, ConfigurationVersion, ConfigurationVersionDetailPath, ConfigurationVersionDetail, GetStackInfoQuery, StackInfo } from './storage/types.js';
|
|
2
2
|
import { C as ClientInitOptions, M as MiddlewareFn$1 } from './types-DgaMV8FF.js';
|
|
3
3
|
import { c as createGenericFetchClient } from './createGenericFetchClient-DEakI3F1.js';
|
|
4
4
|
import { c as createOpenapiFetchClient } from './createOpenapiFetchClient-_sm4bchL.js';
|
|
@@ -77,6 +77,11 @@ declare const createStorageClient: ({ baseUrl, middlewares }: StorageClientInitO
|
|
|
77
77
|
})>;
|
|
78
78
|
createScheduledRefresh: (input: CreateScheduledRefreshPath & CreateScheduledRefreshBody) => Promise<ScheduledTask>;
|
|
79
79
|
deleteScheduledTask: (taskId: string) => Promise<void>;
|
|
80
|
+
getListing: (bucketId: string, signal?: AbortSignal) => Promise<BucketListing | null>;
|
|
81
|
+
createListing: (bucketId: string, input: CreateBucketListingInput, signal?: AbortSignal) => Promise<Job<"bucketListingCreate">>;
|
|
82
|
+
updateListing: (bucketId: string, input: UpdateBucketListingInput, signal?: AbortSignal) => Promise<Job<"bucketListingUpdate">>;
|
|
83
|
+
deleteListing: (bucketId: string, signal?: AbortSignal) => Promise<Job<"bucketListingDelete">>;
|
|
84
|
+
listListings: (signal?: AbortSignal) => Promise<BucketListing[]>;
|
|
80
85
|
};
|
|
81
86
|
events: {
|
|
82
87
|
getEvents: (query?: GetEventsQuery, signal?: AbortSignal) => Promise<StorageEvent[]>;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { CreateTableAsyncBody, TableCreateJob, TableImportAsyncBody, TableImportJob, TableExportAsyncBody, TableExportJob, BucketListing, CreateBucketListingInput, UpdateBucketListingInput } from './storage/types.cjs';
|
|
2
|
+
import { c as createStorageClient } from './storageClient-DSLTM3Cr.cjs';
|
|
3
|
+
|
|
4
|
+
type Options = {
|
|
5
|
+
interval?: number;
|
|
6
|
+
maxAttempts?: number;
|
|
7
|
+
abortSignal?: AbortSignal;
|
|
8
|
+
};
|
|
9
|
+
type StorageSdkOptions = {
|
|
10
|
+
storageClient: ReturnType<typeof createStorageClient>;
|
|
11
|
+
};
|
|
12
|
+
declare const createStorageSdk: ({ storageClient }: StorageSdkOptions) => {
|
|
13
|
+
createTable: (bucketId: string, body: CreateTableAsyncBody, options?: Options) => Promise<TableCreateJob>;
|
|
14
|
+
importFromFile: (tableId: string, body: TableImportAsyncBody, options?: Options) => Promise<TableImportJob>;
|
|
15
|
+
exportToFile: (tableId: string, body?: TableExportAsyncBody, options?: Options) => Promise<TableExportJob>;
|
|
16
|
+
getBucketListing: (bucketId: string, signal?: AbortSignal) => Promise<BucketListing | null>;
|
|
17
|
+
listBucketListings: (signal?: AbortSignal) => Promise<BucketListing[]>;
|
|
18
|
+
createBucketListing: (bucketId: string, input: CreateBucketListingInput, options?: Options) => Promise<{
|
|
19
|
+
id: number;
|
|
20
|
+
tableId: string | null;
|
|
21
|
+
runId: string;
|
|
22
|
+
url: string;
|
|
23
|
+
createdTime: string;
|
|
24
|
+
creatorToken: {
|
|
25
|
+
id: string;
|
|
26
|
+
description: string;
|
|
27
|
+
};
|
|
28
|
+
endTime: string | null;
|
|
29
|
+
startTime: string | null;
|
|
30
|
+
operationName: "bucketListingCreate";
|
|
31
|
+
operationParams: {
|
|
32
|
+
queue: string;
|
|
33
|
+
} & {
|
|
34
|
+
bucketId: string;
|
|
35
|
+
};
|
|
36
|
+
metrics: {
|
|
37
|
+
inCompressed: boolean;
|
|
38
|
+
inBytes: number;
|
|
39
|
+
inBytesUncompressed: number;
|
|
40
|
+
outCompressed: boolean;
|
|
41
|
+
outBytes: number;
|
|
42
|
+
outBytesUncompressed: number;
|
|
43
|
+
};
|
|
44
|
+
} & ({
|
|
45
|
+
status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
|
|
46
|
+
results: null;
|
|
47
|
+
} | {
|
|
48
|
+
status: "error";
|
|
49
|
+
results: null;
|
|
50
|
+
error: {
|
|
51
|
+
code: string;
|
|
52
|
+
message: string;
|
|
53
|
+
exceptionId?: string;
|
|
54
|
+
};
|
|
55
|
+
} | {
|
|
56
|
+
status: "success";
|
|
57
|
+
results: null;
|
|
58
|
+
})>;
|
|
59
|
+
updateBucketListing: (bucketId: string, input: UpdateBucketListingInput, options?: Options) => Promise<{
|
|
60
|
+
id: number;
|
|
61
|
+
tableId: string | null;
|
|
62
|
+
runId: string;
|
|
63
|
+
url: string;
|
|
64
|
+
createdTime: string;
|
|
65
|
+
creatorToken: {
|
|
66
|
+
id: string;
|
|
67
|
+
description: string;
|
|
68
|
+
};
|
|
69
|
+
endTime: string | null;
|
|
70
|
+
startTime: string | null;
|
|
71
|
+
operationName: "bucketListingUpdate";
|
|
72
|
+
operationParams: {
|
|
73
|
+
queue: string;
|
|
74
|
+
} & {
|
|
75
|
+
bucketId: string;
|
|
76
|
+
};
|
|
77
|
+
metrics: {
|
|
78
|
+
inCompressed: boolean;
|
|
79
|
+
inBytes: number;
|
|
80
|
+
inBytesUncompressed: number;
|
|
81
|
+
outCompressed: boolean;
|
|
82
|
+
outBytes: number;
|
|
83
|
+
outBytesUncompressed: number;
|
|
84
|
+
};
|
|
85
|
+
} & ({
|
|
86
|
+
status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
|
|
87
|
+
results: null;
|
|
88
|
+
} | {
|
|
89
|
+
status: "error";
|
|
90
|
+
results: null;
|
|
91
|
+
error: {
|
|
92
|
+
code: string;
|
|
93
|
+
message: string;
|
|
94
|
+
exceptionId?: string;
|
|
95
|
+
};
|
|
96
|
+
} | {
|
|
97
|
+
status: "success";
|
|
98
|
+
results: null;
|
|
99
|
+
})>;
|
|
100
|
+
deleteBucketListing: (bucketId: string, options?: Options) => Promise<{
|
|
101
|
+
id: number;
|
|
102
|
+
tableId: string | null;
|
|
103
|
+
runId: string;
|
|
104
|
+
url: string;
|
|
105
|
+
createdTime: string;
|
|
106
|
+
creatorToken: {
|
|
107
|
+
id: string;
|
|
108
|
+
description: string;
|
|
109
|
+
};
|
|
110
|
+
endTime: string | null;
|
|
111
|
+
startTime: string | null;
|
|
112
|
+
operationName: "bucketListingDelete";
|
|
113
|
+
operationParams: {
|
|
114
|
+
queue: string;
|
|
115
|
+
} & {
|
|
116
|
+
bucketId: string;
|
|
117
|
+
};
|
|
118
|
+
metrics: {
|
|
119
|
+
inCompressed: boolean;
|
|
120
|
+
inBytes: number;
|
|
121
|
+
inBytesUncompressed: number;
|
|
122
|
+
outCompressed: boolean;
|
|
123
|
+
outBytes: number;
|
|
124
|
+
outBytesUncompressed: number;
|
|
125
|
+
};
|
|
126
|
+
} & ({
|
|
127
|
+
status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
|
|
128
|
+
results: null;
|
|
129
|
+
} | {
|
|
130
|
+
status: "error";
|
|
131
|
+
results: null;
|
|
132
|
+
error: {
|
|
133
|
+
code: string;
|
|
134
|
+
message: string;
|
|
135
|
+
exceptionId?: string;
|
|
136
|
+
};
|
|
137
|
+
} | {
|
|
138
|
+
status: "success";
|
|
139
|
+
results: null;
|
|
140
|
+
})>;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
export { createStorageSdk as c };
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { CreateTableAsyncBody, TableCreateJob, TableImportAsyncBody, TableImportJob, TableExportAsyncBody, TableExportJob, BucketListing, CreateBucketListingInput, UpdateBucketListingInput } from './storage/types.js';
|
|
2
|
+
import { c as createStorageClient } from './storageClient-DrYOs4Xm.js';
|
|
3
|
+
|
|
4
|
+
type Options = {
|
|
5
|
+
interval?: number;
|
|
6
|
+
maxAttempts?: number;
|
|
7
|
+
abortSignal?: AbortSignal;
|
|
8
|
+
};
|
|
9
|
+
type StorageSdkOptions = {
|
|
10
|
+
storageClient: ReturnType<typeof createStorageClient>;
|
|
11
|
+
};
|
|
12
|
+
declare const createStorageSdk: ({ storageClient }: StorageSdkOptions) => {
|
|
13
|
+
createTable: (bucketId: string, body: CreateTableAsyncBody, options?: Options) => Promise<TableCreateJob>;
|
|
14
|
+
importFromFile: (tableId: string, body: TableImportAsyncBody, options?: Options) => Promise<TableImportJob>;
|
|
15
|
+
exportToFile: (tableId: string, body?: TableExportAsyncBody, options?: Options) => Promise<TableExportJob>;
|
|
16
|
+
getBucketListing: (bucketId: string, signal?: AbortSignal) => Promise<BucketListing | null>;
|
|
17
|
+
listBucketListings: (signal?: AbortSignal) => Promise<BucketListing[]>;
|
|
18
|
+
createBucketListing: (bucketId: string, input: CreateBucketListingInput, options?: Options) => Promise<{
|
|
19
|
+
id: number;
|
|
20
|
+
tableId: string | null;
|
|
21
|
+
runId: string;
|
|
22
|
+
url: string;
|
|
23
|
+
createdTime: string;
|
|
24
|
+
creatorToken: {
|
|
25
|
+
id: string;
|
|
26
|
+
description: string;
|
|
27
|
+
};
|
|
28
|
+
endTime: string | null;
|
|
29
|
+
startTime: string | null;
|
|
30
|
+
operationName: "bucketListingCreate";
|
|
31
|
+
operationParams: {
|
|
32
|
+
queue: string;
|
|
33
|
+
} & {
|
|
34
|
+
bucketId: string;
|
|
35
|
+
};
|
|
36
|
+
metrics: {
|
|
37
|
+
inCompressed: boolean;
|
|
38
|
+
inBytes: number;
|
|
39
|
+
inBytesUncompressed: number;
|
|
40
|
+
outCompressed: boolean;
|
|
41
|
+
outBytes: number;
|
|
42
|
+
outBytesUncompressed: number;
|
|
43
|
+
};
|
|
44
|
+
} & ({
|
|
45
|
+
status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
|
|
46
|
+
results: null;
|
|
47
|
+
} | {
|
|
48
|
+
status: "error";
|
|
49
|
+
results: null;
|
|
50
|
+
error: {
|
|
51
|
+
code: string;
|
|
52
|
+
message: string;
|
|
53
|
+
exceptionId?: string;
|
|
54
|
+
};
|
|
55
|
+
} | {
|
|
56
|
+
status: "success";
|
|
57
|
+
results: null;
|
|
58
|
+
})>;
|
|
59
|
+
updateBucketListing: (bucketId: string, input: UpdateBucketListingInput, options?: Options) => Promise<{
|
|
60
|
+
id: number;
|
|
61
|
+
tableId: string | null;
|
|
62
|
+
runId: string;
|
|
63
|
+
url: string;
|
|
64
|
+
createdTime: string;
|
|
65
|
+
creatorToken: {
|
|
66
|
+
id: string;
|
|
67
|
+
description: string;
|
|
68
|
+
};
|
|
69
|
+
endTime: string | null;
|
|
70
|
+
startTime: string | null;
|
|
71
|
+
operationName: "bucketListingUpdate";
|
|
72
|
+
operationParams: {
|
|
73
|
+
queue: string;
|
|
74
|
+
} & {
|
|
75
|
+
bucketId: string;
|
|
76
|
+
};
|
|
77
|
+
metrics: {
|
|
78
|
+
inCompressed: boolean;
|
|
79
|
+
inBytes: number;
|
|
80
|
+
inBytesUncompressed: number;
|
|
81
|
+
outCompressed: boolean;
|
|
82
|
+
outBytes: number;
|
|
83
|
+
outBytesUncompressed: number;
|
|
84
|
+
};
|
|
85
|
+
} & ({
|
|
86
|
+
status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
|
|
87
|
+
results: null;
|
|
88
|
+
} | {
|
|
89
|
+
status: "error";
|
|
90
|
+
results: null;
|
|
91
|
+
error: {
|
|
92
|
+
code: string;
|
|
93
|
+
message: string;
|
|
94
|
+
exceptionId?: string;
|
|
95
|
+
};
|
|
96
|
+
} | {
|
|
97
|
+
status: "success";
|
|
98
|
+
results: null;
|
|
99
|
+
})>;
|
|
100
|
+
deleteBucketListing: (bucketId: string, options?: Options) => Promise<{
|
|
101
|
+
id: number;
|
|
102
|
+
tableId: string | null;
|
|
103
|
+
runId: string;
|
|
104
|
+
url: string;
|
|
105
|
+
createdTime: string;
|
|
106
|
+
creatorToken: {
|
|
107
|
+
id: string;
|
|
108
|
+
description: string;
|
|
109
|
+
};
|
|
110
|
+
endTime: string | null;
|
|
111
|
+
startTime: string | null;
|
|
112
|
+
operationName: "bucketListingDelete";
|
|
113
|
+
operationParams: {
|
|
114
|
+
queue: string;
|
|
115
|
+
} & {
|
|
116
|
+
bucketId: string;
|
|
117
|
+
};
|
|
118
|
+
metrics: {
|
|
119
|
+
inCompressed: boolean;
|
|
120
|
+
inBytes: number;
|
|
121
|
+
inBytesUncompressed: number;
|
|
122
|
+
outCompressed: boolean;
|
|
123
|
+
outBytes: number;
|
|
124
|
+
outBytesUncompressed: number;
|
|
125
|
+
};
|
|
126
|
+
} & ({
|
|
127
|
+
status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
|
|
128
|
+
results: null;
|
|
129
|
+
} | {
|
|
130
|
+
status: "error";
|
|
131
|
+
results: null;
|
|
132
|
+
error: {
|
|
133
|
+
code: string;
|
|
134
|
+
message: string;
|
|
135
|
+
exceptionId?: string;
|
|
136
|
+
};
|
|
137
|
+
} | {
|
|
138
|
+
status: "success";
|
|
139
|
+
results: null;
|
|
140
|
+
})>;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
export { createStorageSdk as c };
|
|
@@ -1499,7 +1499,7 @@ type components = {
|
|
|
1499
1499
|
/** @description Server transport type */
|
|
1500
1500
|
serverTransport?: string;
|
|
1501
1501
|
};
|
|
1502
|
-
/** @description Preview data showing current and resulting configuration for diff display. For config update tool calls (update_config, update_config_row, update_sql_transformation, update_flow, modify_flow,
|
|
1502
|
+
/** @description Preview data showing current and resulting configuration for diff display. For config update tool calls (update_config, update_config_row, update_sql_transformation, update_flow, modify_flow, modify_streamlit_data_app), this data is embedded in the tool-call input under the `_preview` key rather than as a separate stream event. */
|
|
1503
1503
|
ConfigPreviewData: {
|
|
1504
1504
|
/** @description Configuration coordinates identifying the component and configuration */
|
|
1505
1505
|
coordinates: {
|
|
@@ -1499,7 +1499,7 @@ type components = {
|
|
|
1499
1499
|
/** @description Server transport type */
|
|
1500
1500
|
serverTransport?: string;
|
|
1501
1501
|
};
|
|
1502
|
-
/** @description Preview data showing current and resulting configuration for diff display. For config update tool calls (update_config, update_config_row, update_sql_transformation, update_flow, modify_flow,
|
|
1502
|
+
/** @description Preview data showing current and resulting configuration for diff display. For config update tool calls (update_config, update_config_row, update_sql_transformation, update_flow, modify_flow, modify_streamlit_data_app), this data is embedded in the tool-call input under the `_preview` key rather than as a separate stream event. */
|
|
1503
1503
|
ConfigPreviewData: {
|
|
1504
1504
|
/** @description Configuration coordinates identifying the component and configuration */
|
|
1505
1505
|
coordinates: {
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { CreateTableAsyncBody, TableCreateJob, TableImportAsyncBody, TableImportJob, TableExportAsyncBody, TableExportJob } from './storage/types.js';
|
|
2
|
-
import { c as createStorageClient } from './storageClient-C8LDO4gr.js';
|
|
3
|
-
|
|
4
|
-
type Options = {
|
|
5
|
-
interval?: number;
|
|
6
|
-
maxAttempts?: number;
|
|
7
|
-
abortSignal?: AbortSignal;
|
|
8
|
-
};
|
|
9
|
-
type StorageSdkOptions = {
|
|
10
|
-
storageClient: ReturnType<typeof createStorageClient>;
|
|
11
|
-
};
|
|
12
|
-
declare const createStorageSdk: ({ storageClient }: StorageSdkOptions) => {
|
|
13
|
-
createTable: (bucketId: string, body: CreateTableAsyncBody, options?: Options) => Promise<TableCreateJob>;
|
|
14
|
-
importFromFile: (tableId: string, body: TableImportAsyncBody, options?: Options) => Promise<TableImportJob>;
|
|
15
|
-
exportToFile: (tableId: string, body?: TableExportAsyncBody, options?: Options) => Promise<TableExportJob>;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export { createStorageSdk as c };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { CreateTableAsyncBody, TableCreateJob, TableImportAsyncBody, TableImportJob, TableExportAsyncBody, TableExportJob } from './storage/types.cjs';
|
|
2
|
-
import { c as createStorageClient } from './storageClient-D05fdGHW.cjs';
|
|
3
|
-
|
|
4
|
-
type Options = {
|
|
5
|
-
interval?: number;
|
|
6
|
-
maxAttempts?: number;
|
|
7
|
-
abortSignal?: AbortSignal;
|
|
8
|
-
};
|
|
9
|
-
type StorageSdkOptions = {
|
|
10
|
-
storageClient: ReturnType<typeof createStorageClient>;
|
|
11
|
-
};
|
|
12
|
-
declare const createStorageSdk: ({ storageClient }: StorageSdkOptions) => {
|
|
13
|
-
createTable: (bucketId: string, body: CreateTableAsyncBody, options?: Options) => Promise<TableCreateJob>;
|
|
14
|
-
importFromFile: (tableId: string, body: TableImportAsyncBody, options?: Options) => Promise<TableImportJob>;
|
|
15
|
-
exportToFile: (tableId: string, body?: TableExportAsyncBody, options?: Options) => Promise<TableExportJob>;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export { createStorageSdk as c };
|