@talonic/docs 0.21.72 → 0.21.74

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/seo.js CHANGED
@@ -1129,6 +1129,10 @@ var openapi_default = {
1129
1129
  },
1130
1130
  vision_read: {
1131
1131
  type: "boolean"
1132
+ },
1133
+ vision_read_handwritten: {
1134
+ type: "boolean",
1135
+ description: "Read only the split documents that are filled in by hand from their page images. Ignored while `vision_read` is on."
1132
1136
  }
1133
1137
  }
1134
1138
  }
@@ -1153,6 +1157,17 @@ var openapi_default = {
1153
1157
  parameters: [
1154
1158
  {
1155
1159
  $ref: "#/components/parameters/ResourceId"
1160
+ },
1161
+ {
1162
+ name: "only",
1163
+ in: "query",
1164
+ schema: {
1165
+ type: "string",
1166
+ enum: [
1167
+ "handwritten"
1168
+ ]
1169
+ },
1170
+ description: "On a split packet, re-read only the segments filled in by hand (each page is checked first); `skipped` counts the others."
1156
1171
  }
1157
1172
  ],
1158
1173
  responses: {
@@ -34836,7 +34851,7 @@ var openapi_default = {
34836
34851
  post: {
34837
34852
  operationId: "syncParties",
34838
34853
  summary: "Start a sync of the rows with the data products",
34839
- description: "Starts a sync in the background and returns at once; `GET /v1/parties/status` reports progress. The sync registers every row, fills each from its mapped fields, the Field Registry and the Contracts app (no model call) and, when background reads are enabled, queues reads. One sync runs per workspace at a time; a request made while one runs does nothing further.",
34854
+ description: "Asks for a sync and returns once the workspace is marked due; `GET /v1/parties/status` reports `syncing` until it is done. With `row_ids` only those rows are filled again, at once. Without them a full pass runs on a worker: it registers every row, fills each from its mapped fields, the Field Registry and the Contracts app (no model call) and, when background reads are enabled, queues reads. One pass runs per workspace at a time; a request made while one runs gets its own pass after it.",
34840
34855
  tags: [
34841
34856
  "Contract Party Management"
34842
34857
  ],
@@ -37193,6 +37208,53 @@ var openapi_default = {
37193
37208
  }
37194
37209
  }
37195
37210
  },
37211
+ "/v1/chart-to-data/read-charts/preview": {
37212
+ get: {
37213
+ operationId: "previewChartToDataReadCharts",
37214
+ summary: "What reading the charts of selected documents would read and cost at most",
37215
+ description: `Checks each selected document as "Read charts" would (visible to the key's principal, a PDF that finished processing, not read before under the current prompt) and returns how many documents would be queued, the scanned charts they would read (each document up to its chart limit; null while one of them is not scanned yet), the paid calls those charts make at most and that many calls at the highest price one call may cost, rounded up to the cent. Nothing is admitted, queued or paid. Requires the ingest permission, as reading itself does.`,
37216
+ tags: [
37217
+ "Chart Extraction"
37218
+ ],
37219
+ parameters: [
37220
+ {
37221
+ name: "document_ids",
37222
+ in: "query",
37223
+ required: true,
37224
+ description: "Comma-separated document ids, 1 to 1,000.",
37225
+ style: "form",
37226
+ explode: false,
37227
+ schema: {
37228
+ type: "array",
37229
+ minItems: 1,
37230
+ maxItems: 1e3,
37231
+ items: {
37232
+ type: "string",
37233
+ format: "uuid"
37234
+ }
37235
+ }
37236
+ }
37237
+ ],
37238
+ responses: {
37239
+ "200": {
37240
+ description: "At most what the selection would read and cost.",
37241
+ content: {
37242
+ "application/json": {
37243
+ schema: {
37244
+ $ref: "#/components/schemas/ChartToDataReadChartsPreview"
37245
+ }
37246
+ }
37247
+ }
37248
+ },
37249
+ "400": {
37250
+ $ref: "#/components/responses/BadRequest"
37251
+ },
37252
+ "403": {
37253
+ $ref: "#/components/responses/Forbidden"
37254
+ }
37255
+ }
37256
+ }
37257
+ },
37196
37258
  "/v1/chart-to-data/runs": {
37197
37259
  post: {
37198
37260
  operationId: "queueChartToDataRun",
@@ -41545,7 +41607,8 @@ var openapi_default = {
41545
41607
  "bank_changed",
41546
41608
  "already_paid",
41547
41609
  "date_check",
41548
- "policy_rule"
41610
+ "policy_rule",
41611
+ "above_order_value"
41549
41612
  ]
41550
41613
  },
41551
41614
  description: "Bills with a hold of this reason."
@@ -41712,6 +41775,186 @@ var openapi_default = {
41712
41775
  }
41713
41776
  }
41714
41777
  },
41778
+ "/v1/ap/tolerance": {
41779
+ get: {
41780
+ operationId: "getApValueTolerance",
41781
+ summary: "The tolerance on a purchase order's value",
41782
+ description: "The percent by which the invoices billed against a purchase order may add up to more than its value before one is held: the workspace's (`value_tolerance_pct`, null when it set none) and the platform's (`default`).",
41783
+ tags: [
41784
+ "Accounts Payable"
41785
+ ],
41786
+ responses: {
41787
+ "200": {
41788
+ description: "The tolerance.",
41789
+ content: {
41790
+ "application/json": {
41791
+ schema: {
41792
+ $ref: "#/components/schemas/ApValueTolerance"
41793
+ }
41794
+ }
41795
+ }
41796
+ }
41797
+ }
41798
+ },
41799
+ put: {
41800
+ operationId: "saveApValueTolerance",
41801
+ summary: "Save the tolerance on a purchase order's value",
41802
+ description: "A percent from 0 to 50; `value_tolerance_pct: null` goes back to the platform's. The rest of the AP configuration is untouched. The invoices are checked again with it on the next read.",
41803
+ tags: [
41804
+ "Accounts Payable"
41805
+ ],
41806
+ requestBody: {
41807
+ required: true,
41808
+ content: {
41809
+ "application/json": {
41810
+ schema: {
41811
+ type: "object",
41812
+ properties: {
41813
+ value_tolerance_pct: {
41814
+ type: "number",
41815
+ minimum: 0,
41816
+ maximum: 50,
41817
+ nullable: true
41818
+ }
41819
+ }
41820
+ }
41821
+ }
41822
+ }
41823
+ },
41824
+ responses: {
41825
+ "200": {
41826
+ description: "The tolerance as saved.",
41827
+ content: {
41828
+ "application/json": {
41829
+ schema: {
41830
+ $ref: "#/components/schemas/ApValueTolerance"
41831
+ }
41832
+ }
41833
+ }
41834
+ },
41835
+ "400": {
41836
+ $ref: "#/components/responses/BadRequest"
41837
+ }
41838
+ }
41839
+ }
41840
+ },
41841
+ "/v1/ap/rules/checks/approve": {
41842
+ post: {
41843
+ operationId: "approveApRuleChecks",
41844
+ summary: "Put field checks in force",
41845
+ description: "A person approves the field checks of these rules. A check that passes then decides without the model; one that does not goes to the model. Every invoice is checked again.",
41846
+ tags: [
41847
+ "Accounts Payable"
41848
+ ],
41849
+ requestBody: {
41850
+ required: true,
41851
+ content: {
41852
+ "application/json": {
41853
+ schema: {
41854
+ type: "object",
41855
+ required: [
41856
+ "rule_ids"
41857
+ ],
41858
+ properties: {
41859
+ rule_ids: {
41860
+ type: "array",
41861
+ items: {
41862
+ type: "string",
41863
+ format: "uuid"
41864
+ }
41865
+ }
41866
+ }
41867
+ }
41868
+ }
41869
+ }
41870
+ },
41871
+ responses: {
41872
+ "201": {
41873
+ description: "How many rules changed.",
41874
+ content: {
41875
+ "application/json": {
41876
+ schema: {
41877
+ type: "object",
41878
+ properties: {
41879
+ approved: {
41880
+ type: "integer"
41881
+ }
41882
+ }
41883
+ }
41884
+ }
41885
+ }
41886
+ },
41887
+ "400": {
41888
+ $ref: "#/components/responses/BadRequest"
41889
+ }
41890
+ }
41891
+ }
41892
+ },
41893
+ "/v1/ap/dossier": {
41894
+ get: {
41895
+ operationId: "getApDossier",
41896
+ summary: "Talonic's finished table for payment rules",
41897
+ description: "The Spec chosen (`selected`, null when none), whether its latest run can be read (`state`: `none`, `processing` or `ready`) and the Specs to choose from with their columns.",
41898
+ tags: [
41899
+ "Accounts Payable"
41900
+ ],
41901
+ responses: {
41902
+ "200": {
41903
+ description: "The choice and the options.",
41904
+ content: {
41905
+ "application/json": {
41906
+ schema: {
41907
+ $ref: "#/components/schemas/ApDossierOptions"
41908
+ }
41909
+ }
41910
+ }
41911
+ }
41912
+ }
41913
+ },
41914
+ put: {
41915
+ operationId: "saveApDossier",
41916
+ summary: "Choose the Spec that connects documents",
41917
+ description: "Sets which Spec's finished table says which documents each invoice's check reads, and the columns holding each identifier. `dossier: null` unsets it. No check starts without one.",
41918
+ tags: [
41919
+ "Accounts Payable"
41920
+ ],
41921
+ requestBody: {
41922
+ required: true,
41923
+ content: {
41924
+ "application/json": {
41925
+ schema: {
41926
+ type: "object",
41927
+ properties: {
41928
+ dossier: {
41929
+ nullable: true,
41930
+ allOf: [
41931
+ {
41932
+ $ref: "#/components/schemas/ApDossier"
41933
+ }
41934
+ ]
41935
+ }
41936
+ }
41937
+ }
41938
+ }
41939
+ }
41940
+ },
41941
+ responses: {
41942
+ "200": {
41943
+ description: "The choice as saved and the options.",
41944
+ content: {
41945
+ "application/json": {
41946
+ schema: {
41947
+ $ref: "#/components/schemas/ApDossierOptions"
41948
+ }
41949
+ }
41950
+ }
41951
+ },
41952
+ "400": {
41953
+ $ref: "#/components/responses/BadRequest"
41954
+ }
41955
+ }
41956
+ }
41957
+ },
41715
41958
  "/v1/ap/config": {
41716
41959
  get: {
41717
41960
  operationId: "getApConfig",
@@ -42199,6 +42442,109 @@ var openapi_default = {
42199
42442
  }
42200
42443
  }
42201
42444
  },
42445
+ "/v1/ap/rules/effects": {
42446
+ post: {
42447
+ operationId: "setApRuleEffects",
42448
+ summary: "Say whether payment depends on several rules",
42449
+ description: "Nothing is checked again when it changes. Requires scope `write`.",
42450
+ tags: [
42451
+ "Accounts Payable"
42452
+ ],
42453
+ requestBody: {
42454
+ required: true,
42455
+ content: {
42456
+ "application/json": {
42457
+ schema: {
42458
+ type: "object",
42459
+ required: [
42460
+ "rule_ids",
42461
+ "effect"
42462
+ ],
42463
+ properties: {
42464
+ rule_ids: {
42465
+ type: "array",
42466
+ minItems: 1,
42467
+ maxItems: 500,
42468
+ items: {
42469
+ type: "string",
42470
+ format: "uuid"
42471
+ }
42472
+ },
42473
+ effect: {
42474
+ type: "string",
42475
+ enum: [
42476
+ "condition",
42477
+ "general",
42478
+ "payer"
42479
+ ]
42480
+ }
42481
+ }
42482
+ }
42483
+ }
42484
+ }
42485
+ },
42486
+ responses: {
42487
+ "201": {
42488
+ description: "Saved."
42489
+ },
42490
+ "404": {
42491
+ $ref: "#/components/responses/NotFound"
42492
+ }
42493
+ }
42494
+ }
42495
+ },
42496
+ "/v1/ap/rules/rules/{ruleId}/effect": {
42497
+ post: {
42498
+ operationId: "setApRuleEffect",
42499
+ summary: "Say whether payment depends on a rule",
42500
+ description: "`condition`: failing it holds the invoice. `general`: an alert or a note, the invoice is not held. `payer`: the paying party's own duty. Each rule starts as an agent decided, and nothing is checked again when it changes. Requires scope `write`.",
42501
+ tags: [
42502
+ "Accounts Payable"
42503
+ ],
42504
+ parameters: [
42505
+ {
42506
+ name: "ruleId",
42507
+ in: "path",
42508
+ required: true,
42509
+ schema: {
42510
+ type: "string",
42511
+ format: "uuid"
42512
+ }
42513
+ }
42514
+ ],
42515
+ requestBody: {
42516
+ required: true,
42517
+ content: {
42518
+ "application/json": {
42519
+ schema: {
42520
+ type: "object",
42521
+ required: [
42522
+ "effect"
42523
+ ],
42524
+ properties: {
42525
+ effect: {
42526
+ type: "string",
42527
+ enum: [
42528
+ "condition",
42529
+ "general",
42530
+ "payer"
42531
+ ]
42532
+ }
42533
+ }
42534
+ }
42535
+ }
42536
+ }
42537
+ },
42538
+ responses: {
42539
+ "201": {
42540
+ description: "Saved."
42541
+ },
42542
+ "404": {
42543
+ $ref: "#/components/responses/NotFound"
42544
+ }
42545
+ }
42546
+ }
42547
+ },
42202
42548
  "/v1/ap/intake": {
42203
42549
  post: {
42204
42550
  operationId: "postApIntake",
@@ -61210,6 +61556,46 @@ var openapi_default = {
61210
61556
  }
61211
61557
  }
61212
61558
  },
61559
+ ChartToDataReadChartsPreview: {
61560
+ type: "object",
61561
+ required: [
61562
+ "documents",
61563
+ "charts",
61564
+ "calls_max",
61565
+ "cost_max_usd",
61566
+ "currency"
61567
+ ],
61568
+ properties: {
61569
+ documents: {
61570
+ type: "integer",
61571
+ minimum: 0,
61572
+ description: "The selected documents that would be queued."
61573
+ },
61574
+ charts: {
61575
+ type: "integer",
61576
+ minimum: 0,
61577
+ nullable: true,
61578
+ description: "The scanned charts they would read; null while one of them is not scanned yet."
61579
+ },
61580
+ calls_max: {
61581
+ type: "integer",
61582
+ minimum: 0,
61583
+ description: "The paid calls those charts make at most (scanned documents only)."
61584
+ },
61585
+ cost_max_usd: {
61586
+ type: "number",
61587
+ minimum: 0,
61588
+ description: "calls_max at the highest price one call may cost",
61589
+ "rounded up to the cent.": null
61590
+ },
61591
+ currency: {
61592
+ type: "string",
61593
+ enum: [
61594
+ "USD"
61595
+ ]
61596
+ }
61597
+ }
61598
+ },
61213
61599
  ChartToDataCharts: {
61214
61600
  type: "object",
61215
61601
  properties: {
@@ -67658,7 +68044,8 @@ var openapi_default = {
67658
68044
  "bank_changed",
67659
68045
  "already_paid",
67660
68046
  "date_check",
67661
- "policy_rule"
68047
+ "policy_rule",
68048
+ "above_order_value"
67662
68049
  ]
67663
68050
  },
67664
68051
  label: {
@@ -67743,7 +68130,8 @@ var openapi_default = {
67743
68130
  "bank_changed",
67744
68131
  "already_paid",
67745
68132
  "date_check",
67746
- "policy_rule"
68133
+ "policy_rule",
68134
+ "above_order_value"
67747
68135
  ],
67748
68136
  description: "The kind of hold that decides the risk."
67749
68137
  },
@@ -67788,6 +68176,99 @@ var openapi_default = {
67788
68176
  }
67789
68177
  }
67790
68178
  },
