@executor-js/plugin-graphql 1.4.28 → 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 (40) hide show
  1. package/dist/{AddGraphqlSource-3Z3DB4KQ.js → AddGraphqlSource-PBMKSY7Y.js} +29 -18
  2. package/dist/AddGraphqlSource-PBMKSY7Y.js.map +1 -0
  3. package/dist/{EditGraphqlSource-F37RPNKV.js → EditGraphqlSource-AFR4RQHY.js} +107 -91
  4. package/dist/EditGraphqlSource-AFR4RQHY.js.map +1 -0
  5. package/dist/{GraphqlSourceSummary-6EYBXVD2.js → GraphqlSourceSummary-MY4AW37M.js} +4 -4
  6. package/dist/GraphqlSourceSummary-MY4AW37M.js.map +1 -0
  7. package/dist/api/group.d.ts +71 -232
  8. package/dist/api/handlers.d.ts +5 -45
  9. package/dist/api/index.d.ts +76 -404
  10. package/dist/{chunk-PO2TPM5B.js → chunk-7S2FM3ZF.js} +578 -613
  11. package/dist/chunk-7S2FM3ZF.js.map +1 -0
  12. package/dist/chunk-D6E4WAYW.js +51 -0
  13. package/dist/chunk-D6E4WAYW.js.map +1 -0
  14. package/dist/{chunk-445ZPXHU.js → chunk-H422YIM4.js} +15 -34
  15. package/dist/chunk-H422YIM4.js.map +1 -0
  16. package/dist/{chunk-EW4Y3KEX.js → chunk-OYUIHBWZ.js} +23 -80
  17. package/dist/chunk-OYUIHBWZ.js.map +1 -0
  18. package/dist/client.js +7 -47
  19. package/dist/client.js.map +1 -1
  20. package/dist/core.js +3 -8
  21. package/dist/index.js +3 -2
  22. package/dist/react/atoms.d.ts +146 -186
  23. package/dist/react/client.d.ts +70 -231
  24. package/dist/sdk/index.d.ts +2 -2
  25. package/dist/sdk/introspect.d.ts +151 -151
  26. package/dist/sdk/invoke.d.ts +5 -5
  27. package/dist/sdk/plugin.d.ts +74 -228
  28. package/dist/sdk/presets.d.ts +1 -0
  29. package/dist/sdk/store.d.ts +3 -135
  30. package/dist/sdk/types.d.ts +31 -66
  31. package/dist/testing/index.d.ts +20 -2
  32. package/dist/testing.js +77 -29
  33. package/dist/testing.js.map +1 -1
  34. package/package.json +3 -3
  35. package/dist/AddGraphqlSource-3Z3DB4KQ.js.map +0 -1
  36. package/dist/EditGraphqlSource-F37RPNKV.js.map +0 -1
  37. package/dist/GraphqlSourceSummary-6EYBXVD2.js.map +0 -1
  38. package/dist/chunk-445ZPXHU.js.map +0 -1
  39. package/dist/chunk-EW4Y3KEX.js.map +0 -1
  40. package/dist/chunk-PO2TPM5B.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi";
2
2
  import { Schema } from "effect";
3
- import { InternalError } from "@executor-js/sdk/core";
3
+ import { InternalError } from "@executor-js/sdk/shared";
4
4
  import { GraphqlIntrospectionError, GraphqlExtractionError } from "../sdk/errors";
