@tachybase/plugin-auth-dingtalk 1.3.22 → 1.3.24

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 (24) hide show
  1. package/dist/externalVersion.js +3 -3
  2. package/dist/node_modules/@alicloud/dingtalk/dist/attendance_1_0/client.d.ts +1 -0
  3. package/dist/node_modules/@alicloud/dingtalk/dist/attendance_1_0/client.js +2 -0
  4. package/dist/node_modules/@alicloud/dingtalk/dist/datacenter_1_0/client.d.ts +86 -0
  5. package/dist/node_modules/@alicloud/dingtalk/dist/datacenter_1_0/client.js +149 -8
  6. package/dist/node_modules/@alicloud/dingtalk/dist/im_1_0/client.d.ts +631 -0
  7. package/dist/node_modules/@alicloud/dingtalk/dist/im_1_0/client.js +644 -8
  8. package/dist/node_modules/@alicloud/dingtalk/dist/index.js +2 -2
  9. package/dist/node_modules/@alicloud/dingtalk/dist/minutes_1_0/client.d.ts +207 -0
  10. package/dist/node_modules/@alicloud/dingtalk/dist/minutes_1_0/client.js +324 -2
  11. package/dist/node_modules/@alicloud/dingtalk/dist/project_1_0/client.d.ts +41 -13
  12. package/dist/node_modules/@alicloud/dingtalk/dist/project_1_0/client.js +41 -0
  13. package/dist/node_modules/@alicloud/dingtalk/dist/robot_1_0/client.d.ts +112 -0
  14. package/dist/node_modules/@alicloud/dingtalk/dist/robot_1_0/client.js +161 -1
  15. package/dist/node_modules/@alicloud/dingtalk/package.json +1 -1
  16. package/dist/node_modules/@alicloud/dingtalk/src/attendance_1_0/client.ts +3 -0
  17. package/dist/node_modules/@alicloud/dingtalk/src/datacenter_1_0/client.ts +167 -0
  18. package/dist/node_modules/@alicloud/dingtalk/src/im_1_0/client.ts +1083 -65
  19. package/dist/node_modules/@alicloud/dingtalk/src/minutes_1_0/client.ts +412 -1
  20. package/dist/node_modules/@alicloud/dingtalk/src/project_1_0/client.ts +89 -13
  21. package/dist/node_modules/@alicloud/dingtalk/src/robot_1_0/client.ts +204 -0
  22. package/dist/node_modules/@alicloud/openapi-client/package.json +1 -1
  23. package/dist/node_modules/@alicloud/tea-util/package.json +1 -1
  24. package/package.json +7 -7
@@ -288,6 +288,109 @@ export class OpenQueryMinutesSummaryResponse extends $tea.Model {
288
288
  }
289
289
  }
290
290
 