68179
+ ApDossier: {
68180
+ type: "object",
68181
+ required: [
68182
+ "schema_id",
68183
+ "columns"
68184
+ ],
68185
+ properties: {
68186
+ schema_id: {
68187
+ type: "string",
68188
+ format: "uuid"
68189
+ },
68190
+ columns: {
68191
+ type: "object",
68192
+ properties: {
68193
+ supplier_id: {
68194
+ type: "string"
68195
+ },
68196
+ order_number: {
68197
+ type: "string"
68198
+ },
68199
+ contract_number: {
68200
+ type: "string"
68201
+ },
68202
+ invoice_number: {
68203
+ type: "string"
68204
+ },
68205
+ document_type: {
68206
+ type: "string"
68207
+ }
68208
+ }
68209
+ }
68210
+ }
68211
+ },
68212
+ ApDossierOptions: {
68213
+ type: "object",
68214
+ properties: {
68215
+ selected: {
68216
+ nullable: true,
68217
+ allOf: [
68218
+ {
68219
+ $ref: "#/components/schemas/ApDossier"
68220
+ }
68221
+ ]
68222
+ },
68223
+ state: {
68224
+ type: "string",
68225
+ enum: [
68226
+ "none",
68227
+ "processing",
68228
+ "ready"
68229
+ ]
68230
+ },
68231
+ specs: {
68232
+ type: "array",
68233
+ items: {
68234
+ type: "object",
68235
+ properties: {
68236
+ schema_id: {
68237
+ type: "string",
68238
+ format: "uuid"
68239
+ },
68240
+ name: {
68241
+ type: "string"
68242
+ },
68243
+ columns: {
68244
+ type: "array",
68245
+ items: {
68246
+ type: "string"
68247
+ }
68248
+ }
68249
+ }
68250
+ }
68251
+ }
68252
+ }
68253
+ },
68254
+ ApValueTolerance: {
68255
+ type: "object",
68256
+ required: [
68257
+ "value_tolerance_pct",
68258
+ "default"
68259
+ ],
68260
+ properties: {
68261
+ value_tolerance_pct: {
68262
+ type: "number",
68263
+ nullable: true,
68264
+ description: "The workspace's percent; null when it set none."
68265
+ },
68266
+ default: {
68267
+ type: "number",
68268
+ description: "The platform's percent, in force when the workspace set none."
68269
+ }
68270
+ }
68271
+ },
67791
68272
  ApRiskMatrix: {
67792
68273
  type: "object",
67793
68274
  properties: {
@@ -68022,6 +68503,49 @@ var openapi_default = {
68022
68503
  type: "string",
68023
68504
  nullable: true
68024
68505
  },
68506
+ reviewed_documents: {
68507
+ type: "array",
68508
+ description: "The documents the reviewers read for this invoice's payment rules.",
68509
+ items: {
68510
+ type: "object",
68511
+ properties: {
68512
+ document_id: {
68513
+ type: "string",
68514
+ format: "uuid"
68515
+ },
68516
+ filename: {
68517
+ type: "string",
68518
+ nullable: true
68519
+ }
68520
+ }
68521
+ }
68522
+ },
68523
+ documents_missing: {
68524
+ type: "array",
68525
+ description: "What the payment rules need that is not among the invoice's documents. Without it there is no final result.",
68526
+ items: {
68527
+ type: "object",
68528
+ properties: {
68529
+ what: {
68530
+ type: "string"
68531
+ },
68532
+ rule: {
68533
+ type: "string"
68534
+ },
68535
+ reason: {
68536
+ type: "string"
68537
+ },
68538
+ source: {
68539
+ type: "string",
68540
+ nullable: true
68541
+ },
68542
+ rule_quote: {
68543
+ type: "string",
68544
+ nullable: true
68545
+ }
68546
+ }
68547
+ }
68548
+ },
68025
68549
  status: {
68026
68550
  type: "string",
68027
68551
  enum: [
@@ -68169,7 +68693,8 @@ var openapi_default = {
68169
68693
  "bank_changed",
68170
68694
  "already_paid",
68171
68695
  "date_check",
68172
- "policy_rule"
68696
+ "policy_rule",
68697
+ "above_order_value"
68173
68698
  ]
68174
68699
  },
68175
68700
  label: {
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Tailwind CSS preset for @talonic/docs consumers.
3
+ * Adds the Void design system color tokens and font families
4
+ * so doc components render correctly in any host app.
5
+ */
6
+ declare const voidDocsPreset: {
7
+ darkMode: "class";
8
+ theme: {
9
+ extend: {
10
+ colors: {
11
+ 'void-bg': string;
12
+ 'void-bg-elevated': string;
13
+ 'void-surface': string;
14
+ 'void-surface-2': string;
15
+ 'void-surface-3': string;
16
+ 'void-border': string;
17
+ 'void-border-hover': string;
18
+ 'void-text-primary': string;
19
+ 'void-text-secondary': string;
20
+ 'void-text-muted': string;
21
+ 'void-text-tertiary': string;
22
+ 'void-accent': string;
23
+ 'void-accent-hover': string;
24
+ 'void-accent-dim': string;
25
+ 'void-accent-tint': string;
26
+ 'void-danger': string;
27
+ 'void-danger-solid': string;
28
+ 'void-divider': string;
29
+ 'void-warning': string;
30
+ 'void-warning-dim': string;
31
+ 'void-tier-1': string;
32
+ 'void-tier-2': string;
33
+ 'void-tier-3': string;
34
+ };
35
+ fontFamily: {
36
+ space: string[];
37
+ body: string[];
38
+ mono: string[];
39
+ };
40
+ };
41
+ };
42
+ plugins: never[];
43
+ };
44
+
45
+ export { voidDocsPreset as default };
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Tailwind CSS preset for @talonic/docs consumers.
3
+ * Adds the Void design system color tokens and font families
4
+ * so doc components render correctly in any host app.
5
+ */
6
+ declare const voidDocsPreset: {
7
+ darkMode: "class";
8
+ theme: {
9
+ extend: {
10
+ colors: {
11
+ 'void-bg': string;
12
+ 'void-bg-elevated': string;
13
+ 'void-surface': string;
14
+ 'void-surface-2': string;
15
+ 'void-surface-3': string;
16
+ 'void-border': string;
17
+ 'void-border-hover': string;
18
+ 'void-text-primary': string;
19
+ 'void-text-secondary': string;
20
+ 'void-text-muted': string;
21
+ 'void-text-tertiary': string;
22
+ 'void-accent': string;
23
+ 'void-accent-hover': string;
24
+ 'void-accent-dim': string;
25
+ 'void-accent-tint': string;
26
+ 'void-danger': string;
27
+ 'void-danger-solid': string;
28
+ 'void-divider': string;
29
+ 'void-warning': string;
30
+ 'void-warning-dim': string;
31
+ 'void-tier-1': string;
32
+ 'void-tier-2': string;
33
+ 'void-tier-3': string;
34
+ };
35
+ fontFamily: {
36
+ space: string[];
37
+ body: string[];
38
+ mono: string[];
39
+ };
40
+ };
41
+ };
42
+ plugins: never[];
43
+ };
44
+
45
+ export { voidDocsPreset as default };
package/openapi.json CHANGED
@@ -1124,6 +1124,10 @@
1124
1124
  },
1125
1125
  "vision_read": {
1126
1126
  "type": "boolean"
1127
+ },
1128
+ "vision_read_handwritten": {
1129
+ "type": "boolean",
1130
+ "description": "Read only the split documents that are filled in by hand from their page images. Ignored while `vision_read` is on."
1127
1131
  }
1128
1132
  }
1129
1133
  }
@@ -1148,6 +1152,17 @@
1148
1152
  "parameters": [
1149
1153
  {
1150
1154
  "$ref": "#/components/parameters/ResourceId"
1155
+ },
1156
+ {
1157
+ "name": "only",
1158
+ "in": "query",
1159
+ "schema": {
1160
+ "type": "string",
1161
+ "enum": [
1162
+ "handwritten"
1163
+ ]
1164
+ },
1165
+ "description": "On a split packet, re-read only the segments filled in by hand (each page is checked first); `skipped` counts the others."
1151
1166
  }
1152
1167
  ],
1153
1168
  "responses": {
@@ -34816,7 +34831,7 @@
34816
34831
  "post": {
34817
34832
  "operationId": "syncParties",
34818
34833
  "summary": "Start a sync of the rows with the data products",
34819
- "description": "Starts a sync in the background and returns at once; `GET /v1/parties/status` reports progress. The sync registers every row, fills each from its mapped fields, the Field Registry and the Contracts app (no model call) and, when background reads are enabled, queues reads. One sync runs per workspace at a time; a request made while one runs does nothing further.",
34834
+ "description": "Asks for a sync and returns once the workspace is marked due; `GET /v1/parties/status` reports `syncing` until it is done. With `row_ids` only those rows are filled again, at once. Without them a full pass runs on a worker: it registers every row, fills each from its mapped fields, the Field Registry and the Contracts app (no model call) and, when background reads are enabled, queues reads. One pass runs per workspace at a time; a request made while one runs gets its own pass after it.",
34820
34835
  "tags": [
34821
34836
  "Contract Party Management"
34822
34837
  ],
@@ -37173,6 +37188,53 @@
37173
37188
  }
37174
37189
  }
37175
37190
  },