5
5
  export declare const StoredSourceSchema: Schema.Struct<{
6
6
  readonly namespace: Schema.String;
@@ -27,68 +27,99 @@ export declare const StoredSourceSchema: Schema.Struct<{
27
27
  export declare const GraphqlGroup: HttpApiGroup.HttpApiGroup<"graphql", HttpApiEndpoint.HttpApiEndpoint<"addSource", "POST", "/scopes/:scopeId/graphql/sources", HttpApiEndpoint.StringTree<Schema.Struct<{
28
28
  scopeId: Schema.brand<Schema.String, "ScopeId">;
29
29
  }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
30
- readonly targetScope: Schema.brand<Schema.String, "ScopeId">;
31
30
  readonly endpoint: Schema.String;
32
- readonly name: Schema.optional<Schema.String>;
31
+ readonly name: Schema.String;
33
32
  readonly introspectionJson: Schema.optional<Schema.String>;
34
- readonly namespace: Schema.optional<Schema.String>;
35
- readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
36
- readonly secretId: Schema.String;
37
- readonly prefix: Schema.optional<Schema.String>;
38
- readonly targetScope: Schema.brand<Schema.String, "ScopeId">;
39
- readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
40
- }>, Schema.Union<readonly [Schema.String, Schema.Struct<{
41
- readonly secretId: Schema.String;
42
- readonly prefix: Schema.optional<Schema.String>;
43
- }>]>, Schema.Union<readonly [Schema.String, Schema.Struct<{
44
- readonly kind: Schema.Literal<"binding">;
45
- readonly slot: Schema.String;
46
- readonly prefix: Schema.optional<Schema.String>;
47
- }>]>]>>>;
48
- readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
49
- readonly secretId: Schema.String;
50
- readonly prefix: Schema.optional<Schema.String>;
51
- readonly targetScope: Schema.brand<Schema.String, "ScopeId">;
52
- readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
53
- }>, Schema.Union<readonly [Schema.String, Schema.Struct<{
54
- readonly secretId: Schema.String;
33
+ readonly namespace: Schema.String;
34
+ readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
35
+ readonly kind: Schema.Literal<"secret">;
55
36
  readonly prefix: Schema.optional<Schema.String>;
56
- }>]>, Schema.Union<readonly [Schema.String, Schema.Struct<{
57
- readonly kind: Schema.Literal<"binding">;
58
- readonly slot: Schema.String;
37
+ }>]>>>;
38
+ readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
39
+ readonly kind: Schema.Literal<"secret">;
59
40
  readonly prefix: Schema.optional<Schema.String>;
60
- }>]>]>>>;
61
- readonly credentialTargetScope: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
62
- readonly auth: Schema.optional<Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
63
- readonly kind: Schema.Literal<"none">;
64
- }>, Schema.Struct<{
41
+ }>]>>>;
42
+ readonly oauth2: Schema.optional<Schema.Struct<{
65
43
  readonly kind: Schema.Literal<"oauth2">;
44
+ readonly securitySchemeName: Schema.String;
45
+ readonly flow: Schema.Literals<readonly ["authorizationCode", "clientCredentials"]>;
46
+ readonly tokenUrl: Schema.String;
47
+ readonly authorizationUrl: Schema.withDecodingDefault<Schema.optional<Schema.NullOr<Schema.String>>>;
48
+ readonly issuerUrl: Schema.optional<Schema.NullOr<Schema.String>>;
49
+ readonly clientIdSlot: Schema.String;
50
+ readonly clientSecretSlot: Schema.NullOr<Schema.String>;
66
51
  readonly connectionSlot: Schema.String;
67
- }>]>, Schema.Struct<{
68
- readonly kind: Schema.Literal<"oauth2">;
69
- readonly connectionId: Schema.String;
70
- }>]>>;
52
+ readonly scopes: Schema.$Array<Schema.String>;
53
+ }>>;
54
+ readonly credentials: Schema.optional<Schema.Struct<{
55
+ readonly scope: Schema.brand<Schema.String, "ScopeId">;
56
+ readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
57
+ readonly kind: Schema.Literal<"text">;
58
+ readonly text: Schema.String;
59
+ readonly prefix: Schema.optional<Schema.String>;
60
+ }>, Schema.Struct<{
61
+ readonly kind: Schema.Literal<"secret">;
62
+ readonly secretId: Schema.String;
63
+ readonly secretScope: Schema.optional<Schema.String>;
64
+ readonly prefix: Schema.optional<Schema.String>;
65
+ }>, Schema.Struct<{
66
+ readonly kind: Schema.Literal<"connection">;
67
+ readonly connectionId: Schema.String;
68
+ }>]>>>;
69
+ readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
70
+ readonly kind: Schema.Literal<"text">;
71
+ readonly text: Schema.String;
72
+ readonly prefix: Schema.optional<Schema.String>;
73
+ }>, Schema.Struct<{
74
+ readonly kind: Schema.Literal<"secret">;
75
+ readonly secretId: Schema.String;
76
+ readonly secretScope: Schema.optional<Schema.String>;
77
+ readonly prefix: Schema.optional<Schema.String>;
78
+ }>, Schema.Struct<{
79
+ readonly kind: Schema.Literal<"connection">;
80
+ readonly connectionId: Schema.String;
81
+ }>]>>>;
82
+ readonly auth: Schema.optional<Schema.Union<readonly [Schema.Struct<{
83
+ readonly kind: Schema.Literal<"none">;
84
+ }>, Schema.Struct<{
85
+ readonly oauth2: Schema.optional<Schema.Struct<{
86
+ readonly connection: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Struct<{
87
+ readonly kind: Schema.Literal<"text">;
88
+ readonly text: Schema.String;
89
+ readonly prefix: Schema.optional<Schema.String>;
90
+ }>, Schema.Struct<{
91
+ readonly kind: Schema.Literal<"secret">;
92
+ readonly secretId: Schema.String;
93
+ readonly secretScope: Schema.optional<Schema.String>;
94
+ readonly prefix: Schema.optional<Schema.String>;
95
+ }>, Schema.Struct<{
96
+ readonly kind: Schema.Literal<"connection">;
97
+ readonly connectionId: Schema.String;
98
+ }>]>>;
99
+ }>>;
100
+ }>]>>;
101
+ }>>;
71
102
  }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
