@arbidocs/client 0.3.122 → 0.3.123

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
@@ -1715,6 +1715,34 @@ interface paths {
1715
1715
  patch?: never;
1716
1716
  trace?: never;
1717
1717
  };
1718
+ '/v1/assistant/run/{response_id}/stream': {
1719
+ parameters: {
1720
+ query?: never;
1721
+ header?: never;
1722
+ path?: never;
1723
+ cookie?: never;
1724
+ };
1725
+ /**
1726
+ * Foreground (watch) a background agent run's live steps
1727
+ * @description Attach to a background run by id: replay its steps so far, then stream live.
1728
+ *
1729
+ * A scheduled/goal run accumulates its step events into the same ``resp:events``
1730
+ * machine a foreground turn uses, keyed by the run's pre-minted assistant msg id
1731
+ * (exposed as ``Task.active_response_id``). This endpoint foregrounds that stream:
1732
+ * it replays the events accumulated so far, then tails new ones until the run
1733
+ * finishes — emitting the exact same ``arbi.agent_step`` / ``response.completed``
1734
+ * frames the chat stream does, so the client reuses its normal SSE consumer.
1735
+ * Read-only; control (pause/message) is ``POST /assistant/interject``.
1736
+ */
1737
+ get: operations['watch_run'];
1738
+ put?: never;
1739
+ post?: never;
1740
+ delete?: never;
1741
+ options?: never;
1742
+ head?: never;
1743
+ patch?: never;
1744
+ trace?: never;
1745
+ };
1718
1746
  '/v1/assistant/retrieve': {
1719
1747
  parameters: {
1720
1748
  query?: never;
@@ -2280,6 +2308,56 @@ interface paths {
2280
2308
  patch?: never;
2281
2309
  trace?: never;
2282
2310
  };
2311
+ '/v1/agents/{agent_ext_id}': {
2312
+ parameters: {
2313
+ query?: never;
2314
+ header?: never;
2315
+ path?: never;
2316
+ cookie?: never;
2317
+ };
2318
+ get?: never;
2319
+ put?: never;
2320
+ post?: never;
2321
+ delete?: never;
2322
+ options?: never;
2323
+ head?: never;
2324
+ /**
2325
+ * Update Agent
2326
+ * @description Update an owned agent (currently: its avatar).
2327
+ *
2328
+ * ``Users.picture`` always existed on agents but nothing could set it — the
2329
+ * profile endpoint only mutates the caller. Ownership is checked on the RLS
2330
+ * session; the write goes through the privileged session because the agent's
2331
+ * row is not the caller's own.
2332
+ */
2333
+ patch: operations['update_agent'];
2334
+ trace?: never;
2335
+ };
2336
+ '/v1/agents/{agent_ext_id}/avatar': {
2337
+ parameters: {
2338
+ query?: never;
2339
+ header?: never;
2340
+ path?: never;
2341
+ cookie?: never;
2342
+ };
2343
+ get?: never;
2344
+ put?: never;
2345
+ /**
2346
+ * Generate Agent Avatar
2347
+ * @description Generate an avatar for an owned agent and set it as the agent's picture.
2348
+ *
2349
+ * Calls the ImageGen instrument directly — deliberately NOT the create_image
2350
+ * tool path, which is workspace/cipher-bound and stores a Docs artifact. An
2351
+ * avatar needs neither: generate, normalise to a small square WebP under the
2352
+ * 100KB picture cap, store as a data: URL on ``Users.picture``.
2353
+ */
2354
+ post: operations['generate_agent_avatar'];
2355
+ delete?: never;
2356
+ options?: never;
2357
+ head?: never;
2358
+ patch?: never;
2359
+ trace?: never;
2360
+ };
2283
2361
  '/v1/tasks': {
2284
2362
  parameters: {
2285
2363
  query?: never;
@@ -2353,6 +2431,18 @@ interface paths {
2353
2431
  /**
2354
2432
  * Run Now
2355
2433
  * @description Fire the task immediately (wake the agent / notify), without changing its schedule.
2434
+ *
2435
+ * Authorization is chosen by the task's ``auth_mode`` and resolved by the shared
2436
+ * dispatch path (``fire_task``): a tier-3 ``scheduled_permanent`` task runs via the
2437
+ * agent's standing membership; a temporary-tier task without a standing key mints
2438
+ * an agent run-session and asks the owner to authorize (reusing the
2439
+ * workspace-access-request flow), landing the task in a pending-auth state.
2440
+ *
2441
+ * When pending, the response carries the agent run-session's PUBLIC key + email so
2442
+ * the owner's client can grant a temporary, session-scoped key to it via
2443
+ * ``POST /v1/workspace/{id}/users`` (its ``session_pubkey_b64`` path) and then
2444
+ * re-trigger this endpoint — dispatch then resumes the run on that granted session.
2445
+ * No task-specific endpoint; the owner is present so this is effectively synchronous.
2356
2446
  */
2357
2447
  post: operations['run_task'];
2358
2448
  delete?: never;
@@ -2769,6 +2859,69 @@ interface paths {
2769
2859
  patch?: never;
2770
2860
  trace?: never;
2771
2861
  };
2862
+ '/v1/connectors/{vendor}/drive-folders': {
2863
+ parameters: {
2864
+ query?: never;
2865
+ header?: never;
2866
+ path?: never;
2867
+ cookie?: never;
2868
+ };
2869
+ /**
2870
+ * List the connected account's OneDrive folders for selection
2871
+ * @description Return the connected account's OneDrive folders (root + one child level).
2872
+ */
2873
+ get: operations['list_drive_folders'];
2874
+ put?: never;
2875
+ post?: never;
2876
+ delete?: never;
2877
+ options?: never;
2878
+ head?: never;
2879
+ patch?: never;
2880
+ trace?: never;
2881
+ };
2882
+ '/v1/connectors/{vendor}/enable-drive-sync': {
2883
+ parameters: {
2884
+ query?: never;
2885
+ header?: never;
2886
+ path?: never;
2887
+ cookie?: never;
2888
+ };
2889
+ get?: never;
2890
+ put?: never;
2891
+ /**
2892
+ * Enable OneDrive sync for a vendor into a target workspace
2893
+ * @description Create or update the user's DriveSync row for this vendor.
2894
+ *
2895
+ * When the target workspace or folder selection changes, the affected folders'
2896
+ * delta cursors are cleared so they re-enumerate from scratch.
2897
+ */
2898
+ post: operations['enable_drive_sync'];
2899
+ delete?: never;
2900
+ options?: never;
2901
+ head?: never;
2902
+ patch?: never;
2903
+ trace?: never;
2904
+ };
2905
+ '/v1/connectors/{vendor}/drive-sync': {
2906
+ parameters: {
2907
+ query?: never;
2908
+ header?: never;
2909
+ path?: never;
2910
+ cookie?: never;
2911
+ };
2912
+ get?: never;
2913
+ put?: never;
2914
+ /**
2915
+ * Trigger a OneDrive sync run in the background
2916
+ * @description Schedule a background drive sync. 404 if never enabled, 409 if not connected.
2917
+ */
2918
+ post: operations['trigger_drive_sync'];
2919
+ delete?: never;
2920
+ options?: never;
2921
+ head?: never;
2922
+ patch?: never;
2923
+ trace?: never;
2924
+ };
2772
2925
  '/v1/responses': {
2773
2926
  parameters: {
2774
2927
  query?: never;
@@ -2994,6 +3147,16 @@ interface components {
2994
3147
  * @description Index of the step this nests under. Set on sub-agent steps (e.g. the web_search / read_url steps a deep_research run performs) so the frontend can render them indented beneath the parent tool step that spawned the sub-agent. None (absent) for top-level steps.
2995
3148
  */
2996
3149
  parent_index?: number | null;
3150
+ /**
3151
+ * Subagent
3152
+ * @description The sub-agent handle (e.g. 'sub-2') this step belongs to. Set on every step relayed from a spawned child so the frontend can group concurrently-running sub-agents into their own live lanes, keyed by handle, instead of flattening them into the parent's timeline.
3153
+ */
3154
+ subagent?: string | null;
3155
+ /**
3156
+ * Subagent Status
3157
+ * @description Lifecycle marker for a sub-agent lane: 'running' on the spawn step (carries the child's task in `content`), 'done'/'failed' on its completion. Absent on the child's own intermediate steps. Lets the frontend show each lane's status without inspecting its rows.
3158
+ */
3159
+ subagent_status?: ('running' | 'done' | 'failed') | null;
2997
3160
  /**
2998
3161
  * Step
2999
3162
  * @description Lifecycle step. Absent (None) for tool-call steps, which carry `detail` instead.
@@ -3758,7 +3921,7 @@ interface components {
3758
3921
  * },
3759
3922
  * "MAX_CONCURRENT_REQUESTS": 256,
3760
3923
  * "MODEL_NAME": "Qwen/Qwen3-Reranker-0.6B",
3761
- * "API_TYPE": "remote",
3924
+ * "API_TYPE": "local",
3762
3925
  * "RETRIEVAL_INSTRUCTION": "Judge whether the passage contains the specific facts, figures, names, or references mentioned in the query. Only answer yes if the passage directly contains these details"
3763
3926
  * }
3764
3927
  */
@@ -3779,7 +3942,7 @@ interface components {
3779
3942
  /**
3780
3943
  * @default {
3781
3944
  * "MODEL_NAME": "Qwen/Qwen3-Embedding-0.6B",
3782
- * "API_TYPE": "remote",
3945
+ * "API_TYPE": "local",
3783
3946
  * "BATCH_SIZE": 128,
3784
3947
  * "MAX_CONCURRENT_REQUESTS": 256,
3785
3948
  * "DOCUMENT_PREFIX": "",
@@ -3985,6 +4148,34 @@ interface components {
3985
4148
  /** Token */
3986
4149
  token: string;
3987
4150
  };
4151
+ /**
4152
+ * AuthMode
4153
+ * @description How a task's agent obtains the workspace key it needs to act — a per-task,
4154
+ * least-privilege authorization choice. See ``docs/agent_scheduler_design.md`` and
4155
+ * the per-tier threat model in ``src/core/agent_headless.py``.
4156
+ *
4157
+ * ``run_now_temp`` (default, tier 1) — RUN NOW with the owner present. The agent
4158
+ * has no standing key, so the run reuses the shipped **workspace-access-request**
4159
+ * flow: the agent asks the owner, who — being online — grants immediately via
4160
+ * the ordinary ``POST /v1/workspace/{id}/users`` (a temporary, session-scoped
4161
+ * key, or permanent, their choice). **No task-specific handshake** and, for a
4162
+ * temporary grant, no durable ``WorkspaceUsers`` membership. Least privilege:
4163
+ * a compromised agent host at rest holds no standing key.
4164
+ *
4165
+ * ``scheduled_require_auth`` (tier 2) — the SAME workspace-access-request flow, but
4166
+ * the owner grants whenever they get to it: the run does not proceed until a key
4167
+ * is granted, landing in a pending-auth state (``pending_auth_request_id``)
4168
+ * rather than running unauthorized.
4169
+ *
4170
+ * ``scheduled_permanent`` (tier 3, advanced) — standing ``WorkspaceUsers``
4171
+ * membership: the server can derive the workspace key from the agent's own
4172
+ * deployment-wrapped identity at any time, owner offline. Convenient for
4173
+ * unattended recurring runs, but the agent's environment can reach the
4174
+ * workspace key whenever it likes — an explicit "I trust this agent's
4175
+ * environment" opt-in, NOT the default.
4176
+ * @enum {string}
4177
+ */
4178
+ AuthMode: 'run_now_temp' | 'scheduled_require_auth' | 'scheduled_permanent';
3988
4179
  /**
3989
4180
  * AuthResultMessage
3990
4181
  * @description Server response to authentication.
@@ -5031,6 +5222,8 @@ interface components {
5031
5222
  skill_ref?: string | null;
5032
5223
  /** Notify On Complete */
5033
5224
  notify_on_complete?: boolean | null;
5225
+ /** @default run_now_temp */
5226
+ auth_mode: components['schemas']['AuthMode'];
5034
5227
  /** Workspace Ext Id */
5035
5228
  workspace_ext_id?: string | null;
5036
5229
  /** Agent Ext Id */
@@ -5421,6 +5614,37 @@ interface components {
5421
5614
  */
5422
5615
  DEFAULT_METADATA_TAGS?: components['schemas']['TagTemplate'][];
5423
5616
  };
5617
+ /**
5618
+ * DriveSyncRead
5619
+ * @description Public shape for a DriveSync row returned by the enable-drive-sync endpoint.
5620
+ */
5621
+ DriveSyncRead: {
5622
+ /**
5623
+ * Id
5624
+ * Format: uuid
5625
+ */
5626
+ id: string;
5627
+ /** Vendor Key */
5628
+ vendor_key: string;
5629
+ /** Target Workspace Id */
5630
+ target_workspace_id: number;
5631
+ /** Enabled */
5632
+ enabled: boolean;
5633
+ /** Status */
5634
+ status: string;
5635
+ /**
5636
+ * Folders
5637
+ * @default []
5638
+ */
5639
+ folders: string[];
5640
+ /**
5641
+ * Skip Duplicates
5642
+ * @default true
5643
+ */
5644
+ skip_duplicates: boolean;
5645
+ /** Last Sync At */
5646
+ last_sync_at?: string | null;
5647
+ };
5424
5648
  /**
5425
5649
  * EmailNotificationSettings
5426
5650
  * @description Per-category email notification preferences. All default on; a master
@@ -5487,7 +5711,7 @@ interface components {
5487
5711
  /**
5488
5712
  * Api Type
5489
5713
  * @description The inference type (local or remote).
5490
- * @default remote
5714
+ * @default local
5491
5715
  * @enum {string}
5492
5716
  */
5493
5717
  API_TYPE: 'local' | 'remote';
@@ -5517,6 +5741,18 @@ interface components {
5517
5741
  */
5518
5742
  QUERY_PREFIX: string;
5519
5743
  };
5744
+ /** EnableDriveSyncRequest */
5745
+ EnableDriveSyncRequest: {
5746
+ /** Workspace Ext Id */
5747
+ workspace_ext_id: string;
5748
+ /** Folders */
5749
+ folders: string[];
5750
+ /**
5751
+ * Skip Duplicates
5752
+ * @default true
5753
+ */
5754
+ skip_duplicates: boolean;
5755
+ };
5520
5756
  /** EnableSyncRequest */
5521
5757
  EnableSyncRequest: {
5522
5758
  /** Workspace Ext Id */
@@ -5794,6 +6030,19 @@ interface components {
5794
6030
  /** Count */
5795
6031
  count?: number | null;
5796
6032
  };
6033
+ /**
6034
+ * GenerateAgentAvatarRequest
6035
+ * @description Prompt for generating an agent avatar (usually composed from the persona).
6036
+ */
6037
+ GenerateAgentAvatarRequest: {
6038
+ /** Prompt */
6039
+ prompt: string;
6040
+ };
6041
+ /** GenerateAgentAvatarResponse */
6042
+ GenerateAgentAvatarResponse: {
6043
+ /** Picture */
6044
+ picture: string;
6045
+ };
5797
6046
  /**
5798
6047
  * GenerateAnnotationsRequest
5799
6048
  * @description Request to generate AI annotations for documents using tag instructions.
@@ -5855,7 +6104,7 @@ interface components {
5855
6104
  icon: string;
5856
6105
  /**
5857
6106
  * Summary
5858
- * @description Human-readable summary (e.g. 'Table of contents: {doc-abc12345}')
6107
+ * @description Human-readable summary — names the target, never restating the label (e.g. '{doc-abc12345}')
5859
6108
  */
5860
6109
  summary?: string | null;
5861
6110
  };
@@ -6800,7 +7049,7 @@ interface components {
6800
7049
  * Type is self-descriptive, no need to parse content field.
6801
7050
  * @enum {string}
6802
7051
  */
6803
- NotificationType: 'user_message' | 'workspaceuser_added_owner' | 'workspaceuser_added_collaborator' | 'workspaceuser_added_guest' | 'workspaceuser_removed' | 'workspaceuser_updated_owner' | 'workspaceuser_updated_collaborator' | 'workspaceuser_updated_guest' | 'contact_accepted' | 'signup_reward' | 'referral_reward' | 'email_reply' | 'quota_threshold_50' | 'quota_threshold_90' | 'quota_threshold_100' | 'doc_shared' | 'workspace_access_request' | 'task_started' | 'task_completed' | 'mailbox_sync_complete' | 'activity';
7052
+ NotificationType: 'user_message' | 'workspaceuser_added_owner' | 'workspaceuser_added_collaborator' | 'workspaceuser_added_guest' | 'workspaceuser_removed' | 'workspaceuser_updated_owner' | 'workspaceuser_updated_collaborator' | 'workspaceuser_updated_guest' | 'contact_accepted' | 'signup_reward' | 'referral_reward' | 'email_reply' | 'quota_threshold_50' | 'quota_threshold_90' | 'quota_threshold_100' | 'doc_shared' | 'workspace_access_request' | 'task_started' | 'task_completed' | 'mailbox_sync_complete' | 'drive_sync_complete' | 'activity';
6804
7053
  /**
6805
7054
  * NotificationUpdate
6806
7055
  * @description Single notification update for bulk PATCH.
@@ -7505,7 +7754,7 @@ interface components {
7505
7754
  icon: string;
7506
7755
  /**
7507
7756
  * Summary
7508
- * @description Human-readable summary (e.g. 'Reading {doc-abc12345} pp. 5–10')
7757
+ * @description Human-readable summary — names the target, never restating the label (e.g. '{doc-abc12345} pp. 5–10')
7509
7758
  */
7510
7759
  summary?: string | null;
7511
7760
  };
@@ -7652,7 +7901,7 @@ interface components {
7652
7901
  /**
7653
7902
  * Api Type
7654
7903
  * @description The inference type (local or remote).
7655
- * @default remote
7904
+ * @default local
7656
7905
  * @enum {string}
7657
7906
  */
7658
7907
  API_TYPE: 'local' | 'remote';
@@ -8672,7 +8921,7 @@ interface components {
8672
8921
  icon: string;
8673
8922
  /**
8674
8923
  * Summary
8675
- * @description Human-readable summary (e.g. 'Search: "query" (hybrid)')
8924
+ * @description Human-readable summary — names the target, never restating the label (e.g. '"query" (hybrid)')
8676
8925
  */
8677
8926
  summary?: string | null;
8678
8927
  };
@@ -9214,10 +9463,21 @@ interface components {
9214
9463
  active_run_id: string | null;
9215
9464
  /** Agent Session */
9216
9465
  agent_session: string | null;
9466
+ /** Active Response Id */
9467
+ active_response_id?: string | null;
9468
+ /** Active Conversation Ext Id */
9469
+ active_conversation_ext_id?: string | null;
9217
9470
  /** Run Started At */
9218
9471
  run_started_at: string | null;
9219
9472
  /** Notify On Complete */
9220
9473
  notify_on_complete: boolean;
9474
+ auth_mode: components['schemas']['AuthMode'];
9475
+ /** Pending Auth Request Id */
9476
+ pending_auth_request_id?: string | null;
9477
+ /** Pending Auth Session Pubkey */
9478
+ pending_auth_session_pubkey?: string | null;
9479
+ /** Pending Auth Agent Email */
9480
+ pending_auth_agent_email?: string | null;
9221
9481
  /** Created By Kind */
9222
9482
  created_by_kind: string;
9223
9483
  /** Workspace Ext Id */
@@ -9524,6 +9784,15 @@ interface components {
9524
9784
  * @enum {string}
9525
9785
  */
9526
9786
  TriggerType: 'one_time' | 'recurring' | 'event';
9787
+ /**
9788
+ * UpdateAgentRequest
9789
+ * @description Mutable agent fields. Only appearance for now — identity (name/email/keys)
9790
+ * is server-managed and renames would break the derived agent email.
9791
+ */
9792
+ UpdateAgentRequest: {
9793
+ /** Picture */
9794
+ picture?: string | null;
9795
+ };
9527
9796
  /**
9528
9797
  * UpdateDocTagRequest
9529
9798
  * @description Update a doctag's note or citations. Identified by (tag_ext_id, doc_ext_id) pair.
@@ -9619,6 +9888,7 @@ interface components {
9619
9888
  /** Notify On Complete */
9620
9889
  notify_on_complete?: boolean | null;
9621
9890
  status?: components['schemas']['TaskStatus'] | null;
9891
+ auth_mode?: components['schemas']['AuthMode'] | null;
9622
9892
  task_plan?: components['schemas']['TaskPlan'] | null;
9623
9893
  };
9624
9894
  /**
@@ -9752,6 +10022,16 @@ interface components {
9752
10022
  skip_duplicates?: boolean | null;
9753
10023
  /** Auto Rename */
9754
10024
  auto_rename?: boolean | null;
10025
+ /** Drive Sync Status */
10026
+ drive_sync_status?: string | null;
10027
+ /** Drive Last Sync At */
10028
+ drive_last_sync_at?: string | null;
10029
+ /** Drive Sync Workspace Ext Id */
10030
+ drive_sync_workspace_ext_id?: string | null;
10031
+ /** Drive Sync Folders */
10032
+ drive_sync_folders?: string[] | null;
10033
+ /** Drive Needs Reconsent */
10034
+ drive_needs_reconsent?: boolean | null;
9755
10035
  };
9756
10036
  /**
9757
10037
  * UserDailyUsageResponse
@@ -10005,6 +10285,11 @@ interface components {
10005
10285
  * @default false
10006
10286
  */
10007
10287
  show_tasks: boolean;
10288
+ /**
10289
+ * Show Agent Builder
10290
+ * @default false
10291
+ */
10292
+ show_agent_builder: boolean;
10008
10293
  /** Dismissed Tips */
10009
10294
  dismissed_tips?: string[];
10010
10295
  /**
@@ -10079,6 +10364,8 @@ interface components {
10079
10364
  show_hints?: boolean | null;
10080
10365
  /** Show Tasks */
10081
10366
  show_tasks?: boolean | null;
10367
+ /** Show Agent Builder */
10368
+ show_agent_builder?: boolean | null;
10082
10369
  /** Dismissed Tips */
10083
10370
  dismissed_tips?: string[] | null;
10084
10371
  /** Use S3 Direct Upload */
@@ -12934,6 +13221,37 @@ interface operations {
12934
13221
  };
12935
13222
  };
12936
13223
  };
13224
+ watch_run: {
13225
+ parameters: {
13226
+ query?: never;
13227
+ header?: never;
13228
+ path: {
13229
+ response_id: string;
13230
+ };
13231
+ cookie?: never;
13232
+ };
13233
+ requestBody?: never;
13234
+ responses: {
13235
+ /** @description Successful Response */
13236
+ 200: {
13237
+ headers: {
13238
+ [name: string]: unknown;
13239
+ };
13240
+ content: {
13241
+ 'text/event-stream': unknown;
13242
+ };
13243
+ };
13244
+ /** @description Validation Error */
13245
+ 422: {
13246
+ headers: {
13247
+ [name: string]: unknown;
13248
+ };
13249
+ content: {
13250
+ 'application/json': components['schemas']['HTTPValidationError'];
13251
+ };
13252
+ };
13253
+ };
13254
+ };
12937
13255
  retrieve: {
12938
13256
  parameters: {
12939
13257
  query?: never;
@@ -13825,6 +14143,78 @@ interface operations {
13825
14143
  };
13826
14144
  };
13827
14145
  };
14146
+ update_agent: {
14147
+ parameters: {
14148
+ query?: never;
14149
+ header?: never;
14150
+ path: {
14151
+ /** @description Agent external id (agt-XXXXXXXX) */
14152
+ agent_ext_id: string;
14153
+ };
14154
+ cookie?: never;
14155
+ };
14156
+ requestBody: {
14157
+ content: {
14158
+ 'application/json': components['schemas']['UpdateAgentRequest'];
14159
+ };
14160
+ };
14161
+ responses: {
14162
+ /** @description Successful Response */
14163
+ 200: {
14164
+ headers: {
14165
+ [name: string]: unknown;
14166
+ };
14167
+ content: {
14168
+ 'application/json': components['schemas']['UserResponse'];
14169
+ };
14170
+ };
14171
+ /** @description Validation Error */
14172
+ 422: {
14173
+ headers: {
14174
+ [name: string]: unknown;
14175
+ };
14176
+ content: {
14177
+ 'application/json': components['schemas']['HTTPValidationError'];
14178
+ };
14179
+ };
14180
+ };
14181
+ };
14182
+ generate_agent_avatar: {
14183
+ parameters: {
14184
+ query?: never;
14185
+ header?: never;
14186
+ path: {
14187
+ /** @description Agent external id (agt-XXXXXXXX) */
14188
+ agent_ext_id: string;
14189
+ };
14190
+ cookie?: never;
14191
+ };
14192
+ requestBody: {
14193
+ content: {
14194
+ 'application/json': components['schemas']['GenerateAgentAvatarRequest'];
14195
+ };
14196
+ };
14197
+ responses: {
14198
+ /** @description Successful Response */
14199
+ 200: {
14200
+ headers: {
14201
+ [name: string]: unknown;
14202
+ };
14203
+ content: {
14204
+ 'application/json': components['schemas']['GenerateAgentAvatarResponse'];
14205
+ };
14206
+ };
14207
+ /** @description Validation Error */
14208
+ 422: {
14209
+ headers: {
14210
+ [name: string]: unknown;
14211
+ };
14212
+ content: {
14213
+ 'application/json': components['schemas']['HTTPValidationError'];
14214
+ };
14215
+ };
14216
+ };
14217
+ };
13828
14218
  list_tasks: {
13829
14219
  parameters: {
13830
14220
  query?: never;
@@ -14588,6 +14978,103 @@ interface operations {
14588
14978
  };
14589
14979
  };
14590
14980
  };
14981
+ list_drive_folders: {
14982
+ parameters: {
14983
+ query?: never;
14984
+ header?: never;
14985
+ path: {
14986
+ vendor: components['schemas']['VendorKey'];
14987
+ };
14988
+ cookie?: never;
14989
+ };
14990
+ requestBody?: never;
14991
+ responses: {
14992
+ /** @description Successful Response */
14993
+ 200: {
14994
+ headers: {
14995
+ [name: string]: unknown;
14996
+ };
14997
+ content: {
14998
+ 'application/json': components['schemas']['FolderRead'][];
14999
+ };
15000
+ };
15001
+ /** @description Validation Error */
15002
+ 422: {
15003
+ headers: {
15004
+ [name: string]: unknown;
15005
+ };
15006
+ content: {
15007
+ 'application/json': components['schemas']['HTTPValidationError'];
15008
+ };
15009
+ };
15010
+ };
15011
+ };
15012
+ enable_drive_sync: {
15013
+ parameters: {
15014
+ query?: never;
15015
+ header?: never;
15016
+ path: {
15017
+ vendor: components['schemas']['VendorKey'];
15018
+ };
15019
+ cookie?: never;
15020
+ };
15021
+ requestBody: {
15022
+ content: {
15023
+ 'application/json': components['schemas']['EnableDriveSyncRequest'];
15024
+ };
15025
+ };
15026
+ responses: {
15027
+ /** @description Successful Response */
15028
+ 200: {
15029
+ headers: {
15030
+ [name: string]: unknown;
15031
+ };
15032
+ content: {
15033
+ 'application/json': components['schemas']['DriveSyncRead'];
15034
+ };
15035
+ };
15036
+ /** @description Validation Error */
15037
+ 422: {
15038
+ headers: {
15039
+ [name: string]: unknown;
15040
+ };
15041
+ content: {
15042
+ 'application/json': components['schemas']['HTTPValidationError'];
15043
+ };
15044
+ };
15045
+ };
15046
+ };
15047
+ trigger_drive_sync: {
15048
+ parameters: {
15049
+ query?: never;
15050
+ header?: never;
15051
+ path: {
15052
+ vendor: components['schemas']['VendorKey'];
15053
+ };
15054
+ cookie?: never;
15055
+ };
15056
+ requestBody?: never;
15057
+ responses: {
15058
+ /** @description Successful Response */
15059
+ 202: {
15060
+ headers: {
15061
+ [name: string]: unknown;
15062
+ };
15063
+ content: {
15064
+ 'application/json': components['schemas']['SyncTriggerResponse'];
15065
+ };
15066
+ };
15067
+ /** @description Validation Error */
15068
+ 422: {
15069
+ headers: {
15070
+ [name: string]: unknown;
15071
+ };
15072
+ content: {
15073
+ 'application/json': components['schemas']['HTTPValidationError'];
15074
+ };
15075
+ };
15076
+ };
15077
+ };
14591
15078
  mailbox_sync_progress: {
14592
15079
  parameters: {
14593
15080
  query?: {
package/dist/index.d.ts CHANGED
@@ -1715,6 +1715,34 @@ interface paths {
1715
1715
  patch?: never;
1716
1716
  trace?: never;
1717
1717
  };
1718
+ '/v1/assistant/run/{response_id}/stream': {
1719
+ parameters: {
1720
+ query?: never;
1721
+ header?: never;
1722
+ path?: never;
1723
+ cookie?: never;
1724
+ };
1725
+ /**
1726
+ * Foreground (watch) a background agent run's live steps
1727
+ * @description Attach to a background run by id: replay its steps so far, then stream live.
1728
+ *
1729
+ * A scheduled/goal run accumulates its step events into the same ``resp:events``
1730
+ * machine a foreground turn uses, keyed by the run's pre-minted assistant msg id
1731
+ * (exposed as ``Task.active_response_id``). This endpoint foregrounds that stream:
1732
+ * it replays the events accumulated so far, then tails new ones until the run
1733
+ * finishes — emitting the exact same ``arbi.agent_step`` / ``response.completed``
1734
+ * frames the chat stream does, so the client reuses its normal SSE consumer.
1735
+ * Read-only; control (pause/message) is ``POST /assistant/interject``.
1736
+ */
1737
+ get: operations['watch_run'];
1738
+ put?: never;
1739
+ post?: never;
1740
+ delete?: never;
1741
+ options?: never;
1742
+ head?: never;
1743
+ patch?: never;
1744
+ trace?: never;
1745
+ };
1718
1746
  '/v1/assistant/retrieve': {
1719
1747
  parameters: {
1720
1748
  query?: never;
@@ -2280,6 +2308,56 @@ interface paths {
2280
2308
  patch?: never;
2281
2309
  trace?: never;
2282
2310
  };
2311
+ '/v1/agents/{agent_ext_id}': {
2312
+ parameters: {
2313
+ query?: never;
2314
+ header?: never;
2315
+ path?: never;
2316
+ cookie?: never;
2317
+ };
2318
+ get?: never;
2319
+ put?: never;
2320
+ post?: never;
2321
+ delete?: never;
2322
+ options?: never;
2323
+ head?: never;
2324
+ /**
2325
+ * Update Agent
2326
+ * @description Update an owned agent (currently: its avatar).
2327
+ *
2328
+ * ``Users.picture`` always existed on agents but nothing could set it — the
2329
+ * profile endpoint only mutates the caller. Ownership is checked on the RLS
2330
+ * session; the write goes through the privileged session because the agent's
2331
+ * row is not the caller's own.
2332
+ */
2333
+ patch: operations['update_agent'];
2334
+ trace?: never;
2335
+ };
2336
+ '/v1/agents/{agent_ext_id}/avatar': {
2337
+ parameters: {
2338
+ query?: never;
2339
+ header?: never;
2340
+ path?: never;
2341
+ cookie?: never;
2342
+ };
2343
+ get?: never;
2344
+ put?: never;
2345
+ /**
2346
+ * Generate Agent Avatar
2347
+ * @description Generate an avatar for an owned agent and set it as the agent's picture.
2348
+ *
2349
+ * Calls the ImageGen instrument directly — deliberately NOT the create_image
2350
+ * tool path, which is workspace/cipher-bound and stores a Docs artifact. An
2351
+ * avatar needs neither: generate, normalise to a small square WebP under the
2352
+ * 100KB picture cap, store as a data: URL on ``Users.picture``.
2353
+ */
2354
+ post: operations['generate_agent_avatar'];
2355
+ delete?: never;
2356
+ options?: never;
2357
+ head?: never;
2358
+ patch?: never;
2359
+ trace?: never;
2360
+ };
2283
2361
  '/v1/tasks': {
2284
2362
  parameters: {
2285
2363
  query?: never;
@@ -2353,6 +2431,18 @@ interface paths {
2353
2431
  /**
2354
2432
  * Run Now
2355
2433
  * @description Fire the task immediately (wake the agent / notify), without changing its schedule.
2434
+ *
2435
+ * Authorization is chosen by the task's ``auth_mode`` and resolved by the shared
2436
+ * dispatch path (``fire_task``): a tier-3 ``scheduled_permanent`` task runs via the
2437
+ * agent's standing membership; a temporary-tier task without a standing key mints
2438
+ * an agent run-session and asks the owner to authorize (reusing the
2439
+ * workspace-access-request flow), landing the task in a pending-auth state.
2440
+ *
2441
+ * When pending, the response carries the agent run-session's PUBLIC key + email so
2442
+ * the owner's client can grant a temporary, session-scoped key to it via
2443
+ * ``POST /v1/workspace/{id}/users`` (its ``session_pubkey_b64`` path) and then
2444
+ * re-trigger this endpoint — dispatch then resumes the run on that granted session.
2445
+ * No task-specific endpoint; the owner is present so this is effectively synchronous.
2356
2446
  */
2357
2447
  post: operations['run_task'];
2358
2448
  delete?: never;
@@ -2769,6 +2859,69 @@ interface paths {
2769
2859
  patch?: never;
2770
2860
  trace?: never;
2771
2861
  };
2862
+ '/v1/connectors/{vendor}/drive-folders': {
2863
+ parameters: {
2864
+ query?: never;
2865
+ header?: never;
2866
+ path?: never;
2867
+ cookie?: never;
2868
+ };
2869
+ /**
2870
+ * List the connected account's OneDrive folders for selection
2871
+ * @description Return the connected account's OneDrive folders (root + one child level).
2872
+ */
2873
+ get: operations['list_drive_folders'];
2874
+ put?: never;
2875
+ post?: never;
2876
+ delete?: never;
2877
+ options?: never;
2878
+ head?: never;
2879
+ patch?: never;
2880
+ trace?: never;
2881
+ };
2882
+ '/v1/connectors/{vendor}/enable-drive-sync': {
2883
+ parameters: {
2884
+ query?: never;
2885
+ header?: never;
2886
+ path?: never;
2887
+ cookie?: never;
2888
+ };
2889
+ get?: never;
2890
+ put?: never;
2891
+ /**
2892
+ * Enable OneDrive sync for a vendor into a target workspace
2893
+ * @description Create or update the user's DriveSync row for this vendor.
2894
+ *
2895
+ * When the target workspace or folder selection changes, the affected folders'
2896
+ * delta cursors are cleared so they re-enumerate from scratch.
2897
+ */
2898
+ post: operations['enable_drive_sync'];
2899
+ delete?: never;
2900
+ options?: never;
2901
+ head?: never;
2902
+ patch?: never;
2903
+ trace?: never;
2904
+ };
2905
+ '/v1/connectors/{vendor}/drive-sync': {
2906
+ parameters: {
2907
+ query?: never;
2908
+ header?: never;
2909
+ path?: never;
2910
+ cookie?: never;
2911
+ };
2912
+ get?: never;
2913
+ put?: never;
2914
+ /**
2915
+ * Trigger a OneDrive sync run in the background
2916
+ * @description Schedule a background drive sync. 404 if never enabled, 409 if not connected.
2917
+ */
2918
+ post: operations['trigger_drive_sync'];
2919
+ delete?: never;
2920
+ options?: never;
2921
+ head?: never;
2922
+ patch?: never;
2923
+ trace?: never;
2924
+ };
2772
2925
  '/v1/responses': {
2773
2926
  parameters: {
2774
2927
  query?: never;
@@ -2994,6 +3147,16 @@ interface components {
2994
3147
  * @description Index of the step this nests under. Set on sub-agent steps (e.g. the web_search / read_url steps a deep_research run performs) so the frontend can render them indented beneath the parent tool step that spawned the sub-agent. None (absent) for top-level steps.
2995
3148
  */
2996
3149
  parent_index?: number | null;
3150
+ /**
3151
+ * Subagent
3152
+ * @description The sub-agent handle (e.g. 'sub-2') this step belongs to. Set on every step relayed from a spawned child so the frontend can group concurrently-running sub-agents into their own live lanes, keyed by handle, instead of flattening them into the parent's timeline.
3153
+ */
3154
+ subagent?: string | null;
3155
+ /**
3156
+ * Subagent Status
3157
+ * @description Lifecycle marker for a sub-agent lane: 'running' on the spawn step (carries the child's task in `content`), 'done'/'failed' on its completion. Absent on the child's own intermediate steps. Lets the frontend show each lane's status without inspecting its rows.
3158
+ */
3159
+ subagent_status?: ('running' | 'done' | 'failed') | null;
2997
3160
  /**
2998
3161
  * Step
2999
3162
  * @description Lifecycle step. Absent (None) for tool-call steps, which carry `detail` instead.
@@ -3758,7 +3921,7 @@ interface components {
3758
3921
  * },
3759
3922
  * "MAX_CONCURRENT_REQUESTS": 256,
3760
3923
  * "MODEL_NAME": "Qwen/Qwen3-Reranker-0.6B",
3761
- * "API_TYPE": "remote",
3924
+ * "API_TYPE": "local",
3762
3925
  * "RETRIEVAL_INSTRUCTION": "Judge whether the passage contains the specific facts, figures, names, or references mentioned in the query. Only answer yes if the passage directly contains these details"
3763
3926
  * }
3764
3927
  */
@@ -3779,7 +3942,7 @@ interface components {
3779
3942
  /**
3780
3943
  * @default {
3781
3944
  * "MODEL_NAME": "Qwen/Qwen3-Embedding-0.6B",
3782
- * "API_TYPE": "remote",
3945
+ * "API_TYPE": "local",
3783
3946
  * "BATCH_SIZE": 128,
3784
3947
  * "MAX_CONCURRENT_REQUESTS": 256,
3785
3948
  * "DOCUMENT_PREFIX": "",
@@ -3985,6 +4148,34 @@ interface components {
3985
4148
  /** Token */
3986
4149
  token: string;
3987
4150
  };
4151
+ /**
4152
+ * AuthMode
4153
+ * @description How a task's agent obtains the workspace key it needs to act — a per-task,
4154
+ * least-privilege authorization choice. See ``docs/agent_scheduler_design.md`` and
4155
+ * the per-tier threat model in ``src/core/agent_headless.py``.
4156
+ *
4157
+ * ``run_now_temp`` (default, tier 1) — RUN NOW with the owner present. The agent
4158
+ * has no standing key, so the run reuses the shipped **workspace-access-request**
4159
+ * flow: the agent asks the owner, who — being online — grants immediately via
4160
+ * the ordinary ``POST /v1/workspace/{id}/users`` (a temporary, session-scoped
4161
+ * key, or permanent, their choice). **No task-specific handshake** and, for a
4162
+ * temporary grant, no durable ``WorkspaceUsers`` membership. Least privilege:
4163
+ * a compromised agent host at rest holds no standing key.
4164
+ *
4165
+ * ``scheduled_require_auth`` (tier 2) — the SAME workspace-access-request flow, but
4166
+ * the owner grants whenever they get to it: the run does not proceed until a key
4167
+ * is granted, landing in a pending-auth state (``pending_auth_request_id``)
4168
+ * rather than running unauthorized.
4169
+ *
4170
+ * ``scheduled_permanent`` (tier 3, advanced) — standing ``WorkspaceUsers``
4171
+ * membership: the server can derive the workspace key from the agent's own
4172
+ * deployment-wrapped identity at any time, owner offline. Convenient for
4173
+ * unattended recurring runs, but the agent's environment can reach the
4174
+ * workspace key whenever it likes — an explicit "I trust this agent's
4175
+ * environment" opt-in, NOT the default.
4176
+ * @enum {string}
4177
+ */
4178
+ AuthMode: 'run_now_temp' | 'scheduled_require_auth' | 'scheduled_permanent';
3988
4179
  /**
3989
4180
  * AuthResultMessage
3990
4181
  * @description Server response to authentication.
@@ -5031,6 +5222,8 @@ interface components {
5031
5222
  skill_ref?: string | null;
5032
5223
  /** Notify On Complete */
5033
5224
  notify_on_complete?: boolean | null;
5225
+ /** @default run_now_temp */
5226
+ auth_mode: components['schemas']['AuthMode'];
5034
5227
  /** Workspace Ext Id */
5035
5228
  workspace_ext_id?: string | null;
5036
5229
  /** Agent Ext Id */
@@ -5421,6 +5614,37 @@ interface components {
5421
5614
  */
5422
5615
  DEFAULT_METADATA_TAGS?: components['schemas']['TagTemplate'][];
5423
5616
  };
5617
+ /**
5618
+ * DriveSyncRead
5619
+ * @description Public shape for a DriveSync row returned by the enable-drive-sync endpoint.
5620
+ */
5621
+ DriveSyncRead: {
5622
+ /**
5623
+ * Id
5624
+ * Format: uuid
5625
+ */
5626
+ id: string;
5627
+ /** Vendor Key */
5628
+ vendor_key: string;
5629
+ /** Target Workspace Id */
5630
+ target_workspace_id: number;
5631
+ /** Enabled */
5632
+ enabled: boolean;
5633
+ /** Status */
5634
+ status: string;
5635
+ /**
5636
+ * Folders
5637
+ * @default []
5638
+ */
5639
+ folders: string[];
5640
+ /**
5641
+ * Skip Duplicates
5642
+ * @default true
5643
+ */
5644
+ skip_duplicates: boolean;
5645
+ /** Last Sync At */
5646
+ last_sync_at?: string | null;
5647
+ };
5424
5648
  /**
5425
5649
  * EmailNotificationSettings
5426
5650
  * @description Per-category email notification preferences. All default on; a master
@@ -5487,7 +5711,7 @@ interface components {
5487
5711
  /**
5488
5712
  * Api Type
5489
5713
  * @description The inference type (local or remote).
5490
- * @default remote
5714
+ * @default local
5491
5715
  * @enum {string}
5492
5716
  */
5493
5717
  API_TYPE: 'local' | 'remote';
@@ -5517,6 +5741,18 @@ interface components {
5517
5741
  */
5518
5742
  QUERY_PREFIX: string;
5519
5743
  };
5744
+ /** EnableDriveSyncRequest */
5745
+ EnableDriveSyncRequest: {
5746
+ /** Workspace Ext Id */
5747
+ workspace_ext_id: string;
5748
+ /** Folders */
5749
+ folders: string[];
5750
+ /**
5751
+ * Skip Duplicates
5752
+ * @default true
5753
+ */
5754
+ skip_duplicates: boolean;
5755
+ };
5520
5756
  /** EnableSyncRequest */
5521
5757
  EnableSyncRequest: {
5522
5758
  /** Workspace Ext Id */
@@ -5794,6 +6030,19 @@ interface components {
5794
6030
  /** Count */
5795
6031
  count?: number | null;
5796
6032
  };
6033
+ /**
6034
+ * GenerateAgentAvatarRequest
6035
+ * @description Prompt for generating an agent avatar (usually composed from the persona).
6036
+ */
6037
+ GenerateAgentAvatarRequest: {
6038
+ /** Prompt */
6039
+ prompt: string;
6040
+ };
6041
+ /** GenerateAgentAvatarResponse */
6042
+ GenerateAgentAvatarResponse: {
6043
+ /** Picture */
6044
+ picture: string;
6045
+ };
5797
6046
  /**
5798
6047
  * GenerateAnnotationsRequest
5799
6048
  * @description Request to generate AI annotations for documents using tag instructions.
@@ -5855,7 +6104,7 @@ interface components {
5855
6104
  icon: string;
5856
6105
  /**
5857
6106
  * Summary
5858
- * @description Human-readable summary (e.g. 'Table of contents: {doc-abc12345}')
6107
+ * @description Human-readable summary — names the target, never restating the label (e.g. '{doc-abc12345}')
5859
6108
  */
5860
6109
  summary?: string | null;
5861
6110
  };
@@ -6800,7 +7049,7 @@ interface components {
6800
7049
  * Type is self-descriptive, no need to parse content field.
6801
7050
  * @enum {string}
6802
7051
  */
6803
- NotificationType: 'user_message' | 'workspaceuser_added_owner' | 'workspaceuser_added_collaborator' | 'workspaceuser_added_guest' | 'workspaceuser_removed' | 'workspaceuser_updated_owner' | 'workspaceuser_updated_collaborator' | 'workspaceuser_updated_guest' | 'contact_accepted' | 'signup_reward' | 'referral_reward' | 'email_reply' | 'quota_threshold_50' | 'quota_threshold_90' | 'quota_threshold_100' | 'doc_shared' | 'workspace_access_request' | 'task_started' | 'task_completed' | 'mailbox_sync_complete' | 'activity';
7052
+ NotificationType: 'user_message' | 'workspaceuser_added_owner' | 'workspaceuser_added_collaborator' | 'workspaceuser_added_guest' | 'workspaceuser_removed' | 'workspaceuser_updated_owner' | 'workspaceuser_updated_collaborator' | 'workspaceuser_updated_guest' | 'contact_accepted' | 'signup_reward' | 'referral_reward' | 'email_reply' | 'quota_threshold_50' | 'quota_threshold_90' | 'quota_threshold_100' | 'doc_shared' | 'workspace_access_request' | 'task_started' | 'task_completed' | 'mailbox_sync_complete' | 'drive_sync_complete' | 'activity';
6804
7053
  /**
6805
7054
  * NotificationUpdate
6806
7055
  * @description Single notification update for bulk PATCH.
@@ -7505,7 +7754,7 @@ interface components {
7505
7754
  icon: string;
7506
7755
  /**
7507
7756
  * Summary
7508
- * @description Human-readable summary (e.g. 'Reading {doc-abc12345} pp. 5–10')
7757
+ * @description Human-readable summary — names the target, never restating the label (e.g. '{doc-abc12345} pp. 5–10')
7509
7758
  */
7510
7759
  summary?: string | null;
7511
7760
  };
@@ -7652,7 +7901,7 @@ interface components {
7652
7901
  /**
7653
7902
  * Api Type
7654
7903
  * @description The inference type (local or remote).
7655
- * @default remote
7904
+ * @default local
7656
7905
  * @enum {string}
7657
7906
  */
7658
7907
  API_TYPE: 'local' | 'remote';
@@ -8672,7 +8921,7 @@ interface components {
8672
8921
  icon: string;
8673
8922
  /**
8674
8923
  * Summary
8675
- * @description Human-readable summary (e.g. 'Search: "query" (hybrid)')
8924
+ * @description Human-readable summary — names the target, never restating the label (e.g. '"query" (hybrid)')
8676
8925
  */
8677
8926
  summary?: string | null;
8678
8927
  };
@@ -9214,10 +9463,21 @@ interface components {
9214
9463
  active_run_id: string | null;
9215
9464
  /** Agent Session */
9216
9465
  agent_session: string | null;
9466
+ /** Active Response Id */
9467
+ active_response_id?: string | null;
9468
+ /** Active Conversation Ext Id */
9469
+ active_conversation_ext_id?: string | null;
9217
9470
  /** Run Started At */
9218
9471
  run_started_at: string | null;
9219
9472
  /** Notify On Complete */
9220
9473
  notify_on_complete: boolean;
9474
+ auth_mode: components['schemas']['AuthMode'];
9475
+ /** Pending Auth Request Id */
9476
+ pending_auth_request_id?: string | null;
9477
+ /** Pending Auth Session Pubkey */
9478
+ pending_auth_session_pubkey?: string | null;
9479
+ /** Pending Auth Agent Email */
9480
+ pending_auth_agent_email?: string | null;
9221
9481
  /** Created By Kind */
9222
9482
  created_by_kind: string;
9223
9483
  /** Workspace Ext Id */
@@ -9524,6 +9784,15 @@ interface components {
9524
9784
  * @enum {string}
9525
9785
  */
9526
9786
  TriggerType: 'one_time' | 'recurring' | 'event';
9787
+ /**
9788
+ * UpdateAgentRequest
9789
+ * @description Mutable agent fields. Only appearance for now — identity (name/email/keys)
9790
+ * is server-managed and renames would break the derived agent email.
9791
+ */
9792
+ UpdateAgentRequest: {
9793
+ /** Picture */
9794
+ picture?: string | null;
9795
+ };
9527
9796
  /**
9528
9797
  * UpdateDocTagRequest
9529
9798
  * @description Update a doctag's note or citations. Identified by (tag_ext_id, doc_ext_id) pair.
@@ -9619,6 +9888,7 @@ interface components {
9619
9888
  /** Notify On Complete */
9620
9889
  notify_on_complete?: boolean | null;
9621
9890
  status?: components['schemas']['TaskStatus'] | null;
9891
+ auth_mode?: components['schemas']['AuthMode'] | null;
9622
9892
  task_plan?: components['schemas']['TaskPlan'] | null;
9623
9893
  };
9624
9894
  /**
@@ -9752,6 +10022,16 @@ interface components {
9752
10022
  skip_duplicates?: boolean | null;
9753
10023
  /** Auto Rename */
9754
10024
  auto_rename?: boolean | null;
10025
+ /** Drive Sync Status */
10026
+ drive_sync_status?: string | null;
10027
+ /** Drive Last Sync At */
10028
+ drive_last_sync_at?: string | null;
10029
+ /** Drive Sync Workspace Ext Id */
10030
+ drive_sync_workspace_ext_id?: string | null;
10031
+ /** Drive Sync Folders */
10032
+ drive_sync_folders?: string[] | null;
10033
+ /** Drive Needs Reconsent */
10034
+ drive_needs_reconsent?: boolean | null;
9755
10035
  };
9756
10036
  /**
9757
10037
  * UserDailyUsageResponse
@@ -10005,6 +10285,11 @@ interface components {
10005
10285
  * @default false
10006
10286
  */
10007
10287
  show_tasks: boolean;
10288
+ /**
10289
+ * Show Agent Builder
10290
+ * @default false
10291
+ */
10292
+ show_agent_builder: boolean;
10008
10293
  /** Dismissed Tips */
10009
10294
  dismissed_tips?: string[];
10010
10295
  /**
@@ -10079,6 +10364,8 @@ interface components {
10079
10364
  show_hints?: boolean | null;
10080
10365
  /** Show Tasks */
10081
10366
  show_tasks?: boolean | null;
10367
+ /** Show Agent Builder */
10368
+ show_agent_builder?: boolean | null;
10082
10369
  /** Dismissed Tips */
10083
10370
  dismissed_tips?: string[] | null;
10084
10371
  /** Use S3 Direct Upload */
@@ -12934,6 +13221,37 @@ interface operations {
12934
13221
  };
12935
13222
  };
12936
13223
  };
13224
+ watch_run: {
13225
+ parameters: {
13226
+ query?: never;
13227
+ header?: never;
13228
+ path: {
13229
+ response_id: string;
13230
+ };
13231
+ cookie?: never;
13232
+ };
13233
+ requestBody?: never;
13234
+ responses: {
13235
+ /** @description Successful Response */
13236
+ 200: {
13237
+ headers: {
13238
+ [name: string]: unknown;
13239
+ };
13240
+ content: {
13241
+ 'text/event-stream': unknown;
13242
+ };
13243
+ };
13244
+ /** @description Validation Error */
13245
+ 422: {
13246
+ headers: {
13247
+ [name: string]: unknown;
13248
+ };
13249
+ content: {
13250
+ 'application/json': components['schemas']['HTTPValidationError'];
13251
+ };
13252
+ };
13253
+ };
13254
+ };
12937
13255
  retrieve: {
12938
13256
  parameters: {
12939
13257
  query?: never;
@@ -13825,6 +14143,78 @@ interface operations {
13825
14143
  };
13826
14144
  };
13827
14145
  };
14146
+ update_agent: {
14147
+ parameters: {
14148
+ query?: never;
14149
+ header?: never;
14150
+ path: {
14151
+ /** @description Agent external id (agt-XXXXXXXX) */
14152
+ agent_ext_id: string;
14153
+ };
14154
+ cookie?: never;
14155
+ };
14156
+ requestBody: {
14157
+ content: {
14158
+ 'application/json': components['schemas']['UpdateAgentRequest'];
14159
+ };
14160
+ };
14161
+ responses: {
14162
+ /** @description Successful Response */
14163
+ 200: {
14164
+ headers: {
14165
+ [name: string]: unknown;
14166
+ };
14167
+ content: {
14168
+ 'application/json': components['schemas']['UserResponse'];
14169
+ };
14170
+ };
14171
+ /** @description Validation Error */
14172
+ 422: {
14173
+ headers: {
14174
+ [name: string]: unknown;
14175
+ };
14176
+ content: {
14177
+ 'application/json': components['schemas']['HTTPValidationError'];
14178
+ };
14179
+ };
14180
+ };
14181
+ };
14182
+ generate_agent_avatar: {
14183
+ parameters: {
14184
+ query?: never;
14185
+ header?: never;
14186
+ path: {
14187
+ /** @description Agent external id (agt-XXXXXXXX) */
14188
+ agent_ext_id: string;
14189
+ };
14190
+ cookie?: never;
14191
+ };
14192
+ requestBody: {
14193
+ content: {
14194
+ 'application/json': components['schemas']['GenerateAgentAvatarRequest'];
14195
+ };
14196
+ };
14197
+ responses: {
14198
+ /** @description Successful Response */
14199
+ 200: {
14200
+ headers: {
14201
+ [name: string]: unknown;
14202
+ };
14203
+ content: {
14204
+ 'application/json': components['schemas']['GenerateAgentAvatarResponse'];
14205
+ };
14206
+ };
14207
+ /** @description Validation Error */
14208
+ 422: {
14209
+ headers: {
14210
+ [name: string]: unknown;
14211
+ };
14212
+ content: {
14213
+ 'application/json': components['schemas']['HTTPValidationError'];
14214
+ };
14215
+ };
14216
+ };
14217
+ };
13828
14218
  list_tasks: {
13829
14219
  parameters: {
13830
14220
  query?: never;
@@ -14588,6 +14978,103 @@ interface operations {
14588
14978
  };
14589
14979
  };
14590
14980
  };
14981
+ list_drive_folders: {
14982
+ parameters: {
14983
+ query?: never;
14984
+ header?: never;
14985
+ path: {
14986
+ vendor: components['schemas']['VendorKey'];
14987
+ };
14988
+ cookie?: never;
14989
+ };
14990
+ requestBody?: never;
14991
+ responses: {
14992
+ /** @description Successful Response */
14993
+ 200: {
14994
+ headers: {
14995
+ [name: string]: unknown;
14996
+ };
14997
+ content: {
14998
+ 'application/json': components['schemas']['FolderRead'][];
14999
+ };
15000
+ };
15001
+ /** @description Validation Error */
15002
+ 422: {
15003
+ headers: {
15004
+ [name: string]: unknown;
15005
+ };
15006
+ content: {
15007
+ 'application/json': components['schemas']['HTTPValidationError'];
15008
+ };
15009
+ };
15010
+ };
15011
+ };
15012
+ enable_drive_sync: {
15013
+ parameters: {
15014
+ query?: never;
15015
+ header?: never;
15016
+ path: {
15017
+ vendor: components['schemas']['VendorKey'];
15018
+ };
15019
+ cookie?: never;
15020
+ };
15021
+ requestBody: {
15022
+ content: {
15023
+ 'application/json': components['schemas']['EnableDriveSyncRequest'];
15024
+ };
15025
+ };
15026
+ responses: {
15027
+ /** @description Successful Response */
15028
+ 200: {
15029
+ headers: {
15030
+ [name: string]: unknown;
15031
+ };
15032
+ content: {
15033
+ 'application/json': components['schemas']['DriveSyncRead'];
15034
+ };
15035
+ };
15036
+ /** @description Validation Error */
15037
+ 422: {
15038
+ headers: {
15039
+ [name: string]: unknown;
15040
+ };
15041
+ content: {
15042
+ 'application/json': components['schemas']['HTTPValidationError'];
15043
+ };
15044
+ };
15045
+ };
15046
+ };
15047
+ trigger_drive_sync: {
15048
+ parameters: {
15049
+ query?: never;
15050
+ header?: never;
15051
+ path: {
15052
+ vendor: components['schemas']['VendorKey'];
15053
+ };
15054
+ cookie?: never;
15055
+ };
15056
+ requestBody?: never;
15057
+ responses: {
15058
+ /** @description Successful Response */
15059
+ 202: {
15060
+ headers: {
15061
+ [name: string]: unknown;
15062
+ };
15063
+ content: {
15064
+ 'application/json': components['schemas']['SyncTriggerResponse'];
15065
+ };
15066
+ };
15067
+ /** @description Validation Error */
15068
+ 422: {
15069
+ headers: {
15070
+ [name: string]: unknown;
15071
+ };
15072
+ content: {
15073
+ 'application/json': components['schemas']['HTTPValidationError'];
15074
+ };
15075
+ };
15076
+ };
15077
+ };
14591
15078
  mailbox_sync_progress: {
14592
15079
  parameters: {
14593
15080
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/client",
3
- "version": "0.3.122",
3
+ "version": "0.3.123",
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",