@domino-sdk/relay 1.0.0-next.12 → 1.0.0-next.13

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 (34) hide show
  1. package/dist/authoring.d.ts +25 -25
  2. package/dist/authoring.js +10 -3
  3. package/dist/browser.d.ts +19 -26
  4. package/dist/browser.js +6 -6
  5. package/dist/{catalog-qrYne8qV.d.ts → catalog-C85V1NgW.d.ts} +73 -79
  6. package/dist/{chunk-YYD4QUBO.js → chunk-CRNQP7NV.js} +550 -470
  7. package/dist/{chunk-22J4K7ED.js → chunk-EZWNGI5B.js} +4 -4
  8. package/dist/{chunk-7Q4BGGT6.js → chunk-FXYJ4OMX.js} +1 -1
  9. package/dist/{chunk-4LBUTHD6.js → chunk-II7DRZSL.js} +1 -1
  10. package/dist/{chunk-NZA2TLBF.js → chunk-KS33GOUL.js} +23 -8
  11. package/dist/{chunk-LY7SXUNW.js → chunk-M64XHC42.js} +4 -4
  12. package/dist/{chunk-UW5CQHPQ.js → chunk-MNQI35OG.js} +3 -3
  13. package/dist/{chunk-5L7XZA4Y.js → chunk-OA2KMQVZ.js} +31 -25
  14. package/dist/{chunk-EWFB35JW.js → chunk-WQ24ILGO.js} +2 -2
  15. package/dist/{client-CW72TaAs.d.ts → client-Bf9PNUIi.d.ts} +18 -25
  16. package/dist/{deployments-Bc0dPSXN.d.ts → deployments-CNCP0JnD.d.ts} +269 -138
  17. package/dist/{images-D0Txfte6.d.ts → images-BG4pdO4y.d.ts} +1 -1
  18. package/dist/index.d.ts +5 -5
  19. package/dist/index.js +5 -5
  20. package/dist/internal.d.ts +3 -3
  21. package/dist/internal.js +4 -4
  22. package/dist/{observations-bFY4yv2K.d.ts → observations-CQ6IcNuQ.d.ts} +3 -3
  23. package/dist/portal-proxy.js +2 -2
  24. package/dist/react/index.d.ts +19 -27
  25. package/dist/react/index.js +7 -7
  26. package/dist/{referrals-CvSmxvjm.d.ts → referrals-KQfP4pBf.d.ts} +189 -102
  27. package/dist/{schema-ZfjL-d1N.d.ts → schema-BF_TQsmT.d.ts} +338 -47
  28. package/dist/schema.d.ts +8 -8
  29. package/dist/schema.js +28 -8
  30. package/dist/server/index.d.ts +542 -508
  31. package/dist/server/index.js +31 -7
  32. package/dist/{streaks-CwGReWGt.d.ts → streaks-CWyq8Px5.d.ts} +2 -4
  33. package/dist/{trackers-BsUh5Ky0.d.ts → trackers-W7nRdRr7.d.ts} +1 -1
  34. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { P as PhotoResult } from './schema-ZfjL-d1N.js';
2
+ import { P as PhotoResult } from './schema-BF_TQsmT.js';
3
3
 
