diff --git a/packages/artifact/src/generated/google/protobuf/timestamp.ts b/packages/artifact/src/generated/google/protobuf/timestamp.ts index b3b83738..c9aee41a 100644 --- a/packages/artifact/src/generated/google/protobuf/timestamp.ts +++ b/packages/artifact/src/generated/google/protobuf/timestamp.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.2.3-alpha.1 with parameter client_none,generate_dependencies +// @generated by protobuf-ts 2.9.1 with parameter long_type_string,client_none,generate_dependencies // @generated from protobuf file "google/protobuf/timestamp.proto" (package "google.protobuf", syntax proto3) // tslint:disable // @@ -139,7 +139,7 @@ export interface Timestamp { * * @generated from protobuf field: int64 seconds = 1; */ - seconds: bigint; + seconds: string; /** * Non-negative fractions of a second at nanosecond resolution. Negative * second values with fractions must still have non-negative nanos values @@ -154,7 +154,7 @@ export interface Timestamp { class Timestamp$Type extends MessageType { constructor() { super("google.protobuf.Timestamp", [ - { no: 1, name: "seconds", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }, + { no: 1, name: "seconds", kind: "scalar", T: 3 /*ScalarType.INT64*/ }, { no: 2, name: "nanos", kind: "scalar", T: 5 /*ScalarType.INT32*/ } ]); } @@ -164,7 +164,7 @@ class Timestamp$Type extends MessageType { now(): Timestamp { const msg = this.create(); const ms = Date.now(); - msg.seconds = PbLong.from(Math.floor(ms / 1000)).toBigInt(); + msg.seconds = PbLong.from(Math.floor(ms / 1000)).toString(); msg.nanos = (ms % 1000) * 1000000; return msg; } @@ -180,7 +180,7 @@ class Timestamp$Type extends MessageType { fromDate(date: Date): Timestamp { const msg = this.create(); const ms = date.getTime(); - msg.seconds = PbLong.from(Math.floor(ms / 1000)).toBigInt(); + msg.seconds = PbLong.from(Math.floor(ms / 1000)).toString(); msg.nanos = (ms % 1000) * 1000000; return msg; } @@ -223,14 +223,14 @@ class Timestamp$Type extends MessageType { throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive."); if (!target) target = this.create(); - target.seconds = PbLong.from(ms / 1000).toBigInt(); + target.seconds = PbLong.from(ms / 1000).toString(); target.nanos = 0; if (matches[7]) target.nanos = (parseInt("1" + matches[7] + "0".repeat(9 - matches[7].length)) - 1000000000); return target; } create(value?: PartialMessage): Timestamp { - const message = { seconds: 0n, nanos: 0 }; + const message = { seconds: "0", nanos: 0 }; globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this }); if (value !== undefined) reflectionMergePartial(this, message, value); @@ -242,7 +242,7 @@ class Timestamp$Type extends MessageType { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* int64 seconds */ 1: - message.seconds = reader.int64().toBigInt(); + message.seconds = reader.int64().toString(); break; case /* int32 nanos */ 2: message.nanos = reader.int32(); @@ -260,7 +260,7 @@ class Timestamp$Type extends MessageType { } internalBinaryWrite(message: Timestamp, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* int64 seconds = 1; */ - if (message.seconds !== 0n) + if (message.seconds !== "0") writer.tag(1, WireType.Varint).int64(message.seconds); /* int32 nanos = 2; */ if (message.nanos !== 0) diff --git a/packages/artifact/src/generated/google/protobuf/wrappers.ts b/packages/artifact/src/generated/google/protobuf/wrappers.ts index 83acb241..8f8797b0 100644 --- a/packages/artifact/src/generated/google/protobuf/wrappers.ts +++ b/packages/artifact/src/generated/google/protobuf/wrappers.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.2.3-alpha.1 with parameter client_none,generate_dependencies +// @generated by protobuf-ts 2.9.1 with parameter long_type_string,client_none,generate_dependencies // @generated from protobuf file "google/protobuf/wrappers.proto" (package "google.protobuf", syntax proto3) // tslint:disable // @@ -96,7 +96,7 @@ export interface Int64Value { * * @generated from protobuf field: int64 value = 1; */ - value: bigint; + value: string; } /** * Wrapper message for `uint64`. @@ -111,7 +111,7 @@ export interface UInt64Value { * * @generated from protobuf field: uint64 value = 1; */ - value: bigint; + value: string; } /** * Wrapper message for `int32`. @@ -316,7 +316,7 @@ export const FloatValue = new FloatValue$Type(); class Int64Value$Type extends MessageType { constructor() { super("google.protobuf.Int64Value", [ - { no: 1, name: "value", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ } + { no: 1, name: "value", kind: "scalar", T: 3 /*ScalarType.INT64*/ } ]); } /** @@ -331,11 +331,11 @@ class Int64Value$Type extends MessageType { internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Int64Value): Int64Value { if (!target) target = this.create(); - target.value = this.refJsonReader.scalar(json, ScalarType.INT64, LongType.BIGINT, "value") as any; + target.value = this.refJsonReader.scalar(json, ScalarType.INT64, LongType.STRING, "value") as any; return target; } create(value?: PartialMessage): Int64Value { - const message = { value: 0n }; + const message = { value: "0" }; globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this }); if (value !== undefined) reflectionMergePartial(this, message, value); @@ -347,7 +347,7 @@ class Int64Value$Type extends MessageType { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* int64 value */ 1: - message.value = reader.int64().toBigInt(); + message.value = reader.int64().toString(); break; default: let u = options.readUnknownField; @@ -362,7 +362,7 @@ class Int64Value$Type extends MessageType { } internalBinaryWrite(message: Int64Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* int64 value = 1; */ - if (message.value !== 0n) + if (message.value !== "0") writer.tag(1, WireType.Varint).int64(message.value); let u = options.writeUnknownFields; if (u !== false) @@ -378,7 +378,7 @@ export const Int64Value = new Int64Value$Type(); class UInt64Value$Type extends MessageType { constructor() { super("google.protobuf.UInt64Value", [ - { no: 1, name: "value", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ } + { no: 1, name: "value", kind: "scalar", T: 4 /*ScalarType.UINT64*/ } ]); } /** @@ -393,11 +393,11 @@ class UInt64Value$Type extends MessageType { internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: UInt64Value): UInt64Value { if (!target) target = this.create(); - target.value = this.refJsonReader.scalar(json, ScalarType.UINT64, LongType.BIGINT, "value") as any; + target.value = this.refJsonReader.scalar(json, ScalarType.UINT64, LongType.STRING, "value") as any; return target; } create(value?: PartialMessage): UInt64Value { - const message = { value: 0n }; + const message = { value: "0" }; globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this }); if (value !== undefined) reflectionMergePartial(this, message, value); @@ -409,7 +409,7 @@ class UInt64Value$Type extends MessageType { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* uint64 value */ 1: - message.value = reader.uint64().toBigInt(); + message.value = reader.uint64().toString(); break; default: let u = options.readUnknownField; @@ -424,7 +424,7 @@ class UInt64Value$Type extends MessageType { } internalBinaryWrite(message: UInt64Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* uint64 value = 1; */ - if (message.value !== 0n) + if (message.value !== "0") writer.tag(1, WireType.Varint).uint64(message.value); let u = options.writeUnknownFields; if (u !== false) diff --git a/packages/artifact/src/generated/results/api/v1/artifact.ts b/packages/artifact/src/generated/results/api/v1/artifact.ts index 89bae48d..106c4cda 100644 --- a/packages/artifact/src/generated/results/api/v1/artifact.ts +++ b/packages/artifact/src/generated/results/api/v1/artifact.ts @@ -1,4 +1,4 @@ -// @generated by protobuf-ts 2.2.3-alpha.1 with parameter client_none,generate_dependencies +// @generated by protobuf-ts 2.9.1 with parameter long_type_string,client_none,generate_dependencies // @generated from protobuf file "results/api/v1/artifact.proto" (package "github.actions.results.api.v1", syntax proto3) // tslint:disable import { ServiceType } from "@protobuf-ts/runtime-rpc"; @@ -71,7 +71,7 @@ export interface FinalizeArtifactRequest { /** * @generated from protobuf field: int64 size = 4; */ - size: bigint; + size: string; /** * @generated from protobuf field: google.protobuf.StringValue hash = 5; */ @@ -88,7 +88,7 @@ export interface FinalizeArtifactResponse { /** * @generated from protobuf field: int64 artifact_id = 2; */ - artifactId: bigint; + artifactId: string; } // @generated message type with reflection information, may provide speed optimized methods class CreateArtifactRequest$Type extends MessageType { @@ -226,12 +226,12 @@ class FinalizeArtifactRequest$Type extends MessageType { no: 1, name: "workflow_run_backend_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, { no: 2, name: "workflow_job_run_backend_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, { no: 3, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, - { no: 4, name: "size", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }, + { no: 4, name: "size", kind: "scalar", T: 3 /*ScalarType.INT64*/ }, { no: 5, name: "hash", kind: "message", T: () => StringValue } ]); } create(value?: PartialMessage): FinalizeArtifactRequest { - const message = { workflowRunBackendId: "", workflowJobRunBackendId: "", name: "", size: 0n }; + const message = { workflowRunBackendId: "", workflowJobRunBackendId: "", name: "", size: "0" }; globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this }); if (value !== undefined) reflectionMergePartial(this, message, value); @@ -252,7 +252,7 @@ class FinalizeArtifactRequest$Type extends MessageType message.name = reader.string(); break; case /* int64 size */ 4: - message.size = reader.int64().toBigInt(); + message.size = reader.int64().toString(); break; case /* google.protobuf.StringValue hash */ 5: message.hash = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.hash); @@ -279,7 +279,7 @@ class FinalizeArtifactRequest$Type extends MessageType if (message.name !== "") writer.tag(3, WireType.LengthDelimited).string(message.name); /* int64 size = 4; */ - if (message.size !== 0n) + if (message.size !== "0") writer.tag(4, WireType.Varint).int64(message.size); /* google.protobuf.StringValue hash = 5; */ if (message.hash) @@ -299,11 +299,11 @@ class FinalizeArtifactResponse$Type extends MessageType): FinalizeArtifactResponse { - const message = { ok: false, artifactId: 0n }; + const message = { ok: false, artifactId: "0" }; globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this }); if (value !== undefined) reflectionMergePartial(this, message, value); @@ -318,7 +318,7 @@ class FinalizeArtifactResponse$Type extends MessageType