@sanity/client 8.6.2 → 8.8.0

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.
@@ -44,7 +44,7 @@ export interface paths {
44
44
  post?: never
45
45
  /**
46
46
  * Delete a knowledge base
47
- * @description Removes the knowledge base and everything it owns: sources, imports, and revisions. Content documents in the bound dataset are deleted best-effort, and stored source files are reclaimed by a separate cleanup.
47
+ * @description Removes the knowledge base and everything it owns: sources, imports, revisions, the content documents in the bound dataset, and the stored source files. Returns 409 `buildInFlight` while a build, refresh, apply, or import is running, since that work would write files back after the delete; retry once it finishes.
48
48
  */
49
49
  delete: operations['deleteKnowledgeBase']
50
50
  options?: never
@@ -151,7 +151,7 @@ export interface paths {
151
151
  put?: never
152
152
  /**
153
153
  * Start a file-upload import
154
- * @description Creates a file-upload import and returns a single-use signed upload URL. PUT the file bytes to it, then call `POST .../imports/uploads/{importId}/complete` to start ingestion. The bytes never pass through this API. Supports the `Idempotency-Key` header.
154
+ * @description Creates a file-upload import and returns a single-use signed upload URL, valid for one hour. PUT the file bytes to it, then call `POST .../imports/uploads/{importId}/complete` to start ingestion. When `contentType` is set, the PUT must send the same `Content-Type` header; when omitted, the PUT may send any or none. An import that is not completed within 24 hours is deleted. The bytes never pass through this API. Supports the `Idempotency-Key` header.
155
155
  */
156
156
  post: operations['startUpload']
157
157
  delete?: never
@@ -235,7 +235,7 @@ export interface paths {
235
235
  put?: never
236
236
  /**
237
237
  * Author a human instruction
238
- * @description Creates a standing rule that every future build honors. Tie it to one or more sources with `scopeSourceIds`, or leave it null to apply knowledge-base-wide. Pass `rebuildPaths` to immediately rebuild those entries under the new rule; the response carries the rebuild job id, or null when the rebuild could not start (the rule is saved either way). Pass `verified` after a completed synchronous contradiction check to skip the background one; if the requested rebuild fails to start, the background check runs anyway so the contradicting pages get filed as issues.
238
+ * @description Creates a standing rule for how entries citing its sources are written. Tie it to one or more sources with `scopeSourceIds`; every rule is source-tied. Pass `rebuildPaths` to immediately rebuild those entries under the new rule; the response carries the rebuild job id, or null when the rebuild could not start (the rule is saved either way). Pass `verified` after a completed synchronous contradiction check to skip the background one; if the requested rebuild fails to start, the background check runs anyway so the contradicting pages get filed as issues.
239
239
  */
240
240
  post: operations['createInstruction']
241
241
  delete?: never
@@ -339,7 +339,7 @@ export interface paths {
339
339
  put?: never
340
340
  /**
341
341
  * Resolve a conflict issue
342
- * @description Settles a conflict with one of two choices: `keep_existing` or `accept_new` (rewrites the entry; the returned `jobId` tracks it). Only conflict issues are resolvable, and a dismissed issue must be reopened first. The decision becomes a standing instruction for every future build; `resolvedBy` records who decided.
342
+ * @description Settles a conflict by choosing a side: `resolution` is an index into `content.sides`. Index 0 of a per-entry conflict is the entry's own position, so choosing it keeps the body; any other side rewrites the entry (the returned `jobId` tracks it). Only conflict issues are resolvable, and a dismissed issue must be reopened first. The decision becomes a standing instruction for every future build; `resolvedBy` records who decided.
343
343
  */
344
344
  post: operations['resolveIssue']
345
345
  delete?: never
@@ -357,7 +357,7 @@ export interface paths {
357
357
  }
358
358
  /**
359
359
  * Get a job by id
360
- * @description Returns the status of a job, such as a build or an import. Job ids come from the endpoint that queued the work.
360
+ * @description Returns the status of a job, such as a build, an import, or a refresh. Job ids come from the endpoint that queued the work.
361
361
  */
362
362
  get: operations['getJob']
363
363
  put?: never
@@ -462,7 +462,7 @@ export interface paths {
462
462
  get?: never
463
463
  /**
464
464
  * Record a conversation
465
- * @description Upserts the conversation telemetry for one thread. `threadId` identifies the conversation within your organization — reuse means the same conversation. Messages replace the stored transcript wholesale; `metadata`, `sharing`, and model fields only overwrite when present. Last write per thread wins — retries are safe. `sharing` records your opt-in to share telemetry with Sanity: metadata-only metrics, or full transcripts.
465
+ * @description Upserts the conversation telemetry for one thread. `threadId` identifies the conversation within your organization — reuse means the same conversation. Messages replace the stored transcript wholesale; `metadata`, `sharing`, and model fields only overwrite when present. `tokenUsage` accumulates: each save reports one generation call and the stored value is the conversation total, added only when the save changes the transcript so retries never double-count. Report a failure as `error` on the message where it happened: a tool result for a failed tool call, an assistant message for a turn that failed instead of answering. The dashboard highlights conversations with a failed turn and counts failed tool calls separately, since agents often recover from one. Last write per thread wins — retries are safe. `sharing` records your opt-in to share telemetry with Sanity: metadata-only metrics, or full transcripts.
466
466
  */
467
467
  put: operations['saveConversation']
468
468
  post?: never
@@ -514,6 +514,13 @@ export interface components {
514
514
  * @enum {string|null}
515
515
  */
516
516
  toolType: 'call' | 'result' | null
517
+ /** @default null */
518
+ error: string | null
519
+ /**
520
+ * Format: date-time
521
+ * @default null
522
+ */
523
+ timestamp: string | null
517
524
  }[]
518
525
  modelProvider: string | null
519
526
  modelId: string | null
@@ -667,33 +674,50 @@ export interface components {
667
674
  /** @enum {number} */
668
675
  schemaVersion: 1
669
676
  /** @description IssueContent */
670
- content: {
671
- /** @enum {string} */
672
- kind:
673
- | 'conflict'
674
- | 'gap'
675
- | 'update_required'
676
- | 'add_entry'
677
- | 'remove_entry'
678
- | 'split_entry'
679
- | 'merge_entry'
680
- /** @enum {string} */
681
- severity: 'critical' | 'suggestion'
682
- scopePath: string
683
- issue: string
684
- suggestedFix: string
685
- citedSourceIds?: string[]
686
- claimKey?: string
687
- involvedScopes?: string[]
688
- currentClaim?: string
689
- alternativeClaim?: string
690
- /** @enum {string} */
691
- currentAuthority?: 'primary' | 'secondary' | 'community'
692
- /** @enum {string} */
693
- alternativeAuthority?: 'primary' | 'secondary' | 'community'
694
- /** @enum {string} */
695
- suggestedResolution?: 'keep_existing' | 'accept_new'
696
- }
677
+ content:
678
+ | {
679
+ /** @enum {string} */
680
+ severity: 'critical' | 'suggestion'
681
+ scopePath: string
682
+ issue: string
683
+ suggestedFix: string
684
+ /** @enum {string} */
685
+ kind: 'conflict'
686
+ claimKey: string
687
+ sides: {
688
+ claim: string
689
+ value?: string
690
+ entryPaths?: string[]
691
+ sourceIds?: string[]
692
+ /** @description ConflictSpan */
693
+ span?: {
694
+ sourceId: string
695
+ lineStart: number
696
+ lineEnd: number
697
+ }
698
+ /** @enum {string} */
699
+ authority?: 'primary' | 'secondary' | 'community'
700
+ }[]
701
+ suggested?: number
702
+ }
703
+ | {
704
+ /** @enum {string} */
705
+ severity: 'critical' | 'suggestion'
706
+ scopePath: string
707
+ issue: string
708
+ suggestedFix: string
709
+ /** @enum {string} */
710
+ kind:
711
+ | 'gap'
712
+ | 'update_required'
713
+ | 'add_entry'
714
+ | 'remove_entry'
715
+ | 'split_entry'
716
+ | 'merge_entry'
717
+ citedSourceIds?: string[]
718
+ claimKey?: string
719
+ involvedScopes?: string[]
720
+ }
697
721
  fingerprint: string
698
722
  revisionId: string | null
699
723
  /** @enum {string} */
@@ -718,33 +742,50 @@ export interface components {
718
742
  /** @enum {number} */
719
743
  schemaVersion: 1
720
744
  /** @description IssueContent */
721
- content: {
722
- /** @enum {string} */
723
- kind:
724
- | 'conflict'
725
- | 'gap'
726
- | 'update_required'
727
- | 'add_entry'
728
- | 'remove_entry'
729
- | 'split_entry'
730
- | 'merge_entry'
731
- /** @enum {string} */
732
- severity: 'critical' | 'suggestion'
733
- scopePath: string
734
- issue: string
735
- suggestedFix: string
736
- citedSourceIds?: string[]
737
- claimKey?: string
738
- involvedScopes?: string[]
739
- currentClaim?: string
740
- alternativeClaim?: string
741
- /** @enum {string} */
742
- currentAuthority?: 'primary' | 'secondary' | 'community'
743
- /** @enum {string} */
744
- alternativeAuthority?: 'primary' | 'secondary' | 'community'
745
- /** @enum {string} */
746
- suggestedResolution?: 'keep_existing' | 'accept_new'
747
- }
745
+ content:
746
+ | {
747
+ /** @enum {string} */
748
+ severity: 'critical' | 'suggestion'
749
+ scopePath: string
750
+ issue: string
751
+ suggestedFix: string
752
+ /** @enum {string} */
753
+ kind: 'conflict'
754
+ claimKey: string
755
+ sides: {
756
+ claim: string
757
+ value?: string
758
+ entryPaths?: string[]
759
+ sourceIds?: string[]
760
+ /** @description ConflictSpan */
761
+ span?: {
762
+ sourceId: string
763
+ lineStart: number
764
+ lineEnd: number
765
+ }
766
+ /** @enum {string} */
767
+ authority?: 'primary' | 'secondary' | 'community'
768
+ }[]
769
+ suggested?: number
770
+ }
771
+ | {
772
+ /** @enum {string} */
773
+ severity: 'critical' | 'suggestion'
774
+ scopePath: string
775
+ issue: string
776
+ suggestedFix: string
777
+ /** @enum {string} */
778
+ kind:
779
+ | 'gap'
780
+ | 'update_required'
781
+ | 'add_entry'
782
+ | 'remove_entry'
783
+ | 'split_entry'
784
+ | 'merge_entry'
785
+ citedSourceIds?: string[]
786
+ claimKey?: string
787
+ involvedScopes?: string[]
788
+ }
748
789
  fingerprint: string
749
790
  revisionId: string | null
750
791
  /** @enum {string} */
@@ -756,8 +797,7 @@ export interface components {
756
797
  /** @enum {string} */
757
798
  kind: 'user' | 'robot'
758
799
  } | null
759
- /** @enum {string|null} */
760
- resolution: 'keep_existing' | 'accept_new' | null
800
+ resolution: number | null
761
801
  }
762
802
  | {
763
803
  _id: string
@@ -772,33 +812,50 @@ export interface components {
772
812
  /** @enum {number} */
773
813
  schemaVersion: 1
774
814
  /** @description IssueContent */
775
- content: {
776
- /** @enum {string} */
777
- kind:
778
- | 'conflict'
779
- | 'gap'
780
- | 'update_required'
781
- | 'add_entry'
782
- | 'remove_entry'
783
- | 'split_entry'
784
- | 'merge_entry'
785
- /** @enum {string} */
786
- severity: 'critical' | 'suggestion'
787
- scopePath: string
788
- issue: string
789
- suggestedFix: string
790
- citedSourceIds?: string[]
791
- claimKey?: string
792
- involvedScopes?: string[]
793
- currentClaim?: string
794
- alternativeClaim?: string
795
- /** @enum {string} */
796
- currentAuthority?: 'primary' | 'secondary' | 'community'
797
- /** @enum {string} */
798
- alternativeAuthority?: 'primary' | 'secondary' | 'community'
799
- /** @enum {string} */
800
- suggestedResolution?: 'keep_existing' | 'accept_new'
801
- }
815
+ content:
816
+ | {
817
+ /** @enum {string} */
818
+ severity: 'critical' | 'suggestion'
819
+ scopePath: string
820
+ issue: string
821
+ suggestedFix: string
822
+ /** @enum {string} */
823
+ kind: 'conflict'
824
+ claimKey: string
825
+ sides: {
826
+ claim: string
827
+ value?: string
828
+ entryPaths?: string[]
829
+ sourceIds?: string[]
830
+ /** @description ConflictSpan */
831
+ span?: {
832
+ sourceId: string
833
+ lineStart: number
834
+ lineEnd: number
835
+ }
836
+ /** @enum {string} */
837
+ authority?: 'primary' | 'secondary' | 'community'
838
+ }[]
839
+ suggested?: number
840
+ }
841
+ | {
842
+ /** @enum {string} */
843
+ severity: 'critical' | 'suggestion'
844
+ scopePath: string
845
+ issue: string
846
+ suggestedFix: string
847
+ /** @enum {string} */
848
+ kind:
849
+ | 'gap'
850
+ | 'update_required'
851
+ | 'add_entry'
852
+ | 'remove_entry'
853
+ | 'split_entry'
854
+ | 'merge_entry'
855
+ citedSourceIds?: string[]
856
+ claimKey?: string
857
+ involvedScopes?: string[]
858
+ }
802
859
  fingerprint: string
803
860
  revisionId: string | null
804
861
  /** @enum {string} */
@@ -932,6 +989,11 @@ export interface operations {
932
989
  used: number
933
990
  limit: number
934
991
  } | null
992
+ /** @description PlanRestriction */
993
+ buildRestriction: {
994
+ code: string
995
+ message: string
996
+ } | null
935
997
  refreshEnabled: boolean
936
998
  /** @enum {string} */
937
999
  refreshFrequency: 'weekly' | 'monthly'
@@ -1038,6 +1100,11 @@ export interface operations {
1038
1100
  used: number
1039
1101
  limit: number
1040
1102
  } | null
1103
+ /** @description PlanRestriction */
1104
+ buildRestriction: {
1105
+ code: string
1106
+ message: string
1107
+ } | null
1041
1108
  refreshEnabled: boolean
1042
1109
  /** @enum {string} */
1043
1110
  refreshFrequency: 'weekly' | 'monthly'
@@ -1134,6 +1201,11 @@ export interface operations {
1134
1201
  used: number
1135
1202
  limit: number
1136
1203
  } | null
1204
+ /** @description PlanRestriction */
1205
+ buildRestriction: {
1206
+ code: string
1207
+ message: string
1208
+ } | null
1137
1209
  refreshEnabled: boolean
1138
1210
  /** @enum {string} */
1139
1211
  refreshFrequency: 'weekly' | 'monthly'
@@ -1262,6 +1334,11 @@ export interface operations {
1262
1334
  used: number
1263
1335
  limit: number
1264
1336
  } | null
1337
+ /** @description PlanRestriction */
1338
+ buildRestriction: {
1339
+ code: string
1340
+ message: string
1341
+ } | null
1265
1342
  refreshEnabled: boolean
1266
1343
  /** @enum {string} */
1267
1344
  refreshFrequency: 'weekly' | 'monthly'
@@ -1685,7 +1762,7 @@ export interface operations {
1685
1762
  content: {
1686
1763
  'application/json': {
1687
1764
  statement: string
1688
- scopeSourceIds?: string[] | null
1765
+ scopeSourceIds: string[]
1689
1766
  rebuildPaths?: string[]
1690
1767
  verified?: boolean
1691
1768
  }
@@ -1708,7 +1785,7 @@ export interface operations {
1708
1785
  /** @enum {string} */
1709
1786
  status: 'active' | 'archived'
1710
1787
  statement: string
1711
- scopeSourceIds: string[] | null
1788
+ scopeSourceIds: string[]
1712
1789
  /** Format: date-time */
1713
1790
  archivedAt: string | null
1714
1791
  archivedReason: string | null
@@ -1772,7 +1849,7 @@ export interface operations {
1772
1849
  content: {
1773
1850
  'application/json': {
1774
1851
  statement?: string
1775
- scopeSourceIds?: string[] | null
1852
+ scopeSourceIds?: string[]
1776
1853
  }
1777
1854
  }
1778
1855
  }
@@ -1791,7 +1868,7 @@ export interface operations {
1791
1868
  /** @enum {string} */
1792
1869
  status: 'active' | 'archived'
1793
1870
  statement: string
1794
- scopeSourceIds: string[] | null
1871
+ scopeSourceIds: string[]
1795
1872
  /** Format: date-time */
1796
1873
  archivedAt: string | null
1797
1874
  archivedReason: string | null
@@ -1867,37 +1944,53 @@ export interface operations {
1867
1944
  id: string
1868
1945
  knowledgeBaseId: string
1869
1946
  /** @description IssueContent */
1870
- content: {
1871
- /** @enum {string} */
1872
- kind:
1873
- | 'conflict'
1874
- | 'gap'
1875
- | 'update_required'
1876
- | 'add_entry'
1877
- | 'remove_entry'
1878
- | 'split_entry'
1879
- | 'merge_entry'
1880
- /** @enum {string} */
1881
- severity: 'critical' | 'suggestion'
1882
- scopePath: string
1883
- issue: string
1884
- suggestedFix: string
1885
- citedSourceIds?: string[]
1886
- claimKey?: string
1887
- involvedScopes?: string[]
1888
- currentClaim?: string
1889
- alternativeClaim?: string
1890
- /** @enum {string} */
1891
- currentAuthority?: 'primary' | 'secondary' | 'community'
1892
- /** @enum {string} */
1893
- alternativeAuthority?: 'primary' | 'secondary' | 'community'
1894
- /** @enum {string} */
1895
- suggestedResolution?: 'keep_existing' | 'accept_new'
1896
- }
1947
+ content:
1948
+ | {
1949
+ /** @enum {string} */
1950
+ severity: 'critical' | 'suggestion'
1951
+ scopePath: string
1952
+ issue: string
1953
+ suggestedFix: string
1954
+ /** @enum {string} */
1955
+ kind: 'conflict'
1956
+ claimKey: string
1957
+ sides: {
1958
+ claim: string
1959
+ value?: string
1960
+ entryPaths?: string[]
1961
+ sourceIds?: string[]
1962
+ /** @description ConflictSpan */
1963
+ span?: {
1964
+ sourceId: string
1965
+ lineStart: number
1966
+ lineEnd: number
1967
+ }
1968
+ /** @enum {string} */
1969
+ authority?: 'primary' | 'secondary' | 'community'
1970
+ }[]
1971
+ suggested?: number
1972
+ }
1973
+ | {
1974
+ /** @enum {string} */
1975
+ severity: 'critical' | 'suggestion'
1976
+ scopePath: string
1977
+ issue: string
1978
+ suggestedFix: string
1979
+ /** @enum {string} */
1980
+ kind:
1981
+ | 'gap'
1982
+ | 'update_required'
1983
+ | 'add_entry'
1984
+ | 'remove_entry'
1985
+ | 'split_entry'
1986
+ | 'merge_entry'
1987
+ citedSourceIds?: string[]
1988
+ claimKey?: string
1989
+ involvedScopes?: string[]
1990
+ }
1897
1991
  /** @enum {string} */
1898
1992
  status: 'open' | 'accepted' | 'rejected'
1899
- /** @enum {string|null} */
1900
- resolution: 'keep_existing' | 'accept_new' | null
1993
+ resolution: number | null
1901
1994
  /** @description IssueResolvedBy */
1902
1995
  resolvedBy: {
1903
1996
  id: string
@@ -1935,37 +2028,53 @@ export interface operations {
1935
2028
  id: string
1936
2029
  knowledgeBaseId: string
1937
2030
  /** @description IssueContent */
1938
- content: {
1939
- /** @enum {string} */
1940
- kind:
1941
- | 'conflict'
1942
- | 'gap'
1943
- | 'update_required'
1944
- | 'add_entry'
1945
- | 'remove_entry'
1946
- | 'split_entry'
1947
- | 'merge_entry'
1948
- /** @enum {string} */
1949
- severity: 'critical' | 'suggestion'
1950
- scopePath: string
1951
- issue: string
1952
- suggestedFix: string
1953
- citedSourceIds?: string[]
1954
- claimKey?: string
1955
- involvedScopes?: string[]
1956
- currentClaim?: string
1957
- alternativeClaim?: string
1958
- /** @enum {string} */
1959
- currentAuthority?: 'primary' | 'secondary' | 'community'
1960
- /** @enum {string} */
1961
- alternativeAuthority?: 'primary' | 'secondary' | 'community'
1962
- /** @enum {string} */
1963
- suggestedResolution?: 'keep_existing' | 'accept_new'
1964
- }
2031
+ content:
2032
+ | {
2033
+ /** @enum {string} */
2034
+ severity: 'critical' | 'suggestion'
2035
+ scopePath: string
2036
+ issue: string
2037
+ suggestedFix: string
2038
+ /** @enum {string} */
2039
+ kind: 'conflict'
2040
+ claimKey: string
2041
+ sides: {
2042
+ claim: string
2043
+ value?: string
2044
+ entryPaths?: string[]
2045
+ sourceIds?: string[]
2046
+ /** @description ConflictSpan */
2047
+ span?: {
2048
+ sourceId: string
2049
+ lineStart: number
2050
+ lineEnd: number
2051
+ }
2052
+ /** @enum {string} */
2053
+ authority?: 'primary' | 'secondary' | 'community'
2054
+ }[]
2055
+ suggested?: number
2056
+ }
2057
+ | {
2058
+ /** @enum {string} */
2059
+ severity: 'critical' | 'suggestion'
2060
+ scopePath: string
2061
+ issue: string
2062
+ suggestedFix: string
2063
+ /** @enum {string} */
2064
+ kind:
2065
+ | 'gap'
2066
+ | 'update_required'
2067
+ | 'add_entry'
2068
+ | 'remove_entry'
2069
+ | 'split_entry'
2070
+ | 'merge_entry'
2071
+ citedSourceIds?: string[]
2072
+ claimKey?: string
2073
+ involvedScopes?: string[]
2074
+ }
1965
2075
  /** @enum {string} */
1966
2076
  status: 'open' | 'accepted' | 'rejected'
1967
- /** @enum {string|null} */
1968
- resolution: 'keep_existing' | 'accept_new' | null
2077
+ resolution: number | null
1969
2078
  /** @description IssueResolvedBy */
1970
2079
  resolvedBy: {
1971
2080
  id: string
@@ -1994,8 +2103,7 @@ export interface operations {
1994
2103
  requestBody: {
1995
2104
  content: {
1996
2105
  'application/json': {
1997
- /** @enum {string} */
1998
- resolution: 'keep_existing' | 'accept_new'
2106
+ resolution: number
1999
2107
  }
2000
2108
  }
2001
2109
  }
@@ -2012,37 +2120,53 @@ export interface operations {
2012
2120
  id: string
2013
2121
  knowledgeBaseId: string
2014
2122
  /** @description IssueContent */
2015
- content: {
2016
- /** @enum {string} */
2017
- kind:
2018
- | 'conflict'
2019
- | 'gap'
2020
- | 'update_required'
2021
- | 'add_entry'
2022
- | 'remove_entry'
2023
- | 'split_entry'
2024
- | 'merge_entry'
2025
- /** @enum {string} */
2026
- severity: 'critical' | 'suggestion'
2027
- scopePath: string
2028
- issue: string
2029
- suggestedFix: string
2030
- citedSourceIds?: string[]
2031
- claimKey?: string
2032
- involvedScopes?: string[]
2033
- currentClaim?: string
2034
- alternativeClaim?: string
2035
- /** @enum {string} */
2036
- currentAuthority?: 'primary' | 'secondary' | 'community'
2037
- /** @enum {string} */
2038
- alternativeAuthority?: 'primary' | 'secondary' | 'community'
2039
- /** @enum {string} */
2040
- suggestedResolution?: 'keep_existing' | 'accept_new'
2041
- }
2123
+ content:
2124
+ | {
2125
+ /** @enum {string} */
2126
+ severity: 'critical' | 'suggestion'
2127
+ scopePath: string
2128
+ issue: string
2129
+ suggestedFix: string
2130
+ /** @enum {string} */
2131
+ kind: 'conflict'
2132
+ claimKey: string
2133
+ sides: {
2134
+ claim: string
2135
+ value?: string
2136
+ entryPaths?: string[]
2137
+ sourceIds?: string[]
2138
+ /** @description ConflictSpan */
2139
+ span?: {
2140
+ sourceId: string
2141
+ lineStart: number
2142
+ lineEnd: number
2143
+ }
2144
+ /** @enum {string} */
2145
+ authority?: 'primary' | 'secondary' | 'community'
2146
+ }[]
2147
+ suggested?: number
2148
+ }
2149
+ | {
2150
+ /** @enum {string} */
2151
+ severity: 'critical' | 'suggestion'
2152
+ scopePath: string
2153
+ issue: string
2154
+ suggestedFix: string
2155
+ /** @enum {string} */
2156
+ kind:
2157
+ | 'gap'
2158
+ | 'update_required'
2159
+ | 'add_entry'
2160
+ | 'remove_entry'
2161
+ | 'split_entry'
2162
+ | 'merge_entry'
2163
+ citedSourceIds?: string[]
2164
+ claimKey?: string
2165
+ involvedScopes?: string[]
2166
+ }
2042
2167
  /** @enum {string} */
2043
2168
  status: 'open' | 'accepted' | 'rejected'
2044
- /** @enum {string|null} */
2045
- resolution: 'keep_existing' | 'accept_new' | null
2169
+ resolution: number | null
2046
2170
  /** @description IssueResolvedBy */
2047
2171
  resolvedBy: {
2048
2172
  id: string
@@ -2156,6 +2280,7 @@ export interface operations {
2156
2280
  tldr: string | null
2157
2281
  topics: string[] | null
2158
2282
  canonicalUrl: string | null
2283
+ externalId: string | null
2159
2284
  /** Format: date-time */
2160
2285
  fetchedAt: string | null
2161
2286
  /** Format: date-time */
@@ -2201,6 +2326,7 @@ export interface operations {
2201
2326
  tldr: string | null
2202
2327
  topics: string[] | null
2203
2328
  canonicalUrl: string | null
2329
+ externalId: string | null
2204
2330
  /** Format: date-time */
2205
2331
  fetchedAt: string | null
2206
2332
  /** Format: date-time */
@@ -2299,6 +2425,8 @@ export interface operations {
2299
2425
  * @enum {string|null}
2300
2426
  */
2301
2427
  toolType?: 'call' | 'result' | null
2428
+ /** @default null */
2429
+ error?: string | null
2302
2430
  }[]
2303
2431
  modelProvider?: string
2304
2432
  modelId?: string
@@ -2351,6 +2479,13 @@ export interface operations {
2351
2479
  * @enum {string|null}
2352
2480
  */
2353
2481
  toolType: 'call' | 'result' | null
2482
+ /** @default null */
2483
+ error: string | null
2484
+ /**
2485
+ * Format: date-time
2486
+ * @default null
2487
+ */
2488
+ timestamp: string | null
2354
2489
  }[]
2355
2490
  modelProvider: string | null
2356
2491
  modelId: string | null
@@ -2438,6 +2573,13 @@ export interface operations {
2438
2573
  * @enum {string|null}
2439
2574
  */
2440
2575
  toolType: 'call' | 'result' | null
2576
+ /** @default null */
2577
+ error: string | null
2578
+ /**
2579
+ * Format: date-time
2580
+ * @default null
2581
+ */
2582
+ timestamp: string | null
2441
2583
  }[]
2442
2584
  modelProvider: string | null
2443
2585
  modelId: string | null