@domino-sdk/relay 1.10.1 → 1.11.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 (31) hide show
  1. package/dist/authoring.d.ts +37 -37
  2. package/dist/authoring.js +3 -3
  3. package/dist/browser.d.ts +3 -3
  4. package/dist/browser.js +8 -8
  5. package/dist/{chunk-XMZNIFXH.js → chunk-2K2QBPAD.js} +154 -57
  6. package/dist/{chunk-5WK4EB5I.js → chunk-46C33ASD.js} +42 -4
  7. package/dist/{chunk-WZJQ7XAT.js → chunk-4OLQYRSA.js} +1 -1
  8. package/dist/{chunk-2M3HLQFP.js → chunk-AGFUDCNM.js} +1 -1
  9. package/dist/{chunk-A2KXEGGD.js → chunk-OCXGG75K.js} +3 -3
  10. package/dist/{chunk-PRLGLZM4.js → chunk-PT5STHFH.js} +1 -1
  11. package/dist/{chunk-FH7ZFHDB.js → chunk-PUDL4JBY.js} +2 -2
  12. package/dist/{chunk-NM2ZAWTF.js → chunk-T657WO56.js} +2 -2
  13. package/dist/{chunk-PFKV2M4B.js → chunk-X7ECZ3AK.js} +1 -1
  14. package/dist/{chunk-MDN5EJY2.js → chunk-XK5E4HAS.js} +6 -6
  15. package/dist/{chunk-MJMFGTVV.js → chunk-ZFABFKIY.js} +1 -1
  16. package/dist/{chunk-S4IHOJEP.js → chunk-ZGH6NEG6.js} +1 -1
  17. package/dist/{client-Yq11HA_f.d.ts → client-fUSERMAC.d.ts} +1 -1
  18. package/dist/index.d.ts +2 -2
  19. package/dist/index.js +7 -7
  20. package/dist/internal.js +5 -5
  21. package/dist/{pages-D00JDZB-.d.ts → pages-Chb6OZSB.d.ts} +10 -3
  22. package/dist/portal-proxy.js +3 -3
  23. package/dist/react/index.d.ts +4 -4
  24. package/dist/react/index.js +8 -8
  25. package/dist/schema.d.ts +304 -304
  26. package/dist/schema.js +8 -6
  27. package/dist/server/index.d.ts +1394 -27
  28. package/dist/server/index.js +1247 -722
  29. package/dist/{sign-in-options-Coim0G1u.d.ts → sign-in-options-iWOp9puZ.d.ts} +1 -1
  30. package/package.json +1 -1
  31. package/dist/{activity-C0O3g7VJ.d.ts → activity-CNiPDPK6.d.ts} +114 -114
@@ -245,8 +245,8 @@ declare function defineLeaderboard(input: Omit<LeaderboardInput, "key" | "id" |
245
245
  kind: "earned";
246
246
  }> | ReturnType<typeof earned>;
247
247
  }): {
248
- title: string;
249
248
  balance: string;
249
+ title: string;
250
250
  access: "participants" | "public";
251
251
  score: {
252
252
  kind: "balance";
@@ -1012,15 +1012,15 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1012
1012
  };
1013
1013
  };
1014
1014
  tier: string;
1015
+ } | {
1016
+ kind: "points";
1017
+ balance: string;
1018
+ amount: number;
1015
1019
  } | {
1016
1020
  kind: "integration";
1017
1021
  provider: "discord";
1018
1022
  action: "grant-role";
1019
1023
  roleId: string;
1020
- } | {
1021
- kind: "points";
1022
- balance: string;
1023
- amount: number;
1024
1024
  })[] | ((ctx: {
1025
1025
  settings: z.core.$InferObjectOutput<T, {}>;
1026
1026
  }) => Reward[]);
@@ -1077,6 +1077,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1077
1077
  kind: "resource";
1078
1078
  default: string;
