@timothyw/pat-common 1.0.5 → 1.0.7
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.
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { AuthTokens } from "../../auth-tokens";
|
|
3
3
|
import { PublicAuthData } from "../../models";
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const refreshAuthRequestSchema: z.ZodObject<{
|
|
5
5
|
refreshToken: z.ZodString;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
7
|
refreshToken: string;
|
|
8
8
|
}, {
|
|
9
9
|
refreshToken: string;
|
|
10
10
|
}>;
|
|
11
|
-
export type
|
|
11
|
+
export type RefreshAuthRequest = z.infer<typeof refreshAuthRequestSchema>;
|
|
12
12
|
export interface RefreshAuthResponse {
|
|
13
13
|
tokenData: AuthTokens;
|
|
14
14
|
authData: PublicAuthData;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.refreshAuthRequestSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.
|
|
5
|
+
exports.refreshAuthRequestSchema = zod_1.z.object({
|
|
6
6
|
refreshToken: zod_1.z.string()
|
|
7
7
|
});
|
package/package.json
CHANGED
|
@@ -2,11 +2,11 @@ import { z } from "zod";
|
|
|
2
2
|
import { AuthTokens } from "../../auth-tokens";
|
|
3
3
|
import { PublicAuthData } from "../../models";
|
|
4
4
|
|
|
5
|
-
export const
|
|
5
|
+
export const refreshAuthRequestSchema = z.object({
|
|
6
6
|
refreshToken: z.string()
|
|
7
7
|
});
|
|
8
8
|
|
|
9
|
-
export type
|
|
9
|
+
export type RefreshAuthRequest = z.infer<typeof refreshAuthRequestSchema>;
|
|
10
10
|
|
|
11
11
|
export interface RefreshAuthResponse {
|
|
12
12
|
tokenData: AuthTokens;
|