@talonic/docs 0.20.18 → 0.20.20
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/content.js +2560 -246
- package/dist/index.js +180 -0
- package/dist/index.js.map +1 -1
- package/dist/seo.js +23 -0
- package/package.json +1 -1
- package/dist/tailwind-preset.d.cts +0 -45
- package/dist/tailwind-preset.d.ts +0 -45
package/dist/index.js
CHANGED
|
@@ -813,6 +813,41 @@ var NAV_SECTIONS = [
|
|
|
813
813
|
{ id: "credits-usage-log", label: "Usage Log" }
|
|
814
814
|
]
|
|
815
815
|
},
|
|
816
|
+
{
|
|
817
|
+
id: "data-products",
|
|
818
|
+
label: "Data Products",
|
|
819
|
+
children: [
|
|
820
|
+
{ id: "list-data-products", label: "List Data Products" },
|
|
821
|
+
{ id: "get-data-product", label: "Get Data Product" },
|
|
822
|
+
{ id: "delete-data-product", label: "Delete Data Product" },
|
|
823
|
+
{ id: "get-data-product-results", label: "Get Results" }
|
|
824
|
+
]
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
id: "data-policies",
|
|
828
|
+
label: "Data Policies",
|
|
829
|
+
children: [
|
|
830
|
+
{ id: "list-data-policies", label: "List Policies" },
|
|
831
|
+
{ id: "create-data-policy", label: "Create Policy" },
|
|
832
|
+
{ id: "get-data-policy", label: "Get Policy" },
|
|
833
|
+
{ id: "update-data-policy", label: "Update Policy" },
|
|
834
|
+
{ id: "delete-data-policy", label: "Delete Policy" },
|
|
835
|
+
{ id: "list-data-policy-versions", label: "List Versions" },
|
|
836
|
+
{ id: "list-data-policy-fields", label: "List Fields" },
|
|
837
|
+
{ id: "list-data-policy-rules", label: "List Rules" }
|
|
838
|
+
]
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
id: "record-sets",
|
|
842
|
+
label: "Record Sets",
|
|
843
|
+
children: [
|
|
844
|
+
{ id: "list-record-sets", label: "List Record Sets" },
|
|
845
|
+
{ id: "get-record-set", label: "Get Record Set" },
|
|
846
|
+
{ id: "list-record-set-fields", label: "List Fields" },
|
|
847
|
+
{ id: "list-record-set-records", label: "List Records" },
|
|
848
|
+
{ id: "export-record-set", label: "Export" }
|
|
849
|
+
]
|
|
850
|
+
},
|
|
816
851
|
{
|
|
817
852
|
id: "billing",
|
|
818
853
|
label: "Billing",
|
|
@@ -5032,6 +5067,128 @@ function verifyWebhook(payload, signature, secret) {
|
|
|
5032
5067
|
}` })
|
|
5033
5068
|
}
|
|
5034
5069
|
) }),
|
|
5070
|
+
/* @__PURE__ */ jsx5(SectionHeading, { id: "data-products", children: "Data Products" }),
|
|
5071
|
+
/* @__PURE__ */ jsx5("p", { className: "text-[15px] text-void-text-secondary leading-relaxed mb-4", children: "Data products are the final assembled output of the structuring pipeline. They combine extraction results with resolution rules, validation, and approval gates into a deliverable dataset. Use these endpoints to list, inspect, and export your structured data." }),
|
|
5072
|
+
/* @__PURE__ */ jsx5(SubHeading, { id: "list-data-products", children: "List Data Products" }),
|
|
5073
|
+
/* @__PURE__ */ jsxs5(EndpointBlock, { method: "GET", path: "/v1/data-products", summary: "List data products with cursor-based pagination.", children: [
|
|
5074
|
+
/* @__PURE__ */ jsx5(ParamTable, { title: "Query parameters", params: [
|
|
5075
|
+
{ name: "status", type: "string", description: "Filter by status (draft, ready, published, archived)." },
|
|
5076
|
+
{ name: "limit", type: "integer", default: "20", description: "Items per page (1-100)." },
|
|
5077
|
+
{ name: "cursor", type: "string", description: "Opaque pagination cursor." },
|
|
5078
|
+
{ name: "order", type: "string", default: "desc", description: "Sort order (asc | desc)." }
|
|
5079
|
+
] }),
|
|
5080
|
+
/* @__PURE__ */ jsx5(CodeBlock, { title: "curl", children: `curl https://api.talonic.com/v1/data-products?status=ready \\
|
|
5081
|
+
-H "Authorization: Bearer tlnc_YOUR_KEY"` })
|
|
5082
|
+
] }),
|
|
5083
|
+
/* @__PURE__ */ jsx5(SubHeading, { id: "get-data-product", children: "Get Data Product" }),
|
|
5084
|
+
/* @__PURE__ */ jsx5(EndpointBlock, { method: "GET", path: "/v1/data-products/{id}", summary: "Get a single data product by ID.", children: /* @__PURE__ */ jsx5(ParamTable, { title: "Path parameters", params: [
|
|
5085
|
+
{ name: "id", type: "uuid", required: true, description: "Data product UUID." }
|
|
5086
|
+
] }) }),
|
|
5087
|
+
/* @__PURE__ */ jsx5(SubHeading, { id: "delete-data-product", children: "Delete Data Product" }),
|
|
5088
|
+
/* @__PURE__ */ jsx5(EndpointBlock, { method: "DELETE", path: "/v1/data-products/{id}", summary: "Delete a data product. Requires write scope.", children: /* @__PURE__ */ jsx5(ParamTable, { title: "Path parameters", params: [
|
|
5089
|
+
{ name: "id", type: "uuid", required: true, description: "Data product UUID." }
|
|
5090
|
+
] }) }),
|
|
5091
|
+
/* @__PURE__ */ jsx5(SubHeading, { id: "get-data-product-results", children: "Get Data Product Results" }),
|
|
5092
|
+
/* @__PURE__ */ jsxs5(EndpointBlock, { method: "GET", path: "/v1/data-products/{id}/results", summary: "Get paginated result rows for a data product.", children: [
|
|
5093
|
+
/* @__PURE__ */ jsx5(ParamTable, { title: "Path parameters", params: [
|
|
5094
|
+
{ name: "id", type: "uuid", required: true, description: "Data product UUID." }
|
|
5095
|
+
] }),
|
|
5096
|
+
/* @__PURE__ */ jsx5(ParamTable, { title: "Query parameters", params: [
|
|
5097
|
+
{ name: "limit", type: "integer", default: "20", description: "Items per page (1-100)." },
|
|
5098
|
+
{ name: "cursor", type: "string", description: "Opaque pagination cursor." }
|
|
5099
|
+
] }),
|
|
5100
|
+
/* @__PURE__ */ jsx5(CodeBlock, { title: "curl", children: `curl https://api.talonic.com/v1/data-products/DP_ID/results \\
|
|
5101
|
+
-H "Authorization: Bearer tlnc_YOUR_KEY"` })
|
|
5102
|
+
] }),
|
|
5103
|
+
/* @__PURE__ */ jsx5(SectionHeading, { id: "data-policies", children: "Data Policies" }),
|
|
5104
|
+
/* @__PURE__ */ jsx5("p", { className: "text-[15px] text-void-text-secondary leading-relaxed mb-4", children: "Data policies define transformation rules that normalize and enrich extracted field values. They power the resolution pipeline with lookup cascades, deterministic compute, format constraints, and optional Lua scripting. Policies are versioned \u2014 publish a version to lock it for production use." }),
|
|
5105
|
+
/* @__PURE__ */ jsx5(SubHeading, { id: "list-data-policies", children: "List Policies" }),
|
|
5106
|
+
/* @__PURE__ */ jsx5(EndpointBlock, { method: "GET", path: "/v1/data-policies", summary: "List all data policies with cursor-based pagination.", children: /* @__PURE__ */ jsx5(ParamTable, { title: "Query parameters", params: [
|
|
5107
|
+
{ name: "limit", type: "integer", default: "20", description: "Items per page (1-100)." },
|
|
5108
|
+
{ name: "cursor", type: "string", description: "Opaque pagination cursor." },
|
|
5109
|
+
{ name: "order", type: "string", default: "desc", description: "Sort order (asc | desc)." }
|
|
5110
|
+
] }) }),
|
|
5111
|
+
/* @__PURE__ */ jsx5(SubHeading, { id: "create-data-policy", children: "Create Policy" }),
|
|
5112
|
+
/* @__PURE__ */ jsxs5(EndpointBlock, { method: "POST", path: "/v1/data-policies", summary: "Create a new data policy. Requires write scope.", children: [
|
|
5113
|
+
/* @__PURE__ */ jsx5(ParamTable, { title: "Body parameters", params: [
|
|
5114
|
+
{ name: "name", type: "string", required: true, description: "Policy name." },
|
|
5115
|
+
{ name: "description", type: "string", description: "Optional description." }
|
|
5116
|
+
] }),
|
|
5117
|
+
/* @__PURE__ */ jsx5(CodeBlock, { title: "curl", children: `curl -X POST https://api.talonic.com/v1/data-policies \\
|
|
5118
|
+
-H "Authorization: Bearer tlnc_YOUR_KEY" \\
|
|
5119
|
+
-H "Content-Type: application/json" \\
|
|
5120
|
+
-d '{"name": "Invoice Normalization"}'` })
|
|
5121
|
+
] }),
|
|
5122
|
+
/* @__PURE__ */ jsx5(SubHeading, { id: "get-data-policy", children: "Get Policy" }),
|
|
5123
|
+
/* @__PURE__ */ jsxs5(EndpointBlock, { method: "GET", path: "/v1/data-policies/{id}", summary: "Get a policy with its fields and rules inlined.", children: [
|
|
5124
|
+
/* @__PURE__ */ jsx5(ParamTable, { title: "Path parameters", params: [
|
|
5125
|
+
{ name: "id", type: "uuid", required: true, description: "Policy UUID." }
|
|
5126
|
+
] }),
|
|
5127
|
+
/* @__PURE__ */ jsxs5(Callout, { type: "info", children: [
|
|
5128
|
+
"The response includes ",
|
|
5129
|
+
/* @__PURE__ */ jsx5(InlineCode, { children: "fields" }),
|
|
5130
|
+
" and ",
|
|
5131
|
+
/* @__PURE__ */ jsx5(InlineCode, { children: "rules" }),
|
|
5132
|
+
" arrays inlined in the policy object for convenience."
|
|
5133
|
+
] })
|
|
5134
|
+
] }),
|
|
5135
|
+
/* @__PURE__ */ jsx5(SubHeading, { id: "update-data-policy", children: "Update Policy" }),
|
|
5136
|
+
/* @__PURE__ */ jsx5(EndpointBlock, { method: "PATCH", path: "/v1/data-policies/{id}", summary: "Update policy name or description. Requires write scope.", children: /* @__PURE__ */ jsx5(ParamTable, { title: "Body parameters", params: [
|
|
5137
|
+
{ name: "name", type: "string", description: "New policy name." },
|
|
5138
|
+
{ name: "description", type: "string", description: "New description." }
|
|
5139
|
+
] }) }),
|
|
5140
|
+
/* @__PURE__ */ jsx5(SubHeading, { id: "delete-data-policy", children: "Delete Policy" }),
|
|
5141
|
+
/* @__PURE__ */ jsx5(EndpointBlock, { method: "DELETE", path: "/v1/data-policies/{id}", summary: "Delete a data policy. Requires write scope." }),
|
|
5142
|
+
/* @__PURE__ */ jsx5(SubHeading, { id: "list-data-policy-versions", children: "List Versions" }),
|
|
5143
|
+
/* @__PURE__ */ jsx5(EndpointBlock, { method: "GET", path: "/v1/data-policies/{id}/versions", summary: "List all published versions of a policy.", children: /* @__PURE__ */ jsx5(ParamTable, { title: "Path parameters", params: [
|
|
5144
|
+
{ name: "id", type: "uuid", required: true, description: "Policy UUID." }
|
|
5145
|
+
] }) }),
|
|
5146
|
+
/* @__PURE__ */ jsx5(SubHeading, { id: "list-data-policy-fields", children: "List Fields" }),
|
|
5147
|
+
/* @__PURE__ */ jsx5(EndpointBlock, { method: "GET", path: "/v1/data-policies/{id}/fields", summary: "List declared output fields for a policy.", children: /* @__PURE__ */ jsx5(ParamTable, { title: "Path parameters", params: [
|
|
5148
|
+
{ name: "id", type: "uuid", required: true, description: "Policy UUID." }
|
|
5149
|
+
] }) }),
|
|
5150
|
+
/* @__PURE__ */ jsx5(SubHeading, { id: "list-data-policy-rules", children: "List Rules" }),
|
|
5151
|
+
/* @__PURE__ */ jsx5(EndpointBlock, { method: "GET", path: "/v1/data-policies/{id}/rules", summary: "List transformation rules ordered by execution priority.", children: /* @__PURE__ */ jsx5(ParamTable, { title: "Path parameters", params: [
|
|
5152
|
+
{ name: "id", type: "uuid", required: true, description: "Policy UUID." }
|
|
5153
|
+
] }) }),
|
|
5154
|
+
/* @__PURE__ */ jsx5(SectionHeading, { id: "record-sets", children: "Record Sets" }),
|
|
5155
|
+
/* @__PURE__ */ jsx5("p", { className: "text-[15px] text-void-text-secondary leading-relaxed mb-4", children: "Record sets are the value-plane storage layer \u2014 typed tables that hold cell values with confidence scores and provenance metadata. Each extraction, structuring run, or resolution produces a record set at the appropriate layer (capture, structured, resolved, or product)." }),
|
|
5156
|
+
/* @__PURE__ */ jsx5(SubHeading, { id: "list-record-sets", children: "List Record Sets" }),
|
|
5157
|
+
/* @__PURE__ */ jsx5(EndpointBlock, { method: "GET", path: "/v1/record-sets", summary: "List record sets with optional layer and source_type filters.", children: /* @__PURE__ */ jsx5(ParamTable, { title: "Query parameters", params: [
|
|
5158
|
+
{ name: "layer", type: "string", description: "Filter by value layer (capture, structured, resolved, product)." },
|
|
5159
|
+
{ name: "source_type", type: "string", description: "Filter by source type (e.g. extraction, job, resolution)." },
|
|
5160
|
+
{ name: "limit", type: "integer", default: "20", description: "Items per page (1-100)." },
|
|
5161
|
+
{ name: "cursor", type: "string", description: "Opaque pagination cursor." },
|
|
5162
|
+
{ name: "order", type: "string", default: "desc", description: "Sort order (asc | desc)." }
|
|
5163
|
+
] }) }),
|
|
5164
|
+
/* @__PURE__ */ jsx5(SubHeading, { id: "get-record-set", children: "Get Record Set" }),
|
|
5165
|
+
/* @__PURE__ */ jsx5(EndpointBlock, { method: "GET", path: "/v1/record-sets/{id}", summary: "Get a single record set with field and record counts.", children: /* @__PURE__ */ jsx5(ParamTable, { title: "Path parameters", params: [
|
|
5166
|
+
{ name: "id", type: "uuid", required: true, description: "Record set UUID." }
|
|
5167
|
+
] }) }),
|
|
5168
|
+
/* @__PURE__ */ jsx5(SubHeading, { id: "list-record-set-fields", children: "List Fields" }),
|
|
5169
|
+
/* @__PURE__ */ jsx5(EndpointBlock, { method: "GET", path: "/v1/record-sets/{id}/fields", summary: "List the field schema for a record set, ordered by ordinal.", children: /* @__PURE__ */ jsx5(ParamTable, { title: "Path parameters", params: [
|
|
5170
|
+
{ name: "id", type: "uuid", required: true, description: "Record set UUID." }
|
|
5171
|
+
] }) }),
|
|
5172
|
+
/* @__PURE__ */ jsx5(SubHeading, { id: "list-record-set-records", children: "List Records" }),
|
|
5173
|
+
/* @__PURE__ */ jsxs5(EndpointBlock, { method: "GET", path: "/v1/record-sets/{id}/records", summary: "Get paginated records using offset pagination.", children: [
|
|
5174
|
+
/* @__PURE__ */ jsx5(ParamTable, { title: "Query parameters", params: [
|
|
5175
|
+
{ name: "page", type: "integer", default: "1", description: "Page number (1-based)." },
|
|
5176
|
+
{ name: "limit", type: "integer", default: "50", description: "Records per page (max 200)." }
|
|
5177
|
+
] }),
|
|
5178
|
+
/* @__PURE__ */ jsx5(CodeBlock, { title: "curl", children: `curl "https://api.talonic.com/v1/record-sets/RS_ID/records?page=1&limit=50" \\
|
|
5179
|
+
-H "Authorization: Bearer tlnc_YOUR_KEY"` })
|
|
5180
|
+
] }),
|
|
5181
|
+
/* @__PURE__ */ jsx5(SubHeading, { id: "export-record-set", children: "Export" }),
|
|
5182
|
+
/* @__PURE__ */ jsxs5(EndpointBlock, { method: "GET", path: "/v1/record-sets/{id}/export", summary: "Export all records as a JSON array. Best for smaller datasets.", children: [
|
|
5183
|
+
/* @__PURE__ */ jsx5(ParamTable, { title: "Path parameters", params: [
|
|
5184
|
+
{ name: "id", type: "uuid", required: true, description: "Record set UUID." }
|
|
5185
|
+
] }),
|
|
5186
|
+
/* @__PURE__ */ jsxs5(Callout, { type: "warning", children: [
|
|
5187
|
+
"For large record sets (10,000+ records), prefer the paginated ",
|
|
5188
|
+
/* @__PURE__ */ jsx5(InlineCode, { children: "/records" }),
|
|
5189
|
+
" endpoint to avoid timeouts and high memory usage."
|
|
5190
|
+
] })
|
|
5191
|
+
] }),
|
|
5035
5192
|
/* @__PURE__ */ jsx5(SectionHeading, { id: "errors-rate-limits", children: "Errors & Rate Limits" }),
|
|
5036
5193
|
/* @__PURE__ */ jsx5(SubHeading, { id: "error-format", children: "Error Format" }),
|
|
5037
5194
|
/* @__PURE__ */ jsx5("p", { className: "text-[15px] text-void-text-secondary leading-relaxed mb-4", children: "All errors return a consistent JSON structure with a machine-readable code and a human-readable message." }),
|
|
@@ -6715,6 +6872,29 @@ var API_NAV_SECTIONS = [
|
|
|
6715
6872
|
{ id: "registry", label: "Registry", children: [
|
|
6716
6873
|
{ id: "registry-query", label: "Query" }
|
|
6717
6874
|
] },
|
|
6875
|
+
{ id: "data-products", label: "Data Products", children: [
|
|
6876
|
+
{ id: "list-data-products", label: "List Data Products" },
|
|
6877
|
+
{ id: "get-data-product", label: "Get Data Product" },
|
|
6878
|
+
{ id: "delete-data-product", label: "Delete Data Product" },
|
|
6879
|
+
{ id: "get-data-product-results", label: "Get Results" }
|
|
6880
|
+
] },
|
|
6881
|
+
{ id: "data-policies", label: "Data Policies", children: [
|
|
6882
|
+
{ id: "list-data-policies", label: "List Policies" },
|
|
6883
|
+
{ id: "create-data-policy", label: "Create Policy" },
|
|
6884
|
+
{ id: "get-data-policy", label: "Get Policy" },
|
|
6885
|
+
{ id: "update-data-policy", label: "Update Policy" },
|
|
6886
|
+
{ id: "delete-data-policy", label: "Delete Policy" },
|
|
6887
|
+
{ id: "list-data-policy-versions", label: "List Versions" },
|
|
6888
|
+
{ id: "list-data-policy-fields", label: "List Fields" },
|
|
6889
|
+
{ id: "list-data-policy-rules", label: "List Rules" }
|
|
6890
|
+
] },
|
|
6891
|
+
{ id: "record-sets", label: "Record Sets", children: [
|
|
6892
|
+
{ id: "list-record-sets", label: "List Record Sets" },
|
|
6893
|
+
{ id: "get-record-set", label: "Get Record Set" },
|
|
6894
|
+
{ id: "list-record-set-fields", label: "List Fields" },
|
|
6895
|
+
{ id: "list-record-set-records", label: "List Records" },
|
|
6896
|
+
{ id: "export-record-set", label: "Export" }
|
|
6897
|
+
] },
|
|
6718
6898
|
{ id: "billing", label: "Billing", children: [
|
|
6719
6899
|
{ id: "billing-settings", label: "Settings" },
|
|
6720
6900
|
{ id: "billing-topup", label: "Auto Top-Up" },
|