72
103
  readonly toolCount: Schema.Number;
73
104
  readonly namespace: Schema.String;
74
105
  }>>, HttpApiEndpoint.Json<typeof InternalError | Schema.decodeTo<Schema.declareConstructor<GraphqlIntrospectionError, {
75
- readonly message: string;
76
106
  readonly _tag: "GraphqlIntrospectionError";
107
+ readonly message: string;
77
108
  }, readonly [Schema.TaggedStruct<"GraphqlIntrospectionError", {
78
109
  readonly message: Schema.String;
79
110
  }>], {
80
- readonly message: string;
81
111
  readonly _tag: "GraphqlIntrospectionError";
112
+ readonly message: string;
82
113
  }>, Schema.TaggedStruct<"GraphqlIntrospectionError", {
83
114
  readonly message: Schema.String;
84
115
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GraphqlExtractionError, {
85
- readonly message: string;
86
116
  readonly _tag: "GraphqlExtractionError";
117
+ readonly message: string;
87
118
  }, readonly [Schema.TaggedStruct<"GraphqlExtractionError", {
88
119
  readonly message: Schema.String;
89
120
  }>], {
90
- readonly message: string;
91
121
  readonly _tag: "GraphqlExtractionError";
122
+ readonly message: string;
92
123
  }>, Schema.TaggedStruct<"GraphqlExtractionError", {
93
124
  readonly message: Schema.String;
94
125
  }>, never, never>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getSource", "GET", "/scopes/:scopeId/graphql/sources/:namespace", HttpApiEndpoint.StringTree<Schema.Struct<{
@@ -116,215 +147,23 @@ export declare const GraphqlGroup: HttpApiGroup.HttpApiGroup<"graphql", HttpApiE
116
147
  readonly connectionSlot: Schema.String;
117
148
  }>]>;
