import * as z from "zod/v4"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as models from "../index.js"; export type DenyAccessRequestGlobals = { /** * Workspace name. Platform API keys already select a workspace; other authentication methods can configure it once on the SDK client. */ workspace?: string | undefined; }; export type DenyAccessRequestRequestBody = { method: string; /** * Deprecated and ignored. Actor identity comes from the authenticated user. */ actorId?: string | undefined; source?: { [k: string]: any | null; } | undefined; }; export type DenyAccessRequestRequest = { id: string; requestBody?: DenyAccessRequestRequestBody | undefined; }; export declare const DenyAccessRequestRequesterKind: { readonly User: "user"; readonly ServiceAccount: "serviceAccount"; }; export type DenyAccessRequestRequesterKind = ClosedEnum; export type DenyAccessRequestDeployment = { id: string; name: string; deploymentGroup?: models.DeploymentGroupInfo | undefined; }; /** * How risky an operation is (declared by the plugin metadata). */ export declare const DenyAccessRequestTier: { readonly ReadOnly: "read-only"; readonly Mutating: "mutating"; readonly Destructive: "destructive"; }; /** * How risky an operation is (declared by the plugin metadata). */ export type DenyAccessRequestTier = ClosedEnum; export type DenyAccessRequestCommand = { command: string; summary: string; params?: any | null | undefined; /** * How risky an operation is (declared by the plugin metadata). */ tier?: DenyAccessRequestTier | undefined; }; /** * How risky an operation is (declared by the plugin metadata). */ export declare const DenyAccessRequestMaxRisk: { readonly ReadOnly: "read-only"; readonly Mutating: "mutating"; readonly Destructive: "destructive"; }; /** * How risky an operation is (declared by the plugin metadata). */ export type DenyAccessRequestMaxRisk = ClosedEnum; /** * The rejected access request. */ export type DenyAccessRequestResponse = { id: string; requesterKind: DenyAccessRequestRequesterKind | null; requesterId: string | null; requestedExpiresAt: string | null; deploymentId: string; deployment?: DenyAccessRequestDeployment | undefined; remediationPlanId: string | null; title: string; reason: string | null; commands: Array; operationPattern: string | null; /** * How risky an operation is (declared by the plugin metadata). */ maxRisk: DenyAccessRequestMaxRisk | null; status: models.AccessRequestStatus; approvedUntil: string | null; }; /** @internal */ export type DenyAccessRequestRequestBody$Outbound = { method: string; actorId?: string | undefined; source?: { [k: string]: any | null; } | undefined; }; /** @internal */ export declare const DenyAccessRequestRequestBody$outboundSchema: z.ZodType; export declare function denyAccessRequestRequestBodyToJSON(denyAccessRequestRequestBody: DenyAccessRequestRequestBody): string; /** @internal */ export type DenyAccessRequestRequest$Outbound = { id: string; RequestBody?: DenyAccessRequestRequestBody$Outbound | undefined; }; /** @internal */ export declare const DenyAccessRequestRequest$outboundSchema: z.ZodType; export declare function denyAccessRequestRequestToJSON(denyAccessRequestRequest: DenyAccessRequestRequest): string; /** @internal */ export declare const DenyAccessRequestRequesterKind$inboundSchema: z.ZodEnum; /** @internal */ export declare const DenyAccessRequestDeployment$inboundSchema: z.ZodType; export declare function denyAccessRequestDeploymentFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DenyAccessRequestTier$inboundSchema: z.ZodEnum; /** @internal */ export declare const DenyAccessRequestCommand$inboundSchema: z.ZodType; export declare function denyAccessRequestCommandFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DenyAccessRequestMaxRisk$inboundSchema: z.ZodEnum; /** @internal */ export declare const DenyAccessRequestResponse$inboundSchema: z.ZodType; export declare function denyAccessRequestResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=denyaccessrequest.d.ts.map