@arbidocs/client 0.3.35 → 0.3.37

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
@@ -728,9 +728,12 @@ interface paths {
728
728
  * List Documents
729
729
  * @description List documents in the current workspace.
730
730
  *
731
- * By default returns all documents (no pagination) since the frontend needs
732
- * the full set for client-side sort/search/filter. Pass ``limit``/``offset``
733
- * to opt into pagination — useful for the CLI when streaming a workspace.
731
+ * By default returns all documents (no pagination, full shape) since the
732
+ * frontend's client-side sort/search/filter needs the complete set.
733
+ *
734
+ * Pagination params (``limit``/``offset``) opt into server-side paging. When
735
+ * paginating, ``order`` chooses the scan (id ascending vs created_at
736
+ * descending) and ``fields=lite`` trims per-row decrypt cost.
734
737
  */
735
738
  get: operations['list_documents'];
736
739
  put?: never;
@@ -2347,7 +2350,7 @@ interface components {
2347
2350
  * @default {
2348
2351
  * "API_TYPE": "remote",
2349
2352
  * "ENABLE_THINKING": true,
2350
- * "MODEL_NAME": "Premium",
2353
+ * "MODEL_NAME": "GLM5@Fireworks",
2351
2354
  * "SYSTEM_INSTRUCTION": "You are a code execution agent. You write and run code to accomplish tasks.\n\nYou have access to an execute_code tool that runs code in a sandboxed Docker container.\n\nThe sandbox has:\n- Python 3.12 with numpy, pandas, matplotlib, requests, beautifulsoup4,\n httpx, pillow, sympy, pyyaml (plus uv for installing more)\n- Node.js 22 with TypeScript (ts-node) and npm\n- Bash with git, curl, wget, jq, sqlite3, build-essential\n- Network access (can pip/npm install additional packages)\n\nInstructions:\n1. Write clean, correct code to accomplish the user's task\n2. Always call execute_code to run your code — never guess the output\n3. If execution errors, analyze the traceback, fix the code, and retry\n4. Once you have the correct output, respond with ONLY the final result\n\nKeep code simple and direct. Prefer Python unless the task specifically requires another language.",
2352
2355
  * "TEMPERATURE": 0.2,
2353
2356
  * "MAX_TOKENS": 8000,
@@ -2817,7 +2820,7 @@ interface components {
2817
2820
  /**
2818
2821
  * Model Name
2819
2822
  * @description Model for code generation. Should be a strong coding model.
2820
- * @default Premium
2823
+ * @default GLM5@Fireworks
2821
2824
  */
2822
2825
  MODEL_NAME: string;
2823
2826
  /**
@@ -8637,8 +8640,12 @@ interface operations {
8637
8640
  query?: {
8638
8641
  /** @description Optional page size. Omit to return every document in the workspace (the default — the web UI's sort/search/filter is client-side and needs the full list). Set when paging through huge workspaces from a CLI. */
8639
8642
  limit?: number | null;
8640
- /** @description Optional offset for pagination. Requires a stable id-ordered scan. */
8643
+ /** @description Optional offset for pagination. Requires a stable ordered scan. */
8641
8644
  offset?: number | null;
8645
+ /** @description Ordering for paginated results. ``id_asc`` (default) walks docs by primary key and matches legacy behavior. ``created_desc`` returns newest-first and uses ix_docs_workspace_id_created_at_id_desc so the frontend's progressive loader hits a warm index. Ignored when limit/offset are omitted (unpaginated full-list has no order). */
8646
+ order?: string;
8647
+ /** @description Response payload shape. ``full`` (default) returns DocResponse with doctags and decrypted doc_metadata — unchanged legacy behavior. ``lite`` skips the doctags JOIN and doc_metadata decrypt for each row: doctags=[] and doc_metadata=None. Used by the frontend's progressive loader to halve per-row decrypt work; full metadata is fetched on-demand per doc via /v1/document/ when a row is opened. */
8648
+ fields?: string;
8642
8649
  };
8643
8650
  header?: never;
8644
8651
  path?: never;
package/dist/index.d.ts CHANGED
@@ -728,9 +728,12 @@ interface paths {
728
728
  * List Documents
729
729
  * @description List documents in the current workspace.
730
730
  *
731
- * By default returns all documents (no pagination) since the frontend needs
732
- * the full set for client-side sort/search/filter. Pass ``limit``/``offset``
733
- * to opt into pagination — useful for the CLI when streaming a workspace.
731
+ * By default returns all documents (no pagination, full shape) since the
732
+ * frontend's client-side sort/search/filter needs the complete set.
733
+ *
734
+ * Pagination params (``limit``/``offset``) opt into server-side paging. When
735
+ * paginating, ``order`` chooses the scan (id ascending vs created_at
736
+ * descending) and ``fields=lite`` trims per-row decrypt cost.
734
737
  */
735
738
  get: operations['list_documents'];
736
739
  put?: never;
@@ -2347,7 +2350,7 @@ interface components {
2347
2350
  * @default {
2348
2351
  * "API_TYPE": "remote",
2349
2352
  * "ENABLE_THINKING": true,
2350
- * "MODEL_NAME": "Premium",
2353
+ * "MODEL_NAME": "GLM5@Fireworks",
2351
2354
  * "SYSTEM_INSTRUCTION": "You are a code execution agent. You write and run code to accomplish tasks.\n\nYou have access to an execute_code tool that runs code in a sandboxed Docker container.\n\nThe sandbox has:\n- Python 3.12 with numpy, pandas, matplotlib, requests, beautifulsoup4,\n httpx, pillow, sympy, pyyaml (plus uv for installing more)\n- Node.js 22 with TypeScript (ts-node) and npm\n- Bash with git, curl, wget, jq, sqlite3, build-essential\n- Network access (can pip/npm install additional packages)\n\nInstructions:\n1. Write clean, correct code to accomplish the user's task\n2. Always call execute_code to run your code — never guess the output\n3. If execution errors, analyze the traceback, fix the code, and retry\n4. Once you have the correct output, respond with ONLY the final result\n\nKeep code simple and direct. Prefer Python unless the task specifically requires another language.",
2352
2355
  * "TEMPERATURE": 0.2,
2353
2356
  * "MAX_TOKENS": 8000,
@@ -2817,7 +2820,7 @@ interface components {
2817
2820
  /**
2818
2821
  * Model Name
2819
2822
  * @description Model for code generation. Should be a strong coding model.
2820
- * @default Premium
2823
+ * @default GLM5@Fireworks
2821
2824
  */
2822
2825
  MODEL_NAME: string;
2823
2826
  /**
@@ -8637,8 +8640,12 @@ interface operations {
8637
8640
  query?: {
8638
8641
  /** @description Optional page size. Omit to return every document in the workspace (the default — the web UI's sort/search/filter is client-side and needs the full list). Set when paging through huge workspaces from a CLI. */
8639
8642
  limit?: number | null;
8640
- /** @description Optional offset for pagination. Requires a stable id-ordered scan. */
8643
+ /** @description Optional offset for pagination. Requires a stable ordered scan. */
8641
8644
  offset?: number | null;
8645
+ /** @description Ordering for paginated results. ``id_asc`` (default) walks docs by primary key and matches legacy behavior. ``created_desc`` returns newest-first and uses ix_docs_workspace_id_created_at_id_desc so the frontend's progressive loader hits a warm index. Ignored when limit/offset are omitted (unpaginated full-list has no order). */
8646
+ order?: string;
8647
+ /** @description Response payload shape. ``full`` (default) returns DocResponse with doctags and decrypted doc_metadata — unchanged legacy behavior. ``lite`` skips the doctags JOIN and doc_metadata decrypt for each row: doctags=[] and doc_metadata=None. Used by the frontend's progressive loader to halve per-row decrypt work; full metadata is fetched on-demand per doc via /v1/document/ when a row is opened. */
8648
+ fields?: string;
8642
8649
  };
8643
8650
  header?: never;
8644
8651
  path?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/client",
3
- "version": "0.3.35",
3
+ "version": "0.3.37",
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",