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 ApproveAccessRequestGlobals = { /** * 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 ApproveAccessRequestRequestBody = { method: string; /** * Deprecated and ignored. Actor identity comes from the authenticated user. */ actorId?: string | undefined; source?: { [k: string]: any | null; } | undefined; approvedForMinutes?: number | undefined; }; export type ApproveAccessRequestRequest = { id: string; requestBody?: ApproveAccessRequestRequestBody | undefined; }; export declare const ApproveAccessRequestRequesterKind: { readonly User: "user"; readonly ServiceAccount: "serviceAccount"; }; export type ApproveAccessRequestRequesterKind = ClosedEnum; export type ApproveAccessRequestDeployment = { id: string; name: string; deploymentGroup?: models.DeploymentGroupInfo | undefined; }; /** * How risky an operation is (declared by the plugin metadata). */ export declare const ApproveAccessRequestTier: { readonly ReadOnly: "read-only"; readonly Mutating: "mutating"; readonly Destructive: "destructive"; }; /** * How risky an operation is (declared by the plugin metadata). */ export type ApproveAccessRequestTier = ClosedEnum; export type ApproveAccessRequestCommand = { command: string; summary: string; params?: any | null | undefined; /** * How risky an operation is (declared by the plugin metadata). */ tier?: ApproveAccessRequestTier | undefined; }; /** * How risky an operation is (declared by the plugin metadata). */ export declare const ApproveAccessRequestMaxRisk: { readonly ReadOnly: "read-only"; readonly Mutating: "mutating"; readonly Destructive: "destructive"; }; /** * How risky an operation is (declared by the plugin metadata). */ export type ApproveAccessRequestMaxRisk = ClosedEnum; /** * The approved access request. */ export type ApproveAccessRequestResponse = { id: string; requesterKind: ApproveAccessRequestRequesterKind | null; requesterId: string | null; requestedExpiresAt: string | null; deploymentId: string; deployment?: ApproveAccessRequestDeployment | 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: ApproveAccessRequestMaxRisk | null; status: models.AccessRequestStatus; approvedUntil: string | null; approvalMethod: string; }; /** @internal */ export type ApproveAccessRequestRequestBody$Outbound = { method: string; actorId?: string | undefined; source?: { [k: string]: any | null; } | undefined; approvedForMinutes?: number | undefined; }; /** @internal */ export declare const ApproveAccessRequestRequestBody$outboundSchema: z.ZodType; export declare function approveAccessRequestRequestBodyToJSON(approveAccessRequestRequestBody: ApproveAccessRequestRequestBody): string; /** @internal */ export type ApproveAccessRequestRequest$Outbound = { id: string; RequestBody?: ApproveAccessRequestRequestBody$Outbound | undefined; }; /** @internal */ export declare const ApproveAccessRequestRequest$outboundSchema: z.ZodType; export declare function approveAccessRequestRequestToJSON(approveAccessRequestRequest: ApproveAccessRequestRequest): string; /** @internal */ export declare const ApproveAccessRequestRequesterKind$inboundSchema: z.ZodEnum; /** @internal */ export declare const ApproveAccessRequestDeployment$inboundSchema: z.ZodType; export declare function approveAccessRequestDeploymentFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ApproveAccessRequestTier$inboundSchema: z.ZodEnum; /** @internal */ export declare const ApproveAccessRequestCommand$inboundSchema: z.ZodType; export declare function approveAccessRequestCommandFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ApproveAccessRequestMaxRisk$inboundSchema: z.ZodEnum; /** @internal */ export declare const ApproveAccessRequestResponse$inboundSchema: z.ZodType; export declare function approveAccessRequestResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=approveaccessrequest.d.ts.map