@alicloud/cms20240330 7.0.1 → 7.1.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/dist/client.d.ts +54 -0
- package/dist/client.js +198 -0
- package/dist/client.js.map +1 -1
- package/dist/models/ListAlertRobotsRequest.d.ts +31 -0
- package/dist/models/ListAlertRobotsRequest.js +74 -0
- package/dist/models/ListAlertRobotsRequest.js.map +1 -0
- package/dist/models/ListAlertRobotsResponse.d.ts +19 -0
- package/dist/models/ListAlertRobotsResponse.js +69 -0
- package/dist/models/ListAlertRobotsResponse.js.map +1 -0
- package/dist/models/ListAlertRobotsResponseBody.d.ts +76 -0
- package/dist/models/ListAlertRobotsResponseBody.js +100 -0
- package/dist/models/ListAlertRobotsResponseBody.js.map +1 -0
- package/dist/models/ListAlertRobotsShrinkRequest.d.ts +31 -0
- package/dist/models/ListAlertRobotsShrinkRequest.js +68 -0
- package/dist/models/ListAlertRobotsShrinkRequest.js.map +1 -0
- package/dist/models/ListContactGroupsRequest.d.ts +30 -0
- package/dist/models/ListContactGroupsRequest.js +69 -0
- package/dist/models/ListContactGroupsRequest.js.map +1 -0
- package/dist/models/ListContactGroupsResponse.d.ts +19 -0
- package/dist/models/ListContactGroupsResponse.js +69 -0
- package/dist/models/ListContactGroupsResponse.js.map +1 -0
- package/dist/models/ListContactGroupsResponseBody.d.ts +61 -0
- package/dist/models/ListContactGroupsResponseBody.js +97 -0
- package/dist/models/ListContactGroupsResponseBody.js.map +1 -0
- package/dist/models/ListContactGroupsShrinkRequest.d.ts +30 -0
- package/dist/models/ListContactGroupsShrinkRequest.js +66 -0
- package/dist/models/ListContactGroupsShrinkRequest.js.map +1 -0
- package/dist/models/ListContactsRequest.d.ts +46 -0
- package/dist/models/ListContactsRequest.js +77 -0
- package/dist/models/ListContactsRequest.js.map +1 -0
- package/dist/models/ListContactsResponse.d.ts +19 -0
- package/dist/models/ListContactsResponse.js +69 -0
- package/dist/models/ListContactsResponse.js.map +1 -0
- package/dist/models/ListContactsResponseBody.d.ts +94 -0
- package/dist/models/ListContactsResponseBody.js +114 -0
- package/dist/models/ListContactsResponseBody.js.map +1 -0
- package/dist/models/ListContactsShrinkRequest.d.ts +46 -0
- package/dist/models/ListContactsShrinkRequest.js +74 -0
- package/dist/models/ListContactsShrinkRequest.js.map +1 -0
- package/dist/models/SearchMemoriesRequest.d.ts +5 -0
- package/dist/models/SearchMemoriesRequest.js +2 -0
- package/dist/models/SearchMemoriesRequest.js.map +1 -1
- package/dist/models/model.d.ts +15 -0
- package/dist/models/model.js +43 -13
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +229 -0
- package/src/models/ListAlertRobotsRequest.ts +60 -0
- package/src/models/ListAlertRobotsResponse.ts +40 -0
- package/src/models/ListAlertRobotsResponseBody.ts +122 -0
- package/src/models/ListAlertRobotsShrinkRequest.ts +54 -0
- package/src/models/ListContactGroupsRequest.ts +54 -0
- package/src/models/ListContactGroupsResponse.ts +40 -0
- package/src/models/ListContactGroupsResponseBody.ts +104 -0
- package/src/models/ListContactGroupsShrinkRequest.ts +51 -0
- package/src/models/ListContactsRequest.ts +78 -0
- package/src/models/ListContactsResponse.ts +40 -0
- package/src/models/ListContactsResponseBody.ts +152 -0
- package/src/models/ListContactsShrinkRequest.ts +75 -0
- package/src/models/SearchMemoriesRequest.ts +7 -0
- package/src/models/model.ts +15 -0
package/dist/client.d.ts
CHANGED
|
@@ -1604,6 +1604,24 @@ export default class Client extends OpenApi {
|
|
|
1604
1604
|
* @returns ListAlertActionsResponse
|
|
1605
1605
|
*/
|
|
1606
1606
|
listAlertActions(request: $_model.ListAlertActionsRequest): Promise<$_model.ListAlertActionsResponse>;
|
|
1607
|
+
/**
|
|
1608
|
+
* 查询机器人
|
|
1609
|
+
*
|
|
1610
|
+
* @param tmpReq - ListAlertRobotsRequest
|
|
1611
|
+
* @param headers - map
|
|
1612
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1613
|
+
* @returns ListAlertRobotsResponse
|
|
1614
|
+
*/
|
|
1615
|
+
listAlertRobotsWithOptions(tmpReq: $_model.ListAlertRobotsRequest, headers: {
|
|
1616
|
+
[key: string]: string;
|
|
1617
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListAlertRobotsResponse>;
|
|
1618
|
+
/**
|
|
1619
|
+
* 查询机器人
|
|
1620
|
+
*
|
|
1621
|
+
* @param request - ListAlertRobotsRequest
|
|
1622
|
+
* @returns ListAlertRobotsResponse
|
|
1623
|
+
*/
|
|
1624
|
+
listAlertRobots(request: $_model.ListAlertRobotsRequest): Promise<$_model.ListAlertRobotsResponse>;
|
|
1607
1625
|
/**
|
|
1608
1626
|
* 查询Webhook
|
|
1609
1627
|
*
|
|
@@ -1640,6 +1658,42 @@ export default class Client extends OpenApi {
|
|
|
1640
1658
|
* @returns ListBizTracesResponse
|
|
1641
1659
|
*/
|
|
1642
1660
|
listBizTraces(request: $_model.ListBizTracesRequest): Promise<$_model.ListBizTracesResponse>;
|
|
1661
|
+
/**
|
|
1662
|
+
* 查询联系人组
|
|
1663
|
+
*
|
|
1664
|
+
* @param tmpReq - ListContactGroupsRequest
|
|
1665
|
+
* @param headers - map
|
|
1666
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1667
|
+
* @returns ListContactGroupsResponse
|
|
1668
|
+
*/
|
|
1669
|
+
listContactGroupsWithOptions(tmpReq: $_model.ListContactGroupsRequest, headers: {
|
|
1670
|
+
[key: string]: string;
|
|
1671
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListContactGroupsResponse>;
|
|
1672
|
+
/**
|
|
1673
|
+
* 查询联系人组
|
|
1674
|
+
*
|
|
1675
|
+
* @param request - ListContactGroupsRequest
|
|
1676
|
+
* @returns ListContactGroupsResponse
|
|
1677
|
+
*/
|
|
1678
|
+
listContactGroups(request: $_model.ListContactGroupsRequest): Promise<$_model.ListContactGroupsResponse>;
|
|
1679
|
+
/**
|
|
1680
|
+
* 查询联系人
|
|
1681
|
+
*
|
|
1682
|
+
* @param tmpReq - ListContactsRequest
|
|
1683
|
+
* @param headers - map
|
|
1684
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1685
|
+
* @returns ListContactsResponse
|
|
1686
|
+
*/
|
|
1687
|
+
listContactsWithOptions(tmpReq: $_model.ListContactsRequest, headers: {
|
|
1688
|
+
[key: string]: string;
|
|
1689
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListContactsResponse>;
|
|
1690
|
+
/**
|
|
1691
|
+
* 查询联系人
|
|
1692
|
+
*
|
|
1693
|
+
* @param request - ListContactsRequest
|
|
1694
|
+
* @returns ListContactsResponse
|
|
1695
|
+
*/
|
|
1696
|
+
listContacts(request: $_model.ListContactsRequest): Promise<$_model.ListContactsResponse>;
|
|
1643
1697
|
/**
|
|
1644
1698
|
* 查询数据集列表
|
|
1645
1699
|
*
|
package/dist/client.js
CHANGED
|
@@ -4067,6 +4067,71 @@ class Client extends openapi_core_1.default {
|
|
|
4067
4067
|
let headers = {};
|
|
4068
4068
|
return await this.listAlertActionsWithOptions(request, headers, runtime);
|
|
4069
4069
|
}
|
|
4070
|
+
/**
|
|
4071
|
+
* 查询机器人
|
|
4072
|
+
*
|
|
4073
|
+
* @param tmpReq - ListAlertRobotsRequest
|
|
4074
|
+
* @param headers - map
|
|
4075
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4076
|
+
* @returns ListAlertRobotsResponse
|
|
4077
|
+
*/
|
|
4078
|
+
async listAlertRobotsWithOptions(tmpReq, headers, runtime) {
|
|
4079
|
+
tmpReq.validate();
|
|
4080
|
+
let request = new $_model.ListAlertRobotsShrinkRequest({});
|
|
4081
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
4082
|
+
if (!$dara.isNull(tmpReq.robotIds)) {
|
|
4083
|
+
request.robotIdsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.robotIds, "robotIds", "json");
|
|
4084
|
+
}
|
|
4085
|
+
if (!$dara.isNull(tmpReq.types)) {
|
|
4086
|
+
request.typesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.types, "types", "json");
|
|
4087
|
+
}
|
|
4088
|
+
let query = {};
|
|
4089
|
+
if (!$dara.isNull(request.name)) {
|
|
4090
|
+
query["name"] = request.name;
|
|
4091
|
+
}
|
|
4092
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
4093
|
+
query["pageNumber"] = request.pageNumber;
|
|
4094
|
+
}
|
|
4095
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
4096
|
+
query["pageSize"] = request.pageSize;
|
|
4097
|
+
}
|
|
4098
|
+
if (!$dara.isNull(request.robotIdsShrink)) {
|
|
4099
|
+
query["robotIds"] = request.robotIdsShrink;
|
|
4100
|
+
}
|
|
4101
|
+
if (!$dara.isNull(request.typesShrink)) {
|
|
4102
|
+
query["types"] = request.typesShrink;
|
|
4103
|
+
}
|
|
4104
|
+
if (!$dara.isNull(request.workspace)) {
|
|
4105
|
+
query["workspace"] = request.workspace;
|
|
4106
|
+
}
|
|
4107
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4108
|
+
headers: headers,
|
|
4109
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
4110
|
+
});
|
|
4111
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
4112
|
+
action: "ListAlertRobots",
|
|
4113
|
+
version: "2024-03-30",
|
|
4114
|
+
protocol: "HTTPS",
|
|
4115
|
+
pathname: `/robots`,
|
|
4116
|
+
method: "GET",
|
|
4117
|
+
authType: "AK",
|
|
4118
|
+
style: "ROA",
|
|
4119
|
+
reqBodyType: "json",
|
|
4120
|
+
bodyType: "json",
|
|
4121
|
+
});
|
|
4122
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListAlertRobotsResponse({}));
|
|
4123
|
+
}
|
|
4124
|
+
/**
|
|
4125
|
+
* 查询机器人
|
|
4126
|
+
*
|
|
4127
|
+
* @param request - ListAlertRobotsRequest
|
|
4128
|
+
* @returns ListAlertRobotsResponse
|
|
4129
|
+
*/
|
|
4130
|
+
async listAlertRobots(request) {
|
|
4131
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
4132
|
+
let headers = {};
|
|
4133
|
+
return await this.listAlertRobotsWithOptions(request, headers, runtime);
|
|
4134
|
+
}
|
|
4070
4135
|
/**
|
|
4071
4136
|
* 查询Webhook
|
|
4072
4137
|
*
|
|
@@ -4174,6 +4239,136 @@ class Client extends openapi_core_1.default {
|
|
|
4174
4239
|
let headers = {};
|
|
4175
4240
|
return await this.listBizTracesWithOptions(request, headers, runtime);
|
|
4176
4241
|
}
|
|
4242
|
+
/**
|
|
4243
|
+
* 查询联系人组
|
|
4244
|
+
*
|
|
4245
|
+
* @param tmpReq - ListContactGroupsRequest
|
|
4246
|
+
* @param headers - map
|
|
4247
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4248
|
+
* @returns ListContactGroupsResponse
|
|
4249
|
+
*/
|
|
4250
|
+
async listContactGroupsWithOptions(tmpReq, headers, runtime) {
|
|
4251
|
+
tmpReq.validate();
|
|
4252
|
+
let request = new $_model.ListContactGroupsShrinkRequest({});
|
|
4253
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
4254
|
+
if (!$dara.isNull(tmpReq.contactGroupIds)) {
|
|
4255
|
+
request.contactGroupIdsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.contactGroupIds, "contactGroupIds", "json");
|
|
4256
|
+
}
|
|
4257
|
+
let query = {};
|
|
4258
|
+
if (!$dara.isNull(request.contactGroupIdsShrink)) {
|
|
4259
|
+
query["contactGroupIds"] = request.contactGroupIdsShrink;
|
|
4260
|
+
}
|
|
4261
|
+
if (!$dara.isNull(request.name)) {
|
|
4262
|
+
query["name"] = request.name;
|
|
4263
|
+
}
|
|
4264
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
4265
|
+
query["pageNumber"] = request.pageNumber;
|
|
4266
|
+
}
|
|
4267
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
4268
|
+
query["pageSize"] = request.pageSize;
|
|
4269
|
+
}
|
|
4270
|
+
if (!$dara.isNull(request.workspace)) {
|
|
4271
|
+
query["workspace"] = request.workspace;
|
|
4272
|
+
}
|
|
4273
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4274
|
+
headers: headers,
|
|
4275
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
4276
|
+
});
|
|
4277
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
4278
|
+
action: "ListContactGroups",
|
|
4279
|
+
version: "2024-03-30",
|
|
4280
|
+
protocol: "HTTPS",
|
|
4281
|
+
pathname: `/contactGroups`,
|
|
4282
|
+
method: "GET",
|
|
4283
|
+
authType: "AK",
|
|
4284
|
+
style: "ROA",
|
|
4285
|
+
reqBodyType: "json",
|
|
4286
|
+
bodyType: "json",
|
|
4287
|
+
});
|
|
4288
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListContactGroupsResponse({}));
|
|
4289
|
+
}
|
|
4290
|
+
/**
|
|
4291
|
+
* 查询联系人组
|
|
4292
|
+
*
|
|
4293
|
+
* @param request - ListContactGroupsRequest
|
|
4294
|
+
* @returns ListContactGroupsResponse
|
|
4295
|
+
*/
|
|
4296
|
+
async listContactGroups(request) {
|
|
4297
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
4298
|
+
let headers = {};
|
|
4299
|
+
return await this.listContactGroupsWithOptions(request, headers, runtime);
|
|
4300
|
+
}
|
|
4301
|
+
/**
|
|
4302
|
+
* 查询联系人
|
|
4303
|
+
*
|
|
4304
|
+
* @param tmpReq - ListContactsRequest
|
|
4305
|
+
* @param headers - map
|
|
4306
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4307
|
+
* @returns ListContactsResponse
|
|
4308
|
+
*/
|
|
4309
|
+
async listContactsWithOptions(tmpReq, headers, runtime) {
|
|
4310
|
+
tmpReq.validate();
|
|
4311
|
+
let request = new $_model.ListContactsShrinkRequest({});
|
|
4312
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
4313
|
+
if (!$dara.isNull(tmpReq.contactIds)) {
|
|
4314
|
+
request.contactIdsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.contactIds, "contactIds", "json");
|
|
4315
|
+
}
|
|
4316
|
+
let query = {};
|
|
4317
|
+
if (!$dara.isNull(request.contactIdsShrink)) {
|
|
4318
|
+
query["contactIds"] = request.contactIdsShrink;
|
|
4319
|
+
}
|
|
4320
|
+
if (!$dara.isNull(request.email)) {
|
|
4321
|
+
query["email"] = request.email;
|
|
4322
|
+
}
|
|
4323
|
+
if (!$dara.isNull(request.groupId)) {
|
|
4324
|
+
query["groupId"] = request.groupId;
|
|
4325
|
+
}
|
|
4326
|
+
if (!$dara.isNull(request.name)) {
|
|
4327
|
+
query["name"] = request.name;
|
|
4328
|
+
}
|
|
4329
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
4330
|
+
query["pageNumber"] = request.pageNumber;
|
|
4331
|
+
}
|
|
4332
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
4333
|
+
query["pageSize"] = request.pageSize;
|
|
4334
|
+
}
|
|
4335
|
+
if (!$dara.isNull(request.phone)) {
|
|
4336
|
+
query["phone"] = request.phone;
|
|
4337
|
+
}
|
|
4338
|
+
if (!$dara.isNull(request.queryUngroupedContacts)) {
|
|
4339
|
+
query["queryUngroupedContacts"] = request.queryUngroupedContacts;
|
|
4340
|
+
}
|
|
4341
|
+
if (!$dara.isNull(request.workspace)) {
|
|
4342
|
+
query["workspace"] = request.workspace;
|
|
4343
|
+
}
|
|
4344
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4345
|
+
headers: headers,
|
|
4346
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
4347
|
+
});
|
|
4348
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
4349
|
+
action: "ListContacts",
|
|
4350
|
+
version: "2024-03-30",
|
|
4351
|
+
protocol: "HTTPS",
|
|
4352
|
+
pathname: `/contact`,
|
|
4353
|
+
method: "GET",
|
|
4354
|
+
authType: "AK",
|
|
4355
|
+
style: "ROA",
|
|
4356
|
+
reqBodyType: "json",
|
|
4357
|
+
bodyType: "json",
|
|
4358
|
+
});
|
|
4359
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListContactsResponse({}));
|
|
4360
|
+
}
|
|
4361
|
+
/**
|
|
4362
|
+
* 查询联系人
|
|
4363
|
+
*
|
|
4364
|
+
* @param request - ListContactsRequest
|
|
4365
|
+
* @returns ListContactsResponse
|
|
4366
|
+
*/
|
|
4367
|
+
async listContacts(request) {
|
|
4368
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
4369
|
+
let headers = {};
|
|
4370
|
+
return await this.listContactsWithOptions(request, headers, runtime);
|
|
4371
|
+
}
|
|
4177
4372
|
/**
|
|
4178
4373
|
* 查询数据集列表
|
|
4179
4374
|
*
|
|
@@ -5607,6 +5802,9 @@ class Client extends openapi_core_1.default {
|
|
|
5607
5802
|
if (!$dara.isNull(request.runId)) {
|
|
5608
5803
|
body["runId"] = request.runId;
|
|
5609
5804
|
}
|
|
5805
|
+
if (!$dara.isNull(request.searchType)) {
|
|
5806
|
+
body["searchType"] = request.searchType;
|
|
5807
|
+
}
|
|
5610
5808
|
if (!$dara.isNull(request.threshold)) {
|
|
5611
5809
|
body["threshold"] = request.threshold;
|
|
5612
5810
|
}
|