@domino-sdk/relay 1.0.0-next.8 → 1.0.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 (59) hide show
  1. package/README.md +1 -1
  2. package/dist/activity-DeKJsRry.d.ts +9112 -0
  3. package/dist/authoring.d.ts +1135 -285
  4. package/dist/authoring.js +545 -269
  5. package/dist/automatic-outcomes-B1xrETxm.d.ts +758 -0
  6. package/dist/avatar.d.ts +2 -2
  7. package/dist/browser-DFe7sWSN.d.ts +4154 -0
  8. package/dist/browser.d.ts +11 -2528
  9. package/dist/browser.js +8 -6
  10. package/dist/capability-error-DNMwKmlL.d.ts +458 -0
  11. package/dist/{chunk-V7EZUZ3Z.js → chunk-36HTX2BM.js} +389 -169
  12. package/dist/chunk-6QJ3LADK.js +112 -0
  13. package/dist/{chunk-77H7APVD.js → chunk-BGGKNIRP.js} +1 -1
  14. package/dist/chunk-EYH5RDIE.js +496 -0
  15. package/dist/chunk-GQKYAQM6.js +84 -0
  16. package/dist/chunk-GUP7YRR4.js +42 -0
  17. package/dist/{chunk-V5R2DMGY.js → chunk-GZ6FJAXN.js} +380 -128
  18. package/dist/chunk-JON5SESL.js +2986 -0
  19. package/dist/chunk-MC6V6VMG.js +49 -0
  20. package/dist/chunk-NPGENI7K.js +37 -0
  21. package/dist/chunk-VFHHLN6A.js +284 -0
  22. package/dist/chunk-WJSSJ7AF.js +151 -0
  23. package/dist/{chunk-QBOHLT7M.js → chunk-XFMSUPNS.js} +1 -1
  24. package/dist/{chunk-6A6K5RUD.js → chunk-ZVIRG24J.js} +145 -42
  25. package/dist/{client-CK4nwt7V.d.ts → client-XiuFnug_.d.ts} +2193 -562
  26. package/dist/{submission-input-C9qm9ixd.d.ts → groups-Ck-OxzjD.d.ts} +919 -1142
  27. package/dist/identity-integration-GxAHdKR2.d.ts +58 -0
  28. package/dist/{images--vZ9U0kr.d.ts → images-Dv-P5VBw.d.ts} +2 -2
  29. package/dist/index.d.ts +13 -9
  30. package/dist/index.js +17 -6
  31. package/dist/internal.d.ts +82 -43
  32. package/dist/internal.js +58 -90
  33. package/dist/offers-Cy-e4o5x.d.ts +431 -0
  34. package/dist/{pages-BzqJuI69.d.ts → outcomes-kVB-Juzs.d.ts} +2386 -1490
  35. package/dist/pages-BBYD21IE.d.ts +359 -0
  36. package/dist/participant-rewards-3duLb8YJ.d.ts +668 -0
  37. package/dist/portal-proxy.js +22 -4
  38. package/dist/{profiles-DDMFBRKe.d.ts → profiles-D2aFcOxu.d.ts} +15 -15
  39. package/dist/react/index.d.ts +3122 -1011
  40. package/dist/react/index.js +1627 -779
  41. package/dist/request-error-DWduJCGV.d.ts +62 -0
  42. package/dist/schema-DfJzH2ci.d.ts +5644 -0
  43. package/dist/schema.d.ts +15 -4216
  44. package/dist/schema.js +322 -81
  45. package/dist/server/index.d.ts +81498 -0
  46. package/dist/server/index.js +2520 -0
  47. package/dist/{streaks-CwGReWGt.d.ts → streaks-CWyq8Px5.d.ts} +2 -4
  48. package/dist/submission-input-BZkm6ohU.d.ts +290 -0
  49. package/dist/vite.d.ts +1 -1
  50. package/dist/vite.js +1 -0
  51. package/dist/{wallet-BGOfFkG9.d.ts → wallet-YssWxGg8.d.ts} +35 -38
  52. package/package.json +8 -2
  53. package/dist/chunk-MRIURJE3.js +0 -257
  54. package/dist/chunk-VARGF4JS.js +0 -1733
  55. package/dist/chunk-ZWY3R6B3.js +0 -26
  56. package/dist/collection-BGneJ6Bk.d.ts +0 -114
  57. package/dist/integrations-C3Sp558f.d.ts +0 -1297
  58. package/dist/point-ledgers-iS00Z_v0.d.ts +0 -37
  59. package/dist/schema-pnuWqvGn.d.ts +0 -3396
