/** * API Token Types * * Type definitions for API token management operations */ /** * API Token * * Represents an API token for programmatic access to the platform */ export interface ApiToken { id: string; tenantId: string; name: string; prefix: string; active: boolean; lastUsedAt: string | null; createdAt: string; expiresAt: string | null; /** Only returned on creation - must be stored securely */ token?: string; /** Alias for 'token' field (backward compatibility) */ key?: string; } /** * Create API Token Data * * Data required to create a new API token */ export interface CreateApiTokenData { /** Token name for identification (3-100 characters) */ name: string; /** Token prefix - determines if it's a production or test token */ prefix?: 'wpp_live' | 'wpp_test'; /** Optional expiration date (ISO 8601 format) */ expiresAt?: string; } //# sourceMappingURL=api-tokens.d.ts.map