@fusebase/fusebase-gate-sdk 2.2.12-sdk.1 → 2.2.12-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.
- package/dist/apis/AppApisApi.d.ts +54 -0
- package/dist/apis/AppApisApi.js +59 -0
- package/dist/apis/IsolatedStoresApi.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/runtime/transport.js +5 -1
- package/dist/types/app-api/app-api.d.ts +22 -0
- package/dist/types/app-api/app-api.js +2 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/release-notes/2.2.12-sdk.3.md +9 -0
- package/release-notes/latest.md +4 -4
- package/release-notes/2.2.12-sdk.1.md +0 -9
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AppApis API
|
|
3
|
+
*
|
|
4
|
+
* Generated from contract introspection
|
|
5
|
+
* Domain: app-apis
|
|
6
|
+
*/
|
|
7
|
+
import type { Client } from "../runtime/transport";
|
|
8
|
+
import type { AppApiOperationContract, AppApiOperationListResponseContract, orgIdInPathRequired } from "../types";
|
|
9
|
+
export declare class AppApisApi {
|
|
10
|
+
private client;
|
|
11
|
+
constructor(client: Client);
|
|
12
|
+
/**
|
|
13
|
+
* Describe app API operation
|
|
14
|
+
* Returns one published app API operation for the requested app feature and operation id.
|
|
15
|
+
*/
|
|
16
|
+
getAppApiOperation(params: {
|
|
17
|
+
path: {
|
|
18
|
+
orgId: orgIdInPathRequired;
|
|
19
|
+
appFeatureId: string;
|
|
20
|
+
operationId: string;
|
|
21
|
+
};
|
|
22
|
+
headers?: Record<string, string>;
|
|
23
|
+
}): Promise<AppApiOperationContract>;
|
|
24
|
+
/**
|
|
25
|
+
* List app API operations
|
|
26
|
+
* Returns published app API operations visible inside the organization. Optional filters narrow the result by app, feature, visibility, and limit.
|
|
27
|
+
*/
|
|
28
|
+
listAppApiOperations(params: {
|
|
29
|
+
path: {
|
|
30
|
+
orgId: orgIdInPathRequired;
|
|
31
|
+
};
|
|
32
|
+
query?: {
|
|
33
|
+
appId?: string;
|
|
34
|
+
appFeatureId?: string;
|
|
35
|
+
visibility?: string;
|
|
36
|
+
limit?: number;
|
|
37
|
+
};
|
|
38
|
+
headers?: Record<string, string>;
|
|
39
|
+
}): Promise<AppApiOperationListResponseContract>;
|
|
40
|
+
/**
|
|
41
|
+
* Search app API operations
|
|
42
|
+
* Searches published app API operations by operation id and descriptive fields inside the organization.
|
|
43
|
+
*/
|
|
44
|
+
searchAppApiOperations(params: {
|
|
45
|
+
path: {
|
|
46
|
+
orgId: orgIdInPathRequired;
|
|
47
|
+
};
|
|
48
|
+
query?: {
|
|
49
|
+
query?: string;
|
|
50
|
+
limit?: number;
|
|
51
|
+
};
|
|
52
|
+
headers?: Record<string, string>;
|
|
53
|
+
}): Promise<AppApiOperationListResponseContract>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* AppApis API
|
|
4
|
+
*
|
|
5
|
+
* Generated from contract introspection
|
|
6
|
+
* Domain: app-apis
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.AppApisApi = void 0;
|
|
10
|
+
class AppApisApi {
|
|
11
|
+
constructor(client) {
|
|
12
|
+
this.client = client;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Describe app API operation
|
|
16
|
+
* Returns one published app API operation for the requested app feature and operation id.
|
|
17
|
+
*/
|
|
18
|
+
async getAppApiOperation(params) {
|
|
19
|
+
return this.client.request({
|
|
20
|
+
method: "GET",
|
|
21
|
+
path: "/:orgId/app-features/:appFeatureId/app-apis/:operationId",
|
|
22
|
+
pathParams: params.path,
|
|
23
|
+
headers: params.headers,
|
|
24
|
+
opId: "getAppApiOperation",
|
|
25
|
+
expectedContentType: "application/json",
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* List app API operations
|
|
30
|
+
* Returns published app API operations visible inside the organization. Optional filters narrow the result by app, feature, visibility, and limit.
|
|
31
|
+
*/
|
|
32
|
+
async listAppApiOperations(params) {
|
|
33
|
+
return this.client.request({
|
|
34
|
+
method: "GET",
|
|
35
|
+
path: "/:orgId/app-apis",
|
|
36
|
+
pathParams: params.path,
|
|
37
|
+
query: params.query,
|
|
38
|
+
headers: params.headers,
|
|
39
|
+
opId: "listAppApiOperations",
|
|
40
|
+
expectedContentType: "application/json",
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Search app API operations
|
|
45
|
+
* Searches published app API operations by operation id and descriptive fields inside the organization.
|
|
46
|
+
*/
|
|
47
|
+
async searchAppApiOperations(params) {
|
|
48
|
+
return this.client.request({
|
|
49
|
+
method: "GET",
|
|
50
|
+
path: "/:orgId/app-apis/search",
|
|
51
|
+
pathParams: params.path,
|
|
52
|
+
query: params.query,
|
|
53
|
+
headers: params.headers,
|
|
54
|
+
opId: "searchAppApiOperations",
|
|
55
|
+
expectedContentType: "application/json",
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.AppApisApi = AppApisApi;
|
|
@@ -149,7 +149,7 @@ export declare class IsolatedStoresApi {
|
|
|
149
149
|
revisionId: IsolatedStoreRevisionIdInPathRequired;
|
|
150
150
|
};
|
|
151
151
|
headers?: Record<string, string>;
|
|
152
|
-
}): Promise<
|
|
152
|
+
}): Promise<ArrayBuffer>;
|
|
153
153
|
/**
|
|
154
154
|
* Run writable SQL statement
|
|
155
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.
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
export * from "./runtime";
|
|
7
7
|
export * from "./types";
|
|
8
8
|
export { AccessApi } from "./apis/AccessApi";
|
|
9
|
+
export { AppApisApi } from "./apis/AppApisApi";
|
|
9
10
|
export { BillingApi } from "./apis/BillingApi";
|
|
10
11
|
export { EmailsApi } from "./apis/EmailsApi";
|
|
11
12
|
export { FilesApi } from "./apis/FilesApi";
|
package/dist/index.js
CHANGED
|
@@ -19,11 +19,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
19
19
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.WorkspacesApi = exports.TokensApi = exports.SystemApi = exports.PortalsApi = exports.OrgUsersApi = exports.OrgGroupsApi = exports.NotesApi = exports.IsolatedStoresApi = exports.HealthApi = exports.FilesApi = exports.EmailsApi = exports.BillingApi = exports.AccessApi = void 0;
|
|
22
|
+
exports.WorkspacesApi = exports.TokensApi = exports.SystemApi = exports.PortalsApi = exports.OrgUsersApi = exports.OrgGroupsApi = exports.NotesApi = exports.IsolatedStoresApi = exports.HealthApi = exports.FilesApi = exports.EmailsApi = exports.BillingApi = exports.AppApisApi = exports.AccessApi = void 0;
|
|
23
23
|
__exportStar(require("./runtime"), exports);
|
|
24
24
|
__exportStar(require("./types"), exports);
|
|
25
25
|
var AccessApi_1 = require("./apis/AccessApi");
|
|
26
26
|
Object.defineProperty(exports, "AccessApi", { enumerable: true, get: function () { return AccessApi_1.AccessApi; } });
|
|
27
|
+
var AppApisApi_1 = require("./apis/AppApisApi");
|
|
28
|
+
Object.defineProperty(exports, "AppApisApi", { enumerable: true, get: function () { return AppApisApi_1.AppApisApi; } });
|
|
27
29
|
var BillingApi_1 = require("./apis/BillingApi");
|
|
28
30
|
Object.defineProperty(exports, "BillingApi", { enumerable: true, get: function () { return BillingApi_1.BillingApi; } });
|
|
29
31
|
var EmailsApi_1 = require("./apis/EmailsApi");
|
|
@@ -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 {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface AppApiOperationContract {
|
|
2
|
+
id?: number;
|
|
3
|
+
orgId: string;
|
|
4
|
+
appId: string;
|
|
5
|
+
appFeatureId: string;
|
|
6
|
+
operationId: string;
|
|
7
|
+
method: string;
|
|
8
|
+
path: string;
|
|
9
|
+
title?: string | null;
|
|
10
|
+
summary?: string | null;
|
|
11
|
+
description?: string | null;
|
|
12
|
+
visibility?: string | null;
|
|
13
|
+
executionMode?: string | null;
|
|
14
|
+
tags: string[];
|
|
15
|
+
manifestVersion?: string | null;
|
|
16
|
+
publishedAt?: string | null;
|
|
17
|
+
createdAt: number;
|
|
18
|
+
updatedAt: number;
|
|
19
|
+
}
|
|
20
|
+
export interface AppApiOperationListResponseContract {
|
|
21
|
+
operations: AppApiOperationContract[];
|
|
22
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* Generated by SDK codegen
|
|
6
6
|
*/
|
|
7
7
|
export type { AuthenticatedUserSummaryContract, MyOrgAccessResponseContract } from "./access/access";
|
|
8
|
+
export type { AppApiOperationContract, AppApiOperationListResponseContract } from "./app-api/app-api";
|
|
8
9
|
export * from "./billing/billing";
|
|
9
10
|
export type { OrgEmailSendRequestContract, OrgEmailSendResponseContract } from "./email/email";
|
|
10
11
|
export * from "./file/file";
|
package/package.json
CHANGED
package/release-notes/latest.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# Release Notes 2.2.12-sdk.
|
|
1
|
+
# Release Notes 2.2.12-sdk.3
|
|
2
2
|
|
|
3
3
|
- Current ref: `HEAD`
|
|
4
|
-
- Previous tag: `v2.2.12-sdk.
|
|
5
|
-
- Generated at: 2026-
|
|
4
|
+
- Previous tag: `v2.2.12-sdk.3`
|
|
5
|
+
- Generated at: 2026-05-06T15:29:02.645Z
|
|
6
6
|
|
|
7
7
|
## Included Drafts
|
|
8
8
|
|
|
9
|
-
-
|
|
9
|
+
- `docs/release-notes/2026-05-06-isolated-stores-skill-checklist.md` - Summary
|