// @generated by protoc-gen-es v1.10.1 with parameter "target=ts" // @generated from file artworking/v1/job-share.proto (package artworking.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; import { Media } from "../../media/v1/media_pb.js"; /** * @generated from enum artworking.v1.ShareType */ export 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, } // Retrieve enum metadata with: proto3.getEnumType(ShareType) proto3.util.setEnumType(ShareType, "artworking.v1.ShareType", [ { no: 0, name: "SHARE_TYPE_UNDEFINED" }, { no: 1, name: "SHARE_TYPE_EMAIL" }, { no: 2, name: "SHARE_TYPE_LINK" }, ]); /** * @generated from message artworking.v1.JobShare */ export class JobShare extends Message { /** * @generated from field: string id = 1; */ id = ""; /** * @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 = ""; /** * @generated from field: string share_token = 5; */ shareToken = ""; /** * @generated from field: artworking.v1.ShareType share_type = 6; */ shareType = ShareType.UNDEFINED; /** * @generated from field: bool is_password_protected = 7; */ isPasswordProtected = false; /** * @generated from field: google.protobuf.Timestamp expires_at = 8; */ expiresAt?: Timestamp; /** * @generated from field: int32 access_count = 9; */ accessCount = 0; /** * @generated from field: int32 max_accesses = 10; */ maxAccesses = 0; /** * @generated from field: int64 created_by = 11; */ createdBy = protoInt64.zero; /** * @generated from field: string share_email = 12; */ shareEmail = ""; /** * @generated from field: bool is_active = 13; */ isActive = false; /** * @generated from field: string message = 14; */ message = ""; /** * @generated from field: string password = 15; */ password = ""; /** * @generated from field: string email_ref = 16; */ emailRef = ""; /** * @generated from field: string share_url = 17; */ shareUrl = ""; /** * @generated from field: int64 supplier_id = 18; */ supplierId = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.JobShare"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "created_at", kind: "message", T: Timestamp }, { no: 3, name: "updated_at", kind: "message", T: Timestamp }, { no: 4, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "share_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 6, name: "share_type", kind: "enum", T: proto3.getEnumType(ShareType) }, { no: 7, name: "is_password_protected", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 8, name: "expires_at", kind: "message", T: Timestamp }, { no: 9, name: "access_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 10, name: "max_accesses", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 11, name: "created_by", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 12, name: "share_email", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 13, name: "is_active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 14, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 15, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 16, name: "email_ref", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 17, name: "share_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 18, name: "supplier_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): JobShare { return new JobShare().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): JobShare { return new JobShare().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): JobShare { return new JobShare().fromJsonString(jsonString, options); } static equals(a: JobShare | PlainMessage | undefined, b: JobShare | PlainMessage | undefined): boolean { return proto3.util.equals(JobShare, a, b); } } /** * @generated from message artworking.v1.JobShareAccessLog */ export class JobShareAccessLog extends Message { /** * @generated from field: string id = 1; */ id = ""; /** * @generated from field: google.protobuf.Timestamp created_at = 2; */ createdAt?: Timestamp; /** * @generated from field: string share_id = 3; */ shareId = ""; /** * @generated from field: google.protobuf.Timestamp accessed_at = 4; */ accessedAt?: Timestamp; /** * @generated from field: string ip_address = 5; */ ipAddress = ""; /** * @generated from field: string user_agent = 6; */ userAgent = ""; /** * @generated from field: int64 media_item_id = 7; */ mediaItemId = protoInt64.zero; /** * @generated from field: string file_name = 8; */ fileName = ""; /** * "view_portal", "download_file" * * @generated from field: string action = 9; */ action = ""; /** * @generated from field: bool download_success = 10; */ downloadSuccess = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.JobShareAccessLog"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "created_at", kind: "message", T: Timestamp }, { no: 3, name: "share_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "accessed_at", kind: "message", T: Timestamp }, { no: 5, name: "ip_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 6, name: "user_agent", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "media_item_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 8, name: "file_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 9, name: "action", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 10, name: "download_success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): JobShareAccessLog { return new JobShareAccessLog().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): JobShareAccessLog { return new JobShareAccessLog().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): JobShareAccessLog { return new JobShareAccessLog().fromJsonString(jsonString, options); } static equals(a: JobShareAccessLog | PlainMessage | undefined, b: JobShareAccessLog | PlainMessage | undefined): boolean { return proto3.util.equals(JobShareAccessLog, a, b); } } /** * Job management RPCs * * @generated from message artworking.v1.CreateJobShareRequest */ export class CreateJobShareRequest extends Message { /** * @generated from field: string job_id = 1; */ jobId = ""; /** * @generated from field: artworking.v1.ShareType share_type = 2; */ shareType = ShareType.UNDEFINED; /** * @generated from field: string password = 3; */ password = ""; /** * @generated from field: int32 expiry_days = 4; */ expiryDays = 0; /** * @generated from field: int32 max_accesses = 5; */ maxAccesses = 0; /** * @generated from field: string message = 6; */ message = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.CreateJobShareRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "share_type", kind: "enum", T: proto3.getEnumType(ShareType) }, { no: 3, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "expiry_days", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 5, name: "max_accesses", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 6, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreateJobShareRequest { return new CreateJobShareRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CreateJobShareRequest { return new CreateJobShareRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CreateJobShareRequest { return new CreateJobShareRequest().fromJsonString(jsonString, options); } static equals(a: CreateJobShareRequest | PlainMessage | undefined, b: CreateJobShareRequest | PlainMessage | undefined): boolean { return proto3.util.equals(CreateJobShareRequest, a, b); } } /** * @generated from message artworking.v1.CreateJobShareResponse */ export class CreateJobShareResponse extends Message { /** * @generated from field: artworking.v1.JobShare job_share = 1; */ jobShare?: JobShare; /** * @generated from field: string share_url = 2; */ shareUrl = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.CreateJobShareResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_share", kind: "message", T: JobShare }, { no: 2, name: "share_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreateJobShareResponse { return new CreateJobShareResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CreateJobShareResponse { return new CreateJobShareResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CreateJobShareResponse { return new CreateJobShareResponse().fromJsonString(jsonString, options); } static equals(a: CreateJobShareResponse | PlainMessage | undefined, b: CreateJobShareResponse | PlainMessage | undefined): boolean { return proto3.util.equals(CreateJobShareResponse, a, b); } } /** * @generated from message artworking.v1.GetJobShareRequest */ export class GetJobShareRequest extends Message { /** * @generated from field: string share_id = 1; */ shareId = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetJobShareRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "share_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetJobShareRequest { return new GetJobShareRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetJobShareRequest { return new GetJobShareRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetJobShareRequest { return new GetJobShareRequest().fromJsonString(jsonString, options); } static equals(a: GetJobShareRequest | PlainMessage | undefined, b: GetJobShareRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetJobShareRequest, a, b); } } /** * @generated from message artworking.v1.GetJobShareResponse */ export class GetJobShareResponse extends Message { /** * @generated from field: artworking.v1.JobShare job_share = 1; */ jobShare?: JobShare; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetJobShareResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_share", kind: "message", T: JobShare }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetJobShareResponse { return new GetJobShareResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetJobShareResponse { return new GetJobShareResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetJobShareResponse { return new GetJobShareResponse().fromJsonString(jsonString, options); } static equals(a: GetJobShareResponse | PlainMessage | undefined, b: GetJobShareResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetJobShareResponse, a, b); } } /** * @generated from message artworking.v1.ListJobSharesRequest */ export class ListJobSharesRequest extends Message { /** * @generated from field: string job_id = 1; */ jobId = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.ListJobSharesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ListJobSharesRequest { return new ListJobSharesRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ListJobSharesRequest { return new ListJobSharesRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ListJobSharesRequest { return new ListJobSharesRequest().fromJsonString(jsonString, options); } static equals(a: ListJobSharesRequest | PlainMessage | undefined, b: ListJobSharesRequest | PlainMessage | undefined): boolean { return proto3.util.equals(ListJobSharesRequest, a, b); } } /** * @generated from message artworking.v1.ListJobSharesResponse */ export class ListJobSharesResponse extends Message { /** * @generated from field: repeated artworking.v1.JobShare job_shares = 1; */ jobShares: JobShare[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.ListJobSharesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_shares", kind: "message", T: JobShare, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ListJobSharesResponse { return new ListJobSharesResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ListJobSharesResponse { return new ListJobSharesResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ListJobSharesResponse { return new ListJobSharesResponse().fromJsonString(jsonString, options); } static equals(a: ListJobSharesResponse | PlainMessage | undefined, b: ListJobSharesResponse | PlainMessage | undefined): boolean { return proto3.util.equals(ListJobSharesResponse, a, b); } } /** * @generated from message artworking.v1.DeactivateJobShareRequest */ export class DeactivateJobShareRequest extends Message { /** * @generated from field: string share_id = 1; */ shareId = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.DeactivateJobShareRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "share_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DeactivateJobShareRequest { return new DeactivateJobShareRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): DeactivateJobShareRequest { return new DeactivateJobShareRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): DeactivateJobShareRequest { return new DeactivateJobShareRequest().fromJsonString(jsonString, options); } static equals(a: DeactivateJobShareRequest | PlainMessage | undefined, b: DeactivateJobShareRequest | PlainMessage | undefined): boolean { return proto3.util.equals(DeactivateJobShareRequest, a, b); } } /** * @generated from message artworking.v1.DeactivateJobShareResponse */ export class DeactivateJobShareResponse extends Message { /** * @generated from field: bool success = 1; */ success = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.DeactivateJobShareResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DeactivateJobShareResponse { return new DeactivateJobShareResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): DeactivateJobShareResponse { return new DeactivateJobShareResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): DeactivateJobShareResponse { return new DeactivateJobShareResponse().fromJsonString(jsonString, options); } static equals(a: DeactivateJobShareResponse | PlainMessage | undefined, b: DeactivateJobShareResponse | PlainMessage | undefined): boolean { return proto3.util.equals(DeactivateJobShareResponse, a, b); } } /** * Public share RPCs (no auth required) * * @generated from message artworking.v1.GetShareInfoRequest */ export class GetShareInfoRequest extends Message { /** * @generated from field: string share_token = 1; */ shareToken = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetShareInfoRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "share_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetShareInfoRequest { return new GetShareInfoRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetShareInfoRequest { return new GetShareInfoRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetShareInfoRequest { return new GetShareInfoRequest().fromJsonString(jsonString, options); } static equals(a: GetShareInfoRequest | PlainMessage | undefined, b: GetShareInfoRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetShareInfoRequest, a, b); } } /** * @generated from message artworking.v1.GetShareInfoResponse */ export class GetShareInfoResponse extends Message { /** * @generated from field: artworking.v1.JobShare job_share = 1; */ jobShare?: JobShare; /** * @generated from field: string job_name = 2; */ jobName = ""; /** * @generated from field: string company_name = 3; */ companyName = ""; /** * @generated from field: int32 file_count = 4; */ fileCount = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetShareInfoResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_share", kind: "message", T: JobShare }, { no: 2, name: "job_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "company_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "file_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetShareInfoResponse { return new GetShareInfoResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetShareInfoResponse { return new GetShareInfoResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetShareInfoResponse { return new GetShareInfoResponse().fromJsonString(jsonString, options); } static equals(a: GetShareInfoResponse | PlainMessage | undefined, b: GetShareInfoResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetShareInfoResponse, a, b); } } /** * @generated from message artworking.v1.VerifySharePasswordRequest */ export class VerifySharePasswordRequest extends Message { /** * @generated from field: string share_token = 1; */ shareToken = ""; /** * @generated from field: string password = 2; */ password = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.VerifySharePasswordRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "share_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): VerifySharePasswordRequest { return new VerifySharePasswordRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): VerifySharePasswordRequest { return new VerifySharePasswordRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): VerifySharePasswordRequest { return new VerifySharePasswordRequest().fromJsonString(jsonString, options); } static equals(a: VerifySharePasswordRequest | PlainMessage | undefined, b: VerifySharePasswordRequest | PlainMessage | undefined): boolean { return proto3.util.equals(VerifySharePasswordRequest, a, b); } } /** * @generated from message artworking.v1.VerifySharePasswordResponse */ export class VerifySharePasswordResponse extends Message { /** * @generated from field: bool valid = 1; */ valid = false; /** * temporary token for file access * * @generated from field: string access_token = 2; */ accessToken = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.VerifySharePasswordResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "valid", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 2, name: "access_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): VerifySharePasswordResponse { return new VerifySharePasswordResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): VerifySharePasswordResponse { return new VerifySharePasswordResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): VerifySharePasswordResponse { return new VerifySharePasswordResponse().fromJsonString(jsonString, options); } static equals(a: VerifySharePasswordResponse | PlainMessage | undefined, b: VerifySharePasswordResponse | PlainMessage | undefined): boolean { return proto3.util.equals(VerifySharePasswordResponse, a, b); } } /** * @generated from message artworking.v1.ListShareFilesRequest */ export class ListShareFilesRequest extends Message { /** * @generated from field: string share_token = 1; */ shareToken = ""; /** * required if password protected * * @generated from field: string access_token = 2; */ accessToken = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.ListShareFilesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "share_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "access_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ListShareFilesRequest { return new ListShareFilesRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ListShareFilesRequest { return new ListShareFilesRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ListShareFilesRequest { return new ListShareFilesRequest().fromJsonString(jsonString, options); } static equals(a: ListShareFilesRequest | PlainMessage | undefined, b: ListShareFilesRequest | PlainMessage | undefined): boolean { return proto3.util.equals(ListShareFilesRequest, a, b); } } /** * @generated from message artworking.v1.ListShareFilesResponse */ export class ListShareFilesResponse extends Message { /** * @generated from field: repeated media.v1.Media files = 1; */ files: Media[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.ListShareFilesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "files", kind: "message", T: Media, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ListShareFilesResponse { return new ListShareFilesResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ListShareFilesResponse { return new ListShareFilesResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ListShareFilesResponse { return new ListShareFilesResponse().fromJsonString(jsonString, options); } static equals(a: ListShareFilesResponse | PlainMessage | undefined, b: ListShareFilesResponse | PlainMessage | undefined): boolean { return proto3.util.equals(ListShareFilesResponse, a, b); } } /** * @generated from message artworking.v1.GetShareFileDownloadRequest */ export class GetShareFileDownloadRequest extends Message { /** * @generated from field: string share_token = 1; */ shareToken = ""; /** * @generated from field: string file_id = 2; */ fileId = ""; /** * required if password protected * * @generated from field: string access_token = 3; */ accessToken = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetShareFileDownloadRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "share_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "file_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "access_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetShareFileDownloadRequest { return new GetShareFileDownloadRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetShareFileDownloadRequest { return new GetShareFileDownloadRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetShareFileDownloadRequest { return new GetShareFileDownloadRequest().fromJsonString(jsonString, options); } static equals(a: GetShareFileDownloadRequest | PlainMessage | undefined, b: GetShareFileDownloadRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetShareFileDownloadRequest, a, b); } } /** * @generated from message artworking.v1.GetShareFileDownloadResponse */ export class GetShareFileDownloadResponse extends Message { /** * signed URL * * @generated from field: string download_url = 1; */ downloadUrl = ""; /** * @generated from field: google.protobuf.Timestamp expires_at = 2; */ expiresAt?: Timestamp; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetShareFileDownloadResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "download_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "expires_at", kind: "message", T: Timestamp }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetShareFileDownloadResponse { return new GetShareFileDownloadResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetShareFileDownloadResponse { return new GetShareFileDownloadResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetShareFileDownloadResponse { return new GetShareFileDownloadResponse().fromJsonString(jsonString, options); } static equals(a: GetShareFileDownloadResponse | PlainMessage | undefined, b: GetShareFileDownloadResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetShareFileDownloadResponse, a, b); } } /** * @generated from message artworking.v1.GetShareStatsRequest */ export class GetShareStatsRequest extends Message { /** * @generated from field: string share_id = 1; */ shareId = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetShareStatsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "share_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetShareStatsRequest { return new GetShareStatsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetShareStatsRequest { return new GetShareStatsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetShareStatsRequest { return new GetShareStatsRequest().fromJsonString(jsonString, options); } static equals(a: GetShareStatsRequest | PlainMessage | undefined, b: GetShareStatsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetShareStatsRequest, a, b); } } /** * @generated from message artworking.v1.GetShareStatsResponse */ export class GetShareStatsResponse extends Message { /** * @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; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetShareStatsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "media_item_last_downloaded", kind: "map", K: 3 /* ScalarType.INT64 */, V: {kind: "message", T: Timestamp} }, { no: 2, name: "last_page_access", kind: "message", T: Timestamp }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetShareStatsResponse { return new GetShareStatsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetShareStatsResponse { return new GetShareStatsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetShareStatsResponse { return new GetShareStatsResponse().fromJsonString(jsonString, options); } static equals(a: GetShareStatsResponse | PlainMessage | undefined, b: GetShareStatsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetShareStatsResponse, a, b); } } /** * @generated from message artworking.v1.RecordFileDownloadRequest */ export class RecordFileDownloadRequest extends Message { /** * @generated from field: string share_token = 1; */ shareToken = ""; /** * @generated from field: int64 media_item_id = 2; */ mediaItemId = protoInt64.zero; /** * @generated from field: string file_name = 3; */ fileName = ""; /** * @generated from field: bool success = 4; */ success = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.RecordFileDownloadRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "share_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "media_item_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 3, name: "file_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RecordFileDownloadRequest { return new RecordFileDownloadRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): RecordFileDownloadRequest { return new RecordFileDownloadRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): RecordFileDownloadRequest { return new RecordFileDownloadRequest().fromJsonString(jsonString, options); } static equals(a: RecordFileDownloadRequest | PlainMessage | undefined, b: RecordFileDownloadRequest | PlainMessage | undefined): boolean { return proto3.util.equals(RecordFileDownloadRequest, a, b); } } /** * @generated from message artworking.v1.RecordFileDownloadResponse */ export class RecordFileDownloadResponse extends Message { /** * @generated from field: bool recorded = 1; */ recorded = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.RecordFileDownloadResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "recorded", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RecordFileDownloadResponse { return new RecordFileDownloadResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): RecordFileDownloadResponse { return new RecordFileDownloadResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): RecordFileDownloadResponse { return new RecordFileDownloadResponse().fromJsonString(jsonString, options); } static equals(a: RecordFileDownloadResponse | PlainMessage | undefined, b: RecordFileDownloadResponse | PlainMessage | undefined): boolean { return proto3.util.equals(RecordFileDownloadResponse, a, b); } }