37191
+ "/v1/chart-to-data/read-charts/preview": {
37192
+ "get": {
37193
+ "operationId": "previewChartToDataReadCharts",
37194
+ "summary": "What reading the charts of selected documents would read and cost at most",
37195
+ "description": "Checks each selected document as \"Read charts\" would (visible to the key's principal, a PDF that finished processing, not read before under the current prompt) and returns how many documents would be queued, the scanned charts they would read (each document up to its chart limit; null while one of them is not scanned yet), the paid calls those charts make at most and that many calls at the highest price one call may cost, rounded up to the cent. Nothing is admitted, queued or paid. Requires the ingest permission, as reading itself does.",
37196
+ "tags": [
37197
+ "Chart Extraction"
37198
+ ],
37199
+ "parameters": [
37200
+ {
37201
+ "name": "document_ids",
37202
+ "in": "query",
37203
+ "required": true,
37204
+ "description": "Comma-separated document ids, 1 to 1,000.",
37205
+ "style": "form",
37206
+ "explode": false,
37207
+ "schema": {
37208
+ "type": "array",
37209
+ "minItems": 1,
37210
+ "maxItems": 1000,
37211
+ "items": {
37212
+ "type": "string",
37213
+ "format": "uuid"
37214
+ }
37215
+ }
37216
+ }
37217
+ ],
37218
+ "responses": {
37219
+ "200": {
37220
+ "description": "At most what the selection would read and cost.",
37221
+ "content": {
37222
+ "application/json": {
37223
+ "schema": {
37224
+ "$ref": "#/components/schemas/ChartToDataReadChartsPreview"
37225
+ }
37226
+ }
37227
+ }
37228
+ },
37229
+ "400": {
37230
+ "$ref": "#/components/responses/BadRequest"
37231
+ },
37232
+ "403": {
37233
+ "$ref": "#/components/responses/Forbidden"
37234
+ }
37235
+ }
37236
+ }
37237
+ },
37176
37238
  "/v1/chart-to-data/runs": {
37177
37239
  "post": {
37178
37240
  "operationId": "queueChartToDataRun",
@@ -41525,7 +41587,8 @@
41525
41587
  "bank_changed",
41526
41588
  "already_paid",
41527
41589
  "date_check",
41528
- "policy_rule"
41590
+ "policy_rule",
41591
+ "above_order_value"
41529
41592
  ]
41530
41593
  },
