@executor-js/plugin-openapi 1.4.29 → 1.4.30

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 (45) hide show
  1. package/dist/{AddOpenApiSource-FLMNI742.js → AddOpenApiSource-KSOMPQ2R.js} +4 -4
  2. package/dist/{EditOpenApiSource-I4NIGIIJ.js → EditOpenApiSource-AOA7APR2.js} +301 -192
  3. package/dist/EditOpenApiSource-AOA7APR2.js.map +1 -0
  4. package/dist/{OpenApiSourceSummary-CM46DB4L.js → OpenApiSourceSummary-Y3S6ZBOZ.js} +4 -4
  5. package/dist/OpenApiSourceSummary-Y3S6ZBOZ.js.map +1 -0
  6. package/dist/api/group.d.ts +124 -118
  7. package/dist/api/index.d.ts +148 -369
  8. package/dist/chunk-BB5IAKRG.js +136 -0
  9. package/dist/chunk-BB5IAKRG.js.map +1 -0
  10. package/dist/{chunk-E7PZ2QGD.js → chunk-EOXXE5DG.js} +17 -455
  11. package/dist/chunk-EOXXE5DG.js.map +1 -0
  12. package/dist/{chunk-OZ67JNID.js → chunk-NIKLYJ3X.js} +830 -319
  13. package/dist/chunk-NIKLYJ3X.js.map +1 -0
  14. package/dist/{chunk-TGDT6QCH.js → chunk-YJMXYKYX.js} +178 -117
  15. package/dist/chunk-YJMXYKYX.js.map +1 -0
  16. package/dist/{chunk-GFQUEZUW.js → chunk-ZZBTLFTA.js} +78 -93
  17. package/dist/chunk-ZZBTLFTA.js.map +1 -0
  18. package/dist/client.js +7 -137
  19. package/dist/client.js.map +1 -1
  20. package/dist/core.js +5 -10
  21. package/dist/index.js +3 -2
  22. package/dist/react/atoms.d.ts +83 -223
  23. package/dist/react/client.d.ts +123 -117
  24. package/dist/sdk/credential-status.d.ts +3 -3
  25. package/dist/sdk/extract.d.ts +19 -19
  26. package/dist/sdk/index.d.ts +2 -2
  27. package/dist/sdk/invoke.d.ts +7 -7
  28. package/dist/sdk/parse.d.ts +2 -3
  29. package/dist/sdk/plugin.d.ts +181 -275
  30. package/dist/sdk/preview.d.ts +12 -12
  31. package/dist/sdk/source-contracts.d.ts +55 -0
  32. package/dist/sdk/store.d.ts +6 -269
  33. package/dist/sdk/types.d.ts +16 -65
  34. package/dist/testing/index.d.ts +149 -11
  35. package/dist/testing.js +419 -33
  36. package/dist/testing.js.map +1 -1
  37. package/dist/testing.test.d.ts +1 -0
  38. package/package.json +3 -4
  39. package/dist/EditOpenApiSource-I4NIGIIJ.js.map +0 -1
  40. package/dist/OpenApiSourceSummary-CM46DB4L.js.map +0 -1
  41. package/dist/chunk-E7PZ2QGD.js.map +0 -1
  42. package/dist/chunk-GFQUEZUW.js.map +0 -1
  43. package/dist/chunk-OZ67JNID.js.map +0 -1
  44. package/dist/chunk-TGDT6QCH.js.map +0 -1
  45. /package/dist/{AddOpenApiSource-FLMNI742.js.map → AddOpenApiSource-KSOMPQ2R.js.map} +0 -0
@@ -77,54 +77,40 @@ export declare const OpenApiClient: import("effect/unstable/reactivity/AtomHttpA
77
77
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").InternalError | typeof import("../sdk").OpenApiParseError | typeof import("../sdk").OpenApiExtractionError | typeof import("../sdk").OpenApiOAuthError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"addSpec", "POST", "/scopes/:scopeId/openapi/specs", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
78
78
  scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
79
79
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
80
- readonly targetScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
81
- readonly credentialTargetScope: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
82
- readonly spec: import("effect/Schema").String;
80
+ readonly spec: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
81
+ readonly kind: import("effect/Schema").Literal<"url">;
82
+ readonly url: import("effect/Schema").String;
83
+ }>, import("effect/Schema").Struct<{
84
+ readonly kind: import("effect/Schema").Literal<"blob">;
85
+ readonly value: import("effect/Schema").String;
86
+ }>]>;
83
87
  readonly specFetchCredentials: import("effect/Schema").optional<import("effect/Schema").Struct<{
84
88
  readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
85
- readonly secretId: import("effect/Schema").String;
89
+ readonly kind: import("effect/Schema").Literal<"secret">;
86
90
  readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
87
91
  }>]>>>;
