@fusebase/fusebase-gate-sdk 2.2.2-sdk.4 → 2.2.2-sdk.40
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/BillingApi.d.ts +111 -0
- package/dist/apis/BillingApi.js +150 -0
- package/dist/apis/IsolatedStoresApi.d.ts +449 -0
- package/dist/apis/IsolatedStoresApi.js +514 -0
- package/dist/apis/NotesApi.d.ts +3 -3
- package/dist/apis/NotesApi.js +3 -3
- package/dist/apis/OrgGroupsApi.d.ts +199 -0
- package/dist/apis/OrgGroupsApi.js +246 -0
- package/dist/apis/OrgUsersApi.d.ts +1 -1
- package/dist/apis/OrgUsersApi.js +1 -1
- package/dist/apis/SystemApi.d.ts +8 -1
- package/dist/apis/SystemApi.js +13 -0
- package/dist/extras/fetchWithRetry.js +6 -1
- package/dist/extras/sqlMigrationBundle.d.ts +13 -0
- package/dist/extras/sqlMigrationBundle.js +69 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +8 -1
- package/dist/types/billing/billing.d.ts +129 -0
- package/dist/types/billing/billing.js +13 -0
- package/dist/types/index.d.ts +4 -1
- package/dist/types/index.js +3 -0
- package/dist/types/isolated-store/isolated-store.d.ts +591 -0
- package/dist/types/isolated-store/isolated-store.js +91 -0
- package/dist/types/note/note.d.ts +3 -3
- package/dist/types/org-group/org-group.d.ts +128 -0
- package/dist/types/org-group/org-group.js +7 -0
- package/dist/types/org-user/org-user.d.ts +7 -0
- package/dist/types/shared/enums.d.ts +1 -1
- package/dist/types/shared/enums.js +1 -1
- package/dist/types/system/system.d.ts +8 -0
- package/dist/types/token/token.d.ts +11 -0
- package/package.json +1 -1
- package/release-notes/2.2.2-sdk.40.md +9 -0
- package/release-notes/latest.md +3 -3
- package/release-notes/2.2.2-sdk.4.md +0 -9
|
@@ -0,0 +1,591 @@
|
|
|
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 IsolatedStoreSqlTableStatsContract {
|
|
103
|
+
schemaName: string;
|
|
104
|
+
tableName: string;
|
|
105
|
+
tableType: string;
|
|
106
|
+
rowCount: number;
|
|
107
|
+
totalBytes?: number | null;
|
|
108
|
+
columns: IsolatedStoreSqlColumnContract[];
|
|
109
|
+
}
|
|
110
|
+
export interface IsolatedStoreSqlStatsResponseContract {
|
|
111
|
+
databaseName: string;
|
|
112
|
+
schemaName: string;
|
|
113
|
+
tableCount: number;
|
|
114
|
+
totalRowCount: number;
|
|
115
|
+
totalBytes?: number | null;
|
|
116
|
+
tables: IsolatedStoreSqlTableStatsContract[];
|
|
117
|
+
}
|
|
118
|
+
export interface IsolatedStoreSqlMigrationBundleEntryContract {
|
|
119
|
+
version: number;
|
|
120
|
+
name: string;
|
|
121
|
+
checksum: string;
|
|
122
|
+
sql: string;
|
|
123
|
+
}
|
|
124
|
+
export interface IsolatedStoreSqlMigrationBundleContract {
|
|
125
|
+
bundleVersion?: string | null;
|
|
126
|
+
migrations: IsolatedStoreSqlMigrationBundleEntryContract[];
|
|
127
|
+
}
|
|
128
|
+
export interface IsolatedStoreSqlAppliedMigrationContract {
|
|
129
|
+
version: number;
|
|
130
|
+
name: string;
|
|
131
|
+
checksum: string;
|
|
132
|
+
bundleVersion?: string | null;
|
|
133
|
+
appliedAt: string;
|
|
134
|
+
appliedBy: string;
|
|
135
|
+
}
|
|
136
|
+
export type IsolatedStoreSqlMigrationIssueCodeContract = "isolated_sql_journal_longer_than_bundle" | "isolated_sql_version_mismatch" | "isolated_sql_name_mismatch" | "isolated_sql_checksum_mismatch" | "isolated_sql_schema_exists_without_journal" | "isolated_sql_journal_head_mismatch";
|
|
137
|
+
export type IsolatedStoreSqlMigrationIssueFieldContract = "history_length" | "version" | "name" | "checksum" | "bootstrap" | "journal_head";
|
|
138
|
+
/** Machine-readable drift detail; omits raw SQL (only safe fingerprints). */
|
|
139
|
+
export interface IsolatedStoreSqlMigrationIssueContract {
|
|
140
|
+
code: IsolatedStoreSqlMigrationIssueCodeContract;
|
|
141
|
+
message: string;
|
|
142
|
+
/** Bundle migration version at the comparison index when relevant. */
|
|
143
|
+
version?: number | null;
|
|
144
|
+
field?: IsolatedStoreSqlMigrationIssueFieldContract;
|
|
145
|
+
/** Value from the migration journal (applied history). */
|
|
146
|
+
expected?: string | number | null;
|
|
147
|
+
/** Value from the submitted bundle. */
|
|
148
|
+
actual?: string | number | null;
|
|
149
|
+
journal?: {
|
|
150
|
+
version: number;
|
|
151
|
+
name: string;
|
|
152
|
+
checksum: string;
|
|
153
|
+
} | null;
|
|
154
|
+
bundle?: {
|
|
155
|
+
version: number;
|
|
156
|
+
name: string;
|
|
157
|
+
checksum: string;
|
|
158
|
+
} | null;
|
|
159
|
+
/** SHA-256 of the bundle entry SQL UTF-8 bytes (diagnostic; not raw SQL). */
|
|
160
|
+
bundleSqlContentSha256?: string | null;
|
|
161
|
+
/** Set when `expectedLastApplied*` optimistic locks fail (apply/status preflight). */
|
|
162
|
+
expectedLastAppliedVersion?: number | null;
|
|
163
|
+
actualLastAppliedVersion?: number | null;
|
|
164
|
+
expectedLastAppliedChecksum?: string | null;
|
|
165
|
+
actualLastAppliedChecksum?: string | null;
|
|
166
|
+
}
|
|
167
|
+
export interface IsolatedStoreSqlMigrationStatusContract {
|
|
168
|
+
databaseName: string;
|
|
169
|
+
schemaName: string;
|
|
170
|
+
journalTableName: string;
|
|
171
|
+
currentVersion?: number | null;
|
|
172
|
+
bundleHeadVersion?: number | null;
|
|
173
|
+
appliedCount: number;
|
|
174
|
+
pendingCount: number;
|
|
175
|
+
isDrifted: boolean;
|
|
176
|
+
/** True when the stage already has schema objects but no matching journaled migration history. */
|
|
177
|
+
requiresBaselineAdoption: boolean;
|
|
178
|
+
/** True when the bundle prefix matches the journal and pending migrations may run. */
|
|
179
|
+
canApply: boolean;
|
|
180
|
+
issues: string[];
|
|
181
|
+
structuredIssues: IsolatedStoreSqlMigrationIssueContract[];
|
|
182
|
+
appliedMigrations: IsolatedStoreSqlAppliedMigrationContract[];
|
|
183
|
+
pendingMigrations: IsolatedStoreSqlMigrationBundleEntryContract[];
|
|
184
|
+
}
|
|
185
|
+
export interface GetIsolatedStoreSqlMigrationStatusRequestContract {
|
|
186
|
+
schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
|
|
187
|
+
bundle: IsolatedStoreSqlMigrationBundleContract;
|
|
188
|
+
/** Same optimistic-lock semantics as `applyIsolatedStoreSqlMigrations`; HTTP 409 when the journal tail disagrees. */
|
|
189
|
+
expectedLastAppliedVersion?: number | null;
|
|
190
|
+
expectedLastAppliedChecksum?: string | null;
|
|
191
|
+
}
|
|
192
|
+
export interface ApplyIsolatedStoreSqlMigrationsRequestContract {
|
|
193
|
+
schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
|
|
194
|
+
bundle: IsolatedStoreSqlMigrationBundleContract;
|
|
195
|
+
/**
|
|
196
|
+
* When true, runs the same journal/bundle prefix checks as apply (including optional
|
|
197
|
+
* expected-head validation) but does not execute SQL or write the journal.
|
|
198
|
+
*/
|
|
199
|
+
dryRun?: boolean | null;
|
|
200
|
+
/**
|
|
201
|
+
* Optimistic lock: last applied migration version on the server must match.
|
|
202
|
+
* Omit to skip. Use `null` to require an empty journal (no rows applied).
|
|
203
|
+
*/
|
|
204
|
+
expectedLastAppliedVersion?: number | null;
|
|
205
|
+
/**
|
|
206
|
+
* Optimistic lock: checksum of the last applied journal row must match.
|
|
207
|
+
* Omit to skip. Use `null` only together with an empty journal expectation.
|
|
208
|
+
*/
|
|
209
|
+
expectedLastAppliedChecksum?: string | null;
|
|
210
|
+
}
|
|
211
|
+
export interface ApplyIsolatedStoreSqlMigrationsResponseContract {
|
|
212
|
+
appliedCount: number;
|
|
213
|
+
appliedVersions: number[];
|
|
214
|
+
checkpointRevision?: IsolatedStoreRevisionContract | null;
|
|
215
|
+
status: IsolatedStoreSqlMigrationStatusContract;
|
|
216
|
+
/** Present and true when the request used `dryRun` and no migrations were executed. */
|
|
217
|
+
dryRun?: boolean | null;
|
|
218
|
+
}
|
|
219
|
+
export interface AdoptIsolatedStoreSqlMigrationBaselineRequestContract {
|
|
220
|
+
schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
|
|
221
|
+
bundle: IsolatedStoreSqlMigrationBundleContract;
|
|
222
|
+
/** Validate eligibility and return the projected post-adoption status without writing the journal. */
|
|
223
|
+
dryRun?: boolean | null;
|
|
224
|
+
}
|
|
225
|
+
export interface AdoptIsolatedStoreSqlMigrationBaselineResponseContract {
|
|
226
|
+
adoptedCount: number;
|
|
227
|
+
adoptedVersions: number[];
|
|
228
|
+
checkpointRevision?: IsolatedStoreRevisionContract | null;
|
|
229
|
+
status: IsolatedStoreSqlMigrationStatusContract;
|
|
230
|
+
dryRun?: boolean | null;
|
|
231
|
+
}
|
|
232
|
+
/** Documented shape of JSON error responses for migration state conflicts (HTTP 409). */
|
|
233
|
+
export interface IsolatedStoreSqlMigrationConflictErrorBodyContract {
|
|
234
|
+
success: false;
|
|
235
|
+
message: string;
|
|
236
|
+
data: {
|
|
237
|
+
code: string;
|
|
238
|
+
errorCode: string;
|
|
239
|
+
issues?: IsolatedStoreSqlMigrationIssueContract[];
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
export interface IsolatedStoreSqlListTablesResponseContract {
|
|
243
|
+
tables: IsolatedStoreSqlTableContract[];
|
|
244
|
+
}
|
|
245
|
+
export interface IsolatedStoreSqlDescribeTableResponseContract {
|
|
246
|
+
table: IsolatedStoreSqlTableDescriptionContract;
|
|
247
|
+
}
|
|
248
|
+
export interface IsolatedStoreSqlQueryRequestContract {
|
|
249
|
+
sql: string;
|
|
250
|
+
params?: unknown[] | null;
|
|
251
|
+
}
|
|
252
|
+
export interface IsolatedStoreSqlQueryResultContract {
|
|
253
|
+
command: string;
|
|
254
|
+
rowCount: number;
|
|
255
|
+
columns: string[];
|
|
256
|
+
rows: Record<string, unknown>[];
|
|
257
|
+
}
|
|
258
|
+
export interface IsolatedStoreSqlQueryResponseContract {
|
|
259
|
+
result: IsolatedStoreSqlQueryResultContract;
|
|
260
|
+
}
|
|
261
|
+
export interface IsolatedStoreSqlExecuteRequestContract {
|
|
262
|
+
sql: string;
|
|
263
|
+
params?: unknown[] | null;
|
|
264
|
+
}
|
|
265
|
+
export interface IsolatedStoreSqlExecuteResponseContract {
|
|
266
|
+
result: IsolatedStoreSqlQueryResultContract;
|
|
267
|
+
}
|
|
268
|
+
export type IsolatedStoreSqlFilterOperatorContract = "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "like" | "ilike" | "in" | "is_null" | "is_not_null";
|
|
269
|
+
export type IsolatedStoreSqlSortDirectionContract = "asc" | "desc";
|
|
270
|
+
export interface IsolatedStoreSqlFilterContract {
|
|
271
|
+
column: string;
|
|
272
|
+
operator: IsolatedStoreSqlFilterOperatorContract;
|
|
273
|
+
value?: unknown;
|
|
274
|
+
}
|
|
275
|
+
export interface IsolatedStoreSqlSortContract {
|
|
276
|
+
column: string;
|
|
277
|
+
direction?: IsolatedStoreSqlSortDirectionContract;
|
|
278
|
+
}
|
|
279
|
+
export interface IsolatedStoreSqlCountRequestContract {
|
|
280
|
+
schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
|
|
281
|
+
tableName: string;
|
|
282
|
+
filters?: IsolatedStoreSqlFilterContract[] | null;
|
|
283
|
+
}
|
|
284
|
+
export interface IsolatedStoreSqlCountResponseContract {
|
|
285
|
+
count: number;
|
|
286
|
+
}
|
|
287
|
+
export interface IsolatedStoreSqlSelectRequestContract {
|
|
288
|
+
schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
|
|
289
|
+
tableName: string;
|
|
290
|
+
columns?: string[] | null;
|
|
291
|
+
filters?: IsolatedStoreSqlFilterContract[] | null;
|
|
292
|
+
sort?: IsolatedStoreSqlSortContract[] | null;
|
|
293
|
+
limit?: number | null;
|
|
294
|
+
offset?: number | null;
|
|
295
|
+
}
|
|
296
|
+
export interface IsolatedStoreSqlSelectResponseContract {
|
|
297
|
+
columns: string[];
|
|
298
|
+
rows: Record<string, unknown>[];
|
|
299
|
+
page: {
|
|
300
|
+
limit: number;
|
|
301
|
+
offset: number;
|
|
302
|
+
rowCount: number;
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
export interface IsolatedStoreSqlInsertRequestContract {
|
|
306
|
+
schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
|
|
307
|
+
tableName: string;
|
|
308
|
+
values: Record<string, unknown>;
|
|
309
|
+
returning?: string[] | null;
|
|
310
|
+
}
|
|
311
|
+
export interface IsolatedStoreSqlInsertResponseContract {
|
|
312
|
+
rowCount: number;
|
|
313
|
+
rows: Record<string, unknown>[];
|
|
314
|
+
}
|
|
315
|
+
export interface IsolatedStoreSqlBatchInsertRequestContract {
|
|
316
|
+
schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
|
|
317
|
+
tableName: string;
|
|
318
|
+
rows: Record<string, unknown>[];
|
|
319
|
+
returning?: string[] | null;
|
|
320
|
+
}
|
|
321
|
+
export interface IsolatedStoreSqlBatchInsertResponseContract {
|
|
322
|
+
rowCount: number;
|
|
323
|
+
rows: Record<string, unknown>[];
|
|
324
|
+
}
|
|
325
|
+
export type IsolatedStoreSqlImportFormatContract = "csv" | "tsv";
|
|
326
|
+
export interface IsolatedStoreSqlImportRequestContract {
|
|
327
|
+
schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
|
|
328
|
+
tableName: string;
|
|
329
|
+
format: IsolatedStoreSqlImportFormatContract;
|
|
330
|
+
data: string;
|
|
331
|
+
columns?: string[] | null;
|
|
332
|
+
hasHeader?: boolean | null;
|
|
333
|
+
nullString?: string | null;
|
|
334
|
+
}
|
|
335
|
+
export interface IsolatedStoreSqlImportResponseContract {
|
|
336
|
+
imported: true;
|
|
337
|
+
tableName: string;
|
|
338
|
+
format: IsolatedStoreSqlImportFormatContract;
|
|
339
|
+
rowCount: number;
|
|
340
|
+
}
|
|
341
|
+
export interface IsolatedStoreSqlUpdateRequestContract {
|
|
342
|
+
schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
|
|
343
|
+
tableName: string;
|
|
344
|
+
values: Record<string, unknown>;
|
|
345
|
+
filters?: IsolatedStoreSqlFilterContract[] | null;
|
|
346
|
+
allowAll?: boolean | null;
|
|
347
|
+
returning?: string[] | null;
|
|
348
|
+
}
|
|
349
|
+
export interface IsolatedStoreSqlUpdateResponseContract {
|
|
350
|
+
rowCount: number;
|
|
351
|
+
rows: Record<string, unknown>[];
|
|
352
|
+
}
|
|
353
|
+
export interface IsolatedStoreSqlDeleteRequestContract {
|
|
354
|
+
schemaName?: IsolatedStoreSqlSchemaNameInQueryOptional;
|
|
355
|
+
tableName: string;
|
|
356
|
+
filters?: IsolatedStoreSqlFilterContract[] | null;
|
|
357
|
+
allowAll?: boolean | null;
|
|
358
|
+
}
|
|
359
|
+
export interface IsolatedStoreSqlDeleteResponseContract {
|
|
360
|
+
rowCount: number;
|
|
361
|
+
}
|
|
362
|
+
export interface CreateIsolatedStoreRequestContract {
|
|
363
|
+
alias: string;
|
|
364
|
+
storeType: IsolatedStoreTypeContract;
|
|
365
|
+
engine: IsolatedStoreEngineContract;
|
|
366
|
+
source: IsolatedStoreSourceScopeContract;
|
|
367
|
+
}
|
|
368
|
+
export interface CreateIsolatedStoreResponseContract {
|
|
369
|
+
store: IsolatedStoreContract;
|
|
370
|
+
}
|
|
371
|
+
export interface IsolatedStoreListResponseContract {
|
|
372
|
+
stores: IsolatedStoreContract[];
|
|
373
|
+
}
|
|
374
|
+
/** Optional `clientId` query for `listIsolatedStores`; matches `app` source scope `sourceId`. */
|
|
375
|
+
export type ListIsolatedStoresClientIdInQueryOptional = string | null;
|
|
376
|
+
export interface IsolatedStoreResponseContract {
|
|
377
|
+
store: IsolatedStoreContract;
|
|
378
|
+
}
|
|
379
|
+
export interface InitIsolatedStoreStageRequestContract {
|
|
380
|
+
stage: IsolatedStoreStageInPathRequired;
|
|
381
|
+
status?: IsolatedStoreStageStatusContract | null;
|
|
382
|
+
bindingConfig?: IsolatedStoreBindingConfigContract | null;
|
|
383
|
+
provisioningMetadata?: Record<string, unknown> | null;
|
|
384
|
+
}
|
|
385
|
+
export interface InitIsolatedStoreStageResponseContract {
|
|
386
|
+
stageInstance: IsolatedStoreStageInstanceContract;
|
|
387
|
+
}
|
|
388
|
+
export interface IsolatedStoreStageListResponseContract {
|
|
389
|
+
stages: IsolatedStoreStageInstanceContract[];
|
|
390
|
+
}
|
|
391
|
+
export interface DeleteIsolatedStoreStageResponseContract {
|
|
392
|
+
deleted: true;
|
|
393
|
+
stage: IsolatedStoreStageInPathRequired;
|
|
394
|
+
}
|
|
395
|
+
export interface DeleteIsolatedStoreResponseContract {
|
|
396
|
+
deleted: true;
|
|
397
|
+
storeId: IsolatedStoreIdInPathRequired;
|
|
398
|
+
}
|
|
399
|
+
export interface CreateIsolatedStoreCheckpointRequestContract {
|
|
400
|
+
label?: string | null;
|
|
401
|
+
snapshotRef?: string | null;
|
|
402
|
+
metadata?: Record<string, unknown> | null;
|
|
403
|
+
}
|
|
404
|
+
export interface CreateIsolatedStoreCheckpointResponseContract {
|
|
405
|
+
revision: IsolatedStoreRevisionContract;
|
|
406
|
+
}
|
|
407
|
+
export interface IsolatedStoreRevisionListResponseContract {
|
|
408
|
+
revisions: IsolatedStoreRevisionContract[];
|
|
409
|
+
}
|
|
410
|
+
export interface RestoreIsolatedStoreRevisionResponseContract {
|
|
411
|
+
restored: true;
|
|
412
|
+
revision: IsolatedStoreRevisionContract;
|
|
413
|
+
stageInstance: IsolatedStoreStageInstanceContract;
|
|
414
|
+
}
|
|
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
|
+
export declare const IsolatedStoreTypeContract: {
|
|
505
|
+
readonly Sql: "sql";
|
|
506
|
+
readonly Nosql: "nosql";
|
|
507
|
+
};
|
|
508
|
+
export declare const IsolatedStoreEngineContract: {
|
|
509
|
+
readonly Postgres: "postgres";
|
|
510
|
+
readonly MongodbAtlas: "mongodb_atlas";
|
|
511
|
+
};
|
|
512
|
+
export declare const IsolatedStoreStatusContract: {
|
|
513
|
+
readonly Active: "active";
|
|
514
|
+
readonly Disabled: "disabled";
|
|
515
|
+
};
|
|
516
|
+
export declare const IsolatedStoreStageStatusContract: {
|
|
517
|
+
readonly Provisioning: "provisioning";
|
|
518
|
+
readonly Ready: "ready";
|
|
519
|
+
readonly Failed: "failed";
|
|
520
|
+
readonly Disabled: "disabled";
|
|
521
|
+
};
|
|
522
|
+
export declare const IsolatedStoreRevisionKindContract: {
|
|
523
|
+
readonly Checkpoint: "checkpoint";
|
|
524
|
+
readonly Promotion: "promotion";
|
|
525
|
+
};
|
|
526
|
+
export declare const IsolatedStoreScopeTypeContract: {
|
|
527
|
+
readonly Org: "org";
|
|
528
|
+
readonly Workspace: "workspace";
|
|
529
|
+
readonly Portal: "portal";
|
|
530
|
+
readonly User: "user";
|
|
531
|
+
readonly Client: "client";
|
|
532
|
+
readonly Block: "block";
|
|
533
|
+
readonly Tracker: "tracker";
|
|
534
|
+
readonly ParentRow: "parent_row";
|
|
535
|
+
readonly ParentTable: "parent_table";
|
|
536
|
+
};
|
|
537
|
+
export declare const IsolatedStoreSqlMigrationIssueCodeContract: {
|
|
538
|
+
readonly IsolatedSqlJournalLongerThanBundle: "isolated_sql_journal_longer_than_bundle";
|
|
539
|
+
readonly IsolatedSqlVersionMismatch: "isolated_sql_version_mismatch";
|
|
540
|
+
readonly IsolatedSqlNameMismatch: "isolated_sql_name_mismatch";
|
|
541
|
+
readonly IsolatedSqlChecksumMismatch: "isolated_sql_checksum_mismatch";
|
|
542
|
+
readonly IsolatedSqlSchemaExistsWithoutJournal: "isolated_sql_schema_exists_without_journal";
|
|
543
|
+
readonly IsolatedSqlJournalHeadMismatch: "isolated_sql_journal_head_mismatch";
|
|
544
|
+
};
|
|
545
|
+
export declare const IsolatedStoreSqlMigrationIssueFieldContract: {
|
|
546
|
+
readonly HistoryLength: "history_length";
|
|
547
|
+
readonly Version: "version";
|
|
548
|
+
readonly Name: "name";
|
|
549
|
+
readonly Checksum: "checksum";
|
|
550
|
+
readonly Bootstrap: "bootstrap";
|
|
551
|
+
readonly JournalHead: "journal_head";
|
|
552
|
+
};
|
|
553
|
+
export declare const IsolatedStoreSqlFilterOperatorContract: {
|
|
554
|
+
readonly Eq: "eq";
|
|
555
|
+
readonly Ne: "ne";
|
|
556
|
+
readonly Gt: "gt";
|
|
557
|
+
readonly Gte: "gte";
|
|
558
|
+
readonly Lt: "lt";
|
|
559
|
+
readonly Lte: "lte";
|
|
560
|
+
readonly Like: "like";
|
|
561
|
+
readonly Ilike: "ilike";
|
|
562
|
+
readonly In: "in";
|
|
563
|
+
readonly IsNull: "is_null";
|
|
564
|
+
readonly IsNotNull: "is_not_null";
|
|
565
|
+
};
|
|
566
|
+
export declare const IsolatedStoreSqlSortDirectionContract: {
|
|
567
|
+
readonly Asc: "asc";
|
|
568
|
+
readonly Desc: "desc";
|
|
569
|
+
};
|
|
570
|
+
export declare const IsolatedStoreSqlImportFormatContract: {
|
|
571
|
+
readonly Csv: "csv";
|
|
572
|
+
readonly Tsv: "tsv";
|
|
573
|
+
};
|
|
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
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
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;
|
|
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.IsolatedStoreSqlMigrationIssueCodeContract = {
|
|
38
|
+
IsolatedSqlJournalLongerThanBundle: "isolated_sql_journal_longer_than_bundle",
|
|
39
|
+
IsolatedSqlVersionMismatch: "isolated_sql_version_mismatch",
|
|
40
|
+
IsolatedSqlNameMismatch: "isolated_sql_name_mismatch",
|
|
41
|
+
IsolatedSqlChecksumMismatch: "isolated_sql_checksum_mismatch",
|
|
42
|
+
IsolatedSqlSchemaExistsWithoutJournal: "isolated_sql_schema_exists_without_journal",
|
|
43
|
+
IsolatedSqlJournalHeadMismatch: "isolated_sql_journal_head_mismatch"
|
|
44
|
+
};
|
|
45
|
+
exports.IsolatedStoreSqlMigrationIssueFieldContract = {
|
|
46
|
+
HistoryLength: "history_length",
|
|
47
|
+
Version: "version",
|
|
48
|
+
Name: "name",
|
|
49
|
+
Checksum: "checksum",
|
|
50
|
+
Bootstrap: "bootstrap",
|
|
51
|
+
JournalHead: "journal_head"
|
|
52
|
+
};
|
|
53
|
+
exports.IsolatedStoreSqlFilterOperatorContract = {
|
|
54
|
+
Eq: "eq",
|
|
55
|
+
Ne: "ne",
|
|
56
|
+
Gt: "gt",
|
|
57
|
+
Gte: "gte",
|
|
58
|
+
Lt: "lt",
|
|
59
|
+
Lte: "lte",
|
|
60
|
+
Like: "like",
|
|
61
|
+
Ilike: "ilike",
|
|
62
|
+
In: "in",
|
|
63
|
+
IsNull: "is_null",
|
|
64
|
+
IsNotNull: "is_not_null"
|
|
65
|
+
};
|
|
66
|
+
exports.IsolatedStoreSqlSortDirectionContract = {
|
|
67
|
+
Asc: "asc",
|
|
68
|
+
Desc: "desc"
|
|
69
|
+
};
|
|
70
|
+
exports.IsolatedStoreSqlImportFormatContract = {
|
|
71
|
+
Csv: "csv",
|
|
72
|
+
Tsv: "tsv"
|
|
73
|
+
};
|
|
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
|
+
};
|