@@ -1,26 +0,0 @@
1
- // src/participant-routes.ts
2
- function isContentParticipantRoute(path, method) {
3
- return method === "GET" && (path === "/v1/content/admissions" || path === "/v1/content/qualifications" || path === "/v1/content/performance" || path === "/v1/engagement/history" || path === "/v1/engagement/boundaries") || method === "POST" && (path === "/v1/content/enrollments" || path === "/v1/content/claims");
4
- }
5
- function isProfileParticipantRoute(path, method) {
6
- return method === "GET" && (path === "/v1/me/profile" || /^\/v1\/profiles\/[\w-]+(?:\/completions|\/referrals\/[\w-]+)?$/.test(
7
- path
8
- ) || /^\/v1\/leaderboards\/[\w-]+\/profiles\/[\w-]+$/.test(path)) || method === "POST" && (path === "/v1/me/profile" || path === "/v1/me/profile/avatar");
9
- }
10
- function isWalletParticipantRoute(path) {
11
- return /^\/v1\/me\/wallets(?:\/challenge|\/verify|\/unlink)?$/.test(path);
12
- }
13
- function isLegacyWalletRoute(path) {
14
- return /^\/v1\/me\/wallet(?:\/challenge|\/verify)?$/.test(path);
15
- }
16
- function isWalletSignInRoute(path) {
17
- return /^\/v1\/auth\/wallet\/(?:start|verify)$/.test(path);
18
- }
19
-
20
- export {
21
- isContentParticipantRoute,
22
- isProfileParticipantRoute,
23
- isWalletParticipantRoute,
24
- isLegacyWalletRoute,
25
- isWalletSignInRoute
26
- };
@@ -1,114 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- declare const collectionCodeSchema: z.ZodString;
4
- declare const collectionPassSchema: z.ZodObject<{
5
- code: z.ZodString;
6
- expiresAt: z.ZodNumber;
7
- entitlement: z.ZodString;
8
- }, z.core.$strip>;
9
- type CollectionPass = z.infer<typeof collectionPassSchema>;
10
- declare const collectionResolveSchema: z.ZodObject<{
11
- code: z.ZodString;
12
- }, z.core.$strict>;
13
- declare const collectionBeginSchema: z.ZodObject<{
14
- code: z.ZodString;
15
- actionId: z.ZodString;
16
- revision: z.ZodNumber;
17
- selection: z.ZodOptional<z.ZodObject<{
18
- item: z.ZodString;
19
- revision: z.ZodNumber;
20
- }, z.core.$strict>>;
21
- }, z.core.$strict>;
22
- declare const collectionPreviewSchema: z.ZodObject<{
23
- entitlement: z.ZodDiscriminatedUnion<[z.ZodObject<{
24
- status: z.ZodLiteral<"available">;
25
- id: z.ZodString;
26
- member: z.ZodString;
27
- reward: z.ZodObject<{
28
- id: z.ZodString;
29
- title: z.ZodString;
30
- tiers: z.ZodArray<z.ZodObject<{
31
- id: z.ZodString;
32
- title: z.ZodString;
33
- }, z.core.$strict>>;
34
- inventory: z.ZodObject<{
35
- kind: z.ZodLiteral<"untracked">;
36
- }, z.core.$strict>;
37
- fulfillment: z.ZodObject<{
38
- kind: z.ZodLiteral<"staff-handover">;
39
- }, z.core.$strict>;
40
- }, z.core.$strict>;
41
- earnedTier: z.ZodString;
42
- tier: z.ZodString;
43
- revision: z.ZodNumber;
44
- }, z.core.$strict>, z.ZodObject<{
45
- status: z.ZodLiteral<"handing-over">;
46
- handover: z.ZodString;
47
- startedAt: z.ZodNumber;
48
- allocation: z.ZodOptional<z.ZodObject<{
49
- item: z.ZodString;
50
- label: z.ZodString;
51
- }, z.core.$strict>>;
52
- id: z.ZodString;
53
- member: z.ZodString;
54
- reward: z.ZodObject<{
55
- id: z.ZodString;
56
- title: z.ZodString;
57
- tiers: z.ZodArray<z.ZodObject<{
58
- id: z.ZodString;
59
- title: z.ZodString;
60
- }, z.core.$strict>>;
61
- inventory: z.ZodObject<{
62
- kind: z.ZodLiteral<"untracked">;
63
- }, z.core.$strict>;
64
- fulfillment: z.ZodObject<{
65
- kind: z.ZodLiteral<"staff-handover">;
66
- }, z.core.$strict>;
67
- }, z.core.$strict>;
68
- earnedTier: z.ZodString;
69
- tier: z.ZodString;
70
- revision: z.ZodNumber;
71
- }, z.core.$strict>, z.ZodObject<{
72
- status: z.ZodLiteral<"collected">;
73
- handover: z.ZodString;
74
- startedAt: z.ZodNumber;
75
- allocation: z.ZodOptional<z.ZodObject<{
76
- item: z.ZodString;
77
- label: z.ZodString;
78
- }, z.core.$strict>>;
79
- collectedAt: z.ZodNumber;
80
- id: z.ZodString;
81
- member: z.ZodString;
82
- reward: z.ZodObject<{
83
- id: z.ZodString;
84
- title: z.ZodString;
85
- tiers: z.ZodArray<z.ZodObject<{
86
- id: z.ZodString;
87
- title: z.ZodString;
88
- }, z.core.$strict>>;
89
- inventory: z.ZodObject<{
90
- kind: z.ZodLiteral<"untracked">;
91
- }, z.core.$strict>;
92
- fulfillment: z.ZodObject<{
93
- kind: z.ZodLiteral<"staff-handover">;
94
- }, z.core.$strict>;
95
- }, z.core.$strict>;
96
- earnedTier: z.ZodString;
97
- tier: z.ZodString;
98
- revision: z.ZodNumber;
99
- }, z.core.$strict>], "status">;
100
- inventory: z.ZodDiscriminatedUnion<[z.ZodObject<{
101
- kind: z.ZodLiteral<"untracked">;
102
- }, z.core.$strict>, z.ZodObject<{
103
- kind: z.ZodLiteral<"at-pickup">;
104
- revision: z.ZodNumber;
105
- variants: z.ZodArray<z.ZodObject<{
106
- item: z.ZodString;
107
- label: z.ZodString;
108
- available: z.ZodNumber;
109
- }, z.core.$strict>>;
110
- }, z.core.$strict>], "kind">;
111
- expiresAt: z.ZodNumber;
112
- }, z.core.$strip>;
113
-
114
- export { type CollectionPass as C, collectionCodeSchema as a, collectionPassSchema as b, collectionBeginSchema as c, collectionPreviewSchema as d, collectionResolveSchema as e };