@arbidocs/sdk 0.5.21 → 0.5.23

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/README.md CHANGED
@@ -129,3 +129,7 @@ if (run.execution_id) {
129
129
  Document selectors can specify IDs, labels resolved at execution time, or `latest` documents since the previous successful run. Unattended document actions require an assistant with standing workspace access; creating a rule does not grant that access.
130
130
 
131
131
  For latest-document digests, the first run covers the preceding 24 hours; later runs use the previous successful run cutoff. Failed delivery does not advance it. Emails contain document names and authenticated platform links, without attachments.
132
+
133
+ ## Releases
134
+
135
+ Release notes for every version are on [GitHub releases](https://github.com/arbicity/ARBI-frontend/releases).
@@ -8099,6 +8099,11 @@ declare class Arbi {
8099
8099
  baseUrl: string;
8100
8100
  accessToken: string;
8101
8101
  } | null;
8102
+ /**
8103
+ * Re-login silently and resolve the fresh access token (`null` when the session could not be
8104
+ * renewed, which ends it). For a live connection whose token was refused.
8105
+ */
8106
+ refreshAccess(): Promise<string | null>;
8102
8107
  private getAuthHeaders;
8103
8108
  readonly projects: {
8104
8109
  /** The caller's projects; only those at `stage` and/or led by `leadUser` when given. */
@@ -8099,6 +8099,11 @@ declare class Arbi {
8099
8099
  baseUrl: string;
8100
8100
  accessToken: string;
8101
8101
  } | null;
8102
+ /**
8103
+ * Re-login silently and resolve the fresh access token (`null` when the session could not be
8104
+ * renewed, which ends it). For a live connection whose token was refused.
8105
+ */
8106
+ refreshAccess(): Promise<string | null>;
8102
8107
  private getAuthHeaders;
8103
8108
  readonly projects: {
8104
8109
  /** The caller's projects; only those at `stage` and/or led by `leadUser` when given. */
package/dist/browser.cjs CHANGED
@@ -10464,6 +10464,13 @@ var Arbi = class {
10464
10464
  if (!accessToken) return null;
10465
10465
  return { baseUrl: this.options.url, accessToken };
10466
10466
  }
10467
+ /**
10468
+ * Re-login silently and resolve the fresh access token (`null` when the session could not be
10469
+ * renewed, which ends it). For a live connection whose token was refused.
10470
+ */
10471
+ refreshAccess() {
10472
+ return this.client ? this.client.auth.relogin() : Promise.resolve(null);
10473
+ }
10467
10474
  // ── Auth headers (for raw fetch operations) ───────────────────────────
10468
10475
  getAuthHeaders() {
10469
10476
  const client = this.requireClient();