@domino-sdk/relay 1.39.0 → 1.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/{attempt-captures-CSiN1HKd.d.ts → attempt-captures-CoaD0RmS.d.ts} +1 -1
  2. package/dist/authoring.d.ts +49 -49
  3. package/dist/authoring.js +4 -4
  4. package/dist/{automatic-outcomes-DDbgRubQ.d.ts → automatic-outcomes-B82GzaVN.d.ts} +1 -1
  5. package/dist/avatar.d.ts +2 -2
  6. package/dist/browser.d.ts +9 -9
  7. package/dist/browser.js +10 -10
  8. package/dist/{chunk-SBW52XXL.js → chunk-34ZGBXN7.js} +1 -1
  9. package/dist/{chunk-E4CDOF4H.js → chunk-3VSX2V5N.js} +13 -7
  10. package/dist/{chunk-BYX27T2S.js → chunk-6KZPQI6F.js} +2 -2
  11. package/dist/{chunk-OEO5OBY5.js → chunk-6RYZG6TV.js} +579 -533
  12. package/dist/{chunk-V7KYVH3Z.js → chunk-B3KVWKL2.js} +1 -1
  13. package/dist/{chunk-FTGW72A6.js → chunk-IEBVJN6A.js} +1 -1
  14. package/dist/{chunk-RW4XQN4Z.js → chunk-JFNJE2I4.js} +1 -1
  15. package/dist/{chunk-B65YJ6K4.js → chunk-OZQML7VU.js} +1 -1
  16. package/dist/{chunk-CRX274HO.js → chunk-PG3MC2AM.js} +1 -1
  17. package/dist/{chunk-ANHELJIY.js → chunk-QLDURQPB.js} +1 -1
  18. package/dist/{chunk-ZT7FPD7B.js → chunk-RMZXRL4V.js} +1 -1
  19. package/dist/{chunk-XZKZJIES.js → chunk-SAUBTWEA.js} +6 -2
  20. package/dist/{chunk-2JBNPAE7.js → chunk-TA3SFVT5.js} +2 -2
  21. package/dist/{chunk-ZTEXSD5D.js → chunk-UXFFSWB3.js} +8 -8
  22. package/dist/{chunk-VDRO7BU5.js → chunk-Y2BQRXJD.js} +4 -4
  23. package/dist/{chunk-YNQPFRQO.js → chunk-Y4OM7CHT.js} +1 -1
  24. package/dist/{client-CxHKODc4.d.ts → client-CAgnkFxn.d.ts} +7 -7
  25. package/dist/{deployments-DYeuxXYg.d.ts → deployments-DuIdJ2Ui.d.ts} +349 -213
  26. package/dist/{groups-DY5rZssO.d.ts → groups-CX1C9gln.d.ts} +2 -2
  27. package/dist/index.d.ts +10 -10
  28. package/dist/index.js +9 -9
  29. package/dist/internal.d.ts +10 -10
  30. package/dist/internal.js +8 -8
  31. package/dist/{offers-DtYGNKdQ.d.ts → offers-UL9bdaP0.d.ts} +2 -2
  32. package/dist/{pages-DR2YRvAp.d.ts → pages-Brtjxb2P.d.ts} +26 -2
  33. package/dist/{participant-activity-CoB2F30C.d.ts → participant-activity-iciCEs_8.d.ts} +1 -1
  34. package/dist/portal-proxy.js +3 -3
  35. package/dist/{profiles-BHuQdzsW.d.ts → profiles-Cdv4BSd_.d.ts} +1 -1
  36. package/dist/react/index.d.ts +14 -11
  37. package/dist/react/index.js +17 -10
  38. package/dist/{schema-Cgmj-CbC.d.ts → schema-Dg5_t7Pq.d.ts} +17 -1
  39. package/dist/schema.d.ts +367 -325
  40. package/dist/schema.js +19 -7
  41. package/dist/server/index.d.ts +10 -10
  42. package/dist/server/index.js +768 -611
  43. package/dist/{submission-input-BkIbBPRU.d.ts → submission-input-D5Gh3GR0.d.ts} +2 -2
  44. package/dist/{telegram-browser-laDdm730.d.ts → telegram-browser-riVjoKFg.d.ts} +3 -3
  45. package/dist/testing.d.ts +4 -4
  46. package/dist/testing.js +5 -5
  47. package/dist/{transport-CkTEfXL9.d.ts → transport-VGEsiskZ.d.ts} +5100 -3074
  48. package/dist/{wallet-t7uNDg9p.d.ts → wallet-Ac7OFpOr.d.ts} +1 -1
  49. package/dist/{x-vVG6gZqi.d.ts → x-CAxOrR61.d.ts} +1 -1
  50. package/package.json +1 -1
