@domino-sdk/relay 0.26.0 → 0.28.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/authoring.d.ts +2 -2
- package/dist/browser.d.ts +297 -172
- package/dist/browser.js +9 -3
- package/dist/{chunk-7QICEKC2.js → chunk-AL5GXMKI.js} +39 -30
- package/dist/{chunk-MZFUQQDP.js → chunk-NHSA6ATH.js} +209 -9
- package/dist/{chunk-S44XSDW2.js → chunk-ZP43MHO3.js} +4 -4
- package/dist/index.d.ts +390 -390
- package/dist/index.js +8 -4
- package/dist/portal-proxy.js +1 -1
- package/dist/react/index.d.ts +60 -28
- package/dist/react/index.js +153 -77
- package/dist/{submission-input-Ckpb4sBv.d.ts → submission-input-D3t8WKOk.d.ts} +41 -41
- package/package.json +1 -1
|
@@ -5317,29 +5317,30 @@ declare const walletChainSchema: z.ZodEnum<{
|
|
|
5317
5317
|
}>;
|
|
5318
5318
|
type WalletChain = z.infer<typeof walletChainSchema>;
|
|
5319
5319
|
/**
|
|
5320
|
-
* Cosmos SDK
|
|
5321
|
-
*
|
|
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
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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:
|
|
5442
|
-
*
|
|
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
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
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
|
|
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,
|
|
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 AccountConnection as a1, type WalletSignInNetwork as a2, referralSummarySchema as a3, type LeaderboardPage as a4, type CosmosChain as a5, type CosmosNetwork 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 };
|