@domino-sdk/relay 1.24.0 → 1.29.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 (57) hide show
  1. package/dist/{accounts-B31dWEYD.d.ts → accounts-DRPENuZe.d.ts} +1 -1
  2. package/dist/{attempt-captures-JDIgz2lY.d.ts → attempt-captures-BPMbTDYG.d.ts} +2 -2
  3. package/dist/authoring.d.ts +56 -56
  4. package/dist/authoring.js +7 -7
  5. package/dist/{automatic-outcomes-T9lEIvTj.d.ts → automatic-outcomes-CGAxTwEj.d.ts} +2 -2
  6. package/dist/avatar.d.ts +2 -2
  7. package/dist/browser.d.ts +10 -10
  8. package/dist/browser.js +10 -10
  9. package/dist/{capability-error-oTd3eYFH.d.ts → capability-error-CvSZaif2.d.ts} +1 -1
  10. package/dist/{chunk-B4EZ76WX.js → chunk-22QERRAG.js} +3 -3
  11. package/dist/{chunk-MC6V6VMG.js → chunk-4OC7REYX.js} +1 -1
  12. package/dist/{chunk-MO2FASX4.js → chunk-5FQ2BNG2.js} +1 -1
  13. package/dist/{chunk-UCZGXYCN.js → chunk-6YLULKQM.js} +10 -10
  14. package/dist/{chunk-6UFXPKLA.js → chunk-BVEWY2ZL.js} +99 -39
  15. package/dist/{chunk-MRU7GX2V.js → chunk-C3KL5SGM.js} +21 -8
  16. package/dist/{chunk-WOGCRDFT.js → chunk-CCTZIHWN.js} +1 -1
  17. package/dist/{chunk-G75JVB4D.js → chunk-DDA7G23P.js} +3 -3
  18. package/dist/{chunk-USVER53M.js → chunk-DP4YWFMY.js} +7 -0
  19. package/dist/{chunk-W33PYWYQ.js → chunk-JNBNL7FE.js} +2 -2
  20. package/dist/{chunk-AXQYGVOP.js → chunk-LPURBE7D.js} +1 -1
  21. package/dist/{chunk-GB26FIZT.js → chunk-MNL5NSC4.js} +8 -8
  22. package/dist/{chunk-JUQ2GNMD.js → chunk-PNCLJOUD.js} +2 -2
  23. package/dist/{chunk-NXWPYO6U.js → chunk-V4FGPIR3.js} +47 -16
  24. package/dist/{chunk-VT7355QN.js → chunk-VP63H7IE.js} +2 -2
  25. package/dist/{chunk-ENBQ6UEE.js → chunk-W2HGXOZ5.js} +3 -3
  26. package/dist/{chunk-E7MVYASS.js → chunk-W7PDXGYB.js} +1 -1
  27. package/dist/{chunk-PLELWE5L.js → chunk-ZLYVOLU2.js} +595 -147
  28. package/dist/{client-HG0uMG0Q.d.ts → client-D4WMWeWC.d.ts} +123 -58
  29. package/dist/{deployments-BFl_dOgc.d.ts → deployments-r5RxhZ9x.d.ts} +110 -110
  30. package/dist/{groups-CfyRewkJ.d.ts → groups-BNUhmxYY.d.ts} +26 -3
  31. package/dist/{images-DwNmzqWv.d.ts → images-PPPTL2Ct.d.ts} +2 -2
  32. package/dist/index.d.ts +13 -13
  33. package/dist/index.js +12 -10
  34. package/dist/{integrations-BMNtARU_.d.ts → integrations-CllF-kWg.d.ts} +1 -1
  35. package/dist/internal.d.ts +10 -10
  36. package/dist/internal.js +9 -9
  37. package/dist/{offers-CEwkAGsB.d.ts → offers-CdB5jnRl.d.ts} +3 -3
  38. package/dist/{pages-D1xrbGJl.d.ts → pages-BUmWkUu2.d.ts} +17 -3
  39. package/dist/{participant-activity-DYdUUhw2.d.ts → participant-activity-BPZiW7m7.d.ts} +1 -1
  40. package/dist/{participant-rewards-3duLb8YJ.d.ts → participant-rewards-BcWkBRn_.d.ts} +1 -1
  41. package/dist/portal-proxy.js +4 -4
  42. package/dist/{profiles-D29SS12z.d.ts → profiles-BHuQdzsW.d.ts} +1 -1
  43. package/dist/react/index.d.ts +13 -13
  44. package/dist/react/index.js +16 -15
  45. package/dist/{schema-D57mhL2q.d.ts → schema-lmOnv5C5.d.ts} +164 -2
  46. package/dist/schema.d.ts +380 -381
  47. package/dist/schema.js +22 -8
  48. package/dist/server/index.d.ts +10 -10
  49. package/dist/server/index.js +978 -723
  50. package/dist/{streaks-CWyq8Px5.d.ts → streaks-0YuipsUQ.d.ts} +1 -1
  51. package/dist/{submission-input-DjXg0o-r.d.ts → submission-input-DdvTz7ac.d.ts} +3 -3
  52. package/dist/{telegram-browser-DaP0Rawg.d.ts → telegram-browser-SK3KxXBL.d.ts} +13 -5
  53. package/dist/testing.d.ts +8 -8
  54. package/dist/testing.js +15 -15
  55. package/dist/{transport-M8ouWh7j.d.ts → transport-BNdKQ_m4.d.ts} +6150 -3299
  56. package/dist/{wallet-CDyo-U4n.d.ts → wallet-t7uNDg9p.d.ts} +1 -1
  57. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
 
