@beeperbot/sdk 0.2.0 → 0.2.2
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/README.md +5 -5
- package/dist/index.cjs +81 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +187 -26
- package/dist/index.d.ts +187 -26
- package/dist/index.js +81 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -113,7 +113,7 @@ declare function generateFilterDocumentation(): string;
|
|
|
113
113
|
*
|
|
114
114
|
* @example
|
|
115
115
|
* ```typescript
|
|
116
|
-
* import { AgentClient } from '@
|
|
116
|
+
* import { AgentClient } from '@beeperbot/sdk';
|
|
117
117
|
*
|
|
118
118
|
* const agent = new AgentClient({
|
|
119
119
|
* apiKey: process.env.BEEPER_API_KEY,
|
|
@@ -253,6 +253,12 @@ interface SimpleFilters {
|
|
|
253
253
|
tokenAddress: string;
|
|
254
254
|
chainId: number;
|
|
255
255
|
minBalance?: string;
|
|
256
|
+
} | {
|
|
257
|
+
contractAddress: string;
|
|
258
|
+
chain: string | number;
|
|
259
|
+
minBalance?: string;
|
|
260
|
+
tokenStandard?: string;
|
|
261
|
+
tokenId?: string;
|
|
256
262
|
}>;
|
|
257
263
|
hasBaseWallet?: boolean;
|
|
258
264
|
hasVerifiedWallet?: boolean;
|
|
@@ -260,7 +266,9 @@ interface SimpleFilters {
|
|
|
260
266
|
minBatteryPercentage?: number;
|
|
261
267
|
hasRechargedInLastDays?: number;
|
|
262
268
|
excludePingedToday?: boolean;
|
|
263
|
-
countries?: string
|
|
269
|
+
countries?: Array<string | {
|
|
270
|
+
code: string;
|
|
271
|
+
}>;
|
|
264
272
|
timezones?: Array<{
|
|
265
273
|
offset: number;
|
|
266
274
|
range?: number;
|
|
@@ -375,7 +383,12 @@ interface BulkIntentResult {
|
|
|
375
383
|
*/
|
|
376
384
|
declare class AgentClient {
|
|
377
385
|
private readonly http;
|
|
386
|
+
private static readonly CHAIN_ID_MAP;
|
|
378
387
|
constructor(config: AgentClientConfig);
|
|
388
|
+
/**
|
|
389
|
+
* Normalize filters for agent endpoints (accepts flexible shapes from other builders)
|
|
390
|
+
*/
|
|
391
|
+
private normalizeFilters;
|
|
379
392
|
/**
|
|
380
393
|
* Look up a user by username, FID, or wallet address
|
|
381
394
|
*
|
|
@@ -857,7 +870,7 @@ declare const DraftInputSchema: z.ZodObject<{
|
|
|
857
870
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
858
871
|
}, "strip", z.ZodTypeAny, {
|
|
859
872
|
name: string;
|
|
860
|
-
network: "base" | "ethereum" | "
|
|
873
|
+
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
861
874
|
amount: string;
|
|
862
875
|
token: "USDC" | "USDT" | "ETH" | "MATIC";
|
|
863
876
|
strategy: "equal" | "weighted" | "proportional";
|
|
@@ -866,7 +879,7 @@ declare const DraftInputSchema: z.ZodObject<{
|
|
|
866
879
|
metadata?: Record<string, unknown> | undefined;
|
|
867
880
|
}, {
|
|
868
881
|
name: string;
|
|
869
|
-
network: "base" | "ethereum" | "
|
|
882
|
+
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
870
883
|
amount: string;
|
|
871
884
|
token: "USDC" | "USDT" | "ETH" | "MATIC";
|
|
872
885
|
strategy: "equal" | "weighted" | "proportional";
|
|
@@ -892,7 +905,7 @@ declare const DraftSchema: z.ZodObject<{
|
|
|
892
905
|
status: z.ZodEnum<["draft", "quoted", "executed"]>;
|
|
893
906
|
}, "strip", z.ZodTypeAny, {
|
|
894
907
|
name: string;
|
|
895
|
-
network: "base" | "ethereum" | "
|
|
908
|
+
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
896
909
|
status: "draft" | "quoted" | "executed";
|
|
897
910
|
id: string;
|
|
898
911
|
createdAt: string;
|
|
@@ -905,7 +918,7 @@ declare const DraftSchema: z.ZodObject<{
|
|
|
905
918
|
metadata?: Record<string, unknown> | undefined;
|
|
906
919
|
}, {
|
|
907
920
|
name: string;
|
|
908
|
-
network: "base" | "ethereum" | "
|
|
921
|
+
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
909
922
|
status: "draft" | "quoted" | "executed";
|
|
910
923
|
id: string;
|
|
911
924
|
createdAt: string;
|
|
@@ -932,7 +945,7 @@ declare const DraftUpdateSchema: z.ZodObject<{
|
|
|
932
945
|
}, "strip", z.ZodTypeAny, {
|
|
933
946
|
name?: string | undefined;
|
|
934
947
|
filter?: unknown;
|
|
935
|
-
network?: "base" | "ethereum" | "
|
|
948
|
+
network?: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism" | undefined;
|
|
936
949
|
amount?: string | undefined;
|
|
937
950
|
token?: "USDC" | "USDT" | "ETH" | "MATIC" | undefined;
|
|
938
951
|
strategy?: "equal" | "weighted" | "proportional" | undefined;
|
|
@@ -941,7 +954,7 @@ declare const DraftUpdateSchema: z.ZodObject<{
|
|
|
941
954
|
}, {
|
|
942
955
|
name?: string | undefined;
|
|
943
956
|
filter?: unknown;
|
|
944
|
-
network?: "base" | "ethereum" | "
|
|
957
|
+
network?: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism" | undefined;
|
|
945
958
|
amount?: string | undefined;
|
|
946
959
|
token?: "USDC" | "USDT" | "ETH" | "MATIC" | undefined;
|
|
947
960
|
strategy?: "equal" | "weighted" | "proportional" | undefined;
|
|
@@ -953,7 +966,7 @@ declare const DraftUpdateSchema: z.ZodObject<{
|
|
|
953
966
|
*/
|
|
954
967
|
declare function validateDraftInput$1(input: unknown): z.SafeParseReturnType<{
|
|
955
968
|
name: string;
|
|
956
|
-
network: "base" | "ethereum" | "
|
|
969
|
+
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
957
970
|
amount: string;
|
|
958
971
|
token: "USDC" | "USDT" | "ETH" | "MATIC";
|
|
959
972
|
strategy: "equal" | "weighted" | "proportional";
|
|
@@ -962,7 +975,7 @@ declare function validateDraftInput$1(input: unknown): z.SafeParseReturnType<{
|
|
|
962
975
|
metadata?: Record<string, unknown> | undefined;
|
|
963
976
|
}, {
|
|
964
977
|
name: string;
|
|
965
|
-
network: "base" | "ethereum" | "
|
|
978
|
+
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
966
979
|
amount: string;
|
|
967
980
|
token: "USDC" | "USDT" | "ETH" | "MATIC";
|
|
968
981
|
strategy: "equal" | "weighted" | "proportional";
|
|
@@ -975,7 +988,7 @@ declare function validateDraftInput$1(input: unknown): z.SafeParseReturnType<{
|
|
|
975
988
|
*/
|
|
976
989
|
declare function parseDraftInput(input: unknown): {
|
|
977
990
|
name: string;
|
|
978
|
-
network: "base" | "ethereum" | "
|
|
991
|
+
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
979
992
|
amount: string;
|
|
980
993
|
token: "USDC" | "USDT" | "ETH" | "MATIC";
|
|
981
994
|
strategy: "equal" | "weighted" | "proportional";
|
|
@@ -988,7 +1001,7 @@ declare function parseDraftInput(input: unknown): {
|
|
|
988
1001
|
*/
|
|
989
1002
|
declare function validateDraft(draft: unknown): z.SafeParseReturnType<{
|
|
990
1003
|
name: string;
|
|
991
|
-
network: "base" | "ethereum" | "
|
|
1004
|
+
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
992
1005
|
status: "draft" | "quoted" | "executed";
|
|
993
1006
|
id: string;
|
|
994
1007
|
createdAt: string;
|
|
@@ -1001,7 +1014,7 @@ declare function validateDraft(draft: unknown): z.SafeParseReturnType<{
|
|
|
1001
1014
|
metadata?: Record<string, unknown> | undefined;
|
|
1002
1015
|
}, {
|
|
1003
1016
|
name: string;
|
|
1004
|
-
network: "base" | "ethereum" | "
|
|
1017
|
+
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
1005
1018
|
status: "draft" | "quoted" | "executed";
|
|
1006
1019
|
id: string;
|
|
1007
1020
|
createdAt: string;
|
|
@@ -1018,7 +1031,7 @@ declare function validateDraft(draft: unknown): z.SafeParseReturnType<{
|
|
|
1018
1031
|
*/
|
|
1019
1032
|
declare function parseDraft(draft: unknown): {
|
|
1020
1033
|
name: string;
|
|
1021
|
-
network: "base" | "ethereum" | "
|
|
1034
|
+
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
1022
1035
|
status: "draft" | "quoted" | "executed";
|
|
1023
1036
|
id: string;
|
|
1024
1037
|
createdAt: string;
|
|
@@ -1545,6 +1558,154 @@ declare function getApiKeyEnvironment(apiKey: string): 'production' | 'test' | n
|
|
|
1545
1558
|
*/
|
|
1546
1559
|
declare function maskApiKey(apiKey: string): string;
|
|
1547
1560
|
|
|
1561
|
+
/**
|
|
1562
|
+
* Mission & Bonus Reward Types for beeper-sdk
|
|
1563
|
+
*
|
|
1564
|
+
* Types for configuring bonus missions (CTAs + reward distribution)
|
|
1565
|
+
* on beeps and campaigns.
|
|
1566
|
+
*/
|
|
1567
|
+
/** Farcaster: Follow a profile */
|
|
1568
|
+
interface FollowProfileCTA {
|
|
1569
|
+
type: 'follow_profile';
|
|
1570
|
+
profileFid: number;
|
|
1571
|
+
profileUsername?: string;
|
|
1572
|
+
profileDisplayName?: string;
|
|
1573
|
+
}
|
|
1574
|
+
/** Farcaster: Like a specific cast */
|
|
1575
|
+
interface LikeCastCTA {
|
|
1576
|
+
type: 'like_cast';
|
|
1577
|
+
castHash: string;
|
|
1578
|
+
castUrl?: string;
|
|
1579
|
+
castAuthorFid?: number;
|
|
1580
|
+
castAuthorUsername?: string;
|
|
1581
|
+
}
|
|
1582
|
+
/** Farcaster: Recast a specific cast */
|
|
1583
|
+
interface RecastCTA {
|
|
1584
|
+
type: 'recast';
|
|
1585
|
+
castHash: string;
|
|
1586
|
+
castUrl?: string;
|
|
1587
|
+
castAuthorFid?: number;
|
|
1588
|
+
castAuthorUsername?: string;
|
|
1589
|
+
}
|
|
1590
|
+
/** Farcaster: Post a quote cast with requirements */
|
|
1591
|
+
interface ShareCastCTA {
|
|
1592
|
+
type: 'share_cast';
|
|
1593
|
+
requirements?: {
|
|
1594
|
+
textIncludes?: string[];
|
|
1595
|
+
mentions?: string[];
|
|
1596
|
+
embeds?: string[];
|
|
1597
|
+
};
|
|
1598
|
+
}
|
|
1599
|
+
/** Universal: Visit a link */
|
|
1600
|
+
interface VisitLinkCTA {
|
|
1601
|
+
type: 'visit_link';
|
|
1602
|
+
url: string;
|
|
1603
|
+
label?: string;
|
|
1604
|
+
}
|
|
1605
|
+
/** Universal: Answer quiz questions */
|
|
1606
|
+
interface QuizCTA {
|
|
1607
|
+
type: 'quiz';
|
|
1608
|
+
questions: QuizQuestion[];
|
|
1609
|
+
}
|
|
1610
|
+
interface QuizQuestion {
|
|
1611
|
+
question: string;
|
|
1612
|
+
answers: string[];
|
|
1613
|
+
correctAnswerIndex: number;
|
|
1614
|
+
}
|
|
1615
|
+
/** Universal: Custom verification via external endpoint */
|
|
1616
|
+
interface ExternalVerifyCTA {
|
|
1617
|
+
type: 'external_verify';
|
|
1618
|
+
endpointUrl: string;
|
|
1619
|
+
appUrl: string;
|
|
1620
|
+
appIsMiniApp?: boolean;
|
|
1621
|
+
guideUrl?: string;
|
|
1622
|
+
guideLabel?: string;
|
|
1623
|
+
description?: string;
|
|
1624
|
+
}
|
|
1625
|
+
/** X (Twitter): Follow a profile */
|
|
1626
|
+
interface XFollowCTA {
|
|
1627
|
+
type: 'x_follow';
|
|
1628
|
+
handle: string;
|
|
1629
|
+
profileUrl: string;
|
|
1630
|
+
displayName?: string;
|
|
1631
|
+
}
|
|
1632
|
+
/** X (Twitter): Like a tweet */
|
|
1633
|
+
interface XLikeCTA {
|
|
1634
|
+
type: 'x_like';
|
|
1635
|
+
tweetId: string;
|
|
1636
|
+
tweetUrl: string;
|
|
1637
|
+
authorHandle?: string;
|
|
1638
|
+
tweetText?: string;
|
|
1639
|
+
}
|
|
1640
|
+
/** X (Twitter): Repost a tweet */
|
|
1641
|
+
interface XRecastCTA {
|
|
1642
|
+
type: 'x_recast';
|
|
1643
|
+
tweetId: string;
|
|
1644
|
+
tweetUrl: string;
|
|
1645
|
+
authorHandle?: string;
|
|
1646
|
+
tweetText?: string;
|
|
1647
|
+
}
|
|
1648
|
+
/** All CTA types */
|
|
1649
|
+
type MissionCTA = FollowProfileCTA | LikeCastCTA | RecastCTA | ShareCastCTA | VisitLinkCTA | QuizCTA | ExternalVerifyCTA | XFollowCTA | XLikeCTA | XRecastCTA;
|
|
1650
|
+
/** CTA type strings */
|
|
1651
|
+
type CTAType = MissionCTA['type'];
|
|
1652
|
+
/** Lottery prize tier */
|
|
1653
|
+
interface PrizeTier {
|
|
1654
|
+
prizeAmount: number;
|
|
1655
|
+
winnerCount: number;
|
|
1656
|
+
}
|
|
1657
|
+
/** Lottery distribution config */
|
|
1658
|
+
interface LotteryConfig {
|
|
1659
|
+
prizeTiers: PrizeTier[];
|
|
1660
|
+
durationSeconds?: number;
|
|
1661
|
+
}
|
|
1662
|
+
/** FCFS distribution config */
|
|
1663
|
+
interface FCFSConfig {
|
|
1664
|
+
amountPerClaim: number;
|
|
1665
|
+
maxClaims: number;
|
|
1666
|
+
startDelaySeconds?: number;
|
|
1667
|
+
}
|
|
1668
|
+
/** Bonus reward configuration */
|
|
1669
|
+
interface BonusConfig {
|
|
1670
|
+
type: 'lottery' | 'fcfs';
|
|
1671
|
+
ctas?: MissionCTA[];
|
|
1672
|
+
lotteryConfig?: LotteryConfig;
|
|
1673
|
+
fcfsConfig?: FCFSConfig;
|
|
1674
|
+
}
|
|
1675
|
+
/** How budget is split between payout and bonus pool */
|
|
1676
|
+
type GoalType = 'max_reach' | 'lil_mission' | 'hard_mission';
|
|
1677
|
+
/** Fine-tune the budget split */
|
|
1678
|
+
type SplitPreset = 'balanced' | 'more_reach' | 'more_action';
|
|
1679
|
+
/** Computed budget split */
|
|
1680
|
+
interface BudgetSplit {
|
|
1681
|
+
totalUsd: number;
|
|
1682
|
+
payoutUsd: number;
|
|
1683
|
+
bonusUsd: number;
|
|
1684
|
+
platformFeeUsd: number;
|
|
1685
|
+
userPaysUsd: number;
|
|
1686
|
+
goalType: GoalType;
|
|
1687
|
+
splitPreset: SplitPreset;
|
|
1688
|
+
payoutPercent: number;
|
|
1689
|
+
bonusPercent: number;
|
|
1690
|
+
}
|
|
1691
|
+
/** Campaign input extending estimate with mission support */
|
|
1692
|
+
interface CampaignInput {
|
|
1693
|
+
filters: Record<string, unknown>;
|
|
1694
|
+
budget: string;
|
|
1695
|
+
message?: string;
|
|
1696
|
+
goalType?: GoalType;
|
|
1697
|
+
splitPreset?: SplitPreset;
|
|
1698
|
+
bonusConfig?: BonusConfig;
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
/**
|
|
1702
|
+
* Core types for the Beeper SDK
|
|
1703
|
+
*
|
|
1704
|
+
* These types are the canonical API contract types matching the BeeperClient
|
|
1705
|
+
* and the backend HTTP contract. Legacy types from the old schema-based API
|
|
1706
|
+
* have been removed or replaced.
|
|
1707
|
+
*/
|
|
1708
|
+
|
|
1548
1709
|
/**
|
|
1549
1710
|
* Draft input - what the user provides to create a draft
|
|
1550
1711
|
*/
|
|
@@ -1767,7 +1928,7 @@ interface PaginatedResponse<T> {
|
|
|
1767
1928
|
*
|
|
1768
1929
|
* @example
|
|
1769
1930
|
* ```typescript
|
|
1770
|
-
* import { FilterBuilder } from '@
|
|
1931
|
+
* import { FilterBuilder } from '@beeperbot/sdk';
|
|
1771
1932
|
*
|
|
1772
1933
|
* const filter = FilterBuilder.and([
|
|
1773
1934
|
* FilterBuilder.platform('farcaster'),
|
|
@@ -2438,7 +2599,7 @@ declare const QuoteSchema: z.ZodObject<{
|
|
|
2438
2599
|
createdAt: z.ZodString;
|
|
2439
2600
|
isValid: z.ZodBoolean;
|
|
2440
2601
|
}, "strip", z.ZodTypeAny, {
|
|
2441
|
-
network: "base" | "ethereum" | "
|
|
2602
|
+
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
2442
2603
|
id: string;
|
|
2443
2604
|
recipientCount: number;
|
|
2444
2605
|
totalAmount: string;
|
|
@@ -2458,7 +2619,7 @@ declare const QuoteSchema: z.ZodObject<{
|
|
|
2458
2619
|
}[];
|
|
2459
2620
|
isValid: boolean;
|
|
2460
2621
|
}, {
|
|
2461
|
-
network: "base" | "ethereum" | "
|
|
2622
|
+
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
2462
2623
|
id: string;
|
|
2463
2624
|
recipientCount: number;
|
|
2464
2625
|
totalAmount: string;
|
|
@@ -2565,7 +2726,7 @@ declare function parseQuoteOptions(options: unknown): {
|
|
|
2565
2726
|
* Validate quote response
|
|
2566
2727
|
*/
|
|
2567
2728
|
declare function validateQuote(quote: unknown): z.SafeParseReturnType<{
|
|
2568
|
-
network: "base" | "ethereum" | "
|
|
2729
|
+
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
2569
2730
|
id: string;
|
|
2570
2731
|
recipientCount: number;
|
|
2571
2732
|
totalAmount: string;
|
|
@@ -2585,7 +2746,7 @@ declare function validateQuote(quote: unknown): z.SafeParseReturnType<{
|
|
|
2585
2746
|
}[];
|
|
2586
2747
|
isValid: boolean;
|
|
2587
2748
|
}, {
|
|
2588
|
-
network: "base" | "ethereum" | "
|
|
2749
|
+
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
2589
2750
|
id: string;
|
|
2590
2751
|
recipientCount: number;
|
|
2591
2752
|
totalAmount: string;
|
|
@@ -2609,7 +2770,7 @@ declare function validateQuote(quote: unknown): z.SafeParseReturnType<{
|
|
|
2609
2770
|
* Parse quote response
|
|
2610
2771
|
*/
|
|
2611
2772
|
declare function parseQuote(quote: unknown): {
|
|
2612
|
-
network: "base" | "ethereum" | "
|
|
2773
|
+
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
2613
2774
|
id: string;
|
|
2614
2775
|
recipientCount: number;
|
|
2615
2776
|
totalAmount: string;
|
|
@@ -2729,7 +2890,7 @@ declare const ReceiptSchema: z.ZodObject<{
|
|
|
2729
2890
|
createdAt: z.ZodString;
|
|
2730
2891
|
}, "strip", z.ZodTypeAny, {
|
|
2731
2892
|
quoteId: string;
|
|
2732
|
-
network: "base" | "ethereum" | "
|
|
2893
|
+
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
2733
2894
|
id: string;
|
|
2734
2895
|
totalAmount: string;
|
|
2735
2896
|
createdAt: string;
|
|
@@ -2752,7 +2913,7 @@ declare const ReceiptSchema: z.ZodObject<{
|
|
|
2752
2913
|
failedTransfers: number;
|
|
2753
2914
|
}, {
|
|
2754
2915
|
quoteId: string;
|
|
2755
|
-
network: "base" | "ethereum" | "
|
|
2916
|
+
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
2756
2917
|
id: string;
|
|
2757
2918
|
totalAmount: string;
|
|
2758
2919
|
createdAt: string;
|
|
@@ -2779,7 +2940,7 @@ declare const ReceiptSchema: z.ZodObject<{
|
|
|
2779
2940
|
*/
|
|
2780
2941
|
declare function validateReceipt(receipt: unknown): z.SafeParseReturnType<{
|
|
2781
2942
|
quoteId: string;
|
|
2782
|
-
network: "base" | "ethereum" | "
|
|
2943
|
+
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
2783
2944
|
id: string;
|
|
2784
2945
|
totalAmount: string;
|
|
2785
2946
|
createdAt: string;
|
|
@@ -2802,7 +2963,7 @@ declare function validateReceipt(receipt: unknown): z.SafeParseReturnType<{
|
|
|
2802
2963
|
failedTransfers: number;
|
|
2803
2964
|
}, {
|
|
2804
2965
|
quoteId: string;
|
|
2805
|
-
network: "base" | "ethereum" | "
|
|
2966
|
+
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
2806
2967
|
id: string;
|
|
2807
2968
|
totalAmount: string;
|
|
2808
2969
|
createdAt: string;
|
|
@@ -2829,7 +2990,7 @@ declare function validateReceipt(receipt: unknown): z.SafeParseReturnType<{
|
|
|
2829
2990
|
*/
|
|
2830
2991
|
declare function parseReceipt(receipt: unknown): {
|
|
2831
2992
|
quoteId: string;
|
|
2832
|
-
network: "base" | "ethereum" | "
|
|
2993
|
+
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
2833
2994
|
id: string;
|
|
2834
2995
|
totalAmount: string;
|
|
2835
2996
|
createdAt: string;
|
|
@@ -4344,4 +4505,4 @@ declare function validateFilterHasTargeting(filter: RecipientFilter): boolean;
|
|
|
4344
4505
|
*/
|
|
4345
4506
|
declare function describeFilters(filter: RecipientFilter): string[];
|
|
4346
4507
|
|
|
4347
|
-
export { API_BASE_URLS, API_KEY_PREFIXES, ActiveInLastDaysFilterSchema, AgentClient, type AgentClientConfig, type User as AgentUser, type ApiQuoteResponse, ApiQuoteResponseSchema, type ApiReceiptResponse, ApiReceiptResponseSchema, type AttentionPrice, type AttentionQuoteInput, BeeperClient, type BeeperClientConfig, type BeeperConfig, BeeperEconomicsFilterSchema, type BeeperEconomicsFilter as BeeperEconomicsFilterSchemaType, BeeperError, type BeeperErrorOptions, type BulkIntentInput, type BulkIntentResult, CachedTokenHolderFilterSchema, CachedTokenHolderSchema, type CachedTokenHolder as CachedTokenHolderSchemaType, type ConfirmDeploymentInput, type ConfirmDeploymentResult, type ConfirmDepositParams, type ConfirmDepositResponse, ConfirmDepositResponseSchema, type ConfirmResult, ConfirmResultSchema, CountryFilterSchema, type CreateIntentInput, DistributionStrategySchema, type Draft, type DraftInput, DraftInputSchema, DraftSchema, DraftStatusSchema, DraftUpdateSchema, type Environment, type ErrorCode, ErrorCodes, type ErrorContext, type EstimateInput, type EstimateResult, ExcludePingedTodayFilterSchema, ExcludeUsersFilterSchema, type ExecuteResult, ExecuteResultSchema, type ExecuteSendParams, type ExecuteSendResponse, ExecuteSendResponseSchema, ExecuteStatusSchema, FILTER_SCHEMA, FieldComparisonSchema, FilterBuilder, type FilterCategory, FilterExpression$1 as FilterExpression, type FilterExpressionJSON, FilterExpressionSchema, type FilterExpression as FilterExpressionSchemaType, type FilterFieldSchema, FilterOperatorSchema, FilterValueSchema, FollowersOfFilterSchema, FollowingOfFilterSchema, GasTierSchema, HEADERS, HTTP_STATUS_TO_ERROR_CODE, HasBaseWalletFilterSchema, HasRechargedInLastDaysFilterSchema, HasTierFilterSchema, HasVerifiedWalletFilterSchema, type Health, HttpClient, type HttpClientConfig, type HttpRequestOptions, type HttpResponse, IsWaitlistedFilterSchema, type LegacyFieldComparison, LegacyFieldComparisonSchema, type LegacyFilterOperator, LegacyFilterOperatorSchema, type LegacyFilterValue, LegacyFilterValueSchema, LegacyRecipientFilterDSLSchema, MaxAttentionPriceFilterSchema, MaxFidFilterSchema, MaxFollowersFilterSchema, MaxFollowingFilterSchema, MinAttentionPriceFilterSchema, MinBatteryPercentageFilterSchema, MinCastCountFilterSchema, MinClickThroughRateFilterSchema, MinFidFilterSchema, MinFollowersFilterSchema, MinFollowingFilterSchema, MinProTenureDaysFilterSchema, MinTenureDaysFilterSchema, MutualsWithFilterSchema, NetworkSchema, NeynarScoreMaxFilterSchema, NeynarScoreMinFilterSchema, OnchainFilterSchema, type OnchainFilter as OnchainFilterSchemaType, type OrderByOption, OrderBySchema, type OrderBy as OrderBySchemaType, type PaginatedResponse, type PaginationOptions, type PaymentIntent, type Platform, PlatformFilterSchema, type PlatformFilter as PlatformFilterSchemaType, type PollOptions$1 as PollOptions, type PreviewInput, type PreviewResult, type PreviewUser, ProSubscriptionFilterSchema, QUOTE_EXPIRATION_SECONDS, type Quote, type QuoteOptions, QuoteOptionsSchema, QuoteRecipientSchema, QuoteSchema, type QuoteStatus$2 as QuoteStatus, QuotientScoreMaxFilterSchema, QuotientScoreMinFilterSchema, RETRYABLE_ERROR_CODES, RETRY_CONFIG, type Receipt, ReceiptSchema, type ReceiptStatus, type ReceiptTransaction, ReceiptTransactionSchema, ReceiptTransferSchema, RecipientFilterDSLSchema, RecipientFilterSchema, type RecipientFilter as RecipientFilterSchemaType, ReputationFilterSchema, type ReputationFilter as ReputationFilterSchemaType, RequireLotteryOptInFilterSchema, RequireQuizOptInFilterSchema, type RetryOptions, RolesFilterSchema, SDK_VERSION, type PollOptions as SendPollOptions, type QuoteStatus$1 as SendQuoteStatus, type ReceiptTransaction$1 as SendReceiptTransaction, SignalTokenFilterSchema, type SimpleFilters, SocialFilterSchema, type SocialFilter as SocialFilterSchemaType, type SpamLabel, SpamLabelFilterSchema, type SpamLabelOption, SpecificUsersFilterSchema, TIMEOUTS, TimezoneFilterSchema, type TimezoneOptions, TokenHolderDiscoverySchema, type TokenHolderDiscovery as TokenHolderDiscoverySchemaType, TokenHolderFilterSchema, type TokenHolderOptions, TokenTypeSchema, TransferStatusSchema, type QuoteStatus as TypesQuoteStatus, VerifiedOnlyFilterSchema, type WalletChain, createHttpConfig, BeeperClient as default, describeFilters, generateDepositIdempotencyKey, generateExecuteIdempotencyKey, generateFilterDocumentation, generateIdempotencyKey, getAllFilterNames, getApiKeyEnvironment, getFilterSchema, isRetryableCode, isValidApiKeyFormat, maskApiKey, parseDraft, parseDraftInput, parseExecuteResult, parseFilter, parseQuote, parseQuoteOptions, parseReceipt, parseRecipientFilter, safeParseFilter, safeParseRecipientFilter, confirmDeposit as sendConfirmDeposit, createDraft as sendCreateDraft, createQuote as sendCreateQuote, executeSend as sendExecuteSend, getEstimatedTimeRemaining as sendGetEstimatedTimeRemaining, getFailedTransactions as sendGetFailedTransactions, getQuote as sendGetQuote, getReceipt as sendGetReceipt, getSuccessRate as sendGetSuccessRate, isComplete as sendIsComplete, isDepositSufficient as sendIsDepositSufficient, isExecuting as sendIsExecuting, isQuoteExpired as sendIsQuoteExpired, isReadyForDeposit as sendIsReadyForDeposit, isReadyForQuote as sendIsReadyForQuote, isSuccess as sendIsSuccess, pollUntilComplete as sendPollUntilComplete, updateDraft as sendUpdateDraft, validateDraftInput as sendValidateDraftInput, validateDraft, validateDraftInput$1 as validateDraftInput, validateExecuteResult, validateFilter, validateFilterHasTargeting, validateQuote, validateQuoteOptions, validateReceipt, validateRecipientFilter };
|
|
4508
|
+
export { API_BASE_URLS, API_KEY_PREFIXES, ActiveInLastDaysFilterSchema, AgentClient, type AgentClientConfig, type User as AgentUser, type ApiQuoteResponse, ApiQuoteResponseSchema, type ApiReceiptResponse, ApiReceiptResponseSchema, type AttentionPrice, type AttentionQuoteInput, BeeperClient, type BeeperClientConfig, type BeeperConfig, BeeperEconomicsFilterSchema, type BeeperEconomicsFilter as BeeperEconomicsFilterSchemaType, BeeperError, type BeeperErrorOptions, type BonusConfig, type BudgetSplit, type BulkIntentInput, type BulkIntentResult, type CTAType, CachedTokenHolderFilterSchema, CachedTokenHolderSchema, type CachedTokenHolder as CachedTokenHolderSchemaType, type CampaignInput, type ConfirmDeploymentInput, type ConfirmDeploymentResult, type ConfirmDepositParams, type ConfirmDepositResponse, ConfirmDepositResponseSchema, type ConfirmResult, ConfirmResultSchema, CountryFilterSchema, type CreateIntentInput, DistributionStrategySchema, type Draft, type DraftInput, DraftInputSchema, DraftSchema, DraftStatusSchema, DraftUpdateSchema, type Environment, type ErrorCode, ErrorCodes, type ErrorContext, type EstimateInput, type EstimateResult, ExcludePingedTodayFilterSchema, ExcludeUsersFilterSchema, type ExecuteResult, ExecuteResultSchema, type ExecuteSendParams, type ExecuteSendResponse, ExecuteSendResponseSchema, ExecuteStatusSchema, type ExternalVerifyCTA, type FCFSConfig, FILTER_SCHEMA, FieldComparisonSchema, FilterBuilder, type FilterCategory, FilterExpression$1 as FilterExpression, type FilterExpressionJSON, FilterExpressionSchema, type FilterExpression as FilterExpressionSchemaType, type FilterFieldSchema, FilterOperatorSchema, FilterValueSchema, type FollowProfileCTA, FollowersOfFilterSchema, FollowingOfFilterSchema, GasTierSchema, type GoalType, HEADERS, HTTP_STATUS_TO_ERROR_CODE, HasBaseWalletFilterSchema, HasRechargedInLastDaysFilterSchema, HasTierFilterSchema, HasVerifiedWalletFilterSchema, type Health, HttpClient, type HttpClientConfig, type HttpRequestOptions, type HttpResponse, IsWaitlistedFilterSchema, type LegacyFieldComparison, LegacyFieldComparisonSchema, type LegacyFilterOperator, LegacyFilterOperatorSchema, type LegacyFilterValue, LegacyFilterValueSchema, LegacyRecipientFilterDSLSchema, type LikeCastCTA, type LotteryConfig, MaxAttentionPriceFilterSchema, MaxFidFilterSchema, MaxFollowersFilterSchema, MaxFollowingFilterSchema, MinAttentionPriceFilterSchema, MinBatteryPercentageFilterSchema, MinCastCountFilterSchema, MinClickThroughRateFilterSchema, MinFidFilterSchema, MinFollowersFilterSchema, MinFollowingFilterSchema, MinProTenureDaysFilterSchema, MinTenureDaysFilterSchema, type MissionCTA, MutualsWithFilterSchema, NetworkSchema, NeynarScoreMaxFilterSchema, NeynarScoreMinFilterSchema, OnchainFilterSchema, type OnchainFilter as OnchainFilterSchemaType, type OrderByOption, OrderBySchema, type OrderBy as OrderBySchemaType, type PaginatedResponse, type PaginationOptions, type PaymentIntent, type Platform, PlatformFilterSchema, type PlatformFilter as PlatformFilterSchemaType, type PollOptions$1 as PollOptions, type PreviewInput, type PreviewResult, type PreviewUser, type PrizeTier, ProSubscriptionFilterSchema, QUOTE_EXPIRATION_SECONDS, type QuizCTA, type QuizQuestion, type Quote, type QuoteOptions, QuoteOptionsSchema, QuoteRecipientSchema, QuoteSchema, type QuoteStatus$2 as QuoteStatus, QuotientScoreMaxFilterSchema, QuotientScoreMinFilterSchema, RETRYABLE_ERROR_CODES, RETRY_CONFIG, type RecastCTA, type Receipt, ReceiptSchema, type ReceiptStatus, type ReceiptTransaction, ReceiptTransactionSchema, ReceiptTransferSchema, RecipientFilterDSLSchema, RecipientFilterSchema, type RecipientFilter as RecipientFilterSchemaType, ReputationFilterSchema, type ReputationFilter as ReputationFilterSchemaType, RequireLotteryOptInFilterSchema, RequireQuizOptInFilterSchema, type RetryOptions, RolesFilterSchema, SDK_VERSION, type PollOptions as SendPollOptions, type QuoteStatus$1 as SendQuoteStatus, type ReceiptTransaction$1 as SendReceiptTransaction, type ShareCastCTA, SignalTokenFilterSchema, type SimpleFilters, SocialFilterSchema, type SocialFilter as SocialFilterSchemaType, type SpamLabel, SpamLabelFilterSchema, type SpamLabelOption, SpecificUsersFilterSchema, type SplitPreset, TIMEOUTS, TimezoneFilterSchema, type TimezoneOptions, TokenHolderDiscoverySchema, type TokenHolderDiscovery as TokenHolderDiscoverySchemaType, TokenHolderFilterSchema, type TokenHolderOptions, TokenTypeSchema, TransferStatusSchema, type QuoteStatus as TypesQuoteStatus, VerifiedOnlyFilterSchema, type VisitLinkCTA, type WalletChain, type XFollowCTA, type XLikeCTA, type XRecastCTA, createHttpConfig, BeeperClient as default, describeFilters, generateDepositIdempotencyKey, generateExecuteIdempotencyKey, generateFilterDocumentation, generateIdempotencyKey, getAllFilterNames, getApiKeyEnvironment, getFilterSchema, isRetryableCode, isValidApiKeyFormat, maskApiKey, parseDraft, parseDraftInput, parseExecuteResult, parseFilter, parseQuote, parseQuoteOptions, parseReceipt, parseRecipientFilter, safeParseFilter, safeParseRecipientFilter, confirmDeposit as sendConfirmDeposit, createDraft as sendCreateDraft, createQuote as sendCreateQuote, executeSend as sendExecuteSend, getEstimatedTimeRemaining as sendGetEstimatedTimeRemaining, getFailedTransactions as sendGetFailedTransactions, getQuote as sendGetQuote, getReceipt as sendGetReceipt, getSuccessRate as sendGetSuccessRate, isComplete as sendIsComplete, isDepositSufficient as sendIsDepositSufficient, isExecuting as sendIsExecuting, isQuoteExpired as sendIsQuoteExpired, isReadyForDeposit as sendIsReadyForDeposit, isReadyForQuote as sendIsReadyForQuote, isSuccess as sendIsSuccess, pollUntilComplete as sendPollUntilComplete, updateDraft as sendUpdateDraft, validateDraftInput as sendValidateDraftInput, validateDraft, validateDraftInput$1 as validateDraftInput, validateExecuteResult, validateFilter, validateFilterHasTargeting, validateQuote, validateQuoteOptions, validateReceipt, validateRecipientFilter };
|