@domino-sdk/relay 1.24.1 → 1.29.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 (57) hide show
  1. package/dist/{accounts-B31dWEYD.d.ts → accounts-DRPENuZe.d.ts} +1 -1
  2. package/dist/{attempt-captures-JDIgz2lY.d.ts → attempt-captures-BPMbTDYG.d.ts} +2 -2
  3. package/dist/authoring.d.ts +60 -60
  4. package/dist/authoring.js +7 -7
  5. package/dist/{automatic-outcomes-T9lEIvTj.d.ts → automatic-outcomes-CGAxTwEj.d.ts} +2 -2
  6. package/dist/avatar.d.ts +2 -2
  7. package/dist/browser.d.ts +10 -10
  8. package/dist/browser.js +10 -10
  9. package/dist/{capability-error-oTd3eYFH.d.ts → capability-error-CvSZaif2.d.ts} +1 -1
  10. package/dist/{chunk-B4EZ76WX.js → chunk-22QERRAG.js} +3 -3
  11. package/dist/{chunk-MC6V6VMG.js → chunk-4OC7REYX.js} +1 -1
  12. package/dist/{chunk-JKFSDBQX.js → chunk-5FQ2BNG2.js} +1 -1
  13. package/dist/{chunk-UCZGXYCN.js → chunk-6YLULKQM.js} +10 -10
  14. package/dist/{chunk-6UFXPKLA.js → chunk-BVEWY2ZL.js} +99 -39
  15. package/dist/{chunk-MRU7GX2V.js → chunk-C3KL5SGM.js} +21 -8
  16. package/dist/{chunk-WOGCRDFT.js → chunk-CCTZIHWN.js} +1 -1
  17. package/dist/{chunk-G75JVB4D.js → chunk-DDA7G23P.js} +3 -3
  18. package/dist/{chunk-USVER53M.js → chunk-DP4YWFMY.js} +7 -0
  19. package/dist/{chunk-W33PYWYQ.js → chunk-JNBNL7FE.js} +2 -2
  20. package/dist/{chunk-AXQYGVOP.js → chunk-LPURBE7D.js} +1 -1
  21. package/dist/{chunk-GB26FIZT.js → chunk-MNL5NSC4.js} +8 -8
  22. package/dist/{chunk-JUQ2GNMD.js → chunk-PNCLJOUD.js} +2 -2
  23. package/dist/{chunk-FMQDD2MT.js → chunk-V4FGPIR3.js} +47 -16
  24. package/dist/{chunk-FE6SQTXF.js → chunk-VP63H7IE.js} +2 -2
  25. package/dist/{chunk-ENBQ6UEE.js → chunk-W2HGXOZ5.js} +3 -3
  26. package/dist/{chunk-E7MVYASS.js → chunk-W7PDXGYB.js} +1 -1
  27. package/dist/{chunk-LR2HLHIF.js → chunk-ZLYVOLU2.js} +595 -147
  28. package/dist/{client-HG0uMG0Q.d.ts → client-D4WMWeWC.d.ts} +123 -58
  29. package/dist/{deployments-DQY0PNUk.d.ts → deployments-r5RxhZ9x.d.ts} +184 -184
  30. package/dist/{groups-CfyRewkJ.d.ts → groups-BNUhmxYY.d.ts} +26 -3
  31. package/dist/{images-DwNmzqWv.d.ts → images-PPPTL2Ct.d.ts} +2 -2
  32. package/dist/index.d.ts +13 -13
  33. package/dist/index.js +12 -10
  34. package/dist/{integrations-BMNtARU_.d.ts → integrations-CllF-kWg.d.ts} +1 -1
  35. package/dist/internal.d.ts +10 -10
  36. package/dist/internal.js +9 -9
  37. package/dist/{offers-CEwkAGsB.d.ts → offers-CdB5jnRl.d.ts} +3 -3
  38. package/dist/{pages-D1xrbGJl.d.ts → pages-BUmWkUu2.d.ts} +17 -3
  39. package/dist/{participant-activity-DYdUUhw2.d.ts → participant-activity-BPZiW7m7.d.ts} +1 -1
  40. package/dist/{participant-rewards-3duLb8YJ.d.ts → participant-rewards-BcWkBRn_.d.ts} +1 -1
  41. package/dist/portal-proxy.js +4 -4
  42. package/dist/{profiles-D29SS12z.d.ts → profiles-BHuQdzsW.d.ts} +1 -1
  43. package/dist/react/index.d.ts +13 -13
  44. package/dist/react/index.js +16 -15
  45. package/dist/{schema-D57mhL2q.d.ts → schema-lmOnv5C5.d.ts} +164 -2
  46. package/dist/schema.d.ts +441 -442
  47. package/dist/schema.js +22 -8
  48. package/dist/server/index.d.ts +10 -10
  49. package/dist/server/index.js +978 -723
  50. package/dist/{streaks-CWyq8Px5.d.ts → streaks-0YuipsUQ.d.ts} +1 -1
  51. package/dist/{submission-input-DjXg0o-r.d.ts → submission-input-DdvTz7ac.d.ts} +3 -3
  52. package/dist/{telegram-browser-DaP0Rawg.d.ts → telegram-browser-SK3KxXBL.d.ts} +13 -5
  53. package/dist/testing.d.ts +8 -8
  54. package/dist/testing.js +15 -15
  55. package/dist/{transport-BNOvDy_4.d.ts → transport-BNdKQ_m4.d.ts} +6773 -3922
  56. package/dist/{wallet-CDyo-U4n.d.ts → wallet-t7uNDg9p.d.ts} +1 -1
  57. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { z } from 'zod';
2
- import { q as ResourceHandle, G as GroupHandle } from './schema-D57mhL2q.js';
1
+ import * as z from 'zod';
2
+ import { q as ResourceHandle, G as GroupHandle } from './schema-lmOnv5C5.js';
3
3
 
