@native-marketing/sdk 0.2.0 → 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 +18 -0
- package/dist/index.js +214 -8
- package/package.json +1 -1
- 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
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const marketingReviewDecidedDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
4
|
+
projectRef: z.ZodString;
|
|
5
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
6
|
+
resourceRef: z.ZodString;
|
|
7
|
+
resourceCode: z.ZodOptional<z.ZodString>;
|
|
8
|
+
decidedAt: z.ZodString;
|
|
9
|
+
resourceKind: z.ZodLiteral<"CANDIDATE">;
|
|
10
|
+
decision: z.ZodEnum<{
|
|
11
|
+
REJECTED: "REJECTED";
|
|
12
|
+
SELECTED: "SELECTED";
|
|
13
|
+
}>;
|
|
14
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
15
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
16
|
+
projectRef: z.ZodString;
|
|
17
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
18
|
+
resourceRef: z.ZodString;
|
|
19
|
+
resourceCode: z.ZodOptional<z.ZodString>;
|
|
20
|
+
decidedAt: z.ZodString;
|
|
21
|
+
resourceKind: z.ZodLiteral<"KERNEL">;
|
|
22
|
+
decision: z.ZodEnum<{
|
|
23
|
+
APPROVED: "APPROVED";
|
|
24
|
+
REJECTED: "REJECTED";
|
|
25
|
+
}>;
|
|
26
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
27
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
28
|
+
projectRef: z.ZodString;
|
|
29
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
30
|
+
resourceRef: z.ZodString;
|
|
31
|
+
resourceCode: z.ZodOptional<z.ZodString>;
|
|
32
|
+
decidedAt: z.ZodString;
|
|
33
|
+
resourceKind: z.ZodLiteral<"ASSET">;
|
|
34
|
+
decision: z.ZodEnum<{
|
|
35
|
+
APPROVED: "APPROVED";
|
|
36
|
+
REJECTED: "REJECTED";
|
|
37
|
+
}>;
|
|
38
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
39
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
40
|
+
projectRef: z.ZodString;
|
|
41
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
42
|
+
resourceRef: z.ZodString;
|
|
43
|
+
resourceCode: z.ZodOptional<z.ZodString>;
|
|
44
|
+
decidedAt: z.ZodString;
|
|
45
|
+
resourceKind: z.ZodLiteral<"PACKAGE">;
|
|
46
|
+
decision: z.ZodLiteral<"REJECTED">;
|
|
47
|
+
}, z.core.$strict>], "resourceKind">;
|
|
48
|
+
export declare const marketingContentReadyDataSchema: z.ZodObject<{
|
|
49
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
50
|
+
projectRef: z.ZodString;
|
|
51
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
52
|
+
packageRef: z.ZodString;
|
|
53
|
+
packageCode: z.ZodOptional<z.ZodString>;
|
|
54
|
+
manifestHash: z.ZodString;
|
|
55
|
+
readyAt: z.ZodString;
|
|
56
|
+
}, z.core.$strict>;
|
|
57
|
+
export declare const marketingPublicationRecordedDataSchema: z.ZodObject<{
|
|
58
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
59
|
+
projectRef: z.ZodString;
|
|
60
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
61
|
+
publicationRef: z.ZodString;
|
|
62
|
+
publicationCode: z.ZodOptional<z.ZodString>;
|
|
63
|
+
packageRef: z.ZodString;
|
|
64
|
+
targetKey: z.ZodString;
|
|
65
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
66
|
+
recordedAt: z.ZodString;
|
|
67
|
+
evidence: z.ZodLiteral<"NATIVE_RECORDED">;
|
|
68
|
+
}, z.core.$strict>;
|
|
69
|
+
export declare const marketingFeedbackChangedDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
70
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
71
|
+
projectRef: z.ZodString;
|
|
72
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
73
|
+
observationRef: z.ZodString;
|
|
74
|
+
observationCode: z.ZodOptional<z.ZodString>;
|
|
75
|
+
destinationCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
changedAt: z.ZodString;
|
|
77
|
+
factId: z.ZodNull;
|
|
78
|
+
revision: z.ZodNull;
|
|
79
|
+
operation: z.ZodLiteral<"OBSERVE">;
|
|
80
|
+
state: z.ZodLiteral<"CURRENT">;
|
|
81
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
82
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
83
|
+
projectRef: z.ZodString;
|
|
84
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
85
|
+
observationRef: z.ZodString;
|
|
86
|
+
observationCode: z.ZodOptional<z.ZodString>;
|
|
87
|
+
destinationCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
88
|
+
changedAt: z.ZodString;
|
|
89
|
+
factId: z.ZodString;
|
|
90
|
+
revision: z.ZodNumber;
|
|
91
|
+
operation: z.ZodLiteral<"OBSERVE">;
|
|
92
|
+
state: z.ZodLiteral<"CURRENT">;
|
|
93
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
94
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
95
|
+
projectRef: z.ZodString;
|
|
96
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
97
|
+
observationRef: z.ZodString;
|
|
98
|
+
observationCode: z.ZodOptional<z.ZodString>;
|
|
99
|
+
destinationCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
|
+
changedAt: z.ZodString;
|
|
101
|
+
factId: z.ZodString;
|
|
102
|
+
revision: z.ZodNumber;
|
|
103
|
+
operation: z.ZodLiteral<"CORRECT">;
|
|
104
|
+
state: z.ZodLiteral<"CURRENT">;
|
|
105
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
106
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
107
|
+
projectRef: z.ZodString;
|
|
108
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
109
|
+
observationRef: z.ZodString;
|
|
110
|
+
observationCode: z.ZodOptional<z.ZodString>;
|
|
111
|
+
destinationCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
112
|
+
changedAt: z.ZodString;
|
|
113
|
+
factId: z.ZodString;
|
|
114
|
+
revision: z.ZodNumber;
|
|
115
|
+
operation: z.ZodLiteral<"WITHDRAW">;
|
|
116
|
+
state: z.ZodLiteral<"WITHDRAWN">;
|
|
117
|
+
}, z.core.$strict>]>;
|
|
118
|
+
export declare const marketingEventDefinitions: readonly [{
|
|
119
|
+
readonly type: 'io.nativemarketing.knowledge-reference.adopted.v1';
|
|
120
|
+
readonly dataschema: 'urn:native-marketing:schemas:knowledge-reference-adopted:v1';
|
|
121
|
+
readonly dataSchema: z.ZodObject<{
|
|
122
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
123
|
+
sourceRef: z.ZodString;
|
|
124
|
+
knowledgeRef: z.ZodString;
|
|
125
|
+
sourceTenantId: z.ZodString;
|
|
126
|
+
identityHash: z.ZodString;
|
|
127
|
+
}, z.core.$strict>;
|
|
128
|
+
readonly description: 'An exact Knowledge reference was explicitly adopted. No approval, publication or Mission completion. Source bytes remain at Knowledge.';
|
|
129
|
+
readonly tools: readonly ['cf_read_source', 'cf_get_knowledge_adoption_receipt'];
|
|
130
|
+
readonly providerPath: '/mcp/tenants/{tenantCode}';
|
|
131
|
+
}, {
|
|
132
|
+
readonly type: 'io.nativemarketing.review.decided.v1';
|
|
133
|
+
readonly dataschema: 'urn:native-marketing:schemas:review-decided:v1';
|
|
134
|
+
readonly dataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
135
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
136
|
+
projectRef: z.ZodString;
|
|
137
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
138
|
+
resourceRef: z.ZodString;
|
|
139
|
+
resourceCode: z.ZodOptional<z.ZodString>;
|
|
140
|
+
decidedAt: z.ZodString;
|
|
141
|
+
resourceKind: z.ZodLiteral<"CANDIDATE">;
|
|
142
|
+
decision: z.ZodEnum<{
|
|
143
|
+
REJECTED: "REJECTED";
|
|
144
|
+
SELECTED: "SELECTED";
|
|
145
|
+
}>;
|
|
146
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
147
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
148
|
+
projectRef: z.ZodString;
|
|
149
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
150
|
+
resourceRef: z.ZodString;
|
|
151
|
+
resourceCode: z.ZodOptional<z.ZodString>;
|
|
152
|
+
decidedAt: z.ZodString;
|
|
153
|
+
resourceKind: z.ZodLiteral<"KERNEL">;
|
|
154
|
+
decision: z.ZodEnum<{
|
|
155
|
+
APPROVED: "APPROVED";
|
|
156
|
+
REJECTED: "REJECTED";
|
|
157
|
+
}>;
|
|
158
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
159
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
160
|
+
projectRef: z.ZodString;
|
|
161
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
162
|
+
resourceRef: z.ZodString;
|
|
163
|
+
resourceCode: z.ZodOptional<z.ZodString>;
|
|
164
|
+
decidedAt: z.ZodString;
|
|
165
|
+
resourceKind: z.ZodLiteral<"ASSET">;
|
|
166
|
+
decision: z.ZodEnum<{
|
|
167
|
+
APPROVED: "APPROVED";
|
|
168
|
+
REJECTED: "REJECTED";
|
|
169
|
+
}>;
|
|
170
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
171
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
172
|
+
projectRef: z.ZodString;
|
|
173
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
174
|
+
resourceRef: z.ZodString;
|
|
175
|
+
resourceCode: z.ZodOptional<z.ZodString>;
|
|
176
|
+
decidedAt: z.ZodString;
|
|
177
|
+
resourceKind: z.ZodLiteral<"PACKAGE">;
|
|
178
|
+
decision: z.ZodLiteral<"REJECTED">;
|
|
179
|
+
}, z.core.$strict>], "resourceKind">;
|
|
180
|
+
readonly description: 'A Native editorial review decision was committed. Package approval uses content.ready only. Not an external publication or marketing outcome.';
|
|
181
|
+
readonly tools: readonly ['cf_get_editorial_proposal', 'cf_read_business_document'];
|
|
182
|
+
readonly providerPath: '/mcp/projects/{projectCode}';
|
|
183
|
+
}, {
|
|
184
|
+
readonly type: 'io.nativemarketing.content.ready.v1';
|
|
185
|
+
readonly dataschema: 'urn:native-marketing:schemas:content-ready:v1';
|
|
186
|
+
readonly dataSchema: z.ZodObject<{
|
|
187
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
188
|
+
projectRef: z.ZodString;
|
|
189
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
190
|
+
packageRef: z.ZodString;
|
|
191
|
+
packageCode: z.ZodOptional<z.ZodString>;
|
|
192
|
+
manifestHash: z.ZodString;
|
|
193
|
+
readyAt: z.ZodString;
|
|
194
|
+
}, z.core.$strict>;
|
|
195
|
+
readonly description: 'An immutable content package passed its Native review and became ready to publish. Not an export, external delivery or publication.';
|
|
196
|
+
readonly tools: readonly ['cf_read_content_package', 'cf_get_package_delivery'];
|
|
197
|
+
readonly providerPath: '/mcp/projects/{projectCode}';
|
|
198
|
+
}, {
|
|
199
|
+
readonly type: 'io.nativemarketing.publication.recorded.v1';
|
|
200
|
+
readonly dataschema: 'urn:native-marketing:schemas:publication-recorded:v1';
|
|
201
|
+
readonly dataSchema: z.ZodObject<{
|
|
202
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
203
|
+
projectRef: z.ZodString;
|
|
204
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
205
|
+
publicationRef: z.ZodString;
|
|
206
|
+
publicationCode: z.ZodOptional<z.ZodString>;
|
|
207
|
+
packageRef: z.ZodString;
|
|
208
|
+
targetKey: z.ZodString;
|
|
209
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
210
|
+
recordedAt: z.ZodString;
|
|
211
|
+
evidence: z.ZodLiteral<"NATIVE_RECORDED">;
|
|
212
|
+
}, z.core.$strict>;
|
|
213
|
+
readonly description: 'Native saved external publication evidence. It did not execute publication or independently verify the platform. Read the original evidence under current permission.';
|
|
214
|
+
readonly tools: readonly ['cf_get_publication'];
|
|
215
|
+
readonly providerPath: '/mcp/projects/{projectCode}';
|
|
216
|
+
}, {
|
|
217
|
+
readonly type: 'io.nativemarketing.feedback.changed.v1';
|
|
218
|
+
readonly dataschema: 'urn:native-marketing:schemas:feedback-changed:v1';
|
|
219
|
+
readonly dataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
220
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
221
|
+
projectRef: z.ZodString;
|
|
222
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
223
|
+
observationRef: z.ZodString;
|
|
224
|
+
observationCode: z.ZodOptional<z.ZodString>;
|
|
225
|
+
destinationCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
226
|
+
changedAt: z.ZodString;
|
|
227
|
+
factId: z.ZodNull;
|
|
228
|
+
revision: z.ZodNull;
|
|
229
|
+
operation: z.ZodLiteral<"OBSERVE">;
|
|
230
|
+
state: z.ZodLiteral<"CURRENT">;
|
|
231
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
232
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
233
|
+
projectRef: z.ZodString;
|
|
234
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
235
|
+
observationRef: z.ZodString;
|
|
236
|
+
observationCode: z.ZodOptional<z.ZodString>;
|
|
237
|
+
destinationCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
238
|
+
changedAt: z.ZodString;
|
|
239
|
+
factId: z.ZodString;
|
|
240
|
+
revision: z.ZodNumber;
|
|
241
|
+
operation: z.ZodLiteral<"OBSERVE">;
|
|
242
|
+
state: z.ZodLiteral<"CURRENT">;
|
|
243
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
244
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
245
|
+
projectRef: z.ZodString;
|
|
246
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
247
|
+
observationRef: z.ZodString;
|
|
248
|
+
observationCode: z.ZodOptional<z.ZodString>;
|
|
249
|
+
destinationCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
250
|
+
changedAt: z.ZodString;
|
|
251
|
+
factId: z.ZodString;
|
|
252
|
+
revision: z.ZodNumber;
|
|
253
|
+
operation: z.ZodLiteral<"CORRECT">;
|
|
254
|
+
state: z.ZodLiteral<"CURRENT">;
|
|
255
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
256
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
257
|
+
projectRef: z.ZodString;
|
|
258
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
259
|
+
observationRef: z.ZodString;
|
|
260
|
+
observationCode: z.ZodOptional<z.ZodString>;
|
|
261
|
+
destinationCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
262
|
+
changedAt: z.ZodString;
|
|
263
|
+
factId: z.ZodString;
|
|
264
|
+
revision: z.ZodNumber;
|
|
265
|
+
operation: z.ZodLiteral<"WITHDRAW">;
|
|
266
|
+
state: z.ZodLiteral<"WITHDRAWN">;
|
|
267
|
+
}, z.core.$strict>]>;
|
|
268
|
+
readonly description: 'A current Native feedback fact revision was committed, corrected or withdrawn. Withdrawal is not zero. No metrics, source authentication, strategy change or outcome assertion in this event.';
|
|
269
|
+
readonly tools: readonly ['cf_get_channel_feedback_fact', 'cf_get_channel_feedback', 'cf_search_business', 'cf_read_business_content'];
|
|
270
|
+
readonly providerPath: '/mcp/projects/{projectCode}';
|
|
271
|
+
}];
|
|
272
|
+
export declare function marketingEventDefinition(type: string): {
|
|
273
|
+
readonly type: 'io.nativemarketing.knowledge-reference.adopted.v1';
|
|
274
|
+
readonly dataschema: 'urn:native-marketing:schemas:knowledge-reference-adopted:v1';
|
|
275
|
+
readonly dataSchema: z.ZodObject<{
|
|
276
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
277
|
+
sourceRef: z.ZodString;
|
|
278
|
+
knowledgeRef: z.ZodString;
|
|
279
|
+
sourceTenantId: z.ZodString;
|
|
280
|
+
identityHash: z.ZodString;
|
|
281
|
+
}, z.core.$strict>;
|
|
282
|
+
readonly description: 'An exact Knowledge reference was explicitly adopted. No approval, publication or Mission completion. Source bytes remain at Knowledge.';
|
|
283
|
+
readonly tools: readonly ['cf_read_source', 'cf_get_knowledge_adoption_receipt'];
|
|
284
|
+
readonly providerPath: '/mcp/tenants/{tenantCode}';
|
|
285
|
+
} | {
|
|
286
|
+
readonly type: 'io.nativemarketing.review.decided.v1';
|
|
287
|
+
readonly dataschema: 'urn:native-marketing:schemas:review-decided:v1';
|
|
288
|
+
readonly dataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
289
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
290
|
+
projectRef: z.ZodString;
|
|
291
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
292
|
+
resourceRef: z.ZodString;
|
|
293
|
+
resourceCode: z.ZodOptional<z.ZodString>;
|
|
294
|
+
decidedAt: z.ZodString;
|
|
295
|
+
resourceKind: z.ZodLiteral<"CANDIDATE">;
|
|
296
|
+
decision: z.ZodEnum<{
|
|
297
|
+
REJECTED: "REJECTED";
|
|
298
|
+
SELECTED: "SELECTED";
|
|
299
|
+
}>;
|
|
300
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
301
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
302
|
+
projectRef: z.ZodString;
|
|
303
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
304
|
+
resourceRef: z.ZodString;
|
|
305
|
+
resourceCode: z.ZodOptional<z.ZodString>;
|
|
306
|
+
decidedAt: z.ZodString;
|
|
307
|
+
resourceKind: z.ZodLiteral<"KERNEL">;
|
|
308
|
+
decision: z.ZodEnum<{
|
|
309
|
+
APPROVED: "APPROVED";
|
|
310
|
+
REJECTED: "REJECTED";
|
|
311
|
+
}>;
|
|
312
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
313
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
314
|
+
projectRef: z.ZodString;
|
|
315
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
316
|
+
resourceRef: z.ZodString;
|
|
317
|
+
resourceCode: z.ZodOptional<z.ZodString>;
|
|
318
|
+
decidedAt: z.ZodString;
|
|
319
|
+
resourceKind: z.ZodLiteral<"ASSET">;
|
|
320
|
+
decision: z.ZodEnum<{
|
|
321
|
+
APPROVED: "APPROVED";
|
|
322
|
+
REJECTED: "REJECTED";
|
|
323
|
+
}>;
|
|
324
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
325
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
326
|
+
projectRef: z.ZodString;
|
|
327
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
328
|
+
resourceRef: z.ZodString;
|
|
329
|
+
resourceCode: z.ZodOptional<z.ZodString>;
|
|
330
|
+
decidedAt: z.ZodString;
|
|
331
|
+
resourceKind: z.ZodLiteral<"PACKAGE">;
|
|
332
|
+
decision: z.ZodLiteral<"REJECTED">;
|
|
333
|
+
}, z.core.$strict>], "resourceKind">;
|
|
334
|
+
readonly description: 'A Native editorial review decision was committed. Package approval uses content.ready only. Not an external publication or marketing outcome.';
|
|
335
|
+
readonly tools: readonly ['cf_get_editorial_proposal', 'cf_read_business_document'];
|
|
336
|
+
readonly providerPath: '/mcp/projects/{projectCode}';
|
|
337
|
+
} | {
|
|
338
|
+
readonly type: 'io.nativemarketing.content.ready.v1';
|
|
339
|
+
readonly dataschema: 'urn:native-marketing:schemas:content-ready:v1';
|
|
340
|
+
readonly dataSchema: z.ZodObject<{
|
|
341
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
342
|
+
projectRef: z.ZodString;
|
|
343
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
344
|
+
packageRef: z.ZodString;
|
|
345
|
+
packageCode: z.ZodOptional<z.ZodString>;
|
|
346
|
+
manifestHash: z.ZodString;
|
|
347
|
+
readyAt: z.ZodString;
|
|
348
|
+
}, z.core.$strict>;
|
|
349
|
+
readonly description: 'An immutable content package passed its Native review and became ready to publish. Not an export, external delivery or publication.';
|
|
350
|
+
readonly tools: readonly ['cf_read_content_package', 'cf_get_package_delivery'];
|
|
351
|
+
readonly providerPath: '/mcp/projects/{projectCode}';
|
|
352
|
+
} | {
|
|
353
|
+
readonly type: 'io.nativemarketing.publication.recorded.v1';
|
|
354
|
+
readonly dataschema: 'urn:native-marketing:schemas:publication-recorded:v1';
|
|
355
|
+
readonly dataSchema: z.ZodObject<{
|
|
356
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
357
|
+
projectRef: z.ZodString;
|
|
358
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
359
|
+
publicationRef: z.ZodString;
|
|
360
|
+
publicationCode: z.ZodOptional<z.ZodString>;
|
|
361
|
+
packageRef: z.ZodString;
|
|
362
|
+
targetKey: z.ZodString;
|
|
363
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
364
|
+
recordedAt: z.ZodString;
|
|
365
|
+
evidence: z.ZodLiteral<"NATIVE_RECORDED">;
|
|
366
|
+
}, z.core.$strict>;
|
|
367
|
+
readonly description: 'Native saved external publication evidence. It did not execute publication or independently verify the platform. Read the original evidence under current permission.';
|
|
368
|
+
readonly tools: readonly ['cf_get_publication'];
|
|
369
|
+
readonly providerPath: '/mcp/projects/{projectCode}';
|
|
370
|
+
} | {
|
|
371
|
+
readonly type: 'io.nativemarketing.feedback.changed.v1';
|
|
372
|
+
readonly dataschema: 'urn:native-marketing:schemas:feedback-changed:v1';
|
|
373
|
+
readonly dataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
374
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
375
|
+
projectRef: z.ZodString;
|
|
376
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
377
|
+
observationRef: z.ZodString;
|
|
378
|
+
observationCode: z.ZodOptional<z.ZodString>;
|
|
379
|
+
destinationCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
380
|
+
changedAt: z.ZodString;
|
|
381
|
+
factId: z.ZodNull;
|
|
382
|
+
revision: z.ZodNull;
|
|
383
|
+
operation: z.ZodLiteral<"OBSERVE">;
|
|
384
|
+
state: z.ZodLiteral<"CURRENT">;
|
|
385
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
386
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
387
|
+
projectRef: z.ZodString;
|
|
388
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
389
|
+
observationRef: z.ZodString;
|
|
390
|
+
observationCode: z.ZodOptional<z.ZodString>;
|
|
391
|
+
destinationCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
392
|
+
changedAt: z.ZodString;
|
|
393
|
+
factId: z.ZodString;
|
|
394
|
+
revision: z.ZodNumber;
|
|
395
|
+
operation: z.ZodLiteral<"OBSERVE">;
|
|
396
|
+
state: z.ZodLiteral<"CURRENT">;
|
|
397
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
398
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
399
|
+
projectRef: z.ZodString;
|
|
400
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
401
|
+
observationRef: z.ZodString;
|
|
402
|
+
observationCode: z.ZodOptional<z.ZodString>;
|
|
403
|
+
destinationCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
404
|
+
changedAt: z.ZodString;
|
|
405
|
+
factId: z.ZodString;
|
|
406
|
+
revision: z.ZodNumber;
|
|
407
|
+
operation: z.ZodLiteral<"CORRECT">;
|
|
408
|
+
state: z.ZodLiteral<"CURRENT">;
|
|
409
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
410
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
411
|
+
projectRef: z.ZodString;
|
|
412
|
+
projectCode: z.ZodOptional<z.ZodString>;
|
|
413
|
+
observationRef: z.ZodString;
|
|
414
|
+
observationCode: z.ZodOptional<z.ZodString>;
|
|
415
|
+
destinationCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
416
|
+
changedAt: z.ZodString;
|
|
417
|
+
factId: z.ZodString;
|
|
418
|
+
revision: z.ZodNumber;
|
|
419
|
+
operation: z.ZodLiteral<"WITHDRAW">;
|
|
420
|
+
state: z.ZodLiteral<"WITHDRAWN">;
|
|
421
|
+
}, z.core.$strict>]>;
|
|
422
|
+
readonly description: 'A current Native feedback fact revision was committed, corrected or withdrawn. Withdrawal is not zero. No metrics, source authentication, strategy change or outcome assertion in this event.';
|
|
423
|
+
readonly tools: readonly ['cf_get_channel_feedback_fact', 'cf_get_channel_feedback', 'cf_search_business', 'cf_read_business_content'];
|
|
424
|
+
readonly providerPath: '/mcp/projects/{projectCode}';
|
|
425
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const knowledgeReferenceAdoptedDataSchema: z.ZodObject<{
|
|
3
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
4
|
+
sourceRef: z.ZodString;
|
|
5
|
+
knowledgeRef: z.ZodString;
|
|
6
|
+
sourceTenantId: z.ZodString;
|
|
7
|
+
identityHash: z.ZodString;
|
|
8
|
+
}, z.core.$strict>;
|
|
@@ -129,6 +129,7 @@ export declare const providerEndpointViewSchema: z.ZodString;
|
|
|
129
129
|
export declare const knowledgeV2ProviderSettingsSchema: z.ZodObject<{
|
|
130
130
|
endpoint: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
131
131
|
enabled: z.ZodBoolean;
|
|
132
|
+
resourceTenantId: z.ZodOptional<z.ZodString>;
|
|
132
133
|
entryProjectKey: z.ZodOptional<z.ZodString>;
|
|
133
134
|
}, z.core.$strict>;
|
|
134
135
|
export declare const providerCredentialChangeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -144,6 +145,7 @@ export declare const saveKnowledgeV2ProviderConfigurationSchema: z.ZodObject<{
|
|
|
144
145
|
settings: z.ZodObject<{
|
|
145
146
|
endpoint: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
146
147
|
enabled: z.ZodBoolean;
|
|
148
|
+
resourceTenantId: z.ZodOptional<z.ZodString>;
|
|
147
149
|
entryProjectKey: z.ZodOptional<z.ZodString>;
|
|
148
150
|
}, z.core.$strict>;
|
|
149
151
|
credential: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -162,6 +164,7 @@ export declare const knowledgeV2ProviderConfigurationSchema: z.ZodObject<{
|
|
|
162
164
|
settings: z.ZodObject<{
|
|
163
165
|
endpoint: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
164
166
|
enabled: z.ZodBoolean;
|
|
167
|
+
resourceTenantId: z.ZodOptional<z.ZodString>;
|
|
165
168
|
entryProjectKey: z.ZodOptional<z.ZodString>;
|
|
166
169
|
}, z.core.$strict>;
|
|
167
170
|
credential: z.ZodNullable<z.ZodObject<{
|