@domino-sdk/relay 0.3.0 → 0.4.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/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
2
  import { errorSchema, QuizEvidence, Attempt, SubmitInput, MemberProgress, questDescriptionSchema, PublishedRelease, ReviewListOptions, MemberListOptions, ReleaseInput, beginHandoverSchema } from './schema.js';
3
3
  export { Decision, Entitlement, MemberPage, PhotoResult, PickupAvailability, QuestAvailability, QuestDescription, QuestPresentation, QuestSettingsInput, ReviewPage, Reward, Snapshot, TieredRewardDefinition, artifactSchema, attemptSchema, batchReleaseSchema, completionRecordSchema, configurePickupSchema, confirmHandoverSchema, decisionSchema, entitlementSchema, eventSchema, evidenceSchema, identifier, mediaUrlSchema, memberListSchema, memberPageSchema, memberProgressSchema, photoResultSchema, pickupAllocationSchema, pickupAvailabilitySchema, pickupCatalogSchema, pickupPolicySchema, pickupSelectionSchema, pointsRewardSchema, prerequisiteSchema, publishedReleaseSchema, questAvailabilitySchema, questPresentationSchema, questSettingsInputSchema, quizAnswersSchema, quizEvidenceSchema, releaseSchema, reservationSchema, reviewItemSchema, reviewListSchema, reviewModeSchema, reviewPageSchema, rewardBundleSchema, rewardKey, rewardSchema, snapshotSchema, staffDecisionSchema, stockSchema, submitSchema, templateSchema, tierRewardSchema, tieredRewardDefinitionSchema, triggerSchema } from './schema.js';
4
- import { w as walletChallengeInputSchema, a as walletProofSchema } from './settings-BEbCiuhH.js';
5
- export { Q as QuizContent, b as SettingField, c as SettingsValues, S as SolanaBalance, W as WalletConnection, p as parseSettings, q as quizChoiceSchema, d as quizContentSchema, e as quizQuestionSchema, f as quizQuestionsSchema, g as settingFieldSchema, s as settings, h as settingsFieldsSchema, i as settingsValuesSchema, j as solanaAddressSchema, k as solanaBalanceSchema, l as walletChallengeSchema, m as walletConnectionSchema } from './settings-BEbCiuhH.js';
4
+ import { r as referralAcceptSchema, L as LeaderboardQuery, w as walletChallengeInputSchema, b as walletProofSchema, A as AuthProvider } from './settings-B7vsT8nd.js';
5
+ export { c as AccountConnection, D as DiscordMember, I as IntegrationProvider, e as LeaderboardDefinition, f as LeaderboardPage, P as ProjectIntegration, Q as QuizContent, R as ReferralDefinition, g as SettingField, h as SettingsValues, S as SolanaBalance, W as WalletConnection, i as accountConnectionSchema, j as authProviderSchema, d as defineLeaderboard, a as defineReferral, k as discordMemberInputSchema, l as discordMemberSchema, m as discordServerSchema, n as integrationProviderSchema, o as leaderboardArtifactSchema, p as leaderboardDefinitionSchema, q as leaderboardExclusionSchema, t as leaderboardGroupSchema, u as leaderboardPageSchema, v as leaderboardPreviewSchema, x as leaderboardQuerySchema, y as leaderboardRowSchema, z as leaderboardWindowSchema, B as parseSettings, C as pointsAccountSchema, E as pointsEntrySchema, F as pointsMutationSchema, G as pointsResultSchema, H as projectIntegrationSchema, J as publishedLeaderboardSchema, K as publishedReferralSchema, M as quizChoiceSchema, N as quizContentSchema, O as quizQuestionSchema, T as quizQuestionsSchema, U as referralAccountSchema, V as referralArtifactSchema, X as referralControlSchema, Y as referralDefinitionSchema, Z as referralHistorySchema, _ as referralManagementSchema, $ as referralRelationshipSchema, a0 as referralSummarySchema, a1 as settingFieldSchema, s as settings, a2 as settingsFieldsSchema, a3 as settingsValuesSchema, a4 as solanaAddressSchema, a5 as solanaBalanceSchema, a6 as walletChallengeSchema, a7 as walletConnectionSchema } from './settings-B7vsT8nd.js';
6
6
 
7
7
  declare class RelayError extends Error {
8
8
  readonly status: number;
@@ -112,6 +112,7 @@ type SubmissionStatus = {
112
112
  type Handle = {
113
113
  status(): Promise<SubmissionStatus>;
114
114
  resume(): Promise<Attempt>;
115
+ discard(): Promise<void>;
115
116
  };
116
117
  type PhotoSubmission = Handle & {
117
118
  submit(file: File): Promise<Attempt>;
@@ -222,6 +223,9 @@ declare const questTypeVersionSchema: z.ZodObject<{
222
223
  }, z.core.$strict>>;
223
224
  }, z.core.$strict>>;
224
225
  }, z.core.$strict>>;
226
+ integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
227
+ discord: "discord";
228
+ }>>>;
225
229
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
226
230
  kind: z.ZodLiteral<"quiz">;
227
231
  default: z.ZodArray<z.ZodObject<{
@@ -480,6 +484,9 @@ declare const questCatalogSchema: z.ZodObject<{
480
484
  }, z.core.$strict>>;
481
485
  }, z.core.$strict>>;
482
486
  }, z.core.$strict>>;
487
+ integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
488
+ discord: "discord";
489
+ }>>>;
483
490
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
484
491
  kind: z.ZodLiteral<"quiz">;
485
492
  default: z.ZodArray<z.ZodObject<{
@@ -700,6 +707,9 @@ declare const questCatalogSchema: z.ZodObject<{
700
707
  }, z.core.$strict>>;
701
708
  }, z.core.$strict>>;
702
709
  }, z.core.$strict>>;
710
+ integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
711
+ discord: "discord";
712
+ }>>>;
703
713
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
704
714
  kind: z.ZodLiteral<"quiz">;
705
715
  default: z.ZodArray<z.ZodObject<{
@@ -894,6 +904,7 @@ declare const questCatalogSchema: z.ZodObject<{
894
904
  } | undefined;
895
905
  } | undefined;
896
906
  };
907
+ integrations: "discord"[];
897
908
  fields: Record<string, {
898
909
  kind: "quiz";
899
910
  default: {
@@ -1104,6 +1115,9 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1104
1115
  }, z.core.$strict>>;
1105
1116
  }, z.core.$strict>>;
1106
1117
  }, z.core.$strict>>;
1118
+ integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1119
+ discord: "discord";
1120
+ }>>>;
1107
1121
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1108
1122
  kind: z.ZodLiteral<"quiz">;
1109
1123
  default: z.ZodArray<z.ZodObject<{
@@ -1279,6 +1293,12 @@ declare const questViewSchema: z.ZodObject<{
1279
1293
  }, z.core.$strict>>;
1280
1294
  }, z.core.$strict>>;
1281
1295
  }, z.core.$strict>>;
1296
+ connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1297
+ google: "google";
1298
+ apple: "apple";
1299
+ x: "x";
1300
+ discord: "discord";
1301
+ }>>>;
1282
1302
  trigger: z.ZodUnion<readonly [z.ZodObject<{
1283
1303
  kind: z.ZodLiteral<"manual">;
1284
1304
  input: z.ZodEnum<{
@@ -1419,6 +1439,12 @@ declare const collectionViewSchema: z.ZodObject<{
1419
1439
  }, z.core.$strict>>;
1420
1440
  }, z.core.$strict>>;
1421
1441
  }, z.core.$strict>>;
1442
+ connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1443
+ google: "google";
1444
+ apple: "apple";
1445
+ x: "x";
1446
+ discord: "discord";
1447
+ }>>>;
1422
1448
  trigger: z.ZodUnion<readonly [z.ZodObject<{
1423
1449
  kind: z.ZodLiteral<"manual">;
1424
1450
  input: z.ZodEnum<{
@@ -1559,6 +1585,12 @@ declare const questExperienceSchema: z.ZodObject<{
1559
1585
  }, z.core.$strict>>;
1560
1586
  }, z.core.$strict>>;
1561
1587
  }, z.core.$strict>>;
1588
+ connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1589
+ google: "google";
1590
+ apple: "apple";
1591
+ x: "x";
1592
+ discord: "discord";
1593
+ }>>>;
1562
1594
  trigger: z.ZodUnion<readonly [z.ZodObject<{
1563
1595
  kind: z.ZodLiteral<"manual">;
1564
1596
  input: z.ZodEnum<{
@@ -1699,6 +1731,12 @@ declare const questExperienceSchema: z.ZodObject<{
1699
1731
  }, z.core.$strict>>;
1700
1732
  }, z.core.$strict>>;
1701
1733
  }, z.core.$strict>>;
1734
+ connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1735
+ google: "google";
1736
+ apple: "apple";
1737
+ x: "x";
1738
+ discord: "discord";
1739
+ }>>>;
1702
1740
  trigger: z.ZodUnion<readonly [z.ZodObject<{
1703
1741
  kind: z.ZodLiteral<"manual">;
1704
1742
  input: z.ZodEnum<{
@@ -1912,6 +1950,9 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
1912
1950
  }, z.core.$strict>>;
1913
1951
  }, z.core.$strict>>;
1914
1952
  }, z.core.$strict>>;
