@stack-spot/portal-network 0.197.0 → 0.198.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/CHANGELOG.md +152 -0
  2. package/dist/api/agent-tools.d.ts +139 -148
  3. package/dist/api/agent-tools.d.ts.map +1 -1
  4. package/dist/api/agent-tools.js +41 -4
  5. package/dist/api/agent-tools.js.map +1 -1
  6. package/dist/api/agent.d.ts +55 -55
  7. package/dist/api/agent.d.ts.map +1 -1
  8. package/dist/api/ai.d.ts +288 -19
  9. package/dist/api/ai.d.ts.map +1 -1
  10. package/dist/api/ai.js +196 -11
  11. package/dist/api/ai.js.map +1 -1
  12. package/dist/api/cloudPlatformHorizon.d.ts +178 -9
  13. package/dist/api/cloudPlatformHorizon.d.ts.map +1 -1
  14. package/dist/api/cloudPlatformHorizon.js +69 -1
  15. package/dist/api/cloudPlatformHorizon.js.map +1 -1
  16. package/dist/api/codeShift.d.ts +316 -32
  17. package/dist/api/codeShift.d.ts.map +1 -1
  18. package/dist/api/codeShift.js +172 -8
  19. package/dist/api/codeShift.js.map +1 -1
  20. package/dist/api/dataIntegration.d.ts +291 -1
  21. package/dist/api/dataIntegration.d.ts.map +1 -1
  22. package/dist/api/dataIntegration.js +254 -0
  23. package/dist/api/dataIntegration.js.map +1 -1
  24. package/dist/api/discover.d.ts +95 -12
  25. package/dist/api/discover.d.ts.map +1 -1
  26. package/dist/api/discover.js +78 -2
  27. package/dist/api/discover.js.map +1 -1
  28. package/dist/api-addresses.d.ts.map +1 -1
  29. package/dist/client/account.d.ts +233 -233
  30. package/dist/client/account.d.ts.map +1 -1
  31. package/dist/client/agent-tools.d.ts +159 -126
  32. package/dist/client/agent-tools.d.ts.map +1 -1
  33. package/dist/client/agent-tools.js +35 -4
  34. package/dist/client/agent-tools.js.map +1 -1
  35. package/dist/client/agent.d.ts +46 -46
  36. package/dist/client/agent.d.ts.map +1 -1
  37. package/dist/client/ai.d.ts +243 -108
  38. package/dist/client/ai.d.ts.map +1 -1
  39. package/dist/client/ai.js +102 -2
  40. package/dist/client/ai.js.map +1 -1
  41. package/dist/client/api-management.d.ts +2 -2
  42. package/dist/client/cloud-account.d.ts +13 -13
  43. package/dist/client/cloud-platform-horizon.d.ts +38 -19
  44. package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
  45. package/dist/client/cloud-platform-horizon.js +19 -1
  46. package/dist/client/cloud-platform-horizon.js.map +1 -1
  47. package/dist/client/cloud-platform.d.ts +50 -50
  48. package/dist/client/cloud-runtimes.d.ts +4 -4
  49. package/dist/client/cloud-services.d.ts +17 -17
  50. package/dist/client/cloud-services.d.ts.map +1 -1
  51. package/dist/client/code-shift.d.ts +379 -265
  52. package/dist/client/code-shift.d.ts.map +1 -1
  53. package/dist/client/code-shift.js +100 -1
  54. package/dist/client/code-shift.js.map +1 -1
  55. package/dist/client/content.d.ts +127 -132
  56. package/dist/client/content.d.ts.map +1 -1
  57. package/dist/client/data-integration.d.ts +85 -55
  58. package/dist/client/data-integration.d.ts.map +1 -1
  59. package/dist/client/data-integration.js +22 -2
  60. package/dist/client/data-integration.js.map +1 -1
  61. package/dist/client/discover.d.ts +29 -9
  62. package/dist/client/discover.d.ts.map +1 -1
  63. package/dist/client/discover.js +236 -1
  64. package/dist/client/discover.js.map +1 -1
  65. package/dist/client/event-bus.d.ts.map +1 -1
  66. package/dist/client/gen-ai-inference.d.ts +20 -20
  67. package/dist/client/insights.d.ts +7 -7
  68. package/dist/client/notification.d.ts +10 -10
  69. package/dist/client/runtime-manager.d.ts +8 -8
  70. package/dist/client/secrets.d.ts.map +1 -1
  71. package/dist/client/secrets.js +1 -1
  72. package/dist/client/secrets.js.map +1 -1
  73. package/dist/client/types.d.ts +14 -0
  74. package/dist/client/types.d.ts.map +1 -1
  75. package/dist/client/workflow.d.ts +10 -10
  76. package/dist/client/workspace-ai.d.ts +53 -53
  77. package/dist/client/workspace-manager.d.ts +77 -77
  78. package/dist/client/workspace-search.d.ts +2 -2
  79. package/dist/client/workspace.d.ts +58 -105
  80. package/dist/client/workspace.d.ts.map +1 -1
  81. package/dist/error/dictionary/cloud-platform.d.ts +6 -0
  82. package/dist/error/dictionary/cloud-platform.d.ts.map +1 -1
  83. package/dist/error/dictionary/cloud-platform.js +6 -0
  84. package/dist/error/dictionary/cloud-platform.js.map +1 -1
  85. package/dist/utils/StreamedJson.d.ts.map +1 -1
  86. package/dist/utils/StreamedJson.js +9 -1
  87. package/dist/utils/StreamedJson.js.map +1 -1
  88. package/package.json +2 -2
  89. package/src/api/agent-tools.ts +186 -150
  90. package/src/api/ai.ts +521 -24
  91. package/src/api/cloudPlatformHorizon.ts +412 -9
  92. package/src/api/codeShift.ts +631 -37
  93. package/src/api/dataIntegration.ts +635 -1
  94. package/src/api/discover.ts +180 -14
  95. package/src/client/agent-tools.ts +26 -4
  96. package/src/client/ai.ts +81 -10
  97. package/src/client/cloud-platform-horizon.ts +12 -4
  98. package/src/client/code-shift.ts +64 -1
  99. package/src/client/data-integration.ts +15 -1
  100. package/src/client/discover.ts +233 -3
  101. package/src/client/secrets.ts +1 -1
  102. package/src/client/types.ts +17 -2
  103. package/src/error/dictionary/cloud-platform.ts +6 -0
  104. package/src/utils/StreamedJson.tsx +9 -2
