import * as z from "zod"; import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The audit record type, one of: * * @remarks * - `AUDIT_TYPE_UNSPECIFIED` - Default/Null audit type. * - `INVESTIGATION_REQUEST_UPDATE` - Used to update an investigation request. * - `INVESTIGATION_STATE` - Used for recording investigation state changed events. * - `COMMENT` - Used for adding a comment to investigation. */ export declare enum AuditType { AuditTypeUnspecified = "AUDIT_TYPE_UNSPECIFIED", InvestigationRequestUpdate = "INVESTIGATION_REQUEST_UPDATE", InvestigationState = "INVESTIGATION_STATE", Comment = "COMMENT" } /** * The audit record type, one of: * * @remarks * - `AUDIT_TYPE_UNSPECIFIED` - Default/Null audit type. * - `INVESTIGATION_REQUEST_UPDATE` - Used to update an investigation request. * - `INVESTIGATION_STATE` - Used for recording investigation state changed events. * - `COMMENT` - Used for adding a comment to investigation. */ export type AuditTypeOpen = OpenEnum; /** * Audit trail details */ export type AuditTrail = { /** * The audit record type, one of: * * @remarks * - `AUDIT_TYPE_UNSPECIFIED` - Default/Null audit type. * - `INVESTIGATION_REQUEST_UPDATE` - Used to update an investigation request. * - `INVESTIGATION_STATE` - Used for recording investigation state changed events. * - `COMMENT` - Used for adding a comment to investigation. */ auditType?: AuditTypeOpen | undefined; /** * Comment relating to why the audit was saved */ comment?: string | undefined; /** * The name of the field that has been updated */ field?: string | undefined; /** * The new value for the field that was updated */ newValue?: string | undefined; /** * The prior value for the field that was updated */ oldValue?: string | undefined; /** * The date the user updated the investigation */ updateTime?: Date | null | undefined; /** * The user that made the update to the investigation */ updateUser?: string | undefined; }; /** @internal */ export declare const AuditType$inboundSchema: z.ZodType; /** @internal */ export declare const AuditType$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AuditType$ { /** @deprecated use `AuditType$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AuditType$outboundSchema` instead. */ const outboundSchema: z.ZodType; } /** @internal */ export declare const AuditTrail$inboundSchema: z.ZodType; /** @internal */ export type AuditTrail$Outbound = { audit_type?: string | undefined; comment?: string | undefined; field?: string | undefined; new_value?: string | undefined; old_value?: string | undefined; update_time?: string | null | undefined; update_user?: string | undefined; }; /** @internal */ export declare const AuditTrail$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AuditTrail$ { /** @deprecated use `AuditTrail$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AuditTrail$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AuditTrail$Outbound` instead. */ type Outbound = AuditTrail$Outbound; } export declare function auditTrailToJSON(auditTrail: AuditTrail): string; export declare function auditTrailFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=audittrail.d.ts.map