@stack-spot/portal-network 0.183.0 → 0.184.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/CHANGELOG.md +2412 -2405
  2. package/dist/api/account.js +1 -1
  3. package/dist/api/agent-tools.js +1 -1
  4. package/dist/api/agent.js +1 -1
  5. package/dist/api/ai.js +1 -1
  6. package/dist/api/apiManagement.js +1 -1
  7. package/dist/api/apiRuntime.js +1 -1
  8. package/dist/api/cloudAccount.js +1 -1
  9. package/dist/api/cloudPlatform.js +1 -1
  10. package/dist/api/cloudPlatformHorizon.js +1 -1
  11. package/dist/api/cloudRuntimes.js +1 -1
  12. package/dist/api/cloudServices.js +1 -1
  13. package/dist/api/codeShift.js +1 -1
  14. package/dist/api/content.js +1 -1
  15. package/dist/api/dataIntegration.js +1 -1
  16. package/dist/api/discover.js +1 -1
  17. package/dist/api/genAiInference.js +1 -1
  18. package/dist/api/insights.js +1 -1
  19. package/dist/api/notification.js +1 -1
  20. package/dist/api/secrets.js +1 -1
  21. package/dist/api/serviceCatalog.js +1 -1
  22. package/dist/api/workspace-ai.js +1 -1
  23. package/dist/api/workspace.js +1 -1
  24. package/dist/api/workspaceManager.d.ts +16 -10
  25. package/dist/api/workspaceManager.d.ts.map +1 -1
  26. package/dist/api/workspaceManager.js +11 -1
  27. package/dist/api/workspaceManager.js.map +1 -1
  28. package/dist/api/workspaceSearchEngine.js +1 -1
  29. package/dist/client/workspace-manager.d.ts +6 -0
  30. package/dist/client/workspace-manager.d.ts.map +1 -1
  31. package/dist/client/workspace-manager.js +10 -1
  32. package/dist/client/workspace-manager.js.map +1 -1
  33. package/package.json +6 -6
  34. package/scripts/generate-apis.ts +134 -134
  35. package/src/api/account.ts +8367 -8367
  36. package/src/api/agent-tools.ts +2169 -2169
  37. package/src/api/agent.ts +1083 -1083
  38. package/src/api/ai.ts +3388 -3388
  39. package/src/api/apiManagement.ts +570 -570
  40. package/src/api/apiRuntime.ts +2103 -2103
  41. package/src/api/cloudAccount.ts +1239 -1239
  42. package/src/api/cloudPlatform.ts +927 -927
  43. package/src/api/cloudPlatformHorizon.ts +2655 -2655
  44. package/src/api/cloudRuntimes.ts +2043 -2043
  45. package/src/api/cloudServices.ts +1445 -1445
  46. package/src/api/codeShift.ts +3481 -3481
  47. package/src/api/content.ts +9785 -9785
  48. package/src/api/dataIntegration.ts +1657 -1657
  49. package/src/api/discover.ts +435 -435
  50. package/src/api/eventBus.ts +171 -171
  51. package/src/api/genAiInference.ts +603 -603
  52. package/src/api/insights.ts +310 -310
  53. package/src/api/notification.ts +334 -334
  54. package/src/api/secrets.ts +342 -342
  55. package/src/api/serviceCatalog.ts +2908 -2908
  56. package/src/api/workflows.ts +1669 -1669
  57. package/src/api/workspace-ai.ts +677 -677
  58. package/src/api/workspace.ts +5889 -5889
  59. package/src/api/workspaceManager.ts +2951 -2936
  60. package/src/api/workspaceSearchEngine.ts +153 -153
  61. package/src/api-addresses.ts +120 -120
  62. package/src/apis-itau.json +225 -225
  63. package/src/apis.json +225 -225
  64. package/src/client/account.ts +902 -902
  65. package/src/client/agent-tools.ts +210 -210
  66. package/src/client/agent.ts +81 -81
  67. package/src/client/ai.ts +395 -395
  68. package/src/client/api-management.ts +40 -40
  69. package/src/client/cloud-account.ts +70 -70
  70. package/src/client/cloud-platform-horizon.ts +113 -113
  71. package/src/client/cloud-platform.ts +163 -163
  72. package/src/client/cloud-runtimes.ts +129 -129
  73. package/src/client/cloud-services.ts +94 -94
  74. package/src/client/code-shift.ts +349 -349
  75. package/src/client/content.ts +538 -538
  76. package/src/client/data-integration.ts +191 -191
  77. package/src/client/discover.ts +89 -89
  78. package/src/client/event-bus.ts +84 -84
  79. package/src/client/gen-ai-inference.ts +65 -65
  80. package/src/client/insights.ts +28 -28
  81. package/src/client/notification.ts +32 -32
  82. package/src/client/runtime-manager.ts +76 -76
  83. package/src/client/secrets.ts +60 -60
  84. package/src/client/types.ts +377 -377
  85. package/src/client/workflow.ts +83 -83
  86. package/src/client/workspace-ai.ts +191 -191
  87. package/src/client/workspace-manager.ts +564 -560
  88. package/src/client/workspace-search.ts +39 -39
  89. package/src/client/workspace.ts +480 -480
  90. package/src/error/DefaultAPIError.ts +151 -151
  91. package/src/error/FileUploadError.ts +18 -18
  92. package/src/error/IgnoredErrorCodes.ts +3 -3
  93. package/src/error/StackspotAPIError.ts +101 -101
  94. package/src/error/StreamCanceledError.ts +10 -10
  95. package/src/error/StreamError.ts +7 -7
  96. package/src/error/StreamJsonError.ts +10 -10
  97. package/src/error/dictionary/account.ts +58 -58
  98. package/src/error/dictionary/action-details.ts +20 -20
  99. package/src/error/dictionary/action.ts +211 -211
  100. package/src/error/dictionary/agent-tools.ts +75 -75
  101. package/src/error/dictionary/ai-inference.ts +28 -28
  102. package/src/error/dictionary/base.ts +22 -22
  103. package/src/error/dictionary/cloud-platform.ts +82 -82
  104. package/src/error/dictionary/cnt-fields.ts +14 -14
  105. package/src/error/dictionary/cnt.ts +103 -103
  106. package/src/error/dictionary/code-shift.ts +12 -12
  107. package/src/error/dictionary/rte.ts +24 -24
  108. package/src/error/dictionary/rtm.ts +10 -10
  109. package/src/error/dictionary/secrets.ts +14 -14
  110. package/src/error/dictionary/workspace-ai.ts +10 -10
  111. package/src/error/dictionary/workspace-details.ts +15 -15
  112. package/src/error/dictionary/workspace-fields.ts +10 -10
  113. package/src/error/dictionary/workspace.ts +209 -209
  114. package/src/error/types.ts +21 -21
  115. package/src/index.ts +43 -43
  116. package/src/network/AutoInfiniteQuery.ts +115 -115
  117. package/src/network/AutoMutation.ts +27 -27
  118. package/src/network/AutoOperation.ts +73 -73
  119. package/src/network/AutoQuery.ts +75 -75
  120. package/src/network/ManualInfiniteQuery.ts +95 -95
  121. package/src/network/ManualMutation.ts +40 -40
  122. package/src/network/ManualOperation.ts +52 -52
  123. package/src/network/ManualQuery.ts +82 -82
  124. package/src/network/NetworkClient.ts +167 -167
  125. package/src/network/ReactQueryNetworkClient.ts +312 -312
  126. package/src/network/react-query-client.ts +14 -14
  127. package/src/network/types.ts +294 -294
  128. package/src/types.ts +1 -1
  129. package/src/utils/StreamedArray.tsx +146 -146
  130. package/src/utils/StreamedJson.tsx +166 -166
  131. package/src/utils/remove-authorization-param.ts +6 -6
  132. package/src/utils/string.ts +19 -19
  133. package/src/utils/use-extended-list.ts +80 -80
  134. package/src/utils/use-streamed-array.ts +17 -17
  135. package/tsconfig.build.json +4 -4
  136. package/tsconfig.json +10 -10
