@fusebase/fusebase-gate-sdk 2.2.5-sdk.1 → 2.2.5-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.
@@ -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, CountIsolatedStoreNoSqlDocumentsRequestContract, CountIsolatedStoreNoSqlDocumentsResponseContract, CreateIsolatedStoreCheckpointRequestContract, CreateIsolatedStoreCheckpointResponseContract, CreateIsolatedStoreNoSqlCollectionRequestContract, CreateIsolatedStoreNoSqlCollectionResponseContract, CreateIsolatedStoreRequestContract, CreateIsolatedStoreResponseContract, DeleteIsolatedStoreNoSqlDocumentResponseContract, DeleteIsolatedStoreResponseContract, DeleteIsolatedStoreStageResponseContract, GetIsolatedStoreSqlMigrationStatusRequestContract, ImportIsolatedStoreNoSqlDocumentsRequestContract, ImportIsolatedStoreNoSqlDocumentsResponseContract, InitIsolatedStoreStageRequestContract, InitIsolatedStoreStageResponseContract, IsolatedStoreIdInPathRequired, IsolatedStoreListResponseContract, IsolatedStoreNoSqlCollectionNameInPathRequired, IsolatedStoreNoSqlDocumentIdInPathRequired, IsolatedStoreNoSqlDocumentResponseContract, IsolatedStoreNoSqlListCollectionsResponseContract, IsolatedStoreNoSqlStatsResponseContract, 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, ListIsolatedStoresClientIdInQueryOptional, orgIdInPathRequired, PutIsolatedStoreNoSqlDocumentRequestContract, PutIsolatedStoreNoSqlDocumentResponseContract, QueryIsolatedStoreNoSqlDocumentsRequestContract, QueryIsolatedStoreNoSqlDocumentsResponseContract, RestoreIsolatedStoreRevisionResponseContract } from "../types";
8
+ import type { AdoptIsolatedStoreSqlMigrationBaselineRequestContract, AdoptIsolatedStoreSqlMigrationBaselineResponseContract, ApplyIsolatedStoreSqlMigrationsRequestContract, ApplyIsolatedStoreSqlMigrationsResponseContract, CreateIsolatedStoreCheckpointRequestContract, CreateIsolatedStoreCheckpointResponseContract, CreateIsolatedStoreRequestContract, CreateIsolatedStoreResponseContract, DeleteIsolatedStoreResponseContract, DeleteIsolatedStoreStageResponseContract, GetIsolatedStoreSqlMigrationStatusRequestContract, 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, ListIsolatedStoresClientIdInQueryOptional, orgIdInPathRequired, RestoreIsolatedStoreRevisionResponseContract } from "../types";
9
9
  export declare class IsolatedStoresApi {
10
10
  private client;
11
11
  constructor(client: Client);
@@ -48,19 +48,6 @@ export declare class IsolatedStoresApi {
48
48
  headers?: Record<string, string>;
49
49
  body: IsolatedStoreSqlBatchInsertRequestContract;
50
50
  }): Promise<IsolatedStoreSqlBatchInsertResponseContract>;
51
- /**
52
- * Count isolated store NoSQL documents
53
- * Counts documents in a nosql/mongodb_atlas isolated store stage using the same portable filter operators as query: eq, ne, gt, gte, lt, lte, in, and exists.
54
- */
55
- countIsolatedStoreNoSqlDocuments(params: {
56
- path: {
57
- orgId: orgIdInPathRequired;
58
- storeId: IsolatedStoreIdInPathRequired;
59
- stage: IsolatedStoreStageInPathRequired;
60
- };
61
- headers?: Record<string, string>;
62
- body: CountIsolatedStoreNoSqlDocumentsRequestContract;
63
- }): Promise<CountIsolatedStoreNoSqlDocumentsResponseContract>;
64
51
  /**
65
52
  * Count rows
66
53
  * Counts rows in a postgres table using simple structured filters. Useful for pagination without writing raw SQL.
@@ -87,7 +74,7 @@ export declare class IsolatedStoresApi {
87
74
  }): Promise<CreateIsolatedStoreResponseContract>;
88
75
  /**
89
76
  * Create isolated store checkpoint
90
- * Creates a new revision marker for the selected stage instance. For sql/postgres stages, gate also creates a physical pg_dump snapshot; for nosql/mongodb_atlas stages, gate creates a physical mongodump archive. The resulting file URL is stored in snapshotRef; a caller-provided snapshotRef is preserved in revision metadata as an external reference.
77
+ * Creates a new revision marker for the selected stage instance. For sql/postgres stages, gate also creates a physical pg_dump snapshot. The resulting file URL is stored in snapshotRef; a caller-provided snapshotRef is preserved in revision metadata as an external reference.
91
78
  */