88
92
  readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
89
- readonly secretId: import("effect/Schema").String;
93
+ readonly kind: import("effect/Schema").Literal<"secret">;
90
94
  readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
91
95
  }>]>>>;
92
96
  }>>;
93
- readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
94
- readonly baseUrl: import("effect/Schema").optional<import("effect/Schema").String>;
95
- readonly namespace: import("effect/Schema").optional<import("effect/Schema").String>;
96
- readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
97
- readonly secretId: import("effect/Schema").String;
98
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
99
- readonly targetScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
100
- readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
101
- }>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
102
- readonly secretId: import("effect/Schema").String;
103
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
104
- }>]>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
105
- readonly kind: import("effect/Schema").Literal<"binding">;
106
- readonly slot: import("effect/Schema").String;
107
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
108
- }>]>]>>>;
109
- readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
110
- readonly secretId: import("effect/Schema").String;
111
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
112
- readonly targetScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
113
- readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
114
- }>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
115
- readonly secretId: import("effect/Schema").String;
97
+ readonly name: import("effect/Schema").String;
98
+ readonly baseUrl: import("effect/Schema").String;
99
+ readonly namespace: import("effect/Schema").String;
100
+ readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
101
+ readonly kind: import("effect/Schema").Literal<"secret">;
116
102
  readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
117
- }>]>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
118
- readonly kind: import("effect/Schema").Literal<"binding">;
119
- readonly slot: import("effect/Schema").String;
103
+ }>]>>>;
104
+ readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
105
+ readonly kind: import("effect/Schema").Literal<"secret">;
120
106
  readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
