@stack-spot/portal-network 0.146.2 → 0.147.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.
@@ -24,10 +24,6 @@ export type BuiltinToolkitResponse = {
24
24
  image_url: string;
25
25
  tools: BuiltinToolResponse[];
26
26
  };
27
- export type AssignToolsToAgentRequest = {
28
- builtin_tool_ids?: string[] | null;
29
- tool_ids?: string[] | null;
30
- };
31
27
  export type ValidationError = {
32
28
  loc: (string | number)[];
33
29
  msg: string;
@@ -36,6 +32,246 @@ export type ValidationError = {
36
32
  export type HttpValidationError = {
37
33
  detail?: ValidationError[];
38
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
+ is_usable_by_others: boolean;
82
+ };
83
+ export type ToolkitUpdateRequest = {
84
+ /** Toolkit name (up to 150 characters, optional) */
85
+ name?: string | null;
86
+ /** Toolkit description (up to 1024 characters, optional) */
87
+ description?: string | null;
88
+ /** Toolkit avatar (text base64, optional) */
89
+ avatar?: string | null;
90
+ /** Visibility level (optional) */
91
+ visibility_level?: VisibilityLevelEnum | null;
92
+ /** IAM secret ID (optional) */
93
+ secret_id?: string | null;
94
+ };
95
+ export type HttpMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
96
+ export type Reference = {
97
+ $ref: string;
98
+ summary?: string | null;
99
+ description?: string | null;
100
+ [key: string]: any;
101
+ };
102
+ export type DataType = "null" | "string" | "number" | "integer" | "boolean" | "array" | "object";
103
+ export type Discriminator = {
104
+ propertyName: string;
105
+ mapping?: {
106
+ [key: string]: string;
107
+ } | null;
108
+ [key: string]: any;
109
+ };
110
+ export type Xml = {
111
+ name?: string | null;
112
+ "namespace"?: string | null;
113
+ prefix?: string | null;
114
+ attribute?: boolean;
115
+ wrapped?: boolean;
116
+ [key: string]: any;
117
+ };
118
+ export type ExternalDocumentation = {
119
+ description?: string | null;
120
+ url: string;
121
+ [key: string]: any;
122
+ };
123
+ export type Schema = {
124
+ allOf?: (Reference | Schema)[] | null;
125
+ anyOf?: (Reference | Schema)[] | null;
126
+ oneOf?: (Reference | Schema)[] | null;
127
+ not?: Reference | Schema | null;
128
+ "if"?: Reference | Schema | null;
129
+ then?: Reference | Schema | null;
130
+ "else"?: Reference | Schema | null;
131
+ dependentSchemas?: {
132
+ [key: string]: Reference | Schema;
133
+ } | null;
134
+ prefixItems?: (Reference | Schema)[] | null;
135
+ items?: Reference | Schema | null;
136
+ contains?: Reference | Schema | null;
137
+ properties?: {
138
+ [key: string]: Reference | Schema;
139
+ } | null;
140
+ patternProperties?: {
141
+ [key: string]: Reference | Schema;
142
+ } | null;
143
+ additionalProperties?: Reference | Schema | boolean | null;
144
+ propertyNames?: Reference | Schema | null;
145
+ unevaluatedItems?: Reference | Schema | null;
146
+ unevaluatedProperties?: Reference | Schema | null;
147
+ "type"?: DataType | DataType[] | null;
148
+ "enum"?: any[] | null;
149
+ "const"?: any | null;
150
+ multipleOf?: number | null;
151
+ maximum?: number | null;
152
+ exclusiveMaximum?: number | null;
153
+ minimum?: number | null;
154
+ exclusiveMinimum?: number | null;
155
+ maxLength?: number | null;
156
+ minLength?: number | null;
157
+ pattern?: string | null;
158
+ maxItems?: number | null;
159
+ minItems?: number | null;
160
+ uniqueItems?: boolean | null;
161
+ maxContains?: number | null;
162
+ minContains?: number | null;
163
+ maxProperties?: number | null;
164
+ minProperties?: number | null;
165
+ required?: string[] | null;
166
+ dependentRequired?: {
167
+ [key: string]: string[];
168
+ } | null;
169
+ format?: string | null;
170
+ contentEncoding?: string | null;
171
+ contentMediaType?: string | null;
172
+ contentSchema?: Reference | Schema | null;
173
+ title?: string | null;
174
+ description?: string | null;
175
+ "default"?: any | null;
176
+ deprecated?: boolean | null;
177
+ readOnly?: boolean | null;
178
+ writeOnly?: boolean | null;
179
+ discriminator?: Discriminator | null;
180
+ xml?: Xml | null;
181
+ externalDocs?: ExternalDocumentation | null;
182
+ [key: string]: any;
183
+ };
184
+ export type Header = {
185
+ description?: string | null;
186
+ required?: boolean;
187
+ deprecated?: boolean;
188
+ style?: string | null;
189
+ explode?: boolean | null;
190
+ schema?: Reference | Schema | null;
191
+ content?: {
192
+ [key: string]: MediaType;
193
+ } | null;
194
+ [key: string]: any;
195
+ };
196
+ export type Encoding = {
197
+ contentType?: string | null;
198
+ headers?: {
199
+ [key: string]: Header | Reference;
200
+ } | null;
201
+ style?: string | null;
202
+ explode?: boolean | null;
203
+ allowReserved?: boolean;
204
+ [key: string]: any;
205
+ };
206
+ export type MediaType = {
207
+ schema?: Reference | Schema | null;
208
+ encoding?: {
209
+ [key: string]: Encoding;
210
+ } | null;
211
+ [key: string]: any;
212
+ };
213
+ export type ParameterLocation = "query" | "header" | "path" | "cookie";
214
+ export type Parameter = {
215
+ description?: string | null;
216
+ required?: boolean;
217
+ deprecated?: boolean;
218
+ style?: string | null;
219
+ explode?: boolean | null;
220
+ schema?: Reference | Schema | null;
221
+ content?: {
222
+ [key: string]: MediaType;
223
+ } | null;
224
+ name: string;
225
+ "in": ParameterLocation;
226
+ allowEmptyValue?: boolean;
227
+ allowReserved?: boolean;
228
+ [key: string]: any;
229
+ };
230
+ export type RequestBody = {
231
+ description?: string | null;
232
+ content: {
233
+ [key: string]: MediaType;
234
+ };
235
+ required?: boolean;
236
+ [key: string]: any;
237
+ };
238
+ export type CustomToolRequest = {
239
+ /** Tool name (up to 256 characters, required) */
240
+ name: string;
241
+ /** Tool description (required) */
242
+ description: string;
243
+ /** HTTP method (required) */
244
+ method: HttpMethod;
245
+ /** Endpoint URL (required, must use https schema) */
246
+ url: string;
247
+ /** Dict of parameters (optional) */
248
+ parameters?: Parameter[] | null;
249
+ /** Dict of request body (optional) */
250
+ request_body?: RequestBody | null;
251
+ /** Response transformation (optional) */
252
+ response_transformation?: string | null;
253
+ };
254
+ export type CustomToolsRequest = {
255
+ custom_tools: CustomToolRequest[];
256
+ /** IAM secret ID. You should use your own secret or an account secret. */
257
+ secret_id?: string | null;
258
+ };
259
+ export type DeleteToolsRequest = {
260
+ /** List of tool IDs to be deleted from the toolkit */
261
+ tool_ids: string[];
262
+ };
263
+ export type AssignCustomToolsAgentRequest = {
264
+ toolkit_id: string;
265
+ tools_ids: string[];
266
+ };
267
+ export type AssignToolsToAgentRequest = {
268
+ builtin_tool_ids?: string[] | null;
269
+ custom_tools?: AssignCustomToolsAgentRequest[] | null;
270
+ };
271
+ export type AgentToolsResponse = {
272
+ builtin_toolkits?: BuiltinToolkitResponse[];
273
+ custom_toolkits?: CustomToolkitResponse[];
274
+ };
39
275
  export type SchemaEnum = "OPENAI";
40
276
  export type FunctionParameter = {
41
277
  /** The type of the parameter */
@@ -45,7 +281,9 @@ export type FunctionParameter = {
45
281
  /** A list of possible values for the parameter (optional) */
46
282
  "enum"?: string[] | null;
47
283
  /** A dictionary of properties for the parameter (optional) */
48
- properties?: object | null;
284
+ properties?: {
285
+ [key: string]: any;
286
+ } | null;
49
287
  /** A list of required parameters (optional) */
50
288
  required?: string[] | null;
51
289
  /** Allow arbitrary data of specific typed */
@@ -69,10 +307,184 @@ export type OpenAiTool = {
69
307
  };
70
308
  export type ExecuteAgentToolRequest = {
71
309
  arguments: string;
310
+ upload_ids?: string[] | null;
72
311
  };
73
312
  export type AgentToolExecutionResponse = {
74
313
  result: string;
75
314
  };
315
+ export type AgentVisibilityLevelEnum = "built_in";
316
+ export type KnowledgeSourcesConfig = {
317
+ knowledge_sources: string[];
318
+ max_number_of_kos?: number;
319
+ relevancy_threshold?: number;
320
+ similarity_function?: string;
321
+ post_processing?: boolean;
322
+ };
323
+ export type ListAgentResponse = {
324
+ id: string;
325
+ name: string;
326
+ slug: string;
327
+ created_by: string | null;
328
+ created_at: string | null;
329
+ visibility_level: string;
330
+ avatar: string | null;
331
+ conversation_starter: string[] | null;
332
+ knowledge_sources_config: KnowledgeSourcesConfig;
333
+ "type"?: string;
334
+ system_prompt?: string;
335
+ creator_name?: string;
336
+ };
337
+ export type AgentType = "CONVERSATIONAL" | "SINGLE_ANSWER";
338
+ export type SimilarityFunctionEnum = "cosine" | "euclidean" | "dot_product";
339
+ export type KnowledgeSourcesConfigRequest = {
340
+ similarity_function?: SimilarityFunctionEnum | null;
341
+ post_processing?: boolean | null;
342
+ max_number_of_kos?: number | null;
343
+ relevancy_threshold?: number | null;
344
+ knowledge_sources?: string[] | null;
345
+ sealed?: boolean | null;
346
+ };
347
+ export type NewAgentRequest = {
348
+ /** LLM model name */
349
+ model_name?: string | null;
350
+ /** LLM model id */
351
+ model_id?: string | null;
352
+ /** Agent name */
353
+ name: string;
354
+ /** Agent unique slug */
355
+ slug: string;
356
+ /** Agent description */
357
+ description?: string | null;
358
+ /** Agent avatar image */
359
+ avatar?: string | null;
360
+ /** Agent suggested prompt */
361
+ suggested_prompts?: string[];
362
+ /** System prompt */
363
+ system_prompt?: string | null;
364
+ /** Agent type */
365
+ "type": AgentType;
366
+ knowledge_sources_config?: KnowledgeSourcesConfigRequest | null;
367
+ builtin_tools_ids?: string[];
368
+ /** Custom tools to assign to the agent */
369
+ custom_tools?: AssignCustomToolsAgentRequest[] | null;
370
+ detail_mode?: boolean;
371
+ structured_output?: string | null;
372
+ llm_settings?: {
373
+ [key: string]: any;
374
+ } | null;
375
+ };
376
+ export type SearchAgentsRequest = {
377
+ /** Agent ids to filter for */
378
+ ids: string[];
379
+ };
380
+ export type KnowledgeSourceConfigModel = {
381
+ similarity_function: SimilarityFunctionEnum;
382
+ max_number_of_kos: number;
383
+ relevancy_threshold: number;
384
+ post_processing: boolean;
385
+ knowledge_sources: string[];
386
+ sealed: boolean;
387
+ created_by?: string | null;
388
+ created_at?: string | null;
389
+ updated_by?: string | null;
390
+ updated_at?: string | null;
391
+ };
392
+ export type BuiltinToolDto = {
393
+ id: string;
394
+ name: string;
395
+ description: string;
396
+ toolkit_id: string;
397
+ };
398
+ export type BuiltinToolkitDto = {
399
+ id: string;
400
+ name: string;
401
+ description: string;
402
+ image_url: string;
403
+ tools: BuiltinToolDto[];
404
+ };
405
+ export type CustomToolkitToolDto = {
406
+ id: string;
407
+ name: string;
408
+ description: string;
409
+ method: string;
410
+ url: string;
411
+ parameters?: {
412
+ [key: string]: any;
413
+ }[] | null;
414
+ request_body?: {
415
+ [key: string]: any;
416
+ } | null;
417
+ response_transformation?: string | null;
418
+ creator_name?: string | null;
419
+ };
420
+ export type CustomToolkitDto = {
421
+ id: string;
422
+ name: string;
423
+ description: string | null;
424
+ avatar: string | null;
425
+ tools: CustomToolkitToolDto[];
426
+ secret_id: string;
427
+ visibility_level: VisibilityLevelEnum;
428
+ creator_name: string;
429
+ is_usable_by_others: boolean;
430
+ };
431
+ export type AgentToolsDto = {
432
+ builtin_toolkits?: BuiltinToolkitDto[];
433
+ custom_toolkits?: CustomToolkitDto[];
434
+ };
435
+ export type LlmSettingsModel = {
436
+ property_key?: string | null;
437
+ property_value?: string | null;
438
+ property_type?: string | null;
439
+ agent_id: string;
440
+ created_by?: string | null;
441
+ created_at?: string | null;
442
+ updated_by?: string | null;
443
+ updated_at?: string | null;
444
+ };
445
+ export type AgentModel = {
446
+ id: string;
447
+ name: string;
448
+ slug: string;
449
+ description?: string | null;
450
+ system_prompt: string;
451
+ visibility_level: string;
452
+ avatar?: string | null;
453
+ "type": string;
454
+ conversation_starter?: string[] | null;
455
+ use_only: boolean;
456
+ detail_mode: boolean;
457
+ structured_output?: string | null;
458
+ model_id?: string | null;
459
+ model_name?: string | null;
460
+ knowledge_source_config?: KnowledgeSourceConfigModel | null;
461
+ toolkits?: AgentToolsDto | null;
462
+ settings?: LlmSettingsModel[];
463
+ created_by?: string | null;
464
+ created_at?: string | null;
465
+ updated_by?: string | null;
466
+ updated_at?: string | null;
467
+ };
468
+ export type InternalListToolkitsRequest = {
469
+ /** List of toolkit IDs to retrieve */
470
+ toolkit_ids: string[];
471
+ };
472
+ export type InternalDeleteToolkitsRequest = {
473
+ /** List of toolkit IDs to delete */
474
+ toolkit_ids: string[];
475
+ };
476
+ export type InternalToolkitForkRequest = {
477
+ /** List of toolkit IDs to fork */
478
+ toolkit_ids: string[];
479
+ };
480
+ export type ToolkitForkResponse = {
481
+ /** List of successfully forked toolkits */
482
+ forked_toolkits: CustomToolkitSimpleResponse[];
483
+ /** List of toolkit IDs that were already account-level and not forked */
484
+ toolkit_ids_account: string[];
485
+ /** List of toolkit IDs that failed to fork */
486
+ error_ids: string[];
487
+ };
76
488
  /**
77
489
  * Health Check
78
490
  */
@@ -87,9 +499,9 @@ export function healthCheckHealthzGet(opts?: Oazapfts.RequestOpts) {
87
499
  }));
88
500
  }
89
501
  /**
90
- * Health Check
502
+ * Readyz
91
503
  */
92
- export function healthCheckReadyzGet(opts?: Oazapfts.RequestOpts) {
504
+ export function readyzReadyzGet(opts?: Oazapfts.RequestOpts) {
93
505
  return oazapfts.ok(oazapfts.fetchJson<{
94
506
  status: 200;
95
507
  data: any;
@@ -102,80 +514,137 @@ export function healthCheckReadyzGet(opts?: Oazapfts.RequestOpts) {
102
514
  /**
103
515
  * Get Public Tool Kits
104
516
  */
105
- export function getPublicToolKitsV1BuiltinToolkitGet(opts?: Oazapfts.RequestOpts) {
517
+ export function getPublicToolKitsV1BuiltinToolkitGet({ xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
518
+ xAccountId?: string | null;
519
+ xUsername?: string | null;
520
+ xUserId?: string | null;
521
+ xUserFullName?: string | null;
522
+ authorization: string;
523
+ }, opts?: Oazapfts.RequestOpts) {
106
524
  return oazapfts.ok(oazapfts.fetchJson<{
107
525
  status: 200;
108
526
  data: BuiltinToolkitResponse[];
109
527
  } | {
110
528
  status: 404;
529
+ } | {
530
+ status: 422;
531
+ data: HttpValidationError;
111
532
  }>("/v1/builtin/toolkit", {
112
- ...opts
533
+ ...opts,
534
+ headers: oazapfts.mergeHeaders(opts?.headers, {
535
+ "x-account-id": xAccountId,
536
+ "x-username": xUsername,
537
+ "x-user-id": xUserId,
538
+ "x-user-full-name": xUserFullName,
539
+ authorization
540
+ })
113
541
  }));
114
542
  }
115
543
  /**
116
- * Assign Tools
544
+ * List Toolkits
117
545
  */
118
- export function assignToolsV1AgentsAgentIdToolsPost({ agentId, isPublic, xAccountId, authorization, assignToolsToAgentRequest }: {
119
- agentId: string;
120
- isPublic?: boolean;
546
+ export function listToolkitsV1ToolkitsGet({ visibility, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
547
+ visibility?: VisibilityLevelEnum;
121
548
  xAccountId?: string | null;
549
+ xUsername?: string | null;
550
+ xUserId?: string | null;
551
+ xUserFullName?: string | null;
122
552
  authorization: string;
123
- assignToolsToAgentRequest: AssignToolsToAgentRequest;
124
553
  }, opts?: Oazapfts.RequestOpts) {
125
554
  return oazapfts.ok(oazapfts.fetchJson<{
126
- status: 204;
555
+ status: 200;
556
+ data: CustomToolkitSimpleResponse[];
127
557
  } | {
128
558
  status: 404;
129
559
  } | {
130
560
  status: 422;
131
561
  data: HttpValidationError;
132
- }>(`/v1/agents/${encodeURIComponent(agentId)}/tools${QS.query(QS.explode({
133
- is_public: isPublic
134
- }))}`, oazapfts.json({
562
+ }>(`/v1/toolkits${QS.query(QS.explode({
563
+ visibility
564
+ }))}`, {
565
+ ...opts,
566
+ headers: oazapfts.mergeHeaders(opts?.headers, {
567
+ "x-account-id": xAccountId,
568
+ "x-username": xUsername,
569
+ "x-user-id": xUserId,
570
+ "x-user-full-name": xUserFullName,
571
+ authorization
572
+ })
573
+ }));
574
+ }
575
+ /**
576
+ * Create Toolkit
577
+ */
578
+ export function createToolkitV1ToolkitsPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, toolkitRequest }: {
579
+ xAccountId?: string | null;
580
+ xUsername?: string | null;
581
+ xUserId?: string | null;
582
+ xUserFullName?: string | null;
583
+ authorization: string;
584
+ toolkitRequest: ToolkitRequest;
585
+ }, opts?: Oazapfts.RequestOpts) {
586
+ return oazapfts.ok(oazapfts.fetchJson<{
587
+ status: 201;
588
+ data: CreatedResponse;
589
+ } | {
590
+ status: 404;
591
+ } | {
592
+ status: 422;
593
+ data: HttpValidationError;
594
+ }>("/v1/toolkits", oazapfts.json({
135
595
  ...opts,
136
596
  method: "POST",
137
- body: assignToolsToAgentRequest,
597
+ body: toolkitRequest,
138
598
  headers: oazapfts.mergeHeaders(opts?.headers, {
139
599
  "x-account-id": xAccountId,
600
+ "x-username": xUsername,
601
+ "x-user-id": xUserId,
602
+ "x-user-full-name": xUserFullName,
140
603
  authorization
141
604
  })
142
605
  })));
143
606
  }
144
607
  /**
145
- * List Tools
608
+ * Get Toolkit
146
609
  */
147
- export function listToolsV1AgentsAgentIdToolsGet({ agentId, isPublic, xAccountId, authorization }: {
148
- agentId: string;
149
- isPublic?: boolean;
610
+ export function getToolkitV1ToolkitsToolkitIdGet({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
611
+ toolkitId: string;
150
612
  xAccountId?: string | null;
613
+ xUsername?: string | null;
614
+ xUserId?: string | null;
615
+ xUserFullName?: string | null;
151
616
  authorization: string;
152
617
  }, opts?: Oazapfts.RequestOpts) {
153
618
  return oazapfts.ok(oazapfts.fetchJson<{
154
619
  status: 200;
155
- data: any;
620
+ data: CustomToolkitResponse;
156
621
  } | {
157
622
  status: 404;
158
623
  } | {
159
624
  status: 422;
160
625
  data: HttpValidationError;
161
- }>(`/v1/agents/${encodeURIComponent(agentId)}/tools${QS.query(QS.explode({
162
- is_public: isPublic
163
- }))}`, {
626
+ }>(`/v1/toolkits/${encodeURIComponent(toolkitId)}`, {
164
627
  ...opts,
165
628
  headers: oazapfts.mergeHeaders(opts?.headers, {
166
629
  "x-account-id": xAccountId,
630
+ "x-username": xUsername,
631
+ "x-user-id": xUserId,
632
+ "x-user-full-name": xUserFullName,
167
633
  authorization
168
634
  })
169
635
  }));
170
636
  }
171
637
  /**
172
- * Delete Tools
638
+ * Update Toolkit
173
639
  */
174
- export function deleteToolsV1AgentsAgentIdToolsDelete({ agentId, isPublic, xAccountId, authorization }: {
175
- agentId: string;
176
- isPublic?: boolean;
640
+ export function updateToolkitV1ToolkitsToolkitIdPatch({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, toolkitUpdateRequest }: {
641
+ toolkitId: string;
177
642
  xAccountId?: string | null;
643
+ xUsername?: string | null;
644
+ xUserId?: string | null;
645
+ xUserFullName?: string | null;
178
646
  authorization: string;
647
+ toolkitUpdateRequest: ToolkitUpdateRequest;
179
648
  }, opts?: Oazapfts.RequestOpts) {
180
649
  return oazapfts.ok(oazapfts.fetchJson<{
181
650
  status: 204;
@@ -184,71 +653,717 @@ export function deleteToolsV1AgentsAgentIdToolsDelete({ agentId, isPublic, xAcco
184
653
  } | {
185
654
  status: 422;
186
655
  data: HttpValidationError;
187
- }>(`/v1/agents/${encodeURIComponent(agentId)}/tools${QS.query(QS.explode({
188
- is_public: isPublic
189
- }))}`, {
656
+ }>(`/v1/toolkits/${encodeURIComponent(toolkitId)}`, oazapfts.json({
657
+ ...opts,
658
+ method: "PATCH",
659
+ body: toolkitUpdateRequest,
660
+ headers: oazapfts.mergeHeaders(opts?.headers, {
661
+ "x-account-id": xAccountId,
662
+ "x-username": xUsername,
663
+ "x-user-id": xUserId,
664
+ "x-user-full-name": xUserFullName,
665
+ authorization
666
+ })
667
+ })));
668
+ }
669
+ /**
670
+ * Delete Toolkit
671
+ */
672
+ export function deleteToolkitV1ToolkitsToolkitIdDelete({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
673
+ toolkitId: string;
674
+ xAccountId?: string | null;
675
+ xUsername?: string | null;
676
+ xUserId?: string | null;
677
+ xUserFullName?: string | null;
678
+ authorization: string;
679
+ }, opts?: Oazapfts.RequestOpts) {
680
+ return oazapfts.ok(oazapfts.fetchJson<{
681
+ status: 204;
682
+ } | {
683
+ status: 404;
684
+ } | {
685
+ status: 422;
686
+ data: HttpValidationError;
687
+ }>(`/v1/toolkits/${encodeURIComponent(toolkitId)}`, {
190
688
  ...opts,
191
689
  method: "DELETE",
192
690
  headers: oazapfts.mergeHeaders(opts?.headers, {
193
691
  "x-account-id": xAccountId,
692
+ "x-username": xUsername,
693
+ "x-user-id": xUserId,
694
+ "x-user-full-name": xUserFullName,
194
695
  authorization
195
696
  })
196
697
  }));
197
698
  }
198
699
  /**
199
- * List Tools By Agent For Schema
700
+ * Fork Toolkit
200
701
  */
201
- export function listToolsByAgentForSchemaV1AgentsAgentIdToolsSchemaSchemaGet({ agentId, schema, isPublic, xAccountId, authorization }: {
202
- agentId: string;
203
- schema: SchemaEnum;
204
- isPublic?: boolean;
702
+ export function forkToolkitV1ToolkitsToolkitIdForkPost({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
703
+ toolkitId: string;
205
704
  xAccountId?: string | null;
705
+ xUsername?: string | null;
706
+ xUserId?: string | null;
707
+ xUserFullName?: string | null;
206
708
  authorization: string;
207
709
  }, opts?: Oazapfts.RequestOpts) {
208
710
  return oazapfts.ok(oazapfts.fetchJson<{
209
- status: 200;
210
- data: (OpenAiTool | object)[];
711
+ status: 201;
712
+ data: CustomToolkitResponse;
211
713
  } | {
212
714
  status: 404;
213
715
  } | {
214
716
  status: 422;
215
717
  data: HttpValidationError;
216
- }>(`/v1/agents/${encodeURIComponent(agentId)}/tools/schema/${encodeURIComponent(schema)}${QS.query(QS.explode({
217
- is_public: isPublic
218
- }))}`, {
718
+ }>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/fork`, {
219
719
  ...opts,
720
+ method: "POST",
220
721
  headers: oazapfts.mergeHeaders(opts?.headers, {
221
722
  "x-account-id": xAccountId,
723
+ "x-username": xUsername,
724
+ "x-user-id": xUserId,
725
+ "x-user-full-name": xUserFullName,
222
726
  authorization
223
727
  })
224
728
  }));
225
729
  }
226
730
  /**
227
- * Execute Tool
731
+ * Get Toolkit Tool
228
732
  */
229
- export function executeToolV1AgentsToolsAgentToolIdExecutePost({ agentToolId, isPublic, xAccountId, authorization, executeAgentToolRequest }: {
230
- agentToolId: string;
231
- isPublic?: boolean;
733
+ export function getToolkitToolV1ToolkitsToolkitIdToolsToolIdGet({ toolkitId, toolId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
734
+ toolkitId: string;
735
+ toolId: string;
232
736
  xAccountId?: string | null;
737
+ xUsername?: string | null;
738
+ xUserId?: string | null;
739
+ xUserFullName?: string | null;
233
740
  authorization: string;
234
- executeAgentToolRequest: ExecuteAgentToolRequest;
235
741
  }, opts?: Oazapfts.RequestOpts) {
236
742
  return oazapfts.ok(oazapfts.fetchJson<{
237
743
  status: 200;
238
- data: AgentToolExecutionResponse;
744
+ data: CustomToolkitToolResponse;
239
745
  } | {
240
746
  status: 404;
241
747
  } | {
242
748
  status: 422;
243
749
  data: HttpValidationError;
244
- }>(`/v1/agents/tools/${encodeURIComponent(agentToolId)}/execute${QS.query(QS.explode({
245
- is_public: isPublic
246
- }))}`, oazapfts.json({
750
+ }>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/tools/${encodeURIComponent(toolId)}`, {
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
+ * Edit Toolkit Tool
763
+ */
764
+ export function editToolkitToolV1ToolkitsToolkitIdToolsToolIdPut({ toolkitId, toolId, xAccountId, xUsername, xUserId, xUserFullName, authorization, customToolRequest }: {
765
+ toolkitId: string;
766
+ toolId: string;
767
+ xAccountId?: string | null;
768
+ xUsername?: string | null;
769
+ xUserId?: string | null;
770
+ xUserFullName?: string | null;
771
+ authorization: string;
772
+ customToolRequest: CustomToolRequest;
773
+ }, opts?: Oazapfts.RequestOpts) {
774
+ return oazapfts.ok(oazapfts.fetchJson<{
775
+ status: 204;
776
+ } | {
777
+ status: 404;
778
+ } | {
779
+ status: 422;
780
+ data: HttpValidationError;
781
+ }>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/tools/${encodeURIComponent(toolId)}`, oazapfts.json({
782
+ ...opts,
783
+ method: "PUT",
784
+ body: customToolRequest,
785
+ headers: oazapfts.mergeHeaders(opts?.headers, {
786
+ "x-account-id": xAccountId,
787
+ "x-username": xUsername,
788
+ "x-user-id": xUserId,
789
+ "x-user-full-name": xUserFullName,
790
+ authorization
791
+ })
792
+ })));
793
+ }
794
+ /**
795
+ * Create Toolkit Tools
796
+ */
797
+ export function createToolkitToolsV1ToolkitsToolkitIdToolsPost({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, customToolsRequest }: {
798
+ toolkitId: string;
799
+ xAccountId?: string | null;
800
+ xUsername?: string | null;
801
+ xUserId?: string | null;
802
+ xUserFullName?: string | null;
803
+ authorization: string;
804
+ customToolsRequest: CustomToolsRequest;
805
+ }, opts?: Oazapfts.RequestOpts) {
806
+ return oazapfts.ok(oazapfts.fetchJson<{
807
+ status: 204;
808
+ } | {
809
+ status: 404;
810
+ } | {
811
+ status: 422;
812
+ data: HttpValidationError;
813
+ }>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/tools`, oazapfts.json({
247
814
  ...opts,
248
815
  method: "POST",
249
- body: executeAgentToolRequest,
816
+ body: customToolsRequest,
817
+ headers: oazapfts.mergeHeaders(opts?.headers, {
818
+ "x-account-id": xAccountId,
819
+ "x-username": xUsername,
820
+ "x-user-id": xUserId,
821
+ "x-user-full-name": xUserFullName,
822
+ authorization
823
+ })
824
+ })));
825
+ }
826
+ /**
827
+ * Delete Toolkit Tools
828
+ */
829
+ export function deleteToolkitToolsV1ToolkitsToolkitIdToolsDelete({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, deleteToolsRequest }: {
830
+ toolkitId: string;
831
+ xAccountId?: string | null;
832
+ xUsername?: string | null;
833
+ xUserId?: string | null;
834
+ xUserFullName?: string | null;
835
+ authorization: string;
836
+ deleteToolsRequest: DeleteToolsRequest;
837
+ }, opts?: Oazapfts.RequestOpts) {
838
+ return oazapfts.ok(oazapfts.fetchJson<{
839
+ status: 204;
840
+ } | {
841
+ status: 404;
842
+ } | {
843
+ status: 422;
844
+ data: HttpValidationError;
845
+ }>(`/v1/toolkits/${encodeURIComponent(toolkitId)}/tools`, oazapfts.json({
846
+ ...opts,
847
+ method: "DELETE",
848
+ body: deleteToolsRequest,
849
+ headers: oazapfts.mergeHeaders(opts?.headers, {
850
+ "x-account-id": xAccountId,
851
+ "x-username": xUsername,
852
+ "x-user-id": xUserId,
853
+ "x-user-full-name": xUserFullName,
854
+ authorization
855
+ })
856
+ })));
857
+ }
858
+ /**
859
+ * Split Uploaded File Preview
860
+ */
861
+ export function splitUploadedFilePreviewV1ToolkitsToolsPreviewFileUploadIdGet({ fileUploadId, authorization, xAccountId, xUsername, xUserId, xUserFullName, authorizationHeader }: {
862
+ fileUploadId: string;
863
+ authorization: string;
864
+ xAccountId?: string | null;
865
+ xUsername?: string | null;
866
+ xUserId?: string | null;
867
+ xUserFullName?: string | null;
868
+ authorizationHeader: string;
869
+ }, opts?: Oazapfts.RequestOpts) {
870
+ return oazapfts.ok(oazapfts.fetchJson<{
871
+ status: 200;
872
+ data: any;
873
+ } | {
874
+ status: 404;
875
+ } | {
876
+ status: 422;
877
+ data: HttpValidationError;
878
+ }>(`/v1/toolkits/tools/preview/${encodeURIComponent(fileUploadId)}`, {
879
+ ...opts,
880
+ headers: oazapfts.mergeHeaders(opts?.headers, {
881
+ Authorization: authorization,
882
+ "x-account-id": xAccountId,
883
+ "x-username": xUsername,
884
+ "x-user-id": xUserId,
885
+ "x-user-full-name": xUserFullName,
886
+ authorization: authorizationHeader
887
+ })
888
+ }));
889
+ }
890
+ /**
891
+ * Assign Tools
892
+ */
893
+ export function assignToolsV1AgentsAgentIdToolsPost({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, assignToolsToAgentRequest }: {
894
+ agentId: string;
895
+ isPublic?: boolean;
896
+ xAccountId?: string | null;
897
+ xUsername?: string | null;
898
+ xUserId?: string | null;
899
+ xUserFullName?: string | null;
900
+ authorization: string;
901
+ assignToolsToAgentRequest: AssignToolsToAgentRequest;
902
+ }, opts?: Oazapfts.RequestOpts) {
903
+ return oazapfts.ok(oazapfts.fetchJson<{
904
+ status: 204;
905
+ } | {
906
+ status: 404;
907
+ } | {
908
+ status: 422;
909
+ data: HttpValidationError;
910
+ }>(`/v1/agents/${encodeURIComponent(agentId)}/tools${QS.query(QS.explode({
911
+ is_public: isPublic
912
+ }))}`, oazapfts.json({
913
+ ...opts,
914
+ method: "POST",
915
+ body: assignToolsToAgentRequest,
916
+ headers: oazapfts.mergeHeaders(opts?.headers, {
917
+ "x-account-id": xAccountId,
918
+ "x-username": xUsername,
919
+ "x-user-id": xUserId,
920
+ "x-user-full-name": xUserFullName,
921
+ authorization
922
+ })
923
+ })));
924
+ }
925
+ /**
926
+ * List Tools
927
+ */
928
+ export function listToolsV1AgentsAgentIdToolsGet({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
929
+ agentId: string;
930
+ isPublic?: boolean;
931
+ xAccountId?: string | null;
932
+ xUsername?: string | null;
933
+ xUserId?: string | null;
934
+ xUserFullName?: string | null;
935
+ authorization: string;
936
+ }, opts?: Oazapfts.RequestOpts) {
937
+ return oazapfts.ok(oazapfts.fetchJson<{
938
+ status: 200;
939
+ data: AgentToolsResponse;
940
+ } | {
941
+ status: 404;
942
+ } | {
943
+ status: 422;
944
+ data: HttpValidationError;
945
+ }>(`/v1/agents/${encodeURIComponent(agentId)}/tools${QS.query(QS.explode({
946
+ is_public: isPublic
947
+ }))}`, {
948
+ ...opts,
949
+ headers: oazapfts.mergeHeaders(opts?.headers, {
950
+ "x-account-id": xAccountId,
951
+ "x-username": xUsername,
952
+ "x-user-id": xUserId,
953
+ "x-user-full-name": xUserFullName,
954
+ authorization
955
+ })
956
+ }));
957
+ }
958
+ /**
959
+ * Delete Tools
960
+ */
961
+ export function deleteToolsV1AgentsAgentIdToolsDelete({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
962
+ agentId: string;
963
+ isPublic?: boolean;
964
+ xAccountId?: string | null;
965
+ xUsername?: string | null;
966
+ xUserId?: string | null;
967
+ xUserFullName?: string | null;
968
+ authorization: string;
969
+ }, opts?: Oazapfts.RequestOpts) {
970
+ return oazapfts.ok(oazapfts.fetchJson<{
971
+ status: 204;
972
+ } | {
973
+ status: 404;
974
+ } | {
975
+ status: 422;
976
+ data: HttpValidationError;
977
+ }>(`/v1/agents/${encodeURIComponent(agentId)}/tools${QS.query(QS.explode({
978
+ is_public: isPublic
979
+ }))}`, {
980
+ ...opts,
981
+ method: "DELETE",
982
+ headers: oazapfts.mergeHeaders(opts?.headers, {
983
+ "x-account-id": xAccountId,
984
+ "x-username": xUsername,
985
+ "x-user-id": xUserId,
986
+ "x-user-full-name": xUserFullName,
987
+ authorization
988
+ })
989
+ }));
990
+ }
991
+ /**
992
+ * List Tools By Agent For Schema
993
+ */
994
+ export function listToolsByAgentForSchemaV1AgentsAgentIdToolsSchemaSchemaGet({ agentId, schema, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
995
+ agentId: string;
996
+ schema: SchemaEnum;
997
+ isPublic?: boolean;
998
+ xAccountId?: string | null;
999
+ xUsername?: string | null;
1000
+ xUserId?: string | null;
1001
+ xUserFullName?: string | null;
1002
+ authorization: string;
1003
+ }, opts?: Oazapfts.RequestOpts) {
1004
+ return oazapfts.ok(oazapfts.fetchJson<{
1005
+ status: 200;
1006
+ data: (OpenAiTool | {
1007
+ [key: string]: any;
1008
+ })[];
1009
+ } | {
1010
+ status: 404;
1011
+ } | {
1012
+ status: 422;
1013
+ data: HttpValidationError;
1014
+ }>(`/v1/agents/${encodeURIComponent(agentId)}/tools/schema/${encodeURIComponent(schema)}${QS.query(QS.explode({
1015
+ is_public: isPublic
1016
+ }))}`, {
1017
+ ...opts,
1018
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1019
+ "x-account-id": xAccountId,
1020
+ "x-username": xUsername,
1021
+ "x-user-id": xUserId,
1022
+ "x-user-full-name": xUserFullName,
1023
+ authorization
1024
+ })
1025
+ }));
1026
+ }
1027
+ /**
1028
+ * Execute Tool
1029
+ */
1030
+ export function executeToolV1AgentsToolsAgentToolIdExecutePost({ agentToolId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, executeAgentToolRequest }: {
1031
+ agentToolId: string;
1032
+ isPublic?: boolean;
1033
+ xAccountId?: string | null;
1034
+ xUsername?: string | null;
1035
+ xUserId?: string | null;
1036
+ xUserFullName?: string | null;
1037
+ authorization: string;
1038
+ executeAgentToolRequest: ExecuteAgentToolRequest;
1039
+ }, opts?: Oazapfts.RequestOpts) {
1040
+ return oazapfts.ok(oazapfts.fetchJson<{
1041
+ status: 200;
1042
+ data: AgentToolExecutionResponse;
1043
+ } | {
1044
+ status: 404;
1045
+ } | {
1046
+ status: 422;
1047
+ data: HttpValidationError;
1048
+ }>(`/v1/agents/tools/${encodeURIComponent(agentToolId)}/execute${QS.query(QS.explode({
1049
+ is_public: isPublic
1050
+ }))}`, oazapfts.json({
1051
+ ...opts,
1052
+ method: "POST",
1053
+ body: executeAgentToolRequest,
1054
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1055
+ "x-account-id": xAccountId,
1056
+ "x-username": xUsername,
1057
+ "x-user-id": xUserId,
1058
+ "x-user-full-name": xUserFullName,
1059
+ authorization
1060
+ })
1061
+ })));
1062
+ }
1063
+ /**
1064
+ * List Agents
1065
+ */
1066
+ export function listAgentsV1AgentsGet({ name, slug, visibility, size, page, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1067
+ name?: string | null;
1068
+ slug?: string | null;
1069
+ visibility?: AgentVisibilityLevelEnum | VisibilityLevelEnum;
1070
+ size?: number;
1071
+ page?: number;
1072
+ xAccountId?: string | null;
1073
+ xUsername?: string | null;
1074
+ xUserId?: string | null;
1075
+ xUserFullName?: string | null;
1076
+ authorization: string;
1077
+ }, opts?: Oazapfts.RequestOpts) {
1078
+ return oazapfts.ok(oazapfts.fetchJson<{
1079
+ status: 200;
1080
+ data: ListAgentResponse[];
1081
+ } | {
1082
+ status: 404;
1083
+ } | {
1084
+ status: 422;
1085
+ data: HttpValidationError;
1086
+ }>(`/v1/agents${QS.query(QS.explode({
1087
+ name,
1088
+ slug,
1089
+ visibility,
1090
+ size,
1091
+ page
1092
+ }))}`, {
1093
+ ...opts,
1094
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1095
+ "x-account-id": xAccountId,
1096
+ "x-username": xUsername,
1097
+ "x-user-id": xUserId,
1098
+ "x-user-full-name": xUserFullName,
1099
+ authorization
1100
+ })
1101
+ }));
1102
+ }
1103
+ /**
1104
+ * Create Agent
1105
+ */
1106
+ export function createAgentV1AgentsPost({ isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, newAgentRequest }: {
1107
+ isPublic?: boolean;
1108
+ xAccountId?: string | null;
1109
+ xUsername?: string | null;
1110
+ xUserId?: string | null;
1111
+ xUserFullName?: string | null;
1112
+ authorization: string;
1113
+ newAgentRequest: NewAgentRequest;
1114
+ }, opts?: Oazapfts.RequestOpts) {
1115
+ return oazapfts.ok(oazapfts.fetchJson<{
1116
+ status: 201;
1117
+ data: CreatedResponse;
1118
+ } | {
1119
+ status: 404;
1120
+ } | {
1121
+ status: 422;
1122
+ data: HttpValidationError;
1123
+ }>(`/v1/agents${QS.query(QS.explode({
1124
+ is_public: isPublic
1125
+ }))}`, oazapfts.json({
1126
+ ...opts,
1127
+ method: "POST",
1128
+ body: newAgentRequest,
1129
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1130
+ "x-account-id": xAccountId,
1131
+ "x-username": xUsername,
1132
+ "x-user-id": xUserId,
1133
+ "x-user-full-name": xUserFullName,
1134
+ authorization
1135
+ })
1136
+ })));
1137
+ }
1138
+ /**
1139
+ * Search Agents
1140
+ */
1141
+ export function searchAgentsV1AgentsSearchPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, searchAgentsRequest }: {
1142
+ xAccountId?: string | null;
1143
+ xUsername?: string | null;
1144
+ xUserId?: string | null;
1145
+ xUserFullName?: string | null;
1146
+ authorization: string;
1147
+ searchAgentsRequest: SearchAgentsRequest;
1148
+ }, opts?: Oazapfts.RequestOpts) {
1149
+ return oazapfts.ok(oazapfts.fetchJson<{
1150
+ status: 200;
1151
+ data: ListAgentResponse[];
1152
+ } | {
1153
+ status: 404;
1154
+ } | {
1155
+ status: 422;
1156
+ data: HttpValidationError;
1157
+ }>("/v1/agents/search", oazapfts.json({
1158
+ ...opts,
1159
+ method: "POST",
1160
+ body: searchAgentsRequest,
1161
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1162
+ "x-account-id": xAccountId,
1163
+ "x-username": xUsername,
1164
+ "x-user-id": xUserId,
1165
+ "x-user-full-name": xUserFullName,
1166
+ authorization
1167
+ })
1168
+ })));
1169
+ }
1170
+ /**
1171
+ * Get Agent
1172
+ */
1173
+ export function getAgentV1AgentsAgentIdGet({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
1174
+ agentId: string;
1175
+ xAccountId?: string | null;
1176
+ xUsername?: string | null;
1177
+ xUserId?: string | null;
1178
+ xUserFullName?: string | null;
1179
+ authorization: string;
1180
+ }, opts?: Oazapfts.RequestOpts) {
1181
+ return oazapfts.ok(oazapfts.fetchJson<{
1182
+ status: 200;
1183
+ data: AgentModel;
1184
+ } | {
1185
+ status: 404;
1186
+ } | {
1187
+ status: 422;
1188
+ data: HttpValidationError;
1189
+ }>(`/v1/agents/${encodeURIComponent(agentId)}`, {
1190
+ ...opts,
1191
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1192
+ "x-account-id": xAccountId,
1193
+ "x-username": xUsername,
1194
+ "x-user-id": xUserId,
1195
+ "x-user-full-name": xUserFullName,
1196
+ authorization
1197
+ })
1198
+ }));
1199
+ }
1200
+ /**
1201
+ * Update Agent
1202
+ */
1203
+ export function updateAgentV1AgentsAgentIdPut({ agentId }: {
1204
+ agentId: string;
1205
+ }, opts?: Oazapfts.RequestOpts) {
1206
+ return oazapfts.ok(oazapfts.fetchJson<{
1207
+ status: 200;
1208
+ data: any;
1209
+ } | {
1210
+ status: 404;
1211
+ } | {
1212
+ status: 422;
1213
+ data: HttpValidationError;
1214
+ }>(`/v1/agents/${encodeURIComponent(agentId)}`, {
1215
+ ...opts,
1216
+ method: "PUT"
1217
+ }));
1218
+ }
1219
+ /**
1220
+ * Delete Agent
1221
+ */
1222
+ export function deleteAgentV1AgentsAgentIdDelete({ agentId }: {
1223
+ agentId: string;
1224
+ }, opts?: Oazapfts.RequestOpts) {
1225
+ return oazapfts.ok(oazapfts.fetchJson<{
1226
+ status: 200;
1227
+ data: any;
1228
+ } | {
1229
+ status: 404;
1230
+ } | {
1231
+ status: 422;
1232
+ data: HttpValidationError;
1233
+ }>(`/v1/agents/${encodeURIComponent(agentId)}`, {
1234
+ ...opts,
1235
+ method: "DELETE"
1236
+ }));
1237
+ }
1238
+ /**
1239
+ * Add Favorite
1240
+ */
1241
+ export function addFavoriteV1AgentsAgentIdFavoritePost({ agentId }: {
1242
+ agentId: string;
1243
+ }, opts?: Oazapfts.RequestOpts) {
1244
+ return oazapfts.ok(oazapfts.fetchJson<{
1245
+ status: 200;
1246
+ data: any;
1247
+ } | {
1248
+ status: 404;
1249
+ } | {
1250
+ status: 422;
1251
+ data: HttpValidationError;
1252
+ }>(`/v1/agents/${encodeURIComponent(agentId)}/favorite`, {
1253
+ ...opts,
1254
+ method: "POST"
1255
+ }));
1256
+ }
1257
+ /**
1258
+ * Publish Agent
1259
+ */
1260
+ export function publishAgentV1AgentsAgentIdPublishPost({ agentId }: {
1261
+ agentId: string;
1262
+ }, opts?: Oazapfts.RequestOpts) {
1263
+ return oazapfts.ok(oazapfts.fetchJson<{
1264
+ status: 200;
1265
+ data: any;
1266
+ } | {
1267
+ status: 404;
1268
+ } | {
1269
+ status: 422;
1270
+ data: HttpValidationError;
1271
+ }>(`/v1/agents/${encodeURIComponent(agentId)}/publish`, {
1272
+ ...opts,
1273
+ method: "POST"
1274
+ }));
1275
+ }
1276
+ /**
1277
+ * Internal List Toolkits By Ids
1278
+ */
1279
+ export function internalListToolkitsByIdsV1SpotToolkitsPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, internalListToolkitsRequest }: {
1280
+ xAccountId: string;
1281
+ xUsername?: string | null;
1282
+ xUserId?: string | null;
1283
+ xUserFullName?: string | null;
1284
+ authorization: string;
1285
+ internalListToolkitsRequest: InternalListToolkitsRequest;
1286
+ }, opts?: Oazapfts.RequestOpts) {
1287
+ return oazapfts.ok(oazapfts.fetchJson<{
1288
+ status: 200;
1289
+ data: CustomToolkitSimpleResponse[];
1290
+ } | {
1291
+ status: 404;
1292
+ } | {
1293
+ status: 422;
1294
+ data: HttpValidationError;
1295
+ }>("/v1/spot/toolkits", oazapfts.json({
1296
+ ...opts,
1297
+ method: "POST",
1298
+ body: internalListToolkitsRequest,
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
+ * Internal Delete Toolkits By Ids
1310
+ */
1311
+ export function internalDeleteToolkitsByIdsV1SpotToolkitsDelete({ xAccountId, xUsername, xUserId, xUserFullName, authorization, internalDeleteToolkitsRequest }: {
1312
+ xAccountId: string;
1313
+ xUsername?: string | null;
1314
+ xUserId?: string | null;
1315
+ xUserFullName?: string | null;
1316
+ authorization: string;
1317
+ internalDeleteToolkitsRequest: InternalDeleteToolkitsRequest;
1318
+ }, opts?: Oazapfts.RequestOpts) {
1319
+ return oazapfts.ok(oazapfts.fetchJson<{
1320
+ status: 204;
1321
+ } | {
1322
+ status: 404;
1323
+ } | {
1324
+ status: 422;
1325
+ data: HttpValidationError;
1326
+ }>("/v1/spot/toolkits", oazapfts.json({
1327
+ ...opts,
1328
+ method: "DELETE",
1329
+ body: internalDeleteToolkitsRequest,
1330
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1331
+ "x-account-id": xAccountId,
1332
+ "x-username": xUsername,
1333
+ "x-user-id": xUserId,
1334
+ "x-user-full-name": xUserFullName,
1335
+ authorization
1336
+ })
1337
+ })));
1338
+ }
1339
+ /**
1340
+ * Internal Fork Toolkits By Ids
1341
+ */
1342
+ export function internalForkToolkitsByIdsV1SpotToolkitsForkPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, internalToolkitForkRequest }: {
1343
+ xAccountId: string;
1344
+ xUsername: string;
1345
+ xUserId: string;
1346
+ xUserFullName: string;
1347
+ authorization: string;
1348
+ internalToolkitForkRequest: InternalToolkitForkRequest;
1349
+ }, opts?: Oazapfts.RequestOpts) {
1350
+ return oazapfts.ok(oazapfts.fetchJson<{
1351
+ status: 200;
1352
+ data: ToolkitForkResponse;
1353
+ } | {
1354
+ status: 404;
1355
+ } | {
1356
+ status: 422;
1357
+ data: HttpValidationError;
1358
+ }>("/v1/spot/toolkits/fork", oazapfts.json({
1359
+ ...opts,
1360
+ method: "POST",
1361
+ body: internalToolkitForkRequest,
250
1362
  headers: oazapfts.mergeHeaders(opts?.headers, {
251
1363
  "x-account-id": xAccountId,
1364
+ "x-username": xUsername,
1365
+ "x-user-id": xUserId,
1366
+ "x-user-full-name": xUserFullName,
252
1367
  authorization
253
1368
  })
254
1369
  })));