@arbidocs/client 0.3.166 → 0.3.168

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
@@ -412,6 +412,29 @@ interface paths {
412
412
  patch?: never;
413
413
  trace?: never;
414
414
  };
415
+ '/v1/user/sessions/{session_id}': {
416
+ parameters: {
417
+ query?: never;
418
+ header?: never;
419
+ path?: never;
420
+ cookie?: never;
421
+ };
422
+ get?: never;
423
+ put?: never;
424
+ post?: never;
425
+ delete?: never;
426
+ options?: never;
427
+ head?: never;
428
+ /**
429
+ * Patch Session
430
+ * @description Expire (ttl=0) or reset the remaining TTL of one of the caller's own sessions.
431
+ *
432
+ * Agents (as with /logout) may only touch their own session; principals may target
433
+ * any session in their session set, including ones other than the one they're on.
434
+ */
435
+ patch: operations['patch_session'];
436
+ trace?: never;
437
+ };
415
438
  '/v1/user/change_password': {
416
439
  parameters: {
417
440
  query?: never;
@@ -3666,6 +3689,12 @@ interface components {
3666
3689
  * @default false
3667
3690
  */
3668
3691
  WORKSPACE_TOOLS_ENABLED: boolean;
3692
+ /**
3693
+ * Remote Control Enabled
3694
+ * @description Enable the control_ui tool so the agent can drive the user's frontend with a guided cursor (click/type on their screen), gated by the user's consent. Pushes a remote_control WebSocket message to the user's session. Off by default.
3695
+ * @default false
3696
+ */
3697
+ REMOTE_CONTROL_ENABLED: boolean;
3669
3698
  /**
3670
3699
  * Enabled Skills
3671
3700
  * @description Allowlist of skill slugs this config may invoke via run_skill/list_skills. None = no restriction (every skill the caller can see — back-compat default). A list (including []) restricts to exactly those slugs. Set a list on an agent's config to scope which skills that agent can use.
@@ -3921,6 +3950,12 @@ interface components {
3921
3950
  * @default false
3922
3951
  */
3923
3952
  WORKSPACE_TOOLS_ENABLED: boolean;
3953
+ /**
3954
+ * Remote Control Enabled
3955
+ * @description Enable the control_ui tool so the agent can drive the user's frontend with a guided cursor (click/type on their screen), gated by the user's consent. Pushes a remote_control WebSocket message to the user's session. Off by default.
3956
+ * @default false
3957
+ */
3958
+ REMOTE_CONTROL_ENABLED: boolean;
3924
3959
  /**
3925
3960
  * Enabled Skills
3926
3961
  * @description Allowlist of skill slugs this config may invoke via run_skill/list_skills. None = no restriction (every skill the caller can see — back-compat default). A list (including []) restricts to exactly those slugs. Set a list on an agent's config to scope which skills that agent can use.
@@ -3992,6 +4027,7 @@ interface components {
3992
4027
  * "SKILLS_ENABLED": false,
3993
4028
  * "SKILL_CREATION": false,
3994
4029
  * "WORKSPACE_TOOLS_ENABLED": false,
4030
+ * "REMOTE_CONTROL_ENABLED": false,
3995
4031
  * "MEMORY_CREATION": false,
3996
4032
  * "GOALS_ENABLED": false,
3997
4033
  * "GOAL_MAX_OUTER_LOOPS": 6,
@@ -8776,6 +8812,55 @@ interface components {
8776
8812
  /** Lead Minutes */
8777
8813
  lead_minutes?: number | null;
8778
8814
  };
8815
+ /**
8816
+ * RemoteControlMessage
8817
+ * @description Ask the user's frontend to run a guided-cursor UI action (remote control).
8818
+ *
8819
+ * The model emits this via the ``control_ui`` tool to demonstrate or perform
8820
+ * an action on the user's screen. The frontend gates it behind the user's
8821
+ * consent, then either replays a registered ``sequence_id`` or the explicit
8822
+ * ``steps``. Exactly one of ``sequence_id`` / ``steps`` is set.
8823
+ */
8824
+ RemoteControlMessage: {
8825
+ /**
8826
+ * Type
8827
+ * @default remote_control
8828
+ * @constant
8829
+ */
8830
+ type: 'remote_control';
8831
+ /** Agent Name */
8832
+ agent_name: string;
8833
+ /** Agent Ext Id */
8834
+ agent_ext_id?: string | null;
8835
+ /** Sequence Id */
8836
+ sequence_id?: string | null;
8837
+ /** Steps */
8838
+ steps?: components['schemas']['RemoteControlStep'][] | null;
8839
+ };
8840
+ /**
8841
+ * RemoteControlStep
8842
+ * @description One guided-cursor step the frontend action runner replays.
8843
+ *
8844
+ * Field names are the ones the frontend's guided-step runner consumes
8845
+ * verbatim, so ``pauseMs``/``waitMs`` stay camelCase even though the envelope
8846
+ * around them is snake_case. ``target`` is a ``[data-testid=…]`` selector and
8847
+ * is required; ``do`` defaults to a click; ``value`` is the text for a
8848
+ * ``type`` step.
8849
+ */
8850
+ RemoteControlStep: {
8851
+ /** Target */
8852
+ target: string;
8853
+ /** Do */
8854
+ do?: ('click' | 'type') | null;
8855
+ /** Value */
8856
+ value?: string | null;
8857
+ /** Note */
8858
+ note?: string | null;
8859
+ /** Pausems */
8860
+ pauseMs?: number | null;
8861
+ /** Waitms */
8862
+ waitMs?: number | null;
8863
+ };
8779
8864
  /**
8780
8865
  * RemoveWorkspaceUserItem
8781
8866
  * @description A user or agent to remove from a workspace.
@@ -9989,6 +10074,17 @@ interface components {
9989
10074
  /** Ttl */
9990
10075
  ttl: number;
9991
10076
  };
10077
+ /**
10078
+ * SessionTTLPatchRequest
10079
+ * @description Body for PATCH /user/sessions/{session_id}.
10080
+ */
10081
+ SessionTTLPatchRequest: {
10082
+ /**
10083
+ * Ttl
10084
+ * @description New remaining TTL in seconds. 0 expires the session immediately; any other value resets its remaining time (capped at the server's max session TTL).
10085
+ */
10086
+ ttl: number;
10087
+ };
9992
10088
  /**
9993
10089
  * SessionTokenBridge
9994
10090
  * @description Client-decrypted tokens re-sealed to the session public key, posted at login.
@@ -11643,6 +11739,7 @@ interface components {
11643
11739
  response_complete?: components['schemas']['ResponseCompleteMessage'] | null;
11644
11740
  conversation_title_updated?: components['schemas']['ConversationTitleUpdatedMessage'] | null;
11645
11741
  skills_updated?: components['schemas']['SkillsUpdatedMessage'] | null;
11742
+ remote_control?: components['schemas']['RemoteControlMessage'] | null;
11646
11743
  notification?: components['schemas']['NotificationResponse'] | null;
11647
11744
  auth?: components['schemas']['AuthMessage'] | null;
11648
11745
  send_message?: components['schemas']['SendMessageRequest'] | null;
@@ -12453,6 +12550,41 @@ interface operations {
12453
12550
  };
12454
12551
  };
12455
12552
  };
12553
+ patch_session: {
12554
+ parameters: {
12555
+ query?: never;
12556
+ header?: never;
12557
+ path: {
12558
+ session_id: string;
12559
+ };
12560
+ cookie?: never;
12561
+ };
12562
+ requestBody: {
12563
+ content: {
12564
+ 'application/json': components['schemas']['SessionTTLPatchRequest'];
12565
+ };
12566
+ };
12567
+ responses: {
12568
+ /** @description Successful Response */
12569
+ 200: {
12570
+ headers: {
12571
+ [name: string]: unknown;
12572
+ };
12573
+ content: {
12574
+ 'application/json': components['schemas']['SessionInfoResponse'];
12575
+ };
12576
+ };
12577
+ /** @description Validation Error */
12578
+ 422: {
12579
+ headers: {
12580
+ [name: string]: unknown;
12581
+ };
12582
+ content: {
12583
+ 'application/json': components['schemas']['HTTPValidationError'];
12584
+ };
12585
+ };
12586
+ };
12587
+ };
12456
12588
  change_password: {
12457
12589
  parameters: {
12458
12590
  query?: never;
package/dist/index.d.ts CHANGED
@@ -412,6 +412,29 @@ interface paths {
412
412
  patch?: never;
413
413
  trace?: never;
414
414
  };
415
+ '/v1/user/sessions/{session_id}': {
416
+ parameters: {
417
+ query?: never;
418
+ header?: never;
419
+ path?: never;
420
+ cookie?: never;
421
+ };
422
+ get?: never;
423
+ put?: never;
424
+ post?: never;
425
+ delete?: never;
426
+ options?: never;
427
+ head?: never;
428
+ /**
429
+ * Patch Session
430
+ * @description Expire (ttl=0) or reset the remaining TTL of one of the caller's own sessions.
431
+ *
432
+ * Agents (as with /logout) may only touch their own session; principals may target
433
+ * any session in their session set, including ones other than the one they're on.
434
+ */
435
+ patch: operations['patch_session'];
436
+ trace?: never;
437
+ };
415
438
  '/v1/user/change_password': {
416
439
  parameters: {
417
440
  query?: never;
@@ -3666,6 +3689,12 @@ interface components {
3666
3689
  * @default false
3667
3690
  */
3668
3691
  WORKSPACE_TOOLS_ENABLED: boolean;
3692
+ /**
3693
+ * Remote Control Enabled
3694
+ * @description Enable the control_ui tool so the agent can drive the user's frontend with a guided cursor (click/type on their screen), gated by the user's consent. Pushes a remote_control WebSocket message to the user's session. Off by default.
3695
+ * @default false
3696
+ */
3697
+ REMOTE_CONTROL_ENABLED: boolean;
3669
3698
  /**
3670
3699
  * Enabled Skills
3671
3700
  * @description Allowlist of skill slugs this config may invoke via run_skill/list_skills. None = no restriction (every skill the caller can see — back-compat default). A list (including []) restricts to exactly those slugs. Set a list on an agent's config to scope which skills that agent can use.
@@ -3921,6 +3950,12 @@ interface components {
3921
3950
  * @default false
3922
3951
  */
3923
3952
  WORKSPACE_TOOLS_ENABLED: boolean;
3953
+ /**
3954
+ * Remote Control Enabled
3955
+ * @description Enable the control_ui tool so the agent can drive the user's frontend with a guided cursor (click/type on their screen), gated by the user's consent. Pushes a remote_control WebSocket message to the user's session. Off by default.
3956
+ * @default false
3957
+ */
3958
+ REMOTE_CONTROL_ENABLED: boolean;
3924
3959
  /**
3925
3960
  * Enabled Skills
3926
3961
  * @description Allowlist of skill slugs this config may invoke via run_skill/list_skills. None = no restriction (every skill the caller can see — back-compat default). A list (including []) restricts to exactly those slugs. Set a list on an agent's config to scope which skills that agent can use.
@@ -3992,6 +4027,7 @@ interface components {
3992
4027
  * "SKILLS_ENABLED": false,
3993
4028
  * "SKILL_CREATION": false,
3994
4029
  * "WORKSPACE_TOOLS_ENABLED": false,
4030
+ * "REMOTE_CONTROL_ENABLED": false,
3995
4031
  * "MEMORY_CREATION": false,
3996
4032
  * "GOALS_ENABLED": false,
3997
4033
  * "GOAL_MAX_OUTER_LOOPS": 6,
@@ -8776,6 +8812,55 @@ interface components {
8776
8812
  /** Lead Minutes */
8777
8813
  lead_minutes?: number | null;
8778
8814
  };
8815
+ /**
8816
+ * RemoteControlMessage
8817
+ * @description Ask the user's frontend to run a guided-cursor UI action (remote control).
8818
+ *
8819
+ * The model emits this via the ``control_ui`` tool to demonstrate or perform
8820
+ * an action on the user's screen. The frontend gates it behind the user's
8821
+ * consent, then either replays a registered ``sequence_id`` or the explicit
8822
+ * ``steps``. Exactly one of ``sequence_id`` / ``steps`` is set.
8823
+ */
8824
+ RemoteControlMessage: {
8825
+ /**
8826
+ * Type
8827
+ * @default remote_control
8828
+ * @constant
8829
+ */
8830
+ type: 'remote_control';
8831
+ /** Agent Name */
8832
+ agent_name: string;
8833
+ /** Agent Ext Id */
8834
+ agent_ext_id?: string | null;
8835
+ /** Sequence Id */
8836
+ sequence_id?: string | null;
8837
+ /** Steps */
8838
+ steps?: components['schemas']['RemoteControlStep'][] | null;
8839
+ };
8840
+ /**
8841
+ * RemoteControlStep
8842
+ * @description One guided-cursor step the frontend action runner replays.
8843
+ *
8844
+ * Field names are the ones the frontend's guided-step runner consumes
8845
+ * verbatim, so ``pauseMs``/``waitMs`` stay camelCase even though the envelope
8846
+ * around them is snake_case. ``target`` is a ``[data-testid=…]`` selector and
8847
+ * is required; ``do`` defaults to a click; ``value`` is the text for a
8848
+ * ``type`` step.
8849
+ */
8850
+ RemoteControlStep: {
8851
+ /** Target */
8852
+ target: string;
8853
+ /** Do */
8854
+ do?: ('click' | 'type') | null;
8855
+ /** Value */
8856
+ value?: string | null;
8857
+ /** Note */
8858
+ note?: string | null;
8859
+ /** Pausems */
8860
+ pauseMs?: number | null;
8861
+ /** Waitms */
8862
+ waitMs?: number | null;
8863
+ };
8779
8864
  /**
8780
8865
  * RemoveWorkspaceUserItem
8781
8866
  * @description A user or agent to remove from a workspace.
@@ -9989,6 +10074,17 @@ interface components {
9989
10074
  /** Ttl */
9990
10075
  ttl: number;
9991
10076
  };
10077
+ /**
10078
+ * SessionTTLPatchRequest
10079
+ * @description Body for PATCH /user/sessions/{session_id}.
10080
+ */
10081
+ SessionTTLPatchRequest: {
10082
+ /**
10083
+ * Ttl
10084
+ * @description New remaining TTL in seconds. 0 expires the session immediately; any other value resets its remaining time (capped at the server's max session TTL).
10085
+ */
10086
+ ttl: number;
10087
+ };
9992
10088
  /**
9993
10089
  * SessionTokenBridge
9994
10090
  * @description Client-decrypted tokens re-sealed to the session public key, posted at login.
@@ -11643,6 +11739,7 @@ interface components {
11643
11739
  response_complete?: components['schemas']['ResponseCompleteMessage'] | null;
11644
11740
  conversation_title_updated?: components['schemas']['ConversationTitleUpdatedMessage'] | null;
11645
11741
  skills_updated?: components['schemas']['SkillsUpdatedMessage'] | null;
11742
+ remote_control?: components['schemas']['RemoteControlMessage'] | null;
11646
11743
  notification?: components['schemas']['NotificationResponse'] | null;
11647
11744
  auth?: components['schemas']['AuthMessage'] | null;
11648
11745
  send_message?: components['schemas']['SendMessageRequest'] | null;
@@ -12453,6 +12550,41 @@ interface operations {
12453
12550
  };
12454
12551
  };
12455
12552
  };
12553
+ patch_session: {
12554
+ parameters: {
12555
+ query?: never;
12556
+ header?: never;
12557
+ path: {
12558
+ session_id: string;
12559
+ };
12560
+ cookie?: never;
12561
+ };
12562
+ requestBody: {
12563
+ content: {
12564
+ 'application/json': components['schemas']['SessionTTLPatchRequest'];
12565
+ };
12566
+ };
12567
+ responses: {
12568
+ /** @description Successful Response */
12569
+ 200: {
12570
+ headers: {
12571
+ [name: string]: unknown;
12572
+ };
12573
+ content: {
12574
+ 'application/json': components['schemas']['SessionInfoResponse'];
12575
+ };
12576
+ };
12577
+ /** @description Validation Error */
12578
+ 422: {
12579
+ headers: {
12580
+ [name: string]: unknown;
12581
+ };
12582
+ content: {
12583
+ 'application/json': components['schemas']['HTTPValidationError'];
12584
+ };
12585
+ };
12586
+ };
12587
+ };
12456
12588
  change_password: {
12457
12589
  parameters: {
12458
12590
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/client",
3
- "version": "0.3.166",
3
+ "version": "0.3.168",
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
  "main": "dist/index.cjs",