Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions codegen/parse-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ import { schemaToTypescript, type TypeGenOptions } from './type-utils';

const CLIENT_OPTS: TypeGenOptions = { refPrefix: 'T.' };

// The automations feature is retired; drop its endpoints and schemas from the
// generated client even while the API still serves them.
const EXCLUDED_PATH = /\/automations(\/|$)/;
// The automations and scan reports features are retired; drop their endpoints
// and schemas from the generated client even while the API still serves them.
const EXCLUDED_PATH = /\/(automations|scan_reports)(\/|$)/;
const EXCLUDED_SCHEMAS = new Set([
'Automation',
'AutomationExecution',
'AutomationNotification',
'AutomationActionExecution',
'TriggerAutomationBody',
'CreateAutomationFromTemplateBody',
'Scan Report',
]);

export function parseSpec(spec: OpenAPISpec): ParsedSpec {
Expand Down
98 changes: 0 additions & 98 deletions src/client/scan-reports.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { registry } from '../registry';
import { authCommands } from './auth';
import { configCommands } from './config';
import { helpCommand } from './help';
import { scanCommand } from './scan';
import { setupCommand } from './setup';
import { mapCommand } from './map';
import { updateCommand } from './update';
Expand Down Expand Up @@ -49,7 +48,6 @@ export function registerAllCommands(): void {
...apiCommands,
...telemetryCommands,
helpCommand,
scanCommand,
setupCommand,
mapCommand,
updateCommand,
Expand Down
Loading
Loading