@@ -2,7 +2,7 @@ import {
2
2
  identifier,
3
3
  responseShape,
4
4
  xTweetSchema
5
- } from "./chunk-OEO5OBY5.js";
5
+ } from "./chunk-6RYZG6TV.js";
6
6
 
7
7
  // src/x.ts
8
8
  import * as z from "zod";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  identifier
3
- } from "./chunk-OEO5OBY5.js";
3
+ } from "./chunk-6RYZG6TV.js";
4
4
 
5
5
  // src/auth.ts
6
6
  import * as z from "zod";
@@ -12,7 +12,7 @@ import {
12
12
  responseShape,
13
13
  rewardKey,
14
14
  tierRewardSchema
15
- } from "./chunk-OEO5OBY5.js";
15
+ } from "./chunk-6RYZG6TV.js";
16
16
 
17
17
  // src/badges.ts
18
18
  import * as z from "zod";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  accountConnectionSchema
3
- } from "./chunk-OEO5OBY5.js";
3
+ } from "./chunk-6RYZG6TV.js";
4
4
 
5
5
  // src/telegram.ts
6
6
  import * as z from "zod";
@@ -2,7 +2,7 @@ import {
2
2
  RelayErrorCode,
3
3
  clientError,
4
4
  isRequestError
5
- } from "./chunk-OEO5OBY5.js";
5
+ } from "./chunk-6RYZG6TV.js";
6
6
 
7
7
  // src/action.ts
8
8
  function withActionId(value) {
@@ -1,6 +1,6 @@
1
1
  // package.json
2
2
  var name = "@domino-sdk/relay";
3
- var version = "1.39.0";
3
+ var version = "1.42.0";
4
4
 
5
5
  // src/client-identity.ts
6
6
  function clientIdentity() {
@@ -8,7 +8,7 @@ import {
8
8
  rewardBundleSchema,
9
9
  settingsValuesSchema,
10
10
  trackerTriggerContextSchema
11
- } from "./chunk-OEO5OBY5.js";
11
+ } from "./chunk-6RYZG6TV.js";
12
12
 
13
13
  // src/server/attempt-captures.ts
14
14
  import * as z from "zod";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  badgeSchema,
3
3
  pointLedgerReferenceSchema
4
- } from "./chunk-RW4XQN4Z.js";
4
+ } from "./chunk-JFNJE2I4.js";
5
5
  import {
6
6
  authoringIdentityShape,
7
7
  entitlementSchema,
@@ -17,11 +17,12 @@ import {
17
17
  responseShape,
18
18
  retryCooldownMsSchema,
19
19
  reviewModeSchema,
20
+ sdkRuntimeReferenceSchema,
20
21
  settingsValuesSchema,
21
22
  storedQuestDescriptionSchema,
22
23
  storedReviewModeSchema,
23
24
  tieredRewardReferenceSchema
24
- } from "./chunk-OEO5OBY5.js";
25
+ } from "./chunk-6RYZG6TV.js";
25
26
 
26
27
  // src/participant-activity.ts
27
28
  import * as z from "zod";
