trainingpeaks-sdk
Version:
TypeScript SDK for TrainingPeaks API integration
54 lines • 1.9 kB
TypeScript
import { z } from 'zod';
export declare const TokenEndpointResponseSchema: z.ZodObject<{
success: z.ZodBoolean;
token: z.ZodObject<{
access_token: z.ZodString;
token_type: z.ZodString;
expires_in: z.ZodNumber;
expires: z.ZodString;
refresh_token: z.ZodOptional<z.ZodString>;
scope: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
}, z.core.$strip>;
export declare const RefreshTokenRequestSchema: z.ZodObject<{
refreshToken: z.ZodString;
}, z.core.$strip>;
export declare const RefreshTokenEndpointResponseSchema: z.ZodObject<{
success: z.ZodBoolean;
token: z.ZodObject<{
access_token: z.ZodString;
token_type: z.ZodString;
expires_in: z.ZodNumber;
expires: z.ZodString;
refresh_token: z.ZodOptional<z.ZodString>;
scope: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
}, z.core.$strip>;
export declare const TrainingPeaksTokenResponseSchema: z.ZodObject<{
success: z.ZodBoolean;
token: z.ZodObject<{
access_token: z.ZodString;
token_type: z.ZodString;
expires_in: z.ZodNumber;
refresh_token: z.ZodString;
scope: z.ZodString;
expires: z.ZodString;
}, z.core.$strip>;
}, z.core.$strip>;
export declare const TokenResponseSchema: z.ZodObject<{
status: z.ZodNumber;
statusText: z.ZodString;
data: z.ZodObject<{
token: z.ZodObject<{
access_token: z.ZodString;
token_type: z.ZodString;
expires_in: z.ZodNumber;
refresh_token: z.ZodOptional<z.ZodString>;
scope: z.ZodOptional<z.ZodString>;
expires: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
}, z.core.$strip>;
headers: z.ZodRecord<z.ZodString, z.ZodString>;
cookies: z.ZodArray<z.ZodString>;
}, z.core.$strip>;
//# sourceMappingURL=token.schemas.d.ts.map