@domino-sdk/relay 1.74.0 → 1.75.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.
Files changed (53) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/authoring.d.ts +6 -6
  3. package/dist/authoring.js +4 -4
  4. package/dist/browser.d.ts +3 -3
  5. package/dist/browser.js +8 -8
  6. package/dist/{capability-error-Bn6cCqof.d.ts → capability-error-D56xxE2i.d.ts} +1 -1
  7. package/dist/{chunk-CW7FJ5PX.js → chunk-3KHVIUKK.js} +1 -1
  8. package/dist/{chunk-2LURSPDM.js → chunk-4WODSE6Y.js} +2 -2
  9. package/dist/{chunk-ELHMJODS.js → chunk-7B7MDHJ6.js} +1 -1
  10. package/dist/{chunk-6TDHRGBM.js → chunk-7QHROIML.js} +3 -0
  11. package/dist/{chunk-F66GGNKD.js → chunk-CEG67D4T.js} +1 -1
  12. package/dist/{chunk-JZT2NLSG.js → chunk-E2DB4MKM.js} +756 -662
  13. package/dist/{chunk-SVZ3QWHT.js → chunk-FBS65R66.js} +2 -2
  14. package/dist/{chunk-KP55TMCC.js → chunk-HEQ7HLXG.js} +1 -1
  15. package/dist/{chunk-TGQNNMCY.js → chunk-IMX45NSW.js} +6 -6
  16. package/dist/{chunk-RALBAKKX.js → chunk-K3PEQXDV.js} +1 -1
  17. package/dist/{chunk-7I7P5UVC.js → chunk-SIKP4VMU.js} +56 -7
  18. package/dist/{chunk-NI6XRGEL.js → chunk-SPLXHFVX.js} +2 -2
  19. package/dist/{chunk-KGZ7SRKJ.js → chunk-TAZ5AEYF.js} +1 -1
  20. package/dist/{chunk-DNOLNMCW.js → chunk-UHYKKC5U.js} +9 -8
  21. package/dist/{chunk-T4PTFCSB.js → chunk-XEXB3WZE.js} +1 -1
  22. package/dist/{chunk-HCOLMJFX.js → chunk-XJCKQSFS.js} +4 -3
  23. package/dist/{chunk-724CKAC7.js → chunk-ZEYI662X.js} +3 -3
  24. package/dist/{client-B2aVGf38.d.ts → client-336yROej.d.ts} +2 -2
  25. package/dist/{identity-integration-C03rUYc0.d.ts → identity-integration-DnSgQjbY.d.ts} +2 -0
  26. package/dist/index.d.ts +3 -3
  27. package/dist/index.js +7 -7
  28. package/dist/internal.d.ts +35 -19
  29. package/dist/internal.js +21 -17
  30. package/dist/{limits-p-Mg0oSi.d.ts → limits-DICxln-i.d.ts} +6 -0
  31. package/dist/portal-proxy.d.ts +7 -0
  32. package/dist/portal-proxy.js +125 -50
  33. package/dist/react/index.d.ts +5 -5
  34. package/dist/react/index.js +8 -8
  35. package/dist/runtime/authoring.js +1 -1
  36. package/dist/runtime/chunks/H6GH644T.js +1 -0
  37. package/dist/runtime/manifest.json +3 -3
  38. package/dist/runtime/schema.js +1 -1
  39. package/dist/schema.d.ts +4 -4
  40. package/dist/schema.js +7 -7
  41. package/dist/server/index.d.ts +3 -3
  42. package/dist/server/index.js +92 -18
  43. package/dist/{sign-in-providers-BG22ZZkl.d.ts → sign-in-providers-BMtk_NWY.d.ts} +1 -1
  44. package/dist/solana.d.ts +2 -2
  45. package/dist/solana.js +8 -8
  46. package/dist/{station-check-in-a1deSjbm.d.ts → station-check-in-vcDKQOet.d.ts} +2 -2
  47. package/dist/{submission-input-DBDLkTF8.d.ts → submission-input-D_NiBR0W.d.ts} +6 -1
  48. package/dist/telegram.d.ts +2 -2
  49. package/dist/testing.d.ts +2 -2
  50. package/dist/testing.js +15 -5
  51. package/dist/{transport-D77Rbf4D.d.ts → transport-BMwM6JlS.d.ts} +383 -32
  52. package/package.json +2 -1
  53. package/dist/runtime/chunks/NYEWMPJH.js +0 -1
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  attemptCaptureSchema
3
- } from "./chunk-SVZ3QWHT.js";
3
+ } from "./chunk-FBS65R66.js";
4
4
  import {
5
5
  completionReceiptListSchema,
6
6
  completionReceiptSchema,
@@ -15,7 +15,7 @@ import {
15
15
  webhookEndpointStateSchema,
16
16
  webhookSecretSchema,
17
17
  webhookStatePageSchema
18
- } from "./chunk-2LURSPDM.js";
18
+ } from "./chunk-4WODSE6Y.js";
19
19
  import {
20
20
  accountVouchedBySchema,
21
21
  appScheduleListSchema,
@@ -29,6 +29,7 @@ import {
29
29
  appStorageRowsSchema,
30
30
  appStorageSqlClearResultSchema,
31
31
  appStorageTablesSchema,
32
+ appStorageValueBytesSchema,
32
33
  appStorageValueSchema,
33
34
  credentialSecretSchema,
34
35
  customDomainListSchema,
@@ -43,7 +44,7 @@ import {
43
44
  memberImportSchema,
44
45
  offeredStarterSchema,
45
46
  starterIdSchema
46
- } from "./chunk-7I7P5UVC.js";
47
+ } from "./chunk-SIKP4VMU.js";
47
48
  import {
48
49
  automaticCatchUpPreviewSchema,
49
50
  automaticCatchUpResultSchema,
@@ -54,28 +55,28 @@ import {
54
55
  deploymentPreviewSchema,
55
56
  deploymentRecordSchema,
56
57
  deploymentResultSchema
57
- } from "./chunk-TGQNNMCY.js";
58
+ } from "./chunk-IMX45NSW.js";
58
59
  import {
59
60
  xUserSchema,
60
61
  xUsernameSchema
61
- } from "./chunk-RALBAKKX.js";
62
+ } from "./chunk-K3PEQXDV.js";
62
63
  import {
63
64
  analyticsCatalogSchema,
64
65
  analyticsMetricResultSchema,
65
66
  analyticsRanges,
66
67
  analyticsReadSchema,
67
68
  dashboardDefinitionSchema
68
- } from "./chunk-T4PTFCSB.js";
69
+ } from "./chunk-XEXB3WZE.js";
69
70
  import {
70
71
  createHttpExchange,
71
72
  uncertainStatuses
72
- } from "./chunk-F66GGNKD.js";
73
+ } from "./chunk-CEG67D4T.js";
73
74
  import {
74
75
  MANAGEMENT_TIMEOUT,
75
76
  lifetime,
76
77
  retrying,
77
78
  validTimeout
78
- } from "./chunk-HCOLMJFX.js";
79
+ } from "./chunk-XJCKQSFS.js";
79
80
  import {
80
81
  collectionPreviewSchema,
81
82
  creatorAccountProviderSchema,
@@ -85,14 +86,14 @@ import {
85
86
  questEnrollmentSchema,
86
87
  rewardDeliveriesSchema,
87
88
  rewardDeliverySchema
88
- } from "./chunk-KP55TMCC.js";
89
+ } from "./chunk-HEQ7HLXG.js";
89
90
  import {
90
91
  allocatedQuestSchema,
91
92
  catalogDeploymentPreviewSchema,
92
93
  questCatalogSchema,
93
94
  questDraftSchema,
94
95
  questPublicationPreviewSchema
95
- } from "./chunk-CW7FJ5PX.js";
96
+ } from "./chunk-3KHVIUKK.js";
96
97
  import {
97
98
  engagementBoundaryPageSchema,
98
99
  engagementChangePreviewSchema,
@@ -106,7 +107,7 @@ import {
106
107
  redemptionSchema,
107
108
  referralHistorySchema,
108
109
  referralManagementSchema
109
- } from "./chunk-KGZ7SRKJ.js";
110
+ } from "./chunk-TAZ5AEYF.js";
110
111
  import {
111
112
  appIdentityKindSchema,
112
113
  attemptSchema,
@@ -135,6 +136,7 @@ import {
135
136
  identifier,
136
137
  knownResponse,
137
138
  leaderboardExclusionGroupSchema,
139
+ leaderboardHistoryPageSchema,
138
140
  leaderboardPageSchema,
139
141
  leaderboardSettlementPoolSchema,
140
142
  leaderboardSettlementSchema,
@@ -193,7 +195,7 @@ import {
193
195
  walletSignInNetworksSchema,
194
196
  walletTransactionsSchema,
195
197
  walletUnlinkInputSchema
196
- } from "./chunk-6TDHRGBM.js";
198
+ } from "./chunk-7QHROIML.js";
197
199
  import {
198
200
  RequestError,
199
201
  isRequestError
@@ -821,6 +823,8 @@ var managedAttemptQuerySchema = /* @__PURE__ */ (() => z8.strictObject({
821
823
  q: z8.string().max(200).optional(),
822
824
  quest: identifier.optional(),
823
825
  status: z8.string().min(1).max(50).optional(),
826
+ from: z8.coerce.number().int().nonnegative().safe().optional(),
827
+ to: z8.coerce.number().int().nonnegative().safe().optional(),
824
828
  limit: pageLimit,
825
829
  cursor: pageCursorSchema.optional()
826
830
  }))();
@@ -2417,6 +2421,28 @@ var managedEntitlementQuerySchema = /* @__PURE__ */ (() => z21.strictObject({
2417
2421
  limit: pageLimit,
2418
2422
  cursor: pageCursorSchema.optional()
2419
2423
  }))();
2424
+ var EntitlementSourceKind = {
2425
+ /** A quest completion: `id` is the quest. */
2426
+ Quest: "quest",
2427
+ /** A leaderboard settlement's prize: `id` is the board. */
2428
+ Leaderboard: "leaderboard",
2429
+ /** A referral program's reward: `id` is the program, `invitee` the friend. */
2430
+ Referral: "referral",
2431
+ /** An offer redemption: `id` is the offer. */
2432
+ Offer: "offer"
2433
+ };
2434
+ var entitlementSourceSchema = /* @__PURE__ */ (() => z21.object({
2435
+ kind: z21.string(),
2436
+ id: identifier,
2437
+ completion: identifier.nullish(),
2438
+ attempt: identifier.nullish(),
2439
+ invitee: identifier.nullish(),
2440
+ redemption: identifier.nullish()
2441
+ }).loose())();
2442
+ var entitlementProvenanceSchema = /* @__PURE__ */ (() => z21.object({
2443
+ earnedAt: z21.number().nullish(),
2444
+ source: entitlementSourceSchema.nullish()
2445
+ }))();
2420
2446
  var managedEntitlementPageSchema = /* @__PURE__ */ (() => z21.object({
2421
2447
  items: z21.array(entitlementSchema),
2422
2448
  people: z21.array(personSchema),
@@ -2860,6 +2886,14 @@ var storageEndpoints = /* @__PURE__ */ (() => ({
2860
2886
  ledger: null,
2861
2887
  result: () => appStorageValueSchema
2862
2888
  }),
2889
+ bytes: managementEndpoint({
2890
+ method: "GET",
2891
+ path: "/storage/kv/{name}/bytes",
2892
+ parameters: { name: HOSTING_NAME_PATTERN },
2893
+ permission: "publish",
2894
+ ledger: null,
2895
+ result: () => appStorageValueBytesSchema
2896
+ }),
2863
2897
  // A SQL or KV clear's result, told apart by its `kind`.
2864
2898
  clear: managementEndpoint({
2865
2899
  method: "POST",
@@ -3442,27 +3476,39 @@ var inventoryEndpoints = /* @__PURE__ */ (() => ({
3442
3476
  })
3443
3477
  }))();
3444
3478
 
3445
- // src/server/settlement-payouts.ts
3479
+ // src/server/leaderboard-standing.ts
3446
3480
  import * as z28 from "zod";
3447
- var timestamp = /* @__PURE__ */ (() => z28.number().int().safe().nonnegative())();
3448
- var index = /* @__PURE__ */ (() => z28.number().int().safe().nonnegative())();
3449
- var actionId2 = /* @__PURE__ */ (() => z28.string().uuid().default(() => crypto.randomUUID()))();
3450
- var solanaPayoutMintSchema = /* @__PURE__ */ (() => z28.union([
3451
- z28.literal("SOL"),
3481
+ var leaderboardMemberStandingSchema = /* @__PURE__ */ (() => z28.object({
3482
+ leaderboard: identifier,
3483
+ member: identifier,
3484
+ status: z28.string(),
3485
+ rank: z28.number().int().positive().nullable(),
3486
+ score: z28.number().int().nullable(),
3487
+ /** Ranked participants on the board. */
3488
+ total: z28.number().int().nonnegative()
3489
+ }))();
3490
+
3491
+ // src/server/settlement-payouts.ts
3492
+ import * as z29 from "zod";
3493
+ var timestamp = /* @__PURE__ */ (() => z29.number().int().safe().nonnegative())();
3494
+ var index = /* @__PURE__ */ (() => z29.number().int().safe().nonnegative())();
3495
+ var actionId2 = /* @__PURE__ */ (() => z29.string().uuid().default(() => crypto.randomUUID()))();
3496
+ var solanaPayoutMintSchema = /* @__PURE__ */ (() => z29.union([
3497
+ z29.literal("SOL"),
3452
3498
  solanaAddressSchema
3453
3499
  ]))();
3454
- var solanaPayoutSquadsSchema = /* @__PURE__ */ (() => z28.strictObject({
3500
+ var solanaPayoutSquadsSchema = /* @__PURE__ */ (() => z29.strictObject({
3455
3501
  /** The multisig account (not its vault). */
3456
3502
  multisig: solanaAddressSchema,
3457
3503
  /** The vault the payout pays from; Squads' default vault is 0. */
3458
- vaultIndex: z28.number().int().min(0).max(255).default(0),
3504
+ vaultIndex: z29.number().int().min(0).max(255).default(0),
3459
3505
  /** The member that signs each batch's proposal transaction and pays its fees and rent. */
3460
3506
  proposer: solanaAddressSchema
3461
3507
  }))();
3462
- var solanaPayoutInputSchema = /* @__PURE__ */ (() => z28.strictObject({
3508
+ var solanaPayoutInputSchema = /* @__PURE__ */ (() => z29.strictObject({
3463
3509
  actionId: actionId2,
3464
3510
  /** The cluster, by CAIP-2 ID. */
3465
- network: z28.enum([solanaMainnet, solanaDevnet]),
3511
+ network: z29.enum([solanaMainnet, solanaDevnet]),
3466
3512
  mint: solanaPayoutMintSchema,
3467
3513
  /** The wallet that signs every batch, pays its fees and rent, and holds the tokens. */
3468
3514
  payer: solanaAddressSchema.optional(),
@@ -3472,57 +3518,57 @@ var solanaPayoutInputSchema = /* @__PURE__ */ (() => z28.strictObject({
3472
3518
  message: "Pass payer to pay from a wallet, or squads to pay from a multisig",
3473
3519
  path: ["payer"]
3474
3520
  }))();
3475
- var solanaPayoutConfirmationSchema = /* @__PURE__ */ (() => z28.strictObject({
3521
+ var solanaPayoutConfirmationSchema = /* @__PURE__ */ (() => z29.strictObject({
3476
3522
  actionId: actionId2,
3477
3523
  /** Signatures of transactions the team sent, which Relay reads first. */
3478
- signatures: z28.array(solanaSignatureSchema).max(100).default([])
3524
+ signatures: z29.array(solanaSignatureSchema).max(100).default([])
3479
3525
  }))();
3480
- var batchSchema = /* @__PURE__ */ (() => z28.object({
3526
+ var batchSchema = /* @__PURE__ */ (() => z29.object({
3481
3527
  index,
3482
3528
  /** The SPL Memo text the batch carries, which Relay finds it by. */
3483
- memo: z28.string(),
3529
+ memo: z29.string(),
3484
3530
  /**
3485
3531
  * The unsigned v0 transaction, base64. Its fee payer and only signer signs it: the payer, or for
3486
3532
  * a Squads payout the proposer.
3487
3533
  */
3488
- transaction: z28.string(),
3489
- status: z28.string(),
3534
+ transaction: z29.string(),
3535
+ status: z29.string(),
3490
3536
  /** The transaction Relay found for the batch; null while pending or expired. */
3491
- signature: z28.string().nullable(),
3537
+ signature: z29.string().nullable(),
3492
3538
  /** Base units the batch pays. */
3493
3539
  amount: baseUnitsSchema,
3494
3540
  /** Lamports for the token accounts the batch creates. */
3495
3541
  rent: baseUnitsSchema,
3496
3542
  /** The Squads vault transaction's index in its multisig; null for a wallet payout. */
3497
- transactionIndex: z28.string().nullable().default(null),
3543
+ transactionIndex: z29.string().nullable().default(null),
3498
3544
  /** The address of the batch's Squads proposal account; null for a wallet payout. */
3499
- proposal: z28.string().nullable().default(null),
3500
- payments: z28.array(
3501
- z28.object({
3545
+ proposal: z29.string().nullable().default(null),
3546
+ payments: z29.array(
3547
+ z29.object({
3502
3548
  member: identifier,
3503
3549
  /** The member's proven Solana wallet the share goes to. */
3504
- wallet: z28.string(),
3550
+ wallet: z29.string(),
3505
3551
  amount: baseUnitsSchema
3506
3552
  })
3507
3553
  )
3508
3554
  }))();
3509
- var solanaPayoutSchema = /* @__PURE__ */ (() => z28.object({
3555
+ var solanaPayoutSchema = /* @__PURE__ */ (() => z29.object({
3510
3556
  id: identifier,
3511
3557
  settlement: identifier,
3512
- network: z28.string(),
3558
+ network: z29.string(),
3513
3559
  /** `"SOL"` or the mint address. */
3514
- mint: z28.string(),
3560
+ mint: z29.string(),
3515
3561
  /** The mint's token program; null for SOL. */
3516
- tokenProgram: z28.string().nullable(),
3562
+ tokenProgram: z29.string().nullable(),
3517
3563
  /** What pays: `wallet`, or `squads`, whose vault is `payer`. */
3518
- source: z28.string().default("wallet"),
3564
+ source: z29.string().default("wallet"),
3519
3565
  /** The account that holds the tokens and pays: the wallet, or the multisig's vault. */
3520
- payer: z28.string(),
3566
+ payer: z29.string(),
3521
3567
  /** The Squads multisig, for a payout from its vault; null for a wallet payout. */
3522
- squads: z28.object({
3523
- multisig: z28.string(),
3524
- vaultIndex: z28.number().int().min(0).max(255),
3525
- proposer: z28.string(),
3568
+ squads: z29.object({
3569
+ multisig: z29.string(),
3570
+ vaultIndex: z29.number().int().min(0).max(255),
3571
+ proposer: z29.string(),
3526
3572
  /**
3527
3573
  * Lamports the proposer puts into each batch's vault transaction and proposal accounts,
3528
3574
  * together. Squads returns them to the multisig's rent collector when the accounts close.
@@ -3543,35 +3589,35 @@ var solanaPayoutSchema = /* @__PURE__ */ (() => z28.object({
3543
3589
  * The last block height at which the batches can land; after it, they expire. For a Squads
3544
3590
  * payout, the height by which the proposals must be created.
3545
3591
  */
3546
- lastValidBlockHeight: z28.string(),
3592
+ lastValidBlockHeight: z29.string(),
3547
3593
  createdAt: timestamp,
3548
- createdBy: z28.string(),
3549
- batches: z28.array(batchSchema),
3594
+ createdBy: z29.string(),
3595
+ batches: z29.array(batchSchema),
3550
3596
  /** Winners with a non-zero, unpaid share this payout leaves out. */
3551
- skipped: z28.array(
3552
- z28.object({
3597
+ skipped: z29.array(
3598
+ z29.object({
3553
3599
  member: identifier,
3554
3600
  share: baseUnitsSchema,
3555
- reason: z28.string()
3601
+ reason: z29.string()
3556
3602
  })
3557
3603
  )
3558
3604
  }))();
3559
- var solanaPayoutQuerySchema = /* @__PURE__ */ (() => z28.strictObject({
3605
+ var solanaPayoutQuerySchema = /* @__PURE__ */ (() => z29.strictObject({
3560
3606
  cursor: pageCursorSchema.optional(),
3561
- limit: z28.coerce.number().int().min(1).max(25).default(10)
3607
+ limit: z29.coerce.number().int().min(1).max(25).default(10)
3562
3608
  }))();
3563
- var solanaPayoutPageSchema = /* @__PURE__ */ (() => z28.object({
3564
- items: z28.array(solanaPayoutSchema),
3609
+ var solanaPayoutPageSchema = /* @__PURE__ */ (() => z29.object({
3610
+ items: z29.array(solanaPayoutSchema),
3565
3611
  nextCursor: pageCursorSchema.nullable()
3566
3612
  }))();
3567
- var solanaPayoutConfirmationResultSchema = /* @__PURE__ */ (() => z28.object({
3613
+ var solanaPayoutConfirmationResultSchema = /* @__PURE__ */ (() => z29.object({
3568
3614
  settlement: identifier,
3569
- batches: z28.array(
3570
- z28.object({
3615
+ batches: z29.array(
3616
+ z29.object({
3571
3617
  payout: identifier,
3572
3618
  index,
3573
- status: z28.string(),
3574
- signature: z28.string().nullable()
3619
+ status: z29.string(),
3620
+ signature: z29.string().nullable()
3575
3621
  })
3576
3622
  ),
3577
3623
  paid: index,
@@ -3586,61 +3632,61 @@ function squadsProposalUrl(payout, batch) {
3586
3632
  }
3587
3633
 
3588
3634
  // src/server/settlement-reviews.ts
3589
- import * as z29 from "zod";
3590
- var timestamp2 = /* @__PURE__ */ (() => z29.number().int().safe().nonnegative())();
3635
+ import * as z30 from "zod";
3636
+ var timestamp2 = /* @__PURE__ */ (() => z30.number().int().safe().nonnegative())();
3591
3637
  var decision = /* @__PURE__ */ (() => ({
3592
- status: z29.enum(["pending", "approved", "rejected"]),
3638
+ status: z30.enum(["pending", "approved", "rejected"]),
3593
3639
  /**
3594
3640
  * Present while the window has ended but Relay is still taking closing measurements of the
3595
3641
  * content its engagement points pay for. The settlement reads as `pending` with no rows, cannot
3596
3642
  * be approved yet, and freezes when the measurements arrive or their wait ends after `deadline`.
3597
3643
  */
3598
- closing: z29.object({ startedAt: timestamp2, deadline: timestamp2 }).optional(),
3599
- rejectedAt: z29.number().int().safe().nonnegative().nullable(),
3600
- rejectedBy: z29.string().nullable(),
3601
- rejectionReason: z29.string().nullable()
3644
+ closing: z30.object({ startedAt: timestamp2, deadline: timestamp2 }).optional(),
3645
+ rejectedAt: z30.number().int().safe().nonnegative().nullable(),
3646
+ rejectedBy: z30.string().nullable(),
3647
+ rejectionReason: z30.string().nullable()
3602
3648
  }))();
3603
3649
  var leaderboardSettlementReviewSummarySchema = /* @__PURE__ */ (() => leaderboardSettlementSummarySchema.extend(decision))();
3604
3650
  var leaderboardSettlementReviewSchema = /* @__PURE__ */ (() => leaderboardSettlementSchema.extend(decision))();
3605
- var leaderboardSettlementReviewQuerySchema = /* @__PURE__ */ (() => z29.strictObject({
3651
+ var leaderboardSettlementReviewQuerySchema = /* @__PURE__ */ (() => z30.strictObject({
3606
3652
  cursor: pageCursorSchema.optional(),
3607
- limit: z29.coerce.number().int().min(1).max(100).default(25)
3653
+ limit: z30.coerce.number().int().min(1).max(100).default(25)
3608
3654
  }))();
3609
- var leaderboardSettlementReviewPageSchema = /* @__PURE__ */ (() => z29.object({
3610
- items: z29.array(leaderboardSettlementReviewSummarySchema),
3655
+ var leaderboardSettlementReviewPageSchema = /* @__PURE__ */ (() => z30.object({
3656
+ items: z30.array(leaderboardSettlementReviewSummarySchema),
3611
3657
  nextCursor: pageCursorSchema.nullable()
3612
3658
  }))();
3613
- var leaderboardSettlementRejectionSchema = /* @__PURE__ */ (() => z29.strictObject({
3614
- actionId: z29.string().uuid().default(() => crypto.randomUUID()),
3615
- expectedCreatedAt: z29.number().int().safe().nonnegative(),
3616
- reason: z29.string().trim().min(1).max(500)
3659
+ var leaderboardSettlementRejectionSchema = /* @__PURE__ */ (() => z30.strictObject({
3660
+ actionId: z30.string().uuid().default(() => crypto.randomUUID()),
3661
+ expectedCreatedAt: z30.number().int().safe().nonnegative(),
3662
+ reason: z30.string().trim().min(1).max(500)
3617
3663
  }))();
3618
- var leaderboardSettlementMeasurementRetrySchema = /* @__PURE__ */ (() => z29.strictObject({
3619
- actionId: z29.string().uuid().default(() => crypto.randomUUID())
3664
+ var leaderboardSettlementMeasurementRetrySchema = /* @__PURE__ */ (() => z30.strictObject({
3665
+ actionId: z30.string().uuid().default(() => crypto.randomUUID())
3620
3666
  }))();
3621
- var leaderboardSettlementExportSchema = /* @__PURE__ */ (() => z29.object({
3667
+ var leaderboardSettlementExportSchema = /* @__PURE__ */ (() => z30.object({
3622
3668
  settlement: identifier,
3623
3669
  leaderboard: identifier,
3624
- title: z29.string(),
3625
- period: z29.object({ start: timestamp2, end: timestamp2 }),
3626
- status: z29.enum(["pending", "approved", "rejected"]),
3670
+ title: z30.string(),
3671
+ period: z30.object({ start: timestamp2, end: timestamp2 }),
3672
+ status: z30.enum(["pending", "approved", "rejected"]),
3627
3673
  pool: leaderboardSettlementPoolSchema.nullable(),
3628
- rows: z29.array(
3629
- z29.object({
3674
+ rows: z30.array(
3675
+ z30.object({
3630
3676
  member: identifier,
3631
- score: z29.number().int().safe(),
3632
- rank: z29.number().int().safe().positive(),
3677
+ score: z30.number().int().safe(),
3678
+ rank: z30.number().int().safe().positive(),
3633
3679
  /** The pool share in base units; null without a pool. */
3634
3680
  share: baseUnitsSchema.nullable(),
3635
3681
  /** The pool share in whole units: `"600.5"` for 600500000 USDC base units. */
3636
- amount: z29.string().nullable(),
3682
+ amount: z30.string().nullable(),
3637
3683
  /** Linked wallets the member proved, newest first per chain family; a smart wallet names its `provedOn` chain. */
3638
- wallets: z29.array(
3639
- z29.object({
3684
+ wallets: z30.array(
3685
+ z30.object({
3640
3686
  chain: walletChainSchema,
3641
3687
  /** The CAIP-2 network, for Cosmos wallets only. */
3642
- network: z29.string().nullable(),
3643
- address: z29.string(),
3688
+ network: z30.string().nullable(),
3689
+ address: z30.string(),
3644
3690
  /** EVM smart-contract wallets only: the CAIP-2 network that proved it, the one chain to pay it on. */
3645
3691
  provedOn: evmChainIdSchema.optional()
3646
3692
  })
@@ -3669,7 +3715,7 @@ function settlementPayoutCsv(exported) {
3669
3715
  }
3670
3716
 
3671
3717
  // src/server/endpoints/leaderboards.ts
3672
- import * as z30 from "zod";
3718
+ import * as z31 from "zod";
3673
3719
  var leaderboard = { leaderboard: ID_PATTERN };
3674
3720
  var settlement = { settlement: ID_PATTERN };
3675
3721
  var resource2 = { resource: ID_PATTERN };
@@ -3680,7 +3726,7 @@ var leaderboardEndpoints = /* @__PURE__ */ (() => ({
3680
3726
  parameters: {},
3681
3727
  permission: "read",
3682
3728
  ledger: "leaderboards.listManaged",
3683
- result: () => z30.array(publishedLeaderboardSchema)
3729
+ result: () => z31.array(publishedLeaderboardSchema)
3684
3730
  }),
3685
3731
  standings: managementEndpoint({
3686
3732
  method: "GET",
@@ -3690,13 +3736,29 @@ var leaderboardEndpoints = /* @__PURE__ */ (() => ({
3690
3736
  ledger: "leaderboards.readManaged",
3691
3737
  result: () => leaderboardPageSchema
3692
3738
  }),
3739
+ memberStanding: managementEndpoint({
3740
+ method: "GET",
3741
+ path: "/leaderboards/{leaderboard}/members/{member}",
3742
+ parameters: { leaderboard: ID_PATTERN, member: ID_PATTERN },
3743
+ permission: "read",
3744
+ ledger: "leaderboards.memberStanding",
3745
+ result: () => leaderboardMemberStandingSchema
3746
+ }),
3747
+ memberEntries: managementEndpoint({
3748
+ method: "GET",
3749
+ path: "/leaderboards/{leaderboard}/members/{member}/entries",
3750
+ parameters: { leaderboard: ID_PATTERN, member: ID_PATTERN },
3751
+ permission: "read",
3752
+ ledger: "leaderboards.memberEntries",
3753
+ result: () => leaderboardHistoryPageSchema
3754
+ }),
3693
3755
  history: managementEndpoint({
3694
3756
  method: "GET",
3695
3757
  path: "/leaderboards/{leaderboard}/history",
3696
3758
  parameters: leaderboard,
3697
3759
  permission: "read",
3698
3760
  ledger: "leaderboards.history",
3699
- result: () => z30.array(publishedLeaderboardSchema)
3761
+ result: () => z31.array(publishedLeaderboardSchema)
3700
3762
  }),
3701
3763
  exclusions: managementEndpoint({
3702
3764
  method: "GET",
@@ -3704,7 +3766,7 @@ var leaderboardEndpoints = /* @__PURE__ */ (() => ({
3704
3766
  parameters: leaderboard,
3705
3767
  permission: "read",
3706
3768
  ledger: "leaderboards.exclusions",
3707
- result: () => z30.array(z30.object({ member: identifier }))
3769
+ result: () => z31.array(z31.object({ member: identifier }))
3708
3770
  }),
3709
3771
  exclude: managementEndpoint({
3710
3772
  method: "POST",
@@ -3769,7 +3831,7 @@ var leaderboardEndpoints = /* @__PURE__ */ (() => ({
3769
3831
  parameters: leaderboard,
3770
3832
  permission: "read",
3771
3833
  ledger: "leaderboards.settlements",
3772
- result: () => z30.array(leaderboardSettlementSummarySchema)
3834
+ result: () => z31.array(leaderboardSettlementSummarySchema)
3773
3835
  }),
3774
3836
  settlement: managementEndpoint({
3775
3837
  method: "GET",
@@ -3932,61 +3994,61 @@ var memberImportEndpoints = /* @__PURE__ */ (() => ({
3932
3994
  }))();
3933
3995
 
3934
3996
  // src/server/creator-accounts.ts
3935
- import * as z31 from "zod";
3936
- var managedCreatorAccountSchema = /* @__PURE__ */ (() => z31.object({
3997
+ import * as z32 from "zod";
3998
+ var managedCreatorAccountSchema = /* @__PURE__ */ (() => z32.object({
3937
3999
  provider: creatorAccountProviderSchema,
3938
4000
  /** The platform's account ID, such as a YouTube channel ID (`UC…`) or a TikTok `open_id`. */
3939
- subject: z31.string().min(1),
3940
- revision: z31.number().int().nonnegative(),
4001
+ subject: z32.string().min(1),
4002
+ revision: z32.number().int().nonnegative(),
3941
4003
  /** When the member linked it, epoch milliseconds. */
3942
- linkedAt: z31.number().int().nonnegative().nullable(),
3943
- status: z31.enum(["connected", "needs-reconnect"]),
4004
+ linkedAt: z32.number().int().nonnegative().nullable(),
4005
+ status: z32.enum(["connected", "needs-reconnect"]),
3944
4006
  /** Why the member must link it again: `revoked`, `expired` or `missing-scope`. */
3945
- reason: z31.string().optional(),
4007
+ reason: z32.string().optional(),
3946
4008
  /** The public name, handle and picture the platform reported at link time. */
3947
- profile: z31.object({
3948
- name: z31.string().optional(),
3949
- username: z31.string().optional(),
3950
- imageUrl: z31.string().optional()
4009
+ profile: z32.object({
4010
+ name: z32.string().optional(),
4011
+ username: z32.string().optional(),
4012
+ imageUrl: z32.string().optional()
3951
4013
  }).nullable()
3952
4014
  }))();
3953
- var managedCreatorAccountsSchema = /* @__PURE__ */ (() => z31.object({
3954
- accounts: z31.array(managedCreatorAccountSchema)
4015
+ var managedCreatorAccountsSchema = /* @__PURE__ */ (() => z32.object({
4016
+ accounts: z32.array(managedCreatorAccountSchema)
3955
4017
  }))();
3956
- var memberCreatorAccountUnlinkInputSchema = /* @__PURE__ */ (() => z31.strictObject({
4018
+ var memberCreatorAccountUnlinkInputSchema = /* @__PURE__ */ (() => z32.strictObject({
3957
4019
  provider: creatorAccountProviderSchema,
3958
- subject: z31.string().min(1).max(4096),
3959
- revision: z31.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER - 1),
3960
- reason: z31.string().trim().min(1).max(500),
4020
+ subject: z32.string().min(1).max(4096),
4021
+ revision: z32.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER - 1),
4022
+ reason: z32.string().trim().min(1).max(500),
3961
4023
  actionId: identifier.optional()
3962
4024
  }))();
3963
4025
 
3964
4026
  // src/server/identity-links.ts
3965
- import * as z32 from "zod";
4027
+ import * as z33 from "zod";
3966
4028
  var walletIdentitySelectorSchema = /* @__PURE__ */ (() => walletUnlinkInputSchema.extend({
3967
- kind: z32.literal("wallet")
4029
+ kind: z33.literal("wallet")
3968
4030
  }))();
3969
- var oauthIdentitySelectorSchema = /* @__PURE__ */ (() => z32.strictObject({
3970
- kind: z32.literal("oauth"),
3971
- provider: z32.enum(["x", "discord"]),
3972
- issuer: z32.string().min(1).max(4096),
3973
- subject: z32.string().min(1).max(4096)
4031
+ var oauthIdentitySelectorSchema = /* @__PURE__ */ (() => z33.strictObject({
4032
+ kind: z33.literal("oauth"),
4033
+ provider: z33.enum(["x", "discord"]),
4034
+ issuer: z33.string().min(1).max(4096),
4035
+ subject: z33.string().min(1).max(4096)
3974
4036
  }))();
3975
- var identityLinkSelectorSchema = /* @__PURE__ */ (() => z32.discriminatedUnion("kind", [
4037
+ var identityLinkSelectorSchema = /* @__PURE__ */ (() => z33.discriminatedUnion("kind", [
3976
4038
  walletIdentitySelectorSchema,
3977
4039
  oauthIdentitySelectorSchema
3978
4040
  ]))();
3979
4041
  var state = /* @__PURE__ */ (() => ({
3980
- revision: z32.number().int().safe().nonnegative(),
3981
- linked: z32.boolean(),
3982
- canRelink: z32.boolean(),
3983
- linkedAt: z32.number().int().safe().nonnegative().nullable()
4042
+ revision: z33.number().int().safe().nonnegative(),
4043
+ linked: z33.boolean(),
4044
+ canRelink: z33.boolean(),
4045
+ linkedAt: z33.number().int().safe().nonnegative().nullable()
3984
4046
  }))();
3985
- var memberIdentityLinkSchema = /* @__PURE__ */ (() => z32.discriminatedUnion("kind", [
4047
+ var memberIdentityLinkSchema = /* @__PURE__ */ (() => z33.discriminatedUnion("kind", [
3986
4048
  walletIdentitySelectorSchema.strip().extend({
3987
4049
  ...state,
3988
- scope: z32.literal("project"),
3989
- project: z32.string()
4050
+ scope: z33.literal("project"),
4051
+ project: z33.string()
3990
4052
  }),
3991
4053
  oauthIdentitySelectorSchema.strip().extend({
3992
4054
  ...state,
@@ -3994,26 +4056,26 @@ var memberIdentityLinkSchema = /* @__PURE__ */ (() => z32.discriminatedUnion("ki
3994
4056
  * Legacy name. An OAuth link belongs to the member's project and environment, like a wallet
3995
4057
  * link; the value stays for 1.x compatibility.
3996
4058
  */
3997
- scope: z32.literal("organization-environment")
4059
+ scope: z33.literal("organization-environment")
3998
4060
  })
3999
4061
  ]))();
4000
- var identityLinkRelinkInputSchema = /* @__PURE__ */ (() => z32.strictObject({
4001
- actionId: z32.string().uuid().default(() => crypto.randomUUID()),
4062
+ var identityLinkRelinkInputSchema = /* @__PURE__ */ (() => z33.strictObject({
4063
+ actionId: z33.string().uuid().default(() => crypto.randomUUID()),
4002
4064
  identity: identityLinkSelectorSchema,
4003
- expectedRevision: z32.number().int().safe().nonnegative(),
4004
- reason: z32.string().trim().min(1).max(500)
4065
+ expectedRevision: z33.number().int().safe().nonnegative(),
4066
+ reason: z33.string().trim().min(1).max(500)
4005
4067
  }))();
4006
- var memberIdentityLinkPageSchema = /* @__PURE__ */ (() => z32.object({
4007
- items: z32.array(memberIdentityLinkSchema),
4068
+ var memberIdentityLinkPageSchema = /* @__PURE__ */ (() => z33.object({
4069
+ items: z33.array(memberIdentityLinkSchema),
4008
4070
  nextCursor: pageCursorSchema.nullable()
4009
4071
  }))();
4010
4072
 
4011
4073
  // src/server/identity-states.ts
4012
- import * as z34 from "zod";
4074
+ import * as z35 from "zod";
4013
4075
 
4014
4076
  // src/server/identity-source.ts
4015
- import * as z33 from "zod";
4016
- var identitySourceSchema = /* @__PURE__ */ (() => z33.string())();
4077
+ import * as z34 from "zod";
4078
+ var identitySourceSchema = /* @__PURE__ */ (() => z34.string())();
4017
4079
  var identitySourceFields = /* @__PURE__ */ (() => ({
4018
4080
  /** Where Relay got the identity. Absent from Relay versions without it. */
4019
4081
  source: identitySourceSchema.optional(),
@@ -4021,58 +4083,58 @@ var identitySourceFields = /* @__PURE__ */ (() => ({
4021
4083
  * The ID of the member import that attached it, while `source` is `import`. Absent for an
4022
4084
  * account an import attached before Relay recorded which import did.
4023
4085
  */
4024
- import: z33.string().optional()
4086
+ import: z34.string().optional()
4025
4087
  }))();
4026
4088
 
4027
4089
  // src/server/identity-states.ts
4028
- var telegramIdentitySelectorSchema = /* @__PURE__ */ (() => z34.strictObject({
4029
- kind: z34.literal("telegram"),
4030
- subject: z34.string().min(1).max(4096)
4090
+ var telegramIdentitySelectorSchema = /* @__PURE__ */ (() => z35.strictObject({
4091
+ kind: z35.literal("telegram"),
4092
+ subject: z35.string().min(1).max(4096)
4031
4093
  }))();
4032
- var appIdentitySelectorSchema = /* @__PURE__ */ (() => z34.strictObject({
4033
- kind: z34.literal("app"),
4094
+ var appIdentitySelectorSchema = /* @__PURE__ */ (() => z35.strictObject({
4095
+ kind: z35.literal("app"),
4034
4096
  appKind: appIdentityKindSchema,
4035
- subject: z34.string().min(1).max(256)
4097
+ subject: z35.string().min(1).max(256)
4036
4098
  }))();
4037
- var memberIdentitySelectorSchema = /* @__PURE__ */ (() => z34.discriminatedUnion("kind", [
4099
+ var memberIdentitySelectorSchema = /* @__PURE__ */ (() => z35.discriminatedUnion("kind", [
4038
4100
  walletIdentitySelectorSchema,
4039
4101
  oauthIdentitySelectorSchema,
4040
4102
  telegramIdentitySelectorSchema,
4041
4103
  appIdentitySelectorSchema
4042
4104
  ]))();
4043
- var memberIdentityReferenceSchema = /* @__PURE__ */ (() => z34.union([
4105
+ var memberIdentityReferenceSchema = /* @__PURE__ */ (() => z35.union([
4044
4106
  memberIdentitySelectorSchema,
4045
4107
  identityReferenceSchema
4046
4108
  ]))();
4047
4109
  var state2 = /* @__PURE__ */ (() => ({
4048
4110
  /** Every identity state belongs to the member's project and environment. */
4049
- scope: z34.literal("project"),
4111
+ scope: z35.literal("project"),
4050
4112
  /**
4051
4113
  * What `expectedRevision` names. A wallet and an app identity count their own changes; an X,
4052
4114
  * Discord or Telegram account shares its provider's selection revision with the member's other
4053
4115
  * accounts of that provider, because the member selects one of them at a time.
4054
4116
  */
4055
- revision: z34.number().int().safe().nonnegative(),
4117
+ revision: z35.number().int().safe().nonnegative(),
4056
4118
  /** Whether trackers attribute records to the member through this identity. */
4057
- linked: z34.boolean(),
4119
+ linked: z35.boolean(),
4058
4120
  /** When the current link began; null while unlinked, or for a link older than link times. */
4059
- linkedAt: z34.number().int().safe().nonnegative().nullable(),
4121
+ linkedAt: z35.number().int().safe().nonnegative().nullable(),
4060
4122
  /** When an operator or the member unlinked a wallet or app identity; null otherwise. */
4061
- unlinkedAt: z34.number().int().safe().nonnegative().nullable(),
4123
+ unlinkedAt: z35.number().int().safe().nonnegative().nullable(),
4062
4124
  /** "member", or the operator or key that unlinked it. */
4063
- unlinkedBy: z34.string().nullable(),
4064
- canUnlink: z34.boolean(),
4125
+ unlinkedBy: z35.string().nullable(),
4126
+ canUnlink: z35.boolean(),
4065
4127
  /**
4066
4128
  * False while linked, and for an X, Discord or Telegram account while the member has selected
4067
4129
  * another account of that provider: unlink that one first.
4068
4130
  */
4069
- canRelink: z34.boolean(),
4131
+ canRelink: z35.boolean(),
4070
4132
  /**
4071
4133
  * For a wallet: whether it signs the member in, which `setSignIn` changes on its own. Null for
4072
4134
  * the other kinds: an app identity signs in exactly while it is linked, and an X, Discord or
4073
4135
  * Telegram account signs in as its provider allows, whatever its link.
4074
4136
  */
4075
- signIn: z34.boolean().nullable()
4137
+ signIn: z35.boolean().nullable()
4076
4138
  }))();
4077
4139
  var account = /* @__PURE__ */ (() => ({
4078
4140
  /**
@@ -4080,7 +4142,7 @@ var account = /* @__PURE__ */ (() => ({
4080
4142
  * app login's server at sign-in), until the member links that provider's account through Domino.
4081
4143
  * Absent from Relay versions without it.
4082
4144
  */
4083
- imported: z34.boolean().optional(),
4145
+ imported: z35.boolean().optional(),
4084
4146
  /**
4085
4147
  * The app login that vouched for the account at sign-in, for an `imported` account no member
4086
4148
  * import attached. Absent from Relay versions without it.
@@ -4088,145 +4150,145 @@ var account = /* @__PURE__ */ (() => ({
4088
4150
  vouchedBy: accountVouchedBySchema.optional(),
4089
4151
  ...identitySourceFields
4090
4152
  }))();
4091
- var memberIdentityStateSchema = /* @__PURE__ */ (() => z34.discriminatedUnion("kind", [
4153
+ var memberIdentityStateSchema = /* @__PURE__ */ (() => z35.discriminatedUnion("kind", [
4092
4154
  walletIdentitySelectorSchema.strip().extend({ ...state2, ...identitySourceFields }),
4093
4155
  oauthIdentitySelectorSchema.strip().extend({ ...state2, ...account }),
4094
4156
  telegramIdentitySelectorSchema.strip().extend({ ...state2, ...account }),
4095
4157
  appIdentitySelectorSchema.strip().extend({ ...state2, ...identitySourceFields })
4096
4158
  ]))();
4097
- var memberIdentityStatePageSchema = /* @__PURE__ */ (() => z34.object({
4098
- items: z34.array(memberIdentityStateSchema),
4159
+ var memberIdentityStatePageSchema = /* @__PURE__ */ (() => z35.object({
4160
+ items: z35.array(memberIdentityStateSchema),
4099
4161
  nextCursor: pageCursorSchema.nullable()
4100
4162
  }))();
4101
4163
  var command = /* @__PURE__ */ (() => ({
4102
- actionId: z34.string().uuid().default(() => crypto.randomUUID()),
4103
- reason: z34.string().trim().min(1).max(500)
4164
+ actionId: z35.string().uuid().default(() => crypto.randomUUID()),
4165
+ reason: z35.string().trim().min(1).max(500)
4104
4166
  }))();
4105
- var memberIdentityStateChangeInputSchema = /* @__PURE__ */ (() => z34.strictObject({
4167
+ var memberIdentityStateChangeInputSchema = /* @__PURE__ */ (() => z35.strictObject({
4106
4168
  ...command,
4107
4169
  identity: memberIdentityReferenceSchema,
4108
- expectedRevision: z34.number().int().safe().nonnegative()
4170
+ expectedRevision: z35.number().int().safe().nonnegative()
4109
4171
  }))();
4110
- var memberIdentityLinkChangeInputSchema = /* @__PURE__ */ (() => z34.strictObject({
4172
+ var memberIdentityLinkChangeInputSchema = /* @__PURE__ */ (() => z35.strictObject({
4111
4173
  ...command,
4112
4174
  identity: memberIdentitySelectorSchema,
4113
- expectedRevision: z34.number().int().safe().nonnegative()
4175
+ expectedRevision: z35.number().int().safe().nonnegative()
4114
4176
  }))();
4115
- var memberIdentitySignInInputSchema = /* @__PURE__ */ (() => z34.strictObject({
4177
+ var memberIdentitySignInInputSchema = /* @__PURE__ */ (() => z35.strictObject({
4116
4178
  ...command,
4117
- identity: z34.union([
4179
+ identity: z35.union([
4118
4180
  walletIdentitySelectorSchema,
4119
4181
  // An import row's Cosmos wallet names its network too; the address alone names the wallet.
4120
4182
  walletIdentitySelectorSchema.extend({ network: cosmosNetworkSchema }).transform(({ network: _, ...wallet }) => wallet)
4121
4183
  ]),
4122
- enabled: z34.boolean()
4184
+ enabled: z35.boolean()
4123
4185
  }))();
4124
4186
 
4125
4187
  // src/server/member-accounts.ts
4126
- import * as z35 from "zod";
4188
+ import * as z36 from "zod";
4127
4189
  var ManagedAccountStatus = {
4128
4190
  Connected: "connected",
4129
4191
  Disconnected: "disconnected"
4130
4192
  };
4131
- var managedAccountStatusSchema = /* @__PURE__ */ (() => z35.string())();
4132
- var managedAccountSchema = /* @__PURE__ */ (() => z35.object({
4193
+ var managedAccountStatusSchema = /* @__PURE__ */ (() => z36.string())();
4194
+ var managedAccountSchema = /* @__PURE__ */ (() => z36.object({
4133
4195
  provider: signInProviderSchema,
4134
- revision: z35.number().int().nonnegative(),
4196
+ revision: z36.number().int().nonnegative(),
4135
4197
  status: managedAccountStatusSchema,
4136
4198
  /** The provider's stable user ID, such as the numeric Telegram user ID; null while disconnected. */
4137
- subject: z35.string().nullable(),
4199
+ subject: z36.string().nullable(),
4138
4200
  /** When the selection was linked, epoch milliseconds; null while disconnected. */
4139
- linkedAt: z35.number().nullable(),
4201
+ linkedAt: z36.number().nullable(),
4140
4202
  /**
4141
4203
  * True when the organization vouched for the account, not the member's proof: a member import
4142
4204
  * attached it, or an app login's server did at sign-in (`vouchedBy`).
4143
4205
  */
4144
- imported: z35.boolean().optional(),
4206
+ imported: z36.boolean().optional(),
4145
4207
  /** The app login that vouched for the account at sign-in, for an `imported` account no import attached. */
4146
4208
  vouchedBy: accountVouchedBySchema.optional(),
4147
4209
  /** True for a real account an operator linked to a test member without OAuth (`testMembers.linkAccount`). */
4148
- testLinked: z35.boolean().optional(),
4210
+ testLinked: z36.boolean().optional(),
4149
4211
  ...identitySourceFields
4150
4212
  }))();
4151
- var managedAccountsSchema = /* @__PURE__ */ (() => z35.object({
4152
- accounts: z35.array(managedAccountSchema)
4213
+ var managedAccountsSchema = /* @__PURE__ */ (() => z36.object({
4214
+ accounts: z36.array(managedAccountSchema)
4153
4215
  }))();
4154
- var memberAccountUnlinkInputSchema = /* @__PURE__ */ (() => z35.strictObject({
4216
+ var memberAccountUnlinkInputSchema = /* @__PURE__ */ (() => z36.strictObject({
4155
4217
  provider: signInProviderInputSchema,
4156
- subject: z35.string().min(1).max(4096),
4157
- expectedRevision: z35.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER - 1),
4158
- reason: z35.string().trim().min(1).max(500),
4159
- actionId: z35.string().uuid()
4218
+ subject: z36.string().min(1).max(4096),
4219
+ expectedRevision: z36.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER - 1),
4220
+ reason: z36.string().trim().min(1).max(500),
4221
+ actionId: z36.string().uuid()
4160
4222
  }))();
4161
4223
 
4162
4224
  // src/server/member-bans.ts
4163
- import * as z36 from "zod";
4164
- var memberBanRollbackSchema = /* @__PURE__ */ (() => z36.object({
4165
- completions: z36.boolean().default(false),
4166
- referralPayouts: z36.boolean().default(false),
4167
- pointAwards: z36.boolean().default(false)
4225
+ import * as z37 from "zod";
4226
+ var memberBanRollbackSchema = /* @__PURE__ */ (() => z37.object({
4227
+ completions: z37.boolean().default(false),
4228
+ referralPayouts: z37.boolean().default(false),
4229
+ pointAwards: z37.boolean().default(false)
4168
4230
  }).strict())();
4169
- var banReason = /* @__PURE__ */ (() => z36.string().trim().min(1).max(500))();
4170
- var memberBanInputSchema = /* @__PURE__ */ (() => z36.object({
4231
+ var banReason = /* @__PURE__ */ (() => z37.string().trim().min(1).max(500))();
4232
+ var memberBanInputSchema = /* @__PURE__ */ (() => z37.object({
4171
4233
  actionId: identifier,
4172
4234
  reason: banReason,
4173
4235
  rollback: memberBanRollbackSchema.optional()
4174
4236
  }).strict())();
4175
- var memberBanPreviewInputSchema = /* @__PURE__ */ (() => z36.object({ rollback: memberBanRollbackSchema.optional() }).strict())();
4176
- var memberUnbanInputSchema = /* @__PURE__ */ (() => z36.object({
4237
+ var memberBanPreviewInputSchema = /* @__PURE__ */ (() => z37.object({ rollback: memberBanRollbackSchema.optional() }).strict())();
4238
+ var memberUnbanInputSchema = /* @__PURE__ */ (() => z37.object({
4177
4239
  actionId: identifier,
4178
4240
  reason: banReason,
4179
- restoreCompletions: z36.boolean().default(false)
4241
+ restoreCompletions: z37.boolean().default(false)
4180
4242
  }).strict())();
4181
- var points = /* @__PURE__ */ (() => z36.number().int().nonnegative())();
4182
- var memberBanOutcomeSchema = /* @__PURE__ */ (() => z36.object({
4243
+ var points = /* @__PURE__ */ (() => z37.number().int().nonnegative())();
4244
+ var memberBanOutcomeSchema = /* @__PURE__ */ (() => z37.object({
4183
4245
  attemptsRejected: points,
4184
4246
  completionsRevoked: points,
4185
4247
  completionsRestored: points,
4186
- completionsKept: z36.array(
4187
- z36.object({ completion: identifier, code: z36.string() })
4248
+ completionsKept: z37.array(
4249
+ z37.object({ completion: identifier, code: z37.string() })
4188
4250
  ),
4189
4251
  entriesReversed: points,
4190
4252
  referralAccounts: points,
4191
- points: z36.array(
4192
- z36.object({ ledger: identifier, reversed: points, unreversed: points })
4253
+ points: z37.array(
4254
+ z37.object({ ledger: identifier, reversed: points, unreversed: points })
4193
4255
  ),
4194
- referralDebt: z36.array(z36.object({ ledger: identifier, amount: points }))
4256
+ referralDebt: z37.array(z37.object({ ledger: identifier, amount: points }))
4195
4257
  }))();
4196
- var runStatusSchema = /* @__PURE__ */ (() => z36.string())();
4197
- var runSchema = /* @__PURE__ */ (() => z36.object({
4258
+ var runStatusSchema = /* @__PURE__ */ (() => z37.string())();
4259
+ var runSchema = /* @__PURE__ */ (() => z37.object({
4198
4260
  status: runStatusSchema,
4199
- finishedAt: z36.number().int().nullable(),
4261
+ finishedAt: z37.number().int().nullable(),
4200
4262
  outcome: memberBanOutcomeSchema.nullable()
4201
4263
  }))();
4202
- var memberBanSchema = /* @__PURE__ */ (() => z36.object({
4264
+ var memberBanSchema = /* @__PURE__ */ (() => z37.object({
4203
4265
  id: identifier,
4204
4266
  member: identifier,
4205
- reason: z36.string(),
4206
- bannedAt: z36.number().int(),
4207
- bannedBy: z36.string().nullable(),
4267
+ reason: z37.string(),
4268
+ bannedAt: z37.number().int(),
4269
+ bannedBy: z37.string().nullable(),
4208
4270
  rollback: runSchema.extend({
4209
- completions: z36.boolean(),
4210
- referralPayouts: z36.boolean(),
4211
- pointAwards: z36.boolean()
4212
- }),
4213
- unban: z36.object({
4214
- reason: z36.string(),
4215
- unbannedAt: z36.number().int(),
4216
- by: z36.string().nullable(),
4217
- restoreCompletions: z36.boolean(),
4271
+ completions: z37.boolean(),
4272
+ referralPayouts: z37.boolean(),
4273
+ pointAwards: z37.boolean()
4274
+ }),
4275
+ unban: z37.object({
4276
+ reason: z37.string(),
4277
+ unbannedAt: z37.number().int(),
4278
+ by: z37.string().nullable(),
4279
+ restoreCompletions: z37.boolean(),
4218
4280
  restore: runSchema.nullable()
4219
4281
  }).nullable()
4220
4282
  }))();
4221
- var memberBanPreviewSchema = /* @__PURE__ */ (() => z36.object({
4283
+ var memberBanPreviewSchema = /* @__PURE__ */ (() => z37.object({
4222
4284
  member: identifier,
4223
- banned: z36.boolean(),
4285
+ banned: z37.boolean(),
4224
4286
  attempts: points,
4225
4287
  completions: points,
4226
4288
  entries: points,
4227
4289
  referralAccounts: points,
4228
- points: z36.array(
4229
- z36.object({
4290
+ points: z37.array(
4291
+ z37.object({
4230
4292
  ledger: identifier,
4231
4293
  completions: points,
4232
4294
  pointAwards: points,
@@ -4237,11 +4299,11 @@ var memberBanPreviewSchema = /* @__PURE__ */ (() => z36.object({
4237
4299
  referralDebt: points
4238
4300
  })
4239
4301
  ),
4240
- inviters: z36.array(
4241
- z36.object({
4302
+ inviters: z37.array(
4303
+ z37.object({
4242
4304
  member: identifier,
4243
- ledgers: z36.array(
4244
- z36.object({
4305
+ ledgers: z37.array(
4306
+ z37.object({
4245
4307
  ledger: identifier,
4246
4308
  bonus: points,
4247
4309
  reversed: points,
@@ -4253,44 +4315,44 @@ var memberBanPreviewSchema = /* @__PURE__ */ (() => z36.object({
4253
4315
  }))();
4254
4316
 
4255
4317
  // src/server/member-erasure.ts
4256
- import * as z37 from "zod";
4318
+ import * as z38 from "zod";
4257
4319
  var memberErasureInputSchema = evidenceRedactionInputSchema;
4258
- var memberErasureDeletedSchema = /* @__PURE__ */ (() => z37.object({
4320
+ var memberErasureDeletedSchema = /* @__PURE__ */ (() => z38.object({
4259
4321
  /** The profile: display name and avatar. 0 or 1. */
4260
- profiles: z37.number().int().nonnegative(),
4322
+ profiles: z38.number().int().nonnegative(),
4261
4323
  /** Sign-in identities. */
4262
- identities: z37.number().int().nonnegative(),
4324
+ identities: z38.number().int().nonnegative(),
4263
4325
  /** Linked X, Discord, Telegram, Google, Apple and email accounts. */
4264
- accounts: z37.number().int().nonnegative(),
4326
+ accounts: z38.number().int().nonnegative(),
4265
4327
  /** `app:<name>` identities your app's integration or an import gave. */
4266
- appIdentities: z37.number().int().nonnegative(),
4328
+ appIdentities: z38.number().int().nonnegative(),
4267
4329
  /** Linked wallet addresses. */
4268
- wallets: z37.number().int().nonnegative(),
4330
+ wallets: z38.number().int().nonnegative(),
4269
4331
  /** Signed-in sessions, ended at once. */
4270
- sessions: z37.number().int().nonnegative(),
4332
+ sessions: z38.number().int().nonnegative(),
4271
4333
  /** Marketing consent records. */
4272
- consents: z37.number().int().nonnegative(),
4334
+ consents: z38.number().int().nonnegative(),
4273
4335
  /** Leaderboard aliases. */
4274
- aliases: z37.number().int().nonnegative(),
4336
+ aliases: z38.number().int().nonnegative(),
4275
4337
  /** Attempts whose submitted evidence (photo, text, URL or answers) was deleted. */
4276
- evidence: z37.number().int().nonnegative(),
4338
+ evidence: z38.number().int().nonnegative(),
4277
4339
  /** Tracker records the member's accounts authored, whose stored content was forgotten. */
4278
- records: z37.number().int().nonnegative()
4340
+ records: z38.number().int().nonnegative()
4279
4341
  }))();
4280
- var memberErasureResultSchema = /* @__PURE__ */ (() => z37.object({
4342
+ var memberErasureResultSchema = /* @__PURE__ */ (() => z38.object({
4281
4343
  member: identifier,
4282
- erasedAt: z37.number().int(),
4344
+ erasedAt: z38.number().int(),
4283
4345
  deleted: memberErasureDeletedSchema
4284
4346
  }))();
4285
4347
 
4286
4348
  // src/server/wallets.ts
4287
- import * as z38 from "zod";
4349
+ import * as z39 from "zod";
4288
4350
  var managedWalletSchema = /* @__PURE__ */ (() => linkedWalletSchema.extend({
4289
4351
  /**
4290
4352
  * True when the organization vouched for the wallet (a member import, or an app login's server at
4291
4353
  * sign-in), and the member has not proved it since. Absent from Relay versions without imports.
4292
4354
  */
4293
- imported: z38.boolean().optional(),
4355
+ imported: z39.boolean().optional(),
4294
4356
  /**
4295
4357
  * The app login that vouched for the wallet at sign-in, while `imported` is true and no member
4296
4358
  * import attached it. Absent from Relay versions without it.
@@ -4304,11 +4366,11 @@ var managedWalletSchema = /* @__PURE__ */ (() => linkedWalletSchema.extend({
4304
4366
  *
4305
4367
  * @experimental A minor release can change `.sol` names.
4306
4368
  */
4307
- name: z38.string().optional(),
4308
- status: z38.enum(["linked", "unlinked"]),
4309
- unlinkedAt: z38.number().int().nullable(),
4369
+ name: z39.string().optional(),
4370
+ status: z39.enum(["linked", "unlinked"]),
4371
+ unlinkedAt: z39.number().int().nullable(),
4310
4372
  /** "member", or the operator or key that unlinked it. */
4311
- unlinkedBy: z38.string().nullable()
4373
+ unlinkedBy: z39.string().nullable()
4312
4374
  }))();
4313
4375
  var balanceCheckSchema = /* @__PURE__ */ (() => walletBalanceSchema.pick({
4314
4376
  chain: true,
@@ -4318,67 +4380,67 @@ var balanceCheckSchema = /* @__PURE__ */ (() => walletBalanceSchema.pick({
4318
4380
  wallets: true,
4319
4381
  observedAt: true
4320
4382
  }).extend({ attempt: identifier }))();
4321
- var walletBalanceChainsSchema = /* @__PURE__ */ (() => z38.object({
4322
- chains: z38.array(
4323
- z38.object({
4324
- chain: z38.union([
4325
- z38.literal(solanaMainnet),
4326
- z38.literal(solanaDevnet),
4383
+ var walletBalanceChainsSchema = /* @__PURE__ */ (() => z39.object({
4384
+ chains: z39.array(
4385
+ z39.object({
4386
+ chain: z39.union([
4387
+ z39.literal(solanaMainnet),
4388
+ z39.literal(solanaDevnet),
4327
4389
  cosmosNetworkSchema,
4328
4390
  evmChainIdSchema
4329
4391
  ]),
4330
- name: z38.string(),
4331
- testnet: z38.boolean()
4392
+ name: z39.string(),
4393
+ testnet: z39.boolean()
4332
4394
  })
4333
4395
  )
4334
4396
  }))();
4335
- var memberWalletUnlinkInputSchema = /* @__PURE__ */ (() => walletUnlinkInputSchema.extend({ reason: z38.string().trim().min(1).max(500) }).strict())();
4397
+ var memberWalletUnlinkInputSchema = /* @__PURE__ */ (() => walletUnlinkInputSchema.extend({ reason: z39.string().trim().min(1).max(500) }).strict())();
4336
4398
  var memberWalletSignInInputSchema = /* @__PURE__ */ (() => walletUnlinkInputSchema.extend({
4337
- enabled: z38.boolean(),
4338
- reason: z38.string().trim().min(1).max(500)
4399
+ enabled: z39.boolean(),
4400
+ reason: z39.string().trim().min(1).max(500)
4339
4401
  }).strict())();
4340
4402
 
4341
4403
  // src/server/members.ts
4342
- import * as z39 from "zod";
4343
- var memberSchema = /* @__PURE__ */ (() => z39.object({
4344
- id: z39.string(),
4345
- test: z39.boolean().optional(),
4346
- name: z39.string().nullable().optional(),
4347
- accounts: z39.array(memberAccountSchema).default([]),
4404
+ import * as z40 from "zod";
4405
+ var memberSchema = /* @__PURE__ */ (() => z40.object({
4406
+ id: z40.string(),
4407
+ test: z40.boolean().optional(),
4408
+ name: z40.string().nullable().optional(),
4409
+ accounts: z40.array(memberAccountSchema).default([]),
4348
4410
  /** The member's linked app identities, by kind. Absent from Relay versions without it. */
4349
- appIdentities: z39.array(memberAppIdentitySchema).optional(),
4350
- attempts: z39.number(),
4351
- completions: z39.number(),
4352
- rewards: z39.number(),
4353
- lastActivity: z39.number().nullable(),
4411
+ appIdentities: z40.array(memberAppIdentitySchema).optional(),
4412
+ attempts: z40.number(),
4413
+ completions: z40.number(),
4414
+ rewards: z40.number(),
4415
+ lastActivity: z40.number().nullable(),
4354
4416
  /**
4355
4417
  * When the customer erased the member (`members.erase`), in Unix milliseconds: it keeps its ID
4356
4418
  * and accounting, with no profile, accounts or identities. Absent on a member that was not erased.
4357
4419
  */
4358
- erasedAt: z39.number().optional(),
4420
+ erasedAt: z40.number().optional(),
4359
4421
  /**
4360
4422
  * When an operator banned the member (`members.ban`), in Unix milliseconds. Absent on a member
4361
4423
  * who is not banned now.
4362
4424
  *
4363
4425
  * @experimental A minor release can change member bans.
4364
4426
  */
4365
- bannedAt: z39.number().optional()
4427
+ bannedAt: z40.number().optional()
4366
4428
  }))();
4367
- var managedOAuthAccountBaseSchema = /* @__PURE__ */ (() => z39.object({
4368
- provider: z39.enum(["x", "discord"]),
4369
- revision: z39.number().int().nonnegative()
4429
+ var managedOAuthAccountBaseSchema = /* @__PURE__ */ (() => z40.object({
4430
+ provider: z40.enum(["x", "discord"]),
4431
+ revision: z40.number().int().nonnegative()
4370
4432
  }))();
4371
- var managedOAuthAccountSchema = /* @__PURE__ */ (() => z39.discriminatedUnion("status", [
4433
+ var managedOAuthAccountSchema = /* @__PURE__ */ (() => z40.discriminatedUnion("status", [
4372
4434
  managedOAuthAccountBaseSchema.extend({
4373
- status: z39.literal("connected"),
4374
- subject: z39.string().min(1),
4375
- linkedAt: z39.number(),
4435
+ status: z40.literal("connected"),
4436
+ subject: z40.string().min(1),
4437
+ linkedAt: z40.number(),
4376
4438
  /**
4377
4439
  * True when the organization vouched for the account, not the member's proof: a member import
4378
4440
  * attached it, or an app login's server did at sign-in (`vouchedBy`). Absent from Relay
4379
4441
  * versions without imports.
4380
4442
  */
4381
- imported: z39.boolean().optional(),
4443
+ imported: z40.boolean().optional(),
4382
4444
  /**
4383
4445
  * The app login that vouched for the account at sign-in, for an account with `imported` set
4384
4446
  * that no member import attached. Absent from Relay versions without it.
@@ -4388,26 +4450,26 @@ var managedOAuthAccountSchema = /* @__PURE__ */ (() => z39.discriminatedUnion("s
4388
4450
  * True for a real account an operator linked to a test member without OAuth
4389
4451
  * (`testMembers.linkAccount`). Absent from Relay versions without it.
4390
4452
  */
4391
- testLinked: z39.boolean().optional(),
4453
+ testLinked: z40.boolean().optional(),
4392
4454
  ...identitySourceFields
4393
4455
  }),
4394
- managedOAuthAccountBaseSchema.extend({ status: z39.literal("disconnected") })
4456
+ managedOAuthAccountBaseSchema.extend({ status: z40.literal("disconnected") })
4395
4457
  ]))();
4396
4458
  var managedTelegramAccountBaseSchema = /* @__PURE__ */ (() => managedOAuthAccountBaseSchema.extend({
4397
- provider: z39.literal("telegram")
4459
+ provider: z40.literal("telegram")
4398
4460
  }))();
4399
- var managedTelegramAccountSchema = /* @__PURE__ */ (() => z39.discriminatedUnion("status", [
4461
+ var managedTelegramAccountSchema = /* @__PURE__ */ (() => z40.discriminatedUnion("status", [
4400
4462
  managedTelegramAccountBaseSchema.extend({
4401
- status: z39.literal("connected"),
4463
+ status: z40.literal("connected"),
4402
4464
  /** The numeric Telegram user ID. */
4403
- subject: z39.string().min(1),
4404
- linkedAt: z39.number(),
4465
+ subject: z40.string().min(1),
4466
+ linkedAt: z40.number(),
4405
4467
  /**
4406
4468
  * True when the organization vouched for the account, not the member's proof: a member import
4407
4469
  * attached it, or an app login's server did at sign-in (`vouchedBy`). Absent from Relay
4408
4470
  * versions without it.
4409
4471
  */
4410
- imported: z39.boolean().optional(),
4472
+ imported: z40.boolean().optional(),
4411
4473
  /**
4412
4474
  * The app login that vouched for the account at sign-in, for an account with `imported` set
4413
4475
  * that no member import attached. Absent from Relay versions without it.
@@ -4416,14 +4478,14 @@ var managedTelegramAccountSchema = /* @__PURE__ */ (() => z39.discriminatedUnion
4416
4478
  ...identitySourceFields
4417
4479
  }),
4418
4480
  managedTelegramAccountBaseSchema.extend({
4419
- status: z39.literal("disconnected")
4481
+ status: z40.literal("disconnected")
4420
4482
  })
4421
4483
  ]))();
4422
- var memberOAuthUnlinkInputSchema = /* @__PURE__ */ (() => z39.object({
4423
- provider: z39.enum(["x", "discord"]),
4424
- subject: z39.string().min(1).max(4096),
4425
- revision: z39.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER - 1),
4426
- reason: z39.string().trim().min(1).max(500)
4484
+ var memberOAuthUnlinkInputSchema = /* @__PURE__ */ (() => z40.object({
4485
+ provider: z40.enum(["x", "discord"]),
4486
+ subject: z40.string().min(1).max(4096),
4487
+ revision: z40.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER - 1),
4488
+ reason: z40.string().trim().min(1).max(500)
4427
4489
  }).strict())();
4428
4490
  var memberTelegramUnlinkInputSchema = /* @__PURE__ */ (() => memberOAuthUnlinkInputSchema.omit({ provider: true }).strict())();
4429
4491
  var managedMemberIdentitySchema = /* @__PURE__ */ (() => memberIdentitySchema.extend({
@@ -4432,7 +4494,7 @@ var managedMemberIdentitySchema = /* @__PURE__ */ (() => memberIdentitySchema.ex
4432
4494
  * login's server at sign-in), until the member links that provider's account, or signs in with
4433
4495
  * the X account, through Domino. Absent from Relay versions without imports.
4434
4496
  */
4435
- imported: z39.boolean().optional(),
4497
+ imported: z40.boolean().optional(),
4436
4498
  /**
4437
4499
  * The app login that vouched for the account at sign-in, for an `imported` account no member
4438
4500
  * import attached. Absent from Relay versions without it.
@@ -4442,40 +4504,40 @@ var managedMemberIdentitySchema = /* @__PURE__ */ (() => memberIdentitySchema.ex
4442
4504
  * True for a real X or Discord account an operator linked to a test member without OAuth
4443
4505
  * (`testMembers.linkAccount`). Absent from Relay versions without it.
4444
4506
  */
4445
- testLinked: z39.boolean().optional(),
4507
+ testLinked: z40.boolean().optional(),
4446
4508
  ...identitySourceFields,
4447
- status: z39.enum(["linked", "unlinked"]),
4448
- unlinkedAt: z39.number().int().nullable(),
4509
+ status: z40.enum(["linked", "unlinked"]),
4510
+ unlinkedAt: z40.number().int().nullable(),
4449
4511
  /** The operator or key that unlinked it. */
4450
- unlinkedBy: z39.string().nullable()
4512
+ unlinkedBy: z40.string().nullable()
4451
4513
  }))();
4452
- var memberIdentityChangeInputSchema = /* @__PURE__ */ (() => z39.object({
4514
+ var memberIdentityChangeInputSchema = /* @__PURE__ */ (() => z40.object({
4453
4515
  kind: appIdentityKindSchema,
4454
- subject: z39.string().min(1).max(256),
4455
- reason: z39.string().trim().min(1).max(500)
4516
+ subject: z40.string().min(1).max(256),
4517
+ reason: z40.string().trim().min(1).max(500)
4456
4518
  }).strict())();
4457
- var memberDetailSchema = /* @__PURE__ */ (() => z39.object({
4519
+ var memberDetailSchema = /* @__PURE__ */ (() => z40.object({
4458
4520
  snapshot: snapshotSchema,
4459
4521
  member: memberSchema,
4460
4522
  progress: memberProgressSchema,
4461
4523
  /** Up to 25 revoked completions with an unreversed point remainder, newest first. */
4462
- revocationShortfalls: z39.array(completionRevocationShortfallSchema).default([]),
4524
+ revocationShortfalls: z40.array(completionRevocationShortfallSchema).default([]),
4463
4525
  /** Up to 25 revoked completions, newest first. Relay older than restore leaves it out. */
4464
- revokedCompletions: z39.array(revokedCompletionSchema).optional(),
4526
+ revokedCompletions: z40.array(revokedCompletionSchema).optional(),
4465
4527
  /** Current and historical campaign enrollment state, including inactive enrollments. */
4466
- campaignEnrollments: z39.array(campaignEnrollmentSchema).default([]),
4467
- passes: z39.array(
4468
- z39.object({
4469
- provider: z39.string(),
4470
- event: z39.string(),
4471
- subject: z39.string(),
4528
+ campaignEnrollments: z40.array(campaignEnrollmentSchema).default([]),
4529
+ passes: z40.array(
4530
+ z40.object({
4531
+ provider: z40.string(),
4532
+ event: z40.string(),
4533
+ subject: z40.string(),
4472
4534
  attempt: identifier.nullable()
4473
4535
  })
4474
4536
  ).default([]),
4475
4537
  /** Linked and unlinked wallets. */
4476
- wallets: z39.array(managedWalletSchema),
4538
+ wallets: z40.array(managedWalletSchema),
4477
4539
  /** The member's 10 most recent recorded balance reads, newest first. */
4478
- balanceChecks: z39.array(balanceCheckSchema),
4540
+ balanceChecks: z40.array(balanceCheckSchema),
4479
4541
  /** The member's participant profile in this project. */
4480
4542
  profile: managedProfileSchema.nullable(),
4481
4543
  /**
@@ -4483,20 +4545,20 @@ var memberDetailSchema = /* @__PURE__ */ (() => z39.object({
4483
4545
  * member ID: their selected X and Discord accounts and their `app:<name>` identities in this
4484
4546
  * project, including app identities an operator unlinked, by kind.
4485
4547
  */
4486
- identities: z39.array(managedMemberIdentitySchema),
4548
+ identities: z40.array(managedMemberIdentitySchema),
4487
4549
  /**
4488
4550
  * The creator accounts the member linked (a YouTube channel), whose content managed tracker
4489
4551
  * sources attribute to them. Absent from Relay versions without creator accounts.
4490
4552
  */
4491
- creatorAccounts: z39.array(managedCreatorAccountSchema).optional(),
4553
+ creatorAccounts: z40.array(managedCreatorAccountSchema).optional(),
4492
4554
  /**
4493
4555
  * Who invited the member, when they accepted, and the member import that recorded it, or null
4494
4556
  * when nobody invited them. Absent from Relay versions before imported referrals.
4495
4557
  */
4496
- referral: z39.object({
4558
+ referral: z40.object({
4497
4559
  inviter: identifier,
4498
- acceptedAt: z39.number().int().nonnegative(),
4499
- suspended: z39.boolean(),
4560
+ acceptedAt: z40.number().int().nonnegative(),
4561
+ suspended: z40.boolean(),
4500
4562
  import: identifier.nullable()
4501
4563
  }).nullable().optional(),
4502
4564
  /**
@@ -4507,9 +4569,9 @@ var memberDetailSchema = /* @__PURE__ */ (() => z39.object({
4507
4569
  */
4508
4570
  ban: memberBanSchema.nullable().optional()
4509
4571
  }))();
4510
- var managedMemberProgressSchema = /* @__PURE__ */ (() => z39.object({
4572
+ var managedMemberProgressSchema = /* @__PURE__ */ (() => z40.object({
4511
4573
  member: identifier,
4512
- quests: z39.array(
4574
+ quests: z40.array(
4513
4575
  memberProgressSchema.shape.quests.element.extend({
4514
4576
  /** The streak as `members.get` reports it, without the list of qualifying days. */
4515
4577
  streak: streakProgressSchema.omit({ days: true }).nullable().optional()
@@ -4520,10 +4582,10 @@ var managedMemberProgressSchema = /* @__PURE__ */ (() => z39.object({
4520
4582
  /** Each point balance the member has, by balance ID. */
4521
4583
  balances: snapshotSchema.shape.balances
4522
4584
  }))();
4523
- var memberLookupSchema = /* @__PURE__ */ (() => z39.union([
4524
- z39.object({
4525
- provider: z39.string().min(1).max(200),
4526
- subject: z39.string().min(1).max(2048)
4585
+ var memberLookupSchema = /* @__PURE__ */ (() => z40.union([
4586
+ z40.object({
4587
+ provider: z40.string().min(1).max(200),
4588
+ subject: z40.string().min(1).max(2048)
4527
4589
  }).strict(),
4528
4590
  identityReferenceSchema.transform(
4529
4591
  (reference) => reference.kind === "wallet" ? { provider: reference.chain, subject: reference.address } : { provider: reference.kind, subject: reference.subject }
@@ -4534,20 +4596,20 @@ var memberLookupSchema = /* @__PURE__ */ (() => z39.union([
4534
4596
  subject: address
4535
4597
  }))
4536
4598
  ]))();
4537
- var managedMemberQuerySchema = /* @__PURE__ */ (() => z39.strictObject({
4538
- q: z39.string().max(200).optional(),
4599
+ var managedMemberQuerySchema = /* @__PURE__ */ (() => z40.strictObject({
4600
+ q: z40.string().max(200).optional(),
4539
4601
  needsReview: booleanQuery.optional(),
4540
- limit: z39.coerce.number().int().min(1).max(100).optional(),
4602
+ limit: z40.coerce.number().int().min(1).max(100).optional(),
4541
4603
  cursor: pageCursorSchema.optional()
4542
4604
  }))();
4543
- var managedMemberPageSchema = /* @__PURE__ */ (() => z39.object({
4544
- items: z39.array(memberSchema),
4545
- total: z39.number().int().nonnegative(),
4546
- nextCursor: z39.string().nullable()
4605
+ var managedMemberPageSchema = /* @__PURE__ */ (() => z40.object({
4606
+ items: z40.array(memberSchema),
4607
+ total: z40.number().int().nonnegative(),
4608
+ nextCursor: z40.string().nullable()
4547
4609
  }))();
4548
4610
 
4549
4611
  // src/server/endpoints/members.ts
4550
- import * as z40 from "zod";
4612
+ import * as z41 from "zod";
4551
4613
  var member = { member: ID_PATTERN };
4552
4614
  var anyMember = { member: SEGMENT_PATTERN };
4553
4615
  var memberEndpoints = /* @__PURE__ */ (() => ({
@@ -4574,7 +4636,7 @@ var memberEndpoints = /* @__PURE__ */ (() => ({
4574
4636
  parameters: {},
4575
4637
  permission: "read",
4576
4638
  ledger: null,
4577
- result: () => z40.array(personSchema)
4639
+ result: () => z41.array(personSchema)
4578
4640
  }),
4579
4641
  get: managementEndpoint({
4580
4642
  method: "GET",
@@ -4646,7 +4708,7 @@ var memberEndpoints = /* @__PURE__ */ (() => ({
4646
4708
  parameters: member,
4647
4709
  permission: "read",
4648
4710
  ledger: null,
4649
- result: () => z40.array(managedOAuthAccountSchema)
4711
+ result: () => z41.array(managedOAuthAccountSchema)
4650
4712
  }),
4651
4713
  unlinkOAuthAccount: managementEndpoint({
4652
4714
  method: "POST",
@@ -4654,7 +4716,7 @@ var memberEndpoints = /* @__PURE__ */ (() => ({
4654
4716
  parameters: member,
4655
4717
  permission: "review",
4656
4718
  ledger: null,
4657
- result: () => z40.array(managedOAuthAccountSchema)
4719
+ result: () => z41.array(managedOAuthAccountSchema)
4658
4720
  }),
4659
4721
  telegramAccount: managementEndpoint({
4660
4722
  method: "GET",
@@ -4710,7 +4772,7 @@ var memberEndpoints = /* @__PURE__ */ (() => ({
4710
4772
  parameters: member,
4711
4773
  permission: "review",
4712
4774
  ledger: null,
4713
- result: () => z40.array(managedWalletSchema)
4775
+ result: () => z41.array(managedWalletSchema)
4714
4776
  }),
4715
4777
  setWalletSignIn: managementEndpoint({
4716
4778
  method: "POST",
@@ -4718,7 +4780,7 @@ var memberEndpoints = /* @__PURE__ */ (() => ({
4718
4780
  parameters: member,
4719
4781
  permission: "review",
4720
4782
  ledger: null,
4721
- result: () => z40.array(managedWalletSchema)
4783
+ result: () => z41.array(managedWalletSchema)
4722
4784
  }),
4723
4785
  unlinkIdentity: managementEndpoint({
4724
4786
  method: "POST",
@@ -4726,7 +4788,7 @@ var memberEndpoints = /* @__PURE__ */ (() => ({
4726
4788
  parameters: member,
4727
4789
  permission: "review",
4728
4790
  ledger: null,
4729
- result: () => z40.array(managedMemberIdentitySchema)
4791
+ result: () => z41.array(managedMemberIdentitySchema)
4730
4792
  }),
4731
4793
  relinkIdentity: managementEndpoint({
4732
4794
  method: "POST",
@@ -4734,7 +4796,7 @@ var memberEndpoints = /* @__PURE__ */ (() => ({
4734
4796
  parameters: member,
4735
4797
  permission: "review",
4736
4798
  ledger: null,
4737
- result: () => z40.array(managedMemberIdentitySchema)
4799
+ result: () => z41.array(managedMemberIdentitySchema)
4738
4800
  }),
4739
4801
  // A rollback that reverses referral payouts or point awards takes publish too, which the
4740
4802
  // route checks after reading the body.
@@ -4809,7 +4871,7 @@ var memberEndpoints = /* @__PURE__ */ (() => ({
4809
4871
  }))();
4810
4872
 
4811
4873
  // src/server/endpoints/offers.ts
4812
- import * as z41 from "zod";
4874
+ import * as z42 from "zod";
4813
4875
  var offer = { offer: ID_PATTERN };
4814
4876
  var reward = { reward: ID_PATTERN };
4815
4877
  var offerEndpoints = /* @__PURE__ */ (() => ({
@@ -4819,7 +4881,7 @@ var offerEndpoints = /* @__PURE__ */ (() => ({
4819
4881
  parameters: {},
4820
4882
  permission: "read",
4821
4883
  ledger: "offers.listManaged",
4822
- result: () => z41.array(offerSchema)
4884
+ result: () => z42.array(offerSchema)
4823
4885
  }),
4824
4886
  pause: managementEndpoint({
4825
4887
  method: "POST",
@@ -4868,7 +4930,7 @@ var offerEndpoints = /* @__PURE__ */ (() => ({
4868
4930
  parameters: {},
4869
4931
  permission: "read",
4870
4932
  ledger: "redemptions.list",
4871
- result: () => z41.array(redemptionSchema)
4933
+ result: () => z42.array(redemptionSchema)
4872
4934
  }),
4873
4935
  redemptionHistory: managementEndpoint({
4874
4936
  method: "GET",
@@ -4907,28 +4969,28 @@ var tieredRewardEndpoints = /* @__PURE__ */ (() => ({
4907
4969
  }))();
4908
4970
 
4909
4971
  // src/server/operations.ts
4910
- import * as z42 from "zod";
4911
- var operationSchema = /* @__PURE__ */ (() => z42.object({
4912
- target: z42.string(),
4913
- paused: z42.boolean(),
4914
- revision: z42.number().int(),
4915
- reason: z42.string(),
4916
- actor: z42.string().nullable(),
4917
- changedAt: z42.number()
4918
- }))();
4919
- var operationInputSchema = /* @__PURE__ */ (() => z42.object({
4920
- target: z42.union([
4921
- z42.literal("redemptions"),
4922
- z42.string().regex(/^quest:[\w-]+$/)
4972
+ import * as z43 from "zod";
4973
+ var operationSchema = /* @__PURE__ */ (() => z43.object({
4974
+ target: z43.string(),
4975
+ paused: z43.boolean(),
4976
+ revision: z43.number().int(),
4977
+ reason: z43.string(),
4978
+ actor: z43.string().nullable(),
4979
+ changedAt: z43.number()
4980
+ }))();
4981
+ var operationInputSchema = /* @__PURE__ */ (() => z43.object({
4982
+ target: z43.union([
4983
+ z43.literal("redemptions"),
4984
+ z43.string().regex(/^quest:[\w-]+$/)
4923
4985
  ]),
4924
- paused: z42.boolean(),
4925
- revision: z42.number().int().nonnegative(),
4926
- reason: z42.string().trim().min(1).max(500),
4986
+ paused: z43.boolean(),
4987
+ revision: z43.number().int().nonnegative(),
4988
+ reason: z43.string().trim().min(1).max(500),
4927
4989
  actionId: identifier
4928
4990
  }).strict())();
4929
4991
 
4930
4992
  // src/server/endpoints/operations.ts
4931
- import * as z43 from "zod";
4993
+ import * as z44 from "zod";
4932
4994
  var operationEndpoints = /* @__PURE__ */ (() => ({
4933
4995
  list: managementEndpoint({
4934
4996
  method: "GET",
@@ -4936,7 +4998,7 @@ var operationEndpoints = /* @__PURE__ */ (() => ({
4936
4998
  parameters: {},
4937
4999
  permission: "read",
4938
5000
  ledger: "operations.list",
4939
- result: () => z43.array(operationSchema)
5001
+ result: () => z44.array(operationSchema)
4940
5002
  }),
4941
5003
  configure: managementEndpoint({
4942
5004
  method: "POST",
@@ -4965,25 +5027,25 @@ var operationEndpoints = /* @__PURE__ */ (() => ({
4965
5027
  }))();
4966
5028
 
4967
5029
  // src/server/page.ts
4968
- import * as z44 from "zod";
4969
- var querySchema = /* @__PURE__ */ (() => z44.object({
4970
- q: z44.string().max(200).default(""),
4971
- filter: z44.string().max(50).default("all"),
4972
- offset: z44.coerce.number().int().min(0).max(1e6).default(0),
4973
- limit: z44.coerce.number().int().min(1).max(100).default(25)
5030
+ import * as z45 from "zod";
5031
+ var querySchema = /* @__PURE__ */ (() => z45.object({
5032
+ q: z45.string().max(200).default(""),
5033
+ filter: z45.string().max(50).default("all"),
5034
+ offset: z45.coerce.number().int().min(0).max(1e6).default(0),
5035
+ limit: z45.coerce.number().int().min(1).max(100).default(25)
4974
5036
  }))();
4975
- var pageSchema = /* @__PURE__ */ (() => z44.object({
5037
+ var pageSchema = /* @__PURE__ */ (() => z45.object({
4976
5038
  snapshot: snapshotSchema,
4977
- members: z44.array(memberSchema),
4978
- people: z44.array(personSchema).default([]),
5039
+ members: z45.array(memberSchema),
5040
+ people: z45.array(personSchema).default([]),
4979
5041
  metrics: metricsSchema,
4980
- total: z44.number(),
4981
- offset: z44.number(),
4982
- limit: z44.number(),
4983
- inventory: z44.array(inventorySchema),
4984
- operations: z44.array(operationSchema).default([]),
4985
- audit: z44.array(auditRecordSchema).default([]),
4986
- questCounts: z44.record(z44.string(), z44.number())
5042
+ total: z45.number(),
5043
+ offset: z45.number(),
5044
+ limit: z45.number(),
5045
+ inventory: z45.array(inventorySchema),
5046
+ operations: z45.array(operationSchema).default([]),
5047
+ audit: z45.array(auditRecordSchema).default([]),
5048
+ questCounts: z45.record(z45.string(), z45.number())
4987
5049
  }))();
4988
5050
 
4989
5051
  // src/server/endpoints/pages.ts
@@ -5055,21 +5117,21 @@ var pageEndpoints = /* @__PURE__ */ (() => ({
5055
5117
  }))();
5056
5118
 
5057
5119
  // src/server/participant-sign-in.ts
5058
- import * as z45 from "zod";
5059
- var telegramBotIdSchema = /* @__PURE__ */ (() => z45.string().regex(/^[1-9][0-9]{0,19}$/, "Enter the bot's numeric ID, such as 123456789"))();
5060
- var participantSignInTelegramSchema = /* @__PURE__ */ (() => z45.object({
5061
- login: z45.boolean(),
5120
+ import * as z46 from "zod";
5121
+ var telegramBotIdSchema = /* @__PURE__ */ (() => z46.string().regex(/^[1-9][0-9]{0,19}$/, "Enter the bot's numeric ID, such as 123456789"))();
5122
+ var participantSignInTelegramSchema = /* @__PURE__ */ (() => z46.object({
5123
+ login: z46.boolean(),
5062
5124
  miniAppBotId: telegramBotIdSchema.nullable()
5063
5125
  }))();
5064
- var participantSignInSchema = /* @__PURE__ */ (() => z45.object({
5065
- providers: z45.array(
5066
- z45.object({ provider: authProviderSchema, configured: z45.boolean() })
5126
+ var participantSignInSchema = /* @__PURE__ */ (() => z46.object({
5127
+ providers: z46.array(
5128
+ z46.object({ provider: authProviderSchema, configured: z46.boolean() })
5067
5129
  ),
5068
- email: z45.boolean(),
5130
+ email: z46.boolean(),
5069
5131
  /** Wallet families: `"solana"`, `"eip155"`, `"cosmos"`. */
5070
5132
  wallets: walletSignInNetworksSchema,
5071
5133
  /** Why participants cannot sign in to this project, or null. */
5072
- issue: z45.string().nullable(),
5134
+ issue: z46.string().nullable(),
5073
5135
  /**
5074
5136
  * Telegram, outside `providers` in SDK 1.x: whether Domino configured Telegram Login, and the
5075
5137
  * bot whose Mini App participants sign in from, or null when Mini App sign-in is off. Absent
@@ -5081,10 +5143,10 @@ var participantSignInSchema = /* @__PURE__ */ (() => z45.object({
5081
5143
  * members can link accounts that trackers like `youtube.shorts()` read. Absent from older Relay
5082
5144
  * versions.
5083
5145
  */
5084
- creatorAccounts: z45.array(
5085
- z45.object({
5146
+ creatorAccounts: z46.array(
5147
+ z46.object({
5086
5148
  provider: creatorAccountProviderSchema,
5087
- configured: z45.boolean()
5149
+ configured: z46.boolean()
5088
5150
  })
5089
5151
  ).optional(),
5090
5152
  /**
@@ -5092,13 +5154,13 @@ var participantSignInSchema = /* @__PURE__ */ (() => z45.object({
5092
5154
  * the open sibling of `providers`, which SDK 1.x keeps to `AuthProvider`. A newer Relay may list
5093
5155
  * providers this SDK does not know. Absent from older Relay versions.
5094
5156
  */
5095
- signInProviders: z45.array(signInProviderOptionSchema).optional(),
5096
- updatedAt: z45.number().nullable(),
5097
- updatedBy: z45.string().nullable()
5157
+ signInProviders: z46.array(signInProviderOptionSchema).optional(),
5158
+ updatedAt: z46.number().nullable(),
5159
+ updatedBy: z46.string().nullable()
5098
5160
  }))();
5099
- var participantSignInInputSchema = /* @__PURE__ */ (() => z45.object({
5161
+ var participantSignInInputSchema = /* @__PURE__ */ (() => z46.object({
5100
5162
  wallets: walletSignInNetworksSchema,
5101
- telegram: z45.object({ miniAppBotId: telegramBotIdSchema.nullable() }).strict().optional()
5163
+ telegram: z46.object({ miniAppBotId: telegramBotIdSchema.nullable() }).strict().optional()
5102
5164
  }).strict())();
5103
5165
 
5104
5166
  // src/server/endpoints/participants.ts
@@ -5130,7 +5192,7 @@ var participantEndpoints = /* @__PURE__ */ (() => ({
5130
5192
  }))();
5131
5193
 
5132
5194
  // src/server/endpoints/points.ts
5133
- import * as z46 from "zod";
5195
+ import * as z47 from "zod";
5134
5196
  var account2 = { member: ID_PATTERN, ledger: ID_PATTERN };
5135
5197
  var pointEndpoints = /* @__PURE__ */ (() => ({
5136
5198
  balance: managementEndpoint({
@@ -5166,7 +5228,7 @@ var pointLedgerEndpoints = /* @__PURE__ */ (() => ({
5166
5228
  parameters: {},
5167
5229
  permission: "read",
5168
5230
  ledger: "pointLedgers.list",
5169
- result: () => z46.array(managedPointLedgerSchema)
5231
+ result: () => z47.array(managedPointLedgerSchema)
5170
5232
  }),
5171
5233
  // Answers 201.
5172
5234
  create: managementEndpoint({
@@ -5243,31 +5305,31 @@ var profileEndpoints = /* @__PURE__ */ (() => ({
5243
5305
  }))();
5244
5306
 
5245
5307
  // src/server/projects.ts
5246
- import * as z47 from "zod";
5247
- var projectSetupSchema = /* @__PURE__ */ (() => z47.object({
5248
- mode: z47.enum(["new", "existing"]),
5249
- brief: z47.string().trim().min(1).max(4e3)
5308
+ import * as z48 from "zod";
5309
+ var projectSetupSchema = /* @__PURE__ */ (() => z48.object({
5310
+ mode: z48.enum(["new", "existing"]),
5311
+ brief: z48.string().trim().min(1).max(4e3)
5250
5312
  }).strict())();
5251
- var projectSchema = /* @__PURE__ */ (() => z47.object({
5313
+ var projectSchema = /* @__PURE__ */ (() => z48.object({
5252
5314
  /**
5253
5315
  * Names the project's hosted addresses. The server gives a new project, and accepts in a
5254
5316
  * slug change, only slugs of at least 3 characters that Domino does not reserve. This schema
5255
5317
  * checks only the format, so it parses every slug that exists.
5256
5318
  */
5257
- slug: z47.string().min(1).max(35).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/),
5258
- createdBy: z47.string().nullable().optional(),
5319
+ slug: z48.string().min(1).max(35).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/),
5320
+ createdBy: z48.string().nullable().optional(),
5259
5321
  creator: operatorUserSchema.nullable().optional(),
5260
5322
  /** A response, so fields a newer server adds to the setup are dropped, not rejected. */
5261
- setup: z47.object(projectSetupSchema.shape).optional(),
5323
+ setup: z48.object(projectSetupSchema.shape).optional(),
5262
5324
  /** The starter chosen at setup. A plain string, so later starters still parse. */
5263
- starter: z47.string().optional(),
5264
- id: z47.string().min(1),
5325
+ starter: z48.string().optional(),
5326
+ id: z48.string().min(1),
5265
5327
  organization: identifier,
5266
5328
  project: identifier,
5267
- name: z47.string(),
5268
- subtitle: z47.string(),
5269
- initials: z47.string(),
5270
- color: z47.string(),
5329
+ name: z48.string(),
5330
+ subtitle: z48.string(),
5331
+ initials: z48.string(),
5332
+ color: z48.string(),
5271
5333
  permissions: permissionListSchema,
5272
5334
  /**
5273
5335
  * Every permission the caller holds here, `dashboards` included, which `permissions` leaves
@@ -5275,8 +5337,8 @@ var projectSchema = /* @__PURE__ */ (() => z47.object({
5275
5337
  *
5276
5338
  * @experimental
5277
5339
  */
5278
- projectPermissions: z47.array(z47.string()).optional(),
5279
- environments: z47.array(environmentSchema)
5340
+ projectPermissions: z48.array(z48.string()).optional(),
5341
+ environments: z48.array(environmentSchema)
5280
5342
  }).refine(
5281
5343
  (project) => !project.creator || project.creator.id === project.createdBy,
5282
5344
  {
@@ -5284,67 +5346,69 @@ var projectSchema = /* @__PURE__ */ (() => z47.object({
5284
5346
  path: ["creator"]
5285
5347
  }
5286
5348
  ))();
5287
- var projectCreateInputSchema = /* @__PURE__ */ (() => z47.object({
5349
+ var projectCreateInputSchema = /* @__PURE__ */ (() => z48.object({
5288
5350
  actionId: identifier,
5289
- name: z47.string().trim().min(1).max(80),
5351
+ name: z48.string().trim().min(1).max(80),
5290
5352
  setup: projectSetupSchema.optional(),
5291
5353
  /** The starter a new hosted app begins from, with `setup.mode` "new". */
5292
5354
  starter: offeredStarterSchema.optional()
5293
5355
  }).strict())();
5294
- var projectInputSchema = /* @__PURE__ */ (() => z47.object({
5356
+ var projectInputSchema = /* @__PURE__ */ (() => z48.object({
5295
5357
  actionId: identifier,
5296
- name: z47.string().trim().min(1).max(80),
5358
+ name: z48.string().trim().min(1).max(80),
5297
5359
  setup: projectSetupSchema.optional(),
5298
5360
  /** The starter a new hosted app begins from, with `setup.mode` "new". */
5299
5361
  starter: starterIdSchema.optional()
5300
5362
  }).strict())();
5301
- var projectUpdateInputSchema = /* @__PURE__ */ (() => z47.union([
5302
- z47.object({ name: projectCreateInputSchema.shape.name }).strict(),
5303
- z47.object({
5363
+ var projectUpdateInputSchema = /* @__PURE__ */ (() => z48.union([
5364
+ z48.object({ name: projectCreateInputSchema.shape.name }).strict(),
5365
+ z48.object({
5304
5366
  slug: projectSchema.shape.slug,
5305
- confirm: z47.string().min(1).max(80)
5367
+ confirm: z48.string().min(1).max(80)
5306
5368
  }).strict()
5307
5369
  ]))();
5308
- var projectDeletionInputSchema = /* @__PURE__ */ (() => z47.object({ confirm: z47.string().min(1).max(80) }).strict())();
5309
- var projectDeletionSchema = /* @__PURE__ */ (() => z47.object({
5370
+ var projectDeletionInputSchema = /* @__PURE__ */ (() => z48.object({ confirm: z48.string().min(1).max(80) }).strict())();
5371
+ var projectDeletionSchema = /* @__PURE__ */ (() => z48.object({
5310
5372
  project: identifier,
5311
- purgeAfter: z47.number().int()
5373
+ purgeAfter: z48.number().int()
5312
5374
  }))();
5313
- var projectTransferInputSchema = /* @__PURE__ */ (() => z47.object({ organization: identifier, confirm: z47.string().min(1).max(80) }).strict())();
5314
- var projectTransferSchema = /* @__PURE__ */ (() => z47.object({
5375
+ var projectTransferInputSchema = /* @__PURE__ */ (() => z48.object({ organization: identifier, confirm: z48.string().min(1).max(80) }).strict())();
5376
+ var projectTransferSchema = /* @__PURE__ */ (() => z48.object({
5315
5377
  organization: identifier,
5316
5378
  project: identifier
5317
5379
  }))();
5318
- var accessSchema = /* @__PURE__ */ (() => z47.object({
5319
- actor: z47.string(),
5320
- organization: z47.string(),
5321
- admin: z47.boolean(),
5322
- local: z47.boolean(),
5323
- projects: z47.array(projectSchema),
5380
+ var accessSchema = /* @__PURE__ */ (() => z48.object({
5381
+ actor: z48.string(),
5382
+ organization: z48.string(),
5383
+ admin: z48.boolean(),
5384
+ local: z48.boolean(),
5385
+ projects: z48.array(projectSchema),
5386
+ /** When the caller's CLI sign-in (`domino login`) stops working, in epoch milliseconds; absent for every other credential. */
5387
+ expiresAt: z48.number().optional(),
5324
5388
  /** The credential's own kind and scope, when it is an organization automation key. */
5325
- credential: z47.object({
5326
- kind: z47.string(),
5327
- id: z47.string(),
5328
- name: z47.string(),
5389
+ credential: z48.object({
5390
+ kind: z48.string(),
5391
+ id: z48.string(),
5392
+ name: z48.string(),
5329
5393
  /** The projects it reaches; null for every project of the organization. */
5330
- projects: z47.array(z47.string()).nullable(),
5331
- createProjects: z47.boolean(),
5394
+ projects: z48.array(z48.string()).nullable(),
5395
+ createProjects: z48.boolean(),
5332
5396
  permissions: permissionListSchema
5333
5397
  }).optional()
5334
5398
  }))();
5335
- var readinessSchema = /* @__PURE__ */ (() => z47.object({
5336
- checks: z47.array(
5337
- z47.object({
5338
- id: z47.string(),
5339
- status: z47.enum(["ready", "blocked"]),
5340
- title: z47.string(),
5341
- detail: z47.string()
5399
+ var readinessSchema = /* @__PURE__ */ (() => z48.object({
5400
+ checks: z48.array(
5401
+ z48.object({
5402
+ id: z48.string(),
5403
+ status: z48.enum(["ready", "blocked"]),
5404
+ title: z48.string(),
5405
+ detail: z48.string()
5342
5406
  })
5343
5407
  )
5344
5408
  }))();
5345
5409
 
5346
5410
  // src/server/endpoints/projects.ts
5347
- import * as z48 from "zod";
5411
+ import * as z49 from "zod";
5348
5412
  var projectEndpoints = /* @__PURE__ */ (() => ({
5349
5413
  readiness: managementEndpoint({
5350
5414
  method: "GET",
@@ -5362,7 +5426,7 @@ var projectEndpoints = /* @__PURE__ */ (() => ({
5362
5426
  parameters: {},
5363
5427
  permission: { handler: "read" },
5364
5428
  ledger: null,
5365
- result: () => z48.unknown()
5429
+ result: () => z49.unknown()
5366
5430
  }),
5367
5431
  // Any caller the management gate admits: the answer is filtered to what the caller may see.
5368
5432
  access: managementEndpoint({
@@ -5411,8 +5475,8 @@ var projectEndpoints = /* @__PURE__ */ (() => ({
5411
5475
  }))();
5412
5476
 
5413
5477
  // src/server/promotions.ts
5414
- import * as z49 from "zod";
5415
- var promotionResourceKindSchema = /* @__PURE__ */ (() => z49.enum([
5478
+ import * as z50 from "zod";
5479
+ var promotionResourceKindSchema = /* @__PURE__ */ (() => z50.enum([
5416
5480
  "quest",
5417
5481
  "quest-type",
5418
5482
  "collection",
@@ -5431,71 +5495,71 @@ var promotionResourceKindSchema = /* @__PURE__ */ (() => z49.enum([
5431
5495
  "profile-settings",
5432
5496
  "app-build"
5433
5497
  ]))();
5434
- var promotionChangeSchema = /* @__PURE__ */ (() => z49.object({
5435
- kind: z49.union([promotionResourceKindSchema, z49.string()]),
5436
- key: z49.string(),
5437
- title: z49.string(),
5498
+ var promotionChangeSchema = /* @__PURE__ */ (() => z50.object({
5499
+ kind: z50.union([promotionResourceKindSchema, z50.string()]),
5500
+ key: z50.string(),
5501
+ title: z50.string(),
5438
5502
  /** `added`: new in live. `changed`: live's differs. `archived` and `unarchived` change only its lifecycle. */
5439
- change: z49.union([
5440
- z49.enum(["added", "changed", "archived", "unarchived"]),
5441
- z49.string()
5503
+ change: z50.union([
5504
+ z50.enum(["added", "changed", "archived", "unarchived"]),
5505
+ z50.string()
5442
5506
  ])
5443
5507
  }))();
5444
- var promotionWarningSchema = /* @__PURE__ */ (() => z49.object({
5445
- code: z49.string(),
5446
- message: z49.string(),
5447
- kind: z49.string().optional(),
5448
- key: z49.string().optional()
5508
+ var promotionWarningSchema = /* @__PURE__ */ (() => z50.object({
5509
+ code: z50.string(),
5510
+ message: z50.string(),
5511
+ kind: z50.string().optional(),
5512
+ key: z50.string().optional()
5449
5513
  }))();
5450
- var promotionBuildSchema = /* @__PURE__ */ (() => z49.object({
5514
+ var promotionBuildSchema = /* @__PURE__ */ (() => z50.object({
5451
5515
  repository: identifier,
5452
5516
  build: identifier
5453
5517
  }))();
5454
- var promotionSourceSchema = /* @__PURE__ */ (() => z49.discriminatedUnion("kind", [
5455
- z49.object({ kind: z49.literal("test") }),
5456
- z49.object({ kind: z49.literal("rollback"), promotion: identifier }),
5457
- z49.object({ kind: z49.literal("deployment"), deployment: identifier })
5518
+ var promotionSourceSchema = /* @__PURE__ */ (() => z50.discriminatedUnion("kind", [
5519
+ z50.object({ kind: z50.literal("test") }),
5520
+ z50.object({ kind: z50.literal("rollback"), promotion: identifier }),
5521
+ z50.object({ kind: z50.literal("deployment"), deployment: identifier })
5458
5522
  ]))();
5459
5523
  var promotionMetadata = /* @__PURE__ */ (() => ({
5460
5524
  id: identifier,
5461
5525
  source: promotionSourceSchema,
5462
- changes: z49.array(promotionChangeSchema),
5463
- warnings: z49.array(promotionWarningSchema),
5526
+ changes: z50.array(promotionChangeSchema),
5527
+ warnings: z50.array(promotionWarningSchema),
5464
5528
  build: promotionBuildSchema.nullable(),
5465
- createdAt: z49.number().int().nonnegative(),
5466
- createdBy: z49.string().nullable()
5529
+ createdAt: z50.number().int().nonnegative(),
5530
+ createdBy: z50.string().nullable()
5467
5531
  }))();
5468
5532
  var decided = /* @__PURE__ */ (() => ({
5469
- decidedAt: z49.number().int().nonnegative(),
5470
- decidedBy: z49.string().nullable()
5533
+ decidedAt: z50.number().int().nonnegative(),
5534
+ decidedBy: z50.string().nullable()
5471
5535
  }))();
5472
- var promotionRecordSchema = /* @__PURE__ */ (() => z49.discriminatedUnion("status", [
5473
- z49.object({ ...promotionMetadata, status: z49.literal("pending") }),
5474
- z49.object({ ...promotionMetadata, ...decided, status: z49.literal("applied") }),
5475
- z49.object({
5536
+ var promotionRecordSchema = /* @__PURE__ */ (() => z50.discriminatedUnion("status", [
5537
+ z50.object({ ...promotionMetadata, status: z50.literal("pending") }),
5538
+ z50.object({ ...promotionMetadata, ...decided, status: z50.literal("applied") }),
5539
+ z50.object({
5476
5540
  ...promotionMetadata,
5477
5541
  ...decided,
5478
- status: z49.literal("rejected"),
5479
- reason: z49.string()
5542
+ status: z50.literal("rejected"),
5543
+ reason: z50.string()
5480
5544
  }),
5481
- z49.object({
5545
+ z50.object({
5482
5546
  ...promotionMetadata,
5483
5547
  ...decided,
5484
- status: z49.literal("superseded")
5548
+ status: z50.literal("superseded")
5485
5549
  })
5486
5550
  ]))();
5487
- var promotionActionSchema = /* @__PURE__ */ (() => z49.object({ actionId: z49.string().uuid() }).strict())();
5488
- var promotionDecisionSchema = /* @__PURE__ */ (() => z49.object({ actionId: z49.string().uuid().optional() }).strict())();
5489
- var promotionRejectionSchema = /* @__PURE__ */ (() => z49.object({
5490
- reason: z49.string().trim().min(1).max(1e3),
5491
- actionId: z49.string().uuid().optional()
5551
+ var promotionActionSchema = /* @__PURE__ */ (() => z50.object({ actionId: z50.string().uuid() }).strict())();
5552
+ var promotionDecisionSchema = /* @__PURE__ */ (() => z50.object({ actionId: z50.string().uuid().optional() }).strict())();
5553
+ var promotionRejectionSchema = /* @__PURE__ */ (() => z50.object({
5554
+ reason: z50.string().trim().min(1).max(1e3),
5555
+ actionId: z50.string().uuid().optional()
5492
5556
  }).strict())();
5493
- var promotionHistoryQuerySchema = /* @__PURE__ */ (() => z49.strictObject({
5557
+ var promotionHistoryQuerySchema = /* @__PURE__ */ (() => z50.strictObject({
5494
5558
  cursor: pageCursorSchema.optional(),
5495
- limit: z49.coerce.number().int().min(1).max(100).optional()
5559
+ limit: z50.coerce.number().int().min(1).max(100).optional()
5496
5560
  }))();
5497
- var promotionHistoryPageSchema = /* @__PURE__ */ (() => z49.object({
5498
- items: z49.array(promotionRecordSchema),
5561
+ var promotionHistoryPageSchema = /* @__PURE__ */ (() => z50.object({
5562
+ items: z50.array(promotionRecordSchema),
5499
5563
  nextCursor: pageCursorSchema.nullable()
5500
5564
  }))();
5501
5565
 
@@ -5573,99 +5637,99 @@ var providerEndpoints = /* @__PURE__ */ (() => ({
5573
5637
  }))();
5574
5638
 
5575
5639
  // src/server/quest-enrollments.ts
5576
- import * as z50 from "zod";
5640
+ import * as z51 from "zod";
5577
5641
  var questEnrollmentStateSchema = /* @__PURE__ */ (() => questEnrollmentSchema.extend({
5578
- revision: z50.number().int().nonnegative(),
5579
- withdrawnAt: z50.number().int().safe().nonnegative().nullable(),
5580
- withdrawalReason: z50.string().nullable()
5642
+ revision: z51.number().int().nonnegative(),
5643
+ withdrawnAt: z51.number().int().safe().nonnegative().nullable(),
5644
+ withdrawalReason: z51.string().nullable()
5581
5645
  }))();
5582
5646
  var managedQuestEnrollmentSchema = /* @__PURE__ */ (() => questEnrollmentStateSchema.extend({
5583
- title: z50.string(),
5584
- key: z50.string().nullable()
5647
+ title: z51.string(),
5648
+ key: z51.string().nullable()
5585
5649
  }))();
5586
- var questEnrollmentWithdrawalInputSchema = /* @__PURE__ */ (() => z50.object({
5587
- actionId: z50.string().uuid().default(() => crypto.randomUUID()),
5588
- expectedRevision: z50.number().int().nonnegative(),
5589
- reason: z50.string().trim().min(1).max(500)
5650
+ var questEnrollmentWithdrawalInputSchema = /* @__PURE__ */ (() => z51.object({
5651
+ actionId: z51.string().uuid().default(() => crypto.randomUUID()),
5652
+ expectedRevision: z51.number().int().nonnegative(),
5653
+ reason: z51.string().trim().min(1).max(500)
5590
5654
  }).strict())();
5591
- var managedQuestEnrollmentPageSchema = /* @__PURE__ */ (() => z50.object({
5592
- items: z50.array(managedQuestEnrollmentSchema),
5655
+ var managedQuestEnrollmentPageSchema = /* @__PURE__ */ (() => z51.object({
5656
+ items: z51.array(managedQuestEnrollmentSchema),
5593
5657
  nextCursor: pageCursorSchema.nullable()
5594
5658
  }))();
5595
5659
 
5596
5660
  // src/server/quest-stations.ts
5597
- import * as z51 from "zod";
5661
+ import * as z52 from "zod";
5598
5662
  var stationOperationTarget = (quest2, station2) => `station:${quest2}:${station2}`;
5599
- var stationRevocationInputSchema = /* @__PURE__ */ (() => z51.object({
5600
- reason: z51.string().trim().min(1).max(500),
5663
+ var stationRevocationInputSchema = /* @__PURE__ */ (() => z52.object({
5664
+ reason: z52.string().trim().min(1).max(500),
5601
5665
  actionId: identifier
5602
5666
  }).strict())();
5603
- var stationRevocationSchema = /* @__PURE__ */ (() => z51.object({
5667
+ var stationRevocationSchema = /* @__PURE__ */ (() => z52.object({
5604
5668
  quest: identifier,
5605
- station: z51.string(),
5606
- revoked: z51.boolean(),
5607
- reason: z51.string().nullable(),
5608
- actor: z51.string().nullable(),
5669
+ station: z52.string(),
5670
+ revoked: z52.boolean(),
5671
+ reason: z52.string().nullable(),
5672
+ actor: z52.string().nullable(),
5609
5673
  /** When it was last revoked or restored, epoch milliseconds. */
5610
- changedAt: z51.number().nullable(),
5611
- changed: z51.boolean()
5612
- }))();
5613
- var questStationStateSchema = /* @__PURE__ */ (() => z51.object({
5614
- key: z51.string(),
5615
- label: z51.string(),
5616
- opensAt: z51.number().optional(),
5617
- closesAt: z51.number().optional(),
5618
- proof: z51.string().optional(),
5619
- codeSet: z51.boolean().optional(),
5620
- status: z51.string(),
5621
- revocation: z51.object({
5622
- revoked: z51.boolean(),
5623
- reason: z51.string(),
5624
- actor: z51.string().nullable(),
5625
- changedAt: z51.number()
5674
+ changedAt: z52.number().nullable(),
5675
+ changed: z52.boolean()
5676
+ }))();
5677
+ var questStationStateSchema = /* @__PURE__ */ (() => z52.object({
5678
+ key: z52.string(),
5679
+ label: z52.string(),
5680
+ opensAt: z52.number().optional(),
5681
+ closesAt: z52.number().optional(),
5682
+ proof: z52.string().optional(),
5683
+ codeSet: z52.boolean().optional(),
5684
+ status: z52.string(),
5685
+ revocation: z52.object({
5686
+ revoked: z52.boolean(),
5687
+ reason: z52.string(),
5688
+ actor: z52.string().nullable(),
5689
+ changedAt: z52.number()
5626
5690
  }).nullable(),
5627
- completions: z51.number().int().nonnegative()
5691
+ completions: z52.number().int().nonnegative()
5628
5692
  }))();
5629
- var stationCodeSchema = /* @__PURE__ */ (() => z51.string().min(6).max(64).regex(/^[A-Za-z0-9_-]+$/, "use letters, digits, - or _"))();
5630
- var stationCodeInputSchema = /* @__PURE__ */ (() => z51.object({ code: stationCodeSchema, actionId: identifier }).strict())();
5631
- var stationCodeGenerateInputSchema = /* @__PURE__ */ (() => z51.object({ actionId: identifier }).strict())();
5632
- var stationScanPageSchema = /* @__PURE__ */ (() => z51.string().max(2048).refine((value) => {
5693
+ var stationCodeSchema = /* @__PURE__ */ (() => z52.string().min(6).max(64).regex(/^[A-Za-z0-9_-]+$/, "use letters, digits, - or _"))();
5694
+ var stationCodeInputSchema = /* @__PURE__ */ (() => z52.object({ code: stationCodeSchema, actionId: identifier }).strict())();
5695
+ var stationCodeGenerateInputSchema = /* @__PURE__ */ (() => z52.object({ actionId: identifier }).strict())();
5696
+ var stationScanPageSchema = /* @__PURE__ */ (() => z52.string().max(2048).refine((value) => {
5633
5697
  try {
5634
5698
  return new URL(value).protocol === "https:";
5635
5699
  } catch {
5636
5700
  return false;
5637
5701
  }
5638
5702
  }, "Use the https URL of your app's scan page"))();
5639
- var stationCodeStateSchema = /* @__PURE__ */ (() => z51.object({
5640
- quest: z51.string(),
5641
- station: z51.string(),
5642
- codeSet: z51.boolean(),
5643
- replaced: z51.boolean()
5703
+ var stationCodeStateSchema = /* @__PURE__ */ (() => z52.object({
5704
+ quest: z52.string(),
5705
+ station: z52.string(),
5706
+ codeSet: z52.boolean(),
5707
+ replaced: z52.boolean()
5644
5708
  }))();
5645
5709
  var generatedStationCodeSchema = /* @__PURE__ */ (() => stationCodeStateSchema.extend({
5646
- code: z51.string()
5710
+ code: z52.string()
5647
5711
  }))();
5648
5712
 
5649
5713
  // src/server/quests.ts
5650
- import * as z52 from "zod";
5651
- var questLifecycleInputSchema = /* @__PURE__ */ (() => z52.object({
5714
+ import * as z53 from "zod";
5715
+ var questLifecycleInputSchema = /* @__PURE__ */ (() => z53.object({
5652
5716
  quest: identifier,
5653
5717
  expectedRelease: identifier.optional(),
5654
- archived: z52.boolean(),
5655
- reason: z52.string().trim().min(1).max(500),
5718
+ archived: z53.boolean(),
5719
+ reason: z53.string().trim().min(1).max(500),
5656
5720
  actionId: identifier
5657
5721
  }).strict())();
5658
- var questLifecycleSchema = /* @__PURE__ */ (() => z52.object({
5722
+ var questLifecycleSchema = /* @__PURE__ */ (() => z53.object({
5659
5723
  quest: identifier,
5660
5724
  key: identifier.nullable(),
5661
- title: z52.string(),
5725
+ title: z53.string(),
5662
5726
  release: identifier,
5663
- lifecycle: z52.enum(["active", "paused", "archived"]),
5664
- changed: z52.boolean()
5727
+ lifecycle: z53.enum(["active", "paused", "archived"]),
5728
+ changed: z53.boolean()
5665
5729
  }))();
5666
5730
 
5667
5731
  // src/server/endpoints/quests.ts
5668
- import * as z53 from "zod";
5732
+ import * as z54 from "zod";
5669
5733
  var quest = { quest: ID_PATTERN };
5670
5734
  var station = { quest: ID_PATTERN, station: ID_PATTERN };
5671
5735
  var questEndpoints = /* @__PURE__ */ (() => ({
@@ -5691,7 +5755,7 @@ var questEndpoints = /* @__PURE__ */ (() => ({
5691
5755
  parameters: quest,
5692
5756
  permission: "read",
5693
5757
  ledger: "quests.stations",
5694
- result: () => z53.array(questStationStateSchema)
5758
+ result: () => z54.array(questStationStateSchema)
5695
5759
  }),
5696
5760
  revokeStation: managementEndpoint({
5697
5761
  method: "POST",
@@ -5749,7 +5813,7 @@ var questEndpoints = /* @__PURE__ */ (() => ({
5749
5813
  parameters: {},
5750
5814
  permission: "read",
5751
5815
  ledger: "quests.list",
5752
- result: () => z53.array(publishedReleaseSchema)
5816
+ result: () => z54.array(publishedReleaseSchema)
5753
5817
  }),
5754
5818
  listWithoutCode: managementEndpoint({
5755
5819
  method: "GET",
@@ -5757,7 +5821,7 @@ var questEndpoints = /* @__PURE__ */ (() => ({
5757
5821
  parameters: {},
5758
5822
  permission: "read",
5759
5823
  ledger: "quests.listWithoutCode",
5760
- result: () => z53.array(publishedReleaseSchema.omit({ code: true }))
5824
+ result: () => z54.array(publishedReleaseSchema.omit({ code: true }))
5761
5825
  }),
5762
5826
  automaticScheduling: managementEndpoint({
5763
5827
  method: "GET",
@@ -5830,7 +5894,7 @@ var questEndpoints = /* @__PURE__ */ (() => ({
5830
5894
  parameters: { member: ID_PATTERN },
5831
5895
  permission: "read",
5832
5896
  ledger: "submissions.list",
5833
- result: () => z53.object({ items: z53.array(questSubmissionSchema) })
5897
+ result: () => z54.object({ items: z54.array(questSubmissionSchema) })
5834
5898
  }),
5835
5899
  discardSubmission: managementEndpoint({
5836
5900
  method: "POST",
@@ -5859,8 +5923,33 @@ var questEndpoints = /* @__PURE__ */ (() => ({
5859
5923
  })
5860
5924
  }))();
5861
5925
 
5926
+ // src/server/referral-history.ts
5927
+ import * as z55 from "zod";
5928
+ var managedReferralHistorySchema = /* @__PURE__ */ (() => referralHistorySchema.extend({
5929
+ items: z55.array(
5930
+ referralHistorySchema.shape.items.element.extend({
5931
+ /**
5932
+ * The referral account the entry paid or corrected, as in `referrals.participants()`'s
5933
+ * `accounts`. Null for entries from before Relay recorded it, and once the friend's data is
5934
+ * purged.
5935
+ */
5936
+ account: identifier.nullish(),
5937
+ /**
5938
+ * The invited friend whose qualification or earnings the entry pays. Null for a milestone,
5939
+ * which counts every friend, and when `account` is null.
5940
+ */
5941
+ invitee: identifier.nullish(),
5942
+ /**
5943
+ * What the entry pays: a `fixed` reward for the friend's qualification, a `milestone`, or a
5944
+ * percentage `bonus` of the friend's earnings. Null when `account` is.
5945
+ */
5946
+ kind: z55.string().nullish()
5947
+ })
5948
+ )
5949
+ }))();
5950
+
5862
5951
  // src/server/endpoints/referrals.ts
5863
- import * as z54 from "zod";
5952
+ import * as z56 from "zod";
5864
5953
  var member2 = { member: ID_PATTERN };
5865
5954
  var resource3 = { resource: ID_PATTERN };
5866
5955
  var referralEndpoints = /* @__PURE__ */ (() => ({
@@ -5870,7 +5959,7 @@ var referralEndpoints = /* @__PURE__ */ (() => ({
5870
5959
  parameters: {},
5871
5960
  permission: "read",
5872
5961
  ledger: "referrals.listManaged",
5873
- result: () => z54.array(publishedReferralSchema)
5962
+ result: () => z56.array(publishedReferralSchema)
5874
5963
  }),
5875
5964
  participants: managementEndpoint({
5876
5965
  method: "GET",
@@ -5886,7 +5975,7 @@ var referralEndpoints = /* @__PURE__ */ (() => ({
5886
5975
  parameters: member2,
5887
5976
  permission: "read",
5888
5977
  ledger: "referrals.memberHistory",
5889
- result: () => referralHistorySchema
5978
+ result: () => managedReferralHistorySchema
5890
5979
  }),
5891
5980
  pause: managementEndpoint({
5892
5981
  method: "POST",
@@ -5956,19 +6045,19 @@ var referralEndpoints = /* @__PURE__ */ (() => ({
5956
6045
  }))();
5957
6046
 
5958
6047
  // src/server/releases.ts
5959
- import * as z55 from "zod";
5960
- var managedReleaseQuerySchema = /* @__PURE__ */ (() => z55.strictObject({
6048
+ import * as z57 from "zod";
6049
+ var managedReleaseQuerySchema = /* @__PURE__ */ (() => z57.strictObject({
5961
6050
  quest: identifier.optional(),
5962
6051
  limit: pageLimit,
5963
6052
  cursor: pageCursorSchema.optional()
5964
6053
  }))();
5965
- var managedReleasePageSchema = /* @__PURE__ */ (() => z55.object({
5966
- items: z55.array(publishedReleaseSchema),
5967
- nextCursor: z55.string().nullable()
6054
+ var managedReleasePageSchema = /* @__PURE__ */ (() => z57.object({
6055
+ items: z57.array(publishedReleaseSchema),
6056
+ nextCursor: z57.string().nullable()
5968
6057
  }))();
5969
6058
 
5970
6059
  // src/server/endpoints/releases.ts
5971
- import * as z56 from "zod";
6060
+ import * as z58 from "zod";
5972
6061
  var releaseEndpoints = /* @__PURE__ */ (() => ({
5973
6062
  // `GET /releases` is the releases page, so the list is `/releases/list`.
5974
6063
  list: managementEndpoint({
@@ -6001,7 +6090,7 @@ var releaseEndpoints = /* @__PURE__ */ (() => ({
6001
6090
  parameters: {},
6002
6091
  permission: "publish",
6003
6092
  ledger: "releases.publishBatch",
6004
- result: () => z56.array(publishedReleaseSchema)
6093
+ result: () => z58.array(publishedReleaseSchema)
6005
6094
  }),
6006
6095
  updateSettings: managementEndpoint({
6007
6096
  method: "POST",
@@ -6023,7 +6112,7 @@ var releaseEndpoints = /* @__PURE__ */ (() => ({
6023
6112
  }))();
6024
6113
 
6025
6114
  // src/server/endpoints/trackers.ts
6026
- import * as z57 from "zod";
6115
+ import * as z59 from "zod";
6027
6116
  var tracker = { tracker: ID_PATTERN };
6028
6117
  var resource4 = { resource: ID_PATTERN };
6029
6118
  var trackerEndpoints = /* @__PURE__ */ (() => ({
@@ -6033,7 +6122,7 @@ var trackerEndpoints = /* @__PURE__ */ (() => ({
6033
6122
  parameters: {},
6034
6123
  permission: "read",
6035
6124
  ledger: "trackers.list",
6036
- result: () => z57.array(trackerStatusSchema)
6125
+ result: () => z59.array(trackerStatusSchema)
6037
6126
  }),
6038
6127
  get: managementEndpoint({
6039
6128
  method: "GET",
@@ -6332,50 +6421,50 @@ var teamEndpoints = /* @__PURE__ */ (() => ({
6332
6421
  }))();
6333
6422
 
6334
6423
  // src/server/test-members.ts
6335
- import * as z58 from "zod";
6336
- var testMemberWalletSchema = /* @__PURE__ */ (() => z58.object({
6424
+ import * as z60 from "zod";
6425
+ var testMemberWalletSchema = /* @__PURE__ */ (() => z60.object({
6337
6426
  chain: walletChainSchema,
6338
6427
  /** CAIP-2 network, Cosmos only. */
6339
6428
  network: cosmosNetworkSchema.nullable(),
6340
- address: z58.string()
6429
+ address: z60.string()
6341
6430
  }))();
6342
- var testMemberAccountSchema = /* @__PURE__ */ (() => z58.object({
6343
- provider: z58.enum(["x", "discord"]),
6431
+ var testMemberAccountSchema = /* @__PURE__ */ (() => z60.object({
6432
+ provider: z60.enum(["x", "discord"]),
6344
6433
  /** The X user ID or Discord user ID. */
6345
- id: z58.string(),
6434
+ id: z60.string(),
6346
6435
  /** The X handle, when the account was linked by username; otherwise null. */
6347
- username: z58.string().nullable(),
6436
+ username: z60.string().nullable(),
6348
6437
  /**
6349
6438
  * `linked`: an operator linked a real account with `linkAccount`. `synthetic`: the account Relay
6350
6439
  * linked for synthetic records. `connected`: the member connected it through X or Discord while
6351
6440
  * a staging site acted as them.
6352
6441
  */
6353
- source: z58.enum(["linked", "synthetic", "connected"])
6442
+ source: z60.enum(["linked", "synthetic", "connected"])
6354
6443
  }))();
6355
- var testMemberSchema = /* @__PURE__ */ (() => z58.object({
6444
+ var testMemberSchema = /* @__PURE__ */ (() => z60.object({
6356
6445
  id: identifier,
6357
- name: z58.string(),
6358
- test: z58.literal(true),
6446
+ name: z60.string(),
6447
+ test: z60.literal(true),
6359
6448
  /** Current project-calendar date (YYYY-MM-DD), computed by the server. */
6360
- today: z58.iso.date().optional(),
6449
+ today: z60.iso.date().optional(),
6361
6450
  /**
6362
6451
  * Number of calendar days advanced with `days`; absent means zero for older servers. Hours,
6363
6452
  * minutes and `to` leave it unchanged, so read the member's date from `today`.
6364
6453
  */
6365
- offsetDays: z58.number().int().min(0).optional(),
6454
+ offsetDays: z60.number().int().min(0).optional(),
6366
6455
  /** Linked wallet addresses, by chain then newest first; absent from older servers. */
6367
- wallets: z58.array(testMemberWalletSchema).optional(),
6456
+ wallets: z60.array(testMemberWalletSchema).optional(),
6368
6457
  /** Its X and Discord accounts, X first; absent from older servers. */
6369
- accounts: z58.array(testMemberAccountSchema).optional()
6458
+ accounts: z60.array(testMemberAccountSchema).optional()
6370
6459
  }))();
6371
- var testMemberCreateSchema = /* @__PURE__ */ (() => z58.object({
6460
+ var testMemberCreateSchema = /* @__PURE__ */ (() => z60.object({
6372
6461
  actionId: identifier,
6373
- name: z58.string().trim().min(1).max(40)
6462
+ name: z60.string().trim().min(1).max(40)
6374
6463
  }).strict())();
6375
6464
  var testMemberActionSchema = /* @__PURE__ */ (() => submitSchema.omit({ member: true, faultAfterReview: true }).extend({
6376
- operation: z58.literal("attempts.submit")
6465
+ operation: z60.literal("attempts.submit")
6377
6466
  }).strict())();
6378
- var testMemberPassSchema = /* @__PURE__ */ (() => z58.object({
6467
+ var testMemberPassSchema = /* @__PURE__ */ (() => z60.object({
6379
6468
  actionId: identifier,
6380
6469
  /** A manual quest, by key or ID. Automatic quests start from their tracker or schedule. */
6381
6470
  quest: identifier,
@@ -6386,122 +6475,122 @@ var testMemberPassSchema = /* @__PURE__ */ (() => z58.object({
6386
6475
  */
6387
6476
  completionKey: completionKeySchema.optional()
6388
6477
  }).strict())();
6389
- var testMemberAcceptAnywaySchema = /* @__PURE__ */ (() => z58.object({
6478
+ var testMemberAcceptAnywaySchema = /* @__PURE__ */ (() => z60.object({
6390
6479
  actionId: identifier,
6391
6480
  attempt: identifier,
6392
6481
  /** `"test"` (the default) or `"live"`: whose refusals apply. */
6393
- rules: z58.enum(["test", "live"]).optional(),
6482
+ rules: z60.enum(["test", "live"]).optional(),
6394
6483
  /** Why the rejection is reversed, recorded with the decision. Required with `rules: "live"`. */
6395
- reason: z58.string().trim().min(1).max(2e3).optional()
6484
+ reason: z60.string().trim().min(1).max(2e3).optional()
6396
6485
  }).strict())();
6397
- var testMemberReferralAcceptSchema = /* @__PURE__ */ (() => z58.union([
6398
- z58.object({ actionId: identifier, code: identifier }).strict(),
6399
- z58.object({ actionId: identifier, inviter: identifier }).strict()
6486
+ var testMemberReferralAcceptSchema = /* @__PURE__ */ (() => z60.union([
6487
+ z60.object({ actionId: identifier, code: identifier }).strict(),
6488
+ z60.object({ actionId: identifier, inviter: identifier }).strict()
6400
6489
  ]))();
6401
- var testMemberRedeemSchema = /* @__PURE__ */ (() => z58.object({ actionId: identifier, offer: identifier }).strict())();
6402
- var testMemberResetSchema = /* @__PURE__ */ (() => z58.object({ actionId: identifier }).strict())();
6403
- var testMemberPurgeSchema = /* @__PURE__ */ (() => z58.object({
6490
+ var testMemberRedeemSchema = /* @__PURE__ */ (() => z60.object({ actionId: identifier, offer: identifier }).strict())();
6491
+ var testMemberResetSchema = /* @__PURE__ */ (() => z60.object({ actionId: identifier }).strict())();
6492
+ var testMemberPurgeSchema = /* @__PURE__ */ (() => z60.object({
6404
6493
  actionId: identifier,
6405
6494
  // A cap on one transaction's size, matching the campaign playground's member limit per run.
6406
- members: z58.array(identifier).min(1).max(500),
6407
- reason: z58.string().trim().min(1).max(2e3)
6495
+ members: z60.array(identifier).min(1).max(500),
6496
+ reason: z60.string().trim().min(1).max(2e3)
6408
6497
  }).strict())();
6409
- var testMemberAdvanceSchema = /* @__PURE__ */ (() => z58.object({
6498
+ var testMemberAdvanceSchema = /* @__PURE__ */ (() => z60.object({
6410
6499
  actionId: identifier,
6411
- days: z58.number().int().min(1).max(30)
6500
+ days: z60.number().int().min(1).max(30)
6412
6501
  }).strict())();
6413
- var testMemberClockAdvanceSchema = /* @__PURE__ */ (() => z58.union([
6502
+ var testMemberClockAdvanceSchema = /* @__PURE__ */ (() => z60.union([
6414
6503
  testMemberAdvanceSchema,
6415
- z58.object({ actionId: identifier, hours: z58.number().int().min(1).max(720) }).strict(),
6416
- z58.object({
6504
+ z60.object({ actionId: identifier, hours: z60.number().int().min(1).max(720) }).strict(),
6505
+ z60.object({
6417
6506
  actionId: identifier,
6418
- minutes: z58.number().int().min(1).max(43200)
6507
+ minutes: z60.number().int().min(1).max(43200)
6419
6508
  }).strict(),
6420
- z58.object({
6509
+ z60.object({
6421
6510
  actionId: identifier,
6422
6511
  /**
6423
6512
  * An ISO 8601 instant with an offset, such as `2026-10-10T00:00:00+02:00`, or epoch
6424
6513
  * milliseconds, which parse to that instant in UTC, so the parsed `to` is always an ISO
6425
6514
  * string.
6426
6515
  */
6427
- to: z58.union([
6428
- z58.iso.datetime({ offset: true }),
6429
- z58.number().int().nonnegative().max(864e13).transform((at) => new Date(at).toISOString())
6516
+ to: z60.union([
6517
+ z60.iso.datetime({ offset: true }),
6518
+ z60.number().int().nonnegative().max(864e13).transform((at) => new Date(at).toISOString())
6430
6519
  ])
6431
6520
  }).strict()
6432
6521
  ]))();
6433
- var testMemberResetResultSchema = /* @__PURE__ */ (() => z58.object({
6522
+ var testMemberResetResultSchema = /* @__PURE__ */ (() => z60.object({
6434
6523
  member: identifier,
6435
- deleted: z58.literal(true)
6524
+ deleted: z60.literal(true)
6436
6525
  }))();
6437
- var testMemberPurgeResultSchema = /* @__PURE__ */ (() => z58.object({
6438
- members: z58.array(identifier),
6439
- purged: z58.literal(true)
6526
+ var testMemberPurgeResultSchema = /* @__PURE__ */ (() => z60.object({
6527
+ members: z60.array(identifier),
6528
+ purged: z60.literal(true)
6440
6529
  }))();
6441
- var testMemberWalletLinkSchema = /* @__PURE__ */ (() => z58.discriminatedUnion("chain", [
6442
- z58.object({
6530
+ var testMemberWalletLinkSchema = /* @__PURE__ */ (() => z60.discriminatedUnion("chain", [
6531
+ z60.object({
6443
6532
  actionId: identifier,
6444
- chain: z58.literal("solana"),
6533
+ chain: z60.literal("solana"),
6445
6534
  address: solanaAddressSchema
6446
6535
  }).strict(),
6447
- z58.object({
6536
+ z60.object({
6448
6537
  actionId: identifier,
6449
- chain: z58.literal("eip155"),
6538
+ chain: z60.literal("eip155"),
6450
6539
  address: evmAddressSchema
6451
6540
  }).strict(),
6452
- z58.object({
6541
+ z60.object({
6453
6542
  actionId: identifier,
6454
- chain: z58.literal("cosmos"),
6543
+ chain: z60.literal("cosmos"),
6455
6544
  network: cosmosNetworkSchema,
6456
6545
  address: cosmosAddressSchema
6457
6546
  }).strict()
6458
6547
  ]))();
6459
- var testMemberWalletUnlinkSchema = /* @__PURE__ */ (() => z58.object({
6548
+ var testMemberWalletUnlinkSchema = /* @__PURE__ */ (() => z60.object({
6460
6549
  actionId: identifier,
6461
6550
  chain: walletChainSchema,
6462
- address: z58.string().min(1).max(100)
6551
+ address: z60.string().min(1).max(100)
6463
6552
  }).strict())();
6464
- var snowflake = /* @__PURE__ */ (() => z58.string().regex(/^[0-9]{1,20}$/))();
6465
- var accountId = /* @__PURE__ */ (() => z58.string().regex(/^[0-9]{1,20}$/, "Use the numeric user ID"))();
6466
- var accountReference = /* @__PURE__ */ (() => z58.object({
6553
+ var snowflake = /* @__PURE__ */ (() => z60.string().regex(/^[0-9]{1,20}$/))();
6554
+ var accountId = /* @__PURE__ */ (() => z60.string().regex(/^[0-9]{1,20}$/, "Use the numeric user ID"))();
6555
+ var accountReference = /* @__PURE__ */ (() => z60.object({
6467
6556
  actionId: identifier,
6468
- kind: z58.enum(["x", "discord"]),
6469
- subject: z58.string().regex(/^[1-9][0-9]{0,19}$/, "Use the numeric user ID")
6557
+ kind: z60.enum(["x", "discord"]),
6558
+ subject: z60.string().regex(/^[1-9][0-9]{0,19}$/, "Use the numeric user ID")
6470
6559
  }).strict().transform(({ actionId: actionId3, kind, subject }) => ({
6471
6560
  actionId: actionId3,
6472
6561
  provider: kind,
6473
6562
  id: subject
6474
6563
  })))();
6475
- var accountById = /* @__PURE__ */ (() => z58.object({
6564
+ var accountById = /* @__PURE__ */ (() => z60.object({
6476
6565
  actionId: identifier,
6477
- provider: z58.enum(["x", "discord"]),
6566
+ provider: z60.enum(["x", "discord"]),
6478
6567
  id: accountId
6479
6568
  }).strict())();
6480
- var testMemberAccountLinkSchema = /* @__PURE__ */ (() => z58.union([
6569
+ var testMemberAccountLinkSchema = /* @__PURE__ */ (() => z60.union([
6481
6570
  accountById,
6482
- z58.object({
6571
+ z60.object({
6483
6572
  actionId: identifier,
6484
- provider: z58.literal("x"),
6573
+ provider: z60.literal("x"),
6485
6574
  username: xUsernameSchema
6486
6575
  }).strict(),
6487
6576
  accountReference
6488
6577
  ]))();
6489
- var testMemberAccountUnlinkSchema = /* @__PURE__ */ (() => z58.union([
6578
+ var testMemberAccountUnlinkSchema = /* @__PURE__ */ (() => z60.union([
6490
6579
  accountById,
6491
6580
  accountReference
6492
6581
  ]))();
6493
- var metric = /* @__PURE__ */ (() => z58.number().int().nonnegative().safe())();
6494
- var testMemberXPostSchema = /* @__PURE__ */ (() => z58.strictObject({
6495
- content: z58.string().max(4e3).default(""),
6496
- author: z58.strictObject({
6582
+ var metric = /* @__PURE__ */ (() => z60.number().int().nonnegative().safe())();
6583
+ var testMemberXPostSchema = /* @__PURE__ */ (() => z60.strictObject({
6584
+ content: z60.string().max(4e3).default(""),
6585
+ author: z60.strictObject({
6497
6586
  /** Defaults to `test_` and the end of the synthetic account ID. */
6498
- username: z58.string().min(1).max(50).optional(),
6587
+ username: z60.string().min(1).max(50).optional(),
6499
6588
  /** Defaults to the test member's name. */
6500
- name: z58.string().min(1).max(100).optional()
6589
+ name: z60.string().min(1).max(100).optional()
6501
6590
  }).default({}),
6502
- isReply: z58.boolean().default(false),
6503
- isRetweet: z58.boolean().default(false),
6504
- isQuoteTweet: z58.boolean().default(false),
6591
+ isReply: z60.boolean().default(false),
6592
+ isRetweet: z60.boolean().default(false),
6593
+ isQuoteTweet: z60.boolean().default(false),
6505
6594
  likeCount: metric.default(0),
6506
6595
  replyCount: metric.default(0),
6507
6596
  retweetCount: metric.default(0),
@@ -6509,27 +6598,27 @@ var testMemberXPostSchema = /* @__PURE__ */ (() => z58.strictObject({
6509
6598
  viewCount: metric.default(0),
6510
6599
  bookmarkCount: metric.default(0)
6511
6600
  }))();
6512
- var testMemberDiscordMessageSchema = /* @__PURE__ */ (() => z58.strictObject({
6601
+ var testMemberDiscordMessageSchema = /* @__PURE__ */ (() => z60.strictObject({
6513
6602
  channelId: snowflake.optional(),
6514
6603
  /** The channel whose thread `channelId` is, or null outside a thread. */
6515
6604
  parentChannelId: snowflake.nullable().default(null),
6516
6605
  replyTo: snowflake.nullable().default(null),
6517
- text: z58.string().max(4e3).optional()
6606
+ text: z60.string().max(4e3).optional()
6518
6607
  }))();
6519
- var testMemberDiscordReactionSchema = /* @__PURE__ */ (() => z58.strictObject({
6608
+ var testMemberDiscordReactionSchema = /* @__PURE__ */ (() => z60.strictObject({
6520
6609
  channelId: snowflake.optional(),
6521
6610
  /** The channel whose thread `channelId` is, or null outside a thread. */
6522
6611
  parentChannelId: snowflake.nullable().default(null),
6523
6612
  messageId: snowflake.optional(),
6524
- emoji: z58.strictObject({
6613
+ emoji: z60.strictObject({
6525
6614
  /** A custom emoji's ID, or null for a Unicode emoji. */
6526
6615
  id: snowflake.nullable().default(null),
6527
- name: z58.string().min(1).max(100)
6616
+ name: z60.string().min(1).max(100)
6528
6617
  }).default({ id: null, name: "\u{1F44D}" }),
6529
- reactorRoles: z58.array(snowflake).max(50).default([]),
6530
- messagePublishedAt: z58.number().int().nonnegative().safe().optional()
6618
+ reactorRoles: z60.array(snowflake).max(50).default([]),
6619
+ messagePublishedAt: z60.number().int().nonnegative().safe().optional()
6531
6620
  }))();
6532
- var testMemberRecordSchema = /* @__PURE__ */ (() => z58.object({
6621
+ var testMemberRecordSchema = /* @__PURE__ */ (() => z60.object({
6533
6622
  actionId: identifier,
6534
6623
  /** A managed X or Discord tracker, by key or ID. */
6535
6624
  tracker: identifier,
@@ -6537,16 +6626,16 @@ var testMemberRecordSchema = /* @__PURE__ */ (() => z58.object({
6537
6626
  * The record account the test member holds. `messageAuthor` (Discord reactions only) makes the
6538
6627
  * member the reacted-to message's author, and the reactor a synthetic account no member holds.
6539
6628
  */
6540
- as: z58.enum(["author", "messageAuthor"]).default("author"),
6541
- data: z58.record(z58.string(), z58.json()).default({})
6629
+ as: z60.enum(["author", "messageAuthor"]).default("author"),
6630
+ data: z60.record(z60.string(), z60.json()).default({})
6542
6631
  }).strict())();
6543
6632
  var testMemberRecordResultSchema = /* @__PURE__ */ (() => trackerIngestResultSchema.extend({
6544
6633
  /** The tracker's stable ID. */
6545
6634
  tracker: identifier,
6546
6635
  /** The stored record's ID. */
6547
- record: z58.string(),
6636
+ record: z60.string(),
6548
6637
  /** The account the record names for the test member: its linked one, else its synthetic one. */
6549
- account: z58.object({ kind: z58.enum(["x", "discord"]), id: z58.string() })
6638
+ account: z60.object({ kind: z60.enum(["x", "discord"]), id: z60.string() })
6550
6639
  }))();
6551
6640
  var TestMemberDecisionKind = {
6552
6641
  /** `testMembers.pass`: the quest's check never ran. */
@@ -6554,51 +6643,51 @@ var TestMemberDecisionKind = {
6554
6643
  /** `testMembers.acceptAnyway`: the attempt was rejected, then accepted. */
6555
6644
  AcceptAnyway: "accept-anyway"
6556
6645
  };
6557
- var testMemberDecisionKindSchema = /* @__PURE__ */ (() => z58.string())();
6558
- var testMemberOperatorDecisionSchema = /* @__PURE__ */ (() => z58.object({
6646
+ var testMemberDecisionKindSchema = /* @__PURE__ */ (() => z60.string())();
6647
+ var testMemberOperatorDecisionSchema = /* @__PURE__ */ (() => z60.object({
6559
6648
  kind: testMemberDecisionKindSchema,
6560
6649
  /** The operator who decided, as audit history names them. */
6561
- actor: z58.string().nullable(),
6562
- at: z58.number().int().nonnegative().safe()
6650
+ actor: z60.string().nullable(),
6651
+ at: z60.number().int().nonnegative().safe()
6563
6652
  }))();
6564
- var testMemberHistoryQuerySchema = /* @__PURE__ */ (() => z58.object({
6653
+ var testMemberHistoryQuerySchema = /* @__PURE__ */ (() => z60.object({
6565
6654
  /** Inclusive lower bound on credited activity time, in epoch milliseconds. */
6566
- since: z58.coerce.number().int().nonnegative().safe().optional()
6655
+ since: z60.coerce.number().int().nonnegative().safe().optional()
6567
6656
  }))();
6568
- var testMemberHistorySchema = /* @__PURE__ */ (() => z58.object({
6657
+ var testMemberHistorySchema = /* @__PURE__ */ (() => z60.object({
6569
6658
  /** Newest credited activity first, up to 500 attempts. */
6570
- attempts: z58.array(
6659
+ attempts: z60.array(
6571
6660
  attemptSchema.extend({
6572
6661
  /** The quest's authoring key; absent when the quest has none. */
6573
- questKey: z58.string().optional(),
6574
- eligibleAt: z58.number().int().nonnegative().safe(),
6662
+ questKey: z60.string().optional(),
6663
+ eligibleAt: z60.number().int().nonnegative().safe(),
6575
6664
  /** Set when an operator decided the attempt in place of its evaluator; absent otherwise. */
6576
6665
  operatorDecision: testMemberOperatorDecisionSchema.optional(),
6577
6666
  /**
6578
6667
  * Rewards of this attempt's completion that Relay never sent, each with why: a role reward
6579
6668
  * for a test-linked Discord account. Absent when every reward was sent.
6580
6669
  */
6581
- rewardsNotSent: z58.array(z58.object({ reason: z58.string() })).optional()
6670
+ rewardsNotSent: z60.array(z60.object({ reason: z60.string() })).optional()
6582
6671
  })
6583
6672
  ),
6584
6673
  /** Tracker trigger outcomes that admitted no attempt, newest occurrence first, up to 500. */
6585
- skipped: z58.array(
6586
- z58.object({
6674
+ skipped: z60.array(
6675
+ z60.object({
6587
6676
  quest: identifier,
6588
6677
  /** The quest's authoring key; absent when the quest has none. */
6589
- questKey: z58.string().optional(),
6678
+ questKey: z60.string().optional(),
6590
6679
  tracker: identifier,
6591
- record: z58.string(),
6592
- code: z58.string().min(1),
6593
- occurredAt: z58.number().int().nonnegative().safe()
6680
+ record: z60.string(),
6681
+ code: z60.string().min(1),
6682
+ occurredAt: z60.number().int().nonnegative().safe()
6594
6683
  })
6595
6684
  ),
6596
6685
  /** False when older entries were omitted from either list. */
6597
- complete: z58.boolean()
6686
+ complete: z60.boolean()
6598
6687
  }))();
6599
6688
 
6600
6689
  // src/server/endpoints/test-members.ts
6601
- import * as z59 from "zod";
6690
+ import * as z61 from "zod";
6602
6691
  var member3 = { member: SEGMENT_PATTERN };
6603
6692
  var testMemberEndpoints = /* @__PURE__ */ (() => ({
6604
6693
  list: managementEndpoint({
@@ -6607,7 +6696,7 @@ var testMemberEndpoints = /* @__PURE__ */ (() => ({
6607
6696
  parameters: {},
6608
6697
  permission: "publish",
6609
6698
  ledger: null,
6610
- result: () => z59.array(testMemberSchema)
6699
+ result: () => z61.array(testMemberSchema)
6611
6700
  }),
6612
6701
  create: managementEndpoint({
6613
6702
  method: "POST",
@@ -6741,7 +6830,7 @@ var testMemberEndpoints = /* @__PURE__ */ (() => ({
6741
6830
  }))();
6742
6831
 
6743
6832
  // src/server/endpoints/webhooks.ts
6744
- import * as z60 from "zod";
6833
+ import * as z62 from "zod";
6745
6834
  var webhookEndpoints = /* @__PURE__ */ (() => ({
6746
6835
  list: managementEndpoint({
6747
6836
  method: "GET",
@@ -6749,7 +6838,7 @@ var webhookEndpoints = /* @__PURE__ */ (() => ({
6749
6838
  parameters: {},
6750
6839
  permission: "read",
6751
6840
  ledger: null,
6752
- result: () => z60.array(webhookEndpointSchema)
6841
+ result: () => z62.array(webhookEndpointSchema)
6753
6842
  }),
6754
6843
  create: managementEndpoint({
6755
6844
  method: "POST",
@@ -6992,6 +7081,9 @@ export {
6992
7081
  engagementEndpoints,
6993
7082
  contentEndpoints,
6994
7083
  managedEntitlementQuerySchema,
7084
+ EntitlementSourceKind,
7085
+ entitlementSourceSchema,
7086
+ entitlementProvenanceSchema,
6995
7087
  managedEntitlementPageSchema,
6996
7088
  managedEntitlementSchema,
6997
7089
  entitlementEndpoints,
@@ -7033,6 +7125,7 @@ export {
7033
7125
  stockInputSchema,
7034
7126
  managedStockItemSchema,
7035
7127
  inventoryEndpoints,
7128
+ leaderboardMemberStandingSchema,
7036
7129
  solanaPayoutMintSchema,
7037
7130
  solanaPayoutSquadsSchema,
7038
7131
  solanaPayoutInputSchema,
@@ -7159,6 +7252,7 @@ export {
7159
7252
  questLifecycleInputSchema,
7160
7253
  questLifecycleSchema,
7161
7254
  questEndpoints,
7255
+ managedReferralHistorySchema,
7162
7256
  referralEndpoints,
7163
7257
  managedReleaseQuerySchema,
7164
7258
  managedReleasePageSchema,