@domino-sdk/relay 1.67.0 → 1.68.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +43 -0
- package/dist/{accounts-C2O8mpB8.d.ts → accounts-DnpKoJCo.d.ts} +210 -3
- package/dist/{attempt-captures-ClHAoo_n.d.ts → attempt-captures-DMNFMYFb.d.ts} +9 -1
- package/dist/authoring.d.ts +349 -38
- package/dist/authoring.js +125 -18
- package/dist/{automatic-outcomes-BEnPn4Uh.d.ts → automatic-outcomes-CQ3vpiQl.d.ts} +2 -2
- package/dist/avatar.d.ts +1 -1
- package/dist/browser.d.ts +10 -9
- package/dist/browser.js +12 -13
- package/dist/{catalog-CbiftcxQ.d.ts → catalog-BLGie8Lh.d.ts} +60 -2
- package/dist/chunk-4JSPMFO2.js +427 -0
- package/dist/{chunk-5DZNMLDM.js → chunk-55WJVFWC.js} +2 -2
- package/dist/{chunk-Q5QVAF7R.js → chunk-5AKD4ZF3.js} +37 -25
- package/dist/{chunk-DSJ46QLB.js → chunk-6UBFSMCM.js} +1 -1
- package/dist/{chunk-P33ZAJMS.js → chunk-6YTSRWRB.js} +1199 -677
- package/dist/{chunk-RDUSFUXX.js → chunk-75KF633N.js} +9 -1
- package/dist/{chunk-Q6KTTVOI.js → chunk-7YSVZA7A.js} +1 -1
- package/dist/{chunk-BMJHFWVT.js → chunk-CZ7NQ7W7.js} +10 -43
- package/dist/{chunk-X3FMVRMM.js → chunk-DDJN2T5A.js} +1 -1
- package/dist/{chunk-KUNPCDN6.js → chunk-DNPDR4Z7.js} +16 -9
- package/dist/{chunk-RWR2LOPA.js → chunk-EXZVWQOQ.js} +2 -2
- package/dist/{chunk-MVQQDPQX.js → chunk-HXTKI34N.js} +14 -2
- package/dist/{chunk-FGXLXENM.js → chunk-IW46TW3A.js} +21 -1
- package/dist/{chunk-5SBA6X5X.js → chunk-KKHENO57.js} +2 -2
- package/dist/{chunk-U66GUVSG.js → chunk-LZXDYSUH.js} +2 -0
- package/dist/{chunk-QYC3CZVD.js → chunk-MEUAJIVO.js} +2 -2
- package/dist/{chunk-BQXRCJ3N.js → chunk-P4TPW4SY.js} +1 -1
- package/dist/{chunk-NRMQVK2W.js → chunk-R3MNZKNJ.js} +1 -1
- package/dist/{chunk-Z2Z5DBNW.js → chunk-SD74HD75.js} +45 -9
- package/dist/{chunk-JK3XV2CR.js → chunk-TYZFVL73.js} +50 -8
- package/dist/chunk-VAGGGB6B.js +87 -0
- package/dist/{chunk-2HHZV7U3.js → chunk-VRZZB7CQ.js} +1 -1
- package/dist/{client-CZPewB9h.d.ts → client-BMif22WQ.d.ts} +133 -7
- package/dist/{dashboards-jGPM3AxF.d.ts → dashboards-DMk-vL1q.d.ts} +4 -4
- package/dist/{deployments-BVFd7ddA.d.ts → deployments-BCr418BX.d.ts} +582 -173
- package/dist/{identity-integration-W1Vo3Ql9.d.ts → identity-integration-r76xaAax.d.ts} +1 -1
- package/dist/index.d.ts +10 -10
- package/dist/index.js +10 -10
- package/dist/internal.d.ts +137 -14
- package/dist/internal.js +240 -19
- package/dist/{limits-C4RzrOV4.d.ts → limits-ByVRQePO.d.ts} +6 -1
- package/dist/{offers-BpYenB9i.d.ts → offers-xcPbYaEv.d.ts} +2 -2
- package/dist/portal-proxy.d.ts +2 -2
- package/dist/portal-proxy.js +11 -11
- package/dist/react/index.d.ts +37 -15
- package/dist/react/index.js +12 -13
- package/dist/{reward-deliveries-BOWpMytr.d.ts → reward-deliveries-0VvT6LMj.d.ts} +1 -1
- package/dist/runtime/authoring.js +1 -1
- package/dist/runtime/chunks/2UDZ6TPL.js +1 -0
- package/dist/runtime/manifest.json +3 -3
- package/dist/runtime/schema.js +1 -1
- package/dist/schema.d.ts +398 -104
- package/dist/schema.js +62 -8
- package/dist/server/index.d.ts +12 -12
- package/dist/server/index.js +2046 -886
- package/dist/{sign-in-providers-BRYVOSlG.d.ts → sign-in-providers-C5_753DZ.d.ts} +2 -2
- package/dist/solana.d.ts +171 -0
- package/dist/solana.js +364 -0
- package/dist/{submission-input-C152xIdn.d.ts → submission-input-CaL8drIh.d.ts} +2 -2
- package/dist/{telegram-browser-657QqiQl.d.ts → telegram-browser-DLtHPRBI.d.ts} +6 -108
- package/dist/telegram.d.ts +8 -8
- package/dist/telegram.js +2 -2
- package/dist/testing.d.ts +85 -13
- package/dist/testing.js +101 -11
- package/dist/{tracker-data-BqY-9Vu-.d.ts → tracker-data-CAK942sx.d.ts} +298 -1
- package/dist/{transport-CthYgZXK.d.ts → transport-CkidqTOk.d.ts} +5250 -1226
- package/dist/{wallet-Btng186v.d.ts → wallet-DQtJelQQ.d.ts} +367 -13
- package/dist/wallet-browser-dpmr22Xv.d.ts +106 -0
- package/package.json +16 -1
- package/dist/chunk-UWUS4OOV.js +0 -59
- package/dist/chunk-UYVJZR33.js +0 -34
- package/dist/runtime/chunks/C2MGLQXC.js +0 -1
package/dist/authoring.js
CHANGED
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
sourceDataSchema,
|
|
7
7
|
sourceRoles,
|
|
8
8
|
validateQuestShape
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HXTKI34N.js";
|
|
10
10
|
import {
|
|
11
11
|
defineDashboard,
|
|
12
12
|
tiktokVideoBodySchema,
|
|
13
13
|
tiktokVideoMetrics,
|
|
14
14
|
youtubeShortBodySchema,
|
|
15
15
|
youtubeShortMetrics
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MEUAJIVO.js";
|
|
17
17
|
import {
|
|
18
18
|
CapabilityError,
|
|
19
19
|
capabilityErrorCodes
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
engagementScoreSchema,
|
|
25
25
|
offerAuthoringSchema,
|
|
26
26
|
referralAuthoringSchema
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-55WJVFWC.js";
|
|
28
28
|
import {
|
|
29
29
|
announcementSchema,
|
|
30
30
|
authorBudgetSchema,
|
|
@@ -83,6 +83,7 @@ import {
|
|
|
83
83
|
pointLedgerDeclarationSchema,
|
|
84
84
|
pointsRewardSchema,
|
|
85
85
|
questDescriptionSchema,
|
|
86
|
+
questStationsSchema,
|
|
86
87
|
quizAnswersSchema,
|
|
87
88
|
quizContentSchema,
|
|
88
89
|
rejectCodeIssue,
|
|
@@ -117,14 +118,22 @@ import {
|
|
|
117
118
|
urlOptionsSchema,
|
|
118
119
|
walletBalanceSampleSchema,
|
|
119
120
|
walletBalancesNamespace,
|
|
121
|
+
walletNftSampleSchema,
|
|
122
|
+
walletNftsNamespace,
|
|
123
|
+
walletProgramActivityNamespace,
|
|
124
|
+
walletProgramActivitySchema,
|
|
125
|
+
walletProgramActivitySourceSchema,
|
|
126
|
+
walletStakeNamespace,
|
|
127
|
+
walletStakeSampleSchema,
|
|
128
|
+
walletStakeSourceSchema,
|
|
120
129
|
whereSchemaIssue,
|
|
121
130
|
whereSettings,
|
|
122
131
|
xSearchSourceSchema,
|
|
123
132
|
youtubeShortsNamespace
|
|
124
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-6YTSRWRB.js";
|
|
125
134
|
import {
|
|
126
135
|
parseDefinition
|
|
127
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-IW46TW3A.js";
|
|
128
137
|
|
|
129
138
|
// src/builders.ts
|
|
130
139
|
import * as z from "zod";
|
|
@@ -506,6 +515,39 @@ function walletBalanceSource(query) {
|
|
|
506
515
|
'wallet.balances() reads "solana", an EVM chain such as "eip155:8453" or a Cosmos network such as "cosmos:cosmoshub-4"'
|
|
507
516
|
);
|
|
508
517
|
}
|
|
518
|
+
function walletProgramActivitySource(query) {
|
|
519
|
+
const {
|
|
520
|
+
chain = "solana",
|
|
521
|
+
program,
|
|
522
|
+
instruction: instruction2,
|
|
523
|
+
mint,
|
|
524
|
+
minAmount,
|
|
525
|
+
signer = "wallet"
|
|
526
|
+
} = query;
|
|
527
|
+
if (chain !== "solana" && !(typeof chain === "string" && isSolanaNetwork(chain))) {
|
|
528
|
+
throw new Error(
|
|
529
|
+
'wallet.programActivity() reads "solana" (mainnet) or Solana devnet, solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1'
|
|
530
|
+
);
|
|
531
|
+
}
|
|
532
|
+
if (signer !== "wallet" && signer !== "any") {
|
|
533
|
+
throw new Error('wallet.programActivity() takes signer "wallet" or "any"');
|
|
534
|
+
}
|
|
535
|
+
const parsed = walletProgramActivitySourceSchema.safeParse({
|
|
536
|
+
chain: chain === "solana" ? solanaMainnet : chain,
|
|
537
|
+
program,
|
|
538
|
+
instruction: instruction2 ?? null,
|
|
539
|
+
mint: mint ?? null,
|
|
540
|
+
minAmount: minAmount ?? null,
|
|
541
|
+
anySigner: signer === "any"
|
|
542
|
+
});
|
|
543
|
+
if (!parsed.success) {
|
|
544
|
+
const issue = parsed.error.issues[0];
|
|
545
|
+
throw new Error(
|
|
546
|
+
`wallet.programActivity()${issue.path.length ? ` ${issue.path.join(".")}` : ""}: ${issue.message}`
|
|
547
|
+
);
|
|
548
|
+
}
|
|
549
|
+
return parsed.data;
|
|
550
|
+
}
|
|
509
551
|
var wallet = {
|
|
510
552
|
balances(query) {
|
|
511
553
|
const balance = walletBalanceSource(query);
|
|
@@ -514,6 +556,51 @@ var wallet = {
|
|
|
514
556
|
data: walletBalanceSampleSchema
|
|
515
557
|
});
|
|
516
558
|
return customSourceSchema.parse({ ...source, balance });
|
|
559
|
+
},
|
|
560
|
+
programActivity(query) {
|
|
561
|
+
const activity = walletProgramActivitySource(query);
|
|
562
|
+
const source = customSource(walletProgramActivityNamespace, {
|
|
563
|
+
identities: ["wallet"],
|
|
564
|
+
data: walletProgramActivitySchema
|
|
565
|
+
});
|
|
566
|
+
return customSourceSchema.parse({
|
|
567
|
+
...source,
|
|
568
|
+
activity
|
|
569
|
+
});
|
|
570
|
+
},
|
|
571
|
+
nfts(query) {
|
|
572
|
+
const { collection } = query;
|
|
573
|
+
if (typeof collection !== "string" || !isNftCollection(collection)) {
|
|
574
|
+
throw new Error(
|
|
575
|
+
'wallet.nfts() takes an NFT collection such as "eip155:1/erc721:0x\u2026", "eip155:8453/erc1155:0x\u2026/1" or "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/nft:<collection mint>"'
|
|
576
|
+
);
|
|
577
|
+
}
|
|
578
|
+
const source = customSource(walletNftsNamespace, {
|
|
579
|
+
identities: ["wallet"],
|
|
580
|
+
data: walletNftSampleSchema
|
|
581
|
+
});
|
|
582
|
+
const nfts = { collection };
|
|
583
|
+
return customSourceSchema.parse({ ...source, nfts });
|
|
584
|
+
},
|
|
585
|
+
stake(query = {}) {
|
|
586
|
+
const { chain = "solana", voteAccount } = query;
|
|
587
|
+
const stake = walletStakeSourceSchema.safeParse({
|
|
588
|
+
chain: chain === "solana" ? solanaMainnet : chain,
|
|
589
|
+
voteAccount: voteAccount ?? null
|
|
590
|
+
});
|
|
591
|
+
if (!stake.success) {
|
|
592
|
+
throw new Error(
|
|
593
|
+
`wallet.stake() ${stake.error.issues[0].path.join(".")}: ${stake.error.issues[0].message}`
|
|
594
|
+
);
|
|
595
|
+
}
|
|
596
|
+
const source = customSource(walletStakeNamespace, {
|
|
597
|
+
identities: ["wallet"],
|
|
598
|
+
data: walletStakeSampleSchema
|
|
599
|
+
});
|
|
600
|
+
return customSourceSchema.parse({
|
|
601
|
+
...source,
|
|
602
|
+
stake: stake.data
|
|
603
|
+
});
|
|
517
604
|
}
|
|
518
605
|
};
|
|
519
606
|
var pointLedgers = () => ({
|
|
@@ -656,12 +743,12 @@ var settings = {
|
|
|
656
743
|
/**
|
|
657
744
|
* An NFT collection `ctx.wallet.nfts()` reads, as a CAIP-19 asset type: an EVM chain, the
|
|
658
745
|
* standard and the contract, such as `"eip155:1/erc721:0x…"`, or `"eip155:8453/erc1155:0x…/1"` for
|
|
659
|
-
* one ERC-1155 token ID; or a Solana cluster and a Metaplex collection
|
|
660
|
-
* `"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/nft:<
|
|
661
|
-
* `"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1/nft:<
|
|
662
|
-
* published or edited: an EVM chain must be one `ctx.wallet.balance()`
|
|
663
|
-
* must report the standard through ERC-165 `supportsInterface`; a Solana
|
|
664
|
-
* collection NFT on its cluster. Typed as the query's collection, so it passes to
|
|
746
|
+
* one ERC-1155 token ID; or a Solana cluster and a Metaplex Core collection's address or a Token
|
|
747
|
+
* Metadata collection NFT's mint there, `"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/nft:<address>"`
|
|
748
|
+
* on mainnet or `"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1/nft:<address>"` on devnet. Relay checks
|
|
749
|
+
* it when the collection is published or edited: an EVM chain must be one `ctx.wallet.balance()`
|
|
750
|
+
* reads and the contract must report the standard through ERC-165 `supportsInterface`; a Solana
|
|
751
|
+
* address must be a Core collection or a Metaplex collection NFT on its cluster. Typed as the query's collection, so it passes to
|
|
665
752
|
* `ctx.wallet.nfts({ collection })` as it is.
|
|
666
753
|
*/
|
|
667
754
|
nft(options) {
|
|
@@ -739,9 +826,10 @@ var settings = {
|
|
|
739
826
|
);
|
|
740
827
|
},
|
|
741
828
|
/**
|
|
742
|
-
* A Solana program `ctx.wallet.transactions()` reads: its base58
|
|
743
|
-
* `"JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4"`. Relay checks it when
|
|
744
|
-
* edited: the account must be an executable program on Solana mainnet or
|
|
829
|
+
* A Solana program `ctx.wallet.transactions()` or `ctx.wallet.programAccount()` reads: its base58
|
|
830
|
+
* address, such as Jupiter's `"JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4"`. Relay checks it when
|
|
831
|
+
* it is published or edited: the account must be an executable program on Solana mainnet or
|
|
832
|
+
* devnet. Its IDL (Anchor, Codama or Shank), stored then, decodes the program's instructions and accounts.
|
|
745
833
|
*/
|
|
746
834
|
solanaProgram(options) {
|
|
747
835
|
if (!isSolanaProgram(options.default)) {
|
|
@@ -955,6 +1043,15 @@ var keyed = (key, options = {}) => ({
|
|
|
955
1043
|
key,
|
|
956
1044
|
...options.across ? { across: options.across } : {}
|
|
957
1045
|
});
|
|
1046
|
+
var perStation = () => keyed((ctx) => {
|
|
1047
|
+
const station = ctx.action?.reference;
|
|
1048
|
+
if (!station) {
|
|
1049
|
+
throw new Error(
|
|
1050
|
+
"perStation() completes from a signed transaction whose memo names a station"
|
|
1051
|
+
);
|
|
1052
|
+
}
|
|
1053
|
+
return station;
|
|
1054
|
+
});
|
|
958
1055
|
var progress = (definition) => {
|
|
959
1056
|
const { distinct, ...policy } = definition;
|
|
960
1057
|
return {
|
|
@@ -1045,7 +1142,7 @@ var evaluators = {
|
|
|
1045
1142
|
};
|
|
1046
1143
|
}
|
|
1047
1144
|
};
|
|
1048
|
-
var completionPolicies = { once, keyed, streak, progress };
|
|
1145
|
+
var completionPolicies = { once, keyed, streak, progress, perStation };
|
|
1049
1146
|
function questBuilder(template) {
|
|
1050
1147
|
return function defineQuest2(definition) {
|
|
1051
1148
|
const key = authoringKey(definition);
|
|
@@ -1075,6 +1172,7 @@ function questBuilder(template) {
|
|
|
1075
1172
|
);
|
|
1076
1173
|
}
|
|
1077
1174
|
const author = authorBudgets(definition.budgets);
|
|
1175
|
+
const stations = definition.stations ? questStationsSchema.parse(definition.stations) : void 0;
|
|
1078
1176
|
validateQuestShape(
|
|
1079
1177
|
{
|
|
1080
1178
|
trigger: definition.trigger,
|
|
@@ -1086,7 +1184,8 @@ function questBuilder(template) {
|
|
|
1086
1184
|
maxAgeMs: definition.performance.maxAgeMs
|
|
1087
1185
|
}) : void 0,
|
|
1088
1186
|
...definition.retryCooldownMs === void 0 ? {} : { retryCooldownMs: definition.retryCooldownMs },
|
|
1089
|
-
...definition.completionCooldownMs === void 0 ? {} : { completionCooldownMs: definition.completionCooldownMs }
|
|
1187
|
+
...definition.completionCooldownMs === void 0 ? {} : { completionCooldownMs: definition.completionCooldownMs },
|
|
1188
|
+
...stations ? { stations } : {}
|
|
1090
1189
|
},
|
|
1091
1190
|
{ template }
|
|
1092
1191
|
);
|
|
@@ -1220,7 +1319,8 @@ function questBuilder(template) {
|
|
|
1220
1319
|
...definition.campaign ? { campaign: definition.campaign } : {},
|
|
1221
1320
|
...definition.availability ? { availability: definition.availability } : {},
|
|
1222
1321
|
...definition.retryCooldownMs === void 0 ? {} : { retryCooldownMs: definition.retryCooldownMs },
|
|
1223
|
-
...definition.completionCooldownMs === void 0 ? {} : { completionCooldownMs: definition.completionCooldownMs }
|
|
1322
|
+
...definition.completionCooldownMs === void 0 ? {} : { completionCooldownMs: definition.completionCooldownMs },
|
|
1323
|
+
...stations ? { stations } : {}
|
|
1224
1324
|
});
|
|
1225
1325
|
}
|
|
1226
1326
|
return resourceHandle("quest", {
|
|
@@ -1281,6 +1381,7 @@ function questBuilder(template) {
|
|
|
1281
1381
|
member: ctx.member,
|
|
1282
1382
|
input: ctx.input,
|
|
1283
1383
|
tracker,
|
|
1384
|
+
action: ctx.action ?? null,
|
|
1284
1385
|
eligibleAt: ctx.eligibleAt,
|
|
1285
1386
|
calendar: ctx.calendar,
|
|
1286
1387
|
now: ctx.now,
|
|
@@ -1311,7 +1412,12 @@ function questBuilder(template) {
|
|
|
1311
1412
|
message: ignoredCompletionKey(completion, result.completionKey)
|
|
1312
1413
|
});
|
|
1313
1414
|
}
|
|
1314
|
-
const keyContext = {
|
|
1415
|
+
const keyContext = {
|
|
1416
|
+
...ctx,
|
|
1417
|
+
settings: settings2,
|
|
1418
|
+
tracker: pinned,
|
|
1419
|
+
action: ctx.action ?? null
|
|
1420
|
+
};
|
|
1315
1421
|
return decisionSchema.parse(
|
|
1316
1422
|
result.kind === "accept" || result.kind === "review" ? {
|
|
1317
1423
|
...result,
|
|
@@ -1397,6 +1503,7 @@ export {
|
|
|
1397
1503
|
parseContractFunction,
|
|
1398
1504
|
parseNftCollection,
|
|
1399
1505
|
parseUnits,
|
|
1506
|
+
perStation,
|
|
1400
1507
|
pointLedgers,
|
|
1401
1508
|
points,
|
|
1402
1509
|
progress,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
-
import { b as AttemptStatus,
|
|
3
|
-
import { S as SkipEnrollment } from './tracker-data-
|
|
2
|
+
import { b as AttemptStatus, Y as RewardType } from './accounts-DnpKoJCo.js';
|
|
3
|
+
import { S as SkipEnrollment } from './tracker-data-CAK942sx.js';
|
|
4
4
|
|
|
5
5
|
declare const collectionCodeSchema: z.ZodString;
|
|
6
6
|
declare const collectionPassSchema: z.ZodObject<{
|
package/dist/avatar.d.ts
CHANGED
package/dist/browser.d.ts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { o as SubmissionStore, f as RelayClientOptions, R as RelayClient } from './client-
|
|
2
|
-
export { C as CosmosChains, D as DiscoveredWallet, E as Eip1193Provider,
|
|
1
|
+
import { o as SubmissionStore, f as RelayClientOptions, R as RelayClient } from './client-BMif22WQ.js';
|
|
2
|
+
export { C as CosmosChains, D as DiscoveredWallet, E as Eip1193Provider, K as KeplrLike, S as SignInWallet, a as SolanaInjectedProvider, b as StandardWallet, c as StandardWalletAccount, d as cosmosChainList, e as cosmosSigner, f as discoverCosmosWallets, g as discoverEvmWallets, h as discoverSignInWallets, i as discoverSolanaWallets, j as evmSigner, s as solanaSigner, w as walletStandardSolanaSigner } from './wallet-browser-dpmr22Xv.js';
|
|
3
|
+
export { E as EmailSignInOption, O as OAuthSignInOption, P as ProviderSignInOption, S as SignInClient, a as SignInIcon, b as SignInMethods, c as SignInOption, d as SignInOptions, e as SignInUnavailable, T as TelegramSignInOption, W as WalletSignInOption, s as signInOptions, t as telegramMiniAppInitData } from './telegram-browser-DLtHPRBI.js';
|
|
3
4
|
export { H as HostEnvironment, g as getHostEnvironment } from './host-environment-FN4zg3hw.js';
|
|
4
5
|
import { M as MemberSummary } from './participant-activity-DXRq4s6K.js';
|
|
5
|
-
import './accounts-
|
|
6
|
+
import './accounts-DnpKoJCo.js';
|
|
6
7
|
import 'zod';
|
|
7
|
-
import './tracker-data-
|
|
8
|
-
import './wallet-
|
|
9
|
-
import './submission-input-
|
|
8
|
+
import './tracker-data-CAK942sx.js';
|
|
9
|
+
import './wallet-DQtJelQQ.js';
|
|
10
|
+
import './submission-input-CaL8drIh.js';
|
|
10
11
|
import './request-error-D_dUPLwo.js';
|
|
11
|
-
import './reward-deliveries-
|
|
12
|
-
import './catalog-
|
|
12
|
+
import './reward-deliveries-0VvT6LMj.js';
|
|
13
|
+
import './catalog-BLGie8Lh.js';
|
|
13
14
|
import './action-9Xl0StBg.js';
|
|
14
|
-
import './sign-in-providers-
|
|
15
|
+
import './sign-in-providers-C5_753DZ.js';
|
|
15
16
|
|
|
16
17
|
/**
|
|
17
18
|
* The member's time at the real instant `at` (default now), in epoch milliseconds: what an app
|
package/dist/browser.js
CHANGED
|
@@ -12,24 +12,23 @@ import {
|
|
|
12
12
|
signInOptions,
|
|
13
13
|
solanaSigner,
|
|
14
14
|
walletStandardSolanaSigner
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CZ7NQ7W7.js";
|
|
16
16
|
import {
|
|
17
17
|
telegramMiniAppInitData
|
|
18
18
|
} from "./chunk-FWLQ5XCS.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-SD74HD75.js";
|
|
20
|
+
import "./chunk-P4TPW4SY.js";
|
|
21
|
+
import "./chunk-VRZZB7CQ.js";
|
|
22
22
|
import {
|
|
23
23
|
getHostEnvironment
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-FGXLXENM.js";
|
|
24
|
+
} from "./chunk-VAGGGB6B.js";
|
|
25
|
+
import "./chunk-7YSVZA7A.js";
|
|
26
|
+
import "./chunk-KKHENO57.js";
|
|
27
|
+
import "./chunk-R3MNZKNJ.js";
|
|
28
|
+
import "./chunk-6UBFSMCM.js";
|
|
29
|
+
import "./chunk-55WJVFWC.js";
|
|
30
|
+
import "./chunk-6YTSRWRB.js";
|
|
31
|
+
import "./chunk-IW46TW3A.js";
|
|
33
32
|
export {
|
|
34
33
|
browserSubmissionStore,
|
|
35
34
|
cosmosChainList,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { b as AttemptStatus, W as AttemptCodeSource, V as KnownAttemptActionKind, X as IntegrationModuleProvider, Y as RewardType, Z as questDescriptionSchema } from './accounts-DnpKoJCo.js';
|
|
2
|
+
import { u as SolanaIdlSource } from './wallet-DQtJelQQ.js';
|
|
3
3
|
import * as z from 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -395,6 +395,12 @@ declare const questTypeVersionSchema: z.ZodObject<{
|
|
|
395
395
|
}, z.core.$strict>>>;
|
|
396
396
|
retryCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
397
397
|
completionCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
398
|
+
stations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
399
|
+
key: z.ZodString;
|
|
400
|
+
label: z.ZodString;
|
|
401
|
+
opensAt: z.ZodOptional<z.ZodNumber>;
|
|
402
|
+
closesAt: z.ZodOptional<z.ZodNumber>;
|
|
403
|
+
}, z.core.$strict>>>;
|
|
398
404
|
completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
399
405
|
kind: z.ZodLiteral<"streak">;
|
|
400
406
|
days: z.ZodNumber;
|
|
@@ -1184,6 +1190,12 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1184
1190
|
}, z.core.$strict>>>;
|
|
1185
1191
|
retryCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
1186
1192
|
completionCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
1193
|
+
stations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1194
|
+
key: z.ZodString;
|
|
1195
|
+
label: z.ZodString;
|
|
1196
|
+
opensAt: z.ZodOptional<z.ZodNumber>;
|
|
1197
|
+
closesAt: z.ZodOptional<z.ZodNumber>;
|
|
1198
|
+
}, z.core.$strict>>>;
|
|
1187
1199
|
completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1188
1200
|
kind: z.ZodLiteral<"streak">;
|
|
1189
1201
|
days: z.ZodNumber;
|
|
@@ -1855,6 +1867,12 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1855
1867
|
}, z.core.$strict>>>;
|
|
1856
1868
|
retryCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
1857
1869
|
completionCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
1870
|
+
stations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1871
|
+
key: z.ZodString;
|
|
1872
|
+
label: z.ZodString;
|
|
1873
|
+
opensAt: z.ZodOptional<z.ZodNumber>;
|
|
1874
|
+
closesAt: z.ZodOptional<z.ZodNumber>;
|
|
1875
|
+
}, z.core.$strict>>>;
|
|
1858
1876
|
completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1859
1877
|
kind: z.ZodLiteral<"streak">;
|
|
1860
1878
|
days: z.ZodNumber;
|
|
@@ -2415,6 +2433,12 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
|
|
|
2415
2433
|
}, z.core.$strict>>>;
|
|
2416
2434
|
retryCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
2417
2435
|
completionCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
2436
|
+
stations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2437
|
+
key: z.ZodString;
|
|
2438
|
+
label: z.ZodString;
|
|
2439
|
+
opensAt: z.ZodOptional<z.ZodNumber>;
|
|
2440
|
+
closesAt: z.ZodOptional<z.ZodNumber>;
|
|
2441
|
+
}, z.core.$strict>>>;
|
|
2418
2442
|
completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2419
2443
|
kind: z.ZodLiteral<"streak">;
|
|
2420
2444
|
days: z.ZodNumber;
|
|
@@ -3074,6 +3098,13 @@ declare const questViewSchema: z.ZodObject<{
|
|
|
3074
3098
|
}, z.core.$strip>>>;
|
|
3075
3099
|
requestedReview: z.ZodDefault<z.ZodBoolean>;
|
|
3076
3100
|
createdAt: z.ZodNumber;
|
|
3101
|
+
action: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3102
|
+
kind: z.ZodType<KnownAttemptActionKind | (string & {})>;
|
|
3103
|
+
chain: z.ZodString;
|
|
3104
|
+
signature: z.ZodString;
|
|
3105
|
+
wallet: z.ZodString;
|
|
3106
|
+
reference: z.ZodNullable<z.ZodString>;
|
|
3107
|
+
}, z.core.$strip>>>;
|
|
3077
3108
|
}, z.core.$strip>>;
|
|
3078
3109
|
release: z.ZodString;
|
|
3079
3110
|
interaction: z.ZodEnum<{
|
|
@@ -3596,6 +3627,13 @@ declare const collectionViewSchema: z.ZodObject<{
|
|
|
3596
3627
|
}, z.core.$strip>>>;
|
|
3597
3628
|
requestedReview: z.ZodDefault<z.ZodBoolean>;
|
|
3598
3629
|
createdAt: z.ZodNumber;
|
|
3630
|
+
action: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3631
|
+
kind: z.ZodType<KnownAttemptActionKind | (string & {})>;
|
|
3632
|
+
chain: z.ZodString;
|
|
3633
|
+
signature: z.ZodString;
|
|
3634
|
+
wallet: z.ZodString;
|
|
3635
|
+
reference: z.ZodNullable<z.ZodString>;
|
|
3636
|
+
}, z.core.$strip>>>;
|
|
3599
3637
|
}, z.core.$strip>>;
|
|
3600
3638
|
release: z.ZodString;
|
|
3601
3639
|
interaction: z.ZodEnum<{
|
|
@@ -4292,6 +4330,13 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
4292
4330
|
}, z.core.$strip>>>;
|
|
4293
4331
|
requestedReview: z.ZodDefault<z.ZodBoolean>;
|
|
4294
4332
|
createdAt: z.ZodNumber;
|
|
4333
|
+
action: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4334
|
+
kind: z.ZodType<KnownAttemptActionKind | (string & {})>;
|
|
4335
|
+
chain: z.ZodString;
|
|
4336
|
+
signature: z.ZodString;
|
|
4337
|
+
wallet: z.ZodString;
|
|
4338
|
+
reference: z.ZodNullable<z.ZodString>;
|
|
4339
|
+
}, z.core.$strip>>>;
|
|
4295
4340
|
}, z.core.$strip>>;
|
|
4296
4341
|
release: z.ZodString;
|
|
4297
4342
|
interaction: z.ZodEnum<{
|
|
@@ -4814,6 +4859,13 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
4814
4859
|
}, z.core.$strip>>>;
|
|
4815
4860
|
requestedReview: z.ZodDefault<z.ZodBoolean>;
|
|
4816
4861
|
createdAt: z.ZodNumber;
|
|
4862
|
+
action: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4863
|
+
kind: z.ZodType<KnownAttemptActionKind | (string & {})>;
|
|
4864
|
+
chain: z.ZodString;
|
|
4865
|
+
signature: z.ZodString;
|
|
4866
|
+
wallet: z.ZodString;
|
|
4867
|
+
reference: z.ZodNullable<z.ZodString>;
|
|
4868
|
+
}, z.core.$strip>>>;
|
|
4817
4869
|
}, z.core.$strip>>;
|
|
4818
4870
|
release: z.ZodString;
|
|
4819
4871
|
interaction: z.ZodEnum<{
|
|
@@ -5418,6 +5470,12 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
5418
5470
|
}, z.core.$strict>>>;
|
|
5419
5471
|
retryCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
5420
5472
|
completionCooldownMs: z.ZodOptional<z.ZodNumber>;
|
|
5473
|
+
stations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5474
|
+
key: z.ZodString;
|
|
5475
|
+
label: z.ZodString;
|
|
5476
|
+
opensAt: z.ZodOptional<z.ZodNumber>;
|
|
5477
|
+
closesAt: z.ZodOptional<z.ZodNumber>;
|
|
5478
|
+
}, z.core.$strict>>>;
|
|
5421
5479
|
completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5422
5480
|
kind: z.ZodLiteral<"streak">;
|
|
5423
5481
|
days: z.ZodNumber;
|