@domino-sdk/relay 1.0.0-next.6 → 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 +316 -14
  4. package/dist/authoring.js +177 -23
  5. package/dist/avatar.d.ts +29 -0
  6. package/dist/avatar.js +21 -0
  7. package/dist/browser.d.ts +168 -165
  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-5IIWKDFX.js → chunk-ADSP377G.js} +1 -1
  12. package/dist/{chunk-RTHN22KO.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-BRESOTKV.js → chunk-UW6R2QGT.js} +604 -723
  17. package/dist/chunk-V7UKZLHA.js +35 -0
  18. package/dist/{chunk-ERBVT7GE.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 -13132
  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 +37 -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 -2372
  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-XEQDW7FM.js +0 -373
  41. package/dist/chunk-ZKJBCQNI.js +0 -624
  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-BRESOTKV.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-ERBVT7GE.js";
3
+ } from "./chunk-X6FJIPXR.js";
4
4
  import {
5
5
  cosmosChain
6
- } from "./chunk-XEQDW7FM.js";
6
+ } from "./chunk-DJZB5RY5.js";
7
7
 
8
8
  // src/base58.ts
9
9
  var alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";