@domino-sdk/relay 1.24.1 → 1.30.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 (58) 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-nMDnKGdI.d.ts} +2 -2
  3. package/dist/authoring.d.ts +59 -60
  4. package/dist/authoring.js +7 -7
  5. package/dist/{automatic-outcomes-T9lEIvTj.d.ts → automatic-outcomes-CHiFP_U-.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-FQGGb5xS.d.ts +71 -0
  10. package/dist/{chunk-UCZGXYCN.js → chunk-24BMKPCY.js} +10 -10
  11. package/dist/{chunk-MC6V6VMG.js → chunk-4OC7REYX.js} +1 -1
  12. package/dist/{chunk-JKFSDBQX.js → chunk-AOB3N4QO.js} +1 -1
  13. package/dist/{chunk-6UFXPKLA.js → chunk-BVEWY2ZL.js} +99 -39
  14. package/dist/{chunk-MRU7GX2V.js → chunk-C3KL5SGM.js} +21 -8
  15. package/dist/{chunk-WOGCRDFT.js → chunk-CCTZIHWN.js} +1 -1
  16. package/dist/{chunk-FE6SQTXF.js → chunk-CMGGWWH3.js} +2 -2
  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-LR2HLHIF.js → chunk-FHOEVR3S.js} +595 -147
  20. package/dist/{chunk-B4EZ76WX.js → chunk-FPKBRUIC.js} +20 -3
  21. package/dist/{chunk-W33PYWYQ.js → chunk-JNBNL7FE.js} +2 -2
  22. package/dist/{chunk-AXQYGVOP.js → chunk-LPURBE7D.js} +1 -1
  23. package/dist/{chunk-GB26FIZT.js → chunk-MNL5NSC4.js} +8 -8
  24. package/dist/{chunk-FMQDD2MT.js → chunk-NFLNEKZ5.js} +47 -16
  25. package/dist/{chunk-ENBQ6UEE.js → chunk-P23AWV76.js} +3 -3
  26. package/dist/{chunk-JUQ2GNMD.js → chunk-PNCLJOUD.js} +2 -2
  27. package/dist/{chunk-E7MVYASS.js → chunk-W7PDXGYB.js} +1 -1
  28. package/dist/{client-HG0uMG0Q.d.ts → client-Ciy0g8Hx.d.ts} +123 -58
  29. package/dist/{deployments-DQY0PNUk.d.ts → deployments-V_BQ1PdE.d.ts} +184 -184
  30. package/dist/{groups-CfyRewkJ.d.ts → groups-sgKusEzF.d.ts} +26 -3
  31. package/dist/index.d.ts +13 -13
  32. package/dist/index.js +12 -10
  33. package/dist/{integrations-BMNtARU_.d.ts → integrations-CllF-kWg.d.ts} +1 -1
  34. package/dist/internal.d.ts +10 -10
  35. package/dist/internal.js +9 -9
  36. package/dist/{offers-CEwkAGsB.d.ts → offers-DzdzB2ZI.d.ts} +3 -3
  37. package/dist/{pages-D1xrbGJl.d.ts → pages-DFZThUH7.d.ts} +17 -3
  38. package/dist/{participant-activity-DYdUUhw2.d.ts → participant-activity-BPZiW7m7.d.ts} +1 -1
  39. package/dist/{participant-rewards-3duLb8YJ.d.ts → participant-rewards-BcWkBRn_.d.ts} +1 -1
  40. package/dist/portal-proxy.js +4 -4
  41. package/dist/{profiles-D29SS12z.d.ts → profiles-BHuQdzsW.d.ts} +1 -1
  42. package/dist/react/index.d.ts +13 -13
  43. package/dist/react/index.js +16 -15
  44. package/dist/{schema-D57mhL2q.d.ts → schema-DquhoBae.d.ts} +164 -2
  45. package/dist/schema.d.ts +441 -442
  46. package/dist/schema.js +30 -10
  47. package/dist/server/index.d.ts +10 -10
  48. package/dist/server/index.js +1001 -725
  49. package/dist/{streaks-CWyq8Px5.d.ts → streaks-0YuipsUQ.d.ts} +1 -1
  50. package/dist/{submission-input-DjXg0o-r.d.ts → submission-input-Dr0v6J9N.d.ts} +3 -3
  51. package/dist/{telegram-browser-DaP0Rawg.d.ts → telegram-browser-DJiawHY-.d.ts} +13 -5
  52. package/dist/testing.d.ts +8 -8
  53. package/dist/testing.js +15 -15
  54. package/dist/{transport-BNOvDy_4.d.ts → transport-BSGalAsT.d.ts} +6799 -3923
  55. package/dist/{wallet-CDyo-U4n.d.ts → wallet-t7uNDg9p.d.ts} +1 -1
  56. package/dist/{images-DwNmzqWv.d.ts → x-58jkoblN.d.ts} +100 -3
  57. package/package.json +1 -1
  58. package/dist/capability-error-oTd3eYFH.d.ts +0 -151
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
 
