UNPKG

watchtower-node-sdk

Version:

A TypeScript Node.js SDK for the Watchtower API, providing API key management, connection string generation, and more

16 lines (15 loc) 540 B
export interface RollAPIKeyRequest { current_apikey: string; type: 'organization' | 'app' | 'tenant'; } export interface RolledAPIKey { key: string; // Format depends on type: wt_ORG_, wt_APP_, or wt_TNT_ type: 'organization' | 'app' | 'tenant'; organization_id: string; app_id?: string; // Optional, only for app and tenant keys tenant_id?: string; // Optional, only for tenant keys name: string; status: 'active'; created_at: string; // ISO 8601 timestamp updated_at: string; // ISO 8601 timestamp }