@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.
@@ -104,10 +104,130 @@ export declare const knowledgeRichBlockSchema: z.ZodDiscriminatedUnion<[z.ZodObj
104
104
  title: z.ZodNullable<z.ZodString>;
105
105
  caption: z.ZodNullable<z.ZodString>;
106
106
  }, z.core.$loose>], "kind">;
107
+ export declare const knowledgeRichDocumentFormatSchema: z.ZodEnum<{
108
+ RICH_DOCUMENT_V1: "RICH_DOCUMENT_V1";
109
+ TENANT_RICH_DOCUMENT_V1: "TENANT_RICH_DOCUMENT_V1";
110
+ TENANT_RICH_SOURCE_DOCUMENT_V1: "TENANT_RICH_SOURCE_DOCUMENT_V1";
111
+ }>;
112
+ export declare const knowledgeRichDocumentMediaTypeSchema: z.ZodEnum<{
113
+ "application/vnd.knowledge-v2.rich-document+json": "application/vnd.knowledge-v2.rich-document+json";
114
+ "application/vnd.knowledge-v2.tenant-rich-document+json": "application/vnd.knowledge-v2.tenant-rich-document+json";
115
+ "application/vnd.knowledge-v2.tenant-source-document+json": "application/vnd.knowledge-v2.tenant-source-document+json";
116
+ }>;
107
117
  export declare const knowledgeRichDocumentSchema: z.ZodObject<{
108
118
  schemaVersion: z.ZodLiteral<1>;
119
+ title: z.ZodNullable<z.ZodString>;
120
+ blocks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
121
+ ordinal: z.ZodNumber;
122
+ kind: z.ZodLiteral<"HEADING">;
123
+ level: z.ZodNumber;
124
+ text: z.ZodString;
125
+ inlines: z.ZodOptional<z.ZodArray<z.ZodObject<{
126
+ text: z.ZodString;
127
+ href: z.ZodNullable<z.ZodString>;
128
+ }, z.core.$strip>>>;
129
+ }, z.core.$loose>, z.ZodObject<{
130
+ ordinal: z.ZodNumber;
131
+ kind: z.ZodLiteral<"PARAGRAPH">;
132
+ text: z.ZodString;
133
+ inlines: z.ZodOptional<z.ZodArray<z.ZodObject<{
134
+ text: z.ZodString;
135
+ href: z.ZodNullable<z.ZodString>;
136
+ }, z.core.$strip>>>;
137
+ }, z.core.$loose>, z.ZodObject<{
138
+ ordinal: z.ZodNumber;
139
+ kind: z.ZodLiteral<"LIST_ITEM">;
140
+ text: z.ZodString;
141
+ inlines: z.ZodOptional<z.ZodArray<z.ZodObject<{
142
+ text: z.ZodString;
143
+ href: z.ZodNullable<z.ZodString>;
144
+ }, z.core.$strip>>>;
145
+ ordered: z.ZodBoolean;
146
+ level: z.ZodNumber;
147
+ index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
148
+ }, z.core.$loose>, z.ZodObject<{
149
+ ordinal: z.ZodNumber;
150
+ kind: z.ZodLiteral<"QUOTE">;
151
+ text: z.ZodString;
152
+ inlines: z.ZodOptional<z.ZodArray<z.ZodObject<{
153
+ text: z.ZodString;
154
+ href: z.ZodNullable<z.ZodString>;
155
+ }, z.core.$strip>>>;
156
+ }, z.core.$loose>, z.ZodObject<{
157
+ ordinal: z.ZodNumber;
158
+ kind: z.ZodLiteral<"CODE">;
159
+ text: z.ZodString;
160
+ language: z.ZodNullable<z.ZodString>;
161
+ }, z.core.$loose>, z.ZodObject<{
162
+ ordinal: z.ZodNumber;
163
+ kind: z.ZodLiteral<"DIVIDER">;
164
+ }, z.core.$loose>, z.ZodObject<{
165
+ ordinal: z.ZodNumber;
166
+ kind: z.ZodLiteral<"TABLE">;
167
+ rows: z.ZodArray<z.ZodObject<{
168
+ cells: z.ZodArray<z.ZodObject<{
169
+ text: z.ZodString;
170
+ header: z.ZodBoolean;
171
+ }, z.core.$strip>>;
172
+ }, z.core.$strip>>;
173
+ }, z.core.$loose>, z.ZodObject<{
174
+ ordinal: z.ZodNumber;
175
+ availability: z.ZodEnum<{
176
+ MIRRORED: "MIRRORED";
177
+ REMOTE_ONLY: "REMOTE_ONLY";
178
+ UNAVAILABLE: "UNAVAILABLE";
179
+ }>;
180
+ mediaRef: z.ZodNullable<z.ZodString>;
181
+ evidenceRef: z.ZodNullable<z.ZodString>;
182
+ contentHash: z.ZodNullable<z.ZodString>;
183
+ mediaType: z.ZodNullable<z.ZodString>;
184
+ byteLength: z.ZodNullable<z.ZodNumber>;
185
+ caption: z.ZodNullable<z.ZodString>;
186
+ kind: z.ZodLiteral<"IMAGE">;
187
+ alt: z.ZodNullable<z.ZodString>;
188
+ }, z.core.$loose>, z.ZodObject<{
189
+ ordinal: z.ZodNumber;
190
+ availability: z.ZodEnum<{
191
+ MIRRORED: "MIRRORED";
192
+ REMOTE_ONLY: "REMOTE_ONLY";
193
+ UNAVAILABLE: "UNAVAILABLE";
194
+ }>;
195
+ mediaRef: z.ZodNullable<z.ZodString>;
196
+ evidenceRef: z.ZodNullable<z.ZodString>;
197
+ contentHash: z.ZodNullable<z.ZodString>;
198
+ mediaType: z.ZodNullable<z.ZodString>;
199
+ byteLength: z.ZodNullable<z.ZodNumber>;
200
+ caption: z.ZodNullable<z.ZodString>;
201
+ kind: z.ZodLiteral<"VIDEO">;
202
+ title: z.ZodNullable<z.ZodString>;
203
+ }, z.core.$loose>, z.ZodObject<{
204
+ ordinal: z.ZodNumber;
205
+ availability: z.ZodEnum<{
206
+ MIRRORED: "MIRRORED";
207
+ REMOTE_ONLY: "REMOTE_ONLY";
208
+ UNAVAILABLE: "UNAVAILABLE";
209
+ }>;
210
+ mediaRef: z.ZodNullable<z.ZodString>;
211
+ evidenceRef: z.ZodNullable<z.ZodString>;
212
+ contentHash: z.ZodNullable<z.ZodString>;
213
+ mediaType: z.ZodNullable<z.ZodString>;
214
+ byteLength: z.ZodNullable<z.ZodNumber>;
215
+ caption: z.ZodNullable<z.ZodString>;
216
+ kind: z.ZodLiteral<"AUDIO">;
217
+ title: z.ZodNullable<z.ZodString>;
218
+ }, z.core.$loose>, z.ZodObject<{
219
+ ordinal: z.ZodNumber;
220
+ kind: z.ZodLiteral<"EMBED">;
221
+ sourceUrl: z.ZodString;
222
+ title: z.ZodNullable<z.ZodString>;
223
+ caption: z.ZodNullable<z.ZodString>;
224
+ }, z.core.$loose>], "kind">>;
225
+ mediaEvidenceRefs: z.ZodArray<z.ZodString>;
109
226
  format: z.ZodLiteral<"RICH_DOCUMENT_V1">;