3
3
  /** A Discord message as `ctx.discord.message()` reads it, from the project's Discord server. */
4
4
  declare const discordMessageSchema: z.ZodObject<{
@@ -1,5 +1,5 @@
1
- import { O as OpenIdentityKind } from './schema-D57mhL2q.js';
2
- import { z } from 'zod';
1
+ import { O as OpenIdentityKind } from './schema-DquhoBae.js';
2
+ import * as z from 'zod';
3
3
 
4
4
  /** One capability call of the captured evaluation run, as Relay stored it. */
5
5
  declare const capturedFactSchema: z.ZodObject<{
@@ -1,22 +1,21 @@
1
- import { x as xContentBodySchema, I as IdentityKind, n as customSourceSchema, W as WithRecordData, o as WithContent, p as WithAccountRoles, q as ResourceHandle, r as QuestHandle, L as LedgerReference, G as GroupHandle, u as TrackerSource, v as trackerDefinitionSchema, y as Tracker, z as TrackerData, B as SourceRoles, C as LedgerHandle, D as TrackerDataSchema, F as xSearchSourceSchema, X as XTweet, H as XContentMetric, J as TrackerTriggerPolicy, N as Where, U as MemberIdentity, V as TrackerTriggerContext, Y as TrackerReader, Z as TextReviewInput, _ as TextResult, P as PhotoResult, $ as Decision, a0 as rewardSchema, a1 as TrackerTriggerMode, a2 as RoleOf, a3 as WhereSetting, a4 as ContentBody, a5 as BadgeHandle, a6 as ContentMetricName, a7 as triggerSchema, d as QuestPresentation, e as QuestProfile, f as QuizEvidence, a8 as TieredRewardDefinition } from './schema-D57mhL2q.js';
2
- export { a9 as LedgerSetting, aa as TrackerPage, ab as TrackerReadQuery, ac as trackerDataSchema, ad as trackerTriggerContextSchema } from './schema-D57mhL2q.js';
3
- import { z } from 'zod';
1
+ import { x as xContentBodySchema, I as IdentityKind, n as customSourceSchema, W as WithRecordData, o as WithContent, p as WithAccountRoles, q as ResourceHandle, r as QuestHandle, L as LedgerReference, G as GroupHandle, u as TrackerSource, v as trackerDefinitionSchema, y as Tracker, z as TrackerData, B as SourceRoles, C as LedgerHandle, D as TrackerDataSchema, F as xSearchSourceSchema, X as XTweet, H as XContentMetric, J as TrackerTriggerPolicy, N as Where, P as MemberIdentity, U as TrackerTriggerContext, V as TrackerReader, Y as TextReviewInput, Z as TextResult, _ as PhotoResult, $ as Decision, a0 as rewardSchema, a1 as TrackerTriggerMode, a2 as RoleOf, a3 as WhereSetting, a4 as ContentBody, a5 as BadgeHandle, a6 as ContentMetricName, a7 as triggerSchema, d as QuestPresentation, e as QuestProfile, f as QuizEvidence, a8 as TieredRewardDefinition } from './schema-DquhoBae.js';
2
+ export { a9 as LedgerSetting, aa as TrackerPage, ab as TrackerReadQuery, ac as trackerDataSchema, ad as trackerTriggerContextSchema } from './schema-DquhoBae.js';
3
+ import * as z from 'zod';
4
4
  export { z } from 'zod';
5
- import { f as badgeDeclarationSchema, B as Badge } from './offers-CEwkAGsB.js';
6
- export { g as defineOffer } from './offers-CEwkAGsB.js';
7
- import { E as EngagementBudget, q as leaderboardDefinitionSchema, r as AuthoringIdentity, s as pointLedgerDeclarationSchema, t as referralAuthoringSchema, C as CampaignDefinition, A as AvailabilityWindow } from './groups-CfyRewkJ.js';
8
- export { u as defineCampaign, v as defineGroup } from './groups-CfyRewkJ.js';
9
- import { d as discordMessagesSourceSchema, D as DiscordMessageData, c as DiscordMessageTextData, e as discordReactionsSourceSchema, f as DiscordReactionData, g as TelegramReader, h as DiscordReader } from './accounts-B31dWEYD.js';
10
- export { i as TelegramChatMember, j as TelegramChatMemberStatus, k as TelegramReactionData } from './accounts-B31dWEYD.js';
11
- import { Q as QuizContent, a as StreakPolicy } from './streaks-CWyq8Px5.js';
12
- import { R as ResourceSource, S as Setting, I as IntegrationModule, B as Budget, a as IntegerSettings } from './integrations-BMNtARU_.js';
13
- import { P as Prerequisite, T as TextEvidence, U as UrlEvidence, a as TextOptions, b as UrlOptions } from './submission-input-DjXg0o-r.js';
14
- export { c as balanceAtLeast, d as completed, i as inGroup } from './submission-input-DjXg0o-r.js';
15
- import { I as ImageReader } from './images-DwNmzqWv.js';
16
- import { X as XReader } from './capability-error-oTd3eYFH.js';
17
- export { C as CapabilityError, a as CapabilityErrorCode, c as capabilityErrorCodes } from './capability-error-oTd3eYFH.js';
18
- import { h as WalletReader } from './wallet-CDyo-U4n.js';
19
- export { i as CosmosDenom, a as CosmosNetwork, E as EvmChainId, j as WalletBalance, k as WalletBalanceQuery, l as cosmosDenomSchema, m as cosmosNetworkSchema, n as isEvmChainId } from './wallet-CDyo-U4n.js';
5
+ import { f as badgeDeclarationSchema, B as Badge } from './offers-DzdzB2ZI.js';
6
+ export { g as defineOffer } from './offers-DzdzB2ZI.js';
7
+ import { E as EngagementBudget, q as leaderboardDefinitionSchema, r as AuthoringIdentity, s as pointLedgerDeclarationSchema, t as referralAuthoringSchema, C as CampaignDefinition, A as AvailabilityWindow } from './groups-sgKusEzF.js';
8
+ export { u as defineCampaign, v as defineGroup } from './groups-sgKusEzF.js';
9
+ import { d as discordMessagesSourceSchema, D as DiscordMessageData, c as DiscordMessageTextData, e as discordReactionsSourceSchema, f as DiscordReactionData, g as TelegramReader, h as DiscordReader } from './accounts-DRPENuZe.js';
10
+ export { i as TelegramChatMember, j as TelegramChatMemberStatus, k as TelegramReactionData } from './accounts-DRPENuZe.js';
11
+ import { Q as QuizContent, a as StreakPolicy } from './streaks-0YuipsUQ.js';
12
+ import { R as ResourceSource, S as Setting, I as IntegrationModule, B as Budget, a as IntegerSettings } from './integrations-CllF-kWg.js';
13
+ import { P as Prerequisite, T as TextEvidence, U as UrlEvidence, a as TextOptions, b as UrlOptions } from './submission-input-Dr0v6J9N.js';
14
+ export { c as balanceAtLeast, d as completed, i as inGroup } from './submission-input-Dr0v6J9N.js';
15
+ import { I as ImageReader, X as XReader } from './x-58jkoblN.js';
16
+ import { h as WalletReader } from './wallet-t7uNDg9p.js';
17
+ export { i as CosmosDenom, a as CosmosNetwork, E as EvmChainId, j as WalletBalance, k as WalletBalanceQuery, l as cosmosDenomSchema, m as cosmosNetworkSchema, n as isEvmChainId } from './wallet-t7uNDg9p.js';
18
+ export { C as CapabilityError, a as CapabilityErrorCode, c as capabilityErrorCodes } from './capability-error-FQGGb5xS.js';
20
19
  export { f as formatUnits, p as parseUnits } from './units-CwgsPB_r.js';
21
20
 
22
21
  declare function defineBadge(input: z.input<typeof badgeDeclarationSchema>): {
@@ -258,8 +257,8 @@ declare function defineLeaderboard(input: Omit<LeaderboardInput, "key" | "id" |
258
257
  kind: "earned";
259
258
  }> | ReturnType<typeof earned>;
260
259
  }): {
261
- title: string;
262
260
  balance: string;
261
+ title: string;
263
262
  access: "participants" | "public";
264
263
  score: {
265
264
  kind: "balance";
@@ -446,7 +445,7 @@ declare const telegram: {
446
445
  reactions(): {
447
446
  kind: "custom";
448
447
  namespace: string;
449
- identities?: ("x" | "discord" | "member" | "wallet" | `app:${string}`)[] | undefined;
448
+ identities?: ("discord" | "wallet" | "x" | "member" | `app:${string}`)[] | undefined;
450
449
  accounts?: string[] | undefined;
451
450
  data?: TrackerDataSchema | undefined;
452
451
  content?: {
@@ -1097,15 +1096,15 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1097
1096
  badge?: string | undefined;
1098
1097
  };
1099
1098
  tier: string;
1099
+ } | {
1100
+ kind: "points";
1101
+ balance: string;
1102
+ amount: number;
1100
1103
  } | {
1101
1104
  kind: "integration";
1102
1105
  provider: "discord";
1103
1106
  action: "grant-role";
1104
1107
  roleId: string;
1105
- } | {
1106
- kind: "points";
1107
- balance: string;
1108
- amount: number;
1109
1108
  })[] | ((ctx: {
1110
1109
  settings: z.core.$InferObjectOutput<T, {}>;
1111
1110
  }) => Reward[]);
@@ -1141,7 +1140,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1141
1140
  imageAlt?: string | undefined;
1142
1141
  requirements?: ({
1143
1142
  kind: "account";
1144
- provider: "x" | "discord" | "google" | "apple";
1143
+ provider: "discord" | "x" | "google" | "apple";
1145
1144
  } | {
1146
1145
  kind: "wallet";
1147
1146
  chain?: "solana" | "eip155" | "cosmos" | undefined;
@@ -1165,7 +1164,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1165
1164
  } | undefined;
1166
1165
  } | undefined;
1167
1166
  };
1168
- integrations: ("x" | "discord")[];
1167
+ integrations: ("discord" | "x")[];
1169
1168
  fields: Record<string, {
1170
1169
  kind: "point-ledger";
1171
1170
  default: string;
@@ -1180,6 +1179,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1180
1179
  kind: "resource";
1181
1180
  default: string;
1182
1181
  source: {
1182
+ provider: "domino";
1183
+ resource: "point-ledger";
1184
+ } | {
1183
1185
  provider: "discord";
1184
1186
  resource: "channel";
1185
1187
  types: ("text" | "announcement")[];
@@ -1187,9 +1189,6 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1187
1189
  provider: "discord";
1188
1190
  resource: "role";
1189
1191
  assignable: boolean;
1190
- } | {
1191
- provider: "domino";
1192
- resource: "point-ledger";
1193
1192
  };
1194
1193
  label: string;
1195
1194
  description?: string | undefined;
@@ -1263,15 +1262,15 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1263
1262
  badge?: string | undefined;
1264
1263
  };
1265
1264
  tier: string;
1265
+ } | {
1266
+ kind: "points";
1267
+ balance: string;
1268
+ amount: number;
1266
1269
  } | {
1267
1270
  kind: "integration";
1268
1271
  provider: "discord";
1269
1272
  action: "grant-role";
1270
1273
  roleId: string;
1271
- } | {
1272
- kind: "points";
1273
- balance: string;
1274
- amount: number;
1275
1274
  })[];
