@domino-sdk/relay 1.18.1 → 1.20.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/dist/browser.d.ts +3 -3
- package/dist/browser.js +6 -4
- package/dist/{chunk-UEPEKXOC.js → chunk-5TQ6452M.js} +1 -1
- package/dist/{chunk-IE4QOQUI.js → chunk-5ZRDK4KQ.js} +116 -94
- package/dist/{chunk-NBYS3NQT.js → chunk-7YRXDG7R.js} +22 -3
- package/dist/{chunk-3IX2IYMQ.js → chunk-COT7AUM7.js} +35 -3
- package/dist/{chunk-GTM3XNMQ.js → chunk-FEUMOQIM.js} +1 -1
- package/dist/{chunk-YGWB6GH3.js → chunk-OJOR6VEB.js} +66 -4
- package/dist/{chunk-UIHPWC4C.js → chunk-USVER53M.js} +2 -0
- package/dist/{client-93pUw04R.d.ts → client-DSlycgar.d.ts} +62 -1
- package/dist/{deployments-Cz-tNK7Z.d.ts → deployments-nNS4spO9.d.ts} +50 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +3 -3
- package/dist/portal-proxy.js +2 -2
- package/dist/react/index.d.ts +88 -5
- package/dist/react/index.js +109 -11
- package/dist/schema.d.ts +22 -2
- package/dist/schema.js +13 -3
- package/dist/server/index.d.ts +2 -2
- package/dist/server/index.js +59 -7
- package/dist/{participant-activity-DYdUUhw2.d.ts → telegram-DALZ7GdF.d.ts} +40 -1
- package/dist/{sign-in-options--25uHySG.d.ts → telegram-browser-CGB01TaB.d.ts} +39 -2
- package/dist/{transport-CVac_nGZ.d.ts → transport-DE2MMVjr.d.ts} +279 -4
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as AttemptStatus, h as TrackerSkipCode } from './schema-Br3c1GOu.js';
|
|
2
2
|
export { ae as AccountRole, af as AppIdentityKind, A as Attempt, ag as Bound, ah as CompletionSource, ai as CompletionSourceKind, aj as Condition, a3 as ContentBody, a5 as ContentMetricName, ak as ContentPerformanceSnapshot, al as DataLeaves, _ as Decision, E as Entitlement, am as EntitlementCorrection, an as EntitlementState, b as EvaluatorProgress, I as IdentityKind, K as KnownAttemptStatus, ao as KnownCompletionSourceKind, ap as KnownIdentityKind, c as KnownTrackerSkipCode, N as MemberIdentity, aq as MemberPage, M as MemberProgress, O as OpenIdentityKind, P as PhotoResult, ar as PickupAvailability, as as PublishedRelease, at as QuestAvailability, Q as QuestBudgetView, au as QuestDescription, d as QuestPresentation, av as QuestPresentationContent, e as QuestProfile, aw as QuestSettingsInput, ax as QuestStep, ay as QuestStepAction, f as QuizEvidence, az as ReleaseInput, aA as ReviewPage, R as Reward, a1 as RoleOf, aB as Snapshot, B as SourceRoles, S as SubmissionEvidence, g as SubmitInput, Z as TextResult, Y as TextReviewInput, a7 as TieredRewardDefinition, T as TieredRewardReference, y as Tracker, aC as TrackerAccount, aD as TrackerAttribution, aE as TrackerBound, aF as TrackerCondition, aG as TrackerContent, aH as TrackerContentQuery, z as TrackerData, aI as TrackerDataIssue, a9 as TrackerDataSchema, aJ as TrackerDefinition, aK as TrackerDefinitionResponse, aL as TrackerOutcome, aM as TrackerOutcomeQuery, aa as TrackerPage, aN as TrackerPreview, aO as TrackerPreviewInput, aP as TrackerQuery, ab as TrackerReadQuery, V as TrackerReader, aQ as TrackerRecord, u as TrackerSource, aR as TrackerSourceKind, aS as TrackerSourceResponse, aT as TrackerStatus, U as TrackerTriggerContext, a0 as TrackerTriggerMode, aU as TrackerTriggerOutcomePage, aV as TrackerTriggerOutcomeQuery, H as TrackerTriggerPolicy, aW as TrackerWhere, aX as TriggerEnrollment, aY as TriggerHistorical, aZ as TriggerSince, a_ as TypedTrackerRecord, J as Where, a2 as WhereSetting, p as WithAccountRoles, o as WithContent, W as WithRecordData, F as XContentMetric, X as XTweet, a$ as accountRoleSchema, b0 as appIdentityKindSchema, b1 as artifactSchema, b2 as attemptSchema, b3 as badgeReward, b4 as badgeRewardSchema, b5 as batchReleaseSchema, b6 as beginHandoverSchema, b7 as beneficiaryRole, b8 as completionRecordSchema, b9 as completionSourceSchema, ba as configurePickupSchema, bb as confirmHandoverSchema, bc as contentMetricNameSchema, bd as contentPerformancePageSchema, be as contentPerformanceQuerySchema, bf as contentPerformanceSnapshotSchema, bg as createStockItemSchema, bh as customContentSchema, n as customSourceSchema, bi as decisionSchema, bj as defaultTriggerMode, bk as deferPolicy, bl as entitlementCorrectionSchema, bm as entitlementRecoverySchema, bn as entitlementSchema, bo as entitlementStateSchema, bp as errorSchema, bq as evaluatorProgressSchema, br as evaluatorProtocol, bs as evaluatorProtocolSchema, bt as eventSchema, bu as evidenceSchema, bv as identityKindSchema, bw as integrationRewardSchema, bx as isAppIdentityKind, by as isKnownTrackerSource, bz as knownIdentityKinds, bA as mediaUrlSchema, bB as memberIdentitySchema, bC as memberListSchema, bD as memberPageSchema, bE as memberProgressSchema, bF as openIdentityKindSchema, bG as photoResultSchema, bH as pickupAllocationSchema, bI as pickupAvailabilitySchema, bJ as pickupCatalogSchema, bK as pickupPolicySchema, bL as pickupSelectionSchema, bM as pointsRewardSchema, bN as publishedReleaseSchema, bO as publishedTrackerSchema, bP as questAvailabilitySchema, bQ as questBudgetViewSchema, bR as questDescriptionSchema, bS as questPresentationContentSchema, bT as questPresentationRequirementSchema, bU as questPresentationSchema, bV as questProfileSchema, bW as questSettingsInputSchema, bX as questStepActionSchema, bY as questStepSchema, bZ as quizAnswersSchema, b_ as quizEvidenceSchema, b$ as releaseSchema, c0 as reservationSchema, c1 as reviewItemSchema, c2 as reviewListSchema, c3 as reviewModeSchema, c4 as reviewPageSchema, c5 as rewardBundleSchema, c6 as rewardKey, $ as rewardSchema, c7 as snapshotSchema, c8 as sourceContent, c9 as sourceIdentities, ca as staffDecisionSchema, cb as stockItemSchema, cc as stockSchema, cd as storedQuestDescriptionSchema, ce as storedReviewModeSchema, cf as submissionEvidenceSchema, cg as submitSchema, ch as templateSchema, ci as textResultSchema, cj as textReviewInputSchema, ck as tierRewardSchema, cl as tieredRewardDefinitionSchema, cm as tieredRewardReferenceSchema, cn as trackerAccountSchema, co as trackerArtifactSchema, cp as trackerAttributionSchema, cq as trackerBoundSchema, cr as trackerConditionSchema, cs as trackerContentQuerySchema, ct as trackerContentReadSchema, cu as trackerContentSchema, cv as trackerContentStageSchema, cw as trackerControlSchema, cx as trackerDataMaxBranches, cy as trackerDataMaxEntries, cz as trackerDataSchemaSchema, cA as trackerDefinitionResponseSchema, v as trackerDefinitionSchema, cB as trackerEvidenceSchema, cC as trackerIngestResultSchema, cD as trackerIngestSchema, cE as trackerOutcomePageSchema, cF as trackerOutcomeQuerySchema, cG as trackerOutcomeRetrySchema, cH as trackerOutcomeSchema, cI as trackerPageSchema, cJ as trackerPreviewInputSchema, cK as trackerPreviewLimits, cL as trackerPreviewSchema, cM as trackerQuerySchema, cN as trackerRecordAccountSchema, cO as trackerRecordInputSchema, cP as trackerRecordSchema, cQ as trackerSkipCodes, cR as trackerSourceKinds, cS as trackerSourceResponseSchema, cT as trackerSourceSchema, cU as trackerStatusSchema, cV as trackerSummarySchema, ad as trackerTriggerContextSchema, cW as trackerTriggerModeSchema, cX as trackerTriggerOutcomePageSchema, cY as trackerTriggerOutcomeQuerySchema, cZ as trackerTriggerPolicySchema, c_ as trackerTriggerRecordSchema, c$ as trackerWhereSchema, d0 as triggerAdmission, d1 as triggerEnrollmentSchema, d2 as triggerHistoricalSchema, d3 as triggerMode, a6 as triggerSchema, d4 as triggerSinceSchema, d5 as whereConditions, d6 as whereSettings, d7 as xAccountRoles, x as xContentBodySchema, d8 as xContentMetrics, D as xSearchSourceSchema, d9 as xTweetSchema } from './schema-Br3c1GOu.js';
|
|
3
3
|
export { A as AccountConnection, a as AuthProvider, g as DiscordMember, h as DiscordMessage, D as DiscordMessageData, b as DiscordMessageTextData, e as DiscordReactionData, f as DiscordReader, i as accountConnectionSchema, j as authProviderSchema, k as discordMemberInputSchema, l as discordMemberSchema, m as discordMessageDataSchema, n as discordMessageInputSchema, o as discordMessageSchema, p as discordMessageTextDataSchema, d as discordMessagesSourceSchema, q as discordReactionDataSchema, c as discordReactionsSourceSchema, r as discordResourceSourceSchema, s as discordRewardSchema } from './accounts-5ciAkCMP.js';
|
|
4
|
-
export { E as ExchangeInput, M as MemberSummary, P as ParticipantActivity, a as ParticipantPrincipal, b as ParticipantSession, R as RelayEvent, S as Session, c as authScopeSchema, e as exchangeResultSchema,
|
|
5
|
-
export { C as CalendarPeriod, D as DeploymentPreview, a as DeploymentRecord, P as ProjectCalendar,
|
|
4
|
+
export { E as ExchangeInput, M as MemberSummary, P as ParticipantActivity, a as ParticipantPrincipal, b as ParticipantSession, R as RelayEvent, S as Session, T as TelegramAccountConnection, c as TelegramSignInMethods, d as authScopeSchema, e as exchangeResultSchema, f as exchangeSchema, k as knownRelayEventSchema, m as memberSummarySchema, p as participantActivityQuerySchema, g as participantActivitySchema, h as participantPrincipalSchema, i as participantSessionSchema, j as principalSchema, r as relayEventSchema, s as sessionMember, l as sessionSchema, t as telegramAccountConnectionSchema, n as telegramInitDataSchema, o as telegramMiniAppSignInSchema, q as telegramSignInMethodsSchema } from './telegram-DALZ7GdF.js';
|
|
5
|
+
export { C as CalendarPeriod, D as DeploymentPreview, a as DeploymentRecord, b as DeploymentWarning, P as ProjectCalendar, c as ProjectCalendarInput, d as activityTypeSchema, e as activityTypes, f as calendarPeriodSchema, g as canonicalTimeZone, h as deploymentActionSchema, i as deploymentPreviewSchema, j as deploymentRecordSchema, k as deploymentRejectionSchema, l as deploymentResultSchema, m as deploymentSourceSchema, n as deploymentWarningSchema, p as projectCalendarDeclarationSchema, o as projectCalendarInputSchema, q as projectCalendarSchema, r as projectCatalogArtifactSchema, s as projectDeploymentSchema, t as promoteDeploymentSchema, u as publishDeploymentSchema, v as refuseStreakTimeZone, w as refuseWindowTimeZone, x as rejectDeploymentSchema, y as rollbackDeploymentSchema, z as submitDeploymentSchema, A as timeZoneNameSchema, B as timeZoneSchema } from './deployments-nNS4spO9.js';
|
|
6
6
|
import { k as PointEntryKind } from './groups-jLLG7MML.js';
|
|
7
7
|
export { A as AvailabilityWindow, C as CampaignDefinition, a as CampaignEnrollment, b as CampaignEnrollmentInput, c as CampaignView, d as CampaignWithdrawalInput, E as EngagementBudget, w as EngagementDefinition, x as EngagementRuleVersionPage, G as GroupMember, y as GroupMemberPage, z as GroupPage, B as GroupPageQuery, K as KnownPointEntryKind, L as LeaderboardDefinition, e as LeaderboardPage, f as LeaderboardPlacement, g as LeaderboardQuery, D as LeaderboardSettlement, F as LeaderboardSettlementPolicy, H as LeaderboardSettlementSummary, I as ManagedGroup, J as ManagedPointHistoryPage, N as ManagedPointLedger, M as MemberCampaignEnrollmentInput, h as MemberCampaignWithdrawalInput, P as PointBalance, i as PointBalances, j as PointEntry, l as PointHistoryPage, m as PointHistoryQuery, O as PointLedger, n as PointLedgerReference, o as ProjectGroup, p as ProjectGroupReference, R as ReferralDefinition, Q as addGroupMemberSchema, S as availabilityWindowSchema, T as campaignDefinitionSchema, U as campaignEnrollmentInputSchema, V as campaignEnrollmentSchema, W as campaignViewSchema, X as campaignWithdrawalInputSchema, Y as createGroupSchema, Z as createPointLedgerSchema, u as defineCampaign, v as defineGroup, _ as engagementArtifactSchema, $ as engagementBoundaryPageSchema, a0 as engagementBudgetSchema, a1 as engagementChangePreviewInputSchema, a2 as engagementChangePreviewSchema, a3 as engagementChangeSchema, a4 as engagementDefinitionSchema, a5 as engagementDeploymentEntrySchema, a6 as engagementPageQuerySchema, a7 as engagementPageSchema, a8 as engagementPublishSchema, a9 as engagementRuleSchema, aa as engagementRuleVersionPageSchema, ab as engagementScoreInputSchema, ac as engagementScoreSchema, ad as engagementSettlementSchema, ae as engagementVersionPageSchema, af as engagementVersionQuerySchema, ag as groupMemberPageSchema, ah as groupMemberSchema, ai as groupPageQuerySchema, aj as groupPageSchema, ak as leaderboardArtifactSchema, al as leaderboardAuthoringSchema, am as leaderboardDefinitionResponseSchema, q as leaderboardDefinitionSchema, an as leaderboardExclusionSchema, ao as leaderboardGroupSchema, ap as leaderboardPageSchema, aq as leaderboardPlacementSchema, ar as leaderboardPreviewSchema, as as leaderboardPrizeRewardSchema, at as leaderboardPrizeSchema, au as leaderboardQuerySchema, av as leaderboardRowSchema, aw as leaderboardSettlementApprovalSchema, ax as leaderboardSettlementPolicySchema, ay as leaderboardSettlementRowSchema, az as leaderboardSettlementSchema, aA as leaderboardSettlementStatusSchema, aB as leaderboardSettlementSummarySchema, aC as leaderboardWindowSchema, aD as managedGroupSchema, aE as managedPointHistoryPageSchema, aF as managedPointLedgerSchema, aG as memberCampaignEnrollmentInputSchema, aH as memberCampaignWithdrawalInputSchema, aI as pointBalanceSchema, aJ as pointBalancesSchema, aK as pointEntrySchema, aL as pointHistoryPageSchema, aM as pointHistoryQuerySchema, aN as pointLedgerArtifactSchema, s as pointLedgerDeclarationSchema, aO as pointLedgerPropertiesSchema, aP as pointLedgerReferenceSchema, aQ as pointLedgerSchema, aR as pointsAccountSchema, aS as pointsEntrySchema, aT as pointsMutationSchema, aU as pointsResultSchema, aV as projectGroupKey, aW as projectGroupSchema, aX as publishedLeaderboardSchema, aY as publishedReferralSchema, aZ as referralAcceptSchema, a_ as referralAccountSchema, a$ as referralArtifactSchema, t as referralAuthoringSchema, b0 as referralControlSchema, b1 as referralDefinitionSchema, b2 as referralHistorySchema, b3 as referralManagementSchema, b4 as referralQualificationSchema, b5 as referralRelationshipSchema, b6 as referralRewardResolutionSchema, b7 as referralSummarySchema, b8 as referralSuspensionSchema, b9 as removeGroupMemberSchema, ba as updateGroupSchema } from './groups-jLLG7MML.js';
|
|
8
8
|
import { k as ResponseSchema, R as ResponseResult, l as RewardDeliveryAction } from './pages-1h1387a3.js';
|
|
@@ -230,6 +230,19 @@ declare const participantResponseSchemas: {
|
|
|
230
230
|
awardedAt: number;
|
|
231
231
|
}[];
|
|
232
232
|
}, unknown>>;
|
|
233
|
+
telegramAccountConnectionSchema: zod.ZodType<{
|
|
234
|
+
configured: boolean;
|
|
235
|
+
status: "disconnected" | "connected" | "reconnect";
|
|
236
|
+
subject: string | null;
|
|
237
|
+
revision: number;
|
|
238
|
+
provider: "telegram";
|
|
239
|
+
}, unknown, zod_v4_core.$ZodTypeInternals<{
|
|
240
|
+
configured: boolean;
|
|
241
|
+
status: "disconnected" | "connected" | "reconnect";
|
|
242
|
+
subject: string | null;
|
|
243
|
+
revision: number;
|
|
244
|
+
provider: "telegram";
|
|
245
|
+
}, unknown>>;
|
|
233
246
|
accountConnectionSchema: zod.ZodType<{
|
|
234
247
|
provider: "discord" | "x" | "google" | "apple";
|
|
235
248
|
configured: boolean;
|
|
@@ -6097,6 +6110,13 @@ declare const participantResponses: {
|
|
|
6097
6110
|
awardedAt: number;
|
|
6098
6111
|
}[];
|
|
6099
6112
|
}>>;
|
|
6113
|
+
telegramAccountConnectionSchema: ResponseSchema<ResponseResult<{
|
|
6114
|
+
configured: boolean;
|
|
6115
|
+
status: "disconnected" | "connected" | "reconnect";
|
|
6116
|
+
subject: string | null;
|
|
6117
|
+
revision: number;
|
|
6118
|
+
provider: "telegram";
|
|
6119
|
+
}>>;
|
|
6100
6120
|
accountConnectionSchema: ResponseSchema<ResponseResult<{
|
|
6101
6121
|
provider: "discord" | "x" | "google" | "apple";
|
|
6102
6122
|
configured: boolean;
|
package/dist/schema.js
CHANGED
|
@@ -21,6 +21,7 @@ import {
|
|
|
21
21
|
deploymentRejectionSchema,
|
|
22
22
|
deploymentResultSchema,
|
|
23
23
|
deploymentSourceSchema,
|
|
24
|
+
deploymentWarningSchema,
|
|
24
25
|
isRetryableAutomaticOutcome,
|
|
25
26
|
leaderboardListResponseSchema,
|
|
26
27
|
memberProgressResponseSchema,
|
|
@@ -39,7 +40,7 @@ import {
|
|
|
39
40
|
rejectDeploymentSchema,
|
|
40
41
|
rollbackDeploymentSchema,
|
|
41
42
|
submitDeploymentSchema
|
|
42
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-7YRXDG7R.js";
|
|
43
44
|
import {
|
|
44
45
|
capabilityErrorCodes,
|
|
45
46
|
capabilityFailureSchema
|
|
@@ -109,8 +110,12 @@ import {
|
|
|
109
110
|
rewardDeliveriesSchema,
|
|
110
111
|
rewardDeliverySchema,
|
|
111
112
|
roleReconciliationSchema,
|
|
112
|
-
saveQuestDraftSchema
|
|
113
|
-
|
|
113
|
+
saveQuestDraftSchema,
|
|
114
|
+
telegramAccountConnectionSchema,
|
|
115
|
+
telegramInitDataSchema,
|
|
116
|
+
telegramMiniAppSignInSchema,
|
|
117
|
+
telegramSignInMethodsSchema
|
|
118
|
+
} from "./chunk-5ZRDK4KQ.js";
|
|
114
119
|
import {
|
|
115
120
|
AVATAR_UPLOAD_LIMIT,
|
|
116
121
|
PointEntryKind,
|
|
@@ -638,6 +643,7 @@ export {
|
|
|
638
643
|
deploymentRejectionSchema,
|
|
639
644
|
deploymentResultSchema,
|
|
640
645
|
deploymentSourceSchema,
|
|
646
|
+
deploymentWarningSchema,
|
|
641
647
|
discordMemberInputSchema,
|
|
642
648
|
discordMemberSchema,
|
|
643
649
|
discordMessageDataSchema,
|
|
@@ -929,6 +935,10 @@ export {
|
|
|
929
935
|
submissionEvidenceSchema,
|
|
930
936
|
submitDeploymentSchema,
|
|
931
937
|
submitSchema,
|
|
938
|
+
telegramAccountConnectionSchema,
|
|
939
|
+
telegramInitDataSchema,
|
|
940
|
+
telegramMiniAppSignInSchema,
|
|
941
|
+
telegramSignInMethodsSchema,
|
|
932
942
|
templateSchema,
|
|
933
943
|
textEvidenceSchema,
|
|
934
944
|
textOptionsSchema,
|
package/dist/server/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export { G as GroupMember, y as GroupMemberPage, z as GroupPage, B as GroupPageQ
|
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../profiles-D29SS12z.js';
|
|
8
8
|
import '../automatic-outcomes-BBSdMf0R.js';
|
|
9
|
-
export { A as APP_KV_LIMIT, o as APP_MIGRATION_FILE_BYTES, r as APP_MIGRATION_LIMIT, t as APP_MIGRATION_TOTAL_BYTES, u as APP_SCHEDULE_LIMIT, w as APP_SCHEDULE_MIN_INTERVAL, x as APP_SCHEDULE_TIMEOUT, y as APP_SECRET_LIMIT, z as APP_SQL_LIMIT, B as APP_STORAGE_PREVIEW_CHARACTERS, C as APP_STORAGE_ROW_LIMIT, D as Access, E as AccessHistoryQuery, F as AppSchedule, G as AppScheduleList, H as AppSchedules, J as AppSecret, K as AppSecretDeclaration, L as AppSecretInput, N as AppSecretList, O as AppStorage, Q as AppStorageCell, S as AppStorageKeys, T as AppStorageKind, U as AppStorageList, V as AppStorageRows, W as AppStorageTables, X as AppStorageValue, Y as AuditPage, Z as AuditQuery, _ as AuditRecord, $ as BalanceCheck, a0 as BuildArtifacts, a1 as BuildIdentity, a2 as BuildSnapshot, a3 as BuildStatus, a4 as CompletionRevocation, a5 as CompletionRevocationShortfall, a6 as CompletionRevokeInput, a7 as DEFAULT_MANAGEMENT_TIMEOUT, a8 as HostedAppSecrets, a9 as HostedBuild, aa as HostedDeploymentKey, ab as HostedKey, ac as HostedKeyPermission, ad as HostedManagementEnv, ae as IdentityLinkRelinkInput, af as InventoryItemAction, ag as InventoryItemRename, ah as InventoryItemState, ai as InventoryStockCorrection, aj as KnownPayoutSourceKind, ak as LeaderboardSettlementRejection, al as LeaderboardSettlementReview, am as ListQuery, an as ManagedAttempt, ao as ManagedAttemptPage, ap as ManagedAttemptQuery, aq as ManagedEntitlement, ar as ManagedEntitlementPage, as as ManagedEntitlementQuery, at as ManagedMemberIdentity, au as ManagedMemberPage, av as ManagedMemberQuery, aw as ManagedOAuthAccount, ax as ManagedQuestEnrollment, ay as ManagedReleasePage, az as ManagedReleaseQuery, aA as ManagedResource, aB as ManagedStockItem, aC as
|
|
9
|
+
export { A as APP_KV_LIMIT, o as APP_MIGRATION_FILE_BYTES, r as APP_MIGRATION_LIMIT, t as APP_MIGRATION_TOTAL_BYTES, u as APP_SCHEDULE_LIMIT, w as APP_SCHEDULE_MIN_INTERVAL, x as APP_SCHEDULE_TIMEOUT, y as APP_SECRET_LIMIT, z as APP_SQL_LIMIT, B as APP_STORAGE_PREVIEW_CHARACTERS, C as APP_STORAGE_ROW_LIMIT, D as Access, E as AccessHistoryQuery, F as AppSchedule, G as AppScheduleList, H as AppSchedules, J as AppSecret, K as AppSecretDeclaration, L as AppSecretInput, N as AppSecretList, O as AppStorage, Q as AppStorageCell, S as AppStorageKeys, T as AppStorageKind, U as AppStorageList, V as AppStorageRows, W as AppStorageTables, X as AppStorageValue, Y as AuditPage, Z as AuditQuery, _ as AuditRecord, $ as BalanceCheck, a0 as BuildArtifacts, a1 as BuildIdentity, a2 as BuildSnapshot, a3 as BuildStatus, a4 as CompletionRevocation, a5 as CompletionRevocationShortfall, a6 as CompletionRevokeInput, a7 as DEFAULT_MANAGEMENT_TIMEOUT, a8 as HostedAppSecrets, a9 as HostedBuild, aa as HostedDeploymentKey, ab as HostedKey, ac as HostedKeyPermission, ad as HostedManagementEnv, ae as IdentityLinkRelinkInput, af as InventoryItemAction, ag as InventoryItemRename, ah as InventoryItemState, ai as InventoryStockCorrection, aj as KnownPayoutSourceKind, ak as LeaderboardSettlementRejection, al as LeaderboardSettlementReview, am as ListQuery, an as ManagedAttempt, ao as ManagedAttemptPage, ap as ManagedAttemptQuery, aq as ManagedEntitlement, ar as ManagedEntitlementPage, as as ManagedEntitlementQuery, at as ManagedMemberIdentity, au as ManagedMemberPage, av as ManagedMemberQuery, aw as ManagedOAuthAccount, ax as ManagedQuestEnrollment, ay as ManagedReleasePage, az as ManagedReleaseQuery, aA as ManagedResource, aB as ManagedStockItem, aC as ManagedTelegramAccount, aD as ManagedWallet, aE as ManagementCallOptions, aF as ManagementClient, aG as ManagementClientOptions, aH as ManagementError, aI as ManagementErrorCode, aJ as ManagementErrorInit, aK as ManagementErrorKind, aL as ManagementPage, aM as ManagementRawInit, aN as MemberDetail, aO as MemberIdentityLink, aP as OperatorUser, aQ as ParticipantSignIn, aR as ParticipantSignInInput, aS as PayoutSourceKind, aT as Permission, aU as Person, aV as Project, aW as ProjectMetrics, aX as QuestEnrollmentState, aY as QuestEnrollmentWithdrawalInput, aZ as QuestLifecycle, a_ as QuestLifecycleInput, R as REFERRAL_INTEGRATION_REWARD_ERROR, a$ as ResourceArchiveInput, b0 as ResourceLifecycleInput, b1 as RevokedDeliveryOutcome, b2 as RevokedEntitlementOutcome, b3 as RevokedReferralOutcome, b4 as ScheduledInvocation, b5 as StagedDeployment, b6 as StagedDeploymentContent, b7 as StagingAccess, b8 as StagingAccessInput, b9 as StagingLink, ba as StarterId, bb as StarterTemplate, bc as TestMember, bd as TestMemberActionInput, be as TestMemberAdvanceInput, bf as TestMemberCreateInput, bg as TestMemberHistory, bh as TestMemberHistoryQuery, bi as TestMemberResetInput, bj as TestMemberResetResult, bk as WEBHOOK_MAX_BYTES, bl as WalletBalanceChains, bm as WebhookDeleteInput, bn as WebhookEndpointState, bo as WebhookEvent, bp as accessHistoryQuerySchema, bq as accessSchema, br as accountProfileSchema, bs as appMigrationNameSchema, bt as appRoutingSchema, bu as appScheduleListSchema, bv as appScheduleNameSchema, bw as appSchedulePathSchema, bx as appScheduleRunSchema, by as appScheduleSchema, bz as appScheduleStateSchema, bA as appSchedulesSchema, bB as appSecretDeclarationSchema, bC as appSecretDeclarationsSchema, bD as appSecretInputSchema, bE as appSecretListSchema, bF as appSecretNameSchema, bG as appSecretSchema, bH as appSecretValueSchema, bI as appStorageCellSchema, bJ as appStorageKeysSchema, bK as appStorageKindSchema, bL as appStorageListSchema, bM as appStorageRowsSchema, bN as appStorageSchema, bO as appStorageTablesSchema, bP as appStorageValueSchema, bQ as assetPathSchema, bR as auditPageSchema, bS as auditQuerySchema, bT as auditRecordSchema, bU as balanceCheckSchema, bV as buildArtifactsSchema, bW as buildIdentitySchema, bX as buildPhaseSchema, bY as buildSnapshotSchema, bZ as buildStatusSchema, b_ as commitSchema, b$ as compareAppMigrations, c0 as completionRevocationSchema, c1 as completionRevocationShortfallSchema, c2 as completionRevokeSchema, c as containsReferralIntegrationReward, c3 as createManagementClient, c4 as createRepositorySchema, c5 as developmentPreflightSchema, c6 as deviceApproveSchema, c7 as deviceRedeemSchema, c8 as deviceStartSchema, c9 as environmentSchema, ca as grantRecordSchema, cb as grantSchema, cc as hostedAppSchema, cd as hostedAppSecretsSchema, ce as hostedBuildSchema, cf as hostedDeploymentKeySchema, cg as hostedKeyPermissions, ch as hostedKeySchema, ci as hostedKeySecretSchema, cj as hostedManagementBindings, ck as hostedManagementClient, i as identityIntegrationInputSchema, a as identityIntegrationSchema, d as identityKindClaimSchema, cl as identityLinkRelinkInputSchema, cm as identityLinkSelectorSchema, cn as ingestTrackerScopeSchema, co as inventoryItemActionSchema, cp as inventoryItemPageSchema, cq as inventoryItemRenameSchema, cr as inventoryItemStateSchema, cs as inventorySchema, ct as inventoryStockCorrectionSchema, e as isIntegrationParticipantPath, cu as isManagementError, f as isParticipantRoute, cv as issuedTokenSchema, cw as leaderboardSettlementRejectionSchema, cx as leaderboardSettlementReviewPageSchema, cy as leaderboardSettlementReviewQuerySchema, cz as leaderboardSettlementReviewSchema, cA as leaderboardSettlementReviewSummarySchema, cB as managedAttemptPageSchema, cC as managedAttemptQuerySchema, cD as managedAttemptSchema, cE as managedEntitlementPageSchema, cF as managedEntitlementQuerySchema, cG as managedEntitlementSchema, cH as managedMemberIdentitySchema, cI as managedMemberPageSchema, cJ as managedMemberQuerySchema, cK as managedOAuthAccountSchema, cL as managedQuestEnrollmentPageSchema, cM as managedQuestEnrollmentSchema, cN as managedReleasePageSchema, cO as managedReleaseQuerySchema, cP as managedResourceSchema, cQ as managedStockItemSchema, cR as managedTelegramAccountSchema, cS as managedWalletSchema, cT as managementErrorSchema, cU as managementResponseSchemas, cV as managementResponses, cW as memberAccountSchema, cX as memberDetailSchema, cY as memberIdentityChangeInputSchema, cZ as memberIdentityLinkPageSchema, c_ as memberIdentityLinkSchema, c$ as memberLookupSchema, d0 as memberOAuthUnlinkInputSchema, d1 as memberSchema, d2 as memberTelegramUnlinkInputSchema, d3 as memberWalletSignInInputSchema, d4 as memberWalletUnlinkInputSchema, d5 as metricsSchema, d6 as nextScheduleRun, d7 as oauthIdentitySelectorSchema, d8 as operationInputSchema, d9 as operationSchema, da as operatorUserSchema, db as pageSchema, p as parseImageExtraction, g as parseImageResult, h as participantExchangeSchema, j as participantRoutePattern, k as participantRoutes, dc as participantSignInInputSchema, dd as participantSignInSchema, de as permissionSchema, df as personSchema, dg as projectDeletionInputSchema, dh as projectDeletionSchema, di as projectInputSchema, dj as projectMetricsSchema, dk as projectSchema, dl as projectSetupSchema, dm as projectTransferInputSchema, dn as projectTransferSchema, dp as projectUpdateInputSchema, dq as querySchema, q as questConfiguration, dr as questEnrollmentStateSchema, ds as questEnrollmentWithdrawalInputSchema, dt as questLifecycleInputSchema, du as questLifecycleSchema, dv as readinessSchema, dw as repositorySchema, dx as resourceArchiveInputSchema, dy as resourceLifecycleInputSchema, dz as resourceLifecycleKindSchema, dA as resourceLifecyclePaths, dB as resourceLifecycleResultSchema, dC as rolePermissions, dD as roleSchema, dE as scheduledInvocationSchema, s as sequenceCursorSchema, l as sourceDataSchema, n as sourceRoles, dF as stageRequestSchema, dG as stagedDeploymentContentSchema, dH as stagedDeploymentKey, dI as stagedDeploymentLimits, dJ as stagedDeploymentSchema, dK as stagingAccessInputSchema, dL as stagingAccessModeSchema, dM as stagingAccessSchema, dN as stagingLinkSchema, dO as stagingPathSchema, dP as starterIdSchema, dQ as starterTemplates, dR as stockAdditionSchema, dS as stockInputSchema, dT as teamSchema, dU as telegramBotIdSchema, dV as testMemberActionSchema, dW as testMemberAdvanceSchema, dX as testMemberCreateSchema, dY as testMemberHistoryQuerySchema, dZ as testMemberHistorySchema, d_ as testMemberResetResultSchema, d$ as testMemberResetSchema, e0 as testMemberSchema, e1 as tokenInputSchema, e2 as tokenSchema, e3 as tokenScopeInputSchema, v as validateQuestShape, e4 as verifiedPassSchema, e5 as verifyScheduledRequest, e6 as verifyWebhook, e7 as walletBalanceChainsSchema, e8 as walletIdentitySelectorSchema, e9 as webhookControlInputSchema, ea as webhookDeleteInputSchema, eb as webhookDeliveryPageSchema, ec as webhookDeliverySchema, ed as webhookEndpointSchema, ee as webhookEndpointStateSchema, ef as webhookEventSchema, eg as webhookInputSchema, eh as webhookQuerySchema, ei as webhookSecretSchema, ej as webhookStatePageSchema, ek as webhookStateQuerySchema, el as webhookUpdateSchema } from '../transport-DE2MMVjr.js';
|
|
10
10
|
export { A as AttemptCapture, C as CapturedFact, a as attemptCaptureSchema, c as capturedFactSchema } from '../attempt-captures-ByzZyggX.js';
|
|
11
|
-
export {
|
|
11
|
+
export { d as activityTypeSchema, e as activityTypes, h as deploymentActionSchema, k as deploymentRejectionSchema } from '../deployments-nNS4spO9.js';
|
|
12
12
|
export { E as Extracted } from '../images-BPiPqVKn.js';
|
package/dist/server/index.js
CHANGED
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
publishDeploymentSchema,
|
|
26
26
|
rejectDeploymentSchema,
|
|
27
27
|
submitDeploymentSchema
|
|
28
|
-
} from "../chunk-
|
|
28
|
+
} from "../chunk-7YRXDG7R.js";
|
|
29
29
|
import "../chunk-MC6V6VMG.js";
|
|
30
30
|
import {
|
|
31
31
|
DEFAULT_MANAGEMENT_TIMEOUT,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
participantExchangeSchema,
|
|
45
45
|
questConfiguration,
|
|
46
46
|
sequenceCursorSchema
|
|
47
|
-
} from "../chunk-
|
|
47
|
+
} from "../chunk-5TQ6452M.js";
|
|
48
48
|
import {
|
|
49
49
|
parseImageExtraction,
|
|
50
50
|
parseImageResult
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
isParticipantRoute,
|
|
63
63
|
participantRoutePattern,
|
|
64
64
|
participantRoutes
|
|
65
|
-
} from "../chunk-
|
|
65
|
+
} from "../chunk-USVER53M.js";
|
|
66
66
|
import {
|
|
67
67
|
withActionId
|
|
68
68
|
} from "../chunk-T47OFHHX.js";
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
rewardDeliveriesSchema,
|
|
84
84
|
rewardDeliverySchema,
|
|
85
85
|
saveQuestDraftSchema
|
|
86
|
-
} from "../chunk-
|
|
86
|
+
} from "../chunk-5ZRDK4KQ.js";
|
|
87
87
|
import {
|
|
88
88
|
badgeMutationResultSchema,
|
|
89
89
|
badgeMutationSchema,
|
|
@@ -135,7 +135,7 @@ import {
|
|
|
135
135
|
referralSuspensionSchema
|
|
136
136
|
} from "../chunk-XSLRNFIY.js";
|
|
137
137
|
import "../chunk-5P5PTZ3T.js";
|
|
138
|
-
import "../chunk-
|
|
138
|
+
import "../chunk-FEUMOQIM.js";
|
|
139
139
|
import "../chunk-YXAK2637.js";
|
|
140
140
|
import {
|
|
141
141
|
CompletionSourceKind,
|
|
@@ -1573,12 +1573,27 @@ var managedOAuthAccountSchema = z13.discriminatedUnion("status", [
|
|
|
1573
1573
|
}),
|
|
1574
1574
|
managedOAuthAccountBaseSchema.extend({ status: z13.literal("disconnected") })
|
|
1575
1575
|
]);
|
|
1576
|
+
var managedTelegramAccountBaseSchema = managedOAuthAccountBaseSchema.extend({
|
|
1577
|
+
provider: z13.literal("telegram")
|
|
1578
|
+
});
|
|
1579
|
+
var managedTelegramAccountSchema = z13.discriminatedUnion("status", [
|
|
1580
|
+
managedTelegramAccountBaseSchema.extend({
|
|
1581
|
+
status: z13.literal("connected"),
|
|
1582
|
+
/** The numeric Telegram user ID. */
|
|
1583
|
+
subject: z13.string().min(1),
|
|
1584
|
+
linkedAt: z13.number()
|
|
1585
|
+
}),
|
|
1586
|
+
managedTelegramAccountBaseSchema.extend({
|
|
1587
|
+
status: z13.literal("disconnected")
|
|
1588
|
+
})
|
|
1589
|
+
]);
|
|
1576
1590
|
var memberOAuthUnlinkInputSchema = z13.object({
|
|
1577
1591
|
provider: z13.enum(["x", "discord"]),
|
|
1578
1592
|
subject: z13.string().min(1).max(4096),
|
|
1579
1593
|
revision: z13.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER - 1),
|
|
1580
1594
|
reason: z13.string().trim().min(1).max(500)
|
|
1581
1595
|
}).strict();
|
|
1596
|
+
var memberTelegramUnlinkInputSchema = memberOAuthUnlinkInputSchema.omit({ provider: true }).strict();
|
|
1582
1597
|
var managedWalletSchema = linkedWalletSchema.extend({
|
|
1583
1598
|
status: z13.enum(["linked", "unlinked"]),
|
|
1584
1599
|
unlinkedAt: z13.number().int().nullable(),
|
|
@@ -1622,6 +1637,7 @@ var memberWalletSignInInputSchema = walletUnlinkInputSchema.extend({
|
|
|
1622
1637
|
enabled: z13.boolean(),
|
|
1623
1638
|
reason: z13.string().trim().min(1).max(500)
|
|
1624
1639
|
}).strict();
|
|
1640
|
+
var telegramBotIdSchema = z13.string().regex(/^[1-9][0-9]{0,19}$/, "Enter the bot's numeric ID, such as 123456789");
|
|
1625
1641
|
var participantSignInSchema = z13.object({
|
|
1626
1642
|
providers: z13.array(
|
|
1627
1643
|
z13.object({ provider: authProviderSchema, configured: z13.boolean() })
|
|
@@ -1631,11 +1647,21 @@ var participantSignInSchema = z13.object({
|
|
|
1631
1647
|
wallets: walletSignInNetworksSchema,
|
|
1632
1648
|
/** Why participants cannot sign in to this project, or null. */
|
|
1633
1649
|
issue: z13.string().nullable(),
|
|
1650
|
+
/**
|
|
1651
|
+
* Telegram, outside `providers` in SDK 1.x: whether Domino configured Telegram Login, and the
|
|
1652
|
+
* bot whose Mini App participants sign in from, or null when Mini App sign-in is off. Absent
|
|
1653
|
+
* from Relay versions without Telegram.
|
|
1654
|
+
*/
|
|
1655
|
+
telegram: z13.object({
|
|
1656
|
+
login: z13.boolean(),
|
|
1657
|
+
miniAppBotId: telegramBotIdSchema.nullable()
|
|
1658
|
+
}).optional(),
|
|
1634
1659
|
updatedAt: z13.number().nullable(),
|
|
1635
1660
|
updatedBy: z13.string().nullable()
|
|
1636
1661
|
});
|
|
1637
1662
|
var participantSignInInputSchema = z13.object({
|
|
1638
|
-
wallets: walletSignInNetworksSchema
|
|
1663
|
+
wallets: walletSignInNetworksSchema,
|
|
1664
|
+
telegram: z13.object({ miniAppBotId: telegramBotIdSchema.nullable() }).strict().optional()
|
|
1639
1665
|
}).strict();
|
|
1640
1666
|
var completionRevocationShortfallSchema = z13.object({
|
|
1641
1667
|
completion: identifier,
|
|
@@ -3196,6 +3222,22 @@ function managementClient(options) {
|
|
|
3196
3222
|
memberOAuthUnlinkInputSchema.parse(input),
|
|
3197
3223
|
call
|
|
3198
3224
|
),
|
|
3225
|
+
/** The member's Telegram account selection; requires read permission. */
|
|
3226
|
+
telegramAccount: (member, call) => get(
|
|
3227
|
+
`/members/${encodeURIComponent(member)}/telegram-account`,
|
|
3228
|
+
managedTelegramAccountSchema,
|
|
3229
|
+
call
|
|
3230
|
+
),
|
|
3231
|
+
/**
|
|
3232
|
+
* Unlinks the member's reviewed Telegram account across this organization and environment,
|
|
3233
|
+
* as `unlinkOAuthAccount` does for X and Discord; requires `review` permission.
|
|
3234
|
+
*/
|
|
3235
|
+
unlinkTelegramAccount: (member, input, call) => post(
|
|
3236
|
+
`/members/${encodeURIComponent(member)}/telegram-account/unlink`,
|
|
3237
|
+
managedTelegramAccountSchema,
|
|
3238
|
+
memberTelegramUnlinkInputSchema.parse(input),
|
|
3239
|
+
call
|
|
3240
|
+
),
|
|
3199
3241
|
/** Unlinks a member's wallet from the project with a reason; requires `review` permission. The address stays bound to the member. */
|
|
3200
3242
|
unlinkWallet: (member, input, call) => post(
|
|
3201
3243
|
`/members/${encodeURIComponent(member)}/wallets/unlink`,
|
|
@@ -3489,7 +3531,10 @@ function managementClient(options) {
|
|
|
3489
3531
|
},
|
|
3490
3532
|
/** How participants sign in to this project and environment. */
|
|
3491
3533
|
participantSignIn: (call) => get("/participant-sign-in", participantSignInSchema, call),
|
|
3492
|
-
/**
|
|
3534
|
+
/**
|
|
3535
|
+
* Sets the wallet networks participants can sign in with, and the bot for Telegram Mini App
|
|
3536
|
+
* sign-in; requires `publish` permission.
|
|
3537
|
+
*/
|
|
3493
3538
|
configureParticipantSignIn: (input, call) => request(
|
|
3494
3539
|
"/participant-sign-in",
|
|
3495
3540
|
participantSignInSchema,
|
|
@@ -3707,6 +3752,9 @@ var managementResponseSchemas = lazyResponseReaders({
|
|
|
3707
3752
|
get managedOAuthAccountSchema() {
|
|
3708
3753
|
return knownResponse(managedOAuthAccountSchema);
|
|
3709
3754
|
},
|
|
3755
|
+
get managedTelegramAccountSchema() {
|
|
3756
|
+
return knownResponse(managedTelegramAccountSchema);
|
|
3757
|
+
},
|
|
3710
3758
|
get managedPointHistoryPageSchema() {
|
|
3711
3759
|
return knownResponse(managedPointHistoryPageSchema);
|
|
3712
3760
|
},
|
|
@@ -3973,6 +4021,7 @@ var managementResponses = {
|
|
|
3973
4021
|
managedMemberIdentitySchema: responseSchema(managedMemberIdentitySchema),
|
|
3974
4022
|
managedMemberPageSchema: responseSchema(managedMemberPageSchema),
|
|
3975
4023
|
managedOAuthAccountSchema: responseSchema(managedOAuthAccountSchema),
|
|
4024
|
+
managedTelegramAccountSchema: responseSchema(managedTelegramAccountSchema),
|
|
3976
4025
|
managedPointHistoryPageSchema: responseSchema(managedPointHistoryPageSchema),
|
|
3977
4026
|
managedPointLedgerSchema: responseSchema(managedPointLedgerSchema),
|
|
3978
4027
|
managedProfileSchema: responseSchema(managedProfileSchema),
|
|
@@ -4172,6 +4221,7 @@ export {
|
|
|
4172
4221
|
managedReleaseQuerySchema,
|
|
4173
4222
|
managedResourceSchema,
|
|
4174
4223
|
managedStockItemSchema,
|
|
4224
|
+
managedTelegramAccountSchema,
|
|
4175
4225
|
managedWalletSchema,
|
|
4176
4226
|
managementErrorSchema,
|
|
4177
4227
|
managementResponseSchemas,
|
|
@@ -4186,6 +4236,7 @@ export {
|
|
|
4186
4236
|
memberLookupSchema,
|
|
4187
4237
|
memberOAuthUnlinkInputSchema,
|
|
4188
4238
|
memberSchema,
|
|
4239
|
+
memberTelegramUnlinkInputSchema,
|
|
4189
4240
|
memberWalletSignInInputSchema,
|
|
4190
4241
|
memberWalletUnlinkInputSchema,
|
|
4191
4242
|
metricsSchema,
|
|
@@ -4253,6 +4304,7 @@ export {
|
|
|
4253
4304
|
stockAdditionSchema,
|
|
4254
4305
|
stockInputSchema,
|
|
4255
4306
|
teamSchema,
|
|
4307
|
+
telegramBotIdSchema,
|
|
4256
4308
|
testMemberActionSchema,
|
|
4257
4309
|
testMemberAdvanceSchema,
|
|
4258
4310
|
testMemberCreateSchema,
|
|
@@ -344,4 +344,43 @@ declare const participantActivitySchema: z.ZodObject<{
|
|
|
344
344
|
type RelayEvent = z.infer<typeof relayEventSchema>;
|
|
345
345
|
type ParticipantActivity = z.infer<typeof participantActivitySchema>;
|
|
346
346
|
|
|
347
|
-
|
|
347
|
+
/**
|
|
348
|
+
* The Telegram sign-in a project offers, beside `providers` in `relay.auth.providers()`.
|
|
349
|
+
*
|
|
350
|
+
* @compat output
|
|
351
|
+
*/
|
|
352
|
+
declare const telegramSignInMethodsSchema: z.ZodObject<{
|
|
353
|
+
login: z.ZodBoolean;
|
|
354
|
+
miniApp: z.ZodBoolean;
|
|
355
|
+
}, z.core.$strip>;
|
|
356
|
+
type TelegramSignInMethods = z.infer<typeof telegramSignInMethodsSchema>;
|
|
357
|
+
/**
|
|
358
|
+
* The member's Telegram account, as `AccountConnection` describes the other providers'. `subject`
|
|
359
|
+
* is the numeric Telegram user ID; `configured` is whether Telegram Login is.
|
|
360
|
+
*
|
|
361
|
+
* @compat output
|
|
362
|
+
*/
|
|
363
|
+
declare const telegramAccountConnectionSchema: z.ZodObject<{
|
|
364
|
+
configured: z.ZodBoolean;
|
|
365
|
+
status: z.ZodEnum<{
|
|
366
|
+
disconnected: "disconnected";
|
|
367
|
+
connected: "connected";
|
|
368
|
+
reconnect: "reconnect";
|
|
369
|
+
}>;
|
|
370
|
+
subject: z.ZodNullable<z.ZodString>;
|
|
371
|
+
revision: z.ZodNumber;
|
|
372
|
+
provider: z.ZodLiteral<"telegram">;
|
|
373
|
+
}, z.core.$strip>;
|
|
374
|
+
type TelegramAccountConnection = z.infer<typeof telegramAccountConnectionSchema>;
|
|
375
|
+
/** The signed launch data a Telegram Mini App receives, `Telegram.WebApp.initData`. */
|
|
376
|
+
declare const telegramInitDataSchema: z.ZodString;
|
|
377
|
+
/** `POST /v1/auth/telegram/mini-app`: sign in, or connect Telegram to the signed-in member. */
|
|
378
|
+
declare const telegramMiniAppSignInSchema: z.ZodObject<{
|
|
379
|
+
initData: z.ZodString;
|
|
380
|
+
mode: z.ZodEnum<{
|
|
381
|
+
"sign-in": "sign-in";
|
|
382
|
+
connect: "connect";
|
|
383
|
+
}>;
|
|
384
|
+
}, z.core.$strict>;
|
|
385
|
+
|
|
386
|
+
export { type ExchangeInput as E, type MemberSummary as M, type ParticipantActivity as P, type RelayEvent as R, type Session as S, type TelegramAccountConnection as T, type ParticipantPrincipal as a, type ParticipantSession as b, type TelegramSignInMethods as c, authScopeSchema as d, exchangeResultSchema as e, exchangeSchema as f, participantActivitySchema as g, participantPrincipalSchema as h, participantSessionSchema as i, principalSchema as j, knownRelayEventSchema as k, sessionSchema as l, memberSummarySchema as m, telegramInitDataSchema as n, telegramMiniAppSignInSchema as o, participantActivityQuerySchema as p, telegramSignInMethodsSchema as q, relayEventSchema as r, sessionMember as s, telegramAccountConnectionSchema as t };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { a as AuthProvider } from './accounts-5ciAkCMP.js';
|
|
2
|
-
import { o as createRelayClient, g as RelayError } from './client-
|
|
2
|
+
import { o as createRelayClient, k as RelayRequestOptions, g as RelayError } from './client-DSlycgar.js';
|
|
3
|
+
import { c as TelegramSignInMethods } from './telegram-DALZ7GdF.js';
|
|
3
4
|
import { C as CosmosChain, a as CosmosNetwork, f as WalletSigner, d as WalletSignInNetwork } from './wallet-CDyo-U4n.js';
|
|
4
5
|
|
|
5
6
|
/** An EIP-1193 provider, such as `window.ethereum` or an EIP-6963 announcement's provider. */
|
|
@@ -107,6 +108,12 @@ type Auth = ReturnType<typeof createRelayClient>["auth"];
|
|
|
107
108
|
type SignInClient = {
|
|
108
109
|
auth: Pick<Auth, "providers" | "start" | "emailStart" | "emailVerify"> & {
|
|
109
110
|
wallet: Pick<Auth["wallet"], "signIn">;
|
|
111
|
+
/** Telegram Login; without it, `signInOptions()` offers no Telegram option. */
|
|
112
|
+
telegram?: {
|
|
113
|
+
start: (mode: "sign-in" | "connect", requestOptions?: RelayRequestOptions) => Promise<{
|
|
114
|
+
url: string;
|
|
115
|
+
}>;
|
|
116
|
+
};
|
|
110
117
|
};
|
|
111
118
|
};
|
|
112
119
|
/** The sign-in methods a project takes: the platform's OAuth providers and email, and its wallet families. */
|
|
@@ -115,6 +122,11 @@ type SignInMethods = {
|
|
|
115
122
|
email: boolean;
|
|
116
123
|
/** The wallet families this project enabled for sign-in in Console. */
|
|
117
124
|
wallets: WalletSignInNetwork[];
|
|
125
|
+
/**
|
|
126
|
+
* Telegram's sign-in, outside `providers` in SDK 1.x. Absent when Relay did not report it,
|
|
127
|
+
* which offers no Telegram sign-in.
|
|
128
|
+
*/
|
|
129
|
+
telegram?: TelegramSignInMethods;
|
|
118
130
|
/**
|
|
119
131
|
* Set when the methods could not be read, such as when the network failed: they are then email
|
|
120
132
|
* alone, and the server has the final say when the participant uses it.
|
|
@@ -159,6 +171,18 @@ type WalletSignInOption = {
|
|
|
159
171
|
/** Asks the wallet to sign a message, then signs in, or signs up. See `SignInOption` for failures. */
|
|
160
172
|
start(): Promise<void>;
|
|
161
173
|
};
|
|
174
|
+
/**
|
|
175
|
+
* Telegram Login. It is not one of `options` in SDK 1.x, whose `OAuthSignInOption` names only
|
|
176
|
+
* `AuthProvider`s: `SignInOptions.telegram` carries it, so render it beside them.
|
|
177
|
+
*/
|
|
178
|
+
type TelegramSignInOption = {
|
|
179
|
+
kind: "telegram";
|
|
180
|
+
id: "telegram";
|
|
181
|
+
label: string;
|
|
182
|
+
icon: "telegram";
|
|
183
|
+
/** Leaves the page for Telegram's consent screen. See `SignInOption` for failures. */
|
|
184
|
+
start(): Promise<void>;
|
|
185
|
+
};
|
|
162
186
|
/**
|
|
163
187
|
* One way to sign in that this project takes and this browser can use. From `useSignInOptions()`
|
|
164
188
|
* its actions never reject: a failure lands in the hook's `error`. From `signInOptions()` they
|
|
@@ -184,6 +208,11 @@ type SignInOptions = {
|
|
|
184
208
|
/** OAuth providers first, then installed wallets, then email. */
|
|
185
209
|
options: SignInOption[];
|
|
186
210
|
unavailable: SignInUnavailable[];
|
|
211
|
+
/**
|
|
212
|
+
* Telegram Login when the platform configured it, to render beside `options`. Mini App sign-in
|
|
213
|
+
* needs no button: call `relay.auth.telegram.miniApp.signIn()` inside the Mini App.
|
|
214
|
+
*/
|
|
215
|
+
telegram?: TelegramSignInOption;
|
|
187
216
|
/** Why the project's methods could not be read; the options are then email alone. */
|
|
188
217
|
methodsError?: RelayError;
|
|
189
218
|
};
|
|
@@ -199,4 +228,12 @@ declare function signInOptions(relay: SignInClient, input?: {
|
|
|
199
228
|
cosmos?: CosmosChains;
|
|
200
229
|
}): Promise<SignInOptions>;
|
|
201
230
|
|
|
202
|
-
|
|
231
|
+
/**
|
|
232
|
+
* The signed launch data of the Telegram Mini App this page runs in, or null outside one: Telegram's
|
|
233
|
+
* `Telegram.WebApp.initData` when the app loaded telegram-web-app.js, else the `tgWebAppData`
|
|
234
|
+
* launch parameter Telegram puts in the page's URL fragment. Pass it to
|
|
235
|
+
* `relay.auth.telegram.miniApp.signIn()`. Safe to call during server rendering, where it is null.
|
|
236
|
+
*/
|
|
237
|
+
declare function telegramMiniAppInitData(): string | null;
|
|
238
|
+
|
|
239
|
+
export { type CosmosChains as C, type DiscoveredWallet as D, type Eip1193Provider as E, type KeplrLike as K, type OAuthSignInOption as O, type SignInClient as S, type TelegramSignInOption as T, type WalletSignInOption as W, type EmailSignInOption as a, type SignInIcon as b, type SignInMethods as c, type SignInOption as d, type SignInOptions as e, type SignInUnavailable as f, type SignInWallet as g, type SolanaInjectedProvider as h, type StandardWallet as i, type StandardWalletAccount as j, cosmosChainList as k, cosmosSigner as l, discoverCosmosWallets as m, discoverEvmWallets as n, discoverSignInWallets as o, discoverSolanaWallets as p, evmSigner as q, solanaSigner as r, signInOptions as s, telegramMiniAppInitData as t, walletStandardSolanaSigner as w };
|