@domino-sdk/relay 1.72.0 → 1.74.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/dist/{accounts-COLmXRbW.d.ts → accounts-C9as33l1.d.ts} +2 -2
- package/dist/{attempt-captures-CVl161qB.d.ts → attempt-captures-DU4vi20Y.d.ts} +2 -2
- package/dist/authoring.d.ts +103 -106
- package/dist/authoring.js +187 -286
- package/dist/{automatic-outcomes-5l68PGr1.d.ts → automatic-outcomes-D0yMHSHL.d.ts} +2 -2
- package/dist/browser.d.ts +9 -9
- package/dist/browser.js +11 -11
- package/dist/{dashboards-DXpjHnq-.d.ts → capability-error-Bn6cCqof.d.ts} +298 -5
- package/dist/{catalog-BR3g-1H9.d.ts → catalog-9I6t18qP.d.ts} +2 -2
- package/dist/{chunk-W6DBNBMT.js → chunk-2LURSPDM.js} +232 -232
- package/dist/{chunk-VNEJH4NT.js → chunk-2M5FM7FW.js} +21 -0
- package/dist/{chunk-74SMLZZ5.js → chunk-6TDHRGBM.js} +1522 -1278
- package/dist/{chunk-QG6XVOOO.js → chunk-724CKAC7.js} +4 -4
- package/dist/{chunk-I7XIBXT2.js → chunk-7I7P5UVC.js} +3 -3
- package/dist/{chunk-LDO5GP7G.js → chunk-AL5XMXPO.js} +1 -1
- package/dist/{chunk-TW4RABVS.js → chunk-CW7FJ5PX.js} +1 -1
- package/dist/{chunk-BXUF3CRL.js → chunk-DNOLNMCW.js} +9 -9
- package/dist/{chunk-5RLIPTL7.js → chunk-E73HZCG2.js} +1 -1
- package/dist/{chunk-UEVZ3TST.js → chunk-ELHMJODS.js} +1 -1
- package/dist/{chunk-ASBDB436.js → chunk-F66GGNKD.js} +1 -1
- package/dist/{chunk-ETGKC2SB.js → chunk-HCOLMJFX.js} +2 -2
- package/dist/chunk-JZT2NLSG.js +7201 -0
- package/dist/{chunk-FGZGL5PG.js → chunk-KGZ7SRKJ.js} +2 -2
- package/dist/{chunk-3KKRXN5E.js → chunk-KP55TMCC.js} +1 -1
- package/dist/chunk-NI6XRGEL.js +374 -0
- package/dist/{chunk-VFHLMNYV.js → chunk-RALBAKKX.js} +1 -1
- package/dist/chunk-SVZ3QWHT.js +142 -0
- package/dist/{chunk-CVJTIVAP.js → chunk-T4PTFCSB.js} +2 -2
- package/dist/{chunk-KIRXE37T.js → chunk-TGQNNMCY.js} +6 -6
- package/dist/{client-B__hMWtK.d.ts → client-B2aVGf38.d.ts} +7 -7
- package/dist/{deployments-CT2kQloT.d.ts → deployments-CGV1rIZm.d.ts} +107 -107
- package/dist/{identity-integration-ClX4oUAu.d.ts → identity-integration-C03rUYc0.d.ts} +3 -3
- package/dist/index.d.ts +10 -10
- package/dist/index.js +10 -10
- package/dist/internal.d.ts +36197 -18
- package/dist/internal.js +518 -15
- package/dist/{limits-B7wbnWhd.d.ts → limits-p-Mg0oSi.d.ts} +1 -1
- package/dist/{offers-D4pyeY9b.d.ts → offers-CnMyMeQo.d.ts} +2 -2
- package/dist/portal-proxy.d.ts +2 -2
- package/dist/portal-proxy.js +10 -10
- package/dist/react/index.d.ts +11 -11
- package/dist/react/index.js +11 -11
- package/dist/{reward-deliveries-HGpj1VFz.d.ts → reward-deliveries-zWfsgc6m.d.ts} +1 -1
- package/dist/runtime/authoring.js +1 -1
- package/dist/runtime/chunks/NYEWMPJH.js +1 -0
- package/dist/runtime/manifest.json +3 -3
- package/dist/runtime/schema.js +1 -1
- package/dist/schema.d.ts +35 -60
- package/dist/schema.js +10 -8
- package/dist/server/index.d.ts +13 -13
- package/dist/server/index.js +2972 -4528
- package/dist/{sign-in-providers-lbOXCF8N.d.ts → sign-in-providers-BG22ZZkl.d.ts} +2 -2
- package/dist/solana.d.ts +13 -13
- package/dist/solana.js +9 -9
- package/dist/stake-BSVjB3BJ.d.ts +254 -0
- package/dist/{station-check-in-qBiaftfE.d.ts → station-check-in-a1deSjbm.d.ts} +5 -5
- package/dist/{submission-input-U4aIkJuT.d.ts → submission-input-DBDLkTF8.d.ts} +2 -2
- package/dist/telegram.d.ts +7 -7
- package/dist/telegram.js +2 -2
- package/dist/testing.d.ts +159 -160
- package/dist/testing.js +47 -344
- package/dist/{tracker-data-2BYXZjsN.d.ts → tracker-data-Dwq9dWEm.d.ts} +474 -221
- package/dist/{transport-DcRXDZ1j.d.ts → transport-D77Rbf4D.d.ts} +77050 -74062
- package/dist/{wallet-BqswMAqZ.d.ts → wallet-CeqgtXNm.d.ts} +2 -7
- package/dist/{wallet-browser-B5r7u3xB.d.ts → wallet-browser-Cucpqn3F.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/capability-error-db7kO8-P.d.ts +0 -297
- package/dist/chunk-2UELTHW6.js +0 -467
- package/dist/chunk-GHBYWDEZ.js +0 -94
- package/dist/chunk-HN7DE2UN.js +0 -53
- package/dist/runtime/chunks/A7G5P76B.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { m as SolanaSeed, S as SolanaIdlSource, v as WalletProgramAccountSourceQuery, q as WalletBalanceSourceQuery, r as WalletProgramActivitySourceQuery, t as WalletNftSourceQuery, N as NftCollection, u as WalletStakeSourceQuery } from './wallet-CeqgtXNm.js';
|
|
3
3
|
|
|
4
4
|
declare const resourceKind: unique symbol;
|
|
5
5
|
/** A resource defined in code. The type-only marker never changes its serialized shape. */
|
|
@@ -19,6 +19,354 @@ declare const ledgerSettingSchema: z.core.$ZodBranded<z.ZodUnion<[z.ZodString, z
|
|
|
19
19
|
type LedgerSetting = z.output<typeof ledgerSettingSchema>;
|
|
20
20
|
type LedgerReference = LedgerHandle | LedgerSetting;
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* The namespace of the tracker source `wallet.programAccounts()` makes. Relay alone writes its
|
|
24
|
+
* records, by sampling members' linked Solana wallets once a day; ingestion into it is refused.
|
|
25
|
+
*/
|
|
26
|
+
declare const walletProgramAccountsNamespace = "wallet-program-accounts";
|
|
27
|
+
/**
|
|
28
|
+
* What a `wallet.programAccounts()` source samples: the Solana cluster's CAIP-2 ID (mainnet or
|
|
29
|
+
* devnet), the program, the account type as its IDL names it, the seeds each wallet's account
|
|
30
|
+
* derives from (with `{ wallet: true }` for the wallet), the integer field sampled, and the IDL that
|
|
31
|
+
* decodes it. Relay stores `idl` when the tracker is published: the one pasted, else the one the
|
|
32
|
+
* program publishes on chain.
|
|
33
|
+
*/
|
|
34
|
+
declare const walletProgramAccountSourceSchema: z.ZodObject<{
|
|
35
|
+
chain: z.ZodString;
|
|
36
|
+
program: z.ZodString;
|
|
37
|
+
account: z.ZodString;
|
|
38
|
+
seeds: z.ZodArray<z.ZodType<SolanaSeed, unknown, z.core.$ZodTypeInternals<SolanaSeed, unknown>>>;
|
|
39
|
+
field: z.ZodString;
|
|
40
|
+
idl: z.ZodOptional<z.ZodObject<{
|
|
41
|
+
program: z.ZodString;
|
|
42
|
+
source: z.ZodType<SolanaIdlSource>;
|
|
43
|
+
idl: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
44
|
+
}, z.core.$strict>>;
|
|
45
|
+
}, z.core.$strict>;
|
|
46
|
+
/**
|
|
47
|
+
* `wallet.programAccounts({ chain, program, account, seeds, field, idl })` as the management API
|
|
48
|
+
* names it: `idl` is an IDL to paste, as `wallet.programAccounts()` takes it.
|
|
49
|
+
*/
|
|
50
|
+
declare const walletProgramAccountsTrackerSourceSchema: z.ZodObject<{
|
|
51
|
+
idl: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
52
|
+
chain: z.ZodString;
|
|
53
|
+
program: z.ZodString;
|
|
54
|
+
account: z.ZodString;
|
|
55
|
+
seeds: z.ZodArray<z.ZodType<SolanaSeed, unknown, z.core.$ZodTypeInternals<SolanaSeed, unknown>>>;
|
|
56
|
+
field: z.ZodString;
|
|
57
|
+
kind: z.ZodLiteral<"wallet-program-accounts">;
|
|
58
|
+
}, z.core.$strict>;
|
|
59
|
+
/** A program account source as `management.trackers.create` names it. */
|
|
60
|
+
type WalletProgramAccountsTrackerSource = z.infer<typeof walletProgramAccountsTrackerSourceSchema>;
|
|
61
|
+
/**
|
|
62
|
+
* The program account field a `wallet.programAccounts()` source stores, with a pasted `idl` as
|
|
63
|
+
* Relay stores it. Throws on settings it can't have.
|
|
64
|
+
*/
|
|
65
|
+
declare function walletProgramAccountSource(query: WalletProgramAccountSourceQuery): {
|
|
66
|
+
chain: string;
|
|
67
|
+
program: string;
|
|
68
|
+
account: string;
|
|
69
|
+
seeds: SolanaSeed[];
|
|
70
|
+
field: string;
|
|
71
|
+
idl?: {
|
|
72
|
+
program: string;
|
|
73
|
+
source: SolanaIdlSource;
|
|
74
|
+
idl: Record<string, z.core.util.JSONType>;
|
|
75
|
+
} | undefined;
|
|
76
|
+
};
|
|
77
|
+
/** What custom sources and tracker responses read of this kind: no builder, so they stay small. */
|
|
78
|
+
declare const walletProgramAccountsField: {
|
|
79
|
+
readonly namespace: "wallet-program-accounts";
|
|
80
|
+
readonly field: "programAccount";
|
|
81
|
+
readonly source: z.ZodObject<{
|
|
82
|
+
chain: z.ZodString;
|
|
83
|
+
program: z.ZodString;
|
|
84
|
+
account: z.ZodString;
|
|
85
|
+
seeds: z.ZodArray<z.ZodType<SolanaSeed, unknown, z.core.$ZodTypeInternals<SolanaSeed, unknown>>>;
|
|
86
|
+
field: z.ZodString;
|
|
87
|
+
idl: z.ZodOptional<z.ZodObject<{
|
|
88
|
+
program: z.ZodString;
|
|
89
|
+
source: z.ZodType<SolanaIdlSource>;
|
|
90
|
+
idl: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
91
|
+
}, z.core.$strict>>;
|
|
92
|
+
}, z.core.$strict>;
|
|
93
|
+
readonly misplaced: "Only wallet.programAccounts() samples program accounts";
|
|
94
|
+
readonly stored: z.ZodObject<{
|
|
95
|
+
chain: z.ZodString;
|
|
96
|
+
program: z.ZodString;
|
|
97
|
+
account: z.ZodString;
|
|
98
|
+
seeds: z.ZodArray<z.ZodJSONSchema>;
|
|
99
|
+
field: z.ZodString;
|
|
100
|
+
idl: z.ZodOptional<z.ZodObject<{
|
|
101
|
+
program: z.ZodString;
|
|
102
|
+
source: z.ZodString;
|
|
103
|
+
idl: z.ZodJSONSchema;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
};
|
|
107
|
+
declare const walletProgramAccounts: {
|
|
108
|
+
readonly namespace: "wallet-program-accounts";
|
|
109
|
+
readonly field: "programAccount";
|
|
110
|
+
readonly source: z.ZodObject<{
|
|
111
|
+
chain: z.ZodString;
|
|
112
|
+
program: z.ZodString;
|
|
113
|
+
account: z.ZodString;
|
|
114
|
+
seeds: z.ZodArray<z.ZodType<SolanaSeed, unknown, z.core.$ZodTypeInternals<SolanaSeed, unknown>>>;
|
|
115
|
+
field: z.ZodString;
|
|
116
|
+
idl: z.ZodOptional<z.ZodObject<{
|
|
117
|
+
program: z.ZodString;
|
|
118
|
+
source: z.ZodType<SolanaIdlSource>;
|
|
119
|
+
idl: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
120
|
+
}, z.core.$strict>>;
|
|
121
|
+
}, z.core.$strict>;
|
|
122
|
+
readonly misplaced: "Only wallet.programAccounts() samples program accounts";
|
|
123
|
+
readonly stored: z.ZodObject<{
|
|
124
|
+
chain: z.ZodString;
|
|
125
|
+
program: z.ZodString;
|
|
126
|
+
account: z.ZodString;
|
|
127
|
+
seeds: z.ZodArray<z.ZodJSONSchema>;
|
|
128
|
+
field: z.ZodString;
|
|
129
|
+
idl: z.ZodOptional<z.ZodObject<{
|
|
130
|
+
program: z.ZodString;
|
|
131
|
+
source: z.ZodString;
|
|
132
|
+
idl: z.ZodJSONSchema;
|
|
133
|
+
}, z.core.$strip>>;
|
|
134
|
+
}, z.core.$strip>;
|
|
135
|
+
} & {
|
|
136
|
+
readonly builder: "programAccounts";
|
|
137
|
+
readonly sample: z.ZodObject<{
|
|
138
|
+
amount: z.ZodNullable<z.ZodString>;
|
|
139
|
+
pda: z.ZodString;
|
|
140
|
+
block: z.ZodString;
|
|
141
|
+
}, z.core.$strip>;
|
|
142
|
+
readonly management: z.ZodObject<{
|
|
143
|
+
idl: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
144
|
+
chain: z.ZodString;
|
|
145
|
+
program: z.ZodString;
|
|
146
|
+
account: z.ZodString;
|
|
147
|
+
seeds: z.ZodArray<z.ZodType<SolanaSeed, unknown, z.core.$ZodTypeInternals<SolanaSeed, unknown>>>;
|
|
148
|
+
field: z.ZodString;
|
|
149
|
+
kind: z.ZodLiteral<"wallet-program-accounts">;
|
|
150
|
+
}, z.core.$strict>;
|
|
151
|
+
readonly create: "own";
|
|
152
|
+
readonly managementSettings: ({ idl, ...programAccount }: z.output<typeof walletProgramAccountsField.stored>) => {
|
|
153
|
+
idl?: z.core.util.JSONType | undefined;
|
|
154
|
+
chain: string;
|
|
155
|
+
program: string;
|
|
156
|
+
account: string;
|
|
157
|
+
seeds: z.core.util.JSONType[];
|
|
158
|
+
field: string;
|
|
159
|
+
};
|
|
160
|
+
readonly limit: 10;
|
|
161
|
+
readonly settings: typeof walletProgramAccountSource;
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
/** Every wallet read kind. */
|
|
165
|
+
declare const walletReadKinds: readonly [{
|
|
166
|
+
readonly namespace: "wallet-balances";
|
|
167
|
+
readonly field: "balance";
|
|
168
|
+
readonly source: z.ZodObject<{
|
|
169
|
+
chain: z.ZodString;
|
|
170
|
+
token: z.ZodNullable<z.ZodString>;
|
|
171
|
+
}, z.core.$strict>;
|
|
172
|
+
readonly misplaced: "Only wallet.balances() samples a balance";
|
|
173
|
+
readonly stored: z.ZodObject<{
|
|
174
|
+
chain: z.ZodString;
|
|
175
|
+
token: z.ZodNullable<z.ZodString>;
|
|
176
|
+
}, z.core.$strict>;
|
|
177
|
+
} & {
|
|
178
|
+
readonly builder: "balances";
|
|
179
|
+
readonly sample: z.ZodObject<{
|
|
180
|
+
amount: z.ZodString;
|
|
181
|
+
decimals: z.ZodNullable<z.ZodNumber>;
|
|
182
|
+
block: z.ZodString;
|
|
183
|
+
}, z.core.$strip>;
|
|
184
|
+
readonly management: z.ZodObject<{
|
|
185
|
+
chain: z.ZodString;
|
|
186
|
+
token: z.ZodNullable<z.ZodString>;
|
|
187
|
+
kind: z.ZodLiteral<"wallet-balances">;
|
|
188
|
+
}, z.core.$strict>;
|
|
189
|
+
readonly create: "managed";
|
|
190
|
+
readonly limit: 5;
|
|
191
|
+
readonly settings: (query: WalletBalanceSourceQuery) => {
|
|
192
|
+
chain: string;
|
|
193
|
+
token: string | null;
|
|
194
|
+
};
|
|
195
|
+
}, {
|
|
196
|
+
readonly namespace: "wallet-program-activity";
|
|
197
|
+
readonly field: "activity";
|
|
198
|
+
readonly source: z.ZodObject<{
|
|
199
|
+
chain: z.ZodString;
|
|
200
|
+
program: z.ZodString;
|
|
201
|
+
instruction: z.ZodNullable<z.ZodString>;
|
|
202
|
+
mint: z.ZodNullable<z.ZodString>;
|
|
203
|
+
minAmount: z.ZodNullable<z.ZodString>;
|
|
204
|
+
anySigner: z.ZodBoolean;
|
|
205
|
+
}, z.core.$strict>;
|
|
206
|
+
readonly misplaced: "Only wallet.programActivity() records program activity";
|
|
207
|
+
readonly stored: z.ZodObject<{
|
|
208
|
+
chain: z.ZodString;
|
|
209
|
+
program: z.ZodString;
|
|
210
|
+
instruction: z.ZodNullable<z.ZodString>;
|
|
211
|
+
mint: z.ZodNullable<z.ZodString>;
|
|
212
|
+
minAmount: z.ZodNullable<z.ZodString>;
|
|
213
|
+
anySigner: z.ZodBoolean;
|
|
214
|
+
}, z.core.$strip>;
|
|
215
|
+
} & {
|
|
216
|
+
readonly builder: "programActivity";
|
|
217
|
+
readonly sample: z.ZodObject<{
|
|
218
|
+
signature: z.ZodString;
|
|
219
|
+
slot: z.ZodString;
|
|
220
|
+
timestamp: z.ZodNumber;
|
|
221
|
+
signer: z.ZodBoolean;
|
|
222
|
+
instruction: z.ZodNullable<z.ZodString>;
|
|
223
|
+
amount: z.ZodNullable<z.ZodString>;
|
|
224
|
+
delta: z.ZodNullable<z.ZodString>;
|
|
225
|
+
}, z.core.$strip>;
|
|
226
|
+
readonly management: z.ZodObject<{
|
|
227
|
+
chain: z.ZodString;
|
|
228
|
+
program: z.ZodString;
|
|
229
|
+
instruction: z.ZodNullable<z.ZodString>;
|
|
230
|
+
mint: z.ZodNullable<z.ZodString>;
|
|
231
|
+
minAmount: z.ZodNullable<z.ZodString>;
|
|
232
|
+
anySigner: z.ZodBoolean;
|
|
233
|
+
kind: z.ZodLiteral<"wallet-program-activity">;
|
|
234
|
+
}, z.core.$strict>;
|
|
235
|
+
readonly create: "own";
|
|
236
|
+
readonly limit: 20;
|
|
237
|
+
readonly settings: (query: WalletProgramActivitySourceQuery) => {
|
|
238
|
+
chain: string;
|
|
239
|
+
program: string;
|
|
240
|
+
instruction: string | null;
|
|
241
|
+
mint: string | null;
|
|
242
|
+
minAmount: string | null;
|
|
243
|
+
anySigner: boolean;
|
|
244
|
+
};
|
|
245
|
+
}, {
|
|
246
|
+
readonly namespace: "wallet-nfts";
|
|
247
|
+
readonly field: "nfts";
|
|
248
|
+
readonly source: z.ZodObject<{
|
|
249
|
+
collection: z.ZodString;
|
|
250
|
+
}, z.core.$strict>;
|
|
251
|
+
readonly misplaced: "Only wallet.nfts() samples NFTs";
|
|
252
|
+
readonly stored: z.ZodObject<{
|
|
253
|
+
collection: z.ZodString;
|
|
254
|
+
}, z.core.$strip>;
|
|
255
|
+
} & {
|
|
256
|
+
readonly builder: "nfts";
|
|
257
|
+
readonly sample: z.ZodObject<{
|
|
258
|
+
count: z.ZodString;
|
|
259
|
+
block: z.ZodString;
|
|
260
|
+
}, z.core.$strip>;
|
|
261
|
+
readonly management: z.ZodObject<{
|
|
262
|
+
collection: z.ZodString;
|
|
263
|
+
kind: z.ZodLiteral<"wallet-nfts">;
|
|
264
|
+
}, z.core.$strict>;
|
|
265
|
+
readonly create: "own";
|
|
266
|
+
readonly limit: 5;
|
|
267
|
+
readonly settings: (query: WalletNftSourceQuery) => {
|
|
268
|
+
collection: NftCollection;
|
|
269
|
+
};
|
|
270
|
+
}, {
|
|
271
|
+
readonly namespace: "wallet-stake";
|
|
272
|
+
readonly field: "stake";
|
|
273
|
+
readonly source: z.ZodObject<{
|
|
274
|
+
chain: z.ZodString;
|
|
275
|
+
voteAccount: z.ZodNullable<z.ZodString>;
|
|
276
|
+
}, z.core.$strict>;
|
|
277
|
+
readonly misplaced: "Only wallet.stake() samples stake";
|
|
278
|
+
readonly stored: z.ZodObject<{
|
|
279
|
+
chain: z.ZodString;
|
|
280
|
+
voteAccount: z.ZodNullable<z.ZodString>;
|
|
281
|
+
}, z.core.$strip>;
|
|
282
|
+
} & {
|
|
283
|
+
readonly builder: "stake";
|
|
284
|
+
readonly sample: z.ZodObject<{
|
|
285
|
+
amount: z.ZodString;
|
|
286
|
+
activating: z.ZodString;
|
|
287
|
+
deactivating: z.ZodString;
|
|
288
|
+
block: z.ZodString;
|
|
289
|
+
}, z.core.$strip>;
|
|
290
|
+
readonly management: z.ZodObject<{
|
|
291
|
+
chain: z.ZodString;
|
|
292
|
+
voteAccount: z.ZodNullable<z.ZodString>;
|
|
293
|
+
kind: z.ZodLiteral<"wallet-stake">;
|
|
294
|
+
}, z.core.$strict>;
|
|
295
|
+
readonly create: "own";
|
|
296
|
+
readonly limit: 5;
|
|
297
|
+
readonly settings: (query?: WalletStakeSourceQuery) => {
|
|
298
|
+
chain: string;
|
|
299
|
+
voteAccount: string | null;
|
|
300
|
+
};
|
|
301
|
+
}, {
|
|
302
|
+
readonly namespace: "wallet-program-accounts";
|
|
303
|
+
readonly field: "programAccount";
|
|
304
|
+
readonly source: z.ZodObject<{
|
|
305
|
+
chain: z.ZodString;
|
|
306
|
+
program: z.ZodString;
|
|
307
|
+
account: z.ZodString;
|
|
308
|
+
seeds: z.ZodArray<z.ZodType<SolanaSeed, unknown, z.core.$ZodTypeInternals<SolanaSeed, unknown>>>;
|
|
309
|
+
field: z.ZodString;
|
|
310
|
+
idl: z.ZodOptional<z.ZodObject<{
|
|
311
|
+
program: z.ZodString;
|
|
312
|
+
source: z.ZodType<SolanaIdlSource>;
|
|
313
|
+
idl: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
314
|
+
}, z.core.$strict>>;
|
|
315
|
+
}, z.core.$strict>;
|
|
316
|
+
readonly misplaced: "Only wallet.programAccounts() samples program accounts";
|
|
317
|
+
readonly stored: z.ZodObject<{
|
|
318
|
+
chain: z.ZodString;
|
|
319
|
+
program: z.ZodString;
|
|
320
|
+
account: z.ZodString;
|
|
321
|
+
seeds: z.ZodArray<z.ZodJSONSchema>;
|
|
322
|
+
field: z.ZodString;
|
|
323
|
+
idl: z.ZodOptional<z.ZodObject<{
|
|
324
|
+
program: z.ZodString;
|
|
325
|
+
source: z.ZodString;
|
|
326
|
+
idl: z.ZodJSONSchema;
|
|
327
|
+
}, z.core.$strip>>;
|
|
328
|
+
}, z.core.$strip>;
|
|
329
|
+
} & {
|
|
330
|
+
readonly builder: "programAccounts";
|
|
331
|
+
readonly sample: z.ZodObject<{
|
|
332
|
+
amount: z.ZodNullable<z.ZodString>;
|
|
333
|
+
pda: z.ZodString;
|
|
334
|
+
block: z.ZodString;
|
|
335
|
+
}, z.core.$strip>;
|
|
336
|
+
readonly management: z.ZodObject<{
|
|
337
|
+
idl: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
338
|
+
chain: z.ZodString;
|
|
339
|
+
program: z.ZodString;
|
|
340
|
+
account: z.ZodString;
|
|
341
|
+
seeds: z.ZodArray<z.ZodType<SolanaSeed, unknown, z.core.$ZodTypeInternals<SolanaSeed, unknown>>>;
|
|
342
|
+
field: z.ZodString;
|
|
343
|
+
kind: z.ZodLiteral<"wallet-program-accounts">;
|
|
344
|
+
}, z.core.$strict>;
|
|
345
|
+
readonly create: "own";
|
|
346
|
+
readonly managementSettings: ({ idl, ...programAccount }: z.output<typeof walletProgramAccountsField.stored>) => {
|
|
347
|
+
idl?: z.core.util.JSONType | undefined;
|
|
348
|
+
chain: string;
|
|
349
|
+
program: string;
|
|
350
|
+
account: string;
|
|
351
|
+
seeds: z.core.util.JSONType[];
|
|
352
|
+
field: string;
|
|
353
|
+
};
|
|
354
|
+
readonly limit: 10;
|
|
355
|
+
readonly settings: (query: WalletProgramAccountSourceQuery) => {
|
|
356
|
+
chain: string;
|
|
357
|
+
program: string;
|
|
358
|
+
account: string;
|
|
359
|
+
seeds: SolanaSeed[];
|
|
360
|
+
field: string;
|
|
361
|
+
idl?: {
|
|
362
|
+
program: string;
|
|
363
|
+
source: SolanaIdlSource;
|
|
364
|
+
idl: Record<string, z.core.util.JSONType>;
|
|
365
|
+
} | undefined;
|
|
366
|
+
};
|
|
367
|
+
}];
|
|
368
|
+
type WalletReadKinds = (typeof walletReadKinds)[number];
|
|
369
|
+
|
|
22
370
|
/** Keep provider fields, including verification details, rather than projecting them away. */
|
|
23
371
|
declare const xTweetSchema: z.ZodObject<{
|
|
24
372
|
id: z.ZodString;
|
|
@@ -209,86 +557,12 @@ type XContentMetric = (typeof xContentMetrics)[number];
|
|
|
209
557
|
declare const customContentSchema: z.ZodObject<{
|
|
210
558
|
metrics: z.ZodArray<z.ZodString>;
|
|
211
559
|
}, z.core.$strict>;
|
|
212
|
-
|
|
213
|
-
* What a `wallet.balances()` source samples: a chain's CAIP-2 ID (Solana mainnet or devnet, an EVM
|
|
214
|
-
* chain or a Cosmos SDK chain) and the token as written in code (an SPL or Token-2022 mint, an ERC-20
|
|
215
|
-
* contract or a Cosmos bank denomination), null for a native coin.
|
|
216
|
-
*/
|
|
217
|
-
declare const walletBalanceSourceSchema: z.ZodObject<{
|
|
218
|
-
chain: z.ZodString;
|
|
219
|
-
token: z.ZodNullable<z.ZodString>;
|
|
220
|
-
}, z.core.$strict>;
|
|
221
|
-
/**
|
|
222
|
-
* What a `wallet.programActivity()` source records: the Solana cluster's CAIP-2 ID (mainnet or
|
|
223
|
-
* devnet), the program, and the optional narrowing to one Anchor instruction (by its IDL name) and
|
|
224
|
-
* to a change of one SPL mint (base58) of at least `minAmount` base units. `anySigner` also counts
|
|
225
|
-
* transactions the wallet did not sign.
|
|
226
|
-
*/
|
|
227
|
-
declare const walletProgramActivitySourceSchema: z.ZodObject<{
|
|
228
|
-
chain: z.ZodString;
|
|
229
|
-
program: z.ZodString;
|
|
230
|
-
instruction: z.ZodNullable<z.ZodString>;
|
|
231
|
-
mint: z.ZodNullable<z.ZodString>;
|
|
232
|
-
minAmount: z.ZodNullable<z.ZodString>;
|
|
233
|
-
anySigner: z.ZodBoolean;
|
|
234
|
-
}, z.core.$strict>;
|
|
235
|
-
/**
|
|
236
|
-
* What a `wallet.nfts()` source samples: an NFT collection as `ctx.wallet.nfts()` takes it, an
|
|
237
|
-
* ERC-721 contract or one ERC-1155 token ID on an EVM chain, or a Metaplex collection or Token-2022
|
|
238
|
-
* token group on Solana mainnet or devnet. Syntax only; whether Relay reads it is checked when it samples.
|
|
239
|
-
*/
|
|
240
|
-
declare const walletNftSourceSchema: z.ZodObject<{
|
|
241
|
-
collection: z.ZodString;
|
|
242
|
-
}, z.core.$strict>;
|
|
243
|
-
/**
|
|
244
|
-
* What a `wallet.stake()` source samples: the Solana cluster's CAIP-2 ID (mainnet or devnet) and
|
|
245
|
-
* the vote account (base58) whose delegations count, or null for every validator.
|
|
246
|
-
*/
|
|
247
|
-
declare const walletStakeSourceSchema: z.ZodObject<{
|
|
248
|
-
chain: z.ZodString;
|
|
249
|
-
voteAccount: z.ZodNullable<z.ZodString>;
|
|
250
|
-
}, z.core.$strict>;
|
|
251
|
-
/**
|
|
252
|
-
* What a `wallet.programAccounts()` source samples: the Solana cluster's CAIP-2 ID (mainnet or
|
|
253
|
-
* devnet), the program, the account type as its IDL names it, the seeds each wallet's account
|
|
254
|
-
* derives from (with `{ wallet: true }` for the wallet), the integer field sampled, and the IDL that
|
|
255
|
-
* decodes it. Relay stores `idl` when the tracker is published: the one pasted, else the one the
|
|
256
|
-
* program publishes on chain.
|
|
257
|
-
*/
|
|
258
|
-
declare const walletProgramAccountSourceSchema: z.ZodObject<{
|
|
259
|
-
chain: z.ZodString;
|
|
260
|
-
program: z.ZodString;
|
|
261
|
-
account: z.ZodString;
|
|
262
|
-
seeds: z.ZodArray<z.ZodType<SolanaSeed, unknown, z.core.$ZodTypeInternals<SolanaSeed, unknown>>>;
|
|
263
|
-
field: z.ZodString;
|
|
264
|
-
idl: z.ZodOptional<z.ZodObject<{
|
|
265
|
-
program: z.ZodString;
|
|
266
|
-
source: z.ZodType<SolanaIdlSource>;
|
|
267
|
-
idl: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
268
|
-
}, z.core.$strict>>;
|
|
269
|
-
}, z.core.$strict>;
|
|
560
|
+
|
|
270
561
|
declare const xSearchSourceSchema: z.ZodObject<{
|
|
271
562
|
kind: z.ZodLiteral<"x-search">;
|
|
272
563
|
query: z.ZodString;
|
|
273
564
|
}, z.core.$strict>;
|
|
274
565
|
declare const customSourceSchema: z.ZodObject<{
|
|
275
|
-
kind: z.ZodLiteral<"custom">;
|
|
276
|
-
namespace: z.ZodString;
|
|
277
|
-
identities: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
278
|
-
member: "member";
|
|
279
|
-
discord: "discord";
|
|
280
|
-
x: "x";
|
|
281
|
-
wallet: "wallet";
|
|
282
|
-
}>, z.ZodTemplateLiteral<`app:${string}`>]>>>;
|
|
283
|
-
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
284
|
-
data: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodType<TrackerDataSchema, unknown, z.core.$ZodTypeInternals<TrackerDataSchema, unknown>>>>;
|
|
285
|
-
content: z.ZodOptional<z.ZodObject<{
|
|
286
|
-
metrics: z.ZodArray<z.ZodString>;
|
|
287
|
-
}, z.core.$strict>>;
|
|
288
|
-
balance: z.ZodOptional<z.ZodObject<{
|
|
289
|
-
chain: z.ZodString;
|
|
290
|
-
token: z.ZodNullable<z.ZodString>;
|
|
291
|
-
}, z.core.$strict>>;
|
|
292
566
|
activity: z.ZodOptional<z.ZodObject<{
|
|
293
567
|
chain: z.ZodString;
|
|
294
568
|
program: z.ZodString;
|
|
@@ -297,6 +571,10 @@ declare const customSourceSchema: z.ZodObject<{
|
|
|
297
571
|
minAmount: z.ZodNullable<z.ZodString>;
|
|
298
572
|
anySigner: z.ZodBoolean;
|
|
299
573
|
}, z.core.$strict>>;
|
|
574
|
+
balance: z.ZodOptional<z.ZodObject<{
|
|
575
|
+
chain: z.ZodString;
|
|
576
|
+
token: z.ZodNullable<z.ZodString>;
|
|
577
|
+
}, z.core.$strict>>;
|
|
300
578
|
nfts: z.ZodOptional<z.ZodObject<{
|
|
301
579
|
collection: z.ZodString;
|
|
302
580
|
}, z.core.$strict>>;
|
|
@@ -316,11 +594,6 @@ declare const customSourceSchema: z.ZodObject<{
|
|
|
316
594
|
idl: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
317
595
|
}, z.core.$strict>>;
|
|
318
596
|
}, z.core.$strict>>;
|
|
319
|
-
}, z.core.$strict>;
|
|
320
|
-
declare const trackerSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
321
|
-
kind: z.ZodLiteral<"x-search">;
|
|
322
|
-
query: z.ZodString;
|
|
323
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
324
597
|
kind: z.ZodLiteral<"custom">;
|
|
325
598
|
namespace: z.ZodString;
|
|
326
599
|
identities: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
@@ -334,10 +607,11 @@ declare const trackerSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
334
607
|
content: z.ZodOptional<z.ZodObject<{
|
|
335
608
|
metrics: z.ZodArray<z.ZodString>;
|
|
336
609
|
}, z.core.$strict>>;
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
610
|
+
}, z.core.$strict>;
|
|
611
|
+
declare const trackerSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
612
|
+
kind: z.ZodLiteral<"x-search">;
|
|
613
|
+
query: z.ZodString;
|
|
614
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
341
615
|
activity: z.ZodOptional<z.ZodObject<{
|
|
342
616
|
chain: z.ZodString;
|
|
343
617
|
program: z.ZodString;
|
|
@@ -346,6 +620,10 @@ declare const trackerSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
346
620
|
minAmount: z.ZodNullable<z.ZodString>;
|
|
347
621
|
anySigner: z.ZodBoolean;
|
|
348
622
|
}, z.core.$strict>>;
|
|
623
|
+
balance: z.ZodOptional<z.ZodObject<{
|
|
624
|
+
chain: z.ZodString;
|
|
625
|
+
token: z.ZodNullable<z.ZodString>;
|
|
626
|
+
}, z.core.$strict>>;
|
|
349
627
|
nfts: z.ZodOptional<z.ZodObject<{
|
|
350
628
|
collection: z.ZodString;
|
|
351
629
|
}, z.core.$strict>>;
|
|
@@ -365,6 +643,19 @@ declare const trackerSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
365
643
|
idl: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
366
644
|
}, z.core.$strict>>;
|
|
367
645
|
}, z.core.$strict>>;
|
|
646
|
+
kind: z.ZodLiteral<"custom">;
|
|
647
|
+
namespace: z.ZodString;
|
|
648
|
+
identities: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
649
|
+
member: "member";
|
|
650
|
+
discord: "discord";
|
|
651
|
+
x: "x";
|
|
652
|
+
wallet: "wallet";
|
|
653
|
+
}>, z.ZodTemplateLiteral<`app:${string}`>]>>>;
|
|
654
|
+
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
655
|
+
data: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodType<TrackerDataSchema, unknown, z.core.$ZodTypeInternals<TrackerDataSchema, unknown>>>>;
|
|
656
|
+
content: z.ZodOptional<z.ZodObject<{
|
|
657
|
+
metrics: z.ZodArray<z.ZodString>;
|
|
658
|
+
}, z.core.$strict>>;
|
|
368
659
|
}, z.core.$strict>, z.ZodObject<{
|
|
369
660
|
kind: z.ZodLiteral<"discord-messages">;
|
|
370
661
|
text: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -426,23 +717,6 @@ declare const trackerDefinitionSchema: z.ZodObject<{
|
|
|
426
717
|
kind: z.ZodLiteral<"x-search">;
|
|
427
718
|
query: z.ZodString;
|
|
428
719
|
}, z.core.$strict>, z.ZodObject<{
|
|
429
|
-
kind: z.ZodLiteral<"custom">;
|
|
430
|
-
namespace: z.ZodString;
|
|
431
|
-
identities: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
432
|
-
member: "member";
|
|
433
|
-
discord: "discord";
|
|
434
|
-
x: "x";
|
|
435
|
-
wallet: "wallet";
|
|
436
|
-
}>, z.ZodTemplateLiteral<`app:${string}`>]>>>;
|
|
437
|
-
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
438
|
-
data: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodType<TrackerDataSchema, unknown, z.core.$ZodTypeInternals<TrackerDataSchema, unknown>>>>;
|
|
439
|
-
content: z.ZodOptional<z.ZodObject<{
|
|
440
|
-
metrics: z.ZodArray<z.ZodString>;
|
|
441
|
-
}, z.core.$strict>>;
|
|
442
|
-
balance: z.ZodOptional<z.ZodObject<{
|
|
443
|
-
chain: z.ZodString;
|
|
444
|
-
token: z.ZodNullable<z.ZodString>;
|
|
445
|
-
}, z.core.$strict>>;
|
|
446
720
|
activity: z.ZodOptional<z.ZodObject<{
|
|
447
721
|
chain: z.ZodString;
|
|
448
722
|
program: z.ZodString;
|
|
@@ -451,6 +725,10 @@ declare const trackerDefinitionSchema: z.ZodObject<{
|
|
|
451
725
|
minAmount: z.ZodNullable<z.ZodString>;
|
|
452
726
|
anySigner: z.ZodBoolean;
|
|
453
727
|
}, z.core.$strict>>;
|
|
728
|
+
balance: z.ZodOptional<z.ZodObject<{
|
|
729
|
+
chain: z.ZodString;
|
|
730
|
+
token: z.ZodNullable<z.ZodString>;
|
|
731
|
+
}, z.core.$strict>>;
|
|
454
732
|
nfts: z.ZodOptional<z.ZodObject<{
|
|
455
733
|
collection: z.ZodString;
|
|
456
734
|
}, z.core.$strict>>;
|
|
@@ -470,6 +748,19 @@ declare const trackerDefinitionSchema: z.ZodObject<{
|
|
|
470
748
|
idl: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
471
749
|
}, z.core.$strict>>;
|
|
472
750
|
}, z.core.$strict>>;
|
|
751
|
+
kind: z.ZodLiteral<"custom">;
|
|
752
|
+
namespace: z.ZodString;
|
|
753
|
+
identities: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
754
|
+
member: "member";
|
|
755
|
+
discord: "discord";
|
|
756
|
+
x: "x";
|
|
757
|
+
wallet: "wallet";
|
|
758
|
+
}>, z.ZodTemplateLiteral<`app:${string}`>]>>>;
|
|
759
|
+
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
760
|
+
data: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodType<TrackerDataSchema, unknown, z.core.$ZodTypeInternals<TrackerDataSchema, unknown>>>>;
|
|
761
|
+
content: z.ZodOptional<z.ZodObject<{
|
|
762
|
+
metrics: z.ZodArray<z.ZodString>;
|
|
763
|
+
}, z.core.$strict>>;
|
|
473
764
|
}, z.core.$strict>, z.ZodObject<{
|
|
474
765
|
kind: z.ZodLiteral<"discord-messages">;
|
|
475
766
|
text: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -490,23 +781,6 @@ declare const trackerArtifactSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
490
781
|
kind: z.ZodLiteral<"x-search">;
|
|
491
782
|
query: z.ZodString;
|
|
492
783
|
}, z.core.$strict>, z.ZodObject<{
|
|
493
|
-
kind: z.ZodLiteral<"custom">;
|
|
494
|
-
namespace: z.ZodString;
|
|
495
|
-
identities: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
496
|
-
member: "member";
|
|
497
|
-
discord: "discord";
|
|
498
|
-
x: "x";
|
|
499
|
-
wallet: "wallet";
|
|
500
|
-
}>, z.ZodTemplateLiteral<`app:${string}`>]>>>;
|
|
501
|
-
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
502
|
-
data: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodType<TrackerDataSchema, unknown, z.core.$ZodTypeInternals<TrackerDataSchema, unknown>>>>;
|
|
503
|
-
content: z.ZodOptional<z.ZodObject<{
|
|
504
|
-
metrics: z.ZodArray<z.ZodString>;
|
|
505
|
-
}, z.core.$strict>>;
|
|
506
|
-
balance: z.ZodOptional<z.ZodObject<{
|
|
507
|
-
chain: z.ZodString;
|
|
508
|
-
token: z.ZodNullable<z.ZodString>;
|
|
509
|
-
}, z.core.$strict>>;
|
|
510
784
|
activity: z.ZodOptional<z.ZodObject<{
|
|
511
785
|
chain: z.ZodString;
|
|
512
786
|
program: z.ZodString;
|
|
@@ -515,6 +789,10 @@ declare const trackerArtifactSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
515
789
|
minAmount: z.ZodNullable<z.ZodString>;
|
|
516
790
|
anySigner: z.ZodBoolean;
|
|
517
791
|
}, z.core.$strict>>;
|
|
792
|
+
balance: z.ZodOptional<z.ZodObject<{
|
|
793
|
+
chain: z.ZodString;
|
|
794
|
+
token: z.ZodNullable<z.ZodString>;
|
|
795
|
+
}, z.core.$strict>>;
|
|
518
796
|
nfts: z.ZodOptional<z.ZodObject<{
|
|
519
797
|
collection: z.ZodString;
|
|
520
798
|
}, z.core.$strict>>;
|
|
@@ -534,6 +812,19 @@ declare const trackerArtifactSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
534
812
|
idl: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
535
813
|
}, z.core.$strict>>;
|
|
536
814
|
}, z.core.$strict>>;
|
|
815
|
+
kind: z.ZodLiteral<"custom">;
|
|
816
|
+
namespace: z.ZodString;
|
|
817
|
+
identities: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
818
|
+
member: "member";
|
|
819
|
+
discord: "discord";
|
|
820
|
+
x: "x";
|
|
821
|
+
wallet: "wallet";
|
|
822
|
+
}>, z.ZodTemplateLiteral<`app:${string}`>]>>>;
|
|
823
|
+
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
824
|
+
data: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodType<TrackerDataSchema, unknown, z.core.$ZodTypeInternals<TrackerDataSchema, unknown>>>>;
|
|
825
|
+
content: z.ZodOptional<z.ZodObject<{
|
|
826
|
+
metrics: z.ZodArray<z.ZodString>;
|
|
827
|
+
}, z.core.$strict>>;
|
|
537
828
|
}, z.core.$strict>, z.ZodObject<{
|
|
538
829
|
kind: z.ZodLiteral<"discord-messages">;
|
|
539
830
|
text: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -581,7 +872,6 @@ declare const knownTrackerSourceResponseSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
581
872
|
kind: z.ZodLiteral<"x-search">;
|
|
582
873
|
query: z.ZodString;
|
|
583
874
|
}, z.core.$strip>, z.ZodObject<{
|
|
584
|
-
identities: z.ZodOptional<z.ZodArray<z.ZodType<OpenIdentityKind, unknown, z.core.$ZodTypeInternals<OpenIdentityKind, unknown>>>>;
|
|
585
875
|
activity: z.ZodOptional<z.ZodObject<{
|
|
586
876
|
chain: z.ZodString;
|
|
587
877
|
program: z.ZodString;
|
|
@@ -590,6 +880,10 @@ declare const knownTrackerSourceResponseSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
590
880
|
minAmount: z.ZodNullable<z.ZodString>;
|
|
591
881
|
anySigner: z.ZodBoolean;
|
|
592
882
|
}, z.core.$strip>>;
|
|
883
|
+
balance: z.ZodOptional<z.ZodObject<{
|
|
884
|
+
chain: z.ZodString;
|
|
885
|
+
token: z.ZodNullable<z.ZodString>;
|
|
886
|
+
}, z.core.$strict>>;
|
|
593
887
|
nfts: z.ZodOptional<z.ZodObject<{
|
|
594
888
|
collection: z.ZodString;
|
|
595
889
|
}, z.core.$strip>>;
|
|
@@ -609,6 +903,7 @@ declare const knownTrackerSourceResponseSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
609
903
|
idl: z.ZodJSONSchema;
|
|
610
904
|
}, z.core.$strip>>;
|
|
611
905
|
}, z.core.$strip>>;
|
|
906
|
+
identities: z.ZodOptional<z.ZodArray<z.ZodType<OpenIdentityKind, unknown, z.core.$ZodTypeInternals<OpenIdentityKind, unknown>>>>;
|
|
612
907
|
kind: z.ZodLiteral<"custom">;
|
|
613
908
|
namespace: z.ZodString;
|
|
614
909
|
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -616,10 +911,6 @@ declare const knownTrackerSourceResponseSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
616
911
|
content: z.ZodOptional<z.ZodObject<{
|
|
617
912
|
metrics: z.ZodArray<z.ZodString>;
|
|
618
913
|
}, z.core.$strict>>;
|
|
619
|
-
balance: z.ZodOptional<z.ZodObject<{
|
|
620
|
-
chain: z.ZodString;
|
|
621
|
-
token: z.ZodNullable<z.ZodString>;
|
|
622
|
-
}, z.core.$strict>>;
|
|
623
914
|
}, z.core.$strip>, z.ZodObject<{
|
|
624
915
|
kind: z.ZodLiteral<"discord-messages">;
|
|
625
916
|
text: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -631,7 +922,6 @@ declare const trackerSourceResponseSchema: z.ZodUnion<readonly [z.ZodDiscriminat
|
|
|
631
922
|
kind: z.ZodLiteral<"x-search">;
|
|
632
923
|
query: z.ZodString;
|
|
633
924
|
}, z.core.$strip>, z.ZodObject<{
|
|
634
|
-
identities: z.ZodOptional<z.ZodArray<z.ZodType<OpenIdentityKind, unknown, z.core.$ZodTypeInternals<OpenIdentityKind, unknown>>>>;
|
|
635
925
|
activity: z.ZodOptional<z.ZodObject<{
|
|
636
926
|
chain: z.ZodString;
|
|
637
927
|
program: z.ZodString;
|
|
@@ -640,6 +930,10 @@ declare const trackerSourceResponseSchema: z.ZodUnion<readonly [z.ZodDiscriminat
|
|
|
640
930
|
minAmount: z.ZodNullable<z.ZodString>;
|
|
641
931
|
anySigner: z.ZodBoolean;
|
|
642
932
|
}, z.core.$strip>>;
|
|
933
|
+
balance: z.ZodOptional<z.ZodObject<{
|
|
934
|
+
chain: z.ZodString;
|
|
935
|
+
token: z.ZodNullable<z.ZodString>;
|
|
936
|
+
}, z.core.$strict>>;
|
|
643
937
|
nfts: z.ZodOptional<z.ZodObject<{
|
|
644
938
|
collection: z.ZodString;
|
|
645
939
|
}, z.core.$strip>>;
|
|
@@ -659,6 +953,7 @@ declare const trackerSourceResponseSchema: z.ZodUnion<readonly [z.ZodDiscriminat
|
|
|
659
953
|
idl: z.ZodJSONSchema;
|
|
660
954
|
}, z.core.$strip>>;
|
|
661
955
|
}, z.core.$strip>>;
|
|
956
|
+
identities: z.ZodOptional<z.ZodArray<z.ZodType<OpenIdentityKind, unknown, z.core.$ZodTypeInternals<OpenIdentityKind, unknown>>>>;
|
|
662
957
|
kind: z.ZodLiteral<"custom">;
|
|
663
958
|
namespace: z.ZodString;
|
|
664
959
|
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -666,10 +961,6 @@ declare const trackerSourceResponseSchema: z.ZodUnion<readonly [z.ZodDiscriminat
|
|
|
666
961
|
content: z.ZodOptional<z.ZodObject<{
|
|
667
962
|
metrics: z.ZodArray<z.ZodString>;
|
|
668
963
|
}, z.core.$strict>>;
|
|
669
|
-
balance: z.ZodOptional<z.ZodObject<{
|
|
670
|
-
chain: z.ZodString;
|
|
671
|
-
token: z.ZodNullable<z.ZodString>;
|
|
672
|
-
}, z.core.$strict>>;
|
|
673
964
|
}, z.core.$strip>, z.ZodObject<{
|
|
674
965
|
kind: z.ZodLiteral<"discord-messages">;
|
|
675
966
|
text: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -687,7 +978,6 @@ declare const trackerDefinitionResponseSchema: z.ZodObject<{
|
|
|
687
978
|
kind: z.ZodLiteral<"x-search">;
|
|
688
979
|
query: z.ZodString;
|
|
689
980
|
}, z.core.$strip>, z.ZodObject<{
|
|
690
|
-
identities: z.ZodOptional<z.ZodArray<z.ZodType<OpenIdentityKind, unknown, z.core.$ZodTypeInternals<OpenIdentityKind, unknown>>>>;
|
|
691
981
|
activity: z.ZodOptional<z.ZodObject<{
|
|
692
982
|
chain: z.ZodString;
|
|
693
983
|
program: z.ZodString;
|
|
@@ -696,6 +986,10 @@ declare const trackerDefinitionResponseSchema: z.ZodObject<{
|
|
|
696
986
|
minAmount: z.ZodNullable<z.ZodString>;
|
|
697
987
|
anySigner: z.ZodBoolean;
|
|
698
988
|
}, z.core.$strip>>;
|
|
989
|
+
balance: z.ZodOptional<z.ZodObject<{
|
|
990
|
+
chain: z.ZodString;
|
|
991
|
+
token: z.ZodNullable<z.ZodString>;
|
|
992
|
+
}, z.core.$strict>>;
|
|
699
993
|
nfts: z.ZodOptional<z.ZodObject<{
|
|
700
994
|
collection: z.ZodString;
|
|
701
995
|
}, z.core.$strip>>;
|
|
@@ -715,6 +1009,7 @@ declare const trackerDefinitionResponseSchema: z.ZodObject<{
|
|
|
715
1009
|
idl: z.ZodJSONSchema;
|
|
716
1010
|
}, z.core.$strip>>;
|
|
717
1011
|
}, z.core.$strip>>;
|
|
1012
|
+
identities: z.ZodOptional<z.ZodArray<z.ZodType<OpenIdentityKind, unknown, z.core.$ZodTypeInternals<OpenIdentityKind, unknown>>>>;
|
|
718
1013
|
kind: z.ZodLiteral<"custom">;
|
|
719
1014
|
namespace: z.ZodString;
|
|
720
1015
|
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -722,10 +1017,6 @@ declare const trackerDefinitionResponseSchema: z.ZodObject<{
|
|
|
722
1017
|
content: z.ZodOptional<z.ZodObject<{
|
|
723
1018
|
metrics: z.ZodArray<z.ZodString>;
|
|
724
1019
|
}, z.core.$strict>>;
|
|
725
|
-
balance: z.ZodOptional<z.ZodObject<{
|
|
726
|
-
chain: z.ZodString;
|
|
727
|
-
token: z.ZodNullable<z.ZodString>;
|
|
728
|
-
}, z.core.$strict>>;
|
|
729
1020
|
}, z.core.$strip>, z.ZodObject<{
|
|
730
1021
|
kind: z.ZodLiteral<"discord-messages">;
|
|
731
1022
|
text: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -752,7 +1043,6 @@ declare const publishedTrackerSchema: z.ZodObject<{
|
|
|
752
1043
|
kind: z.ZodLiteral<"x-search">;
|
|
753
1044
|
query: z.ZodString;
|
|
754
1045
|
}, z.core.$strip>, z.ZodObject<{
|
|
755
|
-
identities: z.ZodOptional<z.ZodArray<z.ZodType<OpenIdentityKind, unknown, z.core.$ZodTypeInternals<OpenIdentityKind, unknown>>>>;
|
|
756
1046
|
activity: z.ZodOptional<z.ZodObject<{
|
|
757
1047
|
chain: z.ZodString;
|
|
758
1048
|
program: z.ZodString;
|
|
@@ -761,6 +1051,10 @@ declare const publishedTrackerSchema: z.ZodObject<{
|
|
|
761
1051
|
minAmount: z.ZodNullable<z.ZodString>;
|
|
762
1052
|
anySigner: z.ZodBoolean;
|
|
763
1053
|
}, z.core.$strip>>;
|
|
1054
|
+
balance: z.ZodOptional<z.ZodObject<{
|
|
1055
|
+
chain: z.ZodString;
|
|
1056
|
+
token: z.ZodNullable<z.ZodString>;
|
|
1057
|
+
}, z.core.$strict>>;
|
|
764
1058
|
nfts: z.ZodOptional<z.ZodObject<{
|
|
765
1059
|
collection: z.ZodString;
|
|
766
1060
|
}, z.core.$strip>>;
|
|
@@ -780,6 +1074,7 @@ declare const publishedTrackerSchema: z.ZodObject<{
|
|
|
780
1074
|
idl: z.ZodJSONSchema;
|
|
781
1075
|
}, z.core.$strip>>;
|
|
782
1076
|
}, z.core.$strip>>;
|
|
1077
|
+
identities: z.ZodOptional<z.ZodArray<z.ZodType<OpenIdentityKind, unknown, z.core.$ZodTypeInternals<OpenIdentityKind, unknown>>>>;
|
|
783
1078
|
kind: z.ZodLiteral<"custom">;
|
|
784
1079
|
namespace: z.ZodString;
|
|
785
1080
|
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -787,10 +1082,6 @@ declare const publishedTrackerSchema: z.ZodObject<{
|
|
|
787
1082
|
content: z.ZodOptional<z.ZodObject<{
|
|
788
1083
|
metrics: z.ZodArray<z.ZodString>;
|
|
789
1084
|
}, z.core.$strict>>;
|
|
790
|
-
balance: z.ZodOptional<z.ZodObject<{
|
|
791
|
-
chain: z.ZodString;
|
|
792
|
-
token: z.ZodNullable<z.ZodString>;
|
|
793
|
-
}, z.core.$strict>>;
|
|
794
1085
|
}, z.core.$strip>, z.ZodObject<{
|
|
795
1086
|
kind: z.ZodLiteral<"discord-messages">;
|
|
796
1087
|
text: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -821,7 +1112,6 @@ declare const trackerStatusSchema: z.ZodObject<{
|
|
|
821
1112
|
kind: z.ZodLiteral<"x-search">;
|
|
822
1113
|
query: z.ZodString;
|
|
823
1114
|
}, z.core.$strip>, z.ZodObject<{
|
|
824
|
-
identities: z.ZodOptional<z.ZodArray<z.ZodType<OpenIdentityKind, unknown, z.core.$ZodTypeInternals<OpenIdentityKind, unknown>>>>;
|
|
825
1115
|
activity: z.ZodOptional<z.ZodObject<{
|
|
826
1116
|
chain: z.ZodString;
|
|
827
1117
|
program: z.ZodString;
|
|
@@ -830,6 +1120,10 @@ declare const trackerStatusSchema: z.ZodObject<{
|
|
|
830
1120
|
minAmount: z.ZodNullable<z.ZodString>;
|
|
831
1121
|
anySigner: z.ZodBoolean;
|
|
832
1122
|
}, z.core.$strip>>;
|
|
1123
|
+
balance: z.ZodOptional<z.ZodObject<{
|
|
1124
|
+
chain: z.ZodString;
|
|
1125
|
+
token: z.ZodNullable<z.ZodString>;
|
|
1126
|
+
}, z.core.$strict>>;
|
|
833
1127
|
nfts: z.ZodOptional<z.ZodObject<{
|
|
834
1128
|
collection: z.ZodString;
|
|
835
1129
|
}, z.core.$strip>>;
|
|
@@ -849,6 +1143,7 @@ declare const trackerStatusSchema: z.ZodObject<{
|
|
|
849
1143
|
idl: z.ZodJSONSchema;
|
|
850
1144
|
}, z.core.$strip>>;
|
|
851
1145
|
}, z.core.$strip>>;
|
|
1146
|
+
identities: z.ZodOptional<z.ZodArray<z.ZodType<OpenIdentityKind, unknown, z.core.$ZodTypeInternals<OpenIdentityKind, unknown>>>>;
|
|
852
1147
|
kind: z.ZodLiteral<"custom">;
|
|
853
1148
|
namespace: z.ZodString;
|
|
854
1149
|
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -856,10 +1151,6 @@ declare const trackerStatusSchema: z.ZodObject<{
|
|
|
856
1151
|
content: z.ZodOptional<z.ZodObject<{
|
|
857
1152
|
metrics: z.ZodArray<z.ZodString>;
|
|
858
1153
|
}, z.core.$strict>>;
|
|
859
|
-
balance: z.ZodOptional<z.ZodObject<{
|
|
860
|
-
chain: z.ZodString;
|
|
861
|
-
token: z.ZodNullable<z.ZodString>;
|
|
862
|
-
}, z.core.$strict>>;
|
|
863
1154
|
}, z.core.$strip>, z.ZodObject<{
|
|
864
1155
|
kind: z.ZodLiteral<"discord-messages">;
|
|
865
1156
|
text: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -942,8 +1233,27 @@ declare const managedTrackerSourceKinds: readonly ["x-search", "discord-messages
|
|
|
942
1233
|
/**
|
|
943
1234
|
* A published source as `management.trackers.create` names it, or undefined for one it cannot
|
|
944
1235
|
* create, such as your own custom source. Discord messages always say whether text is stored.
|
|
1236
|
+
*
|
|
1237
|
+
* Program activity, NFT holdings, stake and program account sources, whose create inputs are
|
|
1238
|
+
* their own schemas, read as undefined here; `dataTrackerSource()` reads every source `create`
|
|
1239
|
+
* takes.
|
|
945
1240
|
*/
|
|
946
1241
|
declare function managedTrackerSource(source: TrackerSourceResponse): ManagedTrackerSource | undefined;
|
|
1242
|
+
/**
|
|
1243
|
+
* A source as `management.trackers.create` names it: a managed source, or one of the wallet read
|
|
1244
|
+
* kinds with a create schema of its own (program activity, NFT holdings, stake, program accounts).
|
|
1245
|
+
* `dataTrackerSource()` returns it, so a new kind with its own create schema widens a closed 1.x
|
|
1246
|
+
* return type: `pnpm api:check` refuses it unless that release decides how (docs/releases.md).
|
|
1247
|
+
*/
|
|
1248
|
+
type DataTrackerSource = ManagedTrackerSource | z.output<OwnCreateKind["management"]>;
|
|
1249
|
+
/**
|
|
1250
|
+
* A published source as `management.trackers.create` names it, for every source `create` takes:
|
|
1251
|
+
* the managed sources `managedTrackerSource()` reads, and program activity, NFT holdings, stake and
|
|
1252
|
+
* program account sources. Undefined for one it cannot create, such as your own custom source, or
|
|
1253
|
+
* one whose settings this SDK cannot name. A program account source carries the IDL pasted when
|
|
1254
|
+
* it was created, and leaves out one Relay fetched from chain, which publication fetches again.
|
|
1255
|
+
*/
|
|
1256
|
+
declare function dataTrackerSource(source: TrackerSourceResponse): DataTrackerSource | undefined;
|
|
947
1257
|
/** The parts of a tracker created as data that `management.trackers.update` can change. */
|
|
948
1258
|
declare const trackerPropertiesSchema: z.ZodObject<{
|
|
949
1259
|
title: z.ZodString;
|
|
@@ -1012,26 +1322,11 @@ declare const managedTrackerCreateSchema: z.ZodObject<{
|
|
|
1012
1322
|
}, z.core.$strict>], "kind">>;
|
|
1013
1323
|
}, z.core.$strict>;
|
|
1014
1324
|
type ManagedTrackerCreateInput = z.input<typeof managedTrackerCreateSchema>;
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
chain: z.ZodString;
|
|
1021
|
-
program: z.ZodString;
|
|
1022
|
-
instruction: z.ZodNullable<z.ZodString>;
|
|
1023
|
-
mint: z.ZodNullable<z.ZodString>;
|
|
1024
|
-
minAmount: z.ZodNullable<z.ZodString>;
|
|
1025
|
-
anySigner: z.ZodBoolean;
|
|
1026
|
-
kind: z.ZodLiteral<"wallet-program-activity">;
|
|
1027
|
-
}, z.core.$strict>;
|
|
1028
|
-
/** A program activity source as `management.trackers.create` names it. */
|
|
1029
|
-
type WalletProgramActivityTrackerSource = z.infer<typeof walletProgramActivityTrackerSourceSchema>;
|
|
1030
|
-
/**
|
|
1031
|
-
* A `wallet.programActivity()` tracker created as data in test (`management.trackers.create`),
|
|
1032
|
-
* beside the sources `managedTrackerCreateSchema` takes. Its source never changes, so
|
|
1033
|
-
* `management.trackers.update` changes only its title and window.
|
|
1034
|
-
*/
|
|
1325
|
+
|
|
1326
|
+
type OwnCreateKind = Extract<WalletReadKinds, {
|
|
1327
|
+
create: "own";
|
|
1328
|
+
}>;
|
|
1329
|
+
/** A `wallet.programActivity()` tracker created as data in test (`management.trackers.create`). */
|
|
1035
1330
|
declare const programActivityTrackerCreateSchema: z.ZodObject<{
|
|
1036
1331
|
key: z.ZodString;
|
|
1037
1332
|
actionId: z.ZodString;
|
|
@@ -1054,18 +1349,7 @@ declare const programActivityTrackerCreateSchema: z.ZodObject<{
|
|
|
1054
1349
|
}, z.core.$strict>;
|
|
1055
1350
|
/** What `management.trackers.create` takes for a `wallet.programActivity()` tracker. */
|
|
1056
1351
|
type ProgramActivityTrackerCreateInput = z.input<typeof programActivityTrackerCreateSchema>;
|
|
1057
|
-
/** `wallet.nfts(
|
|
1058
|
-
declare const walletNftsTrackerSourceSchema: z.ZodObject<{
|
|
1059
|
-
collection: z.ZodString;
|
|
1060
|
-
kind: z.ZodLiteral<"wallet-nfts">;
|
|
1061
|
-
}, z.core.$strict>;
|
|
1062
|
-
/** An NFT holdings source as `management.trackers.create` names it. */
|
|
1063
|
-
type WalletNftsTrackerSource = z.infer<typeof walletNftsTrackerSourceSchema>;
|
|
1064
|
-
/**
|
|
1065
|
-
* A `wallet.nfts()` tracker created as data in test (`management.trackers.create`), beside the
|
|
1066
|
-
* sources `managedTrackerCreateSchema` takes. Its collection never changes, so
|
|
1067
|
-
* `management.trackers.update` changes only its title and window.
|
|
1068
|
-
*/
|
|
1352
|
+
/** A `wallet.nfts()` tracker created as data in test (`management.trackers.create`). */
|
|
1069
1353
|
declare const nftTrackerCreateSchema: z.ZodObject<{
|
|
1070
1354
|
key: z.ZodString;
|
|
1071
1355
|
actionId: z.ZodString;
|
|
@@ -1083,19 +1367,7 @@ declare const nftTrackerCreateSchema: z.ZodObject<{
|
|
|
1083
1367
|
}, z.core.$strict>;
|
|
1084
1368
|
/** What `management.trackers.create` takes for a `wallet.nfts()` tracker. */
|
|
1085
1369
|
type NftTrackerCreateInput = z.input<typeof nftTrackerCreateSchema>;
|
|
1086
|
-
/** `wallet.stake(
|
|
1087
|
-
declare const walletStakeTrackerSourceSchema: z.ZodObject<{
|
|
1088
|
-
chain: z.ZodString;
|
|
1089
|
-
voteAccount: z.ZodNullable<z.ZodString>;
|
|
1090
|
-
kind: z.ZodLiteral<"wallet-stake">;
|
|
1091
|
-
}, z.core.$strict>;
|
|
1092
|
-
/** A stake source as `management.trackers.create` names it. */
|
|
1093
|
-
type WalletStakeTrackerSource = z.infer<typeof walletStakeTrackerSourceSchema>;
|
|
1094
|
-
/**
|
|
1095
|
-
* A `wallet.stake()` tracker created as data in test (`management.trackers.create`), beside the
|
|
1096
|
-
* sources `managedTrackerCreateSchema` takes. Its cluster and vote account never change, so
|
|
1097
|
-
* `management.trackers.update` changes only its title and window.
|
|
1098
|
-
*/
|
|
1370
|
+
/** A `wallet.stake()` tracker created as data in test (`management.trackers.create`). */
|
|
1099
1371
|
declare const stakeTrackerCreateSchema: z.ZodObject<{
|
|
1100
1372
|
key: z.ZodString;
|
|
1101
1373
|
actionId: z.ZodString;
|
|
@@ -1114,26 +1386,7 @@ declare const stakeTrackerCreateSchema: z.ZodObject<{
|
|
|
1114
1386
|
}, z.core.$strict>;
|
|
1115
1387
|
/** What `management.trackers.create` takes for a `wallet.stake()` tracker. */
|
|
1116
1388
|
type StakeTrackerCreateInput = z.input<typeof stakeTrackerCreateSchema>;
|
|
1117
|
-
/**
|
|
1118
|
-
* `wallet.programAccounts({ chain, program, account, seeds, field, idl })` as the management API
|
|
1119
|
-
* names it: `idl` is an IDL to paste, as `wallet.programAccounts()` takes it.
|
|
1120
|
-
*/
|
|
1121
|
-
declare const walletProgramAccountsTrackerSourceSchema: z.ZodObject<{
|
|
1122
|
-
idl: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
1123
|
-
chain: z.ZodString;
|
|
1124
|
-
program: z.ZodString;
|
|
1125
|
-
account: z.ZodString;
|
|
1126
|
-
seeds: z.ZodArray<z.ZodType<SolanaSeed, unknown, z.core.$ZodTypeInternals<SolanaSeed, unknown>>>;
|
|
1127
|
-
field: z.ZodString;
|
|
1128
|
-
kind: z.ZodLiteral<"wallet-program-accounts">;
|
|
1129
|
-
}, z.core.$strict>;
|
|
1130
|
-
/** A program account source as `management.trackers.create` names it. */
|
|
1131
|
-
type WalletProgramAccountsTrackerSource = z.infer<typeof walletProgramAccountsTrackerSourceSchema>;
|
|
1132
|
-
/**
|
|
1133
|
-
* A `wallet.programAccounts()` tracker created as data in test (`management.trackers.create`),
|
|
1134
|
-
* beside the sources `managedTrackerCreateSchema` takes. Its source never changes, so
|
|
1135
|
-
* `management.trackers.update` changes only its title and window.
|
|
1136
|
-
*/
|
|
1389
|
+
/** A `wallet.programAccounts()` tracker created as data in test (`management.trackers.create`). */
|
|
1137
1390
|
declare const programAccountTrackerCreateSchema: z.ZodObject<{
|
|
1138
1391
|
key: z.ZodString;
|
|
1139
1392
|
actionId: z.ZodString;
|
|
@@ -1564,7 +1817,6 @@ declare const trackerPageSchema: z.ZodObject<{
|
|
|
1564
1817
|
kind: z.ZodLiteral<"x-search">;
|
|
1565
1818
|
query: z.ZodString;
|
|
1566
1819
|
}, z.core.$strip>, z.ZodObject<{
|
|
1567
|
-
identities: z.ZodOptional<z.ZodArray<z.ZodType<OpenIdentityKind, unknown, z.core.$ZodTypeInternals<OpenIdentityKind, unknown>>>>;
|
|
1568
1820
|
activity: z.ZodOptional<z.ZodObject<{
|
|
1569
1821
|
chain: z.ZodString;
|
|
1570
1822
|
program: z.ZodString;
|
|
@@ -1573,6 +1825,10 @@ declare const trackerPageSchema: z.ZodObject<{
|
|
|
1573
1825
|
minAmount: z.ZodNullable<z.ZodString>;
|
|
1574
1826
|
anySigner: z.ZodBoolean;
|
|
1575
1827
|
}, z.core.$strip>>;
|
|
1828
|
+
balance: z.ZodOptional<z.ZodObject<{
|
|
1829
|
+
chain: z.ZodString;
|
|
1830
|
+
token: z.ZodNullable<z.ZodString>;
|
|
1831
|
+
}, z.core.$strict>>;
|
|
1576
1832
|
nfts: z.ZodOptional<z.ZodObject<{
|
|
1577
1833
|
collection: z.ZodString;
|
|
1578
1834
|
}, z.core.$strip>>;
|
|
@@ -1592,6 +1848,7 @@ declare const trackerPageSchema: z.ZodObject<{
|
|
|
1592
1848
|
idl: z.ZodJSONSchema;
|
|
1593
1849
|
}, z.core.$strip>>;
|
|
1594
1850
|
}, z.core.$strip>>;
|
|
1851
|
+
identities: z.ZodOptional<z.ZodArray<z.ZodType<OpenIdentityKind, unknown, z.core.$ZodTypeInternals<OpenIdentityKind, unknown>>>>;
|
|
1595
1852
|
kind: z.ZodLiteral<"custom">;
|
|
1596
1853
|
namespace: z.ZodString;
|
|
1597
1854
|
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -1599,10 +1856,6 @@ declare const trackerPageSchema: z.ZodObject<{
|
|
|
1599
1856
|
content: z.ZodOptional<z.ZodObject<{
|
|
1600
1857
|
metrics: z.ZodArray<z.ZodString>;
|
|
1601
1858
|
}, z.core.$strict>>;
|
|
1602
|
-
balance: z.ZodOptional<z.ZodObject<{
|
|
1603
|
-
chain: z.ZodString;
|
|
1604
|
-
token: z.ZodNullable<z.ZodString>;
|
|
1605
|
-
}, z.core.$strict>>;
|
|
1606
1859
|
}, z.core.$strip>, z.ZodObject<{
|
|
1607
1860
|
kind: z.ZodLiteral<"discord-messages">;
|
|
1608
1861
|
text: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1671,7 +1924,6 @@ declare const trackerSummarySchema: z.ZodObject<{
|
|
|
1671
1924
|
kind: z.ZodLiteral<"x-search">;
|
|
1672
1925
|
query: z.ZodString;
|
|
1673
1926
|
}, z.core.$strip>, z.ZodObject<{
|
|
1674
|
-
identities: z.ZodOptional<z.ZodArray<z.ZodType<OpenIdentityKind, unknown, z.core.$ZodTypeInternals<OpenIdentityKind, unknown>>>>;
|
|
1675
1927
|
activity: z.ZodOptional<z.ZodObject<{
|
|
1676
1928
|
chain: z.ZodString;
|
|
1677
1929
|
program: z.ZodString;
|
|
@@ -1680,6 +1932,10 @@ declare const trackerSummarySchema: z.ZodObject<{
|
|
|
1680
1932
|
minAmount: z.ZodNullable<z.ZodString>;
|
|
1681
1933
|
anySigner: z.ZodBoolean;
|
|
1682
1934
|
}, z.core.$strip>>;
|
|
1935
|
+
balance: z.ZodOptional<z.ZodObject<{
|
|
1936
|
+
chain: z.ZodString;
|
|
1937
|
+
token: z.ZodNullable<z.ZodString>;
|
|
1938
|
+
}, z.core.$strict>>;
|
|
1683
1939
|
nfts: z.ZodOptional<z.ZodObject<{
|
|
1684
1940
|
collection: z.ZodString;
|
|
1685
1941
|
}, z.core.$strip>>;
|
|
@@ -1699,6 +1955,7 @@ declare const trackerSummarySchema: z.ZodObject<{
|
|
|
1699
1955
|
idl: z.ZodJSONSchema;
|
|
1700
1956
|
}, z.core.$strip>>;
|
|
1701
1957
|
}, z.core.$strip>>;
|
|
1958
|
+
identities: z.ZodOptional<z.ZodArray<z.ZodType<OpenIdentityKind, unknown, z.core.$ZodTypeInternals<OpenIdentityKind, unknown>>>>;
|
|
1702
1959
|
kind: z.ZodLiteral<"custom">;
|
|
1703
1960
|
namespace: z.ZodString;
|
|
1704
1961
|
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -1706,10 +1963,6 @@ declare const trackerSummarySchema: z.ZodObject<{
|
|
|
1706
1963
|
content: z.ZodOptional<z.ZodObject<{
|
|
1707
1964
|
metrics: z.ZodArray<z.ZodString>;
|
|
1708
1965
|
}, z.core.$strict>>;
|
|
1709
|
-
balance: z.ZodOptional<z.ZodObject<{
|
|
1710
|
-
chain: z.ZodString;
|
|
1711
|
-
token: z.ZodNullable<z.ZodString>;
|
|
1712
|
-
}, z.core.$strict>>;
|
|
1713
1966
|
}, z.core.$strip>, z.ZodObject<{
|
|
1714
1967
|
kind: z.ZodLiteral<"discord-messages">;
|
|
1715
1968
|
text: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2371,5 +2624,5 @@ declare function schemaCheckedReader(reader: TrackerReader): TrackerReader;
|
|
|
2371
2624
|
*/
|
|
2372
2625
|
declare function whereSchemaIssue(schema: TrackerDataSchema, where: TrackerWhere | undefined): string | null;
|
|
2373
2626
|
|
|
2374
|
-
export { trackerDataSchema as A, trackerTriggerContextSchema as D, sourceContent as E, whereSettings as F,
|
|
2375
|
-
export type {
|
|
2627
|
+
export { trackerDataSchema as A, trackerTriggerContextSchema as D, sourceContent as E, whereSettings as F, trackerContentStageSchema as a$, customContentSchema as aA, dataTrackerSource as aB, defaultTriggerMode as aC, identityKindSchema as aD, isAppIdentityKind as aE, isKnownTrackerSource as aF, knownIdentityKinds as aG, managedTrackerCreateSchema as aH, managedTrackerSource as aI, managedTrackerSourceKinds as aJ, managedTrackerSourceSchema as aK, memberIdentitySchema as aL, nftTrackerCreateSchema as aM, openIdentityKindSchema as aN, programAccountTrackerCreateSchema as aO, programActivityTrackerCreateSchema as aP, publishedTrackerSchema as aQ, sourceIdentities as aR, stakeTrackerCreateSchema as aS, trackerAccountSchema as aT, trackerArtifactSchema as aU, trackerAttributionSchema as aV, trackerBoundSchema as aW, trackerConditionSchema as aX, trackerContentQuerySchema as aY, trackerContentReadSchema as aZ, trackerContentSchema as a_, accountRoleSchema as aw, appIdentityKindSchema as ax, beneficiaryRole as ay, contentMetricNameSchema as az, trackerControlSchema as b0, trackerCreateSchema as b1, trackerDataMaxBranches as b2, trackerDataMaxEntries as b3, trackerDataSchemaSchema as b4, trackerDefinitionResponseSchema as b5, trackerEvidenceSchema as b6, trackerIngestResultSchema as b7, trackerIngestSchema as b8, trackerOutcomePageSchema as b9, triggerEnrollmentSchema as bA, triggerHistoricalSchema as bB, triggerMode as bC, triggerSinceSchema as bD, walletProgramAccountSourceSchema as bE, walletProgramAccountsNamespace as bF, walletProgramAccountsTrackerSourceSchema as bG, whereConditions as bH, xAccountRoles as bI, xContentMetrics as bJ, xTweetSchema as bK, schemaCheckedReader as bM, trackerDataBatchSteps as bN, trackerDataIssue as bO, trackerDataIssues as bP, trackerDataPathTypes as bQ, trackerDataRecordSteps as bR, walletProgramAccounts as bS, whereSchemaIssue as bT, trackerOutcomeQuerySchema as ba, trackerOutcomeRetrySchema as bb, trackerOutcomeSchema as bc, trackerPageSchema as bd, trackerPreviewInputSchema as be, trackerPreviewLimits as bf, trackerPreviewSchema as bg, trackerPropertiesSchema as bh, trackerQuerySchema as bi, trackerRecordAccountSchema as bj, trackerRecordInputSchema as bk, trackerRecordSchema as bl, trackerSkipCodes as bm, trackerSourceKinds as bn, trackerSourceResponseSchema as bo, trackerSourceSchema as bp, trackerStatusSchema as bq, trackerSummarySchema as br, trackerTriggerModeSchema as bs, trackerTriggerOutcomePageSchema as bt, trackerTriggerOutcomeQuerySchema as bu, trackerTriggerPolicySchema as bv, trackerTriggerRecordSchema as bw, trackerUpdateSchema as bx, trackerWhereSchema as by, triggerAdmission as bz, customSourceSchema as c, xSearchSourceSchema as k, trackerDefinitionSchema as t, xContentBodySchema as x };
|
|
2628
|
+
export type { ManagedTrackerSourceKind as $, BadgeHandle as B, ContentBody as C, GroupHandle as G, AccountRole as H, IdentityKind as I, AppIdentityKind as J, KnownSkipEnrollment as K, LedgerReference as L, MemberIdentity as M, Bound as N, OpenIdentityKind as O, Condition as P, QuestHandle as Q, ResourceHandle as R, SkipEnrollment as S, TrackerSkipCode as T, DataLeaves as U, DataTrackerSource as V, WithRecordData as W, XTweet as X, KnownIdentityKind as Y, ManagedTrackerCreateInput as Z, ManagedTrackerSource as _, KnownTrackerSkipCode as a, NftTrackerCreateInput as a0, ProgramAccountTrackerCreateInput as a1, ProgramActivityTrackerCreateInput as a2, StakeTrackerCreateInput as a3, TrackerAccount as a4, TrackerAttribution as a5, TrackerBound as a6, TrackerCondition as a7, TrackerContent as a8, TrackerContentQuery as a9, TrackerCreateInput as aa, TrackerDataIssue as ab, TrackerDefinition as ac, TrackerDefinitionResponse as ad, TrackerOutcome as ae, TrackerOutcomeQuery as af, TrackerPreview as ag, TrackerPreviewInput as ah, TrackerQuery as ai, TrackerRecord as aj, TrackerSourceKind as ak, TrackerSourceResponse as al, TrackerStatus as am, TrackerTriggerOutcomePage as an, TrackerTriggerOutcomeQuery as ao, TrackerUpdateInput as ap, TrackerWhere as aq, TriggerEnrollment as ar, TriggerHistorical as as, TriggerSince as at, TypedTrackerRecord as au, WalletProgramAccountsTrackerSource as av, TrackerDataSchema as b, TrackerDataBudget as bL, WithContent as d, WithAccountRoles as e, TrackerSource as f, Tracker as g, TrackerData as h, SourceRoles as i, LedgerHandle as j, XContentMetric as l, TrackerTriggerPolicy as m, Where as n, ReferralHandle as o, TrackerTriggerContext as p, TrackerReader as q, TrackerTriggerMode as r, RoleOf as s, WhereSetting as u, ContentMetricName as v, LedgerSetting as w, TrackerPage as y, TrackerReadQuery as z };
|