import { BaseModelSchema } from '@activepieces/shared' import { Static, Type } from '@sinclair/typebox' export const OAuthApp = Type.Object({ ...BaseModelSchema, pieceName: Type.String(), platformId: Type.String(), clientId: Type.String(), }) export type OAuthApp = Static export const UpsertOAuth2AppRequest = Type.Object({ pieceName: Type.String(), clientId: Type.String(), clientSecret: Type.String(), }) export type UpsertOAuth2AppRequest = Static export const ListOAuth2AppRequest = Type.Object({ limit: Type.Optional(Type.Number()), cursor: Type.Optional(Type.String()), }) export type ListOAuth2AppRequest = Static