@talonic/docs 0.21.31 → 0.21.32
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 +72 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/seo.js +858 -21
- package/openapi.json +856 -20
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -6510,6 +6510,42 @@
|
|
|
6510
6510
|
"example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
6511
6511
|
},
|
|
6512
6512
|
"description": "Filter by cluster."
|
|
6513
|
+
},
|
|
6514
|
+
{
|
|
6515
|
+
"name": "maturity",
|
|
6516
|
+
"in": "query",
|
|
6517
|
+
"schema": {
|
|
6518
|
+
"type": "string",
|
|
6519
|
+
"enum": [
|
|
6520
|
+
"core",
|
|
6521
|
+
"proven",
|
|
6522
|
+
"candidate"
|
|
6523
|
+
]
|
|
6524
|
+
},
|
|
6525
|
+
"description": "Filter by the named maturity level (`core` = tier 1, `proven` = tier 2, `candidate` = tier 3). Takes precedence over `tier`. Unknown values 400 (`invalid_maturity`)."
|
|
6526
|
+
},
|
|
6527
|
+
{
|
|
6528
|
+
"name": "include_superseded",
|
|
6529
|
+
"in": "query",
|
|
6530
|
+
"schema": {
|
|
6531
|
+
"type": "boolean",
|
|
6532
|
+
"default": false
|
|
6533
|
+
},
|
|
6534
|
+
"description": "Superseded rows (merged into a survivor; `superseded_by` set) are hidden by default so a cached vocabulary never carries two ids for one concept. `true` includes them."
|
|
6535
|
+
},
|
|
6536
|
+
{
|
|
6537
|
+
"name": "admission_state",
|
|
6538
|
+
"in": "query",
|
|
6539
|
+
"schema": {
|
|
6540
|
+
"type": "string",
|
|
6541
|
+
"enum": [
|
|
6542
|
+
"canonical",
|
|
6543
|
+
"provisional",
|
|
6544
|
+
"all"
|
|
6545
|
+
],
|
|
6546
|
+
"default": "canonical"
|
|
6547
|
+
},
|
|
6548
|
+
"description": "Canonical read plane. Defaults to proven concepts only; `provisional` shows the recurrence-gated pool, `all` disables the filter."
|
|
6513
6549
|
}
|
|
6514
6550
|
],
|
|
6515
6551
|
"responses": {
|
|
@@ -6583,17 +6619,80 @@
|
|
|
6583
6619
|
}
|
|
6584
6620
|
}
|
|
6585
6621
|
},
|
|
6622
|
+
"/v1/fields/resolve": {
|
|
6623
|
+
"get": {
|
|
6624
|
+
"operationId": "resolveField",
|
|
6625
|
+
"summary": "Resolve a field name to the live concept",
|
|
6626
|
+
"description": "Stable-identity entry point for a consumer that holds a field NAME rather\nthan an id. Lookup order, first hit wins — indexed arms first, then two\ncase-insensitive sequential-scan fallbacks: exact `canonical_name` → the\nregistry `match_key` fold (separator / case / accent / plural\ninsensitive, the same `field_match_key()` the resolver binds with) → a\nmerge alias (`field_registry_aliases`) → exact `synonyms[]` containment\n(names folded in by merges and cleanup) → case-insensitive canonical\nname → case-insensitive synonym. The hit's redirect chain\nis then followed to the survivor unless `follow_redirects=false`, and\nevery hop is reported in `redirected_from` so a cache can rewrite its keys.\n",
|
|
6627
|
+
"tags": [
|
|
6628
|
+
"Schemas"
|
|
6629
|
+
],
|
|
6630
|
+
"parameters": [
|
|
6631
|
+
{
|
|
6632
|
+
"name": "name",
|
|
6633
|
+
"in": "query",
|
|
6634
|
+
"required": true,
|
|
6635
|
+
"schema": {
|
|
6636
|
+
"type": "string"
|
|
6637
|
+
},
|
|
6638
|
+
"description": "The field name to resolve, e.g. `Invoice No`."
|
|
6639
|
+
},
|
|
6640
|
+
{
|
|
6641
|
+
"name": "follow_redirects",
|
|
6642
|
+
"in": "query",
|
|
6643
|
+
"schema": {
|
|
6644
|
+
"type": "boolean",
|
|
6645
|
+
"default": true
|
|
6646
|
+
},
|
|
6647
|
+
"description": "Walk `superseded_by` to the live survivor (default true)."
|
|
6648
|
+
}
|
|
6649
|
+
],
|
|
6650
|
+
"responses": {
|
|
6651
|
+
"200": {
|
|
6652
|
+
"description": "The resolved concept.",
|
|
6653
|
+
"content": {
|
|
6654
|
+
"application/json": {
|
|
6655
|
+
"schema": {
|
|
6656
|
+
"$ref": "#/components/schemas/FieldResolveResponse"
|
|
6657
|
+
}
|
|
6658
|
+
}
|
|
6659
|
+
}
|
|
6660
|
+
},
|
|
6661
|
+
"400": {
|
|
6662
|
+
"description": "`missing_name` — the `name` query parameter is required exactly once."
|
|
6663
|
+
},
|
|
6664
|
+
"401": {
|
|
6665
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
6666
|
+
},
|
|
6667
|
+
"404": {
|
|
6668
|
+
"description": "`unknown_field` — no arm matched the name in this registry."
|
|
6669
|
+
},
|
|
6670
|
+
"429": {
|
|
6671
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
6672
|
+
}
|
|
6673
|
+
}
|
|
6674
|
+
}
|
|
6675
|
+
},
|
|
6586
6676
|
"/v1/fields/{id}": {
|
|
6587
6677
|
"get": {
|
|
6588
6678
|
"operationId": "getField",
|
|
6589
6679
|
"summary": "Get a field",
|
|
6590
|
-
"description": "Returns the field registry row plus up to 20 most recent occurrences.",
|
|
6680
|
+
"description": "Returns the field registry row plus up to 20 most recent occurrences.\n\nA superseded row (merged into a survivor) is returned as-is with\n`superseded_by` set, so a stored id never 404s after curation. Pass\n`follow_redirects=true` to receive the survivor instead; the hops walked\nare listed in `redirected_from`.\n",
|
|
6591
6681
|
"tags": [
|
|
6592
6682
|
"Schemas"
|
|
6593
6683
|
],
|
|
6594
6684
|
"parameters": [
|
|
6595
6685
|
{
|
|
6596
6686
|
"$ref": "#/components/parameters/ResourceId"
|
|
6687
|
+
},
|
|
6688
|
+
{
|
|
6689
|
+
"name": "follow_redirects",
|
|
6690
|
+
"in": "query",
|
|
6691
|
+
"schema": {
|
|
6692
|
+
"type": "boolean",
|
|
6693
|
+
"default": false
|
|
6694
|
+
},
|
|
6695
|
+
"description": "Walk `superseded_by` to the live survivor and return that row."
|
|
6597
6696
|
}
|
|
6598
6697
|
],
|
|
6599
6698
|
"responses": {
|
|
@@ -6699,6 +6798,176 @@
|
|
|
6699
6798
|
}
|
|
6700
6799
|
}
|
|
6701
6800
|
},
|
|
6801
|
+
"/v1/fields/{id}/card": {
|
|
6802
|
+
"get": {
|
|
6803
|
+
"operationId": "getFieldCard",
|
|
6804
|
+
"summary": "Get the concept card for a field",
|
|
6805
|
+
"description": "One read that tells a consumer what a field MEANS and how it BEHAVES, so\nan agent can choose the right concept without trial and error:\ndefinition (curated description + extraction instruction), synonyms and\nmerge aliases, maturity, where it occurs (document / occurrence counts,\nfirst/last seen, document-type spread), the value distribution (top\nvalues with counts and shares, distinct count), schema usage, and its\nidentity links (`superseded_by`, absorbed concepts).\n\nValue statistics are Sources-IAM filtered as the key's minting user and\ninclude occurrences still bound to concepts merged INTO this one, so the\ncard is complete while a merge's lazy repoint is in flight.\n",
|
|
6806
|
+
"tags": [
|
|
6807
|
+
"Schemas"
|
|
6808
|
+
],
|
|
6809
|
+
"parameters": [
|
|
6810
|
+
{
|
|
6811
|
+
"$ref": "#/components/parameters/ResourceId"
|
|
6812
|
+
},
|
|
6813
|
+
{
|
|
6814
|
+
"name": "follow_redirects",
|
|
6815
|
+
"in": "query",
|
|
6816
|
+
"schema": {
|
|
6817
|
+
"type": "boolean",
|
|
6818
|
+
"default": false
|
|
6819
|
+
},
|
|
6820
|
+
"description": "Walk `superseded_by` to the live survivor and describe that concept."
|
|
6821
|
+
}
|
|
6822
|
+
],
|
|
6823
|
+
"responses": {
|
|
6824
|
+
"200": {
|
|
6825
|
+
"description": "Concept card.",
|
|
6826
|
+
"content": {
|
|
6827
|
+
"application/json": {
|
|
6828
|
+
"schema": {
|
|
6829
|
+
"$ref": "#/components/schemas/FieldCardResponse"
|
|
6830
|
+
}
|
|
6831
|
+
}
|
|
6832
|
+
}
|
|
6833
|
+
},
|
|
6834
|
+
"401": {
|
|
6835
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
6836
|
+
},
|
|
6837
|
+
"404": {
|
|
6838
|
+
"$ref": "#/components/responses/NotFound"
|
|
6839
|
+
},
|
|
6840
|
+
"429": {
|
|
6841
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
6842
|
+
}
|
|
6843
|
+
}
|
|
6844
|
+
}
|
|
6845
|
+
},
|
|
6846
|
+
"/v1/fields/{id}/values": {
|
|
6847
|
+
"get": {
|
|
6848
|
+
"operationId": "listFieldValues",
|
|
6849
|
+
"summary": "List a field's current values across documents",
|
|
6850
|
+
"description": "The cross-document read: one row per occurrence bound to the concept\n(a per-cell column is several rows sharing `document_id`), newest first,\ncursor-paginated, each with its provenance (raw name, verbatim source\ntext, resolution band, confirmation state). `document_id` narrows to one\ndocument; `value` is a case-insensitive contains match on the value text.\n\nSources-IAM filtered as the key's minting user — `pagination.total`\ncounts the visible set. Includes occurrences still bound to concepts\nmerged INTO this one unless `include_redirected=false`; such rows carry\n`provenance.via_redirect: true`.\n",
|
|
6851
|
+
"tags": [
|
|
6852
|
+
"Schemas"
|
|
6853
|
+
],
|
|
6854
|
+
"parameters": [
|
|
6855
|
+
{
|
|
6856
|
+
"$ref": "#/components/parameters/ResourceId"
|
|
6857
|
+
},
|
|
6858
|
+
{
|
|
6859
|
+
"$ref": "#/components/parameters/Limit"
|
|
6860
|
+
},
|
|
6861
|
+
{
|
|
6862
|
+
"$ref": "#/components/parameters/Cursor"
|
|
6863
|
+
},
|
|
6864
|
+
{
|
|
6865
|
+
"$ref": "#/components/parameters/Order"
|
|
6866
|
+
},
|
|
6867
|
+
{
|
|
6868
|
+
"name": "document_id",
|
|
6869
|
+
"in": "query",
|
|
6870
|
+
"schema": {
|
|
6871
|
+
"type": "string",
|
|
6872
|
+
"format": "uuid"
|
|
6873
|
+
},
|
|
6874
|
+
"description": "Only occurrences on this document."
|
|
6875
|
+
},
|
|
6876
|
+
{
|
|
6877
|
+
"name": "value",
|
|
6878
|
+
"in": "query",
|
|
6879
|
+
"schema": {
|
|
6880
|
+
"type": "string"
|
|
6881
|
+
},
|
|
6882
|
+
"description": "Case-insensitive contains filter on the value text."
|
|
6883
|
+
},
|
|
6884
|
+
{
|
|
6885
|
+
"name": "include_redirected",
|
|
6886
|
+
"in": "query",
|
|
6887
|
+
"schema": {
|
|
6888
|
+
"type": "boolean",
|
|
6889
|
+
"default": true
|
|
6890
|
+
},
|
|
6891
|
+
"description": "Include occurrences bound to concepts merged into this one."
|
|
6892
|
+
},
|
|
6893
|
+
{
|
|
6894
|
+
"name": "follow_redirects",
|
|
6895
|
+
"in": "query",
|
|
6896
|
+
"schema": {
|
|
6897
|
+
"type": "boolean",
|
|
6898
|
+
"default": false
|
|
6899
|
+
},
|
|
6900
|
+
"description": "Walk `superseded_by` first and list the survivor's values."
|
|
6901
|
+
}
|
|
6902
|
+
],
|
|
6903
|
+
"responses": {
|
|
6904
|
+
"200": {
|
|
6905
|
+
"description": "Paginated values with provenance.",
|
|
6906
|
+
"content": {
|
|
6907
|
+
"application/json": {
|
|
6908
|
+
"schema": {
|
|
6909
|
+
"$ref": "#/components/schemas/FieldValuesResponse"
|
|
6910
|
+
}
|
|
6911
|
+
}
|
|
6912
|
+
}
|
|
6913
|
+
},
|
|
6914
|
+
"401": {
|
|
6915
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
6916
|
+
},
|
|
6917
|
+
"404": {
|
|
6918
|
+
"$ref": "#/components/responses/NotFound"
|
|
6919
|
+
},
|
|
6920
|
+
"429": {
|
|
6921
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
6922
|
+
}
|
|
6923
|
+
}
|
|
6924
|
+
}
|
|
6925
|
+
},
|
|
6926
|
+
"/v1/fields/{id}/history": {
|
|
6927
|
+
"get": {
|
|
6928
|
+
"operationId": "getFieldHistory",
|
|
6929
|
+
"summary": "Get a field's curation history",
|
|
6930
|
+
"description": "The concept's curation trail, newest first — what a consumer replays to\nkeep a cached vocabulary correct: maturity moves (`tier_changed`), merges\nin either direction (`merge_log_absorbed`, `merge_log_merged_into`,\n`absorbed`), cleanup actions applied to it (`renamed`, `rewritten`,\n`split`, `deleted`), the current redirect (`superseded`) and the names\nthat now fold onto it (`alias_added`). The same changes are announced live\non `GET /v1/events` as `field.*` signals. Never follows redirects — the\ntrail belongs to the id asked for.\n",
|
|
6931
|
+
"tags": [
|
|
6932
|
+
"Schemas"
|
|
6933
|
+
],
|
|
6934
|
+
"parameters": [
|
|
6935
|
+
{
|
|
6936
|
+
"$ref": "#/components/parameters/ResourceId"
|
|
6937
|
+
},
|
|
6938
|
+
{
|
|
6939
|
+
"name": "limit",
|
|
6940
|
+
"in": "query",
|
|
6941
|
+
"schema": {
|
|
6942
|
+
"type": "integer",
|
|
6943
|
+
"default": 100,
|
|
6944
|
+
"maximum": 500
|
|
6945
|
+
}
|
|
6946
|
+
}
|
|
6947
|
+
],
|
|
6948
|
+
"responses": {
|
|
6949
|
+
"200": {
|
|
6950
|
+
"description": "Curation events, newest first.",
|
|
6951
|
+
"content": {
|
|
6952
|
+
"application/json": {
|
|
6953
|
+
"schema": {
|
|
6954
|
+
"$ref": "#/components/schemas/FieldHistoryResponse"
|
|
6955
|
+
}
|
|
6956
|
+
}
|
|
6957
|
+
}
|
|
6958
|
+
},
|
|
6959
|
+
"401": {
|
|
6960
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
6961
|
+
},
|
|
6962
|
+
"404": {
|
|
6963
|
+
"$ref": "#/components/responses/NotFound"
|
|
6964
|
+
},
|
|
6965
|
+
"429": {
|
|
6966
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
6967
|
+
}
|
|
6968
|
+
}
|
|
6969
|
+
}
|
|
6970
|
+
},
|
|
6702
6971
|
"/v1/reference-data": {
|
|
6703
6972
|
"get": {
|
|
6704
6973
|
"operationId": "listReferenceData",
|
|
@@ -21458,7 +21727,7 @@
|
|
|
21458
21727
|
"Events"
|
|
21459
21728
|
],
|
|
21460
21729
|
"summary": "List tenant events",
|
|
21461
|
-
"description": "Newest-first feed of platform events (document.extracted, run.*.completed/failed, result.flagged/approved/rejected, delivery.item.*, case.resolved). Alias of /v1/delivery/events at the API root.\n",
|
|
21730
|
+
"description": "Newest-first feed of platform events (document.extracted, run.*.completed/failed, result.flagged/approved/rejected, delivery.item.*, case.resolved, and the Field Registry lifecycle family field.graduated / field.promoted / field.demoted / field.merged / field.renamed — every payload names the concept by stable `field_id`, so a consumer caching /v1/fields can invalidate instead of polling). Alias of /v1/delivery/events at the API root.\n",
|
|
21462
21731
|
"operationId": "listEvents",
|
|
21463
21732
|
"security": [
|
|
21464
21733
|
{
|
|
@@ -33736,6 +34005,36 @@
|
|
|
33736
34005
|
}
|
|
33737
34006
|
}
|
|
33738
34007
|
},
|
|
34008
|
+
"FieldMaturity": {
|
|
34009
|
+
"type": "string",
|
|
34010
|
+
"enum": [
|
|
34011
|
+
"core",
|
|
34012
|
+
"proven",
|
|
34013
|
+
"candidate"
|
|
34014
|
+
],
|
|
34015
|
+
"description": "Named maturity level — the contract a consumer caching the vocabulary\ncan rely on (`tier` is the frozen numeric twin: core = 1, proven = 2,\ncandidate = 3).\n- `core`: universal, fully trusted; safe to bind schemas, dashboards and\n downstream models to. Demotion is hysteresis-guarded and always emits\n `field.demoted`.\n- `proven`: recurring and useful; stable id, name may still be groomed\n (`field.renamed` / `field.merged` announce it).\n- `candidate`: newly discovered; may be merged, renamed or expire with no\n notice beyond the event feed. Do not hard-code.\n"
|
|
34016
|
+
},
|
|
34017
|
+
"FieldRef": {
|
|
34018
|
+
"type": "object",
|
|
34019
|
+
"required": [
|
|
34020
|
+
"id",
|
|
34021
|
+
"links"
|
|
34022
|
+
],
|
|
34023
|
+
"properties": {
|
|
34024
|
+
"id": {
|
|
34025
|
+
"type": "string",
|
|
34026
|
+
"format": "uuid"
|
|
34027
|
+
},
|
|
34028
|
+
"links": {
|
|
34029
|
+
"type": "object",
|
|
34030
|
+
"properties": {
|
|
34031
|
+
"self": {
|
|
34032
|
+
"type": "string"
|
|
34033
|
+
}
|
|
34034
|
+
}
|
|
34035
|
+
}
|
|
34036
|
+
}
|
|
34037
|
+
},
|
|
33739
34038
|
"FieldResponse": {
|
|
33740
34039
|
"type": "object",
|
|
33741
34040
|
"required": [
|
|
@@ -33744,6 +34043,7 @@
|
|
|
33744
34043
|
"display_name",
|
|
33745
34044
|
"data_type",
|
|
33746
34045
|
"tier",
|
|
34046
|
+
"maturity",
|
|
33747
34047
|
"occurrence_count",
|
|
33748
34048
|
"created_at",
|
|
33749
34049
|
"links"
|
|
@@ -33758,28 +34058,63 @@
|
|
|
33758
34058
|
"type": "string",
|
|
33759
34059
|
"example": "invoice_number"
|
|
33760
34060
|
},
|
|
33761
|
-
"
|
|
33762
|
-
"
|
|
33763
|
-
"description": "Human-readable label, always present. A stored display name wins; otherwise it is derived from `canonical_name`, e.g. `invoice_number` → `Invoice Number`.",
|
|
33764
|
-
"example": "Invoice Number"
|
|
34061
|
+
"maturity": {
|
|
34062
|
+
"$ref": "#/components/schemas/FieldMaturity"
|
|
33765
34063
|
},
|
|
33766
|
-
"
|
|
34064
|
+
"admission_state": {
|
|
33767
34065
|
"type": "string",
|
|
33768
|
-
"
|
|
33769
|
-
|
|
33770
|
-
|
|
33771
|
-
"type": "integer"
|
|
33772
|
-
},
|
|
33773
|
-
"cluster_name": {
|
|
33774
|
-
"type": [
|
|
33775
|
-
"string",
|
|
33776
|
-
"null"
|
|
34066
|
+
"enum": [
|
|
34067
|
+
"canonical",
|
|
34068
|
+
"provisional"
|
|
33777
34069
|
]
|
|
33778
34070
|
},
|
|
33779
|
-
"
|
|
33780
|
-
"type":
|
|
33781
|
-
|
|
33782
|
-
|
|
34071
|
+
"description": {
|
|
34072
|
+
"type": [
|
|
34073
|
+
"string",
|
|
34074
|
+
"null"
|
|
34075
|
+
],
|
|
34076
|
+
"description": "Curated semantic description of the concept."
|
|
34077
|
+
},
|
|
34078
|
+
"synonyms": {
|
|
34079
|
+
"type": "array",
|
|
34080
|
+
"items": {
|
|
34081
|
+
"type": "string"
|
|
34082
|
+
},
|
|
34083
|
+
"description": "Names folded onto this concept by merges and cleanup; all resolve via `GET /v1/fields/resolve`."
|
|
34084
|
+
},
|
|
34085
|
+
"superseded_by": {
|
|
34086
|
+
"oneOf": [
|
|
34087
|
+
{
|
|
34088
|
+
"$ref": "#/components/schemas/FieldRef"
|
|
34089
|
+
},
|
|
34090
|
+
{
|
|
34091
|
+
"type": "null"
|
|
34092
|
+
}
|
|
34093
|
+
],
|
|
34094
|
+
"description": "Set when this row was merged into a survivor; the id stays readable, follow it (or pass `follow_redirects=true`)."
|
|
34095
|
+
},
|
|
34096
|
+
"display_name": {
|
|
34097
|
+
"type": "string",
|
|
34098
|
+
"description": "Human-readable label, always present. A stored display name wins; otherwise it is derived from `canonical_name`, e.g. `invoice_number` → `Invoice Number`.",
|
|
34099
|
+
"example": "Invoice Number"
|
|
34100
|
+
},
|
|
34101
|
+
"data_type": {
|
|
34102
|
+
"type": "string",
|
|
34103
|
+
"example": "string"
|
|
34104
|
+
},
|
|
34105
|
+
"tier": {
|
|
34106
|
+
"type": "integer"
|
|
34107
|
+
},
|
|
34108
|
+
"cluster_name": {
|
|
34109
|
+
"type": [
|
|
34110
|
+
"string",
|
|
34111
|
+
"null"
|
|
34112
|
+
]
|
|
34113
|
+
},
|
|
34114
|
+
"occurrence_count": {
|
|
34115
|
+
"type": "integer"
|
|
34116
|
+
},
|
|
34117
|
+
"master_instruction": {
|
|
33783
34118
|
"type": [
|
|
33784
34119
|
"string",
|
|
33785
34120
|
"null"
|
|
@@ -33803,6 +34138,499 @@
|
|
|
33803
34138
|
},
|
|
33804
34139
|
"similar": {
|
|
33805
34140
|
"type": "string"
|
|
34141
|
+
},
|
|
34142
|
+
"card": {
|
|
34143
|
+
"type": "string"
|
|
34144
|
+
},
|
|
34145
|
+
"values": {
|
|
34146
|
+
"type": "string"
|
|
34147
|
+
},
|
|
34148
|
+
"history": {
|
|
34149
|
+
"type": "string"
|
|
34150
|
+
}
|
|
34151
|
+
}
|
|
34152
|
+
}
|
|
34153
|
+
}
|
|
34154
|
+
},
|
|
34155
|
+
"FieldResolveResponse": {
|
|
34156
|
+
"type": "object",
|
|
34157
|
+
"required": [
|
|
34158
|
+
"name",
|
|
34159
|
+
"matched_by",
|
|
34160
|
+
"redirected_from",
|
|
34161
|
+
"field"
|
|
34162
|
+
],
|
|
34163
|
+
"properties": {
|
|
34164
|
+
"name": {
|
|
34165
|
+
"type": "string"
|
|
34166
|
+
},
|
|
34167
|
+
"matched_by": {
|
|
34168
|
+
"type": "string",
|
|
34169
|
+
"enum": [
|
|
34170
|
+
"canonical_name",
|
|
34171
|
+
"synonym",
|
|
34172
|
+
"alias",
|
|
34173
|
+
"match_key"
|
|
34174
|
+
]
|
|
34175
|
+
},
|
|
34176
|
+
"redirected_from": {
|
|
34177
|
+
"type": "array",
|
|
34178
|
+
"items": {
|
|
34179
|
+
"type": "string",
|
|
34180
|
+
"format": "uuid"
|
|
34181
|
+
},
|
|
34182
|
+
"description": "Ids walked through `superseded_by`, oldest first (empty when the hit was live)."
|
|
34183
|
+
},
|
|
34184
|
+
"field": {
|
|
34185
|
+
"$ref": "#/components/schemas/FieldResponse"
|
|
34186
|
+
}
|
|
34187
|
+
}
|
|
34188
|
+
},
|
|
34189
|
+
"FieldCardResponse": {
|
|
34190
|
+
"allOf": [
|
|
34191
|
+
{
|
|
34192
|
+
"$ref": "#/components/schemas/FieldResponse"
|
|
34193
|
+
},
|
|
34194
|
+
{
|
|
34195
|
+
"type": "object",
|
|
34196
|
+
"required": [
|
|
34197
|
+
"definition",
|
|
34198
|
+
"identity",
|
|
34199
|
+
"occurrence",
|
|
34200
|
+
"values",
|
|
34201
|
+
"usage"
|
|
34202
|
+
],
|
|
34203
|
+
"properties": {
|
|
34204
|
+
"redirected_from": {
|
|
34205
|
+
"type": "array",
|
|
34206
|
+
"items": {
|
|
34207
|
+
"type": "string",
|
|
34208
|
+
"format": "uuid"
|
|
34209
|
+
}
|
|
34210
|
+
},
|
|
34211
|
+
"definition": {
|
|
34212
|
+
"type": "object",
|
|
34213
|
+
"properties": {
|
|
34214
|
+
"description": {
|
|
34215
|
+
"type": [
|
|
34216
|
+
"string",
|
|
34217
|
+
"null"
|
|
34218
|
+
]
|
|
34219
|
+
},
|
|
34220
|
+
"instruction": {
|
|
34221
|
+
"type": [
|
|
34222
|
+
"string",
|
|
34223
|
+
"null"
|
|
34224
|
+
],
|
|
34225
|
+
"description": "The master extraction instruction."
|
|
34226
|
+
},
|
|
34227
|
+
"variance_notes": {
|
|
34228
|
+
"type": [
|
|
34229
|
+
"string",
|
|
34230
|
+
"null"
|
|
34231
|
+
]
|
|
34232
|
+
},
|
|
34233
|
+
"synonyms": {
|
|
34234
|
+
"type": "array",
|
|
34235
|
+
"items": {
|
|
34236
|
+
"type": "string"
|
|
34237
|
+
}
|
|
34238
|
+
},
|
|
34239
|
+
"aliases": {
|
|
34240
|
+
"type": "array",
|
|
34241
|
+
"items": {
|
|
34242
|
+
"type": "object",
|
|
34243
|
+
"properties": {
|
|
34244
|
+
"name": {
|
|
34245
|
+
"type": "string"
|
|
34246
|
+
},
|
|
34247
|
+
"source": {
|
|
34248
|
+
"type": "string"
|
|
34249
|
+
}
|
|
34250
|
+
}
|
|
34251
|
+
}
|
|
34252
|
+
}
|
|
34253
|
+
}
|
|
34254
|
+
},
|
|
34255
|
+
"identity": {
|
|
34256
|
+
"type": "object",
|
|
34257
|
+
"properties": {
|
|
34258
|
+
"pinned": {
|
|
34259
|
+
"type": "boolean",
|
|
34260
|
+
"description": "A customer-declared concept",
|
|
34261
|
+
"exempt from autonomous grooming.": null
|
|
34262
|
+
},
|
|
34263
|
+
"source": {
|
|
34264
|
+
"type": [
|
|
34265
|
+
"string",
|
|
34266
|
+
"null"
|
|
34267
|
+
]
|
|
34268
|
+
},
|
|
34269
|
+
"link_key": {
|
|
34270
|
+
"type": "boolean"
|
|
34271
|
+
},
|
|
34272
|
+
"link_key_category": {
|
|
34273
|
+
"type": [
|
|
34274
|
+
"string",
|
|
34275
|
+
"null"
|
|
34276
|
+
]
|
|
34277
|
+
},
|
|
34278
|
+
"superseded_by": {
|
|
34279
|
+
"oneOf": [
|
|
34280
|
+
{
|
|
34281
|
+
"$ref": "#/components/schemas/FieldRef"
|
|
34282
|
+
},
|
|
34283
|
+
{
|
|
34284
|
+
"type": "null"
|
|
34285
|
+
}
|
|
34286
|
+
]
|
|
34287
|
+
},
|
|
34288
|
+
"absorbed": {
|
|
34289
|
+
"type": "array",
|
|
34290
|
+
"description": "Concepts merged INTO this one that still exist as redirect rows.",
|
|
34291
|
+
"items": {
|
|
34292
|
+
"type": "object",
|
|
34293
|
+
"properties": {
|
|
34294
|
+
"id": {
|
|
34295
|
+
"type": "string",
|
|
34296
|
+
"format": "uuid"
|
|
34297
|
+
},
|
|
34298
|
+
"canonical_name": {
|
|
34299
|
+
"type": "string"
|
|
34300
|
+
},
|
|
34301
|
+
"links": {
|
|
34302
|
+
"type": "object",
|
|
34303
|
+
"properties": {
|
|
34304
|
+
"self": {
|
|
34305
|
+
"type": "string"
|
|
34306
|
+
}
|
|
34307
|
+
}
|
|
34308
|
+
}
|
|
34309
|
+
}
|
|
34310
|
+
}
|
|
34311
|
+
}
|
|
34312
|
+
}
|
|
34313
|
+
},
|
|
34314
|
+
"occurrence": {
|
|
34315
|
+
"type": "object",
|
|
34316
|
+
"properties": {
|
|
34317
|
+
"occurrence_count": {
|
|
34318
|
+
"type": "integer"
|
|
34319
|
+
},
|
|
34320
|
+
"document_count": {
|
|
34321
|
+
"type": "integer"
|
|
34322
|
+
},
|
|
34323
|
+
"occurrence_rate": {
|
|
34324
|
+
"type": [
|
|
34325
|
+
"number",
|
|
34326
|
+
"null"
|
|
34327
|
+
]
|
|
34328
|
+
},
|
|
34329
|
+
"first_seen_at": {
|
|
34330
|
+
"type": [
|
|
34331
|
+
"string",
|
|
34332
|
+
"null"
|
|
34333
|
+
],
|
|
34334
|
+
"format": "date-time"
|
|
34335
|
+
},
|
|
34336
|
+
"last_seen_at": {
|
|
34337
|
+
"type": [
|
|
34338
|
+
"string",
|
|
34339
|
+
"null"
|
|
34340
|
+
],
|
|
34341
|
+
"format": "date-time"
|
|
34342
|
+
},
|
|
34343
|
+
"promoted_at": {
|
|
34344
|
+
"type": [
|
|
34345
|
+
"string",
|
|
34346
|
+
"null"
|
|
34347
|
+
],
|
|
34348
|
+
"format": "date-time"
|
|
34349
|
+
},
|
|
34350
|
+
"document_type_distribution": {
|
|
34351
|
+
"type": "object",
|
|
34352
|
+
"additionalProperties": true
|
|
34353
|
+
}
|
|
34354
|
+
}
|
|
34355
|
+
},
|
|
34356
|
+
"values": {
|
|
34357
|
+
"type": "object",
|
|
34358
|
+
"description": "Sources-IAM filtered value distribution over the concept and its absorbed redirects.",
|
|
34359
|
+
"properties": {
|
|
34360
|
+
"total": {
|
|
34361
|
+
"type": "integer"
|
|
34362
|
+
},
|
|
34363
|
+
"distinct_count": {
|
|
34364
|
+
"type": "integer"
|
|
34365
|
+
},
|
|
34366
|
+
"visible_document_count": {
|
|
34367
|
+
"type": "integer"
|
|
34368
|
+
},
|
|
34369
|
+
"top": {
|
|
34370
|
+
"type": "array",
|
|
34371
|
+
"maxItems": 8,
|
|
34372
|
+
"items": {
|
|
34373
|
+
"type": "object",
|
|
34374
|
+
"properties": {
|
|
34375
|
+
"value": {
|
|
34376
|
+
"type": "string"
|
|
34377
|
+
},
|
|
34378
|
+
"count": {
|
|
34379
|
+
"type": "integer"
|
|
34380
|
+
},
|
|
34381
|
+
"share": {
|
|
34382
|
+
"type": "number"
|
|
34383
|
+
}
|
|
34384
|
+
}
|
|
34385
|
+
}
|
|
34386
|
+
},
|
|
34387
|
+
"examples": {
|
|
34388
|
+
"type": "array",
|
|
34389
|
+
"maxItems": 5,
|
|
34390
|
+
"items": {
|
|
34391
|
+
"type": "string"
|
|
34392
|
+
}
|
|
34393
|
+
}
|
|
34394
|
+
}
|
|
34395
|
+
},
|
|
34396
|
+
"usage": {
|
|
34397
|
+
"type": "object",
|
|
34398
|
+
"properties": {
|
|
34399
|
+
"schema_count": {
|
|
34400
|
+
"type": "integer"
|
|
34401
|
+
},
|
|
34402
|
+
"schema_field_count": {
|
|
34403
|
+
"type": "integer"
|
|
34404
|
+
}
|
|
34405
|
+
}
|
|
34406
|
+
}
|
|
34407
|
+
}
|
|
34408
|
+
}
|
|
34409
|
+
]
|
|
34410
|
+
},
|
|
34411
|
+
"FieldValuesResponse": {
|
|
34412
|
+
"type": "object",
|
|
34413
|
+
"required": [
|
|
34414
|
+
"field_id",
|
|
34415
|
+
"canonical_name",
|
|
34416
|
+
"concept_ids",
|
|
34417
|
+
"data",
|
|
34418
|
+
"pagination"
|
|
34419
|
+
],
|
|
34420
|
+
"properties": {
|
|
34421
|
+
"field_id": {
|
|
34422
|
+
"type": "string",
|
|
34423
|
+
"format": "uuid"
|
|
34424
|
+
},
|
|
34425
|
+
"canonical_name": {
|
|
34426
|
+
"type": "string"
|
|
34427
|
+
},
|
|
34428
|
+
"concept_ids": {
|
|
34429
|
+
"type": "array",
|
|
34430
|
+
"items": {
|
|
34431
|
+
"type": "string",
|
|
34432
|
+
"format": "uuid"
|
|
34433
|
+
},
|
|
34434
|
+
"description": "The concept plus the absorbed redirects whose occurrences are included."
|
|
34435
|
+
},
|
|
34436
|
+
"data": {
|
|
34437
|
+
"type": "array",
|
|
34438
|
+
"items": {
|
|
34439
|
+
"type": "object",
|
|
34440
|
+
"required": [
|
|
34441
|
+
"occurrence_id",
|
|
34442
|
+
"document_id",
|
|
34443
|
+
"value",
|
|
34444
|
+
"provenance",
|
|
34445
|
+
"links"
|
|
34446
|
+
],
|
|
34447
|
+
"properties": {
|
|
34448
|
+
"occurrence_id": {
|
|
34449
|
+
"type": "string",
|
|
34450
|
+
"format": "uuid"
|
|
34451
|
+
},
|
|
34452
|
+
"document_id": {
|
|
34453
|
+
"type": "string",
|
|
34454
|
+
"format": "uuid"
|
|
34455
|
+
},
|
|
34456
|
+
"document_filename": {
|
|
34457
|
+
"type": [
|
|
34458
|
+
"string",
|
|
34459
|
+
"null"
|
|
34460
|
+
]
|
|
34461
|
+
},
|
|
34462
|
+
"document_type": {
|
|
34463
|
+
"type": [
|
|
34464
|
+
"string",
|
|
34465
|
+
"null"
|
|
34466
|
+
]
|
|
34467
|
+
},
|
|
34468
|
+
"value": {
|
|
34469
|
+
"description": "The current bound value (raw JSON as captured)."
|
|
34470
|
+
},
|
|
34471
|
+
"data_type": {
|
|
34472
|
+
"type": [
|
|
34473
|
+
"string",
|
|
34474
|
+
"null"
|
|
34475
|
+
]
|
|
34476
|
+
},
|
|
34477
|
+
"confidence": {
|
|
34478
|
+
"type": [
|
|
34479
|
+
"number",
|
|
34480
|
+
"null"
|
|
34481
|
+
]
|
|
34482
|
+
},
|
|
34483
|
+
"provenance": {
|
|
34484
|
+
"type": "object",
|
|
34485
|
+
"properties": {
|
|
34486
|
+
"raw_field_name": {
|
|
34487
|
+
"type": [
|
|
34488
|
+
"string",
|
|
34489
|
+
"null"
|
|
34490
|
+
],
|
|
34491
|
+
"description": "The name the value was captured under."
|
|
34492
|
+
},
|
|
34493
|
+
"source_text": {
|
|
34494
|
+
"type": [
|
|
34495
|
+
"string",
|
|
34496
|
+
"null"
|
|
34497
|
+
],
|
|
34498
|
+
"description": "Verbatim document text the value sat in."
|
|
34499
|
+
},
|
|
34500
|
+
"resolved_by": {
|
|
34501
|
+
"type": [
|
|
34502
|
+
"string",
|
|
34503
|
+
"null"
|
|
34504
|
+
],
|
|
34505
|
+
"description": "Resolution band that bound it (`exact`, `cluster`, `semantic_auto`, `llm_rescue`, …)."
|
|
34506
|
+
},
|
|
34507
|
+
"needs_confirmation": {
|
|
34508
|
+
"type": "boolean"
|
|
34509
|
+
},
|
|
34510
|
+
"bound_field_id": {
|
|
34511
|
+
"type": "string",
|
|
34512
|
+
"format": "uuid"
|
|
34513
|
+
},
|
|
34514
|
+
"via_redirect": {
|
|
34515
|
+
"type": "boolean",
|
|
34516
|
+
"description": "true when the row is still bound to a concept merged into this one."
|
|
34517
|
+
}
|
|
34518
|
+
}
|
|
34519
|
+
},
|
|
34520
|
+
"created_at": {
|
|
34521
|
+
"type": [
|
|
34522
|
+
"string",
|
|
34523
|
+
"null"
|
|
34524
|
+
],
|
|
34525
|
+
"format": "date-time"
|
|
34526
|
+
},
|
|
34527
|
+
"links": {
|
|
34528
|
+
"type": "object",
|
|
34529
|
+
"properties": {
|
|
34530
|
+
"document": {
|
|
34531
|
+
"type": "string"
|
|
34532
|
+
},
|
|
34533
|
+
"document_fields": {
|
|
34534
|
+
"type": "string"
|
|
34535
|
+
}
|
|
34536
|
+
}
|
|
34537
|
+
}
|
|
34538
|
+
}
|
|
34539
|
+
}
|
|
34540
|
+
},
|
|
34541
|
+
"pagination": {
|
|
34542
|
+
"type": "object",
|
|
34543
|
+
"properties": {
|
|
34544
|
+
"total": {
|
|
34545
|
+
"type": "integer"
|
|
34546
|
+
},
|
|
34547
|
+
"limit": {
|
|
34548
|
+
"type": "integer"
|
|
34549
|
+
},
|
|
34550
|
+
"has_more": {
|
|
34551
|
+
"type": "boolean"
|
|
34552
|
+
},
|
|
34553
|
+
"next_cursor": {
|
|
34554
|
+
"type": [
|
|
34555
|
+
"string",
|
|
34556
|
+
"null"
|
|
34557
|
+
]
|
|
34558
|
+
}
|
|
34559
|
+
}
|
|
34560
|
+
}
|
|
34561
|
+
}
|
|
34562
|
+
},
|
|
34563
|
+
"FieldHistoryResponse": {
|
|
34564
|
+
"type": "object",
|
|
34565
|
+
"required": [
|
|
34566
|
+
"field_id",
|
|
34567
|
+
"canonical_name",
|
|
34568
|
+
"maturity",
|
|
34569
|
+
"superseded_by",
|
|
34570
|
+
"data",
|
|
34571
|
+
"total"
|
|
34572
|
+
],
|
|
34573
|
+
"properties": {
|
|
34574
|
+
"field_id": {
|
|
34575
|
+
"type": "string",
|
|
34576
|
+
"format": "uuid"
|
|
34577
|
+
},
|
|
34578
|
+
"canonical_name": {
|
|
34579
|
+
"type": "string"
|
|
34580
|
+
},
|
|
34581
|
+
"maturity": {
|
|
34582
|
+
"$ref": "#/components/schemas/FieldMaturity"
|
|
34583
|
+
},
|
|
34584
|
+
"superseded_by": {
|
|
34585
|
+
"oneOf": [
|
|
34586
|
+
{
|
|
34587
|
+
"$ref": "#/components/schemas/FieldRef"
|
|
34588
|
+
},
|
|
34589
|
+
{
|
|
34590
|
+
"type": "null"
|
|
34591
|
+
}
|
|
34592
|
+
]
|
|
34593
|
+
},
|
|
34594
|
+
"total": {
|
|
34595
|
+
"type": "integer"
|
|
34596
|
+
},
|
|
34597
|
+
"data": {
|
|
34598
|
+
"type": "array",
|
|
34599
|
+
"description": "Newest first.",
|
|
34600
|
+
"items": {
|
|
34601
|
+
"type": "object",
|
|
34602
|
+
"required": [
|
|
34603
|
+
"kind",
|
|
34604
|
+
"at",
|
|
34605
|
+
"detail"
|
|
34606
|
+
],
|
|
34607
|
+
"properties": {
|
|
34608
|
+
"kind": {
|
|
34609
|
+
"type": "string",
|
|
34610
|
+
"enum": [
|
|
34611
|
+
"tier_changed",
|
|
34612
|
+
"merge_log_absorbed",
|
|
34613
|
+
"merge_log_merged_into",
|
|
34614
|
+
"absorbed",
|
|
34615
|
+
"superseded",
|
|
34616
|
+
"renamed",
|
|
34617
|
+
"rewritten",
|
|
34618
|
+
"split",
|
|
34619
|
+
"deleted",
|
|
34620
|
+
"alias_added"
|
|
34621
|
+
]
|
|
34622
|
+
},
|
|
34623
|
+
"at": {
|
|
34624
|
+
"type": [
|
|
34625
|
+
"string",
|
|
34626
|
+
"null"
|
|
34627
|
+
],
|
|
34628
|
+
"format": "date-time"
|
|
34629
|
+
},
|
|
34630
|
+
"detail": {
|
|
34631
|
+
"type": "object",
|
|
34632
|
+
"additionalProperties": true
|
|
34633
|
+
}
|
|
33806
34634
|
}
|
|
33807
34635
|
}
|
|
33808
34636
|
}
|
|
@@ -33816,6 +34644,14 @@
|
|
|
33816
34644
|
{
|
|
33817
34645
|
"type": "object",
|
|
33818
34646
|
"properties": {
|
|
34647
|
+
"redirected_from": {
|
|
34648
|
+
"type": "array",
|
|
34649
|
+
"items": {
|
|
34650
|
+
"type": "string",
|
|
34651
|
+
"format": "uuid"
|
|
34652
|
+
},
|
|
34653
|
+
"description": "Ids walked when `follow_redirects=true` (oldest first); empty otherwise."
|
|
34654
|
+
},
|
|
33819
34655
|
"recent_occurrences": {
|
|
33820
34656
|
"type": "array",
|
|
33821
34657
|
"maxItems": 20,
|