118
149
  }>>>, HttpApiEndpoint.Json<typeof InternalError | Schema.decodeTo<Schema.declareConstructor<GraphqlIntrospectionError, {
119
- readonly message: string;
120
- readonly _tag: "GraphqlIntrospectionError";
121
- }, readonly [Schema.TaggedStruct<"GraphqlIntrospectionError", {
122
- readonly message: Schema.String;
123
- }>], {
124
- readonly message: string;
125
150
  readonly _tag: "GraphqlIntrospectionError";
126
- }>, Schema.TaggedStruct<"GraphqlIntrospectionError", {
127
- readonly message: Schema.String;
128
- }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GraphqlExtractionError, {
129
151
  readonly message: string;
130
- readonly _tag: "GraphqlExtractionError";
131
- }, readonly [Schema.TaggedStruct<"GraphqlExtractionError", {
132
- readonly message: Schema.String;
133
- }>], {
134
- readonly message: string;
135
- readonly _tag: "GraphqlExtractionError";
136
- }>, Schema.TaggedStruct<"GraphqlExtractionError", {
137
- readonly message: Schema.String;
138
- }>, never, never>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateSource", "PATCH", "/scopes/:scopeId/graphql/sources/:namespace", HttpApiEndpoint.StringTree<Schema.Struct<{
139
- scopeId: Schema.brand<Schema.String, "ScopeId">;
140
- namespace: Schema.String;
141
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
142
- readonly sourceScope: Schema.brand<Schema.String, "ScopeId">;
143
- readonly name: Schema.optional<Schema.String>;
144
- readonly endpoint: Schema.optional<Schema.String>;
145
- readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
146
- readonly secretId: Schema.String;
147
- readonly prefix: Schema.optional<Schema.String>;
148
- readonly targetScope: Schema.brand<Schema.String, "ScopeId">;
149
- readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
150
- }>, Schema.Union<readonly [Schema.String, Schema.Struct<{
151
- readonly secretId: Schema.String;
152
- readonly prefix: Schema.optional<Schema.String>;
153
- }>]>, Schema.Union<readonly [Schema.String, Schema.Struct<{
154
- readonly kind: Schema.Literal<"binding">;
155
- readonly slot: Schema.String;
156
- readonly prefix: Schema.optional<Schema.String>;
157
- }>]>]>>>;
158
- readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
159
- readonly secretId: Schema.String;
160
- readonly prefix: Schema.optional<Schema.String>;
161
- readonly targetScope: Schema.brand<Schema.String, "ScopeId">;
162
- readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
163
- }>, Schema.Union<readonly [Schema.String, Schema.Struct<{
164
- readonly secretId: Schema.String;
165
- readonly prefix: Schema.optional<Schema.String>;
166
- }>]>, Schema.Union<readonly [Schema.String, Schema.Struct<{
167
- readonly kind: Schema.Literal<"binding">;
168
- readonly slot: Schema.String;
169
- readonly prefix: Schema.optional<Schema.String>;
170
- }>]>]>>>;
171
- readonly credentialTargetScope: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
172
- readonly auth: Schema.optional<Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
173
- readonly kind: Schema.Literal<"none">;
174
- }>, Schema.Struct<{
175
- readonly kind: Schema.Literal<"oauth2">;
176
- readonly connectionSlot: Schema.String;
177
- }>]>, Schema.Struct<{
178
- readonly kind: Schema.Literal<"oauth2">;
179
- readonly connectionId: Schema.String;
180
- }>]>>;
181
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
182
- readonly updated: Schema.Boolean;
183
- }>>, HttpApiEndpoint.Json<typeof InternalError | Schema.decodeTo<Schema.declareConstructor<GraphqlIntrospectionError, {
184
- readonly message: string;
185
- readonly _tag: "GraphqlIntrospectionError";
186
152
  }, readonly [Schema.TaggedStruct<"GraphqlIntrospectionError", {
187
153
  readonly message: Schema.String;
188
154
  }>], {
189
- readonly message: string;
190
- readonly _tag: "GraphqlIntrospectionError";
191
- }>, Schema.TaggedStruct<"GraphqlIntrospectionError", {
192
- readonly message: Schema.String;
193
- }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GraphqlExtractionError, {
194
- readonly message: string;
195
- readonly _tag: "GraphqlExtractionError";
196
- }, readonly [Schema.TaggedStruct<"GraphqlExtractionError", {
197
- readonly message: Schema.String;
198
- }>], {
199
- readonly message: string;
200
- readonly _tag: "GraphqlExtractionError";
201
- }>, Schema.TaggedStruct<"GraphqlExtractionError", {
202
- readonly message: Schema.String;
203
- }>, never, never>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listSourceBindings", "GET", "/scopes/:scopeId/graphql/sources/:namespace/base/:sourceScopeId/bindings", HttpApiEndpoint.StringTree<Schema.Struct<{
204
- scopeId: Schema.brand<Schema.String, "ScopeId">;
205
- namespace: Schema.String;
206
- sourceScopeId: Schema.brand<Schema.String, "ScopeId">;
207
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.$Array<Schema.Struct<{
208
- readonly sourceId: Schema.String;
209
- readonly sourceScopeId: Schema.brand<Schema.String, "ScopeId">;
210
- readonly scopeId: Schema.brand<Schema.String, "ScopeId">;
211
- readonly slot: Schema.String;
212
- readonly value: Schema.Union<readonly [Schema.Struct<{
213
- readonly kind: Schema.Literal<"text">;
214
- readonly text: Schema.String;
215
- }>, Schema.Struct<{
216
- readonly kind: Schema.Literal<"secret">;
217
- readonly secretId: Schema.brand<Schema.String, "SecretId">;
218
- readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
219
- }>, Schema.Struct<{
220
- readonly kind: Schema.Literal<"connection">;
221
- readonly connectionId: Schema.brand<Schema.String, "ConnectionId">;
222
- }>]>;
223
- readonly createdAt: Schema.Date;
224
- readonly updatedAt: Schema.Date;
225
- }>>>, HttpApiEndpoint.Json<typeof InternalError | Schema.decodeTo<Schema.declareConstructor<GraphqlIntrospectionError, {
226
- readonly message: string;
227
155
  readonly _tag: "GraphqlIntrospectionError";
228
- }, readonly [Schema.TaggedStruct<"GraphqlIntrospectionError", {
229
- readonly message: Schema.String;
230
- }>], {
231
156
  readonly message: string;
232
- readonly _tag: "GraphqlIntrospectionError";
233
157
  }>, Schema.TaggedStruct<"GraphqlIntrospectionError", {
234
158
  readonly message: Schema.String;
235
159
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GraphqlExtractionError, {
236
- readonly message: string;
237
160
  readonly _tag: "GraphqlExtractionError";
238
- }, readonly [Schema.TaggedStruct<"GraphqlExtractionError", {
239
- readonly message: Schema.String;
240
- }>], {
241
161
  readonly message: string;
242
- readonly _tag: "GraphqlExtractionError";
243
- }>, Schema.TaggedStruct<"GraphqlExtractionError", {
244
- readonly message: Schema.String;
245
- }>, never, never>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"setSourceBinding", "POST", "/scopes/:scopeId/graphql/source-bindings", HttpApiEndpoint.StringTree<Schema.Struct<{
246
- scopeId: Schema.brand<Schema.String, "ScopeId">;
247
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
248
- readonly sourceId: Schema.String;
249
- readonly sourceScope: Schema.brand<Schema.String, "ScopeId">;
250
- readonly scope: Schema.brand<Schema.String, "ScopeId">;
251
- readonly slot: Schema.String;
252
- readonly value: Schema.Union<readonly [Schema.Struct<{
253
- readonly kind: Schema.Literal<"text">;
254
- readonly text: Schema.String;
255
- }>, Schema.Struct<{
256
- readonly kind: Schema.Literal<"secret">;
257
- readonly secretId: Schema.brand<Schema.String, "SecretId">;
258
- readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
259
- }>, Schema.Struct<{
260
- readonly kind: Schema.Literal<"connection">;
261
- readonly connectionId: Schema.brand<Schema.String, "ConnectionId">;
262
- }>]>;
263
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
264
- readonly sourceId: Schema.String;
265
- readonly sourceScopeId: Schema.brand<Schema.String, "ScopeId">;
266
- readonly scopeId: Schema.brand<Schema.String, "ScopeId">;
267
- readonly slot: Schema.String;
268
- readonly value: Schema.Union<readonly [Schema.Struct<{
269
- readonly kind: Schema.Literal<"text">;
270
- readonly text: Schema.String;
271
- }>, Schema.Struct<{
272
- readonly kind: Schema.Literal<"secret">;
273
- readonly secretId: Schema.brand<Schema.String, "SecretId">;
274
- readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
275
- }>, Schema.Struct<{
276
- readonly kind: Schema.Literal<"connection">;
277
- readonly connectionId: Schema.brand<Schema.String, "ConnectionId">;
278
- }>]>;
279
- readonly createdAt: Schema.Date;
280
- readonly updatedAt: Schema.Date;
281
- }>>, HttpApiEndpoint.Json<typeof InternalError | Schema.decodeTo<Schema.declareConstructor<GraphqlIntrospectionError, {
282
- readonly message: string;
283
- readonly _tag: "GraphqlIntrospectionError";
284
- }, readonly [Schema.TaggedStruct<"GraphqlIntrospectionError", {
285
- readonly message: Schema.String;
286
- }>], {
287
- readonly message: string;
288
- readonly _tag: "GraphqlIntrospectionError";
289
- }>, Schema.TaggedStruct<"GraphqlIntrospectionError", {
290
- readonly message: Schema.String;
291
- }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GraphqlExtractionError, {
292
- readonly message: string;
293
- readonly _tag: "GraphqlExtractionError";
294
162
  }, readonly [Schema.TaggedStruct<"GraphqlExtractionError", {
295
163
  readonly message: Schema.String;
296
164
  }>], {
297
- readonly message: string;
298
- readonly _tag: "GraphqlExtractionError";
299
- }>, Schema.TaggedStruct<"GraphqlExtractionError", {
300
- readonly message: Schema.String;
301
- }>, never, never>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"removeSourceBinding", "POST", "/scopes/:scopeId/graphql/source-bindings/remove", HttpApiEndpoint.StringTree<Schema.Struct<{
302
- scopeId: Schema.brand<Schema.String, "ScopeId">;
303
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
304
- readonly sourceId: Schema.String;
305
- readonly sourceScope: Schema.brand<Schema.String, "ScopeId">;
306
- readonly slot: Schema.String;
307
- readonly scope: Schema.brand<Schema.String, "ScopeId">;
308
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
309
- readonly removed: Schema.Boolean;
310
- }>>, HttpApiEndpoint.Json<typeof InternalError | Schema.decodeTo<Schema.declareConstructor<GraphqlIntrospectionError, {
311
- readonly message: string;
312
- readonly _tag: "GraphqlIntrospectionError";
313
- }, readonly [Schema.TaggedStruct<"GraphqlIntrospectionError", {
314
- readonly message: Schema.String;
315
- }>], {
316
- readonly message: string;
317
- readonly _tag: "GraphqlIntrospectionError";
318
- }>, Schema.TaggedStruct<"GraphqlIntrospectionError", {
319
- readonly message: Schema.String;
320
- }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GraphqlExtractionError, {
321
- readonly message: string;
322
165
  readonly _tag: "GraphqlExtractionError";
323
- }, readonly [Schema.TaggedStruct<"GraphqlExtractionError", {
324
- readonly message: Schema.String;
325
- }>], {
326
166
  readonly message: string;
327
- readonly _tag: "GraphqlExtractionError";
328
167
  }>, Schema.TaggedStruct<"GraphqlExtractionError", {
329
168
  readonly message: Schema.String;
330
169
  }>, never, never>>, never, never>, false>;
@@ -1,53 +1,13 @@
1
1
  import { Context, Effect } from "effect";
2
- import type { GraphqlUpdateSourceInput } from "../sdk/plugin";
3
- import { GraphqlSourceBindingInput } from "../sdk/types";
4
2
  declare const GraphqlExtensionService_base: Context.ServiceClass<GraphqlExtensionService, "GraphqlExtensionService", {
5
3
  addSource: (config: import("../sdk").GraphqlSourceConfig) => Effect.Effect<{
6
4
  toolCount: number;
7
5
  namespace: string;
8
- }, import("@executor-js/storage-core").StorageFailure | import("../sdk").GraphqlIntrospectionError | import("../sdk").GraphqlExtractionError, never>;
9
- removeSource: (namespace: string, scope: string) => Effect.Effect<void, import("@executor-js/storage-core").StorageFailure, never>;
10
- getSource: (namespace: string, scope: string) => Effect.Effect<import("../sdk").StoredGraphqlSource | null, import("@executor-js/storage-core").StorageFailure, never>;
11
- updateSource: (namespace: string, scope: string, input: GraphqlUpdateSourceInput) => Effect.Effect<void, import("@executor-js/storage-core").StorageFailure | import("../sdk").GraphqlIntrospectionError, never>;
12
- listSourceBindings: (sourceId: string, sourceScope: string) => Effect.Effect<readonly {
13
- readonly value: {
14
- readonly text: string;
15
- readonly kind: "text";
16
- } | {
17
- readonly secretId: string & import("effect/Brand").Brand<"SecretId">;
18
- readonly kind: "secret";
19
- readonly secretScopeId?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
20
- } | {
21
- readonly connectionId: string & import("effect/Brand").Brand<"ConnectionId">;
22
- readonly kind: "connection";
23
- };
24
- readonly createdAt: Date;
25
- readonly sourceId: string;
26
- readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
27
- readonly updatedAt: Date;
28
- readonly slot: string;
29
- readonly sourceScopeId: string & import("effect/Brand").Brand<"ScopeId">;
30
- }[], import("@executor-js/storage-core").StorageFailure, never>;
31
- setSourceBinding: (input: GraphqlSourceBindingInput) => Effect.Effect<{
32
- readonly value: {
33
- readonly text: string;
34
- readonly kind: "text";
35
- } | {
36
- readonly secretId: string & import("effect/Brand").Brand<"SecretId">;
37
- readonly kind: "secret";
38
- readonly secretScopeId?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
39
- } | {
40
- readonly connectionId: string & import("effect/Brand").Brand<"ConnectionId">;
41
- readonly kind: "connection";
42
- };
43
- readonly createdAt: Date;
44
- readonly sourceId: string;
45
- readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
46
- readonly updatedAt: Date;
47
- readonly slot: string;
48
- readonly sourceScopeId: string & import("effect/Brand").Brand<"ScopeId">;
49
- }, import("@executor-js/storage-core").StorageFailure, never>;
50
- removeSourceBinding: (sourceId: string, sourceScope: string, slot: string, scope: string) => Effect.Effect<void, import("@executor-js/storage-core").StorageFailure, never>;
6
+ }, import("@executor-js/sdk/core").StorageFailure | import("../sdk").GraphqlIntrospectionError | import("../sdk").GraphqlExtractionError, never>;
7
+ removeSource: (namespace: string, scope: string) => Effect.Effect<void, import("@executor-js/sdk/core").StorageFailure, never>;
8
+ getSource: (namespace: string, scope: string) => Effect.Effect<import("../sdk").StoredGraphqlSource | null, import("@executor-js/sdk/core").StorageFailure, never>;
9
+ configureSource: (namespace: string, scope: string, targetScope: string, input: Omit<import("../sdk").GraphqlConfigureSourceInput, "scope">) => Effect.Effect<void, import("@executor-js/sdk/core").StorageFailure, never>;
10
+ configure: (source: import("../sdk").GraphqlSourceRef, input: import("../sdk").GraphqlConfigureSourceInput) => Effect.Effect<void, import("@executor-js/sdk/core").StorageFailure, never>;
51
11
  }>;
52
12
  export declare class GraphqlExtensionService extends GraphqlExtensionService_base {
53
13
  }