@stack-spot/portal-network 0.184.0 → 0.185.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2444 -2412
- package/dist/api/account.js +1 -1
- package/dist/api/agent-tools.js +1 -1
- package/dist/api/agent.js +1 -1
- package/dist/api/ai.js +1 -1
- package/dist/api/apiManagement.js +1 -1
- package/dist/api/apiRuntime.js +1 -1
- package/dist/api/cloudAccount.js +1 -1
- package/dist/api/cloudPlatform.js +1 -1
- package/dist/api/cloudPlatformHorizon.js +1 -1
- package/dist/api/cloudRuntimes.js +1 -1
- package/dist/api/cloudServices.js +1 -1
- package/dist/api/codeShift.d.ts +63 -4
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +14 -1
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/content.js +1 -1
- package/dist/api/dataIntegration.js +1 -1
- package/dist/api/discover.js +1 -1
- package/dist/api/genAiInference.js +1 -1
- package/dist/api/insights.js +1 -1
- package/dist/api/notification.js +1 -1
- package/dist/api/secrets.js +1 -1
- package/dist/api/serviceCatalog.js +1 -1
- package/dist/api/workspace-ai.js +1 -1
- package/dist/api/workspace.js +1 -1
- package/dist/api/workspaceManager.js +1 -1
- package/dist/api/workspaceSearchEngine.js +1 -1
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +84 -14
- package/dist/client/ai.js.map +1 -1
- package/dist/client/code-shift.d.ts +30 -0
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +37 -1
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/types.d.ts +26 -6
- package/dist/client/types.d.ts.map +1 -1
- package/package.json +7 -7
- package/readme.md +1 -1
- package/scripts/generate-apis.ts +134 -134
- package/src/api/account.ts +8368 -8367
- package/src/api/agent-tools.ts +2172 -2169
- package/src/api/agent.ts +1085 -1083
- package/src/api/ai.ts +3388 -3388
- package/src/api/apiManagement.ts +570 -570
- package/src/api/apiRuntime.ts +2103 -2103
- package/src/api/cloudAccount.ts +1239 -1239
- package/src/api/cloudPlatform.ts +927 -927
- package/src/api/cloudPlatformHorizon.ts +2655 -2655
- package/src/api/cloudRuntimes.ts +2043 -2043
- package/src/api/cloudServices.ts +1445 -1445
- package/src/api/codeShift.ts +3567 -3481
- package/src/api/content.ts +9785 -9785
- package/src/api/dataIntegration.ts +1657 -1657
- package/src/api/discover.ts +435 -435
- package/src/api/eventBus.ts +171 -171
- package/src/api/genAiInference.ts +603 -603
- package/src/api/insights.ts +310 -310
- package/src/api/notification.ts +336 -334
- package/src/api/secrets.ts +342 -342
- package/src/api/serviceCatalog.ts +2908 -2908
- package/src/api/workflows.ts +1669 -1669
- package/src/api/workspace-ai.ts +677 -677
- package/src/api/workspace.ts +5889 -5889
- package/src/api/workspaceManager.ts +2951 -2951
- package/src/api/workspaceSearchEngine.ts +153 -153
- package/src/api-addresses.ts +120 -120
- package/src/apis-itau.json +225 -225
- package/src/apis.json +225 -225
- package/src/client/account.ts +902 -902
- package/src/client/agent-tools.ts +210 -210
- package/src/client/agent.ts +81 -81
- package/src/client/ai.ts +469 -395
- package/src/client/api-management.ts +40 -40
- package/src/client/cloud-account.ts +70 -70
- package/src/client/cloud-platform-horizon.ts +113 -113
- package/src/client/cloud-platform.ts +163 -163
- package/src/client/cloud-runtimes.ts +129 -129
- package/src/client/cloud-services.ts +94 -94
- package/src/client/code-shift.ts +371 -349
- package/src/client/content.ts +538 -538
- package/src/client/data-integration.ts +191 -191
- package/src/client/discover.ts +89 -89
- package/src/client/event-bus.ts +84 -84
- package/src/client/gen-ai-inference.ts +65 -65
- package/src/client/insights.ts +28 -28
- package/src/client/notification.ts +32 -32
- package/src/client/runtime-manager.ts +76 -76
- package/src/client/secrets.ts +60 -60
- package/src/client/types.ts +398 -377
- package/src/client/workflow.ts +83 -83
- package/src/client/workspace-ai.ts +191 -191
- package/src/client/workspace-manager.ts +564 -564
- package/src/client/workspace-search.ts +39 -39
- package/src/client/workspace.ts +480 -480
- package/src/error/DefaultAPIError.ts +151 -151
- package/src/error/FileUploadError.ts +18 -18
- package/src/error/IgnoredErrorCodes.ts +3 -3
- package/src/error/StackspotAPIError.ts +101 -101
- package/src/error/StreamCanceledError.ts +10 -10
- package/src/error/StreamError.ts +7 -7
- package/src/error/StreamJsonError.ts +10 -10
- package/src/error/dictionary/account.ts +58 -58
- package/src/error/dictionary/action-details.ts +20 -20
- package/src/error/dictionary/action.ts +211 -211
- package/src/error/dictionary/agent-tools.ts +75 -75
- package/src/error/dictionary/ai-inference.ts +28 -28
- package/src/error/dictionary/base.ts +22 -22
- package/src/error/dictionary/cloud-platform.ts +82 -82
- package/src/error/dictionary/cnt-fields.ts +14 -14
- package/src/error/dictionary/cnt.ts +103 -103
- package/src/error/dictionary/code-shift.ts +12 -12
- package/src/error/dictionary/rte.ts +24 -24
- package/src/error/dictionary/rtm.ts +10 -10
- package/src/error/dictionary/secrets.ts +14 -14
- package/src/error/dictionary/workspace-ai.ts +10 -10
- package/src/error/dictionary/workspace-details.ts +15 -15
- package/src/error/dictionary/workspace-fields.ts +10 -10
- package/src/error/dictionary/workspace.ts +209 -209
- package/src/error/types.ts +21 -21
- package/src/index.ts +43 -43
- package/src/network/AutoInfiniteQuery.ts +115 -115
- package/src/network/AutoMutation.ts +27 -27
- package/src/network/AutoOperation.ts +73 -73
- package/src/network/AutoQuery.ts +75 -75
- package/src/network/ManualInfiniteQuery.ts +95 -95
- package/src/network/ManualMutation.ts +40 -40
- package/src/network/ManualOperation.ts +52 -52
- package/src/network/ManualQuery.ts +82 -82
- package/src/network/NetworkClient.ts +167 -167
- package/src/network/ReactQueryNetworkClient.ts +312 -312
- package/src/network/react-query-client.ts +14 -14
- package/src/network/types.ts +294 -294
- package/src/types.ts +1 -1
- package/src/utils/StreamedArray.tsx +146 -146
- package/src/utils/StreamedJson.tsx +166 -166
- package/src/utils/remove-authorization-param.ts +6 -6
- package/src/utils/string.ts +19 -19
- package/src/utils/use-extended-list.ts +80 -80
- package/src/utils/use-streamed-array.ts +17 -17
- package/tsconfig.build.json +4 -4
- package/tsconfig.json +10 -10
package/src/api/agent-tools.ts
CHANGED
|
@@ -1,2169 +1,2172 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* genAI Agent Application
|
|
3
|
-
* 0.1.0
|
|
4
|
-
* DO NOT MODIFY - This file has been generated using oazapfts.
|
|
5
|
-
* See https://www.npmjs.com/package/oazapfts
|
|
6
|
-
*/
|
|
7
|
-
import * as Oazapfts from "@oazapfts/runtime";
|
|
8
|
-
import * as QS from "@oazapfts/runtime/query";
|
|
9
|
-
export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
10
|
-
headers: {},
|
|
11
|
-
baseUrl: "/",
|
|
12
|
-
};
|
|
13
|
-
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
|
-
export const servers = {};
|
|
15
|
-
export type BuiltinToolResponse = {
|
|
16
|
-
id: string;
|
|
17
|
-
name: string;
|
|
18
|
-
description: string;
|
|
19
|
-
};
|
|
20
|
-
export type BuiltinToolkitResponse = {
|
|
21
|
-
id: string;
|
|
22
|
-
name: string;
|
|
23
|
-
description: string;
|
|
24
|
-
image_url: string;
|
|
25
|
-
tools: BuiltinToolResponse[];
|
|
26
|
-
};
|
|
27
|
-
export type ValidationError = {
|
|
28
|
-
loc: (string | number)[];
|
|
29
|
-
msg: string;
|
|
30
|
-
"type": string;
|
|
31
|
-
};
|
|
32
|
-
export type HttpValidationError = {
|
|
33
|
-
detail?: ValidationError[];
|
|
34
|
-
};
|
|
35
|
-
export type VisibilityLevelEnum = "account" | "personal" | "shared" | "workspace" | "favorite";
|
|
36
|
-
export type CustomToolkitSimpleResponse = {
|
|
37
|
-
id: string;
|
|
38
|
-
name: string;
|
|
39
|
-
description?: string | null;
|
|
40
|
-
avatar?: string | null;
|
|
41
|
-
visibility_level: VisibilityLevelEnum;
|
|
42
|
-
creator_name: string | null;
|
|
43
|
-
};
|
|
44
|
-
export type ToolkitRequest = {
|
|
45
|
-
/** Toolkit name (up to 150 characters, required) */
|
|
46
|
-
name: string;
|
|
47
|
-
/** Toolkit description (up to 1024 characters, optional) */
|
|
48
|
-
description?: string | null;
|
|
49
|
-
/** Toolkit avatar (text base64, optional) */
|
|
50
|
-
avatar?: string | null;
|
|
51
|
-
/** Visibility level (default 'PERSONAL') */
|
|
52
|
-
visibility_level?: VisibilityLevelEnum;
|
|
53
|
-
};
|
|
54
|
-
export type CreatedResponse = {
|
|
55
|
-
id: string;
|
|
56
|
-
};
|
|
57
|
-
export type CustomToolkitToolResponse = {
|
|
58
|
-
id: string;
|
|
59
|
-
name: string;
|
|
60
|
-
description: string;
|
|
61
|
-
method: string;
|
|
62
|
-
url: string;
|
|
63
|
-
parameters?: {
|
|
64
|
-
[key: string]: any;
|
|
65
|
-
}[] | null;
|
|
66
|
-
request_body?: {
|
|
67
|
-
[key: string]: any;
|
|
68
|
-
} | null;
|
|
69
|
-
response_transformation?: string | null;
|
|
70
|
-
creator_name?: string | null;
|
|
71
|
-
};
|
|
72
|
-
export type CustomToolkitResponse = {
|
|
73
|
-
id: string;
|
|
74
|
-
name: string;
|
|
75
|
-
description?: string | null;
|
|
76
|
-
avatar?: string | null;
|
|
77
|
-
visibility_level: VisibilityLevelEnum;
|
|
78
|
-
creator_name: string | null;
|
|
79
|
-
tools: CustomToolkitToolResponse[];
|
|
80
|
-
secret_id?: string | null;
|
|
81
|
-
secrets?: string[] | null;
|
|
82
|
-
is_usable_by_others: boolean;
|
|
83
|
-
};
|
|
84
|
-
export type ToolkitUpdateRequest = {
|
|
85
|
-
/** Toolkit name (up to 150 characters, optional) */
|
|
86
|
-
name?: string | null;
|
|
87
|
-
/** Toolkit description (up to 1024 characters, optional) */
|
|
88
|
-
description?: string | null;
|
|
89
|
-
/** Toolkit avatar (text base64, optional) */
|
|
90
|
-
avatar?: string | null;
|
|
91
|
-
/** Visibility level (optional) */
|
|
92
|
-
visibility_level?: VisibilityLevelEnum | null;
|
|
93
|
-
/** IAM secret ID (optional) */
|
|
94
|
-
secret_id?: string | null;
|
|
95
|
-
/** List of secret IDs (optional) */
|
|
96
|
-
secrets?: string[] | null;
|
|
97
|
-
};
|
|
98
|
-
export type ToolkitForkRequest = {
|
|
99
|
-
/** Toolkit name (up to 150 characters, required) */
|
|
100
|
-
name: string;
|
|
101
|
-
/** Toolkit description (up to 1024 characters, optional) */
|
|
102
|
-
description?: string | null;
|
|
103
|
-
/** Toolkit avatar (text base64, optional) */
|
|
104
|
-
avatar?: string | null;
|
|
105
|
-
};
|
|
106
|
-
export type HttpMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
107
|
-
export type Reference = {
|
|
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
|
-
};
|
|
249
|
-
export type CustomToolRequest = {
|
|
250
|
-
/** Tool name (up to 256 characters, required) */
|
|
251
|
-
name: string;
|
|
252
|
-
/** Tool description (required) */
|
|
253
|
-
description: string;
|
|
254
|
-
/** HTTP method (required) */
|
|
255
|
-
method: HttpMethod;
|
|
256
|
-
/** Endpoint URL (required, must use https schema) */
|
|
257
|
-
url: string;
|
|
258
|
-
/** Dict of parameters (optional) */
|
|
259
|
-
parameters?: Parameter[] | null;
|
|
260
|
-
/** Dict of request body (optional) */
|
|
261
|
-
request_body?: RequestBody | null;
|
|
262
|
-
/** Response transformation (optional) */
|
|
263
|
-
response_transformation?: string | null;
|
|
264
|
-
};
|
|
265
|
-
export type CustomToolsRequest = {
|
|
266
|
-
custom_tools: CustomToolRequest[];
|
|
267
|
-
/** IAM secret ID. You should use your own secret or an account secret. */
|
|
268
|
-
secret_id?: string | null;
|
|
269
|
-
/** List of IAM secret IDs. You should use your own secrets or account secrets. */
|
|
270
|
-
secrets?: string[] | null;
|
|
271
|
-
};
|
|
272
|
-
export type DeleteToolsRequest = {
|
|
273
|
-
/** List of tool IDs to be deleted from the toolkit */
|
|
274
|
-
tool_ids: string[];
|
|
275
|
-
};
|
|
276
|
-
export type ListAgentsUsingToolsRequest = {
|
|
277
|
-
/** List of tool IDs to find agents that use at least one of them */
|
|
278
|
-
tool_ids: string[];
|
|
279
|
-
};
|
|
280
|
-
export type AgentUsingToolsResponse = {
|
|
281
|
-
id: string;
|
|
282
|
-
name: string;
|
|
283
|
-
avatar?: string | null;
|
|
284
|
-
};
|
|
285
|
-
export type AssignCustomToolsAgentRequest = {
|
|
286
|
-
toolkit_id: string;
|
|
287
|
-
tools_ids: string[];
|
|
288
|
-
};
|
|
289
|
-
export type AssignToolsToAgentRequest = {
|
|
290
|
-
builtin_tool_ids?: string[] | null;
|
|
291
|
-
custom_tools?: AssignCustomToolsAgentRequest[] | null;
|
|
292
|
-
sub_agents_ids?: string[] | null;
|
|
293
|
-
};
|
|
294
|
-
export type AgentToolsResponse = {
|
|
295
|
-
builtin_toolkits?: BuiltinToolkitResponse[];
|
|
296
|
-
custom_toolkits?: CustomToolkitResponse[];
|
|
297
|
-
};
|
|
298
|
-
export type SchemaEnum = "OPENAI";
|
|
299
|
-
export type FunctionParameter = {
|
|
300
|
-
/** The type of the parameter */
|
|
301
|
-
"type": string;
|
|
302
|
-
/** A description of the parameter (optional) */
|
|
303
|
-
description?: string | null;
|
|
304
|
-
/** A list of possible values for the parameter (optional) */
|
|
305
|
-
"enum"?: string[] | null;
|
|
306
|
-
/** A dictionary of properties for the parameter (optional) */
|
|
307
|
-
properties?: {
|
|
308
|
-
[key: string]: any;
|
|
309
|
-
} | null;
|
|
310
|
-
/** A list of required parameters (optional) */
|
|
311
|
-
required?: string[] | null;
|
|
312
|
-
/** Allow arbitrary data of specific typed */
|
|
313
|
-
additionalProperties?: boolean;
|
|
314
|
-
};
|
|
315
|
-
export type Function = {
|
|
316
|
-
/** The name of the function */
|
|
317
|
-
name: string;
|
|
318
|
-
/** A description of what the function does */
|
|
319
|
-
description: string;
|
|
320
|
-
/** The parameters required by the function */
|
|
321
|
-
parameters: FunctionParameter;
|
|
322
|
-
/** Strict specific schema response. Only `strict` function tools can be auto-parsed */
|
|
323
|
-
strict: boolean;
|
|
324
|
-
};
|
|
325
|
-
export type OpenAiTool = {
|
|
326
|
-
/** The type of the tool; must be 'function' */
|
|
327
|
-
"type": "function";
|
|
328
|
-
/** The function associated with this tool */
|
|
329
|
-
"function": Function;
|
|
330
|
-
};
|
|
331
|
-
export type ExecuteAgentToolRequest = {
|
|
332
|
-
arguments?: string | null;
|
|
333
|
-
upload_ids?: string[] | null;
|
|
334
|
-
};
|
|
335
|
-
export type AgentToolExecutionResponse = {
|
|
336
|
-
result: string;
|
|
337
|
-
};
|
|
338
|
-
export type AgentVisibilityLevelEnum = "built_in" | "recently_used";
|
|
339
|
-
export type KnowledgeSourcesConfig = {
|
|
340
|
-
knowledge_sources: string[];
|
|
341
|
-
max_number_of_kos?: number;
|
|
342
|
-
relevancy_threshold?: number;
|
|
343
|
-
similarity_function?: string;
|
|
344
|
-
post_processing?: boolean;
|
|
345
|
-
};
|
|
346
|
-
export type ListAgentResponse = {
|
|
347
|
-
id: string;
|
|
348
|
-
name: string;
|
|
349
|
-
slug: string;
|
|
350
|
-
created_by: string | null;
|
|
351
|
-
created_at: string | null;
|
|
352
|
-
visibility_level: string;
|
|
353
|
-
avatar: string | null;
|
|
354
|
-
suggested_prompts: string[] | null;
|
|
355
|
-
knowledge_sources_config: KnowledgeSourcesConfig;
|
|
356
|
-
has_multiagent_tool?: boolean;
|
|
357
|
-
"type"?: string;
|
|
358
|
-
system_prompt?: string;
|
|
359
|
-
creator_name?: string;
|
|
360
|
-
};
|
|
361
|
-
export type AgentType = "CONVERSATIONAL" | "SINGLE_ANSWER";
|
|
362
|
-
export type SimilarityFunctionEnum = "cosine" | "euclidean" | "dot_product";
|
|
363
|
-
export type KnowledgeSourcesConfigRequest = {
|
|
364
|
-
similarity_function?: SimilarityFunctionEnum | null;
|
|
365
|
-
post_processing?: boolean | null;
|
|
366
|
-
max_number_of_kos?: number | null;
|
|
367
|
-
relevancy_threshold?: number | null;
|
|
368
|
-
knowledge_sources?: string[] | null;
|
|
369
|
-
sealed?: boolean | null;
|
|
370
|
-
};
|
|
371
|
-
export type AgentMode = "autonomous" | "plan_approval" | "plan_and_critical_approval";
|
|
372
|
-
export type NewAgentRequest = {
|
|
373
|
-
/** LLM model name */
|
|
374
|
-
model_name?: string | null;
|
|
375
|
-
/** LLM model id */
|
|
376
|
-
model_id?: string | null;
|
|
377
|
-
/** Agent name */
|
|
378
|
-
name: string;
|
|
379
|
-
/** Agent unique slug */
|
|
380
|
-
slug: string;
|
|
381
|
-
/** Agent description */
|
|
382
|
-
description?: string | null;
|
|
383
|
-
/** Agent avatar image */
|
|
384
|
-
avatar?: string | null;
|
|
385
|
-
/** Agent suggested prompt */
|
|
386
|
-
suggested_prompts?: string[];
|
|
387
|
-
/** System prompt */
|
|
388
|
-
system_prompt?: string | null;
|
|
389
|
-
/** Agent type */
|
|
390
|
-
"type": AgentType;
|
|
391
|
-
knowledge_sources_config?: KnowledgeSourcesConfigRequest | null;
|
|
392
|
-
builtin_tools_ids?: string[];
|
|
393
|
-
/** Custom tools to assign to the agent */
|
|
394
|
-
custom_tools?: AssignCustomToolsAgentRequest[] | null;
|
|
395
|
-
sub_agents_ids?: string[] | null;
|
|
396
|
-
detail_mode?: boolean;
|
|
397
|
-
structured_output?: string | null;
|
|
398
|
-
llm_settings?: {
|
|
399
|
-
[key: string]: any;
|
|
400
|
-
} | null;
|
|
401
|
-
/** Agent mode */
|
|
402
|
-
mode?: AgentMode;
|
|
403
|
-
};
|
|
404
|
-
export type SearchAgentsRequest = {
|
|
405
|
-
/** Agent ids to filter for */
|
|
406
|
-
ids: string[];
|
|
407
|
-
};
|
|
408
|
-
export type WorkspaceForkRequest = {
|
|
409
|
-
agent_ids: string[];
|
|
410
|
-
member_id: string;
|
|
411
|
-
};
|
|
412
|
-
export type AgentItemFork = {
|
|
413
|
-
agent_id: string;
|
|
414
|
-
is_builtin: boolean;
|
|
415
|
-
};
|
|
416
|
-
export type WorkspaceForkAgent = {
|
|
417
|
-
agents?: AgentItemFork[];
|
|
418
|
-
agent_ids?: string[];
|
|
419
|
-
agent_ids_account?: string[];
|
|
420
|
-
toolkit_ids?: string[];
|
|
421
|
-
toolkit_ids_account?: string[];
|
|
422
|
-
ks_ids?: string[];
|
|
423
|
-
ks_ids_account?: string[];
|
|
424
|
-
error_ids?: string[];
|
|
425
|
-
};
|
|
426
|
-
export type WorkspaceDeleteRequest = {
|
|
427
|
-
agent_ids: string[];
|
|
428
|
-
is_rollback: boolean;
|
|
429
|
-
};
|
|
430
|
-
export type WorkspaceListRequest = {
|
|
431
|
-
agent_ids: string[];
|
|
432
|
-
name?: string | null;
|
|
433
|
-
};
|
|
434
|
-
export type AgentDependenciesRequest = {
|
|
435
|
-
agent_ids: string[];
|
|
436
|
-
};
|
|
437
|
-
export type WorkspaceAgentDependencies = {
|
|
438
|
-
agent_ids?: string[];
|
|
439
|
-
ks_ids?: string[];
|
|
440
|
-
};
|
|
441
|
-
export type ListMultiAgentsResponse = {
|
|
442
|
-
id: string;
|
|
443
|
-
name: string;
|
|
444
|
-
avatar: string | null;
|
|
445
|
-
description: string | null;
|
|
446
|
-
visibility_level: VisibilityLevelEnum;
|
|
447
|
-
has_multiagent_tool: boolean;
|
|
448
|
-
};
|
|
449
|
-
export type KnowledgeSourceDetails = {
|
|
450
|
-
id: string;
|
|
451
|
-
slug: string;
|
|
452
|
-
name: string;
|
|
453
|
-
description: string;
|
|
454
|
-
"type": string;
|
|
455
|
-
creator?: string | null;
|
|
456
|
-
"default": boolean;
|
|
457
|
-
visibility_level: VisibilityLevelEnum;
|
|
458
|
-
model_name: string;
|
|
459
|
-
username?: string | null;
|
|
460
|
-
};
|
|
461
|
-
export type KnowledgeSourceConfigModel = {
|
|
462
|
-
similarity_function: SimilarityFunctionEnum;
|
|
463
|
-
max_number_of_kos: number;
|
|
464
|
-
relevancy_threshold: number;
|
|
465
|
-
post_processing: boolean;
|
|
466
|
-
knowledge_sources: string[];
|
|
467
|
-
knowledge_sources_details: KnowledgeSourceDetails[];
|
|
468
|
-
sealed: boolean;
|
|
469
|
-
created_by?: string | null;
|
|
470
|
-
created_at?: string | null;
|
|
471
|
-
updated_by?: string | null;
|
|
472
|
-
updated_at?: string | null;
|
|
473
|
-
};
|
|
474
|
-
export type BuiltinToolDto = {
|
|
475
|
-
id: string;
|
|
476
|
-
name: string;
|
|
477
|
-
description: string;
|
|
478
|
-
toolkit_id: string;
|
|
479
|
-
};
|
|
480
|
-
export type BuiltinToolkitDto = {
|
|
481
|
-
id: string;
|
|
482
|
-
name: string;
|
|
483
|
-
description: string;
|
|
484
|
-
image_url: string;
|
|
485
|
-
tools: BuiltinToolDto[];
|
|
486
|
-
};
|
|
487
|
-
export type CustomToolkitToolDto = {
|
|
488
|
-
id: string;
|
|
489
|
-
name: string;
|
|
490
|
-
description: string;
|
|
491
|
-
method: string;
|
|
492
|
-
url: string;
|
|
493
|
-
parameters?: {
|
|
494
|
-
[key: string]: any;
|
|
495
|
-
}[] | null;
|
|
496
|
-
request_body?: {
|
|
497
|
-
[key: string]: any;
|
|
498
|
-
} | null;
|
|
499
|
-
response_transformation?: string | null;
|
|
500
|
-
creator_name?: string | null;
|
|
501
|
-
};
|
|
502
|
-
export type CustomToolkitDto = {
|
|
503
|
-
id: string;
|
|
504
|
-
name: string;
|
|
505
|
-
description: string | null;
|
|
506
|
-
avatar: string | null;
|
|
507
|
-
tools: CustomToolkitToolDto[];
|
|
508
|
-
secrets: string[] | null;
|
|
509
|
-
visibility_level: VisibilityLevelEnum;
|
|
510
|
-
creator_name: string;
|
|
511
|
-
is_usable_by_others: boolean;
|
|
512
|
-
};
|
|
513
|
-
export type AgentToolsDto = {
|
|
514
|
-
builtin_toolkits?: BuiltinToolkitDto[];
|
|
515
|
-
custom_toolkits?: CustomToolkitDto[];
|
|
516
|
-
};
|
|
517
|
-
export type LlmSettingsModel = {
|
|
518
|
-
property_key?: string | null;
|
|
519
|
-
property_value?: string | null;
|
|
520
|
-
property_type?: string | null;
|
|
521
|
-
agent_id: string;
|
|
522
|
-
created_by?: string | null;
|
|
523
|
-
created_at?: string | null;
|
|
524
|
-
updated_by?: string | null;
|
|
525
|
-
updated_at?: string | null;
|
|
526
|
-
};
|
|
527
|
-
export type AgentModel = {
|
|
528
|
-
id: string;
|
|
529
|
-
name: string;
|
|
530
|
-
slug: string;
|
|
531
|
-
description?: string | null;
|
|
532
|
-
system_prompt: string;
|
|
533
|
-
visibility_level: string;
|
|
534
|
-
avatar?: string | null;
|
|
535
|
-
"type": string;
|
|
536
|
-
conversation_starter?: string[] | null;
|
|
537
|
-
use_only: boolean;
|
|
538
|
-
detail_mode: boolean;
|
|
539
|
-
mode: AgentMode;
|
|
540
|
-
structured_output?: {
|
|
541
|
-
[key: string]: any;
|
|
542
|
-
} | null;
|
|
543
|
-
model_id?: string | null;
|
|
544
|
-
model_name?: string | null;
|
|
545
|
-
knowledge_sources_config?: KnowledgeSourceConfigModel | null;
|
|
546
|
-
toolkits?: AgentToolsDto | null;
|
|
547
|
-
settings?: LlmSettingsModel[];
|
|
548
|
-
is_sub_agent?: boolean | null;
|
|
549
|
-
created_by?: string | null;
|
|
550
|
-
created_at?: string | null;
|
|
551
|
-
updated_by?: string | null;
|
|
552
|
-
updated_at?: string | null;
|
|
553
|
-
};
|
|
554
|
-
export type UpdateAgentRequest = {
|
|
555
|
-
use_only?: boolean | null;
|
|
556
|
-
/** LLM model name */
|
|
557
|
-
model_name?: string | null;
|
|
558
|
-
/** LLM model id */
|
|
559
|
-
model_id?: string | null;
|
|
560
|
-
/** Agent name */
|
|
561
|
-
name?: string | null;
|
|
562
|
-
/** Agent unique slug */
|
|
563
|
-
slug?: string | null;
|
|
564
|
-
/** Agent description */
|
|
565
|
-
description?: string | null;
|
|
566
|
-
/** Agent avatar image */
|
|
567
|
-
avatar?: string | null;
|
|
568
|
-
/** Agent suggested prompt */
|
|
569
|
-
suggested_prompts?: string[];
|
|
570
|
-
/** System prompt */
|
|
571
|
-
system_prompt?: string | null;
|
|
572
|
-
/** Agent type */
|
|
573
|
-
"type"?: AgentType | null;
|
|
574
|
-
knowledge_sources_config?: KnowledgeSourcesConfigRequest | null;
|
|
575
|
-
builtin_tools_ids?: string[];
|
|
576
|
-
sub_agents_ids?: string[];
|
|
577
|
-
/** Custom tools to assign to the agent */
|
|
578
|
-
custom_tools?: AssignCustomToolsAgentRequest[] | null;
|
|
579
|
-
detail_mode?: boolean | null;
|
|
580
|
-
structured_output?: string | null;
|
|
581
|
-
llm_settings?: {
|
|
582
|
-
[key: string]: any;
|
|
583
|
-
} | null;
|
|
584
|
-
/** Agent mode */
|
|
585
|
-
mode?: AgentMode | null;
|
|
586
|
-
};
|
|
587
|
-
export type ForkAgentRequest = {
|
|
588
|
-
/** Agent slug to fork */
|
|
589
|
-
slug: string;
|
|
590
|
-
name?: string | null;
|
|
591
|
-
};
|
|
592
|
-
export type PublishAgentRequest = {
|
|
593
|
-
use_only?: boolean;
|
|
594
|
-
is_public?: boolean;
|
|
595
|
-
};
|
|
596
|
-
export type ListAgentResponseV2 = {
|
|
597
|
-
id: string;
|
|
598
|
-
name: string;
|
|
599
|
-
slug: string;
|
|
600
|
-
created_by: string | null;
|
|
601
|
-
created_at: string | null;
|
|
602
|
-
visibility_level: string;
|
|
603
|
-
avatar: string | null;
|
|
604
|
-
conversation_starter: string[] | null;
|
|
605
|
-
knowledge_sources_config: KnowledgeSourcesConfig;
|
|
606
|
-
"type"?: string;
|
|
607
|
-
system_prompt?: string;
|
|
608
|
-
creator_name?: string;
|
|
609
|
-
};
|
|
610
|
-
export type ListAgentRequestV3 = {
|
|
611
|
-
/** Agent name to filter the list */
|
|
612
|
-
name?: string | null;
|
|
613
|
-
/** Agent slug to filter the list */
|
|
614
|
-
slug?: string | null;
|
|
615
|
-
/** Paginated param to configure page size */
|
|
616
|
-
size?: number;
|
|
617
|
-
/** Paginated param to configure which page is being requested */
|
|
618
|
-
page?: number;
|
|
619
|
-
/** Filter by a list of agent visibility levels. When provided, overrides the single 'visibility' parameter */
|
|
620
|
-
visibility_list?: (AgentVisibilityLevelEnum | VisibilityLevelEnum)[];
|
|
621
|
-
};
|
|
622
|
-
export type KnowledgeSourcesConfigResponseV3 = {
|
|
623
|
-
knowledge_sources: string[];
|
|
624
|
-
max_number_of_kos?: number;
|
|
625
|
-
relevancy_threshold?: number;
|
|
626
|
-
similarity_function?: string;
|
|
627
|
-
post_processing?: boolean;
|
|
628
|
-
};
|
|
629
|
-
export type AgentResponseV3 = {
|
|
630
|
-
id: string;
|
|
631
|
-
name: string;
|
|
632
|
-
slug: string;
|
|
633
|
-
created_by: string | null;
|
|
634
|
-
created_at: string | null;
|
|
635
|
-
visibility_level: string;
|
|
636
|
-
avatar: string | null;
|
|
637
|
-
suggested_prompts: string[] | null;
|
|
638
|
-
knowledge_sources_config: KnowledgeSourcesConfigResponseV3;
|
|
639
|
-
has_multiagent_tool?: boolean;
|
|
640
|
-
"type"?: string;
|
|
641
|
-
system_prompt?: string;
|
|
642
|
-
creator_name?: string;
|
|
643
|
-
is_favorite?: boolean;
|
|
644
|
-
is_recently_used?: boolean;
|
|
645
|
-
};
|
|
646
|
-
export type PaginatedResponseAgentResponseV3 = {
|
|
647
|
-
total_pages: number;
|
|
648
|
-
items: AgentResponseV3[];
|
|
649
|
-
};
|
|
650
|
-
export type InternalListToolkitsRequest = {
|
|
651
|
-
/** List of toolkit IDs to retrieve */
|
|
652
|
-
toolkit_ids: string[];
|
|
653
|
-
};
|
|
654
|
-
export type InternalDeleteToolkitsRequest = {
|
|
655
|
-
/** List of toolkit IDs to delete */
|
|
656
|
-
toolkit_ids: string[];
|
|
657
|
-
};
|
|
658
|
-
export type InternalToolkitForkRequest = {
|
|
659
|
-
/** List of toolkit IDs to fork */
|
|
660
|
-
toolkit_ids: string[];
|
|
661
|
-
};
|
|
662
|
-
export type ToolkitForkResponse = {
|
|
663
|
-
/** List of successfully forked toolkits */
|
|
664
|
-
forked_toolkits: CustomToolkitSimpleResponse[];
|
|
665
|
-
/** List of toolkit IDs that were already account-level and not forked */
|
|
666
|
-
toolkit_ids_account: string[];
|
|
667
|
-
/** List of toolkit IDs that failed to fork */
|
|
668
|
-
error_ids: string[];
|
|
669
|
-
};
|
|
670
|
-
/**
|
|
671
|
-
* Health Check
|
|
672
|
-
*/
|
|
673
|
-
export function healthCheckHealthzGet(opts?: Oazapfts.RequestOpts) {
|
|
674
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
675
|
-
status: 200;
|
|
676
|
-
data: {
|
|
677
|
-
[key: string]: string;
|
|
678
|
-
};
|
|
679
|
-
} | {
|
|
680
|
-
status: 404;
|
|
681
|
-
}>("/healthz", {
|
|
682
|
-
...opts
|
|
683
|
-
}));
|
|
684
|
-
}
|
|
685
|
-
/**
|
|
686
|
-
* Readyz
|
|
687
|
-
*/
|
|
688
|
-
export function readyzReadyzGet(opts?: Oazapfts.RequestOpts) {
|
|
689
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
690
|
-
status: 200;
|
|
691
|
-
data: {
|
|
692
|
-
[key: string]: string;
|
|
693
|
-
};
|
|
694
|
-
} | {
|
|
695
|
-
status: 404;
|
|
696
|
-
}>("/readyz", {
|
|
697
|
-
...opts
|
|
698
|
-
}));
|
|
699
|
-
}
|
|
700
|
-
/**
|
|
701
|
-
* Get Public Tool Kits
|
|
702
|
-
*/
|
|
703
|
-
export function getPublicToolKitsV1BuiltinToolkitGet({ xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
704
|
-
xAccountId?: string | null;
|
|
705
|
-
xUsername?: string | null;
|
|
706
|
-
xUserId?: string | null;
|
|
707
|
-
xUserFullName?: string | null;
|
|
708
|
-
authorization: string;
|
|
709
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
710
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
711
|
-
status: 200;
|
|
712
|
-
data: BuiltinToolkitResponse[];
|
|
713
|
-
} | {
|
|
714
|
-
status: 404;
|
|
715
|
-
} | {
|
|
716
|
-
status: 422;
|
|
717
|
-
data: HttpValidationError;
|
|
718
|
-
}>("/v1/builtin/toolkit", {
|
|
719
|
-
...opts,
|
|
720
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
721
|
-
"x-account-id": xAccountId,
|
|
722
|
-
"x-username": xUsername,
|
|
723
|
-
"x-user-id": xUserId,
|
|
724
|
-
"x-user-full-name": xUserFullName,
|
|
725
|
-
authorization
|
|
726
|
-
})
|
|
727
|
-
}));
|
|
728
|
-
}
|
|
729
|
-
/**
|
|
730
|
-
* List Toolkits
|
|
731
|
-
*/
|
|
732
|
-
export function listToolkitsV1ToolkitsGet({ visibility, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
733
|
-
visibility?: VisibilityLevelEnum;
|
|
734
|
-
xAccountId?: string | null;
|
|
735
|
-
xUsername?: string | null;
|
|
736
|
-
xUserId?: string | null;
|
|
737
|
-
xUserFullName?: string | null;
|
|
738
|
-
authorization: string;
|
|
739
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
740
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
741
|
-
status: 200;
|
|
742
|
-
data: CustomToolkitSimpleResponse[];
|
|
743
|
-
} | {
|
|
744
|
-
status: 404;
|
|
745
|
-
} | {
|
|
746
|
-
status: 422;
|
|
747
|
-
data: HttpValidationError;
|
|
748
|
-
}>(`/v1/toolkits${QS.query(QS.explode({
|
|
749
|
-
visibility
|
|
750
|
-
}))}`, {
|
|
751
|
-
...opts,
|
|
752
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
753
|
-
"x-account-id": xAccountId,
|
|
754
|
-
"x-username": xUsername,
|
|
755
|
-
"x-user-id": xUserId,
|
|
756
|
-
"x-user-full-name": xUserFullName,
|
|
757
|
-
authorization
|
|
758
|
-
})
|
|
759
|
-
}));
|
|
760
|
-
}
|
|
761
|
-
/**
|
|
762
|
-
* Create Toolkit
|
|
763
|
-
*/
|
|
764
|
-
export function createToolkitV1ToolkitsPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, toolkitRequest }: {
|
|
765
|
-
xAccountId?: string | null;
|
|
766
|
-
xUsername?: string | null;
|
|
767
|
-
xUserId?: string | null;
|
|
768
|
-
xUserFullName?: string | null;
|
|
769
|
-
authorization: string;
|
|
770
|
-
toolkitRequest: ToolkitRequest;
|
|
771
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
772
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
773
|
-
status: 201;
|
|
774
|
-
data: CreatedResponse;
|
|
775
|
-
} | {
|
|
776
|
-
status: 404;
|
|
777
|
-
} | {
|
|
778
|
-
status: 422;
|
|
779
|
-
data: HttpValidationError;
|
|
780
|
-
}>("/v1/toolkits", oazapfts.json({
|
|
781
|
-
...opts,
|
|
782
|
-
method: "POST",
|
|
783
|
-
body: toolkitRequest,
|
|
784
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
785
|
-
"x-account-id": xAccountId,
|
|
786
|
-
"x-username": xUsername,
|
|
787
|
-
"x-user-id": xUserId,
|
|
788
|
-
"x-user-full-name": xUserFullName,
|
|
789
|
-
authorization
|
|
790
|
-
})
|
|
791
|
-
})));
|
|
792
|
-
}
|
|
793
|
-
/**
|
|
794
|
-
* Get Toolkit
|
|
795
|
-
*/
|
|
796
|
-
export function getToolkitV1ToolkitsToolkitIdGet({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
797
|
-
toolkitId: string;
|
|
798
|
-
xAccountId?: string | null;
|
|
799
|
-
xUsername?: string | null;
|
|
800
|
-
xUserId?: string | null;
|
|
801
|
-
xUserFullName?: string | null;
|
|
802
|
-
authorization: string;
|
|
803
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
804
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
805
|
-
status: 200;
|
|
806
|
-
data: CustomToolkitResponse;
|
|
807
|
-
} | {
|
|
808
|
-
status: 404;
|
|
809
|
-
} | {
|
|
810
|
-
status: 422;
|
|
811
|
-
data: HttpValidationError;
|
|
812
|
-
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}`, {
|
|
813
|
-
...opts,
|
|
814
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
815
|
-
"x-account-id": xAccountId,
|
|
816
|
-
"x-username": xUsername,
|
|
817
|
-
"x-user-id": xUserId,
|
|
818
|
-
"x-user-full-name": xUserFullName,
|
|
819
|
-
authorization
|
|
820
|
-
})
|
|
821
|
-
}));
|
|
822
|
-
}
|
|
823
|
-
/**
|
|
824
|
-
* Update Toolkit
|
|
825
|
-
*/
|
|
826
|
-
export function updateToolkitV1ToolkitsToolkitIdPatch({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, toolkitUpdateRequest }: {
|
|
827
|
-
toolkitId: string;
|
|
828
|
-
xAccountId?: string | null;
|
|
829
|
-
xUsername?: string | null;
|
|
830
|
-
xUserId?: string | null;
|
|
831
|
-
xUserFullName?: string | null;
|
|
832
|
-
authorization: string;
|
|
833
|
-
toolkitUpdateRequest: ToolkitUpdateRequest;
|
|
834
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
835
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
836
|
-
status: 204;
|
|
837
|
-
} | {
|
|
838
|
-
status: 404;
|
|
839
|
-
} | {
|
|
840
|
-
status: 422;
|
|
841
|
-
data: HttpValidationError;
|
|
842
|
-
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}`, oazapfts.json({
|
|
843
|
-
...opts,
|
|
844
|
-
method: "PATCH",
|
|
845
|
-
body: toolkitUpdateRequest,
|
|
846
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
847
|
-
"x-account-id": xAccountId,
|
|
848
|
-
"x-username": xUsername,
|
|
849
|
-
"x-user-id": xUserId,
|
|
850
|
-
"x-user-full-name": xUserFullName,
|
|
851
|
-
authorization
|
|
852
|
-
})
|
|
853
|
-
})));
|
|
854
|
-
}
|
|
855
|
-
/**
|
|
856
|
-
* Delete Toolkit
|
|
857
|
-
*/
|
|
858
|
-
export function deleteToolkitV1ToolkitsToolkitIdDelete({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
859
|
-
toolkitId: string;
|
|
860
|
-
xAccountId?: string | null;
|
|
861
|
-
xUsername?: string | null;
|
|
862
|
-
xUserId?: string | null;
|
|
863
|
-
xUserFullName?: string | null;
|
|
864
|
-
authorization: string;
|
|
865
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
866
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
867
|
-
status: 204;
|
|
868
|
-
} | {
|
|
869
|
-
status: 404;
|
|
870
|
-
} | {
|
|
871
|
-
status: 422;
|
|
872
|
-
data: HttpValidationError;
|
|
873
|
-
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}`, {
|
|
874
|
-
...opts,
|
|
875
|
-
method: "DELETE",
|
|
876
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
877
|
-
"x-account-id": xAccountId,
|
|
878
|
-
"x-username": xUsername,
|
|
879
|
-
"x-user-id": xUserId,
|
|
880
|
-
"x-user-full-name": xUserFullName,
|
|
881
|
-
authorization
|
|
882
|
-
})
|
|
883
|
-
}));
|
|
884
|
-
}
|
|
885
|
-
/**
|
|
886
|
-
* Fork Toolkit
|
|
887
|
-
*/
|
|
888
|
-
export function forkToolkitV1ToolkitsToolkitIdForkPost({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, toolkitForkRequest }: {
|
|
889
|
-
toolkitId: string;
|
|
890
|
-
xAccountId?: string | null;
|
|
891
|
-
xUsername?: string | null;
|
|
892
|
-
xUserId?: string | null;
|
|
893
|
-
xUserFullName?: string | null;
|
|
894
|
-
authorization: string;
|
|
895
|
-
toolkitForkRequest: ToolkitForkRequest;
|
|
896
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
897
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
898
|
-
status: 201;
|
|
899
|
-
data: CustomToolkitResponse;
|
|
900
|
-
} | {
|
|
901
|
-
status: 404;
|
|
902
|
-
} | {
|
|
903
|
-
status: 422;
|
|
904
|
-
data: HttpValidationError;
|
|
905
|
-
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/fork`, oazapfts.json({
|
|
906
|
-
...opts,
|
|
907
|
-
method: "POST",
|
|
908
|
-
body: toolkitForkRequest,
|
|
909
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
910
|
-
"x-account-id": xAccountId,
|
|
911
|
-
"x-username": xUsername,
|
|
912
|
-
"x-user-id": xUserId,
|
|
913
|
-
"x-user-full-name": xUserFullName,
|
|
914
|
-
authorization
|
|
915
|
-
})
|
|
916
|
-
})));
|
|
917
|
-
}
|
|
918
|
-
/**
|
|
919
|
-
* Share Toolkit
|
|
920
|
-
*/
|
|
921
|
-
export function shareToolkitV1ToolkitsToolkitIdSharePost({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
922
|
-
toolkitId: string;
|
|
923
|
-
xAccountId?: string | null;
|
|
924
|
-
xUsername?: string | null;
|
|
925
|
-
xUserId?: string | null;
|
|
926
|
-
xUserFullName?: string | null;
|
|
927
|
-
authorization: string;
|
|
928
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
929
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
930
|
-
status: 204;
|
|
931
|
-
} | {
|
|
932
|
-
status: 404;
|
|
933
|
-
} | {
|
|
934
|
-
status: 422;
|
|
935
|
-
data: HttpValidationError;
|
|
936
|
-
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/share`, {
|
|
937
|
-
...opts,
|
|
938
|
-
method: "POST",
|
|
939
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
940
|
-
"x-account-id": xAccountId,
|
|
941
|
-
"x-username": xUsername,
|
|
942
|
-
"x-user-id": xUserId,
|
|
943
|
-
"x-user-full-name": xUserFullName,
|
|
944
|
-
authorization
|
|
945
|
-
})
|
|
946
|
-
}));
|
|
947
|
-
}
|
|
948
|
-
/**
|
|
949
|
-
* Publish Toolkit
|
|
950
|
-
*/
|
|
951
|
-
export function publishToolkitV1ToolkitsToolkitIdPublishPost({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
952
|
-
toolkitId: string;
|
|
953
|
-
xAccountId?: string | null;
|
|
954
|
-
xUsername?: string | null;
|
|
955
|
-
xUserId?: string | null;
|
|
956
|
-
xUserFullName?: string | null;
|
|
957
|
-
authorization: string;
|
|
958
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
959
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
960
|
-
status: 204;
|
|
961
|
-
} | {
|
|
962
|
-
status: 404;
|
|
963
|
-
} | {
|
|
964
|
-
status: 422;
|
|
965
|
-
data: HttpValidationError;
|
|
966
|
-
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/publish`, {
|
|
967
|
-
...opts,
|
|
968
|
-
method: "POST",
|
|
969
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
970
|
-
"x-account-id": xAccountId,
|
|
971
|
-
"x-username": xUsername,
|
|
972
|
-
"x-user-id": xUserId,
|
|
973
|
-
"x-user-full-name": xUserFullName,
|
|
974
|
-
authorization
|
|
975
|
-
})
|
|
976
|
-
}));
|
|
977
|
-
}
|
|
978
|
-
/**
|
|
979
|
-
* Get Toolkit Tool
|
|
980
|
-
*/
|
|
981
|
-
export function getToolkitToolV1ToolkitsToolkitIdToolsToolIdGet({ toolkitId, toolId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
982
|
-
toolkitId: string;
|
|
983
|
-
toolId: string;
|
|
984
|
-
xAccountId?: string | null;
|
|
985
|
-
xUsername?: string | null;
|
|
986
|
-
xUserId?: string | null;
|
|
987
|
-
xUserFullName?: string | null;
|
|
988
|
-
authorization: string;
|
|
989
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
990
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
991
|
-
status: 200;
|
|
992
|
-
data: CustomToolkitToolResponse;
|
|
993
|
-
} | {
|
|
994
|
-
status: 404;
|
|
995
|
-
} | {
|
|
996
|
-
status: 422;
|
|
997
|
-
data: HttpValidationError;
|
|
998
|
-
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/tools/${encodeURIComponent(toolId)}`, {
|
|
999
|
-
...opts,
|
|
1000
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1001
|
-
"x-account-id": xAccountId,
|
|
1002
|
-
"x-username": xUsername,
|
|
1003
|
-
"x-user-id": xUserId,
|
|
1004
|
-
"x-user-full-name": xUserFullName,
|
|
1005
|
-
authorization
|
|
1006
|
-
})
|
|
1007
|
-
}));
|
|
1008
|
-
}
|
|
1009
|
-
/**
|
|
1010
|
-
* Edit Toolkit Tool
|
|
1011
|
-
*/
|
|
1012
|
-
export function editToolkitToolV1ToolkitsToolkitIdToolsToolIdPut({ toolkitId, toolId, xAccountId, xUsername, xUserId, xUserFullName, authorization, customToolRequest }: {
|
|
1013
|
-
toolkitId: string;
|
|
1014
|
-
toolId: string;
|
|
1015
|
-
xAccountId?: string | null;
|
|
1016
|
-
xUsername?: string | null;
|
|
1017
|
-
xUserId?: string | null;
|
|
1018
|
-
xUserFullName?: string | null;
|
|
1019
|
-
authorization: string;
|
|
1020
|
-
customToolRequest: CustomToolRequest;
|
|
1021
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1022
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1023
|
-
status: 204;
|
|
1024
|
-
} | {
|
|
1025
|
-
status: 404;
|
|
1026
|
-
} | {
|
|
1027
|
-
status: 422;
|
|
1028
|
-
data: HttpValidationError;
|
|
1029
|
-
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/tools/${encodeURIComponent(toolId)}`, oazapfts.json({
|
|
1030
|
-
...opts,
|
|
1031
|
-
method: "PUT",
|
|
1032
|
-
body: customToolRequest,
|
|
1033
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1034
|
-
"x-account-id": xAccountId,
|
|
1035
|
-
"x-username": xUsername,
|
|
1036
|
-
"x-user-id": xUserId,
|
|
1037
|
-
"x-user-full-name": xUserFullName,
|
|
1038
|
-
authorization
|
|
1039
|
-
})
|
|
1040
|
-
})));
|
|
1041
|
-
}
|
|
1042
|
-
/**
|
|
1043
|
-
* Create Toolkit Tools
|
|
1044
|
-
*/
|
|
1045
|
-
export function createToolkitToolsV1ToolkitsToolkitIdToolsPost({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, customToolsRequest }: {
|
|
1046
|
-
toolkitId: string;
|
|
1047
|
-
xAccountId?: string | null;
|
|
1048
|
-
xUsername?: string | null;
|
|
1049
|
-
xUserId?: string | null;
|
|
1050
|
-
xUserFullName?: string | null;
|
|
1051
|
-
authorization: string;
|
|
1052
|
-
customToolsRequest: CustomToolsRequest;
|
|
1053
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1054
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1055
|
-
status: 204;
|
|
1056
|
-
} | {
|
|
1057
|
-
status: 404;
|
|
1058
|
-
} | {
|
|
1059
|
-
status: 422;
|
|
1060
|
-
data: HttpValidationError;
|
|
1061
|
-
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/tools`, oazapfts.json({
|
|
1062
|
-
...opts,
|
|
1063
|
-
method: "POST",
|
|
1064
|
-
body: customToolsRequest,
|
|
1065
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1066
|
-
"x-account-id": xAccountId,
|
|
1067
|
-
"x-username": xUsername,
|
|
1068
|
-
"x-user-id": xUserId,
|
|
1069
|
-
"x-user-full-name": xUserFullName,
|
|
1070
|
-
authorization
|
|
1071
|
-
})
|
|
1072
|
-
})));
|
|
1073
|
-
}
|
|
1074
|
-
/**
|
|
1075
|
-
* Delete Toolkit Tools
|
|
1076
|
-
*/
|
|
1077
|
-
export function deleteToolkitToolsV1ToolkitsToolkitIdToolsDelete({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, deleteToolsRequest }: {
|
|
1078
|
-
toolkitId: string;
|
|
1079
|
-
xAccountId?: string | null;
|
|
1080
|
-
xUsername?: string | null;
|
|
1081
|
-
xUserId?: string | null;
|
|
1082
|
-
xUserFullName?: string | null;
|
|
1083
|
-
authorization: string;
|
|
1084
|
-
deleteToolsRequest: DeleteToolsRequest;
|
|
1085
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1086
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1087
|
-
status: 204;
|
|
1088
|
-
} | {
|
|
1089
|
-
status: 404;
|
|
1090
|
-
} | {
|
|
1091
|
-
status: 422;
|
|
1092
|
-
data: HttpValidationError;
|
|
1093
|
-
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/tools`, oazapfts.json({
|
|
1094
|
-
...opts,
|
|
1095
|
-
method: "DELETE",
|
|
1096
|
-
body: deleteToolsRequest,
|
|
1097
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1098
|
-
"x-account-id": xAccountId,
|
|
1099
|
-
"x-username": xUsername,
|
|
1100
|
-
"x-user-id": xUserId,
|
|
1101
|
-
"x-user-full-name": xUserFullName,
|
|
1102
|
-
authorization
|
|
1103
|
-
})
|
|
1104
|
-
})));
|
|
1105
|
-
}
|
|
1106
|
-
/**
|
|
1107
|
-
* Split Uploaded File Preview
|
|
1108
|
-
*/
|
|
1109
|
-
export function splitUploadedFilePreviewV1ToolkitsToolsPreviewFileUploadIdGet({ fileUploadId, authorization, xAccountId, xUsername, xUserId, xUserFullName, authorizationHeader }: {
|
|
1110
|
-
fileUploadId: string;
|
|
1111
|
-
authorization: string;
|
|
1112
|
-
xAccountId?: string | null;
|
|
1113
|
-
xUsername?: string | null;
|
|
1114
|
-
xUserId?: string | null;
|
|
1115
|
-
xUserFullName?: string | null;
|
|
1116
|
-
authorizationHeader: string;
|
|
1117
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1118
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1119
|
-
status: 200;
|
|
1120
|
-
data: any;
|
|
1121
|
-
} | {
|
|
1122
|
-
status: 404;
|
|
1123
|
-
} | {
|
|
1124
|
-
status: 422;
|
|
1125
|
-
data: HttpValidationError;
|
|
1126
|
-
}>(`/v1/toolkits/tools/preview/${encodeURIComponent(fileUploadId)}`, {
|
|
1127
|
-
...opts,
|
|
1128
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1129
|
-
Authorization: authorization,
|
|
1130
|
-
"x-account-id": xAccountId,
|
|
1131
|
-
"x-username": xUsername,
|
|
1132
|
-
"x-user-id": xUserId,
|
|
1133
|
-
"x-user-full-name": xUserFullName,
|
|
1134
|
-
authorization: authorizationHeader
|
|
1135
|
-
})
|
|
1136
|
-
}));
|
|
1137
|
-
}
|
|
1138
|
-
/**
|
|
1139
|
-
* List Agents Using Tools
|
|
1140
|
-
*/
|
|
1141
|
-
export function listAgentsUsingToolsV1ToolkitsToolkitIdToolsAgentsPost({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, listAgentsUsingToolsRequest }: {
|
|
1142
|
-
toolkitId: string;
|
|
1143
|
-
xAccountId?: string | null;
|
|
1144
|
-
xUsername?: string | null;
|
|
1145
|
-
xUserId?: string | null;
|
|
1146
|
-
xUserFullName?: string | null;
|
|
1147
|
-
authorization: string;
|
|
1148
|
-
listAgentsUsingToolsRequest: ListAgentsUsingToolsRequest;
|
|
1149
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1150
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1151
|
-
status: 200;
|
|
1152
|
-
data: AgentUsingToolsResponse[];
|
|
1153
|
-
} | {
|
|
1154
|
-
status: 404;
|
|
1155
|
-
} | {
|
|
1156
|
-
status: 422;
|
|
1157
|
-
data: HttpValidationError;
|
|
1158
|
-
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/tools/agents`, oazapfts.json({
|
|
1159
|
-
...opts,
|
|
1160
|
-
method: "POST",
|
|
1161
|
-
body: listAgentsUsingToolsRequest,
|
|
1162
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1163
|
-
"x-account-id": xAccountId,
|
|
1164
|
-
"x-username": xUsername,
|
|
1165
|
-
"x-user-id": xUserId,
|
|
1166
|
-
"x-user-full-name": xUserFullName,
|
|
1167
|
-
authorization
|
|
1168
|
-
})
|
|
1169
|
-
})));
|
|
1170
|
-
}
|
|
1171
|
-
/**
|
|
1172
|
-
* Assign Tools
|
|
1173
|
-
*/
|
|
1174
|
-
export function assignToolsV1AgentsAgentIdToolsPost({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, assignToolsToAgentRequest }: {
|
|
1175
|
-
agentId: string;
|
|
1176
|
-
isPublic?: boolean;
|
|
1177
|
-
xAccountId?: string | null;
|
|
1178
|
-
xUsername?: string | null;
|
|
1179
|
-
xUserId?: string | null;
|
|
1180
|
-
xUserFullName?: string | null;
|
|
1181
|
-
authorization: string;
|
|
1182
|
-
assignToolsToAgentRequest: AssignToolsToAgentRequest;
|
|
1183
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1184
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1185
|
-
status: 204;
|
|
1186
|
-
} | {
|
|
1187
|
-
status: 404;
|
|
1188
|
-
} | {
|
|
1189
|
-
status: 422;
|
|
1190
|
-
data: HttpValidationError;
|
|
1191
|
-
}>(`/v1/agents/${encodeURIComponent(agentId)}/tools${QS.query(QS.explode({
|
|
1192
|
-
is_public: isPublic
|
|
1193
|
-
}))}`, oazapfts.json({
|
|
1194
|
-
...opts,
|
|
1195
|
-
method: "POST",
|
|
1196
|
-
body: assignToolsToAgentRequest,
|
|
1197
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1198
|
-
"x-account-id": xAccountId,
|
|
1199
|
-
"x-username": xUsername,
|
|
1200
|
-
"x-user-id": xUserId,
|
|
1201
|
-
"x-user-full-name": xUserFullName,
|
|
1202
|
-
authorization
|
|
1203
|
-
})
|
|
1204
|
-
})));
|
|
1205
|
-
}
|
|
1206
|
-
/**
|
|
1207
|
-
* List Tools
|
|
1208
|
-
*/
|
|
1209
|
-
export function listToolsV1AgentsAgentIdToolsGet({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1210
|
-
agentId: string;
|
|
1211
|
-
isPublic?: boolean;
|
|
1212
|
-
xAccountId?: string | null;
|
|
1213
|
-
xUsername?: string | null;
|
|
1214
|
-
xUserId?: string | null;
|
|
1215
|
-
xUserFullName?: string | null;
|
|
1216
|
-
authorization: string;
|
|
1217
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1218
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1219
|
-
status: 200;
|
|
1220
|
-
data: AgentToolsResponse;
|
|
1221
|
-
} | {
|
|
1222
|
-
status: 404;
|
|
1223
|
-
} | {
|
|
1224
|
-
status: 422;
|
|
1225
|
-
data: HttpValidationError;
|
|
1226
|
-
}>(`/v1/agents/${encodeURIComponent(agentId)}/tools${QS.query(QS.explode({
|
|
1227
|
-
is_public: isPublic
|
|
1228
|
-
}))}`, {
|
|
1229
|
-
...opts,
|
|
1230
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1231
|
-
"x-account-id": xAccountId,
|
|
1232
|
-
"x-username": xUsername,
|
|
1233
|
-
"x-user-id": xUserId,
|
|
1234
|
-
"x-user-full-name": xUserFullName,
|
|
1235
|
-
authorization
|
|
1236
|
-
})
|
|
1237
|
-
}));
|
|
1238
|
-
}
|
|
1239
|
-
/**
|
|
1240
|
-
* Delete Tools
|
|
1241
|
-
*/
|
|
1242
|
-
export function deleteToolsV1AgentsAgentIdToolsDelete({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1243
|
-
agentId: string;
|
|
1244
|
-
isPublic?: boolean;
|
|
1245
|
-
xAccountId?: string | null;
|
|
1246
|
-
xUsername?: string | null;
|
|
1247
|
-
xUserId?: string | null;
|
|
1248
|
-
xUserFullName?: string | null;
|
|
1249
|
-
authorization: string;
|
|
1250
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1251
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1252
|
-
status: 204;
|
|
1253
|
-
} | {
|
|
1254
|
-
status: 404;
|
|
1255
|
-
} | {
|
|
1256
|
-
status: 422;
|
|
1257
|
-
data: HttpValidationError;
|
|
1258
|
-
}>(`/v1/agents/${encodeURIComponent(agentId)}/tools${QS.query(QS.explode({
|
|
1259
|
-
is_public: isPublic
|
|
1260
|
-
}))}`, {
|
|
1261
|
-
...opts,
|
|
1262
|
-
method: "DELETE",
|
|
1263
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1264
|
-
"x-account-id": xAccountId,
|
|
1265
|
-
"x-username": xUsername,
|
|
1266
|
-
"x-user-id": xUserId,
|
|
1267
|
-
"x-user-full-name": xUserFullName,
|
|
1268
|
-
authorization
|
|
1269
|
-
})
|
|
1270
|
-
}));
|
|
1271
|
-
}
|
|
1272
|
-
/**
|
|
1273
|
-
* List Tools By Agent For Schema
|
|
1274
|
-
*/
|
|
1275
|
-
export function listToolsByAgentForSchemaV1AgentsAgentIdToolsSchemaSchemaGet({ agentId, schema, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1276
|
-
agentId: string;
|
|
1277
|
-
schema: SchemaEnum;
|
|
1278
|
-
isPublic?: boolean;
|
|
1279
|
-
xAccountId?: string | null;
|
|
1280
|
-
xUsername?: string | null;
|
|
1281
|
-
xUserId?: string | null;
|
|
1282
|
-
xUserFullName?: string | null;
|
|
1283
|
-
authorization: string;
|
|
1284
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1285
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1286
|
-
status: 200;
|
|
1287
|
-
data: (OpenAiTool | {
|
|
1288
|
-
[key: string]: any;
|
|
1289
|
-
})[];
|
|
1290
|
-
} | {
|
|
1291
|
-
status: 404;
|
|
1292
|
-
} | {
|
|
1293
|
-
status: 422;
|
|
1294
|
-
data: HttpValidationError;
|
|
1295
|
-
}>(`/v1/agents/${encodeURIComponent(agentId)}/tools/schema/${encodeURIComponent(schema)}${QS.query(QS.explode({
|
|
1296
|
-
is_public: isPublic
|
|
1297
|
-
}))}`, {
|
|
1298
|
-
...opts,
|
|
1299
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1300
|
-
"x-account-id": xAccountId,
|
|
1301
|
-
"x-username": xUsername,
|
|
1302
|
-
"x-user-id": xUserId,
|
|
1303
|
-
"x-user-full-name": xUserFullName,
|
|
1304
|
-
authorization
|
|
1305
|
-
})
|
|
1306
|
-
}));
|
|
1307
|
-
}
|
|
1308
|
-
/**
|
|
1309
|
-
* Execute Tool
|
|
1310
|
-
*/
|
|
1311
|
-
export function executeToolV1AgentsToolsAgentToolIdExecutePost({ agentToolId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, executeAgentToolRequest }: {
|
|
1312
|
-
agentToolId: string;
|
|
1313
|
-
isPublic?: boolean;
|
|
1314
|
-
xAccountId?: string | null;
|
|
1315
|
-
xUsername?: string | null;
|
|
1316
|
-
xUserId?: string | null;
|
|
1317
|
-
xUserFullName?: string | null;
|
|
1318
|
-
authorization: string;
|
|
1319
|
-
executeAgentToolRequest: ExecuteAgentToolRequest;
|
|
1320
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1321
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1322
|
-
status: 200;
|
|
1323
|
-
data: AgentToolExecutionResponse;
|
|
1324
|
-
} | {
|
|
1325
|
-
status: 404;
|
|
1326
|
-
} | {
|
|
1327
|
-
status: 422;
|
|
1328
|
-
data: HttpValidationError;
|
|
1329
|
-
}>(`/v1/agents/tools/${encodeURIComponent(agentToolId)}/execute${QS.query(QS.explode({
|
|
1330
|
-
is_public: isPublic
|
|
1331
|
-
}))}`, oazapfts.json({
|
|
1332
|
-
...opts,
|
|
1333
|
-
method: "POST",
|
|
1334
|
-
body: executeAgentToolRequest,
|
|
1335
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1336
|
-
"x-account-id": xAccountId,
|
|
1337
|
-
"x-username": xUsername,
|
|
1338
|
-
"x-user-id": xUserId,
|
|
1339
|
-
"x-user-full-name": xUserFullName,
|
|
1340
|
-
authorization
|
|
1341
|
-
})
|
|
1342
|
-
})));
|
|
1343
|
-
}
|
|
1344
|
-
/**
|
|
1345
|
-
* List Agents
|
|
1346
|
-
*/
|
|
1347
|
-
export function listAgentsV1AgentsGet({ isPublic, name, slug, visibility, size, page, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1348
|
-
isPublic?: boolean;
|
|
1349
|
-
name?: string | null;
|
|
1350
|
-
slug?: string | null;
|
|
1351
|
-
visibility?: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
1352
|
-
size?: number;
|
|
1353
|
-
page?: number;
|
|
1354
|
-
xAccountId?: string | null;
|
|
1355
|
-
xUsername?: string | null;
|
|
1356
|
-
xUserId?: string | null;
|
|
1357
|
-
xUserFullName?: string | null;
|
|
1358
|
-
authorization: string;
|
|
1359
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1360
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1361
|
-
status: 200;
|
|
1362
|
-
data: ListAgentResponse[];
|
|
1363
|
-
} | {
|
|
1364
|
-
status: 404;
|
|
1365
|
-
} | {
|
|
1366
|
-
status: 422;
|
|
1367
|
-
data: HttpValidationError;
|
|
1368
|
-
}>(`/v1/agents${QS.query(QS.explode({
|
|
1369
|
-
is_public: isPublic,
|
|
1370
|
-
name,
|
|
1371
|
-
slug,
|
|
1372
|
-
visibility,
|
|
1373
|
-
size,
|
|
1374
|
-
page
|
|
1375
|
-
}))}`, {
|
|
1376
|
-
...opts,
|
|
1377
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1378
|
-
"x-account-id": xAccountId,
|
|
1379
|
-
"x-username": xUsername,
|
|
1380
|
-
"x-user-id": xUserId,
|
|
1381
|
-
"x-user-full-name": xUserFullName,
|
|
1382
|
-
authorization
|
|
1383
|
-
})
|
|
1384
|
-
}));
|
|
1385
|
-
}
|
|
1386
|
-
/**
|
|
1387
|
-
* Create Agent
|
|
1388
|
-
*/
|
|
1389
|
-
export function createAgentV1AgentsPost({ isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, newAgentRequest }: {
|
|
1390
|
-
isPublic?: boolean;
|
|
1391
|
-
xAccountId?: string | null;
|
|
1392
|
-
xUsername?: string | null;
|
|
1393
|
-
xUserId?: string | null;
|
|
1394
|
-
xUserFullName?: string | null;
|
|
1395
|
-
authorization: string;
|
|
1396
|
-
newAgentRequest: NewAgentRequest;
|
|
1397
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1398
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1399
|
-
status: 201;
|
|
1400
|
-
data: CreatedResponse;
|
|
1401
|
-
} | {
|
|
1402
|
-
status: 404;
|
|
1403
|
-
} | {
|
|
1404
|
-
status: 422;
|
|
1405
|
-
data: HttpValidationError;
|
|
1406
|
-
}>(`/v1/agents${QS.query(QS.explode({
|
|
1407
|
-
is_public: isPublic
|
|
1408
|
-
}))}`, oazapfts.json({
|
|
1409
|
-
...opts,
|
|
1410
|
-
method: "POST",
|
|
1411
|
-
body: newAgentRequest,
|
|
1412
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1413
|
-
"x-account-id": xAccountId,
|
|
1414
|
-
"x-username": xUsername,
|
|
1415
|
-
"x-user-id": xUserId,
|
|
1416
|
-
"x-user-full-name": xUserFullName,
|
|
1417
|
-
authorization
|
|
1418
|
-
})
|
|
1419
|
-
})));
|
|
1420
|
-
}
|
|
1421
|
-
/**
|
|
1422
|
-
* Search Agents
|
|
1423
|
-
*/
|
|
1424
|
-
export function searchAgentsV1AgentsSearchPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, searchAgentsRequest }: {
|
|
1425
|
-
xAccountId?: string | null;
|
|
1426
|
-
xUsername?: string | null;
|
|
1427
|
-
xUserId?: string | null;
|
|
1428
|
-
xUserFullName?: string | null;
|
|
1429
|
-
authorization: string;
|
|
1430
|
-
searchAgentsRequest: SearchAgentsRequest;
|
|
1431
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1432
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1433
|
-
status: 200;
|
|
1434
|
-
data: ListAgentResponse[];
|
|
1435
|
-
} | {
|
|
1436
|
-
status: 404;
|
|
1437
|
-
} | {
|
|
1438
|
-
status: 422;
|
|
1439
|
-
data: HttpValidationError;
|
|
1440
|
-
}>("/v1/agents/search", oazapfts.json({
|
|
1441
|
-
...opts,
|
|
1442
|
-
method: "POST",
|
|
1443
|
-
body: searchAgentsRequest,
|
|
1444
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1445
|
-
"x-account-id": xAccountId,
|
|
1446
|
-
"x-username": xUsername,
|
|
1447
|
-
"x-user-id": xUserId,
|
|
1448
|
-
"x-user-full-name": xUserFullName,
|
|
1449
|
-
authorization
|
|
1450
|
-
})
|
|
1451
|
-
})));
|
|
1452
|
-
}
|
|
1453
|
-
/**
|
|
1454
|
-
* Workspace Fork
|
|
1455
|
-
*/
|
|
1456
|
-
export function workspaceForkV1AgentsWorkspaceForkPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, workspaceForkRequest }: {
|
|
1457
|
-
xAccountId?: string | null;
|
|
1458
|
-
xUsername?: string | null;
|
|
1459
|
-
xUserId?: string | null;
|
|
1460
|
-
xUserFullName?: string | null;
|
|
1461
|
-
authorization: string;
|
|
1462
|
-
workspaceForkRequest: WorkspaceForkRequest;
|
|
1463
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1464
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1465
|
-
status: 201;
|
|
1466
|
-
data: WorkspaceForkAgent;
|
|
1467
|
-
} | {
|
|
1468
|
-
status: 404;
|
|
1469
|
-
} | {
|
|
1470
|
-
status: 422;
|
|
1471
|
-
data: HttpValidationError;
|
|
1472
|
-
}>("/v1/agents/workspace/fork", oazapfts.json({
|
|
1473
|
-
...opts,
|
|
1474
|
-
method: "POST",
|
|
1475
|
-
body: workspaceForkRequest,
|
|
1476
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1477
|
-
"x-account-id": xAccountId,
|
|
1478
|
-
"x-username": xUsername,
|
|
1479
|
-
"x-user-id": xUserId,
|
|
1480
|
-
"x-user-full-name": xUserFullName,
|
|
1481
|
-
authorization
|
|
1482
|
-
})
|
|
1483
|
-
})));
|
|
1484
|
-
}
|
|
1485
|
-
/**
|
|
1486
|
-
* Delete Workspace Fork
|
|
1487
|
-
*/
|
|
1488
|
-
export function deleteWorkspaceForkV1AgentsWorkspaceForkDelete({ xAccountId, xUsername, xUserId, xUserFullName, authorization, workspaceDeleteRequest }: {
|
|
1489
|
-
xAccountId?: string | null;
|
|
1490
|
-
xUsername?: string | null;
|
|
1491
|
-
xUserId?: string | null;
|
|
1492
|
-
xUserFullName?: string | null;
|
|
1493
|
-
authorization: string;
|
|
1494
|
-
workspaceDeleteRequest: WorkspaceDeleteRequest;
|
|
1495
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1496
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1497
|
-
status: 204;
|
|
1498
|
-
} | {
|
|
1499
|
-
status: 404;
|
|
1500
|
-
} | {
|
|
1501
|
-
status: 422;
|
|
1502
|
-
data: HttpValidationError;
|
|
1503
|
-
}>("/v1/agents/workspace/fork", oazapfts.json({
|
|
1504
|
-
...opts,
|
|
1505
|
-
method: "DELETE",
|
|
1506
|
-
body: workspaceDeleteRequest,
|
|
1507
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1508
|
-
"x-account-id": xAccountId,
|
|
1509
|
-
"x-username": xUsername,
|
|
1510
|
-
"x-user-id": xUserId,
|
|
1511
|
-
"x-user-full-name": xUserFullName,
|
|
1512
|
-
authorization
|
|
1513
|
-
})
|
|
1514
|
-
})));
|
|
1515
|
-
}
|
|
1516
|
-
/**
|
|
1517
|
-
* List Workspace
|
|
1518
|
-
*/
|
|
1519
|
-
export function listWorkspaceV1AgentsWorkspaceListPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, workspaceListRequest }: {
|
|
1520
|
-
xAccountId?: string | null;
|
|
1521
|
-
xUsername?: string | null;
|
|
1522
|
-
xUserId?: string | null;
|
|
1523
|
-
xUserFullName?: string | null;
|
|
1524
|
-
authorization: string;
|
|
1525
|
-
workspaceListRequest: WorkspaceListRequest;
|
|
1526
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1527
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1528
|
-
status: 200;
|
|
1529
|
-
data: ListAgentResponse[];
|
|
1530
|
-
} | {
|
|
1531
|
-
status: 404;
|
|
1532
|
-
} | {
|
|
1533
|
-
status: 422;
|
|
1534
|
-
data: HttpValidationError;
|
|
1535
|
-
}>("/v1/agents/workspace/list", oazapfts.json({
|
|
1536
|
-
...opts,
|
|
1537
|
-
method: "POST",
|
|
1538
|
-
body: workspaceListRequest,
|
|
1539
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1540
|
-
"x-account-id": xAccountId,
|
|
1541
|
-
"x-username": xUsername,
|
|
1542
|
-
"x-user-id": xUserId,
|
|
1543
|
-
"x-user-full-name": xUserFullName,
|
|
1544
|
-
authorization
|
|
1545
|
-
})
|
|
1546
|
-
})));
|
|
1547
|
-
}
|
|
1548
|
-
/**
|
|
1549
|
-
* List Agent Dependencies
|
|
1550
|
-
*/
|
|
1551
|
-
export function listAgentDependenciesV1AgentsDependenciesPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, agentDependenciesRequest }: {
|
|
1552
|
-
xAccountId?: string | null;
|
|
1553
|
-
xUsername?: string | null;
|
|
1554
|
-
xUserId?: string | null;
|
|
1555
|
-
xUserFullName?: string | null;
|
|
1556
|
-
authorization: string;
|
|
1557
|
-
agentDependenciesRequest: AgentDependenciesRequest;
|
|
1558
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1559
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1560
|
-
status: 200;
|
|
1561
|
-
data: WorkspaceAgentDependencies;
|
|
1562
|
-
} | {
|
|
1563
|
-
status: 404;
|
|
1564
|
-
} | {
|
|
1565
|
-
status: 422;
|
|
1566
|
-
data: HttpValidationError;
|
|
1567
|
-
}>("/v1/agents/dependencies", oazapfts.json({
|
|
1568
|
-
...opts,
|
|
1569
|
-
method: "POST",
|
|
1570
|
-
body: agentDependenciesRequest,
|
|
1571
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1572
|
-
"x-account-id": xAccountId,
|
|
1573
|
-
"x-username": xUsername,
|
|
1574
|
-
"x-user-id": xUserId,
|
|
1575
|
-
"x-user-full-name": xUserFullName,
|
|
1576
|
-
authorization
|
|
1577
|
-
})
|
|
1578
|
-
})));
|
|
1579
|
-
}
|
|
1580
|
-
/**
|
|
1581
|
-
* List Multi Agents
|
|
1582
|
-
*/
|
|
1583
|
-
export function listMultiAgentsV1AgentsMultiAgentsGet({ name, slug, visibility, size, page, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1584
|
-
name?: string | null;
|
|
1585
|
-
slug?: string | null;
|
|
1586
|
-
visibility?: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
1587
|
-
size?: number;
|
|
1588
|
-
page?: number;
|
|
1589
|
-
xAccountId?: string | null;
|
|
1590
|
-
xUsername?: string | null;
|
|
1591
|
-
xUserId?: string | null;
|
|
1592
|
-
xUserFullName?: string | null;
|
|
1593
|
-
authorization: string;
|
|
1594
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1595
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1596
|
-
status: 200;
|
|
1597
|
-
data: ListMultiAgentsResponse[];
|
|
1598
|
-
} | {
|
|
1599
|
-
status: 404;
|
|
1600
|
-
} | {
|
|
1601
|
-
status: 422;
|
|
1602
|
-
data: HttpValidationError;
|
|
1603
|
-
}>(`/v1/agents/multi-agents${QS.query(QS.explode({
|
|
1604
|
-
name,
|
|
1605
|
-
slug,
|
|
1606
|
-
visibility,
|
|
1607
|
-
size,
|
|
1608
|
-
page
|
|
1609
|
-
}))}`, {
|
|
1610
|
-
...opts,
|
|
1611
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1612
|
-
"x-account-id": xAccountId,
|
|
1613
|
-
"x-username": xUsername,
|
|
1614
|
-
"x-user-id": xUserId,
|
|
1615
|
-
"x-user-full-name": xUserFullName,
|
|
1616
|
-
authorization
|
|
1617
|
-
})
|
|
1618
|
-
}));
|
|
1619
|
-
}
|
|
1620
|
-
/**
|
|
1621
|
-
* Get Agent
|
|
1622
|
-
*/
|
|
1623
|
-
export function getAgentV1AgentsAgentIdGet({ agentId, details, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1624
|
-
agentId: string;
|
|
1625
|
-
details?: boolean;
|
|
1626
|
-
xAccountId?: string | null;
|
|
1627
|
-
xUsername?: string | null;
|
|
1628
|
-
xUserId?: string | null;
|
|
1629
|
-
xUserFullName?: string | null;
|
|
1630
|
-
authorization: string;
|
|
1631
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1632
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1633
|
-
status: 200;
|
|
1634
|
-
data: AgentModel;
|
|
1635
|
-
} | {
|
|
1636
|
-
status: 404;
|
|
1637
|
-
} | {
|
|
1638
|
-
status: 422;
|
|
1639
|
-
data: HttpValidationError;
|
|
1640
|
-
}>(`/v1/agents/${encodeURIComponent(agentId)}${QS.query(QS.explode({
|
|
1641
|
-
details
|
|
1642
|
-
}))}`, {
|
|
1643
|
-
...opts,
|
|
1644
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1645
|
-
"x-account-id": xAccountId,
|
|
1646
|
-
"x-username": xUsername,
|
|
1647
|
-
"x-user-id": xUserId,
|
|
1648
|
-
"x-user-full-name": xUserFullName,
|
|
1649
|
-
authorization
|
|
1650
|
-
})
|
|
1651
|
-
}));
|
|
1652
|
-
}
|
|
1653
|
-
/**
|
|
1654
|
-
* Update Agent
|
|
1655
|
-
*/
|
|
1656
|
-
export function updateAgentV1AgentsAgentIdPatch({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, updateAgentRequest }: {
|
|
1657
|
-
agentId: string;
|
|
1658
|
-
isPublic?: boolean;
|
|
1659
|
-
xAccountId?: string | null;
|
|
1660
|
-
xUsername?: string | null;
|
|
1661
|
-
xUserId?: string | null;
|
|
1662
|
-
xUserFullName?: string | null;
|
|
1663
|
-
authorization: string;
|
|
1664
|
-
updateAgentRequest: UpdateAgentRequest;
|
|
1665
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1666
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1667
|
-
status: 204;
|
|
1668
|
-
} | {
|
|
1669
|
-
status: 404;
|
|
1670
|
-
} | {
|
|
1671
|
-
status: 422;
|
|
1672
|
-
data: HttpValidationError;
|
|
1673
|
-
}>(`/v1/agents/${encodeURIComponent(agentId)}${QS.query(QS.explode({
|
|
1674
|
-
is_public: isPublic
|
|
1675
|
-
}))}`, oazapfts.json({
|
|
1676
|
-
...opts,
|
|
1677
|
-
method: "PATCH",
|
|
1678
|
-
body: updateAgentRequest,
|
|
1679
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1680
|
-
"x-account-id": xAccountId,
|
|
1681
|
-
"x-username": xUsername,
|
|
1682
|
-
"x-user-id": xUserId,
|
|
1683
|
-
"x-user-full-name": xUserFullName,
|
|
1684
|
-
authorization
|
|
1685
|
-
})
|
|
1686
|
-
})));
|
|
1687
|
-
}
|
|
1688
|
-
/**
|
|
1689
|
-
* Delete Agent
|
|
1690
|
-
*/
|
|
1691
|
-
export function deleteAgentV1AgentsAgentIdDelete({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1692
|
-
agentId: string;
|
|
1693
|
-
isPublic?: boolean;
|
|
1694
|
-
xAccountId?: string | null;
|
|
1695
|
-
xUsername?: string | null;
|
|
1696
|
-
xUserId?: string | null;
|
|
1697
|
-
xUserFullName?: string | null;
|
|
1698
|
-
authorization: string;
|
|
1699
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1700
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1701
|
-
status: 204;
|
|
1702
|
-
} | {
|
|
1703
|
-
status: 404;
|
|
1704
|
-
} | {
|
|
1705
|
-
status: 422;
|
|
1706
|
-
data: HttpValidationError;
|
|
1707
|
-
}>(`/v1/agents/${encodeURIComponent(agentId)}${QS.query(QS.explode({
|
|
1708
|
-
is_public: isPublic
|
|
1709
|
-
}))}`, {
|
|
1710
|
-
...opts,
|
|
1711
|
-
method: "DELETE",
|
|
1712
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1713
|
-
"x-account-id": xAccountId,
|
|
1714
|
-
"x-username": xUsername,
|
|
1715
|
-
"x-user-id": xUserId,
|
|
1716
|
-
"x-user-full-name": xUserFullName,
|
|
1717
|
-
authorization
|
|
1718
|
-
})
|
|
1719
|
-
}));
|
|
1720
|
-
}
|
|
1721
|
-
/**
|
|
1722
|
-
* Add Favorite
|
|
1723
|
-
*/
|
|
1724
|
-
export function addFavoriteV1AgentsAgentIdFavoritePost({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1725
|
-
agentId: string;
|
|
1726
|
-
xAccountId?: string | null;
|
|
1727
|
-
xUsername?: string | null;
|
|
1728
|
-
xUserId?: string | null;
|
|
1729
|
-
xUserFullName?: string | null;
|
|
1730
|
-
authorization: string;
|
|
1731
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1732
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1733
|
-
status: 204;
|
|
1734
|
-
} | {
|
|
1735
|
-
status: 404;
|
|
1736
|
-
} | {
|
|
1737
|
-
status: 422;
|
|
1738
|
-
data: HttpValidationError;
|
|
1739
|
-
}>(`/v1/agents/${encodeURIComponent(agentId)}/favorite`, {
|
|
1740
|
-
...opts,
|
|
1741
|
-
method: "POST",
|
|
1742
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1743
|
-
"x-account-id": xAccountId,
|
|
1744
|
-
"x-username": xUsername,
|
|
1745
|
-
"x-user-id": xUserId,
|
|
1746
|
-
"x-user-full-name": xUserFullName,
|
|
1747
|
-
authorization
|
|
1748
|
-
})
|
|
1749
|
-
}));
|
|
1750
|
-
}
|
|
1751
|
-
/**
|
|
1752
|
-
* Delete Favorite
|
|
1753
|
-
*/
|
|
1754
|
-
export function deleteFavoriteV1AgentsAgentIdFavoriteDelete({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1755
|
-
agentId: string;
|
|
1756
|
-
xAccountId?: string | null;
|
|
1757
|
-
xUsername?: string | null;
|
|
1758
|
-
xUserId?: string | null;
|
|
1759
|
-
xUserFullName?: string | null;
|
|
1760
|
-
authorization: string;
|
|
1761
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1762
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1763
|
-
status: 204;
|
|
1764
|
-
} | {
|
|
1765
|
-
status: 404;
|
|
1766
|
-
} | {
|
|
1767
|
-
status: 422;
|
|
1768
|
-
data: HttpValidationError;
|
|
1769
|
-
}>(`/v1/agents/${encodeURIComponent(agentId)}/favorite`, {
|
|
1770
|
-
...opts,
|
|
1771
|
-
method: "DELETE",
|
|
1772
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1773
|
-
"x-account-id": xAccountId,
|
|
1774
|
-
"x-username": xUsername,
|
|
1775
|
-
"x-user-id": xUserId,
|
|
1776
|
-
"x-user-full-name": xUserFullName,
|
|
1777
|
-
authorization
|
|
1778
|
-
})
|
|
1779
|
-
}));
|
|
1780
|
-
}
|
|
1781
|
-
/**
|
|
1782
|
-
* Fork Agent
|
|
1783
|
-
*/
|
|
1784
|
-
export function forkAgentV1AgentsAgentIdForkPost({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, forkAgentRequest }: {
|
|
1785
|
-
agentId: string;
|
|
1786
|
-
isPublic?: boolean;
|
|
1787
|
-
xAccountId?: string | null;
|
|
1788
|
-
xUsername?: string | null;
|
|
1789
|
-
xUserId?: string | null;
|
|
1790
|
-
xUserFullName?: string | null;
|
|
1791
|
-
authorization: string;
|
|
1792
|
-
forkAgentRequest: ForkAgentRequest;
|
|
1793
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1794
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1795
|
-
status: 201;
|
|
1796
|
-
data: CreatedResponse;
|
|
1797
|
-
} | {
|
|
1798
|
-
status: 404;
|
|
1799
|
-
} | {
|
|
1800
|
-
status: 422;
|
|
1801
|
-
data: HttpValidationError;
|
|
1802
|
-
}>(`/v1/agents/${encodeURIComponent(agentId)}/fork${QS.query(QS.explode({
|
|
1803
|
-
is_public: isPublic
|
|
1804
|
-
}))}`, oazapfts.json({
|
|
1805
|
-
...opts,
|
|
1806
|
-
method: "POST",
|
|
1807
|
-
body: forkAgentRequest,
|
|
1808
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1809
|
-
"x-account-id": xAccountId,
|
|
1810
|
-
"x-username": xUsername,
|
|
1811
|
-
"x-user-id": xUserId,
|
|
1812
|
-
"x-user-full-name": xUserFullName,
|
|
1813
|
-
authorization
|
|
1814
|
-
})
|
|
1815
|
-
})));
|
|
1816
|
-
}
|
|
1817
|
-
/**
|
|
1818
|
-
* Publish Agent
|
|
1819
|
-
*/
|
|
1820
|
-
export function publishAgentV1AgentsAgentIdPublishPost({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization, publishAgentRequest }: {
|
|
1821
|
-
agentId: string;
|
|
1822
|
-
xAccountId?: string | null;
|
|
1823
|
-
xUsername?: string | null;
|
|
1824
|
-
xUserId?: string | null;
|
|
1825
|
-
xUserFullName?: string | null;
|
|
1826
|
-
authorization: string;
|
|
1827
|
-
publishAgentRequest: PublishAgentRequest;
|
|
1828
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1829
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1830
|
-
status: 204;
|
|
1831
|
-
} | {
|
|
1832
|
-
status: 404;
|
|
1833
|
-
} | {
|
|
1834
|
-
status: 422;
|
|
1835
|
-
data: HttpValidationError;
|
|
1836
|
-
}>(`/v1/agents/${encodeURIComponent(agentId)}/publish`, oazapfts.json({
|
|
1837
|
-
...opts,
|
|
1838
|
-
method: "POST",
|
|
1839
|
-
body: publishAgentRequest,
|
|
1840
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1841
|
-
"x-account-id": xAccountId,
|
|
1842
|
-
"x-username": xUsername,
|
|
1843
|
-
"x-user-id": xUserId,
|
|
1844
|
-
"x-user-full-name": xUserFullName,
|
|
1845
|
-
authorization
|
|
1846
|
-
})
|
|
1847
|
-
})));
|
|
1848
|
-
}
|
|
1849
|
-
/**
|
|
1850
|
-
* Share
|
|
1851
|
-
*/
|
|
1852
|
-
export function shareV1AgentsAgentIdSharePost({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1853
|
-
agentId: string;
|
|
1854
|
-
xAccountId?: string | null;
|
|
1855
|
-
xUsername?: string | null;
|
|
1856
|
-
xUserId?: string | null;
|
|
1857
|
-
xUserFullName?: string | null;
|
|
1858
|
-
authorization: string;
|
|
1859
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1860
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1861
|
-
status: 204;
|
|
1862
|
-
} | {
|
|
1863
|
-
status: 404;
|
|
1864
|
-
} | {
|
|
1865
|
-
status: 422;
|
|
1866
|
-
data: HttpValidationError;
|
|
1867
|
-
}>(`/v1/agents/${encodeURIComponent(agentId)}/share`, {
|
|
1868
|
-
...opts,
|
|
1869
|
-
method: "POST",
|
|
1870
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1871
|
-
"x-account-id": xAccountId,
|
|
1872
|
-
"x-username": xUsername,
|
|
1873
|
-
"x-user-id": xUserId,
|
|
1874
|
-
"x-user-full-name": xUserFullName,
|
|
1875
|
-
authorization
|
|
1876
|
-
})
|
|
1877
|
-
}));
|
|
1878
|
-
}
|
|
1879
|
-
/**
|
|
1880
|
-
* Disassociate Ks From All Agents
|
|
1881
|
-
*/
|
|
1882
|
-
export function disassociateKsFromAllAgentsV1AgentsKnowledgeSourceKsIdDelete({ ksId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1883
|
-
ksId: string;
|
|
1884
|
-
xAccountId?: string | null;
|
|
1885
|
-
xUsername?: string | null;
|
|
1886
|
-
xUserId?: string | null;
|
|
1887
|
-
xUserFullName?: string | null;
|
|
1888
|
-
authorization: string;
|
|
1889
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1890
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1891
|
-
status: 204;
|
|
1892
|
-
} | {
|
|
1893
|
-
status: 404;
|
|
1894
|
-
} | {
|
|
1895
|
-
status: 422;
|
|
1896
|
-
data: HttpValidationError;
|
|
1897
|
-
}>(`/v1/agents/knowledge-source/${encodeURIComponent(ksId)}`, {
|
|
1898
|
-
...opts,
|
|
1899
|
-
method: "DELETE",
|
|
1900
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1901
|
-
"x-account-id": xAccountId,
|
|
1902
|
-
"x-username": xUsername,
|
|
1903
|
-
"x-user-id": xUserId,
|
|
1904
|
-
"x-user-full-name": xUserFullName,
|
|
1905
|
-
authorization
|
|
1906
|
-
})
|
|
1907
|
-
}));
|
|
1908
|
-
}
|
|
1909
|
-
/**
|
|
1910
|
-
* Get Agent By Ks Id
|
|
1911
|
-
*/
|
|
1912
|
-
export function getAgentByKsIdV1AgentsKnowledgeSourceKsIdGet({ ksId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1913
|
-
ksId: string;
|
|
1914
|
-
xAccountId?: string | null;
|
|
1915
|
-
xUsername?: string | null;
|
|
1916
|
-
xUserId?: string | null;
|
|
1917
|
-
xUserFullName?: string | null;
|
|
1918
|
-
authorization: string;
|
|
1919
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1920
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1921
|
-
status: 200;
|
|
1922
|
-
data: ListAgentResponse[];
|
|
1923
|
-
} | {
|
|
1924
|
-
status: 404;
|
|
1925
|
-
} | {
|
|
1926
|
-
status: 422;
|
|
1927
|
-
data: HttpValidationError;
|
|
1928
|
-
}>(`/v1/agents/knowledge-source/${encodeURIComponent(ksId)}`, {
|
|
1929
|
-
...opts,
|
|
1930
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1931
|
-
"x-account-id": xAccountId,
|
|
1932
|
-
"x-username": xUsername,
|
|
1933
|
-
"x-user-id": xUserId,
|
|
1934
|
-
"x-user-full-name": xUserFullName,
|
|
1935
|
-
authorization
|
|
1936
|
-
})
|
|
1937
|
-
}));
|
|
1938
|
-
}
|
|
1939
|
-
/**
|
|
1940
|
-
* Migrate Agent Avatar By Id
|
|
1941
|
-
*/
|
|
1942
|
-
export function migrateAgentAvatarByIdV1AgentsAgentIdMigrateAvatarPost({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1943
|
-
agentId: string;
|
|
1944
|
-
xAccountId?: string | null;
|
|
1945
|
-
xUsername?: string | null;
|
|
1946
|
-
xUserId?: string | null;
|
|
1947
|
-
xUserFullName?: string | null;
|
|
1948
|
-
authorization: string;
|
|
1949
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1950
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1951
|
-
status: 204;
|
|
1952
|
-
} | {
|
|
1953
|
-
status: 404;
|
|
1954
|
-
} | {
|
|
1955
|
-
status: 422;
|
|
1956
|
-
data: HttpValidationError;
|
|
1957
|
-
}>(`/v1/agents/${encodeURIComponent(agentId)}/migrate-avatar`, {
|
|
1958
|
-
...opts,
|
|
1959
|
-
method: "POST",
|
|
1960
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1961
|
-
"x-account-id": xAccountId,
|
|
1962
|
-
"x-username": xUsername,
|
|
1963
|
-
"x-user-id": xUserId,
|
|
1964
|
-
"x-user-full-name": xUserFullName,
|
|
1965
|
-
authorization
|
|
1966
|
-
})
|
|
1967
|
-
}));
|
|
1968
|
-
}
|
|
1969
|
-
/**
|
|
1970
|
-
* List Agents
|
|
1971
|
-
*/
|
|
1972
|
-
export function listAgentsV2AgentsGet({ name, slug, visibility, size, page, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1973
|
-
name?: string | null;
|
|
1974
|
-
slug?: string | null;
|
|
1975
|
-
visibility?: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
1976
|
-
size?: number;
|
|
1977
|
-
page?: number;
|
|
1978
|
-
xAccountId?: string | null;
|
|
1979
|
-
xUsername?: string | null;
|
|
1980
|
-
xUserId?: string | null;
|
|
1981
|
-
xUserFullName?: string | null;
|
|
1982
|
-
authorization: string;
|
|
1983
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1984
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1985
|
-
status: 200;
|
|
1986
|
-
data: ListAgentResponseV2[];
|
|
1987
|
-
} | {
|
|
1988
|
-
status: 404;
|
|
1989
|
-
} | {
|
|
1990
|
-
status: 422;
|
|
1991
|
-
data: HttpValidationError;
|
|
1992
|
-
}>(`/v2/agents${QS.query(QS.explode({
|
|
1993
|
-
name,
|
|
1994
|
-
slug,
|
|
1995
|
-
visibility,
|
|
1996
|
-
size,
|
|
1997
|
-
page
|
|
1998
|
-
}))}`, {
|
|
1999
|
-
...opts,
|
|
2000
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2001
|
-
"x-account-id": xAccountId,
|
|
2002
|
-
"x-username": xUsername,
|
|
2003
|
-
"x-user-id": xUserId,
|
|
2004
|
-
"x-user-full-name": xUserFullName,
|
|
2005
|
-
authorization
|
|
2006
|
-
})
|
|
2007
|
-
}));
|
|
2008
|
-
}
|
|
2009
|
-
/**
|
|
2010
|
-
* Search Agents
|
|
2011
|
-
*/
|
|
2012
|
-
export function searchAgentsV2AgentsSearchPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, searchAgentsRequest }: {
|
|
2013
|
-
xAccountId?: string | null;
|
|
2014
|
-
xUsername?: string | null;
|
|
2015
|
-
xUserId?: string | null;
|
|
2016
|
-
xUserFullName?: string | null;
|
|
2017
|
-
authorization: string;
|
|
2018
|
-
searchAgentsRequest: SearchAgentsRequest;
|
|
2019
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
2020
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2021
|
-
status: 200;
|
|
2022
|
-
data: ListAgentResponseV2[];
|
|
2023
|
-
} | {
|
|
2024
|
-
status: 404;
|
|
2025
|
-
} | {
|
|
2026
|
-
status: 422;
|
|
2027
|
-
data: HttpValidationError;
|
|
2028
|
-
}>("/v2/agents/search", oazapfts.json({
|
|
2029
|
-
...opts,
|
|
2030
|
-
method: "POST",
|
|
2031
|
-
body: searchAgentsRequest,
|
|
2032
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2033
|
-
"x-account-id": xAccountId,
|
|
2034
|
-
"x-username": xUsername,
|
|
2035
|
-
"x-user-id": xUserId,
|
|
2036
|
-
"x-user-full-name": xUserFullName,
|
|
2037
|
-
authorization
|
|
2038
|
-
})
|
|
2039
|
-
})));
|
|
2040
|
-
}
|
|
2041
|
-
/**
|
|
2042
|
-
* List Agents
|
|
2043
|
-
*/
|
|
2044
|
-
export function listAgentsV3AgentsGet({ filters, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2045
|
-
filters: ListAgentRequestV3;
|
|
2046
|
-
isPublic?: boolean;
|
|
2047
|
-
xAccountId?: string | null;
|
|
2048
|
-
xUsername?: string | null;
|
|
2049
|
-
xUserId?: string | null;
|
|
2050
|
-
xUserFullName?: string | null;
|
|
2051
|
-
authorization: string;
|
|
2052
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
2053
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2054
|
-
status: 200;
|
|
2055
|
-
data: PaginatedResponseAgentResponseV3;
|
|
2056
|
-
} | {
|
|
2057
|
-
status: 404;
|
|
2058
|
-
} | {
|
|
2059
|
-
status: 422;
|
|
2060
|
-
data: HttpValidationError;
|
|
2061
|
-
}>(`/v3/agents${QS.query(QS.explode({
|
|
2062
|
-
filters,
|
|
2063
|
-
is_public: isPublic
|
|
2064
|
-
}))}`, {
|
|
2065
|
-
...opts,
|
|
2066
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2067
|
-
"x-account-id": xAccountId,
|
|
2068
|
-
"x-username": xUsername,
|
|
2069
|
-
"x-user-id": xUserId,
|
|
2070
|
-
"x-user-full-name": xUserFullName,
|
|
2071
|
-
authorization
|
|
2072
|
-
})
|
|
2073
|
-
}));
|
|
2074
|
-
}
|
|
2075
|
-
/**
|
|
2076
|
-
* Internal List Toolkits By Ids
|
|
2077
|
-
*/
|
|
2078
|
-
export function internalListToolkitsByIdsV1SpotToolkitsPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, internalListToolkitsRequest }: {
|
|
2079
|
-
xAccountId: string;
|
|
2080
|
-
xUsername?: string | null;
|
|
2081
|
-
xUserId?: string | null;
|
|
2082
|
-
xUserFullName?: string | null;
|
|
2083
|
-
authorization: string;
|
|
2084
|
-
internalListToolkitsRequest: InternalListToolkitsRequest;
|
|
2085
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
2086
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2087
|
-
status: 200;
|
|
2088
|
-
data: CustomToolkitSimpleResponse[];
|
|
2089
|
-
} | {
|
|
2090
|
-
status: 404;
|
|
2091
|
-
} | {
|
|
2092
|
-
status: 422;
|
|
2093
|
-
data: HttpValidationError;
|
|
2094
|
-
}>("/v1/spot/toolkits", oazapfts.json({
|
|
2095
|
-
...opts,
|
|
2096
|
-
method: "POST",
|
|
2097
|
-
body: internalListToolkitsRequest,
|
|
2098
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2099
|
-
"x-account-id": xAccountId,
|
|
2100
|
-
"x-username": xUsername,
|
|
2101
|
-
"x-user-id": xUserId,
|
|
2102
|
-
"x-user-full-name": xUserFullName,
|
|
2103
|
-
authorization
|
|
2104
|
-
})
|
|
2105
|
-
})));
|
|
2106
|
-
}
|
|
2107
|
-
/**
|
|
2108
|
-
* Internal Delete Toolkits By Ids
|
|
2109
|
-
*/
|
|
2110
|
-
export function internalDeleteToolkitsByIdsV1SpotToolkitsDelete({ xAccountId, xUsername, xUserId, xUserFullName, authorization, internalDeleteToolkitsRequest }: {
|
|
2111
|
-
xAccountId: string;
|
|
2112
|
-
xUsername?: string | null;
|
|
2113
|
-
xUserId?: string | null;
|
|
2114
|
-
xUserFullName?: string | null;
|
|
2115
|
-
authorization: string;
|
|
2116
|
-
internalDeleteToolkitsRequest: InternalDeleteToolkitsRequest;
|
|
2117
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
2118
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2119
|
-
status: 204;
|
|
2120
|
-
} | {
|
|
2121
|
-
status: 404;
|
|
2122
|
-
} | {
|
|
2123
|
-
status: 422;
|
|
2124
|
-
data: HttpValidationError;
|
|
2125
|
-
}>("/v1/spot/toolkits", oazapfts.json({
|
|
2126
|
-
...opts,
|
|
2127
|
-
method: "DELETE",
|
|
2128
|
-
body: internalDeleteToolkitsRequest,
|
|
2129
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2130
|
-
"x-account-id": xAccountId,
|
|
2131
|
-
"x-username": xUsername,
|
|
2132
|
-
"x-user-id": xUserId,
|
|
2133
|
-
"x-user-full-name": xUserFullName,
|
|
2134
|
-
authorization
|
|
2135
|
-
})
|
|
2136
|
-
})));
|
|
2137
|
-
}
|
|
2138
|
-
/**
|
|
2139
|
-
* Internal Fork Toolkits By Ids
|
|
2140
|
-
*/
|
|
2141
|
-
export function internalForkToolkitsByIdsV1SpotToolkitsForkPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, internalToolkitForkRequest }: {
|
|
2142
|
-
xAccountId: string;
|
|
2143
|
-
xUsername: string;
|
|
2144
|
-
xUserId: string;
|
|
2145
|
-
xUserFullName: string;
|
|
2146
|
-
authorization: string;
|
|
2147
|
-
internalToolkitForkRequest: InternalToolkitForkRequest;
|
|
2148
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
2149
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2150
|
-
status: 200;
|
|
2151
|
-
data: ToolkitForkResponse;
|
|
2152
|
-
} | {
|
|
2153
|
-
status: 404;
|
|
2154
|
-
} | {
|
|
2155
|
-
status: 422;
|
|
2156
|
-
data: HttpValidationError;
|
|
2157
|
-
}>("/v1/spot/toolkits/fork", oazapfts.json({
|
|
2158
|
-
...opts,
|
|
2159
|
-
method: "POST",
|
|
2160
|
-
body: internalToolkitForkRequest,
|
|
2161
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2162
|
-
"x-account-id": xAccountId,
|
|
2163
|
-
"x-username": xUsername,
|
|
2164
|
-
"x-user-id": xUserId,
|
|
2165
|
-
"x-user-full-name": xUserFullName,
|
|
2166
|
-
authorization
|
|
2167
|
-
})
|
|
2168
|
-
})));
|
|
2169
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* genAI Agent Application
|
|
3
|
+
* 0.1.0
|
|
4
|
+
* DO NOT MODIFY - This file has been generated using oazapfts.
|
|
5
|
+
* See https://www.npmjs.com/package/oazapfts
|
|
6
|
+
*/
|
|
7
|
+
import * as Oazapfts from "@oazapfts/runtime";
|
|
8
|
+
import * as QS from "@oazapfts/runtime/query";
|
|
9
|
+
export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
10
|
+
headers: {},
|
|
11
|
+
baseUrl: "/",
|
|
12
|
+
};
|
|
13
|
+
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
|
+
export const servers = {};
|
|
15
|
+
export type BuiltinToolResponse = {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
export type BuiltinToolkitResponse = {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
description: string;
|
|
24
|
+
image_url: string;
|
|
25
|
+
tools: BuiltinToolResponse[];
|
|
26
|
+
};
|
|
27
|
+
export type ValidationError = {
|
|
28
|
+
loc: (string | number)[];
|
|
29
|
+
msg: string;
|
|
30
|
+
"type": string;
|
|
31
|
+
};
|
|
32
|
+
export type HttpValidationError = {
|
|
33
|
+
detail?: ValidationError[];
|
|
34
|
+
};
|
|
35
|
+
export type VisibilityLevelEnum = "account" | "personal" | "shared" | "workspace" | "favorite";
|
|
36
|
+
export type CustomToolkitSimpleResponse = {
|
|
37
|
+
id: string;
|
|
38
|
+
name: string;
|
|
39
|
+
description?: string | null;
|
|
40
|
+
avatar?: string | null;
|
|
41
|
+
visibility_level: VisibilityLevelEnum;
|
|
42
|
+
creator_name: string | null;
|
|
43
|
+
};
|
|
44
|
+
export type ToolkitRequest = {
|
|
45
|
+
/** Toolkit name (up to 150 characters, required) */
|
|
46
|
+
name: string;
|
|
47
|
+
/** Toolkit description (up to 1024 characters, optional) */
|
|
48
|
+
description?: string | null;
|
|
49
|
+
/** Toolkit avatar (text base64, optional) */
|
|
50
|
+
avatar?: string | null;
|
|
51
|
+
/** Visibility level (default 'PERSONAL') */
|
|
52
|
+
visibility_level?: VisibilityLevelEnum;
|
|
53
|
+
};
|
|
54
|
+
export type CreatedResponse = {
|
|
55
|
+
id: string;
|
|
56
|
+
};
|
|
57
|
+
export type CustomToolkitToolResponse = {
|
|
58
|
+
id: string;
|
|
59
|
+
name: string;
|
|
60
|
+
description: string;
|
|
61
|
+
method: string;
|
|
62
|
+
url: string;
|
|
63
|
+
parameters?: {
|
|
64
|
+
[key: string]: any;
|
|
65
|
+
}[] | null;
|
|
66
|
+
request_body?: {
|
|
67
|
+
[key: string]: any;
|
|
68
|
+
} | null;
|
|
69
|
+
response_transformation?: string | null;
|
|
70
|
+
creator_name?: string | null;
|
|
71
|
+
};
|
|
72
|
+
export type CustomToolkitResponse = {
|
|
73
|
+
id: string;
|
|
74
|
+
name: string;
|
|
75
|
+
description?: string | null;
|
|
76
|
+
avatar?: string | null;
|
|
77
|
+
visibility_level: VisibilityLevelEnum;
|
|
78
|
+
creator_name: string | null;
|
|
79
|
+
tools: CustomToolkitToolResponse[];
|
|
80
|
+
secret_id?: string | null;
|
|
81
|
+
secrets?: string[] | null;
|
|
82
|
+
is_usable_by_others: boolean;
|
|
83
|
+
};
|
|
84
|
+
export type ToolkitUpdateRequest = {
|
|
85
|
+
/** Toolkit name (up to 150 characters, optional) */
|
|
86
|
+
name?: string | null;
|
|
87
|
+
/** Toolkit description (up to 1024 characters, optional) */
|
|
88
|
+
description?: string | null;
|
|
89
|
+
/** Toolkit avatar (text base64, optional) */
|
|
90
|
+
avatar?: string | null;
|
|
91
|
+
/** Visibility level (optional) */
|
|
92
|
+
visibility_level?: VisibilityLevelEnum | null;
|
|
93
|
+
/** IAM secret ID (optional) */
|
|
94
|
+
secret_id?: string | null;
|
|
95
|
+
/** List of secret IDs (optional) */
|
|
96
|
+
secrets?: string[] | null;
|
|
97
|
+
};
|
|
98
|
+
export type ToolkitForkRequest = {
|
|
99
|
+
/** Toolkit name (up to 150 characters, required) */
|
|
100
|
+
name: string;
|
|
101
|
+
/** Toolkit description (up to 1024 characters, optional) */
|
|
102
|
+
description?: string | null;
|
|
103
|
+
/** Toolkit avatar (text base64, optional) */
|
|
104
|
+
avatar?: string | null;
|
|
105
|
+
};
|
|
106
|
+
export type HttpMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
107
|
+
export type Reference = {
|
|
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
|
+
};
|
|
249
|
+
export type CustomToolRequest = {
|
|
250
|
+
/** Tool name (up to 256 characters, required) */
|
|
251
|
+
name: string;
|
|
252
|
+
/** Tool description (required) */
|
|
253
|
+
description: string;
|
|
254
|
+
/** HTTP method (required) */
|
|
255
|
+
method: HttpMethod;
|
|
256
|
+
/** Endpoint URL (required, must use https schema) */
|
|
257
|
+
url: string;
|
|
258
|
+
/** Dict of parameters (optional) */
|
|
259
|
+
parameters?: Parameter[] | null;
|
|
260
|
+
/** Dict of request body (optional) */
|
|
261
|
+
request_body?: RequestBody | null;
|
|
262
|
+
/** Response transformation (optional) */
|
|
263
|
+
response_transformation?: string | null;
|
|
264
|
+
};
|
|
265
|
+
export type CustomToolsRequest = {
|
|
266
|
+
custom_tools: CustomToolRequest[];
|
|
267
|
+
/** IAM secret ID. You should use your own secret or an account secret. */
|
|
268
|
+
secret_id?: string | null;
|
|
269
|
+
/** List of IAM secret IDs. You should use your own secrets or account secrets. */
|
|
270
|
+
secrets?: string[] | null;
|
|
271
|
+
};
|
|
272
|
+
export type DeleteToolsRequest = {
|
|
273
|
+
/** List of tool IDs to be deleted from the toolkit */
|
|
274
|
+
tool_ids: string[];
|
|
275
|
+
};
|
|
276
|
+
export type ListAgentsUsingToolsRequest = {
|
|
277
|
+
/** List of tool IDs to find agents that use at least one of them */
|
|
278
|
+
tool_ids: string[];
|
|
279
|
+
};
|
|
280
|
+
export type AgentUsingToolsResponse = {
|
|
281
|
+
id: string;
|
|
282
|
+
name: string;
|
|
283
|
+
avatar?: string | null;
|
|
284
|
+
};
|
|
285
|
+
export type AssignCustomToolsAgentRequest = {
|
|
286
|
+
toolkit_id: string;
|
|
287
|
+
tools_ids: string[];
|
|
288
|
+
};
|
|
289
|
+
export type AssignToolsToAgentRequest = {
|
|
290
|
+
builtin_tool_ids?: string[] | null;
|
|
291
|
+
custom_tools?: AssignCustomToolsAgentRequest[] | null;
|
|
292
|
+
sub_agents_ids?: string[] | null;
|
|
293
|
+
};
|
|
294
|
+
export type AgentToolsResponse = {
|
|
295
|
+
builtin_toolkits?: BuiltinToolkitResponse[];
|
|
296
|
+
custom_toolkits?: CustomToolkitResponse[];
|
|
297
|
+
};
|
|
298
|
+
export type SchemaEnum = "OPENAI";
|
|
299
|
+
export type FunctionParameter = {
|
|
300
|
+
/** The type of the parameter */
|
|
301
|
+
"type": string;
|
|
302
|
+
/** A description of the parameter (optional) */
|
|
303
|
+
description?: string | null;
|
|
304
|
+
/** A list of possible values for the parameter (optional) */
|
|
305
|
+
"enum"?: string[] | null;
|
|
306
|
+
/** A dictionary of properties for the parameter (optional) */
|
|
307
|
+
properties?: {
|
|
308
|
+
[key: string]: any;
|
|
309
|
+
} | null;
|
|
310
|
+
/** A list of required parameters (optional) */
|
|
311
|
+
required?: string[] | null;
|
|
312
|
+
/** Allow arbitrary data of specific typed */
|
|
313
|
+
additionalProperties?: boolean;
|
|
314
|
+
};
|
|
315
|
+
export type Function = {
|
|
316
|
+
/** The name of the function */
|
|
317
|
+
name: string;
|
|
318
|
+
/** A description of what the function does */
|
|
319
|
+
description: string;
|
|
320
|
+
/** The parameters required by the function */
|
|
321
|
+
parameters: FunctionParameter;
|
|
322
|
+
/** Strict specific schema response. Only `strict` function tools can be auto-parsed */
|
|
323
|
+
strict: boolean;
|
|
324
|
+
};
|
|
325
|
+
export type OpenAiTool = {
|
|
326
|
+
/** The type of the tool; must be 'function' */
|
|
327
|
+
"type": "function";
|
|
328
|
+
/** The function associated with this tool */
|
|
329
|
+
"function": Function;
|
|
330
|
+
};
|
|
331
|
+
export type ExecuteAgentToolRequest = {
|
|
332
|
+
arguments?: string | null;
|
|
333
|
+
upload_ids?: string[] | null;
|
|
334
|
+
};
|
|
335
|
+
export type AgentToolExecutionResponse = {
|
|
336
|
+
result: string;
|
|
337
|
+
};
|
|
338
|
+
export type AgentVisibilityLevelEnum = "built_in" | "recently_used";
|
|
339
|
+
export type KnowledgeSourcesConfig = {
|
|
340
|
+
knowledge_sources: string[];
|
|
341
|
+
max_number_of_kos?: number;
|
|
342
|
+
relevancy_threshold?: number;
|
|
343
|
+
similarity_function?: string;
|
|
344
|
+
post_processing?: boolean;
|
|
345
|
+
};
|
|
346
|
+
export type ListAgentResponse = {
|
|
347
|
+
id: string;
|
|
348
|
+
name: string;
|
|
349
|
+
slug: string;
|
|
350
|
+
created_by: string | null;
|
|
351
|
+
created_at: string | null;
|
|
352
|
+
visibility_level: string;
|
|
353
|
+
avatar: string | null;
|
|
354
|
+
suggested_prompts: string[] | null;
|
|
355
|
+
knowledge_sources_config: KnowledgeSourcesConfig;
|
|
356
|
+
has_multiagent_tool?: boolean;
|
|
357
|
+
"type"?: string;
|
|
358
|
+
system_prompt?: string;
|
|
359
|
+
creator_name?: string;
|
|
360
|
+
};
|
|
361
|
+
export type AgentType = "CONVERSATIONAL" | "SINGLE_ANSWER";
|
|
362
|
+
export type SimilarityFunctionEnum = "cosine" | "euclidean" | "dot_product";
|
|
363
|
+
export type KnowledgeSourcesConfigRequest = {
|
|
364
|
+
similarity_function?: SimilarityFunctionEnum | null;
|
|
365
|
+
post_processing?: boolean | null;
|
|
366
|
+
max_number_of_kos?: number | null;
|
|
367
|
+
relevancy_threshold?: number | null;
|
|
368
|
+
knowledge_sources?: string[] | null;
|
|
369
|
+
sealed?: boolean | null;
|
|
370
|
+
};
|
|
371
|
+
export type AgentMode = "autonomous" | "plan_approval" | "plan_and_critical_approval";
|
|
372
|
+
export type NewAgentRequest = {
|
|
373
|
+
/** LLM model name */
|
|
374
|
+
model_name?: string | null;
|
|
375
|
+
/** LLM model id */
|
|
376
|
+
model_id?: string | null;
|
|
377
|
+
/** Agent name */
|
|
378
|
+
name: string;
|
|
379
|
+
/** Agent unique slug */
|
|
380
|
+
slug: string;
|
|
381
|
+
/** Agent description */
|
|
382
|
+
description?: string | null;
|
|
383
|
+
/** Agent avatar image */
|
|
384
|
+
avatar?: string | null;
|
|
385
|
+
/** Agent suggested prompt */
|
|
386
|
+
suggested_prompts?: string[];
|
|
387
|
+
/** System prompt */
|
|
388
|
+
system_prompt?: string | null;
|
|
389
|
+
/** Agent type */
|
|
390
|
+
"type": AgentType;
|
|
391
|
+
knowledge_sources_config?: KnowledgeSourcesConfigRequest | null;
|
|
392
|
+
builtin_tools_ids?: string[];
|
|
393
|
+
/** Custom tools to assign to the agent */
|
|
394
|
+
custom_tools?: AssignCustomToolsAgentRequest[] | null;
|
|
395
|
+
sub_agents_ids?: string[] | null;
|
|
396
|
+
detail_mode?: boolean;
|
|
397
|
+
structured_output?: string | null;
|
|
398
|
+
llm_settings?: {
|
|
399
|
+
[key: string]: any;
|
|
400
|
+
} | null;
|
|
401
|
+
/** Agent mode */
|
|
402
|
+
mode?: AgentMode;
|
|
403
|
+
};
|
|
404
|
+
export type SearchAgentsRequest = {
|
|
405
|
+
/** Agent ids to filter for */
|
|
406
|
+
ids: string[];
|
|
407
|
+
};
|
|
408
|
+
export type WorkspaceForkRequest = {
|
|
409
|
+
agent_ids: string[];
|
|
410
|
+
member_id: string;
|
|
411
|
+
};
|
|
412
|
+
export type AgentItemFork = {
|
|
413
|
+
agent_id: string;
|
|
414
|
+
is_builtin: boolean;
|
|
415
|
+
};
|
|
416
|
+
export type WorkspaceForkAgent = {
|
|
417
|
+
agents?: AgentItemFork[];
|
|
418
|
+
agent_ids?: string[];
|
|
419
|
+
agent_ids_account?: string[];
|
|
420
|
+
toolkit_ids?: string[];
|
|
421
|
+
toolkit_ids_account?: string[];
|
|
422
|
+
ks_ids?: string[];
|
|
423
|
+
ks_ids_account?: string[];
|
|
424
|
+
error_ids?: string[];
|
|
425
|
+
};
|
|
426
|
+
export type WorkspaceDeleteRequest = {
|
|
427
|
+
agent_ids: string[];
|
|
428
|
+
is_rollback: boolean;
|
|
429
|
+
};
|
|
430
|
+
export type WorkspaceListRequest = {
|
|
431
|
+
agent_ids: string[];
|
|
432
|
+
name?: string | null;
|
|
433
|
+
};
|
|
434
|
+
export type AgentDependenciesRequest = {
|
|
435
|
+
agent_ids: string[];
|
|
436
|
+
};
|
|
437
|
+
export type WorkspaceAgentDependencies = {
|
|
438
|
+
agent_ids?: string[];
|
|
439
|
+
ks_ids?: string[];
|
|
440
|
+
};
|
|
441
|
+
export type ListMultiAgentsResponse = {
|
|
442
|
+
id: string;
|
|
443
|
+
name: string;
|
|
444
|
+
avatar: string | null;
|
|
445
|
+
description: string | null;
|
|
446
|
+
visibility_level: VisibilityLevelEnum;
|
|
447
|
+
has_multiagent_tool: boolean;
|
|
448
|
+
};
|
|
449
|
+
export type KnowledgeSourceDetails = {
|
|
450
|
+
id: string;
|
|
451
|
+
slug: string;
|
|
452
|
+
name: string;
|
|
453
|
+
description: string;
|
|
454
|
+
"type": string;
|
|
455
|
+
creator?: string | null;
|
|
456
|
+
"default": boolean;
|
|
457
|
+
visibility_level: VisibilityLevelEnum;
|
|
458
|
+
model_name: string;
|
|
459
|
+
username?: string | null;
|
|
460
|
+
};
|
|
461
|
+
export type KnowledgeSourceConfigModel = {
|
|
462
|
+
similarity_function: SimilarityFunctionEnum;
|
|
463
|
+
max_number_of_kos: number;
|
|
464
|
+
relevancy_threshold: number;
|
|
465
|
+
post_processing: boolean;
|
|
466
|
+
knowledge_sources: string[];
|
|
467
|
+
knowledge_sources_details: KnowledgeSourceDetails[];
|
|
468
|
+
sealed: boolean;
|
|
469
|
+
created_by?: string | null;
|
|
470
|
+
created_at?: string | null;
|
|
471
|
+
updated_by?: string | null;
|
|
472
|
+
updated_at?: string | null;
|
|
473
|
+
};
|
|
474
|
+
export type BuiltinToolDto = {
|
|
475
|
+
id: string;
|
|
476
|
+
name: string;
|
|
477
|
+
description: string;
|
|
478
|
+
toolkit_id: string;
|
|
479
|
+
};
|
|
480
|
+
export type BuiltinToolkitDto = {
|
|
481
|
+
id: string;
|
|
482
|
+
name: string;
|
|
483
|
+
description: string;
|
|
484
|
+
image_url: string;
|
|
485
|
+
tools: BuiltinToolDto[];
|
|
486
|
+
};
|
|
487
|
+
export type CustomToolkitToolDto = {
|
|
488
|
+
id: string;
|
|
489
|
+
name: string;
|
|
490
|
+
description: string;
|
|
491
|
+
method: string;
|
|
492
|
+
url: string;
|
|
493
|
+
parameters?: {
|
|
494
|
+
[key: string]: any;
|
|
495
|
+
}[] | null;
|
|
496
|
+
request_body?: {
|
|
497
|
+
[key: string]: any;
|
|
498
|
+
} | null;
|
|
499
|
+
response_transformation?: string | null;
|
|
500
|
+
creator_name?: string | null;
|
|
501
|
+
};
|
|
502
|
+
export type CustomToolkitDto = {
|
|
503
|
+
id: string;
|
|
504
|
+
name: string;
|
|
505
|
+
description: string | null;
|
|
506
|
+
avatar: string | null;
|
|
507
|
+
tools: CustomToolkitToolDto[];
|
|
508
|
+
secrets: string[] | null;
|
|
509
|
+
visibility_level: VisibilityLevelEnum;
|
|
510
|
+
creator_name: string;
|
|
511
|
+
is_usable_by_others: boolean;
|
|
512
|
+
};
|
|
513
|
+
export type AgentToolsDto = {
|
|
514
|
+
builtin_toolkits?: BuiltinToolkitDto[];
|
|
515
|
+
custom_toolkits?: CustomToolkitDto[];
|
|
516
|
+
};
|
|
517
|
+
export type LlmSettingsModel = {
|
|
518
|
+
property_key?: string | null;
|
|
519
|
+
property_value?: string | null;
|
|
520
|
+
property_type?: string | null;
|
|
521
|
+
agent_id: string;
|
|
522
|
+
created_by?: string | null;
|
|
523
|
+
created_at?: string | null;
|
|
524
|
+
updated_by?: string | null;
|
|
525
|
+
updated_at?: string | null;
|
|
526
|
+
};
|
|
527
|
+
export type AgentModel = {
|
|
528
|
+
id: string;
|
|
529
|
+
name: string;
|
|
530
|
+
slug: string;
|
|
531
|
+
description?: string | null;
|
|
532
|
+
system_prompt: string;
|
|
533
|
+
visibility_level: string;
|
|
534
|
+
avatar?: string | null;
|
|
535
|
+
"type": string;
|
|
536
|
+
conversation_starter?: string[] | null;
|
|
537
|
+
use_only: boolean;
|
|
538
|
+
detail_mode: boolean;
|
|
539
|
+
mode: AgentMode;
|
|
540
|
+
structured_output?: {
|
|
541
|
+
[key: string]: any;
|
|
542
|
+
} | null;
|
|
543
|
+
model_id?: string | null;
|
|
544
|
+
model_name?: string | null;
|
|
545
|
+
knowledge_sources_config?: KnowledgeSourceConfigModel | null;
|
|
546
|
+
toolkits?: AgentToolsDto | null;
|
|
547
|
+
settings?: LlmSettingsModel[];
|
|
548
|
+
is_sub_agent?: boolean | null;
|
|
549
|
+
created_by?: string | null;
|
|
550
|
+
created_at?: string | null;
|
|
551
|
+
updated_by?: string | null;
|
|
552
|
+
updated_at?: string | null;
|
|
553
|
+
};
|
|
554
|
+
export type UpdateAgentRequest = {
|
|
555
|
+
use_only?: boolean | null;
|
|
556
|
+
/** LLM model name */
|
|
557
|
+
model_name?: string | null;
|
|
558
|
+
/** LLM model id */
|
|
559
|
+
model_id?: string | null;
|
|
560
|
+
/** Agent name */
|
|
561
|
+
name?: string | null;
|
|
562
|
+
/** Agent unique slug */
|
|
563
|
+
slug?: string | null;
|
|
564
|
+
/** Agent description */
|
|
565
|
+
description?: string | null;
|
|
566
|
+
/** Agent avatar image */
|
|
567
|
+
avatar?: string | null;
|
|
568
|
+
/** Agent suggested prompt */
|
|
569
|
+
suggested_prompts?: string[];
|
|
570
|
+
/** System prompt */
|
|
571
|
+
system_prompt?: string | null;
|
|
572
|
+
/** Agent type */
|
|
573
|
+
"type"?: AgentType | null;
|
|
574
|
+
knowledge_sources_config?: KnowledgeSourcesConfigRequest | null;
|
|
575
|
+
builtin_tools_ids?: string[];
|
|
576
|
+
sub_agents_ids?: string[];
|
|
577
|
+
/** Custom tools to assign to the agent */
|
|
578
|
+
custom_tools?: AssignCustomToolsAgentRequest[] | null;
|
|
579
|
+
detail_mode?: boolean | null;
|
|
580
|
+
structured_output?: string | null;
|
|
581
|
+
llm_settings?: {
|
|
582
|
+
[key: string]: any;
|
|
583
|
+
} | null;
|
|
584
|
+
/** Agent mode */
|
|
585
|
+
mode?: AgentMode | null;
|
|
586
|
+
};
|
|
587
|
+
export type ForkAgentRequest = {
|
|
588
|
+
/** Agent slug to fork */
|
|
589
|
+
slug: string;
|
|
590
|
+
name?: string | null;
|
|
591
|
+
};
|
|
592
|
+
export type PublishAgentRequest = {
|
|
593
|
+
use_only?: boolean;
|
|
594
|
+
is_public?: boolean;
|
|
595
|
+
};
|
|
596
|
+
export type ListAgentResponseV2 = {
|
|
597
|
+
id: string;
|
|
598
|
+
name: string;
|
|
599
|
+
slug: string;
|
|
600
|
+
created_by: string | null;
|
|
601
|
+
created_at: string | null;
|
|
602
|
+
visibility_level: string;
|
|
603
|
+
avatar: string | null;
|
|
604
|
+
conversation_starter: string[] | null;
|
|
605
|
+
knowledge_sources_config: KnowledgeSourcesConfig;
|
|
606
|
+
"type"?: string;
|
|
607
|
+
system_prompt?: string;
|
|
608
|
+
creator_name?: string;
|
|
609
|
+
};
|
|
610
|
+
export type ListAgentRequestV3 = {
|
|
611
|
+
/** Agent name to filter the list */
|
|
612
|
+
name?: string | null;
|
|
613
|
+
/** Agent slug to filter the list */
|
|
614
|
+
slug?: string | null;
|
|
615
|
+
/** Paginated param to configure page size */
|
|
616
|
+
size?: number;
|
|
617
|
+
/** Paginated param to configure which page is being requested */
|
|
618
|
+
page?: number;
|
|
619
|
+
/** Filter by a list of agent visibility levels. When provided, overrides the single 'visibility' parameter */
|
|
620
|
+
visibility_list?: (AgentVisibilityLevelEnum | VisibilityLevelEnum)[];
|
|
621
|
+
};
|
|
622
|
+
export type KnowledgeSourcesConfigResponseV3 = {
|
|
623
|
+
knowledge_sources: string[];
|
|
624
|
+
max_number_of_kos?: number;
|
|
625
|
+
relevancy_threshold?: number;
|
|
626
|
+
similarity_function?: string;
|
|
627
|
+
post_processing?: boolean;
|
|
628
|
+
};
|
|
629
|
+
export type AgentResponseV3 = {
|
|
630
|
+
id: string;
|
|
631
|
+
name: string;
|
|
632
|
+
slug: string;
|
|
633
|
+
created_by: string | null;
|
|
634
|
+
created_at: string | null;
|
|
635
|
+
visibility_level: string;
|
|
636
|
+
avatar: string | null;
|
|
637
|
+
suggested_prompts: string[] | null;
|
|
638
|
+
knowledge_sources_config: KnowledgeSourcesConfigResponseV3;
|
|
639
|
+
has_multiagent_tool?: boolean;
|
|
640
|
+
"type"?: string;
|
|
641
|
+
system_prompt?: string;
|
|
642
|
+
creator_name?: string;
|
|
643
|
+
is_favorite?: boolean;
|
|
644
|
+
is_recently_used?: boolean;
|
|
645
|
+
};
|
|
646
|
+
export type PaginatedResponseAgentResponseV3 = {
|
|
647
|
+
total_pages: number;
|
|
648
|
+
items: AgentResponseV3[];
|
|
649
|
+
};
|
|
650
|
+
export type InternalListToolkitsRequest = {
|
|
651
|
+
/** List of toolkit IDs to retrieve */
|
|
652
|
+
toolkit_ids: string[];
|
|
653
|
+
};
|
|
654
|
+
export type InternalDeleteToolkitsRequest = {
|
|
655
|
+
/** List of toolkit IDs to delete */
|
|
656
|
+
toolkit_ids: string[];
|
|
657
|
+
};
|
|
658
|
+
export type InternalToolkitForkRequest = {
|
|
659
|
+
/** List of toolkit IDs to fork */
|
|
660
|
+
toolkit_ids: string[];
|
|
661
|
+
};
|
|
662
|
+
export type ToolkitForkResponse = {
|
|
663
|
+
/** List of successfully forked toolkits */
|
|
664
|
+
forked_toolkits: CustomToolkitSimpleResponse[];
|
|
665
|
+
/** List of toolkit IDs that were already account-level and not forked */
|
|
666
|
+
toolkit_ids_account: string[];
|
|
667
|
+
/** List of toolkit IDs that failed to fork */
|
|
668
|
+
error_ids: string[];
|
|
669
|
+
};
|
|
670
|
+
/**
|
|
671
|
+
* Health Check
|
|
672
|
+
*/
|
|
673
|
+
export function healthCheckHealthzGet(opts?: Oazapfts.RequestOpts) {
|
|
674
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
675
|
+
status: 200;
|
|
676
|
+
data: {
|
|
677
|
+
[key: string]: string;
|
|
678
|
+
};
|
|
679
|
+
} | {
|
|
680
|
+
status: 404;
|
|
681
|
+
}>("/healthz", {
|
|
682
|
+
...opts
|
|
683
|
+
}));
|
|
684
|
+
}
|
|
685
|
+
/**
|
|
686
|
+
* Readyz
|
|
687
|
+
*/
|
|
688
|
+
export function readyzReadyzGet(opts?: Oazapfts.RequestOpts) {
|
|
689
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
690
|
+
status: 200;
|
|
691
|
+
data: {
|
|
692
|
+
[key: string]: string;
|
|
693
|
+
};
|
|
694
|
+
} | {
|
|
695
|
+
status: 404;
|
|
696
|
+
}>("/readyz", {
|
|
697
|
+
...opts
|
|
698
|
+
}));
|
|
699
|
+
}
|
|
700
|
+
/**
|
|
701
|
+
* Get Public Tool Kits
|
|
702
|
+
*/
|
|
703
|
+
export function getPublicToolKitsV1BuiltinToolkitGet({ xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
704
|
+
xAccountId?: string | null;
|
|
705
|
+
xUsername?: string | null;
|
|
706
|
+
xUserId?: string | null;
|
|
707
|
+
xUserFullName?: string | null;
|
|
708
|
+
authorization: string;
|
|
709
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
710
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
711
|
+
status: 200;
|
|
712
|
+
data: BuiltinToolkitResponse[];
|
|
713
|
+
} | {
|
|
714
|
+
status: 404;
|
|
715
|
+
} | {
|
|
716
|
+
status: 422;
|
|
717
|
+
data: HttpValidationError;
|
|
718
|
+
}>("/v1/builtin/toolkit", {
|
|
719
|
+
...opts,
|
|
720
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
721
|
+
"x-account-id": xAccountId,
|
|
722
|
+
"x-username": xUsername,
|
|
723
|
+
"x-user-id": xUserId,
|
|
724
|
+
"x-user-full-name": xUserFullName,
|
|
725
|
+
authorization
|
|
726
|
+
})
|
|
727
|
+
}));
|
|
728
|
+
}
|
|
729
|
+
/**
|
|
730
|
+
* List Toolkits
|
|
731
|
+
*/
|
|
732
|
+
export function listToolkitsV1ToolkitsGet({ visibility, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
733
|
+
visibility?: VisibilityLevelEnum;
|
|
734
|
+
xAccountId?: string | null;
|
|
735
|
+
xUsername?: string | null;
|
|
736
|
+
xUserId?: string | null;
|
|
737
|
+
xUserFullName?: string | null;
|
|
738
|
+
authorization: string;
|
|
739
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
740
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
741
|
+
status: 200;
|
|
742
|
+
data: CustomToolkitSimpleResponse[];
|
|
743
|
+
} | {
|
|
744
|
+
status: 404;
|
|
745
|
+
} | {
|
|
746
|
+
status: 422;
|
|
747
|
+
data: HttpValidationError;
|
|
748
|
+
}>(`/v1/toolkits${QS.query(QS.explode({
|
|
749
|
+
visibility
|
|
750
|
+
}))}`, {
|
|
751
|
+
...opts,
|
|
752
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
753
|
+
"x-account-id": xAccountId,
|
|
754
|
+
"x-username": xUsername,
|
|
755
|
+
"x-user-id": xUserId,
|
|
756
|
+
"x-user-full-name": xUserFullName,
|
|
757
|
+
authorization
|
|
758
|
+
})
|
|
759
|
+
}));
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
* Create Toolkit
|
|
763
|
+
*/
|
|
764
|
+
export function createToolkitV1ToolkitsPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, toolkitRequest }: {
|
|
765
|
+
xAccountId?: string | null;
|
|
766
|
+
xUsername?: string | null;
|
|
767
|
+
xUserId?: string | null;
|
|
768
|
+
xUserFullName?: string | null;
|
|
769
|
+
authorization: string;
|
|
770
|
+
toolkitRequest: ToolkitRequest;
|
|
771
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
772
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
773
|
+
status: 201;
|
|
774
|
+
data: CreatedResponse;
|
|
775
|
+
} | {
|
|
776
|
+
status: 404;
|
|
777
|
+
} | {
|
|
778
|
+
status: 422;
|
|
779
|
+
data: HttpValidationError;
|
|
780
|
+
}>("/v1/toolkits", oazapfts.json({
|
|
781
|
+
...opts,
|
|
782
|
+
method: "POST",
|
|
783
|
+
body: toolkitRequest,
|
|
784
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
785
|
+
"x-account-id": xAccountId,
|
|
786
|
+
"x-username": xUsername,
|
|
787
|
+
"x-user-id": xUserId,
|
|
788
|
+
"x-user-full-name": xUserFullName,
|
|
789
|
+
authorization
|
|
790
|
+
})
|
|
791
|
+
})));
|
|
792
|
+
}
|
|
793
|
+
/**
|
|
794
|
+
* Get Toolkit
|
|
795
|
+
*/
|
|
796
|
+
export function getToolkitV1ToolkitsToolkitIdGet({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
797
|
+
toolkitId: string;
|
|
798
|
+
xAccountId?: string | null;
|
|
799
|
+
xUsername?: string | null;
|
|
800
|
+
xUserId?: string | null;
|
|
801
|
+
xUserFullName?: string | null;
|
|
802
|
+
authorization: string;
|
|
803
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
804
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
805
|
+
status: 200;
|
|
806
|
+
data: CustomToolkitResponse;
|
|
807
|
+
} | {
|
|
808
|
+
status: 404;
|
|
809
|
+
} | {
|
|
810
|
+
status: 422;
|
|
811
|
+
data: HttpValidationError;
|
|
812
|
+
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}`, {
|
|
813
|
+
...opts,
|
|
814
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
815
|
+
"x-account-id": xAccountId,
|
|
816
|
+
"x-username": xUsername,
|
|
817
|
+
"x-user-id": xUserId,
|
|
818
|
+
"x-user-full-name": xUserFullName,
|
|
819
|
+
authorization
|
|
820
|
+
})
|
|
821
|
+
}));
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* Update Toolkit
|
|
825
|
+
*/
|
|
826
|
+
export function updateToolkitV1ToolkitsToolkitIdPatch({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, toolkitUpdateRequest }: {
|
|
827
|
+
toolkitId: string;
|
|
828
|
+
xAccountId?: string | null;
|
|
829
|
+
xUsername?: string | null;
|
|
830
|
+
xUserId?: string | null;
|
|
831
|
+
xUserFullName?: string | null;
|
|
832
|
+
authorization: string;
|
|
833
|
+
toolkitUpdateRequest: ToolkitUpdateRequest;
|
|
834
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
835
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
836
|
+
status: 204;
|
|
837
|
+
} | {
|
|
838
|
+
status: 404;
|
|
839
|
+
} | {
|
|
840
|
+
status: 422;
|
|
841
|
+
data: HttpValidationError;
|
|
842
|
+
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}`, oazapfts.json({
|
|
843
|
+
...opts,
|
|
844
|
+
method: "PATCH",
|
|
845
|
+
body: toolkitUpdateRequest,
|
|
846
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
847
|
+
"x-account-id": xAccountId,
|
|
848
|
+
"x-username": xUsername,
|
|
849
|
+
"x-user-id": xUserId,
|
|
850
|
+
"x-user-full-name": xUserFullName,
|
|
851
|
+
authorization
|
|
852
|
+
})
|
|
853
|
+
})));
|
|
854
|
+
}
|
|
855
|
+
/**
|
|
856
|
+
* Delete Toolkit
|
|
857
|
+
*/
|
|
858
|
+
export function deleteToolkitV1ToolkitsToolkitIdDelete({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
859
|
+
toolkitId: string;
|
|
860
|
+
xAccountId?: string | null;
|
|
861
|
+
xUsername?: string | null;
|
|
862
|
+
xUserId?: string | null;
|
|
863
|
+
xUserFullName?: string | null;
|
|
864
|
+
authorization: string;
|
|
865
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
866
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
867
|
+
status: 204;
|
|
868
|
+
} | {
|
|
869
|
+
status: 404;
|
|
870
|
+
} | {
|
|
871
|
+
status: 422;
|
|
872
|
+
data: HttpValidationError;
|
|
873
|
+
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}`, {
|
|
874
|
+
...opts,
|
|
875
|
+
method: "DELETE",
|
|
876
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
877
|
+
"x-account-id": xAccountId,
|
|
878
|
+
"x-username": xUsername,
|
|
879
|
+
"x-user-id": xUserId,
|
|
880
|
+
"x-user-full-name": xUserFullName,
|
|
881
|
+
authorization
|
|
882
|
+
})
|
|
883
|
+
}));
|
|
884
|
+
}
|
|
885
|
+
/**
|
|
886
|
+
* Fork Toolkit
|
|
887
|
+
*/
|
|
888
|
+
export function forkToolkitV1ToolkitsToolkitIdForkPost({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, toolkitForkRequest }: {
|
|
889
|
+
toolkitId: string;
|
|
890
|
+
xAccountId?: string | null;
|
|
891
|
+
xUsername?: string | null;
|
|
892
|
+
xUserId?: string | null;
|
|
893
|
+
xUserFullName?: string | null;
|
|
894
|
+
authorization: string;
|
|
895
|
+
toolkitForkRequest: ToolkitForkRequest;
|
|
896
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
897
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
898
|
+
status: 201;
|
|
899
|
+
data: CustomToolkitResponse;
|
|
900
|
+
} | {
|
|
901
|
+
status: 404;
|
|
902
|
+
} | {
|
|
903
|
+
status: 422;
|
|
904
|
+
data: HttpValidationError;
|
|
905
|
+
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/fork`, oazapfts.json({
|
|
906
|
+
...opts,
|
|
907
|
+
method: "POST",
|
|
908
|
+
body: toolkitForkRequest,
|
|
909
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
910
|
+
"x-account-id": xAccountId,
|
|
911
|
+
"x-username": xUsername,
|
|
912
|
+
"x-user-id": xUserId,
|
|
913
|
+
"x-user-full-name": xUserFullName,
|
|
914
|
+
authorization
|
|
915
|
+
})
|
|
916
|
+
})));
|
|
917
|
+
}
|
|
918
|
+
/**
|
|
919
|
+
* Share Toolkit
|
|
920
|
+
*/
|
|
921
|
+
export function shareToolkitV1ToolkitsToolkitIdSharePost({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
922
|
+
toolkitId: string;
|
|
923
|
+
xAccountId?: string | null;
|
|
924
|
+
xUsername?: string | null;
|
|
925
|
+
xUserId?: string | null;
|
|
926
|
+
xUserFullName?: string | null;
|
|
927
|
+
authorization: string;
|
|
928
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
929
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
930
|
+
status: 204;
|
|
931
|
+
} | {
|
|
932
|
+
status: 404;
|
|
933
|
+
} | {
|
|
934
|
+
status: 422;
|
|
935
|
+
data: HttpValidationError;
|
|
936
|
+
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/share`, {
|
|
937
|
+
...opts,
|
|
938
|
+
method: "POST",
|
|
939
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
940
|
+
"x-account-id": xAccountId,
|
|
941
|
+
"x-username": xUsername,
|
|
942
|
+
"x-user-id": xUserId,
|
|
943
|
+
"x-user-full-name": xUserFullName,
|
|
944
|
+
authorization
|
|
945
|
+
})
|
|
946
|
+
}));
|
|
947
|
+
}
|
|
948
|
+
/**
|
|
949
|
+
* Publish Toolkit
|
|
950
|
+
*/
|
|
951
|
+
export function publishToolkitV1ToolkitsToolkitIdPublishPost({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
952
|
+
toolkitId: string;
|
|
953
|
+
xAccountId?: string | null;
|
|
954
|
+
xUsername?: string | null;
|
|
955
|
+
xUserId?: string | null;
|
|
956
|
+
xUserFullName?: string | null;
|
|
957
|
+
authorization: string;
|
|
958
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
959
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
960
|
+
status: 204;
|
|
961
|
+
} | {
|
|
962
|
+
status: 404;
|
|
963
|
+
} | {
|
|
964
|
+
status: 422;
|
|
965
|
+
data: HttpValidationError;
|
|
966
|
+
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/publish`, {
|
|
967
|
+
...opts,
|
|
968
|
+
method: "POST",
|
|
969
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
970
|
+
"x-account-id": xAccountId,
|
|
971
|
+
"x-username": xUsername,
|
|
972
|
+
"x-user-id": xUserId,
|
|
973
|
+
"x-user-full-name": xUserFullName,
|
|
974
|
+
authorization
|
|
975
|
+
})
|
|
976
|
+
}));
|
|
977
|
+
}
|
|
978
|
+
/**
|
|
979
|
+
* Get Toolkit Tool
|
|
980
|
+
*/
|
|
981
|
+
export function getToolkitToolV1ToolkitsToolkitIdToolsToolIdGet({ toolkitId, toolId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
982
|
+
toolkitId: string;
|
|
983
|
+
toolId: string;
|
|
984
|
+
xAccountId?: string | null;
|
|
985
|
+
xUsername?: string | null;
|
|
986
|
+
xUserId?: string | null;
|
|
987
|
+
xUserFullName?: string | null;
|
|
988
|
+
authorization: string;
|
|
989
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
990
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
991
|
+
status: 200;
|
|
992
|
+
data: CustomToolkitToolResponse;
|
|
993
|
+
} | {
|
|
994
|
+
status: 404;
|
|
995
|
+
} | {
|
|
996
|
+
status: 422;
|
|
997
|
+
data: HttpValidationError;
|
|
998
|
+
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/tools/${encodeURIComponent(toolId)}`, {
|
|
999
|
+
...opts,
|
|
1000
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1001
|
+
"x-account-id": xAccountId,
|
|
1002
|
+
"x-username": xUsername,
|
|
1003
|
+
"x-user-id": xUserId,
|
|
1004
|
+
"x-user-full-name": xUserFullName,
|
|
1005
|
+
authorization
|
|
1006
|
+
})
|
|
1007
|
+
}));
|
|
1008
|
+
}
|
|
1009
|
+
/**
|
|
1010
|
+
* Edit Toolkit Tool
|
|
1011
|
+
*/
|
|
1012
|
+
export function editToolkitToolV1ToolkitsToolkitIdToolsToolIdPut({ toolkitId, toolId, xAccountId, xUsername, xUserId, xUserFullName, authorization, customToolRequest }: {
|
|
1013
|
+
toolkitId: string;
|
|
1014
|
+
toolId: string;
|
|
1015
|
+
xAccountId?: string | null;
|
|
1016
|
+
xUsername?: string | null;
|
|
1017
|
+
xUserId?: string | null;
|
|
1018
|
+
xUserFullName?: string | null;
|
|
1019
|
+
authorization: string;
|
|
1020
|
+
customToolRequest: CustomToolRequest;
|
|
1021
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1022
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1023
|
+
status: 204;
|
|
1024
|
+
} | {
|
|
1025
|
+
status: 404;
|
|
1026
|
+
} | {
|
|
1027
|
+
status: 422;
|
|
1028
|
+
data: HttpValidationError;
|
|
1029
|
+
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/tools/${encodeURIComponent(toolId)}`, oazapfts.json({
|
|
1030
|
+
...opts,
|
|
1031
|
+
method: "PUT",
|
|
1032
|
+
body: customToolRequest,
|
|
1033
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1034
|
+
"x-account-id": xAccountId,
|
|
1035
|
+
"x-username": xUsername,
|
|
1036
|
+
"x-user-id": xUserId,
|
|
1037
|
+
"x-user-full-name": xUserFullName,
|
|
1038
|
+
authorization
|
|
1039
|
+
})
|
|
1040
|
+
})));
|
|
1041
|
+
}
|
|
1042
|
+
/**
|
|
1043
|
+
* Create Toolkit Tools
|
|
1044
|
+
*/
|
|
1045
|
+
export function createToolkitToolsV1ToolkitsToolkitIdToolsPost({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, customToolsRequest }: {
|
|
1046
|
+
toolkitId: string;
|
|
1047
|
+
xAccountId?: string | null;
|
|
1048
|
+
xUsername?: string | null;
|
|
1049
|
+
xUserId?: string | null;
|
|
1050
|
+
xUserFullName?: string | null;
|
|
1051
|
+
authorization: string;
|
|
1052
|
+
customToolsRequest: CustomToolsRequest;
|
|
1053
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1054
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1055
|
+
status: 204;
|
|
1056
|
+
} | {
|
|
1057
|
+
status: 404;
|
|
1058
|
+
} | {
|
|
1059
|
+
status: 422;
|
|
1060
|
+
data: HttpValidationError;
|
|
1061
|
+
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/tools`, oazapfts.json({
|
|
1062
|
+
...opts,
|
|
1063
|
+
method: "POST",
|
|
1064
|
+
body: customToolsRequest,
|
|
1065
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1066
|
+
"x-account-id": xAccountId,
|
|
1067
|
+
"x-username": xUsername,
|
|
1068
|
+
"x-user-id": xUserId,
|
|
1069
|
+
"x-user-full-name": xUserFullName,
|
|
1070
|
+
authorization
|
|
1071
|
+
})
|
|
1072
|
+
})));
|
|
1073
|
+
}
|
|
1074
|
+
/**
|
|
1075
|
+
* Delete Toolkit Tools
|
|
1076
|
+
*/
|
|
1077
|
+
export function deleteToolkitToolsV1ToolkitsToolkitIdToolsDelete({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, deleteToolsRequest }: {
|
|
1078
|
+
toolkitId: string;
|
|
1079
|
+
xAccountId?: string | null;
|
|
1080
|
+
xUsername?: string | null;
|
|
1081
|
+
xUserId?: string | null;
|
|
1082
|
+
xUserFullName?: string | null;
|
|
1083
|
+
authorization: string;
|
|
1084
|
+
deleteToolsRequest: DeleteToolsRequest;
|
|
1085
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1086
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1087
|
+
status: 204;
|
|
1088
|
+
} | {
|
|
1089
|
+
status: 404;
|
|
1090
|
+
} | {
|
|
1091
|
+
status: 422;
|
|
1092
|
+
data: HttpValidationError;
|
|
1093
|
+
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/tools`, oazapfts.json({
|
|
1094
|
+
...opts,
|
|
1095
|
+
method: "DELETE",
|
|
1096
|
+
body: deleteToolsRequest,
|
|
1097
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1098
|
+
"x-account-id": xAccountId,
|
|
1099
|
+
"x-username": xUsername,
|
|
1100
|
+
"x-user-id": xUserId,
|
|
1101
|
+
"x-user-full-name": xUserFullName,
|
|
1102
|
+
authorization
|
|
1103
|
+
})
|
|
1104
|
+
})));
|
|
1105
|
+
}
|
|
1106
|
+
/**
|
|
1107
|
+
* Split Uploaded File Preview
|
|
1108
|
+
*/
|
|
1109
|
+
export function splitUploadedFilePreviewV1ToolkitsToolsPreviewFileUploadIdGet({ fileUploadId, authorization, xAccountId, xUsername, xUserId, xUserFullName, authorizationHeader }: {
|
|
1110
|
+
fileUploadId: string;
|
|
1111
|
+
authorization: string;
|
|
1112
|
+
xAccountId?: string | null;
|
|
1113
|
+
xUsername?: string | null;
|
|
1114
|
+
xUserId?: string | null;
|
|
1115
|
+
xUserFullName?: string | null;
|
|
1116
|
+
authorizationHeader: string;
|
|
1117
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1118
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1119
|
+
status: 200;
|
|
1120
|
+
data: any;
|
|
1121
|
+
} | {
|
|
1122
|
+
status: 404;
|
|
1123
|
+
} | {
|
|
1124
|
+
status: 422;
|
|
1125
|
+
data: HttpValidationError;
|
|
1126
|
+
}>(`/v1/toolkits/tools/preview/${encodeURIComponent(fileUploadId)}`, {
|
|
1127
|
+
...opts,
|
|
1128
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1129
|
+
Authorization: authorization,
|
|
1130
|
+
"x-account-id": xAccountId,
|
|
1131
|
+
"x-username": xUsername,
|
|
1132
|
+
"x-user-id": xUserId,
|
|
1133
|
+
"x-user-full-name": xUserFullName,
|
|
1134
|
+
authorization: authorizationHeader
|
|
1135
|
+
})
|
|
1136
|
+
}));
|
|
1137
|
+
}
|
|
1138
|
+
/**
|
|
1139
|
+
* List Agents Using Tools
|
|
1140
|
+
*/
|
|
1141
|
+
export function listAgentsUsingToolsV1ToolkitsToolkitIdToolsAgentsPost({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, listAgentsUsingToolsRequest }: {
|
|
1142
|
+
toolkitId: string;
|
|
1143
|
+
xAccountId?: string | null;
|
|
1144
|
+
xUsername?: string | null;
|
|
1145
|
+
xUserId?: string | null;
|
|
1146
|
+
xUserFullName?: string | null;
|
|
1147
|
+
authorization: string;
|
|
1148
|
+
listAgentsUsingToolsRequest: ListAgentsUsingToolsRequest;
|
|
1149
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1150
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1151
|
+
status: 200;
|
|
1152
|
+
data: AgentUsingToolsResponse[];
|
|
1153
|
+
} | {
|
|
1154
|
+
status: 404;
|
|
1155
|
+
} | {
|
|
1156
|
+
status: 422;
|
|
1157
|
+
data: HttpValidationError;
|
|
1158
|
+
}>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/tools/agents`, oazapfts.json({
|
|
1159
|
+
...opts,
|
|
1160
|
+
method: "POST",
|
|
1161
|
+
body: listAgentsUsingToolsRequest,
|
|
1162
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1163
|
+
"x-account-id": xAccountId,
|
|
1164
|
+
"x-username": xUsername,
|
|
1165
|
+
"x-user-id": xUserId,
|
|
1166
|
+
"x-user-full-name": xUserFullName,
|
|
1167
|
+
authorization
|
|
1168
|
+
})
|
|
1169
|
+
})));
|
|
1170
|
+
}
|
|
1171
|
+
/**
|
|
1172
|
+
* Assign Tools
|
|
1173
|
+
*/
|
|
1174
|
+
export function assignToolsV1AgentsAgentIdToolsPost({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, assignToolsToAgentRequest }: {
|
|
1175
|
+
agentId: string;
|
|
1176
|
+
isPublic?: boolean;
|
|
1177
|
+
xAccountId?: string | null;
|
|
1178
|
+
xUsername?: string | null;
|
|
1179
|
+
xUserId?: string | null;
|
|
1180
|
+
xUserFullName?: string | null;
|
|
1181
|
+
authorization: string;
|
|
1182
|
+
assignToolsToAgentRequest: AssignToolsToAgentRequest;
|
|
1183
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1184
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1185
|
+
status: 204;
|
|
1186
|
+
} | {
|
|
1187
|
+
status: 404;
|
|
1188
|
+
} | {
|
|
1189
|
+
status: 422;
|
|
1190
|
+
data: HttpValidationError;
|
|
1191
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/tools${QS.query(QS.explode({
|
|
1192
|
+
is_public: isPublic
|
|
1193
|
+
}))}`, oazapfts.json({
|
|
1194
|
+
...opts,
|
|
1195
|
+
method: "POST",
|
|
1196
|
+
body: assignToolsToAgentRequest,
|
|
1197
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1198
|
+
"x-account-id": xAccountId,
|
|
1199
|
+
"x-username": xUsername,
|
|
1200
|
+
"x-user-id": xUserId,
|
|
1201
|
+
"x-user-full-name": xUserFullName,
|
|
1202
|
+
authorization
|
|
1203
|
+
})
|
|
1204
|
+
})));
|
|
1205
|
+
}
|
|
1206
|
+
/**
|
|
1207
|
+
* List Tools
|
|
1208
|
+
*/
|
|
1209
|
+
export function listToolsV1AgentsAgentIdToolsGet({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1210
|
+
agentId: string;
|
|
1211
|
+
isPublic?: boolean;
|
|
1212
|
+
xAccountId?: string | null;
|
|
1213
|
+
xUsername?: string | null;
|
|
1214
|
+
xUserId?: string | null;
|
|
1215
|
+
xUserFullName?: string | null;
|
|
1216
|
+
authorization: string;
|
|
1217
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1218
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1219
|
+
status: 200;
|
|
1220
|
+
data: AgentToolsResponse;
|
|
1221
|
+
} | {
|
|
1222
|
+
status: 404;
|
|
1223
|
+
} | {
|
|
1224
|
+
status: 422;
|
|
1225
|
+
data: HttpValidationError;
|
|
1226
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/tools${QS.query(QS.explode({
|
|
1227
|
+
is_public: isPublic
|
|
1228
|
+
}))}`, {
|
|
1229
|
+
...opts,
|
|
1230
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1231
|
+
"x-account-id": xAccountId,
|
|
1232
|
+
"x-username": xUsername,
|
|
1233
|
+
"x-user-id": xUserId,
|
|
1234
|
+
"x-user-full-name": xUserFullName,
|
|
1235
|
+
authorization
|
|
1236
|
+
})
|
|
1237
|
+
}));
|
|
1238
|
+
}
|
|
1239
|
+
/**
|
|
1240
|
+
* Delete Tools
|
|
1241
|
+
*/
|
|
1242
|
+
export function deleteToolsV1AgentsAgentIdToolsDelete({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1243
|
+
agentId: string;
|
|
1244
|
+
isPublic?: boolean;
|
|
1245
|
+
xAccountId?: string | null;
|
|
1246
|
+
xUsername?: string | null;
|
|
1247
|
+
xUserId?: string | null;
|
|
1248
|
+
xUserFullName?: string | null;
|
|
1249
|
+
authorization: string;
|
|
1250
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1251
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1252
|
+
status: 204;
|
|
1253
|
+
} | {
|
|
1254
|
+
status: 404;
|
|
1255
|
+
} | {
|
|
1256
|
+
status: 422;
|
|
1257
|
+
data: HttpValidationError;
|
|
1258
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/tools${QS.query(QS.explode({
|
|
1259
|
+
is_public: isPublic
|
|
1260
|
+
}))}`, {
|
|
1261
|
+
...opts,
|
|
1262
|
+
method: "DELETE",
|
|
1263
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1264
|
+
"x-account-id": xAccountId,
|
|
1265
|
+
"x-username": xUsername,
|
|
1266
|
+
"x-user-id": xUserId,
|
|
1267
|
+
"x-user-full-name": xUserFullName,
|
|
1268
|
+
authorization
|
|
1269
|
+
})
|
|
1270
|
+
}));
|
|
1271
|
+
}
|
|
1272
|
+
/**
|
|
1273
|
+
* List Tools By Agent For Schema
|
|
1274
|
+
*/
|
|
1275
|
+
export function listToolsByAgentForSchemaV1AgentsAgentIdToolsSchemaSchemaGet({ agentId, schema, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1276
|
+
agentId: string;
|
|
1277
|
+
schema: SchemaEnum;
|
|
1278
|
+
isPublic?: boolean;
|
|
1279
|
+
xAccountId?: string | null;
|
|
1280
|
+
xUsername?: string | null;
|
|
1281
|
+
xUserId?: string | null;
|
|
1282
|
+
xUserFullName?: string | null;
|
|
1283
|
+
authorization: string;
|
|
1284
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1285
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1286
|
+
status: 200;
|
|
1287
|
+
data: (OpenAiTool | {
|
|
1288
|
+
[key: string]: any;
|
|
1289
|
+
})[];
|
|
1290
|
+
} | {
|
|
1291
|
+
status: 404;
|
|
1292
|
+
} | {
|
|
1293
|
+
status: 422;
|
|
1294
|
+
data: HttpValidationError;
|
|
1295
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/tools/schema/${encodeURIComponent(schema)}${QS.query(QS.explode({
|
|
1296
|
+
is_public: isPublic
|
|
1297
|
+
}))}`, {
|
|
1298
|
+
...opts,
|
|
1299
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1300
|
+
"x-account-id": xAccountId,
|
|
1301
|
+
"x-username": xUsername,
|
|
1302
|
+
"x-user-id": xUserId,
|
|
1303
|
+
"x-user-full-name": xUserFullName,
|
|
1304
|
+
authorization
|
|
1305
|
+
})
|
|
1306
|
+
}));
|
|
1307
|
+
}
|
|
1308
|
+
/**
|
|
1309
|
+
* Execute Tool
|
|
1310
|
+
*/
|
|
1311
|
+
export function executeToolV1AgentsToolsAgentToolIdExecutePost({ agentToolId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, executeAgentToolRequest }: {
|
|
1312
|
+
agentToolId: string;
|
|
1313
|
+
isPublic?: boolean;
|
|
1314
|
+
xAccountId?: string | null;
|
|
1315
|
+
xUsername?: string | null;
|
|
1316
|
+
xUserId?: string | null;
|
|
1317
|
+
xUserFullName?: string | null;
|
|
1318
|
+
authorization: string;
|
|
1319
|
+
executeAgentToolRequest: ExecuteAgentToolRequest;
|
|
1320
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1321
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1322
|
+
status: 200;
|
|
1323
|
+
data: AgentToolExecutionResponse;
|
|
1324
|
+
} | {
|
|
1325
|
+
status: 404;
|
|
1326
|
+
} | {
|
|
1327
|
+
status: 422;
|
|
1328
|
+
data: HttpValidationError;
|
|
1329
|
+
}>(`/v1/agents/tools/${encodeURIComponent(agentToolId)}/execute${QS.query(QS.explode({
|
|
1330
|
+
is_public: isPublic
|
|
1331
|
+
}))}`, oazapfts.json({
|
|
1332
|
+
...opts,
|
|
1333
|
+
method: "POST",
|
|
1334
|
+
body: executeAgentToolRequest,
|
|
1335
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1336
|
+
"x-account-id": xAccountId,
|
|
1337
|
+
"x-username": xUsername,
|
|
1338
|
+
"x-user-id": xUserId,
|
|
1339
|
+
"x-user-full-name": xUserFullName,
|
|
1340
|
+
authorization
|
|
1341
|
+
})
|
|
1342
|
+
})));
|
|
1343
|
+
}
|
|
1344
|
+
/**
|
|
1345
|
+
* List Agents
|
|
1346
|
+
*/
|
|
1347
|
+
export function listAgentsV1AgentsGet({ isPublic, name, slug, visibility, size, page, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1348
|
+
isPublic?: boolean;
|
|
1349
|
+
name?: string | null;
|
|
1350
|
+
slug?: string | null;
|
|
1351
|
+
visibility?: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
1352
|
+
size?: number;
|
|
1353
|
+
page?: number;
|
|
1354
|
+
xAccountId?: string | null;
|
|
1355
|
+
xUsername?: string | null;
|
|
1356
|
+
xUserId?: string | null;
|
|
1357
|
+
xUserFullName?: string | null;
|
|
1358
|
+
authorization: string;
|
|
1359
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1360
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1361
|
+
status: 200;
|
|
1362
|
+
data: ListAgentResponse[];
|
|
1363
|
+
} | {
|
|
1364
|
+
status: 404;
|
|
1365
|
+
} | {
|
|
1366
|
+
status: 422;
|
|
1367
|
+
data: HttpValidationError;
|
|
1368
|
+
}>(`/v1/agents${QS.query(QS.explode({
|
|
1369
|
+
is_public: isPublic,
|
|
1370
|
+
name,
|
|
1371
|
+
slug,
|
|
1372
|
+
visibility,
|
|
1373
|
+
size,
|
|
1374
|
+
page
|
|
1375
|
+
}))}`, {
|
|
1376
|
+
...opts,
|
|
1377
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1378
|
+
"x-account-id": xAccountId,
|
|
1379
|
+
"x-username": xUsername,
|
|
1380
|
+
"x-user-id": xUserId,
|
|
1381
|
+
"x-user-full-name": xUserFullName,
|
|
1382
|
+
authorization
|
|
1383
|
+
})
|
|
1384
|
+
}));
|
|
1385
|
+
}
|
|
1386
|
+
/**
|
|
1387
|
+
* Create Agent
|
|
1388
|
+
*/
|
|
1389
|
+
export function createAgentV1AgentsPost({ isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, newAgentRequest }: {
|
|
1390
|
+
isPublic?: boolean;
|
|
1391
|
+
xAccountId?: string | null;
|
|
1392
|
+
xUsername?: string | null;
|
|
1393
|
+
xUserId?: string | null;
|
|
1394
|
+
xUserFullName?: string | null;
|
|
1395
|
+
authorization: string;
|
|
1396
|
+
newAgentRequest: NewAgentRequest;
|
|
1397
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1398
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1399
|
+
status: 201;
|
|
1400
|
+
data: CreatedResponse;
|
|
1401
|
+
} | {
|
|
1402
|
+
status: 404;
|
|
1403
|
+
} | {
|
|
1404
|
+
status: 422;
|
|
1405
|
+
data: HttpValidationError;
|
|
1406
|
+
}>(`/v1/agents${QS.query(QS.explode({
|
|
1407
|
+
is_public: isPublic
|
|
1408
|
+
}))}`, oazapfts.json({
|
|
1409
|
+
...opts,
|
|
1410
|
+
method: "POST",
|
|
1411
|
+
body: newAgentRequest,
|
|
1412
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1413
|
+
"x-account-id": xAccountId,
|
|
1414
|
+
"x-username": xUsername,
|
|
1415
|
+
"x-user-id": xUserId,
|
|
1416
|
+
"x-user-full-name": xUserFullName,
|
|
1417
|
+
authorization
|
|
1418
|
+
})
|
|
1419
|
+
})));
|
|
1420
|
+
}
|
|
1421
|
+
/**
|
|
1422
|
+
* Search Agents
|
|
1423
|
+
*/
|
|
1424
|
+
export function searchAgentsV1AgentsSearchPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, searchAgentsRequest }: {
|
|
1425
|
+
xAccountId?: string | null;
|
|
1426
|
+
xUsername?: string | null;
|
|
1427
|
+
xUserId?: string | null;
|
|
1428
|
+
xUserFullName?: string | null;
|
|
1429
|
+
authorization: string;
|
|
1430
|
+
searchAgentsRequest: SearchAgentsRequest;
|
|
1431
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1432
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1433
|
+
status: 200;
|
|
1434
|
+
data: ListAgentResponse[];
|
|
1435
|
+
} | {
|
|
1436
|
+
status: 404;
|
|
1437
|
+
} | {
|
|
1438
|
+
status: 422;
|
|
1439
|
+
data: HttpValidationError;
|
|
1440
|
+
}>("/v1/agents/search", oazapfts.json({
|
|
1441
|
+
...opts,
|
|
1442
|
+
method: "POST",
|
|
1443
|
+
body: searchAgentsRequest,
|
|
1444
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1445
|
+
"x-account-id": xAccountId,
|
|
1446
|
+
"x-username": xUsername,
|
|
1447
|
+
"x-user-id": xUserId,
|
|
1448
|
+
"x-user-full-name": xUserFullName,
|
|
1449
|
+
authorization
|
|
1450
|
+
})
|
|
1451
|
+
})));
|
|
1452
|
+
}
|
|
1453
|
+
/**
|
|
1454
|
+
* Workspace Fork
|
|
1455
|
+
*/
|
|
1456
|
+
export function workspaceForkV1AgentsWorkspaceForkPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, workspaceForkRequest }: {
|
|
1457
|
+
xAccountId?: string | null;
|
|
1458
|
+
xUsername?: string | null;
|
|
1459
|
+
xUserId?: string | null;
|
|
1460
|
+
xUserFullName?: string | null;
|
|
1461
|
+
authorization: string;
|
|
1462
|
+
workspaceForkRequest: WorkspaceForkRequest;
|
|
1463
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1464
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1465
|
+
status: 201;
|
|
1466
|
+
data: WorkspaceForkAgent;
|
|
1467
|
+
} | {
|
|
1468
|
+
status: 404;
|
|
1469
|
+
} | {
|
|
1470
|
+
status: 422;
|
|
1471
|
+
data: HttpValidationError;
|
|
1472
|
+
}>("/v1/agents/workspace/fork", oazapfts.json({
|
|
1473
|
+
...opts,
|
|
1474
|
+
method: "POST",
|
|
1475
|
+
body: workspaceForkRequest,
|
|
1476
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1477
|
+
"x-account-id": xAccountId,
|
|
1478
|
+
"x-username": xUsername,
|
|
1479
|
+
"x-user-id": xUserId,
|
|
1480
|
+
"x-user-full-name": xUserFullName,
|
|
1481
|
+
authorization
|
|
1482
|
+
})
|
|
1483
|
+
})));
|
|
1484
|
+
}
|
|
1485
|
+
/**
|
|
1486
|
+
* Delete Workspace Fork
|
|
1487
|
+
*/
|
|
1488
|
+
export function deleteWorkspaceForkV1AgentsWorkspaceForkDelete({ xAccountId, xUsername, xUserId, xUserFullName, authorization, workspaceDeleteRequest }: {
|
|
1489
|
+
xAccountId?: string | null;
|
|
1490
|
+
xUsername?: string | null;
|
|
1491
|
+
xUserId?: string | null;
|
|
1492
|
+
xUserFullName?: string | null;
|
|
1493
|
+
authorization: string;
|
|
1494
|
+
workspaceDeleteRequest: WorkspaceDeleteRequest;
|
|
1495
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1496
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1497
|
+
status: 204;
|
|
1498
|
+
} | {
|
|
1499
|
+
status: 404;
|
|
1500
|
+
} | {
|
|
1501
|
+
status: 422;
|
|
1502
|
+
data: HttpValidationError;
|
|
1503
|
+
}>("/v1/agents/workspace/fork", oazapfts.json({
|
|
1504
|
+
...opts,
|
|
1505
|
+
method: "DELETE",
|
|
1506
|
+
body: workspaceDeleteRequest,
|
|
1507
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1508
|
+
"x-account-id": xAccountId,
|
|
1509
|
+
"x-username": xUsername,
|
|
1510
|
+
"x-user-id": xUserId,
|
|
1511
|
+
"x-user-full-name": xUserFullName,
|
|
1512
|
+
authorization
|
|
1513
|
+
})
|
|
1514
|
+
})));
|
|
1515
|
+
}
|
|
1516
|
+
/**
|
|
1517
|
+
* List Workspace
|
|
1518
|
+
*/
|
|
1519
|
+
export function listWorkspaceV1AgentsWorkspaceListPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, workspaceListRequest }: {
|
|
1520
|
+
xAccountId?: string | null;
|
|
1521
|
+
xUsername?: string | null;
|
|
1522
|
+
xUserId?: string | null;
|
|
1523
|
+
xUserFullName?: string | null;
|
|
1524
|
+
authorization: string;
|
|
1525
|
+
workspaceListRequest: WorkspaceListRequest;
|
|
1526
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1527
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1528
|
+
status: 200;
|
|
1529
|
+
data: ListAgentResponse[];
|
|
1530
|
+
} | {
|
|
1531
|
+
status: 404;
|
|
1532
|
+
} | {
|
|
1533
|
+
status: 422;
|
|
1534
|
+
data: HttpValidationError;
|
|
1535
|
+
}>("/v1/agents/workspace/list", oazapfts.json({
|
|
1536
|
+
...opts,
|
|
1537
|
+
method: "POST",
|
|
1538
|
+
body: workspaceListRequest,
|
|
1539
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1540
|
+
"x-account-id": xAccountId,
|
|
1541
|
+
"x-username": xUsername,
|
|
1542
|
+
"x-user-id": xUserId,
|
|
1543
|
+
"x-user-full-name": xUserFullName,
|
|
1544
|
+
authorization
|
|
1545
|
+
})
|
|
1546
|
+
})));
|
|
1547
|
+
}
|
|
1548
|
+
/**
|
|
1549
|
+
* List Agent Dependencies
|
|
1550
|
+
*/
|
|
1551
|
+
export function listAgentDependenciesV1AgentsDependenciesPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, agentDependenciesRequest }: {
|
|
1552
|
+
xAccountId?: string | null;
|
|
1553
|
+
xUsername?: string | null;
|
|
1554
|
+
xUserId?: string | null;
|
|
1555
|
+
xUserFullName?: string | null;
|
|
1556
|
+
authorization: string;
|
|
1557
|
+
agentDependenciesRequest: AgentDependenciesRequest;
|
|
1558
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1559
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1560
|
+
status: 200;
|
|
1561
|
+
data: WorkspaceAgentDependencies;
|
|
1562
|
+
} | {
|
|
1563
|
+
status: 404;
|
|
1564
|
+
} | {
|
|
1565
|
+
status: 422;
|
|
1566
|
+
data: HttpValidationError;
|
|
1567
|
+
}>("/v1/agents/dependencies", oazapfts.json({
|
|
1568
|
+
...opts,
|
|
1569
|
+
method: "POST",
|
|
1570
|
+
body: agentDependenciesRequest,
|
|
1571
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1572
|
+
"x-account-id": xAccountId,
|
|
1573
|
+
"x-username": xUsername,
|
|
1574
|
+
"x-user-id": xUserId,
|
|
1575
|
+
"x-user-full-name": xUserFullName,
|
|
1576
|
+
authorization
|
|
1577
|
+
})
|
|
1578
|
+
})));
|
|
1579
|
+
}
|
|
1580
|
+
/**
|
|
1581
|
+
* List Multi Agents
|
|
1582
|
+
*/
|
|
1583
|
+
export function listMultiAgentsV1AgentsMultiAgentsGet({ name, slug, visibility, size, page, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1584
|
+
name?: string | null;
|
|
1585
|
+
slug?: string | null;
|
|
1586
|
+
visibility?: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
1587
|
+
size?: number;
|
|
1588
|
+
page?: number;
|
|
1589
|
+
xAccountId?: string | null;
|
|
1590
|
+
xUsername?: string | null;
|
|
1591
|
+
xUserId?: string | null;
|
|
1592
|
+
xUserFullName?: string | null;
|
|
1593
|
+
authorization: string;
|
|
1594
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1595
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1596
|
+
status: 200;
|
|
1597
|
+
data: ListMultiAgentsResponse[];
|
|
1598
|
+
} | {
|
|
1599
|
+
status: 404;
|
|
1600
|
+
} | {
|
|
1601
|
+
status: 422;
|
|
1602
|
+
data: HttpValidationError;
|
|
1603
|
+
}>(`/v1/agents/multi-agents${QS.query(QS.explode({
|
|
1604
|
+
name,
|
|
1605
|
+
slug,
|
|
1606
|
+
visibility,
|
|
1607
|
+
size,
|
|
1608
|
+
page
|
|
1609
|
+
}))}`, {
|
|
1610
|
+
...opts,
|
|
1611
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1612
|
+
"x-account-id": xAccountId,
|
|
1613
|
+
"x-username": xUsername,
|
|
1614
|
+
"x-user-id": xUserId,
|
|
1615
|
+
"x-user-full-name": xUserFullName,
|
|
1616
|
+
authorization
|
|
1617
|
+
})
|
|
1618
|
+
}));
|
|
1619
|
+
}
|
|
1620
|
+
/**
|
|
1621
|
+
* Get Agent
|
|
1622
|
+
*/
|
|
1623
|
+
export function getAgentV1AgentsAgentIdGet({ agentId, details, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1624
|
+
agentId: string;
|
|
1625
|
+
details?: boolean;
|
|
1626
|
+
xAccountId?: string | null;
|
|
1627
|
+
xUsername?: string | null;
|
|
1628
|
+
xUserId?: string | null;
|
|
1629
|
+
xUserFullName?: string | null;
|
|
1630
|
+
authorization: string;
|
|
1631
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1632
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1633
|
+
status: 200;
|
|
1634
|
+
data: AgentModel;
|
|
1635
|
+
} | {
|
|
1636
|
+
status: 404;
|
|
1637
|
+
} | {
|
|
1638
|
+
status: 422;
|
|
1639
|
+
data: HttpValidationError;
|
|
1640
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}${QS.query(QS.explode({
|
|
1641
|
+
details
|
|
1642
|
+
}))}`, {
|
|
1643
|
+
...opts,
|
|
1644
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1645
|
+
"x-account-id": xAccountId,
|
|
1646
|
+
"x-username": xUsername,
|
|
1647
|
+
"x-user-id": xUserId,
|
|
1648
|
+
"x-user-full-name": xUserFullName,
|
|
1649
|
+
authorization
|
|
1650
|
+
})
|
|
1651
|
+
}));
|
|
1652
|
+
}
|
|
1653
|
+
/**
|
|
1654
|
+
* Update Agent
|
|
1655
|
+
*/
|
|
1656
|
+
export function updateAgentV1AgentsAgentIdPatch({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, updateAgentRequest }: {
|
|
1657
|
+
agentId: string;
|
|
1658
|
+
isPublic?: boolean;
|
|
1659
|
+
xAccountId?: string | null;
|
|
1660
|
+
xUsername?: string | null;
|
|
1661
|
+
xUserId?: string | null;
|
|
1662
|
+
xUserFullName?: string | null;
|
|
1663
|
+
authorization: string;
|
|
1664
|
+
updateAgentRequest: UpdateAgentRequest;
|
|
1665
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1666
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1667
|
+
status: 204;
|
|
1668
|
+
} | {
|
|
1669
|
+
status: 404;
|
|
1670
|
+
} | {
|
|
1671
|
+
status: 422;
|
|
1672
|
+
data: HttpValidationError;
|
|
1673
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}${QS.query(QS.explode({
|
|
1674
|
+
is_public: isPublic
|
|
1675
|
+
}))}`, oazapfts.json({
|
|
1676
|
+
...opts,
|
|
1677
|
+
method: "PATCH",
|
|
1678
|
+
body: updateAgentRequest,
|
|
1679
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1680
|
+
"x-account-id": xAccountId,
|
|
1681
|
+
"x-username": xUsername,
|
|
1682
|
+
"x-user-id": xUserId,
|
|
1683
|
+
"x-user-full-name": xUserFullName,
|
|
1684
|
+
authorization
|
|
1685
|
+
})
|
|
1686
|
+
})));
|
|
1687
|
+
}
|
|
1688
|
+
/**
|
|
1689
|
+
* Delete Agent
|
|
1690
|
+
*/
|
|
1691
|
+
export function deleteAgentV1AgentsAgentIdDelete({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1692
|
+
agentId: string;
|
|
1693
|
+
isPublic?: boolean;
|
|
1694
|
+
xAccountId?: string | null;
|
|
1695
|
+
xUsername?: string | null;
|
|
1696
|
+
xUserId?: string | null;
|
|
1697
|
+
xUserFullName?: string | null;
|
|
1698
|
+
authorization: string;
|
|
1699
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1700
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1701
|
+
status: 204;
|
|
1702
|
+
} | {
|
|
1703
|
+
status: 404;
|
|
1704
|
+
} | {
|
|
1705
|
+
status: 422;
|
|
1706
|
+
data: HttpValidationError;
|
|
1707
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}${QS.query(QS.explode({
|
|
1708
|
+
is_public: isPublic
|
|
1709
|
+
}))}`, {
|
|
1710
|
+
...opts,
|
|
1711
|
+
method: "DELETE",
|
|
1712
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1713
|
+
"x-account-id": xAccountId,
|
|
1714
|
+
"x-username": xUsername,
|
|
1715
|
+
"x-user-id": xUserId,
|
|
1716
|
+
"x-user-full-name": xUserFullName,
|
|
1717
|
+
authorization
|
|
1718
|
+
})
|
|
1719
|
+
}));
|
|
1720
|
+
}
|
|
1721
|
+
/**
|
|
1722
|
+
* Add Favorite
|
|
1723
|
+
*/
|
|
1724
|
+
export function addFavoriteV1AgentsAgentIdFavoritePost({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1725
|
+
agentId: string;
|
|
1726
|
+
xAccountId?: string | null;
|
|
1727
|
+
xUsername?: string | null;
|
|
1728
|
+
xUserId?: string | null;
|
|
1729
|
+
xUserFullName?: string | null;
|
|
1730
|
+
authorization: string;
|
|
1731
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1732
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1733
|
+
status: 204;
|
|
1734
|
+
} | {
|
|
1735
|
+
status: 404;
|
|
1736
|
+
} | {
|
|
1737
|
+
status: 422;
|
|
1738
|
+
data: HttpValidationError;
|
|
1739
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/favorite`, {
|
|
1740
|
+
...opts,
|
|
1741
|
+
method: "POST",
|
|
1742
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1743
|
+
"x-account-id": xAccountId,
|
|
1744
|
+
"x-username": xUsername,
|
|
1745
|
+
"x-user-id": xUserId,
|
|
1746
|
+
"x-user-full-name": xUserFullName,
|
|
1747
|
+
authorization
|
|
1748
|
+
})
|
|
1749
|
+
}));
|
|
1750
|
+
}
|
|
1751
|
+
/**
|
|
1752
|
+
* Delete Favorite
|
|
1753
|
+
*/
|
|
1754
|
+
export function deleteFavoriteV1AgentsAgentIdFavoriteDelete({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1755
|
+
agentId: string;
|
|
1756
|
+
xAccountId?: string | null;
|
|
1757
|
+
xUsername?: string | null;
|
|
1758
|
+
xUserId?: string | null;
|
|
1759
|
+
xUserFullName?: string | null;
|
|
1760
|
+
authorization: string;
|
|
1761
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1762
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1763
|
+
status: 204;
|
|
1764
|
+
} | {
|
|
1765
|
+
status: 404;
|
|
1766
|
+
} | {
|
|
1767
|
+
status: 422;
|
|
1768
|
+
data: HttpValidationError;
|
|
1769
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/favorite`, {
|
|
1770
|
+
...opts,
|
|
1771
|
+
method: "DELETE",
|
|
1772
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1773
|
+
"x-account-id": xAccountId,
|
|
1774
|
+
"x-username": xUsername,
|
|
1775
|
+
"x-user-id": xUserId,
|
|
1776
|
+
"x-user-full-name": xUserFullName,
|
|
1777
|
+
authorization
|
|
1778
|
+
})
|
|
1779
|
+
}));
|
|
1780
|
+
}
|
|
1781
|
+
/**
|
|
1782
|
+
* Fork Agent
|
|
1783
|
+
*/
|
|
1784
|
+
export function forkAgentV1AgentsAgentIdForkPost({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, forkAgentRequest }: {
|
|
1785
|
+
agentId: string;
|
|
1786
|
+
isPublic?: boolean;
|
|
1787
|
+
xAccountId?: string | null;
|
|
1788
|
+
xUsername?: string | null;
|
|
1789
|
+
xUserId?: string | null;
|
|
1790
|
+
xUserFullName?: string | null;
|
|
1791
|
+
authorization: string;
|
|
1792
|
+
forkAgentRequest: ForkAgentRequest;
|
|
1793
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1794
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1795
|
+
status: 201;
|
|
1796
|
+
data: CreatedResponse;
|
|
1797
|
+
} | {
|
|
1798
|
+
status: 404;
|
|
1799
|
+
} | {
|
|
1800
|
+
status: 422;
|
|
1801
|
+
data: HttpValidationError;
|
|
1802
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/fork${QS.query(QS.explode({
|
|
1803
|
+
is_public: isPublic
|
|
1804
|
+
}))}`, oazapfts.json({
|
|
1805
|
+
...opts,
|
|
1806
|
+
method: "POST",
|
|
1807
|
+
body: forkAgentRequest,
|
|
1808
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1809
|
+
"x-account-id": xAccountId,
|
|
1810
|
+
"x-username": xUsername,
|
|
1811
|
+
"x-user-id": xUserId,
|
|
1812
|
+
"x-user-full-name": xUserFullName,
|
|
1813
|
+
authorization
|
|
1814
|
+
})
|
|
1815
|
+
})));
|
|
1816
|
+
}
|
|
1817
|
+
/**
|
|
1818
|
+
* Publish Agent
|
|
1819
|
+
*/
|
|
1820
|
+
export function publishAgentV1AgentsAgentIdPublishPost({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization, publishAgentRequest }: {
|
|
1821
|
+
agentId: string;
|
|
1822
|
+
xAccountId?: string | null;
|
|
1823
|
+
xUsername?: string | null;
|
|
1824
|
+
xUserId?: string | null;
|
|
1825
|
+
xUserFullName?: string | null;
|
|
1826
|
+
authorization: string;
|
|
1827
|
+
publishAgentRequest: PublishAgentRequest;
|
|
1828
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1829
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1830
|
+
status: 204;
|
|
1831
|
+
} | {
|
|
1832
|
+
status: 404;
|
|
1833
|
+
} | {
|
|
1834
|
+
status: 422;
|
|
1835
|
+
data: HttpValidationError;
|
|
1836
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/publish`, oazapfts.json({
|
|
1837
|
+
...opts,
|
|
1838
|
+
method: "POST",
|
|
1839
|
+
body: publishAgentRequest,
|
|
1840
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1841
|
+
"x-account-id": xAccountId,
|
|
1842
|
+
"x-username": xUsername,
|
|
1843
|
+
"x-user-id": xUserId,
|
|
1844
|
+
"x-user-full-name": xUserFullName,
|
|
1845
|
+
authorization
|
|
1846
|
+
})
|
|
1847
|
+
})));
|
|
1848
|
+
}
|
|
1849
|
+
/**
|
|
1850
|
+
* Share
|
|
1851
|
+
*/
|
|
1852
|
+
export function shareV1AgentsAgentIdSharePost({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1853
|
+
agentId: string;
|
|
1854
|
+
xAccountId?: string | null;
|
|
1855
|
+
xUsername?: string | null;
|
|
1856
|
+
xUserId?: string | null;
|
|
1857
|
+
xUserFullName?: string | null;
|
|
1858
|
+
authorization: string;
|
|
1859
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1860
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1861
|
+
status: 204;
|
|
1862
|
+
} | {
|
|
1863
|
+
status: 404;
|
|
1864
|
+
} | {
|
|
1865
|
+
status: 422;
|
|
1866
|
+
data: HttpValidationError;
|
|
1867
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/share`, {
|
|
1868
|
+
...opts,
|
|
1869
|
+
method: "POST",
|
|
1870
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1871
|
+
"x-account-id": xAccountId,
|
|
1872
|
+
"x-username": xUsername,
|
|
1873
|
+
"x-user-id": xUserId,
|
|
1874
|
+
"x-user-full-name": xUserFullName,
|
|
1875
|
+
authorization
|
|
1876
|
+
})
|
|
1877
|
+
}));
|
|
1878
|
+
}
|
|
1879
|
+
/**
|
|
1880
|
+
* Disassociate Ks From All Agents
|
|
1881
|
+
*/
|
|
1882
|
+
export function disassociateKsFromAllAgentsV1AgentsKnowledgeSourceKsIdDelete({ ksId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1883
|
+
ksId: string;
|
|
1884
|
+
xAccountId?: string | null;
|
|
1885
|
+
xUsername?: string | null;
|
|
1886
|
+
xUserId?: string | null;
|
|
1887
|
+
xUserFullName?: string | null;
|
|
1888
|
+
authorization: string;
|
|
1889
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1890
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1891
|
+
status: 204;
|
|
1892
|
+
} | {
|
|
1893
|
+
status: 404;
|
|
1894
|
+
} | {
|
|
1895
|
+
status: 422;
|
|
1896
|
+
data: HttpValidationError;
|
|
1897
|
+
}>(`/v1/agents/knowledge-source/${encodeURIComponent(ksId)}`, {
|
|
1898
|
+
...opts,
|
|
1899
|
+
method: "DELETE",
|
|
1900
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1901
|
+
"x-account-id": xAccountId,
|
|
1902
|
+
"x-username": xUsername,
|
|
1903
|
+
"x-user-id": xUserId,
|
|
1904
|
+
"x-user-full-name": xUserFullName,
|
|
1905
|
+
authorization
|
|
1906
|
+
})
|
|
1907
|
+
}));
|
|
1908
|
+
}
|
|
1909
|
+
/**
|
|
1910
|
+
* Get Agent By Ks Id
|
|
1911
|
+
*/
|
|
1912
|
+
export function getAgentByKsIdV1AgentsKnowledgeSourceKsIdGet({ ksId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1913
|
+
ksId: string;
|
|
1914
|
+
xAccountId?: string | null;
|
|
1915
|
+
xUsername?: string | null;
|
|
1916
|
+
xUserId?: string | null;
|
|
1917
|
+
xUserFullName?: string | null;
|
|
1918
|
+
authorization: string;
|
|
1919
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1920
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1921
|
+
status: 200;
|
|
1922
|
+
data: ListAgentResponse[];
|
|
1923
|
+
} | {
|
|
1924
|
+
status: 404;
|
|
1925
|
+
} | {
|
|
1926
|
+
status: 422;
|
|
1927
|
+
data: HttpValidationError;
|
|
1928
|
+
}>(`/v1/agents/knowledge-source/${encodeURIComponent(ksId)}`, {
|
|
1929
|
+
...opts,
|
|
1930
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1931
|
+
"x-account-id": xAccountId,
|
|
1932
|
+
"x-username": xUsername,
|
|
1933
|
+
"x-user-id": xUserId,
|
|
1934
|
+
"x-user-full-name": xUserFullName,
|
|
1935
|
+
authorization
|
|
1936
|
+
})
|
|
1937
|
+
}));
|
|
1938
|
+
}
|
|
1939
|
+
/**
|
|
1940
|
+
* Migrate Agent Avatar By Id
|
|
1941
|
+
*/
|
|
1942
|
+
export function migrateAgentAvatarByIdV1AgentsAgentIdMigrateAvatarPost({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1943
|
+
agentId: string;
|
|
1944
|
+
xAccountId?: string | null;
|
|
1945
|
+
xUsername?: string | null;
|
|
1946
|
+
xUserId?: string | null;
|
|
1947
|
+
xUserFullName?: string | null;
|
|
1948
|
+
authorization: string;
|
|
1949
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1950
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1951
|
+
status: 204;
|
|
1952
|
+
} | {
|
|
1953
|
+
status: 404;
|
|
1954
|
+
} | {
|
|
1955
|
+
status: 422;
|
|
1956
|
+
data: HttpValidationError;
|
|
1957
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/migrate-avatar`, {
|
|
1958
|
+
...opts,
|
|
1959
|
+
method: "POST",
|
|
1960
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1961
|
+
"x-account-id": xAccountId,
|
|
1962
|
+
"x-username": xUsername,
|
|
1963
|
+
"x-user-id": xUserId,
|
|
1964
|
+
"x-user-full-name": xUserFullName,
|
|
1965
|
+
authorization
|
|
1966
|
+
})
|
|
1967
|
+
}));
|
|
1968
|
+
}
|
|
1969
|
+
/**
|
|
1970
|
+
* List Agents
|
|
1971
|
+
*/
|
|
1972
|
+
export function listAgentsV2AgentsGet({ name, slug, visibility, size, page, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1973
|
+
name?: string | null;
|
|
1974
|
+
slug?: string | null;
|
|
1975
|
+
visibility?: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
1976
|
+
size?: number;
|
|
1977
|
+
page?: number;
|
|
1978
|
+
xAccountId?: string | null;
|
|
1979
|
+
xUsername?: string | null;
|
|
1980
|
+
xUserId?: string | null;
|
|
1981
|
+
xUserFullName?: string | null;
|
|
1982
|
+
authorization: string;
|
|
1983
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1984
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1985
|
+
status: 200;
|
|
1986
|
+
data: ListAgentResponseV2[];
|
|
1987
|
+
} | {
|
|
1988
|
+
status: 404;
|
|
1989
|
+
} | {
|
|
1990
|
+
status: 422;
|
|
1991
|
+
data: HttpValidationError;
|
|
1992
|
+
}>(`/v2/agents${QS.query(QS.explode({
|
|
1993
|
+
name,
|
|
1994
|
+
slug,
|
|
1995
|
+
visibility,
|
|
1996
|
+
size,
|
|
1997
|
+
page
|
|
1998
|
+
}))}`, {
|
|
1999
|
+
...opts,
|
|
2000
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2001
|
+
"x-account-id": xAccountId,
|
|
2002
|
+
"x-username": xUsername,
|
|
2003
|
+
"x-user-id": xUserId,
|
|
2004
|
+
"x-user-full-name": xUserFullName,
|
|
2005
|
+
authorization
|
|
2006
|
+
})
|
|
2007
|
+
}));
|
|
2008
|
+
}
|
|
2009
|
+
/**
|
|
2010
|
+
* Search Agents
|
|
2011
|
+
*/
|
|
2012
|
+
export function searchAgentsV2AgentsSearchPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, searchAgentsRequest }: {
|
|
2013
|
+
xAccountId?: string | null;
|
|
2014
|
+
xUsername?: string | null;
|
|
2015
|
+
xUserId?: string | null;
|
|
2016
|
+
xUserFullName?: string | null;
|
|
2017
|
+
authorization: string;
|
|
2018
|
+
searchAgentsRequest: SearchAgentsRequest;
|
|
2019
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2020
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2021
|
+
status: 200;
|
|
2022
|
+
data: ListAgentResponseV2[];
|
|
2023
|
+
} | {
|
|
2024
|
+
status: 404;
|
|
2025
|
+
} | {
|
|
2026
|
+
status: 422;
|
|
2027
|
+
data: HttpValidationError;
|
|
2028
|
+
}>("/v2/agents/search", oazapfts.json({
|
|
2029
|
+
...opts,
|
|
2030
|
+
method: "POST",
|
|
2031
|
+
body: searchAgentsRequest,
|
|
2032
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2033
|
+
"x-account-id": xAccountId,
|
|
2034
|
+
"x-username": xUsername,
|
|
2035
|
+
"x-user-id": xUserId,
|
|
2036
|
+
"x-user-full-name": xUserFullName,
|
|
2037
|
+
authorization
|
|
2038
|
+
})
|
|
2039
|
+
})));
|
|
2040
|
+
}
|
|
2041
|
+
/**
|
|
2042
|
+
* List Agents
|
|
2043
|
+
*/
|
|
2044
|
+
export function listAgentsV3AgentsGet({ filters, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2045
|
+
filters: ListAgentRequestV3;
|
|
2046
|
+
isPublic?: boolean;
|
|
2047
|
+
xAccountId?: string | null;
|
|
2048
|
+
xUsername?: string | null;
|
|
2049
|
+
xUserId?: string | null;
|
|
2050
|
+
xUserFullName?: string | null;
|
|
2051
|
+
authorization: string;
|
|
2052
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2053
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2054
|
+
status: 200;
|
|
2055
|
+
data: PaginatedResponseAgentResponseV3;
|
|
2056
|
+
} | {
|
|
2057
|
+
status: 404;
|
|
2058
|
+
} | {
|
|
2059
|
+
status: 422;
|
|
2060
|
+
data: HttpValidationError;
|
|
2061
|
+
}>(`/v3/agents${QS.query(QS.explode({
|
|
2062
|
+
filters,
|
|
2063
|
+
is_public: isPublic
|
|
2064
|
+
}))}`, {
|
|
2065
|
+
...opts,
|
|
2066
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2067
|
+
"x-account-id": xAccountId,
|
|
2068
|
+
"x-username": xUsername,
|
|
2069
|
+
"x-user-id": xUserId,
|
|
2070
|
+
"x-user-full-name": xUserFullName,
|
|
2071
|
+
authorization
|
|
2072
|
+
})
|
|
2073
|
+
}));
|
|
2074
|
+
}
|
|
2075
|
+
/**
|
|
2076
|
+
* Internal List Toolkits By Ids
|
|
2077
|
+
*/
|
|
2078
|
+
export function internalListToolkitsByIdsV1SpotToolkitsPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, internalListToolkitsRequest }: {
|
|
2079
|
+
xAccountId: string;
|
|
2080
|
+
xUsername?: string | null;
|
|
2081
|
+
xUserId?: string | null;
|
|
2082
|
+
xUserFullName?: string | null;
|
|
2083
|
+
authorization: string;
|
|
2084
|
+
internalListToolkitsRequest: InternalListToolkitsRequest;
|
|
2085
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2086
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2087
|
+
status: 200;
|
|
2088
|
+
data: CustomToolkitSimpleResponse[];
|
|
2089
|
+
} | {
|
|
2090
|
+
status: 404;
|
|
2091
|
+
} | {
|
|
2092
|
+
status: 422;
|
|
2093
|
+
data: HttpValidationError;
|
|
2094
|
+
}>("/v1/spot/toolkits", oazapfts.json({
|
|
2095
|
+
...opts,
|
|
2096
|
+
method: "POST",
|
|
2097
|
+
body: internalListToolkitsRequest,
|
|
2098
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2099
|
+
"x-account-id": xAccountId,
|
|
2100
|
+
"x-username": xUsername,
|
|
2101
|
+
"x-user-id": xUserId,
|
|
2102
|
+
"x-user-full-name": xUserFullName,
|
|
2103
|
+
authorization
|
|
2104
|
+
})
|
|
2105
|
+
})));
|
|
2106
|
+
}
|
|
2107
|
+
/**
|
|
2108
|
+
* Internal Delete Toolkits By Ids
|
|
2109
|
+
*/
|
|
2110
|
+
export function internalDeleteToolkitsByIdsV1SpotToolkitsDelete({ xAccountId, xUsername, xUserId, xUserFullName, authorization, internalDeleteToolkitsRequest }: {
|
|
2111
|
+
xAccountId: string;
|
|
2112
|
+
xUsername?: string | null;
|
|
2113
|
+
xUserId?: string | null;
|
|
2114
|
+
xUserFullName?: string | null;
|
|
2115
|
+
authorization: string;
|
|
2116
|
+
internalDeleteToolkitsRequest: InternalDeleteToolkitsRequest;
|
|
2117
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2118
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2119
|
+
status: 204;
|
|
2120
|
+
} | {
|
|
2121
|
+
status: 404;
|
|
2122
|
+
} | {
|
|
2123
|
+
status: 422;
|
|
2124
|
+
data: HttpValidationError;
|
|
2125
|
+
}>("/v1/spot/toolkits", oazapfts.json({
|
|
2126
|
+
...opts,
|
|
2127
|
+
method: "DELETE",
|
|
2128
|
+
body: internalDeleteToolkitsRequest,
|
|
2129
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2130
|
+
"x-account-id": xAccountId,
|
|
2131
|
+
"x-username": xUsername,
|
|
2132
|
+
"x-user-id": xUserId,
|
|
2133
|
+
"x-user-full-name": xUserFullName,
|
|
2134
|
+
authorization
|
|
2135
|
+
})
|
|
2136
|
+
})));
|
|
2137
|
+
}
|
|
2138
|
+
/**
|
|
2139
|
+
* Internal Fork Toolkits By Ids
|
|
2140
|
+
*/
|
|
2141
|
+
export function internalForkToolkitsByIdsV1SpotToolkitsForkPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, internalToolkitForkRequest }: {
|
|
2142
|
+
xAccountId: string;
|
|
2143
|
+
xUsername: string;
|
|
2144
|
+
xUserId: string;
|
|
2145
|
+
xUserFullName: string;
|
|
2146
|
+
authorization: string;
|
|
2147
|
+
internalToolkitForkRequest: InternalToolkitForkRequest;
|
|
2148
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2149
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2150
|
+
status: 200;
|
|
2151
|
+
data: ToolkitForkResponse;
|
|
2152
|
+
} | {
|
|
2153
|
+
status: 404;
|
|
2154
|
+
} | {
|
|
2155
|
+
status: 422;
|
|
2156
|
+
data: HttpValidationError;
|
|
2157
|
+
}>("/v1/spot/toolkits/fork", oazapfts.json({
|
|
2158
|
+
...opts,
|
|
2159
|
+
method: "POST",
|
|
2160
|
+
body: internalToolkitForkRequest,
|
|
2161
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2162
|
+
"x-account-id": xAccountId,
|
|
2163
|
+
"x-username": xUsername,
|
|
2164
|
+
"x-user-id": xUserId,
|
|
2165
|
+
"x-user-full-name": xUserFullName,
|
|
2166
|
+
authorization
|
|
2167
|
+
})
|
|
2168
|
+
})));
|
|
2169
|
+
}
|
|
2170
|
+
|
|
2171
|
+
|
|
2172
|
+
|