@alicloud/apig20240327 8.0.0 → 9.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 +24 -6
- package/dist/client.js +66 -6
- package/dist/client.js.map +1 -1
- package/dist/models/AddGatewayQuotaRuleRequest.d.ts +7 -0
- package/dist/models/AddGatewayQuotaRuleRequest.js +2 -0
- package/dist/models/AddGatewayQuotaRuleRequest.js.map +1 -1
- package/dist/models/AddGatewayQuotaRuleResponseBody.d.ts +3 -1
- package/dist/models/AddGatewayQuotaRuleResponseBody.js +5 -1
- package/dist/models/AddGatewayQuotaRuleResponseBody.js.map +1 -1
- package/dist/models/DeleteDomainResponseBody.d.ts +3 -3
- package/dist/models/GetConsumerResponseBody.d.ts +14 -44
- package/dist/models/GetConsumerResponseBody.js.map +1 -1
- package/dist/models/GetDomainResponseBody.d.ts +5 -4
- package/dist/models/GetDomainResponseBody.js.map +1 -1
- package/dist/models/GetGatewayQuotaRuleRequest.d.ts +4 -0
- package/dist/models/GetGatewayQuotaRuleRequest.js.map +1 -1
- package/dist/models/GetGatewayQuotaRuleResponseBody.d.ts +15 -0
- package/dist/models/GetGatewayQuotaRuleResponseBody.js +27 -1
- package/dist/models/GetGatewayQuotaRuleResponseBody.js.map +1 -1
- package/dist/models/GetMcpServerResponseBody.d.ts +57 -46
- package/dist/models/GetMcpServerResponseBody.js.map +1 -1
- package/dist/models/JwtIdentityConfig.d.ts +45 -13
- package/dist/models/JwtIdentityConfig.js +31 -1
- package/dist/models/JwtIdentityConfig.js.map +1 -1
- package/dist/models/ListConsumerQuotaRulesRequest.d.ts +33 -0
- package/dist/models/ListConsumerQuotaRulesRequest.js +64 -0
- package/dist/models/ListConsumerQuotaRulesRequest.js.map +1 -0
- package/dist/models/ListConsumerQuotaRulesResponse.d.ts +19 -0
- package/dist/models/ListConsumerQuotaRulesResponse.js +69 -0
- package/dist/models/ListConsumerQuotaRulesResponse.js.map +1 -0
- package/dist/models/ListConsumerQuotaRulesResponseBody.d.ts +132 -0
- package/dist/models/ListConsumerQuotaRulesResponseBody.js +134 -0
- package/dist/models/ListConsumerQuotaRulesResponseBody.js.map +1 -0
- package/dist/models/ResetGatewayQuotaRuleRequest.d.ts +2 -3
- package/dist/models/ResetGatewayQuotaRuleRequest.js +4 -0
- package/dist/models/ResetGatewayQuotaRuleRequest.js.map +1 -1
- package/dist/models/ResetGatewayQuotaRuleResponseBody.d.ts +2 -0
- package/dist/models/ResetGatewayQuotaRuleResponseBody.js +4 -0
- package/dist/models/ResetGatewayQuotaRuleResponseBody.js.map +1 -1
- package/dist/models/UpdateGatewayQuotaRuleRequest.d.ts +2 -6
- package/dist/models/UpdateGatewayQuotaRuleRequest.js.map +1 -1
- package/dist/models/UpdateGatewayQuotaRuleResponseBody.d.ts +2 -0
- package/dist/models/UpdateGatewayQuotaRuleResponseBody.js +4 -0
- package/dist/models/UpdateGatewayQuotaRuleResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +7 -0
- package/dist/models/model.js +35 -20
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +75 -6
- package/src/models/AddGatewayQuotaRuleRequest.ts +9 -0
- package/src/models/AddGatewayQuotaRuleResponseBody.ts +8 -2
- package/src/models/DeleteDomainResponseBody.ts +3 -3
- package/src/models/GetConsumerResponseBody.ts +14 -44
- package/src/models/GetDomainResponseBody.ts +5 -4
- package/src/models/GetGatewayQuotaRuleRequest.ts +4 -0
- package/src/models/GetGatewayQuotaRuleResponseBody.ts +32 -0
- package/src/models/GetMcpServerResponseBody.ts +57 -46
- package/src/models/JwtIdentityConfig.ts +66 -13
- package/src/models/ListConsumerQuotaRulesRequest.ts +52 -0
- package/src/models/ListConsumerQuotaRulesResponse.ts +40 -0
- package/src/models/ListConsumerQuotaRulesResponseBody.ts +203 -0
- package/src/models/ResetGatewayQuotaRuleRequest.ts +6 -3
- package/src/models/ResetGatewayQuotaRuleResponseBody.ts +6 -0
- package/src/models/UpdateGatewayQuotaRuleRequest.ts +2 -6
- package/src/models/UpdateGatewayQuotaRuleResponseBody.ts +6 -0
- package/src/models/model.ts +7 -0
package/dist/client.d.ts
CHANGED
|
@@ -798,7 +798,7 @@ export default class Client extends OpenApi {
|
|
|
798
798
|
*/
|
|
799
799
|
exportHttpApi(httpApiId: string, request: $_model.ExportHttpApiRequest): Promise<$_model.ExportHttpApiResponse>;
|
|
800
800
|
/**
|
|
801
|
-
*
|
|
801
|
+
* Retrieves an API consumer.
|
|
802
802
|
*
|
|
803
803
|
* @param headers - map
|
|
804
804
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -808,7 +808,7 @@ export default class Client extends OpenApi {
|
|
|
808
808
|
[key: string]: string;
|
|
809
809
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.GetConsumerResponse>;
|
|
810
810
|
/**
|
|
811
|
-
*
|
|
811
|
+
* Retrieves an API consumer.
|
|
812
812
|
* @returns GetConsumerResponse
|
|
813
813
|
*/
|
|
814
814
|
getConsumer(consumerId: string): Promise<$_model.GetConsumerResponse>;
|
|
@@ -994,10 +994,10 @@ export default class Client extends OpenApi {
|
|
|
994
994
|
*/
|
|
995
995
|
getHttpApiRoute(httpApiId: string, routeId: string): Promise<$_model.GetHttpApiRouteResponse>;
|
|
996
996
|
/**
|
|
997
|
-
* Get
|
|
997
|
+
* Get MCP Server.
|
|
998
998
|
*
|
|
999
999
|
* @remarks
|
|
1000
|
-
*
|
|
1000
|
+
* The API supports creating multiple services.
|
|
1001
1001
|
*
|
|
1002
1002
|
* @param headers - map
|
|
1003
1003
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1007,10 +1007,10 @@ export default class Client extends OpenApi {
|
|
|
1007
1007
|
[key: string]: string;
|
|
1008
1008
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.GetMcpServerResponse>;
|
|
1009
1009
|
/**
|
|
1010
|
-
* Get
|
|
1010
|
+
* Get MCP Server.
|
|
1011
1011
|
*
|
|
1012
1012
|
* @remarks
|
|
1013
|
-
*
|
|
1013
|
+
* The API supports creating multiple services.
|
|
1014
1014
|
* @returns GetMcpServerResponse
|
|
1015
1015
|
*/
|
|
1016
1016
|
getMcpServer(mcpServerId: string): Promise<$_model.GetMcpServerResponse>;
|
|
@@ -1221,6 +1221,24 @@ export default class Client extends OpenApi {
|
|
|
1221
1221
|
* @returns ListConsumerAuthorizationRulesResponse
|
|
1222
1222
|
*/
|
|
1223
1223
|
listConsumerAuthorizationRules(consumerId: string, request: $_model.ListConsumerAuthorizationRulesRequest): Promise<$_model.ListConsumerAuthorizationRulesResponse>;
|
|
1224
|
+
/**
|
|
1225
|
+
* 查询消费者配额限流规则列表
|
|
1226
|
+
*
|
|
1227
|
+
* @param request - ListConsumerQuotaRulesRequest
|
|
1228
|
+
* @param headers - map
|
|
1229
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1230
|
+
* @returns ListConsumerQuotaRulesResponse
|
|
1231
|
+
*/
|
|
1232
|
+
listConsumerQuotaRulesWithOptions(consumerId: string, request: $_model.ListConsumerQuotaRulesRequest, headers: {
|
|
1233
|
+
[key: string]: string;
|
|
1234
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListConsumerQuotaRulesResponse>;
|
|
1235
|
+
/**
|
|
1236
|
+
* 查询消费者配额限流规则列表
|
|
1237
|
+
*
|
|
1238
|
+
* @param request - ListConsumerQuotaRulesRequest
|
|
1239
|
+
* @returns ListConsumerQuotaRulesResponse
|
|
1240
|
+
*/
|
|
1241
|
+
listConsumerQuotaRules(consumerId: string, request: $_model.ListConsumerQuotaRulesRequest): Promise<$_model.ListConsumerQuotaRulesResponse>;
|
|
1224
1242
|
/**
|
|
1225
1243
|
* Queries a list of consumers.
|
|
1226
1244
|
*
|
package/dist/client.js
CHANGED
|
@@ -125,6 +125,9 @@ class Client extends openapi_core_1.default {
|
|
|
125
125
|
if (!$dara.isNull(request.overwrite)) {
|
|
126
126
|
body["overwrite"] = request.overwrite;
|
|
127
127
|
}
|
|
128
|
+
if (!$dara.isNull(request.periodMultiplier)) {
|
|
129
|
+
body["periodMultiplier"] = request.periodMultiplier;
|
|
130
|
+
}
|
|
128
131
|
if (!$dara.isNull(request.periodType)) {
|
|
129
132
|
body["periodType"] = request.periodType;
|
|
130
133
|
}
|
|
@@ -2218,7 +2221,7 @@ class Client extends openapi_core_1.default {
|
|
|
2218
2221
|
return await this.exportHttpApiWithOptions(httpApiId, request, headers, runtime);
|
|
2219
2222
|
}
|
|
2220
2223
|
/**
|
|
2221
|
-
*
|
|
2224
|
+
* Retrieves an API consumer.
|
|
2222
2225
|
*
|
|
2223
2226
|
* @param headers - map
|
|
2224
2227
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2242,7 +2245,7 @@ class Client extends openapi_core_1.default {
|
|
|
2242
2245
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetConsumerResponse({}));
|
|
2243
2246
|
}
|
|
2244
2247
|
/**
|
|
2245
|
-
*
|
|
2248
|
+
* Retrieves an API consumer.
|
|
2246
2249
|
* @returns GetConsumerResponse
|
|
2247
2250
|
*/
|
|
2248
2251
|
async getConsumer(consumerId) {
|
|
@@ -2684,10 +2687,10 @@ class Client extends openapi_core_1.default {
|
|
|
2684
2687
|
return await this.getHttpApiRouteWithOptions(httpApiId, routeId, headers, runtime);
|
|
2685
2688
|
}
|
|
2686
2689
|
/**
|
|
2687
|
-
* Get
|
|
2690
|
+
* Get MCP Server.
|
|
2688
2691
|
*
|
|
2689
2692
|
* @remarks
|
|
2690
|
-
*
|
|
2693
|
+
* The API supports creating multiple services.
|
|
2691
2694
|
*
|
|
2692
2695
|
* @param headers - map
|
|
2693
2696
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2711,10 +2714,10 @@ class Client extends openapi_core_1.default {
|
|
|
2711
2714
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetMcpServerResponse({}));
|
|
2712
2715
|
}
|
|
2713
2716
|
/**
|
|
2714
|
-
* Get
|
|
2717
|
+
* Get MCP Server.
|
|
2715
2718
|
*
|
|
2716
2719
|
* @remarks
|
|
2717
|
-
*
|
|
2720
|
+
* The API supports creating multiple services.
|
|
2718
2721
|
* @returns GetMcpServerResponse
|
|
2719
2722
|
*/
|
|
2720
2723
|
async getMcpServer(mcpServerId) {
|
|
@@ -3223,6 +3226,57 @@ class Client extends openapi_core_1.default {
|
|
|
3223
3226
|
let headers = {};
|
|
3224
3227
|
return await this.listConsumerAuthorizationRulesWithOptions(consumerId, request, headers, runtime);
|
|
3225
3228
|
}
|
|
3229
|
+
/**
|
|
3230
|
+
* 查询消费者配额限流规则列表
|
|
3231
|
+
*
|
|
3232
|
+
* @param request - ListConsumerQuotaRulesRequest
|
|
3233
|
+
* @param headers - map
|
|
3234
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3235
|
+
* @returns ListConsumerQuotaRulesResponse
|
|
3236
|
+
*/
|
|
3237
|
+
async listConsumerQuotaRulesWithOptions(consumerId, request, headers, runtime) {
|
|
3238
|
+
request.validate();
|
|
3239
|
+
let query = {};
|
|
3240
|
+
if (!$dara.isNull(request.gatewayId)) {
|
|
3241
|
+
query["gatewayId"] = request.gatewayId;
|
|
3242
|
+
}
|
|
3243
|
+
if (!$dara.isNull(request.keyword)) {
|
|
3244
|
+
query["keyword"] = request.keyword;
|
|
3245
|
+
}
|
|
3246
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
3247
|
+
query["pageNumber"] = request.pageNumber;
|
|
3248
|
+
}
|
|
3249
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
3250
|
+
query["pageSize"] = request.pageSize;
|
|
3251
|
+
}
|
|
3252
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3253
|
+
headers: headers,
|
|
3254
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
3255
|
+
});
|
|
3256
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
3257
|
+
action: "ListConsumerQuotaRules",
|
|
3258
|
+
version: "2024-03-27",
|
|
3259
|
+
protocol: "HTTPS",
|
|
3260
|
+
pathname: `/v1/consumers/${$dara.URL.percentEncode(consumerId)}/quota-rules`,
|
|
3261
|
+
method: "GET",
|
|
3262
|
+
authType: "AK",
|
|
3263
|
+
style: "ROA",
|
|
3264
|
+
reqBodyType: "json",
|
|
3265
|
+
bodyType: "json",
|
|
3266
|
+
});
|
|
3267
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListConsumerQuotaRulesResponse({}));
|
|
3268
|
+
}
|
|
3269
|
+
/**
|
|
3270
|
+
* 查询消费者配额限流规则列表
|
|
3271
|
+
*
|
|
3272
|
+
* @param request - ListConsumerQuotaRulesRequest
|
|
3273
|
+
* @returns ListConsumerQuotaRulesResponse
|
|
3274
|
+
*/
|
|
3275
|
+
async listConsumerQuotaRules(consumerId, request) {
|
|
3276
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
3277
|
+
let headers = {};
|
|
3278
|
+
return await this.listConsumerQuotaRulesWithOptions(consumerId, request, headers, runtime);
|
|
3279
|
+
}
|
|
3226
3280
|
/**
|
|
3227
3281
|
* Queries a list of consumers.
|
|
3228
3282
|
*
|
|
@@ -4659,6 +4713,9 @@ class Client extends openapi_core_1.default {
|
|
|
4659
4713
|
if (!$dara.isNull(request.overwrite)) {
|
|
4660
4714
|
body["overwrite"] = request.overwrite;
|
|
4661
4715
|
}
|
|
4716
|
+
if (!$dara.isNull(request.periodMultiplier)) {
|
|
4717
|
+
body["periodMultiplier"] = request.periodMultiplier;
|
|
4718
|
+
}
|
|
4662
4719
|
if (!$dara.isNull(request.periodType)) {
|
|
4663
4720
|
body["periodType"] = request.periodType;
|
|
4664
4721
|
}
|
|
@@ -4668,6 +4725,9 @@ class Client extends openapi_core_1.default {
|
|
|
4668
4725
|
if (!$dara.isNull(request.timezone)) {
|
|
4669
4726
|
body["timezone"] = request.timezone;
|
|
4670
4727
|
}
|
|
4728
|
+
if (!$dara.isNull(request.windowAlignment)) {
|
|
4729
|
+
body["windowAlignment"] = request.windowAlignment;
|
|
4730
|
+
}
|
|
4671
4731
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4672
4732
|
headers: headers,
|
|
4673
4733
|
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|