@larksuiteoapi/node-sdk 1.11.1 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/types/index.d.ts CHANGED
@@ -10,7 +10,9 @@
10
10
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11
11
  */
12
12
 
13
- import { AxiosRequestConfig } from 'axios';
13
+ import { AxiosInstance, AxiosRequestConfig } from 'axios';
14
+
15
+ declare const defaultHttpInstance: AxiosInstance;
14
16
 
15
17
  interface Cache {
16
18
  set: (key: string | Symbol, value: any, expire?: number, options?: {
@@ -60,6 +62,26 @@ interface IRequestOptions$1 {
60
62
  headers?: Record<string, string>;
61
63
  }
62
64
 
65
+ interface HttpInstance {
66
+ request<T = any, R = T, D = any>(opts: HttpRequestOptions<D>): Promise<R>;
67
+ get<T = any, R = T, D = any>(url: string, opts?: HttpRequestOptions<D>): Promise<R>;
68
+ delete<T = any, R = T, D = any>(url: string, opts?: HttpRequestOptions<D>): Promise<R>;
69
+ head<T = any, R = T, D = any>(url: string, opts?: HttpRequestOptions<D>): Promise<R>;
70
+ options<T = any, R = T, D = any>(url: string, opts?: HttpRequestOptions<D>): Promise<R>;
71
+ post<T = any, R = T, D = any>(url: string, data?: D, opts?: HttpRequestOptions<D>): Promise<R>;
72
+ put<T = any, R = T, D = any>(url: string, data?: D, opts?: HttpRequestOptions<D>): Promise<R>;
73
+ patch<T = any, R = T, D = any>(url: string, data?: D, opts?: HttpRequestOptions<D>): Promise<R>;
74
+ }
75
+ declare type ResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream';
76
+ interface HttpRequestOptions<D> {
77
+ url?: string;
78
+ method?: string;
79
+ headers?: Record<string, any>;
80
+ params?: Record<string, any>;
81
+ data?: D;
82
+ responseType?: ResponseType;
83
+ }
84
+
63
85
  interface IRequestOptions {
64
86
  lark?: {
65
87
  [CTenantKey]?: string;
@@ -82,6 +104,7 @@ interface IClientParams {
82
104
  appType?: AppType;
83
105
  helpDeskId?: string;
84
106
  helpDeskToken?: string;
107
+ httpInstance?: HttpInstance;
85
108
  }
86
109
  interface IPayload {
87
110
  params?: Record<string, any>;
@@ -94,6 +117,7 @@ declare abstract class Client$1 {
94
117
  tokenManager: any;
95
118
  domain: any;
96
119
  logger: Logger;
120
+ httpInstance: HttpInstance;
97
121
  abstract formatPayload(payload?: IPayload, options?: IRequestOptions$1): Promise<Required<IPayload>>;
98
122
  /**
99
123
  * 智能门禁
@@ -1042,7 +1066,7 @@ declare abstract class Client$1 {
1042
1066
  } | undefined;
1043
1067
  recommend_item_infos?: {
1044
1068
  item_id?: string | undefined;
1045
- item_type?: "link" | "application" | undefined;
1069
+ item_type?: "application" | "link" | undefined;
1046
1070
  name?: string | undefined;
1047
1071
  description?: string | undefined;
1048
1072
  link_url?: string | undefined;
@@ -1059,7 +1083,7 @@ declare abstract class Client$1 {
1059
1083
  }[] | undefined;
1060
1084
  distributed_recommend_item_infos?: {
1061
1085
  item_id?: string | undefined;
1062
- item_type?: "link" | "application" | undefined;
1086
+ item_type?: "application" | "link" | undefined;
1063
1087
  name?: string | undefined;
1064
1088
  description?: string | undefined;
1065
1089
  link_url?: string | undefined;
@@ -1108,7 +1132,7 @@ declare abstract class Client$1 {
1108
1132
  } | undefined;
1109
1133
  recommend_item_infos?: {
1110
1134
  item_id?: string | undefined;
1111
- item_type?: "link" | "application" | undefined;
1135
+ item_type?: "application" | "link" | undefined;
1112
1136
  name?: string | undefined;
1113
1137
  description?: string | undefined;
1114
1138
  link_url?: string | undefined;
@@ -1125,7 +1149,7 @@ declare abstract class Client$1 {
1125
1149
  }[] | undefined;
1126
1150
  distributed_recommend_item_infos?: {
1127
1151
  item_id?: string | undefined;
1128
- item_type?: "link" | "application" | undefined;
1152
+ item_type?: "application" | "link" | undefined;
1129
1153
  name?: string | undefined;
1130
1154
  description?: string | undefined;
1131
1155
  link_url?: string | undefined;
@@ -1883,10 +1907,17 @@ declare abstract class Client$1 {
1883
1907
  writable: Array<string>;
1884
1908
  readable: Array<string>;
1885
1909
  };
1910
+ approver_chosen_multi?: boolean;
1911
+ approver_chosen_range?: Array<{
1912
+ type?: "ALL" | "PERSONAL" | "ROLE";
1913
+ id_list?: Array<string>;
1914
+ }>;
1915
+ starter_assignee?: "STARTER" | "AUTO_PASS" | "SUPERVISOR" | "DEPARTMENT_MANAGER";
1886
1916
  }>;
1887
1917
  settings?: {
1888
1918
  revert_interval?: number;
1889
1919
  revert_option?: number;
1920
+ reject_option?: number;
1890
1921
  };
1891
1922
  config?: {
1892
1923
  can_update_viewer: boolean;
@@ -2506,6 +2537,15 @@ declare abstract class Client$1 {
2506
2537
  allow_resubmit?: boolean;
2507
2538
  allow_submit_again?: boolean;
2508
2539
  cancel_bot_notification?: string;
2540
+ forbid_revoke?: boolean;
2541
+ i18n_resources?: Array<{
2542
+ locale: "zh-CN" | "en-US" | "ja-JP";
2543
+ texts: Array<{
2544
+ key: string;
2545
+ value: string;
2546
+ }>;
2547
+ is_default: boolean;
2548
+ }>;
2509
2549
  };
2510
2550
  }, options?: IRequestOptions$1) => Promise<{
2511
2551
  code?: number | undefined;
@@ -3279,6 +3319,7 @@ declare abstract class Client$1 {
3279
3319
  } | undefined;
3280
3320
  task_id?: string | undefined;
3281
3321
  update_time?: string | undefined;
3322
+ task_external_id?: string | undefined;
3282
3323
  } | undefined;
3283
3324
  }[] | undefined;
3284
3325
  page_token?: string | undefined;
@@ -4951,6 +4992,102 @@ declare abstract class Client$1 {
4951
4992
  }>;
4952
4993
  };
4953
4994
  };
4995
+ /**
4996
+
4997
+ */
4998
+ auth: {
4999
+ /**
5000
+ * app_access_token
5001
+ */
5002
+ appAccessToken: {
5003
+ /**
5004
+ * {@link https://open.feishu.cn/api-explorer?project=auth&resource=app_access_token&apiName=create&version=v3 click to debug }
5005
+ *
5006
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=auth&resource=app_access_token&version=v3 document }
5007
+ */
5008
+ create: (payload?: {
5009
+ data: {
5010
+ app_id: string;
5011
+ app_secret: string;
5012
+ app_ticket: string;
5013
+ };
5014
+ }, options?: IRequestOptions$1) => Promise<{
5015
+ code?: number | undefined;
5016
+ msg?: string | undefined;
5017
+ data?: {} | undefined;
5018
+ }>;
5019
+ /**
5020
+ * {@link https://open.feishu.cn/api-explorer?project=auth&resource=app_access_token&apiName=internal&version=v3 click to debug }
5021
+ *
5022
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=internal&project=auth&resource=app_access_token&version=v3 document }
5023
+ */
5024
+ internal: (payload?: {
5025
+ data: {
5026
+ app_id: string;
5027
+ app_secret: string;
5028
+ };
5029
+ }, options?: IRequestOptions$1) => Promise<{
5030
+ code?: number | undefined;
5031
+ msg?: string | undefined;
5032
+ data?: {} | undefined;
5033
+ }>;
5034
+ };
5035
+ /**
5036
+ * app_ticket
5037
+ */
5038
+ appTicket: {
5039
+ /**
5040
+ * {@link https://open.feishu.cn/api-explorer?project=auth&resource=app_ticket&apiName=resend&version=v3 click to debug }
5041
+ *
5042
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=resend&project=auth&resource=app_ticket&version=v3 document }
5043
+ */
5044
+ resend: (payload?: {
5045
+ data: {
5046
+ app_id: string;
5047
+ app_secret: string;
5048
+ };
5049
+ }, options?: IRequestOptions$1) => Promise<{
5050
+ code?: number | undefined;
5051
+ msg?: string | undefined;
5052
+ data?: {} | undefined;
5053
+ }>;
5054
+ };
5055
+ /**
5056
+ * tenant_access_token
5057
+ */
5058
+ tenantAccessToken: {
5059
+ /**
5060
+ * {@link https://open.feishu.cn/api-explorer?project=auth&resource=tenant_access_token&apiName=create&version=v3 click to debug }
5061
+ *
5062
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=auth&resource=tenant_access_token&version=v3 document }
5063
+ */
5064
+ create: (payload?: {
5065
+ data: {
5066
+ app_access_token: string;
5067
+ tenant_key: string;
5068
+ };
5069
+ }, options?: IRequestOptions$1) => Promise<{
5070
+ code?: number | undefined;
5071
+ msg?: string | undefined;
5072
+ data?: {} | undefined;
5073
+ }>;
5074
+ /**
5075
+ * {@link https://open.feishu.cn/api-explorer?project=auth&resource=tenant_access_token&apiName=internal&version=v3 click to debug }
5076
+ *
5077
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=internal&project=auth&resource=tenant_access_token&version=v3 document }
5078
+ */
5079
+ internal: (payload?: {
5080
+ data: {
5081
+ app_id: string;
5082
+ app_secret: string;
5083
+ };
5084
+ }, options?: IRequestOptions$1) => Promise<{
5085
+ code?: number | undefined;
5086
+ msg?: string | undefined;
5087
+ data?: {} | undefined;
5088
+ }>;
5089
+ };
5090
+ };
4954
5091
  /**
4955
5092
 
4956
5093
  */
@@ -7195,6 +7332,7 @@ declare abstract class Client$1 {
7195
7332
  disable_sync?: boolean | undefined;
7196
7333
  text?: string | undefined;
7197
7334
  } | undefined;
7335
+ ui_type?: string | undefined;
7198
7336
  };
7199
7337
  params?: {
7200
7338
  client_token?: string | undefined;
@@ -7240,6 +7378,8 @@ declare abstract class Client$1 {
7240
7378
  disable_sync?: boolean | undefined;
7241
7379
  text?: string | undefined;
7242
7380
  } | undefined;
7381
+ is_primary?: boolean | undefined;
7382
+ ui_type?: string | undefined;
7243
7383
  } | undefined;
7244
7384
  } | undefined;
7245
7385
  }>;
@@ -7315,6 +7455,8 @@ declare abstract class Client$1 {
7315
7455
  disable_sync?: boolean | undefined;
7316
7456
  text?: string | undefined;
7317
7457
  } | undefined;
7458
+ is_primary?: boolean | undefined;
7459
+ ui_type?: string | undefined;
7318
7460
  }[] | undefined;
7319
7461
  } | null, void, unknown>;
7320
7462
  }>;
@@ -7380,6 +7522,8 @@ declare abstract class Client$1 {
7380
7522
  disable_sync?: boolean | undefined;
7381
7523
  text?: string | undefined;
7382
7524
  } | undefined;
7525
+ is_primary?: boolean | undefined;
7526
+ ui_type?: string | undefined;
7383
7527
  }[] | undefined;
