@crosspost/types 0.1.11 → 0.1.13

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
@@ -247,9 +247,7 @@ var AuthInitRequestSchema = import_zod5.z.object({
247
247
  )
248
248
  }).describe("Auth initialization request");
249
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"),
252
- platform: PlatformSchema
250
+ url: import_zod5.z.string().describe("Authentication URL to redirect the user to")
253
251
  }).describe("Auth URL response");
254
252
  var AuthCallbackQuerySchema = import_zod5.z.object({
255
253
  code: import_zod5.z.string().describe("Authorization code from OAuth provider"),
package/dist/index.d.cts CHANGED
@@ -311,16 +311,10 @@ declare const AuthInitRequestSchema: z.ZodObject<{
311
311
  }>;
312
312
  declare const AuthUrlResponseSchema: z.ZodObject<{
313
313
  url: z.ZodString;
314
- state: z.ZodString;
315
- platform: z.ZodNativeEnum<typeof Platform>;
316
314
  }, "strip", z.ZodTypeAny, {
317
- platform: Platform;
318
315
  url: string;
319
- state: string;
320
316
  }, {
321
- platform: Platform;
322
317
  url: string;
323
- state: string;
324
318
  }>;
325
319
  declare const AuthCallbackQuerySchema: z.ZodObject<{
326
320
  code: z.ZodString;
package/dist/index.d.ts CHANGED
@@ -311,16 +311,10 @@ declare const AuthInitRequestSchema: z.ZodObject<{
311
311
  }>;
312
312
  declare const AuthUrlResponseSchema: z.ZodObject<{
313
313
  url: z.ZodString;
314
- state: z.ZodString;
315
- platform: z.ZodNativeEnum<typeof Platform>;
316
314
  }, "strip", z.ZodTypeAny, {
317
- platform: Platform;
318
315
  url: string;
319
- state: string;
320
316
  }, {
321
- platform: Platform;
322
317
  url: string;
323
- state: string;
324
318
  }>;
325
319
  declare const AuthCallbackQuerySchema: z.ZodObject<{
326
320
  code: z.ZodString;
package/dist/index.js CHANGED
@@ -147,9 +147,7 @@ var AuthInitRequestSchema = z5.object({
147
147
  )
148
148
  }).describe("Auth initialization request");
149
149
  var AuthUrlResponseSchema = z5.object({
150
- url: z5.string().describe("Authentication URL to redirect the user to"),
151
- state: z5.string().describe("State parameter for CSRF protection"),
152
- platform: PlatformSchema
150
+ url: z5.string().describe("Authentication URL to redirect the user to")
153
151
  }).describe("Auth URL response");
154
152
  var AuthCallbackQuerySchema = z5.object({
155
153
  code: z5.string().describe("Authorization code from OAuth provider"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crosspost/types",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "Shared type definitions for Crosspost API",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
package/src/auth.ts CHANGED
@@ -18,8 +18,6 @@ export const AuthInitRequestSchema = z.object({
18
18
 
19
19
  export const AuthUrlResponseSchema = z.object({
20
20
  url: z.string().describe('Authentication URL to redirect the user to'),
21
- state: z.string().describe('State parameter for CSRF protection'),
22
- platform: PlatformSchema,
23
21
  }).describe('Auth URL response');
24
22
 
25
23
  export const AuthCallbackQuerySchema = z.object({