1079
1079
  source: {
1080
+ provider: "domino";
1081
+ resource: "point-ledger";
1082
+ } | {
1080
1083
  provider: "discord";
1081
1084
  resource: "channel";
1082
1085
  types: ("text" | "announcement")[];
@@ -1084,9 +1087,6 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1084
1087
  provider: "discord";
1085
1088
  resource: "role";
1086
1089
  assignable: boolean;
1087
- } | {
1088
- provider: "domino";
1089
- resource: "point-ledger";
1090
1090
  };
1091
1091
  label: string;
1092
1092
  description?: string | undefined;
@@ -1158,15 +1158,15 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1158
1158
  };
1159
1159
  };
1160
1160
  tier: string;
1161
+ } | {
1162
+ kind: "points";
1163
+ balance: string;
1164
+ amount: number;
1161
1165
  } | {
1162
1166
  kind: "integration";
1163
1167
  provider: "discord";
1164
1168
  action: "grant-role";
1165
1169
  roleId: string;
1166
- } | {
1167
- kind: "points";
1168
- balance: string;
1169
- amount: number;
1170
1170
  })[];
1171
1171
  humanReview: boolean;
1172
1172
  trigger: {
@@ -1188,7 +1188,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1188
1188
  actor?: "staff" | "member" | undefined;
1189
1189
  } | {
1190
1190
  kind: "manual";
1191
- input: "none" | "quiz" | "photo";
1191
+ input: "photo" | "quiz" | "none";
1192
1192
  actor?: "staff" | "member" | undefined;
1193
1193
  } | {
1194
1194
  kind: "automatic";
@@ -1232,9 +1232,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1232
1232
  path: string;
1233
1233
  equals: string | number | boolean;
1234
1234
  })[] | undefined;
1235
- enrollment?: "none" | "required" | undefined;
1235
+ enrollment?: "required" | "none" | undefined;
1236
1236
  since?: "activation" | "window" | "enrollment" | undefined;
1237
- historical?: "staff" | "claim" | "automatic" | undefined;
1237
+ historical?: "automatic" | "staff" | "claim" | undefined;
1238
1238
  content?: true | undefined;
1239
1239
  } | undefined;
1240
1240
  };
@@ -1257,6 +1257,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1257
1257
  title: string;
1258
1258
  })[];
1259
1259
  completion: {
1260
+ kind: "streak";
1261
+ days: number;
1262
+ } | {
1260
1263
  kind: "progress";
1261
1264
  goal: {
1262
1265
  kind: "count";
@@ -1273,9 +1276,6 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1273
1276
  durationMs: number;
1274
1277
  };
1275
1278
  repeat: "repeat" | "once";
1276
- } | {
1277
- kind: "streak";
1278
- days: number;
1279
1279
  } | {
1280
1280
  kind: "once";
1281
1281
  } | {
@@ -1301,7 +1301,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1301
1301
  campaign?: {
1302
1302
  key: string;
1303
1303
  title: string;
1304
- enrollment: "none" | "required";
1304
+ enrollment: "required" | "none";
1305
1305
  window?: {
1306
1306
  from: number;
1307
1307
  until: number;
@@ -1409,15 +1409,15 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1409
1409
  };
1410
1410
  };
1411
1411
  tier: string;
1412
+ } | {
1413
+ kind: "points";
1414
+ balance: string;
1415
+ amount: number;
1412
1416
  } | {
1413
1417
  kind: "integration";
1414
1418
  provider: "discord";
1415
1419
  action: "grant-role";
1416
1420
  roleId: string;
1417
- } | {
1418
- kind: "points";
1419
- balance: string;
1420
- amount: number;
1421
1421
  })[] | ((ctx: {
1422
1422
  settings: z.core.$InferObjectOutput<T, {}>;
1423
1423
  }) => Reward[]);
@@ -1474,6 +1474,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1474
1474
  kind: "resource";
1475
1475
  default: string;
1476
1476
  source: {
1477
+ provider: "domino";
1478
+ resource: "point-ledger";
1479
+ } | {
1477
1480
  provider: "discord";
1478
1481
  resource: "channel";
1479
1482
  types: ("text" | "announcement")[];
@@ -1481,9 +1484,6 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1481
1484
  provider: "discord";
1482
1485
  resource: "role";
1483
1486
  assignable: boolean;
1484
- } | {
1485
- provider: "domino";
1486
- resource: "point-ledger";
1487
1487
  };