1953
+ integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1954
+ discord: "discord";
1955
+ }>>>;
1915
1956
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1916
1957
  kind: z.ZodLiteral<"quiz">;
1917
1958
  default: z.ZodArray<z.ZodObject<{
@@ -2106,6 +2147,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2106
2147
  } | undefined;
2107
2148
  } | undefined;
2108
2149
  };
2150
+ integrations: "discord"[];
2109
2151
  fields: Record<string, {
2110
2152
  kind: "quiz";
2111
2153
  default: {
@@ -2277,6 +2319,7 @@ type ActiveController = {
2277
2319
  view: QuestView;
2278
2320
  status(): Promise<SubmissionStatus>;
2279
2321
  resume(): Promise<QuestActionResult>;
2322
+ discard(): Promise<void>;
2280
2323
  };
2281
2324
  type QuestController = (ActiveController & {
2282
2325
  kind: "status";
@@ -2425,6 +2468,183 @@ declare function questConfiguration(release: PublishedRelease): {
2425
2468
  preserved: string[];
2426
2469
  };
2427
2470
 
2471
+ /** Non-quest resources in the private hosted-build catalog artifact. */
2472
+ declare const projectCatalogArtifactSchema: z.ZodObject<{
2473
+ collections: z.ZodDefault<z.ZodArray<z.ZodObject<{
2474
+ id: z.ZodString;
2475
+ title: z.ZodString;
2476
+ }, z.core.$strict>>>;
2477
+ types: z.ZodDefault<z.ZodArray<z.ZodObject<{
2478
+ code: z.ZodString;
2479
+ provider: z.ZodEnum<{
2480
+ "fixture-pass": "fixture-pass";
2481
+ "fixture-fail": "fixture-fail";
2482
+ "fixture-unclear": "fixture-unclear";
2483
+ "fixture-error": "fixture-error";
2484
+ "workers-ai": "workers-ai";
2485
+ }>;
2486
+ }, z.core.$strip>>>;
2487
+ supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2488
+ quiz: "quiz";
2489
+ photo: "photo";
2490
+ staff: "staff";
2491
+ automatic: "automatic";
2492
+ claim: "claim";
2493
+ }>>>;
2494
+ referrals: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2495
+ id: z.ZodString;
2496
+ title: z.ZodString;
2497
+ enabled: z.ZodDefault<z.ZodBoolean>;
2498
+ qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
2499
+ kind: z.ZodLiteral<"signup">;
2500
+ }, z.core.$strict>, z.ZodObject<{
2501
+ kind: z.ZodLiteral<"quest">;
2502
+ quest: z.ZodString;
2503
+ }, z.core.$strict>, z.ZodObject<{
2504
+ kind: z.ZodLiteral<"external">;
2505
+ }, z.core.$strict>], "kind">;
2506
+ inviterGroup: z.ZodOptional<z.ZodString>;
2507
+ rewards: z.ZodDefault<z.ZodObject<{
2508
+ inviter: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2509
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
2510
+ balance: z.ZodString;
2511
+ amount: z.ZodNumber;
2512
+ }, z.core.$strict>, z.ZodObject<{
2513
+ kind: z.ZodLiteral<"tier">;
2514
+ reward: z.ZodObject<{
2515
+ id: z.ZodString;
2516
+ title: z.ZodString;
2517
+ tiers: z.ZodArray<z.ZodObject<{
2518
+ id: z.ZodString;
2519
+ title: z.ZodString;
2520
+ }, z.core.$strict>>;
2521
+ inventory: z.ZodObject<{
2522
+ kind: z.ZodLiteral<"untracked">;
2523
+ }, z.core.$strict>;
2524
+ fulfillment: z.ZodObject<{
2525
+ kind: z.ZodLiteral<"staff-handover">;
2526
+ }, z.core.$strict>;
2527
+ }, z.core.$strict>;
2528
+ tier: z.ZodString;
2529
+ }, z.core.$strict>]>>>;
2530
+ invitee: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2531
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
2532
+ balance: z.ZodString;
2533
+ amount: z.ZodNumber;
2534
+ }, z.core.$strict>, z.ZodObject<{
2535
+ kind: z.ZodLiteral<"tier">;
2536
+ reward: z.ZodObject<{
2537
+ id: z.ZodString;
2538
+ title: z.ZodString;
2539
+ tiers: z.ZodArray<z.ZodObject<{
2540
+ id: z.ZodString;
2541
+ title: z.ZodString;
2542
+ }, z.core.$strict>>;
2543
+ inventory: z.ZodObject<{
2544
+ kind: z.ZodLiteral<"untracked">;
2545
+ }, z.core.$strict>;
2546
+ fulfillment: z.ZodObject<{
2547
+ kind: z.ZodLiteral<"staff-handover">;
2548
+ }, z.core.$strict>;
2549
+ }, z.core.$strict>;
2550
+ tier: z.ZodString;
2551
+ }, z.core.$strict>]>>>;
2552
+ }, z.core.$strict>>;
2553
+ milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
2554
+ id: z.ZodString;
2555
+ count: z.ZodNumber;
2556
+ rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2557
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
2558
+ balance: z.ZodString;
2559
+ amount: z.ZodNumber;
2560
+ }, z.core.$strict>, z.ZodObject<{
2561
+ kind: z.ZodLiteral<"tier">;
2562
+ reward: z.ZodObject<{
2563
+ id: z.ZodString;
2564
+ title: z.ZodString;
2565
+ tiers: z.ZodArray<z.ZodObject<{
2566
+ id: z.ZodString;
2567
+ title: z.ZodString;
2568
+ }, z.core.$strict>>;
2569
+ inventory: z.ZodObject<{
2570
+ kind: z.ZodLiteral<"untracked">;
2571
+ }, z.core.$strict>;
2572
+ fulfillment: z.ZodObject<{
2573
+ kind: z.ZodLiteral<"staff-handover">;
2574
+ }, z.core.$strict>;
2575
+ }, z.core.$strict>;
2576
+ tier: z.ZodString;
2577
+ }, z.core.$strict>]>>;
2578
+ }, z.core.$strict>>>;
2579
+ bonuses: z.ZodDefault<z.ZodArray<z.ZodObject<{
2580
+ id: z.ZodString;
2581
+ balance: z.ZodString;
2582
+ basisPoints: z.ZodNumber;
2583
+ quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
2584
+ external: z.ZodDefault<z.ZodBoolean>;
2585
+ durationDays: z.ZodOptional<z.ZodNumber>;
2586
+ maxPoints: z.ZodOptional<z.ZodNumber>;
2587
+ }, z.core.$strict>>>;
2588
+ }, z.core.$strict>, z.ZodObject<{
2589
+ code: z.ZodString;
2590
+ }, z.core.$strict>]>>>;
2591
+ leaderboards: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2592
+ id: z.ZodString;
2593
+ title: z.ZodString;
2594
+ balance: z.ZodString;
2595
+ score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2596
+ kind: z.ZodLiteral<"balance">;
2597
+ }, z.core.$strict>, z.ZodObject<{
2598
+ window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2599
+ kind: z.ZodLiteral<"all-time">;
2600
+ }, z.core.$strict>, z.ZodObject<{
2601
+ kind: z.ZodLiteral<"fixed">;
2602
+ start: z.ZodNumber;
2603
+ end: z.ZodNumber;
2604
+ }, z.core.$strict>, z.ZodObject<{
2605
+ kind: z.ZodLiteral<"rolling">;
2606
+ days: z.ZodNumber;
2607
+ }, z.core.$strict>, z.ZodObject<{
2608
+ kind: z.ZodLiteral<"calendar">;
2609
+ period: z.ZodEnum<{
2610
+ day: "day";
2611
+ week: "week";
2612
+ month: "month";
2613
+ }>;
2614
+ timeZone: z.ZodString;
2615
+ }, z.core.$strict>], "kind">>;
2616
+ quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
2617
+ kind: z.ZodLiteral<"earned">;
2618
+ }, z.core.$strict>, z.ZodObject<{
2619
+ kind: z.ZodLiteral<"net">;
2620
+ window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2621
+ kind: z.ZodLiteral<"all-time">;
2622
+ }, z.core.$strict>, z.ZodObject<{
2623
+ kind: z.ZodLiteral<"fixed">;
2624
+ start: z.ZodNumber;
2625
+ end: z.ZodNumber;
2626
+ }, z.core.$strict>, z.ZodObject<{
2627
+ kind: z.ZodLiteral<"rolling">;
2628
+ days: z.ZodNumber;
2629
+ }, z.core.$strict>, z.ZodObject<{
2630
+ kind: z.ZodLiteral<"calendar">;
2631
+ period: z.ZodEnum<{
2632
+ day: "day";
2633
+ week: "week";
2634
+ month: "month";
2635
+ }>;
2636
+ timeZone: z.ZodString;
2637
+ }, z.core.$strict>], "kind">>;
2638
+ }, z.core.$strict>], "kind">>;
2639
+ access: z.ZodDefault<z.ZodEnum<{
2640
+ participants: "participants";
2641
+ public: "public";
2642
+ }>>;
2643
+ group: z.ZodOptional<z.ZodString>;
2644
+ }, z.core.$strict>, z.ZodObject<{
2645
+ code: z.ZodString;
2646
+ }, z.core.$strict>]>>>;
2647
+ }, z.core.$strict>;
2428
2648
  /** One manifest bundle. Missing entries never delete remotely owned resources. */