121
- }>]>]>>>;
107
+ }>]>>>;
122
108
  readonly oauth2: import("effect/Schema").optional<import("effect/Schema").Struct<{
123
109
  readonly kind: import("effect/Schema").Literal<"oauth2">;
124
110
  readonly securitySchemeName: import("effect/Schema").String;
125
111
  readonly flow: import("effect/Schema").Literals<readonly ["authorizationCode", "clientCredentials"]>;
126
112
  readonly tokenUrl: import("effect/Schema").String;
127
- readonly authorizationUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
113
+ readonly authorizationUrl: import("effect/Schema").withDecodingDefault<import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>>;
128
114
  readonly issuerUrl: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
129
115
  readonly clientIdSlot: import("effect/Schema").String;
130
116
  readonly clientSecretSlot: import("effect/Schema").NullOr<import("effect/Schema").String>;
@@ -142,7 +128,7 @@ export declare const OpenApiClient: import("effect/unstable/reactivity/AtomHttpA
142
128
  readonly scope: import("effect/Schema").String;
143
129
  readonly name: import("effect/Schema").String;
144
130
  readonly config: import("effect/Schema").Struct<{
145
- readonly spec: import("effect/Schema").String;
131
+ readonly spec: import("effect/Schema").optional<import("effect/Schema").String>;
146
132
  readonly sourceUrl: import("effect/Schema").optional<import("effect/Schema").String>;
147
133
  readonly baseUrl: import("effect/Schema").optional<import("effect/Schema").String>;
148
134
  readonly namespace: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -173,7 +159,7 @@ export declare const OpenApiClient: import("effect/unstable/reactivity/AtomHttpA
173
159
  readonly securitySchemeName: import("effect/Schema").String;
174
160
  readonly flow: import("effect/Schema").Literals<readonly ["authorizationCode", "clientCredentials"]>;
175
161
  readonly tokenUrl: import("effect/Schema").String;
176
- readonly authorizationUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
162
+ readonly authorizationUrl: import("effect/Schema").withDecodingDefault<import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>>;
177
163
  readonly issuerUrl: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
178
164
  readonly clientIdSlot: import("effect/Schema").String;
179
165
  readonly clientSecretSlot: import("effect/Schema").NullOr<import("effect/Schema").String>;
@@ -181,119 +167,139 @@ export declare const OpenApiClient: import("effect/unstable/reactivity/AtomHttpA
181
167
  readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
182
168
  }>>;
183
169
  }>;
184
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").InternalError | typeof import("../sdk").OpenApiParseError | typeof import("../sdk").OpenApiExtractionError | typeof import("../sdk").OpenApiOAuthError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateSource", "PATCH", "/scopes/:scopeId/openapi/sources/:namespace", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
170
+ }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").InternalError | typeof import("../sdk").OpenApiParseError | typeof import("../sdk").OpenApiExtractionError | typeof import("../sdk").OpenApiOAuthError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"configure", "POST", "/scopes/:scopeId/openapi/configure", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
185
171
  scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
186
- namespace: import("effect/Schema").String;
187
172
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
188
- readonly sourceScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
189
- readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
190
- readonly baseUrl: import("effect/Schema").optional<import("effect/Schema").String>;
191
- readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
192
- readonly secretId: import("effect/Schema").String;
173
+ readonly source: import("effect/Schema").Struct<{
174
+ readonly id: import("effect/Schema").String;
175
+ readonly scope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
176
+ }>;
177
+ readonly scope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
178
+ readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
179
+ readonly kind: import("effect/Schema").Literal<"text">;
180
+ readonly text: import("effect/Schema").String;
193
181
  readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
194
- readonly targetScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
195
- readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
196
- }>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
182
+ }>, import("effect/Schema").Struct<{
183
+ readonly kind: import("effect/Schema").Literal<"secret">;
197
184
  readonly secretId: import("effect/Schema").String;
185
+ readonly secretScope: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
198
186
  readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
199
- }>]>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
200
- readonly kind: import("effect/Schema").Literal<"binding">;
201
- readonly slot: import("effect/Schema").String;
202
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
203
- }>]>]>>>;
204
- readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
205
- readonly secretId: import("effect/Schema").String;
187
+ }>, import("effect/Schema").Struct<{
188
+ readonly kind: import("effect/Schema").Literal<"connection">;
189
+ readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
190
+ }>]>>>;
191
+ readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
192
+ readonly kind: import("effect/Schema").Literal<"text">;
193
+ readonly text: import("effect/Schema").String;
206
194
  readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
