@executor-js/plugin-openapi 1.5.3 → 1.5.4

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 (57) hide show
  1. package/dist/api/group.d.ts +188 -0
  2. package/dist/api/handlers.d.ts +7 -0
  3. package/dist/api/index.d.ts +271 -0
  4. package/dist/react/AddOpenApiSource.d.ts +8 -0
  5. package/dist/react/EditOpenApiSource.d.ts +4 -0
  6. package/dist/react/GoogleProductPicker.d.ts +9 -0
  7. package/dist/react/OpenApiAccountsPanel.d.ts +6 -0
  8. package/dist/react/OpenApiSourceDetailsFields.d.ts +19 -0
  9. package/dist/react/atoms.d.ts +279 -0
  10. package/dist/react/auth-method-config.d.ts +15 -0
  11. package/dist/react/auth-method-config.test.d.ts +1 -0
  12. package/dist/react/client.d.ts +184 -0
  13. package/dist/react/index.d.ts +3 -0
  14. package/dist/react/plugin-client.d.ts +2 -0
  15. package/dist/react/source-plugin.d.ts +2 -0
  16. package/dist/sdk/client-credentials-oauth.test.d.ts +1 -0
  17. package/dist/sdk/config.d.ts +75 -0
  18. package/dist/sdk/configure.test.d.ts +1 -0
  19. package/dist/sdk/definitions.d.ts +25 -0
  20. package/dist/sdk/describe-auth-methods.test.d.ts +1 -0
  21. package/dist/sdk/errors.d.ts +44 -0
  22. package/dist/sdk/extract.d.ts +59 -0
  23. package/dist/sdk/form-urlencoded-body.test.d.ts +1 -0
  24. package/dist/sdk/google-bundle.test.d.ts +1 -0
  25. package/dist/sdk/google-discovery.d.ts +43 -0
  26. package/dist/sdk/google-discovery.test.d.ts +1 -0
  27. package/dist/sdk/google-oauth-batches.d.ts +13 -0
  28. package/dist/sdk/google-oauth-batches.test.d.ts +1 -0
  29. package/dist/sdk/google-oauth-scopes.d.ts +3 -0
  30. package/dist/sdk/google-oauth-scopes.test.d.ts +1 -0
  31. package/dist/sdk/google-presets.d.ts +16 -0
  32. package/dist/sdk/google-presets.test.d.ts +1 -0
  33. package/dist/sdk/google-product-picker-scopes.test.d.ts +1 -0
  34. package/dist/sdk/index.d.ts +11 -0
  35. package/dist/sdk/index.test.d.ts +1 -0
  36. package/dist/sdk/invoke.d.ts +55 -0
  37. package/dist/sdk/multi-scope-bearer.test.d.ts +1 -0
  38. package/dist/sdk/multi-scope-oauth.test.d.ts +1 -0
  39. package/dist/sdk/non-json-body.test.d.ts +1 -0
  40. package/dist/sdk/oauth-refresh.test.d.ts +1 -0
  41. package/dist/sdk/openapi-utils.d.ts +57 -0
  42. package/dist/sdk/parse.d.ts +33 -0
  43. package/dist/sdk/parse.test.d.ts +1 -0
  44. package/dist/sdk/plugin.d.ts +163 -0
  45. package/dist/sdk/plugin.test.d.ts +1 -0
  46. package/dist/sdk/presets.d.ts +10 -0
  47. package/dist/sdk/preview-oauth2.test.d.ts +1 -0
  48. package/dist/sdk/preview.d.ts +269 -0
  49. package/dist/sdk/query-serialization.test.d.ts +1 -0
  50. package/dist/sdk/real-specs.test.d.ts +1 -0
  51. package/dist/sdk/store.d.ts +21 -0
  52. package/dist/sdk/types.d.ts +252 -0
  53. package/dist/sdk/upstream-failures.test.d.ts +1 -0
  54. package/dist/sdk/usage-scope-isolation.test.d.ts +1 -0
  55. package/dist/testing/index.d.ts +183 -0
  56. package/dist/testing.test.d.ts +1 -0
  57. package/package.json +3 -3
