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