1488
1488
  label: string;
1489
1489
  description?: string | undefined;
@@ -1555,15 +1555,15 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1555
1555
  };
1556
1556
  };
1557
1557
  tier: string;
1558
+ } | {
1559
+ kind: "points";
1560
+ balance: string;
1561
+ amount: number;
1558
1562
  } | {
1559
1563
  kind: "integration";
1560
1564
  provider: "discord";
1561
1565
  action: "grant-role";
1562
1566
  roleId: string;
1563
- } | {
1564
- kind: "points";
1565
- balance: string;
1566
- amount: number;
1567
1567
  })[];
1568
1568
  humanReview: boolean;
1569
1569
  trigger: {
@@ -1585,7 +1585,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1585
1585
  actor?: "staff" | "member" | undefined;
1586
1586
  } | {
1587
1587
  kind: "manual";
1588
- input: "none" | "quiz" | "photo";
1588
+ input: "photo" | "quiz" | "none";
1589
1589
  actor?: "staff" | "member" | undefined;
1590
1590
  } | {
1591
1591
  kind: "automatic";
@@ -1629,9 +1629,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1629
1629
  path: string;
1630
1630
  equals: string | number | boolean;
1631
1631
  })[] | undefined;
1632
- enrollment?: "none" | "required" | undefined;
1632
+ enrollment?: "required" | "none" | undefined;
1633
1633
  since?: "activation" | "window" | "enrollment" | undefined;
1634
- historical?: "staff" | "claim" | "automatic" | undefined;
1634
+ historical?: "automatic" | "staff" | "claim" | undefined;
1635
1635
  content?: true | undefined;
1636
1636
  } | undefined;
1637
1637
  };
@@ -1654,6 +1654,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1654
1654
  title: string;
1655
1655
  })[];
