@satorijs/adapter-lark 3.11.8 → 3.12.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 (68) hide show
  1. package/lib/bot.d.ts +5 -5
  2. package/lib/http.d.ts +6 -3
  3. package/lib/index.cjs +634 -261
  4. package/lib/types/acs.d.ts +4 -1
  5. package/lib/types/aily.d.ts +3 -3
  6. package/lib/types/apaas.d.ts +190 -28
  7. package/lib/types/application.d.ts +20 -4
  8. package/lib/types/approval.d.ts +0 -13
  9. package/lib/types/attendance.d.ts +11 -5
  10. package/lib/types/authen.d.ts +8 -2
  11. package/lib/types/bitable.d.ts +25 -4
  12. package/lib/types/board.d.ts +56 -0
  13. package/lib/types/calendar.d.ts +71 -5
  14. package/lib/types/cardkit.d.ts +2 -2
  15. package/lib/types/compensation.d.ts +400 -0
  16. package/lib/types/contact.d.ts +55 -12
  17. package/lib/types/corehr.d.ts +1287 -79
  18. package/lib/types/directory.d.ts +3 -41
  19. package/lib/types/docx.d.ts +23 -0
  20. package/lib/types/drive.d.ts +107 -90
  21. package/lib/types/ehr.d.ts +11 -2
  22. package/lib/types/helpdesk.d.ts +15 -6
  23. package/lib/types/hire.d.ts +52 -3
  24. package/lib/types/human_authentication.d.ts +1 -1
  25. package/lib/types/im.d.ts +77 -21
  26. package/lib/types/index.d.ts +1670 -105
  27. package/lib/types/mail.d.ts +106 -16
  28. package/lib/types/payroll.d.ts +117 -81
  29. package/lib/types/performance.d.ts +1 -1
  30. package/lib/types/search.d.ts +4 -1
  31. package/lib/types/security_and_compliance.d.ts +254 -1
  32. package/lib/ws.d.ts +30 -0
  33. package/package.json +6 -3
  34. package/src/bot.ts +28 -15
  35. package/src/http.ts +10 -4
  36. package/src/types/acs.ts +4 -1
  37. package/src/types/aily.ts +3 -3
  38. package/src/types/apaas.ts +237 -38
  39. package/src/types/application.ts +20 -4
  40. package/src/types/approval.ts +0 -15
  41. package/src/types/attendance.ts +11 -5
  42. package/src/types/authen.ts +8 -2
  43. package/src/types/bitable.ts +25 -4
  44. package/src/types/board.ts +75 -2
  45. package/src/types/calendar.ts +88 -5
  46. package/src/types/cardkit.ts +2 -2
  47. package/src/types/compensation.ts +485 -0
  48. package/src/types/contact.ts +55 -12
  49. package/src/types/corehr.ts +1480 -123
  50. package/src/types/directory.ts +3 -53
  51. package/src/types/docx.ts +29 -0
  52. package/src/types/drive.ts +129 -112
  53. package/src/types/ehr.ts +11 -2
  54. package/src/types/helpdesk.ts +15 -6
  55. package/src/types/hire.ts +66 -3
  56. package/src/types/human_authentication.ts +1 -1
  57. package/src/types/im.ts +77 -21
  58. package/src/types/index.ts +1751 -107
  59. package/src/types/mail.ts +106 -16
  60. package/src/types/payroll.ts +146 -103
  61. package/src/types/performance.ts +1 -1
  62. package/src/types/search.ts +4 -1
  63. package/src/types/security_and_compliance.ts +292 -1
  64. package/src/ws.ts +183 -0
  65. package/lib/types/api.d.ts +0 -28510
  66. package/lib/types/internal.d.ts +0 -21
  67. package/lib/types/message/content.d.ts +0 -433
  68. package/lib/types/message/index.d.ts +0 -95
