@domino-sdk/relay 1.15.0 → 1.16.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.
@@ -247,8 +247,8 @@ declare function defineLeaderboard(input: Omit<LeaderboardInput, "key" | "id" |
247
247
  kind: "earned";
248
248
  }> | ReturnType<typeof earned>;
249
249
  }): {
250
- balance: string;
251
250
  title: string;
251
+ balance: string;
252
252
  access: "participants" | "public";
253
253
  score: {
254
254
  kind: "balance";
@@ -1014,15 +1014,15 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1014
1014
  };
1015
1015
  };
1016
1016
  tier: string;
1017
- } | {
1018
- kind: "points";
1019
- balance: string;
1020
- amount: number;
1021
1017
  } | {
1022
1018
  kind: "integration";
1023
1019
  provider: "discord";
1024
1020
  action: "grant-role";
1025
1021
  roleId: string;
1022
+ } | {
1023
+ kind: "points";
1024
+ balance: string;
1025
+ amount: number;
1026
1026
  })[] | ((ctx: {
1027
1027
  settings: z.core.$InferObjectOutput<T, {}>;
1028
1028
  }) => Reward[]);
@@ -1079,9 +1079,6 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1079
1079
  kind: "resource";
1080
1080
  default: string;
1081
1081
  source: {
1082
- provider: "domino";
1083
- resource: "point-ledger";
1084
- } | {
1085
1082
  provider: "discord";
1086
1083
  resource: "channel";
1087
1084
  types: ("text" | "announcement")[];
@@ -1089,6 +1086,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1089
1086
  provider: "discord";
1090
1087
  resource: "role";
1091
1088
  assignable: boolean;
1089
+ } | {
1090
+ provider: "domino";
1091
+ resource: "point-ledger";
1092
1092
  };
1093
1093
  label: string;
1094
1094
  description?: string | undefined;
@@ -1160,15 +1160,15 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1160
1160
  };
1161
1161
  };
1162
1162
  tier: string;
1163
- } | {
1164
- kind: "points";
1165
- balance: string;
1166
- amount: number;
1167
1163
  } | {
1168
1164
  kind: "integration";
1169
1165
  provider: "discord";
1170
1166
  action: "grant-role";
1171
1167
  roleId: string;
1168
+ } | {
1169
+ kind: "points";
1170
+ balance: string;
1171
+ amount: number;
1172
1172
  })[];
1173
1173
  humanReview: boolean;
1174
1174
  trigger: {
@@ -1190,7 +1190,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1190
1190
  actor?: "staff" | "member" | undefined;
1191
1191
  } | {
1192
1192
  kind: "manual";
1193
- input: "photo" | "quiz" | "none";
1193
+ input: "none" | "quiz" | "photo";
1194
1194
  actor?: "staff" | "member" | undefined;
1195
1195
  } | {
1196
1196
  kind: "automatic";
@@ -1234,9 +1234,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1234
1234
  path: string;
1235
1235
  equals: string | number | boolean;
1236
1236
  })[] | undefined;
1237
- enrollment?: "required" | "none" | undefined;
1237
+ enrollment?: "none" | "required" | undefined;
1238
1238
  since?: "activation" | "window" | "enrollment" | undefined;
1239
- historical?: "automatic" | "staff" | "claim" | undefined;
1239
+ historical?: "staff" | "claim" | "automatic" | undefined;
1240
1240
  content?: true | undefined;
1241
1241
  } | undefined;
1242
1242
  };
@@ -1259,9 +1259,6 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1259
1259
  title: string;
1260
1260
  })[];
