@executor-js/plugin-openapi 0.0.2 → 0.1.0

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/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  openApiPlugin
3
- } from "./chunk-ZZ7TQ4JC.js";
3
+ } from "./chunk-RBE3CVB4.js";
4
4
  export {
5
5
  openApiPlugin
6
6
  };
@@ -1,337 +1,4 @@
1
- import * as AtomHttpApi from "effect/unstable/reactivity/AtomHttpApi";
2
- export declare const OpenApiClient: AtomHttpApi.AtomHttpApiClient<"OpenApiClient", "OpenApiClient", import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"tools", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/scopes/:scopeId/tools", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
3
- scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
4
- }>>, 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<{
5
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ToolId">;
6
- readonly pluginId: import("effect/Schema").String;
7
- readonly sourceId: import("effect/Schema").String;
8
- readonly name: import("effect/Schema").String;
9
- readonly description: import("effect/Schema").optional<import("effect/Schema").String>;
10
- readonly mayElicit: import("effect/Schema").optional<import("effect/Schema").Boolean>;
11
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"schema", "GET", "/scopes/:scopeId/tools/:toolId/schema", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
12
- scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
13
- toolId: import("effect/Schema").brand<import("effect/Schema").String, "ToolId">;
14
- }>>, 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").Struct<{
15
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ToolId">;
16
- readonly inputTypeScript: import("effect/Schema").optional<import("effect/Schema").String>;
17
- readonly outputTypeScript: import("effect/Schema").optional<import("effect/Schema").String>;
18
- readonly typeScriptDefinitions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
19
- readonly inputSchema: import("effect/Schema").optional<import("effect/Schema").Unknown>;
20
- readonly outputSchema: import("effect/Schema").optional<import("effect/Schema").Unknown>;
21
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").decodeTo<import("effect/Schema").declareConstructor<import("@executor-js/sdk").ToolNotFoundError, {
22
- readonly _tag: "ToolNotFoundError";
23
- readonly toolId: string;
24
- }, readonly [import("effect/Schema").TaggedStruct<"ToolNotFoundError", {
25
- readonly toolId: import("effect/Schema").brand<import("effect/Schema").String, "ToolId">;
26
- }>], {
27
- readonly _tag: "ToolNotFoundError";
28
- readonly toolId: string & import("effect/Brand").Brand<"ToolId">;
29
- }>, import("effect/Schema").TaggedStruct<"ToolNotFoundError", {
30
- readonly toolId: import("effect/Schema").brand<import("effect/Schema").String, "ToolId">;
31
- }>, never, never> | typeof import("@executor-js/api").InternalError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"sources", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/scopes/:scopeId/sources", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
32
- scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
33
- }>>, 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<{
34
- readonly id: import("effect/Schema").String;
35
- readonly scopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
36
- readonly name: import("effect/Schema").String;
37
- readonly kind: import("effect/Schema").String;
38
- readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
39
- readonly runtime: import("effect/Schema").optional<import("effect/Schema").Boolean>;
40
- readonly canRemove: import("effect/Schema").optional<import("effect/Schema").Boolean>;
41
- readonly canRefresh: import("effect/Schema").optional<import("effect/Schema").Boolean>;
42
- readonly canEdit: import("effect/Schema").optional<import("effect/Schema").Boolean>;
43
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"remove", "DELETE", "/scopes/:scopeId/sources/:sourceId", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
44
- scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
45
- sourceId: import("effect/Schema").String;
46
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
47
- readonly removed: import("effect/Schema").Boolean;
48
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").decodeTo<import("effect/Schema").declareConstructor<import("@executor-js/sdk").SourceRemovalNotAllowedError, {
49
- readonly _tag: "SourceRemovalNotAllowedError";
50
- readonly sourceId: string;
51
- }, readonly [import("effect/Schema").TaggedStruct<"SourceRemovalNotAllowedError", {
52
- readonly sourceId: import("effect/Schema").String;
53
- }>], {
54
- readonly _tag: "SourceRemovalNotAllowedError";
55
- readonly sourceId: string;
56
- }>, import("effect/Schema").TaggedStruct<"SourceRemovalNotAllowedError", {
57
- readonly sourceId: import("effect/Schema").String;
58
- }>, never, never> | typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"refresh", "POST", "/scopes/:scopeId/sources/:sourceId/refresh", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
59
- scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
60
- sourceId: import("effect/Schema").String;
61
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
62
- readonly refreshed: import("effect/Schema").Boolean;
63
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"tools", "GET", "/scopes/:scopeId/sources/:sourceId/tools", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
64
- scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
65
- sourceId: import("effect/Schema").String;
66
- }>>, 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<{
67
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ToolId">;
68
- readonly pluginId: import("effect/Schema").String;
69
- readonly sourceId: import("effect/Schema").String;
70
- readonly name: import("effect/Schema").String;
71
- readonly description: import("effect/Schema").optional<import("effect/Schema").String>;
72
- readonly mayElicit: import("effect/Schema").optional<import("effect/Schema").Boolean>;
73
- readonly requiresApproval: import("effect/Schema").optional<import("effect/Schema").Boolean>;
74
- readonly approvalDescription: import("effect/Schema").optional<import("effect/Schema").String>;
75
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"detect", "POST", "/scopes/:scopeId/sources/detect", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
76
- scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
77
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
78
- readonly url: import("effect/Schema").String;
79
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
80
- readonly kind: import("effect/Schema").String;
81
- readonly confidence: import("effect/Schema").Literals<readonly ["high", "medium", "low"]>;
82
- readonly endpoint: import("effect/Schema").String;
83
- readonly name: import("effect/Schema").String;
84
- readonly namespace: import("effect/Schema").String;
85
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"secrets", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/scopes/:scopeId/secrets", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
86
- scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
87
- }>>, 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<{
88
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
89
- readonly scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
90
- readonly name: import("effect/Schema").String;
91
- readonly provider: import("effect/Schema").String;
92
- readonly createdAt: import("effect/Schema").Number;
93
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"status", "GET", "/scopes/:scopeId/secrets/:secretId/status", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
94
- scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
95
- secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
96
- }>>, 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").Struct<{
97
- readonly secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
98
- readonly status: import("effect/Schema").Literals<readonly ["resolved", "missing"]>;
99
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"set", "POST", "/scopes/:scopeId/secrets", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
100
- scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
101
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
102
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
103
- readonly name: import("effect/Schema").String;
104
- readonly value: import("effect/Schema").String;
105
- readonly provider: import("effect/Schema").optional<import("effect/Schema").String>;
106
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
107
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
108
- readonly scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
109
- readonly name: import("effect/Schema").String;
110
- readonly provider: import("effect/Schema").String;
111
- readonly createdAt: import("effect/Schema").Number;
112
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").decodeTo<import("effect/Schema").declareConstructor<import("@executor-js/sdk").SecretResolutionError, {
113
- readonly message: string;
114
- readonly _tag: "SecretResolutionError";
115
- readonly secretId: string;
116
- }, readonly [import("effect/Schema").TaggedStruct<"SecretResolutionError", {
117
- readonly secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
118
- readonly message: import("effect/Schema").String;
119
- }>], {
120
- readonly message: string;
121
- readonly _tag: "SecretResolutionError";
122
- readonly secretId: string & import("effect/Brand").Brand<"SecretId">;
123
- }>, import("effect/Schema").TaggedStruct<"SecretResolutionError", {
124
- readonly secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
125
- readonly message: import("effect/Schema").String;
126
- }>, never, never> | typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"remove", "DELETE", "/scopes/:scopeId/secrets/:secretId", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
127
- scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
128
- secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
129
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
130
- readonly removed: import("effect/Schema").Boolean;
131
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").decodeTo<import("effect/Schema").declareConstructor<import("@executor-js/sdk").SecretNotFoundError, {
132
- readonly _tag: "SecretNotFoundError";
133
- readonly secretId: string;
134
- }, readonly [import("effect/Schema").TaggedStruct<"SecretNotFoundError", {
135
- readonly secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
136
- }>], {
137
- readonly _tag: "SecretNotFoundError";
138
- readonly secretId: string & import("effect/Brand").Brand<"SecretId">;
139
- }>, import("effect/Schema").TaggedStruct<"SecretNotFoundError", {
140
- readonly secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
141
- }>, never, never> | import("effect/Schema").decodeTo<import("effect/Schema").declareConstructor<import("@executor-js/sdk").SecretOwnedByConnectionError, {
142
- readonly _tag: "SecretOwnedByConnectionError";
143
- readonly secretId: string;
144
- readonly connectionId: string;
145
- }, readonly [import("effect/Schema").TaggedStruct<"SecretOwnedByConnectionError", {
146
- readonly secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
147
- readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
148
- }>], {
149
- readonly _tag: "SecretOwnedByConnectionError";
150
- readonly secretId: string & import("effect/Brand").Brand<"SecretId">;
151
- readonly connectionId: string & import("effect/Brand").Brand<"ConnectionId">;
152
- }>, import("effect/Schema").TaggedStruct<"SecretOwnedByConnectionError", {
153
- readonly secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
154
- readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
155
- }>, never, never> | typeof import("@executor-js/api").InternalError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"connections", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/scopes/:scopeId/connections", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
156
- scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
157
- }>>, 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<{
158
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
159
- readonly scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
160
- readonly provider: import("effect/Schema").String;
161
- readonly identityLabel: import("effect/Schema").NullOr<import("effect/Schema").String>;
162
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Number>;
163
- readonly oauthScope: import("effect/Schema").NullOr<import("effect/Schema").String>;
164
- readonly createdAt: import("effect/Schema").Number;
165
- readonly updatedAt: import("effect/Schema").Number;
166
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"remove", "DELETE", "/scopes/:scopeId/connections/:connectionId", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
167
- scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
168
- connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
169
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
170
- readonly removed: import("effect/Schema").Boolean;
171
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"executions", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"execute", "POST", "/executions", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
172
- readonly code: import("effect/Schema").String;
173
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
174
- readonly status: import("effect/Schema").Literal<"completed">;
175
- readonly text: import("effect/Schema").String;
176
- readonly structured: import("effect/Schema").Unknown;
177
- readonly isError: import("effect/Schema").Boolean;
178
- }>, import("effect/Schema").Struct<{
179
- readonly status: import("effect/Schema").Literal<"paused">;
180
- readonly text: import("effect/Schema").String;
181
- readonly structured: import("effect/Schema").Unknown;
182
- }>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"resume", "POST", "/executions/:executionId/resume", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
183
- executionId: import("effect/Schema").String;
184
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
185
- readonly action: import("effect/Schema").Literals<readonly ["accept", "decline", "cancel"]>;
186
- readonly content: import("effect/Schema").optional<import("effect/Schema").Unknown>;
187
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
188
- readonly text: import("effect/Schema").String;
189
- readonly structured: import("effect/Schema").Unknown;
190
- readonly isError: import("effect/Schema").Boolean;
191
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError | import("effect/Schema").Struct<{
192
- readonly _tag: import("effect/Schema").tag<"ExecutionNotFoundError">;
193
- readonly executionId: import("effect/Schema").String;
194
- }>>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"scope", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"info", "GET", "/scope", 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").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
195
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
196
- readonly name: import("effect/Schema").String;
197
- readonly dir: import("effect/Schema").String;
198
- readonly stack: import("effect/Schema").$Array<import("effect/Schema").Struct<{
199
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
200
- readonly name: import("effect/Schema").String;
201
- readonly dir: import("effect/Schema").String;
202
- }>>;
203
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"oauth", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"probe", "POST", "/scopes/:scopeId/oauth/probe", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
204
- scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
205
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
206
- readonly endpoint: import("effect/Schema").String;
207
- 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<{
208
- readonly secretId: import("effect/Schema").String;
209
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
210
- }>]>>>;
211
- 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<{
212
- readonly secretId: import("effect/Schema").String;
213
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
214
- }>]>>>;
215
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
216
- readonly resourceMetadata: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
217
- readonly resourceMetadataUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
218
- readonly authorizationServerMetadata: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
219
- readonly authorizationServerMetadataUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
220
- readonly authorizationServerUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
221
- readonly supportsDynamicRegistration: import("effect/Schema").Boolean;
222
- readonly isBearerChallengeEndpoint: import("effect/Schema").Boolean;
223
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").OAuthProbeError | typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"start", "POST", "/scopes/:scopeId/oauth/start", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
224
- scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
225
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
226
- readonly endpoint: import("effect/Schema").String;
227
- 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<{
228
- readonly secretId: import("effect/Schema").String;
229
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
230
- }>]>>>;
231
- 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<{
232
- readonly secretId: import("effect/Schema").String;
233
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
234
- }>]>>>;
235
- readonly redirectUrl: import("effect/Schema").String;
236
- readonly connectionId: import("effect/Schema").String;
237
- readonly tokenScope: import("effect/Schema").optional<import("effect/Schema").String>;
238
- readonly strategy: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
239
- readonly kind: import("effect/Schema").Literal<"dynamic-dcr">;
240
- readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
241
- }>, import("effect/Schema").Struct<{
242
- readonly kind: import("effect/Schema").Literal<"authorization-code">;
243
- readonly authorizationEndpoint: import("effect/Schema").String;
244
- readonly tokenEndpoint: import("effect/Schema").String;
245
- readonly issuerUrl: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
246
- readonly clientIdSecretId: import("effect/Schema").String;
247
- readonly clientSecretSecretId: import("effect/Schema").NullOr<import("effect/Schema").String>;
248
- readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
249
- readonly scopeSeparator: import("effect/Schema").optional<import("effect/Schema").String>;
250
- readonly extraAuthorizationParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
251
- readonly clientAuth: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["body", "basic"]>>;
252
- }>, import("effect/Schema").Struct<{
253
- readonly kind: import("effect/Schema").Literal<"client-credentials">;
254
- readonly tokenEndpoint: import("effect/Schema").String;
255
- readonly clientIdSecretId: import("effect/Schema").String;
256
- readonly clientSecretSecretId: import("effect/Schema").String;
257
- readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
258
- readonly scopeSeparator: import("effect/Schema").optional<import("effect/Schema").String>;
259
- readonly clientAuth: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["body", "basic"]>>;
260
- }>]>;
261
- readonly pluginId: import("effect/Schema").String;
262
- readonly identityLabel: import("effect/Schema").optional<import("effect/Schema").String>;
263
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
264
- readonly sessionId: import("effect/Schema").String;
265
- readonly authorizationUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
266
- readonly completedConnection: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
267
- readonly connectionId: import("effect/Schema").String;
268
- }>>;
269
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").OAuthStartError | typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"complete", "POST", "/scopes/:scopeId/oauth/complete", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
270
- scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
271
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
272
- readonly state: import("effect/Schema").String;
273
- readonly code: import("effect/Schema").optional<import("effect/Schema").String>;
274
- readonly error: import("effect/Schema").optional<import("effect/Schema").String>;
275
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
276
- readonly connectionId: import("effect/Schema").String;
277
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Number>;
278
- readonly scope: import("effect/Schema").NullOr<import("effect/Schema").String>;
279
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").OAuthCompleteError | typeof import("@executor-js/sdk").OAuthSessionNotFoundError | typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"cancel", "POST", "/scopes/:scopeId/oauth/cancel", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
280
- scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
281
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
282
- readonly sessionId: import("effect/Schema").String;
283
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
284
- readonly cancelled: import("effect/Schema").Boolean;
285
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").OAuthSessionNotFoundError | typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"callback", "GET", "/oauth/callback", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
286
- readonly state: import("effect/Schema").String;
287
- readonly code: import("effect/Schema").optional<import("effect/Schema").String>;
288
- readonly error: import("effect/Schema").optional<import("effect/Schema").String>;
289
- readonly error_description: import("effect/Schema").optional<import("effect/Schema").String>;
290
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").String>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").OAuthCompleteError | typeof import("@executor-js/sdk").OAuthSessionNotFoundError | typeof import("@executor-js/api").InternalError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"policies", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/scopes/:scopeId/policies", 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").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
293
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
294
- readonly scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
295
- readonly pattern: import("effect/Schema").String;
296
- readonly action: import("effect/Schema").Literals<readonly ["approve", "require_approval", "block"]>;
297
- readonly position: import("effect/Schema").String;
298
- readonly createdAt: import("effect/Schema").Number;
299
- readonly updatedAt: import("effect/Schema").Number;
300
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"create", "POST", "/scopes/:scopeId/policies", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
301
- scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
302
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
303
- readonly pattern: import("effect/Schema").String;
304
- readonly action: import("effect/Schema").Literals<readonly ["approve", "require_approval", "block"]>;
305
- readonly position: import("effect/Schema").optional<import("effect/Schema").String>;
306
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
307
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
308
- readonly scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
309
- readonly pattern: import("effect/Schema").String;
310
- readonly action: import("effect/Schema").Literals<readonly ["approve", "require_approval", "block"]>;
311
- readonly position: import("effect/Schema").String;
312
- readonly createdAt: import("effect/Schema").Number;
313
- readonly updatedAt: import("effect/Schema").Number;
314
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"update", "PATCH", "/scopes/:scopeId/policies/:policyId", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
315
- scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
316
- policyId: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
317
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
318
- readonly pattern: import("effect/Schema").optional<import("effect/Schema").String>;
319
- readonly action: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["approve", "require_approval", "block"]>>;
320
- readonly position: import("effect/Schema").optional<import("effect/Schema").String>;
321
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
322
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
323
- readonly scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
324
- readonly pattern: import("effect/Schema").String;
325
- readonly action: import("effect/Schema").Literals<readonly ["approve", "require_approval", "block"]>;
326
- readonly position: import("effect/Schema").String;
327
- readonly createdAt: import("effect/Schema").Number;
328
- readonly updatedAt: import("effect/Schema").Number;
329
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"remove", "DELETE", "/scopes/:scopeId/policies/:policyId", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
330
- scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
331
- policyId: import("effect/Schema").brand<import("effect/Schema").String, "PolicyId">;
332
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
333
- readonly removed: import("effect/Schema").Boolean;
334
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"openapi", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"previewSpec", "POST", "/scopes/:scopeId/openapi/preview", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
1
+ export declare const OpenApiClient: import("effect/unstable/reactivity/AtomHttpApi").AtomHttpApiClient<"Plugin_openapiClient", `Plugin_${string}Client`, import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"openapi", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"previewSpec", "POST", "/scopes/:scopeId/openapi/preview", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
335
2
  scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
