@beeperbot/sdk 0.2.2 → 0.2.4
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 -0
- package/dist/core/index.cjs +553 -0
- package/dist/core/index.cjs.map +1 -0
- package/dist/core/index.d.cts +381 -0
- package/dist/core/index.d.ts +381 -0
- package/dist/core/index.js +542 -0
- package/dist/core/index.js.map +1 -0
- package/dist/index.cjs +587 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +37 -31
- package/dist/index.d.ts +37 -31
- package/dist/index.js +578 -1
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { AgentCore, AgentCoreAdapter, AgentCoreConfig, AgentCoreError, EstimateDiagnostics as AgentEstimateDiagnostics, AgentQueryPlan, buildQueryPlan as buildAgentCoreQueryPlan, buildAgentQueryPlan, computeBudgetSplit as computeAgentBudgetSplit, createAgentCore, getDefaultOrderBy as getAgentCoreDefaultOrderBy, getOrderByOrDefault, normalizeFilters as normalizeAgentCoreFilters, normalizeAgentFilters } from './core/index.cjs';
|
|
1
2
|
import { z } from 'zod';
|
|
2
3
|
|
|
3
4
|
/**
|
|
@@ -275,6 +276,11 @@ interface SimpleFilters {
|
|
|
275
276
|
}>;
|
|
276
277
|
fids?: number[];
|
|
277
278
|
userIds?: string[];
|
|
279
|
+
castEngagement?: {
|
|
280
|
+
castHash?: string;
|
|
281
|
+
castUrl?: string;
|
|
282
|
+
require?: Array<'like' | 'recast'>;
|
|
283
|
+
};
|
|
278
284
|
orderBy?: 'attention_price_asc' | 'attention_price_desc' | 'neynar_score_desc' | 'followers_desc' | 'followers_asc' | 'recent_activity' | 'battery_desc' | 'random';
|
|
279
285
|
}
|
|
280
286
|
/** Estimate request input */
|
|
@@ -908,9 +914,9 @@ declare const DraftSchema: z.ZodObject<{
|
|
|
908
914
|
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
909
915
|
status: "draft" | "quoted" | "executed";
|
|
910
916
|
id: string;
|
|
917
|
+
amount: string;
|
|
911
918
|
createdAt: string;
|
|
912
919
|
updatedAt: string;
|
|
913
|
-
amount: string;
|
|
914
920
|
token: "USDC" | "USDT" | "ETH" | "MATIC";
|
|
915
921
|
strategy: "equal" | "weighted" | "proportional";
|
|
916
922
|
filter?: unknown;
|
|
@@ -921,9 +927,9 @@ declare const DraftSchema: z.ZodObject<{
|
|
|
921
927
|
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
922
928
|
status: "draft" | "quoted" | "executed";
|
|
923
929
|
id: string;
|
|
930
|
+
amount: string;
|
|
924
931
|
createdAt: string;
|
|
925
932
|
updatedAt: string;
|
|
926
|
-
amount: string;
|
|
927
933
|
token: "USDC" | "USDT" | "ETH" | "MATIC";
|
|
928
934
|
strategy: "equal" | "weighted" | "proportional";
|
|
929
935
|
filter?: unknown;
|
|
@@ -1004,9 +1010,9 @@ declare function validateDraft(draft: unknown): z.SafeParseReturnType<{
|
|
|
1004
1010
|
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
1005
1011
|
status: "draft" | "quoted" | "executed";
|
|
1006
1012
|
id: string;
|
|
1013
|
+
amount: string;
|
|
1007
1014
|
createdAt: string;
|
|
1008
1015
|
updatedAt: string;
|
|
1009
|
-
amount: string;
|
|
1010
1016
|
token: "USDC" | "USDT" | "ETH" | "MATIC";
|
|
1011
1017
|
strategy: "equal" | "weighted" | "proportional";
|
|
1012
1018
|
filter?: unknown;
|
|
@@ -1017,9 +1023,9 @@ declare function validateDraft(draft: unknown): z.SafeParseReturnType<{
|
|
|
1017
1023
|
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
1018
1024
|
status: "draft" | "quoted" | "executed";
|
|
1019
1025
|
id: string;
|
|
1026
|
+
amount: string;
|
|
1020
1027
|
createdAt: string;
|
|
1021
1028
|
updatedAt: string;
|
|
1022
|
-
amount: string;
|
|
1023
1029
|
token: "USDC" | "USDT" | "ETH" | "MATIC";
|
|
1024
1030
|
strategy: "equal" | "weighted" | "proportional";
|
|
1025
1031
|
filter?: unknown;
|
|
@@ -1034,9 +1040,9 @@ declare function parseDraft(draft: unknown): {
|
|
|
1034
1040
|
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
1035
1041
|
status: "draft" | "quoted" | "executed";
|
|
1036
1042
|
id: string;
|
|
1043
|
+
amount: string;
|
|
1037
1044
|
createdAt: string;
|
|
1038
1045
|
updatedAt: string;
|
|
1039
|
-
amount: string;
|
|
1040
1046
|
token: "USDC" | "USDT" | "ETH" | "MATIC";
|
|
1041
1047
|
strategy: "equal" | "weighted" | "proportional";
|
|
1042
1048
|
filter?: unknown;
|
|
@@ -1249,6 +1255,7 @@ declare const ApiQuoteResponseSchema: z.ZodObject<{
|
|
|
1249
1255
|
}, "strip", z.ZodTypeAny, {
|
|
1250
1256
|
status: "pending" | "deposit_confirmed" | "executing" | "completed" | "expired" | "failed";
|
|
1251
1257
|
id: string;
|
|
1258
|
+
expiresAt: string;
|
|
1252
1259
|
recipientCount: number;
|
|
1253
1260
|
totalAmount: string;
|
|
1254
1261
|
protocolFee: string;
|
|
@@ -1256,13 +1263,13 @@ declare const ApiQuoteResponseSchema: z.ZodObject<{
|
|
|
1256
1263
|
depositAddress: string;
|
|
1257
1264
|
depositChainId: number;
|
|
1258
1265
|
depositTokenAddress: string;
|
|
1259
|
-
expiresAt: string;
|
|
1260
1266
|
input: Record<string, unknown>;
|
|
1261
1267
|
createdAt: string;
|
|
1262
1268
|
updatedAt: string;
|
|
1263
1269
|
}, {
|
|
1264
1270
|
status: "pending" | "deposit_confirmed" | "executing" | "completed" | "expired" | "failed";
|
|
1265
1271
|
id: string;
|
|
1272
|
+
expiresAt: string;
|
|
1266
1273
|
recipientCount: number;
|
|
1267
1274
|
totalAmount: string;
|
|
1268
1275
|
protocolFee: string;
|
|
@@ -1270,7 +1277,6 @@ declare const ApiQuoteResponseSchema: z.ZodObject<{
|
|
|
1270
1277
|
depositAddress: string;
|
|
1271
1278
|
depositChainId: number;
|
|
1272
1279
|
depositTokenAddress: string;
|
|
1273
|
-
expiresAt: string;
|
|
1274
1280
|
input: Record<string, unknown>;
|
|
1275
1281
|
createdAt: string;
|
|
1276
1282
|
updatedAt: string;
|
|
@@ -2601,9 +2607,9 @@ declare const QuoteSchema: z.ZodObject<{
|
|
|
2601
2607
|
}, "strip", z.ZodTypeAny, {
|
|
2602
2608
|
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
2603
2609
|
id: string;
|
|
2610
|
+
expiresAt: string;
|
|
2604
2611
|
recipientCount: number;
|
|
2605
2612
|
totalAmount: string;
|
|
2606
|
-
expiresAt: string;
|
|
2607
2613
|
createdAt: string;
|
|
2608
2614
|
token: "USDC" | "USDT" | "ETH" | "MATIC";
|
|
2609
2615
|
draftId: string;
|
|
@@ -2621,9 +2627,9 @@ declare const QuoteSchema: z.ZodObject<{
|
|
|
2621
2627
|
}, {
|
|
2622
2628
|
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
2623
2629
|
id: string;
|
|
2630
|
+
expiresAt: string;
|
|
2624
2631
|
recipientCount: number;
|
|
2625
2632
|
totalAmount: string;
|
|
2626
|
-
expiresAt: string;
|
|
2627
2633
|
createdAt: string;
|
|
2628
2634
|
token: "USDC" | "USDT" | "ETH" | "MATIC";
|
|
2629
2635
|
draftId: string;
|
|
@@ -2728,9 +2734,9 @@ declare function parseQuoteOptions(options: unknown): {
|
|
|
2728
2734
|
declare function validateQuote(quote: unknown): z.SafeParseReturnType<{
|
|
2729
2735
|
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
2730
2736
|
id: string;
|
|
2737
|
+
expiresAt: string;
|
|
2731
2738
|
recipientCount: number;
|
|
2732
2739
|
totalAmount: string;
|
|
2733
|
-
expiresAt: string;
|
|
2734
2740
|
createdAt: string;
|
|
2735
2741
|
token: "USDC" | "USDT" | "ETH" | "MATIC";
|
|
2736
2742
|
draftId: string;
|
|
@@ -2748,9 +2754,9 @@ declare function validateQuote(quote: unknown): z.SafeParseReturnType<{
|
|
|
2748
2754
|
}, {
|
|
2749
2755
|
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
2750
2756
|
id: string;
|
|
2757
|
+
expiresAt: string;
|
|
2751
2758
|
recipientCount: number;
|
|
2752
2759
|
totalAmount: string;
|
|
2753
|
-
expiresAt: string;
|
|
2754
2760
|
createdAt: string;
|
|
2755
2761
|
token: "USDC" | "USDT" | "ETH" | "MATIC";
|
|
2756
2762
|
draftId: string;
|
|
@@ -2772,9 +2778,9 @@ declare function validateQuote(quote: unknown): z.SafeParseReturnType<{
|
|
|
2772
2778
|
declare function parseQuote(quote: unknown): {
|
|
2773
2779
|
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
2774
2780
|
id: string;
|
|
2781
|
+
expiresAt: string;
|
|
2775
2782
|
recipientCount: number;
|
|
2776
2783
|
totalAmount: string;
|
|
2777
|
-
expiresAt: string;
|
|
2778
2784
|
createdAt: string;
|
|
2779
2785
|
token: "USDC" | "USDT" | "ETH" | "MATIC";
|
|
2780
2786
|
draftId: string;
|
|
@@ -3594,16 +3600,16 @@ declare const CachedTokenHolderFilterSchema: z.ZodObject<{
|
|
|
3594
3600
|
contractAddress: string;
|
|
3595
3601
|
tokenStandard: "ERC20" | "ERC721" | "ERC1155";
|
|
3596
3602
|
minBalance?: string | number | undefined;
|
|
3597
|
-
tokenId?: string | undefined;
|
|
3598
3603
|
tokenSymbol?: string | undefined;
|
|
3604
|
+
tokenId?: string | undefined;
|
|
3599
3605
|
tokenName?: string | undefined;
|
|
3600
3606
|
}, {
|
|
3601
3607
|
chain: "base" | "ethereum";
|
|
3602
3608
|
contractAddress: string;
|
|
3603
3609
|
minBalance?: string | number | undefined;
|
|
3610
|
+
tokenSymbol?: string | undefined;
|
|
3604
3611
|
tokenStandard?: "ERC20" | "ERC721" | "ERC1155" | undefined;
|
|
3605
3612
|
tokenId?: string | undefined;
|
|
3606
|
-
tokenSymbol?: string | undefined;
|
|
3607
3613
|
tokenName?: string | undefined;
|
|
3608
3614
|
}>;
|
|
3609
3615
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3612,8 +3618,8 @@ declare const CachedTokenHolderFilterSchema: z.ZodObject<{
|
|
|
3612
3618
|
contractAddress: string;
|
|
3613
3619
|
tokenStandard: "ERC20" | "ERC721" | "ERC1155";
|
|
3614
3620
|
minBalance?: string | number | undefined;
|
|
3615
|
-
tokenId?: string | undefined;
|
|
3616
3621
|
tokenSymbol?: string | undefined;
|
|
3622
|
+
tokenId?: string | undefined;
|
|
3617
3623
|
tokenName?: string | undefined;
|
|
3618
3624
|
};
|
|
3619
3625
|
}, {
|
|
@@ -3621,9 +3627,9 @@ declare const CachedTokenHolderFilterSchema: z.ZodObject<{
|
|
|
3621
3627
|
chain: "base" | "ethereum";
|
|
3622
3628
|
contractAddress: string;
|
|
3623
3629
|
minBalance?: string | number | undefined;
|
|
3630
|
+
tokenSymbol?: string | undefined;
|
|
3624
3631
|
tokenStandard?: "ERC20" | "ERC721" | "ERC1155" | undefined;
|
|
3625
3632
|
tokenId?: string | undefined;
|
|
3626
|
-
tokenSymbol?: string | undefined;
|
|
3627
3633
|
tokenName?: string | undefined;
|
|
3628
3634
|
};
|
|
3629
3635
|
}>;
|
|
@@ -3679,16 +3685,16 @@ declare const CachedTokenHolderSchema: z.ZodObject<{
|
|
|
3679
3685
|
contractAddress: string;
|
|
3680
3686
|
tokenStandard: "ERC20" | "ERC721" | "ERC1155";
|
|
3681
3687
|
minBalance?: string | number | undefined;
|
|
3682
|
-
tokenId?: string | undefined;
|
|
3683
3688
|
tokenSymbol?: string | undefined;
|
|
3689
|
+
tokenId?: string | undefined;
|
|
3684
3690
|
tokenName?: string | undefined;
|
|
3685
3691
|
}, {
|
|
3686
3692
|
chain: "base" | "ethereum";
|
|
3687
3693
|
contractAddress: string;
|
|
3688
3694
|
minBalance?: string | number | undefined;
|
|
3695
|
+
tokenSymbol?: string | undefined;
|
|
3689
3696
|
tokenStandard?: "ERC20" | "ERC721" | "ERC1155" | undefined;
|
|
3690
3697
|
tokenId?: string | undefined;
|
|
3691
|
-
tokenSymbol?: string | undefined;
|
|
3692
3698
|
tokenName?: string | undefined;
|
|
3693
3699
|
}>;
|
|
3694
3700
|
declare const OnchainFilterSchema: z.ZodObject<{
|
|
@@ -3731,16 +3737,16 @@ declare const OnchainFilterSchema: z.ZodObject<{
|
|
|
3731
3737
|
contractAddress: string;
|
|
3732
3738
|
tokenStandard: "ERC20" | "ERC721" | "ERC1155";
|
|
3733
3739
|
minBalance?: string | number | undefined;
|
|
3734
|
-
tokenId?: string | undefined;
|
|
3735
3740
|
tokenSymbol?: string | undefined;
|
|
3741
|
+
tokenId?: string | undefined;
|
|
3736
3742
|
tokenName?: string | undefined;
|
|
3737
3743
|
}, {
|
|
3738
3744
|
chain: "base" | "ethereum";
|
|
3739
3745
|
contractAddress: string;
|
|
3740
3746
|
minBalance?: string | number | undefined;
|
|
3747
|
+
tokenSymbol?: string | undefined;
|
|
3741
3748
|
tokenStandard?: "ERC20" | "ERC721" | "ERC1155" | undefined;
|
|
3742
3749
|
tokenId?: string | undefined;
|
|
3743
|
-
tokenSymbol?: string | undefined;
|
|
3744
3750
|
tokenName?: string | undefined;
|
|
3745
3751
|
}>, "many">>;
|
|
3746
3752
|
hasVerifiedWallet: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3761,8 +3767,8 @@ declare const OnchainFilterSchema: z.ZodObject<{
|
|
|
3761
3767
|
contractAddress: string;
|
|
3762
3768
|
tokenStandard: "ERC20" | "ERC721" | "ERC1155";
|
|
3763
3769
|
minBalance?: string | number | undefined;
|
|
3764
|
-
tokenId?: string | undefined;
|
|
3765
3770
|
tokenSymbol?: string | undefined;
|
|
3771
|
+
tokenId?: string | undefined;
|
|
3766
3772
|
tokenName?: string | undefined;
|
|
3767
3773
|
}[] | undefined;
|
|
3768
3774
|
}, {
|
|
@@ -3781,9 +3787,9 @@ declare const OnchainFilterSchema: z.ZodObject<{
|
|
|
3781
3787
|
chain: "base" | "ethereum";
|
|
3782
3788
|
contractAddress: string;
|
|
3783
3789
|
minBalance?: string | number | undefined;
|
|
3790
|
+
tokenSymbol?: string | undefined;
|
|
3784
3791
|
tokenStandard?: "ERC20" | "ERC721" | "ERC1155" | undefined;
|
|
3785
3792
|
tokenId?: string | undefined;
|
|
3786
|
-
tokenSymbol?: string | undefined;
|
|
3787
3793
|
tokenName?: string | undefined;
|
|
3788
3794
|
}[] | undefined;
|
|
3789
3795
|
}>;
|
|
@@ -3954,16 +3960,16 @@ declare const RecipientFilterSchema: z.ZodObject<{
|
|
|
3954
3960
|
contractAddress: string;
|
|
3955
3961
|
tokenStandard: "ERC20" | "ERC721" | "ERC1155";
|
|
3956
3962
|
minBalance?: string | number | undefined;
|
|
3957
|
-
tokenId?: string | undefined;
|
|
3958
3963
|
tokenSymbol?: string | undefined;
|
|
3964
|
+
tokenId?: string | undefined;
|
|
3959
3965
|
tokenName?: string | undefined;
|
|
3960
3966
|
}, {
|
|
3961
3967
|
chain: "base" | "ethereum";
|
|
3962
3968
|
contractAddress: string;
|
|
3963
3969
|
minBalance?: string | number | undefined;
|
|
3970
|
+
tokenSymbol?: string | undefined;
|
|
3964
3971
|
tokenStandard?: "ERC20" | "ERC721" | "ERC1155" | undefined;
|
|
3965
3972
|
tokenId?: string | undefined;
|
|
3966
|
-
tokenSymbol?: string | undefined;
|
|
3967
3973
|
tokenName?: string | undefined;
|
|
3968
3974
|
}>, "many">>;
|
|
3969
3975
|
hasVerifiedWallet: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3984,8 +3990,8 @@ declare const RecipientFilterSchema: z.ZodObject<{
|
|
|
3984
3990
|
contractAddress: string;
|
|
3985
3991
|
tokenStandard: "ERC20" | "ERC721" | "ERC1155";
|
|
3986
3992
|
minBalance?: string | number | undefined;
|
|
3987
|
-
tokenId?: string | undefined;
|
|
3988
3993
|
tokenSymbol?: string | undefined;
|
|
3994
|
+
tokenId?: string | undefined;
|
|
3989
3995
|
tokenName?: string | undefined;
|
|
3990
3996
|
}[] | undefined;
|
|
3991
3997
|
}, {
|
|
@@ -4004,9 +4010,9 @@ declare const RecipientFilterSchema: z.ZodObject<{
|
|
|
4004
4010
|
chain: "base" | "ethereum";
|
|
4005
4011
|
contractAddress: string;
|
|
4006
4012
|
minBalance?: string | number | undefined;
|
|
4013
|
+
tokenSymbol?: string | undefined;
|
|
4007
4014
|
tokenStandard?: "ERC20" | "ERC721" | "ERC1155" | undefined;
|
|
4008
4015
|
tokenId?: string | undefined;
|
|
4009
|
-
tokenSymbol?: string | undefined;
|
|
4010
4016
|
tokenName?: string | undefined;
|
|
4011
4017
|
}[] | undefined;
|
|
4012
4018
|
}>>;
|
|
@@ -4115,8 +4121,8 @@ declare const RecipientFilterSchema: z.ZodObject<{
|
|
|
4115
4121
|
contractAddress: string;
|
|
4116
4122
|
tokenStandard: "ERC20" | "ERC721" | "ERC1155";
|
|
4117
4123
|
minBalance?: string | number | undefined;
|
|
4118
|
-
tokenId?: string | undefined;
|
|
4119
4124
|
tokenSymbol?: string | undefined;
|
|
4125
|
+
tokenId?: string | undefined;
|
|
4120
4126
|
tokenName?: string | undefined;
|
|
4121
4127
|
}[] | undefined;
|
|
4122
4128
|
} | undefined;
|
|
@@ -4193,9 +4199,9 @@ declare const RecipientFilterSchema: z.ZodObject<{
|
|
|
4193
4199
|
chain: "base" | "ethereum";
|
|
4194
4200
|
contractAddress: string;
|
|
4195
4201
|
minBalance?: string | number | undefined;
|
|
4202
|
+
tokenSymbol?: string | undefined;
|
|
4196
4203
|
tokenStandard?: "ERC20" | "ERC721" | "ERC1155" | undefined;
|
|
4197
4204
|
tokenId?: string | undefined;
|
|
4198
|
-
tokenSymbol?: string | undefined;
|
|
4199
4205
|
tokenName?: string | undefined;
|
|
4200
4206
|
}[] | undefined;
|
|
4201
4207
|
} | undefined;
|
|
@@ -4311,8 +4317,8 @@ declare function parseRecipientFilter(filter: unknown): {
|
|
|
4311
4317
|
contractAddress: string;
|
|
4312
4318
|
tokenStandard: "ERC20" | "ERC721" | "ERC1155";
|
|
4313
4319
|
minBalance?: string | number | undefined;
|
|
4314
|
-
tokenId?: string | undefined;
|
|
4315
4320
|
tokenSymbol?: string | undefined;
|
|
4321
|
+
tokenId?: string | undefined;
|
|
4316
4322
|
tokenName?: string | undefined;
|
|
4317
4323
|
}[] | undefined;
|
|
4318
4324
|
} | undefined;
|
|
@@ -4393,9 +4399,9 @@ declare function safeParseRecipientFilter(filter: unknown): z.SafeParseReturnTyp
|
|
|
4393
4399
|
chain: "base" | "ethereum";
|
|
4394
4400
|
contractAddress: string;
|
|
4395
4401
|
minBalance?: string | number | undefined;
|
|
4402
|
+
tokenSymbol?: string | undefined;
|
|
4396
4403
|
tokenStandard?: "ERC20" | "ERC721" | "ERC1155" | undefined;
|
|
4397
4404
|
tokenId?: string | undefined;
|
|
4398
|
-
tokenSymbol?: string | undefined;
|
|
4399
4405
|
tokenName?: string | undefined;
|
|
4400
4406
|
}[] | undefined;
|
|
4401
4407
|
} | undefined;
|
|
@@ -4473,8 +4479,8 @@ declare function safeParseRecipientFilter(filter: unknown): z.SafeParseReturnTyp
|
|
|
4473
4479
|
contractAddress: string;
|
|
4474
4480
|
tokenStandard: "ERC20" | "ERC721" | "ERC1155";
|
|
4475
4481
|
minBalance?: string | number | undefined;
|
|
4476
|
-
tokenId?: string | undefined;
|
|
4477
4482
|
tokenSymbol?: string | undefined;
|
|
4483
|
+
tokenId?: string | undefined;
|
|
4478
4484
|
tokenName?: string | undefined;
|
|
4479
4485
|
}[] | undefined;
|
|
4480
4486
|
} | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { AgentCore, AgentCoreAdapter, AgentCoreConfig, AgentCoreError, EstimateDiagnostics as AgentEstimateDiagnostics, AgentQueryPlan, buildQueryPlan as buildAgentCoreQueryPlan, buildAgentQueryPlan, computeBudgetSplit as computeAgentBudgetSplit, createAgentCore, getDefaultOrderBy as getAgentCoreDefaultOrderBy, getOrderByOrDefault, normalizeFilters as normalizeAgentCoreFilters, normalizeAgentFilters } from './core/index.js';
|
|
1
2
|
import { z } from 'zod';
|
|
2
3
|
|
|
3
4
|
/**
|
|
@@ -275,6 +276,11 @@ interface SimpleFilters {
|
|
|
275
276
|
}>;
|
|
276
277
|
fids?: number[];
|
|
277
278
|
userIds?: string[];
|
|
279
|
+
castEngagement?: {
|
|
280
|
+
castHash?: string;
|
|
281
|
+
castUrl?: string;
|
|
282
|
+
require?: Array<'like' | 'recast'>;
|
|
283
|
+
};
|
|
278
284
|
orderBy?: 'attention_price_asc' | 'attention_price_desc' | 'neynar_score_desc' | 'followers_desc' | 'followers_asc' | 'recent_activity' | 'battery_desc' | 'random';
|
|
279
285
|
}
|
|
280
286
|
/** Estimate request input */
|
|
@@ -908,9 +914,9 @@ declare const DraftSchema: z.ZodObject<{
|
|
|
908
914
|
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
909
915
|
status: "draft" | "quoted" | "executed";
|
|
910
916
|
id: string;
|
|
917
|
+
amount: string;
|
|
911
918
|
createdAt: string;
|
|
912
919
|
updatedAt: string;
|
|
913
|
-
amount: string;
|
|
914
920
|
token: "USDC" | "USDT" | "ETH" | "MATIC";
|
|
915
921
|
strategy: "equal" | "weighted" | "proportional";
|
|
916
922
|
filter?: unknown;
|
|
@@ -921,9 +927,9 @@ declare const DraftSchema: z.ZodObject<{
|
|
|
921
927
|
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
922
928
|
status: "draft" | "quoted" | "executed";
|
|
923
929
|
id: string;
|
|
930
|
+
amount: string;
|
|
924
931
|
createdAt: string;
|
|
925
932
|
updatedAt: string;
|
|
926
|
-
amount: string;
|
|
927
933
|
token: "USDC" | "USDT" | "ETH" | "MATIC";
|
|
928
934
|
strategy: "equal" | "weighted" | "proportional";
|
|
929
935
|
filter?: unknown;
|
|
@@ -1004,9 +1010,9 @@ declare function validateDraft(draft: unknown): z.SafeParseReturnType<{
|
|
|
1004
1010
|
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
1005
1011
|
status: "draft" | "quoted" | "executed";
|
|
1006
1012
|
id: string;
|
|
1013
|
+
amount: string;
|
|
1007
1014
|
createdAt: string;
|
|
1008
1015
|
updatedAt: string;
|
|
1009
|
-
amount: string;
|
|
1010
1016
|
token: "USDC" | "USDT" | "ETH" | "MATIC";
|
|
1011
1017
|
strategy: "equal" | "weighted" | "proportional";
|
|
1012
1018
|
filter?: unknown;
|
|
@@ -1017,9 +1023,9 @@ declare function validateDraft(draft: unknown): z.SafeParseReturnType<{
|
|
|
1017
1023
|
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
1018
1024
|
status: "draft" | "quoted" | "executed";
|
|
1019
1025
|
id: string;
|
|
1026
|
+
amount: string;
|
|
1020
1027
|
createdAt: string;
|
|
1021
1028
|
updatedAt: string;
|
|
1022
|
-
amount: string;
|
|
1023
1029
|
token: "USDC" | "USDT" | "ETH" | "MATIC";
|
|
1024
1030
|
strategy: "equal" | "weighted" | "proportional";
|
|
1025
1031
|
filter?: unknown;
|
|
@@ -1034,9 +1040,9 @@ declare function parseDraft(draft: unknown): {
|
|
|
1034
1040
|
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
1035
1041
|
status: "draft" | "quoted" | "executed";
|
|
1036
1042
|
id: string;
|
|
1043
|
+
amount: string;
|
|
1037
1044
|
createdAt: string;
|
|
1038
1045
|
updatedAt: string;
|
|
1039
|
-
amount: string;
|
|
1040
1046
|
token: "USDC" | "USDT" | "ETH" | "MATIC";
|
|
1041
1047
|
strategy: "equal" | "weighted" | "proportional";
|
|
1042
1048
|
filter?: unknown;
|
|
@@ -1249,6 +1255,7 @@ declare const ApiQuoteResponseSchema: z.ZodObject<{
|
|
|
1249
1255
|
}, "strip", z.ZodTypeAny, {
|
|
1250
1256
|
status: "pending" | "deposit_confirmed" | "executing" | "completed" | "expired" | "failed";
|
|
1251
1257
|
id: string;
|
|
1258
|
+
expiresAt: string;
|
|
1252
1259
|
recipientCount: number;
|
|
1253
1260
|
totalAmount: string;
|
|
1254
1261
|
protocolFee: string;
|
|
@@ -1256,13 +1263,13 @@ declare const ApiQuoteResponseSchema: z.ZodObject<{
|
|
|
1256
1263
|
depositAddress: string;
|
|
1257
1264
|
depositChainId: number;
|
|
1258
1265
|
depositTokenAddress: string;
|
|
1259
|
-
expiresAt: string;
|
|
1260
1266
|
input: Record<string, unknown>;
|
|
1261
1267
|
createdAt: string;
|
|
1262
1268
|
updatedAt: string;
|
|
1263
1269
|
}, {
|
|
1264
1270
|
status: "pending" | "deposit_confirmed" | "executing" | "completed" | "expired" | "failed";
|
|
1265
1271
|
id: string;
|
|
1272
|
+
expiresAt: string;
|
|
1266
1273
|
recipientCount: number;
|
|
1267
1274
|
totalAmount: string;
|
|
1268
1275
|
protocolFee: string;
|
|
@@ -1270,7 +1277,6 @@ declare const ApiQuoteResponseSchema: z.ZodObject<{
|
|
|
1270
1277
|
depositAddress: string;
|
|
1271
1278
|
depositChainId: number;
|
|
1272
1279
|
depositTokenAddress: string;
|
|
1273
|
-
expiresAt: string;
|
|
1274
1280
|
input: Record<string, unknown>;
|
|
1275
1281
|
createdAt: string;
|
|
1276
1282
|
updatedAt: string;
|
|
@@ -2601,9 +2607,9 @@ declare const QuoteSchema: z.ZodObject<{
|
|
|
2601
2607
|
}, "strip", z.ZodTypeAny, {
|
|
2602
2608
|
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
2603
2609
|
id: string;
|
|
2610
|
+
expiresAt: string;
|
|
2604
2611
|
recipientCount: number;
|
|
2605
2612
|
totalAmount: string;
|
|
2606
|
-
expiresAt: string;
|
|
2607
2613
|
createdAt: string;
|
|
2608
2614
|
token: "USDC" | "USDT" | "ETH" | "MATIC";
|
|
2609
2615
|
draftId: string;
|
|
@@ -2621,9 +2627,9 @@ declare const QuoteSchema: z.ZodObject<{
|
|
|
2621
2627
|
}, {
|
|
2622
2628
|
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
2623
2629
|
id: string;
|
|
2630
|
+
expiresAt: string;
|
|
2624
2631
|
recipientCount: number;
|
|
2625
2632
|
totalAmount: string;
|
|
2626
|
-
expiresAt: string;
|
|
2627
2633
|
createdAt: string;
|
|
2628
2634
|
token: "USDC" | "USDT" | "ETH" | "MATIC";
|
|
2629
2635
|
draftId: string;
|
|
@@ -2728,9 +2734,9 @@ declare function parseQuoteOptions(options: unknown): {
|
|
|
2728
2734
|
declare function validateQuote(quote: unknown): z.SafeParseReturnType<{
|
|
2729
2735
|
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
2730
2736
|
id: string;
|
|
2737
|
+
expiresAt: string;
|
|
2731
2738
|
recipientCount: number;
|
|
2732
2739
|
totalAmount: string;
|
|
2733
|
-
expiresAt: string;
|
|
2734
2740
|
createdAt: string;
|
|
2735
2741
|
token: "USDC" | "USDT" | "ETH" | "MATIC";
|
|
2736
2742
|
draftId: string;
|
|
@@ -2748,9 +2754,9 @@ declare function validateQuote(quote: unknown): z.SafeParseReturnType<{
|
|
|
2748
2754
|
}, {
|
|
2749
2755
|
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
2750
2756
|
id: string;
|
|
2757
|
+
expiresAt: string;
|
|
2751
2758
|
recipientCount: number;
|
|
2752
2759
|
totalAmount: string;
|
|
2753
|
-
expiresAt: string;
|
|
2754
2760
|
createdAt: string;
|
|
2755
2761
|
token: "USDC" | "USDT" | "ETH" | "MATIC";
|
|
2756
2762
|
draftId: string;
|
|
@@ -2772,9 +2778,9 @@ declare function validateQuote(quote: unknown): z.SafeParseReturnType<{
|
|
|
2772
2778
|
declare function parseQuote(quote: unknown): {
|
|
2773
2779
|
network: "base" | "ethereum" | "arbitrum" | "polygon" | "optimism";
|
|
2774
2780
|
id: string;
|
|
2781
|
+
expiresAt: string;
|
|
2775
2782
|
recipientCount: number;
|
|
2776
2783
|
totalAmount: string;
|
|
2777
|
-
expiresAt: string;
|
|
2778
2784
|
createdAt: string;
|
|
2779
2785
|
token: "USDC" | "USDT" | "ETH" | "MATIC";
|
|
2780
2786
|
draftId: string;
|
|
@@ -3594,16 +3600,16 @@ declare const CachedTokenHolderFilterSchema: z.ZodObject<{
|
|
|
3594
3600
|
contractAddress: string;
|
|
3595
3601
|
tokenStandard: "ERC20" | "ERC721" | "ERC1155";
|
|
3596
3602
|
minBalance?: string | number | undefined;
|
|
3597
|
-
tokenId?: string | undefined;
|
|
3598
3603
|
tokenSymbol?: string | undefined;
|
|
3604
|
+
tokenId?: string | undefined;
|
|
3599
3605
|
tokenName?: string | undefined;
|
|
3600
3606
|
}, {
|
|
3601
3607
|
chain: "base" | "ethereum";
|
|
3602
3608
|
contractAddress: string;
|
|
3603
3609
|
minBalance?: string | number | undefined;
|
|
3610
|
+
tokenSymbol?: string | undefined;
|
|
3604
3611
|
tokenStandard?: "ERC20" | "ERC721" | "ERC1155" | undefined;
|
|
3605
3612
|
tokenId?: string | undefined;
|
|
3606
|
-
tokenSymbol?: string | undefined;
|
|
3607
3613
|
tokenName?: string | undefined;
|
|
3608
3614
|
}>;
|
|
3609
3615
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3612,8 +3618,8 @@ declare const CachedTokenHolderFilterSchema: z.ZodObject<{
|
|
|
3612
3618
|
contractAddress: string;
|
|
3613
3619
|
tokenStandard: "ERC20" | "ERC721" | "ERC1155";
|
|
3614
3620
|
minBalance?: string | number | undefined;
|
|
3615
|
-
tokenId?: string | undefined;
|
|
3616
3621
|
tokenSymbol?: string | undefined;
|
|
3622
|
+
tokenId?: string | undefined;
|
|
3617
3623
|
tokenName?: string | undefined;
|
|
3618
3624
|
};
|
|
3619
3625
|
}, {
|
|
@@ -3621,9 +3627,9 @@ declare const CachedTokenHolderFilterSchema: z.ZodObject<{
|
|
|
3621
3627
|
chain: "base" | "ethereum";
|
|
3622
3628
|
contractAddress: string;
|
|
3623
3629
|
minBalance?: string | number | undefined;
|
|
3630
|
+
tokenSymbol?: string | undefined;
|
|
3624
3631
|
tokenStandard?: "ERC20" | "ERC721" | "ERC1155" | undefined;
|
|
3625
3632
|
tokenId?: string | undefined;
|
|
3626
|
-
tokenSymbol?: string | undefined;
|
|
3627
3633
|
tokenName?: string | undefined;
|
|
3628
3634
|
};
|
|
3629
3635
|
}>;
|
|
@@ -3679,16 +3685,16 @@ declare const CachedTokenHolderSchema: z.ZodObject<{
|
|
|
3679
3685
|
contractAddress: string;
|
|
3680
3686
|
tokenStandard: "ERC20" | "ERC721" | "ERC1155";
|
|
3681
3687
|
minBalance?: string | number | undefined;
|
|
3682
|
-
tokenId?: string | undefined;
|
|
3683
3688
|
tokenSymbol?: string | undefined;
|
|
3689
|
+
tokenId?: string | undefined;
|
|
3684
3690
|
tokenName?: string | undefined;
|
|
3685
3691
|
}, {
|
|
3686
3692
|
chain: "base" | "ethereum";
|
|
3687
3693
|
contractAddress: string;
|
|
3688
3694
|
minBalance?: string | number | undefined;
|
|
3695
|
+
tokenSymbol?: string | undefined;
|
|
3689
3696
|
tokenStandard?: "ERC20" | "ERC721" | "ERC1155" | undefined;
|
|
3690
3697
|
tokenId?: string | undefined;
|
|
3691
|
-
tokenSymbol?: string | undefined;
|
|
3692
3698
|
tokenName?: string | undefined;
|
|
3693
3699
|
}>;
|
|
3694
3700
|
declare const OnchainFilterSchema: z.ZodObject<{
|
|
@@ -3731,16 +3737,16 @@ declare const OnchainFilterSchema: z.ZodObject<{
|
|
|
3731
3737
|
contractAddress: string;
|
|
3732
3738
|
tokenStandard: "ERC20" | "ERC721" | "ERC1155";
|
|
3733
3739
|
minBalance?: string | number | undefined;
|
|
3734
|
-
tokenId?: string | undefined;
|
|
3735
3740
|
tokenSymbol?: string | undefined;
|
|
3741
|
+
tokenId?: string | undefined;
|
|
3736
3742
|
tokenName?: string | undefined;
|
|
3737
3743
|
}, {
|
|
3738
3744
|
chain: "base" | "ethereum";
|
|
3739
3745
|
contractAddress: string;
|
|
3740
3746
|
minBalance?: string | number | undefined;
|
|
3747
|
+
tokenSymbol?: string | undefined;
|
|
3741
3748
|
tokenStandard?: "ERC20" | "ERC721" | "ERC1155" | undefined;
|
|
3742
3749
|
tokenId?: string | undefined;
|
|
3743
|
-
tokenSymbol?: string | undefined;
|
|
3744
3750
|
tokenName?: string | undefined;
|
|
3745
3751
|
}>, "many">>;
|
|
3746
3752
|
hasVerifiedWallet: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3761,8 +3767,8 @@ declare const OnchainFilterSchema: z.ZodObject<{
|
|
|
3761
3767
|
contractAddress: string;
|
|
3762
3768
|
tokenStandard: "ERC20" | "ERC721" | "ERC1155";
|
|
3763
3769
|
minBalance?: string | number | undefined;
|
|
3764
|
-
tokenId?: string | undefined;
|
|
3765
3770
|
tokenSymbol?: string | undefined;
|
|
3771
|
+
tokenId?: string | undefined;
|
|
3766
3772
|
tokenName?: string | undefined;
|
|
3767
3773
|
}[] | undefined;
|
|
3768
3774
|
}, {
|
|
@@ -3781,9 +3787,9 @@ declare const OnchainFilterSchema: z.ZodObject<{
|
|
|
3781
3787
|
chain: "base" | "ethereum";
|
|
3782
3788
|
contractAddress: string;
|
|
3783
3789
|
minBalance?: string | number | undefined;
|
|
3790
|
+
tokenSymbol?: string | undefined;
|
|
3784
3791
|
tokenStandard?: "ERC20" | "ERC721" | "ERC1155" | undefined;
|
|
3785
3792
|
tokenId?: string | undefined;
|
|
3786
|
-
tokenSymbol?: string | undefined;
|
|
3787
3793
|
tokenName?: string | undefined;
|
|
3788
3794
|
}[] | undefined;
|
|
3789
3795
|
}>;
|
|
@@ -3954,16 +3960,16 @@ declare const RecipientFilterSchema: z.ZodObject<{
|
|
|
3954
3960
|
contractAddress: string;
|
|
3955
3961
|
tokenStandard: "ERC20" | "ERC721" | "ERC1155";
|
|
3956
3962
|
minBalance?: string | number | undefined;
|
|
3957
|
-
tokenId?: string | undefined;
|
|
3958
3963
|
tokenSymbol?: string | undefined;
|
|
3964
|
+
tokenId?: string | undefined;
|
|
3959
3965
|
tokenName?: string | undefined;
|
|
3960
3966
|
}, {
|
|
3961
3967
|
chain: "base" | "ethereum";
|
|
3962
3968
|
contractAddress: string;
|
|
3963
3969
|
minBalance?: string | number | undefined;
|
|
3970
|
+
tokenSymbol?: string | undefined;
|
|
3964
3971
|
tokenStandard?: "ERC20" | "ERC721" | "ERC1155" | undefined;
|
|
3965
3972
|
tokenId?: string | undefined;
|
|
3966
|
-
tokenSymbol?: string | undefined;
|
|
3967
3973
|
tokenName?: string | undefined;
|
|
3968
3974
|
}>, "many">>;
|
|
3969
3975
|
hasVerifiedWallet: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3984,8 +3990,8 @@ declare const RecipientFilterSchema: z.ZodObject<{
|
|
|
3984
3990
|
contractAddress: string;
|
|
3985
3991
|
tokenStandard: "ERC20" | "ERC721" | "ERC1155";
|
|
3986
3992
|
minBalance?: string | number | undefined;
|
|
3987
|
-
tokenId?: string | undefined;
|
|
3988
3993
|
tokenSymbol?: string | undefined;
|
|
3994
|
+
tokenId?: string | undefined;
|
|
3989
3995
|
tokenName?: string | undefined;
|
|
3990
3996
|
}[] | undefined;
|
|
3991
3997
|
}, {
|
|
@@ -4004,9 +4010,9 @@ declare const RecipientFilterSchema: z.ZodObject<{
|
|
|
4004
4010
|
chain: "base" | "ethereum";
|
|
4005
4011
|
contractAddress: string;
|
|
4006
4012
|
minBalance?: string | number | undefined;
|
|
4013
|
+
tokenSymbol?: string | undefined;
|
|
4007
4014
|
tokenStandard?: "ERC20" | "ERC721" | "ERC1155" | undefined;
|
|
4008
4015
|
tokenId?: string | undefined;
|
|
4009
|
-
tokenSymbol?: string | undefined;
|
|
4010
4016
|
tokenName?: string | undefined;
|
|
4011
4017
|
}[] | undefined;
|
|
4012
4018
|
}>>;
|
|
@@ -4115,8 +4121,8 @@ declare const RecipientFilterSchema: z.ZodObject<{
|
|
|
4115
4121
|
contractAddress: string;
|
|
4116
4122
|
tokenStandard: "ERC20" | "ERC721" | "ERC1155";
|
|
4117
4123
|
minBalance?: string | number | undefined;
|
|
4118
|
-
tokenId?: string | undefined;
|
|
4119
4124
|
tokenSymbol?: string | undefined;
|
|
4125
|
+
tokenId?: string | undefined;
|
|
4120
4126
|
tokenName?: string | undefined;
|
|
4121
4127
|
}[] | undefined;
|
|
4122
4128
|
} | undefined;
|
|
@@ -4193,9 +4199,9 @@ declare const RecipientFilterSchema: z.ZodObject<{
|
|
|
4193
4199
|
chain: "base" | "ethereum";
|
|
4194
4200
|
contractAddress: string;
|
|
4195
4201
|
minBalance?: string | number | undefined;
|
|
4202
|
+
tokenSymbol?: string | undefined;
|
|
4196
4203
|
tokenStandard?: "ERC20" | "ERC721" | "ERC1155" | undefined;
|
|
4197
4204
|
tokenId?: string | undefined;
|
|
4198
|
-
tokenSymbol?: string | undefined;
|
|
4199
4205
|
tokenName?: string | undefined;
|
|
4200
4206
|
}[] | undefined;
|
|
4201
4207
|
} | undefined;
|
|
@@ -4311,8 +4317,8 @@ declare function parseRecipientFilter(filter: unknown): {
|
|
|
4311
4317
|
contractAddress: string;
|
|
4312
4318
|
tokenStandard: "ERC20" | "ERC721" | "ERC1155";
|
|
4313
4319
|
minBalance?: string | number | undefined;
|
|
4314
|
-
tokenId?: string | undefined;
|
|
4315
4320
|
tokenSymbol?: string | undefined;
|
|
4321
|
+
tokenId?: string | undefined;
|
|
4316
4322
|
tokenName?: string | undefined;
|
|
4317
4323
|
}[] | undefined;
|
|
4318
4324
|
} | undefined;
|
|
@@ -4393,9 +4399,9 @@ declare function safeParseRecipientFilter(filter: unknown): z.SafeParseReturnTyp
|
|
|
4393
4399
|
chain: "base" | "ethereum";
|
|
4394
4400
|
contractAddress: string;
|
|
4395
4401
|
minBalance?: string | number | undefined;
|
|
4402
|
+
tokenSymbol?: string | undefined;
|
|
4396
4403
|
tokenStandard?: "ERC20" | "ERC721" | "ERC1155" | undefined;
|
|
4397
4404
|
tokenId?: string | undefined;
|
|
4398
|
-
tokenSymbol?: string | undefined;
|
|
4399
4405
|
tokenName?: string | undefined;
|
|
4400
4406
|
}[] | undefined;
|
|
4401
4407
|
} | undefined;
|
|
@@ -4473,8 +4479,8 @@ declare function safeParseRecipientFilter(filter: unknown): z.SafeParseReturnTyp
|
|
|
4473
4479
|
contractAddress: string;
|
|
4474
4480
|
tokenStandard: "ERC20" | "ERC721" | "ERC1155";
|
|
4475
4481
|
minBalance?: string | number | undefined;
|
|
4476
|
-
tokenId?: string | undefined;
|
|
4477
4482
|
tokenSymbol?: string | undefined;
|
|
4483
|
+
tokenId?: string | undefined;
|
|
4478
4484
|
tokenName?: string | undefined;
|
|
4479
4485
|
}[] | undefined;
|
|
4480
4486
|
} | undefined;
|