1276
1275
  humanReview: boolean;
1277
1276
  trigger: {
@@ -1293,7 +1292,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1293
1292
  actor?: "staff" | "member" | undefined;
1294
1293
  } | {
1295
1294
  kind: "manual";
1296
- input: "none" | "quiz" | "photo";
1295
+ input: "photo" | "quiz" | "none";
1297
1296
  actor?: "staff" | "member" | undefined;
1298
1297
  } | {
1299
1298
  kind: "automatic";
@@ -1337,9 +1336,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1337
1336
  path: string;
1338
1337
  equals: string | number | boolean;
1339
1338
  })[] | undefined;
1340
- enrollment?: "none" | "required" | undefined;
1339
+ enrollment?: "required" | "none" | undefined;
1341
1340
  since?: "activation" | "window" | "enrollment" | undefined;
1342
- historical?: "staff" | "claim" | "automatic" | undefined;
1341
+ historical?: "automatic" | "staff" | "claim" | undefined;
1343
1342
  content?: true | undefined;
1344
1343
  } | undefined;
1345
1344
  };
@@ -1362,6 +1361,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1362
1361
  title: string;
1363
1362
  })[];
1364
1363
  completion: {
1364
+ kind: "streak";
1365
+ days: number;
1366
+ } | {
1365
1367
  kind: "progress";
1366
1368
  goal: {
1367
1369
  kind: "count";
@@ -1378,9 +1380,6 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1378
1380
  durationMs: number;
1379
1381
  };
1380
1382
  repeat: "repeat" | "once";
1381
- } | {
1382
- kind: "streak";
1383
- days: number;
1384
1383
  } | {
1385
1384
  kind: "once";
1386
1385
  } | {
@@ -1406,7 +1405,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1406
1405
  campaign?: {
1407
1406
  key: string;
1408
1407
  title: string;
1409
- enrollment: "none" | "required";
1408
+ enrollment: "required" | "none";
1410
1409
  window?: {
1411
1410
  from: number;
1412
1411
  until: number;
@@ -1521,15 +1520,15 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1521
1520
  badge?: string | undefined;
1522
1521
  };
1523
1522
  tier: string;
1523
+ } | {
1524
+ kind: "points";
1525
+ balance: string;
1526
+ amount: number;
1524
1527
  } | {
1525
1528
  kind: "integration";
1526
1529
  provider: "discord";
1527
1530
  action: "grant-role";
1528
1531
  roleId: string;
1529
- } | {
1530
- kind: "points";
1531
- balance: string;
1532
- amount: number;
1533
1532
  })[] | ((ctx: {
1534
1533
  settings: z.core.$InferObjectOutput<T, {}>;
1535
1534
  }) => Reward[]);
