@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
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
/** Who sees profiles: nobody but the member (`private`), signed-in members, or anyone. */
|
|
4
|
+
declare const profileVisibilitySchema: z.ZodEnum<{
|
|
5
|
+
public: "public";
|
|
6
|
+
private: "private";
|
|
7
|
+
participants: "participants";
|
|
8
|
+
}>;
|
|
9
|
+
type ProfileVisibility = z.infer<typeof profileVisibilitySchema>;
|
|
10
|
+
/** Connected accounts a member can take a picture from. */
|
|
11
|
+
declare const avatarProviderSchema: z.ZodEnum<{
|
|
12
|
+
discord: "discord";
|
|
13
|
+
google: "google";
|
|
14
|
+
x: "x";
|
|
15
|
+
}>;
|
|
16
|
+
type AvatarProvider = z.infer<typeof avatarProviderSchema>;
|
|
17
|
+
/**
|
|
18
|
+
* The accounts that can supply a default name and picture: public personas. Google and Apple
|
|
19
|
+
* accounts are usually a legal name and a personal photo, so they never do.
|
|
20
|
+
*/
|
|
21
|
+
declare const profileDefaultProviderSchema: z.ZodEnum<{
|
|
22
|
+
discord: "discord";
|
|
23
|
+
x: "x";
|
|
24
|
+
}>;
|
|
25
|
+
type ProfileDefaultProvider = z.infer<typeof profileDefaultProviderSchema>;
|
|
26
|
+
/**
|
|
27
|
+
* Where a profile's name and picture come from before the member chooses: the first of these
|
|
28
|
+
* accounts the member connected that has one, in order. Empty means generated values.
|
|
29
|
+
*/
|
|
30
|
+
declare const profileDefaultsSchema: z.ZodArray<z.ZodEnum<{
|
|
31
|
+
discord: "discord";
|
|
32
|
+
x: "x";
|
|
33
|
+
}>>;
|
|
34
|
+
type ProfileDefaults = z.infer<typeof profileDefaultsSchema>;
|
|
35
|
+
/**
|
|
36
|
+
* The sources a project can list as profile defaults: the `profileDefaultProviderSchema` accounts,
|
|
37
|
+
* and `sol`, the primary `.sol` name of a Solana wallet the member linked. A `.sol` name supplies a
|
|
38
|
+
* name only, never a picture. Settings answer the full list in `defaultSources`.
|
|
39
|
+
*
|
|
40
|
+
* @experimental A minor release can change `.sol` names.
|
|
41
|
+
*/
|
|
42
|
+
declare const knownProfileDefaultSources: readonly ["x", "discord", "sol"];
|
|
43
|
+
/**
|
|
44
|
+
* A default source this SDK knows.
|
|
45
|
+
*
|
|
46
|
+
* @compat open
|
|
47
|
+
* @experimental A minor release can change `.sol` names.
|
|
48
|
+
*/
|
|
49
|
+
type KnownProfileDefaultSource = (typeof knownProfileDefaultSources)[number];
|
|
50
|
+
/**
|
|
51
|
+
* A profile default source: one of `knownProfileDefaultSources`, or one a later Relay adds.
|
|
52
|
+
*
|
|
53
|
+
* @experimental A minor release can change `.sol` names.
|
|
54
|
+
*/
|
|
55
|
+
type ProfileDefaultSource = KnownProfileDefaultSource | (string & {});
|
|
56
|
+
/**
|
|
57
|
+
* The default sources a settings change can list, in order, each once.
|
|
58
|
+
*
|
|
59
|
+
* @experimental A minor release can change `.sol` names.
|
|
60
|
+
*/
|
|
61
|
+
declare const profileDefaultSourcesSchema: z.ZodArray<z.ZodEnum<{
|
|
62
|
+
discord: "discord";
|
|
63
|
+
x: "x";
|
|
64
|
+
sol: "sol";
|
|
65
|
+
}>>;
|
|
66
|
+
/**
|
|
67
|
+
* Where a member's chosen name comes from instead of a name they typed: `sol` follows the primary
|
|
68
|
+
* `.sol` name of a Solana wallet they linked.
|
|
69
|
+
*
|
|
70
|
+
* @experimental A minor release can change `.sol` names.
|
|
71
|
+
*/
|
|
72
|
+
declare const profileNameSourceSchema: z.ZodEnum<{
|
|
73
|
+
sol: "sol";
|
|
74
|
+
}>;
|
|
75
|
+
/**
|
|
76
|
+
* A name source this SDK knows.
|
|
77
|
+
*
|
|
78
|
+
* @compat open
|
|
79
|
+
* @experimental A minor release can change `.sol` names.
|
|
80
|
+
*/
|
|
81
|
+
type KnownProfileNameSource = z.infer<typeof profileNameSourceSchema>;
|
|
82
|
+
/**
|
|
83
|
+
* A profile name source, or one a later Relay adds.
|
|
84
|
+
*
|
|
85
|
+
* @experimental A minor release can change `.sol` names.
|
|
86
|
+
*/
|
|
87
|
+
type ProfileNameSource = KnownProfileNameSource | (string & {});
|
|
88
|
+
/**
|
|
89
|
+
* The seed of a generated avatar (`defaultAvatar`), the same one `relay.me.get()` returns: an HMAC
|
|
90
|
+
* of the member under the project's secret, so it reveals nothing about the member.
|
|
91
|
+
*/
|
|
92
|
+
declare const avatarSeedSchema: z.ZodString;
|
|
93
|
+
/**
|
|
94
|
+
* A profile's avatar: an uploaded picture, an account's picture, or a generated one. Every kind
|
|
95
|
+
* carries the generated avatar's `seed`, so a picture that fails to load falls back to the same
|
|
96
|
+
* generated avatar everywhere.
|
|
97
|
+
*/
|
|
98
|
+
declare const profileAvatarSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
99
|
+
source: z.ZodLiteral<"upload">;
|
|
100
|
+
url: z.ZodString;
|
|
101
|
+
seed: z.ZodString;
|
|
102
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
103
|
+
source: z.ZodLiteral<"account">;
|
|
104
|
+
provider: z.ZodEnum<{
|
|
105
|
+
discord: "discord";
|
|
106
|
+
google: "google";
|
|
107
|
+
x: "x";
|
|
108
|
+
}>;
|
|
109
|
+
url: z.ZodString;
|
|
110
|
+
seed: z.ZodString;
|
|
111
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
112
|
+
source: z.ZodLiteral<"generated">;
|
|
113
|
+
seed: z.ZodString;
|
|
114
|
+
}, z.core.$strip>], "source">;
|
|
115
|
+
type ProfileAvatar = z.infer<typeof profileAvatarSchema>;
|
|
116
|
+
/** What other participants see: the profile's public ID, its name and its avatar. */
|
|
117
|
+
declare const profileSummarySchema: z.ZodObject<{
|
|
118
|
+
id: z.ZodString;
|
|
119
|
+
name: z.ZodString;
|
|
120
|
+
avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
121
|
+
source: z.ZodLiteral<"upload">;
|
|
122
|
+
url: z.ZodString;
|
|
123
|
+
seed: z.ZodString;
|
|
124
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
125
|
+
source: z.ZodLiteral<"account">;
|
|
126
|
+
provider: z.ZodEnum<{
|
|
127
|
+
discord: "discord";
|
|
128
|
+
google: "google";
|
|
129
|
+
x: "x";
|
|
130
|
+
}>;
|
|
131
|
+
url: z.ZodString;
|
|
132
|
+
seed: z.ZodString;
|
|
133
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
134
|
+
source: z.ZodLiteral<"generated">;
|
|
135
|
+
seed: z.ZodString;
|
|
136
|
+
}, z.core.$strip>], "source">;
|
|
137
|
+
}, z.core.$strip>;
|
|
138
|
+
type ProfileSummary = z.infer<typeof profileSummarySchema>;
|
|
139
|
+
/**
|
|
140
|
+
* A display name: NFC-normalized, whitespace collapsed and trimmed, 1 to 40 characters, with no
|
|
141
|
+
* control, zero-width or bidirectional formatting characters.
|
|
142
|
+
*/
|
|
143
|
+
declare const displayNameSchema: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
144
|
+
/**
|
|
145
|
+
* A change to the member's own profile; omitted fields stay. `displayName: null` and
|
|
146
|
+
* `avatar: null` return to the project's defaults (null also removes an uploaded picture).
|
|
147
|
+
* `nameSource: "sol"` shows the member's `.sol` name (one of `nameOptions`) and keeps following
|
|
148
|
+
* it; a `displayName`, or `nameSource: null`, stops following it. Upload a picture with
|
|
149
|
+
* `relay.profiles.uploadAvatar`.
|
|
150
|
+
*/
|
|
151
|
+
declare const profileUpdateSchema: z.ZodObject<{
|
|
152
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>>;
|
|
153
|
+
nameSource: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
154
|
+
sol: "sol";
|
|
155
|
+
}>>>;
|
|
156
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
157
|
+
source: z.ZodLiteral<"account">;
|
|
158
|
+
provider: z.ZodEnum<{
|
|
159
|
+
discord: "discord";
|
|
160
|
+
google: "google";
|
|
161
|
+
x: "x";
|
|
162
|
+
}>;
|
|
163
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
164
|
+
source: z.ZodLiteral<"generated">;
|
|
165
|
+
}, z.core.$strict>], "source">>>;
|
|
166
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
167
|
+
}, z.core.$strict>;
|
|
168
|
+
type ProfileUpdate = z.input<typeof profileUpdateSchema>;
|
|
169
|
+
/** The signed-in member's own profile, with what they chose and what they can choose from. */
|
|
170
|
+
declare const ownProfileSchema: z.ZodObject<{
|
|
171
|
+
id: z.ZodString;
|
|
172
|
+
name: z.ZodString;
|
|
173
|
+
avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
174
|
+
source: z.ZodLiteral<"upload">;
|
|
175
|
+
url: z.ZodString;
|
|
176
|
+
seed: z.ZodString;
|
|
177
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
178
|
+
source: z.ZodLiteral<"account">;
|
|
179
|
+
provider: z.ZodEnum<{
|
|
180
|
+
discord: "discord";
|
|
181
|
+
google: "google";
|
|
182
|
+
x: "x";
|
|
183
|
+
}>;
|
|
184
|
+
url: z.ZodString;
|
|
185
|
+
seed: z.ZodString;
|
|
186
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
187
|
+
source: z.ZodLiteral<"generated">;
|
|
188
|
+
seed: z.ZodString;
|
|
189
|
+
}, z.core.$strip>], "source">;
|
|
190
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
191
|
+
avatarChoice: z.ZodEnum<{
|
|
192
|
+
default: "default";
|
|
193
|
+
account: "account";
|
|
194
|
+
upload: "upload";
|
|
195
|
+
generated: "generated";
|
|
196
|
+
}>;
|
|
197
|
+
avatarProvider: z.ZodNullable<z.ZodEnum<{
|
|
198
|
+
discord: "discord";
|
|
199
|
+
google: "google";
|
|
200
|
+
x: "x";
|
|
201
|
+
}>>;
|
|
202
|
+
hidden: z.ZodBoolean;
|
|
203
|
+
locked: z.ZodBoolean;
|
|
204
|
+
visibility: z.ZodEnum<{
|
|
205
|
+
public: "public";
|
|
206
|
+
private: "private";
|
|
207
|
+
participants: "participants";
|
|
208
|
+
}>;
|
|
209
|
+
options: z.ZodArray<z.ZodObject<{
|
|
210
|
+
provider: z.ZodEnum<{
|
|
211
|
+
discord: "discord";
|
|
212
|
+
google: "google";
|
|
213
|
+
x: "x";
|
|
214
|
+
}>;
|
|
215
|
+
name: z.ZodNullable<z.ZodString>;
|
|
216
|
+
givenName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
217
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
218
|
+
}, z.core.$strip>>;
|
|
219
|
+
nameSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
220
|
+
nameOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
221
|
+
source: z.ZodString;
|
|
222
|
+
name: z.ZodString;
|
|
223
|
+
}, z.core.$strip>>>;
|
|
224
|
+
}, z.core.$strip>;
|
|
225
|
+
/** @compat output */
|
|
226
|
+
type OwnProfile = z.infer<typeof ownProfileSchema>;
|
|
227
|
+
/** A page of a profile's quest completions: `limit` quests (default 20, at most 100) after `cursor`. */
|
|
228
|
+
declare const profileCompletionQuerySchema: z.ZodObject<{
|
|
229
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
230
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
231
|
+
}, z.core.$strict>;
|
|
232
|
+
type ProfileCompletionQuery = z.input<typeof profileCompletionQuerySchema>;
|
|
233
|
+
/** A quest the member completed, grouped over its completions. */
|
|
234
|
+
declare const profileCompletionSchema: z.ZodObject<{
|
|
235
|
+
quest: z.ZodString;
|
|
236
|
+
key: z.ZodOptional<z.ZodString>;
|
|
237
|
+
title: z.ZodString;
|
|
238
|
+
completions: z.ZodNumber;
|
|
239
|
+
lastCompletedAt: z.ZodNullable<z.ZodNumber>;
|
|
240
|
+
}, z.core.$strip>;
|
|
241
|
+
type ProfileCompletion = z.infer<typeof profileCompletionSchema>;
|
|
242
|
+
/**
|
|
243
|
+
* A profile's completions of the quests that show on profiles (`defineQuest({ profile: { visible:
|
|
244
|
+
* true } })`), most recently completed first. Pass `nextCursor` as `cursor` for the next page.
|
|
245
|
+
*/
|
|
246
|
+
declare const profileCompletionPageSchema: z.ZodObject<{
|
|
247
|
+
items: z.ZodArray<z.ZodObject<{
|
|
248
|
+
quest: z.ZodString;
|
|
249
|
+
key: z.ZodOptional<z.ZodString>;
|
|
250
|
+
title: z.ZodString;
|
|
251
|
+
completions: z.ZodNumber;
|
|
252
|
+
lastCompletedAt: z.ZodNullable<z.ZodNumber>;
|
|
253
|
+
}, z.core.$strip>>;
|
|
254
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
255
|
+
}, z.core.$strip>;
|
|
256
|
+
type ProfileCompletionPage = z.infer<typeof profileCompletionPageSchema>;
|
|
257
|
+
/** A profile's progress in one referral program: counts only, never codes or accounts. */
|
|
258
|
+
declare const profileReferralSchema: z.ZodObject<{
|
|
259
|
+
program: z.ZodString;
|
|
260
|
+
key: z.ZodOptional<z.ZodString>;
|
|
261
|
+
title: z.ZodString;
|
|
262
|
+
invited: z.ZodNumber;
|
|
263
|
+
qualified: z.ZodNumber;
|
|
264
|
+
milestones: z.ZodArray<z.ZodObject<{
|
|
265
|
+
id: z.ZodString;
|
|
266
|
+
count: z.ZodNumber;
|
|
267
|
+
reached: z.ZodBoolean;
|
|
268
|
+
}, z.core.$strip>>;
|
|
269
|
+
}, z.core.$strip>;
|
|
270
|
+
type ProfileReferral = z.infer<typeof profileReferralSchema>;
|
|
271
|
+
/** A project's profile settings in one environment. */
|
|
272
|
+
declare const profileSettingsSchema: z.ZodObject<{
|
|
273
|
+
visibility: z.ZodEnum<{
|
|
274
|
+
public: "public";
|
|
275
|
+
private: "private";
|
|
276
|
+
participants: "participants";
|
|
277
|
+
}>;
|
|
278
|
+
defaults: z.ZodArray<z.ZodEnum<{
|
|
279
|
+
discord: "discord";
|
|
280
|
+
x: "x";
|
|
281
|
+
}>>;
|
|
282
|
+
defaultSources: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
283
|
+
revision: z.ZodNumber;
|
|
284
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
285
|
+
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
286
|
+
}, z.core.$strip>;
|
|
287
|
+
type ProfileSettings = z.infer<typeof profileSettingsSchema>;
|
|
288
|
+
declare const profileSettingsInputSchema: z.ZodObject<{
|
|
289
|
+
visibility: z.ZodEnum<{
|
|
290
|
+
public: "public";
|
|
291
|
+
private: "private";
|
|
292
|
+
participants: "participants";
|
|
293
|
+
}>;
|
|
294
|
+
defaults: z.ZodArray<z.ZodEnum<{
|
|
295
|
+
discord: "discord";
|
|
296
|
+
x: "x";
|
|
297
|
+
}>>;
|
|
298
|
+
defaultSources: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
299
|
+
discord: "discord";
|
|
300
|
+
x: "x";
|
|
301
|
+
sol: "sol";
|
|
302
|
+
}>>>;
|
|
303
|
+
actionId: z.ZodString;
|
|
304
|
+
expectedRevision: z.ZodNumber;
|
|
305
|
+
reason: z.ZodString;
|
|
306
|
+
}, z.core.$strict>;
|
|
307
|
+
type ProfileSettingsInput = z.input<typeof profileSettingsInputSchema>;
|
|
308
|
+
/** An operator's change to a member's profile. Every action is audited with its reason. */
|
|
309
|
+
declare const profileModerationSchema: z.ZodObject<{
|
|
310
|
+
actionId: z.ZodString;
|
|
311
|
+
resetName: z.ZodDefault<z.ZodBoolean>;
|
|
312
|
+
removeAvatar: z.ZodDefault<z.ZodBoolean>;
|
|
313
|
+
lock: z.ZodOptional<z.ZodBoolean>;
|
|
314
|
+
reason: z.ZodString;
|
|
315
|
+
}, z.core.$strict>;
|
|
316
|
+
type ProfileModeration = z.input<typeof profileModerationSchema>;
|
|
317
|
+
/** A member's profile as operators see it: always, whatever the settings. */
|
|
318
|
+
declare const managedProfileSchema: z.ZodObject<{
|
|
319
|
+
name: z.ZodString;
|
|
320
|
+
id: z.ZodString;
|
|
321
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
322
|
+
hidden: z.ZodBoolean;
|
|
323
|
+
visibility: z.ZodEnum<{
|
|
324
|
+
public: "public";
|
|
325
|
+
private: "private";
|
|
326
|
+
participants: "participants";
|
|
327
|
+
}>;
|
|
328
|
+
locked: z.ZodBoolean;
|
|
329
|
+
avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
330
|
+
source: z.ZodLiteral<"upload">;
|
|
331
|
+
url: z.ZodString;
|
|
332
|
+
seed: z.ZodString;
|
|
333
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
334
|
+
source: z.ZodLiteral<"account">;
|
|
335
|
+
provider: z.ZodEnum<{
|
|
336
|
+
discord: "discord";
|
|
337
|
+
google: "google";
|
|
338
|
+
x: "x";
|
|
339
|
+
}>;
|
|
340
|
+
url: z.ZodString;
|
|
341
|
+
seed: z.ZodString;
|
|
342
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
343
|
+
source: z.ZodLiteral<"generated">;
|
|
344
|
+
seed: z.ZodString;
|
|
345
|
+
}, z.core.$strip>], "source">;
|
|
346
|
+
nameSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
347
|
+
avatarChoice: z.ZodEnum<{
|
|
348
|
+
default: "default";
|
|
349
|
+
account: "account";
|
|
350
|
+
upload: "upload";
|
|
351
|
+
generated: "generated";
|
|
352
|
+
}>;
|
|
353
|
+
avatarProvider: z.ZodNullable<z.ZodEnum<{
|
|
354
|
+
discord: "discord";
|
|
355
|
+
google: "google";
|
|
356
|
+
x: "x";
|
|
357
|
+
}>>;
|
|
358
|
+
member: z.ZodString;
|
|
359
|
+
lockedAt: z.ZodNullable<z.ZodNumber>;
|
|
360
|
+
lockedBy: z.ZodNullable<z.ZodString>;
|
|
361
|
+
lockedReason: z.ZodNullable<z.ZodString>;
|
|
362
|
+
updatedAt: z.ZodNumber;
|
|
363
|
+
}, z.core.$strip>;
|
|
364
|
+
type ManagedProfile = z.infer<typeof managedProfileSchema>;
|
|
365
|
+
/** The largest avatar upload, and the types an upload can have. */
|
|
366
|
+
declare const AVATAR_UPLOAD_LIMIT: number;
|
|
367
|
+
declare const avatarUploadTypes: string[];
|
|
368
|
+
|
|
369
|
+
export { profileCompletionQuerySchema as B, profileCompletionSchema as C, profileDefaultProviderSchema as D, profileDefaultSourcesSchema as E, profileDefaultsSchema as F, profileModerationSchema as G, profileNameSourceSchema as H, profileReferralSchema as I, profileSettingsInputSchema as J, profileSettingsSchema as L, profileSummarySchema as N, profileVisibilitySchema as Q, AVATAR_UPLOAD_LIMIT as i, profileUpdateSchema as p, avatarProviderSchema as r, avatarSeedSchema as s, avatarUploadTypes as t, displayNameSchema as u, knownProfileDefaultSources as v, managedProfileSchema as w, ownProfileSchema as x, profileAvatarSchema as y, profileCompletionPageSchema as z };
|
|
370
|
+
export type { AvatarProvider as A, KnownProfileDefaultSource as K, ManagedProfile as M, OwnProfile as O, ProfileAvatar as P, ProfileCompletion as a, ProfileCompletionPage as b, ProfileCompletionQuery as c, ProfileNameSource as d, ProfileReferral as e, ProfileSummary as f, ProfileUpdate as g, ProfileVisibility as h, KnownProfileNameSource as j, ProfileDefaultProvider as k, ProfileDefaultSource as l, ProfileDefaults as m, ProfileModeration as n, ProfileSettings as o, ProfileSettingsInput as q };
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,24 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { Badge, MemberBadges, Offer, Redemption } from '../index.js';
|
|
2
|
+
import { ParticipantSession, RelayEvent, ParticipantActivity, MemberSummary } from '../index.js';
|
|
3
|
+
import { R as RelayClient } from '../client-6eSYOl8h.js';
|
|
4
|
+
import { RelayError, SubmissionDraft } from '../index.js';
|
|
5
|
+
import { P as Page, e as CreatorAccountProvider, K as KnownConsentChannel, M as MemberConsent } from '../reward-deliveries-DFhYGJdx.js';
|
|
6
|
+
import { QuestOutcomeQuery, QuestOutcome } from '../index.js';
|
|
7
|
+
import { RewardDeliveryAction } from '../schema.js';
|
|
8
|
+
export { C as ConsentChannel, b as ConsentSource, c as ConsentState, d as CreatorAccount, f as CreatorAccounts, g as KnownConsentSource, h as KnownConsentState } from '../reward-deliveries-DFhYGJdx.js';
|
|
6
9
|
import * as react from 'react';
|
|
7
10
|
import { ReactNode } from 'react';
|
|
8
11
|
import * as z from 'zod';
|
|
9
12
|
import { z as z$1 } from 'zod';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import {
|
|
17
|
-
export {
|
|
18
|
-
import '../
|
|
19
|
-
import '../
|
|
20
|
-
|
|
21
|
-
import '../
|
|
13
|
+
import { QuestView } from '../index.js';
|
|
14
|
+
import { collectionViewSchema } from '../schema.js';
|
|
15
|
+
import { J as SignInProvider } from '../accounts-DD4gAOCe.js';
|
|
16
|
+
import { Entitlement, AttemptStatus, AuthProvider, AccountConnection, SignInAccountStatus, LeaderboardPlacement, LeaderboardPage, PointEntry, PointBalances, PointLedgerReference, TieredRewardReference } from '../index.js';
|
|
17
|
+
import { AttemptCodeSource, referralSummarySchema } from '../schema.js';
|
|
18
|
+
export { S as SignInAccount, N as SignInProviderOption } from '../accounts-DD4gAOCe.js';
|
|
19
|
+
import { b as SignInMethods, c as SignInOption, P as ProviderSignInOption, e as SignInUnavailable, T as TelegramSignInOption } from '../telegram-browser-gRMgGs7B.js';
|
|
20
|
+
export { E as EmailSignInOption, O as OAuthSignInOption, a as SignInIcon, W as WalletSignInOption, t as telegramMiniAppInitData } from '../telegram-browser-gRMgGs7B.js';
|
|
21
|
+
import { WalletSigner, WalletSignInNetwork, LinkedWallet, WalletProofKind } from '../index.js';
|
|
22
|
+
import { C as CosmosChains, S as SignInWallet, D as DiscoveredWallet } from '../wallet-browser-BzPt_Qb5.js';
|
|
23
|
+
export { T as TelegramAccountConnection, a as TelegramSignInMethods } from '../submission-input-BD7nORuh.js';
|
|
24
|
+
import { ProfileReferral } from '../authoring.js';
|
|
25
|
+
import { ProfileUpdate, ProfileSummary, ProfileCompletion } from '../index.js';
|
|
26
|
+
import '../tracker-data-DQgX3FIc.js';
|
|
27
|
+
import '../request-error-C24SY7n9.js';
|
|
28
|
+
import '../action-BDFKqGlH.js';
|
|
29
|
+
import '../sign-in-providers-C97mRNbG.js';
|
|
22
30
|
|
|
23
31
|
/**
|
|
24
32
|
* A query's identity: plain JSON values, outermost group first, such as
|
|
@@ -433,6 +441,7 @@ declare function useEntitlements(options?: QueryOptions): MemberQuery<{
|
|
|
433
441
|
[x: string]: unknown;
|
|
434
442
|
kind: string;
|
|
435
443
|
};
|
|
444
|
+
key?: string | null | undefined;
|
|
436
445
|
};
|
|
437
446
|
earnedTier: string;
|
|
438
447
|
tier: string;
|
|
@@ -459,6 +468,7 @@ declare function useEntitlements(options?: QueryOptions): MemberQuery<{
|
|
|
459
468
|
[x: string]: unknown;
|
|
460
469
|
kind: string;
|
|
461
470
|
};
|
|
471
|
+
key?: string | null | undefined;
|
|
462
472
|
};
|
|
463
473
|
earnedTier: string;
|
|
464
474
|
tier: string;
|
|
@@ -487,6 +497,7 @@ declare function useEntitlements(options?: QueryOptions): MemberQuery<{
|
|
|
487
497
|
[x: string]: unknown;
|
|
488
498
|
kind: string;
|
|
489
499
|
};
|
|
500
|
+
key?: string | null | undefined;
|
|
490
501
|
};
|
|
491
502
|
earnedTier: string;
|
|
492
503
|
tier: string;
|
|
@@ -521,6 +532,7 @@ declare function useEntitlements(options?: QueryOptions): MemberQuery<{
|
|
|
521
532
|
[x: string]: unknown;
|
|
522
533
|
kind: string;
|
|
523
534
|
};
|
|
535
|
+
key?: string | null | undefined;
|
|
524
536
|
};
|
|
525
537
|
earnedTier: string;
|
|
526
538
|
tier: string;
|
|
@@ -559,6 +571,7 @@ declare function useEntitlements(options?: QueryOptions): MemberQuery<{
|
|
|
559
571
|
[x: string]: unknown;
|
|
560
572
|
kind: string;
|
|
561
573
|
};
|
|
574
|
+
key?: string | null | undefined;
|
|
562
575
|
};
|
|
563
576
|
earnedTier: string;
|
|
564
577
|
tier: string;
|
|
@@ -619,6 +632,7 @@ declare function useDeliveries(options?: QueryOptions): MemberQuery<{
|
|
|
619
632
|
[x: string]: unknown;
|
|
620
633
|
kind: string;
|
|
621
634
|
};
|
|
635
|
+
key?: string | null | undefined;
|
|
622
636
|
};
|
|
623
637
|
earnedTier: string;
|
|
624
638
|
tier: string;
|
|
@@ -645,6 +659,7 @@ declare function useDeliveries(options?: QueryOptions): MemberQuery<{
|
|
|
645
659
|
[x: string]: unknown;
|
|
646
660
|
kind: string;
|
|
647
661
|
};
|
|
662
|
+
key?: string | null | undefined;
|
|
648
663
|
};
|
|
649
664
|
earnedTier: string;
|
|
650
665
|
tier: string;
|
|
@@ -673,6 +688,7 @@ declare function useDeliveries(options?: QueryOptions): MemberQuery<{
|
|
|
673
688
|
[x: string]: unknown;
|
|
674
689
|
kind: string;
|
|
675
690
|
};
|
|
691
|
+
key?: string | null | undefined;
|
|
676
692
|
};
|
|
677
693
|
earnedTier: string;
|
|
678
694
|
tier: string;
|
|
@@ -707,6 +723,7 @@ declare function useDeliveries(options?: QueryOptions): MemberQuery<{
|
|
|
707
723
|
[x: string]: unknown;
|
|
708
724
|
kind: string;
|
|
709
725
|
};
|
|
726
|
+
key?: string | null | undefined;
|
|
710
727
|
};
|
|
711
728
|
earnedTier: string;
|
|
712
729
|
tier: string;
|
|
@@ -745,6 +762,7 @@ declare function useDeliveries(options?: QueryOptions): MemberQuery<{
|
|
|
745
762
|
[x: string]: unknown;
|
|
746
763
|
kind: string;
|
|
747
764
|
};
|
|
765
|
+
key?: string | null | undefined;
|
|
748
766
|
};
|
|
749
767
|
earnedTier: string;
|
|
750
768
|
tier: string;
|
|
@@ -875,7 +893,7 @@ declare function useQuest(observed: QuestView): {
|
|
|
875
893
|
imageAlt?: string | undefined;
|
|
876
894
|
requirements?: ({
|
|
877
895
|
kind: "account";
|
|
878
|
-
provider: "discord" | "
|
|
896
|
+
provider: "discord" | "google" | "apple" | "x";
|
|
879
897
|
} | {
|
|
880
898
|
kind: "wallet";
|
|
881
899
|
chain?: "solana" | "eip155" | "cosmos" | undefined;
|
|
@@ -899,7 +917,7 @@ declare function useQuest(observed: QuestView): {
|
|
|
899
917
|
} | undefined;
|
|
900
918
|
} | undefined;
|
|
901
919
|
};
|
|
902
|
-
connections: ("discord" | "
|
|
920
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
903
921
|
trigger: {
|
|
904
922
|
kind: "manual";
|
|
905
923
|
input: "text";
|
|
@@ -964,7 +982,7 @@ declare function useQuest(observed: QuestView): {
|
|
|
964
982
|
equals: string | number | boolean;
|
|
965
983
|
})[] | undefined;
|
|
966
984
|
enrollment?: "none" | "required" | undefined;
|
|
967
|
-
since?: "
|
|
985
|
+
since?: "window" | "activation" | "enrollment" | undefined;
|
|
968
986
|
historical?: "staff" | "claim" | "automatic" | undefined;
|
|
969
987
|
content?: true | undefined;
|
|
970
988
|
} | undefined;
|
|
@@ -1001,7 +1019,7 @@ declare function useQuest(observed: QuestView): {
|
|
|
1001
1019
|
})[];
|
|
1002
1020
|
} | {
|
|
1003
1021
|
kind: "blocked";
|
|
1004
|
-
reason: "
|
|
1022
|
+
reason: "outside-window" | "enrollment-required" | "budget-exhausted" | "paused" | "connection-required" | "wallet-required";
|
|
1005
1023
|
window?: "quest" | "tracker" | undefined;
|
|
1006
1024
|
resetsAt?: number | undefined;
|
|
1007
1025
|
} | {
|
|
@@ -1328,7 +1346,7 @@ declare function useQuestAction(observed: QuestView): {
|
|
|
1328
1346
|
imageAlt?: string | undefined;
|
|
1329
1347
|
requirements?: ({
|
|
1330
1348
|
kind: "account";
|
|
1331
|
-
provider: "discord" | "
|
|
1349
|
+
provider: "discord" | "google" | "apple" | "x";
|
|
1332
1350
|
} | {
|
|
1333
1351
|
kind: "wallet";
|
|
1334
1352
|
chain?: "solana" | "eip155" | "cosmos" | undefined;
|
|
@@ -1352,7 +1370,7 @@ declare function useQuestAction(observed: QuestView): {
|
|
|
1352
1370
|
} | undefined;
|
|
1353
1371
|
} | undefined;
|
|
1354
1372
|
};
|
|
1355
|
-
connections: ("discord" | "
|
|
1373
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
1356
1374
|
trigger: {
|
|
1357
1375
|
kind: "manual";
|
|
1358
1376
|
input: "text";
|
|
@@ -1417,7 +1435,7 @@ declare function useQuestAction(observed: QuestView): {
|
|
|
1417
1435
|
equals: string | number | boolean;
|
|
1418
1436
|
})[] | undefined;
|
|
1419
1437
|
enrollment?: "none" | "required" | undefined;
|
|
1420
|
-
since?: "
|
|
1438
|
+
since?: "window" | "activation" | "enrollment" | undefined;
|
|
1421
1439
|
historical?: "staff" | "claim" | "automatic" | undefined;
|
|
1422
1440
|
content?: true | undefined;
|
|
1423
1441
|
} | undefined;
|
|
@@ -1454,7 +1472,7 @@ declare function useQuestAction(observed: QuestView): {
|
|
|
1454
1472
|
})[];
|
|
1455
1473
|
} | {
|
|
1456
1474
|
kind: "blocked";
|
|
1457
|
-
reason: "
|
|
1475
|
+
reason: "outside-window" | "enrollment-required" | "budget-exhausted" | "paused" | "connection-required" | "wallet-required";
|
|
1458
1476
|
window?: "quest" | "tracker" | undefined;
|
|
1459
1477
|
resetsAt?: number | undefined;
|
|
1460
1478
|
} | {
|
|
@@ -2063,7 +2081,7 @@ declare function useAccounts(): {
|
|
|
2063
2081
|
isConnected: (provider: AuthProvider) => boolean;
|
|
2064
2082
|
status: "ready";
|
|
2065
2083
|
data: {
|
|
2066
|
-
provider: "discord" | "
|
|
2084
|
+
provider: "discord" | "google" | "apple" | "x";
|
|
2067
2085
|
configured: boolean;
|
|
2068
2086
|
status: "disconnected" | "connected" | "reconnect";
|
|
2069
2087
|
subject: string | null;
|
|
@@ -2481,7 +2499,7 @@ declare function useMyProfile(): {
|
|
|
2481
2499
|
seed: string;
|
|
2482
2500
|
} | {
|
|
2483
2501
|
source: "account";
|
|
2484
|
-
provider: "discord" | "
|
|
2502
|
+
provider: "discord" | "google" | "x";
|
|
2485
2503
|
url: string;
|
|
2486
2504
|
seed: string;
|
|
2487
2505
|
} | {
|
|
@@ -2489,13 +2507,13 @@ declare function useMyProfile(): {
|
|
|
2489
2507
|
seed: string;
|
|
2490
2508
|
};
|
|
2491
2509
|
displayName: string | null;
|
|
2492
|
-
avatarChoice: "default" | "account" | "
|
|
2493
|
-
avatarProvider: "discord" | "
|
|
2510
|
+
avatarChoice: "default" | "account" | "upload" | "generated";
|
|
2511
|
+
avatarProvider: "discord" | "google" | "x" | null;
|
|
2494
2512
|
hidden: boolean;
|
|
2495
2513
|
locked: boolean;
|
|
2496
2514
|
visibility: "public" | "private" | "participants";
|
|
2497
2515
|
options: {
|
|
2498
|
-
provider: "discord" | "
|
|
2516
|
+
provider: "discord" | "google" | "x";
|
|
2499
2517
|
name: string | null;
|
|
2500
2518
|
givenName: string | null;
|
|
2501
2519
|
imageUrl: string | null;
|
|
@@ -2750,4 +2768,5 @@ declare function usePointLedgers(): Query<PointLedgerReference[]>;
|
|
|
2750
2768
|
*/
|
|
2751
2769
|
declare function useTieredRewards(): Query<TieredRewardReference[]>;
|
|
2752
2770
|
|
|
2753
|
-
export {
|
|
2771
|
+
export { CosmosChains, CreatorAccountProvider, DiscoveredWallet, KnownConsentChannel, MemberConsent, Page, ProviderSignInOption, RelayClient, RelayProvider, SignInMethods, SignInOption, SignInProvider, SignInUnavailable, SignInWallet, TelegramSignInOption, canRepeat, canSubmit, captureReferralCode, completionCountText, isAutomatic, isConnected, isCoolingDown, isFinished, progressOf, questActionState, questGroups, questStatus, questStatusText, relayKeys, roleDeliveryLabel, roleDeliveryStatus, useAccount, useAccounts, useActivity, useBadgeCatalog, useBadges, useBalances, useConsent, useCreatorAccounts, useDeliveries, useEntitlements, useExperience, useInvalidate, useInvitation, useLeaderboard, useLeaderboardHistory, useLeaderboardPlacement, useMe, useMemberPages, useMemberQuery, useMyProfile, useOffers, usePointHistory, usePointLedgers, useProfile, useProfileBadges, useProfileCompletions, useProfileReferral, useQuest, useQuestAction, useQuestOutcomes, useRedeemOffer, useReferralSummary, useRelay, useRelayAction, useRelayMutation, useRelayPages, useRelayQuery, useSession, useSetQueryData, useSignIn, useSignInMethods, useSignInOptions, useSignInWallets, useSignOut, useTelegramAccount, useTieredRewards, useWalletDiscovery, useWallets };
|
|
2772
|
+
export type { Collection, ExperienceData, Invitation, KnownQuestStatusCode, KnownRoleDeliveryStatus, MemberPagedQuery, MemberQuery, MemberQueryOptions, MemberSnapshot, Mutation, MutationContext, MutationOptions, MutationStatus, OAuthProvider, PageLoader, PageRead, PagedQuery, Query, QueryContext, QueryKey, QueryOptions, QueryRead, QuerySnapshot, QuestActionState, QuestInput, QuestNotice, QuestStatus, QuestStatusCode, QuestStatusText, QuestTone, ReferralSummary, RelayActionResult, RelayPolling, RelayQueryOptions, RoleDelivery, RoleDeliveryStatus, SavedSubmission };
|
package/dist/react/index.js
CHANGED
|
@@ -8,24 +8,24 @@ import {
|
|
|
8
8
|
discoverSolanaWallets,
|
|
9
9
|
readSignInMethods,
|
|
10
10
|
signInOptionsFrom
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-TCREFRPK.js";
|
|
12
12
|
import {
|
|
13
13
|
telegramMiniAppInitData
|
|
14
14
|
} from "../chunk-FWLQ5XCS.js";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-LGGD7S5T.js";
|
|
16
16
|
import {
|
|
17
17
|
createRelayAction
|
|
18
|
-
} from "../chunk-
|
|
19
|
-
import "../chunk-
|
|
18
|
+
} from "../chunk-5RLIPTL7.js";
|
|
19
|
+
import "../chunk-LDO5GP7G.js";
|
|
20
20
|
import "../chunk-VAGGGB6B.js";
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-WVK3G2J2.js";
|
|
22
|
+
import "../chunk-SWLW4VN3.js";
|
|
23
|
+
import "../chunk-ME2KUAVJ.js";
|
|
24
24
|
import {
|
|
25
25
|
sessionMember
|
|
26
|
-
} from "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
26
|
+
} from "../chunk-PO2ZDY27.js";
|
|
27
|
+
import "../chunk-2A3BJ262.js";
|
|
28
|
+
import "../chunk-CQVKOD3B.js";
|
|
29
29
|
import {
|
|
30
30
|
RelayError,
|
|
31
31
|
RelayErrorCode,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
clientError,
|
|
34
34
|
isRelayError,
|
|
35
35
|
isRequestError
|
|
36
|
-
} from "../chunk-
|
|
36
|
+
} from "../chunk-VNEJH4NT.js";
|
|
37
37
|
|
|
38
38
|
// src/react/context.ts
|
|
39
39
|
import { createContext, useContext } from "react";
|
|
@@ -64,4 +64,5 @@ declare class RequestError extends Error {
|
|
|
64
64
|
constructor(message: string, details: RequestErrorDetails);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
export { RequestError as R,
|
|
67
|
+
export { RequestError as R, isRequestError as i };
|
|
68
|
+
export type { RequestErrorDetails as a, RequestErrorKind as b, RequestRecovery as c };
|