@stack-spot/portal-network 0.195.0 → 0.196.0-beta.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/CHANGELOG.md +86 -0
- package/dist/api/agent-tools.d.ts +135 -148
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js +41 -4
- package/dist/api/agent-tools.js.map +1 -1
- package/dist/api/agent.d.ts +55 -55
- package/dist/api/agent.d.ts.map +1 -1
- package/dist/api/ai.d.ts +377 -103
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +383 -156
- package/dist/api/ai.js.map +1 -1
- package/dist/api/cloudPlatformHorizon.d.ts +178 -9
- package/dist/api/cloudPlatformHorizon.d.ts.map +1 -1
- package/dist/api/cloudPlatformHorizon.js +69 -1
- package/dist/api/cloudPlatformHorizon.js.map +1 -1
- package/dist/api/codeShift.d.ts +315 -62
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +153 -12
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/discover.d.ts +23 -12
- package/dist/api/discover.d.ts.map +1 -1
- package/dist/api/discover.js +10 -0
- package/dist/api/discover.js.map +1 -1
- package/dist/api-addresses.d.ts.map +1 -1
- package/dist/client/account.d.ts +233 -233
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/agent-tools.d.ts +152 -126
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +29 -2
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/agent.d.ts +46 -46
- package/dist/client/agent.d.ts.map +1 -1
- package/dist/client/ai.d.ts +120 -81
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +29 -2
- package/dist/client/ai.js.map +1 -1
- package/dist/client/api-management.d.ts +2 -2
- package/dist/client/cloud-account.d.ts +13 -13
- package/dist/client/cloud-platform-horizon.d.ts +38 -19
- package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
- package/dist/client/cloud-platform-horizon.js +19 -1
- package/dist/client/cloud-platform-horizon.js.map +1 -1
- package/dist/client/cloud-platform.d.ts +50 -50
- package/dist/client/cloud-runtimes.d.ts +4 -4
- package/dist/client/cloud-services.d.ts +17 -17
- package/dist/client/cloud-services.d.ts.map +1 -1
- package/dist/client/code-shift.d.ts +349 -258
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +82 -1
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/content.d.ts +127 -132
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/data-integration.d.ts +55 -55
- package/dist/client/data-integration.d.ts.map +1 -1
- package/dist/client/discover.d.ts +15 -9
- package/dist/client/discover.d.ts.map +1 -1
- package/dist/client/discover.js +208 -0
- package/dist/client/discover.js.map +1 -1
- package/dist/client/event-bus.d.ts.map +1 -1
- package/dist/client/gen-ai-inference.d.ts +20 -20
- package/dist/client/insights.d.ts +7 -7
- package/dist/client/notification.d.ts +10 -10
- package/dist/client/runtime-manager.d.ts +8 -8
- package/dist/client/types.d.ts +14 -0
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/workflow.d.ts +10 -10
- package/dist/client/workspace-ai.d.ts +53 -53
- package/dist/client/workspace-manager.d.ts +77 -77
- package/dist/client/workspace-search.d.ts +2 -2
- package/dist/client/workspace.d.ts +58 -105
- package/dist/client/workspace.d.ts.map +1 -1
- package/dist/error/dictionary/cloud-platform.d.ts +6 -0
- package/dist/error/dictionary/cloud-platform.d.ts.map +1 -1
- package/dist/error/dictionary/cloud-platform.js +6 -0
- package/dist/error/dictionary/cloud-platform.js.map +1 -1
- package/dist/utils/StreamedJson.d.ts.map +1 -1
- package/dist/utils/StreamedJson.js +9 -1
- package/dist/utils/StreamedJson.js.map +1 -1
- package/package.json +2 -2
- package/src/api/agent-tools.ts +182 -150
- package/src/api/ai.ts +733 -185
- package/src/api/cloudPlatformHorizon.ts +412 -9
- package/src/api/codeShift.ts +607 -69
- package/src/api/discover.ts +35 -12
- package/src/client/agent-tools.ts +20 -2
- package/src/client/ai.ts +25 -10
- package/src/client/cloud-platform-horizon.ts +12 -4
- package/src/client/code-shift.ts +50 -1
- package/src/client/discover.ts +220 -3
- package/src/client/types.ts +17 -2
- package/src/error/dictionary/cloud-platform.ts +6 -0
- package/src/utils/StreamedJson.tsx +9 -2
|
@@ -37,6 +37,9 @@ export declare const scfDictionary: {
|
|
|
37
37
|
SCF_VPN_ERROR: string;
|
|
38
38
|
SCF_VPN_NOT_FOUND_ERROR: string;
|
|
39
39
|
SCF_VPN_NOT_READY_ERROR: string;
|
|
40
|
+
SCF_DNS_ZONE_NOT_EMPTY_ERROR: string;
|
|
41
|
+
SCF_FOLDER_NOT_EMPTY_ERROR: string;
|
|
42
|
+
SCF_PROJECT_NOT_EMPTY_ERROR: string;
|
|
40
43
|
};
|
|
41
44
|
pt: {
|
|
42
45
|
SCF_CERTIFICATE_ERROR: string;
|
|
@@ -76,6 +79,9 @@ export declare const scfDictionary: {
|
|
|
76
79
|
SCF_VPN_ERROR: string;
|
|
77
80
|
SCF_VPN_NOT_FOUND_ERROR: string;
|
|
78
81
|
SCF_VPN_NOT_READY_ERROR: string;
|
|
82
|
+
SCF_DNS_ZONE_NOT_EMPTY_ERROR: string;
|
|
83
|
+
SCF_FOLDER_NOT_EMPTY_ERROR: string;
|
|
84
|
+
SCF_PROJECT_NOT_EMPTY_ERROR: string;
|
|
79
85
|
};
|
|
80
86
|
};
|
|
81
87
|
//# sourceMappingURL=cloud-platform.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-platform.d.ts","sourceRoot":"","sources":["../../../src/error/dictionary/cloud-platform.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"cloud-platform.d.ts","sourceRoot":"","sources":["../../../src/error/dictionary/cloud-platform.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqFJ,CAAA"}
|
|
@@ -37,6 +37,9 @@ export const scfDictionary = {
|
|
|
37
37
|
SCF_VPN_ERROR: 'VPN operation failed.',
|
|
38
38
|
SCF_VPN_NOT_FOUND_ERROR: 'VPN with ID {1} not found.',
|
|
39
39
|
SCF_VPN_NOT_READY_ERROR: 'VPN with ID {1} not ready.',
|
|
40
|
+
SCF_DNS_ZONE_NOT_EMPTY_ERROR: 'DNS Zone with ID {1} is not empty.',
|
|
41
|
+
SCF_FOLDER_NOT_EMPTY_ERROR: 'Folder with ID {1} is not empty.',
|
|
42
|
+
SCF_PROJECT_NOT_EMPTY_ERROR: 'Project with ID {1} is not empty.',
|
|
40
43
|
},
|
|
41
44
|
pt: {
|
|
42
45
|
SCF_CERTIFICATE_ERROR: 'Falha na operação de Certificado.',
|
|
@@ -76,6 +79,9 @@ export const scfDictionary = {
|
|
|
76
79
|
SCF_VPN_ERROR: 'Falha na operação de VPN.',
|
|
77
80
|
SCF_VPN_NOT_FOUND_ERROR: 'VPN com ID {1} não encontrada.',
|
|
78
81
|
SCF_VPN_NOT_READY_ERROR: 'VPN com ID {1} não está pronta.',
|
|
82
|
+
SCF_DNS_ZONE_NOT_EMPTY_ERROR: 'DNS Zone com ID {1} não está vazia.',
|
|
83
|
+
SCF_FOLDER_NOT_EMPTY_ERROR: 'Folder com ID {1} não está vazia.',
|
|
84
|
+
SCF_PROJECT_NOT_EMPTY_ERROR: 'Project com ID {1} não está vazia.',
|
|
79
85
|
},
|
|
80
86
|
};
|
|
81
87
|
//# sourceMappingURL=cloud-platform.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-platform.js","sourceRoot":"","sources":["../../../src/error/dictionary/cloud-platform.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,EAAE,EAAE;QACF,qBAAqB,EAAE,+BAA+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;;OAEG;IACH,MAAM;CAGP"}
|
|
@@ -67,7 +67,15 @@ export class StreamedJson {
|
|
|
67
67
|
if (this.error)
|
|
68
68
|
return;
|
|
69
69
|
if (event.data) {
|
|
70
|
-
|
|
70
|
+
let json;
|
|
71
|
+
try {
|
|
72
|
+
json = JSON.parse(event.data);
|
|
73
|
+
}
|
|
74
|
+
catch (e) {
|
|
75
|
+
// eslint-disable-next-line no-console
|
|
76
|
+
console.warn('Mal formed JSON in streaming:', event.data);
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
71
79
|
await this.transform?.(json, this.data);
|
|
72
80
|
this.merge(json, this.data);
|
|
73
81
|
if (new Date().getTime() - lastChangeCall >= minChangeIntervalMS) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StreamedJson.js","sourceRoot":"","sources":["../../src/utils/StreamedJson.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAgC1D;;GAEG;AACH,MAAM,OAAO,YAAY;IASvB;;;OAGG;IACH,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,mBAAmB,GAAG,EAAE,EAAE,SAAS,EAAE,UAAU,EAAwB;QAZ7G;;;;mBAA2C,EAAE;WAAA;QAC7C;;;;;WAA8B;QAC9B;;;;mBAAmB,EAAE;WAAA;QACrB;;;;mBAAc,IAAI,kBAAkB,EAAK;WAAA;QACzC;;;;;WAA4C;QAC5C;;;;;WAAyE;QACzE;;;;;WAAwB;QAO9B,IAAI,CAAC,eAAe,GAAG,eAAe,CAAA;QACtC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;QAC1B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC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,CAAC;QACD,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QACrC,OAAO,GAAG,EAAE;YACV,MAAM,KAAK,GAAG,IAAI,CAAC,iBAAiB,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAA;YACpE,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,IAAI,CAAC;gBAAE,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;QACjF,CAAC,CAAA;IACH,CAAC;IAED,SAAS;QACP,IAAI,IAAI,CAAC,KAAK;YAAE,OAAO,OAAO,CAAA;QAC9B,IAAI,IAAI,CAAC,WAAW,CAAC,QAAQ;YAAE,OAAO,SAAS,CAAA;QAC/C,OAAO,SAAS,CAAA;IAClB,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,KAAK,CAAA;IACnB,CAAC;IAED;;OAEG;IACH,MAAM;QACJ,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC,IAAI,mBAAmB,EAAE,CAAC,CAAA;IACxD,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stack-spot/portal-network",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.196.0-beta.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"generate": "tsx ./scripts/generate-apis.ts"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@stack-spot/auth": "^7.
|
|
18
|
+
"@stack-spot/auth": "^7.1.0",
|
|
19
19
|
"@stack-spot/opa": "^2.6.1",
|
|
20
20
|
"@stack-spot/portal-translate": "^2.1.0",
|
|
21
21
|
"@tanstack/react-query": "^5.59.15",
|
package/src/api/agent-tools.ts
CHANGED
|
@@ -51,6 +51,21 @@ export type ToolkitRequest = {
|
|
|
51
51
|
/** Visibility level (default 'PERSONAL') */
|
|
52
52
|
visibility_level?: VisibilityLevelEnum;
|
|
53
53
|
};
|
|
54
|
+
export type ToolkitType = "mcp" | "web_request";
|
|
55
|
+
export type ToolkitMcpRequest = {
|
|
56
|
+
/** Toolkit name (up to 150 characters, required) */
|
|
57
|
+
name: string;
|
|
58
|
+
/** Toolkit description (up to 1024 characters, optional) */
|
|
59
|
+
description?: string | null;
|
|
60
|
+
/** Toolkit avatar (text base64, optional) */
|
|
61
|
+
avatar?: string | null;
|
|
62
|
+
/** Visibility level (default 'PERSONAL') */
|
|
63
|
+
visibility_level?: VisibilityLevelEnum;
|
|
64
|
+
url: string;
|
|
65
|
+
toolkit_type: ToolkitType;
|
|
66
|
+
/** List of secret IDs (optional) */
|
|
67
|
+
secrets?: string[] | null;
|
|
68
|
+
};
|
|
54
69
|
export type CreatedResponse = {
|
|
55
70
|
id: string;
|
|
56
71
|
};
|
|
@@ -80,6 +95,8 @@ export type CustomToolkitResponse = {
|
|
|
80
95
|
secret_id?: string | null;
|
|
81
96
|
secrets?: string[] | null;
|
|
82
97
|
is_usable_by_others: boolean;
|
|
98
|
+
url?: string | null;
|
|
99
|
+
toolkit_type?: ToolkitType | null;
|
|
83
100
|
};
|
|
84
101
|
export type ToolkitUpdateRequest = {
|
|
85
102
|
/** Toolkit name (up to 150 characters, optional) */
|
|
@@ -95,6 +112,22 @@ export type ToolkitUpdateRequest = {
|
|
|
95
112
|
/** List of secret IDs (optional) */
|
|
96
113
|
secrets?: string[] | null;
|
|
97
114
|
};
|
|
115
|
+
export type ToolkitMcpUpdateRequest = {
|
|
116
|
+
/** Toolkit name (up to 150 characters, optional) */
|
|
117
|
+
name?: string | null;
|
|
118
|
+
/** Toolkit description (up to 1024 characters, optional) */
|
|
119
|
+
description?: string | null;
|
|
120
|
+
/** Toolkit avatar (text base64, optional) */
|
|
121
|
+
avatar?: string | null;
|
|
122
|
+
/** Visibility level (optional) */
|
|
123
|
+
visibility_level?: VisibilityLevelEnum | null;
|
|
124
|
+
/** IAM secret ID (optional) */
|
|
125
|
+
secret_id?: string | null;
|
|
126
|
+
/** List of secret IDs (optional) */
|
|
127
|
+
secrets?: string[] | null;
|
|
128
|
+
/** MCP Server URL */
|
|
129
|
+
url?: string | null;
|
|
130
|
+
};
|
|
98
131
|
export type ToolkitForkRequest = {
|
|
99
132
|
/** Toolkit name (up to 150 characters, required) */
|
|
100
133
|
name: string;
|
|
@@ -104,148 +137,7 @@ export type ToolkitForkRequest = {
|
|
|
104
137
|
avatar?: string | null;
|
|
105
138
|
};
|
|
106
139
|
export type HttpMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
107
|
-
export type
|
|
108
|
-
$ref: string;
|
|
109
|
-
summary?: string | null;
|
|
110
|
-
description?: string | null;
|
|
111
|
-
[key: string]: any;
|
|
112
|
-
};
|
|
113
|
-
export type DataType = "null" | "string" | "number" | "integer" | "boolean" | "array" | "object";
|
|
114
|
-
export type Discriminator = {
|
|
115
|
-
propertyName: string;
|
|
116
|
-
mapping?: {
|
|
117
|
-
[key: string]: string;
|
|
118
|
-
} | null;
|
|
119
|
-
[key: string]: any;
|
|
120
|
-
};
|
|
121
|
-
export type Xml = {
|
|
122
|
-
name?: string | null;
|
|
123
|
-
"namespace"?: string | null;
|
|
124
|
-
prefix?: string | null;
|
|
125
|
-
attribute?: boolean;
|
|
126
|
-
wrapped?: boolean;
|
|
127
|
-
[key: string]: any;
|
|
128
|
-
};
|
|
129
|
-
export type ExternalDocumentation = {
|
|
130
|
-
description?: string | null;
|
|
131
|
-
url: string;
|
|
132
|
-
[key: string]: any;
|
|
133
|
-
};
|
|
134
|
-
export type Schema = {
|
|
135
|
-
allOf?: (Reference | Schema)[] | null;
|
|
136
|
-
anyOf?: (Reference | Schema)[] | null;
|
|
137
|
-
oneOf?: (Reference | Schema)[] | null;
|
|
138
|
-
not?: Reference | Schema | null;
|
|
139
|
-
"if"?: Reference | Schema | null;
|
|
140
|
-
then?: Reference | Schema | null;
|
|
141
|
-
"else"?: Reference | Schema | null;
|
|
142
|
-
dependentSchemas?: {
|
|
143
|
-
[key: string]: Reference | Schema;
|
|
144
|
-
} | null;
|
|
145
|
-
prefixItems?: (Reference | Schema)[] | null;
|
|
146
|
-
items?: Reference | Schema | null;
|
|
147
|
-
contains?: Reference | Schema | null;
|
|
148
|
-
properties?: {
|
|
149
|
-
[key: string]: Reference | Schema;
|
|
150
|
-
} | null;
|
|
151
|
-
patternProperties?: {
|
|
152
|
-
[key: string]: Reference | Schema;
|
|
153
|
-
} | null;
|
|
154
|
-
additionalProperties?: Reference | Schema | boolean | null;
|
|
155
|
-
propertyNames?: Reference | Schema | null;
|
|
156
|
-
unevaluatedItems?: Reference | Schema | null;
|
|
157
|
-
unevaluatedProperties?: Reference | Schema | null;
|
|
158
|
-
"type"?: DataType | DataType[] | null;
|
|
159
|
-
"enum"?: any[] | null;
|
|
160
|
-
"const"?: any | null;
|
|
161
|
-
multipleOf?: number | null;
|
|
162
|
-
maximum?: number | null;
|
|
163
|
-
exclusiveMaximum?: number | null;
|
|
164
|
-
minimum?: number | null;
|
|
165
|
-
exclusiveMinimum?: number | null;
|
|
166
|
-
maxLength?: number | null;
|
|
167
|
-
minLength?: number | null;
|
|
168
|
-
pattern?: string | null;
|
|
169
|
-
maxItems?: number | null;
|
|
170
|
-
minItems?: number | null;
|
|
171
|
-
uniqueItems?: boolean | null;
|
|
172
|
-
maxContains?: number | null;
|
|
173
|
-
minContains?: number | null;
|
|
174
|
-
maxProperties?: number | null;
|
|
175
|
-
minProperties?: number | null;
|
|
176
|
-
required?: string[] | null;
|
|
177
|
-
dependentRequired?: {
|
|
178
|
-
[key: string]: string[];
|
|
179
|
-
} | null;
|
|
180
|
-
format?: string | null;
|
|
181
|
-
contentEncoding?: string | null;
|
|
182
|
-
contentMediaType?: string | null;
|
|
183
|
-
contentSchema?: Reference | Schema | null;
|
|
184
|
-
title?: string | null;
|
|
185
|
-
description?: string | null;
|
|
186
|
-
"default"?: any | null;
|
|
187
|
-
deprecated?: boolean | null;
|
|
188
|
-
readOnly?: boolean | null;
|
|
189
|
-
writeOnly?: boolean | null;
|
|
190
|
-
discriminator?: Discriminator | null;
|
|
191
|
-
xml?: Xml | null;
|
|
192
|
-
externalDocs?: ExternalDocumentation | null;
|
|
193
|
-
[key: string]: any;
|
|
194
|
-
};
|
|
195
|
-
export type Header = {
|
|
196
|
-
description?: string | null;
|
|
197
|
-
required?: boolean;
|
|
198
|
-
deprecated?: boolean;
|
|
199
|
-
style?: string | null;
|
|
200
|
-
explode?: boolean | null;
|
|
201
|
-
schema?: Reference | Schema | null;
|
|
202
|
-
content?: {
|
|
203
|
-
[key: string]: MediaType;
|
|
204
|
-
} | null;
|
|
205
|
-
[key: string]: any;
|
|
206
|
-
};
|
|
207
|
-
export type Encoding = {
|
|
208
|
-
contentType?: string | null;
|
|
209
|
-
headers?: {
|
|
210
|
-
[key: string]: Header | Reference;
|
|
211
|
-
} | null;
|
|
212
|
-
style?: string | null;
|
|
213
|
-
explode?: boolean | null;
|
|
214
|
-
allowReserved?: boolean;
|
|
215
|
-
[key: string]: any;
|
|
216
|
-
};
|
|
217
|
-
export type MediaType = {
|
|
218
|
-
schema?: Reference | Schema | null;
|
|
219
|
-
encoding?: {
|
|
220
|
-
[key: string]: Encoding;
|
|
221
|
-
} | null;
|
|
222
|
-
[key: string]: any;
|
|
223
|
-
};
|
|
224
|
-
export type ParameterLocation = "query" | "header" | "path" | "cookie";
|
|
225
|
-
export type Parameter = {
|
|
226
|
-
description?: string | null;
|
|
227
|
-
required?: boolean;
|
|
228
|
-
deprecated?: boolean;
|
|
229
|
-
style?: string | null;
|
|
230
|
-
explode?: boolean | null;
|
|
231
|
-
schema?: Reference | Schema | null;
|
|
232
|
-
content?: {
|
|
233
|
-
[key: string]: MediaType;
|
|
234
|
-
} | null;
|
|
235
|
-
name: string;
|
|
236
|
-
"in": ParameterLocation;
|
|
237
|
-
allowEmptyValue?: boolean;
|
|
238
|
-
allowReserved?: boolean;
|
|
239
|
-
[key: string]: any;
|
|
240
|
-
};
|
|
241
|
-
export type RequestBody = {
|
|
242
|
-
description?: string | null;
|
|
243
|
-
content: {
|
|
244
|
-
[key: string]: MediaType;
|
|
245
|
-
};
|
|
246
|
-
required?: boolean;
|
|
247
|
-
[key: string]: any;
|
|
248
|
-
};
|
|
140
|
+
export type JsonValue = any;
|
|
249
141
|
export type CustomToolRequest = {
|
|
250
142
|
/** Tool name (up to 256 characters, required) */
|
|
251
143
|
name: string;
|
|
@@ -256,9 +148,9 @@ export type CustomToolRequest = {
|
|
|
256
148
|
/** Endpoint URL (required, must use https schema) */
|
|
257
149
|
url: string;
|
|
258
150
|
/** Dict of parameters (optional) */
|
|
259
|
-
parameters?:
|
|
151
|
+
parameters?: JsonValue[] | null;
|
|
260
152
|
/** Dict of request body (optional) */
|
|
261
|
-
request_body?:
|
|
153
|
+
request_body?: JsonValue | null;
|
|
262
154
|
/** Response transformation (optional) */
|
|
263
155
|
response_transformation?: string | null;
|
|
264
156
|
};
|
|
@@ -290,10 +182,23 @@ export type AssignToolsToAgentRequest = {
|
|
|
290
182
|
builtin_tool_ids?: string[] | null;
|
|
291
183
|
custom_tools?: AssignCustomToolsAgentRequest[] | null;
|
|
292
184
|
sub_agents_ids?: string[] | null;
|
|
185
|
+
mcp_toolkit_ids?: string[] | null;
|
|
186
|
+
};
|
|
187
|
+
export type ToolkitMcpResponse = {
|
|
188
|
+
id?: string | null;
|
|
189
|
+
name?: string | null;
|
|
190
|
+
description?: string | null;
|
|
191
|
+
avatar?: string | null;
|
|
192
|
+
visibility_level?: string | null;
|
|
193
|
+
secret_id?: string | null;
|
|
194
|
+
secrets?: string[] | null;
|
|
195
|
+
url?: string | null;
|
|
196
|
+
toolkit_type?: ToolkitType | null;
|
|
293
197
|
};
|
|
294
198
|
export type AgentToolsResponse = {
|
|
295
199
|
builtin_toolkits?: BuiltinToolkitResponse[];
|
|
296
200
|
custom_toolkits?: CustomToolkitResponse[];
|
|
201
|
+
mcp_toolkits?: ToolkitMcpResponse[];
|
|
297
202
|
};
|
|
298
203
|
export type SchemaEnum = "OPENAI";
|
|
299
204
|
export type FunctionParameter = {
|
|
@@ -323,6 +228,8 @@ export type Function = {
|
|
|
323
228
|
strict: boolean;
|
|
324
229
|
};
|
|
325
230
|
export type OpenAiTool = {
|
|
231
|
+
/** Unique identifier for the tool */
|
|
232
|
+
id?: string | null;
|
|
326
233
|
/** The type of the tool; must be 'function' */
|
|
327
234
|
"type": "function";
|
|
328
235
|
/** The function associated with this tool */
|
|
@@ -370,6 +277,7 @@ export type KnowledgeSourcesConfigRequest = {
|
|
|
370
277
|
sealed?: boolean | null;
|
|
371
278
|
};
|
|
372
279
|
export type AgentMode = "autonomous" | "plan_approval" | "plan_and_critical_approval";
|
|
280
|
+
export type AgentMemory = "vector" | "buffer";
|
|
373
281
|
export type NewAgentRequest = {
|
|
374
282
|
/** LLM model name */
|
|
375
283
|
model_name?: string | null;
|
|
@@ -393,6 +301,7 @@ export type NewAgentRequest = {
|
|
|
393
301
|
builtin_tools_ids?: string[];
|
|
394
302
|
/** Custom tools to assign to the agent */
|
|
395
303
|
custom_tools?: AssignCustomToolsAgentRequest[] | null;
|
|
304
|
+
mcp_toolkit_ids?: string[] | null;
|
|
396
305
|
sub_agents_ids?: string[] | null;
|
|
397
306
|
detail_mode?: boolean;
|
|
398
307
|
structured_output?: string | null;
|
|
@@ -401,6 +310,8 @@ export type NewAgentRequest = {
|
|
|
401
310
|
} | null;
|
|
402
311
|
/** Agent mode */
|
|
403
312
|
mode?: AgentMode;
|
|
313
|
+
/** Agent memory */
|
|
314
|
+
memory?: AgentMemory;
|
|
404
315
|
/** Available models for this particular agent */
|
|
405
316
|
available_models_ids?: string[];
|
|
406
317
|
};
|
|
@@ -512,10 +423,30 @@ export type CustomToolkitDto = {
|
|
|
512
423
|
visibility_level: VisibilityLevelEnum;
|
|
513
424
|
creator_name: string;
|
|
514
425
|
is_usable_by_others: boolean;
|
|
426
|
+
url: string | null;
|
|
427
|
+
toolkit_type: ToolkitType | null;
|
|
428
|
+
};
|
|
429
|
+
export type SecretScope = "ACCOUNT" | "SCOPED" | "SPOT" | "USER" | "UNKNOWN";
|
|
430
|
+
export type SecretDto = {
|
|
431
|
+
id: string;
|
|
432
|
+
scope?: SecretScope | null;
|
|
433
|
+
};
|
|
434
|
+
export type ToolkitMcpdto = {
|
|
435
|
+
secrets: SecretDto[] | null;
|
|
436
|
+
name: string;
|
|
437
|
+
description?: string | null;
|
|
438
|
+
avatar?: string | null;
|
|
439
|
+
visibility_level?: VisibilityLevelEnum;
|
|
440
|
+
id?: string | null;
|
|
441
|
+
url?: string | null;
|
|
442
|
+
tools?: any[] | null;
|
|
443
|
+
/** Toolkit type */
|
|
444
|
+
toolkit_type?: ToolkitType | null;
|
|
515
445
|
};
|
|
516
446
|
export type AgentToolsDto = {
|
|
517
447
|
builtin_toolkits?: BuiltinToolkitDto[];
|
|
518
448
|
custom_toolkits?: CustomToolkitDto[];
|
|
449
|
+
mcp_toolkits?: ToolkitMcpdto[];
|
|
519
450
|
};
|
|
520
451
|
export type LlmSettingsModel = {
|
|
521
452
|
property_key?: string | null;
|
|
@@ -559,6 +490,7 @@ export type AgentModel = {
|
|
|
559
490
|
updated_by?: string | null;
|
|
560
491
|
updated_at?: string | null;
|
|
561
492
|
available_llm_models?: AgentLlmModelDto[];
|
|
493
|
+
memory?: AgentMemory;
|
|
562
494
|
};
|
|
563
495
|
export type UpdateAgentRequest = {
|
|
564
496
|
use_only?: boolean | null;
|
|
@@ -585,6 +517,7 @@ export type UpdateAgentRequest = {
|
|
|
585
517
|
sub_agents_ids?: string[];
|
|
586
518
|
/** Custom tools to assign to the agent */
|
|
587
519
|
custom_tools?: AssignCustomToolsAgentRequest[] | null;
|
|
520
|
+
mcp_toolkit_ids?: string[] | null;
|
|
588
521
|
detail_mode?: boolean | null;
|
|
589
522
|
structured_output?: string | null;
|
|
590
523
|
llm_settings?: {
|
|
@@ -594,6 +527,8 @@ export type UpdateAgentRequest = {
|
|
|
594
527
|
mode?: AgentMode | null;
|
|
595
528
|
/** Available models for this particular agent */
|
|
596
529
|
available_models_ids?: string[];
|
|
530
|
+
/** Agent memory */
|
|
531
|
+
memory?: AgentMemory;
|
|
597
532
|
};
|
|
598
533
|
export type ForkAgentRequest = {
|
|
599
534
|
/** Agent slug to fork */
|
|
@@ -680,6 +615,31 @@ export type ToolkitForkResponse = {
|
|
|
680
615
|
/** List of toolkit IDs that failed to fork */
|
|
681
616
|
error_ids: string[];
|
|
682
617
|
};
|
|
618
|
+
export type PaginatedResponseCustomToolkitSimpleResponse = {
|
|
619
|
+
total_pages: number;
|
|
620
|
+
items: CustomToolkitSimpleResponse[];
|
|
621
|
+
};
|
|
622
|
+
export type ParametersModel = {
|
|
623
|
+
properties: {
|
|
624
|
+
[key: string]: {
|
|
625
|
+
[key: string]: any;
|
|
626
|
+
};
|
|
627
|
+
};
|
|
628
|
+
required?: string[] | null;
|
|
629
|
+
"type": string;
|
|
630
|
+
additionalProperties: boolean;
|
|
631
|
+
};
|
|
632
|
+
export type FunctionModel = {
|
|
633
|
+
name: string;
|
|
634
|
+
description: string;
|
|
635
|
+
parameters: ParametersModel;
|
|
636
|
+
strict?: boolean;
|
|
637
|
+
};
|
|
638
|
+
export type FunctionItem = {
|
|
639
|
+
"type": string;
|
|
640
|
+
"function": FunctionModel;
|
|
641
|
+
};
|
|
642
|
+
export type FunctionsResponse = FunctionItem[];
|
|
683
643
|
/**
|
|
684
644
|
* Health Check
|
|
685
645
|
*/
|
|
@@ -774,13 +734,13 @@ export function listToolkitsV1ToolkitsGet({ visibility, xAccountId, xUsername, x
|
|
|
774
734
|
/**
|
|
775
735
|
* Create Toolkit
|
|
776
736
|
*/
|
|
777
|
-
export function createToolkitV1ToolkitsPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization,
|
|
737
|
+
export function createToolkitV1ToolkitsPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, body }: {
|
|
778
738
|
xAccountId?: string | null;
|
|
779
739
|
xUsername?: string | null;
|
|
780
740
|
xUserId?: string | null;
|
|
781
741
|
xUserFullName?: string | null;
|
|
782
742
|
authorization: string;
|
|
783
|
-
|
|
743
|
+
body: ToolkitRequest | ToolkitMcpRequest;
|
|
784
744
|
}, opts?: Oazapfts.RequestOpts) {
|
|
785
745
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
786
746
|
status: 201;
|
|
@@ -793,7 +753,7 @@ export function createToolkitV1ToolkitsPost({ xAccountId, xUsername, xUserId, xU
|
|
|
793
753
|
}>("/v1/toolkits", oazapfts.json({
|
|
794
754
|
...opts,
|
|
795
755
|
method: "POST",
|
|
796
|
-
body
|
|
756
|
+
body,
|
|
797
757
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
798
758
|
"x-account-id": xAccountId,
|
|
799
759
|
"x-username": xUsername,
|
|
@@ -836,14 +796,14 @@ export function getToolkitV1ToolkitsToolkitIdGet({ toolkitId, xAccountId, xUsern
|
|
|
836
796
|
/**
|
|
837
797
|
* Update Toolkit
|
|
838
798
|
*/
|
|
839
|
-
export function updateToolkitV1ToolkitsToolkitIdPatch({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization,
|
|
799
|
+
export function updateToolkitV1ToolkitsToolkitIdPatch({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, body }: {
|
|
840
800
|
toolkitId: string;
|
|
841
801
|
xAccountId?: string | null;
|
|
842
802
|
xUsername?: string | null;
|
|
843
803
|
xUserId?: string | null;
|
|
844
804
|
xUserFullName?: string | null;
|
|
845
805
|
authorization: string;
|
|
846
|
-
|
|
806
|
+
body: ToolkitUpdateRequest | ToolkitMcpUpdateRequest;
|
|
847
807
|
}, opts?: Oazapfts.RequestOpts) {
|
|
848
808
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
849
809
|
status: 204;
|
|
@@ -855,7 +815,7 @@ export function updateToolkitV1ToolkitsToolkitIdPatch({ toolkitId, xAccountId, x
|
|
|
855
815
|
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}`, oazapfts.json({
|
|
856
816
|
...opts,
|
|
857
817
|
method: "PATCH",
|
|
858
|
-
body
|
|
818
|
+
body,
|
|
859
819
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
860
820
|
"x-account-id": xAccountId,
|
|
861
821
|
"x-username": xUsername,
|
|
@@ -2180,3 +2140,75 @@ export function internalForkToolkitsByIdsV1SpotToolkitsForkPost({ xAccountId, xU
|
|
|
2180
2140
|
})
|
|
2181
2141
|
})));
|
|
2182
2142
|
}
|
|
2143
|
+
/**
|
|
2144
|
+
* List Toolkits
|
|
2145
|
+
*/
|
|
2146
|
+
export function listToolkitsV2ToolkitsGet({ name, visibilityList, size, page, order, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2147
|
+
name?: string | null;
|
|
2148
|
+
visibilityList?: VisibilityLevelEnum[];
|
|
2149
|
+
size?: number;
|
|
2150
|
+
page?: number;
|
|
2151
|
+
order?: OrderEnum | null;
|
|
2152
|
+
xAccountId?: string | null;
|
|
2153
|
+
xUsername?: string | null;
|
|
2154
|
+
xUserId?: string | null;
|
|
2155
|
+
xUserFullName?: string | null;
|
|
2156
|
+
authorization: string;
|
|
2157
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2158
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2159
|
+
status: 200;
|
|
2160
|
+
data: PaginatedResponseCustomToolkitSimpleResponse;
|
|
2161
|
+
} | {
|
|
2162
|
+
status: 404;
|
|
2163
|
+
} | {
|
|
2164
|
+
status: 422;
|
|
2165
|
+
data: HttpValidationError;
|
|
2166
|
+
}>(`/v2/toolkits${QS.query(QS.explode({
|
|
2167
|
+
name,
|
|
2168
|
+
visibility_list: visibilityList,
|
|
2169
|
+
size,
|
|
2170
|
+
page,
|
|
2171
|
+
order
|
|
2172
|
+
}))}`, {
|
|
2173
|
+
...opts,
|
|
2174
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2175
|
+
"x-account-id": xAccountId,
|
|
2176
|
+
"x-username": xUsername,
|
|
2177
|
+
"x-user-id": xUserId,
|
|
2178
|
+
"x-user-full-name": xUserFullName,
|
|
2179
|
+
authorization
|
|
2180
|
+
})
|
|
2181
|
+
}));
|
|
2182
|
+
}
|
|
2183
|
+
/**
|
|
2184
|
+
* List Mcp Tools
|
|
2185
|
+
*/
|
|
2186
|
+
export function listMcpToolsV1McpToolsToolkitIdGet({ toolkitId, cacheControl, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2187
|
+
toolkitId: string;
|
|
2188
|
+
cacheControl?: string | null;
|
|
2189
|
+
xAccountId?: string | null;
|
|
2190
|
+
xUsername?: string | null;
|
|
2191
|
+
xUserId?: string | null;
|
|
2192
|
+
xUserFullName?: string | null;
|
|
2193
|
+
authorization: string;
|
|
2194
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2195
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2196
|
+
status: 200;
|
|
2197
|
+
data: FunctionsResponse;
|
|
2198
|
+
} | {
|
|
2199
|
+
status: 404;
|
|
2200
|
+
} | {
|
|
2201
|
+
status: 422;
|
|
2202
|
+
data: HttpValidationError;
|
|
2203
|
+
}>(`/v1/mcp-tools/${encodeURIComponent(toolkitId)}`, {
|
|
2204
|
+
...opts,
|
|
2205
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2206
|
+
"cache-control": cacheControl,
|
|
2207
|
+
"x-account-id": xAccountId,
|
|
2208
|
+
"x-username": xUsername,
|
|
2209
|
+
"x-user-id": xUserId,
|
|
2210
|
+
"x-user-full-name": xUserFullName,
|
|
2211
|
+
authorization
|
|
2212
|
+
})
|
|
2213
|
+
}));
|
|
2214
|
+
}
|