@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
package/dist/testing.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ag as Decision } from './accounts-
|
|
1
|
+
import { ag as Decision } from './accounts-C9as33l1.js';
|
|
2
2
|
import { StationCodeAction, PointBalance } from './authoring.js';
|
|
3
3
|
import { Reward, PointLedgerReference, PointEntry, LeaderboardPage } from './index.js';
|
|
4
4
|
import { pointBalanceSchema, discordMemberSchema, discordMessageSchema, photoResultSchema, TextReviewInput } from './schema.js';
|
|
@@ -6,22 +6,21 @@ import { NftCollection, SolanaSeed, WalletCallArgument, WalletEventCondition, Wa
|
|
|
6
6
|
import { linkedWalletSchema, walletBalanceSchema, walletNftsSchema, walletCallSchema, walletDelegationsSchema, walletEventsSchema, walletTransactionsSchema, walletProgramAccountSchema, walletStakeSchema, SolanaNetwork } from './schema.js';
|
|
7
7
|
import * as z from 'zod';
|
|
8
8
|
import { CapabilityFailure, memberCompletionSchema } from './schema.js';
|
|
9
|
-
export { C as CapabilityError } from './capability-error-
|
|
9
|
+
export { C as CapabilityError } from './capability-error-Bn6cCqof.js';
|
|
10
10
|
import { xConnectionSchema, xProfileSchema, xPostSchema, ImageReference, imageInspectionSchema, imageComparisonSchema, imageSightingsSchema } from './schema.js';
|
|
11
|
-
export { L as Limits, l as limits } from './limits-
|
|
11
|
+
export { L as Limits, l as limits } from './limits-p-Mg0oSi.js';
|
|
12
12
|
import { Tracker, TrackerData, ContentBody, TrackerTriggerContext, TrackerPage } from './authoring.js';
|
|
13
13
|
import { memberIdentitySchema, trackerQuerySchema, trackerPageSchema, trackerSummarySchema, TrackerContentQuery, trackerContentSchema, TrackerAttribution } from './schema.js';
|
|
14
14
|
import { TelegramReader } from './authoring.js';
|
|
15
15
|
import { telegramConnectionSchema, telegramChatMemberSchema } from './schema.js';
|
|
16
16
|
import { profileReferralSchema } from './schema.js';
|
|
17
17
|
import { EvaluationMember } from './authoring.js';
|
|
18
|
-
export { A as AttemptCapture, C as CapturedFact } from './attempt-captures-
|
|
18
|
+
export { A as AttemptCapture, C as CapturedFact } from './attempt-captures-DU4vi20Y.js';
|
|
19
19
|
import { ParticipantSession, RelayEvent } from './index.js';
|
|
20
20
|
import { Badge } from './index.js';
|
|
21
21
|
import { QuestView } from './index.js';
|
|
22
22
|
import { questExperienceSchema } from './schema.js';
|
|
23
23
|
import './streaks-MAqKHbHC.js';
|
|
24
|
-
import './dashboards-DXpjHnq-.js';
|
|
25
24
|
import './units-CwgsPB_r.js';
|
|
26
25
|
|
|
27
26
|
/** One project time-zone change: from `effectiveAt` on, days are counted in `timeZone`. */
|
|
@@ -30,14 +29,70 @@ type CalendarSegment = {
|
|
|
30
29
|
timeZone: string;
|
|
31
30
|
};
|
|
32
31
|
|
|
33
|
-
|
|
34
|
-
declare const capabilityRequestSchemas: {
|
|
32
|
+
declare const requests: {
|
|
35
33
|
"wallet-balance": z.ZodObject<{
|
|
36
34
|
kind: z.ZodLiteral<"wallet-balance">;
|
|
37
35
|
chain: z.ZodUnion<readonly [z.ZodLiteral<"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp">, z.ZodLiteral<"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1">, z.ZodCustom<`eip155:${number}`, `eip155:${number}`>, z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>]>;
|
|
38
36
|
token: z.ZodNullable<z.ZodString>;
|
|
39
37
|
address: z.ZodNullable<z.ZodString>;
|
|
40
38
|
}, z.core.$strict>;
|
|
39
|
+
"wallet-nfts": z.ZodObject<{
|
|
40
|
+
kind: z.ZodLiteral<"wallet-nfts">;
|
|
41
|
+
collection: z.ZodString & z.ZodType<NftCollection, string, z.core.$ZodTypeInternals<NftCollection, string>>;
|
|
42
|
+
address: z.ZodNullable<z.ZodString>;
|
|
43
|
+
}, z.core.$strict>;
|
|
44
|
+
"wallet-call": z.ZodObject<{
|
|
45
|
+
kind: z.ZodLiteral<"wallet-call">;
|
|
46
|
+
call: z.ZodString & z.ZodType<`eip155:${number}:0x${string} function ${string}`, string, z.core.$ZodTypeInternals<`eip155:${number}:0x${string} function ${string}`, string>>;
|
|
47
|
+
args: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
48
|
+
wallet: z.ZodLiteral<true>;
|
|
49
|
+
}, z.core.$strict>, z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
50
|
+
address: z.ZodNullable<z.ZodString>;
|
|
51
|
+
}, z.core.$strict>;
|
|
52
|
+
"wallet-delegations": z.ZodObject<{
|
|
53
|
+
kind: z.ZodLiteral<"wallet-delegations">;
|
|
54
|
+
chain: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
|
|
55
|
+
validator: z.ZodNullable<z.ZodString>;
|
|
56
|
+
address: z.ZodNullable<z.ZodString>;
|
|
57
|
+
}, z.core.$strict>;
|
|
58
|
+
"wallet-events": z.ZodObject<{
|
|
59
|
+
kind: z.ZodLiteral<"wallet-events">;
|
|
60
|
+
event: z.ZodString & z.ZodType<`eip155:${number}:0x${string} ${string}`, string, z.core.$ZodTypeInternals<`eip155:${number}:0x${string} ${string}`, string>>;
|
|
61
|
+
account: z.ZodString;
|
|
62
|
+
since: z.ZodNumber;
|
|
63
|
+
afterActivation: z.ZodBoolean;
|
|
64
|
+
where: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodObject<{
|
|
65
|
+
gte: z.ZodString;
|
|
66
|
+
}, z.core.$strict>]>>>;
|
|
67
|
+
address: z.ZodNullable<z.ZodString>;
|
|
68
|
+
newest: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
}, z.core.$strict>;
|
|
70
|
+
"wallet-transactions": z.ZodObject<{
|
|
71
|
+
kind: z.ZodLiteral<"wallet-transactions">;
|
|
72
|
+
program: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
73
|
+
chain: z.ZodOptional<z.ZodLiteral<"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1">>;
|
|
74
|
+
since: z.ZodNumber;
|
|
75
|
+
afterActivation: z.ZodBoolean;
|
|
76
|
+
mint: z.ZodNullable<z.ZodString>;
|
|
77
|
+
address: z.ZodNullable<z.ZodString>;
|
|
78
|
+
}, z.core.$strict>;
|
|
79
|
+
"wallet-program-account": z.ZodObject<{
|
|
80
|
+
kind: z.ZodLiteral<"wallet-program-account">;
|
|
81
|
+
program: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
82
|
+
chain: z.ZodOptional<z.ZodLiteral<"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1">>;
|
|
83
|
+
account: z.ZodString;
|
|
84
|
+
seeds: z.ZodArray<z.ZodType<SolanaSeed, unknown, z.core.$ZodTypeInternals<SolanaSeed, unknown>>>;
|
|
85
|
+
address: z.ZodNullable<z.ZodString>;
|
|
86
|
+
}, z.core.$strict>;
|
|
87
|
+
"wallet-stake": z.ZodObject<{
|
|
88
|
+
kind: z.ZodLiteral<"wallet-stake">;
|
|
89
|
+
chain: z.ZodOptional<z.ZodLiteral<"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1">>;
|
|
90
|
+
voteAccount: z.ZodNullable<z.ZodString>;
|
|
91
|
+
address: z.ZodNullable<z.ZodString>;
|
|
92
|
+
}, z.core.$strict>;
|
|
93
|
+
"wallet-list": z.ZodObject<{
|
|
94
|
+
kind: z.ZodLiteral<"wallet-list">;
|
|
95
|
+
}, z.core.$strict>;
|
|
41
96
|
"tracker-content": z.ZodObject<{
|
|
42
97
|
kind: z.ZodLiteral<"tracker-content">;
|
|
43
98
|
reference: z.ZodString;
|
|
@@ -46,6 +101,60 @@ declare const capabilityRequestSchemas: {
|
|
|
46
101
|
observation: z.ZodString;
|
|
47
102
|
}, z.core.$strict>;
|
|
48
103
|
}, z.core.$strict>;
|
|
104
|
+
"tracker-records": z.ZodObject<{
|
|
105
|
+
reference: z.ZodString;
|
|
106
|
+
query: z.ZodObject<{
|
|
107
|
+
author: z.ZodOptional<z.ZodString>;
|
|
108
|
+
member: z.ZodOptional<z.ZodString>;
|
|
109
|
+
verified: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodEnum<{
|
|
110
|
+
true: "true";
|
|
111
|
+
false: "false";
|
|
112
|
+
}>, z.ZodTransform<boolean, "true" | "false">>]>>;
|
|
113
|
+
since: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
114
|
+
until: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
115
|
+
removed: z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodEnum<{
|
|
116
|
+
true: "true";
|
|
117
|
+
false: "false";
|
|
118
|
+
}>, z.ZodTransform<boolean, "true" | "false">>]>>;
|
|
119
|
+
minLikes: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
120
|
+
minViews: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
121
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
122
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
123
|
+
includeEvidence: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodEnum<{
|
|
124
|
+
true: "true";
|
|
125
|
+
false: "false";
|
|
126
|
+
}>, z.ZodTransform<boolean, "true" | "false">>]>>;
|
|
127
|
+
}, z.core.$strict>;
|
|
128
|
+
asOf: z.ZodNumber;
|
|
129
|
+
kind: z.ZodLiteral<"tracker-records">;
|
|
130
|
+
}, z.core.$strict>;
|
|
131
|
+
"tracker-summary": z.ZodObject<{
|
|
132
|
+
reference: z.ZodString;
|
|
133
|
+
query: z.ZodObject<{
|
|
134
|
+
author: z.ZodOptional<z.ZodString>;
|
|
135
|
+
member: z.ZodOptional<z.ZodString>;
|
|
136
|
+
verified: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodEnum<{
|
|
137
|
+
true: "true";
|
|
138
|
+
false: "false";
|
|
139
|
+
}>, z.ZodTransform<boolean, "true" | "false">>]>>;
|
|
140
|
+
since: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
141
|
+
until: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
142
|
+
removed: z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodEnum<{
|
|
143
|
+
true: "true";
|
|
144
|
+
false: "false";
|
|
145
|
+
}>, z.ZodTransform<boolean, "true" | "false">>]>>;
|
|
146
|
+
minLikes: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
147
|
+
minViews: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
148
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
149
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
150
|
+
includeEvidence: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodEnum<{
|
|
151
|
+
true: "true";
|
|
152
|
+
false: "false";
|
|
153
|
+
}>, z.ZodTransform<boolean, "true" | "false">>]>>;
|
|
154
|
+
}, z.core.$strict>;
|
|
155
|
+
asOf: z.ZodNumber;
|
|
156
|
+
kind: z.ZodLiteral<"tracker-summary">;
|
|
157
|
+
}, z.core.$strict>;
|
|
49
158
|
x: z.ZodObject<{
|
|
50
159
|
kind: z.ZodLiteral<"x">;
|
|
51
160
|
input: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -157,60 +266,6 @@ declare const capabilityRequestSchemas: {
|
|
|
157
266
|
criteria: z.ZodString;
|
|
158
267
|
kind: z.ZodLiteral<"text">;
|
|
159
268
|
}, z.core.$strict>;
|
|
160
|
-
"tracker-records": z.ZodObject<{
|
|
161
|
-
reference: z.ZodString;
|
|
162
|
-
query: z.ZodObject<{
|
|
163
|
-
author: z.ZodOptional<z.ZodString>;
|
|
164
|
-
member: z.ZodOptional<z.ZodString>;
|
|
165
|
-
verified: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodEnum<{
|
|
166
|
-
true: "true";
|
|
167
|
-
false: "false";
|
|
168
|
-
}>, z.ZodTransform<boolean, "true" | "false">>]>>;
|
|
169
|
-
since: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
170
|
-
until: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
171
|
-
removed: z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodEnum<{
|
|
172
|
-
true: "true";
|
|
173
|
-
false: "false";
|
|
174
|
-
}>, z.ZodTransform<boolean, "true" | "false">>]>>;
|
|
175
|
-
minLikes: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
176
|
-
minViews: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
177
|
-
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
178
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
179
|
-
includeEvidence: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodEnum<{
|
|
180
|
-
true: "true";
|
|
181
|
-
false: "false";
|
|
182
|
-
}>, z.ZodTransform<boolean, "true" | "false">>]>>;
|
|
183
|
-
}, z.core.$strict>;
|
|
184
|
-
asOf: z.ZodNumber;
|
|
185
|
-
kind: z.ZodLiteral<"tracker-records">;
|
|
186
|
-
}, z.core.$strict>;
|
|
187
|
-
"tracker-summary": z.ZodObject<{
|
|
188
|
-
reference: z.ZodString;
|
|
189
|
-
query: z.ZodObject<{
|
|
190
|
-
author: z.ZodOptional<z.ZodString>;
|
|
191
|
-
member: z.ZodOptional<z.ZodString>;
|
|
192
|
-
verified: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodEnum<{
|
|
193
|
-
true: "true";
|
|
194
|
-
false: "false";
|
|
195
|
-
}>, z.ZodTransform<boolean, "true" | "false">>]>>;
|
|
196
|
-
since: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
197
|
-
until: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
198
|
-
removed: z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodEnum<{
|
|
199
|
-
true: "true";
|
|
200
|
-
false: "false";
|
|
201
|
-
}>, z.ZodTransform<boolean, "true" | "false">>]>>;
|
|
202
|
-
minLikes: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
203
|
-
minViews: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
204
|
-
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
205
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
206
|
-
includeEvidence: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodEnum<{
|
|
207
|
-
true: "true";
|
|
208
|
-
false: "false";
|
|
209
|
-
}>, z.ZodTransform<boolean, "true" | "false">>]>>;
|
|
210
|
-
}, z.core.$strict>;
|
|
211
|
-
asOf: z.ZodNumber;
|
|
212
|
-
kind: z.ZodLiteral<"tracker-summary">;
|
|
213
|
-
}, z.core.$strict>;
|
|
214
269
|
photo: z.ZodObject<{
|
|
215
270
|
kind: z.ZodLiteral<"photo">;
|
|
216
271
|
criteria: z.ZodString;
|
|
@@ -223,133 +278,77 @@ declare const capabilityRequestSchemas: {
|
|
|
223
278
|
messageId: z.ZodString;
|
|
224
279
|
}, z.core.$strict>]>;
|
|
225
280
|
}, z.core.$strict>;
|
|
226
|
-
|
|
227
|
-
kind: z.ZodLiteral<"
|
|
281
|
+
telegram: z.ZodObject<{
|
|
282
|
+
kind: z.ZodLiteral<"telegram">;
|
|
283
|
+
input: z.ZodUnion<readonly [z.ZodObject<{
|
|
284
|
+
chat: z.ZodString;
|
|
285
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
286
|
+
operation: z.ZodLiteral<"connection">;
|
|
287
|
+
}, z.core.$strict>]>;
|
|
228
288
|
}, z.core.$strict>;
|
|
229
289
|
"member-identities": z.ZodObject<{
|
|
230
290
|
kind: z.ZodLiteral<"member-identities">;
|
|
231
291
|
}, z.core.$strict>;
|
|
292
|
+
"member-balance": z.ZodObject<{
|
|
293
|
+
kind: z.ZodLiteral<"member-balance">;
|
|
294
|
+
ledger: z.ZodString;
|
|
295
|
+
}, z.core.$strict>;
|
|
296
|
+
"member-completions": z.ZodObject<{
|
|
297
|
+
kind: z.ZodLiteral<"member-completions">;
|
|
298
|
+
quest: z.ZodNullable<z.ZodString>;
|
|
299
|
+
since: z.ZodNullable<z.ZodNumber>;
|
|
300
|
+
limit: z.ZodNumber;
|
|
301
|
+
}, z.core.$strict>;
|
|
302
|
+
"member-groups": z.ZodObject<{
|
|
303
|
+
kind: z.ZodLiteral<"member-groups">;
|
|
304
|
+
}, z.core.$strict>;
|
|
305
|
+
"member-enrolled": z.ZodObject<{
|
|
306
|
+
kind: z.ZodLiteral<"member-enrolled">;
|
|
307
|
+
campaign: z.ZodString;
|
|
308
|
+
}, z.core.$strict>;
|
|
309
|
+
"member-referrals": z.ZodObject<{
|
|
310
|
+
kind: z.ZodLiteral<"member-referrals">;
|
|
311
|
+
program: z.ZodString;
|
|
312
|
+
}, z.core.$strict>;
|
|
232
313
|
};
|
|
233
|
-
type
|
|
314
|
+
type RequestOf<K extends keyof typeof requests> = z.output<(typeof requests)[K]>;
|
|
315
|
+
/** The kinds SDK 1.x's closed `CapabilityRequest` names, listed in a run's deprecated `calls`. */
|
|
316
|
+
type ListedKind = "wallet-balance" | "tracker-content" | "x" | "image" | "text" | "tracker-records" | "tracker-summary" | "photo" | "discord" | "wallet-list" | "member-identities";
|
|
234
317
|
type CapabilityRequest = {
|
|
235
|
-
[K in
|
|
236
|
-
}[
|
|
318
|
+
[K in ListedKind]: RequestOf<K>;
|
|
319
|
+
}[ListedKind];
|
|
237
320
|
/**
|
|
238
321
|
* `ctx.telegram.connection()` and `member()`'s request. It stays out of `CapabilityRequest`: that union is closed in
|
|
239
322
|
* SDK 1.x's public `CapabilityCall` and `ReplayDivergence`, and gaining a member would break code
|
|
240
323
|
* that switches over it (docs/adr/0011-telegram.md). The kit answers and numbers Telegram calls as
|
|
241
324
|
* Relay does, but lists them only in a run's `capabilityCalls`, not in the deprecated `calls`.
|
|
242
325
|
*/
|
|
243
|
-
|
|
244
|
-
kind: z.ZodLiteral<"telegram">;
|
|
245
|
-
input: z.ZodUnion<readonly [z.ZodObject<{
|
|
246
|
-
chat: z.ZodString;
|
|
247
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
248
|
-
operation: z.ZodLiteral<"connection">;
|
|
249
|
-
}, z.core.$strict>]>;
|
|
250
|
-
}, z.core.$strict>;
|
|
251
|
-
type TelegramRequest = z.output<typeof telegramRequestSchema>;
|
|
326
|
+
type TelegramRequest = RequestOf<"telegram">;
|
|
252
327
|
/**
|
|
253
328
|
* `ctx.wallet.nfts()`'s request. Like Telegram's, it stays out of the closed `CapabilityRequest`:
|
|
254
329
|
* the kit answers and numbers NFT reads, but lists them only in a run's `capabilityCalls`, not in the deprecated `calls`.
|
|
255
330
|
*/
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
address: z.ZodNullable<z.ZodString>;
|
|
260
|
-
}, z.core.$strict>;
|
|
261
|
-
type WalletNftsRequest = z.output<typeof walletNftsRequestSchema>;
|
|
262
|
-
declare const walletEventsRequestSchema: z.ZodObject<{
|
|
263
|
-
kind: z.ZodLiteral<"wallet-events">;
|
|
264
|
-
event: z.ZodString & z.ZodType<`eip155:${number}:0x${string} ${string}`, string, z.core.$ZodTypeInternals<`eip155:${number}:0x${string} ${string}`, string>>;
|
|
265
|
-
account: z.ZodString;
|
|
266
|
-
since: z.ZodNumber;
|
|
267
|
-
afterActivation: z.ZodBoolean;
|
|
268
|
-
where: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodObject<{
|
|
269
|
-
gte: z.ZodString;
|
|
270
|
-
}, z.core.$strict>]>>>;
|
|
271
|
-
address: z.ZodNullable<z.ZodString>;
|
|
272
|
-
newest: z.ZodOptional<z.ZodNumber>;
|
|
273
|
-
}, z.core.$strict>;
|
|
274
|
-
type WalletEventsRequest = z.output<typeof walletEventsRequestSchema>;
|
|
331
|
+
type WalletNftsRequest = RequestOf<"wallet-nfts">;
|
|
332
|
+
/** `ctx.wallet.events()`'s request: answered and numbered like NFT reads, and unlisted the same way. */
|
|
333
|
+
type WalletEventsRequest = RequestOf<"wallet-events">;
|
|
275
334
|
/** `ctx.wallet.transactions()`'s request: answered and numbered like event reads, and unlisted the same way. */
|
|
276
|
-
|
|
277
|
-
kind: z.ZodLiteral<"wallet-transactions">;
|
|
278
|
-
program: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
279
|
-
chain: z.ZodOptional<z.ZodLiteral<"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1">>;
|
|
280
|
-
since: z.ZodNumber;
|
|
281
|
-
afterActivation: z.ZodBoolean;
|
|
282
|
-
mint: z.ZodNullable<z.ZodString>;
|
|
283
|
-
address: z.ZodNullable<z.ZodString>;
|
|
284
|
-
}, z.core.$strict>;
|
|
285
|
-
type WalletTransactionsRequest = z.output<typeof walletTransactionsRequestSchema>;
|
|
335
|
+
type WalletTransactionsRequest = RequestOf<"wallet-transactions">;
|
|
286
336
|
/** `ctx.wallet.programAccount()`'s request: answered and numbered like transaction reads, and unlisted the same way. */
|
|
287
|
-
|
|
288
|
-
kind: z.ZodLiteral<"wallet-program-account">;
|
|
289
|
-
program: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
290
|
-
chain: z.ZodOptional<z.ZodLiteral<"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1">>;
|
|
291
|
-
account: z.ZodString;
|
|
292
|
-
seeds: z.ZodArray<z.ZodType<SolanaSeed, unknown, z.core.$ZodTypeInternals<SolanaSeed, unknown>>>;
|
|
293
|
-
address: z.ZodNullable<z.ZodString>;
|
|
294
|
-
}, z.core.$strict>;
|
|
295
|
-
type WalletProgramAccountRequest = z.output<typeof walletProgramAccountRequestSchema>;
|
|
337
|
+
type WalletProgramAccountRequest = RequestOf<"wallet-program-account">;
|
|
296
338
|
/** `ctx.wallet.stake()`'s request: answered and numbered like transaction reads, and unlisted the same way. */
|
|
297
|
-
|
|
298
|
-
kind: z.ZodLiteral<"wallet-stake">;
|
|
299
|
-
chain: z.ZodOptional<z.ZodLiteral<"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1">>;
|
|
300
|
-
voteAccount: z.ZodNullable<z.ZodString>;
|
|
301
|
-
address: z.ZodNullable<z.ZodString>;
|
|
302
|
-
}, z.core.$strict>;
|
|
303
|
-
type WalletStakeRequest = z.output<typeof walletStakeRequestSchema>;
|
|
339
|
+
type WalletStakeRequest = RequestOf<"wallet-stake">;
|
|
304
340
|
/**
|
|
305
341
|
* `ctx.wallet.call()`'s and `ctx.wallet.delegations()`'s requests. Like NFT reads, they stay out of
|
|
306
342
|
* the closed `CapabilityRequest`: the kit answers and numbers them, but lists them only in a run's `capabilityCalls`, not in the deprecated `calls`.
|
|
307
343
|
*/
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
call: z.ZodString & z.ZodType<`eip155:${number}:0x${string} function ${string}`, string, z.core.$ZodTypeInternals<`eip155:${number}:0x${string} function ${string}`, string>>;
|
|
311
|
-
args: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
312
|
-
wallet: z.ZodLiteral<true>;
|
|
313
|
-
}, z.core.$strict>, z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
314
|
-
address: z.ZodNullable<z.ZodString>;
|
|
315
|
-
}, z.core.$strict>;
|
|
316
|
-
type WalletCallRequest = z.output<typeof walletCallRequestSchema>;
|
|
317
|
-
declare const walletDelegationsRequestSchema: z.ZodObject<{
|
|
318
|
-
kind: z.ZodLiteral<"wallet-delegations">;
|
|
319
|
-
chain: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
|
|
320
|
-
validator: z.ZodNullable<z.ZodString>;
|
|
321
|
-
address: z.ZodNullable<z.ZodString>;
|
|
322
|
-
}, z.core.$strict>;
|
|
323
|
-
type WalletDelegationsRequest = z.output<typeof walletDelegationsRequestSchema>;
|
|
344
|
+
type WalletCallRequest = RequestOf<"wallet-call">;
|
|
345
|
+
type WalletDelegationsRequest = RequestOf<"wallet-delegations">;
|
|
324
346
|
/**
|
|
325
347
|
* `ctx.member.balance()`, `completions()`, `groups()`, `enrolled()` and `referrals()`, which read
|
|
326
348
|
* Relay's own state of the member. Like Telegram's, they stay out of the closed `CapabilityRequest`: the kit answers and
|
|
327
349
|
* numbers them, but lists them only in a run's `capabilityCalls`, not in the deprecated `calls`.
|
|
328
350
|
*/
|
|
329
|
-
|
|
330
|
-
"member-balance": z.ZodObject<{
|
|
331
|
-
kind: z.ZodLiteral<"member-balance">;
|
|
332
|
-
ledger: z.ZodString;
|
|
333
|
-
}, z.core.$strict>;
|
|
334
|
-
"member-completions": z.ZodObject<{
|
|
335
|
-
kind: z.ZodLiteral<"member-completions">;
|
|
336
|
-
quest: z.ZodNullable<z.ZodString>;
|
|
337
|
-
since: z.ZodNullable<z.ZodNumber>;
|
|
338
|
-
limit: z.ZodNumber;
|
|
339
|
-
}, z.core.$strict>;
|
|
340
|
-
"member-groups": z.ZodObject<{
|
|
341
|
-
kind: z.ZodLiteral<"member-groups">;
|
|
342
|
-
}, z.core.$strict>;
|
|
343
|
-
"member-enrolled": z.ZodObject<{
|
|
344
|
-
kind: z.ZodLiteral<"member-enrolled">;
|
|
345
|
-
campaign: z.ZodString;
|
|
346
|
-
}, z.core.$strict>;
|
|
347
|
-
"member-referrals": z.ZodObject<{
|
|
348
|
-
kind: z.ZodLiteral<"member-referrals">;
|
|
349
|
-
program: z.ZodString;
|
|
350
|
-
}, z.core.$strict>;
|
|
351
|
-
};
|
|
352
|
-
type MemberStateRequest = z.output<(typeof memberStateRequestSchemas)[keyof typeof memberStateRequestSchemas]>;
|
|
351
|
+
type MemberStateRequest = RequestOf<"member-balance" | "member-completions" | "member-groups" | "member-enrolled" | "member-referrals">;
|
|
353
352
|
/** Every request the kit answers: the public `CapabilityRequest` kinds, Telegram's, NFT, contract call and delegation reads, and the member's state. */
|
|
354
353
|
type KitRequest = CapabilityRequest | TelegramRequest | WalletNftsRequest | WalletCallRequest | WalletDelegationsRequest | WalletEventsRequest | WalletTransactionsRequest | WalletProgramAccountRequest | WalletStakeRequest | MemberStateRequest;
|
|
355
354
|
/**
|