@domino-sdk/relay 1.55.0 → 1.59.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 (65) hide show
  1. package/CHANGELOG.md +85 -0
  2. package/dist/{accounts-DRPENuZe.d.ts → accounts-CVonEkdb.d.ts} +18 -7
  3. package/dist/{attempt-captures-CxxO7DeD.d.ts → attempt-captures-DBj-rxak.d.ts} +1 -1
  4. package/dist/authoring.d.ts +306 -72
  5. package/dist/authoring.js +264 -9
  6. package/dist/{automatic-outcomes-DxW_v5Wc.d.ts → automatic-outcomes-FS9okvBP.d.ts} +1 -1
  7. package/dist/avatar.d.ts +1 -2
  8. package/dist/browser.d.ts +8 -9
  9. package/dist/browser.js +10 -10
  10. package/dist/{capability-error-DSd8EMQC.d.ts → capability-error-DDJl0LY-.d.ts} +0 -6
  11. package/dist/{chunk-IZRITLVV.js → chunk-2LKGAL63.js} +2 -2
  12. package/dist/{chunk-GL43VQ5D.js → chunk-577DG2IT.js} +38 -8
  13. package/dist/{chunk-UY6KMLQG.js → chunk-6U5WWH3W.js} +141 -100
  14. package/dist/{chunk-YCOKTQ4E.js → chunk-AWWCEP7F.js} +1403 -882
  15. package/dist/{chunk-56DBFNR2.js → chunk-EQF4ID47.js} +1 -1
  16. package/dist/{chunk-YEVD4A5X.js → chunk-IBROKMFV.js} +2 -2
  17. package/dist/{chunk-XALIFNMD.js → chunk-KBCTII6C.js} +1 -1
  18. package/dist/{chunk-WHG5WE43.js → chunk-KYUQEZZA.js} +1 -1
  19. package/dist/{chunk-WUEQOKJH.js → chunk-LDLOB2UZ.js} +4 -4
  20. package/dist/{chunk-IUF7DW76.js → chunk-M2JQPDUX.js} +39 -9
  21. package/dist/{chunk-MLIXJPKL.js → chunk-MHPKEVEW.js} +1 -0
  22. package/dist/{chunk-TLK2MD4S.js → chunk-R4S6BFOH.js} +1 -1
  23. package/dist/{chunk-VFBQVY4X.js → chunk-TZJT5CRF.js} +1 -1
  24. package/dist/{chunk-C7QZ4UBB.js → chunk-UEMLYPKJ.js} +21 -5
  25. package/dist/{chunk-F6HECAXA.js → chunk-W42KMMH5.js} +140 -101
  26. package/dist/{chunk-WHMXXHPX.js → chunk-XGXDINGM.js} +16 -3
  27. package/dist/{chunk-SABMNPF2.js → chunk-YMWRLAAP.js} +1 -1
  28. package/dist/{chunk-YE3XYB2F.js → chunk-YRSU2X2P.js} +2 -2
  29. package/dist/{client-C4zUZKpj.d.ts → client-3b9HjSzZ.d.ts} +191 -117
  30. package/dist/{deployments-B32QS1CI.d.ts → deployments-BydFVj4Q.d.ts} +798 -235
  31. package/dist/{groups-O6onGPmC.d.ts → groups-CFuTfFqG.d.ts} +15 -9
  32. package/dist/index.d.ts +9 -10
  33. package/dist/index.js +9 -9
  34. package/dist/{integrations-C6_uUh-s.d.ts → integrations-DrbKQSTD.d.ts} +42 -22
  35. package/dist/internal.d.ts +10 -10
  36. package/dist/internal.js +9 -9
  37. package/dist/{offers-BMDNcvwB.d.ts → offers-DAfe1O3_.d.ts} +211 -2
  38. package/dist/{pages-BFloMpyQ.d.ts → pages-ChDVLrgR.d.ts} +95 -10
  39. package/dist/portal-proxy.js +4 -4
  40. package/dist/react/index.d.ts +149 -72
  41. package/dist/react/index.js +65 -10
  42. package/dist/runtime/authoring.js +1 -1
  43. package/dist/runtime/chunks/BG43KQ2T.js +1 -0
  44. package/dist/runtime/chunks/EWU4OKSY.js +62 -0
  45. package/dist/runtime/manifest.json +5 -5
  46. package/dist/runtime/schema.js +1 -1
  47. package/dist/runtime/zod.js +1 -1
  48. package/dist/{schema-C4m9RhCR.d.ts → schema-BA0nRRlt.d.ts} +184 -35
  49. package/dist/schema.d.ts +1265 -697
  50. package/dist/schema.js +96 -12
  51. package/dist/server/index.d.ts +10 -10
  52. package/dist/server/index.js +1644 -1105
  53. package/dist/{submission-input-BbdawqVy.d.ts → submission-input-DxQ6RnKo.d.ts} +2 -2
  54. package/dist/{telegram-browser-CwaxROAZ.d.ts → telegram-browser-o3OIxGrJ.d.ts} +3 -3
  55. package/dist/testing.d.ts +89 -9
  56. package/dist/testing.js +215 -10
  57. package/dist/{transport-CZJOW5Sr.d.ts → transport-D_Eqf78J.d.ts} +8592 -4384
  58. package/dist/wallet-B06zvDXp.d.ts +972 -0
  59. package/dist/{x-1czZFVUW.d.ts → x-C28SNifw.d.ts} +2 -2
  60. package/package.json +2 -2
  61. package/dist/profiles-BoOK03cR.d.ts +0 -299
  62. package/dist/runtime/chunks/IDOMZWRY.js +0 -40
  63. package/dist/runtime/chunks/WKATKZXE.js +0 -1
  64. package/dist/util.d-w9f9t3ua.d.ts +0 -5
  65. package/dist/wallet-Ac7OFpOr.d.ts +0 -228
