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