@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.
Files changed (81) hide show
  1. package/CHANGELOG.md +65 -0
  2. package/dist/{accounts-C2O8mpB8.d.ts → accounts-DD4gAOCe.d.ts} +232 -3
  3. package/dist/{action-9Xl0StBg.d.ts → action-BDFKqGlH.d.ts} +3 -2
  4. package/dist/{attempt-captures-ClHAoo_n.d.ts → attempt-captures-CbuCmthd.d.ts} +11 -2
  5. package/dist/authoring.d.ts +534 -48
  6. package/dist/authoring.js +192 -29
  7. package/dist/{automatic-outcomes-BEnPn4Uh.d.ts → automatic-outcomes-DE3vfi8g.d.ts} +11 -3
  8. package/dist/avatar.d.ts +2 -1
  9. package/dist/browser.d.ts +15 -13
  10. package/dist/browser.js +12 -13
  11. package/dist/{capability-error-CuI_F7yM.d.ts → capability-error-db7kO8-P.d.ts} +2 -1
  12. package/dist/{catalog-CbiftcxQ.d.ts → catalog-Cf3fHDNn.d.ts} +69 -3
  13. package/dist/{chunk-5DZNMLDM.js → chunk-2A3BJ262.js} +2 -2
  14. package/dist/{chunk-BQXRCJ3N.js → chunk-5RLIPTL7.js} +1 -1
  15. package/dist/{chunk-MVQQDPQX.js → chunk-AZDZEQFK.js} +14 -2
  16. package/dist/{chunk-JK3XV2CR.js → chunk-BRROI4CH.js} +50 -8
  17. package/dist/{chunk-P33ZAJMS.js → chunk-CQVKOD3B.js} +1266 -677
  18. package/dist/{chunk-QYC3CZVD.js → chunk-CZ23KRVK.js} +2 -2
  19. package/dist/{chunk-X3FMVRMM.js → chunk-DIXYVGXO.js} +1 -1
  20. package/dist/{chunk-RDUSFUXX.js → chunk-GEVARKEV.js} +9 -1
  21. package/dist/{chunk-2HHZV7U3.js → chunk-LDO5GP7G.js} +1 -1
  22. package/dist/{chunk-Z2Z5DBNW.js → chunk-LGGD7S5T.js} +45 -9
  23. package/dist/{chunk-U66GUVSG.js → chunk-LZXDYSUH.js} +2 -0
  24. package/dist/{chunk-NRMQVK2W.js → chunk-ME2KUAVJ.js} +1 -1
  25. package/dist/{chunk-KUNPCDN6.js → chunk-ODJGTFPY.js} +16 -9
  26. package/dist/{chunk-DSJ46QLB.js → chunk-PO2ZDY27.js} +1 -1
  27. package/dist/{chunk-RWR2LOPA.js → chunk-RKTMSTT7.js} +2 -2
  28. package/dist/{chunk-5SBA6X5X.js → chunk-SWLW4VN3.js} +2 -2
  29. package/dist/{chunk-BMJHFWVT.js → chunk-TCREFRPK.js} +10 -43
  30. package/dist/{chunk-Q5QVAF7R.js → chunk-UGM6DUB2.js} +42 -25
  31. package/dist/chunk-VAGGGB6B.js +87 -0
  32. package/dist/{chunk-FGXLXENM.js → chunk-VNEJH4NT.js} +47 -3
  33. package/dist/chunk-WNEQEDMU.js +427 -0
  34. package/dist/{chunk-Q6KTTVOI.js → chunk-WVK3G2J2.js} +1 -1
  35. package/dist/{client-CZPewB9h.d.ts → client-6eSYOl8h.d.ts} +159 -11
  36. package/dist/{dashboards-jGPM3AxF.d.ts → dashboards-DCOAXL54.d.ts} +6 -5
  37. package/dist/{deployments-BVFd7ddA.d.ts → deployments-BIfdCMd5.d.ts} +911 -309
  38. package/dist/{host-environment-FN4zg3hw.d.ts → host-environment-DUw5-Cvj.d.ts} +2 -1
  39. package/dist/{identity-integration-W1Vo3Ql9.d.ts → identity-integration-BlfOn8rc.d.ts} +3 -2
  40. package/dist/index.d.ts +16 -15
  41. package/dist/index.js +10 -10
  42. package/dist/internal.d.ts +155 -17
  43. package/dist/internal.js +266 -19
  44. package/dist/{limits-C4RzrOV4.d.ts → limits-Ctaeq23J.d.ts} +8 -2
  45. package/dist/{offers-BpYenB9i.d.ts → offers-COqHGbHm.d.ts} +4 -3
  46. package/dist/{participant-activity-DXRq4s6K.d.ts → participant-activity-BznrcePT.d.ts} +2 -1
  47. package/dist/{participant-rewards-BcWkBRn_.d.ts → participant-rewards-s5Gn23qb.d.ts} +23 -1
  48. package/dist/portal-proxy.d.ts +7 -4
  49. package/dist/portal-proxy.js +14 -18
  50. package/dist/profiles-CLDKZVFx.d.ts +370 -0
  51. package/dist/react/index.d.ts +71 -30
  52. package/dist/react/index.js +12 -13
  53. package/dist/{request-error-D_dUPLwo.d.ts → request-error-C24SY7n9.d.ts} +2 -1
  54. package/dist/{reward-deliveries-BOWpMytr.d.ts → reward-deliveries-DFhYGJdx.d.ts} +3 -2
  55. package/dist/runtime/authoring.js +1 -1
  56. package/dist/runtime/chunks/HKAI5OQA.js +1 -0
  57. package/dist/runtime/manifest.json +3 -3
  58. package/dist/runtime/schema.js +1 -1
  59. package/dist/schema.d.ts +556 -180
  60. package/dist/schema.js +70 -8
  61. package/dist/server/index.d.ts +15 -14
  62. package/dist/server/index.js +2053 -893
  63. package/dist/{sign-in-providers-BRYVOSlG.d.ts → sign-in-providers-C97mRNbG.d.ts} +4 -3
  64. package/dist/solana.d.ts +287 -0
  65. package/dist/solana.js +699 -0
  66. package/dist/{streaks-0YuipsUQ.d.ts → streaks-MAqKHbHC.d.ts} +2 -1
  67. package/dist/{submission-input-C152xIdn.d.ts → submission-input-BD7nORuh.d.ts} +4 -3
  68. package/dist/{telegram-browser-657QqiQl.d.ts → telegram-browser-gRMgGs7B.d.ts} +8 -109
  69. package/dist/telegram.d.ts +14 -12
  70. package/dist/telegram.js +2 -2
  71. package/dist/testing.d.ts +99 -18
  72. package/dist/testing.js +101 -11
  73. package/dist/{tracker-data-BqY-9Vu-.d.ts → tracker-data-DQgX3FIc.d.ts} +493 -1
  74. package/dist/{transport-CthYgZXK.d.ts → transport-BLU8jrhg.d.ts} +7340 -2134
  75. package/dist/vite.d.ts +2 -1
  76. package/dist/{wallet-Btng186v.d.ts → wallet-CPAjrW4k.d.ts} +339 -308
  77. package/dist/wallet-browser-BzPt_Qb5.d.ts +107 -0
  78. package/package.json +21 -3
  79. package/dist/chunk-UWUS4OOV.js +0 -59
  80. package/dist/chunk-UYVJZR33.js +0 -34
  81. package/dist/runtime/chunks/C2MGLQXC.js +0 -1
