@domino-sdk/relay 1.16.0 → 1.18.1

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/dist/{attempt-captures-DHwIVoRP.d.ts → attempt-captures-ByzZyggX.d.ts} +5 -1
  2. package/dist/authoring.d.ts +82 -9
  3. package/dist/authoring.js +14 -9
  4. package/dist/{automatic-outcomes-BcEn_L46.d.ts → automatic-outcomes-BBSdMf0R.d.ts} +2 -1
  5. package/dist/avatar.d.ts +1 -1
  6. package/dist/browser.d.ts +7 -7
  7. package/dist/browser.js +9 -11
  8. package/dist/{chunk-3YCCHTCU.js → chunk-3IX2IYMQ.js} +2 -2
  9. package/dist/{chunk-6QJ3LADK.js → chunk-5P5PTZ3T.js} +1 -1
  10. package/dist/{chunk-W335CWYJ.js → chunk-CVQG2AZZ.js} +2 -2
  11. package/dist/{chunk-46C33ASD.js → chunk-EMLDFUTV.js} +1314 -908
  12. package/dist/{chunk-4OLQYRSA.js → chunk-GMKJPHN4.js} +1 -1
  13. package/dist/{chunk-YT3QKV2L.js → chunk-GTM3XNMQ.js} +1 -1
  14. package/dist/{chunk-LLMJ2SUT.js → chunk-IE4QOQUI.js} +21 -4
  15. package/dist/{chunk-ZGH6NEG6.js → chunk-JIQHUDVZ.js} +1 -1
  16. package/dist/{chunk-ZLYBUM7K.js → chunk-NBYS3NQT.js} +29 -17
  17. package/dist/{chunk-NIYCAW2I.js → chunk-NGP2NMZ4.js} +1 -1
  18. package/dist/{chunk-XMBM2XD5.js → chunk-T47OFHHX.js} +2 -4
  19. package/dist/{chunk-NM3IYYPG.js → chunk-UEPEKXOC.js} +6 -8
  20. package/dist/{chunk-AXRMT33W.js → chunk-UIHPWC4C.js} +3 -0
  21. package/dist/{chunk-UJACD6K2.js → chunk-XSLRNFIY.js} +346 -304
  22. package/dist/{chunk-Y6SRF54G.js → chunk-YGWB6GH3.js} +32 -25
  23. package/dist/{chunk-PT5STHFH.js → chunk-YXAK2637.js} +1 -1
  24. package/dist/{client-DFSCmf3H.d.ts → client-93pUw04R.d.ts} +182 -14
  25. package/dist/{deployments-DIbKJO_Y.d.ts → deployments-Cz-tNK7Z.d.ts} +832 -16
  26. package/dist/{groups-Bi7lc54m.d.ts → groups-jLLG7MML.d.ts} +27 -2
  27. package/dist/{images-Cb8QHGjn.d.ts → images-BPiPqVKn.d.ts} +1 -1
  28. package/dist/index.d.ts +8 -8
  29. package/dist/index.js +12 -16
  30. package/dist/internal.d.ts +10 -10
  31. package/dist/internal.js +9 -10
  32. package/dist/{offers-Catj06u7.d.ts → offers-CPqiF3dZ.d.ts} +92 -3
  33. package/dist/{pages-CpYt56Km.d.ts → pages-1h1387a3.d.ts} +757 -3
  34. package/dist/portal-proxy.js +4 -4
  35. package/dist/react/index.d.ts +47 -19
  36. package/dist/react/index.js +361 -340
  37. package/dist/{schema-BaVl2VBS.d.ts → schema-Br3c1GOu.d.ts} +508 -2
  38. package/dist/schema.d.ts +565 -24
  39. package/dist/schema.js +61 -32
  40. package/dist/server/index.d.ts +10 -10
  41. package/dist/server/index.js +82 -24
  42. package/dist/{sign-in-options-CU1ND6-y.d.ts → sign-in-options--25uHySG.d.ts} +1 -1
  43. package/dist/{submission-input-Bi4HipqI.d.ts → submission-input-BEJ9qENg.d.ts} +2 -2
  44. package/dist/testing.d.ts +3 -3
  45. package/dist/testing.js +10 -13
  46. package/dist/{transport-BdrcbKi_.d.ts → transport-CVac_nGZ.d.ts} +6411 -72
  47. package/package.json +1 -1
  48. package/dist/chunk-2UAVZCMH.js +0 -314
  49. package/dist/chunk-NPGENI7K.js +0 -37
  50. package/dist/{profiles-BHMVj0kM.d.ts → profiles-D29SS12z.d.ts} +1 -1
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createRelayAction,
3
3
  withActionId
