import * as vulnScanner from "@distilled.cloud/cloudflare/vulnerability-scanner"; import * as Provider from "../../Provider.ts"; import { Resource } from "../../Resource.ts"; import { CloudflareEnvironment } from "../CloudflareEnvironment.ts"; import type { Providers } from "../Providers.ts"; declare const TypeId: "Cloudflare.VulnerabilityScanner.CredentialSet"; type TypeId = typeof TypeId; export interface VulnScannerCredentialSetProps { /** * Human-readable name for the credential set. If omitted, a unique name * is generated from the app, stage, and logical ID. * @default ${app}-${stage}-${id} */ name?: string; } export interface VulnScannerCredentialSetAttributes { /** Server-assigned credential set identifier (UUID). */ credentialSetId: string; /** The Cloudflare account the credential set belongs to. */ accountId: string; /** Human-readable name. */ name: string; } export type VulnScannerCredentialSet = Resource; /** * A Cloudflare Vulnerability Scanner credential set — a named container for * authentication credentials (headers/cookies) the DAST scanner attaches to * outgoing requests when scanning authenticated surfaces. * * Add individual credentials to the set with * {@link VulnScannerCredential | `Cloudflare.VulnerabilityScanner.VulnScannerCredential`}. * ### Creating a Credential Set * **Example:** Default name * ```typescript * const creds = yield* Cloudflare.VulnerabilityScanner.VulnScannerCredentialSet("scanner-creds", {}); * ``` * * **Example:** Explicit name * ```typescript * const creds = yield* Cloudflare.VulnerabilityScanner.VulnScannerCredentialSet("scanner-creds", { * name: "staging-credentials", * }); * ``` * * ### Adding Credentials * **Example:** Authorization header credential * ```typescript * const apiKey = yield* Cloudflare.VulnerabilityScanner.VulnScannerCredential("api-key", { * credentialSetId: creds.credentialSetId, * location: "header", * locationName: "authorization", // Cloudflare requires lowercase names * value: Redacted.make("Bearer ..."), * }); * ``` * * @see https://developers.cloudflare.com/security-center/ * * @resource * @product Vulnerability Scanner * @category Application Security */ export declare const VulnScannerCredentialSet: import("../../Resource.ts").ResourceClass; /** * Returns true if the given value is a VulnScannerCredentialSet resource. */ export declare const isVulnScannerCredentialSet: (value: unknown) => value is VulnScannerCredentialSet; export declare const VulnScannerCredentialSetProvider: () => import("effect/Layer").Layer, never, CloudflareEnvironment | import("../../Stack.ts").Stack | import("../../Stage.ts").Stage | vulnScanner.CloudflareOpContext>; export {}; //# sourceMappingURL=CredentialSet.d.ts.map