@domino-sdk/relay 0.7.0 → 0.9.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 +13 -9
- package/dist/authoring.js +19 -9
- package/dist/browser.d.ts +38 -9
- package/dist/browser.js +4 -4
- package/dist/{chunk-36LZ3IOO.js → chunk-MVDE7WKB.js} +1 -1
- package/dist/chunk-Q5VDZVVO.js +388 -0
- package/dist/{chunk-6QUCADMF.js → chunk-XTFCKK2Y.js} +37 -5
- package/dist/{chunk-LXLNC4CN.js → chunk-Y6H4HDQT.js} +42 -28
- package/dist/index.d.ts +854 -114
- package/dist/index.js +28 -6
- package/dist/portal-proxy.js +2 -2
- package/dist/schema.d.ts +45 -19
- package/dist/schema.js +7 -1
- package/dist/{settings-CU_oBcx0.d.ts → settings-BA8XjT4m.d.ts} +766 -23
- package/package.json +1 -1
- package/dist/chunk-TYVT5BPZ.js +0 -337
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
+
/** Legacy `id` names an authoring key, never a server resource ID. */
|
|
4
|
+
type AuthoringIdentity = {
|
|
5
|
+
key: string;
|
|
6
|
+
id?: string;
|
|
7
|
+
} | {
|
|
8
|
+
key?: never; /** @deprecated Use key. */
|
|
9
|
+
id: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
3
12
|
declare const observationInputSchema: z.ZodObject<{
|
|
4
13
|
id: z.ZodString;
|
|
5
14
|
source: z.ZodString;
|
|
@@ -154,6 +163,7 @@ type DiscordMember = z.infer<typeof discordMemberSchema>;
|
|
|
154
163
|
|
|
155
164
|
declare const referralDefinitionSchema: z.ZodObject<{
|
|
156
165
|
id: z.ZodString;
|
|
166
|
+
key: z.ZodOptional<z.ZodString>;
|
|
157
167
|
title: z.ZodString;
|
|
158
168
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
159
169
|
qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -248,9 +258,149 @@ declare const referralDefinitionSchema: z.ZodObject<{
|
|
|
248
258
|
}, z.core.$strict>>>;
|
|
249
259
|
}, z.core.$strict>;
|
|
250
260
|
type ReferralDefinition = z.infer<typeof referralDefinitionSchema>;
|
|
251
|
-
declare
|
|
252
|
-
|
|
261
|
+
declare const referralAuthoringSchema: z.ZodPipe<z.ZodObject<{
|
|
262
|
+
title: z.ZodString;
|
|
263
|
+
rewards: z.ZodDefault<z.ZodObject<{
|
|
264
|
+
inviter: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
265
|
+
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
266
|
+
balance: z.ZodString;
|
|
267
|
+
amount: z.ZodNumber;
|
|
268
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
269
|
+
kind: z.ZodLiteral<"tier">;
|
|
270
|
+
reward: z.ZodObject<{
|
|
271
|
+
id: z.ZodString;
|
|
272
|
+
title: z.ZodString;
|
|
273
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
274
|
+
id: z.ZodString;
|
|
275
|
+
title: z.ZodString;
|
|
276
|
+
}, z.core.$strict>>;
|
|
277
|
+
inventory: z.ZodObject<{
|
|
278
|
+
kind: z.ZodLiteral<"untracked">;
|
|
279
|
+
}, z.core.$strict>;
|
|
280
|
+
fulfillment: z.ZodObject<{
|
|
281
|
+
kind: z.ZodLiteral<"staff-handover">;
|
|
282
|
+
}, z.core.$strict>;
|
|
283
|
+
}, z.core.$strict>;
|
|
284
|
+
tier: z.ZodString;
|
|
285
|
+
}, z.core.$strict>]>>>;
|
|
286
|
+
invitee: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
287
|
+
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
288
|
+
balance: z.ZodString;
|
|
289
|
+
amount: z.ZodNumber;
|
|
290
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
291
|
+
kind: z.ZodLiteral<"tier">;
|
|
292
|
+
reward: z.ZodObject<{
|
|
293
|
+
id: z.ZodString;
|
|
294
|
+
title: z.ZodString;
|
|
295
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
296
|
+
id: z.ZodString;
|
|
297
|
+
title: z.ZodString;
|
|
298
|
+
}, z.core.$strict>>;
|
|
299
|
+
inventory: z.ZodObject<{
|
|
300
|
+
kind: z.ZodLiteral<"untracked">;
|
|
301
|
+
}, z.core.$strict>;
|
|
302
|
+
fulfillment: z.ZodObject<{
|
|
303
|
+
kind: z.ZodLiteral<"staff-handover">;
|
|
304
|
+
}, z.core.$strict>;
|
|
305
|
+
}, z.core.$strict>;
|
|
306
|
+
tier: z.ZodString;
|
|
307
|
+
}, z.core.$strict>]>>>;
|
|
308
|
+
}, z.core.$strict>>;
|
|
309
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
310
|
+
qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
311
|
+
kind: z.ZodLiteral<"signup">;
|
|
312
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
313
|
+
kind: z.ZodLiteral<"quest">;
|
|
314
|
+
quest: z.ZodString;
|
|
315
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
316
|
+
kind: z.ZodLiteral<"external">;
|
|
317
|
+
}, z.core.$strict>], "kind">;
|
|
318
|
+
inviterGroup: z.ZodOptional<z.ZodString>;
|
|
319
|
+
milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
320
|
+
id: z.ZodString;
|
|
321
|
+
count: z.ZodNumber;
|
|
322
|
+
rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
323
|
+
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
324
|
+
balance: z.ZodString;
|
|
325
|
+
amount: z.ZodNumber;
|
|
326
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
327
|
+
kind: z.ZodLiteral<"tier">;
|
|
328
|
+
reward: z.ZodObject<{
|
|
329
|
+
id: z.ZodString;
|
|
330
|
+
title: z.ZodString;
|
|
331
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
332
|
+
id: z.ZodString;
|
|
333
|
+
title: z.ZodString;
|
|
334
|
+
}, z.core.$strict>>;
|
|
335
|
+
inventory: z.ZodObject<{
|
|
336
|
+
kind: z.ZodLiteral<"untracked">;
|
|
337
|
+
}, z.core.$strict>;
|
|
338
|
+
fulfillment: z.ZodObject<{
|
|
339
|
+
kind: z.ZodLiteral<"staff-handover">;
|
|
340
|
+
}, z.core.$strict>;
|
|
341
|
+
}, z.core.$strict>;
|
|
342
|
+
tier: z.ZodString;
|
|
343
|
+
}, z.core.$strict>]>>;
|
|
344
|
+
}, z.core.$strict>>>;
|
|
345
|
+
bonuses: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
346
|
+
id: z.ZodString;
|
|
347
|
+
balance: z.ZodString;
|
|
348
|
+
basisPoints: z.ZodNumber;
|
|
349
|
+
quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
350
|
+
external: z.ZodDefault<z.ZodBoolean>;
|
|
351
|
+
durationDays: z.ZodOptional<z.ZodNumber>;
|
|
352
|
+
maxPoints: z.ZodOptional<z.ZodNumber>;
|
|
353
|
+
}, z.core.$strict>>>;
|
|
354
|
+
key: z.ZodOptional<z.ZodString>;
|
|
355
|
+
id: z.ZodOptional<z.ZodString>;
|
|
356
|
+
}, z.core.$strict>, z.ZodTransform<Omit<{
|
|
253
357
|
title: string;
|
|
358
|
+
rewards: {
|
|
359
|
+
inviter: ({
|
|
360
|
+
kind: "tier";
|
|
361
|
+
reward: {
|
|
362
|
+
id: string;
|
|
363
|
+
title: string;
|
|
364
|
+
tiers: {
|
|
365
|
+
id: string;
|
|
366
|
+
title: string;
|
|
367
|
+
}[];
|
|
368
|
+
inventory: {
|
|
369
|
+
kind: "untracked";
|
|
370
|
+
};
|
|
371
|
+
fulfillment: {
|
|
372
|
+
kind: "staff-handover";
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
tier: string;
|
|
376
|
+
} | {
|
|
377
|
+
kind: "points";
|
|
378
|
+
balance: string;
|
|
379
|
+
amount: number;
|
|
380
|
+
})[];
|
|
381
|
+
invitee: ({
|
|
382
|
+
kind: "tier";
|
|
383
|
+
reward: {
|
|
384
|
+
id: string;
|
|
385
|
+
title: string;
|
|
386
|
+
tiers: {
|
|
387
|
+
id: string;
|
|
388
|
+
title: string;
|
|
389
|
+
}[];
|
|
390
|
+
inventory: {
|
|
391
|
+
kind: "untracked";
|
|
392
|
+
};
|
|
393
|
+
fulfillment: {
|
|
394
|
+
kind: "staff-handover";
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
tier: string;
|
|
398
|
+
} | {
|
|
399
|
+
kind: "points";
|
|
400
|
+
balance: string;
|
|
401
|
+
amount: number;
|
|
402
|
+
})[];
|
|
403
|
+
};
|
|
254
404
|
enabled: boolean;
|
|
255
405
|
qualification: {
|
|
256
406
|
kind: "signup";
|
|
@@ -260,6 +410,48 @@ declare function defineReferral(input: z.input<typeof referralDefinitionSchema>)
|
|
|
260
410
|
} | {
|
|
261
411
|
kind: "external";
|
|
262
412
|
};
|
|
413
|
+
milestones: {
|
|
414
|
+
id: string;
|
|
415
|
+
count: number;
|
|
416
|
+
rewards: ({
|
|
417
|
+
kind: "tier";
|
|
418
|
+
reward: {
|
|
419
|
+
id: string;
|
|
420
|
+
title: string;
|
|
421
|
+
tiers: {
|
|
422
|
+
id: string;
|
|
423
|
+
title: string;
|
|
424
|
+
}[];
|
|
425
|
+
inventory: {
|
|
426
|
+
kind: "untracked";
|
|
427
|
+
};
|
|
428
|
+
fulfillment: {
|
|
429
|
+
kind: "staff-handover";
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
tier: string;
|
|
433
|
+
} | {
|
|
434
|
+
kind: "points";
|
|
435
|
+
balance: string;
|
|
436
|
+
amount: number;
|
|
437
|
+
})[];
|
|
438
|
+
}[];
|
|
439
|
+
bonuses: {
|
|
440
|
+
id: string;
|
|
441
|
+
balance: string;
|
|
442
|
+
basisPoints: number;
|
|
443
|
+
external: boolean;
|
|
444
|
+
quests?: string[] | undefined;
|
|
445
|
+
durationDays?: number | undefined;
|
|
446
|
+
maxPoints?: number | undefined;
|
|
447
|
+
}[];
|
|
448
|
+
inviterGroup?: string | undefined;
|
|
449
|
+
key?: string | undefined;
|
|
450
|
+
id?: string | undefined;
|
|
451
|
+
}, "id" | "key"> & {
|
|
452
|
+
key: string;
|
|
453
|
+
}, {
|
|
454
|
+
title: string;
|
|
263
455
|
rewards: {
|
|
264
456
|
inviter: ({
|
|
265
457
|
kind: "tier";
|
|
@@ -306,6 +498,15 @@ declare function defineReferral(input: z.input<typeof referralDefinitionSchema>)
|
|
|
306
498
|
amount: number;
|
|
307
499
|
})[];
|
|
308
500
|
};
|
|
501
|
+
enabled: boolean;
|
|
502
|
+
qualification: {
|
|
503
|
+
kind: "signup";
|
|
504
|
+
} | {
|
|
505
|
+
kind: "quest";
|
|
506
|
+
quest: string;
|
|
507
|
+
} | {
|
|
508
|
+
kind: "external";
|
|
509
|
+
};
|
|
309
510
|
milestones: {
|
|
310
511
|
id: string;
|
|
311
512
|
count: number;
|
|
@@ -342,20 +543,107 @@ declare function defineReferral(input: z.input<typeof referralDefinitionSchema>)
|
|
|
342
543
|
maxPoints?: number | undefined;
|
|
343
544
|
}[];
|
|
344
545
|
inviterGroup?: string | undefined;
|
|
546
|
+
key?: string | undefined;
|
|
547
|
+
id?: string | undefined;
|
|
548
|
+
}>>;
|
|
549
|
+
declare function defineReferral(input: Omit<z.input<typeof referralAuthoringSchema>, "key" | "id"> & AuthoringIdentity): {
|
|
550
|
+
id: string;
|
|
551
|
+
title: string;
|
|
552
|
+
rewards: {
|
|
553
|
+
inviter: ({
|
|
554
|
+
kind: "tier";
|
|
555
|
+
reward: {
|
|
556
|
+
id: string;
|
|
557
|
+
title: string;
|
|
558
|
+
tiers: {
|
|
559
|
+
id: string;
|
|
560
|
+
title: string;
|
|
561
|
+
}[];
|
|
562
|
+
inventory: {
|
|
563
|
+
kind: "untracked";
|
|
564
|
+
};
|
|
565
|
+
fulfillment: {
|
|
566
|
+
kind: "staff-handover";
|
|
567
|
+
};
|
|
568
|
+
};
|
|
569
|
+
tier: string;
|
|
570
|
+
} | {
|
|
571
|
+
kind: "points";
|
|
572
|
+
balance: string;
|
|
573
|
+
amount: number;
|
|
574
|
+
})[];
|
|
575
|
+
invitee: ({
|
|
576
|
+
kind: "tier";
|
|
577
|
+
reward: {
|
|
578
|
+
id: string;
|
|
579
|
+
title: string;
|
|
580
|
+
tiers: {
|
|
581
|
+
id: string;
|
|
582
|
+
title: string;
|
|
583
|
+
}[];
|
|
584
|
+
inventory: {
|
|
585
|
+
kind: "untracked";
|
|
586
|
+
};
|
|
587
|
+
fulfillment: {
|
|
588
|
+
kind: "staff-handover";
|
|
589
|
+
};
|
|
590
|
+
};
|
|
591
|
+
tier: string;
|
|
592
|
+
} | {
|
|
593
|
+
kind: "points";
|
|
594
|
+
balance: string;
|
|
595
|
+
amount: number;
|
|
596
|
+
})[];
|
|
597
|
+
};
|
|
598
|
+
enabled: boolean;
|
|
599
|
+
qualification: {
|
|
600
|
+
kind: "signup";
|
|
601
|
+
} | {
|
|
602
|
+
kind: "quest";
|
|
603
|
+
quest: string;
|
|
604
|
+
} | {
|
|
605
|
+
kind: "external";
|
|
606
|
+
};
|
|
607
|
+
inviterGroup?: string | undefined;
|
|
608
|
+
milestones: {
|
|
609
|
+
id: string;
|
|
610
|
+
count: number;
|
|
611
|
+
rewards: ({
|
|
612
|
+
kind: "tier";
|
|
613
|
+
reward: {
|
|
614
|
+
id: string;
|
|
615
|
+
title: string;
|
|
616
|
+
tiers: {
|
|
617
|
+
id: string;
|
|
618
|
+
title: string;
|
|
619
|
+
}[];
|
|
620
|
+
inventory: {
|
|
621
|
+
kind: "untracked";
|
|
622
|
+
};
|
|
623
|
+
fulfillment: {
|
|
624
|
+
kind: "staff-handover";
|
|
625
|
+
};
|
|
626
|
+
};
|
|
627
|
+
tier: string;
|
|
628
|
+
} | {
|
|
629
|
+
kind: "points";
|
|
630
|
+
balance: string;
|
|
631
|
+
amount: number;
|
|
632
|
+
})[];
|
|
633
|
+
}[];
|
|
634
|
+
bonuses: {
|
|
635
|
+
id: string;
|
|
636
|
+
balance: string;
|
|
637
|
+
basisPoints: number;
|
|
638
|
+
external: boolean;
|
|
639
|
+
quests?: string[] | undefined;
|
|
640
|
+
durationDays?: number | undefined;
|
|
641
|
+
maxPoints?: number | undefined;
|
|
642
|
+
}[];
|
|
643
|
+
key: string;
|
|
345
644
|
};
|
|
346
|
-
declare const referralArtifactSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
347
|
-
id: z.ZodString;
|
|
645
|
+
declare const referralArtifactSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
348
646
|
title: z.ZodString;
|
|
349
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
350
|
-
qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
351
|
-
kind: z.ZodLiteral<"signup">;
|
|
352
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
353
|
-
kind: z.ZodLiteral<"quest">;
|
|
354
|
-
quest: z.ZodString;
|
|
355
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
356
|
-
kind: z.ZodLiteral<"external">;
|
|
357
|
-
}, z.core.$strict>], "kind">;
|
|
358
|
-
inviterGroup: z.ZodOptional<z.ZodString>;
|
|
359
647
|
rewards: z.ZodDefault<z.ZodObject<{
|
|
360
648
|
inviter: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
361
649
|
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
@@ -402,6 +690,16 @@ declare const referralArtifactSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
402
690
|
tier: z.ZodString;
|
|
403
691
|
}, z.core.$strict>]>>>;
|
|
404
692
|
}, z.core.$strict>>;
|
|
693
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
694
|
+
qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
695
|
+
kind: z.ZodLiteral<"signup">;
|
|
696
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
697
|
+
kind: z.ZodLiteral<"quest">;
|
|
698
|
+
quest: z.ZodString;
|
|
699
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
700
|
+
kind: z.ZodLiteral<"external">;
|
|
701
|
+
}, z.core.$strict>], "kind">;
|
|
702
|
+
inviterGroup: z.ZodOptional<z.ZodString>;
|
|
405
703
|
milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
406
704
|
id: z.ZodString;
|
|
407
705
|
count: z.ZodNumber;
|
|
@@ -437,13 +735,208 @@ declare const referralArtifactSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
437
735
|
durationDays: z.ZodOptional<z.ZodNumber>;
|
|
438
736
|
maxPoints: z.ZodOptional<z.ZodNumber>;
|
|
439
737
|
}, z.core.$strict>>>;
|
|
440
|
-
|
|
738
|
+
key: z.ZodOptional<z.ZodString>;
|
|
739
|
+
id: z.ZodOptional<z.ZodString>;
|
|
740
|
+
}, z.core.$strict>, z.ZodTransform<Omit<{
|
|
741
|
+
title: string;
|
|
742
|
+
rewards: {
|
|
743
|
+
inviter: ({
|
|
744
|
+
kind: "tier";
|
|
745
|
+
reward: {
|
|
746
|
+
id: string;
|
|
747
|
+
title: string;
|
|
748
|
+
tiers: {
|
|
749
|
+
id: string;
|
|
750
|
+
title: string;
|
|
751
|
+
}[];
|
|
752
|
+
inventory: {
|
|
753
|
+
kind: "untracked";
|
|
754
|
+
};
|
|
755
|
+
fulfillment: {
|
|
756
|
+
kind: "staff-handover";
|
|
757
|
+
};
|
|
758
|
+
};
|
|
759
|
+
tier: string;
|
|
760
|
+
} | {
|
|
761
|
+
kind: "points";
|
|
762
|
+
balance: string;
|
|
763
|
+
amount: number;
|
|
764
|
+
})[];
|
|
765
|
+
invitee: ({
|
|
766
|
+
kind: "tier";
|
|
767
|
+
reward: {
|
|
768
|
+
id: string;
|
|
769
|
+
title: string;
|
|
770
|
+
tiers: {
|
|
771
|
+
id: string;
|
|
772
|
+
title: string;
|
|
773
|
+
}[];
|
|
774
|
+
inventory: {
|
|
775
|
+
kind: "untracked";
|
|
776
|
+
};
|
|
777
|
+
fulfillment: {
|
|
778
|
+
kind: "staff-handover";
|
|
779
|
+
};
|
|
780
|
+
};
|
|
781
|
+
tier: string;
|
|
782
|
+
} | {
|
|
783
|
+
kind: "points";
|
|
784
|
+
balance: string;
|
|
785
|
+
amount: number;
|
|
786
|
+
})[];
|
|
787
|
+
};
|
|
788
|
+
enabled: boolean;
|
|
789
|
+
qualification: {
|
|
790
|
+
kind: "signup";
|
|
791
|
+
} | {
|
|
792
|
+
kind: "quest";
|
|
793
|
+
quest: string;
|
|
794
|
+
} | {
|
|
795
|
+
kind: "external";
|
|
796
|
+
};
|
|
797
|
+
milestones: {
|
|
798
|
+
id: string;
|
|
799
|
+
count: number;
|
|
800
|
+
rewards: ({
|
|
801
|
+
kind: "tier";
|
|
802
|
+
reward: {
|
|
803
|
+
id: string;
|
|
804
|
+
title: string;
|
|
805
|
+
tiers: {
|
|
806
|
+
id: string;
|
|
807
|
+
title: string;
|
|
808
|
+
}[];
|
|
809
|
+
inventory: {
|
|
810
|
+
kind: "untracked";
|
|
811
|
+
};
|
|
812
|
+
fulfillment: {
|
|
813
|
+
kind: "staff-handover";
|
|
814
|
+
};
|
|
815
|
+
};
|
|
816
|
+
tier: string;
|
|
817
|
+
} | {
|
|
818
|
+
kind: "points";
|
|
819
|
+
balance: string;
|
|
820
|
+
amount: number;
|
|
821
|
+
})[];
|
|
822
|
+
}[];
|
|
823
|
+
bonuses: {
|
|
824
|
+
id: string;
|
|
825
|
+
balance: string;
|
|
826
|
+
basisPoints: number;
|
|
827
|
+
external: boolean;
|
|
828
|
+
quests?: string[] | undefined;
|
|
829
|
+
durationDays?: number | undefined;
|
|
830
|
+
maxPoints?: number | undefined;
|
|
831
|
+
}[];
|
|
832
|
+
inviterGroup?: string | undefined;
|
|
833
|
+
key?: string | undefined;
|
|
834
|
+
id?: string | undefined;
|
|
835
|
+
}, "id" | "key"> & {
|
|
836
|
+
key: string;
|
|
837
|
+
}, {
|
|
838
|
+
title: string;
|
|
839
|
+
rewards: {
|
|
840
|
+
inviter: ({
|
|
841
|
+
kind: "tier";
|
|
842
|
+
reward: {
|
|
843
|
+
id: string;
|
|
844
|
+
title: string;
|
|
845
|
+
tiers: {
|
|
846
|
+
id: string;
|
|
847
|
+
title: string;
|
|
848
|
+
}[];
|
|
849
|
+
inventory: {
|
|
850
|
+
kind: "untracked";
|
|
851
|
+
};
|
|
852
|
+
fulfillment: {
|
|
853
|
+
kind: "staff-handover";
|
|
854
|
+
};
|
|
855
|
+
};
|
|
856
|
+
tier: string;
|
|
857
|
+
} | {
|
|
858
|
+
kind: "points";
|
|
859
|
+
balance: string;
|
|
860
|
+
amount: number;
|
|
861
|
+
})[];
|
|
862
|
+
invitee: ({
|
|
863
|
+
kind: "tier";
|
|
864
|
+
reward: {
|
|
865
|
+
id: string;
|
|
866
|
+
title: string;
|
|
867
|
+
tiers: {
|
|
868
|
+
id: string;
|
|
869
|
+
title: string;
|
|
870
|
+
}[];
|
|
871
|
+
inventory: {
|
|
872
|
+
kind: "untracked";
|
|
873
|
+
};
|
|
874
|
+
fulfillment: {
|
|
875
|
+
kind: "staff-handover";
|
|
876
|
+
};
|
|
877
|
+
};
|
|
878
|
+
tier: string;
|
|
879
|
+
} | {
|
|
880
|
+
kind: "points";
|
|
881
|
+
balance: string;
|
|
882
|
+
amount: number;
|
|
883
|
+
})[];
|
|
884
|
+
};
|
|
885
|
+
enabled: boolean;
|
|
886
|
+
qualification: {
|
|
887
|
+
kind: "signup";
|
|
888
|
+
} | {
|
|
889
|
+
kind: "quest";
|
|
890
|
+
quest: string;
|
|
891
|
+
} | {
|
|
892
|
+
kind: "external";
|
|
893
|
+
};
|
|
894
|
+
milestones: {
|
|
895
|
+
id: string;
|
|
896
|
+
count: number;
|
|
897
|
+
rewards: ({
|
|
898
|
+
kind: "tier";
|
|
899
|
+
reward: {
|
|
900
|
+
id: string;
|
|
901
|
+
title: string;
|
|
902
|
+
tiers: {
|
|
903
|
+
id: string;
|
|
904
|
+
title: string;
|
|
905
|
+
}[];
|
|
906
|
+
inventory: {
|
|
907
|
+
kind: "untracked";
|
|
908
|
+
};
|
|
909
|
+
fulfillment: {
|
|
910
|
+
kind: "staff-handover";
|
|
911
|
+
};
|
|
912
|
+
};
|
|
913
|
+
tier: string;
|
|
914
|
+
} | {
|
|
915
|
+
kind: "points";
|
|
916
|
+
balance: string;
|
|
917
|
+
amount: number;
|
|
918
|
+
})[];
|
|
919
|
+
}[];
|
|
920
|
+
bonuses: {
|
|
921
|
+
id: string;
|
|
922
|
+
balance: string;
|
|
923
|
+
basisPoints: number;
|
|
924
|
+
external: boolean;
|
|
925
|
+
quests?: string[] | undefined;
|
|
926
|
+
durationDays?: number | undefined;
|
|
927
|
+
maxPoints?: number | undefined;
|
|
928
|
+
}[];
|
|
929
|
+
inviterGroup?: string | undefined;
|
|
930
|
+
key?: string | undefined;
|
|
931
|
+
id?: string | undefined;
|
|
932
|
+
}>>, z.ZodObject<{
|
|
441
933
|
code: z.ZodString;
|
|
442
934
|
}, z.core.$strict>]>;
|
|
443
935
|
declare const publishedReferralSchema: z.ZodObject<{
|
|
444
936
|
version: z.ZodString;
|
|
445
937
|
definition: z.ZodObject<{
|
|
446
938
|
id: z.ZodString;
|
|
939
|
+
key: z.ZodOptional<z.ZodString>;
|
|
447
940
|
title: z.ZodString;
|
|
448
941
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
449
942
|
qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -588,6 +1081,7 @@ declare const referralSummarySchema: z.ZodObject<{
|
|
|
588
1081
|
programs: z.ZodArray<z.ZodObject<{
|
|
589
1082
|
definition: z.ZodObject<{
|
|
590
1083
|
id: z.ZodString;
|
|
1084
|
+
key: z.ZodOptional<z.ZodString>;
|
|
591
1085
|
title: z.ZodString;
|
|
592
1086
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
593
1087
|
qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -770,6 +1264,7 @@ declare const leaderboardWindowSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
770
1264
|
}, z.core.$strict>], "kind">;
|
|
771
1265
|
declare const leaderboardDefinitionSchema: z.ZodObject<{
|
|
772
1266
|
id: z.ZodString;
|
|
1267
|
+
key: z.ZodOptional<z.ZodString>;
|
|
773
1268
|
title: z.ZodString;
|
|
774
1269
|
balance: z.ZodString;
|
|
775
1270
|
score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -823,10 +1318,108 @@ declare const leaderboardDefinitionSchema: z.ZodObject<{
|
|
|
823
1318
|
group: z.ZodOptional<z.ZodString>;
|
|
824
1319
|
}, z.core.$strict>;
|
|
825
1320
|
type LeaderboardDefinition = z.infer<typeof leaderboardDefinitionSchema>;
|
|
826
|
-
declare
|
|
827
|
-
|
|
1321
|
+
declare const leaderboardAuthoringSchema: z.ZodPipe<z.ZodObject<{
|
|
1322
|
+
balance: z.ZodString;
|
|
1323
|
+
title: z.ZodString;
|
|
1324
|
+
group: z.ZodOptional<z.ZodString>;
|
|
1325
|
+
score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1326
|
+
kind: z.ZodLiteral<"balance">;
|
|
1327
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1328
|
+
window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1329
|
+
kind: z.ZodLiteral<"all-time">;
|
|
1330
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1331
|
+
kind: z.ZodLiteral<"fixed">;
|
|
1332
|
+
start: z.ZodNumber;
|
|
1333
|
+
end: z.ZodNumber;
|
|
1334
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1335
|
+
kind: z.ZodLiteral<"rolling">;
|
|
1336
|
+
days: z.ZodNumber;
|
|
1337
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1338
|
+
kind: z.ZodLiteral<"calendar">;
|
|
1339
|
+
period: z.ZodEnum<{
|
|
1340
|
+
day: "day";
|
|
1341
|
+
week: "week";
|
|
1342
|
+
month: "month";
|
|
1343
|
+
}>;
|
|
1344
|
+
timeZone: z.ZodString;
|
|
1345
|
+
}, z.core.$strict>], "kind">>;
|
|
1346
|
+
quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1347
|
+
kind: z.ZodLiteral<"earned">;
|
|
1348
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1349
|
+
kind: z.ZodLiteral<"net">;
|
|
1350
|
+
window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1351
|
+
kind: z.ZodLiteral<"all-time">;
|
|
1352
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1353
|
+
kind: z.ZodLiteral<"fixed">;
|
|
1354
|
+
start: z.ZodNumber;
|
|
1355
|
+
end: z.ZodNumber;
|
|
1356
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1357
|
+
kind: z.ZodLiteral<"rolling">;
|
|
1358
|
+
days: z.ZodNumber;
|
|
1359
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1360
|
+
kind: z.ZodLiteral<"calendar">;
|
|
1361
|
+
period: z.ZodEnum<{
|
|
1362
|
+
day: "day";
|
|
1363
|
+
week: "week";
|
|
1364
|
+
month: "month";
|
|
1365
|
+
}>;
|
|
1366
|
+
timeZone: z.ZodString;
|
|
1367
|
+
}, z.core.$strict>], "kind">>;
|
|
1368
|
+
}, z.core.$strict>], "kind">>;
|
|
1369
|
+
access: z.ZodDefault<z.ZodEnum<{
|
|
1370
|
+
participants: "participants";
|
|
1371
|
+
public: "public";
|
|
1372
|
+
}>>;
|
|
1373
|
+
key: z.ZodOptional<z.ZodString>;
|
|
1374
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1375
|
+
}, z.core.$strict>, z.ZodTransform<Omit<{
|
|
1376
|
+
balance: string;
|
|
828
1377
|
title: string;
|
|
1378
|
+
score: {
|
|
1379
|
+
kind: "balance";
|
|
1380
|
+
} | {
|
|
1381
|
+
window: {
|
|
1382
|
+
kind: "fixed";
|
|
1383
|
+
start: number;
|
|
1384
|
+
end: number;
|
|
1385
|
+
} | {
|
|
1386
|
+
kind: "all-time";
|
|
1387
|
+
} | {
|
|
1388
|
+
kind: "rolling";
|
|
1389
|
+
days: number;
|
|
1390
|
+
} | {
|
|
1391
|
+
kind: "calendar";
|
|
1392
|
+
period: "day" | "week" | "month";
|
|
1393
|
+
timeZone: string;
|
|
1394
|
+
};
|
|
1395
|
+
kind: "earned";
|
|
1396
|
+
quests?: string[] | undefined;
|
|
1397
|
+
} | {
|
|
1398
|
+
kind: "net";
|
|
1399
|
+
window: {
|
|
1400
|
+
kind: "fixed";
|
|
1401
|
+
start: number;
|
|
1402
|
+
end: number;
|
|
1403
|
+
} | {
|
|
1404
|
+
kind: "all-time";
|
|
1405
|
+
} | {
|
|
1406
|
+
kind: "rolling";
|
|
1407
|
+
days: number;
|
|
1408
|
+
} | {
|
|
1409
|
+
kind: "calendar";
|
|
1410
|
+
period: "day" | "week" | "month";
|
|
1411
|
+
timeZone: string;
|
|
1412
|
+
};
|
|
1413
|
+
};
|
|
1414
|
+
access: "participants" | "public";
|
|
1415
|
+
group?: string | undefined;
|
|
1416
|
+
key?: string | undefined;
|
|
1417
|
+
id?: string | undefined;
|
|
1418
|
+
}, "id" | "key"> & {
|
|
1419
|
+
key: string;
|
|
1420
|
+
}, {
|
|
829
1421
|
balance: string;
|
|
1422
|
+
title: string;
|
|
830
1423
|
score: {
|
|
831
1424
|
kind: "balance";
|
|
832
1425
|
} | {
|
|
@@ -865,11 +1458,57 @@ declare function defineLeaderboard(input: z.input<typeof leaderboardDefinitionSc
|
|
|
865
1458
|
};
|
|
866
1459
|
access: "participants" | "public";
|
|
867
1460
|
group?: string | undefined;
|
|
1461
|
+
key?: string | undefined;
|
|
1462
|
+
id?: string | undefined;
|
|
1463
|
+
}>>;
|
|
1464
|
+
declare function defineLeaderboard(input: Omit<z.input<typeof leaderboardAuthoringSchema>, "key" | "id"> & AuthoringIdentity): {
|
|
1465
|
+
id: string;
|
|
1466
|
+
balance: string;
|
|
1467
|
+
title: string;
|
|
1468
|
+
group?: string | undefined;
|
|
1469
|
+
score: {
|
|
1470
|
+
kind: "balance";
|
|
1471
|
+
} | {
|
|
1472
|
+
window: {
|
|
1473
|
+
kind: "fixed";
|
|
1474
|
+
start: number;
|
|
1475
|
+
end: number;
|
|
1476
|
+
} | {
|
|
1477
|
+
kind: "all-time";
|
|
1478
|
+
} | {
|
|
1479
|
+
kind: "rolling";
|
|
1480
|
+
days: number;
|
|
1481
|
+
} | {
|
|
1482
|
+
kind: "calendar";
|
|
1483
|
+
period: "day" | "week" | "month";
|
|
1484
|
+
timeZone: string;
|
|
1485
|
+
};
|
|
1486
|
+
kind: "earned";
|
|
1487
|
+
quests?: string[] | undefined;
|
|
1488
|
+
} | {
|
|
1489
|
+
kind: "net";
|
|
1490
|
+
window: {
|
|
1491
|
+
kind: "fixed";
|
|
1492
|
+
start: number;
|
|
1493
|
+
end: number;
|
|
1494
|
+
} | {
|
|
1495
|
+
kind: "all-time";
|
|
1496
|
+
} | {
|
|
1497
|
+
kind: "rolling";
|
|
1498
|
+
days: number;
|
|
1499
|
+
} | {
|
|
1500
|
+
kind: "calendar";
|
|
1501
|
+
period: "day" | "week" | "month";
|
|
1502
|
+
timeZone: string;
|
|
1503
|
+
};
|
|
1504
|
+
};
|
|
1505
|
+
access: "participants" | "public";
|
|
1506
|
+
key: string;
|
|
868
1507
|
};
|
|
869
|
-
declare const leaderboardArtifactSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
870
|
-
id: z.ZodString;
|
|
871
|
-
title: z.ZodString;
|
|
1508
|
+
declare const leaderboardArtifactSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
872
1509
|
balance: z.ZodString;
|
|
1510
|
+
title: z.ZodString;
|
|
1511
|
+
group: z.ZodOptional<z.ZodString>;
|
|
873
1512
|
score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
874
1513
|
kind: z.ZodLiteral<"balance">;
|
|
875
1514
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -918,14 +1557,104 @@ declare const leaderboardArtifactSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
918
1557
|
participants: "participants";
|
|
919
1558
|
public: "public";
|
|
920
1559
|
}>>;
|
|
921
|
-
|
|
922
|
-
|
|
1560
|
+
key: z.ZodOptional<z.ZodString>;
|
|
1561
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1562
|
+
}, z.core.$strict>, z.ZodTransform<Omit<{
|
|
1563
|
+
balance: string;
|
|
1564
|
+
title: string;
|
|
1565
|
+
score: {
|
|
1566
|
+
kind: "balance";
|
|
1567
|
+
} | {
|
|
1568
|
+
window: {
|
|
1569
|
+
kind: "fixed";
|
|
1570
|
+
start: number;
|
|
1571
|
+
end: number;
|
|
1572
|
+
} | {
|
|
1573
|
+
kind: "all-time";
|
|
1574
|
+
} | {
|
|
1575
|
+
kind: "rolling";
|
|
1576
|
+
days: number;
|
|
1577
|
+
} | {
|
|
1578
|
+
kind: "calendar";
|
|
1579
|
+
period: "day" | "week" | "month";
|
|
1580
|
+
timeZone: string;
|
|
1581
|
+
};
|
|
1582
|
+
kind: "earned";
|
|
1583
|
+
quests?: string[] | undefined;
|
|
1584
|
+
} | {
|
|
1585
|
+
kind: "net";
|
|
1586
|
+
window: {
|
|
1587
|
+
kind: "fixed";
|
|
1588
|
+
start: number;
|
|
1589
|
+
end: number;
|
|
1590
|
+
} | {
|
|
1591
|
+
kind: "all-time";
|
|
1592
|
+
} | {
|
|
1593
|
+
kind: "rolling";
|
|
1594
|
+
days: number;
|
|
1595
|
+
} | {
|
|
1596
|
+
kind: "calendar";
|
|
1597
|
+
period: "day" | "week" | "month";
|
|
1598
|
+
timeZone: string;
|
|
1599
|
+
};
|
|
1600
|
+
};
|
|
1601
|
+
access: "participants" | "public";
|
|
1602
|
+
group?: string | undefined;
|
|
1603
|
+
key?: string | undefined;
|
|
1604
|
+
id?: string | undefined;
|
|
1605
|
+
}, "id" | "key"> & {
|
|
1606
|
+
key: string;
|
|
1607
|
+
}, {
|
|
1608
|
+
balance: string;
|
|
1609
|
+
title: string;
|
|
1610
|
+
score: {
|
|
1611
|
+
kind: "balance";
|
|
1612
|
+
} | {
|
|
1613
|
+
window: {
|
|
1614
|
+
kind: "fixed";
|
|
1615
|
+
start: number;
|
|
1616
|
+
end: number;
|
|
1617
|
+
} | {
|
|
1618
|
+
kind: "all-time";
|
|
1619
|
+
} | {
|
|
1620
|
+
kind: "rolling";
|
|
1621
|
+
days: number;
|
|
1622
|
+
} | {
|
|
1623
|
+
kind: "calendar";
|
|
1624
|
+
period: "day" | "week" | "month";
|
|
1625
|
+
timeZone: string;
|
|
1626
|
+
};
|
|
1627
|
+
kind: "earned";
|
|
1628
|
+
quests?: string[] | undefined;
|
|
1629
|
+
} | {
|
|
1630
|
+
kind: "net";
|
|
1631
|
+
window: {
|
|
1632
|
+
kind: "fixed";
|
|
1633
|
+
start: number;
|
|
1634
|
+
end: number;
|
|
1635
|
+
} | {
|
|
1636
|
+
kind: "all-time";
|
|
1637
|
+
} | {
|
|
1638
|
+
kind: "rolling";
|
|
1639
|
+
days: number;
|
|
1640
|
+
} | {
|
|
1641
|
+
kind: "calendar";
|
|
1642
|
+
period: "day" | "week" | "month";
|
|
1643
|
+
timeZone: string;
|
|
1644
|
+
};
|
|
1645
|
+
};
|
|
1646
|
+
access: "participants" | "public";
|
|
1647
|
+
group?: string | undefined;
|
|
1648
|
+
key?: string | undefined;
|
|
1649
|
+
id?: string | undefined;
|
|
1650
|
+
}>>, z.ZodObject<{
|
|
923
1651
|
code: z.ZodString;
|
|
924
1652
|
}, z.core.$strict>]>;
|
|
925
1653
|
declare const publishedLeaderboardSchema: z.ZodObject<{
|
|
926
1654
|
version: z.ZodString;
|
|
927
1655
|
definition: z.ZodObject<{
|
|
928
1656
|
id: z.ZodString;
|
|
1657
|
+
key: z.ZodOptional<z.ZodString>;
|
|
929
1658
|
title: z.ZodString;
|
|
930
1659
|
balance: z.ZodString;
|
|
931
1660
|
score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1038,6 +1767,7 @@ declare const leaderboardPreviewSchema: z.ZodObject<{
|
|
|
1038
1767
|
version: z.ZodString;
|
|
1039
1768
|
definition: z.ZodObject<{
|
|
1040
1769
|
id: z.ZodString;
|
|
1770
|
+
key: z.ZodOptional<z.ZodString>;
|
|
1041
1771
|
title: z.ZodString;
|
|
1042
1772
|
balance: z.ZodString;
|
|
1043
1773
|
score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1351,6 +2081,9 @@ declare const channelSourceSchema: z.ZodObject<{
|
|
|
1351
2081
|
}>>;
|
|
1352
2082
|
}, z.core.$strict>;
|
|
1353
2083
|
declare const resourceSourceSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
2084
|
+
provider: z.ZodLiteral<"domino">;
|
|
2085
|
+
resource: z.ZodLiteral<"point-ledger">;
|
|
2086
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1354
2087
|
provider: z.ZodLiteral<"discord">;
|
|
1355
2088
|
resource: z.ZodLiteral<"channel">;
|
|
1356
2089
|
types: z.ZodArray<z.ZodEnum<{
|
|
@@ -1365,6 +2098,9 @@ declare const resourceSourceSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1365
2098
|
type ResourceSource = z.infer<typeof resourceSourceSchema>;
|
|
1366
2099
|
declare const resourceRequestSchema: z.ZodObject<{
|
|
1367
2100
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
2101
|
+
provider: z.ZodLiteral<"domino">;
|
|
2102
|
+
resource: z.ZodLiteral<"point-ledger">;
|
|
2103
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1368
2104
|
provider: z.ZodLiteral<"discord">;
|
|
1369
2105
|
resource: z.ZodLiteral<"channel">;
|
|
1370
2106
|
types: z.ZodArray<z.ZodEnum<{
|
|
@@ -1400,6 +2136,7 @@ declare const discord: {
|
|
|
1400
2136
|
types?: z.infer<typeof channelSourceSchema>["types"];
|
|
1401
2137
|
}): ResourceSource;
|
|
1402
2138
|
};
|
|
2139
|
+
declare const pointLedgers: () => ResourceSource;
|
|
1403
2140
|
|
|
1404
2141
|
declare const settingFieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1405
2142
|
kind: z.ZodLiteral<"point-ledger">;
|
|
@@ -1415,6 +2152,9 @@ declare const settingFieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1415
2152
|
kind: z.ZodLiteral<"resource">;
|
|
1416
2153
|
default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
1417
2154
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
2155
|
+
provider: z.ZodLiteral<"domino">;
|
|
2156
|
+
resource: z.ZodLiteral<"point-ledger">;
|
|
2157
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1418
2158
|
provider: z.ZodLiteral<"discord">;
|
|
1419
2159
|
resource: z.ZodLiteral<"channel">;
|
|
1420
2160
|
types: z.ZodArray<z.ZodEnum<{
|
|
@@ -1483,6 +2223,9 @@ declare const settingsFieldsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
|
|
|
1483
2223
|
kind: z.ZodLiteral<"resource">;
|
|
1484
2224
|
default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
1485
2225
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
2226
|
+
provider: z.ZodLiteral<"domino">;
|
|
2227
|
+
resource: z.ZodLiteral<"point-ledger">;
|
|
2228
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1486
2229
|
provider: z.ZodLiteral<"discord">;
|
|
1487
2230
|
resource: z.ZodLiteral<"channel">;
|
|
1488
2231
|
types: z.ZodArray<z.ZodEnum<{
|
|
@@ -1596,4 +2339,4 @@ declare function parseSettings(fields: Record<string, SettingField>, input: unkn
|
|
|
1596
2339
|
declare function missingResourceSettings(fields: Record<string, SettingField>, values: SettingsValues): string[];
|
|
1597
2340
|
declare function compatibleSettingKinds(previous: SettingField, next: SettingField): boolean;
|
|
1598
2341
|
|
|
1599
|
-
export {
|
|
2342
|
+
export { observationInputSchema as $, type AuthoringIdentity as A, type Budget as B, discordMessageInputSchema as C, type DiscordMember as D, discordMessageSchema as E, discordReactionSchema as F, discordServerSchema as G, integrationProviderSchema as H, type IntegrationProvider as I, leaderboardArtifactSchema as J, leaderboardAuthoringSchema as K, type LeaderboardQuery as L, leaderboardDefinitionSchema as M, leaderboardExclusionSchema as N, type Observation as O, type ProjectIntegration as P, type QuizContent as Q, type ReferralDefinition as R, type SolanaBalance as S, leaderboardGroupSchema as T, leaderboardPageSchema as U, leaderboardPreviewSchema as V, type WalletConnection as W, leaderboardQuerySchema as X, leaderboardRowSchema as Y, leaderboardWindowSchema as Z, missingResourceSettings as _, type DiscordMessage as a, observationReceiptSchema as a0, observationSchema as a1, parseSettings as a2, pointsAccountSchema as a3, pointsEntrySchema as a4, pointsMutationSchema as a5, pointsResultSchema as a6, projectIntegrationSchema as a7, publishedLeaderboardSchema as a8, publishedReferralSchema as a9, quizChoiceSchema as aa, quizContentSchema as ab, quizQuestionSchema as ac, quizQuestionsSchema as ad, referralAccountSchema as ae, referralArtifactSchema as af, referralAuthoringSchema as ag, referralControlSchema as ah, referralDefinitionSchema as ai, referralHistorySchema as aj, referralManagementSchema as ak, referralRelationshipSchema as al, referralSummarySchema as am, resourceOptionsSchema as an, resourceRequestSchema as ao, resourceSourceSchema as ap, settingFieldSchema as aq, settingsFieldsSchema as ar, settingsValuesSchema as as, solanaAddressSchema as at, solanaBalanceSchema as au, walletChallengeSchema as av, walletConnectionSchema as aw, defineReferral as b, discord as c, defineLeaderboard as d, walletProofSchema as e, type AuthProvider as f, type AccountConnection as g, type LeaderboardDefinition as h, type LeaderboardPage as i, type ResourceOption as j, type ResourceSource as k, type SettingField as l, type SettingsValues as m, accountConnectionSchema as n, observationTriggerSchema as o, pointLedgers as p, authProviderSchema as q, referralAcceptSchema as r, settings as s, budgetSchema as t, compatibleSettingKinds as u, completionKeySchema as v, walletChallengeInputSchema as w, completionPolicySchema as x, discordMemberInputSchema as y, discordMemberSchema as z };
|