@arbidocs/client 0.3.123 → 0.3.125

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
@@ -2879,6 +2879,53 @@ interface paths {
2879
2879
  patch?: never;
2880
2880
  trace?: never;
2881
2881
  };
2882
+ '/v1/connectors/{vendor}/drive-folder-doc-count': {
2883
+ parameters: {
2884
+ query?: never;
2885
+ header?: never;
2886
+ path?: never;
2887
+ cookie?: never;
2888
+ };
2889
+ /**
2890
+ * Count the documents that syncing a OneDrive folder would import (recursive)
2891
+ * @description Return how many documents selecting ``item_id`` would import (files, recursive).
2892
+ *
2893
+ * Powers the "(N)" next to each folder in the picker: unlike Graph's ``childCount``
2894
+ * (immediate files + subfolders), this is the full recursive count of importable
2895
+ * files — what actually lands in the workspace when the folder is synced.
2896
+ */
2897
+ get: operations['drive_folder_doc_count'];
2898
+ put?: never;
2899
+ post?: never;
2900
+ delete?: never;
2901
+ options?: never;
2902
+ head?: never;
2903
+ patch?: never;
2904
+ trace?: never;
2905
+ };
2906
+ '/v1/connectors/{vendor}/drive-folder-children': {
2907
+ parameters: {
2908
+ query?: never;
2909
+ header?: never;
2910
+ path?: never;
2911
+ cookie?: never;
2912
+ };
2913
+ /**
2914
+ * List the immediate subfolders of a OneDrive folder (lazy tree browsing)
2915
+ * @description Return the immediate subfolders of ``item_id`` ("root" or a folder item id).
2916
+ *
2917
+ * Backs the expandable folder-tree picker: the UI fetches one level at a time as
2918
+ * the user drills in, so a large drive never enumerates the whole tree up front.
2919
+ */
2920
+ get: operations['drive_folder_children'];
2921
+ put?: never;
2922
+ post?: never;
2923
+ delete?: never;
2924
+ options?: never;
2925
+ head?: never;
2926
+ patch?: never;
2927
+ trace?: never;
2928
+ };
2882
2929
  '/v1/connectors/{vendor}/enable-drive-sync': {
2883
2930
  parameters: {
2884
2931
  query?: never;
@@ -2922,6 +2969,74 @@ interface paths {
2922
2969
  patch?: never;
2923
2970
  trace?: never;
2924
2971
  };
2972
+ '/v1/connectors/{vendor}/drive-sync-estimate': {
2973
+ parameters: {
2974
+ query?: never;
2975
+ header?: never;
2976
+ path?: never;
2977
+ cookie?: never;
2978
+ };
2979
+ /**
2980
+ * Preview how many documents the next OneDrive sync would import
2981
+ * @description Best-effort count of new/changed OneDrive files the next Sync now would pull.
2982
+ *
2983
+ * Advisory only: any failure (not connected, token not bridged, provider error)
2984
+ * returns ``estimated_count=None`` with a 200 so the UI degrades quietly instead
2985
+ * of surfacing an error. 404 only when drive sync was never enabled.
2986
+ */
2987
+ get: operations['drive_sync_estimate'];
2988
+ put?: never;
2989
+ post?: never;
2990
+ delete?: never;
2991
+ options?: never;
2992
+ head?: never;
2993
+ patch?: never;
2994
+ trace?: never;
2995
+ };
2996
+ '/v1/connectors/{vendor}/drive-sync-progress': {
2997
+ parameters: {
2998
+ query?: never;
2999
+ header?: never;
3000
+ path?: never;
3001
+ cookie?: never;
3002
+ };
3003
+ /**
3004
+ * Live progress of a running OneDrive sync
3005
+ * @description Current progress for this vendor's drive sync.
3006
+ *
3007
+ * ``running`` is False when nothing is in flight (no progress marker in Redis).
3008
+ */
3009
+ get: operations['drive_sync_progress'];
3010
+ put?: never;
3011
+ post?: never;
3012
+ delete?: never;
3013
+ options?: never;
3014
+ head?: never;
3015
+ patch?: never;
3016
+ trace?: never;
3017
+ };
3018
+ '/v1/connectors/{vendor}/drive-sync/cancel': {
3019
+ parameters: {
3020
+ query?: never;
3021
+ header?: never;
3022
+ path?: never;
3023
+ cookie?: never;
3024
+ };
3025
+ get?: never;
3026
+ put?: never;
3027
+ /**
3028
+ * Request cancellation of a running OneDrive sync
3029
+ * @description Ask a running drive sync to stop at the next document boundary. Idempotent.
3030
+ *
3031
+ * Already-imported documents are kept; the run simply stops fetching more.
3032
+ */
3033
+ post: operations['cancel_drive_sync'];
3034
+ delete?: never;
3035
+ options?: never;
3036
+ head?: never;
3037
+ patch?: never;
3038
+ trace?: never;
3039
+ };
2925
3040
  '/v1/responses': {
2926
3041
  parameters: {
2927
3042
  query?: never;
@@ -3921,7 +4036,7 @@ interface components {
3921
4036
  * },
3922
4037
  * "MAX_CONCURRENT_REQUESTS": 256,
3923
4038
  * "MODEL_NAME": "Qwen/Qwen3-Reranker-0.6B",
3924
- * "API_TYPE": "local",
4039
+ * "API_TYPE": "remote",
3925
4040
  * "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"
3926
4041
  * }
3927
4042
  */
@@ -3942,7 +4057,7 @@ interface components {
3942
4057
  /**
3943
4058
  * @default {
3944
4059
  * "MODEL_NAME": "Qwen/Qwen3-Embedding-0.6B",
3945
- * "API_TYPE": "local",
4060
+ * "API_TYPE": "remote",
3946
4061
  * "BATCH_SIZE": 128,
3947
4062
  * "MAX_CONCURRENT_REQUESTS": 256,
3948
4063
  * "DOCUMENT_PREFIX": "",
@@ -4761,6 +4876,8 @@ interface components {
4761
4876
  last_sync_at?: string | null;
4762
4877
  /** Backfill Window */
4763
4878
  backfill_window?: number | null;
4879
+ /** Backfill Since */
4880
+ backfill_since?: string | null;
4764
4881
  /**
4765
4882
  * Folders
4766
4883
  * @default []
@@ -5289,6 +5406,42 @@ interface components {
5289
5406
  /** Content Type */
5290
5407
  content_type?: string | null;
5291
5408
  };
5409
+ /**
5410
+ * DeferredInterjectionEvent
5411
+ * @description A steering message that arrived too late to steer — owed a new turn.
5412
+ *
5413
+ * Emitted when input reaches the agent after it has already committed to an
5414
+ * answer. Folding it into that turn would regenerate from the steering message
5415
+ * and lose the deliverable, so the turn finalizes intact and the message is
5416
+ * handed back here.
5417
+ *
5418
+ * The client should submit it as a NEW turn (a normal message), exactly as if
5419
+ * the user had sent it after the turn ended. It is not a step and not part of
5420
+ * the finished turn. It has to travel on an event because the run's Redis queue
5421
+ * is deleted at teardown, so anything left there is destroyed.
5422
+ *
5423
+ * Example:
5424
+ * {"type": "arbi.deferred_interjection",
5425
+ * "message": "wait, also summarize the risks"}
5426
+ */
5427
+ DeferredInterjectionEvent: {
5428
+ /**
5429
+ * T
5430
+ * @description Seconds elapsed since stream start.
5431
+ */
5432
+ t?: number | null;
5433
+ /**
5434
+ * Type
5435
+ * @default arbi.deferred_interjection
5436
+ * @constant
5437
+ */
5438
+ type: 'arbi.deferred_interjection';
5439
+ /**
5440
+ * Message
5441
+ * @description The user's text, to be submitted as a new turn
5442
+ */
5443
+ message: string;
5444
+ };
5292
5445
  /**
5293
5446
  * DeleteAgentsRequest
5294
5447
  * @description Request to delete agents by external ID.
@@ -5614,6 +5767,40 @@ interface components {
5614
5767
  */
5615
5768
  DEFAULT_METADATA_TAGS?: components['schemas']['TagTemplate'][];
5616
5769
  };
5770
+ /**
5771
+ * DriveFolderDocCountResponse
5772
+ * @description Recursive count of importable documents under a single OneDrive folder.
5773
+ */
5774
+ DriveFolderDocCountResponse: {
5775
+ /** Count */
5776
+ count: number;
5777
+ };
5778
+ /** DriveSyncEstimateResponse */
5779
+ DriveSyncEstimateResponse: {
5780
+ /** Estimated Count */
5781
+ estimated_count?: number | null;
5782
+ };
5783
+ /**
5784
+ * DriveSyncProgressResponse
5785
+ * @description Live progress of a running OneDrive sync for this vendor.
5786
+ */
5787
+ DriveSyncProgressResponse: {
5788
+ /**
5789
+ * Running
5790
+ * @default false
5791
+ */
5792
+ running: boolean;
5793
+ /** Phase */
5794
+ phase?: string | null;
5795
+ /**
5796
+ * Processed
5797
+ * @default 0
5798
+ */
5799
+ processed: number;
5800
+ /** Total */
5801
+ total?: number | null;
5802
+ summary?: components['schemas']['DriveSyncSummary'] | null;
5803
+ };
5617
5804
  /**
5618
5805
  * DriveSyncRead
5619
5806
  * @description Public shape for a DriveSync row returned by the enable-drive-sync endpoint.
@@ -5639,12 +5826,55 @@ interface components {
5639
5826
  folders: string[];
5640
5827
  /**
5641
5828
  * Skip Duplicates
5642
- * @default true
5829
+ * @default false
5643
5830
  */
5644
5831
  skip_duplicates: boolean;
5832
+ /**
5833
+ * Auto Rename
5834
+ * @default false
5835
+ */
5836
+ auto_rename: boolean;
5837
+ /**
5838
+ * Shared
5839
+ * @default false
5840
+ */
5841
+ shared: boolean;
5645
5842
  /** Last Sync At */
5646
5843
  last_sync_at?: string | null;
5647
5844
  };
5845
+ /**
5846
+ * DriveSyncSkippedFile
5847
+ * @description A file a finished run tried but couldn't import, with the reason why.
5848
+ */
5849
+ DriveSyncSkippedFile: {
5850
+ /** Name */
5851
+ name: string;
5852
+ /** Reason */
5853
+ reason: string;
5854
+ };
5855
+ /**
5856
+ * DriveSyncSummary
5857
+ * @description Outcome of the most recently finished run, for a one-shot completion toast.
5858
+ */
5859
+ DriveSyncSummary: {
5860
+ /** Finished At */
5861
+ finished_at: string;
5862
+ /**
5863
+ * Ingested
5864
+ * @default 0
5865
+ */
5866
+ ingested: number;
5867
+ /**
5868
+ * Attempted
5869
+ * @default 0
5870
+ */
5871
+ attempted: number;
5872
+ /**
5873
+ * Skipped
5874
+ * @default []
5875
+ */
5876
+ skipped: components['schemas']['DriveSyncSkippedFile'][];
5877
+ };
5648
5878
  /**
5649
5879
  * EmailNotificationSettings
5650
5880
  * @description Per-category email notification preferences. All default on; a master
@@ -5711,7 +5941,7 @@ interface components {
5711
5941
  /**
5712
5942
  * Api Type
5713
5943
  * @description The inference type (local or remote).
5714
- * @default local
5944
+ * @default remote
5715
5945
  * @enum {string}
5716
5946
  */
5717
5947
  API_TYPE: 'local' | 'remote';
@@ -5749,9 +5979,19 @@ interface components {
5749
5979
  folders: string[];
5750
5980
  /**
5751
5981
  * Skip Duplicates
5752
- * @default true
5982
+ * @default false
5753
5983
  */
5754
5984
  skip_duplicates: boolean;
5985
+ /**
5986
+ * Auto Rename
5987
+ * @default false
5988
+ */
5989
+ auto_rename: boolean;
5990
+ /**
5991
+ * Shared
5992
+ * @default false
5993
+ */
5994
+ shared: boolean;
5755
5995
  };
5756
5996
  /** EnableSyncRequest */
5757
5997
  EnableSyncRequest: {
@@ -5762,6 +6002,8 @@ interface components {
5762
6002
  * @default 90
5763
6003
  */
5764
6004
  backfill_window: number;
6005
+ /** Backfill Since */
6006
+ backfill_since?: string | null;
5765
6007
  /** Folders */
5766
6008
  folders: string[];
5767
6009
  /**
@@ -6371,6 +6613,8 @@ interface components {
6371
6613
  target_workspace_id: number;
6372
6614
  /** Backfill Window */
6373
6615
  backfill_window: number;
6616
+ /** Backfill Since */
6617
+ backfill_since?: string | null;
6374
6618
  /** Backfill State */
6375
6619
  backfill_state: string;
6376
6620
  /** Enabled */
@@ -7901,7 +8145,7 @@ interface components {
7901
8145
  /**
7902
8146
  * Api Type
7903
8147
  * @description The inference type (local or remote).
7904
- * @default local
8148
+ * @default remote
7905
8149
  * @enum {string}
7906
8150
  */
7907
8151
  API_TYPE: 'local' | 'remote';
@@ -8739,6 +8983,7 @@ interface components {
8739
8983
  agent_step_delta?: components['schemas']['AgentStepDeltaEvent'] | null;
8740
8984
  user_input_request?: components['schemas']['UserInputRequestEvent'] | null;
8741
8985
  probe_answer?: components['schemas']['ProbeAnswerEvent'] | null;
8986
+ deferred_interjection?: components['schemas']['DeferredInterjectionEvent'] | null;
8742
8987
  agent_control_state?: components['schemas']['AgentControlStateEvent'] | null;
8743
8988
  user_message?: components['schemas']['UserMessageEvent'] | null;
8744
8989
  arbi_error?: components['schemas']['ArbiErrorEvent'] | null;
@@ -10014,6 +10259,8 @@ interface components {
10014
10259
  last_sync_at?: string | null;
10015
10260
  /** Backfill Window */
10016
10261
  backfill_window?: number | null;
10262
+ /** Backfill Since */
10263
+ backfill_since?: string | null;
10017
10264
  /** Sync Workspace Ext Id */
10018
10265
  sync_workspace_ext_id?: string | null;
10019
10266
  /** Sync Folders */
@@ -10030,6 +10277,12 @@ interface components {
10030
10277
  drive_sync_workspace_ext_id?: string | null;
10031
10278
  /** Drive Sync Folders */
10032
10279
  drive_sync_folders?: string[] | null;
10280
+ /** Drive Skip Duplicates */
10281
+ drive_skip_duplicates?: boolean | null;
10282
+ /** Drive Auto Rename */
10283
+ drive_auto_rename?: boolean | null;
10284
+ /** Drive Shared */
10285
+ drive_shared?: boolean | null;
10033
10286
  /** Drive Needs Reconsent */
10034
10287
  drive_needs_reconsent?: boolean | null;
10035
10288
  };
@@ -10267,9 +10520,29 @@ interface components {
10267
10520
  show_agent_sessions: boolean;
10268
10521
  /**
10269
10522
  * Show Mcp Connectors
10270
- * @default false
10523
+ * @default true
10271
10524
  */
10272
10525
  show_mcp_connectors: boolean;
10526
+ /**
10527
+ * Show Connector Microsoft
10528
+ * @default true
10529
+ */
10530
+ show_connector_microsoft: boolean;
10531
+ /**
10532
+ * Show Connector Google
10533
+ * @default false
10534
+ */
10535
+ show_connector_google: boolean;
10536
+ /**
10537
+ * Show Connector Imanage
10538
+ * @default false
10539
+ */
10540
+ show_connector_imanage: boolean;
10541
+ /**
10542
+ * Show Appearance
10543
+ * @default false
10544
+ */
10545
+ show_appearance: boolean;
10273
10546
  /**
10274
10547
  * Show File Explorer
10275
10548
  * @default false
@@ -10358,6 +10631,14 @@ interface components {
10358
10631
  show_agent_sessions?: boolean | null;
10359
10632
  /** Show Mcp Connectors */
10360
10633
  show_mcp_connectors?: boolean | null;
10634
+ /** Show Connector Microsoft */
10635
+ show_connector_microsoft?: boolean | null;
10636
+ /** Show Connector Google */
10637
+ show_connector_google?: boolean | null;
10638
+ /** Show Connector Imanage */
10639
+ show_connector_imanage?: boolean | null;
10640
+ /** Show Appearance */
10641
+ show_appearance?: boolean | null;
10361
10642
  /** Show File Explorer */
10362
10643
  show_file_explorer?: boolean | null;
10363
10644
  /** Show Hints */
@@ -14978,6 +15259,74 @@ interface operations {
14978
15259
  };
14979
15260
  };
14980
15261
  };
15262
+ mailbox_sync_progress: {
15263
+ parameters: {
15264
+ query?: {
15265
+ workspace_ext_id?: string | null;
15266
+ };
15267
+ header?: never;
15268
+ path: {
15269
+ vendor: components['schemas']['VendorKey'];
15270
+ };
15271
+ cookie?: never;
15272
+ };
15273
+ requestBody?: never;
15274
+ responses: {
15275
+ /** @description Successful Response */
15276
+ 200: {
15277
+ headers: {
15278
+ [name: string]: unknown;
15279
+ };
15280
+ content: {
15281
+ 'application/json': components['schemas']['SyncProgressResponse'];
15282
+ };
15283
+ };
15284
+ /** @description Validation Error */
15285
+ 422: {
15286
+ headers: {
15287
+ [name: string]: unknown;
15288
+ };
15289
+ content: {
15290
+ 'application/json': components['schemas']['HTTPValidationError'];
15291
+ };
15292
+ };
15293
+ };
15294
+ };
15295
+ cancel_mailbox_sync: {
15296
+ parameters: {
15297
+ query?: {
15298
+ workspace_ext_id?: string | null;
15299
+ };
15300
+ header?: never;
15301
+ path: {
15302
+ vendor: components['schemas']['VendorKey'];
15303
+ };
15304
+ cookie?: never;
15305
+ };
15306
+ requestBody?: never;
15307
+ responses: {
15308
+ /** @description Successful Response */
15309
+ 202: {
15310
+ headers: {
15311
+ [name: string]: unknown;
15312
+ };
15313
+ content: {
15314
+ 'application/json': {
15315
+ [key: string]: string;
15316
+ };
15317
+ };
15318
+ };
15319
+ /** @description Validation Error */
15320
+ 422: {
15321
+ headers: {
15322
+ [name: string]: unknown;
15323
+ };
15324
+ content: {
15325
+ 'application/json': components['schemas']['HTTPValidationError'];
15326
+ };
15327
+ };
15328
+ };
15329
+ };
14981
15330
  list_drive_folders: {
14982
15331
  parameters: {
14983
15332
  query?: never;
@@ -15009,6 +15358,72 @@ interface operations {
15009
15358
  };
15010
15359
  };
15011
15360
  };
15361
+ drive_folder_doc_count: {
15362
+ parameters: {
15363
+ query: {
15364
+ item_id: string;
15365
+ };
15366
+ header?: never;
15367
+ path: {
15368
+ vendor: components['schemas']['VendorKey'];
15369
+ };
15370
+ cookie?: never;
15371
+ };
15372
+ requestBody?: never;
15373
+ responses: {
15374
+ /** @description Successful Response */
15375
+ 200: {
15376
+ headers: {
15377
+ [name: string]: unknown;
15378
+ };
15379
+ content: {
15380
+ 'application/json': components['schemas']['DriveFolderDocCountResponse'];
15381
+ };
15382
+ };
15383
+ /** @description Validation Error */
15384
+ 422: {
15385
+ headers: {
15386
+ [name: string]: unknown;
15387
+ };
15388
+ content: {
15389
+ 'application/json': components['schemas']['HTTPValidationError'];
15390
+ };
15391
+ };
15392
+ };
15393
+ };
15394
+ drive_folder_children: {
15395
+ parameters: {
15396
+ query?: {
15397
+ item_id?: string;
15398
+ };
15399
+ header?: never;
15400
+ path: {
15401
+ vendor: components['schemas']['VendorKey'];
15402
+ };
15403
+ cookie?: never;
15404
+ };
15405
+ requestBody?: never;
15406
+ responses: {
15407
+ /** @description Successful Response */
15408
+ 200: {
15409
+ headers: {
15410
+ [name: string]: unknown;
15411
+ };
15412
+ content: {
15413
+ 'application/json': components['schemas']['FolderRead'][];
15414
+ };
15415
+ };
15416
+ /** @description Validation Error */
15417
+ 422: {
15418
+ headers: {
15419
+ [name: string]: unknown;
15420
+ };
15421
+ content: {
15422
+ 'application/json': components['schemas']['HTTPValidationError'];
15423
+ };
15424
+ };
15425
+ };
15426
+ };
15012
15427
  enable_drive_sync: {
15013
15428
  parameters: {
15014
15429
  query?: never;
@@ -15075,11 +15490,9 @@ interface operations {
15075
15490
  };
15076
15491
  };
15077
15492
  };
15078
- mailbox_sync_progress: {
15493
+ drive_sync_estimate: {
15079
15494
  parameters: {
15080
- query?: {
15081
- workspace_ext_id?: string | null;
15082
- };
15495
+ query?: never;
15083
15496
  header?: never;
15084
15497
  path: {
15085
15498
  vendor: components['schemas']['VendorKey'];
@@ -15094,7 +15507,7 @@ interface operations {
15094
15507
  [name: string]: unknown;
15095
15508
  };
15096
15509
  content: {
15097
- 'application/json': components['schemas']['SyncProgressResponse'];
15510
+ 'application/json': components['schemas']['DriveSyncEstimateResponse'];
15098
15511
  };
15099
15512
  };
15100
15513
  /** @description Validation Error */
@@ -15108,11 +15521,40 @@ interface operations {
15108
15521
  };
15109
15522
  };
15110
15523
  };
15111
- cancel_mailbox_sync: {
15524
+ drive_sync_progress: {
15112
15525
  parameters: {
15113
- query?: {
15114
- workspace_ext_id?: string | null;
15526
+ query?: never;
15527
+ header?: never;
15528
+ path: {
15529
+ vendor: components['schemas']['VendorKey'];
15115
15530
  };
15531
+ cookie?: never;
15532
+ };
15533
+ requestBody?: never;
15534
+ responses: {
15535
+ /** @description Successful Response */
15536
+ 200: {
15537
+ headers: {
15538
+ [name: string]: unknown;
15539
+ };
15540
+ content: {
15541
+ 'application/json': components['schemas']['DriveSyncProgressResponse'];
15542
+ };
15543
+ };
15544
+ /** @description Validation Error */
15545
+ 422: {
15546
+ headers: {
15547
+ [name: string]: unknown;
15548
+ };
15549
+ content: {
15550
+ 'application/json': components['schemas']['HTTPValidationError'];
15551
+ };
15552
+ };
15553
+ };
15554
+ };
15555
+ cancel_drive_sync: {
15556
+ parameters: {
15557
+ query?: never;
15116
15558
  header?: never;
15117
15559
  path: {
15118
15560
  vendor: components['schemas']['VendorKey'];
package/dist/index.d.ts CHANGED
@@ -2879,6 +2879,53 @@ interface paths {
2879
2879
  patch?: never;
2880
2880
  trace?: never;
2881
2881
  };
2882
+ '/v1/connectors/{vendor}/drive-folder-doc-count': {
2883
+ parameters: {
2884
+ query?: never;
2885
+ header?: never;
2886
+ path?: never;
2887
+ cookie?: never;
2888
+ };
2889
+ /**
2890
+ * Count the documents that syncing a OneDrive folder would import (recursive)
2891
+ * @description Return how many documents selecting ``item_id`` would import (files, recursive).
2892
+ *
2893
+ * Powers the "(N)" next to each folder in the picker: unlike Graph's ``childCount``
2894
+ * (immediate files + subfolders), this is the full recursive count of importable
2895
+ * files — what actually lands in the workspace when the folder is synced.
2896
+ */
2897
+ get: operations['drive_folder_doc_count'];
2898
+ put?: never;
2899
+ post?: never;
2900
+ delete?: never;
2901
+ options?: never;
2902
+ head?: never;
2903
+ patch?: never;
2904
+ trace?: never;
2905
+ };
2906
+ '/v1/connectors/{vendor}/drive-folder-children': {
2907
+ parameters: {
2908
+ query?: never;
2909
+ header?: never;
2910
+ path?: never;
2911
+ cookie?: never;
2912
+ };
2913
+ /**
2914
+ * List the immediate subfolders of a OneDrive folder (lazy tree browsing)
2915
+ * @description Return the immediate subfolders of ``item_id`` ("root" or a folder item id).
2916
+ *
2917
+ * Backs the expandable folder-tree picker: the UI fetches one level at a time as
2918
+ * the user drills in, so a large drive never enumerates the whole tree up front.
2919
+ */
2920
+ get: operations['drive_folder_children'];
2921
+ put?: never;
2922
+ post?: never;
2923
+ delete?: never;
2924
+ options?: never;
2925
+ head?: never;
2926
+ patch?: never;
2927
+ trace?: never;
2928
+ };
2882
2929
  '/v1/connectors/{vendor}/enable-drive-sync': {
2883
2930
  parameters: {
2884
2931
  query?: never;
@@ -2922,6 +2969,74 @@ interface paths {
2922
2969
  patch?: never;
2923
2970
  trace?: never;
2924
2971
  };
2972
+ '/v1/connectors/{vendor}/drive-sync-estimate': {
2973
+ parameters: {
2974
+ query?: never;
2975
+ header?: never;
2976
+ path?: never;
2977
+ cookie?: never;
2978
+ };
2979
+ /**
2980
+ * Preview how many documents the next OneDrive sync would import
2981
+ * @description Best-effort count of new/changed OneDrive files the next Sync now would pull.
2982
+ *
2983
+ * Advisory only: any failure (not connected, token not bridged, provider error)
2984
+ * returns ``estimated_count=None`` with a 200 so the UI degrades quietly instead
2985
+ * of surfacing an error. 404 only when drive sync was never enabled.
2986
+ */
2987
+ get: operations['drive_sync_estimate'];
2988
+ put?: never;
2989
+ post?: never;
2990
+ delete?: never;
2991
+ options?: never;
2992
+ head?: never;
2993
+ patch?: never;
2994
+ trace?: never;
2995
+ };
2996
+ '/v1/connectors/{vendor}/drive-sync-progress': {
2997
+ parameters: {
2998
+ query?: never;
2999
+ header?: never;
3000
+ path?: never;
3001
+ cookie?: never;
3002
+ };
3003
+ /**
3004
+ * Live progress of a running OneDrive sync
3005
+ * @description Current progress for this vendor's drive sync.
3006
+ *
3007
+ * ``running`` is False when nothing is in flight (no progress marker in Redis).
3008
+ */
3009
+ get: operations['drive_sync_progress'];
3010
+ put?: never;
3011
+ post?: never;
3012
+ delete?: never;
3013
+ options?: never;
3014
+ head?: never;
3015
+ patch?: never;
3016
+ trace?: never;
3017
+ };
3018
+ '/v1/connectors/{vendor}/drive-sync/cancel': {
3019
+ parameters: {
3020
+ query?: never;
3021
+ header?: never;
3022
+ path?: never;
3023
+ cookie?: never;
3024
+ };
3025
+ get?: never;
3026
+ put?: never;
3027
+ /**
3028
+ * Request cancellation of a running OneDrive sync
3029
+ * @description Ask a running drive sync to stop at the next document boundary. Idempotent.
3030
+ *
3031
+ * Already-imported documents are kept; the run simply stops fetching more.
3032
+ */
3033
+ post: operations['cancel_drive_sync'];
3034
+ delete?: never;
3035
+ options?: never;
3036
+ head?: never;
3037
+ patch?: never;
3038
+ trace?: never;
3039
+ };
2925
3040
  '/v1/responses': {
2926
3041
  parameters: {
2927
3042
  query?: never;
@@ -3921,7 +4036,7 @@ interface components {
3921
4036
  * },
3922
4037
  * "MAX_CONCURRENT_REQUESTS": 256,
3923
4038
  * "MODEL_NAME": "Qwen/Qwen3-Reranker-0.6B",
3924
- * "API_TYPE": "local",
4039
+ * "API_TYPE": "remote",
3925
4040
  * "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"
3926
4041
  * }
3927
4042
  */
@@ -3942,7 +4057,7 @@ interface components {
3942
4057
  /**
3943
4058
  * @default {
3944
4059
  * "MODEL_NAME": "Qwen/Qwen3-Embedding-0.6B",
3945
- * "API_TYPE": "local",
4060
+ * "API_TYPE": "remote",
3946
4061
  * "BATCH_SIZE": 128,
3947
4062
  * "MAX_CONCURRENT_REQUESTS": 256,
3948
4063
  * "DOCUMENT_PREFIX": "",
@@ -4761,6 +4876,8 @@ interface components {
4761
4876
  last_sync_at?: string | null;
4762
4877
  /** Backfill Window */
4763
4878
  backfill_window?: number | null;
4879
+ /** Backfill Since */
4880
+ backfill_since?: string | null;
4764
4881
  /**
4765
4882
  * Folders
4766
4883
  * @default []
@@ -5289,6 +5406,42 @@ interface components {
5289
5406
  /** Content Type */
5290
5407
  content_type?: string | null;
5291
5408
  };
5409
+ /**
5410
+ * DeferredInterjectionEvent
5411
+ * @description A steering message that arrived too late to steer — owed a new turn.
5412
+ *
5413
+ * Emitted when input reaches the agent after it has already committed to an
5414
+ * answer. Folding it into that turn would regenerate from the steering message
5415
+ * and lose the deliverable, so the turn finalizes intact and the message is
5416
+ * handed back here.
5417
+ *
5418
+ * The client should submit it as a NEW turn (a normal message), exactly as if
5419
+ * the user had sent it after the turn ended. It is not a step and not part of
5420
+ * the finished turn. It has to travel on an event because the run's Redis queue
5421
+ * is deleted at teardown, so anything left there is destroyed.
5422
+ *
5423
+ * Example:
5424
+ * {"type": "arbi.deferred_interjection",
5425
+ * "message": "wait, also summarize the risks"}
5426
+ */
5427
+ DeferredInterjectionEvent: {
5428
+ /**
5429
+ * T
5430
+ * @description Seconds elapsed since stream start.
5431
+ */
5432
+ t?: number | null;
5433
+ /**
5434
+ * Type
5435
+ * @default arbi.deferred_interjection
5436
+ * @constant
5437
+ */
5438
+ type: 'arbi.deferred_interjection';
5439
+ /**
5440
+ * Message
5441
+ * @description The user's text, to be submitted as a new turn
5442
+ */
5443
+ message: string;
5444
+ };
5292
5445
  /**
5293
5446
  * DeleteAgentsRequest
5294
5447
  * @description Request to delete agents by external ID.
@@ -5614,6 +5767,40 @@ interface components {
5614
5767
  */
5615
5768
  DEFAULT_METADATA_TAGS?: components['schemas']['TagTemplate'][];
5616
5769
  };
5770
+ /**
5771
+ * DriveFolderDocCountResponse
5772
+ * @description Recursive count of importable documents under a single OneDrive folder.
5773
+ */
5774
+ DriveFolderDocCountResponse: {
5775
+ /** Count */
5776
+ count: number;
5777
+ };
5778
+ /** DriveSyncEstimateResponse */
5779
+ DriveSyncEstimateResponse: {
5780
+ /** Estimated Count */
5781
+ estimated_count?: number | null;
5782
+ };
5783
+ /**
5784
+ * DriveSyncProgressResponse
5785
+ * @description Live progress of a running OneDrive sync for this vendor.
5786
+ */
5787
+ DriveSyncProgressResponse: {
5788
+ /**
5789
+ * Running
5790
+ * @default false
5791
+ */
5792
+ running: boolean;
5793
+ /** Phase */
5794
+ phase?: string | null;
5795
+ /**
5796
+ * Processed
5797
+ * @default 0
5798
+ */
5799
+ processed: number;
5800
+ /** Total */
5801
+ total?: number | null;
5802
+ summary?: components['schemas']['DriveSyncSummary'] | null;
5803
+ };
5617
5804
  /**
5618
5805
  * DriveSyncRead
5619
5806
  * @description Public shape for a DriveSync row returned by the enable-drive-sync endpoint.
@@ -5639,12 +5826,55 @@ interface components {
5639
5826
  folders: string[];
5640
5827
  /**
5641
5828
  * Skip Duplicates
5642
- * @default true
5829
+ * @default false
5643
5830
  */
5644
5831
  skip_duplicates: boolean;
5832
+ /**
5833
+ * Auto Rename
5834
+ * @default false
5835
+ */
5836
+ auto_rename: boolean;
5837
+ /**
5838
+ * Shared
5839
+ * @default false
5840
+ */
5841
+ shared: boolean;
5645
5842
  /** Last Sync At */
5646
5843
  last_sync_at?: string | null;
5647
5844
  };
5845
+ /**
5846
+ * DriveSyncSkippedFile
5847
+ * @description A file a finished run tried but couldn't import, with the reason why.
5848
+ */
5849
+ DriveSyncSkippedFile: {
5850
+ /** Name */
5851
+ name: string;
5852
+ /** Reason */
5853
+ reason: string;
5854
+ };
5855
+ /**
5856
+ * DriveSyncSummary
5857
+ * @description Outcome of the most recently finished run, for a one-shot completion toast.
5858
+ */
5859
+ DriveSyncSummary: {
5860
+ /** Finished At */
5861
+ finished_at: string;
5862
+ /**
5863
+ * Ingested
5864
+ * @default 0
5865
+ */
5866
+ ingested: number;
5867
+ /**
5868
+ * Attempted
5869
+ * @default 0
5870
+ */
5871
+ attempted: number;
5872
+ /**
5873
+ * Skipped
5874
+ * @default []
5875
+ */
5876
+ skipped: components['schemas']['DriveSyncSkippedFile'][];
5877
+ };
5648
5878
  /**
5649
5879
  * EmailNotificationSettings
5650
5880
  * @description Per-category email notification preferences. All default on; a master
@@ -5711,7 +5941,7 @@ interface components {
5711
5941
  /**
5712
5942
  * Api Type
5713
5943
  * @description The inference type (local or remote).
5714
- * @default local
5944
+ * @default remote
5715
5945
  * @enum {string}
5716
5946
  */
5717
5947
  API_TYPE: 'local' | 'remote';
@@ -5749,9 +5979,19 @@ interface components {
5749
5979
  folders: string[];
5750
5980
  /**
5751
5981
  * Skip Duplicates
5752
- * @default true
5982
+ * @default false
5753
5983
  */
5754
5984
  skip_duplicates: boolean;
5985
+ /**
5986
+ * Auto Rename
5987
+ * @default false
5988
+ */
5989
+ auto_rename: boolean;
5990
+ /**
5991
+ * Shared
5992
+ * @default false
5993
+ */
5994
+ shared: boolean;
5755
5995
  };
5756
5996
  /** EnableSyncRequest */
5757
5997
  EnableSyncRequest: {
@@ -5762,6 +6002,8 @@ interface components {
5762
6002
  * @default 90
5763
6003
  */
5764
6004
  backfill_window: number;
6005
+ /** Backfill Since */
6006
+ backfill_since?: string | null;
5765
6007
  /** Folders */
5766
6008
  folders: string[];
5767
6009
  /**
@@ -6371,6 +6613,8 @@ interface components {
6371
6613
  target_workspace_id: number;
6372
6614
  /** Backfill Window */
6373
6615
  backfill_window: number;
6616
+ /** Backfill Since */
6617
+ backfill_since?: string | null;
6374
6618
  /** Backfill State */
6375
6619
  backfill_state: string;
6376
6620
  /** Enabled */
@@ -7901,7 +8145,7 @@ interface components {
7901
8145
  /**
7902
8146
  * Api Type
7903
8147
  * @description The inference type (local or remote).
7904
- * @default local
8148
+ * @default remote
7905
8149
  * @enum {string}
7906
8150
  */
7907
8151
  API_TYPE: 'local' | 'remote';
@@ -8739,6 +8983,7 @@ interface components {
8739
8983
  agent_step_delta?: components['schemas']['AgentStepDeltaEvent'] | null;
8740
8984
  user_input_request?: components['schemas']['UserInputRequestEvent'] | null;
8741
8985
  probe_answer?: components['schemas']['ProbeAnswerEvent'] | null;
8986
+ deferred_interjection?: components['schemas']['DeferredInterjectionEvent'] | null;
8742
8987
  agent_control_state?: components['schemas']['AgentControlStateEvent'] | null;
8743
8988
  user_message?: components['schemas']['UserMessageEvent'] | null;
8744
8989
  arbi_error?: components['schemas']['ArbiErrorEvent'] | null;
@@ -10014,6 +10259,8 @@ interface components {
10014
10259
  last_sync_at?: string | null;
10015
10260
  /** Backfill Window */
10016
10261
  backfill_window?: number | null;
10262
+ /** Backfill Since */
10263
+ backfill_since?: string | null;
10017
10264
  /** Sync Workspace Ext Id */
10018
10265
  sync_workspace_ext_id?: string | null;
10019
10266
  /** Sync Folders */
@@ -10030,6 +10277,12 @@ interface components {
10030
10277
  drive_sync_workspace_ext_id?: string | null;
10031
10278
  /** Drive Sync Folders */
10032
10279
  drive_sync_folders?: string[] | null;
10280
+ /** Drive Skip Duplicates */
10281
+ drive_skip_duplicates?: boolean | null;
10282
+ /** Drive Auto Rename */
10283
+ drive_auto_rename?: boolean | null;
10284
+ /** Drive Shared */
10285
+ drive_shared?: boolean | null;
10033
10286
  /** Drive Needs Reconsent */
10034
10287
  drive_needs_reconsent?: boolean | null;
10035
10288
  };
@@ -10267,9 +10520,29 @@ interface components {
10267
10520
  show_agent_sessions: boolean;
10268
10521
  /**
10269
10522
  * Show Mcp Connectors
10270
- * @default false
10523
+ * @default true
10271
10524
  */
10272
10525
  show_mcp_connectors: boolean;
10526
+ /**
10527
+ * Show Connector Microsoft
10528
+ * @default true
10529
+ */
10530
+ show_connector_microsoft: boolean;
10531
+ /**
10532
+ * Show Connector Google
10533
+ * @default false
10534
+ */
10535
+ show_connector_google: boolean;
10536
+ /**
10537
+ * Show Connector Imanage
10538
+ * @default false
10539
+ */
10540
+ show_connector_imanage: boolean;
10541
+ /**
10542
+ * Show Appearance
10543
+ * @default false
10544
+ */
10545
+ show_appearance: boolean;
10273
10546
  /**
10274
10547
  * Show File Explorer
10275
10548
  * @default false
@@ -10358,6 +10631,14 @@ interface components {
10358
10631
  show_agent_sessions?: boolean | null;
10359
10632
  /** Show Mcp Connectors */
10360
10633
  show_mcp_connectors?: boolean | null;
10634
+ /** Show Connector Microsoft */
10635
+ show_connector_microsoft?: boolean | null;
10636
+ /** Show Connector Google */
10637
+ show_connector_google?: boolean | null;
10638
+ /** Show Connector Imanage */
10639
+ show_connector_imanage?: boolean | null;
10640
+ /** Show Appearance */
10641
+ show_appearance?: boolean | null;
10361
10642
  /** Show File Explorer */
10362
10643
  show_file_explorer?: boolean | null;
10363
10644
  /** Show Hints */
@@ -14978,6 +15259,74 @@ interface operations {
14978
15259
  };
14979
15260
  };
14980
15261
  };
15262
+ mailbox_sync_progress: {
15263
+ parameters: {
15264
+ query?: {
15265
+ workspace_ext_id?: string | null;
15266
+ };
15267
+ header?: never;
15268
+ path: {
15269
+ vendor: components['schemas']['VendorKey'];
15270
+ };
15271
+ cookie?: never;
15272
+ };
15273
+ requestBody?: never;
15274
+ responses: {
15275
+ /** @description Successful Response */
15276
+ 200: {
15277
+ headers: {
15278
+ [name: string]: unknown;
15279
+ };
15280
+ content: {
15281
+ 'application/json': components['schemas']['SyncProgressResponse'];
15282
+ };
15283
+ };
15284
+ /** @description Validation Error */
15285
+ 422: {
15286
+ headers: {
15287
+ [name: string]: unknown;
15288
+ };
15289
+ content: {
15290
+ 'application/json': components['schemas']['HTTPValidationError'];
15291
+ };
15292
+ };
15293
+ };
15294
+ };
15295
+ cancel_mailbox_sync: {
15296
+ parameters: {
15297
+ query?: {
15298
+ workspace_ext_id?: string | null;
15299
+ };
15300
+ header?: never;
15301
+ path: {
15302
+ vendor: components['schemas']['VendorKey'];
15303
+ };
15304
+ cookie?: never;
15305
+ };
15306
+ requestBody?: never;
15307
+ responses: {
15308
+ /** @description Successful Response */
15309
+ 202: {
15310
+ headers: {
15311
+ [name: string]: unknown;
15312
+ };
15313
+ content: {
15314
+ 'application/json': {
15315
+ [key: string]: string;
15316
+ };
15317
+ };
15318
+ };
15319
+ /** @description Validation Error */
15320
+ 422: {
15321
+ headers: {
15322
+ [name: string]: unknown;
15323
+ };
15324
+ content: {
15325
+ 'application/json': components['schemas']['HTTPValidationError'];
15326
+ };
15327
+ };
15328
+ };
15329
+ };
14981
15330
  list_drive_folders: {
14982
15331
  parameters: {
14983
15332
  query?: never;
@@ -15009,6 +15358,72 @@ interface operations {
15009
15358
  };
15010
15359
  };
15011
15360
  };
15361
+ drive_folder_doc_count: {
15362
+ parameters: {
15363
+ query: {
15364
+ item_id: string;
15365
+ };
15366
+ header?: never;
15367
+ path: {
15368
+ vendor: components['schemas']['VendorKey'];
15369
+ };
15370
+ cookie?: never;
15371
+ };
15372
+ requestBody?: never;
15373
+ responses: {
15374
+ /** @description Successful Response */
15375
+ 200: {
15376
+ headers: {
15377
+ [name: string]: unknown;
15378
+ };
15379
+ content: {
15380
+ 'application/json': components['schemas']['DriveFolderDocCountResponse'];
15381
+ };
15382
+ };
15383
+ /** @description Validation Error */
15384
+ 422: {
15385
+ headers: {
15386
+ [name: string]: unknown;
15387
+ };
15388
+ content: {
15389
+ 'application/json': components['schemas']['HTTPValidationError'];
15390
+ };
15391
+ };
15392
+ };
15393
+ };
15394
+ drive_folder_children: {
15395
+ parameters: {
15396
+ query?: {
15397
+ item_id?: string;
15398
+ };
15399
+ header?: never;
15400
+ path: {
15401
+ vendor: components['schemas']['VendorKey'];
15402
+ };
15403
+ cookie?: never;
15404
+ };
15405
+ requestBody?: never;
15406
+ responses: {
15407
+ /** @description Successful Response */
15408
+ 200: {
15409
+ headers: {
15410
+ [name: string]: unknown;
15411
+ };
15412
+ content: {
15413
+ 'application/json': components['schemas']['FolderRead'][];
15414
+ };
15415
+ };
15416
+ /** @description Validation Error */
15417
+ 422: {
15418
+ headers: {
15419
+ [name: string]: unknown;
15420
+ };
15421
+ content: {
15422
+ 'application/json': components['schemas']['HTTPValidationError'];
15423
+ };
15424
+ };
15425
+ };
15426
+ };
15012
15427
  enable_drive_sync: {
15013
15428
  parameters: {
15014
15429
  query?: never;
@@ -15075,11 +15490,9 @@ interface operations {
15075
15490
  };
15076
15491
  };
15077
15492
  };
15078
- mailbox_sync_progress: {
15493
+ drive_sync_estimate: {
15079
15494
  parameters: {
15080
- query?: {
15081
- workspace_ext_id?: string | null;
15082
- };
15495
+ query?: never;
15083
15496
  header?: never;
15084
15497
  path: {
15085
15498
  vendor: components['schemas']['VendorKey'];
@@ -15094,7 +15507,7 @@ interface operations {
15094
15507
  [name: string]: unknown;
15095
15508
  };
15096
15509
  content: {
15097
- 'application/json': components['schemas']['SyncProgressResponse'];
15510
+ 'application/json': components['schemas']['DriveSyncEstimateResponse'];
15098
15511
  };
15099
15512
  };
15100
15513
  /** @description Validation Error */
@@ -15108,11 +15521,40 @@ interface operations {
15108
15521
  };
15109
15522
  };
15110
15523
  };
15111
- cancel_mailbox_sync: {
15524
+ drive_sync_progress: {
15112
15525
  parameters: {
15113
- query?: {
15114
- workspace_ext_id?: string | null;
15526
+ query?: never;
15527
+ header?: never;
15528
+ path: {
15529
+ vendor: components['schemas']['VendorKey'];
15115
15530
  };
15531
+ cookie?: never;
15532
+ };
15533
+ requestBody?: never;
15534
+ responses: {
15535
+ /** @description Successful Response */
15536
+ 200: {
15537
+ headers: {
15538
+ [name: string]: unknown;
15539
+ };
15540
+ content: {
15541
+ 'application/json': components['schemas']['DriveSyncProgressResponse'];
15542
+ };
15543
+ };
15544
+ /** @description Validation Error */
15545
+ 422: {
15546
+ headers: {
15547
+ [name: string]: unknown;
15548
+ };
15549
+ content: {
15550
+ 'application/json': components['schemas']['HTTPValidationError'];
15551
+ };
15552
+ };
15553
+ };
15554
+ };
15555
+ cancel_drive_sync: {
15556
+ parameters: {
15557
+ query?: never;
15116
15558
  header?: never;
15117
15559
  path: {
15118
15560
  vendor: components['schemas']['VendorKey'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/client",
3
- "version": "0.3.123",
3
+ "version": "0.3.125",
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",