207
- readonly targetScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
208
- readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
209
- }>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
195
+ }>, import("effect/Schema").Struct<{
196
+ readonly kind: import("effect/Schema").Literal<"secret">;
210
197
  readonly secretId: import("effect/Schema").String;
198
+ readonly secretScope: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
211
199
  readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
212
- }>]>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
213
- readonly kind: import("effect/Schema").Literal<"binding">;
214
- readonly slot: import("effect/Schema").String;
215
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
216
- }>]>]>>>;
217
- readonly credentialTargetScope: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
200
+ }>, import("effect/Schema").Struct<{
201
+ readonly kind: import("effect/Schema").Literal<"connection">;
202
+ readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
203
+ }>]>>>;
204
+ readonly specFetchCredentials: import("effect/Schema").optional<import("effect/Schema").Struct<{
205
+ readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
206
+ readonly kind: import("effect/Schema").Literal<"text">;
207
+ readonly text: import("effect/Schema").String;
208
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
209
+ }>, import("effect/Schema").Struct<{
210
+ readonly kind: import("effect/Schema").Literal<"secret">;
211
+ readonly secretId: import("effect/Schema").String;
212
+ readonly secretScope: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
213
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
214
+ }>, import("effect/Schema").Struct<{
215
+ readonly kind: import("effect/Schema").Literal<"connection">;
216
+ readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
217
+ }>]>>>;
218
+ readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
219
+ readonly kind: import("effect/Schema").Literal<"text">;
220
+ readonly text: import("effect/Schema").String;
221
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
222
+ }>, import("effect/Schema").Struct<{
223
+ readonly kind: import("effect/Schema").Literal<"secret">;
224
+ readonly secretId: import("effect/Schema").String;
225
+ readonly secretScope: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
226
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
227
+ }>, import("effect/Schema").Struct<{
228
+ readonly kind: import("effect/Schema").Literal<"connection">;
229
+ readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
230
+ }>]>>>;
231
+ }>>;
218
232
  readonly oauth2: import("effect/Schema").optional<import("effect/Schema").Struct<{
233
+ readonly clientId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
234
+ readonly kind: import("effect/Schema").Literal<"text">;
235
+ readonly text: import("effect/Schema").String;
236
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
237
+ }>, import("effect/Schema").Struct<{
238
+ readonly kind: import("effect/Schema").Literal<"secret">;
239
+ readonly secretId: import("effect/Schema").String;
240
+ readonly secretScope: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
241
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
242
+ }>, import("effect/Schema").Struct<{
243
+ readonly kind: import("effect/Schema").Literal<"connection">;
244
+ readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
245
+ }>]>>;
246
+ readonly clientSecret: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
247
+ readonly kind: import("effect/Schema").Literal<"text">;
248
+ readonly text: import("effect/Schema").String;
249
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
250
+ }>, import("effect/Schema").Struct<{
251
+ readonly kind: import("effect/Schema").Literal<"secret">;
252
+ readonly secretId: import("effect/Schema").String;
253
+ readonly secretScope: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
254
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
255
+ }>, import("effect/Schema").Struct<{
256
+ readonly kind: import("effect/Schema").Literal<"connection">;
257
+ readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
258
+ }>]>>;
259
+ readonly connection: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
260
+ readonly kind: import("effect/Schema").Literal<"text">;
261
+ readonly text: import("effect/Schema").String;
262
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
263
+ }>, import("effect/Schema").Struct<{
264
+ readonly kind: import("effect/Schema").Literal<"secret">;
265
+ readonly secretId: import("effect/Schema").String;
266
+ readonly secretScope: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
267
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
268
+ }>, import("effect/Schema").Struct<{
269
+ readonly kind: import("effect/Schema").Literal<"connection">;
270
+ readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
271
+ }>]>>;
272
+ }>>;
273
+ readonly oauth2Source: import("effect/Schema").optional<import("effect/Schema").Struct<{
219
274
  readonly kind: import("effect/Schema").Literal<"oauth2">;
220
275
  readonly securitySchemeName: import("effect/Schema").String;
221
276
  readonly flow: import("effect/Schema").Literals<readonly ["authorizationCode", "clientCredentials"]>;
222
277
  readonly tokenUrl: import("effect/Schema").String;
223
- readonly authorizationUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
278
+ readonly authorizationUrl: import("effect/Schema").withDecodingDefault<import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>>;
224
279
  readonly issuerUrl: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
225
280
  readonly clientIdSlot: import("effect/Schema").String;
226
281
  readonly clientSecretSlot: import("effect/Schema").NullOr<import("effect/Schema").String>;
227
282
  readonly connectionSlot: import("effect/Schema").String;
228
283
  readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
229
284
  }>>;
230
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
231
- readonly updated: import("effect/Schema").Boolean;
232
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").InternalError | typeof import("../sdk").OpenApiParseError | typeof import("../sdk").OpenApiExtractionError | typeof import("../sdk").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<import("effect/Schema").Struct<{
233
- scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
234
- namespace: import("effect/Schema").String;
235
- sourceScopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
236
- }>>, 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<import("effect/Schema").$Array<import("effect/Schema").Struct<{
285
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
286
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "CredentialBindingId">;
287
+ readonly scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
288
+ readonly pluginId: import("effect/Schema").String;
237
289
  readonly sourceId: import("effect/Schema").String;
238
290
  readonly sourceScopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
239
- readonly scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
240
- readonly slot: import("effect/Schema").String;
291
+ readonly slotKey: import("effect/Schema").String;
241
292
  readonly value: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
242
- readonly kind: import("effect/Schema").Literal<"secret">;
243
- readonly secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
244
- readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
245
- }>, import("effect/Schema").Struct<{
246
- readonly kind: import("effect/Schema").Literal<"connection">;
247
- readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
248
- }>, import("effect/Schema").Struct<{
249
293
  readonly kind: import("effect/Schema").Literal<"text">;
250
294
  readonly text: import("effect/Schema").String;
251
- }>]>;
252
- readonly createdAt: import("effect/Schema").Date;
253
- readonly updatedAt: import("effect/Schema").Date;
254
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").InternalError | typeof import("../sdk").OpenApiParseError | typeof import("../sdk").OpenApiExtractionError | typeof import("../sdk").OpenApiOAuthError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setSourceBinding", "POST", "/scopes/:scopeId/openapi/source-bindings", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
255
- scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
256
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
257
- readonly sourceId: import("effect/Schema").String;
258
- readonly sourceScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
259
- readonly scope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
260
- readonly slot: import("effect/Schema").String;
261
- readonly value: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
262
- readonly kind: import("effect/Schema").Literal<"secret">;
263
- readonly secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
264
- readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
265
295
  }>, import("effect/Schema").Struct<{
266
- readonly kind: import("effect/Schema").Literal<"connection">;
267
- readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
268
- }>, import("effect/Schema").Struct<{
269
- readonly kind: import("effect/Schema").Literal<"text">;
270
- readonly text: import("effect/Schema").String;
271
- }>]>;
272
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
273
- readonly sourceId: import("effect/Schema").String;
274
- readonly sourceScopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
275
- readonly scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
276
- readonly slot: import("effect/Schema").String;
277
- readonly value: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
278
296
  readonly kind: import("effect/Schema").Literal<"secret">;
