@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.
- package/CHANGELOG.md +22 -0
- package/dist/{accounts-DnpKoJCo.d.ts → accounts-DD4gAOCe.d.ts} +25 -3
- package/dist/{action-9Xl0StBg.d.ts → action-BDFKqGlH.d.ts} +3 -2
- package/dist/{attempt-captures-DMNFMYFb.d.ts → attempt-captures-CbuCmthd.d.ts} +4 -3
- package/dist/authoring.d.ts +218 -43
- package/dist/authoring.js +73 -17
- package/dist/{automatic-outcomes-CQ3vpiQl.d.ts → automatic-outcomes-DE3vfi8g.d.ts} +11 -3
- package/dist/avatar.d.ts +2 -1
- package/dist/browser.d.ts +15 -14
- package/dist/browser.js +11 -11
- package/dist/{capability-error-CuI_F7yM.d.ts → capability-error-db7kO8-P.d.ts} +2 -1
- package/dist/{catalog-BLGie8Lh.d.ts → catalog-Cf3fHDNn.d.ts} +11 -3
- package/dist/{chunk-55WJVFWC.js → chunk-2A3BJ262.js} +2 -2
- package/dist/{chunk-P4TPW4SY.js → chunk-5RLIPTL7.js} +1 -1
- package/dist/{chunk-HXTKI34N.js → chunk-AZDZEQFK.js} +1 -1
- package/dist/{chunk-TYZFVL73.js → chunk-BRROI4CH.js} +4 -4
- package/dist/{chunk-6YTSRWRB.js → chunk-CQVKOD3B.js} +71 -4
- package/dist/{chunk-MEUAJIVO.js → chunk-CZ23KRVK.js} +2 -2
- package/dist/{chunk-DDJN2T5A.js → chunk-DIXYVGXO.js} +1 -1
- package/dist/{chunk-75KF633N.js → chunk-GEVARKEV.js} +1 -1
- package/dist/{chunk-VRZZB7CQ.js → chunk-LDO5GP7G.js} +1 -1
- package/dist/{chunk-SD74HD75.js → chunk-LGGD7S5T.js} +9 -9
- package/dist/{chunk-R3MNZKNJ.js → chunk-ME2KUAVJ.js} +1 -1
- package/dist/{chunk-DNPDR4Z7.js → chunk-ODJGTFPY.js} +6 -6
- package/dist/{chunk-6UBFSMCM.js → chunk-PO2ZDY27.js} +1 -1
- package/dist/{chunk-EXZVWQOQ.js → chunk-RKTMSTT7.js} +2 -2
- package/dist/{chunk-KKHENO57.js → chunk-SWLW4VN3.js} +2 -2
- package/dist/{chunk-CZ7NQ7W7.js → chunk-TCREFRPK.js} +3 -3
- package/dist/{chunk-5AKD4ZF3.js → chunk-UGM6DUB2.js} +8 -3
- package/dist/{chunk-IW46TW3A.js → chunk-VNEJH4NT.js} +26 -2
- package/dist/{chunk-4JSPMFO2.js → chunk-WNEQEDMU.js} +2 -2
- package/dist/{chunk-7YSVZA7A.js → chunk-WVK3G2J2.js} +1 -1
- package/dist/{client-BMif22WQ.d.ts → client-6eSYOl8h.d.ts} +33 -11
- package/dist/{dashboards-DMk-vL1q.d.ts → dashboards-DCOAXL54.d.ts} +6 -5
- package/dist/{deployments-BCr418BX.d.ts → deployments-BIfdCMd5.d.ts} +530 -337
- package/dist/{host-environment-FN4zg3hw.d.ts → host-environment-DUw5-Cvj.d.ts} +2 -1
- package/dist/{identity-integration-r76xaAax.d.ts → identity-integration-BlfOn8rc.d.ts} +3 -2
- package/dist/index.d.ts +16 -15
- package/dist/index.js +10 -10
- package/dist/internal.d.ts +34 -19
- package/dist/internal.js +40 -14
- package/dist/{limits-ByVRQePO.d.ts → limits-Ctaeq23J.d.ts} +3 -2
- package/dist/{offers-xcPbYaEv.d.ts → offers-COqHGbHm.d.ts} +4 -3
- package/dist/{participant-activity-DXRq4s6K.d.ts → participant-activity-BznrcePT.d.ts} +2 -1
- package/dist/{participant-rewards-BcWkBRn_.d.ts → participant-rewards-s5Gn23qb.d.ts} +23 -1
- package/dist/portal-proxy.d.ts +7 -4
- package/dist/portal-proxy.js +13 -17
- package/dist/profiles-CLDKZVFx.d.ts +370 -0
- package/dist/react/index.d.ts +50 -31
- package/dist/react/index.js +11 -11
- package/dist/{request-error-D_dUPLwo.d.ts → request-error-C24SY7n9.d.ts} +2 -1
- package/dist/{reward-deliveries-0VvT6LMj.d.ts → reward-deliveries-DFhYGJdx.d.ts} +3 -2
- package/dist/runtime/authoring.js +1 -1
- package/dist/runtime/chunks/HKAI5OQA.js +1 -0
- package/dist/runtime/manifest.json +3 -3
- package/dist/runtime/schema.js +1 -1
- package/dist/schema.d.ts +258 -176
- package/dist/schema.js +16 -8
- package/dist/server/index.d.ts +15 -14
- package/dist/server/index.js +45 -45
- package/dist/{sign-in-providers-C5_753DZ.d.ts → sign-in-providers-C97mRNbG.d.ts} +4 -3
- package/dist/solana.d.ts +142 -26
- package/dist/solana.js +449 -114
- package/dist/{streaks-0YuipsUQ.d.ts → streaks-MAqKHbHC.d.ts} +2 -1
- package/dist/{submission-input-CaL8drIh.d.ts → submission-input-BD7nORuh.d.ts} +4 -3
- package/dist/{telegram-browser-DLtHPRBI.d.ts → telegram-browser-gRMgGs7B.d.ts} +8 -7
- package/dist/telegram.d.ts +14 -12
- package/dist/telegram.js +2 -2
- package/dist/testing.d.ts +24 -15
- package/dist/testing.js +6 -6
- package/dist/{tracker-data-CAK942sx.d.ts → tracker-data-DQgX3FIc.d.ts} +198 -3
- package/dist/{transport-CkidqTOk.d.ts → transport-BLU8jrhg.d.ts} +3415 -2233
- package/dist/vite.d.ts +2 -1
- package/dist/{wallet-DQtJelQQ.d.ts → wallet-CPAjrW4k.d.ts} +52 -375
- package/dist/{wallet-browser-dpmr22Xv.d.ts → wallet-browser-BzPt_Qb5.d.ts} +3 -2
- package/package.json +6 -3
- package/dist/runtime/chunks/2UDZ6TPL.js +0 -1
package/dist/telegram.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import './accounts-
|
|
1
|
+
import { RelayRequestOptions, RelayClient } from './index.js';
|
|
2
|
+
import { ParticipantSession } from './index.js';
|
|
3
|
+
import './accounts-DD4gAOCe.js';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import './tracker-data-
|
|
6
|
-
import './wallet-
|
|
7
|
-
import './submission-input-
|
|
8
|
-
import './request-error-
|
|
9
|
-
import './reward-deliveries-
|
|
10
|
-
import './catalog-
|
|
11
|
-
import './action-
|
|
12
|
-
import './sign-in-providers-
|
|
5
|
+
import './tracker-data-DQgX3FIc.js';
|
|
6
|
+
import './wallet-CPAjrW4k.js';
|
|
7
|
+
import './submission-input-BD7nORuh.js';
|
|
8
|
+
import './request-error-C24SY7n9.js';
|
|
9
|
+
import './reward-deliveries-DFhYGJdx.js';
|
|
10
|
+
import './catalog-Cf3fHDNn.js';
|
|
11
|
+
import './action-BDFKqGlH.js';
|
|
12
|
+
import './sign-in-providers-C97mRNbG.js';
|
|
13
|
+
import './profiles-CLDKZVFx.js';
|
|
13
14
|
|
|
14
15
|
/**
|
|
15
16
|
* A plugin's own sign-in method, such as Telegram's Mini App sign-in: the app passes the vendor's
|
|
@@ -61,4 +62,5 @@ declare function withTelegram<Client extends RelayClient>(relay: Client): Client
|
|
|
61
62
|
*/
|
|
62
63
|
declare function telegramMiniAppInitData(): string | null;
|
|
63
64
|
|
|
64
|
-
export {
|
|
65
|
+
export { telegramMiniAppInitData, withTelegram };
|
|
66
|
+
export type { PluginSignInMethod, TelegramClient };
|
package/dist/telegram.js
CHANGED
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
} from "./chunk-FWLQ5XCS.js";
|
|
4
4
|
import {
|
|
5
5
|
withPluginNamespace
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-LDO5GP7G.js";
|
|
7
|
+
import "./chunk-VNEJH4NT.js";
|
|
8
8
|
|
|
9
9
|
// src/plugins/telegram.generated.ts
|
|
10
10
|
function withTelegram(relay) {
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,19 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ae as Decision } from './accounts-DD4gAOCe.js';
|
|
2
|
+
import { PointBalance } from './authoring.js';
|
|
3
|
+
import { Reward, PointLedgerReference, PointEntry, LeaderboardPage } from './index.js';
|
|
4
|
+
import { pointBalanceSchema, discordMemberSchema, discordMessageSchema, photoResultSchema, TextReviewInput } from './schema.js';
|
|
5
|
+
import { NftCollection, SolanaSeed, WalletCallArgument, WalletEventCondition, WalletReader } from './authoring.js';
|
|
6
|
+
import { linkedWalletSchema, walletBalanceSchema, walletNftsSchema, walletCallSchema, walletDelegationsSchema, walletEventsSchema, walletTransactionsSchema, walletProgramAccountSchema, walletStakeSchema, SolanaNetwork } from './schema.js';
|
|
3
7
|
import * as z from 'zod';
|
|
4
|
-
import {
|
|
5
|
-
export { C as CapabilityError } from './capability-error-
|
|
6
|
-
import {
|
|
7
|
-
export { L as Limits, l as limits } from './limits-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { CapabilityFailure, memberCompletionSchema } from './schema.js';
|
|
9
|
+
export { C as CapabilityError } from './capability-error-db7kO8-P.js';
|
|
10
|
+
import { xConnectionSchema, xProfileSchema, xPostSchema, ImageReference, imageInspectionSchema, imageComparisonSchema, imageSightingsSchema } from './schema.js';
|
|
11
|
+
export { L as Limits, l as limits } from './limits-Ctaeq23J.js';
|
|
12
|
+
import { Tracker, TrackerData, ContentBody, TrackerTriggerContext, TrackerPage } from './authoring.js';
|
|
13
|
+
import { memberIdentitySchema, trackerQuerySchema, trackerPageSchema, trackerSummarySchema, TrackerContentQuery, trackerContentSchema, TrackerAttribution } from './schema.js';
|
|
14
|
+
import { TelegramReader } from './authoring.js';
|
|
15
|
+
import { telegramConnectionSchema, telegramChatMemberSchema } from './schema.js';
|
|
16
|
+
import { profileReferralSchema } from './schema.js';
|
|
10
17
|
import { EvaluationMember } from './authoring.js';
|
|
11
|
-
export { A as AttemptCapture, C as CapturedFact } from './attempt-captures-
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import './
|
|
16
|
-
import './
|
|
18
|
+
export { A as AttemptCapture, C as CapturedFact } from './attempt-captures-CbuCmthd.js';
|
|
19
|
+
import { ParticipantSession, RelayEvent } from './index.js';
|
|
20
|
+
import { Badge } from './index.js';
|
|
21
|
+
import { QuestView } from './index.js';
|
|
22
|
+
import { questExperienceSchema } from './schema.js';
|
|
23
|
+
import './streaks-MAqKHbHC.js';
|
|
24
|
+
import './dashboards-DCOAXL54.js';
|
|
17
25
|
import './units-CwgsPB_r.js';
|
|
18
26
|
|
|
19
27
|
/** One project time-zone change: from `effectiveAt` on, days are counted in `timeZone`. */
|
|
@@ -1175,4 +1183,5 @@ type FakeRelay = {
|
|
|
1175
1183
|
*/
|
|
1176
1184
|
declare function createFakeRelay(options?: FakeRelayOptions): FakeRelay;
|
|
1177
1185
|
|
|
1178
|
-
export {
|
|
1186
|
+
export { Decision, DecisionAssertionError, EvaluatorError, TestSetupError, createFakeRelay, createTestContext, defaultMember, defaultNow, defaultSeed, expectAccept, expectDefer, expectProgress, expectReject, expectReview, fakeEvaluationMember, fakeTelegramReader, fakeWalletReader, maxCapabilityCalls, replayAttempt, runQuest, trackerObservation, trackerPage };
|
|
1187
|
+
export type { AttemptReplay, CalendarSegment, CapabilityCall, CapabilityCallRecord, CapabilityCallRequest, CapabilityDivergence, CapabilityOutcome, CapabilityRequest, FakeAnswer, FakeRelay, FakeRelayOptions, FakeRelayRequest, KnownCapabilityKind, KnownDivergenceReason, QuestDiagnostic, QuestHostContext, QuestInputOf, QuestRun, ReplayDivergence, ReplayOptions, RunQuestOptions, TestContext, TestFacts, TestRelease, TestableQuest, TrackerFacts, TrackerObservationInput, TrackerReadRequest, TrackerRecordInput, WalletBalanceRequest };
|
package/dist/testing.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
attemptCaptureSchema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GEVARKEV.js";
|
|
4
4
|
import {
|
|
5
5
|
parseImageResult
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RKTMSTT7.js";
|
|
7
7
|
import {
|
|
8
8
|
isParticipantRoute
|
|
9
9
|
} from "./chunk-LZXDYSUH.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
xPostSchema,
|
|
14
14
|
xProfileSchema,
|
|
15
15
|
xRequestSchema
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-DIXYVGXO.js";
|
|
17
17
|
import {
|
|
18
18
|
CapabilityError
|
|
19
19
|
} from "./chunk-MWMCQLCG.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
participantActivitySchema,
|
|
23
23
|
participantSessionSchema,
|
|
24
24
|
questExperienceSchema
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-PO2ZDY27.js";
|
|
26
26
|
import {
|
|
27
27
|
badgeCatalogSchema,
|
|
28
28
|
badgeSchema,
|
|
@@ -86,10 +86,10 @@ import {
|
|
|
86
86
|
walletProgramAccountSchema,
|
|
87
87
|
walletStakeSchema,
|
|
88
88
|
walletTransactionsSchema
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-CQVKOD3B.js";
|
|
90
90
|
import {
|
|
91
91
|
RelayErrorCode
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-VNEJH4NT.js";
|
|
93
93
|
|
|
94
94
|
// src/testing/run.ts
|
|
95
95
|
import * as z3 from "zod";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
+
import { n as SolanaSeed, S as SolanaIdlSource } from './wallet-CPAjrW4k.js';
|
|
2
3
|
|
|
3
4
|
declare const resourceKind: unique symbol;
|
|
4
5
|
/** A resource defined in code. The type-only marker never changes its serialized shape. */
|
|
@@ -233,8 +234,8 @@ declare const walletProgramActivitySourceSchema: z.ZodObject<{
|
|
|
233
234
|
}, z.core.$strict>;
|
|
234
235
|
/**
|
|
235
236
|
* What a `wallet.nfts()` source samples: an NFT collection as `ctx.wallet.nfts()` takes it, an
|
|
236
|
-
* ERC-721 contract or one ERC-1155 token ID on an EVM chain, or a Metaplex
|
|
237
|
-
* Solana mainnet or devnet. Syntax only; whether Relay reads it is checked when it samples.
|
|
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.
|
|
238
239
|
*/
|
|
239
240
|
declare const walletNftSourceSchema: z.ZodObject<{
|
|
240
241
|
collection: z.ZodString;
|
|
@@ -247,6 +248,25 @@ declare const walletStakeSourceSchema: z.ZodObject<{
|
|
|
247
248
|
chain: z.ZodString;
|
|
248
249
|
voteAccount: z.ZodNullable<z.ZodString>;
|
|
249
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>;
|
|
250
270
|
declare const xSearchSourceSchema: z.ZodObject<{
|
|
251
271
|
kind: z.ZodLiteral<"x-search">;
|
|
252
272
|
query: z.ZodString;
|
|
@@ -284,6 +304,18 @@ declare const customSourceSchema: z.ZodObject<{
|
|
|
284
304
|
chain: z.ZodString;
|
|
285
305
|
voteAccount: z.ZodNullable<z.ZodString>;
|
|
286
306
|
}, z.core.$strict>>;
|
|
307
|
+
programAccount: z.ZodOptional<z.ZodObject<{
|
|
308
|
+
chain: z.ZodString;
|
|
309
|
+
program: z.ZodString;
|
|
310
|
+
account: z.ZodString;
|
|
311
|
+
seeds: z.ZodArray<z.ZodType<SolanaSeed, unknown, z.core.$ZodTypeInternals<SolanaSeed, unknown>>>;
|
|
312
|
+
field: z.ZodString;
|
|
313
|
+
idl: z.ZodOptional<z.ZodObject<{
|
|
314
|
+
program: z.ZodString;
|
|
315
|
+
source: z.ZodType<SolanaIdlSource>;
|
|
316
|
+
idl: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
317
|
+
}, z.core.$strict>>;
|
|
318
|
+
}, z.core.$strict>>;
|
|
287
319
|
}, z.core.$strict>;
|
|
288
320
|
declare const trackerSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
289
321
|
kind: z.ZodLiteral<"x-search">;
|
|
@@ -321,6 +353,18 @@ declare const trackerSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
321
353
|
chain: z.ZodString;
|
|
322
354
|
voteAccount: z.ZodNullable<z.ZodString>;
|
|
323
355
|
}, z.core.$strict>>;
|
|
356
|
+
programAccount: z.ZodOptional<z.ZodObject<{
|
|
357
|
+
chain: z.ZodString;
|
|
358
|
+
program: z.ZodString;
|
|
359
|
+
account: z.ZodString;
|
|
360
|
+
seeds: z.ZodArray<z.ZodType<SolanaSeed, unknown, z.core.$ZodTypeInternals<SolanaSeed, unknown>>>;
|
|
361
|
+
field: z.ZodString;
|
|
362
|
+
idl: z.ZodOptional<z.ZodObject<{
|
|
363
|
+
program: z.ZodString;
|
|
364
|
+
source: z.ZodType<SolanaIdlSource>;
|
|
365
|
+
idl: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
366
|
+
}, z.core.$strict>>;
|
|
367
|
+
}, z.core.$strict>>;
|
|
324
368
|
}, z.core.$strict>, z.ZodObject<{
|
|
325
369
|
kind: z.ZodLiteral<"discord-messages">;
|
|
326
370
|
text: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -414,6 +458,18 @@ declare const trackerDefinitionSchema: z.ZodObject<{
|
|
|
414
458
|
chain: z.ZodString;
|
|
415
459
|
voteAccount: z.ZodNullable<z.ZodString>;
|
|
416
460
|
}, z.core.$strict>>;
|
|
461
|
+
programAccount: z.ZodOptional<z.ZodObject<{
|
|
462
|
+
chain: z.ZodString;
|
|
463
|
+
program: z.ZodString;
|
|
464
|
+
account: z.ZodString;
|
|
465
|
+
seeds: z.ZodArray<z.ZodType<SolanaSeed, unknown, z.core.$ZodTypeInternals<SolanaSeed, unknown>>>;
|
|
466
|
+
field: z.ZodString;
|
|
467
|
+
idl: z.ZodOptional<z.ZodObject<{
|
|
468
|
+
program: z.ZodString;
|
|
469
|
+
source: z.ZodType<SolanaIdlSource>;
|
|
470
|
+
idl: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
471
|
+
}, z.core.$strict>>;
|
|
472
|
+
}, z.core.$strict>>;
|
|
417
473
|
}, z.core.$strict>, z.ZodObject<{
|
|
418
474
|
kind: z.ZodLiteral<"discord-messages">;
|
|
419
475
|
text: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -466,6 +522,18 @@ declare const trackerArtifactSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
466
522
|
chain: z.ZodString;
|
|
467
523
|
voteAccount: z.ZodNullable<z.ZodString>;
|
|
468
524
|
}, z.core.$strict>>;
|
|
525
|
+
programAccount: z.ZodOptional<z.ZodObject<{
|
|
526
|
+
chain: z.ZodString;
|
|
527
|
+
program: z.ZodString;
|
|
528
|
+
account: z.ZodString;
|
|
529
|
+
seeds: z.ZodArray<z.ZodType<SolanaSeed, unknown, z.core.$ZodTypeInternals<SolanaSeed, unknown>>>;
|
|
530
|
+
field: z.ZodString;
|
|
531
|
+
idl: z.ZodOptional<z.ZodObject<{
|
|
532
|
+
program: z.ZodString;
|
|
533
|
+
source: z.ZodType<SolanaIdlSource>;
|
|
534
|
+
idl: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
535
|
+
}, z.core.$strict>>;
|
|
536
|
+
}, z.core.$strict>>;
|
|
469
537
|
}, z.core.$strict>, z.ZodObject<{
|
|
470
538
|
kind: z.ZodLiteral<"discord-messages">;
|
|
471
539
|
text: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -529,6 +597,18 @@ declare const knownTrackerSourceResponseSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
529
597
|
chain: z.ZodString;
|
|
530
598
|
voteAccount: z.ZodNullable<z.ZodString>;
|
|
531
599
|
}, z.core.$strip>>;
|
|
600
|
+
programAccount: z.ZodOptional<z.ZodObject<{
|
|
601
|
+
chain: z.ZodString;
|
|
602
|
+
program: z.ZodString;
|
|
603
|
+
account: z.ZodString;
|
|
604
|
+
seeds: z.ZodArray<z.ZodJSONSchema>;
|
|
605
|
+
field: z.ZodString;
|
|
606
|
+
idl: z.ZodOptional<z.ZodObject<{
|
|
607
|
+
program: z.ZodString;
|
|
608
|
+
source: z.ZodString;
|
|
609
|
+
idl: z.ZodJSONSchema;
|
|
610
|
+
}, z.core.$strip>>;
|
|
611
|
+
}, z.core.$strip>>;
|
|
532
612
|
kind: z.ZodLiteral<"custom">;
|
|
533
613
|
namespace: z.ZodString;
|
|
534
614
|
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -567,6 +647,18 @@ declare const trackerSourceResponseSchema: z.ZodUnion<readonly [z.ZodDiscriminat
|
|
|
567
647
|
chain: z.ZodString;
|
|
568
648
|
voteAccount: z.ZodNullable<z.ZodString>;
|
|
569
649
|
}, z.core.$strip>>;
|
|
650
|
+
programAccount: z.ZodOptional<z.ZodObject<{
|
|
651
|
+
chain: z.ZodString;
|
|
652
|
+
program: z.ZodString;
|
|
653
|
+
account: z.ZodString;
|
|
654
|
+
seeds: z.ZodArray<z.ZodJSONSchema>;
|
|
655
|
+
field: z.ZodString;
|
|
656
|
+
idl: z.ZodOptional<z.ZodObject<{
|
|
657
|
+
program: z.ZodString;
|
|
658
|
+
source: z.ZodString;
|
|
659
|
+
idl: z.ZodJSONSchema;
|
|
660
|
+
}, z.core.$strip>>;
|
|
661
|
+
}, z.core.$strip>>;
|
|
570
662
|
kind: z.ZodLiteral<"custom">;
|
|
571
663
|
namespace: z.ZodString;
|
|
572
664
|
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -611,6 +703,18 @@ declare const trackerDefinitionResponseSchema: z.ZodObject<{
|
|
|
611
703
|
chain: z.ZodString;
|
|
612
704
|
voteAccount: z.ZodNullable<z.ZodString>;
|
|
613
705
|
}, z.core.$strip>>;
|
|
706
|
+
programAccount: z.ZodOptional<z.ZodObject<{
|
|
707
|
+
chain: z.ZodString;
|
|
708
|
+
program: z.ZodString;
|
|
709
|
+
account: z.ZodString;
|
|
710
|
+
seeds: z.ZodArray<z.ZodJSONSchema>;
|
|
711
|
+
field: z.ZodString;
|
|
712
|
+
idl: z.ZodOptional<z.ZodObject<{
|
|
713
|
+
program: z.ZodString;
|
|
714
|
+
source: z.ZodString;
|
|
715
|
+
idl: z.ZodJSONSchema;
|
|
716
|
+
}, z.core.$strip>>;
|
|
717
|
+
}, z.core.$strip>>;
|
|
614
718
|
kind: z.ZodLiteral<"custom">;
|
|
615
719
|
namespace: z.ZodString;
|
|
616
720
|
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -664,6 +768,18 @@ declare const publishedTrackerSchema: z.ZodObject<{
|
|
|
664
768
|
chain: z.ZodString;
|
|
665
769
|
voteAccount: z.ZodNullable<z.ZodString>;
|
|
666
770
|
}, z.core.$strip>>;
|
|
771
|
+
programAccount: z.ZodOptional<z.ZodObject<{
|
|
772
|
+
chain: z.ZodString;
|
|
773
|
+
program: z.ZodString;
|
|
774
|
+
account: z.ZodString;
|
|
775
|
+
seeds: z.ZodArray<z.ZodJSONSchema>;
|
|
776
|
+
field: z.ZodString;
|
|
777
|
+
idl: z.ZodOptional<z.ZodObject<{
|
|
778
|
+
program: z.ZodString;
|
|
779
|
+
source: z.ZodString;
|
|
780
|
+
idl: z.ZodJSONSchema;
|
|
781
|
+
}, z.core.$strip>>;
|
|
782
|
+
}, z.core.$strip>>;
|
|
667
783
|
kind: z.ZodLiteral<"custom">;
|
|
668
784
|
namespace: z.ZodString;
|
|
669
785
|
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -721,6 +837,18 @@ declare const trackerStatusSchema: z.ZodObject<{
|
|
|
721
837
|
chain: z.ZodString;
|
|
722
838
|
voteAccount: z.ZodNullable<z.ZodString>;
|
|
723
839
|
}, z.core.$strip>>;
|
|
840
|
+
programAccount: z.ZodOptional<z.ZodObject<{
|
|
841
|
+
chain: z.ZodString;
|
|
842
|
+
program: z.ZodString;
|
|
843
|
+
account: z.ZodString;
|
|
844
|
+
seeds: z.ZodArray<z.ZodJSONSchema>;
|
|
845
|
+
field: z.ZodString;
|
|
846
|
+
idl: z.ZodOptional<z.ZodObject<{
|
|
847
|
+
program: z.ZodString;
|
|
848
|
+
source: z.ZodString;
|
|
849
|
+
idl: z.ZodJSONSchema;
|
|
850
|
+
}, z.core.$strip>>;
|
|
851
|
+
}, z.core.$strip>>;
|
|
724
852
|
kind: z.ZodLiteral<"custom">;
|
|
725
853
|
namespace: z.ZodString;
|
|
726
854
|
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -986,6 +1114,48 @@ declare const stakeTrackerCreateSchema: z.ZodObject<{
|
|
|
986
1114
|
}, z.core.$strict>;
|
|
987
1115
|
/** What `management.trackers.create` takes for a `wallet.stake()` tracker. */
|
|
988
1116
|
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
|
+
*/
|
|
1137
|
+
declare const programAccountTrackerCreateSchema: z.ZodObject<{
|
|
1138
|
+
key: z.ZodString;
|
|
1139
|
+
actionId: z.ZodString;
|
|
1140
|
+
window: z.ZodObject<{
|
|
1141
|
+
start: z.ZodNumber;
|
|
1142
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
1143
|
+
}, z.core.$strict>;
|
|
1144
|
+
title: z.ZodString;
|
|
1145
|
+
refreshSeconds: z.ZodDefault<z.ZodNumber>;
|
|
1146
|
+
maxPages: z.ZodDefault<z.ZodNumber>;
|
|
1147
|
+
source: z.ZodObject<{
|
|
1148
|
+
idl: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
1149
|
+
chain: z.ZodString;
|
|
1150
|
+
program: z.ZodString;
|
|
1151
|
+
account: z.ZodString;
|
|
1152
|
+
seeds: z.ZodArray<z.ZodType<SolanaSeed, unknown, z.core.$ZodTypeInternals<SolanaSeed, unknown>>>;
|
|
1153
|
+
field: z.ZodString;
|
|
1154
|
+
kind: z.ZodLiteral<"wallet-program-accounts">;
|
|
1155
|
+
}, z.core.$strict>;
|
|
1156
|
+
}, z.core.$strict>;
|
|
1157
|
+
/** What `management.trackers.create` takes for a `wallet.programAccounts()` tracker. */
|
|
1158
|
+
type ProgramAccountTrackerCreateInput = z.input<typeof programAccountTrackerCreateSchema>;
|
|
989
1159
|
/**
|
|
990
1160
|
* Changes to a tracker created as data. Fields left out keep their value; the key and the source's
|
|
991
1161
|
* kind never change. `source` changes the source's own settings, such as an X query or whether
|
|
@@ -1410,6 +1580,18 @@ declare const trackerPageSchema: z.ZodObject<{
|
|
|
1410
1580
|
chain: z.ZodString;
|
|
1411
1581
|
voteAccount: z.ZodNullable<z.ZodString>;
|
|
1412
1582
|
}, z.core.$strip>>;
|
|
1583
|
+
programAccount: z.ZodOptional<z.ZodObject<{
|
|
1584
|
+
chain: z.ZodString;
|
|
1585
|
+
program: z.ZodString;
|
|
1586
|
+
account: z.ZodString;
|
|
1587
|
+
seeds: z.ZodArray<z.ZodJSONSchema>;
|
|
1588
|
+
field: z.ZodString;
|
|
1589
|
+
idl: z.ZodOptional<z.ZodObject<{
|
|
1590
|
+
program: z.ZodString;
|
|
1591
|
+
source: z.ZodString;
|
|
1592
|
+
idl: z.ZodJSONSchema;
|
|
1593
|
+
}, z.core.$strip>>;
|
|
1594
|
+
}, z.core.$strip>>;
|
|
1413
1595
|
kind: z.ZodLiteral<"custom">;
|
|
1414
1596
|
namespace: z.ZodString;
|
|
1415
1597
|
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -1505,6 +1687,18 @@ declare const trackerSummarySchema: z.ZodObject<{
|
|
|
1505
1687
|
chain: z.ZodString;
|
|
1506
1688
|
voteAccount: z.ZodNullable<z.ZodString>;
|
|
1507
1689
|
}, z.core.$strip>>;
|
|
1690
|
+
programAccount: z.ZodOptional<z.ZodObject<{
|
|
1691
|
+
chain: z.ZodString;
|
|
1692
|
+
program: z.ZodString;
|
|
1693
|
+
account: z.ZodString;
|
|
1694
|
+
seeds: z.ZodArray<z.ZodJSONSchema>;
|
|
1695
|
+
field: z.ZodString;
|
|
1696
|
+
idl: z.ZodOptional<z.ZodObject<{
|
|
1697
|
+
program: z.ZodString;
|
|
1698
|
+
source: z.ZodString;
|
|
1699
|
+
idl: z.ZodJSONSchema;
|
|
1700
|
+
}, z.core.$strip>>;
|
|
1701
|
+
}, z.core.$strip>>;
|
|
1508
1702
|
kind: z.ZodLiteral<"custom">;
|
|
1509
1703
|
namespace: z.ZodString;
|
|
1510
1704
|
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -2177,4 +2371,5 @@ declare function schemaCheckedReader(reader: TrackerReader): TrackerReader;
|
|
|
2177
2371
|
*/
|
|
2178
2372
|
declare function whereSchemaIssue(schema: TrackerDataSchema, where: TrackerWhere | undefined): string | null;
|
|
2179
2373
|
|
|
2180
|
-
export {
|
|
2374
|
+
export { trackerDataSchema as A, trackerTriggerContextSchema as D, schemaCheckedReader as F, sourceContent as H, trackerDataBatchSteps as J, trackerDataIssue as N, trackerDataIssues as P, trackerDataPathTypes as U, trackerDataRecordSteps as V, whereSchemaIssue as Y, whereSettings as Z, stakeTrackerCreateSchema as a$, accountRoleSchema as aG, appIdentityKindSchema as aH, beneficiaryRole as aI, contentMetricNameSchema as aJ, customContentSchema as aK, defaultTriggerMode as aL, identityKindSchema as aM, isAppIdentityKind as aN, isKnownTrackerSource as aO, knownIdentityKinds as aP, managedTrackerCreateSchema as aQ, managedTrackerSource as aR, managedTrackerSourceKinds as aS, managedTrackerSourceSchema as aT, memberIdentitySchema as aU, nftTrackerCreateSchema as aV, openIdentityKindSchema as aW, programAccountTrackerCreateSchema as aX, programActivityTrackerCreateSchema as aY, publishedTrackerSchema as aZ, sourceIdentities as a_, trackerAccountSchema as b0, trackerArtifactSchema as b1, trackerAttributionSchema as b2, trackerBoundSchema as b3, trackerConditionSchema as b4, trackerContentQuerySchema as b5, trackerContentReadSchema as b6, trackerContentSchema as b7, trackerContentStageSchema as b8, trackerControlSchema as b9, trackerSummarySchema as bA, trackerTriggerModeSchema as bB, trackerTriggerOutcomePageSchema as bC, trackerTriggerOutcomeQuerySchema as bD, trackerTriggerPolicySchema as bE, trackerTriggerRecordSchema as bF, trackerUpdateSchema as bG, trackerWhereSchema as bH, triggerAdmission as bI, triggerEnrollmentSchema as bJ, triggerHistoricalSchema as bK, triggerMode as bL, triggerSinceSchema as bM, walletBalanceSourceSchema as bN, walletNftSourceSchema as bO, walletNftsTrackerSourceSchema as bP, walletProgramAccountSourceSchema as bQ, walletProgramAccountsTrackerSourceSchema as bR, walletProgramActivitySourceSchema as bS, walletProgramActivityTrackerSourceSchema as bT, walletStakeSourceSchema as bU, walletStakeTrackerSourceSchema as bV, whereConditions as bW, xAccountRoles as bX, xContentMetrics as bY, xTweetSchema as bZ, trackerCreateSchema as ba, trackerDataMaxBranches as bb, trackerDataMaxEntries as bc, trackerDataSchemaSchema as bd, trackerDefinitionResponseSchema as be, trackerEvidenceSchema as bf, trackerIngestResultSchema as bg, trackerIngestSchema as bh, trackerOutcomePageSchema as bi, trackerOutcomeQuerySchema as bj, trackerOutcomeRetrySchema as bk, trackerOutcomeSchema as bl, trackerPageSchema as bm, trackerPreviewInputSchema as bn, trackerPreviewLimits as bo, trackerPreviewSchema as bp, trackerPropertiesSchema as bq, trackerQuerySchema as br, trackerRecordAccountSchema as bs, trackerRecordInputSchema as bt, trackerRecordSchema as bu, trackerSkipCodes as bv, trackerSourceKinds as bw, trackerSourceResponseSchema as bx, trackerSourceSchema as by, trackerStatusSchema as bz, customSourceSchema as c, xSearchSourceSchema as k, trackerDefinitionSchema as t, xContentBodySchema as x };
|
|
2375
|
+
export type { AppIdentityKind as $, BadgeHandle as B, ContentBody as C, TrackerDataBudget as E, GroupHandle as G, IdentityKind as I, KnownSkipEnrollment as K, LedgerReference as L, MemberIdentity as M, OpenIdentityKind as O, QuestHandle as Q, ResourceHandle as R, SkipEnrollment as S, TrackerSkipCode as T, WithRecordData as W, XTweet as X, AccountRole as _, KnownTrackerSkipCode as a, Bound as a0, Condition as a1, DataLeaves as a2, KnownIdentityKind as a3, ManagedTrackerCreateInput as a4, ManagedTrackerSource as a5, ManagedTrackerSourceKind as a6, NftTrackerCreateInput as a7, ProgramAccountTrackerCreateInput as a8, ProgramActivityTrackerCreateInput as a9, TriggerSince as aA, TypedTrackerRecord as aB, WalletNftsTrackerSource as aC, WalletProgramAccountsTrackerSource as aD, WalletProgramActivityTrackerSource as aE, WalletStakeTrackerSource as aF, StakeTrackerCreateInput as aa, TrackerAccount as ab, TrackerAttribution as ac, TrackerBound as ad, TrackerCondition as ae, TrackerContent as af, TrackerContentQuery as ag, TrackerCreateInput as ah, TrackerDataIssue as ai, TrackerDefinition as aj, TrackerDefinitionResponse as ak, TrackerOutcome as al, TrackerOutcomeQuery as am, TrackerPreview as an, TrackerPreviewInput as ao, TrackerQuery as ap, TrackerRecord as aq, TrackerSourceKind as ar, TrackerSourceResponse as as, TrackerStatus as at, TrackerTriggerOutcomePage as au, TrackerTriggerOutcomeQuery as av, TrackerUpdateInput as aw, TrackerWhere as ax, TriggerEnrollment as ay, TriggerHistorical as az, TrackerDataSchema as b, 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 };
|