diff --git a/api/v1/capsule/revision_pb.ts b/api/v1/capsule/revision_pb.ts new file mode 100644 index 0000000..f7c12a7 --- /dev/null +++ b/api/v1/capsule/revision_pb.ts @@ -0,0 +1,109 @@ +// @generated by protoc-gen-es v1.9.0 with parameter "target=ts" +// @generated from file api/v1/capsule/revision.proto (package api.v1.capsule, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Capsule, CapsuleSet } from "../../../platform/v1/generated_pb.js"; +import { RevisionMetadata } from "../../../model/revision_pb.js"; +import { Change } from "./change_pb.js"; + +/** + * @generated from message api.v1.capsule.SetRevision + */ +export class SetRevision extends Message { + /** + * @generated from field: platform.v1.CapsuleSet spec = 1; + */ + spec?: CapsuleSet; + + /** + * @generated from field: model.RevisionMetadata metadata = 2; + */ + metadata?: RevisionMetadata; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.SetRevision"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "spec", kind: "message", T: CapsuleSet }, + { no: 2, name: "metadata", kind: "message", T: RevisionMetadata }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SetRevision { + return new SetRevision().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SetRevision { + return new SetRevision().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SetRevision { + return new SetRevision().fromJsonString(jsonString, options); + } + + static equals(a: SetRevision | PlainMessage | undefined, b: SetRevision | PlainMessage | undefined): boolean { + return proto3.util.equals(SetRevision, a, b); + } +} + +/** + * @generated from message api.v1.capsule.Revision + */ +export class Revision extends Message { + /** + * @generated from field: platform.v1.Capsule spec = 1; + */ + spec?: Capsule; + + /** + * @generated from field: model.RevisionMetadata metadata = 2; + */ + metadata?: RevisionMetadata; + + /** + * @generated from field: repeated api.v1.capsule.Change changes = 3; + */ + changes: Change[] = []; + + /** + * @generated from field: string message = 4; + */ + message = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.Revision"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "spec", kind: "message", T: Capsule }, + { no: 2, name: "metadata", kind: "message", T: RevisionMetadata }, + { no: 3, name: "changes", kind: "message", T: Change, repeated: true }, + { no: 4, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Revision { + return new Revision().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Revision { + return new Revision().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Revision { + return new Revision().fromJsonString(jsonString, options); + } + + static equals(a: Revision | PlainMessage | undefined, b: Revision | PlainMessage | undefined): boolean { + return proto3.util.equals(Revision, a, b); + } +} + diff --git a/api/v1/environment/revision_pb.ts b/api/v1/environment/revision_pb.ts new file mode 100644 index 0000000..0bf78e7 --- /dev/null +++ b/api/v1/environment/revision_pb.ts @@ -0,0 +1,53 @@ +// @generated by protoc-gen-es v1.9.0 with parameter "target=ts" +// @generated from file api/v1/environment/revision.proto (package api.v1.environment, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Environment } from "../../../platform/v1/generated_pb.js"; +import { RevisionMetadata } from "../../../model/revision_pb.js"; + +/** + * @generated from message api.v1.environment.Revision + */ +export class Revision extends Message { + /** + * @generated from field: platform.v1.Environment spec = 1; + */ + spec?: Environment; + + /** + * @generated from field: model.RevisionMetadata metadata = 2; + */ + metadata?: RevisionMetadata; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.environment.Revision"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "spec", kind: "message", T: Environment }, + { no: 2, name: "metadata", kind: "message", T: RevisionMetadata }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Revision { + return new Revision().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Revision { + return new Revision().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Revision { + return new Revision().fromJsonString(jsonString, options); + } + + static equals(a: Revision | PlainMessage | undefined, b: Revision | PlainMessage | undefined): boolean { + return proto3.util.equals(Revision, a, b); + } +} + diff --git a/api/v1/project/revision_pb.ts b/api/v1/project/revision_pb.ts new file mode 100644 index 0000000..7f03d6d --- /dev/null +++ b/api/v1/project/revision_pb.ts @@ -0,0 +1,53 @@ +// @generated by protoc-gen-es v1.9.0 with parameter "target=ts" +// @generated from file api/v1/project/revision.proto (package api.v1.project, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Project } from "../../../platform/v1/generated_pb.js"; +import { RevisionMetadata } from "../../../model/revision_pb.js"; + +/** + * @generated from message api.v1.project.Revision + */ +export class Revision extends Message { + /** + * @generated from field: platform.v1.Project spec = 1; + */ + spec?: Project; + + /** + * @generated from field: model.RevisionMetadata metadata = 2; + */ + metadata?: RevisionMetadata; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.project.Revision"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "spec", kind: "message", T: Project }, + { no: 2, name: "metadata", kind: "message", T: RevisionMetadata }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Revision { + return new Revision().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Revision { + return new Revision().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Revision { + return new Revision().fromJsonString(jsonString, options); + } + + static equals(a: Revision | PlainMessage | undefined, b: Revision | PlainMessage | undefined): boolean { + return proto3.util.equals(Revision, a, b); + } +} + diff --git a/api/v1/revision/revision_pb.ts b/api/v1/revision/revision_pb.ts deleted file mode 100644 index 72cd5b7..0000000 --- a/api/v1/revision/revision_pb.ts +++ /dev/null @@ -1,195 +0,0 @@ -// @generated by protoc-gen-es v1.9.0 with parameter "target=ts" -// @generated from file api/v1/revision/revision.proto (package api.v1.revision, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Capsule as Capsule$1, CapsuleSet as CapsuleSet$1, Environment as Environment$1, Project as Project$1 } from "../../../platform/v1/generated_pb.js"; -import { ObjectMetadata } from "../../../model/object_pb.js"; -import { Change } from "../capsule/change_pb.js"; - -/** - * @generated from message api.v1.revision.CapsuleSet - */ -export class CapsuleSet extends Message { - /** - * @generated from field: platform.v1.CapsuleSet spec = 1; - */ - spec?: CapsuleSet$1; - - /** - * @generated from field: model.ObjectMetadata metadata = 2; - */ - metadata?: ObjectMetadata; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.revision.CapsuleSet"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "spec", kind: "message", T: CapsuleSet$1 }, - { no: 2, name: "metadata", kind: "message", T: ObjectMetadata }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CapsuleSet { - return new CapsuleSet().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CapsuleSet { - return new CapsuleSet().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CapsuleSet { - return new CapsuleSet().fromJsonString(jsonString, options); - } - - static equals(a: CapsuleSet | PlainMessage | undefined, b: CapsuleSet | PlainMessage | undefined): boolean { - return proto3.util.equals(CapsuleSet, a, b); - } -} - -/** - * @generated from message api.v1.revision.Capsule - */ -export class Capsule extends Message { - /** - * @generated from field: platform.v1.Capsule spec = 1; - */ - spec?: Capsule$1; - - /** - * @generated from field: model.ObjectMetadata metadata = 2; - */ - metadata?: ObjectMetadata; - - /** - * @generated from field: repeated api.v1.capsule.Change changes = 3; - */ - changes: Change[] = []; - - /** - * @generated from field: string message = 4; - */ - message = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.revision.Capsule"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "spec", kind: "message", T: Capsule$1 }, - { no: 2, name: "metadata", kind: "message", T: ObjectMetadata }, - { no: 3, name: "changes", kind: "message", T: Change, repeated: true }, - { no: 4, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Capsule { - return new Capsule().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Capsule { - return new Capsule().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Capsule { - return new Capsule().fromJsonString(jsonString, options); - } - - static equals(a: Capsule | PlainMessage | undefined, b: Capsule | PlainMessage | undefined): boolean { - return proto3.util.equals(Capsule, a, b); - } -} - -/** - * @generated from message api.v1.revision.Project - */ -export class Project extends Message { - /** - * @generated from field: platform.v1.Project spec = 1; - */ - spec?: Project$1; - - /** - * @generated from field: model.ObjectMetadata metadata = 2; - */ - metadata?: ObjectMetadata; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.revision.Project"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "spec", kind: "message", T: Project$1 }, - { no: 2, name: "metadata", kind: "message", T: ObjectMetadata }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Project { - return new Project().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Project { - return new Project().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Project { - return new Project().fromJsonString(jsonString, options); - } - - static equals(a: Project | PlainMessage | undefined, b: Project | PlainMessage | undefined): boolean { - return proto3.util.equals(Project, a, b); - } -} - -/** - * @generated from message api.v1.revision.Environment - */ -export class Environment extends Message { - /** - * @generated from field: platform.v1.Environment spec = 1; - */ - spec?: Environment$1; - - /** - * @generated from field: model.ObjectMetadata metadata = 2; - */ - metadata?: ObjectMetadata; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.revision.Environment"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "spec", kind: "message", T: Environment$1 }, - { no: 2, name: "metadata", kind: "message", T: ObjectMetadata }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Environment { - return new Environment().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Environment { - return new Environment().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Environment { - return new Environment().fromJsonString(jsonString, options); - } - - static equals(a: Environment | PlainMessage | undefined, b: Environment | PlainMessage | undefined): boolean { - return proto3.util.equals(Environment, a, b); - } -} - diff --git a/model/object_pb.ts b/model/revision_pb.ts similarity index 76% rename from model/object_pb.ts rename to model/revision_pb.ts index 7090b92..5abddac 100644 --- a/model/object_pb.ts +++ b/model/revision_pb.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.9.0 with parameter "target=ts" -// @generated from file model/object.proto (package model, syntax proto3) +// @generated from file model/revision.proto (package model, syntax proto3) /* eslint-disable */ // @ts-nocheck @@ -8,9 +8,9 @@ import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; import { Author } from "./author_pb.js"; /** - * @generated from message model.ObjectMetadata + * @generated from message model.RevisionMetadata */ -export class ObjectMetadata extends Message { +export class RevisionMetadata extends Message { /** * @generated from field: google.protobuf.Timestamp created_at = 1; */ @@ -31,13 +31,13 @@ export class ObjectMetadata extends Message { */ fingerprint?: Fingerprint; - constructor(data?: PartialMessage) { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "model.ObjectMetadata"; + static readonly typeName = "model.RevisionMetadata"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "created_at", kind: "message", T: Timestamp }, { no: 2, name: "updated_at", kind: "message", T: Timestamp }, @@ -45,20 +45,20 @@ export class ObjectMetadata extends Message { { no: 4, name: "fingerprint", kind: "message", T: Fingerprint }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): ObjectMetadata { - return new ObjectMetadata().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): RevisionMetadata { + return new RevisionMetadata().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): ObjectMetadata { - return new ObjectMetadata().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): RevisionMetadata { + return new RevisionMetadata().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): ObjectMetadata { - return new ObjectMetadata().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): RevisionMetadata { + return new RevisionMetadata().fromJsonString(jsonString, options); } - static equals(a: ObjectMetadata | PlainMessage | undefined, b: ObjectMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(ObjectMetadata, a, b); + static equals(a: RevisionMetadata | PlainMessage | undefined, b: RevisionMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(RevisionMetadata, a, b); } }