@domino-sdk/relay 1.66.1 → 1.68.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 +68 -0
- package/dist/{accounts-_lNsiR2k.d.ts → accounts-DnpKoJCo.d.ts} +210 -3
- package/dist/{attempt-captures-BqPggxTU.d.ts → attempt-captures-DMNFMYFb.d.ts} +9 -1
- package/dist/authoring.d.ts +352 -40
- package/dist/authoring.js +131 -22
- package/dist/{automatic-outcomes-BzAvfcpd.d.ts → automatic-outcomes-CQ3vpiQl.d.ts} +2 -2
- package/dist/avatar.d.ts +1 -1
- package/dist/browser.d.ts +10 -9
- package/dist/browser.js +12 -12
- package/dist/{catalog-ByZMRS7I.d.ts → catalog-BLGie8Lh.d.ts} +60 -2
- package/dist/chunk-4JSPMFO2.js +427 -0
- package/dist/{chunk-5LD5DKOM.js → chunk-55WJVFWC.js} +2 -2
- package/dist/{chunk-CJDB6W6I.js → chunk-5AKD4ZF3.js} +75 -36
- package/dist/{chunk-7MQCQYEE.js → chunk-6UBFSMCM.js} +1 -1
- package/dist/{chunk-XCEGNKGH.js → chunk-6YTSRWRB.js} +1254 -700
- package/dist/{chunk-OWDIR7ZU.js → chunk-75KF633N.js} +9 -1
- package/dist/{chunk-4TC4HK5Y.js → chunk-7YSVZA7A.js} +1 -1
- package/dist/{chunk-7HTRIEM7.js → chunk-CZ7NQ7W7.js} +11 -68
- package/dist/{chunk-ANVAUOJP.js → chunk-DDJN2T5A.js} +1 -1
- package/dist/{chunk-M66Y5OMJ.js → chunk-DNPDR4Z7.js} +16 -9
- package/dist/{chunk-FU3W4IQN.js → chunk-EXZVWQOQ.js} +2 -2
- package/dist/{chunk-5DYS2OIP.js → chunk-HXTKI34N.js} +14 -2
- package/dist/{chunk-FGXLXENM.js → chunk-IW46TW3A.js} +21 -1
- package/dist/{chunk-2Y4EZKET.js → chunk-KKHENO57.js} +2 -2
- package/dist/{chunk-U66GUVSG.js → chunk-LZXDYSUH.js} +2 -0
- package/dist/{chunk-QYHEHMCG.js → chunk-MEUAJIVO.js} +2 -2
- package/dist/{chunk-BQXRCJ3N.js → chunk-P4TPW4SY.js} +1 -1
- package/dist/{chunk-CGUL4MRE.js → chunk-R3MNZKNJ.js} +1 -1
- package/dist/{chunk-R2LHIWAM.js → chunk-SD74HD75.js} +45 -9
- package/dist/{chunk-FUFMYKSQ.js → chunk-TYZFVL73.js} +136 -5
- package/dist/chunk-VAGGGB6B.js +87 -0
- package/dist/{chunk-2HHZV7U3.js → chunk-VRZZB7CQ.js} +1 -1
- package/dist/{client-Cze4lfwA.d.ts → client-BMif22WQ.d.ts} +136 -7
- package/dist/{dashboards-pVfclkyh.d.ts → dashboards-DMk-vL1q.d.ts} +4 -4
- package/dist/{deployments-Cr1tfqrr.d.ts → deployments-BCr418BX.d.ts} +582 -173
- package/dist/{identity-integration-Ci2vGKtX.d.ts → identity-integration-r76xaAax.d.ts} +10 -2
- package/dist/index.d.ts +10 -10
- package/dist/index.js +10 -10
- package/dist/internal.d.ts +155 -14
- package/dist/internal.js +255 -25
- package/dist/{limits-pE04y9O2.d.ts → limits-ByVRQePO.d.ts} +6 -1
- package/dist/{offers-Hw2P6tcK.d.ts → offers-xcPbYaEv.d.ts} +2 -2
- package/dist/portal-proxy.d.ts +5 -5
- package/dist/portal-proxy.js +13 -15
- package/dist/react/index.d.ts +38 -15
- package/dist/react/index.js +12 -12
- package/dist/{reward-deliveries-BCV8hznc.d.ts → reward-deliveries-0VvT6LMj.d.ts} +1 -1
- package/dist/runtime/authoring.js +1 -1
- package/dist/runtime/chunks/2UDZ6TPL.js +1 -0
- package/dist/runtime/manifest.json +3 -3
- package/dist/runtime/schema.js +1 -1
- package/dist/schema.d.ts +401 -104
- package/dist/schema.js +66 -8
- package/dist/server/index.d.ts +12 -12
- package/dist/server/index.js +2288 -873
- package/dist/{sign-in-providers-BAkGjSXo.d.ts → sign-in-providers-C5_753DZ.d.ts} +2 -2
- package/dist/solana.d.ts +171 -0
- package/dist/solana.js +364 -0
- package/dist/{submission-input-ChL1aYNH.d.ts → submission-input-CaL8drIh.d.ts} +2 -2
- package/dist/{telegram-browser-BFs4u7lC.d.ts → telegram-browser-DLtHPRBI.d.ts} +6 -108
- package/dist/telegram.d.ts +8 -8
- package/dist/telegram.js +2 -2
- package/dist/testing.d.ts +87 -14
- package/dist/testing.js +108 -11
- package/dist/{tracker-data-Bl-qPIvZ.d.ts → tracker-data-CAK942sx.d.ts} +300 -3
- package/dist/{transport-WE49Ta3A.d.ts → transport-CkidqTOk.d.ts} +5866 -1244
- package/dist/{wallet-B7e06v4m.d.ts → wallet-DQtJelQQ.d.ts} +418 -33
- package/dist/wallet-browser-dpmr22Xv.d.ts +106 -0
- package/package.json +18 -1
- package/dist/chunk-UYVJZR33.js +0 -34
- package/dist/chunk-UZ765UGH.js +0 -18
- package/dist/runtime/chunks/C5V267I7.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OpenIdentityKind } from './tracker-data-
|
|
1
|
+
import { O as OpenIdentityKind } from './tracker-data-CAK942sx.js';
|
|
2
2
|
import * as z from 'zod';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1008,6 +1008,14 @@ declare const memberImportListQuerySchema: z.ZodObject<{
|
|
|
1008
1008
|
}, z.core.$strict>;
|
|
1009
1009
|
type MemberImportListQuery = z.input<typeof memberImportListQuerySchema>;
|
|
1010
1010
|
|
|
1011
|
+
/** An exact HTTPS origin, such as a hosted app's preview address. */
|
|
1012
|
+
declare const httpsOriginSchema: z.ZodString;
|
|
1013
|
+
/**
|
|
1014
|
+
* An app login key's origin: HTTPS, or plain HTTP on a loopback host (`http://localhost:3000`,
|
|
1015
|
+
* `http://127.0.0.1:3000`, `http://[::1]:3000`) for local development. Relay accepts a loopback
|
|
1016
|
+
* origin on a Test key only (auth/integrations.ts `createIntegrationIn`).
|
|
1017
|
+
*/
|
|
1018
|
+
declare const appLoginOriginSchema: z.ZodString;
|
|
1011
1019
|
declare const identityIntegrationInputSchema: z.ZodObject<{
|
|
1012
1020
|
name: z.ZodString;
|
|
1013
1021
|
origin: z.ZodString;
|
|
@@ -1303,4 +1311,4 @@ declare const accountVouchedBySchema: z.ZodObject<{
|
|
|
1303
1311
|
/** The app login whose server vouched for an account when it signed the member in. */
|
|
1304
1312
|
type AccountVouchedBy = z.infer<typeof accountVouchedBySchema>;
|
|
1305
1313
|
|
|
1306
|
-
export {
|
|
1314
|
+
export { memberImportActionSchema as $, type AccountVouchedBy as A, type MemberImportRevertInput as B, type IdentityReference as C, type KnownMemberImportRefusalCode as D, type KnownMemberImportState as E, type MemberImport as F, type MemberImportAccount as G, type MemberImportCommandInput as H, type IdentityIntegrationKey as I, type MemberImportConsent as J, type KnownIdentityIntegrationEnvironment as K, type MemberImportFullRow as L, type MemberImportVouchedAccount as M, type MemberImportFullRowsInput as N, type MemberImportIdentity as O, type ParticipantExchangeAccountResult as P, type MemberImportReferral as Q, type MemberImportRefusal as R, type MemberImportRevert as S, type MemberImportRevertOutcome as T, type MemberImportRow as U, type MemberImportRowInput as V, type MemberImportRowResult as W, type MemberImportRowsInput as X, type MemberImportSummary as Y, identityReferenceSchema as Z, memberImportAccountSchema as _, type ParticipantExchangeResult as a, 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, type IdentityIntegration as b, type IdentityIntegrationAccountVouchingInput as c, type IdentityIntegrationAppSecret as d, type IdentityKindClaim as e, type ParticipantExchangeInput as f, 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, type MemberImportCreateInput as u, MemberImportRefusalCode as v, MemberImportState as w, type MemberImportListQuery as x, type MemberImportRowQuery as y, type MemberImportFullRowInput as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
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-
|
|
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-xcPbYaEv.js';
|
|
2
2
|
export { R as RelayAction, c as createRelayAction } from './action-9Xl0StBg.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-
|
|
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-BMif22WQ.js';
|
|
4
4
|
export { R as RequestError, a as RequestErrorDetails, b as RequestErrorKind, c as RequestRecovery, i as isRequestError } from './request-error-D_dUPLwo.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-
|
|
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-DnpKoJCo.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-
|
|
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-0VvT6LMj.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-CaL8drIh.js';
|
|
9
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-DXRq4s6K.js';
|
|
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, C as CosmosChain, a as CosmosNetwork, L as LinkedWallet, O as OwnProfile, P as ProfileAvatar, b as ProfileCompletion, c as ProfileCompletionPage, d as ProfileCompletionQuery, e as
|
|
10
|
+
export { Q as QuestInteraction, a as QuestRewardView, b as QuestView } from './catalog-BLGie8Lh.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-CQ3vpiQl.js';
|
|
12
|
+
export { K as KnownSkipEnrollment, a as KnownTrackerSkipCode, S as SkipEnrollment, T as TrackerSkipCode } from './tracker-data-CAK942sx.js';
|
|
13
|
+
export { A as AvatarProvider, C as CosmosChain, a as CosmosNetwork, L as LinkedWallet, O as OwnProfile, P as ProfileAvatar, b as ProfileCompletion, c as ProfileCompletionPage, d as ProfileCompletionQuery, e as ProfileNameSource, f as ProfileReferral, g as ProfileSummary, h as ProfileUpdate, i as ProfileVisibility, W as WalletAddressInput, j as WalletChain, k as WalletMessageChallenge, l as WalletProofKind, m as WalletSignInNetwork, n as WalletSignature, o as WalletSigner, p as WalletTransactionChallenge, q as WalletTransactionProof, r as WalletUnlinkInput } from './wallet-DQtJelQQ.js';
|
|
14
14
|
export { Q as QuizContent, S as StreakProgress } from './streaks-0YuipsUQ.js';
|
|
15
15
|
export { P as ParticipantDelivery } from './participant-rewards-BcWkBRn_.js';
|
|
16
16
|
import 'zod';
|
|
17
|
-
import './sign-in-providers-
|
|
17
|
+
import './sign-in-providers-C5_753DZ.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-SD74HD75.js";
|
|
9
9
|
import {
|
|
10
10
|
createRelayAction
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-P4TPW4SY.js";
|
|
12
|
+
import "./chunk-VRZZB7CQ.js";
|
|
13
|
+
import "./chunk-7YSVZA7A.js";
|
|
14
|
+
import "./chunk-KKHENO57.js";
|
|
15
15
|
import {
|
|
16
16
|
QuestOutcomeState
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-R3MNZKNJ.js";
|
|
18
18
|
import {
|
|
19
19
|
sessionMember
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-6UBFSMCM.js";
|
|
21
|
+
import "./chunk-55WJVFWC.js";
|
|
22
22
|
import {
|
|
23
23
|
AttemptStatus,
|
|
24
24
|
PointEntryKind,
|
|
25
25
|
paginate
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-6YTSRWRB.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-IW46TW3A.js";
|
|
34
34
|
export {
|
|
35
35
|
AttemptStatus,
|
|
36
36
|
PointEntryKind,
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
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, i as identityIntegrationAccountVouchingInputSchema,
|
|
3
|
-
export { E as Extracted } from './limits-
|
|
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-CkidqTOk.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-r76xaAax.js';
|
|
3
|
+
export { E as Extracted } from './limits-ByVRQePO.js';
|
|
4
|
+
export { ar as stationRefusal } from './accounts-DnpKoJCo.js';
|
|
5
|
+
import { b as StandardWallet, c as StandardWalletAccount } from './wallet-browser-dpmr22Xv.js';
|
|
6
|
+
import { S as SolanaNetwork, X as SolanaSeed } from './wallet-DQtJelQQ.js';
|
|
7
|
+
export { aD as evmWalletOn } from './wallet-DQtJelQQ.js';
|
|
4
8
|
import { b as RequestErrorKind } from './request-error-D_dUPLwo.js';
|
|
5
|
-
export {
|
|
9
|
+
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-CAK942sx.js';
|
|
6
10
|
export { H as HostEnvironment, h as hostEnvironmentPath, a as hostEnvironmentSchema } from './host-environment-FN4zg3hw.js';
|
|
7
|
-
export { c as compatibleSettingKinds,
|
|
11
|
+
export { c as compatibleSettingKinds, e as dashboardIssue, i as isBoundSetting, n as normalizeDashboard } from './dashboards-DMk-vL1q.js';
|
|
8
12
|
import 'zod';
|
|
9
|
-
import './
|
|
10
|
-
import './wallet-B7e06v4m.js';
|
|
11
|
-
import './reward-deliveries-BCV8hznc.js';
|
|
13
|
+
import './reward-deliveries-0VvT6LMj.js';
|
|
12
14
|
import './action-9Xl0StBg.js';
|
|
13
|
-
import './automatic-outcomes-
|
|
14
|
-
import './deployments-
|
|
15
|
-
import './offers-
|
|
16
|
-
import './catalog-
|
|
17
|
-
import './attempt-captures-
|
|
15
|
+
import './automatic-outcomes-CQ3vpiQl.js';
|
|
16
|
+
import './deployments-BCr418BX.js';
|
|
17
|
+
import './offers-xcPbYaEv.js';
|
|
18
|
+
import './catalog-BLGie8Lh.js';
|
|
19
|
+
import './attempt-captures-DMNFMYFb.js';
|
|
18
20
|
|
|
19
21
|
/** The hosts a developer machine serves over plain HTTP: browser tests, `vite` dev and the local stack. */
|
|
20
22
|
declare const loopbackHosts: readonly string[];
|
|
@@ -29,6 +31,145 @@ declare function secureOrLoopbackOrigin(url: URL, options?: {
|
|
|
29
31
|
/** Whether `url` is an origin and nothing more: no credentials, path, query or fragment. */
|
|
30
32
|
declare function bareOrigin(url: URL): boolean;
|
|
31
33
|
|
|
34
|
+
/**
|
|
35
|
+
* The one form Relay stores and compares a Solana or EVM address in, or null when it is not one:
|
|
36
|
+
* a 32-byte key in canonical base58, or 20 bytes of hex returned EIP-55 checksummed. Mixed-case
|
|
37
|
+
* hex must carry a valid checksum; one-case hex has none to check.
|
|
38
|
+
*/
|
|
39
|
+
declare function canonicalWalletAddress(chain: "solana" | "eip155", address: string): string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Whether `signature` is `address`'s signature over exactly `message`. Solana: base58 key and
|
|
42
|
+
* 64-byte base58 signature. EVM: `0x` and 130 hex digits, by an externally owned account; a
|
|
43
|
+
* smart-contract wallet's (ERC-1271) needs the chain and is not checked here.
|
|
44
|
+
*/
|
|
45
|
+
declare function walletSignatureValid(input: {
|
|
46
|
+
chain: "solana" | "eip155";
|
|
47
|
+
address: string;
|
|
48
|
+
message: string;
|
|
49
|
+
signature: string;
|
|
50
|
+
}): Promise<boolean>;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The Solana Pay link a station's QR code encodes: `solana:` and the URL-encoded app URL that
|
|
54
|
+
* serves the quest with `defineStationAction`, with `?station=<key>` added.
|
|
55
|
+
*/
|
|
56
|
+
declare function stationPayLink(url: string | URL, station: string): string;
|
|
57
|
+
/**
|
|
58
|
+
* An SVG of `link`'s QR code, black modules on white with the four-module quiet zone scanners
|
|
59
|
+
* need, and `label` centred under it.
|
|
60
|
+
*/
|
|
61
|
+
declare function stationQrSvg(link: string, label: string): Promise<string>;
|
|
62
|
+
|
|
63
|
+
type Window = {
|
|
64
|
+
from?: number;
|
|
65
|
+
until?: number;
|
|
66
|
+
};
|
|
67
|
+
/** Whether `time` falls in the window: `from <= time < until`, with a missing bound open. */
|
|
68
|
+
declare const inWindow: (window: Window, time: number) => boolean;
|
|
69
|
+
|
|
70
|
+
/** Base58 (Bitcoin alphabet), the encoding Solana uses for addresses and signatures. */
|
|
71
|
+
declare function base58(bytes: Uint8Array): string;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* The Wallet Standard wallets registered with `target`, the page's window: wallets loaded before
|
|
75
|
+
* this call answer `wallet-standard:app-ready`, and wallets loading during it dispatch
|
|
76
|
+
* `wallet-standard:register-wallet`.
|
|
77
|
+
*/
|
|
78
|
+
declare function registeredWallets(target: EventTarget): StandardWallet[];
|
|
79
|
+
/**
|
|
80
|
+
* Connects a Wallet Standard wallet and returns the account it shares on Solana, or its first
|
|
81
|
+
* account. Throws when the wallet lacks `standard:connect` or shares no account.
|
|
82
|
+
*/
|
|
83
|
+
declare function connectSolanaAccount(wallet: StandardWallet): Promise<StandardWalletAccount>;
|
|
84
|
+
|
|
85
|
+
/** Each cluster's public JSON-RPC endpoint, which Console sends payout batches through. */
|
|
86
|
+
declare const solanaPublicEndpoints: Record<SolanaNetwork, string>;
|
|
87
|
+
/** Calls `method` on a Solana JSON-RPC endpoint; a node's error rejects with its message. */
|
|
88
|
+
declare function solanaRpc<T>(url: string, method: string, params: unknown[]): Promise<T>;
|
|
89
|
+
/**
|
|
90
|
+
* Waits until `signature` is confirmed through `url`. Resolves false when it failed, or when the
|
|
91
|
+
* cluster passed `lastValidBlockHeight` without it.
|
|
92
|
+
*/
|
|
93
|
+
declare function confirmedSignature(url: string, signature: string, lastValidBlockHeight: number): Promise<boolean>;
|
|
94
|
+
|
|
95
|
+
/** The largest program IDL Relay stores, as JSON. */
|
|
96
|
+
declare const maxAnchorIdlBytes: number;
|
|
97
|
+
/** Whether `idl`, as minified JSON, is larger than Relay stores. */
|
|
98
|
+
declare const idlTooLarge: (idl: unknown) => boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Whether an IDL account type is zero-copy, which Relay doesn't decode: only a 0.30+ IDL marks
|
|
101
|
+
* one, with a `serialization` other than `borsh` on the account or on the type of its name.
|
|
102
|
+
*/
|
|
103
|
+
declare const zeroCopyAccount: (account: {
|
|
104
|
+
serialization?: unknown;
|
|
105
|
+
}, declared?: {
|
|
106
|
+
serialization?: unknown;
|
|
107
|
+
}) => boolean;
|
|
108
|
+
/**
|
|
109
|
+
* `value` as an integer of `bits` bits, or why it is not one: not a safe integer number or decimal
|
|
110
|
+
* string, or out of the type's range.
|
|
111
|
+
*/
|
|
112
|
+
declare function checkedInteger(value: unknown, signed: boolean, bits: number): bigint | "not-an-integer" | {
|
|
113
|
+
min: bigint;
|
|
114
|
+
max: bigint;
|
|
115
|
+
};
|
|
116
|
+
/** `value` as `bits / 8` little-endian bytes, two's complement when negative, as `to_le_bytes()`. */
|
|
117
|
+
declare function littleEndianBytes(value: bigint, bits: number): Uint8Array;
|
|
118
|
+
/**
|
|
119
|
+
* A program-account seed's bytes, `"wallet"` where each wallet's address goes, or why the seed
|
|
120
|
+
* doesn't fit: text over 32 bytes, no Solana address, or an integer out of its type's range.
|
|
121
|
+
* Relay's program-account reader and `domino quests from-idl --account` check seeds alike.
|
|
122
|
+
*/
|
|
123
|
+
declare function solanaSeedBytes(seed: SolanaSeed, position: number): Uint8Array | "wallet" | {
|
|
124
|
+
problem: string;
|
|
125
|
+
};
|
|
126
|
+
/** How an on-chain IDL account compresses the IDL's JSON. */
|
|
127
|
+
type IdlCompression = "none" | "gzip" | "zlib";
|
|
128
|
+
/** Node's `gunzipSync` and `inflateSync`, or decompressors that take the same output limit. */
|
|
129
|
+
type IdlDecompressors = Record<"gunzip" | "inflate", (bytes: Uint8Array, options: {
|
|
130
|
+
maxOutputLength: number;
|
|
131
|
+
}) => Uint8Array>;
|
|
132
|
+
/**
|
|
133
|
+
* The JSON value `bytes` hold, decompressed and parsed as UTF-8, or null when they hold none:
|
|
134
|
+
* corrupt data, data that decompresses past four times the stored limit, or text that is not JSON.
|
|
135
|
+
*/
|
|
136
|
+
declare function storedIdlJson(bytes: Uint8Array, compression: IdlCompression, decompress: IdlDecompressors): unknown;
|
|
137
|
+
/** The 32 bytes of a base58 Solana address; throws for anything else. */
|
|
138
|
+
declare function solanaAddressBytes(address: string): Uint8Array;
|
|
139
|
+
/** Solana's `find_program_address`: the first off-curve address from bump seed 255 down. */
|
|
140
|
+
declare function solanaProgramAddress(seeds: Uint8Array[], program: string): string;
|
|
141
|
+
/**
|
|
142
|
+
* The address of `program`'s Anchor IDL account: `create_with_seed` from the program's signer
|
|
143
|
+
* address (`find_program_address([], program)`) with seed `"anchor:idl"`, owned by the program.
|
|
144
|
+
*/
|
|
145
|
+
declare function anchorIdlAddress(program: string): string;
|
|
146
|
+
/**
|
|
147
|
+
* The zlib-compressed IDL JSON in an Anchor IDL account's data: an 8-byte discriminator, the 32-byte
|
|
148
|
+
* authority, a u32 length, then that many bytes. Null when the data holds none.
|
|
149
|
+
*/
|
|
150
|
+
declare function anchorIdlAccountBytes(data: Uint8Array): Uint8Array | null;
|
|
151
|
+
/** The Program Metadata Program, where Anchor 1.0 and later and Codama publish a program's IDL. */
|
|
152
|
+
declare const programMetadataProgram = "ProgM6JCCvbYkfKqJYHePx4xxSUSqJp7rh8Lyv7nk7S";
|
|
153
|
+
/**
|
|
154
|
+
* The address of `program`'s canonical IDL metadata account, the one its upgrade authority wrote:
|
|
155
|
+
* `find_program_address([program, "idl" padded to 16 bytes], ProgM6…)`. A third party's metadata
|
|
156
|
+
* account for the program also derives from its authority, and is not read.
|
|
157
|
+
*/
|
|
158
|
+
declare function programMetadataIdlAddress(program: string): string;
|
|
159
|
+
/**
|
|
160
|
+
* The IDL bytes in a canonical Program Metadata `idl` account's data, and how they are compressed.
|
|
161
|
+
* The 96-byte header holds the discriminator, the program, the authority, the mutable and canonical
|
|
162
|
+
* flags, the seed, the data's encoding, compression, format and source, then a u32 data length at
|
|
163
|
+
* byte 87. Only data stored in the account itself, as UTF-8 JSON, is read: Anchor writes it that
|
|
164
|
+
* way, and a URL or another account as the source would let the IDL change without the account
|
|
165
|
+
* changing. A format of none reads as JSON too, as Codama's own IDL and some Anchor ones are
|
|
166
|
+
* written. Null when the account holds no IDL for `program` this way.
|
|
167
|
+
*/
|
|
168
|
+
declare function programMetadataIdlBytes(data: Uint8Array, program: string): {
|
|
169
|
+
bytes: Uint8Array;
|
|
170
|
+
compression: IdlCompression;
|
|
171
|
+
} | null;
|
|
172
|
+
|
|
32
173
|
/** The management client's and the CLI's default deadline per call. */
|
|
33
174
|
declare const MANAGEMENT_TIMEOUT = 30000;
|
|
34
175
|
/** One call's deadline and the caller's signal, shared by every attempt and the body read. */
|
|
@@ -74,4 +215,4 @@ type Rules = {
|
|
|
74
215
|
*/
|
|
75
216
|
declare function retrying<T>(life: Lifetime, rules: Rules, attempt: () => Promise<T>): Promise<T>;
|
|
76
217
|
|
|
77
|
-
export { type AttemptFailure, type Lifetime, MANAGEMENT_TIMEOUT, bareOrigin, lifetime, loopbackHosts, retryAfter, retrying, secureOrLoopbackOrigin };
|
|
218
|
+
export { type AttemptFailure, type IdlCompression, type IdlDecompressors, type Lifetime, MANAGEMENT_TIMEOUT, anchorIdlAccountBytes, anchorIdlAddress, bareOrigin, base58, canonicalWalletAddress, checkedInteger, confirmedSignature, connectSolanaAccount, idlTooLarge, inWindow, lifetime, littleEndianBytes, loopbackHosts, maxAnchorIdlBytes, programMetadataIdlAddress, programMetadataIdlBytes, programMetadataProgram, registeredWallets, retryAfter, retrying, secureOrLoopbackOrigin, solanaAddressBytes, solanaProgramAddress, solanaPublicEndpoints, solanaRpc, solanaSeedBytes, stationPayLink, stationQrSvg, storedIdlJson, walletSignatureValid, zeroCopyAccount };
|