@fusebase/fusebase-gate-sdk 2.2.15-sdk.1 → 2.2.15-sdk.3
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 +14 -1
- package/dist/apis/IsolatedStoresApi.js +15 -0
- package/dist/types/isolated-store/isolated-store.d.ts +15 -0
- package/package.json +1 -1
- package/release-notes/2.2.15-sdk.3.md +9 -0
- package/release-notes/latest.md +3 -3
- package/release-notes/2.2.15-sdk.1.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, 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";
|
|
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, RepairIsolatedStoreSqlMigrationJournalChecksumsRequestContract, RepairIsolatedStoreSqlMigrationJournalChecksumsResponseContract, RestoreIsolatedStoreRevisionResponseContract } from "../types";
|
|
9
9
|
export declare class IsolatedStoresApi {
|
|
10
10
|
private client;
|
|
11
11
|
constructor(client: Client);
|
|
@@ -313,6 +313,19 @@ export declare class IsolatedStoresApi {
|
|
|
313
313
|
headers?: Record<string, string>;
|
|
314
314
|
body: IsolatedStoreSqlQueryRequestContract;
|
|
315
315
|
}): Promise<IsolatedStoreSqlQueryResponseContract>;
|
|
316
|
+
/**
|
|
317
|
+
* Repair migration journal checksums
|
|
318
|
+
* Operator repair path for historical checksum algorithm lock-in. Validates the submitted bundle with the current canonical SQL rules, then rewrites only checksum values for the already-applied journal prefix when version/name/order already match and the only drift is checksum mismatch.
|
|
319
|
+
*/
|
|
320
|
+
repairIsolatedStoreSqlMigrationJournalChecksums(params: {
|
|
321
|
+
path: {
|
|
322
|
+
orgId: orgIdInPathRequired;
|
|
323
|
+
storeId: IsolatedStoreIdInPathRequired;
|
|
324
|
+
stage: IsolatedStoreStageInPathRequired;
|
|
325
|
+
};
|
|
326
|
+
headers?: Record<string, string>;
|
|
327
|
+
body: RepairIsolatedStoreSqlMigrationJournalChecksumsRequestContract;
|
|
328
|
+
}): Promise<RepairIsolatedStoreSqlMigrationJournalChecksumsResponseContract>;
|
|
316
329
|
/**
|
|
317
330
|
* Restore isolated store revision
|
|
318
331
|
* Restores a sql/postgres stage from a previously created physical snapshot. For auto-provisioned dedicated stage databases, gate recreates the target database before running pg_restore. Restorable snapshotRef values depend on the configured snapshot storage provider; gate currently supports file:// and azure-blob:// refs.
|
|
@@ -364,6 +364,21 @@ class IsolatedStoresApi {
|
|
|
364
364
|
expectedContentType: "application/json",
|
|
365
365
|
});
|
|
366
366
|
}
|
|
367
|
+
/**
|
|
368
|
+
* Repair migration journal checksums
|
|
369
|
+
* Operator repair path for historical checksum algorithm lock-in. Validates the submitted bundle with the current canonical SQL rules, then rewrites only checksum values for the already-applied journal prefix when version/name/order already match and the only drift is checksum mismatch.
|
|
370
|
+
*/
|
|
371
|
+
async repairIsolatedStoreSqlMigrationJournalChecksums(params) {
|
|
372
|
+
return this.client.request({
|
|
373
|
+
method: "POST",
|
|
374
|
+
path: "/:orgId/isolated-stores/:storeId/stages/:stage/sql/migrations/repair-checksums",
|
|
375
|
+
pathParams: params.path,
|
|
376
|
+
headers: params.headers,
|
|
377
|
+
body: params.body,
|
|
378
|
+
opId: "repairIsolatedStoreSqlMigrationJournalChecksums",
|
|
379
|
+
expectedContentType: "application/json",
|
|
380
|
+
});
|
|
381
|
+
}
|
|
367
382
|
/**
|
|
368
383
|
* Restore isolated store revision
|
|
369
384
|
* Restores a sql/postgres stage from a previously created physical snapshot. For auto-provisioned dedicated stage databases, gate recreates the target database before running pg_restore. Restorable snapshotRef values depend on the configured snapshot storage provider; gate currently supports file:// and azure-blob:// refs.
|
|
@@ -221,6 +221,21 @@ export interface AdoptIsolatedStoreSqlMigrationBaselineResponseContract {
|
|
|
221
221
|
status: IsolatedStoreSqlMigrationStatusContract;
|
|
222
222
|
dryRun?: boolean | null;
|
|
223
223
|
}
|
|
224
|
+
export interface RepairIsolatedStoreSqlMigrationJournalChecksumsRequestContract {
|
|
225
|
+
schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
|
|
226
|
+
bundle: IsolatedStoreSqlMigrationBundleContract;
|
|
227
|
+
/** Validate eligibility and return the projected post-repair status without writing the journal. */
|
|
228
|
+
dryRun?: boolean | null;
|
|
229
|
+
/** Same optimistic-lock semantics as `applyIsolatedStoreSqlMigrations`; HTTP 409 when the journal tail disagrees. */
|
|
230
|
+
expectedLastAppliedVersion?: number | null;
|
|
231
|
+
expectedLastAppliedChecksum?: string | null;
|
|
232
|
+
}
|
|
233
|
+
export interface RepairIsolatedStoreSqlMigrationJournalChecksumsResponseContract {
|
|
234
|
+
repairedCount: number;
|
|
235
|
+
repairedVersions: number[];
|
|
236
|
+
status: IsolatedStoreSqlMigrationStatusContract;
|
|
237
|
+
dryRun?: boolean | null;
|
|
238
|
+
}
|
|
224
239
|
/** Documented shape of JSON error responses for migration state conflicts (HTTP 409). */
|
|
225
240
|
export interface IsolatedStoreSqlMigrationConflictErrorBodyContract {
|
|
226
241
|
success: false;
|
package/package.json
CHANGED
package/release-notes/latest.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Release Notes 2.2.15-sdk.
|
|
1
|
+
# Release Notes 2.2.15-sdk.3
|
|
2
2
|
|
|
3
3
|
- Current ref: `HEAD`
|
|
4
|
-
- Previous tag: `v2.2.15-sdk.
|
|
5
|
-
- Generated at: 2026-05-
|
|
4
|
+
- Previous tag: `v2.2.15-sdk.3`
|
|
5
|
+
- Generated at: 2026-05-13T11:52:32.896Z
|
|
6
6
|
|
|
7
7
|
## Included Drafts
|
|
8
8
|
|