From 781303aefdc7ee939096d4654103ff2708a3e6bf Mon Sep 17 00:00:00 2001 From: rig-bot Date: Mon, 3 Jun 2024 12:05:56 +0000 Subject: [PATCH] push latest version of APIs --- api/v1/settings/configuration_pb.ts | 158 ++++++++++ api/v1/settings/service_connect.ts | 55 ++++ api/v1/settings/service_pb.ts | 296 ++++++++++++++++++ api/v1/settings/settings_pb.ts | 456 ++++++++++++++++++++++++++++ 4 files changed, 965 insertions(+) create mode 100644 api/v1/settings/configuration_pb.ts create mode 100644 api/v1/settings/service_connect.ts create mode 100644 api/v1/settings/service_pb.ts create mode 100644 api/v1/settings/settings_pb.ts diff --git a/api/v1/settings/configuration_pb.ts b/api/v1/settings/configuration_pb.ts new file mode 100644 index 0000000..038e41c --- /dev/null +++ b/api/v1/settings/configuration_pb.ts @@ -0,0 +1,158 @@ +// @generated by protoc-gen-es v1.10.0 with parameter "target=ts" +// @generated from file api/v1/settings/configuration.proto (package api.v1.settings, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Platform wide static configuration. + * + * @generated from message api.v1.settings.Configuration + */ +export class Configuration extends Message { + /** + * @generated from field: api.v1.settings.Client client = 1; + */ + client?: Client; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.settings.Configuration"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "client", kind: "message", T: Client }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Configuration { + return new Configuration().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Configuration { + return new Configuration().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Configuration { + return new Configuration().fromJsonString(jsonString, options); + } + + static equals(a: Configuration | PlainMessage | undefined, b: Configuration | PlainMessage | undefined): boolean { + return proto3.util.equals(Configuration, a, b); + } +} + +/** + * @generated from message api.v1.settings.Client + */ +export class Client extends Message { + /** + * @generated from field: api.v1.settings.Slack slack = 1; + */ + slack?: Slack; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.settings.Client"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "slack", kind: "message", T: Slack }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Client { + return new Client().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Client { + return new Client().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Client { + return new Client().fromJsonString(jsonString, options); + } + + static equals(a: Client | PlainMessage | undefined, b: Client | PlainMessage | undefined): boolean { + return proto3.util.equals(Client, a, b); + } +} + +/** + * @generated from message api.v1.settings.Slack + */ +export class Slack extends Message { + /** + * @generated from field: repeated api.v1.settings.Slack.Workspace workspace = 1; + */ + workspace: Slack_Workspace[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.settings.Slack"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "workspace", kind: "message", T: Slack_Workspace, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Slack { + return new Slack().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Slack { + return new Slack().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Slack { + return new Slack().fromJsonString(jsonString, options); + } + + static equals(a: Slack | PlainMessage | undefined, b: Slack | PlainMessage | undefined): boolean { + return proto3.util.equals(Slack, a, b); + } +} + +/** + * @generated from message api.v1.settings.Slack.Workspace + */ +export class Slack_Workspace extends Message { + /** + * @generated from field: string name = 1; + */ + name = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.settings.Slack.Workspace"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Slack_Workspace { + return new Slack_Workspace().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Slack_Workspace { + return new Slack_Workspace().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Slack_Workspace { + return new Slack_Workspace().fromJsonString(jsonString, options); + } + + static equals(a: Slack_Workspace | PlainMessage | undefined, b: Slack_Workspace | PlainMessage | undefined): boolean { + return proto3.util.equals(Slack_Workspace, a, b); + } +} + diff --git a/api/v1/settings/service_connect.ts b/api/v1/settings/service_connect.ts new file mode 100644 index 0000000..b90dc6e --- /dev/null +++ b/api/v1/settings/service_connect.ts @@ -0,0 +1,55 @@ +// @generated by protoc-gen-connect-es v0.13.0 with parameter "target=ts" +// @generated from file api/v1/settings/service.proto (package api.v1.settings, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { GetConfigurationRequest, GetConfigurationResponse, GetLicenseInfoRequest, GetLicenseInfoResponse, GetSettingsRequest, GetSettingsResponse, UpdateSettingsRequest, UpdateSettingsResponse } from "./service_pb.js"; +import { MethodKind } from "@bufbuild/protobuf"; + +/** + * Service for setting and retrieving platform-wide settings. + * + * @generated from service api.v1.settings.Service + */ +export const Service = { + typeName: "api.v1.settings.Service", + methods: { + /** + * @generated from rpc api.v1.settings.Service.GetConfiguration + */ + getConfiguration: { + name: "GetConfiguration", + I: GetConfigurationRequest, + O: GetConfigurationResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc api.v1.settings.Service.GetSettings + */ + getSettings: { + name: "GetSettings", + I: GetSettingsRequest, + O: GetSettingsResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc api.v1.settings.Service.UpdateSettings + */ + updateSettings: { + name: "UpdateSettings", + I: UpdateSettingsRequest, + O: UpdateSettingsResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc api.v1.settings.Service.GetLicenseInfo + */ + getLicenseInfo: { + name: "GetLicenseInfo", + I: GetLicenseInfoRequest, + O: GetLicenseInfoResponse, + kind: MethodKind.Unary, + }, + } +} as const; + diff --git a/api/v1/settings/service_pb.ts b/api/v1/settings/service_pb.ts new file mode 100644 index 0000000..18c6472 --- /dev/null +++ b/api/v1/settings/service_pb.ts @@ -0,0 +1,296 @@ +// @generated by protoc-gen-es v1.10.0 with parameter "target=ts" +// @generated from file api/v1/settings/service.proto (package api.v1.settings, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; +import { Plan, Settings, Update } from "./settings_pb.js"; +import { Configuration } from "./configuration_pb.js"; + +/** + * Request to get the license information of the Rig installation. + * + * @generated from message api.v1.settings.GetLicenseInfoRequest + */ +export class GetLicenseInfoRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.settings.GetLicenseInfoRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetLicenseInfoRequest { + return new GetLicenseInfoRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetLicenseInfoRequest { + return new GetLicenseInfoRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetLicenseInfoRequest { + return new GetLicenseInfoRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetLicenseInfoRequest | PlainMessage | undefined, b: GetLicenseInfoRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetLicenseInfoRequest, a, b); + } +} + +/** + * Response for getting the license information of the Rig installation. + * + * @generated from message api.v1.settings.GetLicenseInfoResponse + */ +export class GetLicenseInfoResponse extends Message { + /** + * The plan of the rig installation. + * + * @generated from field: api.v1.settings.Plan plan = 1; + */ + plan = Plan.UNSPECIFIED; + + /** + * The expiration date of the license. + * + * @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 = "api.v1.settings.GetLicenseInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "plan", kind: "enum", T: proto3.getEnumType(Plan) }, + { no: 2, name: "expires_at", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetLicenseInfoResponse { + return new GetLicenseInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetLicenseInfoResponse { + return new GetLicenseInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetLicenseInfoResponse { + return new GetLicenseInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetLicenseInfoResponse | PlainMessage | undefined, b: GetLicenseInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetLicenseInfoResponse, a, b); + } +} + +/** + * @generated from message api.v1.settings.GetSettingsRequest + */ +export class GetSettingsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.settings.GetSettingsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetSettingsRequest { + return new GetSettingsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetSettingsRequest { + return new GetSettingsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetSettingsRequest { + return new GetSettingsRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetSettingsRequest | PlainMessage | undefined, b: GetSettingsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetSettingsRequest, a, b); + } +} + +/** + * @generated from message api.v1.settings.GetSettingsResponse + */ +export class GetSettingsResponse extends Message { + /** + * @generated from field: api.v1.settings.Settings settings = 1; + */ + settings?: Settings; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.settings.GetSettingsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "settings", kind: "message", T: Settings }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetSettingsResponse { + return new GetSettingsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetSettingsResponse { + return new GetSettingsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetSettingsResponse { + return new GetSettingsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetSettingsResponse | PlainMessage | undefined, b: GetSettingsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetSettingsResponse, a, b); + } +} + +/** + * @generated from message api.v1.settings.UpdateSettingsRequest + */ +export class UpdateSettingsRequest extends Message { + /** + * @generated from field: repeated api.v1.settings.Update updates = 1; + */ + updates: Update[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.settings.UpdateSettingsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "updates", kind: "message", T: Update, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UpdateSettingsRequest { + return new UpdateSettingsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UpdateSettingsRequest { + return new UpdateSettingsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UpdateSettingsRequest { + return new UpdateSettingsRequest().fromJsonString(jsonString, options); + } + + static equals(a: UpdateSettingsRequest | PlainMessage | undefined, b: UpdateSettingsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(UpdateSettingsRequest, a, b); + } +} + +/** + * @generated from message api.v1.settings.UpdateSettingsResponse + */ +export class UpdateSettingsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.settings.UpdateSettingsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UpdateSettingsResponse { + return new UpdateSettingsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UpdateSettingsResponse { + return new UpdateSettingsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UpdateSettingsResponse { + return new UpdateSettingsResponse().fromJsonString(jsonString, options); + } + + static equals(a: UpdateSettingsResponse | PlainMessage | undefined, b: UpdateSettingsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(UpdateSettingsResponse, a, b); + } +} + +/** + * @generated from message api.v1.settings.GetConfigurationRequest + */ +export class GetConfigurationRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.settings.GetConfigurationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetConfigurationRequest { + return new GetConfigurationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetConfigurationRequest { + return new GetConfigurationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetConfigurationRequest { + return new GetConfigurationRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetConfigurationRequest | PlainMessage | undefined, b: GetConfigurationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetConfigurationRequest, a, b); + } +} + +/** + * @generated from message api.v1.settings.GetConfigurationResponse + */ +export class GetConfigurationResponse extends Message { + /** + * @generated from field: api.v1.settings.Configuration configuration = 1; + */ + configuration?: Configuration; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.settings.GetConfigurationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "configuration", kind: "message", T: Configuration }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetConfigurationResponse { + return new GetConfigurationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetConfigurationResponse { + return new GetConfigurationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetConfigurationResponse { + return new GetConfigurationResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetConfigurationResponse | PlainMessage | undefined, b: GetConfigurationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetConfigurationResponse, a, b); + } +} + diff --git a/api/v1/settings/settings_pb.ts b/api/v1/settings/settings_pb.ts new file mode 100644 index 0000000..1a150d1 --- /dev/null +++ b/api/v1/settings/settings_pb.ts @@ -0,0 +1,456 @@ +// @generated by protoc-gen-es v1.10.0 with parameter "target=ts" +// @generated from file api/v1/settings/settings.proto (package api.v1.settings, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from enum api.v1.settings.NotificationTopic + */ +export enum NotificationTopic { + /** + * @generated from enum value: NOTIFICATION_TOPIC_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * @generated from enum value: NOTIFICATION_TOPIC_ROLLOUT = 1; + */ + ROLLOUT = 1, + + /** + * @generated from enum value: NOTIFICATION_TOPIC_ISSUE = 2; + */ + ISSUE = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(NotificationTopic) +proto3.util.setEnumType(NotificationTopic, "api.v1.settings.NotificationTopic", [ + { no: 0, name: "NOTIFICATION_TOPIC_UNSPECIFIED" }, + { no: 1, name: "NOTIFICATION_TOPIC_ROLLOUT" }, + { no: 2, name: "NOTIFICATION_TOPIC_ISSUE" }, +]); + +/** + * The plan for a rig installation + * + * @generated from enum api.v1.settings.Plan + */ +export enum Plan { + /** + * Unspecified / unactivated plan. + * + * @generated from enum value: PLAN_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * Free tier. + * + * @generated from enum value: PLAN_FREE = 1; + */ + FREE = 1, + + /** + * Team / Pro tier. + * + * @generated from enum value: PLAN_TEAM = 2; + */ + TEAM = 2, + + /** + * Enterprise tier. + * + * @generated from enum value: PLAN_ENTERPRISE = 3; + */ + ENTERPRISE = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(Plan) +proto3.util.setEnumType(Plan, "api.v1.settings.Plan", [ + { no: 0, name: "PLAN_UNSPECIFIED" }, + { no: 1, name: "PLAN_FREE" }, + { no: 2, name: "PLAN_TEAM" }, + { no: 3, name: "PLAN_ENTERPRISE" }, +]); + +/** + * Platform wide settings. + * + * @generated from message api.v1.settings.Settings + */ +export class Settings extends Message { + /** + * @generated from field: repeated api.v1.settings.NotificationNotifier notification_notifiers = 1; + */ + notificationNotifiers: NotificationNotifier[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.settings.Settings"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "notification_notifiers", kind: "message", T: NotificationNotifier, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Settings { + return new Settings().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Settings { + return new Settings().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Settings { + return new Settings().fromJsonString(jsonString, options); + } + + static equals(a: Settings | PlainMessage | undefined, b: Settings | PlainMessage | undefined): boolean { + return proto3.util.equals(Settings, a, b); + } +} + +/** + * Update message for platform settings. + * + * @generated from message api.v1.settings.Update + */ +export class Update extends Message { + /** + * @generated from oneof api.v1.settings.Update.field + */ + field: { + /** + * @generated from field: api.v1.settings.Update.SetNotificationNotifiers set_notification_notifiers = 1; + */ + value: Update_SetNotificationNotifiers; + case: "setNotificationNotifiers"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.settings.Update"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "set_notification_notifiers", kind: "message", T: Update_SetNotificationNotifiers, oneof: "field" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Update { + return new Update().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Update { + return new Update().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Update { + return new Update().fromJsonString(jsonString, options); + } + + static equals(a: Update | PlainMessage | undefined, b: Update | PlainMessage | undefined): boolean { + return proto3.util.equals(Update, a, b); + } +} + +/** + * @generated from message api.v1.settings.Update.SetNotificationNotifiers + */ +export class Update_SetNotificationNotifiers extends Message { + /** + * @generated from field: repeated api.v1.settings.NotificationNotifier notifiers = 1; + */ + notifiers: NotificationNotifier[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.settings.Update.SetNotificationNotifiers"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "notifiers", kind: "message", T: NotificationNotifier, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Update_SetNotificationNotifiers { + return new Update_SetNotificationNotifiers().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Update_SetNotificationNotifiers { + return new Update_SetNotificationNotifiers().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Update_SetNotificationNotifiers { + return new Update_SetNotificationNotifiers().fromJsonString(jsonString, options); + } + + static equals(a: Update_SetNotificationNotifiers | PlainMessage | undefined, b: Update_SetNotificationNotifiers | PlainMessage | undefined): boolean { + return proto3.util.equals(Update_SetNotificationNotifiers, a, b); + } +} + +/** + * @generated from message api.v1.settings.NotificationNotifier + */ +export class NotificationNotifier extends Message { + /** + * @generated from field: api.v1.settings.NotificationTarget target = 1; + */ + target?: NotificationTarget; + + /** + * @generated from field: repeated api.v1.settings.NotificationTopic topics = 2; + */ + topics: NotificationTopic[] = []; + + /** + * @generated from field: api.v1.settings.NotificationEnvironments environments = 3; + */ + environments?: NotificationEnvironments; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.settings.NotificationNotifier"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "target", kind: "message", T: NotificationTarget }, + { no: 2, name: "topics", kind: "enum", T: proto3.getEnumType(NotificationTopic), repeated: true }, + { no: 3, name: "environments", kind: "message", T: NotificationEnvironments }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NotificationNotifier { + return new NotificationNotifier().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NotificationNotifier { + return new NotificationNotifier().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NotificationNotifier { + return new NotificationNotifier().fromJsonString(jsonString, options); + } + + static equals(a: NotificationNotifier | PlainMessage | undefined, b: NotificationNotifier | PlainMessage | undefined): boolean { + return proto3.util.equals(NotificationNotifier, a, b); + } +} + +/** + * @generated from message api.v1.settings.NotificationEnvironments + */ +export class NotificationEnvironments extends Message { + /** + * @generated from oneof api.v1.settings.NotificationEnvironments.filter + */ + filter: { + /** + * @generated from field: api.v1.settings.NotificationEnvironments.All all = 1; + */ + value: NotificationEnvironments_All; + case: "all"; + } | { + /** + * @generated from field: api.v1.settings.NotificationEnvironments.Selected selected = 2; + */ + value: NotificationEnvironments_Selected; + case: "selected"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.settings.NotificationEnvironments"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "all", kind: "message", T: NotificationEnvironments_All, oneof: "filter" }, + { no: 2, name: "selected", kind: "message", T: NotificationEnvironments_Selected, oneof: "filter" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NotificationEnvironments { + return new NotificationEnvironments().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NotificationEnvironments { + return new NotificationEnvironments().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NotificationEnvironments { + return new NotificationEnvironments().fromJsonString(jsonString, options); + } + + static equals(a: NotificationEnvironments | PlainMessage | undefined, b: NotificationEnvironments | PlainMessage | undefined): boolean { + return proto3.util.equals(NotificationEnvironments, a, b); + } +} + +/** + * @generated from message api.v1.settings.NotificationEnvironments.All + */ +export class NotificationEnvironments_All extends Message { + /** + * @generated from field: bool include_ephemeral = 1; + */ + includeEphemeral = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.settings.NotificationEnvironments.All"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "include_ephemeral", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NotificationEnvironments_All { + return new NotificationEnvironments_All().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NotificationEnvironments_All { + return new NotificationEnvironments_All().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NotificationEnvironments_All { + return new NotificationEnvironments_All().fromJsonString(jsonString, options); + } + + static equals(a: NotificationEnvironments_All | PlainMessage | undefined, b: NotificationEnvironments_All | PlainMessage | undefined): boolean { + return proto3.util.equals(NotificationEnvironments_All, a, b); + } +} + +/** + * @generated from message api.v1.settings.NotificationEnvironments.Selected + */ +export class NotificationEnvironments_Selected extends Message { + /** + * @generated from field: repeated string environment_ids = 1; + */ + environmentIds: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.settings.NotificationEnvironments.Selected"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "environment_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NotificationEnvironments_Selected { + return new NotificationEnvironments_Selected().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NotificationEnvironments_Selected { + return new NotificationEnvironments_Selected().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NotificationEnvironments_Selected { + return new NotificationEnvironments_Selected().fromJsonString(jsonString, options); + } + + static equals(a: NotificationEnvironments_Selected | PlainMessage | undefined, b: NotificationEnvironments_Selected | PlainMessage | undefined): boolean { + return proto3.util.equals(NotificationEnvironments_Selected, a, b); + } +} + +/** + * @generated from message api.v1.settings.NotificationTarget + */ +export class NotificationTarget extends Message { + /** + * @generated from oneof api.v1.settings.NotificationTarget.target + */ + target: { + /** + * @generated from field: api.v1.settings.NotificationTarget.SlackTarget slack = 1; + */ + value: NotificationTarget_SlackTarget; + case: "slack"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.settings.NotificationTarget"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "slack", kind: "message", T: NotificationTarget_SlackTarget, oneof: "target" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NotificationTarget { + return new NotificationTarget().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NotificationTarget { + return new NotificationTarget().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NotificationTarget { + return new NotificationTarget().fromJsonString(jsonString, options); + } + + static equals(a: NotificationTarget | PlainMessage | undefined, b: NotificationTarget | PlainMessage | undefined): boolean { + return proto3.util.equals(NotificationTarget, a, b); + } +} + +/** + * @generated from message api.v1.settings.NotificationTarget.SlackTarget + */ +export class NotificationTarget_SlackTarget extends Message { + /** + * @generated from field: string workspace = 1; + */ + workspace = ""; + + /** + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.settings.NotificationTarget.SlackTarget"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "workspace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NotificationTarget_SlackTarget { + return new NotificationTarget_SlackTarget().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NotificationTarget_SlackTarget { + return new NotificationTarget_SlackTarget().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NotificationTarget_SlackTarget { + return new NotificationTarget_SlackTarget().fromJsonString(jsonString, options); + } + + static equals(a: NotificationTarget_SlackTarget | PlainMessage | undefined, b: NotificationTarget_SlackTarget | PlainMessage | undefined): boolean { + return proto3.util.equals(NotificationTarget_SlackTarget, a, b); + } +} +