@domino-sdk/relay 1.34.0 → 1.36.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 (47) hide show
  1. package/dist/{attempt-captures-nMDnKGdI.d.ts → attempt-captures-B2Clh9Df.d.ts} +1 -1
  2. package/dist/authoring.d.ts +47 -47
  3. package/dist/authoring.js +4 -4
  4. package/dist/{automatic-outcomes-CHiFP_U-.d.ts → automatic-outcomes-BiarOoiy.d.ts} +1 -1
  5. package/dist/browser.d.ts +7 -7
  6. package/dist/browser.js +10 -10
  7. package/dist/{chunk-ON7RDKQ3.js → chunk-2A4LCKTU.js} +1 -1
  8. package/dist/{chunk-32UPB7Q3.js → chunk-3KCKA2XH.js} +1 -1
  9. package/dist/{chunk-BUHGXKPY.js → chunk-FTB7F5IP.js} +1 -1
  10. package/dist/{chunk-BDWZ2BZP.js → chunk-GI6RO43K.js} +2 -2
  11. package/dist/{chunk-2SL7K42N.js → chunk-JHHTQ73D.js} +6 -6
  12. package/dist/{chunk-IJT4EKFY.js → chunk-JXFRKZGL.js} +1 -1
  13. package/dist/{chunk-XOHMDXSQ.js → chunk-K7PUCZJY.js} +12 -9
  14. package/dist/{chunk-5C5AZTKA.js → chunk-L33BQLNF.js} +4 -4
  15. package/dist/{chunk-V36CPSZW.js → chunk-LNPV4J53.js} +2 -2
  16. package/dist/{chunk-3WJBL74Q.js → chunk-NQDZX3D2.js} +1 -1
  17. package/dist/{chunk-OEDG75KH.js → chunk-R5NQEW5J.js} +2 -2
  18. package/dist/{chunk-OW22TOV7.js → chunk-RIMESZ4X.js} +29 -1
  19. package/dist/{chunk-Q2PUNIPL.js → chunk-S37JPI5O.js} +1 -1
  20. package/dist/{chunk-466IRAJP.js → chunk-SB3ODDGR.js} +15 -2
  21. package/dist/{chunk-V7K7XXFB.js → chunk-U735N4KB.js} +1 -1
  22. package/dist/{chunk-KUZXNKHL.js → chunk-Z2EN4ERZ.js} +1 -1
  23. package/dist/{client-Bkc7gOmF.d.ts → client-CraOIr8b.d.ts} +11 -6
  24. package/dist/{deployments-DMVpPnGX.d.ts → deployments-DTaJPDsl.d.ts} +213 -213
  25. package/dist/{groups-C06mpYOs.d.ts → groups-DTsvf0Z2.d.ts} +1 -1
  26. package/dist/index.d.ts +8 -8
  27. package/dist/index.js +9 -9
  28. package/dist/internal.d.ts +9 -9
  29. package/dist/internal.js +8 -8
  30. package/dist/{offers-BbQ9O-5J.d.ts → offers-DFJ4dmR3.d.ts} +2 -2
  31. package/dist/{pages-C1tNuRoB.d.ts → pages-B5agdH0f.d.ts} +1 -1
  32. package/dist/{participant-activity-BPZiW7m7.d.ts → participant-activity-CoB2F30C.d.ts} +2 -0
  33. package/dist/portal-proxy.js +3 -3
  34. package/dist/react/index.d.ts +12 -10
  35. package/dist/react/index.js +10 -10
  36. package/dist/{schema-DquhoBae.d.ts → schema--jNn3OfJ.d.ts} +54 -1
  37. package/dist/schema.d.ts +327 -321
  38. package/dist/schema.js +13 -7
  39. package/dist/server/index.d.ts +9 -9
  40. package/dist/server/index.js +40 -14
  41. package/dist/{submission-input-DUmt6Wyx.d.ts → submission-input-BHzSin84.d.ts} +2 -2
  42. package/dist/{telegram-browser-DWFPGBgU.d.ts → telegram-browser-B1LFWF_v.d.ts} +2 -2
  43. package/dist/testing.d.ts +3 -3
  44. package/dist/testing.js +5 -5
  45. package/dist/{transport-DpI_Hhng.d.ts → transport-4QyqeZLU.d.ts} +3179 -3053
  46. package/dist/{x-58jkoblN.d.ts → x-imfTy_I1.d.ts} +1 -1
  47. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  identifier
3
- } from "./chunk-OW22TOV7.js";
3
+ } from "./chunk-RIMESZ4X.js";
4
4
 
5
5
  // src/auth.ts
6
6
  import * as z from "zod";
@@ -39,7 +39,20 @@ function sessionMember(session) {
39
39
  }
