@arbidocs/client 0.5.119 → 0.5.121

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
@@ -9493,6 +9493,12 @@ interface components {
9493
9493
  * @default true
9494
9494
  */
9495
9495
  IMAGE_ENABLED: boolean;
9496
+ /**
9497
+ * Presentation Enabled
9498
+ * @description Slides: enable the presentation tool, which builds and changes slide decks (PowerPoint files in the Presentations folder) with clips of workspace documents, redactions burnt in.
9499
+ * @default true
9500
+ */
9501
+ PRESENTATION_ENABLED: boolean;
9496
9502
  /**
9497
9503
  * Vision Enabled
9498
9504
  * @description Enable the view_document_pages tool for visual inspection of document pages (figures, charts, scanned pages) using a vision-capable model.
@@ -9633,8 +9639,8 @@ interface components {
9633
9639
  AGENT_MAX_ITERATIONS: number;
9634
9640
  /**
9635
9641
  * Agent Turn Budget Gbp
9636
- * @description Maximum £ of AI usage a turn may spend, shared across the main agent and every deep_research/spawn_coding_agent/sub_agent child it spawns — priced per call using each call's own model, since different stages run different models. Enforced as a meter on the shared run budget alongside tool calls and tokens, so nearing it also nudges the agent to converge (70%), blocks new sub-agent spawns (90%), and offers the pause-and-extend prompt before forcing an answer. Default is half FREE_AI_GBP (£1) — a free account's entire grant, so one turn can't consume it all. 0 = uncapped.
9637
- * @default 0.5
9642
+ * @description Maximum £ of AI usage a turn may spend, shared across the main agent and every deep_research/spawn_coding_agent/sub_agent child it spawns — priced per call using each call's own model, since different stages run different models. Enforced as a meter on the shared run budget alongside tool calls and tokens. At the cap an interactive run pauses and asks the user whether to continue (each yes adds this amount again); otherwise it answers from what it has. On a project without Pro a turn is also held to the project's AI usage left this month. 0 = uncapped.
9643
+ * @default 5
9638
9644
  */
9639
9645
  AGENT_TURN_BUDGET_GBP: number;
9640
9646
  /**
@@ -9645,13 +9651,13 @@ interface components {
9645
9651
  AGENT_MAX_PARALLEL_TOOL_CALLS: number;
9646
9652
  /**
9647
9653
  * Agent Max Total Tool Calls
9648
- * @description Run-wide cap on tool executions across the main agent AND all nested sub-agents (deep_research / run_skill / sub_agent) in a single user query. When reached, further tool calls are refused and the agent is forced to answer from what it has gathered; at 2x the run is hard-stopped. 0 = disabled.
9649
- * @default 80
9654
+ * @description Run-wide cap on tool executions across the main agent AND all nested sub-agents (deep_research / run_skill / sub_agent) in a single user query. When reached, an interactive run pauses and asks the user whether to continue; otherwise further tool calls are refused and the agent answers from what it has gathered. At 3x the run is hard-stopped. 0 = disabled.
9655
+ * @default 800
9650
9656
  */
9651
9657
  AGENT_MAX_TOTAL_TOOL_CALLS: number;
9652
9658
  /**
9653
9659
  * Agent Max Run Tokens
9654
- * @description Run-wide cap on total tokens (input+output+reasoning, provider-reported) across every LLM call in a single user query — agent iterations, nested sub-agents, and helper calls (evaluator, reranker, goal judge). When reached the agent is forced to answer from what it has gathered; at 2x the run is hard-stopped. Best-effort metering — the exact AGENT_MAX_TOTAL_TOOL_CALLS meter backs it up. 0 = disabled.
9660
+ * @description Run-wide cap on generated tokens (output+reasoning, provider-reported) across every LLM call in a single user query — agent iterations, nested sub-agents, and helper calls (evaluator, reranker, goal judge). Input tokens are not counted: they are cheap, mostly cached, and the AI usage (£) meter prices them. When reached, an interactive run pauses and asks the user whether to continue; otherwise the agent answers from what it has gathered. At 3x the run is hard-stopped. Best-effort metering — the exact AGENT_MAX_TOTAL_TOOL_CALLS meter backs it up. 0 = disabled.
9655
9661
  * @default 1500000
9656
9662
  */
9657
9663
  AGENT_MAX_RUN_TOKENS: number;
@@ -9778,6 +9784,12 @@ interface components {
9778
9784
  * @default true
9779
9785
  */
9780
9786
  IMAGE_ENABLED: boolean;
9787
+ /**
9788
+ * Presentation Enabled
9789
+ * @description Slides: enable the presentation tool, which builds and changes slide decks (PowerPoint files in the Presentations folder) with clips of workspace documents, redactions burnt in.
9790
+ * @default true
9791
+ */
9792
+ PRESENTATION_ENABLED: boolean;
9781
9793
  /**
9782
9794
  * Vision Enabled
9783
9795
  * @description Enable the view_document_pages tool for visual inspection of document pages (figures, charts, scanned pages) using a vision-capable model.
@@ -9863,8 +9875,8 @@ interface components {
9863
9875
  AGENT_MAX_ITERATIONS: number;
9864
9876
  /**
9865
9877
  * Agent Turn Budget Gbp
9866
- * @description Maximum £ of AI usage a turn may spend, shared across the main agent and every deep_research/spawn_coding_agent/sub_agent child it spawns — priced per call using each call's own model, since different stages run different models. Enforced as a meter on the shared run budget alongside tool calls and tokens, so nearing it also nudges the agent to converge (70%), blocks new sub-agent spawns (90%), and offers the pause-and-extend prompt before forcing an answer. Default is half FREE_AI_GBP (£1) — a free account's entire grant, so one turn can't consume it all. 0 = uncapped.
9867
- * @default 0.5
9878
+ * @description Maximum £ of AI usage a turn may spend, shared across the main agent and every deep_research/spawn_coding_agent/sub_agent child it spawns — priced per call using each call's own model, since different stages run different models. Enforced as a meter on the shared run budget alongside tool calls and tokens. At the cap an interactive run pauses and asks the user whether to continue (each yes adds this amount again); otherwise it answers from what it has. On a project without Pro a turn is also held to the project's AI usage left this month. 0 = uncapped.
9879
+ * @default 5
9868
9880
  */
9869
9881
  AGENT_TURN_BUDGET_GBP: number;
9870
9882
  };
@@ -9883,6 +9895,7 @@ interface components {
9883
9895
  * "SUGGESTED_QUERIES": true,
9884
9896
  * "ARTIFACTS_ENABLED": true,
9885
9897
  * "IMAGE_ENABLED": true,
9898
+ * "PRESENTATION_ENABLED": true,
9886
9899
  * "VISION_ENABLED": false,
9887
9900
  * "CONVERSATION_SEARCH_ENABLED": true,
9888
9901
  * "PERSONAL_AGENT": false,
@@ -9905,9 +9918,9 @@ interface components {
9905
9918
  * "ENABLE_THINKING": false,
9906
9919
  * "AGENT_STRICT_TOOL_CALLS": true,
9907
9920
  * "AGENT_MAX_ITERATIONS": 20,
9908
- * "AGENT_TURN_BUDGET_GBP": 0.5,
9921
+ * "AGENT_TURN_BUDGET_GBP": 5,
9909
9922
  * "AGENT_MAX_PARALLEL_TOOL_CALLS": 10,
9910
- * "AGENT_MAX_TOTAL_TOOL_CALLS": 80,
9923
+ * "AGENT_MAX_TOTAL_TOOL_CALLS": 800,
9911
9924
  * "AGENT_MAX_RUN_TOKENS": 1500000,
9912
9925
  * "AGENT_MAX_SUBAGENT_SPAWNS": 4,
9913
9926
  * "AGENT_HISTORY_TOKEN_BUDGET": 48000,
@@ -10047,13 +10060,13 @@ interface components {
10047
10060
  * "API_TYPE": "remote",
10048
10061
  * "ENABLE_THINKING": false,
10049
10062
  * "MODEL_NAME": "dummy",
10050
- * "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.",
10051
- * "TEMPERATURE": 0.2,
10063
+ * "SYSTEM_INSTRUCTION": "You are a professional legal translator. Translate each numbered passage into the target language, faithfully and completely: never summarise, shorten, merge, reorder or comment. Keep Markdown structure, numbers, dates, amounts, names, citations and cross-references exactly as written. Use the glossary translation for every glossary term, every time. Context passages are for reading only: never translate or return them.",
10064
+ * "TEMPERATURE": 0,
10052
10065
  * "MAX_TOKENS": 0,
10053
- * "WINDOW_TOKENS": 3000,
10054
- * "CONTEXT_TOKENS": 600,
10066
+ * "WINDOW_TOKENS": 1000,
10067
+ * "CONTEXT_TOKENS": 300,
10055
10068
  * "GLOSSARY_TOKENS": 6000,
10056
- * "MAX_CONCURRENT": 8
10069
+ * "MAX_CONCURRENT": 16
10057
10070
  * }
10058
10071
  */
10059
10072
  TranslationLLM: components['schemas']['TranslationLLMConfig'];
@@ -10461,11 +10474,11 @@ interface components {
10461
10474
  title: string;
10462
10475
  /**
10463
10476
  * Mode
10464
- * @description What the model wrote: markdown (default) or plain text — a document draft, stored as a Word document (DOCX) and opened in the Word editor; html (single-file page, rendered in a sandboxed preview); react (single-file JSX component, rendered in a sandboxed preview); or image (a generated image artifact — render the doc via the image viewer)
10477
+ * @description What the model wrote: markdown (default) or plain text — a document draft, stored as a Word document (DOCX) and opened in the Word editor; html (single-file page, rendered in a sandboxed preview); react (single-file JSX component, rendered in a sandboxed preview); image (a generated image artifact — render the doc via the image viewer); or presentation (a slide deck the assistant saved, a .pptx in Presentations: open or reload it in the slides editor; version_of is set when it is a new version of the deck open beside the chat, empty for a new deck)
10465
10478
  * @default markdown
10466
10479
  * @enum {string}
10467
10480
  */
10468
- mode: 'markdown' | 'html' | 'text' | 'react' | 'image';
10481
+ mode: 'markdown' | 'html' | 'text' | 'react' | 'image' | 'presentation';
10469
10482
  /**
10470
10483
  * Content
10471
10484
  * @description What the model wrote: the Markdown/text of a document draft (a preview: the document is the stored DOCX), or the html/jsx source; empty for image mode
@@ -10473,7 +10486,7 @@ interface components {
10473
10486
  content: string;
10474
10487
  /**
10475
10488
  * File Type
10476
- * @description Bare extension of the stored file: 'docx' for a document draft (markdown/text), 'html' or 'jsx' for a UI artifact, the image's (e.g. 'png') for image mode
10489
+ * @description Bare extension of the stored file: 'docx' for a document draft (markdown/text), 'html' or 'jsx' for a UI artifact, the image's (e.g. 'png') for image mode, 'pptx' for a presentation
10477
10490
  * @default
10478
10491
  */
10479
10492
  file_type: string;
@@ -12529,6 +12542,8 @@ interface components {
12529
12542
  * @default false
12530
12543
  */
12531
12544
  heading: boolean;
12545
+ /** Page Bbox */
12546
+ page_bbox?: number[] | null;
12532
12547
  /** Bbox */
12533
12548
  bbox?: number[] | null;
12534
12549
  /** Element Type */
@@ -13149,6 +13164,8 @@ interface components {
13149
13164
  backend_git_hash?: string | null;
13150
13165
  /** Frontend Docker Version */
13151
13166
  frontend_docker_version?: string | null;
13167
+ /** Deployment Policy Version */
13168
+ deployment_policy_version?: number | null;
13152
13169
  /**
13153
13170
  * Services
13154
13171
  * @default []
@@ -18958,6 +18975,23 @@ interface components {
18958
18975
  /** Amount Ex Vat */
18959
18976
  amount_ex_vat: number;
18960
18977
  };
18978
+ /** PageBlock */
18979
+ PageBlock: {
18980
+ /** Bbox */
18981
+ bbox: number[];
18982
+ /** Text */
18983
+ text: string;
18984
+ };
18985
+ /**
18986
+ * PageGeometry
18987
+ * @description Where the blocks of one parsed page sit, in reading order (the parser's ``parser_page_geometry``).
18988
+ */
18989
+ PageGeometry: {
18990
+ /** Size */
18991
+ size: number[];
18992
+ /** Blocks */
18993
+ blocks: components['schemas']['PageBlock'][];
18994
+ };
18961
18995
  /** ParsedDoc */
18962
18996
  ParsedDoc: {
18963
18997
  metadata: components['schemas']['ParsedDocMetadata'];
@@ -18973,6 +19007,13 @@ interface components {
18973
19007
  * @default []
18974
19008
  */
18975
19009
  chunks: components['schemas']['Chunk'][];
19010
+ /**
19011
+ * Page Geometry
19012
+ * @default {}
19013
+ */
19014
+ page_geometry: {
19015
+ [key: string]: components['schemas']['PageGeometry'];
19016
+ };
18976
19017
  };
18977
19018
  /** ParsedDocMetadata */
18978
19019
  ParsedDocMetadata: {
@@ -24458,23 +24499,13 @@ interface components {
24458
24499
  MODEL_NAME: string;
24459
24500
  /**
24460
24501
  * System Instruction
24461
- * @default You are a professional translator of legal, commercial and technical documents.
24462
- *
24463
- * You translate the numbered passages you are given into the target language, faithfully and completely:
24464
- * - Translate every passage in full. Never summarise, shorten, merge, split, reorder, explain or comment.
24465
- * - Keep the Markdown structure of each passage exactly: headings (#), lists, emphasis, tables (same rows and columns), links and line breaks.
24466
- * - Keep unchanged: numbers, dates as written, amounts, currencies, clause and section numbering, cross-references, citations, case names, statute names, email addresses, URLs and code.
24467
- * - Keep proper names of people, companies and places as they are written, unless the glossary gives a translation.
24468
- * - Use the glossary's translation for every glossary term, every time it occurs.
24469
- * - A defined term (a capitalised or quoted term given a meaning in the document) is translated the same way everywhere.
24470
- * - 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.
24471
- * - The context passages before and after are there only so the translation reads on from its neighbours. Never translate or return them.
24502
+ * @default You are a professional legal translator. Translate each numbered passage into the target language, faithfully and completely: never summarise, shorten, merge, reorder or comment. Keep Markdown structure, numbers, dates, amounts, names, citations and cross-references exactly as written. Use the glossary translation for every glossary term, every time. Context passages are for reading only: never translate or return them.
24472
24503
  */
24473
24504
  SYSTEM_INSTRUCTION: string;
24474
24505
  /**
24475
24506
  * Temperature
24476
- * @description Low temperature for faithful translation.
24477
- * @default 0.2
24507
+ * @description Greedy decoding for faithful, repeatable translation.
24508
+ * @default 0
24478
24509
  */
24479
24510
  TEMPERATURE: number;
24480
24511
  /**
@@ -24486,13 +24517,13 @@ interface components {
24486
24517
  /**
24487
24518
  * Window Tokens
24488
24519
  * @description Source tokens translated per call (whole passages; a larger passage goes alone).
24489
- * @default 3000
24520
+ * @default 1000
24490
24521
  */
24491
24522
  WINDOW_TOKENS: number;
24492
24523
  /**
24493
24524
  * Context Tokens
24494
24525
  * @description Source tokens before and after a window shown as read-only context.
24495
- * @default 600
24526
+ * @default 300
24496
24527
  */
24497
24528
  CONTEXT_TOKENS: number;
24498
24529
  /**
@@ -24503,8 +24534,8 @@ interface components {
24503
24534
  GLOSSARY_TOKENS: number;
24504
24535
  /**
24505
24536
  * Max Concurrent
24506
- * @description Maximum concurrent translation calls.
24507
- * @default 8
24537
+ * @description Maximum concurrent translation calls per worker process. The limit is fixed by the first translation a process runs, so the default is what applies in practice.
24538
+ * @default 16
24508
24539
  */
24509
24540
  MAX_CONCURRENT: number;
24510
24541
  };
package/dist/index.d.ts CHANGED
@@ -9493,6 +9493,12 @@ interface components {
9493
9493
  * @default true
9494
9494
  */
9495
9495
  IMAGE_ENABLED: boolean;
9496
+ /**
9497
+ * Presentation Enabled
9498
+ * @description Slides: enable the presentation tool, which builds and changes slide decks (PowerPoint files in the Presentations folder) with clips of workspace documents, redactions burnt in.
9499
+ * @default true
9500
+ */
9501
+ PRESENTATION_ENABLED: boolean;
9496
9502
  /**
9497
9503
  * Vision Enabled
9498
9504
  * @description Enable the view_document_pages tool for visual inspection of document pages (figures, charts, scanned pages) using a vision-capable model.
@@ -9633,8 +9639,8 @@ interface components {
9633
9639
  AGENT_MAX_ITERATIONS: number;
9634
9640
  /**
9635
9641
  * Agent Turn Budget Gbp
9636
- * @description Maximum £ of AI usage a turn may spend, shared across the main agent and every deep_research/spawn_coding_agent/sub_agent child it spawns — priced per call using each call's own model, since different stages run different models. Enforced as a meter on the shared run budget alongside tool calls and tokens, so nearing it also nudges the agent to converge (70%), blocks new sub-agent spawns (90%), and offers the pause-and-extend prompt before forcing an answer. Default is half FREE_AI_GBP (£1) — a free account's entire grant, so one turn can't consume it all. 0 = uncapped.
9637
- * @default 0.5
9642
+ * @description Maximum £ of AI usage a turn may spend, shared across the main agent and every deep_research/spawn_coding_agent/sub_agent child it spawns — priced per call using each call's own model, since different stages run different models. Enforced as a meter on the shared run budget alongside tool calls and tokens. At the cap an interactive run pauses and asks the user whether to continue (each yes adds this amount again); otherwise it answers from what it has. On a project without Pro a turn is also held to the project's AI usage left this month. 0 = uncapped.
9643
+ * @default 5
9638
9644
  */
9639
9645
  AGENT_TURN_BUDGET_GBP: number;
9640
9646
  /**
@@ -9645,13 +9651,13 @@ interface components {
9645
9651
  AGENT_MAX_PARALLEL_TOOL_CALLS: number;
9646
9652
  /**
9647
9653
  * Agent Max Total Tool Calls
9648
- * @description Run-wide cap on tool executions across the main agent AND all nested sub-agents (deep_research / run_skill / sub_agent) in a single user query. When reached, further tool calls are refused and the agent is forced to answer from what it has gathered; at 2x the run is hard-stopped. 0 = disabled.
9649
- * @default 80
9654
+ * @description Run-wide cap on tool executions across the main agent AND all nested sub-agents (deep_research / run_skill / sub_agent) in a single user query. When reached, an interactive run pauses and asks the user whether to continue; otherwise further tool calls are refused and the agent answers from what it has gathered. At 3x the run is hard-stopped. 0 = disabled.
9655
+ * @default 800
9650
9656
  */
9651
9657
  AGENT_MAX_TOTAL_TOOL_CALLS: number;
9652
9658
  /**
9653
9659
  * Agent Max Run Tokens
9654
- * @description Run-wide cap on total tokens (input+output+reasoning, provider-reported) across every LLM call in a single user query — agent iterations, nested sub-agents, and helper calls (evaluator, reranker, goal judge). When reached the agent is forced to answer from what it has gathered; at 2x the run is hard-stopped. Best-effort metering — the exact AGENT_MAX_TOTAL_TOOL_CALLS meter backs it up. 0 = disabled.
9660
+ * @description Run-wide cap on generated tokens (output+reasoning, provider-reported) across every LLM call in a single user query — agent iterations, nested sub-agents, and helper calls (evaluator, reranker, goal judge). Input tokens are not counted: they are cheap, mostly cached, and the AI usage (£) meter prices them. When reached, an interactive run pauses and asks the user whether to continue; otherwise the agent answers from what it has gathered. At 3x the run is hard-stopped. Best-effort metering — the exact AGENT_MAX_TOTAL_TOOL_CALLS meter backs it up. 0 = disabled.
9655
9661
  * @default 1500000
9656
9662
  */
9657
9663
  AGENT_MAX_RUN_TOKENS: number;
@@ -9778,6 +9784,12 @@ interface components {
9778
9784
  * @default true
9779
9785
  */
9780
9786
  IMAGE_ENABLED: boolean;
9787
+ /**
9788
+ * Presentation Enabled
9789
+ * @description Slides: enable the presentation tool, which builds and changes slide decks (PowerPoint files in the Presentations folder) with clips of workspace documents, redactions burnt in.
9790
+ * @default true
9791
+ */
9792
+ PRESENTATION_ENABLED: boolean;
9781
9793
  /**
9782
9794
  * Vision Enabled
9783
9795
  * @description Enable the view_document_pages tool for visual inspection of document pages (figures, charts, scanned pages) using a vision-capable model.
@@ -9863,8 +9875,8 @@ interface components {
9863
9875
  AGENT_MAX_ITERATIONS: number;
9864
9876
  /**
9865
9877
  * Agent Turn Budget Gbp
9866
- * @description Maximum £ of AI usage a turn may spend, shared across the main agent and every deep_research/spawn_coding_agent/sub_agent child it spawns — priced per call using each call's own model, since different stages run different models. Enforced as a meter on the shared run budget alongside tool calls and tokens, so nearing it also nudges the agent to converge (70%), blocks new sub-agent spawns (90%), and offers the pause-and-extend prompt before forcing an answer. Default is half FREE_AI_GBP (£1) — a free account's entire grant, so one turn can't consume it all. 0 = uncapped.
9867
- * @default 0.5
9878
+ * @description Maximum £ of AI usage a turn may spend, shared across the main agent and every deep_research/spawn_coding_agent/sub_agent child it spawns — priced per call using each call's own model, since different stages run different models. Enforced as a meter on the shared run budget alongside tool calls and tokens. At the cap an interactive run pauses and asks the user whether to continue (each yes adds this amount again); otherwise it answers from what it has. On a project without Pro a turn is also held to the project's AI usage left this month. 0 = uncapped.
9879
+ * @default 5
9868
9880
  */
9869
9881
  AGENT_TURN_BUDGET_GBP: number;
9870
9882
  };
@@ -9883,6 +9895,7 @@ interface components {
9883
9895
  * "SUGGESTED_QUERIES": true,
9884
9896
  * "ARTIFACTS_ENABLED": true,
9885
9897
  * "IMAGE_ENABLED": true,
9898
+ * "PRESENTATION_ENABLED": true,
9886
9899
  * "VISION_ENABLED": false,
9887
9900
  * "CONVERSATION_SEARCH_ENABLED": true,
9888
9901
  * "PERSONAL_AGENT": false,
@@ -9905,9 +9918,9 @@ interface components {
9905
9918
  * "ENABLE_THINKING": false,
9906
9919
  * "AGENT_STRICT_TOOL_CALLS": true,
9907
9920
  * "AGENT_MAX_ITERATIONS": 20,
9908
- * "AGENT_TURN_BUDGET_GBP": 0.5,
9921
+ * "AGENT_TURN_BUDGET_GBP": 5,
9909
9922
  * "AGENT_MAX_PARALLEL_TOOL_CALLS": 10,
9910
- * "AGENT_MAX_TOTAL_TOOL_CALLS": 80,
9923
+ * "AGENT_MAX_TOTAL_TOOL_CALLS": 800,
9911
9924
  * "AGENT_MAX_RUN_TOKENS": 1500000,
9912
9925
  * "AGENT_MAX_SUBAGENT_SPAWNS": 4,
9913
9926
  * "AGENT_HISTORY_TOKEN_BUDGET": 48000,
@@ -10047,13 +10060,13 @@ interface components {
10047
10060
  * "API_TYPE": "remote",
10048
10061
  * "ENABLE_THINKING": false,
10049
10062
  * "MODEL_NAME": "dummy",
10050
- * "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.",
10051
- * "TEMPERATURE": 0.2,
10063
+ * "SYSTEM_INSTRUCTION": "You are a professional legal translator. Translate each numbered passage into the target language, faithfully and completely: never summarise, shorten, merge, reorder or comment. Keep Markdown structure, numbers, dates, amounts, names, citations and cross-references exactly as written. Use the glossary translation for every glossary term, every time. Context passages are for reading only: never translate or return them.",
10064
+ * "TEMPERATURE": 0,
10052
10065
  * "MAX_TOKENS": 0,
10053
- * "WINDOW_TOKENS": 3000,
10054
- * "CONTEXT_TOKENS": 600,
10066
+ * "WINDOW_TOKENS": 1000,
10067
+ * "CONTEXT_TOKENS": 300,
10055
10068
  * "GLOSSARY_TOKENS": 6000,
10056
- * "MAX_CONCURRENT": 8
10069
+ * "MAX_CONCURRENT": 16
10057
10070
  * }
10058
10071
  */
10059
10072
  TranslationLLM: components['schemas']['TranslationLLMConfig'];
@@ -10461,11 +10474,11 @@ interface components {
10461
10474
  title: string;
10462
10475
  /**
10463
10476
  * Mode
10464
- * @description What the model wrote: markdown (default) or plain text — a document draft, stored as a Word document (DOCX) and opened in the Word editor; html (single-file page, rendered in a sandboxed preview); react (single-file JSX component, rendered in a sandboxed preview); or image (a generated image artifact — render the doc via the image viewer)
10477
+ * @description What the model wrote: markdown (default) or plain text — a document draft, stored as a Word document (DOCX) and opened in the Word editor; html (single-file page, rendered in a sandboxed preview); react (single-file JSX component, rendered in a sandboxed preview); image (a generated image artifact — render the doc via the image viewer); or presentation (a slide deck the assistant saved, a .pptx in Presentations: open or reload it in the slides editor; version_of is set when it is a new version of the deck open beside the chat, empty for a new deck)
10465
10478
  * @default markdown
10466
10479
  * @enum {string}
10467
10480
  */
10468
- mode: 'markdown' | 'html' | 'text' | 'react' | 'image';
10481
+ mode: 'markdown' | 'html' | 'text' | 'react' | 'image' | 'presentation';
10469
10482
  /**
10470
10483
  * Content
10471
10484
  * @description What the model wrote: the Markdown/text of a document draft (a preview: the document is the stored DOCX), or the html/jsx source; empty for image mode
@@ -10473,7 +10486,7 @@ interface components {
10473
10486
  content: string;
10474
10487
  /**
10475
10488
  * File Type
10476
- * @description Bare extension of the stored file: 'docx' for a document draft (markdown/text), 'html' or 'jsx' for a UI artifact, the image's (e.g. 'png') for image mode
10489
+ * @description Bare extension of the stored file: 'docx' for a document draft (markdown/text), 'html' or 'jsx' for a UI artifact, the image's (e.g. 'png') for image mode, 'pptx' for a presentation
10477
10490
  * @default
10478
10491
  */
10479
10492
  file_type: string;
@@ -12529,6 +12542,8 @@ interface components {
12529
12542
  * @default false
12530
12543
  */
12531
12544
  heading: boolean;
12545
+ /** Page Bbox */
12546
+ page_bbox?: number[] | null;
12532
12547
  /** Bbox */
12533
12548
  bbox?: number[] | null;
12534
12549
  /** Element Type */
@@ -13149,6 +13164,8 @@ interface components {
13149
13164
  backend_git_hash?: string | null;
13150
13165
  /** Frontend Docker Version */
13151
13166
  frontend_docker_version?: string | null;
13167
+ /** Deployment Policy Version */
13168
+ deployment_policy_version?: number | null;
13152
13169
  /**
13153
13170
  * Services
13154
13171
  * @default []
@@ -18958,6 +18975,23 @@ interface components {
18958
18975
  /** Amount Ex Vat */
18959
18976
  amount_ex_vat: number;
18960
18977
  };
18978
+ /** PageBlock */
18979
+ PageBlock: {
18980
+ /** Bbox */
18981
+ bbox: number[];
18982
+ /** Text */
18983
+ text: string;
18984
+ };
18985
+ /**
18986
+ * PageGeometry
18987
+ * @description Where the blocks of one parsed page sit, in reading order (the parser's ``parser_page_geometry``).
18988
+ */
18989
+ PageGeometry: {
18990
+ /** Size */
18991
+ size: number[];
18992
+ /** Blocks */
18993
+ blocks: components['schemas']['PageBlock'][];
18994
+ };
18961
18995
  /** ParsedDoc */
18962
18996
  ParsedDoc: {
18963
18997
  metadata: components['schemas']['ParsedDocMetadata'];
@@ -18973,6 +19007,13 @@ interface components {
18973
19007
  * @default []
18974
19008
  */
18975
19009
  chunks: components['schemas']['Chunk'][];
19010
+ /**
19011
+ * Page Geometry
19012
+ * @default {}
19013
+ */
19014
+ page_geometry: {
19015
+ [key: string]: components['schemas']['PageGeometry'];
19016
+ };
18976
19017
  };
18977
19018
  /** ParsedDocMetadata */
18978
19019
  ParsedDocMetadata: {
@@ -24458,23 +24499,13 @@ interface components {
24458
24499
  MODEL_NAME: string;
24459
24500
  /**
24460
24501
  * System Instruction
24461
- * @default You are a professional translator of legal, commercial and technical documents.
24462
- *
24463
- * You translate the numbered passages you are given into the target language, faithfully and completely:
24464
- * - Translate every passage in full. Never summarise, shorten, merge, split, reorder, explain or comment.
24465
- * - Keep the Markdown structure of each passage exactly: headings (#), lists, emphasis, tables (same rows and columns), links and line breaks.
24466
- * - Keep unchanged: numbers, dates as written, amounts, currencies, clause and section numbering, cross-references, citations, case names, statute names, email addresses, URLs and code.
24467
- * - Keep proper names of people, companies and places as they are written, unless the glossary gives a translation.
24468
- * - Use the glossary's translation for every glossary term, every time it occurs.
24469
- * - A defined term (a capitalised or quoted term given a meaning in the document) is translated the same way everywhere.
24470
- * - 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.
24471
- * - The context passages before and after are there only so the translation reads on from its neighbours. Never translate or return them.
24502
+ * @default You are a professional legal translator. Translate each numbered passage into the target language, faithfully and completely: never summarise, shorten, merge, reorder or comment. Keep Markdown structure, numbers, dates, amounts, names, citations and cross-references exactly as written. Use the glossary translation for every glossary term, every time. Context passages are for reading only: never translate or return them.
24472
24503
  */
24473
24504
  SYSTEM_INSTRUCTION: string;
24474
24505
  /**
24475
24506
  * Temperature
24476
- * @description Low temperature for faithful translation.
24477
- * @default 0.2
24507
+ * @description Greedy decoding for faithful, repeatable translation.
24508
+ * @default 0
24478
24509
  */
24479
24510
  TEMPERATURE: number;
24480
24511
  /**
@@ -24486,13 +24517,13 @@ interface components {
24486
24517
  /**
24487
24518
  * Window Tokens
24488
24519
  * @description Source tokens translated per call (whole passages; a larger passage goes alone).
24489
- * @default 3000
24520
+ * @default 1000
24490
24521
  */
24491
24522
  WINDOW_TOKENS: number;
24492
24523
  /**
24493
24524
  * Context Tokens
24494
24525
  * @description Source tokens before and after a window shown as read-only context.
24495
- * @default 600
24526
+ * @default 300
24496
24527
  */
24497
24528
  CONTEXT_TOKENS: number;
24498
24529
  /**
@@ -24503,8 +24534,8 @@ interface components {
24503
24534
  GLOSSARY_TOKENS: number;
24504
24535
  /**
24505
24536
  * Max Concurrent
24506
- * @description Maximum concurrent translation calls.
24507
- * @default 8
24537
+ * @description Maximum concurrent translation calls per worker process. The limit is fixed by the first translation a process runs, so the default is what applies in practice.
24538
+ * @default 16
24508
24539
  */
24509
24540
  MAX_CONCURRENT: number;
24510
24541
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/client",
3
- "version": "0.5.119",
3
+ "version": "0.5.121",
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,