@native-marketing/sdk 0.1.1 → 0.3.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.
- package/README.md +30 -3
- package/dist/index.js +1387 -1025
- package/package.json +1 -1
- package/release.json +3 -3
- package/types/contracts/agent/capabilities.d.ts +59 -0
- package/types/contracts/agent/index.d.ts +4 -0
- package/types/contracts/agent/input-repair.d.ts +32 -0
- package/types/contracts/agent/knowledge-reads.d.ts +1 -1
- package/types/contracts/agent/publication-preflight.d.ts +6 -0
- package/types/contracts/agent/test-records.d.ts +28 -0
- package/types/contracts/agent/validation.d.ts +7 -0
- 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/types/sdk/agent-capabilities.d.ts +3 -0
- package/types/sdk/capability-definition.d.ts +24 -0
- package/types/sdk/client.d.ts +3 -2
- package/types/sdk/index.d.ts +2 -1
package/package.json
CHANGED
package/release.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"sourceCommit": "
|
|
2
|
+
"sourceCommit": "10c5dcfba354af4dfed4a2faaffbb6ff6b743c62",
|
|
3
3
|
"workingTreeDirty": false,
|
|
4
|
-
"version": "0.
|
|
5
|
-
"openapiTypesSha256": "
|
|
4
|
+
"version": "0.3.0",
|
|
5
|
+
"openapiTypesSha256": "1a86e24ce9e458e945e4df5e9c7423c9bf4253ac24b3f627f67ba38c92856a38",
|
|
6
6
|
"localBuild": true
|
|
7
7
|
}
|
|
@@ -25,6 +25,7 @@ export declare const capabilityQuerySchema: z.ZodObject<{
|
|
|
25
25
|
}>>;
|
|
26
26
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
27
27
|
cursor: z.ZodOptional<z.ZodString>;
|
|
28
|
+
profile: z.ZodOptional<z.ZodLiteral<"AGENT_V3">>;
|
|
28
29
|
}, z.core.$strict>;
|
|
29
30
|
export declare const capabilityDescribeSchema: z.ZodObject<{
|
|
30
31
|
name: z.ZodString;
|
|
@@ -97,7 +98,65 @@ export declare const capabilityDefinitionSchema: z.ZodObject<{
|
|
|
97
98
|
callsReauthorize: z.ZodLiteral<true>;
|
|
98
99
|
}, z.core.$strict>;
|
|
99
100
|
}, z.core.$strict>;
|
|
101
|
+
export declare const agentCapabilityPageSchema: z.ZodObject<{
|
|
102
|
+
catalogRevision: z.ZodString;
|
|
103
|
+
authority: z.ZodObject<{
|
|
104
|
+
discoveryIsAuthority: z.ZodLiteral<false>;
|
|
105
|
+
callsReauthorize: z.ZodLiteral<true>;
|
|
106
|
+
}, z.core.$strict>;
|
|
107
|
+
page: z.ZodObject<{
|
|
108
|
+
hasMore: z.ZodBoolean;
|
|
109
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
110
|
+
}, z.core.$strict>;
|
|
111
|
+
schemaVersion: z.ZodLiteral<3>;
|
|
112
|
+
matching: z.ZodLiteral<"ACTION_OBJECT_BILINGUAL">;
|
|
113
|
+
result: z.ZodEnum<{
|
|
114
|
+
BROWSE: "BROWSE";
|
|
115
|
+
MATCH: "MATCH";
|
|
116
|
+
NO_MATCH: "NO_MATCH";
|
|
117
|
+
}>;
|
|
118
|
+
scope: z.ZodLiteral<"CURRENT_AUTHORIZED_CATALOGUE">;
|
|
119
|
+
items: z.ZodArray<z.ZodObject<{
|
|
120
|
+
name: z.ZodString;
|
|
121
|
+
title: z.ZodString;
|
|
122
|
+
summary: z.ZodString;
|
|
123
|
+
group: z.ZodEnum<{
|
|
124
|
+
administration: "administration";
|
|
125
|
+
delivery: "delivery";
|
|
126
|
+
foundation: "foundation";
|
|
127
|
+
knowledge: "knowledge";
|
|
128
|
+
operating: "operating";
|
|
129
|
+
review: "review";
|
|
130
|
+
strategy: "strategy";
|
|
131
|
+
system: "system";
|
|
132
|
+
tasks: "tasks";
|
|
133
|
+
}>;
|
|
134
|
+
readOnlyHint: z.ZodNullable<z.ZodBoolean>;
|
|
135
|
+
requiresHumanDecision: z.ZodBoolean;
|
|
136
|
+
businessStateChecked: z.ZodLiteral<false>;
|
|
137
|
+
schemaSha256: z.ZodOptional<z.ZodString>;
|
|
138
|
+
definition: z.ZodOptional<z.ZodObject<{
|
|
139
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
140
|
+
schemaSha256: z.ZodString;
|
|
141
|
+
definition: z.ZodObject<{
|
|
142
|
+
name: z.ZodString;
|
|
143
|
+
title: z.ZodOptional<z.ZodString>;
|
|
144
|
+
description: z.ZodOptional<z.ZodString>;
|
|
145
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
146
|
+
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
147
|
+
annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
148
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
149
|
+
}, z.core.$strict>;
|
|
150
|
+
authority: z.ZodObject<{
|
|
151
|
+
discoveryIsAuthority: z.ZodLiteral<false>;
|
|
152
|
+
callsReauthorize: z.ZodLiteral<true>;
|
|
153
|
+
}, z.core.$strict>;
|
|
154
|
+
}, z.core.$strict>>;
|
|
155
|
+
supportsValidateOnly: z.ZodOptional<z.ZodBoolean>;
|
|
156
|
+
}, z.core.$strict>>;
|
|
157
|
+
}, z.core.$strict>;
|
|
100
158
|
export type CapabilityQuery = z.infer<typeof capabilityQuerySchema>;
|
|
101
159
|
export type CapabilitySummary = z.infer<typeof capabilitySummarySchema>;
|
|
102
160
|
export type CapabilityPage = z.infer<typeof capabilityPageSchema>;
|
|
103
161
|
export type CapabilityDefinition = z.infer<typeof capabilityDefinitionSchema>;
|
|
162
|
+
export type AgentCapabilityPage = z.infer<typeof agentCapabilityPageSchema>;
|
|
@@ -33,7 +33,11 @@ export * from './execution/index.js';
|
|
|
33
33
|
export * from './guidance.js';
|
|
34
34
|
export * from './read-receipt.js';
|
|
35
35
|
export * from './capabilities.js';
|
|
36
|
+
export * from './input-repair.js';
|
|
36
37
|
export * from './capability-outcome.js';
|
|
37
38
|
export * from './business-search.js';
|
|
38
39
|
export * from './compact-surface.js';
|
|
39
40
|
export * from './document-page.js';
|
|
41
|
+
export * from './test-records.js';
|
|
42
|
+
export * from './validation.js';
|
|
43
|
+
export * from './publication-preflight.js';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const capabilityInputRepairSchema: z.ZodObject<{
|
|
3
|
+
phase: z.ZodLiteral<"INPUT">;
|
|
4
|
+
handlerEntered: z.ZodLiteral<false>;
|
|
5
|
+
issues: z.ZodArray<z.ZodObject<{
|
|
6
|
+
field: z.ZodString;
|
|
7
|
+
message: z.ZodLiteral<"Value does not match the declared schema.">;
|
|
8
|
+
expectedType: z.ZodOptional<z.ZodEnum<{
|
|
9
|
+
array: "array";
|
|
10
|
+
boolean: "boolean";
|
|
11
|
+
integer: "integer";
|
|
12
|
+
null: "null";
|
|
13
|
+
number: "number";
|
|
14
|
+
object: "object";
|
|
15
|
+
string: "string";
|
|
16
|
+
}>>;
|
|
17
|
+
allowedRange: z.ZodOptional<z.ZodObject<{
|
|
18
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
}, z.core.$strict>>;
|
|
21
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
enum: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
24
|
+
}, z.core.$strict>>;
|
|
25
|
+
argumentPatch: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
26
|
+
schema: z.ZodObject<{
|
|
27
|
+
tool: z.ZodLiteral<"cf_describe_capability">;
|
|
28
|
+
arguments: z.ZodObject<{
|
|
29
|
+
name: z.ZodString;
|
|
30
|
+
}, z.core.$strict>;
|
|
31
|
+
}, z.core.$strict>;
|
|
32
|
+
}, z.core.$strict>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const publicationPreflightSchema: import("zod").ZodObject<{
|
|
2
|
+
packageCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3
|
+
targetKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
|
+
destinationCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5
|
+
programCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6
|
+
}, import("zod/v4/core").$strict>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const testRecordSaveSchema: z.ZodObject<{
|
|
3
|
+
recordId: z.ZodString;
|
|
4
|
+
expectedVersion: z.ZodNumber;
|
|
5
|
+
label: z.ZodString;
|
|
6
|
+
payload: z.ZodString;
|
|
7
|
+
requestId: z.ZodString;
|
|
8
|
+
validateOnly: z.ZodDefault<z.ZodBoolean>;
|
|
9
|
+
}, z.core.$strict>;
|
|
10
|
+
export declare const testRecordReadSchema: z.ZodObject<{
|
|
11
|
+
recordId: z.ZodString;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
export declare const testRecordCleanupSchema: z.ZodObject<{
|
|
14
|
+
records: z.ZodArray<z.ZodObject<{
|
|
15
|
+
recordId: z.ZodString;
|
|
16
|
+
expectedVersion: z.ZodNumber;
|
|
17
|
+
}, z.core.$strict>>;
|
|
18
|
+
requestId: z.ZodString;
|
|
19
|
+
validateOnly: z.ZodDefault<z.ZodBoolean>;
|
|
20
|
+
}, z.core.$strict>;
|
|
21
|
+
export declare const testRecordReceiptSchema: z.ZodObject<{
|
|
22
|
+
operation: z.ZodEnum<{
|
|
23
|
+
CLEANUP: "CLEANUP";
|
|
24
|
+
SAVE: "SAVE";
|
|
25
|
+
}>;
|
|
26
|
+
requestId: z.ZodString;
|
|
27
|
+
}, z.core.$strict>;
|
|
28
|
+
export declare const testRecordRejectionCodes: readonly ['MCP_TEST_RECORD_CONFLICT', 'MCP_TEST_RECORD_NOT_FOUND', 'MCP_TEST_RECORD_CLEANED', 'IDEMPOTENCY_CONFLICT'];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const capabilityValidationSchema: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
expectedSchemaSha256: z.ZodString;
|
|
5
|
+
arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6
|
+
validateOnly: z.ZodDefault<z.ZodLiteral<true>>;
|
|
7
|
+
}, z.core.$strict>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const eventBacklogObservationSchema: z.ZodObject<{
|
|
3
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
4
|
+
observedAt: z.ZodString;
|
|
5
|
+
outbox: z.ZodObject<{
|
|
6
|
+
pendingCount: z.ZodNumber;
|
|
7
|
+
oldestPendingAt: z.ZodNullable<z.ZodString>;
|
|
8
|
+
oldestPendingAgeMs: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
oldestKnownPendingAt: z.ZodNullable<z.ZodString>;
|
|
10
|
+
unknownAgeCount: z.ZodNumber;
|
|
11
|
+
reasons: z.ZodArray<z.ZodObject<{
|
|
12
|
+
status: z.ZodString;
|
|
13
|
+
reasonCode: z.ZodNullable<z.ZodString>;
|
|
14
|
+
count: z.ZodNumber;
|
|
15
|
+
}, z.core.$strict>>;
|
|
16
|
+
reasonsTruncated: z.ZodBoolean;
|
|
17
|
+
}, z.core.$strict>;
|
|
18
|
+
unstaged: z.ZodObject<{
|
|
19
|
+
deliveryCount: z.ZodNumber;
|
|
20
|
+
oldestRecordedAt: z.ZodNullable<z.ZodString>;
|
|
21
|
+
}, z.core.$strict>;
|
|
22
|
+
inbox: z.ZodObject<{
|
|
23
|
+
pendingCount: z.ZodNumber;
|
|
24
|
+
oldestPendingAt: z.ZodNullable<z.ZodString>;
|
|
25
|
+
oldestPendingAgeMs: z.ZodNullable<z.ZodNumber>;
|
|
26
|
+
oldestKnownPendingAt: z.ZodNullable<z.ZodString>;
|
|
27
|
+
unknownAgeCount: z.ZodNumber;
|
|
28
|
+
reasons: z.ZodArray<z.ZodObject<{
|
|
29
|
+
status: z.ZodString;
|
|
30
|
+
reasonCode: z.ZodNullable<z.ZodString>;
|
|
31
|
+
count: z.ZodNumber;
|
|
32
|
+
}, z.core.$strict>>;
|
|
33
|
+
reasonsTruncated: z.ZodBoolean;
|
|
34
|
+
pendingBaselines: z.ZodNumber;
|
|
35
|
+
sourceGapState: z.ZodLiteral<"NOT_OBSERVED">;
|
|
36
|
+
}, z.core.$strict>;
|
|
37
|
+
quarantine: z.ZodObject<{
|
|
38
|
+
attributedRouteAttempts: z.ZodNumber;
|
|
39
|
+
coverage: z.ZodLiteral<"LOCAL_ROUTE_ATTEMPTS_ONLY">;
|
|
40
|
+
reasons: z.ZodArray<z.ZodObject<{
|
|
41
|
+
status: z.ZodString;
|
|
42
|
+
reasonCode: z.ZodNullable<z.ZodString>;
|
|
43
|
+
count: z.ZodNumber;
|
|
44
|
+
}, z.core.$strict>>;
|
|
45
|
+
reasonsTruncated: z.ZodBoolean;
|
|
46
|
+
}, z.core.$strict>;
|
|
47
|
+
}, z.core.$strict>;
|
|
@@ -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';
|