336
3
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
337
4
  readonly spec: import("effect/Schema").String;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@executor-js/sdk/client").ClientPluginSpec<"openapi">;
2
+ export default _default;
@@ -1,2 +1,2 @@
1
- import type { SourcePlugin } from "@executor-js/react/plugins/source-plugin";
1
+ import type { SourcePlugin } from "@executor-js/sdk/client";
2
2
  export declare const openApiSourcePlugin: SourcePlugin;
@@ -1,12 +1,13 @@
1
- import { Effect } from "effect";
2
- import { HttpClient } from "effect/unstable/http";
1
+ import { Effect, Schema } from "effect";
3
2
  import type { Layer } from "effect";
3
+ import { HttpClient } from "effect/unstable/http";
4
+ import { OpenApiExtensionService } from "../api/handlers";
4
5
  import { type StorageFailure } from "@executor-js/sdk/core";
5
6
  import { type ConfigFileSink } from "@executor-js/config";
6
7
  import { OpenApiExtractionError, OpenApiOAuthError, OpenApiParseError } from "./errors";
7
8
  import { SpecPreview } from "./preview";
8
- import { type OpenapiStore, type StoredSource } from "./store";
9
- import { OAuth2Auth, OAuth2SourceConfig, OpenApiSourceBindingInput, type OpenApiSourceBindingRef, type ConfiguredHeaderValue as ConfiguredHeaderValueValue, type HeaderValue as HeaderValueValue } from "./types";
9
+ import { type OpenapiStore, type SourceConfig, type StoredSource } from "./store";
10
+ import { HeaderValue as HeaderValueSchema, OAuth2Auth, OAuth2SourceConfig, OpenApiSourceBindingInput, type OpenApiSourceBindingRef, type ConfiguredHeaderValue as ConfiguredHeaderValueValue, type HeaderValue as HeaderValueValue } from "./types";
10
11
  export type HeaderValue = HeaderValueValue;
