@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crosspost/types",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "Shared type definitions for Crosspost API",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
package/src/auth.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { PlatformSchema } from './common.ts';
3
+ import { UserProfileSchema } from './user-profile.ts';
3
4
 
4
5
  export const PlatformParamSchema = z.object({
5
6
  platform: z.string().describe('Social media platform'),
@@ -65,9 +66,8 @@ export const AuthRevokeResponseSchema = z.object({
65
66
  export const ConnectedAccountSchema = z.object({
66
67
  platform: PlatformSchema,
67
68
  userId: z.string().describe('User ID on the platform'),
68
- username: z.string().optional().describe('Username on the platform (if available)'),
69
- profileUrl: z.string().optional().describe('URL to the user profile'),
70
- connectedAt: z.string().optional().describe('When the account was connected'),
69
+ connectedAt: z.string().describe('When the account was connected'),
70
+ profile: UserProfileSchema.nullable().describe('Full user profile data'),
71
71
  }).describe('Connected account');
72
72
 
73
73
  export const ConnectedAccountsResponseSchema = z.object({