291
+ export class QueryBizMinutesHeaders extends $tea.Model {
292
+ commonHeaders?: { [key: string]: string };
293
+ xAcsDingtalkAccessToken?: string;
294
+ static names(): { [key: string]: string } {
295
+ return {
296
+ commonHeaders: 'commonHeaders',
297
+ xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
298
+ };
299
+ }
300
+
301
+ static types(): { [key: string]: any } {
302
+ return {
303
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
304
+ xAcsDingtalkAccessToken: 'string',
305
+ };
306
+ }
307
+
308
+ constructor(map?: { [key: string]: any }) {
309
+ super(map);
310
+ }
311
+ }
312
+
313
+ export class QueryBizMinutesRequest extends $tea.Model {
314
+ /**
315
+ * @remarks
316
+ * This parameter is required.
317
+ */
318
+ bizId?: string;
319
+ /**
320
+ * @remarks
321
+ * This parameter is required.
322
+ */
323
+ bizType?: number;
324
+ /**
325
+ * @remarks
326
+ * This parameter is required.
327
+ */
328
+ unionId?: string;
329
+ static names(): { [key: string]: string } {
330
+ return {
331
+ bizId: 'bizId',
332
+ bizType: 'bizType',
333
+ unionId: 'unionId',
334
+ };
335
+ }
336
+
337
+ static types(): { [key: string]: any } {
338
+ return {
339
+ bizId: 'string',
340
+ bizType: 'number',
341
+ unionId: 'string',
342
+ };
343
+ }
344
+
345
+ constructor(map?: { [key: string]: any }) {
346
+ super(map);
347
+ }
348
+ }
349
+
350
+ export class QueryBizMinutesResponseBody extends $tea.Model {
351
+ minutesDetails?: QueryBizMinutesResponseBodyMinutesDetails[];
352
+ static names(): { [key: string]: string } {
353
+ return {
354
+ minutesDetails: 'minutesDetails',
355
+ };
356
+ }
357
+
358
+ static types(): { [key: string]: any } {
359
+ return {
360
+ minutesDetails: { 'type': 'array', 'itemType': QueryBizMinutesResponseBodyMinutesDetails },
361
+ };
362
+ }
363
+
364
+ constructor(map?: { [key: string]: any }) {
365
+ super(map);
366
+ }
367
+ }
368
+
369
+ export class QueryBizMinutesResponse extends $tea.Model {
370
+ headers?: { [key: string]: string };
371
+ statusCode?: number;
372
+ body?: QueryBizMinutesResponseBody;
373
+ static names(): { [key: string]: string } {
374
+ return {
375
+ headers: 'headers',
376
+ statusCode: 'statusCode',
377
+ body: 'body',
378
+ };
379
+ }
380
+
381
+ static types(): { [key: string]: any } {
382
+ return {
383
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
384
+ statusCode: 'number',
385
+ body: QueryBizMinutesResponseBody,
386
+ };
387
+ }
388
+
389
+ constructor(map?: { [key: string]: any }) {
390
+ super(map);
391
+ }
392
+ }
393
+
291
394
  export class QueryCreateMinutesListHeaders extends $tea.Model {
292
395
  commonHeaders?: { [key: string]: string };
293
396
  xAcsDingtalkAccessToken?: string;
@@ -783,6 +886,102 @@ export class QueryMinutesTextResponse extends $tea.Model {
783
886
  }
784
887
  }
785
888
 
889
+ export class QueryScheduleConfMinutesHeaders extends $tea.Model {
890
+ commonHeaders?: { [key: string]: string };
891
+ xAcsDingtalkAccessToken?: string;
892
+ static names(): { [key: string]: string } {
893
+ return {
894
+ commonHeaders: 'commonHeaders',
895
+ xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
896
+ };
897
+ }
898
+
899
+ static types(): { [key: string]: any } {
900
+ return {
901
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
902
+ xAcsDingtalkAccessToken: 'string',
903
+ };
904
+ }
905
+
906
+ constructor(map?: { [key: string]: any }) {
907
+ super(map);
908
+ }
909
+ }
910
+
911
+ export class QueryScheduleConfMinutesRequest extends $tea.Model {
912
+ /**
913
+ * @remarks
914
+ * This parameter is required.
915
+ */
916
+ eventId?: string;
917
+ /**
918
+ * @remarks
919
+ * This parameter is required.
920
+ */
921
+ unionId?: string;
922
+ static names(): { [key: string]: string } {
923
+ return {
924
+ eventId: 'eventId',
925
+ unionId: 'unionId',
926
+ };
927
+ }
928
+
929
+ static types(): { [key: string]: any } {
930
+ return {
931
+ eventId: 'string',
932
+ unionId: 'string',
933
+ };
934
+ }
935
+
936
+ constructor(map?: { [key: string]: any }) {
937
+ super(map);
938
+ }
939
+ }
940
+
941
+ export class QueryScheduleConfMinutesResponseBody extends $tea.Model {
942
+ minutesDetails?: QueryScheduleConfMinutesResponseBodyMinutesDetails[];
943
+ static names(): { [key: string]: string } {
944
+ return {
945
+ minutesDetails: 'minutesDetails',
946
+ };
947
+ }
948
+
949
+ static types(): { [key: string]: any } {
950
+ return {
951
+ minutesDetails: { 'type': 'array', 'itemType': QueryScheduleConfMinutesResponseBodyMinutesDetails },
952
+ };
953
+ }
954
+
955
+ constructor(map?: { [key: string]: any }) {
956
+ super(map);
957
+ }
958
+ }
959
+
960
+ export class QueryScheduleConfMinutesResponse extends $tea.Model {
961
+ headers?: { [key: string]: string };
962
+ statusCode?: number;
963
+ body?: QueryScheduleConfMinutesResponseBody;
964
+ static names(): { [key: string]: string } {
965
+ return {
966
+ headers: 'headers',
967
+ statusCode: 'statusCode',
968
+ body: 'body',
969
+ };
970
+ }
971
+
972
+ static types(): { [key: string]: any } {
973
+ return {
974
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
975
+ statusCode: 'number',
976
+ body: QueryScheduleConfMinutesResponseBody,
977
+ };
978
+ }
979
+
980
+ constructor(map?: { [key: string]: any }) {
981
+ super(map);
982
+ }
983
+ }
984
+
786
985
  export class QueryUploadVideoPlayInfoHeaders extends $tea.Model {
787
986
  commonHeaders?: { [key: string]: string };
788
987
  xAcsDingtalkAccessToken?: string;
@@ -1017,6 +1216,52 @@ export class BatchGetMinutesDetailsResponseBodyMinutesDetails extends $tea.Model
1017
1216
  }