1656
1656
  completion: {
1657
+ kind: "streak";
1658
+ days: number;
1659
+ } | {
1657
1660
  kind: "progress";
1658
1661
  goal: {
1659
1662
  kind: "count";
@@ -1670,9 +1673,6 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1670
1673
  durationMs: number;
1671
1674
  };
1672
1675
  repeat: "repeat" | "once";
1673
- } | {
1674
- kind: "streak";
1675
- days: number;
1676
1676
  } | {
1677
1677
  kind: "once";
1678
1678
  } | {
@@ -1698,7 +1698,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1698
1698
  campaign?: {
1699
1699
  key: string;
1700
1700
  title: string;
1701
- enrollment: "none" | "required";
1701
+ enrollment: "required" | "none";
1702
1702
  window?: {
1703
1703
  from: number;
1704
1704
  until: number;
package/dist/authoring.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  sourceDataSchema,
11
11
  sourceRoles,
12
12
  validateQuestShape
13
- } from "./chunk-WZJQ7XAT.js";
13
+ } from "./chunk-4OLQYRSA.js";
14
14
  import {
15
15
  cosmosDenomSchema,
16
16
  cosmosNetworkSchema,
@@ -22,7 +22,7 @@ import {
22
22
  leaderboardAuthoringSchema,
23
23
  pointLedgerDeclarationSchema,
24
24
  referralAuthoringSchema
25
- } from "./chunk-MJMFGTVV.js";
25
+ } from "./chunk-ZFABFKIY.js";
26
26
  import "./chunk-NPGENI7K.js";
27
27
  import {
28
28
  authoringKey,
@@ -76,7 +76,7 @@ import {
76
76
  whereSchemaIssue,
77
77
  whereSettings,
78
78
  xSearchSourceSchema
79
- } from "./chunk-5WK4EB5I.js";
79
+ } from "./chunk-46C33ASD.js";
80
80
 
81
81
  // src/builders.ts
82
82
  import { z } from "zod";
package/dist/browser.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { n as SubmissionStore, f as RelayClientOptions, R as RelayClient } from './client-Yq11HA_f.js';
2
- export { C as CosmosChains, D as DiscoveredWallet, E as Eip1193Provider, a as EmailSignInOption, K as KeplrLike, O as OAuthSignInOption, S as SignInClient, b as SignInIcon, c as SignInMethods, d as SignInOption, e as SignInOptions, f as SignInUnavailable, g as SignInWallet, h as SolanaInjectedProvider, i as StandardWallet, j as StandardWalletAccount, W as WalletSignInOption, k as cosmosChainList, l as cosmosSigner, m as discoverCosmosWallets, n as discoverEvmWallets, o as discoverSignInWallets, p as discoverSolanaWallets, q as evmSigner, s as signInOptions, r as solanaSigner, w as walletStandardSolanaSigner } from './sign-in-options-Coim0G1u.js';
1
+ import { n as SubmissionStore, f as RelayClientOptions, R as RelayClient } from './client-fUSERMAC.js';
2
+ export { C as CosmosChains, D as DiscoveredWallet, E as Eip1193Provider, a as EmailSignInOption, K as KeplrLike, O as OAuthSignInOption, S as SignInClient, b as SignInIcon, c as SignInMethods, d as SignInOption, e as SignInOptions, f as SignInUnavailable, g as SignInWallet, h as SolanaInjectedProvider, i as StandardWallet, j as StandardWalletAccount, W as WalletSignInOption, k as cosmosChainList, l as cosmosSigner, m as discoverCosmosWallets, n as discoverEvmWallets, o as discoverSignInWallets, p as discoverSolanaWallets, q as evmSigner, s as signInOptions, r as solanaSigner, w as walletStandardSolanaSigner } from './sign-in-options-iWOp9puZ.js';
3
3
  import './groups-BK8ts2yK.js';
4
4
  import 'zod';
5
5
  import './schema-DEM8y8Fm.js';
6
- import './pages-D00JDZB-.js';
6
+ import './pages-Chb6OZSB.js';
7
7
  import './submission-input-BbBJTVlT.js';
8
8
  import './request-error-D_dUPLwo.js';
9
9
  import './participant-activity-DkL3nY5a.js';
package/dist/browser.js CHANGED
@@ -11,16 +11,16 @@ import {
11
11
  signInOptions,
12
12
  solanaSigner,
13
13
  walletStandardSolanaSigner
14
- } from "./chunk-FH7ZFHDB.js";
15
- import "./chunk-MDN5EJY2.js";
16
- import "./chunk-PFKV2M4B.js";
17
- import "./chunk-NM2ZAWTF.js";
18
- import "./chunk-MJMFGTVV.js";
14
+ } from "./chunk-PUDL4JBY.js";
15
+ import "./chunk-XK5E4HAS.js";
16
+ import "./chunk-X7ECZ3AK.js";
17
+ import "./chunk-T657WO56.js";
18
+ import "./chunk-ZFABFKIY.js";
19
19
  import "./chunk-6QJ3LADK.js";
20
20
  import "./chunk-NPGENI7K.js";
