import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { DiffActionEnum } from "./diffactionenum.js"; import { ResourceTypeEnum } from "./resourcetypeenum.js"; /** * User who last updated the resource */ export type ResourceDiffDtoUpdatedBy = { /** * User ID */ id: string; /** * User first name */ firstName: string; /** * User last name */ lastName?: string | null | undefined; /** * User external ID */ externalId?: string | undefined; }; /** * Source resource information */ export type ResourceDiffDtoSourceResource = { /** * Resource ID (workflow ID or step ID) */ id?: string | null | undefined; /** * Resource name (workflow name or step name) */ name?: string | null | undefined; /** * User who last updated the resource */ updatedBy?: ResourceDiffDtoUpdatedBy | null | undefined; /** * When the resource was last updated */ updatedAt?: Date | null | undefined; }; /** * User who last updated the resource */ export type ResourceDiffDtoTargetResourceUpdatedBy = { /** * User ID */ id: string; /** * User first name */ firstName: string; /** * User last name */ lastName?: string | null | undefined; /** * User external ID */ externalId?: string | undefined; }; /** * Target resource information */ export type ResourceDiffDtoTargetResource = { /** * Resource ID (workflow ID or step ID) */ id?: string | null | undefined; /** * Resource name (workflow name or step name) */ name?: string | null | undefined; /** * User who last updated the resource */ updatedBy?: ResourceDiffDtoTargetResourceUpdatedBy | null | undefined; /** * When the resource was last updated */ updatedAt?: Date | null | undefined; }; /** * Detailed changes (only for modified resources) */ export type Diffs = { /** * Previous state of the resource (null for added resources) */ previous?: { [k: string]: any; } | null | undefined; /** * New state of the resource (null for deleted resources) */ new?: { [k: string]: any; } | null | undefined; }; export type ResourceDiffDto = { /** * Source resource information */ sourceResource?: ResourceDiffDtoSourceResource | null | undefined; /** * Target resource information */ targetResource?: ResourceDiffDtoTargetResource | null | undefined; /** * Type of the layout */ resourceType: ResourceTypeEnum; /** * Type of change */ action: DiffActionEnum; /** * Detailed changes (only for modified resources) */ diffs?: Diffs | undefined; /** * Step type (only for step resources) */ stepType?: string | undefined; /** * Previous index in steps array (for moved/deleted steps) */ previousIndex?: number | undefined; /** * New index in steps array (for moved/added steps) */ newIndex?: number | undefined; }; /** @internal */ export declare const ResourceDiffDtoUpdatedBy$inboundSchema: z.ZodType; export declare function resourceDiffDtoUpdatedByFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ResourceDiffDtoSourceResource$inboundSchema: z.ZodType; export declare function resourceDiffDtoSourceResourceFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ResourceDiffDtoTargetResourceUpdatedBy$inboundSchema: z.ZodType; export declare function resourceDiffDtoTargetResourceUpdatedByFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ResourceDiffDtoTargetResource$inboundSchema: z.ZodType; export declare function resourceDiffDtoTargetResourceFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Diffs$inboundSchema: z.ZodType; export declare function diffsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ResourceDiffDto$inboundSchema: z.ZodType; export declare function resourceDiffDtoFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=resourcediffdto.d.ts.map