@domino-sdk/relay 1.5.2 → 1.7.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 (44) hide show
  1. package/dist/{activity-DeKJsRry.d.ts → activity-Br6vyYze.d.ts} +147 -116
  2. package/dist/authoring.d.ts +59 -47
  3. package/dist/authoring.js +3 -3
  4. package/dist/{automatic-outcomes-B1xrETxm.d.ts → automatic-outcomes-C1Q9LrDb.d.ts} +224 -13
  5. package/dist/browser.d.ts +22 -10
  6. package/dist/browser.js +6 -6
  7. package/dist/{capability-error-DNMwKmlL.d.ts → capability-error-Bv996M-h.d.ts} +2 -0
  8. package/dist/{chunk-GQKYAQM6.js → chunk-23QJ7WH4.js} +1 -1
  9. package/dist/{chunk-WJSSJ7AF.js → chunk-5ECM6AWV.js} +24 -4
  10. package/dist/{chunk-XFMSUPNS.js → chunk-6ON4RMEN.js} +1 -1
  11. package/dist/{chunk-VFHHLN6A.js → chunk-6RBF3UDA.js} +49 -6
  12. package/dist/chunk-AXRMT33W.js +112 -0
  13. package/dist/{chunk-24AFCBZN.js → chunk-BFZHJA2B.js} +2 -2
  14. package/dist/{chunk-EYH5RDIE.js → chunk-C25TDFHN.js} +4 -2
  15. package/dist/{chunk-36HTX2BM.js → chunk-GMPPLZKH.js} +61 -4
  16. package/dist/{chunk-BGGKNIRP.js → chunk-JW4G3SY5.js} +1 -1
  17. package/dist/{chunk-JON5SESL.js → chunk-KGJSKGKI.js} +84 -6
  18. package/dist/{chunk-DGWMLN35.js → chunk-ZOUEEK5L.js} +16 -5
  19. package/dist/{client-gqnRUHpC.d.ts → client-pfml_XAa.d.ts} +88 -41
  20. package/dist/{groups-Ck-OxzjD.d.ts → groups-BpWEqaPn.d.ts} +175 -3
  21. package/dist/{images-Dv-P5VBw.d.ts → images-BaKYd0fl.d.ts} +1 -1
  22. package/dist/index.d.ts +9 -9
  23. package/dist/index.js +5 -5
  24. package/dist/internal.d.ts +6 -113
  25. package/dist/internal.js +18 -24
  26. package/dist/{offers-Cy-e4o5x.d.ts → offers-CYtal8jO.d.ts} +3 -2
  27. package/dist/{outcomes-kVB-Juzs.d.ts → pages-CixTNnF4.d.ts} +142 -99
  28. package/dist/{pages-BBYD21IE.d.ts → participant-activity-DkL3nY5a.d.ts} +1 -14
  29. package/dist/portal-proxy.js +48 -36
  30. package/dist/react/index.d.ts +25 -3949
  31. package/dist/react/index.js +8 -7
  32. package/dist/referral-reward-kinds-ClxAuCGx.d.ts +171 -0
  33. package/dist/{request-error-DWduJCGV.d.ts → request-error-D_dUPLwo.d.ts} +5 -0
  34. package/dist/{schema-DfJzH2ci.d.ts → schema-CQydLqw4.d.ts} +122 -37
  35. package/dist/schema.d.ts +10 -10
  36. package/dist/schema.js +48 -6
  37. package/dist/server/index.d.ts +9673 -66110
  38. package/dist/server/index.js +1048 -550
  39. package/dist/sign-in-options-CtXUFV7E.d.ts +202 -0
  40. package/dist/{submission-input-BZkm6ohU.d.ts → submission-input-CLefHTrj.d.ts} +2 -2
  41. package/package.json +1 -1
  42. package/dist/browser-D_3s8B5e.d.ts +0 -4154
  43. package/dist/chunk-GUP7YRR4.js +0 -42
  44. package/dist/identity-integration-GxAHdKR2.d.ts +0 -58