4
- } from "./chunk-XMBM2XD5.js";
4
+ } from "./chunk-T47OFHHX.js";
5
5
  import {
6
6
  collectionPassSchema,
7
7
  participantActivityQuerySchema,
@@ -16,10 +16,11 @@ import {
16
16
  questOutcomeQuerySchema,
17
17
  questOutcomeSchema,
18
18
  rewardDeliveriesSchema
19
- } from "./chunk-LLMJ2SUT.js";
19
+ } from "./chunk-IE4QOQUI.js";
20
20
  import {
21
21
  AVATAR_UPLOAD_LIMIT,
22
22
  avatarUploadTypes,
23
+ badgeSchema,
23
24
  engagementBoundaryPageSchema,
24
25
  engagementPageQuerySchema,
25
26
  engagementPageSchema,
@@ -27,6 +28,7 @@ import {
27
28
  leaderboardPageSchema,
28
29
  leaderboardPlacementSchema,
29
30
  leaderboardQuerySchema,
31
+ memberBadgesSchema,
30
32
  offerSchema,
31
33
  ownProfileSchema,
32
34
  pointBalancesSchema,
@@ -43,65 +45,61 @@ import {
43
45
  referralDefinitionSchema,
44
46
  referralHistorySchema,
45
47
  referralSummarySchema
46
- } from "./chunk-UJACD6K2.js";
47
- import {
48
- RelayError,
49
- RelayErrorCode,
50
- clientError,
51
- isRelayError,
52
- linkedWalletSchema,
53
- parseInput,
54
- walletAddressInput,
55
- walletAddressInputSchema,
56
- walletMessageChallengeSchema,
57
- walletSignInNetworksSchema,
58
- walletSignatureSchema,
59
- walletUnlinkInputSchema
60
- } from "./chunk-2UAVZCMH.js";
48
+ } from "./chunk-XSLRNFIY.js";
61
49
  import {
62
50
  PARTICIPANT_TIMEOUT,
63
51
  lifetime,
64
52
  retryAfter,
65
53
  retrying,
66
54
  validTimeout
67
- } from "./chunk-6QJ3LADK.js";
68
- import {
69
- isRequestError
70
- } from "./chunk-NPGENI7K.js";
55
+ } from "./chunk-5P5PTZ3T.js";
71
56
  import {
72
57
  clientIdentity
73
- } from "./chunk-YT3QKV2L.js";
58
+ } from "./chunk-GTM3XNMQ.js";
74
59
  import {
75
60
  exchangeResultSchema,
76
61
  exchangeSchema,
77
62
  memberSummarySchema,
78
63
  participantSessionSchema,
79
64
  sessionMember
80
- } from "./chunk-PT5STHFH.js";
65
+ } from "./chunk-YXAK2637.js";
81
66
  import {
67
+ RelayError,
68
+ RelayErrorCode,
82
69
  accountConnectionSchema,
83
70
  attemptSchema,
84
71
  authProviderSchema,
85
72
  campaignEnrollmentInputSchema,
86
73
  campaignEnrollmentSchema,
87
74
  campaignWithdrawalInputSchema,
75
+ clientError,
88
76
  contentPerformancePageSchema,
89
77
  contentPerformanceQuerySchema,
90
78
  contentQualificationPageSchema,
91
79
  contentQualificationQuerySchema,
92
80
  evidenceSchema,
93
81
  identifier,
82
+ isRelayError,
83
+ isRequestError,
94
84
  knownResponse,
85
+ linkedWalletSchema,
95
86
  memberProgressSchema,
96
87
  missingPrerequisiteSchema,
97
88
  pageQuerySchema,
89
+ parseInput,
98
90
  quizEvidenceSchema,
99
91
  submissionEvidenceSchema,
100
92
  submitSchema,
101
93
  tieredRewardReferenceSchema,
102
94
  validateSubmissionValue,
103
- valueEvidenceSchema
104
- } from "./chunk-46C33ASD.js";
95
+ valueEvidenceSchema,
96
+ walletAddressInput,
97
+ walletAddressInputSchema,
98
+ walletMessageChallengeSchema,
99
+ walletSignInNetworksSchema,
100
+ walletSignatureSchema,
101
+ walletUnlinkInputSchema
102
+ } from "./chunk-EMLDFUTV.js";
105
103
 
