@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
|
@@ -3,7 +3,7 @@ import { j as QuestView, k as ResponseSchema, a as PageQuery, c as QuestEnrollme
|
|
|
3
3
|
import { M as MissingPrerequisite, V as ValueEvidence } from './submission-input-BEJ9qENg.js';
|
|
4
4
|
import { a as RequestError, b as RequestErrorDetails, c as RequestErrorKind, e as createRelayAction, O as OptionalActionId } from './action-DBzILFx9.js';
|
|
5
5
|
import { f as QuizEvidence, A as Attempt, M as MemberProgress, a as AttemptStatus, h as TrackerSkipCode, cg as submitSchema, be as contentPerformanceQuerySchema } from './schema-Br3c1GOu.js';
|
|
6
|
-
import { b as ParticipantSession,
|
|
6
|
+
import { b as ParticipantSession, f as exchangeSchema, R as RelayEvent, P as ParticipantActivity } from './telegram-DALZ7GdF.js';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
import { a as AuthProvider } from './accounts-5ciAkCMP.js';
|
|
9
9
|
import { F as profileUpdateSchema, c as ProfileCompletionQuery } from './profiles-D29SS12z.js';
|
|
@@ -3392,6 +3392,10 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
3392
3392
|
email: boolean;
|
|
3393
3393
|
wallets: ("solana" | "eip155" | "cosmos")[];
|
|
3394
3394
|
demo: boolean;
|
|
3395
|
+
telegram?: {
|
|
3396
|
+
login: boolean;
|
|
3397
|
+
miniApp: boolean;
|
|
3398
|
+
} | undefined;
|
|
3395
3399
|
}>;
|
|
3396
3400
|
start: (provider: AuthProvider, mode: "sign-in" | "connect", requestOptions?: RelayRequestOptions) => Promise<{
|
|
3397
3401
|
url: string;
|
|
@@ -3477,6 +3481,63 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
3477
3481
|
environment: "test" | "live";
|
|
3478
3482
|
}>;
|
|
3479
3483
|
};
|
|
3484
|
+
/**
|
|
3485
|
+
* Telegram sign-in and the member's Telegram account. Telegram is not an `AuthProvider` in
|
|
3486
|
+
* SDK 1.x, so `accounts()`, `start()` and `disconnect()` leave it out and these take its place.
|
|
3487
|
+
*/
|
|
3488
|
+
telegram: {
|
|
3489
|
+
/**
|
|
3490
|
+
* Leaves for Telegram Login when the platform configured it (`providers().telegram.login`):
|
|
3491
|
+
* `"sign-in"` signs in, or signs up; `"connect"` links Telegram to the signed-in member.
|
|
3492
|
+
*/
|
|
3493
|
+
start: (mode: "sign-in" | "connect", requestOptions?: RelayRequestOptions) => Promise<{
|
|
3494
|
+
url: string;
|
|
3495
|
+
}>;
|
|
3496
|
+
/** The member's Telegram account. */
|
|
3497
|
+
account: (requestOptions?: RelayRequestOptions) => Promise<{
|
|
3498
|
+
configured: boolean;
|
|
3499
|
+
status: "disconnected" | "connected" | "reconnect";
|
|
3500
|
+
subject: string | null;
|
|
3501
|
+
revision: number;
|
|
3502
|
+
provider: "telegram";
|
|
3503
|
+
}>;
|
|
3504
|
+
/** Unlinks the member's Telegram account, as `disconnect()` does for the other providers. */
|
|
3505
|
+
disconnect: (requestOptions?: RelayRequestOptions) => Promise<{
|
|
3506
|
+
ok: boolean;
|
|
3507
|
+
}>;
|
|
3508
|
+
/**
|
|
3509
|
+
* Sign-in inside a Telegram Mini App, where the project enabled it in Console
|
|
3510
|
+
* (`providers().telegram.miniApp`). Pass the Mini App's signed launch data,
|
|
3511
|
+
* `telegramMiniAppInitData()`. Relay checks Telegram's signature for the project's bot and
|
|
3512
|
+
* accepts launch data at most five minutes old, once.
|
|
3513
|
+
*/
|
|
3514
|
+
miniApp: {
|
|
3515
|
+
/** Signs in, or signs up, as the Telegram user who opened the Mini App. */
|
|
3516
|
+
signIn: (initData: string, requestOptions?: RelayRequestOptions) => Promise<{
|
|
3517
|
+
id: string;
|
|
3518
|
+
principal: {
|
|
3519
|
+
kind: "member";
|
|
3520
|
+
member: string;
|
|
3521
|
+
} | {
|
|
3522
|
+
kind: "staff";
|
|
3523
|
+
subject: string;
|
|
3524
|
+
} | {
|
|
3525
|
+
kind: "operator";
|
|
3526
|
+
subject: string;
|
|
3527
|
+
} | {
|
|
3528
|
+
kind: string;
|
|
3529
|
+
};
|
|
3530
|
+
expiresAt: number;
|
|
3531
|
+
organization: string;
|
|
3532
|
+
project: string;
|
|
3533
|
+
environment: "test" | "live";
|
|
3534
|
+
}>;
|
|
3535
|
+
/** Links the Telegram user who opened the Mini App to the signed-in member. */
|
|
3536
|
+
connect: (initData: string, requestOptions?: RelayRequestOptions) => Promise<{
|
|
3537
|
+
ok: boolean;
|
|
3538
|
+
}>;
|
|
3539
|
+
};
|
|
3540
|
+
};
|
|
3480
3541
|
/** The member's connected sign-in accounts, one per provider. */
|
|
3481
3542
|
accounts: (requestOptions?: RelayRequestOptions) => Promise<{
|
|
3482
3543
|
provider: "discord" | "google" | "apple" | "x";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export { B as Badge, M as ManagedBadge, a as MemberBadge, b as MemberBadges, O as Offer, c as OfferDefinition, d as OfferPrice, R as RedeemOfferInput, e as Redemption } from './offers-CPqiF3dZ.js';
|
|
2
2
|
export { R as RelayAction, a as RequestError, b as RequestErrorDetails, c as RequestErrorKind, d as RequestRecovery, e as createRelayAction, i as isRequestError } from './action-DBzILFx9.js';
|
|
3
|
-
export { C as ClaimSubmission, 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 SubmissionDraft, m as SubmissionStatus, n as SubmissionStore, V as ValueSubmission, o as createRelayClient, p as isRelayError } from './client-
|
|
3
|
+
export { C as ClaimSubmission, 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 SubmissionDraft, m as SubmissionStatus, n as SubmissionStore, V as ValueSubmission, o as createRelayClient, p as isRelayError } from './client-DSlycgar.js';
|
|
4
4
|
export { A as Attempt, a as AttemptStatus, E as Entitlement, b as EvaluatorProgress, K as KnownAttemptStatus, c as KnownTrackerSkipCode, M as MemberProgress, Q as QuestBudgetView, d as QuestPresentation, e as QuestProfile, f as QuizEvidence, R as Reward, S as SubmissionEvidence, g as SubmitInput, T as TieredRewardReference, h as TrackerSkipCode } from './schema-Br3c1GOu.js';
|
|
5
5
|
export { f as formatUnits, p as parseUnits } from './units-CwgsPB_r.js';
|
|
6
6
|
export { A as AccountConnection, a as AuthProvider } from './accounts-5ciAkCMP.js';
|
|
7
|
-
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 './
|
|
7
|
+
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, s as sessionMember } from './telegram-DALZ7GdF.js';
|
|
8
8
|
export { P as Page, a as PageQuery, Q as QuestClaimInput, b as QuestEnrollment, c as QuestEnrollmentInput, d as QuestInteraction, e as QuestOutcome, f as QuestOutcomePage, g as QuestOutcomeQuery, h as QuestOutcomeState, i as QuestRewardView, j as QuestView, R as ResponseResult, U as UnsupportedResponse } from './pages-1h1387a3.js';
|
|
9
9
|
export { A as AvailabilityWindow, C as CampaignDefinition, a as CampaignEnrollment, b as CampaignEnrollmentInput, c as CampaignView, d as CampaignWithdrawalInput, K as KnownPointEntryKind, L as LeaderboardDefinition, e as LeaderboardPage, f as LeaderboardPlacement, g as LeaderboardQuery, M as MemberCampaignEnrollmentInput, h as MemberCampaignWithdrawalInput, P as PointBalance, i as PointBalances, j as PointEntry, k as PointEntryKind, l as PointHistoryPage, m as PointHistoryQuery, n as PointLedgerReference, o as ProjectGroup, p as ProjectGroupReference, R as ReferralDefinition } from './groups-jLLG7MML.js';
|
|
10
10
|
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-BBSdMf0R.js';
|
package/dist/index.js
CHANGED
|
@@ -5,18 +5,18 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
QuestUpdatedError,
|
|
7
7
|
createRelayClient
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-H4FL5WA5.js";
|
|
9
9
|
import {
|
|
10
10
|
createRelayAction
|
|
11
11
|
} from "./chunk-T47OFHHX.js";
|
|
12
12
|
import {
|
|
13
13
|
QuestOutcomeState
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5ZRDK4KQ.js";
|
|
15
15
|
import {
|
|
16
16
|
PointEntryKind
|
|
17
17
|
} from "./chunk-XSLRNFIY.js";
|
|
18
18
|
import "./chunk-5P5PTZ3T.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-WQT4H2PI.js";
|
|
20
20
|
import {
|
|
21
21
|
sessionMember
|
|
22
22
|
} from "./chunk-YXAK2637.js";
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as IdentityKindClaim, M as ManagementTransportOptions, P as ParticipantRoute, R as REFERRAL_INTEGRATION_REWARD_ERROR, c as containsReferralIntegrationReward, i as identityIntegrationInputSchema, a as identityIntegrationSchema, b as identityIntegrationSecretSchema, d as identityKindClaimSchema, e as isIntegrationParticipantPath, f as isParticipantRoute, m as managementTransport, p as parseImageExtraction, g as parseImageResult, h as participantExchangeSchema, j as participantRoutePattern, k as participantRoutes, q as questConfiguration, s as sequenceCursorSchema, l as sourceDataSchema, n as sourceRoles, v as validateQuestShape } from './transport-
|
|
1
|
+
export { I as IdentityKindClaim, M as ManagementTransportOptions, P as ParticipantRoute, R as REFERRAL_INTEGRATION_REWARD_ERROR, c as containsReferralIntegrationReward, i as identityIntegrationInputSchema, a as identityIntegrationSchema, b as identityIntegrationSecretSchema, d as identityKindClaimSchema, e as isIntegrationParticipantPath, f as isParticipantRoute, m as managementTransport, p as parseImageExtraction, g as parseImageResult, h as participantExchangeSchema, j as participantRoutePattern, k as participantRoutes, q as questConfiguration, s as sequenceCursorSchema, l as sourceDataSchema, n as sourceRoles, v as validateQuestShape } from './transport-DUc8QwDl.js';
|
|
2
2
|
export { E as Extracted } from './images-BPiPqVKn.js';
|
|
3
3
|
import { c as RequestErrorKind } from './action-DBzILFx9.js';
|
|
4
4
|
export { i as TrackerDataBudget, s as schemaCheckedReader, t as trackerDataBatchSteps, j as trackerDataIssue, k as trackerDataIssues, l as trackerDataPathTypes, m as trackerDataRecordSteps, w as whereSchemaIssue } from './schema-Br3c1GOu.js';
|
package/dist/internal.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
participantExchangeSchema,
|
|
10
10
|
questConfiguration,
|
|
11
11
|
sequenceCursorSchema
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NHHM5ASX.js";
|
|
13
13
|
import {
|
|
14
14
|
parseImageExtraction,
|
|
15
15
|
parseImageResult
|
|
@@ -25,14 +25,14 @@ import {
|
|
|
25
25
|
isParticipantRoute,
|
|
26
26
|
participantRoutePattern,
|
|
27
27
|
participantRoutes
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-USVER53M.js";
|
|
29
29
|
import {
|
|
30
30
|
MANAGEMENT_TIMEOUT,
|
|
31
31
|
lifetime,
|
|
32
32
|
retryAfter,
|
|
33
33
|
retrying
|
|
34
34
|
} from "./chunk-5P5PTZ3T.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-WQT4H2PI.js";
|
|
36
36
|
import "./chunk-YXAK2637.js";
|
|
37
37
|
import {
|
|
38
38
|
schemaCheckedReader,
|
package/dist/portal-proxy.js
CHANGED
package/dist/react/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { B as Badge, b as MemberBadges, O as Offer, e as Redemption } from '../offers-CPqiF3dZ.js';
|
|
2
|
-
import { b as ParticipantSession, R as RelayEvent, P as ParticipantActivity, M as MemberSummary } from '../
|
|
3
|
-
|
|
2
|
+
import { b as ParticipantSession, R as RelayEvent, P as ParticipantActivity, M as MemberSummary } from '../telegram-DALZ7GdF.js';
|
|
3
|
+
export { T as TelegramAccountConnection, c as TelegramSignInMethods } from '../telegram-DALZ7GdF.js';
|
|
4
|
+
import { g as RelayError, R as RelayClient, S as SubmissionDraft } from '../client-DSlycgar.js';
|
|
4
5
|
import { P as Page, y as collectionViewSchema, j as QuestView, g as QuestOutcomeQuery, e as QuestOutcome } from '../pages-1h1387a3.js';
|
|
5
6
|
import * as react from 'react';
|
|
6
7
|
import { ReactNode } from 'react';
|
|
@@ -8,8 +9,8 @@ import { J as JSONType } from '../util.d-w9f9t3ua.js';
|
|
|
8
9
|
import { z } from 'zod';
|
|
9
10
|
import { E as Entitlement, a as AttemptStatus, T as TieredRewardReference } from '../schema-Br3c1GOu.js';
|
|
10
11
|
import { a as AuthProvider, A as AccountConnection } from '../accounts-5ciAkCMP.js';
|
|
11
|
-
import { c as SignInMethods, C as CosmosChains, d as SignInOption, f as SignInUnavailable, g as SignInWallet, D as DiscoveredWallet } from '../
|
|
12
|
-
export { a as EmailSignInOption, O as OAuthSignInOption, b as SignInIcon, W as WalletSignInOption } from '../
|
|
12
|
+
import { c as SignInMethods, C as CosmosChains, d as SignInOption, f as SignInUnavailable, T as TelegramSignInOption, g as SignInWallet, D as DiscoveredWallet } from '../telegram-browser-CGB01TaB.js';
|
|
13
|
+
export { a as EmailSignInOption, O as OAuthSignInOption, b as SignInIcon, W as WalletSignInOption, t as telegramMiniAppInitData } from '../telegram-browser-CGB01TaB.js';
|
|
13
14
|
import { f as WalletSigner, d as WalletSignInNetwork, L as LinkedWallet } from '../wallet-CDyo-U4n.js';
|
|
14
15
|
import { f as LeaderboardPlacement, b7 as referralSummarySchema, e as LeaderboardPage, i as PointBalances, j as PointEntry, n as PointLedgerReference } from '../groups-jLLG7MML.js';
|
|
15
16
|
import { f as ProfileUpdate, e as ProfileSummary, a as ProfileCompletion, d as ProfileReferral } from '../profiles-D29SS12z.js';
|
|
@@ -1371,6 +1372,13 @@ declare function useSignIn(): {
|
|
|
1371
1372
|
withProvider: (provider: OAuthProvider) => Promise<void>;
|
|
1372
1373
|
/** Signs in, or signs up, with a wallet; the wallet asks the participant to sign a message. */
|
|
1373
1374
|
withWallet: (signer: WalletSigner) => Promise<void>;
|
|
1375
|
+
/** Leaves for Telegram Login, where the platform configured it. */
|
|
1376
|
+
withTelegram: () => Promise<void>;
|
|
1377
|
+
/**
|
|
1378
|
+
* Signs in, or signs up, inside a Telegram Mini App the project enabled, with its launch data
|
|
1379
|
+
* (`telegramMiniAppInitData()`).
|
|
1380
|
+
*/
|
|
1381
|
+
withTelegramMiniApp: (initData: string) => Promise<void>;
|
|
1374
1382
|
};
|
|
1375
1383
|
/**
|
|
1376
1384
|
* Signs the participant out: `mutate()`, which never rejects, or `mutateAsync()`, which rejects
|
|
@@ -1406,6 +1414,8 @@ declare function useSignInOptions(input?: {
|
|
|
1406
1414
|
}): {
|
|
1407
1415
|
options: SignInOption[] | null;
|
|
1408
1416
|
unavailable: SignInUnavailable[];
|
|
1417
|
+
/** Telegram Login, to render beside `options`; null when the platform did not configure it. */
|
|
1418
|
+
telegram: TelegramSignInOption | null;
|
|
1409
1419
|
/** Why the project's methods could not be read; the options are then email alone. */
|
|
1410
1420
|
methodsError: RelayError | null;
|
|
1411
1421
|
/** True while a sign-in action runs. */
|
|
@@ -1500,6 +1510,79 @@ declare function useAccounts(): {
|
|
|
1500
1510
|
error: RelayError | null;
|
|
1501
1511
|
refresh(): Promise<void>;
|
|
1502
1512
|
};
|
|
1513
|
+
/**
|
|
1514
|
+
* The signed-in participant's Telegram account in `data`. Telegram is not one of `useAccounts()`'s
|
|
1515
|
+
* providers in SDK 1.x, so it has this hook of its own, with the same behavior: `connect()` leaves
|
|
1516
|
+
* for Telegram Login, `connectMiniApp(initData)` links the user who opened a Telegram Mini App,
|
|
1517
|
+
* and a failure lands in `actionError`.
|
|
1518
|
+
*/
|
|
1519
|
+
declare function useTelegramAccount(): {
|
|
1520
|
+
connect: () => Promise<boolean>;
|
|
1521
|
+
connectMiniApp: (initData: string) => Promise<boolean>;
|
|
1522
|
+
disconnect: () => Promise<boolean>;
|
|
1523
|
+
isPending: boolean;
|
|
1524
|
+
actionError: RelayError | null;
|
|
1525
|
+
resetAction: () => void;
|
|
1526
|
+
retry: () => Promise<boolean>;
|
|
1527
|
+
settle: () => boolean;
|
|
1528
|
+
/** True when the account can be used to verify quests right now. */
|
|
1529
|
+
isConnected: boolean;
|
|
1530
|
+
status: "loading";
|
|
1531
|
+
data: undefined;
|
|
1532
|
+
error: null;
|
|
1533
|
+
refresh(): Promise<void>;
|
|
1534
|
+
} | {
|
|
1535
|
+
connect: () => Promise<boolean>;
|
|
1536
|
+
connectMiniApp: (initData: string) => Promise<boolean>;
|
|
1537
|
+
disconnect: () => Promise<boolean>;
|
|
1538
|
+
isPending: boolean;
|
|
1539
|
+
actionError: RelayError | null;
|
|
1540
|
+
resetAction: () => void;
|
|
1541
|
+
retry: () => Promise<boolean>;
|
|
1542
|
+
settle: () => boolean;
|
|
1543
|
+
/** True when the account can be used to verify quests right now. */
|
|
1544
|
+
isConnected: boolean;
|
|
1545
|
+
status: "error";
|
|
1546
|
+
data: undefined;
|
|
1547
|
+
error: RelayError;
|
|
1548
|
+
refresh(): Promise<void>;
|
|
1549
|
+
} | {
|
|
1550
|
+
connect: () => Promise<boolean>;
|
|
1551
|
+
connectMiniApp: (initData: string) => Promise<boolean>;
|
|
1552
|
+
disconnect: () => Promise<boolean>;
|
|
1553
|
+
isPending: boolean;
|
|
1554
|
+
actionError: RelayError | null;
|
|
1555
|
+
resetAction: () => void;
|
|
1556
|
+
retry: () => Promise<boolean>;
|
|
1557
|
+
settle: () => boolean;
|
|
1558
|
+
/** True when the account can be used to verify quests right now. */
|
|
1559
|
+
isConnected: boolean;
|
|
1560
|
+
status: "signed-out";
|
|
1561
|
+
data: undefined;
|
|
1562
|
+
error: null;
|
|
1563
|
+
refresh(): Promise<void>;
|
|
1564
|
+
} | {
|
|
1565
|
+
connect: () => Promise<boolean>;
|
|
1566
|
+
connectMiniApp: (initData: string) => Promise<boolean>;
|
|
1567
|
+
disconnect: () => Promise<boolean>;
|
|
1568
|
+
isPending: boolean;
|
|
1569
|
+
actionError: RelayError | null;
|
|
1570
|
+
resetAction: () => void;
|
|
1571
|
+
retry: () => Promise<boolean>;
|
|
1572
|
+
settle: () => boolean;
|
|
1573
|
+
/** True when the account can be used to verify quests right now. */
|
|
1574
|
+
isConnected: boolean;
|
|
1575
|
+
status: "ready";
|
|
1576
|
+
data: {
|
|
1577
|
+
configured: boolean;
|
|
1578
|
+
status: "disconnected" | "connected" | "reconnect";
|
|
1579
|
+
subject: string | null;
|
|
1580
|
+
revision: number;
|
|
1581
|
+
provider: "telegram";
|
|
1582
|
+
};
|
|
1583
|
+
error: RelayError | null;
|
|
1584
|
+
refresh(): Promise<void>;
|
|
1585
|
+
};
|
|
1503
1586
|
|
|
1504
1587
|
/**
|
|
1505
1588
|
* The signed-in participant's linked Solana, EVM and Cosmos wallets, in `data`.
|
|
@@ -1864,4 +1947,4 @@ declare function usePointLedgers(): Query<PointLedgerReference[]>;
|
|
|
1864
1947
|
*/
|
|
1865
1948
|
declare function useTieredRewards(): Query<TieredRewardReference[]>;
|
|
1866
1949
|
|
|
1867
|
-
export { type Collection, CosmosChains, DiscoveredWallet, type ExperienceData, type Invitation, type KnownQuestStatusCode, type KnownRoleDeliveryStatus, type MemberPagedQuery, type MemberQuery, type MemberQueryOptions, type MemberSnapshot, type Mutation, type MutationContext, type MutationOptions, type MutationStatus, type OAuthProvider, Page, type PageLoader, type PageRead, type PagedQuery, type Query, type QueryContext, type QueryKey, type QueryOptions, type QueryRead, type QuerySnapshot, type QuestInput, type QuestNotice, type QuestStatus, type QuestStatusCode, type QuestStatusText, type QuestTone, type ReferralSummary, type RelayActionResult, RelayClient, type RelayPolling, RelayProvider, type RelayQueryOptions, type RoleDelivery, type RoleDeliveryStatus, type SavedSubmission, SignInMethods, SignInOption, SignInUnavailable, SignInWallet, canRepeat, canSubmit, captureReferralCode, completionCountText, isAutomatic, isConnected, isFinished, progressOf, questGroups, questStatus, questStatusText, relayKeys, roleDeliveryLabel, roleDeliveryStatus, useAccounts, useActivity, useBadgeCatalog, useBadges, useBalances, useDeliveries, useEntitlements, useExperience, useInvalidate, useInvitation, useLeaderboard, useLeaderboardPlacement, useMe, useMemberPages, useMemberQuery, useMyProfile, useOffers, usePointHistory, usePointLedgers, useProfile, useProfileBadges, useProfileCompletions, useProfileReferral, useQuest, useQuestOutcomes, useRedeemOffer, useReferralSummary, useRelay, useRelayAction, useRelayMutation, useRelayPages, useRelayQuery, useSession, useSetQueryData, useSignIn, useSignInMethods, useSignInOptions, useSignInWallets, useSignOut, useTieredRewards, useWalletDiscovery, useWallets };
|
|
1950
|
+
export { type Collection, CosmosChains, DiscoveredWallet, type ExperienceData, type Invitation, type KnownQuestStatusCode, type KnownRoleDeliveryStatus, type MemberPagedQuery, type MemberQuery, type MemberQueryOptions, type MemberSnapshot, type Mutation, type MutationContext, type MutationOptions, type MutationStatus, type OAuthProvider, Page, type PageLoader, type PageRead, type PagedQuery, type Query, type QueryContext, type QueryKey, type QueryOptions, type QueryRead, type QuerySnapshot, type QuestInput, type QuestNotice, type QuestStatus, type QuestStatusCode, type QuestStatusText, type QuestTone, type ReferralSummary, type RelayActionResult, RelayClient, type RelayPolling, RelayProvider, type RelayQueryOptions, type RoleDelivery, type RoleDeliveryStatus, type SavedSubmission, SignInMethods, SignInOption, SignInUnavailable, SignInWallet, TelegramSignInOption, canRepeat, canSubmit, captureReferralCode, completionCountText, isAutomatic, isConnected, isFinished, progressOf, questGroups, questStatus, questStatusText, relayKeys, roleDeliveryLabel, roleDeliveryStatus, useAccounts, useActivity, useBadgeCatalog, useBadges, useBalances, useDeliveries, useEntitlements, useExperience, useInvalidate, useInvitation, useLeaderboard, useLeaderboardPlacement, useMe, useMemberPages, useMemberQuery, useMyProfile, useOffers, usePointHistory, usePointLedgers, useProfile, useProfileBadges, useProfileCompletions, useProfileReferral, useQuest, useQuestOutcomes, useRedeemOffer, useReferralSummary, useRelay, useRelayAction, useRelayMutation, useRelayPages, useRelayQuery, useSession, useSetQueryData, useSignIn, useSignInMethods, useSignInOptions, useSignInWallets, useSignOut, useTelegramAccount, useTieredRewards, useWalletDiscovery, useWallets };
|
package/dist/react/index.js
CHANGED
|
@@ -7,16 +7,17 @@ import {
|
|
|
7
7
|
discoverSignInWallets,
|
|
8
8
|
discoverSolanaWallets,
|
|
9
9
|
readSignInMethods,
|
|
10
|
-
signInOptionsFrom
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
signInOptionsFrom,
|
|
11
|
+
telegramMiniAppInitData
|
|
12
|
+
} from "../chunk-YVBWCT4S.js";
|
|
13
|
+
import "../chunk-H4FL5WA5.js";
|
|
13
14
|
import {
|
|
14
15
|
createRelayAction
|
|
15
16
|
} from "../chunk-T47OFHHX.js";
|
|
16
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-5ZRDK4KQ.js";
|
|
17
18
|
import "../chunk-XSLRNFIY.js";
|
|
18
19
|
import "../chunk-5P5PTZ3T.js";
|
|
19
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-WQT4H2PI.js";
|
|
20
21
|
import {
|
|
21
22
|
sessionMember
|
|
22
23
|
} from "../chunk-YXAK2637.js";
|
|
@@ -2418,6 +2419,20 @@ function useSignIn() {
|
|
|
2418
2419
|
}, "Couldn't start sign-in. Try again."),
|
|
2419
2420
|
[relay, run]
|
|
2420
2421
|
);
|
|
2422
|
+
const withTelegram = useCallback7(
|
|
2423
|
+
() => run(async () => {
|
|
2424
|
+
const { url } = await relay.auth.telegram.start("sign-in");
|
|
2425
|
+
window.location.assign(url);
|
|
2426
|
+
}, "Couldn't start Telegram sign-in. Try again."),
|
|
2427
|
+
[relay, run]
|
|
2428
|
+
);
|
|
2429
|
+
const withTelegramMiniApp = useCallback7(
|
|
2430
|
+
(initData) => run(async () => {
|
|
2431
|
+
await relay.auth.telegram.miniApp.signIn(initData);
|
|
2432
|
+
setChallenge(null);
|
|
2433
|
+
}, "Couldn't sign in with Telegram. Reopen the Mini App and try again."),
|
|
2434
|
+
[relay, run, setChallenge]
|
|
2435
|
+
);
|
|
2421
2436
|
const withWallet = useCallback7(
|
|
2422
2437
|
(signer) => run(async () => {
|
|
2423
2438
|
await relay.auth.wallet.signIn(signer);
|
|
@@ -2442,7 +2457,14 @@ function useSignIn() {
|
|
|
2442
2457
|
startOver,
|
|
2443
2458
|
withProvider,
|
|
2444
2459
|
/** Signs in, or signs up, with a wallet; the wallet asks the participant to sign a message. */
|
|
2445
|
-
withWallet
|
|
2460
|
+
withWallet,
|
|
2461
|
+
/** Leaves for Telegram Login, where the platform configured it. */
|
|
2462
|
+
withTelegram,
|
|
2463
|
+
/**
|
|
2464
|
+
* Signs in, or signs up, inside a Telegram Mini App the project enabled, with its launch data
|
|
2465
|
+
* (`telegramMiniAppInitData()`).
|
|
2466
|
+
*/
|
|
2467
|
+
withTelegramMiniApp
|
|
2446
2468
|
}),
|
|
2447
2469
|
[
|
|
2448
2470
|
busy,
|
|
@@ -2453,7 +2475,9 @@ function useSignIn() {
|
|
|
2453
2475
|
verifyCode,
|
|
2454
2476
|
startOver,
|
|
2455
2477
|
withProvider,
|
|
2456
|
-
withWallet
|
|
2478
|
+
withWallet,
|
|
2479
|
+
withTelegram,
|
|
2480
|
+
withTelegramMiniApp
|
|
2457
2481
|
]
|
|
2458
2482
|
);
|
|
2459
2483
|
}
|
|
@@ -2495,13 +2519,14 @@ function useSignInOptions(input = {}) {
|
|
|
2495
2519
|
sendCode,
|
|
2496
2520
|
verifyCode,
|
|
2497
2521
|
withProvider,
|
|
2498
|
-
withWallet
|
|
2522
|
+
withWallet,
|
|
2523
|
+
withTelegram
|
|
2499
2524
|
} = useSignIn();
|
|
2500
2525
|
const built = useMemo7(() => {
|
|
2501
2526
|
if (!methods) {
|
|
2502
2527
|
return null;
|
|
2503
2528
|
}
|
|
2504
|
-
if (!wallets && methods.providers.length === 0 && !methods.email) {
|
|
2529
|
+
if (!wallets && methods.providers.length === 0 && !methods.email && !methods.telegram?.login) {
|
|
2505
2530
|
return null;
|
|
2506
2531
|
}
|
|
2507
2532
|
return signInOptionsFrom(methods, wallets ?? [], {
|
|
@@ -2511,15 +2536,26 @@ function useSignInOptions(input = {}) {
|
|
|
2511
2536
|
oauth: withProvider,
|
|
2512
2537
|
sendCode,
|
|
2513
2538
|
verifyCode,
|
|
2514
|
-
wallet: withWallet
|
|
2539
|
+
wallet: withWallet,
|
|
2540
|
+
telegram: withTelegram
|
|
2515
2541
|
}
|
|
2516
2542
|
});
|
|
2517
|
-
}, [
|
|
2543
|
+
}, [
|
|
2544
|
+
methods,
|
|
2545
|
+
wallets,
|
|
2546
|
+
cosmos,
|
|
2547
|
+
withProvider,
|
|
2548
|
+
sendCode,
|
|
2549
|
+
verifyCode,
|
|
2550
|
+
withWallet,
|
|
2551
|
+
withTelegram
|
|
2552
|
+
]);
|
|
2518
2553
|
const methodsError = methods?.error ?? null;
|
|
2519
2554
|
return useMemo7(
|
|
2520
2555
|
() => ({
|
|
2521
2556
|
options: built?.options ?? null,
|
|
2522
2557
|
unavailable: built?.unavailable ?? NONE_UNAVAILABLE,
|
|
2558
|
+
telegram: built?.telegram ?? null,
|
|
2523
2559
|
methodsError,
|
|
2524
2560
|
isPending: busy,
|
|
2525
2561
|
busy,
|
|
@@ -2596,6 +2632,66 @@ function useAccounts() {
|
|
|
2596
2632
|
]
|
|
2597
2633
|
);
|
|
2598
2634
|
}
|
|
2635
|
+
function useTelegramAccount() {
|
|
2636
|
+
const relay = useRelay();
|
|
2637
|
+
const invalidate = useInvalidate();
|
|
2638
|
+
const session = useScopeSession();
|
|
2639
|
+
const query = useMemberQuery(
|
|
2640
|
+
[...relayKeys.accounts, "telegram"],
|
|
2641
|
+
(options) => relay.auth.telegram.account(options),
|
|
2642
|
+
{ refetchOnFocus: true }
|
|
2643
|
+
);
|
|
2644
|
+
const { isPending, actionError: actionError2, resetAction, run, retry, settle } = useAction();
|
|
2645
|
+
const actions = useMemo8(
|
|
2646
|
+
() => ({
|
|
2647
|
+
connect: () => run(async () => {
|
|
2648
|
+
const { url } = await relay.auth.telegram.start("connect", {
|
|
2649
|
+
session
|
|
2650
|
+
});
|
|
2651
|
+
window.location.assign(url);
|
|
2652
|
+
}),
|
|
2653
|
+
connectMiniApp: (initData) => run(async () => {
|
|
2654
|
+
await relay.auth.telegram.miniApp.connect(initData, { session });
|
|
2655
|
+
void invalidate([relayKeys.accounts, relayKeys.experience]);
|
|
2656
|
+
}),
|
|
2657
|
+
disconnect: () => run(async () => {
|
|
2658
|
+
await relay.auth.telegram.disconnect({ session });
|
|
2659
|
+
void invalidate([
|
|
2660
|
+
relayKeys.accounts,
|
|
2661
|
+
relayKeys.experience,
|
|
2662
|
+
relayKeys.profiles
|
|
2663
|
+
]);
|
|
2664
|
+
})
|
|
2665
|
+
}),
|
|
2666
|
+
[relay, invalidate, session, run]
|
|
2667
|
+
);
|
|
2668
|
+
const account = query.data;
|
|
2669
|
+
return useMemo8(
|
|
2670
|
+
() => ({
|
|
2671
|
+
...query,
|
|
2672
|
+
isPending,
|
|
2673
|
+
actionError: actionError2,
|
|
2674
|
+
resetAction,
|
|
2675
|
+
retry,
|
|
2676
|
+
settle,
|
|
2677
|
+
/** True when the account can be used to verify quests right now. */
|
|
2678
|
+
isConnected: Boolean(
|
|
2679
|
+
account?.configured && account.status === "connected"
|
|
2680
|
+
),
|
|
2681
|
+
...actions
|
|
2682
|
+
}),
|
|
2683
|
+
[
|
|
2684
|
+
query,
|
|
2685
|
+
isPending,
|
|
2686
|
+
actionError2,
|
|
2687
|
+
resetAction,
|
|
2688
|
+
retry,
|
|
2689
|
+
settle,
|
|
2690
|
+
account,
|
|
2691
|
+
actions
|
|
2692
|
+
]
|
|
2693
|
+
);
|
|
2694
|
+
}
|
|
2599
2695
|
|
|
2600
2696
|
// src/react/profiles.ts
|
|
2601
2697
|
import { useMemo as useMemo9 } from "react";
|
|
@@ -2904,6 +3000,7 @@ export {
|
|
|
2904
3000
|
relayKeys,
|
|
2905
3001
|
roleDeliveryLabel,
|
|
2906
3002
|
roleDeliveryStatus,
|
|
3003
|
+
telegramMiniAppInitData,
|
|
2907
3004
|
useAccounts,
|
|
2908
3005
|
useActivity,
|
|
2909
3006
|
useBadgeCatalog,
|
|
@@ -2943,6 +3040,7 @@ export {
|
|
|
2943
3040
|
useSignInOptions,
|
|
2944
3041
|
useSignInWallets,
|
|
2945
3042
|
useSignOut,
|
|
3043
|
+
useTelegramAccount,
|
|
2946
3044
|
useTieredRewards,
|
|
2947
3045
|
useWalletDiscovery,
|
|
2948
3046
|
useWallets
|
package/dist/schema.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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,
|
|
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
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';
|
|
@@ -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
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
rejectDeploymentSchema,
|
|
41
41
|
rollbackDeploymentSchema,
|
|
42
42
|
submitDeploymentSchema
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-7YRXDG7R.js";
|
|
44
44
|
import {
|
|
45
45
|
capabilityErrorCodes,
|
|
46
46
|
capabilityFailureSchema
|
|
@@ -110,8 +110,12 @@ import {
|
|
|
110
110
|
rewardDeliveriesSchema,
|
|
111
111
|
rewardDeliverySchema,
|
|
112
112
|
roleReconciliationSchema,
|
|
113
|
-
saveQuestDraftSchema
|
|
114
|
-
|
|
113
|
+
saveQuestDraftSchema,
|
|
114
|
+
telegramAccountConnectionSchema,
|
|
115
|
+
telegramInitDataSchema,
|
|
116
|
+
telegramMiniAppSignInSchema,
|
|
117
|
+
telegramSignInMethodsSchema
|
|
118
|
+
} from "./chunk-5ZRDK4KQ.js";
|
|
115
119
|
import {
|
|
116
120
|
AVATAR_UPLOAD_LIMIT,
|
|
117
121
|
PointEntryKind,
|
|
@@ -931,6 +935,10 @@ export {
|
|
|
931
935
|
submissionEvidenceSchema,
|
|
932
936
|
submitDeploymentSchema,
|
|
933
937
|
submitSchema,
|
|
938
|
+
telegramAccountConnectionSchema,
|
|
939
|
+
telegramInitDataSchema,
|
|
940
|
+
telegramMiniAppSignInSchema,
|
|
941
|
+
telegramSignInMethodsSchema,
|
|
934
942
|
templateSchema,
|
|
935
943
|
textEvidenceSchema,
|
|
936
944
|
textOptionsSchema,
|