@domino-sdk/relay 1.7.0 → 1.10.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 (45) hide show
  1. package/dist/action-9Xl0StBg.d.ts +33 -0
  2. package/dist/{activity-Br6vyYze.d.ts → activity-C0O3g7VJ.d.ts} +9 -9
  3. package/dist/authoring.d.ts +12 -12
  4. package/dist/authoring.js +3 -3
  5. package/dist/{automatic-outcomes-C1Q9LrDb.d.ts → automatic-outcomes-kPIDv6X_.d.ts} +1 -1
  6. package/dist/avatar.d.ts +2 -2
  7. package/dist/browser.d.ts +9 -8
  8. package/dist/browser.js +8 -6
  9. package/dist/{capability-error-Bv996M-h.d.ts → capability-error-ty3SqD_b.d.ts} +1 -1
  10. package/dist/{chunk-KGJSKGKI.js → chunk-23JUD56J.js} +1119 -910
  11. package/dist/{chunk-ZOUEEK5L.js → chunk-7BRHUUVB.js} +83 -26
  12. package/dist/{chunk-C25TDFHN.js → chunk-BKLGWPPD.js} +48 -37
  13. package/dist/{chunk-6ON4RMEN.js → chunk-BUXNTVER.js} +1 -1
  14. package/dist/{chunk-BFZHJA2B.js → chunk-GEPSEVQO.js} +2 -2
  15. package/dist/chunk-GFAFH7XR.js +98 -0
  16. package/dist/{chunk-6RBF3UDA.js → chunk-GPS546KR.js} +232 -7
  17. package/dist/{chunk-5ECM6AWV.js → chunk-MMWTHVXW.js} +3 -3
  18. package/dist/chunk-N2HXMTVA.js +13 -0
  19. package/dist/{chunk-23QJ7WH4.js → chunk-QL77V77D.js} +1 -1
  20. package/dist/{chunk-GMPPLZKH.js → chunk-UIR6NSYZ.js} +243 -228
  21. package/dist/{chunk-JW4G3SY5.js → chunk-WRBPLXVP.js} +60 -47
  22. package/dist/{client-pfml_XAa.d.ts → client-Yq11HA_f.d.ts} +64 -43
  23. package/dist/{groups-BpWEqaPn.d.ts → groups-BK8ts2yK.d.ts} +94 -6
  24. package/dist/{images-BaKYd0fl.d.ts → images-aw6W7vFZ.d.ts} +2 -2
  25. package/dist/index.d.ts +10 -9
  26. package/dist/index.js +10 -5
  27. package/dist/internal.d.ts +3 -3
  28. package/dist/internal.js +5 -5
  29. package/dist/{offers-CYtal8jO.d.ts → offers-C2FANzrG.d.ts} +3 -3
  30. package/dist/{pages-CixTNnF4.d.ts → pages-D00JDZB-.d.ts} +70 -39
  31. package/dist/portal-proxy.js +8 -2
  32. package/dist/react/index.d.ts +203 -19
  33. package/dist/react/index.js +256 -113
  34. package/dist/{referral-reward-kinds-ClxAuCGx.d.ts → referral-reward-kinds-M3f0PdiR.d.ts} +2 -2
  35. package/dist/{schema-CQydLqw4.d.ts → schema-DEM8y8Fm.d.ts} +16 -16
  36. package/dist/schema.d.ts +11239 -13
  37. package/dist/schema.js +38 -6
  38. package/dist/server/index.d.ts +43693 -52
  39. package/dist/server/index.js +465 -53
  40. package/dist/{sign-in-options-CtXUFV7E.d.ts → sign-in-options-Coim0G1u.d.ts} +3 -3
  41. package/dist/{submission-input-CLefHTrj.d.ts → submission-input-BbBJTVlT.d.ts} +3 -3
  42. package/dist/util.d-w9f9t3ua.d.ts +5 -0
  43. package/dist/{wallet-YssWxGg8.d.ts → wallet-CDyo-U4n.d.ts} +1 -1
  44. package/package.json +1 -1
  45. package/dist/{profiles-D2aFcOxu.d.ts → profiles-BHMVj0kM.d.ts} +5 -5