92
79
  createIsolatedStoreCheckpoint(params: {
93
80
  path: {
@@ -98,19 +85,6 @@ export declare class IsolatedStoresApi {
98
85
  headers?: Record<string, string>;
99
86
  body: CreateIsolatedStoreCheckpointRequestContract;
100
87
  }): Promise<CreateIsolatedStoreCheckpointResponseContract>;
101
- /**
102
- * Create isolated store NoSQL collection
103
- * Creates a collection for a nosql/mongodb_atlas isolated store stage. Collection names use safe identifiers with letters, numbers, and underscores.
104
- */
105
- createIsolatedStoreNoSqlCollection(params: {
106
- path: {
107
- orgId: orgIdInPathRequired;
108
- storeId: IsolatedStoreIdInPathRequired;
109
- stage: IsolatedStoreStageInPathRequired;
110
- };
111
- headers?: Record<string, string>;
112
- body: CreateIsolatedStoreNoSqlCollectionRequestContract;
113
- }): Promise<CreateIsolatedStoreNoSqlCollectionResponseContract>;
114
88
  /**
115
89
  * Delete isolated store
116
90
  * Deletes every stage instance for the store (same behavior as deleteIsolatedStoreStage per stage, including optional drop of auto-provisioned databases), then removes the store registry row and its org/source scope links. Use this to remove the whole store in one call instead of deleting each stage separately.
@@ -122,20 +96,6 @@ export declare class IsolatedStoresApi {
122
96
  };
123
97
  headers?: Record<string, string>;
124
98
  }): Promise<DeleteIsolatedStoreResponseContract>;
125
- /**
126
- * Delete isolated store NoSQL document
127
- * Deletes a document by `_id` from a nosql/mongodb_atlas isolated store stage.
128
- */
129
- deleteIsolatedStoreNoSqlDocument(params: {
130
- path: {
131
- orgId: orgIdInPathRequired;
132
- storeId: IsolatedStoreIdInPathRequired;
133
- stage: IsolatedStoreStageInPathRequired;
134
- collectionName: IsolatedStoreNoSqlCollectionNameInPathRequired;
135
- documentId: IsolatedStoreNoSqlDocumentIdInPathRequired;
136
- };
137
- headers?: Record<string, string>;
138
- }): Promise<DeleteIsolatedStoreNoSqlDocumentResponseContract>;
139
99
  /**
140
100
  * Delete rows
141
101
  * Deletes rows from a postgres table using structured filters. Filterless deletes are blocked unless allowAll=true is explicitly set.
@@ -151,7 +111,7 @@ export declare class IsolatedStoresApi {
151
111
  }): Promise<IsolatedStoreSqlDeleteResponseContract>;
152
112
  /**
153
113
  * Delete isolated store stage
154
- * Removes the stage instance and its revisions. When the stage was auto-provisioned on the isolated Postgres or isolated Mongo server, gate also drops the provisioned database after registry rows are removed. After deletion the stage no longer appears in listIsolatedStoreStages; recreate it with initIsolatedStoreStage using the same stage name.
114
+ * Removes the stage instance and its revisions. When the stage was auto-provisioned on the isolated Postgres server, gate also drops the provisioned database after registry rows are removed. After deletion the stage no longer appears in listIsolatedStoreStages; recreate it with initIsolatedStoreStage using the same stage name.
155
115
  */
156
116
  deleteIsolatedStoreStage(params: {
157
117
  path: {
@@ -201,32 +161,6 @@ export declare class IsolatedStoresApi {
201
161
  };
202
162
  headers?: Record<string, string>;
203
163
  }): Promise<IsolatedStoreResponseContract>;
204
- /**
205
- * Get isolated store NoSQL document
206
- * Gets a document by `_id` from a nosql/mongodb_atlas isolated store stage. The document identity comes from the `documentId` path parameter.
207
- */
208
- getIsolatedStoreNoSqlDocument(params: {
209
- path: {
210
- orgId: orgIdInPathRequired;
211
- storeId: IsolatedStoreIdInPathRequired;
212
- stage: IsolatedStoreStageInPathRequired;
213
- collectionName: IsolatedStoreNoSqlCollectionNameInPathRequired;
214
- documentId: IsolatedStoreNoSqlDocumentIdInPathRequired;
215
- };
216
- headers?: Record<string, string>;
217
- }): Promise<IsolatedStoreNoSqlDocumentResponseContract>;
218
- /**
219
- * Get NoSQL stats
220
- * Returns collection-level stats for the selected isolated Mongo stage, including collection names, document counts, and storage-size hints when available.
221
- */
222
- getIsolatedStoreNoSqlStats(params: {
223
- path: {
224
- orgId: orgIdInPathRequired;
225
- storeId: IsolatedStoreIdInPathRequired;
226
- stage: IsolatedStoreStageInPathRequired;
227
- };
228
- headers?: Record<string, string>;
229
- }): Promise<IsolatedStoreNoSqlStatsResponseContract>;
230
164
  /**
231
165
  * Get SQL migration status
232
166
  * Compares an ordered SQL migration bundle with the migration journal stored inside the selected postgres stage database. Returns applied migrations, pending migrations, drift issues when the applied history no longer matches the bundle prefix, and `canApply` / `structuredIssues` for automation. Prefer calling this immediately before `applyIsolatedStoreSqlMigrations` with the same bundle. Optional request fields `expectedLastAppliedVersion` / `expectedLastAppliedChecksum` (same semantics as apply) reject with HTTP 409 when the live journal tail disagrees — useful as a cheap preflight without sending `dryRun` on apply. Load MCP prompt isolatedSqlMigrationDiscipline (required with isolatedSql/isolated groups) before interpreting drift — do not edit applied migration metadata or the journal to force a match.
@@ -252,19 +186,6 @@ export declare class IsolatedStoresApi {
252
186
  };
253
187
  headers?: Record<string, string>;
254
188
  }): Promise<IsolatedStoreSqlStatsResponseContract>;
255
- /**
256
- * Import NDJSON documents
257
- * Imports newline-delimited JSON documents into a Mongo collection. Use this bulk path for large seed or migration-style writes instead of per-document tool calls.
258
- */
259
- importIsolatedStoreNoSqlDocuments(params: {
260
- path: {
261
- orgId: orgIdInPathRequired;
262
- storeId: IsolatedStoreIdInPathRequired;
263
- stage: IsolatedStoreStageInPathRequired;
264
- };
265
- headers?: Record<string, string>;
266
- body: ImportIsolatedStoreNoSqlDocumentsRequestContract;
267
- }): Promise<ImportIsolatedStoreNoSqlDocumentsResponseContract>;
268
189
  /**
269
190
  * Import CSV or TSV rows
270
191
  * 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.
@@ -280,7 +201,7 @@ export declare class IsolatedStoresApi {
280
201
  }): Promise<IsolatedStoreSqlImportResponseContract>;
281
202
  /**
282
203
  * Initialize isolated store stage
283
- * Creates a stage instance. For postgres and mongodb_atlas, gate can auto-provision a dedicated stage database when the corresponding isolated server is configured; otherwise an explicit bindingConfig is required.
204
+ * Creates a stage instance. For postgres, gate can auto-provision a dedicated stage database when the isolated server is configured; otherwise an explicit bindingConfig is required.
284
205
  */
285
206
  initIsolatedStoreStage(params: {
286
207
  path: {
@@ -303,18 +224,6 @@ export declare class IsolatedStoresApi {
303
224
  headers?: Record<string, string>;
304
225
  body: IsolatedStoreSqlInsertRequestContract;
305
226
  }): Promise<IsolatedStoreSqlInsertResponseContract>;
306
- /**
307
- * List isolated store NoSQL collections
308
- * Lists collections for a nosql/mongodb_atlas isolated store stage. The same contract can be backed by a local isolated Mongo server in development.
309
- */
310
- listIsolatedStoreNoSqlCollections(params: {
311
- path: {
312
- orgId: orgIdInPathRequired;
313
- storeId: IsolatedStoreIdInPathRequired;
314
- stage: IsolatedStoreStageInPathRequired;
315
- };
316
- headers?: Record<string, string>;
317
- }): Promise<IsolatedStoreNoSqlListCollectionsResponseContract>;
318
227
  /**
319
228
  * List isolated store revisions
320
229
  * Returns version checkpoints for a specific isolated store stage instance.
@@ -366,34 +275,6 @@ export declare class IsolatedStoresApi {
366
275
  };
367
276
  headers?: Record<string, string>;
368
277
  }): Promise<IsolatedStoreStageListResponseContract>;
369
- /**
370
- * Put isolated store NoSQL document
371
- * Upserts a document by `_id` into a nosql/mongodb_atlas isolated store stage. The `documentId` path parameter is the source of truth for `_id` and overrides any `_id` inside the body document.
372
- */
373
- putIsolatedStoreNoSqlDocument(params: {
374
- path: {
375
- orgId: orgIdInPathRequired;
376
- storeId: IsolatedStoreIdInPathRequired;
377
- stage: IsolatedStoreStageInPathRequired;
378
- collectionName: IsolatedStoreNoSqlCollectionNameInPathRequired;
379
- documentId: IsolatedStoreNoSqlDocumentIdInPathRequired;
380
- };
381
- headers?: Record<string, string>;
382
- body: PutIsolatedStoreNoSqlDocumentRequestContract;
383
- }): Promise<PutIsolatedStoreNoSqlDocumentResponseContract>;
384
- /**
385
- * Query isolated store NoSQL documents
386
- * Queries documents from a nosql/mongodb_atlas isolated store stage using portable filters, sort and pagination. Supported operators are eq, ne, gt, gte, lt, lte, in, and exists. Default limit is 100, max limit is 500, max filters is 20, and max sort fields is 5.
387
- */
388
- queryIsolatedStoreNoSqlDocuments(params: {
389
- path: {
390
- orgId: orgIdInPathRequired;
391
- storeId: IsolatedStoreIdInPathRequired;
392
- stage: IsolatedStoreStageInPathRequired;
393
- };
394
- headers?: Record<string, string>;
395
- body: QueryIsolatedStoreNoSqlDocumentsRequestContract;
396
- }): Promise<QueryIsolatedStoreNoSqlDocumentsResponseContract>;
397
278
  /**
398
279
  * Run read-only SQL query
399
280
  * Runs a single read-only SQL statement against the postgres binding of the selected isolated store stage instance.
@@ -409,7 +290,7 @@ export declare class IsolatedStoresApi {
409
290
  }): Promise<IsolatedStoreSqlQueryResponseContract>;
410
291
  /**
411
292
  * Restore isolated store revision
412
- * Restores a sql/postgres or nosql/mongodb_atlas stage from a previously created physical file snapshot. For auto-provisioned dedicated stage databases, gate recreates or clears the target database before running pg_restore or mongorestore. Only file:// snapshotRef values are restorable in MVP.
293
+ * Restores a sql/postgres stage from a previously created physical file snapshot. For auto-provisioned dedicated stage databases, gate recreates the target database before running pg_restore. Only file:// snapshotRef values are restorable in MVP.
413
294
  */
414
295
  restoreIsolatedStoreRevision(params: {
415
296
  path: {
@@ -56,21 +56,6 @@ class IsolatedStoresApi {
56
56
  expectedContentType: "application/json",
57
57
  });
58
58
  }
59
- /**
60
- * Count isolated store NoSQL documents
61
- * Counts documents in a nosql/mongodb_atlas isolated store stage using the same portable filter operators as query: eq, ne, gt, gte, lt, lte, in, and exists.
62
- */
63
- async countIsolatedStoreNoSqlDocuments(params) {
64
- return this.client.request({
65
- method: "POST",
66
- path: "/:orgId/isolated-stores/:storeId/stages/:stage/nosql/count-documents",
67
- pathParams: params.path,
68
- headers: params.headers,
69
- body: params.body,
70
- opId: "countIsolatedStoreNoSqlDocuments",
71
- expectedContentType: "application/json",
72
- });
73
- }
74
59
  /**
75
60
  * Count rows
76
61
  * Counts rows in a postgres table using simple structured filters. Useful for pagination without writing raw SQL.
@@ -103,7 +88,7 @@ class IsolatedStoresApi {
103
88
  }
104
89
  /**
105
90
  * Create isolated store checkpoint
106
- * Creates a new revision marker for the selected stage instance. For sql/postgres stages, gate also creates a physical pg_dump snapshot; for nosql/mongodb_atlas stages, gate creates a physical mongodump archive. The resulting file URL is stored in snapshotRef; a caller-provided snapshotRef is preserved in revision metadata as an external reference.
91
+ * Creates a new revision marker for the selected stage instance. For sql/postgres stages, gate also creates a physical pg_dump snapshot. The resulting file URL is stored in snapshotRef; a caller-provided snapshotRef is preserved in revision metadata as an external reference.
107
92
  */
108
93
  async createIsolatedStoreCheckpoint(params) {
109
94
  return this.client.request({
@@ -116,21 +101,6 @@ class IsolatedStoresApi {
116
101
  expectedContentType: "application/json",
117
102
  });
118
103
  }
119
- /**
120
- * Create isolated store NoSQL collection
121
- * Creates a collection for a nosql/mongodb_atlas isolated store stage. Collection names use safe identifiers with letters, numbers, and underscores.
122
- */
123
- async createIsolatedStoreNoSqlCollection(params) {
124
- return this.client.request({
125
- method: "POST",
126
- path: "/:orgId/isolated-stores/:storeId/stages/:stage/nosql/collections",
127
- pathParams: params.path,
128
- headers: params.headers,
129
- body: params.body,
130
- opId: "createIsolatedStoreNoSqlCollection",
131
- expectedContentType: "application/json",
132
- });
133
- }
134
104
  /**
135
105
  * Delete isolated store
136
106
  * Deletes every stage instance for the store (same behavior as deleteIsolatedStoreStage per stage, including optional drop of auto-provisioned databases), then removes the store registry row and its org/source scope links. Use this to remove the whole store in one call instead of deleting each stage separately.
@@ -145,20 +115,6 @@ class IsolatedStoresApi {
145
115
  expectedContentType: "application/json",
146
116
  });
147
117
  }
148
- /**
149
- * Delete isolated store NoSQL document
150
- * Deletes a document by `_id` from a nosql/mongodb_atlas isolated store stage.
151
- */
152
- async deleteIsolatedStoreNoSqlDocument(params) {
153
- return this.client.request({
154
- method: "DELETE",
155
- path: "/:orgId/isolated-stores/:storeId/stages/:stage/nosql/collections/:collectionName/documents/:documentId",
156
- pathParams: params.path,
157
- headers: params.headers,
158
- opId: "deleteIsolatedStoreNoSqlDocument",
159
- expectedContentType: "application/json",
160
- });
161
- }
162
118
  /**
163
119
  * Delete rows
164
120
  * Deletes rows from a postgres table using structured filters. Filterless deletes are blocked unless allowAll=true is explicitly set.
@@ -176,7 +132,7 @@ class IsolatedStoresApi {
176
132
  }
177
133
  /**
178
134
  * Delete isolated store stage
179
- * Removes the stage instance and its revisions. When the stage was auto-provisioned on the isolated Postgres or isolated Mongo server, gate also drops the provisioned database after registry rows are removed. After deletion the stage no longer appears in listIsolatedStoreStages; recreate it with initIsolatedStoreStage using the same stage name.
135
+ * Removes the stage instance and its revisions. When the stage was auto-provisioned on the isolated Postgres server, gate also drops the provisioned database after registry rows are removed. After deletion the stage no longer appears in listIsolatedStoreStages; recreate it with initIsolatedStoreStage using the same stage name.
180
136
  */
181
137
  async deleteIsolatedStoreStage(params) {
182
138
  return this.client.request({
@@ -232,34 +188,6 @@ class IsolatedStoresApi {
232
188
  expectedContentType: "application/json",
233
189
  });
234
190
  }
235
- /**
236
- * Get isolated store NoSQL document
237
- * Gets a document by `_id` from a nosql/mongodb_atlas isolated store stage. The document identity comes from the `documentId` path parameter.
238
- */
239
- async getIsolatedStoreNoSqlDocument(params) {
240
- return this.client.request({
241
- method: "GET",
242
- path: "/:orgId/isolated-stores/:storeId/stages/:stage/nosql/collections/:collectionName/documents/:documentId",
243
- pathParams: params.path,
244
- headers: params.headers,
245
- opId: "getIsolatedStoreNoSqlDocument",
246
- expectedContentType: "application/json",
247
- });
248
- }
249
- /**
250
- * Get NoSQL stats
251
- * Returns collection-level stats for the selected isolated Mongo stage, including collection names, document counts, and storage-size hints when available.
252
- */
253
- async getIsolatedStoreNoSqlStats(params) {
254
- return this.client.request({
255
- method: "GET",
256
- path: "/:orgId/isolated-stores/:storeId/stages/:stage/nosql/stats",
257
- pathParams: params.path,
258
- headers: params.headers,
259
- opId: "getIsolatedStoreNoSqlStats",
260
- expectedContentType: "application/json",
261
- });
262
- }
263
191
  /**
264
192
  * Get SQL migration status
265
193
  * Compares an ordered SQL migration bundle with the migration journal stored inside the selected postgres stage database. Returns applied migrations, pending migrations, drift issues when the applied history no longer matches the bundle prefix, and `canApply` / `structuredIssues` for automation. Prefer calling this immediately before `applyIsolatedStoreSqlMigrations` with the same bundle. Optional request fields `expectedLastAppliedVersion` / `expectedLastAppliedChecksum` (same semantics as apply) reject with HTTP 409 when the live journal tail disagrees — useful as a cheap preflight without sending `dryRun` on apply. Load MCP prompt isolatedSqlMigrationDiscipline (required with isolatedSql/isolated groups) before interpreting drift — do not edit applied migration metadata or the journal to force a match.
@@ -289,21 +217,6 @@ class IsolatedStoresApi {
289
217
  expectedContentType: "application/json",
290
218
  });
291
219
  }
292
- /**
293
- * Import NDJSON documents
294
- * Imports newline-delimited JSON documents into a Mongo collection. Use this bulk path for large seed or migration-style writes instead of per-document tool calls.
295
- */
296
- async importIsolatedStoreNoSqlDocuments(params) {
297
- return this.client.request({
298
- method: "POST",
299
- path: "/:orgId/isolated-stores/:storeId/stages/:stage/nosql/import-documents",
300
- pathParams: params.path,
301
- headers: params.headers,
302
- body: params.body,
303
- opId: "importIsolatedStoreNoSqlDocuments",
304
- expectedContentType: "application/json",
305
- });
306
- }
307
220
  /**
308
221
  * Import CSV or TSV rows
309
222
  * 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.
@@ -321,7 +234,7 @@ class IsolatedStoresApi {
321
234
  }
322
235
  /**
323
236
  * Initialize isolated store stage
324
- * Creates a stage instance. For postgres and mongodb_atlas, gate can auto-provision a dedicated stage database when the corresponding isolated server is configured; otherwise an explicit bindingConfig is required.
237
+ * Creates a stage instance. For postgres, gate can auto-provision a dedicated stage database when the isolated server is configured; otherwise an explicit bindingConfig is required.
325
238
  */
326
239
  async initIsolatedStoreStage(params) {
327
240
  return this.client.request({
@@ -349,20 +262,6 @@ class IsolatedStoresApi {
349
262
  expectedContentType: "application/json",
350
263
  });
351
264
  }
352
- /**
353
- * List isolated store NoSQL collections
354
- * Lists collections for a nosql/mongodb_atlas isolated store stage. The same contract can be backed by a local isolated Mongo server in development.
355
- */
356
- async listIsolatedStoreNoSqlCollections(params) {
357
- return this.client.request({
358
- method: "GET",
359
- path: "/:orgId/isolated-stores/:storeId/stages/:stage/nosql/collections",
360
- pathParams: params.path,
361
- headers: params.headers,
362
- opId: "listIsolatedStoreNoSqlCollections",
363
- expectedContentType: "application/json",
364
- });
365
- }
366
265
  /**
367
266
  * List isolated store revisions
368
267
  * Returns version checkpoints for a specific isolated store stage instance.
@@ -421,36 +320,6 @@ class IsolatedStoresApi {
421
320
  expectedContentType: "application/json",
422
321
  });
423
322
  }
424
- /**
425
- * Put isolated store NoSQL document
426
- * Upserts a document by `_id` into a nosql/mongodb_atlas isolated store stage. The `documentId` path parameter is the source of truth for `_id` and overrides any `_id` inside the body document.
427
- */
428
- async putIsolatedStoreNoSqlDocument(params) {
429
- return this.client.request({
430
- method: "PUT",
431
- path: "/:orgId/isolated-stores/:storeId/stages/:stage/nosql/collections/:collectionName/documents/:documentId",
432
- pathParams: params.path,
433
- headers: params.headers,
434
- body: params.body,
435
- opId: "putIsolatedStoreNoSqlDocument",
436
- expectedContentType: "application/json",
437
- });
438
- }
439
- /**
440
- * Query isolated store NoSQL documents
441
- * Queries documents from a nosql/mongodb_atlas isolated store stage using portable filters, sort and pagination. Supported operators are eq, ne, gt, gte, lt, lte, in, and exists. Default limit is 100, max limit is 500, max filters is 20, and max sort fields is 5.
442
- */
443
- async queryIsolatedStoreNoSqlDocuments(params) {
444
- return this.client.request({
445
- method: "POST",
446
- path: "/:orgId/isolated-stores/:storeId/stages/:stage/nosql/query-documents",
447
- pathParams: params.path,
448
- headers: params.headers,
449
- body: params.body,
450
- opId: "queryIsolatedStoreNoSqlDocuments",
451
- expectedContentType: "application/json",
452
- });
453
- }
454
323
  /**
455
324
  * Run read-only SQL query
456
325
  * Runs a single read-only SQL statement against the postgres binding of the selected isolated store stage instance.
@@ -468,7 +337,7 @@ class IsolatedStoresApi {
468
337
  }
469
338
  /**
470
339
  * Restore isolated store revision
471
- * Restores a sql/postgres or nosql/mongodb_atlas stage from a previously created physical file snapshot. For auto-provisioned dedicated stage databases, gate recreates or clears the target database before running pg_restore or mongorestore. Only file:// snapshotRef values are restorable in MVP.
340
+ * Restores a sql/postgres stage from a previously created physical file snapshot. For auto-provisioned dedicated stage databases, gate recreates the target database before running pg_restore. Only file:// snapshotRef values are restorable in MVP.
472
341
  */
473
342
  async restoreIsolatedStoreRevision(params) {
474
343
  return this.client.request({
@@ -2,10 +2,8 @@ export type IsolatedStoreIdInPathRequired = string;
2
2
  export type IsolatedStoreStageInPathRequired = "dev" | "prod";
3
3
  export type IsolatedStoreRevisionIdInPathRequired = string;
4
4
  export type IsolatedStoreSqlTableNameInPathRequired = string;
5
- export type IsolatedStoreNoSqlCollectionNameInPathRequired = string;
6
- export type IsolatedStoreNoSqlDocumentIdInPathRequired = string;
7
- export type IsolatedStoreTypeContract = "sql" | "nosql";
8
- export type IsolatedStoreEngineContract = "postgres" | "mongodb_atlas";
5
+ export type IsolatedStoreTypeContract = "sql";
6
+ export type IsolatedStoreEngineContract = "postgres";
9
7
  export type IsolatedStoreStatusContract = "active" | "disabled";
10
8
  export type IsolatedStoreStageStatusContract = "provisioning" | "ready" | "failed" | "disabled";
11
9
  export type IsolatedStoreRevisionKindContract = "checkpoint" | "promotion";
@@ -43,13 +41,7 @@ export interface IsolatedStorePostgresBindingConfigContract {
43
41
  ssl?: boolean;
44
42
  schema?: string;
45
43
  }
46
- export interface IsolatedStoreMongoBindingConfigContract {
47
- connectionMode?: "uri" | "server";
48
- serverKey?: string;
49
- uri?: string;
50
- database: string;
51
- }
52
- export type IsolatedStoreBindingConfigContract = IsolatedStorePostgresBindingConfigContract | IsolatedStoreMongoBindingConfigContract;
44
+ export type IsolatedStoreBindingConfigContract = IsolatedStorePostgresBindingConfigContract;
53
45
  export interface IsolatedStoreStageInstanceContract {
54
46
  globalId: string;
55
47
  storeGlobalId: string;
@@ -412,102 +404,11 @@ export interface RestoreIsolatedStoreRevisionResponseContract {
412
404
  revision: IsolatedStoreRevisionContract;
413
405
  stageInstance: IsolatedStoreStageInstanceContract;
414
406
  }
415
- export interface IsolatedStoreNoSqlCollectionContract {
416
- collectionName: string;
417
- }
418
- export interface IsolatedStoreNoSqlCollectionStatsContract {
419
- collectionName: string;
420
- documentCount: number;
421
- sizeBytes?: number | null;
422
- storageSizeBytes?: number | null;
423
- avgDocumentSizeBytes?: number | null;
424
- }
425
- export interface IsolatedStoreNoSqlStatsResponseContract {
426
- databaseName: string;
427
- collectionCount: number;
428
- totalDocumentCount: number;
429
- totalSizeBytes?: number | null;
430
- collections: IsolatedStoreNoSqlCollectionStatsContract[];
431
- }
432
- export interface IsolatedStoreNoSqlListCollectionsResponseContract {
433
- collections: IsolatedStoreNoSqlCollectionContract[];
434
- }
435
- export interface CreateIsolatedStoreNoSqlCollectionRequestContract {
436
- collectionName: string;
437
- }
438
- export interface CreateIsolatedStoreNoSqlCollectionResponseContract {
439
- collection: IsolatedStoreNoSqlCollectionContract;
440
- }
441
- export interface IsolatedStoreNoSqlDocumentResponseContract {
442
- document: Record<string, unknown>;
443
- }
444
- export interface PutIsolatedStoreNoSqlDocumentRequestContract {
445
- document: Record<string, unknown>;
446
- }
447
- export interface PutIsolatedStoreNoSqlDocumentResponseContract {
448
- document: Record<string, unknown>;
449
- upserted: boolean;
450
- }
451
- export interface DeleteIsolatedStoreNoSqlDocumentResponseContract {
452
- deleted: boolean;
453
- }
454
- export type IsolatedStoreNoSqlFilterOperatorContract = "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "in" | "exists";
455
- export type IsolatedStoreNoSqlSortDirectionContract = "asc" | "desc";
456
- export interface IsolatedStoreNoSqlFilterContract {
457
- field: string;
458
- operator: IsolatedStoreNoSqlFilterOperatorContract;
459
- value?: unknown;
460
- }
461
- export interface IsolatedStoreNoSqlSortContract {
462
- field: string;
463
- direction?: IsolatedStoreNoSqlSortDirectionContract;
464
- }
465
- export interface QueryIsolatedStoreNoSqlDocumentsRequestContract {
466
- collectionName: string;
467
- filters?: IsolatedStoreNoSqlFilterContract[] | null;
468
- sort?: IsolatedStoreNoSqlSortContract[] | null;
469
- limit?: number | null;
470
- offset?: number | null;
471
- }
472
- export interface QueryIsolatedStoreNoSqlDocumentsResponseContract {
473
- documents: Record<string, unknown>[];
474
- page: {
475
- limit: number;
476
- offset: number;
477
- rowCount: number;
478
- };
479
- }
480
- export interface CountIsolatedStoreNoSqlDocumentsRequestContract {
481
- collectionName: string;
482
- filters?: IsolatedStoreNoSqlFilterContract[] | null;
483
- }
484
- export interface CountIsolatedStoreNoSqlDocumentsResponseContract {
485
- count: number;
486
- }
487
- export type IsolatedStoreNoSqlImportModeContract = "insert" | "upsert";
488
- export interface ImportIsolatedStoreNoSqlDocumentsRequestContract {
489
- collectionName: string;
490
- data: string;
491
- mode?: IsolatedStoreNoSqlImportModeContract | null;
492
- ordered?: boolean | null;
493
- }
494
- export interface ImportIsolatedStoreNoSqlDocumentsResponseContract {
495
- imported: true;
496
- collectionName: string;
497
- mode: IsolatedStoreNoSqlImportModeContract;
498
- lineCount: number;
499
- insertedCount: number;
500
- matchedCount: number;
501
- modifiedCount: number;
502
- upsertedCount: number;
503
- }
504
407
  export declare const IsolatedStoreTypeContract: {
505
408
  readonly Sql: "sql";
506
- readonly Nosql: "nosql";
507
409
  };
508
410
  export declare const IsolatedStoreEngineContract: {
509
411
  readonly Postgres: "postgres";
510
- readonly MongodbAtlas: "mongodb_atlas";
511
412
  };
512
413
  export declare const IsolatedStoreStatusContract: {
513
414
  readonly Active: "active";
@@ -571,21 +472,3 @@ export declare const IsolatedStoreSqlImportFormatContract: {
571
472
  readonly Csv: "csv";
572
473
  readonly Tsv: "tsv";
573
474
  };
574
- export declare const IsolatedStoreNoSqlFilterOperatorContract: {
575
- readonly Eq: "eq";
576
- readonly Ne: "ne";
577
- readonly Gt: "gt";
578
- readonly Gte: "gte";
579
- readonly Lt: "lt";
580
- readonly Lte: "lte";
581
- readonly In: "in";
582
- readonly Exists: "exists";
583
- };
584
- export declare const IsolatedStoreNoSqlSortDirectionContract: {
585
- readonly Asc: "asc";
586
- readonly Desc: "desc";
587
- };
588
- export declare const IsolatedStoreNoSqlImportModeContract: {
589
- readonly Insert: "insert";
590
- readonly Upsert: "upsert";
591
- };
@@ -1,13 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IsolatedStoreNoSqlImportModeContract = exports.IsolatedStoreNoSqlSortDirectionContract = exports.IsolatedStoreNoSqlFilterOperatorContract = exports.IsolatedStoreSqlImportFormatContract = exports.IsolatedStoreSqlSortDirectionContract = exports.IsolatedStoreSqlFilterOperatorContract = exports.IsolatedStoreSqlMigrationIssueFieldContract = exports.IsolatedStoreSqlMigrationIssueCodeContract = exports.IsolatedStoreScopeTypeContract = exports.IsolatedStoreRevisionKindContract = exports.IsolatedStoreStageStatusContract = exports.IsolatedStoreStatusContract = exports.IsolatedStoreEngineContract = exports.IsolatedStoreTypeContract = void 0;
3
+ exports.IsolatedStoreSqlImportFormatContract = exports.IsolatedStoreSqlSortDirectionContract = exports.IsolatedStoreSqlFilterOperatorContract = exports.IsolatedStoreSqlMigrationIssueFieldContract = exports.IsolatedStoreSqlMigrationIssueCodeContract = exports.IsolatedStoreScopeTypeContract = exports.IsolatedStoreRevisionKindContract = exports.IsolatedStoreStageStatusContract = exports.IsolatedStoreStatusContract = exports.IsolatedStoreEngineContract = exports.IsolatedStoreTypeContract = void 0;
4
4
  exports.IsolatedStoreTypeContract = {
5
- Sql: "sql",
6
- Nosql: "nosql"
5
+ Sql: "sql"
7
6
  };
8
7
  exports.IsolatedStoreEngineContract = {
9
- Postgres: "postgres",
10
- MongodbAtlas: "mongodb_atlas"
8
+ Postgres: "postgres"
11
9
  };
12
10
  exports.IsolatedStoreStatusContract = {
13
11
  Active: "active",
@@ -71,21 +69,3 @@ exports.IsolatedStoreSqlImportFormatContract = {
71
69
  Csv: "csv",
72
70
  Tsv: "tsv"
73
71
  };
74
- exports.IsolatedStoreNoSqlFilterOperatorContract = {
75
- Eq: "eq",
76
- Ne: "ne",
77
- Gt: "gt",
78
- Gte: "gte",
79
- Lt: "lt",
80
- Lte: "lte",
81
- In: "in",
82
- Exists: "exists"
83
- };
84
- exports.IsolatedStoreNoSqlSortDirectionContract = {
85
- Asc: "asc",
86
- Desc: "desc"
87
- };
88
- exports.IsolatedStoreNoSqlImportModeContract = {
89
- Insert: "insert",
90
- Upsert: "upsert"
91
- };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fusebase/fusebase-gate-sdk",
3
- "version": "2.2.5-sdk.1",
3
+ "version": "2.2.5-sdk.3",
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.5-sdk.3
2
+
3
+ - Current ref: `HEAD`
4
+ - Previous tag: `v2.2.5-sdk.3`
5
+ - Generated at: 2026-04-13T15:53:17.553Z
6
+
7
+ ## Included Drafts
8
+
9
+ - None
@@ -1,8 +1,8 @@
1
- # Release Notes 2.2.5-sdk.1
1
+ # Release Notes 2.2.5-sdk.3
2
2
 
3
3
  - Current ref: `HEAD`
4
- - Previous tag: `v2.2.5-sdk.1`
5
- - Generated at: 2026-04-13T15:22:03.795Z
4
+ - Previous tag: `v2.2.5-sdk.3`
5
+ - Generated at: 2026-04-13T15:53:17.553Z
6
6
 
7
7
  ## Included Drafts
8
8
 
@@ -1,9 +0,0 @@
1
- # Release Notes 2.2.5-sdk.1
2
-
3
- - Current ref: `HEAD`
4
- - Previous tag: `v2.2.5-sdk.1`
5
- - Generated at: 2026-04-13T15:22:03.795Z
6
-
7
- ## Included Drafts
8
-
9
- - None