Skip to content

Commit

Permalink
push latest version of APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
rig-bot committed Jun 3, 2024
1 parent 677886c commit 781303a
Show file tree
Hide file tree
Showing 4 changed files with 965 additions and 0 deletions.
158 changes: 158 additions & 0 deletions api/v1/settings/configuration_pb.ts
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);
}
}

55 changes: 55 additions & 0 deletions api/v1/settings/service_connect.ts
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;

Loading

0 comments on commit 781303a

Please sign in to comment.