@@ -1,38 +1,94 @@
1
1
  import {
2
2
  imageAssetArtifactSchema,
3
+ imageComparisonSchema,
4
+ imageExtractionSchema,
5
+ imageInspectionSchema,
6
+ imageSightingsSchema,
7
+ imageUploadsSchema,
3
8
  publishedImageSchema
4
- } from "./chunk-JW4G3SY5.js";
9
+ } from "./chunk-WRBPLXVP.js";
5
10
  import {
6
11
  catalogDeploymentSchema,
12
+ collectionPassSchema,
13
+ collectionViewSchema,
7
14
  interactionSchema,
15
+ participantActivitySchema,
16
+ participantDeliveriesSchema,
17
+ participantEntitlementsSchema,
18
+ questCatalogSchema,
8
19
  questCollectionSchema,
9
- questTypeVersionSchema
10
- } from "./chunk-C25TDFHN.js";
20
+ questEnrollmentSchema,
21
+ questExperienceSchema,
22
+ questOutcomePageSchema,
23
+ questOutcomeSchema,
24
+ questTypeVersionSchema,
25
+ questViewSchema,
26
+ rewardDeliveriesSchema
27
+ } from "./chunk-BKLGWPPD.js";
11
28
  import {
12
29
  engagementArtifactSchema,
30
+ engagementBoundaryPageSchema,
13
31
  engagementDeploymentEntrySchema,
32
+ engagementPageSchema,
14
33
  leaderboardArtifactSchema,
34
+ leaderboardDefinitionSchema,
35
+ leaderboardPageSchema,
36
+ leaderboardPlacementSchema,
15
37
  leaderboardPreviewSchema,
38
+ linkedWalletSchema,
16
39
  offerArtifactSchema,
17
40
  offerDefinitionSchema,
41
+ offerSchema,
42
+ ownProfileSchema,
43
+ pointBalancesSchema,
44
+ pointHistoryPageSchema,
18
45
  pointLedgerArtifactSchema,
46
+ pointLedgerReferenceSchema,
19
47
  pointLedgerSchema,
48
+ profileCompletionPageSchema,
49
+ profileReferralSchema,
50
+ profileSummarySchema,
20
51
  publishedReferralSchema,
21
- referralArtifactSchema
22
- } from "./chunk-GMPPLZKH.js";
52
+ redemptionSchema,
53
+ referralArtifactSchema,
54
+ referralDefinitionSchema,
55
+ referralHistorySchema,
56
+ referralSummarySchema,
57
+ walletBalanceSchema,
58
+ walletMessageChallengeSchema,
59
+ walletSignInNetworksSchema
60
+ } from "./chunk-UIR6NSYZ.js";
23
61
  import {
62
+ exchangeResultSchema,
63
+ memberSummarySchema,
64
+ participantSessionSchema
65
+ } from "./chunk-BUXNTVER.js";
66
+ import {
67
+ accountConnectionSchema,
24
68
  attemptSchema,
69
+ authProviderSchema,
70
+ campaignEnrollmentSchema,
71
+ contentPerformancePageSchema,
72
+ contentQualificationPageSchema,
73
+ entitlementSchema,
74
+ evidenceSchema,
25
75
  identifier,
76
+ knownResponse,
77
+ markResponseSchema,
78
+ memberProgressSchema,
26
79
  pageCursorSchema,
27
80
  projectCalendarDeclarationSchema,
28
81
  publishedReleaseSchema,
29
82
  publishedTrackerSchema,
30
83
  questBudgetViewSchema,
31
84
  releaseSchema,
85
+ responseListSchema,
86
+ responseSchema,
32
87
  rewardSchema,
88
+ tieredRewardReferenceSchema,
33
89
  timeZoneNameSchema,
34
90
  trackerArtifactSchema
35
- } from "./chunk-KGJSKGKI.js";
91
+ } from "./chunk-23JUD56J.js";
36
92
 
37
93
  // src/deployments.ts
38
94
  import { z } from "zod";
