ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.596.0

This commit is contained in:
speakeasybot
2025-08-02 00:33:32 +00:00
parent 8dbe73c1db
commit 83420d4364
271 changed files with 4902 additions and 3553 deletions

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { ApiInfoResource } from "prowlarr";
import { ApiInfoResource } from "prowlarr/models";
let value: ApiInfoResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { ApplicationBulkResource } from "prowlarr";
import { ApplicationBulkResource } from "prowlarr/models";
let value: ApplicationBulkResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { ApplicationResource } from "prowlarr";
import { ApplicationResource } from "prowlarr/models";
let value: ApplicationResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { ApplicationSyncLevel } from "prowlarr";
import { ApplicationSyncLevel } from "prowlarr/models";
let value: ApplicationSyncLevel = "addOnly";
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { ApplyTags } from "prowlarr";
import { ApplyTags } from "prowlarr/models";
let value: ApplyTags = "replace";
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { AppProfileResource } from "prowlarr";
import { AppProfileResource } from "prowlarr/models";
let value: AppProfileResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { AuthenticationRequiredType } from "prowlarr";
import { AuthenticationRequiredType } from "prowlarr/models";
let value: AuthenticationRequiredType = "enabled";
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { AuthenticationType } from "prowlarr";
import { AuthenticationType } from "prowlarr/models";
let value: AuthenticationType = "none";
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { BackupResource } from "prowlarr";
import { BackupResource } from "prowlarr/models";
let value: BackupResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { BackupType } from "prowlarr";
import { BackupType } from "prowlarr/models";
let value: BackupType = "update";
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { BookSearchParam } from "prowlarr";
import { BookSearchParam } from "prowlarr/models";
let value: BookSearchParam = "q";
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { CertificateValidationType } from "prowlarr";
import { CertificateValidationType } from "prowlarr/models";
let value: CertificateValidationType = "enabled";
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { Command } from "prowlarr";
import { Command } from "prowlarr/models";
let value: Command = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { CommandInput } from "prowlarr";
import { CommandInput } from "prowlarr/models";
let value: CommandInput = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { CommandPriority } from "prowlarr";
import { CommandPriority } from "prowlarr/models";
let value: CommandPriority = "high";
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { CommandResource } from "prowlarr";
import { CommandResource } from "prowlarr/models";
let value: CommandResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { CommandResourceInput } from "prowlarr";
import { CommandResourceInput } from "prowlarr/models";
let value: CommandResourceInput = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { CommandStatus } from "prowlarr";
import { CommandStatus } from "prowlarr/models";
let value: CommandStatus = "orphaned";
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { CommandTrigger } from "prowlarr";
import { CommandTrigger } from "prowlarr/models";
let value: CommandTrigger = "unspecified";
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { CustomFilterResource } from "prowlarr";
import { CustomFilterResource } from "prowlarr/models";
let value: CustomFilterResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { DatabaseType } from "prowlarr";
import { DatabaseType } from "prowlarr/models";
let value: DatabaseType = "sqLite";
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { DevelopmentConfigResource } from "prowlarr";
import { DevelopmentConfigResource } from "prowlarr/models";
let value: DevelopmentConfigResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { DownloadClientBulkResource } from "prowlarr";
import { DownloadClientBulkResource } from "prowlarr/models";
let value: DownloadClientBulkResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { DownloadClientCategory } from "prowlarr";
import { DownloadClientCategory } from "prowlarr/models";
let value: DownloadClientCategory = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { DownloadClientConfigResource } from "prowlarr";
import { DownloadClientConfigResource } from "prowlarr/models";
let value: DownloadClientConfigResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { DownloadClientResource } from "prowlarr";
import { DownloadClientResource } from "prowlarr/models";
let value: DownloadClientResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { DownloadProtocol } from "prowlarr";
import { DownloadProtocol } from "prowlarr/models";
let value: DownloadProtocol = "torrent";
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { Field } from "prowlarr";
import { Field } from "prowlarr/models";
let value: Field = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { HealthCheckResult } from "prowlarr";
import { HealthCheckResult } from "prowlarr/models";
let value: HealthCheckResult = "warning";
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { HealthResource } from "prowlarr";
import { HealthResource } from "prowlarr/models";
let value: HealthResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { HistoryEventType } from "prowlarr";
import { HistoryEventType } from "prowlarr/models";
let value: HistoryEventType = "indexerRss";
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { HistoryResource } from "prowlarr";
import { HistoryResource } from "prowlarr/models";
let value: HistoryResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { HistoryResourcePagingResource } from "prowlarr";
import { HistoryResourcePagingResource } from "prowlarr/models";
let value: HistoryResourcePagingResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { HostConfigResource } from "prowlarr";
import { HostConfigResource } from "prowlarr/models";
let value: HostConfigResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { HostStatistics } from "prowlarr";
import { HostStatistics } from "prowlarr/models";
let value: HostStatistics = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { IndexerBulkResource } from "prowlarr";
import { IndexerBulkResource } from "prowlarr/models";
let value: IndexerBulkResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { IndexerCapabilityResource } from "prowlarr";
import { IndexerCapabilityResource } from "prowlarr/models";
let value: IndexerCapabilityResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { IndexerCapabilityResourceInput } from "prowlarr";
import { IndexerCapabilityResourceInput } from "prowlarr/models";
let value: IndexerCapabilityResourceInput = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { IndexerCategory } from "prowlarr";
import { IndexerCategory } from "prowlarr/models";
let value: IndexerCategory = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { IndexerCategoryInput } from "prowlarr";
import { IndexerCategoryInput } from "prowlarr/models";
let value: IndexerCategoryInput = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { IndexerPrivacy } from "prowlarr";
import { IndexerPrivacy } from "prowlarr/models";
let value: IndexerPrivacy = "public";
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { IndexerProxyResource } from "prowlarr";
import { IndexerProxyResource } from "prowlarr/models";
let value: IndexerProxyResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { IndexerResource } from "prowlarr";
import { IndexerResource } from "prowlarr/models";
let value: IndexerResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { IndexerResourceInput } from "prowlarr";
import { IndexerResourceInput } from "prowlarr/models";
let value: IndexerResourceInput = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { IndexerStatistics } from "prowlarr";
import { IndexerStatistics } from "prowlarr/models";
let value: IndexerStatistics = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { IndexerStatsResource } from "prowlarr";
import { IndexerStatsResource } from "prowlarr/models";
let value: IndexerStatsResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { IndexerStatusResource } from "prowlarr";
import { IndexerStatusResource } from "prowlarr/models";
let value: IndexerStatusResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { LocalizationOption } from "prowlarr";
import { LocalizationOption } from "prowlarr/models";
let value: LocalizationOption = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { LogFileResource } from "prowlarr";
import { LogFileResource } from "prowlarr/models";
let value: LogFileResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { LogResource } from "prowlarr";
import { LogResource } from "prowlarr/models";
let value: LogResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { LogResourcePagingResource } from "prowlarr";
import { LogResourcePagingResource } from "prowlarr/models";
let value: LogResourcePagingResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { MovieSearchParam } from "prowlarr";
import { MovieSearchParam } from "prowlarr/models";
let value: MovieSearchParam = "tmdbId";
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { MusicSearchParam } from "prowlarr";
import { MusicSearchParam } from "prowlarr/models";
let value: MusicSearchParam = "album";
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { NotificationResource } from "prowlarr";
import { NotificationResource } from "prowlarr/models";
let value: NotificationResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { PingResource } from "prowlarr";
import { PingResource } from "prowlarr/models";
let value: PingResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { PrivacyLevel } from "prowlarr";
import { PrivacyLevel } from "prowlarr/models";
let value: PrivacyLevel = "apiKey";
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { ProviderMessage } from "prowlarr";
import { ProviderMessage } from "prowlarr/models";
let value: ProviderMessage = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { ProviderMessageType } from "prowlarr";
import { ProviderMessageType } from "prowlarr/models";
let value: ProviderMessageType = "warning";
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { ProxyType } from "prowlarr";
import { ProxyType } from "prowlarr/models";
let value: ProxyType = "http";
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { ReleaseResource } from "prowlarr";
import { ReleaseResource } from "prowlarr/models";
let value: ReleaseResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { ReleaseResourceInput } from "prowlarr";
import { ReleaseResourceInput } from "prowlarr/models";
let value: ReleaseResourceInput = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { RuntimeMode } from "prowlarr";
import { RuntimeMode } from "prowlarr/models";
let value: RuntimeMode = "console";
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { SearchParam } from "prowlarr";
import { SearchParam } from "prowlarr/models";
let value: SearchParam = "q";
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { Security } from "prowlarr";
import { Security } from "prowlarr/models";
let value: Security = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { SelectOption } from "prowlarr";
import { SelectOption } from "prowlarr/models";
let value: SelectOption = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { SortDirection } from "prowlarr";
import { SortDirection } from "prowlarr/models";
let value: SortDirection = "default";
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { SystemResource } from "prowlarr";
import { SystemResource } from "prowlarr/models";
let value: SystemResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { TagDetailsResource } from "prowlarr";
import { TagDetailsResource } from "prowlarr/models";
let value: TagDetailsResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { TagResource } from "prowlarr";
import { TagResource } from "prowlarr/models";
let value: TagResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { TaskResource } from "prowlarr";
import { TaskResource } from "prowlarr/models";
let value: TaskResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { TvSearchParam } from "prowlarr";
import { TvSearchParam } from "prowlarr/models";
let value: TvSearchParam = "tvMazeId";
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { UiConfigResource } from "prowlarr";
import { UiConfigResource } from "prowlarr/models";
let value: UiConfigResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { UpdateChanges } from "prowlarr";
import { UpdateChanges } from "prowlarr/models";
let value: UpdateChanges = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { UpdateMechanism } from "prowlarr";
import { UpdateMechanism } from "prowlarr/models";
let value: UpdateMechanism = "script";
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { UpdateResource } from "prowlarr";
import { UpdateResource } from "prowlarr/models";
let value: UpdateResource = {};
```

View File

@@ -3,7 +3,7 @@
## Example Usage
```typescript
import { UserAgentStatistics } from "prowlarr";
import { UserAgentStatistics } from "prowlarr/models";
let value: UserAgentStatistics = {};
```

View File

@@ -11,6 +11,7 @@
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api" method="get" path="/api" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -23,7 +24,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.apiInfo.getApi();
// Handle the result
console.log(result);
}
@@ -48,15 +48,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await apiInfoGetApi(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("apiInfoGetApi failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();

View File

@@ -21,6 +21,7 @@
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/applications/{id}" method="get" path="/api/v1/applications/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -35,7 +36,6 @@ async function run() {
id: 282902,
});
// Handle the result
console.log(result);
}
@@ -62,15 +62,12 @@ async function run() {
const res = await applicationGetApiV1ApplicationsId(prowlarr, {
id: 282902,
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("applicationGetApiV1ApplicationsId failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -99,6 +96,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="put_/api/v1/applications/{id}" method="put" path="/api/v1/applications/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -113,7 +111,6 @@ async function run() {
id: "<id>",
});
// Handle the result
console.log(result);
}
@@ -140,15 +137,12 @@ async function run() {
const res = await applicationPutApiV1ApplicationsId(prowlarr, {
id: "<id>",
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("applicationPutApiV1ApplicationsId failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -177,6 +171,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="delete_/api/v1/applications/{id}" method="delete" path="/api/v1/applications/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -217,14 +212,12 @@ async function run() {
const res = await applicationDeleteApiV1ApplicationsId(prowlarr, {
id: 915442,
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("applicationDeleteApiV1ApplicationsId failed:", res.error);
}
const { value: result } = res;
}
run();
@@ -253,6 +246,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/applications" method="get" path="/api/v1/applications" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -265,7 +259,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.application.getApiV1Applications();
// Handle the result
console.log(result);
}
@@ -290,15 +283,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await applicationGetApiV1Applications(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("applicationGetApiV1Applications failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -326,6 +316,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="post_/api/v1/applications" method="post" path="/api/v1/applications" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -338,7 +329,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.application.postApiV1Applications({});
// Handle the result
console.log(result);
}
@@ -363,15 +353,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await applicationPostApiV1Applications(prowlarr, {});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("applicationPostApiV1Applications failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -400,6 +387,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="put_/api/v1/applications/bulk" method="put" path="/api/v1/applications/bulk" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -412,7 +400,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.application.putApiV1ApplicationsBulk();
// Handle the result
console.log(result);
}
@@ -437,15 +424,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await applicationPutApiV1ApplicationsBulk(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("applicationPutApiV1ApplicationsBulk failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -474,6 +458,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="delete_/api/v1/applications/bulk" method="delete" path="/api/v1/applications/bulk" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -510,14 +495,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await applicationDeleteApiV1ApplicationsBulk(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("applicationDeleteApiV1ApplicationsBulk failed:", res.error);
}
const { value: result } = res;
}
run();
@@ -546,6 +529,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/applications/schema" method="get" path="/api/v1/applications/schema" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -558,7 +542,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.application.getApiV1ApplicationsSchema();
// Handle the result
console.log(result);
}
@@ -583,15 +566,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await applicationGetApiV1ApplicationsSchema(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("applicationGetApiV1ApplicationsSchema failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -619,6 +599,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="post_/api/v1/applications/test" method="post" path="/api/v1/applications/test" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -655,14 +636,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await applicationPostApiV1ApplicationsTest(prowlarr, {});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("applicationPostApiV1ApplicationsTest failed:", res.error);
}
const { value: result } = res;
}
run();
@@ -691,6 +670,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="post_/api/v1/applications/testall" method="post" path="/api/v1/applications/testall" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -727,14 +707,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await applicationPostApiV1ApplicationsTestall(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("applicationPostApiV1ApplicationsTestall failed:", res.error);
}
const { value: result } = res;
}
run();
@@ -762,6 +740,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="post_/api/v1/applications/action/{name}" method="post" path="/api/v1/applications/action/{name}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -802,14 +781,12 @@ async function run() {
const res = await applicationPostApiV1ApplicationsActionName(prowlarr, {
name: "<value>",
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("applicationPostApiV1ApplicationsActionName failed:", res.error);
}
const { value: result } = res;
}
run();

View File

@@ -16,6 +16,7 @@
### Example Usage
<!-- UsageSnippet language="typescript" operationID="post_/api/v1/appprofile" method="post" path="/api/v1/appprofile" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -28,7 +29,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.appProfile.postApiV1Appprofile();
// Handle the result
console.log(result);
}
@@ -53,15 +53,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await appProfilePostApiV1Appprofile(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("appProfilePostApiV1Appprofile failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -90,6 +87,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/appprofile" method="get" path="/api/v1/appprofile" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -102,7 +100,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.appProfile.getApiV1Appprofile();
// Handle the result
console.log(result);
}
@@ -127,15 +124,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await appProfileGetApiV1Appprofile(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("appProfileGetApiV1Appprofile failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -163,6 +157,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="delete_/api/v1/appprofile/{id}" method="delete" path="/api/v1/appprofile/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -203,14 +198,12 @@ async function run() {
const res = await appProfileDeleteApiV1AppprofileId(prowlarr, {
id: 344853,
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("appProfileDeleteApiV1AppprofileId failed:", res.error);
}
const { value: result } = res;
}
run();
@@ -239,6 +232,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="put_/api/v1/appprofile/{id}" method="put" path="/api/v1/appprofile/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -253,7 +247,6 @@ async function run() {
id: "<id>",
});
// Handle the result
console.log(result);
}
@@ -280,15 +273,12 @@ async function run() {
const res = await appProfilePutApiV1AppprofileId(prowlarr, {
id: "<id>",
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("appProfilePutApiV1AppprofileId failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -317,6 +307,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/appprofile/{id}" method="get" path="/api/v1/appprofile/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -331,7 +322,6 @@ async function run() {
id: 92439,
});
// Handle the result
console.log(result);
}
@@ -358,15 +348,12 @@ async function run() {
const res = await appProfileGetApiV1AppprofileId(prowlarr, {
id: 92439,
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("appProfileGetApiV1AppprofileId failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -395,6 +382,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/appprofile/schema" method="get" path="/api/v1/appprofile/schema" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -407,7 +395,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.appProfile.getApiV1AppprofileSchema();
// Handle the result
console.log(result);
}
@@ -432,15 +419,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await appProfileGetApiV1AppprofileSchema(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("appProfileGetApiV1AppprofileSchema failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();

View File

@@ -11,6 +11,7 @@
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/logout" method="get" path="/logout" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -47,14 +48,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await authenticationGetLogout(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("authenticationGetLogout failed:", res.error);
}
const { value: result } = res;
}
run();

View File

@@ -14,6 +14,7 @@
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/system/backup" method="get" path="/api/v1/system/backup" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -26,7 +27,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.backup.getApiV1SystemBackup();
// Handle the result
console.log(result);
}
@@ -51,15 +51,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await backupGetApiV1SystemBackup(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("backupGetApiV1SystemBackup failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -87,6 +84,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="delete_/api/v1/system/backup/{id}" method="delete" path="/api/v1/system/backup/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -127,14 +125,12 @@ async function run() {
const res = await backupDeleteApiV1SystemBackupId(prowlarr, {
id: 305836,
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("backupDeleteApiV1SystemBackupId failed:", res.error);
}
const { value: result } = res;
}
run();
@@ -163,6 +159,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="post_/api/v1/system/backup/restore/{id}" method="post" path="/api/v1/system/backup/restore/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -203,14 +200,12 @@ async function run() {
const res = await backupPostApiV1SystemBackupRestoreId(prowlarr, {
id: 246520,
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("backupPostApiV1SystemBackupRestoreId failed:", res.error);
}
const { value: result } = res;
}
run();
@@ -239,6 +234,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="post_/api/v1/system/backup/restore/upload" method="post" path="/api/v1/system/backup/restore/upload" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -275,14 +271,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await backupPostApiV1SystemBackupRestoreUpload(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("backupPostApiV1SystemBackupRestoreUpload failed:", res.error);
}
const { value: result } = res;
}
run();

View File

@@ -14,6 +14,7 @@
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/command/{id}" method="get" path="/api/v1/command/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -28,7 +29,6 @@ async function run() {
id: 274829,
});
// Handle the result
console.log(result);
}
@@ -55,15 +55,12 @@ async function run() {
const res = await commandGetApiV1CommandId(prowlarr, {
id: 274829,
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("commandGetApiV1CommandId failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -92,6 +89,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="delete_/api/v1/command/{id}" method="delete" path="/api/v1/command/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -132,14 +130,12 @@ async function run() {
const res = await commandDeleteApiV1CommandId(prowlarr, {
id: 932632,
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("commandDeleteApiV1CommandId failed:", res.error);
}
const { value: result } = res;
}
run();
@@ -168,6 +164,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="post_/api/v1/command" method="post" path="/api/v1/command" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -180,7 +177,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.command.postApiV1Command();
// Handle the result
console.log(result);
}
@@ -205,15 +201,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await commandPostApiV1Command(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("commandPostApiV1Command failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -242,6 +235,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/command" method="get" path="/api/v1/command" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -254,7 +248,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.command.getApiV1Command();
// Handle the result
console.log(result);
}
@@ -279,15 +272,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await commandGetApiV1Command(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("commandGetApiV1Command failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();

View File

@@ -15,6 +15,7 @@
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/customfilter/{id}" method="get" path="/api/v1/customfilter/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -29,7 +30,6 @@ async function run() {
id: 367030,
});
// Handle the result
console.log(result);
}
@@ -56,15 +56,12 @@ async function run() {
const res = await customFilterGetApiV1CustomfilterId(prowlarr, {
id: 367030,
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("customFilterGetApiV1CustomfilterId failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -93,6 +90,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="put_/api/v1/customfilter/{id}" method="put" path="/api/v1/customfilter/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -107,7 +105,6 @@ async function run() {
id: "<id>",
});
// Handle the result
console.log(result);
}
@@ -134,15 +131,12 @@ async function run() {
const res = await customFilterPutApiV1CustomfilterId(prowlarr, {
id: "<id>",
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("customFilterPutApiV1CustomfilterId failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -171,6 +165,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="delete_/api/v1/customfilter/{id}" method="delete" path="/api/v1/customfilter/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -211,14 +206,12 @@ async function run() {
const res = await customFilterDeleteApiV1CustomfilterId(prowlarr, {
id: 400472,
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("customFilterDeleteApiV1CustomfilterId failed:", res.error);
}
const { value: result } = res;
}
run();
@@ -247,6 +240,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/customfilter" method="get" path="/api/v1/customfilter" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -259,7 +253,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.customFilter.getApiV1Customfilter();
// Handle the result
console.log(result);
}
@@ -284,15 +277,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await customFilterGetApiV1Customfilter(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("customFilterGetApiV1Customfilter failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -320,6 +310,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="post_/api/v1/customfilter" method="post" path="/api/v1/customfilter" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -332,7 +323,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.customFilter.postApiV1Customfilter();
// Handle the result
console.log(result);
}
@@ -357,15 +347,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await customFilterPostApiV1Customfilter(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("customFilterPostApiV1Customfilter failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();

View File

@@ -13,6 +13,7 @@
### Example Usage
<!-- UsageSnippet language="typescript" operationID="put_/api/v1/config/development/{id}" method="put" path="/api/v1/config/development/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -27,7 +28,6 @@ async function run() {
id: "<id>",
});
// Handle the result
console.log(result);
}
@@ -54,15 +54,12 @@ async function run() {
const res = await developmentConfigPutApiV1ConfigDevelopmentId(prowlarr, {
id: "<id>",
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("developmentConfigPutApiV1ConfigDevelopmentId failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -91,6 +88,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/config/development/{id}" method="get" path="/api/v1/config/development/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -105,7 +103,6 @@ async function run() {
id: 820899,
});
// Handle the result
console.log(result);
}
@@ -132,15 +129,12 @@ async function run() {
const res = await developmentConfigGetApiV1ConfigDevelopmentId(prowlarr, {
id: 820899,
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("developmentConfigGetApiV1ConfigDevelopmentId failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -169,6 +163,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/config/development" method="get" path="/api/v1/config/development" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -181,7 +176,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.developmentConfig.getApiV1ConfigDevelopment();
// Handle the result
console.log(result);
}
@@ -206,15 +200,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await developmentConfigGetApiV1ConfigDevelopment(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("developmentConfigGetApiV1ConfigDevelopment failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();

View File

@@ -21,6 +21,7 @@
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/downloadclient/{id}" method="get" path="/api/v1/downloadclient/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -35,7 +36,6 @@ async function run() {
id: 335668,
});
// Handle the result
console.log(result);
}
@@ -62,15 +62,12 @@ async function run() {
const res = await downloadClientGetApiV1DownloadclientId(prowlarr, {
id: 335668,
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("downloadClientGetApiV1DownloadclientId failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -99,6 +96,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="put_/api/v1/downloadclient/{id}" method="put" path="/api/v1/downloadclient/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -113,7 +111,6 @@ async function run() {
id: "<id>",
});
// Handle the result
console.log(result);
}
@@ -140,15 +137,12 @@ async function run() {
const res = await downloadClientPutApiV1DownloadclientId(prowlarr, {
id: "<id>",
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("downloadClientPutApiV1DownloadclientId failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -177,6 +171,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="delete_/api/v1/downloadclient/{id}" method="delete" path="/api/v1/downloadclient/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -217,14 +212,12 @@ async function run() {
const res = await downloadClientDeleteApiV1DownloadclientId(prowlarr, {
id: 670627,
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("downloadClientDeleteApiV1DownloadclientId failed:", res.error);
}
const { value: result } = res;
}
run();
@@ -253,6 +246,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/downloadclient" method="get" path="/api/v1/downloadclient" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -265,7 +259,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.downloadClient.getApiV1Downloadclient();
// Handle the result
console.log(result);
}
@@ -290,15 +283,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await downloadClientGetApiV1Downloadclient(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("downloadClientGetApiV1Downloadclient failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -326,6 +316,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="post_/api/v1/downloadclient" method="post" path="/api/v1/downloadclient" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -338,7 +329,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.downloadClient.postApiV1Downloadclient({});
// Handle the result
console.log(result);
}
@@ -363,15 +353,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await downloadClientPostApiV1Downloadclient(prowlarr, {});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("downloadClientPostApiV1Downloadclient failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -400,6 +387,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="put_/api/v1/downloadclient/bulk" method="put" path="/api/v1/downloadclient/bulk" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -412,7 +400,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.downloadClient.putApiV1DownloadclientBulk();
// Handle the result
console.log(result);
}
@@ -437,15 +424,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await downloadClientPutApiV1DownloadclientBulk(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("downloadClientPutApiV1DownloadclientBulk failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -474,6 +458,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="delete_/api/v1/downloadclient/bulk" method="delete" path="/api/v1/downloadclient/bulk" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -510,14 +495,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await downloadClientDeleteApiV1DownloadclientBulk(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("downloadClientDeleteApiV1DownloadclientBulk failed:", res.error);
}
const { value: result } = res;
}
run();
@@ -546,6 +529,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/downloadclient/schema" method="get" path="/api/v1/downloadclient/schema" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -558,7 +542,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.downloadClient.getApiV1DownloadclientSchema();
// Handle the result
console.log(result);
}
@@ -583,15 +566,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await downloadClientGetApiV1DownloadclientSchema(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("downloadClientGetApiV1DownloadclientSchema failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -619,6 +599,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="post_/api/v1/downloadclient/test" method="post" path="/api/v1/downloadclient/test" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -655,14 +636,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await downloadClientPostApiV1DownloadclientTest(prowlarr, {});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("downloadClientPostApiV1DownloadclientTest failed:", res.error);
}
const { value: result } = res;
}
run();
@@ -691,6 +670,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="post_/api/v1/downloadclient/testall" method="post" path="/api/v1/downloadclient/testall" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -727,14 +707,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await downloadClientPostApiV1DownloadclientTestall(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("downloadClientPostApiV1DownloadclientTestall failed:", res.error);
}
const { value: result } = res;
}
run();
@@ -762,6 +740,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="post_/api/v1/downloadclient/action/{name}" method="post" path="/api/v1/downloadclient/action/{name}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -802,14 +781,12 @@ async function run() {
const res = await downloadClientPostApiV1DownloadclientActionName(prowlarr, {
name: "<value>",
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("downloadClientPostApiV1DownloadclientActionName failed:", res.error);
}
const { value: result } = res;
}
run();

View File

@@ -13,6 +13,7 @@
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/config/downloadclient/{id}" method="get" path="/api/v1/config/downloadclient/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -27,7 +28,6 @@ async function run() {
id: 300484,
});
// Handle the result
console.log(result);
}
@@ -54,15 +54,12 @@ async function run() {
const res = await downloadClientConfigGetApiV1ConfigDownloadclientId(prowlarr, {
id: 300484,
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("downloadClientConfigGetApiV1ConfigDownloadclientId failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -91,6 +88,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="put_/api/v1/config/downloadclient/{id}" method="put" path="/api/v1/config/downloadclient/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -105,7 +103,6 @@ async function run() {
id: "<id>",
});
// Handle the result
console.log(result);
}
@@ -132,15 +129,12 @@ async function run() {
const res = await downloadClientConfigPutApiV1ConfigDownloadclientId(prowlarr, {
id: "<id>",
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("downloadClientConfigPutApiV1ConfigDownloadclientId failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -169,6 +163,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/config/downloadclient" method="get" path="/api/v1/config/downloadclient" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -181,7 +176,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.downloadClientConfig.getApiV1ConfigDownloadclient();
// Handle the result
console.log(result);
}
@@ -206,15 +200,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await downloadClientConfigGetApiV1ConfigDownloadclient(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("downloadClientConfigGetApiV1ConfigDownloadclient failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();

View File

@@ -12,6 +12,7 @@
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/filesystem" method="get" path="/api/v1/filesystem" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -48,14 +49,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await fileSystemGetApiV1Filesystem(prowlarr, {});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("fileSystemGetApiV1Filesystem failed:", res.error);
}
const { value: result } = res;
}
run();
@@ -84,6 +83,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/filesystem/type" method="get" path="/api/v1/filesystem/type" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -120,14 +120,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await fileSystemGetApiV1FilesystemType(prowlarr, {});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("fileSystemGetApiV1FilesystemType failed:", res.error);
}
const { value: result } = res;
}
run();

View File

@@ -11,6 +11,7 @@
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/health" method="get" path="/api/v1/health" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -23,7 +24,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.health.getApiV1Health();
// Handle the result
console.log(result);
}
@@ -48,15 +48,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await healthGetApiV1Health(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("healthGetApiV1Health failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();

View File

@@ -13,6 +13,7 @@
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/history" method="get" path="/api/v1/history" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -25,7 +26,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.history.getApiV1History({});
// Handle the result
console.log(result);
}
@@ -50,15 +50,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await historyGetApiV1History(prowlarr, {});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("historyGetApiV1History failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -87,6 +84,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/history/since" method="get" path="/api/v1/history/since" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -99,7 +97,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.history.getApiV1HistorySince({});
// Handle the result
console.log(result);
}
@@ -124,15 +121,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await historyGetApiV1HistorySince(prowlarr, {});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("historyGetApiV1HistorySince failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -161,6 +155,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/history/indexer" method="get" path="/api/v1/history/indexer" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -173,7 +168,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.history.getApiV1HistoryIndexer({});
// Handle the result
console.log(result);
}
@@ -198,15 +192,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await historyGetApiV1HistoryIndexer(prowlarr, {});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("historyGetApiV1HistoryIndexer failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();

View File

@@ -13,6 +13,7 @@
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/config/host/{id}" method="get" path="/api/v1/config/host/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -27,7 +28,6 @@ async function run() {
id: 316887,
});
// Handle the result
console.log(result);
}
@@ -54,15 +54,12 @@ async function run() {
const res = await hostConfigGetApiV1ConfigHostId(prowlarr, {
id: 316887,
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("hostConfigGetApiV1ConfigHostId failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -91,6 +88,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="put_/api/v1/config/host/{id}" method="put" path="/api/v1/config/host/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -105,7 +103,6 @@ async function run() {
id: "<id>",
});
// Handle the result
console.log(result);
}
@@ -132,15 +129,12 @@ async function run() {
const res = await hostConfigPutApiV1ConfigHostId(prowlarr, {
id: "<id>",
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("hostConfigPutApiV1ConfigHostId failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -169,6 +163,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/config/host" method="get" path="/api/v1/config/host" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -181,7 +176,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.hostConfig.getApiV1ConfigHost();
// Handle the result
console.log(result);
}
@@ -206,15 +200,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await hostConfigGetApiV1ConfigHost(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("hostConfigGetApiV1ConfigHost failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();

View File

@@ -21,6 +21,7 @@
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/indexer/{id}" method="get" path="/api/v1/indexer/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -35,7 +36,6 @@ async function run() {
id: 596285,
});
// Handle the result
console.log(result);
}
@@ -62,15 +62,12 @@ async function run() {
const res = await indexerGetApiV1IndexerId(prowlarr, {
id: 596285,
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("indexerGetApiV1IndexerId failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -99,6 +96,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="put_/api/v1/indexer/{id}" method="put" path="/api/v1/indexer/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -113,7 +111,6 @@ async function run() {
id: "<id>",
});
// Handle the result
console.log(result);
}
@@ -140,15 +137,12 @@ async function run() {
const res = await indexerPutApiV1IndexerId(prowlarr, {
id: "<id>",
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("indexerPutApiV1IndexerId failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -177,6 +171,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="delete_/api/v1/indexer/{id}" method="delete" path="/api/v1/indexer/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -217,14 +212,12 @@ async function run() {
const res = await indexerDeleteApiV1IndexerId(prowlarr, {
id: 158662,
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("indexerDeleteApiV1IndexerId failed:", res.error);
}
const { value: result } = res;
}
run();
@@ -253,6 +246,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/indexer" method="get" path="/api/v1/indexer" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -265,7 +259,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.indexer.getApiV1Indexer();
// Handle the result
console.log(result);
}
@@ -290,15 +283,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await indexerGetApiV1Indexer(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("indexerGetApiV1Indexer failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -326,6 +316,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="post_/api/v1/indexer" method="post" path="/api/v1/indexer" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -338,7 +329,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.indexer.postApiV1Indexer({});
// Handle the result
console.log(result);
}
@@ -363,15 +353,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await indexerPostApiV1Indexer(prowlarr, {});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("indexerPostApiV1Indexer failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -400,6 +387,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="put_/api/v1/indexer/bulk" method="put" path="/api/v1/indexer/bulk" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -412,7 +400,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.indexer.putApiV1IndexerBulk();
// Handle the result
console.log(result);
}
@@ -437,15 +424,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await indexerPutApiV1IndexerBulk(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("indexerPutApiV1IndexerBulk failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -474,6 +458,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="delete_/api/v1/indexer/bulk" method="delete" path="/api/v1/indexer/bulk" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -510,14 +495,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await indexerDeleteApiV1IndexerBulk(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("indexerDeleteApiV1IndexerBulk failed:", res.error);
}
const { value: result } = res;
}
run();
@@ -546,6 +529,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/indexer/schema" method="get" path="/api/v1/indexer/schema" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -558,7 +542,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.indexer.getApiV1IndexerSchema();
// Handle the result
console.log(result);
}
@@ -583,15 +566,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await indexerGetApiV1IndexerSchema(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("indexerGetApiV1IndexerSchema failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -619,6 +599,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="post_/api/v1/indexer/test" method="post" path="/api/v1/indexer/test" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -655,14 +636,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await indexerPostApiV1IndexerTest(prowlarr, {});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("indexerPostApiV1IndexerTest failed:", res.error);
}
const { value: result } = res;
}
run();
@@ -691,6 +670,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="post_/api/v1/indexer/testall" method="post" path="/api/v1/indexer/testall" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -727,14 +707,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await indexerPostApiV1IndexerTestall(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("indexerPostApiV1IndexerTestall failed:", res.error);
}
const { value: result } = res;
}
run();
@@ -762,6 +740,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="post_/api/v1/indexer/action/{name}" method="post" path="/api/v1/indexer/action/{name}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -802,14 +781,12 @@ async function run() {
const res = await indexerPostApiV1IndexerActionName(prowlarr, {
name: "<value>",
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("indexerPostApiV1IndexerActionName failed:", res.error);
}
const { value: result } = res;
}
run();

View File

@@ -11,6 +11,7 @@
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/indexer/categories" method="get" path="/api/v1/indexer/categories" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -23,7 +24,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.indexerDefaultCategories.getApiV1IndexerCategories();
// Handle the result
console.log(result);
}
@@ -48,15 +48,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await indexerDefaultCategoriesGetApiV1IndexerCategories(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("indexerDefaultCategoriesGetApiV1IndexerCategories failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();

View File

@@ -19,6 +19,7 @@
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/indexerproxy/{id}" method="get" path="/api/v1/indexerproxy/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -33,7 +34,6 @@ async function run() {
id: 624797,
});
// Handle the result
console.log(result);
}
@@ -60,15 +60,12 @@ async function run() {
const res = await indexerProxyGetApiV1IndexerproxyId(prowlarr, {
id: 624797,
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("indexerProxyGetApiV1IndexerproxyId failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -97,6 +94,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="put_/api/v1/indexerproxy/{id}" method="put" path="/api/v1/indexerproxy/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -111,7 +109,6 @@ async function run() {
id: "<id>",
});
// Handle the result
console.log(result);
}
@@ -138,15 +135,12 @@ async function run() {
const res = await indexerProxyPutApiV1IndexerproxyId(prowlarr, {
id: "<id>",
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("indexerProxyPutApiV1IndexerproxyId failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -175,6 +169,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="delete_/api/v1/indexerproxy/{id}" method="delete" path="/api/v1/indexerproxy/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -215,14 +210,12 @@ async function run() {
const res = await indexerProxyDeleteApiV1IndexerproxyId(prowlarr, {
id: 291937,
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("indexerProxyDeleteApiV1IndexerproxyId failed:", res.error);
}
const { value: result } = res;
}
run();
@@ -251,6 +244,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/indexerproxy" method="get" path="/api/v1/indexerproxy" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -263,7 +257,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.indexerProxy.getApiV1Indexerproxy();
// Handle the result
console.log(result);
}
@@ -288,15 +281,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await indexerProxyGetApiV1Indexerproxy(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("indexerProxyGetApiV1Indexerproxy failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -324,6 +314,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="post_/api/v1/indexerproxy" method="post" path="/api/v1/indexerproxy" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -336,7 +327,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.indexerProxy.postApiV1Indexerproxy({});
// Handle the result
console.log(result);
}
@@ -361,15 +351,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await indexerProxyPostApiV1Indexerproxy(prowlarr, {});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("indexerProxyPostApiV1Indexerproxy failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -398,6 +385,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/indexerproxy/schema" method="get" path="/api/v1/indexerproxy/schema" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -410,7 +398,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.indexerProxy.getApiV1IndexerproxySchema();
// Handle the result
console.log(result);
}
@@ -435,15 +422,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await indexerProxyGetApiV1IndexerproxySchema(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("indexerProxyGetApiV1IndexerproxySchema failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -471,6 +455,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="post_/api/v1/indexerproxy/test" method="post" path="/api/v1/indexerproxy/test" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -507,14 +492,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await indexerProxyPostApiV1IndexerproxyTest(prowlarr, {});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("indexerProxyPostApiV1IndexerproxyTest failed:", res.error);
}
const { value: result } = res;
}
run();
@@ -543,6 +526,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="post_/api/v1/indexerproxy/testall" method="post" path="/api/v1/indexerproxy/testall" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -579,14 +563,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await indexerProxyPostApiV1IndexerproxyTestall(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("indexerProxyPostApiV1IndexerproxyTestall failed:", res.error);
}
const { value: result } = res;
}
run();
@@ -614,6 +596,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="post_/api/v1/indexerproxy/action/{name}" method="post" path="/api/v1/indexerproxy/action/{name}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -654,14 +637,12 @@ async function run() {
const res = await indexerProxyPostApiV1IndexerproxyActionName(prowlarr, {
name: "<value>",
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("indexerProxyPostApiV1IndexerproxyActionName failed:", res.error);
}
const { value: result } = res;
}
run();

View File

@@ -11,6 +11,7 @@
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/indexerstats" method="get" path="/api/v1/indexerstats" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -23,7 +24,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.indexerStats.getApiV1Indexerstats({});
// Handle the result
console.log(result);
}
@@ -48,15 +48,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await indexerStatsGetApiV1Indexerstats(prowlarr, {});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("indexerStatsGetApiV1Indexerstats failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();

View File

@@ -11,6 +11,7 @@
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/indexerstatus" method="get" path="/api/v1/indexerstatus" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -23,7 +24,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.indexerStatus.getApiV1Indexerstatus();
// Handle the result
console.log(result);
}
@@ -48,15 +48,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await indexerStatusGetApiV1Indexerstatus(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("indexerStatusGetApiV1Indexerstatus failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();

View File

@@ -12,6 +12,7 @@
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/localization" method="get" path="/api/v1/localization" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -48,14 +49,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await localizationGetApiV1Localization(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("localizationGetApiV1Localization failed:", res.error);
}
const { value: result } = res;
}
run();
@@ -83,6 +82,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/localization/options" method="get" path="/api/v1/localization/options" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -95,7 +95,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.localization.getApiV1LocalizationOptions();
// Handle the result
console.log(result);
}
@@ -120,15 +119,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await localizationGetApiV1LocalizationOptions(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("localizationGetApiV1LocalizationOptions failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();

View File

@@ -11,6 +11,7 @@
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/log" method="get" path="/api/v1/log" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -23,7 +24,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.log.getApiV1Log({});
// Handle the result
console.log(result);
}
@@ -48,15 +48,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await logGetApiV1Log(prowlarr, {});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("logGetApiV1Log failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();

View File

@@ -12,6 +12,7 @@
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/log/file" method="get" path="/api/v1/log/file" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -24,7 +25,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.logFile.getApiV1LogFile();
// Handle the result
console.log(result);
}
@@ -49,15 +49,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await logFileGetApiV1LogFile(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("logFileGetApiV1LogFile failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -85,6 +82,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/log/file/{filename}" method="get" path="/api/v1/log/file/{filename}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -99,7 +97,6 @@ async function run() {
filename: "example.file",
});
// Handle the result
console.log(result);
}
@@ -126,15 +123,12 @@ async function run() {
const res = await logFileGetApiV1LogFileFilename(prowlarr, {
filename: "example.file",
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("logFileGetApiV1LogFileFilename failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();

View File

@@ -14,6 +14,7 @@
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/indexer/{id}/newznab" method="get" path="/api/v1/indexer/{id}/newznab" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -54,14 +55,12 @@ async function run() {
const res = await newznabGetApiV1IndexerIdNewznab(prowlarr, {
id: 395958,
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("newznabGetApiV1IndexerIdNewznab failed:", res.error);
}
const { value: result } = res;
}
run();
@@ -90,6 +89,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/{id}/api" method="get" path="/{id}/api" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -130,14 +130,12 @@ async function run() {
const res = await newznabGetIdApi(prowlarr, {
id: 915193,
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("newznabGetIdApi failed:", res.error);
}
const { value: result } = res;
}
run();
@@ -166,6 +164,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/indexer/{id}/download" method="get" path="/api/v1/indexer/{id}/download" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -206,14 +205,12 @@ async function run() {
const res = await newznabGetApiV1IndexerIdDownload(prowlarr, {
id: 159549,
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("newznabGetApiV1IndexerIdDownload failed:", res.error);
}
const { value: result } = res;
}
run();
@@ -242,6 +239,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/{id}/download" method="get" path="/{id}/download" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -282,14 +280,12 @@ async function run() {
const res = await newznabGetIdDownload(prowlarr, {
id: 531578,
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("newznabGetIdDownload failed:", res.error);
}
const { value: result } = res;
}
run();

View File

@@ -19,6 +19,7 @@
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/notification/{id}" method="get" path="/api/v1/notification/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -33,7 +34,6 @@ async function run() {
id: 383207,
});
// Handle the result
console.log(result);
}
@@ -60,15 +60,12 @@ async function run() {
const res = await notificationGetApiV1NotificationId(prowlarr, {
id: 383207,
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("notificationGetApiV1NotificationId failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -97,6 +94,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="put_/api/v1/notification/{id}" method="put" path="/api/v1/notification/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -111,7 +109,6 @@ async function run() {
id: "<id>",
});
// Handle the result
console.log(result);
}
@@ -138,15 +135,12 @@ async function run() {
const res = await notificationPutApiV1NotificationId(prowlarr, {
id: "<id>",
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("notificationPutApiV1NotificationId failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -175,6 +169,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="delete_/api/v1/notification/{id}" method="delete" path="/api/v1/notification/{id}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -215,14 +210,12 @@ async function run() {
const res = await notificationDeleteApiV1NotificationId(prowlarr, {
id: 312155,
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("notificationDeleteApiV1NotificationId failed:", res.error);
}
const { value: result } = res;
}
run();
@@ -251,6 +244,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/notification" method="get" path="/api/v1/notification" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -263,7 +257,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.notification.getApiV1Notification();
// Handle the result
console.log(result);
}
@@ -288,15 +281,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await notificationGetApiV1Notification(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("notificationGetApiV1Notification failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -324,6 +314,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="post_/api/v1/notification" method="post" path="/api/v1/notification" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -336,7 +327,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.notification.postApiV1Notification({});
// Handle the result
console.log(result);
}
@@ -361,15 +351,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await notificationPostApiV1Notification(prowlarr, {});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("notificationPostApiV1Notification failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -398,6 +385,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/notification/schema" method="get" path="/api/v1/notification/schema" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -410,7 +398,6 @@ const prowlarr = new Prowlarr({
async function run() {
const result = await prowlarr.notification.getApiV1NotificationSchema();
// Handle the result
console.log(result);
}
@@ -435,15 +422,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await notificationGetApiV1NotificationSchema(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("notificationGetApiV1NotificationSchema failed:", res.error);
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
@@ -471,6 +455,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="post_/api/v1/notification/test" method="post" path="/api/v1/notification/test" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -507,14 +492,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await notificationPostApiV1NotificationTest(prowlarr, {});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("notificationPostApiV1NotificationTest failed:", res.error);
}
const { value: result } = res;
}
run();
@@ -543,6 +526,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="post_/api/v1/notification/testall" method="post" path="/api/v1/notification/testall" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -579,14 +563,12 @@ const prowlarr = new ProwlarrCore({
async function run() {
const res = await notificationPostApiV1NotificationTestall(prowlarr);
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("notificationPostApiV1NotificationTestall failed:", res.error);
}
const { value: result } = res;
}
run();
@@ -614,6 +596,7 @@ run();
### Example Usage
<!-- UsageSnippet language="typescript" operationID="post_/api/v1/notification/action/{name}" method="post" path="/api/v1/notification/action/{name}" -->
```typescript
import { Prowlarr } from "prowlarr";
@@ -654,14 +637,12 @@ async function run() {
const res = await notificationPostApiV1NotificationActionName(prowlarr, {
name: "<value>",
});
if (!res.ok) {
throw res.error;
if (res.ok) {
const { value: result } = res;
} else {
console.log("notificationPostApiV1NotificationActionName failed:", res.error);
}
const { value: result } = res;
}
run();

Some files were not shown because too many files have changed in this diff Show More