@fusebase/fusebase-gate-sdk 2.11.5 → 2.11.6-sdk.0
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 +1 -1
- package/dist/apis/AppApisApi.js +1 -1
- package/dist/types/app-api/app-api.d.ts +6 -0
- package/package.json +1 -1
- package/release-notes/2.11.6-sdk.0.md +9 -0
- package/release-notes/latest.md +3 -3
- package/release-notes/2.11.3.md +0 -116
- package/release-notes/2.11.5.md +0 -9
|
@@ -11,7 +11,7 @@ export declare class AppApisApi {
|
|
|
11
11
|
constructor(client: Client);
|
|
12
12
|
/**
|
|
13
13
|
* Call app API operation
|
|
14
|
-
* Invokes a published app API operation through the owner app runtime using a runtime app token minted for the current authenticated caller context. Pass `onBehalfOfUserToken` (a platform app token, i.e. the user's `fbsfeaturetoken`) to run the call on behalf of an end user: Gate verifies it fail-closed and forwards the resolved user to the runtime as `X-Fusebase-Verified-User-Id` / `X-Fusebase-Verified-User-Source: obo`, so apps no longer need to hand-roll dual-token forwarding. The operation's `allowedCallers` / `requiredPermissions` are still evaluated against the calling identity, not the on-behalf-of user.
|
|
14
|
+
* Invokes a published app API operation through the owner app runtime using a runtime app token minted for the current authenticated caller context. Pass `onBehalfOfUserToken` (a platform app token, i.e. the user's `fbsfeaturetoken`) to run the call on behalf of an end user: Gate verifies it fail-closed and forwards the resolved user to the runtime as `X-Fusebase-Verified-User-Id` / `X-Fusebase-Verified-User-Source: obo`, so apps no longer need to hand-roll dual-token forwarding. The operation's `allowedCallers` / `requiredPermissions` are still evaluated against the calling identity, not the on-behalf-of user. Pass `headers` to forward extra request headers to the runtime, for operations that require one such as `Idempotency-Key`; headers Gate sets itself (auth and `X-Fusebase-*` identity headers) are reserved and rejected with 400.
|
|
15
15
|
*/
|
|
16
16
|
callAppApi(params: {
|
|
17
17
|
path: {
|
package/dist/apis/AppApisApi.js
CHANGED
|
@@ -13,7 +13,7 @@ class AppApisApi {
|
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* Call app API operation
|
|
16
|
-
* Invokes a published app API operation through the owner app runtime using a runtime app token minted for the current authenticated caller context. Pass `onBehalfOfUserToken` (a platform app token, i.e. the user's `fbsfeaturetoken`) to run the call on behalf of an end user: Gate verifies it fail-closed and forwards the resolved user to the runtime as `X-Fusebase-Verified-User-Id` / `X-Fusebase-Verified-User-Source: obo`, so apps no longer need to hand-roll dual-token forwarding. The operation's `allowedCallers` / `requiredPermissions` are still evaluated against the calling identity, not the on-behalf-of user.
|
|
16
|
+
* Invokes a published app API operation through the owner app runtime using a runtime app token minted for the current authenticated caller context. Pass `onBehalfOfUserToken` (a platform app token, i.e. the user's `fbsfeaturetoken`) to run the call on behalf of an end user: Gate verifies it fail-closed and forwards the resolved user to the runtime as `X-Fusebase-Verified-User-Id` / `X-Fusebase-Verified-User-Source: obo`, so apps no longer need to hand-roll dual-token forwarding. The operation's `allowedCallers` / `requiredPermissions` are still evaluated against the calling identity, not the on-behalf-of user. Pass `headers` to forward extra request headers to the runtime, for operations that require one such as `Idempotency-Key`; headers Gate sets itself (auth and `X-Fusebase-*` identity headers) are reserved and rejected with 400.
|
|
17
17
|
*/
|
|
18
18
|
async callAppApi(params) {
|
|
19
19
|
return this.client.request({
|
|
@@ -76,6 +76,12 @@ export interface CallAppApiRequestContract {
|
|
|
76
76
|
path?: Record<string, string>;
|
|
77
77
|
query?: Record<string, string | number | boolean>;
|
|
78
78
|
body?: unknown;
|
|
79
|
+
/**
|
|
80
|
+
* Extra request headers forwarded verbatim to the app runtime, for operations
|
|
81
|
+
* that require one (e.g. `Idempotency-Key`). Headers Gate sets itself to prove
|
|
82
|
+
* the caller's identity to the runtime are reserved and rejected with 400.
|
|
83
|
+
*/
|
|
84
|
+
headers?: Record<string, string>;
|
|
79
85
|
/**
|
|
80
86
|
* On-behalf-of: a platform app token (`fbsfeaturetoken` / `x-app-feature-token`)
|
|
81
87
|
* identifying the end user this call runs for. Gate verifies it fail-closed and
|
package/package.json
CHANGED
package/release-notes/latest.md
CHANGED
package/release-notes/2.11.3.md
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
# Release Notes 2.11.3
|
|
2
|
-
|
|
3
|
-
- Current ref: `HEAD`
|
|
4
|
-
- Previous tag: `v2.11.3`
|
|
5
|
-
- Generated at: 2026-09-03T11:31:56.879Z
|
|
6
|
-
|
|
7
|
-
## Included Drafts
|
|
8
|
-
|
|
9
|
-
- `docs/release-notes/2026-09-02-portal-style-colors-font.md` - Portal branding: color roles and web font (NIM-42204)
|
|
10
|
-
- `docs/release-notes/2026-09-03-firecrawl-proxy-forwarding.md` - Firecrawl proxy settings forwarding
|
|
11
|
-
|
|
12
|
-
## Summary
|
|
13
|
-
|
|
14
|
-
### Portal branding: color roles and web font (NIM-42204)
|
|
15
|
-
|
|
16
|
-
`updatePortalStyle` now also takes `colors` and `font`, the two field groups the
|
|
17
|
-
first round left out. Colors are expressed the way the portal actually renders
|
|
18
|
-
them — as **Tailwind palette tokens** written into the theme's own color slots,
|
|
19
|
-
not as hex. The font is delivered through the portal's custom code, since the
|
|
20
|
-
theme model has no font field.
|
|
21
|
-
|
|
22
|
-
### Firecrawl proxy settings forwarding
|
|
23
|
-
|
|
24
|
-
Fusebase Gate now exposes the organization-scoped Paperclip Services routes
|
|
25
|
-
needed to read and update Firecrawl proxy settings.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
## API / SDK Changes
|
|
29
|
-
|
|
30
|
-
### Portal branding: color roles and web font (NIM-42204)
|
|
31
|
-
|
|
32
|
-
- `updatePortalStyle` body gained:
|
|
33
|
-
- `colors` — five semantic roles, each one palette token (`transparent`,
|
|
34
|
-
`white`, `black` or `<hue>-<shade>`, e.g. `indigo-600`):
|
|
35
|
-
|
|
36
|
-
| Role | Theme slots written |
|
|
37
|
-
| --- | --- |
|
|
38
|
-
| `primary` | `bg_primary`, `bg_primary_hover`, `primary` |
|
|
39
|
-
| `background` | `bg_body` |
|
|
40
|
-
| `surface` | `bg_surface` |
|
|
41
|
-
| `text` | `text_surface` |
|
|
42
|
-
| `accent` | `bg_secondary`, `bg_secondary_hover` |
|
|
43
|
-
|
|
44
|
-
- `font` — `{ family, source: "google" }`. The family is spelled as Google
|
|
45
|
-
Fonts spells it; letters, digits and spaces only.
|
|
46
|
-
- `getPortal` → `style` gained `colors` (the roles the portal overrides) and
|
|
47
|
-
`fontFamily`.
|
|
48
|
-
- A body touching both the theme fields and `font` stages **two** events (one
|
|
49
|
-
`updateThemeSettings`, one `updateCustomCodeSettings`); `seq` is the first.
|
|
50
|
-
- The error for an empty body is now
|
|
51
|
-
`At least one of theme, colors, font, logo, or favicon is required`.
|
|
52
|
-
|
|
53
|
-
### Firecrawl proxy settings forwarding
|
|
54
|
-
|
|
55
|
-
- Added `GET /:orgId/paperclip-services/installations/:appKey/proxy`.
|
|
56
|
-
- Added `PUT /:orgId/paperclip-services/installations/:appKey/proxy`.
|
|
57
|
-
- Added typed redacted settings and write-only configuration contracts for
|
|
58
|
-
direct, custom gateway, uploaded list, and HTTPS list/API modes.
|
|
59
|
-
- Added `firecrawlProxyManagement` to the Paperclip Services capabilities
|
|
60
|
-
contract.
|
|
61
|
-
- The `paperclip-services` tag remains excluded from the public SDK surface.
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
## Consumer Impact
|
|
65
|
-
|
|
66
|
-
### Portal branding: color roles and web font (NIM-42204)
|
|
67
|
-
|
|
68
|
-
An agent can now recolor a portal past the 13 named themes without writing
|
|
69
|
-
custom CSS, and the recolor works on any domain.
|
|
70
|
-
|
|
71
|
-
**Hex is still rejected, on purpose.** The renderer interpolates the stored
|
|
72
|
-
token straight into a class name (`bg-neutral-900`), and
|
|
73
|
-
`apps/portals/tailwind.config.js` safelists palette names only, so `#2563eb`
|
|
74
|
-
would be stored, published, and style nothing. `stone` and `violet` are rejected
|
|
75
|
-
for the same reason: they are missing from that safelist. Convert a hex to the
|
|
76
|
-
nearest token before calling.
|
|
77
|
-
|
|
78
|
-
**Where the font lives.** The theme DTO has no font field, so `font` stages one
|
|
79
|
-
marked `<style>` block inside the portal's `customStyle`:
|
|
80
|
-
|
|
81
|
-
```html
|
|
82
|
-
<!--fusebase-font--><style>@import url("https://fonts.googleapis.com/css2?family=Fraunces&display=swap");#main-scrolling-container{font-family:'Fraunces',sans-serif}</style><!--/fusebase-font-->
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
The markers make it replaceable: a second `font` call swaps the block rather
|
|
86
|
-
than appending one, and `updatePortalCustomCode` carries it through when the
|
|
87
|
-
agent rewrites the surrounding CSS. Because it is custom code, it renders
|
|
88
|
-
wherever custom code renders — the customizer only offers the custom-code editor
|
|
89
|
-
on portals served from a custom CNAME domain.
|
|
90
|
-
|
|
91
|
-
**Hover slots take the same token as their base.** No shade is derived, so a
|
|
92
|
-
recolored hover never lands on an unrelated preset color. An agent that wants a
|
|
93
|
-
distinct hover uses `updatePortalCustomCode`.
|
|
94
|
-
|
|
95
|
-
### Firecrawl proxy settings forwarding
|
|
96
|
-
|
|
97
|
-
Deployed Paperclip instances can open and save Firecrawl proxy settings through
|
|
98
|
-
Fusebase Gate. Reads require `paperclip_services.read`; updates require
|
|
99
|
-
`paperclip_services.write`. Credentials and proxy-list contents are forwarded
|
|
100
|
-
only in the request body and are not included in responses.
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
## Verification
|
|
104
|
-
|
|
105
|
-
### Firecrawl proxy settings forwarding
|
|
106
|
-
|
|
107
|
-
- Paperclip Services route authorization tests.
|
|
108
|
-
- Nimbus AI client forwarding tests for GET and PUT.
|
|
109
|
-
- Generated contract/OpenAPI validation and service build.
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
## Follow-ups
|
|
113
|
-
|
|
114
|
-
### Firecrawl proxy settings forwarding
|
|
115
|
-
|
|
116
|
-
- Verify the dev Gate rollout before running Firecrawl proxy acceptance tests.
|