@alicloud/cms20240330 9.1.0 → 9.2.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 +252 -0
- package/dist/client.js +637 -0
- package/dist/client.js.map +1 -1
- package/dist/models/AddContextsRequest.d.ts +119 -0
- package/dist/models/AddContextsRequest.js +129 -0
- package/dist/models/AddContextsRequest.js.map +1 -0
- package/dist/models/AddContextsResponse.d.ts +19 -0
- package/dist/models/AddContextsResponse.js +69 -0
- package/dist/models/AddContextsResponse.js.map +1 -0
- package/dist/models/AddContextsResponseBody.d.ts +41 -0
- package/dist/models/AddContextsResponseBody.js +84 -0
- package/dist/models/AddContextsResponseBody.js.map +1 -0
- package/dist/models/CreateContextStoreApikeyRequest.d.ts +21 -0
- package/dist/models/CreateContextStoreApikeyRequest.js +58 -0
- package/dist/models/CreateContextStoreApikeyRequest.js.map +1 -0
- package/dist/models/CreateContextStoreApikeyResponse.d.ts +19 -0
- package/dist/models/CreateContextStoreApikeyResponse.js +69 -0
- package/dist/models/CreateContextStoreApikeyResponse.js.map +1 -0
- package/dist/models/CreateContextStoreApikeyResponseBody.d.ts +28 -0
- package/dist/models/CreateContextStoreApikeyResponseBody.js +62 -0
- package/dist/models/CreateContextStoreApikeyResponseBody.js.map +1 -0
- package/dist/models/CreateContextStoreRequest.d.ts +99 -0
- package/dist/models/CreateContextStoreRequest.js +141 -0
- package/dist/models/CreateContextStoreRequest.js.map +1 -0
- package/dist/models/CreateContextStoreResponse.d.ts +19 -0
- package/dist/models/CreateContextStoreResponse.js +69 -0
- package/dist/models/CreateContextStoreResponse.js.map +1 -0
- package/dist/models/CreateContextStoreResponseBody.d.ts +18 -0
- package/dist/models/CreateContextStoreResponseBody.js +58 -0
- package/dist/models/CreateContextStoreResponseBody.js.map +1 -0
- package/dist/models/DeleteContextRequest.d.ts +13 -0
- package/dist/models/DeleteContextRequest.js +54 -0
- package/dist/models/DeleteContextRequest.js.map +1 -0
- package/dist/models/DeleteContextResponse.d.ts +19 -0
- package/dist/models/DeleteContextResponse.js +69 -0
- package/dist/models/DeleteContextResponse.js.map +1 -0
- package/dist/models/DeleteContextResponseBody.d.ts +28 -0
- package/dist/models/DeleteContextResponseBody.js +62 -0
- package/dist/models/DeleteContextResponseBody.js.map +1 -0
- package/dist/models/DeleteContextStoreApikeyRequest.d.ts +13 -0
- package/dist/models/DeleteContextStoreApikeyRequest.js +54 -0
- package/dist/models/DeleteContextStoreApikeyRequest.js.map +1 -0
- package/dist/models/DeleteContextStoreApikeyResponse.d.ts +19 -0
- package/dist/models/DeleteContextStoreApikeyResponse.js +69 -0
- package/dist/models/DeleteContextStoreApikeyResponse.js.map +1 -0
- package/dist/models/DeleteContextStoreApikeyResponseBody.d.ts +18 -0
- package/dist/models/DeleteContextStoreApikeyResponseBody.js +58 -0
- package/dist/models/DeleteContextStoreApikeyResponseBody.js.map +1 -0
- package/dist/models/DeleteContextStoreRequest.d.ts +13 -0
- package/dist/models/DeleteContextStoreRequest.js +54 -0
- package/dist/models/DeleteContextStoreRequest.js.map +1 -0
- package/dist/models/DeleteContextStoreResponse.d.ts +19 -0
- package/dist/models/DeleteContextStoreResponse.js +69 -0
- package/dist/models/DeleteContextStoreResponse.js.map +1 -0
- package/dist/models/DeleteContextStoreResponseBody.d.ts +14 -0
- package/dist/models/DeleteContextStoreResponseBody.js +58 -0
- package/dist/models/DeleteContextStoreResponseBody.js.map +1 -0
- package/dist/models/DeleteContextsRequest.d.ts +23 -0
- package/dist/models/DeleteContextsRequest.js +60 -0
- package/dist/models/DeleteContextsRequest.js.map +1 -0
- package/dist/models/DeleteContextsResponse.d.ts +19 -0
- package/dist/models/DeleteContextsResponse.js +69 -0
- package/dist/models/DeleteContextsResponse.js.map +1 -0
- package/dist/models/DeleteContextsResponseBody.d.ts +23 -0
- package/dist/models/DeleteContextsResponseBody.js +60 -0
- package/dist/models/DeleteContextsResponseBody.js.map +1 -0
- package/dist/models/GetContextRequest.d.ts +18 -0
- package/dist/models/GetContextRequest.js +58 -0
- package/dist/models/GetContextRequest.js.map +1 -0
- package/dist/models/GetContextResponse.d.ts +20 -0
- package/dist/models/GetContextResponse.js +65 -0
- package/dist/models/GetContextResponse.js.map +1 -0
- package/dist/models/GetContextStoreRequest.d.ts +13 -0
- package/dist/models/GetContextStoreRequest.js +54 -0
- package/dist/models/GetContextStoreRequest.js.map +1 -0
- package/dist/models/GetContextStoreResponse.d.ts +19 -0
- package/dist/models/GetContextStoreResponse.js +69 -0
- package/dist/models/GetContextStoreResponse.js.map +1 -0
- package/dist/models/GetContextStoreResponseBody.d.ts +152 -0
- package/dist/models/GetContextStoreResponseBody.js +179 -0
- package/dist/models/GetContextStoreResponseBody.js.map +1 -0
- package/dist/models/ListContextStoreApikeysRequest.d.ts +23 -0
- package/dist/models/ListContextStoreApikeysRequest.js +60 -0
- package/dist/models/ListContextStoreApikeysRequest.js.map +1 -0
- package/dist/models/ListContextStoreApikeysResponse.d.ts +19 -0
- package/dist/models/ListContextStoreApikeysResponse.js +69 -0
- package/dist/models/ListContextStoreApikeysResponse.js.map +1 -0
- package/dist/models/ListContextStoreApikeysResponseBody.d.ts +74 -0
- package/dist/models/ListContextStoreApikeysResponseBody.js +96 -0
- package/dist/models/ListContextStoreApikeysResponseBody.js.map +1 -0
- package/dist/models/ListContextStoresRequest.d.ts +33 -0
- package/dist/models/ListContextStoresRequest.js +64 -0
- package/dist/models/ListContextStoresRequest.js.map +1 -0
- package/dist/models/ListContextStoresResponse.d.ts +19 -0
- package/dist/models/ListContextStoresResponse.js +69 -0
- package/dist/models/ListContextStoresResponse.js.map +1 -0
- package/dist/models/ListContextStoresResponseBody.d.ts +92 -0
- package/dist/models/ListContextStoresResponseBody.js +102 -0
- package/dist/models/ListContextStoresResponseBody.js.map +1 -0
- package/dist/models/SearchContextRequest.d.ts +44 -0
- package/dist/models/SearchContextRequest.js +71 -0
- package/dist/models/SearchContextRequest.js.map +1 -0
- package/dist/models/SearchContextResponse.d.ts +19 -0
- package/dist/models/SearchContextResponse.js +69 -0
- package/dist/models/SearchContextResponse.js.map +1 -0
- package/dist/models/SearchContextResponseBody.d.ts +21 -0
- package/dist/models/SearchContextResponseBody.js +63 -0
- package/dist/models/SearchContextResponseBody.js.map +1 -0
- package/dist/models/UpdateContextRequest.d.ts +60 -0
- package/dist/models/UpdateContextRequest.js +75 -0
- package/dist/models/UpdateContextRequest.js.map +1 -0
- package/dist/models/UpdateContextResponse.d.ts +20 -0
- package/dist/models/UpdateContextResponse.js +65 -0
- package/dist/models/UpdateContextResponse.js.map +1 -0
- package/dist/models/UpdateContextStoreRequest.d.ts +85 -0
- package/dist/models/UpdateContextStoreRequest.js +139 -0
- package/dist/models/UpdateContextStoreRequest.js.map +1 -0
- package/dist/models/UpdateContextStoreResponse.d.ts +19 -0
- package/dist/models/UpdateContextStoreResponse.js +69 -0
- package/dist/models/UpdateContextStoreResponse.js.map +1 -0
- package/dist/models/UpdateContextStoreResponseBody.d.ts +18 -0
- package/dist/models/UpdateContextStoreResponseBody.js +58 -0
- package/dist/models/UpdateContextStoreResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +54 -0
- package/dist/models/model.js +124 -14
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +698 -0
- package/src/models/AddContextsRequest.ts +186 -0
- package/src/models/AddContextsResponse.ts +40 -0
- package/src/models/AddContextsResponseBody.ts +71 -0
- package/src/models/CreateContextStoreApikeyRequest.ts +34 -0
- package/src/models/CreateContextStoreApikeyResponse.ts +40 -0
- package/src/models/CreateContextStoreApikeyResponseBody.ts +45 -0
- package/src/models/CreateContextStoreRequest.ts +166 -0
- package/src/models/CreateContextStoreResponse.ts +40 -0
- package/src/models/CreateContextStoreResponseBody.ts +31 -0
- package/src/models/DeleteContextRequest.ts +24 -0
- package/src/models/DeleteContextResponse.ts +40 -0
- package/src/models/DeleteContextResponseBody.ts +45 -0
- package/src/models/DeleteContextStoreApikeyRequest.ts +24 -0
- package/src/models/DeleteContextStoreApikeyResponse.ts +40 -0
- package/src/models/DeleteContextStoreApikeyResponseBody.ts +31 -0
- package/src/models/DeleteContextStoreRequest.ts +24 -0
- package/src/models/DeleteContextStoreResponse.ts +40 -0
- package/src/models/DeleteContextStoreResponseBody.ts +27 -0
- package/src/models/DeleteContextsRequest.ts +38 -0
- package/src/models/DeleteContextsResponse.ts +40 -0
- package/src/models/DeleteContextsResponseBody.ts +38 -0
- package/src/models/GetContextRequest.ts +31 -0
- package/src/models/GetContextResponse.ts +36 -0
- package/src/models/GetContextStoreRequest.ts +24 -0
- package/src/models/GetContextStoreResponse.ts +40 -0
- package/src/models/GetContextStoreResponseBody.ts +248 -0
- package/src/models/ListContextStoreApikeysRequest.ts +38 -0
- package/src/models/ListContextStoreApikeysResponse.ts +40 -0
- package/src/models/ListContextStoreApikeysResponseBody.ts +116 -0
- package/src/models/ListContextStoresRequest.ts +52 -0
- package/src/models/ListContextStoresResponse.ts +40 -0
- package/src/models/ListContextStoresResponseBody.ts +140 -0
- package/src/models/SearchContextRequest.ts +68 -0
- package/src/models/SearchContextResponse.ts +40 -0
- package/src/models/SearchContextResponseBody.ts +37 -0
- package/src/models/UpdateContextRequest.ts +84 -0
- package/src/models/UpdateContextResponse.ts +36 -0
- package/src/models/UpdateContextStoreRequest.ts +150 -0
- package/src/models/UpdateContextStoreResponse.ts +40 -0
- package/src/models/UpdateContextStoreResponseBody.ts +31 -0
- package/src/models/model.ts +54 -0
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class AddContextsRequestItems extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 952730733889060865
|
|
9
|
+
*/
|
|
10
|
+
agentId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* mm_480d961a1b5e4efe84603f4cbc0f
|
|
14
|
+
*/
|
|
15
|
+
appId?: string;
|
|
16
|
+
categories?: string[];
|
|
17
|
+
/**
|
|
18
|
+
* @example
|
|
19
|
+
* You are a conversation assistant.
|
|
20
|
+
*/
|
|
21
|
+
content?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @example
|
|
24
|
+
* Your custom instructions here
|
|
25
|
+
*/
|
|
26
|
+
customInstructions?: string;
|
|
27
|
+
/**
|
|
28
|
+
* @example
|
|
29
|
+
* {
|
|
30
|
+
* "taskType": "troubleshooting",
|
|
31
|
+
* "complexity": "medium",
|
|
32
|
+
* "confidence": 0.95
|
|
33
|
+
* }
|
|
34
|
+
*/
|
|
35
|
+
experience?: { [key: string]: any };
|
|
36
|
+
/**
|
|
37
|
+
* @example
|
|
38
|
+
* 1731231212334396
|
|
39
|
+
*/
|
|
40
|
+
expirationDate?: string;
|
|
41
|
+
/**
|
|
42
|
+
* @example
|
|
43
|
+
* true
|
|
44
|
+
*/
|
|
45
|
+
immutable?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* @example
|
|
48
|
+
* true
|
|
49
|
+
*/
|
|
50
|
+
infer?: boolean;
|
|
51
|
+
labels?: { [key: string]: string };
|
|
52
|
+
messages?: { [key: string]: any }[];
|
|
53
|
+
/**
|
|
54
|
+
* @example
|
|
55
|
+
* {"sessionId":"test_session_001"}
|
|
56
|
+
*/
|
|
57
|
+
metadata?: { [key: string]: any };
|
|
58
|
+
/**
|
|
59
|
+
* @example
|
|
60
|
+
* jr-80ded1d6953c64ea
|
|
61
|
+
*/
|
|
62
|
+
runId?: string;
|
|
63
|
+
/**
|
|
64
|
+
* @example
|
|
65
|
+
* 1774578167
|
|
66
|
+
*/
|
|
67
|
+
timestamp?: number;
|
|
68
|
+
triggerCondition?: string;
|
|
69
|
+
/**
|
|
70
|
+
* @example
|
|
71
|
+
* test_user_001
|
|
72
|
+
*/
|
|
73
|
+
userId?: string;
|
|
74
|
+
static names(): { [key: string]: string } {
|
|
75
|
+
return {
|
|
76
|
+
agentId: 'agentId',
|
|
77
|
+
appId: 'appId',
|
|
78
|
+
categories: 'categories',
|
|
79
|
+
content: 'content',
|
|
80
|
+
customInstructions: 'customInstructions',
|
|
81
|
+
experience: 'experience',
|
|
82
|
+
expirationDate: 'expirationDate',
|
|
83
|
+
immutable: 'immutable',
|
|
84
|
+
infer: 'infer',
|
|
85
|
+
labels: 'labels',
|
|
86
|
+
messages: 'messages',
|
|
87
|
+
metadata: 'metadata',
|
|
88
|
+
runId: 'runId',
|
|
89
|
+
timestamp: 'timestamp',
|
|
90
|
+
triggerCondition: 'triggerCondition',
|
|
91
|
+
userId: 'userId',
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
static types(): { [key: string]: any } {
|
|
96
|
+
return {
|
|
97
|
+
agentId: 'string',
|
|
98
|
+
appId: 'string',
|
|
99
|
+
categories: { 'type': 'array', 'itemType': 'string' },
|
|
100
|
+
content: 'string',
|
|
101
|
+
customInstructions: 'string',
|
|
102
|
+
experience: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
103
|
+
expirationDate: 'string',
|
|
104
|
+
immutable: 'boolean',
|
|
105
|
+
infer: 'boolean',
|
|
106
|
+
labels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
107
|
+
messages: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
|
|
108
|
+
metadata: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
109
|
+
runId: 'string',
|
|
110
|
+
timestamp: 'number',
|
|
111
|
+
triggerCondition: 'string',
|
|
112
|
+
userId: 'string',
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
validate() {
|
|
117
|
+
if(Array.isArray(this.categories)) {
|
|
118
|
+
$dara.Model.validateArray(this.categories);
|
|
119
|
+
}
|
|
120
|
+
if(this.experience) {
|
|
121
|
+
$dara.Model.validateMap(this.experience);
|
|
122
|
+
}
|
|
123
|
+
if(this.labels) {
|
|
124
|
+
$dara.Model.validateMap(this.labels);
|
|
125
|
+
}
|
|
126
|
+
if(Array.isArray(this.messages)) {
|
|
127
|
+
$dara.Model.validateArray(this.messages);
|
|
128
|
+
}
|
|
129
|
+
if(this.metadata) {
|
|
130
|
+
$dara.Model.validateMap(this.metadata);
|
|
131
|
+
}
|
|
132
|
+
super.validate();
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
constructor(map?: { [key: string]: any }) {
|
|
136
|
+
super(map);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export class AddContextsRequest extends $dara.Model {
|
|
141
|
+
/**
|
|
142
|
+
* @remarks
|
|
143
|
+
* This parameter is required.
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* memory
|
|
147
|
+
*/
|
|
148
|
+
contextType?: string;
|
|
149
|
+
/**
|
|
150
|
+
* @remarks
|
|
151
|
+
* This parameter is required.
|
|
152
|
+
*/
|
|
153
|
+
items?: AddContextsRequestItems[];
|
|
154
|
+
/**
|
|
155
|
+
* @example
|
|
156
|
+
* short
|
|
157
|
+
*/
|
|
158
|
+
memoryType?: string;
|
|
159
|
+
static names(): { [key: string]: string } {
|
|
160
|
+
return {
|
|
161
|
+
contextType: 'contextType',
|
|
162
|
+
items: 'items',
|
|
163
|
+
memoryType: 'memoryType',
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
static types(): { [key: string]: any } {
|
|
168
|
+
return {
|
|
169
|
+
contextType: 'string',
|
|
170
|
+
items: { 'type': 'array', 'itemType': AddContextsRequestItems },
|
|
171
|
+
memoryType: 'string',
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
validate() {
|
|
176
|
+
if(Array.isArray(this.items)) {
|
|
177
|
+
$dara.Model.validateArray(this.items);
|
|
178
|
+
}
|
|
179
|
+
super.validate();
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
constructor(map?: { [key: string]: any }) {
|
|
183
|
+
super(map);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { AddContextsResponseBody } from "./AddContextsResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class AddContextsResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: AddContextsResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: AddContextsResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class AddContextsResponseBodyResults extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 897294a7-67a4-4f60-976c-e136edc5f97e
|
|
9
|
+
*/
|
|
10
|
+
contextId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* accepted
|
|
14
|
+
*/
|
|
15
|
+
status?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
contextId: 'contextId',
|
|
19
|
+
status: 'status',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
contextId: 'string',
|
|
26
|
+
status: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export class AddContextsResponseBody extends $dara.Model {
|
|
40
|
+
/**
|
|
41
|
+
* @example
|
|
42
|
+
* 0B9377D9-C56B-5C2E-A8A4-A01D6CC3F4B8
|
|
43
|
+
*/
|
|
44
|
+
requestId?: string;
|
|
45
|
+
results?: AddContextsResponseBodyResults[];
|
|
46
|
+
static names(): { [key: string]: string } {
|
|
47
|
+
return {
|
|
48
|
+
requestId: 'requestId',
|
|
49
|
+
results: 'results',
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
static types(): { [key: string]: any } {
|
|
54
|
+
return {
|
|
55
|
+
requestId: 'string',
|
|
56
|
+
results: { 'type': 'array', 'itemType': AddContextsResponseBodyResults },
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
validate() {
|
|
61
|
+
if(Array.isArray(this.results)) {
|
|
62
|
+
$dara.Model.validateArray(this.results);
|
|
63
|
+
}
|
|
64
|
+
super.validate();
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
constructor(map?: { [key: string]: any }) {
|
|
68
|
+
super(map);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateContextStoreAPIKeyRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* Production Service Key
|
|
12
|
+
*/
|
|
13
|
+
name?: string;
|
|
14
|
+
static names(): { [key: string]: string } {
|
|
15
|
+
return {
|
|
16
|
+
name: 'name',
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
static types(): { [key: string]: any } {
|
|
21
|
+
return {
|
|
22
|
+
name: 'string',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
super.validate();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
constructor(map?: { [key: string]: any }) {
|
|
31
|
+
super(map);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CreateContextStoreAPIKeyResponseBody } from "./CreateContextStoreApikeyResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreateContextStoreAPIKeyResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CreateContextStoreAPIKeyResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: CreateContextStoreAPIKeyResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateContextStoreAPIKeyResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
9
|
+
*/
|
|
10
|
+
apiKey?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* Production Service Key
|
|
14
|
+
*/
|
|
15
|
+
name?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* 3B311FD9-A60B-55E0-A896-A0C73*********
|
|
19
|
+
*/
|
|
20
|
+
requestId?: string;
|
|
21
|
+
static names(): { [key: string]: string } {
|
|
22
|
+
return {
|
|
23
|
+
apiKey: 'apiKey',
|
|
24
|
+
name: 'name',
|
|
25
|
+
requestId: 'requestId',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
apiKey: 'string',
|
|
32
|
+
name: 'string',
|
|
33
|
+
requestId: 'string',
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
validate() {
|
|
38
|
+
super.validate();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
constructor(map?: { [key: string]: any }) {
|
|
42
|
+
super(map);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* sls-test-logstore
|
|
9
|
+
*/
|
|
10
|
+
logstore?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* sls-test-project
|
|
14
|
+
*/
|
|
15
|
+
project?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* Use the UTC time format: yyyy-MM-ddTHH:mm:ssZ
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* 1751508233000
|
|
22
|
+
*/
|
|
23
|
+
startTime?: string;
|
|
24
|
+
static names(): { [key: string]: string } {
|
|
25
|
+
return {
|
|
26
|
+
logstore: 'logstore',
|
|
27
|
+
project: 'project',
|
|
28
|
+
startTime: 'startTime',
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
static types(): { [key: string]: any } {
|
|
33
|
+
return {
|
|
34
|
+
logstore: 'string',
|
|
35
|
+
project: 'string',
|
|
36
|
+
startTime: 'string',
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
validate() {
|
|
41
|
+
super.validate();
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
constructor(map?: { [key: string]: any }) {
|
|
45
|
+
super(map);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export class CreateContextStoreRequestConfig extends $dara.Model {
|
|
50
|
+
metadataField?: { [key: string]: string };
|
|
51
|
+
source?: CreateContextStoreRequestConfigSource;
|
|
52
|
+
static names(): { [key: string]: string } {
|
|
53
|
+
return {
|
|
54
|
+
metadataField: 'metadataField',
|
|
55
|
+
source: 'source',
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
static types(): { [key: string]: any } {
|
|
60
|
+
return {
|
|
61
|
+
metadataField: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
62
|
+
source: CreateContextStoreRequestConfigSource,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
validate() {
|
|
67
|
+
if(this.metadataField) {
|
|
68
|
+
$dara.Model.validateMap(this.metadataField);
|
|
69
|
+
}
|
|
70
|
+
if(this.source && typeof (this.source as any).validate === 'function') {
|
|
71
|
+
(this.source as any).validate();
|
|
72
|
+
}
|
|
73
|
+
super.validate();
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
constructor(map?: { [key: string]: any }) {
|
|
77
|
+
super(map);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export class CreateContextStoreRequestDataset extends $dara.Model {
|
|
82
|
+
/**
|
|
83
|
+
* @example
|
|
84
|
+
* test_dataset
|
|
85
|
+
*/
|
|
86
|
+
name?: string;
|
|
87
|
+
static names(): { [key: string]: string } {
|
|
88
|
+
return {
|
|
89
|
+
name: 'name',
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
static types(): { [key: string]: any } {
|
|
94
|
+
return {
|
|
95
|
+
name: 'string',
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
validate() {
|
|
100
|
+
super.validate();
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
constructor(map?: { [key: string]: any }) {
|
|
104
|
+
super(map);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export class CreateContextStoreRequest extends $dara.Model {
|
|
109
|
+
config?: CreateContextStoreRequestConfig;
|
|
110
|
+
/**
|
|
111
|
+
* @remarks
|
|
112
|
+
* This parameter is required.
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* test-context-store
|
|
116
|
+
*/
|
|
117
|
+
contextStoreName?: string;
|
|
118
|
+
/**
|
|
119
|
+
* @remarks
|
|
120
|
+
* This parameter is required.
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* memory
|
|
124
|
+
*/
|
|
125
|
+
contextType?: string;
|
|
126
|
+
dataset?: CreateContextStoreRequestDataset;
|
|
127
|
+
/**
|
|
128
|
+
* @example
|
|
129
|
+
* desc
|
|
130
|
+
*/
|
|
131
|
+
description?: string;
|
|
132
|
+
static names(): { [key: string]: string } {
|
|
133
|
+
return {
|
|
134
|
+
config: 'config',
|
|
135
|
+
contextStoreName: 'contextStoreName',
|
|
136
|
+
contextType: 'contextType',
|
|
137
|
+
dataset: 'dataset',
|
|
138
|
+
description: 'description',
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
static types(): { [key: string]: any } {
|
|
143
|
+
return {
|
|
144
|
+
config: CreateContextStoreRequestConfig,
|
|
145
|
+
contextStoreName: 'string',
|
|
146
|
+
contextType: 'string',
|
|
147
|
+
dataset: CreateContextStoreRequestDataset,
|
|
148
|
+
description: 'string',
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
validate() {
|
|
153
|
+
if(this.config && typeof (this.config as any).validate === 'function') {
|
|
154
|
+
(this.config as any).validate();
|
|
155
|
+
}
|
|
156
|
+
if(this.dataset && typeof (this.dataset as any).validate === 'function') {
|
|
157
|
+
(this.dataset as any).validate();
|
|
158
|
+
}
|
|
159
|
+
super.validate();
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
constructor(map?: { [key: string]: any }) {
|
|
163
|
+
super(map);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CreateContextStoreResponseBody } from "./CreateContextStoreResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreateContextStoreResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CreateContextStoreResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: CreateContextStoreResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateContextStoreResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* E5B1D3D4-BB28-5996-8AD2-***********
|
|
9
|
+
*/
|
|
10
|
+
requestId?: string;
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
requestId: 'requestId',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
requestId: 'string',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
validate() {
|
|
24
|
+
super.validate();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
constructor(map?: { [key: string]: any }) {
|
|
28
|
+
super(map);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DeleteContextRequest extends $dara.Model {
|
|
6
|
+
static names(): { [key: string]: string } {
|
|
7
|
+
return {
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
static types(): { [key: string]: any } {
|
|
12
|
+
return {
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
validate() {
|
|
17
|
+
super.validate();
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
constructor(map?: { [key: string]: any }) {
|
|
21
|
+
super(map);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|