// Copyright © 2022-2026 Partium, Inc. DBA Partium import { Observable } from 'rxjs'; import { ApiKey } from '../models/api-key'; import { API_KEY_TYPE } from '../models/api-key-type'; import { ApiKeyListResponse } from '../models/api-key-list-response'; import { BaseService, ServiceProvider } from '../../core'; /** * Service that provides API Key management functionality. */ export interface ApiKeyService { /** * Gets all API keys. * @param keyType Type of API to query the keys from * @returns The list of API keys. */ getAll(keyType?: API_KEY_TYPE): Observable; /** * Creates a new API key. * @param organization Id of the organization to create the API key for. * @param keyType Type of API for which the key is created. * @returns The newly created API key. */ create(organization: string, keyType?: API_KEY_TYPE): Observable; /** * Deletes an API key. * @param organization Id of the organization to delete the API key for. * @param apiKey Id of the API key to delete. * @param keyType Type of API from which the key should be removed */ delete(organization: string, apiKey: string, keyType?: API_KEY_TYPE): Observable; } export declare class ApiKeyServiceImpl extends BaseService implements ApiKeyService { private httpsService; constructor(serviceProvider: ServiceProvider); onCreate(): void; getAll(keyType?: API_KEY_TYPE): Observable; create(organization: string, keyType?: API_KEY_TYPE): Observable; delete(organization: string, value: string, keyType?: API_KEY_TYPE): Observable; }