@playcraft/common 0.1.86 → 0.1.87

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.
Files changed (44) hide show
  1. package/dist/cloud-workspace/runtime/execution-grant.d.ts +19 -1
  2. package/dist/cloud-workspace/runtime/execution-grant.d.ts.map +1 -1
  3. package/dist/cloud-workspace/runtime/execution-grant.js +26 -2
  4. package/dist/cloud-workspace/runtime/execution-grant.js.map +1 -1
  5. package/dist/cloud-workspace/runtime/index.d.ts +8 -6
  6. package/dist/cloud-workspace/runtime/index.d.ts.map +1 -1
  7. package/dist/cloud-workspace/runtime/index.js +8 -6
  8. package/dist/cloud-workspace/runtime/index.js.map +1 -1
  9. package/dist/cloud-workspace/runtime/model-capture-upload-grant.d.ts +27 -0
  10. package/dist/cloud-workspace/runtime/model-capture-upload-grant.d.ts.map +1 -0
  11. package/dist/cloud-workspace/runtime/model-capture-upload-grant.js +51 -0
  12. package/dist/cloud-workspace/runtime/model-capture-upload-grant.js.map +1 -0
  13. package/dist/cloud-workspace/runtime/workspace-facts.d.ts +125 -0
  14. package/dist/cloud-workspace/runtime/workspace-facts.d.ts.map +1 -0
  15. package/dist/cloud-workspace/runtime/workspace-facts.js +32 -0
  16. package/dist/cloud-workspace/runtime/workspace-facts.js.map +1 -0
  17. package/dist/inspiration/catalog.d.ts +68 -0
  18. package/dist/inspiration/catalog.d.ts.map +1 -0
  19. package/dist/inspiration/catalog.js +98 -0
  20. package/dist/inspiration/catalog.js.map +1 -0
  21. package/dist/inspiration/collection.d.ts +35 -0
  22. package/dist/inspiration/collection.d.ts.map +1 -0
  23. package/dist/inspiration/collection.js +5 -0
  24. package/dist/inspiration/collection.js.map +1 -0
  25. package/dist/inspiration/index.d.ts +698 -0
  26. package/dist/inspiration/index.d.ts.map +1 -0
  27. package/dist/inspiration/index.js +297 -0
  28. package/dist/inspiration/index.js.map +1 -0
  29. package/dist/inspiration/vocabulary.d.ts +155 -0
  30. package/dist/inspiration/vocabulary.d.ts.map +1 -0
  31. package/dist/inspiration/vocabulary.js +43 -0
  32. package/dist/inspiration/vocabulary.js.map +1 -0
  33. package/dist/model-proxy/captures.d.ts +152 -0
  34. package/dist/model-proxy/captures.d.ts.map +1 -0
  35. package/dist/model-proxy/captures.js +64 -0
  36. package/dist/model-proxy/captures.js.map +1 -0
  37. package/dist/model-proxy/index.d.ts +1 -0
  38. package/dist/model-proxy/index.d.ts.map +1 -1
  39. package/dist/model-proxy/index.js +1 -0
  40. package/dist/model-proxy/index.js.map +1 -1
  41. package/dist/prefab/theme-schema-parser.d.ts.map +1 -1
  42. package/dist/prefab/theme-schema-parser.js +6 -4
  43. package/dist/prefab/theme-schema-parser.js.map +1 -1
  44. package/package.json +6 -2
