@domino-sdk/relay 1.10.0 → 1.10.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.
package/dist/authoring.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  sourceDataSchema,
11
11
  sourceRoles,
12
12
  validateQuestShape
13
- } from "./chunk-QL77V77D.js";
13
+ } from "./chunk-WZJQ7XAT.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-UIR6NSYZ.js";
25
+ } from "./chunk-MJMFGTVV.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-23JUD56J.js";
79
+ } from "./chunk-5WK4EB5I.js";
80
80
 
81
81
  // src/builders.ts
82
82
  import { z } from "zod";
package/dist/browser.js CHANGED
@@ -11,16 +11,16 @@ import {
11
11
  signInOptions,
12
12
  solanaSigner,
13
13
  walletStandardSolanaSigner
14
- } from "./chunk-GEPSEVQO.js";
15
- import "./chunk-7BRHUUVB.js";
16
- import "./chunk-GFAFH7XR.js";
17
- import "./chunk-BKLGWPPD.js";
18
- import "./chunk-UIR6NSYZ.js";
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";
19
19
  import "./chunk-6QJ3LADK.js";
20
20
  import "./chunk-NPGENI7K.js";
21
- import "./chunk-N2HXMTVA.js";
22
- import "./chunk-BUXNTVER.js";
23
- import "./chunk-23JUD56J.js";
21
+ import "./chunk-2M3HLQFP.js";
22
+ import "./chunk-PRLGLZM4.js";
23
+ import "./chunk-5WK4EB5I.js";
24
24
  export {
25
25
  browserSubmissionStore,
26
26
  cosmosChainList,
@@ -1,6 +1,6 @@
1
1
  // package.json
2
2
  var name = "@domino-sdk/relay";
3
- var version = "1.10.0";
3
+ var version = "1.10.1";
4
4
 
5
5
  // src/client-identity.ts
6
6
  function clientIdentity() {
@@ -4,8 +4,12 @@ var responseFormat = /* @__PURE__ */ Symbol("domino.response.tolerant-v1");
4
4
  function markResponseSchema(schema) {
5
5
  return Object.assign(schema, { [responseFormat]: true });
6
6
  }
7
- var cache = /* @__PURE__ */ new WeakMap();
7
+ var shapes = /* @__PURE__ */ new WeakMap();
8
8
  function responseShape(schema) {
9
+ const existing = shapes.get(schema);
10
+ if (existing) {
11
+ return existing;
12
+ }
9
13
  const definition = { ...schema._zod.def };
10
14
  if (schema instanceof z.ZodObject) {
11
15
  Object.assign(definition, {
@@ -57,16 +61,13 @@ function responseShape(schema) {
57
61
  innerType: responseShape(definition.innerType)
58
62
  });
59
63
  }
60
- return z.clone(schema, definition);
64
+ const reader = z.clone(schema, definition);
65
+ shapes.set(schema, reader);
66
+ shapes.set(reader, reader);
67
+ return reader;
61
68
  }
62
69
  function knownResponse(schema) {
63
- const existing = cache.get(schema);
64
- if (existing) {
65
- return existing;
66
- }
67
- const reader = responseShape(schema);
68
- cache.set(schema, reader);
69
- return reader;
70
+ return responseShape(schema);
70
71
  }
71
72
  function fields(schema) {
72
73
  if (schema instanceof z.ZodObject) {
@@ -4,15 +4,15 @@ import {
4
4
  imageFieldsSchema,
5
5
  imageInspectionSchema,
6
6
  imageSightingsSchema
7
- } from "./chunk-WRBPLXVP.js";
7
+ } from "./chunk-S4IHOJEP.js";
8
8
  import {
9
9
  authScopeSchema
10
- } from "./chunk-BUXNTVER.js";
10
+ } from "./chunk-PRLGLZM4.js";
11
11
  import {
12
12
  appIdentityKindSchema,
13
13
  openIdentityKindSchema,
14
14
  photoResultSchema
15
- } from "./chunk-23JUD56J.js";
15
+ } from "./chunk-5WK4EB5I.js";
16
16
 
17
17
  // src/configuration.ts
18
18
  function questConfiguration(release) {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  createRelayClient
3
- } from "./chunk-7BRHUUVB.js";
3
+ } from "./chunk-MDN5EJY2.js";
4
4
  import {
5
5
  RelayErrorCode,
6
6
  asRelayError,
7
7
  clientError,
8
8
  cosmosChain
9
- } from "./chunk-UIR6NSYZ.js";
9
+ } from "./chunk-MJMFGTVV.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-GFAFH7XR.js";
4
+ } from "./chunk-PFKV2M4B.js";
5
5
  import {
6
6
  collectionPassSchema,
7
7
  participantActivityQuerySchema,
@@ -16,7 +16,7 @@ import {
16
16
  questOutcomeQuerySchema,
17
17
  questOutcomeSchema,
18
18
  rewardDeliveriesSchema
19
- } from "./chunk-BKLGWPPD.js";
19
+ } from "./chunk-NM2ZAWTF.js";
20
20
  import {
21
21
  AVATAR_UPLOAD_LIMIT,
22
22
  RelayError,
@@ -55,7 +55,7 @@ import {
55
55
  walletSignInNetworksSchema,
56
56
  walletSignatureSchema,
57
57
  walletUnlinkInputSchema
58
- } from "./chunk-UIR6NSYZ.js";
58
+ } from "./chunk-MJMFGTVV.js";
59
59
  import {
60
60
  PARTICIPANT_TIMEOUT,
61
61
  lifetime,
@@ -65,14 +65,14 @@ import {
65
65
  } from "./chunk-6QJ3LADK.js";
66
66
  import {
67
67
  clientIdentity
68
- } from "./chunk-N2HXMTVA.js";
68
+ } from "./chunk-2M3HLQFP.js";
69
69
  import {
70
70
  exchangeResultSchema,
71
71
  exchangeSchema,
72
72
  memberSummarySchema,
73
73
  participantSessionSchema,
74
74
  sessionMember
75
- } from "./chunk-BUXNTVER.js";
75
+ } from "./chunk-PRLGLZM4.js";
76
76
  import {
77
77
  accountConnectionSchema,
78
78
  attemptSchema,
@@ -96,7 +96,7 @@ import {
96
96
  tieredRewardReferenceSchema,
97
97
  validateSubmissionValue,
98
98
  valueEvidenceSchema
99
- } from "./chunk-23JUD56J.js";
99
+ } from "./chunk-5WK4EB5I.js";
100
100
 