1018
1217
  }
1019
1218
 
1219
+ export class QueryBizMinutesResponseBodyMinutesDetails extends $tea.Model {
1220
+ bizType?: number;
1221
+ creatorNick?: string;
1222
+ creatorUnionId?: string;
1223
+ durationMicros?: number;
1224
+ isDeleted?: number;
1225
+ size?: number;
1226
+ startTime?: number;
1227
+ status?: number;
1228
+ taskUuid?: string;
1229
+ title?: string;
1230
+ static names(): { [key: string]: string } {
1231
+ return {
1232
+ bizType: 'bizType',
1233
+ creatorNick: 'creatorNick',
1234
+ creatorUnionId: 'creatorUnionId',
1235
+ durationMicros: 'durationMicros',
1236
+ isDeleted: 'isDeleted',
1237
+ size: 'size',
1238
+ startTime: 'startTime',
1239
+ status: 'status',
1240
+ taskUuid: 'taskUuid',
1241
+ title: 'title',
1242
+ };
1243
+ }
1244
+
1245
+ static types(): { [key: string]: any } {
1246
+ return {
1247
+ bizType: 'number',
1248
+ creatorNick: 'string',
1249
+ creatorUnionId: 'string',
1250
+ durationMicros: 'number',
1251
+ isDeleted: 'number',
1252
+ size: 'number',
1253
+ startTime: 'number',
1254
+ status: 'number',
1255
+ taskUuid: 'string',
1256
+ title: 'string',
1257
+ };
1258
+ }
1259
+
1260
+ constructor(map?: { [key: string]: any }) {
1261
+ super(map);
1262
+ }
1263
+ }
1264
+
1020
1265
  export class QueryCreateMinutesListResponseBodyMinutesDetails extends $tea.Model {
1021
1266
  bizType?: number;
1022
1267
  creatorNick?: string;
@@ -1239,6 +1484,52 @@ export class QueryMinutesTextResponseBodyParagraphList extends $tea.Model {
1239
1484
  }
1240
1485
  }
1241
1486
 
