@domino-sdk/relay 1.66.1 → 1.67.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/CHANGELOG.md +25 -0
- package/dist/{accounts-_lNsiR2k.d.ts → accounts-C2O8mpB8.d.ts} +2 -2
- package/dist/{attempt-captures-BqPggxTU.d.ts → attempt-captures-ClHAoo_n.d.ts} +1 -1
- package/dist/authoring.d.ts +24 -23
- package/dist/authoring.js +17 -15
- package/dist/{automatic-outcomes-BzAvfcpd.d.ts → automatic-outcomes-BEnPn4Uh.d.ts} +2 -2
- package/dist/avatar.d.ts +1 -1
- package/dist/browser.d.ts +9 -9
- package/dist/browser.js +9 -8
- package/dist/{catalog-ByZMRS7I.d.ts → catalog-CbiftcxQ.d.ts} +2 -2
- package/dist/{chunk-5LD5DKOM.js → chunk-5DZNMLDM.js} +1 -1
- package/dist/{chunk-2Y4EZKET.js → chunk-5SBA6X5X.js} +1 -1
- package/dist/{chunk-7HTRIEM7.js → chunk-BMJHFWVT.js} +5 -29
- package/dist/{chunk-7MQCQYEE.js → chunk-DSJ46QLB.js} +1 -1
- package/dist/{chunk-FUFMYKSQ.js → chunk-JK3XV2CR.js} +92 -3
- package/dist/{chunk-M66Y5OMJ.js → chunk-KUNPCDN6.js} +6 -6
- package/dist/{chunk-5DYS2OIP.js → chunk-MVQQDPQX.js} +1 -1
- package/dist/{chunk-CGUL4MRE.js → chunk-NRMQVK2W.js} +1 -1
- package/dist/{chunk-XCEGNKGH.js → chunk-P33ZAJMS.js} +56 -24
- package/dist/{chunk-CJDB6W6I.js → chunk-Q5QVAF7R.js} +41 -14
- package/dist/{chunk-4TC4HK5Y.js → chunk-Q6KTTVOI.js} +1 -1
- package/dist/{chunk-QYHEHMCG.js → chunk-QYC3CZVD.js} +1 -1
- package/dist/{chunk-OWDIR7ZU.js → chunk-RDUSFUXX.js} +1 -1
- package/dist/{chunk-FU3W4IQN.js → chunk-RWR2LOPA.js} +2 -2
- package/dist/chunk-UWUS4OOV.js +59 -0
- package/dist/{chunk-ANVAUOJP.js → chunk-X3FMVRMM.js} +1 -1
- package/dist/{chunk-R2LHIWAM.js → chunk-Z2Z5DBNW.js} +6 -6
- package/dist/{client-Cze4lfwA.d.ts → client-CZPewB9h.d.ts} +10 -7
- package/dist/{dashboards-pVfclkyh.d.ts → dashboards-jGPM3AxF.d.ts} +3 -3
- package/dist/{deployments-Cr1tfqrr.d.ts → deployments-BVFd7ddA.d.ts} +3 -3
- package/dist/{identity-integration-Ci2vGKtX.d.ts → identity-integration-W1Vo3Ql9.d.ts} +10 -2
- package/dist/index.d.ts +10 -10
- package/dist/index.js +7 -7
- package/dist/internal.d.ts +32 -14
- package/dist/internal.js +29 -20
- package/dist/{limits-pE04y9O2.d.ts → limits-C4RzrOV4.d.ts} +1 -1
- package/dist/{offers-Hw2P6tcK.d.ts → offers-BpYenB9i.d.ts} +2 -2
- package/dist/portal-proxy.d.ts +5 -5
- package/dist/portal-proxy.js +11 -13
- package/dist/react/index.d.ts +14 -13
- package/dist/react/index.js +9 -8
- package/dist/{reward-deliveries-BCV8hznc.d.ts → reward-deliveries-BOWpMytr.d.ts} +1 -1
- package/dist/runtime/authoring.js +1 -1
- package/dist/runtime/chunks/C2MGLQXC.js +1 -0
- package/dist/runtime/manifest.json +3 -3
- package/dist/runtime/schema.js +1 -1
- package/dist/schema.d.ts +20 -17
- package/dist/schema.js +11 -7
- package/dist/server/index.d.ts +12 -12
- package/dist/server/index.js +277 -22
- package/dist/{sign-in-providers-BAkGjSXo.d.ts → sign-in-providers-BRYVOSlG.d.ts} +2 -2
- package/dist/{submission-input-ChL1aYNH.d.ts → submission-input-C152xIdn.d.ts} +2 -2
- package/dist/{telegram-browser-BFs4u7lC.d.ts → telegram-browser-657QqiQl.d.ts} +4 -4
- package/dist/telegram.d.ts +8 -8
- package/dist/testing.d.ts +12 -11
- package/dist/testing.js +14 -7
- package/dist/{tracker-data-Bl-qPIvZ.d.ts → tracker-data-BqY-9Vu-.d.ts} +2 -2
- package/dist/{transport-WE49Ta3A.d.ts → transport-CthYgZXK.d.ts} +618 -20
- package/dist/{wallet-B7e06v4m.d.ts → wallet-Btng186v.d.ts} +57 -26
- package/package.json +3 -1
- package/dist/chunk-UZ765UGH.js +0 -18
- package/dist/runtime/chunks/C5V267I7.js +0 -1
|
@@ -540,6 +540,10 @@ function cosmosChain(chain) {
|
|
|
540
540
|
return { ...value, network };
|
|
541
541
|
}
|
|
542
542
|
var solanaMainnet = "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";
|
|
543
|
+
var solanaDevnet = "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
544
|
+
function isSolanaNetwork(value) {
|
|
545
|
+
return value === solanaMainnet || value === solanaDevnet;
|
|
546
|
+
}
|
|
543
547
|
var evmAddressSchema = /* @__PURE__ */ (() => z7.string().regex(/^0x[0-9a-fA-F]{40}$/))();
|
|
544
548
|
var cosmosAddressSchema = /* @__PURE__ */ (() => z7.string().min(8).max(90).regex(
|
|
545
549
|
/^(?:[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,})$/
|
|
@@ -549,7 +553,10 @@ var walletAddressInputSchema = /* @__PURE__ */ (() => z7.discriminatedUnion("cha
|
|
|
549
553
|
z7.object({
|
|
550
554
|
chain: z7.literal("eip155"),
|
|
551
555
|
address: evmAddressSchema,
|
|
552
|
-
/**
|
|
556
|
+
/**
|
|
557
|
+
* The wallet's current chain, in the message's Chain ID line. Defaults to 1. An EOA's link is
|
|
558
|
+
* chain-agnostic; a smart-contract wallet's signature is checked on this chain.
|
|
559
|
+
*/
|
|
553
560
|
chainId: z7.number().int().positive().safe().optional()
|
|
554
561
|
}).strict(),
|
|
555
562
|
z7.object({
|
|
@@ -570,15 +577,32 @@ var walletMessageChallengeSchema = /* @__PURE__ */ (() => z7.object({
|
|
|
570
577
|
}))();
|
|
571
578
|
var walletSignatureSchema = /* @__PURE__ */ (() => z7.object({
|
|
572
579
|
challenge: z7.string().min(1).max(200),
|
|
573
|
-
/**
|
|
574
|
-
|
|
580
|
+
/**
|
|
581
|
+
* solana: base58, 64 bytes · eip155: 0x and hex, 65 bytes from an EOA, longer from a smart-contract
|
|
582
|
+
* wallet (ERC-1271, or ERC-6492-wrapped before it is deployed) · cosmos: base64, 64 bytes (r‖s).
|
|
583
|
+
* The limit fits an ERC-6492-wrapped passkey signature, a few kilobytes, with room to spare.
|
|
584
|
+
*/
|
|
585
|
+
signature: z7.string().min(1).max(16384),
|
|
575
586
|
/** cosmos only: the base64 33-byte compressed secp256k1 key from signArbitrary's pub_key.value */
|
|
576
587
|
publicKey: z7.string().max(128).optional()
|
|
577
588
|
}).strict())();
|
|
589
|
+
function isEvmChainId(value) {
|
|
590
|
+
return /^eip155:[1-9][0-9]{0,15}$/.test(value);
|
|
591
|
+
}
|
|
592
|
+
var evmChainIdSchema = /* @__PURE__ */ (() => z7.custom(
|
|
593
|
+
(value) => typeof value === "string" && isEvmChainId(value),
|
|
594
|
+
'Use an EVM chain ID such as "eip155:8453"'
|
|
595
|
+
))();
|
|
578
596
|
var linkedWalletSchema = /* @__PURE__ */ (() => z7.object({
|
|
579
597
|
chain: walletChainSchema,
|
|
580
598
|
network: cosmosNetworkSchema.nullable(),
|
|
581
599
|
address: z7.string(),
|
|
600
|
+
/**
|
|
601
|
+
* EVM only, for a smart-contract wallet: the CAIP-2 network (`eip155:<chain ID>`) whose contract
|
|
602
|
+
* checked the wallet's latest proof. The wallet is the account at this address on that chain.
|
|
603
|
+
* Absent for a key's own signature.
|
|
604
|
+
*/
|
|
605
|
+
provedOn: evmChainIdSchema.optional(),
|
|
582
606
|
verifiedAt: z7.number().int().nonnegative(),
|
|
583
607
|
revision: z7.number().int().positive(),
|
|
584
608
|
/** True when this wallet can sign in: it was first used through wallet sign-in. Linking never enables sign-in. */
|
|
@@ -617,7 +641,18 @@ var walletSignInNetworksSchema = /* @__PURE__ */ (() => z7.array(walletSignInNet
|
|
|
617
641
|
function walletSignInNetwork(wallet) {
|
|
618
642
|
return wallet.chain;
|
|
619
643
|
}
|
|
644
|
+
function evmWalletOn(wallet, chain) {
|
|
645
|
+
return wallet.chain === "eip155" && chain.startsWith("eip155:") && (wallet.provedOn == null || wallet.provedOn === chain);
|
|
646
|
+
}
|
|
620
647
|
function caip10(wallet, network) {
|
|
648
|
+
if (wallet.chain === "eip155" && wallet.provedOn) {
|
|
649
|
+
if (network && network !== wallet.provedOn) {
|
|
650
|
+
throw new Error(
|
|
651
|
+
`A smart-contract wallet is an account on ${wallet.provedOn} only`
|
|
652
|
+
);
|
|
653
|
+
}
|
|
654
|
+
return `${wallet.provedOn}:${wallet.address}`;
|
|
655
|
+
}
|
|
621
656
|
if (wallet.chain === "cosmos") {
|
|
622
657
|
if (!wallet.network || network && network !== wallet.network) {
|
|
623
658
|
throw new Error("A Cosmos wallet belongs to its own network");
|
|
@@ -631,13 +666,6 @@ function caip10(wallet, network) {
|
|
|
631
666
|
}
|
|
632
667
|
return `${selected}:${wallet.address}`;
|
|
633
668
|
}
|
|
634
|
-
function isEvmChainId(value) {
|
|
635
|
-
return /^eip155:[1-9][0-9]{0,15}$/.test(value);
|
|
636
|
-
}
|
|
637
|
-
var evmChainIdSchema = /* @__PURE__ */ (() => z7.custom(
|
|
638
|
-
(value) => typeof value === "string" && isEvmChainId(value),
|
|
639
|
-
'Use an EVM chain ID such as "eip155:8453"'
|
|
640
|
-
))();
|
|
641
669
|
var units = /* @__PURE__ */ (() => z7.string().regex(/^(0|[1-9][0-9]*)$/))();
|
|
642
670
|
var walletBalanceSchema = /* @__PURE__ */ (() => responseShape(
|
|
643
671
|
z7.object({
|
|
@@ -670,12 +698,13 @@ var walletBalanceSampleSchema = /* @__PURE__ */ (() => z7.object({
|
|
|
670
698
|
block: z7.string()
|
|
671
699
|
}))();
|
|
672
700
|
var nftCollectionPattern = /^(eip155:[1-9][0-9]{0,15})\/(erc721|erc1155):(0x[0-9a-fA-F]{40})(?:\/(0|[1-9][0-9]{0,77}))?$/;
|
|
673
|
-
var
|
|
701
|
+
var solanaNftCollectionPattern = /^(solana:[1-9A-HJ-NP-Za-km-z]{32})\/nft:(.*)$/;
|
|
674
702
|
var maxTokenId = 2n ** 256n - 1n;
|
|
675
703
|
function parseNftCollection(value) {
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
704
|
+
const solana = solanaNftCollectionPattern.exec(value);
|
|
705
|
+
if (solana) {
|
|
706
|
+
const [, chain2, mint] = solana;
|
|
707
|
+
return isSolanaNetwork(chain2) && solanaAddressSchema.safeParse(mint).success ? { chain: chain2, standard: "metaplex", mint } : null;
|
|
679
708
|
}
|
|
680
709
|
const match = nftCollectionPattern.exec(value);
|
|
681
710
|
if (!match) {
|
|
@@ -918,7 +947,7 @@ var maxWalletTransactionLookback = 30 * 24 * 60 * 60 * 1e3;
|
|
|
918
947
|
var walletTransactionsSchema = /* @__PURE__ */ (() => responseShape(
|
|
919
948
|
z7.object({
|
|
920
949
|
program: z7.string(),
|
|
921
|
-
/**
|
|
950
|
+
/** The CAIP-2 ID of the cluster read: Solana mainnet or devnet. */
|
|
922
951
|
chain: z7.string(),
|
|
923
952
|
/** The mint whose associated token accounts were read, or null for the wallets themselves. */
|
|
924
953
|
mint: z7.string().nullable(),
|
|
@@ -1812,8 +1841,8 @@ var customContentSchema = /* @__PURE__ */ (() => z12.strictObject({
|
|
|
1812
1841
|
}))();
|
|
1813
1842
|
var walletBalanceSourceSchema = /* @__PURE__ */ (() => z12.strictObject({
|
|
1814
1843
|
chain: z12.string().regex(
|
|
1815
|
-
/^(?:solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp|eip155:[1-9][0-9]{0,15}|cosmos:[-_a-zA-Z0-9]{1,32})$/,
|
|
1816
|
-
'Use "solana", an EVM chain such as "eip155:8453" or a Cosmos network such as "cosmos:cosmoshub-4"'
|
|
1844
|
+
/^(?:solana:(?:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp|EtWTRABZaYq6iMfeYKouRu166VU2xqa1)|eip155:[1-9][0-9]{0,15}|cosmos:[-_a-zA-Z0-9]{1,32})$/,
|
|
1845
|
+
'Use "solana", Solana devnet ("solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1"), an EVM chain such as "eip155:8453" or a Cosmos network such as "cosmos:cosmoshub-4"'
|
|
1817
1846
|
),
|
|
1818
1847
|
token: z12.string().min(1).max(128).nullable()
|
|
1819
1848
|
}))();
|
|
@@ -3261,7 +3290,7 @@ function isAmount(value) {
|
|
|
3261
3290
|
return value.length <= 100 && /^(0|[1-9][0-9]*)$/.test(value);
|
|
3262
3291
|
}
|
|
3263
3292
|
function isBalanceChain(value) {
|
|
3264
|
-
return value === "solana" || value
|
|
3293
|
+
return value === "solana" || isSolanaNetwork(value) || isEvmChainId(value);
|
|
3265
3294
|
}
|
|
3266
3295
|
function isBoundSetting(field) {
|
|
3267
3296
|
return field?.kind === "integer" || field?.kind === "text" && field.picker === "amount";
|
|
@@ -3280,12 +3309,12 @@ function textSettingSchema(field) {
|
|
|
3280
3309
|
case "chain":
|
|
3281
3310
|
return text.refine(
|
|
3282
3311
|
isBalanceChain,
|
|
3283
|
-
'Use "solana" or an EVM chain ID such as "eip155:8453"'
|
|
3312
|
+
'Use "solana", a Solana cluster ID such as "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" (devnet), or an EVM chain ID such as "eip155:8453"'
|
|
3284
3313
|
);
|
|
3285
3314
|
case "nft":
|
|
3286
3315
|
return text.refine(
|
|
3287
3316
|
isNftCollection,
|
|
3288
|
-
'Use an NFT collection such as "eip155:1/erc721:0x\u2026", "eip155:8453/erc1155:0x\u2026/1" for one ERC-1155 token ID, or "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/nft:<collection mint>"'
|
|
3317
|
+
'Use an NFT collection such as "eip155:1/erc721:0x\u2026", "eip155:8453/erc1155:0x\u2026/1" for one ERC-1155 token ID, or "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/nft:<collection mint>" (mainnet; devnet is "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1/nft:<collection mint>")'
|
|
3289
3318
|
);
|
|
3290
3319
|
case "contract-call":
|
|
3291
3320
|
return text.refine(
|
|
@@ -3878,8 +3907,8 @@ var questSettingsInputSchema = /* @__PURE__ */ (() => z32.object({
|
|
|
3878
3907
|
presentation: questPresentationContentSchema.nullable().optional(),
|
|
3879
3908
|
/**
|
|
3880
3909
|
* Anchor IDLs to paste, by `settings.solanaProgram()` setting key, for programs that publish
|
|
3881
|
-
* none on chain; null removes a pasted one.
|
|
3882
|
-
*
|
|
3910
|
+
* none on chain or to use another; null removes a pasted one. A pasted IDL takes precedence
|
|
3911
|
+
* over one the program publishes on chain.
|
|
3883
3912
|
*/
|
|
3884
3913
|
solanaIdls: z32.record(z32.string(), anchorIdlSchema.nullable()).optional()
|
|
3885
3914
|
}).strict())();
|
|
@@ -5130,11 +5159,15 @@ export {
|
|
|
5130
5159
|
cosmosDenomSchema,
|
|
5131
5160
|
cosmosChain,
|
|
5132
5161
|
solanaMainnet,
|
|
5162
|
+
solanaDevnet,
|
|
5163
|
+
isSolanaNetwork,
|
|
5133
5164
|
evmAddressSchema,
|
|
5134
5165
|
cosmosAddressSchema,
|
|
5135
5166
|
walletAddressInputSchema,
|
|
5136
5167
|
walletMessageChallengeSchema,
|
|
5137
5168
|
walletSignatureSchema,
|
|
5169
|
+
isEvmChainId,
|
|
5170
|
+
evmChainIdSchema,
|
|
5138
5171
|
linkedWalletSchema,
|
|
5139
5172
|
walletUnlinkInputSchema,
|
|
5140
5173
|
walletAddressInput,
|
|
@@ -5143,9 +5176,8 @@ export {
|
|
|
5143
5176
|
walletSignInNetworkSchema,
|
|
5144
5177
|
walletSignInNetworksSchema,
|
|
5145
5178
|
walletSignInNetwork,
|
|
5179
|
+
evmWalletOn,
|
|
5146
5180
|
caip10,
|
|
5147
|
-
isEvmChainId,
|
|
5148
|
-
evmChainIdSchema,
|
|
5149
5181
|
walletBalanceSchema,
|
|
5150
5182
|
walletBalanceSampleSchema,
|
|
5151
5183
|
parseNftCollection,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
imageAssetArtifactSchema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-X3FMVRMM.js";
|
|
4
4
|
import {
|
|
5
5
|
authScopeSchema,
|
|
6
6
|
exchangeResultSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DSJ46QLB.js";
|
|
8
8
|
import {
|
|
9
9
|
appIdentityKindSchema,
|
|
10
10
|
cosmosAddressSchema,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
openIdentityKindSchema,
|
|
18
18
|
pageCursorSchema,
|
|
19
19
|
solanaAddressSchema
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-P33ZAJMS.js";
|
|
21
21
|
|
|
22
22
|
// src/credential-secrets.ts
|
|
23
23
|
import * as z from "zod";
|
|
@@ -1241,21 +1241,43 @@ var buildArtifactsSchema = /* @__PURE__ */ (() => z5.discriminatedUnion("format"
|
|
|
1241
1241
|
}
|
|
1242
1242
|
}))();
|
|
1243
1243
|
|
|
1244
|
+
// src/origins.ts
|
|
1245
|
+
var loopbackHosts = [
|
|
1246
|
+
"localhost",
|
|
1247
|
+
"127.0.0.1",
|
|
1248
|
+
"[::1]"
|
|
1249
|
+
];
|
|
1250
|
+
function secureOrLoopbackOrigin(url, options = {}) {
|
|
1251
|
+
return url.protocol === "https:" || url.protocol === "http:" && (loopbackHosts.includes(url.hostname) || (options.localHosts ?? []).includes(url.hostname));
|
|
1252
|
+
}
|
|
1253
|
+
function bareOrigin(url) {
|
|
1254
|
+
return !url.username && !url.password && !url.search && !url.hash && url.pathname === "/";
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1244
1257
|
// src/identity-integration.ts
|
|
1245
1258
|
import * as z6 from "zod";
|
|
1259
|
+
var exactOrigin = (allowed, message) => z6.string().url().superRefine((value, context) => {
|
|
1260
|
+
const url = new URL(value);
|
|
1261
|
+
if (!allowed(url)) {
|
|
1262
|
+
context.addIssue({ code: "custom", message });
|
|
1263
|
+
} else if (url.origin !== value) {
|
|
1264
|
+
context.addIssue({
|
|
1265
|
+
code: "custom",
|
|
1266
|
+
message: `Use the exact origin ${url.origin}, without a path, query or trailing slash.`
|
|
1267
|
+
});
|
|
1268
|
+
}
|
|
1269
|
+
});
|
|
1270
|
+
var httpsOriginSchema = /* @__PURE__ */ (() => exactOrigin(
|
|
1271
|
+
(url) => url.protocol === "https:",
|
|
1272
|
+
"Use an HTTPS origin."
|
|
1273
|
+
))();
|
|
1274
|
+
var appLoginOriginSchema = /* @__PURE__ */ (() => exactOrigin(
|
|
1275
|
+
(url) => secureOrLoopbackOrigin(url),
|
|
1276
|
+
"Use an HTTPS origin, or a loopback origin such as http://localhost:3000 for a Test key."
|
|
1277
|
+
))();
|
|
1246
1278
|
var identityIntegrationInputSchema = /* @__PURE__ */ (() => z6.object({
|
|
1247
1279
|
name: z6.string().trim().min(1).max(80),
|
|
1248
|
-
origin:
|
|
1249
|
-
const url = new URL(value);
|
|
1250
|
-
if (url.protocol !== "https:") {
|
|
1251
|
-
context.addIssue({ code: "custom", message: "Use an HTTPS origin." });
|
|
1252
|
-
} else if (url.origin !== value) {
|
|
1253
|
-
context.addIssue({
|
|
1254
|
-
code: "custom",
|
|
1255
|
-
message: `Use the exact origin ${url.origin}, without a path, query or trailing slash.`
|
|
1256
|
-
});
|
|
1257
|
-
}
|
|
1258
|
-
}),
|
|
1280
|
+
origin: appLoginOriginSchema,
|
|
1259
1281
|
/**
|
|
1260
1282
|
* The identity kind this integration owns in the project and environment, such as
|
|
1261
1283
|
* `app:game`. Each member it signs in gets the exchanged subject as an identity of this
|
|
@@ -1495,6 +1517,11 @@ export {
|
|
|
1495
1517
|
stagedDeploymentContentSchema,
|
|
1496
1518
|
stagedDeploymentKey,
|
|
1497
1519
|
buildArtifactsSchema,
|
|
1520
|
+
loopbackHosts,
|
|
1521
|
+
secureOrLoopbackOrigin,
|
|
1522
|
+
bareOrigin,
|
|
1523
|
+
httpsOriginSchema,
|
|
1524
|
+
appLoginOriginSchema,
|
|
1498
1525
|
identityIntegrationInputSchema,
|
|
1499
1526
|
identityIntegrationSchema,
|
|
1500
1527
|
identityIntegrationSecretSchema,
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
imageFieldsSchema,
|
|
5
5
|
imageInspectionSchema,
|
|
6
6
|
imageSightingsSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-X3FMVRMM.js";
|
|
8
8
|
import {
|
|
9
9
|
photoResultSchema
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-P33ZAJMS.js";
|
|
11
11
|
|
|
12
12
|
// src/image-results.ts
|
|
13
13
|
import * as z from "zod";
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// src/base58.ts
|
|
2
|
+
var alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
|
|
3
|
+
function base58(bytes) {
|
|
4
|
+
let zeros = 0;
|
|
5
|
+
while (zeros < bytes.length && bytes[zeros] === 0) {
|
|
6
|
+
zeros++;
|
|
7
|
+
}
|
|
8
|
+
const digits = [];
|
|
9
|
+
for (let index = zeros; index < bytes.length; index++) {
|
|
10
|
+
let carry = bytes[index];
|
|
11
|
+
for (let digit = 0; digit < digits.length; digit++) {
|
|
12
|
+
carry += digits[digit] * 256;
|
|
13
|
+
digits[digit] = carry % 58;
|
|
14
|
+
carry = Math.floor(carry / 58);
|
|
15
|
+
}
|
|
16
|
+
while (carry > 0) {
|
|
17
|
+
digits.push(carry % 58);
|
|
18
|
+
carry = Math.floor(carry / 58);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
let result = "1".repeat(zeros);
|
|
22
|
+
for (let digit = digits.length - 1; digit >= 0; digit--) {
|
|
23
|
+
result += alphabet[digits[digit]];
|
|
24
|
+
}
|
|
25
|
+
return result;
|
|
26
|
+
}
|
|
27
|
+
function base58Bytes(value, length) {
|
|
28
|
+
if (value.length > Math.ceil(length * Math.log(256) / Math.log(58))) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
let zeros = 0;
|
|
32
|
+
while (zeros < value.length && value[zeros] === "1") {
|
|
33
|
+
zeros++;
|
|
34
|
+
}
|
|
35
|
+
const bytes = [];
|
|
36
|
+
for (let index = zeros; index < value.length; index++) {
|
|
37
|
+
let carry = alphabet.indexOf(value[index]);
|
|
38
|
+
if (carry < 0) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
for (let byte = 0; byte < bytes.length; byte++) {
|
|
42
|
+
carry += bytes[byte] * 58;
|
|
43
|
+
bytes[byte] = carry & 255;
|
|
44
|
+
carry >>= 8;
|
|
45
|
+
}
|
|
46
|
+
while (carry > 0) {
|
|
47
|
+
bytes.push(carry & 255);
|
|
48
|
+
carry >>= 8;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
const decoded = new Uint8Array(zeros + bytes.length);
|
|
52
|
+
decoded.set(bytes.reverse(), zeros);
|
|
53
|
+
return decoded.length === length && base58(decoded) === value ? decoded : null;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export {
|
|
57
|
+
base58,
|
|
58
|
+
base58Bytes
|
|
59
|
+
};
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
createHttpExchange,
|
|
10
10
|
untilAborted,
|
|
11
11
|
withQuery
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Q6KTTVOI.js";
|
|
13
13
|
import {
|
|
14
14
|
PARTICIPANT_TIMEOUT,
|
|
15
15
|
lifetime,
|
|
16
16
|
retrying,
|
|
17
17
|
validTimeout
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5SBA6X5X.js";
|
|
19
19
|
import {
|
|
20
20
|
authProvidersSchema,
|
|
21
21
|
collectionPassSchema,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
questOutcomeSchema,
|
|
35
35
|
rewardDeliveriesSchema,
|
|
36
36
|
rewardDeliveryQuerySchema
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-NRMQVK2W.js";
|
|
38
38
|
import {
|
|
39
39
|
exchangeResultSchema,
|
|
40
40
|
exchangeSchema,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
participantSessionSchema,
|
|
45
45
|
questExperienceSchema,
|
|
46
46
|
sessionMember
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-DSJ46QLB.js";
|
|
48
48
|
import {
|
|
49
49
|
engagementBoundaryPageSchema,
|
|
50
50
|
engagementPageQuerySchema,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
referralDefinitionSchema,
|
|
56
56
|
referralHistorySchema,
|
|
57
57
|
referralSummarySchema
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-5DZNMLDM.js";
|
|
59
59
|
import {
|
|
60
60
|
AVATAR_UPLOAD_LIMIT,
|
|
61
61
|
accountConnectionSchema,
|
|
@@ -111,7 +111,7 @@ import {
|
|
|
111
111
|
walletMessageChallengeSchema,
|
|
112
112
|
walletSignatureSchema,
|
|
113
113
|
walletUnlinkInputSchema
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-P33ZAJMS.js";
|
|
115
115
|
import {
|
|
116
116
|
RelayError,
|
|
117
117
|
RelayErrorCode,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { G as QuizEvidence, a as Attempt, s as MemberProgress, ak as referralAcceptSchema, q as LeaderboardQuery, b as AttemptStatus, V as AttemptCodeSource, f as CampaignEnrollmentInput, h as CampaignWithdrawalInput, J as SignInProvider, c as AuthProvider, I as SignInAccountStatus, x as PointHistoryQuery, v as PointEntryKind, n as LeaderboardHistoryQuery, al as submitSchema, am as engagementPageQuerySchema, an as contentPerformanceQuerySchema } from './accounts-
|
|
2
|
-
import { M as MissingPrerequisite, V as ValueEvidence } from './submission-input-
|
|
1
|
+
import { G as QuizEvidence, a as Attempt, s as MemberProgress, ak as referralAcceptSchema, q as LeaderboardQuery, b as AttemptStatus, V as AttemptCodeSource, f as CampaignEnrollmentInput, h as CampaignWithdrawalInput, J as SignInProvider, c as AuthProvider, I as SignInAccountStatus, x as PointHistoryQuery, v as PointEntryKind, n as LeaderboardHistoryQuery, al as submitSchema, am as engagementPageQuerySchema, an as contentPerformanceQuerySchema } from './accounts-C2O8mpB8.js';
|
|
2
|
+
import { M as MissingPrerequisite, V as ValueEvidence } from './submission-input-C152xIdn.js';
|
|
3
3
|
import { R as RequestError, a as RequestErrorDetails, b as RequestErrorKind } from './request-error-D_dUPLwo.js';
|
|
4
|
-
import { q as ResponseSchema, i as PageQuery, k as QuestEnrollmentInput, Q as QuestClaimInput, n as QuestOutcomeQuery, M as MemberConsent, a as ConsentInput, e as CreatorAccountProvider, r as RewardDeliveryQuery, s as RewardDeliveryPage, t as contentQualificationQuerySchema } from './reward-deliveries-
|
|
5
|
-
import { b as QuestView, q as questExperienceSchema } from './catalog-
|
|
6
|
-
import { T as TrackerSkipCode, S as SkipEnrollment } from './tracker-data-
|
|
4
|
+
import { q as ResponseSchema, i as PageQuery, k as QuestEnrollmentInput, Q as QuestClaimInput, n as QuestOutcomeQuery, M as MemberConsent, a as ConsentInput, e as CreatorAccountProvider, r as RewardDeliveryQuery, s as RewardDeliveryPage, t as contentQualificationQuerySchema } from './reward-deliveries-BOWpMytr.js';
|
|
5
|
+
import { b as QuestView, q as questExperienceSchema } from './catalog-CbiftcxQ.js';
|
|
6
|
+
import { T as TrackerSkipCode, S as SkipEnrollment } from './tracker-data-BqY-9Vu-.js';
|
|
7
7
|
import { b as ParticipantSession, e as exchangeSchema, R as RelayEvent, P as ParticipantActivity, M as MemberSummary } from './participant-activity-DXRq4s6K.js';
|
|
8
8
|
import * as z from 'zod';
|
|
9
9
|
import { c as createRelayAction, O as OptionalActionId } from './action-9Xl0StBg.js';
|
|
10
|
-
import { A as AuthProviders } from './sign-in-providers-
|
|
11
|
-
import {
|
|
10
|
+
import { A as AuthProviders } from './sign-in-providers-BRYVOSlG.js';
|
|
11
|
+
import { ah as profileUpdateSchema, d as ProfileCompletionQuery, ai as walletAddressInputSchema, aj as walletSignatureSchema, L as LinkedWallet, m as WalletSigner } from './wallet-Btng186v.js';
|
|
12
12
|
|
|
13
13
|
/** What happened, as in every Domino client error (see `RequestError`). */
|
|
14
14
|
type RelayErrorKind = RequestErrorKind;
|
|
@@ -3589,6 +3589,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
3589
3589
|
verifiedAt: number;
|
|
3590
3590
|
revision: number;
|
|
3591
3591
|
signIn: boolean;
|
|
3592
|
+
provedOn?: `eip155:${number}` | undefined;
|
|
3592
3593
|
}[]>;
|
|
3593
3594
|
challenge: (value: z.input<typeof walletAddressInputSchema>, requestOptions?: RelayRequestOptions) => Promise<{
|
|
3594
3595
|
id: string;
|
|
@@ -3606,6 +3607,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
3606
3607
|
verifiedAt: number;
|
|
3607
3608
|
revision: number;
|
|
3608
3609
|
signIn: boolean;
|
|
3610
|
+
provedOn?: `eip155:${number}` | undefined;
|
|
3609
3611
|
}>;
|
|
3610
3612
|
/** The address stays bound to this member: another member still cannot link it. */
|
|
3611
3613
|
unlink: (wallet: Pick<LinkedWallet, "chain" | "address">, requestOptions?: RelayRequestOptions) => Promise<{
|
|
@@ -3623,6 +3625,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
3623
3625
|
verifiedAt: number;
|
|
3624
3626
|
revision: number;
|
|
3625
3627
|
signIn: boolean;
|
|
3628
|
+
provedOn?: `eip155:${number}` | undefined;
|
|
3626
3629
|
}>;
|
|
3627
3630
|
};
|
|
3628
3631
|
auth: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
-
import { o as WalletBalanceQuery } from './wallet-
|
|
3
|
-
import { R as ResourceHandle } from './tracker-data-
|
|
4
|
-
import { A as AnalyticsMetricId, a as analyticsCatalog } from './limits-
|
|
2
|
+
import { o as WalletBalanceQuery } from './wallet-Btng186v.js';
|
|
3
|
+
import { R as ResourceHandle } from './tracker-data-BqY-9Vu-.js';
|
|
4
|
+
import { A as AnalyticsMetricId, a as analyticsCatalog } from './limits-C4RzrOV4.js';
|
|
5
5
|
|
|
6
6
|
declare const settingFieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7
7
|
kind: z.ZodLiteral<"point-ledger">;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
-
import { S as SolanaIdlSource } from './wallet-
|
|
3
|
-
import { W as IntegrationModuleProvider, X as RewardType } from './accounts-
|
|
4
|
-
import { O as OpenIdentityKind, i as TrackerDataSchema } from './tracker-data-
|
|
2
|
+
import { S as SolanaIdlSource } from './wallet-Btng186v.js';
|
|
3
|
+
import { W as IntegrationModuleProvider, X as RewardType } from './accounts-C2O8mpB8.js';
|
|
4
|
+
import { O as OpenIdentityKind, i as TrackerDataSchema } from './tracker-data-BqY-9Vu-.js';
|
|
5
5
|
|
|
6
6
|
/** Shared with participant activity. Types remain open to future event kinds. */
|
|
7
7
|
declare const activityTypes: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OpenIdentityKind } from './tracker-data-
|
|
1
|
+
import { O as OpenIdentityKind } from './tracker-data-BqY-9Vu-.js';
|
|
2
2
|
import * as z from 'zod';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1008,6 +1008,14 @@ declare const memberImportListQuerySchema: z.ZodObject<{
|
|
|
1008
1008
|
}, z.core.$strict>;
|
|
1009
1009
|
type MemberImportListQuery = z.input<typeof memberImportListQuerySchema>;
|
|
1010
1010
|
|
|
1011
|
+
/** An exact HTTPS origin, such as a hosted app's preview address. */
|
|
1012
|
+
declare const httpsOriginSchema: z.ZodString;
|
|
1013
|
+
/**
|
|
1014
|
+
* An app login key's origin: HTTPS, or plain HTTP on a loopback host (`http://localhost:3000`,
|
|
1015
|
+
* `http://127.0.0.1:3000`, `http://[::1]:3000`) for local development. Relay accepts a loopback
|
|
1016
|
+
* origin on a Test key only (auth/integrations.ts `createIntegrationIn`).
|
|
1017
|
+
*/
|
|
1018
|
+
declare const appLoginOriginSchema: z.ZodString;
|
|
1011
1019
|
declare const identityIntegrationInputSchema: z.ZodObject<{
|
|
1012
1020
|
name: z.ZodString;
|
|
1013
1021
|
origin: z.ZodString;
|
|
@@ -1303,4 +1311,4 @@ declare const accountVouchedBySchema: z.ZodObject<{
|
|
|
1303
1311
|
/** The app login whose server vouched for an account when it signed the member in. */
|
|
1304
1312
|
type AccountVouchedBy = z.infer<typeof accountVouchedBySchema>;
|
|
1305
1313
|
|
|
1306
|
-
export {
|
|
1314
|
+
export { memberImportActionSchema as $, type AccountVouchedBy as A, type MemberImportRevertInput as B, type IdentityReference as C, type KnownMemberImportRefusalCode as D, type KnownMemberImportState as E, type MemberImport as F, type MemberImportAccount as G, type MemberImportCommandInput as H, type IdentityIntegrationKey as I, type MemberImportConsent as J, type KnownIdentityIntegrationEnvironment as K, type MemberImportFullRow as L, type MemberImportVouchedAccount as M, type MemberImportFullRowsInput as N, type MemberImportIdentity as O, type ParticipantExchangeAccountResult as P, type MemberImportReferral as Q, type MemberImportRefusal as R, type MemberImportRevert as S, type MemberImportRevertOutcome as T, type MemberImportRow as U, type MemberImportRowInput as V, type MemberImportRowResult as W, type MemberImportRowsInput as X, type MemberImportSummary as Y, identityReferenceSchema as Z, memberImportAccountSchema as _, type ParticipantExchangeResult as a, memberImportCommandSchema as a0, memberImportConsentSchema as a1, memberImportCreateSchema as a2, memberImportFullRowSchema as a3, memberImportFullRowsInputSchema as a4, memberImportIdentitySchema as a5, memberImportListQuerySchema as a6, memberImportPageSchema as a7, memberImportReferralSchema as a8, memberImportRefusalSchema as a9, memberImportRevertInputSchema as aa, memberImportRevertOutcomeSchema as ab, memberImportRevertSchema as ac, memberImportRowPageSchema as ad, memberImportRowQuerySchema as ae, memberImportRowResultSchema as af, memberImportRowSchema as ag, memberImportRowsInputSchema as ah, memberImportSchema as ai, memberImportSummarySchema as aj, memberImportVouchedAccountSchema as ak, type IdentityIntegration as b, type IdentityIntegrationAccountVouchingInput as c, type IdentityIntegrationAppSecret as d, type IdentityKindClaim as e, type ParticipantExchangeInput as f, accountVouchedBySchema as g, appLoginOriginSchema as h, httpsOriginSchema as i, identityIntegrationAccountVouchingInputSchema as j, identityIntegrationAppSecretSchema as k, identityIntegrationInputSchema as l, identityIntegrationKeySchema as m, identityIntegrationSchema as n, identityIntegrationSecretSchema as o, identityKindClaimSchema as p, participantExchangeAccountResultSchema as q, participantExchangeAccountsSchema as r, participantExchangeResultSchema as s, participantExchangeSchema as t, type MemberImportCreateInput as u, MemberImportRefusalCode as v, MemberImportState as w, type MemberImportListQuery as x, type MemberImportRowQuery as y, type MemberImportFullRowInput as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export { B as Badge, a as BadgeCatalog, M as ManagedBadge, b as MemberBadge, c as MemberBadges, O as Offer, d as OfferDefinition, e as OfferPrice, R as RedeemOfferInput, f as Redemption } from './offers-
|
|
1
|
+
export { B as Badge, a as BadgeCatalog, M as ManagedBadge, b as MemberBadge, c as MemberBadges, O as Offer, d as OfferDefinition, e as OfferPrice, R as RedeemOfferInput, f as Redemption } from './offers-BpYenB9i.js';
|
|
2
2
|
export { R as RelayAction, c as createRelayAction } from './action-9Xl0StBg.js';
|
|
3
|
-
export { A as AuthStartInput, C as ClaimSubmission, E as EmailVerification, K as KnownRelayErrorCode, P as PhotoSubmission, a as ProgressObservation, b as ProgressObserver, Q as QuestActionResult, c as QuestController, d as QuestUpdatedError, e as QuizSubmission, R as RelayClient, f as RelayClientOptions, g as RelayError, h as RelayErrorCode, i as RelayErrorDetails, j as RelayErrorKind, k as RelayRequestOptions, l as RelayResponseOptions, S as SubmissionCallOptions, m as SubmissionDraft, n as SubmissionStatus, o as SubmissionStore, V as ValueSubmission, p as createRelayClient, q as isRelayError } from './client-
|
|
3
|
+
export { A as AuthStartInput, C as ClaimSubmission, E as EmailVerification, K as KnownRelayErrorCode, P as PhotoSubmission, a as ProgressObservation, b as ProgressObserver, Q as QuestActionResult, c as QuestController, d as QuestUpdatedError, e as QuizSubmission, R as RelayClient, f as RelayClientOptions, g as RelayError, h as RelayErrorCode, i as RelayErrorDetails, j as RelayErrorKind, k as RelayRequestOptions, l as RelayResponseOptions, S as SubmissionCallOptions, m as SubmissionDraft, n as SubmissionStatus, o as SubmissionStore, V as ValueSubmission, p as createRelayClient, q as isRelayError } from './client-CZPewB9h.js';
|
|
4
4
|
export { R as RequestError, a as RequestErrorDetails, b as RequestErrorKind, c as RequestRecovery, i as isRequestError } from './request-error-D_dUPLwo.js';
|
|
5
|
-
export { A as AccountConnection, a as Attempt, b as AttemptStatus, c as AuthProvider, d as AvailabilityWindow, C as CampaignDefinition, e as CampaignEnrollment, f as CampaignEnrollmentInput, g as CampaignView, h as CampaignWithdrawalInput, E as Entitlement, i as EvaluatorProgress, K as KnownAttemptStatus, j as KnownPointEntryKind, k as KnownSignInAccountStatus, l as KnownSignInProvider, L as LeaderboardDefinition, m as LeaderboardHistoryPage, n as LeaderboardHistoryQuery, o as LeaderboardPage, p as LeaderboardPlacement, q as LeaderboardQuery, M as MemberCampaignEnrollmentInput, r as MemberCampaignWithdrawalInput, s as MemberProgress, P as PointBalance, t as PointBalances, u as PointEntry, v as PointEntryKind, w as PointHistoryPage, x as PointHistoryQuery, y as PointLedgerReference, z as ProjectGroup, B as ProjectGroupReference, Q as QuestBudgetView, D as QuestPresentation, F as QuestProfile, G as QuizEvidence, R as ReferralDefinition, H as Reward, S as SignInAccount, I as SignInAccountStatus, J as SignInProvider, N as SignInProviderOption, O as SubmissionEvidence, T as SubmitInput, U as TieredRewardReference } from './accounts-
|
|
5
|
+
export { A as AccountConnection, a as Attempt, b as AttemptStatus, c as AuthProvider, d as AvailabilityWindow, C as CampaignDefinition, e as CampaignEnrollment, f as CampaignEnrollmentInput, g as CampaignView, h as CampaignWithdrawalInput, E as Entitlement, i as EvaluatorProgress, K as KnownAttemptStatus, j as KnownPointEntryKind, k as KnownSignInAccountStatus, l as KnownSignInProvider, L as LeaderboardDefinition, m as LeaderboardHistoryPage, n as LeaderboardHistoryQuery, o as LeaderboardPage, p as LeaderboardPlacement, q as LeaderboardQuery, M as MemberCampaignEnrollmentInput, r as MemberCampaignWithdrawalInput, s as MemberProgress, P as PointBalance, t as PointBalances, u as PointEntry, v as PointEntryKind, w as PointHistoryPage, x as PointHistoryQuery, y as PointLedgerReference, z as ProjectGroup, B as ProjectGroupReference, Q as QuestBudgetView, D as QuestPresentation, F as QuestProfile, G as QuizEvidence, R as ReferralDefinition, H as Reward, S as SignInAccount, I as SignInAccountStatus, J as SignInProvider, N as SignInProviderOption, O as SubmissionEvidence, T as SubmitInput, U as TieredRewardReference } from './accounts-C2O8mpB8.js';
|
|
6
6
|
export { f as formatUnits, p as parseUnits } from './units-CwgsPB_r.js';
|
|
7
|
-
export { C as ConsentChannel, a as ConsentInput, b as ConsentSource, c as ConsentState, d as CreatorAccount, e as CreatorAccountProvider, f as CreatorAccounts, K as KnownConsentChannel, g as KnownConsentSource, h as KnownConsentState, M as MemberConsent, P as Page, i as PageQuery, Q as QuestClaimInput, j as QuestEnrollment, k as QuestEnrollmentInput, l as QuestOutcome, m as QuestOutcomePage, n as QuestOutcomeQuery, o as QuestOutcomeState, R as ResponseResult, U as UnsupportedResponse, p as paginate } from './reward-deliveries-
|
|
8
|
-
export { M as MissingPrerequisite, P as Prerequisite, T as TelegramAccountConnection, a as TelegramSignInMethods, b as TextEvidence, c as TextOptions, U as UrlEvidence, d as UrlOptions, V as ValueEvidence } from './submission-input-
|
|
7
|
+
export { C as ConsentChannel, a as ConsentInput, b as ConsentSource, c as ConsentState, d as CreatorAccount, e as CreatorAccountProvider, f as CreatorAccounts, K as KnownConsentChannel, g as KnownConsentSource, h as KnownConsentState, M as MemberConsent, P as Page, i as PageQuery, Q as QuestClaimInput, j as QuestEnrollment, k as QuestEnrollmentInput, l as QuestOutcome, m as QuestOutcomePage, n as QuestOutcomeQuery, o as QuestOutcomeState, R as ResponseResult, U as UnsupportedResponse, p as paginate } from './reward-deliveries-BOWpMytr.js';
|
|
8
|
+
export { M as MissingPrerequisite, P as Prerequisite, T as TelegramAccountConnection, a as TelegramSignInMethods, b as TextEvidence, c as TextOptions, U as UrlEvidence, d as UrlOptions, V as ValueEvidence } from './submission-input-C152xIdn.js';
|
|
9
9
|
export { E as ExchangeInput, M as MemberSummary, P as ParticipantActivity, a as ParticipantPrincipal, b as ParticipantSession, R as RelayEvent, S as Session, s as sessionMember } from './participant-activity-DXRq4s6K.js';
|
|
10
|
-
export { Q as QuestInteraction, a as QuestRewardView, b as QuestView } from './catalog-
|
|
11
|
-
export { A as AutomaticCatchUpPreview, a as AutomaticEvent, b as AutomaticOutcome, C as CollectionPass, c as CounterAchievement, d as CounterPolicy, e as CounterProgress } from './automatic-outcomes-
|
|
12
|
-
export { K as KnownSkipEnrollment, a as KnownTrackerSkipCode, S as SkipEnrollment, T as TrackerSkipCode } from './tracker-data-
|
|
13
|
-
export { A as AvatarProvider, C as CosmosChain, a as CosmosNetwork, L as LinkedWallet, O as OwnProfile, P as ProfileAvatar, b as ProfileCompletion, c as ProfileCompletionPage, d as ProfileCompletionQuery, e as ProfileReferral, f as ProfileSummary, g as ProfileUpdate, h as ProfileVisibility, W as WalletAddressInput, i as WalletChain, j as WalletMessageChallenge, k as WalletSignInNetwork, l as WalletSignature, m as WalletSigner, n as WalletUnlinkInput } from './wallet-
|
|
10
|
+
export { Q as QuestInteraction, a as QuestRewardView, b as QuestView } from './catalog-CbiftcxQ.js';
|
|
11
|
+
export { A as AutomaticCatchUpPreview, a as AutomaticEvent, b as AutomaticOutcome, C as CollectionPass, c as CounterAchievement, d as CounterPolicy, e as CounterProgress } from './automatic-outcomes-BEnPn4Uh.js';
|
|
12
|
+
export { K as KnownSkipEnrollment, a as KnownTrackerSkipCode, S as SkipEnrollment, T as TrackerSkipCode } from './tracker-data-BqY-9Vu-.js';
|
|
13
|
+
export { A as AvatarProvider, C as CosmosChain, a as CosmosNetwork, L as LinkedWallet, O as OwnProfile, P as ProfileAvatar, b as ProfileCompletion, c as ProfileCompletionPage, d as ProfileCompletionQuery, e as ProfileReferral, f as ProfileSummary, g as ProfileUpdate, h as ProfileVisibility, W as WalletAddressInput, i as WalletChain, j as WalletMessageChallenge, k as WalletSignInNetwork, l as WalletSignature, m as WalletSigner, n as WalletUnlinkInput } from './wallet-Btng186v.js';
|
|
14
14
|
export { Q as QuizContent, S as StreakProgress } from './streaks-0YuipsUQ.js';
|
|
15
15
|
export { P as ParticipantDelivery } from './participant-rewards-BcWkBRn_.js';
|
|
16
16
|
import 'zod';
|
|
17
|
-
import './sign-in-providers-
|
|
17
|
+
import './sign-in-providers-BRYVOSlG.js';
|
package/dist/index.js
CHANGED
|
@@ -5,25 +5,25 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
QuestUpdatedError,
|
|
7
7
|
createRelayClient
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-Z2Z5DBNW.js";
|
|
9
9
|
import {
|
|
10
10
|
createRelayAction
|
|
11
11
|
} from "./chunk-BQXRCJ3N.js";
|
|
12
12
|
import "./chunk-2HHZV7U3.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-Q6KTTVOI.js";
|
|
14
|
+
import "./chunk-5SBA6X5X.js";
|
|
15
15
|
import {
|
|
16
16
|
QuestOutcomeState
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NRMQVK2W.js";
|
|
18
18
|
import {
|
|
19
19
|
sessionMember
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-DSJ46QLB.js";
|
|
21
|
+
import "./chunk-5DZNMLDM.js";
|
|
22
22
|
import {
|
|
23
23
|
AttemptStatus,
|
|
24
24
|
PointEntryKind,
|
|
25
25
|
paginate
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-P33ZAJMS.js";
|
|
27
27
|
import {
|
|
28
28
|
RelayError,
|
|
29
29
|
RelayErrorCode,
|