@stack-spot/portal-network 0.201.0 → 0.202.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.
@@ -1 +1 @@
1
- {"version":3,"file":"secrets.d.ts","sourceRoot":"","sources":["../../src/client/secrets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAK7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAG5E,cAAM,YAAa,SAAQ,uBAAuB;;IAKhD,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAIlE;;OAEG;IACH,SAAS;;gBAA2B;IAEpC;;OAEG;IACH,UAAU,6FAAsB;IAEhC;;OAEG;IACH,SAAS;;gBAA2B;IAEpC;;OAEG;IACH,SAAS;;;gBAAyB;IAElC;;OAEG;IACH,eAAe,oGAA8B;IAE7C;;OAEG;IACH,iBAAiB;;;gBAAmC;IAEpD;;OAEG;IACH,iBAAiB;;gBAAmC;IAEpD;;OAEG;IACH,OAAO;;iDAAyB;CACjC;AAED,eAAO,MAAM,aAAa,cAAqB,CAAA"}
1
+ {"version":3,"file":"secrets.d.ts","sourceRoot":"","sources":["../../src/client/secrets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAM7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAE5E,cAAM,YAAa,SAAQ,uBAAuB;;IAKhD,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAIlE;;OAEG;IACH,SAAS;;gBAA2B;IAEpC;;OAEG;IACH,UAAU,6FAAsB;IAEhC;;OAEG;IACH,SAAS;;gBAA2B;IAEpC;;OAEG;IACH,SAAS;;;gBAAyB;IAElC;;OAEG;IACH,eAAe,oGAA8B;IAE7C;;OAEG;IACH,iBAAiB;;;gBAAmC;IAEpD;;OAEG;IACH,iBAAiB;;gBAAmC;IAEpD;;OAEG;IACH,OAAO;;iDAAyB;CACjC;AAED,eAAO,MAAM,aAAa,cAAqB,CAAA"}
@@ -1,8 +1,8 @@
1
+ import { getApiAddresses } from '../api-addresses.js';
1
2
  import { createKey, defaults, deleteKey, deleteSecretValue, editKey, encrypt, getAll1, getAvailability, updateSecretValue } from '../api/secrets.js';
2
3
  import { DefaultAPIError } from '../error/DefaultAPIError.js';
3
4
  import { secretsDictionary } from '../error/dictionary/secrets.js';
4
5
  import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
5
- import { getApiAddresses } from '../api-addresses.js';
6
6
  class SecretClient extends ReactQueryNetworkClient {
7
7
  constructor() {
8
8
  super(getApiAddresses().secrets.url, defaults);
@@ -1 +1 @@
1
- {"version":3,"file":"secrets.js","sourceRoot":"","sources":["../../src/client/secrets.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,iBAAiB,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACjJ,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAE/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,YAAa,SAAQ,uBAAuB;IAChD;QACE,KAAK,CAAC,eAAe,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;QAOhD;;WAEG;QACH;;;;mBAAY,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC;WAAA;QAEpC;;WAEG;QACH;;;;mBAAa,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;WAAA;QAEhC;;WAEG;QACH;;;;mBAAY,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC;WAAA;QAEpC;;WAEG;QACH;;;;mBAAY,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;WAAA;QAElC;;WAEG;QACH;;;;mBAAkB,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC;WAAA;QAE7C;;WAEG;QACH;;;;mBAAoB,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC;WAAA;QAEpD;;WAEG;QACH;;;;mBAAoB,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC;WAAA;QAEpD;;WAEG;QACH;;;;mBAAU,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;WAAA;IA5ChC,CAAC;IAES,mBAAmB,CAAC,KAAgB;QAC5C,OAAO,IAAI,eAAe,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,iBAAiB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;IACxF,CAAC;CAyCF;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,YAAY,EAAE,CAAA"}
1
+ {"version":3,"file":"secrets.js","sourceRoot":"","sources":["../../src/client/secrets.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,iBAAiB,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACjJ,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAE/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAE5E,MAAM,YAAa,SAAQ,uBAAuB;IAChD;QACE,KAAK,CAAC,eAAe,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;QAOhD;;WAEG;QACH;;;;mBAAY,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC;WAAA;QAEpC;;WAEG;QACH;;;;mBAAa,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;WAAA;QAEhC;;WAEG;QACH;;;;mBAAY,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC;WAAA;QAEpC;;WAEG;QACH;;;;mBAAY,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;WAAA;QAElC;;WAEG;QACH;;;;mBAAkB,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC;WAAA;QAE7C;;WAEG;QACH;;;;mBAAoB,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC;WAAA;QAEpD;;WAEG;QACH;;;;mBAAoB,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC;WAAA;QAEpD;;WAEG;QACH;;;;mBAAU,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;WAAA;IA5ChC,CAAC;IAES,mBAAmB,CAAC,KAAgB;QAC5C,OAAO,IAAI,eAAe,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,iBAAiB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;IACxF,CAAC;CAyCF;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,YAAY,EAAE,CAAA"}
@@ -55,7 +55,7 @@ declare class WorkspaceAiClient extends ReactQueryNetworkClient {
55
55
  name?: string | null;
56
56
  authorization: string;
57
57
  xAccountId?: string | null;
58
- }, "contentType" | "authorization">, KnowledgeSourceItemResponse[]>;
58
+ }, "authorization" | "contentType">, KnowledgeSourceItemResponse[]>;
59
59
  /**
60
60
  * Lists all the stacks in a Spot.
61
61
  */
@@ -65,7 +65,7 @@ declare class WorkspaceAiClient extends ReactQueryNetworkClient {
65
65
  name?: string | null;
66
66
  authorization: string;
67
67
  xAccountId?: string | null;
68
- }, "contentType" | "authorization">, GetAiStackResponse[]>;
68
+ }, "authorization" | "contentType">, GetAiStackResponse[]>;
69
69
  /**
70
70
  * Lists all the quick commands in a Spot.
71
71
  */
@@ -75,7 +75,7 @@ declare class WorkspaceAiClient extends ReactQueryNetworkClient {
75
75
  name?: string | null;
76
76
  authorization: string;
77
77
  xAccountId?: string | null;
78
- }, "contentType" | "authorization">, QuickCommandResponse[]>;
78
+ }, "authorization" | "contentType">, QuickCommandResponse[]>;
79
79
  /**
80
80
  * Lists all the agents in a Spot.
81
81
  */
@@ -85,7 +85,7 @@ declare class WorkspaceAiClient extends ReactQueryNetworkClient {
85
85
  name?: string | null;
86
86
  authorization: string;
87
87
  xAccountId?: string | null;
88
- }, "contentType" | "authorization">, AgentResponse[]>;
88
+ }, "authorization" | "contentType">, AgentResponse[]>;
89
89
  /**
90
90
  * Lists all the toolkits in a Spot.
91
91
  */
@@ -95,7 +95,7 @@ declare class WorkspaceAiClient extends ReactQueryNetworkClient {
95
95
  name?: string | null;
96
96
  authorization: string;
97
97
  xAccountId?: string | null;
98
- }, "contentType" | "authorization">, CustomToolkitResponse[]>;
98
+ }, "authorization" | "contentType">, CustomToolkitResponse[]>;
99
99
  deleteResourceTypeFromWorkspaceAi: import("../network/types.js").MutationObject<Omit<{
100
100
  workspaceId: string;
101
101
  contentType: import("../api/workspace-ai.js").ContentType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stack-spot/portal-network",
3
- "version": "0.201.0",
3
+ "version": "0.202.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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 */
@@ -394,6 +302,7 @@ export type NewAgentRequest = {
394
302
  builtin_tools_ids?: string[];
395
303
  /** Custom tools to assign to the agent */
396
304
  custom_tools?: AssignCustomToolsAgentRequest[] | null;
305
+ mcp_toolkit_ids?: string[] | null;
397
306
  sub_agents_ids?: string[] | null;
398
307
  detail_mode?: boolean;
399
308
  structured_output?: string | null;
@@ -515,10 +424,30 @@ export type CustomToolkitDto = {
515
424
  visibility_level: VisibilityLevelEnum;
516
425
  creator_name: string;
517
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;
518
446
  };
519
447
  export type AgentToolsDto = {
520
448
  builtin_toolkits?: BuiltinToolkitDto[];
521
449
  custom_toolkits?: CustomToolkitDto[];
450
+ mcp_toolkits?: ToolkitMcpdto[];
522
451
  };
523
452
  export type LlmSettingsModel = {
524
453
  property_key?: string | null;
@@ -589,6 +518,7 @@ export type UpdateAgentRequest = {
589
518
  sub_agents_ids?: string[];
590
519
  /** Custom tools to assign to the agent */
591
520
  custom_tools?: AssignCustomToolsAgentRequest[] | null;
521
+ mcp_toolkit_ids?: string[] | null;
592
522
  detail_mode?: boolean | null;
593
523
  structured_output?: string | null;
594
524
  llm_settings?: {
@@ -686,6 +616,34 @@ export type ToolkitForkResponse = {
686
616
  /** List of toolkit IDs that failed to fork */
687
617
  error_ids: string[];
688
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
+ };
689
647
  /**
690
648
  * Health Check
691
649
  */
@@ -780,13 +738,13 @@ export function listToolkitsV1ToolkitsGet({ visibility, xAccountId, xUsername, x
780
738
  /**
781
739
  * Create Toolkit
782
740
  */
783
- export function createToolkitV1ToolkitsPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, toolkitRequest }: {
741
+ export function createToolkitV1ToolkitsPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, body }: {
784
742
  xAccountId?: string | null;
785
743
  xUsername?: string | null;
786
744
  xUserId?: string | null;
787
745
  xUserFullName?: string | null;
788
746
  authorization: string;
789
- toolkitRequest: ToolkitRequest;
747
+ body: ToolkitRequest | ToolkitMcpRequest;
790
748
  }, opts?: Oazapfts.RequestOpts) {
791
749
  return oazapfts.ok(oazapfts.fetchJson<{
792
750
  status: 201;
@@ -799,7 +757,7 @@ export function createToolkitV1ToolkitsPost({ xAccountId, xUsername, xUserId, xU
799
757
  }>("/v1/toolkits", oazapfts.json({
800
758
  ...opts,
801
759
  method: "POST",
802
- body: toolkitRequest,
760
+ body,
803
761
  headers: oazapfts.mergeHeaders(opts?.headers, {
804
762
  "x-account-id": xAccountId,
805
763
  "x-username": xUsername,
@@ -842,14 +800,14 @@ export function getToolkitV1ToolkitsToolkitIdGet({ toolkitId, xAccountId, xUsern
842
800
  /**
843
801
  * Update Toolkit
844
802
  */
845
- export function updateToolkitV1ToolkitsToolkitIdPatch({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, toolkitUpdateRequest }: {
803
+ export function updateToolkitV1ToolkitsToolkitIdPatch({ toolkitId, xAccountId, xUsername, xUserId, xUserFullName, authorization, body }: {
846
804
  toolkitId: string;
847
805
  xAccountId?: string | null;
848
806
  xUsername?: string | null;
849
807
  xUserId?: string | null;
850
808
  xUserFullName?: string | null;
851
809
  authorization: string;
852
- toolkitUpdateRequest: ToolkitUpdateRequest;
810
+ body: ToolkitUpdateRequest | ToolkitMcpUpdateRequest;
853
811
  }, opts?: Oazapfts.RequestOpts) {
854
812
  return oazapfts.ok(oazapfts.fetchJson<{
855
813
  status: 204;
@@ -861,7 +819,7 @@ export function updateToolkitV1ToolkitsToolkitIdPatch({ toolkitId, xAccountId, x
861
819
  }>(`/v1/toolkits/${encodeURIComponent(toolkitId)}`, oazapfts.json({
862
820
  ...opts,
863
821
  method: "PATCH",
864
- body: toolkitUpdateRequest,
822
+ body,
865
823
  headers: oazapfts.mergeHeaders(opts?.headers, {
866
824
  "x-account-id": xAccountId,
867
825
  "x-username": xUsername,
@@ -2186,3 +2144,75 @@ export function internalForkToolkitsByIdsV1SpotToolkitsForkPost({ xAccountId, xU
2186
2144
  })
2187
2145
  })));
2188
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
+ }