4
4
  /**
5
5
  * Quest code names an image; the platform fetches, decodes and pins it. No bytes or URLs cross the
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- export { C as ClaimSubmission, K as KnownRelayErrorCode, P as PhotoSubmission, a as ProgressObservation, b as ProgressObserver, Q as QuestActionResult, c as QuestController, d as QuestUpdatedError, e as QuizSubmission, R as RelayClient, f as RelayClientOptions, g as RelayError, h as RelayErrorCode, i as RelayErrorDetails, j as RelayErrorKind, k as RelayRequestOptions, S as SubmissionDraft, l as SubmissionStatus, m as SubmissionStore, V as ValueSubmission, n as createRelayClient, o as isRelayError } from './client-CW72TaAs.js';
1
+ export { C as ClaimSubmission, K as KnownRelayErrorCode, P as PhotoSubmission, a as ProgressObservation, b as ProgressObserver, Q as QuestActionResult, c as QuestController, d as QuestUpdatedError, e as QuizSubmission, R as RelayClient, f as RelayClientOptions, g as RelayError, h as RelayErrorCode, i as RelayErrorDetails, j as RelayErrorKind, k as RelayRequestOptions, S as SubmissionDraft, l as SubmissionStatus, m as SubmissionStore, V as ValueSubmission, n as createRelayClient, o as isRelayError } from './client-Bf9PNUIi.js';
2
2
  export { R as RequestError, a as RequestErrorDetails, b as RequestErrorKind, c as RequestRecovery, i as isRequestError } from './request-error-VnTiMXc3.js';
3
3
  export { f as formatUnits, p as parseUnits } from './units-CwgsPB_r.js';
4
4
  export { A as AccountConnection, a as AuthProvider, T as TextEvidence, b as TextOptions, U as UrlEvidence, c as UrlOptions, V as ValueEvidence } from './submission-input-CccwAl5Z.js';
5
5
  export { E as ExchangeInput, M as MemberSummary, P as Page, a as PageQuery, b as ParticipantPrincipal, c as ParticipantSession, S as Session, s as sessionMember } from './pages-KYK1L60W.js';
6
- export { K as KnownPointEntryKind, P as PointBalance, a as PointBalances, b as PointEntry, c as PointEntryKind, d as PointHistoryPage, e as PointHistoryQuery, f as PointLedgerReference, Q as QuestInteraction, g as QuestRewardView, h as QuestView } from './catalog-qrYne8qV.js';
6
+ export { K as KnownPointEntryKind, P as PointBalance, a as PointBalances, b as PointEntry, c as PointEntryKind, d as PointHistoryPage, e as PointHistoryQuery, f as PointLedgerReference, Q as QuestInteraction, g as QuestRewardView, h as QuestView } from './catalog-C85V1NgW.js';
7
7
  export { C as CollectionPass } from './collection-BGneJ6Bk.js';
8
- export { L as LeaderboardDefinition, a as LeaderboardPage, b as LeaderboardPlacement, c as LeaderboardQuery, R as ReferralDefinition } from './referrals-CvSmxvjm.js';
8
+ export { L as LeaderboardDefinition, a as LeaderboardPage, b as LeaderboardPlacement, c as LeaderboardQuery, R as ReferralDefinition } from './referrals-KQfP4pBf.js';
9
9
  export { A as AvatarProvider, O as OwnProfile, P as ProfileAvatar, a as ProfileCompletion, b as ProfileCompletionPage, c as ProfileCompletionQuery, d as ProfileReferral, e as ProfileSummary, f as ProfileUpdate, g as ProfileVisibility } from './profiles-BtOXMGcC.js';
10
- export { Q as QuizContent, S as StreakProgress } from './streaks-CwGReWGt.js';
11
- export { A as Attempt, E as Entitlement, M as MemberProgress, Q as QuestPresentation, a as QuestProfile, b as QuizEvidence, R as Reward, S as SubmissionEvidence, c as SubmitInput, T as TieredRewardReference } from './schema-ZfjL-d1N.js';
10
+ export { Q as QuizContent, S as StreakProgress } from './streaks-CWyq8Px5.js';
11
+ export { A as Attempt, E as Entitlement, M as MemberProgress, Q as QuestPresentation, a as QuestProfile, b as QuizEvidence, R as Reward, S as SubmissionEvidence, c as SubmitInput, T as TieredRewardReference } from './schema-BF_TQsmT.js';
12
12
  export { C as CosmosChain, a as CosmosNetwork, L as LinkedWallet, W as WalletAddressInput, b as WalletChain, c as WalletMessageChallenge, d as WalletSignInNetwork, e as WalletSignature, f as WalletSigner, g as WalletUnlinkInput } from './wallet-BtiG0Xhr.js';
13
13
  import 'zod';
package/dist/index.js CHANGED
@@ -5,21 +5,21 @@ import {
5
5
  import {
6
6
  QuestUpdatedError,
7
7
  createRelayClient
8
- } from "./chunk-22J4K7ED.js";
8
+ } from "./chunk-EZWNGI5B.js";
9
9
  import {
10
10
  PointEntryKind
11
- } from "./chunk-LY7SXUNW.js";
11
+ } from "./chunk-M64XHC42.js";
12
12
  import {
13
13
  RelayError,
14
14
  RelayErrorCode,
15
15
  RequestError,
16
16
  isRelayError,
17
17
  isRequestError
18
- } from "./chunk-5L7XZA4Y.js";
18
+ } from "./chunk-OA2KMQVZ.js";
19
19
  import {
20
20
  sessionMember
21
- } from "./chunk-7Q4BGGT6.js";
22
- import "./chunk-YYD4QUBO.js";
21
+ } from "./chunk-FXYJ4OMX.js";
22
+ import "./chunk-CRNQP7NV.js";
23
23
  export {
24
24
  PointEntryKind,
25
25
  QuestUpdatedError,
@@ -1,8 +1,8 @@
1
- import { f as PublishedRelease } from './schema-ZfjL-d1N.js';
1
+ import { f as PublishedRelease } from './schema-BF_TQsmT.js';
2
2
  export { i as identityIntegrationInputSchema, a as identityIntegrationSchema, b as identityIntegrationSecretSchema, p as participantExchangeSchema } from './identity-integration-CBR8l3ju.js';
3
- import { c as ImageFields, g as ImageRequest } from './images-D0Txfte6.js';
3
+ import { c as ImageFields, g as ImageRequest } from './images-BG4pdO4y.js';
4
4
  import { z } from 'zod';
5
- export { ax as TrackerDataBudget, ay as schemaCheckedReader, az as trackerDataBatchSteps, aA as trackerDataIssue, aB as trackerDataIssues, aC as trackerDataPathTypes, aD as trackerDataRecordSteps, aE as whereSchemaIssue } from './trackers-BsUh5Ky0.js';
5
+ export { ax as TrackerDataBudget, ay as schemaCheckedReader, az as trackerDataBatchSteps, aA as trackerDataIssue, aB as trackerDataIssues, aC as trackerDataPathTypes, aD as trackerDataRecordSteps, aE as whereSchemaIssue } from './trackers-W7nRdRr7.js';
6
6
 
7
7
  /** Older releases did not record ownership. Preserve every value, including defaults. */
