@domino-sdk/relay 0.25.1 → 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.
@@ -1,5 +1,5 @@
1
- import { A as AdmittedContent, O as Observation, T as TrackerTriggerContext, a as TrackerReader, X as XReader, I as ImageReader, D as DiscordMember, b as DiscordMessage, W as WalletConnection, S as SolanaBalance, L as LinkedWallet, c as WalletBalanceQuery, d as WalletBalance, o as observationTriggerSchema, e as TrackerDefinition, f as TrackerBeneficiary, g as TrackerTriggerPolicy, B as Budget, h as AuthoringIdentity, C as ContentMetric, i as IntegrationProvider, j as StreakPolicy, k as TextEvidence, U as UrlEvidence, l as TextOptions, m as UrlOptions } from './submission-input-Ckpb4sBv.js';
2
- export { n as content, p as customSource, q as defineEngagementReward, r as defineLeaderboard, s as defineReferral, t as defineTracker, u as discord, v as formatUnits, w as parseUnits, x as perContent, y as pointLedgers, z as settings, E as streak, F as trackerTriggerContextSchema, G as x } from './submission-input-Ckpb4sBv.js';
1
+ import { A as AdmittedContent, O as Observation, T as TrackerTriggerContext, a as TrackerReader, X as XReader, I as ImageReader, D as DiscordMember, b as DiscordMessage, W as WalletConnection, S as SolanaBalance, L as LinkedWallet, c as WalletBalanceQuery, d as WalletBalance, o as observationTriggerSchema, e as TrackerDefinition, f as TrackerBeneficiary, g as TrackerTriggerPolicy, B as Budget, h as AuthoringIdentity, C as ContentMetric, i as IntegrationProvider, j as StreakPolicy, k as TextEvidence, U as UrlEvidence, l as TextOptions, m as UrlOptions } from './submission-input-CYyH_25w.js';
2
+ export { n as content, p as customSource, q as defineEngagementReward, r as defineLeaderboard, s as defineReferral, t as defineTracker, u as discord, v as formatUnits, w as parseUnits, x as perContent, y as pointLedgers, z as settings, E as streak, F as trackerTriggerContextSchema, G as x } from './submission-input-CYyH_25w.js';
3
3
  import { z } from 'zod';
4
4
  import { TextReviewInput, TextResult, PhotoResult, rewardSchema, triggerSchema, QuestPresentation, QuizEvidence, Decision, TieredRewardDefinition } from './schema.js';
5
5
 
package/dist/browser.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { N as WalletSigner, a3 as CosmosNetwork, H as referralAcceptSchema, J as LeaderboardQuery, K as WalletAddressInput, M as walletSignatureSchema, L as LinkedWallet, 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 } from './submission-input-Ckpb4sBv.js';
1
+ import { N as WalletSigner, a3 as CosmosChain, a4 as CosmosNetwork, H as referralAcceptSchema, J as LeaderboardQuery, K as WalletAddressInput, M as walletSignatureSchema, L as LinkedWallet, 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 } from './submission-input-CYyH_25w.js';
2
2
  import { SubmitInput, ReleaseInput, beginHandoverSchema, contentPerformanceQuerySchema } from './schema.js';
3
3
  import { SubmissionStore, createRelayClient, ProfileUpdate, QuestView, QuestController, ProgressObservation, questExperienceSchema, ProgressObserver, ExchangeInput, PhotoSubmission, QuizSubmission, ClaimSubmission, ValueSubmission } from './index.js';
4
4
  import * as zod from 'zod';
@@ -46,6 +46,8 @@ type KeplrLike = {
46
46
  value: string;
47
47
  };
48
48
  }>;
49
+ /** Adds a chain the wallet does not know, after the user approves it. */
50
+ experimentalSuggestChain?(chainInfo: CosmosChain["chainInfo"]): Promise<void>;
49
51
  };
50
52
  /** A wallet found in the page, ready to pass to `relay.wallets.link`. */