4
4
  declare const pointLedgerPropertiesSchema: z.ZodObject<{
5
5
  name: z.ZodString;
@@ -1737,6 +1737,29 @@ declare const leaderboardExclusionSchema: z.ZodObject<{
1737
1737
  excluded: z.ZodBoolean;
1738
1738
  reason: z.ZodString;
1739
1739
  }, z.core.$strict>;
1740
+ /**
1741
+ * The group whose members a leaderboard leaves out of its standings and settlements. Each board
1742
+ * starts with its own generated group, keyed `domino--exclusions--<board>`, created by its first
1743
+ * exclusion; `boundAt` is null until then. `generated` is false when an operator bound the board
1744
+ * to another group, which may moderate several boards.
1745
+ */
1746
+ declare const leaderboardExclusionGroupSchema: z.ZodObject<{
1747
+ leaderboard: z.ZodString;
1748
+ group: z.ZodString;
1749
+ generated: z.ZodBoolean;
1750
+ boundAt: z.ZodNullable<z.ZodNumber>;
1751
+ }, z.core.$strip>;
1752
+ /** @compat output */
1753
+ type LeaderboardExclusionGroup = z.infer<typeof leaderboardExclusionGroupSchema>;
1754
+ /**
1755
+ * Binds a leaderboard to the group whose members it leaves out: an existing, unarchived group,
1756
+ * or the board's own generated key to go back to its generated group.
1757
+ */
1758
+ declare const leaderboardExclusionGroupBindingSchema: z.ZodObject<{
1759
+ actionId: z.ZodString;
1760
+ group: z.ZodString;
1761
+ reason: z.ZodString;
1762
+ }, z.core.$strict>;
1740
1763
  /**
1741
1764
  * @deprecated Use `addGroupMemberSchema` and `removeGroupMemberSchema` (`management.groups`)
1742
1765
  * instead. Removed in 2.0.0.
@@ -2731,4 +2754,4 @@ declare const groupMemberPageSchema: z.ZodObject<{
2731
2754
  /** @compat output */
2732
2755
  type GroupMemberPage = z.infer<typeof groupMemberPageSchema>;
2733
2756
 
2734
- export { engagementBoundaryPageSchema as $, type AvailabilityWindow as A, type GroupPageQuery as B, type CampaignDefinition as C, type LeaderboardSettlement as D, type EngagementBudget as E, type LeaderboardSettlementPolicy as F, type GroupMember as G, type LeaderboardSettlementSummary as H, type ManagedGroup as I, type ManagedPointHistoryPage as J, type KnownPointEntryKind as K, type LeaderboardDefinition as L, type MemberCampaignEnrollmentInput as M, type ManagedPointLedger as N, type PointLedger as O, type PointBalance as P, addGroupMemberSchema as Q, type ReferralDefinition as R, availabilityWindowSchema as S, campaignDefinitionSchema as T, campaignEnrollmentInputSchema as U, campaignEnrollmentSchema as V, campaignViewSchema as W, campaignWithdrawalInputSchema as X, createGroupSchema as Y, createPointLedgerSchema as Z, engagementArtifactSchema as _, type CampaignEnrollment as a, referralArtifactSchema as a$, engagementBudgetSchema as a0, engagementChangePreviewInputSchema as a1, engagementChangePreviewSchema as a2, engagementChangeSchema as a3, engagementDefinitionSchema as a4, engagementDeploymentEntrySchema as a5, engagementPageQuerySchema as a6, engagementPageSchema as a7, engagementPublishSchema as a8, engagementRuleSchema as a9, leaderboardSettlementStatusSchema as aA, leaderboardSettlementSummarySchema as aB, leaderboardWindowSchema as aC, managedGroupSchema as aD, managedPointHistoryPageSchema as aE, managedPointLedgerSchema as aF, memberCampaignEnrollmentInputSchema as aG, memberCampaignWithdrawalInputSchema as aH, pointBalanceSchema as aI, pointBalancesSchema as aJ, pointEntrySchema as aK, pointHistoryPageSchema as aL, pointHistoryQuerySchema as aM, pointLedgerArtifactSchema as aN, pointLedgerPropertiesSchema as aO, pointLedgerReferenceSchema as aP, pointLedgerSchema as aQ, pointsAccountSchema as aR, pointsEntrySchema as aS, pointsMutationSchema as aT, pointsResultSchema as aU, projectGroupKey as aV, projectGroupSchema as aW, publishedLeaderboardSchema as aX, publishedReferralSchema as aY, referralAcceptSchema as aZ, referralAccountSchema as a_, engagementRuleVersionPageSchema as aa, engagementScoreInputSchema as ab, engagementScoreSchema as ac, engagementSettlementSchema as ad, engagementVersionPageSchema as ae, engagementVersionQuerySchema as af, groupMemberPageSchema as ag, groupMemberSchema as ah, groupPageQuerySchema as ai, groupPageSchema as aj, leaderboardArtifactSchema as ak, leaderboardAuthoringSchema as al, leaderboardDefinitionResponseSchema as am, leaderboardExclusionSchema as an, leaderboardGroupSchema as ao, leaderboardPageSchema as ap, leaderboardPlacementSchema as aq, leaderboardPreviewSchema as ar, leaderboardPrizeRewardSchema as as, leaderboardPrizeSchema as at, leaderboardQuerySchema as au, leaderboardRowSchema as av, leaderboardSettlementApprovalSchema as aw, leaderboardSettlementPolicySchema as ax, leaderboardSettlementRowSchema as ay, leaderboardSettlementSchema as az, type CampaignEnrollmentInput as b, referralControlSchema as b0, referralDefinitionSchema as b1, referralHistorySchema as b2, referralManagementSchema as b3, referralQualificationSchema as b4, referralRelationshipSchema as b5, referralRewardResolutionSchema as b6, referralSummarySchema as b7, referralSuspensionSchema as b8, removeGroupMemberSchema as b9, updateGroupSchema as ba, type CampaignView as c, type CampaignWithdrawalInput as d, type LeaderboardPage as e, type LeaderboardPlacement as f, type LeaderboardQuery as g, type MemberCampaignWithdrawalInput as h, type PointBalances as i, type PointEntry as j, PointEntryKind as k, type PointHistoryPage as l, type PointHistoryQuery as m, type PointLedgerReference as n, type ProjectGroup as o, type ProjectGroupReference as p, leaderboardDefinitionSchema as q, type AuthoringIdentity as r, pointLedgerDeclarationSchema as s, referralAuthoringSchema as t, defineCampaign as u, defineGroup as v, type EngagementDefinition as w, type EngagementRuleVersionPage as x, type GroupMemberPage as y, type GroupPage as z };
2757
+ export { engagementArtifactSchema as $, type AvailabilityWindow as A, type GroupPageQuery as B, type CampaignDefinition as C, type LeaderboardExclusionGroup as D, type EngagementBudget as E, type LeaderboardSettlement as F, type GroupMember as G, type LeaderboardSettlementPolicy as H, type LeaderboardSettlementSummary as I, type ManagedGroup as J, type KnownPointEntryKind as K, type LeaderboardDefinition as L, type MemberCampaignEnrollmentInput as M, type ManagedPointHistoryPage as N, type ManagedPointLedger as O, type PointBalance as P, type PointLedger as Q, type ReferralDefinition as R, addGroupMemberSchema as S, availabilityWindowSchema as T, campaignDefinitionSchema as U, campaignEnrollmentInputSchema as V, campaignEnrollmentSchema as W, campaignViewSchema as X, campaignWithdrawalInputSchema as Y, createGroupSchema as Z, createPointLedgerSchema as _, type CampaignEnrollment as a, publishedReferralSchema as a$, engagementBoundaryPageSchema as a0, engagementBudgetSchema as a1, engagementChangePreviewInputSchema as a2, engagementChangePreviewSchema as a3, engagementChangeSchema as a4, engagementDefinitionSchema as a5, engagementDeploymentEntrySchema as a6, engagementPageQuerySchema as a7, engagementPageSchema as a8, engagementPublishSchema as a9, leaderboardSettlementPolicySchema as aA, leaderboardSettlementRowSchema as aB, leaderboardSettlementSchema as aC, leaderboardSettlementStatusSchema as aD, leaderboardSettlementSummarySchema as aE, leaderboardWindowSchema as aF, managedGroupSchema as aG, managedPointHistoryPageSchema as aH, managedPointLedgerSchema as aI, memberCampaignEnrollmentInputSchema as aJ, memberCampaignWithdrawalInputSchema as aK, pointBalanceSchema as aL, pointBalancesSchema as aM, pointEntrySchema as aN, pointHistoryPageSchema as aO, pointHistoryQuerySchema as aP, pointLedgerArtifactSchema as aQ, pointLedgerPropertiesSchema as aR, pointLedgerReferenceSchema as aS, pointLedgerSchema as aT, pointsAccountSchema as aU, pointsEntrySchema as aV, pointsMutationSchema as aW, pointsResultSchema as aX, projectGroupKey as aY, projectGroupSchema as aZ, publishedLeaderboardSchema as a_, engagementRuleSchema as aa, engagementRuleVersionPageSchema as ab, engagementScoreInputSchema as ac, engagementScoreSchema as ad, engagementSettlementSchema as ae, engagementVersionPageSchema as af, engagementVersionQuerySchema as ag, groupMemberPageSchema as ah, groupMemberSchema as ai, groupPageQuerySchema as aj, groupPageSchema as ak, leaderboardArtifactSchema as al, leaderboardAuthoringSchema as am, leaderboardDefinitionResponseSchema as an, leaderboardExclusionGroupBindingSchema as ao, leaderboardExclusionGroupSchema as ap, leaderboardExclusionSchema as aq, leaderboardGroupSchema as ar, leaderboardPageSchema as as, leaderboardPlacementSchema as at, leaderboardPreviewSchema as au, leaderboardPrizeRewardSchema as av, leaderboardPrizeSchema as aw, leaderboardQuerySchema as ax, leaderboardRowSchema as ay, leaderboardSettlementApprovalSchema as az, type CampaignEnrollmentInput as b, referralAcceptSchema as b0, referralAccountSchema as b1, referralArtifactSchema as b2, referralControlSchema as b3, referralDefinitionSchema as b4, referralHistorySchema as b5, referralManagementSchema as b6, referralQualificationSchema as b7, referralRelationshipSchema as b8, referralRewardResolutionSchema as b9, referralSummarySchema as ba, referralSuspensionSchema as bb, removeGroupMemberSchema as bc, updateGroupSchema as bd, type CampaignView as c, type CampaignWithdrawalInput as d, type LeaderboardPage as e, type LeaderboardPlacement as f, type LeaderboardQuery as g, type MemberCampaignWithdrawalInput as h, type PointBalances as i, type PointEntry as j, PointEntryKind as k, type PointHistoryPage as l, type PointHistoryQuery as m, type PointLedgerReference as n, type ProjectGroup as o, type ProjectGroupReference as p, leaderboardDefinitionSchema as q, type AuthoringIdentity as r, pointLedgerDeclarationSchema as s, referralAuthoringSchema as t, defineCampaign as u, defineGroup as v, type EngagementDefinition as w, type EngagementRuleVersionPage as x, type GroupMemberPage as y, type GroupPage as z };
@@ -1,5 +1,5 @@
1
- import { z } from 'zod';
2
- import { P as PhotoResult } from './schema-D57mhL2q.js';
1
+ import * as z from 'zod';
2
+ import { P as PhotoResult } from './schema-lmOnv5C5.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,16 +1,16 @@
1
- export { B as Badge, M as ManagedBadge, a as MemberBadge, b as MemberBadges, O as Offer, c as OfferDefinition, d as OfferPrice, R as RedeemOfferInput, e as Redemption } from './offers-CEwkAGsB.js';
1
+ export { B as Badge, M as ManagedBadge, a as MemberBadge, b as MemberBadges, O as Offer, c as OfferDefinition, d as OfferPrice, R as RedeemOfferInput, e as Redemption } from './offers-CdB5jnRl.js';
2
2
  export { R as RelayAction, a as RequestError, b as RequestErrorDetails, c as RequestErrorKind, d as RequestRecovery, e as createRelayAction, i as isRequestError } from './action-DBzILFx9.js';
3
- 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, l as RelayResponseOptions, S as SubmissionDraft, m as SubmissionStatus, n as SubmissionStore, V as ValueSubmission, o as createRelayClient, p as isRelayError } from './client-HG0uMG0Q.js';
4
- export { A as Attempt, a as AttemptStatus, E as Entitlement, b as EvaluatorProgress, K as KnownAttemptStatus, c as KnownTrackerSkipCode, M as MemberProgress, Q as QuestBudgetView, d as QuestPresentation, e as QuestProfile, f as QuizEvidence, R as Reward, S as SubmissionEvidence, g as SubmitInput, T as TieredRewardReference, h as TrackerSkipCode } from './schema-D57mhL2q.js';
3
+ export { A as AuthStartInput, C as ClaimSubmission, E as EmailVerification, 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, l as RelayResponseOptions, S as SubmissionCallOptions, m as SubmissionDraft, n as SubmissionStatus, o as SubmissionStore, V as ValueSubmission, p as createRelayClient, q as isRelayError } from './client-D4WMWeWC.js';
4
+ export { A as Attempt, a as AttemptStatus, E as Entitlement, b as EvaluatorProgress, K as KnownAttemptStatus, c as KnownTrackerSkipCode, M as MemberProgress, Q as QuestBudgetView, d as QuestPresentation, e as QuestProfile, f as QuizEvidence, R as Reward, S as SubmissionEvidence, g as SubmitInput, T as TieredRewardReference, h as TrackerSkipCode } from './schema-lmOnv5C5.js';
5
5
  export { f as formatUnits, p as parseUnits } from './units-CwgsPB_r.js';
