@fusebase/fusebase-gate-sdk 2.2.15-sdk.1 → 2.2.15-sdk.2

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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fusebase/fusebase-gate-sdk",
3
- "version": "2.2.15-sdk.1",
3
+ "version": "2.2.15-sdk.2",
4
4
  "description": "TypeScript SDK for Fusebase Gate APIs - Generated from contract introspection",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -0,0 +1,9 @@
1
+ # Release Notes 2.2.15-sdk.2
2
+
3
+ - Current ref: `HEAD`
4
+ - Previous tag: `v2.2.15-sdk.2`
5
+ - Generated at: 2026-05-13T11:50:49.715Z
6
+
7
+ ## Included Drafts
8
+
9
+ - None
@@ -1,8 +1,8 @@
1
- # Release Notes 2.2.15-sdk.1
1
+ # Release Notes 2.2.15-sdk.2
2
2
 
3
3
  - Current ref: `HEAD`
4
- - Previous tag: `v2.2.15-sdk.1`
5
- - Generated at: 2026-05-13T08:53:34.603Z
4
+ - Previous tag: `v2.2.15-sdk.2`
5
+ - Generated at: 2026-05-13T11:50:49.715Z
6
6
 
7
7
  ## Included Drafts
8
8
 
@@ -1,9 +0,0 @@
1
- # Release Notes 2.2.15-sdk.1
2
-
3
- - Current ref: `HEAD`
4
- - Previous tag: `v2.2.15-sdk.1`
5
- - Generated at: 2026-05-13T08:53:34.603Z
6
-
7
- ## Included Drafts
8
-
9
- - None