@pear-protocol/types 1.12.0 → 1.13.0

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.
@@ -23,7 +23,11 @@ export declare const RefreshTokenResponse: z.ZodObject<{
23
23
  tokenType: z.ZodLiteral<"Bearer">;
24
24
  expiresIn: z.ZodNumber;
25
25
  }, z.core.$strip>;
26
- export declare const RefreshSessionResponse: z.ZodVoid;
26
+ export declare const RefreshSessionResponse: z.ZodObject<{
27
+ accessToken: z.ZodString;
28
+ tokenType: z.ZodLiteral<"Bearer">;
29
+ expiresIn: z.ZodNumber;
30
+ }, z.core.$strip>;
27
31
  export declare const LogoutResponse: z.ZodVoid;
28
32
  export declare const RegisterEmailResponse: z.ZodVoid;
29
33
  export declare const VerifyEmailResponse: z.ZodVoid;
@@ -12,7 +12,11 @@ const RefreshTokenResponse = z.object({
12
12
  tokenType: z.literal("Bearer").describe('Token type (always "Bearer")'),
13
13
  expiresIn: z.number().int().positive().describe("Access token expiry time in seconds")
14
14
  }).describe("Successful token refresh response");
15
- const RefreshSessionResponse = z.void().describe("Successful session refresh response");
15
+ const RefreshSessionResponse = z.object({
16
+ accessToken: z.string().describe("New JWT access token"),
17
+ tokenType: z.literal("Bearer").describe('Token type (always "Bearer")'),
18
+ expiresIn: z.number().int().positive().describe("Access token expiry time in seconds")
19
+ }).describe("Successful session refresh response");
16
20
  const LogoutResponse = z.void().describe("Successful logout response");
17
21
  const RegisterEmailResponse = z.void().describe("Successful email registration response");
18
22
  const VerifyEmailResponse = z.void().describe("Successful email verification response");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pear-protocol/types",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "description": "Pear Protocol Types definitions",
5
5
  "private": false,
6
6
  "type": "module",