1261
1261
  completion: {
1262
- kind: "streak";
1263
- days: number;
1264
- } | {
1265
1262
  kind: "progress";
1266
1263
  goal: {
1267
1264
  kind: "count";
@@ -1278,6 +1275,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1278
1275
  durationMs: number;
1279
1276
  };
1280
1277
  repeat: "repeat" | "once";
1278
+ } | {
1279
+ kind: "streak";
1280
+ days: number;
1281
1281
  } | {
1282
1282
  kind: "once";
1283
1283
  } | {
@@ -1303,7 +1303,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1303
1303
  campaign?: {
1304
1304
  key: string;
1305
1305
  title: string;
1306
- enrollment: "required" | "none";
1306
+ enrollment: "none" | "required";
1307
1307
  window?: {
1308
1308
  from: number;
1309
1309
  until: number;
@@ -1411,15 +1411,15 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1411
1411
  };
1412
1412
  };
1413
1413
  tier: string;
1414
- } | {
1415
- kind: "points";
1416
- balance: string;
1417
- amount: number;
1418
1414
  } | {
1419
1415
  kind: "integration";
1420
1416
  provider: "discord";
1421
1417
  action: "grant-role";
1422
1418
  roleId: string;
1419
+ } | {
1420
+ kind: "points";
1421
+ balance: string;
1422
+ amount: number;
1423
1423
  })[] | ((ctx: {
1424
1424
  settings: z.core.$InferObjectOutput<T, {}>;
1425
1425
  }) => Reward[]);
@@ -1476,9 +1476,6 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1476
1476
  kind: "resource";
1477
1477
  default: string;
1478
1478
  source: {
1479
- provider: "domino";
1480
- resource: "point-ledger";
1481
- } | {
1482
1479
  provider: "discord";
1483
1480
  resource: "channel";
1484
1481
  types: ("text" | "announcement")[];
@@ -1486,6 +1483,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1486
1483
  provider: "discord";
1487
1484
  resource: "role";
1488
1485
  assignable: boolean;
1486
+ } | {
1487
+ provider: "domino";
1488
+ resource: "point-ledger";
1489
1489
  };
1490
1490
  label: string;
1491
1491
  description?: string | undefined;
@@ -1557,15 +1557,15 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1557
1557
  };
1558
1558
  };
1559
1559
  tier: string;
1560
- } | {
1561
- kind: "points";
1562
- balance: string;
1563
- amount: number;
1564
1560
  } | {
1565
1561
  kind: "integration";
1566
1562
  provider: "discord";
1567
1563
  action: "grant-role";
1568
1564
  roleId: string;
1565
+ } | {
1566
+ kind: "points";
1567
+ balance: string;
1568
+ amount: number;
1569
1569
  })[];
1570
1570
  humanReview: boolean;
1571
1571
  trigger: {
@@ -1587,7 +1587,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1587
1587
  actor?: "staff" | "member" | undefined;
1588
1588
  } | {
1589
1589
  kind: "manual";
1590
- input: "photo" | "quiz" | "none";
1590
+ input: "none" | "quiz" | "photo";
1591
1591
  actor?: "staff" | "member" | undefined;
1592
1592
  } | {
1593
1593
  kind: "automatic";
@@ -1631,9 +1631,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1631
1631
  path: string;
1632
1632
  equals: string | number | boolean;
1633
1633
  })[] | undefined;
1634
- enrollment?: "required" | "none" | undefined;
1634
+ enrollment?: "none" | "required" | undefined;
1635
1635
  since?: "activation" | "window" | "enrollment" | undefined;
1636
- historical?: "automatic" | "staff" | "claim" | undefined;
1636
+ historical?: "staff" | "claim" | "automatic" | undefined;
1637
1637
  content?: true | undefined;
1638
1638
  } | undefined;
1639
1639
  };
@@ -1656,9 +1656,6 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1656
1656
  title: string;
1657
1657
  })[];