2429
2649
  declare const projectDeploymentSchema: z.ZodObject<{
2430
2650
  collections: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -2448,6 +2668,159 @@ declare const projectDeploymentSchema: z.ZodObject<{
2448
2668
  automatic: "automatic";
2449
2669
  claim: "claim";
2450
2670
  }>>>;
2671
+ referrals: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2672
+ id: z.ZodString;
2673
+ title: z.ZodString;
2674
+ enabled: z.ZodDefault<z.ZodBoolean>;
2675
+ qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
2676
+ kind: z.ZodLiteral<"signup">;
2677
+ }, z.core.$strict>, z.ZodObject<{
2678
+ kind: z.ZodLiteral<"quest">;
2679
+ quest: z.ZodString;
2680
+ }, z.core.$strict>, z.ZodObject<{
2681
+ kind: z.ZodLiteral<"external">;
2682
+ }, z.core.$strict>], "kind">;
2683
+ inviterGroup: z.ZodOptional<z.ZodString>;
2684
+ rewards: z.ZodDefault<z.ZodObject<{
2685
+ inviter: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2686
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
2687
+ balance: z.ZodString;
2688
+ amount: z.ZodNumber;
2689
+ }, z.core.$strict>, z.ZodObject<{
2690
+ kind: z.ZodLiteral<"tier">;
2691
+ reward: z.ZodObject<{
2692
+ id: z.ZodString;
2693
+ title: z.ZodString;
2694
+ tiers: z.ZodArray<z.ZodObject<{
2695
+ id: z.ZodString;
2696
+ title: z.ZodString;
2697
+ }, z.core.$strict>>;
2698
+ inventory: z.ZodObject<{
2699
+ kind: z.ZodLiteral<"untracked">;
2700
+ }, z.core.$strict>;
2701
+ fulfillment: z.ZodObject<{
2702
+ kind: z.ZodLiteral<"staff-handover">;
2703
+ }, z.core.$strict>;
2704
+ }, z.core.$strict>;
2705
+ tier: z.ZodString;
2706
+ }, z.core.$strict>]>>>;
2707
+ invitee: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2708
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
2709
+ balance: z.ZodString;
2710
+ amount: z.ZodNumber;
2711
+ }, z.core.$strict>, z.ZodObject<{
2712
+ kind: z.ZodLiteral<"tier">;
2713
+ reward: z.ZodObject<{
2714
+ id: z.ZodString;
2715
+ title: z.ZodString;
2716
+ tiers: z.ZodArray<z.ZodObject<{
2717
+ id: z.ZodString;
2718
+ title: z.ZodString;
2719
+ }, z.core.$strict>>;
2720
+ inventory: z.ZodObject<{
2721
+ kind: z.ZodLiteral<"untracked">;
2722
+ }, z.core.$strict>;
2723
+ fulfillment: z.ZodObject<{
2724
+ kind: z.ZodLiteral<"staff-handover">;
2725
+ }, z.core.$strict>;
2726
+ }, z.core.$strict>;
2727
+ tier: z.ZodString;
2728
+ }, z.core.$strict>]>>>;
2729
+ }, z.core.$strict>>;
2730
+ milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
2731
+ id: z.ZodString;
2732
+ count: z.ZodNumber;
2733
+ rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2734
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
2735
+ balance: z.ZodString;
2736
+ amount: z.ZodNumber;
2737
+ }, z.core.$strict>, z.ZodObject<{
2738
+ kind: z.ZodLiteral<"tier">;
2739
+ reward: z.ZodObject<{
2740
+ id: z.ZodString;
2741
+ title: z.ZodString;
2742
+ tiers: z.ZodArray<z.ZodObject<{
2743
+ id: z.ZodString;
2744
+ title: z.ZodString;
2745
+ }, z.core.$strict>>;
2746
+ inventory: z.ZodObject<{
2747
+ kind: z.ZodLiteral<"untracked">;
2748
+ }, z.core.$strict>;
2749
+ fulfillment: z.ZodObject<{
2750
+ kind: z.ZodLiteral<"staff-handover">;
2751
+ }, z.core.$strict>;
2752
+ }, z.core.$strict>;
2753
+ tier: z.ZodString;
2754
+ }, z.core.$strict>]>>;
2755
+ }, z.core.$strict>>>;
2756
+ bonuses: z.ZodDefault<z.ZodArray<z.ZodObject<{
2757
+ id: z.ZodString;
2758
+ balance: z.ZodString;
2759
+ basisPoints: z.ZodNumber;
2760
+ quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
2761
+ external: z.ZodDefault<z.ZodBoolean>;
2762
+ durationDays: z.ZodOptional<z.ZodNumber>;
2763
+ maxPoints: z.ZodOptional<z.ZodNumber>;
2764
+ }, z.core.$strict>>>;
2765
+ }, z.core.$strict>, z.ZodObject<{
2766
+ code: z.ZodString;
2767
+ }, z.core.$strict>]>>>;
2768
+ leaderboards: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2769
+ id: z.ZodString;
2770
+ title: z.ZodString;
2771
+ balance: z.ZodString;
2772
+ score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2773
+ kind: z.ZodLiteral<"balance">;
2774
+ }, z.core.$strict>, z.ZodObject<{
2775
+ window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2776
+ kind: z.ZodLiteral<"all-time">;
2777
+ }, z.core.$strict>, z.ZodObject<{
2778
+ kind: z.ZodLiteral<"fixed">;
2779
+ start: z.ZodNumber;
2780
+ end: z.ZodNumber;
2781
+ }, z.core.$strict>, z.ZodObject<{
2782
+ kind: z.ZodLiteral<"rolling">;
2783
+ days: z.ZodNumber;
2784
+ }, z.core.$strict>, z.ZodObject<{
2785
+ kind: z.ZodLiteral<"calendar">;
2786
+ period: z.ZodEnum<{
2787
+ day: "day";
2788
+ week: "week";
2789
+ month: "month";
2790
+ }>;
2791
+ timeZone: z.ZodString;
2792
+ }, z.core.$strict>], "kind">>;
2793
+ quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
2794
+ kind: z.ZodLiteral<"earned">;
2795
+ }, z.core.$strict>, z.ZodObject<{
2796
+ kind: z.ZodLiteral<"net">;
2797
+ window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2798
+ kind: z.ZodLiteral<"all-time">;
2799
+ }, z.core.$strict>, z.ZodObject<{
2800
+ kind: z.ZodLiteral<"fixed">;
2801
+ start: z.ZodNumber;
2802
+ end: z.ZodNumber;
2803
+ }, z.core.$strict>, z.ZodObject<{
2804
+ kind: z.ZodLiteral<"rolling">;
2805
+ days: z.ZodNumber;
2806
+ }, z.core.$strict>, z.ZodObject<{
2807
+ kind: z.ZodLiteral<"calendar">;
2808
+ period: z.ZodEnum<{
2809
+ day: "day";
2810
+ week: "week";
2811
+ month: "month";
2812
+ }>;
2813
+ timeZone: z.ZodString;
2814
+ }, z.core.$strict>], "kind">>;
2815
+ }, z.core.$strict>], "kind">>;
2816
+ access: z.ZodDefault<z.ZodEnum<{
2817
+ participants: "participants";
2818
+ public: "public";
2819
+ }>>;
2820
+ group: z.ZodOptional<z.ZodString>;
2821
+ }, z.core.$strict>, z.ZodObject<{
2822
+ code: z.ZodString;
2823
+ }, z.core.$strict>]>>>;
2451
2824
  releases: z.ZodDefault<z.ZodArray<z.ZodObject<{
2452
2825
  code: z.ZodString;
2453
2826
  settings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
@@ -2497,6 +2870,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
2497
2870
  }, z.core.$strict>>;
2498
2871
  }, z.core.$strict>>;
2499
2872
  }, z.core.$strict>>;
2873
+ integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2874
+ discord: "discord";
2875
+ }>>>;
2500
2876
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2501
2877
  kind: z.ZodLiteral<"quiz">;
2502
2878
  default: z.ZodArray<z.ZodObject<{
@@ -2691,6 +3067,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
2691
3067
  } | undefined;
2692
3068
  } | undefined;
2693
3069
  };
3070
+ integrations: "discord"[];
2694
3071
  fields: Record<string, {
2695
3072
  kind: "quiz";
2696
3073
  default: {
@@ -2867,6 +3244,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
2867
3244
  }, z.core.$strict>>;
2868
3245
  }, z.core.$strict>>;
2869
3246
  }, z.core.$strict>>;
3247
+ integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
3248
+ discord: "discord";
3249
+ }>>>;
2870
3250
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2871
3251
  kind: z.ZodLiteral<"quiz">;