@@ -1565,7 +1564,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1565
1564
  imageAlt?: string | undefined;
1566
1565
  requirements?: ({
1567
1566
  kind: "account";
1568
- provider: "x" | "discord" | "google" | "apple";
1567
+ provider: "discord" | "x" | "google" | "apple";
1569
1568
  } | {
1570
1569
  kind: "wallet";
1571
1570
  chain?: "solana" | "eip155" | "cosmos" | undefined;
@@ -1589,7 +1588,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1589
1588
  } | undefined;
1590
1589
  } | undefined;
1591
1590
  };
1592
- integrations: ("x" | "discord")[];
1591
+ integrations: ("discord" | "x")[];
1593
1592
  fields: Record<string, {
1594
1593
  kind: "point-ledger";
1595
1594
  default: string;
@@ -1604,6 +1603,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1604
1603
  kind: "resource";
1605
1604
  default: string;
1606
1605
  source: {
1606
+ provider: "domino";
1607
+ resource: "point-ledger";
1608
+ } | {
1607
1609
  provider: "discord";
1608
1610
  resource: "channel";
1609
1611
  types: ("text" | "announcement")[];
@@ -1611,9 +1613,6 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1611
1613
  provider: "discord";
1612
1614
  resource: "role";
1613
1615
  assignable: boolean;
1614
- } | {
1615
- provider: "domino";
1616
- resource: "point-ledger";
1617
1616
  };
1618
1617
  label: string;
1619
1618
  description?: string | undefined;
@@ -1687,15 +1686,15 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1687
1686
  badge?: string | undefined;
1688
1687
  };