1658
1658
  completion: {
1659
- kind: "streak";
1660
- days: number;
1661
- } | {
1662
1659
  kind: "progress";
1663
1660
  goal: {
1664
1661
  kind: "count";
@@ -1675,6 +1672,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1675
1672
  durationMs: number;
1676
1673
  };
1677
1674
  repeat: "repeat" | "once";
1675
+ } | {
1676
+ kind: "streak";
1677
+ days: number;
1678
1678
  } | {
1679
1679
  kind: "once";
1680
1680
  } | {
@@ -1700,7 +1700,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1700
1700
  campaign?: {
1701
1701
  key: string;
1702
1702
  title: string;
1703
- enrollment: "required" | "none";
1703
+ enrollment: "none" | "required";
1704
1704
  window?: {
1705
1705
  from: number;
1706
1706
  until: number;
package/dist/browser.js CHANGED
@@ -11,15 +11,15 @@ import {
11
11
  signInOptions,
12
12
  solanaSigner,
13
13
  walletStandardSolanaSigner
14
- } from "./chunk-PUY35TH3.js";
15
- import "./chunk-PJXBW754.js";
14
+ } from "./chunk-3YCCHTCU.js";
15
+ import "./chunk-Y6SRF54G.js";
16
16
  import "./chunk-XMBM2XD5.js";
17
17
  import "./chunk-LLMJ2SUT.js";
18
18
  import "./chunk-UJACD6K2.js";
19
19
  import "./chunk-2UAVZCMH.js";
20
20
  import "./chunk-6QJ3LADK.js";
21
21
  import "./chunk-NPGENI7K.js";
22
- import "./chunk-3PPEXDWR.js";
22
+ import "./chunk-YT3QKV2L.js";
23
23
  import "./chunk-PT5STHFH.js";
24
24
  import "./chunk-46C33ASD.js";
25
25
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createRelayClient
3
- } from "./chunk-PJXBW754.js";
3
+ } from "./chunk-Y6SRF54G.js";
4
4
  import {
5
5
  RelayErrorCode,
6
6
  asRelayError,
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-NPGENI7K.js";
12
12
  import {
13
13
  clientIdentity
14
- } from "./chunk-3PPEXDWR.js";
14
+ } from "./chunk-YT3QKV2L.js";
15
15
  import {
16
16
  authScopeSchema
17
17
  } from "./chunk-PT5STHFH.js";
@@ -70,7 +70,7 @@ import {
70
70
  } from "./chunk-NPGENI7K.js";
71
71
  import {
72
72
  clientIdentity
73
- } from "./chunk-3PPEXDWR.js";
73
+ } from "./chunk-YT3QKV2L.js";
74
74
  import {
75
75
  exchangeResultSchema,
76
76
  exchangeSchema,
@@ -1,6 +1,6 @@
1
1
  // package.json
2
2
  var name = "@domino-sdk/relay";
3
- var version = "1.15.0";
3
+ var version = "1.16.0";
4
4
 
5
5
  // src/client-identity.ts
6
6
  function clientIdentity() {
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  QuestUpdatedError,
7
7
  createRelayClient
8
- } from "./chunk-PJXBW754.js";
8
+ } from "./chunk-Y6SRF54G.js";
9
9
  import {
10
10
  createRelayAction
11
11
  } from "./chunk-XMBM2XD5.js";
@@ -25,7 +25,7 @@ import {
25
25
  RequestError,
26
26
  isRequestError
27
27
  } from "./chunk-NPGENI7K.js";
28
- import "./chunk-3PPEXDWR.js";
28
+ import "./chunk-YT3QKV2L.js";
29
29
  import {
30
30
  sessionMember
31
31
  } from "./chunk-PT5STHFH.js";