7384
7528
  } | undefined;
7385
7529
  }>;
@@ -7427,6 +7571,7 @@ declare abstract class Client$1 {
7427
7571
  disable_sync?: boolean | undefined;
7428
7572
  text?: string | undefined;
7429
7573
  } | undefined;
7574
+ ui_type?: string | undefined;
7430
7575
  };
7431
7576
  path: {
7432
7577
  app_token: string;
@@ -7470,6 +7615,8 @@ declare abstract class Client$1 {
7470
7615
  disable_sync?: boolean | undefined;
7471
7616
  text?: string | undefined;
7472
7617
  } | undefined;
7618
+ is_primary?: boolean | undefined;
7619
+ ui_type?: string | undefined;
7473
7620
  } | undefined;
7474
7621
  } | undefined;
7475
7622
  }>;
@@ -7664,6 +7811,7 @@ declare abstract class Client$1 {
7664
7811
  name?: string;
7665
7812
  en_name?: string;
7666
7813
  email?: string;
7814
+ avatar_url?: string;
7667
7815
  };
7668
7816
  created_time?: number;
7669
7817
  last_modified_by?: {
@@ -7671,6 +7819,7 @@ declare abstract class Client$1 {
7671
7819
  name?: string;
7672
7820
  en_name?: string;
7673
7821
  email?: string;
7822
+ avatar_url?: string;
7674
7823
  };
7675
7824
  last_modified_time?: number;
7676
7825
  fields: Record<string, string | boolean | {
@@ -7689,6 +7838,7 @@ declare abstract class Client$1 {
7689
7838
  name?: string;
7690
7839
  en_name?: string;
7691
7840
  email?: string;
7841
+ avatar_url?: string;
7692
7842
  }> | Array<{
7693
7843
  file_token?: string;
7694
7844
  name?: string;
@@ -7718,6 +7868,7 @@ declare abstract class Client$1 {
7718
7868
  name?: string | undefined;
7719
7869
  en_name?: string | undefined;
7720
7870
  email?: string | undefined;
7871
+ avatar_url?: string | undefined;
7721
7872
  } | undefined;
7722
7873
  created_time?: number | undefined;
7723
7874
  last_modified_by?: {
@@ -7725,6 +7876,7 @@ declare abstract class Client$1 {
7725
7876
  name?: string | undefined;
7726
7877
  en_name?: string | undefined;
7727
7878
  email?: string | undefined;
7879
+ avatar_url?: string | undefined;
7728
7880
  } | undefined;
7729
7881
  last_modified_time?: number | undefined;
7730
7882
  fields: Record<string, string | boolean | {
@@ -7743,6 +7895,7 @@ declare abstract class Client$1 {
7743
7895
  name?: string;
7744
7896
  en_name?: string;
7745
7897
  email?: string;
7898
+ avatar_url?: string;
7746
7899
  }> | Array<{
7747
7900
  file_token?: string;
7748
7901
  name?: string;
@@ -7803,6 +7956,7 @@ declare abstract class Client$1 {
7803
7956
  name?: string;
7804
7957
  en_name?: string;
7805
7958
  email?: string;
7959
+ avatar_url?: string;
7806
7960
  };
7807
7961
  created_time?: number;
7808
7962
  last_modified_by?: {
@@ -7810,6 +7964,7 @@ declare abstract class Client$1 {
7810
7964
  name?: string;
7811
7965
  en_name?: string;
7812
7966
  email?: string;
7967
+ avatar_url?: string;
7813
7968
  };
7814
7969
  last_modified_time?: number;
7815
7970
  fields: Record<string, string | boolean | {
@@ -7828,6 +7983,7 @@ declare abstract class Client$1 {
7828
7983
  name?: string;
7829
7984
  en_name?: string;
7830
7985
  email?: string;
7986
+ avatar_url?: string;
7831
7987
  }> | Array<{
7832
7988
  file_token?: string;
7833
7989
  name?: string;
@@ -7856,6 +8012,7 @@ declare abstract class Client$1 {
7856
8012
  name?: string | undefined;
7857
8013
  en_name?: string | undefined;
7858
8014
  email?: string | undefined;
8015
+ avatar_url?: string | undefined;
7859
8016
  } | undefined;
7860
8017
  created_time?: number | undefined;
7861
8018
  last_modified_by?: {
@@ -7863,6 +8020,7 @@ declare abstract class Client$1 {
7863
8020
  name?: string | undefined;
7864
8021
  en_name?: string | undefined;
7865
8022
  email?: string | undefined;
8023
+ avatar_url?: string | undefined;
7866
8024
  } | undefined;
7867
8025
  last_modified_time?: number | undefined;
7868
8026
  fields: Record<string, string | boolean | {
@@ -7881,6 +8039,7 @@ declare abstract class Client$1 {
7881
8039
  name?: string;
7882
8040
  en_name?: string;
7883
8041
  email?: string;
8042
+ avatar_url?: string;
7884
8043
  }> | Array<{
7885
8044
  file_token?: string;
7886
8045
  name?: string;
@@ -7949,6 +8108,7 @@ declare abstract class Client$1 {
7949
8108
  name?: string | undefined;
7950
8109
  en_name?: string | undefined;
7951
8110
  email?: string | undefined;
8111
+ avatar_url?: string | undefined;
7952
8112
  } | undefined;
7953
8113
  created_time?: number | undefined;
7954
8114
  last_modified_by?: {
@@ -7956,6 +8116,7 @@ declare abstract class Client$1 {
7956
8116
  name?: string | undefined;
7957
8117
  en_name?: string | undefined;
7958
8118
  email?: string | undefined;
8119
+ avatar_url?: string | undefined;
7959
8120
  } | undefined;
7960
8121
  last_modified_time?: number | undefined;
7961
8122
  fields: Record<string, string | boolean | {
@@ -7974,6 +8135,7 @@ declare abstract class Client$1 {
7974
8135
  name?: string;
7975
8136
  en_name?: string;
7976
8137
  email?: string;
8138
+ avatar_url?: string;
7977
8139
  }> | Array<{
7978
8140
  file_token?: string;
7979
8141
  name?: string;
@@ -8044,6 +8206,7 @@ declare abstract class Client$1 {
8044
8206
  name?: string | undefined;
8045
8207
  en_name?: string | undefined;
8046
8208
  email?: string | undefined;
8209
+ avatar_url?: string | undefined;
8047
8210
  } | undefined;
8048
8211
  created_time?: number | undefined;
8049
8212
  last_modified_by?: {
@@ -8051,6 +8214,7 @@ declare abstract class Client$1 {
8051
8214
  name?: string | undefined;
8052
8215
  en_name?: string | undefined;
8053
8216
  email?: string | undefined;
8217
+ avatar_url?: string | undefined;
8054
8218
  } | undefined;
8055
8219
  last_modified_time?: number | undefined;
8056
8220
  fields: Record<string, string | boolean | {
@@ -8069,6 +8233,7 @@ declare abstract class Client$1 {
8069
8233
  name?: string;
8070
8234
  en_name?: string;
8071
8235
  email?: string;
8236
+ avatar_url?: string;
8072
8237
  }> | Array<{
8073
8238
  file_token?: string;
8074
8239
  name?: string;
@@ -8107,6 +8272,7 @@ declare abstract class Client$1 {
8107
8272
  name?: string | undefined;
8108
8273
  en_name?: string | undefined;
8109
8274
  email?: string | undefined;
8275
+ avatar_url?: string | undefined;
8110
8276
  } | undefined;
8111
8277
  created_time?: number | undefined;
8112
8278
  last_modified_by?: {
@@ -8114,6 +8280,7 @@ declare abstract class Client$1 {
8114
8280
  name?: string | undefined;
8115
8281
  en_name?: string | undefined;
8116
8282
  email?: string | undefined;
8283
+ avatar_url?: string | undefined;
8117
8284
  } | undefined;
8118
8285
  last_modified_time?: number | undefined;
8119
8286
  fields: Record<string, string | boolean | {
@@ -8132,6 +8299,7 @@ declare abstract class Client$1 {
8132
8299
  name?: string;
8133
8300
  en_name?: string;
8134
8301
  email?: string;
8302
+ avatar_url?: string;
8135
8303
  }> | Array<{
8136
8304
  file_token?: string;
8137
8305
  name?: string;
@@ -8185,6 +8353,7 @@ declare abstract class Client$1 {
8185
8353
  name?: string | undefined;
8186
8354
  en_name?: string | undefined;
8187
8355
  email?: string | undefined;
8356
+ avatar_url?: string | undefined;
8188
8357
  } | undefined;
8189
8358
  created_time?: number | undefined;
8190
8359
  last_modified_by?: {
@@ -8192,6 +8361,7 @@ declare abstract class Client$1 {
8192
8361
  name?: string | undefined;
8193
8362
  en_name?: string | undefined;
8194
8363
  email?: string | undefined;
8364
+ avatar_url?: string | undefined;
8195
8365
  } | undefined;
8196
8366
  last_modified_time?: number | undefined;
8197
8367
  fields: Record<string, string | boolean | {
@@ -8210,6 +8380,7 @@ declare abstract class Client$1 {
8210
8380
  name?: string;
8211
8381
  en_name?: string;
8212
8382
  email?: string;
8383
+ avatar_url?: string;
8213
8384
  }> | Array<{
8214
8385
  file_token?: string;
8215
8386
  name?: string;
@@ -8278,6 +8449,7 @@ declare abstract class Client$1 {
8278
8449
  name?: string | undefined;
8279
8450
  en_name?: string | undefined;
8280
8451
  email?: string | undefined;
8452
+ avatar_url?: string | undefined;
8281
8453
  } | undefined;
8282
8454
  created_time?: number | undefined;
8283
8455
  last_modified_by?: {
@@ -8285,6 +8457,7 @@ declare abstract class Client$1 {
8285
8457
  name?: string | undefined;
8286
8458
  en_name?: string | undefined;
8287
8459
  email?: string | undefined;
8460
+ avatar_url?: string | undefined;
8288
8461
  } | undefined;
8289
8462
  last_modified_time?: number | undefined;
8290
8463
  fields: Record<string, string | boolean | {
@@ -8303,6 +8476,7 @@ declare abstract class Client$1 {
8303
8476
  name?: string;
8304
8477
  en_name?: string;
8305
8478
  email?: string;
8479
+ avatar_url?: string;
8306
8480
  }> | Array<{
8307
8481
  file_token?: string;
8308
8482
  name?: string;
@@ -9566,6 +9740,7 @@ declare abstract class Client$1 {
9566
9740
  icon_type?: "default" | "vc" | "live" | undefined;
9567
9741
  description?: string | undefined;
9568
9742
  meeting_url?: string | undefined;
9743
+ live_link?: string | undefined;
9569
9744
  } | undefined;
9570
9745
  visibility?: "default" | "private" | "public" | undefined;
9571
9746
  attendee_ability?: "none" | "can_see_others" | "can_invite_others" | "can_modify_event" | undefined;
@@ -9657,6 +9832,7 @@ declare abstract class Client$1 {
9657
9832
  icon_type?: "default" | "vc" | "live" | undefined;
9658
9833
  description?: string | undefined;
9659
9834
  meeting_url?: string | undefined;
9835
+ live_link?: string | undefined;
9660
9836
  } | undefined;
9661
9837
  visibility?: "default" | "private" | "public" | undefined;
9662
9838
  attendee_ability?: "none" | "can_see_others" | "can_invite_others" | "can_modify_event" | undefined;
@@ -9734,6 +9910,7 @@ declare abstract class Client$1 {
9734
9910
  icon_type?: "default" | "vc" | "live" | undefined;
9735
9911
  description?: string | undefined;
9736
9912
  meeting_url?: string | undefined;
9913
+ live_link?: string | undefined;
9737
9914
  } | undefined;
9738
9915
  visibility?: "default" | "private" | "public" | undefined;
9739
9916
  attendee_ability?: "none" | "can_see_others" | "can_invite_others" | "can_modify_event" | undefined;
@@ -9842,6 +10019,7 @@ declare abstract class Client$1 {
9842
10019
  icon_type?: "default" | "vc" | "live" | undefined;
9843
10020
  description?: string | undefined;
9844
10021
  meeting_url?: string | undefined;
10022
+ live_link?: string | undefined;
9845
10023
  } | undefined;
9846
10024
  visibility?: "default" | "private" | "public" | undefined;
9847
10025
  attendee_ability?: "none" | "can_see_others" | "can_invite_others" | "can_modify_event" | undefined;
@@ -9919,6 +10097,7 @@ declare abstract class Client$1 {
9919
10097
  icon_type?: "default" | "vc" | "live" | undefined;
9920
10098
  description?: string | undefined;
9921
10099
  meeting_url?: string | undefined;
10100
+ live_link?: string | undefined;
9922
10101
  } | undefined;
9923
10102
  visibility?: "default" | "private" | "public" | undefined;
9924
10103
  attendee_ability?: "none" | "can_see_others" | "can_invite_others" | "can_modify_event" | undefined;
@@ -10008,6 +10187,7 @@ declare abstract class Client$1 {
10008
10187
  icon_type?: "default" | "vc" | "live" | undefined;
10009
10188
  description?: string | undefined;
10010
10189
  meeting_url?: string | undefined;
10190
+ live_link?: string | undefined;
10011
10191
  } | undefined;
10012
10192
  visibility?: "default" | "private" | "public" | undefined;
10013
10193
  attendee_ability?: "none" | "can_see_others" | "can_invite_others" | "can_modify_event" | undefined;
@@ -11789,6 +11969,7 @@ declare abstract class Client$1 {
11789
11969
  geo?: string;
11790
11970
  job_level_id?: string;
11791
11971
  job_family_id?: string;
11972
+ subscription_ids?: Array<string>;
11792
11973
  };
11793
11974
  params?: {
11794
11975
  user_id_type?: "user_id" | "union_id" | "open_id";
@@ -12203,6 +12384,18 @@ declare abstract class Client$1 {
12203
12384
  geo?: string | undefined;
12204
12385
  job_level_id?: string | undefined;
12205
12386
  job_family_id?: string | undefined;
12387
+ assign_info?: {
12388
+ subscription_id?: string | undefined;
12389
+ license_plan_key?: string | undefined;
12390
+ product_name?: string | undefined;
12391
+ i18n_name?: {
12392
+ zh_cn?: string | undefined;
12393
+ ja_jp?: string | undefined;
12394
+ en_us?: string | undefined;
12395
+ } | undefined;
12396
+ start_time?: string | undefined;
12397
+ end_time?: string | undefined;
12398
+ }[] | undefined;
12206
12399
  } | undefined;
12207
12400
  } | undefined;
12208
12401
  }>;
@@ -12285,6 +12478,18 @@ declare abstract class Client$1 {
12285
12478
  geo?: string | undefined;
12286
12479
  job_level_id?: string | undefined;
12287
12480
  job_family_id?: string | undefined;
12481
+ assign_info?: {
12482
+ subscription_id?: string | undefined;
12483
+ license_plan_key?: string | undefined;
12484
+ product_name?: string | undefined;
12485
+ i18n_name?: {
12486
+ zh_cn?: string | undefined;
12487
+ ja_jp?: string | undefined;
12488
+ en_us?: string | undefined;
12489
+ } | undefined;
12490
+ start_time?: string | undefined;
12491
+ end_time?: string | undefined;
12492
+ }[] | undefined;
12288
12493
  }[] | undefined;
12289
12494
  } | null, void, unknown>;
12290
12495
  }>;
@@ -12376,6 +12581,18 @@ declare abstract class Client$1 {
12376
12581
  geo?: string | undefined;
12377
12582
  job_level_id?: string | undefined;
12378
12583
  job_family_id?: string | undefined;
12584
+ assign_info?: {
12585
+ subscription_id?: string | undefined;
12586
+ license_plan_key?: string | undefined;
12587
+ product_name?: string | undefined;
12588
+ i18n_name?: {
12589
+ zh_cn?: string | undefined;
12590
+ ja_jp?: string | undefined;
12591
+ en_us?: string | undefined;
12592
+ } | undefined;
12593
+ start_time?: string | undefined;
12594
+ end_time?: string | undefined;
12595
+ }[] | undefined;
12379
12596
  }[] | undefined;
12380
12597
  } | undefined;
12381
12598
  }>;
@@ -12441,6 +12658,7 @@ declare abstract class Client$1 {
12441
12658
  geo?: string;
12442
12659
  job_level_id?: string;
12443
12660
  job_family_id?: string;
12661
+ subscription_ids?: Array<string>;
12444
12662
  };
12445
12663
  params?: {
12446
12664
  user_id_type?: "user_id" | "union_id" | "open_id";
@@ -36957,7 +37175,7 @@ declare abstract class Client$1 {
36957
37175
  };
36958
37176
  };
36959
37177
  /**
36960
- * 云文档-文件管理
37178
+ * 云文档-文档
36961
37179
  */
36962
37180
  drive: {
36963
37181
  /**
@@ -37412,7 +37630,7 @@ declare abstract class Client$1 {
37412
37630
  }>;
37413
37631
  };
37414
37632
  /**
37415
- * 文件夹
37633
+ * 事件
37416
37634
  */
37417
37635
  file: {
37418
37636
  /**
@@ -38135,7 +38353,7 @@ declare abstract class Client$1 {
38135
38353
  }>;
38136
38354
  };
38137
38355
  /**
38138
- * 素材
38356
+ * 分片上传
38139
38357
  */
38140
38358
  media: {
38141
38359
  /**
@@ -38322,6 +38540,7 @@ declare abstract class Client$1 {
38322
38540
  latest_modify_user: string;
38323
38541
  latest_modify_time: string;
38324
38542
  url: string;
38543
+ sec_label_name?: string;
38325
38544
  }>;
38326
38545
  failed_list?: {
38327
38546
  token: string;
@@ -38786,7 +39005,7 @@ declare abstract class Client$1 {
38786
39005
  custom_fields?: {
38787
39006
  key?: string | undefined;
38788
39007
  label?: string | undefined;
38789
- type?: "file" | "text" | "date" | "option" | undefined;
39008
+ type?: "text" | "file" | "date" | "option" | undefined;
38790
39009
  value?: string | undefined;
38791
39010
  }[] | undefined;
38792
39011
  }[] | undefined;
@@ -38975,7 +39194,7 @@ declare abstract class Client$1 {
38975
39194
  custom_fields?: {
38976
39195
  key?: string | undefined;
38977
39196
  label?: string | undefined;
38978
- type?: "file" | "text" | "date" | "option" | undefined;
39197
+ type?: "text" | "file" | "date" | "option" | undefined;
38979
39198
  value?: string | undefined;
38980
39199
  }[] | undefined;
38981
39200
  }[] | undefined;
@@ -41135,7 +41354,7 @@ declare abstract class Client$1 {
41135
41354
  */
41136
41355
  hire: {
41137
41356
  /**
41138
- * 投递
41357
+ * 入职
41139
41358
  */
41140
41359
  application: {
41141
41360
  /**
@@ -47891,6 +48110,7 @@ declare abstract class Client$1 {
47891
48110
  ja_jp?: string;
47892
48111
  };
47893
48112
  schema_id?: string;
48113
+ app_id?: string;
47894
48114
  };
47895
48115
  }, options?: IRequestOptions$1) => Promise<{
47896
48116
  code?: number | undefined;
@@ -47918,6 +48138,7 @@ declare abstract class Client$1 {
47918
48138
  ja_jp?: string | undefined;
47919
48139
  } | undefined;
47920
48140
  schema_id?: string | undefined;
48141
+ app_id?: string | undefined;
47921
48142
  } | undefined;
47922
48143
  } | undefined;
47923
48144
  }>;
@@ -47978,6 +48199,7 @@ declare abstract class Client$1 {
47978
48199
  ja_jp?: string | undefined;
47979
48200
  } | undefined;
47980
48201
  schema_id?: string | undefined;
48202
+ app_id?: string | undefined;
47981
48203
  } | undefined;
47982
48204
  } | undefined;
47983
48205
  }>;
@@ -48011,6 +48233,7 @@ declare abstract class Client$1 {
48011
48233
  ja_jp?: string | undefined;
48012
48234
  } | undefined;
48013
48235
  schema_id?: string | undefined;
48236
+ app_id?: string | undefined;
48014
48237
  }[] | undefined;
48015
48238
  } | null, void, unknown>;
48016
48239
  }>;
@@ -48057,6 +48280,7 @@ declare abstract class Client$1 {
48057
48280
  ja_jp?: string | undefined;
48058
48281
  } | undefined;
48059
48282
  schema_id?: string | undefined;
48283
+ app_id?: string | undefined;
48060
48284
  }[] | undefined;
48061
48285
  } | undefined;
48062
48286
  }>;
@@ -48115,6 +48339,7 @@ declare abstract class Client$1 {
48115
48339
  ja_jp?: string | undefined;
48116
48340
  } | undefined;
48117
48341
  schema_id?: string | undefined;
48342
+ app_id?: string | undefined;
48118
48343
  } | undefined;
48119
48344
  } | undefined;
48120
48345
  }>;
@@ -51781,7 +52006,7 @@ declare abstract class Client$1 {
51781
52006
  need_topic?: boolean;
51782
52007
  start_time: string;
51783
52008
  end_time: string;
51784
- room_ids?: number;
52009
+ room_ids: number;
51785
52010
  is_exclude?: boolean;
51786
52011
  page_size?: number;
51787
52012
  page_token?: string;
@@ -51819,7 +52044,7 @@ declare abstract class Client$1 {
51819
52044
  need_topic?: boolean;
51820
52045
  start_time: string;
51821
52046
  end_time: string;
51822
- room_ids?: number;
52047
+ room_ids: number;
51823
52048
  is_exclude?: boolean;
51824
52049
  page_size?: number;
51825
52050
  page_token?: string;
@@ -53331,6 +53556,7 @@ interface IParams$1 {
53331
53556
  domain: string;
53332
53557
  logger: Logger;
53333
53558
  appType: AppType;
53559
+ httpInstance: HttpInstance;
53334
53560
  }
53335
53561
  declare class AppTicketManager {
53336
53562
  appId: string;
@@ -53339,6 +53565,7 @@ declare class AppTicketManager {
53339
53565
  domain: string;
53340
53566
  logger: Logger;
53341
53567
  appType: AppType;
53568
+ httpInstance: HttpInstance;
53342
53569
  constructor(params: IParams$1);
53343
53570
  checkAppTicket(): Promise<void>;
53344
53571
  requestAppTicket(): Promise<void>;
@@ -53352,6 +53579,7 @@ interface IParams {
53352
53579
  domain: string;
53353
53580
  logger: Logger;
53354
53581
  appType: AppType;
53582
+ httpInstance: HttpInstance;
53355
53583
  }
53356
53584
  declare class TokenManager {
53357
53585
  appId: string;
@@ -53361,6 +53589,7 @@ declare class TokenManager {
53361
53589
  domain: string;
53362
53590
  logger: Logger;
53363
53591
  appType: AppType;
53592
+ httpInstance: HttpInstance;
53364
53593
  constructor(params: IParams);
53365
53594
  getCustomTenantAccessToken(): Promise<any>;
53366
53595
  getMarketTenantAccessToken(tenantKey: string): Promise<any>;
@@ -53380,6 +53609,7 @@ declare class Client extends Client$1 {
53380
53609
  disableTokenCache?: boolean;
53381
53610
  appType: AppType;
53382
53611
  domain: string;
53612
+ httpInstance: HttpInstance;
53383
53613
  constructor(params: IClientParams);
53384
53614
  formatPayload(payload?: IPayload, options?: IRequestOptions): Promise<Required<IPayload>>;
53385
53615
  request<T = any>(payload: AxiosRequestConfig, options?: IRequestOptions): Promise<T>;
@@ -54936,6 +55166,19 @@ interface IHandles extends IOtherEventHandles {
54936
55166
  geo?: string;
54937
55167
  job_level_id?: string;
54938
55168
  job_family_id?: string;
55169
+ subscription_ids?: Array<string>;
55170
+ assign_info?: Array<{
55171
+ subscription_id?: string;
55172
+ license_plan_key?: string;
55173
+ product_name?: string;
55174
+ i18n_name?: {
55175
+ zh_cn?: string;
55176
+ ja_jp?: string;
55177
+ en_us?: string;
55178
+ };
55179
+ start_time?: string;
55180
+ end_time?: string;
55181
+ }>;
54939
55182
  }>;
54940
55183
  user_groups?: Array<{
54941
55184
  user_group_id: string;
@@ -55037,6 +55280,19 @@ interface IHandles extends IOtherEventHandles {
55037
55280
  geo?: string;
55038
55281
  job_level_id?: string;
55039
55282
  job_family_id?: string;
55283
+ subscription_ids?: Array<string>;
55284
+ assign_info?: Array<{
55285
+ subscription_id?: string;
55286
+ license_plan_key?: string;
55287
+ product_name?: string;
55288
+ i18n_name?: {
55289
+ zh_cn?: string;
55290
+ ja_jp?: string;
55291
+ en_us?: string;
55292
+ };
55293
+ start_time?: string;
55294
+ end_time?: string;
55295
+ }>;
55040
55296
  }>;
55041
55297
  user_groups?: Array<{
55042
55298
  user_group_id: string;
@@ -55881,6 +56137,24 @@ interface IHandles extends IOtherEventHandles {
55881
56137
  image_key?: string;
55882
56138
  };
55883
56139
  }) => Promise<any> | any;
56140
+ /**
56141
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/event/application-stage-changed document }
56142
+ */
56143
+ "hire.application.stage_changed_v1"?: (data: {
56144
+ event_id?: string;
56145
+ token?: string;
56146
+ create_time?: string;
56147
+ event_type?: string;
56148
+ tenant_key?: string;
56149
+ ts?: string;
56150
+ uuid?: string;
56151
+ type?: string;
56152
+ app_id?: string;
56153
+ application_id?: string;
56154
+ origin_stage_id?: string;
56155
+ target_stage_id?: string;
56156
+ update_time?: number;
56157
+ }) => Promise<any> | any;
55884
56158
  /**
55885
56159
  * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat/events/disbanded document }
55886
56160
  *
@@ -57509,4 +57783,4 @@ interface InteractiveCardSelectMenuActionItem extends InteractiveCardActionBaseI
57509
57783
  value?: Record<string, any>;
57510
57784
  }
57511
57785
 
57512
- export { AESCipher, AppType, CAppTicket, CTenantAccessToken, Cache, CardActionHandler, Client, Domain, EventDispatcher, IHandles as EventHandles, InteractiveCard, InteractiveCardActionEvent, InteractiveCardActionItem, InteractiveCardButtonActionItem, InteractiveCardDatePickerActionItem, InteractiveCardDivElement, InteractiveCardDividerElement, InteractiveCardElement, InteractiveCardField, InteractiveCardImageElement, InteractiveCardImageItem, InteractiveCardLarkMdItem, InteractiveCardMarkdownElement, InteractiveCardNoteElement, InteractiveCardOverflowActionItem, InteractiveCardPlainTextItem, InteractiveCardSelectMenuActionItem, InteractiveCardTextItem, InteractiveCardTitle, InteractiveCardUrlItem, InterfaceCardActionElement, LoggerLevel, adaptDefault, adaptExpress, adaptKoa, adaptKoaRouter, generateChallenge, withAll, withHelpDeskCredential, withTenantKey, withTenantToken, withUserAccessToken };
57786
+ export { AESCipher, AppType, CAppTicket, CTenantAccessToken, Cache, CardActionHandler, Client, Domain, EventDispatcher, IHandles as EventHandles, HttpInstance, InteractiveCard, InteractiveCardActionEvent, InteractiveCardActionItem, InteractiveCardButtonActionItem, InteractiveCardDatePickerActionItem, InteractiveCardDivElement, InteractiveCardDividerElement, InteractiveCardElement, InteractiveCardField, InteractiveCardImageElement, InteractiveCardImageItem, InteractiveCardLarkMdItem, InteractiveCardMarkdownElement, InteractiveCardNoteElement, InteractiveCardOverflowActionItem, InteractiveCardPlainTextItem, InteractiveCardSelectMenuActionItem, InteractiveCardTextItem, InteractiveCardTitle, InteractiveCardUrlItem, InterfaceCardActionElement, LoggerLevel, adaptDefault, adaptExpress, adaptKoa, adaptKoaRouter, defaultHttpInstance, generateChallenge, withAll, withHelpDeskCredential, withTenantKey, withTenantToken, withUserAccessToken };