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