279
297
  readonly secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
280
298
  readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
281
299
  }>, import("effect/Schema").Struct<{
282
300
  readonly kind: import("effect/Schema").Literal<"connection">;
283
301
  readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
284
- }>, import("effect/Schema").Struct<{
285
- readonly kind: import("effect/Schema").Literal<"text">;
286
- readonly text: import("effect/Schema").String;
287
302
  }>]>;
288
303
  readonly createdAt: import("effect/Schema").Date;
289
304
  readonly updatedAt: import("effect/Schema").Date;
290
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").InternalError | typeof import("../sdk").OpenApiParseError | typeof import("../sdk").OpenApiExtractionError | typeof import("../sdk").OpenApiOAuthError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"removeSourceBinding", "POST", "/scopes/:scopeId/openapi/source-bindings/remove", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
291
- scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
292
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
293
- readonly sourceId: import("effect/Schema").String;
294
- readonly sourceScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
295
- readonly slot: import("effect/Schema").String;
296
- readonly scope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
297
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
298
- readonly removed: import("effect/Schema").Boolean;
299
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").InternalError | typeof import("../sdk").OpenApiParseError | typeof import("../sdk").OpenApiExtractionError | typeof import("../sdk").OpenApiOAuthError>, never, never>, false>>;
305
+ }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").InternalError | typeof import("../sdk").OpenApiParseError | typeof import("../sdk").OpenApiExtractionError | typeof import("../sdk").OpenApiOAuthError>, never, never>, false>>;
@@ -1,9 +1,9 @@
1
- import type { ConnectionId, ScopeId } from "@executor-js/sdk/core";
2
- import type { ConfiguredHeaderValue, OpenApiSourceBindingValue } from "./types";
1
+ import type { ConnectionId, CredentialBindingValue, ScopeId } from "@executor-js/sdk/shared";
2
+ import type { ConfiguredHeaderValue } from "./types";
3
3
  export type BindingRowForCredentialStatus = {
4
4
  readonly slot: string;
5
5
  readonly scopeId: ScopeId;
6
- readonly value: OpenApiSourceBindingValue;
6
+ readonly value: CredentialBindingValue;
7
7
  };
