@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/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. `null` when no metadata was attached.
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
- * same results envelope `GET /v2/workflows/{id}/files/{id}/results/`
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`. Same shape as the v2 results endpoint.
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. `null` when no metadata was attached.
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
- * same results envelope `GET /v2/workflows/{id}/files/{id}/results/`
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`. Same shape as the v2 results endpoint.
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.5.0",
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/v2.json" --surface v2 && uv run python "$ROOT/anyformat/libs/public/sdk-js/scripts/dump_openapi.py" "$ROOT/anyformat/libs/public/sdk-js/openapi/v3.json" --surface v3',
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",