101
101
  // src/submissions.ts
102
102
  import { z } from "zod";
@@ -15,7 +15,7 @@ import {
15
15
  responseShape,
16
16
  rewardKey,
17
17
  tierRewardSchema
18
- } from "./chunk-23JUD56J.js";
18
+ } from "./chunk-5WK4EB5I.js";
19
19
 
20
20
  // src/errors.ts
21
21
  import { z } from "zod";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pointLedgerReferenceSchema
3
- } from "./chunk-UIR6NSYZ.js";
3
+ } from "./chunk-MJMFGTVV.js";
4
4
  import {
5
5
  authoringIdentityShape,
6
6
  entitlementSchema,
@@ -17,7 +17,7 @@ import {
17
17
  storedQuestDescriptionSchema,
18
18
  storedReviewModeSchema,
19
19
  tieredRewardReferenceSchema
20
- } from "./chunk-23JUD56J.js";
20
+ } from "./chunk-5WK4EB5I.js";
21
21
 
22
22
  // src/participant-activity.ts
23
23
  import { z } from "zod";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  RelayErrorCode,
3
3
  clientError
4
- } from "./chunk-UIR6NSYZ.js";
4
+ } from "./chunk-MJMFGTVV.js";
5
5
  import {
6
6
  isRequestError
7
7
  } from "./chunk-NPGENI7K.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  identifier
3
- } from "./chunk-23JUD56J.js";
3
+ } from "./chunk-5WK4EB5I.js";
4
4
 
5
5
  // src/auth.ts
6
6
  import { z } from "zod";
@@ -2,7 +2,7 @@ import {
2
2
  identifier,
3
3
  responseShape,
4
4
  xTweetSchema
5
- } from "./chunk-23JUD56J.js";
5
+ } from "./chunk-5WK4EB5I.js";
6
6
 
7
7
  // src/x.ts
8
8
  import { z } from "zod";