@@ -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 */
@@ -370,6 +278,7 @@ export type KnowledgeSourcesConfigRequest = {
370
278
  sealed?: boolean | null;
371
279
  };
372
280
  export type AgentMode = "autonomous" | "plan_approval" | "plan_and_critical_approval";
281
+ export type AgentMemory = "vector" | "buffer";
373
282
  export type NewAgentRequest = {
374
283
  /** LLM model name */
375
284
  model_name?: string | null;
@@ -393,6 +302,7 @@ export type NewAgentRequest = {
393
302
  builtin_tools_ids?: string[];
394
303
  /** Custom tools to assign to the agent */
395
304
  custom_tools?: AssignCustomToolsAgentRequest[] | null;
305
+ mcp_toolkit_ids?: string[] | null;
396
306
  sub_agents_ids?: string[] | null;
397
307
  detail_mode?: boolean;
398
308
  structured_output?: string | null;
@@ -401,6 +311,8 @@ export type NewAgentRequest = {
401
311
  } | null;
402
312
  /** Agent mode */
403
313
  mode?: AgentMode;
314
+ /** Agent memory */
315
+ memory?: AgentMemory;
404
316
  /** Available models for this particular agent */
405
317
  available_models_ids?: string[];
406
318
  };
@@ -512,10 +424,30 @@ export type CustomToolkitDto = {
512
424
  visibility_level: VisibilityLevelEnum;
513
425
  creator_name: string;
514
426
  is_usable_by_others: boolean;
427
+ url: string | null;
428
+ toolkit_type: ToolkitType | null;
429
+ };
430
+ export type SecretScope = "ACCOUNT" | "SCOPED" | "SPOT" | "USER" | "UNKNOWN";
431
+ export type SecretDto = {
432
+ id: string;
433
+ scope?: SecretScope | null;
434
+ };
435
+ export type ToolkitMcpdto = {
436
+ secrets: SecretDto[] | null;
437
+ name: string;
438
+ description?: string | null;
439
+ avatar?: string | null;
440
+ visibility_level?: VisibilityLevelEnum;
441
+ id?: string | null;
442
+ url?: string | null;
443
+ tools?: any[] | null;
444
+ /** Toolkit type */
445
+ toolkit_type?: ToolkitType | null;
515
446
  };
516
447
  export type AgentToolsDto = {
517
448
  builtin_toolkits?: BuiltinToolkitDto[];
518
449
  custom_toolkits?: CustomToolkitDto[];
450
+ mcp_toolkits?: ToolkitMcpdto[];
519
451
  };
520
452
  export type LlmSettingsModel = {
521
453
  property_key?: string | null;
@@ -559,6 +491,7 @@ export type AgentModel = {
559
491
  updated_by?: string | null;
560
492
  updated_at?: string | null;
561
493
  available_llm_models?: AgentLlmModelDto[];
494
+ memory?: AgentMemory;
562
495
  };
563
496
  export type UpdateAgentRequest = {
564
497
  use_only?: boolean | null;
@@ -585,6 +518,7 @@ export type UpdateAgentRequest = {
585
518
  sub_agents_ids?: string[];
586
519
  /** Custom tools to assign to the agent */
587
520
  custom_tools?: AssignCustomToolsAgentRequest[] | null;
521
+ mcp_toolkit_ids?: string[] | null;
588
522
  detail_mode?: boolean | null;
589
523
  structured_output?: string | null;
590
524
  llm_settings?: {
@@ -594,6 +528,8 @@ export type UpdateAgentRequest = {
594
528
  mode?: AgentMode | null;
595
529
  /** Available models for this particular agent */
596
530
  available_models_ids?: string[];
531
+ /** Agent memory */
532
+ memory?: AgentMemory;
597
533
  };
598
534
  export type ForkAgentRequest = {
599
535
  /** Agent slug to fork */
@@ -680,6 +616,34 @@ export type ToolkitForkResponse = {
680
616
  /** List of toolkit IDs that failed to fork */
681
617
  error_ids: string[];
682
618
  };
619
+ export type PaginatedResponseCustomToolkitSimpleResponse = {
620
+ total_pages: number;
621
+ items: CustomToolkitSimpleResponse[];
622
+ };
623
+ export type ParametersModel = {
624
+ properties: {
625
+ [key: string]: {
626
+ [key: string]: any;
627
+ };
628
+ };
629
+ required?: string[] | null;
630
+ "type": string;
631
+ additionalProperties: boolean;
632
+ };
633
+ export type FunctionModel = {
634
+ name: string;
635
+ description: string;
636
+ parameters: ParametersModel;
637
+ strict?: boolean;
638
+ };
639
+ export type FunctionItem = {
640
+ "type": string;
641
+ "function": FunctionModel;
642
+ };
643
+ export type FunctionsResponse = {
644
+ last_update: string;
645
+ tools: FunctionItem[];
646
+ };
683
647
  /**
684
648
  * Health Check
685
649
  */
@@ -774,13 +738,13 @@ export function listToolkitsV1ToolkitsGet({ visibility, xAccountId, xUsername, x
774
738
  /**
775
739
  * Create Toolkit
776
740
  */
777
- export function createToolkitV1ToolkitsPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, toolkitRequest }: {
741
+ export function createToolkitV1ToolkitsPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, body }: {
778
742
  xAccountId?: string | null;
779
743
  xUsername?: string | null;
780
744
  xUserId?: string | null;
781
745
  xUserFullName?: string | null;
782
746
  authorization: string;
783
- toolkitRequest: ToolkitRequest;
747
+ body: ToolkitRequest | ToolkitMcpRequest;
784
748
  }, opts?: Oazapfts.RequestOpts) {
785
749
  return oazapfts.ok(oazapfts.fetchJson<{
786
750
  status: 201;
@@ -793,7 +757,7 @@ export function createToolkitV1ToolkitsPost({ xAccountId, xUsername, xUserId, xU
793
757
  }>("/v1/toolkits", oazapfts.json({
794
758
  ...opts,
795
759
  method: "POST",
796
- body: toolkitRequest,
760
+ body,
797
761
  headers: oazapfts.mergeHeaders(opts?.headers, {
798
762
  "x-account-id": xAccountId,
799
763
  "x-username": xUsername,
@@ -836,14 +800,14 @@ export function getToolkitV1ToolkitsToolkitIdGet({ toolkitId, xAccountId, xUsern
836
800
  /**
837
801
  * Update Toolkit
838
802
  */
839
- export function updateToolkitV1ToolkitsToolkitIdPatch({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, toolkitUpdateRequest }: {
803
+ export function updateToolkitV1ToolkitsToolkitIdPatch({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, body }: {
840
804
  toolkitId: string;
841
805
  xAccountId?: string | null;
842
806
  xUsername?: string | null;
843
807
  xUserId?: string | null;
844
808
  xUserFullName?: string | null;
845
809
  authorization: string;
846
- toolkitUpdateRequest: ToolkitUpdateRequest;
810
+ body: ToolkitUpdateRequest | ToolkitMcpUpdateRequest;
847
811
  }, opts?: Oazapfts.RequestOpts) {
848
812
  return oazapfts.ok(oazapfts.fetchJson<{
849
813
  status: 204;
@@ -855,7 +819,7 @@ export function updateToolkitV1ToolkitsToolkitIdPatch({ toolkitId, xAccountId, x
855
819
  }>(`/v1/toolkits/${encodeURIComponent(toolkitId)}`, oazapfts.json({
856
820
  ...opts,
857
821
  method: "PATCH",
858
- body: toolkitUpdateRequest,
822
+ body,
859
823
  headers: oazapfts.mergeHeaders(opts?.headers, {
860
824
  "x-account-id": xAccountId,
861
825
  "x-username": xUsername,
@@ -2180,3 +2144,75 @@ export function internalForkToolkitsByIdsV1SpotToolkitsForkPost({ xAccountId, xU
2180
2144
  })
2181
2145
  })));
2182
2146
  }
2147
+ /**
2148
+ * List Toolkits
2149
+ */
2150
+ export function listToolkitsV2ToolkitsGet({ name, visibilityList, size, page, order, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
2151
+ name?: string | null;
2152
+ visibilityList?: VisibilityLevelEnum[];
2153
+ size?: number;
2154
+ page?: number;
2155
+ order?: OrderEnum | null;
2156
+ xAccountId?: string | null;
2157
+ xUsername?: string | null;
2158
+ xUserId?: string | null;
2159
+ xUserFullName?: string | null;
2160
+ authorization: string;
2161
+ }, opts?: Oazapfts.RequestOpts) {
2162
+ return oazapfts.ok(oazapfts.fetchJson<{
2163
+ status: 200;
2164
+ data: PaginatedResponseCustomToolkitSimpleResponse;
2165
+ } | {
2166
+ status: 404;
2167
+ } | {
2168
+ status: 422;
2169
+ data: HttpValidationError;
2170
+ }>(`/v2/toolkits${QS.query(QS.explode({
2171
+ name,
2172
+ visibility_list: visibilityList,
2173
+ size,
2174
+ page,
2175
+ order
2176
+ }))}`, {
2177
+ ...opts,
2178
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2179
+ "x-account-id": xAccountId,
2180
+ "x-username": xUsername,
2181
+ "x-user-id": xUserId,
2182
+ "x-user-full-name": xUserFullName,
2183
+ authorization
2184
+ })
2185
+ }));
2186
+ }
2187
+ /**
2188
+ * List Mcp Tools
2189
+ */
2190
+ export function listMcpToolsV1McpToolsToolkitIdGet({ toolkitId, cacheControl, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
2191
+ toolkitId: string;
2192
+ cacheControl?: string | null;
2193
+ xAccountId?: string | null;
2194
+ xUsername?: string | null;
2195
+ xUserId?: string | null;
2196
+ xUserFullName?: string | null;
2197
+ authorization: string;
2198
+ }, opts?: Oazapfts.RequestOpts) {
2199
+ return oazapfts.ok(oazapfts.fetchJson<{
2200
+ status: 200;
2201
+ data: FunctionsResponse;
2202
+ } | {
2203
+ status: 404;
2204
+ } | {
2205
+ status: 422;
2206
+ data: HttpValidationError;
2207
+ }>(`/v1/mcp-tools/${encodeURIComponent(toolkitId)}`, {
2208
+ ...opts,
2209
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2210
+ "cache-control": cacheControl,
2211
+ "x-account-id": xAccountId,
2212
+ "x-username": xUsername,
2213
+ "x-user-id": xUserId,
2214
+ "x-user-full-name": xUserFullName,
2215
+ authorization
2216
+ })
2217
+ }));
2218
+ }