@kubuild/schema 0.5.0 → 0.7.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.
@@ -0,0 +1,348 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Supported Tracking Providers
4
+ */
5
+ export declare const TrackingProviderTypeSchema: z.ZodEnum<{
6
+ custom: "custom";
7
+ meta: "meta";
8
+ google: "google";
9
+ gtm: "gtm";
10
+ tiktok: "tiktok";
11
+ }>;
12
+ export type TrackingProviderType = z.infer<typeof TrackingProviderTypeSchema>;
13
+ /**
14
+ * Metadata-only descriptor of a tracking credential saved by the host (account/workspace).
15
+ *
16
+ * This is what the editor receives to render a credential picker. It NEVER carries secret
17
+ * material (access tokens, API secrets, webhook URLs/headers) — those stay on the host and
18
+ * are resolved server-side from `id` (see `TrackingSecretResolver` in `@kubuild/core`).
19
+ */
20
+ export interface PixelCredentialOption {
21
+ /** Opaque host id, stored in the document as `providers.<provider>.credentialId`. */
22
+ id: string;
23
+ /** Human-readable label shown in the picker. */
24
+ name: string;
25
+ provider: TrackingProviderType | (string & {});
26
+ /** Public Meta / TikTok pixel id, if the credential has one. */
27
+ pixelId?: string;
28
+ /** Public GA4 measurement id, if the credential has one. */
29
+ measurementId?: string;
30
+ /** Public GTM container id, if the credential has one. */
31
+ containerId?: string;
32
+ /** True when the host holds a server-side secret for this credential. */
33
+ hasSecret?: boolean;
34
+ isActive?: boolean;
35
+ }
36
+ /**
37
+ * Event Delivery Channels:
38
+ * - 'both': Fires client browser pixel and dispatches to the server relay (with deduplication event_id)
39
+ * - 'client_only': Only fires in the browser via client-side pixel scripts
40
+ * - 'server_only': Only sends to the host server relay (no browser pixel call)
41
+ */
42
+ export declare const TrackingDeliverySchema: z.ZodEnum<{
43
+ both: "both";
44
+ client_only: "client_only";
45
+ server_only: "server_only";
46
+ }>;
47
+ export type TrackingDelivery = z.infer<typeof TrackingDeliverySchema>;
48
+ /**
49
+ * Meta (Facebook) Pixel & Conversions API (CAPI) Configuration
50
+ */
51
+ export declare const MetaTrackingProviderConfigSchema: z.ZodObject<{
52
+ enabled: z.ZodDefault<z.ZodBoolean>;
53
+ credentialId: z.ZodOptional<z.ZodString>;
54
+ pixelId: z.ZodDefault<z.ZodOptional<z.ZodString>>;
55
+ capiEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
56
+ testEventCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
57
+ }, z.core.$strip>;
58
+ export type MetaTrackingProviderConfig = z.infer<typeof MetaTrackingProviderConfigSchema>;
59
+ /**
60
+ * Google Analytics 4 (GA4) & Measurement Protocol Configuration
61
+ */
62
+ export declare const GoogleTrackingProviderConfigSchema: z.ZodObject<{
63
+ enabled: z.ZodDefault<z.ZodBoolean>;
64
+ credentialId: z.ZodOptional<z.ZodString>;
65
+ measurementId: z.ZodDefault<z.ZodOptional<z.ZodString>>;
66
+ }, z.core.$strip>;
67
+ export type GoogleTrackingProviderConfig = z.infer<typeof GoogleTrackingProviderConfigSchema>;
68
+ /**
69
+ * Google Tag Manager (GTM) Configuration.
70
+ * Client-side only: `track_event` with provider 'gtm' (or 'all') pushes to `window.dataLayer`.
71
+ */
72
+ export declare const GtmTrackingProviderConfigSchema: z.ZodObject<{
73
+ enabled: z.ZodDefault<z.ZodBoolean>;
74
+ credentialId: z.ZodOptional<z.ZodString>;
75
+ containerId: z.ZodDefault<z.ZodOptional<z.ZodString>>;
76
+ }, z.core.$strip>;
77
+ export type GtmTrackingProviderConfig = z.infer<typeof GtmTrackingProviderConfigSchema>;
78
+ /**
79
+ * TikTok Pixel & Events API Configuration
80
+ */
81
+ export declare const TikTokTrackingProviderConfigSchema: z.ZodObject<{
82
+ enabled: z.ZodDefault<z.ZodBoolean>;
83
+ credentialId: z.ZodOptional<z.ZodString>;
84
+ pixelId: z.ZodDefault<z.ZodOptional<z.ZodString>>;
85
+ eventsApiEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
86
+ testEventCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
87
+ }, z.core.$strip>;
88
+ export type TikTokTrackingProviderConfig = z.infer<typeof TikTokTrackingProviderConfigSchema>;
89
+ /**
90
+ * Custom Webhook Configuration.
91
+ * The destination URL and any auth headers are host secrets resolved from `credentialId`.
92
+ */
93
+ export declare const CustomTrackingProviderConfigSchema: z.ZodObject<{
94
+ enabled: z.ZodDefault<z.ZodBoolean>;
95
+ credentialId: z.ZodOptional<z.ZodString>;
96
+ }, z.core.$strip>;
97
+ export type CustomTrackingProviderConfig = z.infer<typeof CustomTrackingProviderConfigSchema>;
98
+ /**
99
+ * Provider keys that `<= 1.0.0` documents stored but that are now host-owned
100
+ * (secrets and server destinations). Used by migration and by import/export
101
+ * sanitization to strip them defensively.
102
+ */
103
+ export declare const LEGACY_TRACKING_SECRET_KEYS: Readonly<Record<TrackingProviderType, readonly string[]>>;
104
+ /**
105
+ * Global Tracking Configuration Schema
106
+ * Attached to Document / Project. Contains no secrets.
107
+ */
108
+ export declare const TrackingConfigSchema: z.ZodObject<{
109
+ enabled: z.ZodDefault<z.ZodBoolean>;
110
+ debugMode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
111
+ autoPageView: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
112
+ defaultDelivery: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
113
+ both: "both";
114
+ client_only: "client_only";
115
+ server_only: "server_only";
116
+ }>>>;
117
+ providers: z.ZodDefault<z.ZodOptional<z.ZodObject<{
118
+ meta: z.ZodOptional<z.ZodObject<{
119
+ enabled: z.ZodDefault<z.ZodBoolean>;
120
+ credentialId: z.ZodOptional<z.ZodString>;
121
+ pixelId: z.ZodDefault<z.ZodOptional<z.ZodString>>;
122
+ capiEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
123
+ testEventCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
124
+ }, z.core.$strip>>;
125
+ google: z.ZodOptional<z.ZodObject<{
126
+ enabled: z.ZodDefault<z.ZodBoolean>;
127
+ credentialId: z.ZodOptional<z.ZodString>;
128
+ measurementId: z.ZodDefault<z.ZodOptional<z.ZodString>>;
129
+ }, z.core.$strip>>;
130
+ gtm: z.ZodOptional<z.ZodObject<{
131
+ enabled: z.ZodDefault<z.ZodBoolean>;
132
+ credentialId: z.ZodOptional<z.ZodString>;
133
+ containerId: z.ZodDefault<z.ZodOptional<z.ZodString>>;
134
+ }, z.core.$strip>>;
135
+ tiktok: z.ZodOptional<z.ZodObject<{
136
+ enabled: z.ZodDefault<z.ZodBoolean>;
137
+ credentialId: z.ZodOptional<z.ZodString>;
138
+ pixelId: z.ZodDefault<z.ZodOptional<z.ZodString>>;
139
+ eventsApiEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
140
+ testEventCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
141
+ }, z.core.$strip>>;
142
+ custom: z.ZodOptional<z.ZodObject<{
143
+ enabled: z.ZodDefault<z.ZodBoolean>;
144
+ credentialId: z.ZodOptional<z.ZodString>;
145
+ }, z.core.$strip>>;
146
+ }, z.core.$strip>>>;
147
+ }, z.core.$strip>;
148
+ export type TrackingConfig = z.infer<typeof TrackingConfigSchema>;
149
+ /** Meta Conversions API secret material. */
150
+ export declare const MetaTrackingSecretsSchema: z.ZodObject<{
151
+ capiAccessToken: z.ZodString;
152
+ }, z.core.$strip>;
153
+ export type MetaTrackingSecrets = z.infer<typeof MetaTrackingSecretsSchema>;
154
+ /** GA4 Measurement Protocol secret material. */
155
+ export declare const GoogleTrackingSecretsSchema: z.ZodObject<{
156
+ measurementProtocolSecret: z.ZodString;
157
+ }, z.core.$strip>;
158
+ export type GoogleTrackingSecrets = z.infer<typeof GoogleTrackingSecretsSchema>;
159
+ /** TikTok Events API secret material. */
160
+ export declare const TikTokTrackingSecretsSchema: z.ZodObject<{
161
+ accessToken: z.ZodString;
162
+ }, z.core.$strip>;
163
+ export type TikTokTrackingSecrets = z.infer<typeof TikTokTrackingSecretsSchema>;
164
+ /** Custom webhook destination + auth headers (both are host secrets). */
165
+ export declare const CustomTrackingSecretsSchema: z.ZodObject<{
166
+ endpointUrl: z.ZodString;
167
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
168
+ }, z.core.$strip>;
169
+ export type CustomTrackingSecrets = z.infer<typeof CustomTrackingSecretsSchema>;
170
+ /** Secret material keyed by provider. GTM is client-only and has no secret. */
171
+ export interface TrackingProviderSecretsMap {
172
+ meta: MetaTrackingSecrets;
173
+ google: GoogleTrackingSecrets;
174
+ tiktok: TikTokTrackingSecrets;
175
+ custom: CustomTrackingSecrets;
176
+ }
177
+ /** Providers that support server-side delivery (and therefore have secrets). */
178
+ export type ServerTrackingProviderType = keyof TrackingProviderSecretsMap;
179
+ /** Secret material for a single provider, as returned by a host secret resolver. */
180
+ export type TrackingProviderSecrets = TrackingProviderSecretsMap[ServerTrackingProviderType];
181
+ /**
182
+ * Standard Event Names commonly used across Meta, Google, and TikTok.
183
+ */
184
+ export declare const StandardTrackingEventSchema: z.ZodEnum<{
185
+ PageView: "PageView";
186
+ ViewContent: "ViewContent";
187
+ AddToCart: "AddToCart";
188
+ InitiateCheckout: "InitiateCheckout";
189
+ Purchase: "Purchase";
190
+ Lead: "Lead";
191
+ Contact: "Contact";
192
+ CompleteRegistration: "CompleteRegistration";
193
+ Subscribe: "Subscribe";
194
+ Search: "Search";
195
+ SubmitApplication: "SubmitApplication";
196
+ Schedule: "Schedule";
197
+ }>;
198
+ export type StandardTrackingEvent = z.infer<typeof StandardTrackingEventSchema>;
199
+ /**
200
+ * Target provider of a `track_event` step. 'gtm' pushes to `window.dataLayer` (client only).
201
+ */
202
+ export declare const TrackEventProviderSchema: z.ZodEnum<{
203
+ all: "all";
204
+ custom: "custom";
205
+ meta: "meta";
206
+ google: "google";
207
+ gtm: "gtm";
208
+ tiktok: "tiktok";
209
+ }>;
210
+ export type TrackEventProvider = z.infer<typeof TrackEventProviderSchema>;
211
+ /**
212
+ * Track Event Step Payload Schema (for Action Pipelines)
213
+ */
214
+ export declare const TrackEventStepPayloadSchema: z.ZodObject<{
215
+ eventName: z.ZodString;
216
+ eventType: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
217
+ standard: "standard";
218
+ custom: "custom";
219
+ }>>>;
220
+ provider: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
221
+ all: "all";
222
+ custom: "custom";
223
+ meta: "meta";
224
+ google: "google";
225
+ gtm: "gtm";
226
+ tiktok: "tiktok";
227
+ }>>>;
228
+ delivery: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
229
+ both: "both";
230
+ client_only: "client_only";
231
+ server_only: "server_only";
232
+ }>>>;
233
+ eventId: z.ZodOptional<z.ZodString>;
234
+ params: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
235
+ userData: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
236
+ enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
237
+ }, z.core.$strip>;
238
+ export type TrackEventStepPayload = z.infer<typeof TrackEventStepPayloadSchema>;
239
+ export declare const TRACKING_RELAY_PROTOCOL_VERSION: 1;
240
+ /** Normalized server tracking event, as sent from the browser to the host relay. */
241
+ export declare const ServerTrackingEventSchema: z.ZodObject<{
242
+ eventName: z.ZodString;
243
+ eventType: z.ZodOptional<z.ZodEnum<{
244
+ standard: "standard";
245
+ custom: "custom";
246
+ }>>;
247
+ eventId: z.ZodOptional<z.ZodString>;
248
+ eventTime: z.ZodOptional<z.ZodNumber>;
249
+ eventSourceUrl: z.ZodOptional<z.ZodString>;
250
+ actionSource: z.ZodOptional<z.ZodEnum<{
251
+ website: "website";
252
+ app: "app";
253
+ system_generated: "system_generated";
254
+ }>>;
255
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
256
+ userData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
257
+ customData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
258
+ }, z.core.$strip>;
259
+ export type ServerTrackingEventInput = z.infer<typeof ServerTrackingEventSchema>;
260
+ /**
261
+ * Body the renderer POSTs to the host relay (`RenderContext.tracking.relayUrl`).
262
+ * The relay MUST load the tracking config itself (trusted) — never from this body.
263
+ */
264
+ export declare const TrackingRelayRequestSchema: z.ZodObject<{
265
+ version: z.ZodLiteral<1>;
266
+ event: z.ZodObject<{
267
+ eventName: z.ZodString;
268
+ eventType: z.ZodOptional<z.ZodEnum<{
269
+ standard: "standard";
270
+ custom: "custom";
271
+ }>>;
272
+ eventId: z.ZodOptional<z.ZodString>;
273
+ eventTime: z.ZodOptional<z.ZodNumber>;
274
+ eventSourceUrl: z.ZodOptional<z.ZodString>;
275
+ actionSource: z.ZodOptional<z.ZodEnum<{
276
+ website: "website";
277
+ app: "app";
278
+ system_generated: "system_generated";
279
+ }>>;
280
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
281
+ userData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
282
+ customData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
283
+ }, z.core.$strip>;
284
+ provider: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
285
+ all: "all";
286
+ custom: "custom";
287
+ meta: "meta";
288
+ google: "google";
289
+ gtm: "gtm";
290
+ tiktok: "tiktok";
291
+ }>>>;
292
+ credentialId: z.ZodOptional<z.ZodString>;
293
+ documentId: z.ZodOptional<z.ZodString>;
294
+ }, z.core.$strip>;
295
+ export type TrackingRelayRequest = z.infer<typeof TrackingRelayRequestSchema>;
296
+ /** Per-provider outcome returned by the relay (provider response bodies are not echoed). */
297
+ export declare const TrackingRelayProviderResultSchema: z.ZodObject<{
298
+ provider: z.ZodString;
299
+ success: z.ZodBoolean;
300
+ status: z.ZodOptional<z.ZodNumber>;
301
+ skipped: z.ZodOptional<z.ZodBoolean>;
302
+ reason: z.ZodOptional<z.ZodString>;
303
+ error: z.ZodOptional<z.ZodString>;
304
+ }, z.core.$strip>;
305
+ export type TrackingRelayProviderResult = z.infer<typeof TrackingRelayProviderResultSchema>;
306
+ export declare const TrackingRelayErrorCodeSchema: z.ZodEnum<{
307
+ INVALID_REQUEST: "INVALID_REQUEST";
308
+ UNSUPPORTED_VERSION: "UNSUPPORTED_VERSION";
309
+ FORBIDDEN_ORIGIN: "FORBIDDEN_ORIGIN";
310
+ METHOD_NOT_ALLOWED: "METHOD_NOT_ALLOWED";
311
+ CONFIG_NOT_FOUND: "CONFIG_NOT_FOUND";
312
+ INTERNAL_ERROR: "INTERNAL_ERROR";
313
+ }>;
314
+ export type TrackingRelayErrorCode = z.infer<typeof TrackingRelayErrorCodeSchema>;
315
+ export declare const TrackingRelayResponseSchema: z.ZodObject<{
316
+ version: z.ZodLiteral<1>;
317
+ success: z.ZodBoolean;
318
+ eventId: z.ZodOptional<z.ZodString>;
319
+ skipped: z.ZodOptional<z.ZodBoolean>;
320
+ reason: z.ZodOptional<z.ZodString>;
321
+ results: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
322
+ provider: z.ZodString;
323
+ success: z.ZodBoolean;
324
+ status: z.ZodOptional<z.ZodNumber>;
325
+ skipped: z.ZodOptional<z.ZodBoolean>;
326
+ reason: z.ZodOptional<z.ZodString>;
327
+ error: z.ZodOptional<z.ZodString>;
328
+ }, z.core.$strip>>>;
329
+ error: z.ZodOptional<z.ZodObject<{
330
+ code: z.ZodEnum<{
331
+ INVALID_REQUEST: "INVALID_REQUEST";
332
+ UNSUPPORTED_VERSION: "UNSUPPORTED_VERSION";
333
+ FORBIDDEN_ORIGIN: "FORBIDDEN_ORIGIN";
334
+ METHOD_NOT_ALLOWED: "METHOD_NOT_ALLOWED";
335
+ CONFIG_NOT_FOUND: "CONFIG_NOT_FOUND";
336
+ INTERNAL_ERROR: "INTERNAL_ERROR";
337
+ }>;
338
+ message: z.ZodString;
339
+ }, z.core.$strip>>;
340
+ }, z.core.$strip>;
341
+ export type TrackingRelayResponse = z.infer<typeof TrackingRelayResponseSchema>;
342
+ /**
343
+ * Type guards
344
+ */
345
+ export declare function isTrackingConfig(value: unknown): value is TrackingConfig;
346
+ export declare function isTrackEventStepPayload(value: unknown): value is TrackEventStepPayload;
347
+ export declare function isTrackingRelayRequest(value: unknown): value is TrackingRelayRequest;
348
+ //# sourceMappingURL=tracking.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tracking.d.ts","sourceRoot":"","sources":["../src/tracking.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;EAMrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAa9E;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB;IACpC,qFAAqF;IACrF,EAAE,EAAE,MAAM,CAAC;IACX,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,oBAAoB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAC/C,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4DAA4D;IAC5D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,0DAA0D;IAC1D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yEAAyE;IACzE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB;;;;EAAiD,CAAC;AACrF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;;;;iBAU3C,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,C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CAAC,CAAC;AAEjF;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,4FAA4F;AAC5F,eAAO,MAAM,iCAAiC;;;;;;;iBAO5C,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAE5F,eAAO,MAAM,4BAA4B;;;;;;;EAOvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;iBAatC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,cAAc,CAExE;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,qBAAqB,CAEtF;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,oBAAoB,CAEpF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubuild/schema",
3
- "version": "0.5.0",
3
+ "version": "0.7.0",
4
4
  "description": "Zod schemas and TypeScript types for the KUBUILD portable page document format (.stora)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",