@domino-sdk/relay 1.66.1 → 1.68.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 (72) hide show
  1. package/CHANGELOG.md +68 -0
  2. package/dist/{accounts-_lNsiR2k.d.ts → accounts-DnpKoJCo.d.ts} +210 -3
  3. package/dist/{attempt-captures-BqPggxTU.d.ts → attempt-captures-DMNFMYFb.d.ts} +9 -1
  4. package/dist/authoring.d.ts +352 -40
  5. package/dist/authoring.js +131 -22
  6. package/dist/{automatic-outcomes-BzAvfcpd.d.ts → automatic-outcomes-CQ3vpiQl.d.ts} +2 -2
  7. package/dist/avatar.d.ts +1 -1
  8. package/dist/browser.d.ts +10 -9
  9. package/dist/browser.js +12 -12
  10. package/dist/{catalog-ByZMRS7I.d.ts → catalog-BLGie8Lh.d.ts} +60 -2
  11. package/dist/chunk-4JSPMFO2.js +427 -0
  12. package/dist/{chunk-5LD5DKOM.js → chunk-55WJVFWC.js} +2 -2
  13. package/dist/{chunk-CJDB6W6I.js → chunk-5AKD4ZF3.js} +75 -36
  14. package/dist/{chunk-7MQCQYEE.js → chunk-6UBFSMCM.js} +1 -1
  15. package/dist/{chunk-XCEGNKGH.js → chunk-6YTSRWRB.js} +1254 -700
  16. package/dist/{chunk-OWDIR7ZU.js → chunk-75KF633N.js} +9 -1
  17. package/dist/{chunk-4TC4HK5Y.js → chunk-7YSVZA7A.js} +1 -1
  18. package/dist/{chunk-7HTRIEM7.js → chunk-CZ7NQ7W7.js} +11 -68
  19. package/dist/{chunk-ANVAUOJP.js → chunk-DDJN2T5A.js} +1 -1
  20. package/dist/{chunk-M66Y5OMJ.js → chunk-DNPDR4Z7.js} +16 -9
  21. package/dist/{chunk-FU3W4IQN.js → chunk-EXZVWQOQ.js} +2 -2
  22. package/dist/{chunk-5DYS2OIP.js → chunk-HXTKI34N.js} +14 -2
  23. package/dist/{chunk-FGXLXENM.js → chunk-IW46TW3A.js} +21 -1
  24. package/dist/{chunk-2Y4EZKET.js → chunk-KKHENO57.js} +2 -2
  25. package/dist/{chunk-U66GUVSG.js → chunk-LZXDYSUH.js} +2 -0
  26. package/dist/{chunk-QYHEHMCG.js → chunk-MEUAJIVO.js} +2 -2
  27. package/dist/{chunk-BQXRCJ3N.js → chunk-P4TPW4SY.js} +1 -1
  28. package/dist/{chunk-CGUL4MRE.js → chunk-R3MNZKNJ.js} +1 -1
  29. package/dist/{chunk-R2LHIWAM.js → chunk-SD74HD75.js} +45 -9
  30. package/dist/{chunk-FUFMYKSQ.js → chunk-TYZFVL73.js} +136 -5
  31. package/dist/chunk-VAGGGB6B.js +87 -0
  32. package/dist/{chunk-2HHZV7U3.js → chunk-VRZZB7CQ.js} +1 -1
  33. package/dist/{client-Cze4lfwA.d.ts → client-BMif22WQ.d.ts} +136 -7
  34. package/dist/{dashboards-pVfclkyh.d.ts → dashboards-DMk-vL1q.d.ts} +4 -4
  35. package/dist/{deployments-Cr1tfqrr.d.ts → deployments-BCr418BX.d.ts} +582 -173
  36. package/dist/{identity-integration-Ci2vGKtX.d.ts → identity-integration-r76xaAax.d.ts} +10 -2
  37. package/dist/index.d.ts +10 -10
  38. package/dist/index.js +10 -10
  39. package/dist/internal.d.ts +155 -14
  40. package/dist/internal.js +255 -25
  41. package/dist/{limits-pE04y9O2.d.ts → limits-ByVRQePO.d.ts} +6 -1
  42. package/dist/{offers-Hw2P6tcK.d.ts → offers-xcPbYaEv.d.ts} +2 -2
  43. package/dist/portal-proxy.d.ts +5 -5
  44. package/dist/portal-proxy.js +13 -15
  45. package/dist/react/index.d.ts +38 -15
  46. package/dist/react/index.js +12 -12
  47. package/dist/{reward-deliveries-BCV8hznc.d.ts → reward-deliveries-0VvT6LMj.d.ts} +1 -1
  48. package/dist/runtime/authoring.js +1 -1
  49. package/dist/runtime/chunks/2UDZ6TPL.js +1 -0
  50. package/dist/runtime/manifest.json +3 -3
  51. package/dist/runtime/schema.js +1 -1
  52. package/dist/schema.d.ts +401 -104
  53. package/dist/schema.js +66 -8
  54. package/dist/server/index.d.ts +12 -12
  55. package/dist/server/index.js +2288 -873
  56. package/dist/{sign-in-providers-BAkGjSXo.d.ts → sign-in-providers-C5_753DZ.d.ts} +2 -2
  57. package/dist/solana.d.ts +171 -0
  58. package/dist/solana.js +364 -0
  59. package/dist/{submission-input-ChL1aYNH.d.ts → submission-input-CaL8drIh.d.ts} +2 -2
  60. package/dist/{telegram-browser-BFs4u7lC.d.ts → telegram-browser-DLtHPRBI.d.ts} +6 -108
  61. package/dist/telegram.d.ts +8 -8
  62. package/dist/telegram.js +2 -2
  63. package/dist/testing.d.ts +87 -14
  64. package/dist/testing.js +108 -11
  65. package/dist/{tracker-data-Bl-qPIvZ.d.ts → tracker-data-CAK942sx.d.ts} +300 -3
  66. package/dist/{transport-WE49Ta3A.d.ts → transport-CkidqTOk.d.ts} +5866 -1244
  67. package/dist/{wallet-B7e06v4m.d.ts → wallet-DQtJelQQ.d.ts} +418 -33
  68. package/dist/wallet-browser-dpmr22Xv.d.ts +106 -0
  69. package/package.json +18 -1
  70. package/dist/chunk-UYVJZR33.js +0 -34
  71. package/dist/chunk-UZ765UGH.js +0 -18
  72. package/dist/runtime/chunks/C5V267I7.js +0 -1
