@domino-sdk/relay 1.68.0 → 1.69.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.
Files changed (77) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/{accounts-DnpKoJCo.d.ts → accounts-DD4gAOCe.d.ts} +25 -3
  3. package/dist/{action-9Xl0StBg.d.ts → action-BDFKqGlH.d.ts} +3 -2
  4. package/dist/{attempt-captures-DMNFMYFb.d.ts → attempt-captures-CbuCmthd.d.ts} +4 -3
  5. package/dist/authoring.d.ts +218 -43
  6. package/dist/authoring.js +73 -17
  7. package/dist/{automatic-outcomes-CQ3vpiQl.d.ts → automatic-outcomes-DE3vfi8g.d.ts} +11 -3
  8. package/dist/avatar.d.ts +2 -1
  9. package/dist/browser.d.ts +15 -14
  10. package/dist/browser.js +11 -11
  11. package/dist/{capability-error-CuI_F7yM.d.ts → capability-error-db7kO8-P.d.ts} +2 -1
  12. package/dist/{catalog-BLGie8Lh.d.ts → catalog-Cf3fHDNn.d.ts} +11 -3
  13. package/dist/{chunk-55WJVFWC.js → chunk-2A3BJ262.js} +2 -2
  14. package/dist/{chunk-P4TPW4SY.js → chunk-5RLIPTL7.js} +1 -1
  15. package/dist/{chunk-HXTKI34N.js → chunk-AZDZEQFK.js} +1 -1
  16. package/dist/{chunk-TYZFVL73.js → chunk-BRROI4CH.js} +4 -4
  17. package/dist/{chunk-6YTSRWRB.js → chunk-CQVKOD3B.js} +71 -4
  18. package/dist/{chunk-MEUAJIVO.js → chunk-CZ23KRVK.js} +2 -2
  19. package/dist/{chunk-DDJN2T5A.js → chunk-DIXYVGXO.js} +1 -1
  20. package/dist/{chunk-75KF633N.js → chunk-GEVARKEV.js} +1 -1
  21. package/dist/{chunk-VRZZB7CQ.js → chunk-LDO5GP7G.js} +1 -1
  22. package/dist/{chunk-SD74HD75.js → chunk-LGGD7S5T.js} +9 -9
  23. package/dist/{chunk-R3MNZKNJ.js → chunk-ME2KUAVJ.js} +1 -1
  24. package/dist/{chunk-DNPDR4Z7.js → chunk-ODJGTFPY.js} +6 -6
  25. package/dist/{chunk-6UBFSMCM.js → chunk-PO2ZDY27.js} +1 -1
  26. package/dist/{chunk-EXZVWQOQ.js → chunk-RKTMSTT7.js} +2 -2
  27. package/dist/{chunk-KKHENO57.js → chunk-SWLW4VN3.js} +2 -2
  28. package/dist/{chunk-CZ7NQ7W7.js → chunk-TCREFRPK.js} +3 -3
  29. package/dist/{chunk-5AKD4ZF3.js → chunk-UGM6DUB2.js} +8 -3
  30. package/dist/{chunk-IW46TW3A.js → chunk-VNEJH4NT.js} +26 -2
  31. package/dist/{chunk-4JSPMFO2.js → chunk-WNEQEDMU.js} +2 -2
  32. package/dist/{chunk-7YSVZA7A.js → chunk-WVK3G2J2.js} +1 -1
  33. package/dist/{client-BMif22WQ.d.ts → client-6eSYOl8h.d.ts} +33 -11
  34. package/dist/{dashboards-DMk-vL1q.d.ts → dashboards-DCOAXL54.d.ts} +6 -5
  35. package/dist/{deployments-BCr418BX.d.ts → deployments-BIfdCMd5.d.ts} +530 -337
  36. package/dist/{host-environment-FN4zg3hw.d.ts → host-environment-DUw5-Cvj.d.ts} +2 -1
  37. package/dist/{identity-integration-r76xaAax.d.ts → identity-integration-BlfOn8rc.d.ts} +3 -2
  38. package/dist/index.d.ts +16 -15
  39. package/dist/index.js +10 -10
  40. package/dist/internal.d.ts +34 -19
  41. package/dist/internal.js +40 -14
  42. package/dist/{limits-ByVRQePO.d.ts → limits-Ctaeq23J.d.ts} +3 -2
  43. package/dist/{offers-xcPbYaEv.d.ts → offers-COqHGbHm.d.ts} +4 -3
  44. package/dist/{participant-activity-DXRq4s6K.d.ts → participant-activity-BznrcePT.d.ts} +2 -1
  45. package/dist/{participant-rewards-BcWkBRn_.d.ts → participant-rewards-s5Gn23qb.d.ts} +23 -1
  46. package/dist/portal-proxy.d.ts +7 -4
  47. package/dist/portal-proxy.js +13 -17
  48. package/dist/profiles-CLDKZVFx.d.ts +370 -0
  49. package/dist/react/index.d.ts +50 -31
  50. package/dist/react/index.js +11 -11
  51. package/dist/{request-error-D_dUPLwo.d.ts → request-error-C24SY7n9.d.ts} +2 -1
  52. package/dist/{reward-deliveries-0VvT6LMj.d.ts → reward-deliveries-DFhYGJdx.d.ts} +3 -2
  53. package/dist/runtime/authoring.js +1 -1
  54. package/dist/runtime/chunks/HKAI5OQA.js +1 -0
  55. package/dist/runtime/manifest.json +3 -3
  56. package/dist/runtime/schema.js +1 -1
  57. package/dist/schema.d.ts +258 -176
  58. package/dist/schema.js +16 -8
  59. package/dist/server/index.d.ts +15 -14
  60. package/dist/server/index.js +45 -45
  61. package/dist/{sign-in-providers-C5_753DZ.d.ts → sign-in-providers-C97mRNbG.d.ts} +4 -3
  62. package/dist/solana.d.ts +142 -26
  63. package/dist/solana.js +449 -114
  64. package/dist/{streaks-0YuipsUQ.d.ts → streaks-MAqKHbHC.d.ts} +2 -1
  65. package/dist/{submission-input-CaL8drIh.d.ts → submission-input-BD7nORuh.d.ts} +4 -3
  66. package/dist/{telegram-browser-DLtHPRBI.d.ts → telegram-browser-gRMgGs7B.d.ts} +8 -7
  67. package/dist/telegram.d.ts +14 -12
  68. package/dist/telegram.js +2 -2
  69. package/dist/testing.d.ts +24 -15
  70. package/dist/testing.js +6 -6
  71. package/dist/{tracker-data-CAK942sx.d.ts → tracker-data-DQgX3FIc.d.ts} +198 -3
  72. package/dist/{transport-CkidqTOk.d.ts → transport-BLU8jrhg.d.ts} +3415 -2233
  73. package/dist/vite.d.ts +2 -1
  74. package/dist/{wallet-DQtJelQQ.d.ts → wallet-CPAjrW4k.d.ts} +52 -375
  75. package/dist/{wallet-browser-dpmr22Xv.d.ts → wallet-browser-BzPt_Qb5.d.ts} +3 -2
  76. package/package.json +6 -3
  77. package/dist/runtime/chunks/2UDZ6TPL.js +0 -1
