@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/seo.js CHANGED
@@ -6530,6 +6530,42 @@ var openapi_default = {
6530
6530
  example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
6531
6531
  },
6532
6532
  description: "Filter by cluster."
6533
+ },
6534
+ {
6535
+ name: "maturity",
6536
+ in: "query",
6537
+ schema: {
6538
+ type: "string",
6539
+ enum: [
6540
+ "core",
6541
+ "proven",
6542
+ "candidate"
6543
+ ]
6544
+ },
6545
+ 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`)."
6546
+ },
6547
+ {
6548
+ name: "include_superseded",
6549
+ in: "query",
6550
+ schema: {
6551
+ type: "boolean",
6552
+ default: false
6553
+ },
6554
+ 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."
6555
+ },
6556
+ {
6557
+ name: "admission_state",
6558
+ in: "query",
6559
+ schema: {
6560
+ type: "string",
6561
+ enum: [
6562
+ "canonical",
6563
+ "provisional",
6564
+ "all"
6565
+ ],
6566
+ default: "canonical"
6567
+ },
6568
+ description: "Canonical read plane. Defaults to proven concepts only; `provisional` shows the recurrence-gated pool, `all` disables the filter."
6533
6569
  }
6534
6570
  ],
6535
6571
  responses: {
@@ -6603,17 +6639,80 @@ var openapi_default = {
6603
6639
  }
6604
6640
  }
6605
6641
  },
6642
+ "/v1/fields/resolve": {
6643
+ get: {
6644
+ operationId: "resolveField",
6645
+ summary: "Resolve a field name to the live concept",
6646
+ description: "Stable-identity entry point for a consumer that holds a field NAME rather\nthan an id. Lookup order, first hit wins \u2014 indexed arms first, then two\ncase-insensitive sequential-scan fallbacks: exact `canonical_name` \u2192 the\nregistry `match_key` fold (separator / case / accent / plural\ninsensitive, the same `field_match_key()` the resolver binds with) \u2192 a\nmerge alias (`field_registry_aliases`) \u2192 exact `synonyms[]` containment\n(names folded in by merges and cleanup) \u2192 case-insensitive canonical\nname \u2192 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",
6647
+ tags: [
6648
+ "Schemas"
6649
+ ],
6650
+ parameters: [
6651
+ {
6652
+ name: "name",
6653
+ in: "query",
6654
+ required: true,
6655
+ schema: {
6656
+ type: "string"
6657
+ },
6658
+ description: "The field name to resolve, e.g. `Invoice No`."
6659
+ },
6660
+ {
6661
+ name: "follow_redirects",
6662
+ in: "query",
6663
+ schema: {
6664
+ type: "boolean",
6665
+ default: true
6666
+ },
6667
+ description: "Walk `superseded_by` to the live survivor (default true)."
6668
+ }
6669
+ ],
6670
+ responses: {
6671
+ "200": {
6672
+ description: "The resolved concept.",
6673
+ content: {
6674
+ "application/json": {
6675
+ schema: {
6676
+ $ref: "#/components/schemas/FieldResolveResponse"
6677
+ }
6678
+ }
6679
+ }
6680
+ },
6681
+ "400": {
6682
+ description: "`missing_name` \u2014 the `name` query parameter is required exactly once."
6683
+ },
6684
+ "401": {
6685
+ $ref: "#/components/responses/Unauthorized"
6686
+ },
6687
+ "404": {
6688
+ description: "`unknown_field` \u2014 no arm matched the name in this registry."
6689
+ },
6690
+ "429": {
6691
+ $ref: "#/components/responses/RateLimitExceeded"
6692
+ }
6693
+ }
6694
+ }
6695
+ },
6606
6696
  "/v1/fields/{id}": {
6607
6697
  get: {
6608
6698
  operationId: "getField",
6609
6699
  summary: "Get a field",
6610
- description: "Returns the field registry row plus up to 20 most recent occurrences.",
6700
+ 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",
6611
6701
  tags: [
6612
6702
  "Schemas"
6613
6703
  ],
6614
6704
  parameters: [
6615
6705
  {
6616
6706
  $ref: "#/components/parameters/ResourceId"
6707
+ },
6708
+ {
6709
+ name: "follow_redirects",
6710
+ in: "query",
6711
+ schema: {
6712
+ type: "boolean",
6713
+ default: false
6714
+ },
6715
+ description: "Walk `superseded_by` to the live survivor and return that row."
6617
6716
  }
6618
6717
  ],
6619
6718
  responses: {
@@ -6719,6 +6818,176 @@ var openapi_default = {
6719
6818
  }
6720
6819
  }
6721
6820
  },
6821
+ "/v1/fields/{id}/card": {
6822
+ get: {
6823
+ operationId: "getFieldCard",
6824
+ summary: "Get the concept card for a field",
6825
+ 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",
6826
+ tags: [
6827
+ "Schemas"
6828
+ ],
6829
+ parameters: [
6830
+ {
6831
+ $ref: "#/components/parameters/ResourceId"
6832
+ },
6833
+ {
6834
+ name: "follow_redirects",
6835
+ in: "query",
6836
+ schema: {
6837
+ type: "boolean",
6838
+ default: false
6839
+ },
6840
+ description: "Walk `superseded_by` to the live survivor and describe that concept."
6841
+ }
6842
+ ],
6843
+ responses: {
6844
+ "200": {
6845
+ description: "Concept card.",
6846
+ content: {
6847
+ "application/json": {
6848
+ schema: {
6849
+ $ref: "#/components/schemas/FieldCardResponse"
6850
+ }
6851
+ }
6852
+ }
6853
+ },
6854
+ "401": {
6855
+ $ref: "#/components/responses/Unauthorized"
6856
+ },
6857
+ "404": {
6858
+ $ref: "#/components/responses/NotFound"
6859
+ },
6860
+ "429": {
6861
+ $ref: "#/components/responses/RateLimitExceeded"
6862
+ }
6863
+ }
6864
+ }
6865
+ },
6866
+ "/v1/fields/{id}/values": {
6867
+ get: {
6868
+ operationId: "listFieldValues",
6869
+ summary: "List a field's current values across documents",
6870
+ 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 \u2014 `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",
6871
+ tags: [
6872
+ "Schemas"
6873
+ ],
6874
+ parameters: [
6875
+ {
6876
+ $ref: "#/components/parameters/ResourceId"
6877
+ },
6878
+ {
6879
+ $ref: "#/components/parameters/Limit"
6880
+ },
6881
+ {
6882
+ $ref: "#/components/parameters/Cursor"
6883
+ },
6884
+ {
6885
+ $ref: "#/components/parameters/Order"
6886
+ },
6887
+ {
6888
+ name: "document_id",
6889
+ in: "query",
6890
+ schema: {
6891
+ type: "string",
6892
+ format: "uuid"
6893
+ },
6894
+ description: "Only occurrences on this document."
6895
+ },
6896
+ {
6897
+ name: "value",
6898
+ in: "query",
6899
+ schema: {
6900
+ type: "string"
6901
+ },
6902
+ description: "Case-insensitive contains filter on the value text."
6903
+ },
6904
+ {
6905
+ name: "include_redirected",
6906
+ in: "query",
6907
+ schema: {
6908
+ type: "boolean",
6909
+ default: true
6910
+ },
6911
+ description: "Include occurrences bound to concepts merged into this one."
6912
+ },
6913
+ {
6914
+ name: "follow_redirects",
6915
+ in: "query",
6916
+ schema: {
6917
+ type: "boolean",
6918
+ default: false
6919
+ },
6920
+ description: "Walk `superseded_by` first and list the survivor's values."
6921
+ }
6922
+ ],
6923
+ responses: {
6924
+ "200": {
6925
+ description: "Paginated values with provenance.",
6926
+ content: {
6927
+ "application/json": {
6928
+ schema: {
6929
+ $ref: "#/components/schemas/FieldValuesResponse"
6930
+ }
6931
+ }
6932
+ }
6933
+ },
6934
+ "401": {
6935
+ $ref: "#/components/responses/Unauthorized"
6936
+ },
6937
+ "404": {
6938
+ $ref: "#/components/responses/NotFound"
6939
+ },
6940
+ "429": {
6941
+ $ref: "#/components/responses/RateLimitExceeded"
6942
+ }
6943
+ }
6944
+ }
6945
+ },
6946
+ "/v1/fields/{id}/history": {
6947
+ get: {
6948
+ operationId: "getFieldHistory",
6949
+ summary: "Get a field's curation history",
6950
+ description: "The concept's curation trail, newest first \u2014 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 \u2014 the\ntrail belongs to the id asked for.\n",
6951
+ tags: [
6952
+ "Schemas"
6953
+ ],
6954
+ parameters: [
6955
+ {
6956
+ $ref: "#/components/parameters/ResourceId"
6957
+ },
6958
+ {
6959
+ name: "limit",
6960
+ in: "query",
6961
+ schema: {
6962
+ type: "integer",
6963
+ default: 100,
6964
+ maximum: 500
6965
+ }
6966
+ }
6967
+ ],
6968
+ responses: {
6969
+ "200": {
6970
+ description: "Curation events, newest first.",
6971
+ content: {
6972
+ "application/json": {
6973
+ schema: {
6974
+ $ref: "#/components/schemas/FieldHistoryResponse"
6975
+ }
6976
+ }
6977
+ }
6978
+ },
6979
+ "401": {
6980
+ $ref: "#/components/responses/Unauthorized"
6981
+ },
6982
+ "404": {
6983
+ $ref: "#/components/responses/NotFound"
6984
+ },
6985
+ "429": {
6986
+ $ref: "#/components/responses/RateLimitExceeded"
6987
+ }
6988
+ }
6989
+ }
6990
+ },
6722
6991
  "/v1/reference-data": {
6723
6992
  get: {
6724
6993
  operationId: "listReferenceData",
@@ -21478,7 +21747,7 @@ var openapi_default = {
21478
21747
  "Events"
21479
21748
  ],
21480
21749
  summary: "List tenant events",
21481
- 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",
21750
+ 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 \u2014 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",
21482
21751
  operationId: "listEvents",
21483
21752
  security: [
21484
21753
  {
@@ -33756,6 +34025,36 @@ var openapi_default = {
33756
34025
  }
33757
34026
  }
33758
34027
  },
34028
+ FieldMaturity: {
34029
+ type: "string",
34030
+ enum: [
34031
+ "core",
34032
+ "proven",
34033
+ "candidate"
34034
+ ],
34035
+ description: "Named maturity level \u2014 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"
34036
+ },
34037
+ FieldRef: {
34038
+ type: "object",
34039
+ required: [
34040
+ "id",
34041
+ "links"
34042
+ ],
34043
+ properties: {
34044
+ id: {
34045
+ type: "string",
34046
+ format: "uuid"
34047
+ },
34048
+ links: {
34049
+ type: "object",
34050
+ properties: {
34051
+ self: {
34052
+ type: "string"
34053
+ }
34054
+ }
34055
+ }
34056
+ }
34057
+ },
33759
34058
  FieldResponse: {
33760
34059
  type: "object",
33761
34060
  required: [
@@ -33764,6 +34063,7 @@ var openapi_default = {
33764
34063
  "display_name",
33765
34064
  "data_type",
33766
34065
  "tier",
34066
+ "maturity",
33767
34067
  "occurrence_count",
33768
34068
  "created_at",
33769
34069
  "links"
@@ -33778,28 +34078,63 @@ var openapi_default = {
33778
34078
  type: "string",
33779
34079
  example: "invoice_number"
33780
34080
  },
33781
- display_name: {
33782
- type: "string",
33783
- description: "Human-readable label, always present. A stored display name wins; otherwise it is derived from `canonical_name`, e.g. `invoice_number` \u2192 `Invoice Number`.",
33784
- example: "Invoice Number"
34081
+ maturity: {
34082
+ $ref: "#/components/schemas/FieldMaturity"
33785
34083
  },
33786
- data_type: {
34084
+ admission_state: {
33787
34085
  type: "string",
33788
- example: "string"
33789
- },
33790
- tier: {
33791
- type: "integer"
33792
- },
33793
- cluster_name: {
33794
- type: [
33795
- "string",
33796
- "null"
34086
+ enum: [
34087
+ "canonical",
34088
+ "provisional"
33797
34089
  ]
33798
34090
  },
33799
- occurrence_count: {
33800
- type: "integer"
33801
- },
33802
- master_instruction: {
34091
+ description: {
34092
+ type: [
34093
+ "string",
34094
+ "null"
34095
+ ],
34096
+ description: "Curated semantic description of the concept."
34097
+ },
34098
+ synonyms: {
34099
+ type: "array",
34100
+ items: {
34101
+ type: "string"
34102
+ },
34103
+ description: "Names folded onto this concept by merges and cleanup; all resolve via `GET /v1/fields/resolve`."
34104
+ },
34105
+ superseded_by: {
34106
+ oneOf: [
34107
+ {
34108
+ $ref: "#/components/schemas/FieldRef"
34109
+ },
34110
+ {
34111
+ type: "null"
34112
+ }
34113
+ ],
34114
+ description: "Set when this row was merged into a survivor; the id stays readable, follow it (or pass `follow_redirects=true`)."
34115
+ },
34116
+ display_name: {
34117
+ type: "string",
34118
+ description: "Human-readable label, always present. A stored display name wins; otherwise it is derived from `canonical_name`, e.g. `invoice_number` \u2192 `Invoice Number`.",
34119
+ example: "Invoice Number"
34120
+ },
34121
+ data_type: {
34122
+ type: "string",
34123
+ example: "string"
34124
+ },
34125
+ tier: {
34126
+ type: "integer"
34127
+ },
34128
+ cluster_name: {
34129
+ type: [
34130
+ "string",
34131
+ "null"
34132
+ ]
34133
+ },
34134
+ occurrence_count: {
34135
+ type: "integer"
34136
+ },
34137
+ master_instruction: {
33803
34138
  type: [
33804
34139
  "string",
33805
34140
  "null"
@@ -33823,6 +34158,499 @@ var openapi_default = {
33823
34158
  },
33824
34159
  similar: {
33825
34160
  type: "string"
34161
+ },
34162
+ card: {
34163
+ type: "string"
34164
+ },
34165
+ values: {
34166
+ type: "string"
34167
+ },
34168
+ history: {
34169
+ type: "string"
34170
+ }
34171
+ }
34172
+ }
34173
+ }
34174
+ },
34175
+ FieldResolveResponse: {
34176
+ type: "object",
34177
+ required: [
34178
+ "name",
34179
+ "matched_by",
34180
+ "redirected_from",
34181
+ "field"
34182
+ ],
34183
+ properties: {
34184
+ name: {
34185
+ type: "string"
34186
+ },
34187
+ matched_by: {
34188
+ type: "string",
34189
+ enum: [
34190
+ "canonical_name",
34191
+ "synonym",
34192
+ "alias",
34193
+ "match_key"
34194
+ ]
34195
+ },
34196
+ redirected_from: {
34197
+ type: "array",
34198
+ items: {
34199
+ type: "string",
34200
+ format: "uuid"
34201
+ },
34202
+ description: "Ids walked through `superseded_by`, oldest first (empty when the hit was live)."
34203
+ },
34204
+ field: {
34205
+ $ref: "#/components/schemas/FieldResponse"
34206
+ }
34207
+ }
34208
+ },
34209
+ FieldCardResponse: {
34210
+ allOf: [
34211
+ {
34212
+ $ref: "#/components/schemas/FieldResponse"
34213
+ },
34214
+ {
34215
+ type: "object",
34216
+ required: [
34217
+ "definition",
34218
+ "identity",
34219
+ "occurrence",
34220
+ "values",
34221
+ "usage"
34222
+ ],
34223
+ properties: {
34224
+ redirected_from: {
34225
+ type: "array",
34226
+ items: {
34227
+ type: "string",
34228
+ format: "uuid"
34229
+ }
34230
+ },
34231
+ definition: {
34232
+ type: "object",
34233
+ properties: {
34234
+ description: {
34235
+ type: [
34236
+ "string",
34237
+ "null"
34238
+ ]
34239
+ },
34240
+ instruction: {
34241
+ type: [
34242
+ "string",
34243
+ "null"
34244
+ ],
34245
+ description: "The master extraction instruction."
34246
+ },
34247
+ variance_notes: {
34248
+ type: [
34249
+ "string",
34250
+ "null"
34251
+ ]
34252
+ },
34253
+ synonyms: {
34254
+ type: "array",
34255
+ items: {
34256
+ type: "string"
34257
+ }
34258
+ },
34259
+ aliases: {
34260
+ type: "array",
34261
+ items: {
34262
+ type: "object",
34263
+ properties: {
34264
+ name: {
34265
+ type: "string"
34266
+ },
34267
+ source: {
34268
+ type: "string"
34269
+ }
34270
+ }
34271
+ }
34272
+ }
34273
+ }
34274
+ },
34275
+ identity: {
34276
+ type: "object",
34277
+ properties: {
34278
+ pinned: {
34279
+ type: "boolean",
34280
+ description: "A customer-declared concept",
34281
+ "exempt from autonomous grooming.": null
34282
+ },
34283
+ source: {
34284
+ type: [
34285
+ "string",
34286
+ "null"
34287
+ ]
34288
+ },
34289
+ link_key: {
34290
+ type: "boolean"
34291
+ },
34292
+ link_key_category: {
34293
+ type: [
34294
+ "string",
34295
+ "null"
34296
+ ]
34297
+ },
34298
+ superseded_by: {
34299
+ oneOf: [
34300
+ {
34301
+ $ref: "#/components/schemas/FieldRef"
34302
+ },
34303
+ {
34304
+ type: "null"
34305
+ }
34306
+ ]
34307
+ },
34308
+ absorbed: {
34309
+ type: "array",
34310
+ description: "Concepts merged INTO this one that still exist as redirect rows.",
34311
+ items: {
34312
+ type: "object",
34313
+ properties: {
34314
+ id: {
34315
+ type: "string",
34316
+ format: "uuid"
34317
+ },
34318
+ canonical_name: {
34319
+ type: "string"
34320
+ },
34321
+ links: {
34322
+ type: "object",
34323
+ properties: {
34324
+ self: {
34325
+ type: "string"
34326
+ }
34327
+ }
34328
+ }
34329
+ }
34330
+ }
34331
+ }
34332
+ }
34333
+ },
34334
+ occurrence: {
34335
+ type: "object",
34336
+ properties: {
34337
+ occurrence_count: {
34338
+ type: "integer"
34339
+ },
34340
+ document_count: {
34341
+ type: "integer"
34342
+ },
34343
+ occurrence_rate: {
34344
+ type: [
34345
+ "number",
34346
+ "null"
34347
+ ]
34348
+ },
34349
+ first_seen_at: {
34350
+ type: [
34351
+ "string",
34352
+ "null"
34353
+ ],
34354
+ format: "date-time"
34355
+ },
34356
+ last_seen_at: {
34357
+ type: [
34358
+ "string",
34359
+ "null"
34360
+ ],
34361
+ format: "date-time"
34362
+ },
34363
+ promoted_at: {
34364
+ type: [
34365
+ "string",
34366
+ "null"
34367
+ ],
34368
+ format: "date-time"
34369
+ },
34370
+ document_type_distribution: {
34371
+ type: "object",
34372
+ additionalProperties: true
34373
+ }
34374
+ }
34375
+ },
34376
+ values: {
34377
+ type: "object",
34378
+ description: "Sources-IAM filtered value distribution over the concept and its absorbed redirects.",
34379
+ properties: {
34380
+ total: {
34381
+ type: "integer"
34382
+ },
34383
+ distinct_count: {
34384
+ type: "integer"
34385
+ },
34386
+ visible_document_count: {
34387
+ type: "integer"
34388
+ },
34389
+ top: {
34390
+ type: "array",
34391
+ maxItems: 8,
34392
+ items: {
34393
+ type: "object",
34394
+ properties: {
34395
+ value: {
34396
+ type: "string"
34397
+ },
34398
+ count: {
34399
+ type: "integer"
34400
+ },
34401
+ share: {
34402
+ type: "number"
34403
+ }
34404
+ }
34405
+ }
34406
+ },
34407
+ examples: {
34408
+ type: "array",
34409
+ maxItems: 5,
34410
+ items: {
34411
+ type: "string"
34412
+ }
34413
+ }
34414
+ }
34415
+ },
34416
+ usage: {
34417
+ type: "object",
34418
+ properties: {
34419
+ schema_count: {
34420
+ type: "integer"
34421
+ },
34422
+ schema_field_count: {
34423
+ type: "integer"
34424
+ }
34425
+ }
34426
+ }
34427
+ }
34428
+ }
34429
+ ]
34430
+ },
34431
+ FieldValuesResponse: {
34432
+ type: "object",
34433
+ required: [
34434
+ "field_id",
34435
+ "canonical_name",
34436
+ "concept_ids",
34437
+ "data",
34438
+ "pagination"
34439
+ ],
34440
+ properties: {
34441
+ field_id: {
34442
+ type: "string",
34443
+ format: "uuid"
34444
+ },
34445
+ canonical_name: {
34446
+ type: "string"
34447
+ },
34448
+ concept_ids: {
34449
+ type: "array",
34450
+ items: {
34451
+ type: "string",
34452
+ format: "uuid"
34453
+ },
34454
+ description: "The concept plus the absorbed redirects whose occurrences are included."
34455
+ },
34456
+ data: {
34457
+ type: "array",
34458
+ items: {
34459
+ type: "object",
34460
+ required: [
34461
+ "occurrence_id",
34462
+ "document_id",
34463
+ "value",
34464
+ "provenance",
34465
+ "links"
34466
+ ],
34467
+ properties: {
34468
+ occurrence_id: {
34469
+ type: "string",
34470
+ format: "uuid"
34471
+ },
34472
+ document_id: {
34473
+ type: "string",
34474
+ format: "uuid"
34475
+ },
34476
+ document_filename: {
34477
+ type: [
34478
+ "string",
34479
+ "null"
34480
+ ]
34481
+ },
34482
+ document_type: {
34483
+ type: [
34484
+ "string",
34485
+ "null"
34486
+ ]
34487
+ },
34488
+ value: {
34489
+ description: "The current bound value (raw JSON as captured)."
34490
+ },
34491
+ data_type: {
34492
+ type: [
34493
+ "string",
34494
+ "null"
34495
+ ]
34496
+ },
34497
+ confidence: {
34498
+ type: [
34499
+ "number",
34500
+ "null"
34501
+ ]
34502
+ },
34503
+ provenance: {
34504
+ type: "object",
34505
+ properties: {
34506
+ raw_field_name: {
34507
+ type: [
34508
+ "string",
34509
+ "null"
34510
+ ],
34511
+ description: "The name the value was captured under."
34512
+ },
34513
+ source_text: {
34514
+ type: [
34515
+ "string",
34516
+ "null"
34517
+ ],
34518
+ description: "Verbatim document text the value sat in."
34519
+ },
34520
+ resolved_by: {
34521
+ type: [
34522
+ "string",
34523
+ "null"
34524
+ ],
34525
+ description: "Resolution band that bound it (`exact`, `cluster`, `semantic_auto`, `llm_rescue`, \u2026)."
34526
+ },
34527
+ needs_confirmation: {
34528
+ type: "boolean"
34529
+ },
34530
+ bound_field_id: {
34531
+ type: "string",
34532
+ format: "uuid"
34533
+ },
34534
+ via_redirect: {
34535
+ type: "boolean",
34536
+ description: "true when the row is still bound to a concept merged into this one."
34537
+ }
34538
+ }
34539
+ },
34540
+ created_at: {
34541
+ type: [
34542
+ "string",
34543
+ "null"
34544
+ ],
34545
+ format: "date-time"
34546
+ },
34547
+ links: {
34548
+ type: "object",
34549
+ properties: {
34550
+ document: {
34551
+ type: "string"
34552
+ },
34553
+ document_fields: {
34554
+ type: "string"
34555
+ }
34556
+ }
34557
+ }
34558
+ }
34559
+ }
34560
+ },
34561
+ pagination: {
34562
+ type: "object",
34563
+ properties: {
34564
+ total: {
34565
+ type: "integer"
34566
+ },
34567
+ limit: {
34568
+ type: "integer"
34569
+ },
34570
+ has_more: {
34571
+ type: "boolean"
34572
+ },
34573
+ next_cursor: {
34574
+ type: [
34575
+ "string",
34576
+ "null"
34577
+ ]
34578
+ }
34579
+ }
34580
+ }
34581
+ }
34582
+ },
34583
+ FieldHistoryResponse: {
34584
+ type: "object",
34585
+ required: [
34586
+ "field_id",
34587
+ "canonical_name",
34588
+ "maturity",
34589
+ "superseded_by",
34590
+ "data",
34591
+ "total"
34592
+ ],
34593
+ properties: {
34594
+ field_id: {
34595
+ type: "string",
34596
+ format: "uuid"
34597
+ },
34598
+ canonical_name: {
34599
+ type: "string"
34600
+ },
34601
+ maturity: {
34602
+ $ref: "#/components/schemas/FieldMaturity"
34603
+ },
34604
+ superseded_by: {
34605
+ oneOf: [
34606
+ {
34607
+ $ref: "#/components/schemas/FieldRef"
34608
+ },
34609
+ {
34610
+ type: "null"
34611
+ }
34612
+ ]
34613
+ },
34614
+ total: {
34615
+ type: "integer"
34616
+ },
34617
+ data: {
34618
+ type: "array",
34619
+ description: "Newest first.",
34620
+ items: {
34621
+ type: "object",
34622
+ required: [
34623
+ "kind",
34624
+ "at",
34625
+ "detail"
34626
+ ],
34627
+ properties: {
34628
+ kind: {
34629
+ type: "string",
34630
+ enum: [
34631
+ "tier_changed",
34632
+ "merge_log_absorbed",
34633
+ "merge_log_merged_into",
34634
+ "absorbed",
34635
+ "superseded",
34636
+ "renamed",
34637
+ "rewritten",
34638
+ "split",
34639
+ "deleted",
34640
+ "alias_added"
34641
+ ]
34642
+ },
34643
+ at: {
34644
+ type: [
34645
+ "string",
34646
+ "null"
34647
+ ],
34648
+ format: "date-time"
34649
+ },
34650
+ detail: {
34651
+ type: "object",
34652
+ additionalProperties: true
34653
+ }
33826
34654
  }
33827
34655
  }
33828
34656
  }
@@ -33836,6 +34664,14 @@ var openapi_default = {
33836
34664
  {
33837
34665
  type: "object",
33838
34666
  properties: {
34667
+ redirected_from: {
34668
+ type: "array",
34669
+ items: {
34670
+ type: "string",
34671
+ format: "uuid"
34672
+ },
34673
+ description: "Ids walked when `follow_redirects=true` (oldest first); empty otherwise."
34674
+ },
33839
34675
  recent_occurrences: {
33840
34676
  type: "array",
33841
34677
  maxItems: 20,
@@ -36614,7 +37450,8 @@ var API_NAV_SECTIONS = [
36614
37450
  { id: "fields", label: "Fields", children: [
36615
37451
  { id: "list-fields", label: "List Fields" },
36616
37452
  { id: "field-harmonization", label: "Harmonization" },
36617
- { id: "get-field", label: "Get Field" }
37453
+ { id: "get-field", label: "Get Field" },
37454
+ { id: "field-contract", label: "Registry Contract" }
36618
37455
  ] },
36619
37456
  { id: "registry", label: "Registry", children: [
36620
37457
  { id: "registry-query", label: "Query" },