@domino-sdk/relay 0.3.0 → 0.5.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";
@@ -2291,6 +2334,9 @@ type QuestController = (ActiveController & {
2291
2334
  submit(): Promise<QuestActionResult>;
2292
2335
  });
2293
2336
 
2337
+ /** An opaque prefixed resource ID with 131 bits of cryptographic randomness. */
2338
+ declare function resourceId(prefix: string): string;
2339
+
2294
2340
  declare const collectionCodeSchema: z.ZodString;
2295
2341
  declare const collectionPassSchema: z.ZodObject<{
2296
2342
  code: z.ZodString;
@@ -2425,6 +2471,183 @@ declare function questConfiguration(release: PublishedRelease): {
2425
2471
  preserved: string[];
2426
2472
  };
2427
2473
 
2474
+ /** Non-quest resources in the private hosted-build catalog artifact. */
2475
+ declare const projectCatalogArtifactSchema: z.ZodObject<{
2476
+ collections: z.ZodDefault<z.ZodArray<z.ZodObject<{
2477
+ id: z.ZodString;
2478
+ title: z.ZodString;
2479
+ }, z.core.$strict>>>;
2480
+ types: z.ZodDefault<z.ZodArray<z.ZodObject<{
2481
+ code: z.ZodString;
2482
+ provider: z.ZodEnum<{
2483
+ "fixture-pass": "fixture-pass";
2484
+ "fixture-fail": "fixture-fail";
2485
+ "fixture-unclear": "fixture-unclear";
2486
+ "fixture-error": "fixture-error";
2487
+ "workers-ai": "workers-ai";
2488
+ }>;
2489
+ }, z.core.$strip>>>;
2490
+ supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2491
+ quiz: "quiz";
2492
+ photo: "photo";
2493
+ staff: "staff";
2494
+ automatic: "automatic";
2495
+ claim: "claim";
2496
+ }>>>;
2497
+ referrals: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2498
+ id: z.ZodString;
2499
+ title: z.ZodString;
2500
+ enabled: z.ZodDefault<z.ZodBoolean>;
2501
+ qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
2502
+ kind: z.ZodLiteral<"signup">;
2503
+ }, z.core.$strict>, z.ZodObject<{
2504
+ kind: z.ZodLiteral<"quest">;
2505
+ quest: z.ZodString;
2506
+ }, z.core.$strict>, z.ZodObject<{
2507
+ kind: z.ZodLiteral<"external">;
2508
+ }, z.core.$strict>], "kind">;
2509
+ inviterGroup: z.ZodOptional<z.ZodString>;
2510
+ rewards: z.ZodDefault<z.ZodObject<{
2511
+ inviter: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2512
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
2513
+ balance: z.ZodString;
2514
+ amount: z.ZodNumber;
2515
+ }, z.core.$strict>, z.ZodObject<{
2516
+ kind: z.ZodLiteral<"tier">;
2517
+ reward: z.ZodObject<{
2518
+ id: z.ZodString;
2519
+ title: z.ZodString;
2520
+ tiers: z.ZodArray<z.ZodObject<{
2521
+ id: z.ZodString;
2522
+ title: z.ZodString;
2523
+ }, z.core.$strict>>;
2524
+ inventory: z.ZodObject<{
2525
+ kind: z.ZodLiteral<"untracked">;
2526
+ }, z.core.$strict>;
2527
+ fulfillment: z.ZodObject<{
2528
+ kind: z.ZodLiteral<"staff-handover">;
2529
+ }, z.core.$strict>;
2530
+ }, z.core.$strict>;
2531
+ tier: z.ZodString;
2532
+ }, z.core.$strict>]>>>;
2533
+ invitee: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2534
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
2535
+ balance: z.ZodString;
2536
+ amount: z.ZodNumber;
2537
+ }, z.core.$strict>, z.ZodObject<{
2538
+ kind: z.ZodLiteral<"tier">;
2539
+ reward: z.ZodObject<{
2540
+ id: z.ZodString;
2541
+ title: z.ZodString;
2542
+ tiers: z.ZodArray<z.ZodObject<{
2543
+ id: z.ZodString;
2544
+ title: z.ZodString;
2545
+ }, z.core.$strict>>;
2546
+ inventory: z.ZodObject<{
2547
+ kind: z.ZodLiteral<"untracked">;
2548
+ }, z.core.$strict>;
2549
+ fulfillment: z.ZodObject<{
2550
+ kind: z.ZodLiteral<"staff-handover">;
2551
+ }, z.core.$strict>;
2552
+ }, z.core.$strict>;
2553
+ tier: z.ZodString;
2554
+ }, z.core.$strict>]>>>;
2555
+ }, z.core.$strict>>;
2556
+ milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
2557
+ id: z.ZodString;
2558
+ count: z.ZodNumber;
2559
+ rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2560
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
2561
+ balance: z.ZodString;
2562
+ amount: z.ZodNumber;
2563
+ }, z.core.$strict>, z.ZodObject<{
2564
+ kind: z.ZodLiteral<"tier">;
2565
+ reward: z.ZodObject<{
2566
+ id: z.ZodString;
2567
+ title: z.ZodString;
2568
+ tiers: z.ZodArray<z.ZodObject<{
2569
+ id: z.ZodString;
2570
+ title: z.ZodString;
2571
+ }, z.core.$strict>>;
2572
+ inventory: z.ZodObject<{
2573
+ kind: z.ZodLiteral<"untracked">;
2574
+ }, z.core.$strict>;
2575
+ fulfillment: z.ZodObject<{
2576
+ kind: z.ZodLiteral<"staff-handover">;
2577
+ }, z.core.$strict>;
2578
+ }, z.core.$strict>;
2579
+ tier: z.ZodString;
2580
+ }, z.core.$strict>]>>;
2581
+ }, z.core.$strict>>>;
2582
+ bonuses: z.ZodDefault<z.ZodArray<z.ZodObject<{
2583
+ id: z.ZodString;
2584
+ balance: z.ZodString;
2585
+ basisPoints: z.ZodNumber;
2586
+ quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
2587
+ external: z.ZodDefault<z.ZodBoolean>;
2588
+ durationDays: z.ZodOptional<z.ZodNumber>;
2589
+ maxPoints: z.ZodOptional<z.ZodNumber>;
2590
+ }, z.core.$strict>>>;
2591
+ }, z.core.$strict>, z.ZodObject<{
2592
+ code: z.ZodString;
2593
+ }, z.core.$strict>]>>>;
2594
+ leaderboards: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2595
+ id: z.ZodString;
2596
+ title: z.ZodString;
2597
+ balance: z.ZodString;
2598
+ score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2599
+ kind: z.ZodLiteral<"balance">;
2600
+ }, z.core.$strict>, z.ZodObject<{
2601
+ window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2602
+ kind: z.ZodLiteral<"all-time">;
2603
+ }, z.core.$strict>, z.ZodObject<{
2604
+ kind: z.ZodLiteral<"fixed">;
2605
+ start: z.ZodNumber;
2606
+ end: z.ZodNumber;
2607
+ }, z.core.$strict>, z.ZodObject<{
2608
+ kind: z.ZodLiteral<"rolling">;
2609
+ days: z.ZodNumber;
2610
+ }, z.core.$strict>, z.ZodObject<{
2611
+ kind: z.ZodLiteral<"calendar">;
2612
+ period: z.ZodEnum<{
2613
+ day: "day";
2614
+ week: "week";
2615
+ month: "month";
2616
+ }>;
2617
+ timeZone: z.ZodString;
2618
+ }, z.core.$strict>], "kind">>;
2619
+ quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
2620
+ kind: z.ZodLiteral<"earned">;
2621
+ }, z.core.$strict>, z.ZodObject<{
2622
+ kind: z.ZodLiteral<"net">;
2623
+ window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2624
+ kind: z.ZodLiteral<"all-time">;
2625
+ }, z.core.$strict>, z.ZodObject<{
2626
+ kind: z.ZodLiteral<"fixed">;
2627
+ start: z.ZodNumber;
2628
+ end: z.ZodNumber;
2629
+ }, z.core.$strict>, z.ZodObject<{
2630
+ kind: z.ZodLiteral<"rolling">;
2631
+ days: z.ZodNumber;
2632
+ }, z.core.$strict>, z.ZodObject<{
2633
+ kind: z.ZodLiteral<"calendar">;
2634
+ period: z.ZodEnum<{
2635
+ day: "day";
2636
+ week: "week";
2637
+ month: "month";
2638
+ }>;
2639
+ timeZone: z.ZodString;
2640
+ }, z.core.$strict>], "kind">>;
2641
+ }, z.core.$strict>], "kind">>;
2642
+ access: z.ZodDefault<z.ZodEnum<{
2643
+ participants: "participants";
2644
+ public: "public";
2645
+ }>>;
2646
+ group: z.ZodOptional<z.ZodString>;
2647
+ }, z.core.$strict>, z.ZodObject<{
2648
+ code: z.ZodString;
2649
+ }, z.core.$strict>]>>>;
2650
+ }, z.core.$strict>;
2428
2651
  /** One manifest bundle. Missing entries never delete remotely owned resources. */
