@protobase/client 0.15.1 → 0.15.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.
Files changed (2) hide show
  1. package/dist/types.d.ts +6 -2
  2. package/package.json +3 -3
package/dist/types.d.ts CHANGED
@@ -99,6 +99,7 @@ export type ResourcePermissions = {
99
99
  * `runtime`: the runtime updates endpoint, for a caller with the `admin` role when the app has one.
100
100
  * `signIn`: for a visitor who is not signed in, the resources they could use once signed in, with what to tell them.
101
101
  * `bottomBar`: the tabs on phones, of the bottom bar that names the caller's active role.
102
+ * `files`: the hosts besides the page's own whose images the admin app draws with the page's referrer.
102
103
  * `plugins`: the plugins the admin app loads for the caller, each by its plugin.json.
103
104
  * `sources`: the other APIs whose resources the admin app draws for the caller.
104
105
  */
@@ -123,6 +124,9 @@ export type Meta = {
123
124
  maps?: {
124
125
  style: string;
125
126
  };
127
+ files?: {
128
+ trustedHosts: string[];
129
+ };
126
130
  plugins?: PluginRef[];
127
131
  sources?: SourceRef[];
128
132
  };
@@ -167,8 +171,8 @@ export type StoredFileVariant = {
167
171
  };
168
172
  /**
169
173
  * A file field as records carry it. `url` downloads it: signed and valid one to two hours for a private file, permanent
170
- * for a public one. An image may have `variants` by name and a `placeholder`, its ThumbHash in base64. Send `uri` back
171
- * unchanged to keep the file, or `null` to clear it.
174
+ * for a public one, the URL itself for an external one. An image may have `variants` by name and a `placeholder`, its
175
+ * ThumbHash in base64. Send `uri` back unchanged to keep the file, or `null` to clear it.
172
176
  */
173
177
  export type StoredFile = {
174
178
  uri: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/client",
3
- "version": "0.15.1",
3
+ "version": "0.15.2",
4
4
  "description": "Typed fetch client for the Protobase REST API.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -30,8 +30,8 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@better-auth/passkey": "^1.7.7",
33
- "@protobase/layout": "0.15.1",
34
- "@protobase/schema": "0.15.1",
33
+ "@protobase/layout": "0.15.2",
34
+ "@protobase/schema": "0.15.2",
35
35
  "@simplewebauthn/browser": "^13.3.0",
36
36
  "better-auth": "^1.7.7"
37
37
  }