@crosspost/types 0.1.10 → 0.1.11

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 CHANGED
@@ -216,198 +216,214 @@ var MultiStatusDataSchema = import_zod3.z.object({
216
216
  });
217
217
 
218
218
  // src/auth.ts
219
+ var import_zod5 = require("zod");
220
+
221
+ // src/user-profile.ts
219
222
  var import_zod4 = require("zod");
220
- var PlatformParamSchema = import_zod4.z.object({
221
- platform: import_zod4.z.string().describe("Social media platform")
223
+ var UserProfileSchema = import_zod4.z.object({
224
+ userId: import_zod4.z.string().describe("User ID on the platform"),
225
+ username: import_zod4.z.string().describe("Username on the platform"),
226
+ url: import_zod4.z.string().url().optional().describe("URL to the user profile"),
227
+ profileImageUrl: import_zod4.z.string().describe("URL to the user profile image"),
228
+ isPremium: import_zod4.z.boolean().optional().describe("Whether the user has a premium account"),
229
+ platform: PlatformSchema.describe("The platform the user profile is from"),
230
+ lastUpdated: import_zod4.z.number().describe("Timestamp when the profile was last updated")
231
+ }).describe("User profile");
232
+ var ProfileRefreshResponseSchema = import_zod4.z.object({
233
+ profile: UserProfileSchema.optional().describe("The refreshed user profile (if successful)")
234
+ }).describe("Profile refresh response");
235
+
236
+ // src/auth.ts
237
+ var PlatformParamSchema = import_zod5.z.object({
238
+ platform: import_zod5.z.string().describe("Social media platform")
222
239
  }).describe("Platform parameter");
223
- var AuthInitRequestSchema = import_zod4.z.object({
224
- successUrl: import_zod4.z.string().url().optional().describe(
240
+ var AuthInitRequestSchema = import_zod5.z.object({
241
+ successUrl: import_zod5.z.string().url().optional().describe(
225
242
  "URL to redirect to on successful authentication"
226
243
  ),
227
- errorUrl: import_zod4.z.string().url().optional().describe("URL to redirect to on authentication error"),
228
- redirect: import_zod4.z.boolean().optional().default(false).describe(
244
+ errorUrl: import_zod5.z.string().url().optional().describe("URL to redirect to on authentication error"),
245
+ redirect: import_zod5.z.boolean().optional().default(false).describe(
229
246
  "Whether to redirect to successUrl/errorUrl (true) or return data directly (false)"
230
247
  )
231
248
  }).describe("Auth initialization request");
232
- var AuthUrlResponseSchema = import_zod4.z.object({
233
- url: import_zod4.z.string().describe("Authentication URL to redirect the user to"),
234
- state: import_zod4.z.string().describe("State parameter for CSRF protection"),
249
+ var AuthUrlResponseSchema = import_zod5.z.object({
250
+ url: import_zod5.z.string().describe("Authentication URL to redirect the user to"),
251
+ state: import_zod5.z.string().describe("State parameter for CSRF protection"),
235
252
  platform: PlatformSchema
236
253
  }).describe("Auth URL response");
237
- var AuthCallbackQuerySchema = import_zod4.z.object({
238
- code: import_zod4.z.string().describe("Authorization code from OAuth provider"),
239
- state: import_zod4.z.string().describe("State parameter for CSRF protection")
254
+ var AuthCallbackQuerySchema = import_zod5.z.object({
255
+ code: import_zod5.z.string().describe("Authorization code from OAuth provider"),
256
+ state: import_zod5.z.string().describe("State parameter for CSRF protection")
240
257
  }).describe("Auth callback query");
241
- var AuthCallbackResponseSchema = import_zod4.z.object({
258
+ var AuthCallbackResponseSchema = import_zod5.z.object({
242
259
  platform: PlatformSchema,
243
- userId: import_zod4.z.string().describe("User ID"),
244
- redirectUrl: import_zod4.z.string().optional().describe("URL to redirect the user to after authentication")
260
+ userId: import_zod5.z.string().describe("User ID"),
261
+ redirectUrl: import_zod5.z.string().optional().describe("URL to redirect the user to after authentication")
245
262
  }).describe("Auth callback response");
246
- var AuthStatusParamsSchema = import_zod4.z.object({
247
- platform: import_zod4.z.string().describe("Social media platform"),
248
- userId: import_zod4.z.string().describe("User ID on the platform")
263
+ var AuthStatusParamsSchema = import_zod5.z.object({
264
+ platform: import_zod5.z.string().describe("Social media platform"),
265
+ userId: import_zod5.z.string().describe("User ID on the platform")
249
266
  }).describe("Token status parameters");
250
- var NearUnauthorizationResponseSchema = import_zod4.z.object({
251
- success: import_zod4.z.boolean().describe("Whether the unauthorized operation was successful"),
252
- nearAccount: import_zod4.z.string().describe("NEAR account ID that was unauthorized")
267
+ var NearUnauthorizationResponseSchema = import_zod5.z.object({
268
+ success: import_zod5.z.boolean().describe("Whether the unauthorized operation was successful"),
269
+ nearAccount: import_zod5.z.string().describe("NEAR account ID that was unauthorized")
253
270
  }).describe("NEAR unauthorized response");
254
- var AuthStatusResponseSchema = import_zod4.z.object({
271
+ var AuthStatusResponseSchema = import_zod5.z.object({
255
272
  platform: PlatformSchema,
256
- userId: import_zod4.z.string().describe("User ID"),
257
- authenticated: import_zod4.z.boolean().describe("Whether the user is authenticated"),
258
- tokenStatus: import_zod4.z.object({
259
- valid: import_zod4.z.boolean().describe("Whether the token is valid"),
260
- expired: import_zod4.z.boolean().describe("Whether the token is expired"),
261
- expiresAt: import_zod4.z.string().optional().describe("When the token expires")
273
+ userId: import_zod5.z.string().describe("User ID"),
274
+ authenticated: import_zod5.z.boolean().describe("Whether the user is authenticated"),
275
+ tokenStatus: import_zod5.z.object({
276
+ valid: import_zod5.z.boolean().describe("Whether the token is valid"),
277
+ expired: import_zod5.z.boolean().describe("Whether the token is expired"),
278
+ expiresAt: import_zod5.z.string().optional().describe("When the token expires")
262
279
  })
263
280
  }).describe("Auth status response");
264
- var AuthTokenRequestSchema = import_zod4.z.object({
265
- userId: import_zod4.z.string().describe("User ID on the platform")
281
+ var AuthTokenRequestSchema = import_zod5.z.object({
282
+ userId: import_zod5.z.string().describe("User ID on the platform")
266
283
  }).describe("Auth token request");
267
- var AuthRevokeResponseSchema = import_zod4.z.object({
284
+ var AuthRevokeResponseSchema = import_zod5.z.object({
268
285
  platform: PlatformSchema,
269
- userId: import_zod4.z.string().describe("User ID")
286
+ userId: import_zod5.z.string().describe("User ID")
270
287
  }).describe("Auth revoke response");
271
- var ConnectedAccountSchema = import_zod4.z.object({
288
+ var ConnectedAccountSchema = import_zod5.z.object({
272
289
  platform: PlatformSchema,
273
- userId: import_zod4.z.string().describe("User ID on the platform"),
274
- username: import_zod4.z.string().optional().describe("Username on the platform (if available)"),
275
- profileUrl: import_zod4.z.string().optional().describe("URL to the user profile"),
276
- connectedAt: import_zod4.z.string().optional().describe("When the account was connected")
290
+ userId: import_zod5.z.string().describe("User ID on the platform"),
291
+ connectedAt: import_zod5.z.string().describe("When the account was connected"),
292
+ profile: UserProfileSchema.nullable().describe("Full user profile data")
277
293
  }).describe("Connected account");
278
- var ConnectedAccountsResponseSchema = import_zod4.z.object({
279
- accounts: import_zod4.z.array(ConnectedAccountSchema)
294
+ var ConnectedAccountsResponseSchema = import_zod5.z.object({
295
+ accounts: import_zod5.z.array(ConnectedAccountSchema)
280
296
  }).describe("Response containing an array of connected accounts");
281
- var NearAuthorizationRequestSchema = import_zod4.z.object({
297
+ var NearAuthorizationRequestSchema = import_zod5.z.object({
282
298
  // No additional parameters needed, as the NEAR account ID is extracted from the signature
283
299
  }).describe("NEAR authorization request");
284
- var NearAuthorizationResponseSchema = import_zod4.z.object({
285
- nearAccount: import_zod4.z.string().describe("NEAR account ID"),
286
- authorized: import_zod4.z.boolean().describe("Whether the account is authorized")
300
+ var NearAuthorizationResponseSchema = import_zod5.z.object({
301
+ nearAccount: import_zod5.z.string().describe("NEAR account ID"),
302
+ authorized: import_zod5.z.boolean().describe("Whether the account is authorized")
287
303
  }).describe("NEAR authorization response");
288
- var NearAuthorizationStatusResponseSchema = import_zod4.z.object({
289
- nearAccount: import_zod4.z.string().describe("NEAR account ID"),
290
- authorized: import_zod4.z.boolean().describe("Whether the account is authorized"),
291
- authorizedAt: import_zod4.z.string().optional().describe("When the account was authorized")
304
+ var NearAuthorizationStatusResponseSchema = import_zod5.z.object({
305
+ nearAccount: import_zod5.z.string().describe("NEAR account ID"),
306
+ authorized: import_zod5.z.boolean().describe("Whether the account is authorized"),
307
+ authorizedAt: import_zod5.z.string().optional().describe("When the account was authorized")
292
308
  }).describe("NEAR authorization status response");
293
309
 
294
310
  // src/post.ts
295
- var import_zod5 = require("zod");
296
- var MediaContentSchema = import_zod5.z.object({
297
- data: import_zod5.z.union([import_zod5.z.string(), import_zod5.z.instanceof(Blob)]).describe("Media data as string or Blob"),
298
- mimeType: import_zod5.z.string().optional().describe("Media MIME type"),
299
- altText: import_zod5.z.string().optional().describe("Alt text for the media")
311
+ var import_zod6 = require("zod");
312
+ var MediaContentSchema = import_zod6.z.object({
313
+ data: import_zod6.z.union([import_zod6.z.string(), import_zod6.z.instanceof(Blob)]).describe("Media data as string or Blob"),
314
+ mimeType: import_zod6.z.string().optional().describe("Media MIME type"),
315
+ altText: import_zod6.z.string().optional().describe("Alt text for the media")
300
316
  }).describe("Media content object");
301
- var MediaSchema = import_zod5.z.object({
302
- id: import_zod5.z.string().describe("Media ID"),
303
- type: import_zod5.z.enum(["image", "video", "gif"]).describe("Media type"),
304
- url: import_zod5.z.string().optional().describe("Media URL"),
305
- altText: import_zod5.z.string().optional().describe("Alt text for the media")
317
+ var MediaSchema = import_zod6.z.object({
318
+ id: import_zod6.z.string().describe("Media ID"),
319
+ type: import_zod6.z.enum(["image", "video", "gif"]).describe("Media type"),
320
+ url: import_zod6.z.string().optional().describe("Media URL"),
321
+ altText: import_zod6.z.string().optional().describe("Alt text for the media")
306
322
  }).describe("Media object");
307
- var PostMetricsSchema = import_zod5.z.object({
308
- retweets: import_zod5.z.number().describe("Number of retweets"),
309
- quotes: import_zod5.z.number().describe("Number of quotes"),
310
- likes: import_zod5.z.number().describe("Number of likes"),
311
- replies: import_zod5.z.number().describe("Number of replies")
323
+ var PostMetricsSchema = import_zod6.z.object({
324
+ retweets: import_zod6.z.number().describe("Number of retweets"),
325
+ quotes: import_zod6.z.number().describe("Number of quotes"),
326
+ likes: import_zod6.z.number().describe("Number of likes"),
327
+ replies: import_zod6.z.number().describe("Number of replies")
312
328
  }).describe("Post metrics");
313
- var PostSchema = import_zod5.z.object({
314
- id: import_zod5.z.string().describe("Post ID"),
315
- text: import_zod5.z.string().describe("Post text content"),
316
- createdAt: import_zod5.z.string().describe("Post creation date"),
317
- authorId: import_zod5.z.string().describe("Author ID"),
318
- media: import_zod5.z.array(MediaSchema).optional().describe("Media attached to the post"),
329
+ var PostSchema = import_zod6.z.object({
330
+ id: import_zod6.z.string().describe("Post ID"),
331
+ text: import_zod6.z.string().describe("Post text content"),
332
+ createdAt: import_zod6.z.string().describe("Post creation date"),
333
+ authorId: import_zod6.z.string().describe("Author ID"),
334
+ media: import_zod6.z.array(MediaSchema).optional().describe("Media attached to the post"),
319
335
  metrics: PostMetricsSchema.optional().describe("Post metrics"),
320
- inReplyToId: import_zod5.z.string().optional().describe("ID of the post this is a reply to"),
321
- quotedPostId: import_zod5.z.string().optional().describe("ID of the post this is quoting")
336
+ inReplyToId: import_zod6.z.string().optional().describe("ID of the post this is a reply to"),
337
+ quotedPostId: import_zod6.z.string().optional().describe("ID of the post this is quoting")
322
338
  }).describe("Post object");
323
- var PostContentSchema = import_zod5.z.object({
324
- text: import_zod5.z.string().optional().describe("Text content for the post"),
325
- media: import_zod5.z.array(MediaContentSchema).optional().describe("Media attachments for the post")
339
+ var PostContentSchema = import_zod6.z.object({
340
+ text: import_zod6.z.string().optional().describe("Text content for the post"),
341
+ media: import_zod6.z.array(MediaContentSchema).optional().describe("Media attachments for the post")
326
342
  }).describe("Post content");
327
- var PostResultSchema = import_zod5.z.object({
328
- id: import_zod5.z.string().describe("Post ID"),
329
- text: import_zod5.z.string().optional().describe("Post text content"),
330
- createdAt: import_zod5.z.string().describe("Post creation date"),
331
- mediaIds: import_zod5.z.array(import_zod5.z.string()).optional().describe("Media IDs attached to the post"),
332
- threadIds: import_zod5.z.array(import_zod5.z.string()).optional().describe("Thread IDs for threaded posts"),
333
- quotedPostId: import_zod5.z.string().optional().describe("ID of the post this is quoting"),
334
- inReplyToId: import_zod5.z.string().optional().describe("ID of the post this is a reply to"),
335
- success: import_zod5.z.boolean().optional().describe("Whether the operation was successful")
336
- }).catchall(import_zod5.z.any()).describe("Post result");
337
- var DeleteResultSchema = import_zod5.z.object({
338
- success: import_zod5.z.boolean().describe("Whether the deletion was successful"),
339
- id: import_zod5.z.string().describe("ID of the deleted post")
343
+ var PostResultSchema = import_zod6.z.object({
344
+ id: import_zod6.z.string().describe("Post ID"),
345
+ text: import_zod6.z.string().optional().describe("Post text content"),
346
+ createdAt: import_zod6.z.string().describe("Post creation date"),
347
+ mediaIds: import_zod6.z.array(import_zod6.z.string()).optional().describe("Media IDs attached to the post"),
348
+ threadIds: import_zod6.z.array(import_zod6.z.string()).optional().describe("Thread IDs for threaded posts"),
349
+ quotedPostId: import_zod6.z.string().optional().describe("ID of the post this is quoting"),
350
+ inReplyToId: import_zod6.z.string().optional().describe("ID of the post this is a reply to"),
351
+ success: import_zod6.z.boolean().optional().describe("Whether the operation was successful")
352
+ }).catchall(import_zod6.z.any()).describe("Post result");
353
+ var DeleteResultSchema = import_zod6.z.object({
354
+ success: import_zod6.z.boolean().describe("Whether the deletion was successful"),
355
+ id: import_zod6.z.string().describe("ID of the deleted post")
340
356
  }).describe("Delete result");
341
- var LikeResultSchema = import_zod5.z.object({
342
- success: import_zod5.z.boolean().describe("Whether the like was successful"),
343
- id: import_zod5.z.string().describe("ID of the liked post")
357
+ var LikeResultSchema = import_zod6.z.object({
358
+ success: import_zod6.z.boolean().describe("Whether the like was successful"),
359
+ id: import_zod6.z.string().describe("ID of the liked post")
344
360
  }).describe("Like result");
345
- var PostSuccessDetailSchema = import_zod5.z.object({
361
+ var PostSuccessDetailSchema = import_zod6.z.object({
346
362
  platform: PlatformSchema,
347
- userId: import_zod5.z.string().describe("User ID"),
348
- status: import_zod5.z.literal("success"),
349
- postId: import_zod5.z.string().optional().describe("Post ID"),
350
- postUrl: import_zod5.z.string().optional().describe("URL to the post")
351
- }).catchall(import_zod5.z.any()).describe("Post success detail");
352
- var TargetSchema = import_zod5.z.object({
363
+ userId: import_zod6.z.string().describe("User ID"),
364
+ status: import_zod6.z.literal("success"),
365
+ postId: import_zod6.z.string().optional().describe("Post ID"),
366
+ postUrl: import_zod6.z.string().optional().describe("URL to the post")
367
+ }).catchall(import_zod6.z.any()).describe("Post success detail");
368
+ var TargetSchema = import_zod6.z.object({
353
369
  platform: PlatformSchema.describe('The platform to post to (e.g., "twitter")'),
354
- userId: import_zod5.z.string().describe("User ID on the platform")
370
+ userId: import_zod6.z.string().describe("User ID on the platform")
355
371
  }).describe("Target for posting operations");
356
- var CreatePostRequestSchema = import_zod5.z.object({
357
- targets: import_zod5.z.array(TargetSchema).describe("Array of targets to post to (can be a single target)"),
358
- content: import_zod5.z.array(PostContentSchema).describe(
372
+ var CreatePostRequestSchema = import_zod6.z.object({
373
+ targets: import_zod6.z.array(TargetSchema).describe("Array of targets to post to (can be a single target)"),
374
+ content: import_zod6.z.array(PostContentSchema).describe(
359
375
  "The content of the post, always an array of PostContent objects, even for a single post"
360
376
  )
361
377
  }).describe("Create post request");
362
- var RepostRequestSchema = import_zod5.z.object({
363
- targets: import_zod5.z.array(TargetSchema).describe("Array of targets to post to"),
378
+ var RepostRequestSchema = import_zod6.z.object({
379
+ targets: import_zod6.z.array(TargetSchema).describe("Array of targets to post to"),
364
380
  platform: PlatformSchema.describe("Platform of the post being reposted"),
365
- postId: import_zod5.z.string().describe("ID of the post to repost")
381
+ postId: import_zod6.z.string().describe("ID of the post to repost")
366
382
  }).describe("Repost request");
367
- var QuotePostRequestSchema = import_zod5.z.object({
368
- targets: import_zod5.z.array(TargetSchema).describe(
383
+ var QuotePostRequestSchema = import_zod6.z.object({
384
+ targets: import_zod6.z.array(TargetSchema).describe(
369
385
  "Array of targets to post to (must be on the same platform as the post being quoted)"
370
386
  ),
371
387
  platform: PlatformSchema.describe("Platform of the post being quoted"),
372
- postId: import_zod5.z.string().describe("ID of the post to quote"),
373
- content: import_zod5.z.array(PostContentSchema).describe(
388
+ postId: import_zod6.z.string().describe("ID of the post to quote"),
389
+ content: import_zod6.z.array(PostContentSchema).describe(
374
390
  "Content for the quote post(s), always an array, even for a single post"
375
391
  )
376
392
  }).describe("Quote post request");
377
- var ReplyToPostRequestSchema = import_zod5.z.object({
378
- targets: import_zod5.z.array(TargetSchema).describe(
393
+ var ReplyToPostRequestSchema = import_zod6.z.object({
394
+ targets: import_zod6.z.array(TargetSchema).describe(
379
395
  "Array of targets to post to (must be on the same platform as the post being replied to)"
380
396
  ),
381
397
  platform: PlatformSchema.describe("Platform of the post being replied to"),
382
- postId: import_zod5.z.string().describe("ID of the post to reply to"),
383
- content: import_zod5.z.array(PostContentSchema).describe(
398
+ postId: import_zod6.z.string().describe("ID of the post to reply to"),
399
+ content: import_zod6.z.array(PostContentSchema).describe(
384
400
  "Content for the reply post(s), always an array, even for a single post"
385
401
  )
386
402
  }).describe("Reply to post request");
387
- var PostToDeleteSchema = import_zod5.z.object({
403
+ var PostToDeleteSchema = import_zod6.z.object({
388
404
  platform: PlatformSchema.describe("Platform of the post to delete"),
389
- userId: import_zod5.z.string().describe("User ID on the platform"),
390
- postId: import_zod5.z.string().describe("ID of the post to delete")
405
+ userId: import_zod6.z.string().describe("User ID on the platform"),
406
+ postId: import_zod6.z.string().describe("ID of the post to delete")
391
407
  }).describe("Post to delete");
392
- var DeletePostRequestSchema = import_zod5.z.object({
393
- targets: import_zod5.z.array(TargetSchema).describe("Array of targets to delete posts"),
394
- posts: import_zod5.z.array(PostToDeleteSchema).describe("Array of posts to delete")
408
+ var DeletePostRequestSchema = import_zod6.z.object({
409
+ targets: import_zod6.z.array(TargetSchema).describe("Array of targets to delete posts"),
410
+ posts: import_zod6.z.array(PostToDeleteSchema).describe("Array of posts to delete")
395
411
  }).describe("Delete post request");
396
- var LikePostRequestSchema = import_zod5.z.object({
397
- targets: import_zod5.z.array(TargetSchema).describe(
412
+ var LikePostRequestSchema = import_zod6.z.object({
413
+ targets: import_zod6.z.array(TargetSchema).describe(
398
414
  "Array of targets to like the post (must be on the same platform as the post being liked)"
399
415
  ),
400
416
  platform: PlatformSchema.describe("Platform of the post being liked"),
401
- postId: import_zod5.z.string().describe("ID of the post to like")
417
+ postId: import_zod6.z.string().describe("ID of the post to like")
402
418
  }).describe("Like post request");
403
- var UnlikePostRequestSchema = import_zod5.z.object({
404
- targets: import_zod5.z.array(TargetSchema).describe(
419
+ var UnlikePostRequestSchema = import_zod6.z.object({
420
+ targets: import_zod6.z.array(TargetSchema).describe(
405
421
  "Array of targets to unlike the post (must be on the same platform as the post being unliked)"
406
422
  ),
407
423
  platform: PlatformSchema.describe("Platform of the post being unliked"),
408
- postId: import_zod5.z.string().describe("ID of the post to unlike")
424
+ postId: import_zod6.z.string().describe("ID of the post to unlike")
409
425
  }).describe("Unlike post request");
410
- var PostResponseSchema = import_zod5.z.union([PostSchema, import_zod5.z.array(PostSchema)]).describe(
426
+ var PostResponseSchema = import_zod6.z.union([PostSchema, import_zod6.z.array(PostSchema)]).describe(
411
427
  "Post response"
412
428
  );
413
429
  var CreatePostResponseSchema = PostResponseSchema.describe(
@@ -416,115 +432,115 @@ var CreatePostResponseSchema = PostResponseSchema.describe(
416
432
  var RepostResponseSchema = PostResponseSchema.describe("Repost response");
417
433
  var QuotePostResponseSchema = PostResponseSchema.describe("Quote post response");
418
434
  var ReplyToPostResponseSchema = PostResponseSchema.describe("Reply to post response");
419
- var DeletePostResponseSchema = import_zod5.z.object({
420
- id: import_zod5.z.string().describe("ID of the deleted post")
435
+ var DeletePostResponseSchema = import_zod6.z.object({
436
+ id: import_zod6.z.string().describe("ID of the deleted post")
421
437
  }).describe("Delete post response");
422
- var LikePostResponseSchema = import_zod5.z.object({
423
- id: import_zod5.z.string().describe("ID of the liked post")
438
+ var LikePostResponseSchema = import_zod6.z.object({
439
+ id: import_zod6.z.string().describe("ID of the liked post")
424
440
  }).describe("Like post response");
425
- var UnlikePostResponseSchema = import_zod5.z.object({
426
- id: import_zod5.z.string().describe("ID of the unliked post")
441
+ var UnlikePostResponseSchema = import_zod6.z.object({
442
+ id: import_zod6.z.string().describe("ID of the unliked post")
427
443
  }).describe("Unlike post response");
428
- var PostMultiStatusResponseSchema = import_zod5.z.object({
429
- summary: import_zod5.z.object({
430
- total: import_zod5.z.number().describe("Total number of operations"),
431
- succeeded: import_zod5.z.number().describe("Number of successful operations"),
432
- failed: import_zod5.z.number().describe("Number of failed operations")
444
+ var PostMultiStatusResponseSchema = import_zod6.z.object({
445
+ summary: import_zod6.z.object({
446
+ total: import_zod6.z.number().describe("Total number of operations"),
447
+ succeeded: import_zod6.z.number().describe("Number of successful operations"),
448
+ failed: import_zod6.z.number().describe("Number of failed operations")
433
449
  }),
434
- results: import_zod5.z.array(PostSuccessDetailSchema).describe("Successful operations"),
435
- errors: import_zod5.z.array(ErrorDetailSchema).describe("Failed operations")
450
+ results: import_zod6.z.array(PostSuccessDetailSchema).describe("Successful operations"),
451
+ errors: import_zod6.z.array(ErrorDetailSchema).describe("Failed operations")
436
452
  }).describe("Multi-status response for post operations");
437
453
 
438
454
  // src/rate-limit.ts
439
- var import_zod6 = require("zod");
440
- var RateLimitEndpointParamSchema = import_zod6.z.object({
441
- endpoint: import_zod6.z.string().optional().describe(
455
+ var import_zod7 = require("zod");
456
+ var RateLimitEndpointParamSchema = import_zod7.z.object({
457
+ endpoint: import_zod7.z.string().optional().describe(
442
458
  "Specific endpoint to get rate limit information for (optional)"
443
459
  )
444
460
  }).describe("Rate limit endpoint parameter");
445
- var RateLimitEndpointSchema = import_zod6.z.object({
446
- endpoint: import_zod6.z.string().describe("API endpoint"),
447
- method: import_zod6.z.enum(["GET", "POST", "PUT", "DELETE"]).describe("HTTP method"),
448
- limit: import_zod6.z.number().describe("Rate limit"),
449
- remaining: import_zod6.z.number().describe("Remaining requests"),
450
- reset: import_zod6.z.number().describe("Reset timestamp (Unix timestamp in seconds)"),
451
- resetDate: import_zod6.z.string().describe("Reset date (ISO string)")
461
+ var RateLimitEndpointSchema = import_zod7.z.object({
462
+ endpoint: import_zod7.z.string().describe("API endpoint"),
463
+ method: import_zod7.z.enum(["GET", "POST", "PUT", "DELETE"]).describe("HTTP method"),
464
+ limit: import_zod7.z.number().describe("Rate limit"),
465
+ remaining: import_zod7.z.number().describe("Remaining requests"),
466
+ reset: import_zod7.z.number().describe("Reset timestamp (Unix timestamp in seconds)"),
467
+ resetDate: import_zod7.z.string().describe("Reset date (ISO string)")
452
468
  }).describe("Rate limit endpoint");
453
- var RateLimitStatusSchema = import_zod6.z.object({
454
- endpoint: import_zod6.z.string().describe("API endpoint or action"),
455
- limit: import_zod6.z.number().describe("Maximum number of requests allowed in the time window"),
456
- remaining: import_zod6.z.number().describe("Number of requests remaining in the current time window"),
457
- reset: import_zod6.z.string().datetime().describe("Timestamp when the rate limit will reset"),
458
- resetSeconds: import_zod6.z.number().describe("Seconds until the rate limit will reset")
469
+ var RateLimitStatusSchema = import_zod7.z.object({
470
+ endpoint: import_zod7.z.string().describe("API endpoint or action"),
471
+ limit: import_zod7.z.number().describe("Maximum number of requests allowed in the time window"),
472
+ remaining: import_zod7.z.number().describe("Number of requests remaining in the current time window"),
473
+ reset: import_zod7.z.string().datetime().describe("Timestamp when the rate limit will reset"),
474
+ resetSeconds: import_zod7.z.number().describe("Seconds until the rate limit will reset")
459
475
  }).describe("Rate limit status");
460
- var PlatformRateLimitSchema = import_zod6.z.object({
476
+ var PlatformRateLimitSchema = import_zod7.z.object({
461
477
  platform: PlatformSchema,
462
- endpoints: import_zod6.z.record(import_zod6.z.string(), RateLimitStatusSchema).describe(
478
+ endpoints: import_zod7.z.record(import_zod7.z.string(), RateLimitStatusSchema).describe(
463
479
  "Rate limit status for each endpoint"
464
480
  )
465
481
  }).describe("Platform-specific rate limit");
466
- var UsageRateLimitSchema = import_zod6.z.object({
467
- endpoint: import_zod6.z.string().describe("API endpoint or action"),
468
- limit: import_zod6.z.number().describe("Maximum number of requests allowed in the time window"),
469
- remaining: import_zod6.z.number().describe("Number of requests remaining in the current time window"),
470
- reset: import_zod6.z.string().datetime().describe("Timestamp when the rate limit will reset"),
471
- resetSeconds: import_zod6.z.number().describe("Seconds until the rate limit will reset"),
472
- timeWindow: import_zod6.z.string().describe("Time window for the rate limit")
482
+ var UsageRateLimitSchema = import_zod7.z.object({
483
+ endpoint: import_zod7.z.string().describe("API endpoint or action"),
484
+ limit: import_zod7.z.number().describe("Maximum number of requests allowed in the time window"),
485
+ remaining: import_zod7.z.number().describe("Number of requests remaining in the current time window"),
486
+ reset: import_zod7.z.string().datetime().describe("Timestamp when the rate limit will reset"),
487
+ resetSeconds: import_zod7.z.number().describe("Seconds until the rate limit will reset"),
488
+ timeWindow: import_zod7.z.string().describe("Time window for the rate limit")
473
489
  }).describe("Usage rate limit");
474
- var RateLimitStatusResponseSchema = import_zod6.z.object({
490
+ var RateLimitStatusResponseSchema = import_zod7.z.object({
475
491
  platform: PlatformSchema,
476
- userId: import_zod6.z.string().optional().describe("User ID"),
477
- endpoints: import_zod6.z.array(RateLimitEndpointSchema).describe("Rate limits for specific endpoints"),
478
- app: import_zod6.z.object({
479
- limit: import_zod6.z.number().describe("App-wide rate limit"),
480
- remaining: import_zod6.z.number().describe("Remaining requests"),
481
- reset: import_zod6.z.number().describe("Reset timestamp (Unix timestamp in seconds)"),
482
- resetDate: import_zod6.z.string().describe("Reset date (ISO string)")
492
+ userId: import_zod7.z.string().optional().describe("User ID"),
493
+ endpoints: import_zod7.z.array(RateLimitEndpointSchema).describe("Rate limits for specific endpoints"),
494
+ app: import_zod7.z.object({
495
+ limit: import_zod7.z.number().describe("App-wide rate limit"),
496
+ remaining: import_zod7.z.number().describe("Remaining requests"),
497
+ reset: import_zod7.z.number().describe("Reset timestamp (Unix timestamp in seconds)"),
498
+ resetDate: import_zod7.z.string().describe("Reset date (ISO string)")
483
499
  }).optional().describe("App-wide rate limits")
484
500
  }).describe("Rate limit status response");
485
- var AllRateLimitsResponseSchema = import_zod6.z.object({
486
- platforms: import_zod6.z.record(
501
+ var AllRateLimitsResponseSchema = import_zod7.z.object({
502
+ platforms: import_zod7.z.record(
487
503
  PlatformSchema,
488
- import_zod6.z.object({
489
- users: import_zod6.z.record(
490
- import_zod6.z.string(),
491
- import_zod6.z.object({
492
- endpoints: import_zod6.z.array(RateLimitEndpointSchema).describe(
504
+ import_zod7.z.object({
505
+ users: import_zod7.z.record(
506
+ import_zod7.z.string(),
507
+ import_zod7.z.object({
508
+ endpoints: import_zod7.z.array(RateLimitEndpointSchema).describe(
493
509
  "Rate limits for specific endpoints"
494
510
  ),
495
- lastUpdated: import_zod6.z.string().describe("Last updated date (ISO string)")
511
+ lastUpdated: import_zod7.z.string().describe("Last updated date (ISO string)")
496
512
  })
497
513
  ).describe("User-specific rate limits"),
498
- app: import_zod6.z.object({
499
- limit: import_zod6.z.number().describe("App-wide rate limit"),
500
- remaining: import_zod6.z.number().describe("Remaining requests"),
501
- reset: import_zod6.z.number().describe("Reset timestamp (Unix timestamp in seconds)"),
502
- resetDate: import_zod6.z.string().describe("Reset date (ISO string)")
514
+ app: import_zod7.z.object({
515
+ limit: import_zod7.z.number().describe("App-wide rate limit"),
516
+ remaining: import_zod7.z.number().describe("Remaining requests"),
517
+ reset: import_zod7.z.number().describe("Reset timestamp (Unix timestamp in seconds)"),
518
+ resetDate: import_zod7.z.string().describe("Reset date (ISO string)")
503
519
  }).optional().describe("App-wide rate limits")
504
520
  })
505
521
  ).describe("Rate limits by platform")
506
522
  }).describe("All rate limits response");
507
- var RateLimitResponseSchema = import_zod6.z.object({
508
- platformLimits: import_zod6.z.array(PlatformRateLimitSchema).describe("Platform-specific rate limits"),
509
- usageLimits: import_zod6.z.record(import_zod6.z.string(), UsageRateLimitSchema).describe(
523
+ var RateLimitResponseSchema = import_zod7.z.object({
524
+ platformLimits: import_zod7.z.array(PlatformRateLimitSchema).describe("Platform-specific rate limits"),
525
+ usageLimits: import_zod7.z.record(import_zod7.z.string(), UsageRateLimitSchema).describe(
510
526
  "Usage-based rate limits for the NEAR account"
511
527
  ),
512
- signerId: import_zod6.z.string().describe("NEAR account ID")
528
+ signerId: import_zod7.z.string().describe("NEAR account ID")
513
529
  }).describe("Rate limit response");
514
- var EndpointRateLimitResponseSchema = import_zod6.z.object({
515
- platformLimits: import_zod6.z.array(
516
- import_zod6.z.object({
530
+ var EndpointRateLimitResponseSchema = import_zod7.z.object({
531
+ platformLimits: import_zod7.z.array(
532
+ import_zod7.z.object({
517
533
  platform: PlatformSchema,
518
534
  status: RateLimitStatusSchema.describe("Rate limit status for the endpoint")
519
535
  })
520
536
  ).describe("Platform-specific rate limits for the endpoint"),
521
537
  usageLimit: UsageRateLimitSchema.describe("Usage-based rate limit for the NEAR account"),
522
- endpoint: import_zod6.z.string().describe("API endpoint or action"),
523
- signerId: import_zod6.z.string().describe("NEAR account ID")
538
+ endpoint: import_zod7.z.string().describe("API endpoint or action"),
539
+ signerId: import_zod7.z.string().describe("NEAR account ID")
524
540
  }).describe("Endpoint rate limit response");
525
541
 
526
542
  // src/activity.ts
527
- var import_zod7 = require("zod");
543
+ var import_zod8 = require("zod");
528
544
  var TimePeriod = /* @__PURE__ */ ((TimePeriod2) => {
529
545
  TimePeriod2["ALL"] = "all";
530
546
  TimePeriod2["YEARLY"] = "year";
@@ -533,111 +549,96 @@ var TimePeriod = /* @__PURE__ */ ((TimePeriod2) => {
533
549
  TimePeriod2["DAILY"] = "day";
534
550
  return TimePeriod2;
535
551
  })(TimePeriod || {});
536
- var ActivityLeaderboardQuerySchema = import_zod7.z.object({
537
- timeframe: import_zod7.z.nativeEnum(TimePeriod).optional().describe(
552
+ var ActivityLeaderboardQuerySchema = import_zod8.z.object({
553
+ timeframe: import_zod8.z.nativeEnum(TimePeriod).optional().describe(
538
554
  "Timeframe for the leaderboard"
539
555
  ),
540
- limit: import_zod7.z.string().optional().transform((val) => val ? parseInt(val, 10) : void 0).pipe(import_zod7.z.number().min(1).max(100).optional()).describe("Maximum number of results to return (1-100)"),
541
- offset: import_zod7.z.string().optional().transform((val) => val ? parseInt(val, 10) : void 0).pipe(import_zod7.z.number().min(0).optional()).describe("Offset for pagination")
556
+ limit: import_zod8.z.string().optional().transform((val) => val ? parseInt(val, 10) : void 0).pipe(import_zod8.z.number().min(1).max(100).optional()).describe("Maximum number of results to return (1-100)"),
557
+ offset: import_zod8.z.string().optional().transform((val) => val ? parseInt(val, 10) : void 0).pipe(import_zod8.z.number().min(0).optional()).describe("Offset for pagination")
542
558
  }).describe("Activity leaderboard query");
543
- var AccountActivityEntrySchema = import_zod7.z.object({
544
- signerId: import_zod7.z.string().describe("NEAR account ID"),
545
- totalPosts: import_zod7.z.number().describe("Total number of posts"),
546
- totalLikes: import_zod7.z.number().describe("Total number of likes"),
547
- totalReposts: import_zod7.z.number().describe("Total number of reposts"),
548
- totalReplies: import_zod7.z.number().describe("Total number of replies"),
549
- totalQuotes: import_zod7.z.number().describe("Total number of quote posts"),
550
- totalScore: import_zod7.z.number().describe("Total activity score"),
551
- rank: import_zod7.z.number().describe("Rank on the leaderboard"),
552
- lastActive: import_zod7.z.string().datetime().describe("Timestamp of last activity")
559
+ var AccountActivityEntrySchema = import_zod8.z.object({
560
+ signerId: import_zod8.z.string().describe("NEAR account ID"),
561
+ totalPosts: import_zod8.z.number().describe("Total number of posts"),
562
+ totalLikes: import_zod8.z.number().describe("Total number of likes"),
563
+ totalReposts: import_zod8.z.number().describe("Total number of reposts"),
564
+ totalReplies: import_zod8.z.number().describe("Total number of replies"),
565
+ totalQuotes: import_zod8.z.number().describe("Total number of quote posts"),
566
+ totalScore: import_zod8.z.number().describe("Total activity score"),
567
+ rank: import_zod8.z.number().describe("Rank on the leaderboard"),
568
+ lastActive: import_zod8.z.string().datetime().describe("Timestamp of last activity")
553
569
  }).describe("Account activity entry");
554
- var ActivityLeaderboardResponseSchema = import_zod7.z.object({
555
- timeframe: import_zod7.z.nativeEnum(TimePeriod).describe("Timeframe for the leaderboard"),
556
- entries: import_zod7.z.array(AccountActivityEntrySchema).describe("Leaderboard entries"),
557
- generatedAt: import_zod7.z.string().datetime().describe("Timestamp when the leaderboard was generated"),
570
+ var ActivityLeaderboardResponseSchema = import_zod8.z.object({
571
+ timeframe: import_zod8.z.nativeEnum(TimePeriod).describe("Timeframe for the leaderboard"),
572
+ entries: import_zod8.z.array(AccountActivityEntrySchema).describe("Leaderboard entries"),
573
+ generatedAt: import_zod8.z.string().datetime().describe("Timestamp when the leaderboard was generated"),
558
574
  platform: PlatformSchema.optional().describe("Platform filter (if applied)")
559
575
  });
560
- var AccountActivityParamsSchema = import_zod7.z.object({
561
- signerId: import_zod7.z.string().describe("NEAR account ID")
576
+ var AccountActivityParamsSchema = import_zod8.z.object({
577
+ signerId: import_zod8.z.string().describe("NEAR account ID")
562
578
  }).describe("Account activity params");
563
- var AccountActivityQuerySchema = import_zod7.z.object({
564
- timeframe: import_zod7.z.nativeEnum(TimePeriod).optional().describe(
579
+ var AccountActivityQuerySchema = import_zod8.z.object({
580
+ timeframe: import_zod8.z.nativeEnum(TimePeriod).optional().describe(
565
581
  "Timeframe for the activity"
566
582
  )
567
583
  }).describe("Account activity query");
568
- var PlatformActivitySchema = import_zod7.z.object({
584
+ var PlatformActivitySchema = import_zod8.z.object({
569
585
  platform: PlatformSchema,
570
- posts: import_zod7.z.number().describe("Number of posts on this platform"),
571
- likes: import_zod7.z.number().describe("Number of likes on this platform"),
572
- reposts: import_zod7.z.number().describe("Number of reposts on this platform"),
573
- replies: import_zod7.z.number().describe("Number of replies on this platform"),
574
- quotes: import_zod7.z.number().describe("Number of quote posts on this platform"),
575
- score: import_zod7.z.number().describe("Activity score on this platform"),
576
- lastActive: import_zod7.z.string().datetime().describe("Timestamp of last activity on this platform")
586
+ posts: import_zod8.z.number().describe("Number of posts on this platform"),
587
+ likes: import_zod8.z.number().describe("Number of likes on this platform"),
588
+ reposts: import_zod8.z.number().describe("Number of reposts on this platform"),
589
+ replies: import_zod8.z.number().describe("Number of replies on this platform"),
590
+ quotes: import_zod8.z.number().describe("Number of quote posts on this platform"),
591
+ score: import_zod8.z.number().describe("Activity score on this platform"),
592
+ lastActive: import_zod8.z.string().datetime().describe("Timestamp of last activity on this platform")
577
593
  }).describe("Platform activity");
578
- var AccountActivityResponseSchema = import_zod7.z.object({
579
- signerId: import_zod7.z.string().describe("NEAR account ID"),
580
- timeframe: import_zod7.z.nativeEnum(TimePeriod).describe("Timeframe for the activity"),
581
- totalPosts: import_zod7.z.number().describe("Total number of posts across all platforms"),
582
- totalLikes: import_zod7.z.number().describe("Total number of likes across all platforms"),
583
- totalReposts: import_zod7.z.number().describe("Total number of reposts across all platforms"),
584
- totalReplies: import_zod7.z.number().describe("Total number of replies across all platforms"),
585
- totalQuotes: import_zod7.z.number().describe("Total number of quote posts across all platforms"),
586
- totalScore: import_zod7.z.number().describe("Total activity score across all platforms"),
587
- rank: import_zod7.z.number().describe("Rank on the leaderboard"),
588
- lastActive: import_zod7.z.string().datetime().describe("Timestamp of last activity across all platforms"),
589
- platforms: import_zod7.z.array(PlatformActivitySchema).describe("Activity breakdown by platform")
594
+ var AccountActivityResponseSchema = import_zod8.z.object({
595
+ signerId: import_zod8.z.string().describe("NEAR account ID"),
596
+ timeframe: import_zod8.z.nativeEnum(TimePeriod).describe("Timeframe for the activity"),
597
+ totalPosts: import_zod8.z.number().describe("Total number of posts across all platforms"),
598
+ totalLikes: import_zod8.z.number().describe("Total number of likes across all platforms"),
599
+ totalReposts: import_zod8.z.number().describe("Total number of reposts across all platforms"),
600
+ totalReplies: import_zod8.z.number().describe("Total number of replies across all platforms"),
601
+ totalQuotes: import_zod8.z.number().describe("Total number of quote posts across all platforms"),
602
+ totalScore: import_zod8.z.number().describe("Total activity score across all platforms"),
603
+ rank: import_zod8.z.number().describe("Rank on the leaderboard"),
604
+ lastActive: import_zod8.z.string().datetime().describe("Timestamp of last activity across all platforms"),
605
+ platforms: import_zod8.z.array(PlatformActivitySchema).describe("Activity breakdown by platform")
590
606
  });
591
- var AccountPostsParamsSchema = import_zod7.z.object({
592
- signerId: import_zod7.z.string().describe("NEAR account ID")
607
+ var AccountPostsParamsSchema = import_zod8.z.object({
608
+ signerId: import_zod8.z.string().describe("NEAR account ID")
593
609
  }).describe("Account posts params");
594
- var AccountPostsQuerySchema = import_zod7.z.object({
595
- platform: import_zod7.z.string().optional().describe("Filter by platform (optional)"),
596
- limit: import_zod7.z.string().optional().transform((val) => val ? parseInt(val, 10) : void 0).pipe(import_zod7.z.number().min(1).max(100).optional()).describe("Maximum number of results to return (1-100)"),
597
- offset: import_zod7.z.string().optional().transform((val) => val ? parseInt(val, 10) : void 0).pipe(import_zod7.z.number().min(0).optional()).describe("Offset for pagination"),
598
- type: import_zod7.z.enum(["post", "repost", "reply", "quote", "like", "all"]).optional().describe(
610
+ var AccountPostsQuerySchema = import_zod8.z.object({
611
+ platform: import_zod8.z.string().optional().describe("Filter by platform (optional)"),
612
+ limit: import_zod8.z.string().optional().transform((val) => val ? parseInt(val, 10) : void 0).pipe(import_zod8.z.number().min(1).max(100).optional()).describe("Maximum number of results to return (1-100)"),
613
+ offset: import_zod8.z.string().optional().transform((val) => val ? parseInt(val, 10) : void 0).pipe(import_zod8.z.number().min(0).optional()).describe("Offset for pagination"),
614
+ type: import_zod8.z.enum(["post", "repost", "reply", "quote", "like", "all"]).optional().describe(
599
615
  "Filter by post type (optional)"
600
616
  )
601
617
  }).describe("Account posts query");
602
- var AccountPostSchema = import_zod7.z.object({
603
- id: import_zod7.z.string().describe("Post ID"),
618
+ var AccountPostSchema = import_zod8.z.object({
619
+ id: import_zod8.z.string().describe("Post ID"),
604
620
  platform: PlatformSchema,
605
- type: import_zod7.z.enum(["post", "repost", "reply", "quote", "like"]).describe("Type of post"),
606
- content: import_zod7.z.string().optional().describe("Post content (if available)"),
607
- url: import_zod7.z.string().url().optional().describe("URL to the post on the platform (if available)"),
608
- createdAt: import_zod7.z.string().datetime().describe("Timestamp when the post was created"),
609
- metrics: import_zod7.z.object({
610
- likes: import_zod7.z.number().optional().describe("Number of likes (if available)"),
611
- reposts: import_zod7.z.number().optional().describe("Number of reposts (if available)"),
612
- replies: import_zod7.z.number().optional().describe("Number of replies (if available)"),
613
- quotes: import_zod7.z.number().optional().describe("Number of quotes (if available)")
621
+ type: import_zod8.z.enum(["post", "repost", "reply", "quote", "like"]).describe("Type of post"),
622
+ content: import_zod8.z.string().optional().describe("Post content (if available)"),
623
+ url: import_zod8.z.string().url().optional().describe("URL to the post on the platform (if available)"),
624
+ createdAt: import_zod8.z.string().datetime().describe("Timestamp when the post was created"),
625
+ metrics: import_zod8.z.object({
626
+ likes: import_zod8.z.number().optional().describe("Number of likes (if available)"),
627
+ reposts: import_zod8.z.number().optional().describe("Number of reposts (if available)"),
628
+ replies: import_zod8.z.number().optional().describe("Number of replies (if available)"),
629
+ quotes: import_zod8.z.number().optional().describe("Number of quotes (if available)")
614
630
  }).optional().describe("Post metrics (if available)"),
615
- inReplyToId: import_zod7.z.string().optional().describe("ID of the post this is a reply to (if applicable)"),
616
- quotedPostId: import_zod7.z.string().optional().describe("ID of the post this is quoting (if applicable)")
631
+ inReplyToId: import_zod8.z.string().optional().describe("ID of the post this is a reply to (if applicable)"),
632
+ quotedPostId: import_zod8.z.string().optional().describe("ID of the post this is quoting (if applicable)")
617
633
  }).describe("Account post");
618
- var AccountPostsResponseSchema = import_zod7.z.object({
619
- signerId: import_zod7.z.string().describe("NEAR account ID"),
620
- posts: import_zod7.z.array(AccountPostSchema).describe("List of posts"),
621
- platform: import_zod7.z.string().optional().describe("Platform filter (if applied)"),
622
- type: import_zod7.z.enum(["post", "repost", "reply", "quote", "like", "all"]).optional().describe(
634
+ var AccountPostsResponseSchema = import_zod8.z.object({
635
+ signerId: import_zod8.z.string().describe("NEAR account ID"),
636
+ posts: import_zod8.z.array(AccountPostSchema).describe("List of posts"),
637
+ platform: import_zod8.z.string().optional().describe("Platform filter (if applied)"),
638
+ type: import_zod8.z.enum(["post", "repost", "reply", "quote", "like", "all"]).optional().describe(
623
639
  "Post type filter (if applied)"
624
640
  )
625
641
  });
626
-
627
- // src/user-profile.ts
628
- var import_zod8 = require("zod");
629
- var UserProfileSchema = import_zod8.z.object({
630
- userId: import_zod8.z.string().describe("User ID on the platform"),
631
- username: import_zod8.z.string().describe("Username on the platform"),
632
- url: import_zod8.z.string().url().optional().describe("URL to the user profile"),
633
- profileImageUrl: import_zod8.z.string().describe("URL to the user profile image"),
634
- isPremium: import_zod8.z.boolean().optional().describe("Whether the user has a premium account"),
635
- platform: PlatformSchema.describe("The platform the user profile is from"),
636
- lastUpdated: import_zod8.z.number().describe("Timestamp when the profile was last updated")
637
- }).describe("User profile");
638
- var ProfileRefreshResponseSchema = import_zod8.z.object({
639
- profile: UserProfileSchema.optional().describe("The refreshed user profile (if successful)")
640
- }).describe("Profile refresh response");
641
642
  // Annotate the CommonJS export names for ESM import in node:
642
643
  0 && (module.exports = {
643
644
  AccountActivityEntrySchema,