@domino-sdk/relay 1.11.1 → 1.14.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 (50) hide show
  1. package/README.md +1 -0
  2. package/build.mjs +15 -0
  3. package/dist/accounts-5ciAkCMP.d.ts +147 -0
  4. package/dist/{activity-CNiPDPK6.d.ts → activity-D_R3J-gU.d.ts} +115 -115
  5. package/dist/attempt-captures-DZldPZJc.d.ts +285 -0
  6. package/dist/authoring.d.ts +49 -47
  7. package/dist/authoring.js +6 -4
  8. package/dist/{automatic-outcomes-kPIDv6X_.d.ts → automatic-outcomes-6lJGnSDe.d.ts} +1 -1
  9. package/dist/browser.d.ts +8 -7
  10. package/dist/browser.js +7 -6
  11. package/dist/capability-error-oTd3eYFH.d.ts +151 -0
  12. package/dist/chunk-2UAVZCMH.js +314 -0
  13. package/dist/chunk-5TS3OAWS.js +470 -0
  14. package/dist/{chunk-PUDL4JBY.js → chunk-6DD7DVNQ.js} +2 -2
  15. package/dist/{chunk-AGFUDCNM.js → chunk-C3CB4WIQ.js} +1 -1
  16. package/dist/{chunk-T657WO56.js → chunk-LLMJ2SUT.js} +6 -2
  17. package/dist/chunk-NIYCAW2I.js +79 -0
  18. package/dist/chunk-UJACD6K2.js +987 -0
  19. package/dist/{chunk-XK5E4HAS.js → chunk-VBHFJH3P.js} +80 -28
  20. package/dist/chunk-W335CWYJ.js +53 -0
  21. package/dist/{chunk-X7ECZ3AK.js → chunk-XMBM2XD5.js} +1 -1
  22. package/dist/{chunk-2K2QBPAD.js → chunk-ZLYBUM7K.js} +6 -4
  23. package/dist/{client-fUSERMAC.d.ts → client-BTd_CyX3.d.ts} +26 -6
  24. package/dist/{groups-BK8ts2yK.d.ts → groups-4Jb3uYFO.d.ts} +1 -1
  25. package/dist/{images-aw6W7vFZ.d.ts → images-D5kpqHxv.d.ts} +1 -1
  26. package/dist/index.d.ts +9 -8
  27. package/dist/index.js +8 -6
  28. package/dist/{capability-error-ty3SqD_b.d.ts → integrations-Cr9EhGI_.d.ts} +1 -149
  29. package/dist/internal.d.ts +32 -5
  30. package/dist/internal.js +8 -3
  31. package/dist/{offers-C2FANzrG.d.ts → offers-BFI5t-e-.d.ts} +2 -2
  32. package/dist/{pages-Chb6OZSB.d.ts → pages-nIoMT9J3.d.ts} +1 -1
  33. package/dist/{participant-activity-DkL3nY5a.d.ts → participant-activity-DYdUUhw2.d.ts} +1 -0
  34. package/dist/portal-proxy.js +1 -1
  35. package/dist/react/index.d.ts +246 -177
  36. package/dist/react/index.js +954 -383
  37. package/dist/{referral-reward-kinds-M3f0PdiR.d.ts → referral-reward-kinds-DnvQXL8L.d.ts} +100 -3
  38. package/dist/{schema-DEM8y8Fm.d.ts → schema-K-Pg5lPz.d.ts} +1 -1
  39. package/dist/schema.d.ts +316 -314
  40. package/dist/schema.js +16 -14
  41. package/dist/server/index.d.ts +2546 -377
  42. package/dist/server/index.js +594 -841
  43. package/dist/{sign-in-options-iWOp9puZ.d.ts → sign-in-options-DBjMzgnu.d.ts} +2 -2
  44. package/dist/submission-input-CPIsJt-_.d.ts +146 -0
  45. package/dist/testing.d.ts +641 -0
  46. package/dist/testing.js +1282 -0
  47. package/package.json +6 -2
  48. package/dist/chunk-OCXGG75K.js +0 -171
  49. package/dist/chunk-ZFABFKIY.js +0 -1295
  50. package/dist/submission-input-BbBJTVlT.d.ts +0 -290
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createRelayAction,
3
3
  withActionId
