gatana-sdk 2.3.0 → 2.3.3

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