@native-marketing/sdk 0.3.5 → 0.3.6

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/index.js CHANGED
@@ -5922,7 +5922,8 @@ var knowledgeDiscoveryDescriptionSchema = z79.object({
5922
5922
  checkedAt: z79.string().datetime()
5923
5923
  }).strict();
5924
5924
  var knowledgeAdoptionCommandSchema = knowledgeDiscoveryReadQuerySchema.required().extend({
5925
- requestId: z79.string().min(1).max(128)
5925
+ requestId: z79.string().min(1).max(128),
5926
+ ref: knowledgeRemoteRefSchema.max(2048)
5926
5927
  }).strict();
5927
5928
  var knowledgeAdoptionResultSchema = z79.object({ result: sourceRefSchema, replayed: z79.boolean() }).strict();
5928
5929
  var knowledgeAdoptionReceiptQuerySchema = z79.object({ requestId: z79.string().min(1).max(128) }).strict();
@@ -5938,6 +5939,15 @@ var adoptedKnowledgeResourceSchema = z79.object({
5938
5939
  ref: knowledgeRemoteRefSchema,
5939
5940
  identityHash: z79.string().regex(/^sha256:[a-f0-9]{64}$/)
5940
5941
  }).strict();
5942
+ var knowledgeResourceDescriptorSchema = knowledgeDiscoveryItemSchema.pick({
5943
+ ref: true,
5944
+ identityHash: true,
5945
+ ownerTenantId: true,
5946
+ resourceType: true,
5947
+ kind: true,
5948
+ classification: true,
5949
+ title: true
5950
+ }).extend({ schemaVersion: z79.literal(1) }).strict();
5941
5951
 
5942
5952
  // packages/contracts/src/material-verification.ts
5943
5953
  import { z as z80 } from "zod";
@@ -6924,7 +6934,21 @@ var surveyRejections = [
6924
6934
  "PERSONAL_SURVEY_DRAFT_TRANSITION_IMMUTABLE"
6925
6935
  ];
