@crosspost/sdk 0.1.4 → 0.1.5
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/index.cjs +9 -9
- package/dist/index.js +9 -9
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
@@ -4820,15 +4820,15 @@ var EndpointRateLimitResponseSchema = z.object({
|
|
4820
4820
|
signerId: z.string().describe("NEAR account ID")
|
4821
4821
|
}).describe("Endpoint rate limit response");
|
4822
4822
|
var TimePeriod = /* @__PURE__ */ ((TimePeriod2) => {
|
4823
|
-
TimePeriod2["
|
4824
|
-
TimePeriod2["YEARLY"] = "
|
4825
|
-
TimePeriod2["MONTHLY"] = "
|
4826
|
-
TimePeriod2["WEEKLY"] = "
|
4827
|
-
TimePeriod2["DAILY"] = "
|
4823
|
+
TimePeriod2["ALL"] = "all";
|
4824
|
+
TimePeriod2["YEARLY"] = "year";
|
4825
|
+
TimePeriod2["MONTHLY"] = "month";
|
4826
|
+
TimePeriod2["WEEKLY"] = "week";
|
4827
|
+
TimePeriod2["DAILY"] = "day";
|
4828
4828
|
return TimePeriod2;
|
4829
4829
|
})(TimePeriod || {});
|
4830
4830
|
var ActivityLeaderboardQuerySchema = z.object({
|
4831
|
-
timeframe: z.
|
4831
|
+
timeframe: z.nativeEnum(TimePeriod).optional().describe(
|
4832
4832
|
"Timeframe for the leaderboard"
|
4833
4833
|
),
|
4834
4834
|
limit: z.string().optional().transform((val) => val ? parseInt(val, 10) : void 0).pipe(z.number().min(1).max(100).optional()).describe("Maximum number of results to return (1-100)"),
|
@@ -4847,7 +4847,7 @@ var AccountActivityEntrySchema = z.object({
|
|
4847
4847
|
}).describe("Account activity entry");
|
4848
4848
|
var ActivityLeaderboardResponseSchema = EnhancedResponseSchema(
|
4849
4849
|
z.object({
|
4850
|
-
timeframe: z.
|
4850
|
+
timeframe: z.nativeEnum(TimePeriod).describe("Timeframe for the leaderboard"),
|
4851
4851
|
entries: z.array(AccountActivityEntrySchema).describe("Leaderboard entries"),
|
4852
4852
|
total: z.number().describe("Total number of entries in the leaderboard"),
|
4853
4853
|
limit: z.number().describe("Maximum number of results returned"),
|
@@ -4859,7 +4859,7 @@ var AccountActivityParamsSchema = z.object({
|
|
4859
4859
|
signerId: z.string().describe("NEAR account ID")
|
4860
4860
|
}).describe("Account activity params");
|
4861
4861
|
var AccountActivityQuerySchema = z.object({
|
4862
|
-
timeframe: z.
|
4862
|
+
timeframe: z.nativeEnum(TimePeriod).optional().describe(
|
4863
4863
|
"Timeframe for the activity"
|
4864
4864
|
)
|
4865
4865
|
}).describe("Account activity query");
|
@@ -4876,7 +4876,7 @@ var PlatformActivitySchema = z.object({
|
|
4876
4876
|
var AccountActivityResponseSchema = EnhancedResponseSchema(
|
4877
4877
|
z.object({
|
4878
4878
|
signerId: z.string().describe("NEAR account ID"),
|
4879
|
-
timeframe: z.
|
4879
|
+
timeframe: z.nativeEnum(TimePeriod).describe("Timeframe for the activity"),
|
4880
4880
|
totalPosts: z.number().describe("Total number of posts across all platforms"),
|
4881
4881
|
totalLikes: z.number().describe("Total number of likes across all platforms"),
|
4882
4882
|
totalReposts: z.number().describe("Total number of reposts across all platforms"),
|
package/dist/index.js
CHANGED
@@ -4683,15 +4683,15 @@ var EndpointRateLimitResponseSchema = z.object({
|
|
4683
4683
|
signerId: z.string().describe("NEAR account ID")
|
4684
4684
|
}).describe("Endpoint rate limit response");
|
4685
4685
|
var TimePeriod = /* @__PURE__ */ ((TimePeriod2) => {
|
4686
|
-
TimePeriod2["
|
4687
|
-
TimePeriod2["YEARLY"] = "
|
4688
|
-
TimePeriod2["MONTHLY"] = "
|
4689
|
-
TimePeriod2["WEEKLY"] = "
|
4690
|
-
TimePeriod2["DAILY"] = "
|
4686
|
+
TimePeriod2["ALL"] = "all";
|
4687
|
+
TimePeriod2["YEARLY"] = "year";
|
4688
|
+
TimePeriod2["MONTHLY"] = "month";
|
4689
|
+
TimePeriod2["WEEKLY"] = "week";
|
4690
|
+
TimePeriod2["DAILY"] = "day";
|
4691
4691
|
return TimePeriod2;
|
4692
4692
|
})(TimePeriod || {});
|
4693
4693
|
var ActivityLeaderboardQuerySchema = z.object({
|
4694
|
-
timeframe: z.
|
4694
|
+
timeframe: z.nativeEnum(TimePeriod).optional().describe(
|
4695
4695
|
"Timeframe for the leaderboard"
|
4696
4696
|
),
|
4697
4697
|
limit: z.string().optional().transform((val) => val ? parseInt(val, 10) : void 0).pipe(z.number().min(1).max(100).optional()).describe("Maximum number of results to return (1-100)"),
|
@@ -4710,7 +4710,7 @@ var AccountActivityEntrySchema = z.object({
|
|
4710
4710
|
}).describe("Account activity entry");
|
4711
4711
|
var ActivityLeaderboardResponseSchema = EnhancedResponseSchema(
|
4712
4712
|
z.object({
|
4713
|
-
timeframe: z.
|
4713
|
+
timeframe: z.nativeEnum(TimePeriod).describe("Timeframe for the leaderboard"),
|
4714
4714
|
entries: z.array(AccountActivityEntrySchema).describe("Leaderboard entries"),
|
4715
4715
|
total: z.number().describe("Total number of entries in the leaderboard"),
|
4716
4716
|
limit: z.number().describe("Maximum number of results returned"),
|
@@ -4722,7 +4722,7 @@ var AccountActivityParamsSchema = z.object({
|
|
4722
4722
|
signerId: z.string().describe("NEAR account ID")
|
4723
4723
|
}).describe("Account activity params");
|
4724
4724
|
var AccountActivityQuerySchema = z.object({
|
4725
|
-
timeframe: z.
|
4725
|
+
timeframe: z.nativeEnum(TimePeriod).optional().describe(
|
4726
4726
|
"Timeframe for the activity"
|
4727
4727
|
)
|
4728
4728
|
}).describe("Account activity query");
|
@@ -4739,7 +4739,7 @@ var PlatformActivitySchema = z.object({
|
|
4739
4739
|
var AccountActivityResponseSchema = EnhancedResponseSchema(
|
4740
4740
|
z.object({
|
4741
4741
|
signerId: z.string().describe("NEAR account ID"),
|
4742
|
-
timeframe: z.
|
4742
|
+
timeframe: z.nativeEnum(TimePeriod).describe("Timeframe for the activity"),
|
4743
4743
|
totalPosts: z.number().describe("Total number of posts across all platforms"),
|
4744
4744
|
totalLikes: z.number().describe("Total number of likes across all platforms"),
|
4745
4745
|
totalReposts: z.number().describe("Total number of reposts across all platforms"),
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@crosspost/sdk",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.5",
|
4
4
|
"description": "SDK for interacting with the Crosspost API",
|
5
5
|
"type": "module",
|
6
6
|
"main": "dist/index.cjs",
|
@@ -36,7 +36,7 @@
|
|
36
36
|
"author": "crosspost.near",
|
37
37
|
"license": "MIT",
|
38
38
|
"dependencies": {
|
39
|
-
"near-sign-verify": "^0.1.
|
39
|
+
"near-sign-verify": "^0.1.3"
|
40
40
|
},
|
41
41
|
"devDependencies": {
|
42
42
|
"@types/node": "^20.10.5",
|