@domino-sdk/relay 0.17.2 → 0.18.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/dist/authoring.d.ts +48 -12
- package/dist/authoring.js +64 -7
- package/dist/browser.d.ts +369 -68
- package/dist/browser.js +5 -5
- package/dist/chunk-23ZZTCDK.js +1511 -0
- package/dist/{chunk-GEJK7LMK.js → chunk-6GH4NC2T.js} +1 -1
- package/dist/{chunk-XNS25KST.js → chunk-FBOW2TLN.js} +265 -272
- package/dist/{chunk-MK2E36HR.js → chunk-MVDIVWR5.js} +1 -1
- package/dist/{chunk-TI22MU2X.js → chunk-TQUK4DIW.js} +85 -10
- package/dist/index.d.ts +1063 -101
- package/dist/index.js +110 -26
- package/dist/portal-proxy.js +5 -3
- package/dist/react/index.d.ts +437 -126
- package/dist/react/index.js +5 -5
- package/dist/schema.d.ts +332 -41
- package/dist/schema.js +7 -1
- package/dist/{submission-input-Cktvl71b.d.ts → submission-input-DWlvrAQY.d.ts} +829 -8
- package/package.json +1 -1
- package/dist/chunk-YUAE6PFY.js +0 -1048
|
@@ -23,6 +23,97 @@ declare const xTweetSchema: z.ZodObject<{
|
|
|
23
23
|
isQuoteTweet: z.ZodBoolean;
|
|
24
24
|
}, z.core.$loose>;
|
|
25
25
|
type XTweet = z.infer<typeof xTweetSchema>;
|
|
26
|
+
/** Matches tracker_x_content_body_v1 in migration 0054. Version projection changes;
|
|
27
|
+
* retained bodies must remain readable without rewriting their evidence identities. */
|
|
28
|
+
declare const xContentBodySchema: z.ZodObject<{
|
|
29
|
+
version: z.ZodLiteral<1>;
|
|
30
|
+
id: z.ZodString;
|
|
31
|
+
authorId: z.ZodString;
|
|
32
|
+
publishedAt: z.ZodNumber;
|
|
33
|
+
text: z.ZodString;
|
|
34
|
+
isReply: z.ZodBoolean;
|
|
35
|
+
isRetweet: z.ZodBoolean;
|
|
36
|
+
isQuoteTweet: z.ZodBoolean;
|
|
37
|
+
media: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
38
|
+
type: z.ZodString;
|
|
39
|
+
url: z.ZodString;
|
|
40
|
+
}, z.core.$strict>>>;
|
|
41
|
+
mentionedAuthorIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
42
|
+
videoLengthSeconds: z.ZodNullable<z.ZodNumber>;
|
|
43
|
+
references: z.ZodObject<{
|
|
44
|
+
replyId: z.ZodNullable<z.ZodString>;
|
|
45
|
+
replyAuthorId: z.ZodNullable<z.ZodString>;
|
|
46
|
+
quoteId: z.ZodNullable<z.ZodString>;
|
|
47
|
+
quoteAuthorId: z.ZodNullable<z.ZodString>;
|
|
48
|
+
repostId: z.ZodNullable<z.ZodString>;
|
|
49
|
+
repostAuthorId: z.ZodNullable<z.ZodString>;
|
|
50
|
+
}, z.core.$strict>;
|
|
51
|
+
}, z.core.$strict>;
|
|
52
|
+
declare const trackerContentQuerySchema: z.ZodObject<{
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
observation: z.ZodString;
|
|
55
|
+
}, z.core.$strict>;
|
|
56
|
+
type TrackerContentQuery = z.infer<typeof trackerContentQuerySchema>;
|
|
57
|
+
declare const trackerContentReadSchema: z.ZodObject<{
|
|
58
|
+
id: z.ZodString;
|
|
59
|
+
observation: z.ZodString;
|
|
60
|
+
member: z.ZodString;
|
|
61
|
+
}, z.core.$strict>;
|
|
62
|
+
declare const trackerContentSchema: z.ZodObject<{
|
|
63
|
+
tracker: z.ZodString;
|
|
64
|
+
source: z.ZodLiteral<"x">;
|
|
65
|
+
evidence: z.ZodObject<{
|
|
66
|
+
contentRevision: z.ZodString;
|
|
67
|
+
observation: z.ZodString;
|
|
68
|
+
}, z.core.$strict>;
|
|
69
|
+
content: z.ZodObject<{
|
|
70
|
+
version: z.ZodLiteral<1>;
|
|
71
|
+
id: z.ZodString;
|
|
72
|
+
authorId: z.ZodString;
|
|
73
|
+
publishedAt: z.ZodNumber;
|
|
74
|
+
text: z.ZodString;
|
|
75
|
+
isReply: z.ZodBoolean;
|
|
76
|
+
isRetweet: z.ZodBoolean;
|
|
77
|
+
isQuoteTweet: z.ZodBoolean;
|
|
78
|
+
media: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
79
|
+
type: z.ZodString;
|
|
80
|
+
url: z.ZodString;
|
|
81
|
+
}, z.core.$strict>>>;
|
|
82
|
+
mentionedAuthorIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
83
|
+
videoLengthSeconds: z.ZodNullable<z.ZodNumber>;
|
|
84
|
+
references: z.ZodObject<{
|
|
85
|
+
replyId: z.ZodNullable<z.ZodString>;
|
|
86
|
+
replyAuthorId: z.ZodNullable<z.ZodString>;
|
|
87
|
+
quoteId: z.ZodNullable<z.ZodString>;
|
|
88
|
+
quoteAuthorId: z.ZodNullable<z.ZodString>;
|
|
89
|
+
repostId: z.ZodNullable<z.ZodString>;
|
|
90
|
+
repostAuthorId: z.ZodNullable<z.ZodString>;
|
|
91
|
+
}, z.core.$strict>;
|
|
92
|
+
}, z.core.$strict>;
|
|
93
|
+
observedAt: z.ZodNumber;
|
|
94
|
+
removed: z.ZodBoolean;
|
|
95
|
+
attribution: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
96
|
+
kind: z.ZodLiteral<"linked">;
|
|
97
|
+
account: z.ZodObject<{
|
|
98
|
+
provider: z.ZodLiteral<"x">;
|
|
99
|
+
issuer: z.ZodString;
|
|
100
|
+
subject: z.ZodString;
|
|
101
|
+
revision: z.ZodNumber;
|
|
102
|
+
linkedAt: z.ZodNullable<z.ZodNumber>;
|
|
103
|
+
}, z.core.$strict>;
|
|
104
|
+
member: z.ZodString;
|
|
105
|
+
capturedAt: z.ZodNumber;
|
|
106
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
107
|
+
kind: z.ZodLiteral<"unlinked">;
|
|
108
|
+
member: z.ZodString;
|
|
109
|
+
capturedAt: z.ZodNumber;
|
|
110
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
111
|
+
kind: z.ZodLiteral<"different-author">;
|
|
112
|
+
member: z.ZodString;
|
|
113
|
+
capturedAt: z.ZodNumber;
|
|
114
|
+
}, z.core.$strict>], "kind">;
|
|
115
|
+
}, z.core.$strict>;
|
|
116
|
+
type TrackerContent = z.infer<typeof trackerContentSchema>;
|
|
26
117
|
declare const trackerSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
27
118
|
kind: z.ZodLiteral<"x-search">;
|
|
28
119
|
query: z.ZodString;
|
|
@@ -177,6 +268,10 @@ declare const trackerRecordSchema: z.ZodObject<{
|
|
|
177
268
|
removed: z.ZodDefault<z.ZodBoolean>;
|
|
178
269
|
source: z.ZodString;
|
|
179
270
|
firstSeenAt: z.ZodNumber;
|
|
271
|
+
evidence: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
272
|
+
contentRevision: z.ZodString;
|
|
273
|
+
observation: z.ZodString;
|
|
274
|
+
}, z.core.$strict>>>;
|
|
180
275
|
}, z.core.$strict>;
|
|
181
276
|
type TrackerRecord = z.infer<typeof trackerRecordSchema>;
|
|
182
277
|
declare const trackerIngestSchema: z.ZodObject<{
|
|
@@ -213,6 +308,10 @@ declare const trackerQuerySchema: z.ZodObject<{
|
|
|
213
308
|
minViews: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
214
309
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
215
310
|
cursor: z.ZodOptional<z.ZodString>;
|
|
311
|
+
includeEvidence: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodEnum<{
|
|
312
|
+
true: "true";
|
|
313
|
+
false: "false";
|
|
314
|
+
}>, z.ZodTransform<boolean, "true" | "false">>]>>;
|
|
216
315
|
}, z.core.$strict>;
|
|
217
316
|
type TrackerQuery = z.input<typeof trackerQuerySchema>;
|
|
218
317
|
declare const trackerPageSchema: z.ZodObject<{
|
|
@@ -229,6 +328,10 @@ declare const trackerPageSchema: z.ZodObject<{
|
|
|
229
328
|
removed: z.ZodDefault<z.ZodBoolean>;
|
|
230
329
|
source: z.ZodString;
|
|
231
330
|
firstSeenAt: z.ZodNumber;
|
|
331
|
+
evidence: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
332
|
+
contentRevision: z.ZodString;
|
|
333
|
+
observation: z.ZodString;
|
|
334
|
+
}, z.core.$strict>>>;
|
|
232
335
|
}, z.core.$strict>>;
|
|
233
336
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
234
337
|
total: z.ZodNumber;
|
|
@@ -373,6 +476,10 @@ declare const trackerPreviewSchema: z.ZodObject<{
|
|
|
373
476
|
type TrackerPreview = z.infer<typeof trackerPreviewSchema>;
|
|
374
477
|
/** Read-only capabilities in hosted quest evaluation; results are captured for replay. */
|
|
375
478
|
type TrackerReader = {
|
|
479
|
+
/** Captures an X body and attribution to the evaluating member, with no live metrics. */
|
|
480
|
+
content(reference: string | {
|
|
481
|
+
key: string;
|
|
482
|
+
}, query: TrackerContentQuery): Promise<TrackerContent>;
|
|
376
483
|
records(reference: string | {
|
|
377
484
|
key: string;
|
|
378
485
|
}, query?: TrackerQuery): Promise<z.infer<typeof trackerPageSchema>>;
|
|
@@ -381,6 +488,720 @@ type TrackerReader = {
|
|
|
381
488
|
}, query?: TrackerQuery): Promise<z.infer<typeof trackerSummarySchema>>;
|
|
382
489
|
};
|
|
383
490
|
|
|
491
|
+
declare const contentPolicySchema: z.ZodObject<{
|
|
492
|
+
tracker: z.ZodString;
|
|
493
|
+
window: z.ZodObject<{
|
|
494
|
+
start: z.ZodNumber;
|
|
495
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
496
|
+
}, z.core.$strict>;
|
|
497
|
+
enrollment: z.ZodDefault<z.ZodEnum<{
|
|
498
|
+
required: "required";
|
|
499
|
+
none: "none";
|
|
500
|
+
}>>;
|
|
501
|
+
posts: z.ZodDefault<z.ZodEnum<{
|
|
502
|
+
"after-enrollment": "after-enrollment";
|
|
503
|
+
"since-start": "since-start";
|
|
504
|
+
}>>;
|
|
505
|
+
historical: z.ZodDefault<z.ZodEnum<{
|
|
506
|
+
staff: "staff";
|
|
507
|
+
automatic: "automatic";
|
|
508
|
+
claim: "claim";
|
|
509
|
+
}>>;
|
|
510
|
+
}, z.core.$strict>;
|
|
511
|
+
type ContentPolicy = z.infer<typeof contentPolicySchema>;
|
|
512
|
+
/** Discover posts automatically; historical release remains an explicit policy. */
|
|
513
|
+
declare function content(tracker: TrackerDefinition, policy?: Partial<Pick<ContentPolicy, "enrollment" | "posts" | "historical">>): {
|
|
514
|
+
kind: "automatic";
|
|
515
|
+
content: {
|
|
516
|
+
tracker: string;
|
|
517
|
+
window: {
|
|
518
|
+
start: number;
|
|
519
|
+
end?: number | undefined;
|
|
520
|
+
};
|
|
521
|
+
enrollment: "required" | "none";
|
|
522
|
+
posts: "after-enrollment" | "since-start";
|
|
523
|
+
historical: "staff" | "automatic" | "claim";
|
|
524
|
+
};
|
|
525
|
+
};
|
|
526
|
+
declare const admittedContentSchema: z.ZodObject<{
|
|
527
|
+
version: z.ZodLiteral<1>;
|
|
528
|
+
id: z.ZodString;
|
|
529
|
+
authorId: z.ZodString;
|
|
530
|
+
publishedAt: z.ZodNumber;
|
|
531
|
+
text: z.ZodString;
|
|
532
|
+
isReply: z.ZodBoolean;
|
|
533
|
+
isRetweet: z.ZodBoolean;
|
|
534
|
+
isQuoteTweet: z.ZodBoolean;
|
|
535
|
+
media: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
536
|
+
type: z.ZodString;
|
|
537
|
+
url: z.ZodString;
|
|
538
|
+
}, z.core.$strict>>>;
|
|
539
|
+
mentionedAuthorIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
540
|
+
videoLengthSeconds: z.ZodNullable<z.ZodNumber>;
|
|
541
|
+
references: z.ZodObject<{
|
|
542
|
+
replyId: z.ZodNullable<z.ZodString>;
|
|
543
|
+
replyAuthorId: z.ZodNullable<z.ZodString>;
|
|
544
|
+
quoteId: z.ZodNullable<z.ZodString>;
|
|
545
|
+
quoteAuthorId: z.ZodNullable<z.ZodString>;
|
|
546
|
+
repostId: z.ZodNullable<z.ZodString>;
|
|
547
|
+
repostAuthorId: z.ZodNullable<z.ZodString>;
|
|
548
|
+
}, z.core.$strict>;
|
|
549
|
+
tracker: z.ZodString;
|
|
550
|
+
revision: z.ZodString;
|
|
551
|
+
observation: z.ZodString;
|
|
552
|
+
attribution: z.ZodObject<{
|
|
553
|
+
kind: z.ZodLiteral<"linked">;
|
|
554
|
+
account: z.ZodObject<{
|
|
555
|
+
provider: z.ZodLiteral<"x">;
|
|
556
|
+
issuer: z.ZodString;
|
|
557
|
+
subject: z.ZodString;
|
|
558
|
+
revision: z.ZodNumber;
|
|
559
|
+
linkedAt: z.ZodNullable<z.ZodNumber>;
|
|
560
|
+
}, z.core.$strict>;
|
|
561
|
+
member: z.ZodString;
|
|
562
|
+
capturedAt: z.ZodNumber;
|
|
563
|
+
}, z.core.$strict>;
|
|
564
|
+
enrolledAt: z.ZodNullable<z.ZodNumber>;
|
|
565
|
+
completionKey: z.ZodString;
|
|
566
|
+
}, z.core.$strict>;
|
|
567
|
+
type AdmittedContent = z.infer<typeof admittedContentSchema>;
|
|
568
|
+
declare function perContent(): {
|
|
569
|
+
kind: "keyed";
|
|
570
|
+
perContent: true;
|
|
571
|
+
key: (ctx: {
|
|
572
|
+
content?: AdmittedContent | null;
|
|
573
|
+
}) => string;
|
|
574
|
+
};
|
|
575
|
+
declare const contentEnrollmentInputSchema: z.ZodObject<{
|
|
576
|
+
actionId: z.ZodString;
|
|
577
|
+
quest: z.ZodString;
|
|
578
|
+
member: z.ZodString;
|
|
579
|
+
}, z.core.$strict>;
|
|
580
|
+
declare const contentEnrollmentSchema: z.ZodObject<{
|
|
581
|
+
quest: z.ZodString;
|
|
582
|
+
member: z.ZodString;
|
|
583
|
+
enrolledAt: z.ZodNumber;
|
|
584
|
+
}, z.core.$strict>;
|
|
585
|
+
declare const contentReleaseInputSchema: z.ZodObject<{
|
|
586
|
+
actionId: z.ZodString;
|
|
587
|
+
quest: z.ZodString;
|
|
588
|
+
member: z.ZodString;
|
|
589
|
+
content: z.ZodString;
|
|
590
|
+
}, z.core.$strict>;
|
|
591
|
+
declare const contentAdmissionSchema: z.ZodObject<{
|
|
592
|
+
quest: z.ZodString;
|
|
593
|
+
content: z.ZodString;
|
|
594
|
+
release: z.ZodString;
|
|
595
|
+
state: z.ZodEnum<{
|
|
596
|
+
pending: "pending";
|
|
597
|
+
excluded: "excluded";
|
|
598
|
+
admitted: "admitted";
|
|
599
|
+
}>;
|
|
600
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
601
|
+
attempt: z.ZodNullable<z.ZodString>;
|
|
602
|
+
}, z.core.$strict>;
|
|
603
|
+
declare const contentAdmissionQuerySchema: z.ZodObject<{
|
|
604
|
+
quest: z.ZodString;
|
|
605
|
+
member: z.ZodOptional<z.ZodString>;
|
|
606
|
+
content: z.ZodOptional<z.ZodString>;
|
|
607
|
+
after: z.ZodOptional<z.ZodString>;
|
|
608
|
+
}, z.core.$strict>;
|
|
609
|
+
declare const contentAdmissionPageSchema: z.ZodObject<{
|
|
610
|
+
items: z.ZodArray<z.ZodObject<{
|
|
611
|
+
quest: z.ZodString;
|
|
612
|
+
content: z.ZodString;
|
|
613
|
+
release: z.ZodString;
|
|
614
|
+
state: z.ZodEnum<{
|
|
615
|
+
pending: "pending";
|
|
616
|
+
excluded: "excluded";
|
|
617
|
+
admitted: "admitted";
|
|
618
|
+
}>;
|
|
619
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
620
|
+
attempt: z.ZodNullable<z.ZodString>;
|
|
621
|
+
}, z.core.$strict>>;
|
|
622
|
+
next: z.ZodNullable<z.ZodString>;
|
|
623
|
+
}, z.core.$strict>;
|
|
624
|
+
/** Shared by hosted proxies and the API's scope selector. */
|
|
625
|
+
declare function isContentParticipantRoute(path: string, method: string): boolean;
|
|
626
|
+
declare const contentQualificationDecisionSchema: z.ZodObject<{
|
|
627
|
+
kind: z.ZodEnum<{
|
|
628
|
+
accept: "accept";
|
|
629
|
+
reject: "reject";
|
|
630
|
+
review: "review";
|
|
631
|
+
superseded: "superseded";
|
|
632
|
+
}>;
|
|
633
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
634
|
+
}, z.core.$strict>;
|
|
635
|
+
declare const contentQualificationQuerySchema: z.ZodObject<{
|
|
636
|
+
quest: z.ZodString;
|
|
637
|
+
member: z.ZodOptional<z.ZodString>;
|
|
638
|
+
content: z.ZodOptional<z.ZodString>;
|
|
639
|
+
before: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
640
|
+
}, z.core.$strict>;
|
|
641
|
+
declare const contentQualificationSchema: z.ZodObject<{
|
|
642
|
+
quest: z.ZodString;
|
|
643
|
+
content: z.ZodString;
|
|
644
|
+
member: z.ZodString;
|
|
645
|
+
release: z.ZodString;
|
|
646
|
+
attempt: z.ZodString;
|
|
647
|
+
revision: z.ZodString;
|
|
648
|
+
observation: z.ZodString;
|
|
649
|
+
current: z.ZodBoolean;
|
|
650
|
+
state: z.ZodEnum<{
|
|
651
|
+
"needs-review": "needs-review";
|
|
652
|
+
failed: "failed";
|
|
653
|
+
pending: "pending";
|
|
654
|
+
qualified: "qualified";
|
|
655
|
+
unqualified: "unqualified";
|
|
656
|
+
superseded: "superseded";
|
|
657
|
+
stale: "stale";
|
|
658
|
+
blocked: "blocked";
|
|
659
|
+
unavailable: "unavailable";
|
|
660
|
+
}>;
|
|
661
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
662
|
+
reward: z.ZodObject<{
|
|
663
|
+
attempt: z.ZodNullable<z.ZodString>;
|
|
664
|
+
completion: z.ZodNullable<z.ZodString>;
|
|
665
|
+
state: z.ZodEnum<{
|
|
666
|
+
awarded: "awarded";
|
|
667
|
+
unresolved: "unresolved";
|
|
668
|
+
excluded: "excluded";
|
|
669
|
+
}>;
|
|
670
|
+
}, z.core.$strict>;
|
|
671
|
+
}, z.core.$strict>;
|
|
672
|
+
declare const contentQualificationPageSchema: z.ZodObject<{
|
|
673
|
+
items: z.ZodArray<z.ZodObject<{
|
|
674
|
+
quest: z.ZodString;
|
|
675
|
+
content: z.ZodString;
|
|
676
|
+
member: z.ZodString;
|
|
677
|
+
release: z.ZodString;
|
|
678
|
+
attempt: z.ZodString;
|
|
679
|
+
revision: z.ZodString;
|
|
680
|
+
observation: z.ZodString;
|
|
681
|
+
current: z.ZodBoolean;
|
|
682
|
+
state: z.ZodEnum<{
|
|
683
|
+
"needs-review": "needs-review";
|
|
684
|
+
failed: "failed";
|
|
685
|
+
pending: "pending";
|
|
686
|
+
qualified: "qualified";
|
|
687
|
+
unqualified: "unqualified";
|
|
688
|
+
superseded: "superseded";
|
|
689
|
+
stale: "stale";
|
|
690
|
+
blocked: "blocked";
|
|
691
|
+
unavailable: "unavailable";
|
|
692
|
+
}>;
|
|
693
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
694
|
+
reward: z.ZodObject<{
|
|
695
|
+
attempt: z.ZodNullable<z.ZodString>;
|
|
696
|
+
completion: z.ZodNullable<z.ZodString>;
|
|
697
|
+
state: z.ZodEnum<{
|
|
698
|
+
awarded: "awarded";
|
|
699
|
+
unresolved: "unresolved";
|
|
700
|
+
excluded: "excluded";
|
|
701
|
+
}>;
|
|
702
|
+
}, z.core.$strict>;
|
|
703
|
+
}, z.core.$strict>>;
|
|
704
|
+
next: z.ZodNullable<z.ZodNumber>;
|
|
705
|
+
}, z.core.$strict>;
|
|
706
|
+
declare const contentMetricSchema: z.ZodEnum<{
|
|
707
|
+
likes: "likes";
|
|
708
|
+
replies: "replies";
|
|
709
|
+
reposts: "reposts";
|
|
710
|
+
quotes: "quotes";
|
|
711
|
+
views: "views";
|
|
712
|
+
bookmarks: "bookmarks";
|
|
713
|
+
}>;
|
|
714
|
+
type ContentMetric = z.infer<typeof contentMetricSchema>;
|
|
715
|
+
declare const contentMetricsSchema: z.ZodRecord<z.ZodEnum<{
|
|
716
|
+
likes: "likes";
|
|
717
|
+
replies: "replies";
|
|
718
|
+
reposts: "reposts";
|
|
719
|
+
quotes: "quotes";
|
|
720
|
+
views: "views";
|
|
721
|
+
bookmarks: "bookmarks";
|
|
722
|
+
}> & z.core.$partial, z.ZodNumber>;
|
|
723
|
+
declare const contentPerformancePolicySchema: z.ZodObject<{
|
|
724
|
+
metrics: z.ZodArray<z.ZodEnum<{
|
|
725
|
+
likes: "likes";
|
|
726
|
+
replies: "replies";
|
|
727
|
+
reposts: "reposts";
|
|
728
|
+
quotes: "quotes";
|
|
729
|
+
views: "views";
|
|
730
|
+
bookmarks: "bookmarks";
|
|
731
|
+
}>>;
|
|
732
|
+
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
733
|
+
}, z.core.$strict>;
|
|
734
|
+
type ContentPerformancePolicy = z.infer<typeof contentPerformancePolicySchema>;
|
|
735
|
+
|
|
736
|
+
declare const engagementDefinitionSchema: z.ZodObject<{
|
|
737
|
+
key: z.ZodString;
|
|
738
|
+
qualifiedBy: z.ZodString;
|
|
739
|
+
balance: z.ZodString;
|
|
740
|
+
metrics: z.ZodArray<z.ZodEnum<{
|
|
741
|
+
likes: "likes";
|
|
742
|
+
replies: "replies";
|
|
743
|
+
reposts: "reposts";
|
|
744
|
+
quotes: "quotes";
|
|
745
|
+
views: "views";
|
|
746
|
+
bookmarks: "bookmarks";
|
|
747
|
+
}>>;
|
|
748
|
+
baseline: z.ZodLiteral<"historical">;
|
|
749
|
+
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
750
|
+
budget: z.ZodDefault<z.ZodObject<{
|
|
751
|
+
projectDaily: z.ZodOptional<z.ZodNumber>;
|
|
752
|
+
memberDaily: z.ZodOptional<z.ZodNumber>;
|
|
753
|
+
projectLifetime: z.ZodOptional<z.ZodNumber>;
|
|
754
|
+
}, z.core.$strict>>;
|
|
755
|
+
}, z.core.$strict>;
|
|
756
|
+
type EngagementDefinition = z.infer<typeof engagementDefinitionSchema>;
|
|
757
|
+
declare const engagementScoreInputSchema: z.ZodObject<{
|
|
758
|
+
metrics: z.ZodRecord<z.ZodEnum<{
|
|
759
|
+
likes: "likes";
|
|
760
|
+
replies: "replies";
|
|
761
|
+
reposts: "reposts";
|
|
762
|
+
quotes: "quotes";
|
|
763
|
+
views: "views";
|
|
764
|
+
bookmarks: "bookmarks";
|
|
765
|
+
}> & z.core.$partial, z.ZodNumber>;
|
|
766
|
+
baseline: z.ZodRecord<z.ZodEnum<{
|
|
767
|
+
likes: "likes";
|
|
768
|
+
replies: "replies";
|
|
769
|
+
reposts: "reposts";
|
|
770
|
+
quotes: "quotes";
|
|
771
|
+
views: "views";
|
|
772
|
+
bookmarks: "bookmarks";
|
|
773
|
+
}> & z.core.$partial, z.ZodNumber>;
|
|
774
|
+
}, z.core.$strict>;
|
|
775
|
+
declare const engagementScoreSchema: z.ZodObject<{
|
|
776
|
+
target: z.ZodNumber;
|
|
777
|
+
baseline: z.ZodNumber;
|
|
778
|
+
}, z.core.$strict>;
|
|
779
|
+
declare const engagementPublishSchema: z.ZodObject<{
|
|
780
|
+
actionId: z.ZodString;
|
|
781
|
+
code: z.ZodString;
|
|
782
|
+
}, z.core.$strict>;
|
|
783
|
+
declare const engagementRuleSchema: z.ZodObject<{
|
|
784
|
+
version: z.ZodString;
|
|
785
|
+
definition: z.ZodObject<{
|
|
786
|
+
key: z.ZodString;
|
|
787
|
+
qualifiedBy: z.ZodString;
|
|
788
|
+
balance: z.ZodString;
|
|
789
|
+
metrics: z.ZodArray<z.ZodEnum<{
|
|
790
|
+
likes: "likes";
|
|
791
|
+
replies: "replies";
|
|
792
|
+
reposts: "reposts";
|
|
793
|
+
quotes: "quotes";
|
|
794
|
+
views: "views";
|
|
795
|
+
bookmarks: "bookmarks";
|
|
796
|
+
}>>;
|
|
797
|
+
baseline: z.ZodLiteral<"historical">;
|
|
798
|
+
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
799
|
+
budget: z.ZodDefault<z.ZodObject<{
|
|
800
|
+
projectDaily: z.ZodOptional<z.ZodNumber>;
|
|
801
|
+
memberDaily: z.ZodOptional<z.ZodNumber>;
|
|
802
|
+
projectLifetime: z.ZodOptional<z.ZodNumber>;
|
|
803
|
+
}, z.core.$strict>>;
|
|
804
|
+
}, z.core.$strict>;
|
|
805
|
+
publishedAt: z.ZodNumber;
|
|
806
|
+
}, z.core.$strict>;
|
|
807
|
+
declare const engagementPageQuerySchema: z.ZodObject<{
|
|
808
|
+
rule: z.ZodString;
|
|
809
|
+
content: z.ZodString;
|
|
810
|
+
member: z.ZodOptional<z.ZodString>;
|
|
811
|
+
before: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
812
|
+
}, z.core.$strict>;
|
|
813
|
+
declare const engagementSettlementSchema: z.ZodObject<{
|
|
814
|
+
id: z.ZodString;
|
|
815
|
+
day: z.ZodString;
|
|
816
|
+
observation: z.ZodString;
|
|
817
|
+
qualification: z.ZodString;
|
|
818
|
+
earned: z.ZodNumber;
|
|
819
|
+
growth: z.ZodNumber;
|
|
820
|
+
paid: z.ZodNumber;
|
|
821
|
+
excluded: z.ZodNumber;
|
|
822
|
+
entry: z.ZodNullable<z.ZodString>;
|
|
823
|
+
createdAt: z.ZodNumber;
|
|
824
|
+
}, z.core.$strict>;
|
|
825
|
+
declare const engagementPageSchema: z.ZodObject<{
|
|
826
|
+
rule: z.ZodObject<{
|
|
827
|
+
version: z.ZodString;
|
|
828
|
+
definition: z.ZodObject<{
|
|
829
|
+
key: z.ZodString;
|
|
830
|
+
qualifiedBy: z.ZodString;
|
|
831
|
+
balance: z.ZodString;
|
|
832
|
+
metrics: z.ZodArray<z.ZodEnum<{
|
|
833
|
+
likes: "likes";
|
|
834
|
+
replies: "replies";
|
|
835
|
+
reposts: "reposts";
|
|
836
|
+
quotes: "quotes";
|
|
837
|
+
views: "views";
|
|
838
|
+
bookmarks: "bookmarks";
|
|
839
|
+
}>>;
|
|
840
|
+
baseline: z.ZodLiteral<"historical">;
|
|
841
|
+
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
842
|
+
budget: z.ZodDefault<z.ZodObject<{
|
|
843
|
+
projectDaily: z.ZodOptional<z.ZodNumber>;
|
|
844
|
+
memberDaily: z.ZodOptional<z.ZodNumber>;
|
|
845
|
+
projectLifetime: z.ZodOptional<z.ZodNumber>;
|
|
846
|
+
}, z.core.$strict>>;
|
|
847
|
+
}, z.core.$strict>;
|
|
848
|
+
publishedAt: z.ZodNumber;
|
|
849
|
+
}, z.core.$strict>;
|
|
850
|
+
account: z.ZodNullable<z.ZodObject<{
|
|
851
|
+
member: z.ZodString;
|
|
852
|
+
earned: z.ZodNumber;
|
|
853
|
+
accounted: z.ZodNumber;
|
|
854
|
+
paid: z.ZodNumber;
|
|
855
|
+
excluded: z.ZodNumber;
|
|
856
|
+
pending: z.ZodNumber;
|
|
857
|
+
counters: z.ZodRecord<z.ZodEnum<{
|
|
858
|
+
likes: "likes";
|
|
859
|
+
replies: "replies";
|
|
860
|
+
reposts: "reposts";
|
|
861
|
+
quotes: "quotes";
|
|
862
|
+
views: "views";
|
|
863
|
+
bookmarks: "bookmarks";
|
|
864
|
+
}> & z.core.$partial, z.ZodNumber>;
|
|
865
|
+
baseline: z.ZodRecord<z.ZodEnum<{
|
|
866
|
+
likes: "likes";
|
|
867
|
+
replies: "replies";
|
|
868
|
+
reposts: "reposts";
|
|
869
|
+
quotes: "quotes";
|
|
870
|
+
views: "views";
|
|
871
|
+
bookmarks: "bookmarks";
|
|
872
|
+
}> & z.core.$partial, z.ZodNumber>;
|
|
873
|
+
observation: z.ZodNullable<z.ZodString>;
|
|
874
|
+
nextSettlementAt: z.ZodNullable<z.ZodNumber>;
|
|
875
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
876
|
+
}, z.core.$strict>>;
|
|
877
|
+
items: z.ZodArray<z.ZodObject<{
|
|
878
|
+
id: z.ZodString;
|
|
879
|
+
day: z.ZodString;
|
|
880
|
+
observation: z.ZodString;
|
|
881
|
+
qualification: z.ZodString;
|
|
882
|
+
earned: z.ZodNumber;
|
|
883
|
+
growth: z.ZodNumber;
|
|
884
|
+
paid: z.ZodNumber;
|
|
885
|
+
excluded: z.ZodNumber;
|
|
886
|
+
entry: z.ZodNullable<z.ZodString>;
|
|
887
|
+
createdAt: z.ZodNumber;
|
|
888
|
+
}, z.core.$strict>>;
|
|
889
|
+
next: z.ZodNullable<z.ZodNumber>;
|
|
890
|
+
}, z.core.$strict>;
|
|
891
|
+
/** One independent cumulative formula; management changes capture a new scoring boundary. */
|
|
892
|
+
declare function defineEngagementReward<const M extends readonly [ContentMetric, ...ContentMetric[]]>(input: {
|
|
893
|
+
key: string;
|
|
894
|
+
qualifiedBy: string | {
|
|
895
|
+
key: string;
|
|
896
|
+
};
|
|
897
|
+
balance: string;
|
|
898
|
+
metrics: M;
|
|
899
|
+
baseline: "historical";
|
|
900
|
+
maxAgeMs?: number;
|
|
901
|
+
budget?: EngagementDefinition["budget"];
|
|
902
|
+
target: (input: {
|
|
903
|
+
metrics: Record<M[number], number>;
|
|
904
|
+
}) => number;
|
|
905
|
+
}): {
|
|
906
|
+
key: string;
|
|
907
|
+
describe: () => {
|
|
908
|
+
key: string;
|
|
909
|
+
qualifiedBy: string;
|
|
910
|
+
balance: string;
|
|
911
|
+
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
912
|
+
baseline: "historical";
|
|
913
|
+
maxAgeMs: number;
|
|
914
|
+
budget: {
|
|
915
|
+
projectDaily?: number | undefined;
|
|
916
|
+
memberDaily?: number | undefined;
|
|
917
|
+
projectLifetime?: number | undefined;
|
|
918
|
+
};
|
|
919
|
+
};
|
|
920
|
+
score(raw: unknown): {
|
|
921
|
+
target: number;
|
|
922
|
+
baseline: number;
|
|
923
|
+
};
|
|
924
|
+
};
|
|
925
|
+
declare const engagementChangePreviewInputSchema: z.ZodObject<{
|
|
926
|
+
code: z.ZodString;
|
|
927
|
+
}, z.core.$strict>;
|
|
928
|
+
declare const engagementChangeSchema: z.ZodObject<{
|
|
929
|
+
actionId: z.ZodString;
|
|
930
|
+
code: z.ZodString;
|
|
931
|
+
expectedVersion: z.ZodString;
|
|
932
|
+
previewHash: z.ZodString;
|
|
933
|
+
}, z.core.$strict>;
|
|
934
|
+
declare const engagementChangePreviewSchema: z.ZodObject<{
|
|
935
|
+
rule: z.ZodString;
|
|
936
|
+
fromVersion: z.ZodString;
|
|
937
|
+
toVersion: z.ZodString;
|
|
938
|
+
previewHash: z.ZodString;
|
|
939
|
+
definition: z.ZodObject<{
|
|
940
|
+
key: z.ZodString;
|
|
941
|
+
qualifiedBy: z.ZodString;
|
|
942
|
+
balance: z.ZodString;
|
|
943
|
+
metrics: z.ZodArray<z.ZodEnum<{
|
|
944
|
+
likes: "likes";
|
|
945
|
+
replies: "replies";
|
|
946
|
+
reposts: "reposts";
|
|
947
|
+
quotes: "quotes";
|
|
948
|
+
views: "views";
|
|
949
|
+
bookmarks: "bookmarks";
|
|
950
|
+
}>>;
|
|
951
|
+
baseline: z.ZodLiteral<"historical">;
|
|
952
|
+
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
953
|
+
budget: z.ZodDefault<z.ZodObject<{
|
|
954
|
+
projectDaily: z.ZodOptional<z.ZodNumber>;
|
|
955
|
+
memberDaily: z.ZodOptional<z.ZodNumber>;
|
|
956
|
+
projectLifetime: z.ZodOptional<z.ZodNumber>;
|
|
957
|
+
}, z.core.$strict>>;
|
|
958
|
+
}, z.core.$strict>;
|
|
959
|
+
boundary: z.ZodLiteral<"available-eligible-observation">;
|
|
960
|
+
settlement: z.ZodLiteral<"deferred">;
|
|
961
|
+
summary: z.ZodObject<{
|
|
962
|
+
knownAdmissions: z.ZodNumber;
|
|
963
|
+
accounts: z.ZodNumber;
|
|
964
|
+
uninitialized: z.ZodNumber;
|
|
965
|
+
pendingTransitions: z.ZodNumber;
|
|
966
|
+
earned: z.ZodString;
|
|
967
|
+
paid: z.ZodString;
|
|
968
|
+
excluded: z.ZodString;
|
|
969
|
+
pending: z.ZodString;
|
|
970
|
+
}, z.core.$strict>;
|
|
971
|
+
}, z.core.$strict>;
|
|
972
|
+
declare const engagementVersionPageSchema: z.ZodObject<{
|
|
973
|
+
items: z.ZodArray<z.ZodObject<{
|
|
974
|
+
version: z.ZodString;
|
|
975
|
+
definition: z.ZodObject<{
|
|
976
|
+
key: z.ZodString;
|
|
977
|
+
qualifiedBy: z.ZodString;
|
|
978
|
+
balance: z.ZodString;
|
|
979
|
+
metrics: z.ZodArray<z.ZodEnum<{
|
|
980
|
+
likes: "likes";
|
|
981
|
+
replies: "replies";
|
|
982
|
+
reposts: "reposts";
|
|
983
|
+
quotes: "quotes";
|
|
984
|
+
views: "views";
|
|
985
|
+
bookmarks: "bookmarks";
|
|
986
|
+
}>>;
|
|
987
|
+
baseline: z.ZodLiteral<"historical">;
|
|
988
|
+
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
989
|
+
budget: z.ZodDefault<z.ZodObject<{
|
|
990
|
+
projectDaily: z.ZodOptional<z.ZodNumber>;
|
|
991
|
+
memberDaily: z.ZodOptional<z.ZodNumber>;
|
|
992
|
+
projectLifetime: z.ZodOptional<z.ZodNumber>;
|
|
993
|
+
}, z.core.$strict>>;
|
|
994
|
+
}, z.core.$strict>;
|
|
995
|
+
publishedAt: z.ZodNumber;
|
|
996
|
+
previousVersion: z.ZodNullable<z.ZodString>;
|
|
997
|
+
}, z.core.$strict>>;
|
|
998
|
+
next: z.ZodNullable<z.ZodNumber>;
|
|
999
|
+
}, z.core.$strict>;
|
|
1000
|
+
declare const engagementVersionQuerySchema: z.ZodObject<{
|
|
1001
|
+
rule: z.ZodString;
|
|
1002
|
+
before: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1003
|
+
}, z.core.$strict>;
|
|
1004
|
+
declare const engagementBoundaryPageSchema: z.ZodObject<{
|
|
1005
|
+
current: z.ZodNullable<z.ZodObject<{
|
|
1006
|
+
version: z.ZodString;
|
|
1007
|
+
definition: z.ZodObject<{
|
|
1008
|
+
key: z.ZodString;
|
|
1009
|
+
qualifiedBy: z.ZodString;
|
|
1010
|
+
balance: z.ZodString;
|
|
1011
|
+
metrics: z.ZodArray<z.ZodEnum<{
|
|
1012
|
+
likes: "likes";
|
|
1013
|
+
replies: "replies";
|
|
1014
|
+
reposts: "reposts";
|
|
1015
|
+
quotes: "quotes";
|
|
1016
|
+
views: "views";
|
|
1017
|
+
bookmarks: "bookmarks";
|
|
1018
|
+
}>>;
|
|
1019
|
+
baseline: z.ZodLiteral<"historical">;
|
|
1020
|
+
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
1021
|
+
budget: z.ZodDefault<z.ZodObject<{
|
|
1022
|
+
projectDaily: z.ZodOptional<z.ZodNumber>;
|
|
1023
|
+
memberDaily: z.ZodOptional<z.ZodNumber>;
|
|
1024
|
+
projectLifetime: z.ZodOptional<z.ZodNumber>;
|
|
1025
|
+
}, z.core.$strict>>;
|
|
1026
|
+
}, z.core.$strict>;
|
|
1027
|
+
publishedAt: z.ZodNumber;
|
|
1028
|
+
}, z.core.$strict>>;
|
|
1029
|
+
requested: z.ZodObject<{
|
|
1030
|
+
version: z.ZodString;
|
|
1031
|
+
definition: z.ZodObject<{
|
|
1032
|
+
key: z.ZodString;
|
|
1033
|
+
qualifiedBy: z.ZodString;
|
|
1034
|
+
balance: z.ZodString;
|
|
1035
|
+
metrics: z.ZodArray<z.ZodEnum<{
|
|
1036
|
+
likes: "likes";
|
|
1037
|
+
replies: "replies";
|
|
1038
|
+
reposts: "reposts";
|
|
1039
|
+
quotes: "quotes";
|
|
1040
|
+
views: "views";
|
|
1041
|
+
bookmarks: "bookmarks";
|
|
1042
|
+
}>>;
|
|
1043
|
+
baseline: z.ZodLiteral<"historical">;
|
|
1044
|
+
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
1045
|
+
budget: z.ZodDefault<z.ZodObject<{
|
|
1046
|
+
projectDaily: z.ZodOptional<z.ZodNumber>;
|
|
1047
|
+
memberDaily: z.ZodOptional<z.ZodNumber>;
|
|
1048
|
+
projectLifetime: z.ZodOptional<z.ZodNumber>;
|
|
1049
|
+
}, z.core.$strict>>;
|
|
1050
|
+
}, z.core.$strict>;
|
|
1051
|
+
publishedAt: z.ZodNumber;
|
|
1052
|
+
}, z.core.$strict>;
|
|
1053
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1054
|
+
from: z.ZodString;
|
|
1055
|
+
to: z.ZodString;
|
|
1056
|
+
baseline: z.ZodRecord<z.ZodEnum<{
|
|
1057
|
+
likes: "likes";
|
|
1058
|
+
replies: "replies";
|
|
1059
|
+
reposts: "reposts";
|
|
1060
|
+
quotes: "quotes";
|
|
1061
|
+
views: "views";
|
|
1062
|
+
bookmarks: "bookmarks";
|
|
1063
|
+
}> & z.core.$partial, z.ZodNumber>;
|
|
1064
|
+
observedAt: z.ZodNumber;
|
|
1065
|
+
settlement: z.ZodObject<{
|
|
1066
|
+
id: z.ZodString;
|
|
1067
|
+
day: z.ZodString;
|
|
1068
|
+
observation: z.ZodString;
|
|
1069
|
+
qualification: z.ZodString;
|
|
1070
|
+
earned: z.ZodNumber;
|
|
1071
|
+
growth: z.ZodNumber;
|
|
1072
|
+
paid: z.ZodNumber;
|
|
1073
|
+
excluded: z.ZodNumber;
|
|
1074
|
+
entry: z.ZodNullable<z.ZodString>;
|
|
1075
|
+
createdAt: z.ZodNumber;
|
|
1076
|
+
}, z.core.$strict>;
|
|
1077
|
+
}, z.core.$strict>>;
|
|
1078
|
+
next: z.ZodNullable<z.ZodNumber>;
|
|
1079
|
+
}, z.core.$strict>;
|
|
1080
|
+
/** Bundled default or named export of defineEngagementReward. */
|
|
1081
|
+
declare const engagementArtifactSchema: z.ZodObject<{
|
|
1082
|
+
code: z.ZodString;
|
|
1083
|
+
}, z.core.$strict>;
|
|
1084
|
+
declare const engagementDeploymentEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1085
|
+
code: z.ZodString;
|
|
1086
|
+
rule: z.ZodObject<{
|
|
1087
|
+
version: z.ZodString;
|
|
1088
|
+
definition: z.ZodObject<{
|
|
1089
|
+
key: z.ZodString;
|
|
1090
|
+
qualifiedBy: z.ZodString;
|
|
1091
|
+
balance: z.ZodString;
|
|
1092
|
+
metrics: z.ZodArray<z.ZodEnum<{
|
|
1093
|
+
likes: "likes";
|
|
1094
|
+
replies: "replies";
|
|
1095
|
+
reposts: "reposts";
|
|
1096
|
+
quotes: "quotes";
|
|
1097
|
+
views: "views";
|
|
1098
|
+
bookmarks: "bookmarks";
|
|
1099
|
+
}>>;
|
|
1100
|
+
baseline: z.ZodLiteral<"historical">;
|
|
1101
|
+
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
1102
|
+
budget: z.ZodDefault<z.ZodObject<{
|
|
1103
|
+
projectDaily: z.ZodOptional<z.ZodNumber>;
|
|
1104
|
+
memberDaily: z.ZodOptional<z.ZodNumber>;
|
|
1105
|
+
projectLifetime: z.ZodOptional<z.ZodNumber>;
|
|
1106
|
+
}, z.core.$strict>>;
|
|
1107
|
+
}, z.core.$strict>;
|
|
1108
|
+
publishedAt: z.ZodNumber;
|
|
1109
|
+
}, z.core.$strict>;
|
|
1110
|
+
kind: z.ZodLiteral<"create">;
|
|
1111
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1112
|
+
code: z.ZodString;
|
|
1113
|
+
rule: z.ZodObject<{
|
|
1114
|
+
version: z.ZodString;
|
|
1115
|
+
definition: z.ZodObject<{
|
|
1116
|
+
key: z.ZodString;
|
|
1117
|
+
qualifiedBy: z.ZodString;
|
|
1118
|
+
balance: z.ZodString;
|
|
1119
|
+
metrics: z.ZodArray<z.ZodEnum<{
|
|
1120
|
+
likes: "likes";
|
|
1121
|
+
replies: "replies";
|
|
1122
|
+
reposts: "reposts";
|
|
1123
|
+
quotes: "quotes";
|
|
1124
|
+
views: "views";
|
|
1125
|
+
bookmarks: "bookmarks";
|
|
1126
|
+
}>>;
|
|
1127
|
+
baseline: z.ZodLiteral<"historical">;
|
|
1128
|
+
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
1129
|
+
budget: z.ZodDefault<z.ZodObject<{
|
|
1130
|
+
projectDaily: z.ZodOptional<z.ZodNumber>;
|
|
1131
|
+
memberDaily: z.ZodOptional<z.ZodNumber>;
|
|
1132
|
+
projectLifetime: z.ZodOptional<z.ZodNumber>;
|
|
1133
|
+
}, z.core.$strict>>;
|
|
1134
|
+
}, z.core.$strict>;
|
|
1135
|
+
publishedAt: z.ZodNumber;
|
|
1136
|
+
}, z.core.$strict>;
|
|
1137
|
+
kind: z.ZodLiteral<"unchanged">;
|
|
1138
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1139
|
+
code: z.ZodString;
|
|
1140
|
+
rule: z.ZodObject<{
|
|
1141
|
+
version: z.ZodString;
|
|
1142
|
+
definition: z.ZodObject<{
|
|
1143
|
+
key: z.ZodString;
|
|
1144
|
+
qualifiedBy: z.ZodString;
|
|
1145
|
+
balance: z.ZodString;
|
|
1146
|
+
metrics: z.ZodArray<z.ZodEnum<{
|
|
1147
|
+
likes: "likes";
|
|
1148
|
+
replies: "replies";
|
|
1149
|
+
reposts: "reposts";
|
|
1150
|
+
quotes: "quotes";
|
|
1151
|
+
views: "views";
|
|
1152
|
+
bookmarks: "bookmarks";
|
|
1153
|
+
}>>;
|
|
1154
|
+
baseline: z.ZodLiteral<"historical">;
|
|
1155
|
+
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
1156
|
+
budget: z.ZodDefault<z.ZodObject<{
|
|
1157
|
+
projectDaily: z.ZodOptional<z.ZodNumber>;
|
|
1158
|
+
memberDaily: z.ZodOptional<z.ZodNumber>;
|
|
1159
|
+
projectLifetime: z.ZodOptional<z.ZodNumber>;
|
|
1160
|
+
}, z.core.$strict>>;
|
|
1161
|
+
}, z.core.$strict>;
|
|
1162
|
+
publishedAt: z.ZodNumber;
|
|
1163
|
+
}, z.core.$strict>;
|
|
1164
|
+
kind: z.ZodLiteral<"change">;
|
|
1165
|
+
change: z.ZodObject<{
|
|
1166
|
+
rule: z.ZodString;
|
|
1167
|
+
fromVersion: z.ZodString;
|
|
1168
|
+
toVersion: z.ZodString;
|
|
1169
|
+
previewHash: z.ZodString;
|
|
1170
|
+
definition: z.ZodObject<{
|
|
1171
|
+
key: z.ZodString;
|
|
1172
|
+
qualifiedBy: z.ZodString;
|
|
1173
|
+
balance: z.ZodString;
|
|
1174
|
+
metrics: z.ZodArray<z.ZodEnum<{
|
|
1175
|
+
likes: "likes";
|
|
1176
|
+
replies: "replies";
|
|
1177
|
+
reposts: "reposts";
|
|
1178
|
+
quotes: "quotes";
|
|
1179
|
+
views: "views";
|
|
1180
|
+
bookmarks: "bookmarks";
|
|
1181
|
+
}>>;
|
|
1182
|
+
baseline: z.ZodLiteral<"historical">;
|
|
1183
|
+
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
1184
|
+
budget: z.ZodDefault<z.ZodObject<{
|
|
1185
|
+
projectDaily: z.ZodOptional<z.ZodNumber>;
|
|
1186
|
+
memberDaily: z.ZodOptional<z.ZodNumber>;
|
|
1187
|
+
projectLifetime: z.ZodOptional<z.ZodNumber>;
|
|
1188
|
+
}, z.core.$strict>>;
|
|
1189
|
+
}, z.core.$strict>;
|
|
1190
|
+
boundary: z.ZodLiteral<"available-eligible-observation">;
|
|
1191
|
+
settlement: z.ZodLiteral<"deferred">;
|
|
1192
|
+
summary: z.ZodObject<{
|
|
1193
|
+
knownAdmissions: z.ZodNumber;
|
|
1194
|
+
accounts: z.ZodNumber;
|
|
1195
|
+
uninitialized: z.ZodNumber;
|
|
1196
|
+
pendingTransitions: z.ZodNumber;
|
|
1197
|
+
earned: z.ZodString;
|
|
1198
|
+
paid: z.ZodString;
|
|
1199
|
+
excluded: z.ZodString;
|
|
1200
|
+
pending: z.ZodString;
|
|
1201
|
+
}, z.core.$strict>;
|
|
1202
|
+
}, z.core.$strict>;
|
|
1203
|
+
}, z.core.$strict>], "kind">;
|
|
1204
|
+
|
|
384
1205
|
declare const xIdSchema: z.ZodString;
|
|
385
1206
|
declare const xConnectionSchema: z.ZodObject<{
|
|
386
1207
|
userId: z.ZodString;
|
|
@@ -801,7 +1622,6 @@ declare const referralAuthoringSchema: z.ZodPipe<z.ZodObject<{
|
|
|
801
1622
|
tier: z.ZodString;
|
|
802
1623
|
}, z.core.$strict>]>>>;
|
|
803
1624
|
}, z.core.$strict>>;
|
|
804
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
805
1625
|
qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
806
1626
|
kind: z.ZodLiteral<"signup">;
|
|
807
1627
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -810,6 +1630,7 @@ declare const referralAuthoringSchema: z.ZodPipe<z.ZodObject<{
|
|
|
810
1630
|
}, z.core.$strict>, z.ZodObject<{
|
|
811
1631
|
kind: z.ZodLiteral<"external">;
|
|
812
1632
|
}, z.core.$strict>], "kind">;
|
|
1633
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
813
1634
|
inviterGroup: z.ZodOptional<z.ZodString>;
|
|
814
1635
|
milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
815
1636
|
id: z.ZodString;
|
|
@@ -896,7 +1717,6 @@ declare const referralAuthoringSchema: z.ZodPipe<z.ZodObject<{
|
|
|
896
1717
|
amount: number;
|
|
897
1718
|
})[];
|
|
898
1719
|
};
|
|
899
|
-
enabled: boolean;
|
|
900
1720
|
qualification: {
|
|
901
1721
|
kind: "signup";
|
|
902
1722
|
} | {
|
|
@@ -905,6 +1725,7 @@ declare const referralAuthoringSchema: z.ZodPipe<z.ZodObject<{
|
|
|
905
1725
|
} | {
|
|
906
1726
|
kind: "external";
|
|
907
1727
|
};
|
|
1728
|
+
enabled: boolean;
|
|
908
1729
|
milestones: {
|
|
909
1730
|
id: string;
|
|
910
1731
|
count: number;
|
|
@@ -993,7 +1814,6 @@ declare const referralAuthoringSchema: z.ZodPipe<z.ZodObject<{
|
|
|
993
1814
|
amount: number;
|
|
994
1815
|
})[];
|
|
995
1816
|
};
|
|
996
|
-
enabled: boolean;
|
|
997
1817
|
qualification: {
|
|
998
1818
|
kind: "signup";
|
|
999
1819
|
} | {
|
|
@@ -1002,6 +1822,7 @@ declare const referralAuthoringSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1002
1822
|
} | {
|
|
1003
1823
|
kind: "external";
|
|
1004
1824
|
};
|
|
1825
|
+
enabled: boolean;
|
|
1005
1826
|
milestones: {
|
|
1006
1827
|
id: string;
|
|
1007
1828
|
count: number;
|
|
@@ -1090,7 +1911,6 @@ declare function defineReferral(input: Omit<z.input<typeof referralAuthoringSche
|
|
|
1090
1911
|
amount: number;
|
|
1091
1912
|
})[];
|
|
1092
1913
|
};
|
|
1093
|
-
enabled: boolean;
|
|
1094
1914
|
qualification: {
|
|
1095
1915
|
kind: "signup";
|
|
1096
1916
|
} | {
|
|
@@ -1099,6 +1919,7 @@ declare function defineReferral(input: Omit<z.input<typeof referralAuthoringSche
|
|
|
1099
1919
|
} | {
|
|
1100
1920
|
kind: "external";
|
|
1101
1921
|
};
|
|
1922
|
+
enabled: boolean;
|
|
1102
1923
|
inviterGroup?: string | undefined;
|
|
1103
1924
|
milestones: {
|
|
1104
1925
|
id: string;
|
|
@@ -1185,7 +2006,6 @@ declare const referralArtifactSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject
|
|
|
1185
2006
|
tier: z.ZodString;
|
|
1186
2007
|
}, z.core.$strict>]>>>;
|
|
1187
2008
|
}, z.core.$strict>>;
|
|
1188
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1189
2009
|
qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1190
2010
|
kind: z.ZodLiteral<"signup">;
|
|
1191
2011
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1194,6 +2014,7 @@ declare const referralArtifactSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject
|
|
|
1194
2014
|
}, z.core.$strict>, z.ZodObject<{
|
|
1195
2015
|
kind: z.ZodLiteral<"external">;
|
|
1196
2016
|
}, z.core.$strict>], "kind">;
|
|
2017
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1197
2018
|
inviterGroup: z.ZodOptional<z.ZodString>;
|
|
1198
2019
|
milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1199
2020
|
id: z.ZodString;
|
|
@@ -1280,7 +2101,6 @@ declare const referralArtifactSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject
|
|
|
1280
2101
|
amount: number;
|
|
1281
2102
|
})[];
|
|
1282
2103
|
};
|
|
1283
|
-
enabled: boolean;
|
|
1284
2104
|
qualification: {
|
|
1285
2105
|
kind: "signup";
|
|
1286
2106
|
} | {
|
|
@@ -1289,6 +2109,7 @@ declare const referralArtifactSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject
|
|
|
1289
2109
|
} | {
|
|
1290
2110
|
kind: "external";
|
|
1291
2111
|
};
|
|
2112
|
+
enabled: boolean;
|
|
1292
2113
|
milestones: {
|
|
1293
2114
|
id: string;
|
|
1294
2115
|
count: number;
|
|
@@ -1377,7 +2198,6 @@ declare const referralArtifactSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject
|
|
|
1377
2198
|
amount: number;
|
|
1378
2199
|
})[];
|
|
1379
2200
|
};
|
|
1380
|
-
enabled: boolean;
|
|
1381
2201
|
qualification: {
|
|
1382
2202
|
kind: "signup";
|
|
1383
2203
|
} | {
|
|
@@ -1386,6 +2206,7 @@ declare const referralArtifactSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject
|
|
|
1386
2206
|
} | {
|
|
1387
2207
|
kind: "external";
|
|
1388
2208
|
};
|
|
2209
|
+
enabled: boolean;
|
|
1389
2210
|
milestones: {
|
|
1390
2211
|
id: string;
|
|
1391
2212
|
count: number;
|
|
@@ -2874,4 +3695,4 @@ declare function validateSubmissionValue(input: ValueEvidence, contract: {
|
|
|
2874
3695
|
/** Extract an ID only. The URL and its author name are untrusted claims. */
|
|
2875
3696
|
declare function xPostId(value: string): string | null;
|
|
2876
3697
|
|
|
2877
|
-
export {
|
|
3698
|
+
export { type SettingField as $, type AdmittedContent as A, type Budget as B, type ContentMetric as C, type DiscordMember as D, contentEnrollmentInputSchema as E, contentReleaseInputSchema as F, type AccountConnection as G, referralSummarySchema as H, type IntegrationProvider as I, type LeaderboardPage as J, type ContentPerformancePolicy as K, type LeaderboardQuery as L, type ContentPolicy as M, type EngagementDefinition as N, type Observation as O, type LeaderboardDefinition as P, type ProjectIntegration as Q, type QuizContent as R, type SolanaBalance as S, type TrackerReader as T, type UrlEvidence as U, type ValueEvidence as V, type WalletConnection as W, type XReader as X, type ReferralDefinition as Y, type ResourceOption as Z, type ResourceSource as _, type DiscordMessage as a, leaderboardRowSchema as a$, type SettingsValues as a0, type StreakProgress as a1, type TrackerContent as a2, type TrackerContentQuery as a3, type TrackerDefinition as a4, type TrackerPreview as a5, type TrackerPreviewInput as a6, type TrackerQuery as a7, type TrackerRecord as a8, type TrackerStatus as a9, discordReactionSchema as aA, discordServerSchema as aB, engagementArtifactSchema as aC, engagementBoundaryPageSchema as aD, engagementChangePreviewInputSchema as aE, engagementChangePreviewSchema as aF, engagementChangeSchema as aG, engagementDefinitionSchema as aH, engagementDeploymentEntrySchema as aI, engagementPageSchema as aJ, engagementPublishSchema as aK, engagementRuleSchema as aL, engagementScoreInputSchema as aM, engagementScoreSchema as aN, engagementSettlementSchema as aO, engagementVersionPageSchema as aP, engagementVersionQuerySchema as aQ, integrationProviderSchema as aR, isContentParticipantRoute as aS, leaderboardArtifactSchema as aT, leaderboardAuthoringSchema as aU, leaderboardDefinitionSchema as aV, leaderboardExclusionSchema as aW, leaderboardGroupSchema as aX, leaderboardPageSchema as aY, leaderboardPreviewSchema as aZ, leaderboardQuerySchema as a_, type XConnection as aa, type XPost as ab, type XProfile as ac, type XTweet as ad, accountConnectionSchema as ae, admittedContentSchema as af, authProviderSchema as ag, budgetSchema as ah, communityTimeZoneSchema as ai, compatibleSettingKinds as aj, completionKeySchema as ak, completionPolicySchema as al, contentAdmissionPageSchema as am, contentAdmissionSchema as an, contentEnrollmentSchema as ao, contentMetricSchema as ap, contentMetricsSchema as aq, contentPerformancePolicySchema as ar, contentPolicySchema as as, contentQualificationDecisionSchema as at, contentQualificationPageSchema as au, contentQualificationSchema as av, discordMemberInputSchema as aw, discordMemberSchema as ax, discordMessageInputSchema as ay, discordMessageSchema as az, type AuthoringIdentity as b, xContentBodySchema as b$, leaderboardWindowSchema as b0, missingResourceSettings as b1, observationInputSchema as b2, observationReceiptSchema as b3, observationSchema as b4, parseSettings as b5, pointsAccountSchema as b6, pointsEntrySchema as b7, pointsMutationSchema as b8, pointsResultSchema as b9, textEvidenceSchema as bA, textOptionsSchema as bB, trackerArtifactSchema as bC, trackerContentQuerySchema as bD, trackerContentReadSchema as bE, trackerContentSchema as bF, trackerControlSchema as bG, trackerDefinitionSchema as bH, trackerIngestResultSchema as bI, trackerIngestSchema as bJ, trackerPageSchema as bK, trackerPreviewInputSchema as bL, trackerPreviewLimits as bM, trackerPreviewSchema as bN, trackerQuerySchema as bO, trackerRecordInputSchema as bP, trackerRecordSchema as bQ, trackerSourceSchema as bR, trackerStatusSchema as bS, trackerSummarySchema as bT, urlEvidenceSchema as bU, urlOptionsSchema as bV, validateSubmissionValue as bW, valueEvidenceSchema as bX, walletChallengeSchema as bY, walletConnectionSchema as bZ, xConnectionSchema as b_, projectIntegrationSchema as ba, publishedLeaderboardSchema as bb, publishedReferralSchema as bc, publishedTrackerSchema as bd, quizChoiceSchema as be, quizContentSchema as bf, quizQuestionSchema as bg, quizQuestionsSchema as bh, referralAccountSchema as bi, referralArtifactSchema as bj, referralAuthoringSchema as bk, referralControlSchema as bl, referralDefinitionSchema as bm, referralHistorySchema as bn, referralManagementSchema as bo, referralRelationshipSchema as bp, resourceOptionsSchema as bq, resourceRequestSchema as br, resourceSourceSchema as bs, settingFieldSchema as bt, settingsFieldsSchema as bu, settingsValuesSchema as bv, solanaAddressSchema as bw, solanaBalanceSchema as bx, streakPolicySchema as by, streakProgressSchema as bz, type StreakPolicy as c, xIdSchema as c0, xPostId as c1, xPostSchema as c2, xProfileSchema as c3, xRequestSchema as c4, xTweetSchema as c5, type TextEvidence as d, type TextOptions as e, type UrlOptions as f, content as g, customSource as h, defineEngagementReward as i, defineLeaderboard as j, defineReferral as k, defineTracker as l, discord as m, pointLedgers as n, observationTriggerSchema as o, perContent as p, streak as q, referralAcceptSchema as r, settings as s, walletProofSchema as t, type AuthProvider as u, engagementPageQuerySchema as v, walletChallengeInputSchema as w, x, contentQualificationQuerySchema as y, contentAdmissionQuerySchema as z };
|