@ragable/sdk 0.6.16 → 0.6.17
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/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -798,10 +798,10 @@ declare function normalizeBrowserApiBase(): string;
|
|
|
798
798
|
type BrowserDataAuthMode = "user" | "publicAnon" | "admin";
|
|
799
799
|
/**
|
|
800
800
|
* Resolves how database requests are authorized. If `dataAuth` is omitted and a
|
|
801
|
-
* static browser
|
|
802
|
-
* defaults to **`publicAnon`** so
|
|
803
|
-
* Use explicit **`dataAuth: "user"`** when you need JWT sessions; use
|
|
804
|
-
* when the static key is a data-admin key
|
|
801
|
+
* static browser data key is configured (`dataStaticKey` / `getDataStaticKey`),
|
|
802
|
+
* defaults to **`publicAnon`** so public apps can use shared collections without
|
|
803
|
+
* sign-in. Use explicit **`dataAuth: "user"`** when you need JWT sessions; use
|
|
804
|
+
* **`"admin"`** when the static key is a data-admin key.
|
|
805
805
|
*/
|
|
806
806
|
declare function effectiveDataAuth(options: RagableBrowserClientOptions): BrowserDataAuthMode;
|
|
807
807
|
interface RagableBrowserClientOptions {
|
|
@@ -810,7 +810,7 @@ interface RagableBrowserClientOptions {
|
|
|
810
810
|
databaseInstanceId?: string;
|
|
811
811
|
/** When omitted, inferred from static keys — see {@link effectiveDataAuth}. */
|
|
812
812
|
dataAuth?: BrowserDataAuthMode;
|
|
813
|
-
/** Public anon or data-admin key from the dashboard (Browser
|
|
813
|
+
/** Public anon or data-admin key from the dashboard (Browser Data API keys). */
|
|
814
814
|
dataStaticKey?: string;
|
|
815
815
|
getDataStaticKey?: () => string | null | Promise<string | null>;
|
|
816
816
|
getAccessToken?: () => string | null | Promise<string | null>;
|
package/dist/index.d.ts
CHANGED
|
@@ -798,10 +798,10 @@ declare function normalizeBrowserApiBase(): string;
|
|
|
798
798
|
type BrowserDataAuthMode = "user" | "publicAnon" | "admin";
|
|
799
799
|
/**
|
|
800
800
|
* Resolves how database requests are authorized. If `dataAuth` is omitted and a
|
|
801
|
-
* static browser
|
|
802
|
-
* defaults to **`publicAnon`** so
|
|
803
|
-
* Use explicit **`dataAuth: "user"`** when you need JWT sessions; use
|
|
804
|
-
* when the static key is a data-admin key
|
|
801
|
+
* static browser data key is configured (`dataStaticKey` / `getDataStaticKey`),
|
|
802
|
+
* defaults to **`publicAnon`** so public apps can use shared collections without
|
|
803
|
+
* sign-in. Use explicit **`dataAuth: "user"`** when you need JWT sessions; use
|
|
804
|
+
* **`"admin"`** when the static key is a data-admin key.
|
|
805
805
|
*/
|
|
806
806
|
declare function effectiveDataAuth(options: RagableBrowserClientOptions): BrowserDataAuthMode;
|
|
807
807
|
interface RagableBrowserClientOptions {
|
|
@@ -810,7 +810,7 @@ interface RagableBrowserClientOptions {
|
|
|
810
810
|
databaseInstanceId?: string;
|
|
811
811
|
/** When omitted, inferred from static keys — see {@link effectiveDataAuth}. */
|
|
812
812
|
dataAuth?: BrowserDataAuthMode;
|
|
813
|
-
/** Public anon or data-admin key from the dashboard (Browser
|
|
813
|
+
/** Public anon or data-admin key from the dashboard (Browser Data API keys). */
|
|
814
814
|
dataStaticKey?: string;
|
|
815
815
|
getDataStaticKey?: () => string | null | Promise<string | null>;
|
|
816
816
|
getAccessToken?: () => string | null | Promise<string | null>;
|