@arbidocs/client 0.4.72 → 0.4.73

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.cts CHANGED
@@ -787,6 +787,7 @@ interface paths {
787
787
  * @description Update user's display profile (given_name, family_name, picture).
788
788
  *
789
789
  * Pass an empty string to clear family_name or picture; null means "leave unchanged".
790
+ * A verified name is locked (409) except for case/accent changes; see identity.check_rename.
790
791
  */
791
792
  patch: operations['update_profile'];
792
793
  trace?: never;
@@ -2565,6 +2566,31 @@ interface paths {
2565
2566
  patch?: never;
2566
2567
  trace?: never;
2567
2568
  };
2569
+ '/v1/conversation/{conversation_ext_id}/step': {
2570
+ parameters: {
2571
+ query?: never;
2572
+ header?: never;
2573
+ path?: never;
2574
+ cookie?: never;
2575
+ };
2576
+ get?: never;
2577
+ put?: never;
2578
+ /**
2579
+ * Act On Step
2580
+ * @description A person finishes a step of a workflow run: fills in a form (its ``inputs`` join the run's inputs), adds
2581
+ * the files, approves a review, or skips a step. The run then goes on to its next agent step, under the
2582
+ * caller's session (they are present: no access question).
2583
+ *
2584
+ * 400 when the step is not this run's, or not ready (what it waits for has not finished); 409 while a turn is
2585
+ * running for a step a person does (an agent step can only be skipped once it has failed or not started).
2586
+ */
2587
+ post: operations['act_on_step'];
2588
+ delete?: never;
2589
+ options?: never;
2590
+ head?: never;
2591
+ patch?: never;
2592
+ trace?: never;
2593
+ };
2568
2594
  '/v1/conversation/{conversation_ext_id}/activity': {
2569
2595
  parameters: {
2570
2596
  query?: never;
@@ -6045,7 +6071,7 @@ interface components {
6045
6071
  * @description What happened to a task, in the order a person reads its history.
6046
6072
  * @enum {string}
6047
6073
  */
6048
- ActivityKind: 'created' | 'run_started' | 'awaiting_access' | 'access_granted' | 'done' | 'reopened' | 'failed' | 'participant_joined' | 'assistant_responded' | 'assistant_stopped' | 'artifact_created' | 'artifact_edited' | 'document_added' | 'document_removed' | 'notified';
6074
+ ActivityKind: 'created' | 'run_started' | 'awaiting_access' | 'access_granted' | 'done' | 'reopened' | 'failed' | 'participant_joined' | 'assistant_responded' | 'assistant_stopped' | 'artifact_created' | 'artifact_edited' | 'document_added' | 'document_removed' | 'notified' | 'step_started' | 'step_done' | 'step_skipped' | 'step_failed';
6049
6075
  /**
6050
6076
  * ActivityResponse
6051
6077
  * @description One entry of ``GET /v1/conversation/{id}/activity``.
@@ -9689,6 +9715,10 @@ interface components {
9689
9715
  agent_ext_id?: string | null;
9690
9716
  /** Skill Ref */
9691
9717
  skill_ref?: string | null;
9718
+ /** Skill Inputs */
9719
+ skill_inputs?: {
9720
+ [key: string]: unknown;
9721
+ } | null;
9692
9722
  /**
9693
9723
  * Has Agent Action
9694
9724
  * @default false
@@ -16583,6 +16613,26 @@ interface components {
16583
16613
  /** Color */
16584
16614
  color: string;
16585
16615
  };
16616
+ /**
16617
+ * StepActionRequest
16618
+ * @description A person finishes a step of a workflow run (``POST /v1/conversation/{id}/step``).
16619
+ *
16620
+ * ``complete`` finishes a form (``inputs`` merge into the run's inputs), an upload, or a review (the
16621
+ * approval: whoever completes it is recorded). ``skip`` passes over a step so what waits for it can go on.
16622
+ */
16623
+ StepActionRequest: {
16624
+ /** Step */
16625
+ step: string;
16626
+ /**
16627
+ * Action
16628
+ * @enum {string}
16629
+ */
16630
+ action: 'complete' | 'skip';
16631
+ /** Inputs */
16632
+ inputs?: {
16633
+ [key: string]: unknown;
16634
+ } | null;
16635
+ };
16586
16636
  /**
16587
16637
  * StepUsage
16588
16638
  * @description Per-step token usage from a single LLM call.
@@ -16972,6 +17022,11 @@ interface components {
16972
17022
  * @default []
16973
17023
  */
16974
17024
  documents: string[];
17025
+ /**
17026
+ * Steps
17027
+ * @default []
17028
+ */
17029
+ steps: components['schemas']['TaskPlanStep'][];
16975
17030
  };
16976
17031
  /**
16977
17032
  * TaskPlanCriterion
@@ -16984,6 +17039,51 @@ interface components {
16984
17039
  /** Text */
16985
17040
  text: string;
16986
17041
  };
17042
+ /**
17043
+ * TaskPlanStep
17044
+ * @description One named step of a workflow run (see ``src/core/workflow_steps.py``).
17045
+ *
17046
+ * ``form`` / ``upload`` / ``review`` steps wait for a person; an ``agent`` step is a turn the assistant
17047
+ * takes in the thread, running a ``skill`` (with ``inputs`` templated from the run's inputs) or a
17048
+ * ``prompt`` template. A ``branch`` agent step runs off the main line and delivers only its result to it.
17049
+ * The structure is plaintext (the scheduler reads it to start each step, like ``Convos.prompt``); the
17050
+ * ``title`` is encrypted on the conversation. ``ui`` carries what a client shows (form fields, icon).
17051
+ */
17052
+ TaskPlanStep: {
17053
+ /** Id */
17054
+ id: string;
17055
+ /** Title */
17056
+ title: string;
17057
+ /**
17058
+ * Kind
17059
+ * @enum {string}
17060
+ */
17061
+ kind: 'form' | 'upload' | 'agent' | 'review';
17062
+ /** After */
17063
+ after?: string[] | null;
17064
+ /** Skill */
17065
+ skill?: string | null;
17066
+ /** Prompt */
17067
+ prompt?: string | null;
17068
+ /** Inputs */
17069
+ inputs?: {
17070
+ [key: string]: string;
17071
+ } | null;
17072
+ /**
17073
+ * Branch
17074
+ * @default false
17075
+ */
17076
+ branch: boolean;
17077
+ /**
17078
+ * Requires Files
17079
+ * @default false
17080
+ */
17081
+ requires_files: boolean;
17082
+ /** Ui */
17083
+ ui?: {
17084
+ [key: string]: unknown;
17085
+ } | null;
17086
+ };
16987
17087
  /**
16988
17088
  * TaskUpdateMessage
16989
17089
  * @description Document processing progress update.
@@ -22730,6 +22830,41 @@ interface operations {
22730
22830
  };
22731
22831
  };
22732
22832
  };
22833
+ act_on_step: {
22834
+ parameters: {
22835
+ query?: never;
22836
+ header?: never;
22837
+ path: {
22838
+ conversation_ext_id: string;
22839
+ };
22840
+ cookie?: never;
22841
+ };
22842
+ requestBody: {
22843
+ content: {
22844
+ 'application/json': components['schemas']['StepActionRequest'];
22845
+ };
22846
+ };
22847
+ responses: {
22848
+ /** @description Successful Response */
22849
+ 200: {
22850
+ headers: {
22851
+ [name: string]: unknown;
22852
+ };
22853
+ content: {
22854
+ 'application/json': components['schemas']['ConversationResponse'];
22855
+ };
22856
+ };
22857
+ /** @description Validation Error */
22858
+ 422: {
22859
+ headers: {
22860
+ [name: string]: unknown;
22861
+ };
22862
+ content: {
22863
+ 'application/json': components['schemas']['HTTPValidationError'];
22864
+ };
22865
+ };
22866
+ };
22867
+ };
22733
22868
  get_conversation_activity: {
22734
22869
  parameters: {
22735
22870
  query?: never;
package/dist/index.d.ts CHANGED
@@ -787,6 +787,7 @@ interface paths {
787
787
  * @description Update user's display profile (given_name, family_name, picture).
788
788
  *
789
789
  * Pass an empty string to clear family_name or picture; null means "leave unchanged".
790
+ * A verified name is locked (409) except for case/accent changes; see identity.check_rename.
790
791
  */
791
792
  patch: operations['update_profile'];
792
793
  trace?: never;
@@ -2565,6 +2566,31 @@ interface paths {
2565
2566
  patch?: never;
2566
2567
  trace?: never;
2567
2568
  };
2569
+ '/v1/conversation/{conversation_ext_id}/step': {
2570
+ parameters: {
2571
+ query?: never;
2572
+ header?: never;
2573
+ path?: never;
2574
+ cookie?: never;
2575
+ };
2576
+ get?: never;
2577
+ put?: never;
2578
+ /**
2579
+ * Act On Step
2580
+ * @description A person finishes a step of a workflow run: fills in a form (its ``inputs`` join the run's inputs), adds
2581
+ * the files, approves a review, or skips a step. The run then goes on to its next agent step, under the
2582
+ * caller's session (they are present: no access question).
2583
+ *
2584
+ * 400 when the step is not this run's, or not ready (what it waits for has not finished); 409 while a turn is
2585
+ * running for a step a person does (an agent step can only be skipped once it has failed or not started).
2586
+ */
2587
+ post: operations['act_on_step'];
2588
+ delete?: never;
2589
+ options?: never;
2590
+ head?: never;
2591
+ patch?: never;
2592
+ trace?: never;
2593
+ };
2568
2594
  '/v1/conversation/{conversation_ext_id}/activity': {
2569
2595
  parameters: {
2570
2596
  query?: never;
@@ -6045,7 +6071,7 @@ interface components {
6045
6071
  * @description What happened to a task, in the order a person reads its history.
6046
6072
  * @enum {string}
6047
6073
  */
6048
- ActivityKind: 'created' | 'run_started' | 'awaiting_access' | 'access_granted' | 'done' | 'reopened' | 'failed' | 'participant_joined' | 'assistant_responded' | 'assistant_stopped' | 'artifact_created' | 'artifact_edited' | 'document_added' | 'document_removed' | 'notified';
6074
+ ActivityKind: 'created' | 'run_started' | 'awaiting_access' | 'access_granted' | 'done' | 'reopened' | 'failed' | 'participant_joined' | 'assistant_responded' | 'assistant_stopped' | 'artifact_created' | 'artifact_edited' | 'document_added' | 'document_removed' | 'notified' | 'step_started' | 'step_done' | 'step_skipped' | 'step_failed';
6049
6075
  /**
6050
6076
  * ActivityResponse
6051
6077
  * @description One entry of ``GET /v1/conversation/{id}/activity``.
@@ -9689,6 +9715,10 @@ interface components {
9689
9715
  agent_ext_id?: string | null;
9690
9716
  /** Skill Ref */
9691
9717
  skill_ref?: string | null;
9718
+ /** Skill Inputs */
9719
+ skill_inputs?: {
9720
+ [key: string]: unknown;
9721
+ } | null;
9692
9722
  /**
9693
9723
  * Has Agent Action
9694
9724
  * @default false
@@ -16583,6 +16613,26 @@ interface components {
16583
16613
  /** Color */
16584
16614
  color: string;
16585
16615
  };
16616
+ /**
16617
+ * StepActionRequest
16618
+ * @description A person finishes a step of a workflow run (``POST /v1/conversation/{id}/step``).
16619
+ *
16620
+ * ``complete`` finishes a form (``inputs`` merge into the run's inputs), an upload, or a review (the
16621
+ * approval: whoever completes it is recorded). ``skip`` passes over a step so what waits for it can go on.
16622
+ */
16623
+ StepActionRequest: {
16624
+ /** Step */
16625
+ step: string;
16626
+ /**
16627
+ * Action
16628
+ * @enum {string}
16629
+ */
16630
+ action: 'complete' | 'skip';
16631
+ /** Inputs */
16632
+ inputs?: {
16633
+ [key: string]: unknown;
16634
+ } | null;
16635
+ };
16586
16636
  /**
16587
16637
  * StepUsage
16588
16638
  * @description Per-step token usage from a single LLM call.
@@ -16972,6 +17022,11 @@ interface components {
16972
17022
  * @default []
16973
17023
  */
16974
17024
  documents: string[];
17025
+ /**
17026
+ * Steps
17027
+ * @default []
17028
+ */
17029
+ steps: components['schemas']['TaskPlanStep'][];
16975
17030
  };
16976
17031
  /**
16977
17032
  * TaskPlanCriterion
@@ -16984,6 +17039,51 @@ interface components {
16984
17039
  /** Text */
16985
17040
  text: string;
16986
17041
  };
17042
+ /**
17043
+ * TaskPlanStep
17044
+ * @description One named step of a workflow run (see ``src/core/workflow_steps.py``).
17045
+ *
17046
+ * ``form`` / ``upload`` / ``review`` steps wait for a person; an ``agent`` step is a turn the assistant
17047
+ * takes in the thread, running a ``skill`` (with ``inputs`` templated from the run's inputs) or a
17048
+ * ``prompt`` template. A ``branch`` agent step runs off the main line and delivers only its result to it.
17049
+ * The structure is plaintext (the scheduler reads it to start each step, like ``Convos.prompt``); the
17050
+ * ``title`` is encrypted on the conversation. ``ui`` carries what a client shows (form fields, icon).
17051
+ */
17052
+ TaskPlanStep: {
17053
+ /** Id */
17054
+ id: string;
17055
+ /** Title */
17056
+ title: string;
17057
+ /**
17058
+ * Kind
17059
+ * @enum {string}
17060
+ */
17061
+ kind: 'form' | 'upload' | 'agent' | 'review';
17062
+ /** After */
17063
+ after?: string[] | null;
17064
+ /** Skill */
17065
+ skill?: string | null;
17066
+ /** Prompt */
17067
+ prompt?: string | null;
17068
+ /** Inputs */
17069
+ inputs?: {
17070
+ [key: string]: string;
17071
+ } | null;
17072
+ /**
17073
+ * Branch
17074
+ * @default false
17075
+ */
17076
+ branch: boolean;
17077
+ /**
17078
+ * Requires Files
17079
+ * @default false
17080
+ */
17081
+ requires_files: boolean;
17082
+ /** Ui */
17083
+ ui?: {
17084
+ [key: string]: unknown;
17085
+ } | null;
17086
+ };
16987
17087
  /**
16988
17088
  * TaskUpdateMessage
16989
17089
  * @description Document processing progress update.
@@ -22730,6 +22830,41 @@ interface operations {
22730
22830
  };
22731
22831
  };
22732
22832
  };
22833
+ act_on_step: {
22834
+ parameters: {
22835
+ query?: never;
22836
+ header?: never;
22837
+ path: {
22838
+ conversation_ext_id: string;
22839
+ };
22840
+ cookie?: never;
22841
+ };
22842
+ requestBody: {
22843
+ content: {
22844
+ 'application/json': components['schemas']['StepActionRequest'];
22845
+ };
22846
+ };
22847
+ responses: {
22848
+ /** @description Successful Response */
22849
+ 200: {
22850
+ headers: {
22851
+ [name: string]: unknown;
22852
+ };
22853
+ content: {
22854
+ 'application/json': components['schemas']['ConversationResponse'];
22855
+ };
22856
+ };
22857
+ /** @description Validation Error */
22858
+ 422: {
22859
+ headers: {
22860
+ [name: string]: unknown;
22861
+ };
22862
+ content: {
22863
+ 'application/json': components['schemas']['HTTPValidationError'];
22864
+ };
22865
+ };
22866
+ };
22867
+ };
22733
22868
  get_conversation_activity: {
22734
22869
  parameters: {
22735
22870
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/client",
3
- "version": "0.4.72",
3
+ "version": "0.4.73",
4
4
  "description": "TypeScript SDK for the ARBI API — zero-knowledge auth, E2E encryption, and type-safe REST client",
5
5
  "type": "module",
6
6
  "sideEffects": false,