2429
2652
  declare const projectDeploymentSchema: z.ZodObject<{
2430
2653
  collections: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -2448,6 +2671,159 @@ declare const projectDeploymentSchema: z.ZodObject<{
2448
2671
  automatic: "automatic";
2449
2672
  claim: "claim";
2450
2673
  }>>>;
2674
+ referrals: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2675
+ id: z.ZodString;
2676
+ title: z.ZodString;
2677
+ enabled: z.ZodDefault<z.ZodBoolean>;
2678
+ qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
2679
+ kind: z.ZodLiteral<"signup">;
2680
+ }, z.core.$strict>, z.ZodObject<{
2681
+ kind: z.ZodLiteral<"quest">;
2682
+ quest: z.ZodString;
2683
+ }, z.core.$strict>, z.ZodObject<{
2684
+ kind: z.ZodLiteral<"external">;
2685
+ }, z.core.$strict>], "kind">;
2686
+ inviterGroup: z.ZodOptional<z.ZodString>;
2687
+ rewards: z.ZodDefault<z.ZodObject<{
2688
+ inviter: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2689
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
2690
+ balance: z.ZodString;
2691
+ amount: z.ZodNumber;
2692
+ }, z.core.$strict>, z.ZodObject<{
2693
+ kind: z.ZodLiteral<"tier">;
2694
+ reward: z.ZodObject<{
2695
+ id: z.ZodString;
2696
+ title: z.ZodString;
2697
+ tiers: z.ZodArray<z.ZodObject<{
2698
+ id: z.ZodString;
2699
+ title: z.ZodString;
2700
+ }, z.core.$strict>>;
2701
+ inventory: z.ZodObject<{
2702
+ kind: z.ZodLiteral<"untracked">;
2703
+ }, z.core.$strict>;
2704
+ fulfillment: z.ZodObject<{
2705
+ kind: z.ZodLiteral<"staff-handover">;
2706
+ }, z.core.$strict>;
2707
+ }, z.core.$strict>;
2708
+ tier: z.ZodString;
2709
+ }, z.core.$strict>]>>>;
2710
+ invitee: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2711
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
2712
+ balance: z.ZodString;
2713
+ amount: z.ZodNumber;
2714
+ }, z.core.$strict>, z.ZodObject<{
2715
+ kind: z.ZodLiteral<"tier">;
2716
+ reward: z.ZodObject<{
2717
+ id: z.ZodString;
2718
+ title: z.ZodString;
2719
+ tiers: z.ZodArray<z.ZodObject<{
2720
+ id: z.ZodString;
2721
+ title: z.ZodString;
2722
+ }, z.core.$strict>>;
2723
+ inventory: z.ZodObject<{
2724
+ kind: z.ZodLiteral<"untracked">;
2725
+ }, z.core.$strict>;
2726
+ fulfillment: z.ZodObject<{
2727
+ kind: z.ZodLiteral<"staff-handover">;
2728
+ }, z.core.$strict>;
2729
+ }, z.core.$strict>;
2730
+ tier: z.ZodString;
2731
+ }, z.core.$strict>]>>>;
2732
+ }, z.core.$strict>>;
2733
+ milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
2734
+ id: z.ZodString;
2735
+ count: z.ZodNumber;
2736
+ rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2737
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
2738
+ balance: z.ZodString;
2739
+ amount: z.ZodNumber;
2740
+ }, z.core.$strict>, z.ZodObject<{
2741
+ kind: z.ZodLiteral<"tier">;
2742
+ reward: z.ZodObject<{
2743
+ id: z.ZodString;
2744
+ title: z.ZodString;
2745
+ tiers: z.ZodArray<z.ZodObject<{
2746
+ id: z.ZodString;
2747
+ title: z.ZodString;
2748
+ }, z.core.$strict>>;
2749
+ inventory: z.ZodObject<{
2750
+ kind: z.ZodLiteral<"untracked">;
2751
+ }, z.core.$strict>;
2752
+ fulfillment: z.ZodObject<{
2753
+ kind: z.ZodLiteral<"staff-handover">;
2754
+ }, z.core.$strict>;
2755
+ }, z.core.$strict>;
2756
+ tier: z.ZodString;
2757
+ }, z.core.$strict>]>>;
2758
+ }, z.core.$strict>>>;
2759
+ bonuses: z.ZodDefault<z.ZodArray<z.ZodObject<{
2760
+ id: z.ZodString;
2761
+ balance: z.ZodString;
2762
+ basisPoints: z.ZodNumber;
2763
+ quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
2764
+ external: z.ZodDefault<z.ZodBoolean>;
2765
+ durationDays: z.ZodOptional<z.ZodNumber>;
2766
+ maxPoints: z.ZodOptional<z.ZodNumber>;
2767
+ }, z.core.$strict>>>;
2768
+ }, z.core.$strict>, z.ZodObject<{
2769
+ code: z.ZodString;
2770
+ }, z.core.$strict>]>>>;
2771
+ leaderboards: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2772
+ id: z.ZodString;
2773
+ title: z.ZodString;
2774
+ balance: z.ZodString;
2775
+ score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2776
+ kind: z.ZodLiteral<"balance">;
2777
+ }, z.core.$strict>, z.ZodObject<{
2778
+ window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2779
+ kind: z.ZodLiteral<"all-time">;
2780
+ }, z.core.$strict>, z.ZodObject<{
2781
+ kind: z.ZodLiteral<"fixed">;
2782
+ start: z.ZodNumber;
2783
+ end: z.ZodNumber;
2784
+ }, z.core.$strict>, z.ZodObject<{
2785
+ kind: z.ZodLiteral<"rolling">;
2786
+ days: z.ZodNumber;
2787
+ }, z.core.$strict>, z.ZodObject<{
2788
+ kind: z.ZodLiteral<"calendar">;
2789
+ period: z.ZodEnum<{
2790
+ day: "day";
2791
+ week: "week";
2792
+ month: "month";
2793
+ }>;
2794
+ timeZone: z.ZodString;
2795
+ }, z.core.$strict>], "kind">>;
2796
+ quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
2797
+ kind: z.ZodLiteral<"earned">;
2798
+ }, z.core.$strict>, z.ZodObject<{
2799
+ kind: z.ZodLiteral<"net">;
2800
+ window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2801
+ kind: z.ZodLiteral<"all-time">;
2802
+ }, z.core.$strict>, z.ZodObject<{
2803
+ kind: z.ZodLiteral<"fixed">;
2804
+ start: z.ZodNumber;
2805
+ end: z.ZodNumber;
2806
+ }, z.core.$strict>, z.ZodObject<{
2807
+ kind: z.ZodLiteral<"rolling">;
2808
+ days: z.ZodNumber;
2809
+ }, z.core.$strict>, z.ZodObject<{
2810
+ kind: z.ZodLiteral<"calendar">;
2811
+ period: z.ZodEnum<{
2812
+ day: "day";
2813
+ week: "week";
2814
+ month: "month";
2815
+ }>;
2816
+ timeZone: z.ZodString;
2817
+ }, z.core.$strict>], "kind">>;
2818
+ }, z.core.$strict>], "kind">>;
2819
+ access: z.ZodDefault<z.ZodEnum<{
2820
+ participants: "participants";
2821
+ public: "public";
2822
+ }>>;
2823
+ group: z.ZodOptional<z.ZodString>;
2824
+ }, z.core.$strict>, z.ZodObject<{
2825
+ code: z.ZodString;
2826
+ }, z.core.$strict>]>>>;
2451
2827
  releases: z.ZodDefault<z.ZodArray<z.ZodObject<{
2452
2828
  code: z.ZodString;
2453
2829
  settings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
@@ -2497,6 +2873,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
2497
2873
  }, z.core.$strict>>;
