Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/andreijiroh-dev/api-servers. Monorepo for different Cloudflare Workers and Deno Deploy hosted APIs
Something went wrong. Try again.
846 B · 46 lines
TypeScript
at main
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647import { z, string, object, array } from 'npm:zod';
export const meSchema = z.object({ city: string(), state: string(), country: string({ description: "ISO XXXX country code" }).default("PH"), slack: array(object({ team_id: string(), team: string(), user_id: string() })).default([ { team_id: "T0266FRGM", team: "hackclub", user_id: "U07CAPBB9B5" } ])})
export const metaSchema = z.object({ city: string(), state: string(), country: string({ description: "ISO XXXX country code" }).default("PH"), slack: array(object({ team_id: string(), team: string(), user_id: string() })).default([ { team_id: "T0266FRGM", team: "hackclub", user_id: "U07CAPBB9B5" } ])})
export type OAuthTokenResponse = { access_token: string, token_type: "Bearer", expires_in: number, refresh_token: string}