1689
1688
  tier: string;
1689
+ } | {
1690
+ kind: "points";
1691
+ balance: string;
1692
+ amount: number;
1690
1693
  } | {
1691
1694
  kind: "integration";
1692
1695
  provider: "discord";
1693
1696
  action: "grant-role";
1694
1697
  roleId: string;
1695
- } | {
1696
- kind: "points";
1697
- balance: string;
1698
- amount: number;
1699
1698
  })[];
1700
1699
  humanReview: boolean;
1701
1700
  trigger: {
@@ -1717,7 +1716,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1717
1716
  actor?: "staff" | "member" | undefined;
1718
1717
  } | {
1719
1718
  kind: "manual";
1720
- input: "none" | "quiz" | "photo";
1719
+ input: "photo" | "quiz" | "none";
1721
1720
  actor?: "staff" | "member" | undefined;
1722
1721
  } | {
1723
1722
  kind: "automatic";
@@ -1761,9 +1760,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1761
1760
  path: string;
1762
1761
  equals: string | number | boolean;
1763
1762
  })[] | undefined;
1764
- enrollment?: "none" | "required" | undefined;
1763
+ enrollment?: "required" | "none" | undefined;
1765
1764
  since?: "activation" | "window" | "enrollment" | undefined;
1766
- historical?: "staff" | "claim" | "automatic" | undefined;
1765
+ historical?: "automatic" | "staff" | "claim" | undefined;
1767
1766
  content?: true | undefined;
1768
1767
  } | undefined;
1769
1768
  };
@@ -1786,6 +1785,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1786
1785
  title: string;
1787
1786
  })[];
