@domino-sdk/relay 1.19.0 → 1.21.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-IE4QOQUI.js → chunk-5ZRDK4KQ.js} +116 -94
- package/dist/{chunk-K2Q5JHME.js → chunk-7YRXDG7R.js} +9 -2
- package/dist/{chunk-SG5IUOMX.js → chunk-H4FL5WA5.js} +66 -4
- package/dist/{chunk-ANE7DHSG.js → chunk-NHHM5ASX.js} +1 -1
- package/dist/{chunk-UIHPWC4C.js → chunk-USVER53M.js} +2 -0
- package/dist/{chunk-RKARJARI.js → chunk-WQT4H2PI.js} +1 -1
- package/dist/{chunk-QEWAM3OB.js → chunk-YVBWCT4S.js} +35 -3
- package/dist/{client-93pUw04R.d.ts → client-DSlycgar.d.ts} +62 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/internal.d.ts +1 -1
- 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 +21 -1
- package/dist/schema.js +11 -3
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +119 -9
- 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-bLac-fNk.d.ts → transport-DUc8QwDl.d.ts} +230 -4
- package/package.json +1 -1
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 TestMemberWallet, bl as TestMemberWalletLinkInput, bm as TestMemberWalletUnlinkInput, bn as WEBHOOK_MAX_BYTES, bo as WalletBalanceChains, bp as WebhookDeleteInput, bq as WebhookEndpointState, br as WebhookEvent, bs as accessHistoryQuerySchema, bt as accessSchema, bu as accountProfileSchema, bv as appMigrationNameSchema, bw as appRoutingSchema, bx as appScheduleListSchema, by as appScheduleNameSchema, bz as appSchedulePathSchema, bA as appScheduleRunSchema, bB as appScheduleSchema, bC as appScheduleStateSchema, bD as appSchedulesSchema, bE as appSecretDeclarationSchema, bF as appSecretDeclarationsSchema, bG as appSecretInputSchema, bH as appSecretListSchema, bI as appSecretNameSchema, bJ as appSecretSchema, bK as appSecretValueSchema, bL as appStorageCellSchema, bM as appStorageKeysSchema, bN as appStorageKindSchema, bO as appStorageListSchema, bP as appStorageRowsSchema, bQ as appStorageSchema, bR as appStorageTablesSchema, bS as appStorageValueSchema, bT as assetPathSchema, bU as auditPageSchema, bV as auditQuerySchema, bW as auditRecordSchema, bX as balanceCheckSchema, bY as buildArtifactsSchema, bZ as buildIdentitySchema, b_ as buildPhaseSchema, b$ as buildSnapshotSchema, c0 as buildStatusSchema, c1 as commitSchema, c2 as compareAppMigrations, c3 as completionRevocationSchema, c4 as completionRevocationShortfallSchema, c5 as completionRevokeSchema, c as containsReferralIntegrationReward, c6 as createManagementClient, c7 as createRepositorySchema, c8 as developmentPreflightSchema, c9 as deviceApproveSchema, ca as deviceRedeemSchema, cb as deviceStartSchema, cc as environmentSchema, cd as grantRecordSchema, ce as grantSchema, cf as hostedAppSchema, cg as hostedAppSecretsSchema, ch as hostedBuildSchema, ci as hostedDeploymentKeySchema, cj as hostedKeyPermissions, ck as hostedKeySchema, cl as hostedKeySecretSchema, cm as hostedManagementBindings, cn as hostedManagementClient, i as identityIntegrationInputSchema, a as identityIntegrationSchema, d as identityKindClaimSchema, co as identityLinkRelinkInputSchema, cp as identityLinkSelectorSchema, cq as ingestTrackerScopeSchema, cr as inventoryItemActionSchema, cs as inventoryItemPageSchema, ct as inventoryItemRenameSchema, cu as inventoryItemStateSchema, cv as inventorySchema, cw as inventoryStockCorrectionSchema, e as isIntegrationParticipantPath, cx as isManagementError, f as isParticipantRoute, cy as issuedTokenSchema, cz as leaderboardSettlementRejectionSchema, cA as leaderboardSettlementReviewPageSchema, cB as leaderboardSettlementReviewQuerySchema, cC as leaderboardSettlementReviewSchema, cD as leaderboardSettlementReviewSummarySchema, cE as managedAttemptPageSchema, cF as managedAttemptQuerySchema, cG as managedAttemptSchema, cH as managedEntitlementPageSchema, cI as managedEntitlementQuerySchema, cJ as managedEntitlementSchema, cK as managedMemberIdentitySchema, cL as managedMemberPageSchema, cM as managedMemberQuerySchema, cN as managedOAuthAccountSchema, cO as managedQuestEnrollmentPageSchema, cP as managedQuestEnrollmentSchema, cQ as managedReleasePageSchema, cR as managedReleaseQuerySchema, cS as managedResourceSchema, cT as managedStockItemSchema, cU as managedTelegramAccountSchema, cV as managedWalletSchema, cW as managementErrorSchema, cX as managementResponseSchemas, cY as managementResponses, cZ as memberAccountSchema, c_ as memberDetailSchema, c$ as memberIdentityChangeInputSchema, d0 as memberIdentityLinkPageSchema, d1 as memberIdentityLinkSchema, d2 as memberLookupSchema, d3 as memberOAuthUnlinkInputSchema, d4 as memberSchema, d5 as memberTelegramUnlinkInputSchema, d6 as memberWalletSignInInputSchema, d7 as memberWalletUnlinkInputSchema, d8 as metricsSchema, d9 as nextScheduleRun, da as oauthIdentitySelectorSchema, db as operationInputSchema, dc as operationSchema, dd as operatorUserSchema, de as pageSchema, p as parseImageExtraction, g as parseImageResult, h as participantExchangeSchema, j as participantRoutePattern, k as participantRoutes, df as participantSignInInputSchema, dg as participantSignInSchema, dh as permissionSchema, di as personSchema, dj as projectDeletionInputSchema, dk as projectDeletionSchema, dl as projectInputSchema, dm as projectMetricsSchema, dn as projectSchema, dp as projectSetupSchema, dq as projectTransferInputSchema, dr as projectTransferSchema, ds as projectUpdateInputSchema, dt as querySchema, q as questConfiguration, du as questEnrollmentStateSchema, dv as questEnrollmentWithdrawalInputSchema, dw as questLifecycleInputSchema, dx as questLifecycleSchema, dy as readinessSchema, dz as repositorySchema, dA as resourceArchiveInputSchema, dB as resourceLifecycleInputSchema, dC as resourceLifecycleKindSchema, dD as resourceLifecyclePaths, dE as resourceLifecycleResultSchema, dF as rolePermissions, dG as roleSchema, dH as scheduledInvocationSchema, s as sequenceCursorSchema, l as sourceDataSchema, n as sourceRoles, dI as stageRequestSchema, dJ as stagedDeploymentContentSchema, dK as stagedDeploymentKey, dL as stagedDeploymentLimits, dM as stagedDeploymentSchema, dN as stagingAccessInputSchema, dO as stagingAccessModeSchema, dP as stagingAccessSchema, dQ as stagingLinkSchema, dR as stagingPathSchema, dS as starterIdSchema, dT as starterTemplates, dU as stockAdditionSchema, dV as stockInputSchema, dW as teamSchema, dX as telegramBotIdSchema, dY as testMemberActionSchema, dZ as testMemberAdvanceSchema, d_ as testMemberCreateSchema, d$ as testMemberHistoryQuerySchema, e0 as testMemberHistorySchema, e1 as testMemberResetResultSchema, e2 as testMemberResetSchema, e3 as testMemberSchema, e4 as testMemberWalletLinkSchema, e5 as testMemberWalletSchema, e6 as testMemberWalletUnlinkSchema, e7 as tokenInputSchema, e8 as tokenSchema, e9 as tokenScopeInputSchema, v as validateQuestShape, ea as verifiedPassSchema, eb as verifyScheduledRequest, ec as verifyWebhook, ed as walletBalanceChainsSchema, ee as walletIdentitySelectorSchema, ef as webhookControlInputSchema, eg as webhookDeleteInputSchema, eh as webhookDeliveryPageSchema, ei as webhookDeliverySchema, ej as webhookEndpointSchema, ek as webhookEndpointStateSchema, el as webhookEventSchema, em as webhookInputSchema, en as webhookQuerySchema, eo as webhookSecretSchema, ep as webhookStatePageSchema, eq as webhookStateQuerySchema, er as webhookUpdateSchema } from '../transport-DUc8QwDl.js';
|
|
10
10
|
export { A as AttemptCapture, C as CapturedFact, a as attemptCaptureSchema, c as capturedFactSchema } from '../attempt-captures-ByzZyggX.js';
|
|
11
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-NHHM5ASX.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-WQT4H2PI.js";
|
|
139
139
|
import "../chunk-YXAK2637.js";
|
|
140
140
|
import {
|
|
141
141
|
CompletionSourceKind,
|
|
@@ -152,6 +152,7 @@ import {
|
|
|
152
152
|
contentPerformanceQuerySchema,
|
|
153
153
|
contentQualificationPageSchema,
|
|
154
154
|
contentQualificationQuerySchema,
|
|
155
|
+
cosmosAddressSchema,
|
|
155
156
|
cosmosNetworkSchema,
|
|
156
157
|
counterHistoryQuerySchema,
|
|
157
158
|
counterHistorySchema,
|
|
@@ -162,6 +163,7 @@ import {
|
|
|
162
163
|
entitlementCorrectionSchema,
|
|
163
164
|
entitlementSchema,
|
|
164
165
|
eventSchema,
|
|
166
|
+
evmAddressSchema,
|
|
165
167
|
evmChainIdSchema,
|
|
166
168
|
groupMemberPageSchema,
|
|
167
169
|
groupMemberSchema,
|
|
@@ -189,6 +191,7 @@ import {
|
|
|
189
191
|
removeGroupMemberSchema,
|
|
190
192
|
responseSchema,
|
|
191
193
|
snapshotSchema,
|
|
194
|
+
solanaAddressSchema,
|
|
192
195
|
solanaMainnet,
|
|
193
196
|
staffDecisionSchema,
|
|
194
197
|
stockItemSchema,
|
|
@@ -214,6 +217,7 @@ import {
|
|
|
214
217
|
trackerTriggerOutcomeQuerySchema,
|
|
215
218
|
updateGroupSchema,
|
|
216
219
|
walletBalanceSchema,
|
|
220
|
+
walletChainSchema,
|
|
217
221
|
walletSignInNetworksSchema,
|
|
218
222
|
walletUnlinkInputSchema,
|
|
219
223
|
whereSchemaIssue
|
|
@@ -340,6 +344,12 @@ var managedQuestEnrollmentPageSchema = z4.object({
|
|
|
340
344
|
|
|
341
345
|
// src/server/test-members.ts
|
|
342
346
|
import { z as z5 } from "zod";
|
|
347
|
+
var testMemberWalletSchema = z5.object({
|
|
348
|
+
chain: walletChainSchema,
|
|
349
|
+
/** CAIP-2 network, Cosmos only. */
|
|
350
|
+
network: cosmosNetworkSchema.nullable(),
|
|
351
|
+
address: z5.string()
|
|
352
|
+
});
|
|
343
353
|
var testMemberSchema = z5.object({
|
|
344
354
|
id: identifier,
|
|
345
355
|
name: z5.string(),
|
|
@@ -347,7 +357,9 @@ var testMemberSchema = z5.object({
|
|
|
347
357
|
/** Current project-calendar date (YYYY-MM-DD), computed by the server. */
|
|
348
358
|
today: z5.iso.date().optional(),
|
|
349
359
|
/** Number of calendar days advanced; absent means zero for older servers. */
|
|
350
|
-
offsetDays: z5.number().int().min(0).optional()
|
|
360
|
+
offsetDays: z5.number().int().min(0).optional(),
|
|
361
|
+
/** Linked wallet addresses, by chain then newest first; absent from older servers. */
|
|
362
|
+
wallets: z5.array(testMemberWalletSchema).optional()
|
|
351
363
|
});
|
|
352
364
|
var testMemberCreateSchema = z5.object({
|
|
353
365
|
actionId: identifier,
|
|
@@ -365,6 +377,29 @@ var testMemberResetResultSchema = z5.object({
|
|
|
365
377
|
member: identifier,
|
|
366
378
|
deleted: z5.literal(true)
|
|
367
379
|
});
|
|
380
|
+
var testMemberWalletLinkSchema = z5.discriminatedUnion("chain", [
|
|
381
|
+
z5.object({
|
|
382
|
+
actionId: identifier,
|
|
383
|
+
chain: z5.literal("solana"),
|
|
384
|
+
address: solanaAddressSchema
|
|
385
|
+
}).strict(),
|
|
386
|
+
z5.object({
|
|
387
|
+
actionId: identifier,
|
|
388
|
+
chain: z5.literal("eip155"),
|
|
389
|
+
address: evmAddressSchema
|
|
390
|
+
}).strict(),
|
|
391
|
+
z5.object({
|
|
392
|
+
actionId: identifier,
|
|
393
|
+
chain: z5.literal("cosmos"),
|
|
394
|
+
network: cosmosNetworkSchema,
|
|
395
|
+
address: cosmosAddressSchema
|
|
396
|
+
}).strict()
|
|
397
|
+
]);
|
|
398
|
+
var testMemberWalletUnlinkSchema = z5.object({
|
|
399
|
+
actionId: identifier,
|
|
400
|
+
chain: walletChainSchema,
|
|
401
|
+
address: z5.string().min(1).max(100)
|
|
402
|
+
}).strict();
|
|
368
403
|
var testMemberHistoryQuerySchema = z5.object({
|
|
369
404
|
/** Inclusive lower bound on credited activity time, in epoch milliseconds. */
|
|
370
405
|
since: z5.coerce.number().int().nonnegative().safe().optional()
|
|
@@ -1573,12 +1608,27 @@ var managedOAuthAccountSchema = z13.discriminatedUnion("status", [
|
|
|
1573
1608
|
}),
|
|
1574
1609
|
managedOAuthAccountBaseSchema.extend({ status: z13.literal("disconnected") })
|
|
1575
1610
|
]);
|
|
1611
|
+
var managedTelegramAccountBaseSchema = managedOAuthAccountBaseSchema.extend({
|
|
1612
|
+
provider: z13.literal("telegram")
|
|
1613
|
+
});
|
|
1614
|
+
var managedTelegramAccountSchema = z13.discriminatedUnion("status", [
|
|
1615
|
+
managedTelegramAccountBaseSchema.extend({
|
|
1616
|
+
status: z13.literal("connected"),
|
|
1617
|
+
/** The numeric Telegram user ID. */
|
|
1618
|
+
subject: z13.string().min(1),
|
|
1619
|
+
linkedAt: z13.number()
|
|
1620
|
+
}),
|
|
1621
|
+
managedTelegramAccountBaseSchema.extend({
|
|
1622
|
+
status: z13.literal("disconnected")
|
|
1623
|
+
})
|
|
1624
|
+
]);
|
|
1576
1625
|
var memberOAuthUnlinkInputSchema = z13.object({
|
|
1577
1626
|
provider: z13.enum(["x", "discord"]),
|
|
1578
1627
|
subject: z13.string().min(1).max(4096),
|
|
1579
1628
|
revision: z13.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER - 1),
|
|
1580
1629
|
reason: z13.string().trim().min(1).max(500)
|
|
1581
1630
|
}).strict();
|
|
1631
|
+
var memberTelegramUnlinkInputSchema = memberOAuthUnlinkInputSchema.omit({ provider: true }).strict();
|
|
1582
1632
|
var managedWalletSchema = linkedWalletSchema.extend({
|
|
1583
1633
|
status: z13.enum(["linked", "unlinked"]),
|
|
1584
1634
|
unlinkedAt: z13.number().int().nullable(),
|
|
@@ -1622,6 +1672,7 @@ var memberWalletSignInInputSchema = walletUnlinkInputSchema.extend({
|
|
|
1622
1672
|
enabled: z13.boolean(),
|
|
1623
1673
|
reason: z13.string().trim().min(1).max(500)
|
|
1624
1674
|
}).strict();
|
|
1675
|
+
var telegramBotIdSchema = z13.string().regex(/^[1-9][0-9]{0,19}$/, "Enter the bot's numeric ID, such as 123456789");
|
|
1625
1676
|
var participantSignInSchema = z13.object({
|
|
1626
1677
|
providers: z13.array(
|
|
1627
1678
|
z13.object({ provider: authProviderSchema, configured: z13.boolean() })
|
|
@@ -1631,11 +1682,21 @@ var participantSignInSchema = z13.object({
|
|
|
1631
1682
|
wallets: walletSignInNetworksSchema,
|
|
1632
1683
|
/** Why participants cannot sign in to this project, or null. */
|
|
1633
1684
|
issue: z13.string().nullable(),
|
|
1685
|
+
/**
|
|
1686
|
+
* Telegram, outside `providers` in SDK 1.x: whether Domino configured Telegram Login, and the
|
|
1687
|
+
* bot whose Mini App participants sign in from, or null when Mini App sign-in is off. Absent
|
|
1688
|
+
* from Relay versions without Telegram.
|
|
1689
|
+
*/
|
|
1690
|
+
telegram: z13.object({
|
|
1691
|
+
login: z13.boolean(),
|
|
1692
|
+
miniAppBotId: telegramBotIdSchema.nullable()
|
|
1693
|
+
}).optional(),
|
|
1634
1694
|
updatedAt: z13.number().nullable(),
|
|
1635
1695
|
updatedBy: z13.string().nullable()
|
|
1636
1696
|
});
|
|
1637
1697
|
var participantSignInInputSchema = z13.object({
|
|
1638
|
-
wallets: walletSignInNetworksSchema
|
|
1698
|
+
wallets: walletSignInNetworksSchema,
|
|
1699
|
+
telegram: z13.object({ miniAppBotId: telegramBotIdSchema.nullable() }).strict().optional()
|
|
1639
1700
|
}).strict();
|
|
1640
1701
|
var completionRevocationShortfallSchema = z13.object({
|
|
1641
1702
|
completion: identifier,
|
|
@@ -3090,7 +3151,10 @@ function managementClient(options) {
|
|
|
3090
3151
|
{},
|
|
3091
3152
|
call
|
|
3092
3153
|
),
|
|
3093
|
-
/**
|
|
3154
|
+
/**
|
|
3155
|
+
* Console sessions with publish permission, in test only. Reset deletes the member and frees
|
|
3156
|
+
* its wallet addresses.
|
|
3157
|
+
*/
|
|
3094
3158
|
testMembers: {
|
|
3095
3159
|
create: (input, call) => post(
|
|
3096
3160
|
"/test-members",
|
|
@@ -3117,6 +3181,23 @@ function managementClient(options) {
|
|
|
3117
3181
|
testMemberAdvanceSchema.parse(withActionId(input)),
|
|
3118
3182
|
call
|
|
3119
3183
|
),
|
|
3184
|
+
/**
|
|
3185
|
+
* Gives the test member a wallet address with no signature; quest code reads it like a
|
|
3186
|
+
* member's linked wallet. Answers the test member with its wallets.
|
|
3187
|
+
*/
|
|
3188
|
+
linkWallet: (member, input, call) => post(
|
|
3189
|
+
`/test-members/${identifier.parse(member)}/wallets`,
|
|
3190
|
+
testMemberSchema,
|
|
3191
|
+
testMemberWalletLinkSchema.parse(withActionId(input)),
|
|
3192
|
+
call
|
|
3193
|
+
),
|
|
3194
|
+
/** Removes an address from the test member's wallets; an unknown address changes nothing. */
|
|
3195
|
+
unlinkWallet: (member, input, call) => post(
|
|
3196
|
+
`/test-members/${identifier.parse(member)}/wallets/unlink`,
|
|
3197
|
+
testMemberSchema,
|
|
3198
|
+
testMemberWalletUnlinkSchema.parse(withActionId(input)),
|
|
3199
|
+
call
|
|
3200
|
+
),
|
|
3120
3201
|
reset: (member, input, call) => post(
|
|
3121
3202
|
`/test-members/${identifier.parse(member)}/reset`,
|
|
3122
3203
|
testMemberResetResultSchema,
|
|
@@ -3196,6 +3277,22 @@ function managementClient(options) {
|
|
|
3196
3277
|
memberOAuthUnlinkInputSchema.parse(input),
|
|
3197
3278
|
call
|
|
3198
3279
|
),
|
|
3280
|
+
/** The member's Telegram account selection; requires read permission. */
|
|
3281
|
+
telegramAccount: (member, call) => get(
|
|
3282
|
+
`/members/${encodeURIComponent(member)}/telegram-account`,
|
|
3283
|
+
managedTelegramAccountSchema,
|
|
3284
|
+
call
|
|
3285
|
+
),
|
|
3286
|
+
/**
|
|
3287
|
+
* Unlinks the member's reviewed Telegram account across this organization and environment,
|
|
3288
|
+
* as `unlinkOAuthAccount` does for X and Discord; requires `review` permission.
|
|
3289
|
+
*/
|
|
3290
|
+
unlinkTelegramAccount: (member, input, call) => post(
|
|
3291
|
+
`/members/${encodeURIComponent(member)}/telegram-account/unlink`,
|
|
3292
|
+
managedTelegramAccountSchema,
|
|
3293
|
+
memberTelegramUnlinkInputSchema.parse(input),
|
|
3294
|
+
call
|
|
3295
|
+
),
|
|
3199
3296
|
/** Unlinks a member's wallet from the project with a reason; requires `review` permission. The address stays bound to the member. */
|
|
3200
3297
|
unlinkWallet: (member, input, call) => post(
|
|
3201
3298
|
`/members/${encodeURIComponent(member)}/wallets/unlink`,
|
|
@@ -3489,7 +3586,10 @@ function managementClient(options) {
|
|
|
3489
3586
|
},
|
|
3490
3587
|
/** How participants sign in to this project and environment. */
|
|
3491
3588
|
participantSignIn: (call) => get("/participant-sign-in", participantSignInSchema, call),
|
|
3492
|
-
/**
|
|
3589
|
+
/**
|
|
3590
|
+
* Sets the wallet networks participants can sign in with, and the bot for Telegram Mini App
|
|
3591
|
+
* sign-in; requires `publish` permission.
|
|
3592
|
+
*/
|
|
3493
3593
|
configureParticipantSignIn: (input, call) => request(
|
|
3494
3594
|
"/participant-sign-in",
|
|
3495
3595
|
participantSignInSchema,
|
|
@@ -3707,6 +3807,9 @@ var managementResponseSchemas = lazyResponseReaders({
|
|
|
3707
3807
|
get managedOAuthAccountSchema() {
|
|
3708
3808
|
return knownResponse(managedOAuthAccountSchema);
|
|
3709
3809
|
},
|
|
3810
|
+
get managedTelegramAccountSchema() {
|
|
3811
|
+
return knownResponse(managedTelegramAccountSchema);
|
|
3812
|
+
},
|
|
3710
3813
|
get managedPointHistoryPageSchema() {
|
|
3711
3814
|
return knownResponse(managedPointHistoryPageSchema);
|
|
3712
3815
|
},
|
|
@@ -3973,6 +4076,7 @@ var managementResponses = {
|
|
|
3973
4076
|
managedMemberIdentitySchema: responseSchema(managedMemberIdentitySchema),
|
|
3974
4077
|
managedMemberPageSchema: responseSchema(managedMemberPageSchema),
|
|
3975
4078
|
managedOAuthAccountSchema: responseSchema(managedOAuthAccountSchema),
|
|
4079
|
+
managedTelegramAccountSchema: responseSchema(managedTelegramAccountSchema),
|
|
3976
4080
|
managedPointHistoryPageSchema: responseSchema(managedPointHistoryPageSchema),
|
|
3977
4081
|
managedPointLedgerSchema: responseSchema(managedPointLedgerSchema),
|
|
3978
4082
|
managedProfileSchema: responseSchema(managedProfileSchema),
|
|
@@ -4172,6 +4276,7 @@ export {
|
|
|
4172
4276
|
managedReleaseQuerySchema,
|
|
4173
4277
|
managedResourceSchema,
|
|
4174
4278
|
managedStockItemSchema,
|
|
4279
|
+
managedTelegramAccountSchema,
|
|
4175
4280
|
managedWalletSchema,
|
|
4176
4281
|
managementErrorSchema,
|
|
4177
4282
|
managementResponseSchemas,
|
|
@@ -4186,6 +4291,7 @@ export {
|
|
|
4186
4291
|
memberLookupSchema,
|
|
4187
4292
|
memberOAuthUnlinkInputSchema,
|
|
4188
4293
|
memberSchema,
|
|
4294
|
+
memberTelegramUnlinkInputSchema,
|
|
4189
4295
|
memberWalletSignInInputSchema,
|
|
4190
4296
|
memberWalletUnlinkInputSchema,
|
|
4191
4297
|
metricsSchema,
|
|
@@ -4253,6 +4359,7 @@ export {
|
|
|
4253
4359
|
stockAdditionSchema,
|
|
4254
4360
|
stockInputSchema,
|
|
4255
4361
|
teamSchema,
|
|
4362
|
+
telegramBotIdSchema,
|
|
4256
4363
|
testMemberActionSchema,
|
|
4257
4364
|
testMemberAdvanceSchema,
|
|
4258
4365
|
testMemberCreateSchema,
|
|
@@ -4261,6 +4368,9 @@ export {
|
|
|
4261
4368
|
testMemberResetResultSchema,
|
|
4262
4369
|
testMemberResetSchema,
|
|
4263
4370
|
testMemberSchema,
|
|
4371
|
+
testMemberWalletLinkSchema,
|
|
4372
|
+
testMemberWalletSchema,
|
|
4373
|
+
testMemberWalletUnlinkSchema,
|
|
4264
4374
|
tokenInputSchema,
|
|
4265
4375
|
tokenSchema,
|
|
4266
4376
|
tokenScopeInputSchema,
|
|
@@ -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 };
|