@@ -1,21 +1,31 @@
1
- import { $ as EngagementBudget, a0 as leaderboardDefinitionSchema, _ as AuthoringIdentity, a1 as pointLedgerDeclarationSchema, a2 as referralAuthoringSchema, a3 as discordMessagesSourceSchema, a4 as DiscordMessageData, a5 as DiscordMessageTextData, a6 as discordReactionsSourceSchema, a7 as DiscordReactionData, a8 as KnownIntegrationModule, P as PointBalance, C as CampaignDefinition, a9 as SolanaTransactionAction, aa as TextReviewInput, ab as TextResult, ac as PhotoResult, ad as DiscordReader, ae as Decision, af as rewardSchema, ag as triggerSchema, ah as IntegrationModule, D as QuestPresentation, d as AvailabilityWindow, F as QuestProfile, ai as QuestStation, G as QuizEvidence, X as IntegrationModuleProvider, aj as TieredRewardDefinition } from './accounts-DnpKoJCo.js';
2
- export { ak as KnownIntegrationModuleProvider, al as defineCampaign, am as defineGroup } from './accounts-DnpKoJCo.js';
3
- import { x as xContentBodySchema, I as IdentityKind, c as customSourceSchema, W as WithRecordData, d as WithContent, e as WithAccountRoles, R as ResourceHandle, Q as QuestHandle, L as LedgerReference, G as GroupHandle, f as TrackerSource, t as trackerDefinitionSchema, g as Tracker, h as TrackerData, i as SourceRoles, j as LedgerHandle, b as TrackerDataSchema, k as xSearchSourceSchema, X as XTweet, l as XContentMetric, m as TrackerTriggerPolicy, n as Where, M as MemberIdentity, o as ReferralHandle, p as TrackerTriggerContext, q as TrackerReader, r as TrackerTriggerMode, s as RoleOf, u as WhereSetting, C as ContentBody, B as BadgeHandle, v as ContentMetricName } from './tracker-data-CAK942sx.js';
4
- export { w as LedgerSetting, y as TrackerPage, z as TrackerReadQuery, A as trackerDataSchema, D as trackerTriggerContextSchema } from './tracker-data-CAK942sx.js';
5
- import { R as ResourceSource, M as MemberCompletion, B as Budget, A as AuthorBudget, a as Announcement } from './capability-error-CuI_F7yM.js';
6
- 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-CuI_F7yM.js';
7
- import { N as NftCollection, w as ContractCall, x as ContractEvent, y as SolanaProgram, z as WalletBalanceSourceQuery, B as WalletProgramActivitySourceQuery, D as WalletNftSourceQuery, E as WalletStakeSourceQuery, F as WalletTransaction, G as WalletInstruction, f as ProfileReferral, H as WalletReader } from './wallet-DQtJelQQ.js';
8
- export { I as ContractCallParts, J as ContractCallReturnType, K as ContractEventInput, M as ContractEventParts, Q as ContractFunction, R as CosmosDenom, a as CosmosNetwork, T as EvmChainId, U as NftCollectionParts, V as NftStandard, X as SolanaSeed, Y as SolanaSeedInteger, Z as WalletBalance, _ as WalletBalanceChange, v as WalletBalanceQuery, $ as WalletBalanceSample, a0 as WalletCall, a1 as WalletCallArgument, a2 as WalletCallQuery, a3 as WalletDelegations, a4 as WalletDelegationsQuery, a5 as WalletEventCondition, a6 as WalletEventValue, a7 as WalletEvents, a8 as WalletEventsQuery, a9 as WalletNftSample, aa as WalletNfts, ab as WalletNftsQuery, ac as WalletProgramAccount, ad as WalletProgramAccountQuery, ae as WalletProgramActivity, af as WalletStake, ag as WalletStakeQuery, ah as WalletStakeSample, ai as WalletTransactions, aj as WalletTransactionsQuery, ak as cosmosDenomSchema, al as cosmosNetworkSchema, am as isContractCall, an as isContractEvent, ao as isEvmChainId, ap as isNftCollection, aq as isSolanaProgram, ar as maxWalletEventLogs, as as maxWalletEventLookback, at as maxWalletTransactionLookback, au as maxWalletTransactions, av as parseContractCall, aw as parseContractEvent, ax as parseContractFunction, ay as parseNftCollection } from './wallet-DQtJelQQ.js';
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-DD4gAOCe.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-DD4gAOCe.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-DQgX3FIc.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-DQgX3FIc.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-CPAjrW4k.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 isEvmChainId, ag as isNftCollection, ah as isSolanaProgram, ai as maxWalletEventLogs, aj as maxWalletEventLookback, ak as maxWalletTransactionLookback, al as maxWalletTransactions, am as parseContractCall, an as parseContractEvent, ao as parseContractFunction, ap as parseNftCollection } from './wallet-CPAjrW4k.js';
9
15
  import * as z from 'zod';
