import type { ResponseOf, BodyOf } from './spec-types.js'; export type AppRecord = ResponseOf<'/api/apps/{id}', 'get'>; export type CreatedApp = ResponseOf<'/api/apps', 'post'>; export type CreateAppInput = BodyOf<'/api/apps', 'post'>; export type UpdateAppInput = BodyOf<'/api/apps/{id}', 'patch'>; export type ModelStrategy = NonNullable; export type RequiredTier = NonNullable[number]>; export type ApiKeyRecord = ResponseOf<'/api/keys', 'get'>[number]; export type AddApiKeyInput = BodyOf<'/api/keys', 'post'>; export type Flavor = NonNullable; export type AuthorizeInput = { readonly clientId: string; readonly redirectUri: string; readonly budgetLimit: number; readonly state?: string; }; export type AuthorizeResult = ResponseOf<'/api/oauth/authorize', 'post'>; export type ExchangeInput = { readonly code: string; readonly clientId: string; readonly clientSecret: string; readonly redirectUri: string; }; export type ExchangeResult = ResponseOf<'/api/oauth/token', 'post'>; export type ConnectionRecord = ResponseOf<'/api/connections', 'get'>[number]; export type ConnectionStats = ResponseOf<'/api/connections/{id}/stats', 'get'>; export type SpendingFilters = { readonly appId?: string; readonly from?: string; readonly to?: string; readonly limit?: number; readonly offset?: number; }; export type SpendingEntry = ResponseOf<'/api/spending', 'get'>[number]; export type RegisterUserInput = BodyOf<'/api/auth/register', 'post'>; export type RegisterUserResult = ResponseOf<'/api/auth/register', 'post'>; export type LoginInput = BodyOf<'/api/auth/login', 'post'>; export type LoginResult = ResponseOf<'/api/auth/login', 'post'>; export type Me = ResponseOf<'/api/auth/me', 'get'>; export type CreateTokenInput = BodyOf<'/api/auth/tokens', 'post'>; export type CreatedPat = ResponseOf<'/api/auth/tokens', 'post'>; export type PatRecord = ResponseOf<'/api/auth/tokens', 'get'>[number]; export type AccountRecord = ResponseOf<'/api/accounts', 'get'>[number]; export type AccountType = AccountRecord['type']; export type PoolResetPeriod = AccountRecord['poolResetPeriod']; export type CreateAccountInput = BodyOf<'/api/accounts', 'post'>; export type UpdateAccountInput = BodyOf<'/api/accounts/{id}', 'patch'>; export type MemberRecord = ResponseOf<'/api/accounts/{accountId}/members', 'get'>[number]; export type UpdateMemberInput = BodyOf<'/api/accounts/{accountId}/members/{userId}', 'patch'>; export type InvitationRecord = ResponseOf<'/api/accounts/{accountId}/invitations', 'get'>[number]; export type InvitationWithClaim = ResponseOf<'/api/accounts/{accountId}/invitations', 'post'>; export type CreateInvitationInput = BodyOf<'/api/accounts/{accountId}/invitations', 'post'>; export type InviteCampaignRecord = ResponseOf<'/api/accounts/{accountId}/invite-campaigns', 'post'>; export type InviteCampaignWithInvites = ResponseOf<'/api/accounts/{accountId}/invite-campaigns', 'get'>[number]; export type CreateCampaignInput = BodyOf<'/api/accounts/{accountId}/invite-campaigns', 'post'>; export type MembershipSummary = ResponseOf<'/api/accounts/{accountId}/membership', 'get'>; export type AppPolicy = BodyOf<'/api/accounts/{accountId}/app-policy', 'patch'>['appPolicy']; export type ApprovedApp = ResponseOf<'/api/accounts/{accountId}/approved-apps', 'post'>; export type ApproveAppInput = BodyOf<'/api/accounts/{accountId}/approved-apps', 'post'>; export type ConnectableApp = ResponseOf<'/api/accounts/{accountId}/connectable-apps', 'get'>[number]; export type ClaimInvitationInput = BodyOf<'/api/invitations/claim', 'post'>; export type ClaimInvitationResult = ResponseOf<'/api/invitations/claim', 'post'>; //# sourceMappingURL=types.d.ts.map