@alicloud/dms20250414 2.0.0 → 2.1.1
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 +25 -10
- package/dist/client.js +64 -10
- package/dist/client.js.map +1 -1
- package/dist/models/CreateAgentRequest.d.ts +47 -0
- package/dist/models/CreateAgentRequest.js +64 -0
- package/dist/models/CreateAgentRequest.js.map +1 -0
- package/dist/models/CreateAgentResponse.d.ts +19 -0
- package/dist/models/CreateAgentResponse.js +69 -0
- package/dist/models/CreateAgentResponse.js.map +1 -0
- package/dist/models/CreateAgentResponseBody.d.ts +257 -0
- package/dist/models/CreateAgentResponseBody.js +154 -0
- package/dist/models/CreateAgentResponseBody.js.map +1 -0
- package/dist/models/CreateDataAgentSessionRequest.d.ts +102 -21
- package/dist/models/CreateDataAgentSessionRequest.js +51 -1
- package/dist/models/CreateDataAgentSessionRequest.js.map +1 -1
- package/dist/models/CreateDataAgentSessionResponseBody.d.ts +51 -29
- package/dist/models/CreateDataAgentSessionResponseBody.js.map +1 -1
- package/dist/models/CreateDataAgentSessionShrinkRequest.d.ts +2 -2
- package/dist/models/CreateDataAgentThemeRequest.d.ts +16 -8
- package/dist/models/CreateDataAgentThemeRequest.js +2 -0
- package/dist/models/CreateDataAgentThemeRequest.js.map +1 -1
- package/dist/models/CreateDataAgentThemeResponseBody.d.ts +2 -2
- package/dist/models/DescribeDataAgentSessionRequest.d.ts +1 -1
- package/dist/models/DescribeDataAgentSessionResponseBody.d.ts +19 -20
- package/dist/models/DescribeDataAgentSessionResponseBody.js.map +1 -1
- package/dist/models/DescribeDataAgentThemeResponseBody.d.ts +9 -13
- package/dist/models/DescribeDataAgentThemeResponseBody.js.map +1 -1
- package/dist/models/GetDataAgentThemeUploadSignatureRequest.d.ts +1 -1
- package/dist/models/GetDataAgentThemeUploadSignatureResponseBody.d.ts +5 -5
- package/dist/models/ListDataAgentAccuracyTestInstancesResponseBody.d.ts +9 -2
- package/dist/models/ListDataAgentAccuracyTestInstancesResponseBody.js.map +1 -1
- package/dist/models/ListDataAgentThemeRequest.d.ts +15 -7
- package/dist/models/ListDataAgentThemeRequest.js +2 -0
- package/dist/models/ListDataAgentThemeRequest.js.map +1 -1
- package/dist/models/ListDataAgentThemeResponseBody.d.ts +8 -8
- package/dist/models/ModifyDataAgentThemeRequest.d.ts +3 -3
- package/dist/models/ModifyDataAgentThemeResponseBody.d.ts +2 -2
- package/dist/models/model.d.ts +7 -0
- package/dist/models/model.js +30 -16
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +72 -10
- package/src/models/CreateAgentRequest.ts +66 -0
- package/src/models/CreateAgentResponse.ts +40 -0
- package/src/models/CreateAgentResponseBody.ts +348 -0
- package/src/models/CreateDataAgentSessionRequest.ts +134 -21
- package/src/models/CreateDataAgentSessionResponseBody.ts +51 -29
- package/src/models/CreateDataAgentSessionShrinkRequest.ts +2 -2
- package/src/models/CreateDataAgentThemeRequest.ts +18 -8
- package/src/models/CreateDataAgentThemeResponseBody.ts +2 -2
- package/src/models/DescribeDataAgentSessionRequest.ts +1 -1
- package/src/models/DescribeDataAgentSessionResponseBody.ts +19 -20
- package/src/models/DescribeDataAgentThemeResponseBody.ts +9 -13
- package/src/models/GetDataAgentThemeUploadSignatureRequest.ts +1 -1
- package/src/models/GetDataAgentThemeUploadSignatureResponseBody.ts +5 -5
- package/src/models/ListDataAgentAccuracyTestInstancesResponseBody.ts +9 -2
- package/src/models/ListDataAgentThemeRequest.ts +17 -7
- package/src/models/ListDataAgentThemeResponseBody.ts +8 -8
- package/src/models/ModifyDataAgentThemeRequest.ts +3 -3
- package/src/models/ModifyDataAgentThemeResponseBody.ts +2 -2
- package/src/models/model.ts +7 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
export declare class CreateAgentRequest extends $dara.Model {
|
|
3
|
+
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* The agent name. The name must be unique within the same tenant. Maximum length: 128 characters.
|
|
6
|
+
*
|
|
7
|
+
* This parameter is required.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* order-analysis-agent
|
|
11
|
+
*/
|
|
12
|
+
agentName?: string;
|
|
13
|
+
/**
|
|
14
|
+
* @remarks
|
|
15
|
+
* The permission inheritance type of the agent, which specifies the permission source. Default value: HUMAN_BOUND.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* HUMAN_BOUND
|
|
19
|
+
*/
|
|
20
|
+
agentType?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @remarks
|
|
23
|
+
* The description of the agent. Maximum length: 512 characters.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* An agent for querying and analyzing order data
|
|
27
|
+
*/
|
|
28
|
+
description?: string;
|
|
29
|
+
/**
|
|
30
|
+
* @remarks
|
|
31
|
+
* The validity period of the automatically issued API key, in seconds. Valid values: 1 to 31536000 (up to 1 year).
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* 2592000
|
|
35
|
+
*/
|
|
36
|
+
expireAfterSeconds?: number;
|
|
37
|
+
static names(): {
|
|
38
|
+
[key: string]: string;
|
|
39
|
+
};
|
|
40
|
+
static types(): {
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
};
|
|
43
|
+
validate(): void;
|
|
44
|
+
constructor(map?: {
|
|
45
|
+
[key: string]: any;
|
|
46
|
+
});
|
|
47
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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.CreateAgentRequest = void 0;
|
|
37
|
+
// This file is auto-generated, don't edit it
|
|
38
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
class CreateAgentRequest extends $dara.Model {
|
|
40
|
+
static names() {
|
|
41
|
+
return {
|
|
42
|
+
agentName: 'AgentName',
|
|
43
|
+
agentType: 'AgentType',
|
|
44
|
+
description: 'Description',
|
|
45
|
+
expireAfterSeconds: 'ExpireAfterSeconds',
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
static types() {
|
|
49
|
+
return {
|
|
50
|
+
agentName: 'string',
|
|
51
|
+
agentType: 'string',
|
|
52
|
+
description: 'string',
|
|
53
|
+
expireAfterSeconds: 'number',
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
validate() {
|
|
57
|
+
super.validate();
|
|
58
|
+
}
|
|
59
|
+
constructor(map) {
|
|
60
|
+
super(map);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.CreateAgentRequest = CreateAgentRequest;
|
|
64
|
+
//# sourceMappingURL=CreateAgentRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateAgentRequest.js","sourceRoot":"","sources":["../../src/models/CreateAgentRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kBAAmB,SAAQ,KAAK,CAAC,KAAK;IAmCjD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;YACtB,SAAS,EAAE,WAAW;YACtB,WAAW,EAAE,aAAa;YAC1B,kBAAkB,EAAE,oBAAoB;SACzC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,QAAQ;YACnB,WAAW,EAAE,QAAQ;YACrB,kBAAkB,EAAE,QAAQ;SAC7B,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;AA5DD,gDA4DC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
import { CreateAgentResponseBody } from "./CreateAgentResponseBody";
|
|
3
|
+
export declare class CreateAgentResponse extends $dara.Model {
|
|
4
|
+
headers?: {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
};
|
|
7
|
+
statusCode?: number;
|
|
8
|
+
body?: CreateAgentResponseBody;
|
|
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.CreateAgentResponse = void 0;
|
|
37
|
+
// This file is auto-generated, don't edit it
|
|
38
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
const CreateAgentResponseBody_1 = require("./CreateAgentResponseBody");
|
|
40
|
+
class CreateAgentResponse 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: CreateAgentResponseBody_1.CreateAgentResponseBody,
|
|
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.CreateAgentResponse = CreateAgentResponse;
|
|
69
|
+
//# sourceMappingURL=CreateAgentResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateAgentResponse.js","sourceRoot":"","sources":["../../src/models/CreateAgentResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,uEAAoE;AAGpE,MAAa,mBAAoB,SAAQ,KAAK,CAAC,KAAK;IAIlD,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,iDAAuB;SAC9B,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,kDAiCC"}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
export declare class CreateAgentResponseBodyDataApiKey extends $dara.Model {
|
|
3
|
+
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* The ID of the agent to which the API key belongs.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* agt-1a2b3c4d5e6f
|
|
9
|
+
*/
|
|
10
|
+
agentId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* The name of the agent to which the API key belongs.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* order-analysis-agent
|
|
17
|
+
*/
|
|
18
|
+
agentName?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @remarks
|
|
21
|
+
* The permission inheritance type of the agent to which the API key belongs.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* HUMAN_BOUND
|
|
25
|
+
*/
|
|
26
|
+
agentType?: string;
|
|
27
|
+
/**
|
|
28
|
+
* @remarks
|
|
29
|
+
* The time when the API key was created. The value is a time string in RFC 3339 format.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* 2025-12-11T14:04:32Z
|
|
33
|
+
*/
|
|
34
|
+
createdAt?: string;
|
|
35
|
+
/**
|
|
36
|
+
* @remarks
|
|
37
|
+
* The user ID of the user who created the API key.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* usr-1a2b3c4d
|
|
41
|
+
*/
|
|
42
|
+
creatorId?: string;
|
|
43
|
+
/**
|
|
44
|
+
* @remarks
|
|
45
|
+
* The name of the user who created the API key.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* John Doe
|
|
49
|
+
*/
|
|
50
|
+
creatorName?: string;
|
|
51
|
+
/**
|
|
52
|
+
* @remarks
|
|
53
|
+
* The description of the API key.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* Access Token automatically issued when the Agent is created
|
|
57
|
+
*/
|
|
58
|
+
description?: string;
|
|
59
|
+
/**
|
|
60
|
+
* @remarks
|
|
61
|
+
* The expiration time of the API key. The value is a time string in RFC 3339 format.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* 2026-12-11T14:04:32Z
|
|
65
|
+
*/
|
|
66
|
+
expireTime?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @remarks
|
|
69
|
+
* The primary key ID of the API key.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* 1001
|
|
73
|
+
*/
|
|
74
|
+
id?: number;
|
|
75
|
+
/**
|
|
76
|
+
* @remarks
|
|
77
|
+
* Indicates whether the API key has been revoked.
|
|
78
|
+
*/
|
|
79
|
+
isRevoked?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* @remarks
|
|
82
|
+
* The non-sensitive visible prefix of the API key plaintext, used to identify the credential. The plaintext secret is not returned again.
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* dms_sk_1a2b
|
|
86
|
+
*/
|
|
87
|
+
keyPrefix?: string;
|
|
88
|
+
/**
|
|
89
|
+
* @remarks
|
|
90
|
+
* The time when the API key was last used. The value is a time string in RFC 3339 format. This parameter is empty if the API key has never been used.
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* 2025-12-12T09:30:00Z
|
|
94
|
+
*/
|
|
95
|
+
lastUsedTime?: string;
|
|
96
|
+
/**
|
|
97
|
+
* @remarks
|
|
98
|
+
* The name of the API key.
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* order-analysis-agent-default
|
|
102
|
+
*/
|
|
103
|
+
name?: string;
|
|
104
|
+
/**
|
|
105
|
+
* @remarks
|
|
106
|
+
* The plaintext secret of the API key. This value is returned only once in this creation response. Store it securely. Subsequent API calls do not return the plaintext secret again.
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
* dms_sk_1a2b3c4d****
|
|
110
|
+
*/
|
|
111
|
+
secret?: string;
|
|
112
|
+
/**
|
|
113
|
+
* @remarks
|
|
114
|
+
* The credential source. Valid values: console (issued from the console), oauth (issued through the OAuth flow), install_token (issued through the install-and-authenticate flow). The API key automatically issued by this operation is always console.
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* console
|
|
118
|
+
*/
|
|
119
|
+
source?: string;
|
|
120
|
+
static names(): {
|
|
121
|
+
[key: string]: string;
|
|
122
|
+
};
|
|
123
|
+
static types(): {
|
|
124
|
+
[key: string]: any;
|
|
125
|
+
};
|
|
126
|
+
validate(): void;
|
|
127
|
+
constructor(map?: {
|
|
128
|
+
[key: string]: any;
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
export declare class CreateAgentResponseBodyData extends $dara.Model {
|
|
132
|
+
/**
|
|
133
|
+
* @remarks
|
|
134
|
+
* The globally unique ID of the agent.
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* agt-1a2b3c4d5e6f
|
|
138
|
+
*/
|
|
139
|
+
agentId?: string;
|
|
140
|
+
/**
|
|
141
|
+
* @remarks
|
|
142
|
+
* The agent name.
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
* order-analysis-agent
|
|
146
|
+
*/
|
|
147
|
+
agentName?: string;
|
|
148
|
+
/**
|
|
149
|
+
* @remarks
|
|
150
|
+
* The permission inheritance type of the agent. Valid values: HUMAN_BOUND (inherits user permissions), PERMISSION_NARROW (narrows permissions), STANDALONE (operates as an independent identity principal without inheriting permissions from other principals).
|
|
151
|
+
*
|
|
152
|
+
* @example
|
|
153
|
+
* HUMAN_BOUND
|
|
154
|
+
*/
|
|
155
|
+
agentType?: string;
|
|
156
|
+
/**
|
|
157
|
+
* @remarks
|
|
158
|
+
* The automatically issued API key for the new agent. The plaintext secret is returned only once in this response.
|
|
159
|
+
*/
|
|
160
|
+
apiKey?: CreateAgentResponseBodyDataApiKey;
|
|
161
|
+
/**
|
|
162
|
+
* @remarks
|
|
163
|
+
* The time when the agent was created. The value is a time string in RFC 3339 format.
|
|
164
|
+
*
|
|
165
|
+
* @example
|
|
166
|
+
* 2025-12-11T14:04:32Z
|
|
167
|
+
*/
|
|
168
|
+
createdAt?: string;
|
|
169
|
+
/**
|
|
170
|
+
* @remarks
|
|
171
|
+
* The creation method of the agent. Valid values: manual (manually created in the console), auto (automatic creation by the system). Agents created by this operation are always manual.
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* manual
|
|
175
|
+
*/
|
|
176
|
+
creationType?: string;
|
|
177
|
+
/**
|
|
178
|
+
* @remarks
|
|
179
|
+
* The description of the agent.
|
|
180
|
+
*
|
|
181
|
+
* @example
|
|
182
|
+
* An agent for querying and analyzing order data
|
|
183
|
+
*/
|
|
184
|
+
description?: string;
|
|
185
|
+
/**
|
|
186
|
+
* @remarks
|
|
187
|
+
* The user ID of the agent owner, which is the current user who initiated the creation request.
|
|
188
|
+
*
|
|
189
|
+
* @example
|
|
190
|
+
* usr-1a2b3c4d
|
|
191
|
+
*/
|
|
192
|
+
ownerId?: string;
|
|
193
|
+
/**
|
|
194
|
+
* @remarks
|
|
195
|
+
* The status of the agent. Valid values: active (enabled), disabled (disabled), deleted (deleted). A newly created agent is always active.
|
|
196
|
+
*
|
|
197
|
+
* @example
|
|
198
|
+
* active
|
|
199
|
+
*/
|
|
200
|
+
status?: string;
|
|
201
|
+
static names(): {
|
|
202
|
+
[key: string]: string;
|
|
203
|
+
};
|
|
204
|
+
static types(): {
|
|
205
|
+
[key: string]: any;
|
|
206
|
+
};
|
|
207
|
+
validate(): void;
|
|
208
|
+
constructor(map?: {
|
|
209
|
+
[key: string]: any;
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
export declare class CreateAgentResponseBody extends $dara.Model {
|
|
213
|
+
/**
|
|
214
|
+
* @remarks
|
|
215
|
+
* The agent information and the automatically issued API key returned after the agent is created.
|
|
216
|
+
*/
|
|
217
|
+
data?: CreateAgentResponseBodyData;
|
|
218
|
+
/**
|
|
219
|
+
* @remarks
|
|
220
|
+
* The status code of the request result. A value of success indicates success. A specific error code is returned upon failure.
|
|
221
|
+
*
|
|
222
|
+
* @example
|
|
223
|
+
* success
|
|
224
|
+
*/
|
|
225
|
+
errorCode?: string;
|
|
226
|
+
/**
|
|
227
|
+
* @remarks
|
|
228
|
+
* The error message returned when the request fails. This parameter is empty when the request succeeds.
|
|
229
|
+
*
|
|
230
|
+
* @example
|
|
231
|
+
* agentName must not be blank
|
|
232
|
+
*/
|
|
233
|
+
errorMessage?: string;
|
|
234
|
+
/**
|
|
235
|
+
* @remarks
|
|
236
|
+
* The unique ID of the request. You can use this ID for troubleshooting and tracing.
|
|
237
|
+
*
|
|
238
|
+
* @example
|
|
239
|
+
* 67E910F2-4B62-5B0C-ACA3-7547695C****
|
|
240
|
+
*/
|
|
241
|
+
requestId?: string;
|
|
242
|
+
/**
|
|
243
|
+
* @remarks
|
|
244
|
+
* Indicates whether the request was successful.
|
|
245
|
+
*/
|
|
246
|
+
success?: boolean;
|
|
247
|
+
static names(): {
|
|
248
|
+
[key: string]: string;
|
|
249
|
+
};
|
|
250
|
+
static types(): {
|
|
251
|
+
[key: string]: any;
|
|
252
|
+
};
|
|
253
|
+
validate(): void;
|
|
254
|
+
constructor(map?: {
|
|
255
|
+
[key: string]: any;
|
|
256
|
+
});
|
|
257
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
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.CreateAgentResponseBody = exports.CreateAgentResponseBodyData = exports.CreateAgentResponseBodyDataApiKey = void 0;
|
|
37
|
+
// This file is auto-generated, don't edit it
|
|
38
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
class CreateAgentResponseBodyDataApiKey extends $dara.Model {
|
|
40
|
+
static names() {
|
|
41
|
+
return {
|
|
42
|
+
agentId: 'AgentId',
|
|
43
|
+
agentName: 'AgentName',
|
|
44
|
+
agentType: 'AgentType',
|
|
45
|
+
createdAt: 'CreatedAt',
|
|
46
|
+
creatorId: 'CreatorId',
|
|
47
|
+
creatorName: 'CreatorName',
|
|
48
|
+
description: 'Description',
|
|
49
|
+
expireTime: 'ExpireTime',
|
|
50
|
+
id: 'Id',
|
|
51
|
+
isRevoked: 'IsRevoked',
|
|
52
|
+
keyPrefix: 'KeyPrefix',
|
|
53
|
+
lastUsedTime: 'LastUsedTime',
|
|
54
|
+
name: 'Name',
|
|
55
|
+
secret: 'Secret',
|
|
56
|
+
source: 'Source',
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
static types() {
|
|
60
|
+
return {
|
|
61
|
+
agentId: 'string',
|
|
62
|
+
agentName: 'string',
|
|
63
|
+
agentType: 'string',
|
|
64
|
+
createdAt: 'string',
|
|
65
|
+
creatorId: 'string',
|
|
66
|
+
creatorName: 'string',
|
|
67
|
+
description: 'string',
|
|
68
|
+
expireTime: 'string',
|
|
69
|
+
id: 'number',
|
|
70
|
+
isRevoked: 'boolean',
|
|
71
|
+
keyPrefix: 'string',
|
|
72
|
+
lastUsedTime: 'string',
|
|
73
|
+
name: 'string',
|
|
74
|
+
secret: 'string',
|
|
75
|
+
source: 'string',
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
validate() {
|
|
79
|
+
super.validate();
|
|
80
|
+
}
|
|
81
|
+
constructor(map) {
|
|
82
|
+
super(map);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.CreateAgentResponseBodyDataApiKey = CreateAgentResponseBodyDataApiKey;
|
|
86
|
+
class CreateAgentResponseBodyData extends $dara.Model {
|
|
87
|
+
static names() {
|
|
88
|
+
return {
|
|
89
|
+
agentId: 'AgentId',
|
|
90
|
+
agentName: 'AgentName',
|
|
91
|
+
agentType: 'AgentType',
|
|
92
|
+
apiKey: 'ApiKey',
|
|
93
|
+
createdAt: 'CreatedAt',
|
|
94
|
+
creationType: 'CreationType',
|
|
95
|
+
description: 'Description',
|
|
96
|
+
ownerId: 'OwnerId',
|
|
97
|
+
status: 'Status',
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
static types() {
|
|
101
|
+
return {
|
|
102
|
+
agentId: 'string',
|
|
103
|
+
agentName: 'string',
|
|
104
|
+
agentType: 'string',
|
|
105
|
+
apiKey: CreateAgentResponseBodyDataApiKey,
|
|
106
|
+
createdAt: 'string',
|
|
107
|
+
creationType: 'string',
|
|
108
|
+
description: 'string',
|
|
109
|
+
ownerId: 'string',
|
|
110
|
+
status: 'string',
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
validate() {
|
|
114
|
+
if (this.apiKey && typeof this.apiKey.validate === 'function') {
|
|
115
|
+
this.apiKey.validate();
|
|
116
|
+
}
|
|
117
|
+
super.validate();
|
|
118
|
+
}
|
|
119
|
+
constructor(map) {
|
|
120
|
+
super(map);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
exports.CreateAgentResponseBodyData = CreateAgentResponseBodyData;
|
|
124
|
+
class CreateAgentResponseBody extends $dara.Model {
|
|
125
|
+
static names() {
|
|
126
|
+
return {
|
|
127
|
+
data: 'Data',
|
|
128
|
+
errorCode: 'ErrorCode',
|
|
129
|
+
errorMessage: 'ErrorMessage',
|
|
130
|
+
requestId: 'RequestId',
|
|
131
|
+
success: 'Success',
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
static types() {
|
|
135
|
+
return {
|
|
136
|
+
data: CreateAgentResponseBodyData,
|
|
137
|
+
errorCode: 'string',
|
|
138
|
+
errorMessage: 'string',
|
|
139
|
+
requestId: 'string',
|
|
140
|
+
success: 'boolean',
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
validate() {
|
|
144
|
+
if (this.data && typeof this.data.validate === 'function') {
|
|
145
|
+
this.data.validate();
|
|
146
|
+
}
|
|
147
|
+
super.validate();
|
|
148
|
+
}
|
|
149
|
+
constructor(map) {
|
|
150
|
+
super(map);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
exports.CreateAgentResponseBody = CreateAgentResponseBody;
|
|
154
|
+
//# sourceMappingURL=CreateAgentResponseBody.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateAgentResponseBody.js","sourceRoot":"","sources":["../../src/models/CreateAgentResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IAsHhE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,SAAS,EAAE,WAAW;YACtB,SAAS,EAAE,WAAW;YACtB,SAAS,EAAE,WAAW;YACtB,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,aAAa;YAC1B,UAAU,EAAE,YAAY;YACxB,EAAE,EAAE,IAAI;YACR,SAAS,EAAE,W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