@@ -1,42 +0,0 @@
1
- // src/participant-routes.ts
2
- function isActivityParticipantRoute(path, method) {
3
- return path === "/v1/me/activity" && method === "GET";
4
- }
5
- function isRewardsParticipantRoute(path, method) {
6
- return method === "GET" && ["/v1/me/entitlements", "/v1/me/deliveries"].includes(path);
7
- }
8
- function isContentParticipantRoute(path, method) {
9
- return method === "GET" && (path === "/v1/content/qualifications" || path === "/v1/content/performance" || path === "/v1/engagement/history" || path === "/v1/engagement/boundaries");
10
- }
11
- function isQuestOutcomeParticipantRoute(path, method) {
12
- return method === "GET" && path === "/v1/quests/outcomes" || method === "POST" && (path === "/v1/quests/enrollments" || path === "/v1/campaigns/enrollments" || path === "/v1/campaigns/enrollments/withdraw" || path === "/v1/quests/claims");
13
- }
14
- function isPointsParticipantRoute(path, method) {
15
- return method === "GET" && /^\/v1\/me\/points(?:\/[\w-]+\/history)?$/.test(path);
16
- }
17
- function isOfferParticipantRoute(path, method) {
18
- return path === "/v1/offers" && method === "GET" || /^\/v1\/offers\/[\w-]+\/redeem$/.test(path) && method === "POST";
19
- }
20
- function isProfileParticipantRoute(path, method) {
21
- return method === "GET" && (path === "/v1/me/profile" || /^\/v1\/profiles\/[\w-]+(?:\/completions|\/referrals\/[\w-]+)?$/.test(
22
- path
23
- ) || /^\/v1\/leaderboards\/[\w-]+\/profiles\/[\w-]+$/.test(path)) || method === "POST" && (path === "/v1/me/profile" || path === "/v1/me/profile/avatar");
24
- }
25
- function isWalletParticipantRoute(path) {
26
- return /^\/v1\/me\/wallets(?:\/challenge|\/verify|\/unlink)?$/.test(path);
27
- }
28
- function isWalletSignInRoute(path) {
29
- return /^\/v1\/auth\/wallet\/(?:start|verify)$/.test(path);
30
- }
31
-
32
- export {
33
- isActivityParticipantRoute,
34
- isRewardsParticipantRoute,
35
- isContentParticipantRoute,
36
- isQuestOutcomeParticipantRoute,
37
- isPointsParticipantRoute,
38
- isOfferParticipantRoute,
39
- isProfileParticipantRoute,
40
- isWalletParticipantRoute,
41
- isWalletSignInRoute
42
- };
@@ -1,58 +0,0 @@
1
- import { O as OpenIdentityKind } from './schema-DfJzH2ci.js';
2
- import { z } from 'zod';
3
-
4
- declare const identityIntegrationInputSchema: z.ZodObject<{
5
- name: z.ZodString;
6
- origin: z.ZodString;
7
- identityKind: z.ZodOptional<z.ZodTemplateLiteral<`app:${string}`>>;
8
- adoptIdentitiesFrom: z.ZodOptional<z.ZodString>;
9
- reason: z.ZodOptional<z.ZodString>;
10
- }, z.core.$strict>;
11
- /** An integration as responses return it: fields a newer Relay adds are ignored. */
12
- declare const identityIntegrationSchema: z.ZodObject<{
13
- id: z.ZodString;
14
- name: z.ZodString;
15
- origin: z.ZodString;
16
- expiresAt: z.ZodNumber;
17
- identityKind: z.ZodDefault<z.ZodNullable<z.ZodType<OpenIdentityKind, unknown, z.core.$ZodTypeInternals<OpenIdentityKind, unknown>>>>;
18
- organization: z.ZodString;
19
- project: z.ZodString;
20
- environment: z.ZodEnum<{
21
- test: "test";
22
- live: "live";
23
- }>;
24
- }, z.core.$strip>;
25
- declare const identityIntegrationSecretSchema: z.ZodObject<{
26
- id: z.ZodString;
27
- name: z.ZodString;
28
- origin: z.ZodString;
29
- expiresAt: z.ZodNumber;
30
- identityKind: z.ZodDefault<z.ZodNullable<z.ZodType<OpenIdentityKind, unknown, z.core.$ZodTypeInternals<OpenIdentityKind, unknown>>>>;
31
- organization: z.ZodString;
32
- project: z.ZodString;
33
- environment: z.ZodEnum<{
34
- test: "test";
35
- live: "live";
36
- }>;
37
- token: z.ZodString;
38
- }, z.core.$strip>;
39
- /**
40
- * An `app:<name>` kind claimed in the project and environment, and the integration that owns its
41
- * identities: the live one, or the disconnected one a new integration would adopt them from.
42
- */
43
- declare const identityKindClaimSchema: z.ZodObject<{
44
- kind: z.ZodType<OpenIdentityKind, unknown, z.core.$ZodTypeInternals<OpenIdentityKind, unknown>>;
45
- integration: z.ZodString;
46
- integrationName: z.ZodString;
47
- connected: z.ZodBoolean;
48
- linked: z.ZodNumber;
49
- unlinked: z.ZodNumber;
50
- claimedAt: z.ZodNumber;
51
- }, z.core.$strip>;
52
- type IdentityKindClaim = z.infer<typeof identityKindClaimSchema>;
53
- declare const participantExchangeSchema: z.ZodObject<{
54
- subject: z.ZodString;
55
- previousToken: z.ZodOptional<z.ZodString>;
56
- }, z.core.$strict>;
57
-
58
- export { type IdentityKindClaim as I, identityIntegrationSchema as a, identityIntegrationSecretSchema as b, identityKindClaimSchema as c, identityIntegrationInputSchema as i, participantExchangeSchema as p };