@@ -135,6 +191,26 @@ var repeatableDeploymentSchema = z.object({ actionId: z.string().uuid(), id: ide
135
191
  var promoteDeploymentSchema = repeatableDeploymentSchema;
136
192
  var rollbackDeploymentSchema = repeatableDeploymentSchema;
137
193
 
194
+ // src/capability-responses.ts
195
+ var capabilityResponseSchemas = {
196
+ imageInspectionSchema: knownResponse(imageInspectionSchema),
197
+ imageComparisonSchema: knownResponse(imageComparisonSchema),
198
+ imageExtractionSchema: knownResponse(imageExtractionSchema),
199
+ imageSightingsSchema: knownResponse(imageSightingsSchema),
200
+ imageUploadsSchema: knownResponse(imageUploadsSchema),
201
+ publishedImageSchema: knownResponse(publishedImageSchema),
202
+ walletBalanceSchema: knownResponse(walletBalanceSchema)
203
+ };
204
+ var capabilityResponses = {
205
+ imageInspectionSchema: responseSchema(imageInspectionSchema),
206
+ imageComparisonSchema: responseSchema(imageComparisonSchema),
207
+ imageExtractionSchema: responseSchema(imageExtractionSchema),
208
+ imageSightingsSchema: responseSchema(imageSightingsSchema),
209
+ imageUploadsSchema: responseSchema(imageUploadsSchema),
210
+ publishedImageSchema: responseSchema(publishedImageSchema),
211
+ walletBalanceSchema: responseSchema(walletBalanceSchema)
212
+ };
213
+
138
214
  // src/activity.ts
139
215
  import { z as z2 } from "zod";
140
216
  var activityTypes = {
@@ -295,6 +371,143 @@ var automaticSchedulingRetrySchema = z3.strictObject({
295
371
  reason: z3.string().trim().min(1).max(1e3)
296
372
  });
297
373
 
374
+ // src/response-readers.ts
375
+ var participantResponseSchemas = {
376
+ accountConnectionSchema: knownResponse(accountConnectionSchema),
377
+ attemptSchema: knownResponse(attemptSchema),
378
+ authProviderSchema: knownResponse(authProviderSchema),
379
+ campaignEnrollmentSchema: knownResponse(campaignEnrollmentSchema),
380
+ collectionPassSchema: knownResponse(collectionPassSchema),
381
+ contentPerformancePageSchema: knownResponse(contentPerformancePageSchema),
382
+ contentQualificationPageSchema: knownResponse(contentQualificationPageSchema),
383
+ engagementBoundaryPageSchema: knownResponse(engagementBoundaryPageSchema),
384
+ engagementPageSchema: knownResponse(engagementPageSchema),
385
+ evidenceSchema: knownResponse(evidenceSchema),
386
+ exchangeResultSchema: knownResponse(exchangeResultSchema),
387
+ leaderboardDefinitionSchema: knownResponse(leaderboardDefinitionSchema),
388
+ leaderboardPageSchema: knownResponse(leaderboardPageSchema),
389
+ leaderboardPlacementSchema: knownResponse(leaderboardPlacementSchema),
390
+ linkedWalletSchema: knownResponse(linkedWalletSchema),
391
+ memberProgressSchema: knownResponse(memberProgressSchema),
392
+ memberSummarySchema: knownResponse(memberSummarySchema),
393
+ offerSchema: knownResponse(offerSchema),
394
+ ownProfileSchema: knownResponse(ownProfileSchema),
395
+ participantActivitySchema: knownResponse(participantActivitySchema),
396
+ participantDeliveriesSchema: knownResponse(participantDeliveriesSchema),
397
+ participantEntitlementsSchema: knownResponse(participantEntitlementsSchema),
398
+ participantSessionSchema: knownResponse(participantSessionSchema),
399
+ pointBalancesSchema: knownResponse(pointBalancesSchema),
400
+ pointHistoryPageSchema: knownResponse(pointHistoryPageSchema),
401
+ pointLedgerReferenceSchema: knownResponse(pointLedgerReferenceSchema),
402
+ profileCompletionPageSchema: knownResponse(profileCompletionPageSchema),
403
+ profileReferralSchema: knownResponse(profileReferralSchema),
404
+ profileSummarySchema: knownResponse(profileSummarySchema),
405
+ questEnrollmentSchema: knownResponse(questEnrollmentSchema),
406
+ questExperienceSchema: knownResponse(questExperienceSchema),
407
+ questOutcomePageSchema: knownResponse(questOutcomePageSchema),
408
+ questOutcomeSchema: knownResponse(questOutcomeSchema),
409
+ redemptionSchema: knownResponse(redemptionSchema),
410
+ referralDefinitionSchema: knownResponse(referralDefinitionSchema),
411
+ referralHistorySchema: knownResponse(referralHistorySchema),
412
+ referralSummarySchema: knownResponse(referralSummarySchema),
413
+ rewardDeliveriesSchema: knownResponse(rewardDeliveriesSchema),
414
+ tieredRewardReferenceSchema: knownResponse(tieredRewardReferenceSchema),
415
+ walletMessageChallengeSchema: knownResponse(walletMessageChallengeSchema),
416
+ walletSignInNetworksSchema: knownResponse(walletSignInNetworksSchema)
417
+ };
418
+ var participantResponses = {
419
+ accountConnectionSchema: responseSchema(accountConnectionSchema),
420
+ attemptSchema: responseSchema(attemptSchema),
421
+ authProviderSchema: responseSchema(authProviderSchema),
422
+ campaignEnrollmentSchema: responseSchema(campaignEnrollmentSchema),
423
+ collectionPassSchema: responseSchema(collectionPassSchema),
424
+ contentPerformancePageSchema: responseSchema(contentPerformancePageSchema),
425
+ contentQualificationPageSchema: responseSchema(
426
+ contentQualificationPageSchema
427
+ ),
428
+ engagementBoundaryPageSchema: responseSchema(engagementBoundaryPageSchema),
429
+ engagementPageSchema: responseSchema(engagementPageSchema),
430
+ evidenceSchema: responseSchema(evidenceSchema),
431
+ exchangeResultSchema: responseSchema(exchangeResultSchema),
432
+ leaderboardDefinitionSchema: responseSchema(leaderboardDefinitionSchema),
433
+ leaderboardPageSchema: responseSchema(leaderboardPageSchema),
434
+ leaderboardPlacementSchema: responseSchema(leaderboardPlacementSchema),
435
+ linkedWalletSchema: responseSchema(linkedWalletSchema),
436
+ memberProgressSchema: responseSchema(memberProgressSchema),
437
+ memberSummarySchema: responseSchema(memberSummarySchema),
438
+ offerSchema: responseSchema(offerSchema),
439
+ ownProfileSchema: responseSchema(ownProfileSchema),
440
+ participantActivitySchema: responseSchema(participantActivitySchema),
441
+ participantDeliveriesSchema: responseSchema(participantDeliveriesSchema),
442
+ participantEntitlementsSchema: responseSchema(participantEntitlementsSchema),
443
+ participantSessionSchema: responseSchema(participantSessionSchema),
444
+ pointBalancesSchema: responseSchema(pointBalancesSchema),
445
+ pointHistoryPageSchema: responseSchema(pointHistoryPageSchema),
446
+ pointLedgerReferenceSchema: responseSchema(pointLedgerReferenceSchema),
447
+ profileCompletionPageSchema: responseSchema(profileCompletionPageSchema),
448
+ profileReferralSchema: responseSchema(profileReferralSchema),
449
+ profileSummarySchema: responseSchema(profileSummarySchema),
450
+ questEnrollmentSchema: responseSchema(questEnrollmentSchema),
451
+ questExperienceSchema: responseSchema(questExperienceSchema),
452
+ questOutcomePageSchema: responseSchema(questOutcomePageSchema),
453
+ questOutcomeSchema: responseSchema(questOutcomeSchema),
454
+ redemptionSchema: responseSchema(redemptionSchema),
455
+ referralDefinitionSchema: responseSchema(referralDefinitionSchema),
456
+ referralHistorySchema: responseSchema(referralHistorySchema),
457
+ referralSummarySchema: responseSchema(referralSummarySchema),
458
+ rewardDeliveriesSchema: responseSchema(rewardDeliveriesSchema),
459
+ tieredRewardReferenceSchema: responseSchema(tieredRewardReferenceSchema),
460
+ walletMessageChallengeSchema: responseSchema(walletMessageChallengeSchema),
461
+ walletSignInNetworksSchema: responseSchema(walletSignInNetworksSchema)
462
+ };
463
+
464
+ // src/evolving-responses.ts
465
+ import { z as z4 } from "zod";
466
+ var offerResponseSchema = responseSchema(offerSchema);
467
+ var offerListResponseSchema = responseListSchema(offerSchema);
468
+ var redemptionResponseSchema = responseSchema(redemptionSchema);
469
+ var redemptionListResponseSchema = responseListSchema(redemptionSchema);
470
+ var leaderboardListResponseSchema = responseListSchema(
471
+ leaderboardDefinitionSchema
472
+ );
473
+ var collectionResponseShape = collectionViewSchema.extend({
474
+ quests: responseListSchema(questViewSchema)
475
+ });
476
+ var questExperienceResponseSchema = markResponseSchema(
477
+ z4.object({
478
+ member: identifier,
479
+ quests: responseListSchema(questViewSchema),
480
+ collections: responseListSchema(collectionResponseShape),
481
+ entitlements: responseListSchema(entitlementSchema).default({
482
+ items: [],
483
+ unsupportedCount: 0
484
+ })
485
+ })
486
+ );
487
+ var memberProgressResponseSchema = markResponseSchema(
488
+ z4.object({
489
+ member: identifier,
490
+ quests: responseListSchema(memberProgressSchema.shape.quests.element),
491
+ entitlements: responseListSchema(entitlementSchema)
492
+ })
493
+ );
494
+ var questCatalogResponseSchema = markResponseSchema(
495
+ z4.object({
496
+ revision: questCatalogSchema.shape.revision,
497
+ types: responseListSchema(questCatalogSchema.shape.types.element),
498
+ collections: responseListSchema(
499
+ questCatalogSchema.shape.collections.element
500
+ ),
501
+ quests: responseListSchema(questCatalogSchema.shape.quests.element),
502
+ drafts: responseListSchema(questCatalogSchema.shape.drafts.element),
503
+ releases: responseListSchema(publishedReleaseSchema).default({
504
+ items: [],
505
+ unsupportedCount: 0
506
+ }),
507
+ supportedInteractions: responseListSchema(interactionSchema)
508
+ })
509
+ );
510
+
298
511
  export {
299
512
  projectCatalogArtifactSchema,
300
513
  projectDeploymentSchema,
@@ -309,6 +522,8 @@ export {
309
522
  deploymentActionSchema,
310
523
  promoteDeploymentSchema,
311
524
  rollbackDeploymentSchema,
525
+ capabilityResponseSchemas,
526
+ capabilityResponses,
312
527
  activityTypes,
313
528
  activityTypeSchema,
314
529
  automaticEventSchema,
@@ -323,5 +538,15 @@ export {
323
538
  automaticSchedulingQuerySchema,
324
539
  automaticSchedulingSchema,
325
540
  automaticSchedulingPageSchema,
326
- automaticSchedulingRetrySchema
541
+ automaticSchedulingRetrySchema,
542
+ participantResponseSchemas,
543
+ participantResponses,
544
+ offerResponseSchema,
545
+ offerListResponseSchema,
546
+ redemptionResponseSchema,
547
+ redemptionListResponseSchema,
548
+ leaderboardListResponseSchema,
549
+ questExperienceResponseSchema,
550
+ memberProgressResponseSchema,
551
+ questCatalogResponseSchema
327
552
  };
@@ -4,15 +4,15 @@ import {
4
4
  imageFieldsSchema,
5
5
  imageInspectionSchema,
6
6
  imageSightingsSchema
7
- } from "./chunk-JW4G3SY5.js";
7
+ } from "./chunk-WRBPLXVP.js";
8
8
  import {
9
9
  authScopeSchema
10
- } from "./chunk-6ON4RMEN.js";
10
+ } from "./chunk-BUXNTVER.js";
11
11
  import {
12
12
  appIdentityKindSchema,
13
13
  openIdentityKindSchema,
14
14
  photoResultSchema
15
- } from "./chunk-KGJSKGKI.js";
15
+ } from "./chunk-23JUD56J.js";
16
16
 
17
17
  // src/configuration.ts
18
18
  function questConfiguration(release) {
@@ -0,0 +1,13 @@
1
+ // package.json
2
+ var name = "@domino-sdk/relay";
3
+ var version = "1.10.0";
4
+
5
+ // src/client-identity.ts
6
+ function clientIdentity() {
7
+ const runtime = typeof document === "undefined" ? "server" : "browser";
8
+ return `${name}/${version} (${runtime})`;
9
+ }
10
+
11
+ export {
12
+ clientIdentity
13
+ };
@@ -5,7 +5,7 @@ import {
5
5
  isKnownTrackerSource,
6
6
  trackerDataSchema,
7
7
  xAccountRoles
8
- } from "./chunk-KGJSKGKI.js";
8
+ } from "./chunk-23JUD56J.js";
9
9
 
10
10
  // src/quest-shape.ts
11
11
  function validateQuestShape(description, options = {}) {