@domino-sdk/relay 0.5.0 → 0.6.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
@@ -36,6 +36,8 @@ import {
36
36
  questViewSchema,
37
37
  reconcileQuestDraft,
38
38
  resourceId,
39
+ rewardDeliveriesSchema,
40
+ rewardDeliverySchema,
39
41
  saveQuestDraftSchema,
40
42
  solanaAddressSchema,
41
43
  solanaBalanceSchema,
@@ -43,7 +45,7 @@ import {
43
45
  walletChallengeSchema,
44
46
  walletConnectionSchema,
45
47
  walletProofSchema
46
- } from "./chunk-LUCL63DS.js";
48
+ } from "./chunk-CCLIDCUU.js";
47
49
  import {
48
50
  defineLeaderboard,
49
51
  defineReferral,
@@ -71,14 +73,14 @@ import {
71
73
  referralManagementSchema,
72
74
  referralRelationshipSchema,
73
75
  referralSummarySchema
74
- } from "./chunk-TXL43HL3.js";
76
+ } from "./chunk-UIC6OF3C.js";
75
77
  import {
76
78
  authScopeSchema,
77
79
  exchangeResultSchema,
78
80
  exchangeSchema,
79
81
  principalSchema,
80
82
  sessionSchema
81
- } from "./chunk-QWRSUSNB.js";
83
+ } from "./chunk-PLO5PPLU.js";
82
84
  import {
83
85
  accountConnectionSchema,
84
86
  artifactSchema,
@@ -86,12 +88,20 @@ import {
86
88
  authProviderSchema,
87
89
  batchReleaseSchema,
88
90
  beginHandoverSchema,
91
+ budgetSchema,
92
+ compatibleSettingKinds,
93
+ completionKeySchema,
94
+ completionPolicySchema,
89
95
  completionRecordSchema,
90
96
  configurePickupSchema,
91
97
  confirmHandoverSchema,
92
98
  decisionSchema,
99
+ discord,
93
100
  discordMemberInputSchema,
94
101
  discordMemberSchema,
102
+ discordMessageInputSchema,
103
+ discordMessageSchema,
104
+ discordReactionSchema,
95
105
  discordServerSchema,
96
106
  entitlementSchema,
97
107
  errorSchema,
@@ -99,10 +109,16 @@ import {
99
109
  evidenceSchema,
100
110
  identifier,
101
111
  integrationProviderSchema,
112
+ integrationRewardSchema,
102
113
  mediaUrlSchema,
103
114
  memberListSchema,
104
115
  memberPageSchema,
105
116
  memberProgressSchema,
117
+ missingResourceSettings,
118
+ observationInputSchema,
119
+ observationReceiptSchema,
120
+ observationSchema,
121
+ observationTriggerSchema,
106
122
  parseSettings,
107
123
  photoResultSchema,
108
124
  pickupAllocationSchema,
@@ -126,6 +142,9 @@ import {
126
142
  quizQuestionsSchema,
127
143
  releaseSchema,
128
144
  reservationSchema,
145
+ resourceOptionsSchema,
146
+ resourceRequestSchema,
147
+ resourceSourceSchema,
129
148
  reviewItemSchema,
130
149
  reviewListSchema,
131
150
  reviewModeSchema,
@@ -145,7 +164,7 @@ import {
145
164
  tierRewardSchema,
146
165
  tieredRewardDefinitionSchema,
147
166
  triggerSchema
148
- } from "./chunk-3IQ4KUKF.js";
167
+ } from "./chunk-MXK7KEDA.js";
149
168
  export {
150
169
  QuestUpdatedError,
151
170
  RelayError,
@@ -156,6 +175,7 @@ export {
156
175
  authScopeSchema,
157
176
  batchReleaseSchema,
158
177
  beginHandoverSchema,
178
+ budgetSchema,
159
179
  catalogDeploymentPreviewSchema,
160
180
  catalogDeploymentSchema,
161
181
  collectionBeginSchema,
@@ -165,6 +185,9 @@ export {
165
185
  collectionResolveSchema,
166
186
  collectionSlotSchema,
167
187
  collectionViewSchema,
188
+ compatibleSettingKinds,
189
+ completionKeySchema,
190
+ completionPolicySchema,
168
191
  completionRecordSchema,
169
192
  configurePickupSchema,
170
193
  confirmHandoverSchema,
@@ -174,8 +197,12 @@ export {
174
197
  defineReferral,
175
198
  deploymentPreviewSchema,
176
199
  deploymentResultSchema,
200
+ discord,
177
201
  discordMemberInputSchema,
178
202
  discordMemberSchema,
203
+ discordMessageInputSchema,
204
+ discordMessageSchema,
205
+ discordReactionSchema,
179
206
  discordServerSchema,
180
207
  entitlementSchema,
181
208
  errorSchema,
@@ -188,6 +215,7 @@ export {
188
215
  identityIntegrationSchema,
189
216
  identityIntegrationSecretSchema,
190
217
  integrationProviderSchema,
218
+ integrationRewardSchema,
191
219
  interactionSchema,
192
220
  leaderboardArtifactSchema,
193
221
  leaderboardDefinitionSchema,
@@ -202,6 +230,11 @@ export {
202
230
  memberListSchema,
203
231
  memberPageSchema,
204
232
  memberProgressSchema,
233
+ missingResourceSettings,
234
+ observationInputSchema,
235
+ observationReceiptSchema,
236
+ observationSchema,
237
+ observationTriggerSchema,
205
238
  parseSettings,
206
239
  participantExchangeSchema,
207
240
  photoResultSchema,
@@ -260,11 +293,16 @@ export {
260
293
  releaseSchema,
261
294
  reservationSchema,
262
295
  resourceId,
296
+ resourceOptionsSchema,
297
+ resourceRequestSchema,
298
+ resourceSourceSchema,
263
299
  reviewItemSchema,
264
300
  reviewListSchema,
265
301
  reviewModeSchema,
266
302
  reviewPageSchema,
267
303
  rewardBundleSchema,
304
+ rewardDeliveriesSchema,
305
+ rewardDeliverySchema,
268
306
  rewardKey,
269
307
  rewardSchema,
270
308
  saveQuestDraftSchema,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  exchangeResultSchema
3
- } from "./chunk-QWRSUSNB.js";
4
- import "./chunk-3IQ4KUKF.js";
3
+ } from "./chunk-PLO5PPLU.js";
4
+ import "./chunk-MXK7KEDA.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);