@fusebase/fusebase-gate-sdk 2.2.12-sdk.0 → 2.2.12-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.
|
@@ -137,6 +137,19 @@ export declare class IsolatedStoresApi {
|
|
|
137
137
|
};
|
|
138
138
|
headers?: Record<string, string>;
|
|
139
139
|
}): Promise<IsolatedStoreSqlDescribeTableResponseContract>;
|
|
140
|
+
/**
|
|
141
|
+
* Download isolated store revision snapshot
|
|
142
|
+
* Streams the stored physical snapshot artifact for the selected isolated store revision. This is an operator-facing download path for backup extraction and works through gate regardless of whether the snapshot provider is local_file or azure_blob.
|
|
143
|
+
*/
|
|
144
|
+
downloadIsolatedStoreRevisionSnapshot(params: {
|
|
145
|
+
path: {
|
|
146
|
+
orgId: orgIdInPathRequired;
|
|
147
|
+
storeId: IsolatedStoreIdInPathRequired;
|
|
148
|
+
stage: IsolatedStoreStageInPathRequired;
|
|
149
|
+
revisionId: IsolatedStoreRevisionIdInPathRequired;
|
|
150
|
+
};
|
|
151
|
+
headers?: Record<string, string>;
|
|
152
|
+
}): Promise<ArrayBuffer>;
|
|
140
153
|
/**
|
|
141
154
|
* Run writable SQL statement
|
|
142
155
|
* Runs a single raw DML statement with execute access against the postgres binding of the selected isolated store stage instance. Only INSERT, UPDATE, and DELETE are allowed on this privileged escape hatch. DDL and schema changes are blocked here and must go through applyIsolatedStoreSqlMigrations so the stage migration journal (fusebase_schema_migrations) stays authoritative.
|
|
@@ -159,6 +159,20 @@ class IsolatedStoresApi {
|
|
|
159
159
|
expectedContentType: "application/json",
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
|
+
/**
|
|
163
|
+
* Download isolated store revision snapshot
|
|
164
|
+
* Streams the stored physical snapshot artifact for the selected isolated store revision. This is an operator-facing download path for backup extraction and works through gate regardless of whether the snapshot provider is local_file or azure_blob.
|
|
165
|
+
*/
|
|
166
|
+
async downloadIsolatedStoreRevisionSnapshot(params) {
|
|
167
|
+
return this.client.request({
|
|
168
|
+
method: "GET",
|
|
169
|
+
path: "/:orgId/isolated-stores/:storeId/stages/:stage/revisions/:revisionId/download",
|
|
170
|
+
pathParams: params.path,
|
|
171
|
+
headers: params.headers,
|
|
172
|
+
opId: "downloadIsolatedStoreRevisionSnapshot",
|
|
173
|
+
expectedContentType: "application/octet-stream",
|
|
174
|
+
});
|
|
175
|
+
}
|
|
162
176
|
/**
|
|
163
177
|
* Run writable SQL statement
|
|
164
178
|
* Runs a single raw DML statement with execute access against the postgres binding of the selected isolated store stage instance. Only INSERT, UPDATE, and DELETE are allowed on this privileged escape hatch. DDL and schema changes are blocked here and must go through applyIsolatedStoreSqlMigrations so the stage migration journal (fusebase_schema_migrations) stays authoritative.
|
|
@@ -25,6 +25,10 @@ function getArrayLikeValues(obj) {
|
|
|
25
25
|
const keys = Object.keys(obj).sort((a, b) => Number(a) - Number(b));
|
|
26
26
|
return keys.map((k) => obj[k]);
|
|
27
27
|
}
|
|
28
|
+
function isBinaryContentType(contentType) {
|
|
29
|
+
return (contentType.includes("application/octet-stream") ||
|
|
30
|
+
contentType.includes("application/pdf"));
|
|
31
|
+
}
|
|
28
32
|
/**
|
|
29
33
|
* Serialize query object. Uses form-style for top-level arrays of primitives
|
|
30
34
|
* (key=val1&key=val2) so servers get a normal repeated key. Array-like objects
|
|
@@ -200,7 +204,7 @@ function createClient(config) {
|
|
|
200
204
|
else if (contentType.includes("text/csv")) {
|
|
201
205
|
data = (await response.text());
|
|
202
206
|
}
|
|
203
|
-
else if (contentType
|
|
207
|
+
else if (isBinaryContentType(contentType)) {
|
|
204
208
|
data = (await response.arrayBuffer());
|
|
205
209
|
}
|
|
206
210
|
else {
|
package/package.json
CHANGED
package/release-notes/latest.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Release Notes 2.2.12-sdk.
|
|
1
|
+
# Release Notes 2.2.12-sdk.2
|
|
2
2
|
|
|
3
3
|
- Current ref: `HEAD`
|
|
4
|
-
- Previous tag: `v2.2.12-sdk.
|
|
5
|
-
- Generated at: 2026-04-
|
|
4
|
+
- Previous tag: `v2.2.12-sdk.2`
|
|
5
|
+
- Generated at: 2026-04-30T19:03:37.870Z
|
|
6
6
|
|
|
7
7
|
## Included Drafts
|
|
8
8
|
|