@@ -126,6 +127,8 @@ var questTypeVersionSchema = z2.object({
126
127
  id: identifier,
127
128
  version: identifier,
128
129
  code: z2.string(),
130
+ /** The SDK runtime `code` imports. Absent, the code bundles its own SDK. */
131
+ runtime: sdkRuntimeReferenceSchema.optional(),
129
132
  definition: storedQuestDescriptionSchema,
130
133
  provider: storedReviewModeSchema,
131
134
  createdAt: z2.number()
@@ -201,6 +204,7 @@ var catalogDeploymentSchema = z2.object({
201
204
  types: z2.array(
202
205
  z2.object({
203
206
  code: z2.string().min(1).max(1e6),
207
+ runtime: sdkRuntimeReferenceSchema.optional(),
204
208
  provider: reviewModeSchema
205
209
  })
206
210
  ).max(50).default([]),
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  createRelayClient
3
- } from "./chunk-ZTEXSD5D.js";
3
+ } from "./chunk-UXFFSWB3.js";
4
4
  import {
5
5
  RelayErrorCode,
6
6
  asRelayError,
7
7
  clientError,
8
8
  cosmosChain
9
- } from "./chunk-OEO5OBY5.js";
9
+ } from "./chunk-6RYZG6TV.js";
10
10
 
11
11
  // src/base58.ts
12
12
  var alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createRelayAction,
3
3
  withActionId
4
- } from "./chunk-CRX274HO.js";
4
+ } from "./chunk-PG3MC2AM.js";
5
5
  import {
6
6
  collectionPassSchema,
7
7
  participantActivityQuerySchema,
@@ -17,7 +17,7 @@ import {
17
17
  questOutcomeSchema,
18
18
  rewardDeliveriesSchema,
19
19
  rewardDeliveryQuerySchema
20
- } from "./chunk-XZKZJIES.js";
20
+ } from "./chunk-SAUBTWEA.js";
21
21
  import {
22
22
  AVATAR_UPLOAD_LIMIT,
23
23
  avatarUploadTypes,
@@ -48,29 +48,29 @@ import {
48
48
  referralDefinitionSchema,
49
49
  referralHistorySchema,
50
50
  referralSummarySchema
51
- } from "./chunk-RW4XQN4Z.js";
51
+ } from "./chunk-JFNJE2I4.js";
52
52
  import {
53
53
  telegramAccountConnectionSchema,
54
54
  telegramMiniAppSignInSchema,
55
55
  telegramSignInMethodsSchema
56
- } from "./chunk-B65YJ6K4.js";
56
+ } from "./chunk-OZQML7VU.js";
57
57
  import {
58
58
  PARTICIPANT_TIMEOUT,
59
59
  lifetime,
60
60
  retryAfter,
61
61
  retrying,
62
62
  validTimeout
63
- } from "./chunk-SBW52XXL.js";
63
+ } from "./chunk-34ZGBXN7.js";
64
64
  import {
65
65
  clientIdentity
66
- } from "./chunk-ANHELJIY.js";
66
+ } from "./chunk-QLDURQPB.js";
67
67
  import {
68
68
  exchangeResultSchema,
69
69
  exchangeSchema,
70
70
  memberSummarySchema,
71
71
  participantSessionSchema,
72
72
  sessionMember
73
- } from "./chunk-FTGW72A6.js";
73
+ } from "./chunk-IEBVJN6A.js";
74
74
  import {
75
75
  RelayError,
76
76
  RelayErrorCode,
@@ -109,7 +109,7 @@ import {
109
109
  walletSignInNetworksSchema,
110
110
  walletSignatureSchema,
111
111
  walletUnlinkInputSchema
112
- } from "./chunk-OEO5OBY5.js";
112
+ } from "./chunk-6RYZG6TV.js";
113
113
 
114
114
  // src/legacy-submissions.ts
115
115
  import * as z from "zod";
@@ -4,20 +4,20 @@ import {
4
4
  retryAfter,
5
5
  retrying,
6
6
  validTimeout
7
- } from "./chunk-SBW52XXL.js";
7
+ } from "./chunk-34ZGBXN7.js";
8
8
  import {
9
9
  clientIdentity
10
- } from "./chunk-ANHELJIY.js";
10
+ } from "./chunk-QLDURQPB.js";
11
11
  import {
12
12
  authScopeSchema
13
- } from "./chunk-FTGW72A6.js";
13
+ } from "./chunk-IEBVJN6A.js";
14
14
  import {
15
15
  RequestError,
16
16
  appIdentityKindSchema,
17
17
  isRequestError,
18
18
  knownResponse,
19
19
  openIdentityKindSchema
20
- } from "./chunk-OEO5OBY5.js";
20
+ } from "./chunk-6RYZG6TV.js";
21
21
 