4
- } from "./chunk-X7ECZ3AK.js";
4
+ } from "./chunk-XMBM2XD5.js";
5
5
  import {
6
6
  collectionPassSchema,
7
7
  participantActivityQuerySchema,
@@ -16,25 +16,19 @@ import {
16
16
  questOutcomeQuerySchema,
17
17
  questOutcomeSchema,
18
18
  rewardDeliveriesSchema
19
- } from "./chunk-T657WO56.js";
19
+ } from "./chunk-LLMJ2SUT.js";
20
20
  import {
21
21
  AVATAR_UPLOAD_LIMIT,
22
- RelayError,
23
- RelayErrorCode,
24
22
  avatarUploadTypes,
25
- clientError,
26
23
  engagementBoundaryPageSchema,
27
24
  engagementPageQuerySchema,
28
25
  engagementPageSchema,
29
- isRelayError,
30
26
  leaderboardDefinitionResponseSchema,
31
27
  leaderboardPageSchema,
32
28
  leaderboardPlacementSchema,
33
29
  leaderboardQuerySchema,
34
- linkedWalletSchema,
35
30
  offerSchema,
36
31
  ownProfileSchema,
37
- parseInput,
38
32
  pointBalancesSchema,
39
33
  pointHistoryPageSchema,
40
34
  pointHistoryQuerySchema,
@@ -48,14 +42,22 @@ import {
48
42
  referralAcceptSchema,
49
43
  referralDefinitionSchema,
50
44
  referralHistorySchema,
51
- referralSummarySchema,
45
+ referralSummarySchema
46
+ } from "./chunk-UJACD6K2.js";
47
+ import {
48
+ RelayError,
49
+ RelayErrorCode,
50
+ clientError,
51
+ isRelayError,
52
+ linkedWalletSchema,
53
+ parseInput,
52
54
  walletAddressInput,
53
55
  walletAddressInputSchema,
54
56
  walletMessageChallengeSchema,
55
57
  walletSignInNetworksSchema,
56
58
  walletSignatureSchema,
57
59
  walletUnlinkInputSchema
58
- } from "./chunk-ZFABFKIY.js";
60
+ } from "./chunk-2UAVZCMH.js";
59
61
  import {
60
62
  PARTICIPANT_TIMEOUT,
61
63
  lifetime,
@@ -63,9 +65,12 @@ import {
63
65
  retrying,
64
66
  validTimeout
65
67
  } from "./chunk-6QJ3LADK.js";
68
+ import {
69
+ isRequestError
70
+ } from "./chunk-NPGENI7K.js";
66
71
  import {
67
72
  clientIdentity
68
- } from "./chunk-AGFUDCNM.js";
73
+ } from "./chunk-C3CB4WIQ.js";
69
74
  import {
70
75
  exchangeResultSchema,
71
76
  exchangeSchema,
@@ -488,13 +493,18 @@ var QuestUpdatedError = class extends RelayError {
488
493
  import { z as z2 } from "zod";
489
494
 
490
495
  // src/progress.ts
496
+ function sessionEnded(error) {
497
+ return isRequestError(error) && (error.code === RelayErrorCode.StaleSession || error.code === RelayErrorCode.NotSignedIn);
498
+ }
491
499
  function observeProgress(transport, listener, options = {}, onDispose = () => {
492
500
  }) {
493
501
  const interval = options.intervalMs ?? 1500;
494
502
  const maximum = options.maxBackoffMs ?? 3e4;
495
- if (!Number.isFinite(interval) || interval <= 0 || !Number.isFinite(maximum) || maximum < interval) {
503
+ const bound = options.bound ?? false;
504
+ const retry = options.retryMs ?? interval * 2;
505
+ if (!Number.isFinite(interval) || interval <= 0 || !Number.isFinite(maximum) || !Number.isFinite(retry) || retry <= 0 || maximum < interval) {
496
506
  throw clientError(
497
- "Progress polling requires a positive interval and a maximum at least as large",
507
+ "Progress polling requires a positive interval and retry wait, and a maximum at least as large as the interval",
498
508
  RelayErrorCode.InvalidInput
499
509
  );
500
510
  }
@@ -502,16 +512,23 @@ function observeProgress(transport, listener, options = {}, onDispose = () => {
502
512
  let controller;
503
513
  let timer;
504
514
  let sessionId;
515
+ let reusable;
516
+ let reread = false;
505
517
  let failures = 0;
518
+ let settledAt = 0;
519
+ let delay = interval;
506
520
  const visible = () => typeof document === "undefined" || document.visibilityState !== "hidden";
507
521
  const visibility = () => {
522
+ if (timer !== void 0) {
523
+ clearTimeout(timer);
524
+ }
508
525
  if (visible()) {
509
- void refresh();
526
+ timer = setTimeout(
527
+ () => void refresh(),
528
+ Math.max(0, settledAt + delay - Date.now())
529
+ );
510
530
  } else {
511
531
  controller?.abort();
512
- if (timer !== void 0) {
513
- clearTimeout(timer);
514
- }
515
532
  }
516
533
  };
517
534
  if (typeof document !== "undefined") {
@@ -523,6 +540,8 @@ function observeProgress(transport, listener, options = {}, onDispose = () => {
523
540
  clearTimeout(timer);
524
541
  }
525
542
  sessionId = void 0;
543
+ reusable = void 0;
544
+ settledAt = 0;
526
545
  if (!disposed) {
527
546
  listener({ kind: "loading" });
528
547
  }
@@ -538,8 +557,9 @@ function observeProgress(transport, listener, options = {}, onDispose = () => {
538
557
  const request = new AbortController();
539
558
  controller = request;
540
559
  const current = () => !disposed && !request.signal.aborted;
560
+ let readSessionNow = false;
541
561
  try {
542
- const session = await transport.session(request.signal);
562
+ const session = (bound ? reusable : void 0) ?? await transport.session(request.signal);
543
563
  if (!current()) {
544
564
  return;
545
565
  }
@@ -549,44 +569,69 @@ function observeProgress(transport, listener, options = {}, onDispose = () => {
549
569
  }
550
570
  const member = sessionMember(session);
551
571
  if (session && member) {
552
- const progress = await transport.progress(session.id, request.signal);
572
+ let progress;
573
+ try {
574
+ progress = await transport.progress(session.id, request.signal);
575
+ } catch (error) {
576
+ if (bound && !reread && sessionEnded(error) && current()) {
577
+ sessionId = void 0;
578
+ reusable = void 0;
579
+ reread = true;
580
+ readSessionNow = true;
581
+ listener({ kind: "loading" });
582
+ return;
583
+ }
584
+ throw error;
585
+ }
553
586
  if (!current()) {
554
587
  return;
555
588
  }
556
- const confirmed = await transport.session(request.signal);
589
+ const confirmed = bound ? session : await transport.session(request.signal);
557
590
  if (!current()) {
558
591
  return;
559
592
  }
560
593
  if (confirmed?.id !== session.id || progress.member !== member) {
561
594
  sessionId = void 0;
595
+ reusable = void 0;
562
596
  listener({ kind: "loading" });
563
597
  return;
564
598
  }
599
+ reusable = bound ? confirmed : void 0;
565
600
  listener({ kind: "ready", session: confirmed, progress });
601
+ } else {
602
+ reusable = void 0;
566
603
  }
567
604
  failures = 0;
605
+ reread = false;
568
606
  } catch (error) {
569
607
  if (!current()) {
570
608
  return;
571
609
  }
572
610
  failures = Math.min(failures + 1, 20);
573
611
  sessionId = void 0;
612
+ reusable = void 0;
613
+ reread = false;
574
614
  listener({
575
615
  kind: "error",
576
616
  error: error instanceof Error ? error : new Error("Could not refresh progress")
577
617
  });
578
618
  } finally {
579
619
  if (current()) {
580
- timer = setTimeout(
581
- () => void refresh(),
582
- Math.min(maximum, interval * 2 ** failures)
583
- );
620
+ settledAt = Date.now();
621
+ delay = readSessionNow ? 0 : failures === 0 ? interval : Math.min(maximum, retry * 2 ** (failures - 1));
622
+ timer = setTimeout(() => void refresh(), delay);
584
623
  }
585
624
  }
586
625
  }
587
626
  const observer = {
588
627
  refresh,
589
628
  clear,
629
+ /** A bound observer's next poll uses `session`, already read, instead of reading it. */
630
+ reuse(session) {
631
+ if (bound && sessionMember(session)) {
632
+ reusable = session;
633
+ }
634
+ },
590
635
  dispose() {
591
636
  if (disposed) {
592
637
  return;
@@ -1366,7 +1411,7 @@ function relayClient(options) {
1366
1411
  })
1367
1412
  },
1368
1413
  listener,
1369
- observeOptions,
1414
+ { ...observeOptions, bound: true },
1370
1415
  () => observers.delete(observer)
1371
1416
  );
1372
1417
  observers.add(observer);
@@ -1584,7 +1629,10 @@ function relayClient(options) {
1584
1629
  {
1585
1630
  session: (signal) => readSession({ signal }),
1586
1631
  progress: (session, signal) => request(
1587
- withQuery("/v1/me/activity", { cursor }),
1632
+ withQuery(
1633
+ "/v1/me/activity",
1634
+ cursor === void 0 && options2.start ? { start: options2.start } : { cursor }
1635
+ ),
1588
1636
  participantActivitySchema,
1589
1637
  { options: { session, signal } }
1590
1638
  )
@@ -1609,12 +1657,16 @@ function relayClient(options) {
1609
1657
  },
1610
1658
  {
1611
1659
  intervalMs: options2.intervalMs ?? 5e3,
1612
- maxBackoffMs: options2.maxBackoffMs
1660
+ maxBackoffMs: options2.maxBackoffMs,
1661
+ bound: true
1613
1662
  },
1614
1663
  () => observers.delete(observer)
1615
1664
  );
1616
1665
  observers.add(observer);
1617
1666
  observer.clear();
1667
+ if (options2.session) {
1668
+ observer.reuse(options2.session);
1669
+ }
1618
1670
  void observer.refresh();
1619
1671
  return { refresh: observer.refresh, dispose: observer.dispose };
1620
1672
  }
@@ -1630,7 +1682,7 @@ function relayClient(options) {
1630
1682
  })
1631
1683
  },
1632
1684
  listener,
1633
- observeOptions,
1685
+ { ...observeOptions, bound: true },
1634
1686
  () => observers.delete(observer)
1635
1687
  );
1636
1688
  observers.add(observer);
@@ -0,0 +1,53 @@
1
+ import {
2
+ imageComparisonSchema,
3
+ imageExtractionSchema,
4
+ imageFieldsSchema,
5
+ imageInspectionSchema,
6
+ imageSightingsSchema
7
+ } from "./chunk-ZGH6NEG6.js";
8
+ import {
9
+ photoResultSchema
10
+ } from "./chunk-46C33ASD.js";
11
+
12
+ // src/image-results.ts
13
+ import { z } from "zod";
14
+ var invalid = (message, path) => new z.ZodError([{ code: "custom", message, path, input: void 0 }]);
15
+ function parseImageExtraction(raw, value) {
16
+ const result = imageExtractionSchema.parse(value);
17
+ const fields = imageFieldsSchema.parse(raw);
18
+ for (const [key, field] of Object.entries(fields)) {
19
+ const extracted = result.values[key];
20
+ if (extracted === void 0) {
21
+ throw invalid("Image extraction omitted " + key, ["values", key]);
22
+ }
23
+ if (extracted !== null && typeof extracted !== field.type) {
24
+ throw invalid("Image extraction returned the wrong type for " + key, [
25
+ "values",
26
+ key
27
+ ]);
28
+ }
29
+ }
30
+ if (Object.keys(result.values).some((key) => !Object.hasOwn(fields, key))) {
31
+ throw invalid("Image extraction returned an undeclared field", ["values"]);
32
+ }
33
+ return result;
34
+ }
35
+ function parseImageResult(request, value) {
36
+ switch (request.operation) {
37
+ case "inspect":
38
+ return imageInspectionSchema.parse(value);
39
+ case "compare":
40
+ return imageComparisonSchema.parse(value);
41
+ case "review":
42
+ return photoResultSchema.parse(value);
43
+ case "extract":
44
+ return parseImageExtraction(request.fields, value);
45
+ case "seen":
46
+ return imageSightingsSchema.parse(value);
47
+ }
48
+ }
49
+
50
+ export {
51
+ parseImageExtraction,
52
+ parseImageResult
53
+ };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  RelayErrorCode,
3
3
  clientError
4
- } from "./chunk-ZFABFKIY.js";
4
+ } from "./chunk-2UAVZCMH.js";
5
5
  import {
6
6
  isRequestError
7
7
  } from "./chunk-NPGENI7K.js";
@@ -24,7 +24,7 @@ import {
24
24
  questTypeVersionSchema,
25
25
  questViewSchema,
26
26
  rewardDeliveriesSchema
27
- } from "./chunk-T657WO56.js";
27
+ } from "./chunk-LLMJ2SUT.js";
28
28
  import {
29
29
  engagementArtifactSchema,
30
30
  engagementBoundaryPageSchema,
@@ -35,7 +35,6 @@ import {
35
35
  leaderboardPageSchema,
36
36
  leaderboardPlacementSchema,
37
37
  leaderboardPreviewSchema,
38
- linkedWalletSchema,
39
38
  offerArtifactSchema,
40
39
  offerDefinitionSchema,
41
40
  offerSchema,
@@ -53,11 +52,14 @@ import {
53
52
  referralArtifactSchema,
54
53
  referralDefinitionSchema,
55
54
  referralHistorySchema,
56
- referralSummarySchema,
55
+ referralSummarySchema
56
+ } from "./chunk-UJACD6K2.js";
57
+ import {
58
+ linkedWalletSchema,
57
59
  walletBalanceSchema,
58
60
  walletMessageChallengeSchema,
59
61
  walletSignInNetworksSchema
60
- } from "./chunk-ZFABFKIY.js";
62
+ } from "./chunk-2UAVZCMH.js";
61
63
  import {
62
64
  exchangeResultSchema,
63
65
  memberSummarySchema,
@@ -1,11 +1,12 @@
1
- import { aZ as referralAcceptSchema, g as LeaderboardQuery, b as CampaignEnrollmentInput, d as CampaignWithdrawalInput, m as PointHistoryQuery, k as PointEntryKind, a6 as engagementPageQuerySchema } from './groups-BK8ts2yK.js';
2
- import { j as QuestView, k as ResponseSchema, a as PageQuery, c as QuestEnrollmentInput, Q as QuestClaimInput, g as QuestOutcomeQuery, _ as questExperienceSchema, l as RewardDeliveryAction, F as contentQualificationQuerySchema } from './pages-Chb6OZSB.js';
3
- import { M as MissingPrerequisite, V as ValueEvidence, a as AuthProvider } from './submission-input-BbBJTVlT.js';
1
+ import { aZ as referralAcceptSchema, g as LeaderboardQuery, b as CampaignEnrollmentInput, d as CampaignWithdrawalInput, m as PointHistoryQuery, k as PointEntryKind, a6 as engagementPageQuerySchema } from './groups-4Jb3uYFO.js';
2
+ import { j as QuestView, k as ResponseSchema, a as PageQuery, c as QuestEnrollmentInput, Q as QuestClaimInput, g as QuestOutcomeQuery, _ as questExperienceSchema, l as RewardDeliveryAction, F as contentQualificationQuerySchema } from './pages-nIoMT9J3.js';
3
+ import { M as MissingPrerequisite, V as ValueEvidence } from './submission-input-CPIsJt-_.js';
4
4
  import { R as RequestError, a as RequestErrorDetails, b as RequestErrorKind } from './request-error-D_dUPLwo.js';
5
- import { f as QuizEvidence, A as Attempt, M as MemberProgress, a as AttemptStatus, h as TrackerSkipCode, c6 as submitSchema, b8 as contentPerformanceQuerySchema } from './schema-DEM8y8Fm.js';
6
- import { b as ParticipantSession, d as exchangeSchema, R as RelayEvent, P as ParticipantActivity } from './participant-activity-DkL3nY5a.js';
5
+ import { f as QuizEvidence, A as Attempt, M as MemberProgress, a as AttemptStatus, h as TrackerSkipCode, c6 as submitSchema, b8 as contentPerformanceQuerySchema } from './schema-K-Pg5lPz.js';
6
+ import { b as ParticipantSession, d as exchangeSchema, R as RelayEvent, P as ParticipantActivity } from './participant-activity-DYdUUhw2.js';
7
7
  import { z } from 'zod';
8
8
  import { c as createRelayAction, O as OptionalActionId } from './action-9Xl0StBg.js';
9
+ import { a as AuthProvider } from './accounts-5ciAkCMP.js';
9
10
  import { F as profileUpdateSchema, c as ProfileCompletionQuery } from './profiles-BHMVj0kM.js';
10
11
  import { y as walletAddressInputSchema, I as walletSignatureSchema, L as LinkedWallet, f as WalletSigner } from './wallet-CDyo-U4n.js';
11
12
 
@@ -3174,6 +3175,8 @@ declare function relayClient(options: RelayClientOptions): {
3174
3175
  observe: (listener: (value: ProgressObservation<z.infer<typeof questExperienceSchema>>) => void, observeOptions?: {
3175
3176
  intervalMs?: number;
3176
3177
  maxBackoffMs?: number;
3178
+ /** The wait after a first failure, doubling up to `maxBackoffMs`. */
3179
+ retryMs?: number;
3177
3180
  }) => ProgressObserver;
3178
3181
  };
3179
3182
  campaigns: {
@@ -3392,6 +3395,7 @@ declare function relayClient(options: RelayClientOptions): {
3392
3395
  activity: {
3393
3396
  list: (query?: {
3394
3397
  cursor?: string;
3398
+ start?: "latest";
3395
3399
  limit?: number;
3396
3400
  }, options?: RelayRequestOptions) => Promise<{
3397
3401
  member: string;
@@ -3460,6 +3464,14 @@ declare function relayClient(options: RelayClientOptions): {
3460
3464
  }>;
3461
3465
  observe: (listener: (event: RelayEvent) => void, options?: {
3462
3466
  cursor?: string;
3467
+ /**
3468
+ * Where to begin without a `cursor`, including after the session changes (the cursor
3469
+ * resets then): from the first event (the default), or `latest` to receive only events
3470
+ * that happen from now on.
3471
+ */
3472
+ start?: "latest";
3473
+ /** The member's session, already read: the first poll reads the feed straight away. */
3474
+ session?: ParticipantSession;
3463
3475
  intervalMs?: number;
3464
3476
  maxBackoffMs?: number;
3465
3477
  onState?: (state: ProgressObservation<ParticipantActivity>) => void;
@@ -3473,6 +3485,8 @@ declare function relayClient(options: RelayClientOptions): {
3473
3485
  observeProgress: (listener: (value: ProgressObservation) => void, observeOptions?: {
3474
3486
  intervalMs?: number;
3475
3487
  maxBackoffMs?: number;
3488
+ /** The wait after a first failure, doubling up to `maxBackoffMs`. */
3489
+ retryMs?: number;
3476
3490
  }) => ProgressObserver;
3477
3491
  submission: {
3478
3492
  (quest: string, options?: {
@@ -3483,7 +3497,13 @@ declare function relayClient(options: RelayClientOptions): {
3483
3497
  }): Promise<PhotoSubmission>;
3484
3498
  (quest: string, options: {
3485
3499
  input: "quiz";
3486
- release?: string;
3500
+ release
3501
+ /**
3502
+ * Options every participant client method takes as its last argument.
3503
+ *
3504
+ * @compat input
3505
+ */
3506
+ ?: string;
3487
3507
  recoverPrevious?: boolean;
3488
3508
  repeatable?: boolean;
3489
3509
  }): Promise<QuizSubmission>;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { n as ResourceHandle, G as GroupHandle } from './schema-DEM8y8Fm.js';
2
+ import { i as ResourceHandle, G as GroupHandle } from './schema-K-Pg5lPz.js';
3
3
 
4
4
  declare const pointLedgerPropertiesSchema: z.ZodObject<{
5
5
  name: z.ZodString;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { P as PhotoResult } from './schema-DEM8y8Fm.js';
2
+ import { P as PhotoResult } from './schema-K-Pg5lPz.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
package/dist/index.d.ts CHANGED
@@ -1,14 +1,15 @@
1
1
  export { R as RelayAction, c as createRelayAction } from './action-9Xl0StBg.js';
2
- export { C as ClaimSubmission, K as KnownRelayErrorCode, P as PhotoSubmission, a as ProgressObservation, b as ProgressObserver, Q as QuestActionResult, c as QuestController, d as QuestUpdatedError, e as QuizSubmission, R as RelayClient, f as RelayClientOptions, g as RelayError, h as RelayErrorCode, i as RelayErrorDetails, j as RelayErrorKind, k as RelayRequestOptions, l as RelayResponseOptions, S as SubmissionDraft, m as SubmissionStatus, n as SubmissionStore, V as ValueSubmission, o as createRelayClient, p as isRelayError } from './client-fUSERMAC.js';
2
+ export { C as ClaimSubmission, K as KnownRelayErrorCode, P as PhotoSubmission, a as ProgressObservation, b as ProgressObserver, Q as QuestActionResult, c as QuestController, d as QuestUpdatedError, e as QuizSubmission, R as RelayClient, f as RelayClientOptions, g as RelayError, h as RelayErrorCode, i as RelayErrorDetails, j as RelayErrorKind, k as RelayRequestOptions, l as RelayResponseOptions, S as SubmissionDraft, m as SubmissionStatus, n as SubmissionStore, V as ValueSubmission, o as createRelayClient, p as isRelayError } from './client-BTd_CyX3.js';
3
3
  export { R as RequestError, a as RequestErrorDetails, b as RequestErrorKind, c as RequestRecovery, i as isRequestError } from './request-error-D_dUPLwo.js';
4
- export { A as Attempt, a as AttemptStatus, E as Entitlement, b as EvaluatorProgress, K as KnownAttemptStatus, c as KnownTrackerSkipCode, M as MemberProgress, Q as QuestBudgetView, d as QuestPresentation, e as QuestProfile, f as QuizEvidence, R as Reward, S as SubmissionEvidence, g as SubmitInput, T as TieredRewardReference, h as TrackerSkipCode } from './schema-DEM8y8Fm.js';
4
+ export { A as Attempt, a as AttemptStatus, E as Entitlement, b as EvaluatorProgress, K as KnownAttemptStatus, c as KnownTrackerSkipCode, M as MemberProgress, Q as QuestBudgetView, d as QuestPresentation, e as QuestProfile, f as QuizEvidence, R as Reward, S as SubmissionEvidence, g as SubmitInput, T as TieredRewardReference, h as TrackerSkipCode } from './schema-K-Pg5lPz.js';
5
5
  export { f as formatUnits, p as parseUnits } from './units-CwgsPB_r.js';
6
- export { A as AccountConnection, a as AuthProvider, M as MissingPrerequisite, P as Prerequisite, T as TextEvidence, b as TextOptions, U as UrlEvidence, c as UrlOptions, V as ValueEvidence } from './submission-input-BbBJTVlT.js';
7
- export { E as ExchangeInput, M as MemberSummary, P as ParticipantActivity, a as ParticipantPrincipal, b as ParticipantSession, R as RelayEvent, S as Session, s as sessionMember } from './participant-activity-DkL3nY5a.js';
8
- export { P as Page, a as PageQuery, Q as QuestClaimInput, b as QuestEnrollment, c as QuestEnrollmentInput, d as QuestInteraction, e as QuestOutcome, f as QuestOutcomePage, g as QuestOutcomeQuery, h as QuestOutcomeState, i as QuestRewardView, j as QuestView, R as ResponseResult, U as UnsupportedResponse } from './pages-Chb6OZSB.js';
9
- export { A as AvailabilityWindow, C as CampaignDefinition, a as CampaignEnrollment, b as CampaignEnrollmentInput, c as CampaignView, d as CampaignWithdrawalInput, K as KnownPointEntryKind, L as LeaderboardDefinition, e as LeaderboardPage, f as LeaderboardPlacement, g as LeaderboardQuery, M as MemberCampaignEnrollmentInput, h as MemberCampaignWithdrawalInput, P as PointBalance, i as PointBalances, j as PointEntry, k as PointEntryKind, l as PointHistoryPage, m as PointHistoryQuery, n as PointLedgerReference, o as ProjectGroup, p as ProjectGroupReference, R as ReferralDefinition } from './groups-BK8ts2yK.js';
10
- export { A as AutomaticCatchUpPreview, a as AutomaticEvent, b as AutomaticOutcome, C as CollectionPass, c as CounterAchievement, d as CounterPolicy, e as CounterProgress } from './automatic-outcomes-kPIDv6X_.js';
11
- export { O as Offer, a as OfferDefinition, b as OfferPrice, R as RedeemOfferInput, c as Redemption } from './offers-C2FANzrG.js';
6
+ export { A as AccountConnection, a as AuthProvider } from './accounts-5ciAkCMP.js';
7
+ export { E as ExchangeInput, M as MemberSummary, P as ParticipantActivity, a as ParticipantPrincipal, b as ParticipantSession, R as RelayEvent, S as Session, s as sessionMember } from './participant-activity-DYdUUhw2.js';
8
+ export { P as Page, a as PageQuery, Q as QuestClaimInput, b as QuestEnrollment, c as QuestEnrollmentInput, d as QuestInteraction, e as QuestOutcome, f as QuestOutcomePage, g as QuestOutcomeQuery, h as QuestOutcomeState, i as QuestRewardView, j as QuestView, R as ResponseResult, U as UnsupportedResponse } from './pages-nIoMT9J3.js';
9
+ export { A as AvailabilityWindow, C as CampaignDefinition, a as CampaignEnrollment, b as CampaignEnrollmentInput, c as CampaignView, d as CampaignWithdrawalInput, K as KnownPointEntryKind, L as LeaderboardDefinition, e as LeaderboardPage, f as LeaderboardPlacement, g as LeaderboardQuery, M as MemberCampaignEnrollmentInput, h as MemberCampaignWithdrawalInput, P as PointBalance, i as PointBalances, j as PointEntry, k as PointEntryKind, l as PointHistoryPage, m as PointHistoryQuery, n as PointLedgerReference, o as ProjectGroup, p as ProjectGroupReference, R as ReferralDefinition } from './groups-4Jb3uYFO.js';
10
+ export { A as AutomaticCatchUpPreview, a as AutomaticEvent, b as AutomaticOutcome, C as CollectionPass, c as CounterAchievement, d as CounterPolicy, e as CounterProgress } from './automatic-outcomes-6lJGnSDe.js';
11
+ export { O as Offer, a as OfferDefinition, b as OfferPrice, R as RedeemOfferInput, c as Redemption } from './offers-BFI5t-e-.js';
12
+ export { M as MissingPrerequisite, P as Prerequisite, T as TextEvidence, a as TextOptions, U as UrlEvidence, b as UrlOptions, V as ValueEvidence } from './submission-input-CPIsJt-_.js';
12
13
  export { A as AvatarProvider, O as OwnProfile, P as ProfileAvatar, a as ProfileCompletion, b as ProfileCompletionPage, c as ProfileCompletionQuery, d as ProfileReferral, e as ProfileSummary, f as ProfileUpdate, g as ProfileVisibility } from './profiles-BHMVj0kM.js';
13
14
  export { Q as QuizContent, S as StreakProgress } from './streaks-CWyq8Px5.js';
14
15
  export { C as CosmosChain, a as CosmosNetwork, L as LinkedWallet, W as WalletAddressInput, b as WalletChain, c as WalletMessageChallenge, d as WalletSignInNetwork, e as WalletSignature, f as WalletSigner, g as WalletUnlinkInput } from './wallet-CDyo-U4n.js';
package/dist/index.js CHANGED
@@ -5,25 +5,27 @@ import {
5
5
  import {
6
6
  QuestUpdatedError,
7
7
  createRelayClient
8
- } from "./chunk-XK5E4HAS.js";
8
+ } from "./chunk-VBHFJH3P.js";
9
9
  import {
10
10
  createRelayAction
11
- } from "./chunk-X7ECZ3AK.js";
11
+ } from "./chunk-XMBM2XD5.js";
12
12
  import {
13
13
  QuestOutcomeState
14
- } from "./chunk-T657WO56.js";
14
+ } from "./chunk-LLMJ2SUT.js";
15
+ import {
16
+ PointEntryKind
17
+ } from "./chunk-UJACD6K2.js";
15
18
  import {
16
- PointEntryKind,
17
19
  RelayError,
18
20
  RelayErrorCode,
19
21
  isRelayError
20
- } from "./chunk-ZFABFKIY.js";
22
+ } from "./chunk-2UAVZCMH.js";
21
23
  import "./chunk-6QJ3LADK.js";
22
24
  import {
23
25
  RequestError,
24
26
  isRequestError
25
27
  } from "./chunk-NPGENI7K.js";
26
- import "./chunk-AGFUDCNM.js";
28
+ import "./chunk-C3CB4WIQ.js";
27
29
  import {
28
30
  sessionMember
29
31
  } from "./chunk-PT5STHFH.js";