@domino-sdk/relay 0.6.0 → 0.8.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
@@ -1,6 +1,8 @@
1
1
  import {
2
2
  QuestUpdatedError,
3
3
  RelayError,
4
+ allocateQuestSchema,
5
+ allocatedQuestSchema,
4
6
  catalogDeploymentPreviewSchema,
5
7
  catalogDeploymentSchema,
6
8
  collectionBeginSchema,
@@ -8,8 +10,10 @@ import {
8
10
  collectionPassSchema,
9
11
  collectionPreviewSchema,
10
12
  collectionResolveSchema,
13
+ collectionSlotDeclarationSchema,
11
14
  collectionSlotSchema,
12
15
  collectionViewSchema,
16
+ createPointLedgerSchema,
13
17
  createRelayClient,
14
18
  deploymentPreviewSchema,
15
19
  deploymentResultSchema,
@@ -18,6 +22,9 @@ import {
18
22
  identityIntegrationSecretSchema,
19
23
  interactionSchema,
20
24
  participantExchangeSchema,
25
+ pointLedgerDeclarationSchema,
26
+ pointLedgerPropertiesSchema,
27
+ pointLedgerSchema,
21
28
  projectCatalogArtifactSchema,
22
29
  projectDeploymentSchema,
23
30
  publishDeploymentSchema,
@@ -35,7 +42,6 @@ import {
35
42
  questTypeVersionSchema,
36
43
  questViewSchema,
37
44
  reconcileQuestDraft,
38
- resourceId,
39
45
  rewardDeliveriesSchema,
40
46
  rewardDeliverySchema,
41
47
  saveQuestDraftSchema,
@@ -45,11 +51,12 @@ import {
45
51
  walletChallengeSchema,
46
52
  walletConnectionSchema,
47
53
  walletProofSchema
48
- } from "./chunk-CCLIDCUU.js";
54
+ } from "./chunk-APMYDKEX.js";
49
55
  import {
50
56
  defineLeaderboard,
51
57
  defineReferral,
52
58
  leaderboardArtifactSchema,
59
+ leaderboardAuthoringSchema,
53
60
  leaderboardDefinitionSchema,
54
61
  leaderboardExclusionSchema,
55
62
  leaderboardGroupSchema,
@@ -67,20 +74,21 @@ import {
67
74
  referralAcceptSchema,
68
75
  referralAccountSchema,
69
76
  referralArtifactSchema,
77
+ referralAuthoringSchema,
70
78
  referralControlSchema,
71
79
  referralDefinitionSchema,
72
80
  referralHistorySchema,
73
81
  referralManagementSchema,
74
82
  referralRelationshipSchema,
75
83
  referralSummarySchema
76
- } from "./chunk-UIC6OF3C.js";
84
+ } from "./chunk-XVHWBZRG.js";
77
85
  import {
78
86
  authScopeSchema,
79
87
  exchangeResultSchema,
80
88
  exchangeSchema,
81
89
  principalSchema,
82
90
  sessionSchema
83
- } from "./chunk-PLO5PPLU.js";
91
+ } from "./chunk-2BN7XZH3.js";
84
92
  import {
85
93
  accountConnectionSchema,
86
94
  artifactSchema,
@@ -95,6 +103,7 @@ import {
95
103
  completionRecordSchema,
96
104
  configurePickupSchema,
97
105
  confirmHandoverSchema,
106
+ createStockItemSchema,
98
107
  decisionSchema,
99
108
  discord,
100
109
  discordMemberInputSchema,
@@ -126,6 +135,7 @@ import {
126
135
  pickupCatalogSchema,
127
136
  pickupPolicySchema,
128
137
  pickupSelectionSchema,
138
+ pointLedgers,
129
139
  pointsRewardSchema,
130
140
  prerequisiteSchema,
131
141
  projectIntegrationSchema,
@@ -158,17 +168,20 @@ import {
158
168
  settingsValuesSchema,
159
169
  snapshotSchema,
160
170
  staffDecisionSchema,
171
+ stockItemSchema,
161
172
  stockSchema,
162
173
  submitSchema,
163
174
  templateSchema,
164
175
  tierRewardSchema,
165
176
  tieredRewardDefinitionSchema,
166
177
  triggerSchema
167
- } from "./chunk-MXK7KEDA.js";
178
+ } from "./chunk-Z43O273V.js";
168
179
  export {
169
180
  QuestUpdatedError,
170
181
  RelayError,
171
182
  accountConnectionSchema,
183
+ allocateQuestSchema,
184
+ allocatedQuestSchema,
172
185
  artifactSchema,
173
186
  attemptSchema,
174
187
  authProviderSchema,
@@ -183,6 +196,7 @@ export {
183
196
  collectionPassSchema,
184
197
  collectionPreviewSchema,
185
198
  collectionResolveSchema,
199
+ collectionSlotDeclarationSchema,
186
200
  collectionSlotSchema,
187
201
  collectionViewSchema,
188
202
  compatibleSettingKinds,
@@ -191,7 +205,9 @@ export {
191
205
  completionRecordSchema,
192
206
  configurePickupSchema,
193
207
  confirmHandoverSchema,
208
+ createPointLedgerSchema,
194
209
  createRelayClient,
210
+ createStockItemSchema,
195
211
  decisionSchema,
196
212
  defineLeaderboard,
197
213
  defineReferral,
@@ -218,6 +234,7 @@ export {
218
234
  integrationRewardSchema,
219
235
  interactionSchema,
220
236
  leaderboardArtifactSchema,
237
+ leaderboardAuthoringSchema,
221
238
  leaderboardDefinitionSchema,
222
239
  leaderboardExclusionSchema,
223
240
  leaderboardGroupSchema,
@@ -243,6 +260,10 @@ export {
243
260
  pickupCatalogSchema,
244
261
  pickupPolicySchema,
245
262
  pickupSelectionSchema,
263
+ pointLedgerDeclarationSchema,
264
+ pointLedgerPropertiesSchema,
265
+ pointLedgerSchema,
266
+ pointLedgers,
246
267
  pointsAccountSchema,
247
268
  pointsEntrySchema,
248
269
  pointsMutationSchema,
@@ -284,6 +305,7 @@ export {
284
305
  referralAcceptSchema,
285
306
  referralAccountSchema,
286
307
  referralArtifactSchema,
308
+ referralAuthoringSchema,
287
309
  referralControlSchema,
288
310
  referralDefinitionSchema,
289
311
  referralHistorySchema,
@@ -292,7 +314,6 @@ export {
292
314
  referralSummarySchema,
293
315
  releaseSchema,
294
316
  reservationSchema,
295
- resourceId,
296
317
  resourceOptionsSchema,
297
318
  resourceRequestSchema,
298
319
  resourceSourceSchema,
@@ -315,6 +336,7 @@ export {
315
336
  solanaAddressSchema,
316
337
  solanaBalanceSchema,
317
338
  staffDecisionSchema,
339
+ stockItemSchema,
318
340
  stockSchema,
319
341
  submitSchema,
320
342
  templateSchema,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  exchangeResultSchema
3
- } from "./chunk-PLO5PPLU.js";
4
- import "./chunk-MXK7KEDA.js";
3
+ } from "./chunk-2BN7XZH3.js";
4
+ import "./chunk-Z43O273V.js";
5
5
 
6
6
  // src/portal-proxy.ts
7
7
  async function proxyParticipant(request, upstream) {
package/dist/schema.d.ts CHANGED
@@ -256,6 +256,11 @@ declare const questDescriptionSchema: z.ZodObject<{
256
256
  discord: "discord";
257
257
  }>>>;
258
258
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
259
+ kind: z.ZodLiteral<"point-ledger">;
260
+ default: z.ZodString;
261
+ label: z.ZodString;
262
+ description: z.ZodOptional<z.ZodString>;
263
+ }, z.core.$strict>, z.ZodObject<{
259
264
  kind: z.ZodLiteral<"datetime">;
260
265
  default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
261
266
  label: z.ZodString;
@@ -264,6 +269,9 @@ declare const questDescriptionSchema: z.ZodObject<{
264
269
  kind: z.ZodLiteral<"resource">;
265
270
  default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
266
271
  source: z.ZodUnion<readonly [z.ZodObject<{
272
+ provider: z.ZodLiteral<"domino">;
273
+ resource: z.ZodLiteral<"point-ledger">;
274
+ }, z.core.$strict>, z.ZodObject<{
267
275
  provider: z.ZodLiteral<"discord">;
268
276
  resource: z.ZodLiteral<"channel">;
269
277
  types: z.ZodArray<z.ZodEnum<{
@@ -493,6 +501,11 @@ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
493
501
  discord: "discord";
494
502
  }>>>;
495
503
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
504
+ kind: z.ZodLiteral<"point-ledger">;
505
+ default: z.ZodString;
506
+ label: z.ZodString;
507
+ description: z.ZodOptional<z.ZodString>;
508
+ }, z.core.$strict>, z.ZodObject<{
496
509
  kind: z.ZodLiteral<"datetime">;
497
510
  default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
498
511
  label: z.ZodString;
@@ -501,6 +514,9 @@ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
501
514
  kind: z.ZodLiteral<"resource">;
502
515
  default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
503
516
  source: z.ZodUnion<readonly [z.ZodObject<{
517
+ provider: z.ZodLiteral<"domino">;
518
+ resource: z.ZodLiteral<"point-ledger">;
519
+ }, z.core.$strict>, z.ZodObject<{
504
520
  provider: z.ZodLiteral<"discord">;
505
521
  resource: z.ZodLiteral<"channel">;
506
522
  types: z.ZodArray<z.ZodEnum<{
@@ -637,6 +653,7 @@ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
637
653
  balance: z.ZodString;
638
654
  }, z.core.$strict>]>;
639
655
  }, z.core.$strict>>>;
656
+ key: z.ZodOptional<z.ZodString>;
640
657
  code: z.ZodString;
641
658
  provider: z.ZodEnum<{
642
659
  "fixture-pass": "fixture-pass";
@@ -745,6 +762,11 @@ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
745
762
  };
746
763
  integrations: "discord"[];
747
764
  fields: Record<string, {
765
+ kind: "point-ledger";
766
+ default: string;
767
+ label: string;
768
+ description?: string | undefined;
769
+ } | {
748
770
  kind: "datetime";
749
771
  default: string;
750
772
  label: string;
@@ -753,6 +775,9 @@ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
753
775
  kind: "resource";
754
776
  default: string;
755
777
  source: {
778
+ provider: "domino";
779
+ resource: "point-ledger";
780
+ } | {
756
781
  provider: "discord";
757
782
  resource: "channel";
758
783
  types: ("text" | "announcement")[];
@@ -876,6 +901,7 @@ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
876
901
  createdAt: number;
877
902
  legacy: boolean;
878
903
  lifecycle: "active" | "paused" | "archived";
904
+ key?: string | undefined;
879
905
  origin?: {
880
906
  typeVersion: string;
881
907
  } | undefined;
@@ -968,6 +994,11 @@ declare const templateSchema: z.ZodObject<{
968
994
  discord: "discord";
969
995
  }>>>;
970
996
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
997
+ kind: z.ZodLiteral<"point-ledger">;
998
+ default: z.ZodString;
999
+ label: z.ZodString;
1000
+ description: z.ZodOptional<z.ZodString>;
1001
+ }, z.core.$strict>, z.ZodObject<{
971
1002
  kind: z.ZodLiteral<"datetime">;
972
1003
  default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
973
1004
  label: z.ZodString;
@@ -976,6 +1007,9 @@ declare const templateSchema: z.ZodObject<{
976
1007
  kind: z.ZodLiteral<"resource">;
977
1008
  default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
978
1009
  source: z.ZodUnion<readonly [z.ZodObject<{
1010
+ provider: z.ZodLiteral<"domino">;
1011
+ resource: z.ZodLiteral<"point-ledger">;
1012
+ }, z.core.$strict>, z.ZodObject<{
979
1013
  provider: z.ZodLiteral<"discord">;
980
1014
  resource: z.ZodLiteral<"channel">;
981
1015
  types: z.ZodArray<z.ZodEnum<{
@@ -1276,8 +1310,8 @@ declare const configurePickupSchema: z.ZodObject<{
1276
1310
  tiers: z.ZodArray<z.ZodObject<{
1277
1311
  tier: z.ZodString;
1278
1312
  variants: z.ZodArray<z.ZodObject<{
1279
- item: z.ZodString;
1280
1313
  label: z.ZodString;
1314
+ item: z.ZodOptional<z.ZodString>;
1281
1315
  }, z.core.$strict>>;
1282
1316
  }, z.core.$strict>>;
1283
1317
  }, z.core.$strict>], "kind">;
@@ -1416,6 +1450,7 @@ declare const memberProgressSchema: z.ZodObject<{
1416
1450
  member: z.ZodString;
1417
1451
  quests: z.ZodArray<z.ZodObject<{
1418
1452
  quest: z.ZodString;
1453
+ key: z.ZodOptional<z.ZodString>;
1419
1454
  release: z.ZodOptional<z.ZodString>;
1420
1455
  title: z.ZodString;
1421
1456
  presentation: z.ZodDefault<z.ZodObject<{
@@ -1672,6 +1707,11 @@ declare const snapshotSchema: z.ZodObject<{
1672
1707
  discord: "discord";
1673
1708
  }>>>;
1674
1709
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1710
+ kind: z.ZodLiteral<"point-ledger">;
1711
+ default: z.ZodString;
1712
+ label: z.ZodString;
1713
+ description: z.ZodOptional<z.ZodString>;
1714
+ }, z.core.$strict>, z.ZodObject<{
1675
1715
  kind: z.ZodLiteral<"datetime">;
1676
1716
  default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
1677
1717
  label: z.ZodString;
@@ -1680,6 +1720,9 @@ declare const snapshotSchema: z.ZodObject<{
1680
1720
  kind: z.ZodLiteral<"resource">;
1681
1721
  default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
1682
1722
  source: z.ZodUnion<readonly [z.ZodObject<{
1723
+ provider: z.ZodLiteral<"domino">;
1724
+ resource: z.ZodLiteral<"point-ledger">;
1725
+ }, z.core.$strict>, z.ZodObject<{
1683
1726
  provider: z.ZodLiteral<"discord">;
1684
1727
  resource: z.ZodLiteral<"channel">;
1685
1728
  types: z.ZodArray<z.ZodEnum<{
@@ -1816,6 +1859,7 @@ declare const snapshotSchema: z.ZodObject<{
1816
1859
  balance: z.ZodString;
1817
1860
  }, z.core.$strict>]>;
1818
1861
  }, z.core.$strict>>>;
1862
+ key: z.ZodOptional<z.ZodString>;
1819
1863
  code: z.ZodString;
1820
1864
  provider: z.ZodEnum<{
1821
1865
  "fixture-pass": "fixture-pass";
@@ -1924,6 +1968,11 @@ declare const snapshotSchema: z.ZodObject<{
1924
1968
  };
1925
1969
  integrations: "discord"[];
1926
1970
  fields: Record<string, {
1971
+ kind: "point-ledger";
1972
+ default: string;
1973
+ label: string;
1974
+ description?: string | undefined;
1975
+ } | {
1927
1976
  kind: "datetime";
1928
1977
  default: string;
1929
1978
  label: string;
@@ -1932,6 +1981,9 @@ declare const snapshotSchema: z.ZodObject<{
1932
1981
  kind: "resource";
1933
1982
  default: string;
1934
1983
  source: {
1984
+ provider: "domino";
1985
+ resource: "point-ledger";
1986
+ } | {
1935
1987
  provider: "discord";
1936
1988
  resource: "channel";
1937
1989
  types: ("text" | "announcement")[];
@@ -2055,6 +2107,7 @@ declare const snapshotSchema: z.ZodObject<{
2055
2107
  createdAt: number;
2056
2108
  legacy: boolean;
2057
2109
  lifecycle: "active" | "paused" | "archived";
2110
+ key?: string | undefined;
2058
2111
  origin?: {
2059
2112
  typeVersion: string;
2060
2113
  } | undefined;
@@ -2471,5 +2524,13 @@ declare const memberPageSchema: z.ZodObject<{
2471
2524
  }, z.core.$strip>;
2472
2525
  type ReviewPage = z.infer<typeof reviewPageSchema>;
2473
2526
  type MemberPage = z.infer<typeof memberPageSchema>;
2527
+ declare const createStockItemSchema: z.ZodObject<{
2528
+ actionId: z.ZodString;
2529
+ name: z.ZodString;
2530
+ }, z.core.$strict>;
2531
+ declare const stockItemSchema: z.ZodObject<{
2532
+ id: z.ZodString;
2533
+ name: z.ZodString;
2534
+ }, z.core.$strip>;
2474
2535
 
2475
- export { type Attempt, type Decision, type Entitlement, type MemberListOptions, type MemberPage, type MemberProgress, type PhotoResult, type PickupAvailability, type PublishedRelease, type QuestAvailability, type QuestDescription, type QuestPresentation, type QuestSettingsInput, type QuizEvidence, type ReleaseInput, type ReviewListOptions, type ReviewPage, type Reward, type Snapshot, type SubmitInput, type TieredRewardDefinition, artifactSchema, attemptSchema, batchReleaseSchema, beginHandoverSchema, completionRecordSchema, configurePickupSchema, confirmHandoverSchema, decisionSchema, entitlementSchema, errorSchema, eventSchema, evidenceSchema, identifier, integrationRewardSchema, mediaUrlSchema, memberListSchema, memberPageSchema, memberProgressSchema, photoResultSchema, pickupAllocationSchema, pickupAvailabilitySchema, pickupCatalogSchema, pickupPolicySchema, pickupSelectionSchema, pointsRewardSchema, prerequisiteSchema, publishedReleaseSchema, questAvailabilitySchema, questDescriptionSchema, questPresentationSchema, questSettingsInputSchema, quizAnswersSchema, quizEvidenceSchema, releaseSchema, reservationSchema, reviewItemSchema, reviewListSchema, reviewModeSchema, reviewPageSchema, rewardBundleSchema, rewardKey, rewardSchema, snapshotSchema, staffDecisionSchema, stockSchema, submitSchema, templateSchema, tierRewardSchema, tieredRewardDefinitionSchema, triggerSchema };
2536
+ export { type Attempt, type Decision, type Entitlement, type MemberListOptions, type MemberPage, type MemberProgress, type PhotoResult, type PickupAvailability, type PublishedRelease, type QuestAvailability, type QuestDescription, type QuestPresentation, type QuestSettingsInput, type QuizEvidence, type ReleaseInput, type ReviewListOptions, type ReviewPage, type Reward, type Snapshot, type SubmitInput, type TieredRewardDefinition, artifactSchema, attemptSchema, batchReleaseSchema, beginHandoverSchema, completionRecordSchema, configurePickupSchema, confirmHandoverSchema, createStockItemSchema, decisionSchema, entitlementSchema, errorSchema, eventSchema, evidenceSchema, identifier, integrationRewardSchema, mediaUrlSchema, memberListSchema, memberPageSchema, memberProgressSchema, photoResultSchema, pickupAllocationSchema, pickupAvailabilitySchema, pickupCatalogSchema, pickupPolicySchema, pickupSelectionSchema, pointsRewardSchema, prerequisiteSchema, publishedReleaseSchema, questAvailabilitySchema, questDescriptionSchema, questPresentationSchema, questSettingsInputSchema, quizAnswersSchema, quizEvidenceSchema, releaseSchema, reservationSchema, reviewItemSchema, reviewListSchema, reviewModeSchema, reviewPageSchema, rewardBundleSchema, rewardKey, rewardSchema, snapshotSchema, staffDecisionSchema, stockItemSchema, stockSchema, submitSchema, templateSchema, tierRewardSchema, tieredRewardDefinitionSchema, triggerSchema };
package/dist/schema.js CHANGED
@@ -6,6 +6,7 @@ import {
6
6
  completionRecordSchema,
7
7
  configurePickupSchema,
8
8
  confirmHandoverSchema,
9
+ createStockItemSchema,
9
10
  decisionSchema,
10
11
  entitlementSchema,
11
12
  errorSchema,
@@ -43,13 +44,14 @@ import {
43
44
  rewardSchema,
44
45
  snapshotSchema,
45
46
  staffDecisionSchema,
47
+ stockItemSchema,
46
48
  stockSchema,
47
49
  submitSchema,
48
50
  templateSchema,
49
51
  tierRewardSchema,
50
52
  tieredRewardDefinitionSchema,
51
53
  triggerSchema
52
- } from "./chunk-MXK7KEDA.js";
54
+ } from "./chunk-Z43O273V.js";
53
55
  export {
54
56
  artifactSchema,
55
57
  attemptSchema,
@@ -58,6 +60,7 @@ export {
58
60
  completionRecordSchema,
59
61
  configurePickupSchema,
60
62
  confirmHandoverSchema,
63
+ createStockItemSchema,
61
64
  decisionSchema,
62
65
  entitlementSchema,
63
66
  errorSchema,
@@ -95,6 +98,7 @@ export {
95
98
  rewardSchema,
96
99
  snapshotSchema,
97
100
  staffDecisionSchema,
101
+ stockItemSchema,
98
102
  stockSchema,
99
103
  submitSchema,
100
104
  templateSchema,