@domino-sdk/relay 1.67.0 → 1.69.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.
- package/CHANGELOG.md +65 -0
- package/dist/{accounts-C2O8mpB8.d.ts → accounts-DD4gAOCe.d.ts} +232 -3
- package/dist/{action-9Xl0StBg.d.ts → action-BDFKqGlH.d.ts} +3 -2
- package/dist/{attempt-captures-ClHAoo_n.d.ts → attempt-captures-CbuCmthd.d.ts} +11 -2
- package/dist/authoring.d.ts +534 -48
- package/dist/authoring.js +192 -29
- package/dist/{automatic-outcomes-BEnPn4Uh.d.ts → automatic-outcomes-DE3vfi8g.d.ts} +11 -3
- package/dist/avatar.d.ts +2 -1
- package/dist/browser.d.ts +15 -13
- package/dist/browser.js +12 -13
- package/dist/{capability-error-CuI_F7yM.d.ts → capability-error-db7kO8-P.d.ts} +2 -1
- package/dist/{catalog-CbiftcxQ.d.ts → catalog-Cf3fHDNn.d.ts} +69 -3
- package/dist/{chunk-5DZNMLDM.js → chunk-2A3BJ262.js} +2 -2
- package/dist/{chunk-BQXRCJ3N.js → chunk-5RLIPTL7.js} +1 -1
- package/dist/{chunk-MVQQDPQX.js → chunk-AZDZEQFK.js} +14 -2
- package/dist/{chunk-JK3XV2CR.js → chunk-BRROI4CH.js} +50 -8
- package/dist/{chunk-P33ZAJMS.js → chunk-CQVKOD3B.js} +1266 -677
- package/dist/{chunk-QYC3CZVD.js → chunk-CZ23KRVK.js} +2 -2
- package/dist/{chunk-X3FMVRMM.js → chunk-DIXYVGXO.js} +1 -1
- package/dist/{chunk-RDUSFUXX.js → chunk-GEVARKEV.js} +9 -1
- package/dist/{chunk-2HHZV7U3.js → chunk-LDO5GP7G.js} +1 -1
- package/dist/{chunk-Z2Z5DBNW.js → chunk-LGGD7S5T.js} +45 -9
- package/dist/{chunk-U66GUVSG.js → chunk-LZXDYSUH.js} +2 -0
- package/dist/{chunk-NRMQVK2W.js → chunk-ME2KUAVJ.js} +1 -1
- package/dist/{chunk-KUNPCDN6.js → chunk-ODJGTFPY.js} +16 -9
- package/dist/{chunk-DSJ46QLB.js → chunk-PO2ZDY27.js} +1 -1
- package/dist/{chunk-RWR2LOPA.js → chunk-RKTMSTT7.js} +2 -2
- package/dist/{chunk-5SBA6X5X.js → chunk-SWLW4VN3.js} +2 -2
- package/dist/{chunk-BMJHFWVT.js → chunk-TCREFRPK.js} +10 -43
- package/dist/{chunk-Q5QVAF7R.js → chunk-UGM6DUB2.js} +42 -25
- package/dist/chunk-VAGGGB6B.js +87 -0
- package/dist/{chunk-FGXLXENM.js → chunk-VNEJH4NT.js} +47 -3
- package/dist/chunk-WNEQEDMU.js +427 -0
- package/dist/{chunk-Q6KTTVOI.js → chunk-WVK3G2J2.js} +1 -1
- package/dist/{client-CZPewB9h.d.ts → client-6eSYOl8h.d.ts} +159 -11
- package/dist/{dashboards-jGPM3AxF.d.ts → dashboards-DCOAXL54.d.ts} +6 -5
- package/dist/{deployments-BVFd7ddA.d.ts → deployments-BIfdCMd5.d.ts} +911 -309
- package/dist/{host-environment-FN4zg3hw.d.ts → host-environment-DUw5-Cvj.d.ts} +2 -1
- package/dist/{identity-integration-W1Vo3Ql9.d.ts → identity-integration-BlfOn8rc.d.ts} +3 -2
- package/dist/index.d.ts +16 -15
- package/dist/index.js +10 -10
- package/dist/internal.d.ts +155 -17
- package/dist/internal.js +266 -19
- package/dist/{limits-C4RzrOV4.d.ts → limits-Ctaeq23J.d.ts} +8 -2
- package/dist/{offers-BpYenB9i.d.ts → offers-COqHGbHm.d.ts} +4 -3
- package/dist/{participant-activity-DXRq4s6K.d.ts → participant-activity-BznrcePT.d.ts} +2 -1
- package/dist/{participant-rewards-BcWkBRn_.d.ts → participant-rewards-s5Gn23qb.d.ts} +23 -1
- package/dist/portal-proxy.d.ts +7 -4
- package/dist/portal-proxy.js +14 -18
- package/dist/profiles-CLDKZVFx.d.ts +370 -0
- package/dist/react/index.d.ts +71 -30
- package/dist/react/index.js +12 -13
- package/dist/{request-error-D_dUPLwo.d.ts → request-error-C24SY7n9.d.ts} +2 -1
- package/dist/{reward-deliveries-BOWpMytr.d.ts → reward-deliveries-DFhYGJdx.d.ts} +3 -2
- package/dist/runtime/authoring.js +1 -1
- package/dist/runtime/chunks/HKAI5OQA.js +1 -0
- package/dist/runtime/manifest.json +3 -3
- package/dist/runtime/schema.js +1 -1
- package/dist/schema.d.ts +556 -180
- package/dist/schema.js +70 -8
- package/dist/server/index.d.ts +15 -14
- package/dist/server/index.js +2053 -893
- package/dist/{sign-in-providers-BRYVOSlG.d.ts → sign-in-providers-C97mRNbG.d.ts} +4 -3
- package/dist/solana.d.ts +287 -0
- package/dist/solana.js +699 -0
- package/dist/{streaks-0YuipsUQ.d.ts → streaks-MAqKHbHC.d.ts} +2 -1
- package/dist/{submission-input-C152xIdn.d.ts → submission-input-BD7nORuh.d.ts} +4 -3
- package/dist/{telegram-browser-657QqiQl.d.ts → telegram-browser-gRMgGs7B.d.ts} +8 -109
- package/dist/telegram.d.ts +14 -12
- package/dist/telegram.js +2 -2
- package/dist/testing.d.ts +99 -18
- package/dist/testing.js +101 -11
- package/dist/{tracker-data-BqY-9Vu-.d.ts → tracker-data-DQgX3FIc.d.ts} +493 -1
- package/dist/{transport-CthYgZXK.d.ts → transport-BLU8jrhg.d.ts} +7340 -2134
- package/dist/vite.d.ts +2 -1
- package/dist/{wallet-Btng186v.d.ts → wallet-CPAjrW4k.d.ts} +339 -308
- package/dist/wallet-browser-BzPt_Qb5.d.ts +107 -0
- package/package.json +21 -3
- package/dist/chunk-UWUS4OOV.js +0 -59
- package/dist/chunk-UYVJZR33.js +0 -34
- package/dist/runtime/chunks/C2MGLQXC.js +0 -1
|
@@ -27,4 +27,5 @@ type HostEnvironment = z.infer<typeof hostEnvironmentSchema>;
|
|
|
27
27
|
*/
|
|
28
28
|
declare function getHostEnvironment(): Promise<HostEnvironment | null>;
|
|
29
29
|
|
|
30
|
-
export {
|
|
30
|
+
export { hostEnvironmentSchema as a, getHostEnvironment as g, hostEnvironmentPath as h };
|
|
31
|
+
export type { HostEnvironment as H };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OpenIdentityKind } from './tracker-data-
|
|
1
|
+
import { O as OpenIdentityKind } from './tracker-data-DQgX3FIc.js';
|
|
2
2
|
import * as z from 'zod';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1311,4 +1311,5 @@ declare const accountVouchedBySchema: z.ZodObject<{
|
|
|
1311
1311
|
/** The app login whose server vouched for an account when it signed the member in. */
|
|
1312
1312
|
type AccountVouchedBy = z.infer<typeof accountVouchedBySchema>;
|
|
1313
1313
|
|
|
1314
|
-
export { memberImportActionSchema as $,
|
|
1314
|
+
export { memberImportActionSchema as $, identityReferenceSchema as Z, memberImportAccountSchema as _, memberImportCommandSchema as a0, memberImportConsentSchema as a1, memberImportCreateSchema as a2, memberImportFullRowSchema as a3, memberImportFullRowsInputSchema as a4, memberImportIdentitySchema as a5, memberImportListQuerySchema as a6, memberImportPageSchema as a7, memberImportReferralSchema as a8, memberImportRefusalSchema as a9, memberImportRevertInputSchema as aa, memberImportRevertOutcomeSchema as ab, memberImportRevertSchema as ac, memberImportRowPageSchema as ad, memberImportRowQuerySchema as ae, memberImportRowResultSchema as af, memberImportRowSchema as ag, memberImportRowsInputSchema as ah, memberImportSchema as ai, memberImportSummarySchema as aj, memberImportVouchedAccountSchema as ak, accountVouchedBySchema as g, appLoginOriginSchema as h, httpsOriginSchema as i, identityIntegrationAccountVouchingInputSchema as j, identityIntegrationAppSecretSchema as k, identityIntegrationInputSchema as l, identityIntegrationKeySchema as m, identityIntegrationSchema as n, identityIntegrationSecretSchema as o, identityKindClaimSchema as p, participantExchangeAccountResultSchema as q, participantExchangeAccountsSchema as r, participantExchangeResultSchema as s, participantExchangeSchema as t, MemberImportRefusalCode as v, MemberImportState as w };
|
|
1315
|
+
export type { AccountVouchedBy as A, MemberImportRevertInput as B, IdentityReference as C, KnownMemberImportRefusalCode as D, KnownMemberImportState as E, MemberImport as F, MemberImportAccount as G, MemberImportCommandInput as H, IdentityIntegrationKey as I, MemberImportConsent as J, KnownIdentityIntegrationEnvironment as K, MemberImportFullRow as L, MemberImportVouchedAccount as M, MemberImportFullRowsInput as N, MemberImportIdentity as O, ParticipantExchangeAccountResult as P, MemberImportReferral as Q, MemberImportRefusal as R, MemberImportRevert as S, MemberImportRevertOutcome as T, MemberImportRow as U, MemberImportRowInput as V, MemberImportRowResult as W, MemberImportRowsInput as X, MemberImportSummary as Y, ParticipantExchangeResult as a, IdentityIntegration as b, IdentityIntegrationAccountVouchingInput as c, IdentityIntegrationAppSecret as d, IdentityKindClaim as e, ParticipantExchangeInput as f, MemberImportCreateInput as u, MemberImportListQuery as x, MemberImportRowQuery as y, MemberImportFullRowInput as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
export { B as Badge, a as BadgeCatalog, M as ManagedBadge, b as MemberBadge, c as MemberBadges, O as Offer, d as OfferDefinition, e as OfferPrice, R as RedeemOfferInput, f as Redemption } from './offers-
|
|
2
|
-
export { R as RelayAction, c as createRelayAction } from './action-
|
|
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-
|
|
4
|
-
export { R as RequestError, a as RequestErrorDetails, b as RequestErrorKind, c as RequestRecovery, i as isRequestError } from './request-error-
|
|
5
|
-
export { A as AccountConnection, a as Attempt, b as AttemptStatus, c as AuthProvider, d as AvailabilityWindow, C as CampaignDefinition, e as CampaignEnrollment, f as CampaignEnrollmentInput, g as CampaignView, h as CampaignWithdrawalInput, E as Entitlement, i as EvaluatorProgress, K as KnownAttemptStatus, j as KnownPointEntryKind, k as KnownSignInAccountStatus, l as KnownSignInProvider, L as LeaderboardDefinition, m as LeaderboardHistoryPage, n as LeaderboardHistoryQuery, o as LeaderboardPage, p as LeaderboardPlacement, q as LeaderboardQuery, M as MemberCampaignEnrollmentInput, r as MemberCampaignWithdrawalInput, s as MemberProgress, P as PointBalance, t as PointBalances, u as PointEntry, v as PointEntryKind, w as PointHistoryPage, x as PointHistoryQuery, y as PointLedgerReference, z as ProjectGroup, B as ProjectGroupReference, Q as QuestBudgetView, D as QuestPresentation, F as QuestProfile, G as QuizEvidence, R as ReferralDefinition, H as Reward, S as SignInAccount, I as SignInAccountStatus, J as SignInProvider, N as SignInProviderOption, O as SubmissionEvidence, T as SubmitInput, U as TieredRewardReference } from './accounts-
|
|
1
|
+
export { B as Badge, a as BadgeCatalog, M as ManagedBadge, b as MemberBadge, c as MemberBadges, O as Offer, d as OfferDefinition, e as OfferPrice, R as RedeemOfferInput, f as Redemption } from './offers-COqHGbHm.js';
|
|
2
|
+
export { R as RelayAction, c as createRelayAction } from './action-BDFKqGlH.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-6eSYOl8h.js';
|
|
4
|
+
export { R as RequestError, a as RequestErrorDetails, b as RequestErrorKind, c as RequestRecovery, i as isRequestError } from './request-error-C24SY7n9.js';
|
|
5
|
+
export { A as AccountConnection, a as Attempt, b as AttemptStatus, c as AuthProvider, d as AvailabilityWindow, C as CampaignDefinition, e as CampaignEnrollment, f as CampaignEnrollmentInput, g as CampaignView, h as CampaignWithdrawalInput, E as Entitlement, i as EvaluatorProgress, K as KnownAttemptStatus, j as KnownPointEntryKind, k as KnownSignInAccountStatus, l as KnownSignInProvider, L as LeaderboardDefinition, m as LeaderboardHistoryPage, n as LeaderboardHistoryQuery, o as LeaderboardPage, p as LeaderboardPlacement, q as LeaderboardQuery, M as MemberCampaignEnrollmentInput, r as MemberCampaignWithdrawalInput, s as MemberProgress, P as PointBalance, t as PointBalances, u as PointEntry, v as PointEntryKind, w as PointHistoryPage, x as PointHistoryQuery, y as PointLedgerReference, z as ProjectGroup, B as ProjectGroupReference, Q as QuestBudgetView, D as QuestPresentation, F as QuestProfile, G as QuizEvidence, R as ReferralDefinition, H as Reward, S as SignInAccount, I as SignInAccountStatus, J as SignInProvider, N as SignInProviderOption, O as SubmissionEvidence, T as SubmitInput, U as TieredRewardReference } from './accounts-DD4gAOCe.js';
|
|
6
6
|
export { f as formatUnits, p as parseUnits } from './units-CwgsPB_r.js';
|
|
7
|
-
export { C as ConsentChannel, a as ConsentInput, b as ConsentSource, c as ConsentState, d as CreatorAccount, e as CreatorAccountProvider, f as CreatorAccounts, K as KnownConsentChannel, g as KnownConsentSource, h as KnownConsentState, M as MemberConsent, P as Page, i as PageQuery, Q as QuestClaimInput, j as QuestEnrollment, k as QuestEnrollmentInput, l as QuestOutcome, m as QuestOutcomePage, n as QuestOutcomeQuery, o as QuestOutcomeState, R as ResponseResult, U as UnsupportedResponse, p as paginate } from './reward-deliveries-
|
|
8
|
-
export { M as MissingPrerequisite, P as Prerequisite, T as TelegramAccountConnection, a as TelegramSignInMethods, b as TextEvidence, c as TextOptions, U as UrlEvidence, d as UrlOptions, V as ValueEvidence } from './submission-input-
|
|
9
|
-
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-
|
|
10
|
-
export { Q as QuestInteraction, a as QuestRewardView, b as QuestView } from './catalog-
|
|
11
|
-
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-
|
|
12
|
-
export { K as KnownSkipEnrollment, a as KnownTrackerSkipCode, S as SkipEnrollment, T as TrackerSkipCode } from './tracker-data-
|
|
13
|
-
export { A as AvatarProvider,
|
|
14
|
-
export { Q as QuizContent, S as StreakProgress } from './streaks-
|
|
15
|
-
export {
|
|
7
|
+
export { C as ConsentChannel, a as ConsentInput, b as ConsentSource, c as ConsentState, d as CreatorAccount, e as CreatorAccountProvider, f as CreatorAccounts, K as KnownConsentChannel, g as KnownConsentSource, h as KnownConsentState, M as MemberConsent, P as Page, i as PageQuery, Q as QuestClaimInput, j as QuestEnrollment, k as QuestEnrollmentInput, l as QuestOutcome, m as QuestOutcomePage, n as QuestOutcomeQuery, o as QuestOutcomeState, R as ResponseResult, U as UnsupportedResponse, p as paginate } from './reward-deliveries-DFhYGJdx.js';
|
|
8
|
+
export { M as MissingPrerequisite, P as Prerequisite, T as TelegramAccountConnection, a as TelegramSignInMethods, b as TextEvidence, c as TextOptions, U as UrlEvidence, d as UrlOptions, V as ValueEvidence } from './submission-input-BD7nORuh.js';
|
|
9
|
+
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-BznrcePT.js';
|
|
10
|
+
export { Q as QuestInteraction, a as QuestRewardView, b as QuestView } from './catalog-Cf3fHDNn.js';
|
|
11
|
+
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-DE3vfi8g.js';
|
|
12
|
+
export { K as KnownSkipEnrollment, a as KnownTrackerSkipCode, S as SkipEnrollment, T as TrackerSkipCode } from './tracker-data-DQgX3FIc.js';
|
|
13
|
+
export { A as AvatarProvider, O as OwnProfile, P as ProfileAvatar, a as ProfileCompletion, b as ProfileCompletionPage, c as ProfileCompletionQuery, d as ProfileNameSource, e as ProfileReferral, f as ProfileSummary, g as ProfileUpdate, h as ProfileVisibility } from './profiles-CLDKZVFx.js';
|
|
14
|
+
export { Q as QuizContent, S as StreakProgress } from './streaks-MAqKHbHC.js';
|
|
15
|
+
export { C as CosmosChain, a as CosmosNetwork, L as LinkedWallet, W as WalletAddressInput, b as WalletChain, c as WalletMessageChallenge, d as WalletProofKind, e as WalletSignInNetwork, f as WalletSignature, g as WalletSigner, h as WalletTransactionChallenge, i as WalletTransactionProof, j as WalletUnlinkInput } from './wallet-CPAjrW4k.js';
|
|
16
|
+
export { P as ParticipantDelivery } from './participant-rewards-s5Gn23qb.js';
|
|
16
17
|
import 'zod';
|
|
17
|
-
import './sign-in-providers-
|
|
18
|
+
import './sign-in-providers-C97mRNbG.js';
|
package/dist/index.js
CHANGED
|
@@ -5,32 +5,32 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
QuestUpdatedError,
|
|
7
7
|
createRelayClient
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LGGD7S5T.js";
|
|
9
9
|
import {
|
|
10
10
|
createRelayAction
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-5RLIPTL7.js";
|
|
12
|
+
import "./chunk-LDO5GP7G.js";
|
|
13
|
+
import "./chunk-WVK3G2J2.js";
|
|
14
|
+
import "./chunk-SWLW4VN3.js";
|
|
15
15
|
import {
|
|
16
16
|
QuestOutcomeState
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ME2KUAVJ.js";
|
|
18
18
|
import {
|
|
19
19
|
sessionMember
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-PO2ZDY27.js";
|
|
21
|
+
import "./chunk-2A3BJ262.js";
|
|
22
22
|
import {
|
|
23
23
|
AttemptStatus,
|
|
24
24
|
PointEntryKind,
|
|
25
25
|
paginate
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-CQVKOD3B.js";
|
|
27
27
|
import {
|
|
28
28
|
RelayError,
|
|
29
29
|
RelayErrorCode,
|
|
30
30
|
RequestError,
|
|
31
31
|
isRelayError,
|
|
32
32
|
isRequestError
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-VNEJH4NT.js";
|
|
34
34
|
export {
|
|
35
35
|
AttemptStatus,
|
|
36
36
|
PointEntryKind,
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { A as AccountVouchedBy, b as IdentityIntegration, c as IdentityIntegrationAccountVouchingInput, d as IdentityIntegrationAppSecret, I as IdentityIntegrationKey, e as IdentityKindClaim, K as KnownIdentityIntegrationEnvironment, P as ParticipantExchangeAccountResult, f as ParticipantExchangeInput, a as ParticipantExchangeResult, g as accountVouchedBySchema, h as appLoginOriginSchema, i as httpsOriginSchema, j as identityIntegrationAccountVouchingInputSchema, k as identityIntegrationAppSecretSchema, l as identityIntegrationInputSchema, m as identityIntegrationKeySchema, n as identityIntegrationSchema, o as identityIntegrationSecretSchema, p as identityKindClaimSchema, q as participantExchangeAccountResultSchema, r as participantExchangeAccountsSchema, s as participantExchangeResultSchema, t as participantExchangeSchema } from './identity-integration-
|
|
3
|
-
export { E as Extracted } from './limits-
|
|
4
|
-
export {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {
|
|
1
|
+
export { a as ManagementTransportOptions, P as ParticipantRoute, R as REFERRAL_INTEGRATION_REWARD_ERROR, c as containsReferralIntegrationReward, i as isIntegrationParticipantPath, b as isParticipantRoute, m as managementTransport, n as nextScheduleRun, p as parseImageExtraction, d as parseImageResult, e as participantRoutePattern, f as participantRoutes, q as questConfiguration, s as sequenceCursorSchema, g as sourceDataSchema, h as sourceRoles, v as validateQuestShape } from './transport-BLU8jrhg.js';
|
|
2
|
+
export { A as AccountVouchedBy, b as IdentityIntegration, c as IdentityIntegrationAccountVouchingInput, d as IdentityIntegrationAppSecret, I as IdentityIntegrationKey, e as IdentityKindClaim, K as KnownIdentityIntegrationEnvironment, P as ParticipantExchangeAccountResult, f as ParticipantExchangeInput, a as ParticipantExchangeResult, g as accountVouchedBySchema, h as appLoginOriginSchema, i as httpsOriginSchema, j as identityIntegrationAccountVouchingInputSchema, k as identityIntegrationAppSecretSchema, l as identityIntegrationInputSchema, m as identityIntegrationKeySchema, n as identityIntegrationSchema, o as identityIntegrationSecretSchema, p as identityKindClaimSchema, q as participantExchangeAccountResultSchema, r as participantExchangeAccountsSchema, s as participantExchangeResultSchema, t as participantExchangeSchema } from './identity-integration-BlfOn8rc.js';
|
|
3
|
+
export { E as Extracted } from './limits-Ctaeq23J.js';
|
|
4
|
+
export { ar as stationRefusal } from './accounts-DD4gAOCe.js';
|
|
5
|
+
import { StandardWallet, StandardWalletAccount } from './browser.js';
|
|
6
|
+
import { SolanaSeed } from './authoring.js';
|
|
7
|
+
import { SolanaNetwork } from './schema.js';
|
|
8
|
+
export { at as evmWalletOn } from './wallet-CPAjrW4k.js';
|
|
9
|
+
import { RequestErrorKind } from './index.js';
|
|
10
|
+
export { E as TrackerDataBudget, F as schemaCheckedReader, H as sourceContent, J as trackerDataBatchSteps, N as trackerDataIssue, P as trackerDataIssues, U as trackerDataPathTypes, V as trackerDataRecordSteps, Y as whereSchemaIssue, Z as whereSettings } from './tracker-data-DQgX3FIc.js';
|
|
11
|
+
export { H as HostEnvironment, h as hostEnvironmentPath, a as hostEnvironmentSchema } from './host-environment-DUw5-Cvj.js';
|
|
12
|
+
export { c as compatibleSettingKinds, e as dashboardIssue, i as isBoundSetting, n as normalizeDashboard } from './dashboards-DCOAXL54.js';
|
|
9
13
|
import 'zod';
|
|
10
|
-
import './
|
|
11
|
-
import './
|
|
12
|
-
import './
|
|
13
|
-
import './
|
|
14
|
-
import './deployments-
|
|
15
|
-
import './offers-
|
|
16
|
-
import './catalog-
|
|
17
|
-
import './attempt-captures-
|
|
14
|
+
import './reward-deliveries-DFhYGJdx.js';
|
|
15
|
+
import './action-BDFKqGlH.js';
|
|
16
|
+
import './automatic-outcomes-DE3vfi8g.js';
|
|
17
|
+
import './profiles-CLDKZVFx.js';
|
|
18
|
+
import './deployments-BIfdCMd5.js';
|
|
19
|
+
import './offers-COqHGbHm.js';
|
|
20
|
+
import './catalog-Cf3fHDNn.js';
|
|
21
|
+
import './attempt-captures-CbuCmthd.js';
|
|
18
22
|
|
|
19
23
|
/** The hosts a developer machine serves over plain HTTP: browser tests, `vite` dev and the local stack. */
|
|
20
24
|
declare const loopbackHosts: readonly string[];
|
|
@@ -47,6 +51,139 @@ declare function walletSignatureValid(input: {
|
|
|
47
51
|
signature: string;
|
|
48
52
|
}): Promise<boolean>;
|
|
49
53
|
|
|
54
|
+
/**
|
|
55
|
+
* The Solana Pay link a station's QR code encodes: `solana:` and the URL-encoded app URL that
|
|
56
|
+
* serves the quest with `defineStationAction`, with `?station=<key>` added.
|
|
57
|
+
*/
|
|
58
|
+
declare function stationPayLink(url: string | URL, station: string): string;
|
|
59
|
+
/**
|
|
60
|
+
* An SVG of `link`'s QR code, black modules on white with the four-module quiet zone scanners
|
|
61
|
+
* need, and `label` centred under it.
|
|
62
|
+
*/
|
|
63
|
+
declare function stationQrSvg(link: string, label: string): Promise<string>;
|
|
64
|
+
|
|
65
|
+
type Window = {
|
|
66
|
+
from?: number;
|
|
67
|
+
until?: number;
|
|
68
|
+
};
|
|
69
|
+
/** Whether `time` falls in the window: `from <= time < until`, with a missing bound open. */
|
|
70
|
+
declare const inWindow: (window: Window, time: number) => boolean;
|
|
71
|
+
|
|
72
|
+
/** Base58 (Bitcoin alphabet), the encoding Solana uses for addresses and signatures. */
|
|
73
|
+
declare function base58(bytes: Uint8Array): string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* The Wallet Standard wallets registered with `target`, the page's window: wallets loaded before
|
|
77
|
+
* this call answer `wallet-standard:app-ready`, and wallets loading during it dispatch
|
|
78
|
+
* `wallet-standard:register-wallet`.
|
|
79
|
+
*/
|
|
80
|
+
declare function registeredWallets(target: EventTarget): StandardWallet[];
|
|
81
|
+
/**
|
|
82
|
+
* Connects a Wallet Standard wallet and returns the account it shares on Solana, or its first
|
|
83
|
+
* account. Throws when the wallet lacks `standard:connect` or shares no account.
|
|
84
|
+
*/
|
|
85
|
+
declare function connectSolanaAccount(wallet: StandardWallet): Promise<StandardWalletAccount>;
|
|
86
|
+
|
|
87
|
+
/** Each cluster's public JSON-RPC endpoint, which Console sends payout batches through. */
|
|
88
|
+
declare const solanaPublicEndpoints: Record<SolanaNetwork, string>;
|
|
89
|
+
/** Calls `method` on a Solana JSON-RPC endpoint; a node's error rejects with its message. */
|
|
90
|
+
declare function solanaRpc<T>(url: string, method: string, params: unknown[]): Promise<T>;
|
|
91
|
+
/**
|
|
92
|
+
* Waits until `signature` is confirmed through `url`. Resolves false when it failed, or when the
|
|
93
|
+
* cluster passed `lastValidBlockHeight` without it.
|
|
94
|
+
*/
|
|
95
|
+
declare function confirmedSignature(url: string, signature: string, lastValidBlockHeight: number): Promise<boolean>;
|
|
96
|
+
|
|
97
|
+
/** The largest program IDL Relay stores, as JSON. */
|
|
98
|
+
declare const maxAnchorIdlBytes: number;
|
|
99
|
+
/** Whether `idl`, as minified JSON, is larger than Relay stores. */
|
|
100
|
+
declare const idlTooLarge: (idl: unknown) => boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Whether an IDL account type is zero-copy, which Relay doesn't decode: only a 0.30+ IDL marks
|
|
103
|
+
* one, with a `serialization` other than `borsh` on the account or on the type of its name.
|
|
104
|
+
*/
|
|
105
|
+
declare const zeroCopyAccount: (account: {
|
|
106
|
+
serialization?: unknown;
|
|
107
|
+
}, declared?: {
|
|
108
|
+
serialization?: unknown;
|
|
109
|
+
}) => boolean;
|
|
110
|
+
/**
|
|
111
|
+
* `value` as an integer of `bits` bits, or why it is not one: not a safe integer number or decimal
|
|
112
|
+
* string, or out of the type's range.
|
|
113
|
+
*/
|
|
114
|
+
declare function checkedInteger(value: unknown, signed: boolean, bits: number): bigint | "not-an-integer" | {
|
|
115
|
+
min: bigint;
|
|
116
|
+
max: bigint;
|
|
117
|
+
};
|
|
118
|
+
/** `value` as `bits / 8` little-endian bytes, two's complement when negative, as `to_le_bytes()`. */
|
|
119
|
+
declare function littleEndianBytes(value: bigint, bits: number): Uint8Array;
|
|
120
|
+
/**
|
|
121
|
+
* A program-account seed's bytes, `"wallet"` where each wallet's address goes, or why the seed
|
|
122
|
+
* doesn't fit: text over 32 bytes, no Solana address, or an integer out of its type's range.
|
|
123
|
+
* Relay's program-account reader and `domino quests from-idl --account` check seeds alike.
|
|
124
|
+
*/
|
|
125
|
+
declare function solanaSeedBytes(seed: SolanaSeed, position: number): Uint8Array | "wallet" | {
|
|
126
|
+
problem: string;
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* The seeds `text` lists, in order and comma-separated, as `domino quests from-idl --seeds`,
|
|
130
|
+
* `domino trackers create --seeds` and Console take them: `wallet` where each wallet's address
|
|
131
|
+
* goes, `pubkey:<address>`, `<u8…i128>:<integer>`, `string:<text>`, or any other text for its UTF-8
|
|
132
|
+
* bytes; spaces around an entry are left out. Each seed is checked as `solanaSeedBytes` checks it,
|
|
133
|
+
* at most `maxSeeds` of them, with `wallet` at least once; otherwise the first problem.
|
|
134
|
+
*/
|
|
135
|
+
declare function parseSolanaSeeds(text: string, maxSeeds: number): {
|
|
136
|
+
seeds: SolanaSeed[];
|
|
137
|
+
} | {
|
|
138
|
+
problem: string;
|
|
139
|
+
};
|
|
140
|
+
/** How an on-chain IDL account compresses the IDL's JSON. */
|
|
141
|
+
type IdlCompression = "none" | "gzip" | "zlib";
|
|
142
|
+
/** Node's `gunzipSync` and `inflateSync`, or decompressors that take the same output limit. */
|
|
143
|
+
type IdlDecompressors = Record<"gunzip" | "inflate", (bytes: Uint8Array, options: {
|
|
144
|
+
maxOutputLength: number;
|
|
145
|
+
}) => Uint8Array>;
|
|
146
|
+
/**
|
|
147
|
+
* The JSON value `bytes` hold, decompressed and parsed as UTF-8, or null when they hold none:
|
|
148
|
+
* corrupt data, data that decompresses past four times the stored limit, or text that is not JSON.
|
|
149
|
+
*/
|
|
150
|
+
declare function storedIdlJson(bytes: Uint8Array, compression: IdlCompression, decompress: IdlDecompressors): unknown;
|
|
151
|
+
/** The 32 bytes of a base58 Solana address; throws for anything else. */
|
|
152
|
+
declare function solanaAddressBytes(address: string): Uint8Array;
|
|
153
|
+
/** Solana's `find_program_address`: the first off-curve address from bump seed 255 down. */
|
|
154
|
+
declare function solanaProgramAddress(seeds: Uint8Array[], program: string): string;
|
|
155
|
+
/**
|
|
156
|
+
* The address of `program`'s Anchor IDL account: `create_with_seed` from the program's signer
|
|
157
|
+
* address (`find_program_address([], program)`) with seed `"anchor:idl"`, owned by the program.
|
|
158
|
+
*/
|
|
159
|
+
declare function anchorIdlAddress(program: string): string;
|
|
160
|
+
/**
|
|
161
|
+
* The zlib-compressed IDL JSON in an Anchor IDL account's data: an 8-byte discriminator, the 32-byte
|
|
162
|
+
* authority, a u32 length, then that many bytes. Null when the data holds none.
|
|
163
|
+
*/
|
|
164
|
+
declare function anchorIdlAccountBytes(data: Uint8Array): Uint8Array | null;
|
|
165
|
+
/** The Program Metadata Program, where Anchor 1.0 and later and Codama publish a program's IDL. */
|
|
166
|
+
declare const programMetadataProgram = "ProgM6JCCvbYkfKqJYHePx4xxSUSqJp7rh8Lyv7nk7S";
|
|
167
|
+
/**
|
|
168
|
+
* The address of `program`'s canonical IDL metadata account, the one its upgrade authority wrote:
|
|
169
|
+
* `find_program_address([program, "idl" padded to 16 bytes], ProgM6…)`. A third party's metadata
|
|
170
|
+
* account for the program also derives from its authority, and is not read.
|
|
171
|
+
*/
|
|
172
|
+
declare function programMetadataIdlAddress(program: string): string;
|
|
173
|
+
/**
|
|
174
|
+
* The IDL bytes in a canonical Program Metadata `idl` account's data, and how they are compressed.
|
|
175
|
+
* The 96-byte header holds the discriminator, the program, the authority, the mutable and canonical
|
|
176
|
+
* flags, the seed, the data's encoding, compression, format and source, then a u32 data length at
|
|
177
|
+
* byte 87. Only data stored in the account itself, as UTF-8 JSON, is read: Anchor writes it that
|
|
178
|
+
* way, and a URL or another account as the source would let the IDL change without the account
|
|
179
|
+
* changing. A format of none reads as JSON too, as Codama's own IDL and some Anchor ones are
|
|
180
|
+
* written. Null when the account holds no IDL for `program` this way.
|
|
181
|
+
*/
|
|
182
|
+
declare function programMetadataIdlBytes(data: Uint8Array, program: string): {
|
|
183
|
+
bytes: Uint8Array;
|
|
184
|
+
compression: IdlCompression;
|
|
185
|
+
} | null;
|
|
186
|
+
|
|
50
187
|
/** The management client's and the CLI's default deadline per call. */
|
|
51
188
|
declare const MANAGEMENT_TIMEOUT = 30000;
|
|
52
189
|
/** One call's deadline and the caller's signal, shared by every attempt and the body read. */
|
|
@@ -92,4 +229,5 @@ type Rules = {
|
|
|
92
229
|
*/
|
|
93
230
|
declare function retrying<T>(life: Lifetime, rules: Rules, attempt: () => Promise<T>): Promise<T>;
|
|
94
231
|
|
|
95
|
-
export {
|
|
232
|
+
export { MANAGEMENT_TIMEOUT, anchorIdlAccountBytes, anchorIdlAddress, bareOrigin, base58, canonicalWalletAddress, checkedInteger, confirmedSignature, connectSolanaAccount, idlTooLarge, inWindow, lifetime, littleEndianBytes, loopbackHosts, maxAnchorIdlBytes, parseSolanaSeeds, programMetadataIdlAddress, programMetadataIdlBytes, programMetadataProgram, registeredWallets, retryAfter, retrying, secureOrLoopbackOrigin, solanaAddressBytes, solanaProgramAddress, solanaPublicEndpoints, solanaRpc, solanaSeedBytes, stationPayLink, stationQrSvg, storedIdlJson, walletSignatureValid, zeroCopyAccount };
|
|
233
|
+
export type { AttemptFailure, IdlCompression, IdlDecompressors, Lifetime };
|