41531
41594
  "description": "Bills with a hold of this reason."
@@ -41692,6 +41755,186 @@
41692
41755
  }
41693
41756
  }
41694
41757
  },
41758
+ "/v1/ap/tolerance": {
41759
+ "get": {
41760
+ "operationId": "getApValueTolerance",
41761
+ "summary": "The tolerance on a purchase order's value",
41762
+ "description": "The percent by which the invoices billed against a purchase order may add up to more than its value before one is held: the workspace's (`value_tolerance_pct`, null when it set none) and the platform's (`default`).",
41763
+ "tags": [
41764
+ "Accounts Payable"
41765
+ ],
41766
+ "responses": {
41767
+ "200": {
41768
+ "description": "The tolerance.",
41769
+ "content": {
41770
+ "application/json": {
41771
+ "schema": {
41772
+ "$ref": "#/components/schemas/ApValueTolerance"
41773
+ }
41774
+ }
41775
+ }
41776
+ }
41777
+ }
41778
+ },
41779
+ "put": {
41780
+ "operationId": "saveApValueTolerance",
41781
+ "summary": "Save the tolerance on a purchase order's value",
41782
+ "description": "A percent from 0 to 50; `value_tolerance_pct: null` goes back to the platform's. The rest of the AP configuration is untouched. The invoices are checked again with it on the next read.",
41783
+ "tags": [
41784
+ "Accounts Payable"
41785
+ ],
41786
+ "requestBody": {
41787
+ "required": true,
41788
+ "content": {
41789
+ "application/json": {
41790
+ "schema": {
41791
+ "type": "object",
41792
+ "properties": {
41793
+ "value_tolerance_pct": {
41794
+ "type": "number",
41795
+ "minimum": 0,
41796
+ "maximum": 50,
41797
+ "nullable": true
41798
+ }
41799
+ }
41800
+ }
41801
+ }
41802
+ }
41803
+ },
41804
+ "responses": {
41805
+ "200": {
41806
+ "description": "The tolerance as saved.",
41807
+ "content": {
41808
+ "application/json": {
41809
+ "schema": {
41810
+ "$ref": "#/components/schemas/ApValueTolerance"
41811
+ }
41812
+ }
41813
+ }
41814
+ },
41815
+ "400": {
41816
+ "$ref": "#/components/responses/BadRequest"
41817
+ }
41818
+ }
41819
+ }
41820
+ },
41821
+ "/v1/ap/rules/checks/approve": {
41822
+ "post": {
41823
+ "operationId": "approveApRuleChecks",
41824
+ "summary": "Put field checks in force",
41825
+ "description": "A person approves the field checks of these rules. A check that passes then decides without the model; one that does not goes to the model. Every invoice is checked again.",
41826
+ "tags": [
41827
+ "Accounts Payable"
41828
+ ],
41829
+ "requestBody": {
41830
+ "required": true,
41831
+ "content": {
41832
+ "application/json": {
41833
+ "schema": {
41834
+ "type": "object",
41835
+ "required": [
41836
+ "rule_ids"
41837
+ ],
41838
+ "properties": {
41839
+ "rule_ids": {
41840
+ "type": "array",
41841
+ "items": {
41842
+ "type": "string",
41843
+ "format": "uuid"
41844
+ }
41845
+ }
41846
+ }
41847
+ }
41848
+ }
41849
+ }
41850
+ },
41851
+ "responses": {
41852
+ "201": {
41853
+ "description": "How many rules changed.",
41854
+ "content": {
41855
+ "application/json": {
41856
+ "schema": {
41857
+ "type": "object",
41858
+ "properties": {
41859
+ "approved": {
41860
+ "type": "integer"
41861
+ }
41862
+ }
41863
+ }
41864
+ }
41865
+ }
41866
+ },
41867
+ "400": {
41868
+ "$ref": "#/components/responses/BadRequest"
41869
+ }
41870
+ }
41871
+ }
41872
+ },
41873
+ "/v1/ap/dossier": {
41874
+ "get": {
41875
+ "operationId": "getApDossier",
41876
+ "summary": "Talonic's finished table for payment rules",
41877
+ "description": "The Spec chosen (`selected`, null when none), whether its latest run can be read (`state`: `none`, `processing` or `ready`) and the Specs to choose from with their columns.",
41878
+ "tags": [
41879
+ "Accounts Payable"
41880
+ ],
41881
+ "responses": {
41882
+ "200": {
41883
+ "description": "The choice and the options.",
41884
+ "content": {
41885
+ "application/json": {
41886
+ "schema": {
41887
+ "$ref": "#/components/schemas/ApDossierOptions"
41888
+ }
41889
+ }
41890
+ }
41891
+ }
41892
+ }
41893
+ },
41894
+ "put": {
41895
+ "operationId": "saveApDossier",
41896
+ "summary": "Choose the Spec that connects documents",
41897
+ "description": "Sets which Spec's finished table says which documents each invoice's check reads, and the columns holding each identifier. `dossier: null` unsets it. No check starts without one.",
41898
+ "tags": [
41899
+ "Accounts Payable"
41900
+ ],
41901
+ "requestBody": {
41902
+ "required": true,
41903
+ "content": {
41904
+ "application/json": {
41905
+ "schema": {
41906
+ "type": "object",
41907
+ "properties": {
41908
+ "dossier": {
41909
+ "nullable": true,
41910
+ "allOf": [
41911
+ {
41912
+ "$ref": "#/components/schemas/ApDossier"
41913
+ }
41914
+ ]
41915
+ }
41916
+ }
41917
+ }
41918
+ }
41919
+ }
41920
+ },
41921
+ "responses": {
41922
+ "200": {
41923
+ "description": "The choice as saved and the options.",
41924
+ "content": {
41925
+ "application/json": {
41926
+ "schema": {
41927
+ "$ref": "#/components/schemas/ApDossierOptions"
41928
+ }
41929
+ }
41930
+ }
41931
+ },
41932
+ "400": {
41933
+ "$ref": "#/components/responses/BadRequest"
41934
+ }
41935
+ }
41936
+ }
41937
+ },
41695
41938
  "/v1/ap/config": {
41696
41939
  "get": {
41697
41940
  "operationId": "getApConfig",
@@ -42179,6 +42422,109 @@
42179
42422
  }
42180
42423
  }