1487
+ export class QueryScheduleConfMinutesResponseBodyMinutesDetails extends $tea.Model {
1488
+ bizType?: number;
1489
+ creatorNick?: string;
1490
+ creatorUnionId?: string;
1491
+ durationMicros?: number;
1492
+ isDeleted?: number;
1493
+ size?: number;
1494
+ startTime?: number;
1495
+ status?: number;
1496
+ taskUuid?: string;
1497
+ title?: string;
1498
+ static names(): { [key: string]: string } {
1499
+ return {
1500
+ bizType: 'bizType',
1501
+ creatorNick: 'creatorNick',
1502
+ creatorUnionId: 'creatorUnionId',
1503
+ durationMicros: 'durationMicros',
1504
+ isDeleted: 'isDeleted',
1505
+ size: 'size',
1506
+ startTime: 'startTime',
1507
+ status: 'status',
1508
+ taskUuid: 'taskUuid',
1509
+ title: 'title',
1510
+ };
1511
+ }
1512
+
1513
+ static types(): { [key: string]: any } {
1514
+ return {
1515
+ bizType: 'number',
1516
+ creatorNick: 'string',
1517
+ creatorUnionId: 'string',
1518
+ durationMicros: 'number',
1519
+ isDeleted: 'number',
1520
+ size: 'number',
1521
+ startTime: 'number',
1522
+ status: 'number',
1523
+ taskUuid: 'string',
1524
+ title: 'string',
1525
+ };
1526
+ }
1527
+
1528
+ constructor(map?: { [key: string]: any }) {
1529
+ super(map);
1530
+ }
1531
+ }
1532
+
1242
1533
  export class QueryUploadVideoPlayInfoResponseBodyPlayInfo extends $tea.Model {
1243
1534
  duration?: number;
1244
1535
  playUrl?: string;
@@ -1432,7 +1723,7 @@ export default class Client extends OpenApi {
1432
1723
  action: "OpenQueryMinutesSummary",
1433
1724
  version: "minutes_1.0",
1434
1725
  protocol: "HTTP",
1435
- pathname: `/v1.0/minutes/flashMinutes/queryMinutes`,
1726
+ pathname: `/v1.0/minutes/flashMinutes/queryMinutesSummary`,
1436
1727
  method: "GET",
1437
1728
  authType: "AK",
1438
1729
  style: "ROA",
@@ -1454,6 +1745,68 @@ export default class Client extends OpenApi {
1454
1745
  return await this.openQueryMinutesSummaryWithOptions(request, headers, runtime);
1455
1746
  }
1456
1747
 
1748
+ /**
1749
+ * 查询闪会、文档等来源的闪记列表
1750
+ *
1751
+ * @param request - QueryBizMinutesRequest
1752
+ * @param headers - QueryBizMinutesHeaders
1753
+ * @param runtime - runtime options for this request RuntimeOptions
1754
+ * @returns QueryBizMinutesResponse
1755
+ */
1756
+ async queryBizMinutesWithOptions(request: QueryBizMinutesRequest, headers: QueryBizMinutesHeaders, runtime: $Util.RuntimeOptions): Promise<QueryBizMinutesResponse> {
1757
+ Util.validateModel(request);
1758
+ let query : {[key: string ]: any} = { };
1759
+ if (!Util.isUnset(request.bizId)) {
1760
+ query["bizId"] = request.bizId;
1761
+ }
1762
+
1763
+ if (!Util.isUnset(request.bizType)) {
1764
+ query["bizType"] = request.bizType;
1765
+ }
1766
+
1767
+ if (!Util.isUnset(request.unionId)) {
1768
+ query["unionId"] = request.unionId;
1769
+ }
1770
+
1771
+ let realHeaders : {[key: string ]: string} = { };
1772
+ if (!Util.isUnset(headers.commonHeaders)) {
1773
+ realHeaders = headers.commonHeaders;
1774
+ }
1775
+
1776
+ if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) {
1777
+ realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken);
1778
+ }
1779
+
1780
+ let req = new $OpenApi.OpenApiRequest({
1781
+ headers: realHeaders,
1782
+ query: OpenApiUtil.query(query),
1783
+ });
1784
+ let params = new $OpenApi.Params({
1785
+ action: "QueryBizMinutes",
1786
+ version: "minutes_1.0",
1787
+ protocol: "HTTP",
1788
+ pathname: `/v1.0/minutes/flashMinutes/queryBizMinutes`,
1789
+ method: "GET",
1790
+ authType: "AK",
1791
+ style: "ROA",
1792
+ reqBodyType: "none",
1793
+ bodyType: "json",
1794
+ });
1795
+ return $tea.cast<QueryBizMinutesResponse>(await this.execute(params, req, runtime), new QueryBizMinutesResponse({}));
1796
+ }
1797
+
1798
+ /**
1799
+ * 查询闪会、文档等来源的闪记列表
1800
+ *
1801
+ * @param request - QueryBizMinutesRequest
1802
+ * @returns QueryBizMinutesResponse
1803
+ */
1804
+ async queryBizMinutes(request: QueryBizMinutesRequest): Promise<QueryBizMinutesResponse> {
1805
+ let runtime = new $Util.RuntimeOptions({ });
1806
+ let headers = new QueryBizMinutesHeaders({ });
1807
+ return await this.queryBizMinutesWithOptions(request, headers, runtime);
1808
+ }
1809
+
1457
1810
  /**
1458
1811
  * 查询自己创建的闪记列表
1459
1812
  *
@@ -1756,6 +2109,64 @@ export default class Client extends OpenApi {
1756
2109
  return await this.queryMinutesTextWithOptions(taskUuid, request, headers, runtime);
1757
2110
  }
1758
2111
 
2112
+ /**
2113
+ * 查询预约会议闪记列表
2114
+ *
2115
+ * @param request - QueryScheduleConfMinutesRequest
2116
+ * @param headers - QueryScheduleConfMinutesHeaders
2117
+ * @param runtime - runtime options for this request RuntimeOptions
2118
+ * @returns QueryScheduleConfMinutesResponse
2119
+ */
2120
+ async queryScheduleConfMinutesWithOptions(scheduleConferenceId: string, request: QueryScheduleConfMinutesRequest, headers: QueryScheduleConfMinutesHeaders, runtime: $Util.RuntimeOptions): Promise<QueryScheduleConfMinutesResponse> {
2121
+ Util.validateModel(request);
2122
+ let query : {[key: string ]: any} = { };
2123
+ if (!Util.isUnset(request.eventId)) {
2124
+ query["eventId"] = request.eventId;
2125
+ }
2126
+
2127
+ if (!Util.isUnset(request.unionId)) {
2128
+ query["unionId"] = request.unionId;
2129
+ }
2130
+
2131
+ let realHeaders : {[key: string ]: string} = { };
2132
+ if (!Util.isUnset(headers.commonHeaders)) {
2133
+ realHeaders = headers.commonHeaders;
2134
+ }
2135
+
2136
+ if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) {
2137
+ realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken);
2138
+ }
2139
+
2140
+ let req = new $OpenApi.OpenApiRequest({
2141
+ headers: realHeaders,
2142
+ query: OpenApiUtil.query(query),
2143
+ });
2144
+ let params = new $OpenApi.Params({
2145
+ action: "QueryScheduleConfMinutes",
2146
+ version: "minutes_1.0",
2147
+ protocol: "HTTP",
2148
+ pathname: `/v1.0/minutes/flashMinutes/scheduleConference/${scheduleConferenceId}/minutes`,
2149
+ method: "GET",
2150
+ authType: "AK",
2151
+ style: "ROA",
2152
+ reqBodyType: "none",
2153
+ bodyType: "json",
2154
+ });
2155
+ return $tea.cast<QueryScheduleConfMinutesResponse>(await this.execute(params, req, runtime), new QueryScheduleConfMinutesResponse({}));
2156
+ }
2157
+
2158
+ /**
2159
+ * 查询预约会议闪记列表
2160
+ *
2161
+ * @param request - QueryScheduleConfMinutesRequest
2162
+ * @returns QueryScheduleConfMinutesResponse
2163
+ */
2164
+ async queryScheduleConfMinutes(scheduleConferenceId: string, request: QueryScheduleConfMinutesRequest): Promise<QueryScheduleConfMinutesResponse> {
2165
+ let runtime = new $Util.RuntimeOptions({ });
2166
+ let headers = new QueryScheduleConfMinutesHeaders({ });
2167
+ return await this.queryScheduleConfMinutesWithOptions(scheduleConferenceId, request, headers, runtime);
2168
+ }
2169
+
1759
2170
  /**
1760
2171
  * 查询上传视频播放信息
1761
2172
  *