@domino-sdk/relay 0.26.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -72,7 +72,7 @@ import {
72
72
  xPostSchema,
73
73
  xProfileSchema,
74
74
  xRequestSchema
75
- } from "./chunk-S44XSDW2.js";
75
+ } from "./chunk-D6AIUNSM.js";
76
76
  import {
77
77
  defineEngagementReward,
78
78
  defineLeaderboard,
@@ -127,8 +127,8 @@ import {
127
127
  authScopeSchema,
128
128
  caip10,
129
129
  cosmosAddressSchema,
130
+ cosmosChain,
130
131
  cosmosNetworkSchema,
131
- cosmosNetworks,
132
132
  evmAddressSchema,
133
133
  exchangeResultSchema,
134
134
  exchangeSchema,
@@ -150,11 +150,13 @@ import {
150
150
  walletConnectionSchema,
151
151
  walletMessageChallengeSchema,
152
152
  walletProofSchema,
153
+ walletSignInFamilies,
153
154
  walletSignInNetwork,
154
155
  walletSignInNetworkSchema,
156
+ walletSignInNetworksSchema,
155
157
  walletSignatureSchema,
156
158
  walletUnlinkInputSchema
157
- } from "./chunk-7QICEKC2.js";
159
+ } from "./chunk-M3R5V5WC.js";
158
160
  import {
159
161
  AVATAR_UPLOAD_LIMIT,
160
162
  avatarProviderSchema,
@@ -389,8 +391,8 @@ export {
389
391
  contentQualificationSchema,
390
392
  contentReleaseInputSchema,
391
393
  cosmosAddressSchema,
394
+ cosmosChain,
392
395
  cosmosNetworkSchema,
393
- cosmosNetworks,
394
396
  createPointLedgerSchema,
395
397
  createRelayClient,
396
398
  createStockItemSchema,
@@ -644,8 +646,10 @@ export {
644
646
  walletConnectionSchema,
645
647
  walletMessageChallengeSchema,
646
648
  walletProofSchema,
649
+ walletSignInFamilies,
647
650
  walletSignInNetwork,
648
651
  walletSignInNetworkSchema,
652
+ walletSignInNetworksSchema,
649
653
  walletSignatureSchema,
650
654
  walletUnlinkInputSchema,
651
655
  x,
@@ -2,7 +2,7 @@ import {
2
2
  exchangeResultSchema,
3
3
  isWalletParticipantRoute,
4
4
  isWalletSignInRoute
5
- } from "./chunk-7QICEKC2.js";
5
+ } from "./chunk-M3R5V5WC.js";
6
6
  import {
7
7
  isProfileParticipantRoute
8
8
  } from "./chunk-D6BX627V.js";
@@ -4,7 +4,7 @@ import * as zod from 'zod';
4
4
  import { z } from 'zod';
5
5
  import { ProfileUpdate, QuestView, QuestController, ProgressObservation, questExperienceSchema, ProgressObserver, ExchangeInput, PhotoSubmission, QuizSubmission, ClaimSubmission, ValueSubmission, SubmissionDraft, PublicProfile, PointLedgerReference } from '../index.js';
6
6
  export { avatarSrc, defaultAvatar, walletAvatarSeed } from '../index.js';
7
- import { H as referralAcceptSchema, J as LeaderboardQuery, K as WalletAddressInput, M as walletSignatureSchema, L as LinkedWallet, N as WalletSigner, P as walletChallengeInputSchema, Q as walletProofSchema, R as AuthProvider, V as WalletSignature, Y as engagementPageQuerySchema, Z as contentQualificationQuerySchema, _ as contentAdmissionQuerySchema, $ as contentEnrollmentInputSchema, a0 as contentReleaseInputSchema, a1 as WalletSignInNetwork, a2 as AccountConnection, a3 as CosmosNetwork, a4 as referralSummarySchema, a5 as LeaderboardPage } from '../submission-input-Ckpb4sBv.js';
7
+ import { H as referralAcceptSchema, J as LeaderboardQuery, K as WalletAddressInput, M as walletSignatureSchema, L as LinkedWallet, N as WalletSigner, P as walletChallengeInputSchema, Q as walletProofSchema, R as AuthProvider, V as WalletSignature, Y as engagementPageQuerySchema, Z as contentQualificationQuerySchema, _ as contentAdmissionQuerySchema, $ as contentEnrollmentInputSchema, a0 as contentReleaseInputSchema, a1 as WalletSignInNetwork, a2 as AccountConnection, a3 as CosmosChain, a4 as CosmosNetwork, a5 as referralSummarySchema, a6 as LeaderboardPage } from '../submission-input-CYyH_25w.js';
8
8
  import { SubmitInput, ReleaseInput, beginHandoverSchema, contentPerformanceQuerySchema, TieredRewardReference } from '../schema.js';
9
9
  import { createBrowserRelayClient, DiscoveredWallet } from '../browser.js';
10
10
 
@@ -1487,7 +1487,7 @@ declare function useRelay(): {
1487
1487
  wallets: {
1488
1488
  list: () => Promise<{
1489
1489
  chain: "solana" | "eip155" | "cosmos";
1490
- network: "cosmos:pio-mainnet-1" | "cosmos:pio-testnet-1" | null;
1490
+ network: `cosmos:${string}` | null;
1491
1491
  address: string;
1492
1492
  verifiedAt: number;
1493
1493
  revision: number;
@@ -1497,14 +1497,14 @@ declare function useRelay(): {
1497
1497
  id: string;
1498
1498
  purpose: "link" | "sign-in";
1499
1499
  chain: "solana" | "eip155" | "cosmos";
1500
- network: "cosmos:pio-mainnet-1" | "cosmos:pio-testnet-1" | null;
1500
+ network: `cosmos:${string}` | null;
1501
1501
  address: string;
1502
1502
  message: string;
1503
1503
  expiresAt: number;
1504
1504
  }>;
1505
1505
  verify: (input: zod.input<typeof walletSignatureSchema>, session: string) => Promise<{
1506
1506
  chain: "solana" | "eip155" | "cosmos";
1507
- network: "cosmos:pio-mainnet-1" | "cosmos:pio-testnet-1" | null;
1507
+ network: `cosmos:${string}` | null;
1508
1508
  address: string;
1509
1509
  verifiedAt: number;
1510
1510
  revision: number;
@@ -1515,7 +1515,7 @@ declare function useRelay(): {
1515
1515
  }>;
1516
1516
  link: (signer: WalletSigner) => Promise<{
1517
1517
  chain: "solana" | "eip155" | "cosmos";
1518
- network: "cosmos:pio-mainnet-1" | "cosmos:pio-testnet-1" | null;
1518
+ network: `cosmos:${string}` | null;
1519
1519
  address: string;
1520
1520
  verifiedAt: number;
1521
1521
  revision: number;
@@ -1550,7 +1550,7 @@ declare function useRelay(): {
1550
1550
  configured: boolean;
1551
1551
  }[];
1552
1552
  email: boolean;
1553
- wallets: ("solana" | "eip155" | "cosmos:pio-mainnet-1" | "cosmos:pio-testnet-1")[];
1553
+ wallets: ("solana" | "eip155" | "cosmos")[];
1554
1554
  demo: boolean;
1555
1555
  }>;
1556
1556
  start: (provider: AuthProvider, mode: "sign-in" | "connect") => Promise<{
@@ -1581,7 +1581,7 @@ declare function useRelay(): {
1581
1581
  id: string;
1582
1582
  purpose: "link" | "sign-in";
1583
1583
  chain: "solana" | "eip155" | "cosmos";
1584
- network: "cosmos:pio-mainnet-1" | "cosmos:pio-testnet-1" | null;
1584
+ network: `cosmos:${string}` | null;
1585
1585
  address: string;
1586
1586
  message: string;
1587
1587
  expiresAt: number;
@@ -4648,7 +4648,7 @@ declare function useWallets(): {
4648
4648
  /** Null until read, and while nobody is signed in. */
4649
4649
  wallets: {
4650
4650
  chain: "solana" | "eip155" | "cosmos";
4651
- network: "cosmos:pio-mainnet-1" | "cosmos:pio-testnet-1" | null;
4651
+ network: `cosmos:${string}` | null;
4652
4652
  address: string;
4653
4653
  verifiedAt: number;
4654
4654
  revision: number;
@@ -4660,28 +4660,38 @@ declare function useWallets(): {
4660
4660
  link: (signer: WalletSigner) => Promise<void>;
4661
4661
  unlink: (wallet: Pick<LinkedWallet, "chain" | "address">) => Promise<void>;
4662
4662
  };
4663
+ /**
4664
+ * The Cosmos SDK chains an app offers wallets on: one chain or several, each as
4665
+ * `{ chainId, chainInfo? }` or `"cosmos:<chain ID>"`. Relay has no chain list of its own.
4666
+ */
4667
+ type CosmosChains = CosmosChain | CosmosNetwork | readonly (CosmosChain | CosmosNetwork)[];
4663
4668
  /**
4664
4669
  * The EVM, Solana and Cosmos wallets installed in this browser. Empty during
4665
- * SSR and until discovery finishes; `cosmos` defaults to Provenance mainnet.
4670
+ * SSR and until discovery finishes. Cosmos wallets are listed once per chain
4671
+ * in `cosmos`, the app's chains; without it there are none.
4666
4672
  */
4667
4673
  declare function useWalletDiscovery(options?: {
4668
- cosmos?: CosmosNetwork[];
4674
+ cosmos?: CosmosChains;
4669
4675
  }): {
4670
4676
  evm: DiscoveredWallet[];
4671
4677
  solana: DiscoveredWallet[];
4672
4678
  cosmos: DiscoveredWallet[];
4673
4679
  };
4674
- /** An installed wallet that can sign in on one of the project's enabled networks. */
4680
+ /** An installed wallet that can sign in on one of the project's enabled wallet families. */
4675
4681
  type SignInWallet = DiscoveredWallet & {
4676
4682
  network: WalletSignInNetwork;
4677
4683
  };
4678
4684
  /**
4679
- * The wallets installed in this browser that can sign in on `networks`, the list
4680
- * `useSignInMethods().wallets` returns: pass each one's `signer` to
4681
- * `useSignIn().withWallet`. Null during SSR and until discovery finishes, so a
4682
- * page can tell "still looking" from "no wallet installed".
4685
+ * The wallets installed in this browser that can sign in with the families in
4686
+ * `networks`, the list `useSignInMethods().wallets` returns: pass each one's
4687
+ * `signer` to `useSignIn().withWallet`. Cosmos wallets need the app's chains in
4688
+ * `options.cosmos`; each is listed once per chain. Null during SSR and until
4689
+ * discovery finishes, so a page can tell "still looking" from "no wallet
4690
+ * installed".
4683
4691
  */
4684
- declare function useSignInWallets(networks: readonly WalletSignInNetwork[] | null | undefined): SignInWallet[] | null;
4692
+ declare function useSignInWallets(networks: readonly WalletSignInNetwork[] | null | undefined, options?: {
4693
+ cosmos?: CosmosChains;
4694
+ }): SignInWallet[] | null;
4685
4695
 
4686
4696
  /** Dispatched on `window` after the member changes their profile in this tab. */
4687
4697
  declare const PROFILE_CHANGED = "relay-profile-changed";
@@ -5028,4 +5038,4 @@ declare function useTieredRewards(): {
5028
5038
  }[];
5029
5039
  };
5030
5040
 
5031
- export { type Collection, DiscoveredWallet, type Experience, type Invitation, type LeaderboardState, type OAuthProvider, PENDING_POLL_MS, PROFILE_CHANGED, type PointLedgersState, type ProfileState, type QuestInput, type QuestNotice, type QuestStatus, type QuestTone, RETRY_DELAYS_MS, type ReferencesState, type ReferralSummary, type RelayClient, RelayProvider, type RoleDelivery, type SavedSubmission, type SignInWallet, type TieredRewardsState, canRepeat, canSubmit, captureReferralCode, completionCountLabel, completionMark, hasPending, isAutomatic, isConnected, isFinished, progressOf, questGroups, questStatus, roleDeliveryLabel, runsSilently, sanitizeDeliveries, useAccounts, useExperience, useInvitation, useLeaderboard, useMe, useMyProfile, usePointLedgers, useProfile, useQuest, useReferralSummary, useRelay, useSignIn, useSignInMethods, useSignInWallets, useSignOut, useTieredRewards, useWalletDiscovery, useWallets, visibleQuests, watchRoleDeliveries };
5041
+ export { type Collection, type CosmosChains, DiscoveredWallet, type Experience, type Invitation, type LeaderboardState, type OAuthProvider, PENDING_POLL_MS, PROFILE_CHANGED, type PointLedgersState, type ProfileState, type QuestInput, type QuestNotice, type QuestStatus, type QuestTone, RETRY_DELAYS_MS, type ReferencesState, type ReferralSummary, type RelayClient, RelayProvider, type RoleDelivery, type SavedSubmission, type SignInWallet, type TieredRewardsState, canRepeat, canSubmit, captureReferralCode, completionCountLabel, completionMark, hasPending, isAutomatic, isConnected, isFinished, progressOf, questGroups, questStatus, roleDeliveryLabel, runsSilently, sanitizeDeliveries, useAccounts, useExperience, useInvitation, useLeaderboard, useMe, useMyProfile, usePointLedgers, useProfile, useQuest, useReferralSummary, useRelay, useSignIn, useSignInMethods, useSignInWallets, useSignOut, useTieredRewards, useWalletDiscovery, useWallets, visibleQuests, watchRoleDeliveries };
@@ -3,15 +3,15 @@ import {
3
3
  discoverCosmosWallets,
4
4
  discoverEvmWallets,
5
5
  discoverSolanaWallets
6
- } from "../chunk-MZFUQQDP.js";
6
+ } from "../chunk-RVGO2CRA.js";
7
7
  import {
8
8
  RelayError,
9
9
  avatarSrc,
10
10
  defaultAvatar,
11
11
  walletAvatarSeed
12
- } from "../chunk-S44XSDW2.js";
12
+ } from "../chunk-D6AIUNSM.js";
13
13
  import "../chunk-AKB266O5.js";
14
- import "../chunk-7QICEKC2.js";
14
+ import "../chunk-M3R5V5WC.js";
15
15
  import "../chunk-D6BX627V.js";
16
16
  import "../chunk-IXLY3A7B.js";
17
17
 
@@ -605,13 +605,21 @@ function useWallets() {
605
605
  }, "Couldn't unlink this wallet. Try again.")
606
606
  };
607
607
  }
608
+ function chainList(chains) {
609
+ return chains === void 0 ? [] : Array.isArray(chains) ? chains : [chains];
610
+ }
611
+ function discoverChains(key) {
612
+ return JSON.parse(key).flatMap(
613
+ (chain) => discoverCosmosWallets(chain)
614
+ );
615
+ }
608
616
  function useWalletDiscovery(options = {}) {
609
- const networks = (options.cosmos ?? ["cosmos:pio-mainnet-1"]).join(" ");
617
+ const chains = JSON.stringify(chainList(options.cosmos));
610
618
  const [found, setFound] = useState5({ evm: [], solana: [], cosmos: [] });
611
619
  useEffect4(() => {
612
620
  let active = true;
613
621
  const solana = discoverSolanaWallets();
614
- const cosmos = networks.split(" ").filter(Boolean).flatMap((network) => discoverCosmosWallets(network));
622
+ const cosmos = discoverChains(chains);
615
623
  setFound((current) => ({ ...current, solana, cosmos }));
616
624
  void discoverEvmWallets().then((evm) => {
617
625
  if (active) {
@@ -621,24 +629,25 @@ function useWalletDiscovery(options = {}) {
621
629
  return () => {
622
630
  active = false;
623
631
  };
624
- }, [networks]);
632
+ }, [chains]);
625
633
  return found;
626
634
  }
627
- function useSignInWallets(networks) {
628
- const key = networks ? networks.join(" ") : null;
635
+ function useSignInWallets(networks, options = {}) {
636
+ const chains = JSON.stringify(chainList(options.cosmos));
637
+ const key = networks ? `${networks.join(" ")}
638
+ ${chains}` : null;
629
639
  const [found, setFound] = useState5(null);
630
640
  useEffect4(() => {
631
641
  if (key === null) {
632
642
  return;
633
643
  }
634
644
  let active = true;
635
- const enabled = key.split(" ").filter(Boolean);
645
+ const [families = "", cosmos = "[]"] = key.split("\n");
646
+ const enabled = families.split(" ").filter(Boolean);
636
647
  const tagged = (network, wallets) => wallets.map((wallet) => ({ ...wallet, network }));
637
648
  const immediate = [
638
649
  ...enabled.includes("solana") ? tagged("solana", discoverSolanaWallets()) : [],
639
- ...enabled.filter(
640
- (network) => network.startsWith("cosmos:")
641
- ).flatMap((network) => tagged(network, discoverCosmosWallets(network)))
650
+ ...enabled.includes("cosmos") ? tagged("cosmos", discoverChains(cosmos)) : []
642
651
  ];
643
652
  const evm = enabled.includes("eip155") ? discoverEvmWallets() : Promise.resolve([]);
644
653
  void evm.then((wallets) => {
@@ -5317,29 +5317,30 @@ declare const walletChainSchema: z.ZodEnum<{
5317
5317
  }>;
5318
5318
  type WalletChain = z.infer<typeof walletChainSchema>;
5319
5319
  /**
5320
- * Cosmos SDK chains Relay verifies, by CAIP-2 ID. ADR-36 signatures are chain-agnostic, so the
5321
- * bech32 prefix is the only chain binding: adding a chain is a reviewed code change.
5320
+ * A Cosmos SDK chain's CAIP-2 ID: `cosmos:` and the chain ID, such as `cosmos:cosmoshub-4`. Relay
5321
+ * accepts any chain ID in CAIP-2 reference syntax; the app decides which chains it works with.
5322
5322
  */
5323
- declare const cosmosNetworks: {
5324
- readonly "cosmos:pio-mainnet-1": {
5325
- readonly chainId: "pio-mainnet-1";
5326
- readonly prefix: "pb";
5327
- readonly name: "Provenance";
5328
- };
5329
- readonly "cosmos:pio-testnet-1": {
5330
- readonly chainId: "pio-testnet-1";
5331
- readonly prefix: "tp";
5332
- readonly name: "Provenance testnet";
5333
- };
5323
+ type CosmosNetwork = `cosmos:${string}`;
5324
+ declare const cosmosNetworkSchema: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
5325
+ /**
5326
+ * A Cosmos SDK chain an app works with. Pass `chainInfo` (Keplr's `ChainInfo` shape) for a chain
5327
+ * wallets may not know: the adapters suggest it to the wallet (`experimentalSuggestChain`).
5328
+ */
5329
+ type CosmosChain = {
5330
+ /** The chain ID, such as `"cosmoshub-4"`. */
5331
+ chainId: string;
5332
+ chainInfo?: {
5333
+ chainId: string;
5334
+ } & Record<string, unknown>;
5335
+ };
5336
+ /** Reads the chain an app passes, a `CosmosChain` or its CAIP-2 ID, and adds the CAIP-2 ID. */
5337
+ declare function cosmosChain(chain: CosmosChain | CosmosNetwork): CosmosChain & {
5338
+ network: CosmosNetwork;
5334
5339
  };
5335
- declare const cosmosNetworkSchema: z.ZodEnum<{
5336
- "cosmos:pio-mainnet-1": "cosmos:pio-mainnet-1";
5337
- "cosmos:pio-testnet-1": "cosmos:pio-testnet-1";
5338
- }>;
5339
- type CosmosNetwork = z.infer<typeof cosmosNetworkSchema>;
5340
5340
  /** The CAIP-2 ID of Solana mainnet (its genesis hash, truncated to 32 characters). */
5341
5341
  declare const solanaMainnet = "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";
5342
5342
  declare const evmAddressSchema: z.ZodString;
5343
+ /** Bech32 with any prefix, in one case. The server checks the checksum and stores lowercase. */
5343
5344
  declare const cosmosAddressSchema: z.ZodString;
5344
5345
  /** What the wallet says its address is. The server checks the format and canonicalises it (EIP-55, lowercase bech32). */
5345
5346
  declare const walletAddressInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -5351,10 +5352,7 @@ declare const walletAddressInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5351
5352
  chainId: z.ZodOptional<z.ZodNumber>;
5352
5353
  }, z.core.$strict>, z.ZodObject<{
5353
5354
  chain: z.ZodLiteral<"cosmos">;
5354
- network: z.ZodEnum<{
5355
- "cosmos:pio-mainnet-1": "cosmos:pio-mainnet-1";
5356
- "cosmos:pio-testnet-1": "cosmos:pio-testnet-1";
5357
- }>;
5355
+ network: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
5358
5356
  address: z.ZodString;
5359
5357
  }, z.core.$strict>], "chain">;
5360
5358
  type WalletAddressInput = z.input<typeof walletAddressInputSchema>;
@@ -5370,10 +5368,7 @@ declare const walletMessageChallengeSchema: z.ZodObject<{
5370
5368
  eip155: "eip155";
5371
5369
  cosmos: "cosmos";
5372
5370
  }>;
5373
- network: z.ZodNullable<z.ZodEnum<{
5374
- "cosmos:pio-mainnet-1": "cosmos:pio-mainnet-1";
5375
- "cosmos:pio-testnet-1": "cosmos:pio-testnet-1";
5376
- }>>;
5371
+ network: z.ZodNullable<z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>>;
5377
5372
  address: z.ZodString;
5378
5373
  message: z.ZodString;
5379
5374
  expiresAt: z.ZodNumber;
@@ -5391,10 +5386,7 @@ declare const linkedWalletSchema: z.ZodObject<{
5391
5386
  eip155: "eip155";
5392
5387
  cosmos: "cosmos";
5393
5388
  }>;
5394
- network: z.ZodNullable<z.ZodEnum<{
5395
- "cosmos:pio-mainnet-1": "cosmos:pio-mainnet-1";
5396
- "cosmos:pio-testnet-1": "cosmos:pio-testnet-1";
5397
- }>>;
5389
+ network: z.ZodNullable<z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>>;
5398
5390
  address: z.ZodString;
5399
5391
  verifiedAt: z.ZodNumber;
5400
5392
  revision: z.ZodNumber;
@@ -5416,7 +5408,7 @@ type WalletUnlinkInput = z.infer<typeof walletUnlinkInputSchema>;
5416
5408
  */
5417
5409
  type WalletSigner = {
5418
5410
  readonly chain: WalletChain;
5419
- /** Required when `chain` is `"cosmos"`. */
5411
+ /** Required when `chain` is `"cosmos"`: the app's chain, `cosmos:<chain ID>`. */
5420
5412
  readonly network?: CosmosNetwork;
5421
5413
  /** For UI, such as "Phantom". */
5422
5414
  readonly name?: string;
@@ -5437,23 +5429,31 @@ declare function walletAddressInput(signer: WalletSigner): Promise<WalletAddress
5437
5429
  * wallets do not count: signing in always links the wallet.
5438
5430
  */
5439
5431
  declare const WALLETS_PER_CHAIN = 5;
5432
+ /** The wallet families a project can enable for sign-in, in their stored order. */
5433
+ declare const walletSignInFamilies: readonly ["solana", "eip155", "cosmos"];
5440
5434
  /**
5441
- * What a project enables wallet sign-in for: Solana and EVM wallets by chain family (their
5442
- * addresses are chain-agnostic), Cosmos wallets by network. Off unless the project enables it.
5435
+ * What a project enables wallet sign-in for: a chain family. A Cosmos wallet signs in on any
5436
+ * Cosmos SDK chain the app offers. Off unless the project enables it. The per-network values of
5437
+ * SDK 0.25 and 0.26 (`cosmos:<chain ID>`) read as `cosmos`.
5443
5438
  */
5444
- declare const walletSignInNetworkSchema: z.ZodEnum<{
5439
+ declare const walletSignInNetworkSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodEnum<{
5445
5440
  solana: "solana";
5446
5441
  eip155: "eip155";
5447
- "cosmos:pio-mainnet-1": "cosmos:pio-mainnet-1";
5448
- "cosmos:pio-testnet-1": "cosmos:pio-testnet-1";
5449
- }>;
5450
- type WalletSignInNetwork = z.infer<typeof walletSignInNetworkSchema>;
5451
- /** The sign-in setting a wallet account falls under. */
5442
+ cosmos: "cosmos";
5443
+ }>, z.ZodString]>, z.ZodTransform<"solana" | "eip155" | "cosmos", string>>;
5444
+ type WalletSignInNetwork = (typeof walletSignInFamilies)[number];
5445
+ /** Enabled wallet families, once each, in their stored order. */
5446
+ declare const walletSignInNetworksSchema: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodEnum<{
5447
+ solana: "solana";
5448
+ eip155: "eip155";
5449
+ cosmos: "cosmos";
5450
+ }>, z.ZodString]>, z.ZodTransform<"solana" | "eip155" | "cosmos", string>>>, z.ZodTransform<("solana" | "eip155" | "cosmos")[], ("solana" | "eip155" | "cosmos")[]>>;
5451
+ /** The sign-in setting a wallet account falls under: its chain family. */
5452
5452
  declare function walletSignInNetwork(wallet: Pick<LinkedWallet, "chain" | "network">): WalletSignInNetwork;
5453
5453
  /**
5454
5454
  * The CAIP-10 account ID of a wallet on one network. Linked Solana and EVM wallets are
5455
5455
  * chain-agnostic, so pass the network you mean; the defaults are Solana mainnet and Ethereum
5456
- * (`eip155:1`). A Cosmos wallet always uses its own network.
5456
+ * (`eip155:1`). A Cosmos wallet always uses the network it was linked on.
5457
5457
  */
5458
5458
  declare function caip10(wallet: Pick<LinkedWallet, "chain" | "network" | "address">, network?: string): string;
5459
5459
  /**
@@ -5849,4 +5849,4 @@ declare function validateSubmissionValue(input: ValueEvidence, contract: {
5849
5849
  /** Extract an ID only. The URL and its author name are untrusted claims. */
5850
5850
  declare function xPostId(value: string): string | null;
5851
5851
 
5852
- export { contentEnrollmentInputSchema as $, type AdmittedContent as A, type Budget as B, type ContentMetric as C, type DiscordMember as D, streak as E, trackerTriggerContextSchema as F, x as G, referralAcceptSchema as H, type ImageReader as I, type LeaderboardQuery as J, type WalletAddressInput as K, type LinkedWallet as L, walletSignatureSchema as M, type WalletSigner as N, type Observation as O, walletChallengeInputSchema as P, walletProofSchema as Q, type AuthProvider as R, type SolanaBalance as S, type TrackerTriggerContext as T, type UrlEvidence as U, type WalletSignature as V, type WalletConnection as W, type XReader as X, engagementPageQuerySchema as Y, contentQualificationQuerySchema as Z, contentAdmissionQuerySchema as _, type TrackerReader as a, contentPolicySchema as a$, contentReleaseInputSchema as a0, type WalletSignInNetwork as a1, type AccountConnection as a2, type CosmosNetwork as a3, referralSummarySchema as a4, type LeaderboardPage as a5, type ValueEvidence as a6, type ContentPerformancePolicy as a7, type ContentPolicy as a8, type EngagementDefinition as a9, type TrackerPreviewInput as aA, type TrackerQuery as aB, type TrackerRecord as aC, type TrackerStatus as aD, WALLETS_PER_CHAIN as aE, type WalletChain as aF, type WalletMessageChallenge as aG, type WalletUnlinkInput as aH, type XConnection as aI, type XPost as aJ, type XProfile as aK, type XTweet as aL, accountConnectionSchema as aM, admittedContentSchema as aN, authProviderSchema as aO, budgetSchema as aP, caip10 as aQ, communityTimeZoneSchema as aR, compatibleSettingKinds as aS, completionKeySchema as aT, completionPolicySchema as aU, contentAdmissionPageSchema as aV, contentAdmissionSchema as aW, contentEnrollmentSchema as aX, contentMetricSchema as aY, contentMetricsSchema as aZ, contentPerformancePolicySchema as a_, type EvmChain as aa, type EvmChainInfo as ab, type ImageAssetArtifact as ac, type ImageComparison as ad, type ImageExtraction as ae, type ImageFields as af, type ImageInspection as ag, type ImageReference as ah, type ImageRequest as ai, type ImageSightings as aj, type LeaderboardDefinition as ak, type ProjectIntegration as al, type PublishedImage as am, type QuizContent as an, type ReferralDefinition as ao, type ResourceOption as ap, type ResourceSource as aq, type SettingField as ar, type SettingsValues as as, type StreakProgress as at, type TrackerAttribution as au, type TrackerContent as av, type TrackerContentQuery as aw, type TrackerOutcome as ax, type TrackerOutcomeQuery as ay, type TrackerPreview as az, type DiscordMessage as b, pointsAccountSchema as b$, contentQualificationDecisionSchema as b0, contentQualificationPageSchema as b1, contentQualificationSchema as b2, cosmosAddressSchema as b3, cosmosNetworkSchema as b4, cosmosNetworks as b5, discordMemberInputSchema as b6, discordMemberSchema as b7, discordMessageInputSchema as b8, discordMessageSchema as b9, imageReferenceSchema as bA, imageRequestSchema as bB, imageSightingsSchema as bC, imageUploadRequestSchema as bD, imageUploadsSchema as bE, integrationProviderSchema as bF, isContentParticipantRoute as bG, isWalletParticipantRoute as bH, isWalletSignInRoute as bI, leaderboardArtifactSchema as bJ, leaderboardAuthoringSchema as bK, leaderboardDefinitionSchema as bL, leaderboardExclusionSchema as bM, leaderboardGroupSchema as bN, leaderboardPageSchema as bO, leaderboardPreviewSchema as bP, leaderboardQuerySchema as bQ, leaderboardRowSchema as bR, leaderboardWindowSchema as bS, linkedWalletSchema as bT, missingResourceSettings as bU, observationInputSchema as bV, observationReceiptSchema as bW, observationSchema as bX, parseImageExtraction as bY, parseImageResult as bZ, parseSettings as b_, discordReactionSchema as ba, discordServerSchema as bb, engagementArtifactSchema as bc, engagementBoundaryPageSchema as bd, engagementChangePreviewInputSchema as be, engagementChangePreviewSchema as bf, engagementChangeSchema as bg, engagementDefinitionSchema as bh, engagementDeploymentEntrySchema as bi, engagementPageSchema as bj, engagementPublishSchema as bk, engagementRuleSchema as bl, engagementScoreInputSchema as bm, engagementScoreSchema as bn, engagementSettlementSchema as bo, engagementVersionPageSchema as bp, engagementVersionQuerySchema as bq, evmAddressSchema as br, evmChainSchema as bs, evmChains as bt, imageAssetArtifactSchema as bu, imageComparisonSchema as bv, imageExtractionSchema as bw, imageFieldSchema as bx, imageFieldsSchema as by, imageInspectionSchema as bz, type WalletBalanceQuery as c, valueEvidenceSchema as c$, pointsEntrySchema as c0, pointsMutationSchema as c1, pointsResultSchema as c2, projectIntegrationSchema as c3, publishedImageSchema as c4, publishedLeaderboardSchema as c5, publishedReferralSchema as c6, publishedTrackerSchema as c7, quizChoiceSchema as c8, quizContentSchema as c9, trackerContentQuerySchema as cA, trackerContentReadSchema as cB, trackerContentSchema as cC, trackerControlSchema as cD, trackerDefinitionSchema as cE, trackerEvidenceSchema as cF, trackerIngestResultSchema as cG, trackerIngestSchema as cH, trackerOutcomePageSchema as cI, trackerOutcomeQuerySchema as cJ, trackerOutcomeRetrySchema as cK, trackerOutcomeSchema as cL, trackerPageSchema as cM, trackerPreviewInputSchema as cN, trackerPreviewLimits as cO, trackerPreviewSchema as cP, trackerQuerySchema as cQ, trackerRecordInputSchema as cR, trackerRecordSchema as cS, trackerSourceSchema as cT, trackerStatusSchema as cU, trackerSummarySchema as cV, trackerTriggerPolicySchema as cW, trackerTriggerRecordSchema as cX, urlEvidenceSchema as cY, urlOptionsSchema as cZ, validateSubmissionValue as c_, quizQuestionSchema as ca, quizQuestionsSchema as cb, referralAccountSchema as cc, referralArtifactSchema as cd, referralAuthoringSchema as ce, referralControlSchema as cf, referralDefinitionSchema as cg, referralHistorySchema as ch, referralManagementSchema as ci, referralRelationshipSchema as cj, resourceOptionsSchema as ck, resourceRequestSchema as cl, resourceSourceSchema as cm, settingFieldSchema as cn, settingsFieldsSchema as co, settingsValuesSchema as cp, solanaAddressSchema as cq, solanaBalanceSchema as cr, solanaMainnet as cs, streakPolicySchema as ct, streakProgressSchema as cu, textEvidenceSchema as cv, textOptionsSchema as cw, trackerArtifactSchema as cx, trackerAttributionSchema as cy, trackerBeneficiarySchema as cz, type WalletBalance as d, walletAddressInput as d0, walletAddressInputSchema as d1, walletBalanceSchema as d2, walletChainSchema as d3, walletChallengeSchema as d4, walletConnectionSchema as d5, walletMessageChallengeSchema as d6, walletSignInNetwork as d7, walletSignInNetworkSchema as d8, walletUnlinkInputSchema as d9, xConnectionSchema as da, xContentBodySchema as db, xIdSchema as dc, xPostId as dd, xPostSchema as de, xProfileSchema as df, xRequestSchema as dg, xTweetSchema as dh, type TrackerDefinition as e, type TrackerBeneficiary as f, type TrackerTriggerPolicy as g, type AuthoringIdentity as h, type IntegrationProvider as i, type StreakPolicy as j, type TextEvidence as k, type TextOptions as l, type UrlOptions as m, content as n, observationTriggerSchema as o, customSource as p, defineEngagementReward as q, defineLeaderboard as r, defineReferral as s, defineTracker as t, discord as u, formatUnits as v, parseUnits as w, perContent as x, pointLedgers as y, settings as z };
5852
+ export { contentEnrollmentInputSchema as $, type AdmittedContent as A, type Budget as B, type ContentMetric as C, type DiscordMember as D, streak as E, trackerTriggerContextSchema as F, x as G, referralAcceptSchema as H, type ImageReader as I, type LeaderboardQuery as J, type WalletAddressInput as K, type LinkedWallet as L, walletSignatureSchema as M, type WalletSigner as N, type Observation as O, walletChallengeInputSchema as P, walletProofSchema as Q, type AuthProvider as R, type SolanaBalance as S, type TrackerTriggerContext as T, type UrlEvidence as U, type WalletSignature as V, type WalletConnection as W, type XReader as X, engagementPageQuerySchema as Y, contentQualificationQuerySchema as Z, contentAdmissionQuerySchema as _, type TrackerReader as a, contentPerformancePolicySchema as a$, contentReleaseInputSchema as a0, type WalletSignInNetwork as a1, type AccountConnection as a2, type CosmosChain as a3, type CosmosNetwork as a4, referralSummarySchema as a5, type LeaderboardPage as a6, type ValueEvidence as a7, type ContentPerformancePolicy as a8, type ContentPolicy as a9, type TrackerPreview as aA, type TrackerPreviewInput as aB, type TrackerQuery as aC, type TrackerRecord as aD, type TrackerStatus as aE, WALLETS_PER_CHAIN as aF, type WalletChain as aG, type WalletMessageChallenge as aH, type WalletUnlinkInput as aI, type XConnection as aJ, type XPost as aK, type XProfile as aL, type XTweet as aM, accountConnectionSchema as aN, admittedContentSchema as aO, authProviderSchema as aP, budgetSchema as aQ, caip10 as aR, communityTimeZoneSchema as aS, compatibleSettingKinds as aT, completionKeySchema as aU, completionPolicySchema as aV, contentAdmissionPageSchema as aW, contentAdmissionSchema as aX, contentEnrollmentSchema as aY, contentMetricSchema as aZ, contentMetricsSchema as a_, type EngagementDefinition as aa, type EvmChain as ab, type EvmChainInfo as ac, type ImageAssetArtifact as ad, type ImageComparison as ae, type ImageExtraction as af, type ImageFields as ag, type ImageInspection as ah, type ImageReference as ai, type ImageRequest as aj, type ImageSightings as ak, type LeaderboardDefinition as al, type ProjectIntegration as am, type PublishedImage as an, type QuizContent as ao, type ReferralDefinition as ap, type ResourceOption as aq, type ResourceSource as ar, type SettingField as as, type SettingsValues as at, type StreakProgress as au, type TrackerAttribution as av, type TrackerContent as aw, type TrackerContentQuery as ax, type TrackerOutcome as ay, type TrackerOutcomeQuery as az, type DiscordMessage as b, parseSettings as b$, contentPolicySchema as b0, contentQualificationDecisionSchema as b1, contentQualificationPageSchema as b2, contentQualificationSchema as b3, cosmosAddressSchema as b4, cosmosChain as b5, cosmosNetworkSchema as b6, discordMemberInputSchema as b7, discordMemberSchema as b8, discordMessageInputSchema as b9, imageInspectionSchema as bA, imageReferenceSchema as bB, imageRequestSchema as bC, imageSightingsSchema as bD, imageUploadRequestSchema as bE, imageUploadsSchema as bF, integrationProviderSchema as bG, isContentParticipantRoute as bH, isWalletParticipantRoute as bI, isWalletSignInRoute as bJ, leaderboardArtifactSchema as bK, leaderboardAuthoringSchema as bL, leaderboardDefinitionSchema as bM, leaderboardExclusionSchema as bN, leaderboardGroupSchema as bO, leaderboardPageSchema as bP, leaderboardPreviewSchema as bQ, leaderboardQuerySchema as bR, leaderboardRowSchema as bS, leaderboardWindowSchema as bT, linkedWalletSchema as bU, missingResourceSettings as bV, observationInputSchema as bW, observationReceiptSchema as bX, observationSchema as bY, parseImageExtraction as bZ, parseImageResult as b_, discordMessageSchema as ba, discordReactionSchema as bb, discordServerSchema as bc, engagementArtifactSchema as bd, engagementBoundaryPageSchema as be, engagementChangePreviewInputSchema as bf, engagementChangePreviewSchema as bg, engagementChangeSchema as bh, engagementDefinitionSchema as bi, engagementDeploymentEntrySchema as bj, engagementPageSchema as bk, engagementPublishSchema as bl, engagementRuleSchema as bm, engagementScoreInputSchema as bn, engagementScoreSchema as bo, engagementSettlementSchema as bp, engagementVersionPageSchema as bq, engagementVersionQuerySchema as br, evmAddressSchema as bs, evmChainSchema as bt, evmChains as bu, imageAssetArtifactSchema as bv, imageComparisonSchema as bw, imageExtractionSchema as bx, imageFieldSchema as by, imageFieldsSchema as bz, type WalletBalanceQuery as c, validateSubmissionValue as c$, pointsAccountSchema as c0, pointsEntrySchema as c1, pointsMutationSchema as c2, pointsResultSchema as c3, projectIntegrationSchema as c4, publishedImageSchema as c5, publishedLeaderboardSchema as c6, publishedReferralSchema as c7, publishedTrackerSchema as c8, quizChoiceSchema as c9, trackerBeneficiarySchema as cA, trackerContentQuerySchema as cB, trackerContentReadSchema as cC, trackerContentSchema as cD, trackerControlSchema as cE, trackerDefinitionSchema as cF, trackerEvidenceSchema as cG, trackerIngestResultSchema as cH, trackerIngestSchema as cI, trackerOutcomePageSchema as cJ, trackerOutcomeQuerySchema as cK, trackerOutcomeRetrySchema as cL, trackerOutcomeSchema as cM, trackerPageSchema as cN, trackerPreviewInputSchema as cO, trackerPreviewLimits as cP, trackerPreviewSchema as cQ, trackerQuerySchema as cR, trackerRecordInputSchema as cS, trackerRecordSchema as cT, trackerSourceSchema as cU, trackerStatusSchema as cV, trackerSummarySchema as cW, trackerTriggerPolicySchema as cX, trackerTriggerRecordSchema as cY, urlEvidenceSchema as cZ, urlOptionsSchema as c_, quizContentSchema as ca, quizQuestionSchema as cb, quizQuestionsSchema as cc, referralAccountSchema as cd, referralArtifactSchema as ce, referralAuthoringSchema as cf, referralControlSchema as cg, referralDefinitionSchema as ch, referralHistorySchema as ci, referralManagementSchema as cj, referralRelationshipSchema as ck, resourceOptionsSchema as cl, resourceRequestSchema as cm, resourceSourceSchema as cn, settingFieldSchema as co, settingsFieldsSchema as cp, settingsValuesSchema as cq, solanaAddressSchema as cr, solanaBalanceSchema as cs, solanaMainnet as ct, streakPolicySchema as cu, streakProgressSchema as cv, textEvidenceSchema as cw, textOptionsSchema as cx, trackerArtifactSchema as cy, trackerAttributionSchema as cz, type WalletBalance as d, valueEvidenceSchema as d0, walletAddressInput as d1, walletAddressInputSchema as d2, walletBalanceSchema as d3, walletChainSchema as d4, walletChallengeSchema as d5, walletConnectionSchema as d6, walletMessageChallengeSchema as d7, walletSignInFamilies as d8, walletSignInNetwork as d9, walletSignInNetworkSchema as da, walletSignInNetworksSchema as db, walletUnlinkInputSchema as dc, xConnectionSchema as dd, xContentBodySchema as de, xIdSchema as df, xPostId as dg, xPostSchema as dh, xProfileSchema as di, xRequestSchema as dj, xTweetSchema as dk, type TrackerDefinition as e, type TrackerBeneficiary as f, type TrackerTriggerPolicy as g, type AuthoringIdentity as h, type IntegrationProvider as i, type StreakPolicy as j, type TextEvidence as k, type TextOptions as l, type UrlOptions as m, content as n, observationTriggerSchema as o, customSource as p, defineEngagementReward as q, defineLeaderboard as r, defineReferral as s, defineTracker as t, discord as u, formatUnits as v, parseUnits as w, perContent as x, pointLedgers as y, settings as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domino-sdk/relay",
3
- "version": "0.26.0",
3
+ "version": "0.27.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {