@domino-sdk/relay 1.0.0-next.5 → 1.0.0-next.7

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 (42) hide show
  1. package/README.md +13 -1
  2. package/build.mjs +18 -1
  3. package/dist/authoring.d.ts +322 -14
  4. package/dist/authoring.js +187 -25
  5. package/dist/avatar.d.ts +29 -0
  6. package/dist/avatar.js +21 -0
  7. package/dist/browser.d.ts +19 -3
  8. package/dist/browser.js +6 -6
  9. package/dist/catalog-C09gnPYT.d.ts +3948 -0
  10. package/dist/chunk-7HSTFBMO.js +24 -0
  11. package/dist/{chunk-VH4OQ5VX.js → chunk-ADSP377G.js} +1 -1
  12. package/dist/{chunk-FDWRBMB3.js → chunk-AWLLGCKU.js} +2 -2
  13. package/dist/chunk-DJZB5RY5.js +901 -0
  14. package/dist/chunk-SKETUPST.js +171 -0
  15. package/dist/chunk-UFXBQ6FN.js +257 -0
  16. package/dist/{chunk-NKGJEYZM.js → chunk-UW6R2QGT.js} +610 -719
  17. package/dist/chunk-V7UKZLHA.js +35 -0
  18. package/dist/{chunk-4KNTMNXA.js → chunk-X6FJIPXR.js} +166 -724
  19. package/dist/client-BufGakEt.d.ts +4577 -0
  20. package/dist/collection-BGneJ6Bk.d.ts +114 -0
  21. package/dist/images-e6FW9QSx.d.ts +234 -0
  22. package/dist/index.d.ts +11 -13115
  23. package/dist/index.js +11 -693
  24. package/dist/integrations-C3Sp558f.d.ts +1297 -0
  25. package/dist/internal.d.ts +109 -0
  26. package/dist/internal.js +104 -0
  27. package/dist/point-ledgers-iS00Z_v0.d.ts +37 -0
  28. package/dist/portal-proxy.js +5 -6
  29. package/dist/profiles-BtOXMGcC.d.ts +297 -0
  30. package/dist/react/index.d.ts +51 -34
  31. package/dist/react/index.js +7 -13
  32. package/dist/schema-DCapSPHz.d.ts +3396 -0
  33. package/dist/schema.d.ts +3194 -2366
  34. package/dist/schema.js +539 -3
  35. package/dist/streaks-CwGReWGt.d.ts +73 -0
  36. package/dist/submission-input-Bter6XiI.d.ts +2672 -0
  37. package/dist/units-CwgsPB_r.d.ts +9 -0
  38. package/dist/wallet-Bu6sqJvQ.d.ts +231 -0
  39. package/package.json +17 -4
  40. package/dist/chunk-B76BAJ25.js +0 -624
  41. package/dist/chunk-ONDBQSMU.js +0 -373
  42. package/dist/submission-input-CZDukyb3.d.ts +0 -4998
@@ -0,0 +1,24 @@
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\/(?:wallet(?:\/challenge|\/verify)?|wallets(?:\/challenge|\/verify|\/unlink)?)$/.test(
12
+ path
13
+ );
14
+ }
15
+ function isWalletSignInRoute(path) {
16
+ return /^\/v1\/auth\/wallet\/(?:start|verify)$/.test(path);
17
+ }
18
+
19
+ export {
20
+ isContentParticipantRoute,
21
+ isProfileParticipantRoute,
22
+ isWalletParticipantRoute,
23
+ isWalletSignInRoute
24
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  identifier
3
- } from "./chunk-NKGJEYZM.js";
3
+ } from "./chunk-UW6R2QGT.js";
4
4
 
5
5
  // src/auth.ts
6
6
  import { z } from "zod";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createRelayClient
3
- } from "./chunk-4KNTMNXA.js";
3
+ } from "./chunk-X6FJIPXR.js";
4
4
  import {
5
5
  cosmosChain
6
- } from "./chunk-ONDBQSMU.js";
6
+ } from "./chunk-DJZB5RY5.js";
7
7
 
8
8
  // src/base58.ts
9
9
  var alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";