@alicloud/bailiancontrol20240816 1.0.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.
Files changed (35) hide show
  1. package/LICENSE +13 -0
  2. package/README.md +25 -0
  3. package/dist/client.d.ts +47 -0
  4. package/dist/client.js +168 -0
  5. package/dist/client.js.map +1 -0
  6. package/dist/models/GetApiKeyRequest.d.ts +14 -0
  7. package/dist/models/GetApiKeyRequest.js +58 -0
  8. package/dist/models/GetApiKeyRequest.js.map +1 -0
  9. package/dist/models/GetApiKeyResponse.d.ts +19 -0
  10. package/dist/models/GetApiKeyResponse.js +69 -0
  11. package/dist/models/GetApiKeyResponse.js.map +1 -0
  12. package/dist/models/GetApiKeyResponseBody.d.ts +97 -0
  13. package/dist/models/GetApiKeyResponseBody.js +219 -0
  14. package/dist/models/GetApiKeyResponseBody.js.map +1 -0
  15. package/dist/models/ListApiKeysRequest.d.ts +20 -0
  16. package/dist/models/ListApiKeysRequest.js +70 -0
  17. package/dist/models/ListApiKeysRequest.js.map +1 -0
  18. package/dist/models/ListApiKeysResponse.d.ts +19 -0
  19. package/dist/models/ListApiKeysResponse.js +69 -0
  20. package/dist/models/ListApiKeysResponse.js.map +1 -0
  21. package/dist/models/ListApiKeysResponseBody.d.ts +54 -0
  22. package/dist/models/ListApiKeysResponseBody.js +118 -0
  23. package/dist/models/ListApiKeysResponseBody.js.map +1 -0
  24. package/dist/models/model.d.ts +11 -0
  25. package/dist/models/model.js +26 -0
  26. package/dist/models/model.js.map +1 -0
  27. package/package.json +29 -0
  28. package/src/client.ts +146 -0
  29. package/src/models/GetApiKeyRequest.ts +27 -0
  30. package/src/models/GetApiKeyResponse.ts +40 -0
  31. package/src/models/GetApiKeyResponseBody.ts +233 -0
  32. package/src/models/ListApiKeysRequest.ts +45 -0
  33. package/src/models/ListApiKeysResponse.ts +40 -0
  34. package/src/models/ListApiKeysResponseBody.ts +118 -0
  35. package/src/models/model.ts +11 -0