21
- import "./chunk-2M3HLQFP.js";
22
- import "./chunk-PRLGLZM4.js";
23
- import "./chunk-5WK4EB5I.js";
21
+ import "./chunk-AGFUDCNM.js";
22
+ import "./chunk-PT5STHFH.js";
23
+ import "./chunk-46C33ASD.js";
24
24
  export {
25
25
  browserSubmissionStore,
26
26
  cosmosChainList,
@@ -6,7 +6,7 @@ import {
6
6
  imageSightingsSchema,
7
7
  imageUploadsSchema,
8
8
  publishedImageSchema
9
- } from "./chunk-S4IHOJEP.js";
9
+ } from "./chunk-ZGH6NEG6.js";
10
10
  import {
11
11
  catalogDeploymentSchema,
12
12
  collectionPassSchema,
@@ -24,7 +24,7 @@ import {
24
24
  questTypeVersionSchema,
25
25
  questViewSchema,
26
26
  rewardDeliveriesSchema
27
- } from "./chunk-NM2ZAWTF.js";
27
+ } from "./chunk-T657WO56.js";
28
28
  import {
29
29
  engagementArtifactSchema,
30
30
  engagementBoundaryPageSchema,
@@ -57,12 +57,12 @@ import {
57
57
  walletBalanceSchema,
58
58
  walletMessageChallengeSchema,
59
59
  walletSignInNetworksSchema
60
- } from "./chunk-MJMFGTVV.js";
60
+ } from "./chunk-ZFABFKIY.js";
61
61
  import {
62
62
  exchangeResultSchema,
63
63
  memberSummarySchema,
64
64
  participantSessionSchema
65
- } from "./chunk-PRLGLZM4.js";
65
+ } from "./chunk-PT5STHFH.js";
66
66
  import {
67
67
  accountConnectionSchema,
68
68
  attemptSchema,
@@ -74,6 +74,7 @@ import {
74
74
  evidenceSchema,
75
75
  identifier,
76
76
  knownResponse,
77
+ lazyResponseReaders,
77
78
  markResponseSchema,
78
79
  memberProgressSchema,
79
80
  pageCursorSchema,
@@ -88,7 +89,7 @@ import {
88
89
  tieredRewardReferenceSchema,
89
90
  timeZoneNameSchema,
90
91
  trackerArtifactSchema
91
- } from "./chunk-5WK4EB5I.js";
92
+ } from "./chunk-46C33ASD.js";
92
93
 
93
94
  // src/deployments.ts
94
95
  import { z } from "zod";
@@ -192,15 +193,29 @@ var promoteDeploymentSchema = repeatableDeploymentSchema;
192
193
  var rollbackDeploymentSchema = repeatableDeploymentSchema;
193
194
 
194
195
  // src/capability-responses.ts
195
- var capabilityResponseSchemas = {
196
- imageInspectionSchema: knownResponse(imageInspectionSchema),
197
- imageComparisonSchema: knownResponse(imageComparisonSchema),
198
- imageExtractionSchema: knownResponse(imageExtractionSchema),
199
- imageSightingsSchema: knownResponse(imageSightingsSchema),
200
- imageUploadsSchema: knownResponse(imageUploadsSchema),
201
- publishedImageSchema: knownResponse(publishedImageSchema),
202
- walletBalanceSchema: knownResponse(walletBalanceSchema)
203
- };
196
+ var capabilityResponseSchemas = lazyResponseReaders({
197
+ get imageInspectionSchema() {
198
+ return knownResponse(imageInspectionSchema);
199
+ },
200
+ get imageComparisonSchema() {
201
+ return knownResponse(imageComparisonSchema);
202
+ },
203
+ get imageExtractionSchema() {
204
+ return knownResponse(imageExtractionSchema);
205
+ },
206
+ get imageSightingsSchema() {
207
+ return knownResponse(imageSightingsSchema);
208
+ },
209
+ get imageUploadsSchema() {
210
+ return knownResponse(imageUploadsSchema);
211
+ },
212
+ get publishedImageSchema() {
213
+ return knownResponse(publishedImageSchema);
214
+ },
215
+ get walletBalanceSchema() {
216
+ return knownResponse(walletBalanceSchema);
217
+ }
218
+ });
204
219
  var capabilityResponses = {
205
220
  imageInspectionSchema: responseSchema(imageInspectionSchema),
206
221
  imageComparisonSchema: responseSchema(imageComparisonSchema),
@@ -372,49 +387,131 @@ var automaticSchedulingRetrySchema = z3.strictObject({
372
387
  });
373
388
 
374
389
  // src/response-readers.ts
375
- var participantResponseSchemas = {
376
- accountConnectionSchema: knownResponse(accountConnectionSchema),
377
- attemptSchema: knownResponse(attemptSchema),
378
- authProviderSchema: knownResponse(authProviderSchema),
379
- campaignEnrollmentSchema: knownResponse(campaignEnrollmentSchema),
380
- collectionPassSchema: knownResponse(collectionPassSchema),
381
- contentPerformancePageSchema: knownResponse(contentPerformancePageSchema),
382
- contentQualificationPageSchema: knownResponse(contentQualificationPageSchema),
383
- engagementBoundaryPageSchema: knownResponse(engagementBoundaryPageSchema),
384
- engagementPageSchema: knownResponse(engagementPageSchema),
385
- evidenceSchema: knownResponse(evidenceSchema),
386
- exchangeResultSchema: knownResponse(exchangeResultSchema),
387
- leaderboardDefinitionSchema: knownResponse(leaderboardDefinitionSchema),
388
- leaderboardPageSchema: knownResponse(leaderboardPageSchema),
389
- leaderboardPlacementSchema: knownResponse(leaderboardPlacementSchema),
390
- linkedWalletSchema: knownResponse(linkedWalletSchema),
391
- memberProgressSchema: knownResponse(memberProgressSchema),
392
- memberSummarySchema: knownResponse(memberSummarySchema),
393
- offerSchema: knownResponse(offerSchema),
394
- ownProfileSchema: knownResponse(ownProfileSchema),
395
- participantActivitySchema: knownResponse(participantActivitySchema),
396
- participantDeliveriesSchema: knownResponse(participantDeliveriesSchema),
397
- participantEntitlementsSchema: knownResponse(participantEntitlementsSchema),
398
- participantSessionSchema: knownResponse(participantSessionSchema),
399
- pointBalancesSchema: knownResponse(pointBalancesSchema),
400
- pointHistoryPageSchema: knownResponse(pointHistoryPageSchema),
401
- pointLedgerReferenceSchema: knownResponse(pointLedgerReferenceSchema),
402
- profileCompletionPageSchema: knownResponse(profileCompletionPageSchema),
403
- profileReferralSchema: knownResponse(profileReferralSchema),
404
- profileSummarySchema: knownResponse(profileSummarySchema),
405
- questEnrollmentSchema: knownResponse(questEnrollmentSchema),
406
- questExperienceSchema: knownResponse(questExperienceSchema),
407
- questOutcomePageSchema: knownResponse(questOutcomePageSchema),
408
- questOutcomeSchema: knownResponse(questOutcomeSchema),
409
- redemptionSchema: knownResponse(redemptionSchema),
410
- referralDefinitionSchema: knownResponse(referralDefinitionSchema),
411
- referralHistorySchema: knownResponse(referralHistorySchema),
412
- referralSummarySchema: knownResponse(referralSummarySchema),
413
- rewardDeliveriesSchema: knownResponse(rewardDeliveriesSchema),
414
- tieredRewardReferenceSchema: knownResponse(tieredRewardReferenceSchema),
415
- walletMessageChallengeSchema: knownResponse(walletMessageChallengeSchema),
416
- walletSignInNetworksSchema: knownResponse(walletSignInNetworksSchema)
417
- };
390
+ var participantResponseSchemas = lazyResponseReaders({
391
+ get accountConnectionSchema() {
392
+ return knownResponse(accountConnectionSchema);
393
+ },
394
+ get attemptSchema() {
395
+ return knownResponse(attemptSchema);
396
+ },
397
+ get authProviderSchema() {
398
+ return knownResponse(authProviderSchema);
399
+ },
400
+ get campaignEnrollmentSchema() {
401
+ return knownResponse(campaignEnrollmentSchema);
402
+ },
403
+ get collectionPassSchema() {
404
+ return knownResponse(collectionPassSchema);
405
+ },
406
+ get contentPerformancePageSchema() {
407
+ return knownResponse(contentPerformancePageSchema);
408
+ },
409
+ get contentQualificationPageSchema() {
410
+ return knownResponse(contentQualificationPageSchema);
411
+ },
412
+ get engagementBoundaryPageSchema() {
413
+ return knownResponse(engagementBoundaryPageSchema);
414
+ },
415
+ get engagementPageSchema() {
416
+ return knownResponse(engagementPageSchema);
417
+ },
418
+ get evidenceSchema() {
419
+ return knownResponse(evidenceSchema);
420
+ },
421
+ get exchangeResultSchema() {
422
+ return knownResponse(exchangeResultSchema);
423
+ },
424
+ get leaderboardDefinitionSchema() {
425
+ return knownResponse(leaderboardDefinitionSchema);
426
+ },
427
+ get leaderboardPageSchema() {
428
+ return knownResponse(leaderboardPageSchema);
429
+ },
430
+ get leaderboardPlacementSchema() {
431
+ return knownResponse(leaderboardPlacementSchema);
432
+ },
433
+ get linkedWalletSchema() {
434
+ return knownResponse(linkedWalletSchema);
435
+ },
436
+ get memberProgressSchema() {
437
+ return knownResponse(memberProgressSchema);
438
+ },
439
+ get memberSummarySchema() {
440
+ return knownResponse(memberSummarySchema);
441
+ },
442
+ get offerSchema() {
443
+ return knownResponse(offerSchema);
444
+ },
445
+ get ownProfileSchema() {
446
+ return knownResponse(ownProfileSchema);
447
+ },
448
+ get participantActivitySchema() {
449
+ return knownResponse(participantActivitySchema);
450
+ },
451
+ get participantDeliveriesSchema() {
452
+ return knownResponse(participantDeliveriesSchema);
453
+ },
454
+ get participantEntitlementsSchema() {
455
+ return knownResponse(participantEntitlementsSchema);
456
+ },
457
+ get participantSessionSchema() {
458
+ return knownResponse(participantSessionSchema);
459
+ },
460
+ get pointBalancesSchema() {
461
+ return knownResponse(pointBalancesSchema);
462
+ },
463
+ get pointHistoryPageSchema() {
464
+ return knownResponse(pointHistoryPageSchema);
465
+ },
466
+ get pointLedgerReferenceSchema() {
467
+ return knownResponse(pointLedgerReferenceSchema);
468
+ },
469
+ get profileCompletionPageSchema() {
470
+ return knownResponse(profileCompletionPageSchema);
471
+ },
472
+ get profileReferralSchema() {
473
+ return knownResponse(profileReferralSchema);
474
+ },
475
+ get profileSummarySchema() {
476
+ return knownResponse(profileSummarySchema);
477
+ },
478
+ get questEnrollmentSchema() {
479
+ return knownResponse(questEnrollmentSchema);
480
+ },
481
+ get questExperienceSchema() {
482
+ return knownResponse(questExperienceSchema);
483
+ },
484
+ get questOutcomePageSchema() {
485
+ return knownResponse(questOutcomePageSchema);
486
+ },
487
+ get questOutcomeSchema() {
488
+ return knownResponse(questOutcomeSchema);
489
+ },
490
+ get redemptionSchema() {
491
+ return knownResponse(redemptionSchema);
492
+ },
493
+ get referralDefinitionSchema() {
494
+ return knownResponse(referralDefinitionSchema);
495
+ },
496
+ get referralHistorySchema() {
497
+ return knownResponse(referralHistorySchema);
498
+ },
499
+ get referralSummarySchema() {
500
+ return knownResponse(referralSummarySchema);
501
+ },
502
+ get rewardDeliveriesSchema() {
503
+ return knownResponse(rewardDeliveriesSchema);
504
+ },
505
+ get tieredRewardReferenceSchema() {
506
+ return knownResponse(tieredRewardReferenceSchema);
507
+ },
508
+ get walletMessageChallengeSchema() {
509
+ return knownResponse(walletMessageChallengeSchema);
510
+ },
511
+ get walletSignInNetworksSchema() {
512
+ return knownResponse(walletSignInNetworksSchema);
513
+ }
514
+ });
418
515
  var participantResponses = {
419
516
  accountConnectionSchema: responseSchema(accountConnectionSchema),
420
517
  attemptSchema: responseSchema(attemptSchema),
@@ -5,20 +5,52 @@ function markResponseSchema(schema) {
5
5
  return Object.assign(schema, { [responseFormat]: true });
6
6
  }
7
7
  var shapes = /* @__PURE__ */ new WeakMap();
8
+ function lazyResponseReaders(readers) {
9
+ for (const key of Object.keys(readers)) {
10
+ const get = Object.getOwnPropertyDescriptor(readers, key)?.get;
11
+ if (!get) {
12
+ continue;
13
+ }
14
+ const store = (value) => {
15
+ Object.defineProperty(readers, key, {
16
+ value,
17
+ writable: true,
18
+ enumerable: true,
19
+ configurable: true
20
+ });
21
+ return value;
22
+ };
23
+ Object.defineProperty(readers, key, {
24
+ get: () => store(get.call(readers)),
25
+ set: store,
26
+ enumerable: true,
27
+ configurable: true
28
+ });
29
+ }
30
+ return readers;
31
+ }
8
32
  function responseShape(schema) {
9
33
  const existing = shapes.get(schema);
10
34
  if (existing) {
11
35
  return existing;
12
36
  }
13
- const definition = { ...schema._zod.def };
37
+ const definition = Object.create(
38
+ Object.getPrototypeOf(schema._zod.def),
39
+ Object.getOwnPropertyDescriptors(schema._zod.def)
40
+ );
14
41
  if (schema instanceof z.ZodObject) {
15
- Object.assign(definition, {
16
- shape: Object.fromEntries(
42
+ let shape;
43
+ Object.defineProperty(definition, "shape", {
44
+ get: () => shape ??= Object.fromEntries(
17
45
  Object.entries(schema.shape).map(([key, child]) => [
18
46
  key,
19
47
  responseShape(child)
20
48
  ])
21
49
  ),
50
+ configurable: true,
51
+ enumerable: true
52
+ });
53
+ Object.assign(definition, {
22
54
  catchall: schema._zod.def.catchall instanceof z.ZodNever || !schema._zod.def.catchall ? void 0 : responseShape(schema._zod.def.catchall)
23
55
  });
24
56
  } else if (schema instanceof z.ZodNumber) {
@@ -171,9 +203,9 @@ function unknownVariant(schema, input) {
171
203
  return false;
172
204
  }
173
205
  function responseSchema(schema) {
174
- const reader = knownResponse(schema);
175
206
  return markResponseSchema(
176
207
  z.json().transform((raw, context) => {
208
+ const reader = knownResponse(schema);
177
209
  const parsed = reader.safeParse(raw);
178
210
  if (parsed.success) {
179
211
  return { kind: "supported", value: parsed.data };
@@ -203,6 +235,10 @@ var pageCursorSchema = z2.string().min(1).max(4096);
203
235
  var pageQuerySchema = z2.strictObject({
204
236
  cursor: pageCursorSchema.optional()
205
237
  });
238
+ var managementStateQuerySchema = z2.strictObject({
239
+ cursor: pageCursorSchema.optional(),
240
+ limit: z2.coerce.number().int().min(1).max(100).default(50)
241
+ });
206
242
 
207
243
  // src/accounts.ts
208
244
  import { z as z3 } from "zod";
@@ -3010,12 +3046,14 @@ var contentPerformancePageSchema = z24.strictObject({
3010
3046
 
3011
3047
  export {
3012
3048
  markResponseSchema,
3049
+ lazyResponseReaders,
3013
3050
  responseShape,
3014
3051
  knownResponse,
3015
3052
  responseSchema,
3016
3053
  responseListSchema,
3017
3054
  pageCursorSchema,
3018
3055
  pageQuerySchema,
3056
+ managementStateQuerySchema,
3019
3057
  authProviderSchema,
3020
3058
  accountConnectionSchema,
3021
3059
  discordMemberInputSchema,
@@ -5,7 +5,7 @@ import {
5
5
  isKnownTrackerSource,
6
6
  trackerDataSchema,
7
7
  xAccountRoles
8
- } from "./chunk-5WK4EB5I.js";
8
+ } from "./chunk-46C33ASD.js";
9
9
 
10
10
  // src/quest-shape.ts
11
11
  function validateQuestShape(description, options = {}) {
@@ -1,6 +1,6 @@
1
1
  // package.json
2
2
  var name = "@domino-sdk/relay";
3
- var version = "1.10.1";
3
+ var version = "1.11.1";
4
4
 
5
5
  // src/client-identity.ts
6
6
  function clientIdentity() {