@domino-sdk/relay 1.68.0 → 1.70.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 +28 -0
- package/build.mjs +3 -0
- package/dist/{accounts-DnpKoJCo.d.ts → accounts-B49TGZLk.d.ts} +25 -5
- package/dist/{action-9Xl0StBg.d.ts → action-BDFKqGlH.d.ts} +3 -2
- package/dist/{attempt-captures-DMNFMYFb.d.ts → attempt-captures-Dn-oGE1o.d.ts} +4 -3
- package/dist/authoring.d.ts +218 -43
- package/dist/authoring.js +76 -18
- package/dist/{automatic-outcomes-CQ3vpiQl.d.ts → automatic-outcomes-DeRyox-X.d.ts} +11 -3
- package/dist/avatar.d.ts +2 -1
- package/dist/browser.d.ts +15 -14
- package/dist/browser.js +11 -11
- package/dist/{capability-error-CuI_F7yM.d.ts → capability-error-db7kO8-P.d.ts} +2 -1
- package/dist/{catalog-BLGie8Lh.d.ts → catalog-CR_2iacf.d.ts} +11 -3
- package/dist/{chunk-5AKD4ZF3.js → chunk-25WA4XYZ.js} +9 -3
- package/dist/{chunk-6UBFSMCM.js → chunk-2GVGZ7AN.js} +1 -1
- package/dist/{chunk-SD74HD75.js → chunk-3DUNFRKJ.js} +9 -9
- package/dist/{chunk-7YSVZA7A.js → chunk-4BBDHTBF.js} +1 -1
- package/dist/{chunk-6YTSRWRB.js → chunk-4VDRNYUG.js} +83 -11
- package/dist/{chunk-P4TPW4SY.js → chunk-5RLIPTL7.js} +1 -1
- package/dist/{chunk-MEUAJIVO.js → chunk-BJ2W5ZVQ.js} +2 -2
- package/dist/{chunk-KKHENO57.js → chunk-FHOKCBTJ.js} +2 -2
- package/dist/{chunk-DDJN2T5A.js → chunk-HICAGUT5.js} +1 -1
- package/dist/{chunk-VRZZB7CQ.js → chunk-LDO5GP7G.js} +1 -1
- package/dist/{chunk-TYZFVL73.js → chunk-NOQSKRSS.js} +4 -4
- package/dist/{chunk-75KF633N.js → chunk-OKKZPDCQ.js} +1 -1
- package/dist/{chunk-4JSPMFO2.js → chunk-RSZAYW3T.js} +2 -2
- package/dist/{chunk-HXTKI34N.js → chunk-RYUM6X2K.js} +1 -1
- package/dist/{chunk-EXZVWQOQ.js → chunk-SDWG7CWQ.js} +2 -2
- package/dist/{chunk-R3MNZKNJ.js → chunk-SELJYCYY.js} +1 -1
- package/dist/{chunk-DNPDR4Z7.js → chunk-UKUIE2ND.js} +6 -6
- package/dist/{chunk-IW46TW3A.js → chunk-VNEJH4NT.js} +26 -2
- package/dist/{chunk-55WJVFWC.js → chunk-XD6EUA27.js} +2 -2
- package/dist/{chunk-CZ7NQ7W7.js → chunk-XZCTCSDG.js} +3 -3
- package/dist/{client-BMif22WQ.d.ts → client-gJEheT2C.d.ts} +33 -11
- package/dist/{dashboards-DMk-vL1q.d.ts → dashboards-DZaB94sz.d.ts} +6 -5
- package/dist/{deployments-BCr418BX.d.ts → deployments-QVGxC-fT.d.ts} +530 -337
- package/dist/{host-environment-FN4zg3hw.d.ts → host-environment-DUw5-Cvj.d.ts} +2 -1
- package/dist/{identity-integration-r76xaAax.d.ts → identity-integration-BAJdzbdl.d.ts} +3 -2
- package/dist/index.d.ts +16 -15
- package/dist/index.js +10 -10
- package/dist/internal.d.ts +34 -19
- package/dist/internal.js +40 -14
- package/dist/{limits-ByVRQePO.d.ts → limits-UawUbr0S.d.ts} +3 -2
- package/dist/{offers-xcPbYaEv.d.ts → offers-0hqbnogq.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 -17
- package/dist/profiles-CLDKZVFx.d.ts +370 -0
- package/dist/react/index.d.ts +50 -31
- package/dist/react/index.js +12 -11
- package/dist/{request-error-D_dUPLwo.d.ts → request-error-C24SY7n9.d.ts} +2 -1
- package/dist/{reward-deliveries-0VvT6LMj.d.ts → reward-deliveries-ARvt1UXb.d.ts} +3 -2
- package/dist/runtime/authoring.js +1 -1
- package/dist/runtime/chunks/447P2VLY.js +1 -0
- package/dist/runtime/manifest.json +3 -3
- package/dist/runtime/schema.js +1 -1
- package/dist/schema.d.ts +258 -176
- package/dist/schema.js +18 -8
- package/dist/server/index.d.ts +15 -14
- package/dist/server/index.js +47 -48
- package/dist/{sign-in-providers-C5_753DZ.d.ts → sign-in-providers-DCiufSGG.d.ts} +4 -3
- package/dist/solana.d.ts +142 -26
- package/dist/solana.js +449 -114
- package/dist/{streaks-0YuipsUQ.d.ts → streaks-MAqKHbHC.d.ts} +2 -1
- package/dist/{submission-input-CaL8drIh.d.ts → submission-input-C0DLv5Dj.d.ts} +4 -3
- package/dist/{telegram-browser-DLtHPRBI.d.ts → telegram-browser-yx9WuNLX.d.ts} +8 -7
- package/dist/telegram.d.ts +14 -12
- package/dist/telegram.js +2 -2
- package/dist/testing.d.ts +24 -15
- package/dist/testing.js +6 -6
- package/dist/{tracker-data-CAK942sx.d.ts → tracker-data-CUopgomU.d.ts} +198 -3
- package/dist/{transport-CkidqTOk.d.ts → transport-e0uY1R7z.d.ts} +3415 -2233
- package/dist/vite.d.ts +2 -1
- package/dist/{wallet-DQtJelQQ.d.ts → wallet-CJTULM0Q.d.ts} +54 -375
- package/dist/{wallet-browser-dpmr22Xv.d.ts → wallet-browser-DScvrvIj.d.ts} +3 -2
- package/package.json +6 -3
- package/dist/runtime/chunks/2UDZ6TPL.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-CUopgomU.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-0hqbnogq.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-gJEheT2C.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-B49TGZLk.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-ARvt1UXb.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-C0DLv5Dj.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-CR_2iacf.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-DeRyox-X.js';
|
|
12
|
+
export { K as KnownSkipEnrollment, a as KnownTrackerSkipCode, S as SkipEnrollment, T as TrackerSkipCode } from './tracker-data-CUopgomU.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-CJTULM0Q.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-DCiufSGG.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-3DUNFRKJ.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-4BBDHTBF.js";
|
|
14
|
+
import "./chunk-FHOKCBTJ.js";
|
|
15
15
|
import {
|
|
16
16
|
QuestOutcomeState
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SELJYCYY.js";
|
|
18
18
|
import {
|
|
19
19
|
sessionMember
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-2GVGZ7AN.js";
|
|
21
|
+
import "./chunk-XD6EUA27.js";
|
|
22
22
|
import {
|
|
23
23
|
AttemptStatus,
|
|
24
24
|
PointEntryKind,
|
|
25
25
|
paginate
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-4VDRNYUG.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,22 +1,24 @@
|
|
|
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-
|
|
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 { ar as stationRefusal } from './accounts-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export { H as
|
|
11
|
-
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-e0uY1R7z.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-BAJdzbdl.js';
|
|
3
|
+
export { E as Extracted } from './limits-UawUbr0S.js';
|
|
4
|
+
export { ar as stationRefusal } from './accounts-B49TGZLk.js';
|
|
5
|
+
import { StandardWallet, StandardWalletAccount } from './browser.js';
|
|
6
|
+
import { SolanaSeed } from './authoring.js';
|
|
7
|
+
import { SolanaNetwork } from './schema.js';
|
|
8
|
+
export { au as evmWalletOn } from './wallet-CJTULM0Q.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-CUopgomU.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-DZaB94sz.js';
|
|
12
13
|
import 'zod';
|
|
13
|
-
import './reward-deliveries-
|
|
14
|
-
import './action-
|
|
15
|
-
import './automatic-outcomes-
|
|
16
|
-
import './
|
|
17
|
-
import './
|
|
18
|
-
import './
|
|
19
|
-
import './
|
|
14
|
+
import './reward-deliveries-ARvt1UXb.js';
|
|
15
|
+
import './action-BDFKqGlH.js';
|
|
16
|
+
import './automatic-outcomes-DeRyox-X.js';
|
|
17
|
+
import './profiles-CLDKZVFx.js';
|
|
18
|
+
import './deployments-QVGxC-fT.js';
|
|
19
|
+
import './offers-0hqbnogq.js';
|
|
20
|
+
import './catalog-CR_2iacf.js';
|
|
21
|
+
import './attempt-captures-Dn-oGE1o.js';
|
|
20
22
|
|
|
21
23
|
/** The hosts a developer machine serves over plain HTTP: browser tests, `vite` dev and the local stack. */
|
|
22
24
|
declare const loopbackHosts: readonly string[];
|
|
@@ -123,6 +125,18 @@ declare function littleEndianBytes(value: bigint, bits: number): Uint8Array;
|
|
|
123
125
|
declare function solanaSeedBytes(seed: SolanaSeed, position: number): Uint8Array | "wallet" | {
|
|
124
126
|
problem: string;
|
|
125
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
|
+
};
|
|
126
140
|
/** How an on-chain IDL account compresses the IDL's JSON. */
|
|
127
141
|
type IdlCompression = "none" | "gzip" | "zlib";
|
|
128
142
|
/** Node's `gunzipSync` and `inflateSync`, or decompressors that take the same output limit. */
|
|
@@ -215,4 +229,5 @@ type Rules = {
|
|
|
215
229
|
*/
|
|
216
230
|
declare function retrying<T>(life: Lifetime, rules: Rules, attempt: () => Promise<T>): Promise<T>;
|
|
217
231
|
|
|
218
|
-
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 };
|
package/dist/internal.js
CHANGED
|
@@ -9,16 +9,16 @@ import {
|
|
|
9
9
|
solanaPublicEndpoints,
|
|
10
10
|
solanaRpc,
|
|
11
11
|
walletSignatureValid
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NOQSKRSS.js";
|
|
13
13
|
import {
|
|
14
14
|
parseImageExtraction,
|
|
15
15
|
parseImageResult
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SDWG7CWQ.js";
|
|
17
17
|
import {
|
|
18
18
|
sourceDataSchema,
|
|
19
19
|
sourceRoles,
|
|
20
20
|
validateQuestShape
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-RYUM6X2K.js";
|
|
22
22
|
import {
|
|
23
23
|
accountVouchedBySchema,
|
|
24
24
|
appLoginOriginSchema,
|
|
@@ -38,19 +38,19 @@ import {
|
|
|
38
38
|
participantExchangeResultSchema,
|
|
39
39
|
participantExchangeSchema,
|
|
40
40
|
secureOrLoopbackOrigin
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-25WA4XYZ.js";
|
|
42
42
|
import {
|
|
43
43
|
isIntegrationParticipantPath,
|
|
44
44
|
isParticipantRoute,
|
|
45
45
|
participantRoutePattern,
|
|
46
46
|
participantRoutes
|
|
47
47
|
} from "./chunk-LZXDYSUH.js";
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-UKUIE2ND.js";
|
|
49
|
+
import "./chunk-HICAGUT5.js";
|
|
50
50
|
import {
|
|
51
51
|
dashboardIssue,
|
|
52
52
|
normalizeDashboard
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-BJ2W5ZVQ.js";
|
|
54
54
|
import "./chunk-MWMCQLCG.js";
|
|
55
55
|
import {
|
|
56
56
|
connectSolanaAccount,
|
|
@@ -58,16 +58,16 @@ import {
|
|
|
58
58
|
hostEnvironmentSchema,
|
|
59
59
|
registeredWallets
|
|
60
60
|
} from "./chunk-VAGGGB6B.js";
|
|
61
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-4BBDHTBF.js";
|
|
62
62
|
import {
|
|
63
63
|
MANAGEMENT_TIMEOUT,
|
|
64
64
|
lifetime,
|
|
65
65
|
retryAfter,
|
|
66
66
|
retrying
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
67
|
+
} from "./chunk-FHOKCBTJ.js";
|
|
68
|
+
import "./chunk-SELJYCYY.js";
|
|
69
|
+
import "./chunk-2GVGZ7AN.js";
|
|
70
|
+
import "./chunk-XD6EUA27.js";
|
|
71
71
|
import {
|
|
72
72
|
base58,
|
|
73
73
|
base58Bytes,
|
|
@@ -85,8 +85,8 @@ import {
|
|
|
85
85
|
trackerDataRecordSteps,
|
|
86
86
|
whereSchemaIssue,
|
|
87
87
|
whereSettings
|
|
88
|
-
} from "./chunk-
|
|
89
|
-
import "./chunk-
|
|
88
|
+
} from "./chunk-4VDRNYUG.js";
|
|
89
|
+
import "./chunk-VNEJH4NT.js";
|
|
90
90
|
|
|
91
91
|
// src/station-qr.ts
|
|
92
92
|
function stationPayLink(url, station) {
|
|
@@ -170,6 +170,31 @@ function solanaSeedBytes(seed, position) {
|
|
|
170
170
|
problem: `Seed ${position} must be a ${type}: a safe integer number or a decimal string${typeof checked === "object" ? ` from ${checked.min} to ${checked.max}` : ""}`
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
+
function parseSolanaSeeds(text, maxSeeds) {
|
|
174
|
+
const entries = text.split(",").map((entry) => entry.trim());
|
|
175
|
+
if (entries.length > maxSeeds) {
|
|
176
|
+
return { problem: `A Solana address takes at most ${maxSeeds} seeds` };
|
|
177
|
+
}
|
|
178
|
+
const seeds = [];
|
|
179
|
+
for (const [index, entry] of entries.entries()) {
|
|
180
|
+
const position = index + 1;
|
|
181
|
+
const colon = entry.indexOf(":");
|
|
182
|
+
const prefix = colon < 0 ? "" : entry.slice(0, colon);
|
|
183
|
+
const value = entry.slice(colon + 1);
|
|
184
|
+
const seed = entry === "wallet" ? { wallet: true } : prefix === "pubkey" ? { pubkey: value } : /^[ui](8|16|32|64|128)$/.test(prefix) ? { [prefix]: value } : prefix === "string" ? value : entry;
|
|
185
|
+
if (seed === "") {
|
|
186
|
+
return { problem: `Seed ${position} is empty` };
|
|
187
|
+
}
|
|
188
|
+
const checked = solanaSeedBytes(seed, position);
|
|
189
|
+
if (typeof checked === "object" && "problem" in checked) {
|
|
190
|
+
return checked;
|
|
191
|
+
}
|
|
192
|
+
seeds.push(seed);
|
|
193
|
+
}
|
|
194
|
+
return seeds.some((seed) => typeof seed === "object" && "wallet" in seed) ? { seeds } : {
|
|
195
|
+
problem: "The seeds must include wallet: Relay reads only accounts derived from a member's linked wallets"
|
|
196
|
+
};
|
|
197
|
+
}
|
|
173
198
|
function storedIdlJson(bytes, compression, decompress) {
|
|
174
199
|
const limit = { maxOutputLength: maxAnchorIdlBytes * 4 };
|
|
175
200
|
try {
|
|
@@ -317,6 +342,7 @@ export {
|
|
|
317
342
|
normalizeDashboard,
|
|
318
343
|
parseImageExtraction,
|
|
319
344
|
parseImageResult,
|
|
345
|
+
parseSolanaSeeds,
|
|
320
346
|
participantExchangeAccountResultSchema,
|
|
321
347
|
participantExchangeAccountsSchema,
|
|
322
348
|
participantExchangeResultSchema,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
-
import { ac as PhotoResult, W as AttemptCodeSource } from './accounts-
|
|
2
|
+
import { ac as PhotoResult, W as AttemptCodeSource } from './accounts-B49TGZLk.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
|
|
@@ -956,4 +956,5 @@ type Limits = {
|
|
|
956
956
|
/** Relay's platform limits. A 1.x release can raise them, so read them here at run time. */
|
|
957
957
|
declare const limits: Limits;
|
|
958
958
|
|
|
959
|
-
export {
|
|
959
|
+
export { publishedImageSchema as B, xConnectionSchema as C, xIdSchema as D, xPostSchema as F, xProfileSchema as G, xRequestSchema as H, xUserLookupInputSchema as J, xUserSchema as K, xUsernameSchema as M, analyticsCatalog as a, analyticsBreakdowns as a1, analyticsCatalogSchema as a2, analyticsCharts as a3, analyticsFilters as a4, analyticsMetricIds as a5, analyticsMetricQuerySchema as a6, analyticsMetricResultSchema as a7, analyticsQueryLimit as a8, analyticsQuerySchema as a9, analyticsRanges as aa, analyticsReadSchema as ab, limits as l, imageAssetArtifactSchema as p, imageComparisonSchema as q, imageExtractionSchema as r, imageFieldSchema as s, imageFieldsSchema as t, imageInspectionSchema as u, imageReferenceSchema as v, imageRequestSchema as w, imageSightingsSchema as x, imageUploadRequestSchema as y, imageUploadsSchema as z };
|
|
960
|
+
export type { AnalyticsQuest as $, AnalyticsMetricId as A, Extracted as E, ImageReader as I, Limits as L, AnalyticsQuery as N, AnalyticsRead as O, PublishedImage as P, AnalyticsCatalog as Q, AnalyticsMetricQuery as R, AnalyticsMetricResult as S, AnalyticsBreakdown as T, AnalyticsBreakdownRow as U, AnalyticsCatalogEntry as V, AnalyticsChart as W, XReader as X, AnalyticsFilter as Y, AnalyticsMetric as Z, AnalyticsMetricKind as _, AnalyticsRange as a0, ImageAssetArtifact as b, ImageComparison as c, ImageExtraction as d, ImageFields as e, ImageInspection as f, ImageReference as g, ImageRequest as h, ImageSightings as i, XConnection as j, XPost as k, XProfile as m, XUser as n, XUserLookupInput as o };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
-
import { R as ResourceHandle } from './tracker-data-
|
|
3
|
-
import { _ as AuthoringIdentity } from './accounts-
|
|
2
|
+
import { R as ResourceHandle } from './tracker-data-CUopgomU.js';
|
|
3
|
+
import { _ as AuthoringIdentity } from './accounts-B49TGZLk.js';
|
|
4
4
|
|
|
5
5
|
declare const badgePropertiesSchema: z.ZodObject<{
|
|
6
6
|
name: z.ZodString;
|
|
@@ -848,4 +848,5 @@ declare function defineOffer(input: OfferAuthoring & AuthoringIdentity): {
|
|
|
848
848
|
})[] | undefined;
|
|
849
849
|
} & ResourceHandle<"offer">;
|
|
850
850
|
|
|
851
|
-
export { offerLimitSchema as A,
|
|
851
|
+
export { offerLimitSchema as A, offerPriceSchema as C, offerSchema as D, redeemOfferSchema as E, redemptionCancellationSchema as F, redemptionPageSchema as G, redemptionQuerySchema as H, redemptionSchema as I, badgeDeclarationSchema as g, badgeArtifactSchema as k, badgeCatalogSchema as l, badgeMutationResultSchema as m, badgeMutationSchema as n, badgePropertiesSchema as o, badgeSchema as p, createBadgeSchema as q, defineOffer as r, managedBadgeSchema as s, memberBadgeSchema as t, memberBadgesSchema as u, offerArtifactSchema as v, offerAuthoringSchema as w, offerAvailabilitySchema as x, offerControlSchema as y, offerDefinitionSchema as z };
|
|
852
|
+
export type { Badge as B, ManagedBadge as M, Offer as O, RedeemOfferInput as R, BadgeCatalog as a, MemberBadge as b, MemberBadges as c, OfferDefinition as d, OfferPrice as e, Redemption as f, OfferAuthoring as h, RedemptionPage as i, RedemptionQuery as j };
|
|
@@ -364,4 +364,5 @@ declare const participantActivitySchema: z.ZodObject<{
|
|
|
364
364
|
type RelayEvent = z.infer<typeof relayEventSchema>;
|
|
365
365
|
type ParticipantActivity = z.infer<typeof participantActivitySchema>;
|
|
366
366
|
|
|
367
|
-
export {
|
|
367
|
+
export { authScopeSchema as c, exchangeResultSchema as d, exchangeSchema as e, participantActivitySchema as f, participantPrincipalSchema as g, participantSessionSchema as h, principalSchema as i, sessionSchema as j, knownRelayEventSchema as k, memberSummarySchema as m, participantActivityQuerySchema as p, relayEventSchema as r, sessionMember as s };
|
|
368
|
+
export type { ExchangeInput as E, MemberSummary as M, ParticipantActivity as P, RelayEvent as R, Session as S, ParticipantPrincipal as a, ParticipantSession as b };
|
|
@@ -18,6 +18,7 @@ declare const participantEntitlementsSchema: z.ZodObject<{
|
|
|
18
18
|
fulfillment: z.ZodObject<{
|
|
19
19
|
kind: z.ZodString;
|
|
20
20
|
}, z.core.$loose>;
|
|
21
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
22
|
}, z.core.$loose>;
|
|
22
23
|
earnedTier: z.ZodString;
|
|
23
24
|
tier: z.ZodString;
|
|
@@ -45,6 +46,7 @@ declare const participantEntitlementsSchema: z.ZodObject<{
|
|
|
45
46
|
fulfillment: z.ZodObject<{
|
|
46
47
|
kind: z.ZodString;
|
|
47
48
|
}, z.core.$loose>;
|
|
49
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
50
|
}, z.core.$loose>;
|
|
49
51
|
earnedTier: z.ZodString;
|
|
50
52
|
tier: z.ZodString;
|
|
@@ -79,6 +81,7 @@ declare const participantEntitlementsSchema: z.ZodObject<{
|
|
|
79
81
|
fulfillment: z.ZodObject<{
|
|
80
82
|
kind: z.ZodString;
|
|
81
83
|
}, z.core.$loose>;
|
|
84
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
82
85
|
}, z.core.$loose>;
|
|
83
86
|
earnedTier: z.ZodString;
|
|
84
87
|
tier: z.ZodString;
|
|
@@ -101,6 +104,7 @@ declare const participantEntitlementsSchema: z.ZodObject<{
|
|
|
101
104
|
fulfillment: z.ZodObject<{
|
|
102
105
|
kind: z.ZodString;
|
|
103
106
|
}, z.core.$loose>;
|
|
107
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
108
|
}, z.core.$loose>;
|
|
105
109
|
earnedTier: z.ZodString;
|
|
106
110
|
tier: z.ZodString;
|
|
@@ -122,6 +126,7 @@ declare const participantEntitlementsSchema: z.ZodObject<{
|
|
|
122
126
|
fulfillment: z.ZodObject<{
|
|
123
127
|
kind: z.ZodString;
|
|
124
128
|
}, z.core.$loose>;
|
|
129
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
125
130
|
}, z.core.$loose>;
|
|
126
131
|
earnedTier: z.ZodString;
|
|
127
132
|
tier: z.ZodString;
|
|
@@ -148,6 +153,7 @@ declare const participantEntitlementsSchema: z.ZodObject<{
|
|
|
148
153
|
[x: string]: unknown;
|
|
149
154
|
kind: string;
|
|
150
155
|
};
|
|
156
|
+
key?: string | null | undefined;
|
|
151
157
|
};
|
|
152
158
|
earnedTier: string;
|
|
153
159
|
tier: string;
|
|
@@ -174,6 +180,7 @@ declare const participantEntitlementsSchema: z.ZodObject<{
|
|
|
174
180
|
[x: string]: unknown;
|
|
175
181
|
kind: string;
|
|
176
182
|
};
|
|
183
|
+
key?: string | null | undefined;
|
|
177
184
|
};
|
|
178
185
|
earnedTier: string;
|
|
179
186
|
tier: string;
|
|
@@ -214,6 +221,7 @@ declare const participantDeliverySchema: z.ZodUnion<readonly [z.ZodDiscriminated
|
|
|
214
221
|
fulfillment: z.ZodObject<{
|
|
215
222
|
kind: z.ZodString;
|
|
216
223
|
}, z.core.$loose>;
|
|
224
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
217
225
|
}, z.core.$loose>;
|
|
218
226
|
earnedTier: z.ZodString;
|
|
219
227
|
tier: z.ZodString;
|
|
@@ -241,6 +249,7 @@ declare const participantDeliverySchema: z.ZodUnion<readonly [z.ZodDiscriminated
|
|
|
241
249
|
fulfillment: z.ZodObject<{
|
|
242
250
|
kind: z.ZodString;
|
|
243
251
|
}, z.core.$loose>;
|
|
252
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
244
253
|
}, z.core.$loose>;
|
|
245
254
|
earnedTier: z.ZodString;
|
|
246
255
|
tier: z.ZodString;
|
|
@@ -275,6 +284,7 @@ declare const participantDeliverySchema: z.ZodUnion<readonly [z.ZodDiscriminated
|
|
|
275
284
|
fulfillment: z.ZodObject<{
|
|
276
285
|
kind: z.ZodString;
|
|
277
286
|
}, z.core.$loose>;
|
|
287
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
278
288
|
}, z.core.$loose>;
|
|
279
289
|
earnedTier: z.ZodString;
|
|
280
290
|
tier: z.ZodString;
|
|
@@ -297,6 +307,7 @@ declare const participantDeliverySchema: z.ZodUnion<readonly [z.ZodDiscriminated
|
|
|
297
307
|
fulfillment: z.ZodObject<{
|
|
298
308
|
kind: z.ZodString;
|
|
299
309
|
}, z.core.$loose>;
|
|
310
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
300
311
|
}, z.core.$loose>;
|
|
301
312
|
earnedTier: z.ZodString;
|
|
302
313
|
tier: z.ZodString;
|
|
@@ -318,6 +329,7 @@ declare const participantDeliverySchema: z.ZodUnion<readonly [z.ZodDiscriminated
|
|
|
318
329
|
fulfillment: z.ZodObject<{
|
|
319
330
|
kind: z.ZodString;
|
|
320
331
|
}, z.core.$loose>;
|
|
332
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
321
333
|
}, z.core.$loose>;
|
|
322
334
|
earnedTier: z.ZodString;
|
|
323
335
|
tier: z.ZodString;
|
|
@@ -344,6 +356,7 @@ declare const participantDeliverySchema: z.ZodUnion<readonly [z.ZodDiscriminated
|
|
|
344
356
|
[x: string]: unknown;
|
|
345
357
|
kind: string;
|
|
346
358
|
};
|
|
359
|
+
key?: string | null | undefined;
|
|
347
360
|
};
|
|
348
361
|
earnedTier: string;
|
|
349
362
|
tier: string;
|
|
@@ -370,6 +383,7 @@ declare const participantDeliverySchema: z.ZodUnion<readonly [z.ZodDiscriminated
|
|
|
370
383
|
[x: string]: unknown;
|
|
371
384
|
kind: string;
|
|
372
385
|
};
|
|
386
|
+
key?: string | null | undefined;
|
|
373
387
|
};
|
|
374
388
|
earnedTier: string;
|
|
375
389
|
tier: string;
|
|
@@ -455,6 +469,7 @@ declare const participantDeliveriesSchema: z.ZodObject<{
|
|
|
455
469
|
fulfillment: z.ZodObject<{
|
|
456
470
|
kind: z.ZodString;
|
|
457
471
|
}, z.core.$loose>;
|
|
472
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
458
473
|
}, z.core.$loose>;
|
|
459
474
|
earnedTier: z.ZodString;
|
|
460
475
|
tier: z.ZodString;
|
|
@@ -482,6 +497,7 @@ declare const participantDeliveriesSchema: z.ZodObject<{
|
|
|
482
497
|
fulfillment: z.ZodObject<{
|
|
483
498
|
kind: z.ZodString;
|
|
484
499
|
}, z.core.$loose>;
|
|
500
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
485
501
|
}, z.core.$loose>;
|
|
486
502
|
earnedTier: z.ZodString;
|
|
487
503
|
tier: z.ZodString;
|
|
@@ -516,6 +532,7 @@ declare const participantDeliveriesSchema: z.ZodObject<{
|
|
|
516
532
|
fulfillment: z.ZodObject<{
|
|
517
533
|
kind: z.ZodString;
|
|
518
534
|
}, z.core.$loose>;
|
|
535
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
519
536
|
}, z.core.$loose>;
|
|
520
537
|
earnedTier: z.ZodString;
|
|
521
538
|
tier: z.ZodString;
|
|
@@ -538,6 +555,7 @@ declare const participantDeliveriesSchema: z.ZodObject<{
|
|
|
538
555
|
fulfillment: z.ZodObject<{
|
|
539
556
|
kind: z.ZodString;
|
|
540
557
|
}, z.core.$loose>;
|
|
558
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
541
559
|
}, z.core.$loose>;
|
|
542
560
|
earnedTier: z.ZodString;
|
|
543
561
|
tier: z.ZodString;
|
|
@@ -559,6 +577,7 @@ declare const participantDeliveriesSchema: z.ZodObject<{
|
|
|
559
577
|
fulfillment: z.ZodObject<{
|
|
560
578
|
kind: z.ZodString;
|
|
561
579
|
}, z.core.$loose>;
|
|
580
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
562
581
|
}, z.core.$loose>;
|
|
563
582
|
earnedTier: z.ZodString;
|
|
564
583
|
tier: z.ZodString;
|
|
@@ -585,6 +604,7 @@ declare const participantDeliveriesSchema: z.ZodObject<{
|
|
|
585
604
|
[x: string]: unknown;
|
|
586
605
|
kind: string;
|
|
587
606
|
};
|
|
607
|
+
key?: string | null | undefined;
|
|
588
608
|
};
|
|
589
609
|
earnedTier: string;
|
|
590
610
|
tier: string;
|
|
@@ -611,6 +631,7 @@ declare const participantDeliveriesSchema: z.ZodObject<{
|
|
|
611
631
|
[x: string]: unknown;
|
|
612
632
|
kind: string;
|
|
613
633
|
};
|
|
634
|
+
key?: string | null | undefined;
|
|
614
635
|
};
|
|
615
636
|
earnedTier: string;
|
|
616
637
|
tier: string;
|
|
@@ -665,4 +686,5 @@ declare const participantDeliveriesSchema: z.ZodObject<{
|
|
|
665
686
|
}, z.core.$strip>;
|
|
666
687
|
type ParticipantDelivery = z.infer<typeof participantDeliverySchema>;
|
|
667
688
|
|
|
668
|
-
export {
|
|
689
|
+
export { participantDeliverySchema as a, participantEntitlementsSchema as b, participantDeliveriesSchema as p };
|
|
690
|
+
export type { ParticipantDelivery as P };
|
package/dist/portal-proxy.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import './
|
|
1
|
+
import { ParticipantExchangeAccountResult, ParticipantExchangeResult, IdentityIntegrationKey } from './internal.js';
|
|
2
|
+
import { MemberImportVouchedAccount } from './server/index.js';
|
|
3
|
+
import { RequestError } from './index.js';
|
|
4
|
+
import './tracker-data-CUopgomU.js';
|
|
4
5
|
import 'zod';
|
|
6
|
+
import './wallet-CJTULM0Q.js';
|
|
5
7
|
|
|
6
8
|
/**
|
|
7
9
|
* Server-only proxy: browser cookies stay on the participant origin.
|
|
@@ -135,4 +137,5 @@ declare function signedInMember(request: Request, env: HostedAppEnv, options: {
|
|
|
135
137
|
fetch?: typeof fetch;
|
|
136
138
|
}): Promise<string | null>;
|
|
137
139
|
|
|
138
|
-
export {
|
|
140
|
+
export { ParticipantExchangeError, createParticipantBackend, exchangeParticipant, handleHostedApp, hostedAppRequest, inspectIntegrationKey, isParticipantExchangeError, proxyParticipant, signedInMember };
|
|
141
|
+
export type { HostedAppEnv };
|
package/dist/portal-proxy.js
CHANGED
|
@@ -3,29 +3,29 @@ import {
|
|
|
3
3
|
participantExchangeAccountsSchema,
|
|
4
4
|
participantExchangeResultSchema,
|
|
5
5
|
secureOrLoopbackOrigin
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-25WA4XYZ.js";
|
|
7
7
|
import {
|
|
8
8
|
isParticipantRoute
|
|
9
9
|
} from "./chunk-LZXDYSUH.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-UKUIE2ND.js";
|
|
11
|
+
import "./chunk-HICAGUT5.js";
|
|
12
|
+
import "./chunk-BJ2W5ZVQ.js";
|
|
13
13
|
import "./chunk-MWMCQLCG.js";
|
|
14
14
|
import {
|
|
15
15
|
clientIdentity,
|
|
16
16
|
retryAfter
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-FHOKCBTJ.js";
|
|
18
|
+
import "./chunk-SELJYCYY.js";
|
|
19
19
|
import {
|
|
20
20
|
participantPrincipalSchema,
|
|
21
21
|
sessionMember
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-2GVGZ7AN.js";
|
|
23
|
+
import "./chunk-XD6EUA27.js";
|
|
24
|
+
import "./chunk-4VDRNYUG.js";
|
|
25
25
|
import {
|
|
26
26
|
RequestError,
|
|
27
27
|
isRequestError
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-VNEJH4NT.js";
|
|
29
29
|
|
|
30
30
|
// src/portal-proxy.ts
|
|
31
31
|
import * as z from "zod";
|
|
@@ -302,13 +302,9 @@ function onlyCookie(header, name) {
|
|
|
302
302
|
return values.length === 1 ? values[0].slice(name.length + 1) : null;
|
|
303
303
|
}
|
|
304
304
|
function oauthReturnBinding(header) {
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
return value === null ? null : `${name}=${value}`;
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
return null;
|
|
305
|
+
const name = "__Host-relay_auth_return";
|
|
306
|
+
const value = onlyCookie(header, name);
|
|
307
|
+
return value === null ? null : `${name}=${value}`;
|
|
312
308
|
}
|
|
313
309
|
function hostedAppRequest(request, env) {
|
|
314
310
|
if (!env.DOMINO_PREVIEW_ORIGIN) {
|
|
@@ -363,6 +359,7 @@ async function signedInMember(request, env, options) {
|
|
|
363
359
|
return null;
|
|
364
360
|
}
|
|
365
361
|
const session = signedInSessionSchema.safeParse(
|
|
362
|
+
// A session that isn't JSON fails the schema and reads as signed out.
|
|
366
363
|
await response.json().catch(() => void 0)
|
|
367
364
|
);
|
|
368
365
|
return session.success ? sessionMember(session.data) : null;
|