UNPKG

@basetime/a2w-api-ts

Version:

Client library that communicates with the addtowallet API.

15 lines (14 loc) 390 B
import { z } from 'zod'; /** * Schema for an auth response from `/auth/apiGrant`, `/auth/oauth/token`, and * `/auth/apiRefresh`. */ export declare const AuthedSchema: z.ZodObject<{ idToken: z.ZodString; refreshToken: z.ZodString; expiresAt: z.ZodNumber; }, z.core.$loose>; /** * A response from the a2w auth endpoints. */ export type Authed = z.infer<typeof AuthedSchema>;