@executor-js/plugin-openapi 0.1.0 → 1.4.20
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/AddOpenApiSource-FLMNI742.js +19 -0
- package/dist/AddOpenApiSource-FLMNI742.js.map +1 -0
- package/dist/EditOpenApiSource-I4NIGIIJ.js +665 -0
- package/dist/EditOpenApiSource-I4NIGIIJ.js.map +1 -0
- package/dist/OpenApiSourceSummary-CM46DB4L.js +122 -0
- package/dist/OpenApiSourceSummary-CM46DB4L.js.map +1 -0
- package/dist/api/group.d.ts +224 -16
- package/dist/api/index.d.ts +634 -0
- package/dist/chunk-E7PZ2QGD.js +1303 -0
- package/dist/chunk-E7PZ2QGD.js.map +1 -0
- package/dist/chunk-GFQUEZUW.js +216 -0
- package/dist/chunk-GFQUEZUW.js.map +1 -0
- package/dist/chunk-OZ67JNID.js +1447 -0
- package/dist/chunk-OZ67JNID.js.map +1 -0
- package/dist/chunk-TGDT6QCH.js +1120 -0
- package/dist/chunk-TGDT6QCH.js.map +1 -0
- package/dist/client.js +165 -0
- package/dist/client.js.map +1 -0
- package/dist/core.js +8 -10
- package/dist/index.js +2 -1
- package/dist/react/AddOpenApiSource.d.ts +1 -1
- package/dist/react/OpenApiSourceDetailsFields.d.ts +18 -0
- package/dist/react/atoms.d.ts +320 -15
- package/dist/react/client.d.ts +226 -15
- package/dist/sdk/extract.d.ts +54 -3
- package/dist/sdk/index.d.ts +1 -1
- package/dist/sdk/invoke.d.ts +48 -4
- package/dist/sdk/openapi-utils.d.ts +4 -3
- package/dist/sdk/parse.d.ts +1 -1
- package/dist/sdk/parse.test.d.ts +1 -0
- package/dist/sdk/plugin.d.ts +247 -128
- package/dist/sdk/preview.d.ts +201 -49
- package/dist/sdk/store.d.ts +155 -45
- package/dist/sdk/types.d.ts +204 -137
- package/dist/sdk/usage-scope-isolation.test.d.ts +1 -0
- package/dist/testing/index.d.ts +34 -0
- package/dist/testing.js +56 -0
- package/dist/testing.js.map +1 -0
- package/package.json +16 -4
- package/dist/chunk-RBE3CVB4.js +0 -2837
- package/dist/chunk-RBE3CVB4.js.map +0 -1
package/dist/sdk/plugin.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { Effect,
|
|
1
|
+
import { Effect, Option } from "effect";
|
|
2
2
|
import type { Layer } from "effect";
|
|
3
3
|
import { HttpClient } from "effect/unstable/http";
|
|
4
|
-
import { OpenApiExtensionService } from "../api/handlers";
|
|
5
4
|
import { type StorageFailure } from "@executor-js/sdk/core";
|
|
6
5
|
import { type ConfigFileSink } from "@executor-js/config";
|
|
7
6
|
import { OpenApiExtractionError, OpenApiOAuthError, OpenApiParseError } from "./errors";
|
|
8
7
|
import { SpecPreview } from "./preview";
|
|
9
8
|
import { type OpenapiStore, type SourceConfig, type StoredSource } from "./store";
|
|
10
|
-
import {
|
|
9
|
+
import { OAuth2SourceConfig, OpenApiSourceBindingInput, OpenApiSourceBindingRef, type OpenApiCredentialInput as OpenApiCredentialInputValue, type ConfiguredHeaderValue as ConfiguredHeaderValueValue, type HeaderValue as HeaderValueValue } from "./types";
|
|
11
10
|
export type HeaderValue = HeaderValueValue;
|
|
12
11
|
export type ConfiguredHeaderValue = ConfiguredHeaderValueValue;
|
|
13
12
|
export type OpenApiHeaderInput = HeaderValue | ConfiguredHeaderValue;
|
|
14
|
-
export type
|
|
15
|
-
export
|
|
13
|
+
export type OpenApiCredentialInput = OpenApiCredentialInputValue;
|
|
14
|
+
export type OpenApiOAuthInput = OAuth2SourceConfig;
|
|
15
|
+
export interface OpenApiSpecFetchCredentialsInput {
|
|
16
16
|
readonly headers?: Record<string, HeaderValue>;
|
|
17
17
|
readonly queryParams?: Record<string, HeaderValue>;
|
|
18
18
|
}
|
|
19
19
|
export interface OpenApiPreviewInput {
|
|
20
20
|
readonly spec: string;
|
|
21
|
-
readonly specFetchCredentials?:
|
|
21
|
+
readonly specFetchCredentials?: OpenApiSpecFetchCredentialsInput;
|
|
22
22
|
}
|
|
23
23
|
export interface OpenApiSpecConfig {
|
|
24
24
|
readonly spec: string;
|
|
25
|
-
readonly specFetchCredentials?:
|
|
25
|
+
readonly specFetchCredentials?: OpenApiSpecFetchCredentialsInput;
|
|
26
26
|
/**
|
|
27
27
|
* Executor scope id that owns this source row. Must be one of the
|
|
28
28
|
* executor's configured scopes. Typical shape: an admin adds the
|
|
@@ -33,15 +33,17 @@ export interface OpenApiSpecConfig {
|
|
|
33
33
|
readonly name?: string;
|
|
34
34
|
readonly baseUrl?: string;
|
|
35
35
|
readonly namespace?: string;
|
|
36
|
-
readonly headers?: Record<string,
|
|
37
|
-
readonly queryParams?: Record<string,
|
|
36
|
+
readonly headers?: Record<string, OpenApiCredentialInput>;
|
|
37
|
+
readonly queryParams?: Record<string, OpenApiCredentialInput>;
|
|
38
38
|
readonly oauth2?: OpenApiOAuthInput;
|
|
39
|
+
readonly credentialTargetScope?: string;
|
|
39
40
|
}
|
|
40
41
|
export interface OpenApiUpdateSourceInput {
|
|
41
42
|
readonly name?: string;
|
|
42
43
|
readonly baseUrl?: string;
|
|
43
|
-
readonly headers?: Record<string,
|
|
44
|
-
readonly queryParams?: Record<string,
|
|
44
|
+
readonly headers?: Record<string, OpenApiCredentialInput>;
|
|
45
|
+
readonly queryParams?: Record<string, OpenApiCredentialInput>;
|
|
46
|
+
readonly credentialTargetScope?: string;
|
|
45
47
|
/** Refresh the source's stored OAuth2 metadata after a successful
|
|
46
48
|
* re-authenticate. */
|
|
47
49
|
readonly oauth2?: OpenApiOAuthInput;
|
|
@@ -77,7 +79,79 @@ export interface OpenApiPluginOptions {
|
|
|
77
79
|
readonly configFile?: ConfigFileSink;
|
|
78
80
|
}
|
|
79
81
|
export declare const openApiPlugin: import("@executor-js/sdk/core").ConfiguredPlugin<"openapi", {
|
|
80
|
-
previewSpec: (input: string | OpenApiPreviewInput) => Effect.Effect<
|
|
82
|
+
previewSpec: (input: string | OpenApiPreviewInput) => Effect.Effect<{
|
|
83
|
+
readonly title: Option.Option<string>;
|
|
84
|
+
readonly servers: readonly {
|
|
85
|
+
readonly url: string;
|
|
86
|
+
readonly description: Option.Option<string>;
|
|
87
|
+
readonly variables: Option.Option<{
|
|
88
|
+
readonly [x: string]: {
|
|
89
|
+
readonly description: Option.Option<string>;
|
|
90
|
+
readonly default: string;
|
|
91
|
+
readonly enum: Option.Option<readonly string[]>;
|
|
92
|
+
};
|
|
93
|
+
}>;
|
|
94
|
+
}[];
|
|
95
|
+
readonly tags: readonly string[];
|
|
96
|
+
readonly version: Option.Option<string>;
|
|
97
|
+
readonly securitySchemes: readonly {
|
|
98
|
+
readonly type: "oauth2" | "http" | "apiKey" | "openIdConnect";
|
|
99
|
+
readonly in: Option.Option<"query" | "header" | "cookie">;
|
|
100
|
+
readonly name: string;
|
|
101
|
+
readonly description: Option.Option<string>;
|
|
102
|
+
readonly scheme: Option.Option<string>;
|
|
103
|
+
readonly bearerFormat: Option.Option<string>;
|
|
104
|
+
readonly headerName: Option.Option<string>;
|
|
105
|
+
readonly flows: Option.Option<{
|
|
106
|
+
readonly authorizationCode: Option.Option<{
|
|
107
|
+
readonly scopes: {
|
|
108
|
+
readonly [x: string]: string;
|
|
109
|
+
};
|
|
110
|
+
readonly authorizationUrl: string;
|
|
111
|
+
readonly tokenUrl: string;
|
|
112
|
+
readonly refreshUrl: Option.Option<string>;
|
|
113
|
+
}>;
|
|
114
|
+
readonly clientCredentials: Option.Option<{
|
|
115
|
+
readonly scopes: {
|
|
116
|
+
readonly [x: string]: string;
|
|
117
|
+
};
|
|
118
|
+
readonly tokenUrl: string;
|
|
119
|
+
readonly refreshUrl: Option.Option<string>;
|
|
120
|
+
}>;
|
|
121
|
+
}>;
|
|
122
|
+
readonly openIdConnectUrl: Option.Option<string>;
|
|
123
|
+
}[];
|
|
124
|
+
readonly operations: readonly {
|
|
125
|
+
readonly method: "delete" | "options" | "get" | "put" | "post" | "head" | "patch" | "trace";
|
|
126
|
+
readonly tags: readonly string[];
|
|
127
|
+
readonly summary: Option.Option<string>;
|
|
128
|
+
readonly operationId: string;
|
|
129
|
+
readonly deprecated: boolean;
|
|
130
|
+
readonly path: string;
|
|
131
|
+
}[];
|
|
132
|
+
readonly authStrategies: readonly {
|
|
133
|
+
readonly schemes: readonly string[];
|
|
134
|
+
}[];
|
|
135
|
+
readonly headerPresets: readonly {
|
|
136
|
+
readonly headers: {
|
|
137
|
+
readonly [x: string]: string | null;
|
|
138
|
+
};
|
|
139
|
+
readonly secretHeaders: readonly string[];
|
|
140
|
+
readonly label: string;
|
|
141
|
+
}[];
|
|
142
|
+
readonly oauth2Presets: readonly {
|
|
143
|
+
readonly scopes: {
|
|
144
|
+
readonly [x: string]: string;
|
|
145
|
+
};
|
|
146
|
+
readonly authorizationUrl: Option.Option<string>;
|
|
147
|
+
readonly securitySchemeName: string;
|
|
148
|
+
readonly flow: "authorizationCode" | "clientCredentials";
|
|
149
|
+
readonly tokenUrl: string;
|
|
150
|
+
readonly refreshUrl: Option.Option<string>;
|
|
151
|
+
readonly label: string;
|
|
152
|
+
}[];
|
|
153
|
+
readonly operationCount: number;
|
|
154
|
+
}, StorageFailure | OpenApiParseError | OpenApiExtractionError | OpenApiOAuthError, never>;
|
|
81
155
|
addSpec: (config: OpenApiSpecConfig) => Effect.Effect<{
|
|
82
156
|
sourceId: string;
|
|
83
157
|
toolCount: number;
|
|
@@ -88,14 +162,46 @@ export declare const openApiPlugin: import("@executor-js/sdk/core").ConfiguredPl
|
|
|
88
162
|
namespace: string;
|
|
89
163
|
scope: string;
|
|
90
164
|
name: string;
|
|
91
|
-
legacy?: {
|
|
92
|
-
readonly headers?: Record<string, HeaderValueSchema>;
|
|
93
|
-
readonly oauth2?: OAuth2Auth;
|
|
94
|
-
};
|
|
95
165
|
} | null, StorageFailure, never>;
|
|
96
|
-
updateSource: (namespace: string, scope: string, input: OpenApiUpdateSourceInput) => Effect.Effect<
|
|
97
|
-
listSourceBindings: (sourceId: string, sourceScope: string) => Effect.Effect<readonly
|
|
98
|
-
|
|
166
|
+
updateSource: (namespace: string, scope: string, input: OpenApiUpdateSourceInput) => Effect.Effect<undefined, StorageFailure | OpenApiOAuthError, never>;
|
|
167
|
+
listSourceBindings: (sourceId: string, sourceScope: string) => Effect.Effect<readonly {
|
|
168
|
+
readonly value: {
|
|
169
|
+
readonly secretId: string & import("effect/Brand").Brand<"SecretId">;
|
|
170
|
+
readonly kind: "secret";
|
|
171
|
+
readonly secretScopeId?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
|
|
172
|
+
} | {
|
|
173
|
+
readonly connectionId: string & import("effect/Brand").Brand<"ConnectionId">;
|
|
174
|
+
readonly kind: "connection";
|
|
175
|
+
} | {
|
|
176
|
+
readonly text: string;
|
|
177
|
+
readonly kind: "text";
|
|
178
|
+
};
|
|
179
|
+
readonly createdAt: Date;
|
|
180
|
+
readonly sourceId: string;
|
|
181
|
+
readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
|
|
182
|
+
readonly updatedAt: Date;
|
|
183
|
+
readonly slot: string;
|
|
184
|
+
readonly sourceScopeId: string & import("effect/Brand").Brand<"ScopeId">;
|
|
185
|
+
}[], StorageFailure, never>;
|
|
186
|
+
setSourceBinding: (input: OpenApiSourceBindingInput) => Effect.Effect<{
|
|
187
|
+
readonly value: {
|
|
188
|
+
readonly secretId: string & import("effect/Brand").Brand<"SecretId">;
|
|
189
|
+
readonly kind: "secret";
|
|
190
|
+
readonly secretScopeId?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
|
|
191
|
+
} | {
|
|
192
|
+
readonly connectionId: string & import("effect/Brand").Brand<"ConnectionId">;
|
|
193
|
+
readonly kind: "connection";
|
|
194
|
+
} | {
|
|
195
|
+
readonly text: string;
|
|
196
|
+
readonly kind: "text";
|
|
197
|
+
};
|
|
198
|
+
readonly createdAt: Date;
|
|
199
|
+
readonly sourceId: string;
|
|
200
|
+
readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
|
|
201
|
+
readonly updatedAt: Date;
|
|
202
|
+
readonly slot: string;
|
|
203
|
+
readonly sourceScopeId: string & import("effect/Brand").Brand<"ScopeId">;
|
|
204
|
+
}, StorageFailure, never>;
|
|
99
205
|
removeSourceBinding: (sourceId: string, sourceScope: string, slot: string, scope: string) => Effect.Effect<void, StorageFailure, never>;
|
|
100
206
|
}, OpenapiStore, OpenApiPluginOptions, {
|
|
101
207
|
readonly openapi_source: {
|
|
@@ -125,25 +231,35 @@ export declare const openApiPlugin: import("@executor-js/sdk/core").ConfiguredPl
|
|
|
125
231
|
readonly type: "string";
|
|
126
232
|
readonly required: false;
|
|
127
233
|
};
|
|
128
|
-
readonly
|
|
234
|
+
readonly oauth2: {
|
|
129
235
|
readonly type: "json";
|
|
130
236
|
readonly required: false;
|
|
131
237
|
};
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
readonly openapi_operation: {
|
|
241
|
+
readonly fields: {
|
|
242
|
+
readonly id: {
|
|
243
|
+
readonly type: "string";
|
|
244
|
+
readonly required: true;
|
|
135
245
|
};
|
|
136
|
-
readonly
|
|
137
|
-
readonly type: "
|
|
138
|
-
readonly required:
|
|
246
|
+
readonly scope_id: {
|
|
247
|
+
readonly type: "string";
|
|
248
|
+
readonly required: true;
|
|
249
|
+
readonly index: true;
|
|
139
250
|
};
|
|
140
|
-
readonly
|
|
251
|
+
readonly source_id: {
|
|
252
|
+
readonly type: "string";
|
|
253
|
+
readonly required: true;
|
|
254
|
+
readonly index: true;
|
|
255
|
+
};
|
|
256
|
+
readonly binding: {
|
|
141
257
|
readonly type: "json";
|
|
142
258
|
readonly required: true;
|
|
143
259
|
};
|
|
144
260
|
};
|
|
145
261
|
};
|
|
146
|
-
readonly
|
|
262
|
+
readonly openapi_source_header: {
|
|
147
263
|
readonly fields: {
|
|
148
264
|
readonly id: {
|
|
149
265
|
readonly type: "string";
|
|
@@ -159,137 +275,140 @@ export declare const openApiPlugin: import("@executor-js/sdk/core").ConfiguredPl
|
|
|
159
275
|
readonly required: true;
|
|
160
276
|
readonly index: true;
|
|
161
277
|
};
|
|
162
|
-
readonly
|
|
163
|
-
readonly type: "
|
|
278
|
+
readonly name: {
|
|
279
|
+
readonly type: "string";
|
|
280
|
+
readonly required: true;
|
|
281
|
+
};
|
|
282
|
+
readonly kind: {
|
|
283
|
+
readonly type: ["text", "binding"];
|
|
164
284
|
readonly required: true;
|
|
165
285
|
};
|
|
286
|
+
readonly text_value: {
|
|
287
|
+
readonly type: "string";
|
|
288
|
+
readonly required: false;
|
|
289
|
+
};
|
|
290
|
+
readonly slot_key: {
|
|
291
|
+
readonly type: "string";
|
|
292
|
+
readonly required: false;
|
|
293
|
+
};
|
|
294
|
+
readonly prefix: {
|
|
295
|
+
readonly type: "string";
|
|
296
|
+
readonly required: false;
|
|
297
|
+
};
|
|
166
298
|
};
|
|
167
299
|
};
|
|
168
|
-
readonly
|
|
300
|
+
readonly openapi_source_query_param: {
|
|
169
301
|
readonly fields: {
|
|
170
302
|
readonly id: {
|
|
171
303
|
readonly type: "string";
|
|
172
304
|
readonly required: true;
|
|
173
305
|
};
|
|
306
|
+
readonly scope_id: {
|
|
307
|
+
readonly type: "string";
|
|
308
|
+
readonly required: true;
|
|
309
|
+
readonly index: true;
|
|
310
|
+
};
|
|
174
311
|
readonly source_id: {
|
|
175
312
|
readonly type: "string";
|
|
176
313
|
readonly required: true;
|
|
177
314
|
readonly index: true;
|
|
178
315
|
};
|
|
179
|
-
readonly
|
|
316
|
+
readonly name: {
|
|
317
|
+
readonly type: "string";
|
|
318
|
+
readonly required: true;
|
|
319
|
+
};
|
|
320
|
+
readonly kind: {
|
|
321
|
+
readonly type: ["text", "binding"];
|
|
322
|
+
readonly required: true;
|
|
323
|
+
};
|
|
324
|
+
readonly text_value: {
|
|
325
|
+
readonly type: "string";
|
|
326
|
+
readonly required: false;
|
|
327
|
+
};
|
|
328
|
+
readonly slot_key: {
|
|
329
|
+
readonly type: "string";
|
|
330
|
+
readonly required: false;
|
|
331
|
+
};
|
|
332
|
+
readonly prefix: {
|
|
333
|
+
readonly type: "string";
|
|
334
|
+
readonly required: false;
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
};
|
|
338
|
+
readonly openapi_source_spec_fetch_header: {
|
|
339
|
+
readonly fields: {
|
|
340
|
+
readonly id: {
|
|
341
|
+
readonly type: "string";
|
|
342
|
+
readonly required: true;
|
|
343
|
+
};
|
|
344
|
+
readonly scope_id: {
|
|
180
345
|
readonly type: "string";
|
|
181
346
|
readonly required: true;
|
|
182
347
|
readonly index: true;
|
|
183
348
|
};
|
|
184
|
-
readonly
|
|
349
|
+
readonly source_id: {
|
|
185
350
|
readonly type: "string";
|
|
186
351
|
readonly required: true;
|
|
187
352
|
readonly index: true;
|
|
188
353
|
};
|
|
189
|
-
readonly
|
|
354
|
+
readonly name: {
|
|
355
|
+
readonly type: "string";
|
|
356
|
+
readonly required: true;
|
|
357
|
+
};
|
|
358
|
+
readonly kind: {
|
|
359
|
+
readonly type: ["text", "binding"];
|
|
360
|
+
readonly required: true;
|
|
361
|
+
};
|
|
362
|
+
readonly text_value: {
|
|
363
|
+
readonly type: "string";
|
|
364
|
+
readonly required: false;
|
|
365
|
+
};
|
|
366
|
+
readonly slot_key: {
|
|
367
|
+
readonly type: "string";
|
|
368
|
+
readonly required: false;
|
|
369
|
+
};
|
|
370
|
+
readonly prefix: {
|
|
371
|
+
readonly type: "string";
|
|
372
|
+
readonly required: false;
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
};
|
|
376
|
+
readonly openapi_source_spec_fetch_query_param: {
|
|
377
|
+
readonly fields: {
|
|
378
|
+
readonly id: {
|
|
379
|
+
readonly type: "string";
|
|
380
|
+
readonly required: true;
|
|
381
|
+
};
|
|
382
|
+
readonly scope_id: {
|
|
190
383
|
readonly type: "string";
|
|
191
384
|
readonly required: true;
|
|
192
385
|
readonly index: true;
|
|
193
386
|
};
|
|
194
|
-
readonly
|
|
195
|
-
readonly type: "
|
|
387
|
+
readonly source_id: {
|
|
388
|
+
readonly type: "string";
|
|
196
389
|
readonly required: true;
|
|
390
|
+
readonly index: true;
|
|
197
391
|
};
|
|
198
|
-
readonly
|
|
199
|
-
readonly type: "
|
|
392
|
+
readonly name: {
|
|
393
|
+
readonly type: "string";
|
|
200
394
|
readonly required: true;
|
|
201
395
|
};
|
|
202
|
-
readonly
|
|
203
|
-
readonly type: "
|
|
396
|
+
readonly kind: {
|
|
397
|
+
readonly type: ["text", "binding"];
|
|
204
398
|
readonly required: true;
|
|
205
399
|
};
|
|
400
|
+
readonly text_value: {
|
|
401
|
+
readonly type: "string";
|
|
402
|
+
readonly required: false;
|
|
403
|
+
};
|
|
404
|
+
readonly slot_key: {
|
|
405
|
+
readonly type: "string";
|
|
406
|
+
readonly required: false;
|
|
407
|
+
};
|
|
408
|
+
readonly prefix: {
|
|
409
|
+
readonly type: "string";
|
|
410
|
+
readonly required: false;
|
|
411
|
+
};
|
|
206
412
|
};
|
|
207
413
|
};
|
|
208
|
-
},
|
|
209
|
-
scopeId: Schema.brand<Schema.String, "ScopeId">;
|
|
210
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
211
|
-
readonly spec: Schema.String;
|
|
212
|
-
readonly specFetchCredentials: Schema.optional<Schema.Struct<{
|
|
213
|
-
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
214
|
-
readonly secretId: Schema.String;
|
|
215
|
-
readonly prefix: Schema.optional<Schema.String>;
|
|
216
|
-
}>]>>>;
|
|
217
|
-
readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
218
|
-
readonly secretId: Schema.String;
|
|
219
|
-
readonly prefix: Schema.optional<Schema.String>;
|
|
220
|
-
}>]>>>;
|
|
221
|
-
}>>;
|
|
222
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof SpecPreview>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError | typeof OpenApiParseError | typeof OpenApiExtractionError | typeof OpenApiOAuthError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"addSpec", "POST", "/scopes/:scopeId/openapi/specs", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<Schema.Struct<{
|
|
223
|
-
scopeId: Schema.brand<Schema.String, "ScopeId">;
|
|
224
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
225
|
-
readonly spec: Schema.String;
|
|
226
|
-
readonly specFetchCredentials: Schema.optional<Schema.Struct<{
|
|
227
|
-
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
228
|
-
readonly secretId: Schema.String;
|
|
229
|
-
readonly prefix: Schema.optional<Schema.String>;
|
|
230
|
-
}>]>>>;
|
|
231
|
-
readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
232
|
-
readonly secretId: Schema.String;
|
|
233
|
-
readonly prefix: Schema.optional<Schema.String>;
|
|
234
|
-
}>]>>>;
|
|
235
|
-
}>>;
|
|
236
|
-
readonly name: Schema.optional<Schema.String>;
|
|
237
|
-
readonly baseUrl: Schema.optional<Schema.String>;
|
|
238
|
-
readonly namespace: Schema.optional<Schema.String>;
|
|
239
|
-
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
240
|
-
readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
241
|
-
readonly secretId: Schema.String;
|
|
242
|
-
readonly prefix: Schema.optional<Schema.String>;
|
|
243
|
-
}>]>>>;
|
|
244
|
-
readonly oauth2: Schema.optional<Schema.Union<readonly [typeof OAuth2Auth, typeof OAuth2SourceConfig]>>;
|
|
245
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
246
|
-
readonly toolCount: Schema.Number;
|
|
247
|
-
readonly namespace: Schema.String;
|
|
248
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError | typeof OpenApiParseError | typeof OpenApiExtractionError | typeof OpenApiOAuthError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getSource", "GET", "/scopes/:scopeId/openapi/sources/:namespace", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<Schema.Struct<{
|
|
249
|
-
scopeId: Schema.brand<Schema.String, "ScopeId">;
|
|
250
|
-
namespace: Schema.String;
|
|
251
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.NullOr<typeof import("./store").StoredSourceSchema>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError | typeof OpenApiParseError | typeof OpenApiExtractionError | typeof OpenApiOAuthError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateSource", "PATCH", "/scopes/:scopeId/openapi/sources/:namespace", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<Schema.Struct<{
|
|
252
|
-
scopeId: Schema.brand<Schema.String, "ScopeId">;
|
|
253
|
-
namespace: Schema.String;
|
|
254
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
255
|
-
readonly name: Schema.optional<Schema.String>;
|
|
256
|
-
readonly baseUrl: Schema.optional<Schema.String>;
|
|
257
|
-
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
258
|
-
readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
259
|
-
readonly secretId: Schema.String;
|
|
260
|
-
readonly prefix: Schema.optional<Schema.String>;
|
|
261
|
-
}>]>>>;
|
|
262
|
-
readonly oauth2: Schema.optional<Schema.Union<readonly [typeof OAuth2Auth, typeof OAuth2SourceConfig]>>;
|
|
263
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
264
|
-
readonly updated: Schema.Boolean;
|
|
265
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError | typeof OpenApiParseError | typeof OpenApiExtractionError | typeof OpenApiOAuthError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listSourceBindings", "GET", "/scopes/:scopeId/openapi/sources/:namespace/base/:sourceScopeId/bindings", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<Schema.Struct<{
|
|
266
|
-
scopeId: Schema.brand<Schema.String, "ScopeId">;
|
|
267
|
-
namespace: Schema.String;
|
|
268
|
-
sourceScopeId: Schema.brand<Schema.String, "ScopeId">;
|
|
269
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.$Array<typeof OpenApiSourceBindingRef>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError | typeof OpenApiParseError | typeof OpenApiExtractionError | typeof OpenApiOAuthError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setSourceBinding", "POST", "/scopes/:scopeId/openapi/source-bindings", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<Schema.Struct<{
|
|
270
|
-
scopeId: Schema.brand<Schema.String, "ScopeId">;
|
|
271
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
272
|
-
readonly sourceId: Schema.String;
|
|
273
|
-
readonly sourceScope: Schema.brand<Schema.String, "ScopeId">;
|
|
274
|
-
readonly scope: Schema.brand<Schema.String, "ScopeId">;
|
|
275
|
-
readonly slot: Schema.String;
|
|
276
|
-
readonly value: Schema.Union<readonly [Schema.Struct<{
|
|
277
|
-
readonly kind: Schema.Literal<"secret">;
|
|
278
|
-
readonly secretId: Schema.brand<Schema.String, "SecretId">;
|
|
279
|
-
}>, Schema.Struct<{
|
|
280
|
-
readonly kind: Schema.Literal<"connection">;
|
|
281
|
-
readonly connectionId: Schema.brand<Schema.String, "ConnectionId">;
|
|
282
|
-
}>, Schema.Struct<{
|
|
283
|
-
readonly kind: Schema.Literal<"text">;
|
|
284
|
-
readonly text: Schema.String;
|
|
285
|
-
}>]>;
|
|
286
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof OpenApiSourceBindingRef>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError | typeof OpenApiParseError | typeof OpenApiExtractionError | typeof OpenApiOAuthError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"removeSourceBinding", "POST", "/scopes/:scopeId/openapi/source-bindings/remove", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<Schema.Struct<{
|
|
287
|
-
scopeId: Schema.brand<Schema.String, "ScopeId">;
|
|
288
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
289
|
-
readonly sourceId: Schema.String;
|
|
290
|
-
readonly sourceScope: Schema.brand<Schema.String, "ScopeId">;
|
|
291
|
-
readonly slot: Schema.String;
|
|
292
|
-
readonly scope: Schema.brand<Schema.String, "ScopeId">;
|
|
293
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
294
|
-
readonly removed: Schema.Boolean;
|
|
295
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError | typeof OpenApiParseError | typeof OpenApiExtractionError | typeof OpenApiOAuthError>, never, never>, false>>;
|
|
414
|
+
}, undefined, Layer.Layer<unknown, never, never>, import("effect/unstable/httpapi/HttpApiGroup").Any>;
|