1788
1787
  completion: {
1788
+ kind: "streak";
1789
+ days: number;
1790
+ } | {
1789
1791
  kind: "progress";
1790
1792
  goal: {
1791
1793
  kind: "count";
@@ -1802,9 +1804,6 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1802
1804
  durationMs: number;
1803
1805
  };
1804
1806
  repeat: "repeat" | "once";
1805
- } | {
1806
- kind: "streak";
1807
- days: number;
1808
1807
  } | {
1809
1808
  kind: "once";
1810
1809
  } | {
@@ -1830,7 +1829,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1830
1829
  campaign?: {
1831
1830
  key: string;
1832
1831
  title: string;
1833
- enrollment: "none" | "required";
1832
+ enrollment: "required" | "none";
1834
1833
  window?: {
1835
1834
  from: number;
1836
1835
  until: number;
package/dist/authoring.js CHANGED
@@ -5,12 +5,12 @@ import {
5
5
  import {
6
6
  CapabilityError,
7
7
  capabilityErrorCodes
8
- } from "./chunk-MC6V6VMG.js";
8
+ } from "./chunk-4OC7REYX.js";
9
9
  import {
10
10
  sourceDataSchema,
11
11
  sourceRoles,
12
12
  validateQuestShape
13
- } from "./chunk-AXQYGVOP.js";
13
+ } from "./chunk-LPURBE7D.js";
14
14
  import {
15
15
  badgeDeclarationSchema,
16
16
  defineOffer,
@@ -20,11 +20,11 @@ import {
20
20
  leaderboardAuthoringSchema,
21
21
  pointLedgerDeclarationSchema,
22
22
  referralAuthoringSchema
23
- } from "./chunk-MRU7GX2V.js";
23
+ } from "./chunk-C3KL5SGM.js";
24
24
  import {
25
25
  telegramReactionDataSchema,
26
26
  telegramReactionsNamespace
27
- } from "./chunk-W33PYWYQ.js";
27
+ } from "./chunk-JNBNL7FE.js";
28
28
  import {
29
29
  authoringKey,
30
30
  badgeReward,
@@ -81,10 +81,10 @@ import {
81
81
  whereSchemaIssue,
82
82
  whereSettings,
83
83
  xSearchSourceSchema
84
- } from "./chunk-6UFXPKLA.js";
84
+ } from "./chunk-BVEWY2ZL.js";
85
85
 
86
86
  // src/builders.ts
87
- import { z } from "zod";
87
+ import * as z from "zod";
88
88
  function defineBadge(input) {
89
89
  return resourceHandle("badge", badgeDeclarationSchema.parse(input));
90
90
  }
@@ -378,7 +378,7 @@ var settings = {
378
378
 
379
379
  // src/authoring.ts
380
380
  import { z as z2 } from "zod";
381
- import { z as z3 } from "zod";
381
+ import * as z3 from "zod";
382
382
  var badge = (definition) => badgeReward(definition.key, definition.name);
383
383
  var points = (ledger, amount) => pointsRewardSchema.parse({
384
384
  kind: "points",
@@ -1,5 +1,5 @@
1
- import { z } from 'zod';
2
- import { a as AttemptStatus } from './schema-D57mhL2q.js';
1
+ import * as z from 'zod';
2
+ import { a as AttemptStatus } from './schema-DquhoBae.js';
3
3
 
4
4
  declare const collectionCodeSchema: z.ZodString;
5
5
  declare const collectionPassSchema: z.ZodObject<{
package/dist/avatar.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { L as LinkedWallet } from './wallet-CDyo-U4n.js';
2
- import { P as ProfileAvatar } from './profiles-D29SS12z.js';
1
+ import { L as LinkedWallet } from './wallet-t7uNDg9p.js';
2
+ import { P as ProfileAvatar } from './profiles-BHuQdzsW.js';
3
3
  import 'zod';
4
4
 
5
5
  /**
package/dist/browser.d.ts CHANGED
@@ -1,15 +1,15 @@
1
- import { n as SubmissionStore, f as RelayClientOptions, R as RelayClient } from './client-HG0uMG0Q.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, T as TelegramSignInOption, 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, t as telegramMiniAppInitData, w as walletStandardSolanaSigner } from './telegram-browser-DaP0Rawg.js';
3
- import './groups-CfyRewkJ.js';
1
+ import { o as SubmissionStore, f as RelayClientOptions, R as RelayClient } from './client-Ciy0g8Hx.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, T as TelegramSignInOption, 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, t as telegramMiniAppInitData, w as walletStandardSolanaSigner } from './telegram-browser-DJiawHY-.js';
3
+ import './groups-sgKusEzF.js';
4
4
  import 'zod';
5
- import './schema-D57mhL2q.js';
6
- import './pages-D1xrbGJl.js';
7
- import './submission-input-DjXg0o-r.js';
5
+ import './schema-DquhoBae.js';
6
+ import './pages-DFZThUH7.js';
7
+ import './submission-input-Dr0v6J9N.js';
8
8
  import './action-DBzILFx9.js';
9
- import './participant-activity-DYdUUhw2.js';
10
- import './accounts-B31dWEYD.js';
11
- import './profiles-D29SS12z.js';
12
- import './wallet-CDyo-U4n.js';
9
+ import './participant-activity-BPZiW7m7.js';
10
+ import './accounts-DRPENuZe.js';
11
+ import './profiles-BHuQdzsW.js';
12
+ import './wallet-t7uNDg9p.js';
13
13
 
14
14
  /** Browser client with durable submission recovery; safe to construct during SSR. */
15
15
  declare function createBrowserRelayClient(options: RelayClientOptions): RelayClient;
package/dist/browser.js CHANGED
@@ -12,16 +12,16 @@ import {
12
12
  solanaSigner,
13
13
  telegramMiniAppInitData,
14
14
  walletStandardSolanaSigner
15
- } from "./chunk-FE6SQTXF.js";
16
- import "./chunk-LR2HLHIF.js";
17
- import "./chunk-E7MVYASS.js";
18
- import "./chunk-GB26FIZT.js";
19
- import "./chunk-MRU7GX2V.js";
20
- import "./chunk-W33PYWYQ.js";
21
- import "./chunk-WOGCRDFT.js";
22
- import "./chunk-JKFSDBQX.js";
23
- import "./chunk-JUQ2GNMD.js";
24
- import "./chunk-6UFXPKLA.js";
15
+ } from "./chunk-CMGGWWH3.js";
16
+ import "./chunk-FHOEVR3S.js";
17
+ import "./chunk-W7PDXGYB.js";
18
+ import "./chunk-MNL5NSC4.js";
19
+ import "./chunk-C3KL5SGM.js";
20
+ import "./chunk-JNBNL7FE.js";
21
+ import "./chunk-CCTZIHWN.js";
22
+ import "./chunk-AOB3N4QO.js";
23
+ import "./chunk-PNCLJOUD.js";
24
+ import "./chunk-BVEWY2ZL.js";
25
25
  export {
26
26
  browserSubmissionStore,
27
27
  cosmosChainList,
@@ -0,0 +1,71 @@
1
+ import * as z from 'zod';
2
+
3
+ /**
4
+ * Why an evaluator capability could not answer:
5
+ *
6
+ * - `not-linked`: the call needs a member account that is not linked, and its result cannot be
7
+ * null, such as an image check of the member's X profile picture. Readers of the member's own
8
+ * accounts return `null` instead.
9
+ * - `provider-unavailable`: the provider (X, Discord, a chain RPC, AI review) did not answer, or
10
+ * the project's integration cannot reach it.
11
+ * - `author-error`: the call cannot be answered as written: invalid input, an undeclared
12
+ * integration, an unknown tracker, a chain Relay does not read, a wallet the member never
13
+ * linked, or an image that does not exist.
14
+ *
15
+ * Later versions can add codes. Treat an unknown code as a failure its `message` explains.
16
+ */
17
+ declare const capabilityErrorCodes: readonly ["not-linked", "provider-unavailable", "author-error"];
18
+ /** @compat open */
19
+ type KnownCapabilityErrorCode = (typeof capabilityErrorCodes)[number];
20
+ /** A known code, or one a newer Relay added. */
21
+ type CapabilityErrorCode = KnownCapabilityErrorCode | (string & {});
22
+ /**
23
+ * A capability failure as it crosses the sandbox boundary and as Relay captures it. Open, so a
24
+ * newer Relay can add codes and fields without breaking an older evaluator or Worker.
25
+ */
26
+ declare const capabilityFailureSchema: z.ZodObject<{
27
+ code: z.ZodString;
28
+ message: z.ZodString;
29
+ /**
30
+ * True when Relay retries the attempt if the error reaches it uncaught, and calls the provider
31
+ * again. A failure that is not retryable is captured (or follows from the attempt's pinned
32
+ * inputs), so every run of the attempt sees it again. A retryable failure that quest code
33
+ * handles and moves past is final for the attempt; one that escapes the evaluation is retried.
34
+ */
35
+ retryable: z.ZodBoolean;
36
+ }, z.core.$loose>;
37
+ type CapabilityFailure = z.infer<typeof capabilityFailureSchema>;
38
+ /**
39
+ * Thrown by an evaluator capability (`ctx.x`, `ctx.discord`, `ctx.wallet`, `ctx.trackers`,
40
+ * `ctx.images`, `ctx.review`) that could not answer. A capability whose subject is missing (an
41
+ * account the member has not linked, a deleted post or message) returns `null` instead of
42
+ * throwing.
43
+ *
44
+ * Catch it to decide yourself; rethrow anything else. An uncaught retryable error makes Relay
45
+ * retry the attempt later; an uncaught one that is not retryable fails it.
46
+ *
47
+ * ```ts
48
+ * try {
49
+ * return (await ctx.x.follows({ userId })) ? decision.accept() : decision.reject({ reason })
50
+ * } catch (error) {
51
+ * if (error instanceof CapabilityError && error.code === "provider-unavailable")
52
+ * return decision.review({ reason: "X is unavailable" })
53
+ * throw error
54
+ * }
55
+ * ```
56
+ */
57
+ declare class CapabilityError extends Error {
58
+ readonly code: CapabilityErrorCode;
59
+ readonly retryable: boolean;
60
+ constructor(code: CapabilityErrorCode, message: string, options?: {
61
+ retryable?: boolean;
62
+ });
63
+ static [Symbol.hasInstance](value: unknown): boolean;
64
+ /**
65
+ * The error for a captured or transported failure. A code this SDK does not know is never
66
+ * retryable: nothing tells it a retry would help.
67
+ */
68
+ static from(failure: CapabilityFailure): CapabilityError;
69
+ }
70
+
71
+ export { CapabilityError as C, type KnownCapabilityErrorCode as K, type CapabilityErrorCode as a, type CapabilityFailure as b, capabilityErrorCodes as c, capabilityFailureSchema as d };
@@ -6,7 +6,7 @@ import {
6
6
  imageSightingsSchema,
7
7
  imageUploadsSchema,
8
8
  publishedImageSchema
9
- } from "./chunk-B4EZ76WX.js";
9
+ } from "./chunk-FPKBRUIC.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-GB26FIZT.js";
27
+ } from "./chunk-MNL5NSC4.js";
28
28
  import {
29
29
  badgeArtifactSchema,
30
30
  badgeSchema,
@@ -57,15 +57,15 @@ import {
57
57
  referralDefinitionSchema,
58
58
  referralHistorySchema,
59
59
  referralSummarySchema
60
- } from "./chunk-MRU7GX2V.js";
60
+ } from "./chunk-C3KL5SGM.js";
61
61
  import {
62
62
  telegramAccountConnectionSchema
63
- } from "./chunk-W33PYWYQ.js";
63
+ } from "./chunk-JNBNL7FE.js";
64
64
  import {
65
65
  exchangeResultSchema,
66
66
  memberSummarySchema,
67
67
  participantSessionSchema
68
- } from "./chunk-JUQ2GNMD.js";
68
+ } from "./chunk-PNCLJOUD.js";
69
69
  import {
70
70
  accountConnectionSchema,
71
71
  attemptSchema,
@@ -96,10 +96,10 @@ import {
96
96
  walletBalanceSchema,
97
97
  walletMessageChallengeSchema,
98
98
  walletSignInNetworksSchema
99
- } from "./chunk-6UFXPKLA.js";
99
+ } from "./chunk-BVEWY2ZL.js";
100
100
 
101
101
  // src/deployments.ts
102
- import { z } from "zod";
102
+ import * as z from "zod";
103
103
  var projectCatalogArtifactSchema = catalogDeploymentSchema.omit({ expectedRevision: true }).extend({
104
104
  engagement: z.array(engagementArtifactSchema).max(50).default([]),
105
105
  trackers: z.array(trackerArtifactSchema).max(50).default([]),
@@ -247,7 +247,7 @@ var capabilityResponses = {
247
247
  };
248
248
 
249
249
  // src/activity.ts
250
- import { z as z2 } from "zod";
250
+ import * as z2 from "zod";
251
251
  var activityTypes = {
252
252
  attemptRejected: "attempt.rejected",
253
253
  entitlementGranted: "entitlement.granted",
@@ -262,7 +262,7 @@ var activityTypes = {
262
262
  var activityTypeSchema = z2.string().min(1).max(100);
263
263
 
264
264
  // src/automatic-outcomes.ts
265
- import { z as z3 } from "zod";
265
+ import * as z3 from "zod";
266
266
  var automaticEventSchema = z3.discriminatedUnion("kind", [
267
267
  z3.object({
268
268
  kind: z3.literal("completion"),
@@ -593,7 +593,7 @@ var participantResponses = {
593
593
  };
594
594
 
595
595
  // src/evolving-responses.ts
596
- import { z as z4 } from "zod";
596
+ import * as z4 from "zod";
597
597
  var offerResponseSchema = responseSchema(offerSchema);
598
598
  var offerListResponseSchema = responseListSchema(offerSchema);
599
599
  var redemptionResponseSchema = responseSchema(redemptionSchema);
@@ -1,5 +1,5 @@
1
1
  // src/capability-error.ts
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  var capabilityErrorCodes = [
4
4
  "not-linked",
5
5
  "provider-unavailable",
@@ -1,6 +1,6 @@
1
1
  // package.json
2
2
  var name = "@domino-sdk/relay";
3
- var version = "1.24.1";
3
+ var version = "1.30.0";
4
4
 
5
5
  // src/client-identity.ts
6
6
  function clientIdentity() {