106
104
  // src/submissions.ts
107
105
  import { z } from "zod";
@@ -1208,6 +1206,9 @@ function relayClient(options) {
1208
1206
  options: requestOptions
1209
1207
  })
1210
1208
  },
1209
+ badges: {
1210
+ list: (options2) => request("/v1/badges", z2.array(badgeSchema), { options: options2 })
1211
+ },
1211
1212
  pointLedgers: {
1212
1213
  /**
1213
1214
  * The project's point ledgers with their keys and names. Reads return
@@ -1246,6 +1247,11 @@ function relayClient(options) {
1246
1247
  * `@domino-sdk/relay/avatar`.
1247
1248
  */
1248
1249
  profiles: {
1250
+ badges: (profile, options2) => request(
1251
+ `/v1/profiles/${parseInput(identifier, profile)}/badges`,
1252
+ memberBadgesSchema,
1253
+ { options: options2 }
1254
+ ),
1249
1255
  /** The signed-in member's own profile, whatever the project shows to others. */
1250
1256
  mine: (requestOptions) => request("/v1/me/profile", ownProfileSchema, {
1251
1257
  options: requestOptions
@@ -1613,6 +1619,7 @@ function relayClient(options) {
1613
1619
  })
1614
1620
  },
1615
1621
  me: {
1622
+ badges: (options2) => request("/v1/me/badges", memberBadgesSchema, { options: options2 }),
1616
1623
  activity: {
1617
1624
  list: (query = {}, options2) => {
1618
1625
  const parsed = parseInput(participantActivityQuerySchema, query);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  identifier
3
- } from "./chunk-46C33ASD.js";
3
+ } from "./chunk-EMLDFUTV.js";
4
4
 
5
5
  // src/auth.ts
6
6
  import { z } from "zod";
@@ -1,12 +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-Bi7lc54m.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-CpYt56Km.js';
3
- import { M as MissingPrerequisite, V as ValueEvidence } from './submission-input-Bi4HipqI.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-jLLG7MML.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-1h1387a3.js';
3
+ import { M as MissingPrerequisite, V as ValueEvidence } from './submission-input-BEJ9qENg.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, c6 as submitSchema, b8 as contentPerformanceQuerySchema } from './schema-BaVl2VBS.js';
5
+ import { f as QuizEvidence, A as Attempt, M as MemberProgress, a as AttemptStatus, h as TrackerSkipCode, cg as submitSchema, be as contentPerformanceQuerySchema } from './schema-Br3c1GOu.js';
6
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 { a as AuthProvider } from './accounts-5ciAkCMP.js';
9
- import { F as profileUpdateSchema, c as ProfileCompletionQuery } from './profiles-BHMVj0kM.js';
9
+ import { F as profileUpdateSchema, c as ProfileCompletionQuery } from './profiles-D29SS12z.js';
10
10
  import { y as walletAddressInputSchema, I as walletSignatureSchema, L as LinkedWallet, f as WalletSigner } from './wallet-CDyo-U4n.js';
11
11
 
12
12
  /** What happened, as in every Domino client error (see `RequestError`). */
@@ -313,6 +313,7 @@ declare function relayClient(options: RelayClientOptions): {
313
313
  } | {
314
314
  kind: "automatic";
315
315
  };
316
+ badge?: string | undefined;
316
317
  };
317
318
  tier: string;
318
319
  };
@@ -367,6 +368,7 @@ declare function relayClient(options: RelayClientOptions): {
367
368
  } | {
368
369
  kind: "automatic";
369
370
  };
371
+ badge?: string | undefined;
370
372
  };