@@ -1,4 +1,4 @@
1
- export { I as IdentityKindClaim, M as ManagementTransportOptions, P as ParticipantRoute, R as REFERRAL_INTEGRATION_REWARD_ERROR, c as containsReferralIntegrationReward, i as identityIntegrationInputSchema, a as identityIntegrationSchema, b as identityIntegrationSecretSchema, d as identityKindClaimSchema, e as isIntegrationParticipantPath, f as isParticipantRoute, m as managementTransport, p as parseImageExtraction, g as parseImageResult, h as participantExchangeSchema, j as participantRoutePattern, k as participantRoutes, q as questConfiguration, s as sequenceCursorSchema, l as sourceDataSchema, n as sourceRoles, v as validateQuestShape } from './transport-0ttRwUat.js';
1
+ export { I as IdentityKindClaim, M as ManagementTransportOptions, P as ParticipantRoute, R as REFERRAL_INTEGRATION_REWARD_ERROR, c as containsReferralIntegrationReward, i as identityIntegrationInputSchema, a as identityIntegrationSchema, b as identityIntegrationSecretSchema, d as identityKindClaimSchema, e as isIntegrationParticipantPath, f as isParticipantRoute, m as managementTransport, p as parseImageExtraction, g as parseImageResult, h as participantExchangeSchema, j as participantRoutePattern, k as participantRoutes, q as questConfiguration, s as sequenceCursorSchema, l as sourceDataSchema, n as sourceRoles, v as validateQuestShape } from './transport-BdrcbKi_.js';
2
2
  export { E as Extracted } from './images-Cb8QHGjn.js';
3
3
  import { c as RequestErrorKind } from './action-DBzILFx9.js';
4
4
  export { i as TrackerDataBudget, s as schemaCheckedReader, t as trackerDataBatchSteps, j as trackerDataIssue, k as trackerDataIssues, l as trackerDataPathTypes, m as trackerDataRecordSteps, w as whereSchemaIssue } from './schema-BaVl2VBS.js';
@@ -9,7 +9,7 @@ import './profiles-BHMVj0kM.js';
9
9
  import './automatic-outcomes-BcEn_L46.js';
10
10
  import './offers-Catj06u7.js';
11
11
  import './attempt-captures-DHwIVoRP.js';
12
- import './deployments-Ci6GyANg.js';
12
+ import './deployments-DIbKJO_Y.js';
13
13
 
14
14
  /** The management client's and the CLI's default deadline per call. */
15
15
  declare const MANAGEMENT_TIMEOUT = 30000;
package/dist/internal.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  participantExchangeSchema,
10
10
  questConfiguration,
11
11
  sequenceCursorSchema
12
- } from "./chunk-CHD6HHWG.js";
12
+ } from "./chunk-NM3IYYPG.js";
13
13
  import {
14
14
  parseImageExtraction,
15
15
  parseImageResult
@@ -33,7 +33,7 @@ import {
33
33
  retrying
34
34
  } from "./chunk-6QJ3LADK.js";
35
35
  import "./chunk-NPGENI7K.js";
36
- import "./chunk-3PPEXDWR.js";
36
+ import "./chunk-YT3QKV2L.js";
37
37
  import "./chunk-PT5STHFH.js";
38
38
  import {
39
39
  schemaCheckedReader,
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-AXRMT33W.js";
4
4
  import {
5
5
  clientIdentity
6
- } from "./chunk-3PPEXDWR.js";
6
+ } from "./chunk-YT3QKV2L.js";
7
7
  import {
8
8
  exchangeResultSchema
9
9
  } from "./chunk-PT5STHFH.js";
@@ -8,8 +8,8 @@ import {
8
8
  discoverSolanaWallets,
9
9
  readSignInMethods,
10
10
  signInOptionsFrom
11
- } from "../chunk-PUY35TH3.js";
12
- import "../chunk-PJXBW754.js";
11
+ } from "../chunk-3YCCHTCU.js";
12
+ import "../chunk-Y6SRF54G.js";
13
13
  import {
14
14
  createRelayAction
15
15
  } from "../chunk-XMBM2XD5.js";
@@ -26,7 +26,7 @@ import "../chunk-6QJ3LADK.js";
26
26
  import {
27
27
  isRequestError
28
28
  } from "../chunk-NPGENI7K.js";
29
- import "../chunk-3PPEXDWR.js";
29
+ import "../chunk-YT3QKV2L.js";
30
30
  import {
31
31
  sessionMember
32
32
  } from "../chunk-PT5STHFH.js";