6
- export { A as AccountConnection, a as AuthProvider, T as TelegramAccountConnection, b as TelegramSignInMethods } from './accounts-B31dWEYD.js';
7
- export { E as ExchangeInput, M as MemberSummary, P as ParticipantActivity, a as ParticipantPrincipal, b as ParticipantSession, R as RelayEvent, S as Session, s as sessionMember } from './participant-activity-DYdUUhw2.js';
8
- export { P as Page, a as PageQuery, Q as QuestClaimInput, b as QuestEnrollment, c as QuestEnrollmentInput, d as QuestInteraction, e as QuestOutcome, f as QuestOutcomePage, g as QuestOutcomeQuery, h as QuestOutcomeState, i as QuestRewardView, j as QuestView, R as ResponseResult, U as UnsupportedResponse } from './pages-D1xrbGJl.js';
9
- export { A as AvailabilityWindow, C as CampaignDefinition, a as CampaignEnrollment, b as CampaignEnrollmentInput, c as CampaignView, d as CampaignWithdrawalInput, K as KnownPointEntryKind, L as LeaderboardDefinition, e as LeaderboardPage, f as LeaderboardPlacement, g as LeaderboardQuery, M as MemberCampaignEnrollmentInput, h as MemberCampaignWithdrawalInput, P as PointBalance, i as PointBalances, j as PointEntry, k as PointEntryKind, l as PointHistoryPage, m as PointHistoryQuery, n as PointLedgerReference, o as ProjectGroup, p as ProjectGroupReference, R as ReferralDefinition } from './groups-CfyRewkJ.js';
10
- export { A as AutomaticCatchUpPreview, a as AutomaticEvent, b as AutomaticOutcome, C as CollectionPass, c as CounterAchievement, d as CounterPolicy, e as CounterProgress } from './automatic-outcomes-T9lEIvTj.js';
11
- export { M as MissingPrerequisite, P as Prerequisite, T as TextEvidence, a as TextOptions, U as UrlEvidence, b as UrlOptions, V as ValueEvidence } from './submission-input-DjXg0o-r.js';
12
- 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-D29SS12z.js';
13
- export { Q as QuizContent, S as StreakProgress } from './streaks-CWyq8Px5.js';
14
- 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-CDyo-U4n.js';
15
- export { P as ParticipantDelivery } from './participant-rewards-3duLb8YJ.js';
6
+ export { P as Page, a as PageQuery, Q as QuestClaimInput, b as QuestEnrollment, c as QuestEnrollmentInput, d as QuestInteraction, e as QuestOutcome, f as QuestOutcomePage, g as QuestOutcomeQuery, h as QuestOutcomeState, i as QuestRewardView, j as QuestView, R as ResponseResult, U as UnsupportedResponse, p as paginate } from './pages-BUmWkUu2.js';
7
+ export { A as AccountConnection, a as AuthProvider, T as TelegramAccountConnection, b as TelegramSignInMethods } from './accounts-DRPENuZe.js';
8
+ export { E as ExchangeInput, M as MemberSummary, P as ParticipantActivity, a as ParticipantPrincipal, b as ParticipantSession, R as RelayEvent, S as Session, s as sessionMember } from './participant-activity-BPZiW7m7.js';
9
+ export { A as AvailabilityWindow, C as CampaignDefinition, a as CampaignEnrollment, b as CampaignEnrollmentInput, c as CampaignView, d as CampaignWithdrawalInput, K as KnownPointEntryKind, L as LeaderboardDefinition, e as LeaderboardPage, f as LeaderboardPlacement, g as LeaderboardQuery, M as MemberCampaignEnrollmentInput, h as MemberCampaignWithdrawalInput, P as PointBalance, i as PointBalances, j as PointEntry, k as PointEntryKind, l as PointHistoryPage, m as PointHistoryQuery, n as PointLedgerReference, o as ProjectGroup, p as ProjectGroupReference, R as ReferralDefinition } from './groups-BNUhmxYY.js';
10
+ export { A as AutomaticCatchUpPreview, a as AutomaticEvent, b as AutomaticOutcome, C as CollectionPass, c as CounterAchievement, d as CounterPolicy, e as CounterProgress } from './automatic-outcomes-CGAxTwEj.js';
11
+ export { M as MissingPrerequisite, P as Prerequisite, T as TextEvidence, a as TextOptions, U as UrlEvidence, b as UrlOptions, V as ValueEvidence } from './submission-input-DdvTz7ac.js';
12
+ 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-BHuQdzsW.js';
13
+ export { Q as QuizContent, S as StreakProgress } from './streaks-0YuipsUQ.js';
14
+ 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-t7uNDg9p.js';
15
+ export { P as ParticipantDelivery } from './participant-rewards-BcWkBRn_.js';
16
16
  import 'zod';
