@talonic/docs 0.21.49 → 0.21.50
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 +5 -1
- package/dist/seo.js +508 -5
- package/openapi.json +508 -5
- package/package.json +1 -1
package/dist/content.js
CHANGED
|
@@ -46355,7 +46355,7 @@ curl "https://api.talonic.com/v1/ai/models" \\
|
|
|
46355
46355
|
type: "param-table",
|
|
46356
46356
|
title: "Response fields",
|
|
46357
46357
|
params: [
|
|
46358
|
-
{ name: "policy", type: "object", description: "The stored policy document: version, status, region_pin, allowed_providers, denied_models, model_substitutions, default_models, max_attempts, model_classes, operation_classes, features. Unset fields are null." },
|
|
46358
|
+
{ name: "policy", type: "object", description: "The stored policy document: version, status, region_pin, allowed_providers, denied_models, model_substitutions, default_models, max_attempts, image_attachment_quality, model_classes, operation_classes, features. Unset fields are null." },
|
|
46359
46359
|
{ name: "inherited", type: "boolean", description: "True when the workspace has no stored policy and runs on the platform default." },
|
|
46360
46360
|
{ name: "constraints", type: "object", description: "The enforced mandatory constraints: region_pin, allowed_providers, denied_models, and platform_provider_floor (the deployment-level bound the tenant policy can only narrow, never widen)." },
|
|
46361
46361
|
{ name: "operation_classes", type: "object", description: "Per operation type: { class, source, overridden }. source is builtin, platform, or org; overridden is true when the workspace remapped the operation." },
|
|
@@ -46385,6 +46385,7 @@ curl "https://api.talonic.com/v1/ai/models" \\
|
|
|
46385
46385
|
"model_substitutions": null,
|
|
46386
46386
|
"default_models": null,
|
|
46387
46387
|
"max_attempts": null,
|
|
46388
|
+
"image_attachment_quality": null,
|
|
46388
46389
|
"model_classes": null,
|
|
46389
46390
|
"operation_classes": { "extraction": "complex" },
|
|
46390
46391
|
"features": null
|
|
@@ -46450,6 +46451,7 @@ curl "https://api.talonic.com/v1/ai/models" \\
|
|
|
46450
46451
|
{ name: "model_substitutions", type: "object", description: 'Remap one model onto another wherever the first would be chosen, for example {"claude-opus": "claude-sonnet"}. The substitute is still subject to every mandatory constraint.' },
|
|
46451
46452
|
{ name: "default_models", type: "object", description: "Preferred model per speed tier where no class governs the call. Keys are fast, default, powerful." },
|
|
46452
46453
|
{ name: "max_attempts", type: "integer", description: "Ceiling on provider attempts for one logical call. 1 to 8." },
|
|
46454
|
+
{ name: "image_attachment_quality", type: "string | null", description: "How much the vision model spends rasterising an attached PDF page (Gemini media resolution): low, medium (560 tokens per page) or high (1120). Image attachments are unaffected. Null means the deployment default; omitting it on PUT clears it." },
|
|
46453
46455
|
{ name: "model_classes", type: "object", description: "Named model lineage overrides. Values are camelCase: { description, chain: [{ model, deployments: [{ provider, region }] }], requiredCapabilities, fallback }. fallback is chain or primary_only." },
|
|
46454
46456
|
{ name: "operation_classes", type: "object", description: 'Per-operation class overrides keyed by operation type, for example {"extraction": "standard"}.' },
|
|
46455
46457
|
{ name: "features", type: "object", description: "Feature toggles with camelCase keys mapped to booleans. Absent toggles stay on." },
|
|
@@ -46806,6 +46808,7 @@ curl "https://api.talonic.com/v1/ai/models" \\
|
|
|
46806
46808
|
"model_substitutions": null,
|
|
46807
46809
|
"default_models": null,
|
|
46808
46810
|
"max_attempts": null,
|
|
46811
|
+
"image_attachment_quality": null,
|
|
46809
46812
|
"model_classes": null,
|
|
46810
46813
|
"operation_classes": null,
|
|
46811
46814
|
"features": null
|
|
@@ -46824,6 +46827,7 @@ curl "https://api.talonic.com/v1/ai/models" \\
|
|
|
46824
46827
|
"model_substitutions": null,
|
|
46825
46828
|
"default_models": null,
|
|
46826
46829
|
"max_attempts": null,
|
|
46830
|
+
"image_attachment_quality": null,
|
|
46827
46831
|
"model_classes": null,
|
|
46828
46832
|
"operation_classes": null,
|
|
46829
46833
|
"features": null
|
package/dist/seo.js
CHANGED
|
@@ -23152,6 +23152,7 @@ var openapi_default = {
|
|
|
23152
23152
|
model_substitutions: null,
|
|
23153
23153
|
default_models: null,
|
|
23154
23154
|
max_attempts: null,
|
|
23155
|
+
image_attachment_quality: null,
|
|
23155
23156
|
model_classes: null,
|
|
23156
23157
|
operation_classes: {
|
|
23157
23158
|
extraction: "complex"
|
|
@@ -23281,6 +23282,19 @@ var openapi_default = {
|
|
|
23281
23282
|
maximum: 8,
|
|
23282
23283
|
description: "Ceiling on provider attempts for one logical call."
|
|
23283
23284
|
},
|
|
23285
|
+
image_attachment_quality: {
|
|
23286
|
+
type: [
|
|
23287
|
+
"string",
|
|
23288
|
+
"null"
|
|
23289
|
+
],
|
|
23290
|
+
enum: [
|
|
23291
|
+
"low",
|
|
23292
|
+
"medium",
|
|
23293
|
+
"high",
|
|
23294
|
+
null
|
|
23295
|
+
],
|
|
23296
|
+
description: "How much the vision model spends rasterising an attached PDF page (Gemini media resolution; medium = 560 tokens per page, high = 1120). Image attachments are unaffected. Null = the deployment default. Omitting it on PUT clears it."
|
|
23297
|
+
},
|
|
23284
23298
|
model_classes: {
|
|
23285
23299
|
type: "object",
|
|
23286
23300
|
description: "Named model lineage overrides. Values are camelCase: { description, chain: [{ model, deployments: [{ provider, region }] }], requiredCapabilities, fallback: chain | primary_only }."
|
|
@@ -23358,6 +23372,7 @@ var openapi_default = {
|
|
|
23358
23372
|
model_substitutions: null,
|
|
23359
23373
|
default_models: null,
|
|
23360
23374
|
max_attempts: null,
|
|
23375
|
+
image_attachment_quality: null,
|
|
23361
23376
|
model_classes: null,
|
|
23362
23377
|
operation_classes: {
|
|
23363
23378
|
extraction: "complex"
|
|
@@ -23493,6 +23508,7 @@ var openapi_default = {
|
|
|
23493
23508
|
model_substitutions: null,
|
|
23494
23509
|
default_models: null,
|
|
23495
23510
|
max_attempts: null,
|
|
23511
|
+
image_attachment_quality: null,
|
|
23496
23512
|
model_classes: null,
|
|
23497
23513
|
operation_classes: null,
|
|
23498
23514
|
features: null
|
|
@@ -23894,6 +23910,7 @@ var openapi_default = {
|
|
|
23894
23910
|
model_substitutions: null,
|
|
23895
23911
|
default_models: null,
|
|
23896
23912
|
max_attempts: null,
|
|
23913
|
+
image_attachment_quality: null,
|
|
23897
23914
|
model_classes: null,
|
|
23898
23915
|
operation_classes: null,
|
|
23899
23916
|
features: null
|
|
@@ -23919,6 +23936,7 @@ var openapi_default = {
|
|
|
23919
23936
|
model_substitutions: null,
|
|
23920
23937
|
default_models: null,
|
|
23921
23938
|
max_attempts: null,
|
|
23939
|
+
image_attachment_quality: null,
|
|
23922
23940
|
model_classes: null,
|
|
23923
23941
|
operation_classes: null,
|
|
23924
23942
|
features: null
|
|
@@ -24793,6 +24811,11 @@ var openapi_default = {
|
|
|
24793
24811
|
"assisted",
|
|
24794
24812
|
"external"
|
|
24795
24813
|
]
|
|
24814
|
+
},
|
|
24815
|
+
description: {
|
|
24816
|
+
type: "string",
|
|
24817
|
+
maxLength: 2e3,
|
|
24818
|
+
description: "One sentence about the app, shown on its card. Optional."
|
|
24796
24819
|
}
|
|
24797
24820
|
}
|
|
24798
24821
|
}
|
|
@@ -27425,11 +27448,308 @@ var openapi_default = {
|
|
|
27425
27448
|
}
|
|
27426
27449
|
}
|
|
27427
27450
|
},
|
|
27451
|
+
"/v1/apps/{id}/subjects/summary": {
|
|
27452
|
+
get: {
|
|
27453
|
+
operationId: "getAppStandingSummary",
|
|
27454
|
+
summary: "Counts over the standing decisions of an app",
|
|
27455
|
+
description: "Total, per-decision counts, not-eligible counts per first blocking card and per-UTC-day counts, over the same standing set as `/subjects` and under the same `rule`+`status`, `decided_after` and `q` filters. `since` keeps subjects decided at or after it.",
|
|
27456
|
+
tags: [
|
|
27457
|
+
"Apps"
|
|
27458
|
+
],
|
|
27459
|
+
parameters: [
|
|
27460
|
+
{
|
|
27461
|
+
name: "id",
|
|
27462
|
+
in: "path",
|
|
27463
|
+
required: true,
|
|
27464
|
+
schema: {
|
|
27465
|
+
type: "string",
|
|
27466
|
+
format: "uuid"
|
|
27467
|
+
}
|
|
27468
|
+
},
|
|
27469
|
+
{
|
|
27470
|
+
name: "since",
|
|
27471
|
+
in: "query",
|
|
27472
|
+
schema: {
|
|
27473
|
+
type: "string",
|
|
27474
|
+
format: "date-time"
|
|
27475
|
+
}
|
|
27476
|
+
},
|
|
27477
|
+
{
|
|
27478
|
+
name: "rule",
|
|
27479
|
+
in: "query",
|
|
27480
|
+
schema: {
|
|
27481
|
+
type: "string"
|
|
27482
|
+
},
|
|
27483
|
+
description: "Card id; used with status."
|
|
27484
|
+
},
|
|
27485
|
+
{
|
|
27486
|
+
name: "status",
|
|
27487
|
+
in: "query",
|
|
27488
|
+
schema: {
|
|
27489
|
+
type: "string",
|
|
27490
|
+
enum: [
|
|
27491
|
+
"passed",
|
|
27492
|
+
"failed",
|
|
27493
|
+
"indeterminate",
|
|
27494
|
+
"not_applicable"
|
|
27495
|
+
]
|
|
27496
|
+
},
|
|
27497
|
+
description: "Outcome of the rule named by `rule`."
|
|
27498
|
+
},
|
|
27499
|
+
{
|
|
27500
|
+
name: "decided_after",
|
|
27501
|
+
in: "query",
|
|
27502
|
+
schema: {
|
|
27503
|
+
type: "string",
|
|
27504
|
+
format: "date-time"
|
|
27505
|
+
}
|
|
27506
|
+
},
|
|
27507
|
+
{
|
|
27508
|
+
name: "q",
|
|
27509
|
+
in: "query",
|
|
27510
|
+
schema: {
|
|
27511
|
+
type: "string",
|
|
27512
|
+
maxLength: 120
|
|
27513
|
+
},
|
|
27514
|
+
description: "Case-insensitive substring over subject key, label and document names."
|
|
27515
|
+
}
|
|
27516
|
+
],
|
|
27517
|
+
responses: {
|
|
27518
|
+
"200": {
|
|
27519
|
+
description: "Standing summary.",
|
|
27520
|
+
content: {
|
|
27521
|
+
"application/json": {
|
|
27522
|
+
schema: {
|
|
27523
|
+
type: "object",
|
|
27524
|
+
properties: {
|
|
27525
|
+
total: {
|
|
27526
|
+
type: "integer"
|
|
27527
|
+
},
|
|
27528
|
+
by_decision: {
|
|
27529
|
+
type: "object",
|
|
27530
|
+
properties: {
|
|
27531
|
+
eligible: {
|
|
27532
|
+
type: "integer"
|
|
27533
|
+
},
|
|
27534
|
+
ineligible: {
|
|
27535
|
+
type: "integer"
|
|
27536
|
+
},
|
|
27537
|
+
unclear: {
|
|
27538
|
+
type: "integer"
|
|
27539
|
+
}
|
|
27540
|
+
}
|
|
27541
|
+
},
|
|
27542
|
+
by_reason: {
|
|
27543
|
+
type: "array",
|
|
27544
|
+
items: {
|
|
27545
|
+
type: "object",
|
|
27546
|
+
properties: {
|
|
27547
|
+
card_id: {
|
|
27548
|
+
type: "string",
|
|
27549
|
+
nullable: true,
|
|
27550
|
+
description: "Null when the subject is not eligible but no card blocks it."
|
|
27551
|
+
},
|
|
27552
|
+
count: {
|
|
27553
|
+
type: "integer"
|
|
27554
|
+
}
|
|
27555
|
+
}
|
|
27556
|
+
}
|
|
27557
|
+
},
|
|
27558
|
+
by_day: {
|
|
27559
|
+
type: "array",
|
|
27560
|
+
items: {
|
|
27561
|
+
type: "object",
|
|
27562
|
+
properties: {
|
|
27563
|
+
day: {
|
|
27564
|
+
type: "string",
|
|
27565
|
+
format: "date"
|
|
27566
|
+
},
|
|
27567
|
+
eligible: {
|
|
27568
|
+
type: "integer"
|
|
27569
|
+
},
|
|
27570
|
+
not_eligible: {
|
|
27571
|
+
type: "integer"
|
|
27572
|
+
}
|
|
27573
|
+
}
|
|
27574
|
+
}
|
|
27575
|
+
}
|
|
27576
|
+
}
|
|
27577
|
+
}
|
|
27578
|
+
}
|
|
27579
|
+
}
|
|
27580
|
+
},
|
|
27581
|
+
"403": {
|
|
27582
|
+
description: "Master view ('all') or missing workspace \u2014 a concrete tenant is required."
|
|
27583
|
+
},
|
|
27584
|
+
"404": {
|
|
27585
|
+
$ref: "#/components/responses/NotFound"
|
|
27586
|
+
},
|
|
27587
|
+
"501": {
|
|
27588
|
+
description: "Batch verdicts are not available in this deployment."
|
|
27589
|
+
}
|
|
27590
|
+
}
|
|
27591
|
+
}
|
|
27592
|
+
},
|
|
27593
|
+
"/v1/apps/{id}/subjects/{key}/history": {
|
|
27594
|
+
get: {
|
|
27595
|
+
operationId: "getAppSubjectHistory",
|
|
27596
|
+
summary: "Every decision revision of one subject, oldest first",
|
|
27597
|
+
description: "All verdict rows for the subject key across the app's runs, including dry and unsealed ones, each with the deciding run's App version, trigger and `sealed` flag. Only sealed, non-dry rows can stand.",
|
|
27598
|
+
tags: [
|
|
27599
|
+
"Apps"
|
|
27600
|
+
],
|
|
27601
|
+
parameters: [
|
|
27602
|
+
{
|
|
27603
|
+
name: "id",
|
|
27604
|
+
in: "path",
|
|
27605
|
+
required: true,
|
|
27606
|
+
schema: {
|
|
27607
|
+
type: "string",
|
|
27608
|
+
format: "uuid"
|
|
27609
|
+
}
|
|
27610
|
+
},
|
|
27611
|
+
{
|
|
27612
|
+
name: "key",
|
|
27613
|
+
in: "path",
|
|
27614
|
+
required: true,
|
|
27615
|
+
schema: {
|
|
27616
|
+
type: "string"
|
|
27617
|
+
},
|
|
27618
|
+
description: "URL-encoded subject key."
|
|
27619
|
+
}
|
|
27620
|
+
],
|
|
27621
|
+
responses: {
|
|
27622
|
+
"200": {
|
|
27623
|
+
description: "Revision history.",
|
|
27624
|
+
content: {
|
|
27625
|
+
"application/json": {
|
|
27626
|
+
schema: {
|
|
27627
|
+
type: "object",
|
|
27628
|
+
properties: {
|
|
27629
|
+
subject_key: {
|
|
27630
|
+
type: "string"
|
|
27631
|
+
},
|
|
27632
|
+
active_version: {
|
|
27633
|
+
type: "integer",
|
|
27634
|
+
nullable: true
|
|
27635
|
+
},
|
|
27636
|
+
versions: {
|
|
27637
|
+
type: "object",
|
|
27638
|
+
description: "Content hash and per-rule fingerprints for the active version and every version that decided an entry.",
|
|
27639
|
+
additionalProperties: {
|
|
27640
|
+
type: "object",
|
|
27641
|
+
properties: {
|
|
27642
|
+
content_hash: {
|
|
27643
|
+
type: "string"
|
|
27644
|
+
},
|
|
27645
|
+
fingerprints: {
|
|
27646
|
+
type: "object",
|
|
27647
|
+
additionalProperties: {
|
|
27648
|
+
type: "string"
|
|
27649
|
+
}
|
|
27650
|
+
}
|
|
27651
|
+
}
|
|
27652
|
+
}
|
|
27653
|
+
},
|
|
27654
|
+
entries: {
|
|
27655
|
+
type: "array",
|
|
27656
|
+
items: {
|
|
27657
|
+
type: "object",
|
|
27658
|
+
properties: {
|
|
27659
|
+
first_blocking_card: {
|
|
27660
|
+
type: "string",
|
|
27661
|
+
nullable: true,
|
|
27662
|
+
description: "Earliest failed or indeterminate card in the authored order of the version that decided this entry; with no deciding version row, ordered by status, then key."
|
|
27663
|
+
},
|
|
27664
|
+
standing: {
|
|
27665
|
+
type: "boolean",
|
|
27666
|
+
description: "True for exactly the entry that is the subject's standing decision (highest revision of a completed, non-dry, sealed run), false for every other entry and for all entries when no run qualifies."
|
|
27667
|
+
},
|
|
27668
|
+
run_id: {
|
|
27669
|
+
type: "string",
|
|
27670
|
+
format: "uuid"
|
|
27671
|
+
},
|
|
27672
|
+
app_version: {
|
|
27673
|
+
type: "integer",
|
|
27674
|
+
nullable: true
|
|
27675
|
+
},
|
|
27676
|
+
app_version_hash: {
|
|
27677
|
+
type: "string",
|
|
27678
|
+
nullable: true
|
|
27679
|
+
},
|
|
27680
|
+
decision_revision: {
|
|
27681
|
+
type: "integer",
|
|
27682
|
+
nullable: true
|
|
27683
|
+
},
|
|
27684
|
+
decided_at: {
|
|
27685
|
+
type: "string",
|
|
27686
|
+
format: "date-time"
|
|
27687
|
+
},
|
|
27688
|
+
trigger: {
|
|
27689
|
+
type: "object",
|
|
27690
|
+
nullable: true
|
|
27691
|
+
},
|
|
27692
|
+
dry_run: {
|
|
27693
|
+
type: "boolean"
|
|
27694
|
+
},
|
|
27695
|
+
sealed: {
|
|
27696
|
+
type: "boolean"
|
|
27697
|
+
},
|
|
27698
|
+
rolled_outcome: {
|
|
27699
|
+
type: "string"
|
|
27700
|
+
},
|
|
27701
|
+
auto: {
|
|
27702
|
+
type: "boolean"
|
|
27703
|
+
},
|
|
27704
|
+
substantive_passes: {
|
|
27705
|
+
type: "integer"
|
|
27706
|
+
},
|
|
27707
|
+
subject_label: {
|
|
27708
|
+
type: "string",
|
|
27709
|
+
nullable: true
|
|
27710
|
+
},
|
|
27711
|
+
rule_outcomes: {
|
|
27712
|
+
type: "object",
|
|
27713
|
+
nullable: true
|
|
27714
|
+
},
|
|
27715
|
+
document_outcomes: {
|
|
27716
|
+
type: "array",
|
|
27717
|
+
nullable: true,
|
|
27718
|
+
items: {
|
|
27719
|
+
type: "object",
|
|
27720
|
+
properties: {
|
|
27721
|
+
filename: {
|
|
27722
|
+
type: "string",
|
|
27723
|
+
nullable: true
|
|
27724
|
+
}
|
|
27725
|
+
}
|
|
27726
|
+
}
|
|
27727
|
+
}
|
|
27728
|
+
}
|
|
27729
|
+
}
|
|
27730
|
+
}
|
|
27731
|
+
}
|
|
27732
|
+
}
|
|
27733
|
+
}
|
|
27734
|
+
}
|
|
27735
|
+
},
|
|
27736
|
+
"403": {
|
|
27737
|
+
description: "Master view ('all') or missing workspace \u2014 a concrete tenant is required."
|
|
27738
|
+
},
|
|
27739
|
+
"404": {
|
|
27740
|
+
$ref: "#/components/responses/NotFound"
|
|
27741
|
+
},
|
|
27742
|
+
"501": {
|
|
27743
|
+
description: "Batch verdicts are not available in this deployment."
|
|
27744
|
+
}
|
|
27745
|
+
}
|
|
27746
|
+
}
|
|
27747
|
+
},
|
|
27428
27748
|
"/v1/apps/{id}/subjects": {
|
|
27429
27749
|
get: {
|
|
27430
27750
|
operationId: "listAppStandingSubjects",
|
|
27431
27751
|
summary: "Standing decision per record group (highest revision across sealed runs)",
|
|
27432
|
-
description: "One row per subject key: the highest-`decision_revision` verdict among SEALED, non-dry runs \u2014 the decision a dedupe-by-max-revision receiver converges on. Each row names the deciding run, its App version and that version's content hash; the `versions` map carries a semantic fingerprint per rule so clients can render historical outcomes only under semantically identical current rules. Cursor-paginated by subject key.",
|
|
27752
|
+
description: "One row per subject key: the highest-`decision_revision` verdict among SEALED, non-dry runs \u2014 the decision a dedupe-by-max-revision receiver converges on. Each row names the deciding run, its App version and that version's content hash; the `versions` map carries a semantic fingerprint per rule so clients can render historical outcomes only under semantically identical current rules. Cursor-paginated by subject key by default, or newest-first with `sort=decided_at_desc`. Filters apply to the standing set and `total` counts every matching subject.",
|
|
27433
27753
|
tags: [
|
|
27434
27754
|
"Apps"
|
|
27435
27755
|
],
|
|
@@ -27459,7 +27779,7 @@ var openapi_default = {
|
|
|
27459
27779
|
schema: {
|
|
27460
27780
|
type: "string"
|
|
27461
27781
|
},
|
|
27462
|
-
description: "Opaque cursor: the last subject_key of the previous page
|
|
27782
|
+
description: "Opaque cursor: the last subject_key of the previous page, or for sort=decided_at_desc the value of `next`."
|
|
27463
27783
|
},
|
|
27464
27784
|
{
|
|
27465
27785
|
name: "include",
|
|
@@ -27467,10 +27787,84 @@ var openapi_default = {
|
|
|
27467
27787
|
schema: {
|
|
27468
27788
|
type: "string",
|
|
27469
27789
|
enum: [
|
|
27470
|
-
"summary"
|
|
27790
|
+
"summary",
|
|
27791
|
+
"full"
|
|
27471
27792
|
]
|
|
27472
27793
|
},
|
|
27473
27794
|
description: "'summary' omits rule_outcomes and document_outcomes from each row."
|
|
27795
|
+
},
|
|
27796
|
+
{
|
|
27797
|
+
name: "decision",
|
|
27798
|
+
in: "query",
|
|
27799
|
+
schema: {
|
|
27800
|
+
type: "string",
|
|
27801
|
+
enum: [
|
|
27802
|
+
"eligible",
|
|
27803
|
+
"ineligible",
|
|
27804
|
+
"unclear",
|
|
27805
|
+
"not_eligible"
|
|
27806
|
+
]
|
|
27807
|
+
},
|
|
27808
|
+
description: "not_eligible = ineligible or unclear."
|
|
27809
|
+
},
|
|
27810
|
+
{
|
|
27811
|
+
name: "rule",
|
|
27812
|
+
in: "query",
|
|
27813
|
+
schema: {
|
|
27814
|
+
type: "string"
|
|
27815
|
+
},
|
|
27816
|
+
description: "Card id; used with status."
|
|
27817
|
+
},
|
|
27818
|
+
{
|
|
27819
|
+
name: "status",
|
|
27820
|
+
in: "query",
|
|
27821
|
+
schema: {
|
|
27822
|
+
type: "string",
|
|
27823
|
+
enum: [
|
|
27824
|
+
"passed",
|
|
27825
|
+
"failed",
|
|
27826
|
+
"indeterminate",
|
|
27827
|
+
"not_applicable"
|
|
27828
|
+
]
|
|
27829
|
+
},
|
|
27830
|
+
description: "Outcome of the rule named by `rule`."
|
|
27831
|
+
},
|
|
27832
|
+
{
|
|
27833
|
+
name: "reason",
|
|
27834
|
+
in: "query",
|
|
27835
|
+
schema: {
|
|
27836
|
+
type: "string"
|
|
27837
|
+
},
|
|
27838
|
+
description: "Card id; keeps subjects whose first blocking card (in the deciding version's authored order) is this one."
|
|
27839
|
+
},
|
|
27840
|
+
{
|
|
27841
|
+
name: "decided_after",
|
|
27842
|
+
in: "query",
|
|
27843
|
+
schema: {
|
|
27844
|
+
type: "string",
|
|
27845
|
+
format: "date-time"
|
|
27846
|
+
}
|
|
27847
|
+
},
|
|
27848
|
+
{
|
|
27849
|
+
name: "q",
|
|
27850
|
+
in: "query",
|
|
27851
|
+
schema: {
|
|
27852
|
+
type: "string",
|
|
27853
|
+
maxLength: 120
|
|
27854
|
+
},
|
|
27855
|
+
description: "Case-insensitive substring over subject key, label and document names."
|
|
27856
|
+
},
|
|
27857
|
+
{
|
|
27858
|
+
name: "sort",
|
|
27859
|
+
in: "query",
|
|
27860
|
+
schema: {
|
|
27861
|
+
type: "string",
|
|
27862
|
+
enum: [
|
|
27863
|
+
"decided_at_desc",
|
|
27864
|
+
"subject_key"
|
|
27865
|
+
],
|
|
27866
|
+
default: "subject_key"
|
|
27867
|
+
}
|
|
27474
27868
|
}
|
|
27475
27869
|
],
|
|
27476
27870
|
responses: {
|
|
@@ -27489,6 +27883,14 @@ var openapi_default = {
|
|
|
27489
27883
|
subject_key: {
|
|
27490
27884
|
type: "string"
|
|
27491
27885
|
},
|
|
27886
|
+
subject_label: {
|
|
27887
|
+
type: "string",
|
|
27888
|
+
nullable: true
|
|
27889
|
+
},
|
|
27890
|
+
first_blocking_card: {
|
|
27891
|
+
type: "string",
|
|
27892
|
+
nullable: true
|
|
27893
|
+
},
|
|
27492
27894
|
rolled_outcome: {
|
|
27493
27895
|
type: "string",
|
|
27494
27896
|
enum: [
|
|
@@ -27512,7 +27914,13 @@ var openapi_default = {
|
|
|
27512
27914
|
type: "array",
|
|
27513
27915
|
nullable: true,
|
|
27514
27916
|
items: {
|
|
27515
|
-
type: "object"
|
|
27917
|
+
type: "object",
|
|
27918
|
+
properties: {
|
|
27919
|
+
filename: {
|
|
27920
|
+
type: "string",
|
|
27921
|
+
nullable: true
|
|
27922
|
+
}
|
|
27923
|
+
}
|
|
27516
27924
|
}
|
|
27517
27925
|
},
|
|
27518
27926
|
decision_state: {
|
|
@@ -27549,6 +27957,10 @@ var openapi_default = {
|
|
|
27549
27957
|
type: "string",
|
|
27550
27958
|
nullable: true
|
|
27551
27959
|
},
|
|
27960
|
+
total: {
|
|
27961
|
+
type: "integer",
|
|
27962
|
+
description: "Subjects matching the filters, across all pages; read it from the first page (an empty page past the end reports 0)."
|
|
27963
|
+
},
|
|
27552
27964
|
active_version: {
|
|
27553
27965
|
type: "integer",
|
|
27554
27966
|
nullable: true
|
|
@@ -28462,13 +28874,18 @@ var openapi_default = {
|
|
|
28462
28874
|
subject_label: {
|
|
28463
28875
|
type: "string",
|
|
28464
28876
|
nullable: true,
|
|
28465
|
-
description: "
|
|
28877
|
+
description: "Subject label stored when the verdict was decided; for older rows without one, the readable label from the subject binding's data product (cleaned alias); null when neither resolves."
|
|
28466
28878
|
},
|
|
28467
28879
|
subject_record_id: {
|
|
28468
28880
|
type: "string",
|
|
28469
28881
|
nullable: true,
|
|
28470
28882
|
description: "Anchor record id in the subject binding's data product \u2014 deep-links the product review; null when unresolvable."
|
|
28471
28883
|
},
|
|
28884
|
+
decided_at: {
|
|
28885
|
+
type: "string",
|
|
28886
|
+
format: "date-time",
|
|
28887
|
+
description: "When this verdict was decided."
|
|
28888
|
+
},
|
|
28472
28889
|
rolled_outcome: {
|
|
28473
28890
|
type: "string",
|
|
28474
28891
|
enum: [
|
|
@@ -28608,6 +29025,92 @@ var openapi_default = {
|
|
|
28608
29025
|
}
|
|
28609
29026
|
}
|
|
28610
29027
|
},
|
|
29028
|
+
"/v1/runs/{runId}/records": {
|
|
29029
|
+
get: {
|
|
29030
|
+
operationId: "getRunSubjectRecords",
|
|
29031
|
+
summary: "One subject's frozen package records in a run",
|
|
29032
|
+
description: "The records of the run's frozen input package that belong to one subject (group), exactly as frozen, with the source documents those records cite.",
|
|
29033
|
+
tags: [
|
|
29034
|
+
"Apps"
|
|
29035
|
+
],
|
|
29036
|
+
parameters: [
|
|
29037
|
+
{
|
|
29038
|
+
name: "runId",
|
|
29039
|
+
in: "path",
|
|
29040
|
+
required: true,
|
|
29041
|
+
schema: {
|
|
29042
|
+
type: "string",
|
|
29043
|
+
format: "uuid"
|
|
29044
|
+
}
|
|
29045
|
+
},
|
|
29046
|
+
{
|
|
29047
|
+
name: "subject",
|
|
29048
|
+
in: "query",
|
|
29049
|
+
required: true,
|
|
29050
|
+
schema: {
|
|
29051
|
+
type: "string"
|
|
29052
|
+
}
|
|
29053
|
+
}
|
|
29054
|
+
],
|
|
29055
|
+
responses: {
|
|
29056
|
+
"200": {
|
|
29057
|
+
description: "Subject records.",
|
|
29058
|
+
content: {
|
|
29059
|
+
"application/json": {
|
|
29060
|
+
schema: {
|
|
29061
|
+
type: "object",
|
|
29062
|
+
properties: {
|
|
29063
|
+
run_id: {
|
|
29064
|
+
type: "string",
|
|
29065
|
+
format: "uuid"
|
|
29066
|
+
},
|
|
29067
|
+
subject_key: {
|
|
29068
|
+
type: "string"
|
|
29069
|
+
},
|
|
29070
|
+
records: {
|
|
29071
|
+
type: "array",
|
|
29072
|
+
items: {
|
|
29073
|
+
type: "object"
|
|
29074
|
+
}
|
|
29075
|
+
},
|
|
29076
|
+
documents: {
|
|
29077
|
+
type: "array",
|
|
29078
|
+
items: {
|
|
29079
|
+
type: "object",
|
|
29080
|
+
properties: {
|
|
29081
|
+
document_id: {
|
|
29082
|
+
type: "string",
|
|
29083
|
+
format: "uuid"
|
|
29084
|
+
},
|
|
29085
|
+
filename: {
|
|
29086
|
+
type: "string"
|
|
29087
|
+
},
|
|
29088
|
+
mime_type: {
|
|
29089
|
+
type: "string"
|
|
29090
|
+
},
|
|
29091
|
+
file_url: {
|
|
29092
|
+
type: "string"
|
|
29093
|
+
}
|
|
29094
|
+
}
|
|
29095
|
+
}
|
|
29096
|
+
}
|
|
29097
|
+
}
|
|
29098
|
+
}
|
|
29099
|
+
}
|
|
29100
|
+
}
|
|
29101
|
+
},
|
|
29102
|
+
"400": {
|
|
29103
|
+
description: "subject is missing or longer than 512 characters."
|
|
29104
|
+
},
|
|
29105
|
+
"404": {
|
|
29106
|
+
$ref: "#/components/responses/NotFound"
|
|
29107
|
+
},
|
|
29108
|
+
"501": {
|
|
29109
|
+
description: "Batch verdicts are not available in this deployment."
|
|
29110
|
+
}
|
|
29111
|
+
}
|
|
29112
|
+
}
|
|
29113
|
+
},
|
|
28611
29114
|
"/v1/runs/{runId}/reconstruction": {
|
|
28612
29115
|
get: {
|
|
28613
29116
|
operationId: "reconstructRunDocumentMatrix",
|
package/openapi.json
CHANGED
|
@@ -23132,6 +23132,7 @@
|
|
|
23132
23132
|
"model_substitutions": null,
|
|
23133
23133
|
"default_models": null,
|
|
23134
23134
|
"max_attempts": null,
|
|
23135
|
+
"image_attachment_quality": null,
|
|
23135
23136
|
"model_classes": null,
|
|
23136
23137
|
"operation_classes": {
|
|
23137
23138
|
"extraction": "complex"
|
|
@@ -23261,6 +23262,19 @@
|
|
|
23261
23262
|
"maximum": 8,
|
|
23262
23263
|
"description": "Ceiling on provider attempts for one logical call."
|
|
23263
23264
|
},
|
|
23265
|
+
"image_attachment_quality": {
|
|
23266
|
+
"type": [
|
|
23267
|
+
"string",
|
|
23268
|
+
"null"
|
|
23269
|
+
],
|
|
23270
|
+
"enum": [
|
|
23271
|
+
"low",
|
|
23272
|
+
"medium",
|
|
23273
|
+
"high",
|
|
23274
|
+
null
|
|
23275
|
+
],
|
|
23276
|
+
"description": "How much the vision model spends rasterising an attached PDF page (Gemini media resolution; medium = 560 tokens per page, high = 1120). Image attachments are unaffected. Null = the deployment default. Omitting it on PUT clears it."
|
|
23277
|
+
},
|
|
23264
23278
|
"model_classes": {
|
|
23265
23279
|
"type": "object",
|
|
23266
23280
|
"description": "Named model lineage overrides. Values are camelCase: { description, chain: [{ model, deployments: [{ provider, region }] }], requiredCapabilities, fallback: chain | primary_only }."
|
|
@@ -23338,6 +23352,7 @@
|
|
|
23338
23352
|
"model_substitutions": null,
|
|
23339
23353
|
"default_models": null,
|
|
23340
23354
|
"max_attempts": null,
|
|
23355
|
+
"image_attachment_quality": null,
|
|
23341
23356
|
"model_classes": null,
|
|
23342
23357
|
"operation_classes": {
|
|
23343
23358
|
"extraction": "complex"
|
|
@@ -23473,6 +23488,7 @@
|
|
|
23473
23488
|
"model_substitutions": null,
|
|
23474
23489
|
"default_models": null,
|
|
23475
23490
|
"max_attempts": null,
|
|
23491
|
+
"image_attachment_quality": null,
|
|
23476
23492
|
"model_classes": null,
|
|
23477
23493
|
"operation_classes": null,
|
|
23478
23494
|
"features": null
|
|
@@ -23874,6 +23890,7 @@
|
|
|
23874
23890
|
"model_substitutions": null,
|
|
23875
23891
|
"default_models": null,
|
|
23876
23892
|
"max_attempts": null,
|
|
23893
|
+
"image_attachment_quality": null,
|
|
23877
23894
|
"model_classes": null,
|
|
23878
23895
|
"operation_classes": null,
|
|
23879
23896
|
"features": null
|
|
@@ -23899,6 +23916,7 @@
|
|
|
23899
23916
|
"model_substitutions": null,
|
|
23900
23917
|
"default_models": null,
|
|
23901
23918
|
"max_attempts": null,
|
|
23919
|
+
"image_attachment_quality": null,
|
|
23902
23920
|
"model_classes": null,
|
|
23903
23921
|
"operation_classes": null,
|
|
23904
23922
|
"features": null
|
|
@@ -24773,6 +24791,11 @@
|
|
|
24773
24791
|
"assisted",
|
|
24774
24792
|
"external"
|
|
24775
24793
|
]
|
|
24794
|
+
},
|
|
24795
|
+
"description": {
|
|
24796
|
+
"type": "string",
|
|
24797
|
+
"maxLength": 2000,
|
|
24798
|
+
"description": "One sentence about the app, shown on its card. Optional."
|
|
24776
24799
|
}
|
|
24777
24800
|
}
|
|
24778
24801
|
}
|
|
@@ -27405,11 +27428,308 @@
|
|
|
27405
27428
|
}
|
|
27406
27429
|
}
|
|
27407
27430
|
},
|
|
27431
|
+
"/v1/apps/{id}/subjects/summary": {
|
|
27432
|
+
"get": {
|
|
27433
|
+
"operationId": "getAppStandingSummary",
|
|
27434
|
+
"summary": "Counts over the standing decisions of an app",
|
|
27435
|
+
"description": "Total, per-decision counts, not-eligible counts per first blocking card and per-UTC-day counts, over the same standing set as `/subjects` and under the same `rule`+`status`, `decided_after` and `q` filters. `since` keeps subjects decided at or after it.",
|
|
27436
|
+
"tags": [
|
|
27437
|
+
"Apps"
|
|
27438
|
+
],
|
|
27439
|
+
"parameters": [
|
|
27440
|
+
{
|
|
27441
|
+
"name": "id",
|
|
27442
|
+
"in": "path",
|
|
27443
|
+
"required": true,
|
|
27444
|
+
"schema": {
|
|
27445
|
+
"type": "string",
|
|
27446
|
+
"format": "uuid"
|
|
27447
|
+
}
|
|
27448
|
+
},
|
|
27449
|
+
{
|
|
27450
|
+
"name": "since",
|
|
27451
|
+
"in": "query",
|
|
27452
|
+
"schema": {
|
|
27453
|
+
"type": "string",
|
|
27454
|
+
"format": "date-time"
|
|
27455
|
+
}
|
|
27456
|
+
},
|
|
27457
|
+
{
|
|
27458
|
+
"name": "rule",
|
|
27459
|
+
"in": "query",
|
|
27460
|
+
"schema": {
|
|
27461
|
+
"type": "string"
|
|
27462
|
+
},
|
|
27463
|
+
"description": "Card id; used with status."
|
|
27464
|
+
},
|
|
27465
|
+
{
|
|
27466
|
+
"name": "status",
|
|
27467
|
+
"in": "query",
|
|
27468
|
+
"schema": {
|
|
27469
|
+
"type": "string",
|
|
27470
|
+
"enum": [
|
|
27471
|
+
"passed",
|
|
27472
|
+
"failed",
|
|
27473
|
+
"indeterminate",
|
|
27474
|
+
"not_applicable"
|
|
27475
|
+
]
|
|
27476
|
+
},
|
|
27477
|
+
"description": "Outcome of the rule named by `rule`."
|
|
27478
|
+
},
|
|
27479
|
+
{
|
|
27480
|
+
"name": "decided_after",
|
|
27481
|
+
"in": "query",
|
|
27482
|
+
"schema": {
|
|
27483
|
+
"type": "string",
|
|
27484
|
+
"format": "date-time"
|
|
27485
|
+
}
|
|
27486
|
+
},
|
|
27487
|
+
{
|
|
27488
|
+
"name": "q",
|
|
27489
|
+
"in": "query",
|
|
27490
|
+
"schema": {
|
|
27491
|
+
"type": "string",
|
|
27492
|
+
"maxLength": 120
|
|
27493
|
+
},
|
|
27494
|
+
"description": "Case-insensitive substring over subject key, label and document names."
|
|
27495
|
+
}
|
|
27496
|
+
],
|
|
27497
|
+
"responses": {
|
|
27498
|
+
"200": {
|
|
27499
|
+
"description": "Standing summary.",
|
|
27500
|
+
"content": {
|
|
27501
|
+
"application/json": {
|
|
27502
|
+
"schema": {
|
|
27503
|
+
"type": "object",
|
|
27504
|
+
"properties": {
|
|
27505
|
+
"total": {
|
|
27506
|
+
"type": "integer"
|
|
27507
|
+
},
|
|
27508
|
+
"by_decision": {
|
|
27509
|
+
"type": "object",
|
|
27510
|
+
"properties": {
|
|
27511
|
+
"eligible": {
|
|
27512
|
+
"type": "integer"
|
|
27513
|
+
},
|
|
27514
|
+
"ineligible": {
|
|
27515
|
+
"type": "integer"
|
|
27516
|
+
},
|
|
27517
|
+
"unclear": {
|
|
27518
|
+
"type": "integer"
|
|
27519
|
+
}
|
|
27520
|
+
}
|
|
27521
|
+
},
|
|
27522
|
+
"by_reason": {
|
|
27523
|
+
"type": "array",
|
|
27524
|
+
"items": {
|
|
27525
|
+
"type": "object",
|
|
27526
|
+
"properties": {
|
|
27527
|
+
"card_id": {
|
|
27528
|
+
"type": "string",
|
|
27529
|
+
"nullable": true,
|
|
27530
|
+
"description": "Null when the subject is not eligible but no card blocks it."
|
|
27531
|
+
},
|
|
27532
|
+
"count": {
|
|
27533
|
+
"type": "integer"
|
|
27534
|
+
}
|
|
27535
|
+
}
|
|
27536
|
+
}
|
|
27537
|
+
},
|
|
27538
|
+
"by_day": {
|
|
27539
|
+
"type": "array",
|
|
27540
|
+
"items": {
|
|
27541
|
+
"type": "object",
|
|
27542
|
+
"properties": {
|
|
27543
|
+
"day": {
|
|
27544
|
+
"type": "string",
|
|
27545
|
+
"format": "date"
|
|
27546
|
+
},
|
|
27547
|
+
"eligible": {
|
|
27548
|
+
"type": "integer"
|
|
27549
|
+
},
|
|
27550
|
+
"not_eligible": {
|
|
27551
|
+
"type": "integer"
|
|
27552
|
+
}
|
|
27553
|
+
}
|
|
27554
|
+
}
|
|
27555
|
+
}
|
|
27556
|
+
}
|
|
27557
|
+
}
|
|
27558
|
+
}
|
|
27559
|
+
}
|
|
27560
|
+
},
|
|
27561
|
+
"403": {
|
|
27562
|
+
"description": "Master view ('all') or missing workspace — a concrete tenant is required."
|
|
27563
|
+
},
|
|
27564
|
+
"404": {
|
|
27565
|
+
"$ref": "#/components/responses/NotFound"
|
|
27566
|
+
},
|
|
27567
|
+
"501": {
|
|
27568
|
+
"description": "Batch verdicts are not available in this deployment."
|
|
27569
|
+
}
|
|
27570
|
+
}
|
|
27571
|
+
}
|
|
27572
|
+
},
|
|
27573
|
+
"/v1/apps/{id}/subjects/{key}/history": {
|
|
27574
|
+
"get": {
|
|
27575
|
+
"operationId": "getAppSubjectHistory",
|
|
27576
|
+
"summary": "Every decision revision of one subject, oldest first",
|
|
27577
|
+
"description": "All verdict rows for the subject key across the app's runs, including dry and unsealed ones, each with the deciding run's App version, trigger and `sealed` flag. Only sealed, non-dry rows can stand.",
|
|
27578
|
+
"tags": [
|
|
27579
|
+
"Apps"
|
|
27580
|
+
],
|
|
27581
|
+
"parameters": [
|
|
27582
|
+
{
|
|
27583
|
+
"name": "id",
|
|
27584
|
+
"in": "path",
|
|
27585
|
+
"required": true,
|
|
27586
|
+
"schema": {
|
|
27587
|
+
"type": "string",
|
|
27588
|
+
"format": "uuid"
|
|
27589
|
+
}
|
|
27590
|
+
},
|
|
27591
|
+
{
|
|
27592
|
+
"name": "key",
|
|
27593
|
+
"in": "path",
|
|
27594
|
+
"required": true,
|
|
27595
|
+
"schema": {
|
|
27596
|
+
"type": "string"
|
|
27597
|
+
},
|
|
27598
|
+
"description": "URL-encoded subject key."
|
|
27599
|
+
}
|
|
27600
|
+
],
|
|
27601
|
+
"responses": {
|
|
27602
|
+
"200": {
|
|
27603
|
+
"description": "Revision history.",
|
|
27604
|
+
"content": {
|
|
27605
|
+
"application/json": {
|
|
27606
|
+
"schema": {
|
|
27607
|
+
"type": "object",
|
|
27608
|
+
"properties": {
|
|
27609
|
+
"subject_key": {
|
|
27610
|
+
"type": "string"
|
|
27611
|
+
},
|
|
27612
|
+
"active_version": {
|
|
27613
|
+
"type": "integer",
|
|
27614
|
+
"nullable": true
|
|
27615
|
+
},
|
|
27616
|
+
"versions": {
|
|
27617
|
+
"type": "object",
|
|
27618
|
+
"description": "Content hash and per-rule fingerprints for the active version and every version that decided an entry.",
|
|
27619
|
+
"additionalProperties": {
|
|
27620
|
+
"type": "object",
|
|
27621
|
+
"properties": {
|
|
27622
|
+
"content_hash": {
|
|
27623
|
+
"type": "string"
|
|
27624
|
+
},
|
|
27625
|
+
"fingerprints": {
|
|
27626
|
+
"type": "object",
|
|
27627
|
+
"additionalProperties": {
|
|
27628
|
+
"type": "string"
|
|
27629
|
+
}
|
|
27630
|
+
}
|
|
27631
|
+
}
|
|
27632
|
+
}
|
|
27633
|
+
},
|
|
27634
|
+
"entries": {
|
|
27635
|
+
"type": "array",
|
|
27636
|
+
"items": {
|
|
27637
|
+
"type": "object",
|
|
27638
|
+
"properties": {
|
|
27639
|
+
"first_blocking_card": {
|
|
27640
|
+
"type": "string",
|
|
27641
|
+
"nullable": true,
|
|
27642
|
+
"description": "Earliest failed or indeterminate card in the authored order of the version that decided this entry; with no deciding version row, ordered by status, then key."
|
|
27643
|
+
},
|
|
27644
|
+
"standing": {
|
|
27645
|
+
"type": "boolean",
|
|
27646
|
+
"description": "True for exactly the entry that is the subject's standing decision (highest revision of a completed, non-dry, sealed run), false for every other entry and for all entries when no run qualifies."
|
|
27647
|
+
},
|
|
27648
|
+
"run_id": {
|
|
27649
|
+
"type": "string",
|
|
27650
|
+
"format": "uuid"
|
|
27651
|
+
},
|
|
27652
|
+
"app_version": {
|
|
27653
|
+
"type": "integer",
|
|
27654
|
+
"nullable": true
|
|
27655
|
+
},
|
|
27656
|
+
"app_version_hash": {
|
|
27657
|
+
"type": "string",
|
|
27658
|
+
"nullable": true
|
|
27659
|
+
},
|
|
27660
|
+
"decision_revision": {
|
|
27661
|
+
"type": "integer",
|
|
27662
|
+
"nullable": true
|
|
27663
|
+
},
|
|
27664
|
+
"decided_at": {
|
|
27665
|
+
"type": "string",
|
|
27666
|
+
"format": "date-time"
|
|
27667
|
+
},
|
|
27668
|
+
"trigger": {
|
|
27669
|
+
"type": "object",
|
|
27670
|
+
"nullable": true
|
|
27671
|
+
},
|
|
27672
|
+
"dry_run": {
|
|
27673
|
+
"type": "boolean"
|
|
27674
|
+
},
|
|
27675
|
+
"sealed": {
|
|
27676
|
+
"type": "boolean"
|
|
27677
|
+
},
|
|
27678
|
+
"rolled_outcome": {
|
|
27679
|
+
"type": "string"
|
|
27680
|
+
},
|
|
27681
|
+
"auto": {
|
|
27682
|
+
"type": "boolean"
|
|
27683
|
+
},
|
|
27684
|
+
"substantive_passes": {
|
|
27685
|
+
"type": "integer"
|
|
27686
|
+
},
|
|
27687
|
+
"subject_label": {
|
|
27688
|
+
"type": "string",
|
|
27689
|
+
"nullable": true
|
|
27690
|
+
},
|
|
27691
|
+
"rule_outcomes": {
|
|
27692
|
+
"type": "object",
|
|
27693
|
+
"nullable": true
|
|
27694
|
+
},
|
|
27695
|
+
"document_outcomes": {
|
|
27696
|
+
"type": "array",
|
|
27697
|
+
"nullable": true,
|
|
27698
|
+
"items": {
|
|
27699
|
+
"type": "object",
|
|
27700
|
+
"properties": {
|
|
27701
|
+
"filename": {
|
|
27702
|
+
"type": "string",
|
|
27703
|
+
"nullable": true
|
|
27704
|
+
}
|
|
27705
|
+
}
|
|
27706
|
+
}
|
|
27707
|
+
}
|
|
27708
|
+
}
|
|
27709
|
+
}
|
|
27710
|
+
}
|
|
27711
|
+
}
|
|
27712
|
+
}
|
|
27713
|
+
}
|
|
27714
|
+
}
|
|
27715
|
+
},
|
|
27716
|
+
"403": {
|
|
27717
|
+
"description": "Master view ('all') or missing workspace — a concrete tenant is required."
|
|
27718
|
+
},
|
|
27719
|
+
"404": {
|
|
27720
|
+
"$ref": "#/components/responses/NotFound"
|
|
27721
|
+
},
|
|
27722
|
+
"501": {
|
|
27723
|
+
"description": "Batch verdicts are not available in this deployment."
|
|
27724
|
+
}
|
|
27725
|
+
}
|
|
27726
|
+
}
|
|
27727
|
+
},
|
|
27408
27728
|
"/v1/apps/{id}/subjects": {
|
|
27409
27729
|
"get": {
|
|
27410
27730
|
"operationId": "listAppStandingSubjects",
|
|
27411
27731
|
"summary": "Standing decision per record group (highest revision across sealed runs)",
|
|
27412
|
-
"description": "One row per subject key: the highest-`decision_revision` verdict among SEALED, non-dry runs — the decision a dedupe-by-max-revision receiver converges on. Each row names the deciding run, its App version and that version's content hash; the `versions` map carries a semantic fingerprint per rule so clients can render historical outcomes only under semantically identical current rules. Cursor-paginated by subject key.",
|
|
27732
|
+
"description": "One row per subject key: the highest-`decision_revision` verdict among SEALED, non-dry runs — the decision a dedupe-by-max-revision receiver converges on. Each row names the deciding run, its App version and that version's content hash; the `versions` map carries a semantic fingerprint per rule so clients can render historical outcomes only under semantically identical current rules. Cursor-paginated by subject key by default, or newest-first with `sort=decided_at_desc`. Filters apply to the standing set and `total` counts every matching subject.",
|
|
27413
27733
|
"tags": [
|
|
27414
27734
|
"Apps"
|
|
27415
27735
|
],
|
|
@@ -27439,7 +27759,7 @@
|
|
|
27439
27759
|
"schema": {
|
|
27440
27760
|
"type": "string"
|
|
27441
27761
|
},
|
|
27442
|
-
"description": "Opaque cursor: the last subject_key of the previous page
|
|
27762
|
+
"description": "Opaque cursor: the last subject_key of the previous page, or for sort=decided_at_desc the value of `next`."
|
|
27443
27763
|
},
|
|
27444
27764
|
{
|
|
27445
27765
|
"name": "include",
|
|
@@ -27447,10 +27767,84 @@
|
|
|
27447
27767
|
"schema": {
|
|
27448
27768
|
"type": "string",
|
|
27449
27769
|
"enum": [
|
|
27450
|
-
"summary"
|
|
27770
|
+
"summary",
|
|
27771
|
+
"full"
|
|
27451
27772
|
]
|
|
27452
27773
|
},
|
|
27453
27774
|
"description": "'summary' omits rule_outcomes and document_outcomes from each row."
|
|
27775
|
+
},
|
|
27776
|
+
{
|
|
27777
|
+
"name": "decision",
|
|
27778
|
+
"in": "query",
|
|
27779
|
+
"schema": {
|
|
27780
|
+
"type": "string",
|
|
27781
|
+
"enum": [
|
|
27782
|
+
"eligible",
|
|
27783
|
+
"ineligible",
|
|
27784
|
+
"unclear",
|
|
27785
|
+
"not_eligible"
|
|
27786
|
+
]
|
|
27787
|
+
},
|
|
27788
|
+
"description": "not_eligible = ineligible or unclear."
|
|
27789
|
+
},
|
|
27790
|
+
{
|
|
27791
|
+
"name": "rule",
|
|
27792
|
+
"in": "query",
|
|
27793
|
+
"schema": {
|
|
27794
|
+
"type": "string"
|
|
27795
|
+
},
|
|
27796
|
+
"description": "Card id; used with status."
|
|
27797
|
+
},
|
|
27798
|
+
{
|
|
27799
|
+
"name": "status",
|
|
27800
|
+
"in": "query",
|
|
27801
|
+
"schema": {
|
|
27802
|
+
"type": "string",
|
|
27803
|
+
"enum": [
|
|
27804
|
+
"passed",
|
|
27805
|
+
"failed",
|
|
27806
|
+
"indeterminate",
|
|
27807
|
+
"not_applicable"
|
|
27808
|
+
]
|
|
27809
|
+
},
|
|
27810
|
+
"description": "Outcome of the rule named by `rule`."
|
|
27811
|
+
},
|
|
27812
|
+
{
|
|
27813
|
+
"name": "reason",
|
|
27814
|
+
"in": "query",
|
|
27815
|
+
"schema": {
|
|
27816
|
+
"type": "string"
|
|
27817
|
+
},
|
|
27818
|
+
"description": "Card id; keeps subjects whose first blocking card (in the deciding version's authored order) is this one."
|
|
27819
|
+
},
|
|
27820
|
+
{
|
|
27821
|
+
"name": "decided_after",
|
|
27822
|
+
"in": "query",
|
|
27823
|
+
"schema": {
|
|
27824
|
+
"type": "string",
|
|
27825
|
+
"format": "date-time"
|
|
27826
|
+
}
|
|
27827
|
+
},
|
|
27828
|
+
{
|
|
27829
|
+
"name": "q",
|
|
27830
|
+
"in": "query",
|
|
27831
|
+
"schema": {
|
|
27832
|
+
"type": "string",
|
|
27833
|
+
"maxLength": 120
|
|
27834
|
+
},
|
|
27835
|
+
"description": "Case-insensitive substring over subject key, label and document names."
|
|
27836
|
+
},
|
|
27837
|
+
{
|
|
27838
|
+
"name": "sort",
|
|
27839
|
+
"in": "query",
|
|
27840
|
+
"schema": {
|
|
27841
|
+
"type": "string",
|
|
27842
|
+
"enum": [
|
|
27843
|
+
"decided_at_desc",
|
|
27844
|
+
"subject_key"
|
|
27845
|
+
],
|
|
27846
|
+
"default": "subject_key"
|
|
27847
|
+
}
|
|
27454
27848
|
}
|
|
27455
27849
|
],
|
|
27456
27850
|
"responses": {
|
|
@@ -27469,6 +27863,14 @@
|
|
|
27469
27863
|
"subject_key": {
|
|
27470
27864
|
"type": "string"
|
|
27471
27865
|
},
|
|
27866
|
+
"subject_label": {
|
|
27867
|
+
"type": "string",
|
|
27868
|
+
"nullable": true
|
|
27869
|
+
},
|
|
27870
|
+
"first_blocking_card": {
|
|
27871
|
+
"type": "string",
|
|
27872
|
+
"nullable": true
|
|
27873
|
+
},
|
|
27472
27874
|
"rolled_outcome": {
|
|
27473
27875
|
"type": "string",
|
|
27474
27876
|
"enum": [
|
|
@@ -27492,7 +27894,13 @@
|
|
|
27492
27894
|
"type": "array",
|
|
27493
27895
|
"nullable": true,
|
|
27494
27896
|
"items": {
|
|
27495
|
-
"type": "object"
|
|
27897
|
+
"type": "object",
|
|
27898
|
+
"properties": {
|
|
27899
|
+
"filename": {
|
|
27900
|
+
"type": "string",
|
|
27901
|
+
"nullable": true
|
|
27902
|
+
}
|
|
27903
|
+
}
|
|
27496
27904
|
}
|
|
27497
27905
|
},
|
|
27498
27906
|
"decision_state": {
|
|
@@ -27529,6 +27937,10 @@
|
|
|
27529
27937
|
"type": "string",
|
|
27530
27938
|
"nullable": true
|
|
27531
27939
|
},
|
|
27940
|
+
"total": {
|
|
27941
|
+
"type": "integer",
|
|
27942
|
+
"description": "Subjects matching the filters, across all pages; read it from the first page (an empty page past the end reports 0)."
|
|
27943
|
+
},
|
|
27532
27944
|
"active_version": {
|
|
27533
27945
|
"type": "integer",
|
|
27534
27946
|
"nullable": true
|
|
@@ -28442,13 +28854,18 @@
|
|
|
28442
28854
|
"subject_label": {
|
|
28443
28855
|
"type": "string",
|
|
28444
28856
|
"nullable": true,
|
|
28445
|
-
"description": "
|
|
28857
|
+
"description": "Subject label stored when the verdict was decided; for older rows without one, the readable label from the subject binding's data product (cleaned alias); null when neither resolves."
|
|
28446
28858
|
},
|
|
28447
28859
|
"subject_record_id": {
|
|
28448
28860
|
"type": "string",
|
|
28449
28861
|
"nullable": true,
|
|
28450
28862
|
"description": "Anchor record id in the subject binding's data product — deep-links the product review; null when unresolvable."
|
|
28451
28863
|
},
|
|
28864
|
+
"decided_at": {
|
|
28865
|
+
"type": "string",
|
|
28866
|
+
"format": "date-time",
|
|
28867
|
+
"description": "When this verdict was decided."
|
|
28868
|
+
},
|
|
28452
28869
|
"rolled_outcome": {
|
|
28453
28870
|
"type": "string",
|
|
28454
28871
|
"enum": [
|
|
@@ -28588,6 +29005,92 @@
|
|
|
28588
29005
|
}
|
|
28589
29006
|
}
|
|
28590
29007
|
},
|
|
29008
|
+
"/v1/runs/{runId}/records": {
|
|
29009
|
+
"get": {
|
|
29010
|
+
"operationId": "getRunSubjectRecords",
|
|
29011
|
+
"summary": "One subject's frozen package records in a run",
|
|
29012
|
+
"description": "The records of the run's frozen input package that belong to one subject (group), exactly as frozen, with the source documents those records cite.",
|
|
29013
|
+
"tags": [
|
|
29014
|
+
"Apps"
|
|
29015
|
+
],
|
|
29016
|
+
"parameters": [
|
|
29017
|
+
{
|
|
29018
|
+
"name": "runId",
|
|
29019
|
+
"in": "path",
|
|
29020
|
+
"required": true,
|
|
29021
|
+
"schema": {
|
|
29022
|
+
"type": "string",
|
|
29023
|
+
"format": "uuid"
|
|
29024
|
+
}
|
|
29025
|
+
},
|
|
29026
|
+
{
|
|
29027
|
+
"name": "subject",
|
|
29028
|
+
"in": "query",
|
|
29029
|
+
"required": true,
|
|
29030
|
+
"schema": {
|
|
29031
|
+
"type": "string"
|
|
29032
|
+
}
|
|
29033
|
+
}
|
|
29034
|
+
],
|
|
29035
|
+
"responses": {
|
|
29036
|
+
"200": {
|
|
29037
|
+
"description": "Subject records.",
|
|
29038
|
+
"content": {
|
|
29039
|
+
"application/json": {
|
|
29040
|
+
"schema": {
|
|
29041
|
+
"type": "object",
|
|
29042
|
+
"properties": {
|
|
29043
|
+
"run_id": {
|
|
29044
|
+
"type": "string",
|
|
29045
|
+
"format": "uuid"
|
|
29046
|
+
},
|
|
29047
|
+
"subject_key": {
|
|
29048
|
+
"type": "string"
|
|
29049
|
+
},
|
|
29050
|
+
"records": {
|
|
29051
|
+
"type": "array",
|
|
29052
|
+
"items": {
|
|
29053
|
+
"type": "object"
|
|
29054
|
+
}
|
|
29055
|
+
},
|
|
29056
|
+
"documents": {
|
|
29057
|
+
"type": "array",
|
|
29058
|
+
"items": {
|
|
29059
|
+
"type": "object",
|
|
29060
|
+
"properties": {
|
|
29061
|
+
"document_id": {
|
|
29062
|
+
"type": "string",
|
|
29063
|
+
"format": "uuid"
|
|
29064
|
+
},
|
|
29065
|
+
"filename": {
|
|
29066
|
+
"type": "string"
|
|
29067
|
+
},
|
|
29068
|
+
"mime_type": {
|
|
29069
|
+
"type": "string"
|
|
29070
|
+
},
|
|
29071
|
+
"file_url": {
|
|
29072
|
+
"type": "string"
|
|
29073
|
+
}
|
|
29074
|
+
}
|
|
29075
|
+
}
|
|
29076
|
+
}
|
|
29077
|
+
}
|
|
29078
|
+
}
|
|
29079
|
+
}
|
|
29080
|
+
}
|
|
29081
|
+
},
|
|
29082
|
+
"400": {
|
|
29083
|
+
"description": "subject is missing or longer than 512 characters."
|
|
29084
|
+
},
|
|
29085
|
+
"404": {
|
|
29086
|
+
"$ref": "#/components/responses/NotFound"
|
|
29087
|
+
},
|
|
29088
|
+
"501": {
|
|
29089
|
+
"description": "Batch verdicts are not available in this deployment."
|
|
29090
|
+
}
|
|
29091
|
+
}
|
|
29092
|
+
}
|
|
29093
|
+
},
|
|
28591
29094
|
"/v1/runs/{runId}/reconstruction": {
|
|
28592
29095
|
"get": {
|
|
28593
29096
|
"operationId": "reconstructRunDocumentMatrix",
|