gomtm 0.0.236 → 0.0.237
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/components/MtmInstallScript.js +3 -2
- package/dist/esm/curd/mutationButton.d.ts +7 -0
- package/dist/esm/curd/mutationButton.js +14 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/gitproject.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/gitproject.js +0 -0
- package/dist/esm/gomtmpb/mtm/sppb/conf_pb.d.ts +4 -13
- package/dist/esm/gomtmpb/mtm/sppb/conf_pb.js +41 -51
- package/dist/esm/gomtmpb/mtm/sppb/git-GitService_connectquery.d.ts +63 -0
- package/dist/esm/gomtmpb/mtm/sppb/git-GitService_connectquery.js +71 -0
- package/dist/esm/gomtmpb/mtm/sppb/git_connect.d.ts +44 -0
- package/dist/esm/gomtmpb/mtm/sppb/git_connect.js +67 -0
- package/dist/esm/gomtmpb/mtm/sppb/git_pb.d.ts +108 -0
- package/dist/esm/gomtmpb/mtm/sppb/git_pb.js +311 -0
- package/dist/esm/gomtmpb/mtm/sppb/gitproject-GitProjectService_connectquery.d.ts +12 -0
- package/dist/esm/gomtmpb/mtm/sppb/gitproject-GitProjectService_connectquery.js +15 -0
- package/dist/esm/gomtmpb/mtm/sppb/gitproject_connect.d.ts +13 -0
- package/dist/esm/gomtmpb/mtm/sppb/gitproject_connect.js +19 -0
- package/dist/esm/gomtmpb/mtm/sppb/gitproject_pb.d.ts +23 -0
- package/dist/esm/gomtmpb/mtm/sppb/gitproject_pb.js +67 -0
- package/dist/tsconfig.type.tsbuildinfo +1 -1
- package/package.json +3 -3
- /package/dist/esm/{mtmcore.d.ts → gomtmpb/descriptions/mtm/sppb/git.d.ts} +0 -0
- /package/dist/esm/{mtmcore.js → gomtmpb/descriptions/mtm/sppb/git.js} +0 -0
|
@@ -3,11 +3,12 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useSuspenseQuery } from "../connectquery";
|
|
4
4
|
import { getMeta } from "../gomtmpb/mtm/sppb/mtm-MtmService_connectquery";
|
|
5
5
|
const MtmInstallScript = (props) => {
|
|
6
|
-
var _a, _b;
|
|
6
|
+
var _a, _b, _c, _d;
|
|
7
7
|
const mtmMetaQuery = useSuspenseQuery(getMeta);
|
|
8
8
|
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { className: "bg-blue-300 p-2", children: [
|
|
9
9
|
"common bot : ",
|
|
10
|
-
`curl -sSL ${(_b = (_a = mtmMetaQuery.data) == null ? void 0 : _a.meta) == null ? void 0 : _b.publicUrl}/api/mtmbot/install | bash
|
|
10
|
+
`curl -sSL ${(_b = (_a = mtmMetaQuery.data) == null ? void 0 : _a.meta) == null ? void 0 : _b.publicUrl}/api/mtmbot/install | bash`,
|
|
11
|
+
/* @__PURE__ */ jsx("div", { children: `curl -sSL ${(_d = (_c = mtmMetaQuery.data) == null ? void 0 : _c.meta) == null ? void 0 : _d.publicUrl}/api/mtmbot/install/lepton | bash` })
|
|
11
12
|
] }) });
|
|
12
13
|
};
|
|
13
14
|
export {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Message, PartialMessage } from "@bufbuild/protobuf";
|
|
2
|
+
import { PropsWithChildren } from "react";
|
|
3
|
+
import { MethodUnaryDescriptor } from "../connectquery";
|
|
4
|
+
export declare function MutationButton<I extends Message<I>, O extends Message<O>>(props: {
|
|
5
|
+
methodSig: MethodUnaryDescriptor<I, O>;
|
|
6
|
+
params?: PartialMessage<I>;
|
|
7
|
+
} & PropsWithChildren): import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { MtButton } from "mtxuilib/ui/ui-mt/Button";
|
|
4
|
+
import { useMutation } from "../connectquery";
|
|
5
|
+
function MutationButton(props) {
|
|
6
|
+
const { children, methodSig, params } = props;
|
|
7
|
+
const mutation = useMutation(methodSig);
|
|
8
|
+
return /* @__PURE__ */ jsx(MtButton, { onClick: () => {
|
|
9
|
+
mutation.mutateAsync(params || {});
|
|
10
|
+
}, children });
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
MutationButton
|
|
14
|
+
};
|
|
File without changes
|
|
File without changes
|
|
@@ -4,9 +4,12 @@ import { Paging } from "./mtm_pb";
|
|
|
4
4
|
export declare class Config extends Message<Config> {
|
|
5
5
|
secret: string;
|
|
6
6
|
disableWorker: boolean;
|
|
7
|
+
profile: string;
|
|
8
|
+
bootstraps: string[];
|
|
9
|
+
mainDomain: string;
|
|
10
|
+
botType: string;
|
|
7
11
|
mq?: ConfigMq;
|
|
8
12
|
db?: ConfigDB;
|
|
9
|
-
bot?: ConfigBot;
|
|
10
13
|
server?: ConfigServer;
|
|
11
14
|
otel?: ConfigOtel;
|
|
12
15
|
mtg?: ConfigMtg;
|
|
@@ -164,18 +167,6 @@ export declare class ConfigMq extends Message<ConfigMq> {
|
|
|
164
167
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConfigMq;
|
|
165
168
|
static equals(a: ConfigMq | PlainMessage<ConfigMq> | undefined, b: ConfigMq | PlainMessage<ConfigMq> | undefined): boolean;
|
|
166
169
|
}
|
|
167
|
-
export declare class ConfigBot extends Message<ConfigBot> {
|
|
168
|
-
enabled: boolean;
|
|
169
|
-
bootstraps: string[];
|
|
170
|
-
constructor(data?: PartialMessage<ConfigBot>);
|
|
171
|
-
static readonly runtime: typeof proto3;
|
|
172
|
-
static readonly typeName = "sppb.ConfigBot";
|
|
173
|
-
static readonly fields: FieldList;
|
|
174
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConfigBot;
|
|
175
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConfigBot;
|
|
176
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConfigBot;
|
|
177
|
-
static equals(a: ConfigBot | PlainMessage<ConfigBot> | undefined, b: ConfigBot | PlainMessage<ConfigBot> | undefined): boolean;
|
|
178
|
-
}
|
|
179
170
|
export declare class ConfigLog extends Message<ConfigLog> {
|
|
180
171
|
level: string;
|
|
181
172
|
lokiPushUrl: string;
|
|
@@ -19,6 +19,24 @@ const _Config = class _Config extends Message {
|
|
|
19
19
|
* @generated from field: bool disable_worker = 31;
|
|
20
20
|
*/
|
|
21
21
|
__publicField(this, "disableWorker", false);
|
|
22
|
+
/**
|
|
23
|
+
* @generated from field: string profile = 32;
|
|
24
|
+
*/
|
|
25
|
+
__publicField(this, "profile", "");
|
|
26
|
+
/**
|
|
27
|
+
* @gotags: yaml:"bootstraps,omitempty"
|
|
28
|
+
*
|
|
29
|
+
* @generated from field: repeated string bootstraps = 33;
|
|
30
|
+
*/
|
|
31
|
+
__publicField(this, "bootstraps", []);
|
|
32
|
+
/**
|
|
33
|
+
* @generated from field: string main_domain = 34;
|
|
34
|
+
*/
|
|
35
|
+
__publicField(this, "mainDomain", "");
|
|
36
|
+
/**
|
|
37
|
+
* @generated from field: string bot_type = 35;
|
|
38
|
+
*/
|
|
39
|
+
__publicField(this, "botType", "");
|
|
22
40
|
/**
|
|
23
41
|
* @gotags: yaml:"mq,omitempty"
|
|
24
42
|
*
|
|
@@ -33,13 +51,8 @@ const _Config = class _Config extends Message {
|
|
|
33
51
|
__publicField(this, "db");
|
|
34
52
|
/**
|
|
35
53
|
* 应该过时了。
|
|
54
|
+
* ConfigBot bot = 4; // @gotags: yaml:"bot,omitempty"
|
|
36
55
|
*
|
|
37
|
-
* @gotags: yaml:"bot,omitempty"
|
|
38
|
-
*
|
|
39
|
-
* @generated from field: sppb.ConfigBot bot = 4;
|
|
40
|
-
*/
|
|
41
|
-
__publicField(this, "bot");
|
|
42
|
-
/**
|
|
43
56
|
* @gotags: yaml:"server,omitempty"
|
|
44
57
|
*
|
|
45
58
|
* @generated from field: sppb.ConfigServer server = 5;
|
|
@@ -181,9 +194,30 @@ __publicField(_Config, "fields", proto3.util.newFieldList(() => [
|
|
|
181
194
|
T: 8
|
|
182
195
|
/* ScalarType.BOOL */
|
|
183
196
|
},
|
|
197
|
+
{
|
|
198
|
+
no: 32,
|
|
199
|
+
name: "profile",
|
|
200
|
+
kind: "scalar",
|
|
201
|
+
T: 9
|
|
202
|
+
/* ScalarType.STRING */
|
|
203
|
+
},
|
|
204
|
+
{ no: 33, name: "bootstraps", kind: "scalar", T: 9, repeated: true },
|
|
205
|
+
{
|
|
206
|
+
no: 34,
|
|
207
|
+
name: "main_domain",
|
|
208
|
+
kind: "scalar",
|
|
209
|
+
T: 9
|
|
210
|
+
/* ScalarType.STRING */
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
no: 35,
|
|
214
|
+
name: "bot_type",
|
|
215
|
+
kind: "scalar",
|
|
216
|
+
T: 9
|
|
217
|
+
/* ScalarType.STRING */
|
|
218
|
+
},
|
|
184
219
|
{ no: 2, name: "mq", kind: "message", T: ConfigMq },
|
|
185
220
|
{ no: 3, name: "db", kind: "message", T: ConfigDB },
|
|
186
|
-
{ no: 4, name: "bot", kind: "message", T: ConfigBot },
|
|
187
221
|
{ no: 5, name: "server", kind: "message", T: ConfigServer },
|
|
188
222
|
{ no: 6, name: "otel", kind: "message", T: ConfigOtel },
|
|
189
223
|
{ no: 7, name: "mtg", kind: "message", T: ConfigMtg },
|
|
@@ -890,49 +924,6 @@ __publicField(_ConfigMq, "fields", proto3.util.newFieldList(() => [
|
|
|
890
924
|
}
|
|
891
925
|
]));
|
|
892
926
|
let ConfigMq = _ConfigMq;
|
|
893
|
-
const _ConfigBot = class _ConfigBot extends Message {
|
|
894
|
-
constructor(data) {
|
|
895
|
-
super();
|
|
896
|
-
/**
|
|
897
|
-
* @gotags: yaml:"enabled,omitempty"
|
|
898
|
-
*
|
|
899
|
-
* @generated from field: bool enabled = 1;
|
|
900
|
-
*/
|
|
901
|
-
__publicField(this, "enabled", false);
|
|
902
|
-
/**
|
|
903
|
-
* @gotags: yaml:"bootstraps,omitempty"
|
|
904
|
-
*
|
|
905
|
-
* @generated from field: repeated string bootstraps = 2;
|
|
906
|
-
*/
|
|
907
|
-
__publicField(this, "bootstraps", []);
|
|
908
|
-
proto3.util.initPartial(data, this);
|
|
909
|
-
}
|
|
910
|
-
static fromBinary(bytes, options) {
|
|
911
|
-
return new _ConfigBot().fromBinary(bytes, options);
|
|
912
|
-
}
|
|
913
|
-
static fromJson(jsonValue, options) {
|
|
914
|
-
return new _ConfigBot().fromJson(jsonValue, options);
|
|
915
|
-
}
|
|
916
|
-
static fromJsonString(jsonString, options) {
|
|
917
|
-
return new _ConfigBot().fromJsonString(jsonString, options);
|
|
918
|
-
}
|
|
919
|
-
static equals(a, b) {
|
|
920
|
-
return proto3.util.equals(_ConfigBot, a, b);
|
|
921
|
-
}
|
|
922
|
-
};
|
|
923
|
-
__publicField(_ConfigBot, "runtime", proto3);
|
|
924
|
-
__publicField(_ConfigBot, "typeName", "sppb.ConfigBot");
|
|
925
|
-
__publicField(_ConfigBot, "fields", proto3.util.newFieldList(() => [
|
|
926
|
-
{
|
|
927
|
-
no: 1,
|
|
928
|
-
name: "enabled",
|
|
929
|
-
kind: "scalar",
|
|
930
|
-
T: 8
|
|
931
|
-
/* ScalarType.BOOL */
|
|
932
|
-
},
|
|
933
|
-
{ no: 2, name: "bootstraps", kind: "scalar", T: 9, repeated: true }
|
|
934
|
-
]));
|
|
935
|
-
let ConfigBot = _ConfigBot;
|
|
936
927
|
const _ConfigLog = class _ConfigLog extends Message {
|
|
937
928
|
constructor(data) {
|
|
938
929
|
super();
|
|
@@ -2342,7 +2333,6 @@ export {
|
|
|
2342
2333
|
ConfUpdateReq,
|
|
2343
2334
|
Config,
|
|
2344
2335
|
ConfigAuth,
|
|
2345
|
-
ConfigBot,
|
|
2346
2336
|
ConfigCronjob,
|
|
2347
2337
|
ConfigDB,
|
|
2348
2338
|
ConfigGithub,
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
+
import { CommontListReq, CommontListRes } from "./mtm_pb";
|
|
3
|
+
import { GitGetReq, GitInfo, GitPullReq, GitPullRes, GitSetupReq, GitSetupRes, GitStartReq, GitStartRes, GitStopReq, GitStopRes } from "./git_pb";
|
|
4
|
+
export declare const gitList: {
|
|
5
|
+
readonly localName: "gitList";
|
|
6
|
+
readonly name: "GitList";
|
|
7
|
+
readonly kind: MethodKind.Unary;
|
|
8
|
+
readonly I: typeof CommontListReq;
|
|
9
|
+
readonly O: typeof CommontListRes;
|
|
10
|
+
readonly service: {
|
|
11
|
+
readonly typeName: "sppb.GitService";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare const gitGet: {
|
|
15
|
+
readonly localName: "gitGet";
|
|
16
|
+
readonly name: "GitGet";
|
|
17
|
+
readonly kind: MethodKind.Unary;
|
|
18
|
+
readonly I: typeof GitGetReq;
|
|
19
|
+
readonly O: typeof GitInfo;
|
|
20
|
+
readonly service: {
|
|
21
|
+
readonly typeName: "sppb.GitService";
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare const gitPull: {
|
|
25
|
+
readonly localName: "gitPull";
|
|
26
|
+
readonly name: "GitPull";
|
|
27
|
+
readonly kind: MethodKind.Unary;
|
|
28
|
+
readonly I: typeof GitPullReq;
|
|
29
|
+
readonly O: typeof GitPullRes;
|
|
30
|
+
readonly service: {
|
|
31
|
+
readonly typeName: "sppb.GitService";
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export declare const gitSetup: {
|
|
35
|
+
readonly localName: "gitSetup";
|
|
36
|
+
readonly name: "GitSetup";
|
|
37
|
+
readonly kind: MethodKind.Unary;
|
|
38
|
+
readonly I: typeof GitSetupReq;
|
|
39
|
+
readonly O: typeof GitSetupRes;
|
|
40
|
+
readonly service: {
|
|
41
|
+
readonly typeName: "sppb.GitService";
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export declare const gitStart: {
|
|
45
|
+
readonly localName: "gitStart";
|
|
46
|
+
readonly name: "GitStart";
|
|
47
|
+
readonly kind: MethodKind.Unary;
|
|
48
|
+
readonly I: typeof GitStartReq;
|
|
49
|
+
readonly O: typeof GitStartRes;
|
|
50
|
+
readonly service: {
|
|
51
|
+
readonly typeName: "sppb.GitService";
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export declare const gitStop: {
|
|
55
|
+
readonly localName: "gitStop";
|
|
56
|
+
readonly name: "GitStop";
|
|
57
|
+
readonly kind: MethodKind.Unary;
|
|
58
|
+
readonly I: typeof GitStopReq;
|
|
59
|
+
readonly O: typeof GitStopRes;
|
|
60
|
+
readonly service: {
|
|
61
|
+
readonly typeName: "sppb.GitService";
|
|
62
|
+
};
|
|
63
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
+
import { CommontListReq, CommontListRes } from "./mtm_pb";
|
|
3
|
+
import { GitGetReq, GitInfo, GitPullReq, GitPullRes, GitSetupReq, GitSetupRes, GitStartReq, GitStartRes, GitStopReq, GitStopRes } from "./git_pb";
|
|
4
|
+
const gitList = {
|
|
5
|
+
localName: "gitList",
|
|
6
|
+
name: "GitList",
|
|
7
|
+
kind: MethodKind.Unary,
|
|
8
|
+
I: CommontListReq,
|
|
9
|
+
O: CommontListRes,
|
|
10
|
+
service: {
|
|
11
|
+
typeName: "sppb.GitService"
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
const gitGet = {
|
|
15
|
+
localName: "gitGet",
|
|
16
|
+
name: "GitGet",
|
|
17
|
+
kind: MethodKind.Unary,
|
|
18
|
+
I: GitGetReq,
|
|
19
|
+
O: GitInfo,
|
|
20
|
+
service: {
|
|
21
|
+
typeName: "sppb.GitService"
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
const gitPull = {
|
|
25
|
+
localName: "gitPull",
|
|
26
|
+
name: "GitPull",
|
|
27
|
+
kind: MethodKind.Unary,
|
|
28
|
+
I: GitPullReq,
|
|
29
|
+
O: GitPullRes,
|
|
30
|
+
service: {
|
|
31
|
+
typeName: "sppb.GitService"
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
const gitSetup = {
|
|
35
|
+
localName: "gitSetup",
|
|
36
|
+
name: "GitSetup",
|
|
37
|
+
kind: MethodKind.Unary,
|
|
38
|
+
I: GitSetupReq,
|
|
39
|
+
O: GitSetupRes,
|
|
40
|
+
service: {
|
|
41
|
+
typeName: "sppb.GitService"
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
const gitStart = {
|
|
45
|
+
localName: "gitStart",
|
|
46
|
+
name: "GitStart",
|
|
47
|
+
kind: MethodKind.Unary,
|
|
48
|
+
I: GitStartReq,
|
|
49
|
+
O: GitStartRes,
|
|
50
|
+
service: {
|
|
51
|
+
typeName: "sppb.GitService"
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
const gitStop = {
|
|
55
|
+
localName: "gitStop",
|
|
56
|
+
name: "GitStop",
|
|
57
|
+
kind: MethodKind.Unary,
|
|
58
|
+
I: GitStopReq,
|
|
59
|
+
O: GitStopRes,
|
|
60
|
+
service: {
|
|
61
|
+
typeName: "sppb.GitService"
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
export {
|
|
65
|
+
gitGet,
|
|
66
|
+
gitList,
|
|
67
|
+
gitPull,
|
|
68
|
+
gitSetup,
|
|
69
|
+
gitStart,
|
|
70
|
+
gitStop
|
|
71
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { CommontListReq, CommontListRes } from "./mtm_pb";
|
|
2
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
|
+
import { GitGetReq, GitInfo, GitPullReq, GitPullRes, GitSetupReq, GitSetupRes, GitStartReq, GitStartRes, GitStopReq, GitStopRes } from "./git_pb";
|
|
4
|
+
export declare const GitService: {
|
|
5
|
+
readonly typeName: "sppb.GitService";
|
|
6
|
+
readonly methods: {
|
|
7
|
+
readonly gitList: {
|
|
8
|
+
readonly name: "GitList";
|
|
9
|
+
readonly I: typeof CommontListReq;
|
|
10
|
+
readonly O: typeof CommontListRes;
|
|
11
|
+
readonly kind: MethodKind.Unary;
|
|
12
|
+
};
|
|
13
|
+
readonly gitGet: {
|
|
14
|
+
readonly name: "GitGet";
|
|
15
|
+
readonly I: typeof GitGetReq;
|
|
16
|
+
readonly O: typeof GitInfo;
|
|
17
|
+
readonly kind: MethodKind.Unary;
|
|
18
|
+
};
|
|
19
|
+
readonly gitPull: {
|
|
20
|
+
readonly name: "GitPull";
|
|
21
|
+
readonly I: typeof GitPullReq;
|
|
22
|
+
readonly O: typeof GitPullRes;
|
|
23
|
+
readonly kind: MethodKind.Unary;
|
|
24
|
+
};
|
|
25
|
+
readonly gitSetup: {
|
|
26
|
+
readonly name: "GitSetup";
|
|
27
|
+
readonly I: typeof GitSetupReq;
|
|
28
|
+
readonly O: typeof GitSetupRes;
|
|
29
|
+
readonly kind: MethodKind.Unary;
|
|
30
|
+
};
|
|
31
|
+
readonly gitStart: {
|
|
32
|
+
readonly name: "GitStart";
|
|
33
|
+
readonly I: typeof GitStartReq;
|
|
34
|
+
readonly O: typeof GitStartRes;
|
|
35
|
+
readonly kind: MethodKind.Unary;
|
|
36
|
+
};
|
|
37
|
+
readonly gitStop: {
|
|
38
|
+
readonly name: "GitStop";
|
|
39
|
+
readonly I: typeof GitStopReq;
|
|
40
|
+
readonly O: typeof GitStopRes;
|
|
41
|
+
readonly kind: MethodKind.Unary;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { CommontListReq, CommontListRes } from "./mtm_pb";
|
|
2
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
|
+
import { GitGetReq, GitInfo, GitPullReq, GitPullRes, GitSetupReq, GitSetupRes, GitStartReq, GitStartRes, GitStopReq, GitStopRes } from "./git_pb";
|
|
4
|
+
const GitService = {
|
|
5
|
+
typeName: "sppb.GitService",
|
|
6
|
+
methods: {
|
|
7
|
+
/**
|
|
8
|
+
* 列出git项目
|
|
9
|
+
*
|
|
10
|
+
* @generated from rpc sppb.GitService.GitList
|
|
11
|
+
*/
|
|
12
|
+
gitList: {
|
|
13
|
+
name: "GitList",
|
|
14
|
+
I: CommontListReq,
|
|
15
|
+
O: CommontListRes,
|
|
16
|
+
kind: MethodKind.Unary
|
|
17
|
+
},
|
|
18
|
+
/**
|
|
19
|
+
* @generated from rpc sppb.GitService.GitGet
|
|
20
|
+
*/
|
|
21
|
+
gitGet: {
|
|
22
|
+
name: "GitGet",
|
|
23
|
+
I: GitGetReq,
|
|
24
|
+
O: GitInfo,
|
|
25
|
+
kind: MethodKind.Unary
|
|
26
|
+
},
|
|
27
|
+
/**
|
|
28
|
+
* @generated from rpc sppb.GitService.GitPull
|
|
29
|
+
*/
|
|
30
|
+
gitPull: {
|
|
31
|
+
name: "GitPull",
|
|
32
|
+
I: GitPullReq,
|
|
33
|
+
O: GitPullRes,
|
|
34
|
+
kind: MethodKind.Unary
|
|
35
|
+
},
|
|
36
|
+
/**
|
|
37
|
+
* @generated from rpc sppb.GitService.GitSetup
|
|
38
|
+
*/
|
|
39
|
+
gitSetup: {
|
|
40
|
+
name: "GitSetup",
|
|
41
|
+
I: GitSetupReq,
|
|
42
|
+
O: GitSetupRes,
|
|
43
|
+
kind: MethodKind.Unary
|
|
44
|
+
},
|
|
45
|
+
/**
|
|
46
|
+
* @generated from rpc sppb.GitService.GitStart
|
|
47
|
+
*/
|
|
48
|
+
gitStart: {
|
|
49
|
+
name: "GitStart",
|
|
50
|
+
I: GitStartReq,
|
|
51
|
+
O: GitStartRes,
|
|
52
|
+
kind: MethodKind.Unary
|
|
53
|
+
},
|
|
54
|
+
/**
|
|
55
|
+
* @generated from rpc sppb.GitService.GitStop
|
|
56
|
+
*/
|
|
57
|
+
gitStop: {
|
|
58
|
+
name: "GitStop",
|
|
59
|
+
I: GitStopReq,
|
|
60
|
+
O: GitStopRes,
|
|
61
|
+
kind: MethodKind.Unary
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
export {
|
|
66
|
+
GitService
|
|
67
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
+
export declare class GitPullReq extends Message<GitPullReq> {
|
|
4
|
+
id: string;
|
|
5
|
+
constructor(data?: PartialMessage<GitPullReq>);
|
|
6
|
+
static readonly runtime: typeof proto3;
|
|
7
|
+
static readonly typeName = "sppb.GitPullReq";
|
|
8
|
+
static readonly fields: FieldList;
|
|
9
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GitPullReq;
|
|
10
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GitPullReq;
|
|
11
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GitPullReq;
|
|
12
|
+
static equals(a: GitPullReq | PlainMessage<GitPullReq> | undefined, b: GitPullReq | PlainMessage<GitPullReq> | undefined): boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare class GitSetupReq extends Message<GitSetupReq> {
|
|
15
|
+
id: string;
|
|
16
|
+
constructor(data?: PartialMessage<GitSetupReq>);
|
|
17
|
+
static readonly runtime: typeof proto3;
|
|
18
|
+
static readonly typeName = "sppb.GitSetupReq";
|
|
19
|
+
static readonly fields: FieldList;
|
|
20
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GitSetupReq;
|
|
21
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GitSetupReq;
|
|
22
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GitSetupReq;
|
|
23
|
+
static equals(a: GitSetupReq | PlainMessage<GitSetupReq> | undefined, b: GitSetupReq | PlainMessage<GitSetupReq> | undefined): boolean;
|
|
24
|
+
}
|
|
25
|
+
export declare class GitSetupRes extends Message<GitSetupRes> {
|
|
26
|
+
constructor(data?: PartialMessage<GitSetupRes>);
|
|
27
|
+
static readonly runtime: typeof proto3;
|
|
28
|
+
static readonly typeName = "sppb.GitSetupRes";
|
|
29
|
+
static readonly fields: FieldList;
|
|
30
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GitSetupRes;
|
|
31
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GitSetupRes;
|
|
32
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GitSetupRes;
|
|
33
|
+
static equals(a: GitSetupRes | PlainMessage<GitSetupRes> | undefined, b: GitSetupRes | PlainMessage<GitSetupRes> | undefined): boolean;
|
|
34
|
+
}
|
|
35
|
+
export declare class GitPullRes extends Message<GitPullRes> {
|
|
36
|
+
constructor(data?: PartialMessage<GitPullRes>);
|
|
37
|
+
static readonly runtime: typeof proto3;
|
|
38
|
+
static readonly typeName = "sppb.GitPullRes";
|
|
39
|
+
static readonly fields: FieldList;
|
|
40
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GitPullRes;
|
|
41
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GitPullRes;
|
|
42
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GitPullRes;
|
|
43
|
+
static equals(a: GitPullRes | PlainMessage<GitPullRes> | undefined, b: GitPullRes | PlainMessage<GitPullRes> | undefined): boolean;
|
|
44
|
+
}
|
|
45
|
+
export declare class GitGetReq extends Message<GitGetReq> {
|
|
46
|
+
slugs: string;
|
|
47
|
+
constructor(data?: PartialMessage<GitGetReq>);
|
|
48
|
+
static readonly runtime: typeof proto3;
|
|
49
|
+
static readonly typeName = "sppb.GitGetReq";
|
|
50
|
+
static readonly fields: FieldList;
|
|
51
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GitGetReq;
|
|
52
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GitGetReq;
|
|
53
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GitGetReq;
|
|
54
|
+
static equals(a: GitGetReq | PlainMessage<GitGetReq> | undefined, b: GitGetReq | PlainMessage<GitGetReq> | undefined): boolean;
|
|
55
|
+
}
|
|
56
|
+
export declare class GitInfo extends Message<GitInfo> {
|
|
57
|
+
id: string;
|
|
58
|
+
constructor(data?: PartialMessage<GitInfo>);
|
|
59
|
+
static readonly runtime: typeof proto3;
|
|
60
|
+
static readonly typeName = "sppb.GitInfo";
|
|
61
|
+
static readonly fields: FieldList;
|
|
62
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GitInfo;
|
|
63
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GitInfo;
|
|
64
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GitInfo;
|
|
65
|
+
static equals(a: GitInfo | PlainMessage<GitInfo> | undefined, b: GitInfo | PlainMessage<GitInfo> | undefined): boolean;
|
|
66
|
+
}
|
|
67
|
+
export declare class GitStartReq extends Message<GitStartReq> {
|
|
68
|
+
id: string;
|
|
69
|
+
constructor(data?: PartialMessage<GitStartReq>);
|
|
70
|
+
static readonly runtime: typeof proto3;
|
|
71
|
+
static readonly typeName = "sppb.GitStartReq";
|
|
72
|
+
static readonly fields: FieldList;
|
|
73
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GitStartReq;
|
|
74
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GitStartReq;
|
|
75
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GitStartReq;
|
|
76
|
+
static equals(a: GitStartReq | PlainMessage<GitStartReq> | undefined, b: GitStartReq | PlainMessage<GitStartReq> | undefined): boolean;
|
|
77
|
+
}
|
|
78
|
+
export declare class GitStartRes extends Message<GitStartRes> {
|
|
79
|
+
constructor(data?: PartialMessage<GitStartRes>);
|
|
80
|
+
static readonly runtime: typeof proto3;
|
|
81
|
+
static readonly typeName = "sppb.GitStartRes";
|
|
82
|
+
static readonly fields: FieldList;
|
|
83
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GitStartRes;
|
|
84
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GitStartRes;
|
|
85
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GitStartRes;
|
|
86
|
+
static equals(a: GitStartRes | PlainMessage<GitStartRes> | undefined, b: GitStartRes | PlainMessage<GitStartRes> | undefined): boolean;
|
|
87
|
+
}
|
|
88
|
+
export declare class GitStopReq extends Message<GitStopReq> {
|
|
89
|
+
id: string;
|
|
90
|
+
constructor(data?: PartialMessage<GitStopReq>);
|
|
91
|
+
static readonly runtime: typeof proto3;
|
|
92
|
+
static readonly typeName = "sppb.GitStopReq";
|
|
93
|
+
static readonly fields: FieldList;
|
|
94
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GitStopReq;
|
|
95
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GitStopReq;
|
|
96
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GitStopReq;
|
|
97
|
+
static equals(a: GitStopReq | PlainMessage<GitStopReq> | undefined, b: GitStopReq | PlainMessage<GitStopReq> | undefined): boolean;
|
|
98
|
+
}
|
|
99
|
+
export declare class GitStopRes extends Message<GitStopRes> {
|
|
100
|
+
constructor(data?: PartialMessage<GitStopRes>);
|
|
101
|
+
static readonly runtime: typeof proto3;
|
|
102
|
+
static readonly typeName = "sppb.GitStopRes";
|
|
103
|
+
static readonly fields: FieldList;
|
|
104
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GitStopRes;
|
|
105
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GitStopRes;
|
|
106
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GitStopRes;
|
|
107
|
+
static equals(a: GitStopRes | PlainMessage<GitStopRes> | undefined, b: GitStopRes | PlainMessage<GitStopRes> | undefined): boolean;
|
|
108
|
+
}
|