package/dist/index.js CHANGED
@@ -5,30 +5,31 @@ import {
5
5
  import {
6
6
  QuestUpdatedError,
7
7
  createRelayClient
8
- } from "./chunk-LR2HLHIF.js";
8
+ } from "./chunk-ZLYVOLU2.js";
9
9
  import {
10
10
  createRelayAction
11
- } from "./chunk-E7MVYASS.js";
11
+ } from "./chunk-W7PDXGYB.js";
12
12
  import {
13
13
  QuestOutcomeState
14
- } from "./chunk-GB26FIZT.js";
14
+ } from "./chunk-MNL5NSC4.js";
15
15
  import {
16
16
  PointEntryKind
17
- } from "./chunk-MRU7GX2V.js";
18
- import "./chunk-W33PYWYQ.js";
19
- import "./chunk-WOGCRDFT.js";
20
- import "./chunk-JKFSDBQX.js";
17
+ } from "./chunk-C3KL5SGM.js";
18
+ import "./chunk-JNBNL7FE.js";
19
+ import "./chunk-CCTZIHWN.js";
20
+ import "./chunk-5FQ2BNG2.js";
21
21
  import {
22
22
  sessionMember
23
- } from "./chunk-JUQ2GNMD.js";
23
+ } from "./chunk-PNCLJOUD.js";
24
24
  import {
25
25
  AttemptStatus,
26
26
  RelayError,
27
27
  RelayErrorCode,
28
28
  RequestError,
29
29
  isRelayError,
30
- isRequestError
31
- } from "./chunk-6UFXPKLA.js";
30
+ isRequestError,
31
+ paginate
32
+ } from "./chunk-BVEWY2ZL.js";
32
33
  export {
33
34
  AttemptStatus,
34
35
  PointEntryKind,
@@ -42,6 +43,7 @@ export {
42
43
  formatUnits,
43
44
  isRelayError,
44
45
  isRequestError,
46
+ paginate,
45
47
  parseUnits,
46
48
  sessionMember
47
49
  };
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
 
3
3
  declare const resourceSourceSchema: z.ZodUnion<readonly [z.ZodObject<{
4
4
  provider: z.ZodLiteral<"domino">;
@@ -1,15 +1,15 @@
1
- export { I as IdentityKindClaim, M as ManagementTransportOptions, P as ParticipantRoute, R as REFERRAL_INTEGRATION_REWARD_ERROR, c as containsReferralIntegrationReward, i as identityIntegrationInputSchema, a as identityIntegrationSchema, b as identityIntegrationSecretSchema, d as identityKindClaimSchema, e as isIntegrationParticipantPath, f as isParticipantRoute, m as managementTransport, p as parseImageExtraction, g as parseImageResult, h as participantExchangeSchema, j as participantRoutePattern, k as participantRoutes, q as questConfiguration, s as sequenceCursorSchema, l as sourceDataSchema, n as sourceRoles, v as validateQuestShape } from './transport-BNOvDy_4.js';
2
- export { E as Extracted } from './images-DwNmzqWv.js';
1
+ export { I as IdentityKindClaim, M as ManagementTransportOptions, P as ParticipantRoute, R as REFERRAL_INTEGRATION_REWARD_ERROR, c as containsReferralIntegrationReward, i as identityIntegrationInputSchema, a as identityIntegrationSchema, b as identityIntegrationSecretSchema, d as identityKindClaimSchema, e as isIntegrationParticipantPath, f as isParticipantRoute, m as managementTransport, p as parseImageExtraction, g as parseImageResult, h as participantExchangeSchema, j as participantRoutePattern, k as participantRoutes, q as questConfiguration, s as sequenceCursorSchema, l as sourceDataSchema, n as sourceRoles, v as validateQuestShape } from './transport-BNdKQ_m4.js';
2
+ export { E as Extracted } from './images-PPPTL2Ct.js';
3
3
  import { c as RequestErrorKind } from './action-DBzILFx9.js';
4
- export { i as TrackerDataBudget, s as schemaCheckedReader, t as trackerDataBatchSteps, j as trackerDataIssue, k as trackerDataIssues, l as trackerDataPathTypes, m as trackerDataRecordSteps, w as whereSchemaIssue } from './schema-D57mhL2q.js';
4
+ export { i as TrackerDataBudget, s as schemaCheckedReader, t as trackerDataBatchSteps, j as trackerDataIssue, k as trackerDataIssues, l as trackerDataPathTypes, m as trackerDataRecordSteps, w as whereSchemaIssue } from './schema-lmOnv5C5.js';
5
5
  import 'zod';
6
- import './pages-D1xrbGJl.js';
7
- import './offers-CEwkAGsB.js';
8
- import './groups-CfyRewkJ.js';
9
- import './profiles-D29SS12z.js';
10
- import './automatic-outcomes-T9lEIvTj.js';
11
- import './attempt-captures-JDIgz2lY.js';
12
- import './deployments-DQY0PNUk.js';
6
+ import './pages-BUmWkUu2.js';
7
+ import './offers-CdB5jnRl.js';
8
+ import './groups-BNUhmxYY.js';
9
+ import './profiles-BHuQdzsW.js';
10
+ import './automatic-outcomes-CGAxTwEj.js';
11
+ import './attempt-captures-BPMbTDYG.js';
12
+ import './deployments-r5RxhZ9x.js';
13
13
 
14
14
  /** The management client's and the CLI's default deadline per call. */
15
15
  declare const MANAGEMENT_TIMEOUT = 30000;
package/dist/internal.js CHANGED
@@ -9,31 +9,31 @@ import {
9
9
  participantExchangeSchema,
10
10
  questConfiguration,
11
11
  sequenceCursorSchema
12
- } from "./chunk-FMQDD2MT.js";
12
+ } from "./chunk-V4FGPIR3.js";
13
13
  import {
14
14
  parseImageExtraction,
15
15
  parseImageResult
16
- } from "./chunk-ENBQ6UEE.js";
17
- import "./chunk-B4EZ76WX.js";
16
+ } from "./chunk-W2HGXOZ5.js";
17
+ import "./chunk-22QERRAG.js";
18
18
  import {
19
19
  sourceDataSchema,
20
20
  sourceRoles,
21
21
  validateQuestShape
22
- } from "./chunk-AXQYGVOP.js";
22
+ } from "./chunk-LPURBE7D.js";
23
23
  import {
24
24
  isIntegrationParticipantPath,
25
25
  isParticipantRoute,
26
26
  participantRoutePattern,
27
27
  participantRoutes
28
- } from "./chunk-USVER53M.js";
28
+ } from "./chunk-DP4YWFMY.js";
29
29
  import {
30
30
  MANAGEMENT_TIMEOUT,
31
31
  lifetime,
32
32
  retryAfter,
33
33
  retrying
34
- } from "./chunk-WOGCRDFT.js";
35
- import "./chunk-JKFSDBQX.js";
36
- import "./chunk-JUQ2GNMD.js";
34
+ } from "./chunk-CCTZIHWN.js";
35
+ import "./chunk-5FQ2BNG2.js";
36
+ import "./chunk-PNCLJOUD.js";
37
37
  import {
38
38
  schemaCheckedReader,
39
39
  trackerDataBatchSteps,
@@ -42,7 +42,7 @@ import {
42
42
  trackerDataPathTypes,
43
43
  trackerDataRecordSteps,
44
44
  whereSchemaIssue
45
- } from "./chunk-6UFXPKLA.js";
45
+ } from "./chunk-BVEWY2ZL.js";
46
46
  export {
47
47
  MANAGEMENT_TIMEOUT,
48
48
  REFERRAL_INTEGRATION_REWARD_ERROR,
@@ -1,6 +1,6 @@
1
- import { z } from 'zod';
2
- import { q as ResourceHandle } from './schema-D57mhL2q.js';
3
- import { r as AuthoringIdentity } from './groups-CfyRewkJ.js';
1
+ import * as z from 'zod';
2
+ import { q as ResourceHandle } from './schema-lmOnv5C5.js';
3
+ import { r as AuthoringIdentity } from './groups-BNUhmxYY.js';
4
4
 
5
5
  declare const badgePropertiesSchema: z.ZodObject<{
6
6
  name: z.ZodString;
@@ -1,5 +1,5 @@
1
- import { z } from 'zod';
2
- import { a as AttemptStatus, bR as questDescriptionSchema, h as TrackerSkipCode } from './schema-D57mhL2q.js';
1
+ import * as z from 'zod';
2
+ import { a as AttemptStatus, bW as questDescriptionSchema, h as TrackerSkipCode } from './schema-lmOnv5C5.js';
3
3
 
4
4
  /**
5
5
  * The delivery actions this SDK knows. `RewardDelivery.action` is an open string: Relay can add
@@ -5732,6 +5732,20 @@ type Page<T> = {
5732
5732
  items: T[];
5733
5733
  nextCursor: string | null;
5734
5734
  };
5735
+ /**
5736
+ * Every item of a paged read, page by page as the loop asks for them: `read` gets `undefined` for
5737
+ * the first page, then each page's `nextCursor`, until one is `null`. Any paged participant or
5738
+ * management read fits, with its own query and call options:
5739
+ *
5740
+ * ```ts
5741
+ * for await (const entry of paginate((cursor) => relay.referrals.history({ cursor }))) {
5742
+ * console.log(entry)
5743
+ * }
5744
+ * ```
5745
+ *
5746
+ * A rejected read rejects the loop; breaking out of the loop reads no further pages.
5747
+ */
5748
+ declare function paginate<T>(read: (cursor: string | undefined) => Promise<Page<T>>): AsyncGenerator<T, void, undefined>;
5735
5749
  /** A management state page with an operator-selected size. */
5736
5750
  declare const managementStateQuerySchema: z.ZodObject<{
5737
5751
  cursor: z.ZodOptional<z.ZodString>;
@@ -5739,4 +5753,4 @@ declare const managementStateQuerySchema: z.ZodObject<{
5739
5753
  }, z.core.$strict>;
5740
5754
  type ManagementStateQuery = z.input<typeof managementStateQuerySchema>;
5741
5755
 
5742
- export { questInstanceSchema as $, contentMetricsSchema as A, contentPerformancePolicySchema as B, type ContentMetric as C, contentQualificationDecisionSchema as D, contentQualificationPageSchema as E, contentQualificationQuerySchema as F, contentQualificationSchema as G, interactionSchema as H, knownRewardDeliverySchema as I, managementStateQuerySchema as J, memberEnrollmentInputSchema as K, pageCursorSchema as L, type ManagementStateQuery as M, pageQuerySchema as N, publishQuestDraftSchema as O, type Page as P, type QuestClaimInput as Q, type ResponseResult as R, questCatalogSchema as S, questClaimInputSchema as T, type UnsupportedResponse as U, questCollectionSchema as V, questDraftChangesSchema as W, questDraftSchema as X, questEnrollmentInputSchema as Y, questEnrollmentSchema as Z, questExperienceSchema as _, type PageQuery as a, questInteraction as a0, questOutcomePageSchema as a1, questOutcomeQuerySchema as a2, questOutcomeSchema as a3, questPublicationPreviewSchema as a4, questRewardViewSchema as a5, questTypeVersionSchema as a6, questViewSchema as a7, responseListSchema as a8, responseSchema as a9, responseShape as aa, rewardDeliveriesSchema as ab, rewardDeliverySchema as ac, roleReconciliationSchema as ad, saveQuestDraftSchema as ae, type QuestEnrollment as b, type QuestEnrollmentInput as c, type QuestInteraction as d, type QuestOutcome as e, type QuestOutcomePage as f, type QuestOutcomeQuery as g, QuestOutcomeState as h, type QuestRewardView as i, type QuestView as j, type ResponseSchema as k, RewardDeliveryAction as l, type ContentPerformancePolicy as m, type MemberEnrollmentInput as n, type QuestCatalog as o, type QuestDraft as p, type QuestInstance as q, type RewardDelivery as r, allocateQuestSchema as s, allocatedQuestSchema as t, catalogDeploymentPreviewSchema as u, catalogDeploymentSchema as v, collectionSlotDeclarationSchema as w, collectionSlotSchema as x, collectionViewSchema as y, contentMetricSchema as z };
5756
+ export { questExperienceSchema as $, contentMetricSchema as A, contentMetricsSchema as B, type ContentMetric as C, contentPerformancePolicySchema as D, contentQualificationDecisionSchema as E, contentQualificationPageSchema as F, contentQualificationQuerySchema as G, contentQualificationSchema as H, interactionSchema as I, knownRewardDeliverySchema as J, managementStateQuerySchema as K, memberEnrollmentInputSchema as L, type ManagementStateQuery as M, pageCursorSchema as N, pageQuerySchema as O, type Page as P, type QuestClaimInput as Q, type ResponseResult as R, publishQuestDraftSchema as S, questCatalogSchema as T, type UnsupportedResponse as U, questClaimInputSchema as V, questCollectionSchema as W, questDraftChangesSchema as X, questDraftSchema as Y, questEnrollmentInputSchema as Z, questEnrollmentSchema as _, type PageQuery as a, questInstanceSchema as a0, questInteraction as a1, questOutcomePageSchema as a2, questOutcomeQuerySchema as a3, questOutcomeSchema as a4, questPublicationPreviewSchema as a5, questRewardViewSchema as a6, questTypeVersionSchema as a7, questViewSchema as a8, responseListSchema as a9, responseSchema as aa, responseShape as ab, rewardDeliveriesSchema as ac, rewardDeliverySchema as ad, roleReconciliationSchema as ae, saveQuestDraftSchema as af, type QuestEnrollment as b, type QuestEnrollmentInput as c, type QuestInteraction as d, type QuestOutcome as e, type QuestOutcomePage as f, type QuestOutcomeQuery as g, QuestOutcomeState as h, type QuestRewardView as i, type QuestView as j, type ResponseSchema as k, RewardDeliveryAction as l, type ContentPerformancePolicy as m, type MemberEnrollmentInput as n, type QuestCatalog as o, paginate as p, type QuestDraft as q, type QuestInstance as r, type RewardDelivery as s, allocateQuestSchema as t, allocatedQuestSchema as u, catalogDeploymentPreviewSchema as v, catalogDeploymentSchema as w, collectionSlotDeclarationSchema as x, collectionSlotSchema as y, collectionViewSchema as z };
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
 
3
3
  declare const authScopeSchema: z.ZodObject<{
4
4
  organization: z.ZodString;
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
 
3
3
  declare const participantEntitlementsSchema: z.ZodObject<{
4
4
  items: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  isParticipantRoute
3
- } from "./chunk-USVER53M.js";
3
+ } from "./chunk-DP4YWFMY.js";
4
4
  import {
5
5
  clientIdentity
6
- } from "./chunk-JKFSDBQX.js";
6
+ } from "./chunk-5FQ2BNG2.js";
7
7
  import {
8
8
  exchangeResultSchema
9
- } from "./chunk-JUQ2GNMD.js";
10
- import "./chunk-6UFXPKLA.js";
9
+ } from "./chunk-PNCLJOUD.js";
10
+ import "./chunk-BVEWY2ZL.js";
11
11
 
12
12
  // src/portal-proxy.ts
13
13
  var statusCode = (status) => ({
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
 
3
3
  /** Who sees profiles: nobody but the member (`private`), signed-in members, or anyone. */
4
4
  declare const profileVisibilitySchema: z.ZodEnum<{
@@ -1,20 +1,20 @@
1
- import { B as Badge, b as MemberBadges, O as Offer, e as Redemption } from '../offers-CEwkAGsB.js';
2
- import { b as ParticipantSession, R as RelayEvent, P as ParticipantActivity, M as MemberSummary } from '../participant-activity-DYdUUhw2.js';
3
- import { g as RelayError, R as RelayClient, S as SubmissionDraft } from '../client-HG0uMG0Q.js';
4
- import { P as Page, y as collectionViewSchema, j as QuestView, g as QuestOutcomeQuery, e as QuestOutcome } from '../pages-D1xrbGJl.js';
1
+ import { B as Badge, b as MemberBadges, O as Offer, e as Redemption } from '../offers-CdB5jnRl.js';
2
+ import { b as ParticipantSession, R as RelayEvent, P as ParticipantActivity, M as MemberSummary } from '../participant-activity-BPZiW7m7.js';
3
+ import { g as RelayError, R as RelayClient, m as SubmissionDraft } from '../client-D4WMWeWC.js';
4
+ import { P as Page, z as collectionViewSchema, j as QuestView, g as QuestOutcomeQuery, e as QuestOutcome } from '../pages-BUmWkUu2.js';
5
5
  import * as react from 'react';
6
6
  import { ReactNode } from 'react';
7
7
  import { J as JSONType } from '../util.d-w9f9t3ua.js';
8
8
  import { z } from 'zod';
9
- import { E as Entitlement, a as AttemptStatus, T as TieredRewardReference } from '../schema-D57mhL2q.js';
10
- import { a as AuthProvider, A as AccountConnection } from '../accounts-B31dWEYD.js';
11
- export { T as TelegramAccountConnection, b as TelegramSignInMethods } from '../accounts-B31dWEYD.js';
12
- import { c as SignInMethods, C as CosmosChains, d as SignInOption, f as SignInUnavailable, T as TelegramSignInOption, g as SignInWallet, D as DiscoveredWallet } from '../telegram-browser-DaP0Rawg.js';
13
- export { a as EmailSignInOption, O as OAuthSignInOption, b as SignInIcon, W as WalletSignInOption, t as telegramMiniAppInitData } from '../telegram-browser-DaP0Rawg.js';
14
- import { f as WalletSigner, d as WalletSignInNetwork, L as LinkedWallet } from '../wallet-CDyo-U4n.js';
15
- import { f as LeaderboardPlacement, b7 as referralSummarySchema, e as LeaderboardPage, i as PointBalances, j as PointEntry, n as PointLedgerReference } from '../groups-CfyRewkJ.js';
16
- import { f as ProfileUpdate, e as ProfileSummary, a as ProfileCompletion, d as ProfileReferral } from '../profiles-D29SS12z.js';
17
- import '../submission-input-DjXg0o-r.js';
9
+ import { E as Entitlement, a as AttemptStatus, T as TieredRewardReference } from '../schema-lmOnv5C5.js';
10
+ import { a as AuthProvider, A as AccountConnection } from '../accounts-DRPENuZe.js';
11
+ export { T as TelegramAccountConnection, b as TelegramSignInMethods } from '../accounts-DRPENuZe.js';
12
+ import { c as SignInMethods, C as CosmosChains, d as SignInOption, f as SignInUnavailable, T as TelegramSignInOption, g as SignInWallet, D as DiscoveredWallet } from '../telegram-browser-SK3KxXBL.js';
13
+ export { a as EmailSignInOption, O as OAuthSignInOption, b as SignInIcon, W as WalletSignInOption, t as telegramMiniAppInitData } from '../telegram-browser-SK3KxXBL.js';
14
+ import { f as WalletSigner, d as WalletSignInNetwork, L as LinkedWallet } from '../wallet-t7uNDg9p.js';
15
+ import { f as LeaderboardPlacement, ba as referralSummarySchema, e as LeaderboardPage, i as PointBalances, j as PointEntry, n as PointLedgerReference } from '../groups-BNUhmxYY.js';
16
+ import { f as ProfileUpdate, e as ProfileSummary, a as ProfileCompletion, d as ProfileReferral } from '../profiles-BHuQdzsW.js';
17
+ import '../submission-input-DdvTz7ac.js';
18
18
  import '../action-DBzILFx9.js';
19
19
 
20
20
  /**
@@ -9,19 +9,19 @@ import {
9
9
  readSignInMethods,
10
10
  signInOptionsFrom,
11
11
  telegramMiniAppInitData
12
- } from "../chunk-FE6SQTXF.js";
13
- import "../chunk-LR2HLHIF.js";
12
+ } from "../chunk-VP63H7IE.js";
13
+ import "../chunk-ZLYVOLU2.js";
14
14
  import {
15
15
  createRelayAction
16
- } from "../chunk-E7MVYASS.js";
17
- import "../chunk-GB26FIZT.js";
18
- import "../chunk-MRU7GX2V.js";
19
- import "../chunk-W33PYWYQ.js";
20
- import "../chunk-WOGCRDFT.js";
21
- import "../chunk-JKFSDBQX.js";
16
+ } from "../chunk-W7PDXGYB.js";
17
+ import "../chunk-MNL5NSC4.js";
18
+ import "../chunk-C3KL5SGM.js";
19
+ import "../chunk-JNBNL7FE.js";
20
+ import "../chunk-CCTZIHWN.js";
21
+ import "../chunk-5FQ2BNG2.js";
22
22
  import {
23
23
  sessionMember
24
- } from "../chunk-JUQ2GNMD.js";
24
+ } from "../chunk-PNCLJOUD.js";
25
25
  import {
26
26
  RelayError,
27
27
  RelayErrorCode,
@@ -29,7 +29,7 @@ import {
29
29
  clientError,
30
30
  isRelayError,
31
31
  isRequestError
32
- } from "../chunk-6UFXPKLA.js";
32
+ } from "../chunk-BVEWY2ZL.js";
33
33
 
34
34
  // src/react/context.ts
35
35
  import { createContext, useContext } from "react";
@@ -2403,7 +2403,7 @@ function useSignIn() {
2403
2403
  if (!sent) {
2404
2404
  throw new Error("Request a new code first.");
2405
2405
  }
2406
- await relay.auth.emailVerify(sent, code.trim());
2406
+ await relay.auth.emailVerify({ challenge: sent, code });
2407
2407
  setChallenge(null);
2408
2408
  }, "That code didn't work. Check it, or request a new one."),
2409
2409
  [relay, run, setChallenge]
@@ -2415,7 +2415,7 @@ function useSignIn() {
2415
2415
  const reset = useCallback7(() => setError(null), []);
2416
2416
  const withProvider = useCallback7(
2417
2417
  (provider) => run(async () => {
2418
- const { url } = await relay.auth.start(provider, "sign-in");
2418
+ const { url } = await relay.auth.start({ provider, mode: "sign-in" });
2419
2419
  window.location.assign(url);
2420
2420
  }, "Couldn't start sign-in. Try again."),
2421
2421
  [relay, run]
@@ -2591,9 +2591,10 @@ function useAccounts() {
2591
2591
  const actions = useMemo8(
2592
2592
  () => ({
2593
2593
  connect: (provider) => run(async () => {
2594
- const { url } = await relay.auth.start(provider, "connect", {
2595
- session
2596
- });
2594
+ const { url } = await relay.auth.start(
2595
+ { provider, mode: "connect" },
2596
+ { session }
2597
+ );
2597
2598
  window.location.assign(url);
2598
2599
  }),
2599
2600
  disconnect: (provider) => run(async () => {