2498
2874
  }, z.core.$strict>>;
2499
2875
  }, z.core.$strict>>;
2876
+ integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2877
+ discord: "discord";
2878
+ }>>>;
2500
2879
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2501
2880
  kind: z.ZodLiteral<"quiz">;
2502
2881
  default: z.ZodArray<z.ZodObject<{
@@ -2691,6 +3070,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
2691
3070
  } | undefined;
2692
3071
  } | undefined;
2693
3072
  };
3073
+ integrations: "discord"[];
2694
3074
  fields: Record<string, {
2695
3075
  kind: "quiz";
2696
3076
  default: {
@@ -2867,6 +3247,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
2867
3247
  }, z.core.$strict>>;
2868
3248
  }, z.core.$strict>>;
2869
3249
  }, z.core.$strict>>;
3250
+ integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
3251
+ discord: "discord";
3252
+ }>>>;
2870
3253
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2871
3254
  kind: z.ZodLiteral<"quiz">;
2872
3255
  default: z.ZodArray<z.ZodObject<{
@@ -2982,50 +3365,292 @@ declare const deploymentPreviewSchema: z.ZodObject<{
2982
3365
  automatic: "automatic";
2983
3366
  claim: "claim";
2984
3367
  }>>;
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>;
3368
+ referrals: z.ZodDefault<z.ZodArray<z.ZodObject<{
3369
+ version: z.ZodString;
3370
+ definition: z.ZodObject<{
3371
+ id: z.ZodString;
3372
+ title: z.ZodString;
3373
+ enabled: z.ZodDefault<z.ZodBoolean>;
3374
+ qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
3375
+ kind: z.ZodLiteral<"signup">;
3376
+ }, z.core.$strict>, z.ZodObject<{
3377
+ kind: z.ZodLiteral<"quest">;
3378
+ quest: z.ZodString;
3379
+ }, z.core.$strict>, z.ZodObject<{
3380
+ kind: z.ZodLiteral<"external">;
3381
+ }, z.core.$strict>], "kind">;
3382
+ inviterGroup: z.ZodOptional<z.ZodString>;
3383
+ rewards: z.ZodDefault<z.ZodObject<{
3384
+ inviter: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3385
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
3386
+ balance: z.ZodString;
3387
+ amount: z.ZodNumber;
3388
+ }, z.core.$strict>, z.ZodObject<{
3389
+ kind: z.ZodLiteral<"tier">;
3390
+ reward: z.ZodObject<{
3391
+ id: z.ZodString;
3392
+ title: z.ZodString;
3393
+ tiers: z.ZodArray<z.ZodObject<{
3394
+ id: z.ZodString;
3395
+ title: z.ZodString;
3396
+ }, z.core.$strict>>;
3397
+ inventory: z.ZodObject<{
3398
+ kind: z.ZodLiteral<"untracked">;
3399
+ }, z.core.$strict>;
3400
+ fulfillment: z.ZodObject<{
3401
+ kind: z.ZodLiteral<"staff-handover">;
3402
+ }, z.core.$strict>;
3403
+ }, z.core.$strict>;
3404
+ tier: z.ZodString;
3405
+ }, z.core.$strict>]>>>;
3406
+ invitee: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3407
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
3408
+ balance: z.ZodString;
3409
+ amount: z.ZodNumber;
3410
+ }, z.core.$strict>, z.ZodObject<{
3411
+ kind: z.ZodLiteral<"tier">;
3412
+ reward: z.ZodObject<{
3413
+ id: z.ZodString;
3414
+ title: z.ZodString;
3415
+ tiers: z.ZodArray<z.ZodObject<{
3416
+ id: z.ZodString;
3417
+ title: z.ZodString;
3418
+ }, z.core.$strict>>;
3419
+ inventory: z.ZodObject<{
3420
+ kind: z.ZodLiteral<"untracked">;
3421
+ }, z.core.$strict>;
3422
+ fulfillment: z.ZodObject<{
3423
+ kind: z.ZodLiteral<"staff-handover">;
3424
+ }, z.core.$strict>;
3425
+ }, z.core.$strict>;
3426
+ tier: z.ZodString;
3427
+ }, z.core.$strict>]>>>;
3428
+ }, z.core.$strict>>;
3429
+ milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
3430
+ id: z.ZodString;
3431
+ count: z.ZodNumber;
3432
+ rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3433
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
3434
+ balance: z.ZodString;
3435
+ amount: z.ZodNumber;
3436
+ }, z.core.$strict>, z.ZodObject<{
3437
+ kind: z.ZodLiteral<"tier">;
3438
+ reward: z.ZodObject<{
3439
+ id: z.ZodString;
3440
+ title: z.ZodString;
3441
+ tiers: z.ZodArray<z.ZodObject<{
3442
+ id: z.ZodString;
3443
+ title: z.ZodString;
3444
+ }, z.core.$strict>>;
3445
+ inventory: z.ZodObject<{
3446
+ kind: z.ZodLiteral<"untracked">;
3447
+ }, z.core.$strict>;
3448
+ fulfillment: z.ZodObject<{
3449
+ kind: z.ZodLiteral<"staff-handover">;
3450
+ }, z.core.$strict>;
3451
+ }, z.core.$strict>;
3452
+ tier: z.ZodString;
3453
+ }, z.core.$strict>]>>;
3454
+ }, z.core.$strict>>>;
3455
+ bonuses: z.ZodDefault<z.ZodArray<z.ZodObject<{
3456
+ id: z.ZodString;
3457
+ balance: z.ZodString;
3458
+ basisPoints: z.ZodNumber;
3459
+ quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
3460
+ external: z.ZodDefault<z.ZodBoolean>;
3461
+ durationDays: z.ZodOptional<z.ZodNumber>;
3462
+ maxPoints: z.ZodOptional<z.ZodNumber>;
3463
+ }, z.core.$strict>>>;
3464
+ }, z.core.$strict>;
3465
+ publishedAt: z.ZodNumber;
3466
+ actor: z.ZodNullable<z.ZodString>;
3467
+ }, z.core.$strip>>>;
3468
+ leaderboards: z.ZodDefault<z.ZodArray<z.ZodObject<{
3469
+ published: z.ZodObject<{
3470
+ version: z.ZodString;
3471
+ definition: z.ZodObject<{
3472
+ id: z.ZodString;
3473
+ title: z.ZodString;
3474
+ balance: z.ZodString;
3475
+ score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
3476
+ kind: z.ZodLiteral<"balance">;
3477
+ }, z.core.$strict>, z.ZodObject<{
3478
+ window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
3479
+ kind: z.ZodLiteral<"all-time">;
3480
+ }, z.core.$strict>, z.ZodObject<{
3481
+ kind: z.ZodLiteral<"fixed">;
3482
+ start: z.ZodNumber;
3483
+ end: z.ZodNumber;
3484
+ }, z.core.$strict>, z.ZodObject<{
3485
+ kind: z.ZodLiteral<"rolling">;
3486
+ days: z.ZodNumber;
3487
+ }, z.core.$strict>, z.ZodObject<{
3488
+ kind: z.ZodLiteral<"calendar">;
3489
+ period: z.ZodEnum<{
3490
+ day: "day";
3491
+ week: "week";
3492
+ month: "month";
3493
+ }>;
3494
+ timeZone: z.ZodString;
3495
+ }, z.core.$strict>], "kind">>;
3496
+ quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
3497
+ kind: z.ZodLiteral<"earned">;
3498
+ }, z.core.$strict>, z.ZodObject<{
3499
+ kind: z.ZodLiteral<"net">;
3500
+ window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
3501
+ kind: z.ZodLiteral<"all-time">;
3502
+ }, z.core.$strict>, z.ZodObject<{
3503
+ kind: z.ZodLiteral<"fixed">;
3504
+ start: z.ZodNumber;
3505
+ end: z.ZodNumber;
3506
+ }, z.core.$strict>, z.ZodObject<{
3507
+ kind: z.ZodLiteral<"rolling">;
3508
+ days: z.ZodNumber;
3509
+ }, z.core.$strict>, z.ZodObject<{
3510
+ kind: z.ZodLiteral<"calendar">;
3511
+ period: z.ZodEnum<{
3512
+ day: "day";
3513
+ week: "week";
3514
+ month: "month";
3515
+ }>;
3516
+ timeZone: z.ZodString;
3517
+ }, z.core.$strict>], "kind">>;
3518
+ }, z.core.$strict>], "kind">>;
3519
+ access: z.ZodDefault<z.ZodEnum<{
3520
+ participants: "participants";
3521
+ public: "public";
3522
+ }>>;
3523
+ group: z.ZodOptional<z.ZodString>;
3524
+ }, z.core.$strict>;
3525
+ publishedAt: z.ZodNumber;
3526
+ actor: z.ZodNullable<z.ZodString>;
3527
+ }, z.core.$strip>;
3528
+ before: z.ZodNullable<z.ZodObject<{
3529
+ leaderboard: z.ZodString;
3530
+ title: z.ZodString;
3531
+ version: z.ZodString;
3532
+ calculation: z.ZodEnum<{
3533
+ balance: "balance";
3534
+ earned: "earned";
3535
+ net: "net";
3536
+ }>;
3537
+ period: z.ZodObject<{
3538
+ start: z.ZodNullable<z.ZodNumber>;
3539
+ end: z.ZodNullable<z.ZodNumber>;
3540
+ }, z.core.$strip>;
3541
+ calculatedAt: z.ZodNumber;
3542
+ lastEntryAt: z.ZodNullable<z.ZodNumber>;
3543
+ total: z.ZodNumber;
3544
+ items: z.ZodArray<z.ZodObject<{
3545
+ participant: z.ZodString;
3546
+ member: z.ZodOptional<z.ZodString>;
3547
+ name: z.ZodString;
3548
+ score: z.ZodNumber;
3549
+ rank: z.ZodNumber;
3550
+ }, z.core.$strip>>;
3551
+ me: z.ZodNullable<z.ZodObject<{
3552
+ participant: z.ZodString;
3553
+ member: z.ZodOptional<z.ZodString>;
3554
+ name: z.ZodString;
3555
+ score: z.ZodNumber;
3556
+ rank: z.ZodNumber;
3557
+ }, z.core.$strip>>;
3558
+ nearby: z.ZodArray<z.ZodObject<{
3559
+ participant: z.ZodString;
3560
+ member: z.ZodOptional<z.ZodString>;
3561
+ name: z.ZodString;
3562
+ score: z.ZodNumber;
3563
+ rank: z.ZodNumber;
3564
+ }, z.core.$strip>>;
3565
+ nextCursor: z.ZodNullable<z.ZodString>;
3566
+ }, z.core.$strip>>;
3567
+ after: z.ZodObject<{
3568
+ leaderboard: z.ZodString;
3569
+ title: z.ZodString;
3570
+ version: z.ZodString;
3571
+ calculation: z.ZodEnum<{
3572
+ balance: "balance";
3573
+ earned: "earned";
3574
+ net: "net";
3575
+ }>;
3576
+ period: z.ZodObject<{
3577
+ start: z.ZodNullable<z.ZodNumber>;
3578
+ end: z.ZodNullable<z.ZodNumber>;
3579
+ }, z.core.$strip>;
3580
+ calculatedAt: z.ZodNumber;
3581
+ lastEntryAt: z.ZodNullable<z.ZodNumber>;
3582
+ total: z.ZodNumber;
3583
+ items: z.ZodArray<z.ZodObject<{
3584
+ participant: z.ZodString;
3585
+ member: z.ZodOptional<z.ZodString>;
3586
+ name: z.ZodString;
3587
+ score: z.ZodNumber;
3588
+ rank: z.ZodNumber;
3589
+ }, z.core.$strip>>;
3590
+ me: z.ZodNullable<z.ZodObject<{
3591
+ participant: z.ZodString;
3592
+ member: z.ZodOptional<z.ZodString>;
3593
+ name: z.ZodString;
3594
+ score: z.ZodNumber;
3595
+ rank: z.ZodNumber;
3596
+ }, z.core.$strip>>;
3597
+ nearby: z.ZodArray<z.ZodObject<{
3598
+ participant: z.ZodString;
3599
+ member: z.ZodOptional<z.ZodString>;
3600
+ name: z.ZodString;
3601
+ score: z.ZodNumber;
3602
+ rank: z.ZodNumber;
3603
+ }, z.core.$strip>>;
3604
+ nextCursor: z.ZodNullable<z.ZodString>;
3605
+ }, z.core.$strip>;
3606
+ }, z.core.$strip>>>;
3607
+ }, z.core.$strip>;
3608
+ declare const publishDeploymentSchema: z.ZodObject<{
3609
+ id: z.ZodString;
3610
+ }, z.core.$strict>;
3611
+ declare const deploymentResultSchema: z.ZodObject<{
3612
+ id: z.ZodString;
3613
+ baseRevision: z.ZodNumber;
3614
+ releases: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3615
+ quest: z.ZodString;
3616
+ runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
3617
+ title: z.ZodString;
3618
+ presentation: z.ZodDefault<z.ZodObject<{
3619
+ quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
3620
+ id: z.ZodString;
3621
+ prompt: z.ZodString;
3622
+ choices: z.ZodArray<z.ZodObject<{
3623
+ id: z.ZodString;
3624
+ label: z.ZodString;
3625
+ }, z.core.$strict>>;
3626
+ }, z.core.$strict>>>;
3627
+ instructions: z.ZodOptional<z.ZodString>;
3628
+ video: z.ZodOptional<z.ZodObject<{
3629
+ url: z.ZodString;
3630
+ poster: z.ZodOptional<z.ZodString>;
3631
+ captions: z.ZodOptional<z.ZodObject<{
3632
+ url: z.ZodString;
3633
+ language: z.ZodString;
3634
+ label: z.ZodString;
3635
+ }, z.core.$strict>>;
3636
+ }, z.core.$strict>>;
3637
+ }, z.core.$strict>>;
3638
+ integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
3639
+ discord: "discord";
3640
+ }>>>;
3641
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3642
+ kind: z.ZodLiteral<"quiz">;
3643
+ default: z.ZodArray<z.ZodObject<{
3644
+ id: z.ZodString;
3645
+ prompt: z.ZodString;
3646
+ choices: z.ZodArray<z.ZodObject<{
3647
+ id: z.ZodString;
3648
+ label: z.ZodString;
3649
+ }, z.core.$strict>>;
3650
+ correct: z.ZodString;
3651
+ }, z.core.$strict>>;
3652
+ label: z.ZodString;
3653
+ description: z.ZodOptional<z.ZodString>;
3029
3654
  }, z.core.$strict>, z.ZodObject<{
3030
3655
  kind: z.ZodLiteral<"text">;
3031
3656
  default: z.ZodString;
@@ -3207,6 +3832,7 @@ declare const deploymentResultSchema: z.ZodObject<{
3207
3832
  } | undefined;
3208
3833
  } | undefined;