2872
3252
  default: z.ZodArray<z.ZodObject<{
@@ -2982,51 +3362,293 @@ declare const deploymentPreviewSchema: z.ZodObject<{
2982
3362
  automatic: "automatic";
2983
3363
  claim: "claim";
2984
3364
  }>>;
2985
- }, z.core.$strip>;
2986
- declare const publishDeploymentSchema: z.ZodObject<{
2987
- id: z.ZodString;
2988
- }, z.core.$strict>;
2989
- declare const deploymentResultSchema: z.ZodObject<{
2990
- id: z.ZodString;
2991
- baseRevision: z.ZodNumber;
2992
- releases: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2993
- quest: z.ZodString;
2994
- runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
2995
- title: z.ZodString;
2996
- presentation: z.ZodDefault<z.ZodObject<{
2997
- quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
2998
- id: z.ZodString;
2999
- prompt: z.ZodString;
3000
- choices: z.ZodArray<z.ZodObject<{
3001
- id: z.ZodString;
3002
- label: z.ZodString;
3003
- }, z.core.$strict>>;
3004
- }, z.core.$strict>>>;
3005
- instructions: z.ZodOptional<z.ZodString>;
3006
- video: z.ZodOptional<z.ZodObject<{
3007
- url: z.ZodString;
3008
- poster: z.ZodOptional<z.ZodString>;
3009
- captions: z.ZodOptional<z.ZodObject<{
3010
- url: z.ZodString;
3011
- language: z.ZodString;
3012
- label: z.ZodString;
3013
- }, z.core.$strict>>;
3014
- }, z.core.$strict>>;
3015
- }, z.core.$strict>>;
3016
- fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3017
- kind: z.ZodLiteral<"quiz">;
3018
- default: z.ZodArray<z.ZodObject<{
3019
- id: z.ZodString;
3020
- prompt: z.ZodString;
3021
- choices: z.ZodArray<z.ZodObject<{
3022
- id: z.ZodString;
3023
- label: z.ZodString;
3024
- }, z.core.$strict>>;
3025
- correct: z.ZodString;
3026
- }, z.core.$strict>>;
3027
- label: z.ZodString;
3028
- description: z.ZodOptional<z.ZodString>;
3029
- }, z.core.$strict>, z.ZodObject<{
3365
+ referrals: z.ZodDefault<z.ZodArray<z.ZodObject<{
3366
+ version: z.ZodString;
3367
+ definition: z.ZodObject<{
3368
+ id: z.ZodString;
3369
+ title: z.ZodString;
3370
+ enabled: z.ZodDefault<z.ZodBoolean>;
3371
+ qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
3372
+ kind: z.ZodLiteral<"signup">;
3373
+ }, z.core.$strict>, z.ZodObject<{
3374
+ kind: z.ZodLiteral<"quest">;
3375
+ quest: z.ZodString;
3376
+ }, z.core.$strict>, z.ZodObject<{
3377
+ kind: z.ZodLiteral<"external">;
3378
+ }, z.core.$strict>], "kind">;
3379
+ inviterGroup: z.ZodOptional<z.ZodString>;
3380
+ rewards: z.ZodDefault<z.ZodObject<{
3381
+ inviter: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3382
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
3383
+ balance: z.ZodString;
3384
+ amount: z.ZodNumber;
3385
+ }, z.core.$strict>, z.ZodObject<{
3386
+ kind: z.ZodLiteral<"tier">;
3387
+ reward: z.ZodObject<{
3388
+ id: z.ZodString;
3389
+ title: z.ZodString;
3390
+ tiers: z.ZodArray<z.ZodObject<{
3391
+ id: z.ZodString;
3392
+ title: z.ZodString;
3393
+ }, z.core.$strict>>;
3394
+ inventory: z.ZodObject<{
3395
+ kind: z.ZodLiteral<"untracked">;
3396
+ }, z.core.$strict>;
3397
+ fulfillment: z.ZodObject<{
3398
+ kind: z.ZodLiteral<"staff-handover">;
3399
+ }, z.core.$strict>;
3400
+ }, z.core.$strict>;
3401
+ tier: z.ZodString;
3402
+ }, z.core.$strict>]>>>;
3403
+ invitee: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3404
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
3405
+ balance: z.ZodString;
3406
+ amount: z.ZodNumber;
3407
+ }, z.core.$strict>, z.ZodObject<{
3408
+ kind: z.ZodLiteral<"tier">;
3409
+ reward: z.ZodObject<{
3410
+ id: z.ZodString;
3411
+ title: z.ZodString;
3412
+ tiers: z.ZodArray<z.ZodObject<{
3413
+ id: z.ZodString;
3414
+ title: z.ZodString;
3415
+ }, z.core.$strict>>;
3416
+ inventory: z.ZodObject<{
3417
+ kind: z.ZodLiteral<"untracked">;
3418
+ }, z.core.$strict>;
3419
+ fulfillment: z.ZodObject<{
3420
+ kind: z.ZodLiteral<"staff-handover">;
3421
+ }, z.core.$strict>;
3422
+ }, z.core.$strict>;
3423
+ tier: z.ZodString;
3424
+ }, z.core.$strict>]>>>;
3425
+ }, z.core.$strict>>;
3426
+ milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
3427
+ id: z.ZodString;
3428
+ count: z.ZodNumber;
3429
+ rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3430
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
3431
+ balance: z.ZodString;
3432
+ amount: z.ZodNumber;
3433
+ }, z.core.$strict>, z.ZodObject<{
3434
+ kind: z.ZodLiteral<"tier">;
3435
+ reward: z.ZodObject<{
3436
+ id: z.ZodString;
3437
+ title: z.ZodString;
3438
+ tiers: z.ZodArray<z.ZodObject<{
3439
+ id: z.ZodString;
3440
+ title: z.ZodString;
3441
+ }, z.core.$strict>>;
3442
+ inventory: z.ZodObject<{
3443
+ kind: z.ZodLiteral<"untracked">;
3444
+ }, z.core.$strict>;
3445
+ fulfillment: z.ZodObject<{
3446
+ kind: z.ZodLiteral<"staff-handover">;
3447
+ }, z.core.$strict>;
3448
+ }, z.core.$strict>;
3449
+ tier: z.ZodString;
3450
+ }, z.core.$strict>]>>;
3451
+ }, z.core.$strict>>>;
3452
+ bonuses: z.ZodDefault<z.ZodArray<z.ZodObject<{
3453
+ id: z.ZodString;
3454
+ balance: z.ZodString;
3455
+ basisPoints: z.ZodNumber;
3456
+ quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
3457
+ external: z.ZodDefault<z.ZodBoolean>;
3458
+ durationDays: z.ZodOptional<z.ZodNumber>;
3459
+ maxPoints: z.ZodOptional<z.ZodNumber>;
3460
+ }, z.core.$strict>>>;
3461
+ }, z.core.$strict>;
3462
+ publishedAt: z.ZodNumber;
3463
+ actor: z.ZodNullable<z.ZodString>;
3464
+ }, z.core.$strip>>>;
3465
+ leaderboards: z.ZodDefault<z.ZodArray<z.ZodObject<{
3466
+ published: z.ZodObject<{
3467
+ version: z.ZodString;
3468
+ definition: z.ZodObject<{
3469
+ id: z.ZodString;
3470
+ title: z.ZodString;
3471
+ balance: z.ZodString;
3472
+ score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
3473
+ kind: z.ZodLiteral<"balance">;
3474
+ }, z.core.$strict>, z.ZodObject<{
3475
+ window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
3476
+ kind: z.ZodLiteral<"all-time">;
3477
+ }, z.core.$strict>, z.ZodObject<{
3478
+ kind: z.ZodLiteral<"fixed">;
3479
+ start: z.ZodNumber;
3480
+ end: z.ZodNumber;
3481
+ }, z.core.$strict>, z.ZodObject<{
3482
+ kind: z.ZodLiteral<"rolling">;
3483
+ days: z.ZodNumber;
3484
+ }, z.core.$strict>, z.ZodObject<{
3485
+ kind: z.ZodLiteral<"calendar">;
3486
+ period: z.ZodEnum<{
3487
+ day: "day";
3488
+ week: "week";
3489
+ month: "month";
3490
+ }>;
3491
+ timeZone: z.ZodString;
3492
+ }, z.core.$strict>], "kind">>;
3493
+ quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
3494
+ kind: z.ZodLiteral<"earned">;
3495
+ }, z.core.$strict>, z.ZodObject<{
3496
+ kind: z.ZodLiteral<"net">;
3497
+ window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
3498
+ kind: z.ZodLiteral<"all-time">;
3499
+ }, z.core.$strict>, z.ZodObject<{
3500
+ kind: z.ZodLiteral<"fixed">;
3501
+ start: z.ZodNumber;
3502
+ end: z.ZodNumber;
3503
+ }, z.core.$strict>, z.ZodObject<{
3504
+ kind: z.ZodLiteral<"rolling">;
3505
+ days: z.ZodNumber;
3506
+ }, z.core.$strict>, z.ZodObject<{
3507
+ kind: z.ZodLiteral<"calendar">;
3508
+ period: z.ZodEnum<{
3509
+ day: "day";
3510
+ week: "week";
3511
+ month: "month";
3512
+ }>;
3513
+ timeZone: z.ZodString;
3514
+ }, z.core.$strict>], "kind">>;
3515
+ }, z.core.$strict>], "kind">>;
3516
+ access: z.ZodDefault<z.ZodEnum<{
3517
+ participants: "participants";
3518
+ public: "public";
3519
+ }>>;
3520
+ group: z.ZodOptional<z.ZodString>;
3521
+ }, z.core.$strict>;
3522
+ publishedAt: z.ZodNumber;
3523
+ actor: z.ZodNullable<z.ZodString>;
3524
+ }, z.core.$strip>;
3525
+ before: z.ZodNullable<z.ZodObject<{
3526
+ leaderboard: z.ZodString;
3527
+ title: z.ZodString;
3528
+ version: z.ZodString;
3529
+ calculation: z.ZodEnum<{
3530
+ balance: "balance";
3531
+ earned: "earned";
3532
+ net: "net";
3533
+ }>;
3534
+ period: z.ZodObject<{
3535
+ start: z.ZodNullable<z.ZodNumber>;
3536
+ end: z.ZodNullable<z.ZodNumber>;
3537
+ }, z.core.$strip>;
3538
+ calculatedAt: z.ZodNumber;
3539
+ lastEntryAt: z.ZodNullable<z.ZodNumber>;
3540
+ total: z.ZodNumber;
3541
+ items: z.ZodArray<z.ZodObject<{
3542
+ participant: z.ZodString;
3543
+ member: z.ZodOptional<z.ZodString>;
3544
+ name: z.ZodString;
3545
+ score: z.ZodNumber;
3546
+ rank: z.ZodNumber;
3547
+ }, z.core.$strip>>;
3548
+ me: z.ZodNullable<z.ZodObject<{
3549
+ participant: z.ZodString;
3550
+ member: z.ZodOptional<z.ZodString>;
3551
+ name: z.ZodString;
3552
+ score: z.ZodNumber;
3553
+ rank: z.ZodNumber;
3554
+ }, z.core.$strip>>;
3555
+ nearby: z.ZodArray<z.ZodObject<{
3556
+ participant: z.ZodString;
3557
+ member: z.ZodOptional<z.ZodString>;
3558
+ name: z.ZodString;
3559
+ score: z.ZodNumber;
3560
+ rank: z.ZodNumber;
3561
+ }, z.core.$strip>>;
3562
+ nextCursor: z.ZodNullable<z.ZodString>;
3563
+ }, z.core.$strip>>;
3564
+ after: z.ZodObject<{
3565
+ leaderboard: z.ZodString;
3566
+ title: z.ZodString;
3567
+ version: z.ZodString;
3568
+ calculation: z.ZodEnum<{
3569
+ balance: "balance";
3570
+ earned: "earned";
3571
+ net: "net";
3572
+ }>;
3573
+ period: z.ZodObject<{
3574
+ start: z.ZodNullable<z.ZodNumber>;
3575
+ end: z.ZodNullable<z.ZodNumber>;
3576
+ }, z.core.$strip>;
3577
+ calculatedAt: z.ZodNumber;
3578
+ lastEntryAt: z.ZodNullable<z.ZodNumber>;
3579
+ total: z.ZodNumber;
3580
+ items: z.ZodArray<z.ZodObject<{
3581
+ participant: z.ZodString;
3582
+ member: z.ZodOptional<z.ZodString>;
3583
+ name: z.ZodString;
3584
+ score: z.ZodNumber;
3585
+ rank: z.ZodNumber;
3586
+ }, z.core.$strip>>;
3587
+ me: z.ZodNullable<z.ZodObject<{
3588
+ participant: z.ZodString;
3589
+ member: z.ZodOptional<z.ZodString>;
3590
+ name: z.ZodString;
3591
+ score: z.ZodNumber;
3592
+ rank: z.ZodNumber;
3593
+ }, z.core.$strip>>;
3594
+ nearby: z.ZodArray<z.ZodObject<{
3595
+ participant: z.ZodString;
3596
+ member: z.ZodOptional<z.ZodString>;
3597
+ name: z.ZodString;
3598
+ score: z.ZodNumber;
3599
+ rank: z.ZodNumber;
3600
+ }, z.core.$strip>>;
3601
+ nextCursor: z.ZodNullable<z.ZodString>;
3602
+ }, z.core.$strip>;
3603
+ }, z.core.$strip>>>;
3604
+ }, z.core.$strip>;
3605
+ declare const publishDeploymentSchema: z.ZodObject<{
3606
+ id: z.ZodString;
3607
+ }, z.core.$strict>;
3608
+ declare const deploymentResultSchema: z.ZodObject<{
3609
+ id: z.ZodString;
3610
+ baseRevision: z.ZodNumber;
3611
+ releases: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3612
+ quest: z.ZodString;
3613
+ runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
3614
+ title: z.ZodString;
3615
+ presentation: z.ZodDefault<z.ZodObject<{
3616
+ quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
3617
+ id: z.ZodString;
3618
+ prompt: z.ZodString;
3619
+ choices: z.ZodArray<z.ZodObject<{
3620
+ id: z.ZodString;
3621
+ label: z.ZodString;
3622
+ }, z.core.$strict>>;
3623
+ }, z.core.$strict>>>;
3624
+ instructions: z.ZodOptional<z.ZodString>;
3625
+ video: z.ZodOptional<z.ZodObject<{
3626
+ url: z.ZodString;
3627
+ poster: z.ZodOptional<z.ZodString>;
3628
+ captions: z.ZodOptional<z.ZodObject<{
3629
+ url: z.ZodString;
3630
+ language: z.ZodString;
3631
+ label: z.ZodString;
3632
+ }, z.core.$strict>>;
3633
+ }, z.core.$strict>>;
3634
+ }, z.core.$strict>>;
3635
+ integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
3636
+ discord: "discord";
3637
+ }>>>;
3638
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3639
+ kind: z.ZodLiteral<"quiz">;
3640
+ default: z.ZodArray<z.ZodObject<{
3641
+ id: z.ZodString;
3642
+ prompt: z.ZodString;
3643
+ choices: z.ZodArray<z.ZodObject<{
3644
+ id: z.ZodString;
3645
+ label: z.ZodString;
3646
+ }, z.core.$strict>>;
3647
+ correct: z.ZodString;
3648
+ }, z.core.$strict>>;
3649
+ label: z.ZodString;
3650
+ description: z.ZodOptional<z.ZodString>;
3651
+ }, z.core.$strict>, z.ZodObject<{
3030
3652
  kind: z.ZodLiteral<"text">;
3031
3653
  default: z.ZodString;
3032
3654
  minLength: z.ZodNumber;
@@ -3207,6 +3829,7 @@ declare const deploymentResultSchema: z.ZodObject<{
3207
3829
  } | undefined;
3208
3830
  } | undefined;
