@arbidocs/sdk 0.4.132 → 0.4.134

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.
@@ -9885,6 +9885,21 @@ declare class Arbi {
9885
9885
  started: boolean;
9886
9886
  error?: string | null;
9887
9887
  }>;
9888
+ /** A workflow's runs, newest first: what fired it, the task it created and how it went. */
9889
+ runs: (workflowId: string) => Promise<{
9890
+ conversation_ext_id?: string | null;
9891
+ id: number;
9892
+ status: string;
9893
+ action_type: string;
9894
+ result: {
9895
+ [key: string]: unknown;
9896
+ } | null;
9897
+ label_ext_id: string | null;
9898
+ document_ext_ids: string[];
9899
+ error: string | null;
9900
+ created_at: string;
9901
+ completed_at: string | null;
9902
+ }[]>;
9888
9903
  };
9889
9904
  /** Ask workspace members to sign a document at fields placed on it; signers sign in the app. */
9890
9905
  readonly signatureRequests: {
@@ -9885,6 +9885,21 @@ declare class Arbi {
9885
9885
  started: boolean;
9886
9886
  error?: string | null;
9887
9887
  }>;
9888
+ /** A workflow's runs, newest first: what fired it, the task it created and how it went. */
9889
+ runs: (workflowId: string) => Promise<{
9890
+ conversation_ext_id?: string | null;
9891
+ id: number;
9892
+ status: string;
9893
+ action_type: string;
9894
+ result: {
9895
+ [key: string]: unknown;
9896
+ } | null;
9897
+ label_ext_id: string | null;
9898
+ document_ext_ids: string[];
9899
+ error: string | null;
9900
+ created_at: string;
9901
+ completed_at: string | null;
9902
+ }[]>;
9888
9903
  };
9889
9904
  /** Ask workspace members to sign a document at fields placed on it; signers sign in the app. */
9890
9905
  readonly signatureRequests: {
package/dist/browser.cjs CHANGED
@@ -8720,7 +8720,9 @@ var Arbi = class {
8720
8720
  update: (workflowId, body) => updateWorkflow(this.requireClient(), workflowId, body),
8721
8721
  delete: (workflowId) => deleteWorkflow(this.requireClient(), workflowId),
8722
8722
  /** Fire a workflow now, as a test run. Resolves with the conversation it created and whether it started. */
8723
- run: (workflowId) => runWorkflow(this.requireClient(), workflowId)
8723
+ run: (workflowId) => runWorkflow(this.requireClient(), workflowId),
8724
+ /** A workflow's runs, newest first: what fired it, the task it created and how it went. */
8725
+ runs: (workflowId) => listWorkflowRuns(this.requireClient(), workflowId)
8724
8726
  };
8725
8727
  // ── Signature requests ──────────────────────────────────────────────
8726
8728
  /** Ask workspace members to sign a document at fields placed on it; signers sign in the app. */