@arbidocs/client 0.3.154 → 0.3.156

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
@@ -2692,6 +2692,13 @@ interface paths {
2692
2692
  * re-seals them to the session public key, and posts them here. The server can then
2693
2693
  * use them for sync only while this session is live. Returns 409 when there is no
2694
2694
  * live session to cache into (e.g. it expired between login and this call).
2695
+ *
2696
+ * This is also the auto-sync trigger point: it's called automatically for every
2697
+ * connected vendor right after login (no user action), so it's the one place a
2698
+ * background sync can be launched using a freshly-decrypted token without ever
2699
+ * storing a server-decryptable copy at rest. Any ``DriveSync``/``MailboxSync`` row
2700
+ * for this (user, vendor) with ``auto_sync=True`` and a stale ``last_sync_at`` is
2701
+ * fired as a background task; this never affects the bridge's own success/failure.
2695
2702
  */
2696
2703
  post: operations['bridge_session_connector_tokens'];
2697
2704
  delete?: never;
@@ -3110,6 +3117,70 @@ interface paths {
3110
3117
  patch?: never;
3111
3118
  trace?: never;
3112
3119
  };
3120
+ '/v1/connectors/{vendor}/calendars': {
3121
+ parameters: {
3122
+ query?: never;
3123
+ header?: never;
3124
+ path?: never;
3125
+ cookie?: never;
3126
+ };
3127
+ /**
3128
+ * List the connected account's calendars for selection
3129
+ * @description Return the connected account's calendars.
3130
+ */
3131
+ get: operations['list_calendars'];
3132
+ put?: never;
3133
+ post?: never;
3134
+ delete?: never;
3135
+ options?: never;
3136
+ head?: never;
3137
+ patch?: never;
3138
+ trace?: never;
3139
+ };
3140
+ '/v1/connectors/{vendor}/enable-calendar-sync': {
3141
+ parameters: {
3142
+ query?: never;
3143
+ header?: never;
3144
+ path?: never;
3145
+ cookie?: never;
3146
+ };
3147
+ get?: never;
3148
+ put?: never;
3149
+ /**
3150
+ * Enable calendar sync for a vendor into a target workspace
3151
+ * @description Create or update the user's CalendarSync row for this vendor + workspace.
3152
+ *
3153
+ * Changing the calendar selection clears the delta cursor: the stored one is scoped
3154
+ * to the previous selection, so reusing it would silently skip a newly-added
3155
+ * calendar's history.
3156
+ */
3157
+ post: operations['enable_calendar_sync'];
3158
+ delete?: never;
3159
+ options?: never;
3160
+ head?: never;
3161
+ patch?: never;
3162
+ trace?: never;
3163
+ };
3164
+ '/v1/connectors/{vendor}/calendar-sync': {
3165
+ parameters: {
3166
+ query?: never;
3167
+ header?: never;
3168
+ path?: never;
3169
+ cookie?: never;
3170
+ };
3171
+ get?: never;
3172
+ put?: never;
3173
+ /**
3174
+ * Trigger a calendar sync run in the background
3175
+ * @description Schedule a background calendar sync. 404 if never enabled, 409 if not connected.
3176
+ */
3177
+ post: operations['trigger_calendar_sync'];
3178
+ delete?: never;
3179
+ options?: never;
3180
+ head?: never;
3181
+ patch?: never;
3182
+ trace?: never;
3183
+ };
3113
3184
  '/v1/responses': {
3114
3185
  parameters: {
3115
3186
  query?: never;
@@ -3355,7 +3426,7 @@ interface components {
3355
3426
  * Step
3356
3427
  * @description Lifecycle step. Absent (None) for tool-call steps, which carry `detail` instead.
3357
3428
  */
3358
- step?: ('goal' | 'skill' | 'interjection' | 'planning' | 'tool_progress' | 'goal_progress' | 'answering' | 'evaluation') | null;
3429
+ step?: ('goal' | 'skill' | 'interjection' | 'reply' | 'planning' | 'tool_progress' | 'goal_progress' | 'answering' | 'evaluation') | null;
3359
3430
  /**
3360
3431
  * Label
3361
3432
  * @description Display label for the step. Backend-driven, no frontend mapping needed.
@@ -3965,7 +4036,7 @@ interface components {
3965
4036
  * "API_TYPE": "remote",
3966
4037
  * "ENABLE_THINKING": false,
3967
4038
  * "MODEL_NAME": "Fast",
3968
- * "SYSTEM_INSTRUCTION": "You are a document analysis assistant. Answer questions based strictly on document content.\n\nGuidelines:\n- Only use information explicitly stated in the document\n- Do not infer or assume information not present\n- If information is not found, respond with \"Information not found in document.\"\n- Follow format instructions exactly for each answer\n- Be concise and precise\n- Output answers as plain text only. Do not use Markdown or any other formatting:\n - Do not bold, italicize, or otherwise emphasize any part of the answer.\n - Do not include asterisks (*), underscores (_), backticks (`), or other Markdown markers.\n - Do not prefix answers with bullets, dashes (-), or numbered/lettered enumeration (e.g. \"1.\", \"a)\").\n - Write multi-point answers as flowing sentences, not as a list.",
4039
+ * "SYSTEM_INSTRUCTION": "You are a document analysis assistant. Answer questions based strictly on document content.\n\nYour answers are displayed directly as cell values in a table, so keep every answer as short as possible.\n\nGuidelines:\n- Answer with the value only — never a full sentence. Do not restate the question or add lead-ins such as \"This document is...\" or \"The document describes...\". Good: \"German\". Bad: \"This document is written in German.\"\n- When an answer has multiple values, put each value on its own line: separate values with a newline character. Do not separate them with commas, bullets, dashes, numbering, or by writing them as a sentence.\n- Only use information explicitly stated in the document; do not infer or assume information not present.\n- If the information is not found, respond with exactly \"Not found\".\n- Follow the format instructions exactly for each answer.\n- Output answers as plain text only. Do not use Markdown or any other formatting: no bold, italics, asterisks (*), underscores (_), backticks (`), bullets, or numbered/lettered enumeration.",
3969
4040
  * "MAX_TOKEN_CONTEXT_TO_ANSWER": 200000,
3970
4041
  * "TEMPERATURE": 0.1,
3971
4042
  * "MAX_TOKENS": 0,
@@ -4287,7 +4358,7 @@ interface components {
4287
4358
  * Step
4288
4359
  * @description Which lifecycle moment this item IS — stated, not inferred. A Responses item type (message / function_call / reasoning) is too coarse for the trace: three different reasoning items are the goal, the plan and a goal check, and the answer is a `message` item that is nonetheless a trace row. Clients previously sniffed `label` prefixes to tell them apart, which broke the moment a label was reworded or localised. Absent on plain tool calls (they carry `detail`) and on narration messages (which are body text, not a step).
4289
4360
  */
4290
- step?: ('goal' | 'skill' | 'interjection' | 'planning' | 'tool_progress' | 'goal_progress' | 'answering' | 'evaluation') | null;
4361
+ step?: ('goal' | 'skill' | 'interjection' | 'reply' | 'planning' | 'tool_progress' | 'goal_progress' | 'answering' | 'evaluation') | null;
4291
4362
  /**
4292
4363
  * Label
4293
4364
  * @description Human display label. Backend-owned.
@@ -4535,6 +4606,52 @@ interface components {
4535
4606
  /** Session Id */
4536
4607
  session_id?: string | null;
4537
4608
  };
4609
+ /**
4610
+ * CalendarRead
4611
+ * @description A selectable calendar in the picker.
4612
+ */
4613
+ CalendarRead: {
4614
+ /** Id */
4615
+ id: string;
4616
+ /** Name */
4617
+ name: string;
4618
+ };
4619
+ /**
4620
+ * CalendarSyncRead
4621
+ * @description Public shape for a CalendarSync row returned by the enable endpoint.
4622
+ */
4623
+ CalendarSyncRead: {
4624
+ /**
4625
+ * Id
4626
+ * Format: uuid
4627
+ */
4628
+ id: string;
4629
+ /** Vendor Key */
4630
+ vendor_key: string;
4631
+ /** Target Workspace Id */
4632
+ target_workspace_id: number;
4633
+ /** Enabled */
4634
+ enabled: boolean;
4635
+ /** Status */
4636
+ status: string;
4637
+ /**
4638
+ * Calendars
4639
+ * @default []
4640
+ */
4641
+ calendars: string[];
4642
+ /**
4643
+ * Shared
4644
+ * @default false
4645
+ */
4646
+ shared: boolean;
4647
+ /**
4648
+ * Auto Sync
4649
+ * @default false
4650
+ */
4651
+ auto_sync: boolean;
4652
+ /** Last Sync At */
4653
+ last_sync_at?: string | null;
4654
+ };
4538
4655
  /**
4539
4656
  * ChangePasswordRequest
4540
4657
  * @description Password change request with signature-based auth.
@@ -5139,6 +5256,11 @@ interface components {
5139
5256
  * @default false
5140
5257
  */
5141
5258
  auto_rename: boolean;
5259
+ /**
5260
+ * Auto Sync
5261
+ * @default false
5262
+ */
5263
+ auto_sync: boolean;
5142
5264
  /**
5143
5265
  * Synced Count
5144
5266
  * @default 0
@@ -5982,17 +6104,15 @@ interface components {
5982
6104
  * System Instruction
5983
6105
  * @default You are a document analysis assistant. Answer questions based strictly on document content.
5984
6106
  *
6107
+ * Your answers are displayed directly as cell values in a table, so keep every answer as short as possible.
6108
+ *
5985
6109
  * Guidelines:
5986
- * - Only use information explicitly stated in the document
5987
- * - Do not infer or assume information not present
5988
- * - If information is not found, respond with "Information not found in document."
5989
- * - Follow format instructions exactly for each answer
5990
- * - Be concise and precise
5991
- * - Output answers as plain text only. Do not use Markdown or any other formatting:
5992
- * - Do not bold, italicize, or otherwise emphasize any part of the answer.
5993
- * - Do not include asterisks (*), underscores (_), backticks (`), or other Markdown markers.
5994
- * - Do not prefix answers with bullets, dashes (-), or numbered/lettered enumeration (e.g. "1.", "a)").
5995
- * - Write multi-point answers as flowing sentences, not as a list.
6110
+ * - Answer with the value only — never a full sentence. Do not restate the question or add lead-ins such as "This document is..." or "The document describes...". Good: "German". Bad: "This document is written in German."
6111
+ * - When an answer has multiple values, put each value on its own line: separate values with a newline character. Do not separate them with commas, bullets, dashes, numbering, or by writing them as a sentence.
6112
+ * - Only use information explicitly stated in the document; do not infer or assume information not present.
6113
+ * - If the information is not found, respond with exactly "Not found".
6114
+ * - Follow the format instructions exactly for each answer.
6115
+ * - Output answers as plain text only. Do not use Markdown or any other formatting: no bold, italics, asterisks (*), underscores (_), backticks (`), bullets, or numbered/lettered enumeration.
5996
6116
  */
5997
6117
  SYSTEM_INSTRUCTION: string;
5998
6118
  /**
@@ -6129,6 +6249,11 @@ interface components {
6129
6249
  * @default false
6130
6250
  */
6131
6251
  shared: boolean;
6252
+ /**
6253
+ * Auto Sync
6254
+ * @default false
6255
+ */
6256
+ auto_sync: boolean;
6132
6257
  /** Last Sync At */
6133
6258
  last_sync_at?: string | null;
6134
6259
  };
@@ -6261,6 +6386,28 @@ interface components {
6261
6386
  */
6262
6387
  QUERY_PREFIX: string;
6263
6388
  };
6389
+ /** EnableCalendarSyncRequest */
6390
+ EnableCalendarSyncRequest: {
6391
+ /** Workspace Ext Id */
6392
+ workspace_ext_id: string;
6393
+ /** Calendars */
6394
+ calendars: string[];
6395
+ /**
6396
+ * Backfill Days
6397
+ * @default 30
6398
+ */
6399
+ backfill_days: number;
6400
+ /**
6401
+ * Shared
6402
+ * @default false
6403
+ */
6404
+ shared: boolean;
6405
+ /**
6406
+ * Auto Sync
6407
+ * @default false
6408
+ */
6409
+ auto_sync: boolean;
6410
+ };
6264
6411
  /** EnableDriveSyncRequest */
6265
6412
  EnableDriveSyncRequest: {
6266
6413
  /** Workspace Ext Id */
@@ -6282,6 +6429,11 @@ interface components {
6282
6429
  * @default false
6283
6430
  */
6284
6431
  shared: boolean;
6432
+ /**
6433
+ * Auto Sync
6434
+ * @default false
6435
+ */
6436
+ auto_sync: boolean;
6285
6437
  };
6286
6438
  /** EnableSyncRequest */
6287
6439
  EnableSyncRequest: {
@@ -6306,6 +6458,11 @@ interface components {
6306
6458
  * @default false
6307
6459
  */
6308
6460
  auto_rename: boolean;
6461
+ /**
6462
+ * Auto Sync
6463
+ * @default false
6464
+ */
6465
+ auto_sync: boolean;
6309
6466
  };
6310
6467
  /**
6311
6468
  * ErrorMessage
@@ -6926,6 +7083,40 @@ interface components {
6926
7083
  */
6927
7084
  TEMPERATURE: number;
6928
7085
  };
7086
+ /** ImageGenerationTool */
7087
+ ImageGenerationTool: {
7088
+ /**
7089
+ * @description discriminator enum property added by openapi-typescript
7090
+ * @enum {string}
7091
+ */
7092
+ name: 'image_generation';
7093
+ /**
7094
+ * Description
7095
+ * @default image generation
7096
+ */
7097
+ description: string;
7098
+ /** @default {} */
7099
+ tool_args: components['schemas']['ImageGenerationToolArgs'];
7100
+ /**
7101
+ * Tool Responses
7102
+ * @default {}
7103
+ */
7104
+ tool_responses: {
7105
+ [key: string]: unknown;
7106
+ };
7107
+ };
7108
+ /**
7109
+ * ImageGenerationToolArgs
7110
+ * @description Typed arguments for image generation — structured sibling of
7111
+ * RetrievalFullContextToolArgs.doc_ext_ids: whether the model decides to call
7112
+ * create_image itself, or the /image command carries a UI-selected value,
7113
+ * this is the one shape both paths read/write (see command_registry.py
7114
+ * CMD_IMAGE and create_image.py generate_image).
7115
+ */
7116
+ ImageGenerationToolArgs: {
7117
+ /** Aspect Ratio */
7118
+ aspect_ratio?: string | null;
7119
+ };
6929
7120
  /**
6930
7121
  * ImportedConversationInfo
6931
7122
  * @description Summary of a single conversation created by an import.
@@ -7110,6 +7301,11 @@ interface components {
7110
7301
  * @default false
7111
7302
  */
7112
7303
  auto_rename: boolean;
7304
+ /**
7305
+ * Auto Sync
7306
+ * @default false
7307
+ */
7308
+ auto_sync: boolean;
7113
7309
  /** Last Sync At */
7114
7310
  last_sync_at?: string | null;
7115
7311
  };
@@ -7237,7 +7433,7 @@ interface components {
7237
7433
  input: string;
7238
7434
  /** Tools */
7239
7435
  tools?: {
7240
- [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'];
7436
+ [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['ImageGenerationTool'];
7241
7437
  };
7242
7438
  /**
7243
7439
  * Workspace Ext Id
@@ -7289,7 +7485,7 @@ interface components {
7289
7485
  content: string;
7290
7486
  /** Tools */
7291
7487
  tools?: {
7292
- [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'];
7488
+ [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['ImageGenerationTool'];
7293
7489
  };
7294
7490
  /** Config Ext Id */
7295
7491
  config_ext_id?: string | null;
@@ -7400,7 +7596,7 @@ interface components {
7400
7596
  content: string;
7401
7597
  /** Tools */
7402
7598
  tools?: {
7403
- [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'];
7599
+ [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['ImageGenerationTool'];
7404
7600
  };
7405
7601
  /** Config Ext Id */
7406
7602
  config_ext_id?: string | null;
@@ -10817,6 +11013,8 @@ interface components {
10817
11013
  skip_duplicates?: boolean | null;
10818
11014
  /** Auto Rename */
10819
11015
  auto_rename?: boolean | null;
11016
+ /** Auto Sync */
11017
+ auto_sync?: boolean | null;
10820
11018
  /** Drive Sync Status */
10821
11019
  drive_sync_status?: string | null;
10822
11020
  /** Drive Last Sync At */
@@ -10831,6 +11029,8 @@ interface components {
10831
11029
  drive_auto_rename?: boolean | null;
10832
11030
  /** Drive Shared */
10833
11031
  drive_shared?: boolean | null;
11032
+ /** Drive Auto Sync */
11033
+ drive_auto_sync?: boolean | null;
10834
11034
  /** Drive Needs Reconsent */
10835
11035
  drive_needs_reconsent?: boolean | null;
10836
11036
  };
@@ -10909,7 +11109,7 @@ interface components {
10909
11109
  content: string;
10910
11110
  /** Tools */
10911
11111
  tools?: {
10912
- [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'];
11112
+ [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['ImageGenerationTool'];
10913
11113
  };
10914
11114
  /** Config Ext Id */
10915
11115
  config_ext_id?: string | null;
@@ -11231,7 +11431,7 @@ interface components {
11231
11431
  * (FastAPI validates + documents the allowed set) and the catalog keys.
11232
11432
  * @enum {string}
11233
11433
  */
11234
- VendorKey: 'microsoft' | 'microsoft_sharepoint' | 'gdrive' | 'gmail' | 'imanage' | 'westlaw' | 'ms365_mail';
11434
+ VendorKey: 'microsoft' | 'microsoft_sharepoint' | 'gdrive' | 'gmail' | 'imanage' | 'westlaw' | 'clio' | 'box' | 'dropbox' | 'onenote' | 'ms365_mail';
11235
11435
  /** VerifyEmailRequest */
11236
11436
  VerifyEmailRequest: {
11237
11437
  /**
@@ -16159,6 +16359,105 @@ interface operations {
16159
16359
  };
16160
16360
  };
16161
16361
  };
16362
+ list_calendars: {
16363
+ parameters: {
16364
+ query?: never;
16365
+ header?: never;
16366
+ path: {
16367
+ vendor: components['schemas']['VendorKey'];
16368
+ };
16369
+ cookie?: never;
16370
+ };
16371
+ requestBody?: never;
16372
+ responses: {
16373
+ /** @description Successful Response */
16374
+ 200: {
16375
+ headers: {
16376
+ [name: string]: unknown;
16377
+ };
16378
+ content: {
16379
+ 'application/json': components['schemas']['CalendarRead'][];
16380
+ };
16381
+ };
16382
+ /** @description Validation Error */
16383
+ 422: {
16384
+ headers: {
16385
+ [name: string]: unknown;
16386
+ };
16387
+ content: {
16388
+ 'application/json': components['schemas']['HTTPValidationError'];
16389
+ };
16390
+ };
16391
+ };
16392
+ };
16393
+ enable_calendar_sync: {
16394
+ parameters: {
16395
+ query?: never;
16396
+ header?: never;
16397
+ path: {
16398
+ vendor: components['schemas']['VendorKey'];
16399
+ };
16400
+ cookie?: never;
16401
+ };
16402
+ requestBody: {
16403
+ content: {
16404
+ 'application/json': components['schemas']['EnableCalendarSyncRequest'];
16405
+ };
16406
+ };
16407
+ responses: {
16408
+ /** @description Successful Response */
16409
+ 200: {
16410
+ headers: {
16411
+ [name: string]: unknown;
16412
+ };
16413
+ content: {
16414
+ 'application/json': components['schemas']['CalendarSyncRead'];
16415
+ };
16416
+ };
16417
+ /** @description Validation Error */
16418
+ 422: {
16419
+ headers: {
16420
+ [name: string]: unknown;
16421
+ };
16422
+ content: {
16423
+ 'application/json': components['schemas']['HTTPValidationError'];
16424
+ };
16425
+ };
16426
+ };
16427
+ };
16428
+ trigger_calendar_sync: {
16429
+ parameters: {
16430
+ query?: {
16431
+ workspace_ext_id?: string | null;
16432
+ };
16433
+ header?: never;
16434
+ path: {
16435
+ vendor: components['schemas']['VendorKey'];
16436
+ };
16437
+ cookie?: never;
16438
+ };
16439
+ requestBody?: never;
16440
+ responses: {
16441
+ /** @description Successful Response */
16442
+ 202: {
16443
+ headers: {
16444
+ [name: string]: unknown;
16445
+ };
16446
+ content: {
16447
+ 'application/json': components['schemas']['SyncTriggerResponse'];
16448
+ };
16449
+ };
16450
+ /** @description Validation Error */
16451
+ 422: {
16452
+ headers: {
16453
+ [name: string]: unknown;
16454
+ };
16455
+ content: {
16456
+ 'application/json': components['schemas']['HTTPValidationError'];
16457
+ };
16458
+ };
16459
+ };
16460
+ };
16162
16461
  create_response: {
16163
16462
  parameters: {
16164
16463
  query?: never;
package/dist/index.d.ts CHANGED
@@ -2692,6 +2692,13 @@ interface paths {
2692
2692
  * re-seals them to the session public key, and posts them here. The server can then
2693
2693
  * use them for sync only while this session is live. Returns 409 when there is no
2694
2694
  * live session to cache into (e.g. it expired between login and this call).
2695
+ *
2696
+ * This is also the auto-sync trigger point: it's called automatically for every
2697
+ * connected vendor right after login (no user action), so it's the one place a
2698
+ * background sync can be launched using a freshly-decrypted token without ever
2699
+ * storing a server-decryptable copy at rest. Any ``DriveSync``/``MailboxSync`` row
2700
+ * for this (user, vendor) with ``auto_sync=True`` and a stale ``last_sync_at`` is
2701
+ * fired as a background task; this never affects the bridge's own success/failure.
2695
2702
  */
2696
2703
  post: operations['bridge_session_connector_tokens'];
2697
2704
  delete?: never;
@@ -3110,6 +3117,70 @@ interface paths {
3110
3117
  patch?: never;
3111
3118
  trace?: never;
3112
3119
  };
3120
+ '/v1/connectors/{vendor}/calendars': {
3121
+ parameters: {
3122
+ query?: never;
3123
+ header?: never;
3124
+ path?: never;
3125
+ cookie?: never;
3126
+ };
3127
+ /**
3128
+ * List the connected account's calendars for selection
3129
+ * @description Return the connected account's calendars.
3130
+ */
3131
+ get: operations['list_calendars'];
3132
+ put?: never;
3133
+ post?: never;
3134
+ delete?: never;
3135
+ options?: never;
3136
+ head?: never;
3137
+ patch?: never;
3138
+ trace?: never;
3139
+ };
3140
+ '/v1/connectors/{vendor}/enable-calendar-sync': {
3141
+ parameters: {
3142
+ query?: never;
3143
+ header?: never;
3144
+ path?: never;
3145
+ cookie?: never;
3146
+ };
3147
+ get?: never;
3148
+ put?: never;
3149
+ /**
3150
+ * Enable calendar sync for a vendor into a target workspace
3151
+ * @description Create or update the user's CalendarSync row for this vendor + workspace.
3152
+ *
3153
+ * Changing the calendar selection clears the delta cursor: the stored one is scoped
3154
+ * to the previous selection, so reusing it would silently skip a newly-added
3155
+ * calendar's history.
3156
+ */
3157
+ post: operations['enable_calendar_sync'];
3158
+ delete?: never;
3159
+ options?: never;
3160
+ head?: never;
3161
+ patch?: never;
3162
+ trace?: never;
3163
+ };
3164
+ '/v1/connectors/{vendor}/calendar-sync': {
3165
+ parameters: {
3166
+ query?: never;
3167
+ header?: never;
3168
+ path?: never;
3169
+ cookie?: never;
3170
+ };
3171
+ get?: never;
3172
+ put?: never;
3173
+ /**
3174
+ * Trigger a calendar sync run in the background
3175
+ * @description Schedule a background calendar sync. 404 if never enabled, 409 if not connected.
3176
+ */
3177
+ post: operations['trigger_calendar_sync'];
3178
+ delete?: never;
3179
+ options?: never;
3180
+ head?: never;
3181
+ patch?: never;
3182
+ trace?: never;
3183
+ };
3113
3184
  '/v1/responses': {
3114
3185
  parameters: {
3115
3186
  query?: never;
@@ -3355,7 +3426,7 @@ interface components {
3355
3426
  * Step
3356
3427
  * @description Lifecycle step. Absent (None) for tool-call steps, which carry `detail` instead.
3357
3428
  */
3358
- step?: ('goal' | 'skill' | 'interjection' | 'planning' | 'tool_progress' | 'goal_progress' | 'answering' | 'evaluation') | null;
3429
+ step?: ('goal' | 'skill' | 'interjection' | 'reply' | 'planning' | 'tool_progress' | 'goal_progress' | 'answering' | 'evaluation') | null;
3359
3430
  /**
3360
3431
  * Label
3361
3432
  * @description Display label for the step. Backend-driven, no frontend mapping needed.
@@ -3965,7 +4036,7 @@ interface components {
3965
4036
  * "API_TYPE": "remote",
3966
4037
  * "ENABLE_THINKING": false,
3967
4038
  * "MODEL_NAME": "Fast",
3968
- * "SYSTEM_INSTRUCTION": "You are a document analysis assistant. Answer questions based strictly on document content.\n\nGuidelines:\n- Only use information explicitly stated in the document\n- Do not infer or assume information not present\n- If information is not found, respond with \"Information not found in document.\"\n- Follow format instructions exactly for each answer\n- Be concise and precise\n- Output answers as plain text only. Do not use Markdown or any other formatting:\n - Do not bold, italicize, or otherwise emphasize any part of the answer.\n - Do not include asterisks (*), underscores (_), backticks (`), or other Markdown markers.\n - Do not prefix answers with bullets, dashes (-), or numbered/lettered enumeration (e.g. \"1.\", \"a)\").\n - Write multi-point answers as flowing sentences, not as a list.",
4039
+ * "SYSTEM_INSTRUCTION": "You are a document analysis assistant. Answer questions based strictly on document content.\n\nYour answers are displayed directly as cell values in a table, so keep every answer as short as possible.\n\nGuidelines:\n- Answer with the value only — never a full sentence. Do not restate the question or add lead-ins such as \"This document is...\" or \"The document describes...\". Good: \"German\". Bad: \"This document is written in German.\"\n- When an answer has multiple values, put each value on its own line: separate values with a newline character. Do not separate them with commas, bullets, dashes, numbering, or by writing them as a sentence.\n- Only use information explicitly stated in the document; do not infer or assume information not present.\n- If the information is not found, respond with exactly \"Not found\".\n- Follow the format instructions exactly for each answer.\n- Output answers as plain text only. Do not use Markdown or any other formatting: no bold, italics, asterisks (*), underscores (_), backticks (`), bullets, or numbered/lettered enumeration.",
3969
4040
  * "MAX_TOKEN_CONTEXT_TO_ANSWER": 200000,
3970
4041
  * "TEMPERATURE": 0.1,
3971
4042
  * "MAX_TOKENS": 0,
@@ -4287,7 +4358,7 @@ interface components {
4287
4358
  * Step
4288
4359
  * @description Which lifecycle moment this item IS — stated, not inferred. A Responses item type (message / function_call / reasoning) is too coarse for the trace: three different reasoning items are the goal, the plan and a goal check, and the answer is a `message` item that is nonetheless a trace row. Clients previously sniffed `label` prefixes to tell them apart, which broke the moment a label was reworded or localised. Absent on plain tool calls (they carry `detail`) and on narration messages (which are body text, not a step).
4289
4360
  */
4290
- step?: ('goal' | 'skill' | 'interjection' | 'planning' | 'tool_progress' | 'goal_progress' | 'answering' | 'evaluation') | null;
4361
+ step?: ('goal' | 'skill' | 'interjection' | 'reply' | 'planning' | 'tool_progress' | 'goal_progress' | 'answering' | 'evaluation') | null;
4291
4362
  /**
4292
4363
  * Label
4293
4364
  * @description Human display label. Backend-owned.
@@ -4535,6 +4606,52 @@ interface components {
4535
4606
  /** Session Id */
4536
4607
  session_id?: string | null;
4537
4608
  };
4609
+ /**
4610
+ * CalendarRead
4611
+ * @description A selectable calendar in the picker.
4612
+ */
4613
+ CalendarRead: {
4614
+ /** Id */
4615
+ id: string;
4616
+ /** Name */
4617
+ name: string;
4618
+ };
4619
+ /**
4620
+ * CalendarSyncRead
4621
+ * @description Public shape for a CalendarSync row returned by the enable endpoint.
4622
+ */
4623
+ CalendarSyncRead: {
4624
+ /**
4625
+ * Id
4626
+ * Format: uuid
4627
+ */
4628
+ id: string;
4629
+ /** Vendor Key */
4630
+ vendor_key: string;
4631
+ /** Target Workspace Id */
4632
+ target_workspace_id: number;
4633
+ /** Enabled */
4634
+ enabled: boolean;
4635
+ /** Status */
4636
+ status: string;
4637
+ /**
4638
+ * Calendars
4639
+ * @default []
4640
+ */
4641
+ calendars: string[];
4642
+ /**
4643
+ * Shared
4644
+ * @default false
4645
+ */
4646
+ shared: boolean;
4647
+ /**
4648
+ * Auto Sync
4649
+ * @default false
4650
+ */
4651
+ auto_sync: boolean;
4652
+ /** Last Sync At */
4653
+ last_sync_at?: string | null;
4654
+ };
4538
4655
  /**
4539
4656
  * ChangePasswordRequest
4540
4657
  * @description Password change request with signature-based auth.
@@ -5139,6 +5256,11 @@ interface components {
5139
5256
  * @default false
5140
5257
  */
5141
5258
  auto_rename: boolean;
5259
+ /**
5260
+ * Auto Sync
5261
+ * @default false
5262
+ */
5263
+ auto_sync: boolean;
5142
5264
  /**
5143
5265
  * Synced Count
5144
5266
  * @default 0
@@ -5982,17 +6104,15 @@ interface components {
5982
6104
  * System Instruction
5983
6105
  * @default You are a document analysis assistant. Answer questions based strictly on document content.
5984
6106
  *
6107
+ * Your answers are displayed directly as cell values in a table, so keep every answer as short as possible.
6108
+ *
5985
6109
  * Guidelines:
5986
- * - Only use information explicitly stated in the document
5987
- * - Do not infer or assume information not present
5988
- * - If information is not found, respond with "Information not found in document."
5989
- * - Follow format instructions exactly for each answer
5990
- * - Be concise and precise
5991
- * - Output answers as plain text only. Do not use Markdown or any other formatting:
5992
- * - Do not bold, italicize, or otherwise emphasize any part of the answer.
5993
- * - Do not include asterisks (*), underscores (_), backticks (`), or other Markdown markers.
5994
- * - Do not prefix answers with bullets, dashes (-), or numbered/lettered enumeration (e.g. "1.", "a)").
5995
- * - Write multi-point answers as flowing sentences, not as a list.
6110
+ * - Answer with the value only — never a full sentence. Do not restate the question or add lead-ins such as "This document is..." or "The document describes...". Good: "German". Bad: "This document is written in German."
6111
+ * - When an answer has multiple values, put each value on its own line: separate values with a newline character. Do not separate them with commas, bullets, dashes, numbering, or by writing them as a sentence.
6112
+ * - Only use information explicitly stated in the document; do not infer or assume information not present.
6113
+ * - If the information is not found, respond with exactly "Not found".
6114
+ * - Follow the format instructions exactly for each answer.
6115
+ * - Output answers as plain text only. Do not use Markdown or any other formatting: no bold, italics, asterisks (*), underscores (_), backticks (`), bullets, or numbered/lettered enumeration.
5996
6116
  */
5997
6117
  SYSTEM_INSTRUCTION: string;
5998
6118
  /**
@@ -6129,6 +6249,11 @@ interface components {
6129
6249
  * @default false
6130
6250
  */
6131
6251
  shared: boolean;
6252
+ /**
6253
+ * Auto Sync
6254
+ * @default false
6255
+ */
6256
+ auto_sync: boolean;
6132
6257
  /** Last Sync At */
6133
6258
  last_sync_at?: string | null;
6134
6259
  };
@@ -6261,6 +6386,28 @@ interface components {
6261
6386
  */
6262
6387
  QUERY_PREFIX: string;
6263
6388
  };
6389
+ /** EnableCalendarSyncRequest */
6390
+ EnableCalendarSyncRequest: {
6391
+ /** Workspace Ext Id */
6392
+ workspace_ext_id: string;
6393
+ /** Calendars */
6394
+ calendars: string[];
6395
+ /**
6396
+ * Backfill Days
6397
+ * @default 30
6398
+ */
6399
+ backfill_days: number;
6400
+ /**
6401
+ * Shared
6402
+ * @default false
6403
+ */
6404
+ shared: boolean;
6405
+ /**
6406
+ * Auto Sync
6407
+ * @default false
6408
+ */
6409
+ auto_sync: boolean;
6410
+ };
6264
6411
  /** EnableDriveSyncRequest */
6265
6412
  EnableDriveSyncRequest: {
6266
6413
  /** Workspace Ext Id */
@@ -6282,6 +6429,11 @@ interface components {
6282
6429
  * @default false
6283
6430
  */
6284
6431
  shared: boolean;
6432
+ /**
6433
+ * Auto Sync
6434
+ * @default false
6435
+ */
6436
+ auto_sync: boolean;
6285
6437
  };
6286
6438
  /** EnableSyncRequest */
6287
6439
  EnableSyncRequest: {
@@ -6306,6 +6458,11 @@ interface components {
6306
6458
  * @default false
6307
6459
  */
6308
6460
  auto_rename: boolean;
6461
+ /**
6462
+ * Auto Sync
6463
+ * @default false
6464
+ */
6465
+ auto_sync: boolean;
6309
6466
  };
6310
6467
  /**
6311
6468
  * ErrorMessage
@@ -6926,6 +7083,40 @@ interface components {
6926
7083
  */
6927
7084
  TEMPERATURE: number;
6928
7085
  };
7086
+ /** ImageGenerationTool */
7087
+ ImageGenerationTool: {
7088
+ /**
7089
+ * @description discriminator enum property added by openapi-typescript
7090
+ * @enum {string}
7091
+ */
7092
+ name: 'image_generation';
7093
+ /**
7094
+ * Description
7095
+ * @default image generation
7096
+ */
7097
+ description: string;
7098
+ /** @default {} */
7099
+ tool_args: components['schemas']['ImageGenerationToolArgs'];
7100
+ /**
7101
+ * Tool Responses
7102
+ * @default {}
7103
+ */
7104
+ tool_responses: {
7105
+ [key: string]: unknown;
7106
+ };
7107
+ };
7108
+ /**
7109
+ * ImageGenerationToolArgs
7110
+ * @description Typed arguments for image generation — structured sibling of
7111
+ * RetrievalFullContextToolArgs.doc_ext_ids: whether the model decides to call
7112
+ * create_image itself, or the /image command carries a UI-selected value,
7113
+ * this is the one shape both paths read/write (see command_registry.py
7114
+ * CMD_IMAGE and create_image.py generate_image).
7115
+ */
7116
+ ImageGenerationToolArgs: {
7117
+ /** Aspect Ratio */
7118
+ aspect_ratio?: string | null;
7119
+ };
6929
7120
  /**
6930
7121
  * ImportedConversationInfo
6931
7122
  * @description Summary of a single conversation created by an import.
@@ -7110,6 +7301,11 @@ interface components {
7110
7301
  * @default false
7111
7302
  */
7112
7303
  auto_rename: boolean;
7304
+ /**
7305
+ * Auto Sync
7306
+ * @default false
7307
+ */
7308
+ auto_sync: boolean;
7113
7309
  /** Last Sync At */
7114
7310
  last_sync_at?: string | null;
7115
7311
  };
@@ -7237,7 +7433,7 @@ interface components {
7237
7433
  input: string;
7238
7434
  /** Tools */
7239
7435
  tools?: {
7240
- [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'];
7436
+ [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['ImageGenerationTool'];
7241
7437
  };
7242
7438
  /**
7243
7439
  * Workspace Ext Id
@@ -7289,7 +7485,7 @@ interface components {
7289
7485
  content: string;
7290
7486
  /** Tools */
7291
7487
  tools?: {
7292
- [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'];
7488
+ [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['ImageGenerationTool'];
7293
7489
  };
7294
7490
  /** Config Ext Id */
7295
7491
  config_ext_id?: string | null;
@@ -7400,7 +7596,7 @@ interface components {
7400
7596
  content: string;
7401
7597
  /** Tools */
7402
7598
  tools?: {
7403
- [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'];
7599
+ [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['ImageGenerationTool'];
7404
7600
  };
7405
7601
  /** Config Ext Id */
7406
7602
  config_ext_id?: string | null;
@@ -10817,6 +11013,8 @@ interface components {
10817
11013
  skip_duplicates?: boolean | null;
10818
11014
  /** Auto Rename */
10819
11015
  auto_rename?: boolean | null;
11016
+ /** Auto Sync */
11017
+ auto_sync?: boolean | null;
10820
11018
  /** Drive Sync Status */
10821
11019
  drive_sync_status?: string | null;
10822
11020
  /** Drive Last Sync At */
@@ -10831,6 +11029,8 @@ interface components {
10831
11029
  drive_auto_rename?: boolean | null;
10832
11030
  /** Drive Shared */
10833
11031
  drive_shared?: boolean | null;
11032
+ /** Drive Auto Sync */
11033
+ drive_auto_sync?: boolean | null;
10834
11034
  /** Drive Needs Reconsent */
10835
11035
  drive_needs_reconsent?: boolean | null;
10836
11036
  };
@@ -10909,7 +11109,7 @@ interface components {
10909
11109
  content: string;
10910
11110
  /** Tools */
10911
11111
  tools?: {
10912
- [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'];
11112
+ [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['ImageGenerationTool'];
10913
11113
  };
10914
11114
  /** Config Ext Id */
10915
11115
  config_ext_id?: string | null;
@@ -11231,7 +11431,7 @@ interface components {
11231
11431
  * (FastAPI validates + documents the allowed set) and the catalog keys.
11232
11432
  * @enum {string}
11233
11433
  */
11234
- VendorKey: 'microsoft' | 'microsoft_sharepoint' | 'gdrive' | 'gmail' | 'imanage' | 'westlaw' | 'ms365_mail';
11434
+ VendorKey: 'microsoft' | 'microsoft_sharepoint' | 'gdrive' | 'gmail' | 'imanage' | 'westlaw' | 'clio' | 'box' | 'dropbox' | 'onenote' | 'ms365_mail';
11235
11435
  /** VerifyEmailRequest */
11236
11436
  VerifyEmailRequest: {
11237
11437
  /**
@@ -16159,6 +16359,105 @@ interface operations {
16159
16359
  };
16160
16360
  };
16161
16361
  };
16362
+ list_calendars: {
16363
+ parameters: {
16364
+ query?: never;
16365
+ header?: never;
16366
+ path: {
16367
+ vendor: components['schemas']['VendorKey'];
16368
+ };
16369
+ cookie?: never;
16370
+ };
16371
+ requestBody?: never;
16372
+ responses: {
16373
+ /** @description Successful Response */
16374
+ 200: {
16375
+ headers: {
16376
+ [name: string]: unknown;
16377
+ };
16378
+ content: {
16379
+ 'application/json': components['schemas']['CalendarRead'][];
16380
+ };
16381
+ };
16382
+ /** @description Validation Error */
16383
+ 422: {
16384
+ headers: {
16385
+ [name: string]: unknown;
16386
+ };
16387
+ content: {
16388
+ 'application/json': components['schemas']['HTTPValidationError'];
16389
+ };
16390
+ };
16391
+ };
16392
+ };
16393
+ enable_calendar_sync: {
16394
+ parameters: {
16395
+ query?: never;
16396
+ header?: never;
16397
+ path: {
16398
+ vendor: components['schemas']['VendorKey'];
16399
+ };
16400
+ cookie?: never;
16401
+ };
16402
+ requestBody: {
16403
+ content: {
16404
+ 'application/json': components['schemas']['EnableCalendarSyncRequest'];
16405
+ };
16406
+ };
16407
+ responses: {
16408
+ /** @description Successful Response */
16409
+ 200: {
16410
+ headers: {
16411
+ [name: string]: unknown;
16412
+ };
16413
+ content: {
16414
+ 'application/json': components['schemas']['CalendarSyncRead'];
16415
+ };
16416
+ };
16417
+ /** @description Validation Error */
16418
+ 422: {
16419
+ headers: {
16420
+ [name: string]: unknown;
16421
+ };
16422
+ content: {
16423
+ 'application/json': components['schemas']['HTTPValidationError'];
16424
+ };
16425
+ };
16426
+ };
16427
+ };
16428
+ trigger_calendar_sync: {
16429
+ parameters: {
16430
+ query?: {
16431
+ workspace_ext_id?: string | null;
16432
+ };
16433
+ header?: never;
16434
+ path: {
16435
+ vendor: components['schemas']['VendorKey'];
16436
+ };
16437
+ cookie?: never;
16438
+ };
16439
+ requestBody?: never;
16440
+ responses: {
16441
+ /** @description Successful Response */
16442
+ 202: {
16443
+ headers: {
16444
+ [name: string]: unknown;
16445
+ };
16446
+ content: {
16447
+ 'application/json': components['schemas']['SyncTriggerResponse'];
16448
+ };
16449
+ };
16450
+ /** @description Validation Error */
16451
+ 422: {
16452
+ headers: {
16453
+ [name: string]: unknown;
16454
+ };
16455
+ content: {
16456
+ 'application/json': components['schemas']['HTTPValidationError'];
16457
+ };
16458
+ };
16459
+ };
16460
+ };
16162
16461
  create_response: {
16163
16462
  parameters: {
16164
16463
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/client",
3
- "version": "0.3.154",
3
+ "version": "0.3.156",
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",