371
373
  tier: string;
372
374
  };
@@ -403,6 +405,7 @@ declare function relayClient(options: RelayClientOptions): {
403
405
  } | {
404
406
  kind: "automatic";
405
407
  };
408
+ badge?: string | undefined;
406
409
  };
407
410
  tier: string;
408
411
  };
@@ -442,6 +445,7 @@ declare function relayClient(options: RelayClientOptions): {
442
445
  } | {
443
446
  kind: "automatic";
444
447
  };
448
+ badge?: string | undefined;
445
449
  };
446
450
  tier: string;
447
451
  } | {
@@ -466,6 +470,7 @@ declare function relayClient(options: RelayClientOptions): {
466
470
  } | {
467
471
  kind: "automatic";
468
472
  };
473
+ badge?: string | undefined;
469
474
  };
470
475
  tier: string;
471
476
  } | {
@@ -494,6 +499,7 @@ declare function relayClient(options: RelayClientOptions): {
494
499
  } | {
495
500
  kind: "automatic";
496
501
  };
502
+ badge?: string | undefined;
497
503
  };
498
504
  tier: string;
499
505
  } | {
@@ -548,6 +554,7 @@ declare function relayClient(options: RelayClientOptions): {
548
554
  } | {
549
555
  kind: "automatic";
550
556
  };
557
+ badge?: string | undefined;
551
558
  };
552
559
  tier: string;
553
560
  } | {
@@ -572,6 +579,7 @@ declare function relayClient(options: RelayClientOptions): {
572
579
  } | {
573
580
  kind: "automatic";
574
581
  };
582
+ badge?: string | undefined;
575
583
  };
576
584
  tier: string;
577
585
  } | {
@@ -600,6 +608,7 @@ declare function relayClient(options: RelayClientOptions): {
600
608
  } | {
601
609
  kind: "automatic";
602
610
  };
611
+ badge?: string | undefined;
603
612
  };
604
613
  tier: string;
605
614
  } | {
@@ -1028,6 +1037,15 @@ declare function relayClient(options: RelayClientOptions): {
1028
1037
  key: string | null;
1029
1038
  }[]>;
1030
1039
  };
