@anyformat/sdk 1.5.0 → 1.7.0
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/README.md +1 -3
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -886,7 +886,7 @@ type DocumentPacketDetailV3 = {
|
|
|
886
886
|
/**
|
|
887
887
|
* Metadata
|
|
888
888
|
*
|
|
889
|
-
* Free-form JSON supplied at packet creation. No schema is enforced; the extract operator may source datapoints from a top-level key whose name matches a schema field
|
|
889
|
+
* Free-form JSON supplied at packet creation. No schema is enforced; the extract operator may source datapoints from a top-level key whose name matches a schema field, and from free text under `__anyformat_free_text__`. `null` when no metadata was attached.
|
|
890
890
|
*/
|
|
891
891
|
metadata?: {
|
|
892
892
|
[key: string]: unknown;
|
|
@@ -1981,8 +1981,7 @@ type ResultsResponseV3 = {
|
|
|
1981
1981
|
* Flat single-run read: lifecycle status plus results inline.
|
|
1982
1982
|
*
|
|
1983
1983
|
* `results` is `null` until the run reaches `processed`, then carries the
|
|
1984
|
-
*
|
|
1985
|
-
* returns — no separate results endpoint, no 412 while in flight.
|
|
1984
|
+
* results envelope — no separate results endpoint, no 412 while in flight.
|
|
1986
1985
|
*/
|
|
1987
1986
|
type RunDetailV3 = {
|
|
1988
1987
|
/**
|
|
@@ -2004,7 +2003,7 @@ type RunDetailV3 = {
|
|
|
2004
2003
|
*/
|
|
2005
2004
|
id: string;
|
|
2006
2005
|
/**
|
|
2007
|
-
* Extraction results envelope; `null` until `status` is `processed`.
|
|
2006
|
+
* Extraction results envelope; `null` until `status` is `processed`.
|
|
2008
2007
|
*/
|
|
2009
2008
|
results?: ResultsResponseV3 | null;
|
|
2010
2009
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -886,7 +886,7 @@ type DocumentPacketDetailV3 = {
|
|
|
886
886
|
/**
|
|
887
887
|
* Metadata
|
|
888
888
|
*
|
|
889
|
-
* Free-form JSON supplied at packet creation. No schema is enforced; the extract operator may source datapoints from a top-level key whose name matches a schema field
|
|
889
|
+
* Free-form JSON supplied at packet creation. No schema is enforced; the extract operator may source datapoints from a top-level key whose name matches a schema field, and from free text under `__anyformat_free_text__`. `null` when no metadata was attached.
|
|
890
890
|
*/
|
|
891
891
|
metadata?: {
|
|
892
892
|
[key: string]: unknown;
|
|
@@ -1981,8 +1981,7 @@ type ResultsResponseV3 = {
|
|
|
1981
1981
|
* Flat single-run read: lifecycle status plus results inline.
|
|
1982
1982
|
*
|
|
1983
1983
|
* `results` is `null` until the run reaches `processed`, then carries the
|
|
1984
|
-
*
|
|
1985
|
-
* returns — no separate results endpoint, no 412 while in flight.
|
|
1984
|
+
* results envelope — no separate results endpoint, no 412 while in flight.
|
|
1986
1985
|
*/
|
|
1987
1986
|
type RunDetailV3 = {
|
|
1988
1987
|
/**
|
|
@@ -2004,7 +2003,7 @@ type RunDetailV3 = {
|
|
|
2004
2003
|
*/
|
|
2005
2004
|
id: string;
|
|
2006
2005
|
/**
|
|
2007
|
-
* Extraction results envelope; `null` until `status` is `processed`.
|
|
2006
|
+
* Extraction results envelope; `null` until `status` is `processed`.
|
|
2008
2007
|
*/
|
|
2009
2008
|
results?: ResultsResponseV3 | null;
|
|
2010
2009
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// package.json
|
|
2
2
|
var package_default = {
|
|
3
3
|
name: "@anyformat/sdk",
|
|
4
|
-
version: "1.
|
|
4
|
+
version: "1.7.0",
|
|
5
5
|
description: "TypeScript SDK for the AnyFormat API",
|
|
6
6
|
license: "MIT",
|
|
7
7
|
author: "Anyformat <info@anyformat.ai>",
|
|
@@ -23,7 +23,7 @@ var package_default = {
|
|
|
23
23
|
node: ">=18"
|
|
24
24
|
},
|
|
25
25
|
scripts: {
|
|
26
|
-
"gen:spec": 'ROOT=$(unset GIT_DIR && git rev-parse --show-toplevel) && cd "$ROOT/anyformat/services/api" && uv run python "$ROOT/anyformat/libs/public/sdk-js/scripts/dump_openapi.py" "$ROOT/anyformat/libs/public/sdk-js/openapi/
|
|
26
|
+
"gen:spec": 'ROOT=$(unset GIT_DIR && git rev-parse --show-toplevel) && cd "$ROOT/anyformat/services/api" && uv run python "$ROOT/anyformat/libs/public/sdk-js/scripts/dump_openapi.py" "$ROOT/anyformat/libs/public/sdk-js/openapi/v3.json"',
|
|
27
27
|
"gen:client": "openapi-ts",
|
|
28
28
|
gen: "bun run gen:spec && bun run gen:client",
|
|
29
29
|
"gen:check": "bun run gen && git diff --exit-code -- openapi src/sdk",
|