package/src/api/agent.ts CHANGED
@@ -1,1083 +1,1083 @@
1
- /**
2
- * ai-agent-mgmt-api API
3
- * 0.0.1
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 AgentType = "CONVERSATIONAL" | "SINGLE_ANSWER";
16
- export type LlmConfigRequestPart = {
17
- model_slug: string;
18
- temperature?: number | null;
19
- };
20
- export type SimilarityFunction = "COSINE" | "EUCLIDEAN" | "DOT_PRODUCT";
21
- export type KnowledgeSourcesConfigRequestPart = {
22
- similarity_function?: SimilarityFunction;
23
- max_number_of_kos?: number | null;
24
- relevancy_threshold?: number | null;
25
- post_processing?: boolean | null;
26
- sealed?: boolean | null;
27
- /** List of knowledge source ids (ULID). */
28
- knowledge_sources: string[];
29
- };
30
- export type CustomToolRequest = {
31
- toolkit_id?: string;
32
- tools_ids?: string[];
33
- };
34
- export type NewAgentRequest = {
35
- name: string;
36
- slug: string;
37
- description?: string;
38
- avatar?: string;
39
- suggested_prompts?: string[];
40
- system_prompt: string;
41
- "type": AgentType;
42
- llm_config?: (LlmConfigRequestPart) | null;
43
- knowledge_sources_config?: (KnowledgeSourcesConfigRequestPart) | null;
44
- builtin_tools_ids?: string[];
45
- custom_tools?: CustomToolRequest[];
46
- detail_mode?: boolean;
47
- model_name?: string | null;
48
- model_id?: string | null;
49
- structured_output?: {
50
- [key: string]: any;
51
- } | null;
52
- llm_settings?: {
53
- [key: string]: any;
54
- } | null;
55
- };
56
- export type ViolationResponse = {
57
- field?: string;
58
- message?: string;
59
- };
60
- export type WorkspaceListRequest = {
61
- agentIds?: string[];
62
- name?: string;
63
- };
64
- export type Uuid = string;
65
- export type WorkspaceForkRequest = {
66
- agentIds?: string[];
67
- memberId?: Uuid;
68
- };
69
- export type AgentItemFork = {
70
- agentId?: string;
71
- isBuiltIn?: boolean;
72
- };
73
- export type WorkspaceForkResponse = {
74
- agents?: AgentItemFork[];
75
- agentIds?: string[];
76
- agentIdsAccount?: string[];
77
- ksIds?: string[];
78
- ksIdsAccount?: string[];
79
- errorIds?: string[];
80
- };
81
- export type WorkspaceDeleteRequest = {
82
- agentIds?: string[];
83
- isRollback?: boolean;
84
- };
85
- export type LlmConfigResponse = {
86
- model_slug: string;
87
- temperature: number;
88
- };
89
- export type KnowledgeSourceDetailResponse = {
90
- id: string;
91
- slug: string;
92
- name: string;
93
- description: string;
94
- "type": string;
95
- creator: string;
96
- "default": boolean;
97
- visibility_level: string;
98
- model_name: string;
99
- username: string;
100
- };
101
- export type KnowledgeSourceResponse = {
102
- similarity_function: SimilarityFunction;
103
- max_number_of_kos: number;
104
- relevancy_threshold: number;
105
- post_processing: boolean;
106
- sealed: boolean;
107
- knowledge_sources: string[];
108
- knowledge_sources_details?: KnowledgeSourceDetailResponse[];
109
- };
110
- export type VisibilityLevel = "PERSONAL" | "SHARED" | "WORKSPACE" | "ACCOUNT" | "FAVORITE";
111
- export type ZonedDateTime = string;
112
- export type BuiltinToolResponse = {
113
- id?: string;
114
- name?: string;
115
- description?: string;
116
- };
117
- export type BuiltinToolkitResponse = {
118
- id?: string;
119
- name?: string;
120
- description?: string;
121
- image_url?: string;
122
- tools?: BuiltinToolResponse[];
123
- };
124
- export type CustomToolResponse = {
125
- id?: string;
126
- name?: string;
127
- description?: string;
128
- method?: string;
129
- url?: string;
130
- };
131
- export type CustomToolkitResponse = {
132
- id?: string;
133
- name?: string;
134
- description?: string;
135
- avatar?: string;
136
- secret_id?: string;
137
- tools?: CustomToolResponse[];
138
- };
139
- export type ToolkitsInAgentResponse = {
140
- builtins?: BuiltinToolkitResponse[];
141
- customs?: CustomToolkitResponse[];
142
- };
143
- export type ModifiedAgentRequest = {
144
- name: string;
145
- slug: string;
146
- description?: string | null;
147
- avatar?: string | null;
148
- suggested_prompts?: string[] | null;
149
- system_prompt?: string | null;
150
- "type"?: AgentType;
151
- llm_config?: (LlmConfigRequestPart) | null;
152
- knowledge_sources_config?: (KnowledgeSourcesConfigRequestPart) | null;
153
- use_only?: boolean | null;
154
- builtin_tools_ids?: string[];
155
- custom_tools?: CustomToolRequest[];
156
- detail_mode?: boolean | null;
157
- model_name?: string | null;
158
- model_id?: string | null;
159
- llm_settings?: {
160
- [key: string]: any;
161
- } | null;
162
- structured_output?: {
163
- [key: string]: any;
164
- } | null;
165
- };
166
- export type ForkAgentRequest = {
167
- slug?: string;
168
- name?: string | null;
169
- };
170
- export type PublishRequest = {
171
- level: VisibilityLevel;
172
- use_only?: boolean;
173
- };
174
- export type AgentResponse = {
175
- id: string;
176
- name: string;
177
- slug: string;
178
- description?: string;
179
- avatar?: string;
180
- system_prompt: string;
181
- "type": string;
182
- llm_config?: LlmConfigResponse;
183
- suggested_prompts?: string[];
184
- knowledge_sources_config?: KnowledgeSourceResponse;
185
- visibility_level: VisibilityLevel;
186
- use_only: boolean;
187
- creator_name: string;
188
- created_by: string;
189
- created_at: ZonedDateTime;
190
- updated_by?: string;
191
- updated_at?: ZonedDateTime;
192
- toolkits?: ToolkitsInAgentResponse;
193
- detail_mode?: boolean;
194
- model_id?: string;
195
- model_name?: string;
196
- structured_output?: {
197
- [key: string]: any;
198
- } | null;
199
- llm_settings?: {
200
- [key: string]: any;
201
- } | null;
202
- };
203
- /**
204
- * Creates a new AI Agent.
205
- */
206
- export function postV1Agent({ newAgentRequest }: {
207
- newAgentRequest?: NewAgentRequest;
208
- }, opts?: Oazapfts.RequestOpts) {
209
- return oazapfts.ok(oazapfts.fetchJson<{
210
- status: 201;
211
- data: {
212
- id?: string;
213
- };
214
- } | {
215
- status: 400;
216
- data: {
217
- code?: string;
218
- details?: string;
219
- violations?: ViolationResponse[];
220
- };
221
- } | {
222
- status: 422;
223
- data: {
224
- code?: string;
225
- details?: string;
226
- additionalInformation?: {
227
- [key: string]: any;
228
- } | null;
229
- };
230
- } | {
231
- status: 500;
232
- data: {
233
- code?: string;
234
- details?: string;
235
- additionalInformation?: {
236
- [key: string]: any;
237
- } | null;
238
- };
239
- }>("/v1/agent", oazapfts.json({
240
- ...opts,
241
- method: "POST",
242
- body: newAgentRequest
243
- })));
244
- }
245
- /**
246
- * List Workspace Fork AI agents.
247
- */
248
- export function postV1AgentDependencies({ workspaceListRequest }: {
249
- workspaceListRequest?: WorkspaceListRequest;
250
- }, opts?: Oazapfts.RequestOpts) {
251
- return oazapfts.ok(oazapfts.fetchJson<{
252
- status: 201;
253
- data: Blob;
254
- } | {
255
- status: 500;
256
- data: {
257
- code?: string;
258
- details?: string;
259
- additionalInformation?: {
260
- [key: string]: any;
261
- } | null;
262
- };
263
- }>("/v1/agent/dependencies", oazapfts.json({
264
- ...opts,
265
- method: "POST",
266
- body: workspaceListRequest
267
- })));
268
- }
269
- /**
270
- * List agents with specific KS
271
- */
272
- export function getV1AgentKnowledgeSourceById({ id }: {
273
- id: string;
274
- }, opts?: Oazapfts.RequestOpts) {
275
- return oazapfts.ok(oazapfts.fetchJson<{
276
- status: 200;
277
- data: Blob;
278
- } | {
279
- status: 500;
280
- data: {
281
- code?: string;
282
- details?: string;
283
- additionalInformation?: {
284
- [key: string]: any;
285
- } | null;
286
- };
287
- }>(`/v1/agent/knowledge-source/${encodeURIComponent(id)}`, {
288
- ...opts
289
- }));
290
- }
291
- /**
292
- * Disassociate KS from Agent
293
- */
294
- export function deleteV1AgentKnowledgeSourceById({ id }: {
295
- id: string;
296
- }, opts?: Oazapfts.RequestOpts) {
297
- return oazapfts.ok(oazapfts.fetchJson<{
298
- status: 204;
299
- data: Blob;
300
- } | {
301
- status: 500;
302
- data: {
303
- code?: string;
304
- details?: string;
305
- additionalInformation?: {
306
- [key: string]: any;
307
- } | null;
308
- };
309
- }>(`/v1/agent/knowledge-source/${encodeURIComponent(id)}`, {
310
- ...opts,
311
- method: "DELETE"
312
- }));
313
- }
314
- /**
315
- * Workspace Fork AI agents.
316
- */
317
- export function postV1AgentWorkspaceFork({ workspaceForkRequest }: {
318
- workspaceForkRequest?: WorkspaceForkRequest;
319
- }, opts?: Oazapfts.RequestOpts) {
320
- return oazapfts.ok(oazapfts.fetchJson<{
321
- status: 201;
322
- data: WorkspaceForkResponse[];
323
- } | {
324
- status: 500;
325
- data: {
326
- code?: string;
327
- details?: string;
328
- additionalInformation?: {
329
- [key: string]: any;
330
- } | null;
331
- };
332
- }>("/v1/agent/workspace/fork", oazapfts.json({
333
- ...opts,
334
- method: "POST",
335
- body: workspaceForkRequest
336
- })));
337
- }
338
- /**
339
- * Delete Workspace Fork AI agents.
340
- */
341
- export function deleteV1AgentWorkspaceFork({ workspaceDeleteRequest }: {
342
- workspaceDeleteRequest?: WorkspaceDeleteRequest;
343
- }, opts?: Oazapfts.RequestOpts) {
344
- return oazapfts.ok(oazapfts.fetchJson<{
345
- status: 201;
346
- data: Blob;
347
- } | {
348
- status: 500;
349
- data: {
350
- code?: string;
351
- details?: string;
352
- additionalInformation?: {
353
- [key: string]: any;
354
- } | null;
355
- };
356
- }>("/v1/agent/workspace/fork", oazapfts.json({
357
- ...opts,
358
- method: "DELETE",
359
- body: workspaceDeleteRequest
360
- })));
361
- }
362
- /**
363
- * List Workspace Fork AI agents.
364
- */
365
- export function postV1AgentWorkspaceList({ workspaceListRequest }: {
366
- workspaceListRequest?: WorkspaceListRequest;
367
- }, opts?: Oazapfts.RequestOpts) {
368
- return oazapfts.ok(oazapfts.fetchJson<{
369
- status: 201;
370
- data: Blob;
371
- } | {
372
- status: 500;
373
- data: {
374
- code?: string;
375
- details?: string;
376
- additionalInformation?: {
377
- [key: string]: any;
378
- } | null;
379
- };
380
- }>("/v1/agent/workspace/list", oazapfts.json({
381
- ...opts,
382
- method: "POST",
383
- body: workspaceListRequest
384
- })));
385
- }
386
- /**
387
- * Get agent by ID
388
- */
389
- export function getV1AgentByAgentId({ agentId }: {
390
- agentId: string;
391
- }, opts?: Oazapfts.RequestOpts) {
392
- return oazapfts.ok(oazapfts.fetchJson<{
393
- status: 200;
394
- data: {
395
- id: string;
396
- name: string;
397
- slug: string;
398
- description?: string;
399
- avatar?: string;
400
- system_prompt: string;
401
- "type": string;
402
- llm_config?: LlmConfigResponse;
403
- suggested_prompts?: string[];
404
- knowledge_sources_config?: KnowledgeSourceResponse;
405
- visibility_level: VisibilityLevel;
406
- use_only: boolean;
407
- creator_name: string;
408
- created_by: string;
409
- created_at: ZonedDateTime;
410
- updated_by?: string;
411
- updated_at?: ZonedDateTime;
412
- toolkits?: ToolkitsInAgentResponse;
413
- detail_mode?: boolean;
414
- model_id?: string;
415
- model_name?: string;
416
- structured_output?: {
417
- [key: string]: any;
418
- } | null;
419
- llm_settings?: {
420
- [key: string]: any;
421
- } | null;
422
- };
423
- } | {
424
- status: 404;
425
- data: {
426
- code?: string;
427
- details?: string;
428
- additionalInformation?: {
429
- [key: string]: any;
430
- } | null;
431
- };
432
- } | {
433
- status: 500;
434
- data: {
435
- code?: string;
436
- details?: string;
437
- additionalInformation?: {
438
- [key: string]: any;
439
- } | null;
440
- };
441
- }>(`/v1/agent/${encodeURIComponent(agentId)}`, {
442
- ...opts
443
- }));
444
- }
445
- /**
446
- * Update agent by ID
447
- */
448
- export function putV1AgentByAgentId({ agentId, modifiedAgentRequest }: {
449
- agentId: string;
450
- modifiedAgentRequest?: ModifiedAgentRequest;
451
- }, opts?: Oazapfts.RequestOpts) {
452
- return oazapfts.ok(oazapfts.fetchJson<{
453
- status: 204;
454
- } | {
455
- status: 400;
456
- data: {
457
- code?: string;
458
- details?: string;
459
- violations?: ViolationResponse[];
460
- };
461
- } | {
462
- status: 404;
463
- data: {
464
- code?: string;
465
- details?: string;
466
- additionalInformation?: {
467
- [key: string]: any;
468
- } | null;
469
- };
470
- } | {
471
- status: 422;
472
- data: {
473
- code?: string;
474
- details?: string;
475
- additionalInformation?: {
476
- [key: string]: any;
477
- } | null;
478
- };
479
- } | {
480
- status: 500;
481
- data: {
482
- code?: string;
483
- details?: string;
484
- additionalInformation?: {
485
- [key: string]: any;
486
- } | null;
487
- };
488
- }>(`/v1/agent/${encodeURIComponent(agentId)}`, oazapfts.json({
489
- ...opts,
490
- method: "PUT",
491
- body: modifiedAgentRequest
492
- })));
493
- }
494
- /**
495
- * Delete agent by ID
496
- */
497
- export function deleteV1AgentByAgentId({ agentId }: {
498
- agentId: string;
499
- }, opts?: Oazapfts.RequestOpts) {
500
- return oazapfts.ok(oazapfts.fetchJson<{
501
- status: 204;
502
- } | {
503
- status: 404;
504
- data: {
505
- code?: string;
506
- details?: string;
507
- additionalInformation?: {
508
- [key: string]: any;
509
- } | null;
510
- };
511
- } | {
512
- status: 422;
513
- data: {
514
- code?: string;
515
- details?: string;
516
- additionalInformation?: {
517
- [key: string]: any;
518
- } | null;
519
- };
520
- } | {
521
- status: 500;
522
- data: {
523
- code?: string;
524
- details?: string;
525
- additionalInformation?: {
526
- [key: string]: any;
527
- } | null;
528
- };
529
- }>(`/v1/agent/${encodeURIComponent(agentId)}`, {
530
- ...opts,
531
- method: "DELETE"
532
- }));
533
- }
534
- /**
535
- * Favorite an AI agent.
536
- */
537
- export function postV1AgentByAgentIdFavorite({ agentId }: {
538
- agentId: string;
539
- }, opts?: Oazapfts.RequestOpts) {
540
- return oazapfts.ok(oazapfts.fetchJson<{
541
- status: 204;
542
- data: Blob;
543
- } | {
544
- status: 500;
545
- data: {
546
- code?: string;
547
- details?: string;
548
- additionalInformation?: {
549
- [key: string]: any;
550
- } | null;
551
- };
552
- }>(`/v1/agent/${encodeURIComponent(agentId)}/favorite`, {
553
- ...opts,
554
- method: "POST"
555
- }));
556
- }
557
- /**
558
- * Delete favorite of an AI agent.
559
- */
560
- export function deleteV1AgentByAgentIdFavorite({ agentId }: {
561
- agentId: string;
562
- }, opts?: Oazapfts.RequestOpts) {
563
- return oazapfts.ok(oazapfts.fetchJson<{
564
- status: 204;
565
- data: Blob;
566
- } | {
567
- status: 500;
568
- data: {
569
- code?: string;
570
- details?: string;
571
- additionalInformation?: {
572
- [key: string]: any;
573
- } | null;
574
- };
575
- }>(`/v1/agent/${encodeURIComponent(agentId)}/favorite`, {
576
- ...opts,
577
- method: "DELETE"
578
- }));
579
- }
580
- /**
581
- * Fork an AI agent.
582
- */
583
- export function postV1AgentByAgentIdFork({ agentId, forkAgentRequest }: {
584
- agentId: string;
585
- forkAgentRequest?: ForkAgentRequest;
586
- }, opts?: Oazapfts.RequestOpts) {
587
- return oazapfts.ok(oazapfts.fetchJson<{
588
- status: 201;
589
- data: {
590
- id?: string;
591
- };
592
- } | {
593
- status: 500;
594
- data: {
595
- code?: string;
596
- details?: string;
597
- additionalInformation?: {
598
- [key: string]: any;
599
- } | null;
600
- };
601
- }>(`/v1/agent/${encodeURIComponent(agentId)}/fork`, oazapfts.json({
602
- ...opts,
603
- method: "POST",
604
- body: forkAgentRequest
605
- })));
606
- }
607
- /**
608
- * AI Agent update visibility.
609
- */
610
- export function postV1AgentByAgentIdPublish({ agentId, publishRequest }: {
611
- agentId: string;
612
- publishRequest?: PublishRequest;
613
- }, opts?: Oazapfts.RequestOpts) {
614
- return oazapfts.ok(oazapfts.fetchJson<{
615
- status: 204;
616
- } | {
617
- status: 400;
618
- data: {
619
- code?: string;
620
- details?: string;
621
- violations?: ViolationResponse[];
622
- };
623
- } | {
624
- status: 404;
625
- data: {
626
- code?: string;
627
- details?: string;
628
- additionalInformation?: {
629
- [key: string]: any;
630
- } | null;
631
- };
632
- } | {
633
- status: 422;
634
- data: {
635
- code?: string;
636
- details?: string;
637
- additionalInformation?: {
638
- [key: string]: any;
639
- } | null;
640
- };
641
- } | {
642
- status: 500;
643
- data: {
644
- code?: string;
645
- details?: string;
646
- additionalInformation?: {
647
- [key: string]: any;
648
- } | null;
649
- };
650
- }>(`/v1/agent/${encodeURIComponent(agentId)}/publish`, oazapfts.json({
651
- ...opts,
652
- method: "POST",
653
- body: publishRequest
654
- })));
655
- }
656
- /**
657
- * Share an AI agent.
658
- */
659
- export function postV1AgentByAgentIdShare({ agentId }: {
660
- agentId: string;
661
- }, opts?: Oazapfts.RequestOpts) {
662
- return oazapfts.ok(oazapfts.fetchJson<{
663
- status: 204;
664
- data: object;
665
- } | {
666
- status: 500;
667
- data: {
668
- code?: string;
669
- details?: string;
670
- additionalInformation?: {
671
- [key: string]: any;
672
- } | null;
673
- };
674
- }>(`/v1/agent/${encodeURIComponent(agentId)}/share`, {
675
- ...opts,
676
- method: "POST"
677
- }));
678
- }
679
- /**
680
- * Get agent by Slug
681
- */
682
- export function getV1AgentByAgentSlugExists({ agentSlug }: {
683
- agentSlug: string;
684
- }, opts?: Oazapfts.RequestOpts) {
685
- return oazapfts.ok(oazapfts.fetchJson<{
686
- status: 200;
687
- data: {
688
- id: string;
689
- name: string;
690
- slug: string;
691
- description?: string;
692
- avatar?: string;
693
- system_prompt: string;
694
- "type": string;
695
- llm_config?: LlmConfigResponse;
696
- suggested_prompts?: string[];
697
- knowledge_sources_config?: KnowledgeSourceResponse;
698
- visibility_level: VisibilityLevel;
699
- use_only: boolean;
700
- creator_name: string;
701
- created_by: string;
702
- created_at: ZonedDateTime;
703
- updated_by?: string;
704
- updated_at?: ZonedDateTime;
705
- toolkits?: ToolkitsInAgentResponse;
706
- detail_mode?: boolean;
707
- model_id?: string;
708
- model_name?: string;
709
- structured_output?: {
710
- [key: string]: any;
711
- } | null;
712
- llm_settings?: {
713
- [key: string]: any;
714
- } | null;
715
- };
716
- } | {
717
- status: 404;
718
- data: {
719
- code?: string;
720
- details?: string;
721
- additionalInformation?: {
722
- [key: string]: any;
723
- } | null;
724
- };
725
- } | {
726
- status: 500;
727
- data: {
728
- code?: string;
729
- details?: string;
730
- additionalInformation?: {
731
- [key: string]: any;
732
- } | null;
733
- };
734
- }>(`/v1/agent/${encodeURIComponent(agentSlug)}/exists`, {
735
- ...opts
736
- }));
737
- }
738
- /**
739
- * List built-in AI Agents filtered by visibility.
740
- */
741
- export function getV1Agents({ visibility }: {
742
- visibility?: VisibilityLevel;
743
- }, opts?: Oazapfts.RequestOpts) {
744
- return oazapfts.ok(oazapfts.fetchJson<{
745
- status: 200;
746
- data: AgentResponse[];
747
- } | {
748
- status: 500;
749
- data: {
750
- code?: string;
751
- details?: string;
752
- additionalInformation?: {
753
- [key: string]: any;
754
- } | null;
755
- };
756
- }>(`/v1/agents${QS.query(QS.explode({
757
- visibility
758
- }))}`, {
759
- ...opts
760
- }));
761
- }
762
- /**
763
- * Creates a new built-in AI Agent.
764
- */
765
- export function postV1PublicAgent({ newAgentRequest }: {
766
- newAgentRequest?: NewAgentRequest;
767
- }, opts?: Oazapfts.RequestOpts) {
768
- return oazapfts.ok(oazapfts.fetchJson<{
769
- status: 201;
770
- data: {
771
- id?: string;
772
- };
773
- } | {
774
- status: 400;
775
- data: {
776
- code?: string;
777
- details?: string;
778
- violations?: ViolationResponse[];
779
- };
780
- } | {
781
- status: 422;
782
- data: {
783
- code?: string;
784
- details?: string;
785
- additionalInformation?: {
786
- [key: string]: any;
787
- } | null;
788
- };
789
- } | {
790
- status: 500;
791
- data: {
792
- code?: string;
793
- details?: string;
794
- additionalInformation?: {
795
- [key: string]: any;
796
- } | null;
797
- };
798
- }>("/v1/public/agent", oazapfts.json({
799
- ...opts,
800
- method: "POST",
801
- body: newAgentRequest
802
- })));
803
- }
804
- /**
805
- * Get agent by ID
806
- */
807
- export function getV1PublicAgentByAgentId({ agentId }: {
808
- agentId: string;
809
- }, opts?: Oazapfts.RequestOpts) {
810
- return oazapfts.ok(oazapfts.fetchJson<{
811
- status: 200;
812
- data: {
813
- id: string;
814
- name: string;
815
- slug: string;
816
- description?: string;
817
- avatar?: string;
818
- system_prompt: string;
819
- "type": string;
820
- llm_config?: LlmConfigResponse;
821
- suggested_prompts?: string[];
822
- knowledge_sources_config?: KnowledgeSourceResponse;
823
- visibility_level: VisibilityLevel;
824
- use_only: boolean;
825
- creator_name: string;
826
- created_by: string;
827
- created_at: ZonedDateTime;
828
- updated_by?: string;
829
- updated_at?: ZonedDateTime;
830
- toolkits?: ToolkitsInAgentResponse;
831
- detail_mode?: boolean;
832
- model_id?: string;
833
- model_name?: string;
834
- structured_output?: {
835
- [key: string]: any;
836
- } | null;
837
- llm_settings?: {
838
- [key: string]: any;
839
- } | null;
840
- };
841
- } | {
842
- status: 404;
843
- data: {
844
- code?: string;
845
- details?: string;
846
- additionalInformation?: {
847
- [key: string]: any;
848
- } | null;
849
- };
850
- } | {
851
- status: 500;
852
- data: {
853
- code?: string;
854
- details?: string;
855
- additionalInformation?: {
856
- [key: string]: any;
857
- } | null;
858
- };
859
- }>(`/v1/public/agent/${encodeURIComponent(agentId)}`, {
860
- ...opts
861
- }));
862
- }
863
- /**
864
- * Update agent by ID
865
- */
866
- export function putV1PublicAgentByAgentId({ agentId, modifiedAgentRequest }: {
867
- agentId: string;
868
- modifiedAgentRequest?: ModifiedAgentRequest;
869
- }, opts?: Oazapfts.RequestOpts) {
870
- return oazapfts.ok(oazapfts.fetchJson<{
871
- status: 204;
872
- } | {
873
- status: 400;
874
- data: {
875
- code?: string;
876
- details?: string;
877
- violations?: ViolationResponse[];
878
- };
879
- } | {
880
- status: 404;
881
- data: {
882
- code?: string;
883
- details?: string;
884
- additionalInformation?: {
885
- [key: string]: any;
886
- } | null;
887
- };
888
- } | {
889
- status: 422;
890
- data: {
891
- code?: string;
892
- details?: string;
893
- additionalInformation?: {
894
- [key: string]: any;
895
- } | null;
896
- };
897
- } | {
898
- status: 500;
899
- data: {
900
- code?: string;
901
- details?: string;
902
- additionalInformation?: {
903
- [key: string]: any;
904
- } | null;
905
- };
906
- }>(`/v1/public/agent/${encodeURIComponent(agentId)}`, oazapfts.json({
907
- ...opts,
908
- method: "PUT",
909
- body: modifiedAgentRequest
910
- })));
911
- }
912
- /**
913
- * Delete agent by ID
914
- */
915
- export function deleteV1PublicAgentByAgentId({ agentId }: {
916
- agentId: string;
917
- }, opts?: Oazapfts.RequestOpts) {
918
- return oazapfts.ok(oazapfts.fetchJson<{
919
- status: 204;
920
- } | {
921
- status: 404;
922
- data: {
923
- code?: string;
924
- details?: string;
925
- additionalInformation?: {
926
- [key: string]: any;
927
- } | null;
928
- };
929
- } | {
930
- status: 422;
931
- data: {
932
- code?: string;
933
- details?: string;
934
- additionalInformation?: {
935
- [key: string]: any;
936
- } | null;
937
- };
938
- } | {
939
- status: 500;
940
- data: {
941
- code?: string;
942
- details?: string;
943
- additionalInformation?: {
944
- [key: string]: any;
945
- } | null;
946
- };
947
- }>(`/v1/public/agent/${encodeURIComponent(agentId)}`, {
948
- ...opts,
949
- method: "DELETE"
950
- }));
951
- }
952
- /**
953
- * AI Agent update visibility.
954
- */
955
- export function postV1PublicAgentByAgentIdPublish({ agentId, publishRequest }: {
956
- agentId: string;
957
- publishRequest?: PublishRequest;
958
- }, opts?: Oazapfts.RequestOpts) {
959
- return oazapfts.ok(oazapfts.fetchJson<{
960
- status: 204;
961
- } | {
962
- status: 400;
963
- data: {
964
- code?: string;
965
- details?: string;
966
- violations?: ViolationResponse[];
967
- };
968
- } | {
969
- status: 404;
970
- data: {
971
- code?: string;
972
- details?: string;
973
- additionalInformation?: {
974
- [key: string]: any;
975
- } | null;
976
- };
977
- } | {
978
- status: 422;
979
- data: {
980
- code?: string;
981
- details?: string;
982
- additionalInformation?: {
983
- [key: string]: any;
984
- } | null;
985
- };
986
- } | {
987
- status: 500;
988
- data: {
989
- code?: string;
990
- details?: string;
991
- additionalInformation?: {
992
- [key: string]: any;
993
- } | null;
994
- };
995
- }>(`/v1/public/agent/${encodeURIComponent(agentId)}/publish`, oazapfts.json({
996
- ...opts,
997
- method: "POST",
998
- body: publishRequest
999
- })));
1000
- }
1001
- /**
1002
- * Get agent by Slug
1003
- */
1004
- export function getV1PublicAgentByAgentSlugExists({ agentSlug }: {
1005
- agentSlug: string;
1006
- }, opts?: Oazapfts.RequestOpts) {
1007
- return oazapfts.ok(oazapfts.fetchJson<{
1008
- status: 200;
1009
- data: {
1010
- id: string;
1011
- name: string;
1012
- slug: string;
1013
- description?: string;
1014
- avatar?: string;
1015
- system_prompt: string;
1016
- "type": string;
1017
- llm_config?: LlmConfigResponse;
1018
- suggested_prompts?: string[];
1019
- knowledge_sources_config?: KnowledgeSourceResponse;
1020
- visibility_level: VisibilityLevel;
1021
- use_only: boolean;
1022
- creator_name: string;
1023
- created_by: string;
1024
- created_at: ZonedDateTime;
1025
- updated_by?: string;
1026
- updated_at?: ZonedDateTime;
1027
- toolkits?: ToolkitsInAgentResponse;
1028
- detail_mode?: boolean;
1029
- model_id?: string;
1030
- model_name?: string;
1031
- structured_output?: {
1032
- [key: string]: any;
1033
- } | null;
1034
- llm_settings?: {
1035
- [key: string]: any;
1036
- } | null;
1037
- };
1038
- } | {
1039
- status: 404;
1040
- data: {
1041
- code?: string;
1042
- details?: string;
1043
- additionalInformation?: {
1044
- [key: string]: any;
1045
- } | null;
1046
- };
1047
- } | {
1048
- status: 500;
1049
- data: {
1050
- code?: string;
1051
- details?: string;
1052
- additionalInformation?: {
1053
- [key: string]: any;
1054
- } | null;
1055
- };
1056
- }>(`/v1/public/agent/${encodeURIComponent(agentSlug)}/exists`, {
1057
- ...opts
1058
- }));
1059
- }
1060
- /**
1061
- * List built-in AI Agents filtered by visibility.
1062
- */
1063
- export function getV1PublicAgents({ visibility }: {
1064
- visibility?: VisibilityLevel;
1065
- }, opts?: Oazapfts.RequestOpts) {
1066
- return oazapfts.ok(oazapfts.fetchJson<{
1067
- status: 200;
1068
- data: AgentResponse[];
1069
- } | {
1070
- status: 500;
1071
- data: {
1072
- code?: string;
1073
- details?: string;
1074
- additionalInformation?: {
1075
- [key: string]: any;
1076
- } | null;
1077
- };
1078
- }>(`/v1/public/agents${QS.query(QS.explode({
1079
- visibility
1080
- }))}`, {
1081
- ...opts
1082
- }));
1083
- }
1
+ /**
2
+ * ai-agent-mgmt-api API
3
+ * 0.0.1
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 AgentType = "CONVERSATIONAL" | "SINGLE_ANSWER";
16
+ export type LlmConfigRequestPart = {
17
+ model_slug: string;
18
+ temperature?: number | null;
19
+ };
20
+ export type SimilarityFunction = "COSINE" | "EUCLIDEAN" | "DOT_PRODUCT";
21
+ export type KnowledgeSourcesConfigRequestPart = {
22
+ similarity_function?: SimilarityFunction;
23
+ max_number_of_kos?: number | null;
24
+ relevancy_threshold?: number | null;
25
+ post_processing?: boolean | null;
26
+ sealed?: boolean | null;
27
+ /** List of knowledge source ids (ULID). */
28
+ knowledge_sources: string[];
29
+ };
30
+ export type CustomToolRequest = {
31
+ toolkit_id?: string;
32
+ tools_ids?: string[];
33
+ };
34
+ export type NewAgentRequest = {
35
+ name: string;
36
+ slug: string;
37
+ description?: string;
38
+ avatar?: string;
39
+ suggested_prompts?: string[];
40
+ system_prompt: string;
41
+ "type": AgentType;
42
+ llm_config?: (LlmConfigRequestPart) | null;
43
+ knowledge_sources_config?: (KnowledgeSourcesConfigRequestPart) | null;
44
+ builtin_tools_ids?: string[];
45
+ custom_tools?: CustomToolRequest[];
46
+ detail_mode?: boolean;
47
+ model_name?: string | null;
48
+ model_id?: string | null;
49
+ structured_output?: {
50
+ [key: string]: any;
51
+ } | null;
52
+ llm_settings?: {
53
+ [key: string]: any;
54
+ } | null;
55
+ };
56
+ export type ViolationResponse = {
57
+ field?: string;
58
+ message?: string;
59
+ };
60
+ export type WorkspaceListRequest = {
61
+ agentIds?: string[];
62
+ name?: string;
63
+ };
64
+ export type Uuid = string;
65
+ export type WorkspaceForkRequest = {
66
+ agentIds?: string[];
67
+ memberId?: Uuid;
68
+ };
69
+ export type AgentItemFork = {
70
+ agentId?: string;
71
+ isBuiltIn?: boolean;
72
+ };
73
+ export type WorkspaceForkResponse = {
74
+ agents?: AgentItemFork[];
75
+ agentIds?: string[];
76
+ agentIdsAccount?: string[];
77
+ ksIds?: string[];
78
+ ksIdsAccount?: string[];
79
+ errorIds?: string[];
80
+ };
81
+ export type WorkspaceDeleteRequest = {
82
+ agentIds?: string[];
83
+ isRollback?: boolean;
84
+ };
85
+ export type LlmConfigResponse = {
86
+ model_slug: string;
87
+ temperature: number;
88
+ };
89
+ export type KnowledgeSourceDetailResponse = {
90
+ id: string;
91
+ slug: string;
92
+ name: string;
93
+ description: string;
94
+ "type": string;
95
+ creator: string;
96
+ "default": boolean;
97
+ visibility_level: string;
98
+ model_name: string;
99
+ username: string;
100
+ };
101
+ export type KnowledgeSourceResponse = {
102
+ similarity_function: SimilarityFunction;
103
+ max_number_of_kos: number;
104
+ relevancy_threshold: number;
105
+ post_processing: boolean;
106
+ sealed: boolean;
107
+ knowledge_sources: string[];
108
+ knowledge_sources_details?: KnowledgeSourceDetailResponse[];
109
+ };
110
+ export type VisibilityLevel = "PERSONAL" | "SHARED" | "WORKSPACE" | "ACCOUNT" | "FAVORITE";
111
+ export type ZonedDateTime = string;
112
+ export type BuiltinToolResponse = {
113
+ id?: string;
114
+ name?: string;
115
+ description?: string;
116
+ };
117
+ export type BuiltinToolkitResponse = {
118
+ id?: string;
119
+ name?: string;
120
+ description?: string;
121
+ image_url?: string;
122
+ tools?: BuiltinToolResponse[];
123
+ };
124
+ export type CustomToolResponse = {
125
+ id?: string;
126
+ name?: string;
127
+ description?: string;
128
+ method?: string;
129
+ url?: string;
130
+ };
131
+ export type CustomToolkitResponse = {
132
+ id?: string;
133
+ name?: string;
134
+ description?: string;
135
+ avatar?: string;
136
+ secret_id?: string;
137
+ tools?: CustomToolResponse[];
138
+ };
139
+ export type ToolkitsInAgentResponse = {
140
+ builtins?: BuiltinToolkitResponse[];
141
+ customs?: CustomToolkitResponse[];
142
+ };
143
+ export type ModifiedAgentRequest = {
144
+ name: string;
145
+ slug: string;
146
+ description?: string | null;
147
+ avatar?: string | null;
148
+ suggested_prompts?: string[] | null;
149
+ system_prompt?: string | null;
150
+ "type"?: AgentType;
151
+ llm_config?: (LlmConfigRequestPart) | null;
152
+ knowledge_sources_config?: (KnowledgeSourcesConfigRequestPart) | null;
153
+ use_only?: boolean | null;
154
+ builtin_tools_ids?: string[];
155
+ custom_tools?: CustomToolRequest[];
156
+ detail_mode?: boolean | null;
157
+ model_name?: string | null;
158
+ model_id?: string | null;
159
+ llm_settings?: {
160
+ [key: string]: any;
161
+ } | null;
162
+ structured_output?: {
163
+ [key: string]: any;
164
+ } | null;
165
+ };
166
+ export type ForkAgentRequest = {
167
+ slug?: string;
168
+ name?: string | null;
169
+ };
170
+ export type PublishRequest = {
171
+ level: VisibilityLevel;
172
+ use_only?: boolean;
173
+ };
174
+ export type AgentResponse = {
175
+ id: string;
176
+ name: string;
177
+ slug: string;
178
+ description?: string;
179
+ avatar?: string;
180
+ system_prompt: string;
181
+ "type": string;
182
+ llm_config?: LlmConfigResponse;
183
+ suggested_prompts?: string[];
184
+ knowledge_sources_config?: KnowledgeSourceResponse;
185
+ visibility_level: VisibilityLevel;
186
+ use_only: boolean;
187
+ creator_name: string;
188
+ created_by: string;
189
+ created_at: ZonedDateTime;
190
+ updated_by?: string;
191
+ updated_at?: ZonedDateTime;
192
+ toolkits?: ToolkitsInAgentResponse;
193
+ detail_mode?: boolean;
194
+ model_id?: string;
195
+ model_name?: string;
196
+ structured_output?: {
197
+ [key: string]: any;
198
+ } | null;
199
+ llm_settings?: {
200
+ [key: string]: any;
201
+ } | null;
202
+ };
203
+ /**
204
+ * Creates a new AI Agent.
205
+ */
206
+ export function postV1Agent({ newAgentRequest }: {
207
+ newAgentRequest?: NewAgentRequest;
208
+ }, opts?: Oazapfts.RequestOpts) {
209
+ return oazapfts.ok(oazapfts.fetchJson<{
210
+ status: 201;
211
+ data: {
212
+ id?: string;
213
+ };
214
+ } | {
215
+ status: 400;
216
+ data: {
217
+ code?: string;
218
+ details?: string;
219
+ violations?: ViolationResponse[];
220
+ };
221
+ } | {
222
+ status: 422;
223
+ data: {
224
+ code?: string;
225
+ details?: string;
226
+ additionalInformation?: {
227
+ [key: string]: any;
228
+ } | null;
229
+ };
230
+ } | {
231
+ status: 500;
232
+ data: {
233
+ code?: string;
234
+ details?: string;
235
+ additionalInformation?: {
236
+ [key: string]: any;
237
+ } | null;
238
+ };
239
+ }>("/v1/agent", oazapfts.json({
240
+ ...opts,
241
+ method: "POST",
242
+ body: newAgentRequest
243
+ })));
244
+ }
245
+ /**
246
+ * List Workspace Fork AI agents.
247
+ */
248
+ export function postV1AgentDependencies({ workspaceListRequest }: {
249
+ workspaceListRequest?: WorkspaceListRequest;
250
+ }, opts?: Oazapfts.RequestOpts) {
251
+ return oazapfts.ok(oazapfts.fetchJson<{
252
+ status: 201;
253
+ data: Blob;
254
+ } | {
255
+ status: 500;
256
+ data: {
257
+ code?: string;
258
+ details?: string;
259
+ additionalInformation?: {
260
+ [key: string]: any;
261
+ } | null;
262
+ };
263
+ }>("/v1/agent/dependencies", oazapfts.json({
264
+ ...opts,
265
+ method: "POST",
266
+ body: workspaceListRequest
267
+ })));
268
+ }
269
+ /**
270
+ * List agents with specific KS
271
+ */
272
+ export function getV1AgentKnowledgeSourceById({ id }: {
273
+ id: string;
274
+ }, opts?: Oazapfts.RequestOpts) {
275
+ return oazapfts.ok(oazapfts.fetchJson<{
276
+ status: 200;
277
+ data: Blob;
278
+ } | {
279
+ status: 500;
280
+ data: {
281
+ code?: string;
282
+ details?: string;
283
+ additionalInformation?: {
284
+ [key: string]: any;
285
+ } | null;
286
+ };
287
+ }>(`/v1/agent/knowledge-source/${encodeURIComponent(id)}`, {
288
+ ...opts
289
+ }));
290
+ }
291
+ /**
292
+ * Disassociate KS from Agent
293
+ */
294
+ export function deleteV1AgentKnowledgeSourceById({ id }: {
295
+ id: string;
296
+ }, opts?: Oazapfts.RequestOpts) {
297
+ return oazapfts.ok(oazapfts.fetchJson<{
298
+ status: 204;
299
+ data: Blob;
300
+ } | {
301
+ status: 500;
302
+ data: {
303
+ code?: string;
304
+ details?: string;
305
+ additionalInformation?: {
306
+ [key: string]: any;
307
+ } | null;
308
+ };
309
+ }>(`/v1/agent/knowledge-source/${encodeURIComponent(id)}`, {
310
+ ...opts,
311
+ method: "DELETE"
312
+ }));
313
+ }
314
+ /**
315
+ * Workspace Fork AI agents.
316
+ */
317
+ export function postV1AgentWorkspaceFork({ workspaceForkRequest }: {
318
+ workspaceForkRequest?: WorkspaceForkRequest;
319
+ }, opts?: Oazapfts.RequestOpts) {
320
+ return oazapfts.ok(oazapfts.fetchJson<{
321
+ status: 201;
322
+ data: WorkspaceForkResponse[];
323
+ } | {
324
+ status: 500;
325
+ data: {
326
+ code?: string;
327
+ details?: string;
328
+ additionalInformation?: {
329
+ [key: string]: any;
330
+ } | null;
331
+ };
332
+ }>("/v1/agent/workspace/fork", oazapfts.json({
333
+ ...opts,
334
+ method: "POST",
335
+ body: workspaceForkRequest
336
+ })));
337
+ }
338
+ /**
339
+ * Delete Workspace Fork AI agents.
340
+ */
341
+ export function deleteV1AgentWorkspaceFork({ workspaceDeleteRequest }: {
342
+ workspaceDeleteRequest?: WorkspaceDeleteRequest;
343
+ }, opts?: Oazapfts.RequestOpts) {
344
+ return oazapfts.ok(oazapfts.fetchJson<{
345
+ status: 201;
346
+ data: Blob;
347
+ } | {
348
+ status: 500;
349
+ data: {
350
+ code?: string;
351
+ details?: string;
352
+ additionalInformation?: {
353
+ [key: string]: any;
354
+ } | null;
355
+ };
356
+ }>("/v1/agent/workspace/fork", oazapfts.json({
357
+ ...opts,
358
+ method: "DELETE",
359
+ body: workspaceDeleteRequest
360
+ })));
361
+ }
362
+ /**
363
+ * List Workspace Fork AI agents.
364
+ */
365
+ export function postV1AgentWorkspaceList({ workspaceListRequest }: {
366
+ workspaceListRequest?: WorkspaceListRequest;
367
+ }, opts?: Oazapfts.RequestOpts) {
368
+ return oazapfts.ok(oazapfts.fetchJson<{
369
+ status: 201;
370
+ data: Blob;
371
+ } | {
372
+ status: 500;
373
+ data: {
374
+ code?: string;
375
+ details?: string;
376
+ additionalInformation?: {
377
+ [key: string]: any;
378
+ } | null;
379
+ };
380
+ }>("/v1/agent/workspace/list", oazapfts.json({
381
+ ...opts,
382
+ method: "POST",
383
+ body: workspaceListRequest
384
+ })));
385
+ }
386
+ /**
387
+ * Get agent by ID
388
+ */
389
+ export function getV1AgentByAgentId({ agentId }: {
390
+ agentId: string;
391
+ }, opts?: Oazapfts.RequestOpts) {
392
+ return oazapfts.ok(oazapfts.fetchJson<{
393
+ status: 200;
394
+ data: {
395
+ id: string;
396
+ name: string;
397
+ slug: string;
398
+ description?: string;
399
+ avatar?: string;
400
+ system_prompt: string;
401
+ "type": string;
402
+ llm_config?: LlmConfigResponse;
403
+ suggested_prompts?: string[];
404
+ knowledge_sources_config?: KnowledgeSourceResponse;
405
+ visibility_level: VisibilityLevel;
406
+ use_only: boolean;
407
+ creator_name: string;
408
+ created_by: string;
409
+ created_at: ZonedDateTime;
410
+ updated_by?: string;
411
+ updated_at?: ZonedDateTime;
412
+ toolkits?: ToolkitsInAgentResponse;
413
+ detail_mode?: boolean;
414
+ model_id?: string;
415
+ model_name?: string;
416
+ structured_output?: {
417
+ [key: string]: any;
418
+ } | null;
419
+ llm_settings?: {
420
+ [key: string]: any;
421
+ } | null;
422
+ };
423
+ } | {
424
+ status: 404;
425
+ data: {
426
+ code?: string;
427
+ details?: string;
428
+ additionalInformation?: {
429
+ [key: string]: any;
430
+ } | null;
431
+ };
432
+ } | {
433
+ status: 500;
434
+ data: {
435
+ code?: string;
436
+ details?: string;
437
+ additionalInformation?: {
438
+ [key: string]: any;
439
+ } | null;
440
+ };
441
+ }>(`/v1/agent/${encodeURIComponent(agentId)}`, {
442
+ ...opts
443
+ }));
444
+ }
445
+ /**
446
+ * Update agent by ID
447
+ */
448
+ export function putV1AgentByAgentId({ agentId, modifiedAgentRequest }: {
449
+ agentId: string;
450
+ modifiedAgentRequest?: ModifiedAgentRequest;
451
+ }, opts?: Oazapfts.RequestOpts) {
452
+ return oazapfts.ok(oazapfts.fetchJson<{
453
+ status: 204;
454
+ } | {
455
+ status: 400;
456
+ data: {
457
+ code?: string;
458
+ details?: string;
459
+ violations?: ViolationResponse[];
460
+ };
461
+ } | {
462
+ status: 404;
463
+ data: {
464
+ code?: string;
465
+ details?: string;
466
+ additionalInformation?: {
467
+ [key: string]: any;
468
+ } | null;
469
+ };
470
+ } | {
471
+ status: 422;
472
+ data: {
473
+ code?: string;
474
+ details?: string;
475
+ additionalInformation?: {
476
+ [key: string]: any;
477
+ } | null;
478
+ };
479
+ } | {
480
+ status: 500;
481
+ data: {
482
+ code?: string;
483
+ details?: string;
484
+ additionalInformation?: {
485
+ [key: string]: any;
486
+ } | null;
487
+ };
488
+ }>(`/v1/agent/${encodeURIComponent(agentId)}`, oazapfts.json({
489
+ ...opts,
490
+ method: "PUT",
491
+ body: modifiedAgentRequest
492
+ })));
493
+ }
494
+ /**
495
+ * Delete agent by ID
496
+ */
497
+ export function deleteV1AgentByAgentId({ agentId }: {
498
+ agentId: string;
499
+ }, opts?: Oazapfts.RequestOpts) {
500
+ return oazapfts.ok(oazapfts.fetchJson<{
501
+ status: 204;
502
+ } | {
503
+ status: 404;
504
+ data: {
505
+ code?: string;
506
+ details?: string;
507
+ additionalInformation?: {
508
+ [key: string]: any;
509
+ } | null;
510
+ };
511
+ } | {
512
+ status: 422;
513
+ data: {
514
+ code?: string;
515
+ details?: string;
516
+ additionalInformation?: {
517
+ [key: string]: any;
518
+ } | null;
519
+ };
520
+ } | {
521
+ status: 500;
522
+ data: {
523
+ code?: string;
524
+ details?: string;
525
+ additionalInformation?: {
526
+ [key: string]: any;
527
+ } | null;
528
+ };
529
+ }>(`/v1/agent/${encodeURIComponent(agentId)}`, {
530
+ ...opts,
531
+ method: "DELETE"
532
+ }));
533
+ }
534
+ /**
535
+ * Favorite an AI agent.
536
+ */
537
+ export function postV1AgentByAgentIdFavorite({ agentId }: {
538
+ agentId: string;
539
+ }, opts?: Oazapfts.RequestOpts) {
540
+ return oazapfts.ok(oazapfts.fetchJson<{
541
+ status: 204;
542
+ data: Blob;
543
+ } | {
544
+ status: 500;
545
+ data: {
546
+ code?: string;
547
+ details?: string;
548
+ additionalInformation?: {
549
+ [key: string]: any;
550
+ } | null;
551
+ };
552
+ }>(`/v1/agent/${encodeURIComponent(agentId)}/favorite`, {
553
+ ...opts,
554
+ method: "POST"
555
+ }));
556
+ }
557
+ /**
558
+ * Delete favorite of an AI agent.
559
+ */
560
+ export function deleteV1AgentByAgentIdFavorite({ agentId }: {
561
+ agentId: string;
562
+ }, opts?: Oazapfts.RequestOpts) {
563
+ return oazapfts.ok(oazapfts.fetchJson<{
564
+ status: 204;
565
+ data: Blob;
566
+ } | {
567
+ status: 500;
568
+ data: {
569
+ code?: string;
570
+ details?: string;
571
+ additionalInformation?: {
572
+ [key: string]: any;
573
+ } | null;
574
+ };
575
+ }>(`/v1/agent/${encodeURIComponent(agentId)}/favorite`, {
576
+ ...opts,
577
+ method: "DELETE"
578
+ }));
579
+ }
580
+ /**
581
+ * Fork an AI agent.
582
+ */
583
+ export function postV1AgentByAgentIdFork({ agentId, forkAgentRequest }: {
584
+ agentId: string;
585
+ forkAgentRequest?: ForkAgentRequest;
586
+ }, opts?: Oazapfts.RequestOpts) {
587
+ return oazapfts.ok(oazapfts.fetchJson<{
588
+ status: 201;
589
+ data: {
590
+ id?: string;
591
+ };
592
+ } | {
593
+ status: 500;
594
+ data: {
595
+ code?: string;
596
+ details?: string;
597
+ additionalInformation?: {
598
+ [key: string]: any;
599
+ } | null;
600
+ };
601
+ }>(`/v1/agent/${encodeURIComponent(agentId)}/fork`, oazapfts.json({
602
+ ...opts,
603
+ method: "POST",
604
+ body: forkAgentRequest
605
+ })));
606
+ }
607
+ /**
608
+ * AI Agent update visibility.
609
+ */
610
+ export function postV1AgentByAgentIdPublish({ agentId, publishRequest }: {
611
+ agentId: string;
612
+ publishRequest?: PublishRequest;
613
+ }, opts?: Oazapfts.RequestOpts) {
614
+ return oazapfts.ok(oazapfts.fetchJson<{
615
+ status: 204;
616
+ } | {
617
+ status: 400;
618
+ data: {
619
+ code?: string;
620
+ details?: string;
621
+ violations?: ViolationResponse[];
622
+ };
623
+ } | {
624
+ status: 404;
625
+ data: {
626
+ code?: string;
627
+ details?: string;
628
+ additionalInformation?: {
629
+ [key: string]: any;
630
+ } | null;
631
+ };
632
+ } | {
633
+ status: 422;
634
+ data: {
635
+ code?: string;
636
+ details?: string;
637
+ additionalInformation?: {
638
+ [key: string]: any;
639
+ } | null;
640
+ };
641
+ } | {
642
+ status: 500;
643
+ data: {
644
+ code?: string;
645
+ details?: string;
646
+ additionalInformation?: {
647
+ [key: string]: any;
648
+ } | null;
649
+ };
650
+ }>(`/v1/agent/${encodeURIComponent(agentId)}/publish`, oazapfts.json({
651
+ ...opts,
652
+ method: "POST",
653
+ body: publishRequest
654
+ })));
655
+ }
656
+ /**
657
+ * Share an AI agent.
658
+ */
659
+ export function postV1AgentByAgentIdShare({ agentId }: {
660
+ agentId: string;
661
+ }, opts?: Oazapfts.RequestOpts) {
662
+ return oazapfts.ok(oazapfts.fetchJson<{
663
+ status: 204;
664
+ data: object;
665
+ } | {
666
+ status: 500;
667
+ data: {
668
+ code?: string;
669
+ details?: string;
670
+ additionalInformation?: {
671
+ [key: string]: any;
672
+ } | null;
673
+ };
674
+ }>(`/v1/agent/${encodeURIComponent(agentId)}/share`, {
675
+ ...opts,
676
+ method: "POST"
677
+ }));
678
+ }
679
+ /**
680
+ * Get agent by Slug
681
+ */
682
+ export function getV1AgentByAgentSlugExists({ agentSlug }: {
683
+ agentSlug: string;
684
+ }, opts?: Oazapfts.RequestOpts) {
685
+ return oazapfts.ok(oazapfts.fetchJson<{
686
+ status: 200;
687
+ data: {
688
+ id: string;
689
+ name: string;
690
+ slug: string;
691
+ description?: string;
692
+ avatar?: string;
693
+ system_prompt: string;
694
+ "type": string;
695
+ llm_config?: LlmConfigResponse;
696
+ suggested_prompts?: string[];
697
+ knowledge_sources_config?: KnowledgeSourceResponse;
698
+ visibility_level: VisibilityLevel;
699
+ use_only: boolean;
700
+ creator_name: string;
701
+ created_by: string;
702
+ created_at: ZonedDateTime;
703
+ updated_by?: string;
704
+ updated_at?: ZonedDateTime;
705
+ toolkits?: ToolkitsInAgentResponse;
706
+ detail_mode?: boolean;
707
+ model_id?: string;
708
+ model_name?: string;
709
+ structured_output?: {
710
+ [key: string]: any;
711
+ } | null;
712
+ llm_settings?: {
713
+ [key: string]: any;
714
+ } | null;
715
+ };
716
+ } | {
717
+ status: 404;
718
+ data: {
719
+ code?: string;
720
+ details?: string;
721
+ additionalInformation?: {
722
+ [key: string]: any;
723
+ } | null;
724
+ };
725
+ } | {
726
+ status: 500;
727
+ data: {
728
+ code?: string;
729
+ details?: string;
730
+ additionalInformation?: {
731
+ [key: string]: any;
732
+ } | null;
733
+ };
734
+ }>(`/v1/agent/${encodeURIComponent(agentSlug)}/exists`, {
735
+ ...opts
736
+ }));
737
+ }
738
+ /**
739
+ * List built-in AI Agents filtered by visibility.
740
+ */
741
+ export function getV1Agents({ visibility }: {
742
+ visibility?: VisibilityLevel;
743
+ }, opts?: Oazapfts.RequestOpts) {
744
+ return oazapfts.ok(oazapfts.fetchJson<{
745
+ status: 200;
746
+ data: AgentResponse[];
747
+ } | {
748
+ status: 500;
749
+ data: {
750
+ code?: string;
751
+ details?: string;
752
+ additionalInformation?: {
753
+ [key: string]: any;
754
+ } | null;
755
+ };
756
+ }>(`/v1/agents${QS.query(QS.explode({
757
+ visibility
758
+ }))}`, {
759
+ ...opts
760
+ }));
761
+ }
762
+ /**
763
+ * Creates a new built-in AI Agent.
764
+ */
765
+ export function postV1PublicAgent({ newAgentRequest }: {
766
+ newAgentRequest?: NewAgentRequest;
767
+ }, opts?: Oazapfts.RequestOpts) {
768
+ return oazapfts.ok(oazapfts.fetchJson<{
769
+ status: 201;
770
+ data: {
771
+ id?: string;
772
+ };
773
+ } | {
774
+ status: 400;
775
+ data: {
776
+ code?: string;
777
+ details?: string;
778
+ violations?: ViolationResponse[];
779
+ };
780
+ } | {
781
+ status: 422;
782
+ data: {
783
+ code?: string;
784
+ details?: string;
785
+ additionalInformation?: {
786
+ [key: string]: any;
787
+ } | null;
788
+ };
789
+ } | {
790
+ status: 500;
791
+ data: {
792
+ code?: string;
793
+ details?: string;
794
+ additionalInformation?: {
795
+ [key: string]: any;
796
+ } | null;
797
+ };
798
+ }>("/v1/public/agent", oazapfts.json({
799
+ ...opts,
800
+ method: "POST",
801
+ body: newAgentRequest
802
+ })));
803
+ }
804
+ /**
805
+ * Get agent by ID
806
+ */
807
+ export function getV1PublicAgentByAgentId({ agentId }: {
808
+ agentId: string;
809
+ }, opts?: Oazapfts.RequestOpts) {
810
+ return oazapfts.ok(oazapfts.fetchJson<{
811
+ status: 200;
812
+ data: {
813
+ id: string;
814
+ name: string;
815
+ slug: string;
816
+ description?: string;
817
+ avatar?: string;
818
+ system_prompt: string;
819
+ "type": string;
820
+ llm_config?: LlmConfigResponse;
821
+ suggested_prompts?: string[];
822
+ knowledge_sources_config?: KnowledgeSourceResponse;
823
+ visibility_level: VisibilityLevel;
824
+ use_only: boolean;
825
+ creator_name: string;
826
+ created_by: string;
827
+ created_at: ZonedDateTime;
828
+ updated_by?: string;
829
+ updated_at?: ZonedDateTime;
830
+ toolkits?: ToolkitsInAgentResponse;
831
+ detail_mode?: boolean;
832
+ model_id?: string;
833
+ model_name?: string;
834
+ structured_output?: {
835
+ [key: string]: any;
836
+ } | null;
837
+ llm_settings?: {
838
+ [key: string]: any;
839
+ } | null;
840
+ };
841
+ } | {
842
+ status: 404;
843
+ data: {
844
+ code?: string;
845
+ details?: string;
846
+ additionalInformation?: {
847
+ [key: string]: any;
848
+ } | null;
849
+ };
850
+ } | {
851
+ status: 500;
852
+ data: {
853
+ code?: string;
854
+ details?: string;
855
+ additionalInformation?: {
856
+ [key: string]: any;
857
+ } | null;
858
+ };
859
+ }>(`/v1/public/agent/${encodeURIComponent(agentId)}`, {
860
+ ...opts
861
+ }));
862
+ }
863
+ /**
864
+ * Update agent by ID
865
+ */
866
+ export function putV1PublicAgentByAgentId({ agentId, modifiedAgentRequest }: {
867
+ agentId: string;
868
+ modifiedAgentRequest?: ModifiedAgentRequest;
869
+ }, opts?: Oazapfts.RequestOpts) {
870
+ return oazapfts.ok(oazapfts.fetchJson<{
871
+ status: 204;
872
+ } | {
873
+ status: 400;
874
+ data: {
875
+ code?: string;
876
+ details?: string;
877
+ violations?: ViolationResponse[];
878
+ };
879
+ } | {
880
+ status: 404;
881
+ data: {
882
+ code?: string;
883
+ details?: string;
884
+ additionalInformation?: {
885
+ [key: string]: any;
886
+ } | null;
887
+ };
888
+ } | {
889
+ status: 422;
890
+ data: {
891
+ code?: string;
892
+ details?: string;
893
+ additionalInformation?: {
894
+ [key: string]: any;
895
+ } | null;
896
+ };
897
+ } | {
898
+ status: 500;
899
+ data: {
900
+ code?: string;
901
+ details?: string;
902
+ additionalInformation?: {
903
+ [key: string]: any;
904
+ } | null;
905
+ };
906
+ }>(`/v1/public/agent/${encodeURIComponent(agentId)}`, oazapfts.json({
907
+ ...opts,
908
+ method: "PUT",
909
+ body: modifiedAgentRequest
910
+ })));
911
+ }
912
+ /**
913
+ * Delete agent by ID
914
+ */
915
+ export function deleteV1PublicAgentByAgentId({ agentId }: {
916
+ agentId: string;
917
+ }, opts?: Oazapfts.RequestOpts) {
918
+ return oazapfts.ok(oazapfts.fetchJson<{
919
+ status: 204;
920
+ } | {
921
+ status: 404;
922
+ data: {
923
+ code?: string;
924
+ details?: string;
925
+ additionalInformation?: {
926
+ [key: string]: any;
927
+ } | null;
928
+ };
929
+ } | {
930
+ status: 422;
931
+ data: {
932
+ code?: string;
933
+ details?: string;
934
+ additionalInformation?: {
935
+ [key: string]: any;
936
+ } | null;
937
+ };
938
+ } | {
939
+ status: 500;
940
+ data: {
941
+ code?: string;
942
+ details?: string;
943
+ additionalInformation?: {
944
+ [key: string]: any;
945
+ } | null;
946
+ };
947
+ }>(`/v1/public/agent/${encodeURIComponent(agentId)}`, {
948
+ ...opts,
949
+ method: "DELETE"
950
+ }));
951
+ }
952
+ /**
953
+ * AI Agent update visibility.
954
+ */
955
+ export function postV1PublicAgentByAgentIdPublish({ agentId, publishRequest }: {
956
+ agentId: string;
957
+ publishRequest?: PublishRequest;
958
+ }, opts?: Oazapfts.RequestOpts) {
959
+ return oazapfts.ok(oazapfts.fetchJson<{
960
+ status: 204;
961
+ } | {
962
+ status: 400;
963
+ data: {
964
+ code?: string;
965
+ details?: string;
966
+ violations?: ViolationResponse[];
967
+ };
968
+ } | {
969
+ status: 404;
970
+ data: {
971
+ code?: string;
972
+ details?: string;
973
+ additionalInformation?: {
974
+ [key: string]: any;
975
+ } | null;
976
+ };
977
+ } | {
978
+ status: 422;
979
+ data: {
980
+ code?: string;
981
+ details?: string;
982
+ additionalInformation?: {
983
+ [key: string]: any;
984
+ } | null;
985
+ };
986
+ } | {
987
+ status: 500;
988
+ data: {
989
+ code?: string;
990
+ details?: string;
991
+ additionalInformation?: {
992
+ [key: string]: any;
993
+ } | null;
994
+ };
995
+ }>(`/v1/public/agent/${encodeURIComponent(agentId)}/publish`, oazapfts.json({
996
+ ...opts,
997
+ method: "POST",
998
+ body: publishRequest
999
+ })));
1000
+ }
1001
+ /**
1002
+ * Get agent by Slug
1003
+ */
1004
+ export function getV1PublicAgentByAgentSlugExists({ agentSlug }: {
1005
+ agentSlug: string;
1006
+ }, opts?: Oazapfts.RequestOpts) {
1007
+ return oazapfts.ok(oazapfts.fetchJson<{
1008
+ status: 200;
1009
+ data: {
1010
+ id: string;
1011
+ name: string;
1012
+ slug: string;
1013
+ description?: string;
1014
+ avatar?: string;
1015
+ system_prompt: string;
1016
+ "type": string;
1017
+ llm_config?: LlmConfigResponse;
1018
+ suggested_prompts?: string[];
1019
+ knowledge_sources_config?: KnowledgeSourceResponse;
1020
+ visibility_level: VisibilityLevel;
1021
+ use_only: boolean;
1022
+ creator_name: string;
1023
+ created_by: string;
1024
+ created_at: ZonedDateTime;
1025
+ updated_by?: string;
1026
+ updated_at?: ZonedDateTime;
1027
+ toolkits?: ToolkitsInAgentResponse;
1028
+ detail_mode?: boolean;
1029
+ model_id?: string;
1030
+ model_name?: string;
1031
+ structured_output?: {
1032
+ [key: string]: any;
1033
+ } | null;
1034
+ llm_settings?: {
1035
+ [key: string]: any;
1036
+ } | null;
1037
+ };
1038
+ } | {
1039
+ status: 404;
1040
+ data: {
1041
+ code?: string;
1042
+ details?: string;
1043
+ additionalInformation?: {
1044
+ [key: string]: any;
1045
+ } | null;
1046
+ };
1047
+ } | {
1048
+ status: 500;
1049
+ data: {
1050
+ code?: string;
1051
+ details?: string;
1052
+ additionalInformation?: {
1053
+ [key: string]: any;
1054
+ } | null;
1055
+ };
1056
+ }>(`/v1/public/agent/${encodeURIComponent(agentSlug)}/exists`, {
1057
+ ...opts
1058
+ }));
1059
+ }
1060
+ /**
1061
+ * List built-in AI Agents filtered by visibility.
1062
+ */
1063
+ export function getV1PublicAgents({ visibility }: {
1064
+ visibility?: VisibilityLevel;
1065
+ }, opts?: Oazapfts.RequestOpts) {
1066
+ return oazapfts.ok(oazapfts.fetchJson<{
1067
+ status: 200;
1068
+ data: AgentResponse[];
1069
+ } | {
1070
+ status: 500;
1071
+ data: {
1072
+ code?: string;
1073
+ details?: string;
1074
+ additionalInformation?: {
1075
+ [key: string]: any;
1076
+ } | null;
1077
+ };
1078
+ }>(`/v1/public/agents${QS.query(QS.explode({
1079
+ visibility
1080
+ }))}`, {
1081
+ ...opts
1082
+ }));
1083
+ }