10
16
  export { z } from 'zod';
11
- import { g as badgeDeclarationSchema, h as OfferAuthoring, B as Badge } from './offers-xcPbYaEv.js';
12
- import { a as StreakPolicy, Q as QuizContent } from './streaks-0YuipsUQ.js';
13
- import { S as Setting, A as AmountSetting, B as BalanceChain, a as BoundSettings } from './dashboards-DMk-vL1q.js';
14
- export { D as DashboardInput, b as DashboardPanelInput, d as defineDashboard } from './dashboards-DMk-vL1q.js';
15
- import { e as TelegramReader, P as Prerequisite, b as TextEvidence, U as UrlEvidence, c as TextOptions, d as UrlOptions } from './submission-input-CaL8drIh.js';
16
- 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-CaL8drIh.js';
17
- import { I as ImageReader, X as XReader } from './limits-ByVRQePO.js';
18
- export { L as Limits, l as limits } from './limits-ByVRQePO.js';
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-DCOAXL54.js';
22
+ import { BoundSettings } from './schema.js';
23
+ export { D as DashboardInput, b as DashboardPanelInput, d as defineDashboard } from './dashboards-DCOAXL54.js';
24
+ import { e as TelegramReader } from './submission-input-BD7nORuh.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-BD7nORuh.js';
27
+ import { I as ImageReader, X as XReader } from './limits-Ctaeq23J.js';
28
+ export { L as Limits, l as limits } from './limits-Ctaeq23J.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: "participants" | "public";
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?: ("x" | "discord" | "member" | "wallet" | `app:${string}`)[] | undefined;
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?: ("x" | "discord" | "member" | "wallet" | `app:${string}`)[] | undefined;
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?: ("x" | "discord" | "member" | "wallet" | `app:${string}`)[] | undefined;
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?: ("x" | "discord" | "member" | "wallet" | `app:${string}`)[] | undefined;
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 and 20 `wallet.programActivity()`
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?: ("x" | "discord" | "member" | "wallet" | `app:${string}`)[] | undefined;
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?: ("x" | "discord" | "member" | "wallet" | `app:${string}`)[] | undefined;
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?: ("x" | "discord" | "member" | "wallet" | `app:${string}`)[] | undefined;
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?: ("x" | "discord" | "member" | "wallet" | `app:${string}`)[] | undefined;
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" | `eip155:${number}` | "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" | "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1", string>>>>;
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 or a Metaplex collection NFT on its cluster. Typed as the query's collection, so it passes to
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: "x" | "discord" | "google" | "apple";
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: ("x" | "discord")[];
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?: "staff" | "member" | undefined;
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?: "staff" | "member" | undefined;
2333
+ actor?: "member" | "staff" | undefined;
2160
2334
  } | {
2161
2335
  kind: "manual";
2162
2336
  input: "none" | "quiz" | "photo";
2163
- actor?: "staff" | "member" | undefined;
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?: "activation" | "window" | "enrollment" | undefined;
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: "x" | "discord" | "google" | "apple";
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: ("x" | "discord")[];
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?: "staff" | "member" | undefined;
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?: "staff" | "member" | undefined;
2860
+ actor?: "member" | "staff" | undefined;
2687
2861
  } | {
2688
2862
  kind: "manual";
2689
2863
  input: "none" | "quiz" | "photo";
2690
- actor?: "staff" | "member" | undefined;
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?: "activation" | "window" | "enrollment" | undefined;
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, type ContentData, ContentMetricName, type ContentTrigger, type ContentTriggerInput, ContractCall, ContractEvent, DiscordMessageData, DiscordMessageTextData, DiscordReactionData, DiscordReader, type EvaluationCalendar, type EvaluationCalendarDay, type EvaluationContext, type EvaluationMember, GroupHandle, IdentityKind, ImageReader, IntegrationModule, IntegrationModuleProvider, type KeyedContext, type KeyedOptions, KnownIntegrationModule, LedgerHandle, LedgerReference, MemberCompletion, type MemberCompletionQuery, MemberIdentity, NftCollection, type Outcome, type PerformanceContext, type PerformanceOutcome, PointBalance, ProfileReferral, QuestHandle, type QuestKeyedContext, QuestStation, ReferralHandle, RoleOf, Setting, SolanaProgram, SolanaTransactionAction, TelegramReader, Tracker, TrackerData, TrackerDataSchema, TrackerReader, type TrackerTrigger, TrackerTriggerContext, type TrackerTriggerInput, type TriggerAdmission, WalletBalanceSourceQuery, WalletInstruction, WalletNftSourceQuery, WalletProgramActivitySourceQuery, WalletReader, WalletStakeSourceQuery, WalletTransaction, Where, type XContentBody, 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 };
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 };