@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/types.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const HttpMethod: Schema.Literals<readonly ["get", "put", "post",
|
|
|
5
5
|
export type HttpMethod = typeof HttpMethod.Type;
|
|
6
6
|
export declare const ParameterLocation: Schema.Literals<readonly ["path", "query", "header", "cookie"]>;
|
|
7
7
|
export type ParameterLocation = typeof ParameterLocation.Type;
|
|
8
|
-
declare const
|
|
8
|
+
export declare const OperationParameter: Schema.Struct<{
|
|
9
9
|
readonly name: Schema.String;
|
|
10
10
|
readonly location: Schema.Literals<readonly ["path", "query", "header", "cookie"]>;
|
|
11
11
|
readonly required: Schema.Boolean;
|
|
@@ -14,15 +14,8 @@ declare const OperationParameter_base: Schema.Class<OperationParameter, Schema.S
|
|
|
14
14
|
readonly explode: Schema.OptionFromOptional<Schema.Boolean>;
|
|
15
15
|
readonly allowReserved: Schema.OptionFromOptional<Schema.Boolean>;
|
|
16
16
|
readonly description: Schema.OptionFromOptional<Schema.String>;
|
|
17
|
-
}
|
|
18
|
-
export
|
|
19
|
-
}
|
|
20
|
-
declare const EncodingObject_base: Schema.Class<EncodingObject, Schema.Struct<{
|
|
21
|
-
readonly contentType: Schema.OptionFromOptional<Schema.String>;
|
|
22
|
-
readonly style: Schema.OptionFromOptional<Schema.String>;
|
|
23
|
-
readonly explode: Schema.OptionFromOptional<Schema.Boolean>;
|
|
24
|
-
readonly allowReserved: Schema.OptionFromOptional<Schema.Boolean>;
|
|
25
|
-
}>, {}>;
|
|
17
|
+
}>;
|
|
18
|
+
export type OperationParameter = typeof OperationParameter.Type;
|
|
26
19
|
/**
|
|
27
20
|
* OpenAPI 3.x `Encoding Object` (§4.8.15). Declared per-property inside a
|
|
28
21
|
* multipart/form-data or application/x-www-form-urlencoded request body.
|
|
@@ -32,16 +25,25 @@ declare const EncodingObject_base: Schema.Class<EncodingObject, Schema.Struct<{
|
|
|
32
25
|
* - `style` / `explode` / `allowReserved` — for form-urlencoded, control
|
|
33
26
|
* array / object serialization the same way parameter-level style does.
|
|
34
27
|
*/
|
|
35
|
-
export declare
|
|
36
|
-
|
|
37
|
-
|
|
28
|
+
export declare const EncodingObject: Schema.Struct<{
|
|
29
|
+
readonly contentType: Schema.OptionFromOptional<Schema.String>;
|
|
30
|
+
readonly style: Schema.OptionFromOptional<Schema.String>;
|
|
31
|
+
readonly explode: Schema.OptionFromOptional<Schema.Boolean>;
|
|
32
|
+
readonly allowReserved: Schema.OptionFromOptional<Schema.Boolean>;
|
|
33
|
+
}>;
|
|
34
|
+
export type EncodingObject = typeof EncodingObject.Type;
|
|
35
|
+
export declare const MediaBinding: Schema.Struct<{
|
|
38
36
|
readonly contentType: Schema.String;
|
|
39
37
|
readonly schema: Schema.OptionFromOptional<Schema.Unknown>;
|
|
40
|
-
readonly encoding: Schema.OptionFromOptional<Schema.$Record<Schema.String,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
readonly encoding: Schema.OptionFromOptional<Schema.$Record<Schema.String, Schema.Struct<{
|
|
39
|
+
readonly contentType: Schema.OptionFromOptional<Schema.String>;
|
|
40
|
+
readonly style: Schema.OptionFromOptional<Schema.String>;
|
|
41
|
+
readonly explode: Schema.OptionFromOptional<Schema.Boolean>;
|
|
42
|
+
readonly allowReserved: Schema.OptionFromOptional<Schema.Boolean>;
|
|
43
|
+
}>>>;
|
|
44
|
+
}>;
|
|
45
|
+
export type MediaBinding = typeof MediaBinding.Type;
|
|
46
|
+
export declare const OperationRequestBody: Schema.Struct<{
|
|
45
47
|
readonly required: Schema.Boolean;
|
|
46
48
|
/** Default media type — first declared in spec order (not JSON-first).
|
|
47
49
|
* Used when the caller does not override via the tool's `contentType` arg. */
|
|
@@ -52,55 +54,172 @@ declare const OperationRequestBody_base: Schema.Class<OperationRequestBody, Sche
|
|
|
52
54
|
/** All declared media types in spec order. Populated by `extract.ts`
|
|
53
55
|
* going forward; older persisted bindings may have this unset and will
|
|
54
56
|
* fall back to `{contentType, schema}`. */
|
|
55
|
-
readonly contents: Schema.OptionFromOptional<Schema.$Array<
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
readonly contents: Schema.OptionFromOptional<Schema.$Array<Schema.Struct<{
|
|
58
|
+
readonly contentType: Schema.String;
|
|
59
|
+
readonly schema: Schema.OptionFromOptional<Schema.Unknown>;
|
|
60
|
+
readonly encoding: Schema.OptionFromOptional<Schema.$Record<Schema.String, Schema.Struct<{
|
|
61
|
+
readonly contentType: Schema.OptionFromOptional<Schema.String>;
|
|
62
|
+
readonly style: Schema.OptionFromOptional<Schema.String>;
|
|
63
|
+
readonly explode: Schema.OptionFromOptional<Schema.Boolean>;
|
|
64
|
+
readonly allowReserved: Schema.OptionFromOptional<Schema.Boolean>;
|
|
65
|
+
}>>>;
|
|
66
|
+
}>>>;
|
|
67
|
+
}>;
|
|
68
|
+
export type OperationRequestBody = typeof OperationRequestBody.Type;
|
|
69
|
+
export declare const ExtractedOperation: Schema.Struct<{
|
|
60
70
|
readonly operationId: Schema.brand<Schema.String, "OperationId">;
|
|
61
71
|
readonly method: Schema.Literals<readonly ["get", "put", "post", "delete", "patch", "head", "options", "trace"]>;
|
|
62
72
|
readonly pathTemplate: Schema.String;
|
|
63
73
|
readonly summary: Schema.OptionFromOptional<Schema.String>;
|
|
64
74
|
readonly description: Schema.OptionFromOptional<Schema.String>;
|
|
65
75
|
readonly tags: Schema.$Array<Schema.String>;
|
|
66
|
-
readonly parameters: Schema.$Array<
|
|
67
|
-
|
|
76
|
+
readonly parameters: Schema.$Array<Schema.Struct<{
|
|
77
|
+
readonly name: Schema.String;
|
|
78
|
+
readonly location: Schema.Literals<readonly ["path", "query", "header", "cookie"]>;
|
|
79
|
+
readonly required: Schema.Boolean;
|
|
80
|
+
readonly schema: Schema.OptionFromOptional<Schema.Unknown>;
|
|
81
|
+
readonly style: Schema.OptionFromOptional<Schema.String>;
|
|
82
|
+
readonly explode: Schema.OptionFromOptional<Schema.Boolean>;
|
|
83
|
+
readonly allowReserved: Schema.OptionFromOptional<Schema.Boolean>;
|
|
84
|
+
readonly description: Schema.OptionFromOptional<Schema.String>;
|
|
85
|
+
}>>;
|
|
86
|
+
readonly requestBody: Schema.OptionFromOptional<Schema.Struct<{
|
|
87
|
+
readonly required: Schema.Boolean;
|
|
88
|
+
/** Default media type — first declared in spec order (not JSON-first).
|
|
89
|
+
* Used when the caller does not override via the tool's `contentType` arg. */
|
|
90
|
+
readonly contentType: Schema.String;
|
|
91
|
+
/** Schema of the default media type. Kept for backward compat with stored
|
|
92
|
+
* bindings from before `contents` was added. */
|
|
93
|
+
readonly schema: Schema.OptionFromOptional<Schema.Unknown>;
|
|
94
|
+
/** All declared media types in spec order. Populated by `extract.ts`
|
|
95
|
+
* going forward; older persisted bindings may have this unset and will
|
|
96
|
+
* fall back to `{contentType, schema}`. */
|
|
97
|
+
readonly contents: Schema.OptionFromOptional<Schema.$Array<Schema.Struct<{
|
|
98
|
+
readonly contentType: Schema.String;
|
|
99
|
+
readonly schema: Schema.OptionFromOptional<Schema.Unknown>;
|
|
100
|
+
readonly encoding: Schema.OptionFromOptional<Schema.$Record<Schema.String, Schema.Struct<{
|
|
101
|
+
readonly contentType: Schema.OptionFromOptional<Schema.String>;
|
|
102
|
+
readonly style: Schema.OptionFromOptional<Schema.String>;
|
|
103
|
+
readonly explode: Schema.OptionFromOptional<Schema.Boolean>;
|
|
104
|
+
readonly allowReserved: Schema.OptionFromOptional<Schema.Boolean>;
|
|
105
|
+
}>>>;
|
|
106
|
+
}>>>;
|
|
107
|
+
}>>;
|
|
68
108
|
readonly inputSchema: Schema.OptionFromOptional<Schema.Unknown>;
|
|
69
109
|
readonly outputSchema: Schema.OptionFromOptional<Schema.Unknown>;
|
|
70
110
|
readonly deprecated: Schema.Boolean;
|
|
71
|
-
}
|
|
72
|
-
export
|
|
73
|
-
|
|
74
|
-
declare const ServerVariable_base: Schema.Class<ServerVariable, Schema.Struct<{
|
|
111
|
+
}>;
|
|
112
|
+
export type ExtractedOperation = typeof ExtractedOperation.Type;
|
|
113
|
+
export declare const ServerVariable: Schema.Struct<{
|
|
75
114
|
readonly default: Schema.String;
|
|
76
115
|
readonly enum: Schema.OptionFromOptional<Schema.$Array<Schema.String>>;
|
|
77
116
|
readonly description: Schema.OptionFromOptional<Schema.String>;
|
|
78
|
-
}
|
|
79
|
-
export
|
|
80
|
-
|
|
81
|
-
declare const ServerInfo_base: Schema.Class<ServerInfo, Schema.Struct<{
|
|
117
|
+
}>;
|
|
118
|
+
export type ServerVariable = typeof ServerVariable.Type;
|
|
119
|
+
export declare const ServerInfo: Schema.Struct<{
|
|
82
120
|
readonly url: Schema.String;
|
|
83
121
|
readonly description: Schema.OptionFromOptional<Schema.String>;
|
|
84
|
-
readonly variables: Schema.OptionFromOptional<Schema.$Record<Schema.String,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
122
|
+
readonly variables: Schema.OptionFromOptional<Schema.$Record<Schema.String, Schema.Struct<{
|
|
123
|
+
readonly default: Schema.String;
|
|
124
|
+
readonly enum: Schema.OptionFromOptional<Schema.$Array<Schema.String>>;
|
|
125
|
+
readonly description: Schema.OptionFromOptional<Schema.String>;
|
|
126
|
+
}>>>;
|
|
127
|
+
}>;
|
|
128
|
+
export type ServerInfo = typeof ServerInfo.Type;
|
|
129
|
+
export declare const ExtractionResult: Schema.Struct<{
|
|
89
130
|
readonly title: Schema.OptionFromOptional<Schema.String>;
|
|
90
131
|
readonly version: Schema.OptionFromOptional<Schema.String>;
|
|
91
|
-
readonly servers: Schema.$Array<
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
132
|
+
readonly servers: Schema.$Array<Schema.Struct<{
|
|
133
|
+
readonly url: Schema.String;
|
|
134
|
+
readonly description: Schema.OptionFromOptional<Schema.String>;
|
|
135
|
+
readonly variables: Schema.OptionFromOptional<Schema.$Record<Schema.String, Schema.Struct<{
|
|
136
|
+
readonly default: Schema.String;
|
|
137
|
+
readonly enum: Schema.OptionFromOptional<Schema.$Array<Schema.String>>;
|
|
138
|
+
readonly description: Schema.OptionFromOptional<Schema.String>;
|
|
139
|
+
}>>>;
|
|
140
|
+
}>>;
|
|
141
|
+
readonly operations: Schema.$Array<Schema.Struct<{
|
|
142
|
+
readonly operationId: Schema.brand<Schema.String, "OperationId">;
|
|
143
|
+
readonly method: Schema.Literals<readonly ["get", "put", "post", "delete", "patch", "head", "options", "trace"]>;
|
|
144
|
+
readonly pathTemplate: Schema.String;
|
|
145
|
+
readonly summary: Schema.OptionFromOptional<Schema.String>;
|
|
146
|
+
readonly description: Schema.OptionFromOptional<Schema.String>;
|
|
147
|
+
readonly tags: Schema.$Array<Schema.String>;
|
|
148
|
+
readonly parameters: Schema.$Array<Schema.Struct<{
|
|
149
|
+
readonly name: Schema.String;
|
|
150
|
+
readonly location: Schema.Literals<readonly ["path", "query", "header", "cookie"]>;
|
|
151
|
+
readonly required: Schema.Boolean;
|
|
152
|
+
readonly schema: Schema.OptionFromOptional<Schema.Unknown>;
|
|
153
|
+
readonly style: Schema.OptionFromOptional<Schema.String>;
|
|
154
|
+
readonly explode: Schema.OptionFromOptional<Schema.Boolean>;
|
|
155
|
+
readonly allowReserved: Schema.OptionFromOptional<Schema.Boolean>;
|
|
156
|
+
readonly description: Schema.OptionFromOptional<Schema.String>;
|
|
157
|
+
}>>;
|
|
158
|
+
readonly requestBody: Schema.OptionFromOptional<Schema.Struct<{
|
|
159
|
+
readonly required: Schema.Boolean;
|
|
160
|
+
/** Default media type — first declared in spec order (not JSON-first).
|
|
161
|
+
* Used when the caller does not override via the tool's `contentType` arg. */
|
|
162
|
+
readonly contentType: Schema.String;
|
|
163
|
+
/** Schema of the default media type. Kept for backward compat with stored
|
|
164
|
+
* bindings from before `contents` was added. */
|
|
165
|
+
readonly schema: Schema.OptionFromOptional<Schema.Unknown>;
|
|
166
|
+
/** All declared media types in spec order. Populated by `extract.ts`
|
|
167
|
+
* going forward; older persisted bindings may have this unset and will
|
|
168
|
+
* fall back to `{contentType, schema}`. */
|
|
169
|
+
readonly contents: Schema.OptionFromOptional<Schema.$Array<Schema.Struct<{
|
|
170
|
+
readonly contentType: Schema.String;
|
|
171
|
+
readonly schema: Schema.OptionFromOptional<Schema.Unknown>;
|
|
172
|
+
readonly encoding: Schema.OptionFromOptional<Schema.$Record<Schema.String, Schema.Struct<{
|
|
173
|
+
readonly contentType: Schema.OptionFromOptional<Schema.String>;
|
|
174
|
+
readonly style: Schema.OptionFromOptional<Schema.String>;
|
|
175
|
+
readonly explode: Schema.OptionFromOptional<Schema.Boolean>;
|
|
176
|
+
readonly allowReserved: Schema.OptionFromOptional<Schema.Boolean>;
|
|
177
|
+
}>>>;
|
|
178
|
+
}>>>;
|
|
179
|
+
}>>;
|
|
180
|
+
readonly inputSchema: Schema.OptionFromOptional<Schema.Unknown>;
|
|
181
|
+
readonly outputSchema: Schema.OptionFromOptional<Schema.Unknown>;
|
|
182
|
+
readonly deprecated: Schema.Boolean;
|
|
183
|
+
}>>;
|
|
184
|
+
}>;
|
|
185
|
+
export type ExtractionResult = typeof ExtractionResult.Type;
|
|
186
|
+
export declare const OperationBinding: Schema.Struct<{
|
|
97
187
|
readonly method: Schema.Literals<readonly ["get", "put", "post", "delete", "patch", "head", "options", "trace"]>;
|
|
98
188
|
readonly pathTemplate: Schema.String;
|
|
99
|
-
readonly parameters: Schema.$Array<
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
189
|
+
readonly parameters: Schema.$Array<Schema.Struct<{
|
|
190
|
+
readonly name: Schema.String;
|
|
191
|
+
readonly location: Schema.Literals<readonly ["path", "query", "header", "cookie"]>;
|
|
192
|
+
readonly required: Schema.Boolean;
|
|
193
|
+
readonly schema: Schema.OptionFromOptional<Schema.Unknown>;
|
|
194
|
+
readonly style: Schema.OptionFromOptional<Schema.String>;
|
|
195
|
+
readonly explode: Schema.OptionFromOptional<Schema.Boolean>;
|
|
196
|
+
readonly allowReserved: Schema.OptionFromOptional<Schema.Boolean>;
|
|
197
|
+
readonly description: Schema.OptionFromOptional<Schema.String>;
|
|
198
|
+
}>>;
|
|
199
|
+
readonly requestBody: Schema.OptionFromOptional<Schema.Struct<{
|
|
200
|
+
readonly required: Schema.Boolean;
|
|
201
|
+
/** Default media type — first declared in spec order (not JSON-first).
|
|
202
|
+
* Used when the caller does not override via the tool's `contentType` arg. */
|
|
203
|
+
readonly contentType: Schema.String;
|
|
204
|
+
/** Schema of the default media type. Kept for backward compat with stored
|
|
205
|
+
* bindings from before `contents` was added. */
|
|
206
|
+
readonly schema: Schema.OptionFromOptional<Schema.Unknown>;
|
|
207
|
+
/** All declared media types in spec order. Populated by `extract.ts`
|
|
208
|
+
* going forward; older persisted bindings may have this unset and will
|
|
209
|
+
* fall back to `{contentType, schema}`. */
|
|
210
|
+
readonly contents: Schema.OptionFromOptional<Schema.$Array<Schema.Struct<{
|
|
211
|
+
readonly contentType: Schema.String;
|
|
212
|
+
readonly schema: Schema.OptionFromOptional<Schema.Unknown>;
|
|
213
|
+
readonly encoding: Schema.OptionFromOptional<Schema.$Record<Schema.String, Schema.Struct<{
|
|
214
|
+
readonly contentType: Schema.OptionFromOptional<Schema.String>;
|
|
215
|
+
readonly style: Schema.OptionFromOptional<Schema.String>;
|
|
216
|
+
readonly explode: Schema.OptionFromOptional<Schema.Boolean>;
|
|
217
|
+
readonly allowReserved: Schema.OptionFromOptional<Schema.Boolean>;
|
|
218
|
+
}>>>;
|
|
219
|
+
}>>>;
|
|
220
|
+
}>>;
|
|
221
|
+
}>;
|
|
222
|
+
export type OperationBinding = typeof OperationBinding.Type;
|
|
104
223
|
/**
|
|
105
224
|
* A header value — either a static string or a reference to a secret.
|
|
106
225
|
* Stored as JSON-serializable data.
|
|
@@ -110,18 +229,36 @@ export declare const HeaderValue: Schema.Union<readonly [Schema.String, Schema.S
|
|
|
110
229
|
readonly prefix: Schema.optional<Schema.String>;
|
|
111
230
|
}>]>;
|
|
112
231
|
export type HeaderValue = typeof HeaderValue.Type;
|
|
113
|
-
declare const
|
|
232
|
+
export declare const ConfiguredHeaderBinding: Schema.Struct<{
|
|
233
|
+
readonly kind: Schema.Literal<"binding">;
|
|
234
|
+
readonly slot: Schema.String;
|
|
235
|
+
readonly prefix: Schema.optional<Schema.String>;
|
|
236
|
+
}>;
|
|
237
|
+
export type ConfiguredHeaderBinding = typeof ConfiguredHeaderBinding.Type;
|
|
238
|
+
export declare const ConfiguredHeaderValue: Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
114
239
|
readonly kind: Schema.Literal<"binding">;
|
|
115
240
|
readonly slot: Schema.String;
|
|
116
241
|
readonly prefix: Schema.optional<Schema.String>;
|
|
117
|
-
}
|
|
118
|
-
export declare class ConfiguredHeaderBinding extends ConfiguredHeaderBinding_base {
|
|
119
|
-
}
|
|
120
|
-
export declare const ConfiguredHeaderValue: Schema.Union<readonly [Schema.String, typeof ConfiguredHeaderBinding]>;
|
|
242
|
+
}>]>;
|
|
121
243
|
export type ConfiguredHeaderValue = typeof ConfiguredHeaderValue.Type;
|
|
244
|
+
export declare const OpenApiCredentialInput: Schema.Union<readonly [Schema.Struct<{
|
|
245
|
+
readonly secretId: Schema.String;
|
|
246
|
+
readonly prefix: Schema.optional<Schema.String>;
|
|
247
|
+
readonly targetScope: Schema.brand<Schema.String, "ScopeId">;
|
|
248
|
+
readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
|
|
249
|
+
}>, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
250
|
+
readonly secretId: Schema.String;
|
|
251
|
+
readonly prefix: Schema.optional<Schema.String>;
|
|
252
|
+
}>]>, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
253
|
+
readonly kind: Schema.Literal<"binding">;
|
|
254
|
+
readonly slot: Schema.String;
|
|
255
|
+
readonly prefix: Schema.optional<Schema.String>;
|
|
256
|
+
}>]>]>;
|
|
257
|
+
export type OpenApiCredentialInput = typeof OpenApiCredentialInput.Type;
|
|
122
258
|
export declare const OpenApiSourceBindingValue: Schema.Union<readonly [Schema.Struct<{
|
|
123
259
|
readonly kind: Schema.Literal<"secret">;
|
|
124
260
|
readonly secretId: Schema.brand<Schema.String, "SecretId">;
|
|
261
|
+
readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
|
|
125
262
|
}>, Schema.Struct<{
|
|
126
263
|
readonly kind: Schema.Literal<"connection">;
|
|
127
264
|
readonly connectionId: Schema.brand<Schema.String, "ConnectionId">;
|
|
@@ -130,7 +267,7 @@ export declare const OpenApiSourceBindingValue: Schema.Union<readonly [Schema.St
|
|
|
130
267
|
readonly text: Schema.String;
|
|
131
268
|
}>]>;
|
|
132
269
|
export type OpenApiSourceBindingValue = typeof OpenApiSourceBindingValue.Type;
|
|
133
|
-
export declare const
|
|
270
|
+
export declare const OpenApiSourceBindingInput: Schema.Struct<{
|
|
134
271
|
readonly sourceId: Schema.String;
|
|
135
272
|
readonly sourceScope: Schema.brand<Schema.String, "ScopeId">;
|
|
136
273
|
readonly scope: Schema.brand<Schema.String, "ScopeId">;
|
|
@@ -138,6 +275,7 @@ export declare const OpenApiSourceBindingInputSchema: Schema.Struct<{
|
|
|
138
275
|
readonly value: Schema.Union<readonly [Schema.Struct<{
|
|
139
276
|
readonly kind: Schema.Literal<"secret">;
|
|
140
277
|
readonly secretId: Schema.brand<Schema.String, "SecretId">;
|
|
278
|
+
readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
|
|
141
279
|
}>, Schema.Struct<{
|
|
142
280
|
readonly kind: Schema.Literal<"connection">;
|
|
143
281
|
readonly connectionId: Schema.brand<Schema.String, "ConnectionId">;
|
|
@@ -146,25 +284,8 @@ export declare const OpenApiSourceBindingInputSchema: Schema.Struct<{
|
|
|
146
284
|
readonly text: Schema.String;
|
|
147
285
|
}>]>;
|
|
148
286
|
}>;
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
readonly sourceScope: Schema.brand<Schema.String, "ScopeId">;
|
|
152
|
-
readonly scope: Schema.brand<Schema.String, "ScopeId">;
|
|
153
|
-
readonly slot: Schema.String;
|
|
154
|
-
readonly value: Schema.Union<readonly [Schema.Struct<{
|
|
155
|
-
readonly kind: Schema.Literal<"secret">;
|
|
156
|
-
readonly secretId: Schema.brand<Schema.String, "SecretId">;
|
|
157
|
-
}>, Schema.Struct<{
|
|
158
|
-
readonly kind: Schema.Literal<"connection">;
|
|
159
|
-
readonly connectionId: Schema.brand<Schema.String, "ConnectionId">;
|
|
160
|
-
}>, Schema.Struct<{
|
|
161
|
-
readonly kind: Schema.Literal<"text">;
|
|
162
|
-
readonly text: Schema.String;
|
|
163
|
-
}>]>;
|
|
164
|
-
}>, {}>;
|
|
165
|
-
export declare class OpenApiSourceBindingInput extends OpenApiSourceBindingInput_base {
|
|
166
|
-
}
|
|
167
|
-
declare const OpenApiSourceBindingRef_base: Schema.Class<OpenApiSourceBindingRef, Schema.Struct<{
|
|
287
|
+
export type OpenApiSourceBindingInput = typeof OpenApiSourceBindingInput.Type;
|
|
288
|
+
export declare const OpenApiSourceBindingRef: Schema.Struct<{
|
|
168
289
|
readonly sourceId: Schema.String;
|
|
169
290
|
readonly sourceScopeId: Schema.brand<Schema.String, "ScopeId">;
|
|
170
291
|
readonly scopeId: Schema.brand<Schema.String, "ScopeId">;
|
|
@@ -172,6 +293,7 @@ declare const OpenApiSourceBindingRef_base: Schema.Class<OpenApiSourceBindingRef
|
|
|
172
293
|
readonly value: Schema.Union<readonly [Schema.Struct<{
|
|
173
294
|
readonly kind: Schema.Literal<"secret">;
|
|
174
295
|
readonly secretId: Schema.brand<Schema.String, "SecretId">;
|
|
296
|
+
readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
|
|
175
297
|
}>, Schema.Struct<{
|
|
176
298
|
readonly kind: Schema.Literal<"connection">;
|
|
177
299
|
readonly connectionId: Schema.brand<Schema.String, "ConnectionId">;
|
|
@@ -181,47 +303,11 @@ declare const OpenApiSourceBindingRef_base: Schema.Class<OpenApiSourceBindingRef
|
|
|
181
303
|
}>]>;
|
|
182
304
|
readonly createdAt: Schema.Date;
|
|
183
305
|
readonly updatedAt: Schema.Date;
|
|
184
|
-
}
|
|
185
|
-
export
|
|
186
|
-
}
|
|
306
|
+
}>;
|
|
307
|
+
export type OpenApiSourceBindingRef = typeof OpenApiSourceBindingRef.Type;
|
|
187
308
|
export declare const OAuth2Flow: Schema.Literals<readonly ["authorizationCode", "clientCredentials"]>;
|
|
188
309
|
export type OAuth2Flow = typeof OAuth2Flow.Type;
|
|
189
|
-
declare const
|
|
190
|
-
readonly kind: Schema.Literal<"oauth2">;
|
|
191
|
-
/** Id of the Connection that owns this sign-in. Points at the core
|
|
192
|
-
* `connection` table; resolve via `ctx.connections.get(id)` or
|
|
193
|
-
* `ctx.connections.accessToken(id)`. Updated when the user signs in
|
|
194
|
-
* again from the source detail UI (a fresh connection is minted and
|
|
195
|
-
* this pointer is rewritten). */
|
|
196
|
-
readonly connectionId: Schema.String;
|
|
197
|
-
/** Key into `components.securitySchemes` this auth came from. Kept here
|
|
198
|
-
* so a spec with multiple OAuth2 schemes can wire each one to its own
|
|
199
|
-
* connection. */
|
|
200
|
-
readonly securitySchemeName: Schema.String;
|
|
201
|
-
/** OAuth2 grant type used for this source. Determines which flow the
|
|
202
|
-
* sign-in button runs (authorizationCode opens a browser popup;
|
|
203
|
-
* clientCredentials is server-to-server). */
|
|
204
|
-
readonly flow: Schema.Literals<readonly ["authorizationCode", "clientCredentials"]>;
|
|
205
|
-
/** Absolute token endpoint URL. */
|
|
206
|
-
readonly tokenUrl: Schema.String;
|
|
207
|
-
/** Absolute authorization endpoint URL. Only used for authorizationCode
|
|
208
|
-
* flows; clientCredentials has no user consent step. */
|
|
209
|
-
readonly authorizationUrl: Schema.NullOr<Schema.String>;
|
|
210
|
-
/** Expected issuer for ID token validation. Defaults to authorization origin. */
|
|
211
|
-
readonly issuerUrl: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
212
|
-
/** Secret id holding the OAuth client_id. */
|
|
213
|
-
readonly clientIdSecretId: Schema.String;
|
|
214
|
-
/** Secret id holding the OAuth client_secret. Optional for public
|
|
215
|
-
* clients (PKCE-only authorizationCode). */
|
|
216
|
-
readonly clientSecretSecretId: Schema.NullOr<Schema.String>;
|
|
217
|
-
/** OAuth scopes requested on sign-in. Stored as a static list so the
|
|
218
|
-
* sign-in button can re-request the same capabilities without having
|
|
219
|
-
* to re-derive them from the OpenAPI spec. */
|
|
220
|
-
readonly scopes: Schema.$Array<Schema.String>;
|
|
221
|
-
}>, {}>;
|
|
222
|
-
export declare class OAuth2Auth extends OAuth2Auth_base {
|
|
223
|
-
}
|
|
224
|
-
declare const OAuth2SourceConfig_base: Schema.Class<OAuth2SourceConfig, Schema.Struct<{
|
|
310
|
+
export declare const OAuth2SourceConfig: Schema.Struct<{
|
|
225
311
|
readonly kind: Schema.Literal<"oauth2">;
|
|
226
312
|
readonly securitySchemeName: Schema.String;
|
|
227
313
|
readonly flow: Schema.Literals<readonly ["authorizationCode", "clientCredentials"]>;
|
|
@@ -232,31 +318,12 @@ declare const OAuth2SourceConfig_base: Schema.Class<OAuth2SourceConfig, Schema.S
|
|
|
232
318
|
readonly clientSecretSlot: Schema.NullOr<Schema.String>;
|
|
233
319
|
readonly connectionSlot: Schema.String;
|
|
234
320
|
readonly scopes: Schema.$Array<Schema.String>;
|
|
235
|
-
}
|
|
236
|
-
export
|
|
237
|
-
|
|
238
|
-
declare const InvocationConfig_base: Schema.Class<InvocationConfig, Schema.Struct<{
|
|
239
|
-
readonly baseUrl: Schema.String;
|
|
240
|
-
/** Headers applied to every request. Values can reference secrets. */
|
|
241
|
-
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
242
|
-
readonly secretId: Schema.String;
|
|
243
|
-
readonly prefix: Schema.optional<Schema.String>;
|
|
244
|
-
}>]>>>;
|
|
245
|
-
/**
|
|
246
|
-
* Optional OAuth2 auth — if set, the invoker resolves/refreshes the
|
|
247
|
-
* access token and injects `Authorization: Bearer <token>` on every
|
|
248
|
-
* request. Coexists with `headers` but wins for the Authorization header.
|
|
249
|
-
*/
|
|
250
|
-
readonly oauth2: Schema.OptionFromOptional<typeof OAuth2Auth>;
|
|
251
|
-
}>, {}>;
|
|
252
|
-
export declare class InvocationConfig extends InvocationConfig_base {
|
|
253
|
-
}
|
|
254
|
-
declare const InvocationResult_base: Schema.Class<InvocationResult, Schema.Struct<{
|
|
321
|
+
}>;
|
|
322
|
+
export type OAuth2SourceConfig = typeof OAuth2SourceConfig.Type;
|
|
323
|
+
export declare const InvocationResult: Schema.Struct<{
|
|
255
324
|
readonly status: Schema.Number;
|
|
256
325
|
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
257
326
|
readonly data: Schema.NullOr<Schema.Unknown>;
|
|
258
327
|
readonly error: Schema.NullOr<Schema.Unknown>;
|
|
259
|
-
}
|
|
260
|
-
export
|
|
261
|
-
}
|
|
262
|
-
export {};
|
|
328
|
+
}>;
|
|
329
|
+
export type InvocationResult = typeof InvocationResult.Type;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Context, Effect, Layer } from "effect";
|
|
2
|
+
import { HttpClient, HttpServer } from "effect/unstable/http";
|
|
3
|
+
declare const OpenApiTestServerAddressError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
4
|
+
readonly _tag: "OpenApiTestServerAddressError";
|
|
5
|
+
} & Readonly<A>;
|
|
6
|
+
export declare class OpenApiTestServerAddressError extends OpenApiTestServerAddressError_base<{
|
|
7
|
+
readonly address: unknown;
|
|
8
|
+
}> {
|
|
9
|
+
}
|
|
10
|
+
declare const OpenApiTestServerSpecError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
11
|
+
readonly _tag: "OpenApiTestServerSpecError";
|
|
12
|
+
} & Readonly<A>;
|
|
13
|
+
export declare class OpenApiTestServerSpecError extends OpenApiTestServerSpecError_base<{
|
|
14
|
+
readonly cause: unknown;
|
|
15
|
+
}> {
|
|
16
|
+
}
|
|
17
|
+
export interface OpenApiTestServerOptions {
|
|
18
|
+
readonly spec: unknown;
|
|
19
|
+
}
|
|
20
|
+
export interface OpenApiTestServerShape {
|
|
21
|
+
readonly baseUrl: string;
|
|
22
|
+
readonly specJson: string;
|
|
23
|
+
readonly httpClientLayer: Layer.Layer<HttpClient.HttpClient, never, never>;
|
|
24
|
+
}
|
|
25
|
+
export declare const openApiSpecJsonWithServer: (spec: unknown, baseUrl: string) => Effect.Effect<string, OpenApiTestServerSpecError>;
|
|
26
|
+
export declare const makeOpenApiTestServer: (options: OpenApiTestServerOptions) => Effect.Effect<OpenApiTestServerShape, OpenApiTestServerAddressError | OpenApiTestServerSpecError, HttpClient.HttpClient | HttpServer.HttpServer>;
|
|
27
|
+
declare const OpenApiTestServer_base: Context.ServiceClass<OpenApiTestServer, "@executor-js/plugin-openapi/testing/OpenApiTestServer", OpenApiTestServerShape>;
|
|
28
|
+
export declare class OpenApiTestServer extends OpenApiTestServer_base {
|
|
29
|
+
static readonly layer: (options: OpenApiTestServerOptions) => Layer.Layer<OpenApiTestServer, OpenApiTestServerAddressError | OpenApiTestServerSpecError, HttpClient.HttpClient | HttpServer.HttpServer>;
|
|
30
|
+
}
|
|
31
|
+
export declare const TestLayers: {
|
|
32
|
+
server: (options: OpenApiTestServerOptions) => Layer.Layer<OpenApiTestServer, OpenApiTestServerAddressError | OpenApiTestServerSpecError, HttpClient.HttpClient | HttpServer.HttpServer>;
|
|
33
|
+
};
|
|
34
|
+
export {};
|
package/dist/testing.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// src/testing/index.ts
|
|
2
|
+
import { Context, Data, Effect, Layer, Predicate, Schema } from "effect";
|
|
3
|
+
import { HttpClient, HttpServer } from "effect/unstable/http";
|
|
4
|
+
var OpenApiTestServerAddressError = class extends Data.TaggedError(
|
|
5
|
+
"OpenApiTestServerAddressError"
|
|
6
|
+
) {
|
|
7
|
+
};
|
|
8
|
+
var OpenApiTestServerSpecError = class extends Data.TaggedError("OpenApiTestServerSpecError") {
|
|
9
|
+
};
|
|
10
|
+
var decodeJsonSpec = Schema.decodeUnknownEffect(Schema.fromJsonString(Schema.Unknown));
|
|
11
|
+
var isJsonObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
12
|
+
var openApiSpecJsonWithServer = (spec, baseUrl) => Effect.gen(function* () {
|
|
13
|
+
const parsed = typeof spec === "string" ? yield* decodeJsonSpec(spec).pipe(
|
|
14
|
+
Effect.mapError((cause) => new OpenApiTestServerSpecError({ cause }))
|
|
15
|
+
) : spec;
|
|
16
|
+
const withServer = isJsonObject(parsed) ? {
|
|
17
|
+
...parsed,
|
|
18
|
+
servers: [{ url: baseUrl }]
|
|
19
|
+
} : parsed;
|
|
20
|
+
return yield* Effect.try({
|
|
21
|
+
try: () => JSON.stringify(withServer),
|
|
22
|
+
catch: (cause) => new OpenApiTestServerSpecError({ cause })
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
var makeOpenApiTestServer = (options) => Effect.gen(function* () {
|
|
26
|
+
const server = yield* HttpServer.HttpServer;
|
|
27
|
+
const address = server.address;
|
|
28
|
+
if (!Predicate.isTagged(address, "TcpAddress")) {
|
|
29
|
+
return yield* new OpenApiTestServerAddressError({ address });
|
|
30
|
+
}
|
|
31
|
+
const client = yield* HttpClient.HttpClient;
|
|
32
|
+
const baseUrl = `http://127.0.0.1:${address.port}`;
|
|
33
|
+
const specJson = yield* openApiSpecJsonWithServer(options.spec, baseUrl);
|
|
34
|
+
return {
|
|
35
|
+
baseUrl,
|
|
36
|
+
specJson,
|
|
37
|
+
httpClientLayer: Layer.succeed(HttpClient.HttpClient, client)
|
|
38
|
+
};
|
|
39
|
+
});
|
|
40
|
+
var OpenApiTestServer = class _OpenApiTestServer extends Context.Service()(
|
|
41
|
+
"@executor-js/plugin-openapi/testing/OpenApiTestServer"
|
|
42
|
+
) {
|
|
43
|
+
static layer = (options) => Layer.effect(_OpenApiTestServer, makeOpenApiTestServer(options));
|
|
44
|
+
};
|
|
45
|
+
var TestLayers = {
|
|
46
|
+
server: OpenApiTestServer.layer
|
|
47
|
+
};
|
|
48
|
+
export {
|
|
49
|
+
OpenApiTestServer,
|
|
50
|
+
OpenApiTestServerAddressError,
|
|
51
|
+
OpenApiTestServerSpecError,
|
|
52
|
+
TestLayers,
|
|
53
|
+
makeOpenApiTestServer,
|
|
54
|
+
openApiSpecJsonWithServer
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=testing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/testing/index.ts"],"sourcesContent":["import { Context, Data, Effect, Layer, Predicate, Schema } from \"effect\";\nimport { HttpClient, HttpServer } from \"effect/unstable/http\";\n\nexport class OpenApiTestServerAddressError extends Data.TaggedError(\n \"OpenApiTestServerAddressError\",\n)<{\n readonly address: unknown;\n}> {}\n\nexport class OpenApiTestServerSpecError extends Data.TaggedError(\"OpenApiTestServerSpecError\")<{\n readonly cause: unknown;\n}> {}\n\nexport interface OpenApiTestServerOptions {\n readonly spec: unknown;\n}\n\nexport interface OpenApiTestServerShape {\n readonly baseUrl: string;\n readonly specJson: string;\n readonly httpClientLayer: Layer.Layer<HttpClient.HttpClient, never, never>;\n}\n\nconst decodeJsonSpec = Schema.decodeUnknownEffect(Schema.fromJsonString(Schema.Unknown));\n\nconst isJsonObject = (value: unknown): value is Readonly<Record<string, unknown>> =>\n typeof value === \"object\" && value !== null && !Array.isArray(value);\n\nexport const openApiSpecJsonWithServer = (\n spec: unknown,\n baseUrl: string,\n): Effect.Effect<string, OpenApiTestServerSpecError> =>\n Effect.gen(function* () {\n const parsed =\n typeof spec === \"string\"\n ? yield* decodeJsonSpec(spec).pipe(\n Effect.mapError((cause) => new OpenApiTestServerSpecError({ cause })),\n )\n : spec;\n const withServer = isJsonObject(parsed)\n ? {\n ...parsed,\n servers: [{ url: baseUrl }],\n }\n : parsed;\n return yield* Effect.try({\n try: () => JSON.stringify(withServer),\n catch: (cause) => new OpenApiTestServerSpecError({ cause }),\n });\n });\n\nexport const makeOpenApiTestServer = (\n options: OpenApiTestServerOptions,\n): Effect.Effect<\n OpenApiTestServerShape,\n OpenApiTestServerAddressError | OpenApiTestServerSpecError,\n HttpClient.HttpClient | HttpServer.HttpServer\n> =>\n Effect.gen(function* () {\n const server = yield* HttpServer.HttpServer;\n const address = server.address;\n if (!Predicate.isTagged(address, \"TcpAddress\")) {\n return yield* new OpenApiTestServerAddressError({ address });\n }\n\n const client = yield* HttpClient.HttpClient;\n const baseUrl = `http://127.0.0.1:${address.port}`;\n const specJson = yield* openApiSpecJsonWithServer(options.spec, baseUrl);\n\n return {\n baseUrl,\n specJson,\n httpClientLayer: Layer.succeed(HttpClient.HttpClient, client),\n };\n });\n\nexport class OpenApiTestServer extends Context.Service<OpenApiTestServer, OpenApiTestServerShape>()(\n \"@executor-js/plugin-openapi/testing/OpenApiTestServer\",\n) {\n static readonly layer = (options: OpenApiTestServerOptions) =>\n Layer.effect(OpenApiTestServer, makeOpenApiTestServer(options));\n}\n\nexport const TestLayers = {\n server: OpenApiTestServer.layer,\n};\n"],"mappings":";AAAA,SAAS,SAAS,MAAM,QAAQ,OAAO,WAAW,cAAc;AAChE,SAAS,YAAY,kBAAkB;AAEhC,IAAM,gCAAN,cAA4C,KAAK;AAAA,EACtD;AACF,EAEG;AAAC;AAEG,IAAM,6BAAN,cAAyC,KAAK,YAAY,4BAA4B,EAE1F;AAAC;AAYJ,IAAM,iBAAiB,OAAO,oBAAoB,OAAO,eAAe,OAAO,OAAO,CAAC;AAEvF,IAAM,eAAe,CAAC,UACpB,OAAO,UAAU,YAAY,UAAU,QAAQ,CAAC,MAAM,QAAQ,KAAK;AAE9D,IAAM,4BAA4B,CACvC,MACA,YAEA,OAAO,IAAI,aAAa;AACtB,QAAM,SACJ,OAAO,SAAS,WACZ,OAAO,eAAe,IAAI,EAAE;AAAA,IAC1B,OAAO,SAAS,CAAC,UAAU,IAAI,2BAA2B,EAAE,MAAM,CAAC,CAAC;AAAA,EACtE,IACA;AACN,QAAM,aAAa,aAAa,MAAM,IAClC;AAAA,IACE,GAAG;AAAA,IACH,SAAS,CAAC,EAAE,KAAK,QAAQ,CAAC;AAAA,EAC5B,IACA;AACJ,SAAO,OAAO,OAAO,IAAI;AAAA,IACvB,KAAK,MAAM,KAAK,UAAU,UAAU;AAAA,IACpC,OAAO,CAAC,UAAU,IAAI,2BAA2B,EAAE,MAAM,CAAC;AAAA,EAC5D,CAAC;AACH,CAAC;AAEI,IAAM,wBAAwB,CACnC,YAMA,OAAO,IAAI,aAAa;AACtB,QAAM,SAAS,OAAO,WAAW;AACjC,QAAM,UAAU,OAAO;AACvB,MAAI,CAAC,UAAU,SAAS,SAAS,YAAY,GAAG;AAC9C,WAAO,OAAO,IAAI,8BAA8B,EAAE,QAAQ,CAAC;AAAA,EAC7D;AAEA,QAAM,SAAS,OAAO,WAAW;AACjC,QAAM,UAAU,oBAAoB,QAAQ,IAAI;AAChD,QAAM,WAAW,OAAO,0BAA0B,QAAQ,MAAM,OAAO;AAEvE,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,iBAAiB,MAAM,QAAQ,WAAW,YAAY,MAAM;AAAA,EAC9D;AACF,CAAC;AAEI,IAAM,oBAAN,MAAM,2BAA0B,QAAQ,QAAmD;AAAA,EAChG;AACF,EAAE;AAAA,EACA,OAAgB,QAAQ,CAAC,YACvB,MAAM,OAAO,oBAAmB,sBAAsB,OAAO,CAAC;AAClE;AAEO,IAAM,aAAa;AAAA,EACxB,QAAQ,kBAAkB;AAC5B;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@executor-js/plugin-openapi",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.4.20",
|
|
4
4
|
"homepage": "https://github.com/RhysSullivan/executor/tree/main/packages/plugins/openapi",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/RhysSullivan/executor/issues"
|
|
@@ -27,6 +27,18 @@
|
|
|
27
27
|
"types": "./dist/sdk/index.d.ts",
|
|
28
28
|
"default": "./dist/core.js"
|
|
29
29
|
}
|
|
30
|
+
},
|
|
31
|
+
"./client": {
|
|
32
|
+
"import": {
|
|
33
|
+
"types": "./dist/react/plugin-client.d.ts",
|
|
34
|
+
"default": "./dist/client.js"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"./testing": {
|
|
38
|
+
"import": {
|
|
39
|
+
"types": "./dist/testing/index.d.ts",
|
|
40
|
+
"default": "./dist/testing.js"
|
|
41
|
+
}
|
|
30
42
|
}
|
|
31
43
|
},
|
|
32
44
|
"publishConfig": {
|
|
@@ -41,8 +53,8 @@
|
|
|
41
53
|
},
|
|
42
54
|
"dependencies": {
|
|
43
55
|
"@effect/platform-node": "4.0.0-beta.59",
|
|
44
|
-
"@executor-js/config": "
|
|
45
|
-
"@executor-js/sdk": "
|
|
56
|
+
"@executor-js/config": "1.4.20",
|
|
57
|
+
"@executor-js/sdk": "1.4.20",
|
|
46
58
|
"effect": "4.0.0-beta.59",
|
|
47
59
|
"openapi-types": "^12.1.3",
|
|
48
60
|
"yaml": "^2.7.1"
|
|
@@ -50,7 +62,7 @@
|
|
|
50
62
|
"devDependencies": {
|
|
51
63
|
"@effect/atom-react": "4.0.0-beta.59",
|
|
52
64
|
"@effect/vitest": "4.0.0-beta.59",
|
|
53
|
-
"@executor-js/storage-core": "
|
|
65
|
+
"@executor-js/storage-core": "1.4.20",
|
|
54
66
|
"@types/node": "^24.3.1",
|
|
55
67
|
"@types/react": "^19.1.0",
|
|
56
68
|
"bun-types": "^1.2.22",
|