@crosspost/types 0.1.14 → 0.2.1
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 +79 -56
- package/dist/index.d.cts +207 -194
- package/dist/index.d.ts +207 -194
- package/dist/index.js +75 -54
- package/package.json +1 -1
- package/src/activity.ts +87 -28
- package/src/errors.ts +6 -0
- package/src/post.ts +0 -22
- package/src/response.ts +12 -14
package/dist/index.d.cts
CHANGED
@@ -46,7 +46,9 @@ declare enum ApiErrorCode {
|
|
46
46
|
POST_DELETION_FAILED = "POST_DELETION_FAILED",
|
47
47
|
POST_INTERACTION_FAILED = "POST_INTERACTION_FAILED",
|
48
48
|
NETWORK_ERROR = "NETWORK_ERROR",
|
49
|
-
INVALID_RESPONSE = "INVALID_RESPONSE"
|
49
|
+
INVALID_RESPONSE = "INVALID_RESPONSE",
|
50
|
+
TOKEN_REFRESH_FAILED = "TOKEN_REFRESH_FAILED",
|
51
|
+
PROFILE_REFRESH_FAILED = "PROFILE_REFRESH_FAILED"
|
50
52
|
}
|
51
53
|
declare const ApiErrorCodeSchema: z.ZodEnum<[string, ...string[]]>;
|
52
54
|
/**
|
@@ -102,32 +104,17 @@ declare const ResponseMetaSchema: z.ZodObject<{
|
|
102
104
|
reset: number;
|
103
105
|
}>>;
|
104
106
|
pagination: z.ZodOptional<z.ZodObject<{
|
105
|
-
page: z.ZodOptional<z.ZodNumber>;
|
106
|
-
perPage: z.ZodOptional<z.ZodNumber>;
|
107
|
-
total: z.ZodOptional<z.ZodNumber>;
|
108
107
|
limit: z.ZodOptional<z.ZodNumber>;
|
109
108
|
offset: z.ZodOptional<z.ZodNumber>;
|
110
|
-
|
111
|
-
nextCursor: z.ZodOptional<z.ZodString>;
|
112
|
-
prevCursor: z.ZodOptional<z.ZodString>;
|
109
|
+
total: z.ZodOptional<z.ZodNumber>;
|
113
110
|
}, "strip", z.ZodTypeAny, {
|
114
111
|
limit?: number | undefined;
|
115
|
-
page?: number | undefined;
|
116
|
-
perPage?: number | undefined;
|
117
|
-
total?: number | undefined;
|
118
112
|
offset?: number | undefined;
|
119
|
-
|
120
|
-
nextCursor?: string | undefined;
|
121
|
-
prevCursor?: string | undefined;
|
113
|
+
total?: number | undefined;
|
122
114
|
}, {
|
123
115
|
limit?: number | undefined;
|
124
|
-
page?: number | undefined;
|
125
|
-
perPage?: number | undefined;
|
126
|
-
total?: number | undefined;
|
127
116
|
offset?: number | undefined;
|
128
|
-
|
129
|
-
nextCursor?: string | undefined;
|
130
|
-
prevCursor?: string | undefined;
|
117
|
+
total?: number | undefined;
|
131
118
|
}>>;
|
132
119
|
}, "strip", z.ZodTypeAny, {
|
133
120
|
requestId: string;
|
@@ -139,13 +126,8 @@ declare const ResponseMetaSchema: z.ZodObject<{
|
|
139
126
|
} | undefined;
|
140
127
|
pagination?: {
|
141
128
|
limit?: number | undefined;
|
142
|
-
page?: number | undefined;
|
143
|
-
perPage?: number | undefined;
|
144
|
-
total?: number | undefined;
|
145
129
|
offset?: number | undefined;
|
146
|
-
|
147
|
-
nextCursor?: string | undefined;
|
148
|
-
prevCursor?: string | undefined;
|
130
|
+
total?: number | undefined;
|
149
131
|
} | undefined;
|
150
132
|
}, {
|
151
133
|
requestId: string;
|
@@ -157,29 +139,24 @@ declare const ResponseMetaSchema: z.ZodObject<{
|
|
157
139
|
} | undefined;
|
158
140
|
pagination?: {
|
159
141
|
limit?: number | undefined;
|
160
|
-
page?: number | undefined;
|
161
|
-
perPage?: number | undefined;
|
162
|
-
total?: number | undefined;
|
163
142
|
offset?: number | undefined;
|
164
|
-
|
165
|
-
nextCursor?: string | undefined;
|
166
|
-
prevCursor?: string | undefined;
|
143
|
+
total?: number | undefined;
|
167
144
|
} | undefined;
|
168
145
|
}>;
|
169
146
|
declare const SuccessDetailSchema: z.ZodObject<{
|
170
147
|
platform: z.ZodString;
|
171
148
|
userId: z.ZodString;
|
172
|
-
|
149
|
+
details: z.ZodOptional<z.ZodAny>;
|
173
150
|
status: z.ZodLiteral<"success">;
|
174
151
|
}, "strip", z.ZodAny, z.objectOutputType<{
|
175
152
|
platform: z.ZodString;
|
176
153
|
userId: z.ZodString;
|
177
|
-
|
154
|
+
details: z.ZodOptional<z.ZodAny>;
|
178
155
|
status: z.ZodLiteral<"success">;
|
179
156
|
}, z.ZodAny, "strip">, z.objectInputType<{
|
180
157
|
platform: z.ZodString;
|
181
158
|
userId: z.ZodString;
|
182
|
-
|
159
|
+
details: z.ZodOptional<z.ZodAny>;
|
183
160
|
status: z.ZodLiteral<"success">;
|
184
161
|
}, z.ZodAny, "strip">>;
|
185
162
|
declare const HealthStatusSchema: z.ZodObject<{
|
@@ -195,6 +172,19 @@ declare const HealthStatusSchema: z.ZodObject<{
|
|
195
172
|
timestamp: string;
|
196
173
|
version?: string | undefined;
|
197
174
|
}>;
|
175
|
+
declare const MultiStatusSummarySchema: z.ZodObject<{
|
176
|
+
total: z.ZodNumber;
|
177
|
+
succeeded: z.ZodNumber;
|
178
|
+
failed: z.ZodNumber;
|
179
|
+
}, "strip", z.ZodTypeAny, {
|
180
|
+
total: number;
|
181
|
+
succeeded: number;
|
182
|
+
failed: number;
|
183
|
+
}, {
|
184
|
+
total: number;
|
185
|
+
succeeded: number;
|
186
|
+
failed: number;
|
187
|
+
}>;
|
198
188
|
declare const MultiStatusDataSchema: z.ZodObject<{
|
199
189
|
summary: z.ZodObject<{
|
200
190
|
total: z.ZodNumber;
|
@@ -212,17 +202,17 @@ declare const MultiStatusDataSchema: z.ZodObject<{
|
|
212
202
|
results: z.ZodArray<z.ZodObject<{
|
213
203
|
platform: z.ZodString;
|
214
204
|
userId: z.ZodString;
|
215
|
-
|
205
|
+
details: z.ZodOptional<z.ZodAny>;
|
216
206
|
status: z.ZodLiteral<"success">;
|
217
207
|
}, "strip", z.ZodAny, z.objectOutputType<{
|
218
208
|
platform: z.ZodString;
|
219
209
|
userId: z.ZodString;
|
220
|
-
|
210
|
+
details: z.ZodOptional<z.ZodAny>;
|
221
211
|
status: z.ZodLiteral<"success">;
|
222
212
|
}, z.ZodAny, "strip">, z.objectInputType<{
|
223
213
|
platform: z.ZodString;
|
224
214
|
userId: z.ZodString;
|
225
|
-
|
215
|
+
details: z.ZodOptional<z.ZodAny>;
|
226
216
|
status: z.ZodLiteral<"success">;
|
227
217
|
}, z.ZodAny, "strip">>, "many">;
|
228
218
|
errors: z.ZodArray<z.ZodObject<{
|
@@ -250,7 +240,7 @@ declare const MultiStatusDataSchema: z.ZodObject<{
|
|
250
240
|
results: z.objectOutputType<{
|
251
241
|
platform: z.ZodString;
|
252
242
|
userId: z.ZodString;
|
253
|
-
|
243
|
+
details: z.ZodOptional<z.ZodAny>;
|
254
244
|
status: z.ZodLiteral<"success">;
|
255
245
|
}, z.ZodAny, "strip">[];
|
256
246
|
errors: {
|
@@ -268,7 +258,7 @@ declare const MultiStatusDataSchema: z.ZodObject<{
|
|
268
258
|
results: z.objectInputType<{
|
269
259
|
platform: z.ZodString;
|
270
260
|
userId: z.ZodString;
|
271
|
-
|
261
|
+
details: z.ZodOptional<z.ZodAny>;
|
272
262
|
status: z.ZodLiteral<"success">;
|
273
263
|
}, z.ZodAny, "strip">[];
|
274
264
|
errors: {
|
@@ -286,6 +276,7 @@ interface ApiResponse<T> {
|
|
286
276
|
}
|
287
277
|
type ResponseMeta = z.infer<typeof ResponseMetaSchema>;
|
288
278
|
type SuccessDetail = z.infer<typeof SuccessDetailSchema>;
|
279
|
+
type MultiStatusSummary = z.infer<typeof MultiStatusSummarySchema>;
|
289
280
|
type MultiStatusData = z.infer<typeof MultiStatusDataSchema>;
|
290
281
|
type HealthStatus = z.infer<typeof HealthStatusSchema>;
|
291
282
|
|
@@ -834,25 +825,6 @@ declare const LikeResultSchema: z.ZodObject<{
|
|
834
825
|
success: boolean;
|
835
826
|
id: string;
|
836
827
|
}>;
|
837
|
-
declare const PostSuccessDetailSchema: z.ZodObject<{
|
838
|
-
platform: z.ZodNativeEnum<typeof Platform>;
|
839
|
-
userId: z.ZodString;
|
840
|
-
status: z.ZodLiteral<"success">;
|
841
|
-
postId: z.ZodOptional<z.ZodString>;
|
842
|
-
postUrl: z.ZodOptional<z.ZodString>;
|
843
|
-
}, "strip", z.ZodAny, z.objectOutputType<{
|
844
|
-
platform: z.ZodNativeEnum<typeof Platform>;
|
845
|
-
userId: z.ZodString;
|
846
|
-
status: z.ZodLiteral<"success">;
|
847
|
-
postId: z.ZodOptional<z.ZodString>;
|
848
|
-
postUrl: z.ZodOptional<z.ZodString>;
|
849
|
-
}, z.ZodAny, "strip">, z.objectInputType<{
|
850
|
-
platform: z.ZodNativeEnum<typeof Platform>;
|
851
|
-
userId: z.ZodString;
|
852
|
-
status: z.ZodLiteral<"success">;
|
853
|
-
postId: z.ZodOptional<z.ZodString>;
|
854
|
-
postUrl: z.ZodOptional<z.ZodString>;
|
855
|
-
}, z.ZodAny, "strip">>;
|
856
828
|
declare const TargetSchema: z.ZodObject<{
|
857
829
|
platform: z.ZodNativeEnum<typeof Platform>;
|
858
830
|
userId: z.ZodString;
|
@@ -946,18 +918,18 @@ declare const RepostRequestSchema: z.ZodObject<{
|
|
946
918
|
postId: z.ZodString;
|
947
919
|
}, "strip", z.ZodTypeAny, {
|
948
920
|
platform: Platform;
|
949
|
-
postId: string;
|
950
921
|
targets: {
|
951
922
|
platform: Platform;
|
952
923
|
userId: string;
|
953
924
|
}[];
|
925
|
+
postId: string;
|
954
926
|
}, {
|
955
927
|
platform: Platform;
|
956
|
-
postId: string;
|
957
928
|
targets: {
|
958
929
|
platform: Platform;
|
959
930
|
userId: string;
|
960
931
|
}[];
|
932
|
+
postId: string;
|
961
933
|
}>;
|
962
934
|
declare const QuotePostRequestSchema: z.ZodObject<{
|
963
935
|
targets: z.ZodArray<z.ZodObject<{
|
@@ -1004,7 +976,6 @@ declare const QuotePostRequestSchema: z.ZodObject<{
|
|
1004
976
|
}>, "many">;
|
1005
977
|
}, "strip", z.ZodTypeAny, {
|
1006
978
|
platform: Platform;
|
1007
|
-
postId: string;
|
1008
979
|
targets: {
|
1009
980
|
platform: Platform;
|
1010
981
|
userId: string;
|
@@ -1017,9 +988,9 @@ declare const QuotePostRequestSchema: z.ZodObject<{
|
|
1017
988
|
altText?: string | undefined;
|
1018
989
|
}[] | undefined;
|
1019
990
|
}[];
|
991
|
+
postId: string;
|
1020
992
|
}, {
|
1021
993
|
platform: Platform;
|
1022
|
-
postId: string;
|
1023
994
|
targets: {
|
1024
995
|
platform: Platform;
|
1025
996
|
userId: string;
|
@@ -1032,6 +1003,7 @@ declare const QuotePostRequestSchema: z.ZodObject<{
|
|
1032
1003
|
altText?: string | undefined;
|
1033
1004
|
}[] | undefined;
|
1034
1005
|
}[];
|
1006
|
+
postId: string;
|
1035
1007
|
}>;
|
1036
1008
|
declare const ReplyToPostRequestSchema: z.ZodObject<{
|
1037
1009
|
targets: z.ZodArray<z.ZodObject<{
|
@@ -1078,7 +1050,6 @@ declare const ReplyToPostRequestSchema: z.ZodObject<{
|
|
1078
1050
|
}>, "many">;
|
1079
1051
|
}, "strip", z.ZodTypeAny, {
|
1080
1052
|
platform: Platform;
|
1081
|
-
postId: string;
|
1082
1053
|
targets: {
|
1083
1054
|
platform: Platform;
|
1084
1055
|
userId: string;
|
@@ -1091,9 +1062,9 @@ declare const ReplyToPostRequestSchema: z.ZodObject<{
|
|
1091
1062
|
altText?: string | undefined;
|
1092
1063
|
}[] | undefined;
|
1093
1064
|
}[];
|
1065
|
+
postId: string;
|
1094
1066
|
}, {
|
1095
1067
|
platform: Platform;
|
1096
|
-
postId: string;
|
1097
1068
|
targets: {
|
1098
1069
|
platform: Platform;
|
1099
1070
|
userId: string;
|
@@ -1106,6 +1077,7 @@ declare const ReplyToPostRequestSchema: z.ZodObject<{
|
|
1106
1077
|
altText?: string | undefined;
|
1107
1078
|
}[] | undefined;
|
1108
1079
|
}[];
|
1080
|
+
postId: string;
|
1109
1081
|
}>;
|
1110
1082
|
declare const PostToDeleteSchema: z.ZodObject<{
|
1111
1083
|
platform: z.ZodNativeEnum<typeof Platform>;
|
@@ -1180,18 +1152,18 @@ declare const LikePostRequestSchema: z.ZodObject<{
|
|
1180
1152
|
postId: z.ZodString;
|
1181
1153
|
}, "strip", z.ZodTypeAny, {
|
1182
1154
|
platform: Platform;
|
1183
|
-
postId: string;
|
1184
1155
|
targets: {
|
1185
1156
|
platform: Platform;
|
1186
1157
|
userId: string;
|
1187
1158
|
}[];
|
1159
|
+
postId: string;
|
1188
1160
|
}, {
|
1189
1161
|
platform: Platform;
|
1190
|
-
postId: string;
|
1191
1162
|
targets: {
|
1192
1163
|
platform: Platform;
|
1193
1164
|
userId: string;
|
1194
1165
|
}[];
|
1166
|
+
postId: string;
|
1195
1167
|
}>;
|
1196
1168
|
declare const UnlikePostRequestSchema: z.ZodObject<{
|
1197
1169
|
targets: z.ZodArray<z.ZodObject<{
|
@@ -1208,18 +1180,18 @@ declare const UnlikePostRequestSchema: z.ZodObject<{
|
|
1208
1180
|
postId: z.ZodString;
|
1209
1181
|
}, "strip", z.ZodTypeAny, {
|
1210
1182
|
platform: Platform;
|
1211
|
-
postId: string;
|
1212
1183
|
targets: {
|
1213
1184
|
platform: Platform;
|
1214
1185
|
userId: string;
|
1215
1186
|
}[];
|
1187
|
+
postId: string;
|
1216
1188
|
}, {
|
1217
1189
|
platform: Platform;
|
1218
|
-
postId: string;
|
1219
1190
|
targets: {
|
1220
1191
|
platform: Platform;
|
1221
1192
|
userId: string;
|
1222
1193
|
}[];
|
1194
|
+
postId: string;
|
1223
1195
|
}>;
|
1224
1196
|
declare const PostResponseSchema: z.ZodUnion<[z.ZodObject<{
|
1225
1197
|
id: z.ZodString;
|
@@ -2017,94 +1989,6 @@ declare const UnlikePostResponseSchema: z.ZodObject<{
|
|
2017
1989
|
}, {
|
2018
1990
|
id: string;
|
2019
1991
|
}>;
|
2020
|
-
declare const PostMultiStatusResponseSchema: z.ZodObject<{
|
2021
|
-
summary: z.ZodObject<{
|
2022
|
-
total: z.ZodNumber;
|
2023
|
-
succeeded: z.ZodNumber;
|
2024
|
-
failed: z.ZodNumber;
|
2025
|
-
}, "strip", z.ZodTypeAny, {
|
2026
|
-
total: number;
|
2027
|
-
succeeded: number;
|
2028
|
-
failed: number;
|
2029
|
-
}, {
|
2030
|
-
total: number;
|
2031
|
-
succeeded: number;
|
2032
|
-
failed: number;
|
2033
|
-
}>;
|
2034
|
-
results: z.ZodArray<z.ZodObject<{
|
2035
|
-
platform: z.ZodNativeEnum<typeof Platform>;
|
2036
|
-
userId: z.ZodString;
|
2037
|
-
status: z.ZodLiteral<"success">;
|
2038
|
-
postId: z.ZodOptional<z.ZodString>;
|
2039
|
-
postUrl: z.ZodOptional<z.ZodString>;
|
2040
|
-
}, "strip", z.ZodAny, z.objectOutputType<{
|
2041
|
-
platform: z.ZodNativeEnum<typeof Platform>;
|
2042
|
-
userId: z.ZodString;
|
2043
|
-
status: z.ZodLiteral<"success">;
|
2044
|
-
postId: z.ZodOptional<z.ZodString>;
|
2045
|
-
postUrl: z.ZodOptional<z.ZodString>;
|
2046
|
-
}, z.ZodAny, "strip">, z.objectInputType<{
|
2047
|
-
platform: z.ZodNativeEnum<typeof Platform>;
|
2048
|
-
userId: z.ZodString;
|
2049
|
-
status: z.ZodLiteral<"success">;
|
2050
|
-
postId: z.ZodOptional<z.ZodString>;
|
2051
|
-
postUrl: z.ZodOptional<z.ZodString>;
|
2052
|
-
}, z.ZodAny, "strip">>, "many">;
|
2053
|
-
errors: z.ZodArray<z.ZodObject<{
|
2054
|
-
message: z.ZodString;
|
2055
|
-
code: z.ZodEnum<[string, ...string[]]>;
|
2056
|
-
recoverable: z.ZodBoolean;
|
2057
|
-
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
2058
|
-
}, "strip", z.ZodTypeAny, {
|
2059
|
-
code: string;
|
2060
|
-
message: string;
|
2061
|
-
recoverable: boolean;
|
2062
|
-
details?: Record<string, unknown> | undefined;
|
2063
|
-
}, {
|
2064
|
-
code: string;
|
2065
|
-
message: string;
|
2066
|
-
recoverable: boolean;
|
2067
|
-
details?: Record<string, unknown> | undefined;
|
2068
|
-
}>, "many">;
|
2069
|
-
}, "strip", z.ZodTypeAny, {
|
2070
|
-
summary: {
|
2071
|
-
total: number;
|
2072
|
-
succeeded: number;
|
2073
|
-
failed: number;
|
2074
|
-
};
|
2075
|
-
results: z.objectOutputType<{
|
2076
|
-
platform: z.ZodNativeEnum<typeof Platform>;
|
2077
|
-
userId: z.ZodString;
|
2078
|
-
status: z.ZodLiteral<"success">;
|
2079
|
-
postId: z.ZodOptional<z.ZodString>;
|
2080
|
-
postUrl: z.ZodOptional<z.ZodString>;
|
2081
|
-
}, z.ZodAny, "strip">[];
|
2082
|
-
errors: {
|
2083
|
-
code: string;
|
2084
|
-
message: string;
|
2085
|
-
recoverable: boolean;
|
2086
|
-
details?: Record<string, unknown> | undefined;
|
2087
|
-
}[];
|
2088
|
-
}, {
|
2089
|
-
summary: {
|
2090
|
-
total: number;
|
2091
|
-
succeeded: number;
|
2092
|
-
failed: number;
|
2093
|
-
};
|
2094
|
-
results: z.objectInputType<{
|
2095
|
-
platform: z.ZodNativeEnum<typeof Platform>;
|
2096
|
-
userId: z.ZodString;
|
2097
|
-
status: z.ZodLiteral<"success">;
|
2098
|
-
postId: z.ZodOptional<z.ZodString>;
|
2099
|
-
postUrl: z.ZodOptional<z.ZodString>;
|
2100
|
-
}, z.ZodAny, "strip">[];
|
2101
|
-
errors: {
|
2102
|
-
code: string;
|
2103
|
-
message: string;
|
2104
|
-
recoverable: boolean;
|
2105
|
-
details?: Record<string, unknown> | undefined;
|
2106
|
-
}[];
|
2107
|
-
}>;
|
2108
1992
|
type Media = z.infer<typeof MediaSchema>;
|
2109
1993
|
type MediaContent = z.infer<typeof MediaContentSchema>;
|
2110
1994
|
type PostMetrics = z.infer<typeof PostMetricsSchema>;
|
@@ -2113,7 +1997,6 @@ type PostContent = z.infer<typeof PostContentSchema>;
|
|
2113
1997
|
type PostResult = z.infer<typeof PostResultSchema>;
|
2114
1998
|
type DeleteResult = z.infer<typeof DeleteResultSchema>;
|
2115
1999
|
type LikeResult = z.infer<typeof LikeResultSchema>;
|
2116
|
-
type PostSuccessDetail = z.infer<typeof PostSuccessDetailSchema>;
|
2117
2000
|
type Target = z.infer<typeof TargetSchema>;
|
2118
2001
|
type PostToDelete = z.infer<typeof PostToDeleteSchema>;
|
2119
2002
|
type CreatePostRequest = z.infer<typeof CreatePostRequestSchema>;
|
@@ -2123,7 +2006,6 @@ type ReplyToPostRequest = z.infer<typeof ReplyToPostRequestSchema>;
|
|
2123
2006
|
type DeletePostRequest = z.infer<typeof DeletePostRequestSchema>;
|
2124
2007
|
type LikePostRequest = z.infer<typeof LikePostRequestSchema>;
|
2125
2008
|
type UnlikePostRequest = z.infer<typeof UnlikePostRequestSchema>;
|
2126
|
-
type PostResponse = z.infer<typeof PostResponseSchema>;
|
2127
2009
|
type CreatePostResponse = z.infer<typeof CreatePostResponseSchema>;
|
2128
2010
|
type RepostResponse = z.infer<typeof RepostResponseSchema>;
|
2129
2011
|
type QuotePostResponse = z.infer<typeof QuotePostResponseSchema>;
|
@@ -2131,7 +2013,6 @@ type ReplyToPostResponse = z.infer<typeof ReplyToPostResponseSchema>;
|
|
2131
2013
|
type DeletePostResponse = z.infer<typeof DeletePostResponseSchema>;
|
2132
2014
|
type LikePostResponse = z.infer<typeof LikePostResponseSchema>;
|
2133
2015
|
type UnlikePostResponse = z.infer<typeof UnlikePostResponseSchema>;
|
2134
|
-
type PostMultiStatusResponse = z.infer<typeof PostMultiStatusResponseSchema>;
|
2135
2016
|
|
2136
2017
|
declare const RateLimitEndpointParamSchema: z.ZodObject<{
|
2137
2018
|
endpoint: z.ZodOptional<z.ZodString>;
|
@@ -2683,6 +2564,15 @@ type AllRateLimitsResponse = z.infer<typeof AllRateLimitsResponseSchema>;
|
|
2683
2564
|
type RateLimitResponse = z.infer<typeof RateLimitResponseSchema>;
|
2684
2565
|
type EndpointRateLimitResponse = z.infer<typeof EndpointRateLimitResponseSchema>;
|
2685
2566
|
|
2567
|
+
declare enum ActivityType {
|
2568
|
+
POST = "post",
|
2569
|
+
REPOST = "repost",
|
2570
|
+
REPLY = "reply",
|
2571
|
+
QUOTE = "quote",
|
2572
|
+
LIKE = "like",
|
2573
|
+
UNLIKE = "unlike",
|
2574
|
+
DELETE = "delete"
|
2575
|
+
}
|
2686
2576
|
declare enum TimePeriod {
|
2687
2577
|
ALL = "all",
|
2688
2578
|
YEARLY = "year",
|
@@ -2690,18 +2580,72 @@ declare enum TimePeriod {
|
|
2690
2580
|
WEEKLY = "week",
|
2691
2581
|
DAILY = "day"
|
2692
2582
|
}
|
2693
|
-
|
2694
|
-
|
2583
|
+
/**
|
2584
|
+
* Schema for filtering by platform, activity type, and timeframe
|
2585
|
+
* Handles comma-separated lists for platforms and types
|
2586
|
+
*/
|
2587
|
+
declare const FilterSchema: z.ZodObject<{
|
2588
|
+
platforms: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, string[] | undefined, string | undefined>, z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Platform>, "many">>>;
|
2589
|
+
types: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, string[] | undefined, string | undefined>, z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ActivityType>, "many">>>;
|
2590
|
+
timeframe: z.ZodEffects<z.ZodOptional<z.ZodNativeEnum<typeof TimePeriod>>, TimePeriod, TimePeriod | undefined>;
|
2591
|
+
}, "strip", z.ZodTypeAny, {
|
2592
|
+
timeframe: TimePeriod;
|
2593
|
+
platforms?: Platform[] | undefined;
|
2594
|
+
types?: ActivityType[] | undefined;
|
2595
|
+
}, {
|
2596
|
+
platforms?: string | undefined;
|
2597
|
+
types?: string | undefined;
|
2598
|
+
timeframe?: TimePeriod | undefined;
|
2599
|
+
}>;
|
2600
|
+
/**
|
2601
|
+
* Common pagination schema used across queries
|
2602
|
+
*/
|
2603
|
+
declare const PaginationSchema: z.ZodObject<{
|
2695
2604
|
limit: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, number | undefined, string | undefined>, z.ZodOptional<z.ZodNumber>>;
|
2696
2605
|
offset: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, number | undefined, string | undefined>, z.ZodOptional<z.ZodNumber>>;
|
2697
2606
|
}, "strip", z.ZodTypeAny, {
|
2698
2607
|
limit?: number | undefined;
|
2699
2608
|
offset?: number | undefined;
|
2700
|
-
timeframe?: TimePeriod | undefined;
|
2701
2609
|
}, {
|
2702
2610
|
limit?: string | undefined;
|
2703
2611
|
offset?: string | undefined;
|
2704
|
-
|
2612
|
+
}>;
|
2613
|
+
/**
|
2614
|
+
* Query schema for leaderboard endpoints
|
2615
|
+
*/
|
2616
|
+
declare const ActivityLeaderboardQuerySchema: z.ZodObject<z.objectUtil.extendShape<{
|
2617
|
+
filter: z.ZodOptional<z.ZodObject<{
|
2618
|
+
platforms: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, string[] | undefined, string | undefined>, z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Platform>, "many">>>;
|
2619
|
+
types: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, string[] | undefined, string | undefined>, z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ActivityType>, "many">>>;
|
2620
|
+
timeframe: z.ZodEffects<z.ZodOptional<z.ZodNativeEnum<typeof TimePeriod>>, TimePeriod, TimePeriod | undefined>;
|
2621
|
+
}, "strip", z.ZodTypeAny, {
|
2622
|
+
timeframe: TimePeriod;
|
2623
|
+
platforms?: Platform[] | undefined;
|
2624
|
+
types?: ActivityType[] | undefined;
|
2625
|
+
}, {
|
2626
|
+
platforms?: string | undefined;
|
2627
|
+
types?: string | undefined;
|
2628
|
+
timeframe?: TimePeriod | undefined;
|
2629
|
+
}>>;
|
2630
|
+
}, {
|
2631
|
+
limit: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, number | undefined, string | undefined>, z.ZodOptional<z.ZodNumber>>;
|
2632
|
+
offset: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, number | undefined, string | undefined>, z.ZodOptional<z.ZodNumber>>;
|
2633
|
+
}>, "strip", z.ZodTypeAny, {
|
2634
|
+
filter?: {
|
2635
|
+
timeframe: TimePeriod;
|
2636
|
+
platforms?: Platform[] | undefined;
|
2637
|
+
types?: ActivityType[] | undefined;
|
2638
|
+
} | undefined;
|
2639
|
+
limit?: number | undefined;
|
2640
|
+
offset?: number | undefined;
|
2641
|
+
}, {
|
2642
|
+
filter?: {
|
2643
|
+
platforms?: string | undefined;
|
2644
|
+
types?: string | undefined;
|
2645
|
+
timeframe?: TimePeriod | undefined;
|
2646
|
+
} | undefined;
|
2647
|
+
limit?: string | undefined;
|
2648
|
+
offset?: string | undefined;
|
2705
2649
|
}>;
|
2706
2650
|
declare const AccountActivityEntrySchema: z.ZodObject<{
|
2707
2651
|
signerId: z.ZodString;
|
@@ -2713,6 +2657,7 @@ declare const AccountActivityEntrySchema: z.ZodObject<{
|
|
2713
2657
|
totalScore: z.ZodNumber;
|
2714
2658
|
rank: z.ZodNumber;
|
2715
2659
|
lastActive: z.ZodString;
|
2660
|
+
firstPostTimestamp: z.ZodString;
|
2716
2661
|
}, "strip", z.ZodTypeAny, {
|
2717
2662
|
signerId: string;
|
2718
2663
|
totalPosts: number;
|
@@ -2723,6 +2668,7 @@ declare const AccountActivityEntrySchema: z.ZodObject<{
|
|
2723
2668
|
totalScore: number;
|
2724
2669
|
rank: number;
|
2725
2670
|
lastActive: string;
|
2671
|
+
firstPostTimestamp: string;
|
2726
2672
|
}, {
|
2727
2673
|
signerId: string;
|
2728
2674
|
totalPosts: number;
|
@@ -2733,6 +2679,7 @@ declare const AccountActivityEntrySchema: z.ZodObject<{
|
|
2733
2679
|
totalScore: number;
|
2734
2680
|
rank: number;
|
2735
2681
|
lastActive: string;
|
2682
|
+
firstPostTimestamp: string;
|
2736
2683
|
}>;
|
2737
2684
|
declare const ActivityLeaderboardResponseSchema: z.ZodObject<{
|
2738
2685
|
timeframe: z.ZodNativeEnum<typeof TimePeriod>;
|
@@ -2746,6 +2693,7 @@ declare const ActivityLeaderboardResponseSchema: z.ZodObject<{
|
|
2746
2693
|
totalScore: z.ZodNumber;
|
2747
2694
|
rank: z.ZodNumber;
|
2748
2695
|
lastActive: z.ZodString;
|
2696
|
+
firstPostTimestamp: z.ZodString;
|
2749
2697
|
}, "strip", z.ZodTypeAny, {
|
2750
2698
|
signerId: string;
|
2751
2699
|
totalPosts: number;
|
@@ -2756,6 +2704,7 @@ declare const ActivityLeaderboardResponseSchema: z.ZodObject<{
|
|
2756
2704
|
totalScore: number;
|
2757
2705
|
rank: number;
|
2758
2706
|
lastActive: string;
|
2707
|
+
firstPostTimestamp: string;
|
2759
2708
|
}, {
|
2760
2709
|
signerId: string;
|
2761
2710
|
totalPosts: number;
|
@@ -2766,9 +2715,10 @@ declare const ActivityLeaderboardResponseSchema: z.ZodObject<{
|
|
2766
2715
|
totalScore: number;
|
2767
2716
|
rank: number;
|
2768
2717
|
lastActive: string;
|
2718
|
+
firstPostTimestamp: string;
|
2769
2719
|
}>, "many">;
|
2770
2720
|
generatedAt: z.ZodString;
|
2771
|
-
|
2721
|
+
platforms: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Platform>, "many">>;
|
2772
2722
|
}, "strip", z.ZodTypeAny, {
|
2773
2723
|
entries: {
|
2774
2724
|
signerId: string;
|
@@ -2780,10 +2730,11 @@ declare const ActivityLeaderboardResponseSchema: z.ZodObject<{
|
|
2780
2730
|
totalScore: number;
|
2781
2731
|
rank: number;
|
2782
2732
|
lastActive: string;
|
2733
|
+
firstPostTimestamp: string;
|
2783
2734
|
}[];
|
2784
2735
|
timeframe: TimePeriod;
|
2785
2736
|
generatedAt: string;
|
2786
|
-
|
2737
|
+
platforms?: Platform[] | undefined;
|
2787
2738
|
}, {
|
2788
2739
|
entries: {
|
2789
2740
|
signerId: string;
|
@@ -2795,10 +2746,11 @@ declare const ActivityLeaderboardResponseSchema: z.ZodObject<{
|
|
2795
2746
|
totalScore: number;
|
2796
2747
|
rank: number;
|
2797
2748
|
lastActive: string;
|
2749
|
+
firstPostTimestamp: string;
|
2798
2750
|
}[];
|
2799
2751
|
timeframe: TimePeriod;
|
2800
2752
|
generatedAt: string;
|
2801
|
-
|
2753
|
+
platforms?: Platform[] | undefined;
|
2802
2754
|
}>;
|
2803
2755
|
declare const AccountActivityParamsSchema: z.ZodObject<{
|
2804
2756
|
signerId: z.ZodString;
|
@@ -2807,12 +2759,42 @@ declare const AccountActivityParamsSchema: z.ZodObject<{
|
|
2807
2759
|
}, {
|
2808
2760
|
signerId: string;
|
2809
2761
|
}>;
|
2810
|
-
|
2811
|
-
|
2812
|
-
|
2813
|
-
|
2762
|
+
/**
|
2763
|
+
* Query schema for account activity endpoints
|
2764
|
+
*/
|
2765
|
+
declare const AccountActivityQuerySchema: z.ZodObject<z.objectUtil.extendShape<{
|
2766
|
+
filter: z.ZodOptional<z.ZodObject<{
|
2767
|
+
platforms: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, string[] | undefined, string | undefined>, z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Platform>, "many">>>;
|
2768
|
+
types: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, string[] | undefined, string | undefined>, z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ActivityType>, "many">>>;
|
2769
|
+
timeframe: z.ZodEffects<z.ZodOptional<z.ZodNativeEnum<typeof TimePeriod>>, TimePeriod, TimePeriod | undefined>;
|
2770
|
+
}, "strip", z.ZodTypeAny, {
|
2771
|
+
timeframe: TimePeriod;
|
2772
|
+
platforms?: Platform[] | undefined;
|
2773
|
+
types?: ActivityType[] | undefined;
|
2774
|
+
}, {
|
2775
|
+
platforms?: string | undefined;
|
2776
|
+
types?: string | undefined;
|
2777
|
+
timeframe?: TimePeriod | undefined;
|
2778
|
+
}>>;
|
2814
2779
|
}, {
|
2815
|
-
|
2780
|
+
limit: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, number | undefined, string | undefined>, z.ZodOptional<z.ZodNumber>>;
|
2781
|
+
offset: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, number | undefined, string | undefined>, z.ZodOptional<z.ZodNumber>>;
|
2782
|
+
}>, "strip", z.ZodTypeAny, {
|
2783
|
+
filter?: {
|
2784
|
+
timeframe: TimePeriod;
|
2785
|
+
platforms?: Platform[] | undefined;
|
2786
|
+
types?: ActivityType[] | undefined;
|
2787
|
+
} | undefined;
|
2788
|
+
limit?: number | undefined;
|
2789
|
+
offset?: number | undefined;
|
2790
|
+
}, {
|
2791
|
+
filter?: {
|
2792
|
+
platforms?: string | undefined;
|
2793
|
+
types?: string | undefined;
|
2794
|
+
timeframe?: TimePeriod | undefined;
|
2795
|
+
} | undefined;
|
2796
|
+
limit?: string | undefined;
|
2797
|
+
offset?: string | undefined;
|
2816
2798
|
}>;
|
2817
2799
|
declare const PlatformActivitySchema: z.ZodObject<{
|
2818
2800
|
platform: z.ZodNativeEnum<typeof Platform>;
|
@@ -2931,26 +2913,48 @@ declare const AccountPostsParamsSchema: z.ZodObject<{
|
|
2931
2913
|
}, {
|
2932
2914
|
signerId: string;
|
2933
2915
|
}>;
|
2934
|
-
|
2935
|
-
|
2916
|
+
/**
|
2917
|
+
* Query schema for account posts endpoints
|
2918
|
+
*/
|
2919
|
+
declare const AccountPostsQuerySchema: z.ZodObject<z.objectUtil.extendShape<{
|
2920
|
+
filter: z.ZodOptional<z.ZodObject<{
|
2921
|
+
platforms: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, string[] | undefined, string | undefined>, z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Platform>, "many">>>;
|
2922
|
+
types: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, string[] | undefined, string | undefined>, z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ActivityType>, "many">>>;
|
2923
|
+
timeframe: z.ZodEffects<z.ZodOptional<z.ZodNativeEnum<typeof TimePeriod>>, TimePeriod, TimePeriod | undefined>;
|
2924
|
+
}, "strip", z.ZodTypeAny, {
|
2925
|
+
timeframe: TimePeriod;
|
2926
|
+
platforms?: Platform[] | undefined;
|
2927
|
+
types?: ActivityType[] | undefined;
|
2928
|
+
}, {
|
2929
|
+
platforms?: string | undefined;
|
2930
|
+
types?: string | undefined;
|
2931
|
+
timeframe?: TimePeriod | undefined;
|
2932
|
+
}>>;
|
2933
|
+
}, {
|
2936
2934
|
limit: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, number | undefined, string | undefined>, z.ZodOptional<z.ZodNumber>>;
|
2937
2935
|
offset: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, number | undefined, string | undefined>, z.ZodOptional<z.ZodNumber>>;
|
2938
|
-
|
2939
|
-
|
2940
|
-
|
2941
|
-
|
2936
|
+
}>, "strip", z.ZodTypeAny, {
|
2937
|
+
filter?: {
|
2938
|
+
timeframe: TimePeriod;
|
2939
|
+
platforms?: Platform[] | undefined;
|
2940
|
+
types?: ActivityType[] | undefined;
|
2941
|
+
} | undefined;
|
2942
2942
|
limit?: number | undefined;
|
2943
2943
|
offset?: number | undefined;
|
2944
2944
|
}, {
|
2945
|
-
|
2946
|
-
|
2945
|
+
filter?: {
|
2946
|
+
platforms?: string | undefined;
|
2947
|
+
types?: string | undefined;
|
2948
|
+
timeframe?: TimePeriod | undefined;
|
2949
|
+
} | undefined;
|
2947
2950
|
limit?: string | undefined;
|
2948
2951
|
offset?: string | undefined;
|
2949
2952
|
}>;
|
2950
2953
|
declare const AccountPostSchema: z.ZodObject<{
|
2951
2954
|
id: z.ZodString;
|
2952
2955
|
platform: z.ZodNativeEnum<typeof Platform>;
|
2953
|
-
|
2956
|
+
userId: z.ZodString;
|
2957
|
+
type: z.ZodNativeEnum<typeof ActivityType>;
|
2954
2958
|
content: z.ZodOptional<z.ZodString>;
|
2955
2959
|
url: z.ZodOptional<z.ZodString>;
|
2956
2960
|
createdAt: z.ZodString;
|
@@ -2973,8 +2977,9 @@ declare const AccountPostSchema: z.ZodObject<{
|
|
2973
2977
|
inReplyToId: z.ZodOptional<z.ZodString>;
|
2974
2978
|
quotedPostId: z.ZodOptional<z.ZodString>;
|
2975
2979
|
}, "strip", z.ZodTypeAny, {
|
2976
|
-
type:
|
2980
|
+
type: ActivityType;
|
2977
2981
|
platform: Platform;
|
2982
|
+
userId: string;
|
2978
2983
|
id: string;
|
2979
2984
|
createdAt: string;
|
2980
2985
|
url?: string | undefined;
|
@@ -2988,8 +2993,9 @@ declare const AccountPostSchema: z.ZodObject<{
|
|
2988
2993
|
quotedPostId?: string | undefined;
|
2989
2994
|
content?: string | undefined;
|
2990
2995
|
}, {
|
2991
|
-
type:
|
2996
|
+
type: ActivityType;
|
2992
2997
|
platform: Platform;
|
2998
|
+
userId: string;
|
2993
2999
|
id: string;
|
2994
3000
|
createdAt: string;
|
2995
3001
|
url?: string | undefined;
|
@@ -3008,7 +3014,8 @@ declare const AccountPostsResponseSchema: z.ZodObject<{
|
|
3008
3014
|
posts: z.ZodArray<z.ZodObject<{
|
3009
3015
|
id: z.ZodString;
|
3010
3016
|
platform: z.ZodNativeEnum<typeof Platform>;
|
3011
|
-
|
3017
|
+
userId: z.ZodString;
|
3018
|
+
type: z.ZodNativeEnum<typeof ActivityType>;
|
3012
3019
|
content: z.ZodOptional<z.ZodString>;
|
3013
3020
|
url: z.ZodOptional<z.ZodString>;
|
3014
3021
|
createdAt: z.ZodString;
|
@@ -3031,8 +3038,9 @@ declare const AccountPostsResponseSchema: z.ZodObject<{
|
|
3031
3038
|
inReplyToId: z.ZodOptional<z.ZodString>;
|
3032
3039
|
quotedPostId: z.ZodOptional<z.ZodString>;
|
3033
3040
|
}, "strip", z.ZodTypeAny, {
|
3034
|
-
type:
|
3041
|
+
type: ActivityType;
|
3035
3042
|
platform: Platform;
|
3043
|
+
userId: string;
|
3036
3044
|
id: string;
|
3037
3045
|
createdAt: string;
|
3038
3046
|
url?: string | undefined;
|
@@ -3046,8 +3054,9 @@ declare const AccountPostsResponseSchema: z.ZodObject<{
|
|
3046
3054
|
quotedPostId?: string | undefined;
|
3047
3055
|
content?: string | undefined;
|
3048
3056
|
}, {
|
3049
|
-
type:
|
3057
|
+
type: ActivityType;
|
3050
3058
|
platform: Platform;
|
3059
|
+
userId: string;
|
3051
3060
|
id: string;
|
3052
3061
|
createdAt: string;
|
3053
3062
|
url?: string | undefined;
|
@@ -3061,12 +3070,13 @@ declare const AccountPostsResponseSchema: z.ZodObject<{
|
|
3061
3070
|
quotedPostId?: string | undefined;
|
3062
3071
|
content?: string | undefined;
|
3063
3072
|
}>, "many">;
|
3064
|
-
|
3065
|
-
|
3073
|
+
platforms: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
3074
|
+
types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
3066
3075
|
}, "strip", z.ZodTypeAny, {
|
3067
3076
|
posts: {
|
3068
|
-
type:
|
3077
|
+
type: ActivityType;
|
3069
3078
|
platform: Platform;
|
3079
|
+
userId: string;
|
3070
3080
|
id: string;
|
3071
3081
|
createdAt: string;
|
3072
3082
|
url?: string | undefined;
|
@@ -3081,12 +3091,13 @@ declare const AccountPostsResponseSchema: z.ZodObject<{
|
|
3081
3091
|
content?: string | undefined;
|
3082
3092
|
}[];
|
3083
3093
|
signerId: string;
|
3084
|
-
|
3085
|
-
|
3094
|
+
platforms?: string[] | undefined;
|
3095
|
+
types?: string[] | undefined;
|
3086
3096
|
}, {
|
3087
3097
|
posts: {
|
3088
|
-
type:
|
3098
|
+
type: ActivityType;
|
3089
3099
|
platform: Platform;
|
3100
|
+
userId: string;
|
3090
3101
|
id: string;
|
3091
3102
|
createdAt: string;
|
3092
3103
|
url?: string | undefined;
|
@@ -3101,8 +3112,8 @@ declare const AccountPostsResponseSchema: z.ZodObject<{
|
|
3101
3112
|
content?: string | undefined;
|
3102
3113
|
}[];
|
3103
3114
|
signerId: string;
|
3104
|
-
|
3105
|
-
|
3115
|
+
platforms?: string[] | undefined;
|
3116
|
+
types?: string[] | undefined;
|
3106
3117
|
}>;
|
3107
3118
|
/**
|
3108
3119
|
* Interface for account activity Response
|
@@ -3127,6 +3138,7 @@ interface PostRecord {
|
|
3127
3138
|
p: string;
|
3128
3139
|
t: number;
|
3129
3140
|
u: string;
|
3141
|
+
ty: string;
|
3130
3142
|
}
|
3131
3143
|
type ActivityLeaderboardQuery = z.infer<typeof ActivityLeaderboardQuerySchema>;
|
3132
3144
|
type AccountActivityEntry = z.infer<typeof AccountActivityEntrySchema>;
|
@@ -3139,6 +3151,7 @@ type AccountPostsParams = z.infer<typeof AccountPostsParamsSchema>;
|
|
3139
3151
|
type AccountPostsQuery = z.infer<typeof AccountPostsQuerySchema>;
|
3140
3152
|
type AccountPost = z.infer<typeof AccountPostSchema>;
|
3141
3153
|
type AccountPostsResponse = z.infer<typeof AccountPostsResponseSchema>;
|
3154
|
+
type Filter = z.infer<typeof FilterSchema>;
|
3142
3155
|
|
3143
3156
|
declare const UserProfileSchema: z.ZodObject<{
|
3144
3157
|
userId: z.ZodString;
|
@@ -3215,4 +3228,4 @@ declare const ProfileRefreshResponseSchema: z.ZodObject<{
|
|
3215
3228
|
type UserProfile = z.infer<typeof UserProfileSchema>;
|
3216
3229
|
type ProfileRefreshResponse = z.infer<typeof ProfileRefreshResponseSchema>;
|
3217
3230
|
|
3218
|
-
export { type AccountActivity, type AccountActivityEntry, AccountActivityEntrySchema, type AccountActivityParams, AccountActivityParamsSchema, type AccountActivityQuery, AccountActivityQuerySchema, type AccountActivityResponse, type AccountPost, AccountPostSchema, type AccountPostsParams, AccountPostsParamsSchema, type AccountPostsQuery, AccountPostsQuerySchema, type AccountPostsResponse, type ActivityLeaderboardQuery, ActivityLeaderboardQuerySchema, type ActivityLeaderboardResponse, type AllRateLimitsResponse, AllRateLimitsResponseSchema, ApiErrorCode, ApiErrorCodeSchema, type ApiErrorResponse, type ApiResponse, type AuthCallbackQuery, AuthCallbackQuerySchema, type AuthCallbackResponse, AuthCallbackResponseSchema, type AuthInitRequest, AuthInitRequestSchema, type AuthRevokeResponse, AuthRevokeResponseSchema, type AuthStatus, type AuthStatusParams, AuthStatusParamsSchema, type AuthStatusResponse, AuthStatusResponseSchema, AuthStatusSchema, type AuthTokenRequest, AuthTokenRequestSchema, type AuthUrlResponse, AuthUrlResponseSchema, type ConnectedAccount, ConnectedAccountSchema, type ConnectedAccountsResponse, ConnectedAccountsResponseSchema, type CreatePostRequest, CreatePostRequestSchema, type CreatePostResponse, CreatePostResponseSchema, type DeletePostRequest, DeletePostRequestSchema, type DeletePostResponse, DeletePostResponseSchema, type DeleteResult, DeleteResultSchema, type EndpointRateLimitResponse, EndpointRateLimitResponseSchema, type ErrorDetail, ErrorDetailSchema, type ErrorDetails, type HealthStatus, HealthStatusSchema, type LikePostRequest, LikePostRequestSchema, type LikePostResponse, LikePostResponseSchema, type LikeResult, LikeResultSchema, type Media, type MediaContent, MediaContentSchema, MediaSchema, type MultiStatusData, MultiStatusDataSchema, type NearAuthorizationRequest, NearAuthorizationRequestSchema, type NearAuthorizationResponse, NearAuthorizationResponseSchema, type NearAuthorizationStatusResponse, NearAuthorizationStatusResponseSchema, type NearUnauthorizationResponse, NearUnauthorizationResponseSchema, Platform, type PlatformAccountActivity, type PlatformActivity, PlatformActivitySchema, type PlatformName, type PlatformParam, PlatformParamSchema, type PlatformRateLimit, PlatformRateLimitSchema, PlatformSchema, type Post, type PostContent, PostContentSchema, type PostMetrics, PostMetricsSchema, type
|
3231
|
+
export { type AccountActivity, type AccountActivityEntry, AccountActivityEntrySchema, type AccountActivityParams, AccountActivityParamsSchema, type AccountActivityQuery, AccountActivityQuerySchema, type AccountActivityResponse, type AccountPost, AccountPostSchema, type AccountPostsParams, AccountPostsParamsSchema, type AccountPostsQuery, AccountPostsQuerySchema, type AccountPostsResponse, type ActivityLeaderboardQuery, ActivityLeaderboardQuerySchema, type ActivityLeaderboardResponse, ActivityType, type AllRateLimitsResponse, AllRateLimitsResponseSchema, ApiErrorCode, ApiErrorCodeSchema, type ApiErrorResponse, type ApiResponse, type AuthCallbackQuery, AuthCallbackQuerySchema, type AuthCallbackResponse, AuthCallbackResponseSchema, type AuthInitRequest, AuthInitRequestSchema, type AuthRevokeResponse, AuthRevokeResponseSchema, type AuthStatus, type AuthStatusParams, AuthStatusParamsSchema, type AuthStatusResponse, AuthStatusResponseSchema, AuthStatusSchema, type AuthTokenRequest, AuthTokenRequestSchema, type AuthUrlResponse, AuthUrlResponseSchema, type ConnectedAccount, ConnectedAccountSchema, type ConnectedAccountsResponse, ConnectedAccountsResponseSchema, type CreatePostRequest, CreatePostRequestSchema, type CreatePostResponse, CreatePostResponseSchema, type DeletePostRequest, DeletePostRequestSchema, type DeletePostResponse, DeletePostResponseSchema, type DeleteResult, DeleteResultSchema, type EndpointRateLimitResponse, EndpointRateLimitResponseSchema, type ErrorDetail, ErrorDetailSchema, type ErrorDetails, type Filter, FilterSchema, type HealthStatus, HealthStatusSchema, type LikePostRequest, LikePostRequestSchema, type LikePostResponse, LikePostResponseSchema, type LikeResult, LikeResultSchema, type Media, type MediaContent, MediaContentSchema, MediaSchema, type MultiStatusData, MultiStatusDataSchema, type MultiStatusSummary, MultiStatusSummarySchema, type NearAuthorizationRequest, NearAuthorizationRequestSchema, type NearAuthorizationResponse, NearAuthorizationResponseSchema, type NearAuthorizationStatusResponse, NearAuthorizationStatusResponseSchema, type NearUnauthorizationResponse, NearUnauthorizationResponseSchema, PaginationSchema, Platform, type PlatformAccountActivity, type PlatformActivity, PlatformActivitySchema, type PlatformName, type PlatformParam, PlatformParamSchema, type PlatformRateLimit, PlatformRateLimitSchema, PlatformSchema, type Post, type PostContent, PostContentSchema, type PostMetrics, PostMetricsSchema, type PostRecord, PostResponseSchema, type PostResult, PostResultSchema, PostSchema, type PostToDelete, PostToDeleteSchema, type ProfileRefreshResponse, ProfileRefreshResponseSchema, type QuotePostRequest, QuotePostRequestSchema, type QuotePostResponse, QuotePostResponseSchema, type RateLimitEndpoint, type RateLimitEndpointParam, RateLimitEndpointParamSchema, RateLimitEndpointSchema, type RateLimitResponse, RateLimitResponseSchema, type RateLimitStatus, type RateLimitStatusResponse, RateLimitStatusResponseSchema, RateLimitStatusSchema, type ReplyToPostRequest, ReplyToPostRequestSchema, type ReplyToPostResponse, ReplyToPostResponseSchema, type RepostRequest, RepostRequestSchema, type RepostResponse, RepostResponseSchema, type ResponseMeta, ResponseMetaSchema, SUPPORTED_PLATFORMS, type SuccessDetail, SuccessDetailSchema, type SupportedPlatformName, SupportedPlatformSchema, type Target, TargetSchema, TimePeriod, type UnlikePostRequest, UnlikePostRequestSchema, type UnlikePostResponse, UnlikePostResponseSchema, type UsageRateLimit, UsageRateLimitSchema, type UserProfile, UserProfileSchema, errorCodeToStatusCode, isPlatformSupported };
|