-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
965 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<Configuration> { | ||
/** | ||
* @generated from field: api.v1.settings.Client client = 1; | ||
*/ | ||
client?: Client; | ||
|
||
constructor(data?: PartialMessage<Configuration>) { | ||
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<BinaryReadOptions>): Configuration { | ||
return new Configuration().fromBinary(bytes, options); | ||
} | ||
|
||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Configuration { | ||
return new Configuration().fromJson(jsonValue, options); | ||
} | ||
|
||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Configuration { | ||
return new Configuration().fromJsonString(jsonString, options); | ||
} | ||
|
||
static equals(a: Configuration | PlainMessage<Configuration> | undefined, b: Configuration | PlainMessage<Configuration> | undefined): boolean { | ||
return proto3.util.equals(Configuration, a, b); | ||
} | ||
} | ||
|
||
/** | ||
* @generated from message api.v1.settings.Client | ||
*/ | ||
export class Client extends Message<Client> { | ||
/** | ||
* @generated from field: api.v1.settings.Slack slack = 1; | ||
*/ | ||
slack?: Slack; | ||
|
||
constructor(data?: PartialMessage<Client>) { | ||
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<BinaryReadOptions>): Client { | ||
return new Client().fromBinary(bytes, options); | ||
} | ||
|
||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Client { | ||
return new Client().fromJson(jsonValue, options); | ||
} | ||
|
||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Client { | ||
return new Client().fromJsonString(jsonString, options); | ||
} | ||
|
||
static equals(a: Client | PlainMessage<Client> | undefined, b: Client | PlainMessage<Client> | undefined): boolean { | ||
return proto3.util.equals(Client, a, b); | ||
} | ||
} | ||
|
||
/** | ||
* @generated from message api.v1.settings.Slack | ||
*/ | ||
export class Slack extends Message<Slack> { | ||
/** | ||
* @generated from field: repeated api.v1.settings.Slack.Workspace workspace = 1; | ||
*/ | ||
workspace: Slack_Workspace[] = []; | ||
|
||
constructor(data?: PartialMessage<Slack>) { | ||
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<BinaryReadOptions>): Slack { | ||
return new Slack().fromBinary(bytes, options); | ||
} | ||
|
||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Slack { | ||
return new Slack().fromJson(jsonValue, options); | ||
} | ||
|
||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Slack { | ||
return new Slack().fromJsonString(jsonString, options); | ||
} | ||
|
||
static equals(a: Slack | PlainMessage<Slack> | undefined, b: Slack | PlainMessage<Slack> | undefined): boolean { | ||
return proto3.util.equals(Slack, a, b); | ||
} | ||
} | ||
|
||
/** | ||
* @generated from message api.v1.settings.Slack.Workspace | ||
*/ | ||
export class Slack_Workspace extends Message<Slack_Workspace> { | ||
/** | ||
* @generated from field: string name = 1; | ||
*/ | ||
name = ""; | ||
|
||
constructor(data?: PartialMessage<Slack_Workspace>) { | ||
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<BinaryReadOptions>): Slack_Workspace { | ||
return new Slack_Workspace().fromBinary(bytes, options); | ||
} | ||
|
||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Slack_Workspace { | ||
return new Slack_Workspace().fromJson(jsonValue, options); | ||
} | ||
|
||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Slack_Workspace { | ||
return new Slack_Workspace().fromJsonString(jsonString, options); | ||
} | ||
|
||
static equals(a: Slack_Workspace | PlainMessage<Slack_Workspace> | undefined, b: Slack_Workspace | PlainMessage<Slack_Workspace> | undefined): boolean { | ||
return proto3.util.equals(Slack_Workspace, a, b); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
|
Oops, something went wrong.