@@ -5,7 +5,7 @@ import {
5
5
  isKnownTrackerSource,
6
6
  trackerDataSchema,
7
7
  xAccountRoles
8
- } from "./chunk-23JUD56J.js";
8
+ } from "./chunk-5WK4EB5I.js";
9
9
 
10
10
  // src/quest-shape.ts
11
11
  function validateQuestShape(description, options = {}) {
@@ -6,7 +6,7 @@ import {
6
6
  imageSightingsSchema,
7
7
  imageUploadsSchema,
8
8
  publishedImageSchema
9
- } from "./chunk-WRBPLXVP.js";
9
+ } from "./chunk-S4IHOJEP.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-BKLGWPPD.js";
27
+ } from "./chunk-NM2ZAWTF.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-UIR6NSYZ.js";
60
+ } from "./chunk-MJMFGTVV.js";
61
61
  import {
62
62
  exchangeResultSchema,
63
63
  memberSummarySchema,
64
64
  participantSessionSchema
65
- } from "./chunk-BUXNTVER.js";
65
+ } from "./chunk-PRLGLZM4.js";
66
66
  import {
67
67
  accountConnectionSchema,
68
68
  attemptSchema,
@@ -88,7 +88,7 @@ import {
88
88
  tieredRewardReferenceSchema,
89
89
  timeZoneNameSchema,
90
90
  trackerArtifactSchema
91
- } from "./chunk-23JUD56J.js";
91
+ } from "./chunk-5WK4EB5I.js";
92
92
 
93
93
  // src/deployments.ts
94
94
  import { z } from "zod";
package/dist/index.js CHANGED
@@ -5,31 +5,31 @@ import {
5
5
  import {
6
6
  QuestUpdatedError,
7
7
  createRelayClient
8
- } from "./chunk-7BRHUUVB.js";
8
+ } from "./chunk-MDN5EJY2.js";
9
9
  import {
10
10
  createRelayAction
11
- } from "./chunk-GFAFH7XR.js";
11
+ } from "./chunk-PFKV2M4B.js";
12
12
  import {
13
13
  QuestOutcomeState
14
- } from "./chunk-BKLGWPPD.js";
14
+ } from "./chunk-NM2ZAWTF.js";
15
15
  import {
16
16
  PointEntryKind,
17
17
  RelayError,
18
18
  RelayErrorCode,
19
19
  isRelayError
20
- } from "./chunk-UIR6NSYZ.js";
20
+ } from "./chunk-MJMFGTVV.js";
21
21
  import "./chunk-6QJ3LADK.js";
22
22
  import {
23
23
  RequestError,
24
24
  isRequestError
25
25
  } from "./chunk-NPGENI7K.js";
26
- import "./chunk-N2HXMTVA.js";
26
+ import "./chunk-2M3HLQFP.js";
27
27
  import {
28
28
  sessionMember
29
- } from "./chunk-BUXNTVER.js";
29
+ } from "./chunk-PRLGLZM4.js";
30
30
  import {
31
31
  AttemptStatus
32
- } from "./chunk-23JUD56J.js";
32
+ } from "./chunk-5WK4EB5I.js";
33
33
  export {
34
34
  AttemptStatus,
35
35
  PointEntryKind,
package/dist/internal.js CHANGED
@@ -10,13 +10,13 @@ import {
10
10
  participantExchangeSchema,
11
11
  questConfiguration,
12
12
  sequenceCursorSchema
13
- } from "./chunk-MMWTHVXW.js";
14
- import "./chunk-WRBPLXVP.js";
13
+ } from "./chunk-A2KXEGGD.js";
14
+ import "./chunk-S4IHOJEP.js";
15
15
  import {
16
16
  sourceDataSchema,
17
17
  sourceRoles,
18
18
  validateQuestShape
19
- } from "./chunk-QL77V77D.js";
19
+ } from "./chunk-WZJQ7XAT.js";
20
20
  import {
21
21
  isIntegrationParticipantPath,
22
22
  isParticipantRoute,
@@ -30,7 +30,7 @@ import {
30
30
  retrying
31
31
  } from "./chunk-6QJ3LADK.js";
32
32
  import "./chunk-NPGENI7K.js";
33
- import "./chunk-BUXNTVER.js";
33
+ import "./chunk-PRLGLZM4.js";
34
34
  import {
35
35
  schemaCheckedReader,
36
36
  trackerDataBatchSteps,
@@ -39,7 +39,7 @@ import {
39
39
  trackerDataPathTypes,
40
40
  trackerDataRecordSteps,
41
41
  whereSchemaIssue
42
- } from "./chunk-23JUD56J.js";
42
+ } from "./chunk-5WK4EB5I.js";
43
43
  export {
44
44
  MANAGEMENT_TIMEOUT,
45
45
  REFERRAL_INTEGRATION_REWARD_ERROR,
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-AXRMT33W.js";
4
4
  import {
5
5
  clientIdentity
6
- } from "./chunk-N2HXMTVA.js";
6
+ } from "./chunk-2M3HLQFP.js";
7
7
  import {
8
8
  exchangeResultSchema
9
- } from "./chunk-BUXNTVER.js";
10
- import "./chunk-23JUD56J.js";
9
+ } from "./chunk-PRLGLZM4.js";
10
+ import "./chunk-5WK4EB5I.js";
11
11
 