42181
42424
  },
42425
+ "/v1/ap/rules/effects": {
42426
+ "post": {
42427
+ "operationId": "setApRuleEffects",
42428
+ "summary": "Say whether payment depends on several rules",
42429
+ "description": "Nothing is checked again when it changes. Requires scope `write`.",
42430
+ "tags": [
42431
+ "Accounts Payable"
42432
+ ],
42433
+ "requestBody": {
42434
+ "required": true,
42435
+ "content": {
42436
+ "application/json": {
42437
+ "schema": {
42438
+ "type": "object",
42439
+ "required": [
42440
+ "rule_ids",
42441
+ "effect"
42442
+ ],
42443
+ "properties": {
42444
+ "rule_ids": {
42445
+ "type": "array",
42446
+ "minItems": 1,
42447
+ "maxItems": 500,
42448
+ "items": {
42449
+ "type": "string",
42450
+ "format": "uuid"
42451
+ }
42452
+ },
42453
+ "effect": {
42454
+ "type": "string",
42455
+ "enum": [
42456
+ "condition",
42457
+ "general",
42458
+ "payer"
42459
+ ]
42460
+ }
42461
+ }
42462
+ }
42463
+ }
42464
+ }
42465
+ },
42466
+ "responses": {
42467
+ "201": {
42468
+ "description": "Saved."
42469
+ },
42470
+ "404": {
42471
+ "$ref": "#/components/responses/NotFound"
42472
+ }
42473
+ }
42474
+ }
42475
+ },
42476
+ "/v1/ap/rules/rules/{ruleId}/effect": {
42477
+ "post": {
42478
+ "operationId": "setApRuleEffect",
42479
+ "summary": "Say whether payment depends on a rule",
42480
+ "description": "`condition`: failing it holds the invoice. `general`: an alert or a note, the invoice is not held. `payer`: the paying party's own duty. Each rule starts as an agent decided, and nothing is checked again when it changes. Requires scope `write`.",
42481
+ "tags": [
42482
+ "Accounts Payable"
42483
+ ],
42484
+ "parameters": [
42485
+ {
42486
+ "name": "ruleId",
42487
+ "in": "path",
42488
+ "required": true,
42489
+ "schema": {
42490
+ "type": "string",
42491
+ "format": "uuid"
42492
+ }
42493
+ }
42494
+ ],
42495
+ "requestBody": {
42496
+ "required": true,
42497
+ "content": {
42498
+ "application/json": {
42499
+ "schema": {
42500
+ "type": "object",
42501
+ "required": [
42502
+ "effect"
42503
+ ],
42504
+ "properties": {
42505
+ "effect": {
42506
+ "type": "string",
42507
+ "enum": [
42508
+ "condition",
42509
+ "general",
42510
+ "payer"
42511
+ ]
42512
+ }
42513
+ }
42514
+ }
42515
+ }
42516
+ }
42517
+ },
42518
+ "responses": {
42519
+ "201": {
42520
+ "description": "Saved."
42521
+ },
42522
+ "404": {
42523
+ "$ref": "#/components/responses/NotFound"
42524
+ }
42525
+ }
42526
+ }
42527
+ },
42182
42528
  "/v1/ap/intake": {
42183
42529
  "post": {
42184
42530
  "operationId": "postApIntake",
@@ -61190,6 +61536,46 @@
61190
61536
  }
61191
61537
  }
