@anyformat/sdk 1.4.0 → 1.6.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;
@@ -1449,8 +1449,8 @@ type KnowledgeNode = {
1449
1449
  * Inline lookup-file content carried on the typed create call.
1450
1450
  *
1451
1451
  * The backend reads ``filename`` + ``content`` (base64-encoded bytes),
1452
- * uploads the file, and stores the resulting URI in
1453
- * ``ExtractNode.lookup_files``. Create-input only — not persisted on
1452
+ * uploads the file, and appends the new lookup file's id to
1453
+ * ``ExtractNode.lookup_file_ids``. Create-input only — not persisted on
1454
1454
  * the node after upload.
1455
1455
  */
1456
1456
  type LookupFileUpload = {
@@ -1664,17 +1664,17 @@ type PublicExtractNode = {
1664
1664
  */
1665
1665
  id: string;
1666
1666
  /**
1667
- * Lookup File Uploads
1667
+ * Lookup File Ids
1668
1668
  *
1669
- * Inline lookup-file content for the typed create call. Each entry is uploaded and the resulting URI is appended to ``lookup_files``; this field is create-input only.
1669
+ * Ids of the workflow's smart-lookup reference files this node looks values up in. Read it back from GET and echo it to keep the files; write lookup_file_uploads to add one.
1670
1670
  */
1671
- lookup_file_uploads?: Array<LookupFileUpload>;
1671
+ lookup_file_ids?: Array<string>;
1672
1672
  /**
1673
- * Lookup Files
1673
+ * Lookup File Uploads
1674
1674
  *
1675
- * Smart-lookup reference document URIs persisted on the extract node.
1675
+ * Inline lookup-file content for the typed create call. Each entry is uploaded and its new id is appended to ``lookup_file_ids``; this field is create-input only.
1676
1676
  */
1677
- lookup_files?: Array<string>;
1677
+ lookup_file_uploads?: Array<LookupFileUpload>;
1678
1678
  /**
1679
1679
  * Lookup Reasoning Effort
1680
1680
  *
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;
@@ -1449,8 +1449,8 @@ type KnowledgeNode = {
1449
1449
  * Inline lookup-file content carried on the typed create call.
1450
1450
  *
1451
1451
  * The backend reads ``filename`` + ``content`` (base64-encoded bytes),
1452
- * uploads the file, and stores the resulting URI in
1453
- * ``ExtractNode.lookup_files``. Create-input only — not persisted on
1452
+ * uploads the file, and appends the new lookup file's id to
1453
+ * ``ExtractNode.lookup_file_ids``. Create-input only — not persisted on
1454
1454
  * the node after upload.
1455
1455
  */
1456
1456
  type LookupFileUpload = {
@@ -1664,17 +1664,17 @@ type PublicExtractNode = {
1664
1664
  */
1665
1665
  id: string;
1666
1666
  /**
1667
- * Lookup File Uploads
1667
+ * Lookup File Ids
1668
1668
  *
1669
- * Inline lookup-file content for the typed create call. Each entry is uploaded and the resulting URI is appended to ``lookup_files``; this field is create-input only.
1669
+ * Ids of the workflow's smart-lookup reference files this node looks values up in. Read it back from GET and echo it to keep the files; write lookup_file_uploads to add one.
1670
1670
  */
1671
- lookup_file_uploads?: Array<LookupFileUpload>;
1671
+ lookup_file_ids?: Array<string>;
1672
1672
  /**
1673
- * Lookup Files
1673
+ * Lookup File Uploads
1674
1674
  *
1675
- * Smart-lookup reference document URIs persisted on the extract node.
1675
+ * Inline lookup-file content for the typed create call. Each entry is uploaded and its new id is appended to ``lookup_file_ids``; this field is create-input only.
1676
1676
  */
1677
- lookup_files?: Array<string>;
1677
+ lookup_file_uploads?: Array<LookupFileUpload>;
1678
1678
  /**
1679
1679
  * Lookup Reasoning Effort
1680
1680
  *
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.0",
4
+ version: "1.6.0",
5
5
  description: "TypeScript SDK for the AnyFormat API",
6
6
  license: "MIT",
7
7
  author: "Anyformat <info@anyformat.ai>",