@@ -3,29 +3,29 @@ import {
3
3
  participantExchangeAccountsSchema,
4
4
  participantExchangeResultSchema,
5
5
  secureOrLoopbackOrigin
6
- } from "./chunk-Q5QVAF7R.js";
6
+ } from "./chunk-UGM6DUB2.js";
7
7
  import {
8
8
  isParticipantRoute
9
- } from "./chunk-U66GUVSG.js";
10
- import "./chunk-KUNPCDN6.js";
11
- import "./chunk-X3FMVRMM.js";
12
- import "./chunk-QYC3CZVD.js";
9
+ } from "./chunk-LZXDYSUH.js";
10
+ import "./chunk-ODJGTFPY.js";
11
+ import "./chunk-DIXYVGXO.js";
12
+ import "./chunk-CZ23KRVK.js";
13
13
  import "./chunk-MWMCQLCG.js";
14
14
  import {
15
15
  clientIdentity,
16
16
  retryAfter
17
- } from "./chunk-5SBA6X5X.js";
18
- import "./chunk-NRMQVK2W.js";
17
+ } from "./chunk-SWLW4VN3.js";
18
+ import "./chunk-ME2KUAVJ.js";
19
19
  import {
20
20
  participantPrincipalSchema,
21
21
  sessionMember
22
- } from "./chunk-DSJ46QLB.js";
23
- import "./chunk-5DZNMLDM.js";
24
- import "./chunk-P33ZAJMS.js";
22
+ } from "./chunk-PO2ZDY27.js";
23
+ import "./chunk-2A3BJ262.js";
24
+ import "./chunk-CQVKOD3B.js";
25
25
  import {
26
26
  RequestError,
27
27
  isRequestError
28
- } from "./chunk-FGXLXENM.js";
28
+ } from "./chunk-VNEJH4NT.js";
29
29
 
30
30
  // src/portal-proxy.ts
31
31
  import * as z from "zod";
@@ -302,13 +302,9 @@ function onlyCookie(header, name) {
302
302
  return values.length === 1 ? values[0].slice(name.length + 1) : null;
303
303
  }
304
304
  function oauthReturnBinding(header) {
305
- for (const name of ["__Host-relay_auth_return", "relay_auth_return"]) {
306
- if (header?.split(";").some((value) => value.trim().startsWith(name + "="))) {
307
- const value = onlyCookie(header, name);
308
- return value === null ? null : `${name}=${value}`;
309
- }
310
- }
311
- return null;
305
+ const name = "__Host-relay_auth_return";
306
+ const value = onlyCookie(header, name);
307
+ return value === null ? null : `${name}=${value}`;
312
308
  }
313
309
  function hostedAppRequest(request, env) {
314
310
  if (!env.DOMINO_PREVIEW_ORIGIN) {
@@ -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 };