gatana-sdk 2.3.8 → 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 -119
- 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 +14 -13
- package/dist/index.d.cts +4 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +4 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +14 -13
- package/dist/index.mjs.map +1 -1
- 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-CAAxLIvj.mjs.map +1 -0
- 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-DncK4XW4.cjs → sdk.gen-OcCJ7VK7.mjs} +1183 -995
- 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-B9VM8vvh.d.mts +0 -919
- package/dist/sdk.gen-B9VM8vvh.d.mts.map +0 -1
- package/dist/sdk.gen-Bp6WOiGq.d.cts +0 -4229
- package/dist/sdk.gen-Bp6WOiGq.d.cts.map +0 -1
- package/dist/sdk.gen-BzFbgKkw.mjs +0 -2357
- package/dist/sdk.gen-BzFbgKkw.mjs.map +0 -1
- package/dist/sdk.gen-DUNHa0uM.mjs.map +0 -1
- package/dist/sdk.gen-DgXGgJek.d.mts +0 -4229
- package/dist/sdk.gen-DgXGgJek.d.mts.map +0 -1
- package/dist/sdk.gen-DjFHZqZ0.d.cts +0 -919
- package/dist/sdk.gen-DjFHZqZ0.d.cts.map +0 -1
|
@@ -1,919 +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
|
-
description?: Schema23;
|
|
319
|
-
authorization?: ServerAuthorization;
|
|
320
|
-
oauthMetadata?: Schema28;
|
|
321
|
-
oauthClientConfiguration?: Schema31;
|
|
322
|
-
isEnabled?: Schema37;
|
|
323
|
-
timeoutProtocol?: Schema38;
|
|
324
|
-
timeoutTotal?: Schema39;
|
|
325
|
-
resetTimeoutOnProgressNotification?: Schema40;
|
|
326
|
-
isOutputCompressionEnabled?: Schema41;
|
|
327
|
-
isOutputCompressionTransformEnabled?: Schema42;
|
|
328
|
-
outputCompressionThresholdBytes?: Schema43;
|
|
329
|
-
firewallRules?: Schema44;
|
|
330
|
-
visibility?: ServerVisibility;
|
|
331
|
-
id?: Schema47;
|
|
332
|
-
tenantId?: Schema48;
|
|
333
|
-
lastToolRefreshAt?: Schema49;
|
|
334
|
-
createdAt?: Schema50;
|
|
335
|
-
updatedAt?: Schema51;
|
|
336
|
-
};
|
|
337
|
-
type HttpStreamingTransportConfig = {
|
|
338
|
-
type: Schema2;
|
|
339
|
-
url: Schema3;
|
|
340
|
-
headers?: Schema4;
|
|
341
|
-
};
|
|
342
|
-
type StdioTransportConfig = {
|
|
343
|
-
type: Schema5;
|
|
344
|
-
command: Schema6;
|
|
345
|
-
dockerImage?: Schema7;
|
|
346
|
-
env?: Schema8;
|
|
347
|
-
transport: Schema9;
|
|
348
|
-
httpPort?: Schema10;
|
|
349
|
-
urlPath?: Schema11;
|
|
350
|
-
healthCheck?: Schema12;
|
|
351
|
-
limits?: Schema13;
|
|
352
|
-
};
|
|
353
|
-
type SseTransportConfig = {
|
|
354
|
-
type: Schema16;
|
|
355
|
-
url: Schema17;
|
|
356
|
-
headers?: Schema18;
|
|
357
|
-
};
|
|
358
|
-
type HostedTransportConfig = {
|
|
359
|
-
type: Schema19;
|
|
360
|
-
runtime: Schema20;
|
|
361
|
-
env?: Schema21;
|
|
362
|
-
limits?: Schema22;
|
|
363
|
-
};
|
|
364
|
-
type ServerAuthorization = {
|
|
365
|
-
method: Schema25;
|
|
366
|
-
credentialsScope: Schema26;
|
|
367
|
-
apikeys?: Schema27;
|
|
368
|
-
};
|
|
369
|
-
type ServerOAuthMetadata = {
|
|
370
|
-
resource?: Schema29;
|
|
371
|
-
as?: Schema30;
|
|
372
|
-
};
|
|
373
|
-
type ServerOAuthClientConfiguration = {
|
|
374
|
-
clientId?: Schema32;
|
|
375
|
-
clientSecret?: Schema33;
|
|
376
|
-
grantType: Schema34;
|
|
377
|
-
clientAuthMethod: Schema35;
|
|
378
|
-
scopes?: Schema36;
|
|
379
|
-
};
|
|
380
|
-
type ServerVisibility = 'private' | 'organization';
|
|
381
|
-
type V2UpdateServerRequest = {
|
|
382
|
-
slug?: Schema53;
|
|
383
|
-
description?: Schema54;
|
|
384
|
-
authorization?: ServerAuthorization;
|
|
385
|
-
transportConfig?: Schema56;
|
|
386
|
-
oauthMetadata?: Schema57;
|
|
387
|
-
oauthClientConfiguration?: Schema58;
|
|
388
|
-
isEnabled?: Schema59;
|
|
389
|
-
timeoutProtocol?: Schema60;
|
|
390
|
-
timeoutTotal?: Schema61;
|
|
391
|
-
resetTimeoutOnProgressNotification?: Schema62;
|
|
392
|
-
isOutputCompressionEnabled?: Schema63;
|
|
393
|
-
isOutputCompressionTransformEnabled?: Schema64;
|
|
394
|
-
outputCompressionThresholdBytes?: Schema65;
|
|
395
|
-
firewallRules?: Schema66;
|
|
396
|
-
visibility?: ServerVisibility;
|
|
397
|
-
id?: Schema68;
|
|
398
|
-
tenantId?: Schema69;
|
|
399
|
-
name?: Schema70;
|
|
400
|
-
lastToolRefreshAt?: Schema71;
|
|
401
|
-
createdAt?: Schema72;
|
|
402
|
-
updatedAt?: Schema73;
|
|
403
|
-
};
|
|
404
|
-
type V2PatchServerRequest = { [key in Schema74]?: Schema75 };
|
|
405
|
-
type Schema0 = string;
|
|
406
|
-
type Schema1 = HttpStreamingTransportConfig | StdioTransportConfig | SseTransportConfig | HostedTransportConfig;
|
|
407
|
-
type Schema2 = 'httpstreaming';
|
|
408
|
-
type Schema3 = string;
|
|
409
|
-
type Schema4 = Array<[string, string]>;
|
|
410
|
-
type Schema5 = 'stdio';
|
|
411
|
-
type Schema6 = string;
|
|
412
|
-
type Schema7 = string;
|
|
413
|
-
type Schema8 = Array<[string, string]>;
|
|
414
|
-
type Schema9 = 'sse' | 'httpstreaming' | 'stdio';
|
|
415
|
-
type Schema10 = number | null;
|
|
416
|
-
type Schema11 = string | null;
|
|
417
|
-
type Schema12 = {
|
|
418
|
-
enabled: boolean;
|
|
419
|
-
url?: string;
|
|
420
|
-
delaySeconds: number | null;
|
|
421
|
-
intervalSeconds: number | null;
|
|
422
|
-
failureThreshold: number | null;
|
|
423
|
-
};
|
|
424
|
-
type Schema13 = {
|
|
425
|
-
cpu?: Schema14;
|
|
426
|
-
memory?: Schema15;
|
|
427
|
-
} | null;
|
|
428
|
-
type Schema14 = string;
|
|
429
|
-
type Schema15 = string;
|
|
430
|
-
type Schema16 = 'sse';
|
|
431
|
-
type Schema17 = string;
|
|
432
|
-
type Schema18 = Array<[string, string]>;
|
|
433
|
-
type Schema19 = 'hosted';
|
|
434
|
-
type Schema20 = 'node24';
|
|
435
|
-
type Schema21 = Array<[string, string]>;
|
|
436
|
-
type Schema22 = {
|
|
437
|
-
cpu?: Schema14;
|
|
438
|
-
memory?: Schema15;
|
|
439
|
-
} | null;
|
|
440
|
-
type Schema23 = string;
|
|
441
|
-
type Schema24 = ServerAuthorization;
|
|
442
|
-
type Schema25 = 'none' | 'oauth' | 'apikey';
|
|
443
|
-
type Schema26 = 'server' | 'user';
|
|
444
|
-
type Schema27 = Array<string>;
|
|
445
|
-
type Schema28 = ServerOAuthMetadata | null;
|
|
446
|
-
type Schema29 = {
|
|
447
|
-
id?: string;
|
|
448
|
-
availableScopes?: Array<string>;
|
|
449
|
-
metadataUrl?: string;
|
|
450
|
-
};
|
|
451
|
-
type Schema30 = {
|
|
452
|
-
issuer?: string;
|
|
453
|
-
authorizeEndpoint?: string;
|
|
454
|
-
deviceAuthorizationEndpoint?: string;
|
|
455
|
-
tokenEndpoint?: string;
|
|
456
|
-
extraAuthorizationParameters?: string;
|
|
457
|
-
registrationEndpoint?: string;
|
|
458
|
-
supportsPKCE?: boolean;
|
|
459
|
-
supportedClientAuthMethods?: Array<string>;
|
|
460
|
-
supportsDynamicClientRegistration?: boolean;
|
|
461
|
-
noDynamicClientRegistrationReason?: string | null;
|
|
462
|
-
serviceDocumentation?: string;
|
|
463
|
-
metadataUrl?: string;
|
|
464
|
-
availableScopes?: Array<string>;
|
|
465
|
-
};
|
|
466
|
-
type Schema31 = ServerOAuthClientConfiguration | null;
|
|
467
|
-
type Schema32 = string;
|
|
468
|
-
type Schema33 = string;
|
|
469
|
-
type Schema34 = 'authorization_code' | 'device_code';
|
|
470
|
-
type Schema35 = 'client_secret_basic' | 'client_secret_post' | 'none' | string;
|
|
471
|
-
type Schema36 = string;
|
|
472
|
-
type Schema37 = boolean;
|
|
473
|
-
type Schema38 = number;
|
|
474
|
-
type Schema39 = number;
|
|
475
|
-
type Schema40 = boolean;
|
|
476
|
-
type Schema41 = boolean;
|
|
477
|
-
type Schema42 = boolean;
|
|
478
|
-
type Schema43 = number;
|
|
479
|
-
type Schema44 = Array<Schema45>;
|
|
480
|
-
type Schema45 = {
|
|
481
|
-
/**
|
|
482
|
-
* CEL representing the condition
|
|
483
|
-
*/
|
|
484
|
-
condition: string;
|
|
485
|
-
action: 'deny' | 'modify' | 'log';
|
|
486
|
-
};
|
|
487
|
-
type Schema46 = ServerVisibility;
|
|
488
|
-
type Schema47 = string;
|
|
489
|
-
type Schema48 = string;
|
|
490
|
-
type Schema49 = string | null;
|
|
491
|
-
type Schema50 = string;
|
|
492
|
-
type Schema51 = string;
|
|
493
|
-
type Schema52 = string;
|
|
494
|
-
type Schema53 = string;
|
|
495
|
-
type Schema54 = string;
|
|
496
|
-
type Schema55 = ServerAuthorization;
|
|
497
|
-
type Schema56 = HttpStreamingTransportConfig | StdioTransportConfig | SseTransportConfig | {
|
|
498
|
-
type: 'self';
|
|
499
|
-
id: string;
|
|
500
|
-
} | HostedTransportConfig;
|
|
501
|
-
type Schema57 = ServerOAuthMetadata | null;
|
|
502
|
-
type Schema58 = ServerOAuthClientConfiguration | null;
|
|
503
|
-
type Schema59 = boolean;
|
|
504
|
-
type Schema60 = number;
|
|
505
|
-
type Schema61 = number;
|
|
506
|
-
type Schema62 = boolean;
|
|
507
|
-
type Schema63 = boolean;
|
|
508
|
-
type Schema64 = boolean;
|
|
509
|
-
type Schema65 = number;
|
|
510
|
-
type Schema66 = Array<Schema45>;
|
|
511
|
-
type Schema67 = ServerVisibility;
|
|
512
|
-
type Schema68 = string;
|
|
513
|
-
type Schema69 = string;
|
|
514
|
-
type Schema70 = string;
|
|
515
|
-
type Schema71 = string | null;
|
|
516
|
-
type Schema72 = string;
|
|
517
|
-
type Schema73 = string;
|
|
518
|
-
type Schema74 = string;
|
|
519
|
-
type Schema75 = unknown;
|
|
520
|
-
type V2ListServersResponse = {
|
|
521
|
-
servers: Schema76;
|
|
522
|
-
};
|
|
523
|
-
type V2ServerDto = Server;
|
|
524
|
-
type Server = {
|
|
525
|
-
id: Schema77;
|
|
526
|
-
slug: Schema78;
|
|
527
|
-
tenantId: Schema79;
|
|
528
|
-
description: Schema80;
|
|
529
|
-
authorization: ServerAuthorizationOutput;
|
|
530
|
-
transportConfig: Schema84;
|
|
531
|
-
oauthClientConfiguration: Schema106;
|
|
532
|
-
oauthMetadata: Schema112;
|
|
533
|
-
visibility: ServerVisibility;
|
|
534
|
-
isEnabled: Schema115;
|
|
535
|
-
lastToolRefreshAt: Schema116;
|
|
536
|
-
timeoutProtocol: Schema117;
|
|
537
|
-
timeoutTotal: Schema118;
|
|
538
|
-
resetTimeoutOnProgressNotification: Schema119;
|
|
539
|
-
isOutputCompressionEnabled: Schema120;
|
|
540
|
-
isOutputCompressionTransformEnabled: Schema121;
|
|
541
|
-
outputCompressionThresholdBytes: Schema122;
|
|
542
|
-
firewallRules: Schema123;
|
|
543
|
-
createdAt: Schema124;
|
|
544
|
-
updatedAt: Schema125;
|
|
545
|
-
};
|
|
546
|
-
type CredentialDtoV2 = {
|
|
547
|
-
id: Schema127;
|
|
548
|
-
tenantId: Schema128;
|
|
549
|
-
scope: Schema129;
|
|
550
|
-
userId: Schema130;
|
|
551
|
-
profileId: Schema131;
|
|
552
|
-
lastUsedAt: Schema132;
|
|
553
|
-
authorizedAt: Schema133;
|
|
554
|
-
type: Schema134;
|
|
555
|
-
createdAt: Schema135;
|
|
556
|
-
updatedAt: Schema136;
|
|
557
|
-
serverSlug: Schema137;
|
|
558
|
-
userEmail: Schema138;
|
|
559
|
-
userName: Schema139;
|
|
560
|
-
profileName: Schema140;
|
|
561
|
-
};
|
|
562
|
-
type ServerCredentialsOuth = {
|
|
563
|
-
type: Schema141;
|
|
564
|
-
tokenSet: Schema142;
|
|
565
|
-
};
|
|
566
|
-
type ServerCredentialsApiKeys = {
|
|
567
|
-
type: Schema143;
|
|
568
|
-
apikeys: Schema144;
|
|
569
|
-
};
|
|
570
|
-
type Schema76 = Array<Server>;
|
|
571
|
-
type Schema77 = string;
|
|
572
|
-
type Schema78 = string;
|
|
573
|
-
type Schema79 = string;
|
|
574
|
-
type Schema80 = string;
|
|
575
|
-
type Schema81 = 'none' | 'oauth' | 'apikey';
|
|
576
|
-
type Schema82 = 'server' | 'user';
|
|
577
|
-
type Schema83 = Array<string>;
|
|
578
|
-
type Schema84 = HttpStreamingTransportConfigOutput | StdioTransportConfigOutput | SseTransportConfigOutput | {
|
|
579
|
-
type: 'self';
|
|
580
|
-
id: string;
|
|
581
|
-
} | HostedTransportConfigOutput;
|
|
582
|
-
type Schema85 = 'httpstreaming';
|
|
583
|
-
type Schema86 = string;
|
|
584
|
-
type Schema87 = Array<[string, string]>;
|
|
585
|
-
type Schema88 = 'stdio';
|
|
586
|
-
type Schema89 = string;
|
|
587
|
-
type Schema90 = string;
|
|
588
|
-
type Schema91 = Array<[string, string]>;
|
|
589
|
-
type Schema92 = 'sse' | 'httpstreaming' | 'stdio';
|
|
590
|
-
type Schema93 = number | null;
|
|
591
|
-
type Schema94 = string | null;
|
|
592
|
-
type Schema95 = {
|
|
593
|
-
enabled: boolean;
|
|
594
|
-
url: string;
|
|
595
|
-
delaySeconds: number | null;
|
|
596
|
-
intervalSeconds: number | null;
|
|
597
|
-
failureThreshold: number | null;
|
|
598
|
-
};
|
|
599
|
-
type Schema96 = {
|
|
600
|
-
cpu?: Schema97;
|
|
601
|
-
memory?: Schema98;
|
|
602
|
-
} | null;
|
|
603
|
-
type Schema97 = string;
|
|
604
|
-
type Schema98 = string;
|
|
605
|
-
type Schema99 = 'sse';
|
|
606
|
-
type Schema100 = string;
|
|
607
|
-
type Schema101 = Array<[string, string]>;
|
|
608
|
-
type Schema102 = 'hosted';
|
|
609
|
-
type Schema103 = 'node24';
|
|
610
|
-
type Schema104 = Array<[string, string]>;
|
|
611
|
-
type Schema105 = {
|
|
612
|
-
cpu?: Schema97;
|
|
613
|
-
memory?: Schema98;
|
|
614
|
-
} | null;
|
|
615
|
-
type Schema106 = null | ServerOAuthClientConfigurationOutput;
|
|
616
|
-
type Schema107 = string;
|
|
617
|
-
type Schema108 = string;
|
|
618
|
-
type Schema109 = 'authorization_code' | 'device_code';
|
|
619
|
-
type Schema110 = 'client_secret_basic' | 'client_secret_post' | 'none' | string;
|
|
620
|
-
type Schema111 = string;
|
|
621
|
-
type Schema112 = null | ServerOAuthMetadataOutput;
|
|
622
|
-
type Schema113 = {
|
|
623
|
-
id: string;
|
|
624
|
-
availableScopes: Array<string>;
|
|
625
|
-
metadataUrl: string;
|
|
626
|
-
};
|
|
627
|
-
type Schema114 = {
|
|
628
|
-
issuer: string;
|
|
629
|
-
authorizeEndpoint: string;
|
|
630
|
-
deviceAuthorizationEndpoint: string;
|
|
631
|
-
tokenEndpoint: string;
|
|
632
|
-
extraAuthorizationParameters: string;
|
|
633
|
-
registrationEndpoint?: string;
|
|
634
|
-
supportsPKCE: boolean;
|
|
635
|
-
supportedClientAuthMethods: Array<string>;
|
|
636
|
-
supportsDynamicClientRegistration: boolean;
|
|
637
|
-
noDynamicClientRegistrationReason?: string | null;
|
|
638
|
-
serviceDocumentation: string;
|
|
639
|
-
metadataUrl: string;
|
|
640
|
-
availableScopes: Array<string>;
|
|
641
|
-
};
|
|
642
|
-
type Schema115 = boolean;
|
|
643
|
-
type Schema116 = string | null;
|
|
644
|
-
type Schema117 = number;
|
|
645
|
-
type Schema118 = number;
|
|
646
|
-
type Schema119 = boolean;
|
|
647
|
-
type Schema120 = boolean;
|
|
648
|
-
type Schema121 = boolean;
|
|
649
|
-
type Schema122 = number;
|
|
650
|
-
type Schema123 = Array<{
|
|
651
|
-
/**
|
|
652
|
-
* CEL representing the condition
|
|
653
|
-
*/
|
|
654
|
-
condition: string;
|
|
655
|
-
action: 'deny' | 'modify' | 'log';
|
|
656
|
-
}>;
|
|
657
|
-
type Schema124 = string;
|
|
658
|
-
type Schema125 = string;
|
|
659
|
-
type Schema126 = {
|
|
660
|
-
credentials: Array<CredentialDtoV2>;
|
|
661
|
-
};
|
|
662
|
-
type Schema127 = string;
|
|
663
|
-
type Schema128 = string;
|
|
664
|
-
type Schema129 = 'server' | 'user' | 'profile';
|
|
665
|
-
type Schema130 = string | null;
|
|
666
|
-
type Schema131 = string | null;
|
|
667
|
-
type Schema132 = string | null;
|
|
668
|
-
type Schema133 = string;
|
|
669
|
-
type Schema134 = 'oauth' | 'apikey';
|
|
670
|
-
type Schema135 = string;
|
|
671
|
-
type Schema136 = string;
|
|
672
|
-
type Schema137 = string;
|
|
673
|
-
type Schema138 = string | null;
|
|
674
|
-
type Schema139 = string | null;
|
|
675
|
-
type Schema140 = string | null;
|
|
676
|
-
type Schema141 = 'oauth';
|
|
677
|
-
type Schema142 = {
|
|
678
|
-
accessToken: string;
|
|
679
|
-
accessTokenExpiresAt?: number;
|
|
680
|
-
idToken?: string;
|
|
681
|
-
refreshToken?: string;
|
|
682
|
-
};
|
|
683
|
-
type Schema143 = 'apikey';
|
|
684
|
-
type Schema144 = Array<[string, string]>;
|
|
685
|
-
type ServerAuthorizationOutput = {
|
|
686
|
-
method: Schema81;
|
|
687
|
-
credentialsScope: Schema82;
|
|
688
|
-
apikeys?: Schema83;
|
|
689
|
-
};
|
|
690
|
-
type HttpStreamingTransportConfigOutput = {
|
|
691
|
-
type: Schema85;
|
|
692
|
-
url: Schema86;
|
|
693
|
-
headers?: Schema87;
|
|
694
|
-
};
|
|
695
|
-
type StdioTransportConfigOutput = {
|
|
696
|
-
type: Schema88;
|
|
697
|
-
command: Schema89;
|
|
698
|
-
dockerImage?: Schema90;
|
|
699
|
-
env?: Schema91;
|
|
700
|
-
transport: Schema92;
|
|
701
|
-
httpPort?: Schema93;
|
|
702
|
-
urlPath?: Schema94;
|
|
703
|
-
healthCheck?: Schema95;
|
|
704
|
-
limits?: Schema96;
|
|
705
|
-
};
|
|
706
|
-
type SseTransportConfigOutput = {
|
|
707
|
-
type: Schema99;
|
|
708
|
-
url: Schema100;
|
|
709
|
-
headers?: Schema101;
|
|
710
|
-
};
|
|
711
|
-
type HostedTransportConfigOutput = {
|
|
712
|
-
type: Schema102;
|
|
713
|
-
runtime: Schema103;
|
|
714
|
-
env?: Schema104;
|
|
715
|
-
limits?: Schema105;
|
|
716
|
-
};
|
|
717
|
-
type ServerOAuthClientConfigurationOutput = {
|
|
718
|
-
clientId: Schema107;
|
|
719
|
-
clientSecret: Schema108;
|
|
720
|
-
grantType: Schema109;
|
|
721
|
-
clientAuthMethod: Schema110;
|
|
722
|
-
scopes: Schema111;
|
|
723
|
-
};
|
|
724
|
-
type ServerOAuthMetadataOutput = {
|
|
725
|
-
resource?: Schema113;
|
|
726
|
-
as?: Schema114;
|
|
727
|
-
};
|
|
728
|
-
type GetServersData = {
|
|
729
|
-
body?: never;
|
|
730
|
-
path?: never;
|
|
731
|
-
query?: never;
|
|
732
|
-
url: '/servers';
|
|
733
|
-
};
|
|
734
|
-
type GetServersResponses = {
|
|
735
|
-
/**
|
|
736
|
-
* Successful response
|
|
737
|
-
*/
|
|
738
|
-
200: V2ListServersResponse;
|
|
739
|
-
};
|
|
740
|
-
type GetServersResponse = GetServersResponses[keyof GetServersResponses];
|
|
741
|
-
type PostServersData = {
|
|
742
|
-
body?: V2CreateServerRequest;
|
|
743
|
-
path?: never;
|
|
744
|
-
query?: never;
|
|
745
|
-
url: '/servers';
|
|
746
|
-
};
|
|
747
|
-
type PostServersResponses = {
|
|
748
|
-
/**
|
|
749
|
-
* Successful response
|
|
750
|
-
*/
|
|
751
|
-
200: Server;
|
|
752
|
-
};
|
|
753
|
-
type PostServersResponse = PostServersResponses[keyof PostServersResponses];
|
|
754
|
-
type DeleteServersBySlugData = {
|
|
755
|
-
body?: never;
|
|
756
|
-
path: {
|
|
757
|
-
slug: Schema52;
|
|
758
|
-
};
|
|
759
|
-
query?: never;
|
|
760
|
-
url: '/servers/{slug}';
|
|
761
|
-
};
|
|
762
|
-
type DeleteServersBySlugResponses = {
|
|
763
|
-
/**
|
|
764
|
-
* Successful response
|
|
765
|
-
*/
|
|
766
|
-
200: unknown;
|
|
767
|
-
};
|
|
768
|
-
type GetServersBySlugData = {
|
|
769
|
-
body?: never;
|
|
770
|
-
path: {
|
|
771
|
-
slug: Schema52;
|
|
772
|
-
};
|
|
773
|
-
query?: never;
|
|
774
|
-
url: '/servers/{slug}';
|
|
775
|
-
};
|
|
776
|
-
type GetServersBySlugResponses = {
|
|
777
|
-
/**
|
|
778
|
-
* Successful response
|
|
779
|
-
*/
|
|
780
|
-
200: Server;
|
|
781
|
-
};
|
|
782
|
-
type GetServersBySlugResponse = GetServersBySlugResponses[keyof GetServersBySlugResponses];
|
|
783
|
-
type PatchServersBySlugData = {
|
|
784
|
-
body?: V2PatchServerRequest;
|
|
785
|
-
path: {
|
|
786
|
-
slug: Schema52;
|
|
787
|
-
};
|
|
788
|
-
query?: never;
|
|
789
|
-
url: '/servers/{slug}';
|
|
790
|
-
};
|
|
791
|
-
type PatchServersBySlugResponses = {
|
|
792
|
-
/**
|
|
793
|
-
* Successful response
|
|
794
|
-
*/
|
|
795
|
-
200: Server;
|
|
796
|
-
};
|
|
797
|
-
type PatchServersBySlugResponse = PatchServersBySlugResponses[keyof PatchServersBySlugResponses];
|
|
798
|
-
type PutServersBySlugData = {
|
|
799
|
-
body?: V2UpdateServerRequest;
|
|
800
|
-
path: {
|
|
801
|
-
slug: Schema52;
|
|
802
|
-
};
|
|
803
|
-
query?: never;
|
|
804
|
-
url: '/servers/{slug}';
|
|
805
|
-
};
|
|
806
|
-
type PutServersBySlugResponses = {
|
|
807
|
-
/**
|
|
808
|
-
* Successful response
|
|
809
|
-
*/
|
|
810
|
-
200: Server;
|
|
811
|
-
};
|
|
812
|
-
type PutServersBySlugResponse = PutServersBySlugResponses[keyof PutServersBySlugResponses];
|
|
813
|
-
type GetCredentialsData = {
|
|
814
|
-
body?: never;
|
|
815
|
-
path?: never;
|
|
816
|
-
query?: {
|
|
817
|
-
serverId?: string;
|
|
818
|
-
};
|
|
819
|
-
url: '/credentials';
|
|
820
|
-
};
|
|
821
|
-
type GetCredentialsResponses = {
|
|
822
|
-
/**
|
|
823
|
-
* Successful response
|
|
824
|
-
*/
|
|
825
|
-
200: Schema126;
|
|
826
|
-
};
|
|
827
|
-
type GetCredentialsResponse = GetCredentialsResponses[keyof GetCredentialsResponses];
|
|
828
|
-
type DeleteCredentialsByIdData = {
|
|
829
|
-
body?: never;
|
|
830
|
-
path: {
|
|
831
|
-
id: string;
|
|
832
|
-
};
|
|
833
|
-
query?: never;
|
|
834
|
-
url: '/credentials/{id}';
|
|
835
|
-
};
|
|
836
|
-
type DeleteCredentialsByIdResponses = {
|
|
837
|
-
/**
|
|
838
|
-
* Successful response
|
|
839
|
-
*/
|
|
840
|
-
200: Schema126;
|
|
841
|
-
};
|
|
842
|
-
type DeleteCredentialsByIdResponse = DeleteCredentialsByIdResponses[keyof DeleteCredentialsByIdResponses];
|
|
843
|
-
type GetCredentialsByIdData = {
|
|
844
|
-
body?: never;
|
|
845
|
-
path: {
|
|
846
|
-
id: string;
|
|
847
|
-
};
|
|
848
|
-
query?: never;
|
|
849
|
-
url: '/credentials/{id}';
|
|
850
|
-
};
|
|
851
|
-
type GetCredentialsByIdResponses = {
|
|
852
|
-
/**
|
|
853
|
-
* Successful response
|
|
854
|
-
*/
|
|
855
|
-
200: CredentialDtoV2;
|
|
856
|
-
};
|
|
857
|
-
type GetCredentialsByIdResponse = GetCredentialsByIdResponses[keyof GetCredentialsByIdResponses];
|
|
858
|
-
type GetCredentialsByIdSecretData = {
|
|
859
|
-
body?: never;
|
|
860
|
-
path: {
|
|
861
|
-
id: string;
|
|
862
|
-
};
|
|
863
|
-
query?: never;
|
|
864
|
-
url: '/credentials/{id}/secret';
|
|
865
|
-
};
|
|
866
|
-
type GetCredentialsByIdSecretResponses = {
|
|
867
|
-
/**
|
|
868
|
-
* Successful response
|
|
869
|
-
*/
|
|
870
|
-
200: ServerCredentialsOuth | ServerCredentialsApiKeys;
|
|
871
|
-
};
|
|
872
|
-
type GetCredentialsByIdSecretResponse = GetCredentialsByIdSecretResponses[keyof GetCredentialsByIdSecretResponses];
|
|
873
|
-
declare namespace sdk_gen_d_exports {
|
|
874
|
-
export { Options, deleteCredentialsById, deleteServersBySlug, getCredentials, getCredentialsById, getCredentialsByIdSecret, getServers, getServersBySlug, patchServersBySlug, postServers, putServersBySlug };
|
|
875
|
-
}
|
|
876
|
-
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
|
|
877
|
-
/**
|
|
878
|
-
* You can provide a client instance returned by `createClient()` instead of
|
|
879
|
-
* individual options. This might be also useful if you want to implement a
|
|
880
|
-
* custom client.
|
|
881
|
-
*/
|
|
882
|
-
client?: Client;
|
|
883
|
-
/**
|
|
884
|
-
* You can pass arbitrary values through the `meta` object. This can be
|
|
885
|
-
* used to access values that aren't defined as part of the SDK function.
|
|
886
|
-
*/
|
|
887
|
-
meta?: Record<string, unknown>;
|
|
888
|
-
};
|
|
889
|
-
/**
|
|
890
|
-
* List all MCP servers the caller has access to.
|
|
891
|
-
*/
|
|
892
|
-
declare const getServers: <ThrowOnError extends boolean = true>(options?: Options<GetServersData, ThrowOnError>) => RequestResult<GetServersResponses, unknown, ThrowOnError, "fields">;
|
|
893
|
-
/**
|
|
894
|
-
* Create a new MCP server. Requires `slug` and `transportConfig`. All other fields are optional with sensible defaults. Read-only fields are silently ignored.
|
|
895
|
-
*/
|
|
896
|
-
declare const postServers: <ThrowOnError extends boolean = true>(options?: Options<PostServersData, ThrowOnError>) => RequestResult<PostServersResponses, unknown, ThrowOnError, "fields">;
|
|
897
|
-
/**
|
|
898
|
-
* Delete an MCP server.
|
|
899
|
-
*/
|
|
900
|
-
declare const deleteServersBySlug: <ThrowOnError extends boolean = true>(options: Options<DeleteServersBySlugData, ThrowOnError>) => RequestResult<DeleteServersBySlugResponses, unknown, ThrowOnError, "fields">;
|
|
901
|
-
/**
|
|
902
|
-
* Get a single MCP server. The response body can be PUT back to update the server.
|
|
903
|
-
*/
|
|
904
|
-
declare const getServersBySlug: <ThrowOnError extends boolean = true>(options: Options<GetServersBySlugData, ThrowOnError>) => RequestResult<GetServersBySlugResponses, unknown, ThrowOnError, "fields">;
|
|
905
|
-
/**
|
|
906
|
-
* 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.
|
|
907
|
-
*/
|
|
908
|
-
declare const patchServersBySlug: <ThrowOnError extends boolean = true>(options: Options<PatchServersBySlugData, ThrowOnError>) => RequestResult<PatchServersBySlugResponses, unknown, ThrowOnError, "fields">;
|
|
909
|
-
/**
|
|
910
|
-
* 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.
|
|
911
|
-
*/
|
|
912
|
-
declare const putServersBySlug: <ThrowOnError extends boolean = true>(options: Options<PutServersBySlugData, ThrowOnError>) => RequestResult<PutServersBySlugResponses, unknown, ThrowOnError, "fields">;
|
|
913
|
-
declare const getCredentials: <ThrowOnError extends boolean = true>(options?: Options<GetCredentialsData, ThrowOnError>) => RequestResult<GetCredentialsResponses, unknown, ThrowOnError, "fields">;
|
|
914
|
-
declare const deleteCredentialsById: <ThrowOnError extends boolean = true>(options: Options<DeleteCredentialsByIdData, ThrowOnError>) => RequestResult<DeleteCredentialsByIdResponses, unknown, ThrowOnError, "fields">;
|
|
915
|
-
declare const getCredentialsById: <ThrowOnError extends boolean = true>(options: Options<GetCredentialsByIdData, ThrowOnError>) => RequestResult<GetCredentialsByIdResponses, unknown, ThrowOnError, "fields">;
|
|
916
|
-
declare const getCredentialsByIdSecret: <ThrowOnError extends boolean = true>(options: Options<GetCredentialsByIdSecretData, ThrowOnError>) => RequestResult<GetCredentialsByIdSecretResponses, unknown, ThrowOnError, "fields">;
|
|
917
|
-
//#endregion
|
|
918
|
-
export { Schema102 as $, Schema70 as $n, Schema21 as $t, GetServersBySlugResponse as A, Schema5 as An, Schema99 as Ar, Schema130 as At, PatchServersBySlugResponse as B, Schema59 as Bn, ServerVisibility as Br, Schema14 as Bt, GetCredentialsByIdSecretData as C, Schema43 as Cn, Schema92 as Cr, Schema124 as Ct, GetCredentialsResponse as D, Schema47 as Dn, Schema96 as Dr, Schema128 as Dt, GetCredentialsData as E, Schema46 as En, Schema95 as Er, Schema127 as Et, HostedTransportConfig as F, Schema54 as Fn, ServerCredentialsOuth as Fr, Schema135 as Ft, PutServersBySlugData as G, Schema63 as Gn, V2CreateServerRequest as Gr, Schema144 as Gt, PostServersData as H, Schema60 as Hn, SseTransportConfigOutput as Hr, Schema141 as Ht, HostedTransportConfigOutput as I, Schema55 as In, ServerOAuthClientConfiguration as Ir, Schema136 as It, Schema0 as J, Schema66 as Jn, V2ServerDto as Jr, Schema17 as Jt, PutServersBySlugResponse as K, Schema64 as Kn, V2ListServersResponse as Kr, Schema15 as Kt, HttpStreamingTransportConfig as L, Schema56 as Ln, ServerOAuthClientConfigurationOutput as Lr, Schema137 as Lt, GetServersData as M, Schema51 as Mn, ServerAuthorization as Mr, Schema132 as Mt, GetServersResponse as N, Schema52 as Nn, ServerAuthorizationOutput as Nr, Schema133 as Nt, GetCredentialsResponses as O, Schema48 as On, Schema97 as Or, Schema129 as Ot, GetServersResponses as P, Schema53 as Pn, ServerCredentialsApiKeys as Pr, Schema134 as Pt, Schema101 as Q, Schema7 as Qn, Schema20 as Qt, HttpStreamingTransportConfigOutput as R, Schema57 as Rn, ServerOAuthMetadata as Rr, Schema138 as Rt, GetCredentialsByIdResponses as S, Schema42 as Sn, Schema91 as Sr, Schema123 as St, GetCredentialsByIdSecretResponses as T, Schema45 as Tn, Schema94 as Tr, Schema126 as Tt, PostServersResponse as U, Schema61 as Un, StdioTransportConfig as Ur, Schema142 as Ut, PatchServersBySlugResponses as V, Schema6 as Vn, SseTransportConfig as Vr, Schema140 as Vt, PostServersResponses as W, Schema62 as Wn, StdioTransportConfigOutput as Wr, Schema143 as Wt, Schema10 as X, Schema68 as Xn, Schema19 as Xt, Schema1 as Y, Schema67 as Yn, V2UpdateServerRequest as Yr, Schema18 as Yt, Schema100 as Z, Schema69 as Zn, Schema2 as Zt, DeleteCredentialsByIdResponses as _, Schema38 as _n, Schema87 as _r, Schema119 as _t, getCredentialsById as a, Schema27 as an, Schema76 as ar, Schema108 as at, GetCredentialsByIdData as b, Schema40 as bn, Schema9 as br, Schema121 as bt, getServersBySlug as c, Schema3 as cn, Schema79 as cr, Schema110 as ct, putServersBySlug as d, Schema32 as dn, Schema81 as dr, Schema113 as dt, Schema22 as en, Schema71 as er, Schema103 as et, sdk_gen_d_exports as f, Schema33 as fn, Schema82 as fr, Schema114 as ft, DeleteCredentialsByIdResponse as g, Schema37 as gn, Schema86 as gr, Schema118 as gt, DeleteCredentialsByIdData as h, Schema36 as hn, Schema85 as hr, Schema117 as ht, getCredentials as i, Schema26 as in, Schema75 as ir, Schema107 as it, GetServersBySlugResponses as j, Schema50 as jn, Server as jr, Schema131 as jt, GetServersBySlugData as k, Schema49 as kn, Schema98 as kr, Schema13 as kt, patchServersBySlug as l, Schema30 as ln, Schema8 as lr, Schema111 as lt, CredentialDtoV2 as m, Schema35 as mn, Schema84 as mr, Schema116 as mt, deleteCredentialsById as n, Schema24 as nn, Schema73 as nr, Schema105 as nt, getCredentialsByIdSecret as o, Schema28 as on, Schema77 as or, Schema109 as ot, ClientOptions as p, Schema34 as pn, Schema83 as pr, Schema115 as pt, PutServersBySlugResponses as q, Schema65 as qn, V2PatchServerRequest as qr, Schema16 as qt, deleteServersBySlug as r, Schema25 as rn, Schema74 as rr, Schema106 as rt, getServers as s, Schema29 as sn, Schema78 as sr, Schema11 as st, Options as t, Schema23 as tn, Schema72 as tr, Schema104 as tt, postServers as u, Schema31 as un, Schema80 as ur, Schema112 as ut, DeleteServersBySlugData as v, Schema39 as vn, Schema88 as vr, Schema12 as vt, GetCredentialsByIdSecretResponse as w, Schema44 as wn, Schema93 as wr, Schema125 as wt, GetCredentialsByIdResponse as x, Schema41 as xn, Schema90 as xr, Schema122 as xt, DeleteServersBySlugResponses as y, Schema4 as yn, Schema89 as yr, Schema120 as yt, PatchServersBySlugData as z, Schema58 as zn, ServerOAuthMetadataOutput as zr, Schema139 as zt };
|
|
919
|
-
//# sourceMappingURL=sdk.gen-B9VM8vvh.d.mts.map
|