@stack-spot/portal-network 1.0.0-betaadp.3 → 1.0.0-dev.1768423147036
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 +633 -0
- package/dist/api/account.d.ts +413 -277
- package/dist/api/account.d.ts.map +1 -1
- package/dist/api/account.js +261 -176
- package/dist/api/account.js.map +1 -1
- package/dist/api/accountAssetManager.d.ts +309 -0
- package/dist/api/accountAssetManager.d.ts.map +1 -0
- package/dist/api/accountAssetManager.js +169 -0
- package/dist/api/accountAssetManager.js.map +1 -0
- package/dist/api/agent-tools.d.ts +818 -261
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js +245 -50
- 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 +488 -98
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +426 -146
- package/dist/api/ai.js.map +1 -1
- package/dist/api/cloudPlatform.d.ts +374 -221
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +299 -93
- package/dist/api/cloudPlatform.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 +1125 -83
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +538 -16
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/dataIntegration.d.ts +291 -1
- package/dist/api/dataIntegration.d.ts.map +1 -1
- package/dist/api/dataIntegration.js +254 -0
- package/dist/api/dataIntegration.js.map +1 -1
- package/dist/api/discover.d.ts +98 -12
- package/dist/api/discover.d.ts.map +1 -1
- package/dist/api/discover.js +78 -2
- package/dist/api/discover.js.map +1 -1
- package/dist/api/edpBfa.d.ts +215 -0
- package/dist/api/edpBfa.d.ts.map +1 -0
- package/dist/api/edpBfa.js +87 -0
- package/dist/api/edpBfa.js.map +1 -0
- package/dist/api/genAiInference.d.ts +22 -2
- package/dist/api/genAiInference.d.ts.map +1 -1
- package/dist/api/genAiInference.js +22 -3
- package/dist/api/genAiInference.js.map +1 -1
- package/dist/api/workflows.d.ts +68 -5
- package/dist/api/workflows.d.ts.map +1 -1
- package/dist/api/workflows.js +16 -0
- package/dist/api/workflows.js.map +1 -1
- package/dist/api/workspace-ai.d.ts +41 -0
- package/dist/api/workspace-ai.d.ts.map +1 -1
- package/dist/api/workspace-ai.js +34 -0
- package/dist/api/workspace-ai.js.map +1 -1
- package/dist/api/workspaceManager.d.ts +16 -10
- package/dist/api/workspaceManager.d.ts.map +1 -1
- package/dist/api/workspaceManager.js +10 -0
- package/dist/api/workspaceManager.js.map +1 -1
- package/dist/api-addresses.d.ts +20 -18
- package/dist/api-addresses.d.ts.map +1 -1
- package/dist/api-addresses.js +81 -21
- package/dist/api-addresses.js.map +1 -1
- package/dist/apis-itau.json +241 -0
- package/dist/apis.json +17 -1
- package/dist/client/account-asset-manager.d.ts +112 -0
- package/dist/client/account-asset-manager.d.ts.map +1 -0
- package/dist/client/account-asset-manager.js +160 -0
- package/dist/client/account-asset-manager.js.map +1 -0
- package/dist/client/account.d.ts +265 -242
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +80 -34
- package/dist/client/account.js.map +1 -1
- package/dist/client/agent-tools.d.ts +295 -121
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +166 -12
- 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 +265 -79
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +268 -24
- package/dist/client/ai.js.map +1 -1
- package/dist/client/api-management.d.ts +10 -1
- package/dist/client/api-management.d.ts.map +1 -1
- package/dist/client/api-management.js +11 -2
- package/dist/client/api-management.js.map +1 -1
- 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 +213 -46
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +168 -33
- package/dist/client/cloud-platform.js.map +1 -1
- 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 +535 -162
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +296 -7
- 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 +92 -53
- package/dist/client/data-integration.d.ts.map +1 -1
- package/dist/client/data-integration.js +38 -2
- package/dist/client/data-integration.js.map +1 -1
- package/dist/client/discover.d.ts +31 -10
- package/dist/client/discover.d.ts.map +1 -1
- package/dist/client/discover.js +239 -3
- package/dist/client/discover.js.map +1 -1
- package/dist/client/edp-bfa.d.ts +16 -0
- package/dist/client/edp-bfa.d.ts.map +1 -0
- package/dist/client/edp-bfa.js +24 -0
- package/dist/client/edp-bfa.js.map +1 -0
- 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 +17 -10
- package/dist/client/notification.d.ts.map +1 -1
- package/dist/client/notification.js +10 -1
- package/dist/client/notification.js.map +1 -1
- package/dist/client/runtime-manager.d.ts +8 -8
- package/dist/client/secrets.d.ts.map +1 -1
- package/dist/client/secrets.js +1 -1
- package/dist/client/secrets.js.map +1 -1
- package/dist/client/types.d.ts +50 -7
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/workflow.d.ts +10 -10
- package/dist/client/workspace-ai.d.ts +65 -55
- package/dist/client/workspace-ai.d.ts.map +1 -1
- package/dist/client/workspace-ai.js +19 -9
- package/dist/client/workspace-ai.js.map +1 -1
- package/dist/client/workspace-manager.d.ts +115 -76
- package/dist/client/workspace-manager.d.ts.map +1 -1
- package/dist/client/workspace-manager.js +47 -2
- package/dist/client/workspace-manager.js.map +1 -1
- 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/DefaultAPIError.d.ts.map +1 -1
- package/dist/error/DefaultAPIError.js.map +1 -1
- package/dist/error/StackspotAPIError.d.ts +3 -4
- package/dist/error/StackspotAPIError.d.ts.map +1 -1
- package/dist/error/StackspotAPIError.js +3 -3
- package/dist/error/StackspotAPIError.js.map +1 -1
- package/dist/error/dictionary/accountAssetManager.d.ts +11 -0
- package/dist/error/dictionary/accountAssetManager.d.ts.map +1 -0
- package/dist/error/dictionary/accountAssetManager.js +11 -0
- package/dist/error/dictionary/accountAssetManager.js.map +1 -0
- package/dist/error/dictionary/cloud-platform.d.ts +76 -8
- package/dist/error/dictionary/cloud-platform.d.ts.map +1 -1
- package/dist/error/dictionary/cloud-platform.js +80 -12
- package/dist/error/dictionary/cloud-platform.js.map +1 -1
- package/dist/error/dictionary/workspace-ai.d.ts +9 -0
- package/dist/error/dictionary/workspace-ai.d.ts.map +1 -0
- package/dist/error/dictionary/workspace-ai.js +9 -0
- package/dist/error/dictionary/workspace-ai.js.map +1 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/network/NetworkClient.d.ts +4 -2
- package/dist/network/NetworkClient.d.ts.map +1 -1
- package/dist/network/NetworkClient.js +16 -4
- package/dist/network/NetworkClient.js.map +1 -1
- package/dist/network/types.d.ts +2 -0
- package/dist/network/types.d.ts.map +1 -1
- package/dist/utils/StreamedJson.d.ts +3 -1
- package/dist/utils/StreamedJson.d.ts.map +1 -1
- package/dist/utils/StreamedJson.js +23 -3
- package/dist/utils/StreamedJson.js.map +1 -1
- package/package.dev.json +3 -0
- package/package.json +10 -9
- package/package.stg.json +3 -0
- package/readme.md +40 -1
- package/src/api/account.ts +701 -540
- package/src/api/accountAssetManager.ts +771 -0
- package/src/api/agent-tools.ts +1354 -556
- package/src/api/ai.ts +891 -170
- package/src/api/cloudPlatform.ts +667 -298
- package/src/api/cloudPlatformHorizon.ts +412 -9
- package/src/api/codeShift.ts +2088 -97
- package/src/api/dataIntegration.ts +635 -1
- package/src/api/discover.ts +180 -14
- package/src/api/edpBfa.ts +472 -0
- package/src/api/genAiInference.ts +47 -4
- package/src/api/workflows.ts +100 -5
- package/src/api/workspace-ai.ts +83 -0
- package/src/api/workspaceManager.ts +25 -10
- package/src/api-addresses.ts +113 -38
- package/src/apis-itau.json +241 -0
- package/src/apis.json +17 -1
- package/src/client/account-asset-manager.ts +100 -0
- package/src/client/account.ts +71 -40
- package/src/client/agent-tools.ts +111 -18
- package/src/client/ai.ts +237 -24
- package/src/client/api-management.ts +7 -2
- package/src/client/cloud-platform-horizon.ts +12 -4
- package/src/client/cloud-platform.ts +101 -27
- package/src/client/code-shift.ts +196 -8
- package/src/client/data-integration.ts +28 -1
- package/src/client/discover.ts +238 -5
- package/src/client/edp-bfa.ts +24 -0
- package/src/client/notification.ts +6 -1
- package/src/client/secrets.ts +1 -1
- package/src/client/types.ts +55 -9
- package/src/client/workspace-ai.ts +37 -26
- package/src/client/workspace-manager.ts +31 -2
- package/src/error/DefaultAPIError.ts +5 -5
- package/src/error/StackspotAPIError.ts +4 -4
- package/src/error/dictionary/accountAssetManager.ts +12 -0
- package/src/error/dictionary/cloud-platform.ts +80 -12
- package/src/error/dictionary/workspace-ai.ts +10 -0
- package/src/index.ts +6 -3
- package/src/network/NetworkClient.ts +18 -6
- package/src/network/types.ts +3 -0
- package/src/utils/StreamedJson.tsx +19 -4
package/src/api/agent-tools.ts
CHANGED
|
@@ -33,6 +33,7 @@ export type HttpValidationError = {
|
|
|
33
33
|
detail?: ValidationError[];
|
|
34
34
|
};
|
|
35
35
|
export type VisibilityLevelEnum = "account" | "personal" | "shared" | "workspace" | "favorite";
|
|
36
|
+
export type ToolkitType = "mcp" | "web_request";
|
|
36
37
|
export type CustomToolkitSimpleResponse = {
|
|
37
38
|
id: string;
|
|
38
39
|
name: string;
|
|
@@ -40,6 +41,7 @@ export type CustomToolkitSimpleResponse = {
|
|
|
40
41
|
avatar?: string | null;
|
|
41
42
|
visibility_level: VisibilityLevelEnum;
|
|
42
43
|
creator_name: string | null;
|
|
44
|
+
toolkit_type?: ToolkitType | null;
|
|
43
45
|
};
|
|
44
46
|
export type ToolkitRequest = {
|
|
45
47
|
/** Toolkit name (up to 150 characters, required) */
|
|
@@ -51,6 +53,20 @@ export type ToolkitRequest = {
|
|
|
51
53
|
/** Visibility level (default 'PERSONAL') */
|
|
52
54
|
visibility_level?: VisibilityLevelEnum;
|
|
53
55
|
};
|
|
56
|
+
export type ToolkitMcpRequest = {
|
|
57
|
+
/** Toolkit name (up to 150 characters, required) */
|
|
58
|
+
name: string;
|
|
59
|
+
/** Toolkit description (up to 1024 characters, optional) */
|
|
60
|
+
description?: string | null;
|
|
61
|
+
/** Toolkit avatar (text base64, optional) */
|
|
62
|
+
avatar?: string | null;
|
|
63
|
+
/** Visibility level (default 'PERSONAL') */
|
|
64
|
+
visibility_level?: VisibilityLevelEnum;
|
|
65
|
+
url: string;
|
|
66
|
+
toolkit_type: ToolkitType;
|
|
67
|
+
/** List of secret IDs (optional) */
|
|
68
|
+
secrets?: string[] | null;
|
|
69
|
+
};
|
|
54
70
|
export type CreatedResponse = {
|
|
55
71
|
id: string;
|
|
56
72
|
};
|
|
@@ -76,10 +92,12 @@ export type CustomToolkitResponse = {
|
|
|
76
92
|
avatar?: string | null;
|
|
77
93
|
visibility_level: VisibilityLevelEnum;
|
|
78
94
|
creator_name: string | null;
|
|
95
|
+
toolkit_type?: ToolkitType | null;
|
|
79
96
|
tools: CustomToolkitToolResponse[];
|
|
80
97
|
secret_id?: string | null;
|
|
81
98
|
secrets?: string[] | null;
|
|
82
99
|
is_usable_by_others: boolean;
|
|
100
|
+
url?: string | null;
|
|
83
101
|
};
|
|
84
102
|
export type ToolkitUpdateRequest = {
|
|
85
103
|
/** Toolkit name (up to 150 characters, optional) */
|
|
@@ -95,6 +113,22 @@ export type ToolkitUpdateRequest = {
|
|
|
95
113
|
/** List of secret IDs (optional) */
|
|
96
114
|
secrets?: string[] | null;
|
|
97
115
|
};
|
|
116
|
+
export type ToolkitMcpUpdateRequest = {
|
|
117
|
+
/** Toolkit name (up to 150 characters, optional) */
|
|
118
|
+
name?: string | null;
|
|
119
|
+
/** Toolkit description (up to 1024 characters, optional) */
|
|
120
|
+
description?: string | null;
|
|
121
|
+
/** Toolkit avatar (text base64, optional) */
|
|
122
|
+
avatar?: string | null;
|
|
123
|
+
/** Visibility level (optional) */
|
|
124
|
+
visibility_level?: VisibilityLevelEnum | null;
|
|
125
|
+
/** IAM secret ID (optional) */
|
|
126
|
+
secret_id?: string | null;
|
|
127
|
+
/** List of secret IDs (optional) */
|
|
128
|
+
secrets?: string[] | null;
|
|
129
|
+
/** MCP Server URL */
|
|
130
|
+
url?: string | null;
|
|
131
|
+
};
|
|
98
132
|
export type ToolkitForkRequest = {
|
|
99
133
|
/** Toolkit name (up to 150 characters, required) */
|
|
100
134
|
name: string;
|
|
@@ -104,148 +138,7 @@ export type ToolkitForkRequest = {
|
|
|
104
138
|
avatar?: string | null;
|
|
105
139
|
};
|
|
106
140
|
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
|
-
};
|
|
141
|
+
export type JsonValue = any;
|
|
249
142
|
export type CustomToolRequest = {
|
|
250
143
|
/** Tool name (up to 256 characters, required) */
|
|
251
144
|
name: string;
|
|
@@ -256,9 +149,9 @@ export type CustomToolRequest = {
|
|
|
256
149
|
/** Endpoint URL (required, must use https schema) */
|
|
257
150
|
url: string;
|
|
258
151
|
/** Dict of parameters (optional) */
|
|
259
|
-
parameters?:
|
|
152
|
+
parameters?: JsonValue[] | null;
|
|
260
153
|
/** Dict of request body (optional) */
|
|
261
|
-
request_body?:
|
|
154
|
+
request_body?: JsonValue | null;
|
|
262
155
|
/** Response transformation (optional) */
|
|
263
156
|
response_transformation?: string | null;
|
|
264
157
|
};
|
|
@@ -282,18 +175,43 @@ export type AgentUsingToolsResponse = {
|
|
|
282
175
|
name: string;
|
|
283
176
|
avatar?: string | null;
|
|
284
177
|
};
|
|
285
|
-
export type
|
|
286
|
-
|
|
287
|
-
|
|
178
|
+
export type Function = {
|
|
179
|
+
name: string;
|
|
180
|
+
description: string;
|
|
181
|
+
parameters: {
|
|
182
|
+
[key: string]: any;
|
|
183
|
+
};
|
|
184
|
+
strict?: boolean;
|
|
288
185
|
};
|
|
289
|
-
export type
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
186
|
+
export type McpToolFunction = {
|
|
187
|
+
"type"?: string | null;
|
|
188
|
+
"function"?: Function | null;
|
|
189
|
+
id?: string | null;
|
|
190
|
+
};
|
|
191
|
+
export type ToolkitMcpResponse = {
|
|
192
|
+
id?: string | null;
|
|
193
|
+
name?: string | null;
|
|
194
|
+
description?: string | null;
|
|
195
|
+
avatar?: string | null;
|
|
196
|
+
visibility_level?: string | null;
|
|
197
|
+
secret_id?: string | null;
|
|
198
|
+
secrets?: string[] | null;
|
|
199
|
+
url?: string | null;
|
|
200
|
+
toolkit_type?: ToolkitType | null;
|
|
201
|
+
tools?: McpToolFunction[] | null;
|
|
202
|
+
};
|
|
203
|
+
export type MultiAgentToolkitResponse = {
|
|
204
|
+
id: string;
|
|
205
|
+
agent_version_number: number | null;
|
|
206
|
+
avatar: string | null;
|
|
207
|
+
name: string;
|
|
208
|
+
description: string;
|
|
293
209
|
};
|
|
294
210
|
export type AgentToolsResponse = {
|
|
295
211
|
builtin_toolkits?: BuiltinToolkitResponse[];
|
|
296
212
|
custom_toolkits?: CustomToolkitResponse[];
|
|
213
|
+
mcp_toolkits?: ToolkitMcpResponse[];
|
|
214
|
+
multi_agent_toolkits?: MultiAgentToolkitResponse[];
|
|
297
215
|
};
|
|
298
216
|
export type SchemaEnum = "OPENAI";
|
|
299
217
|
export type FunctionParameter = {
|
|
@@ -312,7 +230,7 @@ export type FunctionParameter = {
|
|
|
312
230
|
/** Allow arbitrary data of specific typed */
|
|
313
231
|
additionalProperties?: boolean;
|
|
314
232
|
};
|
|
315
|
-
export type
|
|
233
|
+
export type Function2 = {
|
|
316
234
|
/** The name of the function */
|
|
317
235
|
name: string;
|
|
318
236
|
/** A description of what the function does */
|
|
@@ -323,14 +241,17 @@ export type Function = {
|
|
|
323
241
|
strict: boolean;
|
|
324
242
|
};
|
|
325
243
|
export type OpenAiTool = {
|
|
244
|
+
/** Unique identifier for the tool */
|
|
245
|
+
id?: string | null;
|
|
326
246
|
/** The type of the tool; must be 'function' */
|
|
327
247
|
"type": "function";
|
|
328
248
|
/** The function associated with this tool */
|
|
329
|
-
"function":
|
|
249
|
+
"function": Function2;
|
|
330
250
|
};
|
|
331
251
|
export type ExecuteAgentToolRequest = {
|
|
332
252
|
arguments?: string | null;
|
|
333
253
|
upload_ids?: string[] | null;
|
|
254
|
+
execution_id?: string | null;
|
|
334
255
|
};
|
|
335
256
|
export type AgentToolExecutionResponse = {
|
|
336
257
|
result: string;
|
|
@@ -343,6 +264,7 @@ export type KnowledgeSourcesConfig = {
|
|
|
343
264
|
similarity_function?: string;
|
|
344
265
|
post_processing?: boolean;
|
|
345
266
|
};
|
|
267
|
+
export type AgentVersionStatus = "draft" | "published" | "deprecated";
|
|
346
268
|
export type ListAgentResponse = {
|
|
347
269
|
id: string;
|
|
348
270
|
name: string;
|
|
@@ -353,6 +275,10 @@ export type ListAgentResponse = {
|
|
|
353
275
|
avatar: string | null;
|
|
354
276
|
suggested_prompts: string[] | null;
|
|
355
277
|
knowledge_sources_config: KnowledgeSourcesConfig;
|
|
278
|
+
version_number: number;
|
|
279
|
+
status: AgentVersionStatus;
|
|
280
|
+
is_recommended: boolean;
|
|
281
|
+
has_multiagent_tool?: boolean;
|
|
356
282
|
"type"?: string;
|
|
357
283
|
system_prompt?: string;
|
|
358
284
|
creator_name?: string;
|
|
@@ -367,6 +293,13 @@ export type KnowledgeSourcesConfigRequest = {
|
|
|
367
293
|
knowledge_sources?: string[] | null;
|
|
368
294
|
sealed?: boolean | null;
|
|
369
295
|
};
|
|
296
|
+
export type AssignCustomToolsAgentRequest = {
|
|
297
|
+
toolkit_id: string;
|
|
298
|
+
tools_ids: string[];
|
|
299
|
+
};
|
|
300
|
+
export type AgentMode = "autonomous" | "plan_approval" | "plan_and_critical_approval";
|
|
301
|
+
export type AgentMemory = "vector" | "buffer";
|
|
302
|
+
export type PlannerType = "simple" | "tool_oriented";
|
|
370
303
|
export type NewAgentRequest = {
|
|
371
304
|
/** LLM model name */
|
|
372
305
|
model_name?: string | null;
|
|
@@ -390,19 +323,39 @@ export type NewAgentRequest = {
|
|
|
390
323
|
builtin_tools_ids?: string[];
|
|
391
324
|
/** Custom tools to assign to the agent */
|
|
392
325
|
custom_tools?: AssignCustomToolsAgentRequest[] | null;
|
|
326
|
+
mcp_toolkit_ids?: string[] | null;
|
|
327
|
+
/** Multi-agents assignment to the agent */
|
|
393
328
|
sub_agents_ids?: string[] | null;
|
|
394
329
|
detail_mode?: boolean;
|
|
395
330
|
structured_output?: string | null;
|
|
396
331
|
llm_settings?: {
|
|
397
332
|
[key: string]: any;
|
|
398
333
|
} | null;
|
|
334
|
+
/** Agent mode */
|
|
335
|
+
mode?: AgentMode;
|
|
336
|
+
/** Agent memory */
|
|
337
|
+
memory?: AgentMemory;
|
|
338
|
+
/** Available models for this particular agent */
|
|
339
|
+
available_models_ids?: string[];
|
|
340
|
+
/** Agent planner type */
|
|
341
|
+
planner_type?: PlannerType | null;
|
|
342
|
+
/** Maximum number of LLM interactions allowed for the agent when using simple planner */
|
|
343
|
+
max_llm_interactions?: number | null;
|
|
344
|
+
/** LLM planner model name */
|
|
345
|
+
planner_model_name?: string | null;
|
|
346
|
+
/** LLM planner model id */
|
|
347
|
+
planner_model_id?: string | null;
|
|
399
348
|
};
|
|
400
349
|
export type SearchAgentsRequest = {
|
|
401
350
|
/** Agent ids to filter for */
|
|
402
351
|
ids: string[];
|
|
403
352
|
};
|
|
353
|
+
export type AssignMultiAgentVersionRequest = {
|
|
354
|
+
agent_core_id: string;
|
|
355
|
+
version_number?: number | null;
|
|
356
|
+
};
|
|
404
357
|
export type WorkspaceForkRequest = {
|
|
405
|
-
|
|
358
|
+
agents: AssignMultiAgentVersionRequest[];
|
|
406
359
|
member_id: string;
|
|
407
360
|
};
|
|
408
361
|
export type AgentItemFork = {
|
|
@@ -442,7 +395,7 @@ export type ListMultiAgentsResponse = {
|
|
|
442
395
|
visibility_level: VisibilityLevelEnum;
|
|
443
396
|
has_multiagent_tool: boolean;
|
|
444
397
|
};
|
|
445
|
-
export type
|
|
398
|
+
export type KnowledgeSourceDetailsResponse = {
|
|
446
399
|
id: string;
|
|
447
400
|
slug: string;
|
|
448
401
|
name: string;
|
|
@@ -450,100 +403,102 @@ export type KnowledgeSourceDetails = {
|
|
|
450
403
|
"type": string;
|
|
451
404
|
creator?: string | null;
|
|
452
405
|
"default": boolean;
|
|
453
|
-
visibility_level:
|
|
406
|
+
visibility_level: string;
|
|
454
407
|
model_name: string;
|
|
455
408
|
username?: string | null;
|
|
456
409
|
};
|
|
457
|
-
export type
|
|
458
|
-
|
|
410
|
+
export type KnowledgeSourcesConfigResponse = {
|
|
411
|
+
knowledge_sources: string[];
|
|
459
412
|
max_number_of_kos: number;
|
|
460
413
|
relevancy_threshold: number;
|
|
414
|
+
similarity_function: string;
|
|
461
415
|
post_processing: boolean;
|
|
462
|
-
knowledge_sources: string[];
|
|
463
|
-
knowledge_sources_details: KnowledgeSourceDetails[];
|
|
464
416
|
sealed: boolean;
|
|
417
|
+
knowledge_sources_details?: KnowledgeSourceDetailsResponse[] | null;
|
|
465
418
|
created_by?: string | null;
|
|
466
419
|
created_at?: string | null;
|
|
467
420
|
updated_by?: string | null;
|
|
468
421
|
updated_at?: string | null;
|
|
469
422
|
};
|
|
470
|
-
export type
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
toolkit_id: string;
|
|
475
|
-
};
|
|
476
|
-
export type BuiltinToolkitDto = {
|
|
477
|
-
id: string;
|
|
478
|
-
name: string;
|
|
479
|
-
description: string;
|
|
480
|
-
image_url: string;
|
|
481
|
-
tools: BuiltinToolDto[];
|
|
482
|
-
};
|
|
483
|
-
export type CustomToolkitToolDto = {
|
|
484
|
-
id: string;
|
|
485
|
-
name: string;
|
|
486
|
-
description: string;
|
|
487
|
-
method: string;
|
|
488
|
-
url: string;
|
|
489
|
-
parameters?: {
|
|
490
|
-
[key: string]: any;
|
|
491
|
-
}[] | null;
|
|
492
|
-
request_body?: {
|
|
493
|
-
[key: string]: any;
|
|
494
|
-
} | null;
|
|
495
|
-
response_transformation?: string | null;
|
|
496
|
-
creator_name?: string | null;
|
|
497
|
-
};
|
|
498
|
-
export type CustomToolkitDto = {
|
|
499
|
-
id: string;
|
|
500
|
-
name: string;
|
|
501
|
-
description: string | null;
|
|
502
|
-
avatar: string | null;
|
|
503
|
-
tools: CustomToolkitToolDto[];
|
|
504
|
-
secrets: string[] | null;
|
|
505
|
-
visibility_level: VisibilityLevelEnum;
|
|
506
|
-
creator_name: string;
|
|
507
|
-
is_usable_by_others: boolean;
|
|
508
|
-
};
|
|
509
|
-
export type AgentToolsDto = {
|
|
510
|
-
builtin_toolkits?: BuiltinToolkitDto[];
|
|
511
|
-
custom_toolkits?: CustomToolkitDto[];
|
|
423
|
+
export type LlmSettingsResponse = {
|
|
424
|
+
property_key: string;
|
|
425
|
+
property_value: string;
|
|
426
|
+
property_type: string;
|
|
512
427
|
};
|
|
513
|
-
export type
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
agent_id: string;
|
|
518
|
-
created_by?: string | null;
|
|
519
|
-
created_at?: string | null;
|
|
520
|
-
updated_by?: string | null;
|
|
521
|
-
updated_at?: string | null;
|
|
428
|
+
export type AgentLlmModelResponse = {
|
|
429
|
+
model_id: string;
|
|
430
|
+
model_name: string;
|
|
431
|
+
is_default: boolean;
|
|
522
432
|
};
|
|
523
|
-
export type
|
|
433
|
+
export type FindByIdAgentResponse = {
|
|
434
|
+
/** Agent core ID */
|
|
524
435
|
id: string;
|
|
436
|
+
/** Agent name */
|
|
525
437
|
name: string;
|
|
438
|
+
/** Agent unique slug */
|
|
526
439
|
slug: string;
|
|
440
|
+
/** Agent description */
|
|
527
441
|
description?: string | null;
|
|
528
|
-
|
|
529
|
-
visibility_level: string;
|
|
442
|
+
/** Agent avatar image URL */
|
|
530
443
|
avatar?: string | null;
|
|
444
|
+
/** Agent visibility level */
|
|
445
|
+
visibility_level: string;
|
|
446
|
+
/** Agent type */
|
|
531
447
|
"type": string;
|
|
532
|
-
|
|
448
|
+
/** Whether agent is use-only (hides implementation) */
|
|
533
449
|
use_only: boolean;
|
|
450
|
+
/** Whether agent is internal */
|
|
451
|
+
is_internal: boolean;
|
|
452
|
+
/** Whether detail mode is enabled */
|
|
534
453
|
detail_mode: boolean;
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
454
|
+
/** Agent execution mode */
|
|
455
|
+
mode: AgentMode;
|
|
456
|
+
/** Agent memory type */
|
|
457
|
+
memory: AgentMemory;
|
|
458
|
+
/** Version status */
|
|
459
|
+
status: AgentVersionStatus;
|
|
460
|
+
/** Version number */
|
|
461
|
+
version_number: number;
|
|
462
|
+
/** Whether this is the recommended version */
|
|
463
|
+
is_recommended: boolean;
|
|
464
|
+
/** Whether this is the latest version */
|
|
465
|
+
is_latest: boolean;
|
|
466
|
+
/** System prompt for the agent */
|
|
467
|
+
system_prompt?: string | null;
|
|
468
|
+
/** Default LLM model ID */
|
|
538
469
|
model_id?: string | null;
|
|
470
|
+
/** Default LLM model name */
|
|
539
471
|
model_name?: string | null;
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
472
|
+
/** Original agent ID if forked */
|
|
473
|
+
origin_fork_id?: string | null;
|
|
474
|
+
/** Suggested conversation starters */
|
|
475
|
+
conversation_starter?: string[] | null;
|
|
476
|
+
/** JSON schema for structured output */
|
|
477
|
+
structured_output?: string | null;
|
|
478
|
+
/** Base version ID for version history */
|
|
479
|
+
base_version_id?: string | null;
|
|
480
|
+
planner_type?: PlannerType | null;
|
|
481
|
+
/** Maximum number of LLM interactions */
|
|
482
|
+
max_llm_interactions?: number | null;
|
|
483
|
+
/** Default LLM planner model ID */
|
|
484
|
+
planner_model_id?: string | null;
|
|
485
|
+
/** Default LLM planner model name */
|
|
486
|
+
planner_model_name?: string | null;
|
|
487
|
+
/** Knowledge sources configuration with details */
|
|
488
|
+
knowledge_sources_config?: KnowledgeSourcesConfigResponse | null;
|
|
489
|
+
/** Agent toolkits (builtin and custom) */
|
|
490
|
+
toolkits?: AgentToolsResponse;
|
|
491
|
+
/** LLM settings */
|
|
492
|
+
settings?: LlmSettingsResponse[];
|
|
493
|
+
/** Available LLM models for this agent */
|
|
494
|
+
available_llm_models?: AgentLlmModelResponse[];
|
|
495
|
+
/** Creator username */
|
|
544
496
|
created_by?: string | null;
|
|
497
|
+
/** Creation timestamp */
|
|
545
498
|
created_at?: string | null;
|
|
499
|
+
/** Last updater username */
|
|
546
500
|
updated_by?: string | null;
|
|
501
|
+
/** Last update timestamp */
|
|
547
502
|
updated_at?: string | null;
|
|
548
503
|
};
|
|
549
504
|
export type UpdateAgentRequest = {
|
|
@@ -562,20 +517,38 @@ export type UpdateAgentRequest = {
|
|
|
562
517
|
avatar?: string | null;
|
|
563
518
|
/** Agent suggested prompt */
|
|
564
519
|
suggested_prompts?: string[];
|
|
520
|
+
/** agent status */
|
|
521
|
+
status?: AgentVersionStatus | null;
|
|
565
522
|
/** System prompt */
|
|
566
523
|
system_prompt?: string | null;
|
|
567
524
|
/** Agent type */
|
|
568
525
|
"type"?: AgentType | null;
|
|
569
526
|
knowledge_sources_config?: KnowledgeSourcesConfigRequest | null;
|
|
570
527
|
builtin_tools_ids?: string[];
|
|
528
|
+
/** Multi-agents assignment to the agent */
|
|
571
529
|
sub_agents_ids?: string[];
|
|
572
530
|
/** Custom tools to assign to the agent */
|
|
573
531
|
custom_tools?: AssignCustomToolsAgentRequest[] | null;
|
|
532
|
+
mcp_toolkit_ids?: string[] | null;
|
|
574
533
|
detail_mode?: boolean | null;
|
|
575
534
|
structured_output?: string | null;
|
|
576
535
|
llm_settings?: {
|
|
577
536
|
[key: string]: any;
|
|
578
537
|
} | null;
|
|
538
|
+
/** Agent mode */
|
|
539
|
+
mode?: AgentMode | null;
|
|
540
|
+
/** Available models for this particular agent */
|
|
541
|
+
available_models_ids?: string[];
|
|
542
|
+
/** Agent memory */
|
|
543
|
+
memory?: AgentMemory;
|
|
544
|
+
/** Agent planner type */
|
|
545
|
+
planner_type?: PlannerType;
|
|
546
|
+
/** Maximum number of LLM interactions allowed for the agent when using simple planner */
|
|
547
|
+
max_llm_interactions?: number | null;
|
|
548
|
+
/** LLM planner model name */
|
|
549
|
+
planner_model_name?: string | null;
|
|
550
|
+
/** LLM planner model id */
|
|
551
|
+
planner_model_id?: string | null;
|
|
579
552
|
};
|
|
580
553
|
export type ForkAgentRequest = {
|
|
581
554
|
/** Agent slug to fork */
|
|
@@ -585,6 +558,144 @@ export type ForkAgentRequest = {
|
|
|
585
558
|
export type PublishAgentRequest = {
|
|
586
559
|
use_only?: boolean;
|
|
587
560
|
is_public?: boolean;
|
|
561
|
+
version_number?: number | null;
|
|
562
|
+
};
|
|
563
|
+
export type CreateVersionRequest = {
|
|
564
|
+
/** The version number to use as base for the new version. If not provided, uses latest version */
|
|
565
|
+
base_version_number?: number | null;
|
|
566
|
+
};
|
|
567
|
+
export type AgentVersionResponse = {
|
|
568
|
+
/** Agent version unique identifier */
|
|
569
|
+
id: string;
|
|
570
|
+
/** Reference to parent agent core */
|
|
571
|
+
agent_core_id: string;
|
|
572
|
+
/** Whether detail mode is enabled for responses */
|
|
573
|
+
detail_mode: boolean;
|
|
574
|
+
/** Whether version is internal-only */
|
|
575
|
+
is_internal: boolean;
|
|
576
|
+
/** Agent execution mode (autonomous, orchestrator, etc.) */
|
|
577
|
+
mode: AgentMode;
|
|
578
|
+
/** Memory type used by the agent */
|
|
579
|
+
memory: string;
|
|
580
|
+
/** Version status (draft, published, archived) */
|
|
581
|
+
status: AgentVersionStatus;
|
|
582
|
+
/** Sequential version number */
|
|
583
|
+
version_number: number;
|
|
584
|
+
/** Whether this is the recommended version for use */
|
|
585
|
+
is_recommended: boolean;
|
|
586
|
+
/** Whether this is the most recent version */
|
|
587
|
+
is_latest: boolean;
|
|
588
|
+
/** Base version ID used for creating this version */
|
|
589
|
+
base_version_id?: string | null;
|
|
590
|
+
/** Original agent version ID if this is a fork */
|
|
591
|
+
origin_fork_id?: string | null;
|
|
592
|
+
/** System prompt for the agent version */
|
|
593
|
+
system_prompt?: string | null;
|
|
594
|
+
/** LLM model ID used by this version */
|
|
595
|
+
model_id?: string | null;
|
|
596
|
+
/** LLM model name used by this version */
|
|
597
|
+
model_name?: string | null;
|
|
598
|
+
/** Suggested conversation starters */
|
|
599
|
+
conversation_starter?: string[] | null;
|
|
600
|
+
/** JSON schema for structured output format */
|
|
601
|
+
structured_output?: string | null;
|
|
602
|
+
planner_type?: PlannerType | null;
|
|
603
|
+
max_llm_interactions?: number | null;
|
|
604
|
+
/** Default LLM planner model ID */
|
|
605
|
+
planner_model_id?: string | null;
|
|
606
|
+
/** Default LLM planner model name */
|
|
607
|
+
planner_model_name?: string | null;
|
|
608
|
+
/** Knowledge sources configuration for RAG capabilities */
|
|
609
|
+
knowledge_sources_config?: KnowledgeSourcesConfig | null;
|
|
610
|
+
/** List of tools (builtin) assigned to this version */
|
|
611
|
+
toolkits?: AgentToolsResponse;
|
|
612
|
+
/** LLM-specific settings for this version */
|
|
613
|
+
settings?: LlmSettingsResponse[];
|
|
614
|
+
/** Available LLM models for this version */
|
|
615
|
+
llm_models?: AgentLlmModelResponse[];
|
|
616
|
+
/** Username of version creator */
|
|
617
|
+
created_by?: string | null;
|
|
618
|
+
/** Version creation timestamp */
|
|
619
|
+
created_at?: string | null;
|
|
620
|
+
/** Username of last updater */
|
|
621
|
+
updated_by?: string | null;
|
|
622
|
+
/** Last update timestamp */
|
|
623
|
+
updated_at?: string | null;
|
|
624
|
+
};
|
|
625
|
+
export type CreateVersionResponse = {
|
|
626
|
+
/** Agent core unique identifier */
|
|
627
|
+
id: string;
|
|
628
|
+
/** Agent name */
|
|
629
|
+
name: string;
|
|
630
|
+
/** Agent unique slug */
|
|
631
|
+
slug: string;
|
|
632
|
+
/** Agent description */
|
|
633
|
+
description?: string | null;
|
|
634
|
+
/** Agent avatar image URL */
|
|
635
|
+
avatar?: string | null;
|
|
636
|
+
/** Agent visibility level (personal, shared, account) */
|
|
637
|
+
visibility_level: string;
|
|
638
|
+
/** The newly created agent version details */
|
|
639
|
+
version: AgentVersionResponse;
|
|
640
|
+
/** Username of agent creator */
|
|
641
|
+
created_by?: string | null;
|
|
642
|
+
/** Agent creation timestamp */
|
|
643
|
+
created_at?: string | null;
|
|
644
|
+
/** Username of last updater */
|
|
645
|
+
updated_by?: string | null;
|
|
646
|
+
/** Last update timestamp */
|
|
647
|
+
updated_at?: string | null;
|
|
648
|
+
};
|
|
649
|
+
export type ListAgentVersionResponse = {
|
|
650
|
+
id: string;
|
|
651
|
+
version_number: number;
|
|
652
|
+
status: AgentVersionStatus;
|
|
653
|
+
is_recommended: boolean;
|
|
654
|
+
};
|
|
655
|
+
export type ForkedAgentCoreAndVersionResponse = {
|
|
656
|
+
/** Agent core unique identifier */
|
|
657
|
+
id: string;
|
|
658
|
+
/** Agent name */
|
|
659
|
+
name: string;
|
|
660
|
+
/** Agent unique slug */
|
|
661
|
+
slug: string;
|
|
662
|
+
/** Agent description */
|
|
663
|
+
description: string;
|
|
664
|
+
/** Agent avatar image URL */
|
|
665
|
+
avatar?: string | null;
|
|
666
|
+
/** Agent visibility level (personal, shared, account) */
|
|
667
|
+
visibility_level: string;
|
|
668
|
+
/** The newly created agent version details */
|
|
669
|
+
version: AgentVersionResponse;
|
|
670
|
+
/** Username of agent creator */
|
|
671
|
+
created_by?: string | null;
|
|
672
|
+
/** Agent creation timestamp */
|
|
673
|
+
created_at?: string | null;
|
|
674
|
+
/** Username of last updater */
|
|
675
|
+
updated_by?: string | null;
|
|
676
|
+
/** Last update timestamp */
|
|
677
|
+
updated_at?: string | null;
|
|
678
|
+
};
|
|
679
|
+
export type KnowledgeSourceDetailsResponse2 = {
|
|
680
|
+
id: string;
|
|
681
|
+
slug: string;
|
|
682
|
+
name: string;
|
|
683
|
+
description: string;
|
|
684
|
+
"type": string;
|
|
685
|
+
creator?: string | null;
|
|
686
|
+
"default": boolean;
|
|
687
|
+
visibility_level: VisibilityLevelEnum;
|
|
688
|
+
model_name: string;
|
|
689
|
+
username?: string | null;
|
|
690
|
+
};
|
|
691
|
+
export type KnowledgeSourcesConfigResponse2 = {
|
|
692
|
+
knowledge_sources: string[];
|
|
693
|
+
max_number_of_kos?: number;
|
|
694
|
+
relevancy_threshold?: number;
|
|
695
|
+
similarity_function?: SimilarityFunctionEnum;
|
|
696
|
+
post_processing?: boolean;
|
|
697
|
+
knowledge_sources_details?: KnowledgeSourceDetailsResponse2[];
|
|
698
|
+
sealed: boolean;
|
|
588
699
|
};
|
|
589
700
|
export type ListAgentResponseV2 = {
|
|
590
701
|
id: string;
|
|
@@ -595,71 +706,377 @@ export type ListAgentResponseV2 = {
|
|
|
595
706
|
visibility_level: string;
|
|
596
707
|
avatar: string | null;
|
|
597
708
|
conversation_starter: string[] | null;
|
|
598
|
-
knowledge_sources_config:
|
|
709
|
+
knowledge_sources_config: KnowledgeSourcesConfigResponse2;
|
|
599
710
|
"type"?: string;
|
|
600
711
|
system_prompt?: string;
|
|
601
712
|
creator_name?: string;
|
|
713
|
+
version_number: number;
|
|
714
|
+
status: AgentVersionStatus;
|
|
715
|
+
is_recommended: boolean;
|
|
602
716
|
};
|
|
603
|
-
export type
|
|
604
|
-
/**
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
/**
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
/**
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
/**
|
|
617
|
-
|
|
618
|
-
/**
|
|
619
|
-
|
|
620
|
-
/**
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
/**
|
|
639
|
-
|
|
640
|
-
*/
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
export
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
717
|
+
export type NewAgentRequestV2 = {
|
|
718
|
+
/** LLM model name */
|
|
719
|
+
model_name?: string | null;
|
|
720
|
+
/** LLM model id */
|
|
721
|
+
model_id?: string | null;
|
|
722
|
+
/** Agent name */
|
|
723
|
+
name: string;
|
|
724
|
+
/** Agent unique slug */
|
|
725
|
+
slug: string;
|
|
726
|
+
/** Agent description */
|
|
727
|
+
description?: string | null;
|
|
728
|
+
/** Agent avatar image */
|
|
729
|
+
avatar?: string | null;
|
|
730
|
+
/** Agent suggested prompt */
|
|
731
|
+
suggested_prompts?: string[];
|
|
732
|
+
/** System prompt */
|
|
733
|
+
system_prompt?: string | null;
|
|
734
|
+
/** Agent type */
|
|
735
|
+
"type": AgentType;
|
|
736
|
+
knowledge_sources_config?: KnowledgeSourcesConfigRequest | null;
|
|
737
|
+
builtin_tools_ids?: string[];
|
|
738
|
+
/** Custom tools to assign to the agent */
|
|
739
|
+
custom_tools?: AssignCustomToolsAgentRequest[] | null;
|
|
740
|
+
/** Multi-agents assignment to the agent */
|
|
741
|
+
sub_agents_ids?: AssignMultiAgentVersionRequest[] | null;
|
|
742
|
+
mcp_toolkit_ids?: string[] | null;
|
|
743
|
+
detail_mode?: boolean;
|
|
744
|
+
structured_output?: string | null;
|
|
745
|
+
llm_settings?: {
|
|
746
|
+
[key: string]: any;
|
|
747
|
+
} | null;
|
|
748
|
+
/** Agent mode */
|
|
749
|
+
mode?: AgentMode;
|
|
750
|
+
/** Agent memory */
|
|
751
|
+
memory?: AgentMemory;
|
|
752
|
+
/** Available models for this particular agent */
|
|
753
|
+
available_models_ids?: string[];
|
|
754
|
+
/** Agent planner type */
|
|
755
|
+
planner_type?: PlannerType | null;
|
|
756
|
+
/** Maximum number of LLM interactions allowed for the agent when using simple planner */
|
|
757
|
+
max_llm_interactions?: number | null;
|
|
758
|
+
/** LLM planner model name */
|
|
759
|
+
planner_model_name?: string | null;
|
|
760
|
+
/** LLM planner model id */
|
|
761
|
+
planner_model_id?: string | null;
|
|
762
|
+
};
|
|
763
|
+
export type SearchAgentVersionRequest = {
|
|
764
|
+
agent_core_id: string;
|
|
765
|
+
version_number?: number | null;
|
|
766
|
+
};
|
|
767
|
+
export type SearchAgentsRequestV2 = {
|
|
768
|
+
agents: SearchAgentVersionRequest[];
|
|
769
|
+
};
|
|
770
|
+
export type UpdateAgentRequestV2 = {
|
|
771
|
+
use_only?: boolean | null;
|
|
772
|
+
/** LLM model name */
|
|
773
|
+
model_name?: string | null;
|
|
774
|
+
/** LLM model id */
|
|
775
|
+
model_id?: string | null;
|
|
776
|
+
/** Agent name */
|
|
777
|
+
name?: string | null;
|
|
778
|
+
/** Agent unique slug */
|
|
779
|
+
slug?: string | null;
|
|
780
|
+
/** agent status */
|
|
781
|
+
status?: AgentVersionStatus | null;
|
|
782
|
+
/** Agent description */
|
|
783
|
+
description?: string | null;
|
|
784
|
+
/** Agent avatar image */
|
|
785
|
+
avatar?: string | null;
|
|
786
|
+
/** Agent suggested prompt */
|
|
787
|
+
suggested_prompts?: string[];
|
|
788
|
+
/** System prompt */
|
|
789
|
+
system_prompt?: string | null;
|
|
790
|
+
/** Agent type */
|
|
791
|
+
"type"?: AgentType | null;
|
|
792
|
+
knowledge_sources_config?: KnowledgeSourcesConfigRequest | null;
|
|
793
|
+
builtin_tools_ids?: string[];
|
|
794
|
+
/** Multi-agents assignment to the agent */
|
|
795
|
+
sub_agents_ids?: AssignMultiAgentVersionRequest[];
|
|
796
|
+
/** Custom tools to assign to the agent */
|
|
797
|
+
custom_tools?: AssignCustomToolsAgentRequest[] | null;
|
|
798
|
+
mcp_toolkit_ids?: string[] | null;
|
|
799
|
+
detail_mode?: boolean | null;
|
|
800
|
+
structured_output?: string | null;
|
|
801
|
+
llm_settings?: {
|
|
802
|
+
[key: string]: any;
|
|
803
|
+
} | null;
|
|
804
|
+
/** Agent mode */
|
|
805
|
+
mode?: AgentMode | null;
|
|
806
|
+
/** Available models for this particular agent */
|
|
807
|
+
available_models_ids?: string[];
|
|
808
|
+
/** Agent memory */
|
|
809
|
+
memory?: AgentMemory;
|
|
810
|
+
/** Agent planner type */
|
|
811
|
+
planner_type?: PlannerType;
|
|
812
|
+
/** Maximum number of LLM interactions allowed for the agent when using simple planner */
|
|
813
|
+
max_llm_interactions?: number | null;
|
|
814
|
+
/** LLM planner model name */
|
|
815
|
+
planner_model_name?: string | null;
|
|
816
|
+
/** LLM planner model id */
|
|
817
|
+
planner_model_id?: string | null;
|
|
818
|
+
};
|
|
819
|
+
export type CustomToolkitResponse2 = {
|
|
820
|
+
id: string;
|
|
821
|
+
name: string;
|
|
822
|
+
description?: string | null;
|
|
823
|
+
avatar?: string | null;
|
|
824
|
+
visibility_level: string;
|
|
825
|
+
creator_name: string | null;
|
|
826
|
+
toolkit_type?: ToolkitType | null;
|
|
827
|
+
tools: CustomToolkitToolResponse[];
|
|
828
|
+
secret_id?: string | null;
|
|
829
|
+
secrets?: string[] | null;
|
|
830
|
+
is_usable_by_others: boolean;
|
|
831
|
+
url?: string | null;
|
|
832
|
+
};
|
|
833
|
+
export type AgentToolsResponse2 = {
|
|
834
|
+
builtin_toolkits?: BuiltinToolkitResponse[];
|
|
835
|
+
custom_toolkits?: CustomToolkitResponse2[];
|
|
836
|
+
mcp_toolkits?: ToolkitMcpResponse[];
|
|
837
|
+
multi_agent_toolkits?: MultiAgentToolkitResponse[];
|
|
838
|
+
};
|
|
839
|
+
export type AgentVersionResponse2 = {
|
|
840
|
+
/** System prompt for the agent version */
|
|
841
|
+
system_prompt: string;
|
|
842
|
+
/** Whether detail mode is enabled for responses */
|
|
843
|
+
detail_mode: boolean;
|
|
844
|
+
/** Whether version is internal-only */
|
|
845
|
+
is_internal: boolean;
|
|
846
|
+
/** Agent execution mode (autonomous, orchestrator, etc.) */
|
|
847
|
+
mode: AgentMode;
|
|
848
|
+
/** Memory type used by the agent */
|
|
849
|
+
memory: string;
|
|
850
|
+
/** Version status (draft, published, archived) */
|
|
851
|
+
status: AgentVersionStatus;
|
|
852
|
+
/** Sequential version number */
|
|
853
|
+
version_number: number;
|
|
854
|
+
/** Whether this is the recommended version for use */
|
|
855
|
+
is_recommended: boolean;
|
|
856
|
+
/** Whether this is the most recent version */
|
|
857
|
+
is_latest: boolean;
|
|
858
|
+
/** Base version ID used for creating this version */
|
|
859
|
+
base_version_id?: string | null;
|
|
860
|
+
/** Original agent version ID if this is a fork */
|
|
861
|
+
origin_fork_id?: string | null;
|
|
862
|
+
/** LLM model ID used by this version */
|
|
863
|
+
model_id?: string | null;
|
|
864
|
+
/** LLM model name used by this version */
|
|
865
|
+
model_name?: string | null;
|
|
866
|
+
/** Suggested conversation starters */
|
|
867
|
+
conversation_starter?: string[] | null;
|
|
868
|
+
/** JSON schema for structured output format */
|
|
869
|
+
structured_output?: string | null;
|
|
870
|
+
planner_type?: PlannerType | null;
|
|
871
|
+
/** Maximum number of LLM interactions */
|
|
872
|
+
max_llm_interactions?: number | null;
|
|
873
|
+
/** Default LLM planner model ID */
|
|
874
|
+
planner_model_id?: string | null;
|
|
875
|
+
/** Default LLM planner model name */
|
|
876
|
+
planner_model_name?: string | null;
|
|
877
|
+
/** Knowledge sources configuration for RAG capabilities */
|
|
878
|
+
knowledge_sources_config?: KnowledgeSourcesConfigResponse2 | null;
|
|
879
|
+
/** List of tools (builtin) assigned to this version */
|
|
880
|
+
toolkits?: AgentToolsResponse2;
|
|
881
|
+
/** LLM-specific settings for this version */
|
|
882
|
+
settings?: LlmSettingsResponse[];
|
|
883
|
+
/** Available LLM models for this version */
|
|
884
|
+
available_llm_models?: AgentLlmModelResponse[];
|
|
885
|
+
/** Username of version creator */
|
|
886
|
+
created_by?: string | null;
|
|
887
|
+
/** Version creation timestamp */
|
|
888
|
+
created_at?: string | null;
|
|
889
|
+
/** Username of last updater */
|
|
890
|
+
updated_by?: string | null;
|
|
891
|
+
/** Last update timestamp */
|
|
892
|
+
updated_at?: string | null;
|
|
893
|
+
};
|
|
894
|
+
export type AgentCoreWithSingleVersionResponse = {
|
|
895
|
+
/** Agent core unique identifier (ULID format) */
|
|
896
|
+
id: string;
|
|
897
|
+
/** Agent display name */
|
|
898
|
+
name: string;
|
|
899
|
+
/** Agent unique slug for URL-friendly identification */
|
|
900
|
+
slug: string;
|
|
901
|
+
/** Agent core type */
|
|
902
|
+
"type": string;
|
|
903
|
+
/** Whether agent is use-only (hides implementation) */
|
|
904
|
+
use_only: boolean;
|
|
905
|
+
/** Detailed description of the agent's purpose and capabilities */
|
|
906
|
+
description?: string | null;
|
|
907
|
+
/** URL or path to agent's avatar image */
|
|
908
|
+
avatar?: string | null;
|
|
909
|
+
/** Agent visibility level (PERSONAL, WORKSPACE, ORGANIZATION, PUBLIC) */
|
|
910
|
+
visibility_level: string;
|
|
911
|
+
/** Specific or recommend version associated with this agent core */
|
|
912
|
+
version: AgentVersionResponse2;
|
|
913
|
+
/** Whether the current user has marked this agent as favorite */
|
|
914
|
+
is_favorite?: boolean;
|
|
915
|
+
/** Whether this agent was recently used by the current user */
|
|
916
|
+
is_recently_used?: boolean;
|
|
917
|
+
/** Username or identifier of the user who created this agent */
|
|
918
|
+
created_by?: string | null;
|
|
919
|
+
/** Timestamp when the agent was created (ISO 8601 format) */
|
|
920
|
+
created_at?: string | null;
|
|
921
|
+
/** Username or identifier of the user who last updated this agent */
|
|
922
|
+
updated_by?: string | null;
|
|
923
|
+
/** Timestamp of the last update (ISO 8601 format) */
|
|
924
|
+
updated_at?: string | null;
|
|
925
|
+
};
|
|
926
|
+
export type OrderEnum = "a-to-z" | "z-to-a" | "oldest-first" | "newest-first";
|
|
927
|
+
export type ListAgentRequestV4 = {
|
|
928
|
+
/** Agent name to filter the list */
|
|
929
|
+
name?: string | null;
|
|
930
|
+
/** Agent slug to filter the list */
|
|
931
|
+
slug?: string | null;
|
|
932
|
+
/** Paginated param to configure page size */
|
|
933
|
+
size?: number;
|
|
934
|
+
/** Paginated param to configure which page is being requested */
|
|
935
|
+
page?: number;
|
|
936
|
+
/** Filter by a list of agent visibility levels. When provided, overrides the single 'visibility' parameter */
|
|
937
|
+
visibility_list?: (AgentVisibilityLevelEnum | VisibilityLevelEnum)[];
|
|
938
|
+
order?: OrderEnum | null;
|
|
939
|
+
};
|
|
940
|
+
export type KnowledgeSourcesConfigResponseV3 = {
|
|
941
|
+
knowledge_sources: string[];
|
|
942
|
+
max_number_of_kos?: number;
|
|
943
|
+
relevancy_threshold?: number;
|
|
944
|
+
similarity_function?: string;
|
|
945
|
+
post_processing?: boolean;
|
|
946
|
+
};
|
|
947
|
+
export type AgentResponseV3 = {
|
|
948
|
+
id: string;
|
|
949
|
+
name: string;
|
|
950
|
+
slug: string;
|
|
951
|
+
created_by: string | null;
|
|
952
|
+
created_at: string | null;
|
|
953
|
+
visibility_level: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
954
|
+
avatar: string | null;
|
|
955
|
+
suggested_prompts: string[] | null;
|
|
956
|
+
knowledge_sources_config: KnowledgeSourcesConfigResponseV3;
|
|
957
|
+
has_multiagent_tool?: boolean;
|
|
958
|
+
"type"?: string;
|
|
959
|
+
system_prompt?: string;
|
|
960
|
+
creator_name?: string;
|
|
961
|
+
is_favorite?: boolean;
|
|
962
|
+
is_recently_used?: boolean;
|
|
963
|
+
version_number: number;
|
|
964
|
+
status: AgentVersionStatus;
|
|
965
|
+
is_recommended: boolean;
|
|
966
|
+
};
|
|
967
|
+
export type PaginatedResponseAgentResponseV3 = {
|
|
968
|
+
total_pages: number;
|
|
969
|
+
items: AgentResponseV3[];
|
|
970
|
+
};
|
|
971
|
+
export type ListAgentVersionResponse2 = {
|
|
972
|
+
version_number: number;
|
|
973
|
+
status: AgentVersionStatus;
|
|
974
|
+
is_recommended: boolean;
|
|
975
|
+
};
|
|
976
|
+
export type ListAgentCoreResponse = {
|
|
977
|
+
id: string;
|
|
978
|
+
name: string;
|
|
979
|
+
slug: string;
|
|
980
|
+
visibility_level: string;
|
|
981
|
+
avatar: string | null;
|
|
982
|
+
created_by: string | null;
|
|
983
|
+
created_at: string | null;
|
|
984
|
+
is_favorite?: boolean;
|
|
985
|
+
is_recently_used?: boolean;
|
|
986
|
+
version: ListAgentVersionResponse2;
|
|
987
|
+
};
|
|
988
|
+
export type PaginatedResponseListAgentCoreResponse = {
|
|
989
|
+
total_pages: number;
|
|
990
|
+
items: ListAgentCoreResponse[];
|
|
991
|
+
};
|
|
992
|
+
export type InternalListToolkitsRequest = {
|
|
993
|
+
/** List of toolkit IDs to retrieve */
|
|
994
|
+
toolkit_ids: string[];
|
|
995
|
+
};
|
|
996
|
+
export type InternalDeleteToolkitsRequest = {
|
|
997
|
+
/** List of toolkit IDs to delete */
|
|
998
|
+
toolkit_ids: string[];
|
|
999
|
+
};
|
|
1000
|
+
export type InternalToolkitForkRequest = {
|
|
1001
|
+
/** List of toolkit IDs to fork */
|
|
1002
|
+
toolkit_ids: string[];
|
|
1003
|
+
};
|
|
1004
|
+
export type ToolkitForkResponse = {
|
|
1005
|
+
/** List of successfully forked toolkits */
|
|
1006
|
+
forked_toolkits: CustomToolkitSimpleResponse[];
|
|
1007
|
+
/** List of toolkit IDs that were already account-level and not forked */
|
|
1008
|
+
toolkit_ids_account: string[];
|
|
1009
|
+
/** List of toolkit IDs that failed to fork */
|
|
1010
|
+
error_ids: string[];
|
|
1011
|
+
};
|
|
1012
|
+
export type PaginatedResponseCustomToolkitSimpleResponse = {
|
|
1013
|
+
total_pages: number;
|
|
1014
|
+
items: CustomToolkitSimpleResponse[];
|
|
1015
|
+
};
|
|
1016
|
+
export type ParametersModel = {
|
|
1017
|
+
properties: {
|
|
1018
|
+
[key: string]: {
|
|
1019
|
+
[key: string]: any;
|
|
1020
|
+
};
|
|
1021
|
+
};
|
|
1022
|
+
required?: string[] | null;
|
|
1023
|
+
"type": string;
|
|
1024
|
+
additionalProperties: boolean;
|
|
1025
|
+
};
|
|
1026
|
+
export type FunctionModel = {
|
|
1027
|
+
name: string;
|
|
1028
|
+
description: string;
|
|
1029
|
+
parameters: ParametersModel;
|
|
1030
|
+
strict?: boolean;
|
|
1031
|
+
};
|
|
1032
|
+
export type FunctionItem = {
|
|
1033
|
+
"type": string;
|
|
1034
|
+
"function": FunctionModel;
|
|
1035
|
+
};
|
|
1036
|
+
export type FunctionsResponse = {
|
|
1037
|
+
last_update: string;
|
|
1038
|
+
tools: FunctionItem[];
|
|
1039
|
+
};
|
|
1040
|
+
/**
|
|
1041
|
+
* Health Check
|
|
1042
|
+
*/
|
|
1043
|
+
export function healthCheckHealthzGet(opts?: Oazapfts.RequestOpts) {
|
|
1044
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1045
|
+
status: 200;
|
|
1046
|
+
data: {
|
|
1047
|
+
[key: string]: string;
|
|
1048
|
+
};
|
|
1049
|
+
} | {
|
|
1050
|
+
status: 404;
|
|
1051
|
+
}>("/healthz", {
|
|
1052
|
+
...opts
|
|
1053
|
+
}));
|
|
1054
|
+
}
|
|
1055
|
+
/**
|
|
1056
|
+
* Readyz
|
|
1057
|
+
*/
|
|
1058
|
+
export function readyzReadyzGet(opts?: Oazapfts.RequestOpts) {
|
|
1059
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1060
|
+
status: 200;
|
|
1061
|
+
data: {
|
|
1062
|
+
[key: string]: string;
|
|
1063
|
+
};
|
|
1064
|
+
} | {
|
|
1065
|
+
status: 404;
|
|
1066
|
+
}>("/readyz", {
|
|
1067
|
+
...opts
|
|
1068
|
+
}));
|
|
1069
|
+
}
|
|
1070
|
+
/**
|
|
1071
|
+
* Get Public Tool Kits
|
|
1072
|
+
*/
|
|
1073
|
+
export function getPublicToolKitsV1BuiltinToolkitGet({ xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1074
|
+
xAccountId?: string | null;
|
|
1075
|
+
xUsername?: string | null;
|
|
1076
|
+
xUserId?: string | null;
|
|
1077
|
+
xUserFullName?: string | null;
|
|
1078
|
+
authorization: string;
|
|
1079
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
663
1080
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
664
1081
|
status: 200;
|
|
665
1082
|
data: BuiltinToolkitResponse[];
|
|
@@ -714,13 +1131,13 @@ export function listToolkitsV1ToolkitsGet({ visibility, xAccountId, xUsername, x
|
|
|
714
1131
|
/**
|
|
715
1132
|
* Create Toolkit
|
|
716
1133
|
*/
|
|
717
|
-
export function createToolkitV1ToolkitsPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization,
|
|
1134
|
+
export function createToolkitV1ToolkitsPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, body }: {
|
|
718
1135
|
xAccountId?: string | null;
|
|
719
1136
|
xUsername?: string | null;
|
|
720
1137
|
xUserId?: string | null;
|
|
721
1138
|
xUserFullName?: string | null;
|
|
722
1139
|
authorization: string;
|
|
723
|
-
|
|
1140
|
+
body: ToolkitRequest | ToolkitMcpRequest;
|
|
724
1141
|
}, opts?: Oazapfts.RequestOpts) {
|
|
725
1142
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
726
1143
|
status: 201;
|
|
@@ -733,7 +1150,7 @@ export function createToolkitV1ToolkitsPost({ xAccountId, xUsername, xUserId, xU
|
|
|
733
1150
|
}>("/v1/toolkits", oazapfts.json({
|
|
734
1151
|
...opts,
|
|
735
1152
|
method: "POST",
|
|
736
|
-
body
|
|
1153
|
+
body,
|
|
737
1154
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
738
1155
|
"x-account-id": xAccountId,
|
|
739
1156
|
"x-username": xUsername,
|
|
@@ -776,14 +1193,14 @@ export function getToolkitV1ToolkitsToolkitIdGet({ toolkitId, xAccountId, xUsern
|
|
|
776
1193
|
/**
|
|
777
1194
|
* Update Toolkit
|
|
778
1195
|
*/
|
|
779
|
-
export function updateToolkitV1ToolkitsToolkitIdPatch({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization,
|
|
1196
|
+
export function updateToolkitV1ToolkitsToolkitIdPatch({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, body }: {
|
|
780
1197
|
toolkitId: string;
|
|
781
1198
|
xAccountId?: string | null;
|
|
782
1199
|
xUsername?: string | null;
|
|
783
1200
|
xUserId?: string | null;
|
|
784
1201
|
xUserFullName?: string | null;
|
|
785
1202
|
authorization: string;
|
|
786
|
-
|
|
1203
|
+
body: ToolkitUpdateRequest | ToolkitMcpUpdateRequest;
|
|
787
1204
|
}, opts?: Oazapfts.RequestOpts) {
|
|
788
1205
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
789
1206
|
status: 204;
|
|
@@ -795,7 +1212,7 @@ export function updateToolkitV1ToolkitsToolkitIdPatch({ toolkitId, xAccountId, x
|
|
|
795
1212
|
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}`, oazapfts.json({
|
|
796
1213
|
...opts,
|
|
797
1214
|
method: "PATCH",
|
|
798
|
-
body
|
|
1215
|
+
body,
|
|
799
1216
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
800
1217
|
"x-account-id": xAccountId,
|
|
801
1218
|
"x-username": xUsername,
|
|
@@ -942,13 +1359,326 @@ export function getToolkitToolV1ToolkitsToolkitIdToolsToolIdGet({ toolkitId, too
|
|
|
942
1359
|
}, opts?: Oazapfts.RequestOpts) {
|
|
943
1360
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
944
1361
|
status: 200;
|
|
945
|
-
data: CustomToolkitToolResponse;
|
|
1362
|
+
data: CustomToolkitToolResponse;
|
|
1363
|
+
} | {
|
|
1364
|
+
status: 404;
|
|
1365
|
+
} | {
|
|
1366
|
+
status: 422;
|
|
1367
|
+
data: HttpValidationError;
|
|
1368
|
+
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/tools/${encodeURIComponent(toolId)}`, {
|
|
1369
|
+
...opts,
|
|
1370
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1371
|
+
"x-account-id": xAccountId,
|
|
1372
|
+
"x-username": xUsername,
|
|
1373
|
+
"x-user-id": xUserId,
|
|
1374
|
+
"x-user-full-name": xUserFullName,
|
|
1375
|
+
authorization
|
|
1376
|
+
})
|
|
1377
|
+
}));
|
|
1378
|
+
}
|
|
1379
|
+
/**
|
|
1380
|
+
* Edit Toolkit Tool
|
|
1381
|
+
*/
|
|
1382
|
+
export function editToolkitToolV1ToolkitsToolkitIdToolsToolIdPut({ toolkitId, toolId, xAccountId, xUsername, xUserId, xUserFullName, authorization, customToolRequest }: {
|
|
1383
|
+
toolkitId: string;
|
|
1384
|
+
toolId: string;
|
|
1385
|
+
xAccountId?: string | null;
|
|
1386
|
+
xUsername?: string | null;
|
|
1387
|
+
xUserId?: string | null;
|
|
1388
|
+
xUserFullName?: string | null;
|
|
1389
|
+
authorization: string;
|
|
1390
|
+
customToolRequest: CustomToolRequest;
|
|
1391
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1392
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1393
|
+
status: 204;
|
|
1394
|
+
} | {
|
|
1395
|
+
status: 404;
|
|
1396
|
+
} | {
|
|
1397
|
+
status: 422;
|
|
1398
|
+
data: HttpValidationError;
|
|
1399
|
+
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/tools/${encodeURIComponent(toolId)}`, oazapfts.json({
|
|
1400
|
+
...opts,
|
|
1401
|
+
method: "PUT",
|
|
1402
|
+
body: customToolRequest,
|
|
1403
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1404
|
+
"x-account-id": xAccountId,
|
|
1405
|
+
"x-username": xUsername,
|
|
1406
|
+
"x-user-id": xUserId,
|
|
1407
|
+
"x-user-full-name": xUserFullName,
|
|
1408
|
+
authorization
|
|
1409
|
+
})
|
|
1410
|
+
})));
|
|
1411
|
+
}
|
|
1412
|
+
/**
|
|
1413
|
+
* Create Toolkit Tools
|
|
1414
|
+
*/
|
|
1415
|
+
export function createToolkitToolsV1ToolkitsToolkitIdToolsPost({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, customToolsRequest }: {
|
|
1416
|
+
toolkitId: string;
|
|
1417
|
+
xAccountId?: string | null;
|
|
1418
|
+
xUsername?: string | null;
|
|
1419
|
+
xUserId?: string | null;
|
|
1420
|
+
xUserFullName?: string | null;
|
|
1421
|
+
authorization: string;
|
|
1422
|
+
customToolsRequest: CustomToolsRequest;
|
|
1423
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1424
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1425
|
+
status: 204;
|
|
1426
|
+
} | {
|
|
1427
|
+
status: 404;
|
|
1428
|
+
} | {
|
|
1429
|
+
status: 422;
|
|
1430
|
+
data: HttpValidationError;
|
|
1431
|
+
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/tools`, oazapfts.json({
|
|
1432
|
+
...opts,
|
|
1433
|
+
method: "POST",
|
|
1434
|
+
body: customToolsRequest,
|
|
1435
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1436
|
+
"x-account-id": xAccountId,
|
|
1437
|
+
"x-username": xUsername,
|
|
1438
|
+
"x-user-id": xUserId,
|
|
1439
|
+
"x-user-full-name": xUserFullName,
|
|
1440
|
+
authorization
|
|
1441
|
+
})
|
|
1442
|
+
})));
|
|
1443
|
+
}
|
|
1444
|
+
/**
|
|
1445
|
+
* Delete Toolkit Tools
|
|
1446
|
+
*/
|
|
1447
|
+
export function deleteToolkitToolsV1ToolkitsToolkitIdToolsDelete({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, deleteToolsRequest }: {
|
|
1448
|
+
toolkitId: string;
|
|
1449
|
+
xAccountId?: string | null;
|
|
1450
|
+
xUsername?: string | null;
|
|
1451
|
+
xUserId?: string | null;
|
|
1452
|
+
xUserFullName?: string | null;
|
|
1453
|
+
authorization: string;
|
|
1454
|
+
deleteToolsRequest: DeleteToolsRequest;
|
|
1455
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1456
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1457
|
+
status: 204;
|
|
1458
|
+
} | {
|
|
1459
|
+
status: 404;
|
|
1460
|
+
} | {
|
|
1461
|
+
status: 422;
|
|
1462
|
+
data: HttpValidationError;
|
|
1463
|
+
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/tools`, oazapfts.json({
|
|
1464
|
+
...opts,
|
|
1465
|
+
method: "DELETE",
|
|
1466
|
+
body: deleteToolsRequest,
|
|
1467
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1468
|
+
"x-account-id": xAccountId,
|
|
1469
|
+
"x-username": xUsername,
|
|
1470
|
+
"x-user-id": xUserId,
|
|
1471
|
+
"x-user-full-name": xUserFullName,
|
|
1472
|
+
authorization
|
|
1473
|
+
})
|
|
1474
|
+
})));
|
|
1475
|
+
}
|
|
1476
|
+
/**
|
|
1477
|
+
* Split Uploaded File Preview
|
|
1478
|
+
*/
|
|
1479
|
+
export function splitUploadedFilePreviewV1ToolkitsToolsPreviewFileUploadIdGet({ fileUploadId, authorization, xAccountId, xUsername, xUserId, xUserFullName, authorizationHeader }: {
|
|
1480
|
+
fileUploadId: string;
|
|
1481
|
+
authorization: string;
|
|
1482
|
+
xAccountId?: string | null;
|
|
1483
|
+
xUsername?: string | null;
|
|
1484
|
+
xUserId?: string | null;
|
|
1485
|
+
xUserFullName?: string | null;
|
|
1486
|
+
authorizationHeader: string;
|
|
1487
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1488
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1489
|
+
status: 200;
|
|
1490
|
+
data: any;
|
|
1491
|
+
} | {
|
|
1492
|
+
status: 404;
|
|
1493
|
+
} | {
|
|
1494
|
+
status: 422;
|
|
1495
|
+
data: HttpValidationError;
|
|
1496
|
+
}>(`/v1/toolkits/tools/preview/${encodeURIComponent(fileUploadId)}`, {
|
|
1497
|
+
...opts,
|
|
1498
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1499
|
+
Authorization: authorization,
|
|
1500
|
+
"x-account-id": xAccountId,
|
|
1501
|
+
"x-username": xUsername,
|
|
1502
|
+
"x-user-id": xUserId,
|
|
1503
|
+
"x-user-full-name": xUserFullName,
|
|
1504
|
+
authorization: authorizationHeader
|
|
1505
|
+
})
|
|
1506
|
+
}));
|
|
1507
|
+
}
|
|
1508
|
+
/**
|
|
1509
|
+
* List Agents Using Tools
|
|
1510
|
+
*/
|
|
1511
|
+
export function listAgentsUsingToolsV1ToolkitsToolkitIdToolsAgentsPost({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, listAgentsUsingToolsRequest }: {
|
|
1512
|
+
toolkitId: string;
|
|
1513
|
+
xAccountId?: string | null;
|
|
1514
|
+
xUsername?: string | null;
|
|
1515
|
+
xUserId?: string | null;
|
|
1516
|
+
xUserFullName?: string | null;
|
|
1517
|
+
authorization: string;
|
|
1518
|
+
listAgentsUsingToolsRequest: ListAgentsUsingToolsRequest;
|
|
1519
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1520
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1521
|
+
status: 200;
|
|
1522
|
+
data: AgentUsingToolsResponse[];
|
|
1523
|
+
} | {
|
|
1524
|
+
status: 404;
|
|
1525
|
+
} | {
|
|
1526
|
+
status: 422;
|
|
1527
|
+
data: HttpValidationError;
|
|
1528
|
+
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/tools/agents`, oazapfts.json({
|
|
1529
|
+
...opts,
|
|
1530
|
+
method: "POST",
|
|
1531
|
+
body: listAgentsUsingToolsRequest,
|
|
1532
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1533
|
+
"x-account-id": xAccountId,
|
|
1534
|
+
"x-username": xUsername,
|
|
1535
|
+
"x-user-id": xUserId,
|
|
1536
|
+
"x-user-full-name": xUserFullName,
|
|
1537
|
+
authorization
|
|
1538
|
+
})
|
|
1539
|
+
})));
|
|
1540
|
+
}
|
|
1541
|
+
/**
|
|
1542
|
+
* List Tools
|
|
1543
|
+
*/
|
|
1544
|
+
export function listToolsV1AgentsAgentIdToolsGet({ agentId, versionNumber, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1545
|
+
agentId: string;
|
|
1546
|
+
versionNumber?: number | null;
|
|
1547
|
+
isPublic?: boolean;
|
|
1548
|
+
xAccountId?: string | null;
|
|
1549
|
+
xUsername?: string | null;
|
|
1550
|
+
xUserId?: string | null;
|
|
1551
|
+
xUserFullName?: string | null;
|
|
1552
|
+
authorization: string;
|
|
1553
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1554
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1555
|
+
status: 200;
|
|
1556
|
+
data: AgentToolsResponse;
|
|
1557
|
+
} | {
|
|
1558
|
+
status: 404;
|
|
1559
|
+
} | {
|
|
1560
|
+
status: 422;
|
|
1561
|
+
data: HttpValidationError;
|
|
1562
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/tools${QS.query(QS.explode({
|
|
1563
|
+
version_number: versionNumber,
|
|
1564
|
+
is_public: isPublic
|
|
1565
|
+
}))}`, {
|
|
1566
|
+
...opts,
|
|
1567
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1568
|
+
"x-account-id": xAccountId,
|
|
1569
|
+
"x-username": xUsername,
|
|
1570
|
+
"x-user-id": xUserId,
|
|
1571
|
+
"x-user-full-name": xUserFullName,
|
|
1572
|
+
authorization
|
|
1573
|
+
})
|
|
1574
|
+
}));
|
|
1575
|
+
}
|
|
1576
|
+
/**
|
|
1577
|
+
* List Tools By Agent For Schema
|
|
1578
|
+
*/
|
|
1579
|
+
export function listToolsByAgentForSchemaV1AgentsAgentIdToolsSchemaSchemaGet({ agentId, schema, versionNumber, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1580
|
+
agentId: string;
|
|
1581
|
+
schema: SchemaEnum;
|
|
1582
|
+
versionNumber?: number | null;
|
|
1583
|
+
isPublic?: boolean;
|
|
1584
|
+
xAccountId?: string | null;
|
|
1585
|
+
xUsername?: string | null;
|
|
1586
|
+
xUserId?: string | null;
|
|
1587
|
+
xUserFullName?: string | null;
|
|
1588
|
+
authorization: string;
|
|
1589
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1590
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1591
|
+
status: 200;
|
|
1592
|
+
data: (OpenAiTool | {
|
|
1593
|
+
[key: string]: any;
|
|
1594
|
+
})[];
|
|
1595
|
+
} | {
|
|
1596
|
+
status: 404;
|
|
1597
|
+
} | {
|
|
1598
|
+
status: 422;
|
|
1599
|
+
data: HttpValidationError;
|
|
1600
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/tools/schema/${encodeURIComponent(schema)}${QS.query(QS.explode({
|
|
1601
|
+
version_number: versionNumber,
|
|
1602
|
+
is_public: isPublic
|
|
1603
|
+
}))}`, {
|
|
1604
|
+
...opts,
|
|
1605
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1606
|
+
"x-account-id": xAccountId,
|
|
1607
|
+
"x-username": xUsername,
|
|
1608
|
+
"x-user-id": xUserId,
|
|
1609
|
+
"x-user-full-name": xUserFullName,
|
|
1610
|
+
authorization
|
|
1611
|
+
})
|
|
1612
|
+
}));
|
|
1613
|
+
}
|
|
1614
|
+
/**
|
|
1615
|
+
* Execute Tool
|
|
1616
|
+
*/
|
|
1617
|
+
export function executeToolV1AgentsToolsAgentToolIdExecutePost({ agentToolId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, executeAgentToolRequest }: {
|
|
1618
|
+
agentToolId: string;
|
|
1619
|
+
isPublic?: boolean;
|
|
1620
|
+
xAccountId?: string | null;
|
|
1621
|
+
xUsername?: string | null;
|
|
1622
|
+
xUserId?: string | null;
|
|
1623
|
+
xUserFullName?: string | null;
|
|
1624
|
+
authorization: string;
|
|
1625
|
+
executeAgentToolRequest: ExecuteAgentToolRequest;
|
|
1626
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1627
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1628
|
+
status: 200;
|
|
1629
|
+
data: AgentToolExecutionResponse;
|
|
1630
|
+
} | {
|
|
1631
|
+
status: 404;
|
|
1632
|
+
} | {
|
|
1633
|
+
status: 422;
|
|
1634
|
+
data: HttpValidationError;
|
|
1635
|
+
}>(`/v1/agents/tools/${encodeURIComponent(agentToolId)}/execute${QS.query(QS.explode({
|
|
1636
|
+
is_public: isPublic
|
|
1637
|
+
}))}`, oazapfts.json({
|
|
1638
|
+
...opts,
|
|
1639
|
+
method: "POST",
|
|
1640
|
+
body: executeAgentToolRequest,
|
|
1641
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1642
|
+
"x-account-id": xAccountId,
|
|
1643
|
+
"x-username": xUsername,
|
|
1644
|
+
"x-user-id": xUserId,
|
|
1645
|
+
"x-user-full-name": xUserFullName,
|
|
1646
|
+
authorization
|
|
1647
|
+
})
|
|
1648
|
+
})));
|
|
1649
|
+
}
|
|
1650
|
+
/**
|
|
1651
|
+
* List Agents
|
|
1652
|
+
*/
|
|
1653
|
+
export function listAgentsV1AgentsGet({ isPublic, name, slug, visibility, size, page, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1654
|
+
isPublic?: boolean;
|
|
1655
|
+
name?: string | null;
|
|
1656
|
+
slug?: string | null;
|
|
1657
|
+
visibility?: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
1658
|
+
size?: number;
|
|
1659
|
+
page?: number;
|
|
1660
|
+
xAccountId?: string | null;
|
|
1661
|
+
xUsername?: string | null;
|
|
1662
|
+
xUserId?: string | null;
|
|
1663
|
+
xUserFullName?: string | null;
|
|
1664
|
+
authorization: string;
|
|
1665
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1666
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1667
|
+
status: 200;
|
|
1668
|
+
data: ListAgentResponse[];
|
|
946
1669
|
} | {
|
|
947
1670
|
status: 404;
|
|
948
1671
|
} | {
|
|
949
1672
|
status: 422;
|
|
950
1673
|
data: HttpValidationError;
|
|
951
|
-
}>(`/v1/
|
|
1674
|
+
}>(`/v1/agents${QS.query(QS.explode({
|
|
1675
|
+
is_public: isPublic,
|
|
1676
|
+
name,
|
|
1677
|
+
slug,
|
|
1678
|
+
visibility,
|
|
1679
|
+
size,
|
|
1680
|
+
page
|
|
1681
|
+
}))}`, {
|
|
952
1682
|
...opts,
|
|
953
1683
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
954
1684
|
"x-account-id": xAccountId,
|
|
@@ -960,29 +1690,31 @@ export function getToolkitToolV1ToolkitsToolkitIdToolsToolIdGet({ toolkitId, too
|
|
|
960
1690
|
}));
|
|
961
1691
|
}
|
|
962
1692
|
/**
|
|
963
|
-
*
|
|
1693
|
+
* Create Agent
|
|
964
1694
|
*/
|
|
965
|
-
export function
|
|
966
|
-
|
|
967
|
-
toolId: string;
|
|
1695
|
+
export function createAgentV1AgentsPost({ isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, newAgentRequest }: {
|
|
1696
|
+
isPublic?: boolean;
|
|
968
1697
|
xAccountId?: string | null;
|
|
969
1698
|
xUsername?: string | null;
|
|
970
1699
|
xUserId?: string | null;
|
|
971
1700
|
xUserFullName?: string | null;
|
|
972
1701
|
authorization: string;
|
|
973
|
-
|
|
1702
|
+
newAgentRequest: NewAgentRequest;
|
|
974
1703
|
}, opts?: Oazapfts.RequestOpts) {
|
|
975
1704
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
976
|
-
status:
|
|
1705
|
+
status: 201;
|
|
1706
|
+
data: CreatedResponse;
|
|
977
1707
|
} | {
|
|
978
1708
|
status: 404;
|
|
979
1709
|
} | {
|
|
980
1710
|
status: 422;
|
|
981
1711
|
data: HttpValidationError;
|
|
982
|
-
}>(`/v1/
|
|
1712
|
+
}>(`/v1/agents${QS.query(QS.explode({
|
|
1713
|
+
is_public: isPublic
|
|
1714
|
+
}))}`, oazapfts.json({
|
|
983
1715
|
...opts,
|
|
984
|
-
method: "
|
|
985
|
-
body:
|
|
1716
|
+
method: "POST",
|
|
1717
|
+
body: newAgentRequest,
|
|
986
1718
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
987
1719
|
"x-account-id": xAccountId,
|
|
988
1720
|
"x-username": xUsername,
|
|
@@ -993,28 +1725,28 @@ export function editToolkitToolV1ToolkitsToolkitIdToolsToolIdPut({ toolkitId, to
|
|
|
993
1725
|
})));
|
|
994
1726
|
}
|
|
995
1727
|
/**
|
|
996
|
-
*
|
|
1728
|
+
* Search Agents By Ids
|
|
997
1729
|
*/
|
|
998
|
-
export function
|
|
999
|
-
toolkitId: string;
|
|
1730
|
+
export function searchAgentsByIdsV1AgentsSearchPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, searchAgentsRequest }: {
|
|
1000
1731
|
xAccountId?: string | null;
|
|
1001
1732
|
xUsername?: string | null;
|
|
1002
1733
|
xUserId?: string | null;
|
|
1003
1734
|
xUserFullName?: string | null;
|
|
1004
1735
|
authorization: string;
|
|
1005
|
-
|
|
1736
|
+
searchAgentsRequest: SearchAgentsRequest;
|
|
1006
1737
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1007
1738
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1008
|
-
status:
|
|
1739
|
+
status: 200;
|
|
1740
|
+
data: ListAgentResponse[];
|
|
1009
1741
|
} | {
|
|
1010
1742
|
status: 404;
|
|
1011
1743
|
} | {
|
|
1012
1744
|
status: 422;
|
|
1013
1745
|
data: HttpValidationError;
|
|
1014
|
-
}>(
|
|
1746
|
+
}>("/v1/agents/search", oazapfts.json({
|
|
1015
1747
|
...opts,
|
|
1016
1748
|
method: "POST",
|
|
1017
|
-
body:
|
|
1749
|
+
body: searchAgentsRequest,
|
|
1018
1750
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1019
1751
|
"x-account-id": xAccountId,
|
|
1020
1752
|
"x-username": xUsername,
|
|
@@ -1025,28 +1757,28 @@ export function createToolkitToolsV1ToolkitsToolkitIdToolsPost({ toolkitId, xAcc
|
|
|
1025
1757
|
})));
|
|
1026
1758
|
}
|
|
1027
1759
|
/**
|
|
1028
|
-
*
|
|
1760
|
+
* Workspace Fork
|
|
1029
1761
|
*/
|
|
1030
|
-
export function
|
|
1031
|
-
toolkitId: string;
|
|
1762
|
+
export function workspaceForkV1AgentsWorkspaceForkPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, workspaceForkRequest }: {
|
|
1032
1763
|
xAccountId?: string | null;
|
|
1033
1764
|
xUsername?: string | null;
|
|
1034
1765
|
xUserId?: string | null;
|
|
1035
1766
|
xUserFullName?: string | null;
|
|
1036
1767
|
authorization: string;
|
|
1037
|
-
|
|
1768
|
+
workspaceForkRequest: WorkspaceForkRequest;
|
|
1038
1769
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1039
1770
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1040
|
-
status:
|
|
1771
|
+
status: 201;
|
|
1772
|
+
data: WorkspaceForkAgent;
|
|
1041
1773
|
} | {
|
|
1042
1774
|
status: 404;
|
|
1043
1775
|
} | {
|
|
1044
1776
|
status: 422;
|
|
1045
1777
|
data: HttpValidationError;
|
|
1046
|
-
}>(
|
|
1778
|
+
}>("/v1/agents/workspace/fork", oazapfts.json({
|
|
1047
1779
|
...opts,
|
|
1048
|
-
method: "
|
|
1049
|
-
body:
|
|
1780
|
+
method: "POST",
|
|
1781
|
+
body: workspaceForkRequest,
|
|
1050
1782
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1051
1783
|
"x-account-id": xAccountId,
|
|
1052
1784
|
"x-username": xUsername,
|
|
@@ -1057,61 +1789,59 @@ export function deleteToolkitToolsV1ToolkitsToolkitIdToolsDelete({ toolkitId, xA
|
|
|
1057
1789
|
})));
|
|
1058
1790
|
}
|
|
1059
1791
|
/**
|
|
1060
|
-
*
|
|
1792
|
+
* Delete Workspace Fork
|
|
1061
1793
|
*/
|
|
1062
|
-
export function
|
|
1063
|
-
fileUploadId: string;
|
|
1064
|
-
authorization: string;
|
|
1794
|
+
export function deleteWorkspaceForkV1AgentsWorkspaceForkDelete({ xAccountId, xUsername, xUserId, xUserFullName, authorization, workspaceDeleteRequest }: {
|
|
1065
1795
|
xAccountId?: string | null;
|
|
1066
1796
|
xUsername?: string | null;
|
|
1067
1797
|
xUserId?: string | null;
|
|
1068
1798
|
xUserFullName?: string | null;
|
|
1069
|
-
|
|
1799
|
+
authorization: string;
|
|
1800
|
+
workspaceDeleteRequest: WorkspaceDeleteRequest;
|
|
1070
1801
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1071
1802
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1072
|
-
status:
|
|
1073
|
-
data: any;
|
|
1803
|
+
status: 204;
|
|
1074
1804
|
} | {
|
|
1075
1805
|
status: 404;
|
|
1076
1806
|
} | {
|
|
1077
1807
|
status: 422;
|
|
1078
1808
|
data: HttpValidationError;
|
|
1079
|
-
}>(
|
|
1809
|
+
}>("/v1/agents/workspace/fork", oazapfts.json({
|
|
1080
1810
|
...opts,
|
|
1811
|
+
method: "DELETE",
|
|
1812
|
+
body: workspaceDeleteRequest,
|
|
1081
1813
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1082
|
-
Authorization: authorization,
|
|
1083
1814
|
"x-account-id": xAccountId,
|
|
1084
1815
|
"x-username": xUsername,
|
|
1085
1816
|
"x-user-id": xUserId,
|
|
1086
1817
|
"x-user-full-name": xUserFullName,
|
|
1087
|
-
authorization
|
|
1818
|
+
authorization
|
|
1088
1819
|
})
|
|
1089
|
-
}));
|
|
1820
|
+
})));
|
|
1090
1821
|
}
|
|
1091
1822
|
/**
|
|
1092
|
-
* List
|
|
1823
|
+
* List Workspace
|
|
1093
1824
|
*/
|
|
1094
|
-
export function
|
|
1095
|
-
toolkitId: string;
|
|
1825
|
+
export function listWorkspaceV1AgentsWorkspaceListPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, workspaceListRequest }: {
|
|
1096
1826
|
xAccountId?: string | null;
|
|
1097
1827
|
xUsername?: string | null;
|
|
1098
1828
|
xUserId?: string | null;
|
|
1099
1829
|
xUserFullName?: string | null;
|
|
1100
1830
|
authorization: string;
|
|
1101
|
-
|
|
1831
|
+
workspaceListRequest: WorkspaceListRequest;
|
|
1102
1832
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1103
1833
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1104
1834
|
status: 200;
|
|
1105
|
-
data:
|
|
1835
|
+
data: ListAgentResponse[];
|
|
1106
1836
|
} | {
|
|
1107
1837
|
status: 404;
|
|
1108
1838
|
} | {
|
|
1109
1839
|
status: 422;
|
|
1110
1840
|
data: HttpValidationError;
|
|
1111
|
-
}>(
|
|
1841
|
+
}>("/v1/agents/workspace/list", oazapfts.json({
|
|
1112
1842
|
...opts,
|
|
1113
1843
|
method: "POST",
|
|
1114
|
-
body:
|
|
1844
|
+
body: workspaceListRequest,
|
|
1115
1845
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1116
1846
|
"x-account-id": xAccountId,
|
|
1117
1847
|
"x-username": xUsername,
|
|
@@ -1122,31 +1852,28 @@ export function listAgentsUsingToolsV1ToolkitsToolkitIdToolsAgentsPost({ toolkit
|
|
|
1122
1852
|
})));
|
|
1123
1853
|
}
|
|
1124
1854
|
/**
|
|
1125
|
-
*
|
|
1855
|
+
* List Agent Dependencies
|
|
1126
1856
|
*/
|
|
1127
|
-
export function
|
|
1128
|
-
agentId: string;
|
|
1129
|
-
isPublic?: boolean;
|
|
1857
|
+
export function listAgentDependenciesV1AgentsDependenciesPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, agentDependenciesRequest }: {
|
|
1130
1858
|
xAccountId?: string | null;
|
|
1131
1859
|
xUsername?: string | null;
|
|
1132
1860
|
xUserId?: string | null;
|
|
1133
1861
|
xUserFullName?: string | null;
|
|
1134
1862
|
authorization: string;
|
|
1135
|
-
|
|
1863
|
+
agentDependenciesRequest: AgentDependenciesRequest;
|
|
1136
1864
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1137
1865
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1138
|
-
status:
|
|
1866
|
+
status: 200;
|
|
1867
|
+
data: WorkspaceAgentDependencies;
|
|
1139
1868
|
} | {
|
|
1140
1869
|
status: 404;
|
|
1141
1870
|
} | {
|
|
1142
1871
|
status: 422;
|
|
1143
1872
|
data: HttpValidationError;
|
|
1144
|
-
}>(
|
|
1145
|
-
is_public: isPublic
|
|
1146
|
-
}))}`, oazapfts.json({
|
|
1873
|
+
}>("/v1/agents/dependencies", oazapfts.json({
|
|
1147
1874
|
...opts,
|
|
1148
1875
|
method: "POST",
|
|
1149
|
-
body:
|
|
1876
|
+
body: agentDependenciesRequest,
|
|
1150
1877
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1151
1878
|
"x-account-id": xAccountId,
|
|
1152
1879
|
"x-username": xUsername,
|
|
@@ -1157,11 +1884,14 @@ export function assignToolsV1AgentsAgentIdToolsPost({ agentId, isPublic, xAccoun
|
|
|
1157
1884
|
})));
|
|
1158
1885
|
}
|
|
1159
1886
|
/**
|
|
1160
|
-
* List
|
|
1887
|
+
* List Multi Agents
|
|
1161
1888
|
*/
|
|
1162
|
-
export function
|
|
1163
|
-
|
|
1164
|
-
|
|
1889
|
+
export function listMultiAgentsV1AgentsMultiAgentsGet({ name, slug, visibility, size, page, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1890
|
+
name?: string | null;
|
|
1891
|
+
slug?: string | null;
|
|
1892
|
+
visibility?: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
1893
|
+
size?: number;
|
|
1894
|
+
page?: number;
|
|
1165
1895
|
xAccountId?: string | null;
|
|
1166
1896
|
xUsername?: string | null;
|
|
1167
1897
|
xUserId?: string | null;
|
|
@@ -1170,14 +1900,18 @@ export function listToolsV1AgentsAgentIdToolsGet({ agentId, isPublic, xAccountId
|
|
|
1170
1900
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1171
1901
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1172
1902
|
status: 200;
|
|
1173
|
-
data:
|
|
1903
|
+
data: ListMultiAgentsResponse[];
|
|
1174
1904
|
} | {
|
|
1175
1905
|
status: 404;
|
|
1176
1906
|
} | {
|
|
1177
1907
|
status: 422;
|
|
1178
1908
|
data: HttpValidationError;
|
|
1179
|
-
}>(`/v1/agents
|
|
1180
|
-
|
|
1909
|
+
}>(`/v1/agents/multi-agents${QS.query(QS.explode({
|
|
1910
|
+
name,
|
|
1911
|
+
slug,
|
|
1912
|
+
visibility,
|
|
1913
|
+
size,
|
|
1914
|
+
page
|
|
1181
1915
|
}))}`, {
|
|
1182
1916
|
...opts,
|
|
1183
1917
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -1190,11 +1924,12 @@ export function listToolsV1AgentsAgentIdToolsGet({ agentId, isPublic, xAccountId
|
|
|
1190
1924
|
}));
|
|
1191
1925
|
}
|
|
1192
1926
|
/**
|
|
1193
|
-
*
|
|
1927
|
+
* Get Agent
|
|
1194
1928
|
*/
|
|
1195
|
-
export function
|
|
1929
|
+
export function getAgentV1AgentsAgentIdGet({ agentId, details, versionNumber, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1196
1930
|
agentId: string;
|
|
1197
|
-
|
|
1931
|
+
details?: boolean;
|
|
1932
|
+
versionNumber?: number | null;
|
|
1198
1933
|
xAccountId?: string | null;
|
|
1199
1934
|
xUsername?: string | null;
|
|
1200
1935
|
xUserId?: string | null;
|
|
@@ -1202,17 +1937,18 @@ export function deleteToolsV1AgentsAgentIdToolsDelete({ agentId, isPublic, xAcco
|
|
|
1202
1937
|
authorization: string;
|
|
1203
1938
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1204
1939
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1205
|
-
status:
|
|
1940
|
+
status: 200;
|
|
1941
|
+
data: FindByIdAgentResponse;
|
|
1206
1942
|
} | {
|
|
1207
1943
|
status: 404;
|
|
1208
1944
|
} | {
|
|
1209
1945
|
status: 422;
|
|
1210
1946
|
data: HttpValidationError;
|
|
1211
|
-
}>(`/v1/agents/${encodeURIComponent(agentId)}
|
|
1212
|
-
|
|
1947
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}${QS.query(QS.explode({
|
|
1948
|
+
details,
|
|
1949
|
+
version_number: versionNumber
|
|
1213
1950
|
}))}`, {
|
|
1214
1951
|
...opts,
|
|
1215
|
-
method: "DELETE",
|
|
1216
1952
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1217
1953
|
"x-account-id": xAccountId,
|
|
1218
1954
|
"x-username": xUsername,
|
|
@@ -1223,32 +1959,31 @@ export function deleteToolsV1AgentsAgentIdToolsDelete({ agentId, isPublic, xAcco
|
|
|
1223
1959
|
}));
|
|
1224
1960
|
}
|
|
1225
1961
|
/**
|
|
1226
|
-
*
|
|
1962
|
+
* Update Agent
|
|
1227
1963
|
*/
|
|
1228
|
-
export function
|
|
1964
|
+
export function updateAgentV1AgentsAgentIdPatch({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, updateAgentRequest }: {
|
|
1229
1965
|
agentId: string;
|
|
1230
|
-
schema: SchemaEnum;
|
|
1231
1966
|
isPublic?: boolean;
|
|
1232
1967
|
xAccountId?: string | null;
|
|
1233
1968
|
xUsername?: string | null;
|
|
1234
1969
|
xUserId?: string | null;
|
|
1235
1970
|
xUserFullName?: string | null;
|
|
1236
1971
|
authorization: string;
|
|
1972
|
+
updateAgentRequest: UpdateAgentRequest;
|
|
1237
1973
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1238
1974
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1239
|
-
status:
|
|
1240
|
-
data: (OpenAiTool | {
|
|
1241
|
-
[key: string]: any;
|
|
1242
|
-
})[];
|
|
1975
|
+
status: 204;
|
|
1243
1976
|
} | {
|
|
1244
1977
|
status: 404;
|
|
1245
1978
|
} | {
|
|
1246
1979
|
status: 422;
|
|
1247
1980
|
data: HttpValidationError;
|
|
1248
|
-
}>(`/v1/agents/${encodeURIComponent(agentId)}
|
|
1981
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}${QS.query(QS.explode({
|
|
1249
1982
|
is_public: isPublic
|
|
1250
|
-
}))}`, {
|
|
1983
|
+
}))}`, oazapfts.json({
|
|
1251
1984
|
...opts,
|
|
1985
|
+
method: "PATCH",
|
|
1986
|
+
body: updateAgentRequest,
|
|
1252
1987
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1253
1988
|
"x-account-id": xAccountId,
|
|
1254
1989
|
"x-username": xUsername,
|
|
@@ -1256,35 +1991,32 @@ export function listToolsByAgentForSchemaV1AgentsAgentIdToolsSchemaSchemaGet({ a
|
|
|
1256
1991
|
"x-user-full-name": xUserFullName,
|
|
1257
1992
|
authorization
|
|
1258
1993
|
})
|
|
1259
|
-
}));
|
|
1994
|
+
})));
|
|
1260
1995
|
}
|
|
1261
1996
|
/**
|
|
1262
|
-
*
|
|
1997
|
+
* Delete Agent
|
|
1263
1998
|
*/
|
|
1264
|
-
export function
|
|
1265
|
-
|
|
1999
|
+
export function deleteAgentV1AgentsAgentIdDelete({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2000
|
+
agentId: string;
|
|
1266
2001
|
isPublic?: boolean;
|
|
1267
2002
|
xAccountId?: string | null;
|
|
1268
2003
|
xUsername?: string | null;
|
|
1269
2004
|
xUserId?: string | null;
|
|
1270
2005
|
xUserFullName?: string | null;
|
|
1271
2006
|
authorization: string;
|
|
1272
|
-
executeAgentToolRequest: ExecuteAgentToolRequest;
|
|
1273
2007
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1274
2008
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1275
|
-
status:
|
|
1276
|
-
data: AgentToolExecutionResponse;
|
|
2009
|
+
status: 204;
|
|
1277
2010
|
} | {
|
|
1278
2011
|
status: 404;
|
|
1279
2012
|
} | {
|
|
1280
2013
|
status: 422;
|
|
1281
2014
|
data: HttpValidationError;
|
|
1282
|
-
}>(`/v1/agents
|
|
2015
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}${QS.query(QS.explode({
|
|
1283
2016
|
is_public: isPublic
|
|
1284
|
-
}))}`,
|
|
2017
|
+
}))}`, {
|
|
1285
2018
|
...opts,
|
|
1286
|
-
method: "
|
|
1287
|
-
body: executeAgentToolRequest,
|
|
2019
|
+
method: "DELETE",
|
|
1288
2020
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1289
2021
|
"x-account-id": xAccountId,
|
|
1290
2022
|
"x-username": xUsername,
|
|
@@ -1292,17 +2024,13 @@ export function executeToolV1AgentsToolsAgentToolIdExecutePost({ agentToolId, is
|
|
|
1292
2024
|
"x-user-full-name": xUserFullName,
|
|
1293
2025
|
authorization
|
|
1294
2026
|
})
|
|
1295
|
-
}))
|
|
2027
|
+
}));
|
|
1296
2028
|
}
|
|
1297
2029
|
/**
|
|
1298
|
-
*
|
|
2030
|
+
* Add Favorite
|
|
1299
2031
|
*/
|
|
1300
|
-
export function
|
|
1301
|
-
|
|
1302
|
-
slug?: string | null;
|
|
1303
|
-
visibility?: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
1304
|
-
size?: number;
|
|
1305
|
-
page?: number;
|
|
2032
|
+
export function addFavoriteV1AgentsAgentIdFavoritePost({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2033
|
+
agentId: string;
|
|
1306
2034
|
xAccountId?: string | null;
|
|
1307
2035
|
xUsername?: string | null;
|
|
1308
2036
|
xUserId?: string | null;
|
|
@@ -1310,21 +2038,15 @@ export function listAgentsV1AgentsGet({ name, slug, visibility, size, page, xAcc
|
|
|
1310
2038
|
authorization: string;
|
|
1311
2039
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1312
2040
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1313
|
-
status:
|
|
1314
|
-
data: ListAgentResponse[];
|
|
2041
|
+
status: 204;
|
|
1315
2042
|
} | {
|
|
1316
2043
|
status: 404;
|
|
1317
2044
|
} | {
|
|
1318
2045
|
status: 422;
|
|
1319
2046
|
data: HttpValidationError;
|
|
1320
|
-
}>(`/v1/agents
|
|
1321
|
-
name,
|
|
1322
|
-
slug,
|
|
1323
|
-
visibility,
|
|
1324
|
-
size,
|
|
1325
|
-
page
|
|
1326
|
-
}))}`, {
|
|
2047
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/favorite`, {
|
|
1327
2048
|
...opts,
|
|
2049
|
+
method: "POST",
|
|
1328
2050
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1329
2051
|
"x-account-id": xAccountId,
|
|
1330
2052
|
"x-username": xUsername,
|
|
@@ -1335,31 +2057,26 @@ export function listAgentsV1AgentsGet({ name, slug, visibility, size, page, xAcc
|
|
|
1335
2057
|
}));
|
|
1336
2058
|
}
|
|
1337
2059
|
/**
|
|
1338
|
-
*
|
|
2060
|
+
* Delete Favorite
|
|
1339
2061
|
*/
|
|
1340
|
-
export function
|
|
1341
|
-
|
|
2062
|
+
export function deleteFavoriteV1AgentsAgentIdFavoriteDelete({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2063
|
+
agentId: string;
|
|
1342
2064
|
xAccountId?: string | null;
|
|
1343
2065
|
xUsername?: string | null;
|
|
1344
2066
|
xUserId?: string | null;
|
|
1345
2067
|
xUserFullName?: string | null;
|
|
1346
2068
|
authorization: string;
|
|
1347
|
-
newAgentRequest: NewAgentRequest;
|
|
1348
2069
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1349
2070
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1350
|
-
status:
|
|
1351
|
-
data: CreatedResponse;
|
|
2071
|
+
status: 204;
|
|
1352
2072
|
} | {
|
|
1353
2073
|
status: 404;
|
|
1354
2074
|
} | {
|
|
1355
2075
|
status: 422;
|
|
1356
2076
|
data: HttpValidationError;
|
|
1357
|
-
}>(`/v1/agents
|
|
1358
|
-
is_public: isPublic
|
|
1359
|
-
}))}`, oazapfts.json({
|
|
2077
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/favorite`, {
|
|
1360
2078
|
...opts,
|
|
1361
|
-
method: "
|
|
1362
|
-
body: newAgentRequest,
|
|
2079
|
+
method: "DELETE",
|
|
1363
2080
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1364
2081
|
"x-account-id": xAccountId,
|
|
1365
2082
|
"x-username": xUsername,
|
|
@@ -1367,31 +2084,35 @@ export function createAgentV1AgentsPost({ isPublic, xAccountId, xUsername, xUser
|
|
|
1367
2084
|
"x-user-full-name": xUserFullName,
|
|
1368
2085
|
authorization
|
|
1369
2086
|
})
|
|
1370
|
-
}))
|
|
2087
|
+
}));
|
|
1371
2088
|
}
|
|
1372
2089
|
/**
|
|
1373
|
-
*
|
|
2090
|
+
* Fork Agent
|
|
1374
2091
|
*/
|
|
1375
|
-
export function
|
|
2092
|
+
export function forkAgentV1AgentsAgentIdForkPost({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, forkAgentRequest }: {
|
|
2093
|
+
agentId: string;
|
|
2094
|
+
isPublic?: boolean;
|
|
1376
2095
|
xAccountId?: string | null;
|
|
1377
2096
|
xUsername?: string | null;
|
|
1378
2097
|
xUserId?: string | null;
|
|
1379
2098
|
xUserFullName?: string | null;
|
|
1380
2099
|
authorization: string;
|
|
1381
|
-
|
|
2100
|
+
forkAgentRequest: ForkAgentRequest;
|
|
1382
2101
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1383
2102
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1384
|
-
status:
|
|
1385
|
-
data:
|
|
2103
|
+
status: 201;
|
|
2104
|
+
data: CreatedResponse;
|
|
1386
2105
|
} | {
|
|
1387
2106
|
status: 404;
|
|
1388
2107
|
} | {
|
|
1389
2108
|
status: 422;
|
|
1390
2109
|
data: HttpValidationError;
|
|
1391
|
-
}>(
|
|
2110
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/fork${QS.query(QS.explode({
|
|
2111
|
+
is_public: isPublic
|
|
2112
|
+
}))}`, oazapfts.json({
|
|
1392
2113
|
...opts,
|
|
1393
2114
|
method: "POST",
|
|
1394
|
-
body:
|
|
2115
|
+
body: forkAgentRequest,
|
|
1395
2116
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1396
2117
|
"x-account-id": xAccountId,
|
|
1397
2118
|
"x-username": xUsername,
|
|
@@ -1402,28 +2123,28 @@ export function searchAgentsV1AgentsSearchPost({ xAccountId, xUsername, xUserId,
|
|
|
1402
2123
|
})));
|
|
1403
2124
|
}
|
|
1404
2125
|
/**
|
|
1405
|
-
*
|
|
2126
|
+
* Publish Agent
|
|
1406
2127
|
*/
|
|
1407
|
-
export function
|
|
2128
|
+
export function publishAgentV1AgentsAgentIdPublishPost({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization, publishAgentRequest }: {
|
|
2129
|
+
agentId: string;
|
|
1408
2130
|
xAccountId?: string | null;
|
|
1409
2131
|
xUsername?: string | null;
|
|
1410
2132
|
xUserId?: string | null;
|
|
1411
2133
|
xUserFullName?: string | null;
|
|
1412
2134
|
authorization: string;
|
|
1413
|
-
|
|
2135
|
+
publishAgentRequest: PublishAgentRequest;
|
|
1414
2136
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1415
2137
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1416
|
-
status:
|
|
1417
|
-
data: WorkspaceForkAgent;
|
|
2138
|
+
status: 204;
|
|
1418
2139
|
} | {
|
|
1419
2140
|
status: 404;
|
|
1420
2141
|
} | {
|
|
1421
2142
|
status: 422;
|
|
1422
2143
|
data: HttpValidationError;
|
|
1423
|
-
}>(
|
|
2144
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/publish`, oazapfts.json({
|
|
1424
2145
|
...opts,
|
|
1425
2146
|
method: "POST",
|
|
1426
|
-
body:
|
|
2147
|
+
body: publishAgentRequest,
|
|
1427
2148
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1428
2149
|
"x-account-id": xAccountId,
|
|
1429
2150
|
"x-username": xUsername,
|
|
@@ -1434,15 +2155,15 @@ export function workspaceForkV1AgentsWorkspaceForkPost({ xAccountId, xUsername,
|
|
|
1434
2155
|
})));
|
|
1435
2156
|
}
|
|
1436
2157
|
/**
|
|
1437
|
-
*
|
|
2158
|
+
* Share
|
|
1438
2159
|
*/
|
|
1439
|
-
export function
|
|
2160
|
+
export function shareV1AgentsAgentIdSharePost({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2161
|
+
agentId: string;
|
|
1440
2162
|
xAccountId?: string | null;
|
|
1441
2163
|
xUsername?: string | null;
|
|
1442
2164
|
xUserId?: string | null;
|
|
1443
2165
|
xUserFullName?: string | null;
|
|
1444
2166
|
authorization: string;
|
|
1445
|
-
workspaceDeleteRequest: WorkspaceDeleteRequest;
|
|
1446
2167
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1447
2168
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1448
2169
|
status: 204;
|
|
@@ -1451,10 +2172,9 @@ export function deleteWorkspaceForkV1AgentsWorkspaceForkDelete({ xAccountId, xUs
|
|
|
1451
2172
|
} | {
|
|
1452
2173
|
status: 422;
|
|
1453
2174
|
data: HttpValidationError;
|
|
1454
|
-
}>(
|
|
2175
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/share`, {
|
|
1455
2176
|
...opts,
|
|
1456
|
-
method: "
|
|
1457
|
-
body: workspaceDeleteRequest,
|
|
2177
|
+
method: "POST",
|
|
1458
2178
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1459
2179
|
"x-account-id": xAccountId,
|
|
1460
2180
|
"x-username": xUsername,
|
|
@@ -1462,31 +2182,29 @@ export function deleteWorkspaceForkV1AgentsWorkspaceForkDelete({ xAccountId, xUs
|
|
|
1462
2182
|
"x-user-full-name": xUserFullName,
|
|
1463
2183
|
authorization
|
|
1464
2184
|
})
|
|
1465
|
-
}))
|
|
2185
|
+
}));
|
|
1466
2186
|
}
|
|
1467
2187
|
/**
|
|
1468
|
-
*
|
|
2188
|
+
* Disassociate Ks From All Agents
|
|
1469
2189
|
*/
|
|
1470
|
-
export function
|
|
2190
|
+
export function disassociateKsFromAllAgentsV1AgentsKnowledgeSourceKsIdDelete({ ksId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2191
|
+
ksId: string;
|
|
1471
2192
|
xAccountId?: string | null;
|
|
1472
2193
|
xUsername?: string | null;
|
|
1473
2194
|
xUserId?: string | null;
|
|
1474
2195
|
xUserFullName?: string | null;
|
|
1475
2196
|
authorization: string;
|
|
1476
|
-
workspaceListRequest: WorkspaceListRequest;
|
|
1477
2197
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1478
2198
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1479
|
-
status:
|
|
1480
|
-
data: ListAgentResponse[];
|
|
2199
|
+
status: 204;
|
|
1481
2200
|
} | {
|
|
1482
2201
|
status: 404;
|
|
1483
2202
|
} | {
|
|
1484
2203
|
status: 422;
|
|
1485
2204
|
data: HttpValidationError;
|
|
1486
|
-
}>(
|
|
2205
|
+
}>(`/v1/agents/knowledge-source/${encodeURIComponent(ksId)}`, {
|
|
1487
2206
|
...opts,
|
|
1488
|
-
method: "
|
|
1489
|
-
body: workspaceListRequest,
|
|
2207
|
+
method: "DELETE",
|
|
1490
2208
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1491
2209
|
"x-account-id": xAccountId,
|
|
1492
2210
|
"x-username": xUsername,
|
|
@@ -1494,31 +2212,29 @@ export function listWorkspaceV1AgentsWorkspaceListPost({ xAccountId, xUsername,
|
|
|
1494
2212
|
"x-user-full-name": xUserFullName,
|
|
1495
2213
|
authorization
|
|
1496
2214
|
})
|
|
1497
|
-
}))
|
|
2215
|
+
}));
|
|
1498
2216
|
}
|
|
1499
2217
|
/**
|
|
1500
|
-
*
|
|
2218
|
+
* Get Agent By Ks Id
|
|
1501
2219
|
*/
|
|
1502
|
-
export function
|
|
2220
|
+
export function getAgentByKsIdV1AgentsKnowledgeSourceKsIdGet({ ksId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2221
|
+
ksId: string;
|
|
1503
2222
|
xAccountId?: string | null;
|
|
1504
2223
|
xUsername?: string | null;
|
|
1505
2224
|
xUserId?: string | null;
|
|
1506
2225
|
xUserFullName?: string | null;
|
|
1507
2226
|
authorization: string;
|
|
1508
|
-
agentDependenciesRequest: AgentDependenciesRequest;
|
|
1509
2227
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1510
2228
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1511
2229
|
status: 200;
|
|
1512
|
-
data:
|
|
2230
|
+
data: ListAgentResponse[];
|
|
1513
2231
|
} | {
|
|
1514
2232
|
status: 404;
|
|
1515
2233
|
} | {
|
|
1516
2234
|
status: 422;
|
|
1517
2235
|
data: HttpValidationError;
|
|
1518
|
-
}>(
|
|
2236
|
+
}>(`/v1/agents/knowledge-source/${encodeURIComponent(ksId)}`, {
|
|
1519
2237
|
...opts,
|
|
1520
|
-
method: "POST",
|
|
1521
|
-
body: agentDependenciesRequest,
|
|
1522
2238
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1523
2239
|
"x-account-id": xAccountId,
|
|
1524
2240
|
"x-username": xUsername,
|
|
@@ -1526,17 +2242,13 @@ export function listAgentDependenciesV1AgentsDependenciesPost({ xAccountId, xUse
|
|
|
1526
2242
|
"x-user-full-name": xUserFullName,
|
|
1527
2243
|
authorization
|
|
1528
2244
|
})
|
|
1529
|
-
}))
|
|
2245
|
+
}));
|
|
1530
2246
|
}
|
|
1531
2247
|
/**
|
|
1532
|
-
*
|
|
2248
|
+
* Migrate Agent Avatar By Id
|
|
1533
2249
|
*/
|
|
1534
|
-
export function
|
|
1535
|
-
|
|
1536
|
-
slug?: string | null;
|
|
1537
|
-
visibility?: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
1538
|
-
size?: number;
|
|
1539
|
-
page?: number;
|
|
2250
|
+
export function migrateAgentAvatarByIdV1AgentsAgentIdMigrateAvatarPost({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2251
|
+
agentId: string;
|
|
1540
2252
|
xAccountId?: string | null;
|
|
1541
2253
|
xUsername?: string | null;
|
|
1542
2254
|
xUserId?: string | null;
|
|
@@ -1544,21 +2256,15 @@ export function listMultiAgentsV1AgentsMultiAgentsGet({ name, slug, visibility,
|
|
|
1544
2256
|
authorization: string;
|
|
1545
2257
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1546
2258
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1547
|
-
status:
|
|
1548
|
-
data: ListMultiAgentsResponse[];
|
|
2259
|
+
status: 204;
|
|
1549
2260
|
} | {
|
|
1550
2261
|
status: 404;
|
|
1551
2262
|
} | {
|
|
1552
2263
|
status: 422;
|
|
1553
2264
|
data: HttpValidationError;
|
|
1554
|
-
}>(`/v1/agents/
|
|
1555
|
-
name,
|
|
1556
|
-
slug,
|
|
1557
|
-
visibility,
|
|
1558
|
-
size,
|
|
1559
|
-
page
|
|
1560
|
-
}))}`, {
|
|
2265
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/migrate-avatar`, {
|
|
1561
2266
|
...opts,
|
|
2267
|
+
method: "POST",
|
|
1562
2268
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1563
2269
|
"x-account-id": xAccountId,
|
|
1564
2270
|
"x-username": xUsername,
|
|
@@ -1569,29 +2275,32 @@ export function listMultiAgentsV1AgentsMultiAgentsGet({ name, slug, visibility,
|
|
|
1569
2275
|
}));
|
|
1570
2276
|
}
|
|
1571
2277
|
/**
|
|
1572
|
-
*
|
|
2278
|
+
* Create Version
|
|
1573
2279
|
*/
|
|
1574
|
-
export function
|
|
1575
|
-
|
|
1576
|
-
details?: boolean;
|
|
2280
|
+
export function createVersionV1AgentsAgentCoreIdVersionsPost({ agentCoreId, xAccountId, xUsername, xUserId, xUserFullName, authorization, createVersionRequest }: {
|
|
2281
|
+
agentCoreId: string;
|
|
1577
2282
|
xAccountId?: string | null;
|
|
1578
2283
|
xUsername?: string | null;
|
|
1579
2284
|
xUserId?: string | null;
|
|
1580
2285
|
xUserFullName?: string | null;
|
|
1581
2286
|
authorization: string;
|
|
2287
|
+
createVersionRequest: CreateVersionRequest;
|
|
1582
2288
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1583
2289
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1584
2290
|
status: 200;
|
|
1585
|
-
data:
|
|
2291
|
+
data: CreateVersionResponse;
|
|
2292
|
+
} | {
|
|
2293
|
+
status: 201;
|
|
2294
|
+
data: CreateVersionResponse;
|
|
1586
2295
|
} | {
|
|
1587
2296
|
status: 404;
|
|
1588
2297
|
} | {
|
|
1589
2298
|
status: 422;
|
|
1590
2299
|
data: HttpValidationError;
|
|
1591
|
-
}>(`/v1/agents/${encodeURIComponent(
|
|
1592
|
-
details
|
|
1593
|
-
}))}`, {
|
|
2300
|
+
}>(`/v1/agents/${encodeURIComponent(agentCoreId)}/versions`, oazapfts.json({
|
|
1594
2301
|
...opts,
|
|
2302
|
+
method: "POST",
|
|
2303
|
+
body: createVersionRequest,
|
|
1595
2304
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1596
2305
|
"x-account-id": xAccountId,
|
|
1597
2306
|
"x-username": xUsername,
|
|
@@ -1599,34 +2308,29 @@ export function getAgentV1AgentsAgentIdGet({ agentId, details, xAccountId, xUser
|
|
|
1599
2308
|
"x-user-full-name": xUserFullName,
|
|
1600
2309
|
authorization
|
|
1601
2310
|
})
|
|
1602
|
-
}));
|
|
2311
|
+
})));
|
|
1603
2312
|
}
|
|
1604
2313
|
/**
|
|
1605
|
-
*
|
|
2314
|
+
* List Versions Of Agent Core
|
|
1606
2315
|
*/
|
|
1607
|
-
export function
|
|
1608
|
-
|
|
1609
|
-
isPublic?: boolean;
|
|
2316
|
+
export function listVersionsOfAgentCoreV1AgentsAgentCoreIdVersionsGet({ agentCoreId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2317
|
+
agentCoreId: string;
|
|
1610
2318
|
xAccountId?: string | null;
|
|
1611
2319
|
xUsername?: string | null;
|
|
1612
2320
|
xUserId?: string | null;
|
|
1613
2321
|
xUserFullName?: string | null;
|
|
1614
2322
|
authorization: string;
|
|
1615
|
-
updateAgentRequest: UpdateAgentRequest;
|
|
1616
2323
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1617
2324
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1618
|
-
status:
|
|
2325
|
+
status: 200;
|
|
2326
|
+
data: ListAgentVersionResponse[];
|
|
1619
2327
|
} | {
|
|
1620
2328
|
status: 404;
|
|
1621
2329
|
} | {
|
|
1622
2330
|
status: 422;
|
|
1623
2331
|
data: HttpValidationError;
|
|
1624
|
-
}>(`/v1/agents/${encodeURIComponent(
|
|
1625
|
-
is_public: isPublic
|
|
1626
|
-
}))}`, oazapfts.json({
|
|
2332
|
+
}>(`/v1/agents/${encodeURIComponent(agentCoreId)}/versions`, {
|
|
1627
2333
|
...opts,
|
|
1628
|
-
method: "PATCH",
|
|
1629
|
-
body: updateAgentRequest,
|
|
1630
2334
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1631
2335
|
"x-account-id": xAccountId,
|
|
1632
2336
|
"x-username": xUsername,
|
|
@@ -1634,13 +2338,14 @@ export function updateAgentV1AgentsAgentIdPatch({ agentId, isPublic, xAccountId,
|
|
|
1634
2338
|
"x-user-full-name": xUserFullName,
|
|
1635
2339
|
authorization
|
|
1636
2340
|
})
|
|
1637
|
-
}))
|
|
2341
|
+
}));
|
|
1638
2342
|
}
|
|
1639
2343
|
/**
|
|
1640
|
-
* Delete
|
|
2344
|
+
* Delete Version
|
|
1641
2345
|
*/
|
|
1642
|
-
export function
|
|
1643
|
-
|
|
2346
|
+
export function deleteVersionV1AgentsAgentCoreIdVersionsVersionNumberDelete({ agentCoreId, versionNumber, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2347
|
+
agentCoreId: string;
|
|
2348
|
+
versionNumber: number;
|
|
1644
2349
|
isPublic?: boolean;
|
|
1645
2350
|
xAccountId?: string | null;
|
|
1646
2351
|
xUsername?: string | null;
|
|
@@ -1655,7 +2360,7 @@ export function deleteAgentV1AgentsAgentIdDelete({ agentId, isPublic, xAccountId
|
|
|
1655
2360
|
} | {
|
|
1656
2361
|
status: 422;
|
|
1657
2362
|
data: HttpValidationError;
|
|
1658
|
-
}>(`/v1/agents/${encodeURIComponent(
|
|
2363
|
+
}>(`/v1/agents/${encodeURIComponent(agentCoreId)}/versions/${encodeURIComponent(versionNumber)}${QS.query(QS.explode({
|
|
1659
2364
|
is_public: isPublic
|
|
1660
2365
|
}))}`, {
|
|
1661
2366
|
...opts,
|
|
@@ -1670,10 +2375,11 @@ export function deleteAgentV1AgentsAgentIdDelete({ agentId, isPublic, xAccountId
|
|
|
1670
2375
|
}));
|
|
1671
2376
|
}
|
|
1672
2377
|
/**
|
|
1673
|
-
*
|
|
2378
|
+
* Patch Version Recommended
|
|
1674
2379
|
*/
|
|
1675
|
-
export function
|
|
1676
|
-
|
|
2380
|
+
export function patchVersionRecommendedV1AgentsAgentCoreIdVersionsVersionNumberPatch({ agentCoreId, versionNumber, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2381
|
+
agentCoreId: string;
|
|
2382
|
+
versionNumber: number;
|
|
1677
2383
|
xAccountId?: string | null;
|
|
1678
2384
|
xUsername?: string | null;
|
|
1679
2385
|
xUserId?: string | null;
|
|
@@ -1681,15 +2387,16 @@ export function addFavoriteV1AgentsAgentIdFavoritePost({ agentId, xAccountId, xU
|
|
|
1681
2387
|
authorization: string;
|
|
1682
2388
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1683
2389
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1684
|
-
status:
|
|
2390
|
+
status: 200;
|
|
2391
|
+
data: AgentVersionResponse;
|
|
1685
2392
|
} | {
|
|
1686
2393
|
status: 404;
|
|
1687
2394
|
} | {
|
|
1688
2395
|
status: 422;
|
|
1689
2396
|
data: HttpValidationError;
|
|
1690
|
-
}>(`/v1/agents/${encodeURIComponent(
|
|
2397
|
+
}>(`/v1/agents/${encodeURIComponent(agentCoreId)}/versions/${encodeURIComponent(versionNumber)}`, {
|
|
1691
2398
|
...opts,
|
|
1692
|
-
method: "
|
|
2399
|
+
method: "PATCH",
|
|
1693
2400
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1694
2401
|
"x-account-id": xAccountId,
|
|
1695
2402
|
"x-username": xUsername,
|
|
@@ -1700,26 +2407,30 @@ export function addFavoriteV1AgentsAgentIdFavoritePost({ agentId, xAccountId, xU
|
|
|
1700
2407
|
}));
|
|
1701
2408
|
}
|
|
1702
2409
|
/**
|
|
1703
|
-
*
|
|
2410
|
+
* Fork Agent Version
|
|
1704
2411
|
*/
|
|
1705
|
-
export function
|
|
1706
|
-
|
|
2412
|
+
export function forkAgentVersionV1AgentsAgentCoreIdVersionsVersionNumberForkPost({ agentCoreId, versionNumber, xAccountId, xUsername, xUserId, xUserFullName, authorization, forkAgentRequest }: {
|
|
2413
|
+
agentCoreId: string;
|
|
2414
|
+
versionNumber: number;
|
|
1707
2415
|
xAccountId?: string | null;
|
|
1708
2416
|
xUsername?: string | null;
|
|
1709
2417
|
xUserId?: string | null;
|
|
1710
2418
|
xUserFullName?: string | null;
|
|
1711
2419
|
authorization: string;
|
|
2420
|
+
forkAgentRequest: ForkAgentRequest;
|
|
1712
2421
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1713
2422
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1714
|
-
status:
|
|
2423
|
+
status: 201;
|
|
2424
|
+
data: ForkedAgentCoreAndVersionResponse;
|
|
1715
2425
|
} | {
|
|
1716
2426
|
status: 404;
|
|
1717
2427
|
} | {
|
|
1718
2428
|
status: 422;
|
|
1719
2429
|
data: HttpValidationError;
|
|
1720
|
-
}>(`/v1/agents/${encodeURIComponent(
|
|
2430
|
+
}>(`/v1/agents/${encodeURIComponent(agentCoreId)}/versions/${encodeURIComponent(versionNumber)}/fork`, oazapfts.json({
|
|
1721
2431
|
...opts,
|
|
1722
|
-
method: "
|
|
2432
|
+
method: "POST",
|
|
2433
|
+
body: forkAgentRequest,
|
|
1723
2434
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1724
2435
|
"x-account-id": xAccountId,
|
|
1725
2436
|
"x-username": xUsername,
|
|
@@ -1727,35 +2438,39 @@ export function deleteFavoriteV1AgentsAgentIdFavoriteDelete({ agentId, xAccountI
|
|
|
1727
2438
|
"x-user-full-name": xUserFullName,
|
|
1728
2439
|
authorization
|
|
1729
2440
|
})
|
|
1730
|
-
}));
|
|
2441
|
+
})));
|
|
1731
2442
|
}
|
|
1732
2443
|
/**
|
|
1733
|
-
*
|
|
2444
|
+
* List Agents
|
|
1734
2445
|
*/
|
|
1735
|
-
export function
|
|
1736
|
-
|
|
1737
|
-
|
|
2446
|
+
export function listAgentsV2AgentsGet({ name, slug, visibility, size, page, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2447
|
+
name?: string | null;
|
|
2448
|
+
slug?: string | null;
|
|
2449
|
+
visibility?: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
2450
|
+
size?: number;
|
|
2451
|
+
page?: number;
|
|
1738
2452
|
xAccountId?: string | null;
|
|
1739
2453
|
xUsername?: string | null;
|
|
1740
2454
|
xUserId?: string | null;
|
|
1741
2455
|
xUserFullName?: string | null;
|
|
1742
2456
|
authorization: string;
|
|
1743
|
-
forkAgentRequest: ForkAgentRequest;
|
|
1744
2457
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1745
2458
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1746
|
-
status:
|
|
1747
|
-
data:
|
|
2459
|
+
status: 200;
|
|
2460
|
+
data: ListAgentResponseV2[];
|
|
1748
2461
|
} | {
|
|
1749
2462
|
status: 404;
|
|
1750
2463
|
} | {
|
|
1751
2464
|
status: 422;
|
|
1752
2465
|
data: HttpValidationError;
|
|
1753
|
-
}>(`/
|
|
1754
|
-
|
|
1755
|
-
|
|
2466
|
+
}>(`/v2/agents${QS.query(QS.explode({
|
|
2467
|
+
name,
|
|
2468
|
+
slug,
|
|
2469
|
+
visibility,
|
|
2470
|
+
size,
|
|
2471
|
+
page
|
|
2472
|
+
}))}`, {
|
|
1756
2473
|
...opts,
|
|
1757
|
-
method: "POST",
|
|
1758
|
-
body: forkAgentRequest,
|
|
1759
2474
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1760
2475
|
"x-account-id": xAccountId,
|
|
1761
2476
|
"x-username": xUsername,
|
|
@@ -1763,31 +2478,34 @@ export function forkAgentV1AgentsAgentIdForkPost({ agentId, isPublic, xAccountId
|
|
|
1763
2478
|
"x-user-full-name": xUserFullName,
|
|
1764
2479
|
authorization
|
|
1765
2480
|
})
|
|
1766
|
-
}))
|
|
2481
|
+
}));
|
|
1767
2482
|
}
|
|
1768
2483
|
/**
|
|
1769
|
-
*
|
|
2484
|
+
* Create Agent
|
|
1770
2485
|
*/
|
|
1771
|
-
export function
|
|
1772
|
-
|
|
2486
|
+
export function createAgentV2AgentsPost({ isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, newAgentRequestV2 }: {
|
|
2487
|
+
isPublic?: boolean;
|
|
1773
2488
|
xAccountId?: string | null;
|
|
1774
2489
|
xUsername?: string | null;
|
|
1775
2490
|
xUserId?: string | null;
|
|
1776
2491
|
xUserFullName?: string | null;
|
|
1777
2492
|
authorization: string;
|
|
1778
|
-
|
|
2493
|
+
newAgentRequestV2: NewAgentRequestV2;
|
|
1779
2494
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1780
2495
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1781
|
-
status:
|
|
2496
|
+
status: 201;
|
|
2497
|
+
data: CreatedResponse;
|
|
1782
2498
|
} | {
|
|
1783
2499
|
status: 404;
|
|
1784
2500
|
} | {
|
|
1785
2501
|
status: 422;
|
|
1786
2502
|
data: HttpValidationError;
|
|
1787
|
-
}>(`/
|
|
2503
|
+
}>(`/v2/agents${QS.query(QS.explode({
|
|
2504
|
+
is_public: isPublic
|
|
2505
|
+
}))}`, oazapfts.json({
|
|
1788
2506
|
...opts,
|
|
1789
2507
|
method: "POST",
|
|
1790
|
-
body:
|
|
2508
|
+
body: newAgentRequestV2,
|
|
1791
2509
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1792
2510
|
"x-account-id": xAccountId,
|
|
1793
2511
|
"x-username": xUsername,
|
|
@@ -1798,26 +2516,28 @@ export function publishAgentV1AgentsAgentIdPublishPost({ agentId, xAccountId, xU
|
|
|
1798
2516
|
})));
|
|
1799
2517
|
}
|
|
1800
2518
|
/**
|
|
1801
|
-
*
|
|
2519
|
+
* Search Agents
|
|
1802
2520
|
*/
|
|
1803
|
-
export function
|
|
1804
|
-
agentId: string;
|
|
2521
|
+
export function searchAgentsV2AgentsSearchPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, searchAgentsRequestV2 }: {
|
|
1805
2522
|
xAccountId?: string | null;
|
|
1806
2523
|
xUsername?: string | null;
|
|
1807
2524
|
xUserId?: string | null;
|
|
1808
2525
|
xUserFullName?: string | null;
|
|
1809
2526
|
authorization: string;
|
|
2527
|
+
searchAgentsRequestV2: SearchAgentsRequestV2;
|
|
1810
2528
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1811
2529
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1812
|
-
status:
|
|
2530
|
+
status: 200;
|
|
2531
|
+
data: ListAgentResponseV2[];
|
|
1813
2532
|
} | {
|
|
1814
2533
|
status: 404;
|
|
1815
2534
|
} | {
|
|
1816
2535
|
status: 422;
|
|
1817
2536
|
data: HttpValidationError;
|
|
1818
|
-
}>(
|
|
2537
|
+
}>("/v2/agents/search", oazapfts.json({
|
|
1819
2538
|
...opts,
|
|
1820
2539
|
method: "POST",
|
|
2540
|
+
body: searchAgentsRequestV2,
|
|
1821
2541
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1822
2542
|
"x-account-id": xAccountId,
|
|
1823
2543
|
"x-username": xUsername,
|
|
@@ -1825,18 +2545,20 @@ export function shareV1AgentsAgentIdSharePost({ agentId, xAccountId, xUsername,
|
|
|
1825
2545
|
"x-user-full-name": xUserFullName,
|
|
1826
2546
|
authorization
|
|
1827
2547
|
})
|
|
1828
|
-
}));
|
|
2548
|
+
})));
|
|
1829
2549
|
}
|
|
1830
2550
|
/**
|
|
1831
|
-
*
|
|
2551
|
+
* Update Agent
|
|
1832
2552
|
*/
|
|
1833
|
-
export function
|
|
1834
|
-
|
|
2553
|
+
export function updateAgentV2AgentsAgentIdPatch({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, updateAgentRequestV2 }: {
|
|
2554
|
+
agentId: string;
|
|
2555
|
+
isPublic?: boolean;
|
|
1835
2556
|
xAccountId?: string | null;
|
|
1836
2557
|
xUsername?: string | null;
|
|
1837
2558
|
xUserId?: string | null;
|
|
1838
2559
|
xUserFullName?: string | null;
|
|
1839
2560
|
authorization: string;
|
|
2561
|
+
updateAgentRequestV2: UpdateAgentRequestV2;
|
|
1840
2562
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1841
2563
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1842
2564
|
status: 204;
|
|
@@ -1845,9 +2567,12 @@ export function disassociateKsFromAllAgentsV1AgentsKnowledgeSourceKsIdDelete({ k
|
|
|
1845
2567
|
} | {
|
|
1846
2568
|
status: 422;
|
|
1847
2569
|
data: HttpValidationError;
|
|
1848
|
-
}>(`/
|
|
2570
|
+
}>(`/v2/agents/${encodeURIComponent(agentId)}${QS.query(QS.explode({
|
|
2571
|
+
is_public: isPublic
|
|
2572
|
+
}))}`, oazapfts.json({
|
|
1849
2573
|
...opts,
|
|
1850
|
-
method: "
|
|
2574
|
+
method: "PATCH",
|
|
2575
|
+
body: updateAgentRequestV2,
|
|
1851
2576
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1852
2577
|
"x-account-id": xAccountId,
|
|
1853
2578
|
"x-username": xUsername,
|
|
@@ -1855,13 +2580,15 @@ export function disassociateKsFromAllAgentsV1AgentsKnowledgeSourceKsIdDelete({ k
|
|
|
1855
2580
|
"x-user-full-name": xUserFullName,
|
|
1856
2581
|
authorization
|
|
1857
2582
|
})
|
|
1858
|
-
}));
|
|
2583
|
+
})));
|
|
1859
2584
|
}
|
|
1860
2585
|
/**
|
|
1861
|
-
*
|
|
2586
|
+
* Find By Agent Core Id
|
|
1862
2587
|
*/
|
|
1863
|
-
export function
|
|
1864
|
-
|
|
2588
|
+
export function findByAgentCoreIdV2AgentsAgentCoreIdGet({ agentCoreId, versionNumber, returnAllVersions, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2589
|
+
agentCoreId: string;
|
|
2590
|
+
versionNumber?: number | null;
|
|
2591
|
+
returnAllVersions?: boolean | null;
|
|
1865
2592
|
xAccountId?: string | null;
|
|
1866
2593
|
xUsername?: string | null;
|
|
1867
2594
|
xUserId?: string | null;
|
|
@@ -1870,13 +2597,16 @@ export function getAgentByKsIdV1AgentsKnowledgeSourceKsIdGet({ ksId, xAccountId,
|
|
|
1870
2597
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1871
2598
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1872
2599
|
status: 200;
|
|
1873
|
-
data:
|
|
2600
|
+
data: AgentCoreWithSingleVersionResponse;
|
|
1874
2601
|
} | {
|
|
1875
2602
|
status: 404;
|
|
1876
2603
|
} | {
|
|
1877
2604
|
status: 422;
|
|
1878
2605
|
data: HttpValidationError;
|
|
1879
|
-
}>(`/
|
|
2606
|
+
}>(`/v2/agents/${encodeURIComponent(agentCoreId)}${QS.query(QS.explode({
|
|
2607
|
+
version_number: versionNumber,
|
|
2608
|
+
return_all_versions: returnAllVersions
|
|
2609
|
+
}))}`, {
|
|
1880
2610
|
...opts,
|
|
1881
2611
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1882
2612
|
"x-account-id": xAccountId,
|
|
@@ -1890,12 +2620,9 @@ export function getAgentByKsIdV1AgentsKnowledgeSourceKsIdGet({ ksId, xAccountId,
|
|
|
1890
2620
|
/**
|
|
1891
2621
|
* List Agents
|
|
1892
2622
|
*/
|
|
1893
|
-
export function
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
visibility?: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
1897
|
-
size?: number;
|
|
1898
|
-
page?: number;
|
|
2623
|
+
export function listAgentsV3AgentsGet({ filters, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2624
|
+
filters: ListAgentRequestV4;
|
|
2625
|
+
isPublic?: boolean;
|
|
1899
2626
|
xAccountId?: string | null;
|
|
1900
2627
|
xUsername?: string | null;
|
|
1901
2628
|
xUserId?: string | null;
|
|
@@ -1904,18 +2631,15 @@ export function listAgentsV2AgentsGet({ name, slug, visibility, size, page, xAcc
|
|
|
1904
2631
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1905
2632
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1906
2633
|
status: 200;
|
|
1907
|
-
data:
|
|
2634
|
+
data: PaginatedResponseAgentResponseV3;
|
|
1908
2635
|
} | {
|
|
1909
2636
|
status: 404;
|
|
1910
2637
|
} | {
|
|
1911
2638
|
status: 422;
|
|
1912
2639
|
data: HttpValidationError;
|
|
1913
|
-
}>(`/
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
visibility,
|
|
1917
|
-
size,
|
|
1918
|
-
page
|
|
2640
|
+
}>(`/v3/agents${QS.query(QS.explode({
|
|
2641
|
+
filters,
|
|
2642
|
+
is_public: isPublic
|
|
1919
2643
|
}))}`, {
|
|
1920
2644
|
...opts,
|
|
1921
2645
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -1928,28 +2652,30 @@ export function listAgentsV2AgentsGet({ name, slug, visibility, size, page, xAcc
|
|
|
1928
2652
|
}));
|
|
1929
2653
|
}
|
|
1930
2654
|
/**
|
|
1931
|
-
*
|
|
2655
|
+
* List Agent Core with all versions
|
|
1932
2656
|
*/
|
|
1933
|
-
export function
|
|
2657
|
+
export function listAgentsV4AgentsGet({ filters, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2658
|
+
filters: ListAgentRequestV4;
|
|
2659
|
+
isPublic?: boolean;
|
|
1934
2660
|
xAccountId?: string | null;
|
|
1935
2661
|
xUsername?: string | null;
|
|
1936
2662
|
xUserId?: string | null;
|
|
1937
2663
|
xUserFullName?: string | null;
|
|
1938
2664
|
authorization: string;
|
|
1939
|
-
searchAgentsRequest: SearchAgentsRequest;
|
|
1940
2665
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1941
2666
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1942
2667
|
status: 200;
|
|
1943
|
-
data:
|
|
2668
|
+
data: PaginatedResponseListAgentCoreResponse;
|
|
1944
2669
|
} | {
|
|
1945
2670
|
status: 404;
|
|
1946
2671
|
} | {
|
|
1947
2672
|
status: 422;
|
|
1948
2673
|
data: HttpValidationError;
|
|
1949
|
-
}>(
|
|
2674
|
+
}>(`/v4/agents${QS.query(QS.explode({
|
|
2675
|
+
filters,
|
|
2676
|
+
is_public: isPublic
|
|
2677
|
+
}))}`, {
|
|
1950
2678
|
...opts,
|
|
1951
|
-
method: "POST",
|
|
1952
|
-
body: searchAgentsRequest,
|
|
1953
2679
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1954
2680
|
"x-account-id": xAccountId,
|
|
1955
2681
|
"x-username": xUsername,
|
|
@@ -1957,7 +2683,7 @@ export function searchAgentsV2AgentsSearchPost({ xAccountId, xUsername, xUserId,
|
|
|
1957
2683
|
"x-user-full-name": xUserFullName,
|
|
1958
2684
|
authorization
|
|
1959
2685
|
})
|
|
1960
|
-
}))
|
|
2686
|
+
}));
|
|
1961
2687
|
}
|
|
1962
2688
|
/**
|
|
1963
2689
|
* Internal List Toolkits By Ids
|
|
@@ -2054,3 +2780,75 @@ export function internalForkToolkitsByIdsV1SpotToolkitsForkPost({ xAccountId, xU
|
|
|
2054
2780
|
})
|
|
2055
2781
|
})));
|
|
2056
2782
|
}
|
|
2783
|
+
/**
|
|
2784
|
+
* List Toolkits
|
|
2785
|
+
*/
|
|
2786
|
+
export function listToolkitsV2ToolkitsGet({ name, visibilityList, size, page, order, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2787
|
+
name?: string | null;
|
|
2788
|
+
visibilityList?: VisibilityLevelEnum[];
|
|
2789
|
+
size?: number;
|
|
2790
|
+
page?: number;
|
|
2791
|
+
order?: OrderEnum | null;
|
|
2792
|
+
xAccountId?: string | null;
|
|
2793
|
+
xUsername?: string | null;
|
|
2794
|
+
xUserId?: string | null;
|
|
2795
|
+
xUserFullName?: string | null;
|
|
2796
|
+
authorization: string;
|
|
2797
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2798
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2799
|
+
status: 200;
|
|
2800
|
+
data: PaginatedResponseCustomToolkitSimpleResponse;
|
|
2801
|
+
} | {
|
|
2802
|
+
status: 404;
|
|
2803
|
+
} | {
|
|
2804
|
+
status: 422;
|
|
2805
|
+
data: HttpValidationError;
|
|
2806
|
+
}>(`/v2/toolkits${QS.query(QS.explode({
|
|
2807
|
+
name,
|
|
2808
|
+
visibility_list: visibilityList,
|
|
2809
|
+
size,
|
|
2810
|
+
page,
|
|
2811
|
+
order
|
|
2812
|
+
}))}`, {
|
|
2813
|
+
...opts,
|
|
2814
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2815
|
+
"x-account-id": xAccountId,
|
|
2816
|
+
"x-username": xUsername,
|
|
2817
|
+
"x-user-id": xUserId,
|
|
2818
|
+
"x-user-full-name": xUserFullName,
|
|
2819
|
+
authorization
|
|
2820
|
+
})
|
|
2821
|
+
}));
|
|
2822
|
+
}
|
|
2823
|
+
/**
|
|
2824
|
+
* List Mcp Tools
|
|
2825
|
+
*/
|
|
2826
|
+
export function listMcpToolsV1McpToolsToolkitIdGet({ toolkitId, cacheControl, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2827
|
+
toolkitId: string;
|
|
2828
|
+
cacheControl?: string | null;
|
|
2829
|
+
xAccountId?: string | null;
|
|
2830
|
+
xUsername?: string | null;
|
|
2831
|
+
xUserId?: string | null;
|
|
2832
|
+
xUserFullName?: string | null;
|
|
2833
|
+
authorization: string;
|
|
2834
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2835
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2836
|
+
status: 200;
|
|
2837
|
+
data: FunctionsResponse;
|
|
2838
|
+
} | {
|
|
2839
|
+
status: 404;
|
|
2840
|
+
} | {
|
|
2841
|
+
status: 422;
|
|
2842
|
+
data: HttpValidationError;
|
|
2843
|
+
}>(`/v1/mcp-tools/${encodeURIComponent(toolkitId)}`, {
|
|
2844
|
+
...opts,
|
|
2845
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2846
|
+
"cache-control": cacheControl,
|
|
2847
|
+
"x-account-id": xAccountId,
|
|
2848
|
+
"x-username": xUsername,
|
|
2849
|
+
"x-user-id": xUserId,
|
|
2850
|
+
"x-user-full-name": xUserFullName,
|
|
2851
|
+
authorization
|
|
2852
|
+
})
|
|
2853
|
+
}));
|
|
2854
|
+
}
|