3209
3831
  };
3832
+ integrations: "discord"[];
3210
3833
  fields: Record<string, {
3211
3834
  kind: "quiz";
3212
3835
  default: {
@@ -3383,6 +4006,9 @@ declare const deploymentResultSchema: z.ZodObject<{
3383
4006
  }, z.core.$strict>>;
3384
4007
  }, z.core.$strict>>;
3385
4008
  }, z.core.$strict>>;
4009
+ integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
4010
+ discord: "discord";
4011
+ }>>>;
3386
4012
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3387
4013
  kind: z.ZodLiteral<"quiz">;
3388
4014
  default: z.ZodArray<z.ZodObject<{
@@ -3498,6 +4124,245 @@ declare const deploymentResultSchema: z.ZodObject<{
3498
4124
  automatic: "automatic";
3499
4125
  claim: "claim";
3500
4126
  }>>;
4127
+ referrals: z.ZodDefault<z.ZodArray<z.ZodObject<{
4128
+ version: z.ZodString;
4129
+ definition: z.ZodObject<{
4130
+ id: z.ZodString;
4131
+ title: z.ZodString;
4132
+ enabled: z.ZodDefault<z.ZodBoolean>;
4133
+ qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
4134
+ kind: z.ZodLiteral<"signup">;
4135
+ }, z.core.$strict>, z.ZodObject<{
4136
+ kind: z.ZodLiteral<"quest">;
4137
+ quest: z.ZodString;
4138
+ }, z.core.$strict>, z.ZodObject<{
4139
+ kind: z.ZodLiteral<"external">;
4140
+ }, z.core.$strict>], "kind">;
4141
+ inviterGroup: z.ZodOptional<z.ZodString>;
4142
+ rewards: z.ZodDefault<z.ZodObject<{
4143
+ inviter: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
4144
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
4145
+ balance: z.ZodString;
4146
+ amount: z.ZodNumber;
4147
+ }, z.core.$strict>, z.ZodObject<{
4148
+ kind: z.ZodLiteral<"tier">;
4149
+ reward: z.ZodObject<{
4150
+ id: z.ZodString;
4151
+ title: z.ZodString;
4152
+ tiers: z.ZodArray<z.ZodObject<{
4153
+ id: z.ZodString;
4154
+ title: z.ZodString;
4155
+ }, z.core.$strict>>;
4156
+ inventory: z.ZodObject<{
4157
+ kind: z.ZodLiteral<"untracked">;
4158
+ }, z.core.$strict>;
4159
+ fulfillment: z.ZodObject<{
4160
+ kind: z.ZodLiteral<"staff-handover">;
4161
+ }, z.core.$strict>;
4162
+ }, z.core.$strict>;
4163
+ tier: z.ZodString;
4164
+ }, z.core.$strict>]>>>;
4165
+ invitee: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
4166
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
4167
+ balance: z.ZodString;
4168
+ amount: z.ZodNumber;
4169
+ }, z.core.$strict>, z.ZodObject<{
4170
+ kind: z.ZodLiteral<"tier">;
4171
+ reward: z.ZodObject<{
4172
+ id: z.ZodString;
4173
+ title: z.ZodString;
4174
+ tiers: z.ZodArray<z.ZodObject<{
4175
+ id: z.ZodString;
4176
+ title: z.ZodString;
4177
+ }, z.core.$strict>>;
4178
+ inventory: z.ZodObject<{
4179
+ kind: z.ZodLiteral<"untracked">;
4180
+ }, z.core.$strict>;
4181
+ fulfillment: z.ZodObject<{
4182
+ kind: z.ZodLiteral<"staff-handover">;
4183
+ }, z.core.$strict>;
4184
+ }, z.core.$strict>;
4185
+ tier: z.ZodString;
4186
+ }, z.core.$strict>]>>>;
4187
+ }, z.core.$strict>>;
4188
+ milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
4189
+ id: z.ZodString;
4190
+ count: z.ZodNumber;
4191
+ rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
4192
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
4193
+ balance: z.ZodString;
4194
+ amount: z.ZodNumber;
4195
+ }, z.core.$strict>, z.ZodObject<{
4196
+ kind: z.ZodLiteral<"tier">;
4197
+ reward: z.ZodObject<{
4198
+ id: z.ZodString;
4199
+ title: z.ZodString;
4200
+ tiers: z.ZodArray<z.ZodObject<{
4201
+ id: z.ZodString;
4202
+ title: z.ZodString;
4203
+ }, z.core.$strict>>;
4204
+ inventory: z.ZodObject<{
4205
+ kind: z.ZodLiteral<"untracked">;
4206
+ }, z.core.$strict>;
4207
+ fulfillment: z.ZodObject<{
4208
+ kind: z.ZodLiteral<"staff-handover">;
4209
+ }, z.core.$strict>;
4210
+ }, z.core.$strict>;
4211
+ tier: z.ZodString;
4212
+ }, z.core.$strict>]>>;
4213
+ }, z.core.$strict>>>;
4214
+ bonuses: z.ZodDefault<z.ZodArray<z.ZodObject<{
4215
+ id: z.ZodString;
4216
+ balance: z.ZodString;
4217
+ basisPoints: z.ZodNumber;
4218
+ quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
4219
+ external: z.ZodDefault<z.ZodBoolean>;
4220
+ durationDays: z.ZodOptional<z.ZodNumber>;
4221
+ maxPoints: z.ZodOptional<z.ZodNumber>;
4222
+ }, z.core.$strict>>>;
4223
+ }, z.core.$strict>;
4224
+ publishedAt: z.ZodNumber;
4225
+ actor: z.ZodNullable<z.ZodString>;
4226
+ }, z.core.$strip>>>;
4227
+ leaderboards: z.ZodDefault<z.ZodArray<z.ZodObject<{
4228
+ published: z.ZodObject<{
4229
+ version: z.ZodString;
4230
+ definition: z.ZodObject<{
4231
+ id: z.ZodString;
4232
+ title: z.ZodString;
4233
+ balance: z.ZodString;
4234
+ score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
4235
+ kind: z.ZodLiteral<"balance">;
4236
+ }, z.core.$strict>, z.ZodObject<{
4237
+ window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
4238
+ kind: z.ZodLiteral<"all-time">;
4239
+ }, z.core.$strict>, z.ZodObject<{
4240
+ kind: z.ZodLiteral<"fixed">;
4241
+ start: z.ZodNumber;
4242
+ end: z.ZodNumber;
4243
+ }, z.core.$strict>, z.ZodObject<{
4244
+ kind: z.ZodLiteral<"rolling">;
4245
+ days: z.ZodNumber;
4246
+ }, z.core.$strict>, z.ZodObject<{
4247
+ kind: z.ZodLiteral<"calendar">;
4248
+ period: z.ZodEnum<{
4249
+ day: "day";
4250
+ week: "week";
4251
+ month: "month";
4252
+ }>;
4253
+ timeZone: z.ZodString;
4254
+ }, z.core.$strict>], "kind">>;
4255
+ quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
4256
+ kind: z.ZodLiteral<"earned">;
4257
+ }, z.core.$strict>, z.ZodObject<{
4258
+ kind: z.ZodLiteral<"net">;
4259
+ window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
4260
+ kind: z.ZodLiteral<"all-time">;
4261
+ }, z.core.$strict>, z.ZodObject<{
4262
+ kind: z.ZodLiteral<"fixed">;
4263
+ start: z.ZodNumber;
4264
+ end: z.ZodNumber;
4265
+ }, z.core.$strict>, z.ZodObject<{
4266
+ kind: z.ZodLiteral<"rolling">;
4267
+ days: z.ZodNumber;
4268
+ }, z.core.$strict>, z.ZodObject<{
4269
+ kind: z.ZodLiteral<"calendar">;
4270
+ period: z.ZodEnum<{
4271
+ day: "day";
4272
+ week: "week";
4273
+ month: "month";
4274
+ }>;
4275
+ timeZone: z.ZodString;
4276
+ }, z.core.$strict>], "kind">>;
4277
+ }, z.core.$strict>], "kind">>;
4278
+ access: z.ZodDefault<z.ZodEnum<{
4279
+ participants: "participants";
4280
+ public: "public";
4281
+ }>>;
4282
+ group: z.ZodOptional<z.ZodString>;
4283
+ }, z.core.$strict>;
4284
+ publishedAt: z.ZodNumber;
4285
+ actor: z.ZodNullable<z.ZodString>;
4286
+ }, z.core.$strip>;
4287
+ before: z.ZodNullable<z.ZodObject<{
4288
+ leaderboard: z.ZodString;
4289
+ title: z.ZodString;
4290
+ version: z.ZodString;
4291
+ calculation: z.ZodEnum<{
4292
+ balance: "balance";
4293
+ earned: "earned";
4294
+ net: "net";
4295
+ }>;
4296
+ period: z.ZodObject<{
4297
+ start: z.ZodNullable<z.ZodNumber>;
4298
+ end: z.ZodNullable<z.ZodNumber>;
4299
+ }, z.core.$strip>;
4300
+ calculatedAt: z.ZodNumber;
4301
+ lastEntryAt: z.ZodNullable<z.ZodNumber>;
4302
+ total: z.ZodNumber;
4303
+ items: z.ZodArray<z.ZodObject<{
4304
+ participant: z.ZodString;
4305
+ member: z.ZodOptional<z.ZodString>;
4306
+ name: z.ZodString;
4307
+ score: z.ZodNumber;
4308
+ rank: z.ZodNumber;
4309
+ }, z.core.$strip>>;
4310
+ me: z.ZodNullable<z.ZodObject<{
4311
+ participant: z.ZodString;
4312
+ member: z.ZodOptional<z.ZodString>;
4313
+ name: z.ZodString;
4314
+ score: z.ZodNumber;
4315
+ rank: z.ZodNumber;
4316
+ }, z.core.$strip>>;
4317
+ nearby: z.ZodArray<z.ZodObject<{
4318
+ participant: z.ZodString;
4319
+ member: z.ZodOptional<z.ZodString>;
4320
+ name: z.ZodString;
4321
+ score: z.ZodNumber;
4322
+ rank: z.ZodNumber;
4323
+ }, z.core.$strip>>;
4324
+ nextCursor: z.ZodNullable<z.ZodString>;
4325
+ }, z.core.$strip>>;
4326
+ after: z.ZodObject<{
4327
+ leaderboard: z.ZodString;
4328
+ title: z.ZodString;
4329
+ version: z.ZodString;
4330
+ calculation: z.ZodEnum<{
4331
+ balance: "balance";
4332
+ earned: "earned";
4333
+ net: "net";
4334
+ }>;
4335
+ period: z.ZodObject<{
4336
+ start: z.ZodNullable<z.ZodNumber>;
4337
+ end: z.ZodNullable<z.ZodNumber>;
4338
+ }, z.core.$strip>;
4339
+ calculatedAt: z.ZodNumber;
4340
+ lastEntryAt: z.ZodNullable<z.ZodNumber>;
4341
+ total: z.ZodNumber;
4342
+ items: z.ZodArray<z.ZodObject<{
4343
+ participant: z.ZodString;
4344
+ member: z.ZodOptional<z.ZodString>;
4345
+ name: z.ZodString;
4346
+ score: z.ZodNumber;
4347
+ rank: z.ZodNumber;
4348
+ }, z.core.$strip>>;
4349
+ me: z.ZodNullable<z.ZodObject<{
4350
+ participant: z.ZodString;
4351
+ member: z.ZodOptional<z.ZodString>;
4352
+ name: z.ZodString;
4353
+ score: z.ZodNumber;
4354
+ rank: z.ZodNumber;
4355
+ }, z.core.$strip>>;
4356
+ nearby: z.ZodArray<z.ZodObject<{
4357
+ participant: z.ZodString;
4358
+ member: z.ZodOptional<z.ZodString>;
4359
+ name: z.ZodString;
4360
+ score: z.ZodNumber;
4361
+ rank: z.ZodNumber;
4362
+ }, z.core.$strip>>;
4363
+ nextCursor: z.ZodNullable<z.ZodString>;
4364
+ }, z.core.$strip>;
4365
+ }, z.core.$strip>>>;
3501
4366
  revision: z.ZodNumber;
