@arbidocs/client 0.4.124 → 0.4.126

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
@@ -1185,6 +1185,73 @@ interface paths {
1185
1185
  patch?: never;
1186
1186
  trace?: never;
1187
1187
  };
1188
+ '/v1/storage/projects': {
1189
+ parameters: {
1190
+ query?: never;
1191
+ header?: never;
1192
+ path?: never;
1193
+ cookie?: never;
1194
+ };
1195
+ /**
1196
+ * List Storage Projects
1197
+ * @description Storage used by each project: everything it pays for (trash included, until purged) against its limit, by
1198
+ * kind (document, version, derived, coedit, mail, mail_draft, chat_attachment, recording, other), with the trash
1199
+ * part, and — for a personal project — its mail by folder. ``scope=deployment`` adds the deployment's totals
1200
+ * against the Box licence.
1201
+ */
1202
+ get: operations['list_storage_projects'];
1203
+ put?: never;
1204
+ post?: never;
1205
+ delete?: never;
1206
+ options?: never;
1207
+ head?: never;
1208
+ patch?: never;
1209
+ trace?: never;
1210
+ };
1211
+ '/v1/storage/items': {
1212
+ parameters: {
1213
+ query?: never;
1214
+ header?: never;
1215
+ path?: never;
1216
+ cookie?: never;
1217
+ };
1218
+ /**
1219
+ * List Storage Items
1220
+ * @description The largest items stored, largest first: a document (with all its versions, renditions and co-editing
1221
+ * state, ``breakdown``), a mail message, a recording, a chat attachment, a draft. ``state=trash`` is the
1222
+ * Recently deleted list (still counted until purged). Names are not included: ``ref`` is the item's external id
1223
+ * for the client to resolve where it can read it.
1224
+ */
1225
+ get: operations['list_storage_items'];
1226
+ put?: never;
1227
+ post?: never;
1228
+ delete?: never;
1229
+ options?: never;
1230
+ head?: never;
1231
+ patch?: never;
1232
+ trace?: never;
1233
+ };
1234
+ '/v1/storage/snapshots': {
1235
+ parameters: {
1236
+ query?: never;
1237
+ header?: never;
1238
+ path?: never;
1239
+ cookie?: never;
1240
+ };
1241
+ /**
1242
+ * List Storage Snapshots
1243
+ * @description The deployment's storage day by day (what each nightly reconcile found), newest first. Box admins and
1244
+ * billing managers.
1245
+ */
1246
+ get: operations['list_storage_snapshots'];
1247
+ put?: never;
1248
+ post?: never;
1249
+ delete?: never;
1250
+ options?: never;
1251
+ head?: never;
1252
+ patch?: never;
1253
+ trace?: never;
1254
+ };
1188
1255
  '/v1/user/identity': {
1189
1256
  parameters: {
1190
1257
  query?: never;
@@ -2318,6 +2385,29 @@ interface paths {
2318
2385
  patch?: never;
2319
2386
  trace?: never;
2320
2387
  };
2388
+ '/v1/document/{document_ext_id}/finalise-translation': {
2389
+ parameters: {
2390
+ query?: never;
2391
+ header?: never;
2392
+ path?: never;
2393
+ cookie?: never;
2394
+ };
2395
+ get?: never;
2396
+ put?: never;
2397
+ /**
2398
+ * Finalise Translation Endpoint
2399
+ * @description Save a translation's current version as a new PDF document, labelled "Translation" and linked to the
2400
+ * original it translates (``translation``) and to the translation version (``final``). The editable
2401
+ * translation is unchanged. 409 while the translation's PDF is still being prepared; 400 for a document that is
2402
+ * not a translation.
2403
+ */
2404
+ post: operations['finalise_translation'];
2405
+ delete?: never;
2406
+ options?: never;
2407
+ head?: never;
2408
+ patch?: never;
2409
+ trace?: never;
2410
+ };
2321
2411
  '/v1/document/doctag/generate': {
2322
2412
  parameters: {
2323
2413
  query?: never;
@@ -8894,6 +8984,21 @@ interface components {
8894
8984
  * }
8895
8985
  */
8896
8986
  DoctagLLM: components['schemas']['DoctagLLMConfig'];
8987
+ /**
8988
+ * @default {
8989
+ * "API_TYPE": "remote",
8990
+ * "ENABLE_THINKING": false,
8991
+ * "MODEL_NAME": "Fast",
8992
+ * "SYSTEM_INSTRUCTION": "You are a professional translator of legal, commercial and technical documents.\n\nYou translate the numbered passages you are given into the target language, faithfully and completely:\n- Translate every passage in full. Never summarise, shorten, merge, split, reorder, explain or comment.\n- Keep the Markdown structure of each passage exactly: headings (#), lists, emphasis, tables (same rows and columns), links and line breaks.\n- Keep unchanged: numbers, dates as written, amounts, currencies, clause and section numbering, cross-references, citations, case names, statute names, email addresses, URLs and code.\n- Keep proper names of people, companies and places as they are written, unless the glossary gives a translation.\n- Use the glossary's translation for every glossary term, every time it occurs.\n- A defined term (a capitalised or quoted term given a meaning in the document) is translated the same way everywhere.\n- A passage already in the target language, or with nothing to translate (a number, a signature line, a blank form field), is returned as it is.\n- The context passages before and after are there only so the translation reads on from its neighbours. Never translate or return them.",
8993
+ * "TEMPERATURE": 0.2,
8994
+ * "MAX_TOKENS": 0,
8995
+ * "WINDOW_TOKENS": 3000,
8996
+ * "CONTEXT_TOKENS": 600,
8997
+ * "GLOSSARY_TOKENS": 6000,
8998
+ * "MAX_CONCURRENT": 8
8999
+ * }
9000
+ */
9001
+ TranslationLLM: components['schemas']['TranslationLLMConfig'];
8897
9002
  /**
8898
9003
  * @default {
8899
9004
  * "API_TYPE": "remote",
@@ -11803,6 +11908,7 @@ interface components {
11803
11908
  TitleLLM?: components['schemas']['TitleLLMConfig'] | null;
11804
11909
  SummariseLLM?: components['schemas']['SummariseLLMConfig'] | null;
11805
11910
  DoctagLLM?: components['schemas']['DoctagLLMConfig'] | null;
11911
+ TranslationLLM?: components['schemas']['TranslationLLMConfig'] | null;
11806
11912
  MemoryLLM?: components['schemas']['MemoryLLMConfig'] | null;
11807
11913
  PlanningLLM?: components['schemas']['PlanningLLMConfig'] | null;
11808
11914
  FilterPlanLLM?: components['schemas']['FilterPlanLLMConfig'] | null;
@@ -13529,7 +13635,7 @@ interface components {
13529
13635
  * Versions are not relations: they live inside their document (``docs.versions``).
13530
13636
  * @enum {string}
13531
13637
  */
13532
- DocRelationRole: 'crop' | 'redline_base' | 'redline_revised' | 'redaction' | 'annotated' | 'production';
13638
+ DocRelationRole: 'crop' | 'redline_base' | 'redline_revised' | 'redaction' | 'annotated' | 'production' | 'translation' | 'final';
13533
13639
  /** DocResponse */
13534
13640
  DocResponse: {
13535
13641
  /** External Id */
@@ -14843,6 +14949,27 @@ interface components {
14843
14949
  */
14844
14950
  MAX_TOKENS: number;
14845
14951
  };
14952
+ /**
14953
+ * FinalisedTranslationResponse
14954
+ * @description The new PDF a finalised translation was saved as.
14955
+ */
14956
+ FinalisedTranslationResponse: {
14957
+ /**
14958
+ * Document Ext Id
14959
+ * @description The new PDF document
14960
+ */
14961
+ document_ext_id: string;
14962
+ /**
14963
+ * Translation Ref
14964
+ * @description The translation version made final (doc-…@vN)
14965
+ */
14966
+ translation_ref: string;
14967
+ /**
14968
+ * Source Ref
14969
+ * @description The original version it translates (doc-…@vN)
14970
+ */
14971
+ source_ref?: string | null;
14972
+ };
14846
14973
  /** FindTimeRequest */
14847
14974
  FindTimeRequest: {
14848
14975
  /** Attendees */
@@ -16142,6 +16269,8 @@ interface components {
16142
16269
  id: string;
16143
16270
  /** Status */
16144
16271
  status: string;
16272
+ /** Delivery Status */
16273
+ delivery_status?: ('sent' | 'delivered' | 'delayed' | 'partially_bounced' | 'bounced') | null;
16145
16274
  };
16146
16275
  /** MailServerProfileRead */
16147
16276
  MailServerProfileRead: {
@@ -17028,7 +17157,7 @@ interface components {
17028
17157
  * Type is self-descriptive, no need to parse content field.
17029
17158
  * @enum {string}
17030
17159
  */
17031
- NotificationType: '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' | 'box_seat_refused' | 'native_mail_received' | 'mail_draft_ready' | 'email_reply' | 'quota_threshold_50' | 'quota_threshold_90' | 'quota_threshold_100' | 'doc_shared' | 'docx_mention' | 'signature_requested' | 'signature_completed' | 'signature_declined' | 'workspace_access_request' | 'conversation_ready' | 'conversation_done' | 'conversation_notified' | 'workflow_failed' | 'agent_input_requested' | 'workflow_completed' | 'workflow_signal' | 'step_ready' | 'task_started' | 'task_completed' | 'mailbox_sync_complete' | 'drive_sync_complete' | 'activity' | 'mention' | 'thread_reply' | 'document_activity' | 'call_missed' | 'calendar_invite' | 'calendar_update' | 'calendar_cancel' | 'calendar_reply' | 'calendar_counter' | 'calendar_reminder' | 'calendar_share';
17160
+ NotificationType: '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' | 'box_seat_refused' | 'native_mail_received' | 'mail_draft_ready' | 'email_reply' | 'quota_threshold_50' | 'quota_threshold_90' | 'quota_threshold_100' | 'storage_quota_exceeded' | 'doc_shared' | 'docx_mention' | 'signature_requested' | 'signature_completed' | 'signature_declined' | 'workspace_access_request' | 'conversation_ready' | 'conversation_done' | 'conversation_notified' | 'workflow_failed' | 'agent_input_requested' | 'workflow_completed' | 'workflow_signal' | 'step_ready' | 'task_started' | 'task_completed' | 'mailbox_sync_complete' | 'drive_sync_complete' | 'activity' | 'mention' | 'thread_reply' | 'document_activity' | 'document_processed' | 'call_missed' | 'calendar_invite' | 'calendar_update' | 'calendar_cancel' | 'calendar_reply' | 'calendar_counter' | 'calendar_reminder' | 'calendar_share';
17032
17161
  /**
17033
17162
  * NotificationUpdate
17034
17163
  * @description Single notification update for bulk PATCH.
@@ -19485,6 +19614,8 @@ interface components {
19485
19614
  metadata?: {
19486
19615
  [key: string]: unknown;
19487
19616
  } | null;
19617
+ /** Conversation Ext Id */
19618
+ conversation_ext_id?: string | null;
19488
19619
  };
19489
19620
  /**
19490
19621
  * ResponsesAPIUsage
@@ -20603,7 +20734,7 @@ interface components {
20603
20734
  * SkillSummaryResponse
20604
20735
  * @description One row of ``GET /v1/assistant/skills``.
20605
20736
  *
20606
- * Lightweight projection — never includes the SKILL.md body. Clients
20737
+ * Lightweight projection — never includes a document skill's SKILL.md body (a built-in carries its own). Clients
20607
20738
  * use this to populate slash-command autocomplete (name / description
20608
20739
  * / arg_hint) and to know which doc to fetch when the user wants to
20609
20740
  * inspect the full source via ``GET /v1/document/.../parsed-content``.
@@ -20645,23 +20776,22 @@ interface components {
20645
20776
  skill_type: string;
20646
20777
  /**
20647
20778
  * Workspace Ext Id
20648
- * @description External ID of the workspace the skill lives in
20779
+ * @description External ID of the workspace the skill lives in (None for a built-in skill)
20649
20780
  */
20650
- workspace_ext_id: string;
20781
+ workspace_ext_id?: string | null;
20651
20782
  /**
20652
20783
  * Doc Ext Id
20653
- * @description External ID of the SKILL.md doc (use for /parsed-content)
20784
+ * @description External ID of the SKILL.md doc (use for /parsed-content); None for a built-in skill
20654
20785
  */
20655
- doc_ext_id: string;
20786
+ doc_ext_id?: string | null;
20656
20787
  /**
20657
20788
  * Updated At
20658
- * Format: date-time
20659
20789
  * @description Last modification time of the main file
20660
20790
  */
20661
- updated_at: string;
20791
+ updated_at?: string | null;
20662
20792
  /**
20663
20793
  * Visibility
20664
- * @description ``mine`` (private to the caller) or ``global`` (shared into the marketplace)
20794
+ * @description ``mine`` (private to the caller), ``global`` (shared into the marketplace) or ``builtin`` (shipped with ARBI)
20665
20795
  * @default mine
20666
20796
  */
20667
20797
  visibility: string;
@@ -20671,6 +20801,11 @@ interface components {
20671
20801
  * @default true
20672
20802
  */
20673
20803
  is_owner: boolean;
20804
+ /**
20805
+ * Content
20806
+ * @description The SKILL.md of a built-in skill (it has no document); None for document skills
20807
+ */
20808
+ content?: string | null;
20674
20809
  };
20675
20810
  /**
20676
20811
  * SkillsListResponse
@@ -20926,6 +21061,157 @@ interface components {
20926
21061
  */
20927
21062
  model?: string | null;
20928
21063
  };
21064
+ /**
21065
+ * StorageDeploymentUsage
21066
+ * @description The whole deployment (Box admins / billing managers): every project's bytes against the licence.
21067
+ */
21068
+ StorageDeploymentUsage: {
21069
+ /** Bytes */
21070
+ bytes: number;
21071
+ /** Trash Bytes */
21072
+ trash_bytes: number;
21073
+ /** Limit Bytes */
21074
+ limit_bytes: number | null;
21075
+ /** Orphaned Bytes */
21076
+ orphaned_bytes: number;
21077
+ /** Unattributed Bytes */
21078
+ unattributed_bytes: number;
21079
+ /** By Kind */
21080
+ by_kind: components['schemas']['StorageKindUsage'][];
21081
+ };
21082
+ /**
21083
+ * StorageItem
21084
+ * @description One thing a person would delete: a document (all its versions and files), a mail message, a recording, a chat
21085
+ * attachment, a draft. Names are not here — they are encrypted; clients resolve ``ref`` where they can read it.
21086
+ */
21087
+ StorageItem: {
21088
+ /** Kind */
21089
+ kind: string;
21090
+ /** Ref */
21091
+ ref: string | null;
21092
+ /** Project Ext Id */
21093
+ project_ext_id: string | null;
21094
+ /** Workspace Ext Id */
21095
+ workspace_ext_id: string | null;
21096
+ /** Workspace Name */
21097
+ workspace_name: string | null;
21098
+ /** Bytes */
21099
+ bytes: number;
21100
+ /** Trash Bytes */
21101
+ trash_bytes: number;
21102
+ /** Objects */
21103
+ objects: number;
21104
+ /** Breakdown */
21105
+ breakdown: {
21106
+ [key: string]: number;
21107
+ };
21108
+ /** Trashed */
21109
+ trashed: boolean;
21110
+ /** Folder */
21111
+ folder?: string | null;
21112
+ /** Created At */
21113
+ created_at: string | null;
21114
+ };
21115
+ /** StorageItemsResponse */
21116
+ StorageItemsResponse: {
21117
+ /** Items */
21118
+ items: components['schemas']['StorageItem'][];
21119
+ /** Total */
21120
+ total: number;
21121
+ };
21122
+ /** StorageKindUsage */
21123
+ StorageKindUsage: {
21124
+ /** Kind */
21125
+ kind: string;
21126
+ /** Bytes */
21127
+ bytes: number;
21128
+ /** Trash Bytes */
21129
+ trash_bytes: number;
21130
+ /** Objects */
21131
+ objects: number;
21132
+ };
21133
+ /**
21134
+ * StorageProjectUsage
21135
+ * @description A project's stored bytes. ``bytes`` counts everything it pays for (trash included) against ``limit_bytes``
21136
+ * (None: no limit, billing off); ``trash_bytes`` is the part that is deleted but not yet purged.
21137
+ */
21138
+ StorageProjectUsage: {
21139
+ /** Project Ext Id */
21140
+ project_ext_id: string;
21141
+ /** Name */
21142
+ name: string;
21143
+ /** Personal */
21144
+ personal: boolean;
21145
+ /** Owner Ext Id */
21146
+ owner_ext_id?: string | null;
21147
+ /** Owner Email */
21148
+ owner_email?: string | null;
21149
+ /** Bytes */
21150
+ bytes: number;
21151
+ /** Trash Bytes */
21152
+ trash_bytes: number;
21153
+ /** Limit Bytes */
21154
+ limit_bytes: number | null;
21155
+ /** By Kind */
21156
+ by_kind: components['schemas']['StorageKindUsage'][];
21157
+ /** Workspaces */
21158
+ workspaces?: components['schemas']['StorageWorkspaceUsage'][] | null;
21159
+ /** Mail Folders */
21160
+ mail_folders?: {
21161
+ [key: string]: number;
21162
+ } | null;
21163
+ /** Last Activity At */
21164
+ last_activity_at?: string | null;
21165
+ };
21166
+ /** StorageProjectsResponse */
21167
+ StorageProjectsResponse: {
21168
+ /** Projects */
21169
+ projects: components['schemas']['StorageProjectUsage'][];
21170
+ deployment?: components['schemas']['StorageDeploymentUsage'] | null;
21171
+ };
21172
+ /** StorageSnapshotRead */
21173
+ StorageSnapshotRead: {
21174
+ /**
21175
+ * Taken At
21176
+ * Format: date-time
21177
+ */
21178
+ taken_at: string;
21179
+ /** Bucket Bytes */
21180
+ bucket_bytes: number;
21181
+ /** Bucket Objects */
21182
+ bucket_objects: number;
21183
+ /** Counted Bytes */
21184
+ counted_bytes: number;
21185
+ /** Trash Bytes */
21186
+ trash_bytes: number;
21187
+ /** Orphaned Bytes */
21188
+ orphaned_bytes: number;
21189
+ /** Unattributed Bytes */
21190
+ unattributed_bytes: number;
21191
+ /** By Kind */
21192
+ by_kind: {
21193
+ [key: string]: number;
21194
+ };
21195
+ /** Repaired */
21196
+ repaired: {
21197
+ [key: string]: number;
21198
+ };
21199
+ };
21200
+ /** StorageWorkspaceUsage */
21201
+ StorageWorkspaceUsage: {
21202
+ /** Workspace Ext Id */
21203
+ workspace_ext_id: string;
21204
+ /** Name */
21205
+ name: string;
21206
+ /** Deleted */
21207
+ deleted: boolean;
21208
+ /** Bytes */
21209
+ bytes: number;
21210
+ /** Trash Bytes */
21211
+ trash_bytes: number;
21212
+ /** By Kind */
21213
+ by_kind: components['schemas']['StorageKindUsage'][];
21214
+ };
20929
21215
  /** StreamEventsTool */
20930
21216
  StreamEventsTool: {
20931
21217
  /**
@@ -22103,6 +22389,87 @@ interface components {
22103
22389
  */
22104
22390
  issues: components['schemas']['TransferItemResult'][];
22105
22391
  };
22392
+ /**
22393
+ * TranslationLLMConfig
22394
+ * @description Configuration for TranslationLLM — translates a document passage by passage (``translate_document``).
22395
+ *
22396
+ * The source text is never sent back through the model: each call returns only the translations of the passages
22397
+ * it was given, in order. Terminology is agreed once per document (a glossary pass over its opening), and every
22398
+ * window sees its neighbouring source passages as read-only context, so windows translate concurrently yet read
22399
+ * as one text.
22400
+ */
22401
+ TranslationLLMConfig: {
22402
+ /**
22403
+ * Api Type
22404
+ * @description The inference type (local or remote).
22405
+ * @default remote
22406
+ * @enum {string}
22407
+ */
22408
+ API_TYPE: 'local' | 'remote';
22409
+ /**
22410
+ * Enable Thinking
22411
+ * @description Enable reasoning/thinking mode.
22412
+ * @default false
22413
+ */
22414
+ ENABLE_THINKING: boolean;
22415
+ /**
22416
+ * Model Name
22417
+ * @description The name of the non-reasoning model to be used.
22418
+ * @default Fast
22419
+ */
22420
+ MODEL_NAME: string;
22421
+ /**
22422
+ * System Instruction
22423
+ * @default You are a professional translator of legal, commercial and technical documents.
22424
+ *
22425
+ * You translate the numbered passages you are given into the target language, faithfully and completely:
22426
+ * - Translate every passage in full. Never summarise, shorten, merge, split, reorder, explain or comment.
22427
+ * - Keep the Markdown structure of each passage exactly: headings (#), lists, emphasis, tables (same rows and columns), links and line breaks.
22428
+ * - Keep unchanged: numbers, dates as written, amounts, currencies, clause and section numbering, cross-references, citations, case names, statute names, email addresses, URLs and code.
22429
+ * - Keep proper names of people, companies and places as they are written, unless the glossary gives a translation.
22430
+ * - Use the glossary's translation for every glossary term, every time it occurs.
22431
+ * - A defined term (a capitalised or quoted term given a meaning in the document) is translated the same way everywhere.
22432
+ * - A passage already in the target language, or with nothing to translate (a number, a signature line, a blank form field), is returned as it is.
22433
+ * - The context passages before and after are there only so the translation reads on from its neighbours. Never translate or return them.
22434
+ */
22435
+ SYSTEM_INSTRUCTION: string;
22436
+ /**
22437
+ * Temperature
22438
+ * @description Low temperature for faithful translation.
22439
+ * @default 0.2
22440
+ */
22441
+ TEMPERATURE: number;
22442
+ /**
22443
+ * Max Tokens
22444
+ * @description Max output tokens per call; 0 = uncapped (run to EOS).
22445
+ * @default 0
22446
+ */
22447
+ MAX_TOKENS: number;
22448
+ /**
22449
+ * Window Tokens
22450
+ * @description Source tokens translated per call (whole passages; a larger passage goes alone).
22451
+ * @default 3000
22452
+ */
22453
+ WINDOW_TOKENS: number;
22454
+ /**
22455
+ * Context Tokens
22456
+ * @description Source tokens before and after a window shown as read-only context.
22457
+ * @default 600
22458
+ */
22459
+ CONTEXT_TOKENS: number;
22460
+ /**
22461
+ * Glossary Tokens
22462
+ * @description Source tokens read (headings first) to agree terminology before translating.
22463
+ * @default 6000
22464
+ */
22465
+ GLOSSARY_TOKENS: number;
22466
+ /**
22467
+ * Max Concurrent
22468
+ * @description Maximum concurrent translation calls.
22469
+ * @default 8
22470
+ */
22471
+ MAX_CONCURRENT: number;
22472
+ };
22106
22473
  /**
22107
22474
  * UpdateAgentRequest
22108
22475
  * @description Mutable agent fields. Only appearance for now — identity (name/email/keys)
@@ -25384,6 +25751,113 @@ interface operations {
25384
25751
  };
25385
25752
  };
25386
25753
  };
25754
+ list_storage_projects: {
25755
+ parameters: {
25756
+ query?: {
25757
+ /** @description mine: the caller's projects; deployment: every project (Box admins, managers) */
25758
+ scope?: 'mine' | 'deployment';
25759
+ /** @description Only this project (external id) */
25760
+ project?: string | null;
25761
+ /** @description workspaces: each workspace's usage */
25762
+ include?: 'workspaces'[];
25763
+ };
25764
+ header?: never;
25765
+ path?: never;
25766
+ cookie?: never;
25767
+ };
25768
+ requestBody?: never;
25769
+ responses: {
25770
+ /** @description Successful Response */
25771
+ 200: {
25772
+ headers: {
25773
+ [name: string]: unknown;
25774
+ };
25775
+ content: {
25776
+ 'application/json': components['schemas']['StorageProjectsResponse'];
25777
+ };
25778
+ };
25779
+ /** @description Validation Error */
25780
+ 422: {
25781
+ headers: {
25782
+ [name: string]: unknown;
25783
+ };
25784
+ content: {
25785
+ 'application/json': components['schemas']['HTTPValidationError'];
25786
+ };
25787
+ };
25788
+ };
25789
+ };
25790
+ list_storage_items: {
25791
+ parameters: {
25792
+ query?: {
25793
+ /** @description mine: the caller's projects; deployment: every project (Box admins, managers) */
25794
+ scope?: 'mine' | 'deployment';
25795
+ /** @description Only this project (external id) */
25796
+ project?: string | null;
25797
+ /** @description Only this workspace (external id) */
25798
+ workspace?: string | null;
25799
+ kind?: ('document' | 'mail' | 'mail_draft' | 'recording' | 'chat_attachment' | 'other') | null;
25800
+ state?: 'live' | 'trash' | 'all';
25801
+ limit?: number;
25802
+ offset?: number;
25803
+ };
25804
+ header?: never;
25805
+ path?: never;
25806
+ cookie?: never;
25807
+ };
25808
+ requestBody?: never;
25809
+ responses: {
25810
+ /** @description Successful Response */
25811
+ 200: {
25812
+ headers: {
25813
+ [name: string]: unknown;
25814
+ };
25815
+ content: {
25816
+ 'application/json': components['schemas']['StorageItemsResponse'];
25817
+ };
25818
+ };
25819
+ /** @description Validation Error */
25820
+ 422: {
25821
+ headers: {
25822
+ [name: string]: unknown;
25823
+ };
25824
+ content: {
25825
+ 'application/json': components['schemas']['HTTPValidationError'];
25826
+ };
25827
+ };
25828
+ };
25829
+ };
25830
+ list_storage_snapshots: {
25831
+ parameters: {
25832
+ query?: {
25833
+ limit?: number;
25834
+ };
25835
+ header?: never;
25836
+ path?: never;
25837
+ cookie?: never;
25838
+ };
25839
+ requestBody?: never;
25840
+ responses: {
25841
+ /** @description Successful Response */
25842
+ 200: {
25843
+ headers: {
25844
+ [name: string]: unknown;
25845
+ };
25846
+ content: {
25847
+ 'application/json': components['schemas']['StorageSnapshotRead'][];
25848
+ };
25849
+ };
25850
+ /** @description Validation Error */
25851
+ 422: {
25852
+ headers: {
25853
+ [name: string]: unknown;
25854
+ };
25855
+ content: {
25856
+ 'application/json': components['schemas']['HTTPValidationError'];
25857
+ };
25858
+ };
25859
+ };
25860
+ };
25387
25861
  get_identity_verification: {
25388
25862
  parameters: {
25389
25863
  query?: never;
@@ -27131,6 +27605,37 @@ interface operations {
27131
27605
  };
27132
27606
  };
27133
27607
  };
27608
+ finalise_translation: {
27609
+ parameters: {
27610
+ query?: never;
27611
+ header?: never;
27612
+ path: {
27613
+ document_ext_id: string;
27614
+ };
27615
+ cookie?: never;
27616
+ };
27617
+ requestBody?: never;
27618
+ responses: {
27619
+ /** @description Successful Response */
27620
+ 200: {
27621
+ headers: {
27622
+ [name: string]: unknown;
27623
+ };
27624
+ content: {
27625
+ 'application/json': components['schemas']['FinalisedTranslationResponse'];
27626
+ };
27627
+ };
27628
+ /** @description Validation Error */
27629
+ 422: {
27630
+ headers: {
27631
+ [name: string]: unknown;
27632
+ };
27633
+ content: {
27634
+ 'application/json': components['schemas']['HTTPValidationError'];
27635
+ };
27636
+ };
27637
+ };
27638
+ };
27134
27639
  generate_doctags: {
27135
27640
  parameters: {
27136
27641
  query?: {
package/dist/index.d.ts CHANGED
@@ -1185,6 +1185,73 @@ interface paths {
1185
1185
  patch?: never;
1186
1186
  trace?: never;
1187
1187
  };
1188
+ '/v1/storage/projects': {
1189
+ parameters: {
1190
+ query?: never;
1191
+ header?: never;
1192
+ path?: never;
1193
+ cookie?: never;
1194
+ };
1195
+ /**
1196
+ * List Storage Projects
1197
+ * @description Storage used by each project: everything it pays for (trash included, until purged) against its limit, by
1198
+ * kind (document, version, derived, coedit, mail, mail_draft, chat_attachment, recording, other), with the trash
1199
+ * part, and — for a personal project — its mail by folder. ``scope=deployment`` adds the deployment's totals
1200
+ * against the Box licence.
1201
+ */
1202
+ get: operations['list_storage_projects'];
1203
+ put?: never;
1204
+ post?: never;
1205
+ delete?: never;
1206
+ options?: never;
1207
+ head?: never;
1208
+ patch?: never;
1209
+ trace?: never;
1210
+ };
1211
+ '/v1/storage/items': {
1212
+ parameters: {
1213
+ query?: never;
1214
+ header?: never;
1215
+ path?: never;
1216
+ cookie?: never;
1217
+ };
1218
+ /**
1219
+ * List Storage Items
1220
+ * @description The largest items stored, largest first: a document (with all its versions, renditions and co-editing
1221
+ * state, ``breakdown``), a mail message, a recording, a chat attachment, a draft. ``state=trash`` is the
1222
+ * Recently deleted list (still counted until purged). Names are not included: ``ref`` is the item's external id
1223
+ * for the client to resolve where it can read it.
1224
+ */
1225
+ get: operations['list_storage_items'];
1226
+ put?: never;
1227
+ post?: never;
1228
+ delete?: never;
1229
+ options?: never;
1230
+ head?: never;
1231
+ patch?: never;
1232
+ trace?: never;
1233
+ };
1234
+ '/v1/storage/snapshots': {
1235
+ parameters: {
1236
+ query?: never;
1237
+ header?: never;
1238
+ path?: never;
1239
+ cookie?: never;
1240
+ };
1241
+ /**
1242
+ * List Storage Snapshots
1243
+ * @description The deployment's storage day by day (what each nightly reconcile found), newest first. Box admins and
1244
+ * billing managers.
1245
+ */
1246
+ get: operations['list_storage_snapshots'];
1247
+ put?: never;
1248
+ post?: never;
1249
+ delete?: never;
1250
+ options?: never;
1251
+ head?: never;
1252
+ patch?: never;
1253
+ trace?: never;
1254
+ };
1188
1255
  '/v1/user/identity': {
1189
1256
  parameters: {
1190
1257
  query?: never;
@@ -2318,6 +2385,29 @@ interface paths {
2318
2385
  patch?: never;
2319
2386
  trace?: never;
2320
2387
  };
2388
+ '/v1/document/{document_ext_id}/finalise-translation': {
2389
+ parameters: {
2390
+ query?: never;
2391
+ header?: never;
2392
+ path?: never;
2393
+ cookie?: never;
2394
+ };
2395
+ get?: never;
2396
+ put?: never;
2397
+ /**
2398
+ * Finalise Translation Endpoint
2399
+ * @description Save a translation's current version as a new PDF document, labelled "Translation" and linked to the
2400
+ * original it translates (``translation``) and to the translation version (``final``). The editable
2401
+ * translation is unchanged. 409 while the translation's PDF is still being prepared; 400 for a document that is
2402
+ * not a translation.
2403
+ */
2404
+ post: operations['finalise_translation'];
2405
+ delete?: never;
2406
+ options?: never;
2407
+ head?: never;
2408
+ patch?: never;
2409
+ trace?: never;
2410
+ };
2321
2411
  '/v1/document/doctag/generate': {
2322
2412
  parameters: {
2323
2413
  query?: never;
@@ -8894,6 +8984,21 @@ interface components {
8894
8984
  * }
8895
8985
  */
8896
8986
  DoctagLLM: components['schemas']['DoctagLLMConfig'];
8987
+ /**
8988
+ * @default {
8989
+ * "API_TYPE": "remote",
8990
+ * "ENABLE_THINKING": false,
8991
+ * "MODEL_NAME": "Fast",
8992
+ * "SYSTEM_INSTRUCTION": "You are a professional translator of legal, commercial and technical documents.\n\nYou translate the numbered passages you are given into the target language, faithfully and completely:\n- Translate every passage in full. Never summarise, shorten, merge, split, reorder, explain or comment.\n- Keep the Markdown structure of each passage exactly: headings (#), lists, emphasis, tables (same rows and columns), links and line breaks.\n- Keep unchanged: numbers, dates as written, amounts, currencies, clause and section numbering, cross-references, citations, case names, statute names, email addresses, URLs and code.\n- Keep proper names of people, companies and places as they are written, unless the glossary gives a translation.\n- Use the glossary's translation for every glossary term, every time it occurs.\n- A defined term (a capitalised or quoted term given a meaning in the document) is translated the same way everywhere.\n- A passage already in the target language, or with nothing to translate (a number, a signature line, a blank form field), is returned as it is.\n- The context passages before and after are there only so the translation reads on from its neighbours. Never translate or return them.",
8993
+ * "TEMPERATURE": 0.2,
8994
+ * "MAX_TOKENS": 0,
8995
+ * "WINDOW_TOKENS": 3000,
8996
+ * "CONTEXT_TOKENS": 600,
8997
+ * "GLOSSARY_TOKENS": 6000,
8998
+ * "MAX_CONCURRENT": 8
8999
+ * }
9000
+ */
9001
+ TranslationLLM: components['schemas']['TranslationLLMConfig'];
8897
9002
  /**
8898
9003
  * @default {
8899
9004
  * "API_TYPE": "remote",
@@ -11803,6 +11908,7 @@ interface components {
11803
11908
  TitleLLM?: components['schemas']['TitleLLMConfig'] | null;
11804
11909
  SummariseLLM?: components['schemas']['SummariseLLMConfig'] | null;
11805
11910
  DoctagLLM?: components['schemas']['DoctagLLMConfig'] | null;
11911
+ TranslationLLM?: components['schemas']['TranslationLLMConfig'] | null;
11806
11912
  MemoryLLM?: components['schemas']['MemoryLLMConfig'] | null;
11807
11913
  PlanningLLM?: components['schemas']['PlanningLLMConfig'] | null;
11808
11914
  FilterPlanLLM?: components['schemas']['FilterPlanLLMConfig'] | null;
@@ -13529,7 +13635,7 @@ interface components {
13529
13635
  * Versions are not relations: they live inside their document (``docs.versions``).
13530
13636
  * @enum {string}
13531
13637
  */
13532
- DocRelationRole: 'crop' | 'redline_base' | 'redline_revised' | 'redaction' | 'annotated' | 'production';
13638
+ DocRelationRole: 'crop' | 'redline_base' | 'redline_revised' | 'redaction' | 'annotated' | 'production' | 'translation' | 'final';
13533
13639
  /** DocResponse */
13534
13640
  DocResponse: {
13535
13641
  /** External Id */
@@ -14843,6 +14949,27 @@ interface components {
14843
14949
  */
14844
14950
  MAX_TOKENS: number;
14845
14951
  };
14952
+ /**
14953
+ * FinalisedTranslationResponse
14954
+ * @description The new PDF a finalised translation was saved as.
14955
+ */
14956
+ FinalisedTranslationResponse: {
14957
+ /**
14958
+ * Document Ext Id
14959
+ * @description The new PDF document
14960
+ */
14961
+ document_ext_id: string;
14962
+ /**
14963
+ * Translation Ref
14964
+ * @description The translation version made final (doc-…@vN)
14965
+ */
14966
+ translation_ref: string;
14967
+ /**
14968
+ * Source Ref
14969
+ * @description The original version it translates (doc-…@vN)
14970
+ */
14971
+ source_ref?: string | null;
14972
+ };
14846
14973
  /** FindTimeRequest */
14847
14974
  FindTimeRequest: {
14848
14975
  /** Attendees */
@@ -16142,6 +16269,8 @@ interface components {
16142
16269
  id: string;
16143
16270
  /** Status */
16144
16271
  status: string;
16272
+ /** Delivery Status */
16273
+ delivery_status?: ('sent' | 'delivered' | 'delayed' | 'partially_bounced' | 'bounced') | null;
16145
16274
  };
16146
16275
  /** MailServerProfileRead */
16147
16276
  MailServerProfileRead: {
@@ -17028,7 +17157,7 @@ interface components {
17028
17157
  * Type is self-descriptive, no need to parse content field.
17029
17158
  * @enum {string}
17030
17159
  */
17031
- NotificationType: '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' | 'box_seat_refused' | 'native_mail_received' | 'mail_draft_ready' | 'email_reply' | 'quota_threshold_50' | 'quota_threshold_90' | 'quota_threshold_100' | 'doc_shared' | 'docx_mention' | 'signature_requested' | 'signature_completed' | 'signature_declined' | 'workspace_access_request' | 'conversation_ready' | 'conversation_done' | 'conversation_notified' | 'workflow_failed' | 'agent_input_requested' | 'workflow_completed' | 'workflow_signal' | 'step_ready' | 'task_started' | 'task_completed' | 'mailbox_sync_complete' | 'drive_sync_complete' | 'activity' | 'mention' | 'thread_reply' | 'document_activity' | 'call_missed' | 'calendar_invite' | 'calendar_update' | 'calendar_cancel' | 'calendar_reply' | 'calendar_counter' | 'calendar_reminder' | 'calendar_share';
17160
+ NotificationType: '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' | 'box_seat_refused' | 'native_mail_received' | 'mail_draft_ready' | 'email_reply' | 'quota_threshold_50' | 'quota_threshold_90' | 'quota_threshold_100' | 'storage_quota_exceeded' | 'doc_shared' | 'docx_mention' | 'signature_requested' | 'signature_completed' | 'signature_declined' | 'workspace_access_request' | 'conversation_ready' | 'conversation_done' | 'conversation_notified' | 'workflow_failed' | 'agent_input_requested' | 'workflow_completed' | 'workflow_signal' | 'step_ready' | 'task_started' | 'task_completed' | 'mailbox_sync_complete' | 'drive_sync_complete' | 'activity' | 'mention' | 'thread_reply' | 'document_activity' | 'document_processed' | 'call_missed' | 'calendar_invite' | 'calendar_update' | 'calendar_cancel' | 'calendar_reply' | 'calendar_counter' | 'calendar_reminder' | 'calendar_share';
17032
17161
  /**
17033
17162
  * NotificationUpdate
17034
17163
  * @description Single notification update for bulk PATCH.
@@ -19485,6 +19614,8 @@ interface components {
19485
19614
  metadata?: {
19486
19615
  [key: string]: unknown;
19487
19616
  } | null;
19617
+ /** Conversation Ext Id */
19618
+ conversation_ext_id?: string | null;
19488
19619
  };
19489
19620
  /**
19490
19621
  * ResponsesAPIUsage
@@ -20603,7 +20734,7 @@ interface components {
20603
20734
  * SkillSummaryResponse
20604
20735
  * @description One row of ``GET /v1/assistant/skills``.
20605
20736
  *
20606
- * Lightweight projection — never includes the SKILL.md body. Clients
20737
+ * Lightweight projection — never includes a document skill's SKILL.md body (a built-in carries its own). Clients
20607
20738
  * use this to populate slash-command autocomplete (name / description
20608
20739
  * / arg_hint) and to know which doc to fetch when the user wants to
20609
20740
  * inspect the full source via ``GET /v1/document/.../parsed-content``.
@@ -20645,23 +20776,22 @@ interface components {
20645
20776
  skill_type: string;
20646
20777
  /**
20647
20778
  * Workspace Ext Id
20648
- * @description External ID of the workspace the skill lives in
20779
+ * @description External ID of the workspace the skill lives in (None for a built-in skill)
20649
20780
  */
20650
- workspace_ext_id: string;
20781
+ workspace_ext_id?: string | null;
20651
20782
  /**
20652
20783
  * Doc Ext Id
20653
- * @description External ID of the SKILL.md doc (use for /parsed-content)
20784
+ * @description External ID of the SKILL.md doc (use for /parsed-content); None for a built-in skill
20654
20785
  */
20655
- doc_ext_id: string;
20786
+ doc_ext_id?: string | null;
20656
20787
  /**
20657
20788
  * Updated At
20658
- * Format: date-time
20659
20789
  * @description Last modification time of the main file
20660
20790
  */
20661
- updated_at: string;
20791
+ updated_at?: string | null;
20662
20792
  /**
20663
20793
  * Visibility
20664
- * @description ``mine`` (private to the caller) or ``global`` (shared into the marketplace)
20794
+ * @description ``mine`` (private to the caller), ``global`` (shared into the marketplace) or ``builtin`` (shipped with ARBI)
20665
20795
  * @default mine
20666
20796
  */
20667
20797
  visibility: string;
@@ -20671,6 +20801,11 @@ interface components {
20671
20801
  * @default true
20672
20802
  */
20673
20803
  is_owner: boolean;
20804
+ /**
20805
+ * Content
20806
+ * @description The SKILL.md of a built-in skill (it has no document); None for document skills
20807
+ */
20808
+ content?: string | null;
20674
20809
  };
20675
20810
  /**
20676
20811
  * SkillsListResponse
@@ -20926,6 +21061,157 @@ interface components {
20926
21061
  */
20927
21062
  model?: string | null;
20928
21063
  };
21064
+ /**
21065
+ * StorageDeploymentUsage
21066
+ * @description The whole deployment (Box admins / billing managers): every project's bytes against the licence.
21067
+ */
21068
+ StorageDeploymentUsage: {
21069
+ /** Bytes */
21070
+ bytes: number;
21071
+ /** Trash Bytes */
21072
+ trash_bytes: number;
21073
+ /** Limit Bytes */
21074
+ limit_bytes: number | null;
21075
+ /** Orphaned Bytes */
21076
+ orphaned_bytes: number;
21077
+ /** Unattributed Bytes */
21078
+ unattributed_bytes: number;
21079
+ /** By Kind */
21080
+ by_kind: components['schemas']['StorageKindUsage'][];
21081
+ };
21082
+ /**
21083
+ * StorageItem
21084
+ * @description One thing a person would delete: a document (all its versions and files), a mail message, a recording, a chat
21085
+ * attachment, a draft. Names are not here — they are encrypted; clients resolve ``ref`` where they can read it.
21086
+ */
21087
+ StorageItem: {
21088
+ /** Kind */
21089
+ kind: string;
21090
+ /** Ref */
21091
+ ref: string | null;
21092
+ /** Project Ext Id */
21093
+ project_ext_id: string | null;
21094
+ /** Workspace Ext Id */
21095
+ workspace_ext_id: string | null;
21096
+ /** Workspace Name */
21097
+ workspace_name: string | null;
21098
+ /** Bytes */
21099
+ bytes: number;
21100
+ /** Trash Bytes */
21101
+ trash_bytes: number;
21102
+ /** Objects */
21103
+ objects: number;
21104
+ /** Breakdown */
21105
+ breakdown: {
21106
+ [key: string]: number;
21107
+ };
21108
+ /** Trashed */
21109
+ trashed: boolean;
21110
+ /** Folder */
21111
+ folder?: string | null;
21112
+ /** Created At */
21113
+ created_at: string | null;
21114
+ };
21115
+ /** StorageItemsResponse */
21116
+ StorageItemsResponse: {
21117
+ /** Items */
21118
+ items: components['schemas']['StorageItem'][];
21119
+ /** Total */
21120
+ total: number;
21121
+ };
21122
+ /** StorageKindUsage */
21123
+ StorageKindUsage: {
21124
+ /** Kind */
21125
+ kind: string;
21126
+ /** Bytes */
21127
+ bytes: number;
21128
+ /** Trash Bytes */
21129
+ trash_bytes: number;
21130
+ /** Objects */
21131
+ objects: number;
21132
+ };
21133
+ /**
21134
+ * StorageProjectUsage
21135
+ * @description A project's stored bytes. ``bytes`` counts everything it pays for (trash included) against ``limit_bytes``
21136
+ * (None: no limit, billing off); ``trash_bytes`` is the part that is deleted but not yet purged.
21137
+ */
21138
+ StorageProjectUsage: {
21139
+ /** Project Ext Id */
21140
+ project_ext_id: string;
21141
+ /** Name */
21142
+ name: string;
21143
+ /** Personal */
21144
+ personal: boolean;
21145
+ /** Owner Ext Id */
21146
+ owner_ext_id?: string | null;
21147
+ /** Owner Email */
21148
+ owner_email?: string | null;
21149
+ /** Bytes */
21150
+ bytes: number;
21151
+ /** Trash Bytes */
21152
+ trash_bytes: number;
21153
+ /** Limit Bytes */
21154
+ limit_bytes: number | null;
21155
+ /** By Kind */
21156
+ by_kind: components['schemas']['StorageKindUsage'][];
21157
+ /** Workspaces */
21158
+ workspaces?: components['schemas']['StorageWorkspaceUsage'][] | null;
21159
+ /** Mail Folders */
21160
+ mail_folders?: {
21161
+ [key: string]: number;
21162
+ } | null;
21163
+ /** Last Activity At */
21164
+ last_activity_at?: string | null;
21165
+ };
21166
+ /** StorageProjectsResponse */
21167
+ StorageProjectsResponse: {
21168
+ /** Projects */
21169
+ projects: components['schemas']['StorageProjectUsage'][];
21170
+ deployment?: components['schemas']['StorageDeploymentUsage'] | null;
21171
+ };
21172
+ /** StorageSnapshotRead */
21173
+ StorageSnapshotRead: {
21174
+ /**
21175
+ * Taken At
21176
+ * Format: date-time
21177
+ */
21178
+ taken_at: string;
21179
+ /** Bucket Bytes */
21180
+ bucket_bytes: number;
21181
+ /** Bucket Objects */
21182
+ bucket_objects: number;
21183
+ /** Counted Bytes */
21184
+ counted_bytes: number;
21185
+ /** Trash Bytes */
21186
+ trash_bytes: number;
21187
+ /** Orphaned Bytes */
21188
+ orphaned_bytes: number;
21189
+ /** Unattributed Bytes */
21190
+ unattributed_bytes: number;
21191
+ /** By Kind */
21192
+ by_kind: {
21193
+ [key: string]: number;
21194
+ };
21195
+ /** Repaired */
21196
+ repaired: {
21197
+ [key: string]: number;
21198
+ };
21199
+ };
21200
+ /** StorageWorkspaceUsage */
21201
+ StorageWorkspaceUsage: {
21202
+ /** Workspace Ext Id */
21203
+ workspace_ext_id: string;
21204
+ /** Name */
21205
+ name: string;
21206
+ /** Deleted */
21207
+ deleted: boolean;
21208
+ /** Bytes */
21209
+ bytes: number;
21210
+ /** Trash Bytes */
21211
+ trash_bytes: number;
21212
+ /** By Kind */
21213
+ by_kind: components['schemas']['StorageKindUsage'][];
21214
+ };
20929
21215
  /** StreamEventsTool */
20930
21216
  StreamEventsTool: {
20931
21217
  /**
@@ -22103,6 +22389,87 @@ interface components {
22103
22389
  */
22104
22390
  issues: components['schemas']['TransferItemResult'][];
22105
22391
  };
22392
+ /**
22393
+ * TranslationLLMConfig
22394
+ * @description Configuration for TranslationLLM — translates a document passage by passage (``translate_document``).
22395
+ *
22396
+ * The source text is never sent back through the model: each call returns only the translations of the passages
22397
+ * it was given, in order. Terminology is agreed once per document (a glossary pass over its opening), and every
22398
+ * window sees its neighbouring source passages as read-only context, so windows translate concurrently yet read
22399
+ * as one text.
22400
+ */
22401
+ TranslationLLMConfig: {
22402
+ /**
22403
+ * Api Type
22404
+ * @description The inference type (local or remote).
22405
+ * @default remote
22406
+ * @enum {string}
22407
+ */
22408
+ API_TYPE: 'local' | 'remote';
22409
+ /**
22410
+ * Enable Thinking
22411
+ * @description Enable reasoning/thinking mode.
22412
+ * @default false
22413
+ */
22414
+ ENABLE_THINKING: boolean;
22415
+ /**
22416
+ * Model Name
22417
+ * @description The name of the non-reasoning model to be used.
22418
+ * @default Fast
22419
+ */
22420
+ MODEL_NAME: string;
22421
+ /**
22422
+ * System Instruction
22423
+ * @default You are a professional translator of legal, commercial and technical documents.
22424
+ *
22425
+ * You translate the numbered passages you are given into the target language, faithfully and completely:
22426
+ * - Translate every passage in full. Never summarise, shorten, merge, split, reorder, explain or comment.
22427
+ * - Keep the Markdown structure of each passage exactly: headings (#), lists, emphasis, tables (same rows and columns), links and line breaks.
22428
+ * - Keep unchanged: numbers, dates as written, amounts, currencies, clause and section numbering, cross-references, citations, case names, statute names, email addresses, URLs and code.
22429
+ * - Keep proper names of people, companies and places as they are written, unless the glossary gives a translation.
22430
+ * - Use the glossary's translation for every glossary term, every time it occurs.
22431
+ * - A defined term (a capitalised or quoted term given a meaning in the document) is translated the same way everywhere.
22432
+ * - A passage already in the target language, or with nothing to translate (a number, a signature line, a blank form field), is returned as it is.
22433
+ * - The context passages before and after are there only so the translation reads on from its neighbours. Never translate or return them.
22434
+ */
22435
+ SYSTEM_INSTRUCTION: string;
22436
+ /**
22437
+ * Temperature
22438
+ * @description Low temperature for faithful translation.
22439
+ * @default 0.2
22440
+ */
22441
+ TEMPERATURE: number;
22442
+ /**
22443
+ * Max Tokens
22444
+ * @description Max output tokens per call; 0 = uncapped (run to EOS).
22445
+ * @default 0
22446
+ */
22447
+ MAX_TOKENS: number;
22448
+ /**
22449
+ * Window Tokens
22450
+ * @description Source tokens translated per call (whole passages; a larger passage goes alone).
22451
+ * @default 3000
22452
+ */
22453
+ WINDOW_TOKENS: number;
22454
+ /**
22455
+ * Context Tokens
22456
+ * @description Source tokens before and after a window shown as read-only context.
22457
+ * @default 600
22458
+ */
22459
+ CONTEXT_TOKENS: number;
22460
+ /**
22461
+ * Glossary Tokens
22462
+ * @description Source tokens read (headings first) to agree terminology before translating.
22463
+ * @default 6000
22464
+ */
22465
+ GLOSSARY_TOKENS: number;
22466
+ /**
22467
+ * Max Concurrent
22468
+ * @description Maximum concurrent translation calls.
22469
+ * @default 8
22470
+ */
22471
+ MAX_CONCURRENT: number;
22472
+ };
22106
22473
  /**
22107
22474
  * UpdateAgentRequest
22108
22475
  * @description Mutable agent fields. Only appearance for now — identity (name/email/keys)
@@ -25384,6 +25751,113 @@ interface operations {
25384
25751
  };
25385
25752
  };
25386
25753
  };
25754
+ list_storage_projects: {
25755
+ parameters: {
25756
+ query?: {
25757
+ /** @description mine: the caller's projects; deployment: every project (Box admins, managers) */
25758
+ scope?: 'mine' | 'deployment';
25759
+ /** @description Only this project (external id) */
25760
+ project?: string | null;
25761
+ /** @description workspaces: each workspace's usage */
25762
+ include?: 'workspaces'[];
25763
+ };
25764
+ header?: never;
25765
+ path?: never;
25766
+ cookie?: never;
25767
+ };
25768
+ requestBody?: never;
25769
+ responses: {
25770
+ /** @description Successful Response */
25771
+ 200: {
25772
+ headers: {
25773
+ [name: string]: unknown;
25774
+ };
25775
+ content: {
25776
+ 'application/json': components['schemas']['StorageProjectsResponse'];
25777
+ };
25778
+ };
25779
+ /** @description Validation Error */
25780
+ 422: {
25781
+ headers: {
25782
+ [name: string]: unknown;
25783
+ };
25784
+ content: {
25785
+ 'application/json': components['schemas']['HTTPValidationError'];
25786
+ };
25787
+ };
25788
+ };
25789
+ };
25790
+ list_storage_items: {
25791
+ parameters: {
25792
+ query?: {
25793
+ /** @description mine: the caller's projects; deployment: every project (Box admins, managers) */
25794
+ scope?: 'mine' | 'deployment';
25795
+ /** @description Only this project (external id) */
25796
+ project?: string | null;
25797
+ /** @description Only this workspace (external id) */
25798
+ workspace?: string | null;
25799
+ kind?: ('document' | 'mail' | 'mail_draft' | 'recording' | 'chat_attachment' | 'other') | null;
25800
+ state?: 'live' | 'trash' | 'all';
25801
+ limit?: number;
25802
+ offset?: number;
25803
+ };
25804
+ header?: never;
25805
+ path?: never;
25806
+ cookie?: never;
25807
+ };
25808
+ requestBody?: never;
25809
+ responses: {
25810
+ /** @description Successful Response */
25811
+ 200: {
25812
+ headers: {
25813
+ [name: string]: unknown;
25814
+ };
25815
+ content: {
25816
+ 'application/json': components['schemas']['StorageItemsResponse'];
25817
+ };
25818
+ };
25819
+ /** @description Validation Error */
25820
+ 422: {
25821
+ headers: {
25822
+ [name: string]: unknown;
25823
+ };
25824
+ content: {
25825
+ 'application/json': components['schemas']['HTTPValidationError'];
25826
+ };
25827
+ };
25828
+ };
25829
+ };
25830
+ list_storage_snapshots: {
25831
+ parameters: {
25832
+ query?: {
25833
+ limit?: number;
25834
+ };
25835
+ header?: never;
25836
+ path?: never;
25837
+ cookie?: never;
25838
+ };
25839
+ requestBody?: never;
25840
+ responses: {
25841
+ /** @description Successful Response */
25842
+ 200: {
25843
+ headers: {
25844
+ [name: string]: unknown;
25845
+ };
25846
+ content: {
25847
+ 'application/json': components['schemas']['StorageSnapshotRead'][];
25848
+ };
25849
+ };
25850
+ /** @description Validation Error */
25851
+ 422: {
25852
+ headers: {
25853
+ [name: string]: unknown;
25854
+ };
25855
+ content: {
25856
+ 'application/json': components['schemas']['HTTPValidationError'];
25857
+ };
25858
+ };
25859
+ };
25860
+ };
25387
25861
  get_identity_verification: {
25388
25862
  parameters: {
25389
25863
  query?: never;
@@ -27131,6 +27605,37 @@ interface operations {
27131
27605
  };
27132
27606
  };
27133
27607
  };
27608
+ finalise_translation: {
27609
+ parameters: {
27610
+ query?: never;
27611
+ header?: never;
27612
+ path: {
27613
+ document_ext_id: string;
27614
+ };
27615
+ cookie?: never;
27616
+ };
27617
+ requestBody?: never;
27618
+ responses: {
27619
+ /** @description Successful Response */
27620
+ 200: {
27621
+ headers: {
27622
+ [name: string]: unknown;
27623
+ };
27624
+ content: {
27625
+ 'application/json': components['schemas']['FinalisedTranslationResponse'];
27626
+ };
27627
+ };
27628
+ /** @description Validation Error */
27629
+ 422: {
27630
+ headers: {
27631
+ [name: string]: unknown;
27632
+ };
27633
+ content: {
27634
+ 'application/json': components['schemas']['HTTPValidationError'];
27635
+ };
27636
+ };
27637
+ };
27638
+ };
27134
27639
  generate_doctags: {
27135
27640
  parameters: {
27136
27641
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/client",
3
- "version": "0.4.124",
3
+ "version": "0.4.126",
4
4
  "description": "TypeScript SDK for the ARBI API — zero-knowledge auth, E2E encryption, and type-safe REST client",
5
5
  "type": "module",
6
6
  "sideEffects": false,