@stack-spot/portal-network 0.200.0 → 0.200.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/CHANGELOG.md +170 -0
  2. package/dist/api/account.d.ts +331 -89
  3. package/dist/api/account.d.ts.map +1 -1
  4. package/dist/api/account.js +203 -46
  5. package/dist/api/account.js.map +1 -1
  6. package/dist/api/accountAssetManager.d.ts +279 -0
  7. package/dist/api/accountAssetManager.d.ts.map +1 -0
  8. package/dist/api/accountAssetManager.js +167 -0
  9. package/dist/api/accountAssetManager.js.map +1 -0
  10. package/dist/api/agent-tools.d.ts +152 -148
  11. package/dist/api/agent-tools.d.ts.map +1 -1
  12. package/dist/api/agent-tools.js +41 -4
  13. package/dist/api/agent-tools.js.map +1 -1
  14. package/dist/api/ai.d.ts +287 -19
  15. package/dist/api/ai.d.ts.map +1 -1
  16. package/dist/api/ai.js +196 -11
  17. package/dist/api/ai.js.map +1 -1
  18. package/dist/api/codeShift.d.ts +107 -6
  19. package/dist/api/codeShift.d.ts.map +1 -1
  20. package/dist/api/codeShift.js +70 -6
  21. package/dist/api/codeShift.js.map +1 -1
  22. package/dist/api/dataIntegration.d.ts +291 -1
  23. package/dist/api/dataIntegration.d.ts.map +1 -1
  24. package/dist/api/dataIntegration.js +254 -0
  25. package/dist/api/dataIntegration.js.map +1 -1
  26. package/dist/api/discover.d.ts +79 -4
  27. package/dist/api/discover.d.ts.map +1 -1
  28. package/dist/api/discover.js +73 -7
  29. package/dist/api/discover.js.map +1 -1
  30. package/dist/api/edpBfa.d.ts +215 -0
  31. package/dist/api/edpBfa.d.ts.map +1 -0
  32. package/dist/api/edpBfa.js +87 -0
  33. package/dist/api/edpBfa.js.map +1 -0
  34. package/dist/api-addresses.d.ts +11 -20
  35. package/dist/api-addresses.d.ts.map +1 -1
  36. package/dist/api-addresses.js +31 -17
  37. package/dist/api-addresses.js.map +1 -1
  38. package/dist/apis-itau.json +16 -0
  39. package/dist/apis.json +16 -0
  40. package/dist/client/account-asset-manager.d.ts +110 -0
  41. package/dist/client/account-asset-manager.d.ts.map +1 -0
  42. package/dist/client/account-asset-manager.js +160 -0
  43. package/dist/client/account-asset-manager.js.map +1 -0
  44. package/dist/client/account.d.ts +11 -9
  45. package/dist/client/account.d.ts.map +1 -1
  46. package/dist/client/account.js +11 -8
  47. package/dist/client/account.js.map +1 -1
  48. package/dist/client/agent-tools.d.ts +35 -2
  49. package/dist/client/agent-tools.d.ts.map +1 -1
  50. package/dist/client/agent-tools.js +26 -3
  51. package/dist/client/agent-tools.js.map +1 -1
  52. package/dist/client/ai.d.ts +160 -2
  53. package/dist/client/ai.d.ts.map +1 -1
  54. package/dist/client/ai.js +120 -2
  55. package/dist/client/ai.js.map +1 -1
  56. package/dist/client/code-shift.d.ts +51 -2
  57. package/dist/client/code-shift.d.ts.map +1 -1
  58. package/dist/client/code-shift.js +46 -1
  59. package/dist/client/code-shift.js.map +1 -1
  60. package/dist/client/data-integration.d.ts +30 -0
  61. package/dist/client/data-integration.d.ts.map +1 -1
  62. package/dist/client/data-integration.js +29 -2
  63. package/dist/client/data-integration.js.map +1 -1
  64. package/dist/client/discover.d.ts +16 -2
  65. package/dist/client/discover.d.ts.map +1 -1
  66. package/dist/client/discover.js +28 -1
  67. package/dist/client/discover.js.map +1 -1
  68. package/dist/client/edp-bfa.d.ts +16 -0
  69. package/dist/client/edp-bfa.d.ts.map +1 -0
  70. package/dist/client/edp-bfa.js +24 -0
  71. package/dist/client/edp-bfa.js.map +1 -0
  72. package/dist/client/notification.d.ts +7 -0
  73. package/dist/client/notification.d.ts.map +1 -1
  74. package/dist/client/notification.js +10 -1
  75. package/dist/client/notification.js.map +1 -1
  76. package/dist/client/secrets.d.ts.map +1 -1
  77. package/dist/client/secrets.js +1 -1
  78. package/dist/client/secrets.js.map +1 -1
  79. package/dist/client/workspace-ai.d.ts +5 -5
  80. package/dist/client/workspace-manager.d.ts +15 -0
  81. package/dist/client/workspace-manager.d.ts.map +1 -1
  82. package/dist/client/workspace-manager.js +19 -1
  83. package/dist/client/workspace-manager.js.map +1 -1
  84. package/dist/error/dictionary/accountAssetManager.d.ts +11 -0
  85. package/dist/error/dictionary/accountAssetManager.d.ts.map +1 -0
  86. package/dist/error/dictionary/accountAssetManager.js +11 -0
  87. package/dist/error/dictionary/accountAssetManager.js.map +1 -0
  88. package/dist/index.d.ts +3 -1
  89. package/dist/index.d.ts.map +1 -1
  90. package/dist/index.js +3 -1
  91. package/dist/index.js.map +1 -1
  92. package/dist/network/NetworkClient.js.map +1 -1
  93. package/package.json +1 -1
  94. package/src/api/account.ts +579 -163
  95. package/src/api/accountAssetManager.ts +655 -0
  96. package/src/api/agent-tools.ts +201 -152
  97. package/src/api/ai.ts +520 -24
  98. package/src/api/codeShift.ts +210 -9
  99. package/src/api/dataIntegration.ts +635 -1
  100. package/src/api/discover.ts +153 -10
  101. package/src/api/edpBfa.ts +472 -0
  102. package/src/api-addresses.ts +56 -37
  103. package/src/apis-itau.json +16 -0
  104. package/src/apis.json +16 -0
  105. package/src/client/account-asset-manager.ts +100 -0
  106. package/src/client/account.ts +11 -7
  107. package/src/client/agent-tools.ts +17 -3
  108. package/src/client/ai.ts +91 -10
  109. package/src/client/code-shift.ts +29 -0
  110. package/src/client/data-integration.ts +23 -2
  111. package/src/client/discover.ts +15 -2
  112. package/src/client/edp-bfa.ts +24 -0
  113. package/src/client/notification.ts +6 -1
  114. package/src/client/secrets.ts +1 -1
  115. package/src/client/workspace-manager.ts +13 -0
  116. package/src/error/dictionary/accountAssetManager.ts +12 -0
  117. package/src/index.ts +4 -1
  118. package/src/network/NetworkClient.ts +1 -1
