@uptiqai/widgets-sdk 1.234.0 → 1.236.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/headless.js +2444 -2429
- package/dist/index.css +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +19571 -19549
- package/dist/index.umd.cjs +146 -146
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -617,6 +617,13 @@ declare type WidgetConfig = {
|
|
|
617
617
|
appId?: string;
|
|
618
618
|
accountId?: string;
|
|
619
619
|
variables?: Record<string, string>;
|
|
620
|
+
/**
|
|
621
|
+
* Authenticates the session as the signed-in user rather than as the widget key's owner, so what
|
|
622
|
+
* it reads and writes belongs to that user's workspace. A getter rather than a string: it is read
|
|
623
|
+
* per request and per socket connect, so a token the host refreshes is picked up mid-session.
|
|
624
|
+
* Only hosts running inside an authenticated app can supply this.
|
|
625
|
+
*/
|
|
626
|
+
getAccessToken?: () => string | Promise<string>;
|
|
620
627
|
enableDeprecatedModelMigration?: boolean;
|
|
621
628
|
};
|
|
622
629
|
|