import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; /** * @generated from enum preflight.v2.Orientation */ export declare enum Orientation { /** * @generated from enum value: ORIENTATION_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * @generated from enum value: ORIENTATION_PORTRAIT = 1; */ PORTRAIT = 1, /** * @generated from enum value: ORIENTATION_LANDSCAPE = 2; */ LANDSCAPE = 2, /** * @generated from enum value: ORIENTATION_SQUARE = 3; */ SQUARE = 3 } /** * @generated from message preflight.v2.FileType */ export declare class FileType extends Message { /** * @generated from field: int64 id = 1; */ id: bigint; /** * @generated from field: google.protobuf.Timestamp created_at = 2; */ createdAt?: Timestamp; /** * @generated from field: google.protobuf.Timestamp updated_at = 3; */ updatedAt?: Timestamp; /** * @generated from field: string name = 4; */ name: string; /** * @generated from field: repeated string extensions = 5; */ extensions: string[]; /** * @generated from field: repeated string mime_types = 6; */ mimeTypes: string[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.FileType"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): FileType; static fromJson(jsonValue: JsonValue, options?: Partial): FileType; static fromJsonString(jsonString: string, options?: Partial): FileType; static equals(a: FileType | PlainMessage | undefined, b: FileType | PlainMessage | undefined): boolean; } /** * @generated from message preflight.v2.PresetTemplate */ export declare class PresetTemplate extends Message { /** * @generated from field: int64 id = 1; */ id: bigint; /** * @generated from field: google.protobuf.Timestamp created_at = 2; */ createdAt?: Timestamp; /** * @generated from field: google.protobuf.Timestamp updated_at = 3; */ updatedAt?: Timestamp; /** * @generated from field: string name = 4; */ name: string; /** * @generated from field: preflight.v2.PresetTemplate.PageCountCheck page_count_check = 5; */ pageCountCheck?: PresetTemplate_PageCountCheck; /** * @generated from field: preflight.v2.PresetTemplate.AllowedFileTypesCheck allowed_file_types_check = 6; */ allowedFileTypesCheck?: PresetTemplate_AllowedFileTypesCheck; /** * @generated from field: preflight.v2.PresetTemplate.TrimSizeCheck trim_size_check = 7; */ trimSizeCheck?: PresetTemplate_TrimSizeCheck; /** * @generated from field: preflight.v2.PresetTemplate.FixedOrientationCheck fixed_orientation_check = 8; */ fixedOrientationCheck?: PresetTemplate_FixedOrientationCheck; /** * @generated from field: preflight.v2.PresetTemplate.BleedSizeCheck bleed_size_check = 9; */ bleedSizeCheck?: PresetTemplate_BleedSizeCheck; /** * @generated from field: preflight.v2.PresetTemplate.SafeZoneCheck safe_zone_check = 10; */ safeZoneCheck?: PresetTemplate_SafeZoneCheck; /** * @generated from field: preflight.v2.PresetTemplate.ImageResolutionCheck image_resolution_check = 11; */ imageResolutionCheck?: PresetTemplate_ImageResolutionCheck; /** * @generated from field: bool enable_customer_facing_checks = 12; */ enableCustomerFacingChecks: boolean; /** * @generated from field: bool is_default = 13; */ isDefault: boolean; /** * @generated from field: preflight.v2.PresetTemplate.FontsEmbeddedCheck fonts_embedded_check = 14; */ fontsEmbeddedCheck?: PresetTemplate_FontsEmbeddedCheck; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.PresetTemplate"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PresetTemplate; static fromJson(jsonValue: JsonValue, options?: Partial): PresetTemplate; static fromJsonString(jsonString: string, options?: Partial): PresetTemplate; static equals(a: PresetTemplate | PlainMessage | undefined, b: PresetTemplate | PlainMessage | undefined): boolean; } /** * @generated from message preflight.v2.PresetTemplate.PageCountCheck */ export declare class PresetTemplate_PageCountCheck extends Message { /** * @generated from field: bool enabled = 1; */ enabled: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.PresetTemplate.PageCountCheck"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PresetTemplate_PageCountCheck; static fromJson(jsonValue: JsonValue, options?: Partial): PresetTemplate_PageCountCheck; static fromJsonString(jsonString: string, options?: Partial): PresetTemplate_PageCountCheck; static equals(a: PresetTemplate_PageCountCheck | PlainMessage | undefined, b: PresetTemplate_PageCountCheck | PlainMessage | undefined): boolean; } /** * @generated from message preflight.v2.PresetTemplate.AllowedFileTypesCheck */ export declare class PresetTemplate_AllowedFileTypesCheck extends Message { /** * @generated from field: bool enabled = 1; */ enabled: boolean; /** * @generated from field: repeated preflight.v2.FileType allowed_file_types = 8; */ allowedFileTypes: FileType[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.PresetTemplate.AllowedFileTypesCheck"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PresetTemplate_AllowedFileTypesCheck; static fromJson(jsonValue: JsonValue, options?: Partial): PresetTemplate_AllowedFileTypesCheck; static fromJsonString(jsonString: string, options?: Partial): PresetTemplate_AllowedFileTypesCheck; static equals(a: PresetTemplate_AllowedFileTypesCheck | PlainMessage | undefined, b: PresetTemplate_AllowedFileTypesCheck | PlainMessage | undefined): boolean; } /** * @generated from message preflight.v2.PresetTemplate.TrimSizeCheck */ export declare class PresetTemplate_TrimSizeCheck extends Message { /** * @generated from field: bool enabled = 1; */ enabled: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.PresetTemplate.TrimSizeCheck"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PresetTemplate_TrimSizeCheck; static fromJson(jsonValue: JsonValue, options?: Partial): PresetTemplate_TrimSizeCheck; static fromJsonString(jsonString: string, options?: Partial): PresetTemplate_TrimSizeCheck; static equals(a: PresetTemplate_TrimSizeCheck | PlainMessage | undefined, b: PresetTemplate_TrimSizeCheck | PlainMessage | undefined): boolean; } /** * @generated from message preflight.v2.PresetTemplate.FixedOrientationCheck */ export declare class PresetTemplate_FixedOrientationCheck extends Message { /** * @generated from field: bool enabled = 1; */ enabled: boolean; /** * @generated from field: preflight.v2.Orientation orientation = 2; */ orientation: Orientation; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.PresetTemplate.FixedOrientationCheck"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PresetTemplate_FixedOrientationCheck; static fromJson(jsonValue: JsonValue, options?: Partial): PresetTemplate_FixedOrientationCheck; static fromJsonString(jsonString: string, options?: Partial): PresetTemplate_FixedOrientationCheck; static equals(a: PresetTemplate_FixedOrientationCheck | PlainMessage | undefined, b: PresetTemplate_FixedOrientationCheck | PlainMessage | undefined): boolean; } /** * @generated from message preflight.v2.PresetTemplate.BleedSizeCheck */ export declare class PresetTemplate_BleedSizeCheck extends Message { /** * @generated from field: bool enabled = 1; */ enabled: boolean; /** * @generated from field: double bleed_size_top = 2; */ bleedSizeTop: number; /** * @generated from field: double bleed_size_bottom = 3; */ bleedSizeBottom: number; /** * @generated from field: double bleed_size_left = 4; */ bleedSizeLeft: number; /** * @generated from field: double bleed_size_right = 5; */ bleedSizeRight: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.PresetTemplate.BleedSizeCheck"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PresetTemplate_BleedSizeCheck; static fromJson(jsonValue: JsonValue, options?: Partial): PresetTemplate_BleedSizeCheck; static fromJsonString(jsonString: string, options?: Partial): PresetTemplate_BleedSizeCheck; static equals(a: PresetTemplate_BleedSizeCheck | PlainMessage | undefined, b: PresetTemplate_BleedSizeCheck | PlainMessage | undefined): boolean; } /** * @generated from message preflight.v2.PresetTemplate.SafeZoneCheck */ export declare class PresetTemplate_SafeZoneCheck extends Message { /** * @generated from field: bool enabled = 1; */ enabled: boolean; /** * @generated from field: double safe_zone_top = 2; */ safeZoneTop: number; /** * @generated from field: double safe_zone_bottom = 3; */ safeZoneBottom: number; /** * @generated from field: double safe_zone_left = 4; */ safeZoneLeft: number; /** * @generated from field: double safe_zone_right = 5; */ safeZoneRight: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.PresetTemplate.SafeZoneCheck"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PresetTemplate_SafeZoneCheck; static fromJson(jsonValue: JsonValue, options?: Partial): PresetTemplate_SafeZoneCheck; static fromJsonString(jsonString: string, options?: Partial): PresetTemplate_SafeZoneCheck; static equals(a: PresetTemplate_SafeZoneCheck | PlainMessage | undefined, b: PresetTemplate_SafeZoneCheck | PlainMessage | undefined): boolean; } /** * @generated from message preflight.v2.PresetTemplate.ImageResolutionCheck */ export declare class PresetTemplate_ImageResolutionCheck extends Message { /** * @generated from field: bool enabled = 1; */ enabled: boolean; /** * @generated from field: int32 image_res_error_below = 2; */ imageResErrorBelow: number; /** * @generated from field: int32 image_res_warn_below = 3; */ imageResWarnBelow: number; /** * @generated from field: int32 image_res_recommended = 4; */ imageResRecommended: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.PresetTemplate.ImageResolutionCheck"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PresetTemplate_ImageResolutionCheck; static fromJson(jsonValue: JsonValue, options?: Partial): PresetTemplate_ImageResolutionCheck; static fromJsonString(jsonString: string, options?: Partial): PresetTemplate_ImageResolutionCheck; static equals(a: PresetTemplate_ImageResolutionCheck | PlainMessage | undefined, b: PresetTemplate_ImageResolutionCheck | PlainMessage | undefined): boolean; } /** * @generated from message preflight.v2.PresetTemplate.FontsEmbeddedCheck */ export declare class PresetTemplate_FontsEmbeddedCheck extends Message { /** * @generated from field: bool enabled = 1; */ enabled: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.PresetTemplate.FontsEmbeddedCheck"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PresetTemplate_FontsEmbeddedCheck; static fromJson(jsonValue: JsonValue, options?: Partial): PresetTemplate_FontsEmbeddedCheck; static fromJsonString(jsonString: string, options?: Partial): PresetTemplate_FontsEmbeddedCheck; static equals(a: PresetTemplate_FontsEmbeddedCheck | PlainMessage | undefined, b: PresetTemplate_FontsEmbeddedCheck | PlainMessage | undefined): boolean; } /** * Preset Template Request/Response Messages * * @generated from message preflight.v2.GetPresetTemplateRequest */ export declare class GetPresetTemplateRequest extends Message { /** * @generated from field: int64 id = 1; */ id: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.GetPresetTemplateRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): GetPresetTemplateRequest; static fromJson(jsonValue: JsonValue, options?: Partial): GetPresetTemplateRequest; static fromJsonString(jsonString: string, options?: Partial): GetPresetTemplateRequest; static equals(a: GetPresetTemplateRequest | PlainMessage | undefined, b: GetPresetTemplateRequest | PlainMessage | undefined): boolean; } /** * @generated from message preflight.v2.GetPresetTemplateResponse */ export declare class GetPresetTemplateResponse extends Message { /** * @generated from field: preflight.v2.PresetTemplate template = 1; */ template?: PresetTemplate; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.GetPresetTemplateResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): GetPresetTemplateResponse; static fromJson(jsonValue: JsonValue, options?: Partial): GetPresetTemplateResponse; static fromJsonString(jsonString: string, options?: Partial): GetPresetTemplateResponse; static equals(a: GetPresetTemplateResponse | PlainMessage | undefined, b: GetPresetTemplateResponse | PlainMessage | undefined): boolean; } /** * @generated from message preflight.v2.ListPresetTemplatesRequest */ export declare class ListPresetTemplatesRequest extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.ListPresetTemplatesRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ListPresetTemplatesRequest; static fromJson(jsonValue: JsonValue, options?: Partial): ListPresetTemplatesRequest; static fromJsonString(jsonString: string, options?: Partial): ListPresetTemplatesRequest; static equals(a: ListPresetTemplatesRequest | PlainMessage | undefined, b: ListPresetTemplatesRequest | PlainMessage | undefined): boolean; } /** * @generated from message preflight.v2.ListPresetTemplatesResponse */ export declare class ListPresetTemplatesResponse extends Message { /** * @generated from field: repeated preflight.v2.PresetTemplate templates = 1; */ templates: PresetTemplate[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.ListPresetTemplatesResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ListPresetTemplatesResponse; static fromJson(jsonValue: JsonValue, options?: Partial): ListPresetTemplatesResponse; static fromJsonString(jsonString: string, options?: Partial): ListPresetTemplatesResponse; static equals(a: ListPresetTemplatesResponse | PlainMessage | undefined, b: ListPresetTemplatesResponse | PlainMessage | undefined): boolean; } /** * @generated from message preflight.v2.CreatePresetTemplateRequest */ export declare class CreatePresetTemplateRequest extends Message { /** * @generated from field: preflight.v2.PresetTemplate template = 1; */ template?: PresetTemplate; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.CreatePresetTemplateRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): CreatePresetTemplateRequest; static fromJson(jsonValue: JsonValue, options?: Partial): CreatePresetTemplateRequest; static fromJsonString(jsonString: string, options?: Partial): CreatePresetTemplateRequest; static equals(a: CreatePresetTemplateRequest | PlainMessage | undefined, b: CreatePresetTemplateRequest | PlainMessage | undefined): boolean; } /** * @generated from message preflight.v2.CreatePresetTemplateResponse */ export declare class CreatePresetTemplateResponse extends Message { /** * @generated from field: preflight.v2.PresetTemplate template = 1; */ template?: PresetTemplate; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.CreatePresetTemplateResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): CreatePresetTemplateResponse; static fromJson(jsonValue: JsonValue, options?: Partial): CreatePresetTemplateResponse; static fromJsonString(jsonString: string, options?: Partial): CreatePresetTemplateResponse; static equals(a: CreatePresetTemplateResponse | PlainMessage | undefined, b: CreatePresetTemplateResponse | PlainMessage | undefined): boolean; } /** * @generated from message preflight.v2.UpdatePresetTemplateRequest */ export declare class UpdatePresetTemplateRequest extends Message { /** * @generated from field: preflight.v2.PresetTemplate template = 1; */ template?: PresetTemplate; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.UpdatePresetTemplateRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): UpdatePresetTemplateRequest; static fromJson(jsonValue: JsonValue, options?: Partial): UpdatePresetTemplateRequest; static fromJsonString(jsonString: string, options?: Partial): UpdatePresetTemplateRequest; static equals(a: UpdatePresetTemplateRequest | PlainMessage | undefined, b: UpdatePresetTemplateRequest | PlainMessage | undefined): boolean; } /** * @generated from message preflight.v2.UpdatePresetTemplateResponse */ export declare class UpdatePresetTemplateResponse extends Message { /** * @generated from field: preflight.v2.PresetTemplate template = 1; */ template?: PresetTemplate; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.UpdatePresetTemplateResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): UpdatePresetTemplateResponse; static fromJson(jsonValue: JsonValue, options?: Partial): UpdatePresetTemplateResponse; static fromJsonString(jsonString: string, options?: Partial): UpdatePresetTemplateResponse; static equals(a: UpdatePresetTemplateResponse | PlainMessage | undefined, b: UpdatePresetTemplateResponse | PlainMessage | undefined): boolean; } /** * @generated from message preflight.v2.SetPresetTemplateAsDefaultRequest */ export declare class SetPresetTemplateAsDefaultRequest extends Message { /** * @generated from field: int64 id = 1; */ id: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.SetPresetTemplateAsDefaultRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SetPresetTemplateAsDefaultRequest; static fromJson(jsonValue: JsonValue, options?: Partial): SetPresetTemplateAsDefaultRequest; static fromJsonString(jsonString: string, options?: Partial): SetPresetTemplateAsDefaultRequest; static equals(a: SetPresetTemplateAsDefaultRequest | PlainMessage | undefined, b: SetPresetTemplateAsDefaultRequest | PlainMessage | undefined): boolean; } /** * @generated from message preflight.v2.SetPresetTemplateAsDefaultResponse */ export declare class SetPresetTemplateAsDefaultResponse extends Message { /** * @generated from field: preflight.v2.PresetTemplate template = 1; */ template?: PresetTemplate; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.SetPresetTemplateAsDefaultResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SetPresetTemplateAsDefaultResponse; static fromJson(jsonValue: JsonValue, options?: Partial): SetPresetTemplateAsDefaultResponse; static fromJsonString(jsonString: string, options?: Partial): SetPresetTemplateAsDefaultResponse; static equals(a: SetPresetTemplateAsDefaultResponse | PlainMessage | undefined, b: SetPresetTemplateAsDefaultResponse | PlainMessage | undefined): boolean; } /** * Delete a preset template by ID, only if it is not the default template * * @generated from message preflight.v2.DeletePresetTemplateRequest */ export declare class DeletePresetTemplateRequest extends Message { /** * @generated from field: int64 id = 1; */ id: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.DeletePresetTemplateRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DeletePresetTemplateRequest; static fromJson(jsonValue: JsonValue, options?: Partial): DeletePresetTemplateRequest; static fromJsonString(jsonString: string, options?: Partial): DeletePresetTemplateRequest; static equals(a: DeletePresetTemplateRequest | PlainMessage | undefined, b: DeletePresetTemplateRequest | PlainMessage | undefined): boolean; } /** * Returns true if the template was deleted successfully * * @generated from message preflight.v2.DeletePresetTemplateResponse */ export declare class DeletePresetTemplateResponse extends Message { /** * @generated from field: bool success = 1; */ success: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.DeletePresetTemplateResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DeletePresetTemplateResponse; static fromJson(jsonValue: JsonValue, options?: Partial): DeletePresetTemplateResponse; static fromJsonString(jsonString: string, options?: Partial): DeletePresetTemplateResponse; static equals(a: DeletePresetTemplateResponse | PlainMessage | undefined, b: DeletePresetTemplateResponse | PlainMessage | undefined): boolean; } /** * @generated from message preflight.v2.GetDefaultPresetTemplateRequest */ export declare class GetDefaultPresetTemplateRequest extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.GetDefaultPresetTemplateRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): GetDefaultPresetTemplateRequest; static fromJson(jsonValue: JsonValue, options?: Partial): GetDefaultPresetTemplateRequest; static fromJsonString(jsonString: string, options?: Partial): GetDefaultPresetTemplateRequest; static equals(a: GetDefaultPresetTemplateRequest | PlainMessage | undefined, b: GetDefaultPresetTemplateRequest | PlainMessage | undefined): boolean; } /** * @generated from message preflight.v2.GetDefaultPresetTemplateResponse */ export declare class GetDefaultPresetTemplateResponse extends Message { /** * @generated from field: preflight.v2.PresetTemplate template = 1; */ template?: PresetTemplate; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.GetDefaultPresetTemplateResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): GetDefaultPresetTemplateResponse; static fromJson(jsonValue: JsonValue, options?: Partial): GetDefaultPresetTemplateResponse; static fromJsonString(jsonString: string, options?: Partial): GetDefaultPresetTemplateResponse; static equals(a: GetDefaultPresetTemplateResponse | PlainMessage | undefined, b: GetDefaultPresetTemplateResponse | PlainMessage | undefined): boolean; }