12
12
  // src/portal-proxy.ts
13
13
  var statusCode = (status) => ({
@@ -8,27 +8,27 @@ import {
8
8
  discoverSolanaWallets,
9
9
  readSignInMethods,
10
10
  signInOptionsFrom
11
- } from "../chunk-GEPSEVQO.js";
12
- import "../chunk-7BRHUUVB.js";
11
+ } from "../chunk-FH7ZFHDB.js";
12
+ import "../chunk-MDN5EJY2.js";
13
13
  import {
14
14
  createRelayAction
15
- } from "../chunk-GFAFH7XR.js";
16
- import "../chunk-BKLGWPPD.js";
15
+ } from "../chunk-PFKV2M4B.js";
16
+ import "../chunk-NM2ZAWTF.js";
17
17
  import {
18
18
  RelayError,
19
19
  RelayErrorCode,
20
20
  asRelayError,
21
21
  isRelayError
22
- } from "../chunk-UIR6NSYZ.js";
22
+ } from "../chunk-MJMFGTVV.js";
23
23
  import "../chunk-6QJ3LADK.js";
24
24
  import {
25
25
  isRequestError
26
26
  } from "../chunk-NPGENI7K.js";
27
- import "../chunk-N2HXMTVA.js";
27
+ import "../chunk-2M3HLQFP.js";
28
28
  import {
29
29
  sessionMember
30
- } from "../chunk-BUXNTVER.js";
31
- import "../chunk-23JUD56J.js";
30
+ } from "../chunk-PRLGLZM4.js";
31
+ import "../chunk-5WK4EB5I.js";
32
32
 
33
33
  // src/react/activity.ts
34
34
  import {
package/dist/schema.js CHANGED
@@ -39,7 +39,7 @@ import {
39
39
  rejectDeploymentSchema,
40
40
  rollbackDeploymentSchema,
41
41
  submitDeploymentSchema
42
- } from "./chunk-GPS546KR.js";
42
+ } from "./chunk-XMZNIFXH.js";
43
43
  import {
44
44
  capabilityErrorCodes,
45
45
  capabilityFailureSchema
@@ -62,7 +62,7 @@ import {
62
62
  xPostSchema,
63
63
  xProfileSchema,
64
64
  xRequestSchema
65
- } from "./chunk-WRBPLXVP.js";
65
+ } from "./chunk-S4IHOJEP.js";
66
66
  import {
67
67
  QuestOutcomeState,
68
68
  RewardDeliveryAction,
@@ -110,7 +110,7 @@ import {
110
110
  rewardDeliverySchema,
111
111
  roleReconciliationSchema,
112
112
  saveQuestDraftSchema
113
- } from "./chunk-BKLGWPPD.js";
113
+ } from "./chunk-NM2ZAWTF.js";
114
114
  import {
115
115
  AVATAR_UPLOAD_LIMIT,
116
116
  PointEntryKind,
@@ -238,7 +238,7 @@ import {
238
238
  walletSignInNetworksSchema,
239
239
  walletSignatureSchema,
240
240
  walletUnlinkInputSchema
241
- } from "./chunk-UIR6NSYZ.js";
241
+ } from "./chunk-MJMFGTVV.js";
242
242
  import "./chunk-NPGENI7K.js";