1040
+ badges: {
1041
+ list: (options?: RelayRequestOptions) => Promise<{
1042
+ name: string;
1043
+ description: string;
1044
+ image: string;
1045
+ id: string;
1046
+ key: string | null;
1047
+ }[]>;
1048
+ };
1031
1049
  pointLedgers: {
1032
1050
  /**
1033
1051
  * The project's point ledgers with their keys and names. Reads return
@@ -1103,6 +1121,7 @@ declare function relayClient(options: RelayClientOptions): {
1103
1121
  } | {
1104
1122
  kind: "automatic";
1105
1123
  };
1124
+ badge?: string | undefined;
1106
1125
  };
1107
1126
  tier: string;
1108
1127
  } | {
@@ -1220,6 +1239,18 @@ declare function relayClient(options: RelayClientOptions): {
1220
1239
  * `@domino-sdk/relay/avatar`.
1221
1240
  */
1222
1241
  profiles: {
1242
+ badges: (profile: string, options?: RelayRequestOptions) => Promise<{
1243
+ items: {
1244
+ badge: {
1245
+ name: string;
1246
+ description: string;
1247
+ image: string;
1248
+ id: string;
1249
+ key: string | null;
1250
+ };
1251
+ awardedAt: number;
1252
+ }[];
1253
+ }>;
1223
1254
  /** The signed-in member's own profile, whatever the project shows to others. */
1224
1255
  mine: (requestOptions?: RelayRequestOptions) => Promise<{
1225
1256
  id: string;
@@ -1376,6 +1407,24 @@ declare function relayClient(options: RelayClientOptions): {
1376
1407
  quest: string;
1377
1408
  title: string;
1378
1409
  presentation: {
1410
+ steps?: {
1411
+ title: string;
1412
+ description?: string | undefined;
1413
+ action?: {
1414
+ kind: "link";
1415
+ url: string;
1416
+ label: string;
1417
+ } | undefined;
1418
+ }[] | undefined;
1419
+ image?: string | undefined;
1420
+ imageAlt?: string | undefined;
1421
+ requirements?: ({
1422
+ kind: "account";
1423
+ provider: "discord" | "google" | "apple" | "x";
1424
+ } | {
1425
+ kind: "wallet";
1426
+ chain?: "solana" | "eip155" | "cosmos" | undefined;
1427
+ })[] | undefined;
1379
1428
  quiz?: {
1380
1429
  id: string;
1381
1430
  prompt: string;
@@ -1621,6 +1670,7 @@ declare function relayClient(options: RelayClientOptions): {
1621
1670
  } | {
1622
1671
  kind: "automatic";
1623
1672
  };
1673
+ badge?: string | undefined;
1624
1674
  };
1625
1675
  tier: string;
1626
1676
  } | {
@@ -1678,6 +1728,13 @@ declare function relayClient(options: RelayClientOptions): {
1678
1728
  id: string;
1679
1729
  key: string | null;
1680
1730
  title: string;
1731
+ badge?: {
1732
+ name: string;
1733
+ description: string;
1734
+ image: string;
1735
+ id: string;
1736
+ key: string | null;
1737
+ } | undefined;
1681
1738
  };
1682
1739
  tier: string;
1683
1740
  } | {
@@ -1832,6 +1889,7 @@ declare function relayClient(options: RelayClientOptions): {
1832
1889
  } | {
1833
1890
  kind: "automatic";
1834
1891
  };
1892
+ badge?: string | undefined;
1835
1893
  };
1836
1894
  tier: string;
1837
1895
  } | {
@@ -2029,6 +2087,24 @@ declare function relayClient(options: RelayClientOptions): {
2029
2087
  quest: string;
2030
2088
  title: string;
2031
2089
  presentation: {
2090
+ steps?: {
2091
+ title: string;
2092
+ description?: string | undefined;
2093
+ action?: {
2094
+ kind: "link";
2095
+ url: string;
2096
+ label: string;
2097
+ } | undefined;
2098
+ }[] | undefined;
2099
+ image?: string | undefined;
2100
+ imageAlt?: string | undefined;
2101
+ requirements?: ({
2102
+ kind: "account";
2103
+ provider: "discord" | "google" | "apple" | "x";
2104
+ } | {
2105
+ kind: "wallet";
2106
+ chain?: "solana" | "eip155" | "cosmos" | undefined;
2107
+ })[] | undefined;
2032
2108
  quiz?: {
2033
2109
  id: string;
2034
2110
  prompt: string;
@@ -2274,6 +2350,7 @@ declare function relayClient(options: RelayClientOptions): {
2274
2350
  } | {
2275
2351
  kind: "automatic";
2276
2352
  };
2353
+ badge?: string | undefined;
2277
2354
  };
2278
2355
  tier: string;
2279
2356
  } | {
@@ -2331,6 +2408,13 @@ declare function relayClient(options: RelayClientOptions): {
2331
2408
  id: string;
2332
2409
  key: string | null;
2333
2410
  title: string;
2411
+ badge?: {
2412
+ name: string;
2413
+ description: string;
2414
+ image: string;
2415
+ id: string;
2416
+ key: string | null;
2417
+ } | undefined;
2334
2418
  };
2335
2419
  tier: string;
2336
2420
  } | {
@@ -2410,6 +2494,24 @@ declare function relayClient(options: RelayClientOptions): {
2410
2494
  quest: string;
2411
2495
  title: string;
2412
2496
  presentation: {
2497
+ steps?: {
2498
+ title: string;
2499
+ description?: string | undefined;
2500
+ action?: {
2501
+ kind: "link";
2502
+ url: string;
2503
+ label: string;
2504
+ } | undefined;
2505
+ }[] | undefined;
2506
+ image?: string | undefined;
2507
+ imageAlt?: string | undefined;
2508
+ requirements?: ({
2509
+ kind: "account";
2510
+ provider: "discord" | "google" | "apple" | "x";
2511
+ } | {
2512
+ kind: "wallet";
2513
+ chain?: "solana" | "eip155" | "cosmos" | undefined;
2514
+ })[] | undefined;
2413
2515
  quiz?: {
2414
2516
  id: string;
2415
2517
  prompt: string;
@@ -2655,6 +2757,7 @@ declare function relayClient(options: RelayClientOptions): {
2655
2757
  } | {
2656
2758
  kind: "automatic";
2657
2759
  };
2760
+ badge?: string | undefined;
2658
2761
  };
2659
2762
  tier: string;
2660
2763
  } | {
@@ -2712,6 +2815,13 @@ declare function relayClient(options: RelayClientOptions): {
2712
2815
  id: string;
2713
2816
  key: string | null;
2714
2817
  title: string;
2818
+ badge?: {
2819
+ name: string;
2820
+ description: string;
2821
+ image: string;
2822
+ id: string;
2823
+ key: string | null;
2824
+ } | undefined;
2715
2825
  };
2716
2826
  tier: string;
2717
2827
  } | {
@@ -2785,6 +2895,9 @@ declare function relayClient(options: RelayClientOptions): {
2785
2895
  } | null | undefined;
2786
2896
  }[];
2787
2897
  key?: string | undefined;
2898
+ description?: string | undefined;
2899
+ image?: string | undefined;
2900
+ imageAlt?: string | undefined;
2788
2901
  }[];
2789
2902
  }>;
2790
2903
  collection: (id: string, requestOptions?: RelayRequestOptions) => Promise<{
@@ -2794,6 +2907,24 @@ declare function relayClient(options: RelayClientOptions): {
2794
2907
  quest: string;
2795
2908
  title: string;
2796
2909
  presentation: {
2910
+ steps?: {
2911
+ title: string;
2912
+ description?: string | undefined;
2913
+ action?: {
2914
+ kind: "link";
2915
+ url: string;
2916
+ label: string;
2917
+ } | undefined;
2918
+ }[] | undefined;
2919
+ image?: string | undefined;
2920
+ imageAlt?: string | undefined;
2921
+ requirements?: ({
2922
+ kind: "account";
2923
+ provider: "discord" | "google" | "apple" | "x";
2924
+ } | {
2925
+ kind: "wallet";
2926
+ chain?: "solana" | "eip155" | "cosmos" | undefined;
2927
+ })[] | undefined;
2797
2928
  quiz?: {
2798
2929
  id: string;
2799
2930
  prompt: string;
@@ -3039,6 +3170,7 @@ declare function relayClient(options: RelayClientOptions): {
3039
3170
  } | {
3040
3171
  kind: "automatic";
3041
3172
  };
3173
+ badge?: string | undefined;
3042
3174
  };
3043
3175
  tier: string;
3044
3176
  } | {
@@ -3096,6 +3228,13 @@ declare function relayClient(options: RelayClientOptions): {
3096
3228
  id: string;
3097
3229
  key: string | null;
3098
3230
  title: string;
3231
+ badge?: {
3232
+ name: string;
3233
+ description: string;
3234
+ image: string;
3235
+ id: string;
3236
+ key: string | null;
3237
+ } | undefined;
3099
3238
  };
3100
3239
  tier: string;
3101
3240
  } | {
@@ -3169,6 +3308,9 @@ declare function relayClient(options: RelayClientOptions): {
3169
3308
  } | null | undefined;
3170
3309
  }[];
3171
3310
  key?: string | undefined;
3311
+ description?: string | undefined;
3312
+ image?: string | undefined;
3313
+ imageAlt?: string | undefined;
3172
3314
  }>;
3173
3315
  open: (view: QuestView) => Promise<QuestController>;
3174
3316
  observe: (listener: (value: ProgressObservation<z.infer<typeof questExperienceSchema>>) => void, observeOptions?: {
@@ -3391,6 +3533,18 @@ declare function relayClient(options: RelayClientOptions): {
3391
3533
  }>;
3392
3534
  };
3393
3535
  me: {
3536
+ badges: (options?: RelayRequestOptions) => Promise<{
3537
+ items: {
3538
+ badge: {
3539
+ name: string;
3540
+ description: string;
3541
+ image: string;
3542
+ id: string;
3543
+ key: string | null;
3544
+ };
3545
+ awardedAt: number;
3546
+ }[];
3547
+ }>;
3394
3548
  activity: {
3395
3549
  list: (query?: {
3396
3550
  cursor?: string;
@@ -3496,13 +3650,7 @@ declare function relayClient(options: RelayClientOptions): {
3496
3650
  }): Promise<PhotoSubmission>;
3497
3651
  (quest: string, options: {
3498
3652
  input: "quiz";
3499
- release
3500
- /**
3501
- * Options every participant client method takes as its last argument.
3502
- *
3503
- * @compat input
3504
- */
3505
- ?: string;
3653
+ release?: string;
3506
3654
  recoverPrevious?: boolean;
3507
3655
  repeatable?: boolean;
3508
3656
  }): Promise<QuizSubmission>;
@@ -3530,6 +3678,24 @@ declare function relayClient(options: RelayClientOptions): {
3530
3678
  quest: string;
3531
3679
  title: string;
3532
3680
  presentation: {
3681
+ steps?: {
3682
+ title: string;
3683
+ description?: string | undefined;
3684
+ action?: {
3685
+ kind: "link";
3686
+ url: string;
3687
+ label: string;
3688
+ } | undefined;
3689
+ }[] | undefined;
3690
+ image?: string | undefined;
3691
+ imageAlt?: string | undefined;
3692
+ requirements?: ({
3693
+ kind: "account";
3694
+ provider: "discord" | "google" | "apple" | "x";
3695
+ } | {
3696
+ kind: "wallet";
3697
+ chain?: "solana" | "eip155" | "cosmos" | undefined;
3698
+ })[] | undefined;
3533
3699
  quiz?: {
3534
3700
  id: string;
3535
3701
  prompt: string;
@@ -3775,6 +3941,7 @@ declare function relayClient(options: RelayClientOptions): {
3775
3941
  } | {
3776
3942
  kind: "automatic";
3777
3943
  };
3944
+ badge?: string | undefined;
3778
3945
  };
3779
3946
  tier: string;
3780
3947
  } | {
@@ -4140,6 +4307,7 @@ declare function relayClient(options: RelayClientOptions): {
4140
4307
  } | {
4141
4308
  kind: "automatic";
4142
4309
  };
4310
+ badge?: string | undefined;
4143
4311
  };
4144
4312
  tier: string;
4145
4313
  } | {
@@ -4311,7 +4479,7 @@ declare function relayClient(options: RelayClientOptions): {
4311
4479
  reward: {
4312
4480
  attempt: string | null;
4313
4481
  completion: string | null;
4314
- state: "excluded" | "unresolved" | "awarded";
4482
+ state: "awarded" | "excluded" | "unresolved";
4315
4483
  };
4316
4484
  };
4317
4485
  items: {
@@ -4340,7 +4508,7 @@ declare function relayClient(options: RelayClientOptions): {
4340
4508
  reward: {
4341
4509
  attempt: string | null;
4342
4510
  completion: string | null;
4343
- state: "excluded" | "unresolved" | "awarded";
4511
+ state: "awarded" | "excluded" | "unresolved";
4344
4512
  };
4345
4513
  }[];
4346
4514
  nextCursor: string | null;