/** * This file was auto-generated by openapi-typescript. * Do not make direct changes to the file. */ export interface paths { "/api/admin/overview": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** Platform overview metrics */ get: operations["getApiAdminOverview"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/admin/users": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List users */ get: operations["getApiAdminUsers"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/admin/keys": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List API keys */ get: operations["getApiAdminKeys"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/auth/register": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Register a new user */ post: operations["postApiAuthRegister"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/auth/login": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Log in */ post: operations["postApiAuthLogin"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/auth/logout": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Log out */ post: operations["postApiAuthLogout"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/auth/bootstrap-session": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Bootstrap a session from an access token */ post: operations["postApiAuthBootstrapSession"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/auth/me": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** Current user */ get: operations["getApiAuthMe"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/auth/tokens": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List personal access tokens */ get: operations["getApiAuthTokens"]; put?: never; /** Mint a personal access token */ post: operations["postApiAuthTokens"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/auth/tokens/{id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; /** Revoke a personal access token */ delete: operations["deleteApiAuthTokensById"]; options?: never; head?: never; patch?: never; trace?: never; }; "/api/accounts": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List the user's accounts */ get: operations["getApiAccounts"]; put?: never; /** Create a business account */ post: operations["postApiAccounts"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/accounts/{id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** Get an account */ get: operations["getApiAccountsById"]; put?: never; post?: never; /** Delete an account */ delete: operations["deleteApiAccountsById"]; options?: never; head?: never; /** Update an account */ patch: operations["patchApiAccountsById"]; trace?: never; }; "/api/teams": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List teams I belong to */ get: operations["getApiTeams"]; put?: never; /** Create a team */ post: operations["postApiTeams"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/teams/{teamId}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** Get a team */ get: operations["getApiTeamsByTeamId"]; put?: never; post?: never; /** Delete a team */ delete: operations["deleteApiTeamsByTeamId"]; options?: never; head?: never; /** Update a team */ patch: operations["patchApiTeamsByTeamId"]; trace?: never; }; "/api/teams/{teamId}/members": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List team members */ get: operations["getApiTeamsByTeamIdMembers"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/teams/{teamId}/members/{userId}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; /** Remove a team member */ delete: operations["deleteApiTeamsByTeamIdMembersByUserId"]; options?: never; head?: never; /** Update a team member */ patch: operations["patchApiTeamsByTeamIdMembersByUserId"]; trace?: never; }; "/api/teams/{teamId}/leave": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Leave a team */ post: operations["postApiTeamsByTeamIdLeave"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/teams/{teamId}/keys": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List team provider keys */ get: operations["getApiTeamsByTeamIdKeys"]; put?: never; /** Add a team provider key */ post: operations["postApiTeamsByTeamIdKeys"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/teams/{teamId}/keys/{id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; /** Delete a team provider key */ delete: operations["deleteApiTeamsByTeamIdKeysById"]; options?: never; head?: never; patch?: never; trace?: never; }; "/api/teams/{teamId}/keys/{id}/test": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Test a team provider key (free, no tokens) */ post: operations["postApiTeamsByTeamIdKeysByIdTest"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/teams/{teamId}/invitations": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List a team's pending invitations */ get: operations["getApiTeamsByTeamIdInvitations"]; put?: never; /** Invite a member to a team */ post: operations["postApiTeamsByTeamIdInvitations"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/teams/{teamId}/invitations/{invitationId}/link": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Re-issue a team invite link */ post: operations["postApiTeamsByTeamIdInvitationsByInvitationIdLink"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/teams/{teamId}/invitations/{invitationId}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; /** Cancel a team invitation */ delete: operations["deleteApiTeamsByTeamIdInvitationsByInvitationId"]; options?: never; head?: never; patch?: never; trace?: never; }; "/api/teams/{teamId}/invite-campaigns": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List a team's invite campaigns */ get: operations["getApiTeamsByTeamIdInviteCampaigns"]; put?: never; /** Create a team invite campaign */ post: operations["postApiTeamsByTeamIdInviteCampaigns"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/teams/{teamId}/invite-campaigns/{campaignId}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; /** Delete a team invite campaign */ delete: operations["deleteApiTeamsByTeamIdInviteCampaignsByCampaignId"]; options?: never; head?: never; patch?: never; trace?: never; }; "/api/marketplace": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List marketplace apps */ get: operations["getApiMarketplace"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/campaigns": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List my campaigns */ get: operations["getApiCampaigns"]; put?: never; /** Create a campaign */ post: operations["postApiCampaigns"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/campaigns/my-keys": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List the campaign keys granted to me */ get: operations["getApiCampaignsMyKeys"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/campaigns/preview": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** Preview a campaign link (public) */ get: operations["getApiCampaignsPreview"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/campaigns/claim": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Claim a campaign link */ post: operations["postApiCampaignsClaim"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/campaigns/{id}/links": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Create a link under a campaign */ post: operations["postApiCampaignsByIdLinks"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/campaigns/links/{linkId}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; /** Delete a campaign link */ delete: operations["deleteApiCampaignsLinksByLinkId"]; options?: never; head?: never; patch?: never; trace?: never; }; "/api/campaigns/{id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; /** Delete a campaign */ delete: operations["deleteApiCampaignsById"]; options?: never; head?: never; patch?: never; trace?: never; }; "/api/accounts/{accountId}/invitations": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List pending invitations */ get: operations["getApiAccountsByAccountIdInvitations"]; put?: never; /** Invite a member */ post: operations["postApiAccountsByAccountIdInvitations"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/accounts/{accountId}/membership": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** Get the caller's membership summary */ get: operations["getApiAccountsByAccountIdMembership"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/accounts/{accountId}/invite-campaigns": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List invite campaigns */ get: operations["getApiAccountsByAccountIdInviteCampaigns"]; put?: never; /** Create an invite campaign */ post: operations["postApiAccountsByAccountIdInviteCampaigns"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/accounts/{accountId}/invite-campaigns/{campaignId}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; /** Delete an invite campaign */ delete: operations["deleteApiAccountsByAccountIdInviteCampaignsByCampaignId"]; options?: never; head?: never; patch?: never; trace?: never; }; "/api/accounts/{accountId}/invitations/{invitationId}/link": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Re-issue an invite link */ post: operations["postApiAccountsByAccountIdInvitationsByInvitationIdLink"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/accounts/{accountId}/invitations/{invitationId}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; /** Cancel an invitation */ delete: operations["deleteApiAccountsByAccountIdInvitationsByInvitationId"]; options?: never; head?: never; patch?: never; trace?: never; }; "/api/accounts/{accountId}/members": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List team members */ get: operations["getApiAccountsByAccountIdMembers"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/accounts/{accountId}/members/{userId}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; /** Remove a member */ delete: operations["deleteApiAccountsByAccountIdMembersByUserId"]; options?: never; head?: never; /** Update a member (role/cap) */ patch: operations["patchApiAccountsByAccountIdMembersByUserId"]; trace?: never; }; "/api/accounts/{accountId}/leave": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Leave a team */ post: operations["postApiAccountsByAccountIdLeave"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/invitations/claim": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Claim an invitation (logged in) */ post: operations["postApiInvitationsClaim"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/invitations/preview": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** Preview an invitation */ get: operations["getApiInvitationsPreview"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/invitations/claim-and-register": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Claim an invitation + register */ post: operations["postApiInvitationsClaimAndRegister"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/accounts/{accountId}/app-policy": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; delete?: never; options?: never; head?: never; /** Set the team app policy (open/managed) */ patch: operations["patchApiAccountsByAccountIdAppPolicy"]; trace?: never; }; "/api/accounts/{accountId}/approved-apps": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List approved apps */ get: operations["getApiAccountsByAccountIdApprovedApps"]; put?: never; /** Approve an app for the team */ post: operations["postApiAccountsByAccountIdApprovedApps"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/accounts/{accountId}/approved-apps/{appId}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; /** Remove an approved app */ delete: operations["deleteApiAccountsByAccountIdApprovedAppsByAppId"]; options?: never; head?: never; patch?: never; trace?: never; }; "/api/accounts/{accountId}/connectable-apps": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List apps a member can connect */ get: operations["getApiAccountsByAccountIdConnectableApps"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/accounts/{accountId}/agent-sessions": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List active agent sessions */ get: operations["getApiAccountsByAccountIdAgentSessions"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/accounts/{accountId}/agent-sessions/{sessionId}/archive": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Archive an agent session */ post: operations["postApiAccountsByAccountIdAgentSessionsBySessionIdArchive"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/oauth/authorize": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** OAuth authorize / consent */ get: operations["getApiOauthAuthorize"]; put?: never; /** Approve an authorization (consent) */ post: operations["postApiOauthAuthorize"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/oauth/preferred-account": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** Resolve the preferred account for an app */ get: operations["getApiOauthPreferredAccount"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/oauth/candidate-accounts": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** Accounts the user can authorize an app from (for the consent grid) */ get: operations["getApiOauthCandidateAccounts"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/oauth/authorize-campaign": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Authorize an app funded by a campaign the user already holds */ post: operations["postApiOauthAuthorizeCampaign"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/oauth/topup": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** Top-up context for an app */ get: operations["getApiOauthTopup"]; put?: never; /** Raise a token budget */ post: operations["postApiOauthTopup"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/oauth/token": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Exchange an authorization code or client credentials for a token */ post: operations["postApiOauthToken"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/apps": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List apps */ get: operations["getApiApps"]; put?: never; /** Create an app */ post: operations["postApiApps"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/apps/{id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** Get an app */ get: operations["getApiAppsById"]; put?: never; post?: never; /** Delete an app */ delete: operations["deleteApiAppsById"]; options?: never; head?: never; /** Update an app */ patch: operations["patchApiAppsById"]; trace?: never; }; "/api/apps/{id}/rotate-secret": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Rotate an app secret */ post: operations["postApiAppsByIdRotateSecret"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/apps/{id}/reset-usage": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Reset an app's usage */ post: operations["postApiAppsByIdResetUsage"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/apps/{appId}/sponsored-keys": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List sponsored keys */ get: operations["getApiAppsByAppIdSponsoredKeys"]; put?: never; /** Add a sponsored key */ post: operations["postApiAppsByAppIdSponsoredKeys"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/apps/{appId}/sponsored-keys/{keyId}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; /** Delete a sponsored key */ delete: operations["deleteApiAppsByAppIdSponsoredKeysByKeyId"]; options?: never; head?: never; /** Update a sponsored key */ patch: operations["patchApiAppsByAppIdSponsoredKeysByKeyId"]; trace?: never; }; "/api/apps/{appId}/builder-keys": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List builder keys */ get: operations["getApiAppsByAppIdBuilderKeys"]; put?: never; /** Add a builder key */ post: operations["postApiAppsByAppIdBuilderKeys"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/apps/{appId}/builder-keys/{keyId}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; /** Delete a builder key */ delete: operations["deleteApiAppsByAppIdBuilderKeysByKeyId"]; options?: never; head?: never; /** Update a builder key */ patch: operations["patchApiAppsByAppIdBuilderKeysByKeyId"]; trace?: never; }; "/api/keys": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List provider keys */ get: operations["getApiKeys"]; put?: never; /** Add a provider key */ post: operations["postApiKeys"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/keys/{id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; /** Delete a provider key */ delete: operations["deleteApiKeysById"]; options?: never; head?: never; patch?: never; trace?: never; }; "/api/keys/{id}/test": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Test a provider key against the provider (free, no tokens) */ post: operations["postApiKeysByIdTest"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/connections": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List authorized app connections */ get: operations["getApiConnections"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/connections/{id}/stats": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** Connection usage stats */ get: operations["getApiConnectionsByIdStats"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/connections/{id}/budget": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; delete?: never; options?: never; head?: never; /** Update connection budget */ patch: operations["patchApiConnectionsByIdBudget"]; trace?: never; }; "/api/connections/{id}/suspend": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Suspend a connection */ post: operations["postApiConnectionsByIdSuspend"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/connections/{id}/resume": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Resume a connection */ post: operations["postApiConnectionsByIdResume"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/connections/{id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; /** Revoke a connection */ delete: operations["deleteApiConnectionsById"]; options?: never; head?: never; patch?: never; trace?: never; }; "/api/spending": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List account spending */ get: operations["getApiSpending"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/cli-login/mint": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Mint a CLI login code */ post: operations["postApiCliLoginMint"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/api/cli-login/exchange": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Exchange a CLI login code */ post: operations["postApiCliLoginExchange"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; } export type webhooks = Record; export interface components { schemas: never; responses: never; parameters: never; requestBodies: never; headers: never; pathItems: never; } export type $defs = Record; export interface operations { getApiAdminOverview: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Platform overview metrics */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { [key: string]: unknown; }; }; }; }; }; getApiAdminUsers: { parameters: { query?: { since?: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description List users */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { count: number; users: { /** Format: uuid */ id: string; /** Format: email */ email: string; /** Format: date-time */ createdAt: string; }[]; }; }; }; }; }; getApiAdminKeys: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description List API keys */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { count: number; keys: { /** Format: uuid */ id: string; provider: string; keyHint: string; isActive: boolean; /** Format: date-time */ createdAt: string; /** Format: email */ userEmail: string; /** Format: uuid */ userId: string; }[]; }; }; }; }; }; postApiAuthRegister: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: { content: { "application/json": { /** Format: email */ email: string; password: string; }; }; }; responses: { /** @description Register a new user */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ userId: string; token: string; }; }; }; }; }; postApiAuthLogin: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: { content: { "application/json": { /** Format: email */ email: string; password: string; }; }; }; responses: { /** @description Log in */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ userId: string; token: string; }; }; }; }; }; postApiAuthLogout: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Log out */ 204: { headers: { [name: string]: unknown; }; content?: never; }; }; }; postApiAuthBootstrapSession: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Bootstrap a session from an access token */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { [key: string]: unknown; }; }; }; }; }; getApiAuthMe: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Current user */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ userId: string; /** Format: email */ email: string; isAdmin: boolean; }; }; }; }; }; getApiAuthTokens: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description List personal access tokens */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; name: string; keyHint: string; /** Format: date-time */ createdAt: string; lastUsedAt: string | null; }[]; }; }; }; }; postApiAuthTokens: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: { content: { "application/json": { name: string; }; }; }; responses: { /** @description Mint a personal access token */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; name: string; keyHint: string; /** Format: date-time */ createdAt: string; lastUsedAt: string | null; token: string; }; }; }; }; }; deleteApiAuthTokensById: { parameters: { query?: never; header?: never; path: { id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Revoke a personal access token */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @constant */ ok: true; }; }; }; }; }; getApiAccounts: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description List the user's accounts */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** @enum {string} */ type: "personal" | "business"; name: string; /** Format: uuid */ ownerUserId: string; poolBudgetLimitUsd: number | null; /** @default 0 */ poolBudgetSpentUsd: number; poolResetPeriod: "monthly" | null; poolLastResetAt: string | null; deletedAt: string | null; /** Format: date-time */ createdAt: string; /** @enum {string} */ role: "owner" | "member"; }[]; }; }; }; }; postApiAccounts: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: { content: { "application/json": { /** @enum {string} */ type: "personal" | "business"; name: string; }; }; }; responses: { /** @description Create a business account */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** @enum {string} */ type: "personal" | "business"; name: string; /** Format: uuid */ ownerUserId: string; poolBudgetLimitUsd: number | null; /** @default 0 */ poolBudgetSpentUsd: number; poolResetPeriod: "monthly" | null; poolLastResetAt: string | null; deletedAt: string | null; /** Format: date-time */ createdAt: string; }; }; }; }; }; getApiAccountsById: { parameters: { query?: never; header?: never; path: { id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Get an account */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** @enum {string} */ type: "personal" | "business"; name: string; /** Format: uuid */ ownerUserId: string; poolBudgetLimitUsd: number | null; /** @default 0 */ poolBudgetSpentUsd: number; poolResetPeriod: "monthly" | null; poolLastResetAt: string | null; deletedAt: string | null; /** Format: date-time */ createdAt: string; /** @enum {string} */ role: "owner" | "member"; }; }; }; }; }; deleteApiAccountsById: { parameters: { query?: never; header?: never; path: { id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Delete an account */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @constant */ ok: true; }; }; }; }; }; patchApiAccountsById: { parameters: { query?: never; header?: never; path: { id: string; }; cookie?: never; }; requestBody?: { content: { "application/json": { name?: string; poolBudgetLimitUsd?: number | null; poolResetPeriod?: "monthly" | null; }; }; }; responses: { /** @description Update an account */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** @enum {string} */ type: "personal" | "business"; name: string; /** Format: uuid */ ownerUserId: string; poolBudgetLimitUsd: number | null; /** @default 0 */ poolBudgetSpentUsd: number; poolResetPeriod: "monthly" | null; poolLastResetAt: string | null; deletedAt: string | null; /** Format: date-time */ createdAt: string; }; }; }; }; }; getApiTeams: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description List teams I belong to */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; name: string; /** @enum {string} */ appPolicy: "open" | "managed"; poolBudgetLimitUsd: number | null; /** @default 0 */ poolBudgetSpentUsd: number; poolResetPeriod: "monthly" | null; poolLastResetAt: string | null; /** Format: uuid */ createdByUserId: string; /** Format: date-time */ createdAt: string; /** @enum {string} */ role: "owner" | "member"; }[]; }; }; }; }; postApiTeams: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: { content: { "application/json": { name: string; }; }; }; responses: { /** @description Create a team */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; name: string; /** @enum {string} */ appPolicy: "open" | "managed"; poolBudgetLimitUsd: number | null; /** @default 0 */ poolBudgetSpentUsd: number; poolResetPeriod: "monthly" | null; poolLastResetAt: string | null; /** Format: uuid */ createdByUserId: string; /** Format: date-time */ createdAt: string; /** @enum {string} */ role: "owner" | "member"; }; }; }; }; }; getApiTeamsByTeamId: { parameters: { query?: never; header?: never; path: { teamId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Get a team */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; name: string; /** @enum {string} */ appPolicy: "open" | "managed"; poolBudgetLimitUsd: number | null; /** @default 0 */ poolBudgetSpentUsd: number; poolResetPeriod: "monthly" | null; poolLastResetAt: string | null; /** Format: uuid */ createdByUserId: string; /** Format: date-time */ createdAt: string; /** @enum {string} */ role: "owner" | "member"; }; }; }; }; }; deleteApiTeamsByTeamId: { parameters: { query?: never; header?: never; path: { teamId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Delete a team */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @constant */ ok: true; }; }; }; }; }; patchApiTeamsByTeamId: { parameters: { query?: never; header?: never; path: { teamId: string; }; cookie?: never; }; requestBody?: { content: { "application/json": { name?: string; poolBudgetLimitUsd?: number | null; poolResetPeriod?: "monthly" | null; }; }; }; responses: { /** @description Update a team */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; name: string; /** @enum {string} */ appPolicy: "open" | "managed"; poolBudgetLimitUsd: number | null; /** @default 0 */ poolBudgetSpentUsd: number; poolResetPeriod: "monthly" | null; poolLastResetAt: string | null; /** Format: uuid */ createdByUserId: string; /** Format: date-time */ createdAt: string; /** @enum {string} */ role: "owner" | "member"; }; }; }; }; }; getApiTeamsByTeamIdMembers: { parameters: { query?: never; header?: never; path: { teamId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description List team members */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ teamId: string; /** Format: uuid */ userId: string; /** Format: email */ email: string; /** @enum {string} */ role: "owner" | "member"; monthlyCapUsd: number | null; /** Format: date-time */ joinedAt: string; mtdSpendUsd: number; }[]; }; }; }; }; deleteApiTeamsByTeamIdMembersByUserId: { parameters: { query?: never; header?: never; path: { teamId: string; userId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Remove a team member */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @constant */ ok: true; }; }; }; }; }; patchApiTeamsByTeamIdMembersByUserId: { parameters: { query?: never; header?: never; path: { teamId: string; userId: string; }; cookie?: never; }; requestBody?: { content: { "application/json": { /** @enum {string} */ role?: "owner" | "member"; monthlyCapUsd?: number | null; }; }; }; responses: { /** @description Update a team member */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ teamId: string; /** Format: uuid */ userId: string; /** Format: email */ email: string; /** @enum {string} */ role: "owner" | "member"; monthlyCapUsd: number | null; /** Format: date-time */ joinedAt: string; mtdSpendUsd: number; }; }; }; }; }; postApiTeamsByTeamIdLeave: { parameters: { query?: never; header?: never; path: { teamId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Leave a team */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @constant */ ok: true; }; }; }; }; }; getApiTeamsByTeamIdKeys: { parameters: { query?: never; header?: never; path: { teamId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description List team provider keys */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** Format: uuid */ userId: string; /** @enum {string} */ provider: "anthropic" | "openai" | "openrouter" | "vercel" | "google" | "grok" | "bedrock"; keyHint: string; customBaseUrl?: string | null; customFlavor?: ("anthropic" | "openai" | "gemini") | null; /** @default true */ isActive: boolean; /** Format: date-time */ createdAt: string; }[]; }; }; }; }; postApiTeamsByTeamIdKeys: { parameters: { query?: never; header?: never; path: { teamId: string; }; cookie?: never; }; requestBody?: { content: { "application/json": { /** @enum {string} */ provider?: "anthropic" | "openai" | "openrouter" | "vercel" | "google" | "grok" | "bedrock"; apiKey: string; /** Format: uri */ customBaseUrl?: string; /** @enum {string} */ customFlavor?: "anthropic" | "openai" | "gemini"; }; }; }; responses: { /** @description Add a team provider key */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** Format: uuid */ userId: string; /** @enum {string} */ provider: "anthropic" | "openai" | "openrouter" | "vercel" | "google" | "grok" | "bedrock"; keyHint: string; customBaseUrl?: string | null; customFlavor?: ("anthropic" | "openai" | "gemini") | null; /** @default true */ isActive: boolean; /** Format: date-time */ createdAt: string; }; }; }; }; }; deleteApiTeamsByTeamIdKeysById: { parameters: { query?: never; header?: never; path: { teamId: string; id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Delete a team provider key */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @constant */ ok: true; }; }; }; }; }; postApiTeamsByTeamIdKeysByIdTest: { parameters: { query?: never; header?: never; path: { teamId: string; id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Test a team provider key (free, no tokens) */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { valid: boolean; status: number; message?: string; }; }; }; }; }; getApiTeamsByTeamIdInvitations: { parameters: { query?: never; header?: never; path: { teamId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description List a team's pending invitations */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** Format: uuid */ accountId: string; campaignId: string | null; email: string | null; /** @enum {string} */ role: "owner" | "member"; monthlyCapUsd: number | null; note: string | null; /** Format: uuid */ invitedByUserId: string; /** Format: date-time */ expiresAt: string; acceptedAt: string | null; /** Format: date-time */ createdAt: string; }[]; }; }; }; }; postApiTeamsByTeamIdInvitations: { parameters: { query?: never; header?: never; path: { teamId: string; }; cookie?: never; }; requestBody?: { content: { "application/json": { /** Format: email */ email?: string; /** @enum {string} */ role?: "owner" | "member"; monthlyCapUsd?: number | null; expiresInDays?: 1 | 7; /** Format: uuid */ campaignId?: string; note?: string; }; }; }; responses: { /** @description Invite a member to a team */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** Format: uuid */ accountId: string; campaignId: string | null; email: string | null; /** @enum {string} */ role: "owner" | "member"; monthlyCapUsd: number | null; note: string | null; /** Format: uuid */ invitedByUserId: string; /** Format: date-time */ expiresAt: string; acceptedAt: string | null; /** Format: date-time */ createdAt: string; /** Format: uri */ claimUrl: string; }; }; }; }; }; postApiTeamsByTeamIdInvitationsByInvitationIdLink: { parameters: { query?: never; header?: never; path: { teamId: string; invitationId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Re-issue a team invite link */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** Format: uuid */ accountId: string; campaignId: string | null; email: string | null; /** @enum {string} */ role: "owner" | "member"; monthlyCapUsd: number | null; note: string | null; /** Format: uuid */ invitedByUserId: string; /** Format: date-time */ expiresAt: string; acceptedAt: string | null; /** Format: date-time */ createdAt: string; /** Format: uri */ claimUrl: string; }; }; }; }; }; deleteApiTeamsByTeamIdInvitationsByInvitationId: { parameters: { query?: never; header?: never; path: { teamId: string; invitationId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Cancel a team invitation */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @constant */ ok: true; }; }; }; }; }; getApiTeamsByTeamIdInviteCampaigns: { parameters: { query?: never; header?: never; path: { teamId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description List a team's invite campaigns */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** Format: uuid */ accountId: string; name: string; /** @enum {string} */ defaultRole: "owner" | "member"; defaultMonthlyCapUsd: number | null; defaultExpiresInDays: 1 | 7; appId: string | null; /** Format: uuid */ createdByUserId: string; /** Format: date-time */ createdAt: string; invites: { /** Format: uuid */ id: string; /** Format: uuid */ accountId: string; campaignId: string | null; email: string | null; /** @enum {string} */ role: "owner" | "member"; monthlyCapUsd: number | null; note: string | null; /** Format: uuid */ invitedByUserId: string; /** Format: date-time */ expiresAt: string; acceptedAt: string | null; /** Format: date-time */ createdAt: string; }[]; }[]; }; }; }; }; postApiTeamsByTeamIdInviteCampaigns: { parameters: { query?: never; header?: never; path: { teamId: string; }; cookie?: never; }; requestBody?: { content: { "application/json": { name: string; /** @enum {string} */ defaultRole?: "owner" | "member"; defaultMonthlyCapUsd?: number | null; defaultExpiresInDays?: 1 | 7; /** Format: uuid */ appId?: string; }; }; }; responses: { /** @description Create a team invite campaign */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** Format: uuid */ accountId: string; name: string; /** @enum {string} */ defaultRole: "owner" | "member"; defaultMonthlyCapUsd: number | null; defaultExpiresInDays: 1 | 7; appId: string | null; /** Format: uuid */ createdByUserId: string; /** Format: date-time */ createdAt: string; }; }; }; }; }; deleteApiTeamsByTeamIdInviteCampaignsByCampaignId: { parameters: { query?: never; header?: never; path: { teamId: string; campaignId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Delete a team invite campaign */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @constant */ ok: true; }; }; }; }; }; getApiMarketplace: { parameters: { query?: { q?: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description List marketplace apps */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ appId: string; name: string; websiteUrl: string | null; description: string | null; iconUrl: string | null; }[]; }; }; }; }; getApiCampaigns: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description List my campaigns */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; name: string; /** Format: uuid */ appId: string; appName: string; appIconUrl: string | null; provider: string; keyHint: string; totalCapUsd: number; totalSpentUsd: number; /** Format: date-time */ createdAt: string; links: { /** Format: uuid */ id: string; /** Format: uuid */ campaignId: string; name: string | null; perPersonBudgetUsd: number; maxClaims: number | null; /** Format: date-time */ linkExpiresAt: string; expired: boolean; claimCount: number; claimUrl: string; /** Format: date-time */ createdAt: string; }[]; }[]; }; }; }; }; postApiCampaigns: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: { content: { "application/json": { /** Format: uuid */ appId: string; name: string; apiKey: string; totalCapUsd: number; }; }; }; responses: { /** @description Create a campaign */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; name: string; /** Format: uuid */ appId: string; appName: string; appIconUrl: string | null; provider: string; keyHint: string; totalCapUsd: number; totalSpentUsd: number; /** Format: date-time */ createdAt: string; links: { /** Format: uuid */ id: string; /** Format: uuid */ campaignId: string; name: string | null; perPersonBudgetUsd: number; maxClaims: number | null; /** Format: date-time */ linkExpiresAt: string; expired: boolean; claimCount: number; claimUrl: string; /** Format: date-time */ createdAt: string; }[]; }; }; }; }; }; getApiCampaignsMyKeys: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description List the campaign keys granted to me */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; campaignName: string; appName: string; appIconUrl: string | null; provider: string; budgetLimitUsd: number; budgetSpentUsd: number; }[]; }; }; }; }; getApiCampaignsPreview: { parameters: { query: { token: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Preview a campaign link (public) */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { campaignName: string; /** Format: uuid */ appId: string; appName: string; appIconUrl: string | null; expired: boolean; alreadyClaimed: boolean; full: boolean; }; }; }; }; }; postApiCampaignsClaim: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: { content: { "application/json": { token: string; }; }; }; responses: { /** @description Claim a campaign link */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ appId: string; redirectUrl: string | null; }; }; }; }; }; postApiCampaignsByIdLinks: { parameters: { query?: never; header?: never; path: { id: string; }; cookie?: never; }; requestBody?: { content: { "application/json": { name?: string; perPersonBudgetUsd: number; /** @default 1 */ maxClaims?: number | null; linkExpiresInDays: number; }; }; }; responses: { /** @description Create a link under a campaign */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** Format: uuid */ campaignId: string; name: string | null; perPersonBudgetUsd: number; maxClaims: number | null; /** Format: date-time */ linkExpiresAt: string; expired: boolean; claimCount: number; claimUrl: string; /** Format: date-time */ createdAt: string; }; }; }; }; }; deleteApiCampaignsLinksByLinkId: { parameters: { query?: never; header?: never; path: { linkId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Delete a campaign link */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @constant */ ok: true; }; }; }; }; }; deleteApiCampaignsById: { parameters: { query?: never; header?: never; path: { id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Delete a campaign */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @constant */ ok: true; }; }; }; }; }; getApiAccountsByAccountIdInvitations: { parameters: { query?: never; header?: never; path: { accountId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description List pending invitations */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** Format: uuid */ accountId: string; campaignId: string | null; email: string | null; /** @enum {string} */ role: "owner" | "member"; monthlyCapUsd: number | null; note: string | null; /** Format: uuid */ invitedByUserId: string; /** Format: date-time */ expiresAt: string; acceptedAt: string | null; /** Format: date-time */ createdAt: string; }[]; }; }; }; }; postApiAccountsByAccountIdInvitations: { parameters: { query?: never; header?: never; path: { accountId: string; }; cookie?: never; }; requestBody?: { content: { "application/json": { /** Format: email */ email?: string; /** @enum {string} */ role?: "owner" | "member"; monthlyCapUsd?: number | null; expiresInDays?: 1 | 7; /** Format: uuid */ campaignId?: string; note?: string; }; }; }; responses: { /** @description Invite a member */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** Format: uuid */ accountId: string; campaignId: string | null; email: string | null; /** @enum {string} */ role: "owner" | "member"; monthlyCapUsd: number | null; note: string | null; /** Format: uuid */ invitedByUserId: string; /** Format: date-time */ expiresAt: string; acceptedAt: string | null; /** Format: date-time */ createdAt: string; /** Format: uri */ claimUrl: string; }; }; }; }; }; getApiAccountsByAccountIdMembership: { parameters: { query?: never; header?: never; path: { accountId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Get the caller's membership summary */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { account: { /** Format: uuid */ id: string; name: string; /** @enum {string} */ appPolicy: "open" | "managed"; }; owners: { /** Format: email */ email: string; }[]; /** @enum {string} */ role: "owner" | "member"; monthlyCapUsd: number | null; mtdSpendUsd: number; }; }; }; }; }; getApiAccountsByAccountIdInviteCampaigns: { parameters: { query?: never; header?: never; path: { accountId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description List invite campaigns */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** Format: uuid */ accountId: string; name: string; /** @enum {string} */ defaultRole: "owner" | "member"; defaultMonthlyCapUsd: number | null; defaultExpiresInDays: 1 | 7; appId: string | null; /** Format: uuid */ createdByUserId: string; /** Format: date-time */ createdAt: string; invites: { /** Format: uuid */ id: string; /** Format: uuid */ accountId: string; campaignId: string | null; email: string | null; /** @enum {string} */ role: "owner" | "member"; monthlyCapUsd: number | null; note: string | null; /** Format: uuid */ invitedByUserId: string; /** Format: date-time */ expiresAt: string; acceptedAt: string | null; /** Format: date-time */ createdAt: string; }[]; }[]; }; }; }; }; postApiAccountsByAccountIdInviteCampaigns: { parameters: { query?: never; header?: never; path: { accountId: string; }; cookie?: never; }; requestBody?: { content: { "application/json": { name: string; /** @enum {string} */ defaultRole?: "owner" | "member"; defaultMonthlyCapUsd?: number | null; defaultExpiresInDays?: 1 | 7; /** Format: uuid */ appId?: string; }; }; }; responses: { /** @description Create an invite campaign */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** Format: uuid */ accountId: string; name: string; /** @enum {string} */ defaultRole: "owner" | "member"; defaultMonthlyCapUsd: number | null; defaultExpiresInDays: 1 | 7; appId: string | null; /** Format: uuid */ createdByUserId: string; /** Format: date-time */ createdAt: string; }; }; }; }; }; deleteApiAccountsByAccountIdInviteCampaignsByCampaignId: { parameters: { query?: never; header?: never; path: { accountId: string; campaignId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Delete an invite campaign */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @constant */ ok: true; }; }; }; }; }; postApiAccountsByAccountIdInvitationsByInvitationIdLink: { parameters: { query?: never; header?: never; path: { accountId: string; invitationId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Re-issue an invite link */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** Format: uuid */ accountId: string; campaignId: string | null; email: string | null; /** @enum {string} */ role: "owner" | "member"; monthlyCapUsd: number | null; note: string | null; /** Format: uuid */ invitedByUserId: string; /** Format: date-time */ expiresAt: string; acceptedAt: string | null; /** Format: date-time */ createdAt: string; /** Format: uri */ claimUrl: string; }; }; }; }; }; deleteApiAccountsByAccountIdInvitationsByInvitationId: { parameters: { query?: never; header?: never; path: { accountId: string; invitationId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Cancel an invitation */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @constant */ ok: true; }; }; }; }; }; getApiAccountsByAccountIdMembers: { parameters: { query?: never; header?: never; path: { accountId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description List team members */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ accountId: string; /** Format: uuid */ userId: string; /** Format: email */ email: string; /** @enum {string} */ role: "owner" | "member"; monthlyCapUsd: number | null; /** Format: date-time */ joinedAt: string; mtdSpendUsd: number; }[]; }; }; }; }; deleteApiAccountsByAccountIdMembersByUserId: { parameters: { query?: never; header?: never; path: { accountId: string; userId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Remove a member */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @constant */ ok: true; }; }; }; }; }; patchApiAccountsByAccountIdMembersByUserId: { parameters: { query?: never; header?: never; path: { accountId: string; userId: string; }; cookie?: never; }; requestBody?: { content: { "application/json": { /** @enum {string} */ role?: "owner" | "member"; monthlyCapUsd?: number | null; }; }; }; responses: { /** @description Update a member (role/cap) */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ accountId: string; /** Format: uuid */ userId: string; /** Format: email */ email: string; /** @enum {string} */ role: "owner" | "member"; monthlyCapUsd: number | null; /** Format: date-time */ joinedAt: string; mtdSpendUsd: number; }; }; }; }; }; postApiAccountsByAccountIdLeave: { parameters: { query?: never; header?: never; path: { accountId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Leave a team */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @constant */ ok: true; }; }; }; }; }; postApiInvitationsClaim: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: { content: { "application/json": { token: string; }; }; }; responses: { /** @description Claim an invitation (logged in) */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ accountId: string; /** @enum {string} */ role: "owner" | "member"; }; }; }; }; }; getApiInvitationsPreview: { parameters: { query: { token: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Preview an invitation */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { email: string | null; isLink: boolean; /** @enum {string} */ role: "owner" | "member"; monthlyCapUsd: number | null; note: string | null; accountName: string; invitedByEmail: string; /** Format: date-time */ expiresAt: string; alreadyAccepted: boolean; expired: boolean; appId: string | null; appName: string | null; appIconUrl: string | null; launchUrl: string | null; callbackUrl: string | null; }; }; }; }; }; postApiInvitationsClaimAndRegister: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: { content: { "application/json": { token: string; password: string; /** Format: email */ email?: string; }; }; }; responses: { /** @description Claim an invitation + register */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": { token: string; /** Format: uuid */ userId: string; /** Format: uuid */ accountId: string; /** Format: email */ email: string; }; }; }; }; }; patchApiAccountsByAccountIdAppPolicy: { parameters: { query?: never; header?: never; path: { accountId: string; }; cookie?: never; }; requestBody?: { content: { "application/json": { /** @enum {string} */ appPolicy: "open" | "managed"; }; }; }; responses: { /** @description Set the team app policy (open/managed) */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @enum {string} */ appPolicy: "open" | "managed"; }; }; }; }; }; getApiAccountsByAccountIdApprovedApps: { parameters: { query?: never; header?: never; path: { accountId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description List approved apps */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** Format: uuid */ accountId: string; /** Format: uuid */ appId: string; appName: string; appIconUrl: string | null; perMemberBudgetUsd: number; /** Format: date-time */ createdAt: string; }[]; }; }; }; }; postApiAccountsByAccountIdApprovedApps: { parameters: { query?: never; header?: never; path: { accountId: string; }; cookie?: never; }; requestBody?: { content: { "application/json": { /** Format: uuid */ clientId: string; perMemberBudgetUsd: number; }; }; }; responses: { /** @description Approve an app for the team */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** Format: uuid */ accountId: string; /** Format: uuid */ appId: string; appName: string; appIconUrl: string | null; perMemberBudgetUsd: number; /** Format: date-time */ createdAt: string; }; }; }; }; }; deleteApiAccountsByAccountIdApprovedAppsByAppId: { parameters: { query?: never; header?: never; path: { accountId: string; appId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Remove an approved app */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @constant */ ok: true; }; }; }; }; }; getApiAccountsByAccountIdConnectableApps: { parameters: { query?: never; header?: never; path: { accountId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description List apps a member can connect */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ appId: string; appName: string; appIconUrl: string | null; appWebsiteUrl: string | null; callbackUrl: string; perMemberBudgetUsd: number; connected: boolean; }[]; }; }; }; }; getApiAccountsByAccountIdAgentSessions: { parameters: { query?: never; header?: never; path: { accountId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description List active agent sessions */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; anthropicSessionId: string; anthropicAgentId: string | null; /** @enum {string} */ status: "idle" | "running" | "archived"; title: string | null; /** Format: date-time */ startedAt: string; runningMs: number; costUsd: number; /** Format: email */ issuedToUserEmail: string; }[]; }; }; }; }; postApiAccountsByAccountIdAgentSessionsBySessionIdArchive: { parameters: { query?: never; header?: never; path: { accountId: string; sessionId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Archive an agent session */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @constant */ ok: true; }; }; }; }; }; getApiOauthAuthorize: { parameters: { query: { client_id: string; redirect_uri: string; response_type: "code"; state?: string; prompt?: string; max_age?: number; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description OAuth authorize / consent */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { [key: string]: unknown; }; }; }; }; }; postApiOauthAuthorize: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: { content: { "application/json": { /** Format: uuid */ client_id: string; /** Format: uri */ redirect_uri: string; state?: string; budget_limit?: number; use_sponsored?: boolean; }; }; }; responses: { /** @description Approve an authorization (consent) */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { redirect_to: string; code: string; }; }; }; }; }; getApiOauthPreferredAccount: { parameters: { query: { client_id: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Resolve the preferred account for an app */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { accountId: string | null; }; }; }; }; }; getApiOauthCandidateAccounts: { parameters: { query: { client_id: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Accounts the user can authorize an app from (for the consent grid) */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ accountId: string; name: string; /** @enum {string} */ type: "personal" | "business" | "campaign"; /** @enum {string} */ role: "owner" | "member"; preApproved: boolean; approvedBudgetUsd: number | null; hasGrant: boolean; fromInvite: boolean; campaignGrantId?: string | null; }[]; }; }; }; }; postApiOauthAuthorizeCampaign: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: { content: { "application/json": { /** Format: uuid */ client_id: string; /** Format: uri */ redirect_uri: string; /** Format: uuid */ grant_id: string; state?: string; }; }; }; responses: { /** @description Authorize an app funded by a campaign the user already holds */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { redirect_to: string; code: string; appName: string; appDescription: string | null; appWebsiteUrl: string | null; appIconUrl: string | null; }; }; }; }; }; getApiOauthTopup: { parameters: { query: { client_id: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Top-up context for an app */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { appName: string; appIconUrl: string | null; /** Format: uri */ callbackUrl: string; /** Format: uuid */ tokenId: string; currentLimit: number; currentSpent: number; }; }; }; }; }; postApiOauthTopup: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: { content: { "application/json": { /** Format: uuid */ client_id: string; new_budget_limit: number; }; }; }; responses: { /** @description Raise a token budget */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { newLimit: number; remaining: number; /** Format: uri */ callbackUrl: string; }; }; }; }; }; postApiOauthToken: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: { content: { "application/json": { /** * @default authorization_code * @enum {string} */ grant_type?: "authorization_code" | "client_credentials"; code?: string; /** Format: uuid */ client_id: string; client_secret: string; /** Format: uri */ redirect_uri?: string; /** @enum {string} */ provider?: "anthropic" | "openai" | "openrouter" | "vercel" | "google" | "grok" | "bedrock"; }; }; }; responses: { /** @description Exchange an authorization code or client credentials for a token */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { access_token: string; token_type: string; }; }; }; }; }; getApiApps: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description List apps */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** Format: uuid */ builderId: string; name: string; /** Format: uri */ callbackUrl: string; launchUrl?: string | null; allowedModels?: string[] | null; /** * @default any * @enum {string} */ modelStrategy: "any" | "tier" | "models" | "none"; requiredTiers?: ("cheap" | "fast" | "smart" | "reasoning")[] | null; /** @default false */ allowsManagedAgents: boolean; /** Format: uri */ websiteUrl?: string; description?: string; iconUrl?: string | null; /** @default false */ showInMarketplace: boolean; /** @default 1 */ consentVersion: number; /** Format: date-time */ createdAt: string; }[]; }; }; }; }; postApiApps: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: { content: { "application/json": { name: string; /** Format: uri */ callbackUrl: string; launchUrl?: string | null; allowedModels?: string[] | null; /** * @default any * @enum {string} */ modelStrategy?: "any" | "tier" | "models" | "none"; requiredTiers?: ("cheap" | "fast" | "smart" | "reasoning")[] | null; /** @default false */ allowsManagedAgents?: boolean; /** Format: uri */ websiteUrl?: string; description?: string; iconUrl?: string | null; /** @default false */ showInMarketplace?: boolean; }; }; }; responses: { /** @description Create an app */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** Format: uuid */ builderId: string; name: string; /** Format: uri */ callbackUrl: string; launchUrl?: string | null; allowedModels?: string[] | null; /** * @default any * @enum {string} */ modelStrategy: "any" | "tier" | "models" | "none"; requiredTiers?: ("cheap" | "fast" | "smart" | "reasoning")[] | null; /** @default false */ allowsManagedAgents: boolean; /** Format: uri */ websiteUrl?: string; description?: string; iconUrl?: string | null; /** @default false */ showInMarketplace: boolean; /** @default 1 */ consentVersion: number; /** Format: date-time */ createdAt: string; appSecret: string; }; }; }; }; }; getApiAppsById: { parameters: { query?: never; header?: never; path: { id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Get an app */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** Format: uuid */ builderId: string; name: string; /** Format: uri */ callbackUrl: string; launchUrl?: string | null; allowedModels?: string[] | null; /** * @default any * @enum {string} */ modelStrategy: "any" | "tier" | "models" | "none"; requiredTiers?: ("cheap" | "fast" | "smart" | "reasoning")[] | null; /** @default false */ allowsManagedAgents: boolean; /** Format: uri */ websiteUrl?: string; description?: string; iconUrl?: string | null; /** @default false */ showInMarketplace: boolean; /** @default 1 */ consentVersion: number; /** Format: date-time */ createdAt: string; }; }; }; }; }; deleteApiAppsById: { parameters: { query?: never; header?: never; path: { id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Delete an app */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @constant */ ok: true; }; }; }; }; }; patchApiAppsById: { parameters: { query?: never; header?: never; path: { id: string; }; cookie?: never; }; requestBody?: { content: { "application/json": { name?: string; /** Format: uri */ callbackUrl?: string; launchUrl?: string | null; allowedModels?: string[] | null; /** * @default any * @enum {string} */ modelStrategy?: "any" | "tier" | "models" | "none"; requiredTiers?: ("cheap" | "fast" | "smart" | "reasoning")[] | null; /** @default false */ allowsManagedAgents?: boolean; /** Format: uri */ websiteUrl?: string; description?: string; iconUrl?: string | null; /** @default false */ showInMarketplace?: boolean; }; }; }; responses: { /** @description Update an app */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** Format: uuid */ builderId: string; name: string; /** Format: uri */ callbackUrl: string; launchUrl?: string | null; allowedModels?: string[] | null; /** * @default any * @enum {string} */ modelStrategy: "any" | "tier" | "models" | "none"; requiredTiers?: ("cheap" | "fast" | "smart" | "reasoning")[] | null; /** @default false */ allowsManagedAgents: boolean; /** Format: uri */ websiteUrl?: string; description?: string; iconUrl?: string | null; /** @default false */ showInMarketplace: boolean; /** @default 1 */ consentVersion: number; /** Format: date-time */ createdAt: string; }; }; }; }; }; postApiAppsByIdRotateSecret: { parameters: { query?: never; header?: never; path: { id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Rotate an app secret */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { appSecret: string; }; }; }; }; }; postApiAppsByIdResetUsage: { parameters: { query?: never; header?: never; path: { id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Reset an app's usage */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { [key: string]: unknown; }; }; }; }; }; getApiAppsByAppIdSponsoredKeys: { parameters: { query?: never; header?: never; path: { appId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description List sponsored keys */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** Format: uuid */ appId: string; /** @enum {string} */ provider: "anthropic" | "openai" | "openrouter" | "vercel" | "google" | "grok" | "bedrock"; keyHint: string; totalBudgetUsd: number; /** @default 0 */ totalSpentUsd: number; perUserBudgetUsd: number | null; /** @default true */ isActive: boolean; /** Format: date-time */ createdAt: string; consumers: { /** Format: uuid */ userId: string; email: string; spentUsd: number; requestCount: number; }[]; }[]; }; }; }; }; postApiAppsByAppIdSponsoredKeys: { parameters: { query?: never; header?: never; path: { appId: string; }; cookie?: never; }; requestBody?: { content: { "application/json": { /** @enum {string} */ provider?: "anthropic" | "openai" | "openrouter" | "vercel" | "google" | "grok" | "bedrock"; apiKey: string; totalBudgetUsd: number; perUserBudgetUsd?: number; }; }; }; responses: { /** @description Add a sponsored key */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** Format: uuid */ appId: string; /** @enum {string} */ provider: "anthropic" | "openai" | "openrouter" | "vercel" | "google" | "grok" | "bedrock"; keyHint: string; totalBudgetUsd: number; /** @default 0 */ totalSpentUsd: number; perUserBudgetUsd: number | null; /** @default true */ isActive: boolean; /** Format: date-time */ createdAt: string; consumers: { /** Format: uuid */ userId: string; email: string; spentUsd: number; requestCount: number; }[]; }; }; }; }; }; deleteApiAppsByAppIdSponsoredKeysByKeyId: { parameters: { query?: never; header?: never; path: { appId: string; keyId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Delete a sponsored key */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @constant */ ok: true; }; }; }; }; }; patchApiAppsByAppIdSponsoredKeysByKeyId: { parameters: { query?: never; header?: never; path: { appId: string; keyId: string; }; cookie?: never; }; requestBody?: { content: { "application/json": { totalBudgetUsd?: number; perUserBudgetUsd?: number | null; isActive?: boolean; }; }; }; responses: { /** @description Update a sponsored key */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** Format: uuid */ appId: string; /** @enum {string} */ provider: "anthropic" | "openai" | "openrouter" | "vercel" | "google" | "grok" | "bedrock"; keyHint: string; totalBudgetUsd: number; /** @default 0 */ totalSpentUsd: number; perUserBudgetUsd: number | null; /** @default true */ isActive: boolean; /** Format: date-time */ createdAt: string; consumers: { /** Format: uuid */ userId: string; email: string; spentUsd: number; requestCount: number; }[]; }; }; }; }; }; getApiAppsByAppIdBuilderKeys: { parameters: { query?: never; header?: never; path: { appId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description List builder keys */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** Format: uuid */ appId: string; /** @enum {string} */ provider: "anthropic" | "openai" | "openrouter" | "vercel" | "google" | "grok" | "bedrock"; keyHint: string; monthlyBudgetUsd: number | null; /** @default 0 */ spentUsd: number; monthlyResetAt: string | null; /** @default true */ isActive: boolean; /** Format: date-time */ createdAt: string; }[]; }; }; }; }; postApiAppsByAppIdBuilderKeys: { parameters: { query?: never; header?: never; path: { appId: string; }; cookie?: never; }; requestBody?: { content: { "application/json": { /** @enum {string} */ provider?: "anthropic" | "openai" | "openrouter" | "vercel" | "google" | "grok" | "bedrock"; apiKey: string; monthlyBudgetUsd?: number; }; }; }; responses: { /** @description Add a builder key */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** Format: uuid */ appId: string; /** @enum {string} */ provider: "anthropic" | "openai" | "openrouter" | "vercel" | "google" | "grok" | "bedrock"; keyHint: string; monthlyBudgetUsd: number | null; /** @default 0 */ spentUsd: number; monthlyResetAt: string | null; /** @default true */ isActive: boolean; /** Format: date-time */ createdAt: string; }; }; }; }; }; deleteApiAppsByAppIdBuilderKeysByKeyId: { parameters: { query?: never; header?: never; path: { appId: string; keyId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Delete a builder key */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @constant */ ok: true; }; }; }; }; }; patchApiAppsByAppIdBuilderKeysByKeyId: { parameters: { query?: never; header?: never; path: { appId: string; keyId: string; }; cookie?: never; }; requestBody?: { content: { "application/json": { monthlyBudgetUsd?: number | null; isActive?: boolean; }; }; }; responses: { /** @description Update a builder key */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** Format: uuid */ appId: string; /** @enum {string} */ provider: "anthropic" | "openai" | "openrouter" | "vercel" | "google" | "grok" | "bedrock"; keyHint: string; monthlyBudgetUsd: number | null; /** @default 0 */ spentUsd: number; monthlyResetAt: string | null; /** @default true */ isActive: boolean; /** Format: date-time */ createdAt: string; }; }; }; }; }; getApiKeys: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description List provider keys */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** Format: uuid */ userId: string; /** @enum {string} */ provider: "anthropic" | "openai" | "openrouter" | "vercel" | "google" | "grok" | "bedrock"; keyHint: string; customBaseUrl?: string | null; customFlavor?: ("anthropic" | "openai" | "gemini") | null; /** @default true */ isActive: boolean; /** Format: date-time */ createdAt: string; }[]; }; }; }; }; postApiKeys: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: { content: { "application/json": { /** @enum {string} */ provider?: "anthropic" | "openai" | "openrouter" | "vercel" | "google" | "grok" | "bedrock"; apiKey: string; /** Format: uri */ customBaseUrl?: string; /** @enum {string} */ customFlavor?: "anthropic" | "openai" | "gemini"; }; }; }; responses: { /** @description Add a provider key */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** Format: uuid */ userId: string; /** @enum {string} */ provider: "anthropic" | "openai" | "openrouter" | "vercel" | "google" | "grok" | "bedrock"; keyHint: string; customBaseUrl?: string | null; customFlavor?: ("anthropic" | "openai" | "gemini") | null; /** @default true */ isActive: boolean; /** Format: date-time */ createdAt: string; }; }; }; }; }; deleteApiKeysById: { parameters: { query?: never; header?: never; path: { id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Delete a provider key */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @constant */ ok: true; }; }; }; }; }; postApiKeysByIdTest: { parameters: { query?: never; header?: never; path: { id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Test a provider key against the provider (free, no tokens) */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { valid: boolean; status: number; message?: string; }; }; }; }; }; getApiConnections: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description List authorized app connections */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uuid */ id: string; /** Format: uuid */ appId: string; appName: string; appWebsiteUrl: string | null; appDescription: string | null; appIconUrl: string | null; budgetLimit: number; budgetSpent: number; isSuspended: boolean; /** Format: date-time */ createdAt: string; }[]; }; }; }; }; getApiConnectionsByIdStats: { parameters: { query?: never; header?: never; path: { id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Connection usage stats */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { totalRequests: number; totalTokens: number; totalCost: number; byAccount: { /** Format: uuid */ accountId: string; accountName: string; totalCost: number; }[]; }; }; }; }; }; patchApiConnectionsByIdBudget: { parameters: { query?: never; header?: never; path: { id: string; }; cookie?: never; }; requestBody?: { content: { "application/json": { budget_limit: number; }; }; }; responses: { /** @description Update connection budget */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @constant */ ok: true; }; }; }; }; }; postApiConnectionsByIdSuspend: { parameters: { query?: never; header?: never; path: { id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Suspend a connection */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @constant */ ok: true; }; }; }; }; }; postApiConnectionsByIdResume: { parameters: { query?: never; header?: never; path: { id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Resume a connection */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @constant */ ok: true; }; }; }; }; }; deleteApiConnectionsById: { parameters: { query?: never; header?: never; path: { id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Revoke a connection */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @constant */ ok: true; }; }; }; }; }; getApiSpending: { parameters: { query?: { appId?: string; from?: string; to?: string; limit?: number; offset?: number; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description List account spending */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { id: string; appName: string; userEmail: string; provider: string; model: string; inputTokens: number; outputTokens: number; costUsd: number; /** Format: date-time */ createdAt: string; sponsored: boolean; }[]; }; }; }; }; postApiCliLoginMint: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: { content: { "application/json": { port: number; state: string; /** @enum {string} */ host: "127.0.0.1" | "[::1]" | "localhost"; }; }; }; responses: { /** @description Mint a CLI login code */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uri */ redirect_to: string; code: string; }; }; }; }; }; postApiCliLoginExchange: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: { content: { "application/json": { code: string; }; }; }; responses: { /** @description Exchange a CLI login code */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { token: string; /** Format: email */ email: string; }; }; }; }; }; } //# sourceMappingURL=schema.d.ts.map