8
8
  declare function questConfiguration(release: PublishedRelease): {
package/dist/internal.js CHANGED
@@ -7,8 +7,8 @@ import {
7
7
  participantExchangeSchema,
8
8
  questConfiguration,
9
9
  sequenceCursorSchema
10
- } from "./chunk-UW5CQHPQ.js";
11
- import "./chunk-4LBUTHD6.js";
10
+ } from "./chunk-MNQI35OG.js";
11
+ import "./chunk-II7DRZSL.js";
12
12
  import {
13
13
  isContentParticipantRoute,
14
14
  isLegacyWalletRoute,
@@ -17,7 +17,7 @@ import {
17
17
  isWalletParticipantRoute,
18
18
  isWalletSignInRoute
19
19
  } from "./chunk-6A2V4L3T.js";
20
- import "./chunk-7Q4BGGT6.js";
20
+ import "./chunk-FXYJ4OMX.js";
21
21
  import {
22
22
  schemaCheckedReader,
23
23
  trackerDataBatchSteps,
@@ -26,7 +26,7 @@ import {
26
26
  trackerDataPathTypes,
27
27
  trackerDataRecordSteps,
28
28
  whereSchemaIssue
29
- } from "./chunk-YYD4QUBO.js";
29
+ } from "./chunk-CRNQP7NV.js";
30
30
  export {
31
31
  identityIntegrationInputSchema,
32
32
  identityIntegrationSchema,
@@ -33,8 +33,7 @@ declare const observationTriggerSchema: z.ZodObject<{
33
33
  declare const completionPolicySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
34
34
  kind: z.ZodLiteral<"streak">;
35
35
  days: z.ZodNumber;
36
- timeZone: z.ZodString;
37
- }, z.core.$strict>, z.ZodObject<{
36
+ }, z.core.$strip>, z.ZodObject<{
38
37
  kind: z.ZodLiteral<"once">;
39
38
  }, z.core.$strict>, z.ZodObject<{
40
39
  kind: z.ZodLiteral<"keyed">;
@@ -47,9 +46,10 @@ declare const budgetSchema: z.ZodObject<{
47
46
  project: "project";
48
47
  }>;
49
48
  period: z.ZodEnum<{
50
- day: "day";
51
49
  lifetime: "lifetime";
50
+ day: "day";
52
51
  week: "week";
52
+ month: "month";
53
53
  }>;
54
54
  limit: z.ZodNumber;
55
55
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
@@ -7,8 +7,8 @@ import {
7
7
  } from "./chunk-6A2V4L3T.js";
8
8
  import {
9
9
  exchangeResultSchema
10
- } from "./chunk-7Q4BGGT6.js";
11
- import "./chunk-YYD4QUBO.js";
10
+ } from "./chunk-FXYJ4OMX.js";
11
+ import "./chunk-CRNQP7NV.js";
12
12
 
13
13
  // src/portal-proxy.ts
14
14
  async function proxyParticipant(request, upstream) {
@@ -1,14 +1,14 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { a4 as referralAcceptSchema, c as LeaderboardQuery, D as engagementPageQuerySchema, r as contentQualificationQuerySchema, h as contentAdmissionQuerySchema, j as contentEnrollmentInputSchema, t as contentReleaseInputSchema, ad as referralSummarySchema, a as LeaderboardPage } from '../referrals-CvSmxvjm.js';
4
- import { an as submitSchema, x as contentPerformanceQuerySchema, T as TieredRewardReference } from '../schema-ZfjL-d1N.js';
3
+ import { a6 as referralAcceptSchema, c as LeaderboardQuery, G as engagementPageQuerySchema, s as contentQualificationQuerySchema, i as contentAdmissionQuerySchema, k as contentEnrollmentInputSchema, u as contentReleaseInputSchema, af as referralSummarySchema, a as LeaderboardPage } from '../referrals-KQfP4pBf.js';
4
+ import { ao as submitSchema, x as contentPerformanceQuerySchema, T as TieredRewardReference } from '../schema-BF_TQsmT.js';
5
5
  import { a as PageQuery, f as exchangeSchema } from '../pages-KYK1L60W.js';
6
6
  import { x as walletAddressInputSchema, M as walletSignatureSchema, L as LinkedWallet, f as WalletSigner, d as WalletSignInNetwork } from '../wallet-BtiG0Xhr.js';
7
- import { h as QuestView, J as questExperienceSchema, e as PointHistoryQuery, c as PointEntryKind, P as PointBalance, b as PointEntry, f as PointLedgerReference } from '../catalog-qrYne8qV.js';
7
+ import { h as QuestView, J as questExperienceSchema, e as PointHistoryQuery, c as PointEntryKind, P as PointBalance, b as PointEntry, f as PointLedgerReference } from '../catalog-C85V1NgW.js';
8
8
  import { F as profileUpdateSchema, c as ProfileCompletionQuery, a as ProfileCompletion, e as ProfileSummary, f as ProfileUpdate } from '../profiles-BtOXMGcC.js';
9
9
  import * as zod from 'zod';
10
10
  import { z } from 'zod';
11
- import { k as RelayRequestOptions, c as QuestController, a as ProgressObservation, b as ProgressObserver, P as PhotoSubmission, e as QuizSubmission, C as ClaimSubmission, V as ValueSubmission, S as SubmissionDraft } from '../client-CW72TaAs.js';
11
+ import { k as RelayRequestOptions, c as QuestController, a as ProgressObservation, b as ProgressObserver, P as PhotoSubmission, e as QuizSubmission, C as ClaimSubmission, V as ValueSubmission, S as SubmissionDraft } from '../client-Bf9PNUIi.js';
12
12
  import { a as AuthProvider, A as AccountConnection } from '../submission-input-CccwAl5Z.js';
13
13
  import { createBrowserRelayClient, SignInMethods, CosmosChains, SignInOption, SignInUnavailable, SignInWallet, DiscoveredWallet } from '../browser.js';
14
14
  export { EmailSignInOption, OAuthSignInOption, SignInIcon, WalletSignInOption } from '../browser.js';
@@ -279,7 +279,6 @@ declare function useRelay(): {
279
279
  } | {
280
280
  kind: "calendar";
281
281
  period: "day" | "week" | "month";
282
- timeZone: string;
283
282
  };
284
283
  kind: "earned";
285
284
  quests?: string[] | undefined;
@@ -297,7 +296,6 @@ declare function useRelay(): {
297
296
  } | {
298
297
  kind: "calendar";
299
298
  period: "day" | "week" | "month";
300
- timeZone: string;
301
299
  };
302
300
  };
303
301
  access: "participants" | "public";
@@ -664,7 +662,6 @@ declare function useRelay(): {
664
662
  completion: {
665
663
  kind: "streak";
666
664
  days: number;
667
- timeZone: string;
668
665
  } | {
669
666
  kind: "once";
670
667
  } | {
@@ -979,7 +976,6 @@ declare function useRelay(): {
979
976
  completion: {
980
977
  kind: "streak";
981
978
  days: number;
982
- timeZone: string;
983
979
  } | {
984
980
  kind: "once";
985
981
  } | {
@@ -1241,7 +1237,6 @@ declare function useRelay(): {
1241
1237
  completion: {
1242
1238
  kind: "streak";
1243
1239
  days: number;
1244
- timeZone: string;
1245
1240
  } | {
1246
1241
  kind: "once";
1247
1242
  } | {
@@ -1506,7 +1501,6 @@ declare function useRelay(): {
1506
1501
  completion: {
1507
1502
  kind: "streak";
1508
1503
  days: number;
1509
- timeZone: string;
1510
1504
  } | {
1511
1505
  kind: "once";
1512
1506
  } | {
@@ -1990,7 +1984,6 @@ declare function useRelay(): {
1990
1984
  completion: {
1991
1985
  kind: "streak";
1992
1986
  days: number;
1993
- timeZone: string;
1994
1987
  } | {
1995
1988
  kind: "once";
1996
1989
  } | {
@@ -2281,11 +2274,11 @@ declare function useRelay(): {
2281
2274
  metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
2282
2275
  baseline: "historical";
2283
2276
  maxAgeMs: number;
2284
- budget: {
2285
- projectDaily?: number | undefined;
2286
- memberDaily?: number | undefined;
2287
- projectLifetime?: number | undefined;
2288
- };
2277
+ budgets: {
2278
+ scope: "member" | "project";
2279
+ period: "lifetime" | "day" | "week" | "month";
2280
+ limit: number;
2281
+ }[];
2289
2282
  };
2290
2283
  publishedAt: number;
2291
2284
  };
@@ -2326,11 +2319,11 @@ declare function useRelay(): {
2326
2319
  metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
2327
2320
  baseline: "historical";
2328
2321
  maxAgeMs: number;
2329
- budget: {
2330
- projectDaily?: number | undefined;
2331
- memberDaily?: number | undefined;
2332
- projectLifetime?: number | undefined;
2333
- };
2322
+ budgets: {
2323
+ scope: "member" | "project";
2324
+ period: "lifetime" | "day" | "week" | "month";
2325
+ limit: number;
2326
+ }[];
2334
2327
  };
2335
2328
  publishedAt: number;
2336
2329
  } | null;
@@ -2343,11 +2336,11 @@ declare function useRelay(): {
2343
2336
  metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
2344
2337
  baseline: "historical";
2345
2338
  maxAgeMs: number;
2346
- budget: {
2347
- projectDaily?: number | undefined;
2348
- memberDaily?: number | undefined;
2349
- projectLifetime?: number | undefined;
2350
- };
2339
+ budgets: {
2340
+ scope: "member" | "project";
2341
+ period: "lifetime" | "day" | "week" | "month";
2342
+ limit: number;
2343
+ }[];
2351
2344
  };
2352
2345
  publishedAt: number;
2353
2346
  };
@@ -2703,7 +2696,6 @@ declare function useQuest(observed: QuestView): {
2703
2696
  completion: {
2704
2697
  kind: "streak";
2705
2698
  days: number;
2706
- timeZone: string;
2707
2699
  } | {
2708
2700
  kind: "once";
2709
2701
  } | {
@@ -8,17 +8,17 @@ import {
8
8
  discoverSolanaWallets,
9
9
  readSignInMethods,
10
10
  signInOptionsFrom
11
- } from "../chunk-EWFB35JW.js";
12
- import "../chunk-22J4K7ED.js";
13
- import "../chunk-LY7SXUNW.js";
11
+ } from "../chunk-WQ24ILGO.js";
12
+ import "../chunk-EZWNGI5B.js";
13
+ import "../chunk-M64XHC42.js";
14
14
  import {
15
15
  RelayError,
16
16
  RelayErrorCode
17
- } from "../chunk-5L7XZA4Y.js";
17
+ } from "../chunk-OA2KMQVZ.js";
18
18
  import {
19
19
  sessionMember
20
- } from "../chunk-7Q4BGGT6.js";
21
- import "../chunk-YYD4QUBO.js";
20
+ } from "../chunk-FXYJ4OMX.js";
21
+ import "../chunk-CRNQP7NV.js";
22
22
 
23
23
  // src/react/provider.tsx
24
24
  import { useState as useState3 } from "react";
@@ -185,7 +185,7 @@ function questStatus(view) {
185
185
  minute: "2-digit",
186
186
  timeZoneName: "short"
187
187
  }).format(streak.nextBoundary);
188
- const progress = streak.todayQualified ? `Today counts. Your next community day starts ${deadline}. Best streak: ${streak.best} days.` : `Complete today's activity before ${deadline} ${streak.current ? "to keep your streak" : "to start your streak"}. Best streak: ${streak.best} days.`;
188
+ const progress = streak.todayQualified ? `Today counts. Your next day starts ${deadline}. Best streak: ${streak.best} days.` : `Complete today's activity before ${deadline} ${streak.current ? "to keep your streak" : "to start your streak"}. Best streak: ${streak.best} days.`;
189
189
  return {
190
190
  tone: rejection ? "attention" : streak.todayQualified ? "waiting" : "open",
191
191
  label: `${streak.current} / ${streak.goal} days`,