8
8
  export type SourceForCredentialStatus = {
9
9
  readonly config: {
@@ -3,33 +3,22 @@ import { OpenApiExtractionError } from "./errors";
3
3
  import type { ParsedDocument } from "./parse";
4
4
  /** Extract all operations from a bundled OpenAPI 3.x document */
5
5
  export declare const extract: (doc: ParsedDocument) => Effect.Effect<{
6
- readonly title: Option.Option<string>;
7
- readonly servers: readonly {
8
- readonly url: string;
9
- readonly description: Option.Option<string>;
10
- readonly variables: Option.Option<{
11
- readonly [x: string]: {
12
- readonly description: Option.Option<string>;
13
- readonly default: string;
14
- readonly enum: Option.Option<readonly string[]>;
15
- };
16
- }>;
17
- }[];
18
6
  readonly version: Option.Option<string>;
19
7
  readonly operations: readonly {
20
8
  readonly description: Option.Option<string>;
21
9
  readonly inputSchema: Option.Option<unknown>;
22
10
  readonly outputSchema: Option.Option<unknown>;
23
- readonly method: "delete" | "options" | "get" | "put" | "post" | "head" | "patch" | "trace";
24
- readonly tags: readonly string[];
25
11
  readonly summary: Option.Option<string>;
12
+ readonly method: "post" | "options" | "delete" | "get" | "put" | "head" | "patch" | "trace";
13
+ readonly deprecated: boolean;
14
+ readonly tags: readonly string[];
26
15
  readonly parameters: readonly {
27
- readonly required: boolean;
28
- readonly schema: Option.Option<unknown>;
29
16
  readonly name: string;
17
+ readonly required: boolean;
30
18
  readonly description: Option.Option<string>;
31
- readonly location: "path" | "query" | "header" | "cookie";
19
+ readonly schema: Option.Option<unknown>;
32
20
  readonly style: Option.Option<string>;
21
+ readonly location: "query" | "header" | "path" | "cookie";
33
22
  readonly explode: Option.Option<boolean>;
34
23
  readonly allowReserved: Option.Option<boolean>;
35
24
  }[];
@@ -44,14 +33,25 @@ export declare const extract: (doc: ParsedDocument) => Effect.Effect<{
44
33
  readonly encoding: Option.Option<{
45
34
  readonly [x: string]: {
46
35
  readonly style: Option.Option<string>;
36
+ readonly contentType: Option.Option<string>;
47
37
  readonly explode: Option.Option<boolean>;
48
38
  readonly allowReserved: Option.Option<boolean>;
49
- readonly contentType: Option.Option<string>;
50
39
  };
51
40
  }>;
52
41
  }[]>;
53
42
  }>;
54
- readonly deprecated: boolean;
55
43
  readonly pathTemplate: string;
56
44
  }[];
45
+ readonly title: Option.Option<string>;
46
+ readonly servers: readonly {
47
+ readonly url: string;
48
+ readonly description: Option.Option<string>;
49
+ readonly variables: Option.Option<{
50
+ readonly [x: string]: {
51
+ readonly default: string;
52
+ readonly description: Option.Option<string>;
53
+ readonly enum: Option.Option<readonly string[]>;
54
+ };
55
+ }>;
56
+ }[];
57
57
  }, OpenApiExtractionError, never>;
@@ -1,9 +1,9 @@
1
1
  export { parse, resolveSpecText, fetchSpecText } from "./parse";
2
2
  export { extract } from "./extract";
3
3
  export { invoke, invokeWithLayer, resolveHeaders, annotationsForOperation } from "./invoke";
4
- export { openApiPlugin, type OpenApiSpecConfig, type OpenApiPluginExtension, type OpenApiPluginOptions, type OpenApiUpdateSourceInput, } from "./plugin";
4
+ export { openApiPlugin, type OpenApiSpecConfig, type OpenApiConfigureCredentialInput, type OpenApiConfigureInput, type OpenApiPluginExtension, type OpenApiPluginOptions, type OpenApiSourceRef, } from "./plugin";
5
5
  export { openapiSchema, type OpenapiSchema, type OpenapiStore, type StoredOperation, type StoredSource, type SourceConfig, makeDefaultOpenapiStore, } from "./store";
6
6
  export { previewSpec, SecurityScheme, AuthStrategy, HeaderPreset, OAuth2Preset, OAuth2Flows, OAuth2AuthorizationCodeFlow, OAuth2ClientCredentialsFlow, PreviewOperation, SpecPreview, } from "./preview";
7
7
  export { DocResolver, resolveBaseUrl, substituteUrlVariables, preferredContent, } from "./openapi-utils";
8
8
  export { OpenApiParseError, OpenApiExtractionError, OpenApiInvocationError, OpenApiOAuthError, } from "./errors";
9
- export { EncodingObject, ExtractedOperation, ExtractionResult, InvocationResult, MediaBinding, OAuth2SourceConfig, OpenApiSourceBindingInput, OpenApiSourceBindingRef, OpenApiSourceBindingValue, OperationBinding, OperationParameter, OperationRequestBody, ServerInfo, ServerVariable, OperationId, HttpMethod, ParameterLocation, } from "./types";
9
+ export { EncodingObject, ExtractedOperation, ExtractionResult, InvocationResult, MediaBinding, OAuth2SourceConfig, OperationBinding, OperationParameter, OperationRequestBody, ServerInfo, ServerVariable, OperationId, HttpMethod, ParameterLocation, } from "./types";
@@ -7,14 +7,14 @@ export declare const resolveHeaders: (headers: Record<string, HeaderValue>, secr
7
7
  readonly get: (id: string) => Effect.Effect<string | null, SecretOwnedByConnectionError | StorageFailure>;
8
8
  }) => Effect.Effect<Record<string, string>, OpenApiInvocationError | StorageFailure>;
