gatana-sdk 2.3.9 → 3.0.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.
- package/dist/api/index.cjs +159 -121
- package/dist/api/index.d.cts +2 -2
- package/dist/api/index.d.mts +2 -2
- package/dist/api/index.mjs +2 -2
- package/dist/apiv2/index.cjs +14 -11
- package/dist/apiv2/index.d.cts +2 -2
- package/dist/apiv2/index.d.mts +2 -2
- package/dist/apiv2/index.mjs +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/sdk.gen-C2b2ZNMj.d.mts +9639 -0
- package/dist/sdk.gen-C2b2ZNMj.d.mts.map +1 -0
- package/dist/{sdk.gen-DUNHa0uM.mjs → sdk.gen-CAAxLIvj.mjs} +85 -28
- package/dist/{sdk.gen-DUNHa0uM.mjs.map → sdk.gen-CAAxLIvj.mjs.map} +1 -1
- package/dist/{sdk.gen-BMl_z1y-.cjs → sdk.gen-Cdv7MDsj.cjs} +121 -46
- package/dist/sdk.gen-Crii0E1f.d.mts +2090 -0
- package/dist/sdk.gen-Crii0E1f.d.mts.map +1 -0
- package/dist/sdk.gen-CyOAEozT.cjs +4269 -0
- package/dist/sdk.gen-Do_HFvZj.d.cts +2090 -0
- package/dist/sdk.gen-Do_HFvZj.d.cts.map +1 -0
- package/dist/{sdk.gen-B_k9Vt0B.cjs → sdk.gen-OcCJ7VK7.mjs} +1161 -1016
- package/dist/sdk.gen-OcCJ7VK7.mjs.map +1 -0
- package/dist/sdk.gen-aJw0bLkG.d.cts +9639 -0
- package/dist/sdk.gen-aJw0bLkG.d.cts.map +1 -0
- package/package.json +1 -1
- package/dist/sdk.gen-B5HNJH3y.mjs +0 -2388
- package/dist/sdk.gen-B5HNJH3y.mjs.map +0 -1
- package/dist/sdk.gen-BfbbIXIn.d.cts +0 -4422
- package/dist/sdk.gen-BfbbIXIn.d.cts.map +0 -1
- package/dist/sdk.gen-BlL_JhaF.d.mts +0 -987
- package/dist/sdk.gen-BlL_JhaF.d.mts.map +0 -1
- package/dist/sdk.gen-Dnt5grWk.d.cts +0 -987
- package/dist/sdk.gen-Dnt5grWk.d.cts.map +0 -1
- package/dist/sdk.gen-cu6fHqHG.d.mts +0 -4422
- package/dist/sdk.gen-cu6fHqHG.d.mts.map +0 -1
|
@@ -1,987 +0,0 @@
|
|
|
1
|
-
//#region src/apiv2/core/auth.gen.d.ts
|
|
2
|
-
type AuthToken = string | undefined;
|
|
3
|
-
interface Auth {
|
|
4
|
-
/**
|
|
5
|
-
* Which part of the request do we use to send the auth?
|
|
6
|
-
*
|
|
7
|
-
* @default 'header'
|
|
8
|
-
*/
|
|
9
|
-
in?: 'header' | 'query' | 'cookie';
|
|
10
|
-
/**
|
|
11
|
-
* Header or query parameter name.
|
|
12
|
-
*
|
|
13
|
-
* @default 'Authorization'
|
|
14
|
-
*/
|
|
15
|
-
name?: string;
|
|
16
|
-
scheme?: 'basic' | 'bearer';
|
|
17
|
-
type: 'apiKey' | 'http';
|
|
18
|
-
}
|
|
19
|
-
//#endregion
|
|
20
|
-
//#region src/apiv2/core/pathSerializer.gen.d.ts
|
|
21
|
-
interface SerializerOptions<T> {
|
|
22
|
-
/**
|
|
23
|
-
* @default true
|
|
24
|
-
*/
|
|
25
|
-
explode: boolean;
|
|
26
|
-
style: T;
|
|
27
|
-
}
|
|
28
|
-
type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
|
|
29
|
-
type ObjectStyle = 'form' | 'deepObject';
|
|
30
|
-
//#endregion
|
|
31
|
-
//#region src/apiv2/core/bodySerializer.gen.d.ts
|
|
32
|
-
type QuerySerializer = (query: Record<string, unknown>) => string;
|
|
33
|
-
type BodySerializer = (body: unknown) => unknown;
|
|
34
|
-
type QuerySerializerOptionsObject = {
|
|
35
|
-
allowReserved?: boolean;
|
|
36
|
-
array?: Partial<SerializerOptions<ArrayStyle>>;
|
|
37
|
-
object?: Partial<SerializerOptions<ObjectStyle>>;
|
|
38
|
-
};
|
|
39
|
-
type QuerySerializerOptions = QuerySerializerOptionsObject & {
|
|
40
|
-
/**
|
|
41
|
-
* Per-parameter serialization overrides. When provided, these settings
|
|
42
|
-
* override the global array/object settings for specific parameter names.
|
|
43
|
-
*/
|
|
44
|
-
parameters?: Record<string, QuerySerializerOptionsObject>;
|
|
45
|
-
};
|
|
46
|
-
//#endregion
|
|
47
|
-
//#region src/apiv2/core/types.gen.d.ts
|
|
48
|
-
type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
|
|
49
|
-
type Client$1<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
|
|
50
|
-
/**
|
|
51
|
-
* Returns the final request URL.
|
|
52
|
-
*/
|
|
53
|
-
buildUrl: BuildUrlFn;
|
|
54
|
-
getConfig: () => Config;
|
|
55
|
-
request: RequestFn;
|
|
56
|
-
setConfig: (config: Config) => Config;
|
|
57
|
-
} & { [K in HttpMethod]: MethodFn } & ([SseFn] extends [never] ? {
|
|
58
|
-
sse?: never;
|
|
59
|
-
} : {
|
|
60
|
-
sse: { [K in HttpMethod]: SseFn };
|
|
61
|
-
});
|
|
62
|
-
interface Config$1 {
|
|
63
|
-
/**
|
|
64
|
-
* Auth token or a function returning auth token. The resolved value will be
|
|
65
|
-
* added to the request payload as defined by its `security` array.
|
|
66
|
-
*/
|
|
67
|
-
auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
|
|
68
|
-
/**
|
|
69
|
-
* A function for serializing request body parameter. By default,
|
|
70
|
-
* {@link JSON.stringify()} will be used.
|
|
71
|
-
*/
|
|
72
|
-
bodySerializer?: BodySerializer | null;
|
|
73
|
-
/**
|
|
74
|
-
* An object containing any HTTP headers that you want to pre-populate your
|
|
75
|
-
* `Headers` object with.
|
|
76
|
-
*
|
|
77
|
-
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
|
|
78
|
-
*/
|
|
79
|
-
headers?: RequestInit['headers'] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
|
|
80
|
-
/**
|
|
81
|
-
* The request method.
|
|
82
|
-
*
|
|
83
|
-
* {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
|
|
84
|
-
*/
|
|
85
|
-
method?: Uppercase<HttpMethod>;
|
|
86
|
-
/**
|
|
87
|
-
* A function for serializing request query parameters. By default, arrays
|
|
88
|
-
* will be exploded in form style, objects will be exploded in deepObject
|
|
89
|
-
* style, and reserved characters are percent-encoded.
|
|
90
|
-
*
|
|
91
|
-
* This method will have no effect if the native `paramsSerializer()` Axios
|
|
92
|
-
* API function is used.
|
|
93
|
-
*
|
|
94
|
-
* {@link https://swagger.io/docs/specification/serialization/#query View examples}
|
|
95
|
-
*/
|
|
96
|
-
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
97
|
-
/**
|
|
98
|
-
* A function validating request data. This is useful if you want to ensure
|
|
99
|
-
* the request conforms to the desired shape, so it can be safely sent to
|
|
100
|
-
* the server.
|
|
101
|
-
*/
|
|
102
|
-
requestValidator?: (data: unknown) => Promise<unknown>;
|
|
103
|
-
/**
|
|
104
|
-
* A function transforming response data before it's returned. This is useful
|
|
105
|
-
* for post-processing data, e.g., converting ISO strings into Date objects.
|
|
106
|
-
*/
|
|
107
|
-
responseTransformer?: (data: unknown) => Promise<unknown>;
|
|
108
|
-
/**
|
|
109
|
-
* A function validating response data. This is useful if you want to ensure
|
|
110
|
-
* the response conforms to the desired shape, so it can be safely passed to
|
|
111
|
-
* the transformers and returned to the user.
|
|
112
|
-
*/
|
|
113
|
-
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
114
|
-
}
|
|
115
|
-
//#endregion
|
|
116
|
-
//#region src/apiv2/core/serverSentEvents.gen.d.ts
|
|
117
|
-
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$1, 'method' | 'responseTransformer' | 'responseValidator'> & {
|
|
118
|
-
/**
|
|
119
|
-
* Fetch API implementation. You can use this option to provide a custom
|
|
120
|
-
* fetch instance.
|
|
121
|
-
*
|
|
122
|
-
* @default globalThis.fetch
|
|
123
|
-
*/
|
|
124
|
-
fetch?: typeof fetch;
|
|
125
|
-
/**
|
|
126
|
-
* Implementing clients can call request interceptors inside this hook.
|
|
127
|
-
*/
|
|
128
|
-
onRequest?: (url: string, init: RequestInit) => Promise<Request>;
|
|
129
|
-
/**
|
|
130
|
-
* Callback invoked when a network or parsing error occurs during streaming.
|
|
131
|
-
*
|
|
132
|
-
* This option applies only if the endpoint returns a stream of events.
|
|
133
|
-
*
|
|
134
|
-
* @param error The error that occurred.
|
|
135
|
-
*/
|
|
136
|
-
onSseError?: (error: unknown) => void;
|
|
137
|
-
/**
|
|
138
|
-
* Callback invoked when an event is streamed from the server.
|
|
139
|
-
*
|
|
140
|
-
* This option applies only if the endpoint returns a stream of events.
|
|
141
|
-
*
|
|
142
|
-
* @param event Event streamed from the server.
|
|
143
|
-
* @returns Nothing (void).
|
|
144
|
-
*/
|
|
145
|
-
onSseEvent?: (event: StreamEvent<TData>) => void;
|
|
146
|
-
serializedBody?: RequestInit['body'];
|
|
147
|
-
/**
|
|
148
|
-
* Default retry delay in milliseconds.
|
|
149
|
-
*
|
|
150
|
-
* This option applies only if the endpoint returns a stream of events.
|
|
151
|
-
*
|
|
152
|
-
* @default 3000
|
|
153
|
-
*/
|
|
154
|
-
sseDefaultRetryDelay?: number;
|
|
155
|
-
/**
|
|
156
|
-
* Maximum number of retry attempts before giving up.
|
|
157
|
-
*/
|
|
158
|
-
sseMaxRetryAttempts?: number;
|
|
159
|
-
/**
|
|
160
|
-
* Maximum retry delay in milliseconds.
|
|
161
|
-
*
|
|
162
|
-
* Applies only when exponential backoff is used.
|
|
163
|
-
*
|
|
164
|
-
* This option applies only if the endpoint returns a stream of events.
|
|
165
|
-
*
|
|
166
|
-
* @default 30000
|
|
167
|
-
*/
|
|
168
|
-
sseMaxRetryDelay?: number;
|
|
169
|
-
/**
|
|
170
|
-
* Optional sleep function for retry backoff.
|
|
171
|
-
*
|
|
172
|
-
* Defaults to using `setTimeout`.
|
|
173
|
-
*/
|
|
174
|
-
sseSleepFn?: (ms: number) => Promise<void>;
|
|
175
|
-
url: string;
|
|
176
|
-
};
|
|
177
|
-
interface StreamEvent<TData = unknown> {
|
|
178
|
-
data: TData;
|
|
179
|
-
event?: string;
|
|
180
|
-
id?: string;
|
|
181
|
-
retry?: number;
|
|
182
|
-
}
|
|
183
|
-
type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
|
|
184
|
-
stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
|
|
185
|
-
};
|
|
186
|
-
//#endregion
|
|
187
|
-
//#region src/apiv2/client/utils.gen.d.ts
|
|
188
|
-
type ErrInterceptor<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
|
|
189
|
-
type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
|
|
190
|
-
type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
|
|
191
|
-
declare class Interceptors<Interceptor> {
|
|
192
|
-
fns: Array<Interceptor | null>;
|
|
193
|
-
clear(): void;
|
|
194
|
-
eject(id: number | Interceptor): void;
|
|
195
|
-
exists(id: number | Interceptor): boolean;
|
|
196
|
-
getInterceptorIndex(id: number | Interceptor): number;
|
|
197
|
-
update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
|
|
198
|
-
use(fn: Interceptor): number;
|
|
199
|
-
}
|
|
200
|
-
interface Middleware<Req, Res, Err, Options> {
|
|
201
|
-
error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;
|
|
202
|
-
request: Interceptors<ReqInterceptor<Req, Options>>;
|
|
203
|
-
response: Interceptors<ResInterceptor<Res, Req, Options>>;
|
|
204
|
-
}
|
|
205
|
-
//#endregion
|
|
206
|
-
//#region src/apiv2/client/types.gen.d.ts
|
|
207
|
-
type ResponseStyle = 'data' | 'fields';
|
|
208
|
-
interface Config<T extends ClientOptions$1 = ClientOptions$1> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$1 {
|
|
209
|
-
/**
|
|
210
|
-
* Base URL for all requests made by this client.
|
|
211
|
-
*/
|
|
212
|
-
baseUrl?: T['baseUrl'];
|
|
213
|
-
/**
|
|
214
|
-
* Fetch API implementation. You can use this option to provide a custom
|
|
215
|
-
* fetch instance.
|
|
216
|
-
*
|
|
217
|
-
* @default globalThis.fetch
|
|
218
|
-
*/
|
|
219
|
-
fetch?: typeof fetch;
|
|
220
|
-
/**
|
|
221
|
-
* Please don't use the Fetch client for Next.js applications. The `next`
|
|
222
|
-
* options won't have any effect.
|
|
223
|
-
*
|
|
224
|
-
* Install {@link https://www.npmjs.com/package/@hey-api/client-next `@hey-api/client-next`} instead.
|
|
225
|
-
*/
|
|
226
|
-
next?: never;
|
|
227
|
-
/**
|
|
228
|
-
* Return the response data parsed in a specified format. By default, `auto`
|
|
229
|
-
* will infer the appropriate method from the `Content-Type` response header.
|
|
230
|
-
* You can override this behavior with any of the {@link Body} methods.
|
|
231
|
-
* Select `stream` if you don't want to parse response data at all.
|
|
232
|
-
*
|
|
233
|
-
* @default 'auto'
|
|
234
|
-
*/
|
|
235
|
-
parseAs?: 'arrayBuffer' | 'auto' | 'blob' | 'formData' | 'json' | 'stream' | 'text';
|
|
236
|
-
/**
|
|
237
|
-
* Should we return only data or multiple fields (data, error, response, etc.)?
|
|
238
|
-
*
|
|
239
|
-
* @default 'fields'
|
|
240
|
-
*/
|
|
241
|
-
responseStyle?: ResponseStyle;
|
|
242
|
-
/**
|
|
243
|
-
* Throw an error instead of returning it in the response?
|
|
244
|
-
*
|
|
245
|
-
* @default false
|
|
246
|
-
*/
|
|
247
|
-
throwOnError?: T['throwOnError'];
|
|
248
|
-
}
|
|
249
|
-
interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
|
|
250
|
-
responseStyle: TResponseStyle;
|
|
251
|
-
throwOnError: ThrowOnError;
|
|
252
|
-
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
253
|
-
/**
|
|
254
|
-
* Any body that you want to add to your request.
|
|
255
|
-
*
|
|
256
|
-
* {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
|
|
257
|
-
*/
|
|
258
|
-
body?: unknown;
|
|
259
|
-
path?: Record<string, unknown>;
|
|
260
|
-
query?: Record<string, unknown>;
|
|
261
|
-
/**
|
|
262
|
-
* Security mechanism(s) to use for the request.
|
|
263
|
-
*/
|
|
264
|
-
security?: ReadonlyArray<Auth>;
|
|
265
|
-
url: Url;
|
|
266
|
-
}
|
|
267
|
-
interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
268
|
-
serializedBody?: string;
|
|
269
|
-
}
|
|
270
|
-
type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
|
|
271
|
-
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
272
|
-
request: Request;
|
|
273
|
-
response: Response;
|
|
274
|
-
}> : Promise<TResponseStyle extends 'data' ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
|
|
275
|
-
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
276
|
-
error: undefined;
|
|
277
|
-
} | {
|
|
278
|
-
data: undefined;
|
|
279
|
-
error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
|
|
280
|
-
}) & {
|
|
281
|
-
request: Request;
|
|
282
|
-
response: Response;
|
|
283
|
-
}>;
|
|
284
|
-
interface ClientOptions$1 {
|
|
285
|
-
baseUrl?: string;
|
|
286
|
-
responseStyle?: ResponseStyle;
|
|
287
|
-
throwOnError?: boolean;
|
|
288
|
-
}
|
|
289
|
-
type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
290
|
-
type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<never, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
|
|
291
|
-
type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
292
|
-
type BuildUrlFn = <TData extends {
|
|
293
|
-
body?: unknown;
|
|
294
|
-
path?: Record<string, unknown>;
|
|
295
|
-
query?: Record<string, unknown>;
|
|
296
|
-
url: string;
|
|
297
|
-
}>(options: TData & Options$1<TData>) => string;
|
|
298
|
-
type Client = Client$1<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
|
|
299
|
-
interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
|
|
300
|
-
};
|
|
301
|
-
interface TDataShape {
|
|
302
|
-
body?: unknown;
|
|
303
|
-
headers?: unknown;
|
|
304
|
-
path?: unknown;
|
|
305
|
-
query?: unknown;
|
|
306
|
-
url: string;
|
|
307
|
-
}
|
|
308
|
-
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
309
|
-
type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
310
|
-
//#endregion
|
|
311
|
-
//#region src/apiv2/types.gen.d.ts
|
|
312
|
-
type ClientOptions = {
|
|
313
|
-
baseUrl: 'https://{YOUR_ORG_ID}.gatana.ai/api/v2' | (string & {});
|
|
314
|
-
};
|
|
315
|
-
type V2CreateServerRequest = {
|
|
316
|
-
slug: Schema0;
|
|
317
|
-
transportConfig?: Schema1;
|
|
318
|
-
transportConfigType?: Schema29;
|
|
319
|
-
description?: Schema30;
|
|
320
|
-
authorization?: ServerAuthorization;
|
|
321
|
-
oauthMetadata?: Schema36;
|
|
322
|
-
oauthClientConfiguration?: Schema39;
|
|
323
|
-
isEnabled?: Schema44;
|
|
324
|
-
timeoutProtocol?: Schema45;
|
|
325
|
-
timeoutTotal?: Schema46;
|
|
326
|
-
resetTimeoutOnProgressNotification?: Schema47;
|
|
327
|
-
isOutputCompressionEnabled?: Schema48;
|
|
328
|
-
isOutputCompressionTransformEnabled?: Schema49;
|
|
329
|
-
outputCompressionThresholdBytes?: Schema50;
|
|
330
|
-
firewallRules?: Schema51;
|
|
331
|
-
visibility?: ServerVisibility;
|
|
332
|
-
id?: Schema54;
|
|
333
|
-
tenantId?: Schema55;
|
|
334
|
-
lastToolRefreshAt?: Schema56;
|
|
335
|
-
createdAt?: Schema57;
|
|
336
|
-
updatedAt?: Schema58;
|
|
337
|
-
};
|
|
338
|
-
type HttpStreamingTransportConfig = {
|
|
339
|
-
type: Schema2;
|
|
340
|
-
url: Schema3;
|
|
341
|
-
headers?: Schema4;
|
|
342
|
-
};
|
|
343
|
-
type StdioTransportConfig = {
|
|
344
|
-
type: Schema5;
|
|
345
|
-
command: Schema6;
|
|
346
|
-
dockerImage?: Schema7;
|
|
347
|
-
env?: Schema8;
|
|
348
|
-
transport: Schema9;
|
|
349
|
-
httpPort?: Schema10;
|
|
350
|
-
urlPath?: Schema11;
|
|
351
|
-
healthCheck?: Schema12;
|
|
352
|
-
limits?: Schema13;
|
|
353
|
-
};
|
|
354
|
-
type SseTransportConfig = {
|
|
355
|
-
type: Schema16;
|
|
356
|
-
url: Schema17;
|
|
357
|
-
headers?: Schema18;
|
|
358
|
-
};
|
|
359
|
-
type HostedTransportConfig = {
|
|
360
|
-
type: Schema19;
|
|
361
|
-
runtime: Schema20;
|
|
362
|
-
env?: Schema21;
|
|
363
|
-
limits?: Schema22;
|
|
364
|
-
};
|
|
365
|
-
type OpenApiTransportConfig = {
|
|
366
|
-
type: Schema23;
|
|
367
|
-
method: Schema24;
|
|
368
|
-
specUrl?: Schema25;
|
|
369
|
-
spec?: Schema26;
|
|
370
|
-
baseUrl?: Schema27;
|
|
371
|
-
headers?: Schema28;
|
|
372
|
-
};
|
|
373
|
-
type ServerAuthorization = {
|
|
374
|
-
method: Schema32;
|
|
375
|
-
credentialsScope: Schema33;
|
|
376
|
-
apikeys?: Schema34;
|
|
377
|
-
toolRefreshCredentialPolicy?: ToolRefreshCredentialPolicy;
|
|
378
|
-
};
|
|
379
|
-
/**
|
|
380
|
-
* Controls how tool refresh is authorized. "server-scoped" means only server-scoped credentials are required, "skip" means refresh is done without authorization, and "any" means any available credentials (server, user, profile) can be used. Defaults to "server-scoped".
|
|
381
|
-
*/
|
|
382
|
-
type ToolRefreshCredentialPolicy = Schema35;
|
|
383
|
-
type ServerOAuthMetadata = {
|
|
384
|
-
resource?: Schema37;
|
|
385
|
-
as?: Schema38;
|
|
386
|
-
};
|
|
387
|
-
type ServerOAuthClientConfiguration = {
|
|
388
|
-
clientId?: Schema40;
|
|
389
|
-
clientSecret?: Schema41;
|
|
390
|
-
grantType: OAuthGrantType;
|
|
391
|
-
clientAuthMethod: Schema42;
|
|
392
|
-
scopes?: Schema43;
|
|
393
|
-
};
|
|
394
|
-
type OAuthGrantType = 'authorization_code' | 'device_code';
|
|
395
|
-
type ServerVisibility = 'private' | 'organization';
|
|
396
|
-
type V2UpdateServerRequest = {
|
|
397
|
-
slug?: Schema60;
|
|
398
|
-
description?: Schema61;
|
|
399
|
-
authorization?: ServerAuthorization;
|
|
400
|
-
transportConfig?: Schema63;
|
|
401
|
-
oauthMetadata?: Schema64;
|
|
402
|
-
oauthClientConfiguration?: Schema65;
|
|
403
|
-
isEnabled?: Schema66;
|
|
404
|
-
timeoutProtocol?: Schema67;
|
|
405
|
-
timeoutTotal?: Schema68;
|
|
406
|
-
resetTimeoutOnProgressNotification?: Schema69;
|
|
407
|
-
isOutputCompressionEnabled?: Schema70;
|
|
408
|
-
isOutputCompressionTransformEnabled?: Schema71;
|
|
409
|
-
outputCompressionThresholdBytes?: Schema72;
|
|
410
|
-
firewallRules?: Schema73;
|
|
411
|
-
visibility?: ServerVisibility;
|
|
412
|
-
id?: Schema75;
|
|
413
|
-
tenantId?: Schema76;
|
|
414
|
-
name?: Schema77;
|
|
415
|
-
lastToolRefreshAt?: Schema78;
|
|
416
|
-
createdAt?: Schema79;
|
|
417
|
-
updatedAt?: Schema80;
|
|
418
|
-
};
|
|
419
|
-
type V2PatchServerRequest = { [key in Schema81]?: Schema82 };
|
|
420
|
-
type Schema0 = string;
|
|
421
|
-
type Schema1 = HttpStreamingTransportConfig | StdioTransportConfig | SseTransportConfig | HostedTransportConfig | OpenApiTransportConfig;
|
|
422
|
-
type Schema2 = 'httpstreaming';
|
|
423
|
-
type Schema3 = string;
|
|
424
|
-
type Schema4 = Array<[string, string]>;
|
|
425
|
-
type Schema5 = 'stdio';
|
|
426
|
-
type Schema6 = string;
|
|
427
|
-
type Schema7 = string;
|
|
428
|
-
type Schema8 = Array<[string, string]>;
|
|
429
|
-
type Schema9 = 'sse' | 'httpstreaming' | 'stdio';
|
|
430
|
-
type Schema10 = number | null;
|
|
431
|
-
type Schema11 = string | null;
|
|
432
|
-
type Schema12 = {
|
|
433
|
-
enabled: boolean;
|
|
434
|
-
url?: string;
|
|
435
|
-
delaySeconds: number | null;
|
|
436
|
-
intervalSeconds: number | null;
|
|
437
|
-
failureThreshold: number | null;
|
|
438
|
-
};
|
|
439
|
-
type Schema13 = {
|
|
440
|
-
cpu?: Schema14;
|
|
441
|
-
memory?: Schema15;
|
|
442
|
-
} | null;
|
|
443
|
-
type Schema14 = string;
|
|
444
|
-
type Schema15 = string;
|
|
445
|
-
type Schema16 = 'sse';
|
|
446
|
-
type Schema17 = string;
|
|
447
|
-
type Schema18 = Array<[string, string]>;
|
|
448
|
-
type Schema19 = 'hosted';
|
|
449
|
-
type Schema20 = 'node24';
|
|
450
|
-
type Schema21 = Array<[string, string]>;
|
|
451
|
-
type Schema22 = {
|
|
452
|
-
cpu?: Schema14;
|
|
453
|
-
memory?: Schema15;
|
|
454
|
-
} | null;
|
|
455
|
-
type Schema23 = 'openapi';
|
|
456
|
-
type Schema24 = 'specUrl' | 'spec';
|
|
457
|
-
type Schema25 = string | '';
|
|
458
|
-
type Schema26 = string;
|
|
459
|
-
type Schema27 = string | '';
|
|
460
|
-
type Schema28 = Array<[string, string]>;
|
|
461
|
-
type Schema29 = 'httpstreaming' | 'sse' | 'stdio' | 'hosted' | 'openapi';
|
|
462
|
-
type Schema30 = string;
|
|
463
|
-
type Schema31 = ServerAuthorization;
|
|
464
|
-
type Schema32 = 'none' | 'oauth' | 'oauth-client-credentials' | 'apikey';
|
|
465
|
-
type Schema33 = 'server' | 'user';
|
|
466
|
-
type Schema34 = Array<string>;
|
|
467
|
-
type Schema35 = 'server-scoped' | 'skip' | 'any';
|
|
468
|
-
type Schema36 = ServerOAuthMetadata | null;
|
|
469
|
-
type Schema37 = {
|
|
470
|
-
id?: string;
|
|
471
|
-
availableScopes?: Array<string>;
|
|
472
|
-
metadataUrl?: string;
|
|
473
|
-
};
|
|
474
|
-
type Schema38 = {
|
|
475
|
-
issuer?: string;
|
|
476
|
-
authorizeEndpoint?: string;
|
|
477
|
-
deviceAuthorizationEndpoint?: string;
|
|
478
|
-
tokenEndpoint?: string;
|
|
479
|
-
extraAuthorizationParameters?: string;
|
|
480
|
-
registrationEndpoint?: string;
|
|
481
|
-
supportsPKCE?: boolean;
|
|
482
|
-
supportedClientAuthMethods?: Array<string>;
|
|
483
|
-
supportsDynamicClientRegistration?: boolean;
|
|
484
|
-
noDynamicClientRegistrationReason?: string | null;
|
|
485
|
-
serviceDocumentation?: string;
|
|
486
|
-
metadataUrl?: string;
|
|
487
|
-
availableScopes?: Array<string>;
|
|
488
|
-
};
|
|
489
|
-
type Schema39 = ServerOAuthClientConfiguration | null;
|
|
490
|
-
type Schema40 = string;
|
|
491
|
-
type Schema41 = string;
|
|
492
|
-
type Schema42 = 'client_secret_basic' | 'client_secret_post' | 'none' | string;
|
|
493
|
-
type Schema43 = string;
|
|
494
|
-
type Schema44 = boolean;
|
|
495
|
-
type Schema45 = number;
|
|
496
|
-
type Schema46 = number;
|
|
497
|
-
type Schema47 = boolean;
|
|
498
|
-
type Schema48 = boolean;
|
|
499
|
-
type Schema49 = boolean;
|
|
500
|
-
type Schema50 = number;
|
|
501
|
-
type Schema51 = Array<Schema52>;
|
|
502
|
-
type Schema52 = {
|
|
503
|
-
/**
|
|
504
|
-
* CEL representing the condition
|
|
505
|
-
*/
|
|
506
|
-
condition: string;
|
|
507
|
-
action: 'deny' | 'modify' | 'log';
|
|
508
|
-
};
|
|
509
|
-
type Schema53 = ServerVisibility;
|
|
510
|
-
type Schema54 = string;
|
|
511
|
-
type Schema55 = string;
|
|
512
|
-
type Schema56 = string | null;
|
|
513
|
-
type Schema57 = string;
|
|
514
|
-
type Schema58 = string;
|
|
515
|
-
type Schema59 = string;
|
|
516
|
-
type Schema60 = string;
|
|
517
|
-
type Schema61 = string;
|
|
518
|
-
type Schema62 = ServerAuthorization;
|
|
519
|
-
type Schema63 = HttpStreamingTransportConfig | StdioTransportConfig | SseTransportConfig | {
|
|
520
|
-
type: 'self';
|
|
521
|
-
id: string;
|
|
522
|
-
} | HostedTransportConfig | OpenApiTransportConfig;
|
|
523
|
-
type Schema64 = ServerOAuthMetadata | null;
|
|
524
|
-
type Schema65 = ServerOAuthClientConfiguration | null;
|
|
525
|
-
type Schema66 = boolean;
|
|
526
|
-
type Schema67 = number;
|
|
527
|
-
type Schema68 = number;
|
|
528
|
-
type Schema69 = boolean;
|
|
529
|
-
type Schema70 = boolean;
|
|
530
|
-
type Schema71 = boolean;
|
|
531
|
-
type Schema72 = number;
|
|
532
|
-
type Schema73 = Array<Schema52>;
|
|
533
|
-
type Schema74 = ServerVisibility;
|
|
534
|
-
type Schema75 = string;
|
|
535
|
-
type Schema76 = string;
|
|
536
|
-
type Schema77 = string;
|
|
537
|
-
type Schema78 = string | null;
|
|
538
|
-
type Schema79 = string;
|
|
539
|
-
type Schema80 = string;
|
|
540
|
-
type Schema81 = string;
|
|
541
|
-
type Schema82 = unknown;
|
|
542
|
-
type V2ListServersResponse = {
|
|
543
|
-
servers: Schema83;
|
|
544
|
-
};
|
|
545
|
-
type V2ServerDto = Server;
|
|
546
|
-
type Server = {
|
|
547
|
-
id: Schema84;
|
|
548
|
-
slug: Schema85;
|
|
549
|
-
tenantId: Schema86;
|
|
550
|
-
description: Schema87;
|
|
551
|
-
authorization: ServerAuthorizationOutput;
|
|
552
|
-
transportConfig: Schema92;
|
|
553
|
-
oauthClientConfiguration: Schema120;
|
|
554
|
-
oauthMetadata: Schema125;
|
|
555
|
-
visibility: ServerVisibility;
|
|
556
|
-
isEnabled: Schema128;
|
|
557
|
-
lastToolRefreshAt: Schema129;
|
|
558
|
-
timeoutProtocol: Schema130;
|
|
559
|
-
timeoutTotal: Schema131;
|
|
560
|
-
resetTimeoutOnProgressNotification: Schema132;
|
|
561
|
-
isOutputCompressionEnabled: Schema133;
|
|
562
|
-
isOutputCompressionTransformEnabled: Schema134;
|
|
563
|
-
outputCompressionThresholdBytes: Schema135;
|
|
564
|
-
firewallRules: Schema136;
|
|
565
|
-
createdAt: Schema137;
|
|
566
|
-
updatedAt: Schema138;
|
|
567
|
-
};
|
|
568
|
-
type CredentialDtoV2 = {
|
|
569
|
-
id: Schema140;
|
|
570
|
-
tenantId: Schema141;
|
|
571
|
-
scope: Schema142;
|
|
572
|
-
userId: Schema143;
|
|
573
|
-
profileId: Schema144;
|
|
574
|
-
lastUsedAt: Schema145;
|
|
575
|
-
authorizedAt: Schema146;
|
|
576
|
-
type: Schema147;
|
|
577
|
-
createdAt: Schema148;
|
|
578
|
-
updatedAt: Schema149;
|
|
579
|
-
serverSlug: Schema150;
|
|
580
|
-
userEmail: Schema151;
|
|
581
|
-
userName: Schema152;
|
|
582
|
-
profileName: Schema153;
|
|
583
|
-
};
|
|
584
|
-
type ServerCredentialsCredential = ({
|
|
585
|
-
type: 'apikey';
|
|
586
|
-
} & ServerCredentialsApiKeys) | ({
|
|
587
|
-
type: 'oauth';
|
|
588
|
-
} & ServerCredentialsOauthTokens) | ({
|
|
589
|
-
type: 'oauth-client-credentials';
|
|
590
|
-
} & ServerCredentialsOauthClientCredentials);
|
|
591
|
-
type ServerCredentialsApiKeys = {
|
|
592
|
-
type: Schema154;
|
|
593
|
-
apikeys: Schema155;
|
|
594
|
-
};
|
|
595
|
-
type ServerCredentialsOauthTokens = {
|
|
596
|
-
type: Schema156;
|
|
597
|
-
tokenSet: Schema157;
|
|
598
|
-
};
|
|
599
|
-
type ServerCredentialsOauthClientCredentials = {
|
|
600
|
-
type: Schema158;
|
|
601
|
-
clientConfig?: ServerOAuthClientConfigurationClientCredentials;
|
|
602
|
-
tokenSet?: Schema160;
|
|
603
|
-
};
|
|
604
|
-
/**
|
|
605
|
-
* Client configuration for OAuth client credentials
|
|
606
|
-
*/
|
|
607
|
-
type ServerOAuthClientConfigurationClientCredentials = Schema159;
|
|
608
|
-
type Schema83 = Array<Server>;
|
|
609
|
-
type Schema84 = string;
|
|
610
|
-
type Schema85 = string;
|
|
611
|
-
type Schema86 = string;
|
|
612
|
-
type Schema87 = string;
|
|
613
|
-
type Schema88 = 'none' | 'oauth' | 'oauth-client-credentials' | 'apikey';
|
|
614
|
-
type Schema89 = 'server' | 'user';
|
|
615
|
-
type Schema90 = Array<string>;
|
|
616
|
-
type Schema91 = 'server-scoped' | 'skip' | 'any';
|
|
617
|
-
type Schema92 = HttpStreamingTransportConfigOutput | StdioTransportConfigOutput | SseTransportConfigOutput | {
|
|
618
|
-
type: 'self';
|
|
619
|
-
id: string;
|
|
620
|
-
} | HostedTransportConfigOutput | OpenApiTransportConfigOutput;
|
|
621
|
-
type Schema93 = 'httpstreaming';
|
|
622
|
-
type Schema94 = string;
|
|
623
|
-
type Schema95 = Array<[string, string]>;
|
|
624
|
-
type Schema96 = 'stdio';
|
|
625
|
-
type Schema97 = string;
|
|
626
|
-
type Schema98 = string;
|
|
627
|
-
type Schema99 = Array<[string, string]>;
|
|
628
|
-
type Schema100 = 'sse' | 'httpstreaming' | 'stdio';
|
|
629
|
-
type Schema101 = number | null;
|
|
630
|
-
type Schema102 = string | null;
|
|
631
|
-
type Schema103 = {
|
|
632
|
-
enabled: boolean;
|
|
633
|
-
url: string;
|
|
634
|
-
delaySeconds: number | null;
|
|
635
|
-
intervalSeconds: number | null;
|
|
636
|
-
failureThreshold: number | null;
|
|
637
|
-
};
|
|
638
|
-
type Schema104 = {
|
|
639
|
-
cpu?: Schema105;
|
|
640
|
-
memory?: Schema106;
|
|
641
|
-
} | null;
|
|
642
|
-
type Schema105 = string;
|
|
643
|
-
type Schema106 = string;
|
|
644
|
-
type Schema107 = 'sse';
|
|
645
|
-
type Schema108 = string;
|
|
646
|
-
type Schema109 = Array<[string, string]>;
|
|
647
|
-
type Schema110 = 'hosted';
|
|
648
|
-
type Schema111 = 'node24';
|
|
649
|
-
type Schema112 = Array<[string, string]>;
|
|
650
|
-
type Schema113 = {
|
|
651
|
-
cpu?: Schema105;
|
|
652
|
-
memory?: Schema106;
|
|
653
|
-
} | null;
|
|
654
|
-
type Schema114 = 'openapi';
|
|
655
|
-
type Schema115 = 'specUrl' | 'spec';
|
|
656
|
-
type Schema116 = string | '';
|
|
657
|
-
type Schema117 = string;
|
|
658
|
-
type Schema118 = string | '';
|
|
659
|
-
type Schema119 = Array<[string, string]>;
|
|
660
|
-
type Schema120 = null | ServerOAuthClientConfigurationOutput;
|
|
661
|
-
type Schema121 = string;
|
|
662
|
-
type Schema122 = string;
|
|
663
|
-
type Schema123 = 'client_secret_basic' | 'client_secret_post' | 'none' | string;
|
|
664
|
-
type Schema124 = string;
|
|
665
|
-
type Schema125 = null | ServerOAuthMetadataOutput;
|
|
666
|
-
type Schema126 = {
|
|
667
|
-
id: string;
|
|
668
|
-
availableScopes: Array<string>;
|
|
669
|
-
metadataUrl: string;
|
|
670
|
-
};
|
|
671
|
-
type Schema127 = {
|
|
672
|
-
issuer: string;
|
|
673
|
-
authorizeEndpoint: string;
|
|
674
|
-
deviceAuthorizationEndpoint: string;
|
|
675
|
-
tokenEndpoint: string;
|
|
676
|
-
extraAuthorizationParameters: string;
|
|
677
|
-
registrationEndpoint?: string;
|
|
678
|
-
supportsPKCE: boolean;
|
|
679
|
-
supportedClientAuthMethods: Array<string>;
|
|
680
|
-
supportsDynamicClientRegistration: boolean;
|
|
681
|
-
noDynamicClientRegistrationReason?: string | null;
|
|
682
|
-
serviceDocumentation: string;
|
|
683
|
-
metadataUrl: string;
|
|
684
|
-
availableScopes: Array<string>;
|
|
685
|
-
};
|
|
686
|
-
type Schema128 = boolean;
|
|
687
|
-
type Schema129 = string | null;
|
|
688
|
-
type Schema130 = number;
|
|
689
|
-
type Schema131 = number;
|
|
690
|
-
type Schema132 = boolean;
|
|
691
|
-
type Schema133 = boolean;
|
|
692
|
-
type Schema134 = boolean;
|
|
693
|
-
type Schema135 = number;
|
|
694
|
-
type Schema136 = Array<{
|
|
695
|
-
/**
|
|
696
|
-
* CEL representing the condition
|
|
697
|
-
*/
|
|
698
|
-
condition: string;
|
|
699
|
-
action: 'deny' | 'modify' | 'log';
|
|
700
|
-
}>;
|
|
701
|
-
type Schema137 = string;
|
|
702
|
-
type Schema138 = string;
|
|
703
|
-
type Schema139 = {
|
|
704
|
-
credentials: Array<CredentialDtoV2>;
|
|
705
|
-
};
|
|
706
|
-
type Schema140 = string;
|
|
707
|
-
type Schema141 = string;
|
|
708
|
-
type Schema142 = 'server' | 'user' | 'profile';
|
|
709
|
-
type Schema143 = string | null;
|
|
710
|
-
type Schema144 = string | null;
|
|
711
|
-
type Schema145 = string | null;
|
|
712
|
-
type Schema146 = string;
|
|
713
|
-
type Schema147 = 'oauth' | 'apikey' | 'oauth-client-credentials';
|
|
714
|
-
type Schema148 = string;
|
|
715
|
-
type Schema149 = string;
|
|
716
|
-
type Schema150 = string;
|
|
717
|
-
type Schema151 = string | null;
|
|
718
|
-
type Schema152 = string | null;
|
|
719
|
-
type Schema153 = string | null;
|
|
720
|
-
type Schema154 = 'apikey';
|
|
721
|
-
type Schema155 = Array<[string, string]>;
|
|
722
|
-
type Schema156 = 'oauth';
|
|
723
|
-
type Schema157 = {
|
|
724
|
-
accessToken: string;
|
|
725
|
-
accessTokenExpiresAt?: number;
|
|
726
|
-
idToken?: string;
|
|
727
|
-
refreshToken?: string;
|
|
728
|
-
};
|
|
729
|
-
type Schema158 = 'oauth-client-credentials';
|
|
730
|
-
type Schema159 = {
|
|
731
|
-
clientId: Schema121;
|
|
732
|
-
clientSecret: Schema122;
|
|
733
|
-
clientAuthMethod: Schema123;
|
|
734
|
-
scopes: Schema124;
|
|
735
|
-
};
|
|
736
|
-
/**
|
|
737
|
-
* Cached tokenset for client credentials
|
|
738
|
-
*/
|
|
739
|
-
type Schema160 = Schema157;
|
|
740
|
-
type ServerAuthorizationOutput = {
|
|
741
|
-
method: Schema88;
|
|
742
|
-
credentialsScope: Schema89;
|
|
743
|
-
apikeys?: Schema90;
|
|
744
|
-
toolRefreshCredentialPolicy: ToolRefreshCredentialPolicyOutput;
|
|
745
|
-
};
|
|
746
|
-
/**
|
|
747
|
-
* Controls how tool refresh is authorized. "server-scoped" means only server-scoped credentials are required, "skip" means refresh is done without authorization, and "any" means any available credentials (server, user, profile) can be used. Defaults to "server-scoped".
|
|
748
|
-
*/
|
|
749
|
-
type ToolRefreshCredentialPolicyOutput = Schema91;
|
|
750
|
-
type HttpStreamingTransportConfigOutput = {
|
|
751
|
-
type: Schema93;
|
|
752
|
-
url: Schema94;
|
|
753
|
-
headers?: Schema95;
|
|
754
|
-
};
|
|
755
|
-
type StdioTransportConfigOutput = {
|
|
756
|
-
type: Schema96;
|
|
757
|
-
command: Schema97;
|
|
758
|
-
dockerImage?: Schema98;
|
|
759
|
-
env?: Schema99;
|
|
760
|
-
transport: Schema100;
|
|
761
|
-
httpPort?: Schema101;
|
|
762
|
-
urlPath?: Schema102;
|
|
763
|
-
healthCheck?: Schema103;
|
|
764
|
-
limits?: Schema104;
|
|
765
|
-
};
|
|
766
|
-
type SseTransportConfigOutput = {
|
|
767
|
-
type: Schema107;
|
|
768
|
-
url: Schema108;
|
|
769
|
-
headers?: Schema109;
|
|
770
|
-
};
|
|
771
|
-
type HostedTransportConfigOutput = {
|
|
772
|
-
type: Schema110;
|
|
773
|
-
runtime: Schema111;
|
|
774
|
-
env?: Schema112;
|
|
775
|
-
limits?: Schema113;
|
|
776
|
-
};
|
|
777
|
-
type OpenApiTransportConfigOutput = {
|
|
778
|
-
type: Schema114;
|
|
779
|
-
method: Schema115;
|
|
780
|
-
specUrl: Schema116;
|
|
781
|
-
spec: Schema117;
|
|
782
|
-
baseUrl: Schema118;
|
|
783
|
-
headers?: Schema119;
|
|
784
|
-
};
|
|
785
|
-
type ServerOAuthClientConfigurationOutput = {
|
|
786
|
-
clientId: Schema121;
|
|
787
|
-
clientSecret: Schema122;
|
|
788
|
-
grantType: OAuthGrantType;
|
|
789
|
-
clientAuthMethod: Schema123;
|
|
790
|
-
scopes: Schema124;
|
|
791
|
-
};
|
|
792
|
-
type ServerOAuthMetadataOutput = {
|
|
793
|
-
resource?: Schema126;
|
|
794
|
-
as?: Schema127;
|
|
795
|
-
};
|
|
796
|
-
type GetServersData = {
|
|
797
|
-
body?: never;
|
|
798
|
-
path?: never;
|
|
799
|
-
query?: never;
|
|
800
|
-
url: '/servers';
|
|
801
|
-
};
|
|
802
|
-
type GetServersResponses = {
|
|
803
|
-
/**
|
|
804
|
-
* Successful response
|
|
805
|
-
*/
|
|
806
|
-
200: V2ListServersResponse;
|
|
807
|
-
};
|
|
808
|
-
type GetServersResponse = GetServersResponses[keyof GetServersResponses];
|
|
809
|
-
type PostServersData = {
|
|
810
|
-
body?: V2CreateServerRequest;
|
|
811
|
-
path?: never;
|
|
812
|
-
query?: never;
|
|
813
|
-
url: '/servers';
|
|
814
|
-
};
|
|
815
|
-
type PostServersResponses = {
|
|
816
|
-
/**
|
|
817
|
-
* Successful response
|
|
818
|
-
*/
|
|
819
|
-
200: Server;
|
|
820
|
-
};
|
|
821
|
-
type PostServersResponse = PostServersResponses[keyof PostServersResponses];
|
|
822
|
-
type DeleteServersBySlugData = {
|
|
823
|
-
body?: never;
|
|
824
|
-
path: {
|
|
825
|
-
slug: Schema59;
|
|
826
|
-
};
|
|
827
|
-
query?: never;
|
|
828
|
-
url: '/servers/{slug}';
|
|
829
|
-
};
|
|
830
|
-
type DeleteServersBySlugResponses = {
|
|
831
|
-
/**
|
|
832
|
-
* Successful response
|
|
833
|
-
*/
|
|
834
|
-
200: unknown;
|
|
835
|
-
};
|
|
836
|
-
type GetServersBySlugData = {
|
|
837
|
-
body?: never;
|
|
838
|
-
path: {
|
|
839
|
-
slug: Schema59;
|
|
840
|
-
};
|
|
841
|
-
query?: never;
|
|
842
|
-
url: '/servers/{slug}';
|
|
843
|
-
};
|
|
844
|
-
type GetServersBySlugResponses = {
|
|
845
|
-
/**
|
|
846
|
-
* Successful response
|
|
847
|
-
*/
|
|
848
|
-
200: Server;
|
|
849
|
-
};
|
|
850
|
-
type GetServersBySlugResponse = GetServersBySlugResponses[keyof GetServersBySlugResponses];
|
|
851
|
-
type PatchServersBySlugData = {
|
|
852
|
-
body?: V2PatchServerRequest;
|
|
853
|
-
path: {
|
|
854
|
-
slug: Schema59;
|
|
855
|
-
};
|
|
856
|
-
query?: never;
|
|
857
|
-
url: '/servers/{slug}';
|
|
858
|
-
};
|
|
859
|
-
type PatchServersBySlugResponses = {
|
|
860
|
-
/**
|
|
861
|
-
* Successful response
|
|
862
|
-
*/
|
|
863
|
-
200: Server;
|
|
864
|
-
};
|
|
865
|
-
type PatchServersBySlugResponse = PatchServersBySlugResponses[keyof PatchServersBySlugResponses];
|
|
866
|
-
type PutServersBySlugData = {
|
|
867
|
-
body?: V2UpdateServerRequest;
|
|
868
|
-
path: {
|
|
869
|
-
slug: Schema59;
|
|
870
|
-
};
|
|
871
|
-
query?: never;
|
|
872
|
-
url: '/servers/{slug}';
|
|
873
|
-
};
|
|
874
|
-
type PutServersBySlugResponses = {
|
|
875
|
-
/**
|
|
876
|
-
* Successful response
|
|
877
|
-
*/
|
|
878
|
-
200: Server;
|
|
879
|
-
};
|
|
880
|
-
type PutServersBySlugResponse = PutServersBySlugResponses[keyof PutServersBySlugResponses];
|
|
881
|
-
type GetCredentialsData = {
|
|
882
|
-
body?: never;
|
|
883
|
-
path?: never;
|
|
884
|
-
query?: {
|
|
885
|
-
serverId?: string;
|
|
886
|
-
};
|
|
887
|
-
url: '/credentials';
|
|
888
|
-
};
|
|
889
|
-
type GetCredentialsResponses = {
|
|
890
|
-
/**
|
|
891
|
-
* Successful response
|
|
892
|
-
*/
|
|
893
|
-
200: Schema139;
|
|
894
|
-
};
|
|
895
|
-
type GetCredentialsResponse = GetCredentialsResponses[keyof GetCredentialsResponses];
|
|
896
|
-
type DeleteCredentialsByIdData = {
|
|
897
|
-
body?: never;
|
|
898
|
-
path: {
|
|
899
|
-
id: string;
|
|
900
|
-
};
|
|
901
|
-
query?: never;
|
|
902
|
-
url: '/credentials/{id}';
|
|
903
|
-
};
|
|
904
|
-
type DeleteCredentialsByIdResponses = {
|
|
905
|
-
/**
|
|
906
|
-
* Successful response
|
|
907
|
-
*/
|
|
908
|
-
200: Schema139;
|
|
909
|
-
};
|
|
910
|
-
type DeleteCredentialsByIdResponse = DeleteCredentialsByIdResponses[keyof DeleteCredentialsByIdResponses];
|
|
911
|
-
type GetCredentialsByIdData = {
|
|
912
|
-
body?: never;
|
|
913
|
-
path: {
|
|
914
|
-
id: string;
|
|
915
|
-
};
|
|
916
|
-
query?: never;
|
|
917
|
-
url: '/credentials/{id}';
|
|
918
|
-
};
|
|
919
|
-
type GetCredentialsByIdResponses = {
|
|
920
|
-
/**
|
|
921
|
-
* Successful response
|
|
922
|
-
*/
|
|
923
|
-
200: CredentialDtoV2;
|
|
924
|
-
};
|
|
925
|
-
type GetCredentialsByIdResponse = GetCredentialsByIdResponses[keyof GetCredentialsByIdResponses];
|
|
926
|
-
type GetCredentialsByIdSecretData = {
|
|
927
|
-
body?: never;
|
|
928
|
-
path: {
|
|
929
|
-
id: string;
|
|
930
|
-
};
|
|
931
|
-
query?: never;
|
|
932
|
-
url: '/credentials/{id}/secret';
|
|
933
|
-
};
|
|
934
|
-
type GetCredentialsByIdSecretResponses = {
|
|
935
|
-
/**
|
|
936
|
-
* Successful response
|
|
937
|
-
*/
|
|
938
|
-
200: ServerCredentialsCredential;
|
|
939
|
-
};
|
|
940
|
-
type GetCredentialsByIdSecretResponse = GetCredentialsByIdSecretResponses[keyof GetCredentialsByIdSecretResponses];
|
|
941
|
-
declare namespace sdk_gen_d_exports {
|
|
942
|
-
export { Options, deleteCredentialsById, deleteServersBySlug, getCredentials, getCredentialsById, getCredentialsByIdSecret, getServers, getServersBySlug, patchServersBySlug, postServers, putServersBySlug };
|
|
943
|
-
}
|
|
944
|
-
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
|
|
945
|
-
/**
|
|
946
|
-
* You can provide a client instance returned by `createClient()` instead of
|
|
947
|
-
* individual options. This might be also useful if you want to implement a
|
|
948
|
-
* custom client.
|
|
949
|
-
*/
|
|
950
|
-
client?: Client;
|
|
951
|
-
/**
|
|
952
|
-
* You can pass arbitrary values through the `meta` object. This can be
|
|
953
|
-
* used to access values that aren't defined as part of the SDK function.
|
|
954
|
-
*/
|
|
955
|
-
meta?: Record<string, unknown>;
|
|
956
|
-
};
|
|
957
|
-
/**
|
|
958
|
-
* List all MCP servers the caller has access to.
|
|
959
|
-
*/
|
|
960
|
-
declare const getServers: <ThrowOnError extends boolean = true>(options?: Options<GetServersData, ThrowOnError>) => RequestResult<GetServersResponses, unknown, ThrowOnError, "fields">;
|
|
961
|
-
/**
|
|
962
|
-
* Create a new MCP server. Requires `slug` and `transportConfig`. All other fields are optional with sensible defaults. Read-only fields are silently ignored.
|
|
963
|
-
*/
|
|
964
|
-
declare const postServers: <ThrowOnError extends boolean = true>(options?: Options<PostServersData, ThrowOnError>) => RequestResult<PostServersResponses, unknown, ThrowOnError, "fields">;
|
|
965
|
-
/**
|
|
966
|
-
* Delete an MCP server.
|
|
967
|
-
*/
|
|
968
|
-
declare const deleteServersBySlug: <ThrowOnError extends boolean = true>(options: Options<DeleteServersBySlugData, ThrowOnError>) => RequestResult<DeleteServersBySlugResponses, unknown, ThrowOnError, "fields">;
|
|
969
|
-
/**
|
|
970
|
-
* Get a single MCP server. The response body can be PUT back to update the server.
|
|
971
|
-
*/
|
|
972
|
-
declare const getServersBySlug: <ThrowOnError extends boolean = true>(options: Options<GetServersBySlugData, ThrowOnError>) => RequestResult<GetServersBySlugResponses, unknown, ThrowOnError, "fields">;
|
|
973
|
-
/**
|
|
974
|
-
* Partially update an MCP server using JSON Merge Patch (RFC 7396). Send only the fields to change. Explicit `null` clears nullable fields (oauthMetadata, oauthClientConfiguration). Absent fields are untouched. Read-only fields are silently ignored.
|
|
975
|
-
*/
|
|
976
|
-
declare const patchServersBySlug: <ThrowOnError extends boolean = true>(options: Options<PatchServersBySlugData, ThrowOnError>) => RequestResult<PatchServersBySlugResponses, unknown, ThrowOnError, "fields">;
|
|
977
|
-
/**
|
|
978
|
-
* Update an MCP server. Accepts the full server object from GET; read-only fields (id, tenantId, createdAt, updatedAt, lastToolRefreshAt) are silently ignored. Supports updating isEnabled, authorization, and config in a single call.
|
|
979
|
-
*/
|
|
980
|
-
declare const putServersBySlug: <ThrowOnError extends boolean = true>(options: Options<PutServersBySlugData, ThrowOnError>) => RequestResult<PutServersBySlugResponses, unknown, ThrowOnError, "fields">;
|
|
981
|
-
declare const getCredentials: <ThrowOnError extends boolean = true>(options?: Options<GetCredentialsData, ThrowOnError>) => RequestResult<GetCredentialsResponses, unknown, ThrowOnError, "fields">;
|
|
982
|
-
declare const deleteCredentialsById: <ThrowOnError extends boolean = true>(options: Options<DeleteCredentialsByIdData, ThrowOnError>) => RequestResult<DeleteCredentialsByIdResponses, unknown, ThrowOnError, "fields">;
|
|
983
|
-
declare const getCredentialsById: <ThrowOnError extends boolean = true>(options: Options<GetCredentialsByIdData, ThrowOnError>) => RequestResult<GetCredentialsByIdResponses, unknown, ThrowOnError, "fields">;
|
|
984
|
-
declare const getCredentialsByIdSecret: <ThrowOnError extends boolean = true>(options: Options<GetCredentialsByIdSecretData, ThrowOnError>) => RequestResult<GetCredentialsByIdSecretResponses, unknown, ThrowOnError, "fields">;
|
|
985
|
-
//#endregion
|
|
986
|
-
export { Schema10 as $, Schema53 as $n, ServerCredentialsApiKeys as $r, Schema149 as $t, GetServersBySlugResponse as A, Schema32 as An, Schema81 as Ar, Schema128 as At, OpenApiTransportConfig as B, Schema41 as Bn, Schema90 as Br, Schema137 as Bt, GetCredentialsByIdSecretData as C, Schema26 as Cn, Schema75 as Cr, Schema121 as Ct, GetCredentialsResponse as D, Schema3 as Dn, Schema79 as Dr, Schema125 as Dt, GetCredentialsData as E, Schema29 as En, Schema78 as Er, Schema124 as Et, HostedTransportConfig as F, Schema37 as Fn, Schema86 as Fr, Schema132 as Ft, PostServersData as G, Schema46 as Gn, Schema95 as Gr, Schema141 as Gt, PatchServersBySlugData as H, Schema43 as Hn, Schema92 as Hr, Schema139 as Ht, HostedTransportConfigOutput as I, Schema38 as In, Schema87 as Ir, Schema133 as It, PutServersBySlugData as J, Schema49 as Jn, Schema98 as Jr, Schema144 as Jt, PostServersResponse as K, Schema47 as Kn, Schema96 as Kr, Schema142 as Kt, HttpStreamingTransportConfig as L, Schema39 as Ln, Schema88 as Lr, Schema134 as Lt, GetServersData as M, Schema34 as Mn, Schema83 as Mr, Schema13 as Mt, GetServersResponse as N, Schema35 as Nn, Schema84 as Nr, Schema130 as Nt, GetCredentialsResponses as O, Schema30 as On, Schema8 as Or, Schema126 as Ot, GetServersResponses as P, Schema36 as Pn, Schema85 as Pr, Schema131 as Pt, Schema1 as Q, Schema52 as Qn, ServerAuthorizationOutput as Qr, Schema148 as Qt, HttpStreamingTransportConfigOutput as R, Schema4 as Rn, Schema89 as Rr, Schema135 as Rt, GetCredentialsByIdResponses as S, Schema25 as Sn, Schema74 as Sr, Schema120 as St, GetCredentialsByIdSecretResponses as T, Schema28 as Tn, Schema77 as Tr, Schema123 as Tt, PatchServersBySlugResponse as U, Schema44 as Un, Schema93 as Ur, Schema14 as Ut, OpenApiTransportConfigOutput as V, Schema42 as Vn, Schema91 as Vr, Schema138 as Vt, PatchServersBySlugResponses as W, Schema45 as Wn, Schema94 as Wr, Schema140 as Wt, PutServersBySlugResponses as X, Schema50 as Xn, Server as Xr, Schema146 as Xt, PutServersBySlugResponse as Y, Schema5 as Yn, Schema99 as Yr, Schema145 as Yt, Schema0 as Z, Schema51 as Zn, ServerAuthorization as Zr, Schema147 as Zt, DeleteCredentialsByIdResponses as _, V2PatchServerRequest as _i, Schema20 as _n, Schema7 as _r, Schema116 as _t, getCredentialsById as a, ServerOAuthClientConfigurationOutput as ai, Schema154 as an, Schema59 as ar, Schema105 as at, GetCredentialsByIdData as b, Schema23 as bn, Schema72 as br, Schema119 as bt, getServersBySlug as c, ServerVisibility as ci, Schema157 as cn, Schema61 as cr, Schema108 as ct, putServersBySlug as d, StdioTransportConfig as di, Schema16 as dn, Schema64 as dr, Schema110 as dt, ServerCredentialsCredential as ei, Schema15 as en, Schema54 as er, Schema100 as et, sdk_gen_d_exports as f, StdioTransportConfigOutput as fi, Schema160 as fn, Schema65 as fr, Schema111 as ft, DeleteCredentialsByIdResponse as g, V2ListServersResponse as gi, Schema2 as gn, Schema69 as gr, Schema115 as gt, DeleteCredentialsByIdData as h, V2CreateServerRequest as hi, Schema19 as hn, Schema68 as hr, Schema114 as ht, getCredentials as i, ServerOAuthClientConfigurationClientCredentials as ii, Schema153 as in, Schema58 as ir, Schema104 as it, GetServersBySlugResponses as j, Schema33 as jn, Schema82 as jr, Schema129 as jt, GetServersBySlugData as k, Schema31 as kn, Schema80 as kr, Schema127 as kt, patchServersBySlug as l, SseTransportConfig as li, Schema158 as ln, Schema62 as lr, Schema109 as lt, CredentialDtoV2 as m, ToolRefreshCredentialPolicyOutput as mi, Schema18 as mn, Schema67 as mr, Schema113 as mt, deleteCredentialsById as n, ServerCredentialsOauthTokens as ni, Schema151 as nn, Schema56 as nr, Schema102 as nt, getCredentialsByIdSecret as o, ServerOAuthMetadata as oi, Schema155 as on, Schema6 as or, Schema106 as ot, ClientOptions as p, ToolRefreshCredentialPolicy as pi, Schema17 as pn, Schema66 as pr, Schema112 as pt, PostServersResponses as q, Schema48 as qn, Schema97 as qr, Schema143 as qt, deleteServersBySlug as r, ServerOAuthClientConfiguration as ri, Schema152 as rn, Schema57 as rr, Schema103 as rt, getServers as s, ServerOAuthMetadataOutput as si, Schema156 as sn, Schema60 as sr, Schema107 as st, Options as t, ServerCredentialsOauthClientCredentials as ti, Schema150 as tn, Schema55 as tr, Schema101 as tt, postServers as u, SseTransportConfigOutput as ui, Schema159 as un, Schema63 as ur, Schema11 as ut, DeleteServersBySlugData as v, V2ServerDto as vi, Schema21 as vn, Schema70 as vr, Schema117 as vt, GetCredentialsByIdSecretResponse as w, Schema27 as wn, Schema76 as wr, Schema122 as wt, GetCredentialsByIdResponse as x, Schema24 as xn, Schema73 as xr, Schema12 as xt, DeleteServersBySlugResponses as y, V2UpdateServerRequest as yi, Schema22 as yn, Schema71 as yr, Schema118 as yt, OAuthGrantType as z, Schema40 as zn, Schema9 as zr, Schema136 as zt };
|
|
987
|
-
//# sourceMappingURL=sdk.gen-Dnt5grWk.d.cts.map
|