61192
61538
  },
61539
+ "ChartToDataReadChartsPreview": {
61540
+ "type": "object",
61541
+ "required": [
61542
+ "documents",
61543
+ "charts",
61544
+ "calls_max",
61545
+ "cost_max_usd",
61546
+ "currency"
61547
+ ],
61548
+ "properties": {
61549
+ "documents": {
61550
+ "type": "integer",
61551
+ "minimum": 0,
61552
+ "description": "The selected documents that would be queued."
61553
+ },
61554
+ "charts": {
61555
+ "type": "integer",
61556
+ "minimum": 0,
61557
+ "nullable": true,
61558
+ "description": "The scanned charts they would read; null while one of them is not scanned yet."
61559
+ },
61560
+ "calls_max": {
61561
+ "type": "integer",
61562
+ "minimum": 0,
61563
+ "description": "The paid calls those charts make at most (scanned documents only)."
61564
+ },
61565
+ "cost_max_usd": {
61566
+ "type": "number",
61567
+ "minimum": 0,
61568
+ "description": "calls_max at the highest price one call may cost",
61569
+ "rounded up to the cent.": null
61570
+ },
61571
+ "currency": {
61572
+ "type": "string",
61573
+ "enum": [
61574
+ "USD"
61575
+ ]
61576
+ }
61577
+ }
61578
+ },
61193
61579
  "ChartToDataCharts": {
61194
61580
  "type": "object",
61195
61581
  "properties": {
@@ -67638,7 +68024,8 @@
67638
68024
  "bank_changed",
67639
68025
  "already_paid",
67640
68026
  "date_check",
67641
- "policy_rule"
68027
+ "policy_rule",
68028
+ "above_order_value"
67642
68029
  ]
67643
68030
  },