3209
3834
  };
3835
+ integrations: "discord"[];
3210
3836
  fields: Record<string, {
3211
3837
  kind: "quiz";
3212
3838
  default: {
@@ -3383,6 +4009,9 @@ declare const deploymentResultSchema: z.ZodObject<{
3383
4009
  }, z.core.$strict>>;
3384
4010
  }, z.core.$strict>>;
3385
4011
  }, z.core.$strict>>;
4012
+ integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
4013
+ discord: "discord";
4014
+ }>>>;
3386
4015
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3387
4016
  kind: z.ZodLiteral<"quiz">;
3388
4017
  default: z.ZodArray<z.ZodObject<{
@@ -3498,6 +4127,245 @@ declare const deploymentResultSchema: z.ZodObject<{
3498
4127
  automatic: "automatic";
3499
4128
  claim: "claim";
3500
4129
  }>>;
4130
+ referrals: z.ZodDefault<z.ZodArray<z.ZodObject<{
4131
+ version: z.ZodString;
4132
+ definition: z.ZodObject<{
4133
+ id: z.ZodString;
4134
+ title: z.ZodString;
4135
+ enabled: z.ZodDefault<z.ZodBoolean>;
4136
+ qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
4137
+ kind: z.ZodLiteral<"signup">;
4138
+ }, z.core.$strict>, z.ZodObject<{
4139
+ kind: z.ZodLiteral<"quest">;
4140
+ quest: z.ZodString;
4141
+ }, z.core.$strict>, z.ZodObject<{
4142
+ kind: z.ZodLiteral<"external">;
4143
+ }, z.core.$strict>], "kind">;
4144
+ inviterGroup: z.ZodOptional<z.ZodString>;
4145
+ rewards: z.ZodDefault<z.ZodObject<{
4146
+ inviter: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
4147
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
4148
+ balance: z.ZodString;
4149
+ amount: z.ZodNumber;
4150
+ }, z.core.$strict>, z.ZodObject<{
4151
+ kind: z.ZodLiteral<"tier">;
4152
+ reward: z.ZodObject<{
4153
+ id: z.ZodString;
4154
+ title: z.ZodString;
4155
+ tiers: z.ZodArray<z.ZodObject<{
4156
+ id: z.ZodString;
4157
+ title: z.ZodString;
4158
+ }, z.core.$strict>>;
4159
+ inventory: z.ZodObject<{
4160
+ kind: z.ZodLiteral<"untracked">;
4161
+ }, z.core.$strict>;
4162
+ fulfillment: z.ZodObject<{
4163
+ kind: z.ZodLiteral<"staff-handover">;
4164
+ }, z.core.$strict>;
4165
+ }, z.core.$strict>;
4166
+ tier: z.ZodString;
4167
+ }, z.core.$strict>]>>>;
4168
+ invitee: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
4169
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
4170
+ balance: z.ZodString;
4171
+ amount: z.ZodNumber;
4172
+ }, z.core.$strict>, z.ZodObject<{
4173
+ kind: z.ZodLiteral<"tier">;
4174
+ reward: z.ZodObject<{
4175
+ id: z.ZodString;
4176
+ title: z.ZodString;
4177
+ tiers: z.ZodArray<z.ZodObject<{
4178
+ id: z.ZodString;
4179
+ title: z.ZodString;
4180
+ }, z.core.$strict>>;
4181
+ inventory: z.ZodObject<{
4182
+ kind: z.ZodLiteral<"untracked">;
4183
+ }, z.core.$strict>;
4184
+ fulfillment: z.ZodObject<{
4185
+ kind: z.ZodLiteral<"staff-handover">;
4186
+ }, z.core.$strict>;
4187
+ }, z.core.$strict>;
4188
+ tier: z.ZodString;
4189
+ }, z.core.$strict>]>>>;
4190
+ }, z.core.$strict>>;
4191
+ milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
4192
+ id: z.ZodString;
4193
+ count: z.ZodNumber;
4194
+ rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
4195
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
4196
+ balance: z.ZodString;
4197
+ amount: z.ZodNumber;
4198
+ }, z.core.$strict>, z.ZodObject<{
4199
+ kind: z.ZodLiteral<"tier">;
4200
+ reward: z.ZodObject<{
4201
+ id: z.ZodString;
4202
+ title: z.ZodString;
4203
+ tiers: z.ZodArray<z.ZodObject<{
4204
+ id: z.ZodString;
4205
+ title: z.ZodString;
4206
+ }, z.core.$strict>>;
4207
+ inventory: z.ZodObject<{
4208
+ kind: z.ZodLiteral<"untracked">;
4209
+ }, z.core.$strict>;
4210
+ fulfillment: z.ZodObject<{
4211
+ kind: z.ZodLiteral<"staff-handover">;
4212
+ }, z.core.$strict>;
4213
+ }, z.core.$strict>;
4214
+ tier: z.ZodString;
4215
+ }, z.core.$strict>]>>;
4216
+ }, z.core.$strict>>>;
4217
+ bonuses: z.ZodDefault<z.ZodArray<z.ZodObject<{
4218
+ id: z.ZodString;
4219
+ balance: z.ZodString;
4220
+ basisPoints: z.ZodNumber;
4221
+ quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
4222
+ external: z.ZodDefault<z.ZodBoolean>;
4223
+ durationDays: z.ZodOptional<z.ZodNumber>;
4224
+ maxPoints: z.ZodOptional<z.ZodNumber>;
4225
+ }, z.core.$strict>>>;
4226
+ }, z.core.$strict>;
4227
+ publishedAt: z.ZodNumber;
4228
+ actor: z.ZodNullable<z.ZodString>;
4229
+ }, z.core.$strip>>>;
4230
+ leaderboards: z.ZodDefault<z.ZodArray<z.ZodObject<{
4231
+ published: z.ZodObject<{
4232
+ version: z.ZodString;
4233
+ definition: z.ZodObject<{
4234
+ id: z.ZodString;
4235
+ title: z.ZodString;
4236
+ balance: z.ZodString;
4237
+ score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
4238
+ kind: z.ZodLiteral<"balance">;
4239
+ }, z.core.$strict>, z.ZodObject<{
4240
+ window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
4241
+ kind: z.ZodLiteral<"all-time">;
4242
+ }, z.core.$strict>, z.ZodObject<{
4243
+ kind: z.ZodLiteral<"fixed">;
4244
+ start: z.ZodNumber;
4245
+ end: z.ZodNumber;
4246
+ }, z.core.$strict>, z.ZodObject<{
4247
+ kind: z.ZodLiteral<"rolling">;
4248
+ days: z.ZodNumber;
4249
+ }, z.core.$strict>, z.ZodObject<{
4250
+ kind: z.ZodLiteral<"calendar">;
4251
+ period: z.ZodEnum<{
4252
+ day: "day";
4253
+ week: "week";
4254
+ month: "month";
4255
+ }>;
4256
+ timeZone: z.ZodString;
4257
+ }, z.core.$strict>], "kind">>;
4258
+ quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
4259
+ kind: z.ZodLiteral<"earned">;
4260
+ }, z.core.$strict>, z.ZodObject<{
4261
+ kind: z.ZodLiteral<"net">;
4262
+ window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
4263
+ kind: z.ZodLiteral<"all-time">;
4264
+ }, z.core.$strict>, z.ZodObject<{
4265
+ kind: z.ZodLiteral<"fixed">;
4266
+ start: z.ZodNumber;
4267
+ end: z.ZodNumber;
4268
+ }, z.core.$strict>, z.ZodObject<{
4269
+ kind: z.ZodLiteral<"rolling">;
4270
+ days: z.ZodNumber;
4271
+ }, z.core.$strict>, z.ZodObject<{
4272
+ kind: z.ZodLiteral<"calendar">;
4273
+ period: z.ZodEnum<{
4274
+ day: "day";
4275
+ week: "week";
4276
+ month: "month";
4277
+ }>;
4278
+ timeZone: z.ZodString;
4279
+ }, z.core.$strict>], "kind">>;
4280
+ }, z.core.$strict>], "kind">>;
4281
+ access: z.ZodDefault<z.ZodEnum<{
4282
+ participants: "participants";
4283
+ public: "public";
4284
+ }>>;
4285
+ group: z.ZodOptional<z.ZodString>;
4286
+ }, z.core.$strict>;
4287
+ publishedAt: z.ZodNumber;
4288
+ actor: z.ZodNullable<z.ZodString>;
4289
+ }, z.core.$strip>;
4290
+ before: z.ZodNullable<z.ZodObject<{
4291
+ leaderboard: z.ZodString;
4292
+ title: z.ZodString;
4293
+ version: z.ZodString;
4294
+ calculation: z.ZodEnum<{
4295
+ balance: "balance";
4296
+ earned: "earned";
4297
+ net: "net";
4298
+ }>;
4299
+ period: z.ZodObject<{
4300
+ start: z.ZodNullable<z.ZodNumber>;
4301
+ end: z.ZodNullable<z.ZodNumber>;
4302
+ }, z.core.$strip>;
4303
+ calculatedAt: z.ZodNumber;
4304
+ lastEntryAt: z.ZodNullable<z.ZodNumber>;
4305
+ total: z.ZodNumber;
4306
+ items: z.ZodArray<z.ZodObject<{
4307
+ participant: z.ZodString;
4308
+ member: z.ZodOptional<z.ZodString>;
4309
+ name: z.ZodString;
4310
+ score: z.ZodNumber;
4311
+ rank: z.ZodNumber;
4312
+ }, z.core.$strip>>;
4313
+ me: z.ZodNullable<z.ZodObject<{
4314
+ participant: z.ZodString;
4315
+ member: z.ZodOptional<z.ZodString>;
4316
+ name: z.ZodString;
4317
+ score: z.ZodNumber;
4318
+ rank: z.ZodNumber;
4319
+ }, z.core.$strip>>;
4320
+ nearby: z.ZodArray<z.ZodObject<{
4321
+ participant: z.ZodString;
4322
+ member: z.ZodOptional<z.ZodString>;
4323
+ name: z.ZodString;
4324
+ score: z.ZodNumber;
4325
+ rank: z.ZodNumber;
4326
+ }, z.core.$strip>>;
4327
+ nextCursor: z.ZodNullable<z.ZodString>;
4328
+ }, z.core.$strip>>;
4329
+ after: z.ZodObject<{
4330
+ leaderboard: z.ZodString;
4331
+ title: z.ZodString;
4332
+ version: z.ZodString;
4333
+ calculation: z.ZodEnum<{
4334
+ balance: "balance";
4335
+ earned: "earned";
4336
+ net: "net";
4337
+ }>;
4338
+ period: z.ZodObject<{
4339
+ start: z.ZodNullable<z.ZodNumber>;
4340
+ end: z.ZodNullable<z.ZodNumber>;
4341
+ }, z.core.$strip>;
4342
+ calculatedAt: z.ZodNumber;
4343
+ lastEntryAt: z.ZodNullable<z.ZodNumber>;
4344
+ total: z.ZodNumber;
4345
+ items: z.ZodArray<z.ZodObject<{
4346
+ participant: z.ZodString;
4347
+ member: z.ZodOptional<z.ZodString>;
4348
+ name: z.ZodString;
4349
+ score: z.ZodNumber;
4350
+ rank: z.ZodNumber;
4351
+ }, z.core.$strip>>;
4352
+ me: z.ZodNullable<z.ZodObject<{
4353
+ participant: z.ZodString;
4354
+ member: z.ZodOptional<z.ZodString>;
4355
+ name: z.ZodString;
4356
+ score: z.ZodNumber;
4357
+ rank: z.ZodNumber;
4358
+ }, z.core.$strip>>;
4359
+ nearby: z.ZodArray<z.ZodObject<{
4360
+ participant: z.ZodString;
4361
+ member: z.ZodOptional<z.ZodString>;
4362
+ name: z.ZodString;
4363
+ score: z.ZodNumber;
4364
+ rank: z.ZodNumber;
4365
+ }, z.core.$strip>>;
4366
+ nextCursor: z.ZodNullable<z.ZodString>;
4367
+ }, z.core.$strip>;
4368
+ }, z.core.$strip>>>;
3501
4369
  revision: z.ZodNumber;