40
40
  var memberSummarySchema = z.object({
41
41
  member: identifier,
42
- avatarSeed: z.string().min(1).max(100)
42
+ avatarSeed: z.string().min(1).max(100),
43
+ /**
44
+ * The member's own email address for "signed in as": the first of `emails`, or null when they
45
+ * have none, such as after wallet-only sign-in. Only the member reads it. Absent from a Relay
46
+ * older than this field.
47
+ */
48
+ email: z.string().min(1).nullable().optional(),
49
+ /**
50
+ * The verified email addresses that sign the member in: each email-code sign-in address, then
51
+ * the verified email of each Google or Apple account enabled for sign-in. Accounts connected
52
+ * only for activity are left out. Empty when there are none. Absent from a Relay older than
53
+ * this field.
54
+ */
55
+ emails: z.array(z.string().min(1)).optional()
43
56
  });
44
57
  var exchangeSchema = authScopeSchema.extend({
45
58
  identity: z.object({ issuer: identifier, subject: z.string().min(1).max(200) }).strict(),
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isRequestError
3
- } from "./chunk-OW22TOV7.js";
3
+ } from "./chunk-RIMESZ4X.js";
4
4
 
5
5
  // src/request-lifetime.ts
6
6
  var PARTICIPANT_TIMEOUT = 15e3;
@@ -2,7 +2,7 @@ import {
2
2
  identifier,
3
3
  responseShape,
4
4
  xTweetSchema
5
- } from "./chunk-OW22TOV7.js";
5
+ } from "./chunk-RIMESZ4X.js";
6
6
 
7
7
  // src/x.ts
8
8
  import * as z from "zod";
@@ -1,9 +1,9 @@
1
- import { b0 as referralAcceptSchema, g as LeaderboardQuery, b as CampaignEnrollmentInput, d as CampaignWithdrawalInput, m as PointHistoryQuery, k as PointEntryKind, a7 as engagementPageQuerySchema } from './groups-C06mpYOs.js';
2
- import { j as QuestView, k as ResponseSchema, a as PageQuery, c as QuestEnrollmentInput, Q as QuestClaimInput, g as QuestOutcomeQuery, a0 as questExperienceSchema, t as RewardDeliveryQuery, l as RewardDeliveryAction, H as contentQualificationQuerySchema } from './pages-C1tNuRoB.js';
3
- import { M as MissingPrerequisite, V as ValueEvidence } from './submission-input-DUmt6Wyx.js';
1
+ import { b0 as referralAcceptSchema, g as LeaderboardQuery, b as CampaignEnrollmentInput, d as CampaignWithdrawalInput, m as PointHistoryQuery, k as PointEntryKind, a7 as engagementPageQuerySchema } from './groups-DTsvf0Z2.js';
2
+ import { j as QuestView, k as ResponseSchema, a as PageQuery, c as QuestEnrollmentInput, Q as QuestClaimInput, g as QuestOutcomeQuery, a0 as questExperienceSchema, t as RewardDeliveryQuery, l as RewardDeliveryAction, H as contentQualificationQuerySchema } from './pages-B5agdH0f.js';
3
+ import { M as MissingPrerequisite, V as ValueEvidence } from './submission-input-BHzSin84.js';
4
4
  import { a as RequestError, b as RequestErrorDetails, c as RequestErrorKind, e as createRelayAction, O as OptionalActionId } from './action-DBzILFx9.js';
5
- import { f as QuizEvidence, A as Attempt, M as MemberProgress, a as AttemptStatus, h as TrackerSkipCode, co as submitSchema, bj as contentPerformanceQuerySchema } from './schema-DquhoBae.js';
6
- import { b as ParticipantSession, d as exchangeSchema, R as RelayEvent, P as ParticipantActivity } from './participant-activity-BPZiW7m7.js';
5
+ import { f as QuizEvidence, A as Attempt, M as MemberProgress, a as AttemptStatus, h as TrackerSkipCode, cq as submitSchema, bl as contentPerformanceQuerySchema } from './schema--jNn3OfJ.js';
6
+ import { b as ParticipantSession, d as exchangeSchema, R as RelayEvent, P as ParticipantActivity } from './participant-activity-CoB2F30C.js';
7
7
  import * as z from 'zod';
8
8
  import { a as AuthProvider } from './accounts-DRPENuZe.js';
9
9
  import { F as profileUpdateSchema, c as ProfileCompletionQuery } from './profiles-BHuQdzsW.js';
@@ -3748,10 +3748,15 @@ declare function relayClient(options: RelayClientOptions): {
3748
3748
  onState?: (state: ProgressObservation<ParticipantActivity>) => void;
3749
3749
  }) => ProgressObserver;
3750
3750
  };
3751
- /** The signed-in member, and the seed of their generated avatar: `defaultAvatar(avatarSeed)`. */
3751
+ /**
3752
+ * The signed-in member, the seed of their generated avatar (`defaultAvatar(avatarSeed)`), and
3753
+ * their own verified sign-in email addresses: `email` (or null) and `emails`.
3754
+ */
3752
3755
  get: (requestOptions?: RelayRequestOptions) => Promise<{
3753
3756
  member: string;
3754
3757
  avatarSeed: string;
3758
+ email?: string | null | undefined;
3759
+ emails?: string[] | undefined;
3755
3760
  }>;
3756
3761
  observeProgress: (listener: (value: ProgressObservation) => void, observeOptions?: {
3757
3762
  intervalMs?: number;