110
227
  projectKey: z.ZodString;
228
+ }, z.core.$loose>;
229
+ export declare const knowledgeReadableDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
230
+ schemaVersion: z.ZodLiteral<1>;
111
231
  title: z.ZodNullable<z.ZodString>;
112
232
  blocks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
113
233
  ordinal: z.ZodNumber;
@@ -215,5 +335,122 @@ export declare const knowledgeRichDocumentSchema: z.ZodObject<{
215
335
  caption: z.ZodNullable<z.ZodString>;
216
336
  }, z.core.$loose>], "kind">>;
217
337
  mediaEvidenceRefs: z.ZodArray<z.ZodString>;
218
- }, z.core.$loose>;
338
+ format: z.ZodLiteral<"RICH_DOCUMENT_V1">;
339
+ projectKey: z.ZodString;
340
+ }, z.core.$loose>, z.ZodObject<{
341
+ schemaVersion: z.ZodLiteral<1>;
342
+ title: z.ZodNullable<z.ZodString>;
343
+ blocks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
344
+ ordinal: z.ZodNumber;
345
+ kind: z.ZodLiteral<"HEADING">;
346
+ level: z.ZodNumber;
347
+ text: z.ZodString;
348
+ inlines: z.ZodOptional<z.ZodArray<z.ZodObject<{
349
+ text: z.ZodString;
350
+ href: z.ZodNullable<z.ZodString>;
351
+ }, z.core.$strip>>>;
352
+ }, z.core.$loose>, z.ZodObject<{
353
+ ordinal: z.ZodNumber;
354
+ kind: z.ZodLiteral<"PARAGRAPH">;
355
+ text: z.ZodString;
356
+ inlines: z.ZodOptional<z.ZodArray<z.ZodObject<{
357
+ text: z.ZodString;
358
+ href: z.ZodNullable<z.ZodString>;
359
+ }, z.core.$strip>>>;
360
+ }, z.core.$loose>, z.ZodObject<{
361
+ ordinal: z.ZodNumber;
362
+ kind: z.ZodLiteral<"LIST_ITEM">;
363
+ text: z.ZodString;
364
+ inlines: z.ZodOptional<z.ZodArray<z.ZodObject<{
365
+ text: z.ZodString;
366
+ href: z.ZodNullable<z.ZodString>;
367
+ }, z.core.$strip>>>;
368
+ ordered: z.ZodBoolean;
369
+ level: z.ZodNumber;
370
+ index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
371
+ }, z.core.$loose>, z.ZodObject<{
372
+ ordinal: z.ZodNumber;
373
+ kind: z.ZodLiteral<"QUOTE">;
374
+ text: z.ZodString;
375
+ inlines: z.ZodOptional<z.ZodArray<z.ZodObject<{
376
+ text: z.ZodString;
377
+ href: z.ZodNullable<z.ZodString>;
378
+ }, z.core.$strip>>>;
379
+ }, z.core.$loose>, z.ZodObject<{
380
+ ordinal: z.ZodNumber;
381
+ kind: z.ZodLiteral<"CODE">;
382
+ text: z.ZodString;
383
+ language: z.ZodNullable<z.ZodString>;
384
+ }, z.core.$loose>, z.ZodObject<{
385
+ ordinal: z.ZodNumber;
386
+ kind: z.ZodLiteral<"DIVIDER">;
387
+ }, z.core.$loose>, z.ZodObject<{
388
+ ordinal: z.ZodNumber;
389
+ kind: z.ZodLiteral<"TABLE">;
390
+ rows: z.ZodArray<z.ZodObject<{
391
+ cells: z.ZodArray<z.ZodObject<{
392
+ text: z.ZodString;
393
+ header: z.ZodBoolean;
394
+ }, z.core.$strip>>;
395
+ }, z.core.$strip>>;
396
+ }, z.core.$loose>, z.ZodObject<{
397
+ ordinal: z.ZodNumber;
398
+ availability: z.ZodEnum<{
399
+ MIRRORED: "MIRRORED";
400
+ REMOTE_ONLY: "REMOTE_ONLY";
401
+ UNAVAILABLE: "UNAVAILABLE";
402
+ }>;
403
+ mediaRef: z.ZodNullable<z.ZodString>;
404
+ evidenceRef: z.ZodNullable<z.ZodString>;
405
+ contentHash: z.ZodNullable<z.ZodString>;
406
+ mediaType: z.ZodNullable<z.ZodString>;
407
+ byteLength: z.ZodNullable<z.ZodNumber>;
408
+ caption: z.ZodNullable<z.ZodString>;
409
+ kind: z.ZodLiteral<"IMAGE">;
410
+ alt: z.ZodNullable<z.ZodString>;
411
+ }, z.core.$loose>, z.ZodObject<{
412
+ ordinal: z.ZodNumber;
413
+ availability: z.ZodEnum<{
414
+ MIRRORED: "MIRRORED";
415
+ REMOTE_ONLY: "REMOTE_ONLY";
416
+ UNAVAILABLE: "UNAVAILABLE";
417
+ }>;
418
+ mediaRef: z.ZodNullable<z.ZodString>;
419
+ evidenceRef: z.ZodNullable<z.ZodString>;
420
+ contentHash: z.ZodNullable<z.ZodString>;
421
+ mediaType: z.ZodNullable<z.ZodString>;
422
+ byteLength: z.ZodNullable<z.ZodNumber>;
423
+ caption: z.ZodNullable<z.ZodString>;
424
+ kind: z.ZodLiteral<"VIDEO">;
425
+ title: z.ZodNullable<z.ZodString>;
426
+ }, z.core.$loose>, z.ZodObject<{
427
+ ordinal: z.ZodNumber;
428
+ availability: z.ZodEnum<{
429
+ MIRRORED: "MIRRORED";
430
+ REMOTE_ONLY: "REMOTE_ONLY";
431
+ UNAVAILABLE: "UNAVAILABLE";
432
+ }>;
433
+ mediaRef: z.ZodNullable<z.ZodString>;
434
+ evidenceRef: z.ZodNullable<z.ZodString>;
435
+ contentHash: z.ZodNullable<z.ZodString>;
436
+ mediaType: z.ZodNullable<z.ZodString>;
437
+ byteLength: z.ZodNullable<z.ZodNumber>;
438
+ caption: z.ZodNullable<z.ZodString>;
439
+ kind: z.ZodLiteral<"AUDIO">;
440
+ title: z.ZodNullable<z.ZodString>;
441
+ }, z.core.$loose>, z.ZodObject<{
442
+ ordinal: z.ZodNumber;
443
+ kind: z.ZodLiteral<"EMBED">;
444
+ sourceUrl: z.ZodString;
445
+ title: z.ZodNullable<z.ZodString>;
446
+ caption: z.ZodNullable<z.ZodString>;
447
+ }, z.core.$loose>], "kind">>;
448
+ mediaEvidenceRefs: z.ZodArray<z.ZodString>;
449
+ format: z.ZodEnum<{
450
+ TENANT_RICH_DOCUMENT_V1: "TENANT_RICH_DOCUMENT_V1";
451
+ TENANT_RICH_SOURCE_DOCUMENT_V1: "TENANT_RICH_SOURCE_DOCUMENT_V1";
452
+ }>;
453
+ tenantId: z.ZodString;
454
+ }, z.core.$loose>], "format">;
219
455
  export type KnowledgeRichDocument = z.infer<typeof knowledgeRichDocumentSchema>;
456
+ export type KnowledgeReadableDocument = z.infer<typeof knowledgeReadableDocumentSchema>;
@@ -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>;