package/lib/index.cjs CHANGED
@@ -39,7 +39,7 @@ __export(index_exports, {
39
39
  module.exports = __toCommonJS(index_exports);
40
40
 
41
41
  // src/bot.ts
42
- var import_core5 = require("@satorijs/core");
42
+ var import_core6 = require("@satorijs/core");
43
43
 
44
44
  // src/http.ts
45
45
  var import_core2 = require("@satorijs/core");
@@ -48,120 +48,20 @@ var import_core2 = require("@satorijs/core");
48
48
  var import_crypto = __toESM(require("crypto"), 1);
49
49
  var import_core = require("@satorijs/core");
50
50
 
51
- // node_modules/cosmokit/lib/index.mjs
52
- var __defProp2 = Object.defineProperty;
53
- var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
54
- function noop() {
55
- }
56
- __name(noop, "noop");
57
- __name2(noop, "noop");
58
- function isNullable(value) {
59
- return value === null || value === void 0;
60
- }
61
- __name(isNullable, "isNullable");
62
- __name2(isNullable, "isNullable");
63
- function isNonNullable(value) {
64
- return !isNullable(value);
65
- }
66
- __name(isNonNullable, "isNonNullable");
67
- __name2(isNonNullable, "isNonNullable");
68
- function isPlainObject(data) {
69
- return data && typeof data === "object" && !Array.isArray(data);
70
- }
71
- __name(isPlainObject, "isPlainObject");
72
- __name2(isPlainObject, "isPlainObject");
73
- function filterKeys(object, filter) {
74
- return Object.fromEntries(Object.entries(object).filter(([key, value]) => filter(key, value)));
75
- }
76
- __name(filterKeys, "filterKeys");
77
- __name2(filterKeys, "filterKeys");
78
- function mapValues(object, transform) {
79
- return Object.fromEntries(Object.entries(object).map(([key, value]) => [key, transform(value, key)]));
80
- }
81
- __name(mapValues, "mapValues");
82
- __name2(mapValues, "mapValues");
83
- function pick(source, keys, forced) {
84
- if (!keys) return { ...source };
85
- const result = {};
86
- for (const key of keys) {
87
- if (forced || source[key] !== void 0) result[key] = source[key];
88
- }
89
- return result;
90
- }
91
- __name(pick, "pick");
92
- __name2(pick, "pick");
93
- function omit(source, keys) {
94
- if (!keys) return { ...source };
95
- const result = { ...source };
96
- for (const key of keys) {
97
- Reflect.deleteProperty(result, key);
98
- }
99
- return result;
100
- }
101
- __name(omit, "omit");
102
- __name2(omit, "omit");
103
- function defineProperty(object, key, value) {
104
- return Object.defineProperty(object, key, { writable: true, value, enumerable: false });
105
- }
106
- __name(defineProperty, "defineProperty");
107
- __name2(defineProperty, "defineProperty");
108
- function contain(array1, array2) {
109
- return array2.every((item) => array1.includes(item));
110
- }
111
- __name(contain, "contain");
112
- __name2(contain, "contain");
113
- function intersection(array1, array2) {
114
- return array1.filter((item) => array2.includes(item));
115
- }
116
- __name(intersection, "intersection");
117
- __name2(intersection, "intersection");
118
- function difference(array1, array2) {
119
- return array1.filter((item) => !array2.includes(item));
120
- }
121
- __name(difference, "difference");
122
- __name2(difference, "difference");
123
- function union(array1, array2) {
124
- return Array.from(/* @__PURE__ */ new Set([...array1, ...array2]));
125
- }
126
- __name(union, "union");
127
- __name2(union, "union");
128
- function deduplicate(array) {
129
- return [...new Set(array)];
130
- }
131
- __name(deduplicate, "deduplicate");
132
- __name2(deduplicate, "deduplicate");
133
- function remove(list, item) {
134
- const index = list?.indexOf(item);
135
- if (index >= 0) {
136
- list.splice(index, 1);
137
- return true;
138
- } else {
139
- return false;
140
- }
141
- }
142
- __name(remove, "remove");
143
- __name2(remove, "remove");
144
- function makeArray(source) {
145
- return Array.isArray(source) ? source : isNullable(source) ? [] : [source];
146
- }
147
- __name(makeArray, "makeArray");
148
- __name2(makeArray, "makeArray");
51
+ // ../../node_modules/cosmokit/lib/index.mjs
149
52
  function is(type, value) {
150
53
  if (arguments.length === 1) return (value2) => is(type, value2);
151
54
  return type in globalThis && value instanceof globalThis[type] || Object.prototype.toString.call(value).slice(8, -1) === type;
152
55
  }
153
56
  __name(is, "is");
154
- __name2(is, "is");
155
57
  function isArrayBufferLike(value) {
156
58
  return is("ArrayBuffer", value) || is("SharedArrayBuffer", value);
157
59
  }
158
60
  __name(isArrayBufferLike, "isArrayBufferLike");
159
- __name2(isArrayBufferLike, "isArrayBufferLike");
160
61
  function isArrayBufferSource(value) {
161
62
  return isArrayBufferLike(value) || ArrayBuffer.isView(value);
162
63
  }
163
64
  __name(isArrayBufferSource, "isArrayBufferSource");
164
- __name2(isArrayBufferSource, "isArrayBufferSource");
165
65
  var Binary;
166
66
  ((Binary2) => {
167
67
  Binary2.is = isArrayBufferLike;
@@ -175,8 +75,8 @@ var Binary;
175
75
  }
176
76
  __name(fromSource, "fromSource");
177
77
  Binary2.fromSource = fromSource;
178
- __name2(fromSource, "fromSource");
179
78
  function toBase64(source) {
79
+ source = fromSource(source);
180
80
  if (typeof Buffer !== "undefined") {
181
81
  return Buffer.from(source).toString("base64");
182
82
  }
@@ -189,21 +89,19 @@ var Binary;
189
89
  }
190
90
  __name(toBase64, "toBase64");
191
91
  Binary2.toBase64 = toBase64;
192
- __name2(toBase64, "toBase64");
193
92
  function fromBase64(source) {
194
93
  if (typeof Buffer !== "undefined") return fromSource(Buffer.from(source, "base64"));
195
94
  return Uint8Array.from(atob(source), (c) => c.charCodeAt(0));
196
95
  }
197
96
  __name(fromBase64, "fromBase64");
198
97
  Binary2.fromBase64 = fromBase64;
199
- __name2(fromBase64, "fromBase64");
200
98
  function toHex(source) {
99
+ source = fromSource(source);
201
100
  if (typeof Buffer !== "undefined") return Buffer.from(source).toString("hex");
202
101
  return Array.from(new Uint8Array(source), (byte) => byte.toString(16).padStart(2, "0")).join("");
203
102
  }
204
103
  __name(toHex, "toHex");
205
104
  Binary2.toHex = toHex;
206
- __name2(toHex, "toHex");
207
105
  function fromHex(source) {
208
106
  if (typeof Buffer !== "undefined") return fromSource(Buffer.from(source, "hex"));
209
107
  const hex = source.length % 2 === 0 ? source : source.slice(0, source.length - 1);
@@ -215,87 +113,50 @@ var Binary;
215
113
  }
216
114
  __name(fromHex, "fromHex");
217
115
  Binary2.fromHex = fromHex;
218
- __name2(fromHex, "fromHex");
219
116
  })(Binary || (Binary = {}));
220
117
  var base64ToArrayBuffer = Binary.fromBase64;
221
118
  var arrayBufferToBase64 = Binary.toBase64;
222
119
  var hexToArrayBuffer = Binary.fromHex;
223
120
  var arrayBufferToHex = Binary.toHex;
224
- function clone(source) {
225
- if (!source || typeof source !== "object") return source;
226
- if (Array.isArray(source)) return source.map(clone);
227
- if (is("Date", source)) return new Date(source.valueOf());
228
- if (is("RegExp", source)) return new RegExp(source.source, source.flags);
229
- if (isArrayBufferLike(source)) return source.slice(0);
230
- if (ArrayBuffer.isView(source)) return source.buffer.slice(source.byteOffset, source.byteOffset + source.byteLength);
231
- const result = Object.create(Object.getPrototypeOf(source));
232
- for (const key of Reflect.ownKeys(source)) {
233
- Reflect.defineProperty(result, key, Reflect.getOwnPropertyDescriptor(source, key));
234
- }
235
- return result;
236
- }
237
- __name(clone, "clone");
238
- __name2(clone, "clone");
239
- function deepEqual(a, b, strict) {
240
- if (a === b) return true;
241
- if (!strict && isNullable(a) && isNullable(b)) return true;
242
- if (typeof a !== typeof b) return false;
243
- if (typeof a !== "object") return false;
244
- if (!a || !b) return false;
245
- function check(test, then) {
246
- return test(a) ? test(b) ? then(a, b) : false : test(b) ? false : void 0;
247
- }
248
- __name(check, "check");
249
- __name2(check, "check");
250
- return check(Array.isArray, (a2, b2) => a2.length === b2.length && a2.every((item, index) => deepEqual(item, b2[index]))) ?? check(is("Date"), (a2, b2) => a2.valueOf() === b2.valueOf()) ?? check(is("RegExp"), (a2, b2) => a2.source === b2.source && a2.flags === b2.flags) ?? check(isArrayBufferLike, (a2, b2) => {
251
- if (a2.byteLength !== b2.byteLength) return false;
252
- const viewA = new Uint8Array(a2);
253
- const viewB = new Uint8Array(b2);
254
- for (let i = 0; i < viewA.length; i++) {
255
- if (viewA[i] !== viewB[i]) return false;
121
+ function tokenize(source, delimiters, delimiter) {
122
+ const output = [];
123
+ let state = 0;
124
+ for (let i = 0; i < source.length; i++) {
125
+ const code = source.charCodeAt(i);
126
+ if (code >= 65 && code <= 90) {
127
+ if (state === 1) {
128
+ const next = source.charCodeAt(i + 1);
129
+ if (next >= 97 && next <= 122) {
130
+ output.push(delimiter);
131
+ }
132
+ output.push(code + 32);
133
+ } else {
134
+ if (state !== 0) {
135
+ output.push(delimiter);
136
+ }
137
+ output.push(code + 32);
138
+ }
139
+ state = 1;
140
+ } else if (code >= 97 && code <= 122) {
141
+ output.push(code);
142
+ state = 2;
143
+ } else if (delimiters.includes(code)) {
144
+ if (state !== 0) {
145
+ output.push(delimiter);
146
+ }
147
+ state = 0;
148
+ } else {
149
+ output.push(code);
256
150
  }
257
- return true;
258
- }) ?? Object.keys({ ...a, ...b }).every((key) => deepEqual(a[key], b[key], strict));
259
- }
260
- __name(deepEqual, "deepEqual");
261
- __name2(deepEqual, "deepEqual");
262
- function capitalize(source) {
263
- return source.charAt(0).toUpperCase() + source.slice(1);
264
- }
265
- __name(capitalize, "capitalize");
266
- __name2(capitalize, "capitalize");
267
- function uncapitalize(source) {
268
- return source.charAt(0).toLowerCase() + source.slice(1);
269
- }
270
- __name(uncapitalize, "uncapitalize");
271
- __name2(uncapitalize, "uncapitalize");
272
- function camelCase(source) {
273
- return source.replace(/[_-][a-z]/g, (str) => str.slice(1).toUpperCase());
151
+ }
152
+ return String.fromCharCode(...output);
274
153
  }
275
- __name(camelCase, "camelCase");
276
- __name2(camelCase, "camelCase");
154
+ __name(tokenize, "tokenize");
277
155
  function paramCase(source) {
278
- return uncapitalize(source).replace(/_/g, "-").replace(/.[A-Z]+/g, (str) => str[0] + "-" + str.slice(1).toLowerCase());
156
+ return tokenize(source, [45, 95], 45);
279
157
  }
280
158
  __name(paramCase, "paramCase");
281
- __name2(paramCase, "paramCase");
282
- function snakeCase(source) {
283
- return uncapitalize(source).replace(/-/g, "_").replace(/.[A-Z]+/g, (str) => str[0] + "_" + str.slice(1).toLowerCase());
284
- }
285
- __name(snakeCase, "snakeCase");
286
- __name2(snakeCase, "snakeCase");
287
159
  var hyphenate = paramCase;
288
- function trimSlash(source) {
289
- return source.replace(/\/$/, "");
290
- }
291
- __name(trimSlash, "trimSlash");
292
- __name2(trimSlash, "trimSlash");
293
- function sanitize(source) {
294
- if (!source.startsWith("/")) source = "/" + source;
295
- return trimSlash(source);
296
- }
297
- __name(sanitize, "sanitize");
298
- __name2(sanitize, "sanitize");
299
160
  var Time;
300
161
  ((Time22) => {
301
162
  Time22.millisecond = 1;
@@ -310,13 +171,11 @@ var Time;
310
171
  }
311
172
  __name(setTimezoneOffset, "setTimezoneOffset");
312
173
  Time22.setTimezoneOffset = setTimezoneOffset;
313
- __name2(setTimezoneOffset, "setTimezoneOffset");
314
174
  function getTimezoneOffset() {
315
175
  return timezoneOffset;
316
176
  }
317
177
  __name(getTimezoneOffset, "getTimezoneOffset");
318
178
  Time22.getTimezoneOffset = getTimezoneOffset;
319
- __name2(getTimezoneOffset, "getTimezoneOffset");
320
179
  function getDateNumber(date = /* @__PURE__ */ new Date(), offset) {
321
180
  if (typeof date === "number") date = new Date(date);
322
181
  if (offset === void 0) offset = timezoneOffset;
@@ -324,7 +183,6 @@ var Time;
324
183
  }
325
184
  __name(getDateNumber, "getDateNumber");
326
185
  Time22.getDateNumber = getDateNumber;
327
- __name2(getDateNumber, "getDateNumber");
328
186
  function fromDateNumber(value, offset) {
329
187
  const date = new Date(value * Time22.day);
330
188
  if (offset === void 0) offset = timezoneOffset;
@@ -332,7 +190,6 @@ var Time;
332
190
  }
333
191
  __name(fromDateNumber, "fromDateNumber");
334
192
  Time22.fromDateNumber = fromDateNumber;
335
- __name2(fromDateNumber, "fromDateNumber");
336
193
  const numeric = /\d+(?:\.\d+)?/.source;
337
194
  const timeRegExp = new RegExp(`^${[
338
195
  "w(?:eek(?:s)?)?",
@@ -348,7 +205,6 @@ var Time;
348
205
  }
349
206
  __name(parseTime, "parseTime");
350
207
  Time22.parseTime = parseTime;
351
- __name2(parseTime, "parseTime");
352
208
  function parseDate(date) {
353
209
  const parsed = parseTime(date);
354
210
  if (parsed) {
@@ -362,7 +218,6 @@ var Time;
362
218
  }
363
219
  __name(parseDate, "parseDate");
364
220
  Time22.parseDate = parseDate;
365
- __name2(parseDate, "parseDate");
366
221
  function format(ms) {
367
222
  const abs = Math.abs(ms);
368
223
  if (abs >= Time22.day - Time22.hour / 2) {
@@ -378,19 +233,16 @@ var Time;
378
233
  }
379
234
  __name(format, "format");
380
235
  Time22.format = format;
381
- __name2(format, "format");
382
236
  function toDigits(source, length = 2) {
383
237
  return source.toString().padStart(length, "0");
384
238
  }
385
239
  __name(toDigits, "toDigits");
386
240
  Time22.toDigits = toDigits;
387
- __name2(toDigits, "toDigits");
388
241
  function template(template2, time = /* @__PURE__ */ new Date()) {
389
242
  return template2.replace("yyyy", time.getFullYear().toString()).replace("yy", time.getFullYear().toString().slice(2)).replace("MM", toDigits(time.getMonth() + 1)).replace("dd", toDigits(time.getDate())).replace("hh", toDigits(time.getHours())).replace("mm", toDigits(time.getMinutes())).replace("ss", toDigits(time.getSeconds())).replace("SSS", toDigits(time.getMilliseconds(), 3));
390
243
  }
391
244
  __name(template, "template");
392
245
  Time22.template = template;
393
- __name2(template, "template");
394
246
  })(Time || (Time = {}));
395
247
 
396
248
  // src/utils.ts
@@ -684,7 +536,7 @@ var HttpServer = class extends import_core2.Adapter {
684
536
  const result = enabledSignatureVerify.some((bot2) => {
685
537
  const timestamp = ctx.get("X-Lark-Request-Timestamp");
686
538
  const nonce = ctx.get("X-Lark-Request-Nonce");
687
- const body2 = ctx.request.body[Symbol.for("unparsedBody")];
539
+ const body2 = ctx.request.body[/* @__PURE__ */ Symbol.for("unparsedBody")];
688
540
  const actualSignature = this.ciphers[bot2.config.appId]?.calculateSignature(timestamp, nonce, body2);
689
541
  if (actualSignature === signature) return true;
690
542
  else return false;
@@ -708,7 +560,7 @@ var HttpServer = class extends import_core2.Adapter {
708
560
  if (!result) return ctx.status = 403;
709
561
  }
710
562
  }
711
- bot.logger.debug("received decryped event: %o", body);
563
+ bot.logger.debug("received decrypted event: %o", body);
712
564
  this.dispatchSession(body);
713
565
  ctx.body = {};
714
566
  return ctx.status = 200;
@@ -752,16 +604,154 @@ var HttpServer = class extends import_core2.Adapter {
752
604
  };
753
605
  ((HttpServer2) => {
754
606
  HttpServer2.createConfig = /* @__PURE__ */ __name((path) => import_core2.Schema.object({
607
+ protocol: import_core2.Schema.const("http"),
755
608
  path: import_core2.Schema.string().role("url").description("要连接的服务器地址。").default(path),
756
609
  selfUrl: import_core2.Schema.string().role("link").description("服务器暴露在公网的地址。缺省时将使用全局配置。"),
610
+ encryptKey: import_core2.Schema.string().role("secret").description("机器人的 Encrypt Key。"),
611
+ verificationToken: import_core2.Schema.string().description("事件推送的验证令牌。"),
757
612
  verifyToken: import_core2.Schema.boolean().description("是否验证令牌。"),
758
613
  verifySignature: import_core2.Schema.boolean().description("是否验证签名。")
759
614
  }).description("服务端设置"), "createConfig");
760
615
  })(HttpServer || (HttpServer = {}));
761
616
 
762
- // src/message.ts
617
+ // src/ws.ts
763
618
  var import_core3 = require("@satorijs/core");
764
- var LarkMessageEncoder = class extends import_core3.MessageEncoder {
619
+ var import_light = __toESM(require("protobufjs/light"), 1);
620
+ var WsClient = class extends import_core3.Adapter.WsClient {
621
+ static {
622
+ __name(this, "WsClient");
623
+ }
624
+ _deviceId;
625
+ _serviceId;
626
+ _pingInterval = 9e4;
627
+ _ping;
628
+ _cache = {};
629
+ _frame;
630
+ constructor(ctx, bot) {
631
+ super(ctx, bot);
632
+ }
633
+ async prepare() {
634
+ this._frame = import_light.default.Root.fromJSON({
635
+ nested: {
636
+ Header: {
637
+ fields: {
638
+ key: { rule: "required", type: "string", id: 1 },
639
+ value: { rule: "required", type: "string", id: 2 }
640
+ }
641
+ },
642
+ Frame: {
643
+ fields: {
644
+ SeqID: { rule: "required", type: "uint64", id: 1 },
645
+ LogID: { rule: "required", type: "uint64", id: 2 },
646
+ service: { rule: "required", type: "int32", id: 3 },
647
+ method: { rule: "required", type: "int32", id: 4 },
648
+ headers: { rule: "repeated", type: "Header", id: 5 },
649
+ payloadEncoding: { type: "string", id: 6 },
650
+ payloadType: { type: "string", id: 7 },
651
+ payload: { type: "bytes", id: 8 },
652
+ LogIDNew: { type: "string", id: 9 }
653
+ }
654
+ }
655
+ }
656
+ }).lookupType("Frame");
657
+ const baseUrl = this.bot.config.baseURL ?? new URL(this.bot.config.endpoint).origin;
658
+ const { code, data: { URL: url, ClientConfig: config }, msg } = await this.bot.http.post(`${baseUrl}/callback/ws/endpoint`, {
659
+ AppID: this.bot.config.appId,
660
+ AppSecret: this.bot.config.appSecret
661
+ });
662
+ if (code !== 0) throw new Error(`failed to get gateway url: ${code} ${msg}`);
663
+ const urlObj = new URL(url);
664
+ this._deviceId = urlObj.searchParams.get("device_id");
665
+ this._serviceId = +urlObj.searchParams.get("service_id");
666
+ this._pingInterval = config.PingInterval * 1e3;
667
+ return this.bot.ctx.http.ws(url);
668
+ }
669
+ ping() {
670
+ if (!this.socket || this.bot.status !== import_core3.Universal.Status.ONLINE) {
671
+ clearTimeout(this._ping);
672
+ return;
673
+ }
674
+ const frame = {
675
+ headers: [{
676
+ key: "type",
677
+ value: "ping" /* ping */
678
+ }],
679
+ service: this._serviceId,
680
+ method: 0 /* control */,
681
+ SeqID: 0,
682
+ LogID: 0
683
+ };
684
+ this.send(frame);
685
+ this._ping = setTimeout(() => this.ping(), this._pingInterval);
686
+ }
687
+ async accept() {
688
+ await this.bot.initialize();
689
+ this.socket.addEventListener("message", async ({ data }) => {
690
+ const frame = this._frame.decode(new Uint8Array(data));
691
+ const headers = (frame.headers ?? []).reduce((acc, cur) => {
692
+ acc[cur.key] = cur.value;
693
+ return acc;
694
+ }, {});
695
+ if (frame.method === 0 /* control */ && headers.type === "pong" /* pong */) {
696
+ this.bot.logger.debug("pong");
697
+ return;
698
+ }
699
+ if (frame.method === 1 /* data */) {
700
+ if (headers.type !== "event" /* event */) return;
701
+ const data2 = this.retrieve({
702
+ message_id: headers.message_id,
703
+ sum: +headers.sum,
704
+ seq: +headers.seq,
705
+ data: frame.payload
706
+ });
707
+ if (!data2) return;
708
+ const body = JSON.parse(Buffer.from(data2).toString("utf8"));
709
+ if (!body.header) return;
710
+ this.bot.logger.info("received event: %o", body);
711
+ body.type = body.header.event_type;
712
+ const session = await adaptSession(this.bot, body);
713
+ this.bot.dispatch(session);
714
+ this.send({
715
+ ...frame,
716
+ headers: [...frame.headers, { key: "biz_rt", value: "0" }],
717
+ payload: Buffer.from(JSON.stringify({ code: 200 }))
718
+ });
719
+ }
720
+ });
721
+ this.socket.addEventListener("close", (e) => {
722
+ clearTimeout(this._ping);
723
+ this.bot.offline();
724
+ });
725
+ this.ping();
726
+ }
727
+ send(frame) {
728
+ const encoded = this._frame.encode(frame).finish();
729
+ this.socket.send(encoded);
730
+ }
731
+ retrieve(seg) {
732
+ const { message_id, sum } = seg;
733
+ if (sum === 1) return seg.data;
734
+ if (!this._cache[message_id]) this._cache[message_id] = [];
735
+ this._cache[message_id].push(seg);
736
+ if (this._cache[message_id].length === sum) {
737
+ const data = Buffer.concat(this._cache[message_id].sort((a, b) => a.seq - b.seq).map((item) => item.data));
738
+ delete this._cache[message_id];
739
+ return data;
740
+ }
741
+ }
742
+ };
743
+ ((WsClient2) => {
744
+ WsClient2.Options = import_core3.Schema.intersect([
745
+ import_core3.Schema.object({
746
+ protocol: import_core3.Schema.const("ws").required()
747
+ }),
748
+ import_core3.Adapter.WsClientConfig
749
+ ]);
750
+ })(WsClient || (WsClient = {}));
751
+
752
+ // src/message.ts
753
+ var import_core4 = require("@satorijs/core");
754
+ var LarkMessageEncoder = class extends import_core4.MessageEncoder {
765
755
  static {
766
756
  __name(this, "LarkMessageEncoder");
767
757
  }
@@ -1304,7 +1294,7 @@ var LarkMessageEncoder = class extends import_core3.MessageEncoder {
1304
1294
  };
1305
1295
 
1306
1296
  // src/internal.ts
1307
- var import_core4 = require("@satorijs/core");
1297
+ var import_core5 = require("@satorijs/core");
1308
1298
  var Internal = class _Internal {
1309
1299
  static {
1310
1300
  __name(this, "Internal");
@@ -1322,7 +1312,7 @@ var Internal = class _Internal {
1322
1312
  static _assertResponse(bot, response) {
1323
1313
  if (!response.data.code) return;
1324
1314
  bot.logger.debug("response: %o", response.data);
1325
- const error = new import_core4.HTTP.Error(`request failed`);
1315
+ const error = new import_core5.HTTP.Error(`request failed`);
1326
1316
  error.response = response;
1327
1317
  throw error;
1328
1318
  }
@@ -1346,7 +1336,7 @@ var Internal = class _Internal {
1346
1336
  for (const path in routes) {
1347
1337
  for (const key in routes[path]) {
1348
1338
  const method = key;
1349
- for (let route of (0, import_core4.makeArray)(routes[path][method])) {
1339
+ for (let route of (0, import_core5.makeArray)(routes[path][method])) {
1350
1340
  if (typeof route === "string") {
1351
1341
  route = { name: route };
1352
1342
  }
@@ -1400,16 +1390,16 @@ var Internal = class _Internal {
1400
1390
  iterArgs[argIndex] = { ...args[argIndex] };
1401
1391
  let pagination;
1402
1392
  result.next = async function() {
1403
- pagination ??= await this[Symbol.for("satori.pagination")]();
1393
+ pagination ??= await this[/* @__PURE__ */ Symbol.for("satori.pagination")]();
1404
1394
  if (pagination.data.length) return { done: false, value: pagination.data.shift() };
1405
1395
  if (!pagination.next) return { done: true, value: void 0 };
1406
- pagination = await this[Symbol.for("satori.pagination")]();
1396
+ pagination = await this[/* @__PURE__ */ Symbol.for("satori.pagination")]();
1407
1397
  return this.next();
1408
1398
  };
1409
1399
  result[Symbol.asyncIterator] = function() {
1410
1400
  return this;
1411
1401
  };
1412
- result[Symbol.for("satori.pagination")] = async () => {
1402
+ result[/* @__PURE__ */ Symbol.for("satori.pagination")] = async () => {
1413
1403
  const data = await impl(this, ...iterArgs);
1414
1404
  iterArgs[argIndex].page_token = data[tokenKey];
1415
1405
  return {
@@ -1435,7 +1425,7 @@ var fileTypeMap = {
1435
1425
  xls: ["application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],
1436
1426
  ppt: ["application/vnd.ms-powerpoint", "application/vnd.openxmlformats-officedocument.presentationml.presentation"]
1437
1427
  };
1438
- var LarkBot = class extends import_core5.Bot {
1428
+ var LarkBot = class extends import_core6.Bot {
1439
1429
  static {
1440
1430
  __name(this, "LarkBot");
1441
1431
  }
@@ -1452,7 +1442,11 @@ var LarkBot = class extends import_core5.Bot {
1452
1442
  });
1453
1443
  this.assetsQuester = ctx.http;
1454
1444
  this.internal = new Internal(this);
1455
- ctx.plugin(HttpServer, this);
1445
+ if (config.protocol === "http") {
1446
+ ctx.plugin(HttpServer, this);
1447
+ } else if (config.protocol === "ws") {
1448
+ ctx.plugin(WsClient, this);
1449
+ }
1456
1450
  this.defineInternalRoute("/*path", async ({ params, method, headers, body, query }) => {
1457
1451
  const response = await this.http("/" + params.path, {
1458
1452
  method,
@@ -1481,7 +1475,8 @@ var LarkBot = class extends import_core5.Bot {
1481
1475
  this.online();
1482
1476
  }
1483
1477
  async refreshToken() {
1484
- let timeout = import_core5.Time.minute * 20;
1478
+ if (!this.isActive) return;
1479
+ let timeout = import_core6.Time.minute * 20;
1485
1480
  try {
1486
1481
  const { tenant_access_token: token } = await this.internal.auth.tenantAccessTokenInternal({
1487
1482
  app_id: this.config.appId,
@@ -1492,7 +1487,7 @@ var LarkBot = class extends import_core5.Bot {
1492
1487
  } catch (error) {
1493
1488
  this.logger.error("failed to refresh token, retrying in 10s");
1494
1489
  this.logger.error(error);
1495
- timeout = import_core5.Time.second * 10;
1490
+ timeout = import_core6.Time.second * 10;
1496
1491
  }
1497
1492
  if (this._refresher) clearTimeout(this._refresher);
1498
1493
  this._refresher = setTimeout(() => this.refreshToken(), timeout);
@@ -1510,7 +1505,7 @@ var LarkBot = class extends import_core5.Bot {
1510
1505
  const data = await this.internal.im.message.get(messageId);
1511
1506
  const message = await decodeMessage(this, data.items[0], recursive);
1512
1507
  const im = await this.internal.im.chat.get(channelId);
1513
- message.channel.type = im.chat_mode === "p2p" ? import_core5.Universal.Channel.Type.DIRECT : import_core5.Universal.Channel.Type.TEXT;
1508
+ message.channel.type = im.chat_mode === "p2p" ? import_core6.Universal.Channel.Type.DIRECT : import_core6.Universal.Channel.Type.TEXT;
1514
1509
  return message;
1515
1510
  }
1516
1511
  async getMessageList(channelId, before) {
@@ -1561,28 +1556,33 @@ var LarkBot = class extends import_core5.Bot {
1561
1556
  }
1562
1557
  };
1563
1558
  ((LarkBot2) => {
1564
- LarkBot2.Config = import_core5.Schema.intersect([
1565
- import_core5.Schema.object({
1566
- platform: import_core5.Schema.union(["feishu", "lark"]).required().description("平台名称。"),
1567
- appId: import_core5.Schema.string().required().description("机器人的应用 ID。"),
1568
- appSecret: import_core5.Schema.string().role("secret").required().description("机器人的应用密钥。"),
1569
- encryptKey: import_core5.Schema.string().role("secret").description("机器人的 Encrypt Key。"),
1570
- verificationToken: import_core5.Schema.string().description("事件推送的验证令牌。")
1559
+ LarkBot2.Config = import_core6.Schema.intersect([
1560
+ import_core6.Schema.object({
1561
+ platform: import_core6.Schema.union(["feishu", "lark"]).default("feishu").description("平台名称。"),
1562
+ appId: import_core6.Schema.string().required().description("机器人的应用 ID。"),
1563
+ appSecret: import_core6.Schema.string().role("secret").required().description("机器人的应用密钥。"),
1564
+ protocol: process.env.KOISHI_ENV === "browser" ? import_core6.Schema.const("ws").default("ws") : import_core6.Schema.union(["http", "ws"]).description("选择要使用的协议。").default("http")
1571
1565
  }),
1572
- import_core5.Schema.union([
1573
- import_core5.Schema.intersect([
1574
- import_core5.Schema.object({
1575
- platform: import_core5.Schema.const("feishu").required()
1566
+ import_core6.Schema.union([
1567
+ import_core6.Schema.intersect([
1568
+ import_core6.Schema.object({
1569
+ platform: import_core6.Schema.const("lark").required()
1576
1570
  }),
1577
- import_core5.HTTP.createConfig("https://open.feishu.cn/open-apis"),
1578
- HttpServer.createConfig("/feishu")
1571
+ import_core6.HTTP.createConfig("https://open.larksuite.com/open-apis"),
1572
+ import_core6.Schema.union([
1573
+ HttpServer.createConfig("/lark"),
1574
+ WsClient.Options
1575
+ ])
1579
1576
  ]),
1580
- import_core5.Schema.intersect([
1581
- import_core5.Schema.object({
1582
- platform: import_core5.Schema.const("lark").required()
1577
+ import_core6.Schema.intersect([
1578
+ import_core6.Schema.object({
1579
+ platform: import_core6.Schema.const("feishu")
1583
1580
  }),
1584
- import_core5.HTTP.createConfig("https://open.larksuite.com/open-apis"),
1585
- HttpServer.createConfig("/lark")
1581
+ import_core6.HTTP.createConfig("https://open.feishu.cn/open-apis"),
1582
+ import_core6.Schema.union([
1583
+ HttpServer.createConfig("/feishu"),
1584
+ WsClient.Options
1585
+ ])
1586
1586
  ])
1587
1587
  ])
1588
1588
  ]);
@@ -1600,12 +1600,16 @@ __export(types_exports, {
1600
1600
  Approval: () => Approval,
1601
1601
  Attendance: () => Attendance,
1602
1602
  Bitable: () => Bitable,
1603
+ ColorType: () => ColorType,
1604
+ ConnectorArrowStyle: () => ConnectorArrowStyle,
1605
+ ConnectorLineShape: () => ConnectorLineShape,
1603
1606
  Contact: () => Contact,
1604
1607
  Corehr: () => Corehr,
1605
1608
  CustomFieldValueEnumType: () => CustomFieldValueEnumType,
1606
1609
  CustomFieldValueType: () => CustomFieldValueType,
1607
1610
  CustomFieldValueUserType: () => CustomFieldValueUserType,
1608
1611
  DataSource: () => DataSource,
1612
+ DiagramType: () => DiagramType,
1609
1613
  Docx: () => Docx,
1610
1614
  Ehr: () => Ehr,
1611
1615
  EmployeeActiveStatusDirectory: () => EmployeeActiveStatusDirectory,
@@ -1614,7 +1618,10 @@ __export(types_exports, {
1614
1618
  Hire: () => Hire,
1615
1619
  IdentityProvider: () => IdentityProvider,
1616
1620
  Mail: () => Mail,
1621
+ MindMapLayout: () => MindMapLayout,
1622
+ MindMapType: () => MindMapType,
1617
1623
  Okr: () => Okr,
1624
+ PaintType: () => PaintType,
1618
1625
  Passport: () => Passport,
1619
1626
  Payroll: () => Payroll,
1620
1627
  Performance: () => Performance,
@@ -1623,6 +1630,10 @@ __export(types_exports, {
1623
1630
  ResignTypeDirectory: () => ResignTypeDirectory,
1624
1631
  RunStatus: () => RunStatus,
1625
1632
  Search: () => Search,
1633
+ SecurityAndCompliance: () => SecurityAndCompliance,
1634
+ SnapTo: () => SnapTo,
1635
+ StyleType: () => StyleType,
1636
+ SyntaxType: () => SyntaxType,
1626
1637
  Vc: () => Vc
1627
1638
  });
1628
1639
 
@@ -1793,6 +1804,9 @@ Internal.define({
1793
1804
 
1794
1805
  // src/types/apaas.ts
1795
1806
  Internal.define({
1807
+ "/apaas/v1/apps": {
1808
+ GET: { name: "apaas.app.list", pagination: { argIndex: 0 } }
1809
+ },
1796
1810
  "/apaas/v1/seat_assignments": {
1797
1811
  GET: { name: "apaas.seatAssignment.list", pagination: { argIndex: 0 } }
1798
1812
  },
@@ -1811,6 +1825,12 @@ Internal.define({
1811
1825
  "/apaas/v1/applications/{namespace}/audit_log/data_change_log_detail": {
1812
1826
  GET: "apaas.application.auditLog.dataChangeLogDetail"
1813
1827
  },
1828
+ "/apaas/v1/applications/{namespace}/record_permissions/{record_permission_api_name}/member/batch_remove_authorization": {
1829
+ POST: "apaas.application.recordPermission.member.batchRemoveAuthorization"
1830
+ },
1831
+ "/apaas/v1/applications/{namespace}/record_permissions/{record_permission_api_name}/member/batch_create_authorization": {
1832
+ POST: "apaas.application.recordPermission.member.batchCreateAuthorization"
1833
+ },
1814
1834
  "/apaas/v1/applications/{namespace}/roles/{role_api_name}/member/batch_remove_authorization": {
1815
1835
  POST: "apaas.application.role.member.batchRemoveAuthorization"
1816
1836
  },
@@ -1820,12 +1840,6 @@ Internal.define({
1820
1840
  "/apaas/v1/applications/{namespace}/roles/{role_api_name}/member": {
1821
1841
  GET: "apaas.application.role.member.get"
1822
1842
  },
1823
- "/apaas/v1/applications/{namespace}/record_permissions/{record_permission_api_name}/member/batch_remove_authorization": {
1824
- POST: "apaas.application.recordPermission.member.batchRemoveAuthorization"
1825
- },
1826
- "/apaas/v1/applications/{namespace}/record_permissions/{record_permission_api_name}/member/batch_create_authorization": {
1827
- POST: "apaas.application.recordPermission.member.batchCreateAuthorization"
1828
- },
1829
1843
  "/apaas/v1/applications/{namespace}/objects/oql_query": {
1830
1844
  POST: "apaas.application.object.oqlQuery"
1831
1845
  },
@@ -1898,6 +1912,21 @@ Internal.define({
1898
1912
  },
1899
1913
  "/apaas/v1/user_tasks/{task_id}/chat_group": {
1900
1914
  POST: "apaas.userTask.chatGroup"
1915
+ },
1916
+ "/apaas/v1/workspaces/{workspace_id}/tables/{table_name}/records": {
1917
+ GET: "apaas.workspace.table.recordsGet",
1918
+ POST: "apaas.workspace.table.recordsPost",
1919
+ PATCH: "apaas.workspace.table.recordsPatch",
1920
+ DELETE: "apaas.workspace.table.recordsDelete"
1921
+ },
1922
+ "/apaas/v1/workspaces/{workspace_id}/tables/{table_name}/records_batch_update": {
1923
+ PATCH: "apaas.workspace.table.recordsBatchUpdate"
1924
+ },
1925
+ "/apaas/v1/workspaces/{workspace_id}/views/{view_name}/records": {
1926
+ GET: "apaas.workspace.view.viewsGet"
1927
+ },
1928
+ "/apaas/v1/workspaces/{workspace_id}/sql_commands": {
1929
+ POST: "apaas.workspace.sqlCommands"
1901
1930
  }
1902
1931
  });
1903
1932
 
@@ -2096,8 +2125,7 @@ Internal.define({
2096
2125
  GET: "approval.get"
2097
2126
  },
2098
2127
  "/approval/v4/instances": {
2099
- POST: "approval.instance.create",
2100
- GET: { name: "approval.instance.list", pagination: { argIndex: 0, itemsKey: "instance_code_list" } }
2128
+ POST: "approval.instance.create"
2101
2129
  },
2102
2130
  "/approval/v4/instances/cancel": {
2103
2131
  POST: "approval.instance.cancel"
@@ -2586,11 +2614,21 @@ Internal.define({
2586
2614
 
2587
2615
  // src/types/board.ts
2588
2616
  Internal.define({
2589
- "/board/v1/whiteboards/{whiteboard_id}/nodes": {
2590
- GET: "board.whiteboard.node.list"
2617
+ "/board/v1/whiteboards/{whiteboard_id}/theme": {
2618
+ GET: "board.whiteboard.theme"
2619
+ },
2620
+ "/board/v1/whiteboards/{whiteboard_id}/update_theme": {
2621
+ POST: "board.whiteboard.updateTheme"
2591
2622
  },
2592
2623
  "/board/v1/whiteboards/{whiteboard_id}/download_as_image": {
2593
2624
  GET: { name: "board.whiteboard.downloadAsImage", type: "binary" }
2625
+ },
2626
+ "/board/v1/whiteboards/{whiteboard_id}/nodes/plantuml": {
2627
+ POST: "board.whiteboard.node.createPlantuml"
2628
+ },
2629
+ "/board/v1/whiteboards/{whiteboard_id}/nodes": {
2630
+ POST: "board.whiteboard.node.create",
2631
+ GET: "board.whiteboard.node.list"
2594
2632
  }
2595
2633
  });
2596
2634
 
@@ -2608,9 +2646,18 @@ Internal.define({
2608
2646
  "/calendar/v4/calendars/primary": {
2609
2647
  POST: "calendar.primary"
2610
2648
  },
2649
+ "/calendar/v4/calendars/primarys": {
2650
+ POST: "calendar.primarys"
2651
+ },
2652
+ "/calendar/v4/calendars/mget": {
2653
+ POST: "calendar.mget"
2654
+ },
2611
2655
  "/calendar/v4/freebusy/list": {
2612
2656
  POST: "calendar.freebusy.list"
2613
2657
  },
2658
+ "/calendar/v4/freebusy/batch": {
2659
+ POST: "calendar.freebusy.batch"
2660
+ },
2614
2661
  "/calendar/v4/calendars/search": {
2615
2662
  POST: { name: "calendar.search", pagination: { argIndex: 1 } }
2616
2663
  },
@@ -2733,6 +2780,9 @@ Internal.define({
2733
2780
 
2734
2781
  // src/types/compensation.ts
2735
2782
  Internal.define({
2783
+ "/compensation/v1/archives": {
2784
+ POST: "compensation.archive.create"
2785
+ },
2736
2786
  "/compensation/v1/archives/query": {
2737
2787
  POST: { name: "compensation.archive.query", pagination: { argIndex: 1 } }
2738
2788
  },
@@ -2750,6 +2800,48 @@ Internal.define({
2750
2800
  },
2751
2801
  "/compensation/v1/change_reasons": {
2752
2802
  GET: { name: "compensation.changeReason.list", pagination: { argIndex: 0 } }
2803
+ },
2804
+ "/compensation/v1/social_insurances": {
2805
+ GET: "compensation.socialInsurance.list"
2806
+ },
2807
+ "/compensation/v1/social_plans/query": {
2808
+ POST: "compensation.socialPlan.query"
2809
+ },
2810
+ "/compensation/v1/social_plans": {
2811
+ GET: { name: "compensation.socialPlan.list", pagination: { argIndex: 0, itemsKey: "plans" } }
2812
+ },
2813
+ "/compensation/v1/social_archive_adjust_record/query": {
2814
+ POST: "compensation.socialArchiveAdjustRecord.query"
2815
+ },
2816
+ "/compensation/v1/social_archive/query": {
2817
+ POST: "compensation.socialArchive.query"
2818
+ },
2819
+ "/compensation/v1/lump_sum_payment/batch_create": {
2820
+ POST: "compensation.lumpSumPayment.batchCreate"
2821
+ },
2822
+ "/compensation/v1/lump_sum_payment/batch_update": {
2823
+ POST: "compensation.lumpSumPayment.batchUpdate"
2824
+ },
2825
+ "/compensation/v1/lump_sum_payment/query": {
2826
+ POST: { name: "compensation.lumpSumPayment.query", pagination: { argIndex: 1, itemsKey: "records" } }
2827
+ },
2828
+ "/compensation/v1/lump_sum_payment/query_detail": {
2829
+ POST: { name: "compensation.lumpSumPayment.queryDetail", pagination: { argIndex: 1, itemsKey: "records" } }
2830
+ },
2831
+ "/compensation/v1/lump_sum_payment/batch_remove": {
2832
+ POST: "compensation.lumpSumPayment.batchRemove"
2833
+ },
2834
+ "/compensation/v1/recurring_payment/query": {
2835
+ POST: { name: "compensation.recurringPayment.query", pagination: { argIndex: 1, itemsKey: "records" } }
2836
+ },
2837
+ "/compensation/v1/recurring_payment/batch_update": {
2838
+ POST: "compensation.recurringPayment.batchUpdate"
2839
+ },
2840
+ "/compensation/v1/recurring_payment/batch_remove": {
2841
+ POST: "compensation.recurringPayment.batchRemove"
2842
+ },
2843
+ "/compensation/v1/recurring_payment/batch_create": {
2844
+ POST: "compensation.recurringPayment.batchCreate"
2753
2845
  }
2754
2846
  });
2755
2847
 
@@ -3276,6 +3368,14 @@ Internal.define({
3276
3368
  "/corehr/v2/employees/job_datas/batch_get": {
3277
3369
  POST: "corehr.employees.jobData.batchGet"
3278
3370
  },
3371
+ "/corehr/v2/employees/international_assignments": {
3372
+ POST: "corehr.employees.internationalAssignment.create",
3373
+ GET: "corehr.employees.internationalAssignment.list"
3374
+ },
3375
+ "/corehr/v2/employees/international_assignments/{international_assignment_id}": {
3376
+ PATCH: "corehr.employees.internationalAssignment.patch",
3377
+ DELETE: "corehr.employees.internationalAssignment.delete"
3378
+ },
3279
3379
  "/corehr/v2/employees/additional_jobs": {
3280
3380
  POST: "corehr.employees.additionalJob.create"
3281
3381
  },
@@ -3428,6 +3528,12 @@ Internal.define({
3428
3528
  "/corehr/v2/custom_orgs/delete_org": {
3429
3529
  POST: "corehr.customOrg.deleteOrg"
3430
3530
  },
3531
+ "/corehr/v2/drafts/{draft_id}": {
3532
+ GET: "corehr.draft.get"
3533
+ },
3534
+ "/corehr/v2/approval_groups/open_query_position_change_list_by_ids": {
3535
+ POST: "corehr.approvalGroups.openQueryPositionChangeListByIds"
3536
+ },
3431
3537
  "/corehr/v2/approval_groups/{process_id}": {
3432
3538
  GET: "corehr.approvalGroups.get"
3433
3539
  },
@@ -3452,6 +3558,9 @@ Internal.define({
3452
3558
  "/corehr/v2/job_families/batch_get": {
3453
3559
  POST: "corehr.jobFamily.batchGet"
3454
3560
  },
3561
+ "/corehr/v2/job_families/query_multi_timeline": {
3562
+ POST: "corehr.jobFamily.queryMultiTimeline"
3563
+ },
3455
3564
  "/corehr/v1/job_levels": {
3456
3565
  POST: "corehr.jobLevel.create",
3457
3566
  GET: { name: "corehr.jobLevel.list", pagination: { argIndex: 0 } }
@@ -3480,6 +3589,19 @@ Internal.define({
3480
3589
  "/corehr/v2/job_grades/query_recent_change": {
3481
3590
  GET: "corehr.jobGrade.queryRecentChange"
3482
3591
  },
3592
+ "/corehr/v2/pathways": {
3593
+ POST: "corehr.pathway.create"
3594
+ },
3595
+ "/corehr/v2/pathways/{pathway_id}": {
3596
+ PATCH: "corehr.pathway.patch",
3597
+ DELETE: "corehr.pathway.delete"
3598
+ },
3599
+ "/corehr/v2/pathways/active": {
3600
+ POST: "corehr.pathway.active"
3601
+ },
3602
+ "/corehr/v2/pathways/batch_get": {
3603
+ POST: "corehr.pathway.batchGet"
3604
+ },
3483
3605
  "/corehr/v1/jobs": {
3484
3606
  POST: "corehr.job.create"
3485
3607
  },
@@ -3493,9 +3615,33 @@ Internal.define({
3493
3615
  "/corehr/v2/jobs": {
3494
3616
  GET: { name: "corehr.job.list", pagination: { argIndex: 0 } }
3495
3617
  },
3618
+ "/corehr/v2/jobs/batch_get": {
3619
+ POST: "corehr.job.batchGet"
3620
+ },
3621
+ "/corehr/v2/jobs/query_multi_timeline": {
3622
+ POST: "corehr.job.queryMultiTimeline"
3623
+ },
3496
3624
  "/corehr/v2/jobs/query_recent_change": {
3497
3625
  GET: "corehr.job.queryRecentChange"
3498
3626
  },
3627
+ "/corehr/v2/positions": {
3628
+ POST: "corehr.position.create"
3629
+ },
3630
+ "/corehr/v2/positions/{position_id}": {
3631
+ PATCH: "corehr.position.patch"
3632
+ },
3633
+ "/corehr/v2/positions/query": {
3634
+ POST: { name: "corehr.position.query", pagination: { argIndex: 1 } }
3635
+ },
3636
+ "/corehr/v2/positions/query_recent_change": {
3637
+ GET: "corehr.position.queryRecentChange"
3638
+ },
3639
+ "/corehr/v2/positions/active": {
3640
+ POST: "corehr.position.active"
3641
+ },
3642
+ "/corehr/v2/positions/del_position": {
3643
+ POST: "corehr.position.delPosition"
3644
+ },
3499
3645
  "/corehr/v2/pre_hires/withdraw_onboarding": {
3500
3646
  POST: "corehr.preHire.withdrawOnboarding"
3501
3647
  },
@@ -3518,6 +3664,9 @@ Internal.define({
3518
3664
  "/corehr/v2/pre_hires/{pre_hire_id}/transit_task": {
3519
3665
  POST: "corehr.preHire.transitTask"
3520
3666
  },
3667
+ "/corehr/v2/pre_hires/transform_onboarding_task": {
3668
+ POST: "corehr.preHire.transformOnboardingTask"
3669
+ },
3521
3670
  "/corehr/v2/pre_hires/{pre_hire_id}/complete": {
3522
3671
  POST: "corehr.preHire.complete"
3523
3672
  },
@@ -3570,6 +3719,30 @@ Internal.define({
3570
3719
  "/corehr/v1/offboardings/search": {
3571
3720
  POST: { name: "corehr.offboarding.search", pagination: { argIndex: 1 } }
3572
3721
  },
3722
+ "/corehr/v2/signature_files/terminate": {
3723
+ POST: "corehr.signatureFile.terminate"
3724
+ },
3725
+ "/corehr/v2/signature_files": {
3726
+ GET: { name: "corehr.signatureFile.list", pagination: { argIndex: 0 } }
3727
+ },
3728
+ "/corehr/v2/signature_files/query": {
3729
+ POST: { name: "corehr.signatureFile.query", pagination: { argIndex: 1 } }
3730
+ },
3731
+ "/corehr/v2/signature_nodes/list_by_file_id": {
3732
+ GET: "corehr.signatureNode.listByFileId"
3733
+ },
3734
+ "/corehr/v2/signature_files/list_by_biz_id": {
3735
+ GET: "corehr.signatureFile.listByBizId"
3736
+ },
3737
+ "/corehr/v2/signature_files/{signature_file_id}/download": {
3738
+ POST: { name: "corehr.signatureFile.download", type: "binary" }
3739
+ },
3740
+ "/corehr/v2/signature_templates/search": {
3741
+ GET: "corehr.signatureTemplate.search"
3742
+ },
3743
+ "/corehr/v2/signature_template_info_with_thumbnails": {
3744
+ GET: { name: "corehr.signatureTemplateInfoWithThumbnail.list", pagination: { argIndex: 0 } }
3745
+ },
3573
3746
  "/corehr/v1/contracts": {
3574
3747
  POST: "corehr.contract.create",
3575
3748
  GET: { name: "corehr.contract.list", pagination: { argIndex: 0 } }
@@ -3666,6 +3839,9 @@ Internal.define({
3666
3839
  "/corehr/v2/processes/{process_id}": {
3667
3840
  GET: "corehr.process.get"
3668
3841
  },
3842
+ "/corehr/v2/processes/{process_id}/flow_variable_data": {
3843
+ GET: "corehr.process.flowVariableData"
3844
+ },
3669
3845
  "/corehr/v2/processes/{process_id}/form_variable_data": {
3670
3846
  GET: "corehr.process.formVariableData.get"
3671
3847
  },
@@ -3755,9 +3931,6 @@ Internal.define({
3755
3931
  "/directory/v1/employees/search": {
3756
3932
  POST: "directory.employee.search"
3757
3933
  },
3758
- "/directory/v1/employees/idconvert": {
3759
- POST: "directory.employee.idconvert"
3760
- },
3761
3934
  "/directory/v1/departments": {
3762
3935
  POST: "directory.department.create"
3763
3936
  },
@@ -3774,9 +3947,6 @@ Internal.define({
3774
3947
  "/directory/v1/departments/search": {
3775
3948
  POST: "directory.department.search"
3776
3949
  },
3777
- "/directory/v1/departments/idconvert": {
3778
- POST: "directory.department.idconvert"
3779
- },
3780
3950
  "/directory/v1/share_entities": {
3781
3951
  GET: "directory.collborationShareEntity.list"
3782
3952
  },
@@ -3919,6 +4089,9 @@ Internal.define({
3919
4089
  },
3920
4090
  "/docx/v1/documents/{document_id}/blocks/{block_id}/children/batch_delete": {
3921
4091
  DELETE: "docx.document.block.children.batchDelete"
4092
+ },
4093
+ "/docx/v1/documents/blocks/convert": {
4094
+ POST: "docx.document.convert"
3922
4095
  }
3923
4096
  });
3924
4097
 
@@ -4022,32 +4195,32 @@ Internal.define({
4022
4195
  "/drive/v1/files/{file_token}/delete_subscribe": {
4023
4196
  DELETE: "drive.file.deleteSubscribe"
4024
4197
  },
4198
+ "/drive/v1/permissions/{token}/members": {
4199
+ POST: "drive.permission.member.create",
4200
+ GET: "drive.permission.member.list"
4201
+ },
4025
4202
  "/drive/v1/permissions/{token}/members/batch_create": {
4026
4203
  POST: "drive.permission.member.batchCreate"
4027
4204
  },
4205
+ "/drive/v1/permissions/{token}/members/{member_id}": {
4206
+ PUT: "drive.permission.member.update",
4207
+ DELETE: "drive.permission.member.delete"
4208
+ },
4028
4209
  "/drive/v1/permissions/{token}/members/transfer_owner": {
4029
4210
  POST: "drive.permission.member.transferOwner"
4030
4211
  },
4031
4212
  "/drive/v1/permissions/{token}/members/auth": {
4032
4213
  GET: "drive.permission.member.auth"
4033
4214
  },
4034
- "/drive/v1/permissions/{token}/members": {
4035
- GET: "drive.permission.member.list",
4036
- POST: "drive.permission.member.create"
4037
- },
4038
- "/drive/v1/permissions/{token}/members/{member_id}": {
4039
- PUT: "drive.permission.member.update",
4040
- DELETE: "drive.permission.member.delete"
4215
+ "/drive/v2/permissions/{token}/public": {
4216
+ PATCH: "drive.permission.public.patch",
4217
+ GET: "drive.permission.public.get"
4041
4218
  },
4042
4219
  "/drive/v1/permissions/{token}/public/password": {
4043
4220
  POST: "drive.permission.public.password.create",
4044
4221
  PUT: "drive.permission.public.password.update",
4045
4222
  DELETE: "drive.permission.public.password.delete"
4046
4223
  },
4047
- "/drive/v2/permissions/{token}/public": {
4048
- GET: "drive.permission.public.get",
4049
- PATCH: "drive.permission.public.patch"
4050
- },
4051
4224
  "/drive/v1/files/{file_token}/comments": {
4052
4225
  GET: { name: "drive.file.comment.list", pagination: { argIndex: 1 } },
4053
4226
  POST: "drive.file.comment.create"
@@ -4725,6 +4898,9 @@ Internal.define({
4725
4898
  "/hire/v1/interviewers/{interviewer_id}": {
4726
4899
  PATCH: "hire.interviewer.patch"
4727
4900
  },
4901
+ "/hire/v1/offer_approval_templates": {
4902
+ GET: { name: "hire.offerApprovalTemplate.list", pagination: { argIndex: 0 } }
4903
+ },
4728
4904
  "/hire/v1/offer_custom_fields/{offer_custom_field_id}": {
4729
4905
  PUT: "hire.offerCustomField.update"
4730
4906
  },
@@ -4746,6 +4922,9 @@ Internal.define({
4746
4922
  "/hire/v1/referrals/get_by_application": {
4747
4923
  GET: "hire.referral.getByApplication"
4748
4924
  },
4925
+ "/hire/v1/portal_apply_schemas": {
4926
+ GET: { name: "hire.portalApplySchema.list", pagination: { argIndex: 0 } }
4927
+ },
4749
4928
  "/hire/v1/websites/{website_id}/channels": {
4750
4929
  POST: "hire.website.channel.create",
4751
4930
  GET: { name: "hire.website.channel.list", pagination: { argIndex: 1, itemsKey: "website_channel_list" } }
@@ -4973,6 +5152,9 @@ Internal.define({
4973
5152
  "/hire/v1/background_check_orders": {
4974
5153
  GET: { name: "hire.backgroundCheckOrder.list", pagination: { argIndex: 0 } }
4975
5154
  },
5155
+ "/hire/v1/background_check_orders/batch_query": {
5156
+ POST: { name: "hire.backgroundCheckOrder.batchQuery", pagination: { argIndex: 1 } }
5157
+ },
4976
5158
  "/hire/v1/tripartite_agreements": {
4977
5159
  POST: "hire.tripartiteAgreement.create",
4978
5160
  GET: { name: "hire.tripartiteAgreement.list", pagination: { argIndex: 0 } }
@@ -5664,6 +5846,15 @@ Internal.define({
5664
5846
  // src/types/payroll.ts
5665
5847
  var Payroll;
5666
5848
  ((Payroll2) => {
5849
+ let CostAllocationDetail;
5850
+ ((CostAllocationDetail2) => {
5851
+ let ListQueryReportType;
5852
+ ((ListQueryReportType2) => {
5853
+ ListQueryReportType2[ListQueryReportType2["Default"] = 0] = "Default";
5854
+ ListQueryReportType2[ListQueryReportType2["Accrued"] = 1] = "Accrued";
5855
+ ListQueryReportType2[ListQueryReportType2["Paid"] = 2] = "Paid";
5856
+ })(ListQueryReportType = CostAllocationDetail2.ListQueryReportType || (CostAllocationDetail2.ListQueryReportType = {}));
5857
+ })(CostAllocationDetail = Payroll2.CostAllocationDetail || (Payroll2.CostAllocationDetail = {}));
5667
5858
  let CostAllocationReport;
5668
5859
  ((CostAllocationReport2) => {
5669
5860
  let ListQueryReportType;
@@ -5675,17 +5866,14 @@ var Payroll;
5675
5866
  })(CostAllocationReport = Payroll2.CostAllocationReport || (Payroll2.CostAllocationReport = {}));
5676
5867
  })(Payroll || (Payroll = {}));
5677
5868
  Internal.define({
5678
- "/payroll/v1/payment_activity_details": {
5679
- GET: "payroll.paymentActivityDetail.list"
5680
- },
5681
- "/payroll/v1/payment_detail/query": {
5682
- POST: "payroll.paymentDetail.query"
5869
+ "/payroll/v1/acct_items": {
5870
+ GET: { name: "payroll.acctItem.list", pagination: { argIndex: 0 } }
5683
5871
  },
5684
- "/payroll/v1/payment_activitys/archive": {
5685
- POST: "payroll.paymentActivity.archive"
5872
+ "/payroll/v1/paygroups": {
5873
+ GET: { name: "payroll.paygroup.list", pagination: { argIndex: 0 } }
5686
5874
  },
5687
- "/payroll/v1/payment_activitys": {
5688
- GET: { name: "payroll.paymentActivity.list", pagination: { argIndex: 0, itemsKey: "payment_activitys" } }
5875
+ "/payroll/v1/datasources": {
5876
+ GET: { name: "payroll.datasource.list", pagination: { argIndex: 0, itemsKey: "datasources" } }
5689
5877
  },
5690
5878
  "/payroll/v1/datasource_records/save": {
5691
5879
  POST: "payroll.datasourceRecord.save"
@@ -5693,20 +5881,26 @@ Internal.define({
5693
5881
  "/payroll/v1/datasource_records/query": {
5694
5882
  POST: { name: "payroll.datasourceRecord.query", pagination: { argIndex: 1, itemsKey: "records" } }
5695
5883
  },
5696
- "/payroll/v1/datasources": {
5697
- GET: { name: "payroll.datasource.list", pagination: { argIndex: 0, itemsKey: "datasources" } }
5884
+ "/payroll/v1/payment_activitys/archive": {
5885
+ POST: "payroll.paymentActivity.archive"
5698
5886
  },
5699
- "/payroll/v1/acct_items": {
5700
- GET: { name: "payroll.acctItem.list", pagination: { argIndex: 0 } }
5887
+ "/payroll/v1/payment_activitys": {
5888
+ GET: { name: "payroll.paymentActivity.list", pagination: { argIndex: 0, itemsKey: "payment_activitys" } }
5889
+ },
5890
+ "/payroll/v1/payment_activity_details": {
5891
+ GET: "payroll.paymentActivityDetail.list"
5892
+ },
5893
+ "/payroll/v1/payment_detail/query": {
5894
+ POST: "payroll.paymentDetail.query"
5895
+ },
5896
+ "/payroll/v1/cost_allocation_details": {
5897
+ GET: "payroll.costAllocationDetail.list"
5701
5898
  },
5702
5899
  "/payroll/v1/cost_allocation_reports": {
5703
5900
  GET: "payroll.costAllocationReport.list"
5704
5901
  },
5705
5902
  "/payroll/v1/cost_allocation_plans": {
5706
5903
  GET: { name: "payroll.costAllocationPlan.list", pagination: { argIndex: 0 } }
5707
- },
5708
- "/payroll/v1/paygroups": {
5709
- GET: { name: "payroll.paygroup.list", pagination: { argIndex: 0 } }
5710
5904
  }
5711
5905
  });
5712
5906
 
@@ -5885,7 +6079,101 @@ Internal.define({
5885
6079
  });
5886
6080
 
5887
6081
  // src/types/security_and_compliance.ts
6082
+ var SecurityAndCompliance;
6083
+ ((SecurityAndCompliance2) => {
6084
+ let DeviceRecord;
6085
+ ((DeviceRecord2) => {
6086
+ let MineResponseDeviceOwnership;
6087
+ ((MineResponseDeviceOwnership2) => {
6088
+ MineResponseDeviceOwnership2[MineResponseDeviceOwnership2["Unknown"] = 0] = "Unknown";
6089
+ MineResponseDeviceOwnership2[MineResponseDeviceOwnership2["Personal"] = 1] = "Personal";
6090
+ MineResponseDeviceOwnership2[MineResponseDeviceOwnership2["Company"] = 2] = "Company";
6091
+ })(MineResponseDeviceOwnership = DeviceRecord2.MineResponseDeviceOwnership || (DeviceRecord2.MineResponseDeviceOwnership = {}));
6092
+ let MineResponseDeviceStatus;
6093
+ ((MineResponseDeviceStatus2) => {
6094
+ MineResponseDeviceStatus2[MineResponseDeviceStatus2["Unknown"] = 0] = "Unknown";
6095
+ MineResponseDeviceStatus2[MineResponseDeviceStatus2["Trusted"] = 1] = "Trusted";
6096
+ MineResponseDeviceStatus2[MineResponseDeviceStatus2["Untrusted"] = 2] = "Untrusted";
6097
+ })(MineResponseDeviceStatus = DeviceRecord2.MineResponseDeviceStatus || (DeviceRecord2.MineResponseDeviceStatus = {}));
6098
+ let CreateRequestDeviceSystem;
6099
+ ((CreateRequestDeviceSystem2) => {
6100
+ CreateRequestDeviceSystem2[CreateRequestDeviceSystem2["Windows"] = 1] = "Windows";
6101
+ CreateRequestDeviceSystem2[CreateRequestDeviceSystem2["MacOS"] = 2] = "MacOS";
6102
+ CreateRequestDeviceSystem2[CreateRequestDeviceSystem2["Linux"] = 3] = "Linux";
6103
+ CreateRequestDeviceSystem2[CreateRequestDeviceSystem2["Android"] = 4] = "Android";
6104
+ CreateRequestDeviceSystem2[CreateRequestDeviceSystem2["IOS"] = 5] = "IOS";
6105
+ CreateRequestDeviceSystem2[CreateRequestDeviceSystem2["OpenHarmony"] = 6] = "OpenHarmony";
6106
+ })(CreateRequestDeviceSystem = DeviceRecord2.CreateRequestDeviceSystem || (DeviceRecord2.CreateRequestDeviceSystem = {}));
6107
+ let CreateRequestDeviceOwnership;
6108
+ ((CreateRequestDeviceOwnership2) => {
6109
+ CreateRequestDeviceOwnership2[CreateRequestDeviceOwnership2["Unknown"] = 0] = "Unknown";
6110
+ CreateRequestDeviceOwnership2[CreateRequestDeviceOwnership2["Personal"] = 1] = "Personal";
6111
+ CreateRequestDeviceOwnership2[CreateRequestDeviceOwnership2["Company"] = 2] = "Company";
6112
+ })(CreateRequestDeviceOwnership = DeviceRecord2.CreateRequestDeviceOwnership || (DeviceRecord2.CreateRequestDeviceOwnership = {}));
6113
+ let CreateRequestDeviceStatus;
6114
+ ((CreateRequestDeviceStatus2) => {
6115
+ CreateRequestDeviceStatus2[CreateRequestDeviceStatus2["Unknown"] = 0] = "Unknown";
6116
+ CreateRequestDeviceStatus2[CreateRequestDeviceStatus2["Trusted"] = 1] = "Trusted";
6117
+ CreateRequestDeviceStatus2[CreateRequestDeviceStatus2["Untrusted"] = 2] = "Untrusted";
6118
+ })(CreateRequestDeviceStatus = DeviceRecord2.CreateRequestDeviceStatus || (DeviceRecord2.CreateRequestDeviceStatus = {}));
6119
+ let ListQueryDeviceOwnership;
6120
+ ((ListQueryDeviceOwnership2) => {
6121
+ ListQueryDeviceOwnership2[ListQueryDeviceOwnership2["Unknown"] = 0] = "Unknown";
6122
+ ListQueryDeviceOwnership2[ListQueryDeviceOwnership2["Personal"] = 1] = "Personal";
6123
+ ListQueryDeviceOwnership2[ListQueryDeviceOwnership2["Company"] = 2] = "Company";
6124
+ })(ListQueryDeviceOwnership = DeviceRecord2.ListQueryDeviceOwnership || (DeviceRecord2.ListQueryDeviceOwnership = {}));
6125
+ let ListQueryDeviceStatus;
6126
+ ((ListQueryDeviceStatus2) => {
6127
+ ListQueryDeviceStatus2[ListQueryDeviceStatus2["Unknown"] = 0] = "Unknown";
6128
+ ListQueryDeviceStatus2[ListQueryDeviceStatus2["Trusted"] = 1] = "Trusted";
6129
+ ListQueryDeviceStatus2[ListQueryDeviceStatus2["Untrusted"] = 2] = "Untrusted";
6130
+ })(ListQueryDeviceStatus = DeviceRecord2.ListQueryDeviceStatus || (DeviceRecord2.ListQueryDeviceStatus = {}));
6131
+ let ListQueryDeviceTerminalType;
6132
+ ((ListQueryDeviceTerminalType2) => {
6133
+ ListQueryDeviceTerminalType2[ListQueryDeviceTerminalType2["Unknown"] = 0] = "Unknown";
6134
+ ListQueryDeviceTerminalType2[ListQueryDeviceTerminalType2["Mobile"] = 1] = "Mobile";
6135
+ ListQueryDeviceTerminalType2[ListQueryDeviceTerminalType2["PC"] = 2] = "PC";
6136
+ })(ListQueryDeviceTerminalType = DeviceRecord2.ListQueryDeviceTerminalType || (DeviceRecord2.ListQueryDeviceTerminalType = {}));
6137
+ let ListQueryOs;
6138
+ ((ListQueryOs2) => {
6139
+ ListQueryOs2[ListQueryOs2["Unknown"] = 0] = "Unknown";
6140
+ ListQueryOs2[ListQueryOs2["Windows"] = 1] = "Windows";
6141
+ ListQueryOs2[ListQueryOs2["MacOS"] = 2] = "MacOS";
6142
+ ListQueryOs2[ListQueryOs2["Linux"] = 3] = "Linux";
6143
+ ListQueryOs2[ListQueryOs2["Android"] = 4] = "Android";
6144
+ ListQueryOs2[ListQueryOs2["IOS"] = 5] = "IOS";
6145
+ ListQueryOs2[ListQueryOs2["OpenHarmony"] = 6] = "OpenHarmony";
6146
+ })(ListQueryOs = DeviceRecord2.ListQueryOs || (DeviceRecord2.ListQueryOs = {}));
6147
+ let UpdateRequestDeviceOwnership;
6148
+ ((UpdateRequestDeviceOwnership2) => {
6149
+ UpdateRequestDeviceOwnership2[UpdateRequestDeviceOwnership2["Unknown"] = 0] = "Unknown";
6150
+ UpdateRequestDeviceOwnership2[UpdateRequestDeviceOwnership2["Personal"] = 1] = "Personal";
6151
+ UpdateRequestDeviceOwnership2[UpdateRequestDeviceOwnership2["Company"] = 2] = "Company";
6152
+ })(UpdateRequestDeviceOwnership = DeviceRecord2.UpdateRequestDeviceOwnership || (DeviceRecord2.UpdateRequestDeviceOwnership = {}));
6153
+ let UpdateRequestDeviceStatus;
6154
+ ((UpdateRequestDeviceStatus2) => {
6155
+ UpdateRequestDeviceStatus2[UpdateRequestDeviceStatus2["Unknown"] = 0] = "Unknown";
6156
+ UpdateRequestDeviceStatus2[UpdateRequestDeviceStatus2["Trusted"] = 1] = "Trusted";
6157
+ UpdateRequestDeviceStatus2[UpdateRequestDeviceStatus2["Untrusted"] = 2] = "Untrusted";
6158
+ })(UpdateRequestDeviceStatus = DeviceRecord2.UpdateRequestDeviceStatus || (DeviceRecord2.UpdateRequestDeviceStatus = {}));
6159
+ })(DeviceRecord = SecurityAndCompliance2.DeviceRecord || (SecurityAndCompliance2.DeviceRecord = {}));
6160
+ })(SecurityAndCompliance || (SecurityAndCompliance = {}));
5888
6161
  Internal.define({
6162
+ "/security_and_compliance/v2/device_records/mine": {
6163
+ GET: "securityAndCompliance.deviceRecord.mine"
6164
+ },
6165
+ "/security_and_compliance/v2/device_records": {
6166
+ POST: "securityAndCompliance.deviceRecord.create",
6167
+ GET: { name: "securityAndCompliance.deviceRecord.list", pagination: { argIndex: 0 } }
6168
+ },
6169
+ "/security_and_compliance/v2/device_records/{device_record_id}": {
6170
+ GET: "securityAndCompliance.deviceRecord.get",
6171
+ PUT: "securityAndCompliance.deviceRecord.update",
6172
+ DELETE: "securityAndCompliance.deviceRecord.delete"
6173
+ },
6174
+ "/security_and_compliance/v2/device_apply_records/{device_apply_record_id}": {
6175
+ PUT: "securityAndCompliance.deviceApplyRecord.update"
6176
+ },
5889
6177
  "/security_and_compliance/v1/openapi_logs/list_data": {
5890
6178
  POST: "securityAndCompliance.openapiLog.listData"
5891
6179
  }
@@ -6563,6 +6851,36 @@ var AilySenderType = /* @__PURE__ */ ((AilySenderType2) => {
6563
6851
  AilySenderType2["SenderTypeAssistant"] = "ASSISTANT";
6564
6852
  return AilySenderType2;
6565
6853
  })(AilySenderType || {});
6854
+ var ColorType = /* @__PURE__ */ ((ColorType2) => {
6855
+ ColorType2[ColorType2["SystemColor"] = 0] = "SystemColor";
6856
+ ColorType2[ColorType2["CustomColor"] = 1] = "CustomColor";
6857
+ return ColorType2;
6858
+ })(ColorType || {});
6859
+ var ConnectorArrowStyle = /* @__PURE__ */ ((ConnectorArrowStyle2) => {
6860
+ ConnectorArrowStyle2["None"] = "none";
6861
+ ConnectorArrowStyle2["LineArrow"] = "line_arrow";
6862
+ ConnectorArrowStyle2["TriangleArrow"] = "triangle_arrow";
6863
+ ConnectorArrowStyle2["EmptyTriangleArrow"] = "empty_triangle_arrow";
6864
+ ConnectorArrowStyle2["CircleArrow"] = "circle_arrow";
6865
+ ConnectorArrowStyle2["EmptyCircleArrow"] = "empty_circle_arrow";
6866
+ ConnectorArrowStyle2["DiamondArrow"] = "diamond_arrow";
6867
+ ConnectorArrowStyle2["EmptyDiamondArrow"] = "empty_diamond_arrow";
6868
+ ConnectorArrowStyle2["SingleArrow"] = "single_arrow";
6869
+ ConnectorArrowStyle2["MultiArrow"] = "multi_arrow";
6870
+ ConnectorArrowStyle2["ExactSingleArrow"] = "exact_single_arrow";
6871
+ ConnectorArrowStyle2["ZeroOrMultiArrow"] = "zero_or_multi_arrow";
6872
+ ConnectorArrowStyle2["ZeroOrSingleArrow"] = "zero_or_single_arrow";
6873
+ ConnectorArrowStyle2["SingleOrMultiArrow"] = "single_or_multi_arrow";
6874
+ ConnectorArrowStyle2["XArrow"] = "x_arrow";
6875
+ return ConnectorArrowStyle2;
6876
+ })(ConnectorArrowStyle || {});
6877
+ var ConnectorLineShape = /* @__PURE__ */ ((ConnectorLineShape2) => {
6878
+ ConnectorLineShape2["Straight"] = "straight";
6879
+ ConnectorLineShape2["Polyline"] = "polyline";
6880
+ ConnectorLineShape2["Curve"] = "curve";
6881
+ ConnectorLineShape2["RightAngledPolyline"] = "right_angled_polyline";
6882
+ return ConnectorLineShape2;
6883
+ })(ConnectorLineShape || {});
6566
6884
  var CustomFieldValueEnumType = /* @__PURE__ */ ((CustomFieldValueEnumType2) => {
6567
6885
  CustomFieldValueEnumType2["CustomFieldValueEnumTypeText"] = "1";
6568
6886
  CustomFieldValueEnumType2["CustomFieldValueEnumTypePicture"] = "2";
@@ -6587,6 +6905,21 @@ var DataSource = /* @__PURE__ */ ((DataSource2) => {
6587
6905
  DataSource2[DataSource2["DIR_SYNC_VISA_SCIM"] = 3] = "DIR_SYNC_VISA_SCIM";
6588
6906
  return DataSource2;
6589
6907
  })(DataSource || {});
6908
+ var DiagramType = /* @__PURE__ */ ((DiagramType2) => {
6909
+ DiagramType2[DiagramType2["UNKOWN"] = 0] = "UNKOWN";
6910
+ DiagramType2[DiagramType2["MIND_MAP"] = 1] = "MIND_MAP";
6911
+ DiagramType2[DiagramType2["SEQUENCE"] = 2] = "SEQUENCE";
6912
+ DiagramType2[DiagramType2["ACTIVITY"] = 3] = "ACTIVITY";
6913
+ DiagramType2[DiagramType2["CLASS"] = 4] = "CLASS";
6914
+ DiagramType2[DiagramType2["ER"] = 5] = "ER";
6915
+ DiagramType2[DiagramType2["FLOWCHART"] = 6] = "FLOWCHART";
6916
+ DiagramType2[DiagramType2["STATE"] = 7] = "STATE";
6917
+ DiagramType2[DiagramType2["COMPONENT_DIAGRAM"] = 8] = "COMPONENT_DIAGRAM";
6918
+ DiagramType2[DiagramType2["STREAMING_ACTIVITY"] = 101] = "STREAMING_ACTIVITY";
6919
+ DiagramType2[DiagramType2["STREAMING_SEQUENCE"] = 102] = "STREAMING_SEQUENCE";
6920
+ DiagramType2[DiagramType2["TIMELINE_GML"] = 201] = "TIMELINE_GML";
6921
+ return DiagramType2;
6922
+ })(DiagramType || {});
6590
6923
  var EmployeeActiveStatusDirectory = /* @__PURE__ */ ((EmployeeActiveStatusDirectory2) => {
6591
6924
  EmployeeActiveStatusDirectory2[EmployeeActiveStatusDirectory2["EmployeeActiveStatusDirectoryUnregister"] = 1] = "EmployeeActiveStatusDirectoryUnregister";
6592
6925
  EmployeeActiveStatusDirectory2[EmployeeActiveStatusDirectory2["EmployeeActiveStatusDirectoryRegister"] = 2] = "EmployeeActiveStatusDirectoryRegister";
@@ -6615,6 +6948,27 @@ var IdentityProvider = /* @__PURE__ */ ((IdentityProvider2) => {
6615
6948
  IdentityProvider2["IdentityProviderFeishu"] = "FEISHU";
6616
6949
  return IdentityProvider2;
6617
6950
  })(IdentityProvider || {});
6951
+ var MindMapLayout = /* @__PURE__ */ ((MindMapLayout2) => {
6952
+ MindMapLayout2["UpDown"] = "up_down";
6953
+ MindMapLayout2["LeftRight"] = "left_right";
6954
+ MindMapLayout2["TreeLeft"] = "tree_left";
6955
+ MindMapLayout2["TreeRight"] = "tree_right";
6956
+ MindMapLayout2["TreeBalance"] = "tree_balance";
6957
+ MindMapLayout2["VerticalTimeLine"] = "vertical_time_line";
6958
+ MindMapLayout2["HorizontalTimeLine"] = "horizontal_time_line";
6959
+ return MindMapLayout2;
6960
+ })(MindMapLayout || {});
6961
+ var MindMapType = /* @__PURE__ */ ((MindMapType2) => {
6962
+ MindMapType2["MindMapText"] = "mind_map_text";
6963
+ MindMapType2["MindMapFullRoundRect"] = "mind_map_full_round_rect";
6964
+ MindMapType2["MindMapRoundRect"] = "mind_map_round_rect";
6965
+ return MindMapType2;
6966
+ })(MindMapType || {});
6967
+ var PaintType = /* @__PURE__ */ ((PaintType2) => {
6968
+ PaintType2["Marker"] = "marker";
6969
+ PaintType2["Highlight"] = "highlight";
6970
+ return PaintType2;
6971
+ })(PaintType || {});
6618
6972
  var ResignReasonDirectory = /* @__PURE__ */ ((ResignReasonDirectory2) => {
6619
6973
  ResignReasonDirectory2["ResignReasonDirectoryEmpty"] = "0";
6620
6974
  ResignReasonDirectory2["ResignReasonDirectoryNotSatisfiedWithSalary"] = "1";
@@ -6661,6 +7015,25 @@ var RunStatus = /* @__PURE__ */ ((RunStatus2) => {
6661
7015
  RunStatus2["RunStatusExpired"] = "EXPIRED";
6662
7016
  return RunStatus2;
6663
7017
  })(RunStatus || {});
7018
+ var SnapTo = /* @__PURE__ */ ((SnapTo2) => {
7019
+ SnapTo2["Auto"] = "auto";
7020
+ SnapTo2["Top"] = "top";
7021
+ SnapTo2["Right"] = "right";
7022
+ SnapTo2["Bottom"] = "bottom";
7023
+ SnapTo2["Left"] = "left";
7024
+ return SnapTo2;
7025
+ })(SnapTo || {});
7026
+ var StyleType = /* @__PURE__ */ ((StyleType2) => {
7027
+ StyleType2[StyleType2["Board"] = 1] = "Board";
7028
+ StyleType2[StyleType2["Classic"] = 2] = "Classic";
7029
+ return StyleType2;
7030
+ })(StyleType || {});
7031
+ var SyntaxType = /* @__PURE__ */ ((SyntaxType2) => {
7032
+ SyntaxType2[SyntaxType2["UNKOWN"] = 0] = "UNKOWN";
7033
+ SyntaxType2[SyntaxType2["PLANT_UML"] = 1] = "PLANT_UML";
7034
+ SyntaxType2[SyntaxType2["MERMAID"] = 2] = "MERMAID";
7035
+ return SyntaxType2;
7036
+ })(SyntaxType || {});
6664
7037
 
6665
7038
  // src/index.ts
6666
7039
  var index_default = LarkBot;