9
9
  export declare const invoke: (operation: {
10
- readonly method: "delete" | "options" | "get" | "put" | "post" | "head" | "patch" | "trace";
10
+ readonly method: "post" | "options" | "delete" | "get" | "put" | "head" | "patch" | "trace";
11
11
  readonly parameters: readonly {
12
- readonly required: boolean;
13
- readonly schema: Option.Option<unknown>;
14
12
  readonly name: string;
13
+ readonly required: boolean;
15
14
  readonly description: Option.Option<string>;
16
- readonly location: "path" | "query" | "header" | "cookie";
15
+ readonly schema: Option.Option<unknown>;
17
16
  readonly style: Option.Option<string>;
17
+ readonly location: "query" | "header" | "path" | "cookie";
18
18
  readonly explode: Option.Option<boolean>;
19
19
  readonly allowReserved: Option.Option<boolean>;
20
20
  }[];
@@ -28,25 +28,25 @@ export declare const invoke: (operation: {
28
28
  readonly encoding: Option.Option<{
29
29
  readonly [x: string]: {
30
30
  readonly style: Option.Option<string>;
31
+ readonly contentType: Option.Option<string>;
31
32
  readonly explode: Option.Option<boolean>;
32
33
  readonly allowReserved: Option.Option<boolean>;
33
- readonly contentType: Option.Option<string>;
34
34
  };
35
35
  }>;
36
36
  }[]>;
37
37
  }>;
38
38
  readonly pathTemplate: string;
39
39
  }, args: Record<string, unknown>, resolvedHeaders: Record<string, string>, sourceQueryParams?: Record<string, string> | undefined) => Effect.Effect<{
40
- readonly status: number;
41
40
  readonly error: unknown;
41
+ readonly status: number;
42
42
  readonly headers: {
43
43
  readonly [x: string]: string;
44
44
  };
45
45
  readonly data: unknown;
46
46
  }, OpenApiInvocationError, HttpClient.HttpClient>;
47
47
  export declare const invokeWithLayer: (operation: OperationBinding, args: Record<string, unknown>, baseUrl: string, resolvedHeaders: Record<string, string>, sourceQueryParams: Record<string, string>, httpClientLayer: Layer.Layer<HttpClient.HttpClient, never, never>) => Effect.Effect<{
48
- readonly status: number;
49
48
  readonly error: unknown;
49
+ readonly status: number;
50
50
  readonly headers: {
51
51
  readonly [x: string]: string;
52
52
  };
@@ -12,9 +12,8 @@ declare class OpenApiExtractionErrorFromParse extends OpenApiExtractionError {
12
12
  /**
13
13
  * Fetch an OpenAPI spec URL and return its body text. Uses the Effect
14
14
  * HttpClient so the caller chooses the transport via layer — in Cloudflare
15
- * Workers, `FetchHttpClient.layer` binds to the Workers-native `fetch` and
16
- * avoids json-schema-ref-parser's Node-polyfill http resolver, which hangs
17
- * in production. Bounded by a 60s timeout.
15
+ * Workers, `FetchHttpClient.layer` binds to the Workers-native `fetch`.
16
+ * Bounded by a 60s timeout.
18
17
  */
19
18
  export declare const fetchSpecText: (url: string, credentials?: SpecFetchCredentials | undefined) => Effect.Effect<string, OpenApiParseError, HttpClient.HttpClient>;
20
19
  /**