import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; import type { Timestamp } from "@bufbuild/protobuf/wkt"; import type { Media } from "../../media/v1/media_pb.js"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file artworking/v1/job-share.proto. */ export declare const file_artworking_v1_job_share: GenFile; /** * @generated from message artworking.v1.JobShare */ export type JobShare = Message<"artworking.v1.JobShare"> & { /** * @generated from field: string id = 1; */ id: string; /** * @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 job_id = 4; */ jobId: string; /** * @generated from field: string share_token = 5; */ shareToken: string; /** * @generated from field: artworking.v1.ShareType share_type = 6; */ shareType: ShareType; /** * @generated from field: bool is_password_protected = 7; */ isPasswordProtected: boolean; /** * @generated from field: google.protobuf.Timestamp expires_at = 8; */ expiresAt?: Timestamp; /** * @generated from field: int32 access_count = 9; */ accessCount: number; /** * @generated from field: int32 max_accesses = 10; */ maxAccesses: number; /** * @generated from field: int64 created_by = 11; */ createdBy: bigint; /** * @generated from field: string share_email = 12; */ shareEmail: string; /** * @generated from field: bool is_active = 13; */ isActive: boolean; /** * @generated from field: string message = 14; */ message: string; /** * @generated from field: string password = 15; */ password: string; /** * @generated from field: string email_ref = 16; */ emailRef: string; /** * @generated from field: string share_url = 17; */ shareUrl: string; /** * @generated from field: int64 supplier_id = 18; */ supplierId: bigint; }; /** * Describes the message artworking.v1.JobShare. * Use `create(JobShareSchema)` to create a new message. */ export declare const JobShareSchema: GenMessage; /** * @generated from message artworking.v1.JobShareAccessLog */ export type JobShareAccessLog = Message<"artworking.v1.JobShareAccessLog"> & { /** * @generated from field: string id = 1; */ id: string; /** * @generated from field: google.protobuf.Timestamp created_at = 2; */ createdAt?: Timestamp; /** * @generated from field: string share_id = 3; */ shareId: string; /** * @generated from field: google.protobuf.Timestamp accessed_at = 4; */ accessedAt?: Timestamp; /** * @generated from field: string ip_address = 5; */ ipAddress: string; /** * @generated from field: string user_agent = 6; */ userAgent: string; /** * @generated from field: int64 media_item_id = 7; */ mediaItemId: bigint; /** * @generated from field: string file_name = 8; */ fileName: string; /** * "view_portal", "download_file" * * @generated from field: string action = 9; */ action: string; /** * @generated from field: bool download_success = 10; */ downloadSuccess: boolean; }; /** * Describes the message artworking.v1.JobShareAccessLog. * Use `create(JobShareAccessLogSchema)` to create a new message. */ export declare const JobShareAccessLogSchema: GenMessage; /** * Job management RPCs * * @generated from message artworking.v1.CreateJobShareRequest */ export type CreateJobShareRequest = Message<"artworking.v1.CreateJobShareRequest"> & { /** * @generated from field: string job_id = 1; */ jobId: string; /** * @generated from field: artworking.v1.ShareType share_type = 2; */ shareType: ShareType; /** * @generated from field: string password = 3; */ password: string; /** * @generated from field: int32 expiry_days = 4; */ expiryDays: number; /** * @generated from field: int32 max_accesses = 5; */ maxAccesses: number; /** * @generated from field: string message = 6; */ message: string; }; /** * Describes the message artworking.v1.CreateJobShareRequest. * Use `create(CreateJobShareRequestSchema)` to create a new message. */ export declare const CreateJobShareRequestSchema: GenMessage; /** * @generated from message artworking.v1.CreateJobShareResponse */ export type CreateJobShareResponse = Message<"artworking.v1.CreateJobShareResponse"> & { /** * @generated from field: artworking.v1.JobShare job_share = 1; */ jobShare?: JobShare; /** * @generated from field: string share_url = 2; */ shareUrl: string; }; /** * Describes the message artworking.v1.CreateJobShareResponse. * Use `create(CreateJobShareResponseSchema)` to create a new message. */ export declare const CreateJobShareResponseSchema: GenMessage; /** * @generated from message artworking.v1.GetJobShareRequest */ export type GetJobShareRequest = Message<"artworking.v1.GetJobShareRequest"> & { /** * @generated from field: string share_id = 1; */ shareId: string; }; /** * Describes the message artworking.v1.GetJobShareRequest. * Use `create(GetJobShareRequestSchema)` to create a new message. */ export declare const GetJobShareRequestSchema: GenMessage; /** * @generated from message artworking.v1.GetJobShareResponse */ export type GetJobShareResponse = Message<"artworking.v1.GetJobShareResponse"> & { /** * @generated from field: artworking.v1.JobShare job_share = 1; */ jobShare?: JobShare; }; /** * Describes the message artworking.v1.GetJobShareResponse. * Use `create(GetJobShareResponseSchema)` to create a new message. */ export declare const GetJobShareResponseSchema: GenMessage; /** * @generated from message artworking.v1.ListJobSharesRequest */ export type ListJobSharesRequest = Message<"artworking.v1.ListJobSharesRequest"> & { /** * @generated from field: string job_id = 1; */ jobId: string; }; /** * Describes the message artworking.v1.ListJobSharesRequest. * Use `create(ListJobSharesRequestSchema)` to create a new message. */ export declare const ListJobSharesRequestSchema: GenMessage; /** * @generated from message artworking.v1.ListJobSharesResponse */ export type ListJobSharesResponse = Message<"artworking.v1.ListJobSharesResponse"> & { /** * @generated from field: repeated artworking.v1.JobShare job_shares = 1; */ jobShares: JobShare[]; }; /** * Describes the message artworking.v1.ListJobSharesResponse. * Use `create(ListJobSharesResponseSchema)` to create a new message. */ export declare const ListJobSharesResponseSchema: GenMessage; /** * @generated from message artworking.v1.DeactivateJobShareRequest */ export type DeactivateJobShareRequest = Message<"artworking.v1.DeactivateJobShareRequest"> & { /** * @generated from field: string share_id = 1; */ shareId: string; }; /** * Describes the message artworking.v1.DeactivateJobShareRequest. * Use `create(DeactivateJobShareRequestSchema)` to create a new message. */ export declare const DeactivateJobShareRequestSchema: GenMessage; /** * @generated from message artworking.v1.DeactivateJobShareResponse */ export type DeactivateJobShareResponse = Message<"artworking.v1.DeactivateJobShareResponse"> & { /** * @generated from field: bool success = 1; */ success: boolean; }; /** * Describes the message artworking.v1.DeactivateJobShareResponse. * Use `create(DeactivateJobShareResponseSchema)` to create a new message. */ export declare const DeactivateJobShareResponseSchema: GenMessage; /** * Public share RPCs (no auth required) * * @generated from message artworking.v1.GetShareInfoRequest */ export type GetShareInfoRequest = Message<"artworking.v1.GetShareInfoRequest"> & { /** * @generated from field: string share_token = 1; */ shareToken: string; }; /** * Describes the message artworking.v1.GetShareInfoRequest. * Use `create(GetShareInfoRequestSchema)` to create a new message. */ export declare const GetShareInfoRequestSchema: GenMessage; /** * @generated from message artworking.v1.GetShareInfoResponse */ export type GetShareInfoResponse = Message<"artworking.v1.GetShareInfoResponse"> & { /** * @generated from field: artworking.v1.JobShare job_share = 1; */ jobShare?: JobShare; /** * @generated from field: string job_name = 2; */ jobName: string; /** * @generated from field: string company_name = 3; */ companyName: string; /** * @generated from field: int32 file_count = 4; */ fileCount: number; }; /** * Describes the message artworking.v1.GetShareInfoResponse. * Use `create(GetShareInfoResponseSchema)` to create a new message. */ export declare const GetShareInfoResponseSchema: GenMessage; /** * @generated from message artworking.v1.VerifySharePasswordRequest */ export type VerifySharePasswordRequest = Message<"artworking.v1.VerifySharePasswordRequest"> & { /** * @generated from field: string share_token = 1; */ shareToken: string; /** * @generated from field: string password = 2; */ password: string; }; /** * Describes the message artworking.v1.VerifySharePasswordRequest. * Use `create(VerifySharePasswordRequestSchema)` to create a new message. */ export declare const VerifySharePasswordRequestSchema: GenMessage; /** * @generated from message artworking.v1.VerifySharePasswordResponse */ export type VerifySharePasswordResponse = Message<"artworking.v1.VerifySharePasswordResponse"> & { /** * @generated from field: bool valid = 1; */ valid: boolean; /** * temporary token for file access * * @generated from field: string access_token = 2; */ accessToken: string; }; /** * Describes the message artworking.v1.VerifySharePasswordResponse. * Use `create(VerifySharePasswordResponseSchema)` to create a new message. */ export declare const VerifySharePasswordResponseSchema: GenMessage; /** * @generated from message artworking.v1.ListShareFilesRequest */ export type ListShareFilesRequest = Message<"artworking.v1.ListShareFilesRequest"> & { /** * @generated from field: string share_token = 1; */ shareToken: string; /** * required if password protected * * @generated from field: string access_token = 2; */ accessToken: string; }; /** * Describes the message artworking.v1.ListShareFilesRequest. * Use `create(ListShareFilesRequestSchema)` to create a new message. */ export declare const ListShareFilesRequestSchema: GenMessage; /** * @generated from message artworking.v1.ListShareFilesResponse */ export type ListShareFilesResponse = Message<"artworking.v1.ListShareFilesResponse"> & { /** * @generated from field: repeated media.v1.Media files = 1; */ files: Media[]; }; /** * Describes the message artworking.v1.ListShareFilesResponse. * Use `create(ListShareFilesResponseSchema)` to create a new message. */ export declare const ListShareFilesResponseSchema: GenMessage; /** * @generated from message artworking.v1.GetShareFileDownloadRequest */ export type GetShareFileDownloadRequest = Message<"artworking.v1.GetShareFileDownloadRequest"> & { /** * @generated from field: string share_token = 1; */ shareToken: string; /** * @generated from field: string file_id = 2; */ fileId: string; /** * required if password protected * * @generated from field: string access_token = 3; */ accessToken: string; }; /** * Describes the message artworking.v1.GetShareFileDownloadRequest. * Use `create(GetShareFileDownloadRequestSchema)` to create a new message. */ export declare const GetShareFileDownloadRequestSchema: GenMessage; /** * @generated from message artworking.v1.GetShareFileDownloadResponse */ export type GetShareFileDownloadResponse = Message<"artworking.v1.GetShareFileDownloadResponse"> & { /** * signed URL * * @generated from field: string download_url = 1; */ downloadUrl: string; /** * @generated from field: google.protobuf.Timestamp expires_at = 2; */ expiresAt?: Timestamp; }; /** * Describes the message artworking.v1.GetShareFileDownloadResponse. * Use `create(GetShareFileDownloadResponseSchema)` to create a new message. */ export declare const GetShareFileDownloadResponseSchema: GenMessage; /** * @generated from message artworking.v1.GetShareStatsRequest */ export type GetShareStatsRequest = Message<"artworking.v1.GetShareStatsRequest"> & { /** * @generated from field: string share_id = 1; */ shareId: string; }; /** * Describes the message artworking.v1.GetShareStatsRequest. * Use `create(GetShareStatsRequestSchema)` to create a new message. */ export declare const GetShareStatsRequestSchema: GenMessage; /** * @generated from message artworking.v1.GetShareStatsResponse */ export type GetShareStatsResponse = Message<"artworking.v1.GetShareStatsResponse"> & { /** * @generated from field: map media_item_last_downloaded = 1; */ mediaItemLastDownloaded: { [key: string]: Timestamp; }; /** * @generated from field: google.protobuf.Timestamp last_page_access = 2; */ lastPageAccess?: Timestamp; }; /** * Describes the message artworking.v1.GetShareStatsResponse. * Use `create(GetShareStatsResponseSchema)` to create a new message. */ export declare const GetShareStatsResponseSchema: GenMessage; /** * @generated from message artworking.v1.RecordFileDownloadRequest */ export type RecordFileDownloadRequest = Message<"artworking.v1.RecordFileDownloadRequest"> & { /** * @generated from field: string share_token = 1; */ shareToken: string; /** * @generated from field: int64 media_item_id = 2; */ mediaItemId: bigint; /** * @generated from field: string file_name = 3; */ fileName: string; /** * @generated from field: bool success = 4; */ success: boolean; }; /** * Describes the message artworking.v1.RecordFileDownloadRequest. * Use `create(RecordFileDownloadRequestSchema)` to create a new message. */ export declare const RecordFileDownloadRequestSchema: GenMessage; /** * @generated from message artworking.v1.RecordFileDownloadResponse */ export type RecordFileDownloadResponse = Message<"artworking.v1.RecordFileDownloadResponse"> & { /** * @generated from field: bool recorded = 1; */ recorded: boolean; }; /** * Describes the message artworking.v1.RecordFileDownloadResponse. * Use `create(RecordFileDownloadResponseSchema)` to create a new message. */ export declare const RecordFileDownloadResponseSchema: GenMessage; /** * @generated from enum artworking.v1.ShareType */ export declare enum ShareType { /** * @generated from enum value: SHARE_TYPE_UNDEFINED = 0; */ UNDEFINED = 0, /** * @generated from enum value: SHARE_TYPE_EMAIL = 1; */ EMAIL = 1, /** * @generated from enum value: SHARE_TYPE_LINK = 2; */ LINK = 2 } /** * Describes the enum artworking.v1.ShareType. */ export declare const ShareTypeSchema: GenEnum; /** * Public share service (separate from main ArtworkingService) * * @generated from service artworking.v1.JobSharePublicService */ export declare const JobSharePublicService: GenService<{ /** * @generated from rpc artworking.v1.JobSharePublicService.GetShareInfo */ getShareInfo: { methodKind: "unary"; input: typeof GetShareInfoRequestSchema; output: typeof GetShareInfoResponseSchema; }; /** * @generated from rpc artworking.v1.JobSharePublicService.VerifySharePassword */ verifySharePassword: { methodKind: "unary"; input: typeof VerifySharePasswordRequestSchema; output: typeof VerifySharePasswordResponseSchema; }; /** * @generated from rpc artworking.v1.JobSharePublicService.ListShareFiles */ listShareFiles: { methodKind: "unary"; input: typeof ListShareFilesRequestSchema; output: typeof ListShareFilesResponseSchema; }; /** * @generated from rpc artworking.v1.JobSharePublicService.GetShareFileDownload */ getShareFileDownload: { methodKind: "unary"; input: typeof GetShareFileDownloadRequestSchema; output: typeof GetShareFileDownloadResponseSchema; }; /** * @generated from rpc artworking.v1.JobSharePublicService.RecordFileDownload */ recordFileDownload: { methodKind: "unary"; input: typeof RecordFileDownloadRequestSchema; output: typeof RecordFileDownloadResponseSchema; }; }>;