@domino-sdk/relay 1.68.0 → 1.70.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 +28 -0
- package/build.mjs +3 -0
- package/dist/{accounts-DnpKoJCo.d.ts → accounts-B49TGZLk.d.ts} +25 -5
- package/dist/{action-9Xl0StBg.d.ts → action-BDFKqGlH.d.ts} +3 -2
- package/dist/{attempt-captures-DMNFMYFb.d.ts → attempt-captures-Dn-oGE1o.d.ts} +4 -3
- package/dist/authoring.d.ts +218 -43
- package/dist/authoring.js +76 -18
- package/dist/{automatic-outcomes-CQ3vpiQl.d.ts → automatic-outcomes-DeRyox-X.d.ts} +11 -3
- package/dist/avatar.d.ts +2 -1
- package/dist/browser.d.ts +15 -14
- package/dist/browser.js +11 -11
- package/dist/{capability-error-CuI_F7yM.d.ts → capability-error-db7kO8-P.d.ts} +2 -1
- package/dist/{catalog-BLGie8Lh.d.ts → catalog-CR_2iacf.d.ts} +11 -3
- package/dist/{chunk-5AKD4ZF3.js → chunk-25WA4XYZ.js} +9 -3
- package/dist/{chunk-6UBFSMCM.js → chunk-2GVGZ7AN.js} +1 -1
- package/dist/{chunk-SD74HD75.js → chunk-3DUNFRKJ.js} +9 -9
- package/dist/{chunk-7YSVZA7A.js → chunk-4BBDHTBF.js} +1 -1
- package/dist/{chunk-6YTSRWRB.js → chunk-4VDRNYUG.js} +83 -11
- package/dist/{chunk-P4TPW4SY.js → chunk-5RLIPTL7.js} +1 -1
- package/dist/{chunk-MEUAJIVO.js → chunk-BJ2W5ZVQ.js} +2 -2
- package/dist/{chunk-KKHENO57.js → chunk-FHOKCBTJ.js} +2 -2
- package/dist/{chunk-DDJN2T5A.js → chunk-HICAGUT5.js} +1 -1
- package/dist/{chunk-VRZZB7CQ.js → chunk-LDO5GP7G.js} +1 -1
- package/dist/{chunk-TYZFVL73.js → chunk-NOQSKRSS.js} +4 -4
- package/dist/{chunk-75KF633N.js → chunk-OKKZPDCQ.js} +1 -1
- package/dist/{chunk-4JSPMFO2.js → chunk-RSZAYW3T.js} +2 -2
- package/dist/{chunk-HXTKI34N.js → chunk-RYUM6X2K.js} +1 -1
- package/dist/{chunk-EXZVWQOQ.js → chunk-SDWG7CWQ.js} +2 -2
- package/dist/{chunk-R3MNZKNJ.js → chunk-SELJYCYY.js} +1 -1
- package/dist/{chunk-DNPDR4Z7.js → chunk-UKUIE2ND.js} +6 -6
- package/dist/{chunk-IW46TW3A.js → chunk-VNEJH4NT.js} +26 -2
- package/dist/{chunk-55WJVFWC.js → chunk-XD6EUA27.js} +2 -2
- package/dist/{chunk-CZ7NQ7W7.js → chunk-XZCTCSDG.js} +3 -3
- package/dist/{client-BMif22WQ.d.ts → client-gJEheT2C.d.ts} +33 -11
- package/dist/{dashboards-DMk-vL1q.d.ts → dashboards-DZaB94sz.d.ts} +6 -5
- package/dist/{deployments-BCr418BX.d.ts → deployments-QVGxC-fT.d.ts} +530 -337
- package/dist/{host-environment-FN4zg3hw.d.ts → host-environment-DUw5-Cvj.d.ts} +2 -1
- package/dist/{identity-integration-r76xaAax.d.ts → identity-integration-BAJdzbdl.d.ts} +3 -2
- package/dist/index.d.ts +16 -15
- package/dist/index.js +10 -10
- package/dist/internal.d.ts +34 -19
- package/dist/internal.js +40 -14
- package/dist/{limits-ByVRQePO.d.ts → limits-UawUbr0S.d.ts} +3 -2
- package/dist/{offers-xcPbYaEv.d.ts → offers-0hqbnogq.d.ts} +4 -3
- package/dist/{participant-activity-DXRq4s6K.d.ts → participant-activity-BznrcePT.d.ts} +2 -1
- package/dist/{participant-rewards-BcWkBRn_.d.ts → participant-rewards-s5Gn23qb.d.ts} +23 -1
- package/dist/portal-proxy.d.ts +7 -4
- package/dist/portal-proxy.js +14 -17
- package/dist/profiles-CLDKZVFx.d.ts +370 -0
- package/dist/react/index.d.ts +50 -31
- package/dist/react/index.js +12 -11
- package/dist/{request-error-D_dUPLwo.d.ts → request-error-C24SY7n9.d.ts} +2 -1
- package/dist/{reward-deliveries-0VvT6LMj.d.ts → reward-deliveries-ARvt1UXb.d.ts} +3 -2
- package/dist/runtime/authoring.js +1 -1
- package/dist/runtime/chunks/447P2VLY.js +1 -0
- package/dist/runtime/manifest.json +3 -3
- package/dist/runtime/schema.js +1 -1
- package/dist/schema.d.ts +258 -176
- package/dist/schema.js +18 -8
- package/dist/server/index.d.ts +15 -14
- package/dist/server/index.js +47 -48
- package/dist/{sign-in-providers-C5_753DZ.d.ts → sign-in-providers-DCiufSGG.d.ts} +4 -3
- package/dist/solana.d.ts +142 -26
- package/dist/solana.js +449 -114
- package/dist/{streaks-0YuipsUQ.d.ts → streaks-MAqKHbHC.d.ts} +2 -1
- package/dist/{submission-input-CaL8drIh.d.ts → submission-input-C0DLv5Dj.d.ts} +4 -3
- package/dist/{telegram-browser-DLtHPRBI.d.ts → telegram-browser-yx9WuNLX.d.ts} +8 -7
- package/dist/telegram.d.ts +14 -12
- package/dist/telegram.js +2 -2
- package/dist/testing.d.ts +24 -15
- package/dist/testing.js +6 -6
- package/dist/{tracker-data-CAK942sx.d.ts → tracker-data-CUopgomU.d.ts} +198 -3
- package/dist/{transport-CkidqTOk.d.ts → transport-e0uY1R7z.d.ts} +3415 -2233
- package/dist/vite.d.ts +2 -1
- package/dist/{wallet-DQtJelQQ.d.ts → wallet-CJTULM0Q.d.ts} +54 -375
- package/dist/{wallet-browser-dpmr22Xv.d.ts → wallet-browser-DScvrvIj.d.ts} +3 -2
- package/package.json +6 -3
- package/dist/runtime/chunks/2UDZ6TPL.js +0 -1
package/dist/authoring.d.ts
CHANGED
|
@@ -1,21 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
import { R as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { _ as AuthoringIdentity, a4 as DiscordMessageData, a5 as DiscordMessageTextData, a7 as DiscordReactionData, a8 as KnownIntegrationModule, P as PointBalance, a9 as SolanaTransactionAction, ad as DiscordReader, ah as IntegrationModule, ai as QuestStation, X as IntegrationModuleProvider } from './accounts-B49TGZLk.js';
|
|
2
|
+
import { CampaignDefinition, QuestPresentation, AvailabilityWindow, QuestProfile, QuizEvidence } from './index.js';
|
|
3
|
+
import { EngagementBudget, leaderboardDefinitionSchema, pointLedgerDeclarationSchema, referralAuthoringSchema, discordMessagesSourceSchema, discordReactionsSourceSchema, TextReviewInput, TextResult, PhotoResult, Decision, rewardSchema, triggerSchema, TieredRewardDefinition } from './schema.js';
|
|
4
|
+
export { ak as KnownIntegrationModuleProvider, al as defineCampaign, am as defineGroup } from './accounts-B49TGZLk.js';
|
|
5
|
+
import { I as IdentityKind, R as ResourceHandle, Q as QuestHandle, L as LedgerReference, G as GroupHandle, g as Tracker, h as TrackerData, j as LedgerHandle, b as TrackerDataSchema, n as Where, M as MemberIdentity, o as ReferralHandle, p as TrackerTriggerContext, q as TrackerReader, s as RoleOf, C as ContentBody, B as BadgeHandle, v as ContentMetricName } from './tracker-data-CUopgomU.js';
|
|
6
|
+
import { xContentBodySchema, customSourceSchema, WithRecordData, WithContent, WithAccountRoles, TrackerSource, trackerDefinitionSchema, SourceRoles, xSearchSourceSchema, XTweet, XContentMetric, TrackerTriggerPolicy, TrackerTriggerMode, WhereSetting } from './schema.js';
|
|
7
|
+
export { w as LedgerSetting, y as TrackerPage, z as TrackerReadQuery, A as trackerDataSchema, D as trackerTriggerContextSchema } from './tracker-data-CUopgomU.js';
|
|
8
|
+
import { M as MemberCompletion } from './capability-error-db7kO8-P.js';
|
|
9
|
+
import { ResourceSource, Budget, AuthorBudget, Announcement } from './schema.js';
|
|
10
|
+
export { C as CapabilityError, b as CapabilityErrorCode, T as TikTokVideoBody, c as TikTokVideoMetric, Y as YouTubeShortBody, d as YouTubeShortMetric, e as capabilityErrorCodes } from './capability-error-db7kO8-P.js';
|
|
11
|
+
import { e as ProfileReferral } from './profiles-CLDKZVFx.js';
|
|
12
|
+
import { N as NftCollection, o as ContractCall, p as ContractEvent, q as SolanaProgram, n as SolanaSeed, r as WalletBalanceSourceQuery, t as WalletProgramActivitySourceQuery, u as WalletNftSourceQuery, v as WalletStakeSourceQuery, w as WalletProgramAccountSourceQuery, x as WalletTransaction, y as WalletInstruction, z as WalletReader } from './wallet-CJTULM0Q.js';
|
|
13
|
+
import { SolanaIdlSource } from './schema.js';
|
|
14
|
+
export { A as ContractCallParts, B as ContractCallReturnType, D as ContractEventInput, E as ContractEventParts, F as ContractFunction, G as CosmosDenom, a as CosmosNetwork, H as EvmChainId, I as NftCollectionParts, J as NftStandard, K as SolanaSeedInteger, M as WalletBalance, O as WalletBalanceChange, k as WalletBalanceQuery, P as WalletBalanceSample, Q as WalletCall, R as WalletCallArgument, T as WalletCallQuery, U as WalletDelegations, V as WalletDelegationsQuery, X as WalletEventCondition, Y as WalletEventValue, Z as WalletEvents, _ as WalletEventsQuery, $ as WalletNftSample, a0 as WalletNfts, a1 as WalletNftsQuery, a2 as WalletProgramAccount, a3 as WalletProgramAccountQuery, a4 as WalletProgramAccountSample, a5 as WalletProgramActivity, a6 as WalletStake, a7 as WalletStakeQuery, a8 as WalletStakeSample, a9 as WalletTransactions, aa as WalletTransactionsQuery, ab as cosmosDenomSchema, ac as cosmosNetworkSchema, ad as isContractCall, ae as isContractEvent, af as isEvmAddress, ag as isEvmChainId, ah as isNftCollection, ai as isSolanaProgram, aj as maxWalletEventLogs, ak as maxWalletEventLookback, al as maxWalletTransactionLookback, am as maxWalletTransactions, an as parseContractCall, ao as parseContractEvent, ap as parseContractFunction, aq as parseNftCollection } from './wallet-CJTULM0Q.js';
|
|
9
15
|
import * as z from 'zod';
|
|
10
16
|
export { z } from 'zod';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
import { Badge } from './index.js';
|
|
18
|
+
import { badgeDeclarationSchema, OfferAuthoring } from './schema.js';
|
|
19
|
+
import { QuizContent } from './index.js';
|
|
20
|
+
import { StreakPolicy } from './schema.js';
|
|
21
|
+
import { S as Setting, A as AmountSetting, B as BalanceChain } from './dashboards-DZaB94sz.js';
|
|
22
|
+
import { BoundSettings } from './schema.js';
|
|
23
|
+
export { D as DashboardInput, b as DashboardPanelInput, d as defineDashboard } from './dashboards-DZaB94sz.js';
|
|
24
|
+
import { e as TelegramReader } from './submission-input-C0DLv5Dj.js';
|
|
25
|
+
import { Prerequisite, TextEvidence, UrlEvidence, TextOptions, UrlOptions } from './index.js';
|
|
26
|
+
export { f as TelegramChatMember, g as TelegramChatMemberStatus, h as TelegramConnection, i as TelegramMessageData, j as TelegramReactionData, k as balanceAtLeast, l as completed, m as inGroup } from './submission-input-C0DLv5Dj.js';
|
|
27
|
+
import { I as ImageReader, X as XReader } from './limits-UawUbr0S.js';
|
|
28
|
+
export { L as Limits, l as limits } from './limits-UawUbr0S.js';
|
|
19
29
|
export { f as formatUnits, p as parseUnits } from './units-CwgsPB_r.js';
|
|
20
30
|
|
|
21
31
|
declare function defineBadge(input: z.input<typeof badgeDeclarationSchema>): {
|
|
@@ -245,7 +255,6 @@ declare function defineReferral(input: Omit<ReferralInput, "qualification" | "in
|
|
|
245
255
|
} | {
|
|
246
256
|
kind: "external";
|
|
247
257
|
};
|
|
248
|
-
enabled: boolean;
|
|
249
258
|
milestones: {
|
|
250
259
|
id: string;
|
|
251
260
|
count: number;
|
|
@@ -276,6 +285,7 @@ declare function defineReferral(input: Omit<ReferralInput, "qualification" | "in
|
|
|
276
285
|
amount: number;
|
|
277
286
|
})[];
|
|
278
287
|
}[];
|
|
288
|
+
enabled: boolean;
|
|
279
289
|
bonuses: {
|
|
280
290
|
id: string;
|
|
281
291
|
balance: string;
|
|
@@ -345,7 +355,7 @@ declare function defineLeaderboard(input: Omit<LeaderboardInput, "key" | "id" |
|
|
|
345
355
|
}): {
|
|
346
356
|
title: string;
|
|
347
357
|
balance: string;
|
|
348
|
-
access: "
|
|
358
|
+
access: "public" | "participants";
|
|
349
359
|
score: {
|
|
350
360
|
kind: "balance";
|
|
351
361
|
} | {
|
|
@@ -590,7 +600,7 @@ declare const telegram: {
|
|
|
590
600
|
messages(): {
|
|
591
601
|
kind: "custom";
|
|
592
602
|
namespace: string;
|
|
593
|
-
identities?: ("
|
|
603
|
+
identities?: ("member" | "discord" | "x" | "wallet" | `app:${string}`)[] | undefined;
|
|
594
604
|
accounts?: string[] | undefined;
|
|
595
605
|
data?: TrackerDataSchema | undefined;
|
|
596
606
|
content?: {
|
|
@@ -615,6 +625,18 @@ declare const telegram: {
|
|
|
615
625
|
chain: string;
|
|
616
626
|
voteAccount: string | null;
|
|
617
627
|
} | undefined;
|
|
628
|
+
programAccount?: {
|
|
629
|
+
chain: string;
|
|
630
|
+
program: string;
|
|
631
|
+
account: string;
|
|
632
|
+
seeds: SolanaSeed[];
|
|
633
|
+
field: string;
|
|
634
|
+
idl?: {
|
|
635
|
+
program: string;
|
|
636
|
+
source: SolanaIdlSource;
|
|
637
|
+
idl: Record<string, z.core.util.JSONType>;
|
|
638
|
+
} | undefined;
|
|
639
|
+
} | undefined;
|
|
618
640
|
} & WithRecordData<{
|
|
619
641
|
chatId: string;
|
|
620
642
|
chatType: string;
|
|
@@ -625,7 +647,7 @@ declare const telegram: {
|
|
|
625
647
|
reactions(): {
|
|
626
648
|
kind: "custom";
|
|
627
649
|
namespace: string;
|
|
628
|
-
identities?: ("
|
|
650
|
+
identities?: ("member" | "discord" | "x" | "wallet" | `app:${string}`)[] | undefined;
|
|
629
651
|
accounts?: string[] | undefined;
|
|
630
652
|
data?: TrackerDataSchema | undefined;
|
|
631
653
|
content?: {
|
|
@@ -650,6 +672,18 @@ declare const telegram: {
|
|
|
650
672
|
chain: string;
|
|
651
673
|
voteAccount: string | null;
|
|
652
674
|
} | undefined;
|
|
675
|
+
programAccount?: {
|
|
676
|
+
chain: string;
|
|
677
|
+
program: string;
|
|
678
|
+
account: string;
|
|
679
|
+
seeds: SolanaSeed[];
|
|
680
|
+
field: string;
|
|
681
|
+
idl?: {
|
|
682
|
+
program: string;
|
|
683
|
+
source: SolanaIdlSource;
|
|
684
|
+
idl: Record<string, z.core.util.JSONType>;
|
|
685
|
+
} | undefined;
|
|
686
|
+
} | undefined;
|
|
653
687
|
} & WithRecordData<{
|
|
654
688
|
chatId: string;
|
|
655
689
|
chatType: string;
|
|
@@ -679,7 +713,7 @@ declare const youtube: {
|
|
|
679
713
|
shorts(): {
|
|
680
714
|
kind: "custom";
|
|
681
715
|
namespace: string;
|
|
682
|
-
identities?: ("
|
|
716
|
+
identities?: ("member" | "discord" | "x" | "wallet" | `app:${string}`)[] | undefined;
|
|
683
717
|
accounts?: string[] | undefined;
|
|
684
718
|
data?: TrackerDataSchema | undefined;
|
|
685
719
|
content?: {
|
|
@@ -704,6 +738,18 @@ declare const youtube: {
|
|
|
704
738
|
chain: string;
|
|
705
739
|
voteAccount: string | null;
|
|
706
740
|
} | undefined;
|
|
741
|
+
programAccount?: {
|
|
742
|
+
chain: string;
|
|
743
|
+
program: string;
|
|
744
|
+
account: string;
|
|
745
|
+
seeds: SolanaSeed[];
|
|
746
|
+
field: string;
|
|
747
|
+
idl?: {
|
|
748
|
+
program: string;
|
|
749
|
+
source: SolanaIdlSource;
|
|
750
|
+
idl: Record<string, z.core.util.JSONType>;
|
|
751
|
+
} | undefined;
|
|
752
|
+
} | undefined;
|
|
707
753
|
} & WithRecordData<ContentData<{
|
|
708
754
|
title: string;
|
|
709
755
|
description: string;
|
|
@@ -736,7 +782,7 @@ declare const tiktok: {
|
|
|
736
782
|
videos(): {
|
|
737
783
|
kind: "custom";
|
|
738
784
|
namespace: string;
|
|
739
|
-
identities?: ("
|
|
785
|
+
identities?: ("member" | "discord" | "x" | "wallet" | `app:${string}`)[] | undefined;
|
|
740
786
|
accounts?: string[] | undefined;
|
|
741
787
|
data?: TrackerDataSchema | undefined;
|
|
742
788
|
content?: {
|
|
@@ -761,6 +807,18 @@ declare const tiktok: {
|
|
|
761
807
|
chain: string;
|
|
762
808
|
voteAccount: string | null;
|
|
763
809
|
} | undefined;
|
|
810
|
+
programAccount?: {
|
|
811
|
+
chain: string;
|
|
812
|
+
program: string;
|
|
813
|
+
account: string;
|
|
814
|
+
seeds: SolanaSeed[];
|
|
815
|
+
field: string;
|
|
816
|
+
idl?: {
|
|
817
|
+
program: string;
|
|
818
|
+
source: SolanaIdlSource;
|
|
819
|
+
idl: Record<string, z.core.util.JSONType>;
|
|
820
|
+
} | undefined;
|
|
821
|
+
} | undefined;
|
|
764
822
|
} & WithRecordData<ContentData<{
|
|
765
823
|
title: string;
|
|
766
824
|
description: string;
|
|
@@ -826,16 +884,26 @@ declare const tiktok: {
|
|
|
826
884
|
* is active stake; `activating` and `deactivating` are apart). Reward keeping stake delegated
|
|
827
885
|
* with `automatic({ tracker, where: { path: "amount", gte: ... } })` and `streak({ days })`.
|
|
828
886
|
*
|
|
887
|
+
* - `wallet.programAccounts({ program, account, seeds, field, chain, idl })`: a tracker source of
|
|
888
|
+
* daily samples of one integer field of each linked Solana wallet's program account, sampled as
|
|
889
|
+
* `wallet.stake()` samples stake. Each wallet's account is the program-derived address of
|
|
890
|
+
* `seeds`, `{ wallet: true }` standing for the wallet, read and decoded as
|
|
891
|
+
* `ctx.wallet.programAccount({ address })` reads it, with the IDL Relay stores when the tracker
|
|
892
|
+
* is published: `idl` when given, else the one the program publishes. `data` is
|
|
893
|
+
* `WalletProgramAccountSample`: `amount` is the field as a decimal string, null when the wallet
|
|
894
|
+
* has no account. Publication refuses an account type the IDL lacks and a field that is not an
|
|
895
|
+
* integer. Reward keeping a position with `streak({ days })` and a `where` on `amount`.
|
|
896
|
+
*
|
|
829
897
|
* In SDK 1.x each source is a custom source whose namespace Relay reserves: only Relay writes its
|
|
830
898
|
* records. A project and environment can have at most 5 `wallet.balances()` trackers, 5
|
|
831
|
-
* `wallet.nfts()` trackers, 5 `wallet.stake()` trackers
|
|
832
|
-
* trackers.
|
|
899
|
+
* `wallet.nfts()` trackers, 5 `wallet.stake()` trackers, 10 `wallet.programAccounts()` trackers
|
|
900
|
+
* and 20 `wallet.programActivity()` trackers.
|
|
833
901
|
*/
|
|
834
902
|
declare const wallet: {
|
|
835
903
|
balances(query: WalletBalanceSourceQuery): ({
|
|
836
904
|
kind: "custom";
|
|
837
905
|
namespace: string;
|
|
838
|
-
identities?: ("
|
|
906
|
+
identities?: ("member" | "discord" | "x" | "wallet" | `app:${string}`)[] | undefined;
|
|
839
907
|
accounts?: string[] | undefined;
|
|
840
908
|
data?: TrackerDataSchema | undefined;
|
|
841
909
|
content?: {
|
|
@@ -860,6 +928,18 @@ declare const wallet: {
|
|
|
860
928
|
chain: string;
|
|
861
929
|
voteAccount: string | null;
|
|
862
930
|
} | undefined;
|
|
931
|
+
programAccount?: {
|
|
932
|
+
chain: string;
|
|
933
|
+
program: string;
|
|
934
|
+
account: string;
|
|
935
|
+
seeds: SolanaSeed[];
|
|
936
|
+
field: string;
|
|
937
|
+
idl?: {
|
|
938
|
+
program: string;
|
|
939
|
+
source: SolanaIdlSource;
|
|
940
|
+
idl: Record<string, z.core.util.JSONType>;
|
|
941
|
+
} | undefined;
|
|
942
|
+
} | undefined;
|
|
863
943
|
} & WithRecordData<{
|
|
864
944
|
amount: string;
|
|
865
945
|
decimals: number | null;
|
|
@@ -873,7 +953,7 @@ declare const wallet: {
|
|
|
873
953
|
programActivity(query: WalletProgramActivitySourceQuery): ({
|
|
874
954
|
kind: "custom";
|
|
875
955
|
namespace: string;
|
|
876
|
-
identities?: ("
|
|
956
|
+
identities?: ("member" | "discord" | "x" | "wallet" | `app:${string}`)[] | undefined;
|
|
877
957
|
accounts?: string[] | undefined;
|
|
878
958
|
data?: TrackerDataSchema | undefined;
|
|
879
959
|
content?: {
|
|
@@ -898,6 +978,18 @@ declare const wallet: {
|
|
|
898
978
|
chain: string;
|
|
899
979
|
voteAccount: string | null;
|
|
900
980
|
} | undefined;
|
|
981
|
+
programAccount?: {
|
|
982
|
+
chain: string;
|
|
983
|
+
program: string;
|
|
984
|
+
account: string;
|
|
985
|
+
seeds: SolanaSeed[];
|
|
986
|
+
field: string;
|
|
987
|
+
idl?: {
|
|
988
|
+
program: string;
|
|
989
|
+
source: SolanaIdlSource;
|
|
990
|
+
idl: Record<string, z.core.util.JSONType>;
|
|
991
|
+
} | undefined;
|
|
992
|
+
} | undefined;
|
|
901
993
|
} & WithRecordData<{
|
|
902
994
|
signature: string;
|
|
903
995
|
slot: string;
|
|
@@ -919,7 +1011,7 @@ declare const wallet: {
|
|
|
919
1011
|
nfts(query: WalletNftSourceQuery): ({
|
|
920
1012
|
kind: "custom";
|
|
921
1013
|
namespace: string;
|
|
922
|
-
identities?: ("
|
|
1014
|
+
identities?: ("member" | "discord" | "x" | "wallet" | `app:${string}`)[] | undefined;
|
|
923
1015
|
accounts?: string[] | undefined;
|
|
924
1016
|
data?: TrackerDataSchema | undefined;
|
|
925
1017
|
content?: {
|
|
@@ -944,6 +1036,18 @@ declare const wallet: {
|
|
|
944
1036
|
chain: string;
|
|
945
1037
|
voteAccount: string | null;
|
|
946
1038
|
} | undefined;
|
|
1039
|
+
programAccount?: {
|
|
1040
|
+
chain: string;
|
|
1041
|
+
program: string;
|
|
1042
|
+
account: string;
|
|
1043
|
+
seeds: SolanaSeed[];
|
|
1044
|
+
field: string;
|
|
1045
|
+
idl?: {
|
|
1046
|
+
program: string;
|
|
1047
|
+
source: SolanaIdlSource;
|
|
1048
|
+
idl: Record<string, z.core.util.JSONType>;
|
|
1049
|
+
} | undefined;
|
|
1050
|
+
} | undefined;
|
|
947
1051
|
} & WithRecordData<{
|
|
948
1052
|
count: string;
|
|
949
1053
|
block: string;
|
|
@@ -955,7 +1059,7 @@ declare const wallet: {
|
|
|
955
1059
|
stake(query?: WalletStakeSourceQuery): ({
|
|
956
1060
|
kind: "custom";
|
|
957
1061
|
namespace: string;
|
|
958
|
-
identities?: ("
|
|
1062
|
+
identities?: ("member" | "discord" | "x" | "wallet" | `app:${string}`)[] | undefined;
|
|
959
1063
|
accounts?: string[] | undefined;
|
|
960
1064
|
data?: TrackerDataSchema | undefined;
|
|
961
1065
|
content?: {
|
|
@@ -980,6 +1084,18 @@ declare const wallet: {
|
|
|
980
1084
|
chain: string;
|
|
981
1085
|
voteAccount: string | null;
|
|
982
1086
|
} | undefined;
|
|
1087
|
+
programAccount?: {
|
|
1088
|
+
chain: string;
|
|
1089
|
+
program: string;
|
|
1090
|
+
account: string;
|
|
1091
|
+
seeds: SolanaSeed[];
|
|
1092
|
+
field: string;
|
|
1093
|
+
idl?: {
|
|
1094
|
+
program: string;
|
|
1095
|
+
source: SolanaIdlSource;
|
|
1096
|
+
idl: Record<string, z.core.util.JSONType>;
|
|
1097
|
+
} | undefined;
|
|
1098
|
+
} | undefined;
|
|
983
1099
|
} & WithRecordData<{
|
|
984
1100
|
amount: string;
|
|
985
1101
|
activating: string;
|
|
@@ -991,6 +1107,64 @@ declare const wallet: {
|
|
|
991
1107
|
voteAccount: string | null;
|
|
992
1108
|
};
|
|
993
1109
|
};
|
|
1110
|
+
programAccounts(query: WalletProgramAccountSourceQuery): ({
|
|
1111
|
+
kind: "custom";
|
|
1112
|
+
namespace: string;
|
|
1113
|
+
identities?: ("member" | "discord" | "x" | "wallet" | `app:${string}`)[] | undefined;
|
|
1114
|
+
accounts?: string[] | undefined;
|
|
1115
|
+
data?: TrackerDataSchema | undefined;
|
|
1116
|
+
content?: {
|
|
1117
|
+
metrics: string[];
|
|
1118
|
+
} | undefined;
|
|
1119
|
+
balance?: {
|
|
1120
|
+
chain: string;
|
|
1121
|
+
token: string | null;
|
|
1122
|
+
} | undefined;
|
|
1123
|
+
activity?: {
|
|
1124
|
+
chain: string;
|
|
1125
|
+
program: string;
|
|
1126
|
+
instruction: string | null;
|
|
1127
|
+
mint: string | null;
|
|
1128
|
+
minAmount: string | null;
|
|
1129
|
+
anySigner: boolean;
|
|
1130
|
+
} | undefined;
|
|
1131
|
+
nfts?: {
|
|
1132
|
+
collection: string;
|
|
1133
|
+
} | undefined;
|
|
1134
|
+
stake?: {
|
|
1135
|
+
chain: string;
|
|
1136
|
+
voteAccount: string | null;
|
|
1137
|
+
} | undefined;
|
|
1138
|
+
programAccount?: {
|
|
1139
|
+
chain: string;
|
|
1140
|
+
program: string;
|
|
1141
|
+
account: string;
|
|
1142
|
+
seeds: SolanaSeed[];
|
|
1143
|
+
field: string;
|
|
1144
|
+
idl?: {
|
|
1145
|
+
program: string;
|
|
1146
|
+
source: SolanaIdlSource;
|
|
1147
|
+
idl: Record<string, z.core.util.JSONType>;
|
|
1148
|
+
} | undefined;
|
|
1149
|
+
} | undefined;
|
|
1150
|
+
} & WithRecordData<{
|
|
1151
|
+
amount: string | null;
|
|
1152
|
+
pda: string;
|
|
1153
|
+
block: string;
|
|
1154
|
+
}> & WithAccountRoles<"author">) & {
|
|
1155
|
+
programAccount: {
|
|
1156
|
+
chain: string;
|
|
1157
|
+
program: string;
|
|
1158
|
+
account: string;
|
|
1159
|
+
seeds: SolanaSeed[];
|
|
1160
|
+
field: string;
|
|
1161
|
+
idl?: {
|
|
1162
|
+
program: string;
|
|
1163
|
+
source: SolanaIdlSource;
|
|
1164
|
+
idl: Record<string, z.core.util.JSONType>;
|
|
1165
|
+
} | undefined;
|
|
1166
|
+
};
|
|
1167
|
+
};
|
|
994
1168
|
};
|
|
995
1169
|
declare const pointLedgers: () => ResourceSource;
|
|
996
1170
|
type Label = {
|
|
@@ -1057,7 +1231,7 @@ declare const settings: {
|
|
|
1057
1231
|
*/
|
|
1058
1232
|
chain(options: Label & {
|
|
1059
1233
|
default: BalanceChain;
|
|
1060
|
-
}): Setting<"text", z.ZodDefault<z.ZodPipe<z.ZodString, z.ZodTransform<"solana" |
|
|
1234
|
+
}): Setting<"text", z.ZodDefault<z.ZodPipe<z.ZodString, z.ZodTransform<"solana" | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" | `eip155:${number}`, string>>>>;
|
|
1061
1235
|
/**
|
|
1062
1236
|
* An NFT collection `ctx.wallet.nfts()` reads, as a CAIP-19 asset type: an EVM chain, the
|
|
1063
1237
|
* standard and the contract, such as `"eip155:1/erc721:0x…"`, or `"eip155:8453/erc1155:0x…/1"` for
|
|
@@ -1066,7 +1240,7 @@ declare const settings: {
|
|
|
1066
1240
|
* on mainnet or `"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1/nft:<address>"` on devnet. Relay checks
|
|
1067
1241
|
* it when the collection is published or edited: an EVM chain must be one `ctx.wallet.balance()`
|
|
1068
1242
|
* reads and the contract must report the standard through ERC-165 `supportsInterface`; a Solana
|
|
1069
|
-
* address must be a Core collection
|
|
1243
|
+
* address must be a Core collection, a Metaplex collection NFT or a Token-2022 token group's mint on its cluster. Typed as the query's collection, so it passes to
|
|
1070
1244
|
* `ctx.wallet.nfts({ collection })` as it is.
|
|
1071
1245
|
*/
|
|
1072
1246
|
nft(options: Label & {
|
|
@@ -2003,7 +2177,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
2003
2177
|
imageAlt?: string | undefined;
|
|
2004
2178
|
requirements?: ({
|
|
2005
2179
|
kind: "account";
|
|
2006
|
-
provider: "
|
|
2180
|
+
provider: "discord" | "google" | "apple" | "x";
|
|
2007
2181
|
} | {
|
|
2008
2182
|
kind: "wallet";
|
|
2009
2183
|
chain?: "solana" | "eip155" | "cosmos" | undefined;
|
|
@@ -2027,7 +2201,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
2027
2201
|
} | undefined;
|
|
2028
2202
|
} | undefined;
|
|
2029
2203
|
};
|
|
2030
|
-
integrations: ("
|
|
2204
|
+
integrations: ("discord" | "x")[];
|
|
2031
2205
|
fields: Record<string, {
|
|
2032
2206
|
kind: "point-ledger";
|
|
2033
2207
|
default: string;
|
|
@@ -2148,7 +2322,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
2148
2322
|
minLength: number;
|
|
2149
2323
|
maxLength: number;
|
|
2150
2324
|
};
|
|
2151
|
-
actor?: "
|
|
2325
|
+
actor?: "member" | "staff" | undefined;
|
|
2152
2326
|
} | {
|
|
2153
2327
|
kind: "manual";
|
|
2154
2328
|
input: "url";
|
|
@@ -2156,11 +2330,11 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
2156
2330
|
required: boolean;
|
|
2157
2331
|
allowedHosts?: string[] | undefined;
|
|
2158
2332
|
};
|
|
2159
|
-
actor?: "
|
|
2333
|
+
actor?: "member" | "staff" | undefined;
|
|
2160
2334
|
} | {
|
|
2161
2335
|
kind: "manual";
|
|
2162
2336
|
input: "none" | "quiz" | "photo";
|
|
2163
|
-
actor?: "
|
|
2337
|
+
actor?: "member" | "staff" | undefined;
|
|
2164
2338
|
} | {
|
|
2165
2339
|
kind: "automatic";
|
|
2166
2340
|
tracker?: {
|
|
@@ -2204,7 +2378,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
2204
2378
|
equals: string | number | boolean;
|
|
2205
2379
|
})[] | undefined;
|
|
2206
2380
|
enrollment?: "none" | "required" | undefined;
|
|
2207
|
-
since?: "
|
|
2381
|
+
since?: "window" | "activation" | "enrollment" | undefined;
|
|
2208
2382
|
historical?: "staff" | "claim" | "automatic" | undefined;
|
|
2209
2383
|
content?: true | undefined;
|
|
2210
2384
|
} | undefined;
|
|
@@ -2530,7 +2704,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
2530
2704
|
imageAlt?: string | undefined;
|
|
2531
2705
|
requirements?: ({
|
|
2532
2706
|
kind: "account";
|
|
2533
|
-
provider: "
|
|
2707
|
+
provider: "discord" | "google" | "apple" | "x";
|
|
2534
2708
|
} | {
|
|
2535
2709
|
kind: "wallet";
|
|
2536
2710
|
chain?: "solana" | "eip155" | "cosmos" | undefined;
|
|
@@ -2554,7 +2728,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
2554
2728
|
} | undefined;
|
|
2555
2729
|
} | undefined;
|
|
2556
2730
|
};
|
|
2557
|
-
integrations: ("
|
|
2731
|
+
integrations: ("discord" | "x")[];
|
|
2558
2732
|
fields: Record<string, {
|
|
2559
2733
|
kind: "point-ledger";
|
|
2560
2734
|
default: string;
|
|
@@ -2675,7 +2849,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
2675
2849
|
minLength: number;
|
|
2676
2850
|
maxLength: number;
|
|
2677
2851
|
};
|
|
2678
|
-
actor?: "
|
|
2852
|
+
actor?: "member" | "staff" | undefined;
|
|
2679
2853
|
} | {
|
|
2680
2854
|
kind: "manual";
|
|
2681
2855
|
input: "url";
|
|
@@ -2683,11 +2857,11 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
2683
2857
|
required: boolean;
|
|
2684
2858
|
allowedHosts?: string[] | undefined;
|
|
2685
2859
|
};
|
|
2686
|
-
actor?: "
|
|
2860
|
+
actor?: "member" | "staff" | undefined;
|
|
2687
2861
|
} | {
|
|
2688
2862
|
kind: "manual";
|
|
2689
2863
|
input: "none" | "quiz" | "photo";
|
|
2690
|
-
actor?: "
|
|
2864
|
+
actor?: "member" | "staff" | undefined;
|
|
2691
2865
|
} | {
|
|
2692
2866
|
kind: "automatic";
|
|
2693
2867
|
tracker?: {
|
|
@@ -2731,7 +2905,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
2731
2905
|
equals: string | number | boolean;
|
|
2732
2906
|
})[] | undefined;
|
|
2733
2907
|
enrollment?: "none" | "required" | undefined;
|
|
2734
|
-
since?: "
|
|
2908
|
+
since?: "window" | "activation" | "enrollment" | undefined;
|
|
2735
2909
|
historical?: "staff" | "claim" | "automatic" | undefined;
|
|
2736
2910
|
content?: true | undefined;
|
|
2737
2911
|
} | undefined;
|
|
@@ -2910,4 +3084,5 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
2910
3084
|
}): Promise<Decision>;
|
|
2911
3085
|
} & ResourceHandle<"quest">;
|
|
2912
3086
|
|
|
2913
|
-
export { AmountSetting, BalanceChain, ContentBody,
|
|
3087
|
+
export { AmountSetting, BalanceChain, ContentBody, ContentMetricName, ContractCall, ContractEvent, DiscordMessageData, DiscordMessageTextData, DiscordReactionData, DiscordReader, GroupHandle, IdentityKind, ImageReader, IntegrationModule, IntegrationModuleProvider, KnownIntegrationModule, LedgerHandle, LedgerReference, MemberCompletion, MemberIdentity, NftCollection, PointBalance, ProfileReferral, QuestHandle, QuestStation, ReferralHandle, RoleOf, Setting, SolanaProgram, SolanaSeed, SolanaTransactionAction, TelegramReader, Tracker, TrackerData, TrackerDataSchema, TrackerReader, TrackerTriggerContext, WalletBalanceSourceQuery, WalletInstruction, WalletNftSourceQuery, WalletProgramAccountSourceQuery, WalletProgramActivitySourceQuery, WalletReader, WalletStakeSourceQuery, WalletTransaction, Where, XReader, automatic, automaticFulfillment, badge, budget, calendar, content, count, customSource, decision, defineBadge, defineEngagementReward, defineLeaderboard, defineLedger, defineOffer, defineQuest, defineQuestType, defineReferral, defineTieredReward, defineTracker, discord, earned, evaluators, evidence, groupMembership, instruction, invoked, keyed, leaderboardTiesWarning, manual, once, perStation, pointLedgers, points, progress, questCompleted, received, rolling, settings, spent, staffHandover, streak, swapped, telegram, tiktok, untracked, wallet, x, youtube };
|
|
3088
|
+
export type { ContentData, ContentTrigger, ContentTriggerInput, EvaluationCalendar, EvaluationCalendarDay, EvaluationContext, EvaluationMember, KeyedContext, KeyedOptions, MemberCompletionQuery, Outcome, PerformanceContext, PerformanceOutcome, QuestKeyedContext, TrackerTrigger, TrackerTriggerInput, TriggerAdmission, XContentBody };
|