51
53
  type DiscoveredWallet = {
@@ -64,16 +66,25 @@ declare function solanaSigner(provider: SolanaInjectedProvider, info?: {
64
66
  }): WalletSigner;
65
67
  /** Signs with a Wallet Standard wallet's `solana:signMessage` feature. */
66
68
  declare function walletStandardSolanaSigner(wallet: StandardWallet): WalletSigner;
67
- /** Signs an ADR-36 message with Keplr or a wallet that implements its API. */
68
- declare function cosmosSigner(provider: KeplrLike, network: CosmosNetwork, info?: {
69
+ /**
70
+ * Signs an ADR-36 message with Keplr or a wallet that implements its API, on the app's chain:
71
+ * `{ chainId, chainInfo? }` or `"cosmos:<chain ID>"`. When the wallet does not know the chain and
72
+ * `chainInfo` is given, it suggests the chain to the wallet (`experimentalSuggestChain`) and tries
73
+ * again; without `chainInfo`, or with a wallet that cannot add chains, it throws an error that
74
+ * names the chain. Other failures, such as a rejected request, pass through.
75
+ */
76
+ declare function cosmosSigner(provider: KeplrLike, chain: CosmosChain | CosmosNetwork, info?: {
69
77
  name?: string;
70
78
  }): WalletSigner;
71
79
  /** EIP-6963 wallets, or `window.ethereum` when none announce themselves within `timeoutMs`. */
72
80
  declare function discoverEvmWallets(timeoutMs?: number): Promise<DiscoveredWallet[]>;
73
81
  /** Wallet Standard wallets that can sign Solana messages, then legacy injected providers. */
74
82
  declare function discoverSolanaWallets(): DiscoveredWallet[];
75
- /** Keplr, Leap and Cosmostation, each signing on `network`. IDs end with the network's chain ID. */
76
- declare function discoverCosmosWallets(network: CosmosNetwork): DiscoveredWallet[];
83
+ /**
84
+ * Keplr, Leap and Cosmostation, each signing on the app's chain (see `cosmosSigner`). IDs end with
85
+ * the chain ID.
86
+ */
87
+ declare function discoverCosmosWallets(chain: CosmosChain | CosmosNetwork): DiscoveredWallet[];
77
88
 
78
89
  /** Browser client with durable submission recovery; safe to construct during SSR. */
79
90
  declare function createBrowserRelayClient(options: Parameters<typeof createRelayClient>[0]): {
@@ -1553,7 +1564,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1553
1564
  wallets: {
1554
1565
  list: () => Promise<{
1555
1566
  chain: "solana" | "eip155" | "cosmos";
1556
- network: "cosmos:pio-mainnet-1" | "cosmos:pio-testnet-1" | null;
1567
+ network: `cosmos:${string}` | null;
1557
1568
  address: string;
1558
1569
  verifiedAt: number;
1559
1570
  revision: number;
@@ -1563,14 +1574,14 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1563
1574
  id: string;
1564
1575
  purpose: "link" | "sign-in";
1565
1576
  chain: "solana" | "eip155" | "cosmos";
1566
- network: "cosmos:pio-mainnet-1" | "cosmos:pio-testnet-1" | null;
1577
+ network: `cosmos:${string}` | null;
1567
1578
  address: string;
1568
1579
  message: string;
1569
1580
  expiresAt: number;
1570
1581
  }>;
1571
1582
  verify: (input: zod.input<typeof walletSignatureSchema>, session: string) => Promise<{
1572
1583
  chain: "solana" | "eip155" | "cosmos";
1573
- network: "cosmos:pio-mainnet-1" | "cosmos:pio-testnet-1" | null;
1584
+ network: `cosmos:${string}` | null;
1574
1585
  address: string;
1575
1586
  verifiedAt: number;
1576
1587
  revision: number;
@@ -1581,7 +1592,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1581
1592
  }>;
1582
1593
  link: (signer: WalletSigner) => Promise<{
1583
1594
  chain: "solana" | "eip155" | "cosmos";
1584
- network: "cosmos:pio-mainnet-1" | "cosmos:pio-testnet-1" | null;
1595
+ network: `cosmos:${string}` | null;
1585
1596
  address: string;
1586
1597
  verifiedAt: number;
1587
1598
  revision: number;
@@ -1616,7 +1627,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1616
1627
  configured: boolean;
1617
1628
  }[];
1618
1629
  email: boolean;
1619
- wallets: ("solana" | "eip155" | "cosmos:pio-mainnet-1" | "cosmos:pio-testnet-1")[];
1630
+ wallets: ("solana" | "eip155" | "cosmos")[];
1620
1631
  demo: boolean;
1621
1632
  }>;
1622
1633
  start: (provider: AuthProvider, mode: "sign-in" | "connect") => Promise<{
@@ -1647,7 +1658,7 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1647
1658
  id: string;
1648
1659
  purpose: "link" | "sign-in";
1649
1660
  chain: "solana" | "eip155" | "cosmos";
1650
- network: "cosmos:pio-mainnet-1" | "cosmos:pio-testnet-1" | null;
1661
+ network: `cosmos:${string}` | null;
1651
1662
  address: string;
1652
1663
  message: string;
1653
1664
  expiresAt: number;
package/dist/browser.js CHANGED
@@ -8,10 +8,10 @@ import {
8
8
  evmSigner,
9
9
  solanaSigner,
10
10
  walletStandardSolanaSigner
11
- } from "./chunk-MZFUQQDP.js";
12
- import "./chunk-S44XSDW2.js";
11
+ } from "./chunk-RVGO2CRA.js";
12
+ import "./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
  export {
@@ -32,10 +32,10 @@ import {
32
32
  walletConnectionSchema,
33
33
  walletMessageChallengeSchema,
34
34
  walletProofSchema,
35
- walletSignInNetworkSchema,
35
+ walletSignInNetworksSchema,
36
36
  walletSignatureSchema,
37
37
  walletUnlinkInputSchema
38
- } from "./chunk-7QICEKC2.js";
38
+ } from "./chunk-M3R5V5WC.js";
39
39
  import {
40
40
  AVATAR_UPLOAD_LIMIT,
41
41
  avatarUploadTypes,
@@ -2061,7 +2061,7 @@ function createRelayClient(options) {
2061
2061
  ),
2062
2062
  email: z11.boolean(),
2063
2063
  /** The wallet sign-in this project enabled; older servers omit it. */
2064
- wallets: z11.array(walletSignInNetworkSchema).default([]),
2064
+ wallets: walletSignInNetworksSchema.default([]),
2065
2065
  demo: z11.boolean()
2066
2066
  })
2067
2067
  ),
@@ -2103,7 +2103,7 @@ function createRelayClient(options) {
2103
2103
  ),
2104
2104
  /**
2105
2105
  * Asks the signer for its address, signs the challenge and starts the session. Throws a
2106
- * `RelayError` with status 403 when the project has not enabled this wallet's network.
2106
+ * `RelayError` with status 403 when the project has not enabled this wallet family.
2107
2107
  */
2108
2108
  signIn: async (signer) => {
2109
2109
  const challenge = await request(
@@ -62,25 +62,32 @@ var solanaBalanceSchema = z2.object({
62
62
  observedAt: z2.number().int().nonnegative()
63
63
  }).strict();
64
64
  var walletChainSchema = z2.enum(["solana", "eip155", "cosmos"]);
65
- var cosmosNetworks = {
66
- "cosmos:pio-mainnet-1": {
67
- chainId: "pio-mainnet-1",
68
- prefix: "pb",
69
- name: "Provenance"
70
- },
71
- "cosmos:pio-testnet-1": {
72
- chainId: "pio-testnet-1",
73
- prefix: "tp",
74
- name: "Provenance testnet"
65
+ var cosmosNetworkPattern = /^cosmos:[-_a-zA-Z0-9]{1,32}$/;
66
+ var cosmosNetworkSchema = z2.custom(
67
+ (value) => typeof value === "string" && cosmosNetworkPattern.test(value),
68
+ "Use a Cosmos network: cosmos:<chain ID>"
69
+ );
70
+ function cosmosChain(chain) {
71
+ if (typeof chain === "string" && !chain.startsWith("cosmos:")) {
72
+ throw new Error('Use a Cosmos network such as "cosmos:cosmoshub-4"');
75
73
  }
76
- };
77
- var cosmosNetworkSchema = z2.enum([
78
- "cosmos:pio-mainnet-1",
79
- "cosmos:pio-testnet-1"
80
- ]);
74
+ const value = typeof chain === "string" ? { chainId: chain.slice("cosmos:".length) } : chain;
75
+ const network = `cosmos:${value.chainId}`;
76
+ if (!cosmosNetworkPattern.test(network)) {
77
+ throw new Error(
78
+ "A Cosmos chain ID has 1 to 32 letters, digits, hyphens or underscores"
79
+ );
80
+ }
81
+ if (value.chainInfo && value.chainInfo.chainId !== value.chainId) {
82
+ throw new Error("The chain info describes another chain ID");
83
+ }
84
+ return { ...value, network };
85
+ }
81
86
  var solanaMainnet = "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";
82
87
  var evmAddressSchema = z2.string().regex(/^0x[0-9a-fA-F]{40}$/);
83
- var cosmosAddressSchema = z2.string().min(8).max(90).regex(/^[a-z]{1,20}1[02-9ac-hj-np-z]{38,}$/);
88
+ var cosmosAddressSchema = z2.string().min(8).max(90).regex(
89
+ /^(?:[a-z][a-z0-9]{0,82}1[02-9ac-hj-np-z]{38,}|[A-Z][A-Z0-9]{0,82}1[02-9AC-HJ-NP-Z]{38,})$/
90
+ );
84
91
  var walletAddressInputSchema = z2.discriminatedUnion("chain", [
85
92
  z2.object({ chain: z2.literal("solana"), address: solanaAddressSchema }).strict(),
86
93
  z2.object({
@@ -135,25 +142,20 @@ async function walletAddressInput(signer) {
135
142
  };
136
143
  case "cosmos":
137
144
  if (!signer.network) {
138
- throw new Error("Choose a Cosmos network for this wallet");
145
+ throw new Error("Choose the Cosmos chain for this wallet");
139
146
  }
140
147
  return { chain: "cosmos", network: signer.network, address };
141
148
  }
142
149
  }
143
150
  var WALLETS_PER_CHAIN = 5;
144
- var walletSignInNetworkSchema = z2.enum([
145
- "solana",
146
- "eip155",
147
- "cosmos:pio-mainnet-1",
148
- "cosmos:pio-testnet-1"
149
- ]);
151
+ var walletSignInFamilies = ["solana", "eip155", "cosmos"];
152
+ var walletSignInNetworkSchema = z2.union([z2.enum(walletSignInFamilies), z2.string().regex(cosmosNetworkPattern)]).transform(
153
+ (value) => value.startsWith("cosmos:") ? "cosmos" : value
154
+ );
155
+ var walletSignInNetworksSchema = z2.array(walletSignInNetworkSchema).transform(
156
+ (values) => walletSignInFamilies.filter((family) => values.includes(family))
157
+ );
150
158
  function walletSignInNetwork(wallet) {
151
- if (wallet.chain === "cosmos") {
152
- if (!wallet.network) {
153
- throw new Error("A Cosmos wallet belongs to its own network");
154
- }
155
- return wallet.network;
156
- }
157
159
  return wallet.chain;
158
160
  }
159
161
  function caip10(wallet, network) {
@@ -208,8 +210,8 @@ export {
208
210
  walletProofSchema,
209
211
  solanaBalanceSchema,
210
212
  walletChainSchema,
211
- cosmosNetworks,
212
213
  cosmosNetworkSchema,
214
+ cosmosChain,
213
215
  solanaMainnet,
214
216
  evmAddressSchema,
215
217
  cosmosAddressSchema,
@@ -220,7 +222,9 @@ export {
220
222
  walletUnlinkInputSchema,
221
223
  walletAddressInput,
222
224
  WALLETS_PER_CHAIN,
225
+ walletSignInFamilies,
223
226
  walletSignInNetworkSchema,
227
+ walletSignInNetworksSchema,
224
228
  walletSignInNetwork,
225
229
  caip10,
226
230
  isWalletParticipantRoute,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createRelayClient
3
- } from "./chunk-S44XSDW2.js";
3
+ } from "./chunk-D6AIUNSM.js";
4
4
  import {
5
- cosmosNetworks
6
- } from "./chunk-7QICEKC2.js";
5
+ cosmosChain
6
+ } from "./chunk-M3R5V5WC.js";
7
7
 
8
8
  // src/base58.ts
9
9
  var alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
@@ -141,14 +141,40 @@ function walletStandardSolanaSigner(wallet) {
141
141
  }
142
142
  };
143
143
  }
144
- function cosmosSigner(provider, network, info = {}) {
145
- const { chainId } = cosmosNetworks[network];
144
+ var unknownChain = /no chain info|unknown chain|chain.{0,40}not (?:supported|found)/i;
145
+ function cosmosSigner(provider, chain, info = {}) {
146
+ const { chainId, chainInfo, network } = cosmosChain(chain);
147
+ const wallet = info.name ?? "This wallet";
148
+ async function enable() {
149
+ try {
150
+ await provider.enable(chainId);
151
+ } catch (error) {
152
+ const message = error instanceof Error ? error.message : typeof error === "string" ? error : "";
153
+ if (!unknownChain.test(message)) {
154
+ throw error;
155
+ }
156
+ if (!chainInfo) {
157
+ throw new Error(
158
+ `${wallet} doesn't know the Cosmos chain ${chainId}. Add the chain to the wallet, or pass its chainInfo so the wallet can suggest it.`,
159
+ { cause: error }
160
+ );
161
+ }
162
+ if (!provider.experimentalSuggestChain) {
163
+ throw new Error(
164
+ `${wallet} doesn't know the Cosmos chain ${chainId} and cannot add chains. Add the chain to the wallet, or use a wallet that supports experimentalSuggestChain.`,
165
+ { cause: error }
166
+ );
167
+ }
168
+ await provider.experimentalSuggestChain(chainInfo);
169
+ await provider.enable(chainId);
170
+ }
171
+ }
146
172
  return {
147
173
  chain: "cosmos",
148
174
  network,
149
175
  name: info.name,
150
176
  async address() {
151
- await provider.enable(chainId);
177
+ await enable();
152
178
  return (await provider.getKey(chainId)).bech32Address;
153
179
  },
154
180
  async sign(message, address) {
@@ -267,7 +293,8 @@ function discoverSolanaWallets() {
267
293
  }
268
294
  return wallets;
269
295
  }
270
- function discoverCosmosWallets(network) {
296
+ function discoverCosmosWallets(chain) {
297
+ const { chainId } = cosmosChain(chain);
271
298
  const target = injected();
272
299
  if (!target) {
273
300
  return [];
@@ -280,9 +307,9 @@ function discoverCosmosWallets(network) {
280
307
  ]) {
281
308
  if (typeof provider?.signArbitrary === "function") {
282
309
  wallets.push({
283
- id: `${slug(name)}:${cosmosNetworks[network].chainId}`,
310
+ id: `${slug(name)}:${chainId}`,
284
311
  name,
285
- signer: cosmosSigner(provider, network, { name })
312
+ signer: cosmosSigner(provider, chain, { name })
286
313
  });
287
314
  }
288
315
  }
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { a6 as ValueEvidence, L as LinkedWallet, H as referralAcceptSchema, J as LeaderboardQuery, K as WalletAddressInput, M as walletSignatureSchema, 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 } from './submission-input-Ckpb4sBv.js';
2
- export { a2 as AccountConnection, A as AdmittedContent, B as Budget, C as ContentMetric, a7 as ContentPerformancePolicy, a8 as ContentPolicy, a3 as CosmosNetwork, D as DiscordMember, b as DiscordMessage, a9 as EngagementDefinition, aa as EvmChain, ab as EvmChainInfo, ac as ImageAssetArtifact, ad as ImageComparison, ae as ImageExtraction, af as ImageFields, ag as ImageInspection, I as ImageReader, ah as ImageReference, ai as ImageRequest, aj as ImageSightings, i as IntegrationProvider, ak as LeaderboardDefinition, a5 as LeaderboardPage, O as Observation, al as ProjectIntegration, am as PublishedImage, an as QuizContent, ao as ReferralDefinition, ap as ResourceOption, aq as ResourceSource, ar as SettingField, as as SettingsValues, S as SolanaBalance, j as StreakPolicy, at as StreakProgress, k as TextEvidence, l as TextOptions, au as TrackerAttribution, f as TrackerBeneficiary, av as TrackerContent, aw as TrackerContentQuery, e as TrackerDefinition, ax as TrackerOutcome, ay as TrackerOutcomeQuery, az as TrackerPreview, aA as TrackerPreviewInput, aB as TrackerQuery, a as TrackerReader, aC as TrackerRecord, aD as TrackerStatus, T as TrackerTriggerContext, g as TrackerTriggerPolicy, U as UrlEvidence, m as UrlOptions, aE as WALLETS_PER_CHAIN, d as WalletBalance, c as WalletBalanceQuery, aF as WalletChain, W as WalletConnection, aG as WalletMessageChallenge, a1 as WalletSignInNetwork, aH as WalletUnlinkInput, aI as XConnection, aJ as XPost, aK as XProfile, X as XReader, aL as XTweet, aM as accountConnectionSchema, aN as admittedContentSchema, aO as authProviderSchema, aP as budgetSchema, aQ as caip10, aR as communityTimeZoneSchema, aS as compatibleSettingKinds, aT as completionKeySchema, aU as completionPolicySchema, n as content, aV as contentAdmissionPageSchema, aW as contentAdmissionSchema, aX as contentEnrollmentSchema, aY as contentMetricSchema, aZ as contentMetricsSchema, a_ as contentPerformancePolicySchema, a$ as contentPolicySchema, b0 as contentQualificationDecisionSchema, b1 as contentQualificationPageSchema, b2 as contentQualificationSchema, b3 as cosmosAddressSchema, b4 as cosmosNetworkSchema, b5 as cosmosNetworks, p as customSource, q as defineEngagementReward, r as defineLeaderboard, s as defineReferral, t as defineTracker, u as discord, b6 as discordMemberInputSchema, b7 as discordMemberSchema, b8 as discordMessageInputSchema, b9 as discordMessageSchema, ba as discordReactionSchema, bb as discordServerSchema, bc as engagementArtifactSchema, bd as engagementBoundaryPageSchema, be as engagementChangePreviewInputSchema, bf as engagementChangePreviewSchema, bg as engagementChangeSchema, bh as engagementDefinitionSchema, bi as engagementDeploymentEntrySchema, bj as engagementPageSchema, bk as engagementPublishSchema, bl as engagementRuleSchema, bm as engagementScoreInputSchema, bn as engagementScoreSchema, bo as engagementSettlementSchema, bp as engagementVersionPageSchema, bq as engagementVersionQuerySchema, br as evmAddressSchema, bs as evmChainSchema, bt as evmChains, v as formatUnits, bu as imageAssetArtifactSchema, bv as imageComparisonSchema, bw as imageExtractionSchema, bx as imageFieldSchema, by as imageFieldsSchema, bz as imageInspectionSchema, bA as imageReferenceSchema, bB as imageRequestSchema, bC as imageSightingsSchema, bD as imageUploadRequestSchema, bE as imageUploadsSchema, bF as integrationProviderSchema, bG as isContentParticipantRoute, bH as isWalletParticipantRoute, bI as isWalletSignInRoute, bJ as leaderboardArtifactSchema, bK as leaderboardAuthoringSchema, bL as leaderboardDefinitionSchema, bM as leaderboardExclusionSchema, bN as leaderboardGroupSchema, bO as leaderboardPageSchema, bP as leaderboardPreviewSchema, bQ as leaderboardQuerySchema, bR as leaderboardRowSchema, bS as leaderboardWindowSchema, bT as linkedWalletSchema, bU as missingResourceSettings, bV as observationInputSchema, bW as observationReceiptSchema, bX as observationSchema, o as observationTriggerSchema, bY as parseImageExtraction, bZ as parseImageResult, b_ as parseSettings, w as parseUnits, x as perContent, y as pointLedgers, b$ as pointsAccountSchema, c0 as pointsEntrySchema, c1 as pointsMutationSchema, c2 as pointsResultSchema, c3 as projectIntegrationSchema, c4 as publishedImageSchema, c5 as publishedLeaderboardSchema, c6 as publishedReferralSchema, c7 as publishedTrackerSchema, c8 as quizChoiceSchema, c9 as quizContentSchema, ca as quizQuestionSchema, cb as quizQuestionsSchema, cc as referralAccountSchema, cd as referralArtifactSchema, ce as referralAuthoringSchema, cf as referralControlSchema, cg as referralDefinitionSchema, ch as referralHistorySchema, ci as referralManagementSchema, cj as referralRelationshipSchema, a4 as referralSummarySchema, ck as resourceOptionsSchema, cl as resourceRequestSchema, cm as resourceSourceSchema, cn as settingFieldSchema, z as settings, co as settingsFieldsSchema, cp as settingsValuesSchema, cq as solanaAddressSchema, cr as solanaBalanceSchema, cs as solanaMainnet, E as streak, ct as streakPolicySchema, cu as streakProgressSchema, cv as textEvidenceSchema, cw as textOptionsSchema, cx as trackerArtifactSchema, cy as trackerAttributionSchema, cz as trackerBeneficiarySchema, cA as trackerContentQuerySchema, cB as trackerContentReadSchema, cC as trackerContentSchema, cD as trackerControlSchema, cE as trackerDefinitionSchema, cF as trackerEvidenceSchema, cG as trackerIngestResultSchema, cH as trackerIngestSchema, cI as trackerOutcomePageSchema, cJ as trackerOutcomeQuerySchema, cK as trackerOutcomeRetrySchema, cL as trackerOutcomeSchema, cM as trackerPageSchema, cN as trackerPreviewInputSchema, cO as trackerPreviewLimits, cP as trackerPreviewSchema, cQ as trackerQuerySchema, cR as trackerRecordInputSchema, cS as trackerRecordSchema, cT as trackerSourceSchema, cU as trackerStatusSchema, cV as trackerSummarySchema, F as trackerTriggerContextSchema, cW as trackerTriggerPolicySchema, cX as trackerTriggerRecordSchema, cY as urlEvidenceSchema, cZ as urlOptionsSchema, c_ as validateSubmissionValue, c$ as valueEvidenceSchema, d0 as walletAddressInput, d1 as walletAddressInputSchema, d2 as walletBalanceSchema, d3 as walletChainSchema, d4 as walletChallengeSchema, d5 as walletConnectionSchema, d6 as walletMessageChallengeSchema, d7 as walletSignInNetwork, d8 as walletSignInNetworkSchema, d9 as walletUnlinkInputSchema, G as x, da as xConnectionSchema, db as xContentBodySchema, dc as xIdSchema, dd as xPostId, de as xPostSchema, df as xProfileSchema, dg as xRequestSchema, dh as xTweetSchema } from './submission-input-Ckpb4sBv.js';
1
+ import { a7 as ValueEvidence, L as LinkedWallet, H as referralAcceptSchema, J as LeaderboardQuery, K as WalletAddressInput, M as walletSignatureSchema, 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 } from './submission-input-CYyH_25w.js';
2
+ export { a2 as AccountConnection, A as AdmittedContent, B as Budget, C as ContentMetric, a8 as ContentPerformancePolicy, a9 as ContentPolicy, a3 as CosmosChain, a4 as CosmosNetwork, D as DiscordMember, b as DiscordMessage, aa as EngagementDefinition, ab as EvmChain, ac as EvmChainInfo, ad as ImageAssetArtifact, ae as ImageComparison, af as ImageExtraction, ag as ImageFields, ah as ImageInspection, I as ImageReader, ai as ImageReference, aj as ImageRequest, ak as ImageSightings, i as IntegrationProvider, al as LeaderboardDefinition, a6 as LeaderboardPage, O as Observation, am as ProjectIntegration, an as PublishedImage, ao as QuizContent, ap as ReferralDefinition, aq as ResourceOption, ar as ResourceSource, as as SettingField, at as SettingsValues, S as SolanaBalance, j as StreakPolicy, au as StreakProgress, k as TextEvidence, l as TextOptions, av as TrackerAttribution, f as TrackerBeneficiary, aw as TrackerContent, ax as TrackerContentQuery, e as TrackerDefinition, ay as TrackerOutcome, az as TrackerOutcomeQuery, aA as TrackerPreview, aB as TrackerPreviewInput, aC as TrackerQuery, a as TrackerReader, aD as TrackerRecord, aE as TrackerStatus, T as TrackerTriggerContext, g as TrackerTriggerPolicy, U as UrlEvidence, m as UrlOptions, aF as WALLETS_PER_CHAIN, d as WalletBalance, c as WalletBalanceQuery, aG as WalletChain, W as WalletConnection, aH as WalletMessageChallenge, a1 as WalletSignInNetwork, aI as WalletUnlinkInput, aJ as XConnection, aK as XPost, aL as XProfile, X as XReader, aM as XTweet, aN as accountConnectionSchema, aO as admittedContentSchema, aP as authProviderSchema, aQ as budgetSchema, aR as caip10, aS as communityTimeZoneSchema, aT as compatibleSettingKinds, aU as completionKeySchema, aV as completionPolicySchema, n as content, aW as contentAdmissionPageSchema, aX as contentAdmissionSchema, aY as contentEnrollmentSchema, aZ as contentMetricSchema, a_ as contentMetricsSchema, a$ as contentPerformancePolicySchema, b0 as contentPolicySchema, b1 as contentQualificationDecisionSchema, b2 as contentQualificationPageSchema, b3 as contentQualificationSchema, b4 as cosmosAddressSchema, b5 as cosmosChain, b6 as cosmosNetworkSchema, p as customSource, q as defineEngagementReward, r as defineLeaderboard, s as defineReferral, t as defineTracker, u as discord, b7 as discordMemberInputSchema, b8 as discordMemberSchema, b9 as discordMessageInputSchema, ba as discordMessageSchema, bb as discordReactionSchema, bc as discordServerSchema, bd as engagementArtifactSchema, be as engagementBoundaryPageSchema, bf as engagementChangePreviewInputSchema, bg as engagementChangePreviewSchema, bh as engagementChangeSchema, bi as engagementDefinitionSchema, bj as engagementDeploymentEntrySchema, bk as engagementPageSchema, bl as engagementPublishSchema, bm as engagementRuleSchema, bn as engagementScoreInputSchema, bo as engagementScoreSchema, bp as engagementSettlementSchema, bq as engagementVersionPageSchema, br as engagementVersionQuerySchema, bs as evmAddressSchema, bt as evmChainSchema, bu as evmChains, v as formatUnits, bv as imageAssetArtifactSchema, bw as imageComparisonSchema, bx as imageExtractionSchema, by as imageFieldSchema, bz as imageFieldsSchema, bA as imageInspectionSchema, bB as imageReferenceSchema, bC as imageRequestSchema, bD as imageSightingsSchema, bE as imageUploadRequestSchema, bF as imageUploadsSchema, bG as integrationProviderSchema, bH as isContentParticipantRoute, bI as isWalletParticipantRoute, bJ as isWalletSignInRoute, bK as leaderboardArtifactSchema, bL as leaderboardAuthoringSchema, bM as leaderboardDefinitionSchema, bN as leaderboardExclusionSchema, bO as leaderboardGroupSchema, bP as leaderboardPageSchema, bQ as leaderboardPreviewSchema, bR as leaderboardQuerySchema, bS as leaderboardRowSchema, bT as leaderboardWindowSchema, bU as linkedWalletSchema, bV as missingResourceSettings, bW as observationInputSchema, bX as observationReceiptSchema, bY as observationSchema, o as observationTriggerSchema, bZ as parseImageExtraction, b_ as parseImageResult, b$ as parseSettings, w as parseUnits, x as perContent, y as pointLedgers, c0 as pointsAccountSchema, c1 as pointsEntrySchema, c2 as pointsMutationSchema, c3 as pointsResultSchema, c4 as projectIntegrationSchema, c5 as publishedImageSchema, c6 as publishedLeaderboardSchema, c7 as publishedReferralSchema, c8 as publishedTrackerSchema, c9 as quizChoiceSchema, ca as quizContentSchema, cb as quizQuestionSchema, cc as quizQuestionsSchema, cd as referralAccountSchema, ce as referralArtifactSchema, cf as referralAuthoringSchema, cg as referralControlSchema, ch as referralDefinitionSchema, ci as referralHistorySchema, cj as referralManagementSchema, ck as referralRelationshipSchema, a5 as referralSummarySchema, cl as resourceOptionsSchema, cm as resourceRequestSchema, cn as resourceSourceSchema, co as settingFieldSchema, z as settings, cp as settingsFieldsSchema, cq as settingsValuesSchema, cr as solanaAddressSchema, cs as solanaBalanceSchema, ct as solanaMainnet, E as streak, cu as streakPolicySchema, cv as streakProgressSchema, cw as textEvidenceSchema, cx as textOptionsSchema, cy as trackerArtifactSchema, cz as trackerAttributionSchema, cA as trackerBeneficiarySchema, cB as trackerContentQuerySchema, cC as trackerContentReadSchema, cD as trackerContentSchema, cE as trackerControlSchema, cF as trackerDefinitionSchema, cG as trackerEvidenceSchema, cH as trackerIngestResultSchema, cI as trackerIngestSchema, cJ as trackerOutcomePageSchema, cK as trackerOutcomeQuerySchema, cL as trackerOutcomeRetrySchema, cM as trackerOutcomeSchema, cN as trackerPageSchema, cO as trackerPreviewInputSchema, cP as trackerPreviewLimits, cQ as trackerPreviewSchema, cR as trackerQuerySchema, cS as trackerRecordInputSchema, cT as trackerRecordSchema, cU as trackerSourceSchema, cV as trackerStatusSchema, cW as trackerSummarySchema, F as trackerTriggerContextSchema, cX as trackerTriggerPolicySchema, cY as trackerTriggerRecordSchema, cZ as urlEvidenceSchema, c_ as urlOptionsSchema, c$ as validateSubmissionValue, d0 as valueEvidenceSchema, d1 as walletAddressInput, d2 as walletAddressInputSchema, d3 as walletBalanceSchema, d4 as walletChainSchema, d5 as walletChallengeSchema, d6 as walletConnectionSchema, d7 as walletMessageChallengeSchema, d8 as walletSignInFamilies, d9 as walletSignInNetwork, da as walletSignInNetworkSchema, db as walletSignInNetworksSchema, dc as walletUnlinkInputSchema, G as x, dd as xConnectionSchema, de as xContentBodySchema, df as xIdSchema, dg as xPostId, dh as xPostSchema, di as xProfileSchema, dj as xRequestSchema, dk as xTweetSchema } from './submission-input-CYyH_25w.js';
3
3
  import { z } from 'zod';
4
4
  import { errorSchema, QuizEvidence, Attempt, SubmitInput, MemberProgress, questDescriptionSchema, PublishedRelease, ReleaseInput, beginHandoverSchema, contentPerformanceQuerySchema } from './schema.js';
5
5
  export { ContentPerformanceSnapshot, Decision, Entitlement, MemberPage, PhotoResult, PickupAvailability, QuestAvailability, QuestDescription, QuestPresentation, QuestSettingsInput, ReviewPage, Reward, Snapshot, SubmissionEvidence, TextResult, TextReviewInput, TieredRewardDefinition, TieredRewardReference, artifactSchema, attemptSchema, batchReleaseSchema, completionRecordSchema, configurePickupSchema, confirmHandoverSchema, contentPerformancePageSchema, contentPerformanceSnapshotSchema, createStockItemSchema, decisionSchema, entitlementSchema, eventSchema, evidenceSchema, identifier, integrationRewardSchema, mediaUrlSchema, memberListSchema, memberPageSchema, memberProgressSchema, photoResultSchema, pickupAllocationSchema, pickupAvailabilitySchema, pickupCatalogSchema, pickupPolicySchema, pickupSelectionSchema, pointsRewardSchema, prerequisiteSchema, publishedReleaseSchema, questAvailabilitySchema, questPresentationSchema, questSettingsInputSchema, quizAnswersSchema, quizEvidenceSchema, releaseSchema, reservationSchema, reviewItemSchema, reviewListSchema, reviewModeSchema, reviewPageSchema, rewardBundleSchema, rewardKey, rewardSchema, snapshotSchema, staffDecisionSchema, stockItemSchema, stockSchema, storedReviewModeSchema, submissionEvidenceSchema, submitSchema, templateSchema, textResultSchema, textReviewInputSchema, tierRewardSchema, tieredRewardDefinitionSchema, tieredRewardReferenceSchema, triggerSchema } from './schema.js';
@@ -9791,7 +9791,7 @@ declare function createRelayClient(options: {
9791
9791
  wallets: {
9792
9792
  list: () => Promise<{
9793
9793
  chain: "solana" | "eip155" | "cosmos";
9794
- network: "cosmos:pio-mainnet-1" | "cosmos:pio-testnet-1" | null;
9794
+ network: `cosmos:${string}` | null;
9795
9795
  address: string;
9796
9796
  verifiedAt: number;
9797
9797
  revision: number;
@@ -9801,14 +9801,14 @@ declare function createRelayClient(options: {
9801
9801
  id: string;
9802
9802
  purpose: "link" | "sign-in";
9803
9803
  chain: "solana" | "eip155" | "cosmos";
9804
- network: "cosmos:pio-mainnet-1" | "cosmos:pio-testnet-1" | null;
9804
+ network: `cosmos:${string}` | null;
9805
9805
  address: string;
9806
9806
  message: string;
9807
9807
  expiresAt: number;
9808
9808
  }>;
9809
9809
  verify: (input: z.input<typeof walletSignatureSchema>, session: string) => Promise<{
9810
9810
  chain: "solana" | "eip155" | "cosmos";
9811
- network: "cosmos:pio-mainnet-1" | "cosmos:pio-testnet-1" | null;
9811
+ network: `cosmos:${string}` | null;
9812
9812
  address: string;
9813
9813
  verifiedAt: number;
9814
9814
  revision: number;
@@ -9821,7 +9821,7 @@ declare function createRelayClient(options: {
9821
9821
  /** Asks the signer for its address, signs the returned challenge, and links the wallet. */
9822
9822
  link: (signer: WalletSigner) => Promise<{
9823
9823
  chain: "solana" | "eip155" | "cosmos";
9824
- network: "cosmos:pio-mainnet-1" | "cosmos:pio-testnet-1" | null;
9824
+ network: `cosmos:${string}` | null;
9825
9825
  address: string;
9826
9826
  verifiedAt: number;
9827
9827
  revision: number;
@@ -9857,7 +9857,7 @@ declare function createRelayClient(options: {
9857
9857
  configured: boolean;
9858
9858
  }[];
9859
9859
  email: boolean;
9860
- wallets: ("solana" | "eip155" | "cosmos:pio-mainnet-1" | "cosmos:pio-testnet-1")[];
9860
+ wallets: ("solana" | "eip155" | "cosmos")[];
9861
9861
  demo: boolean;
9862
9862
  }>;
9863
9863
  start: (provider: AuthProvider, mode: "sign-in" | "connect") => Promise<{
@@ -9893,7 +9893,7 @@ declare function createRelayClient(options: {
9893
9893
  id: string;
9894
9894
  purpose: "link" | "sign-in";
9895
9895
  chain: "solana" | "eip155" | "cosmos";
9896
- network: "cosmos:pio-mainnet-1" | "cosmos:pio-testnet-1" | null;
9896
+ network: `cosmos:${string}` | null;
9897
9897
  address: string;
9898
9898
  message: string;
9899
9899
  expiresAt: number;
@@ -9918,7 +9918,7 @@ declare function createRelayClient(options: {
9918
9918
  }>;
9919
9919
  /**
9920
9920
  * Asks the signer for its address, signs the challenge and starts the session. Throws a
9921
- * `RelayError` with status 403 when the project has not enabled this wallet's network.
9921
+ * `RelayError` with status 403 when the project has not enabled this wallet family.
9922
9922
  */
9923
9923
  signIn: (signer: WalletSigner) => Promise<{
9924
9924
  organization: string;
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.25.1",
3
+ "version": "0.27.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {