tsarr 2.9.1 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +120 -233
- package/dist/cli/commands/doctor.d.ts.map +1 -1
- package/dist/cli/commands/manual-import.d.ts +30 -0
- package/dist/cli/commands/manual-import.d.ts.map +1 -0
- package/dist/cli/commands/radarr.d.ts.map +1 -1
- package/dist/cli/commands/sonarr.d.ts.map +1 -1
- package/dist/cli/index.js +5230 -4783
- package/dist/cli/index.js.map +133 -0
- package/dist/clients/base.d.ts +8 -3
- package/dist/clients/base.d.ts.map +1 -1
- package/dist/clients/bazarr.d.ts +125 -124
- package/dist/clients/bazarr.d.ts.map +1 -1
- package/dist/clients/bazarr.js +183 -100
- package/dist/clients/bazarr.js.map +22 -0
- package/dist/clients/lidarr.d.ts +148 -147
- package/dist/clients/lidarr.d.ts.map +1 -1
- package/dist/clients/lidarr.js +190 -102
- package/dist/clients/lidarr.js.map +23 -0
- package/dist/clients/prowlarr.d.ts +30 -29
- package/dist/clients/prowlarr.d.ts.map +1 -1
- package/dist/clients/prowlarr.js +190 -102
- package/dist/clients/prowlarr.js.map +23 -0
- package/dist/clients/qbittorrent.d.ts +3 -1
- package/dist/clients/qbittorrent.d.ts.map +1 -1
- package/dist/clients/qbittorrent.js +213 -107
- package/dist/clients/qbittorrent.js.map +21 -0
- package/dist/clients/radarr.d.ts +195 -150
- package/dist/clients/radarr.d.ts.map +1 -1
- package/dist/clients/radarr.js +230 -102
- package/dist/clients/radarr.js.map +23 -0
- package/dist/clients/readarr.d.ts +150 -149
- package/dist/clients/readarr.d.ts.map +1 -1
- package/dist/clients/readarr.js +190 -102
- package/dist/clients/readarr.js.map +23 -0
- package/dist/clients/seerr-types.d.ts +1 -1
- package/dist/clients/seerr-types.d.ts.map +1 -1
- package/dist/clients/seerr.d.ts +17 -16
- package/dist/clients/seerr.d.ts.map +1 -1
- package/dist/clients/seerr.js +183 -100
- package/dist/clients/seerr.js.map +22 -0
- package/dist/clients/sonarr.d.ts +203 -168
- package/dist/clients/sonarr.d.ts.map +1 -1
- package/dist/clients/sonarr.js +206 -112
- package/dist/clients/sonarr.js.map +23 -0
- package/dist/core/client.d.ts +2 -0
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/fetch.d.ts +23 -0
- package/dist/core/fetch.d.ts.map +1 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/types.d.ts +7 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/generated/bazarr/client/client.gen.d.ts.map +1 -1
- package/dist/generated/bazarr/client/types.gen.d.ts +5 -2
- package/dist/generated/bazarr/client/types.gen.d.ts.map +1 -1
- package/dist/generated/bazarr/client/utils.gen.d.ts +5 -1
- package/dist/generated/bazarr/client/utils.gen.d.ts.map +1 -1
- package/dist/generated/lidarr/client/client.gen.d.ts.map +1 -1
- package/dist/generated/lidarr/client/types.gen.d.ts +5 -2
- package/dist/generated/lidarr/client/types.gen.d.ts.map +1 -1
- package/dist/generated/lidarr/client/utils.gen.d.ts +5 -1
- package/dist/generated/lidarr/client/utils.gen.d.ts.map +1 -1
- package/dist/generated/prowlarr/client/client.gen.d.ts.map +1 -1
- package/dist/generated/prowlarr/client/types.gen.d.ts +5 -2
- package/dist/generated/prowlarr/client/types.gen.d.ts.map +1 -1
- package/dist/generated/prowlarr/client/utils.gen.d.ts +5 -1
- package/dist/generated/prowlarr/client/utils.gen.d.ts.map +1 -1
- package/dist/generated/qbittorrent/client/client.gen.d.ts.map +1 -1
- package/dist/generated/qbittorrent/client/types.gen.d.ts +5 -2
- package/dist/generated/qbittorrent/client/types.gen.d.ts.map +1 -1
- package/dist/generated/qbittorrent/client/utils.gen.d.ts +5 -1
- package/dist/generated/qbittorrent/client/utils.gen.d.ts.map +1 -1
- package/dist/generated/radarr/client/client.gen.d.ts.map +1 -1
- package/dist/generated/radarr/client/types.gen.d.ts +5 -2
- package/dist/generated/radarr/client/types.gen.d.ts.map +1 -1
- package/dist/generated/radarr/client/utils.gen.d.ts +5 -1
- package/dist/generated/radarr/client/utils.gen.d.ts.map +1 -1
- package/dist/generated/readarr/client/client.gen.d.ts.map +1 -1
- package/dist/generated/readarr/client/types.gen.d.ts +5 -2
- package/dist/generated/readarr/client/types.gen.d.ts.map +1 -1
- package/dist/generated/readarr/client/utils.gen.d.ts +5 -1
- package/dist/generated/readarr/client/utils.gen.d.ts.map +1 -1
- package/dist/generated/seerr/client/client.gen.d.ts.map +1 -1
- package/dist/generated/seerr/client/types.gen.d.ts +5 -2
- package/dist/generated/seerr/client/types.gen.d.ts.map +1 -1
- package/dist/generated/seerr/client/utils.gen.d.ts +5 -1
- package/dist/generated/seerr/client/utils.gen.d.ts.map +1 -1
- package/dist/generated/seerr/index.d.ts +2 -2
- package/dist/generated/seerr/index.d.ts.map +1 -1
- package/dist/generated/seerr/sdk.gen.d.ts +13 -1
- package/dist/generated/seerr/sdk.gen.d.ts.map +1 -1
- package/dist/generated/seerr/types.gen.d.ts +78 -7
- package/dist/generated/seerr/types.gen.d.ts.map +1 -1
- package/dist/generated/sonarr/client/client.gen.d.ts.map +1 -1
- package/dist/generated/sonarr/client/types.gen.d.ts +5 -2
- package/dist/generated/sonarr/client/types.gen.d.ts.map +1 -1
- package/dist/generated/sonarr/client/utils.gen.d.ts +5 -1
- package/dist/generated/sonarr/client/utils.gen.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +12 -0
- package/dist/tsarr-2.11.0.tgz +0 -0
- package/package.json +18 -9
- package/dist/tsarr-2.9.1.tgz +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/core/errors.ts", "../../src/core/fetch.ts", "../../src/core/client.ts", "../../src/clients/base.ts", "../../src/generated/prowlarr/core/bodySerializer.gen.ts", "../../src/generated/prowlarr/core/serverSentEvents.gen.ts", "../../src/generated/prowlarr/core/pathSerializer.gen.ts", "../../src/generated/prowlarr/core/utils.gen.ts", "../../src/generated/prowlarr/core/auth.gen.ts", "../../src/generated/prowlarr/client/utils.gen.ts", "../../src/generated/prowlarr/client/client.gen.ts", "../../src/generated/prowlarr/client.gen.ts", "../../src/generated/prowlarr/sdk.gen.ts", "../../src/clients/prowlarr.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"export class TsarrError extends Error {\n constructor(\n message: string,\n public code?: string,\n public statusCode?: number,\n public details?: unknown\n ) {\n super(message);\n this.name = 'TsarrError';\n }\n}\n\nexport class ApiKeyError extends TsarrError {\n constructor(message = 'Invalid or missing API key') {\n super(message, 'API_KEY_ERROR', 401);\n this.name = 'ApiKeyError';\n }\n}\n\nexport class ConnectionError extends TsarrError {\n constructor(message: string, details?: unknown) {\n super(message, 'CONNECTION_ERROR', undefined, details);\n this.name = 'ConnectionError';\n }\n}\n\nexport class ValidationError extends TsarrError {\n constructor(message: string, details?: unknown) {\n super(message, 'VALIDATION_ERROR', undefined, details);\n this.name = 'ValidationError';\n }\n}\n\nexport class NotFoundError extends TsarrError {\n constructor(resource: string) {\n super(`Resource not found: ${resource}`, 'NOT_FOUND', 404);\n this.name = 'NotFoundError';\n }\n}\n",
|
|
6
|
+
"import { ConnectionError } from './errors';\n\nexport interface RetryOptions {\n /** Maximum number of retry attempts for transient failures (default: 3) */\n maxRetries?: number;\n /** Initial delay in ms before the first retry (default: 1000) */\n initialDelayMs?: number;\n /** Maximum delay in ms between retries (default: 10000) */\n maxDelayMs?: number;\n}\n\nexport interface ResilientFetchOptions {\n /** Request timeout in milliseconds (default: 30000) */\n timeout?: number;\n /** Retry configuration for transient failures. Omit to disable retries. */\n retry?: RetryOptions;\n}\n\nconst DEFAULT_TIMEOUT = 30_000;\nconst DEFAULT_MAX_RETRIES = 3;\nconst DEFAULT_INITIAL_DELAY = 1_000;\nconst DEFAULT_MAX_DELAY = 10_000;\n\nconst RETRYABLE_STATUS_CODES = new Set([408, 429, 502, 503, 504]);\n\nfunction isRetryable(error: unknown): boolean {\n if (error instanceof DOMException && error.name === 'AbortError') {\n return false;\n }\n if (error instanceof TypeError) {\n // Network errors from fetch (e.g. DNS failure, connection refused)\n return true;\n }\n return false;\n}\n\nfunction getRetryDelay(attempt: number, initialDelayMs: number, maxDelayMs: number): number {\n const delay = initialDelayMs * 2 ** attempt;\n const jitter = delay * 0.2 * Math.random();\n return Math.min(delay + jitter, maxDelayMs);\n}\n\n/**\n * Creates a fetch function with timeout and retry support.\n *\n * - Timeout uses AbortController to cancel requests that exceed the limit.\n * - Retry uses exponential backoff with jitter for transient failures\n * (network errors and 408/429/502/503/504 status codes).\n */\nexport function createResilientFetch(options: ResilientFetchOptions = {}): typeof fetch {\n const timeout = options.timeout ?? DEFAULT_TIMEOUT;\n const maxRetries = options.retry ? (options.retry.maxRetries ?? DEFAULT_MAX_RETRIES) : 0;\n const initialDelayMs = options.retry?.initialDelayMs ?? DEFAULT_INITIAL_DELAY;\n const maxDelayMs = options.retry?.maxDelayMs ?? DEFAULT_MAX_DELAY;\n\n const resilientFetch = async (\n input: RequestInfo | URL,\n init?: RequestInit\n ): Promise<Response> => {\n let lastError: unknown;\n const template = createRequestTemplate(input, init);\n\n for (let attempt = 0; attempt <= maxRetries; attempt++) {\n const controller = new AbortController();\n const timeoutId = setTimeout(() => controller.abort(), timeout);\n\n // Merge abort signals: respect caller's signal and our timeout\n const callerSignal = init?.signal;\n if (callerSignal?.aborted) {\n clearTimeout(timeoutId);\n throw callerSignal.reason ?? new DOMException('The operation was aborted.', 'AbortError');\n }\n\n const onCallerAbort = () => controller.abort(callerSignal!.reason);\n callerSignal?.addEventListener('abort', onCallerAbort, { once: true });\n\n try {\n const response = await globalThis.fetch(\n new Request(template.clone(), { signal: controller.signal })\n );\n\n clearTimeout(timeoutId);\n callerSignal?.removeEventListener('abort', onCallerAbort);\n\n if (RETRYABLE_STATUS_CODES.has(response.status) && attempt < maxRetries) {\n lastError = new ConnectionError(`Request failed with status ${response.status}`);\n const delay = getRetryDelay(attempt, initialDelayMs, maxDelayMs);\n await new Promise(resolve => setTimeout(resolve, delay));\n continue;\n }\n\n return response;\n } catch (error) {\n clearTimeout(timeoutId);\n callerSignal?.removeEventListener('abort', onCallerAbort);\n\n // If the caller aborted, don't retry\n if (callerSignal?.aborted) {\n throw callerSignal.reason ?? new DOMException('The operation was aborted.', 'AbortError');\n }\n\n // Timeout: wrap as ConnectionError\n if (error instanceof DOMException && error.name === 'AbortError') {\n lastError = new ConnectionError(`Request timed out after ${timeout}ms`);\n if (attempt < maxRetries) {\n const delay = getRetryDelay(attempt, initialDelayMs, maxDelayMs);\n await new Promise(resolve => setTimeout(resolve, delay));\n continue;\n }\n throw lastError;\n }\n\n if (isRetryable(error) && attempt < maxRetries) {\n lastError = error;\n const delay = getRetryDelay(attempt, initialDelayMs, maxDelayMs);\n await new Promise(resolve => setTimeout(resolve, delay));\n continue;\n }\n\n throw error;\n }\n }\n\n throw lastError;\n };\n\n return Object.assign(resilientFetch, {\n preconnect: globalThis.fetch.preconnect?.bind(globalThis.fetch),\n }) as typeof fetch;\n}\n\nfunction createRequestTemplate(input: RequestInfo | URL, init?: RequestInit): Request {\n const { signal: _signal, ...requestInit } = init ?? {};\n\n if (input instanceof Request) {\n return init ? new Request(input.clone(), requestInit) : input.clone();\n }\n\n return new Request(input, requestInit);\n}\n",
|
|
7
|
+
"import { ApiKeyError, ConnectionError } from './errors';\nimport { createResilientFetch } from './fetch';\nimport type { ServarrClientConfig } from './types';\n\nconst DEFAULT_TIMEOUT_MS = 30_000;\n\nexport function createServarrClient(config: ServarrClientConfig) {\n if (!config.apiKey) {\n throw new ApiKeyError();\n }\n\n if (!config.baseUrl) {\n throw new ConnectionError('No base URL provided');\n }\n\n const validatedConfig = {\n ...config,\n baseUrl: config.baseUrl.replace(/\\/$/, ''),\n };\n\n const timeoutMs = validatedConfig.timeout ?? DEFAULT_TIMEOUT_MS;\n\n const resilientFetch = createResilientFetch({\n timeout: timeoutMs,\n retry: validatedConfig.retry,\n });\n\n return {\n config: validatedConfig,\n getHeaders: () => ({\n 'X-Api-Key': validatedConfig.apiKey,\n 'Content-Type': 'application/json',\n ...validatedConfig.headers,\n }),\n getBaseUrl: () => validatedConfig.baseUrl,\n getTimeout: () => timeoutMs,\n getFetch: () => resilientFetch,\n };\n}\n\nexport function validateApiKey(apiKey: string | undefined): string {\n if (!apiKey || apiKey.trim() === '') {\n throw new ApiKeyError();\n }\n return apiKey.trim();\n}\n\nexport function validateBaseUrl(baseUrl: string | undefined): string {\n if (!baseUrl || baseUrl.trim() === '') {\n throw new ConnectionError('No base URL provided');\n }\n\n let parsed: URL;\n try {\n parsed = new URL(baseUrl);\n } catch {\n throw new ConnectionError(`Failed to connect: Invalid URL: ${baseUrl}`);\n }\n\n if (parsed.protocol === 'http:' && !isLocalhost(parsed.hostname)) {\n console.warn(\n `Warning: Using unencrypted HTTP for remote URL \"${parsed.host}\". Consider using HTTPS to protect your API key in transit.`\n );\n }\n\n return baseUrl.trim().replace(/\\/$/, '');\n}\n\nfunction isLocalhost(hostname: string): boolean {\n return (\n hostname === 'localhost' ||\n hostname === '127.0.0.1' ||\n hostname === '::1' ||\n hostname === '0.0.0.0' ||\n hostname.endsWith('.local') ||\n /^(10\\.|172\\.(1[6-9]|2\\d|3[01])\\.|192\\.168\\.)/.test(hostname)\n );\n}\n",
|
|
8
|
+
"import { createServarrClient } from '../core/client';\nimport type { ServarrClientConfig } from '../core/types';\n\ntype ApiCall = (...args: any[]) => Promise<any>;\n\nexport interface ServarrOps {\n // System\n getSystemStatus: ApiCall;\n getHealth: ApiCall;\n\n // Tags\n getTags: ApiCall;\n createTag: ApiCall;\n getTagById: ApiCall;\n updateTagById: ApiCall;\n deleteTagById: ApiCall;\n getTagDetails: ApiCall;\n getTagDetailById: ApiCall;\n\n // Notifications\n getNotifications: ApiCall;\n createNotification: ApiCall;\n getNotificationById: ApiCall;\n updateNotificationById: ApiCall;\n deleteNotificationById: ApiCall;\n getNotificationSchema: ApiCall;\n testNotification: ApiCall;\n testAllNotifications: ApiCall;\n\n // Download Clients\n getDownloadClients: ApiCall;\n createDownloadClient: ApiCall;\n getDownloadClientById: ApiCall;\n updateDownloadClientById: ApiCall;\n deleteDownloadClientById: ApiCall;\n getDownloadClientSchema: ApiCall;\n testDownloadClient: ApiCall;\n testAllDownloadClients: ApiCall;\n\n // Indexers\n getIndexers: ApiCall;\n createIndexer: ApiCall;\n getIndexerById: ApiCall;\n updateIndexerById: ApiCall;\n deleteIndexerById: ApiCall;\n getIndexerSchema: ApiCall;\n testIndexer: ApiCall;\n testAllIndexers: ApiCall;\n\n // System Admin\n restartSystem: ApiCall;\n shutdownSystem: ApiCall;\n getBackups: ApiCall;\n deleteBackup: ApiCall;\n restoreBackup: ApiCall;\n uploadBackup: ApiCall;\n getLogFiles: ApiCall;\n getLogFileByName: ApiCall;\n\n // Commands\n runCommand: ApiCall;\n getCommands: ApiCall;\n\n // Host Config\n getHostConfig: ApiCall;\n getHostConfigById: ApiCall;\n updateHostConfig: ApiCall;\n\n // UI Config\n getUiConfig: ApiCall;\n getUiConfigById: ApiCall;\n updateUiConfig: ApiCall;\n}\n\ninterface RawClient {\n setConfig(config: Record<string, unknown>): unknown;\n}\n\nexport abstract class ServarrBaseClient {\n protected clientConfig: ReturnType<typeof createServarrClient>;\n protected readonly rawClient: RawClient;\n\n protected abstract readonly ops: ServarrOps;\n\n constructor(config: ServarrClientConfig, rawClient: RawClient) {\n this.rawClient = rawClient;\n this.clientConfig = createServarrClient(config);\n this.configureRawClient();\n }\n\n protected configureRawClient(): void {\n this.rawClient.setConfig(this.getClientConfig());\n }\n\n protected getClientConfig() {\n return {\n baseUrl: this.clientConfig.getBaseUrl(),\n headers: this.clientConfig.getHeaders(),\n fetch: this.clientConfig.getFetch(),\n };\n }\n\n // System APIs\n\n async getSystemStatus() {\n return this.ops.getSystemStatus();\n }\n\n async getHealth() {\n return this.ops.getHealth();\n }\n\n // Tag Management APIs\n\n async getTags() {\n return this.ops.getTags();\n }\n\n async addTag(tag: { id?: number; label?: string | null }) {\n return this.ops.createTag({ body: tag });\n }\n\n async getTag(id: number) {\n return this.ops.getTagById({ path: { id } });\n }\n\n async updateTag(id: number | string, tag: { id?: number; label?: string | null }) {\n return this.ops.updateTagById({ path: { id: String(id) }, body: tag });\n }\n\n async deleteTag(id: number) {\n return this.ops.deleteTagById({ path: { id } });\n }\n\n async getTagDetails() {\n return this.ops.getTagDetails();\n }\n\n async getTagDetailById(id: number) {\n return this.ops.getTagDetailById({ path: { id } });\n }\n\n // Notification APIs\n\n async getNotifications() {\n return this.ops.getNotifications();\n }\n\n async getNotification(id: number) {\n return this.ops.getNotificationById({ path: { id } });\n }\n\n async addNotification(notification: Record<string, unknown>) {\n return this.ops.createNotification({ body: notification });\n }\n\n async updateNotification(id: number | string, notification: Record<string, unknown>) {\n return this.ops.updateNotificationById({ path: { id: String(id) }, body: notification });\n }\n\n async deleteNotification(id: number) {\n return this.ops.deleteNotificationById({ path: { id } });\n }\n\n async getNotificationSchema() {\n return this.ops.getNotificationSchema();\n }\n\n async testNotification(notification: Record<string, unknown>) {\n return this.ops.testNotification({ body: notification });\n }\n\n async testAllNotifications() {\n return this.ops.testAllNotifications();\n }\n\n // Download Client APIs\n\n async getDownloadClients() {\n return this.ops.getDownloadClients();\n }\n\n async getDownloadClient(id: number) {\n return this.ops.getDownloadClientById({ path: { id } });\n }\n\n async addDownloadClient(client: Record<string, unknown>) {\n return this.ops.createDownloadClient({ body: client });\n }\n\n async updateDownloadClient(id: number | string, client: Record<string, unknown>) {\n return this.ops.updateDownloadClientById({ path: { id: String(id) }, body: client });\n }\n\n async deleteDownloadClient(id: number) {\n return this.ops.deleteDownloadClientById({ path: { id } });\n }\n\n async getDownloadClientSchema() {\n return this.ops.getDownloadClientSchema();\n }\n\n async testDownloadClient(client: Record<string, unknown>) {\n return this.ops.testDownloadClient({ body: client });\n }\n\n async testAllDownloadClients() {\n return this.ops.testAllDownloadClients();\n }\n\n // Indexer APIs\n\n async getIndexers() {\n return this.ops.getIndexers();\n }\n\n async getIndexer(id: number) {\n return this.ops.getIndexerById({ path: { id } });\n }\n\n async addIndexer(indexer: Record<string, unknown>) {\n return this.ops.createIndexer({ body: indexer });\n }\n\n async updateIndexer(id: number | string, indexer: Record<string, unknown>) {\n return this.ops.updateIndexerById({ path: { id: String(id) }, body: indexer });\n }\n\n async deleteIndexer(id: number) {\n return this.ops.deleteIndexerById({ path: { id } });\n }\n\n async getIndexerSchema() {\n return this.ops.getIndexerSchema();\n }\n\n async testIndexer(indexer: Record<string, unknown>) {\n return this.ops.testIndexer({ body: indexer });\n }\n\n async testAllIndexers() {\n return this.ops.testAllIndexers();\n }\n\n // System Administration APIs\n\n async restartSystem() {\n return this.ops.restartSystem();\n }\n\n async shutdownSystem() {\n return this.ops.shutdownSystem();\n }\n\n async getSystemBackups() {\n return this.ops.getBackups();\n }\n\n async deleteSystemBackup(id: number) {\n return this.ops.deleteBackup({ path: { id } });\n }\n\n async restoreSystemBackup(id: number) {\n return this.ops.restoreBackup({ path: { id } });\n }\n\n async uploadSystemBackup() {\n return this.ops.uploadBackup();\n }\n\n async getLogFiles() {\n return this.ops.getLogFiles();\n }\n\n async getLogFileByName(filename: string) {\n return this.ops.getLogFileByName({ path: { filename } });\n }\n\n // Command APIs\n\n async runCommand(command: Record<string, unknown>) {\n return this.ops.runCommand({ body: command });\n }\n\n async getCommands() {\n return this.ops.getCommands();\n }\n\n // Host Configuration APIs\n\n async getHostConfig() {\n return this.ops.getHostConfig();\n }\n\n async getHostConfigById(id: number) {\n return this.ops.getHostConfigById({ path: { id } });\n }\n\n async updateHostConfig(id: number | string, config: Record<string, unknown>) {\n return this.ops.updateHostConfig({ path: { id: String(id) }, body: config });\n }\n\n // UI Configuration APIs\n\n async getUiConfig() {\n return this.ops.getUiConfig();\n }\n\n async getUiConfigById(id: number) {\n return this.ops.getUiConfigById({ path: { id } });\n }\n\n async updateUiConfig(id: number | string, config: Record<string, unknown>) {\n return this.ops.updateUiConfig({ path: { id: String(id) }, body: config });\n }\n\n // Update configuration\n updateConfig(newConfig: Partial<ServarrClientConfig>) {\n const updatedConfig = { ...this.clientConfig.config, ...newConfig };\n this.clientConfig = createServarrClient(updatedConfig);\n this.configureRawClient();\n return this.clientConfig.config;\n }\n}\n",
|
|
9
|
+
"// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { ArrayStyle, ObjectStyle, SerializerOptions } from './pathSerializer.gen';\n\nexport type QuerySerializer = (query: Record<string, unknown>) => string;\n\nexport type BodySerializer = (body: unknown) => unknown;\n\ntype QuerySerializerOptionsObject = {\n allowReserved?: boolean;\n array?: Partial<SerializerOptions<ArrayStyle>>;\n object?: Partial<SerializerOptions<ObjectStyle>>;\n};\n\nexport type QuerySerializerOptions = QuerySerializerOptionsObject & {\n /**\n * Per-parameter serialization overrides. When provided, these settings\n * override the global array/object settings for specific parameter names.\n */\n parameters?: Record<string, QuerySerializerOptionsObject>;\n};\n\nconst serializeFormDataPair = (data: FormData, key: string, value: unknown): void => {\n if (typeof value === 'string' || value instanceof Blob) {\n data.append(key, value);\n } else if (value instanceof Date) {\n data.append(key, value.toISOString());\n } else {\n data.append(key, JSON.stringify(value));\n }\n};\n\nconst serializeUrlSearchParamsPair = (data: URLSearchParams, key: string, value: unknown): void => {\n if (typeof value === 'string') {\n data.append(key, value);\n } else {\n data.append(key, JSON.stringify(value));\n }\n};\n\nexport const formDataBodySerializer = {\n bodySerializer: (body: unknown): FormData => {\n const data = new FormData();\n\n Object.entries(body as Record<string, unknown>).forEach(([key, value]) => {\n if (value === undefined || value === null) {\n return;\n }\n if (Array.isArray(value)) {\n value.forEach((v) => serializeFormDataPair(data, key, v));\n } else {\n serializeFormDataPair(data, key, value);\n }\n });\n\n return data;\n },\n};\n\nexport const jsonBodySerializer = {\n bodySerializer: (body: unknown): string =>\n JSON.stringify(body, (_key, value) => (typeof value === 'bigint' ? value.toString() : value)),\n};\n\nexport const urlSearchParamsBodySerializer = {\n bodySerializer: (body: unknown): string => {\n const data = new URLSearchParams();\n\n Object.entries(body as Record<string, unknown>).forEach(([key, value]) => {\n if (value === undefined || value === null) {\n return;\n }\n if (Array.isArray(value)) {\n value.forEach((v) => serializeUrlSearchParamsPair(data, key, v));\n } else {\n serializeUrlSearchParamsPair(data, key, value);\n }\n });\n\n return data.toString();\n },\n};\n",
|
|
10
|
+
"// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { Config } from './types.gen';\n\nexport type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> &\n Pick<Config, 'method' | 'responseTransformer' | 'responseValidator'> & {\n /**\n * Fetch API implementation. You can use this option to provide a custom\n * fetch instance.\n *\n * @default globalThis.fetch\n */\n fetch?: typeof fetch;\n /**\n * Implementing clients can call request interceptors inside this hook.\n */\n onRequest?: (url: string, init: RequestInit) => Promise<Request>;\n /**\n * Callback invoked when a network or parsing error occurs during streaming.\n *\n * This option applies only if the endpoint returns a stream of events.\n *\n * @param error The error that occurred.\n */\n onSseError?: (error: unknown) => void;\n /**\n * Callback invoked when an event is streamed from the server.\n *\n * This option applies only if the endpoint returns a stream of events.\n *\n * @param event Event streamed from the server.\n * @returns Nothing (void).\n */\n onSseEvent?: (event: StreamEvent<TData>) => void;\n serializedBody?: RequestInit['body'];\n /**\n * Default retry delay in milliseconds.\n *\n * This option applies only if the endpoint returns a stream of events.\n *\n * @default 3000\n */\n sseDefaultRetryDelay?: number;\n /**\n * Maximum number of retry attempts before giving up.\n */\n sseMaxRetryAttempts?: number;\n /**\n * Maximum retry delay in milliseconds.\n *\n * Applies only when exponential backoff is used.\n *\n * This option applies only if the endpoint returns a stream of events.\n *\n * @default 30000\n */\n sseMaxRetryDelay?: number;\n /**\n * Optional sleep function for retry backoff.\n *\n * Defaults to using `setTimeout`.\n */\n sseSleepFn?: (ms: number) => Promise<void>;\n url: string;\n };\n\nexport interface StreamEvent<TData = unknown> {\n data: TData;\n event?: string;\n id?: string;\n retry?: number;\n}\n\nexport type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {\n stream: AsyncGenerator<\n TData extends Record<string, unknown> ? TData[keyof TData] : TData,\n TReturn,\n TNext\n >;\n};\n\nexport function createSseClient<TData = unknown>({\n onRequest,\n onSseError,\n onSseEvent,\n responseTransformer,\n responseValidator,\n sseDefaultRetryDelay,\n sseMaxRetryAttempts,\n sseMaxRetryDelay,\n sseSleepFn,\n url,\n ...options\n}: ServerSentEventsOptions): ServerSentEventsResult<TData> {\n let lastEventId: string | undefined;\n\n const sleep = sseSleepFn ?? ((ms: number) => new Promise((resolve) => setTimeout(resolve, ms)));\n\n const createStream = async function* () {\n let retryDelay: number = sseDefaultRetryDelay ?? 3000;\n let attempt = 0;\n const signal = options.signal ?? new AbortController().signal;\n\n while (true) {\n if (signal.aborted) break;\n\n attempt++;\n\n const headers =\n options.headers instanceof Headers\n ? options.headers\n : new Headers(options.headers as Record<string, string> | undefined);\n\n if (lastEventId !== undefined) {\n headers.set('Last-Event-ID', lastEventId);\n }\n\n try {\n const requestInit: RequestInit = {\n redirect: 'follow',\n ...options,\n body: options.serializedBody,\n headers,\n signal,\n };\n let request = new Request(url, requestInit);\n if (onRequest) {\n request = await onRequest(url, requestInit);\n }\n // fetch must be assigned here, otherwise it would throw the error:\n // TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation\n const _fetch = options.fetch ?? globalThis.fetch;\n const response = await _fetch(request);\n\n if (!response.ok) throw new Error(`SSE failed: ${response.status} ${response.statusText}`);\n\n if (!response.body) throw new Error('No body in SSE response');\n\n const reader = response.body.pipeThrough(new TextDecoderStream()).getReader();\n\n let buffer = '';\n\n const abortHandler = () => {\n try {\n reader.cancel();\n } catch {\n // noop\n }\n };\n\n signal.addEventListener('abort', abortHandler);\n\n try {\n while (true) {\n const { done, value } = await reader.read();\n if (done) break;\n buffer += value;\n buffer = buffer.replace(/\\r\\n?/g, '\\n'); // normalize line endings\n\n const chunks = buffer.split('\\n\\n');\n buffer = chunks.pop() ?? '';\n\n for (const chunk of chunks) {\n const lines = chunk.split('\\n');\n const dataLines: Array<string> = [];\n let eventName: string | undefined;\n\n for (const line of lines) {\n if (line.startsWith('data:')) {\n dataLines.push(line.replace(/^data:\\s*/, ''));\n } else if (line.startsWith('event:')) {\n eventName = line.replace(/^event:\\s*/, '');\n } else if (line.startsWith('id:')) {\n lastEventId = line.replace(/^id:\\s*/, '');\n } else if (line.startsWith('retry:')) {\n const parsed = Number.parseInt(line.replace(/^retry:\\s*/, ''), 10);\n if (!Number.isNaN(parsed)) {\n retryDelay = parsed;\n }\n }\n }\n\n let data: unknown;\n let parsedJson = false;\n\n if (dataLines.length) {\n const rawData = dataLines.join('\\n');\n try {\n data = JSON.parse(rawData);\n parsedJson = true;\n } catch {\n data = rawData;\n }\n }\n\n if (parsedJson) {\n if (responseValidator) {\n await responseValidator(data);\n }\n\n if (responseTransformer) {\n data = await responseTransformer(data);\n }\n }\n\n onSseEvent?.({\n data,\n event: eventName,\n id: lastEventId,\n retry: retryDelay,\n });\n\n if (dataLines.length) {\n yield data as any;\n }\n }\n }\n } finally {\n signal.removeEventListener('abort', abortHandler);\n reader.releaseLock();\n }\n\n break; // exit loop on normal completion\n } catch (error) {\n // connection failed or aborted; retry after delay\n onSseError?.(error);\n\n if (sseMaxRetryAttempts !== undefined && attempt >= sseMaxRetryAttempts) {\n break; // stop after firing error\n }\n\n // exponential backoff: double retry each attempt, cap at 30s\n const backoff = Math.min(retryDelay * 2 ** (attempt - 1), sseMaxRetryDelay ?? 30000);\n await sleep(backoff);\n }\n }\n };\n\n const stream = createStream();\n\n return { stream };\n}\n",
|
|
11
|
+
"// This file is auto-generated by @hey-api/openapi-ts\n\ninterface SerializeOptions<T> extends SerializePrimitiveOptions, SerializerOptions<T> {}\n\ninterface SerializePrimitiveOptions {\n allowReserved?: boolean;\n name: string;\n}\n\nexport interface SerializerOptions<T> {\n /**\n * @default true\n */\n explode: boolean;\n style: T;\n}\n\nexport type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';\nexport type ArraySeparatorStyle = ArrayStyle | MatrixStyle;\ntype MatrixStyle = 'label' | 'matrix' | 'simple';\nexport type ObjectStyle = 'form' | 'deepObject';\ntype ObjectSeparatorStyle = ObjectStyle | MatrixStyle;\n\ninterface SerializePrimitiveParam extends SerializePrimitiveOptions {\n value: string;\n}\n\nexport const separatorArrayExplode = (style: ArraySeparatorStyle) => {\n switch (style) {\n case 'label':\n return '.';\n case 'matrix':\n return ';';\n case 'simple':\n return ',';\n default:\n return '&';\n }\n};\n\nexport const separatorArrayNoExplode = (style: ArraySeparatorStyle) => {\n switch (style) {\n case 'form':\n return ',';\n case 'pipeDelimited':\n return '|';\n case 'spaceDelimited':\n return '%20';\n default:\n return ',';\n }\n};\n\nexport const separatorObjectExplode = (style: ObjectSeparatorStyle) => {\n switch (style) {\n case 'label':\n return '.';\n case 'matrix':\n return ';';\n case 'simple':\n return ',';\n default:\n return '&';\n }\n};\n\nexport const serializeArrayParam = ({\n allowReserved,\n explode,\n name,\n style,\n value,\n}: SerializeOptions<ArraySeparatorStyle> & {\n value: unknown[];\n}) => {\n if (!explode) {\n const joinedValues = (\n allowReserved ? value : value.map((v) => encodeURIComponent(v as string))\n ).join(separatorArrayNoExplode(style));\n switch (style) {\n case 'label':\n return `.${joinedValues}`;\n case 'matrix':\n return `;${name}=${joinedValues}`;\n case 'simple':\n return joinedValues;\n default:\n return `${name}=${joinedValues}`;\n }\n }\n\n const separator = separatorArrayExplode(style);\n const joinedValues = value\n .map((v) => {\n if (style === 'label' || style === 'simple') {\n return allowReserved ? v : encodeURIComponent(v as string);\n }\n\n return serializePrimitiveParam({\n allowReserved,\n name,\n value: v as string,\n });\n })\n .join(separator);\n return style === 'label' || style === 'matrix' ? separator + joinedValues : joinedValues;\n};\n\nexport const serializePrimitiveParam = ({\n allowReserved,\n name,\n value,\n}: SerializePrimitiveParam) => {\n if (value === undefined || value === null) {\n return '';\n }\n\n if (typeof value === 'object') {\n throw new Error(\n 'Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.',\n );\n }\n\n return `${name}=${allowReserved ? value : encodeURIComponent(value)}`;\n};\n\nexport const serializeObjectParam = ({\n allowReserved,\n explode,\n name,\n style,\n value,\n valueOnly,\n}: SerializeOptions<ObjectSeparatorStyle> & {\n value: Record<string, unknown> | Date;\n valueOnly?: boolean;\n}) => {\n if (value instanceof Date) {\n return valueOnly ? value.toISOString() : `${name}=${value.toISOString()}`;\n }\n\n if (style !== 'deepObject' && !explode) {\n let values: string[] = [];\n Object.entries(value).forEach(([key, v]) => {\n values = [...values, key, allowReserved ? (v as string) : encodeURIComponent(v as string)];\n });\n const joinedValues = values.join(',');\n switch (style) {\n case 'form':\n return `${name}=${joinedValues}`;\n case 'label':\n return `.${joinedValues}`;\n case 'matrix':\n return `;${name}=${joinedValues}`;\n default:\n return joinedValues;\n }\n }\n\n const separator = separatorObjectExplode(style);\n const joinedValues = Object.entries(value)\n .map(([key, v]) =>\n serializePrimitiveParam({\n allowReserved,\n name: style === 'deepObject' ? `${name}[${key}]` : key,\n value: v as string,\n }),\n )\n .join(separator);\n return style === 'label' || style === 'matrix' ? separator + joinedValues : joinedValues;\n};\n",
|
|
12
|
+
"// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { BodySerializer, QuerySerializer } from './bodySerializer.gen';\nimport {\n type ArraySeparatorStyle,\n serializeArrayParam,\n serializeObjectParam,\n serializePrimitiveParam,\n} from './pathSerializer.gen';\n\nexport interface PathSerializer {\n path: Record<string, unknown>;\n url: string;\n}\n\nexport const PATH_PARAM_RE = /\\{[^{}]+\\}/g;\n\nexport const defaultPathSerializer = ({ path, url: _url }: PathSerializer) => {\n let url = _url;\n const matches = _url.match(PATH_PARAM_RE);\n if (matches) {\n for (const match of matches) {\n let explode = false;\n let name = match.substring(1, match.length - 1);\n let style: ArraySeparatorStyle = 'simple';\n\n if (name.endsWith('*')) {\n explode = true;\n name = name.substring(0, name.length - 1);\n }\n\n if (name.startsWith('.')) {\n name = name.substring(1);\n style = 'label';\n } else if (name.startsWith(';')) {\n name = name.substring(1);\n style = 'matrix';\n }\n\n const value = path[name];\n\n if (value === undefined || value === null) {\n continue;\n }\n\n if (Array.isArray(value)) {\n url = url.replace(match, serializeArrayParam({ explode, name, style, value }));\n continue;\n }\n\n if (typeof value === 'object') {\n url = url.replace(\n match,\n serializeObjectParam({\n explode,\n name,\n style,\n value: value as Record<string, unknown>,\n valueOnly: true,\n }),\n );\n continue;\n }\n\n if (style === 'matrix') {\n url = url.replace(\n match,\n `;${serializePrimitiveParam({\n name,\n value: value as string,\n })}`,\n );\n continue;\n }\n\n const replaceValue = encodeURIComponent(\n style === 'label' ? `.${value as string}` : (value as string),\n );\n url = url.replace(match, replaceValue);\n }\n }\n return url;\n};\n\nexport const getUrl = ({\n baseUrl,\n path,\n query,\n querySerializer,\n url: _url,\n}: {\n baseUrl?: string;\n path?: Record<string, unknown>;\n query?: Record<string, unknown>;\n querySerializer: QuerySerializer;\n url: string;\n}) => {\n const pathUrl = _url.startsWith('/') ? _url : `/${_url}`;\n let url = (baseUrl ?? '') + pathUrl;\n if (path) {\n url = defaultPathSerializer({ path, url });\n }\n let search = query ? querySerializer(query) : '';\n if (search.startsWith('?')) {\n search = search.substring(1);\n }\n if (search) {\n url += `?${search}`;\n }\n return url;\n};\n\nexport function getValidRequestBody(options: {\n body?: unknown;\n bodySerializer?: BodySerializer | null;\n serializedBody?: unknown;\n}) {\n const hasBody = options.body !== undefined;\n const isSerializedBody = hasBody && options.bodySerializer;\n\n if (isSerializedBody) {\n if ('serializedBody' in options) {\n const hasSerializedBody =\n options.serializedBody !== undefined && options.serializedBody !== '';\n\n return hasSerializedBody ? options.serializedBody : null;\n }\n\n // not all clients implement a serializedBody property (i.e., client-axios)\n return options.body !== '' ? options.body : null;\n }\n\n // plain/text body\n if (hasBody) {\n return options.body;\n }\n\n // no body was provided\n return undefined;\n}\n",
|
|
13
|
+
"// This file is auto-generated by @hey-api/openapi-ts\n\nexport type AuthToken = string | undefined;\n\nexport interface Auth {\n /**\n * Which part of the request do we use to send the auth?\n *\n * @default 'header'\n */\n in?: 'header' | 'query' | 'cookie';\n /**\n * Header or query parameter name.\n *\n * @default 'Authorization'\n */\n name?: string;\n scheme?: 'basic' | 'bearer';\n type: 'apiKey' | 'http';\n}\n\nexport const getAuthToken = async (\n auth: Auth,\n callback: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken,\n): Promise<string | undefined> => {\n const token = typeof callback === 'function' ? await callback(auth) : callback;\n\n if (!token) {\n return;\n }\n\n if (auth.scheme === 'bearer') {\n return `Bearer ${token}`;\n }\n\n if (auth.scheme === 'basic') {\n return `Basic ${btoa(token)}`;\n }\n\n return token;\n};\n",
|
|
14
|
+
"// This file is auto-generated by @hey-api/openapi-ts\n\nimport { getAuthToken } from '../core/auth.gen';\nimport type { QuerySerializerOptions } from '../core/bodySerializer.gen';\nimport { jsonBodySerializer } from '../core/bodySerializer.gen';\nimport {\n serializeArrayParam,\n serializeObjectParam,\n serializePrimitiveParam,\n} from '../core/pathSerializer.gen';\nimport { getUrl } from '../core/utils.gen';\nimport type { Client, ClientOptions, Config, RequestOptions } from './types.gen';\n\nexport const createQuerySerializer = <T = unknown>({\n parameters = {},\n ...args\n}: QuerySerializerOptions = {}) => {\n const querySerializer = (queryParams: T) => {\n const search: string[] = [];\n if (queryParams && typeof queryParams === 'object') {\n for (const name in queryParams) {\n const value = queryParams[name];\n\n if (value === undefined || value === null) {\n continue;\n }\n\n const options = parameters[name] || args;\n\n if (Array.isArray(value)) {\n const serializedArray = serializeArrayParam({\n allowReserved: options.allowReserved,\n explode: true,\n name,\n style: 'form',\n value,\n ...options.array,\n });\n if (serializedArray) search.push(serializedArray);\n } else if (typeof value === 'object') {\n const serializedObject = serializeObjectParam({\n allowReserved: options.allowReserved,\n explode: true,\n name,\n style: 'deepObject',\n value: value as Record<string, unknown>,\n ...options.object,\n });\n if (serializedObject) search.push(serializedObject);\n } else {\n const serializedPrimitive = serializePrimitiveParam({\n allowReserved: options.allowReserved,\n name,\n value: value as string,\n });\n if (serializedPrimitive) search.push(serializedPrimitive);\n }\n }\n }\n return search.join('&');\n };\n return querySerializer;\n};\n\n/**\n * Infers parseAs value from provided Content-Type header.\n */\nexport const getParseAs = (contentType: string | null): Exclude<Config['parseAs'], 'auto'> => {\n if (!contentType) {\n // If no Content-Type header is provided, the best we can do is return the raw response body,\n // which is effectively the same as the 'stream' option.\n return 'stream';\n }\n\n const cleanContent = contentType.split(';')[0]?.trim();\n\n if (!cleanContent) {\n return;\n }\n\n if (cleanContent.startsWith('application/json') || cleanContent.endsWith('+json')) {\n return 'json';\n }\n\n if (cleanContent === 'multipart/form-data') {\n return 'formData';\n }\n\n if (\n ['application/', 'audio/', 'image/', 'video/'].some((type) => cleanContent.startsWith(type))\n ) {\n return 'blob';\n }\n\n if (cleanContent.startsWith('text/')) {\n return 'text';\n }\n\n return;\n};\n\nconst checkForExistence = (\n options: Pick<RequestOptions, 'auth' | 'query'> & {\n headers: Headers;\n },\n name?: string,\n): boolean => {\n if (!name) {\n return false;\n }\n if (\n options.headers.has(name) ||\n options.query?.[name] ||\n options.headers.get('Cookie')?.includes(`${name}=`)\n ) {\n return true;\n }\n return false;\n};\n\nexport const setAuthParams = async ({\n security,\n ...options\n}: Pick<Required<RequestOptions>, 'security'> &\n Pick<RequestOptions, 'auth' | 'query'> & {\n headers: Headers;\n }) => {\n for (const auth of security) {\n if (checkForExistence(options, auth.name)) {\n continue;\n }\n\n const token = await getAuthToken(auth, options.auth);\n\n if (!token) {\n continue;\n }\n\n const name = auth.name ?? 'Authorization';\n\n switch (auth.in) {\n case 'query':\n if (!options.query) {\n options.query = {};\n }\n options.query[name] = token;\n break;\n case 'cookie':\n options.headers.append('Cookie', `${name}=${token}`);\n break;\n case 'header':\n default:\n options.headers.set(name, token);\n break;\n }\n }\n};\n\nexport const buildUrl: Client['buildUrl'] = (options) =>\n getUrl({\n baseUrl: options.baseUrl as string,\n path: options.path,\n query: options.query,\n querySerializer:\n typeof options.querySerializer === 'function'\n ? options.querySerializer\n : createQuerySerializer(options.querySerializer),\n url: options.url,\n });\n\nexport const mergeConfigs = (a: Config, b: Config): Config => {\n const config = { ...a, ...b };\n if (config.baseUrl?.endsWith('/')) {\n config.baseUrl = config.baseUrl.substring(0, config.baseUrl.length - 1);\n }\n config.headers = mergeHeaders(a.headers, b.headers);\n return config;\n};\n\nconst headersEntries = (headers: Headers): Array<[string, string]> => {\n const entries: Array<[string, string]> = [];\n headers.forEach((value, key) => {\n entries.push([key, value]);\n });\n return entries;\n};\n\nexport const mergeHeaders = (\n ...headers: Array<Required<Config>['headers'] | undefined>\n): Headers => {\n const mergedHeaders = new Headers();\n for (const header of headers) {\n if (!header) {\n continue;\n }\n\n const iterator = header instanceof Headers ? headersEntries(header) : Object.entries(header);\n\n for (const [key, value] of iterator) {\n if (value === null) {\n mergedHeaders.delete(key);\n } else if (Array.isArray(value)) {\n for (const v of value) {\n mergedHeaders.append(key, v as string);\n }\n } else if (value !== undefined) {\n // assume object headers are meant to be JSON stringified, i.e., their\n // content value in OpenAPI specification is 'application/json'\n mergedHeaders.set(\n key,\n typeof value === 'object' ? JSON.stringify(value) : (value as string),\n );\n }\n }\n }\n return mergedHeaders;\n};\n\ntype ErrInterceptor<Err, Res, Req, Options> = (\n error: Err,\n /** response may be undefined due to a network error where no response object is produced */\n response: Res | undefined,\n /** request may be undefined, because error may be from building the request object itself */\n request: Req | undefined,\n options: Options,\n) => Err | Promise<Err>;\n\ntype ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;\n\ntype ResInterceptor<Res, Req, Options> = (\n response: Res,\n request: Req,\n options: Options,\n) => Res | Promise<Res>;\n\nclass Interceptors<Interceptor> {\n fns: Array<Interceptor | null> = [];\n\n clear(): void {\n this.fns = [];\n }\n\n eject(id: number | Interceptor): void {\n const index = this.getInterceptorIndex(id);\n if (this.fns[index]) {\n this.fns[index] = null;\n }\n }\n\n exists(id: number | Interceptor): boolean {\n const index = this.getInterceptorIndex(id);\n return Boolean(this.fns[index]);\n }\n\n getInterceptorIndex(id: number | Interceptor): number {\n if (typeof id === 'number') {\n return this.fns[id] ? id : -1;\n }\n return this.fns.indexOf(id);\n }\n\n update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false {\n const index = this.getInterceptorIndex(id);\n if (this.fns[index]) {\n this.fns[index] = fn;\n return id;\n }\n return false;\n }\n\n use(fn: Interceptor): number {\n this.fns.push(fn);\n return this.fns.length - 1;\n }\n}\n\nexport interface Middleware<Req, Res, Err, Options> {\n error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;\n request: Interceptors<ReqInterceptor<Req, Options>>;\n response: Interceptors<ResInterceptor<Res, Req, Options>>;\n}\n\nexport const createInterceptors = <Req, Res, Err, Options>(): Middleware<\n Req,\n Res,\n Err,\n Options\n> => ({\n error: new Interceptors<ErrInterceptor<Err, Res, Req, Options>>(),\n request: new Interceptors<ReqInterceptor<Req, Options>>(),\n response: new Interceptors<ResInterceptor<Res, Req, Options>>(),\n});\n\nconst defaultQuerySerializer = createQuerySerializer({\n allowReserved: false,\n array: {\n explode: true,\n style: 'form',\n },\n object: {\n explode: true,\n style: 'deepObject',\n },\n});\n\nconst defaultHeaders = {\n 'Content-Type': 'application/json',\n};\n\nexport const createConfig = <T extends ClientOptions = ClientOptions>(\n override: Config<Omit<ClientOptions, keyof T> & T> = {},\n): Config<Omit<ClientOptions, keyof T> & T> => ({\n ...jsonBodySerializer,\n headers: defaultHeaders,\n parseAs: 'auto',\n querySerializer: defaultQuerySerializer,\n ...override,\n});\n",
|
|
15
|
+
"// This file is auto-generated by @hey-api/openapi-ts\n\nimport { createSseClient } from '../core/serverSentEvents.gen';\nimport type { HttpMethod } from '../core/types.gen';\nimport { getValidRequestBody } from '../core/utils.gen';\nimport type { Client, Config, RequestOptions, ResolvedRequestOptions } from './types.gen';\nimport {\n buildUrl,\n createConfig,\n createInterceptors,\n getParseAs,\n mergeConfigs,\n mergeHeaders,\n setAuthParams,\n} from './utils.gen';\n\ntype ReqInit = Omit<RequestInit, 'body' | 'headers'> & {\n body?: any;\n headers: ReturnType<typeof mergeHeaders>;\n};\n\nexport const createClient = (config: Config = {}): Client => {\n let _config = mergeConfigs(createConfig(), config);\n\n const getConfig = (): Config => ({ ..._config });\n\n const setConfig = (config: Config): Config => {\n _config = mergeConfigs(_config, config);\n return getConfig();\n };\n\n const interceptors = createInterceptors<Request, Response, unknown, ResolvedRequestOptions>();\n\n const beforeRequest = async <\n TData = unknown,\n TResponseStyle extends 'data' | 'fields' = 'fields',\n ThrowOnError extends boolean = boolean,\n Url extends string = string,\n >(\n options: RequestOptions<TData, TResponseStyle, ThrowOnError, Url>,\n ) => {\n const opts = {\n ..._config,\n ...options,\n fetch: options.fetch ?? _config.fetch ?? globalThis.fetch,\n headers: mergeHeaders(_config.headers, options.headers),\n serializedBody: undefined as string | undefined,\n };\n\n if (opts.security) {\n await setAuthParams({\n ...opts,\n security: opts.security,\n });\n }\n\n if (opts.requestValidator) {\n await opts.requestValidator(opts);\n }\n\n if (opts.body !== undefined && opts.bodySerializer) {\n opts.serializedBody = opts.bodySerializer(opts.body) as string | undefined;\n }\n\n // remove Content-Type header if body is empty to avoid sending invalid requests\n if (opts.body === undefined || opts.serializedBody === '') {\n opts.headers.delete('Content-Type');\n }\n\n const resolvedOpts = opts as typeof opts &\n ResolvedRequestOptions<TResponseStyle, ThrowOnError, Url>;\n const url = buildUrl(resolvedOpts);\n\n return { opts: resolvedOpts, url };\n };\n\n const request: Client['request'] = async (options) => {\n const throwOnError = options.throwOnError ?? _config.throwOnError;\n const responseStyle = options.responseStyle ?? _config.responseStyle;\n\n let request: Request | undefined;\n let response: Response | undefined;\n\n try {\n const { opts, url } = await beforeRequest(options);\n const requestInit: ReqInit = {\n redirect: 'follow',\n ...opts,\n body: getValidRequestBody(opts),\n };\n\n request = new Request(url, requestInit);\n\n for (const fn of interceptors.request.fns) {\n if (fn) {\n request = await fn(request, opts);\n }\n }\n\n // fetch must be assigned here, otherwise it would throw the error:\n // TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation\n const _fetch = opts.fetch!;\n\n response = await _fetch(request);\n\n for (const fn of interceptors.response.fns) {\n if (fn) {\n response = await fn(response, request, opts);\n }\n }\n\n const result = {\n request,\n response,\n };\n\n if (response.ok) {\n const parseAs =\n (opts.parseAs === 'auto'\n ? getParseAs(response.headers.get('Content-Type'))\n : opts.parseAs) ?? 'json';\n\n if (response.status === 204 || response.headers.get('Content-Length') === '0') {\n let emptyData: any;\n switch (parseAs) {\n case 'arrayBuffer':\n case 'blob':\n case 'text':\n emptyData = await response[parseAs]();\n break;\n case 'formData':\n emptyData = new FormData();\n break;\n case 'stream':\n emptyData = response.body;\n break;\n case 'json':\n default:\n emptyData = {};\n break;\n }\n return opts.responseStyle === 'data'\n ? emptyData\n : {\n data: emptyData,\n ...result,\n };\n }\n\n let data: any;\n switch (parseAs) {\n case 'arrayBuffer':\n case 'blob':\n case 'formData':\n case 'text':\n data = await response[parseAs]();\n break;\n case 'json': {\n // Some servers return 200 with no Content-Length and empty body.\n // response.json() would throw; read as text and parse if non-empty.\n const text = await response.text();\n data = text ? JSON.parse(text) : {};\n break;\n }\n case 'stream':\n return opts.responseStyle === 'data'\n ? response.body\n : {\n data: response.body,\n ...result,\n };\n }\n\n if (parseAs === 'json') {\n if (opts.responseValidator) {\n await opts.responseValidator(data);\n }\n\n if (opts.responseTransformer) {\n data = await opts.responseTransformer(data);\n }\n }\n\n return opts.responseStyle === 'data'\n ? data\n : {\n data,\n ...result,\n };\n }\n\n const textError = await response.text();\n let jsonError: unknown;\n\n try {\n jsonError = JSON.parse(textError);\n } catch {\n // noop\n }\n\n throw jsonError ?? textError;\n } catch (error) {\n let finalError = error;\n\n for (const fn of interceptors.error.fns) {\n if (fn) {\n finalError = await fn(finalError, response, request, options as ResolvedRequestOptions);\n }\n }\n\n finalError = finalError || {};\n\n if (throwOnError) {\n throw finalError;\n }\n\n // TODO: we probably want to return error and improve types\n return responseStyle === 'data'\n ? undefined\n : {\n error: finalError,\n request,\n response,\n };\n }\n };\n\n const makeMethodFn = (method: Uppercase<HttpMethod>) => (options: RequestOptions) =>\n request({ ...options, method });\n\n const makeSseFn = (method: Uppercase<HttpMethod>) => async (options: RequestOptions) => {\n const { opts, url } = await beforeRequest(options);\n return createSseClient({\n ...opts,\n body: opts.body as BodyInit | null | undefined,\n method,\n onRequest: async (url, init) => {\n let request = new Request(url, init);\n for (const fn of interceptors.request.fns) {\n if (fn) {\n request = await fn(request, opts);\n }\n }\n return request;\n },\n serializedBody: getValidRequestBody(opts) as BodyInit | null | undefined,\n url,\n });\n };\n\n const _buildUrl: Client['buildUrl'] = (options) => buildUrl({ ..._config, ...options });\n\n return {\n buildUrl: _buildUrl,\n connect: makeMethodFn('CONNECT'),\n delete: makeMethodFn('DELETE'),\n get: makeMethodFn('GET'),\n getConfig,\n head: makeMethodFn('HEAD'),\n interceptors,\n options: makeMethodFn('OPTIONS'),\n patch: makeMethodFn('PATCH'),\n post: makeMethodFn('POST'),\n put: makeMethodFn('PUT'),\n request,\n setConfig,\n sse: {\n connect: makeSseFn('CONNECT'),\n delete: makeSseFn('DELETE'),\n get: makeSseFn('GET'),\n head: makeSseFn('HEAD'),\n options: makeSseFn('OPTIONS'),\n patch: makeSseFn('PATCH'),\n post: makeSseFn('POST'),\n put: makeSseFn('PUT'),\n trace: makeSseFn('TRACE'),\n },\n trace: makeMethodFn('TRACE'),\n } as Client;\n};\n",
|
|
16
|
+
"// This file is auto-generated by @hey-api/openapi-ts\n\nimport { type ClientOptions, type Config, createClient, createConfig } from './client';\nimport type { ClientOptions as ClientOptions2 } from './types.gen';\n\n/**\n * The `createClientConfig()` function will be called on client initialization\n * and the returned object will become the client's initial configuration.\n *\n * You may want to initialize your client this way instead of calling\n * `setConfig()`. This is useful for example if you're using Next.js\n * to ensure your client always has the correct values.\n */\nexport type CreateClientConfig<T extends ClientOptions = ClientOptions2> = (override?: Config<ClientOptions & T>) => Config<Required<ClientOptions> & T>;\n\nexport const client = createClient(createConfig<ClientOptions2>());\n",
|
|
17
|
+
"// This file is auto-generated by @hey-api/openapi-ts\n\nimport { type Client, formDataBodySerializer, type Options as Options2, type TDataShape } from './client';\nimport { client } from './client.gen';\nimport type { DeleteApiV1ApplicationsBulkData, DeleteApiV1ApplicationsBulkResponses, DeleteApiV1ApplicationsByIdData, DeleteApiV1ApplicationsByIdResponses, DeleteApiV1AppprofileByIdData, DeleteApiV1AppprofileByIdResponses, DeleteApiV1CommandByIdData, DeleteApiV1CommandByIdResponses, DeleteApiV1CustomfilterByIdData, DeleteApiV1CustomfilterByIdResponses, DeleteApiV1DownloadclientBulkData, DeleteApiV1DownloadclientBulkResponses, DeleteApiV1DownloadclientByIdData, DeleteApiV1DownloadclientByIdResponses, DeleteApiV1IndexerBulkData, DeleteApiV1IndexerBulkResponses, DeleteApiV1IndexerByIdData, DeleteApiV1IndexerByIdResponses, DeleteApiV1IndexerproxyByIdData, DeleteApiV1IndexerproxyByIdResponses, DeleteApiV1NotificationByIdData, DeleteApiV1NotificationByIdResponses, DeleteApiV1SystemBackupByIdData, DeleteApiV1SystemBackupByIdResponses, DeleteApiV1TagByIdData, DeleteApiV1TagByIdResponses, GetApiData, GetApiResponses, GetApiV1ApplicationsByIdData, GetApiV1ApplicationsByIdResponses, GetApiV1ApplicationsData, GetApiV1ApplicationsResponses, GetApiV1ApplicationsSchemaData, GetApiV1ApplicationsSchemaResponses, GetApiV1AppprofileByIdData, GetApiV1AppprofileByIdErrors, GetApiV1AppprofileByIdResponses, GetApiV1AppprofileData, GetApiV1AppprofileResponses, GetApiV1AppprofileSchemaData, GetApiV1AppprofileSchemaResponses, GetApiV1CommandByIdData, GetApiV1CommandByIdResponses, GetApiV1CommandData, GetApiV1CommandResponses, GetApiV1ConfigDevelopmentByIdData, GetApiV1ConfigDevelopmentByIdResponses, GetApiV1ConfigDevelopmentData, GetApiV1ConfigDevelopmentResponses, GetApiV1ConfigDownloadclientByIdData, GetApiV1ConfigDownloadclientByIdResponses, GetApiV1ConfigDownloadclientData, GetApiV1ConfigDownloadclientResponses, GetApiV1ConfigHostByIdData, GetApiV1ConfigHostByIdResponses, GetApiV1ConfigHostData, GetApiV1ConfigHostResponses, GetApiV1ConfigUiByIdData, GetApiV1ConfigUiByIdResponses, GetApiV1ConfigUiData, GetApiV1ConfigUiResponses, GetApiV1CustomfilterByIdData, GetApiV1CustomfilterByIdResponses, GetApiV1CustomfilterData, GetApiV1CustomfilterResponses, GetApiV1DownloadclientByIdData, GetApiV1DownloadclientByIdResponses, GetApiV1DownloadclientData, GetApiV1DownloadclientResponses, GetApiV1DownloadclientSchemaData, GetApiV1DownloadclientSchemaResponses, GetApiV1FilesystemData, GetApiV1FilesystemResponses, GetApiV1FilesystemTypeData, GetApiV1FilesystemTypeResponses, GetApiV1HealthData, GetApiV1HealthResponses, GetApiV1HistoryData, GetApiV1HistoryIndexerData, GetApiV1HistoryIndexerResponses, GetApiV1HistoryResponses, GetApiV1HistorySinceData, GetApiV1HistorySinceResponses, GetApiV1IndexerByIdData, GetApiV1IndexerByIdDownloadData, GetApiV1IndexerByIdDownloadResponses, GetApiV1IndexerByIdNewznabData, GetApiV1IndexerByIdNewznabResponses, GetApiV1IndexerByIdResponses, GetApiV1IndexerCategoriesData, GetApiV1IndexerCategoriesResponses, GetApiV1IndexerData, GetApiV1IndexerproxyByIdData, GetApiV1IndexerproxyByIdResponses, GetApiV1IndexerproxyData, GetApiV1IndexerproxyResponses, GetApiV1IndexerproxySchemaData, GetApiV1IndexerproxySchemaResponses, GetApiV1IndexerResponses, GetApiV1IndexerSchemaData, GetApiV1IndexerSchemaResponses, GetApiV1IndexerstatsData, GetApiV1IndexerstatsResponses, GetApiV1IndexerstatusData, GetApiV1IndexerstatusResponses, GetApiV1LocalizationData, GetApiV1LocalizationOptionsData, GetApiV1LocalizationOptionsResponses, GetApiV1LocalizationResponses, GetApiV1LogData, GetApiV1LogFileByFilenameData, GetApiV1LogFileByFilenameResponses, GetApiV1LogFileData, GetApiV1LogFileResponses, GetApiV1LogFileUpdateByFilenameData, GetApiV1LogFileUpdateByFilenameResponses, GetApiV1LogFileUpdateData, GetApiV1LogFileUpdateResponses, GetApiV1LogResponses, GetApiV1NotificationByIdData, GetApiV1NotificationByIdResponses, GetApiV1NotificationData, GetApiV1NotificationResponses, GetApiV1NotificationSchemaData, GetApiV1NotificationSchemaResponses, GetApiV1SearchData, GetApiV1SearchResponses, GetApiV1SystemBackupData, GetApiV1SystemBackupResponses, GetApiV1SystemRoutesData, GetApiV1SystemRoutesDuplicateData, GetApiV1SystemRoutesDuplicateResponses, GetApiV1SystemRoutesResponses, GetApiV1SystemStatusData, GetApiV1SystemStatusResponses, GetApiV1SystemTaskByIdData, GetApiV1SystemTaskByIdResponses, GetApiV1SystemTaskData, GetApiV1SystemTaskResponses, GetApiV1TagByIdData, GetApiV1TagByIdResponses, GetApiV1TagData, GetApiV1TagDetailByIdData, GetApiV1TagDetailByIdResponses, GetApiV1TagDetailData, GetApiV1TagDetailResponses, GetApiV1TagResponses, GetApiV1UpdateData, GetApiV1UpdateResponses, GetByIdApiData, GetByIdApiResponses, GetByIdDownloadData, GetByIdDownloadResponses, GetByPathData, GetByPathResponses, GetContentByPathData, GetContentByPathResponses, GetData, GetLoginData, GetLoginResponses, GetLogoutData, GetLogoutResponses, GetPingData, GetPingResponses, GetResponses, HeadPingData, HeadPingResponses, PostApiV1ApplicationsActionByNameData, PostApiV1ApplicationsActionByNameResponses, PostApiV1ApplicationsData, PostApiV1ApplicationsResponses, PostApiV1ApplicationsTestallData, PostApiV1ApplicationsTestallResponses, PostApiV1ApplicationsTestData, PostApiV1ApplicationsTestResponses, PostApiV1AppprofileData, PostApiV1AppprofileResponses, PostApiV1CommandData, PostApiV1CommandResponses, PostApiV1CustomfilterData, PostApiV1CustomfilterResponses, PostApiV1DownloadclientActionByNameData, PostApiV1DownloadclientActionByNameResponses, PostApiV1DownloadclientData, PostApiV1DownloadclientResponses, PostApiV1DownloadclientTestallData, PostApiV1DownloadclientTestallResponses, PostApiV1DownloadclientTestData, PostApiV1DownloadclientTestResponses, PostApiV1IndexerActionByNameData, PostApiV1IndexerActionByNameResponses, PostApiV1IndexerData, PostApiV1IndexerproxyActionByNameData, PostApiV1IndexerproxyActionByNameResponses, PostApiV1IndexerproxyData, PostApiV1IndexerproxyResponses, PostApiV1IndexerproxyTestallData, PostApiV1IndexerproxyTestallResponses, PostApiV1IndexerproxyTestData, PostApiV1IndexerproxyTestResponses, PostApiV1IndexerResponses, PostApiV1IndexerTestallData, PostApiV1IndexerTestallResponses, PostApiV1IndexerTestData, PostApiV1IndexerTestResponses, PostApiV1NotificationActionByNameData, PostApiV1NotificationActionByNameResponses, PostApiV1NotificationData, PostApiV1NotificationResponses, PostApiV1NotificationTestallData, PostApiV1NotificationTestallResponses, PostApiV1NotificationTestData, PostApiV1NotificationTestResponses, PostApiV1SearchBulkData, PostApiV1SearchBulkResponses, PostApiV1SearchData, PostApiV1SearchResponses, PostApiV1SystemBackupRestoreByIdData, PostApiV1SystemBackupRestoreByIdResponses, PostApiV1SystemBackupRestoreUploadData, PostApiV1SystemBackupRestoreUploadResponses, PostApiV1SystemRestartData, PostApiV1SystemRestartResponses, PostApiV1SystemShutdownData, PostApiV1SystemShutdownResponses, PostApiV1TagData, PostApiV1TagResponses, PostLoginData, PostLoginResponses, PutApiV1ApplicationsBulkData, PutApiV1ApplicationsBulkResponses, PutApiV1ApplicationsByIdData, PutApiV1ApplicationsByIdResponses, PutApiV1AppprofileByIdData, PutApiV1AppprofileByIdResponses, PutApiV1ConfigDevelopmentByIdData, PutApiV1ConfigDevelopmentByIdResponses, PutApiV1ConfigDownloadclientByIdData, PutApiV1ConfigDownloadclientByIdResponses, PutApiV1ConfigHostByIdData, PutApiV1ConfigHostByIdResponses, PutApiV1ConfigUiByIdData, PutApiV1ConfigUiByIdResponses, PutApiV1CustomfilterByIdData, PutApiV1CustomfilterByIdResponses, PutApiV1DownloadclientBulkData, PutApiV1DownloadclientBulkResponses, PutApiV1DownloadclientByIdData, PutApiV1DownloadclientByIdResponses, PutApiV1IndexerBulkData, PutApiV1IndexerBulkResponses, PutApiV1IndexerByIdData, PutApiV1IndexerByIdResponses, PutApiV1IndexerproxyByIdData, PutApiV1IndexerproxyByIdResponses, PutApiV1NotificationByIdData, PutApiV1NotificationByIdResponses, PutApiV1TagByIdData, PutApiV1TagByIdResponses } from './types.gen';\n\nexport type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {\n /**\n * You can provide a client instance returned by `createClient()` instead of\n * individual options. This might be also useful if you want to implement a\n * custom client.\n */\n client?: Client;\n /**\n * You can pass arbitrary values through the `meta` object. This can be\n * used to access values that aren't defined as part of the SDK function.\n */\n meta?: Record<string, unknown>;\n};\n\nexport const getApi = <ThrowOnError extends boolean = false>(options?: Options<GetApiData, ThrowOnError>) => (options?.client ?? client).get<GetApiResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api',\n ...options\n});\n\nexport const deleteApiV1ApplicationsById = <ThrowOnError extends boolean = false>(options: Options<DeleteApiV1ApplicationsByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteApiV1ApplicationsByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/applications/{id}',\n ...options\n});\n\nexport const getApiV1ApplicationsById = <ThrowOnError extends boolean = false>(options: Options<GetApiV1ApplicationsByIdData, ThrowOnError>) => (options.client ?? client).get<GetApiV1ApplicationsByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/applications/{id}',\n ...options\n});\n\nexport const putApiV1ApplicationsById = <ThrowOnError extends boolean = false>(options: Options<PutApiV1ApplicationsByIdData, ThrowOnError>) => (options.client ?? client).put<PutApiV1ApplicationsByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/applications/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n});\n\nexport const getApiV1Applications = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1ApplicationsData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1ApplicationsResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/applications',\n ...options\n});\n\nexport const postApiV1Applications = <ThrowOnError extends boolean = false>(options?: Options<PostApiV1ApplicationsData, ThrowOnError>) => (options?.client ?? client).post<PostApiV1ApplicationsResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/applications',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers\n }\n});\n\nexport const deleteApiV1ApplicationsBulk = <ThrowOnError extends boolean = false>(options?: Options<DeleteApiV1ApplicationsBulkData, ThrowOnError>) => (options?.client ?? client).delete<DeleteApiV1ApplicationsBulkResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/applications/bulk',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers\n }\n});\n\nexport const putApiV1ApplicationsBulk = <ThrowOnError extends boolean = false>(options?: Options<PutApiV1ApplicationsBulkData, ThrowOnError>) => (options?.client ?? client).put<PutApiV1ApplicationsBulkResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/applications/bulk',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers\n }\n});\n\nexport const getApiV1ApplicationsSchema = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1ApplicationsSchemaData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1ApplicationsSchemaResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/applications/schema',\n ...options\n});\n\nexport const postApiV1ApplicationsTest = <ThrowOnError extends boolean = false>(options?: Options<PostApiV1ApplicationsTestData, ThrowOnError>) => (options?.client ?? client).post<PostApiV1ApplicationsTestResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/applications/test',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers\n }\n});\n\nexport const postApiV1ApplicationsTestall = <ThrowOnError extends boolean = false>(options?: Options<PostApiV1ApplicationsTestallData, ThrowOnError>) => (options?.client ?? client).post<PostApiV1ApplicationsTestallResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/applications/testall',\n ...options\n});\n\nexport const postApiV1ApplicationsActionByName = <ThrowOnError extends boolean = false>(options: Options<PostApiV1ApplicationsActionByNameData, ThrowOnError>) => (options.client ?? client).post<PostApiV1ApplicationsActionByNameResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/applications/action/{name}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n});\n\nexport const getApiV1Appprofile = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1AppprofileData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1AppprofileResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/appprofile',\n ...options\n});\n\nexport const postApiV1Appprofile = <ThrowOnError extends boolean = false>(options?: Options<PostApiV1AppprofileData, ThrowOnError>) => (options?.client ?? client).post<PostApiV1AppprofileResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/appprofile',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers\n }\n});\n\nexport const deleteApiV1AppprofileById = <ThrowOnError extends boolean = false>(options: Options<DeleteApiV1AppprofileByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteApiV1AppprofileByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/appprofile/{id}',\n ...options\n});\n\nexport const getApiV1AppprofileById = <ThrowOnError extends boolean = false>(options: Options<GetApiV1AppprofileByIdData, ThrowOnError>) => (options.client ?? client).get<GetApiV1AppprofileByIdResponses, GetApiV1AppprofileByIdErrors, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/appprofile/{id}',\n ...options\n});\n\nexport const putApiV1AppprofileById = <ThrowOnError extends boolean = false>(options: Options<PutApiV1AppprofileByIdData, ThrowOnError>) => (options.client ?? client).put<PutApiV1AppprofileByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/appprofile/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n});\n\nexport const getApiV1AppprofileSchema = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1AppprofileSchemaData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1AppprofileSchemaResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/appprofile/schema',\n ...options\n});\n\nexport const getLogin = <ThrowOnError extends boolean = false>(options?: Options<GetLoginData, ThrowOnError>) => (options?.client ?? client).get<GetLoginResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/login',\n ...options\n});\n\nexport const postLogin = <ThrowOnError extends boolean = false>(options?: Options<PostLoginData, ThrowOnError>) => (options?.client ?? client).post<PostLoginResponses, unknown, ThrowOnError>({\n ...formDataBodySerializer,\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/login',\n ...options,\n headers: {\n 'Content-Type': null,\n ...options?.headers\n }\n});\n\nexport const getLogout = <ThrowOnError extends boolean = false>(options?: Options<GetLogoutData, ThrowOnError>) => (options?.client ?? client).get<GetLogoutResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/logout',\n ...options\n});\n\nexport const getApiV1SystemBackup = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1SystemBackupData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1SystemBackupResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/system/backup',\n ...options\n});\n\nexport const deleteApiV1SystemBackupById = <ThrowOnError extends boolean = false>(options: Options<DeleteApiV1SystemBackupByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteApiV1SystemBackupByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/system/backup/{id}',\n ...options\n});\n\nexport const postApiV1SystemBackupRestoreById = <ThrowOnError extends boolean = false>(options: Options<PostApiV1SystemBackupRestoreByIdData, ThrowOnError>) => (options.client ?? client).post<PostApiV1SystemBackupRestoreByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/system/backup/restore/{id}',\n ...options\n});\n\nexport const postApiV1SystemBackupRestoreUpload = <ThrowOnError extends boolean = false>(options?: Options<PostApiV1SystemBackupRestoreUploadData, ThrowOnError>) => (options?.client ?? client).post<PostApiV1SystemBackupRestoreUploadResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/system/backup/restore/upload',\n ...options\n});\n\nexport const deleteApiV1CommandById = <ThrowOnError extends boolean = false>(options: Options<DeleteApiV1CommandByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteApiV1CommandByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/command/{id}',\n ...options\n});\n\nexport const getApiV1CommandById = <ThrowOnError extends boolean = false>(options: Options<GetApiV1CommandByIdData, ThrowOnError>) => (options.client ?? client).get<GetApiV1CommandByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/command/{id}',\n ...options\n});\n\nexport const getApiV1Command = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1CommandData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1CommandResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/command',\n ...options\n});\n\nexport const postApiV1Command = <ThrowOnError extends boolean = false>(options?: Options<PostApiV1CommandData, ThrowOnError>) => (options?.client ?? client).post<PostApiV1CommandResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/command',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers\n }\n});\n\nexport const deleteApiV1CustomfilterById = <ThrowOnError extends boolean = false>(options: Options<DeleteApiV1CustomfilterByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteApiV1CustomfilterByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/customfilter/{id}',\n ...options\n});\n\nexport const getApiV1CustomfilterById = <ThrowOnError extends boolean = false>(options: Options<GetApiV1CustomfilterByIdData, ThrowOnError>) => (options.client ?? client).get<GetApiV1CustomfilterByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/customfilter/{id}',\n ...options\n});\n\nexport const putApiV1CustomfilterById = <ThrowOnError extends boolean = false>(options: Options<PutApiV1CustomfilterByIdData, ThrowOnError>) => (options.client ?? client).put<PutApiV1CustomfilterByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/customfilter/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n});\n\nexport const getApiV1Customfilter = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1CustomfilterData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1CustomfilterResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/customfilter',\n ...options\n});\n\nexport const postApiV1Customfilter = <ThrowOnError extends boolean = false>(options?: Options<PostApiV1CustomfilterData, ThrowOnError>) => (options?.client ?? client).post<PostApiV1CustomfilterResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/customfilter',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers\n }\n});\n\nexport const getApiV1ConfigDevelopmentById = <ThrowOnError extends boolean = false>(options: Options<GetApiV1ConfigDevelopmentByIdData, ThrowOnError>) => (options.client ?? client).get<GetApiV1ConfigDevelopmentByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/config/development/{id}',\n ...options\n});\n\nexport const putApiV1ConfigDevelopmentById = <ThrowOnError extends boolean = false>(options: Options<PutApiV1ConfigDevelopmentByIdData, ThrowOnError>) => (options.client ?? client).put<PutApiV1ConfigDevelopmentByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/config/development/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n});\n\nexport const getApiV1ConfigDevelopment = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1ConfigDevelopmentData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1ConfigDevelopmentResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/config/development',\n ...options\n});\n\nexport const deleteApiV1DownloadclientById = <ThrowOnError extends boolean = false>(options: Options<DeleteApiV1DownloadclientByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteApiV1DownloadclientByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/downloadclient/{id}',\n ...options\n});\n\nexport const getApiV1DownloadclientById = <ThrowOnError extends boolean = false>(options: Options<GetApiV1DownloadclientByIdData, ThrowOnError>) => (options.client ?? client).get<GetApiV1DownloadclientByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/downloadclient/{id}',\n ...options\n});\n\nexport const putApiV1DownloadclientById = <ThrowOnError extends boolean = false>(options: Options<PutApiV1DownloadclientByIdData, ThrowOnError>) => (options.client ?? client).put<PutApiV1DownloadclientByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/downloadclient/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n});\n\nexport const getApiV1Downloadclient = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1DownloadclientData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1DownloadclientResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/downloadclient',\n ...options\n});\n\nexport const postApiV1Downloadclient = <ThrowOnError extends boolean = false>(options?: Options<PostApiV1DownloadclientData, ThrowOnError>) => (options?.client ?? client).post<PostApiV1DownloadclientResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/downloadclient',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers\n }\n});\n\nexport const deleteApiV1DownloadclientBulk = <ThrowOnError extends boolean = false>(options?: Options<DeleteApiV1DownloadclientBulkData, ThrowOnError>) => (options?.client ?? client).delete<DeleteApiV1DownloadclientBulkResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/downloadclient/bulk',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers\n }\n});\n\nexport const putApiV1DownloadclientBulk = <ThrowOnError extends boolean = false>(options?: Options<PutApiV1DownloadclientBulkData, ThrowOnError>) => (options?.client ?? client).put<PutApiV1DownloadclientBulkResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/downloadclient/bulk',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers\n }\n});\n\nexport const getApiV1DownloadclientSchema = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1DownloadclientSchemaData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1DownloadclientSchemaResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/downloadclient/schema',\n ...options\n});\n\nexport const postApiV1DownloadclientTest = <ThrowOnError extends boolean = false>(options?: Options<PostApiV1DownloadclientTestData, ThrowOnError>) => (options?.client ?? client).post<PostApiV1DownloadclientTestResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/downloadclient/test',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers\n }\n});\n\nexport const postApiV1DownloadclientTestall = <ThrowOnError extends boolean = false>(options?: Options<PostApiV1DownloadclientTestallData, ThrowOnError>) => (options?.client ?? client).post<PostApiV1DownloadclientTestallResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/downloadclient/testall',\n ...options\n});\n\nexport const postApiV1DownloadclientActionByName = <ThrowOnError extends boolean = false>(options: Options<PostApiV1DownloadclientActionByNameData, ThrowOnError>) => (options.client ?? client).post<PostApiV1DownloadclientActionByNameResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/downloadclient/action/{name}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n});\n\nexport const getApiV1ConfigDownloadclientById = <ThrowOnError extends boolean = false>(options: Options<GetApiV1ConfigDownloadclientByIdData, ThrowOnError>) => (options.client ?? client).get<GetApiV1ConfigDownloadclientByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/config/downloadclient/{id}',\n ...options\n});\n\nexport const putApiV1ConfigDownloadclientById = <ThrowOnError extends boolean = false>(options: Options<PutApiV1ConfigDownloadclientByIdData, ThrowOnError>) => (options.client ?? client).put<PutApiV1ConfigDownloadclientByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/config/downloadclient/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n});\n\nexport const getApiV1ConfigDownloadclient = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1ConfigDownloadclientData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1ConfigDownloadclientResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/config/downloadclient',\n ...options\n});\n\nexport const getApiV1Filesystem = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1FilesystemData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1FilesystemResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/filesystem',\n ...options\n});\n\nexport const getApiV1FilesystemType = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1FilesystemTypeData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1FilesystemTypeResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/filesystem/type',\n ...options\n});\n\nexport const getApiV1Health = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1HealthData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1HealthResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/health',\n ...options\n});\n\nexport const getApiV1History = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1HistoryData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1HistoryResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/history',\n ...options\n});\n\nexport const getApiV1HistorySince = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1HistorySinceData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1HistorySinceResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/history/since',\n ...options\n});\n\nexport const getApiV1HistoryIndexer = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1HistoryIndexerData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1HistoryIndexerResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/history/indexer',\n ...options\n});\n\nexport const getApiV1ConfigHostById = <ThrowOnError extends boolean = false>(options: Options<GetApiV1ConfigHostByIdData, ThrowOnError>) => (options.client ?? client).get<GetApiV1ConfigHostByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/config/host/{id}',\n ...options\n});\n\nexport const putApiV1ConfigHostById = <ThrowOnError extends boolean = false>(options: Options<PutApiV1ConfigHostByIdData, ThrowOnError>) => (options.client ?? client).put<PutApiV1ConfigHostByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/config/host/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n});\n\nexport const getApiV1ConfigHost = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1ConfigHostData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1ConfigHostResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/config/host',\n ...options\n});\n\nexport const deleteApiV1IndexerById = <ThrowOnError extends boolean = false>(options: Options<DeleteApiV1IndexerByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteApiV1IndexerByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/indexer/{id}',\n ...options\n});\n\nexport const getApiV1IndexerById = <ThrowOnError extends boolean = false>(options: Options<GetApiV1IndexerByIdData, ThrowOnError>) => (options.client ?? client).get<GetApiV1IndexerByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/indexer/{id}',\n ...options\n});\n\nexport const putApiV1IndexerById = <ThrowOnError extends boolean = false>(options: Options<PutApiV1IndexerByIdData, ThrowOnError>) => (options.client ?? client).put<PutApiV1IndexerByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/indexer/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n});\n\nexport const getApiV1Indexer = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1IndexerData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1IndexerResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/indexer',\n ...options\n});\n\nexport const postApiV1Indexer = <ThrowOnError extends boolean = false>(options?: Options<PostApiV1IndexerData, ThrowOnError>) => (options?.client ?? client).post<PostApiV1IndexerResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/indexer',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers\n }\n});\n\nexport const deleteApiV1IndexerBulk = <ThrowOnError extends boolean = false>(options?: Options<DeleteApiV1IndexerBulkData, ThrowOnError>) => (options?.client ?? client).delete<DeleteApiV1IndexerBulkResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/indexer/bulk',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers\n }\n});\n\nexport const putApiV1IndexerBulk = <ThrowOnError extends boolean = false>(options?: Options<PutApiV1IndexerBulkData, ThrowOnError>) => (options?.client ?? client).put<PutApiV1IndexerBulkResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/indexer/bulk',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers\n }\n});\n\nexport const getApiV1IndexerSchema = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1IndexerSchemaData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1IndexerSchemaResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/indexer/schema',\n ...options\n});\n\nexport const postApiV1IndexerTest = <ThrowOnError extends boolean = false>(options?: Options<PostApiV1IndexerTestData, ThrowOnError>) => (options?.client ?? client).post<PostApiV1IndexerTestResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/indexer/test',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers\n }\n});\n\nexport const postApiV1IndexerTestall = <ThrowOnError extends boolean = false>(options?: Options<PostApiV1IndexerTestallData, ThrowOnError>) => (options?.client ?? client).post<PostApiV1IndexerTestallResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/indexer/testall',\n ...options\n});\n\nexport const postApiV1IndexerActionByName = <ThrowOnError extends boolean = false>(options: Options<PostApiV1IndexerActionByNameData, ThrowOnError>) => (options.client ?? client).post<PostApiV1IndexerActionByNameResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/indexer/action/{name}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n});\n\nexport const getApiV1IndexerCategories = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1IndexerCategoriesData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1IndexerCategoriesResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/indexer/categories',\n ...options\n});\n\nexport const deleteApiV1IndexerproxyById = <ThrowOnError extends boolean = false>(options: Options<DeleteApiV1IndexerproxyByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteApiV1IndexerproxyByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/indexerproxy/{id}',\n ...options\n});\n\nexport const getApiV1IndexerproxyById = <ThrowOnError extends boolean = false>(options: Options<GetApiV1IndexerproxyByIdData, ThrowOnError>) => (options.client ?? client).get<GetApiV1IndexerproxyByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/indexerproxy/{id}',\n ...options\n});\n\nexport const putApiV1IndexerproxyById = <ThrowOnError extends boolean = false>(options: Options<PutApiV1IndexerproxyByIdData, ThrowOnError>) => (options.client ?? client).put<PutApiV1IndexerproxyByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/indexerproxy/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n});\n\nexport const getApiV1Indexerproxy = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1IndexerproxyData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1IndexerproxyResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/indexerproxy',\n ...options\n});\n\nexport const postApiV1Indexerproxy = <ThrowOnError extends boolean = false>(options?: Options<PostApiV1IndexerproxyData, ThrowOnError>) => (options?.client ?? client).post<PostApiV1IndexerproxyResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/indexerproxy',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers\n }\n});\n\nexport const getApiV1IndexerproxySchema = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1IndexerproxySchemaData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1IndexerproxySchemaResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/indexerproxy/schema',\n ...options\n});\n\nexport const postApiV1IndexerproxyTest = <ThrowOnError extends boolean = false>(options?: Options<PostApiV1IndexerproxyTestData, ThrowOnError>) => (options?.client ?? client).post<PostApiV1IndexerproxyTestResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/indexerproxy/test',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers\n }\n});\n\nexport const postApiV1IndexerproxyTestall = <ThrowOnError extends boolean = false>(options?: Options<PostApiV1IndexerproxyTestallData, ThrowOnError>) => (options?.client ?? client).post<PostApiV1IndexerproxyTestallResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/indexerproxy/testall',\n ...options\n});\n\nexport const postApiV1IndexerproxyActionByName = <ThrowOnError extends boolean = false>(options: Options<PostApiV1IndexerproxyActionByNameData, ThrowOnError>) => (options.client ?? client).post<PostApiV1IndexerproxyActionByNameResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/indexerproxy/action/{name}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n});\n\nexport const getApiV1Indexerstats = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1IndexerstatsData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1IndexerstatsResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/indexerstats',\n ...options\n});\n\nexport const getApiV1Indexerstatus = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1IndexerstatusData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1IndexerstatusResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/indexerstatus',\n ...options\n});\n\nexport const getApiV1Localization = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1LocalizationData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1LocalizationResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/localization',\n ...options\n});\n\nexport const getApiV1LocalizationOptions = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1LocalizationOptionsData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1LocalizationOptionsResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/localization/options',\n ...options\n});\n\nexport const getApiV1Log = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1LogData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1LogResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/log',\n ...options\n});\n\nexport const getApiV1LogFile = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1LogFileData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1LogFileResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/log/file',\n ...options\n});\n\nexport const getApiV1LogFileByFilename = <ThrowOnError extends boolean = false>(options: Options<GetApiV1LogFileByFilenameData, ThrowOnError>) => (options.client ?? client).get<GetApiV1LogFileByFilenameResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/log/file/{filename}',\n ...options\n});\n\nexport const getApiV1IndexerByIdNewznab = <ThrowOnError extends boolean = false>(options: Options<GetApiV1IndexerByIdNewznabData, ThrowOnError>) => (options.client ?? client).get<GetApiV1IndexerByIdNewznabResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/indexer/{id}/newznab',\n ...options\n});\n\nexport const getByIdApi = <ThrowOnError extends boolean = false>(options: Options<GetByIdApiData, ThrowOnError>) => (options.client ?? client).get<GetByIdApiResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/{id}/api',\n ...options\n});\n\nexport const getApiV1IndexerByIdDownload = <ThrowOnError extends boolean = false>(options: Options<GetApiV1IndexerByIdDownloadData, ThrowOnError>) => (options.client ?? client).get<GetApiV1IndexerByIdDownloadResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/indexer/{id}/download',\n ...options\n});\n\nexport const getByIdDownload = <ThrowOnError extends boolean = false>(options: Options<GetByIdDownloadData, ThrowOnError>) => (options.client ?? client).get<GetByIdDownloadResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/{id}/download',\n ...options\n});\n\nexport const deleteApiV1NotificationById = <ThrowOnError extends boolean = false>(options: Options<DeleteApiV1NotificationByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteApiV1NotificationByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/notification/{id}',\n ...options\n});\n\nexport const getApiV1NotificationById = <ThrowOnError extends boolean = false>(options: Options<GetApiV1NotificationByIdData, ThrowOnError>) => (options.client ?? client).get<GetApiV1NotificationByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/notification/{id}',\n ...options\n});\n\nexport const putApiV1NotificationById = <ThrowOnError extends boolean = false>(options: Options<PutApiV1NotificationByIdData, ThrowOnError>) => (options.client ?? client).put<PutApiV1NotificationByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/notification/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n});\n\nexport const getApiV1Notification = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1NotificationData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1NotificationResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/notification',\n ...options\n});\n\nexport const postApiV1Notification = <ThrowOnError extends boolean = false>(options?: Options<PostApiV1NotificationData, ThrowOnError>) => (options?.client ?? client).post<PostApiV1NotificationResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/notification',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers\n }\n});\n\nexport const getApiV1NotificationSchema = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1NotificationSchemaData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1NotificationSchemaResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/notification/schema',\n ...options\n});\n\nexport const postApiV1NotificationTest = <ThrowOnError extends boolean = false>(options?: Options<PostApiV1NotificationTestData, ThrowOnError>) => (options?.client ?? client).post<PostApiV1NotificationTestResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/notification/test',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers\n }\n});\n\nexport const postApiV1NotificationTestall = <ThrowOnError extends boolean = false>(options?: Options<PostApiV1NotificationTestallData, ThrowOnError>) => (options?.client ?? client).post<PostApiV1NotificationTestallResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/notification/testall',\n ...options\n});\n\nexport const postApiV1NotificationActionByName = <ThrowOnError extends boolean = false>(options: Options<PostApiV1NotificationActionByNameData, ThrowOnError>) => (options.client ?? client).post<PostApiV1NotificationActionByNameResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/notification/action/{name}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n});\n\nexport const getPing = <ThrowOnError extends boolean = false>(options?: Options<GetPingData, ThrowOnError>) => (options?.client ?? client).get<GetPingResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/ping',\n ...options\n});\n\nexport const headPing = <ThrowOnError extends boolean = false>(options?: Options<HeadPingData, ThrowOnError>) => (options?.client ?? client).head<HeadPingResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/ping',\n ...options\n});\n\nexport const getApiV1Search = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1SearchData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1SearchResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/search',\n ...options\n});\n\nexport const postApiV1Search = <ThrowOnError extends boolean = false>(options?: Options<PostApiV1SearchData, ThrowOnError>) => (options?.client ?? client).post<PostApiV1SearchResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/search',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers\n }\n});\n\nexport const postApiV1SearchBulk = <ThrowOnError extends boolean = false>(options?: Options<PostApiV1SearchBulkData, ThrowOnError>) => (options?.client ?? client).post<PostApiV1SearchBulkResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/search/bulk',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers\n }\n});\n\nexport const getContentByPath = <ThrowOnError extends boolean = false>(options: Options<GetContentByPathData, ThrowOnError>) => (options.client ?? client).get<GetContentByPathResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/content/{path}',\n ...options\n});\n\nexport const get = <ThrowOnError extends boolean = false>(options: Options<GetData, ThrowOnError>) => (options.client ?? client).get<GetResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/',\n ...options\n});\n\nexport const getByPath = <ThrowOnError extends boolean = false>(options: Options<GetByPathData, ThrowOnError>) => (options.client ?? client).get<GetByPathResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/{path}',\n ...options\n});\n\nexport const getApiV1SystemStatus = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1SystemStatusData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1SystemStatusResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/system/status',\n ...options\n});\n\nexport const getApiV1SystemRoutes = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1SystemRoutesData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1SystemRoutesResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/system/routes',\n ...options\n});\n\nexport const getApiV1SystemRoutesDuplicate = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1SystemRoutesDuplicateData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1SystemRoutesDuplicateResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/system/routes/duplicate',\n ...options\n});\n\nexport const postApiV1SystemShutdown = <ThrowOnError extends boolean = false>(options?: Options<PostApiV1SystemShutdownData, ThrowOnError>) => (options?.client ?? client).post<PostApiV1SystemShutdownResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/system/shutdown',\n ...options\n});\n\nexport const postApiV1SystemRestart = <ThrowOnError extends boolean = false>(options?: Options<PostApiV1SystemRestartData, ThrowOnError>) => (options?.client ?? client).post<PostApiV1SystemRestartResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/system/restart',\n ...options\n});\n\nexport const deleteApiV1TagById = <ThrowOnError extends boolean = false>(options: Options<DeleteApiV1TagByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteApiV1TagByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/tag/{id}',\n ...options\n});\n\nexport const getApiV1TagById = <ThrowOnError extends boolean = false>(options: Options<GetApiV1TagByIdData, ThrowOnError>) => (options.client ?? client).get<GetApiV1TagByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/tag/{id}',\n ...options\n});\n\nexport const putApiV1TagById = <ThrowOnError extends boolean = false>(options: Options<PutApiV1TagByIdData, ThrowOnError>) => (options.client ?? client).put<PutApiV1TagByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/tag/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n});\n\nexport const getApiV1Tag = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1TagData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1TagResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/tag',\n ...options\n});\n\nexport const postApiV1Tag = <ThrowOnError extends boolean = false>(options?: Options<PostApiV1TagData, ThrowOnError>) => (options?.client ?? client).post<PostApiV1TagResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/tag',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers\n }\n});\n\nexport const getApiV1TagDetailById = <ThrowOnError extends boolean = false>(options: Options<GetApiV1TagDetailByIdData, ThrowOnError>) => (options.client ?? client).get<GetApiV1TagDetailByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/tag/detail/{id}',\n ...options\n});\n\nexport const getApiV1TagDetail = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1TagDetailData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1TagDetailResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/tag/detail',\n ...options\n});\n\nexport const getApiV1SystemTask = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1SystemTaskData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1SystemTaskResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/system/task',\n ...options\n});\n\nexport const getApiV1SystemTaskById = <ThrowOnError extends boolean = false>(options: Options<GetApiV1SystemTaskByIdData, ThrowOnError>) => (options.client ?? client).get<GetApiV1SystemTaskByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/system/task/{id}',\n ...options\n});\n\nexport const getApiV1ConfigUiById = <ThrowOnError extends boolean = false>(options: Options<GetApiV1ConfigUiByIdData, ThrowOnError>) => (options.client ?? client).get<GetApiV1ConfigUiByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/config/ui/{id}',\n ...options\n});\n\nexport const putApiV1ConfigUiById = <ThrowOnError extends boolean = false>(options: Options<PutApiV1ConfigUiByIdData, ThrowOnError>) => (options.client ?? client).put<PutApiV1ConfigUiByIdResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/config/ui/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n});\n\nexport const getApiV1ConfigUi = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1ConfigUiData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1ConfigUiResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/config/ui',\n ...options\n});\n\nexport const getApiV1Update = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1UpdateData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1UpdateResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/update',\n ...options\n});\n\nexport const getApiV1LogFileUpdate = <ThrowOnError extends boolean = false>(options?: Options<GetApiV1LogFileUpdateData, ThrowOnError>) => (options?.client ?? client).get<GetApiV1LogFileUpdateResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/log/file/update',\n ...options\n});\n\nexport const getApiV1LogFileUpdateByFilename = <ThrowOnError extends boolean = false>(options: Options<GetApiV1LogFileUpdateByFilenameData, ThrowOnError>) => (options.client ?? client).get<GetApiV1LogFileUpdateByFilenameResponses, unknown, ThrowOnError>({\n security: [{ name: 'X-Api-Key', type: 'apiKey' }, {\n in: 'query',\n name: 'apikey',\n type: 'apiKey'\n }],\n url: '/api/v1/log/file/update/{filename}',\n ...options\n});\n",
|
|
18
|
+
"import { ServarrBaseClient, type ServarrOps } from '../clients/base';\nimport type { ServarrClientConfig } from '../core/types';\nimport { client as prowlarrClient } from '../generated/prowlarr/client.gen';\nimport * as ProwlarrApi from '../generated/prowlarr/index';\nimport type {\n ApplicationResource,\n DevelopmentConfigResource,\n} from '../generated/prowlarr/types.gen';\n\n/**\n * Prowlarr API client for indexer management\n *\n * @example\n * ```typescript\n * const prowlarr = new ProwlarrClient({\n * baseUrl: 'http://localhost:9696',\n * apiKey: 'your-api-key'\n * });\n *\n * const indexers = await prowlarr.getIndexers();\n * ```\n */\nexport class ProwlarrClient extends ServarrBaseClient {\n protected readonly ops: ServarrOps = {\n // System\n getSystemStatus: ProwlarrApi.getApiV1SystemStatus,\n getHealth: ProwlarrApi.getApiV1Health,\n\n // Tags\n getTags: ProwlarrApi.getApiV1Tag,\n createTag: ProwlarrApi.postApiV1Tag,\n getTagById: ProwlarrApi.getApiV1TagById,\n updateTagById: ProwlarrApi.putApiV1TagById,\n deleteTagById: ProwlarrApi.deleteApiV1TagById,\n getTagDetails: ProwlarrApi.getApiV1TagDetail,\n getTagDetailById: ProwlarrApi.getApiV1TagDetailById,\n\n // Notifications\n getNotifications: ProwlarrApi.getApiV1Notification,\n createNotification: ProwlarrApi.postApiV1Notification,\n getNotificationById: ProwlarrApi.getApiV1NotificationById,\n updateNotificationById: ProwlarrApi.putApiV1NotificationById,\n deleteNotificationById: ProwlarrApi.deleteApiV1NotificationById,\n getNotificationSchema: ProwlarrApi.getApiV1NotificationSchema,\n testNotification: ProwlarrApi.postApiV1NotificationTest,\n testAllNotifications: ProwlarrApi.postApiV1NotificationTestall,\n\n // Download Clients\n getDownloadClients: ProwlarrApi.getApiV1Downloadclient,\n createDownloadClient: ProwlarrApi.postApiV1Downloadclient,\n getDownloadClientById: ProwlarrApi.getApiV1DownloadclientById,\n updateDownloadClientById: ProwlarrApi.putApiV1DownloadclientById,\n deleteDownloadClientById: ProwlarrApi.deleteApiV1DownloadclientById,\n getDownloadClientSchema: ProwlarrApi.getApiV1DownloadclientSchema,\n testDownloadClient: ProwlarrApi.postApiV1DownloadclientTest,\n testAllDownloadClients: ProwlarrApi.postApiV1DownloadclientTestall,\n\n // Indexers\n getIndexers: ProwlarrApi.getApiV1Indexer,\n createIndexer: ProwlarrApi.postApiV1Indexer,\n getIndexerById: ProwlarrApi.getApiV1IndexerById,\n updateIndexerById: ProwlarrApi.putApiV1IndexerById,\n deleteIndexerById: ProwlarrApi.deleteApiV1IndexerById,\n getIndexerSchema: ProwlarrApi.getApiV1IndexerSchema,\n testIndexer: ProwlarrApi.postApiV1IndexerTest,\n testAllIndexers: ProwlarrApi.postApiV1IndexerTestall,\n\n // System Admin\n restartSystem: ProwlarrApi.postApiV1SystemRestart,\n shutdownSystem: ProwlarrApi.postApiV1SystemShutdown,\n getBackups: ProwlarrApi.getApiV1SystemBackup,\n deleteBackup: ProwlarrApi.deleteApiV1SystemBackupById,\n restoreBackup: ProwlarrApi.postApiV1SystemBackupRestoreById,\n uploadBackup: ProwlarrApi.postApiV1SystemBackupRestoreUpload,\n getLogFiles: ProwlarrApi.getApiV1LogFile,\n getLogFileByName: ProwlarrApi.getApiV1LogFileByFilename,\n\n // Commands\n runCommand: ProwlarrApi.postApiV1Command,\n getCommands: ProwlarrApi.getApiV1Command,\n\n // Host Config\n getHostConfig: ProwlarrApi.getApiV1ConfigHost,\n getHostConfigById: ProwlarrApi.getApiV1ConfigHostById,\n updateHostConfig: ProwlarrApi.putApiV1ConfigHostById,\n\n // UI Config\n getUiConfig: ProwlarrApi.getApiV1ConfigUi,\n getUiConfigById: ProwlarrApi.getApiV1ConfigUiById,\n updateUiConfig: ProwlarrApi.putApiV1ConfigUiById,\n };\n\n constructor(config: ServarrClientConfig) {\n super(config, prowlarrClient);\n }\n\n // Prowlarr-specific APIs\n\n // Indexer Stats APIs\n\n /**\n * Get indexer statistics\n */\n async getIndexerStats() {\n return ProwlarrApi.getApiV1Indexerstats();\n }\n\n // Search APIs\n\n /**\n * Search across all or specific indexers\n */\n async search(query: string, indexerIds?: number[]) {\n return ProwlarrApi.getApiV1Search({\n query: {\n query,\n ...(indexerIds && { indexerIds }),\n },\n });\n }\n\n // Application APIs\n\n /**\n * Get all applications\n */\n async getApplications() {\n return ProwlarrApi.getApiV1Applications();\n }\n\n /**\n * Get a specific application by ID\n */\n async getApplication(id: number) {\n return ProwlarrApi.getApiV1ApplicationsById({ path: { id } });\n }\n\n /**\n * Add a new application\n */\n async addApplication(application: ApplicationResource) {\n return ProwlarrApi.postApiV1Applications({ body: application });\n }\n\n /**\n * Update an existing application\n */\n async updateApplication(id: number, application: ApplicationResource) {\n return ProwlarrApi.putApiV1ApplicationsById({ path: { id: String(id) }, body: application });\n }\n\n /**\n * Delete an application\n */\n async deleteApplication(id: number) {\n return ProwlarrApi.deleteApiV1ApplicationsById({ path: { id } });\n }\n\n /**\n * Test an application configuration\n */\n async testApplication(application: ApplicationResource) {\n return ProwlarrApi.postApiV1ApplicationsTest({ body: application });\n }\n\n /**\n * Test all applications\n */\n async testAllApplications() {\n return ProwlarrApi.postApiV1ApplicationsTestall();\n }\n\n /**\n * Get application schema for available application types\n */\n async getApplicationSchema() {\n return ProwlarrApi.getApiV1ApplicationsSchema();\n }\n\n // Development Configuration APIs\n\n /**\n * Get development configuration settings\n */\n async getDevelopmentConfig() {\n return ProwlarrApi.getApiV1ConfigDevelopment();\n }\n\n /**\n * Get development configuration by ID\n */\n async getDevelopmentConfigById(id: number) {\n return ProwlarrApi.getApiV1ConfigDevelopmentById({ path: { id } });\n }\n\n /**\n * Update development configuration\n */\n async updateDevelopmentConfig(id: number, config: DevelopmentConfigResource) {\n return ProwlarrApi.putApiV1ConfigDevelopmentById({ path: { id: String(id) }, body: config });\n }\n\n // System Logs API\n\n /**\n * Get system logs\n */\n async getSystemLogs() {\n return ProwlarrApi.getApiV1Log();\n }\n}\n\n// Re-export types for external consumption\nexport * from './prowlarr-types.js';\n"
|
|
19
|
+
],
|
|
20
|
+
"mappings": ";AAAO,MAAM,mBAAmB,MAAM;AAAA,EAG3B;AAAA,EACA;AAAA,EACA;AAAA,EAJT,WAAW,CACT,SACO,MACA,YACA,SACP;AAAA,IACA,MAAM,OAAO;AAAA,IAJN;AAAA,IACA;AAAA,IACA;AAAA,IAGP,KAAK,OAAO;AAAA;AAEhB;AAAA;AAEO,MAAM,oBAAoB,WAAW;AAAA,EAC1C,WAAW,CAAC,UAAU,8BAA8B;AAAA,IAClD,MAAM,SAAS,iBAAiB,GAAG;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C,aAAkC;AAAA,IACrD,OAAmB,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAAA;AAAA,OAM1D,kBAAiB,CAAC,IAAY,aAAkC;AAAA,IACpE,OAAmB,yBAAyB,EAAE,MAAM,EAAE,IAAI,OAAO,EAAE,EAAE,GAAG,MAAM,YAAY,CAAC;AAAA;AAAA,OAMvF,kBAAiB,CAAC,IAAY;AAAA,IAClC,OAAmB,4BAA4B,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;AAAA;AAAA,OAM3D,gBAAe,CAAC,aAAkC;AAAA,IACtD,OAAmB,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAAA;AAAA,OAM9D,oBAAmB,GAAG;AAAA,IAC1B,OAAmB,6BAA6B;AAAA;AAAA,OAM5C,qBAAoB,GAAG;AAAA,IAC3B,OAAmB,2BAA2B;AAAA;AAAA,OAQ1C,qBAAoB,GAAG;AAAA,IAC3B,OAAmB,0BAA0B;AAAA;AAAA,OAMzC,yBAAwB,CAAC,IAAY;AAAA,IACzC,OAAmB,8BAA8B,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;AAAA;AAAA,OAM7D,wBAAuB,CAAC,IAAY,QAAmC;AAAA,IAC3E,OAAmB,8BAA8B,EAAE,MAAM,EAAE,IAAI,OAAO,EAAE,EAAE,GAAG,MAAM,OAAO,CAAC;AAAA;AAAA,OAQvF,cAAa,GAAG;AAAA,IACpB,OAAmB,YAAY;AAAA;AAEnC;",
|
|
21
|
+
"debugId": "47AFE1060E3BEA2E64756E2164756E21",
|
|
22
|
+
"names": []
|
|
23
|
+
}
|
|
@@ -6,8 +6,10 @@ export declare class QBittorrentClient {
|
|
|
6
6
|
private username;
|
|
7
7
|
private password;
|
|
8
8
|
private sid;
|
|
9
|
-
private
|
|
9
|
+
private cookieName;
|
|
10
|
+
private fetch;
|
|
10
11
|
constructor(config: QBittorrentClientConfig);
|
|
12
|
+
private fetchWithCookieName;
|
|
11
13
|
private ensureAuth;
|
|
12
14
|
private login;
|
|
13
15
|
getAppVersion(): Promise<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qbittorrent.d.ts","sourceRoot":"","sources":["../../src/clients/qbittorrent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"qbittorrent.d.ts","sourceRoot":"","sources":["../../src/clients/qbittorrent.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAG7D,OAAO,KAAK,EACV,WAAW,EACX,oBAAoB,EACpB,YAAY,EACb,MAAM,oCAAoC,CAAC;AAE5C,KAAK,aAAa,GAAG,WAAW,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;AAoBzE,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,GAAG,CAAuB;IAIlC,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,KAAK,CAA0B;gBAE3B,MAAM,EAAE,uBAAuB;YAsB7B,mBAAmB;YA8BnB,UAAU;YAOV,KAAK;IAoCb,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC;IAKhC,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC;IAKhC,eAAe;;;IAOf,eAAe,IAAI,OAAO,CAAC,YAAY,CAAC;IAOxC,WAAW,CAAC,MAAM,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAS3D,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAM5C,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAM7C,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,UAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;CAKzE;AAGD,cAAc,wBAAwB,CAAC"}
|