UNPKG

@datadog/datadog-api-client

Version:
803 lines (802 loc) 34.3 kB
import { BaseAPIRequestFactory } from "../../datadog-api-client-common/baseapi"; import { Configuration } from "../../datadog-api-client-common/configuration"; import { RequestContext, ResponseContext } from "../../datadog-api-client-common/http/http"; import { AiCustomRuleRequest } from "../models/AiCustomRuleRequest"; import { AiCustomRuleResponse } from "../models/AiCustomRuleResponse"; import { AiCustomRuleRevisionRequest } from "../models/AiCustomRuleRevisionRequest"; import { AiCustomRuleRevisionResponse } from "../models/AiCustomRuleRevisionResponse"; import { AiCustomRuleRevisionResponseData } from "../models/AiCustomRuleRevisionResponseData"; import { AiCustomRuleRevisionsResponse } from "../models/AiCustomRuleRevisionsResponse"; import { AiCustomRulesetRequest } from "../models/AiCustomRulesetRequest"; import { AiCustomRulesetResponse } from "../models/AiCustomRulesetResponse"; import { AiCustomRulesetsResponse } from "../models/AiCustomRulesetsResponse"; import { AiCustomRulesetUpdateRequest } from "../models/AiCustomRulesetUpdateRequest"; import { AiMemoryViolationResultRequest } from "../models/AiMemoryViolationResultRequest"; import { AiMemoryViolationResultsResponse } from "../models/AiMemoryViolationResultsResponse"; import { AiPromptsResponse } from "../models/AiPromptsResponse"; import { CustomRuleRequest } from "../models/CustomRuleRequest"; import { CustomRuleResponse } from "../models/CustomRuleResponse"; import { CustomRuleRevision } from "../models/CustomRuleRevision"; import { CustomRuleRevisionRequest } from "../models/CustomRuleRevisionRequest"; import { CustomRuleRevisionResponse } from "../models/CustomRuleRevisionResponse"; import { CustomRuleRevisionsResponse } from "../models/CustomRuleRevisionsResponse"; import { CustomRulesetListResponse } from "../models/CustomRulesetListResponse"; import { CustomRulesetRequest } from "../models/CustomRulesetRequest"; import { CustomRulesetResponse } from "../models/CustomRulesetResponse"; import { LicensesListResponse } from "../models/LicensesListResponse"; import { McpScanRequest } from "../models/McpScanRequest"; import { McpScanRequestResponse } from "../models/McpScanRequestResponse"; import { ResolveVulnerableSymbolsRequest } from "../models/ResolveVulnerableSymbolsRequest"; import { ResolveVulnerableSymbolsResponse } from "../models/ResolveVulnerableSymbolsResponse"; import { RevertCustomRuleRevisionRequest } from "../models/RevertCustomRuleRevisionRequest"; import { ScanResultResponse } from "../models/ScanResultResponse"; import { ScaRequest } from "../models/ScaRequest"; export declare class StaticAnalysisApiRequestFactory extends BaseAPIRequestFactory { createAiCustomRule(rulesetName: string, body: AiCustomRuleRequest, _options?: Configuration): Promise<RequestContext>; createAiCustomRuleRevision(rulesetName: string, ruleName: string, body: AiCustomRuleRevisionRequest, _options?: Configuration): Promise<RequestContext>; createAiCustomRuleset(body: AiCustomRulesetRequest, _options?: Configuration): Promise<RequestContext>; createAiMemoryViolationResult(body: AiMemoryViolationResultRequest, _options?: Configuration): Promise<RequestContext>; createCustomRule(rulesetName: string, body: CustomRuleRequest, _options?: Configuration): Promise<RequestContext>; createCustomRuleRevision(rulesetName: string, ruleName: string, body: CustomRuleRevisionRequest, _options?: Configuration): Promise<RequestContext>; createCustomRuleset(body: CustomRulesetRequest, _options?: Configuration): Promise<RequestContext>; createSCAResolveVulnerableSymbols(body: ResolveVulnerableSymbolsRequest, _options?: Configuration): Promise<RequestContext>; createSCAResult(body: ScaRequest, _options?: Configuration): Promise<RequestContext>; createSCAScan(body: McpScanRequest, _options?: Configuration): Promise<RequestContext>; deleteAiCustomRule(rulesetName: string, ruleName: string, _options?: Configuration): Promise<RequestContext>; deleteAiCustomRuleset(rulesetName: string, _options?: Configuration): Promise<RequestContext>; deleteAiMemoryViolationResult(id: string, _options?: Configuration): Promise<RequestContext>; deleteCustomRule(rulesetName: string, ruleName: string, _options?: Configuration): Promise<RequestContext>; deleteCustomRuleset(rulesetName: string, _options?: Configuration): Promise<RequestContext>; getAiCustomRule(rulesetName: string, ruleName: string, _options?: Configuration): Promise<RequestContext>; getAiCustomRuleRevision(rulesetName: string, ruleName: string, id: string, _options?: Configuration): Promise<RequestContext>; getAiCustomRuleset(rulesetName: string, _options?: Configuration): Promise<RequestContext>; getCustomRule(rulesetName: string, ruleName: string, _options?: Configuration): Promise<RequestContext>; getCustomRuleRevision(rulesetName: string, ruleName: string, id: string, _options?: Configuration): Promise<RequestContext>; getCustomRuleset(rulesetName: string, _options?: Configuration): Promise<RequestContext>; getSCAScan(jobId: string, _options?: Configuration): Promise<RequestContext>; listAiCustomRuleRevisions(rulesetName: string, ruleName: string, pageOffset?: number, pageLimit?: number, _options?: Configuration): Promise<RequestContext>; listAiCustomRulesets(pageOffset?: number, pageLimit?: number, _options?: Configuration): Promise<RequestContext>; listAiMemoryViolationResults(_options?: Configuration): Promise<RequestContext>; listAiPrompts(_options?: Configuration): Promise<RequestContext>; listCustomRuleRevisions(rulesetName: string, ruleName: string, pageOffset?: number, pageLimit?: number, _options?: Configuration): Promise<RequestContext>; listCustomRulesets(_options?: Configuration): Promise<RequestContext>; listSCALicenses(_options?: Configuration): Promise<RequestContext>; revertCustomRuleRevision(rulesetName: string, ruleName: string, body: RevertCustomRuleRevisionRequest, _options?: Configuration): Promise<RequestContext>; updateAiCustomRuleset(rulesetName: string, body: AiCustomRulesetUpdateRequest, _options?: Configuration): Promise<RequestContext>; updateCustomRuleset(rulesetName: string, body: CustomRulesetRequest, _options?: Configuration): Promise<RequestContext>; } export declare class StaticAnalysisApiResponseProcessor { /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to createAiCustomRule * @throws ApiException if the response code was not in [200, 299] */ createAiCustomRule(response: ResponseContext): Promise<AiCustomRuleResponse>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to createAiCustomRuleRevision * @throws ApiException if the response code was not in [200, 299] */ createAiCustomRuleRevision(response: ResponseContext): Promise<void>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to createAiCustomRuleset * @throws ApiException if the response code was not in [200, 299] */ createAiCustomRuleset(response: ResponseContext): Promise<AiCustomRulesetResponse>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to createAiMemoryViolationResult * @throws ApiException if the response code was not in [200, 299] */ createAiMemoryViolationResult(response: ResponseContext): Promise<void>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to createCustomRule * @throws ApiException if the response code was not in [200, 299] */ createCustomRule(response: ResponseContext): Promise<CustomRuleResponse>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to createCustomRuleRevision * @throws ApiException if the response code was not in [200, 299] */ createCustomRuleRevision(response: ResponseContext): Promise<void>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to createCustomRuleset * @throws ApiException if the response code was not in [200, 299] */ createCustomRuleset(response: ResponseContext): Promise<CustomRulesetResponse>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to createSCAResolveVulnerableSymbols * @throws ApiException if the response code was not in [200, 299] */ createSCAResolveVulnerableSymbols(response: ResponseContext): Promise<ResolveVulnerableSymbolsResponse>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to createSCAResult * @throws ApiException if the response code was not in [200, 299] */ createSCAResult(response: ResponseContext): Promise<void>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to createSCAScan * @throws ApiException if the response code was not in [200, 299] */ createSCAScan(response: ResponseContext): Promise<McpScanRequestResponse>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to deleteAiCustomRule * @throws ApiException if the response code was not in [200, 299] */ deleteAiCustomRule(response: ResponseContext): Promise<void>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to deleteAiCustomRuleset * @throws ApiException if the response code was not in [200, 299] */ deleteAiCustomRuleset(response: ResponseContext): Promise<void>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to deleteAiMemoryViolationResult * @throws ApiException if the response code was not in [200, 299] */ deleteAiMemoryViolationResult(response: ResponseContext): Promise<void>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to deleteCustomRule * @throws ApiException if the response code was not in [200, 299] */ deleteCustomRule(response: ResponseContext): Promise<void>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to deleteCustomRuleset * @throws ApiException if the response code was not in [200, 299] */ deleteCustomRuleset(response: ResponseContext): Promise<void>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to getAiCustomRule * @throws ApiException if the response code was not in [200, 299] */ getAiCustomRule(response: ResponseContext): Promise<AiCustomRuleResponse>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to getAiCustomRuleRevision * @throws ApiException if the response code was not in [200, 299] */ getAiCustomRuleRevision(response: ResponseContext): Promise<AiCustomRuleRevisionResponse>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to getAiCustomRuleset * @throws ApiException if the response code was not in [200, 299] */ getAiCustomRuleset(response: ResponseContext): Promise<AiCustomRulesetResponse>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to getCustomRule * @throws ApiException if the response code was not in [200, 299] */ getCustomRule(response: ResponseContext): Promise<CustomRuleResponse>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to getCustomRuleRevision * @throws ApiException if the response code was not in [200, 299] */ getCustomRuleRevision(response: ResponseContext): Promise<CustomRuleRevisionResponse>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to getCustomRuleset * @throws ApiException if the response code was not in [200, 299] */ getCustomRuleset(response: ResponseContext): Promise<CustomRulesetResponse>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to getSCAScan * @throws ApiException if the response code was not in [200, 299] */ getSCAScan(response: ResponseContext): Promise<ScanResultResponse>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to listAiCustomRuleRevisions * @throws ApiException if the response code was not in [200, 299] */ listAiCustomRuleRevisions(response: ResponseContext): Promise<AiCustomRuleRevisionsResponse>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to listAiCustomRulesets * @throws ApiException if the response code was not in [200, 299] */ listAiCustomRulesets(response: ResponseContext): Promise<AiCustomRulesetsResponse>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to listAiMemoryViolationResults * @throws ApiException if the response code was not in [200, 299] */ listAiMemoryViolationResults(response: ResponseContext): Promise<AiMemoryViolationResultsResponse>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to listAiPrompts * @throws ApiException if the response code was not in [200, 299] */ listAiPrompts(response: ResponseContext): Promise<AiPromptsResponse>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to listCustomRuleRevisions * @throws ApiException if the response code was not in [200, 299] */ listCustomRuleRevisions(response: ResponseContext): Promise<CustomRuleRevisionsResponse>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to listCustomRulesets * @throws ApiException if the response code was not in [200, 299] */ listCustomRulesets(response: ResponseContext): Promise<CustomRulesetListResponse>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to listSCALicenses * @throws ApiException if the response code was not in [200, 299] */ listSCALicenses(response: ResponseContext): Promise<LicensesListResponse>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to revertCustomRuleRevision * @throws ApiException if the response code was not in [200, 299] */ revertCustomRuleRevision(response: ResponseContext): Promise<void>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to updateAiCustomRuleset * @throws ApiException if the response code was not in [200, 299] */ updateAiCustomRuleset(response: ResponseContext): Promise<void>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to updateCustomRuleset * @throws ApiException if the response code was not in [200, 299] */ updateCustomRuleset(response: ResponseContext): Promise<CustomRulesetResponse>; } export interface StaticAnalysisApiCreateAiCustomRuleRequest { /** * The ruleset name. * @type string */ rulesetName: string; /** * @type AiCustomRuleRequest */ body: AiCustomRuleRequest; } export interface StaticAnalysisApiCreateAiCustomRuleRevisionRequest { /** * The ruleset name. * @type string */ rulesetName: string; /** * The rule name. * @type string */ ruleName: string; /** * @type AiCustomRuleRevisionRequest */ body: AiCustomRuleRevisionRequest; } export interface StaticAnalysisApiCreateAiCustomRulesetRequest { /** * @type AiCustomRulesetRequest */ body: AiCustomRulesetRequest; } export interface StaticAnalysisApiCreateAiMemoryViolationResultRequest { /** * @type AiMemoryViolationResultRequest */ body: AiMemoryViolationResultRequest; } export interface StaticAnalysisApiCreateCustomRuleRequest { /** * The ruleset name * @type string */ rulesetName: string; /** * @type CustomRuleRequest */ body: CustomRuleRequest; } export interface StaticAnalysisApiCreateCustomRuleRevisionRequest { /** * The ruleset name * @type string */ rulesetName: string; /** * The rule name * @type string */ ruleName: string; /** * @type CustomRuleRevisionRequest */ body: CustomRuleRevisionRequest; } export interface StaticAnalysisApiCreateCustomRulesetRequest { /** * @type CustomRulesetRequest */ body: CustomRulesetRequest; } export interface StaticAnalysisApiCreateSCAResolveVulnerableSymbolsRequest { /** * @type ResolveVulnerableSymbolsRequest */ body: ResolveVulnerableSymbolsRequest; } export interface StaticAnalysisApiCreateSCAResultRequest { /** * @type ScaRequest */ body: ScaRequest; } export interface StaticAnalysisApiCreateSCAScanRequest { /** * @type McpScanRequest */ body: McpScanRequest; } export interface StaticAnalysisApiDeleteAiCustomRuleRequest { /** * The ruleset name. * @type string */ rulesetName: string; /** * The rule name. * @type string */ ruleName: string; } export interface StaticAnalysisApiDeleteAiCustomRulesetRequest { /** * The ruleset name. * @type string */ rulesetName: string; } export interface StaticAnalysisApiDeleteAiMemoryViolationResultRequest { /** * The numeric identifier of the memory violation result. * @type string */ id: string; } export interface StaticAnalysisApiDeleteCustomRuleRequest { /** * The ruleset name * @type string */ rulesetName: string; /** * The rule name * @type string */ ruleName: string; } export interface StaticAnalysisApiDeleteCustomRulesetRequest { /** * The ruleset name * @type string */ rulesetName: string; } export interface StaticAnalysisApiGetAiCustomRuleRequest { /** * The ruleset name. * @type string */ rulesetName: string; /** * The rule name. * @type string */ ruleName: string; } export interface StaticAnalysisApiGetAiCustomRuleRevisionRequest { /** * The ruleset name. * @type string */ rulesetName: string; /** * The rule name. * @type string */ ruleName: string; /** * The revision identifier. * @type string */ id: string; } export interface StaticAnalysisApiGetAiCustomRulesetRequest { /** * The ruleset name. * @type string */ rulesetName: string; } export interface StaticAnalysisApiGetCustomRuleRequest { /** * The ruleset name * @type string */ rulesetName: string; /** * The rule name * @type string */ ruleName: string; } export interface StaticAnalysisApiGetCustomRuleRevisionRequest { /** * The ruleset name * @type string */ rulesetName: string; /** * The rule name * @type string */ ruleName: string; /** * The revision ID * @type string */ id: string; } export interface StaticAnalysisApiGetCustomRulesetRequest { /** * The ruleset name * @type string */ rulesetName: string; } export interface StaticAnalysisApiGetSCAScanRequest { /** * The job identifier returned when the scan was submitted. * @type string */ jobId: string; } export interface StaticAnalysisApiListAiCustomRuleRevisionsRequest { /** * The ruleset name. * @type string */ rulesetName: string; /** * The rule name. * @type string */ ruleName: string; /** * The offset for pagination. * @type number */ pageOffset?: number; /** * The maximum number of revisions to return. * @type number */ pageLimit?: number; } export interface StaticAnalysisApiListAiCustomRulesetsRequest { /** * The offset for pagination. * @type number */ pageOffset?: number; /** * The maximum number of rulesets to return. * @type number */ pageLimit?: number; } export interface StaticAnalysisApiListCustomRuleRevisionsRequest { /** * The ruleset name * @type string */ rulesetName: string; /** * The rule name * @type string */ ruleName: string; /** * Pagination offset * @type number */ pageOffset?: number; /** * Pagination limit * @type number */ pageLimit?: number; } export interface StaticAnalysisApiRevertCustomRuleRevisionRequest { /** * The ruleset name * @type string */ rulesetName: string; /** * The rule name * @type string */ ruleName: string; /** * @type RevertCustomRuleRevisionRequest */ body: RevertCustomRuleRevisionRequest; } export interface StaticAnalysisApiUpdateAiCustomRulesetRequest { /** * The ruleset name. * @type string */ rulesetName: string; /** * @type AiCustomRulesetUpdateRequest */ body: AiCustomRulesetUpdateRequest; } export interface StaticAnalysisApiUpdateCustomRulesetRequest { /** * The ruleset name * @type string */ rulesetName: string; /** * @type CustomRulesetRequest */ body: CustomRulesetRequest; } export declare class StaticAnalysisApi { private requestFactory; private responseProcessor; private configuration; constructor(configuration: Configuration, requestFactory?: StaticAnalysisApiRequestFactory, responseProcessor?: StaticAnalysisApiResponseProcessor); /** * Create a new AI custom rule within a ruleset. * @param param The request object */ createAiCustomRule(param: StaticAnalysisApiCreateAiCustomRuleRequest, options?: Configuration): Promise<AiCustomRuleResponse>; /** * Create a new revision for an AI custom rule. * @param param The request object */ createAiCustomRuleRevision(param: StaticAnalysisApiCreateAiCustomRuleRevisionRequest, options?: Configuration): Promise<void>; /** * Create a new AI custom ruleset for the authenticated organization. * @param param The request object */ createAiCustomRuleset(param: StaticAnalysisApiCreateAiCustomRulesetRequest, options?: Configuration): Promise<AiCustomRulesetResponse>; /** * Add a new AI memory violation result for the authenticated organization. * @param param The request object */ createAiMemoryViolationResult(param: StaticAnalysisApiCreateAiMemoryViolationResultRequest, options?: Configuration): Promise<void>; /** * Create a new custom rule within a ruleset * @param param The request object */ createCustomRule(param: StaticAnalysisApiCreateCustomRuleRequest, options?: Configuration): Promise<CustomRuleResponse>; /** * Create a new revision for a custom rule * @param param The request object */ createCustomRuleRevision(param: StaticAnalysisApiCreateCustomRuleRevisionRequest, options?: Configuration): Promise<void>; /** * Create a new custom ruleset for the authenticated organization. * @param param The request object */ createCustomRuleset(param: StaticAnalysisApiCreateCustomRulesetRequest, options?: Configuration): Promise<CustomRulesetResponse>; /** * @param param The request object */ createSCAResolveVulnerableSymbols(param: StaticAnalysisApiCreateSCAResolveVulnerableSymbolsRequest, options?: Configuration): Promise<ResolveVulnerableSymbolsResponse>; /** * @param param The request object */ createSCAResult(param: StaticAnalysisApiCreateSCAResultRequest, options?: Configuration): Promise<void>; /** * @param param The request object */ createSCAScan(param: StaticAnalysisApiCreateSCAScanRequest, options?: Configuration): Promise<McpScanRequestResponse>; /** * Delete an AI custom rule by name within a ruleset. * @param param The request object */ deleteAiCustomRule(param: StaticAnalysisApiDeleteAiCustomRuleRequest, options?: Configuration): Promise<void>; /** * Delete an AI custom ruleset by name. * @param param The request object */ deleteAiCustomRuleset(param: StaticAnalysisApiDeleteAiCustomRulesetRequest, options?: Configuration): Promise<void>; /** * Delete an AI memory violation result by its numeric identifier. * @param param The request object */ deleteAiMemoryViolationResult(param: StaticAnalysisApiDeleteAiMemoryViolationResultRequest, options?: Configuration): Promise<void>; /** * Delete a custom rule * @param param The request object */ deleteCustomRule(param: StaticAnalysisApiDeleteCustomRuleRequest, options?: Configuration): Promise<void>; /** * Delete a custom ruleset * @param param The request object */ deleteCustomRuleset(param: StaticAnalysisApiDeleteCustomRulesetRequest, options?: Configuration): Promise<void>; /** * Get an AI custom rule by name within a ruleset. * @param param The request object */ getAiCustomRule(param: StaticAnalysisApiGetAiCustomRuleRequest, options?: Configuration): Promise<AiCustomRuleResponse>; /** * Get a specific revision of an AI custom rule. * @param param The request object */ getAiCustomRuleRevision(param: StaticAnalysisApiGetAiCustomRuleRevisionRequest, options?: Configuration): Promise<AiCustomRuleRevisionResponse>; /** * Get an AI custom ruleset by name. * @param param The request object */ getAiCustomRuleset(param: StaticAnalysisApiGetAiCustomRulesetRequest, options?: Configuration): Promise<AiCustomRulesetResponse>; /** * Get a custom rule by name * @param param The request object */ getCustomRule(param: StaticAnalysisApiGetCustomRuleRequest, options?: Configuration): Promise<CustomRuleResponse>; /** * Get a specific revision of a custom rule * @param param The request object */ getCustomRuleRevision(param: StaticAnalysisApiGetCustomRuleRevisionRequest, options?: Configuration): Promise<CustomRuleRevisionResponse>; /** * Get a custom ruleset by name * @param param The request object */ getCustomRuleset(param: StaticAnalysisApiGetCustomRulesetRequest, options?: Configuration): Promise<CustomRulesetResponse>; /** * @param param The request object */ getSCAScan(param: StaticAnalysisApiGetSCAScanRequest, options?: Configuration): Promise<ScanResultResponse>; /** * Get all revisions for an AI custom rule. * @param param The request object */ listAiCustomRuleRevisions(param: StaticAnalysisApiListAiCustomRuleRevisionsRequest, options?: Configuration): Promise<AiCustomRuleRevisionsResponse>; /** * Provide a paginated version of listAiCustomRuleRevisions returning a generator with all the items. */ listAiCustomRuleRevisionsWithPagination(param: StaticAnalysisApiListAiCustomRuleRevisionsRequest, options?: Configuration): AsyncGenerator<AiCustomRuleRevisionResponseData>; /** * Get all AI custom rulesets for the authenticated organization. * @param param The request object */ listAiCustomRulesets(param?: StaticAnalysisApiListAiCustomRulesetsRequest, options?: Configuration): Promise<AiCustomRulesetsResponse>; /** * Get all AI memory violation results for the authenticated organization. * @param param The request object */ listAiMemoryViolationResults(options?: Configuration): Promise<AiMemoryViolationResultsResponse>; /** * Get all AI prompts, including default prompts and custom AI rule prompts for the authenticated organization. * @param param The request object */ listAiPrompts(options?: Configuration): Promise<AiPromptsResponse>; /** * Get all revisions for a custom rule * @param param The request object */ listCustomRuleRevisions(param: StaticAnalysisApiListCustomRuleRevisionsRequest, options?: Configuration): Promise<CustomRuleRevisionsResponse>; /** * Provide a paginated version of listCustomRuleRevisions returning a generator with all the items. */ listCustomRuleRevisionsWithPagination(param: StaticAnalysisApiListCustomRuleRevisionsRequest, options?: Configuration): AsyncGenerator<CustomRuleRevision>; /** * Get all custom rulesets for the authenticated organization. * @param param The request object */ listCustomRulesets(options?: Configuration): Promise<CustomRulesetListResponse>; /** * @param param The request object */ listSCALicenses(options?: Configuration): Promise<LicensesListResponse>; /** * Revert a custom rule to a previous revision * @param param The request object */ revertCustomRuleRevision(param: StaticAnalysisApiRevertCustomRuleRevisionRequest, options?: Configuration): Promise<void>; /** * Update the description of an existing AI custom ruleset. * @param param The request object */ updateAiCustomRuleset(param: StaticAnalysisApiUpdateAiCustomRulesetRequest, options?: Configuration): Promise<void>; /** * Update an existing custom ruleset * @param param The request object */ updateCustomRuleset(param: StaticAnalysisApiUpdateCustomRulesetRequest, options?: Configuration): Promise<CustomRulesetResponse>; }