@native-marketing/sdk 0.2.0 → 0.3.1
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/LICENSE +202 -0
- package/dist/index.js +214 -8
- package/package.json +3 -8
- package/release.json +3 -3
- package/types/contracts/agent/knowledge-reads.d.ts +1 -1
- package/types/contracts/event-backlog.d.ts +47 -0
- package/types/contracts/event-delivery.d.ts +124 -0
- package/types/contracts/event-exchange-browser.d.ts +39 -0
- package/types/contracts/event-exchange.d.ts +110 -0
- package/types/contracts/index.d.ts +7 -0
- package/types/contracts/knowledge-discovery.d.ts +185 -0
- package/types/contracts/knowledge-rich-document.d.ts +238 -1
- package/types/contracts/marketing-domain-events.d.ts +425 -0
- package/types/contracts/native-event-data.d.ts +8 -0
- package/types/contracts/provider-settings.d.ts +3 -0
- package/types/http/generated/schema.d.ts +2132 -1046
- package/README.md +0 -49
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const eventWorkerObservationSchema: z.ZodObject<{
|
|
3
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
4
|
+
status: z.ZodEnum<{
|
|
5
|
+
CONNECTED: "CONNECTED";
|
|
6
|
+
DISABLED: "DISABLED";
|
|
7
|
+
RECONNECTING: "RECONNECTING";
|
|
8
|
+
STOPPED: "STOPPED";
|
|
9
|
+
}>;
|
|
10
|
+
connected: z.ZodBoolean;
|
|
11
|
+
at: z.ZodString;
|
|
12
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
13
|
+
stale: z.ZodBoolean;
|
|
14
|
+
}, z.core.$strict>;
|
|
15
|
+
export declare const eventDeliveryPageQuerySchema: z.ZodObject<{
|
|
16
|
+
after: z.ZodDefault<z.ZodString>;
|
|
17
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
18
|
+
}, z.core.$strict>;
|
|
19
|
+
export declare const eventDeliveryRecoveryResultSchema: z.ZodObject<{
|
|
20
|
+
source: z.ZodString;
|
|
21
|
+
id: z.ZodString;
|
|
22
|
+
deliveryid: z.ZodString;
|
|
23
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
24
|
+
requestId: z.ZodString;
|
|
25
|
+
status: z.ZodLiteral<"REQUEUED">;
|
|
26
|
+
generation: z.ZodNumber;
|
|
27
|
+
attempt: z.ZodNumber;
|
|
28
|
+
previousReasonCode: z.ZodNullable<z.ZodString>;
|
|
29
|
+
}, z.core.$strict>;
|
|
30
|
+
export declare const eventDeliveryRecoveryReceiptSchema: z.ZodObject<{
|
|
31
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
32
|
+
requestId: z.ZodString;
|
|
33
|
+
result: z.ZodNullable<z.ZodObject<{
|
|
34
|
+
source: z.ZodString;
|
|
35
|
+
id: z.ZodString;
|
|
36
|
+
deliveryid: z.ZodString;
|
|
37
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
38
|
+
requestId: z.ZodString;
|
|
39
|
+
status: z.ZodLiteral<"REQUEUED">;
|
|
40
|
+
generation: z.ZodNumber;
|
|
41
|
+
attempt: z.ZodNumber;
|
|
42
|
+
previousReasonCode: z.ZodNullable<z.ZodString>;
|
|
43
|
+
}, z.core.$strict>>;
|
|
44
|
+
}, z.core.$strict>;
|
|
45
|
+
export declare const eventDeliveryPageSchema: z.ZodObject<{
|
|
46
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
47
|
+
items: z.ZodArray<z.ZodObject<{
|
|
48
|
+
source: z.ZodString;
|
|
49
|
+
id: z.ZodString;
|
|
50
|
+
deliveryid: z.ZodString;
|
|
51
|
+
status: z.ZodEnum<{
|
|
52
|
+
HOLD: "HOLD";
|
|
53
|
+
PENDING: "PENDING";
|
|
54
|
+
PUBLISHED: "PUBLISHED";
|
|
55
|
+
UNKNOWN: "UNKNOWN";
|
|
56
|
+
}>;
|
|
57
|
+
generation: z.ZodNumber;
|
|
58
|
+
attempt: z.ZodNumber;
|
|
59
|
+
nextAttemptAt: z.ZodNumber;
|
|
60
|
+
reasonCode: z.ZodNullable<z.ZodString>;
|
|
61
|
+
queuedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
62
|
+
}, z.core.$strict>>;
|
|
63
|
+
nextAfter: z.ZodNullable<z.ZodString>;
|
|
64
|
+
counts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
65
|
+
worker: z.ZodNullable<z.ZodObject<{
|
|
66
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
67
|
+
status: z.ZodEnum<{
|
|
68
|
+
CONNECTED: "CONNECTED";
|
|
69
|
+
DISABLED: "DISABLED";
|
|
70
|
+
RECONNECTING: "RECONNECTING";
|
|
71
|
+
STOPPED: "STOPPED";
|
|
72
|
+
}>;
|
|
73
|
+
connected: z.ZodBoolean;
|
|
74
|
+
at: z.ZodString;
|
|
75
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
76
|
+
stale: z.ZodBoolean;
|
|
77
|
+
}, z.core.$strict>>;
|
|
78
|
+
backlog: z.ZodOptional<z.ZodObject<{
|
|
79
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
80
|
+
observedAt: z.ZodString;
|
|
81
|
+
outbox: z.ZodObject<{
|
|
82
|
+
pendingCount: z.ZodNumber;
|
|
83
|
+
oldestPendingAt: z.ZodNullable<z.ZodString>;
|
|
84
|
+
oldestPendingAgeMs: z.ZodNullable<z.ZodNumber>;
|
|
85
|
+
oldestKnownPendingAt: z.ZodNullable<z.ZodString>;
|
|
86
|
+
unknownAgeCount: z.ZodNumber;
|
|
87
|
+
reasons: z.ZodArray<z.ZodObject<{
|
|
88
|
+
status: z.ZodString;
|
|
89
|
+
reasonCode: z.ZodNullable<z.ZodString>;
|
|
90
|
+
count: z.ZodNumber;
|
|
91
|
+
}, z.core.$strict>>;
|
|
92
|
+
reasonsTruncated: z.ZodBoolean;
|
|
93
|
+
}, z.core.$strict>;
|
|
94
|
+
unstaged: z.ZodObject<{
|
|
95
|
+
deliveryCount: z.ZodNumber;
|
|
96
|
+
oldestRecordedAt: z.ZodNullable<z.ZodString>;
|
|
97
|
+
}, z.core.$strict>;
|
|
98
|
+
inbox: z.ZodObject<{
|
|
99
|
+
pendingCount: z.ZodNumber;
|
|
100
|
+
oldestPendingAt: z.ZodNullable<z.ZodString>;
|
|
101
|
+
oldestPendingAgeMs: z.ZodNullable<z.ZodNumber>;
|
|
102
|
+
oldestKnownPendingAt: z.ZodNullable<z.ZodString>;
|
|
103
|
+
unknownAgeCount: z.ZodNumber;
|
|
104
|
+
reasons: z.ZodArray<z.ZodObject<{
|
|
105
|
+
status: z.ZodString;
|
|
106
|
+
reasonCode: z.ZodNullable<z.ZodString>;
|
|
107
|
+
count: z.ZodNumber;
|
|
108
|
+
}, z.core.$strict>>;
|
|
109
|
+
reasonsTruncated: z.ZodBoolean;
|
|
110
|
+
pendingBaselines: z.ZodNumber;
|
|
111
|
+
sourceGapState: z.ZodLiteral<"NOT_OBSERVED">;
|
|
112
|
+
}, z.core.$strict>;
|
|
113
|
+
quarantine: z.ZodObject<{
|
|
114
|
+
attributedRouteAttempts: z.ZodNumber;
|
|
115
|
+
coverage: z.ZodLiteral<"LOCAL_ROUTE_ATTEMPTS_ONLY">;
|
|
116
|
+
reasons: z.ZodArray<z.ZodObject<{
|
|
117
|
+
status: z.ZodString;
|
|
118
|
+
reasonCode: z.ZodNullable<z.ZodString>;
|
|
119
|
+
count: z.ZodNumber;
|
|
120
|
+
}, z.core.$strict>>;
|
|
121
|
+
reasonsTruncated: z.ZodBoolean;
|
|
122
|
+
}, z.core.$strict>;
|
|
123
|
+
}, z.core.$strict>>;
|
|
124
|
+
}, z.core.$strict>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const eventExchangeSourceSchema: z.ZodObject<{
|
|
3
|
+
source: z.ZodString;
|
|
4
|
+
serviceRef: z.ZodString;
|
|
5
|
+
tenantRef: z.ZodString;
|
|
6
|
+
issuer: z.ZodString;
|
|
7
|
+
subject: z.ZodString;
|
|
8
|
+
}, z.core.$strict>;
|
|
9
|
+
export declare const eventExchangeTargetSchema: z.ZodObject<{
|
|
10
|
+
serviceRef: z.ZodString;
|
|
11
|
+
tenantRef: z.ZodString;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
export declare const eventExchangeBrowserCommandSchema: z.ZodObject<{
|
|
14
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
15
|
+
requestId: z.ZodString;
|
|
16
|
+
expectedRevision: z.ZodNullable<z.ZodNumber>;
|
|
17
|
+
source: z.ZodObject<{
|
|
18
|
+
source: z.ZodString;
|
|
19
|
+
serviceRef: z.ZodString;
|
|
20
|
+
tenantRef: z.ZodString;
|
|
21
|
+
issuer: z.ZodString;
|
|
22
|
+
subject: z.ZodString;
|
|
23
|
+
}, z.core.$strict>;
|
|
24
|
+
target: z.ZodObject<{
|
|
25
|
+
serviceRef: z.ZodString;
|
|
26
|
+
tenantRef: z.ZodString;
|
|
27
|
+
}, z.core.$strict>;
|
|
28
|
+
grant: z.ZodObject<{
|
|
29
|
+
grantRef: z.ZodString;
|
|
30
|
+
version: z.ZodNumber;
|
|
31
|
+
eventType: z.ZodString;
|
|
32
|
+
consumerRef: z.ZodString;
|
|
33
|
+
}, z.core.$strict>;
|
|
34
|
+
status: z.ZodEnum<{
|
|
35
|
+
ACTIVE: "ACTIVE";
|
|
36
|
+
REVOKED: "REVOKED";
|
|
37
|
+
}>;
|
|
38
|
+
}, z.core.$strict>;
|
|
39
|
+
export type EventExchangeBrowserCommand = z.infer<typeof eventExchangeBrowserCommandSchema>;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const eventExchangePageQuerySchema: z.ZodObject<{
|
|
3
|
+
after: z.ZodDefault<z.ZodString>;
|
|
4
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
5
|
+
}, z.core.$strict>;
|
|
6
|
+
export declare const eventExchangeReceiptQuerySchema: z.ZodObject<{
|
|
7
|
+
requestId: z.ZodString;
|
|
8
|
+
}, z.core.$strict>;
|
|
9
|
+
export declare const knowledgeRefreshRevisionSchema: z.ZodObject<{
|
|
10
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
11
|
+
revision: z.ZodString;
|
|
12
|
+
recordedAt: z.ZodNullable<z.ZodString>;
|
|
13
|
+
baselines: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
14
|
+
connectionRef: z.ZodString;
|
|
15
|
+
source: z.ZodString;
|
|
16
|
+
baselineRef: z.ZodString;
|
|
17
|
+
watermark: z.ZodString;
|
|
18
|
+
sourceRevision: z.ZodString;
|
|
19
|
+
}, z.core.$strict>>>;
|
|
20
|
+
baselinesTruncated: z.ZodDefault<z.ZodBoolean>;
|
|
21
|
+
}, z.core.$strict>;
|
|
22
|
+
export declare const eventExchangeResultSchema: z.ZodObject<{
|
|
23
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
24
|
+
connectionRef: z.ZodString;
|
|
25
|
+
revision: z.ZodNumber;
|
|
26
|
+
direction: z.ZodEnum<{
|
|
27
|
+
OUTBOUND: "OUTBOUND";
|
|
28
|
+
RECEIVE: "RECEIVE";
|
|
29
|
+
}>;
|
|
30
|
+
status: z.ZodEnum<{
|
|
31
|
+
ACTIVE: "ACTIVE";
|
|
32
|
+
REVOKED: "REVOKED";
|
|
33
|
+
}>;
|
|
34
|
+
grantRef: z.ZodString;
|
|
35
|
+
grantVersion: z.ZodNumber;
|
|
36
|
+
eventType: z.ZodOptional<z.ZodString>;
|
|
37
|
+
}, z.core.$strict>;
|
|
38
|
+
export declare const eventExchangeReceiptSchema: z.ZodObject<{
|
|
39
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
40
|
+
requestId: z.ZodString;
|
|
41
|
+
result: z.ZodNullable<z.ZodObject<{
|
|
42
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
43
|
+
connectionRef: z.ZodString;
|
|
44
|
+
revision: z.ZodNumber;
|
|
45
|
+
direction: z.ZodEnum<{
|
|
46
|
+
OUTBOUND: "OUTBOUND";
|
|
47
|
+
RECEIVE: "RECEIVE";
|
|
48
|
+
}>;
|
|
49
|
+
status: z.ZodEnum<{
|
|
50
|
+
ACTIVE: "ACTIVE";
|
|
51
|
+
REVOKED: "REVOKED";
|
|
52
|
+
}>;
|
|
53
|
+
grantRef: z.ZodString;
|
|
54
|
+
grantVersion: z.ZodNumber;
|
|
55
|
+
eventType: z.ZodOptional<z.ZodString>;
|
|
56
|
+
}, z.core.$strict>>;
|
|
57
|
+
}, z.core.$strict>;
|
|
58
|
+
export declare const eventExchangePageSchema: z.ZodObject<{
|
|
59
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
60
|
+
localTenant: z.ZodOptional<z.ZodObject<{
|
|
61
|
+
serviceRef: z.ZodString;
|
|
62
|
+
tenantRef: z.ZodString;
|
|
63
|
+
}, z.core.$strict>>;
|
|
64
|
+
items: z.ZodArray<z.ZodObject<{
|
|
65
|
+
connectionRef: z.ZodString;
|
|
66
|
+
revision: z.ZodNumber;
|
|
67
|
+
direction: z.ZodEnum<{
|
|
68
|
+
OUTBOUND: "OUTBOUND";
|
|
69
|
+
RECEIVE: "RECEIVE";
|
|
70
|
+
}>;
|
|
71
|
+
status: z.ZodEnum<{
|
|
72
|
+
ACTIVE: "ACTIVE";
|
|
73
|
+
REVOKED: "REVOKED";
|
|
74
|
+
}>;
|
|
75
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
76
|
+
source: z.ZodString;
|
|
77
|
+
serviceRef: z.ZodString;
|
|
78
|
+
tenantRef: z.ZodString;
|
|
79
|
+
issuer: z.ZodString;
|
|
80
|
+
subject: z.ZodString;
|
|
81
|
+
}, z.core.$strict>>;
|
|
82
|
+
target: z.ZodOptional<z.ZodObject<{
|
|
83
|
+
serviceRef: z.ZodString;
|
|
84
|
+
tenantRef: z.ZodString;
|
|
85
|
+
}, z.core.$strict>>;
|
|
86
|
+
grantsTruncated: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
+
grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
88
|
+
eventType: z.ZodString;
|
|
89
|
+
grantRef: z.ZodString;
|
|
90
|
+
grantVersion: z.ZodNumber;
|
|
91
|
+
consumerRef: z.ZodOptional<z.ZodString>;
|
|
92
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
93
|
+
source: z.ZodString;
|
|
94
|
+
serviceRef: z.ZodString;
|
|
95
|
+
tenantRef: z.ZodString;
|
|
96
|
+
issuer: z.ZodString;
|
|
97
|
+
subject: z.ZodString;
|
|
98
|
+
}, z.core.$strict>>;
|
|
99
|
+
target: z.ZodOptional<z.ZodObject<{
|
|
100
|
+
serviceRef: z.ZodString;
|
|
101
|
+
tenantRef: z.ZodString;
|
|
102
|
+
}, z.core.$strict>>;
|
|
103
|
+
status: z.ZodEnum<{
|
|
104
|
+
ACTIVE: "ACTIVE";
|
|
105
|
+
REVOKED: "REVOKED";
|
|
106
|
+
}>;
|
|
107
|
+
}, z.core.$strict>>>;
|
|
108
|
+
}, z.core.$strict>>;
|
|
109
|
+
nextAfter: z.ZodNullable<z.ZodString>;
|
|
110
|
+
}, z.core.$strict>;
|
|
@@ -106,3 +106,10 @@ export * from './agent/execution-control-receipt.js';
|
|
|
106
106
|
export * from './business-command-receipt.js';
|
|
107
107
|
export * from './operating-command-receipts.js';
|
|
108
108
|
export * from './feedback-facts.js';
|
|
109
|
+
export * from './knowledge-discovery.js';
|
|
110
|
+
export * from './event-exchange.js';
|
|
111
|
+
export * from './event-exchange-browser.js';
|
|
112
|
+
export { eventDeliveryPageQuerySchema, eventDeliveryPageSchema, eventDeliveryRecoveryResultSchema, eventDeliveryRecoveryReceiptSchema, } from './event-delivery.js';
|
|
113
|
+
export { knowledgeReferenceAdoptedDataSchema } from './native-event-data.js';
|
|
114
|
+
export * from './marketing-domain-events.js';
|
|
115
|
+
export * from './event-backlog.js';
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const knowledgeRemoteRefSchema: z.ZodString;
|
|
3
|
+
export declare const knowledgeDiscoveryQuerySchema: z.ZodObject<{
|
|
4
|
+
q: z.ZodOptional<z.ZodString>;
|
|
5
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
6
|
+
resourceType: z.ZodOptional<z.ZodString>;
|
|
7
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
8
|
+
}, z.core.$strict>;
|
|
9
|
+
export declare const knowledgeDiscoveryReadQuerySchema: z.ZodObject<{
|
|
10
|
+
ref: z.ZodString;
|
|
11
|
+
expectedContentHash: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
export declare const knowledgeDiscoveryItemSchema: z.ZodObject<{
|
|
14
|
+
ref: z.ZodString;
|
|
15
|
+
ownerTenantId: z.ZodString;
|
|
16
|
+
resourceType: z.ZodString;
|
|
17
|
+
originType: z.ZodEnum<{
|
|
18
|
+
LEGACY_PROJECT: "LEGACY_PROJECT";
|
|
19
|
+
TENANT_AUTHOR: "TENANT_AUTHOR";
|
|
20
|
+
TENANT_SOURCE: "TENANT_SOURCE";
|
|
21
|
+
}>;
|
|
22
|
+
identityHash: z.ZodString;
|
|
23
|
+
identityKind: z.ZodEnum<{
|
|
24
|
+
CAS_BYTES: "CAS_BYTES";
|
|
25
|
+
REFERENCE_RECORD_DIGEST: "REFERENCE_RECORD_DIGEST";
|
|
26
|
+
}>;
|
|
27
|
+
kind: z.ZodString;
|
|
28
|
+
classification: z.ZodString;
|
|
29
|
+
mediaType: z.ZodString;
|
|
30
|
+
title: z.ZodString;
|
|
31
|
+
summary: z.ZodString;
|
|
32
|
+
readable: z.ZodBoolean;
|
|
33
|
+
reasonCodes: z.ZodArray<z.ZodString>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
export declare const knowledgeDiscoveryPageSchema: z.ZodObject<{
|
|
36
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
37
|
+
sourceTenantId: z.ZodString;
|
|
38
|
+
items: z.ZodArray<z.ZodObject<{
|
|
39
|
+
ref: z.ZodString;
|
|
40
|
+
ownerTenantId: z.ZodString;
|
|
41
|
+
resourceType: z.ZodString;
|
|
42
|
+
originType: z.ZodEnum<{
|
|
43
|
+
LEGACY_PROJECT: "LEGACY_PROJECT";
|
|
44
|
+
TENANT_AUTHOR: "TENANT_AUTHOR";
|
|
45
|
+
TENANT_SOURCE: "TENANT_SOURCE";
|
|
46
|
+
}>;
|
|
47
|
+
identityHash: z.ZodString;
|
|
48
|
+
identityKind: z.ZodEnum<{
|
|
49
|
+
CAS_BYTES: "CAS_BYTES";
|
|
50
|
+
REFERENCE_RECORD_DIGEST: "REFERENCE_RECORD_DIGEST";
|
|
51
|
+
}>;
|
|
52
|
+
kind: z.ZodString;
|
|
53
|
+
classification: z.ZodString;
|
|
54
|
+
mediaType: z.ZodString;
|
|
55
|
+
title: z.ZodString;
|
|
56
|
+
summary: z.ZodString;
|
|
57
|
+
readable: z.ZodBoolean;
|
|
58
|
+
reasonCodes: z.ZodArray<z.ZodString>;
|
|
59
|
+
}, z.core.$strip>>;
|
|
60
|
+
pageInfo: z.ZodObject<{
|
|
61
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
62
|
+
}, z.core.$strict>;
|
|
63
|
+
coverage: z.ZodEnum<{
|
|
64
|
+
CURRENT_AUTHORIZED_DIRECTORY: "CURRENT_AUTHORIZED_DIRECTORY";
|
|
65
|
+
INDEXED_DESCRIPTIONS_ONLY: "INDEXED_DESCRIPTIONS_ONLY";
|
|
66
|
+
}>;
|
|
67
|
+
checkedAt: z.ZodString;
|
|
68
|
+
}, z.core.$strict>;
|
|
69
|
+
export declare const knowledgeDiscoveryReadSchema: z.ZodObject<{
|
|
70
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
71
|
+
sourceTenantId: z.ZodString;
|
|
72
|
+
item: z.ZodObject<{
|
|
73
|
+
ref: z.ZodString;
|
|
74
|
+
ownerTenantId: z.ZodString;
|
|
75
|
+
resourceType: z.ZodString;
|
|
76
|
+
originType: z.ZodEnum<{
|
|
77
|
+
LEGACY_PROJECT: "LEGACY_PROJECT";
|
|
78
|
+
TENANT_AUTHOR: "TENANT_AUTHOR";
|
|
79
|
+
TENANT_SOURCE: "TENANT_SOURCE";
|
|
80
|
+
}>;
|
|
81
|
+
identityHash: z.ZodString;
|
|
82
|
+
identityKind: z.ZodEnum<{
|
|
83
|
+
CAS_BYTES: "CAS_BYTES";
|
|
84
|
+
REFERENCE_RECORD_DIGEST: "REFERENCE_RECORD_DIGEST";
|
|
85
|
+
}>;
|
|
86
|
+
kind: z.ZodString;
|
|
87
|
+
classification: z.ZodString;
|
|
88
|
+
mediaType: z.ZodString;
|
|
89
|
+
title: z.ZodString;
|
|
90
|
+
summary: z.ZodString;
|
|
91
|
+
readable: z.ZodBoolean;
|
|
92
|
+
reasonCodes: z.ZodArray<z.ZodString>;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
contentHash: z.ZodString;
|
|
95
|
+
mediaType: z.ZodString;
|
|
96
|
+
byteLength: z.ZodNumber;
|
|
97
|
+
content: z.ZodString;
|
|
98
|
+
verified: z.ZodLiteral<true>;
|
|
99
|
+
checkedAt: z.ZodString;
|
|
100
|
+
}, z.core.$strict>;
|
|
101
|
+
export type KnowledgeDiscoveryQuery = z.infer<typeof knowledgeDiscoveryQuerySchema>;
|
|
102
|
+
export type KnowledgeDiscoveryReadQuery = z.infer<typeof knowledgeDiscoveryReadQuerySchema>;
|
|
103
|
+
export type KnowledgeDiscoveryItem = z.infer<typeof knowledgeDiscoveryItemSchema>;
|
|
104
|
+
export type KnowledgeDiscoveryPage = z.infer<typeof knowledgeDiscoveryPageSchema>;
|
|
105
|
+
export type KnowledgeDiscoveryRead = z.infer<typeof knowledgeDiscoveryReadSchema>;
|
|
106
|
+
export declare const knowledgeAdoptionCommandSchema: z.ZodObject<{
|
|
107
|
+
ref: z.ZodNonOptional<z.ZodString>;
|
|
108
|
+
expectedContentHash: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
109
|
+
requestId: z.ZodString;
|
|
110
|
+
}, z.core.$strict>;
|
|
111
|
+
export declare const knowledgeAdoptionResultSchema: z.ZodObject<{
|
|
112
|
+
result: z.ZodObject<{
|
|
113
|
+
id: z.ZodString;
|
|
114
|
+
ref: z.ZodString;
|
|
115
|
+
tenantId: z.ZodString;
|
|
116
|
+
sourceType: z.ZodEnum<{
|
|
117
|
+
CASE_EVIDENCE: "CASE_EVIDENCE";
|
|
118
|
+
EXTERNAL_REFERENCE: "EXTERNAL_REFERENCE";
|
|
119
|
+
HOT_TOPIC: "HOT_TOPIC";
|
|
120
|
+
HUMAN_IDEA: "HUMAN_IDEA";
|
|
121
|
+
INSIGHT: "INSIGHT";
|
|
122
|
+
KNOWLEDGE: "KNOWLEDGE";
|
|
123
|
+
NEWS: "NEWS";
|
|
124
|
+
TREND: "TREND";
|
|
125
|
+
WORLD_FACT: "WORLD_FACT";
|
|
126
|
+
}>;
|
|
127
|
+
sourceRef: z.ZodString;
|
|
128
|
+
sourceAuthority: z.ZodString;
|
|
129
|
+
observedAt: z.ZodNullable<z.ZodString>;
|
|
130
|
+
validUntil: z.ZodNullable<z.ZodString>;
|
|
131
|
+
evidenceRef: z.ZodNullable<z.ZodString>;
|
|
132
|
+
snapshotHash: z.ZodNullable<z.ZodString>;
|
|
133
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
134
|
+
createdAt: z.ZodString;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
replayed: z.ZodBoolean;
|
|
137
|
+
}, z.core.$strict>;
|
|
138
|
+
export declare const knowledgeAdoptionReceiptQuerySchema: z.ZodObject<{
|
|
139
|
+
requestId: z.ZodString;
|
|
140
|
+
}, z.core.$strict>;
|
|
141
|
+
export declare const knowledgeAdoptionReceiptSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
142
|
+
state: z.ZodLiteral<"FOUND">;
|
|
143
|
+
result: z.ZodObject<{
|
|
144
|
+
id: z.ZodString;
|
|
145
|
+
ref: z.ZodString;
|
|
146
|
+
tenantId: z.ZodString;
|
|
147
|
+
sourceType: z.ZodEnum<{
|
|
148
|
+
CASE_EVIDENCE: "CASE_EVIDENCE";
|
|
149
|
+
EXTERNAL_REFERENCE: "EXTERNAL_REFERENCE";
|
|
150
|
+
HOT_TOPIC: "HOT_TOPIC";
|
|
151
|
+
HUMAN_IDEA: "HUMAN_IDEA";
|
|
152
|
+
INSIGHT: "INSIGHT";
|
|
153
|
+
KNOWLEDGE: "KNOWLEDGE";
|
|
154
|
+
NEWS: "NEWS";
|
|
155
|
+
TREND: "TREND";
|
|
156
|
+
WORLD_FACT: "WORLD_FACT";
|
|
157
|
+
}>;
|
|
158
|
+
sourceRef: z.ZodString;
|
|
159
|
+
sourceAuthority: z.ZodString;
|
|
160
|
+
observedAt: z.ZodNullable<z.ZodString>;
|
|
161
|
+
validUntil: z.ZodNullable<z.ZodString>;
|
|
162
|
+
evidenceRef: z.ZodNullable<z.ZodString>;
|
|
163
|
+
snapshotHash: z.ZodNullable<z.ZodString>;
|
|
164
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
165
|
+
createdAt: z.ZodString;
|
|
166
|
+
}, z.core.$strip>;
|
|
167
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
168
|
+
state: z.ZodLiteral<"NOT_FOUND">;
|
|
169
|
+
result: z.ZodNull;
|
|
170
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
171
|
+
state: z.ZodLiteral<"REJECTED">;
|
|
172
|
+
result: z.ZodNull;
|
|
173
|
+
error: z.ZodObject<{
|
|
174
|
+
code: z.ZodString;
|
|
175
|
+
outcome: z.ZodLiteral<"REJECTED">;
|
|
176
|
+
recovery: z.ZodString;
|
|
177
|
+
}, z.core.$strict>;
|
|
178
|
+
}, z.core.$strict>], "state">;
|
|
179
|
+
export declare const adoptedKnowledgeResourceSchema: z.ZodObject<{
|
|
180
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
181
|
+
sourceTenantId: z.ZodString;
|
|
182
|
+
ref: z.ZodString;
|
|
183
|
+
identityHash: z.ZodString;
|
|
184
|
+
}, z.core.$strict>;
|
|
185
|
+
export type KnowledgeAdoptionCommand = z.infer<typeof knowledgeAdoptionCommandSchema>;
|