@talonic/docs 0.21.31 → 0.21.33

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",
@@ -15520,7 +15789,7 @@ var openapi_default = {
15520
15789
  ],
15521
15790
  responses: {
15522
15791
  "200": {
15523
- description: "List of versions",
15792
+ description: "List of versions, newest first",
15524
15793
  content: {
15525
15794
  "application/json": {
15526
15795
  schema: {
@@ -15541,6 +15810,30 @@ var openapi_default = {
15541
15810
  status: {
15542
15811
  type: "string"
15543
15812
  },
15813
+ compiled_rules: {
15814
+ type: [
15815
+ "object",
15816
+ "null"
15817
+ ],
15818
+ description: "Compiled execution plan, when the version has been compiled."
15819
+ },
15820
+ compile_status: {
15821
+ type: [
15822
+ "string",
15823
+ "null"
15824
+ ]
15825
+ },
15826
+ compiled_at: {
15827
+ type: [
15828
+ "string",
15829
+ "null"
15830
+ ],
15831
+ format: "date-time"
15832
+ },
15833
+ dirty: {
15834
+ type: "boolean",
15835
+ description: "Edited since the last compile."
15836
+ },
15544
15837
  created_at: {
15545
15838
  type: "string",
15546
15839
  format: "date-time"
@@ -21478,7 +21771,7 @@ var openapi_default = {
21478
21771
  "Events"
21479
21772
  ],
21480
21773
  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",
21774
+ 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
21775
  operationId: "listEvents",
21483
21776
  security: [
21484
21777
  {
@@ -23461,6 +23754,18 @@ var openapi_default = {
23461
23754
  ]
23462
23755
  }
23463
23756
  },
23757
+ {
23758
+ name: "grain",
23759
+ in: "query",
23760
+ description: "Restrict to document-grain (Agent via MCP) or product-grain (Agentic Review) tasks; both when omitted.",
23761
+ schema: {
23762
+ type: "string",
23763
+ enum: [
23764
+ "document",
23765
+ "product"
23766
+ ]
23767
+ }
23768
+ },
23464
23769
  {
23465
23770
  name: "limit",
23466
23771
  in: "query",
@@ -23481,7 +23786,7 @@ var openapi_default = {
23481
23786
  ],
23482
23787
  responses: {
23483
23788
  "200": {
23484
- description: "Cursor-paginated task metadata. Payloads are fetched individually and audited.",
23789
+ description: "Cursor-paginated task metadata across both grains. Payloads are fetched individually and audited.",
23485
23790
  content: {
23486
23791
  "application/json": {
23487
23792
  schema: {
@@ -27496,8 +27801,10 @@ var openapi_default = {
27496
27801
  "id",
27497
27802
  "customer_id",
27498
27803
  "pipeline_id",
27804
+ "grain",
27499
27805
  "pipeline_document_id",
27500
27806
  "document_id",
27807
+ "record_id",
27501
27808
  "stage_id",
27502
27809
  "phase_index",
27503
27810
  "status",
@@ -27519,13 +27826,37 @@ var openapi_default = {
27519
27826
  type: "string",
27520
27827
  format: "uuid"
27521
27828
  },
27522
- pipeline_document_id: {
27829
+ grain: {
27523
27830
  type: "string",
27524
- format: "uuid"
27831
+ enum: [
27832
+ "document",
27833
+ "product"
27834
+ ],
27835
+ description: "document = one parked document at an Agent (via MCP) rail stage; product = one composed record at the post-assembly Agentic Review stage."
27525
27836
  },
27526
- document_id: {
27527
- type: "string",
27528
- format: "uuid"
27837
+ pipeline_document_id: {
27838
+ type: [
27839
+ "string",
27840
+ "null"
27841
+ ],
27842
+ format: "uuid",
27843
+ description: "Set on document-grain tasks only."
27844
+ },
27845
+ document_id: {
27846
+ type: [
27847
+ "string",
27848
+ "null"
27849
+ ],
27850
+ format: "uuid",
27851
+ description: "Set on document-grain tasks only."
27852
+ },
27853
+ record_id: {
27854
+ type: [
27855
+ "string",
27856
+ "null"
27857
+ ],
27858
+ format: "uuid",
27859
+ description: "The composed record under review; set on product-grain tasks only."
27529
27860
  },
27530
27861
  stage_id: {
27531
27862
  type: "string"
@@ -33756,6 +34087,36 @@ var openapi_default = {
33756
34087
  }
33757
34088
  }
33758
34089
  },
34090
+ FieldMaturity: {
34091
+ type: "string",
34092
+ enum: [
34093
+ "core",
34094
+ "proven",
34095
+ "candidate"
34096
+ ],
34097
+ 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"
34098
+ },
34099
+ FieldRef: {
34100
+ type: "object",
34101
+ required: [
34102
+ "id",
34103
+ "links"
34104
+ ],
34105
+ properties: {
34106
+ id: {
34107
+ type: "string",
34108
+ format: "uuid"
34109
+ },
34110
+ links: {
34111
+ type: "object",
34112
+ properties: {
34113
+ self: {
34114
+ type: "string"
34115
+ }
34116
+ }
34117
+ }
34118
+ }
34119
+ },
33759
34120
  FieldResponse: {
33760
34121
  type: "object",
33761
34122
  required: [
@@ -33764,6 +34125,7 @@ var openapi_default = {
33764
34125
  "display_name",
33765
34126
  "data_type",
33766
34127
  "tier",
34128
+ "maturity",
33767
34129
  "occurrence_count",
33768
34130
  "created_at",
33769
34131
  "links"
@@ -33778,6 +34140,41 @@ var openapi_default = {
33778
34140
  type: "string",
33779
34141
  example: "invoice_number"
33780
34142
  },
34143
+ maturity: {
34144
+ $ref: "#/components/schemas/FieldMaturity"
34145
+ },
34146
+ admission_state: {
34147
+ type: "string",
34148
+ enum: [
34149
+ "canonical",
34150
+ "provisional"
34151
+ ]
34152
+ },
34153
+ description: {
34154
+ type: [
34155
+ "string",
34156
+ "null"
34157
+ ],
34158
+ description: "Curated semantic description of the concept."
34159
+ },
34160
+ synonyms: {
34161
+ type: "array",
34162
+ items: {
34163
+ type: "string"
34164
+ },
34165
+ description: "Names folded onto this concept by merges and cleanup; all resolve via `GET /v1/fields/resolve`."
34166
+ },
34167
+ superseded_by: {
34168
+ oneOf: [
34169
+ {
34170
+ $ref: "#/components/schemas/FieldRef"
34171
+ },
34172
+ {
34173
+ type: "null"
34174
+ }
34175
+ ],
34176
+ description: "Set when this row was merged into a survivor; the id stays readable, follow it (or pass `follow_redirects=true`)."
34177
+ },
33781
34178
  display_name: {
33782
34179
  type: "string",
33783
34180
  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`.",
@@ -33823,6 +34220,499 @@ var openapi_default = {
33823
34220
  },
33824
34221
  similar: {
33825
34222
  type: "string"
34223
+ },
34224
+ card: {
34225
+ type: "string"
34226
+ },
34227
+ values: {
34228
+ type: "string"
34229
+ },
34230
+ history: {
34231
+ type: "string"
34232
+ }
34233
+ }
34234
+ }
34235
+ }
34236
+ },
34237
+ FieldResolveResponse: {
34238
+ type: "object",
34239
+ required: [
34240
+ "name",
34241
+ "matched_by",
34242
+ "redirected_from",
34243
+ "field"
34244
+ ],
34245
+ properties: {
34246
+ name: {
34247
+ type: "string"
34248
+ },
34249
+ matched_by: {
34250
+ type: "string",
34251
+ enum: [
34252
+ "canonical_name",
34253
+ "synonym",
34254
+ "alias",
34255
+ "match_key"
34256
+ ]
34257
+ },
34258
+ redirected_from: {
34259
+ type: "array",
34260
+ items: {
34261
+ type: "string",
34262
+ format: "uuid"
34263
+ },
34264
+ description: "Ids walked through `superseded_by`, oldest first (empty when the hit was live)."
34265
+ },
34266
+ field: {
34267
+ $ref: "#/components/schemas/FieldResponse"
34268
+ }
34269
+ }
34270
+ },
34271
+ FieldCardResponse: {
34272
+ allOf: [
34273
+ {
34274
+ $ref: "#/components/schemas/FieldResponse"
34275
+ },
34276
+ {
34277
+ type: "object",
34278
+ required: [
34279
+ "definition",
34280
+ "identity",
34281
+ "occurrence",
34282
+ "values",
34283
+ "usage"
34284
+ ],
34285
+ properties: {
34286
+ redirected_from: {
34287
+ type: "array",
34288
+ items: {
34289
+ type: "string",
34290
+ format: "uuid"
34291
+ }
34292
+ },
34293
+ definition: {
34294
+ type: "object",
34295
+ properties: {
34296
+ description: {
34297
+ type: [
34298
+ "string",
34299
+ "null"
34300
+ ]
34301
+ },
34302
+ instruction: {
34303
+ type: [
34304
+ "string",
34305
+ "null"
34306
+ ],
34307
+ description: "The master extraction instruction."
34308
+ },
34309
+ variance_notes: {
34310
+ type: [
34311
+ "string",
34312
+ "null"
34313
+ ]
34314
+ },
34315
+ synonyms: {
34316
+ type: "array",
34317
+ items: {
34318
+ type: "string"
34319
+ }
34320
+ },
34321
+ aliases: {
34322
+ type: "array",
34323
+ items: {
34324
+ type: "object",
34325
+ properties: {
34326
+ name: {
34327
+ type: "string"
34328
+ },
34329
+ source: {
34330
+ type: "string"
34331
+ }
34332
+ }
34333
+ }
34334
+ }
34335
+ }
34336
+ },
34337
+ identity: {
34338
+ type: "object",
34339
+ properties: {
34340
+ pinned: {
34341
+ type: "boolean",
34342
+ description: "A customer-declared concept",
34343
+ "exempt from autonomous grooming.": null
34344
+ },
34345
+ source: {
34346
+ type: [
34347
+ "string",
34348
+ "null"
34349
+ ]
34350
+ },
34351
+ link_key: {
34352
+ type: "boolean"
34353
+ },
34354
+ link_key_category: {
34355
+ type: [
34356
+ "string",
34357
+ "null"
34358
+ ]
34359
+ },
34360
+ superseded_by: {
34361
+ oneOf: [
34362
+ {
34363
+ $ref: "#/components/schemas/FieldRef"
34364
+ },
34365
+ {
34366
+ type: "null"
34367
+ }
34368
+ ]
34369
+ },
34370
+ absorbed: {
34371
+ type: "array",
34372
+ description: "Concepts merged INTO this one that still exist as redirect rows.",
34373
+ items: {
34374
+ type: "object",
34375
+ properties: {
34376
+ id: {
34377
+ type: "string",
34378
+ format: "uuid"
34379
+ },
34380
+ canonical_name: {
34381
+ type: "string"
34382
+ },
34383
+ links: {
34384
+ type: "object",
34385
+ properties: {
34386
+ self: {
34387
+ type: "string"
34388
+ }
34389
+ }
34390
+ }
34391
+ }
34392
+ }
34393
+ }
34394
+ }
34395
+ },
34396
+ occurrence: {
34397
+ type: "object",
34398
+ properties: {
34399
+ occurrence_count: {
34400
+ type: "integer"
34401
+ },
34402
+ document_count: {
34403
+ type: "integer"
34404
+ },
34405
+ occurrence_rate: {
34406
+ type: [
34407
+ "number",
34408
+ "null"
34409
+ ]
34410
+ },
34411
+ first_seen_at: {
34412
+ type: [
34413
+ "string",
34414
+ "null"
34415
+ ],
34416
+ format: "date-time"
34417
+ },
34418
+ last_seen_at: {
34419
+ type: [
34420
+ "string",
34421
+ "null"
34422
+ ],
34423
+ format: "date-time"
34424
+ },
34425
+ promoted_at: {
34426
+ type: [
34427
+ "string",
34428
+ "null"
34429
+ ],
34430
+ format: "date-time"
34431
+ },
34432
+ document_type_distribution: {
34433
+ type: "object",
34434
+ additionalProperties: true
34435
+ }
34436
+ }
34437
+ },
34438
+ values: {
34439
+ type: "object",
34440
+ description: "Sources-IAM filtered value distribution over the concept and its absorbed redirects.",
34441
+ properties: {
34442
+ total: {
34443
+ type: "integer"
34444
+ },
34445
+ distinct_count: {
34446
+ type: "integer"
34447
+ },
34448
+ visible_document_count: {
34449
+ type: "integer"
34450
+ },
34451
+ top: {
34452
+ type: "array",
34453
+ maxItems: 8,
34454
+ items: {
34455
+ type: "object",
34456
+ properties: {
34457
+ value: {
34458
+ type: "string"
34459
+ },
34460
+ count: {
34461
+ type: "integer"
34462
+ },
34463
+ share: {
34464
+ type: "number"
34465
+ }
34466
+ }
34467
+ }
34468
+ },
34469
+ examples: {
34470
+ type: "array",
34471
+ maxItems: 5,
34472
+ items: {
34473
+ type: "string"
34474
+ }
34475
+ }
34476
+ }
34477
+ },
34478
+ usage: {
34479
+ type: "object",
34480
+ properties: {
34481
+ schema_count: {
34482
+ type: "integer"
34483
+ },
34484
+ schema_field_count: {
34485
+ type: "integer"
34486
+ }
34487
+ }
34488
+ }
34489
+ }
34490
+ }
34491
+ ]
34492
+ },
34493
+ FieldValuesResponse: {
34494
+ type: "object",
34495
+ required: [
34496
+ "field_id",
34497
+ "canonical_name",
34498
+ "concept_ids",
34499
+ "data",
34500
+ "pagination"
34501
+ ],
34502
+ properties: {
34503
+ field_id: {
34504
+ type: "string",
34505
+ format: "uuid"
34506
+ },
34507
+ canonical_name: {
34508
+ type: "string"
34509
+ },
34510
+ concept_ids: {
34511
+ type: "array",
34512
+ items: {
34513
+ type: "string",
34514
+ format: "uuid"
34515
+ },
34516
+ description: "The concept plus the absorbed redirects whose occurrences are included."
34517
+ },
34518
+ data: {
34519
+ type: "array",
34520
+ items: {
34521
+ type: "object",
34522
+ required: [
34523
+ "occurrence_id",
34524
+ "document_id",
34525
+ "value",
34526
+ "provenance",
34527
+ "links"
34528
+ ],
34529
+ properties: {
34530
+ occurrence_id: {
34531
+ type: "string",
34532
+ format: "uuid"
34533
+ },
34534
+ document_id: {
34535
+ type: "string",
34536
+ format: "uuid"
34537
+ },
34538
+ document_filename: {
34539
+ type: [
34540
+ "string",
34541
+ "null"
34542
+ ]
34543
+ },
34544
+ document_type: {
34545
+ type: [
34546
+ "string",
34547
+ "null"
34548
+ ]
34549
+ },
34550
+ value: {
34551
+ description: "The current bound value (raw JSON as captured)."
34552
+ },
34553
+ data_type: {
34554
+ type: [
34555
+ "string",
34556
+ "null"
34557
+ ]
34558
+ },
34559
+ confidence: {
34560
+ type: [
34561
+ "number",
34562
+ "null"
34563
+ ]
34564
+ },
34565
+ provenance: {
34566
+ type: "object",
34567
+ properties: {
34568
+ raw_field_name: {
34569
+ type: [
34570
+ "string",
34571
+ "null"
34572
+ ],
34573
+ description: "The name the value was captured under."
34574
+ },
34575
+ source_text: {
34576
+ type: [
34577
+ "string",
34578
+ "null"
34579
+ ],
34580
+ description: "Verbatim document text the value sat in."
34581
+ },
34582
+ resolved_by: {
34583
+ type: [
34584
+ "string",
34585
+ "null"
34586
+ ],
34587
+ description: "Resolution band that bound it (`exact`, `cluster`, `semantic_auto`, `llm_rescue`, \u2026)."
34588
+ },
34589
+ needs_confirmation: {
34590
+ type: "boolean"
34591
+ },
34592
+ bound_field_id: {
34593
+ type: "string",
34594
+ format: "uuid"
34595
+ },
34596
+ via_redirect: {
34597
+ type: "boolean",
34598
+ description: "true when the row is still bound to a concept merged into this one."
34599
+ }
34600
+ }
34601
+ },
34602
+ created_at: {
34603
+ type: [
34604
+ "string",
34605
+ "null"
34606
+ ],
34607
+ format: "date-time"
34608
+ },
34609
+ links: {
34610
+ type: "object",
34611
+ properties: {
34612
+ document: {
34613
+ type: "string"
34614
+ },
34615
+ document_fields: {
34616
+ type: "string"
34617
+ }
34618
+ }
34619
+ }
34620
+ }
34621
+ }
34622
+ },
34623
+ pagination: {
34624
+ type: "object",
34625
+ properties: {
34626
+ total: {
34627
+ type: "integer"
34628
+ },
34629
+ limit: {
34630
+ type: "integer"
34631
+ },
34632
+ has_more: {
34633
+ type: "boolean"
34634
+ },
34635
+ next_cursor: {
34636
+ type: [
34637
+ "string",
34638
+ "null"
34639
+ ]
34640
+ }
34641
+ }
34642
+ }
34643
+ }
34644
+ },
34645
+ FieldHistoryResponse: {
34646
+ type: "object",
34647
+ required: [
34648
+ "field_id",
34649
+ "canonical_name",
34650
+ "maturity",
34651
+ "superseded_by",
34652
+ "data",
34653
+ "total"
34654
+ ],
34655
+ properties: {
34656
+ field_id: {
34657
+ type: "string",
34658
+ format: "uuid"
34659
+ },
34660
+ canonical_name: {
34661
+ type: "string"
34662
+ },
34663
+ maturity: {
34664
+ $ref: "#/components/schemas/FieldMaturity"
34665
+ },
34666
+ superseded_by: {
34667
+ oneOf: [
34668
+ {
34669
+ $ref: "#/components/schemas/FieldRef"
34670
+ },
34671
+ {
34672
+ type: "null"
34673
+ }
34674
+ ]
34675
+ },
34676
+ total: {
34677
+ type: "integer"
34678
+ },
34679
+ data: {
34680
+ type: "array",
34681
+ description: "Newest first.",
34682
+ items: {
34683
+ type: "object",
34684
+ required: [
34685
+ "kind",
34686
+ "at",
34687
+ "detail"
34688
+ ],
34689
+ properties: {
34690
+ kind: {
34691
+ type: "string",
34692
+ enum: [
34693
+ "tier_changed",
34694
+ "merge_log_absorbed",
34695
+ "merge_log_merged_into",
34696
+ "absorbed",
34697
+ "superseded",
34698
+ "renamed",
34699
+ "rewritten",
34700
+ "split",
34701
+ "deleted",
34702
+ "alias_added"
34703
+ ]
34704
+ },
34705
+ at: {
34706
+ type: [
34707
+ "string",
34708
+ "null"
34709
+ ],
34710
+ format: "date-time"
34711
+ },
34712
+ detail: {
34713
+ type: "object",
34714
+ additionalProperties: true
34715
+ }
33826
34716
  }
33827
34717
  }
33828
34718
  }
@@ -33836,6 +34726,14 @@ var openapi_default = {
33836
34726
  {
33837
34727
  type: "object",
33838
34728
  properties: {
34729
+ redirected_from: {
34730
+ type: "array",
34731
+ items: {
34732
+ type: "string",
34733
+ format: "uuid"
34734
+ },
34735
+ description: "Ids walked when `follow_redirects=true` (oldest first); empty otherwise."
34736
+ },
33839
34737
  recent_occurrences: {
33840
34738
  type: "array",
33841
34739
  maxItems: 20,
@@ -36182,35 +37080,76 @@ var openapi_default = {
36182
37080
  },
36183
37081
  DataPolicyField: {
36184
37082
  type: "object",
37083
+ description: "A declared output field of the policy's current version (fields hang off a version, not the policy).",
36185
37084
  properties: {
36186
37085
  id: {
36187
37086
  type: "string",
36188
37087
  format: "uuid"
36189
37088
  },
37089
+ version_id: {
37090
+ type: "string",
37091
+ format: "uuid"
37092
+ },
36190
37093
  field_key: {
36191
37094
  type: "string"
36192
37095
  },
37096
+ display_name: {
37097
+ type: [
37098
+ "string",
37099
+ "null"
37100
+ ]
37101
+ },
36193
37102
  field_type: {
36194
37103
  type: "string"
36195
37104
  },
37105
+ position: {
37106
+ type: "integer"
37107
+ },
37108
+ include: {
37109
+ type: "boolean"
37110
+ },
36196
37111
  source: {
36197
- type: "string"
37112
+ type: [
37113
+ "string",
37114
+ "null"
37115
+ ],
37116
+ enum: [
37117
+ "schema_field",
37118
+ null
37119
+ ]
36198
37120
  },
36199
- created_at: {
36200
- type: "string",
36201
- format: "date-time"
37121
+ source_schema_field_id: {
37122
+ type: [
37123
+ "string",
37124
+ "null"
37125
+ ],
37126
+ format: "uuid"
36202
37127
  }
36203
37128
  }
36204
37129
  },
36205
37130
  DataPolicyRule: {
36206
37131
  type: "object",
37132
+ description: "A transformation rule of the policy's current version, in execution order.",
36207
37133
  properties: {
36208
37134
  id: {
36209
37135
  type: "string",
36210
37136
  format: "uuid"
36211
37137
  },
37138
+ version_id: {
37139
+ type: "string",
37140
+ format: "uuid"
37141
+ },
36212
37142
  field_key: {
36213
- type: "string"
37143
+ type: [
37144
+ "string",
37145
+ "null"
37146
+ ]
37147
+ },
37148
+ input_field_keys: {
37149
+ type: "array",
37150
+ items: {
37151
+ type: "string"
37152
+ }
36214
37153
  },
36215
37154
  rule_type: {
36216
37155
  type: "string"
@@ -36221,9 +37160,14 @@ var openapi_default = {
36221
37160
  ordinal: {
36222
37161
  type: "integer"
36223
37162
  },
36224
- created_at: {
36225
- type: "string",
36226
- format: "date-time"
37163
+ error_behavior: {
37164
+ type: "string"
37165
+ },
37166
+ provenance_label: {
37167
+ type: [
37168
+ "string",
37169
+ "null"
37170
+ ]
36227
37171
  }
36228
37172
  }
36229
37173
  },
@@ -36614,7 +37558,8 @@ var API_NAV_SECTIONS = [
36614
37558
  { id: "fields", label: "Fields", children: [
36615
37559
  { id: "list-fields", label: "List Fields" },
36616
37560
  { id: "field-harmonization", label: "Harmonization" },
36617
- { id: "get-field", label: "Get Field" }
37561
+ { id: "get-field", label: "Get Field" },
37562
+ { id: "field-contract", label: "Registry Contract" }
36618
37563
  ] },
36619
37564
  { id: "registry", label: "Registry", children: [
36620
37565
  { id: "registry-query", label: "Query" },