@@ -0,0 +1,698 @@
1
+ import { z } from 'zod';
2
+ export * from './vocabulary.js';
3
+ export declare const INSPIRATION_ANALYSIS_VERSION = "inspiration-analysis.v1";
4
+ export declare const tagDimensions: readonly ["hook", "psychology", "mechanic", "interaction", "visual", "conversion", "narrative", "pacing"];
5
+ export declare const playableDimensions: readonly ["hook", "psychology", "mechanic", "interaction", "visual", "conversion"];
6
+ export declare const videoDimensions: readonly ["hook", "psychology", "mechanic", "narrative", "visual", "conversion", "pacing"];
7
+ export declare const inspirationKindSchema: z.ZodEnum<{
8
+ video: "video";
9
+ playable: "playable";
10
+ }>;
11
+ export type InspirationKind = z.infer<typeof inspirationKindSchema>;
12
+ export * from './catalog.js';
13
+ export * from './collection.js';
14
+ export declare const inspirationAnalysisSchema: z.ZodObject<{
15
+ summary: z.ZodString;
16
+ hookType: z.ZodEnum<{
17
+ unknown: "unknown";
18
+ playable: "playable";
19
+ video_then_playable: "video_then_playable";
20
+ end_card: "end_card";
21
+ }>;
22
+ tags: z.ZodArray<z.ZodObject<{
23
+ dimension: z.ZodEnum<{
24
+ interaction: "interaction";
25
+ visual: "visual";
26
+ conversion: "conversion";
27
+ pacing: "pacing";
28
+ hook: "hook";
29
+ psychology: "psychology";
30
+ mechanic: "mechanic";
31
+ narrative: "narrative";
32
+ }>;
33
+ value: z.ZodString;
34
+ confidence: z.ZodNumber;
35
+ }, z.core.$strict>>;
36
+ breakdown: z.ZodArray<z.ZodObject<{
37
+ dimension: z.ZodEnum<{
38
+ interaction: "interaction";
39
+ visual: "visual";
40
+ conversion: "conversion";
41
+ pacing: "pacing";
42
+ hook: "hook";
43
+ psychology: "psychology";
44
+ mechanic: "mechanic";
45
+ narrative: "narrative";
46
+ }>;
47
+ text: z.ZodString;
48
+ basis: z.ZodEnum<{
49
+ unknown: "unknown";
50
+ inferred: "inferred";
51
+ observed: "observed";
52
+ }>;
53
+ evidence: z.ZodArray<z.ZodString>;
54
+ confidence: z.ZodNumber;
55
+ }, z.core.$strict>>;
56
+ limitations: z.ZodArray<z.ZodString>;
57
+ }, z.core.$strict>;
58
+ export declare const bilingualInspirationAnalysisSchema: z.ZodObject<{
59
+ schemaVersion: z.ZodLiteral<"inspiration-analysis.v2">;
60
+ summary: z.ZodObject<{
61
+ zh: z.ZodString;
62
+ en: z.ZodString;
63
+ }, z.core.$strict>;
64
+ hookType: z.ZodEnum<{
65
+ unknown: "unknown";
66
+ video_hook: "video_hook";
67
+ image_hook: "image_hook";
68
+ gameplay_only: "gameplay_only";
69
+ }>;
70
+ tags: z.ZodArray<z.ZodObject<{
71
+ dimension: z.ZodEnum<{
72
+ background: "background";
73
+ layout: "layout";
74
+ gameplay: "gameplay";
75
+ visual: "visual";
76
+ packaging: "packaging";
77
+ cta: "cta";
78
+ emotion: "emotion";
79
+ hook: "hook";
80
+ }>;
81
+ key: z.ZodEnum<{
82
+ action: "action";
83
+ interrupted: "interrupted";
84
+ puzzle: "puzzle";
85
+ billiards: "billiards";
86
+ tension: "tension";
87
+ end_card: "end_card";
88
+ video_hook: "video_hook";
89
+ image_hook: "image_hook";
90
+ gameplay_only: "gameplay_only";
91
+ matching: "matching";
92
+ simulation: "simulation";
93
+ flat_board: "flat_board";
94
+ stacked: "stacked";
95
+ full_screen: "full_screen";
96
+ split_screen: "split_screen";
97
+ gameplay_showcase: "gameplay_showcase";
98
+ fail_bait: "fail_bait";
99
+ challenge: "challenge";
100
+ story: "story";
101
+ indoor: "indoor";
102
+ outdoor: "outdoor";
103
+ abstract: "abstract";
104
+ rescue: "rescue";
105
+ warmth: "warmth";
106
+ satisfaction: "satisfaction";
107
+ cartoon: "cartoon";
108
+ realistic: "realistic";
109
+ minimal: "minimal";
110
+ pixel: "pixel";
111
+ install_button: "install_button";
112
+ }>;
113
+ confidence: z.ZodNumber;
114
+ }, z.core.$strict>>;
115
+ breakdown: z.ZodArray<z.ZodObject<{
116
+ dimension: z.ZodEnum<{
117
+ interaction: "interaction";
118
+ visual: "visual";
119
+ conversion: "conversion";
120
+ pacing: "pacing";
121
+ hook: "hook";
122
+ psychology: "psychology";
123
+ mechanic: "mechanic";
124
+ narrative: "narrative";
125
+ }>;
126
+ basis: z.ZodEnum<{
127
+ unknown: "unknown";
128
+ inferred: "inferred";
129
+ observed: "observed";
130
+ }>;
131
+ confidence: z.ZodNumber;
132
+ text: z.ZodObject<{
133
+ zh: z.ZodString;
134
+ en: z.ZodString;
135
+ }, z.core.$strict>;
136
+ evidence: z.ZodArray<z.ZodObject<{
137
+ zh: z.ZodString;
138
+ en: z.ZodString;
139
+ }, z.core.$strict>>;
140
+ }, z.core.$strict>>;
141
+ limitations: z.ZodArray<z.ZodObject<{
142
+ zh: z.ZodString;
143
+ en: z.ZodString;
144
+ }, z.core.$strict>>;
145
+ }, z.core.$strict>;
146
+ export type BilingualInspirationAnalysis = z.infer<typeof bilingualInspirationAnalysisSchema>;
147
+ export type InspirationAnalysis = z.infer<typeof inspirationAnalysisSchema> | BilingualInspirationAnalysis;
148
+ export declare function inspirationText(value: string | {
149
+ zh: string;
150
+ en: string;
151
+ }, locale: string): string;
152
+ export declare function inspirationTagLabel(tag: InspirationAnalysis['tags'][number], locale: string): string;
153
+ export declare function inspirationHookType(result?: InspirationAnalysis): BilingualInspirationAnalysis['hookType'];
154
+ export declare function validateInspirationAnalysis(value: unknown, kind: InspirationKind): InspirationAnalysis;
155
+ export declare function validateBilingualInspirationAnalysis(value: unknown, kind: InspirationKind): BilingualInspirationAnalysis;
156
+ export type InspirationMedia = {
157
+ coverUrl: string | null;
158
+ playableUrl: string | null;
159
+ videoUrl: string | null;
160
+ imageUrls: string[];
161
+ };
162
+ export type InspirationItem = {
163
+ id: string;
164
+ gameName: string;
165
+ gameIconUrl?: string | null;
166
+ developer?: string | null;
167
+ category?: string | null;
168
+ kind: InspirationKind;
169
+ title: string;
170
+ media: InspirationMedia;
171
+ contentVersion: string;
172
+ firstSeen: string | null;
173
+ lastSeen: string | null;
174
+ impressions: number | null;
175
+ activeDays: number | null;
176
+ channels: string[];
177
+ countries: string[];
178
+ analysis: {
179
+ version: string;
180
+ result: InspirationAnalysis;
181
+ } | null;
182
+ analysisMediaUpdated?: boolean;
183
+ analysisStatus: 'pending' | 'ready' | 'awaiting_evidence' | 'failed' | 'unknown' | 'blocked';
184
+ };
185
+ export type InspirationConfigurationIssue = 'analysisIdentityMissing' | 'sourceKeyMissing' | 'sourceConfigInvalid' | 'noCatalogGames' | 'noVisibleGames';
186
+ export type InspirationSyncResult = {
187
+ status: 'started' | 'running';
188
+ } | {
189
+ status: 'unconfigured';
190
+ configurationIssue?: InspirationConfigurationIssue;
191
+ };
192
+ export type InspirationFeed = {
193
+ syncNextRunAt?: string | null;
194
+ status: 'unconfigured' | 'ready';
195
+ configurationIssue?: InspirationConfigurationIssue;
196
+ configVersion: string;
197
+ items: InspirationItem[];
198
+ total: number;
199
+ page: number;
200
+ pageSize: number;
201
+ facets: {
202
+ games: {
203
+ id: string;
204
+ name: string;
205
+ }[];
206
+ channels: string[];
207
+ countries: string[];
208
+ };
209
+ lastSuccessAt: string | null;
210
+ syncStatus: 'pending' | 'running' | 'complete' | 'partial' | 'failed';
211
+ coverage: 'pending' | 'complete' | 'partial';
212
+ };
213
+ export declare const inspirationFiltersSchema: z.ZodObject<{
214
+ kind: z.ZodDefault<z.ZodEnum<{
215
+ video: "video";
216
+ playable: "playable";
217
+ }>>;
218
+ days: z.ZodDefault<z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>>>;
219
+ sort: z.ZodDefault<z.ZodEnum<{
220
+ impressions: "impressions";
221
+ newest: "newest";
222
+ activeDays: "activeDays";
223
+ }>>;
224
+ games: z.ZodDefault<z.ZodArray<z.ZodString>>;
225
+ channels: z.ZodDefault<z.ZodArray<z.ZodString>>;
226
+ countries: z.ZodDefault<z.ZodArray<z.ZodString>>;
227
+ page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
228
+ }, z.core.$strict>;
229
+ export type InspirationFilters = z.infer<typeof inspirationFiltersSchema>;
230
+ export declare const inspirationHandoffSchema: z.ZodObject<{
231
+ schemaVersion: z.ZodLiteral<"inspiration-handoff.v1">;
232
+ inspirationId: z.ZodString;
233
+ analysisVersion: z.ZodOptional<z.ZodString>;
234
+ contentVersion: z.ZodOptional<z.ZodString>;
235
+ sourceTeamId: z.ZodString;
236
+ entrySource: z.ZodEnum<{
237
+ list: "list";
238
+ share: "share";
239
+ }>;
240
+ sharedInspirationId: z.ZodOptional<z.ZodString>;
241
+ funnelId: z.ZodOptional<z.ZodString>;
242
+ detailViewId: z.ZodOptional<z.ZodString>;
243
+ }, z.core.$strict>;
244
+ export type InspirationHandoff = z.infer<typeof inspirationHandoffSchema>;
245
+ export declare const inspirationSessionSourceSchema: z.ZodObject<{
246
+ reference: z.ZodObject<{
247
+ schemaVersion: z.ZodLiteral<"inspiration-handoff.v1">;
248
+ inspirationId: z.ZodString;
249
+ analysisVersion: z.ZodOptional<z.ZodString>;
250
+ contentVersion: z.ZodOptional<z.ZodString>;
251
+ sourceTeamId: z.ZodString;
252
+ entrySource: z.ZodEnum<{
253
+ list: "list";
254
+ share: "share";
255
+ }>;
256
+ sharedInspirationId: z.ZodOptional<z.ZodString>;
257
+ funnelId: z.ZodOptional<z.ZodString>;
258
+ detailViewId: z.ZodOptional<z.ZodString>;
259
+ }, z.core.$strict>;
260
+ directoryName: z.ZodString;
261
+ }, z.core.$strict>;
262
+ export type InspirationSessionSource = z.infer<typeof inspirationSessionSourceSchema>;
263
+ export declare const inspirationSessionSourcesSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
264
+ reference: z.ZodObject<{
265
+ schemaVersion: z.ZodLiteral<"inspiration-handoff.v1">;
266
+ inspirationId: z.ZodString;
267
+ analysisVersion: z.ZodOptional<z.ZodString>;
268
+ contentVersion: z.ZodOptional<z.ZodString>;
269
+ sourceTeamId: z.ZodString;
270
+ entrySource: z.ZodEnum<{
271
+ list: "list";
272
+ share: "share";
273
+ }>;
274
+ sharedInspirationId: z.ZodOptional<z.ZodString>;
275
+ funnelId: z.ZodOptional<z.ZodString>;
276
+ detailViewId: z.ZodOptional<z.ZodString>;
277
+ }, z.core.$strict>;
278
+ directoryName: z.ZodString;
279
+ }, z.core.$strict>>;
280
+ export type InspirationSessionSources = z.infer<typeof inspirationSessionSourcesSchema>;
281
+ export declare const inspirationExportSourceSchema: z.ZodObject<{
282
+ reference: z.ZodObject<{
283
+ schemaVersion: z.ZodLiteral<"inspiration-handoff.v1">;
284
+ inspirationId: z.ZodString;
285
+ analysisVersion: z.ZodOptional<z.ZodString>;
286
+ contentVersion: z.ZodOptional<z.ZodString>;
287
+ sourceTeamId: z.ZodString;
288
+ entrySource: z.ZodEnum<{
289
+ list: "list";
290
+ share: "share";
291
+ }>;
292
+ sharedInspirationId: z.ZodOptional<z.ZodString>;
293
+ funnelId: z.ZodOptional<z.ZodString>;
294
+ detailViewId: z.ZodOptional<z.ZodString>;
295
+ }, z.core.$strict>;
296
+ directoryName: z.ZodString;
297
+ workspaceId: z.ZodString;
298
+ sessionId: z.ZodString;
299
+ artifactId: z.ZodOptional<z.ZodString>;
300
+ artifactVersionId: z.ZodOptional<z.ZodString>;
301
+ artifactSha256: z.ZodOptional<z.ZodString>;
302
+ commitHash: z.ZodOptional<z.ZodString>;
303
+ }, z.core.$strict>;
304
+ export type InspirationExportSource = z.infer<typeof inspirationExportSourceSchema>;
305
+ export declare function buildInspirationHandoffUrl(reference: InspirationHandoff): string;
306
+ /** Browser observations are distinct from server-confirmed production facts. */
307
+ export declare const inspirationBrowserEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
308
+ name: z.ZodLiteral<"inspiration_detail_view">;
309
+ source: z.ZodEnum<{
310
+ list: "list";
311
+ share: "share";
312
+ navigation: "navigation";
313
+ }>;
314
+ detailViewId: z.ZodString;
315
+ filters: z.ZodObject<{
316
+ kind: z.ZodDefault<z.ZodEnum<{
317
+ video: "video";
318
+ playable: "playable";
319
+ }>>;
320
+ days: z.ZodDefault<z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>>>;
321
+ sort: z.ZodDefault<z.ZodEnum<{
322
+ impressions: "impressions";
323
+ newest: "newest";
324
+ activeDays: "activeDays";
325
+ }>>;
326
+ games: z.ZodDefault<z.ZodArray<z.ZodString>>;
327
+ channels: z.ZodDefault<z.ZodArray<z.ZodString>>;
328
+ countries: z.ZodDefault<z.ZodArray<z.ZodString>>;
329
+ page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
330
+ }, z.core.$strict>;
331
+ inspirationId: z.ZodString;
332
+ entrySource: z.ZodOptional<z.ZodEnum<{
333
+ list: "list";
334
+ share: "share";
335
+ }>>;
336
+ sharedInspirationId: z.ZodOptional<z.ZodString>;
337
+ funnelId: z.ZodOptional<z.ZodString>;
338
+ eventId: z.ZodString;
339
+ schemaVersion: z.ZodLiteral<"inspiration-event.v1">;
340
+ occurredAt: z.ZodString;
341
+ teamId: z.ZodString;
342
+ }, z.core.$strict>, z.ZodObject<{
343
+ name: z.ZodLiteral<"inspiration_card_click">;
344
+ position: z.ZodNumber;
345
+ filters: z.ZodObject<{
346
+ kind: z.ZodDefault<z.ZodEnum<{
347
+ video: "video";
348
+ playable: "playable";
349
+ }>>;
350
+ days: z.ZodDefault<z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>>>;
351
+ sort: z.ZodDefault<z.ZodEnum<{
352
+ impressions: "impressions";
353
+ newest: "newest";
354
+ activeDays: "activeDays";
355
+ }>>;
356
+ games: z.ZodDefault<z.ZodArray<z.ZodString>>;
357
+ channels: z.ZodDefault<z.ZodArray<z.ZodString>>;
358
+ countries: z.ZodDefault<z.ZodArray<z.ZodString>>;
359
+ page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
360
+ }, z.core.$strict>;
361
+ inspirationId: z.ZodString;
362
+ source: z.ZodOptional<z.ZodEnum<{
363
+ list: "list";
364
+ share: "share";
365
+ navigation: "navigation";
366
+ }>>;
367
+ entrySource: z.ZodOptional<z.ZodEnum<{
368
+ list: "list";
369
+ share: "share";
370
+ }>>;
371
+ sharedInspirationId: z.ZodOptional<z.ZodString>;
372
+ detailViewId: z.ZodOptional<z.ZodString>;
373
+ funnelId: z.ZodOptional<z.ZodString>;
374
+ eventId: z.ZodString;
375
+ schemaVersion: z.ZodLiteral<"inspiration-event.v1">;
376
+ occurredAt: z.ZodString;
377
+ teamId: z.ZodString;
378
+ }, z.core.$strict>, z.ZodObject<{
379
+ name: z.ZodLiteral<"inspiration_share">;
380
+ action: z.ZodEnum<{
381
+ click: "click";
382
+ copy_success: "copy_success";
383
+ copy_failed: "copy_failed";
384
+ }>;
385
+ inspirationId: z.ZodString;
386
+ source: z.ZodOptional<z.ZodEnum<{
387
+ list: "list";
388
+ share: "share";
389
+ navigation: "navigation";
390
+ }>>;
391
+ entrySource: z.ZodOptional<z.ZodEnum<{
392
+ list: "list";
393
+ share: "share";
394
+ }>>;
395
+ sharedInspirationId: z.ZodOptional<z.ZodString>;
396
+ filters: z.ZodOptional<z.ZodObject<{
397
+ kind: z.ZodDefault<z.ZodEnum<{
398
+ video: "video";
399
+ playable: "playable";
400
+ }>>;
401
+ days: z.ZodDefault<z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>>>;
402
+ sort: z.ZodDefault<z.ZodEnum<{
403
+ impressions: "impressions";
404
+ newest: "newest";
405
+ activeDays: "activeDays";
406
+ }>>;
407
+ games: z.ZodDefault<z.ZodArray<z.ZodString>>;
408
+ channels: z.ZodDefault<z.ZodArray<z.ZodString>>;
409
+ countries: z.ZodDefault<z.ZodArray<z.ZodString>>;
410
+ page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
411
+ }, z.core.$strict>>;
412
+ detailViewId: z.ZodOptional<z.ZodString>;
413
+ funnelId: z.ZodOptional<z.ZodString>;
414
+ eventId: z.ZodString;
415
+ schemaVersion: z.ZodLiteral<"inspiration-event.v1">;
416
+ occurredAt: z.ZodString;
417
+ teamId: z.ZodString;
418
+ }, z.core.$strict>, z.ZodObject<{
419
+ name: z.ZodLiteral<"inspiration_replicate_click">;
420
+ funnelId: z.ZodString;
421
+ inspirationId: z.ZodString;
422
+ source: z.ZodOptional<z.ZodEnum<{
423
+ list: "list";
424
+ share: "share";
425
+ navigation: "navigation";
426
+ }>>;
427
+ entrySource: z.ZodOptional<z.ZodEnum<{
428
+ list: "list";
429
+ share: "share";
430
+ }>>;
431
+ sharedInspirationId: z.ZodOptional<z.ZodString>;
432
+ filters: z.ZodOptional<z.ZodObject<{
433
+ kind: z.ZodDefault<z.ZodEnum<{
434
+ video: "video";
435
+ playable: "playable";
436
+ }>>;
437
+ days: z.ZodDefault<z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>>>;
438
+ sort: z.ZodDefault<z.ZodEnum<{
439
+ impressions: "impressions";
440
+ newest: "newest";
441
+ activeDays: "activeDays";
442
+ }>>;
443
+ games: z.ZodDefault<z.ZodArray<z.ZodString>>;
444
+ channels: z.ZodDefault<z.ZodArray<z.ZodString>>;
445
+ countries: z.ZodDefault<z.ZodArray<z.ZodString>>;
446
+ page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
447
+ }, z.core.$strict>>;
448
+ detailViewId: z.ZodOptional<z.ZodString>;
449
+ eventId: z.ZodString;
450
+ schemaVersion: z.ZodLiteral<"inspiration-event.v1">;
451
+ occurredAt: z.ZodString;
452
+ teamId: z.ZodString;
453
+ }, z.core.$strict>, z.ZodObject<{
454
+ name: z.ZodLiteral<"page_view">;
455
+ pageId: z.ZodEnum<{
456
+ inspiration_list: "inspiration_list";
457
+ inspiration_detail: "inspiration_detail";
458
+ }>;
459
+ inspirationId: z.ZodOptional<z.ZodString>;
460
+ detailViewId: z.ZodOptional<z.ZodString>;
461
+ source: z.ZodOptional<z.ZodEnum<{
462
+ list: "list";
463
+ share: "share";
464
+ navigation: "navigation";
465
+ }>>;
466
+ entrySource: z.ZodOptional<z.ZodEnum<{
467
+ list: "list";
468
+ share: "share";
469
+ }>>;
470
+ sharedInspirationId: z.ZodOptional<z.ZodString>;
471
+ eventId: z.ZodString;
472
+ schemaVersion: z.ZodLiteral<"inspiration-event.v1">;
473
+ occurredAt: z.ZodString;
474
+ teamId: z.ZodString;
475
+ }, z.core.$strict>], "name">;
476
+ export type InspirationBrowserEvent = z.infer<typeof inspirationBrowserEventSchema>;
477
+ export declare const inspirationEventBatchSchema: z.ZodObject<{
478
+ events: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
479
+ name: z.ZodLiteral<"inspiration_detail_view">;
480
+ source: z.ZodEnum<{
481
+ list: "list";
482
+ share: "share";
483
+ navigation: "navigation";
484
+ }>;
485
+ detailViewId: z.ZodString;
486
+ filters: z.ZodObject<{
487
+ kind: z.ZodDefault<z.ZodEnum<{
488
+ video: "video";
489
+ playable: "playable";
490
+ }>>;
491
+ days: z.ZodDefault<z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>>>;
492
+ sort: z.ZodDefault<z.ZodEnum<{
493
+ impressions: "impressions";
494
+ newest: "newest";
495
+ activeDays: "activeDays";
496
+ }>>;
497
+ games: z.ZodDefault<z.ZodArray<z.ZodString>>;
498
+ channels: z.ZodDefault<z.ZodArray<z.ZodString>>;
499
+ countries: z.ZodDefault<z.ZodArray<z.ZodString>>;
500
+ page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
501
+ }, z.core.$strict>;
502
+ inspirationId: z.ZodString;
503
+ entrySource: z.ZodOptional<z.ZodEnum<{
504
+ list: "list";
505
+ share: "share";
506
+ }>>;
507
+ sharedInspirationId: z.ZodOptional<z.ZodString>;
508
+ funnelId: z.ZodOptional<z.ZodString>;
509
+ eventId: z.ZodString;
510
+ schemaVersion: z.ZodLiteral<"inspiration-event.v1">;
511
+ occurredAt: z.ZodString;
512
+ teamId: z.ZodString;
513
+ }, z.core.$strict>, z.ZodObject<{
514
+ name: z.ZodLiteral<"inspiration_card_click">;
515
+ position: z.ZodNumber;
516
+ filters: z.ZodObject<{
517
+ kind: z.ZodDefault<z.ZodEnum<{
518
+ video: "video";
519
+ playable: "playable";
520
+ }>>;
521
+ days: z.ZodDefault<z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>>>;
522
+ sort: z.ZodDefault<z.ZodEnum<{
523
+ impressions: "impressions";
524
+ newest: "newest";
525
+ activeDays: "activeDays";
526
+ }>>;
527
+ games: z.ZodDefault<z.ZodArray<z.ZodString>>;
528
+ channels: z.ZodDefault<z.ZodArray<z.ZodString>>;
529
+ countries: z.ZodDefault<z.ZodArray<z.ZodString>>;
530
+ page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
531
+ }, z.core.$strict>;
532
+ inspirationId: z.ZodString;
533
+ source: z.ZodOptional<z.ZodEnum<{
534
+ list: "list";
535
+ share: "share";
536
+ navigation: "navigation";
537
+ }>>;
538
+ entrySource: z.ZodOptional<z.ZodEnum<{
539
+ list: "list";
540
+ share: "share";
541
+ }>>;
542
+ sharedInspirationId: z.ZodOptional<z.ZodString>;
543
+ detailViewId: z.ZodOptional<z.ZodString>;
544
+ funnelId: z.ZodOptional<z.ZodString>;
545
+ eventId: z.ZodString;
546
+ schemaVersion: z.ZodLiteral<"inspiration-event.v1">;
547
+ occurredAt: z.ZodString;
548
+ teamId: z.ZodString;
549
+ }, z.core.$strict>, z.ZodObject<{
550
+ name: z.ZodLiteral<"inspiration_share">;
551
+ action: z.ZodEnum<{
552
+ click: "click";
553
+ copy_success: "copy_success";
554
+ copy_failed: "copy_failed";
555
+ }>;
556
+ inspirationId: z.ZodString;
557
+ source: z.ZodOptional<z.ZodEnum<{
558
+ list: "list";
559
+ share: "share";
560
+ navigation: "navigation";
561
+ }>>;
562
+ entrySource: z.ZodOptional<z.ZodEnum<{
563
+ list: "list";
564
+ share: "share";
565
+ }>>;
566
+ sharedInspirationId: z.ZodOptional<z.ZodString>;
567
+ filters: z.ZodOptional<z.ZodObject<{
568
+ kind: z.ZodDefault<z.ZodEnum<{
569
+ video: "video";
570
+ playable: "playable";
571
+ }>>;
572
+ days: z.ZodDefault<z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>>>;
573
+ sort: z.ZodDefault<z.ZodEnum<{
574
+ impressions: "impressions";
575
+ newest: "newest";
576
+ activeDays: "activeDays";
577
+ }>>;
578
+ games: z.ZodDefault<z.ZodArray<z.ZodString>>;
579
+ channels: z.ZodDefault<z.ZodArray<z.ZodString>>;
580
+ countries: z.ZodDefault<z.ZodArray<z.ZodString>>;
581
+ page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
582
+ }, z.core.$strict>>;
583
+ detailViewId: z.ZodOptional<z.ZodString>;
584
+ funnelId: z.ZodOptional<z.ZodString>;
585
+ eventId: z.ZodString;
586
+ schemaVersion: z.ZodLiteral<"inspiration-event.v1">;
587
+ occurredAt: z.ZodString;
588
+ teamId: z.ZodString;
589
+ }, z.core.$strict>, z.ZodObject<{
590
+ name: z.ZodLiteral<"inspiration_replicate_click">;
591
+ funnelId: z.ZodString;
592
+ inspirationId: z.ZodString;
593
+ source: z.ZodOptional<z.ZodEnum<{
594
+ list: "list";
595
+ share: "share";
596
+ navigation: "navigation";
597
+ }>>;
598
+ entrySource: z.ZodOptional<z.ZodEnum<{
599
+ list: "list";
600
+ share: "share";
601
+ }>>;
602
+ sharedInspirationId: z.ZodOptional<z.ZodString>;
603
+ filters: z.ZodOptional<z.ZodObject<{
604
+ kind: z.ZodDefault<z.ZodEnum<{
605
+ video: "video";
606
+ playable: "playable";
607
+ }>>;
608
+ days: z.ZodDefault<z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>>>;
609
+ sort: z.ZodDefault<z.ZodEnum<{
610
+ impressions: "impressions";
611
+ newest: "newest";
612
+ activeDays: "activeDays";
613
+ }>>;
614
+ games: z.ZodDefault<z.ZodArray<z.ZodString>>;
615
+ channels: z.ZodDefault<z.ZodArray<z.ZodString>>;
616
+ countries: z.ZodDefault<z.ZodArray<z.ZodString>>;
617
+ page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
618
+ }, z.core.$strict>>;
619
+ detailViewId: z.ZodOptional<z.ZodString>;
620
+ eventId: z.ZodString;
621
+ schemaVersion: z.ZodLiteral<"inspiration-event.v1">;
622
+ occurredAt: z.ZodString;
623
+ teamId: z.ZodString;
624
+ }, z.core.$strict>, z.ZodObject<{
625
+ name: z.ZodLiteral<"page_view">;
626
+ pageId: z.ZodEnum<{
627
+ inspiration_list: "inspiration_list";
628
+ inspiration_detail: "inspiration_detail";
629
+ }>;
630
+ inspirationId: z.ZodOptional<z.ZodString>;
631
+ detailViewId: z.ZodOptional<z.ZodString>;
632
+ source: z.ZodOptional<z.ZodEnum<{
633
+ list: "list";
634
+ share: "share";
635
+ navigation: "navigation";
636
+ }>>;
637
+ entrySource: z.ZodOptional<z.ZodEnum<{
638
+ list: "list";
639
+ share: "share";
640
+ }>>;
641
+ sharedInspirationId: z.ZodOptional<z.ZodString>;
642
+ eventId: z.ZodString;
643
+ schemaVersion: z.ZodLiteral<"inspiration-event.v1">;
644
+ occurredAt: z.ZodString;
645
+ teamId: z.ZodString;
646
+ }, z.core.$strict>], "name">>;
647
+ }, z.core.$strict>;
648
+ export declare const inspirationMetricsQuerySchema: z.ZodObject<{
649
+ since: z.ZodString;
650
+ until: z.ZodString;
651
+ teamId: z.ZodOptional<z.ZodString>;
652
+ inspirationId: z.ZodOptional<z.ZodString>;
653
+ source: z.ZodOptional<z.ZodEnum<{
654
+ list: "list";
655
+ share: "share";
656
+ }>>;
657
+ channel: z.ZodOptional<z.ZodString>;
658
+ includeBackfilled: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
659
+ }, z.core.$strict>;
660
+ export type InspirationMetricsQuery = z.infer<typeof inspirationMetricsQuerySchema>;
661
+ export type InspirationMetricCounts = {
662
+ assistedAdopts: number;
663
+ assistedProduced: number;
664
+ assistedExports: number;
665
+ listPv: number;
666
+ listUv: number;
667
+ detailPv: number;
668
+ detailUv: number;
669
+ detailViews: number;
670
+ cardClicks: number;
671
+ shares: number;
672
+ shareClicks: number;
673
+ shareFailures: number;
674
+ adopts: number;
675
+ sends: number;
676
+ produced: number;
677
+ exportedSessions: number;
678
+ exports: number;
679
+ };
680
+ export type InspirationMetrics = {
681
+ counts: InspirationMetricCounts;
682
+ rates: {
683
+ adoption: number | null;
684
+ send: number | null;
685
+ production: number | null;
686
+ export: number | null;
687
+ };
688
+ inspirations: (InspirationMetricCounts & {
689
+ inspirationId: string;
690
+ gameName: string | null;
691
+ })[];
692
+ channels: {
693
+ channel: string;
694
+ exports: number;
695
+ }[];
696
+ coverageStartedAt: string | null;
697
+ };
698
+ //# sourceMappingURL=index.d.ts.map