@alicloud/csas20230120 1.9.1 → 1.9.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/csas20230120",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@alicloud/tea-typescript": "^1.7.1",
23
23
  "@alicloud/tea-util": "^1.4.9",
24
- "@alicloud/openapi-client": "^0.4.11",
24
+ "@alicloud/openapi-client": "^0.4.12",
25
25
  "@alicloud/openapi-util": "^0.3.2",
26
26
  "@alicloud/endpoint-util": "^0.0.1"
27
27
  },
package/src/client.ts CHANGED
@@ -1313,6 +1313,7 @@ export class CreateWmBaseImageResponse extends $tea.Model {
1313
1313
  }
1314
1314
 
1315
1315
  export class CreateWmEmbedTaskRequest extends $tea.Model {
1316
+ csvControl?: CreateWmEmbedTaskRequestCsvControl;
1316
1317
  documentControl?: CreateWmEmbedTaskRequestDocumentControl;
1317
1318
  /**
1318
1319
  * @remarks
@@ -1375,6 +1376,7 @@ export class CreateWmEmbedTaskRequest extends $tea.Model {
1375
1376
  wmType?: string;
1376
1377
  static names(): { [key: string]: string } {
1377
1378
  return {
1379
+ csvControl: 'CsvControl',
1378
1380
  documentControl: 'DocumentControl',
1379
1381
  fileUrl: 'FileUrl',
1380
1382
  filename: 'Filename',
@@ -1391,6 +1393,7 @@ export class CreateWmEmbedTaskRequest extends $tea.Model {
1391
1393
 
1392
1394
  static types(): { [key: string]: any } {
1393
1395
  return {
1396
+ csvControl: CreateWmEmbedTaskRequestCsvControl,
1394
1397
  documentControl: CreateWmEmbedTaskRequestDocumentControl,
1395
1398
  fileUrl: 'string',
1396
1399
  filename: 'string',
@@ -1411,6 +1414,7 @@ export class CreateWmEmbedTaskRequest extends $tea.Model {
1411
1414
  }
1412
1415
 
1413
1416
  export class CreateWmEmbedTaskShrinkRequest extends $tea.Model {
1417
+ csvControlShrink?: string;
1414
1418
  documentControlShrink?: string;
1415
1419
  /**
1416
1420
  * @remarks
@@ -1473,6 +1477,7 @@ export class CreateWmEmbedTaskShrinkRequest extends $tea.Model {
1473
1477
  wmType?: string;
1474
1478
  static names(): { [key: string]: string } {
1475
1479
  return {
1480
+ csvControlShrink: 'CsvControl',
1476
1481
  documentControlShrink: 'DocumentControl',
1477
1482
  fileUrl: 'FileUrl',
1478
1483
  filename: 'Filename',
@@ -1489,6 +1494,7 @@ export class CreateWmEmbedTaskShrinkRequest extends $tea.Model {
1489
1494
 
1490
1495
  static types(): { [key: string]: any } {
1491
1496
  return {
1497
+ csvControlShrink: 'string',
1492
1498
  documentControlShrink: 'string',
1493
1499
  fileUrl: 'string',
1494
1500
  filename: 'string',
@@ -1560,6 +1566,7 @@ export class CreateWmEmbedTaskResponse extends $tea.Model {
1560
1566
  }
1561
1567
 
1562
1568
  export class CreateWmExtractTaskRequest extends $tea.Model {
1569
+ csvControl?: CreateWmExtractTaskRequestCsvControl;
1563
1570
  /**
1564
1571
  * @example
1565
1572
  * false
@@ -1606,6 +1613,7 @@ export class CreateWmExtractTaskRequest extends $tea.Model {
1606
1613
  wmType?: string;
1607
1614
  static names(): { [key: string]: string } {
1608
1615
  return {
1616
+ csvControl: 'CsvControl',
1609
1617
  documentIsCapture: 'DocumentIsCapture',
1610
1618
  fileUrl: 'FileUrl',
1611
1619
  filename: 'Filename',
@@ -1618,6 +1626,84 @@ export class CreateWmExtractTaskRequest extends $tea.Model {
1618
1626
 
1619
1627
  static types(): { [key: string]: any } {
1620
1628
  return {
1629
+ csvControl: CreateWmExtractTaskRequestCsvControl,
1630
+ documentIsCapture: 'boolean',
1631
+ fileUrl: 'string',
1632
+ filename: 'string',
1633
+ videoIsLong: 'boolean',
1634
+ videoSpeed: 'string',
1635
+ wmInfoSize: 'number',
1636
+ wmType: 'string',
1637
+ };
1638
+ }
1639
+
1640
+ constructor(map?: { [key: string]: any }) {
1641
+ super(map);
1642
+ }
1643
+ }
1644
+
1645
+ export class CreateWmExtractTaskShrinkRequest extends $tea.Model {
1646
+ csvControlShrink?: string;
1647
+ /**
1648
+ * @example
1649
+ * false
1650
+ */
1651
+ documentIsCapture?: boolean;
1652
+ /**
1653
+ * @remarks
1654
+ * This parameter is required.
1655
+ *
1656
+ * @example
1657
+ * https://example.com/test-****.pdf
1658
+ */
1659
+ fileUrl?: string;
1660
+ /**
1661
+ * @remarks
1662
+ * This parameter is required.
1663
+ *
1664
+ * @example
1665
+ * test-****.pdf
1666
+ */
1667
+ filename?: string;
1668
+ /**
1669
+ * @example
1670
+ * false
1671
+ */
1672
+ videoIsLong?: boolean;
1673
+ /**
1674
+ * @example
1675
+ * 1
1676
+ */
1677
+ videoSpeed?: string;
1678
+ /**
1679
+ * @example
1680
+ * 32
1681
+ */
1682
+ wmInfoSize?: number;
1683
+ /**
1684
+ * @remarks
1685
+ * This parameter is required.
1686
+ *
1687
+ * @example
1688
+ * PureDocument
1689
+ */
1690
+ wmType?: string;
1691
+ static names(): { [key: string]: string } {
1692
+ return {
1693
+ csvControlShrink: 'CsvControl',
1694
+ documentIsCapture: 'DocumentIsCapture',
1695
+ fileUrl: 'FileUrl',
1696
+ filename: 'Filename',
1697
+ videoIsLong: 'VideoIsLong',
1698
+ videoSpeed: 'VideoSpeed',
1699
+ wmInfoSize: 'WmInfoSize',
1700
+ wmType: 'WmType',
1701
+ };
1702
+ }
1703
+
1704
+ static types(): { [key: string]: any } {
1705
+ return {
1706
+ csvControlShrink: 'string',
1621
1707
  documentIsCapture: 'boolean',
1622
1708
  fileUrl: 'string',
1623
1709
  filename: 'string',
@@ -8569,6 +8655,31 @@ export class CreateWmBaseImageResponseBodyData extends $tea.Model {
8569
8655
  }
8570
8656
  }
8571
8657
 
8658
+ export class CreateWmEmbedTaskRequestCsvControl extends $tea.Model {
8659
+ embedColumn?: number;
8660
+ embedPrecision?: number;
8661
+ method?: string;
8662
+ static names(): { [key: string]: string } {
8663
+ return {
8664
+ embedColumn: 'EmbedColumn',
8665
+ embedPrecision: 'EmbedPrecision',
8666
+ method: 'Method',
8667
+ };
8668
+ }
8669
+
8670
+ static types(): { [key: string]: any } {
8671
+ return {
8672
+ embedColumn: 'number',
8673
+ embedPrecision: 'number',
8674
+ method: 'string',
8675
+ };
8676
+ }
8677
+
8678
+ constructor(map?: { [key: string]: any }) {
8679
+ super(map);
8680
+ }
8681
+ }
8682
+
8572
8683
  export class CreateWmEmbedTaskRequestDocumentControlBackgroundControlBgInvisibleControl extends $tea.Model {
8573
8684
  /**
8574
8685
  * @example
@@ -8770,6 +8881,31 @@ export class CreateWmEmbedTaskResponseBodyData extends $tea.Model {
8770
8881
  }
8771
8882
  }
8772
8883
 
8884
+ export class CreateWmExtractTaskRequestCsvControl extends $tea.Model {
8885
+ embedColumn?: number;
8886
+ embedPrecision?: number;
8887
+ method?: string;
8888
+ static names(): { [key: string]: string } {
8889
+ return {
8890
+ embedColumn: 'EmbedColumn',
8891
+ embedPrecision: 'EmbedPrecision',
8892
+ method: 'Method',
8893
+ };
8894
+ }
8895
+
8896
+ static types(): { [key: string]: any } {
8897
+ return {
8898
+ embedColumn: 'number',
8899
+ embedPrecision: 'number',
8900
+ method: 'string',
8901
+ };
8902
+ }
8903
+
8904
+ constructor(map?: { [key: string]: any }) {
8905
+ super(map);
8906
+ }
8907
+ }
8908
+
8773
8909
  export class CreateWmExtractTaskResponseBodyData extends $tea.Model {
8774
8910
  /**
8775
8911
  * @example
@@ -14410,10 +14546,19 @@ export default class Client extends OpenApi {
14410
14546
  Util.validateModel(tmpReq);
14411
14547
  let request = new CreateWmEmbedTaskShrinkRequest({ });
14412
14548
  OpenApiUtil.convert(tmpReq, request);
14549
+ if (!Util.isUnset(tmpReq.csvControl)) {
14550
+ request.csvControlShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.csvControl, "CsvControl", "json");
14551
+ }
14552
+
14413
14553
  if (!Util.isUnset(tmpReq.documentControl)) {
14414
14554
  request.documentControlShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.documentControl, "DocumentControl", "json");
14415
14555
  }
14416
14556
 
14557
+ let query = { };
14558
+ if (!Util.isUnset(request.csvControlShrink)) {
14559
+ query["CsvControl"] = request.csvControlShrink;
14560
+ }
14561
+
14417
14562
  let body : {[key: string ]: any} = { };
14418
14563
  if (!Util.isUnset(request.documentControlShrink)) {
14419
14564
  body["DocumentControl"] = request.documentControlShrink;
@@ -14460,6 +14605,7 @@ export default class Client extends OpenApi {
14460
14605
  }
14461
14606
 
14462
14607
  let req = new $OpenApi.OpenApiRequest({
14608
+ query: OpenApiUtil.query(query),
14463
14609
  body: OpenApiUtil.parseToMap(body),
14464
14610
  });
14465
14611
  let params = new $OpenApi.Params({
@@ -14490,12 +14636,23 @@ export default class Client extends OpenApi {
14490
14636
  /**
14491
14637
  * 创建文件水印提取任务
14492
14638
  *
14493
- * @param request - CreateWmExtractTaskRequest
14639
+ * @param tmpReq - CreateWmExtractTaskRequest
14494
14640
  * @param runtime - runtime options for this request RuntimeOptions
14495
14641
  * @returns CreateWmExtractTaskResponse
14496
14642
  */
14497
- async createWmExtractTaskWithOptions(request: CreateWmExtractTaskRequest, runtime: $Util.RuntimeOptions): Promise<CreateWmExtractTaskResponse> {
14498
- Util.validateModel(request);
14643
+ async createWmExtractTaskWithOptions(tmpReq: CreateWmExtractTaskRequest, runtime: $Util.RuntimeOptions): Promise<CreateWmExtractTaskResponse> {
14644
+ Util.validateModel(tmpReq);
14645
+ let request = new CreateWmExtractTaskShrinkRequest({ });
14646
+ OpenApiUtil.convert(tmpReq, request);
14647
+ if (!Util.isUnset(tmpReq.csvControl)) {
14648
+ request.csvControlShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.csvControl, "CsvControl", "json");
14649
+ }
14650
+
14651
+ let query = { };
14652
+ if (!Util.isUnset(request.csvControlShrink)) {
14653
+ query["CsvControl"] = request.csvControlShrink;
14654
+ }
14655
+
14499
14656
  let body : {[key: string ]: any} = { };
14500
14657
  if (!Util.isUnset(request.documentIsCapture)) {
14501
14658
  body["DocumentIsCapture"] = request.documentIsCapture;
@@ -14526,6 +14683,7 @@ export default class Client extends OpenApi {
14526
14683
  }
14527
14684
 
14528
14685
  let req = new $OpenApi.OpenApiRequest({
14686
+ query: OpenApiUtil.query(query),
14529
14687
  body: OpenApiUtil.parseToMap(body),
14530
14688
  });
14531
14689
  let params = new $OpenApi.Params({