6926
6936
  function isKnownCapabilityRejection(code2, name) {
6927
- return capabilityRejectedErrorCodes.includes(code2) || name === "cf_adopt_discovered_knowledge" && [
6937
+ return capabilityRejectedErrorCodes.includes(code2) || name === "cf_repair_knowledge_reference" && [
6938
+ "KNOWLEDGE_REFERENCE_REPAIR_CONFLICT",
6939
+ "KNOWLEDGE_REFERENCE_REPAIR_NOT_SUPPORTED",
6940
+ "KNOWLEDGE_REFERENCE_REPAIR_IDENTITY_MISMATCH",
6941
+ "KNOWLEDGE_DISCOVERY_IDENTITY_CHANGED",
6942
+ "KNOWLEDGE_DISCOVERY_FORBIDDEN",
6943
+ "KNOWLEDGE_DISCOVERY_UNAVAILABLE",
6944
+ "KNOWLEDGE_CATALOG_UNAVAILABLE",
6945
+ "KNOWLEDGE_TENANT_IDENTITY_CHANGED",
6946
+ "KNOWLEDGE_CATALOG_SCOPE_NOT_CONFIGURED",
6947
+ "KNOWLEDGE_PROVIDER_AUTH_REQUIRED",
6948
+ "KNOWLEDGE_ARTIFACT_ACCESS_DENIED",
6949
+ "KNOWLEDGE_ARTIFACT_TOO_LARGE",
6950
+ "KNOWLEDGE_ARTIFACT_DOWNLOAD_BUSY"
6951
+ ].includes(code2) || name === "cf_adopt_discovered_knowledge" && [
6928
6952
  "KNOWLEDGE_DISCOVERY_IDENTITY_CHANGED",
6929
6953
  "KNOWLEDGE_DISCOVERY_FORBIDDEN",
6930
6954
  "KNOWLEDGE_DISCOVERY_TEXT_TOO_LARGE",
@@ -7261,6 +7285,26 @@ var eventExchangePageSchema = z101.object({
7261
7285
  nextAfter: z101.string().max(256).nullable()
7262
7286
  }).strict();
7263
7287
 
7288
+ // packages/contracts/src/knowledge-reference-repair.ts
7289
+ import { z as z102 } from "zod";
7290
+ var knowledgeReferenceRepairQuerySchema = z102.object({
7291
+ sourceRef: stableRefSchema.refine((value) => value.startsWith("cf://source/"))
7292
+ }).strict();
7293
+ var knowledgeReferenceRepairPreviewSchema = z102.object({
7294
+ sourceRef: knowledgeReferenceRepairQuerySchema.shape.sourceRef,
7295
+ remoteRef: z102.string().min(1).max(2048),
7296
+ basisHash: z102.string().regex(/^sha256:[a-f0-9]{64}$/),
7297
+ sourceTenantId: z102.string().min(1).max(256),
7298
+ item: knowledgeDiscoveryItemSchema,
7299
+ byteLength: z102.number().int().nonnegative().safe(),
7300
+ verified: z102.literal(true)
7301
+ }).strict();
7302
+ var knowledgeReferenceRepairCommandSchema = knowledgeReferenceRepairQuerySchema.extend({
7303
+ requestId: z102.string().min(1).max(128),
7304
+ expectedBasisHash: knowledgeReferenceRepairPreviewSchema.shape.basisHash
7305
+ }).strict();
7306
+ var knowledgeReferenceRepairReceiptQuerySchema = knowledgeAdoptionReceiptQuerySchema;
7307
+
7264
7308
  // packages/contracts/src/agent/capability-receipts.ts
7265
7309
  var rule = (capability, schema2, operation, keys = [], field) => ({ capability, schema: schema2, operation, keys, field });
7266
7310
  var foundation = (operation, field) => rule(
@@ -7282,6 +7326,10 @@ var execution = (family, operation) => ({
7282
7326
  });
7283
7327
  var learning = (op) => rule("cf_get_learning_command_receipt", learningReceiptSchema, op);
7284
7328
  var rules = {
7329
+ cf_repair_knowledge_reference: rule(
7330
+ "cf_get_knowledge_reference_repair_receipt",
7331
+ knowledgeReferenceRepairReceiptQuerySchema
7332
+ ),
7285
7333
  cf_configure_event_exchange: rule(
7286
7334
  "cf_get_event_exchange_receipt",
7287
7335
  eventExchangeReceiptQuerySchema
@@ -7505,7 +7553,7 @@ function capabilityReceiptRead(name, input) {
7505
7553
  }
7506
7554
 
7507
7555
  // packages/contracts/src/agent/capability-status.ts
7508
- import { z as z102 } from "zod";
7556
+ import { z as z103 } from "zod";
7509
7557
  var verification = {
7510
7558
  capability: "cf_material_verification_status",
7511
7559
  schema: materialVerificationIdSchema,
@@ -7523,7 +7571,7 @@ var rules2 = {
7523
7571
  },
7524
7572
  cf_tenant_material_scan_advance: {
7525
7573
  capability: "cf_tenant_material_scan_status",
7526
- schema: z102.object({}).strict()
7574
+ schema: z103.object({}).strict()
7527
7575
  },
7528
7576
  cf_sync_materials: {
7529
7577
  capability: "cf_reconcile_materials",
@@ -9254,6 +9302,9 @@ var commandTools = {
9254
9302
  "knowledge discover": "cf_discover_knowledge",
9255
9303
  "knowledge adopt": "cf_adopt_discovered_knowledge",
9256
9304
  "knowledge adoption-receipt": "cf_get_knowledge_adoption_receipt",
9305
+ "knowledge repair-preview": "cf_preview_knowledge_reference_repair",
9306
+ "knowledge repair-reference": "cf_repair_knowledge_reference",
9307
+ "knowledge repair-receipt": "cf_get_knowledge_reference_repair_receipt",
9257
9308
  "knowledge read-discovered": "cf_read_discovered_knowledge",
9258
9309
  "knowledge describe-discovered": "cf_describe_discovered_knowledge",
9259
9310
  "knowledge materials": "cf_list_materials",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@native-marketing/sdk",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "engines": {
package/release.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
- "sourceCommit": "667f36fbe201292e233c4be3cc8ba84483867fd9",
2
+ "sourceCommit": "40463e01d4112b05570b24ec7da538ed5f489d0d",
3
3
  "workingTreeDirty": false,
4
- "version": "0.3.5",
5
- "openapiTypesSha256": "4cf54da717c27d1df685ee4756f78c5094e90fe72c3d3047e7b901b7e8b6c1b8",
4
+ "version": "0.3.6",
5
+ "openapiTypesSha256": "e79e0abf034cae01174e67464aea55f16d40895c86199eff93897ec892ea82f4",
6
6
  "localBuild": true
7
7
  }
@@ -507,6 +507,8 @@ export declare const humanKnowledgeItemDetailSchema: z.ZodObject<{
507
507
  contentAvailable: z.ZodBoolean;
508
508
  projectBound: z.ZodNullable<z.ZodBoolean>;
509
509
  selected: z.ZodBoolean;
510
+ referenceRepairRequired: z.ZodOptional<z.ZodBoolean>;
511
+ resourceLinked: z.ZodOptional<z.ZodBoolean>;
510
512
  originalUrl: z.ZodNullable<z.ZodString>;
511
513
  evidenceRefs: z.ZodArray<z.ZodString>;
512
514
  relatedRefs: z.ZodArray<z.ZodString>;
@@ -107,6 +107,7 @@ export * from './business-command-receipt.js';
107
107
  export * from './operating-command-receipts.js';
108
108
  export * from './feedback-facts.js';
109
109
  export * from './knowledge-discovery.js';
110
+ export * from './knowledge-reference-repair.js';
110
111
  export * from './event-exchange.js';
111
112
  export * from './event-exchange-browser.js';
112
113
  export { EVENTSDK_WORKER_OBSERVATION_MAX_AGE_MS, eventDeliveryPageQuerySchema, eventDeliveryPageSchema, eventDeliveryRecoveryResultSchema, eventDeliveryRecoveryReceiptSchema, } from './event-delivery.js';
@@ -133,9 +133,9 @@ export declare const knowledgeDiscoveryDescriptionSchema: z.ZodObject<{
133
133
  }, z.core.$strict>;
134
134
  export type KnowledgeDiscoveryDescription = z.infer<typeof knowledgeDiscoveryDescriptionSchema>;
135
135
  export declare const knowledgeAdoptionCommandSchema: z.ZodObject<{
136
- ref: z.ZodNonOptional<z.ZodString>;
137
136
  expectedContentHash: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
138
137
  requestId: z.ZodString;
138
+ ref: z.ZodString;
139
139
  }, z.core.$strict>;
140
140
  export declare const knowledgeAdoptionResultSchema: z.ZodObject<{
141
141
  result: z.ZodObject<{
@@ -213,3 +213,13 @@ export declare const adoptedKnowledgeResourceSchema: z.ZodObject<{
213
213
  identityHash: z.ZodString;
214
214
  }, z.core.$strict>;
215
215
  export type KnowledgeAdoptionCommand = z.infer<typeof knowledgeAdoptionCommandSchema>;
216
+ export declare const knowledgeResourceDescriptorSchema: z.ZodObject<{
217
+ ref: z.ZodString;
218
+ ownerTenantId: z.ZodString;
219
+ resourceType: z.ZodString;
220
+ identityHash: z.ZodString;
221
+ kind: z.ZodString;
222
+ classification: z.ZodString;
223
+ title: z.ZodString;
224
+ schemaVersion: z.ZodLiteral<1>;
225
+ }, z.core.$strict>;
@@ -0,0 +1,108 @@
1
+ import { z } from 'zod';
2
+ export declare const knowledgeReferenceRepairQuerySchema: z.ZodObject<{
3
+ sourceRef: z.ZodString;
4
+ }, z.core.$strict>;
5
+ export declare const knowledgeReferenceRepairPreviewSchema: z.ZodObject<{
6
+ sourceRef: z.ZodString;
7
+ remoteRef: z.ZodString;
8
+ basisHash: z.ZodString;
9
+ sourceTenantId: z.ZodString;
10
+ item: z.ZodObject<{
11
+ ref: z.ZodString;
12
+ ownerTenantId: z.ZodString;
13
+ resourceType: z.ZodString;
14
+ originType: z.ZodEnum<{
15
+ LEGACY_PROJECT: "LEGACY_PROJECT";
16
+ TENANT_AUTHOR: "TENANT_AUTHOR";
17
+ TENANT_SOURCE: "TENANT_SOURCE";
18
+ }>;
19
+ identityHash: z.ZodString;
20
+ identityKind: z.ZodEnum<{
21
+ CAS_BYTES: "CAS_BYTES";
22
+ REFERENCE_RECORD_DIGEST: "REFERENCE_RECORD_DIGEST";
23
+ }>;
24
+ kind: z.ZodString;
25
+ classification: z.ZodString;
26
+ mediaType: z.ZodString;
27
+ title: z.ZodString;
28
+ summary: z.ZodString;
29
+ readable: z.ZodBoolean;
30
+ reasonCodes: z.ZodArray<z.ZodString>;
31
+ }, z.core.$strip>;
32
+ byteLength: z.ZodNumber;
33
+ verified: z.ZodLiteral<true>;
34
+ }, z.core.$strict>;
35
+ export declare const knowledgeReferenceRepairCommandSchema: z.ZodObject<{
36
+ sourceRef: z.ZodString;
37
+ requestId: z.ZodString;
38
+ expectedBasisHash: z.ZodString;
39
+ }, z.core.$strict>;
40
+ export declare const knowledgeReferenceRepairResultSchema: z.ZodObject<{
41
+ result: z.ZodObject<{
42
+ id: z.ZodString;
43
+ ref: z.ZodString;
44
+ tenantId: z.ZodString;
45
+ sourceType: z.ZodEnum<{
46
+ CASE_EVIDENCE: "CASE_EVIDENCE";
47
+ EXTERNAL_REFERENCE: "EXTERNAL_REFERENCE";
48
+ HOT_TOPIC: "HOT_TOPIC";
49
+ HUMAN_IDEA: "HUMAN_IDEA";
50
+ INSIGHT: "INSIGHT";
51
+ KNOWLEDGE: "KNOWLEDGE";
52
+ NEWS: "NEWS";
53
+ TREND: "TREND";
54
+ WORLD_FACT: "WORLD_FACT";
55
+ }>;
56
+ sourceRef: z.ZodString;
57
+ sourceAuthority: z.ZodString;
58
+ observedAt: z.ZodNullable<z.ZodString>;
59
+ validUntil: z.ZodNullable<z.ZodString>;
60
+ evidenceRef: z.ZodNullable<z.ZodString>;
61
+ snapshotHash: z.ZodNullable<z.ZodString>;
62
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
63
+ createdAt: z.ZodString;
64
+ }, z.core.$strip>;
65
+ replayed: z.ZodBoolean;
66
+ }, z.core.$strict>;
67
+ export declare const knowledgeReferenceRepairReceiptQuerySchema: z.ZodObject<{
68
+ requestId: z.ZodString;
69
+ }, z.core.$strict>;
70
+ export declare const knowledgeReferenceRepairReceiptSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
71
+ state: z.ZodLiteral<"FOUND">;
72
+ result: z.ZodObject<{
73
+ id: z.ZodString;
74
+ ref: z.ZodString;
75
+ tenantId: z.ZodString;
76
+ sourceType: z.ZodEnum<{
77
+ CASE_EVIDENCE: "CASE_EVIDENCE";
78
+ EXTERNAL_REFERENCE: "EXTERNAL_REFERENCE";
79
+ HOT_TOPIC: "HOT_TOPIC";
80
+ HUMAN_IDEA: "HUMAN_IDEA";
81
+ INSIGHT: "INSIGHT";
82
+ KNOWLEDGE: "KNOWLEDGE";
83
+ NEWS: "NEWS";
84
+ TREND: "TREND";
85
+ WORLD_FACT: "WORLD_FACT";
86
+ }>;
87
+ sourceRef: z.ZodString;
88
+ sourceAuthority: z.ZodString;
89
+ observedAt: z.ZodNullable<z.ZodString>;
90
+ validUntil: z.ZodNullable<z.ZodString>;
91
+ evidenceRef: z.ZodNullable<z.ZodString>;
92
+ snapshotHash: z.ZodNullable<z.ZodString>;
93
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
94
+ createdAt: z.ZodString;
95
+ }, z.core.$strip>;
96
+ }, z.core.$strict>, z.ZodObject<{
97
+ state: z.ZodLiteral<"NOT_FOUND">;
98
+ result: z.ZodNull;
99
+ }, z.core.$strict>, z.ZodObject<{
100
+ state: z.ZodLiteral<"REJECTED">;
101
+ result: z.ZodNull;
102
+ error: z.ZodObject<{
103
+ code: z.ZodString;
104
+ outcome: z.ZodLiteral<"REJECTED">;
105
+ recovery: z.ZodString;
106
+ }, z.core.$strict>;
107
+ }, z.core.$strict>], "state">;
108
+ export type KnowledgeReferenceRepairPreview = z.infer<typeof knowledgeReferenceRepairPreviewSchema>;
@@ -13326,6 +13326,8 @@ export interface paths {
13326
13326
  contentAvailable: boolean;
13327
13327
  projectBound: boolean | null;
13328
13328
  selected: boolean;
13329
+ referenceRepairRequired?: boolean;
13330
+ resourceLinked?: boolean;
13329
13331
  /** Format: uri */
13330
13332
  originalUrl: string | null;
13331
13333
  evidenceRefs: string[];
@@ -13491,6 +13493,8 @@ export interface paths {
13491
13493
  contentAvailable: boolean;
13492
13494
  projectBound: boolean | null;
13493
13495
  selected: boolean;
13496
+ referenceRepairRequired?: boolean;
13497
+ resourceLinked?: boolean;
13494
13498
  /** Format: uri */
13495
13499
  originalUrl: string | null;
13496
13500
  evidenceRefs: string[];
@@ -72738,6 +72742,645 @@ export interface paths {
72738
72742
  patch?: never;
72739
72743
  trace?: never;
72740
72744
  };
72745
+ '/tenants/{tenantCode}/knowledge/reference-repair/preview': {
72746
+ parameters: {
72747
+ query?: never;
72748
+ header?: never;
72749
+ path?: never;
72750
+ cookie?: never;
72751
+ };
72752
+ get: {
72753
+ parameters: {
72754
+ query: {
72755
+ sourceRef: string;
72756
+ };
72757
+ header?: never;
72758
+ path: {
72759
+ tenantCode: string;
72760
+ };
72761
+ cookie?: never;
72762
+ };
72763
+ requestBody?: never;
72764
+ responses: {
72765
+ /** @description Default Response */
72766
+ 200: {
72767
+ headers: {
72768
+ [name: string]: unknown;
72769
+ };
72770
+ content: {
72771
+ 'application/json': {
72772
+ sourceRef: string;
72773
+ remoteRef: string;
72774
+ basisHash: string;
72775
+ sourceTenantId: string;
72776
+ item: {
72777
+ ref: string;
72778
+ ownerTenantId: string;
72779
+ resourceType: string;
72780
+ /** @enum {string} */
72781
+ originType: 'LEGACY_PROJECT' | 'TENANT_AUTHOR' | 'TENANT_SOURCE';
72782
+ identityHash: string;
72783
+ /** @enum {string} */
72784
+ identityKind: 'CAS_BYTES' | 'REFERENCE_RECORD_DIGEST';
72785
+ kind: string;
72786
+ classification: string;
72787
+ mediaType: string;
72788
+ title: string;
72789
+ summary: string;
72790
+ readable: boolean;
72791
+ reasonCodes: string[];
72792
+ };
72793
+ byteLength: number;
72794
+ /** @enum {boolean} */
72795
+ verified: true;
72796
+ };
72797
+ };
72798
+ };
72799
+ /** @description Default Response */
72800
+ 400: {
72801
+ headers: {
72802
+ [name: string]: unknown;
72803
+ };
72804
+ content: {
72805
+ 'application/json': {
72806
+ error: {
72807
+ code: string;
72808
+ message: string;
72809
+ requestId?: string;
72810
+ };
72811
+ };
72812
+ };
72813
+ };
72814
+ /** @description Default Response */
72815
+ 401: {
72816
+ headers: {
72817
+ [name: string]: unknown;
72818
+ };
72819
+ content: {
72820
+ 'application/json': {
72821
+ error: {
72822
+ code: string;
72823
+ message: string;
72824
+ requestId?: string;
72825
+ };
72826
+ };
72827
+ };
72828
+ };
72829
+ /** @description Default Response */
72830
+ 403: {
72831
+ headers: {
72832
+ [name: string]: unknown;
72833
+ };
72834
+ content: {
72835
+ 'application/json': {
72836
+ error: {
72837
+ code: string;
72838
+ message: string;
72839
+ requestId?: string;
72840
+ };
72841
+ };
72842
+ };
72843
+ };
72844
+ /** @description Default Response */
72845
+ 404: {
72846
+ headers: {
72847
+ [name: string]: unknown;
72848
+ };
72849
+ content: {
72850
+ 'application/json': {
72851
+ error: {
72852
+ code: string;
72853
+ message: string;
72854
+ requestId?: string;
72855
+ };
72856
+ };
72857
+ };
72858
+ };
72859
+ /** @description Default Response */
72860
+ 409: {
72861
+ headers: {
72862
+ [name: string]: unknown;
72863
+ };
72864
+ content: {
72865
+ 'application/json': {
72866
+ error: {
72867
+ code: string;
72868
+ message: string;
72869
+ requestId?: string;
72870
+ };
72871
+ };
72872
+ };
72873
+ };
72874
+ /** @description Default Response */
72875
+ 413: {
72876
+ headers: {
72877
+ [name: string]: unknown;
72878
+ };
72879
+ content: {
72880
+ 'application/json': {
72881
+ error: {
72882
+ code: string;
72883
+ message: string;
72884
+ requestId?: string;
72885
+ };
72886
+ };
72887
+ };
72888
+ };
72889
+ /** @description Default Response */
72890
+ 415: {
72891
+ headers: {
72892
+ [name: string]: unknown;
72893
+ };
72894
+ content: {
72895
+ 'application/json': {
72896
+ error: {
72897
+ code: string;
72898
+ message: string;
72899
+ requestId?: string;
72900
+ };
72901
+ };
72902
+ };
72903
+ };
72904
+ /** @description Default Response */
72905
+ 502: {
72906
+ headers: {
72907
+ [name: string]: unknown;
72908
+ };
72909
+ content: {
72910
+ 'application/json': {
72911
+ error: {
72912
+ code: string;
72913
+ message: string;
72914
+ requestId?: string;
72915
+ };
72916
+ };
72917
+ };
72918
+ };
72919
+ /** @description Default Response */
72920
+ 503: {
72921
+ headers: {
72922
+ [name: string]: unknown;
72923
+ };
72924
+ content: {
72925
+ 'application/json': {
72926
+ error: {
72927
+ code: string;
72928
+ message: string;
72929
+ requestId?: string;
72930
+ };
72931
+ };
72932
+ };
72933
+ };
72934
+ };
72935
+ };
72936
+ put?: never;
72937
+ post?: never;
72938
+ delete?: never;
72939
+ options?: never;
72940
+ head?: never;
72941
+ patch?: never;
72942
+ trace?: never;
72943
+ };
72944
+ '/tenants/{tenantCode}/knowledge/reference-repair': {
72945
+ parameters: {
72946
+ query?: never;
72947
+ header?: never;
72948
+ path?: never;
72949
+ cookie?: never;
72950
+ };
72951
+ get?: never;
72952
+ put?: never;
72953
+ post: {
72954
+ parameters: {
72955
+ query?: never;
72956
+ header?: never;
72957
+ path: {
72958
+ tenantCode: string;
72959
+ };
72960
+ cookie?: never;
72961
+ };
72962
+ requestBody: {
72963
+ content: {
72964
+ 'application/json': {
72965
+ sourceRef: string;
72966
+ requestId: string;
72967
+ expectedBasisHash: string;
72968
+ };
72969
+ };
72970
+ };
72971
+ responses: {
72972
+ /** @description Default Response */
72973
+ 200: {
72974
+ headers: {
72975
+ [name: string]: unknown;
72976
+ };
72977
+ content: {
72978
+ 'application/json': {
72979
+ result: {
72980
+ /** Format: uuid */
72981
+ id: string;
72982
+ ref: string;
72983
+ /** Format: uuid */
72984
+ tenantId: string;
72985
+ /** @enum {string} */
72986
+ sourceType:
72987
+ | 'KNOWLEDGE'
72988
+ | 'INSIGHT'
72989
+ | 'TREND'
72990
+ | 'HOT_TOPIC'
72991
+ | 'WORLD_FACT'
72992
+ | 'NEWS'
72993
+ | 'CASE_EVIDENCE'
72994
+ | 'HUMAN_IDEA'
72995
+ | 'EXTERNAL_REFERENCE';
72996
+ sourceRef: string;
72997
+ sourceAuthority: string;
72998
+ /** Format: date-time */
72999
+ observedAt: string | null;
73000
+ /** Format: date-time */
73001
+ validUntil: string | null;
73002
+ evidenceRef: string | null;
73003
+ snapshotHash: string | null;
73004
+ metadata: {
73005
+ [key: string]: unknown;
73006
+ };
73007
+ /** Format: date-time */
73008
+ createdAt: string;
73009
+ };
73010
+ replayed: boolean;
73011
+ };
73012
+ };
73013
+ };
73014
+ /** @description Default Response */
73015
+ 400: {
73016
+ headers: {
73017
+ [name: string]: unknown;
73018
+ };
73019
+ content: {
73020
+ 'application/json': {
73021
+ error: {
73022
+ code: string;
73023
+ message: string;
73024
+ requestId?: string;
73025
+ };
73026
+ };
73027
+ };
73028
+ };
73029
+ /** @description Default Response */
73030
+ 401: {
73031
+ headers: {
73032
+ [name: string]: unknown;
73033
+ };
73034
+ content: {
73035
+ 'application/json': {
73036
+ error: {
73037
+ code: string;
73038
+ message: string;
73039
+ requestId?: string;
73040
+ };
73041
+ };
73042
+ };
73043
+ };
73044
+ /** @description Default Response */
73045
+ 403: {
73046
+ headers: {
73047
+ [name: string]: unknown;
73048
+ };
73049
+ content: {
73050
+ 'application/json': {
73051
+ error: {
73052
+ code: string;
73053
+ message: string;
73054
+ requestId?: string;
73055
+ };
73056
+ };
73057
+ };
73058
+ };
73059
+ /** @description Default Response */
73060
+ 404: {
73061
+ headers: {
73062
+ [name: string]: unknown;
73063
+ };
73064
+ content: {
73065
+ 'application/json': {
73066
+ error: {
73067
+ code: string;
73068
+ message: string;
73069
+ requestId?: string;
73070
+ };
73071
+ };
73072
+ };
73073
+ };
73074
+ /** @description Default Response */
73075
+ 409: {
73076
+ headers: {
73077
+ [name: string]: unknown;
73078
+ };
73079
+ content: {
73080
+ 'application/json': {
73081
+ error: {
73082
+ code: string;
73083
+ message: string;
73084
+ requestId?: string;
73085
+ };
73086
+ };
73087
+ };
73088
+ };
73089
+ /** @description Default Response */
73090
+ 413: {
73091
+ headers: {
73092
+ [name: string]: unknown;
73093
+ };
73094
+ content: {
73095
+ 'application/json': {
73096
+ error: {
73097
+ code: string;
73098
+ message: string;
73099
+ requestId?: string;
73100
+ };
73101
+ };
73102
+ };
73103
+ };
73104
+ /** @description Default Response */
73105
+ 415: {
73106
+ headers: {
73107
+ [name: string]: unknown;
73108
+ };
73109
+ content: {
73110
+ 'application/json': {
73111
+ error: {
73112
+ code: string;
73113
+ message: string;
73114
+ requestId?: string;
73115
+ };
73116
+ };
73117
+ };
73118
+ };
73119
+ /** @description Default Response */
73120
+ 502: {
73121
+ headers: {
73122
+ [name: string]: unknown;
73123
+ };
73124
+ content: {
73125
+ 'application/json': {
73126
+ error: {
73127
+ code: string;
73128
+ message: string;
73129
+ requestId?: string;
73130
+ };
73131
+ };
73132
+ };
73133
+ };
73134
+ /** @description Default Response */
73135
+ 503: {
73136
+ headers: {
73137
+ [name: string]: unknown;
73138
+ };
73139
+ content: {
73140
+ 'application/json': {
73141
+ error: {
73142
+ code: string;
73143
+ message: string;
73144
+ requestId?: string;
73145
+ };
73146
+ };
73147
+ };
73148
+ };
73149
+ };
73150
+ };
73151
+ delete?: never;
73152
+ options?: never;
73153
+ head?: never;
73154
+ patch?: never;
73155
+ trace?: never;
73156
+ };
73157
+ '/tenants/{tenantCode}/knowledge/reference-repair/receipt': {
73158
+ parameters: {
73159
+ query?: never;
73160
+ header?: never;
73161
+ path?: never;
73162
+ cookie?: never;
73163
+ };
73164
+ get: {
73165
+ parameters: {
73166
+ query: {
73167
+ requestId: string;
73168
+ };
73169
+ header?: never;
73170
+ path: {
73171
+ tenantCode: string;
73172
+ };
73173
+ cookie?: never;
73174
+ };
73175
+ requestBody?: never;
73176
+ responses: {
73177
+ /** @description Default Response */
73178
+ 200: {
73179
+ headers: {
73180
+ [name: string]: unknown;
73181
+ };
73182
+ content: {
73183
+ 'application/json':
73184
+ | {
73185
+ /** @enum {string} */
73186
+ state: 'FOUND';
73187
+ result: {
73188
+ /** Format: uuid */
73189
+ id: string;
73190
+ ref: string;
73191
+ /** Format: uuid */
73192
+ tenantId: string;
73193
+ /** @enum {string} */
73194
+ sourceType:
73195
+ | 'KNOWLEDGE'
73196
+ | 'INSIGHT'
73197
+ | 'TREND'
73198
+ | 'HOT_TOPIC'
73199
+ | 'WORLD_FACT'
73200
+ | 'NEWS'
73201
+ | 'CASE_EVIDENCE'
73202
+ | 'HUMAN_IDEA'
73203
+ | 'EXTERNAL_REFERENCE';
73204
+ sourceRef: string;
73205
+ sourceAuthority: string;
73206
+ /** Format: date-time */
73207
+ observedAt: string | null;
73208
+ /** Format: date-time */
73209
+ validUntil: string | null;
73210
+ evidenceRef: string | null;
73211
+ snapshotHash: string | null;
73212
+ metadata: {
73213
+ [key: string]: unknown;
73214
+ };
73215
+ /** Format: date-time */
73216
+ createdAt: string;
73217
+ };
73218
+ }
73219
+ | {
73220
+ /** @enum {string} */
73221
+ state: 'NOT_FOUND';
73222
+ /** @enum {string|null} */
73223
+ result: null;
73224
+ }
73225
+ | {
73226
+ /** @enum {string} */
73227
+ state: 'REJECTED';
73228
+ /** @enum {string|null} */
73229
+ result: null;
73230
+ error: {
73231
+ code: string;
73232
+ /** @enum {string} */
73233
+ outcome: 'REJECTED';
73234
+ recovery: string;
73235
+ };
73236
+ };
73237
+ };
73238
+ };
73239
+ /** @description Default Response */
73240
+ 400: {
73241
+ headers: {
73242
+ [name: string]: unknown;
73243
+ };
73244
+ content: {
73245
+ 'application/json': {
73246
+ error: {
73247
+ code: string;
73248
+ message: string;
73249
+ requestId?: string;
73250
+ };
73251
+ };
73252
+ };
73253
+ };
73254
+ /** @description Default Response */
73255
+ 401: {
73256
+ headers: {
73257
+ [name: string]: unknown;
73258
+ };
73259
+ content: {
73260
+ 'application/json': {
73261
+ error: {
73262
+ code: string;
73263
+ message: string;
73264
+ requestId?: string;
73265
+ };
73266
+ };
73267
+ };
73268
+ };
73269
+ /** @description Default Response */
73270
+ 403: {
73271
+ headers: {
73272
+ [name: string]: unknown;
73273
+ };
73274
+ content: {
73275
+ 'application/json': {
73276
+ error: {
73277
+ code: string;
73278
+ message: string;
73279
+ requestId?: string;
73280
+ };
73281
+ };
73282
+ };
73283
+ };
73284
+ /** @description Default Response */
73285
+ 404: {
73286
+ headers: {
73287
+ [name: string]: unknown;
73288
+ };
73289
+ content: {
73290
+ 'application/json': {
73291
+ error: {
73292
+ code: string;
73293
+ message: string;
73294
+ requestId?: string;
73295
+ };
73296
+ };
73297
+ };
73298
+ };
73299
+ /** @description Default Response */
73300
+ 409: {
73301
+ headers: {
73302
+ [name: string]: unknown;
73303
+ };
73304
+ content: {
73305
+ 'application/json': {
73306
+ error: {
73307
+ code: string;
73308
+ message: string;
73309
+ requestId?: string;
73310
+ };
73311
+ };
73312
+ };
73313
+ };
73314
+ /** @description Default Response */
73315
+ 413: {
73316
+ headers: {
73317
+ [name: string]: unknown;
73318
+ };
73319
+ content: {
73320
+ 'application/json': {
73321
+ error: {
73322
+ code: string;
73323
+ message: string;
73324
+ requestId?: string;
73325
+ };
73326
+ };
73327
+ };
73328
+ };
73329
+ /** @description Default Response */
73330
+ 415: {
73331
+ headers: {
73332
+ [name: string]: unknown;
73333
+ };
73334
+ content: {
73335
+ 'application/json': {
73336
+ error: {
73337
+ code: string;
73338
+ message: string;
73339
+ requestId?: string;
73340
+ };
73341
+ };
73342
+ };
73343
+ };
73344
+ /** @description Default Response */
73345
+ 502: {
73346
+ headers: {
73347
+ [name: string]: unknown;
73348
+ };
73349
+ content: {
73350
+ 'application/json': {
73351
+ error: {
73352
+ code: string;
73353
+ message: string;
73354
+ requestId?: string;
73355
+ };
73356
+ };
73357
+ };
73358
+ };
73359
+ /** @description Default Response */
73360
+ 503: {
73361
+ headers: {
73362
+ [name: string]: unknown;
73363
+ };
73364
+ content: {
73365
+ 'application/json': {
73366
+ error: {
73367
+ code: string;
73368
+ message: string;
73369
+ requestId?: string;
73370
+ };
73371
+ };
73372
+ };
73373
+ };
73374
+ };
73375
+ };
73376
+ put?: never;
73377
+ post?: never;
73378
+ delete?: never;
73379
+ options?: never;
73380
+ head?: never;
73381
+ patch?: never;
73382
+ trace?: never;
73383
+ };
72741
73384
  }
72742
73385
  export type webhooks = Record<string, never>;
72743
73386
  export interface components {