@fusebase/fusebase-gate-sdk 2.2.10 → 2.2.11-sdk.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/apis/IsolatedStoresApi.d.ts +4 -4
- package/dist/apis/IsolatedStoresApi.js +2 -2
- package/dist/types/isolated-store/isolated-store.d.ts +4 -4
- package/package.json +1 -1
- package/release-notes/2.2.11-sdk.1.md +9 -0
- package/release-notes/latest.md +3 -3
- package/release-notes/2.2.10-sdk.2.md +0 -9
- package/release-notes/2.2.10.md +0 -9
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Domain: isolated-stores
|
|
6
6
|
*/
|
|
7
7
|
import type { Client } from "../runtime/transport";
|
|
8
|
-
import type { AdoptIsolatedStoreSqlMigrationBaselineRequestContract, AdoptIsolatedStoreSqlMigrationBaselineResponseContract, ApplyIsolatedStoreSqlMigrationsRequestContract, ApplyIsolatedStoreSqlMigrationsResponseContract, CreateIsolatedStoreCheckpointRequestContract, CreateIsolatedStoreCheckpointResponseContract, CreateIsolatedStoreRequestContract, CreateIsolatedStoreResponseContract, DeleteIsolatedStoreResponseContract, DeleteIsolatedStoreStageResponseContract, GetIsolatedStoreSqlMigrationStatusRequestContract,
|
|
8
|
+
import type { AdoptIsolatedStoreSqlMigrationBaselineRequestContract, AdoptIsolatedStoreSqlMigrationBaselineResponseContract, ApplyIsolatedStoreSqlMigrationsRequestContract, ApplyIsolatedStoreSqlMigrationsResponseContract, CreateIsolatedStoreCheckpointRequestContract, CreateIsolatedStoreCheckpointResponseContract, CreateIsolatedStoreRequestContract, CreateIsolatedStoreResponseContract, DeleteIsolatedStoreResponseContract, DeleteIsolatedStoreStageResponseContract, GetIsolatedStoreSqlMigrationStatusRequestContract, GetOrCreateIsolatedStoreRequestContract, GetOrCreateIsolatedStoreResponseContract, InitIsolatedStoreStageRequestContract, InitIsolatedStoreStageResponseContract, IsolatedStoreIdInPathRequired, IsolatedStoreListResponseContract, IsolatedStoreResponseContract, IsolatedStoreRevisionIdInPathRequired, IsolatedStoreRevisionListResponseContract, IsolatedStoreSqlBatchInsertRequestContract, IsolatedStoreSqlBatchInsertResponseContract, IsolatedStoreSqlCountRequestContract, IsolatedStoreSqlCountResponseContract, IsolatedStoreSqlDeleteRequestContract, IsolatedStoreSqlDeleteResponseContract, IsolatedStoreSqlDescribeTableResponseContract, IsolatedStoreSqlExecuteRequestContract, IsolatedStoreSqlExecuteResponseContract, IsolatedStoreSqlImportRequestContract, IsolatedStoreSqlImportResponseContract, IsolatedStoreSqlInsertRequestContract, IsolatedStoreSqlInsertResponseContract, IsolatedStoreSqlListTablesResponseContract, IsolatedStoreSqlMigrationStatusContract, IsolatedStoreSqlQueryRequestContract, IsolatedStoreSqlQueryResponseContract, IsolatedStoreSqlSchemaNameInQueryOptional, IsolatedStoreSqlSelectRequestContract, IsolatedStoreSqlSelectResponseContract, IsolatedStoreSqlStatsResponseContract, IsolatedStoreSqlTableNameInPathRequired, IsolatedStoreSqlUpdateRequestContract, IsolatedStoreSqlUpdateResponseContract, IsolatedStoreStageInPathRequired, IsolatedStoreStageListResponseContract, ListIsolatedStoresAliasLikeInQueryOptional, ListIsolatedStoresClientIdInQueryOptional, orgIdInPathRequired, RestoreIsolatedStoreRevisionResponseContract } from "../types";
|
|
9
9
|
export declare class IsolatedStoresApi {
|
|
10
10
|
private client;
|
|
11
11
|
constructor(client: Client);
|
|
@@ -190,13 +190,13 @@ export declare class IsolatedStoresApi {
|
|
|
190
190
|
* Get or create isolated store
|
|
191
191
|
* Idempotent control-plane operation for app-owned stores. Resolves an existing store by org/client/alias or creates it. Optionally bootstraps target stage from a source org store/stage using checkpoint/restore.
|
|
192
192
|
*/
|
|
193
|
-
|
|
193
|
+
getOrCreateIsolatedStore(params: {
|
|
194
194
|
path: {
|
|
195
195
|
orgId: orgIdInPathRequired;
|
|
196
196
|
};
|
|
197
197
|
headers?: Record<string, string>;
|
|
198
|
-
body:
|
|
199
|
-
}): Promise<
|
|
198
|
+
body: GetOrCreateIsolatedStoreRequestContract;
|
|
199
|
+
}): Promise<GetOrCreateIsolatedStoreResponseContract>;
|
|
200
200
|
/**
|
|
201
201
|
* Import CSV or TSV rows
|
|
202
202
|
* Imports CSV or TSV payloads into a postgres table using server-side COPY FROM STDIN. Use this bulk path for large seeds or migrations instead of repeated row inserts. Max UTF-8 payload size defaults to 64MiB (override ISOLATED_SQL_IMPORT_MAX_PAYLOAD_BYTES; hard cap 256MiB); split larger files across multiple calls.
|
|
@@ -221,14 +221,14 @@ class IsolatedStoresApi {
|
|
|
221
221
|
* Get or create isolated store
|
|
222
222
|
* Idempotent control-plane operation for app-owned stores. Resolves an existing store by org/client/alias or creates it. Optionally bootstraps target stage from a source org store/stage using checkpoint/restore.
|
|
223
223
|
*/
|
|
224
|
-
async
|
|
224
|
+
async getOrCreateIsolatedStore(params) {
|
|
225
225
|
return this.client.request({
|
|
226
226
|
method: "POST",
|
|
227
227
|
path: "/:orgId/isolated-stores/get-or",
|
|
228
228
|
pathParams: params.path,
|
|
229
229
|
headers: params.headers,
|
|
230
230
|
body: params.body,
|
|
231
|
-
opId: "
|
|
231
|
+
opId: "getOrCreateIsolatedStore",
|
|
232
232
|
expectedContentType: "application/json",
|
|
233
233
|
});
|
|
234
234
|
}
|
|
@@ -367,22 +367,22 @@ export interface IsolatedStoreListResponseContract {
|
|
|
367
367
|
export type ListIsolatedStoresClientIdInQueryOptional = string | null;
|
|
368
368
|
/** Optional `aliasLike` query for `listIsolatedStores`; exact alias or glob (`*`, `?`). */
|
|
369
369
|
export type ListIsolatedStoresAliasLikeInQueryOptional = string | null;
|
|
370
|
-
export interface
|
|
370
|
+
export interface GetOrCreateIsolatedStoreSourceContract {
|
|
371
371
|
orgId: string;
|
|
372
372
|
storeId?: string | null;
|
|
373
373
|
alias?: string | null;
|
|
374
374
|
stage: IsolatedStoreStageInPathRequired;
|
|
375
375
|
copyStrategy?: "checkpoint_restore" | null;
|
|
376
376
|
}
|
|
377
|
-
export interface
|
|
377
|
+
export interface GetOrCreateIsolatedStoreRequestContract {
|
|
378
378
|
clientId: string;
|
|
379
379
|
alias: string;
|
|
380
380
|
storeType: IsolatedStoreTypeContract;
|
|
381
381
|
engine: IsolatedStoreEngineContract;
|
|
382
382
|
targetStage: IsolatedStoreStageInPathRequired;
|
|
383
|
-
source?:
|
|
383
|
+
source?: GetOrCreateIsolatedStoreSourceContract | null;
|
|
384
384
|
}
|
|
385
|
-
export interface
|
|
385
|
+
export interface GetOrCreateIsolatedStoreResponseContract {
|
|
386
386
|
created: boolean;
|
|
387
387
|
cloned: boolean;
|
|
388
388
|
store: IsolatedStoreContract;
|
package/package.json
CHANGED
package/release-notes/latest.md
CHANGED