3502
4367
  }, z.core.$strip>;
3503
4368
  type DeploymentPreview = z.infer<typeof deploymentPreviewSchema>;
@@ -3544,6 +4409,313 @@ declare function createRelayClient(options: {
3544
4409
  project?: string;
3545
4410
  environment?: "test" | "live";
3546
4411
  }): {
4412
+ referrals: {
4413
+ list: () => Promise<{
4414
+ id: string;
4415
+ title: string;
4416
+ enabled: boolean;
4417
+ qualification: {
4418
+ kind: "signup";
4419
+ } | {
4420
+ kind: "quest";
4421
+ quest: string;
4422
+ } | {
4423
+ kind: "external";
4424
+ };
4425
+ rewards: {
4426
+ inviter: ({
4427
+ kind: "tier";
4428
+ reward: {
4429
+ id: string;
4430
+ title: string;
4431
+ tiers: {
4432
+ id: string;
4433
+ title: string;
4434
+ }[];
4435
+ inventory: {
4436
+ kind: "untracked";
4437
+ };
4438
+ fulfillment: {
4439
+ kind: "staff-handover";
4440
+ };
4441
+ };
4442
+ tier: string;
4443
+ } | {
4444
+ kind: "points";
4445
+ balance: string;
4446
+ amount: number;
4447
+ })[];
4448
+ invitee: ({
4449
+ kind: "tier";
4450
+ reward: {
4451
+ id: string;
4452
+ title: string;
4453
+ tiers: {
4454
+ id: string;
4455
+ title: string;
4456
+ }[];
4457
+ inventory: {
4458
+ kind: "untracked";
4459
+ };
4460
+ fulfillment: {
4461
+ kind: "staff-handover";
4462
+ };
4463
+ };
4464
+ tier: string;
4465
+ } | {
4466
+ kind: "points";
4467
+ balance: string;
4468
+ amount: number;
4469
+ })[];
4470
+ };
4471
+ milestones: {
4472
+ id: string;
4473
+ count: number;
4474
+ rewards: ({
4475
+ kind: "tier";
4476
+ reward: {
4477
+ id: string;
4478
+ title: string;
4479
+ tiers: {
4480
+ id: string;
4481
+ title: string;
4482
+ }[];
4483
+ inventory: {
4484
+ kind: "untracked";
4485
+ };
4486
+ fulfillment: {
4487
+ kind: "staff-handover";
4488
+ };
4489
+ };
4490
+ tier: string;
4491
+ } | {
4492
+ kind: "points";
4493
+ balance: string;
4494
+ amount: number;
4495
+ })[];
4496
+ }[];
4497
+ bonuses: {
4498
+ id: string;
4499
+ balance: string;
4500
+ basisPoints: number;
4501
+ external: boolean;
4502
+ quests?: string[] | undefined;
4503
+ durationDays?: number | undefined;
4504
+ maxPoints?: number | undefined;
4505
+ }[];
4506
+ inviterGroup?: string | undefined;
4507
+ }[]>;
4508
+ summary: () => Promise<{
4509
+ code: string;
4510
+ attributed: number;
4511
+ programs: {
4512
+ definition: {
4513
+ id: string;
4514
+ title: string;
4515
+ enabled: boolean;
4516
+ qualification: {
4517
+ kind: "signup";
4518
+ } | {
4519
+ kind: "quest";
4520
+ quest: string;
4521
+ } | {
4522
+ kind: "external";
4523
+ };
4524
+ rewards: {
4525
+ inviter: ({
4526
+ kind: "tier";
4527
+ reward: {
4528
+ id: string;
4529
+ title: string;
4530
+ tiers: {
4531
+ id: string;
4532
+ title: string;
4533
+ }[];
4534
+ inventory: {
4535
+ kind: "untracked";
4536
+ };
4537
+ fulfillment: {
4538
+ kind: "staff-handover";
4539
+ };
4540
+ };
4541
+ tier: string;
4542
+ } | {
4543
+ kind: "points";
4544
+ balance: string;
4545
+ amount: number;
4546
+ })[];
4547
+ invitee: ({
4548
+ kind: "tier";
4549
+ reward: {
4550
+ id: string;
4551
+ title: string;
4552
+ tiers: {
4553
+ id: string;
4554
+ title: string;
4555
+ }[];
4556
+ inventory: {
4557
+ kind: "untracked";
4558
+ };
4559
+ fulfillment: {
4560
+ kind: "staff-handover";
4561
+ };
4562
+ };
4563
+ tier: string;
4564
+ } | {
4565
+ kind: "points";
4566
+ balance: string;
4567
+ amount: number;
4568
+ })[];
4569
+ };
4570
+ milestones: {
4571
+ id: string;
4572
+ count: number;
4573
+ rewards: ({
4574
+ kind: "tier";
4575
+ reward: {
4576
+ id: string;
4577
+ title: string;
4578
+ tiers: {
4579
+ id: string;
4580
+ title: string;
4581
+ }[];
4582
+ inventory: {
4583
+ kind: "untracked";
4584
+ };
4585
+ fulfillment: {
4586
+ kind: "staff-handover";
4587
+ };
4588
+ };
4589
+ tier: string;
4590
+ } | {
4591
+ kind: "points";
4592
+ balance: string;
4593
+ amount: number;
4594
+ })[];
4595
+ }[];
4596
+ bonuses: {
4597
+ id: string;
4598
+ balance: string;
4599
+ basisPoints: number;
4600
+ external: boolean;
4601
+ quests?: string[] | undefined;
4602
+ durationDays?: number | undefined;
4603
+ maxPoints?: number | undefined;
4604
+ }[];
4605
+ inviterGroup?: string | undefined;
4606
+ };
4607
+ qualified: number;
4608
+ milestones: {
4609
+ id: string;
4610
+ count: number;
4611
+ reached: boolean;
4612
+ }[];
4613
+ }[];
4614
+ accounts: {
4615
+ id: string;
4616
+ program: string;
4617
+ kind: "fixed" | "bonus" | "milestone";
4618
+ balance: string;
4619
+ earned: number;
4620
+ settled: number;
4621
+ outstanding: number;
4622
+ }[];
4623
+ }>;
4624
+ history: (before?: number) => Promise<{
4625
+ items: {
4626
+ id: number;
4627
+ program: string;
4628
+ balance: string;
4629
+ amount: number;
4630
+ at: number;
4631
+ reason: string;
4632
+ }[];
4633
+ next: number | null;
4634
+ }>;
4635
+ accept: (input: z.input<typeof referralAcceptSchema>) => Promise<{
4636
+ ok: true;
4637
+ }>;
4638
+ };
4639
+ leaderboards: {
4640
+ list: () => Promise<{
4641
+ id: string;
4642
+ title: string;
4643
+ balance: string;
4644
+ score: {
4645
+ kind: "balance";
4646
+ } | {
4647
+ window: {
4648
+ kind: "fixed";
4649
+ start: number;
4650
+ end: number;
4651
+ } | {
4652
+ kind: "all-time";
4653
+ } | {
4654
+ kind: "rolling";
4655
+ days: number;
4656
+ } | {
4657
+ kind: "calendar";
4658
+ period: "day" | "week" | "month";
4659
+ timeZone: string;
4660
+ };
4661
+ kind: "earned";
4662
+ quests?: string[] | undefined;
4663
+ } | {
4664
+ kind: "net";
4665
+ window: {
4666
+ kind: "fixed";
4667
+ start: number;
4668
+ end: number;
4669
+ } | {
4670
+ kind: "all-time";
4671
+ } | {
4672
+ kind: "rolling";
4673
+ days: number;
4674
+ } | {
4675
+ kind: "calendar";
4676
+ period: "day" | "week" | "month";
4677
+ timeZone: string;
4678
+ };
4679
+ };
4680
+ access: "participants" | "public";
4681
+ group?: string | undefined;
4682
+ }[]>;
4683
+ standings: (board: string, options?: LeaderboardQuery) => Promise<{
4684
+ leaderboard: string;
4685
+ title: string;
4686
+ version: string;
4687
+ calculation: "balance" | "earned" | "net";
4688
+ period: {
4689
+ start: number | null;
4690
+ end: number | null;
4691
+ };
4692
+ calculatedAt: number;
4693
+ lastEntryAt: number | null;
4694
+ total: number;
4695
+ items: {
4696
+ participant: string;
4697
+ name: string;
4698
+ score: number;
4699
+ rank: number;
4700
+ member?: string | undefined;
4701
+ }[];
4702
+ me: {
4703
+ participant: string;
4704
+ name: string;
4705
+ score: number;
4706
+ rank: number;
4707
+ member?: string | undefined;
4708
+ } | null;
4709
+ nearby: {
4710
+ participant: string;
4711
+ name: string;
4712
+ score: number;
4713
+ rank: number;
4714
+ member?: string | undefined;
4715
+ }[];
4716
+ nextCursor: string | null;
4717
+ }>;
4718
+ };
3547
4719
  quests: {
3548
4720
  get: (id: string) => Promise<{
3549
4721
  quest: string;
@@ -3568,6 +4740,7 @@ declare function createRelayClient(options: {
3568
4740
  } | undefined;
3569
4741
  } | undefined;
3570
4742
  };
4743
+ connections: ("google" | "apple" | "x" | "discord")[];
3571
4744
  trigger: {
3572
4745
  kind: "manual";
3573
4746
  input: "quiz" | "photo" | "none";
@@ -3721,6 +4894,7 @@ declare function createRelayClient(options: {
3721
4894
  } | undefined;
3722
4895
  } | undefined;
3723
4896
  };
4897
+ connections: ("google" | "apple" | "x" | "discord")[];
3724
4898
  trigger: {
3725
4899
  kind: "manual";
3726
4900
  input: "quiz" | "photo" | "none";
@@ -3833,6 +5007,7 @@ declare function createRelayClient(options: {
3833
5007
  } | undefined;
3834
5008
  } | undefined;
3835
5009
  };
5010
+ connections: ("google" | "apple" | "x" | "discord")[];
3836
5011
  trigger: {
3837
5012
  kind: "manual";
3838
5013
  input: "quiz" | "photo" | "none";
@@ -3947,6 +5122,7 @@ declare function createRelayClient(options: {
3947
5122
  } | undefined;
3948
5123
  } | undefined;
3949
5124
  };
5125
+ connections: ("google" | "apple" | "x" | "discord")[];
3950
5126
  trigger: {
3951
5127
  kind: "manual";
3952
5128
  input: "quiz" | "photo" | "none";
@@ -4070,7 +5246,7 @@ declare function createRelayClient(options: {
4070
5246
  email: boolean;
4071
5247
  demo: boolean;
4072
5248
  }>;
4073
- start: (provider: "google" | "apple" | "x" | "discord", mode: "sign-in" | "connect") => Promise<{
5249
+ start: (provider: AuthProvider, mode: "sign-in" | "connect") => Promise<{
4074
5250
  url: string;
4075
5251
  }>;
4076
5252
  emailStart: (email: string) => Promise<{
@@ -4093,6 +5269,16 @@ declare function createRelayClient(options: {
4093
5269
  };
4094
5270
  expiresAt: number;
4095
5271
  }>;
5272
+ accounts: () => Promise<{
5273
+ provider: "google" | "apple" | "x" | "discord";
5274
+ configured: boolean;
5275
+ status: "disconnected" | "connected" | "reconnect";
5276
+ subject: string | null;
5277
+ revision: number;
5278
+ }[]>;
5279
+ disconnect: (provider: AuthProvider) => Promise<{
5280
+ ok: boolean;
5281
+ }>;
4096
5282
  connections: () => Promise<{
4097
5283
  provider: string;
4098
5284
  subject: string;
@@ -4251,6 +5437,7 @@ declare function createRelayClient(options: {
4251
5437
  } | undefined;
4252
5438
  } | undefined;
4253
5439
  };
5440
+ connections: ("google" | "apple" | "x" | "discord")[];
4254
5441
  trigger: {
4255
5442
  kind: "manual";
4256
5443
  input: "quiz" | "photo" | "none";
@@ -4564,6 +5751,7 @@ declare function createRelayClient(options: {
4564
5751
  } | undefined;
4565
5752
  } | undefined;
4566
5753
  };
5754
+ integrations: "discord"[];
4567
5755
  fields: Record<string, {
4568
5756
  kind: "quiz";
4569
5757
  default: {
@@ -4678,6 +5866,7 @@ declare function createRelayClient(options: {
4678
5866
  } | undefined;
4679
5867
  } | undefined;
4680
5868
  };
5869
+ integrations: "discord"[];
4681
5870
  fields: Record<string, {
4682
5871
  kind: "quiz";
4683
5872
  default: {
@@ -4791,6 +5980,7 @@ declare function createRelayClient(options: {
4791
5980
  } | undefined;
4792
5981
  } | undefined;
4793
5982
  };
5983
+ integrations: "discord"[];
4794
5984
  fields: Record<string, {
4795
5985
  kind: "quiz";
4796
5986
  default: {
@@ -5072,6 +6262,7 @@ declare function createRelayClient(options: {
5072
6262
  } | undefined;
5073
6263
  } | undefined;
5074
6264
  };
6265
+ integrations: "discord"[];
5075
6266
  fields: Record<string, {
5076
6267
  kind: "quiz";
5077
6268
  default: {
@@ -5213,6 +6404,7 @@ declare function createRelayClient(options: {
5213
6404
  } | undefined;
5214
6405
  } | undefined;
5215
6406
  };
6407
+ integrations: "discord"[];
5216
6408
  fields: Record<string, {
5217
6409
  kind: "quiz";
5218
6410
  default: {
@@ -5355,6 +6547,7 @@ declare function createRelayClient(options: {
5355
6547
  } | undefined;
5356
6548
  } | undefined;
5357
6549
  };
6550
+ connections: ("google" | "apple" | "x" | "discord")[];
5358
6551
  trigger: {
5359
6552
  kind: "manual";
5360
6553
  input: "quiz" | "photo" | "none";
@@ -5810,4 +7003,4 @@ declare function createRelayClient(options: {
5810
7003
  }>;
5811
7004
  };
5812
7005
 
5813
- export { Attempt, type ClaimSubmission, type CollectionPass, type DeploymentPreview, type ExchangeInput, MemberListOptions, MemberProgress, type PhotoSubmission, type ProgressObservation, type ProgressObserver, PublishedRelease, type QuestActionResult, type QuestCatalog, type QuestController, type QuestDraft, type QuestInstance, type QuestInteraction, QuestUpdatedError, type QuestView, QuizEvidence, type QuizSubmission, RelayError, ReleaseInput, ReviewListOptions, type Session, type SubmissionDraft, type SubmissionStatus, type SubmissionStore, SubmitInput, authScopeSchema, beginHandoverSchema, catalogDeploymentPreviewSchema, catalogDeploymentSchema, collectionBeginSchema, collectionCodeSchema, collectionPassSchema, collectionPreviewSchema, collectionResolveSchema, collectionSlotSchema, collectionViewSchema, createRelayClient, deploymentPreviewSchema, deploymentResultSchema, errorSchema, exchangeResultSchema, exchangeSchema, identityIntegrationInputSchema, identityIntegrationSchema, identityIntegrationSecretSchema, interactionSchema, participantExchangeSchema, principalSchema, projectDeploymentSchema, publishDeploymentSchema, publishQuestDraftSchema, questActions, questCatalogSchema, questCollectionSchema, questConfiguration, questDescriptionSchema, questDraftChangesSchema, questDraftSchema, questExperienceSchema, questInstanceSchema, questInteraction, questPublicationPreviewSchema, questTypeVersionSchema, questViewSchema, reconcileQuestDraft, saveQuestDraftSchema, sessionSchema, walletChallengeInputSchema, walletProofSchema };
7006
+ export { Attempt, AuthProvider, type ClaimSubmission, type CollectionPass, type DeploymentPreview, type ExchangeInput, LeaderboardQuery, MemberListOptions, MemberProgress, type PhotoSubmission, type ProgressObservation, type ProgressObserver, PublishedRelease, type QuestActionResult, type QuestCatalog, type QuestController, type QuestDraft, type QuestInstance, type QuestInteraction, QuestUpdatedError, type QuestView, QuizEvidence, type QuizSubmission, RelayError, ReleaseInput, ReviewListOptions, type Session, type SubmissionDraft, type SubmissionStatus, type SubmissionStore, SubmitInput, authScopeSchema, beginHandoverSchema, catalogDeploymentPreviewSchema, catalogDeploymentSchema, collectionBeginSchema, collectionCodeSchema, collectionPassSchema, collectionPreviewSchema, collectionResolveSchema, collectionSlotSchema, collectionViewSchema, createRelayClient, deploymentPreviewSchema, deploymentResultSchema, errorSchema, exchangeResultSchema, exchangeSchema, identityIntegrationInputSchema, identityIntegrationSchema, identityIntegrationSecretSchema, interactionSchema, participantExchangeSchema, principalSchema, projectCatalogArtifactSchema, projectDeploymentSchema, publishDeploymentSchema, publishQuestDraftSchema, questActions, questCatalogSchema, questCollectionSchema, questConfiguration, questDescriptionSchema, questDraftChangesSchema, questDraftSchema, questExperienceSchema, questInstanceSchema, questInteraction, questPublicationPreviewSchema, questTypeVersionSchema, questViewSchema, reconcileQuestDraft, referralAcceptSchema, saveQuestDraftSchema, sessionSchema, walletChallengeInputSchema, walletProofSchema };