@@ -0,0 +1,269 @@
1
+ import { Effect, Option } from "effect";
2
+ import { Schema } from "effect";
3
+ export declare const OAuth2AuthorizationCodeFlow: Schema.Struct<{
4
+ readonly authorizationUrl: Schema.String;
5
+ readonly tokenUrl: Schema.String;
6
+ readonly refreshUrl: Schema.OptionFromOptional<Schema.String>;
7
+ readonly scopes: Schema.$Record<Schema.String, Schema.String>;
8
+ }>;
9
+ export type OAuth2AuthorizationCodeFlow = typeof OAuth2AuthorizationCodeFlow.Type;
10
+ export declare const OAuth2ClientCredentialsFlow: Schema.Struct<{
11
+ readonly tokenUrl: Schema.String;
12
+ readonly refreshUrl: Schema.OptionFromOptional<Schema.String>;
13
+ readonly scopes: Schema.$Record<Schema.String, Schema.String>;
14
+ }>;
15
+ export type OAuth2ClientCredentialsFlow = typeof OAuth2ClientCredentialsFlow.Type;
16
+ export declare const OAuth2Flows: Schema.Struct<{
17
+ readonly authorizationCode: Schema.OptionFromOptional<Schema.Struct<{
18
+ readonly authorizationUrl: Schema.String;
19
+ readonly tokenUrl: Schema.String;
20
+ readonly refreshUrl: Schema.OptionFromOptional<Schema.String>;
21
+ readonly scopes: Schema.$Record<Schema.String, Schema.String>;
22
+ }>>;
23
+ readonly clientCredentials: Schema.OptionFromOptional<Schema.Struct<{
24
+ readonly tokenUrl: Schema.String;
25
+ readonly refreshUrl: Schema.OptionFromOptional<Schema.String>;
26
+ readonly scopes: Schema.$Record<Schema.String, Schema.String>;
27
+ }>>;
28
+ }>;
29
+ export type OAuth2Flows = typeof OAuth2Flows.Type;
30
+ export declare const SecurityScheme: Schema.Struct<{
31
+ /** Key name in components.securitySchemes (e.g. "api_token") */
32
+ readonly name: Schema.String;
33
+ /** OpenAPI security scheme type */
34
+ readonly type: Schema.Literals<readonly ["http", "apiKey", "oauth2", "openIdConnect"]>;
35
+ /** For type: "http" — e.g. "bearer", "basic" */
36
+ readonly scheme: Schema.OptionFromOptional<Schema.String>;
37
+ /** For type: "http" with scheme "bearer" — e.g. "JWT" */
38
+ readonly bearerFormat: Schema.OptionFromOptional<Schema.String>;
39
+ /** For type: "apiKey" — where the key goes */
40
+ readonly in: Schema.OptionFromOptional<Schema.Literals<readonly ["header", "query", "cookie"]>>;
41
+ /** For type: "apiKey" — the header/query/cookie name */
42
+ readonly headerName: Schema.OptionFromOptional<Schema.String>;
43
+ readonly description: Schema.OptionFromOptional<Schema.String>;
44
+ /** For type: "oauth2" — declared flows (authorizationCode / clientCredentials only; implicit and password are deprecated). */
45
+ readonly flows: Schema.OptionFromOptional<Schema.Struct<{
46
+ readonly authorizationCode: Schema.OptionFromOptional<Schema.Struct<{
47
+ readonly authorizationUrl: Schema.String;
48
+ readonly tokenUrl: Schema.String;
49
+ readonly refreshUrl: Schema.OptionFromOptional<Schema.String>;
50
+ readonly scopes: Schema.$Record<Schema.String, Schema.String>;
51
+ }>>;
52
+ readonly clientCredentials: Schema.OptionFromOptional<Schema.Struct<{
53
+ readonly tokenUrl: Schema.String;
54
+ readonly refreshUrl: Schema.OptionFromOptional<Schema.String>;
55
+ readonly scopes: Schema.$Record<Schema.String, Schema.String>;
56
+ }>>;
57
+ }>>;
58
+ /** For type: "openIdConnect" — the discovery URL. */
59
+ readonly openIdConnectUrl: Schema.OptionFromOptional<Schema.String>;
60
+ }>;
61
+ export type SecurityScheme = typeof SecurityScheme.Type;
62
+ export declare const AuthStrategy: Schema.Struct<{
63
+ /** The security schemes required together for this strategy */
64
+ readonly schemes: Schema.$Array<Schema.String>;
65
+ }>;
66
+ export type AuthStrategy = typeof AuthStrategy.Type;
67
+ export declare const HeaderPreset: Schema.Struct<{
68
+ /** Human-readable label for the UI (e.g. "Bearer Token", "API Key + Email") */
69
+ readonly label: Schema.String;
70
+ /** Headers this strategy needs. Value is null when the user must provide it. */
71
+ readonly headers: Schema.$Record<Schema.String, Schema.NullOr<Schema.String>>;
72
+ /** Which headers should be stored as secrets */
73
+ readonly secretHeaders: Schema.$Array<Schema.String>;
74
+ }>;
75
+ export type HeaderPreset = typeof HeaderPreset.Type;
76
+ export declare const OAuth2Preset: Schema.Struct<{
77
+ /** Human-readable label for the UI (e.g. "OAuth2 (Authorization Code) — oauth_app") */
78
+ readonly label: Schema.String;
79
+ /** The source security scheme this preset came from (components.securitySchemes key). */
80
+ readonly securitySchemeName: Schema.String;
81
+ /** Which OAuth2 flow this preset uses. */
82
+ readonly flow: Schema.Literals<readonly ["authorizationCode", "clientCredentials"]>;
83
+ /** For authorizationCode: user-agent redirect URL (from the spec). */
84
+ readonly authorizationUrl: Schema.OptionFromOptional<Schema.String>;
85
+ /** Token endpoint to exchange the code / refresh. */
86
+ readonly tokenUrl: Schema.String;
87
+ /** Optional refresh endpoint if the spec declares one separately. */
88
+ readonly refreshUrl: Schema.OptionFromOptional<Schema.String>;
89
+ /** Declared scopes for this flow: `{ scope: description }`. */
90
+ readonly scopes: Schema.$Record<Schema.String, Schema.String>;
91
+ /** Identity scopes to request alongside API scopes. `"auto"` discovers standard OIDC scopes. */
92
+ readonly identityScopes: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<false>, Schema.$Array<Schema.String>]>;
93
+ }>;
94
+ export type OAuth2Preset = typeof OAuth2Preset.Type;
95
+ export declare const PreviewOperation: Schema.Struct<{
96
+ readonly operationId: Schema.String;
97
+ readonly method: Schema.Literals<readonly ["get", "put", "post", "delete", "patch", "head", "options", "trace"]>;
98
+ readonly path: Schema.String;
99
+ readonly summary: Schema.OptionFromOptional<Schema.String>;
100
+ readonly tags: Schema.$Array<Schema.String>;
101
+ readonly deprecated: Schema.Boolean;
102
+ }>;
103
+ export type PreviewOperation = typeof PreviewOperation.Type;
104
+ export declare const SpecPreview: Schema.Struct<{
105
+ readonly title: Schema.OptionFromOptional<Schema.String>;
106
+ readonly version: Schema.OptionFromOptional<Schema.String>;
107
+ /** Reuses ServerInfo from extraction */
108
+ readonly servers: Schema.$Array<Schema.Struct<{
109
+ readonly url: Schema.String;
110
+ readonly description: Schema.OptionFromOptional<Schema.String>;
111
+ readonly variables: Schema.OptionFromOptional<Schema.$Record<Schema.String, Schema.Struct<{
112
+ readonly default: Schema.String;
113
+ readonly enum: Schema.OptionFromOptional<Schema.$Array<Schema.String>>;
114
+ readonly description: Schema.OptionFromOptional<Schema.String>;
115
+ }>>>;
116
+ }>>;
117
+ readonly operationCount: Schema.Number;
118
+ /** Lightweight operation list for the add-source UI */
119
+ readonly operations: Schema.$Array<Schema.Struct<{
120
+ readonly operationId: Schema.String;
121
+ readonly method: Schema.Literals<readonly ["get", "put", "post", "delete", "patch", "head", "options", "trace"]>;
122
+ readonly path: Schema.String;
123
+ readonly summary: Schema.OptionFromOptional<Schema.String>;
124
+ readonly tags: Schema.$Array<Schema.String>;
125
+ readonly deprecated: Schema.Boolean;
126
+ }>>;
127
+ readonly tags: Schema.$Array<Schema.String>;
128
+ readonly securitySchemes: Schema.$Array<Schema.Struct<{
129
+ /** Key name in components.securitySchemes (e.g. "api_token") */
130
+ readonly name: Schema.String;
131
+ /** OpenAPI security scheme type */
132
+ readonly type: Schema.Literals<readonly ["http", "apiKey", "oauth2", "openIdConnect"]>;
133
+ /** For type: "http" — e.g. "bearer", "basic" */
134
+ readonly scheme: Schema.OptionFromOptional<Schema.String>;
135
+ /** For type: "http" with scheme "bearer" — e.g. "JWT" */
136
+ readonly bearerFormat: Schema.OptionFromOptional<Schema.String>;
137
+ /** For type: "apiKey" — where the key goes */
138
+ readonly in: Schema.OptionFromOptional<Schema.Literals<readonly ["header", "query", "cookie"]>>;
139
+ /** For type: "apiKey" — the header/query/cookie name */
140
+ readonly headerName: Schema.OptionFromOptional<Schema.String>;
141
+ readonly description: Schema.OptionFromOptional<Schema.String>;
142
+ /** For type: "oauth2" — declared flows (authorizationCode / clientCredentials only; implicit and password are deprecated). */
143
+ readonly flows: Schema.OptionFromOptional<Schema.Struct<{
144
+ readonly authorizationCode: Schema.OptionFromOptional<Schema.Struct<{
145
+ readonly authorizationUrl: Schema.String;
146
+ readonly tokenUrl: Schema.String;
147
+ readonly refreshUrl: Schema.OptionFromOptional<Schema.String>;
148
+ readonly scopes: Schema.$Record<Schema.String, Schema.String>;
149
+ }>>;
150
+ readonly clientCredentials: Schema.OptionFromOptional<Schema.Struct<{
151
+ readonly tokenUrl: Schema.String;
152
+ readonly refreshUrl: Schema.OptionFromOptional<Schema.String>;
153
+ readonly scopes: Schema.$Record<Schema.String, Schema.String>;
154
+ }>>;
155
+ }>>;
156
+ /** For type: "openIdConnect" — the discovery URL. */
157
+ readonly openIdConnectUrl: Schema.OptionFromOptional<Schema.String>;
158
+ }>>;
159
+ /** Valid auth strategies (each is a set of schemes used together) */
160
+ readonly authStrategies: Schema.$Array<Schema.Struct<{
161
+ /** The security schemes required together for this strategy */
162
+ readonly schemes: Schema.$Array<Schema.String>;
163
+ }>>;
164
+ /** Pre-built header presets derived from auth strategies */
165
+ readonly headerPresets: Schema.$Array<Schema.Struct<{
166
+ /** Human-readable label for the UI (e.g. "Bearer Token", "API Key + Email") */
167
+ readonly label: Schema.String;
168
+ /** Headers this strategy needs. Value is null when the user must provide it. */
169
+ readonly headers: Schema.$Record<Schema.String, Schema.NullOr<Schema.String>>;
170
+ /** Which headers should be stored as secrets */
171
+ readonly secretHeaders: Schema.$Array<Schema.String>;
172
+ }>>;
173
+ /** OAuth2 presets — one per (oauth2 scheme × supported flow) combination */
174
+ readonly oauth2Presets: Schema.$Array<Schema.Struct<{
175
+ /** Human-readable label for the UI (e.g. "OAuth2 (Authorization Code) — oauth_app") */
176
+ readonly label: Schema.String;
177
+ /** The source security scheme this preset came from (components.securitySchemes key). */
178
+ readonly securitySchemeName: Schema.String;
179
+ /** Which OAuth2 flow this preset uses. */
180
+ readonly flow: Schema.Literals<readonly ["authorizationCode", "clientCredentials"]>;
181
+ /** For authorizationCode: user-agent redirect URL (from the spec). */
182
+ readonly authorizationUrl: Schema.OptionFromOptional<Schema.String>;
183
+ /** Token endpoint to exchange the code / refresh. */
184
+ readonly tokenUrl: Schema.String;
185
+ /** Optional refresh endpoint if the spec declares one separately. */
186
+ readonly refreshUrl: Schema.OptionFromOptional<Schema.String>;
187
+ /** Declared scopes for this flow: `{ scope: description }`. */
188
+ readonly scopes: Schema.$Record<Schema.String, Schema.String>;
189
+ /** Identity scopes to request alongside API scopes. `"auto"` discovers standard OIDC scopes. */
190
+ readonly identityScopes: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<false>, Schema.$Array<Schema.String>]>;
191
+ }>>;
192
+ }>;
193
+ export type SpecPreview = typeof SpecPreview.Type;
194
+ /** Preview an OpenAPI spec — extract metadata without registering anything.
195
+ * Accepts either a URL or raw JSON/YAML text. */
196
+ export declare const previewSpec: (input: string) => Effect.Effect<{
197
+ readonly version: Option.Option<string>;
198
+ readonly operations: readonly {
199
+ readonly method: "post" | "options" | "delete" | "get" | "put" | "patch" | "head" | "trace";
200
+ readonly deprecated: boolean;
201
+ readonly path: string;
202
+ readonly summary: Option.Option<string>;
203
+ readonly tags: readonly string[];
204
+ readonly operationId: string;
205
+ }[];
206
+ readonly title: Option.Option<string>;
207
+ readonly tags: readonly string[];
208
+ readonly servers: readonly {
209
+ readonly description: Option.Option<string>;
210
+ readonly url: string;
211
+ readonly variables: Option.Option<{
212
+ readonly [x: string]: {
213
+ readonly default: string;
214
+ readonly description: Option.Option<string>;
215
+ readonly enum: Option.Option<readonly string[]>;
216
+ };
217
+ }>;
218
+ }[];
219
+ readonly securitySchemes: readonly {
220
+ readonly name: string;
221
+ readonly type: "oauth2" | "http" | "apiKey" | "openIdConnect";
222
+ readonly in: Option.Option<"header" | "query" | "cookie">;
223
+ readonly description: Option.Option<string>;
224
+ readonly scheme: Option.Option<string>;
225
+ readonly bearerFormat: Option.Option<string>;
226
+ readonly headerName: Option.Option<string>;
227
+ readonly flows: Option.Option<{
228
+ readonly authorizationCode: Option.Option<{
229
+ readonly authorizationUrl: string;
230
+ readonly tokenUrl: string;
231
+ readonly scopes: {
232
+ readonly [x: string]: string;
233
+ };
234
+ readonly refreshUrl: Option.Option<string>;
235
+ }>;
236
+ readonly clientCredentials: Option.Option<{
237
+ readonly tokenUrl: string;
238
+ readonly scopes: {
239
+ readonly [x: string]: string;
240
+ };
241
+ readonly refreshUrl: Option.Option<string>;
242
+ }>;
243
+ }>;
244
+ readonly openIdConnectUrl: Option.Option<string>;
245
+ }[];
246
+ readonly authStrategies: readonly {
247
+ readonly schemes: readonly string[];
248
+ }[];
249
+ readonly headerPresets: readonly {
250
+ readonly label: string;
251
+ readonly headers: {
252
+ readonly [x: string]: string | null;
253
+ };
254
+ readonly secretHeaders: readonly string[];
255
+ }[];
256
+ readonly oauth2Presets: readonly {
257
+ readonly label: string;
258
+ readonly authorizationUrl: Option.Option<string>;
259
+ readonly tokenUrl: string;
260
+ readonly scopes: {
261
+ readonly [x: string]: string;
262
+ };
263
+ readonly refreshUrl: Option.Option<string>;
264
+ readonly flow: "authorizationCode" | "clientCredentials";
265
+ readonly identityScopes: false | "auto" | readonly string[];
266
+ readonly securitySchemeName: string;
267
+ }[];
268
+ readonly operationCount: number;
269
+ }, import("./errors").OpenApiParseError | import("./errors").OpenApiExtractionError, import("effect/unstable/http/HttpClient").HttpClient>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,21 @@
1
+ import { Effect } from "effect";
2
+ import { type StorageDeps, type StorageFailure } from "@executor-js/sdk/core";
3
+ import { OperationBinding } from "./types";
4
+ export interface StoredOperation {
5
+ /** The integration slug this operation belongs to. */
6
+ readonly integration: string;
7
+ /** The tool name (the `<tool>` address segment) this operation backs. */
8
+ readonly toolName: string;
9
+ readonly binding: OperationBinding;
10
+ }
11
+ export interface OpenapiStore {
12
+ /** Replace all stored operations for an integration. */
13
+ readonly putOperations: (integration: string, operations: readonly StoredOperation[]) => Effect.Effect<void, StorageFailure>;
14
+ /** Look up one operation by integration + tool name. */
15
+ readonly getOperation: (integration: string, toolName: string) => Effect.Effect<StoredOperation | null, StorageFailure>;
16
+ /** List every stored operation for an integration. */
17
+ readonly listOperations: (integration: string) => Effect.Effect<readonly StoredOperation[], StorageFailure>;
18
+ /** Drop all stored operations for an integration. */
19
+ readonly removeOperations: (integration: string) => Effect.Effect<void, StorageFailure>;
20
+ }
21
+ export declare const makeDefaultOpenapiStore: ({ pluginStorage }: StorageDeps) => OpenapiStore;
@@ -0,0 +1,252 @@
1
+ import { Schema } from "effect";
2
+ import type { AuthTemplateSlug } from "@executor-js/sdk/shared";
3
+ import type { OAuthAuthentication } from "@executor-js/sdk/shared";
4
+ export type AuthenticationVariable = {
5
+ readonly type: "variable";
6
+ readonly name: string;
7
+ };
8
+ /** A literal string, or a parts-array mixing literals and variable refs. */
9
+ export type AuthenticationTemplateValue = string | readonly (string | AuthenticationVariable)[];
10
+ export declare const variable: (name: string) => AuthenticationVariable;
11
+ /** The variable name the resolved credential value renders into. */
12
+ export declare const TOKEN_VARIABLE: "token";
13
+ export type APIKeyAuthentication = {
14
+ readonly slug: AuthTemplateSlug;
15
+ readonly type: "apiKey";
16
+ readonly headers?: Record<string, AuthenticationTemplateValue>;
17
+ readonly queryParams?: Record<string, AuthenticationTemplateValue>;
18
+ };
19
+ export type Authentication = OAuthAuthentication | APIKeyAuthentication;
20
+ export declare const OperationId: Schema.brand<Schema.String, "OperationId">;
21
+ export type OperationId = typeof OperationId.Type;
22
+ export declare const HttpMethod: Schema.Literals<readonly ["get", "put", "post", "delete", "patch", "head", "options", "trace"]>;
23
+ export type HttpMethod = typeof HttpMethod.Type;
24
+ export declare const ParameterLocation: Schema.Literals<readonly ["path", "query", "header", "cookie"]>;
25
+ export type ParameterLocation = typeof ParameterLocation.Type;
26
+ export declare const OperationParameter: Schema.Struct<{
27
+ readonly name: Schema.String;
28
+ readonly location: Schema.Literals<readonly ["path", "query", "header", "cookie"]>;
29
+ readonly required: Schema.Boolean;
30
+ readonly schema: Schema.OptionFromOptional<Schema.Unknown>;
31
+ readonly style: Schema.OptionFromOptional<Schema.String>;
32
+ readonly explode: Schema.OptionFromOptional<Schema.Boolean>;
33
+ readonly allowReserved: Schema.OptionFromOptional<Schema.Boolean>;
34
+ readonly description: Schema.OptionFromOptional<Schema.String>;
35
+ }>;
36
+ export type OperationParameter = typeof OperationParameter.Type;
37
+ /**
38
+ * OpenAPI 3.x `Encoding Object` (§4.8.15). Declared per-property inside a
39
+ * multipart/form-data or application/x-www-form-urlencoded request body.
40
+ *
41
+ * - `contentType` — for multipart, overrides the per-part `Content-Type`
42
+ * header (e.g. `application/json` for a JSON-encoded metadata part).
43
+ * - `style` / `explode` / `allowReserved` — for form-urlencoded, control
44
+ * array / object serialization the same way parameter-level style does.
45
+ */
46
+ export declare const EncodingObject: Schema.Struct<{
47
+ readonly contentType: Schema.OptionFromOptional<Schema.String>;
48
+ readonly style: Schema.OptionFromOptional<Schema.String>;
49
+ readonly explode: Schema.OptionFromOptional<Schema.Boolean>;
50
+ readonly allowReserved: Schema.OptionFromOptional<Schema.Boolean>;
51
+ }>;
52
+ export type EncodingObject = typeof EncodingObject.Type;
53
+ export declare const MediaBinding: Schema.Struct<{
54
+ readonly contentType: Schema.String;
55
+ readonly schema: Schema.OptionFromOptional<Schema.Unknown>;
56
+ readonly encoding: Schema.OptionFromOptional<Schema.$Record<Schema.String, Schema.Struct<{
57
+ readonly contentType: Schema.OptionFromOptional<Schema.String>;
58
+ readonly style: Schema.OptionFromOptional<Schema.String>;
59
+ readonly explode: Schema.OptionFromOptional<Schema.Boolean>;
60
+ readonly allowReserved: Schema.OptionFromOptional<Schema.Boolean>;
61
+ }>>>;
62
+ }>;
63
+ export type MediaBinding = typeof MediaBinding.Type;
64
+ export declare const OperationRequestBody: Schema.Struct<{
65
+ readonly required: Schema.Boolean;
66
+ /** Default media type — first declared in spec order (not JSON-first).
67
+ * Used when the caller does not override via the tool's `contentType` arg. */
68
+ readonly contentType: Schema.String;
69
+ /** Schema of the default media type. Kept for backward compat with stored
70
+ * bindings from before `contents` was added. */
71
+ readonly schema: Schema.OptionFromOptional<Schema.Unknown>;
72
+ /** All declared media types in spec order. Populated by `extract.ts`
73
+ * going forward; older persisted bindings may have this unset and will
74
+ * fall back to `{contentType, schema}`. */
75
+ readonly contents: Schema.OptionFromOptional<Schema.$Array<Schema.Struct<{
76
+ readonly contentType: Schema.String;
77
+ readonly schema: Schema.OptionFromOptional<Schema.Unknown>;
78
+ readonly encoding: Schema.OptionFromOptional<Schema.$Record<Schema.String, Schema.Struct<{
79
+ readonly contentType: Schema.OptionFromOptional<Schema.String>;
80
+ readonly style: Schema.OptionFromOptional<Schema.String>;
81
+ readonly explode: Schema.OptionFromOptional<Schema.Boolean>;
82
+ readonly allowReserved: Schema.OptionFromOptional<Schema.Boolean>;
83
+ }>>>;
84
+ }>>>;
85
+ }>;
86
+ export type OperationRequestBody = typeof OperationRequestBody.Type;
87
+ export declare const ExtractedOperation: Schema.Struct<{
88
+ readonly operationId: Schema.brand<Schema.String, "OperationId">;
89
+ readonly toolPath: Schema.OptionFromOptional<Schema.String>;
90
+ readonly method: Schema.Literals<readonly ["get", "put", "post", "delete", "patch", "head", "options", "trace"]>;
91
+ readonly baseUrl: Schema.optional<Schema.String>;
92
+ readonly pathTemplate: Schema.String;
93
+ readonly summary: Schema.OptionFromOptional<Schema.String>;
94
+ readonly description: Schema.OptionFromOptional<Schema.String>;
95
+ readonly tags: Schema.$Array<Schema.String>;
96
+ readonly parameters: Schema.$Array<Schema.Struct<{
97
+ readonly name: Schema.String;
98
+ readonly location: Schema.Literals<readonly ["path", "query", "header", "cookie"]>;
99
+ readonly required: Schema.Boolean;
100
+ readonly schema: Schema.OptionFromOptional<Schema.Unknown>;
101
+ readonly style: Schema.OptionFromOptional<Schema.String>;
102
+ readonly explode: Schema.OptionFromOptional<Schema.Boolean>;
103
+ readonly allowReserved: Schema.OptionFromOptional<Schema.Boolean>;
104
+ readonly description: Schema.OptionFromOptional<Schema.String>;
105
+ }>>;
106
+ readonly requestBody: Schema.OptionFromOptional<Schema.Struct<{
107
+ readonly required: Schema.Boolean;
108
+ /** Default media type — first declared in spec order (not JSON-first).
109
+ * Used when the caller does not override via the tool's `contentType` arg. */
110
+ readonly contentType: Schema.String;
111
+ /** Schema of the default media type. Kept for backward compat with stored
112
+ * bindings from before `contents` was added. */
113
+ readonly schema: Schema.OptionFromOptional<Schema.Unknown>;
114
+ /** All declared media types in spec order. Populated by `extract.ts`
115
+ * going forward; older persisted bindings may have this unset and will
116
+ * fall back to `{contentType, schema}`. */
117
+ readonly contents: Schema.OptionFromOptional<Schema.$Array<Schema.Struct<{
118
+ readonly contentType: Schema.String;
119
+ readonly schema: Schema.OptionFromOptional<Schema.Unknown>;
120
+ readonly encoding: Schema.OptionFromOptional<Schema.$Record<Schema.String, Schema.Struct<{
121
+ readonly contentType: Schema.OptionFromOptional<Schema.String>;
122
+ readonly style: Schema.OptionFromOptional<Schema.String>;
123
+ readonly explode: Schema.OptionFromOptional<Schema.Boolean>;
124
+ readonly allowReserved: Schema.OptionFromOptional<Schema.Boolean>;
125
+ }>>>;
126
+ }>>>;
127
+ }>>;
128
+ readonly inputSchema: Schema.OptionFromOptional<Schema.Unknown>;
129
+ readonly outputSchema: Schema.OptionFromOptional<Schema.Unknown>;
130
+ readonly deprecated: Schema.Boolean;
131
+ }>;
132
+ export type ExtractedOperation = typeof ExtractedOperation.Type;
133
+ export declare const ServerVariable: Schema.Struct<{
134
+ readonly default: Schema.String;
135
+ readonly enum: Schema.OptionFromOptional<Schema.$Array<Schema.String>>;
136
+ readonly description: Schema.OptionFromOptional<Schema.String>;
137
+ }>;
138
+ export type ServerVariable = typeof ServerVariable.Type;
139
+ export declare const ServerInfo: Schema.Struct<{
140
+ readonly url: Schema.String;
141
+ readonly description: Schema.OptionFromOptional<Schema.String>;
142
+ readonly variables: Schema.OptionFromOptional<Schema.$Record<Schema.String, Schema.Struct<{
143
+ readonly default: Schema.String;
144
+ readonly enum: Schema.OptionFromOptional<Schema.$Array<Schema.String>>;
145
+ readonly description: Schema.OptionFromOptional<Schema.String>;
146
+ }>>>;
147
+ }>;
148
+ export type ServerInfo = typeof ServerInfo.Type;
149
+ export declare const ExtractionResult: Schema.Struct<{
150
+ readonly title: Schema.OptionFromOptional<Schema.String>;
151
+ readonly version: Schema.OptionFromOptional<Schema.String>;
152
+ readonly servers: Schema.$Array<Schema.Struct<{
153
+ readonly url: Schema.String;
154
+ readonly description: Schema.OptionFromOptional<Schema.String>;
155
+ readonly variables: Schema.OptionFromOptional<Schema.$Record<Schema.String, Schema.Struct<{
156
+ readonly default: Schema.String;
157
+ readonly enum: Schema.OptionFromOptional<Schema.$Array<Schema.String>>;
158
+ readonly description: Schema.OptionFromOptional<Schema.String>;
159
+ }>>>;
160
+ }>>;
161
+ readonly operations: Schema.$Array<Schema.Struct<{
162
+ readonly operationId: Schema.brand<Schema.String, "OperationId">;
163
+ readonly toolPath: Schema.OptionFromOptional<Schema.String>;
164
+ readonly method: Schema.Literals<readonly ["get", "put", "post", "delete", "patch", "head", "options", "trace"]>;
165
+ readonly baseUrl: Schema.optional<Schema.String>;
166
+ readonly pathTemplate: Schema.String;
167
+ readonly summary: Schema.OptionFromOptional<Schema.String>;
168
+ readonly description: Schema.OptionFromOptional<Schema.String>;
169
+ readonly tags: Schema.$Array<Schema.String>;
170
+ readonly parameters: Schema.$Array<Schema.Struct<{
171
+ readonly name: Schema.String;
172
+ readonly location: Schema.Literals<readonly ["path", "query", "header", "cookie"]>;
173
+ readonly required: Schema.Boolean;
174
+ readonly schema: Schema.OptionFromOptional<Schema.Unknown>;
175
+ readonly style: Schema.OptionFromOptional<Schema.String>;
176
+ readonly explode: Schema.OptionFromOptional<Schema.Boolean>;
177
+ readonly allowReserved: Schema.OptionFromOptional<Schema.Boolean>;
178
+ readonly description: Schema.OptionFromOptional<Schema.String>;
179
+ }>>;
180
+ readonly requestBody: Schema.OptionFromOptional<Schema.Struct<{
181
+ readonly required: Schema.Boolean;
182
+ /** Default media type — first declared in spec order (not JSON-first).
183
+ * Used when the caller does not override via the tool's `contentType` arg. */
184
+ readonly contentType: Schema.String;
185
+ /** Schema of the default media type. Kept for backward compat with stored
186
+ * bindings from before `contents` was added. */
187
+ readonly schema: Schema.OptionFromOptional<Schema.Unknown>;
188
+ /** All declared media types in spec order. Populated by `extract.ts`
189
+ * going forward; older persisted bindings may have this unset and will
190
+ * fall back to `{contentType, schema}`. */
191
+ readonly contents: Schema.OptionFromOptional<Schema.$Array<Schema.Struct<{
192
+ readonly contentType: Schema.String;
193
+ readonly schema: Schema.OptionFromOptional<Schema.Unknown>;
194
+ readonly encoding: Schema.OptionFromOptional<Schema.$Record<Schema.String, Schema.Struct<{
195
+ readonly contentType: Schema.OptionFromOptional<Schema.String>;
196
+ readonly style: Schema.OptionFromOptional<Schema.String>;
197
+ readonly explode: Schema.OptionFromOptional<Schema.Boolean>;
198
+ readonly allowReserved: Schema.OptionFromOptional<Schema.Boolean>;
199
+ }>>>;
200
+ }>>>;
201
+ }>>;
202
+ readonly inputSchema: Schema.OptionFromOptional<Schema.Unknown>;
203
+ readonly outputSchema: Schema.OptionFromOptional<Schema.Unknown>;
204
+ readonly deprecated: Schema.Boolean;
205
+ }>>;
206
+ }>;
207
+ export type ExtractionResult = typeof ExtractionResult.Type;
208
+ export declare const OperationBinding: Schema.Struct<{
209
+ readonly method: Schema.Literals<readonly ["get", "put", "post", "delete", "patch", "head", "options", "trace"]>;
210
+ readonly baseUrl: Schema.optional<Schema.String>;
211
+ readonly pathTemplate: Schema.String;
212
+ readonly parameters: Schema.$Array<Schema.Struct<{
213
+ readonly name: Schema.String;
214
+ readonly location: Schema.Literals<readonly ["path", "query", "header", "cookie"]>;
215
+ readonly required: Schema.Boolean;
216
+ readonly schema: Schema.OptionFromOptional<Schema.Unknown>;
217
+ readonly style: Schema.OptionFromOptional<Schema.String>;
218
+ readonly explode: Schema.OptionFromOptional<Schema.Boolean>;
219
+ readonly allowReserved: Schema.OptionFromOptional<Schema.Boolean>;
220
+ readonly description: Schema.OptionFromOptional<Schema.String>;
221
+ }>>;
222
+ readonly requestBody: Schema.OptionFromOptional<Schema.Struct<{
223
+ readonly required: Schema.Boolean;
224
+ /** Default media type — first declared in spec order (not JSON-first).
225
+ * Used when the caller does not override via the tool's `contentType` arg. */
226
+ readonly contentType: Schema.String;
227
+ /** Schema of the default media type. Kept for backward compat with stored
228
+ * bindings from before `contents` was added. */
229
+ readonly schema: Schema.OptionFromOptional<Schema.Unknown>;
230
+ /** All declared media types in spec order. Populated by `extract.ts`
231
+ * going forward; older persisted bindings may have this unset and will
232
+ * fall back to `{contentType, schema}`. */
233
+ readonly contents: Schema.OptionFromOptional<Schema.$Array<Schema.Struct<{
234
+ readonly contentType: Schema.String;
235
+ readonly schema: Schema.OptionFromOptional<Schema.Unknown>;
236
+ readonly encoding: Schema.OptionFromOptional<Schema.$Record<Schema.String, Schema.Struct<{
237
+ readonly contentType: Schema.OptionFromOptional<Schema.String>;
238
+ readonly style: Schema.OptionFromOptional<Schema.String>;
239
+ readonly explode: Schema.OptionFromOptional<Schema.Boolean>;
240
+ readonly allowReserved: Schema.OptionFromOptional<Schema.Boolean>;
241
+ }>>>;
242
+ }>>>;
243
+ }>>;
244
+ }>;
245
+ export type OperationBinding = typeof OperationBinding.Type;
246
+ export declare const InvocationResult: Schema.Struct<{
247
+ readonly status: Schema.Number;
248
+ readonly headers: Schema.$Record<Schema.String, Schema.String>;
249
+ readonly data: Schema.NullOr<Schema.Unknown>;
250
+ readonly error: Schema.NullOr<Schema.Unknown>;
251
+ }>;
252
+ export type InvocationResult = typeof InvocationResult.Type;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};