@whyour/qinglong 2.19.1-0 → 2.19.2-0
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/back/protos/api.proto +123 -8
- package/package.json +1 -1
- package/sample/config.sample.sh +8 -0
- package/sample/notify.js +15 -1
- package/sample/notify.py +12 -1
- package/shell/preload/sitecustomize.js +2 -4
- package/shell/preload/sitecustomize.py +2 -4
- package/shell/pub.sh +4 -8
- package/static/build/api/system.js +20 -2
- package/static/build/app.js +131 -26
- package/static/build/config/const.js +24 -1
- package/static/build/config/index.js +4 -3
- package/static/build/data/notify.js +4 -0
- package/static/build/protos/api.js +1374 -70
- package/static/build/schedule/api.js +5 -1
- package/static/build/services/dependence.js +4 -6
- package/static/build/services/notify.js +27 -6
- package/static/build/services/system.js +26 -4
- package/static/dist/2208.3bc521b1.async.js +1 -0
- package/static/dist/2995.2eb218b3.async.js +1 -0
- package/static/dist/540.481d4708.async.js +1 -0
- package/static/dist/5713.8519f547.async.js +1 -0
- package/static/dist/7355.b7c0562f.async.js +1 -0
- package/static/dist/786.59fc381c.async.js +1 -0
- package/static/dist/8826.3ab4ad84.async.js +1 -0
- package/static/dist/8851.503b1e64.async.js +1 -0
- package/static/dist/index.html +2 -2
- package/static/dist/layouts__index.8dcf1576.async.js +1 -0
- package/static/dist/preload_helper.0d173b72.js +1 -0
- package/static/dist/src__pages__crontab__detail.64ec3a2b.async.js +1 -0
- package/static/dist/{src__pages__crontab__index.679a169c.async.js → src__pages__crontab__index.74e7828f.async.js} +1 -1
- package/static/dist/src__pages__crontab__modal.21258e08.async.js +1 -0
- package/static/dist/src__pages__crontab__viewManageModal.c2724575.async.js +1 -0
- package/static/dist/src__pages__dependence__modal.6639424a.async.js +1 -0
- package/static/dist/src__pages__env__editNameModal.665393cd.async.js +1 -0
- package/static/dist/src__pages__env__index.70340ba7.async.js +1 -0
- package/static/dist/src__pages__env__modal.168498f9.async.js +1 -0
- package/static/dist/src__pages__error__index.d9beeda3.async.js +1 -0
- package/static/dist/src__pages__initialization__index.2403c031.async.js +1 -0
- package/static/dist/src__pages__script__editNameModal.e36cd111.async.js +1 -0
- package/static/dist/src__pages__script__index.82b42e11.async.js +1 -0
- package/static/dist/src__pages__script__renameModal.f9756f26.async.js +1 -0
- package/static/dist/src__pages__script__saveModal.e885e133.async.js +1 -0
- package/static/dist/src__pages__script__setting.8c2727b4.async.js +1 -0
- package/static/dist/src__pages__setting__appModal.5a39121e.async.js +1 -0
- package/static/dist/src__pages__setting__dependence.a46e873d.async.js +1 -0
- package/static/dist/src__pages__setting__index.32b260ce.async.js +1 -0
- package/static/dist/src__pages__setting__notification.299f6b96.async.js +1 -0
- package/static/dist/src__pages__setting__other.8b77afcd.async.js +1 -0
- package/static/dist/src__pages__setting__security.e7371daa.async.js +1 -0
- package/static/dist/src__pages__setting__systemLog.fc5bdc78.async.js +1 -0
- package/static/dist/src__pages__subscription__modal.a7fd6a3c.async.js +1 -0
- package/static/dist/{umi.1a9e58b8.js → umi.35a646c6.js} +1 -1
- package/version.yaml +9 -11
- package/static/dist/2208.4c5a62d1.async.js +0 -1
- package/static/dist/6439.7ef6c5e3.async.js +0 -1
- package/static/dist/7355.5e5e573b.async.js +0 -1
- package/static/dist/7528.d8b76d8a.async.js +0 -1
- package/static/dist/874.ae8edb1a.async.js +0 -1
- package/static/dist/8826.f18157b7.async.js +0 -1
- package/static/dist/8851.cf7e0ebc.async.js +0 -1
- package/static/dist/8982.d2dba153.async.js +0 -1
- package/static/dist/layouts__index.8451cde4.async.js +0 -1
- package/static/dist/preload_helper.aa612b58.js +0 -1
- package/static/dist/src__pages__crontab__detail.543910fb.async.js +0 -1
- package/static/dist/src__pages__crontab__modal.69adde20.async.js +0 -1
- package/static/dist/src__pages__crontab__viewManageModal.d1f69531.async.js +0 -1
- package/static/dist/src__pages__dependence__modal.53a4782a.async.js +0 -1
- package/static/dist/src__pages__env__editNameModal.7c6528e4.async.js +0 -1
- package/static/dist/src__pages__env__index.a31f3fe1.async.js +0 -1
- package/static/dist/src__pages__env__modal.b0dc95be.async.js +0 -1
- package/static/dist/src__pages__error__index.367a8c76.async.js +0 -1
- package/static/dist/src__pages__initialization__index.5bd471c5.async.js +0 -1
- package/static/dist/src__pages__script__editNameModal.fb125740.async.js +0 -1
- package/static/dist/src__pages__script__index.d834bef6.async.js +0 -1
- package/static/dist/src__pages__script__renameModal.e1bbbb50.async.js +0 -1
- package/static/dist/src__pages__script__saveModal.d4890228.async.js +0 -1
- package/static/dist/src__pages__script__setting.b3635f42.async.js +0 -1
- package/static/dist/src__pages__setting__appModal.0305916d.async.js +0 -1
- package/static/dist/src__pages__setting__dependence.95dd01e7.async.js +0 -1
- package/static/dist/src__pages__setting__index.c8d1ca47.async.js +0 -1
- package/static/dist/src__pages__setting__notification.989e57d6.async.js +0 -1
- package/static/dist/src__pages__setting__other.45f67bd2.async.js +0 -1
- package/static/dist/src__pages__setting__security.7623a492.async.js +0 -1
- package/static/dist/src__pages__setting__systemLog.2e8cc7a0.async.js +0 -1
- package/static/dist/src__pages__subscription__modal.46a69195.async.js +0 -1
|
@@ -5,11 +5,158 @@
|
|
|
5
5
|
// protoc v3.17.3
|
|
6
6
|
// source: back/protos/api.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.ApiClient = exports.ApiService = exports.CronDetailResponse = exports.CronDetailRequest = exports.CronResponse = exports.CronsResponse = exports.DeleteCronsRequest = exports.UpdateCronRequest = exports.CreateCronRequest = exports.CronItem = exports.ExtraScheduleItem = exports.
|
|
8
|
+
exports.ApiClient = exports.ApiService = exports.SystemNotifyRequest = exports.NotificationInfo = exports.CronDetailResponse = exports.CronDetailRequest = exports.CronResponse = exports.CronsResponse = exports.DeleteCronsRequest = exports.UpdateCronRequest = exports.CreateCronRequest = exports.CronItem = exports.ExtraScheduleItem = exports.Response = exports.EnvResponse = exports.EnvsResponse = exports.GetEnvByIdRequest = exports.UpdateEnvNamesRequest = exports.EnableEnvsRequest = exports.DisableEnvsRequest = exports.MoveEnvRequest = exports.DeleteEnvsRequest = exports.UpdateEnvRequest = exports.CreateEnvRequest = exports.GetEnvsRequest = exports.EnvItem = exports.notificationModeToJSON = exports.notificationModeFromJSON = exports.NotificationMode = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const grpc_js_1 = require("@grpc/grpc-js");
|
|
12
12
|
exports.protobufPackage = "com.ql.api";
|
|
13
|
+
var NotificationMode;
|
|
14
|
+
(function (NotificationMode) {
|
|
15
|
+
NotificationMode[NotificationMode["gotify"] = 0] = "gotify";
|
|
16
|
+
NotificationMode[NotificationMode["goCqHttpBot"] = 1] = "goCqHttpBot";
|
|
17
|
+
NotificationMode[NotificationMode["serverChan"] = 2] = "serverChan";
|
|
18
|
+
NotificationMode[NotificationMode["pushDeer"] = 3] = "pushDeer";
|
|
19
|
+
NotificationMode[NotificationMode["bark"] = 4] = "bark";
|
|
20
|
+
NotificationMode[NotificationMode["chat"] = 5] = "chat";
|
|
21
|
+
NotificationMode[NotificationMode["telegramBot"] = 6] = "telegramBot";
|
|
22
|
+
NotificationMode[NotificationMode["dingtalkBot"] = 7] = "dingtalkBot";
|
|
23
|
+
NotificationMode[NotificationMode["weWorkBot"] = 8] = "weWorkBot";
|
|
24
|
+
NotificationMode[NotificationMode["weWorkApp"] = 9] = "weWorkApp";
|
|
25
|
+
NotificationMode[NotificationMode["aibotk"] = 10] = "aibotk";
|
|
26
|
+
NotificationMode[NotificationMode["iGot"] = 11] = "iGot";
|
|
27
|
+
NotificationMode[NotificationMode["pushPlus"] = 12] = "pushPlus";
|
|
28
|
+
NotificationMode[NotificationMode["wePlusBot"] = 13] = "wePlusBot";
|
|
29
|
+
NotificationMode[NotificationMode["email"] = 14] = "email";
|
|
30
|
+
NotificationMode[NotificationMode["pushMe"] = 15] = "pushMe";
|
|
31
|
+
NotificationMode[NotificationMode["feishu"] = 16] = "feishu";
|
|
32
|
+
NotificationMode[NotificationMode["webhook"] = 17] = "webhook";
|
|
33
|
+
NotificationMode[NotificationMode["chronocat"] = 18] = "chronocat";
|
|
34
|
+
NotificationMode[NotificationMode["ntfy"] = 19] = "ntfy";
|
|
35
|
+
NotificationMode[NotificationMode["wxPusherBot"] = 20] = "wxPusherBot";
|
|
36
|
+
NotificationMode[NotificationMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
37
|
+
})(NotificationMode || (exports.NotificationMode = NotificationMode = {}));
|
|
38
|
+
function notificationModeFromJSON(object) {
|
|
39
|
+
switch (object) {
|
|
40
|
+
case 0:
|
|
41
|
+
case "gotify":
|
|
42
|
+
return NotificationMode.gotify;
|
|
43
|
+
case 1:
|
|
44
|
+
case "goCqHttpBot":
|
|
45
|
+
return NotificationMode.goCqHttpBot;
|
|
46
|
+
case 2:
|
|
47
|
+
case "serverChan":
|
|
48
|
+
return NotificationMode.serverChan;
|
|
49
|
+
case 3:
|
|
50
|
+
case "pushDeer":
|
|
51
|
+
return NotificationMode.pushDeer;
|
|
52
|
+
case 4:
|
|
53
|
+
case "bark":
|
|
54
|
+
return NotificationMode.bark;
|
|
55
|
+
case 5:
|
|
56
|
+
case "chat":
|
|
57
|
+
return NotificationMode.chat;
|
|
58
|
+
case 6:
|
|
59
|
+
case "telegramBot":
|
|
60
|
+
return NotificationMode.telegramBot;
|
|
61
|
+
case 7:
|
|
62
|
+
case "dingtalkBot":
|
|
63
|
+
return NotificationMode.dingtalkBot;
|
|
64
|
+
case 8:
|
|
65
|
+
case "weWorkBot":
|
|
66
|
+
return NotificationMode.weWorkBot;
|
|
67
|
+
case 9:
|
|
68
|
+
case "weWorkApp":
|
|
69
|
+
return NotificationMode.weWorkApp;
|
|
70
|
+
case 10:
|
|
71
|
+
case "aibotk":
|
|
72
|
+
return NotificationMode.aibotk;
|
|
73
|
+
case 11:
|
|
74
|
+
case "iGot":
|
|
75
|
+
return NotificationMode.iGot;
|
|
76
|
+
case 12:
|
|
77
|
+
case "pushPlus":
|
|
78
|
+
return NotificationMode.pushPlus;
|
|
79
|
+
case 13:
|
|
80
|
+
case "wePlusBot":
|
|
81
|
+
return NotificationMode.wePlusBot;
|
|
82
|
+
case 14:
|
|
83
|
+
case "email":
|
|
84
|
+
return NotificationMode.email;
|
|
85
|
+
case 15:
|
|
86
|
+
case "pushMe":
|
|
87
|
+
return NotificationMode.pushMe;
|
|
88
|
+
case 16:
|
|
89
|
+
case "feishu":
|
|
90
|
+
return NotificationMode.feishu;
|
|
91
|
+
case 17:
|
|
92
|
+
case "webhook":
|
|
93
|
+
return NotificationMode.webhook;
|
|
94
|
+
case 18:
|
|
95
|
+
case "chronocat":
|
|
96
|
+
return NotificationMode.chronocat;
|
|
97
|
+
case 19:
|
|
98
|
+
case "ntfy":
|
|
99
|
+
return NotificationMode.ntfy;
|
|
100
|
+
case 20:
|
|
101
|
+
case "wxPusherBot":
|
|
102
|
+
return NotificationMode.wxPusherBot;
|
|
103
|
+
case -1:
|
|
104
|
+
case "UNRECOGNIZED":
|
|
105
|
+
default:
|
|
106
|
+
return NotificationMode.UNRECOGNIZED;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
exports.notificationModeFromJSON = notificationModeFromJSON;
|
|
110
|
+
function notificationModeToJSON(object) {
|
|
111
|
+
switch (object) {
|
|
112
|
+
case NotificationMode.gotify:
|
|
113
|
+
return "gotify";
|
|
114
|
+
case NotificationMode.goCqHttpBot:
|
|
115
|
+
return "goCqHttpBot";
|
|
116
|
+
case NotificationMode.serverChan:
|
|
117
|
+
return "serverChan";
|
|
118
|
+
case NotificationMode.pushDeer:
|
|
119
|
+
return "pushDeer";
|
|
120
|
+
case NotificationMode.bark:
|
|
121
|
+
return "bark";
|
|
122
|
+
case NotificationMode.chat:
|
|
123
|
+
return "chat";
|
|
124
|
+
case NotificationMode.telegramBot:
|
|
125
|
+
return "telegramBot";
|
|
126
|
+
case NotificationMode.dingtalkBot:
|
|
127
|
+
return "dingtalkBot";
|
|
128
|
+
case NotificationMode.weWorkBot:
|
|
129
|
+
return "weWorkBot";
|
|
130
|
+
case NotificationMode.weWorkApp:
|
|
131
|
+
return "weWorkApp";
|
|
132
|
+
case NotificationMode.aibotk:
|
|
133
|
+
return "aibotk";
|
|
134
|
+
case NotificationMode.iGot:
|
|
135
|
+
return "iGot";
|
|
136
|
+
case NotificationMode.pushPlus:
|
|
137
|
+
return "pushPlus";
|
|
138
|
+
case NotificationMode.wePlusBot:
|
|
139
|
+
return "wePlusBot";
|
|
140
|
+
case NotificationMode.email:
|
|
141
|
+
return "email";
|
|
142
|
+
case NotificationMode.pushMe:
|
|
143
|
+
return "pushMe";
|
|
144
|
+
case NotificationMode.feishu:
|
|
145
|
+
return "feishu";
|
|
146
|
+
case NotificationMode.webhook:
|
|
147
|
+
return "webhook";
|
|
148
|
+
case NotificationMode.chronocat:
|
|
149
|
+
return "chronocat";
|
|
150
|
+
case NotificationMode.ntfy:
|
|
151
|
+
return "ntfy";
|
|
152
|
+
case NotificationMode.wxPusherBot:
|
|
153
|
+
return "wxPusherBot";
|
|
154
|
+
case NotificationMode.UNRECOGNIZED:
|
|
155
|
+
default:
|
|
156
|
+
return "UNRECOGNIZED";
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
exports.notificationModeToJSON = notificationModeToJSON;
|
|
13
160
|
function createBaseEnvItem() {
|
|
14
161
|
return {
|
|
15
162
|
id: undefined,
|
|
@@ -941,75 +1088,6 @@ exports.Response = {
|
|
|
941
1088
|
return message;
|
|
942
1089
|
},
|
|
943
1090
|
};
|
|
944
|
-
function createBaseSystemNotifyRequest() {
|
|
945
|
-
return { title: "", content: "" };
|
|
946
|
-
}
|
|
947
|
-
exports.SystemNotifyRequest = {
|
|
948
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
949
|
-
if (message.title !== "") {
|
|
950
|
-
writer.uint32(10).string(message.title);
|
|
951
|
-
}
|
|
952
|
-
if (message.content !== "") {
|
|
953
|
-
writer.uint32(18).string(message.content);
|
|
954
|
-
}
|
|
955
|
-
return writer;
|
|
956
|
-
},
|
|
957
|
-
decode(input, length) {
|
|
958
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
959
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
960
|
-
const message = createBaseSystemNotifyRequest();
|
|
961
|
-
while (reader.pos < end) {
|
|
962
|
-
const tag = reader.uint32();
|
|
963
|
-
switch (tag >>> 3) {
|
|
964
|
-
case 1: {
|
|
965
|
-
if (tag !== 10) {
|
|
966
|
-
break;
|
|
967
|
-
}
|
|
968
|
-
message.title = reader.string();
|
|
969
|
-
continue;
|
|
970
|
-
}
|
|
971
|
-
case 2: {
|
|
972
|
-
if (tag !== 18) {
|
|
973
|
-
break;
|
|
974
|
-
}
|
|
975
|
-
message.content = reader.string();
|
|
976
|
-
continue;
|
|
977
|
-
}
|
|
978
|
-
}
|
|
979
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
980
|
-
break;
|
|
981
|
-
}
|
|
982
|
-
reader.skip(tag & 7);
|
|
983
|
-
}
|
|
984
|
-
return message;
|
|
985
|
-
},
|
|
986
|
-
fromJSON(object) {
|
|
987
|
-
return {
|
|
988
|
-
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
989
|
-
content: isSet(object.content) ? globalThis.String(object.content) : "",
|
|
990
|
-
};
|
|
991
|
-
},
|
|
992
|
-
toJSON(message) {
|
|
993
|
-
const obj = {};
|
|
994
|
-
if (message.title !== "") {
|
|
995
|
-
obj.title = message.title;
|
|
996
|
-
}
|
|
997
|
-
if (message.content !== "") {
|
|
998
|
-
obj.content = message.content;
|
|
999
|
-
}
|
|
1000
|
-
return obj;
|
|
1001
|
-
},
|
|
1002
|
-
create(base) {
|
|
1003
|
-
return exports.SystemNotifyRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1004
|
-
},
|
|
1005
|
-
fromPartial(object) {
|
|
1006
|
-
var _a, _b;
|
|
1007
|
-
const message = createBaseSystemNotifyRequest();
|
|
1008
|
-
message.title = (_a = object.title) !== null && _a !== void 0 ? _a : "";
|
|
1009
|
-
message.content = (_b = object.content) !== null && _b !== void 0 ? _b : "";
|
|
1010
|
-
return message;
|
|
1011
|
-
},
|
|
1012
|
-
};
|
|
1013
1091
|
function createBaseExtraScheduleItem() {
|
|
1014
1092
|
return { schedule: "" };
|
|
1015
1093
|
}
|
|
@@ -2056,6 +2134,1232 @@ exports.CronDetailResponse = {
|
|
|
2056
2134
|
return message;
|
|
2057
2135
|
},
|
|
2058
2136
|
};
|
|
2137
|
+
function createBaseNotificationInfo() {
|
|
2138
|
+
return {
|
|
2139
|
+
type: 0,
|
|
2140
|
+
gotifyUrl: undefined,
|
|
2141
|
+
gotifyToken: undefined,
|
|
2142
|
+
gotifyPriority: undefined,
|
|
2143
|
+
goCqHttpBotUrl: undefined,
|
|
2144
|
+
goCqHttpBotToken: undefined,
|
|
2145
|
+
goCqHttpBotQq: undefined,
|
|
2146
|
+
serverChanKey: undefined,
|
|
2147
|
+
pushDeerKey: undefined,
|
|
2148
|
+
pushDeerUrl: undefined,
|
|
2149
|
+
synologyChatUrl: undefined,
|
|
2150
|
+
barkPush: undefined,
|
|
2151
|
+
barkIcon: undefined,
|
|
2152
|
+
barkSound: undefined,
|
|
2153
|
+
barkGroup: undefined,
|
|
2154
|
+
barkLevel: undefined,
|
|
2155
|
+
barkUrl: undefined,
|
|
2156
|
+
barkArchive: undefined,
|
|
2157
|
+
telegramBotToken: undefined,
|
|
2158
|
+
telegramBotUserId: undefined,
|
|
2159
|
+
telegramBotProxyHost: undefined,
|
|
2160
|
+
telegramBotProxyPort: undefined,
|
|
2161
|
+
telegramBotProxyAuth: undefined,
|
|
2162
|
+
telegramBotApiHost: undefined,
|
|
2163
|
+
dingtalkBotToken: undefined,
|
|
2164
|
+
dingtalkBotSecret: undefined,
|
|
2165
|
+
weWorkBotKey: undefined,
|
|
2166
|
+
weWorkOrigin: undefined,
|
|
2167
|
+
weWorkAppKey: undefined,
|
|
2168
|
+
aibotkKey: undefined,
|
|
2169
|
+
aibotkType: undefined,
|
|
2170
|
+
aibotkName: undefined,
|
|
2171
|
+
iGotPushKey: undefined,
|
|
2172
|
+
pushPlusToken: undefined,
|
|
2173
|
+
pushPlusUser: undefined,
|
|
2174
|
+
pushPlusTemplate: undefined,
|
|
2175
|
+
pushplusChannel: undefined,
|
|
2176
|
+
pushplusWebhook: undefined,
|
|
2177
|
+
pushplusCallbackUrl: undefined,
|
|
2178
|
+
pushplusTo: undefined,
|
|
2179
|
+
wePlusBotToken: undefined,
|
|
2180
|
+
wePlusBotReceiver: undefined,
|
|
2181
|
+
wePlusBotVersion: undefined,
|
|
2182
|
+
emailService: undefined,
|
|
2183
|
+
emailUser: undefined,
|
|
2184
|
+
emailPass: undefined,
|
|
2185
|
+
emailTo: undefined,
|
|
2186
|
+
pushMeKey: undefined,
|
|
2187
|
+
pushMeUrl: undefined,
|
|
2188
|
+
chronocatURL: undefined,
|
|
2189
|
+
chronocatQQ: undefined,
|
|
2190
|
+
chronocatToken: undefined,
|
|
2191
|
+
webhookHeaders: undefined,
|
|
2192
|
+
webhookBody: undefined,
|
|
2193
|
+
webhookUrl: undefined,
|
|
2194
|
+
webhookMethod: undefined,
|
|
2195
|
+
webhookContentType: undefined,
|
|
2196
|
+
larkKey: undefined,
|
|
2197
|
+
ntfyUrl: undefined,
|
|
2198
|
+
ntfyTopic: undefined,
|
|
2199
|
+
ntfyPriority: undefined,
|
|
2200
|
+
ntfyToken: undefined,
|
|
2201
|
+
ntfyUsername: undefined,
|
|
2202
|
+
ntfyPassword: undefined,
|
|
2203
|
+
ntfyActions: undefined,
|
|
2204
|
+
wxPusherBotAppToken: undefined,
|
|
2205
|
+
wxPusherBotTopicIds: undefined,
|
|
2206
|
+
wxPusherBotUids: undefined,
|
|
2207
|
+
};
|
|
2208
|
+
}
|
|
2209
|
+
exports.NotificationInfo = {
|
|
2210
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2211
|
+
if (message.type !== 0) {
|
|
2212
|
+
writer.uint32(8).int32(message.type);
|
|
2213
|
+
}
|
|
2214
|
+
if (message.gotifyUrl !== undefined) {
|
|
2215
|
+
writer.uint32(18).string(message.gotifyUrl);
|
|
2216
|
+
}
|
|
2217
|
+
if (message.gotifyToken !== undefined) {
|
|
2218
|
+
writer.uint32(26).string(message.gotifyToken);
|
|
2219
|
+
}
|
|
2220
|
+
if (message.gotifyPriority !== undefined) {
|
|
2221
|
+
writer.uint32(32).int32(message.gotifyPriority);
|
|
2222
|
+
}
|
|
2223
|
+
if (message.goCqHttpBotUrl !== undefined) {
|
|
2224
|
+
writer.uint32(42).string(message.goCqHttpBotUrl);
|
|
2225
|
+
}
|
|
2226
|
+
if (message.goCqHttpBotToken !== undefined) {
|
|
2227
|
+
writer.uint32(50).string(message.goCqHttpBotToken);
|
|
2228
|
+
}
|
|
2229
|
+
if (message.goCqHttpBotQq !== undefined) {
|
|
2230
|
+
writer.uint32(58).string(message.goCqHttpBotQq);
|
|
2231
|
+
}
|
|
2232
|
+
if (message.serverChanKey !== undefined) {
|
|
2233
|
+
writer.uint32(66).string(message.serverChanKey);
|
|
2234
|
+
}
|
|
2235
|
+
if (message.pushDeerKey !== undefined) {
|
|
2236
|
+
writer.uint32(74).string(message.pushDeerKey);
|
|
2237
|
+
}
|
|
2238
|
+
if (message.pushDeerUrl !== undefined) {
|
|
2239
|
+
writer.uint32(82).string(message.pushDeerUrl);
|
|
2240
|
+
}
|
|
2241
|
+
if (message.synologyChatUrl !== undefined) {
|
|
2242
|
+
writer.uint32(90).string(message.synologyChatUrl);
|
|
2243
|
+
}
|
|
2244
|
+
if (message.barkPush !== undefined) {
|
|
2245
|
+
writer.uint32(98).string(message.barkPush);
|
|
2246
|
+
}
|
|
2247
|
+
if (message.barkIcon !== undefined) {
|
|
2248
|
+
writer.uint32(106).string(message.barkIcon);
|
|
2249
|
+
}
|
|
2250
|
+
if (message.barkSound !== undefined) {
|
|
2251
|
+
writer.uint32(114).string(message.barkSound);
|
|
2252
|
+
}
|
|
2253
|
+
if (message.barkGroup !== undefined) {
|
|
2254
|
+
writer.uint32(122).string(message.barkGroup);
|
|
2255
|
+
}
|
|
2256
|
+
if (message.barkLevel !== undefined) {
|
|
2257
|
+
writer.uint32(130).string(message.barkLevel);
|
|
2258
|
+
}
|
|
2259
|
+
if (message.barkUrl !== undefined) {
|
|
2260
|
+
writer.uint32(138).string(message.barkUrl);
|
|
2261
|
+
}
|
|
2262
|
+
if (message.barkArchive !== undefined) {
|
|
2263
|
+
writer.uint32(146).string(message.barkArchive);
|
|
2264
|
+
}
|
|
2265
|
+
if (message.telegramBotToken !== undefined) {
|
|
2266
|
+
writer.uint32(154).string(message.telegramBotToken);
|
|
2267
|
+
}
|
|
2268
|
+
if (message.telegramBotUserId !== undefined) {
|
|
2269
|
+
writer.uint32(162).string(message.telegramBotUserId);
|
|
2270
|
+
}
|
|
2271
|
+
if (message.telegramBotProxyHost !== undefined) {
|
|
2272
|
+
writer.uint32(170).string(message.telegramBotProxyHost);
|
|
2273
|
+
}
|
|
2274
|
+
if (message.telegramBotProxyPort !== undefined) {
|
|
2275
|
+
writer.uint32(178).string(message.telegramBotProxyPort);
|
|
2276
|
+
}
|
|
2277
|
+
if (message.telegramBotProxyAuth !== undefined) {
|
|
2278
|
+
writer.uint32(186).string(message.telegramBotProxyAuth);
|
|
2279
|
+
}
|
|
2280
|
+
if (message.telegramBotApiHost !== undefined) {
|
|
2281
|
+
writer.uint32(194).string(message.telegramBotApiHost);
|
|
2282
|
+
}
|
|
2283
|
+
if (message.dingtalkBotToken !== undefined) {
|
|
2284
|
+
writer.uint32(202).string(message.dingtalkBotToken);
|
|
2285
|
+
}
|
|
2286
|
+
if (message.dingtalkBotSecret !== undefined) {
|
|
2287
|
+
writer.uint32(210).string(message.dingtalkBotSecret);
|
|
2288
|
+
}
|
|
2289
|
+
if (message.weWorkBotKey !== undefined) {
|
|
2290
|
+
writer.uint32(218).string(message.weWorkBotKey);
|
|
2291
|
+
}
|
|
2292
|
+
if (message.weWorkOrigin !== undefined) {
|
|
2293
|
+
writer.uint32(226).string(message.weWorkOrigin);
|
|
2294
|
+
}
|
|
2295
|
+
if (message.weWorkAppKey !== undefined) {
|
|
2296
|
+
writer.uint32(234).string(message.weWorkAppKey);
|
|
2297
|
+
}
|
|
2298
|
+
if (message.aibotkKey !== undefined) {
|
|
2299
|
+
writer.uint32(242).string(message.aibotkKey);
|
|
2300
|
+
}
|
|
2301
|
+
if (message.aibotkType !== undefined) {
|
|
2302
|
+
writer.uint32(250).string(message.aibotkType);
|
|
2303
|
+
}
|
|
2304
|
+
if (message.aibotkName !== undefined) {
|
|
2305
|
+
writer.uint32(258).string(message.aibotkName);
|
|
2306
|
+
}
|
|
2307
|
+
if (message.iGotPushKey !== undefined) {
|
|
2308
|
+
writer.uint32(266).string(message.iGotPushKey);
|
|
2309
|
+
}
|
|
2310
|
+
if (message.pushPlusToken !== undefined) {
|
|
2311
|
+
writer.uint32(274).string(message.pushPlusToken);
|
|
2312
|
+
}
|
|
2313
|
+
if (message.pushPlusUser !== undefined) {
|
|
2314
|
+
writer.uint32(282).string(message.pushPlusUser);
|
|
2315
|
+
}
|
|
2316
|
+
if (message.pushPlusTemplate !== undefined) {
|
|
2317
|
+
writer.uint32(290).string(message.pushPlusTemplate);
|
|
2318
|
+
}
|
|
2319
|
+
if (message.pushplusChannel !== undefined) {
|
|
2320
|
+
writer.uint32(298).string(message.pushplusChannel);
|
|
2321
|
+
}
|
|
2322
|
+
if (message.pushplusWebhook !== undefined) {
|
|
2323
|
+
writer.uint32(306).string(message.pushplusWebhook);
|
|
2324
|
+
}
|
|
2325
|
+
if (message.pushplusCallbackUrl !== undefined) {
|
|
2326
|
+
writer.uint32(314).string(message.pushplusCallbackUrl);
|
|
2327
|
+
}
|
|
2328
|
+
if (message.pushplusTo !== undefined) {
|
|
2329
|
+
writer.uint32(322).string(message.pushplusTo);
|
|
2330
|
+
}
|
|
2331
|
+
if (message.wePlusBotToken !== undefined) {
|
|
2332
|
+
writer.uint32(330).string(message.wePlusBotToken);
|
|
2333
|
+
}
|
|
2334
|
+
if (message.wePlusBotReceiver !== undefined) {
|
|
2335
|
+
writer.uint32(338).string(message.wePlusBotReceiver);
|
|
2336
|
+
}
|
|
2337
|
+
if (message.wePlusBotVersion !== undefined) {
|
|
2338
|
+
writer.uint32(346).string(message.wePlusBotVersion);
|
|
2339
|
+
}
|
|
2340
|
+
if (message.emailService !== undefined) {
|
|
2341
|
+
writer.uint32(354).string(message.emailService);
|
|
2342
|
+
}
|
|
2343
|
+
if (message.emailUser !== undefined) {
|
|
2344
|
+
writer.uint32(362).string(message.emailUser);
|
|
2345
|
+
}
|
|
2346
|
+
if (message.emailPass !== undefined) {
|
|
2347
|
+
writer.uint32(370).string(message.emailPass);
|
|
2348
|
+
}
|
|
2349
|
+
if (message.emailTo !== undefined) {
|
|
2350
|
+
writer.uint32(378).string(message.emailTo);
|
|
2351
|
+
}
|
|
2352
|
+
if (message.pushMeKey !== undefined) {
|
|
2353
|
+
writer.uint32(386).string(message.pushMeKey);
|
|
2354
|
+
}
|
|
2355
|
+
if (message.pushMeUrl !== undefined) {
|
|
2356
|
+
writer.uint32(394).string(message.pushMeUrl);
|
|
2357
|
+
}
|
|
2358
|
+
if (message.chronocatURL !== undefined) {
|
|
2359
|
+
writer.uint32(402).string(message.chronocatURL);
|
|
2360
|
+
}
|
|
2361
|
+
if (message.chronocatQQ !== undefined) {
|
|
2362
|
+
writer.uint32(410).string(message.chronocatQQ);
|
|
2363
|
+
}
|
|
2364
|
+
if (message.chronocatToken !== undefined) {
|
|
2365
|
+
writer.uint32(418).string(message.chronocatToken);
|
|
2366
|
+
}
|
|
2367
|
+
if (message.webhookHeaders !== undefined) {
|
|
2368
|
+
writer.uint32(426).string(message.webhookHeaders);
|
|
2369
|
+
}
|
|
2370
|
+
if (message.webhookBody !== undefined) {
|
|
2371
|
+
writer.uint32(434).string(message.webhookBody);
|
|
2372
|
+
}
|
|
2373
|
+
if (message.webhookUrl !== undefined) {
|
|
2374
|
+
writer.uint32(442).string(message.webhookUrl);
|
|
2375
|
+
}
|
|
2376
|
+
if (message.webhookMethod !== undefined) {
|
|
2377
|
+
writer.uint32(450).string(message.webhookMethod);
|
|
2378
|
+
}
|
|
2379
|
+
if (message.webhookContentType !== undefined) {
|
|
2380
|
+
writer.uint32(458).string(message.webhookContentType);
|
|
2381
|
+
}
|
|
2382
|
+
if (message.larkKey !== undefined) {
|
|
2383
|
+
writer.uint32(466).string(message.larkKey);
|
|
2384
|
+
}
|
|
2385
|
+
if (message.ntfyUrl !== undefined) {
|
|
2386
|
+
writer.uint32(474).string(message.ntfyUrl);
|
|
2387
|
+
}
|
|
2388
|
+
if (message.ntfyTopic !== undefined) {
|
|
2389
|
+
writer.uint32(482).string(message.ntfyTopic);
|
|
2390
|
+
}
|
|
2391
|
+
if (message.ntfyPriority !== undefined) {
|
|
2392
|
+
writer.uint32(490).string(message.ntfyPriority);
|
|
2393
|
+
}
|
|
2394
|
+
if (message.ntfyToken !== undefined) {
|
|
2395
|
+
writer.uint32(498).string(message.ntfyToken);
|
|
2396
|
+
}
|
|
2397
|
+
if (message.ntfyUsername !== undefined) {
|
|
2398
|
+
writer.uint32(506).string(message.ntfyUsername);
|
|
2399
|
+
}
|
|
2400
|
+
if (message.ntfyPassword !== undefined) {
|
|
2401
|
+
writer.uint32(514).string(message.ntfyPassword);
|
|
2402
|
+
}
|
|
2403
|
+
if (message.ntfyActions !== undefined) {
|
|
2404
|
+
writer.uint32(522).string(message.ntfyActions);
|
|
2405
|
+
}
|
|
2406
|
+
if (message.wxPusherBotAppToken !== undefined) {
|
|
2407
|
+
writer.uint32(530).string(message.wxPusherBotAppToken);
|
|
2408
|
+
}
|
|
2409
|
+
if (message.wxPusherBotTopicIds !== undefined) {
|
|
2410
|
+
writer.uint32(538).string(message.wxPusherBotTopicIds);
|
|
2411
|
+
}
|
|
2412
|
+
if (message.wxPusherBotUids !== undefined) {
|
|
2413
|
+
writer.uint32(546).string(message.wxPusherBotUids);
|
|
2414
|
+
}
|
|
2415
|
+
return writer;
|
|
2416
|
+
},
|
|
2417
|
+
decode(input, length) {
|
|
2418
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2419
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2420
|
+
const message = createBaseNotificationInfo();
|
|
2421
|
+
while (reader.pos < end) {
|
|
2422
|
+
const tag = reader.uint32();
|
|
2423
|
+
switch (tag >>> 3) {
|
|
2424
|
+
case 1: {
|
|
2425
|
+
if (tag !== 8) {
|
|
2426
|
+
break;
|
|
2427
|
+
}
|
|
2428
|
+
message.type = reader.int32();
|
|
2429
|
+
continue;
|
|
2430
|
+
}
|
|
2431
|
+
case 2: {
|
|
2432
|
+
if (tag !== 18) {
|
|
2433
|
+
break;
|
|
2434
|
+
}
|
|
2435
|
+
message.gotifyUrl = reader.string();
|
|
2436
|
+
continue;
|
|
2437
|
+
}
|
|
2438
|
+
case 3: {
|
|
2439
|
+
if (tag !== 26) {
|
|
2440
|
+
break;
|
|
2441
|
+
}
|
|
2442
|
+
message.gotifyToken = reader.string();
|
|
2443
|
+
continue;
|
|
2444
|
+
}
|
|
2445
|
+
case 4: {
|
|
2446
|
+
if (tag !== 32) {
|
|
2447
|
+
break;
|
|
2448
|
+
}
|
|
2449
|
+
message.gotifyPriority = reader.int32();
|
|
2450
|
+
continue;
|
|
2451
|
+
}
|
|
2452
|
+
case 5: {
|
|
2453
|
+
if (tag !== 42) {
|
|
2454
|
+
break;
|
|
2455
|
+
}
|
|
2456
|
+
message.goCqHttpBotUrl = reader.string();
|
|
2457
|
+
continue;
|
|
2458
|
+
}
|
|
2459
|
+
case 6: {
|
|
2460
|
+
if (tag !== 50) {
|
|
2461
|
+
break;
|
|
2462
|
+
}
|
|
2463
|
+
message.goCqHttpBotToken = reader.string();
|
|
2464
|
+
continue;
|
|
2465
|
+
}
|
|
2466
|
+
case 7: {
|
|
2467
|
+
if (tag !== 58) {
|
|
2468
|
+
break;
|
|
2469
|
+
}
|
|
2470
|
+
message.goCqHttpBotQq = reader.string();
|
|
2471
|
+
continue;
|
|
2472
|
+
}
|
|
2473
|
+
case 8: {
|
|
2474
|
+
if (tag !== 66) {
|
|
2475
|
+
break;
|
|
2476
|
+
}
|
|
2477
|
+
message.serverChanKey = reader.string();
|
|
2478
|
+
continue;
|
|
2479
|
+
}
|
|
2480
|
+
case 9: {
|
|
2481
|
+
if (tag !== 74) {
|
|
2482
|
+
break;
|
|
2483
|
+
}
|
|
2484
|
+
message.pushDeerKey = reader.string();
|
|
2485
|
+
continue;
|
|
2486
|
+
}
|
|
2487
|
+
case 10: {
|
|
2488
|
+
if (tag !== 82) {
|
|
2489
|
+
break;
|
|
2490
|
+
}
|
|
2491
|
+
message.pushDeerUrl = reader.string();
|
|
2492
|
+
continue;
|
|
2493
|
+
}
|
|
2494
|
+
case 11: {
|
|
2495
|
+
if (tag !== 90) {
|
|
2496
|
+
break;
|
|
2497
|
+
}
|
|
2498
|
+
message.synologyChatUrl = reader.string();
|
|
2499
|
+
continue;
|
|
2500
|
+
}
|
|
2501
|
+
case 12: {
|
|
2502
|
+
if (tag !== 98) {
|
|
2503
|
+
break;
|
|
2504
|
+
}
|
|
2505
|
+
message.barkPush = reader.string();
|
|
2506
|
+
continue;
|
|
2507
|
+
}
|
|
2508
|
+
case 13: {
|
|
2509
|
+
if (tag !== 106) {
|
|
2510
|
+
break;
|
|
2511
|
+
}
|
|
2512
|
+
message.barkIcon = reader.string();
|
|
2513
|
+
continue;
|
|
2514
|
+
}
|
|
2515
|
+
case 14: {
|
|
2516
|
+
if (tag !== 114) {
|
|
2517
|
+
break;
|
|
2518
|
+
}
|
|
2519
|
+
message.barkSound = reader.string();
|
|
2520
|
+
continue;
|
|
2521
|
+
}
|
|
2522
|
+
case 15: {
|
|
2523
|
+
if (tag !== 122) {
|
|
2524
|
+
break;
|
|
2525
|
+
}
|
|
2526
|
+
message.barkGroup = reader.string();
|
|
2527
|
+
continue;
|
|
2528
|
+
}
|
|
2529
|
+
case 16: {
|
|
2530
|
+
if (tag !== 130) {
|
|
2531
|
+
break;
|
|
2532
|
+
}
|
|
2533
|
+
message.barkLevel = reader.string();
|
|
2534
|
+
continue;
|
|
2535
|
+
}
|
|
2536
|
+
case 17: {
|
|
2537
|
+
if (tag !== 138) {
|
|
2538
|
+
break;
|
|
2539
|
+
}
|
|
2540
|
+
message.barkUrl = reader.string();
|
|
2541
|
+
continue;
|
|
2542
|
+
}
|
|
2543
|
+
case 18: {
|
|
2544
|
+
if (tag !== 146) {
|
|
2545
|
+
break;
|
|
2546
|
+
}
|
|
2547
|
+
message.barkArchive = reader.string();
|
|
2548
|
+
continue;
|
|
2549
|
+
}
|
|
2550
|
+
case 19: {
|
|
2551
|
+
if (tag !== 154) {
|
|
2552
|
+
break;
|
|
2553
|
+
}
|
|
2554
|
+
message.telegramBotToken = reader.string();
|
|
2555
|
+
continue;
|
|
2556
|
+
}
|
|
2557
|
+
case 20: {
|
|
2558
|
+
if (tag !== 162) {
|
|
2559
|
+
break;
|
|
2560
|
+
}
|
|
2561
|
+
message.telegramBotUserId = reader.string();
|
|
2562
|
+
continue;
|
|
2563
|
+
}
|
|
2564
|
+
case 21: {
|
|
2565
|
+
if (tag !== 170) {
|
|
2566
|
+
break;
|
|
2567
|
+
}
|
|
2568
|
+
message.telegramBotProxyHost = reader.string();
|
|
2569
|
+
continue;
|
|
2570
|
+
}
|
|
2571
|
+
case 22: {
|
|
2572
|
+
if (tag !== 178) {
|
|
2573
|
+
break;
|
|
2574
|
+
}
|
|
2575
|
+
message.telegramBotProxyPort = reader.string();
|
|
2576
|
+
continue;
|
|
2577
|
+
}
|
|
2578
|
+
case 23: {
|
|
2579
|
+
if (tag !== 186) {
|
|
2580
|
+
break;
|
|
2581
|
+
}
|
|
2582
|
+
message.telegramBotProxyAuth = reader.string();
|
|
2583
|
+
continue;
|
|
2584
|
+
}
|
|
2585
|
+
case 24: {
|
|
2586
|
+
if (tag !== 194) {
|
|
2587
|
+
break;
|
|
2588
|
+
}
|
|
2589
|
+
message.telegramBotApiHost = reader.string();
|
|
2590
|
+
continue;
|
|
2591
|
+
}
|
|
2592
|
+
case 25: {
|
|
2593
|
+
if (tag !== 202) {
|
|
2594
|
+
break;
|
|
2595
|
+
}
|
|
2596
|
+
message.dingtalkBotToken = reader.string();
|
|
2597
|
+
continue;
|
|
2598
|
+
}
|
|
2599
|
+
case 26: {
|
|
2600
|
+
if (tag !== 210) {
|
|
2601
|
+
break;
|
|
2602
|
+
}
|
|
2603
|
+
message.dingtalkBotSecret = reader.string();
|
|
2604
|
+
continue;
|
|
2605
|
+
}
|
|
2606
|
+
case 27: {
|
|
2607
|
+
if (tag !== 218) {
|
|
2608
|
+
break;
|
|
2609
|
+
}
|
|
2610
|
+
message.weWorkBotKey = reader.string();
|
|
2611
|
+
continue;
|
|
2612
|
+
}
|
|
2613
|
+
case 28: {
|
|
2614
|
+
if (tag !== 226) {
|
|
2615
|
+
break;
|
|
2616
|
+
}
|
|
2617
|
+
message.weWorkOrigin = reader.string();
|
|
2618
|
+
continue;
|
|
2619
|
+
}
|
|
2620
|
+
case 29: {
|
|
2621
|
+
if (tag !== 234) {
|
|
2622
|
+
break;
|
|
2623
|
+
}
|
|
2624
|
+
message.weWorkAppKey = reader.string();
|
|
2625
|
+
continue;
|
|
2626
|
+
}
|
|
2627
|
+
case 30: {
|
|
2628
|
+
if (tag !== 242) {
|
|
2629
|
+
break;
|
|
2630
|
+
}
|
|
2631
|
+
message.aibotkKey = reader.string();
|
|
2632
|
+
continue;
|
|
2633
|
+
}
|
|
2634
|
+
case 31: {
|
|
2635
|
+
if (tag !== 250) {
|
|
2636
|
+
break;
|
|
2637
|
+
}
|
|
2638
|
+
message.aibotkType = reader.string();
|
|
2639
|
+
continue;
|
|
2640
|
+
}
|
|
2641
|
+
case 32: {
|
|
2642
|
+
if (tag !== 258) {
|
|
2643
|
+
break;
|
|
2644
|
+
}
|
|
2645
|
+
message.aibotkName = reader.string();
|
|
2646
|
+
continue;
|
|
2647
|
+
}
|
|
2648
|
+
case 33: {
|
|
2649
|
+
if (tag !== 266) {
|
|
2650
|
+
break;
|
|
2651
|
+
}
|
|
2652
|
+
message.iGotPushKey = reader.string();
|
|
2653
|
+
continue;
|
|
2654
|
+
}
|
|
2655
|
+
case 34: {
|
|
2656
|
+
if (tag !== 274) {
|
|
2657
|
+
break;
|
|
2658
|
+
}
|
|
2659
|
+
message.pushPlusToken = reader.string();
|
|
2660
|
+
continue;
|
|
2661
|
+
}
|
|
2662
|
+
case 35: {
|
|
2663
|
+
if (tag !== 282) {
|
|
2664
|
+
break;
|
|
2665
|
+
}
|
|
2666
|
+
message.pushPlusUser = reader.string();
|
|
2667
|
+
continue;
|
|
2668
|
+
}
|
|
2669
|
+
case 36: {
|
|
2670
|
+
if (tag !== 290) {
|
|
2671
|
+
break;
|
|
2672
|
+
}
|
|
2673
|
+
message.pushPlusTemplate = reader.string();
|
|
2674
|
+
continue;
|
|
2675
|
+
}
|
|
2676
|
+
case 37: {
|
|
2677
|
+
if (tag !== 298) {
|
|
2678
|
+
break;
|
|
2679
|
+
}
|
|
2680
|
+
message.pushplusChannel = reader.string();
|
|
2681
|
+
continue;
|
|
2682
|
+
}
|
|
2683
|
+
case 38: {
|
|
2684
|
+
if (tag !== 306) {
|
|
2685
|
+
break;
|
|
2686
|
+
}
|
|
2687
|
+
message.pushplusWebhook = reader.string();
|
|
2688
|
+
continue;
|
|
2689
|
+
}
|
|
2690
|
+
case 39: {
|
|
2691
|
+
if (tag !== 314) {
|
|
2692
|
+
break;
|
|
2693
|
+
}
|
|
2694
|
+
message.pushplusCallbackUrl = reader.string();
|
|
2695
|
+
continue;
|
|
2696
|
+
}
|
|
2697
|
+
case 40: {
|
|
2698
|
+
if (tag !== 322) {
|
|
2699
|
+
break;
|
|
2700
|
+
}
|
|
2701
|
+
message.pushplusTo = reader.string();
|
|
2702
|
+
continue;
|
|
2703
|
+
}
|
|
2704
|
+
case 41: {
|
|
2705
|
+
if (tag !== 330) {
|
|
2706
|
+
break;
|
|
2707
|
+
}
|
|
2708
|
+
message.wePlusBotToken = reader.string();
|
|
2709
|
+
continue;
|
|
2710
|
+
}
|
|
2711
|
+
case 42: {
|
|
2712
|
+
if (tag !== 338) {
|
|
2713
|
+
break;
|
|
2714
|
+
}
|
|
2715
|
+
message.wePlusBotReceiver = reader.string();
|
|
2716
|
+
continue;
|
|
2717
|
+
}
|
|
2718
|
+
case 43: {
|
|
2719
|
+
if (tag !== 346) {
|
|
2720
|
+
break;
|
|
2721
|
+
}
|
|
2722
|
+
message.wePlusBotVersion = reader.string();
|
|
2723
|
+
continue;
|
|
2724
|
+
}
|
|
2725
|
+
case 44: {
|
|
2726
|
+
if (tag !== 354) {
|
|
2727
|
+
break;
|
|
2728
|
+
}
|
|
2729
|
+
message.emailService = reader.string();
|
|
2730
|
+
continue;
|
|
2731
|
+
}
|
|
2732
|
+
case 45: {
|
|
2733
|
+
if (tag !== 362) {
|
|
2734
|
+
break;
|
|
2735
|
+
}
|
|
2736
|
+
message.emailUser = reader.string();
|
|
2737
|
+
continue;
|
|
2738
|
+
}
|
|
2739
|
+
case 46: {
|
|
2740
|
+
if (tag !== 370) {
|
|
2741
|
+
break;
|
|
2742
|
+
}
|
|
2743
|
+
message.emailPass = reader.string();
|
|
2744
|
+
continue;
|
|
2745
|
+
}
|
|
2746
|
+
case 47: {
|
|
2747
|
+
if (tag !== 378) {
|
|
2748
|
+
break;
|
|
2749
|
+
}
|
|
2750
|
+
message.emailTo = reader.string();
|
|
2751
|
+
continue;
|
|
2752
|
+
}
|
|
2753
|
+
case 48: {
|
|
2754
|
+
if (tag !== 386) {
|
|
2755
|
+
break;
|
|
2756
|
+
}
|
|
2757
|
+
message.pushMeKey = reader.string();
|
|
2758
|
+
continue;
|
|
2759
|
+
}
|
|
2760
|
+
case 49: {
|
|
2761
|
+
if (tag !== 394) {
|
|
2762
|
+
break;
|
|
2763
|
+
}
|
|
2764
|
+
message.pushMeUrl = reader.string();
|
|
2765
|
+
continue;
|
|
2766
|
+
}
|
|
2767
|
+
case 50: {
|
|
2768
|
+
if (tag !== 402) {
|
|
2769
|
+
break;
|
|
2770
|
+
}
|
|
2771
|
+
message.chronocatURL = reader.string();
|
|
2772
|
+
continue;
|
|
2773
|
+
}
|
|
2774
|
+
case 51: {
|
|
2775
|
+
if (tag !== 410) {
|
|
2776
|
+
break;
|
|
2777
|
+
}
|
|
2778
|
+
message.chronocatQQ = reader.string();
|
|
2779
|
+
continue;
|
|
2780
|
+
}
|
|
2781
|
+
case 52: {
|
|
2782
|
+
if (tag !== 418) {
|
|
2783
|
+
break;
|
|
2784
|
+
}
|
|
2785
|
+
message.chronocatToken = reader.string();
|
|
2786
|
+
continue;
|
|
2787
|
+
}
|
|
2788
|
+
case 53: {
|
|
2789
|
+
if (tag !== 426) {
|
|
2790
|
+
break;
|
|
2791
|
+
}
|
|
2792
|
+
message.webhookHeaders = reader.string();
|
|
2793
|
+
continue;
|
|
2794
|
+
}
|
|
2795
|
+
case 54: {
|
|
2796
|
+
if (tag !== 434) {
|
|
2797
|
+
break;
|
|
2798
|
+
}
|
|
2799
|
+
message.webhookBody = reader.string();
|
|
2800
|
+
continue;
|
|
2801
|
+
}
|
|
2802
|
+
case 55: {
|
|
2803
|
+
if (tag !== 442) {
|
|
2804
|
+
break;
|
|
2805
|
+
}
|
|
2806
|
+
message.webhookUrl = reader.string();
|
|
2807
|
+
continue;
|
|
2808
|
+
}
|
|
2809
|
+
case 56: {
|
|
2810
|
+
if (tag !== 450) {
|
|
2811
|
+
break;
|
|
2812
|
+
}
|
|
2813
|
+
message.webhookMethod = reader.string();
|
|
2814
|
+
continue;
|
|
2815
|
+
}
|
|
2816
|
+
case 57: {
|
|
2817
|
+
if (tag !== 458) {
|
|
2818
|
+
break;
|
|
2819
|
+
}
|
|
2820
|
+
message.webhookContentType = reader.string();
|
|
2821
|
+
continue;
|
|
2822
|
+
}
|
|
2823
|
+
case 58: {
|
|
2824
|
+
if (tag !== 466) {
|
|
2825
|
+
break;
|
|
2826
|
+
}
|
|
2827
|
+
message.larkKey = reader.string();
|
|
2828
|
+
continue;
|
|
2829
|
+
}
|
|
2830
|
+
case 59: {
|
|
2831
|
+
if (tag !== 474) {
|
|
2832
|
+
break;
|
|
2833
|
+
}
|
|
2834
|
+
message.ntfyUrl = reader.string();
|
|
2835
|
+
continue;
|
|
2836
|
+
}
|
|
2837
|
+
case 60: {
|
|
2838
|
+
if (tag !== 482) {
|
|
2839
|
+
break;
|
|
2840
|
+
}
|
|
2841
|
+
message.ntfyTopic = reader.string();
|
|
2842
|
+
continue;
|
|
2843
|
+
}
|
|
2844
|
+
case 61: {
|
|
2845
|
+
if (tag !== 490) {
|
|
2846
|
+
break;
|
|
2847
|
+
}
|
|
2848
|
+
message.ntfyPriority = reader.string();
|
|
2849
|
+
continue;
|
|
2850
|
+
}
|
|
2851
|
+
case 62: {
|
|
2852
|
+
if (tag !== 498) {
|
|
2853
|
+
break;
|
|
2854
|
+
}
|
|
2855
|
+
message.ntfyToken = reader.string();
|
|
2856
|
+
continue;
|
|
2857
|
+
}
|
|
2858
|
+
case 63: {
|
|
2859
|
+
if (tag !== 506) {
|
|
2860
|
+
break;
|
|
2861
|
+
}
|
|
2862
|
+
message.ntfyUsername = reader.string();
|
|
2863
|
+
continue;
|
|
2864
|
+
}
|
|
2865
|
+
case 64: {
|
|
2866
|
+
if (tag !== 514) {
|
|
2867
|
+
break;
|
|
2868
|
+
}
|
|
2869
|
+
message.ntfyPassword = reader.string();
|
|
2870
|
+
continue;
|
|
2871
|
+
}
|
|
2872
|
+
case 65: {
|
|
2873
|
+
if (tag !== 522) {
|
|
2874
|
+
break;
|
|
2875
|
+
}
|
|
2876
|
+
message.ntfyActions = reader.string();
|
|
2877
|
+
continue;
|
|
2878
|
+
}
|
|
2879
|
+
case 66: {
|
|
2880
|
+
if (tag !== 530) {
|
|
2881
|
+
break;
|
|
2882
|
+
}
|
|
2883
|
+
message.wxPusherBotAppToken = reader.string();
|
|
2884
|
+
continue;
|
|
2885
|
+
}
|
|
2886
|
+
case 67: {
|
|
2887
|
+
if (tag !== 538) {
|
|
2888
|
+
break;
|
|
2889
|
+
}
|
|
2890
|
+
message.wxPusherBotTopicIds = reader.string();
|
|
2891
|
+
continue;
|
|
2892
|
+
}
|
|
2893
|
+
case 68: {
|
|
2894
|
+
if (tag !== 546) {
|
|
2895
|
+
break;
|
|
2896
|
+
}
|
|
2897
|
+
message.wxPusherBotUids = reader.string();
|
|
2898
|
+
continue;
|
|
2899
|
+
}
|
|
2900
|
+
}
|
|
2901
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2902
|
+
break;
|
|
2903
|
+
}
|
|
2904
|
+
reader.skip(tag & 7);
|
|
2905
|
+
}
|
|
2906
|
+
return message;
|
|
2907
|
+
},
|
|
2908
|
+
fromJSON(object) {
|
|
2909
|
+
return {
|
|
2910
|
+
type: isSet(object.type) ? notificationModeFromJSON(object.type) : 0,
|
|
2911
|
+
gotifyUrl: isSet(object.gotifyUrl) ? globalThis.String(object.gotifyUrl) : undefined,
|
|
2912
|
+
gotifyToken: isSet(object.gotifyToken) ? globalThis.String(object.gotifyToken) : undefined,
|
|
2913
|
+
gotifyPriority: isSet(object.gotifyPriority) ? globalThis.Number(object.gotifyPriority) : undefined,
|
|
2914
|
+
goCqHttpBotUrl: isSet(object.goCqHttpBotUrl) ? globalThis.String(object.goCqHttpBotUrl) : undefined,
|
|
2915
|
+
goCqHttpBotToken: isSet(object.goCqHttpBotToken) ? globalThis.String(object.goCqHttpBotToken) : undefined,
|
|
2916
|
+
goCqHttpBotQq: isSet(object.goCqHttpBotQq) ? globalThis.String(object.goCqHttpBotQq) : undefined,
|
|
2917
|
+
serverChanKey: isSet(object.serverChanKey) ? globalThis.String(object.serverChanKey) : undefined,
|
|
2918
|
+
pushDeerKey: isSet(object.pushDeerKey) ? globalThis.String(object.pushDeerKey) : undefined,
|
|
2919
|
+
pushDeerUrl: isSet(object.pushDeerUrl) ? globalThis.String(object.pushDeerUrl) : undefined,
|
|
2920
|
+
synologyChatUrl: isSet(object.synologyChatUrl) ? globalThis.String(object.synologyChatUrl) : undefined,
|
|
2921
|
+
barkPush: isSet(object.barkPush) ? globalThis.String(object.barkPush) : undefined,
|
|
2922
|
+
barkIcon: isSet(object.barkIcon) ? globalThis.String(object.barkIcon) : undefined,
|
|
2923
|
+
barkSound: isSet(object.barkSound) ? globalThis.String(object.barkSound) : undefined,
|
|
2924
|
+
barkGroup: isSet(object.barkGroup) ? globalThis.String(object.barkGroup) : undefined,
|
|
2925
|
+
barkLevel: isSet(object.barkLevel) ? globalThis.String(object.barkLevel) : undefined,
|
|
2926
|
+
barkUrl: isSet(object.barkUrl) ? globalThis.String(object.barkUrl) : undefined,
|
|
2927
|
+
barkArchive: isSet(object.barkArchive) ? globalThis.String(object.barkArchive) : undefined,
|
|
2928
|
+
telegramBotToken: isSet(object.telegramBotToken) ? globalThis.String(object.telegramBotToken) : undefined,
|
|
2929
|
+
telegramBotUserId: isSet(object.telegramBotUserId) ? globalThis.String(object.telegramBotUserId) : undefined,
|
|
2930
|
+
telegramBotProxyHost: isSet(object.telegramBotProxyHost)
|
|
2931
|
+
? globalThis.String(object.telegramBotProxyHost)
|
|
2932
|
+
: undefined,
|
|
2933
|
+
telegramBotProxyPort: isSet(object.telegramBotProxyPort)
|
|
2934
|
+
? globalThis.String(object.telegramBotProxyPort)
|
|
2935
|
+
: undefined,
|
|
2936
|
+
telegramBotProxyAuth: isSet(object.telegramBotProxyAuth)
|
|
2937
|
+
? globalThis.String(object.telegramBotProxyAuth)
|
|
2938
|
+
: undefined,
|
|
2939
|
+
telegramBotApiHost: isSet(object.telegramBotApiHost) ? globalThis.String(object.telegramBotApiHost) : undefined,
|
|
2940
|
+
dingtalkBotToken: isSet(object.dingtalkBotToken) ? globalThis.String(object.dingtalkBotToken) : undefined,
|
|
2941
|
+
dingtalkBotSecret: isSet(object.dingtalkBotSecret) ? globalThis.String(object.dingtalkBotSecret) : undefined,
|
|
2942
|
+
weWorkBotKey: isSet(object.weWorkBotKey) ? globalThis.String(object.weWorkBotKey) : undefined,
|
|
2943
|
+
weWorkOrigin: isSet(object.weWorkOrigin) ? globalThis.String(object.weWorkOrigin) : undefined,
|
|
2944
|
+
weWorkAppKey: isSet(object.weWorkAppKey) ? globalThis.String(object.weWorkAppKey) : undefined,
|
|
2945
|
+
aibotkKey: isSet(object.aibotkKey) ? globalThis.String(object.aibotkKey) : undefined,
|
|
2946
|
+
aibotkType: isSet(object.aibotkType) ? globalThis.String(object.aibotkType) : undefined,
|
|
2947
|
+
aibotkName: isSet(object.aibotkName) ? globalThis.String(object.aibotkName) : undefined,
|
|
2948
|
+
iGotPushKey: isSet(object.iGotPushKey) ? globalThis.String(object.iGotPushKey) : undefined,
|
|
2949
|
+
pushPlusToken: isSet(object.pushPlusToken) ? globalThis.String(object.pushPlusToken) : undefined,
|
|
2950
|
+
pushPlusUser: isSet(object.pushPlusUser) ? globalThis.String(object.pushPlusUser) : undefined,
|
|
2951
|
+
pushPlusTemplate: isSet(object.pushPlusTemplate) ? globalThis.String(object.pushPlusTemplate) : undefined,
|
|
2952
|
+
pushplusChannel: isSet(object.pushplusChannel) ? globalThis.String(object.pushplusChannel) : undefined,
|
|
2953
|
+
pushplusWebhook: isSet(object.pushplusWebhook) ? globalThis.String(object.pushplusWebhook) : undefined,
|
|
2954
|
+
pushplusCallbackUrl: isSet(object.pushplusCallbackUrl)
|
|
2955
|
+
? globalThis.String(object.pushplusCallbackUrl)
|
|
2956
|
+
: undefined,
|
|
2957
|
+
pushplusTo: isSet(object.pushplusTo) ? globalThis.String(object.pushplusTo) : undefined,
|
|
2958
|
+
wePlusBotToken: isSet(object.wePlusBotToken) ? globalThis.String(object.wePlusBotToken) : undefined,
|
|
2959
|
+
wePlusBotReceiver: isSet(object.wePlusBotReceiver) ? globalThis.String(object.wePlusBotReceiver) : undefined,
|
|
2960
|
+
wePlusBotVersion: isSet(object.wePlusBotVersion) ? globalThis.String(object.wePlusBotVersion) : undefined,
|
|
2961
|
+
emailService: isSet(object.emailService) ? globalThis.String(object.emailService) : undefined,
|
|
2962
|
+
emailUser: isSet(object.emailUser) ? globalThis.String(object.emailUser) : undefined,
|
|
2963
|
+
emailPass: isSet(object.emailPass) ? globalThis.String(object.emailPass) : undefined,
|
|
2964
|
+
emailTo: isSet(object.emailTo) ? globalThis.String(object.emailTo) : undefined,
|
|
2965
|
+
pushMeKey: isSet(object.pushMeKey) ? globalThis.String(object.pushMeKey) : undefined,
|
|
2966
|
+
pushMeUrl: isSet(object.pushMeUrl) ? globalThis.String(object.pushMeUrl) : undefined,
|
|
2967
|
+
chronocatURL: isSet(object.chronocatURL) ? globalThis.String(object.chronocatURL) : undefined,
|
|
2968
|
+
chronocatQQ: isSet(object.chronocatQQ) ? globalThis.String(object.chronocatQQ) : undefined,
|
|
2969
|
+
chronocatToken: isSet(object.chronocatToken) ? globalThis.String(object.chronocatToken) : undefined,
|
|
2970
|
+
webhookHeaders: isSet(object.webhookHeaders) ? globalThis.String(object.webhookHeaders) : undefined,
|
|
2971
|
+
webhookBody: isSet(object.webhookBody) ? globalThis.String(object.webhookBody) : undefined,
|
|
2972
|
+
webhookUrl: isSet(object.webhookUrl) ? globalThis.String(object.webhookUrl) : undefined,
|
|
2973
|
+
webhookMethod: isSet(object.webhookMethod) ? globalThis.String(object.webhookMethod) : undefined,
|
|
2974
|
+
webhookContentType: isSet(object.webhookContentType) ? globalThis.String(object.webhookContentType) : undefined,
|
|
2975
|
+
larkKey: isSet(object.larkKey) ? globalThis.String(object.larkKey) : undefined,
|
|
2976
|
+
ntfyUrl: isSet(object.ntfyUrl) ? globalThis.String(object.ntfyUrl) : undefined,
|
|
2977
|
+
ntfyTopic: isSet(object.ntfyTopic) ? globalThis.String(object.ntfyTopic) : undefined,
|
|
2978
|
+
ntfyPriority: isSet(object.ntfyPriority) ? globalThis.String(object.ntfyPriority) : undefined,
|
|
2979
|
+
ntfyToken: isSet(object.ntfyToken) ? globalThis.String(object.ntfyToken) : undefined,
|
|
2980
|
+
ntfyUsername: isSet(object.ntfyUsername) ? globalThis.String(object.ntfyUsername) : undefined,
|
|
2981
|
+
ntfyPassword: isSet(object.ntfyPassword) ? globalThis.String(object.ntfyPassword) : undefined,
|
|
2982
|
+
ntfyActions: isSet(object.ntfyActions) ? globalThis.String(object.ntfyActions) : undefined,
|
|
2983
|
+
wxPusherBotAppToken: isSet(object.wxPusherBotAppToken)
|
|
2984
|
+
? globalThis.String(object.wxPusherBotAppToken)
|
|
2985
|
+
: undefined,
|
|
2986
|
+
wxPusherBotTopicIds: isSet(object.wxPusherBotTopicIds)
|
|
2987
|
+
? globalThis.String(object.wxPusherBotTopicIds)
|
|
2988
|
+
: undefined,
|
|
2989
|
+
wxPusherBotUids: isSet(object.wxPusherBotUids) ? globalThis.String(object.wxPusherBotUids) : undefined,
|
|
2990
|
+
};
|
|
2991
|
+
},
|
|
2992
|
+
toJSON(message) {
|
|
2993
|
+
const obj = {};
|
|
2994
|
+
if (message.type !== 0) {
|
|
2995
|
+
obj.type = notificationModeToJSON(message.type);
|
|
2996
|
+
}
|
|
2997
|
+
if (message.gotifyUrl !== undefined) {
|
|
2998
|
+
obj.gotifyUrl = message.gotifyUrl;
|
|
2999
|
+
}
|
|
3000
|
+
if (message.gotifyToken !== undefined) {
|
|
3001
|
+
obj.gotifyToken = message.gotifyToken;
|
|
3002
|
+
}
|
|
3003
|
+
if (message.gotifyPriority !== undefined) {
|
|
3004
|
+
obj.gotifyPriority = Math.round(message.gotifyPriority);
|
|
3005
|
+
}
|
|
3006
|
+
if (message.goCqHttpBotUrl !== undefined) {
|
|
3007
|
+
obj.goCqHttpBotUrl = message.goCqHttpBotUrl;
|
|
3008
|
+
}
|
|
3009
|
+
if (message.goCqHttpBotToken !== undefined) {
|
|
3010
|
+
obj.goCqHttpBotToken = message.goCqHttpBotToken;
|
|
3011
|
+
}
|
|
3012
|
+
if (message.goCqHttpBotQq !== undefined) {
|
|
3013
|
+
obj.goCqHttpBotQq = message.goCqHttpBotQq;
|
|
3014
|
+
}
|
|
3015
|
+
if (message.serverChanKey !== undefined) {
|
|
3016
|
+
obj.serverChanKey = message.serverChanKey;
|
|
3017
|
+
}
|
|
3018
|
+
if (message.pushDeerKey !== undefined) {
|
|
3019
|
+
obj.pushDeerKey = message.pushDeerKey;
|
|
3020
|
+
}
|
|
3021
|
+
if (message.pushDeerUrl !== undefined) {
|
|
3022
|
+
obj.pushDeerUrl = message.pushDeerUrl;
|
|
3023
|
+
}
|
|
3024
|
+
if (message.synologyChatUrl !== undefined) {
|
|
3025
|
+
obj.synologyChatUrl = message.synologyChatUrl;
|
|
3026
|
+
}
|
|
3027
|
+
if (message.barkPush !== undefined) {
|
|
3028
|
+
obj.barkPush = message.barkPush;
|
|
3029
|
+
}
|
|
3030
|
+
if (message.barkIcon !== undefined) {
|
|
3031
|
+
obj.barkIcon = message.barkIcon;
|
|
3032
|
+
}
|
|
3033
|
+
if (message.barkSound !== undefined) {
|
|
3034
|
+
obj.barkSound = message.barkSound;
|
|
3035
|
+
}
|
|
3036
|
+
if (message.barkGroup !== undefined) {
|
|
3037
|
+
obj.barkGroup = message.barkGroup;
|
|
3038
|
+
}
|
|
3039
|
+
if (message.barkLevel !== undefined) {
|
|
3040
|
+
obj.barkLevel = message.barkLevel;
|
|
3041
|
+
}
|
|
3042
|
+
if (message.barkUrl !== undefined) {
|
|
3043
|
+
obj.barkUrl = message.barkUrl;
|
|
3044
|
+
}
|
|
3045
|
+
if (message.barkArchive !== undefined) {
|
|
3046
|
+
obj.barkArchive = message.barkArchive;
|
|
3047
|
+
}
|
|
3048
|
+
if (message.telegramBotToken !== undefined) {
|
|
3049
|
+
obj.telegramBotToken = message.telegramBotToken;
|
|
3050
|
+
}
|
|
3051
|
+
if (message.telegramBotUserId !== undefined) {
|
|
3052
|
+
obj.telegramBotUserId = message.telegramBotUserId;
|
|
3053
|
+
}
|
|
3054
|
+
if (message.telegramBotProxyHost !== undefined) {
|
|
3055
|
+
obj.telegramBotProxyHost = message.telegramBotProxyHost;
|
|
3056
|
+
}
|
|
3057
|
+
if (message.telegramBotProxyPort !== undefined) {
|
|
3058
|
+
obj.telegramBotProxyPort = message.telegramBotProxyPort;
|
|
3059
|
+
}
|
|
3060
|
+
if (message.telegramBotProxyAuth !== undefined) {
|
|
3061
|
+
obj.telegramBotProxyAuth = message.telegramBotProxyAuth;
|
|
3062
|
+
}
|
|
3063
|
+
if (message.telegramBotApiHost !== undefined) {
|
|
3064
|
+
obj.telegramBotApiHost = message.telegramBotApiHost;
|
|
3065
|
+
}
|
|
3066
|
+
if (message.dingtalkBotToken !== undefined) {
|
|
3067
|
+
obj.dingtalkBotToken = message.dingtalkBotToken;
|
|
3068
|
+
}
|
|
3069
|
+
if (message.dingtalkBotSecret !== undefined) {
|
|
3070
|
+
obj.dingtalkBotSecret = message.dingtalkBotSecret;
|
|
3071
|
+
}
|
|
3072
|
+
if (message.weWorkBotKey !== undefined) {
|
|
3073
|
+
obj.weWorkBotKey = message.weWorkBotKey;
|
|
3074
|
+
}
|
|
3075
|
+
if (message.weWorkOrigin !== undefined) {
|
|
3076
|
+
obj.weWorkOrigin = message.weWorkOrigin;
|
|
3077
|
+
}
|
|
3078
|
+
if (message.weWorkAppKey !== undefined) {
|
|
3079
|
+
obj.weWorkAppKey = message.weWorkAppKey;
|
|
3080
|
+
}
|
|
3081
|
+
if (message.aibotkKey !== undefined) {
|
|
3082
|
+
obj.aibotkKey = message.aibotkKey;
|
|
3083
|
+
}
|
|
3084
|
+
if (message.aibotkType !== undefined) {
|
|
3085
|
+
obj.aibotkType = message.aibotkType;
|
|
3086
|
+
}
|
|
3087
|
+
if (message.aibotkName !== undefined) {
|
|
3088
|
+
obj.aibotkName = message.aibotkName;
|
|
3089
|
+
}
|
|
3090
|
+
if (message.iGotPushKey !== undefined) {
|
|
3091
|
+
obj.iGotPushKey = message.iGotPushKey;
|
|
3092
|
+
}
|
|
3093
|
+
if (message.pushPlusToken !== undefined) {
|
|
3094
|
+
obj.pushPlusToken = message.pushPlusToken;
|
|
3095
|
+
}
|
|
3096
|
+
if (message.pushPlusUser !== undefined) {
|
|
3097
|
+
obj.pushPlusUser = message.pushPlusUser;
|
|
3098
|
+
}
|
|
3099
|
+
if (message.pushPlusTemplate !== undefined) {
|
|
3100
|
+
obj.pushPlusTemplate = message.pushPlusTemplate;
|
|
3101
|
+
}
|
|
3102
|
+
if (message.pushplusChannel !== undefined) {
|
|
3103
|
+
obj.pushplusChannel = message.pushplusChannel;
|
|
3104
|
+
}
|
|
3105
|
+
if (message.pushplusWebhook !== undefined) {
|
|
3106
|
+
obj.pushplusWebhook = message.pushplusWebhook;
|
|
3107
|
+
}
|
|
3108
|
+
if (message.pushplusCallbackUrl !== undefined) {
|
|
3109
|
+
obj.pushplusCallbackUrl = message.pushplusCallbackUrl;
|
|
3110
|
+
}
|
|
3111
|
+
if (message.pushplusTo !== undefined) {
|
|
3112
|
+
obj.pushplusTo = message.pushplusTo;
|
|
3113
|
+
}
|
|
3114
|
+
if (message.wePlusBotToken !== undefined) {
|
|
3115
|
+
obj.wePlusBotToken = message.wePlusBotToken;
|
|
3116
|
+
}
|
|
3117
|
+
if (message.wePlusBotReceiver !== undefined) {
|
|
3118
|
+
obj.wePlusBotReceiver = message.wePlusBotReceiver;
|
|
3119
|
+
}
|
|
3120
|
+
if (message.wePlusBotVersion !== undefined) {
|
|
3121
|
+
obj.wePlusBotVersion = message.wePlusBotVersion;
|
|
3122
|
+
}
|
|
3123
|
+
if (message.emailService !== undefined) {
|
|
3124
|
+
obj.emailService = message.emailService;
|
|
3125
|
+
}
|
|
3126
|
+
if (message.emailUser !== undefined) {
|
|
3127
|
+
obj.emailUser = message.emailUser;
|
|
3128
|
+
}
|
|
3129
|
+
if (message.emailPass !== undefined) {
|
|
3130
|
+
obj.emailPass = message.emailPass;
|
|
3131
|
+
}
|
|
3132
|
+
if (message.emailTo !== undefined) {
|
|
3133
|
+
obj.emailTo = message.emailTo;
|
|
3134
|
+
}
|
|
3135
|
+
if (message.pushMeKey !== undefined) {
|
|
3136
|
+
obj.pushMeKey = message.pushMeKey;
|
|
3137
|
+
}
|
|
3138
|
+
if (message.pushMeUrl !== undefined) {
|
|
3139
|
+
obj.pushMeUrl = message.pushMeUrl;
|
|
3140
|
+
}
|
|
3141
|
+
if (message.chronocatURL !== undefined) {
|
|
3142
|
+
obj.chronocatURL = message.chronocatURL;
|
|
3143
|
+
}
|
|
3144
|
+
if (message.chronocatQQ !== undefined) {
|
|
3145
|
+
obj.chronocatQQ = message.chronocatQQ;
|
|
3146
|
+
}
|
|
3147
|
+
if (message.chronocatToken !== undefined) {
|
|
3148
|
+
obj.chronocatToken = message.chronocatToken;
|
|
3149
|
+
}
|
|
3150
|
+
if (message.webhookHeaders !== undefined) {
|
|
3151
|
+
obj.webhookHeaders = message.webhookHeaders;
|
|
3152
|
+
}
|
|
3153
|
+
if (message.webhookBody !== undefined) {
|
|
3154
|
+
obj.webhookBody = message.webhookBody;
|
|
3155
|
+
}
|
|
3156
|
+
if (message.webhookUrl !== undefined) {
|
|
3157
|
+
obj.webhookUrl = message.webhookUrl;
|
|
3158
|
+
}
|
|
3159
|
+
if (message.webhookMethod !== undefined) {
|
|
3160
|
+
obj.webhookMethod = message.webhookMethod;
|
|
3161
|
+
}
|
|
3162
|
+
if (message.webhookContentType !== undefined) {
|
|
3163
|
+
obj.webhookContentType = message.webhookContentType;
|
|
3164
|
+
}
|
|
3165
|
+
if (message.larkKey !== undefined) {
|
|
3166
|
+
obj.larkKey = message.larkKey;
|
|
3167
|
+
}
|
|
3168
|
+
if (message.ntfyUrl !== undefined) {
|
|
3169
|
+
obj.ntfyUrl = message.ntfyUrl;
|
|
3170
|
+
}
|
|
3171
|
+
if (message.ntfyTopic !== undefined) {
|
|
3172
|
+
obj.ntfyTopic = message.ntfyTopic;
|
|
3173
|
+
}
|
|
3174
|
+
if (message.ntfyPriority !== undefined) {
|
|
3175
|
+
obj.ntfyPriority = message.ntfyPriority;
|
|
3176
|
+
}
|
|
3177
|
+
if (message.ntfyToken !== undefined) {
|
|
3178
|
+
obj.ntfyToken = message.ntfyToken;
|
|
3179
|
+
}
|
|
3180
|
+
if (message.ntfyUsername !== undefined) {
|
|
3181
|
+
obj.ntfyUsername = message.ntfyUsername;
|
|
3182
|
+
}
|
|
3183
|
+
if (message.ntfyPassword !== undefined) {
|
|
3184
|
+
obj.ntfyPassword = message.ntfyPassword;
|
|
3185
|
+
}
|
|
3186
|
+
if (message.ntfyActions !== undefined) {
|
|
3187
|
+
obj.ntfyActions = message.ntfyActions;
|
|
3188
|
+
}
|
|
3189
|
+
if (message.wxPusherBotAppToken !== undefined) {
|
|
3190
|
+
obj.wxPusherBotAppToken = message.wxPusherBotAppToken;
|
|
3191
|
+
}
|
|
3192
|
+
if (message.wxPusherBotTopicIds !== undefined) {
|
|
3193
|
+
obj.wxPusherBotTopicIds = message.wxPusherBotTopicIds;
|
|
3194
|
+
}
|
|
3195
|
+
if (message.wxPusherBotUids !== undefined) {
|
|
3196
|
+
obj.wxPusherBotUids = message.wxPusherBotUids;
|
|
3197
|
+
}
|
|
3198
|
+
return obj;
|
|
3199
|
+
},
|
|
3200
|
+
create(base) {
|
|
3201
|
+
return exports.NotificationInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3202
|
+
},
|
|
3203
|
+
fromPartial(object) {
|
|
3204
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43;
|
|
3205
|
+
const message = createBaseNotificationInfo();
|
|
3206
|
+
message.type = (_a = object.type) !== null && _a !== void 0 ? _a : 0;
|
|
3207
|
+
message.gotifyUrl = (_b = object.gotifyUrl) !== null && _b !== void 0 ? _b : undefined;
|
|
3208
|
+
message.gotifyToken = (_c = object.gotifyToken) !== null && _c !== void 0 ? _c : undefined;
|
|
3209
|
+
message.gotifyPriority = (_d = object.gotifyPriority) !== null && _d !== void 0 ? _d : undefined;
|
|
3210
|
+
message.goCqHttpBotUrl = (_e = object.goCqHttpBotUrl) !== null && _e !== void 0 ? _e : undefined;
|
|
3211
|
+
message.goCqHttpBotToken = (_f = object.goCqHttpBotToken) !== null && _f !== void 0 ? _f : undefined;
|
|
3212
|
+
message.goCqHttpBotQq = (_g = object.goCqHttpBotQq) !== null && _g !== void 0 ? _g : undefined;
|
|
3213
|
+
message.serverChanKey = (_h = object.serverChanKey) !== null && _h !== void 0 ? _h : undefined;
|
|
3214
|
+
message.pushDeerKey = (_j = object.pushDeerKey) !== null && _j !== void 0 ? _j : undefined;
|
|
3215
|
+
message.pushDeerUrl = (_k = object.pushDeerUrl) !== null && _k !== void 0 ? _k : undefined;
|
|
3216
|
+
message.synologyChatUrl = (_l = object.synologyChatUrl) !== null && _l !== void 0 ? _l : undefined;
|
|
3217
|
+
message.barkPush = (_m = object.barkPush) !== null && _m !== void 0 ? _m : undefined;
|
|
3218
|
+
message.barkIcon = (_o = object.barkIcon) !== null && _o !== void 0 ? _o : undefined;
|
|
3219
|
+
message.barkSound = (_p = object.barkSound) !== null && _p !== void 0 ? _p : undefined;
|
|
3220
|
+
message.barkGroup = (_q = object.barkGroup) !== null && _q !== void 0 ? _q : undefined;
|
|
3221
|
+
message.barkLevel = (_r = object.barkLevel) !== null && _r !== void 0 ? _r : undefined;
|
|
3222
|
+
message.barkUrl = (_s = object.barkUrl) !== null && _s !== void 0 ? _s : undefined;
|
|
3223
|
+
message.barkArchive = (_t = object.barkArchive) !== null && _t !== void 0 ? _t : undefined;
|
|
3224
|
+
message.telegramBotToken = (_u = object.telegramBotToken) !== null && _u !== void 0 ? _u : undefined;
|
|
3225
|
+
message.telegramBotUserId = (_v = object.telegramBotUserId) !== null && _v !== void 0 ? _v : undefined;
|
|
3226
|
+
message.telegramBotProxyHost = (_w = object.telegramBotProxyHost) !== null && _w !== void 0 ? _w : undefined;
|
|
3227
|
+
message.telegramBotProxyPort = (_x = object.telegramBotProxyPort) !== null && _x !== void 0 ? _x : undefined;
|
|
3228
|
+
message.telegramBotProxyAuth = (_y = object.telegramBotProxyAuth) !== null && _y !== void 0 ? _y : undefined;
|
|
3229
|
+
message.telegramBotApiHost = (_z = object.telegramBotApiHost) !== null && _z !== void 0 ? _z : undefined;
|
|
3230
|
+
message.dingtalkBotToken = (_0 = object.dingtalkBotToken) !== null && _0 !== void 0 ? _0 : undefined;
|
|
3231
|
+
message.dingtalkBotSecret = (_1 = object.dingtalkBotSecret) !== null && _1 !== void 0 ? _1 : undefined;
|
|
3232
|
+
message.weWorkBotKey = (_2 = object.weWorkBotKey) !== null && _2 !== void 0 ? _2 : undefined;
|
|
3233
|
+
message.weWorkOrigin = (_3 = object.weWorkOrigin) !== null && _3 !== void 0 ? _3 : undefined;
|
|
3234
|
+
message.weWorkAppKey = (_4 = object.weWorkAppKey) !== null && _4 !== void 0 ? _4 : undefined;
|
|
3235
|
+
message.aibotkKey = (_5 = object.aibotkKey) !== null && _5 !== void 0 ? _5 : undefined;
|
|
3236
|
+
message.aibotkType = (_6 = object.aibotkType) !== null && _6 !== void 0 ? _6 : undefined;
|
|
3237
|
+
message.aibotkName = (_7 = object.aibotkName) !== null && _7 !== void 0 ? _7 : undefined;
|
|
3238
|
+
message.iGotPushKey = (_8 = object.iGotPushKey) !== null && _8 !== void 0 ? _8 : undefined;
|
|
3239
|
+
message.pushPlusToken = (_9 = object.pushPlusToken) !== null && _9 !== void 0 ? _9 : undefined;
|
|
3240
|
+
message.pushPlusUser = (_10 = object.pushPlusUser) !== null && _10 !== void 0 ? _10 : undefined;
|
|
3241
|
+
message.pushPlusTemplate = (_11 = object.pushPlusTemplate) !== null && _11 !== void 0 ? _11 : undefined;
|
|
3242
|
+
message.pushplusChannel = (_12 = object.pushplusChannel) !== null && _12 !== void 0 ? _12 : undefined;
|
|
3243
|
+
message.pushplusWebhook = (_13 = object.pushplusWebhook) !== null && _13 !== void 0 ? _13 : undefined;
|
|
3244
|
+
message.pushplusCallbackUrl = (_14 = object.pushplusCallbackUrl) !== null && _14 !== void 0 ? _14 : undefined;
|
|
3245
|
+
message.pushplusTo = (_15 = object.pushplusTo) !== null && _15 !== void 0 ? _15 : undefined;
|
|
3246
|
+
message.wePlusBotToken = (_16 = object.wePlusBotToken) !== null && _16 !== void 0 ? _16 : undefined;
|
|
3247
|
+
message.wePlusBotReceiver = (_17 = object.wePlusBotReceiver) !== null && _17 !== void 0 ? _17 : undefined;
|
|
3248
|
+
message.wePlusBotVersion = (_18 = object.wePlusBotVersion) !== null && _18 !== void 0 ? _18 : undefined;
|
|
3249
|
+
message.emailService = (_19 = object.emailService) !== null && _19 !== void 0 ? _19 : undefined;
|
|
3250
|
+
message.emailUser = (_20 = object.emailUser) !== null && _20 !== void 0 ? _20 : undefined;
|
|
3251
|
+
message.emailPass = (_21 = object.emailPass) !== null && _21 !== void 0 ? _21 : undefined;
|
|
3252
|
+
message.emailTo = (_22 = object.emailTo) !== null && _22 !== void 0 ? _22 : undefined;
|
|
3253
|
+
message.pushMeKey = (_23 = object.pushMeKey) !== null && _23 !== void 0 ? _23 : undefined;
|
|
3254
|
+
message.pushMeUrl = (_24 = object.pushMeUrl) !== null && _24 !== void 0 ? _24 : undefined;
|
|
3255
|
+
message.chronocatURL = (_25 = object.chronocatURL) !== null && _25 !== void 0 ? _25 : undefined;
|
|
3256
|
+
message.chronocatQQ = (_26 = object.chronocatQQ) !== null && _26 !== void 0 ? _26 : undefined;
|
|
3257
|
+
message.chronocatToken = (_27 = object.chronocatToken) !== null && _27 !== void 0 ? _27 : undefined;
|
|
3258
|
+
message.webhookHeaders = (_28 = object.webhookHeaders) !== null && _28 !== void 0 ? _28 : undefined;
|
|
3259
|
+
message.webhookBody = (_29 = object.webhookBody) !== null && _29 !== void 0 ? _29 : undefined;
|
|
3260
|
+
message.webhookUrl = (_30 = object.webhookUrl) !== null && _30 !== void 0 ? _30 : undefined;
|
|
3261
|
+
message.webhookMethod = (_31 = object.webhookMethod) !== null && _31 !== void 0 ? _31 : undefined;
|
|
3262
|
+
message.webhookContentType = (_32 = object.webhookContentType) !== null && _32 !== void 0 ? _32 : undefined;
|
|
3263
|
+
message.larkKey = (_33 = object.larkKey) !== null && _33 !== void 0 ? _33 : undefined;
|
|
3264
|
+
message.ntfyUrl = (_34 = object.ntfyUrl) !== null && _34 !== void 0 ? _34 : undefined;
|
|
3265
|
+
message.ntfyTopic = (_35 = object.ntfyTopic) !== null && _35 !== void 0 ? _35 : undefined;
|
|
3266
|
+
message.ntfyPriority = (_36 = object.ntfyPriority) !== null && _36 !== void 0 ? _36 : undefined;
|
|
3267
|
+
message.ntfyToken = (_37 = object.ntfyToken) !== null && _37 !== void 0 ? _37 : undefined;
|
|
3268
|
+
message.ntfyUsername = (_38 = object.ntfyUsername) !== null && _38 !== void 0 ? _38 : undefined;
|
|
3269
|
+
message.ntfyPassword = (_39 = object.ntfyPassword) !== null && _39 !== void 0 ? _39 : undefined;
|
|
3270
|
+
message.ntfyActions = (_40 = object.ntfyActions) !== null && _40 !== void 0 ? _40 : undefined;
|
|
3271
|
+
message.wxPusherBotAppToken = (_41 = object.wxPusherBotAppToken) !== null && _41 !== void 0 ? _41 : undefined;
|
|
3272
|
+
message.wxPusherBotTopicIds = (_42 = object.wxPusherBotTopicIds) !== null && _42 !== void 0 ? _42 : undefined;
|
|
3273
|
+
message.wxPusherBotUids = (_43 = object.wxPusherBotUids) !== null && _43 !== void 0 ? _43 : undefined;
|
|
3274
|
+
return message;
|
|
3275
|
+
},
|
|
3276
|
+
};
|
|
3277
|
+
function createBaseSystemNotifyRequest() {
|
|
3278
|
+
return { title: "", content: "", notificationInfo: undefined };
|
|
3279
|
+
}
|
|
3280
|
+
exports.SystemNotifyRequest = {
|
|
3281
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3282
|
+
if (message.title !== "") {
|
|
3283
|
+
writer.uint32(10).string(message.title);
|
|
3284
|
+
}
|
|
3285
|
+
if (message.content !== "") {
|
|
3286
|
+
writer.uint32(18).string(message.content);
|
|
3287
|
+
}
|
|
3288
|
+
if (message.notificationInfo !== undefined) {
|
|
3289
|
+
exports.NotificationInfo.encode(message.notificationInfo, writer.uint32(26).fork()).join();
|
|
3290
|
+
}
|
|
3291
|
+
return writer;
|
|
3292
|
+
},
|
|
3293
|
+
decode(input, length) {
|
|
3294
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3295
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3296
|
+
const message = createBaseSystemNotifyRequest();
|
|
3297
|
+
while (reader.pos < end) {
|
|
3298
|
+
const tag = reader.uint32();
|
|
3299
|
+
switch (tag >>> 3) {
|
|
3300
|
+
case 1: {
|
|
3301
|
+
if (tag !== 10) {
|
|
3302
|
+
break;
|
|
3303
|
+
}
|
|
3304
|
+
message.title = reader.string();
|
|
3305
|
+
continue;
|
|
3306
|
+
}
|
|
3307
|
+
case 2: {
|
|
3308
|
+
if (tag !== 18) {
|
|
3309
|
+
break;
|
|
3310
|
+
}
|
|
3311
|
+
message.content = reader.string();
|
|
3312
|
+
continue;
|
|
3313
|
+
}
|
|
3314
|
+
case 3: {
|
|
3315
|
+
if (tag !== 26) {
|
|
3316
|
+
break;
|
|
3317
|
+
}
|
|
3318
|
+
message.notificationInfo = exports.NotificationInfo.decode(reader, reader.uint32());
|
|
3319
|
+
continue;
|
|
3320
|
+
}
|
|
3321
|
+
}
|
|
3322
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3323
|
+
break;
|
|
3324
|
+
}
|
|
3325
|
+
reader.skip(tag & 7);
|
|
3326
|
+
}
|
|
3327
|
+
return message;
|
|
3328
|
+
},
|
|
3329
|
+
fromJSON(object) {
|
|
3330
|
+
return {
|
|
3331
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
3332
|
+
content: isSet(object.content) ? globalThis.String(object.content) : "",
|
|
3333
|
+
notificationInfo: isSet(object.notificationInfo) ? exports.NotificationInfo.fromJSON(object.notificationInfo) : undefined,
|
|
3334
|
+
};
|
|
3335
|
+
},
|
|
3336
|
+
toJSON(message) {
|
|
3337
|
+
const obj = {};
|
|
3338
|
+
if (message.title !== "") {
|
|
3339
|
+
obj.title = message.title;
|
|
3340
|
+
}
|
|
3341
|
+
if (message.content !== "") {
|
|
3342
|
+
obj.content = message.content;
|
|
3343
|
+
}
|
|
3344
|
+
if (message.notificationInfo !== undefined) {
|
|
3345
|
+
obj.notificationInfo = exports.NotificationInfo.toJSON(message.notificationInfo);
|
|
3346
|
+
}
|
|
3347
|
+
return obj;
|
|
3348
|
+
},
|
|
3349
|
+
create(base) {
|
|
3350
|
+
return exports.SystemNotifyRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3351
|
+
},
|
|
3352
|
+
fromPartial(object) {
|
|
3353
|
+
var _a, _b;
|
|
3354
|
+
const message = createBaseSystemNotifyRequest();
|
|
3355
|
+
message.title = (_a = object.title) !== null && _a !== void 0 ? _a : "";
|
|
3356
|
+
message.content = (_b = object.content) !== null && _b !== void 0 ? _b : "";
|
|
3357
|
+
message.notificationInfo = (object.notificationInfo !== undefined && object.notificationInfo !== null)
|
|
3358
|
+
? exports.NotificationInfo.fromPartial(object.notificationInfo)
|
|
3359
|
+
: undefined;
|
|
3360
|
+
return message;
|
|
3361
|
+
},
|
|
3362
|
+
};
|
|
2059
3363
|
exports.ApiService = {
|
|
2060
3364
|
getEnvs: {
|
|
2061
3365
|
path: "/com.ql.api.Api/GetEnvs",
|