package/dist/authoring.js CHANGED
@@ -6,14 +6,14 @@ import {
6
6
  sourceDataSchema,
7
7
  sourceRoles,
8
8
  validateQuestShape
9
- } from "./chunk-5DYS2OIP.js";
9
+ } from "./chunk-HXTKI34N.js";
10
10
  import {
11
11
  defineDashboard,
12
12
  tiktokVideoBodySchema,
13
13
  tiktokVideoMetrics,
14
14
  youtubeShortBodySchema,
15
15
  youtubeShortMetrics
16
- } from "./chunk-QYHEHMCG.js";
16
+ } from "./chunk-MEUAJIVO.js";
17
17
  import {
18
18
  CapabilityError,
19
19
  capabilityErrorCodes
@@ -24,7 +24,7 @@ import {
24
24
  engagementScoreSchema,
25
25
  offerAuthoringSchema,
26
26
  referralAuthoringSchema
27
- } from "./chunk-5LD5DKOM.js";
27
+ } from "./chunk-55WJVFWC.js";
28
28
  import {
29
29
  announcementSchema,
30
30
  authorBudgetSchema,
@@ -64,6 +64,7 @@ import {
64
64
  isContractEvent,
65
65
  isEvmChainId,
66
66
  isNftCollection,
67
+ isSolanaNetwork,
67
68
  isSolanaProgram,
68
69
  leaderboardAuthoringSchema,
69
70
  ledgerKey,
@@ -82,6 +83,7 @@ import {
82
83
  pointLedgerDeclarationSchema,
83
84
  pointsRewardSchema,
84
85
  questDescriptionSchema,
86
+ questStationsSchema,
85
87
  quizAnswersSchema,
86
88
  quizContentSchema,
87
89
  rejectCodeIssue,
@@ -116,14 +118,22 @@ import {
116
118
  urlOptionsSchema,
117
119
  walletBalanceSampleSchema,
118
120
  walletBalancesNamespace,
121
+ walletNftSampleSchema,
122
+ walletNftsNamespace,
123
+ walletProgramActivityNamespace,
124
+ walletProgramActivitySchema,
125
+ walletProgramActivitySourceSchema,
126
+ walletStakeNamespace,
127
+ walletStakeSampleSchema,
128
+ walletStakeSourceSchema,
119
129
  whereSchemaIssue,
120
130
  whereSettings,
121
131
  xSearchSourceSchema,
122
132
  youtubeShortsNamespace
123
- } from "./chunk-XCEGNKGH.js";
133
+ } from "./chunk-6YTSRWRB.js";
124
134
  import {
125
135
  parseDefinition
126
- } from "./chunk-FGXLXENM.js";
136
+ } from "./chunk-IW46TW3A.js";
127
137
 
128
138
  // src/builders.ts
129
139
  import * as z from "zod";
@@ -477,13 +487,13 @@ function walletBalanceSource(query) {
477
487
  if (given !== null && typeof given !== "string") {
478
488
  throw new Error("wallet.balances() takes the token as a string");
479
489
  }
480
- if (chain === "solana" || chain === solanaMainnet) {
490
+ if (chain === "solana" || typeof chain === "string" && isSolanaNetwork(chain)) {
481
491
  if (given !== null && !solanaAddressSchema.safeParse(given).success) {
482
492
  throw new Error(
483
493
  "wallet.balances() on Solana takes an SPL or Token-2022 mint address (base58)"
484
494
  );
485
495
  }
486
- return { chain: solanaMainnet, token: given };
496
+ return { chain: chain === "solana" ? solanaMainnet : chain, token: given };
487
497
  }
488
498
  if (typeof chain === "string" && isEvmChainId(chain)) {
489
499
  if (given !== null && !/^0x[0-9a-fA-F]{40}$/.test(given)) {
@@ -505,6 +515,39 @@ function walletBalanceSource(query) {
505
515
  'wallet.balances() reads "solana", an EVM chain such as "eip155:8453" or a Cosmos network such as "cosmos:cosmoshub-4"'
506
516
  );
507
517
  }
518
+ function walletProgramActivitySource(query) {
519
+ const {
520
+ chain = "solana",
521
+ program,
522
+ instruction: instruction2,
523
+ mint,
524
+ minAmount,
525
+ signer = "wallet"
526
+ } = query;
527
+ if (chain !== "solana" && !(typeof chain === "string" && isSolanaNetwork(chain))) {
528
+ throw new Error(
529
+ 'wallet.programActivity() reads "solana" (mainnet) or Solana devnet, solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1'
530
+ );
531
+ }
532
+ if (signer !== "wallet" && signer !== "any") {
533
+ throw new Error('wallet.programActivity() takes signer "wallet" or "any"');
534
+ }
535
+ const parsed = walletProgramActivitySourceSchema.safeParse({
536
+ chain: chain === "solana" ? solanaMainnet : chain,
537
+ program,
538
+ instruction: instruction2 ?? null,
539
+ mint: mint ?? null,
540
+ minAmount: minAmount ?? null,
541
+ anySigner: signer === "any"
542
+ });
543
+ if (!parsed.success) {
544
+ const issue = parsed.error.issues[0];
545
+ throw new Error(
546
+ `wallet.programActivity()${issue.path.length ? ` ${issue.path.join(".")}` : ""}: ${issue.message}`
547
+ );
548
+ }
549
+ return parsed.data;
550
+ }
508
551
  var wallet = {
509
552
  balances(query) {
510
553
  const balance = walletBalanceSource(query);
@@ -513,6 +556,51 @@ var wallet = {
513
556
  data: walletBalanceSampleSchema
514
557
  });
515
558
  return customSourceSchema.parse({ ...source, balance });
559
+ },
560
+ programActivity(query) {
561
+ const activity = walletProgramActivitySource(query);
562
+ const source = customSource(walletProgramActivityNamespace, {
563
+ identities: ["wallet"],
564
+ data: walletProgramActivitySchema
565
+ });
566
+ return customSourceSchema.parse({
567
+ ...source,
568
+ activity
569
+ });
570
+ },
571
+ nfts(query) {
572
+ const { collection } = query;
573
+ if (typeof collection !== "string" || !isNftCollection(collection)) {
574
+ throw new Error(
575
+ 'wallet.nfts() takes an NFT collection such as "eip155:1/erc721:0x\u2026", "eip155:8453/erc1155:0x\u2026/1" or "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/nft:<collection mint>"'
576
+ );
577
+ }
578
+ const source = customSource(walletNftsNamespace, {
579
+ identities: ["wallet"],
580
+ data: walletNftSampleSchema
581
+ });
582
+ const nfts = { collection };
583
+ return customSourceSchema.parse({ ...source, nfts });
584
+ },
585
+ stake(query = {}) {
586
+ const { chain = "solana", voteAccount } = query;
587
+ const stake = walletStakeSourceSchema.safeParse({
588
+ chain: chain === "solana" ? solanaMainnet : chain,
589
+ voteAccount: voteAccount ?? null
590
+ });
591
+ if (!stake.success) {
592
+ throw new Error(
593
+ `wallet.stake() ${stake.error.issues[0].path.join(".")}: ${stake.error.issues[0].message}`
594
+ );
595
+ }
596
+ const source = customSource(walletStakeNamespace, {
597
+ identities: ["wallet"],
598
+ data: walletStakeSampleSchema
599
+ });
600
+ return customSourceSchema.parse({
601
+ ...source,
602
+ stake: stake.data
603
+ });
516
604
  }
517
605
  };
518
606
  var pointLedgers = () => ({
@@ -629,14 +717,14 @@ var settings = {
629
717
  );
630
718
  },
631
719
  /**
632
- * A chain `ctx.wallet.balance()` reads: `"solana"` (or Solana mainnet's CAIP-2 ID), or an EVM
633
- * chain's CAIP-2 ID such as `"eip155:8453"`. Typed as the query's chain, so it passes to
720
+ * A chain `ctx.wallet.balance()` reads: `"solana"` (or Solana mainnet's CAIP-2 ID), Solana
721
+ * devnet's CAIP-2 ID, or an EVM chain's CAIP-2 ID such as `"eip155:8453"`. Typed as the query's chain, so it passes to
634
722
  * `ctx.wallet.balance({ chain })` as it is.
635
723
  */
636
724
  chain(options) {
637
725
  if (!isBalanceChain(options.default)) {
638
726
  throw new Error(
639
- `settings.chain() takes "solana" or an EVM chain ID such as "eip155:8453" as its default, not "${options.default}"`
727
+ `settings.chain() takes "solana", a Solana cluster ID or an EVM chain ID such as "eip155:8453" as its default, not "${options.default}"`
640
728
  );
641
729
  }
642
730
  const field = {
@@ -655,11 +743,12 @@ var settings = {
655
743
  /**
656
744
  * An NFT collection `ctx.wallet.nfts()` reads, as a CAIP-19 asset type: an EVM chain, the
657
745
  * standard and the contract, such as `"eip155:1/erc721:0x…"`, or `"eip155:8453/erc1155:0x…/1"` for
658
- * one ERC-1155 token ID; or a Metaplex collection NFT's mint on Solana mainnet,
659
- * `"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/nft:<mint>"`. Relay checks it when the collection is
660
- * published or edited: an EVM chain must be one `ctx.wallet.balance()` reads and the contract
661
- * must report the standard through ERC-165 `supportsInterface`; a Solana mint must be a Metaplex
662
- * collection NFT. Typed as the query's collection, so it passes to
746
+ * one ERC-1155 token ID; or a Solana cluster and a Metaplex Core collection's address or a Token
747
+ * Metadata collection NFT's mint there, `"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/nft:<address>"`
748
+ * on mainnet or `"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1/nft:<address>"` on devnet. Relay checks
749
+ * it when the collection is published or edited: an EVM chain must be one `ctx.wallet.balance()`
750
+ * reads and the contract must report the standard through ERC-165 `supportsInterface`; a Solana
751
+ * address must be a Core collection or a Metaplex collection NFT on its cluster. Typed as the query's collection, so it passes to
663
752
  * `ctx.wallet.nfts({ collection })` as it is.
664
753
  */
665
754
  nft(options) {
@@ -737,9 +826,10 @@ var settings = {
737
826
  );
738
827
  },
739
828
  /**
740
- * A Solana mainnet program `ctx.wallet.transactions()` reads: its base58 address, such as
741
- * Jupiter's `"JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4"`. Relay checks it when it is published
742
- * or edited: the account must exist and be an executable program.
829
+ * A Solana program `ctx.wallet.transactions()` or `ctx.wallet.programAccount()` reads: its base58
830
+ * address, such as Jupiter's `"JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4"`. Relay checks it when
831
+ * it is published or edited: the account must be an executable program on Solana mainnet or
832
+ * devnet. Its IDL (Anchor, Codama or Shank), stored then, decodes the program's instructions and accounts.
743
833
  */
744
834
  solanaProgram(options) {
745
835
  if (!isSolanaProgram(options.default)) {
@@ -953,6 +1043,15 @@ var keyed = (key, options = {}) => ({
953
1043
  key,
954
1044
  ...options.across ? { across: options.across } : {}
955
1045
  });
1046
+ var perStation = () => keyed((ctx) => {
1047
+ const station = ctx.action?.reference;
1048
+ if (!station) {
1049
+ throw new Error(
1050
+ "perStation() completes from a signed transaction whose memo names a station"
1051
+ );
1052
+ }
1053
+ return station;
1054
+ });
956
1055
  var progress = (definition) => {
957
1056
  const { distinct, ...policy } = definition;
958
1057
  return {
@@ -1043,7 +1142,7 @@ var evaluators = {
1043
1142
  };
1044
1143
  }
1045
1144
  };
1046
- var completionPolicies = { once, keyed, streak, progress };
1145
+ var completionPolicies = { once, keyed, streak, progress, perStation };
1047
1146
  function questBuilder(template) {
1048
1147
  return function defineQuest2(definition) {
1049
1148
  const key = authoringKey(definition);
@@ -1073,6 +1172,7 @@ function questBuilder(template) {
1073
1172
  );
1074
1173
  }
1075
1174
  const author = authorBudgets(definition.budgets);
1175
+ const stations = definition.stations ? questStationsSchema.parse(definition.stations) : void 0;
1076
1176
  validateQuestShape(
1077
1177
  {
1078
1178
  trigger: definition.trigger,
@@ -1084,7 +1184,8 @@ function questBuilder(template) {
1084
1184
  maxAgeMs: definition.performance.maxAgeMs
1085
1185
  }) : void 0,
1086
1186
  ...definition.retryCooldownMs === void 0 ? {} : { retryCooldownMs: definition.retryCooldownMs },
1087
- ...definition.completionCooldownMs === void 0 ? {} : { completionCooldownMs: definition.completionCooldownMs }
1187
+ ...definition.completionCooldownMs === void 0 ? {} : { completionCooldownMs: definition.completionCooldownMs },
1188
+ ...stations ? { stations } : {}
1088
1189
  },
1089
1190
  { template }
1090
1191
  );
@@ -1218,7 +1319,8 @@ function questBuilder(template) {
1218
1319
  ...definition.campaign ? { campaign: definition.campaign } : {},
1219
1320
  ...definition.availability ? { availability: definition.availability } : {},
1220
1321
  ...definition.retryCooldownMs === void 0 ? {} : { retryCooldownMs: definition.retryCooldownMs },
1221
- ...definition.completionCooldownMs === void 0 ? {} : { completionCooldownMs: definition.completionCooldownMs }
1322
+ ...definition.completionCooldownMs === void 0 ? {} : { completionCooldownMs: definition.completionCooldownMs },
1323
+ ...stations ? { stations } : {}
1222
1324
  });
1223
1325
  }
1224
1326
  return resourceHandle("quest", {
@@ -1279,6 +1381,7 @@ function questBuilder(template) {
1279
1381
  member: ctx.member,
1280
1382
  input: ctx.input,
1281
1383
  tracker,
1384
+ action: ctx.action ?? null,
1282
1385
  eligibleAt: ctx.eligibleAt,
1283
1386
  calendar: ctx.calendar,
1284
1387
  now: ctx.now,
@@ -1309,7 +1412,12 @@ function questBuilder(template) {
1309
1412
  message: ignoredCompletionKey(completion, result.completionKey)
1310
1413
  });
1311
1414
  }
1312
- const keyContext = { ...ctx, settings: settings2, tracker: pinned };
1415
+ const keyContext = {
1416
+ ...ctx,
1417
+ settings: settings2,
1418
+ tracker: pinned,
1419
+ action: ctx.action ?? null
1420
+ };
1313
1421
  return decisionSchema.parse(
1314
1422
  result.kind === "accept" || result.kind === "review" ? {
1315
1423
  ...result,
@@ -1395,6 +1503,7 @@ export {
1395
1503
  parseContractFunction,
1396
1504
  parseNftCollection,
1397
1505
  parseUnits,
1506
+ perStation,
1398
1507
  pointLedgers,
1399
1508
  points,
1400
1509
  progress,
@@ -1,6 +1,6 @@
1
1
  import * as z from 'zod';
2
- import { b as AttemptStatus, X as RewardType } from './accounts-_lNsiR2k.js';
3
- import { S as SkipEnrollment } from './tracker-data-Bl-qPIvZ.js';
2
+ import { b as AttemptStatus, Y as RewardType } from './accounts-DnpKoJCo.js';
3
+ import { S as SkipEnrollment } from './tracker-data-CAK942sx.js';
4
4
 
5
5
  declare const collectionCodeSchema: z.ZodString;
6
6
  declare const collectionPassSchema: z.ZodObject<{
package/dist/avatar.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as ProfileAvatar, L as LinkedWallet } from './wallet-B7e06v4m.js';
1
+ import { P as ProfileAvatar, L as LinkedWallet } from './wallet-DQtJelQQ.js';
2
2
  import 'zod';
3
3
 
4
4
  /**
package/dist/browser.d.ts CHANGED
@@ -1,17 +1,18 @@
1
- import { o as SubmissionStore, f as RelayClientOptions, R as RelayClient } from './client-Cze4lfwA.js';
2
- export { C as CosmosChains, D as DiscoveredWallet, E as Eip1193Provider, a as EmailSignInOption, K as KeplrLike, O as OAuthSignInOption, P as ProviderSignInOption, S as SignInClient, b as SignInIcon, c as SignInMethods, d as SignInOption, e as SignInOptions, f as SignInUnavailable, g as SignInWallet, h as SolanaInjectedProvider, i as StandardWallet, j as StandardWalletAccount, T as TelegramSignInOption, W as WalletSignInOption, k as cosmosChainList, l as cosmosSigner, m as discoverCosmosWallets, n as discoverEvmWallets, o as discoverSignInWallets, p as discoverSolanaWallets, q as evmSigner, s as signInOptions, r as solanaSigner, t as telegramMiniAppInitData, w as walletStandardSolanaSigner } from './telegram-browser-BFs4u7lC.js';
1
+ import { o as SubmissionStore, f as RelayClientOptions, R as RelayClient } from './client-BMif22WQ.js';
2
+ export { C as CosmosChains, D as DiscoveredWallet, E as Eip1193Provider, K as KeplrLike, S as SignInWallet, a as SolanaInjectedProvider, b as StandardWallet, c as StandardWalletAccount, d as cosmosChainList, e as cosmosSigner, f as discoverCosmosWallets, g as discoverEvmWallets, h as discoverSignInWallets, i as discoverSolanaWallets, j as evmSigner, s as solanaSigner, w as walletStandardSolanaSigner } from './wallet-browser-dpmr22Xv.js';
3
+ export { E as EmailSignInOption, O as OAuthSignInOption, P as ProviderSignInOption, S as SignInClient, a as SignInIcon, b as SignInMethods, c as SignInOption, d as SignInOptions, e as SignInUnavailable, T as TelegramSignInOption, W as WalletSignInOption, s as signInOptions, t as telegramMiniAppInitData } from './telegram-browser-DLtHPRBI.js';
3
4
  export { H as HostEnvironment, g as getHostEnvironment } from './host-environment-FN4zg3hw.js';
4
5
  import { M as MemberSummary } from './participant-activity-DXRq4s6K.js';
5
- import './accounts-_lNsiR2k.js';
6
+ import './accounts-DnpKoJCo.js';
6
7
  import 'zod';
7
- import './tracker-data-Bl-qPIvZ.js';
8
- import './wallet-B7e06v4m.js';
9
- import './submission-input-ChL1aYNH.js';
8
+ import './tracker-data-CAK942sx.js';
9
+ import './wallet-DQtJelQQ.js';
10
+ import './submission-input-CaL8drIh.js';
10
11
  import './request-error-D_dUPLwo.js';
11
- import './reward-deliveries-BCV8hznc.js';
12
- import './catalog-ByZMRS7I.js';
12
+ import './reward-deliveries-0VvT6LMj.js';
13
+ import './catalog-BLGie8Lh.js';
13
14
  import './action-9Xl0StBg.js';
14
- import './sign-in-providers-BAkGjSXo.js';
15
+ import './sign-in-providers-C5_753DZ.js';
15
16
 
16
17
  /**
17
18
  * The member's time at the real instant `at` (default now), in epoch milliseconds: what an app
package/dist/browser.js CHANGED
@@ -12,23 +12,23 @@ import {
12
12
  signInOptions,
13
13
  solanaSigner,
14
14
  walletStandardSolanaSigner
15
- } from "./chunk-7HTRIEM7.js";
15
+ } from "./chunk-CZ7NQ7W7.js";
16
16
  import {
17
17
  telegramMiniAppInitData
18
18
  } from "./chunk-FWLQ5XCS.js";
19
- import "./chunk-R2LHIWAM.js";
20
- import "./chunk-BQXRCJ3N.js";
21
- import "./chunk-2HHZV7U3.js";
19
+ import "./chunk-SD74HD75.js";
20
+ import "./chunk-P4TPW4SY.js";
21
+ import "./chunk-VRZZB7CQ.js";
22
22
  import {
23
23
  getHostEnvironment
24
- } from "./chunk-UYVJZR33.js";
25
- import "./chunk-4TC4HK5Y.js";
26
- import "./chunk-2Y4EZKET.js";
27
- import "./chunk-CGUL4MRE.js";
28
- import "./chunk-7MQCQYEE.js";
29
- import "./chunk-5LD5DKOM.js";
30
- import "./chunk-XCEGNKGH.js";
31
- import "./chunk-FGXLXENM.js";
24
+ } from "./chunk-VAGGGB6B.js";
25
+ import "./chunk-7YSVZA7A.js";
26
+ import "./chunk-KKHENO57.js";
27
+ import "./chunk-R3MNZKNJ.js";
28
+ import "./chunk-6UBFSMCM.js";
29
+ import "./chunk-55WJVFWC.js";
30
+ import "./chunk-6YTSRWRB.js";
31
+ import "./chunk-IW46TW3A.js";
32
32
  export {
33
33
  browserSubmissionStore,
34
34
  cosmosChainList,
@@ -1,5 +1,5 @@
1
- import { S as SolanaIdlSource } from './wallet-B7e06v4m.js';
2
- import { b as AttemptStatus, V as AttemptCodeSource, W as IntegrationModuleProvider, X as RewardType, Y as questDescriptionSchema } from './accounts-_lNsiR2k.js';
1
+ import { b as AttemptStatus, W as AttemptCodeSource, V as KnownAttemptActionKind, X as IntegrationModuleProvider, Y as RewardType, Z as questDescriptionSchema } from './accounts-DnpKoJCo.js';
2
+ import { u as SolanaIdlSource } from './wallet-DQtJelQQ.js';
3
3
  import * as z from 'zod';
4
4
 
5
5
  /**
@@ -395,6 +395,12 @@ declare const questTypeVersionSchema: z.ZodObject<{
395
395
  }, z.core.$strict>>>;
396
396
  retryCooldownMs: z.ZodOptional<z.ZodNumber>;
397
397
  completionCooldownMs: z.ZodOptional<z.ZodNumber>;
398
+ stations: z.ZodOptional<z.ZodArray<z.ZodObject<{
399
+ key: z.ZodString;
400
+ label: z.ZodString;
401
+ opensAt: z.ZodOptional<z.ZodNumber>;
402
+ closesAt: z.ZodOptional<z.ZodNumber>;
403
+ }, z.core.$strict>>>;
398
404
  completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
399
405
  kind: z.ZodLiteral<"streak">;
400
406
  days: z.ZodNumber;
@@ -1184,6 +1190,12 @@ declare const questCatalogSchema: z.ZodObject<{
1184
1190
  }, z.core.$strict>>>;
1185
1191
  retryCooldownMs: z.ZodOptional<z.ZodNumber>;
1186
1192
  completionCooldownMs: z.ZodOptional<z.ZodNumber>;
1193
+ stations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1194
+ key: z.ZodString;
1195
+ label: z.ZodString;
1196
+ opensAt: z.ZodOptional<z.ZodNumber>;
1197
+ closesAt: z.ZodOptional<z.ZodNumber>;
1198
+ }, z.core.$strict>>>;
1187
1199
  completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1188
1200
  kind: z.ZodLiteral<"streak">;
1189
1201
  days: z.ZodNumber;
@@ -1855,6 +1867,12 @@ declare const questCatalogSchema: z.ZodObject<{
1855
1867
  }, z.core.$strict>>>;
1856
1868
  retryCooldownMs: z.ZodOptional<z.ZodNumber>;
1857
1869
  completionCooldownMs: z.ZodOptional<z.ZodNumber>;
1870
+ stations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1871
+ key: z.ZodString;
1872
+ label: z.ZodString;
1873
+ opensAt: z.ZodOptional<z.ZodNumber>;
1874
+ closesAt: z.ZodOptional<z.ZodNumber>;
1875
+ }, z.core.$strict>>>;
1858
1876
  completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1859
1877
  kind: z.ZodLiteral<"streak">;
1860
1878
  days: z.ZodNumber;
@@ -2415,6 +2433,12 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
2415
2433
  }, z.core.$strict>>>;
2416
2434
  retryCooldownMs: z.ZodOptional<z.ZodNumber>;
2417
2435
  completionCooldownMs: z.ZodOptional<z.ZodNumber>;
2436
+ stations: z.ZodOptional<z.ZodArray<z.ZodObject<{
2437
+ key: z.ZodString;
2438
+ label: z.ZodString;
2439
+ opensAt: z.ZodOptional<z.ZodNumber>;
2440
+ closesAt: z.ZodOptional<z.ZodNumber>;
2441
+ }, z.core.$strict>>>;
2418
2442
  completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
2419
2443
  kind: z.ZodLiteral<"streak">;
2420
2444
  days: z.ZodNumber;
@@ -3074,6 +3098,13 @@ declare const questViewSchema: z.ZodObject<{
3074
3098
  }, z.core.$strip>>>;
3075
3099
  requestedReview: z.ZodDefault<z.ZodBoolean>;
3076
3100
  createdAt: z.ZodNumber;
3101
+ action: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3102
+ kind: z.ZodType<KnownAttemptActionKind | (string & {})>;
3103
+ chain: z.ZodString;
3104
+ signature: z.ZodString;
3105
+ wallet: z.ZodString;
3106
+ reference: z.ZodNullable<z.ZodString>;
3107
+ }, z.core.$strip>>>;
3077
3108
  }, z.core.$strip>>;
3078
3109
  release: z.ZodString;
3079
3110
  interaction: z.ZodEnum<{
@@ -3596,6 +3627,13 @@ declare const collectionViewSchema: z.ZodObject<{
3596
3627
  }, z.core.$strip>>>;
3597
3628
  requestedReview: z.ZodDefault<z.ZodBoolean>;
3598
3629
  createdAt: z.ZodNumber;
3630
+ action: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3631
+ kind: z.ZodType<KnownAttemptActionKind | (string & {})>;
3632
+ chain: z.ZodString;
3633
+ signature: z.ZodString;
3634
+ wallet: z.ZodString;
3635
+ reference: z.ZodNullable<z.ZodString>;
3636
+ }, z.core.$strip>>>;
3599
3637
  }, z.core.$strip>>;
3600
3638
  release: z.ZodString;
3601
3639
  interaction: z.ZodEnum<{
@@ -4292,6 +4330,13 @@ declare const questExperienceSchema: z.ZodObject<{
4292
4330
  }, z.core.$strip>>>;
4293
4331
  requestedReview: z.ZodDefault<z.ZodBoolean>;
4294
4332
  createdAt: z.ZodNumber;
4333
+ action: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4334
+ kind: z.ZodType<KnownAttemptActionKind | (string & {})>;
4335
+ chain: z.ZodString;
4336
+ signature: z.ZodString;
4337
+ wallet: z.ZodString;
4338
+ reference: z.ZodNullable<z.ZodString>;
4339
+ }, z.core.$strip>>>;
4295
4340
  }, z.core.$strip>>;
4296
4341
  release: z.ZodString;
4297
4342
  interaction: z.ZodEnum<{
@@ -4814,6 +4859,13 @@ declare const questExperienceSchema: z.ZodObject<{
4814
4859
  }, z.core.$strip>>>;
4815
4860
  requestedReview: z.ZodDefault<z.ZodBoolean>;
4816
4861
  createdAt: z.ZodNumber;
4862
+ action: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4863
+ kind: z.ZodType<KnownAttemptActionKind | (string & {})>;
4864
+ chain: z.ZodString;
4865
+ signature: z.ZodString;
4866
+ wallet: z.ZodString;
4867
+ reference: z.ZodNullable<z.ZodString>;
4868
+ }, z.core.$strip>>>;
4817
4869
  }, z.core.$strip>>;
4818
4870
  release: z.ZodString;
4819
4871
  interaction: z.ZodEnum<{
@@ -5418,6 +5470,12 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
5418
5470
  }, z.core.$strict>>>;
5419
5471
  retryCooldownMs: z.ZodOptional<z.ZodNumber>;
5420
5472
  completionCooldownMs: z.ZodOptional<z.ZodNumber>;
5473
+ stations: z.ZodOptional<z.ZodArray<z.ZodObject<{
5474
+ key: z.ZodString;
5475
+ label: z.ZodString;
5476
+ opensAt: z.ZodOptional<z.ZodNumber>;
5477
+ closesAt: z.ZodOptional<z.ZodNumber>;
5478
+ }, z.core.$strict>>>;
5421
5479
  completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
5422
5480
  kind: z.ZodLiteral<"streak">;
5423
5481
  days: z.ZodNumber;