@pdfvector/client 0.0.49 → 0.0.51

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/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @pdfvector/client
2
2
 
3
+ ## 0.0.51
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`8c7c7d0`](https://github.com/phuctm97/pdfvector/commit/8c7c7d0c650765ffe93f9e7524c42e9eba1e1f15)]:
8
+ - @pdfvector/instance-client@0.0.71
9
+
10
+ ## 0.0.50
11
+
12
+ ### Patch Changes
13
+
14
+ - [#366](https://github.com/phuctm97/pdfvector/pull/366) [`6eff6a7`](https://github.com/phuctm97/pdfvector/commit/6eff6a724246f47d7c4216fe1a81368e96d271ce) Thanks [@khanhduyvt0101](https://github.com/khanhduyvt0101)! - Move gateway and instance contracts into util while preserving their existing package exports. Upgrade workspace dependencies and adapt authentication storage, routing, Jotai atoms, schema validation, and package publishing to the current APIs. Replace redundant parsing, types, and retry code with library features.
15
+
16
+ Preserve academic request deadlines through proxy fallback, bound proxy attempts and discovery, batch similar-paper seed metadata, and retain graph enrichment results.
17
+
18
+ Return exact OpenAlex search offsets and split large citation and metadata requests into supported pages and batches.
19
+ - Updated dependencies [[`6eff6a7`](https://github.com/phuctm97/pdfvector/commit/6eff6a724246f47d7c4216fe1a81368e96d271ce)]:
20
+ - @pdfvector/instance-client@0.0.70
21
+
3
22
  ## 0.0.49
4
23
 
5
24
  ### Patch Changes
package/README.md CHANGED
@@ -625,6 +625,8 @@ console.log(resultB.documentId); // "doc-b"
625
625
 
626
626
  All API errors are thrown as `PDFVectorError` instances. The SDK maps server errors into specific subclasses and adds user/agent-friendly fields such as `title`, `suggestion`, `userError`, retry flags, and `requestId`.
627
627
 
628
+ For `INTERNAL_SERVER_ERROR`, the API returns a safe message and keeps the original provider failure in server diagnostics. Use `requestId` when contacting support. For document processing failures, check `reasonCode` and `retryableWithHigherModel` instead of parsing the message; `EXTRACTION_FAILED` identifies unusable structured output even if message wording changes. `DOCUMENT_PROCESSING_FAILED` identifies a processing rejection that was not confirmed to be a caller-input error, so the SDK suggests retrying or contacting support rather than changing the document. Error responses do not include raw AI output.
629
+
628
630
  ```typescript
629
631
  import {
630
632
  PDFVectorError,
@@ -722,7 +724,6 @@ try {
722
724
  console.error("The document has no readable content");
723
725
  } else if (error instanceof ExtractionFailedError) {
724
726
  console.error(`Extraction failed. Hint: ${error.hint}`);
725
- if (error.rawText) console.error(`Model output sample: ${error.rawText}`);
726
727
  }
727
728
  }
728
729
  ```
@@ -751,7 +752,7 @@ PDFVectorError
751
752
  ├── UnprocessableContentError (422)
752
753
  │ ├── EmptyDocumentError
753
754
  │ ├── NoTextDetectedError
754
- │ └── ExtractionFailedError — hint, rawText
755
+ │ └── ExtractionFailedError — hint
755
756
  ├── InternalServerError (500)
756
757
  └── NotImplementedError (501)
757
758
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdfvector/client",
3
- "version": "0.0.49",
3
+ "version": "0.0.51",
4
4
  "type": "module",
5
5
  "description": "Official TypeScript/JavaScript SDK for PDF Vector API",
6
6
  "license": "MIT",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "main": ".tsc/lib/index.js",
25
25
  "dependencies": {
26
- "@pdfvector/instance-client": "^0.0.69"
26
+ "@pdfvector/instance-client": "^0.0.71"
27
27
  },
28
28
  "types": ".tsc/lib/index.d.ts",
29
29
  "files": [