@domino-sdk/relay 0.5.0 → 0.7.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.
package/dist/index.js CHANGED
@@ -18,6 +18,7 @@ import {
18
18
  identityIntegrationSecretSchema,
19
19
  interactionSchema,
20
20
  participantExchangeSchema,
21
+ pointLedgerSchema,
21
22
  projectCatalogArtifactSchema,
22
23
  projectDeploymentSchema,
23
24
  publishDeploymentSchema,
@@ -36,6 +37,8 @@ import {
36
37
  questViewSchema,
37
38
  reconcileQuestDraft,
38
39
  resourceId,
40
+ rewardDeliveriesSchema,
41
+ rewardDeliverySchema,
39
42
  saveQuestDraftSchema,
40
43
  solanaAddressSchema,
41
44
  solanaBalanceSchema,
@@ -43,7 +46,7 @@ import {
43
46
  walletChallengeSchema,
44
47
  walletConnectionSchema,
45
48
  walletProofSchema
46
- } from "./chunk-LUCL63DS.js";
49
+ } from "./chunk-LXLNC4CN.js";
47
50
  import {
48
51
  defineLeaderboard,
49
52
  defineReferral,
@@ -71,14 +74,14 @@ import {
71
74
  referralManagementSchema,
72
75
  referralRelationshipSchema,
73
76
  referralSummarySchema
74
- } from "./chunk-TXL43HL3.js";
77
+ } from "./chunk-TYVT5BPZ.js";
75
78
  import {
76
79
  authScopeSchema,
77
80
  exchangeResultSchema,
78
81
  exchangeSchema,
79
82
  principalSchema,
80
83
  sessionSchema
81
- } from "./chunk-QWRSUSNB.js";
84
+ } from "./chunk-36LZ3IOO.js";
82
85
  import {
83
86
  accountConnectionSchema,
84
87
  artifactSchema,
@@ -86,12 +89,20 @@ import {
86
89
  authProviderSchema,
87
90
  batchReleaseSchema,
88
91
  beginHandoverSchema,
92
+ budgetSchema,
93
+ compatibleSettingKinds,
94
+ completionKeySchema,
95
+ completionPolicySchema,
89
96
  completionRecordSchema,
90
97
  configurePickupSchema,
91
98
  confirmHandoverSchema,
92
99
  decisionSchema,
100
+ discord,
93
101
  discordMemberInputSchema,
94
102
  discordMemberSchema,
103
+ discordMessageInputSchema,
104
+ discordMessageSchema,
105
+ discordReactionSchema,
95
106
  discordServerSchema,
96
107
  entitlementSchema,
97
108
  errorSchema,
@@ -99,10 +110,16 @@ import {
99
110
  evidenceSchema,
100
111
  identifier,
101
112
  integrationProviderSchema,
113
+ integrationRewardSchema,
102
114
  mediaUrlSchema,
103
115
  memberListSchema,
104
116
  memberPageSchema,
105
117
  memberProgressSchema,
118
+ missingResourceSettings,
119
+ observationInputSchema,
120
+ observationReceiptSchema,
121
+ observationSchema,
122
+ observationTriggerSchema,
106
123
  parseSettings,
107
124
  photoResultSchema,
108
125
  pickupAllocationSchema,
@@ -126,6 +143,9 @@ import {
126
143
  quizQuestionsSchema,
127
144
  releaseSchema,
128
145
  reservationSchema,
146
+ resourceOptionsSchema,
147
+ resourceRequestSchema,
148
+ resourceSourceSchema,
129
149
  reviewItemSchema,
130
150
  reviewListSchema,
131
151
  reviewModeSchema,
@@ -145,7 +165,7 @@ import {
145
165
  tierRewardSchema,
146
166
  tieredRewardDefinitionSchema,
147
167
  triggerSchema
148
- } from "./chunk-3IQ4KUKF.js";
168
+ } from "./chunk-6QUCADMF.js";
149
169
  export {
150
170
  QuestUpdatedError,
151
171
  RelayError,
@@ -156,6 +176,7 @@ export {
156
176
  authScopeSchema,
157
177
  batchReleaseSchema,
158
178
  beginHandoverSchema,
179
+ budgetSchema,
159
180
  catalogDeploymentPreviewSchema,
160
181
  catalogDeploymentSchema,
161
182
  collectionBeginSchema,
@@ -165,6 +186,9 @@ export {
165
186
  collectionResolveSchema,
166
187
  collectionSlotSchema,
167
188
  collectionViewSchema,
189
+ compatibleSettingKinds,
190
+ completionKeySchema,
191
+ completionPolicySchema,
168
192
  completionRecordSchema,
169
193
  configurePickupSchema,
170
194
  confirmHandoverSchema,
@@ -174,8 +198,12 @@ export {
174
198
  defineReferral,
175
199
  deploymentPreviewSchema,
176
200
  deploymentResultSchema,
201
+ discord,
177
202
  discordMemberInputSchema,
178
203
  discordMemberSchema,
204
+ discordMessageInputSchema,
205
+ discordMessageSchema,
206
+ discordReactionSchema,
179
207
  discordServerSchema,
180
208
  entitlementSchema,
181
209
  errorSchema,
@@ -188,6 +216,7 @@ export {
188
216
  identityIntegrationSchema,
189
217
  identityIntegrationSecretSchema,
190
218
  integrationProviderSchema,
219
+ integrationRewardSchema,
191
220
  interactionSchema,
192
221
  leaderboardArtifactSchema,
193
222
  leaderboardDefinitionSchema,
@@ -202,6 +231,11 @@ export {
202
231
  memberListSchema,
203
232
  memberPageSchema,
204
233
  memberProgressSchema,
234
+ missingResourceSettings,
235
+ observationInputSchema,
236
+ observationReceiptSchema,
237
+ observationSchema,
238
+ observationTriggerSchema,
205
239
  parseSettings,
206
240
  participantExchangeSchema,
207
241
  photoResultSchema,
@@ -210,6 +244,7 @@ export {
210
244
  pickupCatalogSchema,
211
245
  pickupPolicySchema,
212
246
  pickupSelectionSchema,
247
+ pointLedgerSchema,
213
248
  pointsAccountSchema,
214
249
  pointsEntrySchema,
215
250
  pointsMutationSchema,
@@ -260,11 +295,16 @@ export {
260
295
  releaseSchema,
261
296
  reservationSchema,
262
297
  resourceId,
298
+ resourceOptionsSchema,
299
+ resourceRequestSchema,
300
+ resourceSourceSchema,
263
301
  reviewItemSchema,
264
302
  reviewListSchema,
265
303
  reviewModeSchema,
266
304
  reviewPageSchema,
267
305
  rewardBundleSchema,
306
+ rewardDeliveriesSchema,
307
+ rewardDeliverySchema,
268
308
  rewardKey,
269
309
  rewardSchema,
270
310
  saveQuestDraftSchema,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  exchangeResultSchema
3
- } from "./chunk-QWRSUSNB.js";
4
- import "./chunk-3IQ4KUKF.js";
3
+ } from "./chunk-36LZ3IOO.js";
4
+ import "./chunk-6QUCADMF.js";
5
5
 
6
6
  // src/portal-proxy.ts
7
7
  async function proxyParticipant(request, upstream) {
@@ -11,7 +11,7 @@ async function proxyParticipant(request, upstream) {
11
11
  path
12
12
  ) || /^\/v1\/me\/(progress|experience|attempts|evidence|pass|collection-pass|wallet(?:\/challenge|\/verify)?)$/.test(
13
13
  path
14
- ) || /^\/v1\/attempts\/[\w-]+(?:\/retry)?$/.test(path) || /^\/v1\/referrals(?:\/(me|history))?$/.test(path) && request.method === "GET" || path === "/v1/referrals/accept" && request.method === "POST" || request.method === "GET" && /^\/v1\/leaderboards(?:\/[\w-]+)?$/.test(path));
14
+ ) || /^\/v1\/attempts\/[\w-]+(?:\/retry)?$/.test(path) || /^\/v1\/referrals(?:\/(me|history))?$/.test(path) && request.method === "GET" || path === "/v1/reward-deliveries" && request.method === "GET" || path === "/v1/referrals/accept" && request.method === "POST" || request.method === "GET" && /^\/v1\/leaderboards(?:\/[\w-]+)?$/.test(path));
15
15
  if (!allowed || !["GET", "POST"].includes(request.method))
16
16
  return Response.json({ error: "Route not found" }, { status: 404 });
17
17
  const target = new URL(upstream.baseUrl);