@fusebase/fusebase-gate-sdk 2.2.2-sdk.19 → 2.2.2-sdk.20

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.
@@ -0,0 +1,415 @@
1
+ export type IsolatedStoreIdInPathRequired = string;
2
+ export type IsolatedStoreStageInPathRequired = "dev" | "prod";
3
+ export type IsolatedStoreRevisionIdInPathRequired = string;
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";
9
+ export type IsolatedStoreStatusContract = "active" | "disabled";
10
+ export type IsolatedStoreStageStatusContract = "provisioning" | "ready" | "failed" | "disabled";
11
+ export type IsolatedStoreRevisionKindContract = "checkpoint" | "promotion";
12
+ export type IsolatedStoreScopeTypeContract = "org" | "workspace" | "portal" | "user" | "client" | "block" | "tracker" | "parent_row" | "parent_table";
13
+ export interface IsolatedStoreScopeContract {
14
+ scopeType: IsolatedStoreScopeTypeContract;
15
+ scopeId: string;
16
+ }
17
+ export interface IsolatedStoreSourceScopeContract {
18
+ sourceType: string;
19
+ sourceId: string;
20
+ }
21
+ export interface IsolatedStoreContract {
22
+ globalId: string;
23
+ alias: string;
24
+ storeType: IsolatedStoreTypeContract;
25
+ engine: IsolatedStoreEngineContract;
26
+ status: IsolatedStoreStatusContract;
27
+ scopes: IsolatedStoreScopeContract[];
28
+ sourceScopes: IsolatedStoreSourceScopeContract[];
29
+ createdByUserId: string;
30
+ createdAt: string;
31
+ updatedAt: string;
32
+ }
33
+ /** Connection binding for a SQL/postgres isolated store stage (control plane + MCP). */
34
+ export interface IsolatedStorePostgresBindingConfigContract {
35
+ connectionMode?: "raw" | "server";
36
+ serverKey?: string;
37
+ host?: string;
38
+ port?: number | null;
39
+ database: string;
40
+ username?: string;
41
+ user?: string;
42
+ password?: string;
43
+ ssl?: boolean;
44
+ schema?: string;
45
+ }
46
+ export interface IsolatedStoreMongoBindingConfigContract {
47
+ connectionMode?: "uri" | "server";
48
+ serverKey?: string;
49
+ uri?: string;
50
+ database: string;
51
+ }
52
+ export type IsolatedStoreBindingConfigContract = IsolatedStorePostgresBindingConfigContract | IsolatedStoreMongoBindingConfigContract;
53
+ export interface IsolatedStoreStageInstanceContract {
54
+ globalId: string;
55
+ storeGlobalId: string;
56
+ stage: IsolatedStoreStageInPathRequired;
57
+ status: IsolatedStoreStageStatusContract;
58
+ bindingConfig?: IsolatedStoreBindingConfigContract | null;
59
+ provisioningMetadata?: Record<string, unknown> | null;
60
+ createdByUserId: string;
61
+ createdAt: string;
62
+ updatedAt: string;
63
+ }
64
+ export interface IsolatedStoreRevisionContract {
65
+ globalId: string;
66
+ storeGlobalId: string;
67
+ stage: IsolatedStoreStageInPathRequired;
68
+ revisionNumber: number;
69
+ kind: IsolatedStoreRevisionKindContract;
70
+ label?: string | null;
71
+ snapshotRef?: string | null;
72
+ metadata?: Record<string, unknown> | null;
73
+ createdByUserId: string;
74
+ createdAt: string;
75
+ updatedAt: string;
76
+ }
77
+ export type IsolatedStoreSqlSchemaNameInQueryOptional = string | null;
78
+ export interface IsolatedStoreSqlListTablesQueryContract {
79
+ schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
80
+ }
81
+ export interface IsolatedStoreSqlDescribeTableQueryContract {
82
+ schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
83
+ }
84
+ export interface IsolatedStoreSqlTableContract {
85
+ schemaName: string;
86
+ tableName: string;
87
+ tableType: string;
88
+ }
89
+ export interface IsolatedStoreSqlColumnContract {
90
+ columnName: string;
91
+ dataType: string;
92
+ udtName?: string | null;
93
+ isNullable: boolean;
94
+ defaultValue?: string | null;
95
+ ordinalPosition: number;
96
+ }
97
+ export interface IsolatedStoreSqlTableDescriptionContract {
98
+ schemaName: string;
99
+ tableName: string;
100
+ columns: IsolatedStoreSqlColumnContract[];
101
+ }
102
+ export interface IsolatedStoreSqlListTablesResponseContract {
103
+ tables: IsolatedStoreSqlTableContract[];
104
+ }
105
+ export interface IsolatedStoreSqlDescribeTableResponseContract {
106
+ table: IsolatedStoreSqlTableDescriptionContract;
107
+ }
108
+ export interface IsolatedStoreSqlQueryRequestContract {
109
+ sql: string;
110
+ params?: unknown[] | null;
111
+ }
112
+ export interface IsolatedStoreSqlQueryResultContract {
113
+ command: string;
114
+ rowCount: number;
115
+ columns: string[];
116
+ rows: Record<string, unknown>[];
117
+ }
118
+ export interface IsolatedStoreSqlQueryResponseContract {
119
+ result: IsolatedStoreSqlQueryResultContract;
120
+ }
121
+ export interface IsolatedStoreSqlExecuteRequestContract {
122
+ sql: string;
123
+ params?: unknown[] | null;
124
+ }
125
+ export interface IsolatedStoreSqlExecuteResponseContract {
126
+ result: IsolatedStoreSqlQueryResultContract;
127
+ }
128
+ export type IsolatedStoreSqlFilterOperatorContract = "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "like" | "ilike" | "in" | "is_null" | "is_not_null";
129
+ export type IsolatedStoreSqlSortDirectionContract = "asc" | "desc";
130
+ export interface IsolatedStoreSqlFilterContract {
131
+ column: string;
132
+ operator: IsolatedStoreSqlFilterOperatorContract;
133
+ value?: unknown;
134
+ }
135
+ export interface IsolatedStoreSqlSortContract {
136
+ column: string;
137
+ direction?: IsolatedStoreSqlSortDirectionContract;
138
+ }
139
+ export interface IsolatedStoreSqlCountRequestContract {
140
+ schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
141
+ tableName: string;
142
+ filters?: IsolatedStoreSqlFilterContract[] | null;
143
+ }
144
+ export interface IsolatedStoreSqlCountResponseContract {
145
+ count: number;
146
+ }
147
+ export interface IsolatedStoreSqlSelectRequestContract {
148
+ schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
149
+ tableName: string;
150
+ columns?: string[] | null;
151
+ filters?: IsolatedStoreSqlFilterContract[] | null;
152
+ sort?: IsolatedStoreSqlSortContract[] | null;
153
+ limit?: number | null;
154
+ offset?: number | null;
155
+ }
156
+ export interface IsolatedStoreSqlSelectResponseContract {
157
+ columns: string[];
158
+ rows: Record<string, unknown>[];
159
+ page: {
160
+ limit: number;
161
+ offset: number;
162
+ rowCount: number;
163
+ };
164
+ }
165
+ export interface IsolatedStoreSqlInsertRequestContract {
166
+ schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
167
+ tableName: string;
168
+ values: Record<string, unknown>;
169
+ returning?: string[] | null;
170
+ }
171
+ export interface IsolatedStoreSqlInsertResponseContract {
172
+ rowCount: number;
173
+ rows: Record<string, unknown>[];
174
+ }
175
+ export interface IsolatedStoreSqlBatchInsertRequestContract {
176
+ schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
177
+ tableName: string;
178
+ rows: Record<string, unknown>[];
179
+ returning?: string[] | null;
180
+ }
181
+ export interface IsolatedStoreSqlBatchInsertResponseContract {
182
+ rowCount: number;
183
+ rows: Record<string, unknown>[];
184
+ }
185
+ export type IsolatedStoreSqlImportFormatContract = "csv" | "tsv";
186
+ export interface IsolatedStoreSqlImportRequestContract {
187
+ schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
188
+ tableName: string;
189
+ format: IsolatedStoreSqlImportFormatContract;
190
+ data: string;
191
+ columns?: string[] | null;
192
+ hasHeader?: boolean | null;
193
+ nullString?: string | null;
194
+ }
195
+ export interface IsolatedStoreSqlImportResponseContract {
196
+ imported: true;
197
+ tableName: string;
198
+ format: IsolatedStoreSqlImportFormatContract;
199
+ rowCount: number;
200
+ }
201
+ export interface IsolatedStoreSqlUpdateRequestContract {
202
+ schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
203
+ tableName: string;
204
+ values: Record<string, unknown>;
205
+ filters?: IsolatedStoreSqlFilterContract[] | null;
206
+ allowAll?: boolean | null;
207
+ returning?: string[] | null;
208
+ }
209
+ export interface IsolatedStoreSqlUpdateResponseContract {
210
+ rowCount: number;
211
+ rows: Record<string, unknown>[];
212
+ }
213
+ export interface IsolatedStoreSqlDeleteRequestContract {
214
+ schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
215
+ tableName: string;
216
+ filters?: IsolatedStoreSqlFilterContract[] | null;
217
+ allowAll?: boolean | null;
218
+ }
219
+ export interface IsolatedStoreSqlDeleteResponseContract {
220
+ rowCount: number;
221
+ }
222
+ export interface CreateIsolatedStoreRequestContract {
223
+ alias: string;
224
+ storeType: IsolatedStoreTypeContract;
225
+ engine: IsolatedStoreEngineContract;
226
+ source: IsolatedStoreSourceScopeContract;
227
+ }
228
+ export interface CreateIsolatedStoreResponseContract {
229
+ store: IsolatedStoreContract;
230
+ }
231
+ export interface IsolatedStoreListResponseContract {
232
+ stores: IsolatedStoreContract[];
233
+ }
234
+ export interface IsolatedStoreResponseContract {
235
+ store: IsolatedStoreContract;
236
+ }
237
+ export interface InitIsolatedStoreStageRequestContract {
238
+ stage: IsolatedStoreStageInPathRequired;
239
+ status?: IsolatedStoreStageStatusContract | null;
240
+ bindingConfig?: IsolatedStoreBindingConfigContract | null;
241
+ provisioningMetadata?: Record<string, unknown> | null;
242
+ }
243
+ export interface InitIsolatedStoreStageResponseContract {
244
+ stageInstance: IsolatedStoreStageInstanceContract;
245
+ }
246
+ export interface IsolatedStoreStageListResponseContract {
247
+ stages: IsolatedStoreStageInstanceContract[];
248
+ }
249
+ export interface DeleteIsolatedStoreStageResponseContract {
250
+ deleted: true;
251
+ stage: IsolatedStoreStageInPathRequired;
252
+ }
253
+ export interface CreateIsolatedStoreCheckpointRequestContract {
254
+ label?: string | null;
255
+ snapshotRef?: string | null;
256
+ metadata?: Record<string, unknown> | null;
257
+ }
258
+ export interface CreateIsolatedStoreCheckpointResponseContract {
259
+ revision: IsolatedStoreRevisionContract;
260
+ }
261
+ export interface IsolatedStoreRevisionListResponseContract {
262
+ revisions: IsolatedStoreRevisionContract[];
263
+ }
264
+ export interface RestoreIsolatedStoreRevisionResponseContract {
265
+ restored: true;
266
+ revision: IsolatedStoreRevisionContract;
267
+ stageInstance: IsolatedStoreStageInstanceContract;
268
+ }
269
+ export interface IsolatedStoreNoSqlCollectionContract {
270
+ collectionName: string;
271
+ }
272
+ export interface IsolatedStoreNoSqlListCollectionsResponseContract {
273
+ collections: IsolatedStoreNoSqlCollectionContract[];
274
+ }
275
+ export interface CreateIsolatedStoreNoSqlCollectionRequestContract {
276
+ collectionName: string;
277
+ }
278
+ export interface CreateIsolatedStoreNoSqlCollectionResponseContract {
279
+ collection: IsolatedStoreNoSqlCollectionContract;
280
+ }
281
+ export interface IsolatedStoreNoSqlDocumentResponseContract {
282
+ document: Record<string, unknown>;
283
+ }
284
+ export interface PutIsolatedStoreNoSqlDocumentRequestContract {
285
+ document: Record<string, unknown>;
286
+ }
287
+ export interface PutIsolatedStoreNoSqlDocumentResponseContract {
288
+ document: Record<string, unknown>;
289
+ upserted: boolean;
290
+ }
291
+ export interface DeleteIsolatedStoreNoSqlDocumentResponseContract {
292
+ deleted: boolean;
293
+ }
294
+ export type IsolatedStoreNoSqlFilterOperatorContract = "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "in" | "exists";
295
+ export type IsolatedStoreNoSqlSortDirectionContract = "asc" | "desc";
296
+ export interface IsolatedStoreNoSqlFilterContract {
297
+ field: string;
298
+ operator: IsolatedStoreNoSqlFilterOperatorContract;
299
+ value?: unknown;
300
+ }
301
+ export interface IsolatedStoreNoSqlSortContract {
302
+ field: string;
303
+ direction?: IsolatedStoreNoSqlSortDirectionContract;
304
+ }
305
+ export interface QueryIsolatedStoreNoSqlDocumentsRequestContract {
306
+ collectionName: string;
307
+ filters?: IsolatedStoreNoSqlFilterContract[] | null;
308
+ sort?: IsolatedStoreNoSqlSortContract[] | null;
309
+ limit?: number | null;
310
+ offset?: number | null;
311
+ }
312
+ export interface QueryIsolatedStoreNoSqlDocumentsResponseContract {
313
+ documents: Record<string, unknown>[];
314
+ page: {
315
+ limit: number;
316
+ offset: number;
317
+ rowCount: number;
318
+ };
319
+ }
320
+ export interface CountIsolatedStoreNoSqlDocumentsRequestContract {
321
+ collectionName: string;
322
+ filters?: IsolatedStoreNoSqlFilterContract[] | null;
323
+ }
324
+ export interface CountIsolatedStoreNoSqlDocumentsResponseContract {
325
+ count: number;
326
+ }
327
+ export type IsolatedStoreNoSqlImportModeContract = "insert" | "upsert";
328
+ export interface ImportIsolatedStoreNoSqlDocumentsRequestContract {
329
+ collectionName: string;
330
+ data: string;
331
+ mode?: IsolatedStoreNoSqlImportModeContract | null;
332
+ ordered?: boolean | null;
333
+ }
334
+ export interface ImportIsolatedStoreNoSqlDocumentsResponseContract {
335
+ imported: true;
336
+ collectionName: string;
337
+ mode: IsolatedStoreNoSqlImportModeContract;
338
+ lineCount: number;
339
+ insertedCount: number;
340
+ matchedCount: number;
341
+ modifiedCount: number;
342
+ upsertedCount: number;
343
+ }
344
+ export declare const IsolatedStoreTypeContract: {
345
+ readonly Sql: "sql";
346
+ readonly Nosql: "nosql";
347
+ };
348
+ export declare const IsolatedStoreEngineContract: {
349
+ readonly Postgres: "postgres";
350
+ readonly MongodbAtlas: "mongodb_atlas";
351
+ };
352
+ export declare const IsolatedStoreStatusContract: {
353
+ readonly Active: "active";
354
+ readonly Disabled: "disabled";
355
+ };
356
+ export declare const IsolatedStoreStageStatusContract: {
357
+ readonly Provisioning: "provisioning";
358
+ readonly Ready: "ready";
359
+ readonly Failed: "failed";
360
+ readonly Disabled: "disabled";
361
+ };
362
+ export declare const IsolatedStoreRevisionKindContract: {
363
+ readonly Checkpoint: "checkpoint";
364
+ readonly Promotion: "promotion";
365
+ };
366
+ export declare const IsolatedStoreScopeTypeContract: {
367
+ readonly Org: "org";
368
+ readonly Workspace: "workspace";
369
+ readonly Portal: "portal";
370
+ readonly User: "user";
371
+ readonly Client: "client";
372
+ readonly Block: "block";
373
+ readonly Tracker: "tracker";
374
+ readonly ParentRow: "parent_row";
375
+ readonly ParentTable: "parent_table";
376
+ };
377
+ export declare const IsolatedStoreSqlFilterOperatorContract: {
378
+ readonly Eq: "eq";
379
+ readonly Ne: "ne";
380
+ readonly Gt: "gt";
381
+ readonly Gte: "gte";
382
+ readonly Lt: "lt";
383
+ readonly Lte: "lte";
384
+ readonly Like: "like";
385
+ readonly Ilike: "ilike";
386
+ readonly In: "in";
387
+ readonly IsNull: "is_null";
388
+ readonly IsNotNull: "is_not_null";
389
+ };
390
+ export declare const IsolatedStoreSqlSortDirectionContract: {
391
+ readonly Asc: "asc";
392
+ readonly Desc: "desc";
393
+ };
394
+ export declare const IsolatedStoreSqlImportFormatContract: {
395
+ readonly Csv: "csv";
396
+ readonly Tsv: "tsv";
397
+ };
398
+ export declare const IsolatedStoreNoSqlFilterOperatorContract: {
399
+ readonly Eq: "eq";
400
+ readonly Ne: "ne";
401
+ readonly Gt: "gt";
402
+ readonly Gte: "gte";
403
+ readonly Lt: "lt";
404
+ readonly Lte: "lte";
405
+ readonly In: "in";
406
+ readonly Exists: "exists";
407
+ };
408
+ export declare const IsolatedStoreNoSqlSortDirectionContract: {
409
+ readonly Asc: "asc";
410
+ readonly Desc: "desc";
411
+ };
412
+ export declare const IsolatedStoreNoSqlImportModeContract: {
413
+ readonly Insert: "insert";
414
+ readonly Upsert: "upsert";
415
+ };
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IsolatedStoreNoSqlImportModeContract = exports.IsolatedStoreNoSqlSortDirectionContract = exports.IsolatedStoreNoSqlFilterOperatorContract = exports.IsolatedStoreSqlImportFormatContract = exports.IsolatedStoreSqlSortDirectionContract = exports.IsolatedStoreSqlFilterOperatorContract = exports.IsolatedStoreScopeTypeContract = exports.IsolatedStoreRevisionKindContract = exports.IsolatedStoreStageStatusContract = exports.IsolatedStoreStatusContract = exports.IsolatedStoreEngineContract = exports.IsolatedStoreTypeContract = void 0;
4
+ exports.IsolatedStoreTypeContract = {
5
+ Sql: "sql",
6
+ Nosql: "nosql"
7
+ };
8
+ exports.IsolatedStoreEngineContract = {
9
+ Postgres: "postgres",
10
+ MongodbAtlas: "mongodb_atlas"
11
+ };
12
+ exports.IsolatedStoreStatusContract = {
13
+ Active: "active",
14
+ Disabled: "disabled"
15
+ };
16
+ exports.IsolatedStoreStageStatusContract = {
17
+ Provisioning: "provisioning",
18
+ Ready: "ready",
19
+ Failed: "failed",
20
+ Disabled: "disabled"
21
+ };
22
+ exports.IsolatedStoreRevisionKindContract = {
23
+ Checkpoint: "checkpoint",
24
+ Promotion: "promotion"
25
+ };
26
+ exports.IsolatedStoreScopeTypeContract = {
27
+ Org: "org",
28
+ Workspace: "workspace",
29
+ Portal: "portal",
30
+ User: "user",
31
+ Client: "client",
32
+ Block: "block",
33
+ Tracker: "tracker",
34
+ ParentRow: "parent_row",
35
+ ParentTable: "parent_table"
36
+ };
37
+ exports.IsolatedStoreSqlFilterOperatorContract = {
38
+ Eq: "eq",
39
+ Ne: "ne",
40
+ Gt: "gt",
41
+ Gte: "gte",
42
+ Lt: "lt",
43
+ Lte: "lte",
44
+ Like: "like",
45
+ Ilike: "ilike",
46
+ In: "in",
47
+ IsNull: "is_null",
48
+ IsNotNull: "is_not_null"
49
+ };
50
+ exports.IsolatedStoreSqlSortDirectionContract = {
51
+ Asc: "asc",
52
+ Desc: "desc"
53
+ };
54
+ exports.IsolatedStoreSqlImportFormatContract = {
55
+ Csv: "csv",
56
+ Tsv: "tsv"
57
+ };
58
+ exports.IsolatedStoreNoSqlFilterOperatorContract = {
59
+ Eq: "eq",
60
+ Ne: "ne",
61
+ Gt: "gt",
62
+ Gte: "gte",
63
+ Lt: "lt",
64
+ Lte: "lte",
65
+ In: "in",
66
+ Exists: "exists"
67
+ };
68
+ exports.IsolatedStoreNoSqlSortDirectionContract = {
69
+ Asc: "asc",
70
+ Desc: "desc"
71
+ };
72
+ exports.IsolatedStoreNoSqlImportModeContract = {
73
+ Insert: "insert",
74
+ Upsert: "upsert"
75
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fusebase/fusebase-gate-sdk",
3
- "version": "2.2.2-sdk.19",
3
+ "version": "2.2.2-sdk.20",
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.2-sdk.20
2
+
3
+ - Current ref: `HEAD`
4
+ - Previous tag: `v2.2.2-sdk.20`
5
+ - Generated at: 2026-04-04T12:36:32.417Z
6
+
7
+ ## Included Drafts
8
+
9
+ - None
@@ -1,8 +1,8 @@
1
- # Release Notes 2.2.2-sdk.19
1
+ # Release Notes 2.2.2-sdk.20
2
2
 
3
3
  - Current ref: `HEAD`
4
- - Previous tag: `v2.2.2-sdk.19`
5
- - Generated at: 2026-04-04T12:27:51.410Z
4
+ - Previous tag: `v2.2.2-sdk.20`
5
+ - Generated at: 2026-04-04T12:36:32.417Z
6
6
 
7
7
  ## Included Drafts
8
8
 
@@ -1,9 +0,0 @@
1
- # Release Notes 2.2.2-sdk.19
2
-
3
- - Current ref: `HEAD`
4
- - Previous tag: `v2.2.2-sdk.19`
5
- - Generated at: 2026-04-04T12:27:51.410Z
6
-
7
- ## Included Drafts
8
-
9
- - None