243
243
  import {
244
244
  authScopeSchema,
@@ -250,7 +250,7 @@ import {
250
250
  principalSchema,
251
251
  sessionMember,
252
252
  sessionSchema
253
- } from "./chunk-BUXNTVER.js";
253
+ } from "./chunk-PRLGLZM4.js";
254
254
  import {
255
255
  AttemptStatus,
256
256
  CompletionSourceKind,
@@ -497,7 +497,7 @@ import {
497
497
  xPostId,
498
498
  xSearchSourceSchema,
499
499
  xTweetSchema
500
- } from "./chunk-23JUD56J.js";
500
+ } from "./chunk-5WK4EB5I.js";
501
501
  export {
502
502
  AVATAR_UPLOAD_LIMIT,
503
503
  AttemptStatus,
@@ -21,7 +21,7 @@ import {
21
21
  publishDeploymentSchema,
22
22
  rejectDeploymentSchema,
23
23
  submitDeploymentSchema
24
- } from "../chunk-GPS546KR.js";
24
+ } from "../chunk-XMZNIFXH.js";
25
25
  import "../chunk-MC6V6VMG.js";
26
26
  import {
27
27
  REFERRAL_INTEGRATION_REWARD_ERROR,
@@ -35,15 +35,15 @@ import {
35
35
  participantExchangeSchema,
36
36
  questConfiguration,
37
37
  sequenceCursorSchema
38
- } from "../chunk-MMWTHVXW.js";
38
+ } from "../chunk-A2KXEGGD.js";
39
39
  import {
40
40
  imageAssetArtifactSchema
41
- } from "../chunk-WRBPLXVP.js";
41
+ } from "../chunk-S4IHOJEP.js";
42
42
  import {
43
43
  sourceDataSchema,
44
44
  sourceRoles,
45
45
  validateQuestShape
46
- } from "../chunk-QL77V77D.js";
46
+ } from "../chunk-WZJQ7XAT.js";
47
47
  import {
48
48
  isIntegrationParticipantPath,
49
49
  isParticipantRoute,
@@ -52,7 +52,7 @@ import {
52
52
  } from "../chunk-AXRMT33W.js";
53
53
  import {
54
54
  withActionId
55
- } from "../chunk-GFAFH7XR.js";
55
+ } from "../chunk-PFKV2M4B.js";
56
56
  import {
57
57
  allocateQuestSchema,
58
58
  allocatedQuestSchema,
@@ -70,7 +70,7 @@ import {
70
70
  rewardDeliveriesSchema,
71
71
  rewardDeliverySchema,
72
72
  saveQuestDraftSchema
73
- } from "../chunk-BKLGWPPD.js";
73
+ } from "../chunk-NM2ZAWTF.js";
74
74
  import {
75
75
  cosmosNetworkSchema,
76
76
  createPointLedgerSchema,
@@ -121,7 +121,7 @@ import {
121
121
  walletBalanceSchema,
122
122
  walletSignInNetworksSchema,
123
123
  walletUnlinkInputSchema
124
- } from "../chunk-UIR6NSYZ.js";
124
+ } from "../chunk-MJMFGTVV.js";
125
125
  import {
126
126
  MANAGEMENT_TIMEOUT,
127
127
  lifetime,
@@ -135,8 +135,8 @@ import {
135
135
  } from "../chunk-NPGENI7K.js";
136
136
  import {
137
137
  clientIdentity
138
- } from "../chunk-N2HXMTVA.js";
139
- import "../chunk-BUXNTVER.js";
138
+ } from "../chunk-2M3HLQFP.js";
139
+ import "../chunk-PRLGLZM4.js";
140
140
  import {
141
141
  CompletionSourceKind,
142
142
  addGroupMemberSchema,
@@ -208,7 +208,7 @@ import {
208
208
  trackerTriggerOutcomeQuerySchema,
209
209
  updateGroupSchema,
210
210
  whereSchemaIssue
211
- } from "../chunk-23JUD56J.js";
211
+ } from "../chunk-5WK4EB5I.js";
212
212
 
213
213
  // src/server/test-members.ts
214
214
  import { z } from "zod";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domino-sdk/relay",
3
- "version": "1.10.0",
3
+ "version": "1.10.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {