mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-20 22:07:15 +00:00
refactor: update ts proto generator
This commit is contained in:
parent
dd5cce63c5
commit
a372d07c4b
5
.github/workflows/extension-test.yml
vendored
5
.github/workflows/extension-test.yml
vendored
@ -15,10 +15,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- run: buf generate
|
||||||
|
working-directory: proto
|
||||||
- uses: pnpm/action-setup@v2.2.4
|
- uses: pnpm/action-setup@v2.2.4
|
||||||
with:
|
with:
|
||||||
version: 8
|
version: 8
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: "18"
|
node-version: "18"
|
||||||
@ -34,6 +35,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- run: buf generate
|
||||||
|
working-directory: proto
|
||||||
- uses: pnpm/action-setup@v2.2.4
|
- uses: pnpm/action-setup@v2.2.4
|
||||||
with:
|
with:
|
||||||
version: 8
|
version: 8
|
||||||
|
5
.github/workflows/frontend-test.yml
vendored
5
.github/workflows/frontend-test.yml
vendored
@ -15,10 +15,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- run: buf generate
|
||||||
|
working-directory: proto
|
||||||
- uses: pnpm/action-setup@v2.2.4
|
- uses: pnpm/action-setup@v2.2.4
|
||||||
with:
|
with:
|
||||||
version: 8
|
version: 8
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: "18"
|
node-version: "18"
|
||||||
@ -34,6 +35,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- run: buf generate
|
||||||
|
working-directory: proto
|
||||||
- uses: pnpm/action-setup@v2.2.4
|
- uses: pnpm/action-setup@v2.2.4
|
||||||
with:
|
with:
|
||||||
version: 8
|
version: 8
|
||||||
|
18
Dockerfile
18
Dockerfile
@ -1,12 +1,26 @@
|
|||||||
|
# Build protobuf.
|
||||||
|
FROM golang:1.21-alpine AS protobuf
|
||||||
|
WORKDIR /protobuf-generate
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN GO111MODULE=on GOBIN=/usr/local/bin go install github.com/bufbuild/buf/cmd/buf@v1.26.1
|
||||||
|
|
||||||
|
WORKDIR /protobuf-generate/proto
|
||||||
|
|
||||||
|
RUN buf generate
|
||||||
|
|
||||||
# Build frontend dist.
|
# Build frontend dist.
|
||||||
FROM node:18-alpine AS frontend
|
FROM node:18-alpine AS frontend
|
||||||
WORKDIR /frontend-build
|
WORKDIR /frontend-build
|
||||||
|
|
||||||
COPY ./frontend/ .
|
COPY ./frontend .
|
||||||
|
|
||||||
|
COPY --from=protobuf /protobuf-generate/frontend/web/src/types/proto ./web/src/types/proto
|
||||||
|
|
||||||
WORKDIR /frontend-build/web
|
WORKDIR /frontend-build/web
|
||||||
|
|
||||||
RUN corepack enable && pnpm i --frozen-lockfile
|
RUN corepack enable && pnpm i --frozen-lockfile
|
||||||
|
|
||||||
RUN pnpm build
|
RUN pnpm build
|
||||||
|
|
||||||
|
2
frontend/extension/.gitignore
vendored
2
frontend/extension/.gitignore
vendored
@ -36,3 +36,5 @@ keys.json
|
|||||||
|
|
||||||
# typescript
|
# typescript
|
||||||
.tsbuildinfo
|
.tsbuildinfo
|
||||||
|
|
||||||
|
src/types/proto
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
"lint-fix": "eslint --ext .js,.ts,.tsx, src --fix"
|
"lint-fix": "eslint --ext .js,.ts,.tsx, src --fix"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@bufbuild/protobuf": "^1.3.1",
|
|
||||||
"@emotion/react": "^11.11.1",
|
"@emotion/react": "^11.11.1",
|
||||||
"@emotion/styled": "^11.11.0",
|
"@emotion/styled": "^11.11.0",
|
||||||
"@mui/joy": "5.0.0-beta.0",
|
"@mui/joy": "5.0.0-beta.0",
|
||||||
|
7
frontend/extension/pnpm-lock.yaml
generated
7
frontend/extension/pnpm-lock.yaml
generated
@ -5,9 +5,6 @@ settings:
|
|||||||
excludeLinksFromLockfile: false
|
excludeLinksFromLockfile: false
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
'@bufbuild/protobuf':
|
|
||||||
specifier: ^1.3.1
|
|
||||||
version: 1.3.1
|
|
||||||
'@emotion/react':
|
'@emotion/react':
|
||||||
specifier: ^11.11.1
|
specifier: ^11.11.1
|
||||||
version: 11.11.1(@types/react@18.2.15)(react@18.2.0)
|
version: 11.11.1(@types/react@18.2.15)(react@18.2.0)
|
||||||
@ -348,10 +345,6 @@ packages:
|
|||||||
'@babel/helper-validator-identifier': 7.22.20
|
'@babel/helper-validator-identifier': 7.22.20
|
||||||
to-fast-properties: 2.0.0
|
to-fast-properties: 2.0.0
|
||||||
|
|
||||||
/@bufbuild/protobuf@1.3.1:
|
|
||||||
resolution: {integrity: sha512-BUyJWutgP2S8K/1NphOJokuwDckXS4qI2T1pGZAlkFdZchWae3jm6fCdkcGbLlM1QLOcNFFePd+7Feo4BYGrJQ==}
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/@emotion/babel-plugin@11.11.0:
|
/@emotion/babel-plugin@11.11.0:
|
||||||
resolution: {integrity: sha512-m4HEDZleaaCH+XgDDsPF15Ht6wTLsgDTeR3WYj9Q/k76JtWhrJjcP4+/XlG8LGT/Rol9qUfOIztXeA84ATpqPQ==}
|
resolution: {integrity: sha512-m4HEDZleaaCH+XgDDsPF15Ht6wTLsgDTeR3WYj9Q/k76JtWhrJjcP4+/XlG8LGT/Rol9qUfOIztXeA84ATpqPQ==}
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { Shortcut } from "@/types/proto/api/v2/shortcut_service_pb";
|
import type { Shortcut } from "@/types/proto/api/v2/shortcut_service";
|
||||||
import { Storage } from "@plasmohq/storage";
|
import { Storage } from "@plasmohq/storage";
|
||||||
|
|
||||||
const storage = new Storage();
|
const storage = new Storage();
|
||||||
|
@ -3,7 +3,7 @@ import { useStorage } from "@plasmohq/storage/hook";
|
|||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { toast } from "react-hot-toast";
|
import { toast } from "react-hot-toast";
|
||||||
import { CreateShortcutResponse, OpenGraphMetadata, Visibility } from "@/types/proto/api/v2/shortcut_service_pb";
|
import { CreateShortcutResponse, OpenGraphMetadata, Visibility } from "@/types/proto/api/v2/shortcut_service";
|
||||||
import Icon from "./Icon";
|
import Icon from "./Icon";
|
||||||
|
|
||||||
const generateTempName = (length = 6) => {
|
const generateTempName = (length = 6) => {
|
||||||
@ -102,7 +102,7 @@ const CreateShortcutsButton = () => {
|
|||||||
title: state.title,
|
title: state.title,
|
||||||
link: state.link,
|
link: state.link,
|
||||||
visibility: Visibility.PRIVATE,
|
visibility: Visibility.PRIVATE,
|
||||||
ogMetadata: OpenGraphMetadata.fromJsonString("{}"),
|
ogMetadata: OpenGraphMetadata.fromPartial({}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -3,7 +3,7 @@ import { useStorage } from "@plasmohq/storage/hook";
|
|||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import { useEffect } from "react";
|
import { useEffect } from "react";
|
||||||
import { toast } from "react-hot-toast";
|
import { toast } from "react-hot-toast";
|
||||||
import { ListShortcutsResponse } from "@/types/proto/api/v2/shortcut_service_pb";
|
import { ListShortcutsResponse } from "@/types/proto/api/v2/shortcut_service";
|
||||||
import Icon from "./Icon";
|
import Icon from "./Icon";
|
||||||
|
|
||||||
const PullShortcutsButton = () => {
|
const PullShortcutsButton = () => {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { Shortcut } from "@/types/proto/api/v2/shortcut_service_pb";
|
import type { Shortcut } from "@/types/proto/api/v2/shortcut_service";
|
||||||
import { useStorage } from "@plasmohq/storage/hook";
|
import { useStorage } from "@plasmohq/storage/hook";
|
||||||
import classNames from "classnames";
|
import classNames from "classnames";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { Shortcut } from "@/types/proto/api/v2/shortcut_service_pb";
|
import type { Shortcut } from "@/types/proto/api/v2/shortcut_service";
|
||||||
import { useStorage } from "@plasmohq/storage/hook";
|
import { useStorage } from "@plasmohq/storage/hook";
|
||||||
import classNames from "classnames";
|
import classNames from "classnames";
|
||||||
import ShortcutView from "./ShortcutView";
|
import ShortcutView from "./ShortcutView";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { Shortcut } from "@/types/proto/api/v2/shortcut_service_pb";
|
import type { Shortcut } from "@/types/proto/api/v2/shortcut_service";
|
||||||
import { Button, Divider, Input } from "@mui/joy";
|
import { Button, Divider, Input } from "@mui/joy";
|
||||||
import { useStorage } from "@plasmohq/storage/hook";
|
import { useStorage } from "@plasmohq/storage/hook";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { Shortcut } from "@/types/proto/api/v2/shortcut_service_pb";
|
import type { Shortcut } from "@/types/proto/api/v2/shortcut_service";
|
||||||
import { Button, Divider, IconButton } from "@mui/joy";
|
import { Button, Divider, IconButton } from "@mui/joy";
|
||||||
import { useStorage } from "@plasmohq/storage/hook";
|
import { useStorage } from "@plasmohq/storage/hook";
|
||||||
import { Toaster } from "react-hot-toast";
|
import { Toaster } from "react-hot-toast";
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file api/v2/common.proto (package slash.api.v2, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.api.v2.RowStatus
|
|
||||||
*/
|
|
||||||
export declare enum RowStatus {
|
|
||||||
/**
|
|
||||||
* @generated from enum value: ROW_STATUS_UNSPECIFIED = 0;
|
|
||||||
*/
|
|
||||||
ROW_STATUS_UNSPECIFIED = 0,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: NORMAL = 1;
|
|
||||||
*/
|
|
||||||
NORMAL = 1,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: ARCHIVED = 2;
|
|
||||||
*/
|
|
||||||
ARCHIVED = 2,
|
|
||||||
}
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file api/v2/common.proto (package slash.api.v2, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
import { proto3 } from "@bufbuild/protobuf";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.api.v2.RowStatus
|
|
||||||
*/
|
|
||||||
export const RowStatus = proto3.makeEnum(
|
|
||||||
"slash.api.v2.RowStatus",
|
|
||||||
[
|
|
||||||
{no: 0, name: "ROW_STATUS_UNSPECIFIED"},
|
|
||||||
{no: 1, name: "NORMAL"},
|
|
||||||
{no: 2, name: "ARCHIVED"},
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
@ -1,329 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file api/v2/shortcut_service.proto (package slash.api.v2, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
||||||
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
||||||
import type { RowStatus } from "./common_pb.js";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.api.v2.Visibility
|
|
||||||
*/
|
|
||||||
export declare enum Visibility {
|
|
||||||
/**
|
|
||||||
* @generated from enum value: VISIBILITY_UNSPECIFIED = 0;
|
|
||||||
*/
|
|
||||||
VISIBILITY_UNSPECIFIED = 0,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: PRIVATE = 1;
|
|
||||||
*/
|
|
||||||
PRIVATE = 1,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: WORKSPACE = 2;
|
|
||||||
*/
|
|
||||||
WORKSPACE = 2,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: PUBLIC = 3;
|
|
||||||
*/
|
|
||||||
PUBLIC = 3,
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.Shortcut
|
|
||||||
*/
|
|
||||||
export declare class Shortcut extends Message<Shortcut> {
|
|
||||||
/**
|
|
||||||
* @generated from field: int32 id = 1;
|
|
||||||
*/
|
|
||||||
id: number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: int32 creator_id = 2;
|
|
||||||
*/
|
|
||||||
creatorId: number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: int64 created_ts = 3;
|
|
||||||
*/
|
|
||||||
createdTs: bigint;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: int64 updated_ts = 4;
|
|
||||||
*/
|
|
||||||
updatedTs: bigint;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.RowStatus row_status = 5;
|
|
||||||
*/
|
|
||||||
rowStatus: RowStatus;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string name = 6;
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string link = 7;
|
|
||||||
*/
|
|
||||||
link: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string title = 8;
|
|
||||||
*/
|
|
||||||
title: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: repeated string tags = 9;
|
|
||||||
*/
|
|
||||||
tags: string[];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string description = 10;
|
|
||||||
*/
|
|
||||||
description: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.Visibility visibility = 11;
|
|
||||||
*/
|
|
||||||
visibility: Visibility;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.OpenGraphMetadata og_metadata = 12;
|
|
||||||
*/
|
|
||||||
ogMetadata?: OpenGraphMetadata;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<Shortcut>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.Shortcut";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Shortcut;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Shortcut;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Shortcut;
|
|
||||||
|
|
||||||
static equals(a: Shortcut | PlainMessage<Shortcut> | undefined, b: Shortcut | PlainMessage<Shortcut> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.OpenGraphMetadata
|
|
||||||
*/
|
|
||||||
export declare class OpenGraphMetadata extends Message<OpenGraphMetadata> {
|
|
||||||
/**
|
|
||||||
* @generated from field: string title = 1;
|
|
||||||
*/
|
|
||||||
title: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string description = 2;
|
|
||||||
*/
|
|
||||||
description: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string image = 3;
|
|
||||||
*/
|
|
||||||
image: string;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<OpenGraphMetadata>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.OpenGraphMetadata";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OpenGraphMetadata;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OpenGraphMetadata;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OpenGraphMetadata;
|
|
||||||
|
|
||||||
static equals(a: OpenGraphMetadata | PlainMessage<OpenGraphMetadata> | undefined, b: OpenGraphMetadata | PlainMessage<OpenGraphMetadata> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.ListShortcutsRequest
|
|
||||||
*/
|
|
||||||
export declare class ListShortcutsRequest extends Message<ListShortcutsRequest> {
|
|
||||||
constructor(data?: PartialMessage<ListShortcutsRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.ListShortcutsRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListShortcutsRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListShortcutsRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListShortcutsRequest;
|
|
||||||
|
|
||||||
static equals(a: ListShortcutsRequest | PlainMessage<ListShortcutsRequest> | undefined, b: ListShortcutsRequest | PlainMessage<ListShortcutsRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.ListShortcutsResponse
|
|
||||||
*/
|
|
||||||
export declare class ListShortcutsResponse extends Message<ListShortcutsResponse> {
|
|
||||||
/**
|
|
||||||
* @generated from field: repeated slash.api.v2.Shortcut shortcuts = 1;
|
|
||||||
*/
|
|
||||||
shortcuts: Shortcut[];
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<ListShortcutsResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.ListShortcutsResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListShortcutsResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListShortcutsResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListShortcutsResponse;
|
|
||||||
|
|
||||||
static equals(a: ListShortcutsResponse | PlainMessage<ListShortcutsResponse> | undefined, b: ListShortcutsResponse | PlainMessage<ListShortcutsResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetShortcutRequest
|
|
||||||
*/
|
|
||||||
export declare class GetShortcutRequest extends Message<GetShortcutRequest> {
|
|
||||||
/**
|
|
||||||
* @generated from field: string name = 1;
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<GetShortcutRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.GetShortcutRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetShortcutRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetShortcutRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetShortcutRequest;
|
|
||||||
|
|
||||||
static equals(a: GetShortcutRequest | PlainMessage<GetShortcutRequest> | undefined, b: GetShortcutRequest | PlainMessage<GetShortcutRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetShortcutResponse
|
|
||||||
*/
|
|
||||||
export declare class GetShortcutResponse extends Message<GetShortcutResponse> {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.Shortcut shortcut = 1;
|
|
||||||
*/
|
|
||||||
shortcut?: Shortcut;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<GetShortcutResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.GetShortcutResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetShortcutResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetShortcutResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetShortcutResponse;
|
|
||||||
|
|
||||||
static equals(a: GetShortcutResponse | PlainMessage<GetShortcutResponse> | undefined, b: GetShortcutResponse | PlainMessage<GetShortcutResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.CreateShortcutRequest
|
|
||||||
*/
|
|
||||||
export declare class CreateShortcutRequest extends Message<CreateShortcutRequest> {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.Shortcut shortcut = 1;
|
|
||||||
*/
|
|
||||||
shortcut?: Shortcut;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<CreateShortcutRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.CreateShortcutRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateShortcutRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateShortcutRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateShortcutRequest;
|
|
||||||
|
|
||||||
static equals(a: CreateShortcutRequest | PlainMessage<CreateShortcutRequest> | undefined, b: CreateShortcutRequest | PlainMessage<CreateShortcutRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.CreateShortcutResponse
|
|
||||||
*/
|
|
||||||
export declare class CreateShortcutResponse extends Message<CreateShortcutResponse> {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.Shortcut shortcut = 1;
|
|
||||||
*/
|
|
||||||
shortcut?: Shortcut;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<CreateShortcutResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.CreateShortcutResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateShortcutResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateShortcutResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateShortcutResponse;
|
|
||||||
|
|
||||||
static equals(a: CreateShortcutResponse | PlainMessage<CreateShortcutResponse> | undefined, b: CreateShortcutResponse | PlainMessage<CreateShortcutResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.DeleteShortcutRequest
|
|
||||||
*/
|
|
||||||
export declare class DeleteShortcutRequest extends Message<DeleteShortcutRequest> {
|
|
||||||
/**
|
|
||||||
* @generated from field: string name = 1;
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<DeleteShortcutRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.DeleteShortcutRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteShortcutRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteShortcutRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteShortcutRequest;
|
|
||||||
|
|
||||||
static equals(a: DeleteShortcutRequest | PlainMessage<DeleteShortcutRequest> | undefined, b: DeleteShortcutRequest | PlainMessage<DeleteShortcutRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.DeleteShortcutResponse
|
|
||||||
*/
|
|
||||||
export declare class DeleteShortcutResponse extends Message<DeleteShortcutResponse> {
|
|
||||||
constructor(data?: PartialMessage<DeleteShortcutResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.DeleteShortcutResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteShortcutResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteShortcutResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteShortcutResponse;
|
|
||||||
|
|
||||||
static equals(a: DeleteShortcutResponse | PlainMessage<DeleteShortcutResponse> | undefined, b: DeleteShortcutResponse | PlainMessage<DeleteShortcutResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
@ -1,130 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file api/v2/shortcut_service.proto (package slash.api.v2, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
import { proto3 } from "@bufbuild/protobuf";
|
|
||||||
import { RowStatus } from "./common_pb.js";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.api.v2.Visibility
|
|
||||||
*/
|
|
||||||
export const Visibility = proto3.makeEnum(
|
|
||||||
"slash.api.v2.Visibility",
|
|
||||||
[
|
|
||||||
{no: 0, name: "VISIBILITY_UNSPECIFIED"},
|
|
||||||
{no: 1, name: "PRIVATE"},
|
|
||||||
{no: 2, name: "WORKSPACE"},
|
|
||||||
{no: 3, name: "PUBLIC"},
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.Shortcut
|
|
||||||
*/
|
|
||||||
export const Shortcut = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.Shortcut",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
{ no: 2, name: "creator_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
{ no: 3, name: "created_ts", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
||||||
{ no: 4, name: "updated_ts", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
||||||
{ no: 5, name: "row_status", kind: "enum", T: proto3.getEnumType(RowStatus) },
|
|
||||||
{ no: 6, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 7, name: "link", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 8, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 9, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
||||||
{ no: 10, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 11, name: "visibility", kind: "enum", T: proto3.getEnumType(Visibility) },
|
|
||||||
{ no: 12, name: "og_metadata", kind: "message", T: OpenGraphMetadata },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.OpenGraphMetadata
|
|
||||||
*/
|
|
||||||
export const OpenGraphMetadata = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.OpenGraphMetadata",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 3, name: "image", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.ListShortcutsRequest
|
|
||||||
*/
|
|
||||||
export const ListShortcutsRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.ListShortcutsRequest",
|
|
||||||
[],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.ListShortcutsResponse
|
|
||||||
*/
|
|
||||||
export const ListShortcutsResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.ListShortcutsResponse",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "shortcuts", kind: "message", T: Shortcut, repeated: true },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetShortcutRequest
|
|
||||||
*/
|
|
||||||
export const GetShortcutRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.GetShortcutRequest",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetShortcutResponse
|
|
||||||
*/
|
|
||||||
export const GetShortcutResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.GetShortcutResponse",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "shortcut", kind: "message", T: Shortcut },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.CreateShortcutRequest
|
|
||||||
*/
|
|
||||||
export const CreateShortcutRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.CreateShortcutRequest",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "shortcut", kind: "message", T: Shortcut },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.CreateShortcutResponse
|
|
||||||
*/
|
|
||||||
export const CreateShortcutResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.CreateShortcutResponse",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "shortcut", kind: "message", T: Shortcut },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.DeleteShortcutRequest
|
|
||||||
*/
|
|
||||||
export const DeleteShortcutRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.DeleteShortcutRequest",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.DeleteShortcutResponse
|
|
||||||
*/
|
|
||||||
export const DeleteShortcutResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.DeleteShortcutResponse",
|
|
||||||
[],
|
|
||||||
);
|
|
||||||
|
|
@ -1,524 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file api/v2/user_service.proto (package slash.api.v2, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Timestamp } from "@bufbuild/protobuf";
|
|
||||||
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
||||||
import type { RowStatus } from "./common_pb.js";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.api.v2.Role
|
|
||||||
*/
|
|
||||||
export declare enum Role {
|
|
||||||
/**
|
|
||||||
* @generated from enum value: ROLE_UNSPECIFIED = 0;
|
|
||||||
*/
|
|
||||||
ROLE_UNSPECIFIED = 0,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: ADMIN = 1;
|
|
||||||
*/
|
|
||||||
ADMIN = 1,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: USER = 2;
|
|
||||||
*/
|
|
||||||
USER = 2,
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.User
|
|
||||||
*/
|
|
||||||
export declare class User extends Message<User> {
|
|
||||||
/**
|
|
||||||
* @generated from field: int32 id = 1;
|
|
||||||
*/
|
|
||||||
id: number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.RowStatus row_status = 2;
|
|
||||||
*/
|
|
||||||
rowStatus: RowStatus;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: int64 created_ts = 3;
|
|
||||||
*/
|
|
||||||
createdTs: bigint;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: int64 updated_ts = 4;
|
|
||||||
*/
|
|
||||||
updatedTs: bigint;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.Role role = 6;
|
|
||||||
*/
|
|
||||||
role: Role;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string email = 7;
|
|
||||||
*/
|
|
||||||
email: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string nickname = 8;
|
|
||||||
*/
|
|
||||||
nickname: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string password = 9;
|
|
||||||
*/
|
|
||||||
password: string;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<User>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.User";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): User;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): User;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): User;
|
|
||||||
|
|
||||||
static equals(a: User | PlainMessage<User> | undefined, b: User | PlainMessage<User> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.ListUsersRequest
|
|
||||||
*/
|
|
||||||
export declare class ListUsersRequest extends Message<ListUsersRequest> {
|
|
||||||
constructor(data?: PartialMessage<ListUsersRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.ListUsersRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUsersRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUsersRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUsersRequest;
|
|
||||||
|
|
||||||
static equals(a: ListUsersRequest | PlainMessage<ListUsersRequest> | undefined, b: ListUsersRequest | PlainMessage<ListUsersRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.ListUsersResponse
|
|
||||||
*/
|
|
||||||
export declare class ListUsersResponse extends Message<ListUsersResponse> {
|
|
||||||
/**
|
|
||||||
* @generated from field: repeated slash.api.v2.User users = 1;
|
|
||||||
*/
|
|
||||||
users: User[];
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<ListUsersResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.ListUsersResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUsersResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUsersResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUsersResponse;
|
|
||||||
|
|
||||||
static equals(a: ListUsersResponse | PlainMessage<ListUsersResponse> | undefined, b: ListUsersResponse | PlainMessage<ListUsersResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetUserRequest
|
|
||||||
*/
|
|
||||||
export declare class GetUserRequest extends Message<GetUserRequest> {
|
|
||||||
/**
|
|
||||||
* @generated from field: int32 id = 1;
|
|
||||||
*/
|
|
||||||
id: number;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<GetUserRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.GetUserRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserRequest;
|
|
||||||
|
|
||||||
static equals(a: GetUserRequest | PlainMessage<GetUserRequest> | undefined, b: GetUserRequest | PlainMessage<GetUserRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetUserResponse
|
|
||||||
*/
|
|
||||||
export declare class GetUserResponse extends Message<GetUserResponse> {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.User user = 1;
|
|
||||||
*/
|
|
||||||
user?: User;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<GetUserResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.GetUserResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserResponse;
|
|
||||||
|
|
||||||
static equals(a: GetUserResponse | PlainMessage<GetUserResponse> | undefined, b: GetUserResponse | PlainMessage<GetUserResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.CreateUserRequest
|
|
||||||
*/
|
|
||||||
export declare class CreateUserRequest extends Message<CreateUserRequest> {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.User user = 1;
|
|
||||||
*/
|
|
||||||
user?: User;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<CreateUserRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.CreateUserRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateUserRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateUserRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateUserRequest;
|
|
||||||
|
|
||||||
static equals(a: CreateUserRequest | PlainMessage<CreateUserRequest> | undefined, b: CreateUserRequest | PlainMessage<CreateUserRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.CreateUserResponse
|
|
||||||
*/
|
|
||||||
export declare class CreateUserResponse extends Message<CreateUserResponse> {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.User user = 1;
|
|
||||||
*/
|
|
||||||
user?: User;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<CreateUserResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.CreateUserResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateUserResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateUserResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateUserResponse;
|
|
||||||
|
|
||||||
static equals(a: CreateUserResponse | PlainMessage<CreateUserResponse> | undefined, b: CreateUserResponse | PlainMessage<CreateUserResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UpdateUserRequest
|
|
||||||
*/
|
|
||||||
export declare class UpdateUserRequest extends Message<UpdateUserRequest> {
|
|
||||||
/**
|
|
||||||
* @generated from field: int32 id = 1;
|
|
||||||
*/
|
|
||||||
id: number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.User user = 2;
|
|
||||||
*/
|
|
||||||
user?: User;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: repeated string update_mask = 3;
|
|
||||||
*/
|
|
||||||
updateMask: string[];
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<UpdateUserRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.UpdateUserRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateUserRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateUserRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateUserRequest;
|
|
||||||
|
|
||||||
static equals(a: UpdateUserRequest | PlainMessage<UpdateUserRequest> | undefined, b: UpdateUserRequest | PlainMessage<UpdateUserRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UpdateUserResponse
|
|
||||||
*/
|
|
||||||
export declare class UpdateUserResponse extends Message<UpdateUserResponse> {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.User user = 1;
|
|
||||||
*/
|
|
||||||
user?: User;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<UpdateUserResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.UpdateUserResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateUserResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateUserResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateUserResponse;
|
|
||||||
|
|
||||||
static equals(a: UpdateUserResponse | PlainMessage<UpdateUserResponse> | undefined, b: UpdateUserResponse | PlainMessage<UpdateUserResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.DeleteUserRequest
|
|
||||||
*/
|
|
||||||
export declare class DeleteUserRequest extends Message<DeleteUserRequest> {
|
|
||||||
/**
|
|
||||||
* @generated from field: int32 id = 1;
|
|
||||||
*/
|
|
||||||
id: number;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<DeleteUserRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.DeleteUserRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteUserRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteUserRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteUserRequest;
|
|
||||||
|
|
||||||
static equals(a: DeleteUserRequest | PlainMessage<DeleteUserRequest> | undefined, b: DeleteUserRequest | PlainMessage<DeleteUserRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.DeleteUserResponse
|
|
||||||
*/
|
|
||||||
export declare class DeleteUserResponse extends Message<DeleteUserResponse> {
|
|
||||||
constructor(data?: PartialMessage<DeleteUserResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.DeleteUserResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteUserResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteUserResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteUserResponse;
|
|
||||||
|
|
||||||
static equals(a: DeleteUserResponse | PlainMessage<DeleteUserResponse> | undefined, b: DeleteUserResponse | PlainMessage<DeleteUserResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.ListUserAccessTokensRequest
|
|
||||||
*/
|
|
||||||
export declare class ListUserAccessTokensRequest extends Message<ListUserAccessTokensRequest> {
|
|
||||||
/**
|
|
||||||
* id is the user id.
|
|
||||||
*
|
|
||||||
* @generated from field: int32 id = 1;
|
|
||||||
*/
|
|
||||||
id: number;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<ListUserAccessTokensRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.ListUserAccessTokensRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUserAccessTokensRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUserAccessTokensRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUserAccessTokensRequest;
|
|
||||||
|
|
||||||
static equals(a: ListUserAccessTokensRequest | PlainMessage<ListUserAccessTokensRequest> | undefined, b: ListUserAccessTokensRequest | PlainMessage<ListUserAccessTokensRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.ListUserAccessTokensResponse
|
|
||||||
*/
|
|
||||||
export declare class ListUserAccessTokensResponse extends Message<ListUserAccessTokensResponse> {
|
|
||||||
/**
|
|
||||||
* @generated from field: repeated slash.api.v2.UserAccessToken access_tokens = 1;
|
|
||||||
*/
|
|
||||||
accessTokens: UserAccessToken[];
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<ListUserAccessTokensResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.ListUserAccessTokensResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUserAccessTokensResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUserAccessTokensResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUserAccessTokensResponse;
|
|
||||||
|
|
||||||
static equals(a: ListUserAccessTokensResponse | PlainMessage<ListUserAccessTokensResponse> | undefined, b: ListUserAccessTokensResponse | PlainMessage<ListUserAccessTokensResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.CreateUserAccessTokenRequest
|
|
||||||
*/
|
|
||||||
export declare class CreateUserAccessTokenRequest extends Message<CreateUserAccessTokenRequest> {
|
|
||||||
/**
|
|
||||||
* id is the user id.
|
|
||||||
*
|
|
||||||
* @generated from field: int32 id = 1;
|
|
||||||
*/
|
|
||||||
id: number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.UserAccessToken user_access_token = 2;
|
|
||||||
*/
|
|
||||||
userAccessToken?: UserAccessToken;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<CreateUserAccessTokenRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.CreateUserAccessTokenRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateUserAccessTokenRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateUserAccessTokenRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateUserAccessTokenRequest;
|
|
||||||
|
|
||||||
static equals(a: CreateUserAccessTokenRequest | PlainMessage<CreateUserAccessTokenRequest> | undefined, b: CreateUserAccessTokenRequest | PlainMessage<CreateUserAccessTokenRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.CreateUserAccessTokenResponse
|
|
||||||
*/
|
|
||||||
export declare class CreateUserAccessTokenResponse extends Message<CreateUserAccessTokenResponse> {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.UserAccessToken access_token = 1;
|
|
||||||
*/
|
|
||||||
accessToken?: UserAccessToken;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<CreateUserAccessTokenResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.CreateUserAccessTokenResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateUserAccessTokenResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateUserAccessTokenResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateUserAccessTokenResponse;
|
|
||||||
|
|
||||||
static equals(a: CreateUserAccessTokenResponse | PlainMessage<CreateUserAccessTokenResponse> | undefined, b: CreateUserAccessTokenResponse | PlainMessage<CreateUserAccessTokenResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.DeleteUserAccessTokenRequest
|
|
||||||
*/
|
|
||||||
export declare class DeleteUserAccessTokenRequest extends Message<DeleteUserAccessTokenRequest> {
|
|
||||||
/**
|
|
||||||
* id is the user id.
|
|
||||||
*
|
|
||||||
* @generated from field: int32 id = 1;
|
|
||||||
*/
|
|
||||||
id: number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* access_token is the access token to delete.
|
|
||||||
*
|
|
||||||
* @generated from field: string access_token = 2;
|
|
||||||
*/
|
|
||||||
accessToken: string;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<DeleteUserAccessTokenRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.DeleteUserAccessTokenRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteUserAccessTokenRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteUserAccessTokenRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteUserAccessTokenRequest;
|
|
||||||
|
|
||||||
static equals(a: DeleteUserAccessTokenRequest | PlainMessage<DeleteUserAccessTokenRequest> | undefined, b: DeleteUserAccessTokenRequest | PlainMessage<DeleteUserAccessTokenRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.DeleteUserAccessTokenResponse
|
|
||||||
*/
|
|
||||||
export declare class DeleteUserAccessTokenResponse extends Message<DeleteUserAccessTokenResponse> {
|
|
||||||
constructor(data?: PartialMessage<DeleteUserAccessTokenResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.DeleteUserAccessTokenResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteUserAccessTokenResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteUserAccessTokenResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteUserAccessTokenResponse;
|
|
||||||
|
|
||||||
static equals(a: DeleteUserAccessTokenResponse | PlainMessage<DeleteUserAccessTokenResponse> | undefined, b: DeleteUserAccessTokenResponse | PlainMessage<DeleteUserAccessTokenResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UserAccessToken
|
|
||||||
*/
|
|
||||||
export declare class UserAccessToken extends Message<UserAccessToken> {
|
|
||||||
/**
|
|
||||||
* @generated from field: string access_token = 1;
|
|
||||||
*/
|
|
||||||
accessToken: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string description = 2;
|
|
||||||
*/
|
|
||||||
description: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: google.protobuf.Timestamp issued_at = 3;
|
|
||||||
*/
|
|
||||||
issuedAt?: Timestamp;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: google.protobuf.Timestamp expires_at = 4;
|
|
||||||
*/
|
|
||||||
expiresAt?: Timestamp;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<UserAccessToken>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.UserAccessToken";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserAccessToken;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserAccessToken;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserAccessToken;
|
|
||||||
|
|
||||||
static equals(a: UserAccessToken | PlainMessage<UserAccessToken> | undefined, b: UserAccessToken | PlainMessage<UserAccessToken> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
@ -1,208 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file api/v2/user_service.proto (package slash.api.v2, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
import { proto3, Timestamp } from "@bufbuild/protobuf";
|
|
||||||
import { RowStatus } from "./common_pb.js";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.api.v2.Role
|
|
||||||
*/
|
|
||||||
export const Role = proto3.makeEnum(
|
|
||||||
"slash.api.v2.Role",
|
|
||||||
[
|
|
||||||
{no: 0, name: "ROLE_UNSPECIFIED"},
|
|
||||||
{no: 1, name: "ADMIN"},
|
|
||||||
{no: 2, name: "USER"},
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.User
|
|
||||||
*/
|
|
||||||
export const User = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.User",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
{ no: 2, name: "row_status", kind: "enum", T: proto3.getEnumType(RowStatus) },
|
|
||||||
{ no: 3, name: "created_ts", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
||||||
{ no: 4, name: "updated_ts", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
||||||
{ no: 6, name: "role", kind: "enum", T: proto3.getEnumType(Role) },
|
|
||||||
{ no: 7, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 8, name: "nickname", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 9, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.ListUsersRequest
|
|
||||||
*/
|
|
||||||
export const ListUsersRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.ListUsersRequest",
|
|
||||||
[],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.ListUsersResponse
|
|
||||||
*/
|
|
||||||
export const ListUsersResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.ListUsersResponse",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "users", kind: "message", T: User, repeated: true },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetUserRequest
|
|
||||||
*/
|
|
||||||
export const GetUserRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.GetUserRequest",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetUserResponse
|
|
||||||
*/
|
|
||||||
export const GetUserResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.GetUserResponse",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "user", kind: "message", T: User },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.CreateUserRequest
|
|
||||||
*/
|
|
||||||
export const CreateUserRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.CreateUserRequest",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "user", kind: "message", T: User },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.CreateUserResponse
|
|
||||||
*/
|
|
||||||
export const CreateUserResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.CreateUserResponse",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "user", kind: "message", T: User },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UpdateUserRequest
|
|
||||||
*/
|
|
||||||
export const UpdateUserRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.UpdateUserRequest",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
{ no: 2, name: "user", kind: "message", T: User },
|
|
||||||
{ no: 3, name: "update_mask", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UpdateUserResponse
|
|
||||||
*/
|
|
||||||
export const UpdateUserResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.UpdateUserResponse",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "user", kind: "message", T: User },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.DeleteUserRequest
|
|
||||||
*/
|
|
||||||
export const DeleteUserRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.DeleteUserRequest",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.DeleteUserResponse
|
|
||||||
*/
|
|
||||||
export const DeleteUserResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.DeleteUserResponse",
|
|
||||||
[],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.ListUserAccessTokensRequest
|
|
||||||
*/
|
|
||||||
export const ListUserAccessTokensRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.ListUserAccessTokensRequest",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.ListUserAccessTokensResponse
|
|
||||||
*/
|
|
||||||
export const ListUserAccessTokensResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.ListUserAccessTokensResponse",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "access_tokens", kind: "message", T: UserAccessToken, repeated: true },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.CreateUserAccessTokenRequest
|
|
||||||
*/
|
|
||||||
export const CreateUserAccessTokenRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.CreateUserAccessTokenRequest",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
{ no: 2, name: "user_access_token", kind: "message", T: UserAccessToken },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.CreateUserAccessTokenResponse
|
|
||||||
*/
|
|
||||||
export const CreateUserAccessTokenResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.CreateUserAccessTokenResponse",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "access_token", kind: "message", T: UserAccessToken },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.DeleteUserAccessTokenRequest
|
|
||||||
*/
|
|
||||||
export const DeleteUserAccessTokenRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.DeleteUserAccessTokenRequest",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
{ no: 2, name: "access_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.DeleteUserAccessTokenResponse
|
|
||||||
*/
|
|
||||||
export const DeleteUserAccessTokenResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.DeleteUserAccessTokenResponse",
|
|
||||||
[],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UserAccessToken
|
|
||||||
*/
|
|
||||||
export const UserAccessToken = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.UserAccessToken",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "access_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 3, name: "issued_at", kind: "message", T: Timestamp },
|
|
||||||
{ no: 4, name: "expires_at", kind: "message", T: Timestamp },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
@ -1,202 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file api/v2/user_setting_service.proto (package slash.api.v2, 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 message slash.api.v2.UserSetting
|
|
||||||
*/
|
|
||||||
export declare class UserSetting extends Message<UserSetting> {
|
|
||||||
/**
|
|
||||||
* id is the user id.
|
|
||||||
*
|
|
||||||
* @generated from field: int32 id = 1;
|
|
||||||
*/
|
|
||||||
id: number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* locale is the user locale.
|
|
||||||
*
|
|
||||||
* @generated from field: slash.api.v2.UserSetting.Locale locale = 2;
|
|
||||||
*/
|
|
||||||
locale: UserSetting_Locale;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* color_theme is the user color theme.
|
|
||||||
*
|
|
||||||
* @generated from field: slash.api.v2.UserSetting.ColorTheme color_theme = 3;
|
|
||||||
*/
|
|
||||||
colorTheme: UserSetting_ColorTheme;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<UserSetting>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.UserSetting";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserSetting;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserSetting;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserSetting;
|
|
||||||
|
|
||||||
static equals(a: UserSetting | PlainMessage<UserSetting> | undefined, b: UserSetting | PlainMessage<UserSetting> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.api.v2.UserSetting.Locale
|
|
||||||
*/
|
|
||||||
export declare enum UserSetting_Locale {
|
|
||||||
/**
|
|
||||||
* @generated from enum value: LOCALE_UNSPECIFIED = 0;
|
|
||||||
*/
|
|
||||||
UNSPECIFIED = 0,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: LOCALE_EN = 1;
|
|
||||||
*/
|
|
||||||
EN = 1,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: LOCALE_ZH = 2;
|
|
||||||
*/
|
|
||||||
ZH = 2,
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.api.v2.UserSetting.ColorTheme
|
|
||||||
*/
|
|
||||||
export declare enum UserSetting_ColorTheme {
|
|
||||||
/**
|
|
||||||
* @generated from enum value: COLOR_THEME_UNSPECIFIED = 0;
|
|
||||||
*/
|
|
||||||
UNSPECIFIED = 0,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: COLOR_THEME_LIGHT = 1;
|
|
||||||
*/
|
|
||||||
LIGHT = 1,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: COLOR_THEME_DARK = 2;
|
|
||||||
*/
|
|
||||||
DARK = 2,
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetUserSettingRequest
|
|
||||||
*/
|
|
||||||
export declare class GetUserSettingRequest extends Message<GetUserSettingRequest> {
|
|
||||||
/**
|
|
||||||
* id is the user id.
|
|
||||||
*
|
|
||||||
* @generated from field: int32 id = 1;
|
|
||||||
*/
|
|
||||||
id: number;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<GetUserSettingRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.GetUserSettingRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserSettingRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserSettingRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserSettingRequest;
|
|
||||||
|
|
||||||
static equals(a: GetUserSettingRequest | PlainMessage<GetUserSettingRequest> | undefined, b: GetUserSettingRequest | PlainMessage<GetUserSettingRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetUserSettingResponse
|
|
||||||
*/
|
|
||||||
export declare class GetUserSettingResponse extends Message<GetUserSettingResponse> {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.UserSetting user_setting = 1;
|
|
||||||
*/
|
|
||||||
userSetting?: UserSetting;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<GetUserSettingResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.GetUserSettingResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserSettingResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserSettingResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserSettingResponse;
|
|
||||||
|
|
||||||
static equals(a: GetUserSettingResponse | PlainMessage<GetUserSettingResponse> | undefined, b: GetUserSettingResponse | PlainMessage<GetUserSettingResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UpdateUserSettingRequest
|
|
||||||
*/
|
|
||||||
export declare class UpdateUserSettingRequest extends Message<UpdateUserSettingRequest> {
|
|
||||||
/**
|
|
||||||
* id is the user id.
|
|
||||||
*
|
|
||||||
* @generated from field: int32 id = 1;
|
|
||||||
*/
|
|
||||||
id: number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* user_setting is the user setting to update.
|
|
||||||
*
|
|
||||||
* @generated from field: slash.api.v2.UserSetting user_setting = 2;
|
|
||||||
*/
|
|
||||||
userSetting?: UserSetting;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* update_mask is the field mask to update.
|
|
||||||
*
|
|
||||||
* @generated from field: repeated string update_mask = 3;
|
|
||||||
*/
|
|
||||||
updateMask: string[];
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<UpdateUserSettingRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.UpdateUserSettingRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateUserSettingRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateUserSettingRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateUserSettingRequest;
|
|
||||||
|
|
||||||
static equals(a: UpdateUserSettingRequest | PlainMessage<UpdateUserSettingRequest> | undefined, b: UpdateUserSettingRequest | PlainMessage<UpdateUserSettingRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UpdateUserSettingResponse
|
|
||||||
*/
|
|
||||||
export declare class UpdateUserSettingResponse extends Message<UpdateUserSettingResponse> {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.UserSetting user_setting = 1;
|
|
||||||
*/
|
|
||||||
userSetting?: UserSetting;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<UpdateUserSettingResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.UpdateUserSettingResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateUserSettingResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateUserSettingResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateUserSettingResponse;
|
|
||||||
|
|
||||||
static equals(a: UpdateUserSettingResponse | PlainMessage<UpdateUserSettingResponse> | undefined, b: UpdateUserSettingResponse | PlainMessage<UpdateUserSettingResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
@ -1,85 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file api/v2/user_setting_service.proto (package slash.api.v2, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
import { proto3 } from "@bufbuild/protobuf";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UserSetting
|
|
||||||
*/
|
|
||||||
export const UserSetting = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.UserSetting",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
{ no: 2, name: "locale", kind: "enum", T: proto3.getEnumType(UserSetting_Locale) },
|
|
||||||
{ no: 3, name: "color_theme", kind: "enum", T: proto3.getEnumType(UserSetting_ColorTheme) },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.api.v2.UserSetting.Locale
|
|
||||||
*/
|
|
||||||
export const UserSetting_Locale = proto3.makeEnum(
|
|
||||||
"slash.api.v2.UserSetting.Locale",
|
|
||||||
[
|
|
||||||
{no: 0, name: "LOCALE_UNSPECIFIED", localName: "UNSPECIFIED"},
|
|
||||||
{no: 1, name: "LOCALE_EN", localName: "EN"},
|
|
||||||
{no: 2, name: "LOCALE_ZH", localName: "ZH"},
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.api.v2.UserSetting.ColorTheme
|
|
||||||
*/
|
|
||||||
export const UserSetting_ColorTheme = proto3.makeEnum(
|
|
||||||
"slash.api.v2.UserSetting.ColorTheme",
|
|
||||||
[
|
|
||||||
{no: 0, name: "COLOR_THEME_UNSPECIFIED", localName: "UNSPECIFIED"},
|
|
||||||
{no: 1, name: "COLOR_THEME_LIGHT", localName: "LIGHT"},
|
|
||||||
{no: 2, name: "COLOR_THEME_DARK", localName: "DARK"},
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetUserSettingRequest
|
|
||||||
*/
|
|
||||||
export const GetUserSettingRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.GetUserSettingRequest",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetUserSettingResponse
|
|
||||||
*/
|
|
||||||
export const GetUserSettingResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.GetUserSettingResponse",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "user_setting", kind: "message", T: UserSetting },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UpdateUserSettingRequest
|
|
||||||
*/
|
|
||||||
export const UpdateUserSettingRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.UpdateUserSettingRequest",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
{ no: 2, name: "user_setting", kind: "message", T: UserSetting },
|
|
||||||
{ no: 3, name: "update_mask", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UpdateUserSettingResponse
|
|
||||||
*/
|
|
||||||
export const UpdateUserSettingResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.UpdateUserSettingResponse",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "user_setting", kind: "message", T: UserSetting },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
@ -1,194 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file api/v2/workspace_setting_service.proto (package slash.api.v2, 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 message slash.api.v2.WorkspaceSetting
|
|
||||||
*/
|
|
||||||
export declare class WorkspaceSetting extends Message<WorkspaceSetting> {
|
|
||||||
/**
|
|
||||||
* Whether to enable other users to sign up.
|
|
||||||
*
|
|
||||||
* @generated from field: bool enable_signup = 1;
|
|
||||||
*/
|
|
||||||
enableSignup: boolean;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The relative path of the resource directory.
|
|
||||||
*
|
|
||||||
* @generated from field: string resource_relative_path = 2;
|
|
||||||
*/
|
|
||||||
resourceRelativePath: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The auto backup setting.
|
|
||||||
*
|
|
||||||
* @generated from field: slash.api.v2.AutoBackupWorkspaceSetting auto_backup = 3;
|
|
||||||
*/
|
|
||||||
autoBackup?: AutoBackupWorkspaceSetting;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<WorkspaceSetting>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.WorkspaceSetting";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkspaceSetting;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkspaceSetting;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkspaceSetting;
|
|
||||||
|
|
||||||
static equals(a: WorkspaceSetting | PlainMessage<WorkspaceSetting> | undefined, b: WorkspaceSetting | PlainMessage<WorkspaceSetting> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.AutoBackupWorkspaceSetting
|
|
||||||
*/
|
|
||||||
export declare class AutoBackupWorkspaceSetting extends Message<AutoBackupWorkspaceSetting> {
|
|
||||||
/**
|
|
||||||
* Whether auto backup is enabled.
|
|
||||||
*
|
|
||||||
* @generated from field: bool enabled = 1;
|
|
||||||
*/
|
|
||||||
enabled: boolean;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The cron expression for auto backup.
|
|
||||||
* For example, "0 0 0 * * *" means backup at 00:00:00 every day.
|
|
||||||
* See https://en.wikipedia.org/wiki/Cron for more details.
|
|
||||||
*
|
|
||||||
* @generated from field: string cron_expression = 2;
|
|
||||||
*/
|
|
||||||
cronExpression: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The maximum number of backups to keep.
|
|
||||||
*
|
|
||||||
* @generated from field: int32 max_keep = 3;
|
|
||||||
*/
|
|
||||||
maxKeep: number;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<AutoBackupWorkspaceSetting>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.AutoBackupWorkspaceSetting";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AutoBackupWorkspaceSetting;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AutoBackupWorkspaceSetting;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AutoBackupWorkspaceSetting;
|
|
||||||
|
|
||||||
static equals(a: AutoBackupWorkspaceSetting | PlainMessage<AutoBackupWorkspaceSetting> | undefined, b: AutoBackupWorkspaceSetting | PlainMessage<AutoBackupWorkspaceSetting> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetWorkspaceSettingRequest
|
|
||||||
*/
|
|
||||||
export declare class GetWorkspaceSettingRequest extends Message<GetWorkspaceSettingRequest> {
|
|
||||||
constructor(data?: PartialMessage<GetWorkspaceSettingRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.GetWorkspaceSettingRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetWorkspaceSettingRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetWorkspaceSettingRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetWorkspaceSettingRequest;
|
|
||||||
|
|
||||||
static equals(a: GetWorkspaceSettingRequest | PlainMessage<GetWorkspaceSettingRequest> | undefined, b: GetWorkspaceSettingRequest | PlainMessage<GetWorkspaceSettingRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetWorkspaceSettingResponse
|
|
||||||
*/
|
|
||||||
export declare class GetWorkspaceSettingResponse extends Message<GetWorkspaceSettingResponse> {
|
|
||||||
/**
|
|
||||||
* The user setting.
|
|
||||||
*
|
|
||||||
* @generated from field: slash.api.v2.WorkspaceSetting setting = 1;
|
|
||||||
*/
|
|
||||||
setting?: WorkspaceSetting;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<GetWorkspaceSettingResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.GetWorkspaceSettingResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetWorkspaceSettingResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetWorkspaceSettingResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetWorkspaceSettingResponse;
|
|
||||||
|
|
||||||
static equals(a: GetWorkspaceSettingResponse | PlainMessage<GetWorkspaceSettingResponse> | undefined, b: GetWorkspaceSettingResponse | PlainMessage<GetWorkspaceSettingResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UpdateWorkspaceSettingRequest
|
|
||||||
*/
|
|
||||||
export declare class UpdateWorkspaceSettingRequest extends Message<UpdateWorkspaceSettingRequest> {
|
|
||||||
/**
|
|
||||||
* The user setting.
|
|
||||||
*
|
|
||||||
* @generated from field: slash.api.v2.WorkspaceSetting setting = 1;
|
|
||||||
*/
|
|
||||||
setting?: WorkspaceSetting;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The update mask.
|
|
||||||
*
|
|
||||||
* @generated from field: repeated string update_mask = 2;
|
|
||||||
*/
|
|
||||||
updateMask: string[];
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<UpdateWorkspaceSettingRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.UpdateWorkspaceSettingRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateWorkspaceSettingRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateWorkspaceSettingRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateWorkspaceSettingRequest;
|
|
||||||
|
|
||||||
static equals(a: UpdateWorkspaceSettingRequest | PlainMessage<UpdateWorkspaceSettingRequest> | undefined, b: UpdateWorkspaceSettingRequest | PlainMessage<UpdateWorkspaceSettingRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UpdateWorkspaceSettingResponse
|
|
||||||
*/
|
|
||||||
export declare class UpdateWorkspaceSettingResponse extends Message<UpdateWorkspaceSettingResponse> {
|
|
||||||
/**
|
|
||||||
* The user setting.
|
|
||||||
*
|
|
||||||
* @generated from field: slash.api.v2.WorkspaceSetting setting = 1;
|
|
||||||
*/
|
|
||||||
setting?: WorkspaceSetting;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<UpdateWorkspaceSettingResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.UpdateWorkspaceSettingResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateWorkspaceSettingResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateWorkspaceSettingResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateWorkspaceSettingResponse;
|
|
||||||
|
|
||||||
static equals(a: UpdateWorkspaceSettingResponse | PlainMessage<UpdateWorkspaceSettingResponse> | undefined, b: UpdateWorkspaceSettingResponse | PlainMessage<UpdateWorkspaceSettingResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
@ -1,70 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file api/v2/workspace_setting_service.proto (package slash.api.v2, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
import { proto3 } from "@bufbuild/protobuf";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.WorkspaceSetting
|
|
||||||
*/
|
|
||||||
export const WorkspaceSetting = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.WorkspaceSetting",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "enable_signup", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
||||||
{ no: 2, name: "resource_relative_path", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 3, name: "auto_backup", kind: "message", T: AutoBackupWorkspaceSetting },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.AutoBackupWorkspaceSetting
|
|
||||||
*/
|
|
||||||
export const AutoBackupWorkspaceSetting = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.AutoBackupWorkspaceSetting",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
||||||
{ no: 2, name: "cron_expression", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 3, name: "max_keep", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetWorkspaceSettingRequest
|
|
||||||
*/
|
|
||||||
export const GetWorkspaceSettingRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.GetWorkspaceSettingRequest",
|
|
||||||
[],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetWorkspaceSettingResponse
|
|
||||||
*/
|
|
||||||
export const GetWorkspaceSettingResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.GetWorkspaceSettingResponse",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "setting", kind: "message", T: WorkspaceSetting },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UpdateWorkspaceSettingRequest
|
|
||||||
*/
|
|
||||||
export const UpdateWorkspaceSettingRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.UpdateWorkspaceSettingRequest",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "setting", kind: "message", T: WorkspaceSetting },
|
|
||||||
{ no: 2, name: "update_mask", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UpdateWorkspaceSettingResponse
|
|
||||||
*/
|
|
||||||
export const UpdateWorkspaceSettingResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.UpdateWorkspaceSettingResponse",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "setting", kind: "message", T: WorkspaceSetting },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file store/activity.proto (package slash.store, 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 message slash.store.ActivityShorcutCreatePayload
|
|
||||||
*/
|
|
||||||
export declare class ActivityShorcutCreatePayload extends Message<ActivityShorcutCreatePayload> {
|
|
||||||
/**
|
|
||||||
* @generated from field: int32 shortcut_id = 1;
|
|
||||||
*/
|
|
||||||
shortcutId: number;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<ActivityShorcutCreatePayload>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.store.ActivityShorcutCreatePayload";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ActivityShorcutCreatePayload;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ActivityShorcutCreatePayload;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ActivityShorcutCreatePayload;
|
|
||||||
|
|
||||||
static equals(a: ActivityShorcutCreatePayload | PlainMessage<ActivityShorcutCreatePayload> | undefined, b: ActivityShorcutCreatePayload | PlainMessage<ActivityShorcutCreatePayload> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file store/activity.proto (package slash.store, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
import { proto3 } from "@bufbuild/protobuf";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.ActivityShorcutCreatePayload
|
|
||||||
*/
|
|
||||||
export const ActivityShorcutCreatePayload = proto3.makeMessageType(
|
|
||||||
"slash.store.ActivityShorcutCreatePayload",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "shortcut_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file store/common.proto (package slash.store, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.store.RowStatus
|
|
||||||
*/
|
|
||||||
export declare enum RowStatus {
|
|
||||||
/**
|
|
||||||
* @generated from enum value: ROW_STATUS_UNSPECIFIED = 0;
|
|
||||||
*/
|
|
||||||
ROW_STATUS_UNSPECIFIED = 0,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: NORMAL = 1;
|
|
||||||
*/
|
|
||||||
NORMAL = 1,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: ARCHIVED = 2;
|
|
||||||
*/
|
|
||||||
ARCHIVED = 2,
|
|
||||||
}
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file store/common.proto (package slash.store, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
import { proto3 } from "@bufbuild/protobuf";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.store.RowStatus
|
|
||||||
*/
|
|
||||||
export const RowStatus = proto3.makeEnum(
|
|
||||||
"slash.store.RowStatus",
|
|
||||||
[
|
|
||||||
{no: 0, name: "ROW_STATUS_UNSPECIFIED"},
|
|
||||||
{no: 1, name: "NORMAL"},
|
|
||||||
{no: 2, name: "ARCHIVED"},
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
@ -1,147 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file store/shortcut.proto (package slash.store, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
||||||
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
||||||
import type { RowStatus } from "./common_pb.js";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.store.Visibility
|
|
||||||
*/
|
|
||||||
export declare enum Visibility {
|
|
||||||
/**
|
|
||||||
* @generated from enum value: VISIBILITY_UNSPECIFIED = 0;
|
|
||||||
*/
|
|
||||||
VISIBILITY_UNSPECIFIED = 0,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: PRIVATE = 1;
|
|
||||||
*/
|
|
||||||
PRIVATE = 1,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: WORKSPACE = 2;
|
|
||||||
*/
|
|
||||||
WORKSPACE = 2,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: PUBLIC = 3;
|
|
||||||
*/
|
|
||||||
PUBLIC = 3,
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.Shortcut
|
|
||||||
*/
|
|
||||||
export declare class Shortcut extends Message<Shortcut> {
|
|
||||||
/**
|
|
||||||
* @generated from field: int32 id = 1;
|
|
||||||
*/
|
|
||||||
id: number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: int32 creator_id = 2;
|
|
||||||
*/
|
|
||||||
creatorId: number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: int64 created_ts = 3;
|
|
||||||
*/
|
|
||||||
createdTs: bigint;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: int64 updated_ts = 4;
|
|
||||||
*/
|
|
||||||
updatedTs: bigint;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.store.RowStatus row_status = 5;
|
|
||||||
*/
|
|
||||||
rowStatus: RowStatus;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string name = 6;
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string link = 7;
|
|
||||||
*/
|
|
||||||
link: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string title = 8;
|
|
||||||
*/
|
|
||||||
title: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: repeated string tags = 9;
|
|
||||||
*/
|
|
||||||
tags: string[];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string description = 10;
|
|
||||||
*/
|
|
||||||
description: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.store.Visibility visibility = 11;
|
|
||||||
*/
|
|
||||||
visibility: Visibility;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.store.OpenGraphMetadata og_metadata = 12;
|
|
||||||
*/
|
|
||||||
ogMetadata?: OpenGraphMetadata;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<Shortcut>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.store.Shortcut";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Shortcut;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Shortcut;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Shortcut;
|
|
||||||
|
|
||||||
static equals(a: Shortcut | PlainMessage<Shortcut> | undefined, b: Shortcut | PlainMessage<Shortcut> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.OpenGraphMetadata
|
|
||||||
*/
|
|
||||||
export declare class OpenGraphMetadata extends Message<OpenGraphMetadata> {
|
|
||||||
/**
|
|
||||||
* @generated from field: string title = 1;
|
|
||||||
*/
|
|
||||||
title: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string description = 2;
|
|
||||||
*/
|
|
||||||
description: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string image = 3;
|
|
||||||
*/
|
|
||||||
image: string;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<OpenGraphMetadata>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.store.OpenGraphMetadata";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OpenGraphMetadata;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OpenGraphMetadata;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OpenGraphMetadata;
|
|
||||||
|
|
||||||
static equals(a: OpenGraphMetadata | PlainMessage<OpenGraphMetadata> | undefined, b: OpenGraphMetadata | PlainMessage<OpenGraphMetadata> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
@ -1,54 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file store/shortcut.proto (package slash.store, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
import { proto3 } from "@bufbuild/protobuf";
|
|
||||||
import { RowStatus } from "./common_pb.js";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.store.Visibility
|
|
||||||
*/
|
|
||||||
export const Visibility = proto3.makeEnum(
|
|
||||||
"slash.store.Visibility",
|
|
||||||
[
|
|
||||||
{no: 0, name: "VISIBILITY_UNSPECIFIED"},
|
|
||||||
{no: 1, name: "PRIVATE"},
|
|
||||||
{no: 2, name: "WORKSPACE"},
|
|
||||||
{no: 3, name: "PUBLIC"},
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.Shortcut
|
|
||||||
*/
|
|
||||||
export const Shortcut = proto3.makeMessageType(
|
|
||||||
"slash.store.Shortcut",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
{ no: 2, name: "creator_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
{ no: 3, name: "created_ts", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
||||||
{ no: 4, name: "updated_ts", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
||||||
{ no: 5, name: "row_status", kind: "enum", T: proto3.getEnumType(RowStatus) },
|
|
||||||
{ no: 6, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 7, name: "link", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 8, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 9, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
||||||
{ no: 10, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 11, name: "visibility", kind: "enum", T: proto3.getEnumType(Visibility) },
|
|
||||||
{ no: 12, name: "og_metadata", kind: "message", T: OpenGraphMetadata },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.OpenGraphMetadata
|
|
||||||
*/
|
|
||||||
export const OpenGraphMetadata = proto3.makeMessageType(
|
|
||||||
"slash.store.OpenGraphMetadata",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 3, name: "image", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
@ -1,189 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file store/user_setting.proto (package slash.store, 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 slash.store.UserSettingKey
|
|
||||||
*/
|
|
||||||
export declare enum UserSettingKey {
|
|
||||||
/**
|
|
||||||
* @generated from enum value: USER_SETTING_KEY_UNSPECIFIED = 0;
|
|
||||||
*/
|
|
||||||
USER_SETTING_KEY_UNSPECIFIED = 0,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Access tokens for the user.
|
|
||||||
*
|
|
||||||
* @generated from enum value: USER_SETTING_ACCESS_TOKENS = 1;
|
|
||||||
*/
|
|
||||||
USER_SETTING_ACCESS_TOKENS = 1,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Locale for the user.
|
|
||||||
*
|
|
||||||
* @generated from enum value: USER_SETTING_LOCALE = 2;
|
|
||||||
*/
|
|
||||||
USER_SETTING_LOCALE = 2,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Color theme for the user.
|
|
||||||
*
|
|
||||||
* @generated from enum value: USER_SETTING_COLOR_THEME = 3;
|
|
||||||
*/
|
|
||||||
USER_SETTING_COLOR_THEME = 3,
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.store.LocaleUserSetting
|
|
||||||
*/
|
|
||||||
export declare enum LocaleUserSetting {
|
|
||||||
/**
|
|
||||||
* @generated from enum value: LOCALE_USER_SETTING_UNSPECIFIED = 0;
|
|
||||||
*/
|
|
||||||
UNSPECIFIED = 0,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: LOCALE_USER_SETTING_EN = 1;
|
|
||||||
*/
|
|
||||||
EN = 1,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: LOCALE_USER_SETTING_ZH = 2;
|
|
||||||
*/
|
|
||||||
ZH = 2,
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.store.ColorThemeUserSetting
|
|
||||||
*/
|
|
||||||
export declare enum ColorThemeUserSetting {
|
|
||||||
/**
|
|
||||||
* @generated from enum value: COLOR_THEME_USER_SETTING_UNSPECIFIED = 0;
|
|
||||||
*/
|
|
||||||
UNSPECIFIED = 0,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: COLOR_THEME_USER_SETTING_LIGHT = 1;
|
|
||||||
*/
|
|
||||||
LIGHT = 1,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: COLOR_THEME_USER_SETTING_DARK = 2;
|
|
||||||
*/
|
|
||||||
DARK = 2,
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.UserSetting
|
|
||||||
*/
|
|
||||||
export declare class UserSetting extends Message<UserSetting> {
|
|
||||||
/**
|
|
||||||
* @generated from field: int32 user_id = 1;
|
|
||||||
*/
|
|
||||||
userId: number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.store.UserSettingKey key = 2;
|
|
||||||
*/
|
|
||||||
key: UserSettingKey;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from oneof slash.store.UserSetting.value
|
|
||||||
*/
|
|
||||||
value: {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.store.AccessTokensUserSetting access_tokens = 3;
|
|
||||||
*/
|
|
||||||
value: AccessTokensUserSetting;
|
|
||||||
case: "accessTokens";
|
|
||||||
} | {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.store.LocaleUserSetting locale = 4;
|
|
||||||
*/
|
|
||||||
value: LocaleUserSetting;
|
|
||||||
case: "locale";
|
|
||||||
} | {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.store.ColorThemeUserSetting color_theme = 5;
|
|
||||||
*/
|
|
||||||
value: ColorThemeUserSetting;
|
|
||||||
case: "colorTheme";
|
|
||||||
} | { case: undefined; value?: undefined };
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<UserSetting>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.store.UserSetting";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserSetting;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserSetting;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserSetting;
|
|
||||||
|
|
||||||
static equals(a: UserSetting | PlainMessage<UserSetting> | undefined, b: UserSetting | PlainMessage<UserSetting> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.AccessTokensUserSetting
|
|
||||||
*/
|
|
||||||
export declare class AccessTokensUserSetting extends Message<AccessTokensUserSetting> {
|
|
||||||
/**
|
|
||||||
* @generated from field: repeated slash.store.AccessTokensUserSetting.AccessToken access_tokens = 1;
|
|
||||||
*/
|
|
||||||
accessTokens: AccessTokensUserSetting_AccessToken[];
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<AccessTokensUserSetting>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.store.AccessTokensUserSetting";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AccessTokensUserSetting;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AccessTokensUserSetting;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AccessTokensUserSetting;
|
|
||||||
|
|
||||||
static equals(a: AccessTokensUserSetting | PlainMessage<AccessTokensUserSetting> | undefined, b: AccessTokensUserSetting | PlainMessage<AccessTokensUserSetting> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.AccessTokensUserSetting.AccessToken
|
|
||||||
*/
|
|
||||||
export declare class AccessTokensUserSetting_AccessToken extends Message<AccessTokensUserSetting_AccessToken> {
|
|
||||||
/**
|
|
||||||
* The access token is a JWT token.
|
|
||||||
* Including expiration time, issuer, etc.
|
|
||||||
*
|
|
||||||
* @generated from field: string access_token = 1;
|
|
||||||
*/
|
|
||||||
accessToken: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A description for the access token.
|
|
||||||
*
|
|
||||||
* @generated from field: string description = 2;
|
|
||||||
*/
|
|
||||||
description: string;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<AccessTokensUserSetting_AccessToken>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.store.AccessTokensUserSetting.AccessToken";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AccessTokensUserSetting_AccessToken;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AccessTokensUserSetting_AccessToken;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AccessTokensUserSetting_AccessToken;
|
|
||||||
|
|
||||||
static equals(a: AccessTokensUserSetting_AccessToken | PlainMessage<AccessTokensUserSetting_AccessToken> | undefined, b: AccessTokensUserSetting_AccessToken | PlainMessage<AccessTokensUserSetting_AccessToken> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
@ -1,80 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file store/user_setting.proto (package slash.store, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
import { proto3 } from "@bufbuild/protobuf";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.store.UserSettingKey
|
|
||||||
*/
|
|
||||||
export const UserSettingKey = proto3.makeEnum(
|
|
||||||
"slash.store.UserSettingKey",
|
|
||||||
[
|
|
||||||
{no: 0, name: "USER_SETTING_KEY_UNSPECIFIED"},
|
|
||||||
{no: 1, name: "USER_SETTING_ACCESS_TOKENS"},
|
|
||||||
{no: 2, name: "USER_SETTING_LOCALE"},
|
|
||||||
{no: 3, name: "USER_SETTING_COLOR_THEME"},
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.store.LocaleUserSetting
|
|
||||||
*/
|
|
||||||
export const LocaleUserSetting = proto3.makeEnum(
|
|
||||||
"slash.store.LocaleUserSetting",
|
|
||||||
[
|
|
||||||
{no: 0, name: "LOCALE_USER_SETTING_UNSPECIFIED", localName: "UNSPECIFIED"},
|
|
||||||
{no: 1, name: "LOCALE_USER_SETTING_EN", localName: "EN"},
|
|
||||||
{no: 2, name: "LOCALE_USER_SETTING_ZH", localName: "ZH"},
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.store.ColorThemeUserSetting
|
|
||||||
*/
|
|
||||||
export const ColorThemeUserSetting = proto3.makeEnum(
|
|
||||||
"slash.store.ColorThemeUserSetting",
|
|
||||||
[
|
|
||||||
{no: 0, name: "COLOR_THEME_USER_SETTING_UNSPECIFIED", localName: "UNSPECIFIED"},
|
|
||||||
{no: 1, name: "COLOR_THEME_USER_SETTING_LIGHT", localName: "LIGHT"},
|
|
||||||
{no: 2, name: "COLOR_THEME_USER_SETTING_DARK", localName: "DARK"},
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.UserSetting
|
|
||||||
*/
|
|
||||||
export const UserSetting = proto3.makeMessageType(
|
|
||||||
"slash.store.UserSetting",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "user_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
{ no: 2, name: "key", kind: "enum", T: proto3.getEnumType(UserSettingKey) },
|
|
||||||
{ no: 3, name: "access_tokens", kind: "message", T: AccessTokensUserSetting, oneof: "value" },
|
|
||||||
{ no: 4, name: "locale", kind: "enum", T: proto3.getEnumType(LocaleUserSetting), oneof: "value" },
|
|
||||||
{ no: 5, name: "color_theme", kind: "enum", T: proto3.getEnumType(ColorThemeUserSetting), oneof: "value" },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.AccessTokensUserSetting
|
|
||||||
*/
|
|
||||||
export const AccessTokensUserSetting = proto3.makeMessageType(
|
|
||||||
"slash.store.AccessTokensUserSetting",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "access_tokens", kind: "message", T: AccessTokensUserSetting_AccessToken, repeated: true },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.AccessTokensUserSetting.AccessToken
|
|
||||||
*/
|
|
||||||
export const AccessTokensUserSetting_AccessToken = proto3.makeMessageType(
|
|
||||||
"slash.store.AccessTokensUserSetting.AccessToken",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "access_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
],
|
|
||||||
{localName: "AccessTokensUserSetting_AccessToken"},
|
|
||||||
);
|
|
||||||
|
|
@ -1,141 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file store/workspace_setting.proto (package slash.store, 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 slash.store.WorkspaceSettingKey
|
|
||||||
*/
|
|
||||||
export declare enum WorkspaceSettingKey {
|
|
||||||
/**
|
|
||||||
* @generated from enum value: WORKSPACE_SETTING_KEY_UNSPECIFIED = 0;
|
|
||||||
*/
|
|
||||||
WORKSPACE_SETTING_KEY_UNSPECIFIED = 0,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The secret session key used to encrypt session data.
|
|
||||||
*
|
|
||||||
* @generated from enum value: WORKSPACE_SETTING_SECRET_SESSION = 1;
|
|
||||||
*/
|
|
||||||
WORKSPACE_SETTING_SECRET_SESSION = 1,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether to enable other users to sign up.
|
|
||||||
*
|
|
||||||
* @generated from enum value: WORKSAPCE_SETTING_ENABLE_SIGNUP = 2;
|
|
||||||
*/
|
|
||||||
WORKSAPCE_SETTING_ENABLE_SIGNUP = 2,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The relative path of the resource directory.
|
|
||||||
*
|
|
||||||
* @generated from enum value: WORKSPACE_SETTING_RESOURCE_RELATIVE_PATH = 3;
|
|
||||||
*/
|
|
||||||
WORKSPACE_SETTING_RESOURCE_RELATIVE_PATH = 3,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The auto backup setting.
|
|
||||||
*
|
|
||||||
* @generated from enum value: WORKSPACE_SETTING_AUTO_BACKUP = 4;
|
|
||||||
*/
|
|
||||||
WORKSPACE_SETTING_AUTO_BACKUP = 4,
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.WorkspaceSetting
|
|
||||||
*/
|
|
||||||
export declare class WorkspaceSetting extends Message<WorkspaceSetting> {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.store.WorkspaceSettingKey key = 1;
|
|
||||||
*/
|
|
||||||
key: WorkspaceSettingKey;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from oneof slash.store.WorkspaceSetting.value
|
|
||||||
*/
|
|
||||||
value: {
|
|
||||||
/**
|
|
||||||
* @generated from field: string secret_session = 2;
|
|
||||||
*/
|
|
||||||
value: string;
|
|
||||||
case: "secretSession";
|
|
||||||
} | {
|
|
||||||
/**
|
|
||||||
* @generated from field: bool enable_signup = 3;
|
|
||||||
*/
|
|
||||||
value: boolean;
|
|
||||||
case: "enableSignup";
|
|
||||||
} | {
|
|
||||||
/**
|
|
||||||
* @generated from field: string resource_relative_path = 4;
|
|
||||||
*/
|
|
||||||
value: string;
|
|
||||||
case: "resourceRelativePath";
|
|
||||||
} | {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.store.AutoBackupWorkspaceSetting auto_backup = 5;
|
|
||||||
*/
|
|
||||||
value: AutoBackupWorkspaceSetting;
|
|
||||||
case: "autoBackup";
|
|
||||||
} | { case: undefined; value?: undefined };
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<WorkspaceSetting>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.store.WorkspaceSetting";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkspaceSetting;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkspaceSetting;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkspaceSetting;
|
|
||||||
|
|
||||||
static equals(a: WorkspaceSetting | PlainMessage<WorkspaceSetting> | undefined, b: WorkspaceSetting | PlainMessage<WorkspaceSetting> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.AutoBackupWorkspaceSetting
|
|
||||||
*/
|
|
||||||
export declare class AutoBackupWorkspaceSetting extends Message<AutoBackupWorkspaceSetting> {
|
|
||||||
/**
|
|
||||||
* Whether auto backup is enabled.
|
|
||||||
*
|
|
||||||
* @generated from field: bool enabled = 1;
|
|
||||||
*/
|
|
||||||
enabled: boolean;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The cron expression for auto backup.
|
|
||||||
* For example, "0 0 0 * * *" means backup at 00:00:00 every day.
|
|
||||||
* See https://en.wikipedia.org/wiki/Cron for more details.
|
|
||||||
*
|
|
||||||
* @generated from field: string cron_expression = 2;
|
|
||||||
*/
|
|
||||||
cronExpression: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The maximum number of backups to keep.
|
|
||||||
*
|
|
||||||
* @generated from field: int32 max_keep = 3;
|
|
||||||
*/
|
|
||||||
maxKeep: number;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<AutoBackupWorkspaceSetting>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.store.AutoBackupWorkspaceSetting";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AutoBackupWorkspaceSetting;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AutoBackupWorkspaceSetting;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AutoBackupWorkspaceSetting;
|
|
||||||
|
|
||||||
static equals(a: AutoBackupWorkspaceSetting | PlainMessage<AutoBackupWorkspaceSetting> | undefined, b: AutoBackupWorkspaceSetting | PlainMessage<AutoBackupWorkspaceSetting> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
@ -1,47 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file store/workspace_setting.proto (package slash.store, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
import { proto3 } from "@bufbuild/protobuf";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.store.WorkspaceSettingKey
|
|
||||||
*/
|
|
||||||
export const WorkspaceSettingKey = proto3.makeEnum(
|
|
||||||
"slash.store.WorkspaceSettingKey",
|
|
||||||
[
|
|
||||||
{no: 0, name: "WORKSPACE_SETTING_KEY_UNSPECIFIED"},
|
|
||||||
{no: 1, name: "WORKSPACE_SETTING_SECRET_SESSION"},
|
|
||||||
{no: 2, name: "WORKSAPCE_SETTING_ENABLE_SIGNUP"},
|
|
||||||
{no: 3, name: "WORKSPACE_SETTING_RESOURCE_RELATIVE_PATH"},
|
|
||||||
{no: 4, name: "WORKSPACE_SETTING_AUTO_BACKUP"},
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.WorkspaceSetting
|
|
||||||
*/
|
|
||||||
export const WorkspaceSetting = proto3.makeMessageType(
|
|
||||||
"slash.store.WorkspaceSetting",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "key", kind: "enum", T: proto3.getEnumType(WorkspaceSettingKey) },
|
|
||||||
{ no: 2, name: "secret_session", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "value" },
|
|
||||||
{ no: 3, name: "enable_signup", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "value" },
|
|
||||||
{ no: 4, name: "resource_relative_path", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "value" },
|
|
||||||
{ no: 5, name: "auto_backup", kind: "message", T: AutoBackupWorkspaceSetting, oneof: "value" },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.AutoBackupWorkspaceSetting
|
|
||||||
*/
|
|
||||||
export const AutoBackupWorkspaceSetting = proto3.makeMessageType(
|
|
||||||
"slash.store.AutoBackupWorkspaceSetting",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
||||||
{ no: 2, name: "cron_expression", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 3, name: "max_keep", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
1
frontend/web/.gitignore
vendored
1
frontend/web/.gitignore
vendored
@ -3,3 +3,4 @@ node_modules
|
|||||||
dist
|
dist
|
||||||
dist-ssr
|
dist-ssr
|
||||||
*.local
|
*.local
|
||||||
|
src/types/proto
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
"lint-fix": "eslint --ext .js,.ts,.tsx, src --fix"
|
"lint-fix": "eslint --ext .js,.ts,.tsx, src --fix"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@bufbuild/protobuf": "^1.3.1",
|
|
||||||
"@emotion/react": "^11.11.1",
|
"@emotion/react": "^11.11.1",
|
||||||
"@emotion/styled": "^11.11.0",
|
"@emotion/styled": "^11.11.0",
|
||||||
"@mui/joy": "5.0.0-beta.2",
|
"@mui/joy": "5.0.0-beta.2",
|
||||||
@ -51,4 +50,4 @@
|
|||||||
"typescript": "^5.2.2",
|
"typescript": "^5.2.2",
|
||||||
"vite": "^4.4.9"
|
"vite": "^4.4.9"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
7
frontend/web/pnpm-lock.yaml
generated
7
frontend/web/pnpm-lock.yaml
generated
@ -5,9 +5,6 @@ settings:
|
|||||||
excludeLinksFromLockfile: false
|
excludeLinksFromLockfile: false
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
'@bufbuild/protobuf':
|
|
||||||
specifier: ^1.3.1
|
|
||||||
version: 1.3.1
|
|
||||||
'@emotion/react':
|
'@emotion/react':
|
||||||
specifier: ^11.11.1
|
specifier: ^11.11.1
|
||||||
version: 11.11.1(@types/react@18.2.21)(react@18.2.0)
|
version: 11.11.1(@types/react@18.2.21)(react@18.2.0)
|
||||||
@ -264,10 +261,6 @@ packages:
|
|||||||
'@babel/helper-validator-identifier': 7.22.20
|
'@babel/helper-validator-identifier': 7.22.20
|
||||||
to-fast-properties: 2.0.0
|
to-fast-properties: 2.0.0
|
||||||
|
|
||||||
/@bufbuild/protobuf@1.3.1:
|
|
||||||
resolution: {integrity: sha512-BUyJWutgP2S8K/1NphOJokuwDckXS4qI2T1pGZAlkFdZchWae3jm6fCdkcGbLlM1QLOcNFFePd+7Feo4BYGrJQ==}
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/@emotion/babel-plugin@11.11.0:
|
/@emotion/babel-plugin@11.11.0:
|
||||||
resolution: {integrity: sha512-m4HEDZleaaCH+XgDDsPF15Ht6wTLsgDTeR3WYj9Q/k76JtWhrJjcP4+/XlG8LGT/Rol9qUfOIztXeA84ATpqPQ==}
|
resolution: {integrity: sha512-m4HEDZleaaCH+XgDDsPF15Ht6wTLsgDTeR3WYj9Q/k76JtWhrJjcP4+/XlG8LGT/Rol9qUfOIztXeA84ATpqPQ==}
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -4,7 +4,7 @@ import copy from "copy-to-clipboard";
|
|||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { toast } from "react-hot-toast";
|
import { toast } from "react-hot-toast";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { ListUserAccessTokensResponse, UserAccessToken } from "@/types/proto/api/v2/user_service_pb";
|
import { ListUserAccessTokensResponse, UserAccessToken } from "@/types/proto/api/v2/user_service";
|
||||||
import useUserStore from "../../stores/v1/user";
|
import useUserStore from "../../stores/v1/user";
|
||||||
import { showCommonDialog } from "../Alert";
|
import { showCommonDialog } from "../Alert";
|
||||||
import CreateAccessTokenDialog from "../CreateAccessTokenDialog";
|
import CreateAccessTokenDialog from "../CreateAccessTokenDialog";
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Option, Select } from "@mui/joy";
|
import { Option, Select } from "@mui/joy";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { UserSetting, UserSetting_ColorTheme, UserSetting_Locale } from "@/types/proto/api/v2/user_setting_service_pb";
|
import { UserSetting, UserSetting_ColorTheme, UserSetting_Locale } from "@/types/proto/api/v2/user_setting_service";
|
||||||
import useUserStore from "../../stores/v1/user";
|
import useUserStore from "../../stores/v1/user";
|
||||||
import BetaBadge from "../BetaBadge";
|
import BetaBadge from "../BetaBadge";
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Checkbox } from "@mui/joy";
|
import { Checkbox } from "@mui/joy";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { WorkspaceSetting } from "@/types/proto/api/v2/workspace_setting_service_pb";
|
import { WorkspaceSetting } from "@/types/proto/api/v2/workspace_setting_service";
|
||||||
import { getWorkspaceSetting, updateWorkspaceSetting } from "../../helpers/api";
|
import { getWorkspaceSetting, updateWorkspaceSetting } from "../../helpers/api";
|
||||||
|
|
||||||
const WorkspaceSection: React.FC = () => {
|
const WorkspaceSection: React.FC = () => {
|
||||||
|
@ -3,7 +3,7 @@ import {
|
|||||||
GetWorkspaceSettingResponse,
|
GetWorkspaceSettingResponse,
|
||||||
UpdateWorkspaceSettingResponse,
|
UpdateWorkspaceSettingResponse,
|
||||||
WorkspaceSetting,
|
WorkspaceSetting,
|
||||||
} from "@/types/proto/api/v2/workspace_setting_service_pb";
|
} from "@/types/proto/api/v2/workspace_setting_service";
|
||||||
|
|
||||||
export function getWorkspaceProfile() {
|
export function getWorkspaceProfile() {
|
||||||
return axios.get<WorkspaceProfile>("/api/v1/workspace/profile");
|
return axios.get<WorkspaceProfile>("/api/v1/workspace/profile");
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import { create } from "zustand";
|
import { create } from "zustand";
|
||||||
import { GetUserSettingResponse, UpdateUserSettingResponse, UserSetting } from "@/types/proto/api/v2/user_setting_service_pb";
|
import { GetUserSettingResponse, UpdateUserSettingResponse, UserSetting } from "@/types/proto/api/v2/user_setting_service";
|
||||||
import * as api from "../../helpers/api";
|
import * as api from "../../helpers/api";
|
||||||
|
|
||||||
const convertResponseModelUser = (user: User): User => {
|
const convertResponseModelUser = (user: User): User => {
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file api/v2/common.proto (package slash.api.v2, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.api.v2.RowStatus
|
|
||||||
*/
|
|
||||||
export declare enum RowStatus {
|
|
||||||
/**
|
|
||||||
* @generated from enum value: ROW_STATUS_UNSPECIFIED = 0;
|
|
||||||
*/
|
|
||||||
ROW_STATUS_UNSPECIFIED = 0,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: NORMAL = 1;
|
|
||||||
*/
|
|
||||||
NORMAL = 1,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: ARCHIVED = 2;
|
|
||||||
*/
|
|
||||||
ARCHIVED = 2,
|
|
||||||
}
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file api/v2/common.proto (package slash.api.v2, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
import { proto3 } from "@bufbuild/protobuf";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.api.v2.RowStatus
|
|
||||||
*/
|
|
||||||
export const RowStatus = proto3.makeEnum(
|
|
||||||
"slash.api.v2.RowStatus",
|
|
||||||
[
|
|
||||||
{no: 0, name: "ROW_STATUS_UNSPECIFIED"},
|
|
||||||
{no: 1, name: "NORMAL"},
|
|
||||||
{no: 2, name: "ARCHIVED"},
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
@ -1,329 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file api/v2/shortcut_service.proto (package slash.api.v2, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
||||||
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
||||||
import type { RowStatus } from "./common_pb.js";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.api.v2.Visibility
|
|
||||||
*/
|
|
||||||
export declare enum Visibility {
|
|
||||||
/**
|
|
||||||
* @generated from enum value: VISIBILITY_UNSPECIFIED = 0;
|
|
||||||
*/
|
|
||||||
VISIBILITY_UNSPECIFIED = 0,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: PRIVATE = 1;
|
|
||||||
*/
|
|
||||||
PRIVATE = 1,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: WORKSPACE = 2;
|
|
||||||
*/
|
|
||||||
WORKSPACE = 2,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: PUBLIC = 3;
|
|
||||||
*/
|
|
||||||
PUBLIC = 3,
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.Shortcut
|
|
||||||
*/
|
|
||||||
export declare class Shortcut extends Message<Shortcut> {
|
|
||||||
/**
|
|
||||||
* @generated from field: int32 id = 1;
|
|
||||||
*/
|
|
||||||
id: number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: int32 creator_id = 2;
|
|
||||||
*/
|
|
||||||
creatorId: number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: int64 created_ts = 3;
|
|
||||||
*/
|
|
||||||
createdTs: bigint;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: int64 updated_ts = 4;
|
|
||||||
*/
|
|
||||||
updatedTs: bigint;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.RowStatus row_status = 5;
|
|
||||||
*/
|
|
||||||
rowStatus: RowStatus;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string name = 6;
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string link = 7;
|
|
||||||
*/
|
|
||||||
link: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string title = 8;
|
|
||||||
*/
|
|
||||||
title: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: repeated string tags = 9;
|
|
||||||
*/
|
|
||||||
tags: string[];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string description = 10;
|
|
||||||
*/
|
|
||||||
description: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.Visibility visibility = 11;
|
|
||||||
*/
|
|
||||||
visibility: Visibility;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.OpenGraphMetadata og_metadata = 12;
|
|
||||||
*/
|
|
||||||
ogMetadata?: OpenGraphMetadata;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<Shortcut>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.Shortcut";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Shortcut;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Shortcut;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Shortcut;
|
|
||||||
|
|
||||||
static equals(a: Shortcut | PlainMessage<Shortcut> | undefined, b: Shortcut | PlainMessage<Shortcut> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.OpenGraphMetadata
|
|
||||||
*/
|
|
||||||
export declare class OpenGraphMetadata extends Message<OpenGraphMetadata> {
|
|
||||||
/**
|
|
||||||
* @generated from field: string title = 1;
|
|
||||||
*/
|
|
||||||
title: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string description = 2;
|
|
||||||
*/
|
|
||||||
description: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string image = 3;
|
|
||||||
*/
|
|
||||||
image: string;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<OpenGraphMetadata>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.OpenGraphMetadata";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OpenGraphMetadata;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OpenGraphMetadata;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OpenGraphMetadata;
|
|
||||||
|
|
||||||
static equals(a: OpenGraphMetadata | PlainMessage<OpenGraphMetadata> | undefined, b: OpenGraphMetadata | PlainMessage<OpenGraphMetadata> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.ListShortcutsRequest
|
|
||||||
*/
|
|
||||||
export declare class ListShortcutsRequest extends Message<ListShortcutsRequest> {
|
|
||||||
constructor(data?: PartialMessage<ListShortcutsRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.ListShortcutsRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListShortcutsRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListShortcutsRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListShortcutsRequest;
|
|
||||||
|
|
||||||
static equals(a: ListShortcutsRequest | PlainMessage<ListShortcutsRequest> | undefined, b: ListShortcutsRequest | PlainMessage<ListShortcutsRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.ListShortcutsResponse
|
|
||||||
*/
|
|
||||||
export declare class ListShortcutsResponse extends Message<ListShortcutsResponse> {
|
|
||||||
/**
|
|
||||||
* @generated from field: repeated slash.api.v2.Shortcut shortcuts = 1;
|
|
||||||
*/
|
|
||||||
shortcuts: Shortcut[];
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<ListShortcutsResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.ListShortcutsResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListShortcutsResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListShortcutsResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListShortcutsResponse;
|
|
||||||
|
|
||||||
static equals(a: ListShortcutsResponse | PlainMessage<ListShortcutsResponse> | undefined, b: ListShortcutsResponse | PlainMessage<ListShortcutsResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetShortcutRequest
|
|
||||||
*/
|
|
||||||
export declare class GetShortcutRequest extends Message<GetShortcutRequest> {
|
|
||||||
/**
|
|
||||||
* @generated from field: string name = 1;
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<GetShortcutRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.GetShortcutRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetShortcutRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetShortcutRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetShortcutRequest;
|
|
||||||
|
|
||||||
static equals(a: GetShortcutRequest | PlainMessage<GetShortcutRequest> | undefined, b: GetShortcutRequest | PlainMessage<GetShortcutRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetShortcutResponse
|
|
||||||
*/
|
|
||||||
export declare class GetShortcutResponse extends Message<GetShortcutResponse> {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.Shortcut shortcut = 1;
|
|
||||||
*/
|
|
||||||
shortcut?: Shortcut;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<GetShortcutResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.GetShortcutResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetShortcutResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetShortcutResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetShortcutResponse;
|
|
||||||
|
|
||||||
static equals(a: GetShortcutResponse | PlainMessage<GetShortcutResponse> | undefined, b: GetShortcutResponse | PlainMessage<GetShortcutResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.CreateShortcutRequest
|
|
||||||
*/
|
|
||||||
export declare class CreateShortcutRequest extends Message<CreateShortcutRequest> {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.Shortcut shortcut = 1;
|
|
||||||
*/
|
|
||||||
shortcut?: Shortcut;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<CreateShortcutRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.CreateShortcutRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateShortcutRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateShortcutRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateShortcutRequest;
|
|
||||||
|
|
||||||
static equals(a: CreateShortcutRequest | PlainMessage<CreateShortcutRequest> | undefined, b: CreateShortcutRequest | PlainMessage<CreateShortcutRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.CreateShortcutResponse
|
|
||||||
*/
|
|
||||||
export declare class CreateShortcutResponse extends Message<CreateShortcutResponse> {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.Shortcut shortcut = 1;
|
|
||||||
*/
|
|
||||||
shortcut?: Shortcut;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<CreateShortcutResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.CreateShortcutResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateShortcutResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateShortcutResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateShortcutResponse;
|
|
||||||
|
|
||||||
static equals(a: CreateShortcutResponse | PlainMessage<CreateShortcutResponse> | undefined, b: CreateShortcutResponse | PlainMessage<CreateShortcutResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.DeleteShortcutRequest
|
|
||||||
*/
|
|
||||||
export declare class DeleteShortcutRequest extends Message<DeleteShortcutRequest> {
|
|
||||||
/**
|
|
||||||
* @generated from field: string name = 1;
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<DeleteShortcutRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.DeleteShortcutRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteShortcutRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteShortcutRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteShortcutRequest;
|
|
||||||
|
|
||||||
static equals(a: DeleteShortcutRequest | PlainMessage<DeleteShortcutRequest> | undefined, b: DeleteShortcutRequest | PlainMessage<DeleteShortcutRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.DeleteShortcutResponse
|
|
||||||
*/
|
|
||||||
export declare class DeleteShortcutResponse extends Message<DeleteShortcutResponse> {
|
|
||||||
constructor(data?: PartialMessage<DeleteShortcutResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.DeleteShortcutResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteShortcutResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteShortcutResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteShortcutResponse;
|
|
||||||
|
|
||||||
static equals(a: DeleteShortcutResponse | PlainMessage<DeleteShortcutResponse> | undefined, b: DeleteShortcutResponse | PlainMessage<DeleteShortcutResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
@ -1,130 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file api/v2/shortcut_service.proto (package slash.api.v2, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
import { proto3 } from "@bufbuild/protobuf";
|
|
||||||
import { RowStatus } from "./common_pb.js";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.api.v2.Visibility
|
|
||||||
*/
|
|
||||||
export const Visibility = proto3.makeEnum(
|
|
||||||
"slash.api.v2.Visibility",
|
|
||||||
[
|
|
||||||
{no: 0, name: "VISIBILITY_UNSPECIFIED"},
|
|
||||||
{no: 1, name: "PRIVATE"},
|
|
||||||
{no: 2, name: "WORKSPACE"},
|
|
||||||
{no: 3, name: "PUBLIC"},
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.Shortcut
|
|
||||||
*/
|
|
||||||
export const Shortcut = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.Shortcut",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
{ no: 2, name: "creator_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
{ no: 3, name: "created_ts", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
||||||
{ no: 4, name: "updated_ts", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
||||||
{ no: 5, name: "row_status", kind: "enum", T: proto3.getEnumType(RowStatus) },
|
|
||||||
{ no: 6, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 7, name: "link", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 8, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 9, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
||||||
{ no: 10, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 11, name: "visibility", kind: "enum", T: proto3.getEnumType(Visibility) },
|
|
||||||
{ no: 12, name: "og_metadata", kind: "message", T: OpenGraphMetadata },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.OpenGraphMetadata
|
|
||||||
*/
|
|
||||||
export const OpenGraphMetadata = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.OpenGraphMetadata",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 3, name: "image", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.ListShortcutsRequest
|
|
||||||
*/
|
|
||||||
export const ListShortcutsRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.ListShortcutsRequest",
|
|
||||||
[],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.ListShortcutsResponse
|
|
||||||
*/
|
|
||||||
export const ListShortcutsResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.ListShortcutsResponse",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "shortcuts", kind: "message", T: Shortcut, repeated: true },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetShortcutRequest
|
|
||||||
*/
|
|
||||||
export const GetShortcutRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.GetShortcutRequest",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetShortcutResponse
|
|
||||||
*/
|
|
||||||
export const GetShortcutResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.GetShortcutResponse",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "shortcut", kind: "message", T: Shortcut },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.CreateShortcutRequest
|
|
||||||
*/
|
|
||||||
export const CreateShortcutRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.CreateShortcutRequest",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "shortcut", kind: "message", T: Shortcut },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.CreateShortcutResponse
|
|
||||||
*/
|
|
||||||
export const CreateShortcutResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.CreateShortcutResponse",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "shortcut", kind: "message", T: Shortcut },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.DeleteShortcutRequest
|
|
||||||
*/
|
|
||||||
export const DeleteShortcutRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.DeleteShortcutRequest",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.DeleteShortcutResponse
|
|
||||||
*/
|
|
||||||
export const DeleteShortcutResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.DeleteShortcutResponse",
|
|
||||||
[],
|
|
||||||
);
|
|
||||||
|
|
@ -1,524 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file api/v2/user_service.proto (package slash.api.v2, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Timestamp } from "@bufbuild/protobuf";
|
|
||||||
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
||||||
import type { RowStatus } from "./common_pb.js";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.api.v2.Role
|
|
||||||
*/
|
|
||||||
export declare enum Role {
|
|
||||||
/**
|
|
||||||
* @generated from enum value: ROLE_UNSPECIFIED = 0;
|
|
||||||
*/
|
|
||||||
ROLE_UNSPECIFIED = 0,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: ADMIN = 1;
|
|
||||||
*/
|
|
||||||
ADMIN = 1,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: USER = 2;
|
|
||||||
*/
|
|
||||||
USER = 2,
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.User
|
|
||||||
*/
|
|
||||||
export declare class User extends Message<User> {
|
|
||||||
/**
|
|
||||||
* @generated from field: int32 id = 1;
|
|
||||||
*/
|
|
||||||
id: number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.RowStatus row_status = 2;
|
|
||||||
*/
|
|
||||||
rowStatus: RowStatus;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: int64 created_ts = 3;
|
|
||||||
*/
|
|
||||||
createdTs: bigint;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: int64 updated_ts = 4;
|
|
||||||
*/
|
|
||||||
updatedTs: bigint;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.Role role = 6;
|
|
||||||
*/
|
|
||||||
role: Role;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string email = 7;
|
|
||||||
*/
|
|
||||||
email: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string nickname = 8;
|
|
||||||
*/
|
|
||||||
nickname: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string password = 9;
|
|
||||||
*/
|
|
||||||
password: string;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<User>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.User";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): User;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): User;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): User;
|
|
||||||
|
|
||||||
static equals(a: User | PlainMessage<User> | undefined, b: User | PlainMessage<User> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.ListUsersRequest
|
|
||||||
*/
|
|
||||||
export declare class ListUsersRequest extends Message<ListUsersRequest> {
|
|
||||||
constructor(data?: PartialMessage<ListUsersRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.ListUsersRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUsersRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUsersRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUsersRequest;
|
|
||||||
|
|
||||||
static equals(a: ListUsersRequest | PlainMessage<ListUsersRequest> | undefined, b: ListUsersRequest | PlainMessage<ListUsersRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.ListUsersResponse
|
|
||||||
*/
|
|
||||||
export declare class ListUsersResponse extends Message<ListUsersResponse> {
|
|
||||||
/**
|
|
||||||
* @generated from field: repeated slash.api.v2.User users = 1;
|
|
||||||
*/
|
|
||||||
users: User[];
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<ListUsersResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.ListUsersResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUsersResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUsersResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUsersResponse;
|
|
||||||
|
|
||||||
static equals(a: ListUsersResponse | PlainMessage<ListUsersResponse> | undefined, b: ListUsersResponse | PlainMessage<ListUsersResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetUserRequest
|
|
||||||
*/
|
|
||||||
export declare class GetUserRequest extends Message<GetUserRequest> {
|
|
||||||
/**
|
|
||||||
* @generated from field: int32 id = 1;
|
|
||||||
*/
|
|
||||||
id: number;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<GetUserRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.GetUserRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserRequest;
|
|
||||||
|
|
||||||
static equals(a: GetUserRequest | PlainMessage<GetUserRequest> | undefined, b: GetUserRequest | PlainMessage<GetUserRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetUserResponse
|
|
||||||
*/
|
|
||||||
export declare class GetUserResponse extends Message<GetUserResponse> {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.User user = 1;
|
|
||||||
*/
|
|
||||||
user?: User;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<GetUserResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.GetUserResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserResponse;
|
|
||||||
|
|
||||||
static equals(a: GetUserResponse | PlainMessage<GetUserResponse> | undefined, b: GetUserResponse | PlainMessage<GetUserResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.CreateUserRequest
|
|
||||||
*/
|
|
||||||
export declare class CreateUserRequest extends Message<CreateUserRequest> {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.User user = 1;
|
|
||||||
*/
|
|
||||||
user?: User;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<CreateUserRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.CreateUserRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateUserRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateUserRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateUserRequest;
|
|
||||||
|
|
||||||
static equals(a: CreateUserRequest | PlainMessage<CreateUserRequest> | undefined, b: CreateUserRequest | PlainMessage<CreateUserRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.CreateUserResponse
|
|
||||||
*/
|
|
||||||
export declare class CreateUserResponse extends Message<CreateUserResponse> {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.User user = 1;
|
|
||||||
*/
|
|
||||||
user?: User;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<CreateUserResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.CreateUserResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateUserResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateUserResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateUserResponse;
|
|
||||||
|
|
||||||
static equals(a: CreateUserResponse | PlainMessage<CreateUserResponse> | undefined, b: CreateUserResponse | PlainMessage<CreateUserResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UpdateUserRequest
|
|
||||||
*/
|
|
||||||
export declare class UpdateUserRequest extends Message<UpdateUserRequest> {
|
|
||||||
/**
|
|
||||||
* @generated from field: int32 id = 1;
|
|
||||||
*/
|
|
||||||
id: number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.User user = 2;
|
|
||||||
*/
|
|
||||||
user?: User;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: repeated string update_mask = 3;
|
|
||||||
*/
|
|
||||||
updateMask: string[];
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<UpdateUserRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.UpdateUserRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateUserRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateUserRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateUserRequest;
|
|
||||||
|
|
||||||
static equals(a: UpdateUserRequest | PlainMessage<UpdateUserRequest> | undefined, b: UpdateUserRequest | PlainMessage<UpdateUserRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UpdateUserResponse
|
|
||||||
*/
|
|
||||||
export declare class UpdateUserResponse extends Message<UpdateUserResponse> {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.User user = 1;
|
|
||||||
*/
|
|
||||||
user?: User;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<UpdateUserResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.UpdateUserResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateUserResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateUserResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateUserResponse;
|
|
||||||
|
|
||||||
static equals(a: UpdateUserResponse | PlainMessage<UpdateUserResponse> | undefined, b: UpdateUserResponse | PlainMessage<UpdateUserResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.DeleteUserRequest
|
|
||||||
*/
|
|
||||||
export declare class DeleteUserRequest extends Message<DeleteUserRequest> {
|
|
||||||
/**
|
|
||||||
* @generated from field: int32 id = 1;
|
|
||||||
*/
|
|
||||||
id: number;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<DeleteUserRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.DeleteUserRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteUserRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteUserRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteUserRequest;
|
|
||||||
|
|
||||||
static equals(a: DeleteUserRequest | PlainMessage<DeleteUserRequest> | undefined, b: DeleteUserRequest | PlainMessage<DeleteUserRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.DeleteUserResponse
|
|
||||||
*/
|
|
||||||
export declare class DeleteUserResponse extends Message<DeleteUserResponse> {
|
|
||||||
constructor(data?: PartialMessage<DeleteUserResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.DeleteUserResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteUserResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteUserResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteUserResponse;
|
|
||||||
|
|
||||||
static equals(a: DeleteUserResponse | PlainMessage<DeleteUserResponse> | undefined, b: DeleteUserResponse | PlainMessage<DeleteUserResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.ListUserAccessTokensRequest
|
|
||||||
*/
|
|
||||||
export declare class ListUserAccessTokensRequest extends Message<ListUserAccessTokensRequest> {
|
|
||||||
/**
|
|
||||||
* id is the user id.
|
|
||||||
*
|
|
||||||
* @generated from field: int32 id = 1;
|
|
||||||
*/
|
|
||||||
id: number;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<ListUserAccessTokensRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.ListUserAccessTokensRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUserAccessTokensRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUserAccessTokensRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUserAccessTokensRequest;
|
|
||||||
|
|
||||||
static equals(a: ListUserAccessTokensRequest | PlainMessage<ListUserAccessTokensRequest> | undefined, b: ListUserAccessTokensRequest | PlainMessage<ListUserAccessTokensRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.ListUserAccessTokensResponse
|
|
||||||
*/
|
|
||||||
export declare class ListUserAccessTokensResponse extends Message<ListUserAccessTokensResponse> {
|
|
||||||
/**
|
|
||||||
* @generated from field: repeated slash.api.v2.UserAccessToken access_tokens = 1;
|
|
||||||
*/
|
|
||||||
accessTokens: UserAccessToken[];
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<ListUserAccessTokensResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.ListUserAccessTokensResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUserAccessTokensResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUserAccessTokensResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUserAccessTokensResponse;
|
|
||||||
|
|
||||||
static equals(a: ListUserAccessTokensResponse | PlainMessage<ListUserAccessTokensResponse> | undefined, b: ListUserAccessTokensResponse | PlainMessage<ListUserAccessTokensResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.CreateUserAccessTokenRequest
|
|
||||||
*/
|
|
||||||
export declare class CreateUserAccessTokenRequest extends Message<CreateUserAccessTokenRequest> {
|
|
||||||
/**
|
|
||||||
* id is the user id.
|
|
||||||
*
|
|
||||||
* @generated from field: int32 id = 1;
|
|
||||||
*/
|
|
||||||
id: number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.UserAccessToken user_access_token = 2;
|
|
||||||
*/
|
|
||||||
userAccessToken?: UserAccessToken;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<CreateUserAccessTokenRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.CreateUserAccessTokenRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateUserAccessTokenRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateUserAccessTokenRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateUserAccessTokenRequest;
|
|
||||||
|
|
||||||
static equals(a: CreateUserAccessTokenRequest | PlainMessage<CreateUserAccessTokenRequest> | undefined, b: CreateUserAccessTokenRequest | PlainMessage<CreateUserAccessTokenRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.CreateUserAccessTokenResponse
|
|
||||||
*/
|
|
||||||
export declare class CreateUserAccessTokenResponse extends Message<CreateUserAccessTokenResponse> {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.UserAccessToken access_token = 1;
|
|
||||||
*/
|
|
||||||
accessToken?: UserAccessToken;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<CreateUserAccessTokenResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.CreateUserAccessTokenResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateUserAccessTokenResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateUserAccessTokenResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateUserAccessTokenResponse;
|
|
||||||
|
|
||||||
static equals(a: CreateUserAccessTokenResponse | PlainMessage<CreateUserAccessTokenResponse> | undefined, b: CreateUserAccessTokenResponse | PlainMessage<CreateUserAccessTokenResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.DeleteUserAccessTokenRequest
|
|
||||||
*/
|
|
||||||
export declare class DeleteUserAccessTokenRequest extends Message<DeleteUserAccessTokenRequest> {
|
|
||||||
/**
|
|
||||||
* id is the user id.
|
|
||||||
*
|
|
||||||
* @generated from field: int32 id = 1;
|
|
||||||
*/
|
|
||||||
id: number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* access_token is the access token to delete.
|
|
||||||
*
|
|
||||||
* @generated from field: string access_token = 2;
|
|
||||||
*/
|
|
||||||
accessToken: string;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<DeleteUserAccessTokenRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.DeleteUserAccessTokenRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteUserAccessTokenRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteUserAccessTokenRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteUserAccessTokenRequest;
|
|
||||||
|
|
||||||
static equals(a: DeleteUserAccessTokenRequest | PlainMessage<DeleteUserAccessTokenRequest> | undefined, b: DeleteUserAccessTokenRequest | PlainMessage<DeleteUserAccessTokenRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.DeleteUserAccessTokenResponse
|
|
||||||
*/
|
|
||||||
export declare class DeleteUserAccessTokenResponse extends Message<DeleteUserAccessTokenResponse> {
|
|
||||||
constructor(data?: PartialMessage<DeleteUserAccessTokenResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.DeleteUserAccessTokenResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteUserAccessTokenResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteUserAccessTokenResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteUserAccessTokenResponse;
|
|
||||||
|
|
||||||
static equals(a: DeleteUserAccessTokenResponse | PlainMessage<DeleteUserAccessTokenResponse> | undefined, b: DeleteUserAccessTokenResponse | PlainMessage<DeleteUserAccessTokenResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UserAccessToken
|
|
||||||
*/
|
|
||||||
export declare class UserAccessToken extends Message<UserAccessToken> {
|
|
||||||
/**
|
|
||||||
* @generated from field: string access_token = 1;
|
|
||||||
*/
|
|
||||||
accessToken: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string description = 2;
|
|
||||||
*/
|
|
||||||
description: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: google.protobuf.Timestamp issued_at = 3;
|
|
||||||
*/
|
|
||||||
issuedAt?: Timestamp;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: google.protobuf.Timestamp expires_at = 4;
|
|
||||||
*/
|
|
||||||
expiresAt?: Timestamp;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<UserAccessToken>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.UserAccessToken";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserAccessToken;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserAccessToken;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserAccessToken;
|
|
||||||
|
|
||||||
static equals(a: UserAccessToken | PlainMessage<UserAccessToken> | undefined, b: UserAccessToken | PlainMessage<UserAccessToken> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
@ -1,208 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file api/v2/user_service.proto (package slash.api.v2, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
import { proto3, Timestamp } from "@bufbuild/protobuf";
|
|
||||||
import { RowStatus } from "./common_pb.js";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.api.v2.Role
|
|
||||||
*/
|
|
||||||
export const Role = proto3.makeEnum(
|
|
||||||
"slash.api.v2.Role",
|
|
||||||
[
|
|
||||||
{no: 0, name: "ROLE_UNSPECIFIED"},
|
|
||||||
{no: 1, name: "ADMIN"},
|
|
||||||
{no: 2, name: "USER"},
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.User
|
|
||||||
*/
|
|
||||||
export const User = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.User",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
{ no: 2, name: "row_status", kind: "enum", T: proto3.getEnumType(RowStatus) },
|
|
||||||
{ no: 3, name: "created_ts", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
||||||
{ no: 4, name: "updated_ts", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
||||||
{ no: 6, name: "role", kind: "enum", T: proto3.getEnumType(Role) },
|
|
||||||
{ no: 7, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 8, name: "nickname", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 9, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.ListUsersRequest
|
|
||||||
*/
|
|
||||||
export const ListUsersRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.ListUsersRequest",
|
|
||||||
[],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.ListUsersResponse
|
|
||||||
*/
|
|
||||||
export const ListUsersResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.ListUsersResponse",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "users", kind: "message", T: User, repeated: true },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetUserRequest
|
|
||||||
*/
|
|
||||||
export const GetUserRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.GetUserRequest",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetUserResponse
|
|
||||||
*/
|
|
||||||
export const GetUserResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.GetUserResponse",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "user", kind: "message", T: User },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.CreateUserRequest
|
|
||||||
*/
|
|
||||||
export const CreateUserRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.CreateUserRequest",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "user", kind: "message", T: User },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.CreateUserResponse
|
|
||||||
*/
|
|
||||||
export const CreateUserResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.CreateUserResponse",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "user", kind: "message", T: User },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UpdateUserRequest
|
|
||||||
*/
|
|
||||||
export const UpdateUserRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.UpdateUserRequest",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
{ no: 2, name: "user", kind: "message", T: User },
|
|
||||||
{ no: 3, name: "update_mask", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UpdateUserResponse
|
|
||||||
*/
|
|
||||||
export const UpdateUserResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.UpdateUserResponse",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "user", kind: "message", T: User },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.DeleteUserRequest
|
|
||||||
*/
|
|
||||||
export const DeleteUserRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.DeleteUserRequest",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.DeleteUserResponse
|
|
||||||
*/
|
|
||||||
export const DeleteUserResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.DeleteUserResponse",
|
|
||||||
[],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.ListUserAccessTokensRequest
|
|
||||||
*/
|
|
||||||
export const ListUserAccessTokensRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.ListUserAccessTokensRequest",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.ListUserAccessTokensResponse
|
|
||||||
*/
|
|
||||||
export const ListUserAccessTokensResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.ListUserAccessTokensResponse",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "access_tokens", kind: "message", T: UserAccessToken, repeated: true },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.CreateUserAccessTokenRequest
|
|
||||||
*/
|
|
||||||
export const CreateUserAccessTokenRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.CreateUserAccessTokenRequest",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
{ no: 2, name: "user_access_token", kind: "message", T: UserAccessToken },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.CreateUserAccessTokenResponse
|
|
||||||
*/
|
|
||||||
export const CreateUserAccessTokenResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.CreateUserAccessTokenResponse",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "access_token", kind: "message", T: UserAccessToken },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.DeleteUserAccessTokenRequest
|
|
||||||
*/
|
|
||||||
export const DeleteUserAccessTokenRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.DeleteUserAccessTokenRequest",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
{ no: 2, name: "access_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.DeleteUserAccessTokenResponse
|
|
||||||
*/
|
|
||||||
export const DeleteUserAccessTokenResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.DeleteUserAccessTokenResponse",
|
|
||||||
[],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UserAccessToken
|
|
||||||
*/
|
|
||||||
export const UserAccessToken = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.UserAccessToken",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "access_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 3, name: "issued_at", kind: "message", T: Timestamp },
|
|
||||||
{ no: 4, name: "expires_at", kind: "message", T: Timestamp },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
@ -1,202 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file api/v2/user_setting_service.proto (package slash.api.v2, 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 message slash.api.v2.UserSetting
|
|
||||||
*/
|
|
||||||
export declare class UserSetting extends Message<UserSetting> {
|
|
||||||
/**
|
|
||||||
* id is the user id.
|
|
||||||
*
|
|
||||||
* @generated from field: int32 id = 1;
|
|
||||||
*/
|
|
||||||
id: number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* locale is the user locale.
|
|
||||||
*
|
|
||||||
* @generated from field: slash.api.v2.UserSetting.Locale locale = 2;
|
|
||||||
*/
|
|
||||||
locale: UserSetting_Locale;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* color_theme is the user color theme.
|
|
||||||
*
|
|
||||||
* @generated from field: slash.api.v2.UserSetting.ColorTheme color_theme = 3;
|
|
||||||
*/
|
|
||||||
colorTheme: UserSetting_ColorTheme;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<UserSetting>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.UserSetting";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserSetting;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserSetting;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserSetting;
|
|
||||||
|
|
||||||
static equals(a: UserSetting | PlainMessage<UserSetting> | undefined, b: UserSetting | PlainMessage<UserSetting> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.api.v2.UserSetting.Locale
|
|
||||||
*/
|
|
||||||
export declare enum UserSetting_Locale {
|
|
||||||
/**
|
|
||||||
* @generated from enum value: LOCALE_UNSPECIFIED = 0;
|
|
||||||
*/
|
|
||||||
UNSPECIFIED = 0,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: LOCALE_EN = 1;
|
|
||||||
*/
|
|
||||||
EN = 1,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: LOCALE_ZH = 2;
|
|
||||||
*/
|
|
||||||
ZH = 2,
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.api.v2.UserSetting.ColorTheme
|
|
||||||
*/
|
|
||||||
export declare enum UserSetting_ColorTheme {
|
|
||||||
/**
|
|
||||||
* @generated from enum value: COLOR_THEME_UNSPECIFIED = 0;
|
|
||||||
*/
|
|
||||||
UNSPECIFIED = 0,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: COLOR_THEME_LIGHT = 1;
|
|
||||||
*/
|
|
||||||
LIGHT = 1,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: COLOR_THEME_DARK = 2;
|
|
||||||
*/
|
|
||||||
DARK = 2,
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetUserSettingRequest
|
|
||||||
*/
|
|
||||||
export declare class GetUserSettingRequest extends Message<GetUserSettingRequest> {
|
|
||||||
/**
|
|
||||||
* id is the user id.
|
|
||||||
*
|
|
||||||
* @generated from field: int32 id = 1;
|
|
||||||
*/
|
|
||||||
id: number;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<GetUserSettingRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.GetUserSettingRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserSettingRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserSettingRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserSettingRequest;
|
|
||||||
|
|
||||||
static equals(a: GetUserSettingRequest | PlainMessage<GetUserSettingRequest> | undefined, b: GetUserSettingRequest | PlainMessage<GetUserSettingRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetUserSettingResponse
|
|
||||||
*/
|
|
||||||
export declare class GetUserSettingResponse extends Message<GetUserSettingResponse> {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.UserSetting user_setting = 1;
|
|
||||||
*/
|
|
||||||
userSetting?: UserSetting;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<GetUserSettingResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.GetUserSettingResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserSettingResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserSettingResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserSettingResponse;
|
|
||||||
|
|
||||||
static equals(a: GetUserSettingResponse | PlainMessage<GetUserSettingResponse> | undefined, b: GetUserSettingResponse | PlainMessage<GetUserSettingResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UpdateUserSettingRequest
|
|
||||||
*/
|
|
||||||
export declare class UpdateUserSettingRequest extends Message<UpdateUserSettingRequest> {
|
|
||||||
/**
|
|
||||||
* id is the user id.
|
|
||||||
*
|
|
||||||
* @generated from field: int32 id = 1;
|
|
||||||
*/
|
|
||||||
id: number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* user_setting is the user setting to update.
|
|
||||||
*
|
|
||||||
* @generated from field: slash.api.v2.UserSetting user_setting = 2;
|
|
||||||
*/
|
|
||||||
userSetting?: UserSetting;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* update_mask is the field mask to update.
|
|
||||||
*
|
|
||||||
* @generated from field: repeated string update_mask = 3;
|
|
||||||
*/
|
|
||||||
updateMask: string[];
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<UpdateUserSettingRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.UpdateUserSettingRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateUserSettingRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateUserSettingRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateUserSettingRequest;
|
|
||||||
|
|
||||||
static equals(a: UpdateUserSettingRequest | PlainMessage<UpdateUserSettingRequest> | undefined, b: UpdateUserSettingRequest | PlainMessage<UpdateUserSettingRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UpdateUserSettingResponse
|
|
||||||
*/
|
|
||||||
export declare class UpdateUserSettingResponse extends Message<UpdateUserSettingResponse> {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.api.v2.UserSetting user_setting = 1;
|
|
||||||
*/
|
|
||||||
userSetting?: UserSetting;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<UpdateUserSettingResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.UpdateUserSettingResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateUserSettingResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateUserSettingResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateUserSettingResponse;
|
|
||||||
|
|
||||||
static equals(a: UpdateUserSettingResponse | PlainMessage<UpdateUserSettingResponse> | undefined, b: UpdateUserSettingResponse | PlainMessage<UpdateUserSettingResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
@ -1,85 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file api/v2/user_setting_service.proto (package slash.api.v2, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
import { proto3 } from "@bufbuild/protobuf";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UserSetting
|
|
||||||
*/
|
|
||||||
export const UserSetting = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.UserSetting",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
{ no: 2, name: "locale", kind: "enum", T: proto3.getEnumType(UserSetting_Locale) },
|
|
||||||
{ no: 3, name: "color_theme", kind: "enum", T: proto3.getEnumType(UserSetting_ColorTheme) },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.api.v2.UserSetting.Locale
|
|
||||||
*/
|
|
||||||
export const UserSetting_Locale = proto3.makeEnum(
|
|
||||||
"slash.api.v2.UserSetting.Locale",
|
|
||||||
[
|
|
||||||
{no: 0, name: "LOCALE_UNSPECIFIED", localName: "UNSPECIFIED"},
|
|
||||||
{no: 1, name: "LOCALE_EN", localName: "EN"},
|
|
||||||
{no: 2, name: "LOCALE_ZH", localName: "ZH"},
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.api.v2.UserSetting.ColorTheme
|
|
||||||
*/
|
|
||||||
export const UserSetting_ColorTheme = proto3.makeEnum(
|
|
||||||
"slash.api.v2.UserSetting.ColorTheme",
|
|
||||||
[
|
|
||||||
{no: 0, name: "COLOR_THEME_UNSPECIFIED", localName: "UNSPECIFIED"},
|
|
||||||
{no: 1, name: "COLOR_THEME_LIGHT", localName: "LIGHT"},
|
|
||||||
{no: 2, name: "COLOR_THEME_DARK", localName: "DARK"},
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetUserSettingRequest
|
|
||||||
*/
|
|
||||||
export const GetUserSettingRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.GetUserSettingRequest",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetUserSettingResponse
|
|
||||||
*/
|
|
||||||
export const GetUserSettingResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.GetUserSettingResponse",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "user_setting", kind: "message", T: UserSetting },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UpdateUserSettingRequest
|
|
||||||
*/
|
|
||||||
export const UpdateUserSettingRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.UpdateUserSettingRequest",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
{ no: 2, name: "user_setting", kind: "message", T: UserSetting },
|
|
||||||
{ no: 3, name: "update_mask", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UpdateUserSettingResponse
|
|
||||||
*/
|
|
||||||
export const UpdateUserSettingResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.UpdateUserSettingResponse",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "user_setting", kind: "message", T: UserSetting },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
@ -1,194 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file api/v2/workspace_setting_service.proto (package slash.api.v2, 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 message slash.api.v2.WorkspaceSetting
|
|
||||||
*/
|
|
||||||
export declare class WorkspaceSetting extends Message<WorkspaceSetting> {
|
|
||||||
/**
|
|
||||||
* Whether to enable other users to sign up.
|
|
||||||
*
|
|
||||||
* @generated from field: bool enable_signup = 1;
|
|
||||||
*/
|
|
||||||
enableSignup: boolean;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The relative path of the resource directory.
|
|
||||||
*
|
|
||||||
* @generated from field: string resource_relative_path = 2;
|
|
||||||
*/
|
|
||||||
resourceRelativePath: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The auto backup setting.
|
|
||||||
*
|
|
||||||
* @generated from field: slash.api.v2.AutoBackupWorkspaceSetting auto_backup = 3;
|
|
||||||
*/
|
|
||||||
autoBackup?: AutoBackupWorkspaceSetting;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<WorkspaceSetting>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.WorkspaceSetting";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkspaceSetting;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkspaceSetting;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkspaceSetting;
|
|
||||||
|
|
||||||
static equals(a: WorkspaceSetting | PlainMessage<WorkspaceSetting> | undefined, b: WorkspaceSetting | PlainMessage<WorkspaceSetting> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.AutoBackupWorkspaceSetting
|
|
||||||
*/
|
|
||||||
export declare class AutoBackupWorkspaceSetting extends Message<AutoBackupWorkspaceSetting> {
|
|
||||||
/**
|
|
||||||
* Whether auto backup is enabled.
|
|
||||||
*
|
|
||||||
* @generated from field: bool enabled = 1;
|
|
||||||
*/
|
|
||||||
enabled: boolean;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The cron expression for auto backup.
|
|
||||||
* For example, "0 0 0 * * *" means backup at 00:00:00 every day.
|
|
||||||
* See https://en.wikipedia.org/wiki/Cron for more details.
|
|
||||||
*
|
|
||||||
* @generated from field: string cron_expression = 2;
|
|
||||||
*/
|
|
||||||
cronExpression: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The maximum number of backups to keep.
|
|
||||||
*
|
|
||||||
* @generated from field: int32 max_keep = 3;
|
|
||||||
*/
|
|
||||||
maxKeep: number;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<AutoBackupWorkspaceSetting>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.AutoBackupWorkspaceSetting";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AutoBackupWorkspaceSetting;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AutoBackupWorkspaceSetting;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AutoBackupWorkspaceSetting;
|
|
||||||
|
|
||||||
static equals(a: AutoBackupWorkspaceSetting | PlainMessage<AutoBackupWorkspaceSetting> | undefined, b: AutoBackupWorkspaceSetting | PlainMessage<AutoBackupWorkspaceSetting> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetWorkspaceSettingRequest
|
|
||||||
*/
|
|
||||||
export declare class GetWorkspaceSettingRequest extends Message<GetWorkspaceSettingRequest> {
|
|
||||||
constructor(data?: PartialMessage<GetWorkspaceSettingRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.GetWorkspaceSettingRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetWorkspaceSettingRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetWorkspaceSettingRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetWorkspaceSettingRequest;
|
|
||||||
|
|
||||||
static equals(a: GetWorkspaceSettingRequest | PlainMessage<GetWorkspaceSettingRequest> | undefined, b: GetWorkspaceSettingRequest | PlainMessage<GetWorkspaceSettingRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetWorkspaceSettingResponse
|
|
||||||
*/
|
|
||||||
export declare class GetWorkspaceSettingResponse extends Message<GetWorkspaceSettingResponse> {
|
|
||||||
/**
|
|
||||||
* The user setting.
|
|
||||||
*
|
|
||||||
* @generated from field: slash.api.v2.WorkspaceSetting setting = 1;
|
|
||||||
*/
|
|
||||||
setting?: WorkspaceSetting;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<GetWorkspaceSettingResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.GetWorkspaceSettingResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetWorkspaceSettingResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetWorkspaceSettingResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetWorkspaceSettingResponse;
|
|
||||||
|
|
||||||
static equals(a: GetWorkspaceSettingResponse | PlainMessage<GetWorkspaceSettingResponse> | undefined, b: GetWorkspaceSettingResponse | PlainMessage<GetWorkspaceSettingResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UpdateWorkspaceSettingRequest
|
|
||||||
*/
|
|
||||||
export declare class UpdateWorkspaceSettingRequest extends Message<UpdateWorkspaceSettingRequest> {
|
|
||||||
/**
|
|
||||||
* The user setting.
|
|
||||||
*
|
|
||||||
* @generated from field: slash.api.v2.WorkspaceSetting setting = 1;
|
|
||||||
*/
|
|
||||||
setting?: WorkspaceSetting;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The update mask.
|
|
||||||
*
|
|
||||||
* @generated from field: repeated string update_mask = 2;
|
|
||||||
*/
|
|
||||||
updateMask: string[];
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<UpdateWorkspaceSettingRequest>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.UpdateWorkspaceSettingRequest";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateWorkspaceSettingRequest;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateWorkspaceSettingRequest;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateWorkspaceSettingRequest;
|
|
||||||
|
|
||||||
static equals(a: UpdateWorkspaceSettingRequest | PlainMessage<UpdateWorkspaceSettingRequest> | undefined, b: UpdateWorkspaceSettingRequest | PlainMessage<UpdateWorkspaceSettingRequest> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UpdateWorkspaceSettingResponse
|
|
||||||
*/
|
|
||||||
export declare class UpdateWorkspaceSettingResponse extends Message<UpdateWorkspaceSettingResponse> {
|
|
||||||
/**
|
|
||||||
* The user setting.
|
|
||||||
*
|
|
||||||
* @generated from field: slash.api.v2.WorkspaceSetting setting = 1;
|
|
||||||
*/
|
|
||||||
setting?: WorkspaceSetting;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<UpdateWorkspaceSettingResponse>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.api.v2.UpdateWorkspaceSettingResponse";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateWorkspaceSettingResponse;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateWorkspaceSettingResponse;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateWorkspaceSettingResponse;
|
|
||||||
|
|
||||||
static equals(a: UpdateWorkspaceSettingResponse | PlainMessage<UpdateWorkspaceSettingResponse> | undefined, b: UpdateWorkspaceSettingResponse | PlainMessage<UpdateWorkspaceSettingResponse> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
@ -1,70 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file api/v2/workspace_setting_service.proto (package slash.api.v2, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
import { proto3 } from "@bufbuild/protobuf";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.WorkspaceSetting
|
|
||||||
*/
|
|
||||||
export const WorkspaceSetting = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.WorkspaceSetting",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "enable_signup", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
||||||
{ no: 2, name: "resource_relative_path", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 3, name: "auto_backup", kind: "message", T: AutoBackupWorkspaceSetting },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.AutoBackupWorkspaceSetting
|
|
||||||
*/
|
|
||||||
export const AutoBackupWorkspaceSetting = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.AutoBackupWorkspaceSetting",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
||||||
{ no: 2, name: "cron_expression", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 3, name: "max_keep", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetWorkspaceSettingRequest
|
|
||||||
*/
|
|
||||||
export const GetWorkspaceSettingRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.GetWorkspaceSettingRequest",
|
|
||||||
[],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.GetWorkspaceSettingResponse
|
|
||||||
*/
|
|
||||||
export const GetWorkspaceSettingResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.GetWorkspaceSettingResponse",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "setting", kind: "message", T: WorkspaceSetting },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UpdateWorkspaceSettingRequest
|
|
||||||
*/
|
|
||||||
export const UpdateWorkspaceSettingRequest = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.UpdateWorkspaceSettingRequest",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "setting", kind: "message", T: WorkspaceSetting },
|
|
||||||
{ no: 2, name: "update_mask", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.api.v2.UpdateWorkspaceSettingResponse
|
|
||||||
*/
|
|
||||||
export const UpdateWorkspaceSettingResponse = proto3.makeMessageType(
|
|
||||||
"slash.api.v2.UpdateWorkspaceSettingResponse",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "setting", kind: "message", T: WorkspaceSetting },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file store/activity.proto (package slash.store, 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 message slash.store.ActivityShorcutCreatePayload
|
|
||||||
*/
|
|
||||||
export declare class ActivityShorcutCreatePayload extends Message<ActivityShorcutCreatePayload> {
|
|
||||||
/**
|
|
||||||
* @generated from field: int32 shortcut_id = 1;
|
|
||||||
*/
|
|
||||||
shortcutId: number;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<ActivityShorcutCreatePayload>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.store.ActivityShorcutCreatePayload";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ActivityShorcutCreatePayload;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ActivityShorcutCreatePayload;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ActivityShorcutCreatePayload;
|
|
||||||
|
|
||||||
static equals(a: ActivityShorcutCreatePayload | PlainMessage<ActivityShorcutCreatePayload> | undefined, b: ActivityShorcutCreatePayload | PlainMessage<ActivityShorcutCreatePayload> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file store/activity.proto (package slash.store, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
import { proto3 } from "@bufbuild/protobuf";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.ActivityShorcutCreatePayload
|
|
||||||
*/
|
|
||||||
export const ActivityShorcutCreatePayload = proto3.makeMessageType(
|
|
||||||
"slash.store.ActivityShorcutCreatePayload",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "shortcut_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file store/common.proto (package slash.store, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.store.RowStatus
|
|
||||||
*/
|
|
||||||
export declare enum RowStatus {
|
|
||||||
/**
|
|
||||||
* @generated from enum value: ROW_STATUS_UNSPECIFIED = 0;
|
|
||||||
*/
|
|
||||||
ROW_STATUS_UNSPECIFIED = 0,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: NORMAL = 1;
|
|
||||||
*/
|
|
||||||
NORMAL = 1,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: ARCHIVED = 2;
|
|
||||||
*/
|
|
||||||
ARCHIVED = 2,
|
|
||||||
}
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file store/common.proto (package slash.store, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
import { proto3 } from "@bufbuild/protobuf";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.store.RowStatus
|
|
||||||
*/
|
|
||||||
export const RowStatus = proto3.makeEnum(
|
|
||||||
"slash.store.RowStatus",
|
|
||||||
[
|
|
||||||
{no: 0, name: "ROW_STATUS_UNSPECIFIED"},
|
|
||||||
{no: 1, name: "NORMAL"},
|
|
||||||
{no: 2, name: "ARCHIVED"},
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
147
frontend/web/src/types/proto/store/shortcut_pb.d.ts
vendored
147
frontend/web/src/types/proto/store/shortcut_pb.d.ts
vendored
@ -1,147 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file store/shortcut.proto (package slash.store, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
||||||
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
||||||
import type { RowStatus } from "./common_pb.js";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.store.Visibility
|
|
||||||
*/
|
|
||||||
export declare enum Visibility {
|
|
||||||
/**
|
|
||||||
* @generated from enum value: VISIBILITY_UNSPECIFIED = 0;
|
|
||||||
*/
|
|
||||||
VISIBILITY_UNSPECIFIED = 0,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: PRIVATE = 1;
|
|
||||||
*/
|
|
||||||
PRIVATE = 1,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: WORKSPACE = 2;
|
|
||||||
*/
|
|
||||||
WORKSPACE = 2,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: PUBLIC = 3;
|
|
||||||
*/
|
|
||||||
PUBLIC = 3,
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.Shortcut
|
|
||||||
*/
|
|
||||||
export declare class Shortcut extends Message<Shortcut> {
|
|
||||||
/**
|
|
||||||
* @generated from field: int32 id = 1;
|
|
||||||
*/
|
|
||||||
id: number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: int32 creator_id = 2;
|
|
||||||
*/
|
|
||||||
creatorId: number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: int64 created_ts = 3;
|
|
||||||
*/
|
|
||||||
createdTs: bigint;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: int64 updated_ts = 4;
|
|
||||||
*/
|
|
||||||
updatedTs: bigint;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.store.RowStatus row_status = 5;
|
|
||||||
*/
|
|
||||||
rowStatus: RowStatus;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string name = 6;
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string link = 7;
|
|
||||||
*/
|
|
||||||
link: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string title = 8;
|
|
||||||
*/
|
|
||||||
title: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: repeated string tags = 9;
|
|
||||||
*/
|
|
||||||
tags: string[];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string description = 10;
|
|
||||||
*/
|
|
||||||
description: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.store.Visibility visibility = 11;
|
|
||||||
*/
|
|
||||||
visibility: Visibility;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.store.OpenGraphMetadata og_metadata = 12;
|
|
||||||
*/
|
|
||||||
ogMetadata?: OpenGraphMetadata;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<Shortcut>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.store.Shortcut";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Shortcut;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Shortcut;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Shortcut;
|
|
||||||
|
|
||||||
static equals(a: Shortcut | PlainMessage<Shortcut> | undefined, b: Shortcut | PlainMessage<Shortcut> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.OpenGraphMetadata
|
|
||||||
*/
|
|
||||||
export declare class OpenGraphMetadata extends Message<OpenGraphMetadata> {
|
|
||||||
/**
|
|
||||||
* @generated from field: string title = 1;
|
|
||||||
*/
|
|
||||||
title: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string description = 2;
|
|
||||||
*/
|
|
||||||
description: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: string image = 3;
|
|
||||||
*/
|
|
||||||
image: string;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<OpenGraphMetadata>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.store.OpenGraphMetadata";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OpenGraphMetadata;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OpenGraphMetadata;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OpenGraphMetadata;
|
|
||||||
|
|
||||||
static equals(a: OpenGraphMetadata | PlainMessage<OpenGraphMetadata> | undefined, b: OpenGraphMetadata | PlainMessage<OpenGraphMetadata> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
@ -1,54 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file store/shortcut.proto (package slash.store, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
import { proto3 } from "@bufbuild/protobuf";
|
|
||||||
import { RowStatus } from "./common_pb.js";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.store.Visibility
|
|
||||||
*/
|
|
||||||
export const Visibility = proto3.makeEnum(
|
|
||||||
"slash.store.Visibility",
|
|
||||||
[
|
|
||||||
{no: 0, name: "VISIBILITY_UNSPECIFIED"},
|
|
||||||
{no: 1, name: "PRIVATE"},
|
|
||||||
{no: 2, name: "WORKSPACE"},
|
|
||||||
{no: 3, name: "PUBLIC"},
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.Shortcut
|
|
||||||
*/
|
|
||||||
export const Shortcut = proto3.makeMessageType(
|
|
||||||
"slash.store.Shortcut",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
{ no: 2, name: "creator_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
{ no: 3, name: "created_ts", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
||||||
{ no: 4, name: "updated_ts", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
||||||
{ no: 5, name: "row_status", kind: "enum", T: proto3.getEnumType(RowStatus) },
|
|
||||||
{ no: 6, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 7, name: "link", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 8, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 9, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
||||||
{ no: 10, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 11, name: "visibility", kind: "enum", T: proto3.getEnumType(Visibility) },
|
|
||||||
{ no: 12, name: "og_metadata", kind: "message", T: OpenGraphMetadata },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.OpenGraphMetadata
|
|
||||||
*/
|
|
||||||
export const OpenGraphMetadata = proto3.makeMessageType(
|
|
||||||
"slash.store.OpenGraphMetadata",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 3, name: "image", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
@ -1,189 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file store/user_setting.proto (package slash.store, 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 slash.store.UserSettingKey
|
|
||||||
*/
|
|
||||||
export declare enum UserSettingKey {
|
|
||||||
/**
|
|
||||||
* @generated from enum value: USER_SETTING_KEY_UNSPECIFIED = 0;
|
|
||||||
*/
|
|
||||||
USER_SETTING_KEY_UNSPECIFIED = 0,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Access tokens for the user.
|
|
||||||
*
|
|
||||||
* @generated from enum value: USER_SETTING_ACCESS_TOKENS = 1;
|
|
||||||
*/
|
|
||||||
USER_SETTING_ACCESS_TOKENS = 1,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Locale for the user.
|
|
||||||
*
|
|
||||||
* @generated from enum value: USER_SETTING_LOCALE = 2;
|
|
||||||
*/
|
|
||||||
USER_SETTING_LOCALE = 2,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Color theme for the user.
|
|
||||||
*
|
|
||||||
* @generated from enum value: USER_SETTING_COLOR_THEME = 3;
|
|
||||||
*/
|
|
||||||
USER_SETTING_COLOR_THEME = 3,
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.store.LocaleUserSetting
|
|
||||||
*/
|
|
||||||
export declare enum LocaleUserSetting {
|
|
||||||
/**
|
|
||||||
* @generated from enum value: LOCALE_USER_SETTING_UNSPECIFIED = 0;
|
|
||||||
*/
|
|
||||||
UNSPECIFIED = 0,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: LOCALE_USER_SETTING_EN = 1;
|
|
||||||
*/
|
|
||||||
EN = 1,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: LOCALE_USER_SETTING_ZH = 2;
|
|
||||||
*/
|
|
||||||
ZH = 2,
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.store.ColorThemeUserSetting
|
|
||||||
*/
|
|
||||||
export declare enum ColorThemeUserSetting {
|
|
||||||
/**
|
|
||||||
* @generated from enum value: COLOR_THEME_USER_SETTING_UNSPECIFIED = 0;
|
|
||||||
*/
|
|
||||||
UNSPECIFIED = 0,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: COLOR_THEME_USER_SETTING_LIGHT = 1;
|
|
||||||
*/
|
|
||||||
LIGHT = 1,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum value: COLOR_THEME_USER_SETTING_DARK = 2;
|
|
||||||
*/
|
|
||||||
DARK = 2,
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.UserSetting
|
|
||||||
*/
|
|
||||||
export declare class UserSetting extends Message<UserSetting> {
|
|
||||||
/**
|
|
||||||
* @generated from field: int32 user_id = 1;
|
|
||||||
*/
|
|
||||||
userId: number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.store.UserSettingKey key = 2;
|
|
||||||
*/
|
|
||||||
key: UserSettingKey;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from oneof slash.store.UserSetting.value
|
|
||||||
*/
|
|
||||||
value: {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.store.AccessTokensUserSetting access_tokens = 3;
|
|
||||||
*/
|
|
||||||
value: AccessTokensUserSetting;
|
|
||||||
case: "accessTokens";
|
|
||||||
} | {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.store.LocaleUserSetting locale = 4;
|
|
||||||
*/
|
|
||||||
value: LocaleUserSetting;
|
|
||||||
case: "locale";
|
|
||||||
} | {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.store.ColorThemeUserSetting color_theme = 5;
|
|
||||||
*/
|
|
||||||
value: ColorThemeUserSetting;
|
|
||||||
case: "colorTheme";
|
|
||||||
} | { case: undefined; value?: undefined };
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<UserSetting>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.store.UserSetting";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserSetting;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserSetting;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserSetting;
|
|
||||||
|
|
||||||
static equals(a: UserSetting | PlainMessage<UserSetting> | undefined, b: UserSetting | PlainMessage<UserSetting> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.AccessTokensUserSetting
|
|
||||||
*/
|
|
||||||
export declare class AccessTokensUserSetting extends Message<AccessTokensUserSetting> {
|
|
||||||
/**
|
|
||||||
* @generated from field: repeated slash.store.AccessTokensUserSetting.AccessToken access_tokens = 1;
|
|
||||||
*/
|
|
||||||
accessTokens: AccessTokensUserSetting_AccessToken[];
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<AccessTokensUserSetting>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.store.AccessTokensUserSetting";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AccessTokensUserSetting;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AccessTokensUserSetting;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AccessTokensUserSetting;
|
|
||||||
|
|
||||||
static equals(a: AccessTokensUserSetting | PlainMessage<AccessTokensUserSetting> | undefined, b: AccessTokensUserSetting | PlainMessage<AccessTokensUserSetting> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.AccessTokensUserSetting.AccessToken
|
|
||||||
*/
|
|
||||||
export declare class AccessTokensUserSetting_AccessToken extends Message<AccessTokensUserSetting_AccessToken> {
|
|
||||||
/**
|
|
||||||
* The access token is a JWT token.
|
|
||||||
* Including expiration time, issuer, etc.
|
|
||||||
*
|
|
||||||
* @generated from field: string access_token = 1;
|
|
||||||
*/
|
|
||||||
accessToken: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A description for the access token.
|
|
||||||
*
|
|
||||||
* @generated from field: string description = 2;
|
|
||||||
*/
|
|
||||||
description: string;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<AccessTokensUserSetting_AccessToken>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.store.AccessTokensUserSetting.AccessToken";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AccessTokensUserSetting_AccessToken;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AccessTokensUserSetting_AccessToken;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AccessTokensUserSetting_AccessToken;
|
|
||||||
|
|
||||||
static equals(a: AccessTokensUserSetting_AccessToken | PlainMessage<AccessTokensUserSetting_AccessToken> | undefined, b: AccessTokensUserSetting_AccessToken | PlainMessage<AccessTokensUserSetting_AccessToken> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
@ -1,80 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file store/user_setting.proto (package slash.store, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
import { proto3 } from "@bufbuild/protobuf";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.store.UserSettingKey
|
|
||||||
*/
|
|
||||||
export const UserSettingKey = proto3.makeEnum(
|
|
||||||
"slash.store.UserSettingKey",
|
|
||||||
[
|
|
||||||
{no: 0, name: "USER_SETTING_KEY_UNSPECIFIED"},
|
|
||||||
{no: 1, name: "USER_SETTING_ACCESS_TOKENS"},
|
|
||||||
{no: 2, name: "USER_SETTING_LOCALE"},
|
|
||||||
{no: 3, name: "USER_SETTING_COLOR_THEME"},
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.store.LocaleUserSetting
|
|
||||||
*/
|
|
||||||
export const LocaleUserSetting = proto3.makeEnum(
|
|
||||||
"slash.store.LocaleUserSetting",
|
|
||||||
[
|
|
||||||
{no: 0, name: "LOCALE_USER_SETTING_UNSPECIFIED", localName: "UNSPECIFIED"},
|
|
||||||
{no: 1, name: "LOCALE_USER_SETTING_EN", localName: "EN"},
|
|
||||||
{no: 2, name: "LOCALE_USER_SETTING_ZH", localName: "ZH"},
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.store.ColorThemeUserSetting
|
|
||||||
*/
|
|
||||||
export const ColorThemeUserSetting = proto3.makeEnum(
|
|
||||||
"slash.store.ColorThemeUserSetting",
|
|
||||||
[
|
|
||||||
{no: 0, name: "COLOR_THEME_USER_SETTING_UNSPECIFIED", localName: "UNSPECIFIED"},
|
|
||||||
{no: 1, name: "COLOR_THEME_USER_SETTING_LIGHT", localName: "LIGHT"},
|
|
||||||
{no: 2, name: "COLOR_THEME_USER_SETTING_DARK", localName: "DARK"},
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.UserSetting
|
|
||||||
*/
|
|
||||||
export const UserSetting = proto3.makeMessageType(
|
|
||||||
"slash.store.UserSetting",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "user_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
{ no: 2, name: "key", kind: "enum", T: proto3.getEnumType(UserSettingKey) },
|
|
||||||
{ no: 3, name: "access_tokens", kind: "message", T: AccessTokensUserSetting, oneof: "value" },
|
|
||||||
{ no: 4, name: "locale", kind: "enum", T: proto3.getEnumType(LocaleUserSetting), oneof: "value" },
|
|
||||||
{ no: 5, name: "color_theme", kind: "enum", T: proto3.getEnumType(ColorThemeUserSetting), oneof: "value" },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.AccessTokensUserSetting
|
|
||||||
*/
|
|
||||||
export const AccessTokensUserSetting = proto3.makeMessageType(
|
|
||||||
"slash.store.AccessTokensUserSetting",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "access_tokens", kind: "message", T: AccessTokensUserSetting_AccessToken, repeated: true },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.AccessTokensUserSetting.AccessToken
|
|
||||||
*/
|
|
||||||
export const AccessTokensUserSetting_AccessToken = proto3.makeMessageType(
|
|
||||||
"slash.store.AccessTokensUserSetting.AccessToken",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "access_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
],
|
|
||||||
{localName: "AccessTokensUserSetting_AccessToken"},
|
|
||||||
);
|
|
||||||
|
|
@ -1,141 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file store/workspace_setting.proto (package slash.store, 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 slash.store.WorkspaceSettingKey
|
|
||||||
*/
|
|
||||||
export declare enum WorkspaceSettingKey {
|
|
||||||
/**
|
|
||||||
* @generated from enum value: WORKSPACE_SETTING_KEY_UNSPECIFIED = 0;
|
|
||||||
*/
|
|
||||||
WORKSPACE_SETTING_KEY_UNSPECIFIED = 0,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The secret session key used to encrypt session data.
|
|
||||||
*
|
|
||||||
* @generated from enum value: WORKSPACE_SETTING_SECRET_SESSION = 1;
|
|
||||||
*/
|
|
||||||
WORKSPACE_SETTING_SECRET_SESSION = 1,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether to enable other users to sign up.
|
|
||||||
*
|
|
||||||
* @generated from enum value: WORKSAPCE_SETTING_ENABLE_SIGNUP = 2;
|
|
||||||
*/
|
|
||||||
WORKSAPCE_SETTING_ENABLE_SIGNUP = 2,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The relative path of the resource directory.
|
|
||||||
*
|
|
||||||
* @generated from enum value: WORKSPACE_SETTING_RESOURCE_RELATIVE_PATH = 3;
|
|
||||||
*/
|
|
||||||
WORKSPACE_SETTING_RESOURCE_RELATIVE_PATH = 3,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The auto backup setting.
|
|
||||||
*
|
|
||||||
* @generated from enum value: WORKSPACE_SETTING_AUTO_BACKUP = 4;
|
|
||||||
*/
|
|
||||||
WORKSPACE_SETTING_AUTO_BACKUP = 4,
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.WorkspaceSetting
|
|
||||||
*/
|
|
||||||
export declare class WorkspaceSetting extends Message<WorkspaceSetting> {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.store.WorkspaceSettingKey key = 1;
|
|
||||||
*/
|
|
||||||
key: WorkspaceSettingKey;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from oneof slash.store.WorkspaceSetting.value
|
|
||||||
*/
|
|
||||||
value: {
|
|
||||||
/**
|
|
||||||
* @generated from field: string secret_session = 2;
|
|
||||||
*/
|
|
||||||
value: string;
|
|
||||||
case: "secretSession";
|
|
||||||
} | {
|
|
||||||
/**
|
|
||||||
* @generated from field: bool enable_signup = 3;
|
|
||||||
*/
|
|
||||||
value: boolean;
|
|
||||||
case: "enableSignup";
|
|
||||||
} | {
|
|
||||||
/**
|
|
||||||
* @generated from field: string resource_relative_path = 4;
|
|
||||||
*/
|
|
||||||
value: string;
|
|
||||||
case: "resourceRelativePath";
|
|
||||||
} | {
|
|
||||||
/**
|
|
||||||
* @generated from field: slash.store.AutoBackupWorkspaceSetting auto_backup = 5;
|
|
||||||
*/
|
|
||||||
value: AutoBackupWorkspaceSetting;
|
|
||||||
case: "autoBackup";
|
|
||||||
} | { case: undefined; value?: undefined };
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<WorkspaceSetting>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.store.WorkspaceSetting";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkspaceSetting;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkspaceSetting;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkspaceSetting;
|
|
||||||
|
|
||||||
static equals(a: WorkspaceSetting | PlainMessage<WorkspaceSetting> | undefined, b: WorkspaceSetting | PlainMessage<WorkspaceSetting> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.AutoBackupWorkspaceSetting
|
|
||||||
*/
|
|
||||||
export declare class AutoBackupWorkspaceSetting extends Message<AutoBackupWorkspaceSetting> {
|
|
||||||
/**
|
|
||||||
* Whether auto backup is enabled.
|
|
||||||
*
|
|
||||||
* @generated from field: bool enabled = 1;
|
|
||||||
*/
|
|
||||||
enabled: boolean;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The cron expression for auto backup.
|
|
||||||
* For example, "0 0 0 * * *" means backup at 00:00:00 every day.
|
|
||||||
* See https://en.wikipedia.org/wiki/Cron for more details.
|
|
||||||
*
|
|
||||||
* @generated from field: string cron_expression = 2;
|
|
||||||
*/
|
|
||||||
cronExpression: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The maximum number of backups to keep.
|
|
||||||
*
|
|
||||||
* @generated from field: int32 max_keep = 3;
|
|
||||||
*/
|
|
||||||
maxKeep: number;
|
|
||||||
|
|
||||||
constructor(data?: PartialMessage<AutoBackupWorkspaceSetting>);
|
|
||||||
|
|
||||||
static readonly runtime: typeof proto3;
|
|
||||||
static readonly typeName = "slash.store.AutoBackupWorkspaceSetting";
|
|
||||||
static readonly fields: FieldList;
|
|
||||||
|
|
||||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AutoBackupWorkspaceSetting;
|
|
||||||
|
|
||||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AutoBackupWorkspaceSetting;
|
|
||||||
|
|
||||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AutoBackupWorkspaceSetting;
|
|
||||||
|
|
||||||
static equals(a: AutoBackupWorkspaceSetting | PlainMessage<AutoBackupWorkspaceSetting> | undefined, b: AutoBackupWorkspaceSetting | PlainMessage<AutoBackupWorkspaceSetting> | undefined): boolean;
|
|
||||||
}
|
|
||||||
|
|
@ -1,47 +0,0 @@
|
|||||||
// @generated by protoc-gen-es v1.3.0
|
|
||||||
// @generated from file store/workspace_setting.proto (package slash.store, syntax proto3)
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
import { proto3 } from "@bufbuild/protobuf";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from enum slash.store.WorkspaceSettingKey
|
|
||||||
*/
|
|
||||||
export const WorkspaceSettingKey = proto3.makeEnum(
|
|
||||||
"slash.store.WorkspaceSettingKey",
|
|
||||||
[
|
|
||||||
{no: 0, name: "WORKSPACE_SETTING_KEY_UNSPECIFIED"},
|
|
||||||
{no: 1, name: "WORKSPACE_SETTING_SECRET_SESSION"},
|
|
||||||
{no: 2, name: "WORKSAPCE_SETTING_ENABLE_SIGNUP"},
|
|
||||||
{no: 3, name: "WORKSPACE_SETTING_RESOURCE_RELATIVE_PATH"},
|
|
||||||
{no: 4, name: "WORKSPACE_SETTING_AUTO_BACKUP"},
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.WorkspaceSetting
|
|
||||||
*/
|
|
||||||
export const WorkspaceSetting = proto3.makeMessageType(
|
|
||||||
"slash.store.WorkspaceSetting",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "key", kind: "enum", T: proto3.getEnumType(WorkspaceSettingKey) },
|
|
||||||
{ no: 2, name: "secret_session", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "value" },
|
|
||||||
{ no: 3, name: "enable_signup", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "value" },
|
|
||||||
{ no: 4, name: "resource_relative_path", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "value" },
|
|
||||||
{ no: 5, name: "auto_backup", kind: "message", T: AutoBackupWorkspaceSetting, oneof: "value" },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @generated from message slash.store.AutoBackupWorkspaceSetting
|
|
||||||
*/
|
|
||||||
export const AutoBackupWorkspaceSetting = proto3.makeMessageType(
|
|
||||||
"slash.store.AutoBackupWorkspaceSetting",
|
|
||||||
() => [
|
|
||||||
{ no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
||||||
{ no: 2, name: "cron_expression", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
||||||
{ no: 3, name: "max_keep", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
@ -19,11 +19,27 @@ plugins:
|
|||||||
opt:
|
opt:
|
||||||
- paths=source_relative
|
- paths=source_relative
|
||||||
# Generate types for the web client.
|
# Generate types for the web client.
|
||||||
- plugin: buf.build/bufbuild/es:v1.3.0
|
- plugin: buf.build/community/stephenh-ts-proto:v1.152.1
|
||||||
out: ../frontend/web/src/types/proto
|
out: ../frontend/web/src/types/proto
|
||||||
|
# reference: https://github.com/deeplay-io/nice-grpc/blob/master/packages/nice-grpc-web/README.md#using-ts-proto
|
||||||
|
opt:
|
||||||
|
- env=browser
|
||||||
|
- useOptionals=messages
|
||||||
|
- outputServices=generic-definitions
|
||||||
|
- outputJsonMethods=false
|
||||||
|
- useExactTypes=false
|
||||||
|
- esModuleInterop=true
|
||||||
# Generate types for the extension client.
|
# Generate types for the extension client.
|
||||||
- plugin: buf.build/bufbuild/es:v1.3.0
|
- plugin: buf.build/community/stephenh-ts-proto:v1.152.1
|
||||||
out: ../frontend/extension/src/types/proto
|
out: ../frontend/extension/src/types/proto
|
||||||
|
# reference: https://github.com/deeplay-io/nice-grpc/blob/master/packages/nice-grpc-web/README.md#using-ts-proto
|
||||||
|
opt:
|
||||||
|
- env=browser
|
||||||
|
- useOptionals=messages
|
||||||
|
- outputServices=generic-definitions
|
||||||
|
- outputJsonMethods=false
|
||||||
|
- useExactTypes=false
|
||||||
|
- esModuleInterop=true
|
||||||
- plugin: buf.build/community/pseudomuto-doc:v1.5.1
|
- plugin: buf.build/community/pseudomuto-doc:v1.5.1
|
||||||
out: gen
|
out: gen
|
||||||
opt:
|
opt:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user