@@ -1,5 +1,5 @@
1
1
  import * as z from 'zod';
2
- import { a8 as PhotoResult } from './schema-C4m9RhCR.js';
2
+ import { z as PhotoResult } from './schema-BA0nRRlt.js';
3
3
 
4
4
  /**
5
5
  * Quest code names an image; the platform fetches, decodes and pins it. No bytes or URLs cross the
@@ -285,7 +285,7 @@ declare const xPostSchema: z.ZodObject<{
285
285
  inReplyToUserId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
286
286
  inReplyToStatusId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
287
287
  retweetedTweetId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
288
- media: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
288
+ media: z.ZodPipe<z.ZodOptional<z.ZodUnknown>, z.ZodTransform<{
289
289
  type: string;
290
290
  url: string;
291
291
  }[], unknown>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domino-sdk/relay",
3
- "version": "1.55.0",
3
+ "version": "1.59.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -57,7 +57,7 @@
57
57
  "@dicebear/core": "9.4.3",
58
58
  "@dicebear/shapes": "9.4.3",
59
59
  "croner": "10.0.1",
60
- "zod": "4.3.6"
60
+ "zod": "4.6.5"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "esbuild": ">=0.25.0 <1",
@@ -1,299 +0,0 @@
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 seed of a generated avatar (`defaultAvatar`), the same one `relay.me.get()` returns: an HMAC
37
- * of the member under the project's secret, so it reveals nothing about the member.
38
- */
39
- declare const avatarSeedSchema: z.ZodString;
40
- /**
41
- * A profile's avatar: an uploaded picture, an account's picture, or a generated one. Every kind
42
- * carries the generated avatar's `seed`, so a picture that fails to load falls back to the same
43
- * generated avatar everywhere.
44
- */
45
- declare const profileAvatarSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
46
- source: z.ZodLiteral<"upload">;
47
- url: z.ZodString;
48
- seed: z.ZodString;
49
- }, z.core.$strip>, z.ZodObject<{
50
- source: z.ZodLiteral<"account">;
51
- provider: z.ZodEnum<{
52
- discord: "discord";
53
- google: "google";
54
- x: "x";
55
- }>;
56
- url: z.ZodString;
57
- seed: z.ZodString;
58
- }, z.core.$strip>, z.ZodObject<{
59
- source: z.ZodLiteral<"generated">;
60
- seed: z.ZodString;
61
- }, z.core.$strip>], "source">;
62
- type ProfileAvatar = z.infer<typeof profileAvatarSchema>;
63
- /** What other participants see: the profile's public ID, its name and its avatar. */
64
- declare const profileSummarySchema: z.ZodObject<{
65
- id: z.ZodString;
66
- name: z.ZodString;
67
- avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
68
- source: z.ZodLiteral<"upload">;
69
- url: z.ZodString;
70
- seed: z.ZodString;
71
- }, z.core.$strip>, z.ZodObject<{
72
- source: z.ZodLiteral<"account">;
73
- provider: z.ZodEnum<{
74
- discord: "discord";
75
- google: "google";
76
- x: "x";
77
- }>;
78
- url: z.ZodString;
79
- seed: z.ZodString;
80
- }, z.core.$strip>, z.ZodObject<{
81
- source: z.ZodLiteral<"generated">;
82
- seed: z.ZodString;
83
- }, z.core.$strip>], "source">;
84
- }, z.core.$strip>;
85
- type ProfileSummary = z.infer<typeof profileSummarySchema>;
86
- /**
87
- * A display name: NFC-normalized, whitespace collapsed and trimmed, 1 to 40 characters, with no
88
- * control, zero-width or bidirectional formatting characters.
89
- */
90
- declare const displayNameSchema: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
91
- /**
92
- * A change to the member's own profile; omitted fields stay. `displayName: null` and
93
- * `avatar: null` return to the project's defaults (null also removes an uploaded picture).
94
- * Upload a picture with `relay.profiles.uploadAvatar`.
95
- */
96
- declare const profileUpdateSchema: z.ZodObject<{
97
- displayName: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>>;
98
- avatar: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
99
- source: z.ZodLiteral<"account">;
100
- provider: z.ZodEnum<{
101
- discord: "discord";
102
- google: "google";
103
- x: "x";
104
- }>;
105
- }, z.core.$strict>, z.ZodObject<{
106
- source: z.ZodLiteral<"generated">;
107
- }, z.core.$strict>], "source">>>;
108
- hidden: z.ZodOptional<z.ZodBoolean>;
109
- }, z.core.$strict>;
110
- type ProfileUpdate = z.input<typeof profileUpdateSchema>;
111
- /** The signed-in member's own profile, with what they chose and what they can choose from. */
112
- declare const ownProfileSchema: z.ZodObject<{
113
- id: z.ZodString;
114
- name: z.ZodString;
115
- avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
116
- source: z.ZodLiteral<"upload">;
117
- url: z.ZodString;
118
- seed: z.ZodString;
119
- }, z.core.$strip>, z.ZodObject<{
120
- source: z.ZodLiteral<"account">;
121
- provider: z.ZodEnum<{
122
- discord: "discord";
123
- google: "google";
124
- x: "x";
125
- }>;
126
- url: z.ZodString;
127
- seed: z.ZodString;
128
- }, z.core.$strip>, z.ZodObject<{
129
- source: z.ZodLiteral<"generated">;
130
- seed: z.ZodString;
131
- }, z.core.$strip>], "source">;
132
- displayName: z.ZodNullable<z.ZodString>;
133
- avatarChoice: z.ZodEnum<{
134
- default: "default";
135
- account: "account";
136
- upload: "upload";
137
- generated: "generated";
138
- }>;
139
- avatarProvider: z.ZodNullable<z.ZodEnum<{
140
- discord: "discord";
141
- google: "google";
142
- x: "x";
143
- }>>;
144
- hidden: z.ZodBoolean;
145
- locked: z.ZodBoolean;
146
- visibility: z.ZodEnum<{
147
- public: "public";
148
- private: "private";
149
- participants: "participants";
150
- }>;
151
- options: z.ZodArray<z.ZodObject<{
152
- provider: z.ZodEnum<{
153
- discord: "discord";
154
- google: "google";
155
- x: "x";
156
- }>;
157
- name: z.ZodNullable<z.ZodString>;
158
- givenName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
159
- imageUrl: z.ZodNullable<z.ZodString>;
160
- }, z.core.$strip>>;
161
- }, z.core.$strip>;
162
- /** @compat output */
163
- type OwnProfile = z.infer<typeof ownProfileSchema>;
164
- /** A page of a profile's quest completions: `limit` quests (default 20, at most 100) after `cursor`. */
165
- declare const profileCompletionQuerySchema: z.ZodObject<{
166
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
167
- cursor: z.ZodOptional<z.ZodString>;
168
- }, z.core.$strict>;
169
- type ProfileCompletionQuery = z.input<typeof profileCompletionQuerySchema>;
170
- /** A quest the member completed, grouped over its completions. */
171
- declare const profileCompletionSchema: z.ZodObject<{
172
- quest: z.ZodString;
173
- key: z.ZodOptional<z.ZodString>;
174
- title: z.ZodString;
175
- completions: z.ZodNumber;
176
- lastCompletedAt: z.ZodNullable<z.ZodNumber>;
177
- }, z.core.$strip>;
178
- type ProfileCompletion = z.infer<typeof profileCompletionSchema>;
179
- /**
180
- * A profile's completions of the quests that show on profiles (`defineQuest({ profile: { visible:
181
- * true } })`), most recently completed first. Pass `nextCursor` as `cursor` for the next page.
182
- */
183
- declare const profileCompletionPageSchema: z.ZodObject<{
184
- items: z.ZodArray<z.ZodObject<{
185
- quest: z.ZodString;
186
- key: z.ZodOptional<z.ZodString>;
187
- title: z.ZodString;
188
- completions: z.ZodNumber;
189
- lastCompletedAt: z.ZodNullable<z.ZodNumber>;
190
- }, z.core.$strip>>;
191
- nextCursor: z.ZodNullable<z.ZodString>;
192
- }, z.core.$strip>;
193
- type ProfileCompletionPage = z.infer<typeof profileCompletionPageSchema>;
194
- /** A profile's progress in one referral program: counts only, never codes or accounts. */
195
- declare const profileReferralSchema: z.ZodObject<{
196
- program: z.ZodString;
197
- key: z.ZodOptional<z.ZodString>;
198
- title: z.ZodString;
199
- invited: z.ZodNumber;
200
- qualified: z.ZodNumber;
201
- milestones: z.ZodArray<z.ZodObject<{
202
- id: z.ZodString;
203
- count: z.ZodNumber;
204
- reached: z.ZodBoolean;
205
- }, z.core.$strip>>;
206
- }, z.core.$strip>;
207
- type ProfileReferral = z.infer<typeof profileReferralSchema>;
208
- /** A project's profile settings in one environment. */
209
- declare const profileSettingsSchema: z.ZodObject<{
210
- visibility: z.ZodEnum<{
211
- public: "public";
212
- private: "private";
213
- participants: "participants";
214
- }>;
215
- defaults: z.ZodArray<z.ZodEnum<{
216
- discord: "discord";
217
- x: "x";
218
- }>>;
219
- revision: z.ZodNumber;
220
- actor: z.ZodNullable<z.ZodString>;
221
- updatedAt: z.ZodNullable<z.ZodNumber>;
222
- }, z.core.$strip>;
223
- type ProfileSettings = z.infer<typeof profileSettingsSchema>;
224
- declare const profileSettingsInputSchema: z.ZodObject<{
225
- visibility: z.ZodEnum<{
226
- public: "public";
227
- private: "private";
228
- participants: "participants";
229
- }>;
230
- defaults: z.ZodArray<z.ZodEnum<{
231
- discord: "discord";
232
- x: "x";
233
- }>>;
234
- actionId: z.ZodString;
235
- expectedRevision: z.ZodNumber;
236
- reason: z.ZodString;
237
- }, z.core.$strict>;
238
- type ProfileSettingsInput = z.input<typeof profileSettingsInputSchema>;
239
- /** An operator's change to a member's profile. Every action is audited with its reason. */
240
- declare const profileModerationSchema: z.ZodObject<{
241
- actionId: z.ZodString;
242
- resetName: z.ZodDefault<z.ZodBoolean>;
243
- removeAvatar: z.ZodDefault<z.ZodBoolean>;
244
- lock: z.ZodOptional<z.ZodBoolean>;
245
- reason: z.ZodString;
246
- }, z.core.$strict>;
247
- type ProfileModeration = z.input<typeof profileModerationSchema>;
248
- /** A member's profile as operators see it: always, whatever the settings. */
249
- declare const managedProfileSchema: z.ZodObject<{
250
- name: z.ZodString;
251
- id: z.ZodString;
252
- displayName: z.ZodNullable<z.ZodString>;
253
- hidden: z.ZodBoolean;
254
- visibility: z.ZodEnum<{
255
- public: "public";
256
- private: "private";
257
- participants: "participants";
258
- }>;
259
- locked: z.ZodBoolean;
260
- avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
261
- source: z.ZodLiteral<"upload">;
262
- url: z.ZodString;
263
- seed: z.ZodString;
264
- }, z.core.$strip>, z.ZodObject<{
265
- source: z.ZodLiteral<"account">;
266
- provider: z.ZodEnum<{
267
- discord: "discord";
268
- google: "google";
269
- x: "x";
270
- }>;
271
- url: z.ZodString;
272
- seed: z.ZodString;
273
- }, z.core.$strip>, z.ZodObject<{
274
- source: z.ZodLiteral<"generated">;
275
- seed: z.ZodString;
276
- }, z.core.$strip>], "source">;
277
- avatarChoice: z.ZodEnum<{
278
- default: "default";
279
- account: "account";
280
- upload: "upload";
281
- generated: "generated";
282
- }>;
283
- avatarProvider: z.ZodNullable<z.ZodEnum<{
284
- discord: "discord";
285
- google: "google";
286
- x: "x";
287
- }>>;
288
- member: z.ZodString;
289
- lockedAt: z.ZodNullable<z.ZodNumber>;
290
- lockedBy: z.ZodNullable<z.ZodString>;
291
- lockedReason: z.ZodNullable<z.ZodString>;
292
- updatedAt: z.ZodNumber;
293
- }, z.core.$strip>;
294
- type ManagedProfile = z.infer<typeof managedProfileSchema>;
295
- /** The largest avatar upload, and the types an upload can have. */
296
- declare const AVATAR_UPLOAD_LIMIT: number;
297
- declare const avatarUploadTypes: string[];
298
-
299
- export { type AvatarProvider as A, profileModerationSchema as B, profileReferralSchema as C, profileSettingsInputSchema as D, profileSettingsSchema as E, profileSummarySchema as F, profileVisibilitySchema as G, type ManagedProfile as M, type OwnProfile as O, type ProfileAvatar as P, type ProfileCompletion as a, type ProfileCompletionPage as b, type ProfileCompletionQuery as c, type ProfileReferral as d, type ProfileSummary as e, type ProfileUpdate as f, type ProfileVisibility as g, AVATAR_UPLOAD_LIMIT as h, type ProfileDefaultProvider as i, type ProfileDefaults as j, type ProfileModeration as k, type ProfileSettings as l, type ProfileSettingsInput as m, avatarProviderSchema as n, avatarSeedSchema as o, profileUpdateSchema as p, avatarUploadTypes as q, displayNameSchema as r, managedProfileSchema as s, ownProfileSchema as t, profileAvatarSchema as u, profileCompletionPageSchema as v, profileCompletionQuerySchema as w, profileCompletionSchema as x, profileDefaultProviderSchema as y, profileDefaultsSchema as z };