22
22
  // src/configuration.ts
23
23
  function questConfiguration(release) {
@@ -5,7 +5,7 @@ import {
5
5
  isKnownTrackerSource,
6
6
  trackerDataSchema,
7
7
  xAccountRoles
8
- } from "./chunk-OEO5OBY5.js";
8
+ } from "./chunk-6RYZG6TV.js";
9
9
 
10
10
  // src/quest-shape.ts
11
11
  function validateQuestShape(description, options = {}) {
@@ -1,13 +1,13 @@
1
- import { b4 as referralAcceptSchema, i as LeaderboardQuery, b as CampaignEnrollmentInput, d as CampaignWithdrawalInput, o as PointHistoryQuery, m as PointEntryKind, f as LeaderboardHistoryQuery, a9 as engagementPageQuerySchema } from './groups-DY5rZssO.js';
2
- import { j as QuestView, k as ResponseSchema, a as PageQuery, c as QuestEnrollmentInput, Q as QuestClaimInput, g as QuestOutcomeQuery, a0 as questExperienceSchema, t as RewardDeliveryQuery, l as RewardDeliveryAction, H as contentQualificationQuerySchema } from './pages-DR2YRvAp.js';
3
- import { M as MissingPrerequisite, V as ValueEvidence } from './submission-input-BkIbBPRU.js';
1
+ import { y as referralAcceptSchema, i as LeaderboardQuery, b as CampaignEnrollmentInput, d as CampaignWithdrawalInput, o as PointHistoryQuery, m as PointEntryKind, f as LeaderboardHistoryQuery, z as engagementPageQuerySchema } from './groups-CX1C9gln.js';
2
+ import { j as QuestView, k as ResponseSchema, a as PageQuery, c as QuestEnrollmentInput, Q as QuestClaimInput, g as QuestOutcomeQuery, q as questExperienceSchema, l as RewardDeliveryQuery, m as RewardDeliveryAction, n as contentQualificationQuerySchema } from './pages-Brtjxb2P.js';
3
+ import { M as MissingPrerequisite, V as ValueEvidence } from './submission-input-D5Gh3GR0.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, cs as submitSchema, bl as contentPerformanceQuerySchema } from './schema-Cgmj-CbC.js';
6
- import { b as ParticipantSession, d as exchangeSchema, R as RelayEvent, P as ParticipantActivity } from './participant-activity-CoB2F30C.js';
5
+ import { f as QuizEvidence, A as Attempt, M as MemberProgress, a as AttemptStatus, h as TrackerSkipCode, ae as submitSchema, af as contentPerformanceQuerySchema } from './schema-Dg5_t7Pq.js';
6
+ import { b as ParticipantSession, e as exchangeSchema, R as RelayEvent, P as ParticipantActivity } from './participant-activity-iciCEs_8.js';
7
7
  import * as z from 'zod';
8
8
  import { a as AuthProvider } from './accounts-DRPENuZe.js';
9
- import { F as profileUpdateSchema, c as ProfileCompletionQuery } from './profiles-BHuQdzsW.js';
10
- import { y as walletAddressInputSchema, I as walletSignatureSchema, L as LinkedWallet, f as WalletSigner } from './wallet-t7uNDg9p.js';
9
+ import { p as profileUpdateSchema, c as ProfileCompletionQuery } from './profiles-Cdv4BSd_.js';
10
+ import { w as walletAddressInputSchema, o as walletSignatureSchema, L as LinkedWallet, f as WalletSigner } from './wallet-Ac7OFpOr.js';
11
11
 
12
12
  /** What happened, as in every Domino client error (see `RequestError`). */
13
13
  type RelayErrorKind = RequestErrorKind;