package/LICENSE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,25 @@
1
+ English | [简体中文](README-CN.md)
2
+ ![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg)
3
+
4
+ # Alibaba Cloud BailianControl SDK for NodeJS
5
+
6
+ ## Installation
7
+ If you use `npm` to manage your dependence, you can use the following command:
8
+
9
+ ```sh
10
+ npm install @alicloud/bailiancontrol20240816 -S
11
+ ```
12
+
13
+ ## Issues
14
+ [Opening an Issue](https://github.com/aliyun/alibabacloud-typescript-sdk/issues/new), Issues not conforming to the guidelines may be closed immediately.
15
+
16
+ ## Usage
17
+ [Usage Document](https://github.com/aliyun/alibabacloud-typescript-sdk/blob/master/docs/Usage-EN.md#quick-examples)
18
+
19
+ ## References
20
+ * [Latest Release](https://github.com/aliyun/alibabacloud-typescript-sdk/)
21
+
22
+ ## License
23
+ [Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
24
+
25
+ Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
@@ -0,0 +1,47 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ import OpenApi from '@alicloud/openapi-core';
3
+ import { $OpenApiUtil } from '@alicloud/openapi-core';
4
+ import * as $_model from './models/model';
5
+ export * from './models/model';
6
+ export default class Client extends OpenApi {
7
+ constructor(config: $OpenApiUtil.Config);
8
+ getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
9
+ [key: string]: string;
10
+ }, endpoint: string): string;
11
+ /**
12
+ * 查询 apiKey
13
+ *
14
+ * @param request - GetApiKeyRequest
15
+ * @param headers - map
16
+ * @param runtime - runtime options for this request RuntimeOptions
17
+ * @returns GetApiKeyResponse
18
+ */
19
+ getApiKeyWithOptions(request: $_model.GetApiKeyRequest, headers: {
20
+ [key: string]: string;
21
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.GetApiKeyResponse>;
22
+ /**
23
+ * 查询 apiKey
24
+ *
25
+ * @param request - GetApiKeyRequest
26
+ * @returns GetApiKeyResponse
27
+ */
28
+ getApiKey(request: $_model.GetApiKeyRequest): Promise<$_model.GetApiKeyResponse>;
29
+ /**
30
+ * 获取ApiKey列表
31
+ *
32
+ * @param request - ListApiKeysRequest
33
+ * @param headers - map
34
+ * @param runtime - runtime options for this request RuntimeOptions
35
+ * @returns ListApiKeysResponse
36
+ */
37
+ listApiKeysWithOptions(request: $_model.ListApiKeysRequest, headers: {
38
+ [key: string]: string;
39
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.ListApiKeysResponse>;
40
+ /**
41
+ * 获取ApiKey列表
42
+ *
43
+ * @param request - ListApiKeysRequest
44
+ * @returns ListApiKeysResponse
45
+ */
46
+ listApiKeys(request: $_model.ListApiKeysRequest): Promise<$_model.ListApiKeysResponse>;
47
+ }
package/dist/client.js ADDED
@@ -0,0 +1,168 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
+ var __importDefault = (this && this.__importDefault) || function (mod) {
39
+ return (mod && mod.__esModule) ? mod : { "default": mod };
40
+ };
41
+ Object.defineProperty(exports, "__esModule", { value: true });
42
+ // This file is auto-generated, don't edit it
43
+ const $dara = __importStar(require("@darabonba/typescript"));
44
+ const openapi_core_1 = __importDefault(require("@alicloud/openapi-core"));
45
+ const openapi_core_2 = require("@alicloud/openapi-core");
46
+ const $_model = __importStar(require("./models/model"));
47
+ __exportStar(require("./models/model"), exports);
48
+ class Client extends openapi_core_1.default {
49
+ constructor(config) {
50
+ super(config);
51
+ this._endpointRule = "";
52
+ this.checkConfig(config);
53
+ this._endpoint = this.getEndpoint("bailiancontrol", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
54
+ }
55
+ getEndpoint(productId, regionId, endpointRule, network, suffix, endpointMap, endpoint) {
56
+ if (!$dara.isNull(endpoint)) {
57
+ return endpoint;
58
+ }
59
+ if (!$dara.isNull(endpointMap) && !$dara.isNull(endpointMap[regionId])) {
60
+ return endpointMap[regionId];
61
+ }
62
+ return openapi_core_2.OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
63
+ }
64
+ /**
65
+ * 查询 apiKey
66
+ *
67
+ * @param request - GetApiKeyRequest
68
+ * @param headers - map
69
+ * @param runtime - runtime options for this request RuntimeOptions
70
+ * @returns GetApiKeyResponse
71
+ */
72
+ async getApiKeyWithOptions(request, headers, runtime) {
73
+ request.validate();
74
+ let query = {};
75
+ if (!$dara.isNull(request.apiKeyId)) {
76
+ query["apiKeyId"] = request.apiKeyId;
77
+ }
78
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
79
+ headers: headers,
80
+ query: openapi_core_2.OpenApiUtil.query(query),
81
+ });
82
+ let params = new openapi_core_2.$OpenApiUtil.Params({
83
+ action: "GetApiKey",
84
+ version: "2024-08-16",
85
+ protocol: "HTTPS",
86
+ pathname: `/bailianControl/apiKey/getApiKey`,
87
+ method: "GET",
88
+ authType: "AK",
89
+ style: "ROA",
90
+ reqBodyType: "json",
91
+ bodyType: "json",
92
+ });
93
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetApiKeyResponse({}));
94
+ }
95
+ /**
96
+ * 查询 apiKey
97
+ *
98
+ * @param request - GetApiKeyRequest
99
+ * @returns GetApiKeyResponse
100
+ */
101
+ async getApiKey(request) {
102
+ let runtime = new $dara.RuntimeOptions({});
103
+ let headers = {};
104
+ return await this.getApiKeyWithOptions(request, headers, runtime);
105
+ }
106
+ /**
107
+ * 获取ApiKey列表
108
+ *
109
+ * @param request - ListApiKeysRequest
110
+ * @param headers - map
111
+ * @param runtime - runtime options for this request RuntimeOptions
112
+ * @returns ListApiKeysResponse
113
+ */
114
+ async listApiKeysWithOptions(request, headers, runtime) {
115
+ request.validate();
116
+ let query = {};
117
+ if (!$dara.isNull(request.apiKeyId)) {
118
+ query["apiKeyId"] = request.apiKeyId;
119
+ }
120
+ if (!$dara.isNull(request.description)) {
121
+ query["description"] = request.description;
122
+ }
123
+ if (!$dara.isNull(request.maxResults)) {
124
+ query["maxResults"] = request.maxResults;
125
+ }
126
+ if (!$dara.isNull(request.nextToken)) {
127
+ query["nextToken"] = request.nextToken;
128
+ }
129
+ if (!$dara.isNull(request.skip)) {
130
+ query["skip"] = request.skip;
131
+ }
132
+ if (!$dara.isNull(request.uid)) {
133
+ query["uid"] = request.uid;
134
+ }
135
+ if (!$dara.isNull(request.workspaceId)) {
136
+ query["workspaceId"] = request.workspaceId;
137
+ }
138
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
139
+ headers: headers,
140
+ query: openapi_core_2.OpenApiUtil.query(query),
141
+ });
142
+ let params = new openapi_core_2.$OpenApiUtil.Params({
143
+ action: "ListApiKeys",
144
+ version: "2024-08-16",
145
+ protocol: "HTTPS",
146
+ pathname: `/bailianControl/apiKeys`,
147
+ method: "GET",
148
+ authType: "AK",
149
+ style: "ROA",
150
+ reqBodyType: "json",
151
+ bodyType: "json",
152
+ });
153
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListApiKeysResponse({}));
154
+ }
155
+ /**
156
+ * 获取ApiKey列表
157
+ *
158
+ * @param request - ListApiKeysRequest
159
+ * @returns ListApiKeysResponse
160
+ */
161
+ async listApiKeys(request) {
162
+ let runtime = new $dara.RuntimeOptions({});
163
+ let headers = {};
164
+ return await this.listApiKeysWithOptions(request, headers, runtime);
165
+ }
166
+ }
167
+ exports.default = Client;
168
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,0EAA6C;AAC7C,yDAAkE;AAGlE,wDAA0C;AAC1C,iDAA+B;AAE/B,MAAqB,MAAO,SAAQ,sBAAO;IAEzC,YAAY,MAA2B;QACrC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;QACxB,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I,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,IAAI,OAAO,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC,CAAC;IAChI,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CAAC,OAAmC;QACnD,IAAI,OAAO,GAAG,IAAI,KAAK,CAAC,cAAc,CAAC,EAAG,CAAC,CAAC;QAC5C,IAAI,OAAO,GAA8B,EAAG,CAAC;QAC7C,OAAO,MAAM,IAAI,CAAC,sBAAsB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;CAEF;AAxID,yBAwIC"}
@@ -0,0 +1,14 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class GetApiKeyRequest extends $dara.Model {
3
+ apiKeyId?: string;
4
+ static names(): {
5
+ [key: string]: string;
6
+ };
7
+ static types(): {
8
+ [key: string]: any;
9
+ };
10
+ validate(): void;
11
+ constructor(map?: {
12
+ [key: string]: any;
13
+ });
14
+ }
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.GetApiKeyRequest = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class GetApiKeyRequest extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ apiKeyId: 'apiKeyId',
43
+ };
44
+ }
45
+ static types() {
46
+ return {
47
+ apiKeyId: 'string',
48
+ };
49
+ }
50
+ validate() {
51
+ super.validate();
52
+ }
53
+ constructor(map) {
54
+ super(map);
55
+ }
56
+ }
57
+ exports.GetApiKeyRequest = GetApiKeyRequest;
58
+ //# sourceMappingURL=GetApiKeyRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GetApiKeyRequest.js","sourceRoot":"","sources":["../../src/models/GetApiKeyRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gBAAiB,SAAQ,KAAK,CAAC,KAAK;IAE/C,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AArBD,4CAqBC"}
@@ -0,0 +1,19 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ import { GetApiKeyResponseBody } from "./GetApiKeyResponseBody";
3
+ export declare class GetApiKeyResponse extends $dara.Model {
4
+ headers?: {
5
+ [key: string]: string;
6
+ };
7
+ statusCode?: number;
8
+ body?: GetApiKeyResponseBody;
9
+ static names(): {
10
+ [key: string]: string;
11
+ };
12
+ static types(): {
13
+ [key: string]: any;
14
+ };
15
+ validate(): void;
16
+ constructor(map?: {
17
+ [key: string]: any;
18
+ });
19
+ }
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.GetApiKeyResponse = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ const GetApiKeyResponseBody_1 = require("./GetApiKeyResponseBody");
40
+ class GetApiKeyResponse extends $dara.Model {
41
+ static names() {
42
+ return {
43
+ headers: 'headers',
44
+ statusCode: 'statusCode',
45
+ body: 'body',
46
+ };
47
+ }
48
+ static types() {
49
+ return {
50
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
51
+ statusCode: 'number',
52
+ body: GetApiKeyResponseBody_1.GetApiKeyResponseBody,
53
+ };
54
+ }
55
+ validate() {
56
+ if (this.headers) {
57
+ $dara.Model.validateMap(this.headers);
58
+ }
59
+ if (this.body && typeof this.body.validate === 'function') {
60
+ this.body.validate();
61
+ }
62
+ super.validate();
63
+ }
64
+ constructor(map) {
65
+ super(map);
66
+ }
67
+ }
68
+ exports.GetApiKeyResponse = GetApiKeyResponse;
69
+ //# sourceMappingURL=GetApiKeyResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GetApiKeyResponse.js","sourceRoot":"","sources":["../../src/models/GetApiKeyResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mEAAgE;AAGhE,MAAa,iBAAkB,SAAQ,KAAK,CAAC,KAAK;IAIhD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,6CAAqB;SAC5B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,8CAiCC"}
@@ -0,0 +1,97 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ /**
3
+ */
4
+ export declare class GetApiKeyResponseBodyApiKeyAuthSetModelAuthAppStructure extends $dara.Model {
5
+ agents?: string[];
6
+ highCodeApps?: string[];
7
+ isAllowAccessAllApps?: boolean;
8
+ workflows?: string[];
9
+ static names(): {
10
+ [key: string]: string;
11
+ };
12
+ static types(): {
13
+ [key: string]: any;
14
+ };
15
+ validate(): void;
16
+ constructor(map?: {
17
+ [key: string]: any;
18
+ });
19
+ }
20
+ export declare class GetApiKeyResponseBodyApiKeyAuthSetModelAuthModelStructure extends $dara.Model {
21
+ defineModels?: string[];
22
+ deployments?: string[];
23
+ isAllowAccessAllModels?: boolean;
24
+ models?: string[];
25
+ static names(): {
26
+ [key: string]: string;
27
+ };
28
+ static types(): {
29
+ [key: string]: any;
30
+ };
31
+ validate(): void;
32
+ constructor(map?: {
33
+ [key: string]: any;
34
+ });
35
+ }
36
+ export declare class GetApiKeyResponseBodyApiKeyAuthSetModel extends $dara.Model {
37
+ accessIps?: string[];
38
+ authAppStructure?: GetApiKeyResponseBodyApiKeyAuthSetModelAuthAppStructure;
39
+ authModelStructure?: GetApiKeyResponseBodyApiKeyAuthSetModelAuthModelStructure;
40
+ authSetMode?: string;
41
+ static names(): {
42
+ [key: string]: string;
43
+ };
44
+ static types(): {
45
+ [key: string]: any;
46
+ };
47
+ validate(): void;
48
+ constructor(map?: {
49
+ [key: string]: any;
50
+ });
51
+ }
52
+ export declare class GetApiKeyResponseBodyApiKey extends $dara.Model {
53
+ apiKeyValue?: string;
54
+ apikeyId?: string;
55
+ authSetModel?: GetApiKeyResponseBodyApiKeyAuthSetModel;
56
+ blocked?: string;
57
+ createTime?: number;
58
+ creator?: string;
59
+ description?: string;
60
+ expireTime?: number;
61
+ extData?: string;
62
+ parentUid?: string;
63
+ uid?: string;
64
+ workspaceId?: string;
65
+ static names(): {
66
+ [key: string]: string;
67
+ };
68
+ static types(): {
69
+ [key: string]: any;
70
+ };
71
+ validate(): void;
72
+ constructor(map?: {
73
+ [key: string]: any;
74
+ });
75
+ }
76
+ export declare class GetApiKeyResponseBody extends $dara.Model {
77
+ apiKey?: GetApiKeyResponseBodyApiKey;
78
+ code?: string;
79
+ httpStatusCode?: number;
80
+ message?: string;
81
+ /**
82
+ * @remarks
83
+ * Id of the request
84
+ */
85
+ requestId?: string;
86
+ success?: boolean;
87
+ static names(): {
88
+ [key: string]: string;
89
+ };
90
+ static types(): {
91
+ [key: string]: any;
92
+ };
93
+ validate(): void;
94
+ constructor(map?: {
95
+ [key: string]: any;
96
+ });
97
+ }