3502
4370
  }, z.core.$strip>;
3503
4371
  type DeploymentPreview = z.infer<typeof deploymentPreviewSchema>;
@@ -3544,6 +4412,313 @@ declare function createRelayClient(options: {
3544
4412
  project?: string;
3545
4413
  environment?: "test" | "live";
3546
4414
  }): {
4415
+ referrals: {
4416
+ list: () => Promise<{
4417
+ id: string;
4418
+ title: string;
4419
+ enabled: boolean;
4420
+ qualification: {
4421
+ kind: "signup";
4422
+ } | {
4423
+ kind: "quest";
4424
+ quest: string;
4425
+ } | {
4426
+ kind: "external";
4427
+ };
4428
+ rewards: {
4429
+ inviter: ({
4430
+ kind: "tier";
4431
+ reward: {
4432
+ id: string;
4433
+ title: string;
4434
+ tiers: {
4435
+ id: string;
4436
+ title: string;
4437
+ }[];
4438
+ inventory: {
4439
+ kind: "untracked";
4440
+ };
4441
+ fulfillment: {
4442
+ kind: "staff-handover";
4443
+ };
4444
+ };
4445
+ tier: string;
4446
+ } | {
4447
+ kind: "points";
4448
+ balance: string;
4449
+ amount: number;
4450
+ })[];
4451
+ invitee: ({
4452
+ kind: "tier";
4453
+ reward: {
4454
+ id: string;
4455
+ title: string;
4456
+ tiers: {
4457
+ id: string;
4458
+ title: string;
4459
+ }[];
4460
+ inventory: {
4461
+ kind: "untracked";
4462
+ };
4463
+ fulfillment: {
4464
+ kind: "staff-handover";
4465
+ };
4466
+ };
4467
+ tier: string;
4468
+ } | {
4469
+ kind: "points";
4470
+ balance: string;
4471
+ amount: number;
4472
+ })[];
4473
+ };
4474
+ milestones: {
4475
+ id: string;
4476
+ count: number;
4477
+ rewards: ({
4478
+ kind: "tier";
4479
+ reward: {
4480
+ id: string;
4481
+ title: string;
4482
+ tiers: {
4483
+ id: string;
4484
+ title: string;
4485
+ }[];
4486
+ inventory: {
4487
+ kind: "untracked";
4488
+ };
4489
+ fulfillment: {
4490
+ kind: "staff-handover";
4491
+ };
4492
+ };
4493
+ tier: string;
4494
+ } | {
4495
+ kind: "points";
4496
+ balance: string;
4497
+ amount: number;
4498
+ })[];
4499
+ }[];
4500
+ bonuses: {
4501
+ id: string;
4502
+ balance: string;
4503
+ basisPoints: number;
4504
+ external: boolean;
4505
+ quests?: string[] | undefined;
4506
+ durationDays?: number | undefined;
4507
+ maxPoints?: number | undefined;
4508
+ }[];
4509
+ inviterGroup?: string | undefined;
4510
+ }[]>;
4511
+ summary: () => Promise<{
4512
+ code: string;
4513
+ attributed: number;
4514
+ programs: {
4515
+ definition: {
4516
+ id: string;
4517
+ title: string;
4518
+ enabled: boolean;
4519
+ qualification: {
4520
+ kind: "signup";
4521
+ } | {
4522
+ kind: "quest";
4523
+ quest: string;
4524
+ } | {
4525
+ kind: "external";
4526
+ };
4527
+ rewards: {
4528
+ inviter: ({
4529
+ kind: "tier";
4530
+ reward: {
4531
+ id: string;
4532
+ title: string;
4533
+ tiers: {
4534
+ id: string;
4535
+ title: string;
4536
+ }[];
4537
+ inventory: {
4538
+ kind: "untracked";
4539
+ };
4540
+ fulfillment: {
4541
+ kind: "staff-handover";
4542
+ };
4543
+ };
4544
+ tier: string;
4545
+ } | {
4546
+ kind: "points";
4547
+ balance: string;
4548
+ amount: number;
4549
+ })[];
4550
+ invitee: ({
4551
+ kind: "tier";
4552
+ reward: {
4553
+ id: string;
4554
+ title: string;
4555
+ tiers: {
4556
+ id: string;
4557
+ title: string;
4558
+ }[];
4559
+ inventory: {
4560
+ kind: "untracked";
4561
+ };
4562
+ fulfillment: {
4563
+ kind: "staff-handover";
4564
+ };
4565
+ };
4566
+ tier: string;
4567
+ } | {
4568
+ kind: "points";
4569
+ balance: string;
4570
+ amount: number;
4571
+ })[];
4572
+ };
4573
+ milestones: {
4574
+ id: string;
4575
+ count: number;
4576
+ rewards: ({
4577
+ kind: "tier";
4578
+ reward: {
4579
+ id: string;
4580
+ title: string;
4581
+ tiers: {
4582
+ id: string;
4583
+ title: string;
4584
+ }[];
4585
+ inventory: {
4586
+ kind: "untracked";
4587
+ };
4588
+ fulfillment: {
4589
+ kind: "staff-handover";
4590
+ };
4591
+ };
4592
+ tier: string;
4593
+ } | {
4594
+ kind: "points";
4595
+ balance: string;
4596
+ amount: number;
4597
+ })[];
4598
+ }[];
4599
+ bonuses: {
4600
+ id: string;
4601
+ balance: string;
4602
+ basisPoints: number;
4603
+ external: boolean;
4604
+ quests?: string[] | undefined;
4605
+ durationDays?: number | undefined;
4606
+ maxPoints?: number | undefined;
4607
+ }[];
4608
+ inviterGroup?: string | undefined;
4609
+ };
4610
+ qualified: number;
4611
+ milestones: {
4612
+ id: string;
4613
+ count: number;
4614
+ reached: boolean;
4615
+ }[];
4616
+ }[];
4617
+ accounts: {
4618
+ id: string;
4619
+ program: string;
4620
+ kind: "fixed" | "bonus" | "milestone";
4621
+ balance: string;
4622
+ earned: number;
4623
+ settled: number;
4624
+ outstanding: number;
4625
+ }[];
4626
+ }>;
4627
+ history: (before?: number) => Promise<{
4628
+ items: {
4629
+ id: number;
4630
+ program: string;
4631
+ balance: string;
4632
+ amount: number;
4633
+ at: number;
4634
+ reason: string;
4635
+ }[];
4636
+ next: number | null;
4637
+ }>;
4638
+ accept: (input: z.input<typeof referralAcceptSchema>) => Promise<{
4639
+ ok: true;
4640
+ }>;
4641
+ };
4642
+ leaderboards: {
4643
+ list: () => Promise<{
4644
+ id: string;
4645
+ title: string;
4646
+ balance: string;
4647
+ score: {
4648
+ kind: "balance";
4649
+ } | {
4650
+ window: {
4651
+ kind: "fixed";
4652
+ start: number;
4653
+ end: number;
4654
+ } | {
4655
+ kind: "all-time";
4656
+ } | {
4657
+ kind: "rolling";
4658
+ days: number;
4659
+ } | {
4660
+ kind: "calendar";
4661
+ period: "day" | "week" | "month";
4662
+ timeZone: string;
4663
+ };
4664
+ kind: "earned";
4665
+ quests?: string[] | undefined;
4666
+ } | {
4667
+ kind: "net";
4668
+ window: {
4669
+ kind: "fixed";
4670
+ start: number;
4671
+ end: number;
4672
+ } | {
4673
+ kind: "all-time";
4674
+ } | {
4675
+ kind: "rolling";
4676
+ days: number;
4677
+ } | {
4678
+ kind: "calendar";
4679
+ period: "day" | "week" | "month";
4680
+ timeZone: string;
4681
+ };
4682
+ };
4683
+ access: "participants" | "public";
4684
+ group?: string | undefined;
4685
+ }[]>;
4686
+ standings: (board: string, options?: LeaderboardQuery) => Promise<{
4687
+ leaderboard: string;
4688
+ title: string;
4689
+ version: string;
4690
+ calculation: "balance" | "earned" | "net";
4691
+ period: {
4692
+ start: number | null;
4693
+ end: number | null;
4694
+ };
4695
+ calculatedAt: number;
4696
+ lastEntryAt: number | null;
4697
+ total: number;
4698
+ items: {
4699
+ participant: string;
4700
+ name: string;
4701
+ score: number;
4702
+ rank: number;
4703
+ member?: string | undefined;
4704
+ }[];
4705
+ me: {
4706
+ participant: string;
4707
+ name: string;
4708
+ score: number;
4709
+ rank: number;
4710
+ member?: string | undefined;
4711
+ } | null;
4712
+ nearby: {
4713
+ participant: string;
4714
+ name: string;
4715
+ score: number;
4716
+ rank: number;
4717
+ member?: string | undefined;
4718
+ }[];
4719
+ nextCursor: string | null;
4720
+ }>;
4721
+ };
3547
4722
  quests: {
3548
4723
  get: (id: string) => Promise<{
3549
4724
  quest: string;
@@ -3568,6 +4743,7 @@ declare function createRelayClient(options: {
3568
4743
  } | undefined;
3569
4744
  } | undefined;
3570
4745
  };
4746
+ connections: ("google" | "apple" | "x" | "discord")[];
3571
4747
  trigger: {
3572
4748
  kind: "manual";
3573
4749
  input: "quiz" | "photo" | "none";
@@ -3721,6 +4897,7 @@ declare function createRelayClient(options: {
3721
4897
  } | undefined;
3722
4898
  } | undefined;
3723
4899
  };
4900
+ connections: ("google" | "apple" | "x" | "discord")[];
3724
4901
  trigger: {
3725
4902
  kind: "manual";
3726
4903
  input: "quiz" | "photo" | "none";
@@ -3833,6 +5010,7 @@ declare function createRelayClient(options: {
3833
5010
  } | undefined;
3834
5011
  } | undefined;
3835
5012
  };
5013
+ connections: ("google" | "apple" | "x" | "discord")[];
3836
5014
  trigger: {
3837
5015
  kind: "manual";
3838
5016
  input: "quiz" | "photo" | "none";
@@ -3947,6 +5125,7 @@ declare function createRelayClient(options: {
3947
5125
  } | undefined;
3948
5126
  } | undefined;
3949
5127
  };
5128
+ connections: ("google" | "apple" | "x" | "discord")[];
3950
5129
  trigger: {
3951
5130
  kind: "manual";
3952
5131
  input: "quiz" | "photo" | "none";
@@ -4070,7 +5249,7 @@ declare function createRelayClient(options: {
4070
5249
  email: boolean;
4071
5250
  demo: boolean;
4072
5251
  }>;
4073
- start: (provider: "google" | "apple" | "x" | "discord", mode: "sign-in" | "connect") => Promise<{
5252
+ start: (provider: AuthProvider, mode: "sign-in" | "connect") => Promise<{
4074
5253
  url: string;
4075
5254
  }>;
4076
5255
  emailStart: (email: string) => Promise<{
@@ -4093,6 +5272,16 @@ declare function createRelayClient(options: {
4093
5272
  };
4094
5273
  expiresAt: number;
4095
5274
  }>;
5275
+ accounts: () => Promise<{
5276
+ provider: "google" | "apple" | "x" | "discord";
5277
+ configured: boolean;
5278
+ status: "disconnected" | "connected" | "reconnect";
5279
+ subject: string | null;
5280
+ revision: number;
5281
+ }[]>;
5282
+ disconnect: (provider: AuthProvider) => Promise<{
5283
+ ok: boolean;
5284
+ }>;
4096
5285
  connections: () => Promise<{
4097
5286
  provider: string;
4098
5287
  subject: string;
@@ -4115,23 +5304,6 @@ declare function createRelayClient(options: {
4115
5304
  };
4116
5305
  expiresAt: number;
4117
5306
  } | null>;
4118
- demoSignIn: (code: string) => Promise<{
4119
- organization: string;
4120
- project: string;
4121
- environment: "test" | "live";
4122
- id: string;
4123
- principal: {
4124
- kind: "member";
4125
- member: string;
4126
- } | {
4127
- kind: "staff";
4128
- subject: string;
4129
- } | {
4130
- kind: "operator";
4131
- subject: string;
4132
- };
4133
- expiresAt: number;
4134
- }>;
4135
5307
  signOut: () => Promise<{
4136
5308
  ok: boolean;
4137
5309
  }>;
@@ -4251,6 +5423,7 @@ declare function createRelayClient(options: {
4251
5423
  } | undefined;
4252
5424
  } | undefined;
4253
5425
  };
5426
+ connections: ("google" | "apple" | "x" | "discord")[];
4254
5427
  trigger: {
4255
5428
  kind: "manual";
4256
5429
  input: "quiz" | "photo" | "none";
@@ -4564,6 +5737,7 @@ declare function createRelayClient(options: {
4564
5737
  } | undefined;
4565
5738
  } | undefined;
4566
5739
  };
5740
+ integrations: "discord"[];
4567
5741
  fields: Record<string, {
4568
5742
  kind: "quiz";
4569
5743
  default: {
@@ -4678,6 +5852,7 @@ declare function createRelayClient(options: {
4678
5852
  } | undefined;
4679
5853
  } | undefined;
4680
5854
  };
5855
+ integrations: "discord"[];
4681
5856
  fields: Record<string, {
4682
5857
  kind: "quiz";
4683
5858
  default: {
@@ -4791,6 +5966,7 @@ declare function createRelayClient(options: {
4791
5966
  } | undefined;
4792
5967
  } | undefined;
4793
5968
  };
5969
+ integrations: "discord"[];
4794
5970
  fields: Record<string, {
4795
5971
  kind: "quiz";
4796
5972
  default: {
@@ -5072,6 +6248,7 @@ declare function createRelayClient(options: {
5072
6248
  } | undefined;
5073
6249
  } | undefined;
5074
6250
  };
6251
+ integrations: "discord"[];
5075
6252
  fields: Record<string, {
5076
6253
  kind: "quiz";
5077
6254
  default: {
@@ -5213,6 +6390,7 @@ declare function createRelayClient(options: {
5213
6390
  } | undefined;
5214
6391
  } | undefined;
5215
6392
  };
6393
+ integrations: "discord"[];
5216
6394
  fields: Record<string, {
5217
6395
  kind: "quiz";
5218
6396
  default: {
@@ -5355,6 +6533,7 @@ declare function createRelayClient(options: {
5355
6533
  } | undefined;
5356
6534
  } | undefined;
5357
6535
  };
6536
+ connections: ("google" | "apple" | "x" | "discord")[];
5358
6537
  trigger: {
5359
6538
  kind: "manual";
5360
6539
  input: "quiz" | "photo" | "none";
@@ -5810,4 +6989,4 @@ declare function createRelayClient(options: {
5810
6989
  }>;
5811
6990
  };
5812
6991
 
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 };
6992
+ 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, resourceId, saveQuestDraftSchema, sessionSchema, walletChallengeInputSchema, walletProofSchema };