@domino-sdk/relay 1.67.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 +65 -0
- package/dist/{accounts-C2O8mpB8.d.ts → accounts-DD4gAOCe.d.ts} +232 -3
- package/dist/{action-9Xl0StBg.d.ts → action-BDFKqGlH.d.ts} +3 -2
- package/dist/{attempt-captures-ClHAoo_n.d.ts → attempt-captures-CbuCmthd.d.ts} +11 -2
- package/dist/authoring.d.ts +534 -48
- package/dist/authoring.js +192 -29
- package/dist/{automatic-outcomes-BEnPn4Uh.d.ts → automatic-outcomes-DE3vfi8g.d.ts} +11 -3
- package/dist/avatar.d.ts +2 -1
- package/dist/browser.d.ts +15 -13
- package/dist/browser.js +12 -13
- package/dist/{capability-error-CuI_F7yM.d.ts → capability-error-db7kO8-P.d.ts} +2 -1
- package/dist/{catalog-CbiftcxQ.d.ts → catalog-Cf3fHDNn.d.ts} +69 -3
- package/dist/{chunk-5DZNMLDM.js → chunk-2A3BJ262.js} +2 -2
- package/dist/{chunk-BQXRCJ3N.js → chunk-5RLIPTL7.js} +1 -1
- package/dist/{chunk-MVQQDPQX.js → chunk-AZDZEQFK.js} +14 -2
- package/dist/{chunk-JK3XV2CR.js → chunk-BRROI4CH.js} +50 -8
- package/dist/{chunk-P33ZAJMS.js → chunk-CQVKOD3B.js} +1266 -677
- package/dist/{chunk-QYC3CZVD.js → chunk-CZ23KRVK.js} +2 -2
- package/dist/{chunk-X3FMVRMM.js → chunk-DIXYVGXO.js} +1 -1
- package/dist/{chunk-RDUSFUXX.js → chunk-GEVARKEV.js} +9 -1
- package/dist/{chunk-2HHZV7U3.js → chunk-LDO5GP7G.js} +1 -1
- package/dist/{chunk-Z2Z5DBNW.js → chunk-LGGD7S5T.js} +45 -9
- package/dist/{chunk-U66GUVSG.js → chunk-LZXDYSUH.js} +2 -0
- package/dist/{chunk-NRMQVK2W.js → chunk-ME2KUAVJ.js} +1 -1
- package/dist/{chunk-KUNPCDN6.js → chunk-ODJGTFPY.js} +16 -9
- package/dist/{chunk-DSJ46QLB.js → chunk-PO2ZDY27.js} +1 -1
- package/dist/{chunk-RWR2LOPA.js → chunk-RKTMSTT7.js} +2 -2
- package/dist/{chunk-5SBA6X5X.js → chunk-SWLW4VN3.js} +2 -2
- package/dist/{chunk-BMJHFWVT.js → chunk-TCREFRPK.js} +10 -43
- package/dist/{chunk-Q5QVAF7R.js → chunk-UGM6DUB2.js} +42 -25
- package/dist/chunk-VAGGGB6B.js +87 -0
- package/dist/{chunk-FGXLXENM.js → chunk-VNEJH4NT.js} +47 -3
- package/dist/chunk-WNEQEDMU.js +427 -0
- package/dist/{chunk-Q6KTTVOI.js → chunk-WVK3G2J2.js} +1 -1
- package/dist/{client-CZPewB9h.d.ts → client-6eSYOl8h.d.ts} +159 -11
- package/dist/{dashboards-jGPM3AxF.d.ts → dashboards-DCOAXL54.d.ts} +6 -5
- package/dist/{deployments-BVFd7ddA.d.ts → deployments-BIfdCMd5.d.ts} +911 -309
- package/dist/{host-environment-FN4zg3hw.d.ts → host-environment-DUw5-Cvj.d.ts} +2 -1
- package/dist/{identity-integration-W1Vo3Ql9.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 +155 -17
- package/dist/internal.js +266 -19
- package/dist/{limits-C4RzrOV4.d.ts → limits-Ctaeq23J.d.ts} +8 -2
- package/dist/{offers-BpYenB9i.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 +14 -18
- package/dist/profiles-CLDKZVFx.d.ts +370 -0
- package/dist/react/index.d.ts +71 -30
- package/dist/react/index.js +12 -13
- package/dist/{request-error-D_dUPLwo.d.ts → request-error-C24SY7n9.d.ts} +2 -1
- package/dist/{reward-deliveries-BOWpMytr.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 +556 -180
- package/dist/schema.js +70 -8
- package/dist/server/index.d.ts +15 -14
- package/dist/server/index.js +2053 -893
- package/dist/{sign-in-providers-BRYVOSlG.d.ts → sign-in-providers-C97mRNbG.d.ts} +4 -3
- package/dist/solana.d.ts +287 -0
- package/dist/solana.js +699 -0
- package/dist/{streaks-0YuipsUQ.d.ts → streaks-MAqKHbHC.d.ts} +2 -1
- package/dist/{submission-input-C152xIdn.d.ts → submission-input-BD7nORuh.d.ts} +4 -3
- package/dist/{telegram-browser-657QqiQl.d.ts → telegram-browser-gRMgGs7B.d.ts} +8 -109
- package/dist/telegram.d.ts +14 -12
- package/dist/telegram.js +2 -2
- package/dist/testing.d.ts +99 -18
- package/dist/testing.js +101 -11
- package/dist/{tracker-data-BqY-9Vu-.d.ts → tracker-data-DQgX3FIc.d.ts} +493 -1
- package/dist/{transport-CthYgZXK.d.ts → transport-BLU8jrhg.d.ts} +7340 -2134
- package/dist/vite.d.ts +2 -1
- package/dist/{wallet-Btng186v.d.ts → wallet-CPAjrW4k.d.ts} +339 -308
- package/dist/wallet-browser-BzPt_Qb5.d.ts +107 -0
- package/package.json +21 -3
- package/dist/chunk-UWUS4OOV.js +0 -59
- package/dist/chunk-UYVJZR33.js +0 -34
- package/dist/runtime/chunks/C2MGLQXC.js +0 -1
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { G as QuizEvidence, a as Attempt, s as MemberProgress,
|
|
2
|
-
import { M as MissingPrerequisite, V as ValueEvidence } from './submission-input-
|
|
3
|
-
import { R as RequestError, a as RequestErrorDetails, b as RequestErrorKind } from './request-error-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { G as QuizEvidence, a as Attempt, s as MemberProgress, an as referralAcceptSchema, q as LeaderboardQuery, b as AttemptStatus, W as AttemptCodeSource, f as CampaignEnrollmentInput, h as CampaignWithdrawalInput, J as SignInProvider, c as AuthProvider, I as SignInAccountStatus, x as PointHistoryQuery, v as PointEntryKind, n as LeaderboardHistoryQuery, ao as submitSchema, ap as engagementPageQuerySchema, aq as contentPerformanceQuerySchema } from './accounts-DD4gAOCe.js';
|
|
2
|
+
import { M as MissingPrerequisite, V as ValueEvidence } from './submission-input-BD7nORuh.js';
|
|
3
|
+
import { R as RequestError, a as RequestErrorDetails, b as RequestErrorKind } from './request-error-C24SY7n9.js';
|
|
4
|
+
import { d as WalletProofKind, aq as walletAddressInputSchema, ar as walletSignatureSchema, as as walletTransactionProofSchema, L as LinkedWallet, g as WalletSigner } from './wallet-CPAjrW4k.js';
|
|
5
|
+
import { q as ResponseSchema, i as PageQuery, k as QuestEnrollmentInput, Q as QuestClaimInput, n as QuestOutcomeQuery, M as MemberConsent, a as ConsentInput, e as CreatorAccountProvider, r as RewardDeliveryQuery, s as RewardDeliveryPage, t as contentQualificationQuerySchema } from './reward-deliveries-DFhYGJdx.js';
|
|
6
|
+
import { b as QuestView, q as questExperienceSchema } from './catalog-Cf3fHDNn.js';
|
|
7
|
+
import { T as TrackerSkipCode, S as SkipEnrollment } from './tracker-data-DQgX3FIc.js';
|
|
8
|
+
import { b as ParticipantSession, e as exchangeSchema, R as RelayEvent, P as ParticipantActivity, M as MemberSummary } from './participant-activity-BznrcePT.js';
|
|
8
9
|
import * as z from 'zod';
|
|
9
|
-
import { c as createRelayAction, O as OptionalActionId } from './action-
|
|
10
|
-
import { A as AuthProviders } from './sign-in-providers-
|
|
11
|
-
import {
|
|
10
|
+
import { c as createRelayAction, O as OptionalActionId } from './action-BDFKqGlH.js';
|
|
11
|
+
import { A as AuthProviders } from './sign-in-providers-C97mRNbG.js';
|
|
12
|
+
import { p as profileUpdateSchema, c as ProfileCompletionQuery } from './profiles-CLDKZVFx.js';
|
|
12
13
|
|
|
13
14
|
/** What happened, as in every Domino client error (see `RequestError`). */
|
|
14
15
|
type RelayErrorKind = RequestErrorKind;
|
|
@@ -123,6 +124,26 @@ declare const RelayErrorCode: {
|
|
|
123
124
|
readonly ChallengeExpired: "challenge-expired";
|
|
124
125
|
/** Too many requests; `retryAfter` says how long to wait when Relay knows. */
|
|
125
126
|
readonly RateLimited: "rate-limited";
|
|
127
|
+
/**
|
|
128
|
+
* `wallets.linkByTransaction`: the transaction is not finalized yet. Send the same signature
|
|
129
|
+
* again in a few seconds.
|
|
130
|
+
*
|
|
131
|
+
* @experimental A minor release can change linking by transaction.
|
|
132
|
+
*/
|
|
133
|
+
readonly TransactionNotFinal: "transaction-not-final";
|
|
134
|
+
/** `wallets.linkByTransaction`: Solana mainnet has no transaction with this signature. @experimental */
|
|
135
|
+
readonly TransactionNotFound: "transaction-not-found";
|
|
136
|
+
/** `wallets.linkByTransaction`: the transaction failed, so it proves nothing. @experimental */
|
|
137
|
+
readonly TransactionFailed: "transaction-failed";
|
|
138
|
+
/**
|
|
139
|
+
* `wallets.linkByTransaction`: no memo in the transaction carries one of the member's open
|
|
140
|
+
* challenges for the address, with the address as signer.
|
|
141
|
+
*
|
|
142
|
+
* @experimental A minor release can change linking by transaction.
|
|
143
|
+
*/
|
|
144
|
+
readonly ProofMismatch: "proof-mismatch";
|
|
145
|
+
/** `wallets.linkByTransaction`: another transaction already used the challenge. @experimental */
|
|
146
|
+
readonly ChallengeUsed: "challenge-used";
|
|
126
147
|
};
|
|
127
148
|
/** A known code, or one a newer Relay sends. */
|
|
128
149
|
type RelayErrorCode = KnownRelayErrorCode | (string & {});
|
|
@@ -836,6 +857,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
836
857
|
[x: string]: unknown;
|
|
837
858
|
kind: string;
|
|
838
859
|
};
|
|
860
|
+
key?: string | null | undefined;
|
|
839
861
|
};
|
|
840
862
|
earnedTier: string;
|
|
841
863
|
tier: string;
|
|
@@ -862,6 +884,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
862
884
|
[x: string]: unknown;
|
|
863
885
|
kind: string;
|
|
864
886
|
};
|
|
887
|
+
key?: string | null | undefined;
|
|
865
888
|
};
|
|
866
889
|
earnedTier: string;
|
|
867
890
|
tier: string;
|
|
@@ -890,6 +913,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
890
913
|
[x: string]: unknown;
|
|
891
914
|
kind: string;
|
|
892
915
|
};
|
|
916
|
+
key?: string | null | undefined;
|
|
893
917
|
};
|
|
894
918
|
earnedTier: string;
|
|
895
919
|
tier: string;
|
|
@@ -924,6 +948,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
924
948
|
[x: string]: unknown;
|
|
925
949
|
kind: string;
|
|
926
950
|
};
|
|
951
|
+
key?: string | null | undefined;
|
|
927
952
|
};
|
|
928
953
|
earnedTier: string;
|
|
929
954
|
tier: string;
|
|
@@ -962,6 +987,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
962
987
|
[x: string]: unknown;
|
|
963
988
|
kind: string;
|
|
964
989
|
};
|
|
990
|
+
key?: string | null | undefined;
|
|
965
991
|
};
|
|
966
992
|
earnedTier: string;
|
|
967
993
|
tier: string;
|
|
@@ -1018,6 +1044,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
1018
1044
|
[x: string]: unknown;
|
|
1019
1045
|
kind: string;
|
|
1020
1046
|
};
|
|
1047
|
+
key?: string | null | undefined;
|
|
1021
1048
|
};
|
|
1022
1049
|
earnedTier: string;
|
|
1023
1050
|
tier: string;
|
|
@@ -1044,6 +1071,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
1044
1071
|
[x: string]: unknown;
|
|
1045
1072
|
kind: string;
|
|
1046
1073
|
};
|
|
1074
|
+
key?: string | null | undefined;
|
|
1047
1075
|
};
|
|
1048
1076
|
earnedTier: string;
|
|
1049
1077
|
tier: string;
|
|
@@ -1072,6 +1100,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
1072
1100
|
[x: string]: unknown;
|
|
1073
1101
|
kind: string;
|
|
1074
1102
|
};
|
|
1103
|
+
key?: string | null | undefined;
|
|
1075
1104
|
};
|
|
1076
1105
|
earnedTier: string;
|
|
1077
1106
|
tier: string;
|
|
@@ -1106,6 +1135,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
1106
1135
|
[x: string]: unknown;
|
|
1107
1136
|
kind: string;
|
|
1108
1137
|
};
|
|
1138
|
+
key?: string | null | undefined;
|
|
1109
1139
|
};
|
|
1110
1140
|
earnedTier: string;
|
|
1111
1141
|
tier: string;
|
|
@@ -1144,6 +1174,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
1144
1174
|
[x: string]: unknown;
|
|
1145
1175
|
kind: string;
|
|
1146
1176
|
};
|
|
1177
|
+
key?: string | null | undefined;
|
|
1147
1178
|
};
|
|
1148
1179
|
earnedTier: string;
|
|
1149
1180
|
tier: string;
|
|
@@ -1459,6 +1490,11 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
1459
1490
|
givenName: string | null;
|
|
1460
1491
|
imageUrl: string | null;
|
|
1461
1492
|
}[];
|
|
1493
|
+
nameSource?: string | null | undefined;
|
|
1494
|
+
nameOptions?: {
|
|
1495
|
+
source: string;
|
|
1496
|
+
name: string;
|
|
1497
|
+
}[] | undefined;
|
|
1462
1498
|
}>;
|
|
1463
1499
|
/**
|
|
1464
1500
|
* Changes the member's own name, avatar choice or visibility; omitted fields stay, and null
|
|
@@ -1494,6 +1530,11 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
1494
1530
|
givenName: string | null;
|
|
1495
1531
|
imageUrl: string | null;
|
|
1496
1532
|
}[];
|
|
1533
|
+
nameSource?: string | null | undefined;
|
|
1534
|
+
nameOptions?: {
|
|
1535
|
+
source: string;
|
|
1536
|
+
name: string;
|
|
1537
|
+
}[] | undefined;
|
|
1497
1538
|
}>;
|
|
1498
1539
|
/**
|
|
1499
1540
|
* Uploads a JPEG, PNG or WebP of at most 5 MB as the member's avatar. The server crops it to
|
|
@@ -1531,6 +1572,11 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
1531
1572
|
givenName: string | null;
|
|
1532
1573
|
imageUrl: string | null;
|
|
1533
1574
|
}[];
|
|
1575
|
+
nameSource?: string | null | undefined;
|
|
1576
|
+
nameOptions?: {
|
|
1577
|
+
source: string;
|
|
1578
|
+
name: string;
|
|
1579
|
+
}[] | undefined;
|
|
1534
1580
|
}>;
|
|
1535
1581
|
/**
|
|
1536
1582
|
* A profile's name and avatar by its public ID (`profile.id` from a leaderboard row or
|
|
@@ -1893,6 +1939,13 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
1893
1939
|
release?: string | undefined;
|
|
1894
1940
|
} | undefined;
|
|
1895
1941
|
codeSource?: AttemptCodeSource | null | undefined;
|
|
1942
|
+
action?: {
|
|
1943
|
+
kind: (string & {}) | "solana-transaction";
|
|
1944
|
+
chain: string;
|
|
1945
|
+
signature: string;
|
|
1946
|
+
wallet: string;
|
|
1947
|
+
reference: string | null;
|
|
1948
|
+
} | null | undefined;
|
|
1896
1949
|
} | null;
|
|
1897
1950
|
release: string;
|
|
1898
1951
|
interaction: "url" | "text" | "staff" | "claim" | "automatic" | "quiz" | "photo";
|
|
@@ -2123,6 +2176,13 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
2123
2176
|
release?: string | undefined;
|
|
2124
2177
|
} | undefined;
|
|
2125
2178
|
codeSource?: AttemptCodeSource | null | undefined;
|
|
2179
|
+
action?: {
|
|
2180
|
+
kind: (string & {}) | "solana-transaction";
|
|
2181
|
+
chain: string;
|
|
2182
|
+
signature: string;
|
|
2183
|
+
wallet: string;
|
|
2184
|
+
reference: string | null;
|
|
2185
|
+
} | null | undefined;
|
|
2126
2186
|
}>;
|
|
2127
2187
|
experience: (requestOptions?: RelayRequestOptions) => Promise<{
|
|
2128
2188
|
entitlements: ({
|
|
@@ -2147,6 +2207,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
2147
2207
|
[x: string]: unknown;
|
|
2148
2208
|
kind: string;
|
|
2149
2209
|
};
|
|
2210
|
+
key?: string | null | undefined;
|
|
2150
2211
|
};
|
|
2151
2212
|
earnedTier: string;
|
|
2152
2213
|
tier: string;
|
|
@@ -2173,6 +2234,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
2173
2234
|
[x: string]: unknown;
|
|
2174
2235
|
kind: string;
|
|
2175
2236
|
};
|
|
2237
|
+
key?: string | null | undefined;
|
|
2176
2238
|
};
|
|
2177
2239
|
earnedTier: string;
|
|
2178
2240
|
tier: string;
|
|
@@ -2201,6 +2263,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
2201
2263
|
[x: string]: unknown;
|
|
2202
2264
|
kind: string;
|
|
2203
2265
|
};
|
|
2266
|
+
key?: string | null | undefined;
|
|
2204
2267
|
};
|
|
2205
2268
|
earnedTier: string;
|
|
2206
2269
|
tier: string;
|
|
@@ -2235,6 +2298,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
2235
2298
|
[x: string]: unknown;
|
|
2236
2299
|
kind: string;
|
|
2237
2300
|
};
|
|
2301
|
+
key?: string | null | undefined;
|
|
2238
2302
|
};
|
|
2239
2303
|
earnedTier: string;
|
|
2240
2304
|
tier: string;
|
|
@@ -2273,6 +2337,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
2273
2337
|
[x: string]: unknown;
|
|
2274
2338
|
kind: string;
|
|
2275
2339
|
};
|
|
2340
|
+
key?: string | null | undefined;
|
|
2276
2341
|
};
|
|
2277
2342
|
earnedTier: string;
|
|
2278
2343
|
tier: string;
|
|
@@ -2587,6 +2652,13 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
2587
2652
|
release?: string | undefined;
|
|
2588
2653
|
} | undefined;
|
|
2589
2654
|
codeSource?: AttemptCodeSource | null | undefined;
|
|
2655
|
+
action?: {
|
|
2656
|
+
kind: (string & {}) | "solana-transaction";
|
|
2657
|
+
chain: string;
|
|
2658
|
+
signature: string;
|
|
2659
|
+
wallet: string;
|
|
2660
|
+
reference: string | null;
|
|
2661
|
+
} | null | undefined;
|
|
2590
2662
|
} | null;
|
|
2591
2663
|
release: string;
|
|
2592
2664
|
interaction: "url" | "text" | "staff" | "claim" | "automatic" | "quiz" | "photo";
|
|
@@ -3003,6 +3075,13 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
3003
3075
|
release?: string | undefined;
|
|
3004
3076
|
} | undefined;
|
|
3005
3077
|
codeSource?: AttemptCodeSource | null | undefined;
|
|
3078
|
+
action?: {
|
|
3079
|
+
kind: (string & {}) | "solana-transaction";
|
|
3080
|
+
chain: string;
|
|
3081
|
+
signature: string;
|
|
3082
|
+
wallet: string;
|
|
3083
|
+
reference: string | null;
|
|
3084
|
+
} | null | undefined;
|
|
3006
3085
|
} | null;
|
|
3007
3086
|
release: string;
|
|
3008
3087
|
interaction: "url" | "text" | "staff" | "claim" | "automatic" | "quiz" | "photo";
|
|
@@ -3425,6 +3504,13 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
3425
3504
|
release?: string | undefined;
|
|
3426
3505
|
} | undefined;
|
|
3427
3506
|
codeSource?: AttemptCodeSource | null | undefined;
|
|
3507
|
+
action?: {
|
|
3508
|
+
kind: (string & {}) | "solana-transaction";
|
|
3509
|
+
chain: string;
|
|
3510
|
+
signature: string;
|
|
3511
|
+
wallet: string;
|
|
3512
|
+
reference: string | null;
|
|
3513
|
+
} | null | undefined;
|
|
3428
3514
|
} | null;
|
|
3429
3515
|
release: string;
|
|
3430
3516
|
interaction: "url" | "text" | "staff" | "claim" | "automatic" | "quiz" | "photo";
|
|
@@ -3590,6 +3676,8 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
3590
3676
|
revision: number;
|
|
3591
3677
|
signIn: boolean;
|
|
3592
3678
|
provedOn?: `eip155:${number}` | undefined;
|
|
3679
|
+
provedBy?: WalletProofKind | undefined;
|
|
3680
|
+
proofTransaction?: string | undefined;
|
|
3593
3681
|
}[]>;
|
|
3594
3682
|
challenge: (value: z.input<typeof walletAddressInputSchema>, requestOptions?: RelayRequestOptions) => Promise<{
|
|
3595
3683
|
id: string;
|
|
@@ -3608,6 +3696,44 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
3608
3696
|
revision: number;
|
|
3609
3697
|
signIn: boolean;
|
|
3610
3698
|
provedOn?: `eip155:${number}` | undefined;
|
|
3699
|
+
provedBy?: WalletProofKind | undefined;
|
|
3700
|
+
proofTransaction?: string | undefined;
|
|
3701
|
+
}>;
|
|
3702
|
+
/**
|
|
3703
|
+
* A challenge for linking a Solana account that cannot sign messages, such as a Squads vault:
|
|
3704
|
+
* the account executes a transaction with an SPL Memo instruction that carries `memo` and lists
|
|
3705
|
+
* the account, then `linkByTransaction` submits its signature. The challenge belongs to the
|
|
3706
|
+
* member, not the session, and lasts 7 days, since a multisig approval can take that long. A
|
|
3707
|
+
* repeat for the same address answers the open challenge.
|
|
3708
|
+
*
|
|
3709
|
+
* @experimental A minor release can change linking by transaction.
|
|
3710
|
+
*/
|
|
3711
|
+
transactionChallenge: (value: z.input<typeof walletAddressInputSchema>, requestOptions?: RelayRequestOptions) => Promise<{
|
|
3712
|
+
id: string;
|
|
3713
|
+
chain: "solana" | "eip155" | "cosmos";
|
|
3714
|
+
address: string;
|
|
3715
|
+
memo: string;
|
|
3716
|
+
memoProgram: string;
|
|
3717
|
+
expiresAt: number;
|
|
3718
|
+
}>;
|
|
3719
|
+
/**
|
|
3720
|
+
* Links the account a finalized Solana mainnet transaction proves: it succeeded, and an SPL
|
|
3721
|
+
* Memo instruction in it, top-level or inner, carries an open challenge's `memo` and lists
|
|
3722
|
+
* the account. A transaction that is not final yet is refused with `transaction-not-final`;
|
|
3723
|
+
* try again shortly. Retrying the same signature answers the same wallet.
|
|
3724
|
+
*
|
|
3725
|
+
* @experimental A minor release can change linking by transaction.
|
|
3726
|
+
*/
|
|
3727
|
+
linkByTransaction: (value: z.input<typeof walletTransactionProofSchema>, requestOptions?: RelayRequestOptions) => Promise<{
|
|
3728
|
+
chain: "solana" | "eip155" | "cosmos";
|
|
3729
|
+
network: `cosmos:${string}` | null;
|
|
3730
|
+
address: string;
|
|
3731
|
+
verifiedAt: number;
|
|
3732
|
+
revision: number;
|
|
3733
|
+
signIn: boolean;
|
|
3734
|
+
provedOn?: `eip155:${number}` | undefined;
|
|
3735
|
+
provedBy?: WalletProofKind | undefined;
|
|
3736
|
+
proofTransaction?: string | undefined;
|
|
3611
3737
|
}>;
|
|
3612
3738
|
/** The address stays bound to this member: another member still cannot link it. */
|
|
3613
3739
|
unlink: (wallet: Pick<LinkedWallet, "chain" | "address">, requestOptions?: RelayRequestOptions) => Promise<{
|
|
@@ -3626,6 +3752,8 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
3626
3752
|
revision: number;
|
|
3627
3753
|
signIn: boolean;
|
|
3628
3754
|
provedOn?: `eip155:${number}` | undefined;
|
|
3755
|
+
provedBy?: WalletProofKind | undefined;
|
|
3756
|
+
proofTransaction?: string | undefined;
|
|
3629
3757
|
}>;
|
|
3630
3758
|
};
|
|
3631
3759
|
auth: {
|
|
@@ -4346,6 +4474,13 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
4346
4474
|
release?: string | undefined;
|
|
4347
4475
|
} | undefined;
|
|
4348
4476
|
codeSource?: AttemptCodeSource | null | undefined;
|
|
4477
|
+
action?: {
|
|
4478
|
+
kind: (string & {}) | "solana-transaction";
|
|
4479
|
+
chain: string;
|
|
4480
|
+
signature: string;
|
|
4481
|
+
wallet: string;
|
|
4482
|
+
reference: string | null;
|
|
4483
|
+
} | null | undefined;
|
|
4349
4484
|
} | null;
|
|
4350
4485
|
key?: string | undefined;
|
|
4351
4486
|
release?: string | undefined;
|
|
@@ -4438,6 +4573,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
4438
4573
|
[x: string]: unknown;
|
|
4439
4574
|
kind: string;
|
|
4440
4575
|
};
|
|
4576
|
+
key?: string | null | undefined;
|
|
4441
4577
|
};
|
|
4442
4578
|
earnedTier: string;
|
|
4443
4579
|
tier: string;
|
|
@@ -4464,6 +4600,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
4464
4600
|
[x: string]: unknown;
|
|
4465
4601
|
kind: string;
|
|
4466
4602
|
};
|
|
4603
|
+
key?: string | null | undefined;
|
|
4467
4604
|
};
|
|
4468
4605
|
earnedTier: string;
|
|
4469
4606
|
tier: string;
|
|
@@ -4492,6 +4629,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
4492
4629
|
[x: string]: unknown;
|
|
4493
4630
|
kind: string;
|
|
4494
4631
|
};
|
|
4632
|
+
key?: string | null | undefined;
|
|
4495
4633
|
};
|
|
4496
4634
|
earnedTier: string;
|
|
4497
4635
|
tier: string;
|
|
@@ -4526,6 +4664,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
4526
4664
|
[x: string]: unknown;
|
|
4527
4665
|
kind: string;
|
|
4528
4666
|
};
|
|
4667
|
+
key?: string | null | undefined;
|
|
4529
4668
|
};
|
|
4530
4669
|
earnedTier: string;
|
|
4531
4670
|
tier: string;
|
|
@@ -4564,6 +4703,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
4564
4703
|
[x: string]: unknown;
|
|
4565
4704
|
kind: string;
|
|
4566
4705
|
};
|
|
4706
|
+
key?: string | null | undefined;
|
|
4567
4707
|
};
|
|
4568
4708
|
earnedTier: string;
|
|
4569
4709
|
tier: string;
|
|
@@ -4702,6 +4842,13 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
4702
4842
|
release?: string | undefined;
|
|
4703
4843
|
} | undefined;
|
|
4704
4844
|
codeSource?: AttemptCodeSource | null | undefined;
|
|
4845
|
+
action?: {
|
|
4846
|
+
kind: (string & {}) | "solana-transaction";
|
|
4847
|
+
chain: string;
|
|
4848
|
+
signature: string;
|
|
4849
|
+
wallet: string;
|
|
4850
|
+
reference: string | null;
|
|
4851
|
+
} | null | undefined;
|
|
4705
4852
|
}>;
|
|
4706
4853
|
/** Uploads evidence with a generated key; reuse `actionId` and the same file to replay. */
|
|
4707
4854
|
upload: (file: Blob, requestOptions?: RelayRequestOptions & {
|
|
@@ -4882,4 +5029,5 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
4882
5029
|
interface RelayClient extends ReturnType<typeof relayClient> {
|
|
4883
5030
|
}
|
|
4884
5031
|
|
|
4885
|
-
export {
|
|
5032
|
+
export { QuestUpdatedError as d, RelayError as g, RelayErrorCode as h, createRelayClient as p, isRelayError as q };
|
|
5033
|
+
export type { AuthStartInput as A, ClaimSubmission as C, EmailVerification as E, KnownRelayErrorCode as K, PhotoSubmission as P, QuestActionResult as Q, RelayClient as R, SubmissionCallOptions as S, ValueSubmission as V, ProgressObservation as a, ProgressObserver as b, QuestController as c, QuizSubmission as e, RelayClientOptions as f, RelayErrorDetails as i, RelayErrorKind as j, RelayRequestOptions as k, RelayResponseOptions as l, SubmissionDraft as m, SubmissionStatus as n, SubmissionStore as o };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
import { R as ResourceHandle } from './tracker-data-
|
|
4
|
-
import { A as AnalyticsMetricId, a as analyticsCatalog } from './limits-
|
|
2
|
+
import { k as WalletBalanceQuery } from './wallet-CPAjrW4k.js';
|
|
3
|
+
import { R as ResourceHandle } from './tracker-data-DQgX3FIc.js';
|
|
4
|
+
import { A as AnalyticsMetricId, a as analyticsCatalog } from './limits-Ctaeq23J.js';
|
|
5
5
|
|
|
6
6
|
declare const settingFieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7
7
|
kind: z.ZodLiteral<"point-ledger">;
|
|
@@ -379,9 +379,9 @@ declare const dashboardPreviewSchema: z.ZodObject<{
|
|
|
379
379
|
key: z.ZodString;
|
|
380
380
|
title: z.ZodString;
|
|
381
381
|
change: z.ZodEnum<{
|
|
382
|
+
unchanged: "unchanged";
|
|
382
383
|
created: "created";
|
|
383
384
|
updated: "updated";
|
|
384
|
-
unchanged: "unchanged";
|
|
385
385
|
}>;
|
|
386
386
|
definition: z.ZodObject<{
|
|
387
387
|
key: z.ZodString;
|
|
@@ -484,4 +484,5 @@ declare function defineDashboard(input: DashboardInput): {
|
|
|
484
484
|
position?: number | undefined;
|
|
485
485
|
} & ResourceHandle<"dashboard">;
|
|
486
486
|
|
|
487
|
-
export {
|
|
487
|
+
export { settingFieldSchema as C, settingsFieldsSchema as E, settingsValuesSchema as F, textSettingSchema as G, compatibleSettingKinds as c, defineDashboard as d, dashboardIssue as e, isBoundSetting as i, normalizeDashboard as n, dashboardArtifactSchema as o, dashboardAuthoringSchema as p, dashboardDefinitionSchema as q, dashboardLimits as r, dashboardPanelAuthoringSchema as s, dashboardPanels as t, dashboardPreviewSchema as u, defaultPanelWidths as v, isAmount as w, isBalanceChain as x, missingResourceSettings as y, parseSettings as z };
|
|
488
|
+
export type { AmountSetting as A, BalanceChain as B, DashboardInput as D, IntegerSettings as I, Setting as S, BoundSettings as a, DashboardPanelInput as b, DashboardAuthoring as f, DashboardDefinition as g, DashboardIssue as h, DashboardPanel as j, DashboardPreview as k, SettingField as l, SettingsValues as m };
|