@uptiqai/widgets-sdk 1.235.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/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