67644
68031
  "label": {
@@ -67723,7 +68110,8 @@
67723
68110
  "bank_changed",
67724
68111
  "already_paid",
67725
68112
  "date_check",
67726
- "policy_rule"
68113
+ "policy_rule",
68114
+ "above_order_value"
67727
68115
  ],
67728
68116
  "description": "The kind of hold that decides the risk."
67729
68117
  },
@@ -67768,6 +68156,99 @@
67768
68156
  }
67769
68157
  }
67770
68158
  },
68159
+ "ApDossier": {
68160
+ "type": "object",
68161
+ "required": [
68162
+ "schema_id",
68163
+ "columns"
68164
+ ],
68165
+ "properties": {
68166
+ "schema_id": {
68167
+ "type": "string",
68168
+ "format": "uuid"
68169
+ },
68170
+ "columns": {
68171
+ "type": "object",
68172
+ "properties": {
68173
+ "supplier_id": {
68174
+ "type": "string"
68175
+ },
68176
+ "order_number": {
68177
+ "type": "string"
68178
+ },
68179
+ "contract_number": {
68180
+ "type": "string"
68181
+ },
68182
+ "invoice_number": {
68183
+ "type": "string"
68184
+ },
68185
+ "document_type": {
68186
+ "type": "string"
68187
+ }
68188
+ }
68189
+ }
68190
+ }
68191
+ },
68192
+ "ApDossierOptions": {
68193
+ "type": "object",
68194
+ "properties": {
68195
+ "selected": {
68196
+ "nullable": true,
68197
+ "allOf": [
68198
+ {
68199
+ "$ref": "#/components/schemas/ApDossier"
68200
+ }
68201
+ ]
68202
+ },
68203
+ "state": {
68204
+ "type": "string",
68205
+ "enum": [
68206
+ "none",
68207
+ "processing",
68208
+ "ready"
68209
+ ]
68210
+ },
68211
+ "specs": {
68212
+ "type": "array",
68213
+ "items": {
68214
+ "type": "object",
68215
+ "properties": {
68216
+ "schema_id": {
68217
+ "type": "string",
68218
+ "format": "uuid"
68219
+ },
68220
+ "name": {
68221
+ "type": "string"
68222
+ },
68223
+ "columns": {
68224
+ "type": "array",
68225
+ "items": {
68226
+ "type": "string"
68227
+ }
68228
+ }
68229
+ }
68230
+ }
68231
+ }
68232
+ }
68233
+ },
68234
+ "ApValueTolerance": {
68235
+ "type": "object",
68236
+ "required": [
68237
+ "value_tolerance_pct",
68238
+ "default"
68239
+ ],
68240
+ "properties": {
68241
+ "value_tolerance_pct": {
68242
+ "type": "number",
68243
+ "nullable": true,
68244
+ "description": "The workspace's percent; null when it set none."
68245
+ },
68246
+ "default": {
68247
+ "type": "number",
68248
+ "description": "The platform's percent, in force when the workspace set none."
68249
+ }
68250
+ }
68251
+ },
67771
68252
  "ApRiskMatrix": {
67772
68253
  "type": "object",
67773
68254
  "properties": {
@@ -68002,6 +68483,49 @@
68002
68483
  "type": "string",
68003
68484
  "nullable": true
68004
68485
  },
68486
+ "reviewed_documents": {
68487
+ "type": "array",
68488
+ "description": "The documents the reviewers read for this invoice's payment rules.",
68489
+ "items": {
68490
+ "type": "object",
68491
+ "properties": {
68492
+ "document_id": {
68493
+ "type": "string",
68494
+ "format": "uuid"
68495
+ },
68496
+ "filename": {
68497
+ "type": "string",
68498
+ "nullable": true
68499
+ }
68500
+ }
68501
+ }
68502
+ },
68503
+ "documents_missing": {
68504
+ "type": "array",
68505
+ "description": "What the payment rules need that is not among the invoice's documents. Without it there is no final result.",
68506
+ "items": {
68507
+ "type": "object",
68508
+ "properties": {
68509
+ "what": {
68510
+ "type": "string"
68511
+ },
68512
+ "rule": {
68513
+ "type": "string"
68514
+ },
68515
+ "reason": {
68516
+ "type": "string"
68517
+ },
68518
+ "source": {
68519
+ "type": "string",
68520
+ "nullable": true
68521
+ },
68522
+ "rule_quote": {
68523
+ "type": "string",
68524
+ "nullable": true
68525
+ }
68526
+ }
68527
+ }
68528
+ },
68005
68529
  "status": {
68006
68530
  "type": "string",
68007
68531
  "enum": [
@@ -68149,7 +68673,8 @@
68149
68673
  "bank_changed",
68150
68674
  "already_paid",
68151
68675
  "date_check",
68152
- "policy_rule"
68676
+ "policy_rule",
68677
+ "above_order_value"
68153
68678
  ]
68154
68679
  },
68155
68680
  "label": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talonic/docs",
3
- "version": "0.21.72",
3
+ "version": "0.21.74",
4
4
  "description": "Talonic documentation components — API Reference & Platform Guide",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,