@@ -4,8 +4,8 @@
4
4
  * DO NOT MODIFY - This file has been generated using oazapfts.
5
5
  * See https://www.npmjs.com/package/oazapfts
6
6
  */
7
- import * as Oazapfts from "@oazapfts/runtime";
8
- import * as QS from "@oazapfts/runtime/query";
7
+ import * as Oazapfts from "@oazapfts/runtime"
8
+ import * as QS from "@oazapfts/runtime/query"
9
9
  export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
10
10
  headers: {},
11
11
  baseUrl: "/",
@@ -33,6 +33,7 @@ export type HttpValidationError = {
33
33
  detail?: ValidationError[];
34
34
  };
35
35
  export type VisibilityLevelEnum = "account" | "personal" | "shared" | "workspace" | "favorite";
36
+ export type ToolkitType = "mcp" | "web_request";
36
37
  export type CustomToolkitSimpleResponse = {
37
38
  id: string;
38
39
  name: string;
@@ -40,6 +41,7 @@ export type CustomToolkitSimpleResponse = {
40
41
  avatar?: string | null;
41
42
  visibility_level: VisibilityLevelEnum;
42
43
  creator_name: string | null;
44
+ toolkit_type?: ToolkitType | null;
43
45
  };
44
46
  export type ToolkitRequest = {
45
47
  /** Toolkit name (up to 150 characters, required) */
@@ -51,6 +53,20 @@ export type ToolkitRequest = {
51
53
  /** Visibility level (default 'PERSONAL') */
52
54
  visibility_level?: VisibilityLevelEnum;
53
55
  };
56
+ export type ToolkitMcpRequest = {
57
+ /** Toolkit name (up to 150 characters, required) */
58
+ name: string;
59
+ /** Toolkit description (up to 1024 characters, optional) */
60
+ description?: string | null;
61
+ /** Toolkit avatar (text base64, optional) */
62
+ avatar?: string | null;
63
+ /** Visibility level (default 'PERSONAL') */
64
+ visibility_level?: VisibilityLevelEnum;
65
+ url: string;
66
+ toolkit_type: ToolkitType;
67
+ /** List of secret IDs (optional) */
68
+ secrets?: string[] | null;
69
+ };
54
70
  export type CreatedResponse = {
55
71
  id: string;
56
72
  };
@@ -76,10 +92,12 @@ export type CustomToolkitResponse = {
76
92
  avatar?: string | null;
77
93
  visibility_level: VisibilityLevelEnum;
78
94
  creator_name: string | null;
95
+ toolkit_type?: ToolkitType | null;
79
96
  tools: CustomToolkitToolResponse[];
80
97
  secret_id?: string | null;
81
98
  secrets?: string[] | null;
82
99
  is_usable_by_others: boolean;
100
+ url?: string | null;
83
101
  };
84
102
  export type ToolkitUpdateRequest = {
85
103
  /** Toolkit name (up to 150 characters, optional) */
@@ -95,6 +113,22 @@ export type ToolkitUpdateRequest = {
95
113
  /** List of secret IDs (optional) */
96
114
  secrets?: string[] | null;
97
115
  };
116
+ export type ToolkitMcpUpdateRequest = {
117
+ /** Toolkit name (up to 150 characters, optional) */
118
+ name?: string | null;
119
+ /** Toolkit description (up to 1024 characters, optional) */
120
+ description?: string | null;
121
+ /** Toolkit avatar (text base64, optional) */
122
+ avatar?: string | null;
123
+ /** Visibility level (optional) */
124
+ visibility_level?: VisibilityLevelEnum | null;
125
+ /** IAM secret ID (optional) */
126
+ secret_id?: string | null;
127
+ /** List of secret IDs (optional) */
128
+ secrets?: string[] | null;
129
+ /** MCP Server URL */
130
+ url?: string | null;
131
+ };
98
132
  export type ToolkitForkRequest = {
99
133
  /** Toolkit name (up to 150 characters, required) */
100
134
  name: string;
@@ -104,148 +138,7 @@ export type ToolkitForkRequest = {
104
138
  avatar?: string | null;
105
139
  };
106
140
  export type HttpMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
107
- export type Reference = {
108
- $ref: string;
109
- summary?: string | null;
110
- description?: string | null;
111
- [key: string]: any;
112
- };
113
- export type DataType = "null" | "string" | "number" | "integer" | "boolean" | "array" | "object";
114
- export type Discriminator = {
115
- propertyName: string;
116
- mapping?: {
117
- [key: string]: string;
118
- } | null;
119
- [key: string]: any;
120
- };
121
- export type Xml = {
122
- name?: string | null;
123
- "namespace"?: string | null;
124
- prefix?: string | null;
125
- attribute?: boolean;
126
- wrapped?: boolean;
127
- [key: string]: any;
128
- };
129
- export type ExternalDocumentation = {
130
- description?: string | null;
131
- url: string;
132
- [key: string]: any;
133
- };
134
- export type Schema = {
135
- allOf?: (Reference | Schema)[] | null;
136
- anyOf?: (Reference | Schema)[] | null;
137
- oneOf?: (Reference | Schema)[] | null;
138
- not?: Reference | Schema | null;
139
- "if"?: Reference | Schema | null;
140
- then?: Reference | Schema | null;
141
- "else"?: Reference | Schema | null;
142
- dependentSchemas?: {
143
- [key: string]: Reference | Schema;
144
- } | null;
145
- prefixItems?: (Reference | Schema)[] | null;
146
- items?: Reference | Schema | null;
147
- contains?: Reference | Schema | null;
148
- properties?: {
149
- [key: string]: Reference | Schema;
150
- } | null;
151
- patternProperties?: {
152
- [key: string]: Reference | Schema;
153
- } | null;
154
- additionalProperties?: Reference | Schema | boolean | null;
155
- propertyNames?: Reference | Schema | null;
156
- unevaluatedItems?: Reference | Schema | null;
157
- unevaluatedProperties?: Reference | Schema | null;
158
- "type"?: DataType | DataType[] | null;
159
- "enum"?: any[] | null;
160
- "const"?: any | null;
161
- multipleOf?: number | null;
162
- maximum?: number | null;
163
- exclusiveMaximum?: number | null;
164
- minimum?: number | null;
165
- exclusiveMinimum?: number | null;
166
- maxLength?: number | null;
167
- minLength?: number | null;
168
- pattern?: string | null;
169
- maxItems?: number | null;
170
- minItems?: number | null;
171
- uniqueItems?: boolean | null;
172
- maxContains?: number | null;
173
- minContains?: number | null;
174
- maxProperties?: number | null;
175
- minProperties?: number | null;
176
- required?: string[] | null;
177
- dependentRequired?: {
178
- [key: string]: string[];
179
- } | null;
180
- format?: string | null;
181
- contentEncoding?: string | null;
182
- contentMediaType?: string | null;
183
- contentSchema?: Reference | Schema | null;
184
- title?: string | null;
185
- description?: string | null;
186
- "default"?: any | null;
187
- deprecated?: boolean | null;
188
- readOnly?: boolean | null;
189
- writeOnly?: boolean | null;
190
- discriminator?: Discriminator | null;
191
- xml?: Xml | null;
192
- externalDocs?: ExternalDocumentation | null;
193
- [key: string]: any;
194
- };
195
- export type Header = {
196
- description?: string | null;
197
- required?: boolean;
198
- deprecated?: boolean;
199
- style?: string | null;
200
- explode?: boolean | null;
201
- schema?: Reference | Schema | null;
202
- content?: {
203
- [key: string]: MediaType;
204
- } | null;
205
- [key: string]: any;
206
- };
207
- export type Encoding = {
208
- contentType?: string | null;
209
- headers?: {
210
- [key: string]: Header | Reference;
211
- } | null;
212
- style?: string | null;
213
- explode?: boolean | null;
214
- allowReserved?: boolean;
215
- [key: string]: any;
216
- };
217
- export type MediaType = {
218
- schema?: Reference | Schema | null;
219
- encoding?: {
220
- [key: string]: Encoding;
221
- } | null;
222
- [key: string]: any;
223
- };
224
- export type ParameterLocation = "query" | "header" | "path" | "cookie";
225
- export type Parameter = {
226
- description?: string | null;
227
- required?: boolean;
228
- deprecated?: boolean;
229
- style?: string | null;
230
- explode?: boolean | null;
231
- schema?: Reference | Schema | null;
232
- content?: {
233
- [key: string]: MediaType;
234
- } | null;
235
- name: string;
236
- "in": ParameterLocation;
237
- allowEmptyValue?: boolean;
238
- allowReserved?: boolean;
239
- [key: string]: any;
240
- };
241
- export type RequestBody = {
242
- description?: string | null;
243
- content: {
244
- [key: string]: MediaType;
245
- };
246
- required?: boolean;
247
- [key: string]: any;
248
- };
141
+ export type JsonValue = any;
249
142
  export type CustomToolRequest = {
250
143
  /** Tool name (up to 256 characters, required) */
251
144
  name: string;
@@ -256,9 +149,9 @@ export type CustomToolRequest = {
256
149
  /** Endpoint URL (required, must use https schema) */
257
150
  url: string;
258
151
  /** Dict of parameters (optional) */
259
- parameters?: Parameter[] | null;
152
+ parameters?: JsonValue[] | null;
260
153
  /** Dict of request body (optional) */
261
- request_body?: RequestBody | null;
154
+ request_body?: JsonValue | null;
262
155
  /** Response transformation (optional) */
263
156
  response_transformation?: string | null;
264
157
  };
@@ -290,10 +183,23 @@ export type AssignToolsToAgentRequest = {
290
183
  builtin_tool_ids?: string[] | null;
291
184
  custom_tools?: AssignCustomToolsAgentRequest[] | null;
292
185
  sub_agents_ids?: string[] | null;
186
+ mcp_toolkit_ids?: string[] | null;
187
+ };
188
+ export type ToolkitMcpResponse = {
189
+ id?: string | null;
190
+ name?: string | null;
191
+ description?: string | null;
192
+ avatar?: string | null;
193
+ visibility_level?: string | null;
194
+ secret_id?: string | null;
195
+ secrets?: string[] | null;
196
+ url?: string | null;
197
+ toolkit_type?: ToolkitType | null;
293
198
  };
294
199
  export type AgentToolsResponse = {
295
200
  builtin_toolkits?: BuiltinToolkitResponse[];
296
201
  custom_toolkits?: CustomToolkitResponse[];
202
+ mcp_toolkits?: ToolkitMcpResponse[];
297
203
  };
298
204
  export type SchemaEnum = "OPENAI";
299
205
  export type FunctionParameter = {
@@ -323,6 +229,8 @@ export type Function = {
323
229
  strict: boolean;
324
230
  };
325
231
  export type OpenAiTool = {
232
+ /** Unique identifier for the tool */
233
+ id?: string | null;
326
234
  /** The type of the tool; must be 'function' */
327
235
  "type": "function";
328
236
  /** The function associated with this tool */
@@ -371,6 +279,7 @@ export type KnowledgeSourcesConfigRequest = {
371
279
  };
372
280
  export type AgentMode = "autonomous" | "plan_approval" | "plan_and_critical_approval";
373
281
  export type AgentMemory = "vector" | "buffer";
282
+ export type PlannerType = "simple" | "tool_oriented";
374
283
  export type NewAgentRequest = {
375
284
  /** LLM model name */
376
285
  model_name?: string | null;
@@ -394,6 +303,7 @@ export type NewAgentRequest = {
394
303
  builtin_tools_ids?: string[];
395
304
  /** Custom tools to assign to the agent */
396
305
  custom_tools?: AssignCustomToolsAgentRequest[] | null;
306
+ mcp_toolkit_ids?: string[] | null;
397
307
  sub_agents_ids?: string[] | null;
398
308
  detail_mode?: boolean;
399
309
  structured_output?: string | null;
@@ -406,6 +316,10 @@ export type NewAgentRequest = {
406
316
  memory?: AgentMemory;
407
317
  /** Available models for this particular agent */
408
318
  available_models_ids?: string[];
319
+ /** Agent planner type */
320
+ planner_type?: PlannerType | null;
321
+ /** Maximum number of LLM interactions allowed for the agent when using simple planner */
322
+ max_llm_interactions?: number | null;
409
323
  };
410
324
  export type SearchAgentsRequest = {
411
325
  /** Agent ids to filter for */
@@ -515,10 +429,38 @@ export type CustomToolkitDto = {
515
429
  visibility_level: VisibilityLevelEnum;
516
430
  creator_name: string;
517
431
  is_usable_by_others: boolean;
432
+ url: string | null;
433
+ toolkit_type: ToolkitType | null;
434
+ };
435
+ export type SecretScope = "ACCOUNT" | "SCOPED" | "SPOT" | "USER" | "UNKNOWN";
436
+ export type SecretDto = {
437
+ id: string;
438
+ scope?: SecretScope | null;
439
+ };
440
+ export type Function2 = {
441
+ name: string;
442
+ description: string;
443
+ parameters: {
444
+ [key: string]: any;
445
+ };
446
+ strict?: boolean;
447
+ };
448
+ export type ToolkitMcpdto = {
449
+ secrets: SecretDto[] | null;
450
+ name: string;
451
+ description?: string | null;
452
+ avatar?: string | null;
453
+ visibility_level?: VisibilityLevelEnum;
454
+ id?: string | null;
455
+ url?: string | null;
456
+ tools?: Function2[] | null;
457
+ /** Toolkit type */
458
+ toolkit_type?: ToolkitType | null;
518
459
  };
519
460
  export type AgentToolsDto = {
520
461
  builtin_toolkits?: BuiltinToolkitDto[];
521
462
  custom_toolkits?: CustomToolkitDto[];
463
+ mcp_toolkits?: ToolkitMcpdto[];
522
464
  };
523
465
  export type LlmSettingsModel = {
524
466
  property_key?: string | null;
@@ -563,6 +505,8 @@ export type AgentModel = {
563
505
  updated_at?: string | null;
564
506
  available_llm_models?: AgentLlmModelDto[];
565
507
  memory?: AgentMemory;
508
+ planner_type?: PlannerType | null;
509
+ max_llm_interactions?: number | null;
566
510
  };
567
511
  export type UpdateAgentRequest = {
568
512
  use_only?: boolean | null;
@@ -589,6 +533,7 @@ export type UpdateAgentRequest = {
589
533
  sub_agents_ids?: string[];
590
534
  /** Custom tools to assign to the agent */
591
535
  custom_tools?: AssignCustomToolsAgentRequest[] | null;
536
+ mcp_toolkit_ids?: string[] | null;
592
537
  detail_mode?: boolean | null;
593
538
  structured_output?: string | null;
594
539
  llm_settings?: {
@@ -600,6 +545,10 @@ export type UpdateAgentRequest = {
600
545
  available_models_ids?: string[];
601
546
  /** Agent memory */
602
547
  memory?: AgentMemory;
548
+ /** Agent planner type */
549
+ planner_type?: PlannerType;
550
+ /** Maximum number of LLM interactions allowed for the agent when using simple planner */
551
+ max_llm_interactions?: number | null;
603
552
  };
604
553
  export type ForkAgentRequest = {
605
554
  /** Agent slug to fork */
@@ -686,6 +635,34 @@ export type ToolkitForkResponse = {
686
635
  /** List of toolkit IDs that failed to fork */
687
636
  error_ids: string[];
688
637
  };
638
+ export type PaginatedResponseCustomToolkitSimpleResponse = {
639
+ total_pages: number;
640
+ items: CustomToolkitSimpleResponse[];
641
+ };
642
+ export type ParametersModel = {
643
+ properties: {
644
+ [key: string]: {
645
+ [key: string]: any;
646
+ };
647
+ };
648
+ required?: string[] | null;
649
+ "type": string;
650
+ additionalProperties: boolean;
651
+ };
652
+ export type FunctionModel = {
653
+ name: string;
654
+ description: string;
655
+ parameters: ParametersModel;
656
+ strict?: boolean;
657
+ };
658
+ export type FunctionItem = {
659
+ "type": string;
660
+ "function": FunctionModel;
661
+ };
662
+ export type FunctionsResponse = {
663
+ last_update: string;
664
+ tools: FunctionItem[];
665
+ };
689
666
  /**
690
667
  * Health Check
691
668
  */
@@ -780,13 +757,13 @@ export function listToolkitsV1ToolkitsGet({ visibility, xAccountId, xUsername, x
780
757
  /**
781
758
  * Create Toolkit
782
759
  */
783
- export function createToolkitV1ToolkitsPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, toolkitRequest }: {
760
+ export function createToolkitV1ToolkitsPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, body }: {
784
761
  xAccountId?: string | null;
785
762
  xUsername?: string | null;
786
763
  xUserId?: string | null;
787
764
  xUserFullName?: string | null;
788
765
  authorization: string;
789
- toolkitRequest: ToolkitRequest;
766
+ body: ToolkitRequest | ToolkitMcpRequest;
790
767
  }, opts?: Oazapfts.RequestOpts) {
791
768
  return oazapfts.ok(oazapfts.fetchJson<{
792
769
  status: 201;
@@ -799,7 +776,7 @@ export function createToolkitV1ToolkitsPost({ xAccountId, xUsername, xUserId, xU
799
776
  }>("/v1/toolkits", oazapfts.json({
800
777
  ...opts,
801
778
  method: "POST",
802
- body: toolkitRequest,
779
+ body,
803
780
  headers: oazapfts.mergeHeaders(opts?.headers, {
804
781
  "x-account-id": xAccountId,
805
782
  "x-username": xUsername,
@@ -842,14 +819,14 @@ export function getToolkitV1ToolkitsToolkitIdGet({ toolkitId, xAccountId, xUsern
842
819
  /**
843
820
  * Update Toolkit
844
821
  */
845
- export function updateToolkitV1ToolkitsToolkitIdPatch({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, toolkitUpdateRequest }: {
822
+ export function updateToolkitV1ToolkitsToolkitIdPatch({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, body }: {
846
823
  toolkitId: string;
847
824
  xAccountId?: string | null;
848
825
  xUsername?: string | null;
849
826
  xUserId?: string | null;
850
827
  xUserFullName?: string | null;
851
828
  authorization: string;
852
- toolkitUpdateRequest: ToolkitUpdateRequest;
829
+ body: ToolkitUpdateRequest | ToolkitMcpUpdateRequest;
853
830
  }, opts?: Oazapfts.RequestOpts) {
854
831
  return oazapfts.ok(oazapfts.fetchJson<{
855
832
  status: 204;
@@ -861,7 +838,7 @@ export function updateToolkitV1ToolkitsToolkitIdPatch({ toolkitId, xAccountId, x
861
838
  }>(`/v1/toolkits/${encodeURIComponent(toolkitId)}`, oazapfts.json({
862
839
  ...opts,
863
840
  method: "PATCH",
864
- body: toolkitUpdateRequest,
841
+ body,
865
842
  headers: oazapfts.mergeHeaders(opts?.headers, {
866
843
  "x-account-id": xAccountId,
867
844
  "x-username": xUsername,
@@ -2186,3 +2163,75 @@ export function internalForkToolkitsByIdsV1SpotToolkitsForkPost({ xAccountId, xU
2186
2163
  })
2187
2164
  })));
2188
2165
  }
2166
+ /**
2167
+ * List Toolkits
2168
+ */
2169
+ export function listToolkitsV2ToolkitsGet({ name, visibilityList, size, page, order, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
2170
+ name?: string | null;
2171
+ visibilityList?: VisibilityLevelEnum[];
2172
+ size?: number;
2173
+ page?: number;
2174
+ order?: OrderEnum | null;
2175
+ xAccountId?: string | null;
2176
+ xUsername?: string | null;
2177
+ xUserId?: string | null;
2178
+ xUserFullName?: string | null;
2179
+ authorization: string;
2180
+ }, opts?: Oazapfts.RequestOpts) {
2181
+ return oazapfts.ok(oazapfts.fetchJson<{
2182
+ status: 200;
2183
+ data: PaginatedResponseCustomToolkitSimpleResponse;
2184
+ } | {
2185
+ status: 404;
2186
+ } | {
2187
+ status: 422;
2188
+ data: HttpValidationError;
2189
+ }>(`/v2/toolkits${QS.query(QS.explode({
2190
+ name,
2191
+ visibility_list: visibilityList,
2192
+ size,
2193
+ page,
2194
+ order
2195
+ }))}`, {
2196
+ ...opts,
2197
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2198
+ "x-account-id": xAccountId,
2199
+ "x-username": xUsername,
2200
+ "x-user-id": xUserId,
2201
+ "x-user-full-name": xUserFullName,
2202
+ authorization
2203
+ })
2204
+ }));
2205
+ }
2206
+ /**
2207
+ * List Mcp Tools
2208
+ */
2209
+ export function listMcpToolsV1McpToolsToolkitIdGet({ toolkitId, cacheControl, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
2210
+ toolkitId: string;
2211
+ cacheControl?: string | null;
2212
+ xAccountId?: string | null;
2213
+ xUsername?: string | null;
2214
+ xUserId?: string | null;
2215
+ xUserFullName?: string | null;
2216
+ authorization: string;
2217
+ }, opts?: Oazapfts.RequestOpts) {
2218
+ return oazapfts.ok(oazapfts.fetchJson<{
2219
+ status: 200;
2220
+ data: FunctionsResponse;
2221
+ } | {
2222
+ status: 404;
2223
+ } | {
2224
+ status: 422;
2225
+ data: HttpValidationError;
2226
+ }>(`/v1/mcp-tools/${encodeURIComponent(toolkitId)}`, {
2227
+ ...opts,
2228
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2229
+ "cache-control": cacheControl,
2230
+ "x-account-id": xAccountId,
2231
+ "x-username": xUsername,
2232
+ "x-user-id": xUserId,
2233
+ "x-user-full-name": xUserFullName,
2234
+ authorization
2235
+ })
2236
+ }));
2237
+ }