3
3
  declare const quizChoiceSchema: z.ZodObject<{
4
4
  id: z.ZodString;
@@ -1,6 +1,6 @@
1
- import { z } from 'zod';
2
- import { L as LedgerReference, r as QuestHandle } from './schema-D57mhL2q.js';
3
- import { p as ProjectGroupReference } from './groups-CfyRewkJ.js';
1
+ import * as z from 'zod';
2
+ import { L as LedgerReference, r as QuestHandle } from './schema-lmOnv5C5.js';
3
+ import { p as ProjectGroupReference } from './groups-BNUhmxYY.js';
4
4
 
5
5
  declare const completionPrerequisiteSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
6
6
  kind: z.ZodLiteral<"completion">;
@@ -1,6 +1,7 @@
1
- import { a as AuthProvider, b as TelegramSignInMethods } from './accounts-B31dWEYD.js';
2
- import { o as createRelayClient, k as RelayRequestOptions, g as RelayError } from './client-HG0uMG0Q.js';
3
- import { C as CosmosChain, a as CosmosNetwork, f as WalletSigner, d as WalletSignInNetwork } from './wallet-CDyo-U4n.js';
1
+ import { a as AuthProvider, b as TelegramSignInMethods } from './accounts-DRPENuZe.js';
2
+ import { p as createRelayClient, k as RelayRequestOptions, g as RelayError } from './client-D4WMWeWC.js';
3
+ import { b as ParticipantSession } from './participant-activity-BPZiW7m7.js';
4
+ import { C as CosmosChain, a as CosmosNetwork, f as WalletSigner, d as WalletSignInNetwork } from './wallet-t7uNDg9p.js';
4
5
 
5
6
  /** An EIP-1193 provider, such as `window.ethereum` or an EIP-6963 announcement's provider. */
6
7
  type Eip1193Provider = {
@@ -103,9 +104,16 @@ type SignInWallet = DiscoveredWallet & {
103
104
  declare function discoverSignInWallets(families: readonly WalletSignInNetwork[], cosmos?: CosmosChains): Promise<SignInWallet[]>;
104
105
 
105
106
  type Auth = ReturnType<typeof createRelayClient>["auth"];
106
- /** The part of a Relay client sign-in options use. */
107
+ /**
108
+ * The part of a Relay client sign-in options use. `start` and `emailVerify` keep the positional
109
+ * forms a 1.x implementation of this type provides; a Relay client fits either way.
110
+ */
107
111
  type SignInClient = {
108
- auth: Pick<Auth, "providers" | "start" | "emailStart" | "emailVerify"> & {
112
+ auth: Pick<Auth, "providers" | "emailStart"> & {
113
+ start: (provider: AuthProvider, mode: "sign-in" | "connect", requestOptions?: RelayRequestOptions) => Promise<{
114
+ url: string;
115
+ }>;
116
+ emailVerify: (challenge: string, code: string, requestOptions?: RelayRequestOptions) => Promise<ParticipantSession>;
109
117
  wallet: Pick<Auth["wallet"], "signIn">;
110
118
  /** Telegram Login; without it, `signInOptions()` offers no Telegram option. */
111
119
  telegram?: {
package/dist/testing.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { bB as memberIdentitySchema, cM as trackerQuerySchema, cI as trackerPageSchema, cV as trackerSummarySchema, aH as TrackerContentQuery, cu as trackerContentSchema, bG as photoResultSchema, Z as TextReviewInput, R as Reward, $ as Decision, aD as TrackerAttribution, y as Tracker, z as TrackerData, a4 as ContentBody, V as TrackerTriggerContext, aa as TrackerPage } from './schema-D57mhL2q.js';
2
- import { z } from 'zod';
3
- import { t as discordMemberSchema, w as discordMessageSchema, G as telegramChatMemberSchema } from './accounts-B31dWEYD.js';
4
- import { b as CapabilityFailure, x as xConnectionSchema, j as xProfileSchema, i as xPostSchema } from './capability-error-oTd3eYFH.js';
5
- export { C as CapabilityError } from './capability-error-oTd3eYFH.js';
6
- import { f as ImageReference, n as imageInspectionSchema, j as imageComparisonSchema, q as imageSightingsSchema } from './images-DwNmzqWv.js';
7
- import { u as linkedWalletSchema, z as walletBalanceSchema } from './wallet-CDyo-U4n.js';
8
- export { A as AttemptCapture, C as CapturedFact } from './attempt-captures-JDIgz2lY.js';
1
+ import { bG as memberIdentitySchema, cU as trackerQuerySchema, cQ as trackerPageSchema, d1 as trackerSummarySchema, aM as TrackerContentQuery, cC as trackerContentSchema, bL as photoResultSchema, Z as TextReviewInput, R as Reward, $ as Decision, aI as TrackerAttribution, y as Tracker, z as TrackerData, a4 as ContentBody, V as TrackerTriggerContext, aa as TrackerPage } from './schema-lmOnv5C5.js';
2
+ import * as z from 'zod';
3
+ import { t as discordMemberSchema, w as discordMessageSchema, G as telegramChatMemberSchema } from './accounts-DRPENuZe.js';
4
+ import { b as CapabilityFailure, x as xConnectionSchema, j as xProfileSchema, i as xPostSchema } from './capability-error-CvSZaif2.js';
5
+ export { C as CapabilityError } from './capability-error-CvSZaif2.js';
6
+ import { f as ImageReference, n as imageInspectionSchema, j as imageComparisonSchema, q as imageSightingsSchema } from './images-PPPTL2Ct.js';
7
+ import { u as linkedWalletSchema, z as walletBalanceSchema } from './wallet-t7uNDg9p.js';
8
+ export { A as AttemptCapture, C as CapturedFact } from './attempt-captures-BPMbTDYG.js';
9
9
 
10
10
  /** One project time-zone change: from `effectiveAt` on, days are counted in `timeZone`. */
11
11
  type CalendarSegment = {
package/dist/testing.js CHANGED
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  attemptCaptureSchema
3
- } from "./chunk-G75JVB4D.js";
3
+ } from "./chunk-DDA7G23P.js";
4
4
  import {
5
5
  CapabilityError
6
- } from "./chunk-MC6V6VMG.js";
6
+ } from "./chunk-4OC7REYX.js";
7
7
  import {
8
8
  parseImageResult
9
- } from "./chunk-ENBQ6UEE.js";
9
+ } from "./chunk-W2HGXOZ5.js";
10
10
  import {
11
11
  imageRequestSchema,
12
12
  xConnectionSchema,
13
13
  xPostSchema,
14
14
  xProfileSchema,
15
15
  xRequestSchema
16
- } from "./chunk-B4EZ76WX.js";
16
+ } from "./chunk-22QERRAG.js";
17
17
  import {
18
18
  telegramChatMemberSchema,
19
19
  telegramMemberInputSchema
20
- } from "./chunk-W33PYWYQ.js";
20
+ } from "./chunk-JNBNL7FE.js";
21
21
  import {
22
22
  contentPerformanceSnapshotSchema,
23
23
  cosmosNetworkSchema,
@@ -46,10 +46,10 @@ import {
46
46
  urlEvidenceSchema,
47
47
  validateSubmissionValue,
48
48
  walletBalanceSchema
49
- } from "./chunk-6UFXPKLA.js";
49
+ } from "./chunk-BVEWY2ZL.js";
50
50
 
51
51
  // src/testing/run.ts
52
- import { z as z3 } from "zod";
52
+ import * as z3 from "zod";
53
53
 
54
54
  // src/testing/calendar.ts
55
55
  var dayMilliseconds = 24 * 60 * 60 * 1e3;
@@ -135,7 +135,7 @@ function evaluationCalendar(snapshot, eligibleAt) {
135
135
  }
136
136
 
137
137
  // src/testing/capabilities.ts
138
- import { z } from "zod";
138
+ import * as z from "zod";
139
139
  var trackerInput = {
140
140
  reference: identifier,
141
141
  query: trackerQuerySchema,
@@ -476,21 +476,21 @@ function install(now, seed, restores) {
476
476
  const crypto = globalThis.crypto;
477
477
  if (crypto) {
478
478
  restores.push(
479
- replace(crypto, "getRandomValues", (array) => {
480
- if (!integerArrays.some((type) => array instanceof type)) {
479
+ replace(crypto, "getRandomValues", (array2) => {
480
+ if (!integerArrays.some((type) => array2 instanceof type)) {
481
481
  throw new DOMException(
482
482
  "getRandomValues takes an integer typed array",
483
483
  "TypeMismatchError"
484
484
  );
485
485
  }
486
- if (array.byteLength > 65536) {
486
+ if (array2.byteLength > 65536) {
487
487
  throw new DOMException(
488
488
  "getRandomValues takes at most 65536 bytes",
489
489
  "QuotaExceededError"
490
490
  );
491
491
  }
492
- fill(new Uint8Array(array.buffer, array.byteOffset, array.byteLength));
493
- return array;
492
+ fill(new Uint8Array(array2.buffer, array2.byteOffset, array2.byteLength));
493
+ return array2;
494
494
  })
495
495
  );
496
496
  restores.push(
@@ -509,7 +509,7 @@ function install(now, seed, restores) {
509
509
  }
510
510
 
511
511
  // src/testing/facts.ts
512
- import { z as z2 } from "zod";
512
+ import * as z2 from "zod";
513
513
  var TestSetupError = class extends Error {
514
514
  constructor(message) {
515
515
  super(message);
@@ -1184,7 +1184,7 @@ function trackerPage(tracker, records, options = {}) {
1184
1184
  }
1185
1185
 
1186
1186
  // src/testing/replay.ts
1187
- import { z as z4 } from "zod";
1187
+ import * as z4 from "zod";
1188
1188
  var ReplayStopped = class extends Error {
1189
1189
  constructor(divergence) {
1190
1190
  super(