@satorijs/adapter-dingtalk 2.3.0 → 2.4.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/lib/index.cjs ADDED
@@ -0,0 +1,1855 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/index.ts
31
+ var src_exports = {};
32
+ __export(src_exports, {
33
+ DingtalkBot: () => DingtalkBot,
34
+ DingtalkMessageEncoder: () => DingtalkMessageEncoder,
35
+ HttpServer: () => HttpServer,
36
+ decodeMessage: () => decodeMessage,
37
+ default: () => src_default,
38
+ escape: () => escape,
39
+ unescape: () => unescape
40
+ });
41
+ module.exports = __toCommonJS(src_exports);
42
+
43
+ // src/bot.ts
44
+ var import_core5 = require("@satorijs/core");
45
+
46
+ // src/http.ts
47
+ var import_core2 = require("@satorijs/core");
48
+ var import_node_crypto = __toESM(require("node:crypto"), 1);
49
+
50
+ // src/utils.ts
51
+ var import_core = require("@satorijs/core");
52
+ async function decodeMessage(bot, body) {
53
+ const session = bot.session();
54
+ session.type = "message";
55
+ session.messageId = body.msgId;
56
+ session.guildId = body.chatbotCorpId;
57
+ session.event.user = {
58
+ id: body.senderStaffId,
59
+ name: body.senderNick
60
+ };
61
+ if (body.conversationType === "1") {
62
+ session.channelId = session.userId;
63
+ session.isDirect = true;
64
+ } else {
65
+ const atUsers = body.atUsers.filter((v) => v.dingtalkId !== body.chatbotUserId).map((v) => import_core.h.at(v.staffId));
66
+ session.elements = [import_core.h.at(body.robotCode), ...atUsers];
67
+ session.channelId = body.conversationId;
68
+ session.isDirect = false;
69
+ }
70
+ if (body.conversationTitle) {
71
+ session.event.channel.name = body.conversationTitle;
72
+ }
73
+ session.event.member = {
74
+ roles: body.isAdmin ? ["admin"] : []
75
+ };
76
+ session.timestamp = +body.createAt;
77
+ if (body.msgtype === "text") {
78
+ session.elements = [import_core.h.text(body.text.content)];
79
+ } else if (body.msgtype === "richText") {
80
+ const elements = [];
81
+ for (const item of body.content.richText) {
82
+ if (item.text)
83
+ elements.push(import_core.h.text(item.text));
84
+ if (item.downloadCode) {
85
+ const url = await bot.downloadFile(item.downloadCode);
86
+ elements.push(import_core.h.image(url));
87
+ }
88
+ }
89
+ session.elements = elements;
90
+ } else if (body.msgtype === "picture") {
91
+ session.elements = [import_core.h.image(await bot.downloadFile(body.content.downloadCode))];
92
+ } else if (body.msgtype === "file") {
93
+ session.elements = [import_core.h.file(await bot.downloadFile(body.content.downloadCode))];
94
+ } else {
95
+ return;
96
+ }
97
+ session.content = session.elements.join("");
98
+ return session;
99
+ }
100
+ __name(decodeMessage, "decodeMessage");
101
+
102
+ // src/http.ts
103
+ var HttpServer = class extends import_core2.Adapter {
104
+ static {
105
+ __name(this, "HttpServer");
106
+ }
107
+ static inject = ["server"];
108
+ logger;
109
+ constructor(ctx, bot) {
110
+ super(ctx);
111
+ this.logger = ctx.logger("dingtalk");
112
+ }
113
+ async connect(bot) {
114
+ await bot.refreshToken();
115
+ await bot.getLogin();
116
+ bot.online();
117
+ this.ctx.server.post("/dingtalk", async (ctx) => {
118
+ const timestamp = ctx.get("timestamp");
119
+ const sign = ctx.get("sign");
120
+ if (!timestamp || !sign)
121
+ return ctx.status = 403;
122
+ const timeDiff = Math.abs(Date.now() - Number(timestamp));
123
+ if (timeDiff > 36e5)
124
+ return ctx.status = 401;
125
+ const signContent = timestamp + "\n" + bot.config.secret;
126
+ const computedSign = import_node_crypto.default.createHmac("sha256", bot.config.secret).update(signContent).digest("base64");
127
+ if (computedSign !== sign)
128
+ return ctx.status = 403;
129
+ const body = ctx.request.body;
130
+ this.logger.debug(body);
131
+ const session = await decodeMessage(bot, body);
132
+ this.logger.debug(session);
133
+ if (session)
134
+ bot.dispatch(session);
135
+ });
136
+ }
137
+ };
138
+
139
+ // src/message.ts
140
+ var import_core3 = require("@satorijs/core");
141
+ var escape = /* @__PURE__ */ __name((val) => val.replace(/(?<!\u200b)[\*_~`]/g, "​$&").replace(/([\\`*_{}[\]\-(#!>])/g, "\\$&").replace(/([\-\*]|\d\.) /g, "​$&").replace(/^(\s{4})/gm, "​&nbsp;&nbsp;&nbsp;&nbsp;"), "escape");
142
+ var unescape = /* @__PURE__ */ __name((val) => val.replace(/\u200b([\*_~`])/g, "$1"), "unescape");
143
+ var DingtalkMessageEncoder = class extends import_core3.MessageEncoder {
144
+ static {
145
+ __name(this, "DingtalkMessageEncoder");
146
+ }
147
+ buffer = "";
148
+ /**
149
+ * Markdown: https://open.dingtalk.com/document/isvapp/robot-message-types-and-data-format
150
+ */
151
+ hasRichContent = true;
152
+ async flush() {
153
+ if (this.buffer.length && !this.hasRichContent) {
154
+ await this.sendMessage("sampleText", {
155
+ content: this.buffer
156
+ });
157
+ } else if (this.buffer.length && this.hasRichContent) {
158
+ await this.sendMessage("sampleMarkdown", {
159
+ text: this.buffer.replace(/\n/g, "\n\n")
160
+ });
161
+ }
162
+ }
163
+ // https://open.dingtalk.com/document/orgapp/the-robot-sends-a-group-message
164
+ async sendMessage(msgType, msgParam) {
165
+ const { processQueryKey } = this.session.isDirect ? await this.bot.internal.batchSendOTO({
166
+ msgKey: msgType,
167
+ msgParam: JSON.stringify(msgParam),
168
+ robotCode: this.bot.config.appkey,
169
+ userIds: [this.session.channelId]
170
+ }) : await this.bot.internal.orgGroupSend({
171
+ // https://open.dingtalk.com/document/orgapp/types-of-messages-sent-by-robots
172
+ msgKey: msgType,
173
+ msgParam: JSON.stringify(msgParam),
174
+ robotCode: this.bot.config.appkey,
175
+ openConversationId: this.channelId
176
+ });
177
+ const session = this.bot.session();
178
+ session.messageId = processQueryKey;
179
+ session.channelId = this.session.channelId;
180
+ session.guildId = this.session.guildId;
181
+ session.app.emit(session, "send", session);
182
+ this.results.push({
183
+ id: processQueryKey
184
+ });
185
+ }
186
+ // https://open.dingtalk.com/document/orgapp/upload-media-files?spm=ding_open_doc.document.0.0.3b166172ERBuHw
187
+ async uploadMedia(attrs) {
188
+ const { data, mime } = await this.bot.ctx.http.file(attrs.src || attrs.url, attrs);
189
+ const form = new FormData();
190
+ const value = new Blob([data], { type: mime });
191
+ let type;
192
+ if (mime.startsWith("image/") || mime.startsWith("video/")) {
193
+ type = mime.split("/")[0];
194
+ } else if (mime.startsWith("audio/")) {
195
+ type = "voice";
196
+ } else {
197
+ type = "file";
198
+ }
199
+ form.append("type", type);
200
+ form.append("media", value);
201
+ const { media_id } = await this.bot.oldHttp.post("/media/upload", form);
202
+ return media_id;
203
+ }
204
+ listType = null;
205
+ async visit(element) {
206
+ const { type, attrs, children } = element;
207
+ if (type === "text") {
208
+ this.buffer += escape(attrs.content);
209
+ } else if ((type === "img" || type === "image") && (attrs.src || attrs.url)) {
210
+ const src = attrs.src || attrs.url;
211
+ if (await this.bot.http.isLocal(src)) {
212
+ const temp = this.bot.ctx.get("server.temp");
213
+ if (!temp) {
214
+ return this.bot.logger.warn("missing temporary file service, cannot send assets with private url");
215
+ }
216
+ const entry = await temp.create(src);
217
+ this.buffer += `![${attrs.alt ?? ""}](${entry.url})`;
218
+ } else {
219
+ this.buffer += `![${attrs.alt ?? ""}](${src})`;
220
+ }
221
+ } else if (type === "message") {
222
+ await this.flush();
223
+ await this.render(children);
224
+ } else if (type === "at") {
225
+ this.buffer += `@${attrs.id}`;
226
+ } else if (type === "br") {
227
+ this.buffer += "\n";
228
+ } else if (type === "p") {
229
+ if (!this.buffer.endsWith("\n"))
230
+ this.buffer += "\n";
231
+ await this.render(children);
232
+ if (!this.buffer.endsWith("\n"))
233
+ this.buffer += "\n";
234
+ this.buffer += "\n";
235
+ } else if (type === "b" || type === "strong") {
236
+ this.buffer += ` **`;
237
+ await this.render(children);
238
+ this.buffer += `** `;
239
+ } else if (type === "i" || type === "em") {
240
+ this.buffer += ` *`;
241
+ await this.render(children);
242
+ this.buffer += `* `;
243
+ } else if (type === "a" && attrs.href) {
244
+ this.buffer += `[`;
245
+ await this.render(children);
246
+ this.buffer += `](${encodeURI(attrs.href)})`;
247
+ } else if (type === "ul" || type === "ol") {
248
+ this.listType = type;
249
+ await this.render(children);
250
+ this.listType = null;
251
+ } else if (type === "li") {
252
+ if (!this.buffer.endsWith("\n"))
253
+ this.buffer += "\n";
254
+ if (this.listType === "ol") {
255
+ this.buffer += `1. `;
256
+ } else if (this.listType === "ul") {
257
+ this.buffer += "- ";
258
+ }
259
+ this.render(children);
260
+ this.buffer += "\n";
261
+ } else if (type === "blockquote") {
262
+ if (!this.buffer.endsWith("\n"))
263
+ this.buffer += "\n";
264
+ this.buffer += "> ";
265
+ await this.render(children);
266
+ this.buffer += "\n\n";
267
+ }
268
+ }
269
+ };
270
+
271
+ // src/ws.ts
272
+ var import_core4 = require("@satorijs/core");
273
+ var WsClient = class extends import_core4.Adapter.WsClient {
274
+ static {
275
+ __name(this, "WsClient");
276
+ }
277
+ async prepare() {
278
+ await this.bot.refreshToken();
279
+ await this.bot.getLogin();
280
+ const { endpoint, ticket } = await this.bot.http.post("/gateway/connections/open", {
281
+ clientId: this.bot.config.appkey,
282
+ clientSecret: this.bot.config.secret,
283
+ subscriptions: [
284
+ {
285
+ type: "CALLBACK",
286
+ topic: "/v1.0/im/bot/messages/get"
287
+ }
288
+ ]
289
+ });
290
+ return this.bot.http.ws(`${endpoint}?ticket=${ticket}`);
291
+ }
292
+ accept() {
293
+ this.bot.online();
294
+ this.socket.addEventListener("message", async ({ data }) => {
295
+ const parsed = JSON.parse(data.toString());
296
+ this.bot.logger.debug(parsed);
297
+ if (parsed.type === "SYSTEM") {
298
+ if (parsed.headers.topic === "ping") {
299
+ this.socket.send(JSON.stringify({
300
+ code: 200,
301
+ headers: parsed.headers,
302
+ message: "OK",
303
+ data: parsed.data
304
+ }));
305
+ }
306
+ } else if (parsed.type === "CALLBACK") {
307
+ this.bot.logger.debug(JSON.parse(parsed.data));
308
+ const session = await decodeMessage(this.bot, JSON.parse(parsed.data));
309
+ if (session)
310
+ this.bot.dispatch(session);
311
+ this.bot.logger.debug(session);
312
+ }
313
+ });
314
+ }
315
+ };
316
+ ((WsClient2) => {
317
+ WsClient2.Options = import_core4.Schema.intersect([
318
+ import_core4.Adapter.WsClientConfig
319
+ ]);
320
+ })(WsClient || (WsClient = {}));
321
+
322
+ // src/internal.ts
323
+ var Internal = class _Internal {
324
+ constructor(bot) {
325
+ this.bot = bot;
326
+ }
327
+ static {
328
+ __name(this, "Internal");
329
+ }
330
+ static define(routes) {
331
+ for (const path in routes) {
332
+ for (const key in routes[path]) {
333
+ const method = key;
334
+ for (const name of Object.keys(routes[path][method])) {
335
+ const isOldApi = routes[path][method][name];
336
+ _Internal.prototype[name] = async function(...args) {
337
+ const raw = args.join(", ");
338
+ const url = path.replace(/\{([^}]+)\}/g, () => {
339
+ if (!args.length)
340
+ throw new Error(`too few arguments for ${path}, received ${raw}`);
341
+ return args.shift();
342
+ });
343
+ const config = {};
344
+ if (args.length === 1) {
345
+ if (method === "GET" || method === "DELETE") {
346
+ config.params = args[0];
347
+ } else {
348
+ config.data = args[0];
349
+ }
350
+ } else if (args.length === 2 && method !== "GET" && method !== "DELETE") {
351
+ config.data = args[0];
352
+ config.params = args[1];
353
+ } else if (args.length > 1) {
354
+ throw new Error(`too many arguments for ${path}, received ${raw}`);
355
+ }
356
+ const quester = isOldApi ? this.bot.oldHttp : this.bot.http;
357
+ if (isOldApi) {
358
+ config.params = { ...config.params, access_token: this.bot.token };
359
+ }
360
+ try {
361
+ return (await quester(method, url, config)).data;
362
+ } catch (error) {
363
+ if (!this.bot.http.isError(error) || !error.response)
364
+ throw error;
365
+ throw new Error(`[${error.response.status}] ${JSON.stringify(error.response.data)}`);
366
+ }
367
+ };
368
+ }
369
+ }
370
+ }
371
+ }
372
+ };
373
+
374
+ // src/bot.ts
375
+ var DingtalkBot = class extends import_core5.Bot {
376
+ static {
377
+ __name(this, "DingtalkBot");
378
+ }
379
+ static MessageEncoder = DingtalkMessageEncoder;
380
+ static inject = ["http"];
381
+ oldHttp;
382
+ http;
383
+ internal;
384
+ refreshTokenTimer;
385
+ constructor(ctx, config) {
386
+ super(ctx, config, "dingtalk");
387
+ this.selfId = config.appkey;
388
+ this.http = ctx.http.extend(config.api);
389
+ this.oldHttp = ctx.http.extend(config.oldApi);
390
+ this.internal = new Internal(this);
391
+ if (config.protocol === "http") {
392
+ ctx.plugin(HttpServer, this);
393
+ } else if (config.protocol === "ws") {
394
+ ctx.plugin(WsClient, this);
395
+ }
396
+ }
397
+ async getLogin() {
398
+ try {
399
+ const { appList } = await this.internal.listAllInnerApps();
400
+ const self2 = appList.find((v) => v.agentId === this.config.agentId);
401
+ if (self2) {
402
+ this.user.name = self2.name;
403
+ this.user.avatar = self2.icon;
404
+ return this.toJSON();
405
+ }
406
+ } catch (e) {
407
+ this.logger.warn(e);
408
+ }
409
+ const data = await this.internal.oapiMicroappList();
410
+ if (!data.appList) {
411
+ this.logger.error("getLogin failed: %o", data);
412
+ return this.toJSON();
413
+ }
414
+ const self = data.appList.find((v) => v.agentId === this.config.agentId);
415
+ if (self) {
416
+ this.user.name = self.name;
417
+ this.user.avatar = self.appIcon;
418
+ }
419
+ return this.toJSON();
420
+ }
421
+ stop() {
422
+ clearTimeout(this.refreshTokenTimer);
423
+ return super.stop();
424
+ }
425
+ token;
426
+ async refreshToken() {
427
+ const data = await this.internal.getAccessToken({
428
+ appKey: this.config.appkey,
429
+ appSecret: this.config.secret
430
+ });
431
+ this.logger.debug("gettoken result: %o", data);
432
+ this.token = data.accessToken;
433
+ this.http = this.http.extend({
434
+ headers: {
435
+ "x-acs-dingtalk-access-token": data.accessToken
436
+ }
437
+ }).extend(this.config.api);
438
+ this.refreshTokenTimer = setTimeout(this.refreshToken.bind(this), (data.expireIn - 10) * 1e3);
439
+ }
440
+ // https://open.dingtalk.com/document/orgapp/download-the-file-content-of-the-robot-receiving-message
441
+ async downloadFile(downloadCode) {
442
+ const { downloadUrl } = await this.internal.robotMessageFileDownload({
443
+ downloadCode,
444
+ robotCode: this.selfId
445
+ });
446
+ return downloadUrl;
447
+ }
448
+ async deleteMessage(channelId, messageId) {
449
+ if (channelId.startsWith("cid")) {
450
+ await this.internal.orgGroupRecall({
451
+ robotCode: this.selfId,
452
+ processQueryKeys: [messageId],
453
+ openConversationId: channelId
454
+ });
455
+ } else {
456
+ await this.internal.batchRecallOTO({
457
+ robotCode: this.selfId,
458
+ processQueryKeys: [messageId]
459
+ });
460
+ }
461
+ }
462
+ };
463
+ ((DingtalkBot2) => {
464
+ DingtalkBot2.Config = import_core5.Schema.intersect([
465
+ import_core5.Schema.object({
466
+ protocol: process.env.KOISHI_ENV === "browser" ? import_core5.Schema.const("ws").default("ws") : import_core5.Schema.union(["http", "ws"]).description("选择要使用的协议。").required()
467
+ }),
468
+ import_core5.Schema.object({
469
+ secret: import_core5.Schema.string().required().description("机器人密钥。"),
470
+ agentId: import_core5.Schema.number().description("AgentId"),
471
+ appkey: import_core5.Schema.string().required(),
472
+ api: import_core5.HTTP.createConfig("https://api.dingtalk.com/v1.0/"),
473
+ oldApi: import_core5.HTTP.createConfig("https://oapi.dingtalk.com/")
474
+ }),
475
+ WsClient.Options
476
+ ]);
477
+ })(DingtalkBot || (DingtalkBot = {}));
478
+
479
+ // src/api/oauth2.ts
480
+ Internal.define({
481
+ "/oauth2/jsapiTickets": { POST: { createJsapiTicket: false } },
482
+ "/oauth2/ssoAccessToken": { POST: { getSsoAccessToken: false } },
483
+ "/oauth2/authRules/user": { GET: { getPersonalAuthRule: false } },
484
+ "/oauth2/accessToken": { POST: { getAccessToken: false } },
485
+ "/oauth2/corpAccessToken": { POST: { getCorpAccessToken: false } },
486
+ "/oauth2/userAccessToken": { POST: { getUserToken: false } },
487
+ "/oauth2/ssoUserInfo": { GET: { getSsoUserInfo: false } }
488
+ });
489
+
490
+ // src/api/oapi.ts
491
+ Internal.define({
492
+ "/service/get_corp_token": { POST: { oapiServiceGetCorpToken: true } },
493
+ "/sso/gettoken": { GET: { oapiSsoGettoken: true } },
494
+ "/get_jsapi_ticket": { GET: { oapiGetJsapiTicket: true } },
495
+ "/gettoken": { GET: { oapiGettoken: true } },
496
+ "/v2/user/getuserinfo": { POST: { oapiV2UserGetuserinfo: true } },
497
+ "/sns/getuserinfo_bycode": { POST: { oapiSnsGetuserinfoBycode: true } },
498
+ "/sso/getuserinfo": { GET: { oapiSsoGetuserinfo: true } },
499
+ "/service/get_auth_info": { POST: { oapiServiceGetAuthInfo: true } },
500
+ "/v2/user/update": { POST: { oapiV2UserUpdate: true } },
501
+ "/v2/user/create": { POST: { oapiV2UserCreate: true } },
502
+ "/org/union/trunk/get": { POST: { oapiOrgUnionTrunkGet: true } },
503
+ "/smartwork/hrm/roster/meta/get": {
504
+ POST: { oapiSmartworkHrmRosterMetaGet: true }
505
+ },
506
+ "/smartwork/hrm/employee/v2/list": {
507
+ POST: { oapiSmartworkHrmEmployeeV2List: true }
508
+ },
509
+ "/smartwork/hrm/employee/v2/update": {
510
+ POST: { oapiSmartworkHrmEmployeeV2Update: true }
511
+ },
512
+ "/smartwork/hrm/employee/field/grouplist": {
513
+ POST: { oapiSmartworkHrmEmployeeFieldGrouplist: true }
514
+ },
515
+ "/smartwork/hrm/employee/update": {
516
+ POST: { oapiSmartworkHrmEmployeeUpdate: true }
517
+ },
518
+ "/smartwork/hrm/employee/queryonjob": {
519
+ POST: { oapiSmartworkHrmEmployeeQueryonjob: true }
520
+ },
521
+ "/smartwork/hrm/employee/querypreentry": {
522
+ POST: { oapiSmartworkHrmEmployeeQuerypreentry: true }
523
+ },
524
+ "/smartwork/hrm/employee/addpreentry": {
525
+ POST: { oapiSmartworkHrmEmployeeAddpreentry: true }
526
+ },
527
+ "/smartwork/hrm/employee/list": {
528
+ POST: { oapiSmartworkHrmEmployeeList: true }
529
+ },
530
+ "/report/template/getbyname": { POST: { oapiReportTemplateGetbyname: true } },
531
+ "/report/create": { POST: { oapiReportCreate: true } },
532
+ "/report/savecontent": { POST: { oapiReportSavecontent: true } },
533
+ "/report/simplelist": { POST: { oapiReportSimplelist: true } },
534
+ "/report/statistics/listbytype": {
535
+ POST: { oapiReportStatisticsListbytype: true }
536
+ },
537
+ "/report/receiver/list": { POST: { oapiReportReceiverList: true } },
538
+ "/report/comment/list": { POST: { oapiReportCommentList: true } },
539
+ "/report/statistics": { POST: { oapiReportStatistics: true } },
540
+ "/report/getunreadcount": { POST: { oapiReportGetunreadcount: true } },
541
+ "/report/list": { POST: { oapiReportList: true } },
542
+ "/report/template/listbyuserid": {
543
+ POST: { oapiReportTemplateListbyuserid: true }
544
+ },
545
+ "/checkin/record/get": { POST: { oapiCheckinRecordGet: true } },
546
+ "/checkin/record": { GET: { oapiCheckinRecord: true } },
547
+ "/blackboard/category/list": { POST: { oapiBlackboardCategoryList: true } },
548
+ "/blackboard/update": { POST: { oapiBlackboardUpdate: true } },
549
+ "/blackboard/delete": { POST: { oapiBlackboardDelete: true } },
550
+ "/blackboard/get": { POST: { oapiBlackboardGet: true } },
551
+ "/blackboard/listids": { POST: { oapiBlackboardListids: true } },
552
+ "/blackboard/create": { POST: { oapiBlackboardCreate: true } },
553
+ "/blackboard/listtopten": { POST: { oapiBlackboardListtopten: true } },
554
+ "/health/stepinfo/getuserstatus": {
555
+ POST: { oapiHealthStepinfoGetuserstatus: true }
556
+ },
557
+ "/health/stepinfo/listbyuserid": {
558
+ POST: { oapiHealthStepinfoListbyuserid: true }
559
+ },
560
+ "/health/stepinfo/list": { POST: { oapiHealthStepinfoList: true } },
561
+ "/microapp/list_by_userid": { GET: { oapiMicroappListByUserid: true } },
562
+ "/microapp/list": { POST: { oapiMicroappList: true } },
563
+ "/microapp/delete": { POST: { oapiMicroappDelete: true } },
564
+ "/microapp/set_visible_scopes": {
565
+ POST: { oapiMicroappSetVisibleScopes: true }
566
+ },
567
+ "/microapp/visible_scopes": { POST: { oapiMicroappVisibleScopes: true } },
568
+ "/asr/voice/translate": { POST: { oapiAsrVoiceTranslate: true } },
569
+ "/ai/mt/translate": { POST: { oapiAiMtTranslate: true } },
570
+ "/ocr/structured/recognize": { POST: { oapiOcrStructuredRecognize: true } },
571
+ "/im/chat/scencegroup/message/send_v2": {
572
+ POST: { oapiImChatScencegroupMessageSendV2: true }
573
+ },
574
+ "/im/chat/scenegroup/template/close": {
575
+ POST: { oapiImChatScenegroupTemplateClose: true }
576
+ },
577
+ "/im/chat/scenegroup/template/apply": {
578
+ POST: { oapiImChatScenegroupTemplateApply: true }
579
+ },
580
+ "/im/chat/scencegroup/interactivecard/callback/register": {
581
+ POST: { oapiImChatScencegroupInteractivecardCallbackRegister: true }
582
+ },
583
+ "/im/chat/scenegroup/create": { POST: { oapiImChatScenegroupCreate: true } },
584
+ "/im/chat/scenegroup/member/add": {
585
+ POST: { oapiImChatScenegroupMemberAdd: true }
586
+ },
587
+ "/im/chat/scenegroup/member/get": {
588
+ POST: { oapiImChatScenegroupMemberGet: true }
589
+ },
590
+ "/im/chat/scenegroup/update": { POST: { oapiImChatScenegroupUpdate: true } },
591
+ "/im/chat/scenegroup/member/delete": {
592
+ POST: { oapiImChatScenegroupMemberDelete: true }
593
+ },
594
+ "/im/chat/scenegroup/get": { POST: { oapiImChatScenegroupGet: true } },
595
+ "/robot/send": { POST: { oapiRobotSend: true } },
596
+ "/alitrip/btrip/invoice/setting/rule": {
597
+ POST: { oapiAlitripBtripInvoiceSettingRule: true }
598
+ },
599
+ "/alitrip/btrip/invoice/setting/add": {
600
+ POST: { oapiAlitripBtripInvoiceSettingAdd: true }
601
+ },
602
+ "/alitrip/btrip/project/delete": {
603
+ POST: { oapiAlitripBtripProjectDelete: true }
604
+ },
605
+ "/alitrip/btrip/project/modify": {
606
+ POST: { oapiAlitripBtripProjectModify: true }
607
+ },
608
+ "/alitrip/btrip/project/add": { POST: { oapiAlitripBtripProjectAdd: true } },
609
+ "/alitrip/btrip/invoice/setting/delete": {
610
+ POST: { oapiAlitripBtripInvoiceSettingDelete: true }
611
+ },
612
+ "/alitrip/btrip/invoice/setting/modify": {
613
+ POST: { oapiAlitripBtripInvoiceSettingModify: true }
614
+ },
615
+ "/alitrip/btrip/price/query": { POST: { oapiAlitripBtripPriceQuery: true } },
616
+ "/alitrip/btrip/train/city/suggest": {
617
+ POST: { oapiAlitripBtripTrainCitySuggest: true }
618
+ },
619
+ "/alitrip/btrip/monthbill/url/get": {
620
+ POST: { oapiAlitripBtripMonthbillUrlGet: true }
621
+ },
622
+ "/alitrip/btrip/address/get": { POST: { oapiAlitripBtripAddressGet: true } },
623
+ "/alitrip/btrip/approval/modify": {
624
+ POST: { oapiAlitripBtripApprovalModify: true }
625
+ },
626
+ "/alitrip/btrip/flight/city/suggest": {
627
+ POST: { oapiAlitripBtripFlightCitySuggest: true }
628
+ },
629
+ "/alitrip/btrip/vehicle/order/search": {
630
+ POST: { oapiAlitripBtripVehicleOrderSearch: true }
631
+ },
632
+ "/alitrip/btrip/cost/center/query": {
633
+ POST: { oapiAlitripBtripCostCenterQuery: true }
634
+ },
635
+ "/alitrip/btrip/approval/update": {
636
+ POST: { oapiAlitripBtripApprovalUpdate: true }
637
+ },
638
+ "/alitrip/btrip/cost/center/new": {
639
+ POST: { oapiAlitripBtripCostCenterNew: true }
640
+ },
641
+ "/alitrip/btrip/cost/center/modify": {
642
+ POST: { oapiAlitripBtripCostCenterModify: true }
643
+ },
644
+ "/alitrip/btrip/cost/center/delete": {
645
+ POST: { oapiAlitripBtripCostCenterDelete: true }
646
+ },
647
+ "/alitrip/btrip/cost/center/entity/set": {
648
+ POST: { oapiAlitripBtripCostCenterEntitySet: true }
649
+ },
650
+ "/alitrip/btrip/hotel/order/search": {
651
+ POST: { oapiAlitripBtripHotelOrderSearch: true }
652
+ },
653
+ "/alitrip/btrip/train/order/search": {
654
+ POST: { oapiAlitripBtripTrainOrderSearch: true }
655
+ },
656
+ "/alitrip/btrip/flight/order/search": {
657
+ POST: { oapiAlitripBtripFlightOrderSearch: true }
658
+ },
659
+ "/alitrip/btrip/invoice/search": {
660
+ POST: { oapiAlitripBtripInvoiceSearch: true }
661
+ },
662
+ "/alitrip/btrip/cost/center/transfer": {
663
+ POST: { oapiAlitripBtripCostCenterTransfer: true }
664
+ },
665
+ "/alitrip/btrip/apply/get": { POST: { oapiAlitripBtripApplyGet: true } },
666
+ "/alitrip/btrip/apply/search": {
667
+ POST: { oapiAlitripBtripApplySearch: true }
668
+ },
669
+ "/alitrip/btrip/approval/new": {
670
+ POST: { oapiAlitripBtripApprovalNew: true }
671
+ },
672
+ "/alitrip/btrip/cost/center/entity/delete": {
673
+ POST: { oapiAlitripBtripCostCenterEntityDelete: true }
674
+ },
675
+ "/workspace/auditlog/list": { POST: { oapiWorkspaceAuditlogList: true } },
676
+ "/edu/cert/get": { POST: { oapiEduCertGet: true } },
677
+ "/edu/user/list": { POST: { oapiEduUserList: true } },
678
+ "/smartdevice/device/querybyid": {
679
+ POST: { oapiSmartdeviceDeviceQuerybyid: true }
680
+ },
681
+ "/smartdevice/device/querylist": {
682
+ POST: { oapiSmartdeviceDeviceQuerylist: true }
683
+ },
684
+ "/smartdevice/device/query": { POST: { oapiSmartdeviceDeviceQuery: true } },
685
+ "/smartdevice/device/updatenick": {
686
+ POST: { oapiSmartdeviceDeviceUpdatenick: true }
687
+ },
688
+ "/smartdevice/device/unbind": { POST: { oapiSmartdeviceDeviceUnbind: true } },
689
+ "/smartdevice/external/bind": { POST: { oapiSmartdeviceExternalBind: true } },
690
+ "/crm/objectdata/contact/delete": {
691
+ POST: { oapiCrmObjectdataContactDelete: true }
692
+ },
693
+ "/crm/objectdata/customobject/create": {
694
+ POST: { oapiCrmObjectdataCustomobjectCreate: true }
695
+ },
696
+ "/crm/objectdata/customobject/update": {
697
+ POST: { oapiCrmObjectdataCustomobjectUpdate: true }
698
+ },
699
+ "/crm/objectdata/list": { POST: { oapiCrmObjectdataList: true } },
700
+ "/crm/objectdata/query": { POST: { oapiCrmObjectdataQuery: true } },
701
+ "/crm/objectmeta/describe": { POST: { oapiCrmObjectmetaDescribe: true } },
702
+ "/crm/objectdata/contact/query": {
703
+ POST: { oapiCrmObjectdataContactQuery: true }
704
+ },
705
+ "/crm/objectdata/followrecord/list": {
706
+ POST: { oapiCrmObjectdataFollowrecordList: true }
707
+ },
708
+ "/crm/objectdata/followrecord/query": {
709
+ POST: { oapiCrmObjectdataFollowrecordQuery: true }
710
+ },
711
+ "/crm/objectdata/contact/list": {
712
+ POST: { oapiCrmObjectdataContactList: true }
713
+ },
714
+ "/crm/objectmeta/contact/describe": {
715
+ POST: { oapiCrmObjectmetaContactDescribe: true }
716
+ },
717
+ "/crm/objectmeta/followrecord/describe": {
718
+ POST: { oapiCrmObjectmetaFollowrecordDescribe: true }
719
+ },
720
+ "/cspace/add_to_single_chat": { POST: { oapiCspaceAddToSingleChat: true } },
721
+ "/cspace/grant_custom_space": { GET: { oapiCspaceGrantCustomSpace: true } },
722
+ "/cspace/get_custom_space": { GET: { oapiCspaceGetCustomSpace: true } },
723
+ "/cspace/add": { GET: { oapiCspaceAdd: true } },
724
+ "/chat/subadmin/update": { POST: { oapiChatSubadminUpdate: true } },
725
+ "/chat/qrcode/get": { POST: { oapiChatQrcodeGet: true } },
726
+ "/chat/member/friendswitch/update": {
727
+ POST: { oapiChatMemberFriendswitchUpdate: true }
728
+ },
729
+ "/chat/updategroupnick": { POST: { oapiChatUpdategroupnick: true } },
730
+ "/chat/update": { POST: { oapiChatUpdate: true } },
731
+ "/chat/create": { POST: { oapiChatCreate: true } },
732
+ "/chat/get": { GET: { oapiChatGet: true } },
733
+ "/smartbot/msg/push": { POST: { oapiSmartbotMsgPush: true } }
734
+ });
735
+
736
+ // src/api/contact.ts
737
+ Internal.define({
738
+ "/contact/organizations/authInfos": { GET: { getOrgAuthInfo: false } },
739
+ "/contact/cooperateCorps/unionApplications/approve": {
740
+ POST: { batchApproveUnionApply: false }
741
+ }
742
+ });
743
+
744
+ // src/api/swform.ts
745
+ Internal.define({
746
+ "/swform/instances/{formInstanceId}": { GET: { getFormInstance: false } },
747
+ "/swform/forms/{formCode}/instances": { GET: { listFormInstances: false } },
748
+ "/swform/users/forms": { GET: { listFormSchemasByCreator: false } }
749
+ });
750
+
751
+ // src/api/hrm.ts
752
+ Internal.define({
753
+ "/hrm/processes/employees/terminations": {
754
+ PUT: { hrmProcessUpdateTerminationInfo: false }
755
+ },
756
+ "/hrm/processes/regulars/become": { POST: { hrmProcessRegular: false } },
757
+ "/hrm/employees/dismissions": { GET: { queryDismissionStaffIdList: false } },
758
+ "/hrm/rosters/meta/fields/options": {
759
+ PUT: { rosterMetaFieldOptionsUpdate: false }
760
+ },
761
+ "/hrm/processes/transfer": { POST: { hrmProcessTransfer: false } },
762
+ "/hrm/employees/dimissionInfos": {
763
+ GET: { queryHrmEmployeeDismissionInfo: false }
764
+ },
765
+ "/hrm/jobs": { GET: { queryJobs: false } },
766
+ "/hrm/jobRanks": { GET: { queryJobRanks: false } },
767
+ "/hrm/positions/query": { POST: { queryPositions: false } }
768
+ });
769
+
770
+ // src/api/todo.ts
771
+ Internal.define({
772
+ "/todo/users/{unionId}/org/tasks/query": {
773
+ POST: { queryOrgTodoTasks: false }
774
+ },
775
+ "/todo/users/{unionId}/tasks/{taskId}/executorStatus": {
776
+ PUT: { updateTodoTaskExecutorStatus: false }
777
+ },
778
+ "/todo/users/{unionId}/tasks": { POST: { createTodoTask: false } },
779
+ "/todo/users/{unionId}/tasks/{taskId}": {
780
+ PUT: { updateTodoTask: false },
781
+ DELETE: { deleteTodoTask: false }
782
+ }
783
+ });
784
+
785
+ // src/api/attendance.ts
786
+ Internal.define({
787
+ "/attendance/adjustments": { GET: { getAdjustments: false } },
788
+ "/attendance/overtimeSettings": { GET: { getSimpleOvertimeSetting: false } },
789
+ "/attendance/overtimeSettings/query": { POST: { getOvertimeSetting: false } }
790
+ });
791
+
792
+ // src/api/calendar.ts
793
+ Internal.define({
794
+ "/calendar/users/{userId}/meetingRooms/schedules/query": {
795
+ POST: { getMeetingRoomsSchedule: false }
796
+ },
797
+ "/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}/meetingRooms": { POST: { addMeetingRooms: false } },
798
+ "/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}/meetingRooms/batchRemove": { POST: { removeMeetingRooms: false } },
799
+ "/calendar/users/{userId}/calendars/{calendarId}/unsubscribe": {
800
+ POST: { unsubscribeCalendar: false }
801
+ },
802
+ "/calendar/users/{userId}/subscribedCalendars/{calendarId}": {
803
+ DELETE: { deleteSubscribedCalendar: false },
804
+ GET: { getSubscribedCalendar: false }
805
+ },
806
+ "/calendar/users/{userId}/subscribedCalendars": {
807
+ POST: { createSubscribedCalendar: false }
808
+ },
809
+ "/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}/signOut": {
810
+ POST: { signOut: false },
811
+ GET: { getSignOutList: false }
812
+ },
813
+ "/calendar/users/{userId}/calendars/{calendarId}/subscribe": {
814
+ POST: { subscribeCalendar: false }
815
+ },
816
+ "/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}/attendees": { GET: { listAttendees: false }, POST: { addAttendee: false } },
817
+ "/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}/signin": {
818
+ POST: { signIn: false },
819
+ GET: { getSignInList: false }
820
+ },
821
+ "/calendar/users/{userId}/calendars/{calendarId}/acls": {
822
+ GET: { listAcls: false },
823
+ POST: { createAcls: false }
824
+ },
825
+ "/calendar/users/{userId}/calendars/{calendarId}/acls/{aclId}": {
826
+ DELETE: { deleteAcl: false }
827
+ },
828
+ "/calendar/users/{userId}/calendars": { GET: { listCalendars: false } },
829
+ "/calendar/users/{userId}/querySchedule": { POST: { getSchedule: false } },
830
+ "/calendar/users/{userId}/calendars/{calendarId}/events": {
831
+ GET: { listEvents: false },
832
+ POST: { createEvent: false }
833
+ },
834
+ "/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}": {
835
+ GET: { getEvent: false },
836
+ DELETE: { deleteEvent: false },
837
+ PUT: { patchEvent: false }
838
+ },
839
+ "/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}/attendees/batchRemove": { POST: { removeAttendee: false } },
840
+ "/calendar/users/{userId}/calendars/{calendarId}/eventsview": {
841
+ GET: { listEventsView: false }
842
+ },
843
+ "/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}/respond": {
844
+ POST: { respondEvent: false }
845
+ }
846
+ });
847
+
848
+ // src/api/blackboard.ts
849
+ Internal.define({
850
+ "/blackboard/spaces": { GET: { queryBlackboardSpace: false } }
851
+ });
852
+
853
+ // src/api/microApp.ts
854
+ Internal.define({
855
+ "/microApp/innerMiniApps/{agentId}/versions/rollback": {
856
+ POST: { rollbackInnerAppVersion: false }
857
+ },
858
+ "/microApp/innerMiniApps/{agentId}/versions/publish": {
859
+ POST: { publishInnerAppVersion: false }
860
+ },
861
+ "/microApp/innerMiniApps/{agentId}/historyVersions": {
862
+ GET: { pageInnerAppHistoryVersion: false }
863
+ },
864
+ "/microApp/innerMiniApps/{agentId}/versions": {
865
+ GET: { listInnerAppVersion: false }
866
+ },
867
+ "/microApp/allInnerApps": { GET: { listAllInnerApps: false } },
868
+ "/microApp/apps/{agentId}/scopes": {
869
+ GET: { getMicroAppScope: false },
870
+ POST: { setMicroAppScope: false }
871
+ },
872
+ "/microApp/users/{userId}/apps": { GET: { listUserVilebleApp: false } },
873
+ "/microApp/allApps": { GET: { listAllApp: false } },
874
+ "/microApp/apps/{agentId}": {
875
+ DELETE: { deleteInnerApp: false },
876
+ PUT: { updateInnerApp: false }
877
+ },
878
+ "/microApp/apps": { POST: { createInnerApp: false } }
879
+ });
880
+
881
+ // src/api/im.ts
882
+ Internal.define({
883
+ "/im/sceneGroups/templates/robots": {
884
+ GET: { querySceneGroupTemplateRobot: false }
885
+ },
886
+ "/im/sceneGroups/members/batchQuery": {
887
+ POST: { batchQueryGroupMember: false }
888
+ },
889
+ "/im/sceneGroups/muteSettings": { GET: { queryGroupMuteStatus: false } },
890
+ "/im/sceneGroups/muteMembers/set": { POST: { updateMemberBanWords: false } },
891
+ "/im/sceneGroups/query": { POST: { getSceneGroupInfo: false } },
892
+ "/im/sceneGroups/subAdmins": { PUT: { updateGroupSubAdmin: false } },
893
+ "/im/sceneGroups/members/groupNicks": {
894
+ PUT: { updateMemberGroupNick: false }
895
+ },
896
+ "/im/interactiveCards/templates/send": {
897
+ POST: { sendTemplateInteractiveCard: false }
898
+ },
899
+ "/im/interactiveCards": { PUT: { updateInteractiveCard: false } },
900
+ "/im/interactiveCards/send": { POST: { sendInteractiveCard: false } },
901
+ "/im/robots/interactiveCards": { PUT: { updateRobotInteractiveCard: false } },
902
+ "/im/v1.0/robot/interactiveCards/send": {
903
+ POST: { sendRobotInteractiveCard: false }
904
+ },
905
+ "/im/chat/{chatId}/convertToOpenConversationId": {
906
+ POST: { chatIdToOpenConversationId: false }
907
+ },
908
+ "/im/subAdministrators": { POST: { chatSubAdminUpdate: false } },
909
+ "/im/interconnections/groups": { POST: { createGroupConversation: false } },
910
+ "/im/interconnections/couples/groups": { POST: { createCoupleGroup: false } },
911
+ "/im/interconnections/groups/owners": { PUT: { changeGroupOwner: false } },
912
+ "/im/interconnections/groups/dismiss": {
913
+ POST: { dismissGroupConversation: false }
914
+ },
915
+ "/im/interconnections/robotMessages/send": {
916
+ POST: { sendRobotMessage: false }
917
+ },
918
+ "/im/interconnections/storeGroups": {
919
+ POST: { createStoreGroupConversation: false }
920
+ },
921
+ "/im/interconnections/coupleGroups": {
922
+ POST: { createCoupleGroupConversation: false }
923
+ },
924
+ "/im/interconnections/groups/names": { PUT: { updateGroupName: false } },
925
+ "/im/interconnections/groups/avatars": { PUT: { updateGroupAvatar: false } },
926
+ "/im/interconnections/doubleGroups/query": {
927
+ POST: { querySingleGroup: false }
928
+ },
929
+ "/im/interconnections/conversations/members": {
930
+ GET: { queryGroupMember: false }
931
+ },
932
+ "/im/interconnections/unReadMsgs/query": {
933
+ POST: { queryUnReadMessage: false }
934
+ },
935
+ "/im/interconnections/messages/send": { POST: { sendMessage: false } },
936
+ "/im/interconnections/groups/members/remove": {
937
+ POST: { removeGroupMember: false }
938
+ },
939
+ "/im/interconnections/groups/members": { POST: { addGroupMember: false } },
940
+ "/im/interconnections/dingMessages/send": {
941
+ POST: { sendDingMessage: false }
942
+ },
943
+ "/im/conversations/urls": { POST: { getConversationUrl: false } },
944
+ "/im/interconnections": { POST: { createInterconnection: false } },
945
+ "/im/privateChat/interactiveCards/send": {
946
+ POST: { sendOTOInteractiveCard: false }
947
+ },
948
+ "/im/topBoxes/close": { POST: { closeTopbox: false } },
949
+ "/im/topBoxes": { POST: { createTopbox: false } }
950
+ });
951
+
952
+ // src/api/connector.ts
953
+ Internal.define({
954
+ "/connector/data/{dataModelId}": { GET: { pullDataByPk: false } },
955
+ "/connector/data": { GET: { pullDataByPage: false } },
956
+ "/connector/triggers/data/sync": { POST: { syncData: false } }
957
+ });
958
+
959
+ // src/api/exclusive.ts
960
+ Internal.define({
961
+ "/exclusive/enterpriseSecurities/userBehaviors/screenshots/query": {
962
+ POST: { queryUserBehavior: false }
963
+ },
964
+ "/exclusive/trusts/publicDevices": { GET: { getPublicDevices: false } },
965
+ "/exclusive/phoneDings/send": { POST: { sendPhoneDing: false } },
966
+ "/exclusive/partners/users/{userId}": { GET: { queryPartnerInfo: false } },
967
+ "/exclusive/data/conferences": { GET: { getConfBaseInfoByLogicalId: false } },
968
+ "/exclusive/trusts/devices": { POST: { createTrustedDeviceBatch: false } },
969
+ "/exclusive/fileAuditLogs": { GET: { listAuditLog: false } },
970
+ "/exclusive/enterpriseSecurities/banOrOpenGroupWords": {
971
+ PUT: { banOrOpenGroupWords: false }
972
+ },
973
+ "/exclusive/audits/users": { GET: { getSignedDetailByPage: false } },
974
+ "/exclusive/comments/send": { POST: { publishFileChangeNotice: false } },
975
+ "/exclusive/appDings/send": { POST: { sendAppDing: false } },
976
+ "/exclusive/partnerLabels/{parentId}": {
977
+ GET: { getPartnerTypeByParentId: false }
978
+ },
979
+ "/exclusive/partnerDepartments": {
980
+ POST: { setDeptPartnerTypeAndNum: false },
981
+ GET: { getAllLabelableDepts: false }
982
+ }
983
+ });
984
+
985
+ // src/api/alitrip.ts
986
+ Internal.define({
987
+ "/alitrip/billSettlements/btripTrains": {
988
+ GET: { billSettementBtripTrain: false }
989
+ },
990
+ "/alitrip/billSettlements/hotels": { GET: { billSettementHotel: false } },
991
+ "/alitrip/billSettlements/cars": { GET: { billSettementCar: false } },
992
+ "/alitrip/billSettlements/flights": { GET: { billSettementFlight: false } },
993
+ "/alitrip/exceedapply/getFlight": { GET: { getFlightExceedApply: false } },
994
+ "/alitrip/unionOrders": { GET: { queryUnionOrder: false } },
995
+ "/alitrip/exceedapply/getTrain": { GET: { getTrainExceedApply: false } },
996
+ "/alitrip/exceedapply/getHotel": { GET: { getHotelExceedApply: false } },
997
+ "/alitrip/exceedapply/sync": { POST: { syncExceedApply: false } },
998
+ "/alitrip/cityCarApprovals": {
999
+ GET: { queryCityCarApply: false },
1000
+ PUT: { approveCityCarApply: false },
1001
+ POST: { addCityCarApply: false }
1002
+ }
1003
+ });
1004
+
1005
+ // src/api/project.ts
1006
+ Internal.define({
1007
+ "/project/users/{userId}/projects/{projectId}/customfields": {
1008
+ PUT: { createProjectCustomfieldStatus: false }
1009
+ },
1010
+ "/project/users/{userId}/tasks/{taskId}/contents": {
1011
+ PUT: { updateTaskContent: false }
1012
+ },
1013
+ "/project/users/{userId}/tasks/{taskId}/notes": {
1014
+ PUT: { updateTaskNote: false }
1015
+ },
1016
+ "/project/users/{userId}/tasks/{taskId}/involveMembers": {
1017
+ PUT: { updateTaskInvolvemembers: false }
1018
+ },
1019
+ "/project/users/{userId}/tasks/{taskId}/executors": {
1020
+ PUT: { updateTaskExecutor: false }
1021
+ },
1022
+ "/project/users/{userId}/tasks/{taskId}/priorities": {
1023
+ PUT: { updateTaskPriority: false }
1024
+ },
1025
+ "/project/users/{userId}/tasks/{taskId}/dueDates": {
1026
+ PUT: { updateTaskDueDate: false }
1027
+ },
1028
+ "/project/users/{userId}/tasks": {
1029
+ GET: { getTaskByIds: false },
1030
+ POST: { createTask: false }
1031
+ },
1032
+ "/project/users/{userId}/tasks/{taskId}/archive": {
1033
+ POST: { archiveTask: false }
1034
+ },
1035
+ "/project/users/{userId}/tasks/search": { POST: { searchUserTask: false } },
1036
+ "/project/users/{userId}/projects/{projectId}/taskStages/search": {
1037
+ POST: { seachTaskStage: false }
1038
+ },
1039
+ "/project/users/{userId}/projects/{projectId}/taskLists/search": {
1040
+ POST: { searchTaskList: false }
1041
+ },
1042
+ "/project/users/{userId}/projects/{projectId}/taskflows/search": {
1043
+ POST: { searchTaskFlow: false }
1044
+ },
1045
+ "/project/users/{userId}/projects/{projectId}/statuses": {
1046
+ GET: { getProjectStatusList: false }
1047
+ },
1048
+ "/project/users/{userId}/projects/{projectId}/members/remove": {
1049
+ POST: { deleteProjectMember: false }
1050
+ },
1051
+ "/project/users/{userId}/projects/{projectId}/members": {
1052
+ GET: { getProjectMemebers: false },
1053
+ POST: { addProjectMember: false }
1054
+ },
1055
+ "/project/users/{userId}/projects/query": { POST: { queryProject: false } },
1056
+ "/project/users/{userId}/projects/{projectId}/taskflowStatuses/search": {
1057
+ GET: { searchTaskflowStatus: false }
1058
+ },
1059
+ "/project/users/{userId}/tasks/{taskId}/taskflowStatuses": {
1060
+ PUT: { updateTaskTaskflowstatus: false }
1061
+ },
1062
+ "/project/users/{userId}/tasks/{taskId}/startDates": {
1063
+ PUT: { updateTaskStartdate: false }
1064
+ },
1065
+ "/project/users/{userId}/projects": { POST: { createProject: false } },
1066
+ "/project/users/{userId}/joinProjects": {
1067
+ GET: { getUserJoinedProject: false }
1068
+ },
1069
+ "/project/users/{userId}/projects/{projectId}/archive": {
1070
+ POST: { archiveProject: false }
1071
+ },
1072
+ "/project/users/{userId}/projects/{projectId}/unsuspend": {
1073
+ POST: { unSuspendProject: false }
1074
+ },
1075
+ "/project/users/{userId}/projects/{projectId}/suspend": {
1076
+ POST: { suspendProject: false }
1077
+ },
1078
+ "/project/users/{userId}/projectIds/{projectId}/tasks": {
1079
+ GET: { queryTaskOfProject: false }
1080
+ },
1081
+ "/project/users/{userId}/workTimes": { POST: { createWorkTime: false } },
1082
+ "/project/users/{userId}/planTimes": { POST: { createPlanTime: false } },
1083
+ "/project/users/{userId}/tasks/{taskId}/customFields": {
1084
+ PUT: { updateCustomfieldValue: false }
1085
+ },
1086
+ "/project/teambition/users": { GET: { getTbUserIdByStaffId: false } },
1087
+ "/project/teambition/organizations": {
1088
+ GET: { getTbOrgIdByDingOrgId: false }
1089
+ },
1090
+ "/project/users/{userId}/projects/{projectId}/groups": {
1091
+ PUT: { updateProjectGroup: false }
1092
+ },
1093
+ "/project/users/{userId}/templates/projects": {
1094
+ POST: { createProjectByTemplate: false }
1095
+ },
1096
+ "/project/organizations/users/{userId}/groups": {
1097
+ GET: { getProjectGroup: false }
1098
+ },
1099
+ "/project/organizations/users/{userId}/templates": {
1100
+ GET: { searchProjectTemplate: false }
1101
+ },
1102
+ "/project/users/{userId}/tasks/{taskId}/objectLinks": {
1103
+ POST: { createTaskObjectLink: false }
1104
+ },
1105
+ "/project/organizations/users/{userId}/tasks": {
1106
+ GET: { getOrganizatioTaskByIds: false },
1107
+ POST: { createOrganizationTask: false }
1108
+ },
1109
+ "/project/organizations/users/{userId}/tasks/{taskId}/priorities": {
1110
+ PUT: { updateOrganizationTaskPriority: false }
1111
+ },
1112
+ "/project/organizations/users/{userId}/tasks/{taskId}/notes": {
1113
+ PUT: { updateOrganizationTaskNote: false }
1114
+ },
1115
+ "/project/organizations/users/{userId}/tasks/{taskId}/involveMembers": {
1116
+ PUT: { updateOrganizationTaskInvolveMembers: false }
1117
+ },
1118
+ "/project/organizations/users/{userId}/tasks/{taskId}/executors": {
1119
+ PUT: { updateOrganizationTaskExecutor: false }
1120
+ },
1121
+ "/project/organizations/users/{userId}/tasks/{taskId}/dueDates": {
1122
+ PUT: { updateOrganizationTaskDueDate: false }
1123
+ },
1124
+ "/project/organizations/users/{userId}/tasks/{taskId}/contents": {
1125
+ PUT: { updateOrganizationTaskContent: false }
1126
+ },
1127
+ "/project/organizations/users/{userId}/tasks/{taskId}/states": {
1128
+ PUT: { updateOrganizationTaskStatus: false }
1129
+ },
1130
+ "/project/organizations/users/{userId}/priorities": {
1131
+ GET: { getOrganizationPriorityList: false }
1132
+ },
1133
+ "/project/organizations/users/{userId}/tasks/{taskId}": {
1134
+ GET: { getOrganizationTask: false }
1135
+ },
1136
+ "/project/users/{userId}/tasks/{taskId}": { DELETE: { deleteTask: false } }
1137
+ });
1138
+
1139
+ // src/api/edu.ts
1140
+ Internal.define({ "/edu/students/move": { POST: { moveStudent: false } } });
1141
+
1142
+ // src/api/crm.ts
1143
+ Internal.define({
1144
+ "/crm/globalInfos": { GET: { queryGlobalInfo: false } },
1145
+ "/crm/followRecords/batch": {
1146
+ PUT: { batchUpdateFollowRecords: false },
1147
+ POST: { batchAddFollowRecords: false }
1148
+ },
1149
+ "/crm/followRecords/batchRemove": {
1150
+ POST: { batchRemoveFollowRecords: false }
1151
+ },
1152
+ "/crm/customObjectDatas/instances/{instanceId}": {
1153
+ DELETE: { deleteCrmCustomObjectData: false }
1154
+ },
1155
+ "/crm/contacts/batch": {
1156
+ PUT: { batchUpdateContacts: false },
1157
+ POST: { batchAddContacts: false }
1158
+ },
1159
+ "/crm/relationDatas/batch": {
1160
+ POST: { batchAddRelationDatas: false },
1161
+ PUT: { batchUpdateRelationDatas: false }
1162
+ },
1163
+ "/crm/relationUkSettings": { GET: { getRelationUkSetting: false } },
1164
+ "/crm/groups": { POST: { crmCreateGroup: false } },
1165
+ "/crm/crmGroupChats/batchQuery": { POST: { getCrmGroupChatMulti: false } },
1166
+ "/crm/crmGroupChats/query": { POST: { getCrmGroupChatSingle: false } },
1167
+ "/crm/relations/datas/targets/{targetId}": {
1168
+ GET: { queryRelationDatasByTargetId: false }
1169
+ },
1170
+ "/crm/crmGroupChats": { GET: { queryCrmGroupChats: false } },
1171
+ "/crm/groupSets/set": { PUT: { crmUpdateGroupSet: false } },
1172
+ "/crm/groupSets/lists": { GET: { listGroupSet: false } },
1173
+ "/crm/groupSets": {
1174
+ POST: { createGroupSet: false },
1175
+ GET: { getGroupSet: false }
1176
+ },
1177
+ "/crm/personalCustomers": {
1178
+ PUT: { updateCrmPersonalCustomer: false },
1179
+ POST: { addCrmPersonalCustomer: false },
1180
+ GET: { queryCrmPersonalCustomer: false }
1181
+ },
1182
+ "/crm/personalCustomers/{dataId}": {
1183
+ DELETE: { deleteCrmPersonalCustomer: false }
1184
+ },
1185
+ "/crm/personalCustomers/objectMeta": {
1186
+ GET: { describeCrmPersonalCustomerObjectMeta: false }
1187
+ },
1188
+ "/crm/personalCustomers/batchQuery": {
1189
+ POST: { listCrmPersonalCustomers: false }
1190
+ },
1191
+ "/crm/customerInstances": { POST: { queryAllCustomer: false } },
1192
+ "/crm/officialAccounts/oToMessages/send": {
1193
+ POST: { sendOfficialAccountOTOMessage: false }
1194
+ },
1195
+ "/crm/officialAccounts/oToMessages/batchSend": {
1196
+ POST: { batchSendOfficialAccountOTOMessage: false }
1197
+ }
1198
+ });
1199
+
1200
+ // src/api/yida.ts
1201
+ Internal.define({
1202
+ "/yida/forms": { GET: { getFormListInApp: false } },
1203
+ "/yida/forms/formFields": { GET: { getFieldDefByUuid: false } },
1204
+ "/yida/tasks/batches/execute": { POST: { executeBatchTask: false } },
1205
+ "/yida/forms/operationsLogs/query": { POST: { listOperationLogs: false } },
1206
+ "/yida/forms/remarks/query": { POST: { listFormRemarks: false } },
1207
+ "/yida/services/invocationRecords": { GET: { queryServiceRecord: false } },
1208
+ "/yida/forms/instances/batchRemove": {
1209
+ POST: { batchRemovalByFormInstanceIdList: false }
1210
+ },
1211
+ "/yida/forms/instances/components": {
1212
+ PUT: { batchUpdateFormDataByInstanceId: false }
1213
+ },
1214
+ "/yida/forms/instances/datas": {
1215
+ PUT: { batchUpdateFormDataByInstanceMap: false }
1216
+ },
1217
+ "/yida/organizations/applications": { GET: { listApplication: false } },
1218
+ "/yida/forms/instances/batchSave": { POST: { batchSaveFormData: false } },
1219
+ "/yida/forms/instances/advances/query": {
1220
+ POST: { searchFormDataSecondGenerationNoTableField: false }
1221
+ },
1222
+ "/yida/forms/instances/insertOrUpdate": {
1223
+ POST: { createOrUpdateFormData: false }
1224
+ },
1225
+ "/yida/forms/instances/advances/queryAll": {
1226
+ POST: { searchFormDataSecondGeneration: false }
1227
+ },
1228
+ "/yida/forms/instances/ids/query": {
1229
+ POST: { batchGetFormDataByIdList: false }
1230
+ },
1231
+ "/yida/tasks/taskCopies": { GET: { getTaskCopies: false } },
1232
+ "/yida/forms/instances/ids/{appType}/{formUuid}": {
1233
+ POST: { searchFormDataIdList: false }
1234
+ },
1235
+ "/yida/forms/innerTables/{formInstanceId}": {
1236
+ GET: { listTableDataByFormInstanceIdTableId: false }
1237
+ },
1238
+ "/yida/tasks/completedTasks/{corpId}/{userId}": {
1239
+ GET: { getCorpAccomplishmentTasks: false }
1240
+ },
1241
+ "/yida/forms/definitions/{appType}/{formUuid}": {
1242
+ GET: { getFormComponentDefinitionList: false }
1243
+ },
1244
+ "/yida/processes/instanceIds": { POST: { getInstanceIdList: false } },
1245
+ "/yida/processes/instances/searchWithIds": {
1246
+ GET: { getInstancesByIdList: false }
1247
+ },
1248
+ "/yida/tasks/myCorpSubmission/{userId}": {
1249
+ GET: { getMeCorpSubmission: false }
1250
+ },
1251
+ "/yida/processes/definitions/{processInstanceId}": {
1252
+ GET: { getProcessDefinition: false }
1253
+ },
1254
+ "/yida/corpTasks": { GET: { getCorpTasks: false } },
1255
+ "/yida/corpNotifications/{userId}": { GET: { getNotifyMe: false } },
1256
+ "/yida/processDefinitions/buttons/{appType}/{processCode}/{activityId}": {
1257
+ GET: { getActivityButtonList: false }
1258
+ },
1259
+ "/yida/authorization/platformResources": {
1260
+ GET: { getApplicationAuthorizationServicePlatformResource: false }
1261
+ },
1262
+ "/yida/processes/instances": {
1263
+ PUT: { updateInstance: false },
1264
+ DELETE: { deleteInstance: false },
1265
+ POST: { getInstances: false }
1266
+ },
1267
+ "/yida/processes/operationRecords": { GET: { getOperationRecords: false } },
1268
+ "/yida/processes/instances/terminate": { PUT: { terminateInstance: false } },
1269
+ "/yida/tasks/execute": { POST: { executeTask: false } },
1270
+ "/yida/tasks/platformTasks/execute": { POST: { executePlatformTask: false } },
1271
+ "/yida/tasks/redirect": { POST: { redirectTask: false } },
1272
+ "/yida/apps/temporaryUrls/{appType}": { GET: { getOpenUrl: false } },
1273
+ "/yida/forms/remarks": { POST: { saveFormRemark: false } },
1274
+ "/yida/apps/navigations": { GET: { listNavigationByFormType: false } },
1275
+ "/yida/apps/orderBuy/validate": { GET: { validateOrderBuy: false } },
1276
+ "/yida/processes/tasks/getRunningTasks": { GET: { getRunningTasks: false } },
1277
+ "/yida/processes/activities": { GET: { getActivityList: false } },
1278
+ "/yida/apps/customApi/execute": { POST: { executeCustomApi: false } },
1279
+ "/yida/apps/activationCode/information": {
1280
+ GET: { searchActivationCode: false }
1281
+ },
1282
+ "/yida/apps/saleUserInfo": { GET: { getSaleUserInfoByUserId: false } },
1283
+ "/yida/apps/corpLevel": { GET: { getCorpLevelByAccountId: false } },
1284
+ "/yida/forms/status": { PUT: { updateStatus: false } },
1285
+ "/yida/apps/orderUpgrade/validate": { GET: { validateOrderUpgrade: false } },
1286
+ "/yida/appAuth/commodities/release": { DELETE: { releaseCommodity: false } },
1287
+ "/yida/appAuth/commodities/expire": { PUT: { expireCommodity: false } },
1288
+ "/yida/appAuth/commodities/refund": { POST: { refundCommodity: false } },
1289
+ "/yida/forms/employeeFields": { POST: { searchEmployeeFieldValues: false } },
1290
+ "/yida/forms/deleteSequence": { DELETE: { deleteSequence: false } },
1291
+ "/yida/forms/instances": {
1292
+ POST: { saveFormData: false },
1293
+ PUT: { updateFormData: false },
1294
+ DELETE: { deleteFormData: false }
1295
+ },
1296
+ "/yida/forms/instances/search": { POST: { searchFormDatas: false } },
1297
+ "/yida/processes/instancesInfos/{id}": { GET: { getInstanceById: false } },
1298
+ "/yida/processes/instances/start": { POST: { startInstance: false } },
1299
+ "/yida/forms/instances/{id}": { GET: { getFormDataByID: false } }
1300
+ });
1301
+
1302
+ // src/api/drive.ts
1303
+ Internal.define({
1304
+ "/drive/spaces/customSpaces": { POST: { addCustomSpace: false } },
1305
+ "/drive/spaces/{spaceId}": { DELETE: { deleteSpace: false } },
1306
+ "/drive/spaces": {
1307
+ POST: { driveAddSpace: false },
1308
+ GET: { listSpaces: false }
1309
+ }
1310
+ });
1311
+
1312
+ // src/api/workbench.ts
1313
+ Internal.define({
1314
+ "/workbench/components/recentUsed/batch": {
1315
+ POST: { addRecentUserAppList: false }
1316
+ },
1317
+ "/workbench/plugins/validationRules": {
1318
+ GET: { getPluginRuleCheckInfo: false }
1319
+ },
1320
+ "/workbench/plugins/permissions": {
1321
+ GET: { getPluginPermissionPoint: false }
1322
+ }
1323
+ });
1324
+
1325
+ // src/api/robot.ts
1326
+ Internal.define({
1327
+ "/robot/groups/robots/query": { POST: { getBotListInGroup: false } },
1328
+ "/robot/messageFiles/download": { POST: { robotMessageFileDownload: false } },
1329
+ "/robot/plugins/clear": { POST: { clearRobotPlugin: false } },
1330
+ "/robot/plugins/set": { POST: { setRobotPlugin: false } },
1331
+ "/robot/plugins/query": { POST: { queryRobotPlugin: false } },
1332
+ "/robot/groupMessages/recall": { POST: { orgGroupRecall: false } },
1333
+ "/robot/groupMessages/query": { POST: { orgGroupQuery: false } },
1334
+ "/robot/groupMessages/send": { POST: { orgGroupSend: false } },
1335
+ "/robot/otoMessages/batchRecall": { POST: { batchRecallOTO: false } },
1336
+ "/robot/oToMessages/readStatus": { GET: { batchOTOQuery: false } },
1337
+ "/robot/oToMessages/batchSend": { POST: { batchSendOTO: false } },
1338
+ "/robot/privateChatMessages/send": { POST: { privateChatSend: false } },
1339
+ "/robot/privateChatMessages/query": { POST: { privateChatQuery: false } },
1340
+ "/robot/privateChatMessages/batchRecall": {
1341
+ POST: { batchRecallPrivateChat: false }
1342
+ }
1343
+ });
1344
+
1345
+ // src/api/conference.ts
1346
+ Internal.define({
1347
+ "/conference/videoConferences/{conferenceId}/users/invite": {
1348
+ POST: { inviteUsers: false }
1349
+ },
1350
+ "/conference/videoConferences/{conferenceId}/focus": {
1351
+ POST: { focus: false }
1352
+ },
1353
+ "/conference/videoConferences/{conferenceId}/coHosts/set": {
1354
+ POST: { cohosts: false }
1355
+ },
1356
+ "/conference/videoConferences/{conferenceId}/members/mute": {
1357
+ POST: { muteMembers: false }
1358
+ },
1359
+ "/conference/videoConferences/scheduleConferences/{scheduleConferenceId}": {
1360
+ GET: { queryScheduleConferenceInfo: false }
1361
+ },
1362
+ "/conference/videoConferences/{conferenceId}/cloudRecords/getVideos": {
1363
+ GET: { queryCloudRecordVideo: false }
1364
+ },
1365
+ "/conference/videoConferences/{conferenceId}/cloudRecords/getTexts": {
1366
+ GET: { queryCloudRecordText: false }
1367
+ },
1368
+ "/conference/videoConferences/{conferenceId}/cloudRecords/videos/getPlayInfos": { GET: { queryCloudRecordVideoPlayInfo: false } },
1369
+ "/conference/videoConferences/{conferenceId}/cloudRecords/stop": {
1370
+ POST: { stopCloudRecord: false }
1371
+ },
1372
+ "/conference/videoConferences/{conferenceId}/streamOuts/stop": {
1373
+ POST: { stopStreamOut: false }
1374
+ },
1375
+ "/conference/videoConferences/{conferenceId}/streamOuts/start": {
1376
+ POST: { startStreamOut: false }
1377
+ },
1378
+ "/conference/videoConferences/{conferenceId}/cloudRecords/start": {
1379
+ POST: { startCloudRecord: false }
1380
+ },
1381
+ "/conference/videoConferences/query": {
1382
+ POST: { queryConferenceInfoBatch: false }
1383
+ },
1384
+ "/conference/videoConferences/{conferenceId}": {
1385
+ DELETE: { closeVideoConference: false },
1386
+ GET: { queryConferenceInfo: false }
1387
+ },
1388
+ "/conference/videoConferences": { POST: { createVideoConference: false } },
1389
+ "/conference/videoConferences/{conferenceId}/members": {
1390
+ GET: { queryConferenceMembers: false }
1391
+ },
1392
+ "/conference/scheduleConferences/cancel": {
1393
+ POST: { cancelScheduleConference: false }
1394
+ },
1395
+ "/conference/scheduleConferences/{scheduleConferenceId}/infos": {
1396
+ GET: { queryScheduleConference: false }
1397
+ },
1398
+ "/conference/scheduleConferences": {
1399
+ PUT: { updateScheduleConference: false },
1400
+ POST: { createScheduleConference: false }
1401
+ }
1402
+ });
1403
+
1404
+ // src/api/serviceGroup.ts
1405
+ Internal.define({
1406
+ "/serviceGroup/groups/members": { POST: { addMemberToServiceGroup: false } },
1407
+ "/serviceGroup/messages/tasks/send": { POST: { sendMsgByTask: false } },
1408
+ "/serviceGroup/normalGroups/upgrade": { POST: { upgradeNormalGroup: false } },
1409
+ "/serviceGroup/cloudGroups/upgrade": { POST: { upgradeCloudGroup: false } },
1410
+ "/serviceGroup/groups/queryActiveUsers": { GET: { queryActiveUsers: false } },
1411
+ "/serviceGroup/messages/send": { POST: { sendServiceGroupMessage: false } },
1412
+ "/serviceGroup/groups": { POST: { serviceGroupCreateGroup: false } },
1413
+ "/serviceGroup/groups/configurations": {
1414
+ PUT: { serviceGroupUpdateGroupSet: false }
1415
+ }
1416
+ });
1417
+
1418
+ // src/api/customerService.ts
1419
+ Internal.define({
1420
+ "/customerService/tickets/{ticketId}": { PUT: { executeActivity: false } },
1421
+ "/customerService/tickets/{ticketId}/actions": {
1422
+ GET: { pageListAction: false }
1423
+ },
1424
+ "/customerService/tickets": {
1425
+ GET: { pageListTicket: false },
1426
+ POST: { createTicket: false }
1427
+ }
1428
+ });
1429
+
1430
+ // src/api/esign.ts
1431
+ Internal.define({
1432
+ "/esign/flowTasks/{taskId}/docs": { GET: { getFlowDocs: false } },
1433
+ "/esign/approvals/{taskId}": { GET: { approvalList: false } }
1434
+ });
1435
+
1436
+ // src/api/jzcrm.ts
1437
+ Internal.define({
1438
+ "/jzcrm/contacts": { POST: { editContact: false } },
1439
+ "/jzcrm/customerPools": { POST: { editCustomerPool: false } },
1440
+ "/jzcrm/exchanges": { POST: { editExchange: false } },
1441
+ "/jzcrm/goods": { POST: { editGoods: false } },
1442
+ "/jzcrm/outstocks": { POST: { editOutstock: false } },
1443
+ "/jzcrm/intostocks": { POST: { editIntostock: false } },
1444
+ "/jzcrm/productions": { POST: { editProduction: false } },
1445
+ "/jzcrm/purchases": { POST: { editPurchase: false } },
1446
+ "/jzcrm/orders": { POST: { editOrder: false } },
1447
+ "/jzcrm/invoices": { POST: { editInvoice: false } },
1448
+ "/jzcrm/customers": { POST: { editCustomer: false } },
1449
+ "/jzcrm/dataView": { GET: { getDataView: false } },
1450
+ "/jzcrm/data": { GET: { getDataList: false } }
1451
+ });
1452
+
1453
+ // src/api/badge.ts
1454
+ Internal.define({
1455
+ "/badge/notices": { POST: { createBadgeNotify: false } },
1456
+ "/badge/codes/verifyResults": {
1457
+ POST: { notifyBadgeCodeVerifyResult: false }
1458
+ },
1459
+ "/badge/codes/corpInstances": { POST: { saveBadgeCodeCorpInstance: false } },
1460
+ "/badge/codes/payResults": { POST: { notifyBadgeCodePayResult: false } },
1461
+ "/badge/codes/userInstances": {
1462
+ POST: { createBadgeCodeUserInstance: false },
1463
+ PUT: { updateBadgeCodeUserInstance: false }
1464
+ },
1465
+ "/badge/codes/refundResults": {
1466
+ POST: { notifyBadgeCodeRefundResult: false }
1467
+ },
1468
+ "/badge/codes/decode": { POST: { decodeBadgeCode: false } }
1469
+ });
1470
+
1471
+ // src/api/datacenter.ts
1472
+ Internal.define({
1473
+ "/datacenter/generalDataServices": {
1474
+ GET: { queryGeneralDataService: false }
1475
+ },
1476
+ "/datacenter/onlineUserData": {
1477
+ GET: { queryOnlineUserStatisticalData: false }
1478
+ },
1479
+ "/datacenter/activeUserData": {
1480
+ GET: { queryActiveUserStatisticalData: false }
1481
+ },
1482
+ "/datacenter/employeeTypeData": {
1483
+ GET: { queryEmployeeTypeStatisticalData: false }
1484
+ },
1485
+ "/datacenter/circleData": { GET: { queryCircleStatisticalData: false } },
1486
+ "/datacenter/singleMessagerData": {
1487
+ GET: { querySingleMessageStatisticalData: false }
1488
+ },
1489
+ "/datacenter/groupMessageData": {
1490
+ GET: { queryGroupMessageStatisticalData: false }
1491
+ },
1492
+ "/datacenter/dingSendData": { GET: { queryDingSendStatisticalData: false } },
1493
+ "/datacenter/dingReciveData": {
1494
+ GET: { queryDingReciveStatisticalData: false }
1495
+ },
1496
+ "/datacenter/vedioMeetingData": {
1497
+ GET: { queryVedioMeetingStatisticalData: false }
1498
+ },
1499
+ "/datacenter/telMeetingData": {
1500
+ GET: { queryTelMeetingStatisticalData: false }
1501
+ },
1502
+ "/datacenter/groupLiveData": {
1503
+ GET: { queryGroupLiveStatisticalData: false }
1504
+ },
1505
+ "/datacenter/redEnvelopeSendData": {
1506
+ GET: { queryRedEnvelopeSendStatisticalData: false }
1507
+ },
1508
+ "/datacenter/redEnvelopeReciveData": {
1509
+ GET: { queryRedEnvelopeReciveStatisticalData: false }
1510
+ },
1511
+ "/datacenter/blackboardData": {
1512
+ GET: { queryBlackboardStatisticalData: false }
1513
+ },
1514
+ "/datacenter/todoUserData": { GET: { queryTodoStatisticalData: false } },
1515
+ "/datacenter/healtheUserData": { GET: { queryHealthStatisticalData: false } },
1516
+ "/datacenter/documentData": { GET: { queryDocumentStatisticalData: false } },
1517
+ "/datacenter/checkinData": { GET: { queryCheckinStatisticalData: false } },
1518
+ "/datacenter/approvalData": { GET: { queryApprovalStatisticalData: false } },
1519
+ "/datacenter/reportData": { GET: { queryReportStatisticalData: false } },
1520
+ "/datacenter/attendanceData": {
1521
+ GET: { queryAttendanceStatisticalData: false }
1522
+ },
1523
+ "/datacenter/driveData": { GET: { queryDriveStatisticalData: false } },
1524
+ "/datacenter/mailData": { GET: { queryMailStatisticalData: false } },
1525
+ "/datacenter/calendarData": { GET: { queryCalendarStatisticalData: false } },
1526
+ "/datacenter/digitalCounty/orgInfos/query": {
1527
+ POST: { queryDigitalDistrictOrgInfo: false }
1528
+ }
1529
+ });
1530
+
1531
+ // src/api/resident.ts
1532
+ Internal.define({
1533
+ "/resident/points": { POST: { addPoint: false } },
1534
+ "/resident/points/records": { GET: { pagePointHistory: false } },
1535
+ "/resident/points/rules": { GET: { listPointRules: false } },
1536
+ "/resident/industryRoles/users": { GET: { listIndustryRoleUsers: false } },
1537
+ "/resident/users/industryRoles": { GET: { listUserIndustryRoles: false } }
1538
+ });
1539
+
1540
+ // src/api/wiki.ts
1541
+ Internal.define({
1542
+ "/wiki/nodes": { GET: { listNodes: false } },
1543
+ "/wiki/nodes/queryByUrl": { POST: { getNodeByUrl: false } },
1544
+ "/wiki/nodes/batchQuery": { POST: { getNodes: false } },
1545
+ "/wiki/nodes/{nodeId}": { GET: { getNode: false } },
1546
+ "/wiki/words/details": { GET: { wikiWordsDetail: false } },
1547
+ "/wiki/words/parse": { POST: { wikiWordsParse: false } }
1548
+ });
1549
+
1550
+ // src/api/storage.ts
1551
+ Internal.define({
1552
+ "/storage/workspaces/search": { POST: { searchWorkspaces: false } },
1553
+ "/storage/spaces/dentries/{dentryUuid}/permissions/inheritances": {
1554
+ PUT: { setPermissionInheritance: false },
1555
+ GET: { getPermissionInheritance: false }
1556
+ },
1557
+ "/storage/spaces/dentries/{dentryUuid}/permissions": {
1558
+ PUT: { storageUpdatePermission: false },
1559
+ POST: { storageAddPermission: false }
1560
+ },
1561
+ "/storage/spaces/dentries/{dentryUuid}/permissions/remove": {
1562
+ POST: { storageDeletePermission: false }
1563
+ },
1564
+ "/storage/spaces/dentries/{dentryUuid}/permissions/query": {
1565
+ POST: { listPermissionsOrg: false }
1566
+ },
1567
+ "/storage/dentries/search": { POST: { searchDentries: false } },
1568
+ "/storage/spaces/files/{parentDentryUuid}/commit": {
1569
+ POST: { storageCommitFile: false }
1570
+ },
1571
+ "/storage/spaces/files/{parentDentryUuid}/uploadInfos/query": {
1572
+ POST: { storageGetFileUploadInfo: false }
1573
+ },
1574
+ "/storage/events/unsubscribe": { POST: { unsubscribeEvent: false } },
1575
+ "/storage/spaces/{spaceId}/dentries/listAll": {
1576
+ POST: { listAllDentries: false }
1577
+ },
1578
+ "/storage/spaces/{spaceId}/dentries/query": { POST: { getDentries: false } },
1579
+ "/storage/spaces/{spaceId}/thumbnails/query": {
1580
+ POST: { getDentryThumbnails: false }
1581
+ },
1582
+ "/storage/spaces/{spaceId}/dentries/batchMove": {
1583
+ POST: { moveDentries: false }
1584
+ },
1585
+ "/storage/spaces/{spaceId}/dentries/batchCopy": {
1586
+ POST: { copyDentries: false }
1587
+ },
1588
+ "/storage/spaces/{spaceId}/dentries/batchRemove": {
1589
+ POST: { deleteDentries: false }
1590
+ },
1591
+ "/storage/tasks/{taskId}": { GET: { getTask: false } },
1592
+ "/storage/spaces/{spaceId}/files/multiPartUploadInfos/init": {
1593
+ POST: { initMultipartFileUpload: false }
1594
+ },
1595
+ "/storage/spaces/files/multiPartUploadInfos/query": {
1596
+ POST: { getMultipartFileUploadInfos: false }
1597
+ },
1598
+ "/storage/orgs/{corpId}": { GET: { getOrg: false } },
1599
+ "/storage/recycleBins/{recycleBinId}/recycleItems/{recycleItemId}/restore": {
1600
+ POST: { restoreRecycleItem: false }
1601
+ },
1602
+ "/storage/recycleBins": { GET: { getRecycleBin: false } },
1603
+ "/storage/recycleBins/{recycleBinId}/recycleItems/{recycleItemId}": {
1604
+ GET: { getRecycleItem: false },
1605
+ DELETE: { deleteRecycleItem: false }
1606
+ },
1607
+ "/storage/recycleBins/{recycleBinId}/clear": {
1608
+ POST: { clearRecycleBin: false }
1609
+ },
1610
+ "/storage/recycleBins/{recycleBinId}/recycleItems/batchRemove": {
1611
+ POST: { deleteRecycleItems: false }
1612
+ },
1613
+ "/storage/recycleBins/{recycleBinId}/recycleItems/batchRestore": {
1614
+ POST: { restoreRecycleItems: false }
1615
+ },
1616
+ "/storage/spaces/{spaceId}/dentries/{dentryId}/versions": {
1617
+ GET: { listDentryVersions: false }
1618
+ },
1619
+ "/storage/spaces/{spaceId}/dentries/{dentryId}/openInfos/query": {
1620
+ POST: { getDentryOpenInfo: false }
1621
+ },
1622
+ "/storage/spaces/{spaceId}/dentries/{dentryId}/move": {
1623
+ POST: { moveDentry: false }
1624
+ },
1625
+ "/storage/spaces/{spaceId}/dentries/{dentryId}/permissions/query": {
1626
+ POST: { listPermissionsIsv: false }
1627
+ },
1628
+ "/storage/spaces/{spaceId}/dentries/{dentryId}/downloadInfos/query": {
1629
+ POST: { getFileDownloadInfo: false }
1630
+ },
1631
+ "/storage/recycleBins/{recycleBinId}/recycleItems": {
1632
+ GET: { listRecycleItems: false }
1633
+ },
1634
+ "/storage/spaces/{spaceId}/dentries/{dentryId}": {
1635
+ DELETE: { deleteDentry: false }
1636
+ },
1637
+ "/storage/spaces/{spaceId}/dentries/{dentryId}/rename": {
1638
+ POST: { renameDentry: false }
1639
+ },
1640
+ "/storage/spaces/{spaceId}/dentries": { GET: { listDentries: false } },
1641
+ "/storage/spaces/{spaceId}/dentries/{dentryId}/versions/{version}/revert": {
1642
+ POST: { revertDentryVersion: false }
1643
+ },
1644
+ "/storage/spaces/{spaceId}/dentries/{dentryId}/copy": {
1645
+ POST: { copyDentry: false }
1646
+ },
1647
+ "/storage/currentApps/query": { POST: { getCurrentApp: false } },
1648
+ "/storage/spaces/{spaceId}": { GET: { storageGetSpace: false } },
1649
+ "/storage/spaces/{spaceId}/dentries/{parentId}/folders": {
1650
+ POST: { addFolder: false }
1651
+ },
1652
+ "/storage/spaces/{spaceId}/dentries/{dentryId}/query": {
1653
+ POST: { getDentry: false }
1654
+ },
1655
+ "/storage/spaces/{spaceId}/dentries/{dentryId}/appProperties/remove": {
1656
+ POST: { deleteDentryAppProperties: false }
1657
+ },
1658
+ "/storage/spaces/{spaceId}/dentries/{dentryId}/appProperties": {
1659
+ PUT: { updateDentryAppProperties: false }
1660
+ },
1661
+ "/storage/spaces/{spaceId}/files/commit": {
1662
+ POST: { storageCommitFile: false }
1663
+ },
1664
+ "/storage/spaces/{spaceId}/files/uploadInfos/query": {
1665
+ POST: { storageGetFileUploadInfo: false }
1666
+ },
1667
+ "/storage/spaces/{spaceId}/dentries/{dentryId}/permissions": {
1668
+ PUT: { storageUpdatePermission: false },
1669
+ POST: { storageAddPermission: false }
1670
+ },
1671
+ "/storage/spaces/{spaceId}/dentries/{dentryId}/permissions/remove": {
1672
+ POST: { storageDeletePermission: false }
1673
+ },
1674
+ "/storage/spaces": { POST: { storageAddSpace: false } }
1675
+ });
1676
+
1677
+ // src/api/doc.ts
1678
+ Internal.define({
1679
+ "/doc/workbooks/{workbookId}/sheets/{sheetId}/setRowsVisibility": {
1680
+ POST: { setRowsVisibility: false }
1681
+ },
1682
+ "/doc/workbooks/{workbookId}/sheets/{sheetId}/setColumnsVisibility": {
1683
+ POST: { setColumnsVisibility: false }
1684
+ },
1685
+ "/doc/workbooks/{workbookId}/sheets/{sheetId}/deleteRows": {
1686
+ POST: { deleteRows: false }
1687
+ },
1688
+ "/doc/workbooks/{workbookId}/sheets/{sheetId}/deleteColumns": {
1689
+ POST: { deleteColumns: false }
1690
+ },
1691
+ "/doc/workbooks/{workbookId}/sheets/{sheetId}/insertRowsBefore": {
1692
+ POST: { insertRowsBefore: false }
1693
+ },
1694
+ "/doc/workbooks/{workbookId}/sheets/{sheetId}/insertColumnsBefore": {
1695
+ POST: { insertColumnsBefore: false }
1696
+ },
1697
+ "/doc/workbooks/{workbookId}/sheets/{sheetId}/ranges/{rangeAddress}/clear": {
1698
+ POST: { clear: false }
1699
+ },
1700
+ "/doc/workbooks/{workbookId}/sheets/{sheetId}/ranges/{rangeAddress}/clearData": { POST: { clearData: false } }
1701
+ });
1702
+
1703
+ // src/api/diot.ts
1704
+ Internal.define({ "/diot/upgrade/device": { POST: { upgradeDevice: false } } });
1705
+
1706
+ // src/api/h3yun.ts
1707
+ Internal.define({
1708
+ "/h3yun/attachments/uploadUrls": { GET: { getUploadUrl: false } },
1709
+ "/h3yun/apps/functionNodes": { GET: { queryAppFunctionNodes: false } },
1710
+ "/h3yun/processes/instances": {
1711
+ POST: { createProcessesInstance: false },
1712
+ DELETE: { deleteProcessesInstance: false },
1713
+ GET: { queryProcessesInstance: false }
1714
+ },
1715
+ "/h3yun/forms/loadBizFields": { GET: { loadBizFields: false } },
1716
+ "/h3yun/processes/workItems": { GET: { queryProcessesWorkItems: false } },
1717
+ "/h3yun/forms/instances/batch": { POST: { batchInsertBizObject: false } },
1718
+ "/h3yun/forms/instances": {
1719
+ DELETE: { deleteBizObject: false },
1720
+ POST: { createBizObject: false },
1721
+ PUT: { updateBizObject: false }
1722
+ },
1723
+ "/h3yun/processes/instances/cancel": {
1724
+ POST: { cancelProcessInstance: false }
1725
+ },
1726
+ "/h3yun/forms/instances/loadInstances": { GET: { loadBizObject: false } },
1727
+ "/h3yun/forms/instances/search": { POST: { loadBizObjects: false } },
1728
+ "/h3yun/attachments/temporaryUrls": {
1729
+ GET: { getAttachmentTemporaryUrl: false }
1730
+ },
1731
+ "/h3yun/roles/roleUsers": { GET: { getRoleUsers: false } },
1732
+ "/h3yun/roles": { GET: { getRoles: false } },
1733
+ "/h3yun/users": { GET: { getUsers: false } },
1734
+ "/h3yun/apps/search": { POST: { getApps: false } },
1735
+ "/h3yun/departments": { GET: { getOrganizations: false } }
1736
+ });
1737
+
1738
+ // src/api/link.ts
1739
+ Internal.define({
1740
+ "/link/followers/statuses": { GET: { getUserFollowStatus: false } },
1741
+ "/link/accounts": { GET: { listAccount: false } },
1742
+ "/link/followers": { GET: { listFollower: false } },
1743
+ "/link/followers/infos": { GET: { getFollowerInfo: false } }
1744
+ });
1745
+
1746
+ // src/api/pedia.ts
1747
+ Internal.define({
1748
+ "/pedia/words/query": { POST: { pediaWordsQuery: false } },
1749
+ "/pedia/words/search": { POST: { pediaWordsSearch: false } },
1750
+ "/pedia/words/approve": { POST: { pediaWordsApprove: false } },
1751
+ "/pedia/words": {
1752
+ DELETE: { pediaWordsDelete: false },
1753
+ PUT: { pediaWordsUpdate: false },
1754
+ POST: { pediaWordsAdd: false }
1755
+ }
1756
+ });
1757
+
1758
+ // src/api/devicemng.ts
1759
+ Internal.define({
1760
+ "/devicemng/customers/devices/maintainInfos/query": {
1761
+ POST: { listMaintainInfo: false }
1762
+ },
1763
+ "/devicemng/customers/devices/inspectInfos/query": {
1764
+ POST: { listInspectInfo: false }
1765
+ },
1766
+ "/devicemng/customers/devices/activations/infos": {
1767
+ GET: { listActivateDevices: false }
1768
+ },
1769
+ "/devicemng/customers/devices/registrationActivations/batch": {
1770
+ POST: { registerAndActivateDeviceBatch: false }
1771
+ },
1772
+ "/devicemng/customers/devices/registerAndActivate": {
1773
+ POST: { registerAndActivateDevice: false }
1774
+ }
1775
+ });
1776
+
1777
+ // src/api/convFile.ts
1778
+ Internal.define({
1779
+ "/convFile/conversations/files/links/send": { POST: { sendLink: false } },
1780
+ "/convFile/conversations/files/send": { POST: { send: false } },
1781
+ "/convFile/conversations/spaces/query": { POST: { convFileGetSpace: false } },
1782
+ "/convFile/apps/conversations/files/send": { POST: { sendByApp: false } }
1783
+ });
1784
+
1785
+ // src/api/industry.ts
1786
+ Internal.define({
1787
+ "/industry/campuses/projectInfos": { GET: { campusGetCampus: false } },
1788
+ "/industry/campuses/projects/groupInfos": {
1789
+ GET: { campusGetCampusGroup: false }
1790
+ },
1791
+ "/industry/campuses/projects": { POST: { campusCreateCampus: false } },
1792
+ "/industry/campuses/projects/groups": {
1793
+ POST: { campusCreateCampusGroup: false },
1794
+ DELETE: { campusDeleteCampusGroup: false }
1795
+ }
1796
+ });
1797
+
1798
+ // src/api/live.ts
1799
+ Internal.define({
1800
+ "/live/lives": {
1801
+ DELETE: { deleteLive: false },
1802
+ PUT: { updateLive: false },
1803
+ POST: { createLive: false },
1804
+ GET: { queryLiveInfo: false }
1805
+ },
1806
+ "/live/lives/watchUsers": { GET: { queryLiveWatchUserList: false } },
1807
+ "/live/lives/watchDetails": { GET: { queryLiveWatchDetail: false } }
1808
+ });
1809
+
1810
+ // src/api/card.ts
1811
+ Internal.define({
1812
+ "/card/instances": {
1813
+ PUT: { updateCard: false },
1814
+ POST: { createCard: false }
1815
+ },
1816
+ "/card/instances/createAndDeliver": { POST: { createAndDeliver: false } },
1817
+ "/card/callbacks/register": { POST: { registerCallback: false } },
1818
+ "/card/instances/spaces": { PUT: { appendSpace: false } },
1819
+ "/card/instances/deliver": { POST: { deliverCard: false } }
1820
+ });
1821
+
1822
+ // src/api/rooms.ts
1823
+ Internal.define({
1824
+ "/rooms/devices/properties/query": { POST: { queryDeviceProperties: false } },
1825
+ "/rooms/devices": { GET: { queryMeetingRoomDevice: false } },
1826
+ "/rooms/groups/{groupId}": {
1827
+ DELETE: { deleteMeetingRoomGroup: false },
1828
+ GET: { queryMeetingRoomGroup: false }
1829
+ },
1830
+ "/rooms/groups": {
1831
+ PUT: { updateMeetingRoomGroup: false },
1832
+ POST: { createMeetingRoomGroup: false }
1833
+ },
1834
+ "/rooms/groupLists": { GET: { queryMeetingRoomGroupList: false } },
1835
+ "/rooms/meetingRooms/{roomId}": {
1836
+ DELETE: { deleteMeetingRoom: false },
1837
+ GET: { queryMeetingRoom: false }
1838
+ },
1839
+ "/rooms/meetingRoomLists": { GET: { queryMeetingRoomList: false } },
1840
+ "/rooms/meetingRooms": { PUT: { updateMeetingRoom: false } },
1841
+ "/rooms/meetingrooms": { POST: { createMeetingRoom: false } }
1842
+ });
1843
+
1844
+ // src/index.ts
1845
+ var src_default = DingtalkBot;
1846
+ // Annotate the CommonJS export names for ESM import in node:
1847
+ 0 && (module.exports = {
1848
+ DingtalkBot,
1849
+ DingtalkMessageEncoder,
1850
+ HttpServer,
1851
+ decodeMessage,
1852
+ escape,
1853
+ unescape
1854
+ });
1855
+ //# sourceMappingURL=index.cjs.map