11
12
  export type ConfiguredHeaderValue = ConfiguredHeaderValueValue;
12
13
  export type OpenApiHeaderInput = HeaderValue | ConfiguredHeaderValue;
@@ -75,7 +76,28 @@ export interface OpenApiPluginOptions {
75
76
  * (best-effort — file errors are logged, not raised). */
76
77
  readonly configFile?: ConfigFileSink;
77
78
  }
78
- export declare const openApiPlugin: import("@executor-js/sdk/core").ConfiguredPlugin<"openapi", OpenApiPluginExtension, OpenapiStore, OpenApiPluginOptions, {
79
+ export declare const openApiPlugin: import("@executor-js/sdk/core").ConfiguredPlugin<"openapi", {
80
+ previewSpec: (input: string | OpenApiPreviewInput) => Effect.Effect<SpecPreview, StorageFailure | OpenApiParseError | OpenApiExtractionError | OpenApiOAuthError, never>;
81
+ addSpec: (config: OpenApiSpecConfig) => Effect.Effect<{
82
+ sourceId: string;
83
+ toolCount: number;
84
+ }, StorageFailure | OpenApiParseError | OpenApiExtractionError | OpenApiOAuthError, never>;
85
+ removeSpec: (namespace: string, scope: string) => Effect.Effect<void, StorageFailure, never>;
86
+ getSource: (namespace: string, scope: string) => Effect.Effect<{
87
+ config: SourceConfig;
88
+ namespace: string;
89
+ scope: string;
90
+ name: string;
91
+ legacy?: {
92
+ readonly headers?: Record<string, HeaderValueSchema>;
93
+ readonly oauth2?: OAuth2Auth;
94
+ };
95
+ } | null, StorageFailure, never>;
96
+ updateSource: (namespace: string, scope: string, input: OpenApiUpdateSourceInput) => Effect.Effect<void, StorageFailure, never>;
97
+ listSourceBindings: (sourceId: string, sourceScope: string) => Effect.Effect<readonly OpenApiSourceBindingRef[], StorageFailure, never>;
98
+ setSourceBinding: (input: OpenApiSourceBindingInput) => Effect.Effect<OpenApiSourceBindingRef, StorageFailure, never>;
99
+ removeSourceBinding: (sourceId: string, sourceScope: string, slot: string, scope: string) => Effect.Effect<void, StorageFailure, never>;
100
+ }, OpenapiStore, OpenApiPluginOptions, {
79
101
  readonly openapi_source: {
80
102
  readonly fields: {
81
103
  readonly id: {
@@ -183,4 +205,91 @@ export declare const openApiPlugin: import("@executor-js/sdk/core").ConfiguredPl
183
205
  };
184
206
  };
185
207
  };
186
- }>;
208
+ }, typeof OpenApiExtensionService, Layer.Layer<import("effect/unstable/httpapi/HttpApiGroup").ApiGroup<"executor", "openapi">, never, import("effect/unstable/http/HttpRouter").Request<"Requires", OpenApiExtensionService>>, import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"openapi", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"previewSpec", "POST", "/scopes/:scopeId/openapi/preview", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<Schema.Struct<{
209
+ scopeId: Schema.brand<Schema.String, "ScopeId">;
210
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
211
+ readonly spec: Schema.String;
212
+ readonly specFetchCredentials: Schema.optional<Schema.Struct<{
213
+ readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
214
+ readonly secretId: Schema.String;
215
+ readonly prefix: Schema.optional<Schema.String>;
216
+ }>]>>>;
217
+ readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
218
+ readonly secretId: Schema.String;
219
+ readonly prefix: Schema.optional<Schema.String>;
220
+ }>]>>>;
221
+ }>>;
222
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof SpecPreview>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError | typeof OpenApiParseError | typeof OpenApiExtractionError | typeof OpenApiOAuthError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"addSpec", "POST", "/scopes/:scopeId/openapi/specs", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<Schema.Struct<{
223
+ scopeId: Schema.brand<Schema.String, "ScopeId">;
224
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
225
+ readonly spec: Schema.String;
226
+ readonly specFetchCredentials: Schema.optional<Schema.Struct<{
227
+ readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
228
+ readonly secretId: Schema.String;
229
+ readonly prefix: Schema.optional<Schema.String>;
230
+ }>]>>>;
231
+ readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
232
+ readonly secretId: Schema.String;
233
+ readonly prefix: Schema.optional<Schema.String>;
234
+ }>]>>>;
235
+ }>>;
236
+ readonly name: Schema.optional<Schema.String>;
237
+ readonly baseUrl: Schema.optional<Schema.String>;
238
+ readonly namespace: Schema.optional<Schema.String>;
239
+ readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
240
+ readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
241
+ readonly secretId: Schema.String;
242
+ readonly prefix: Schema.optional<Schema.String>;
243
+ }>]>>>;
244
+ readonly oauth2: Schema.optional<Schema.Union<readonly [typeof OAuth2Auth, typeof OAuth2SourceConfig]>>;
245
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
246
+ readonly toolCount: Schema.Number;
247
+ readonly namespace: Schema.String;
248
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError | typeof OpenApiParseError | typeof OpenApiExtractionError | typeof OpenApiOAuthError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getSource", "GET", "/scopes/:scopeId/openapi/sources/:namespace", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<Schema.Struct<{
249
+ scopeId: Schema.brand<Schema.String, "ScopeId">;
250
+ namespace: Schema.String;
251
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.NullOr<typeof import("./store").StoredSourceSchema>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError | typeof OpenApiParseError | typeof OpenApiExtractionError | typeof OpenApiOAuthError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateSource", "PATCH", "/scopes/:scopeId/openapi/sources/:namespace", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<Schema.Struct<{
252
+ scopeId: Schema.brand<Schema.String, "ScopeId">;
253
+ namespace: Schema.String;
254
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
255
+ readonly name: Schema.optional<Schema.String>;
256
+ readonly baseUrl: Schema.optional<Schema.String>;
257
+ readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
258
+ readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
259
+ readonly secretId: Schema.String;
260
+ readonly prefix: Schema.optional<Schema.String>;
261
+ }>]>>>;
262
+ readonly oauth2: Schema.optional<Schema.Union<readonly [typeof OAuth2Auth, typeof OAuth2SourceConfig]>>;
263
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
264
+ readonly updated: Schema.Boolean;
265
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError | typeof OpenApiParseError | typeof OpenApiExtractionError | typeof OpenApiOAuthError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listSourceBindings", "GET", "/scopes/:scopeId/openapi/sources/:namespace/base/:sourceScopeId/bindings", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<Schema.Struct<{
266
+ scopeId: Schema.brand<Schema.String, "ScopeId">;
267
+ namespace: Schema.String;
268
+ sourceScopeId: Schema.brand<Schema.String, "ScopeId">;
269
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.$Array<typeof OpenApiSourceBindingRef>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError | typeof OpenApiParseError | typeof OpenApiExtractionError | typeof OpenApiOAuthError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setSourceBinding", "POST", "/scopes/:scopeId/openapi/source-bindings", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<Schema.Struct<{
270
+ scopeId: Schema.brand<Schema.String, "ScopeId">;
271
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
272
+ readonly sourceId: Schema.String;
273
+ readonly sourceScope: Schema.brand<Schema.String, "ScopeId">;
274
+ readonly scope: Schema.brand<Schema.String, "ScopeId">;
275
+ readonly slot: Schema.String;
276
+ readonly value: Schema.Union<readonly [Schema.Struct<{
277
+ readonly kind: Schema.Literal<"secret">;
278
+ readonly secretId: Schema.brand<Schema.String, "SecretId">;
279
+ }>, Schema.Struct<{
280
+ readonly kind: Schema.Literal<"connection">;
281
+ readonly connectionId: Schema.brand<Schema.String, "ConnectionId">;
282
+ }>, Schema.Struct<{
283
+ readonly kind: Schema.Literal<"text">;
284
+ readonly text: Schema.String;
285
+ }>]>;
286
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof OpenApiSourceBindingRef>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError | typeof OpenApiParseError | typeof OpenApiExtractionError | typeof OpenApiOAuthError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"removeSourceBinding", "POST", "/scopes/:scopeId/openapi/source-bindings/remove", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<Schema.Struct<{
287
+ scopeId: Schema.brand<Schema.String, "ScopeId">;
288
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
289
+ readonly sourceId: Schema.String;
290
+ readonly sourceScope: Schema.brand<Schema.String, "ScopeId">;
291
+ readonly slot: Schema.String;
292
+ readonly scope: Schema.brand<Schema.String, "ScopeId">;
293
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
294
+ readonly removed: Schema.Boolean;
295
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError | typeof OpenApiParseError | typeof OpenApiExtractionError | typeof OpenApiOAuthError>, never, never>, false>>;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@executor-js/plugin-openapi",
3
- "version": "0.0.2",
3
+ "version": "0.1.0",
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"
@@ -41,8 +41,8 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@effect/platform-node": "4.0.0-beta.59",
44
- "@executor-js/config": "0.0.2",
45
- "@executor-js/sdk": "0.0.2",
44
+ "@executor-js/config": "0.1.0",
45
+ "@executor-js/sdk": "0.1.0",
46
46
  "effect": "4.0.0-beta.59",
47
47
  "openapi-types": "^12.1.3",
48
48
  "yaml": "^2.7.1"
@@ -50,7 +50,7 @@
50
50
  "devDependencies": {
51
51
  "@effect/atom-react": "4.0.0-beta.59",
52
52
  "@effect/vitest": "4.0.0-beta.59",
53
- "@executor-js/storage-core": "0.0.2",
53
+ "@executor-js/storage-core": "0.1.0",
54
54
  "@types/node": "^24.3.1",
55
55
  "@types/react": "^19.1.0",
56
56
  "bun-types": "^1.2.22",