@executor-js/plugin-graphql 0.1.0 → 1.4.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/AddGraphqlSource-3Z3DB4KQ.js +239 -0
  2. package/dist/AddGraphqlSource-3Z3DB4KQ.js.map +1 -0
  3. package/dist/EditGraphqlSource-F37RPNKV.js +251 -0
  4. package/dist/EditGraphqlSource-F37RPNKV.js.map +1 -0
  5. package/dist/GraphqlSourceSummary-6EYBXVD2.js +70 -0
  6. package/dist/GraphqlSourceSummary-6EYBXVD2.js.map +1 -0
  7. package/dist/api/group.d.ts +204 -13
  8. package/dist/api/handlers.d.ts +51 -3
  9. package/dist/api/index.d.ts +482 -0
  10. package/dist/chunk-445ZPXHU.js +148 -0
  11. package/dist/chunk-445ZPXHU.js.map +1 -0
  12. package/dist/chunk-EW4Y3KEX.js +182 -0
  13. package/dist/chunk-EW4Y3KEX.js.map +1 -0
  14. package/dist/chunk-M4SJY6CB.js +45 -0
  15. package/dist/chunk-M4SJY6CB.js.map +1 -0
  16. package/dist/chunk-PO2TPM5B.js +1636 -0
  17. package/dist/chunk-PO2TPM5B.js.map +1 -0
  18. package/dist/client.js +75 -0
  19. package/dist/client.js.map +1 -0
  20. package/dist/core.js +32 -10
  21. package/dist/index.js +2 -1
  22. package/dist/react/GraphqlSourceFields.d.ts +8 -0
  23. package/dist/react/GraphqlSourceSummary.d.ts +3 -1
  24. package/dist/react/atoms.d.ts +206 -10
  25. package/dist/react/client.d.ts +200 -12
  26. package/dist/sdk/index.d.ts +1 -1
  27. package/dist/sdk/introspect.d.ts +437 -43
  28. package/dist/sdk/invoke.d.ts +17 -3
  29. package/dist/sdk/plugin.d.ts +192 -170
  30. package/dist/sdk/store.d.ts +84 -11
  31. package/dist/sdk/types.d.ts +129 -30
  32. package/dist/testing/index.d.ts +52 -0
  33. package/dist/testing.js +131 -0
  34. package/dist/testing.js.map +1 -0
  35. package/package.json +18 -4
  36. package/dist/chunk-EIC5WI6C.js +0 -1225
  37. package/dist/chunk-EIC5WI6C.js.map +0 -1
@@ -1,48 +1,158 @@
1
1
  import type { ScopeId } from "@executor-js/sdk/core";
2
- export declare const graphqlSourceAtom: (scopeId: ScopeId, namespace: string) => import("effect/unstable/reactivity/Atom").Atom<import("effect/unstable/reactivity/AsyncResult").AsyncResult<{
2
+ import * as Atom from "effect/unstable/reactivity/Atom";
3
+ import * as AsyncResult from "effect/unstable/reactivity/AsyncResult";
4
+ export declare const graphqlSourceAtom: (scopeId: ScopeId, namespace: string) => Atom.Atom<AsyncResult.AsyncResult<{
3
5
  readonly name: string;
6
+ readonly scope: string & import("effect/Brand").Brand<"ScopeId">;
4
7
  readonly endpoint: string;
5
8
  readonly namespace: string;
6
9
  readonly headers: {
7
10
  readonly [x: string]: string | {
8
- readonly secretId: string;
11
+ readonly kind: "binding";
12
+ readonly slot: string;
9
13
  readonly prefix?: string | undefined;
10
14
  };
11
15
  };
12
16
  readonly queryParams: {
13
17
  readonly [x: string]: string | {
14
- readonly secretId: string;
18
+ readonly kind: "binding";
19
+ readonly slot: string;
15
20
  readonly prefix?: string | undefined;
16
21
  };
17
22
  };
18
23
  readonly auth: {
19
24
  readonly kind: "none";
20
25
  } | {
21
- readonly connectionId: string;
22
26
  readonly kind: "oauth2";
27
+ readonly connectionSlot: string;
23
28
  };
24
29
  } | null, import("@executor-js/api").InternalError | import("../sdk").GraphqlIntrospectionError | import("../sdk").GraphqlExtractionError>>;
25
- export declare const addGraphqlSource: import("effect/unstable/reactivity/Atom").AtomResultFn<{
30
+ export declare const graphqlSourceBindingsAtom: (scopeId: ScopeId, namespace: string, sourceScopeId: ScopeId) => Atom.Atom<AsyncResult.AsyncResult<readonly {
31
+ readonly value: {
32
+ readonly text: string;
33
+ readonly kind: "text";
34
+ } | {
35
+ readonly secretId: string & import("effect/Brand").Brand<"SecretId">;
36
+ readonly kind: "secret";
37
+ readonly secretScopeId?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
38
+ } | {
39
+ readonly connectionId: string & import("effect/Brand").Brand<"ConnectionId">;
40
+ readonly kind: "connection";
41
+ };
42
+ readonly createdAt: Date;
43
+ readonly sourceId: string;
44
+ readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
45
+ readonly updatedAt: Date;
46
+ readonly slot: string;
47
+ readonly sourceScopeId: string & import("effect/Brand").Brand<"ScopeId">;
48
+ }[], import("@executor-js/api").InternalError | import("../sdk").GraphqlIntrospectionError | import("../sdk").GraphqlExtractionError>>;
49
+ export declare const addGraphqlSource: Atom.AtomResultFn<{
50
+ readonly params: {
51
+ readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
52
+ };
53
+ readonly payload: {
54
+ readonly endpoint: string;
55
+ readonly targetScope: string & import("effect/Brand").Brand<"ScopeId">;
56
+ readonly name?: string | undefined;
57
+ readonly namespace?: string | undefined;
58
+ readonly headers?: {
59
+ readonly [x: string]: string | {
60
+ readonly secretId: string;
61
+ readonly prefix?: string | undefined;
62
+ } | {
63
+ readonly kind: "binding";
64
+ readonly slot: string;
65
+ readonly prefix?: string | undefined;
66
+ } | {
67
+ readonly secretId: string;
68
+ readonly targetScope: string & import("effect/Brand").Brand<"ScopeId">;
69
+ readonly prefix?: string | undefined;
70
+ readonly secretScopeId?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
71
+ };
72
+ } | undefined;
73
+ readonly queryParams?: {
74
+ readonly [x: string]: string | {
75
+ readonly secretId: string;
76
+ readonly prefix?: string | undefined;
77
+ } | {
78
+ readonly kind: "binding";
79
+ readonly slot: string;
80
+ readonly prefix?: string | undefined;
81
+ } | {
82
+ readonly secretId: string;
83
+ readonly targetScope: string & import("effect/Brand").Brand<"ScopeId">;
84
+ readonly prefix?: string | undefined;
85
+ readonly secretScopeId?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
86
+ };
87
+ } | undefined;
88
+ readonly auth?: {
89
+ readonly kind: "none";
90
+ } | {
91
+ readonly kind: "oauth2";
92
+ readonly connectionSlot: string;
93
+ } | {
94
+ readonly connectionId: string;
95
+ readonly kind: "oauth2";
96
+ } | undefined;
97
+ readonly introspectionJson?: string | undefined;
98
+ readonly credentialTargetScope?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
99
+ };
100
+ readonly responseMode?: "decoded-only" | undefined;
101
+ readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
102
+ }, {
103
+ readonly namespace: string;
104
+ readonly toolCount: number;
105
+ }, import("@executor-js/api").InternalError | import("../sdk").GraphqlIntrospectionError | import("../sdk").GraphqlExtractionError>;
106
+ export declare const addGraphqlSourceOptimistic: (arg: string & import("effect/Brand").Brand<"ScopeId">) => Atom.AtomResultFn<{
26
107
  readonly params: {
27
108
  readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
28
109
  };
29
110
  readonly payload: {
30
111
  readonly endpoint: string;
112
+ readonly targetScope: string & import("effect/Brand").Brand<"ScopeId">;
31
113
  readonly name?: string | undefined;
32
114
  readonly namespace?: string | undefined;
33
115
  readonly headers?: {
34
- readonly [x: string]: unknown;
116
+ readonly [x: string]: string | {
117
+ readonly secretId: string;
118
+ readonly prefix?: string | undefined;
119
+ } | {
120
+ readonly kind: "binding";
121
+ readonly slot: string;
122
+ readonly prefix?: string | undefined;
123
+ } | {
124
+ readonly secretId: string;
125
+ readonly targetScope: string & import("effect/Brand").Brand<"ScopeId">;
126
+ readonly prefix?: string | undefined;
127
+ readonly secretScopeId?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
128
+ };
35
129
  } | undefined;
36
130
  readonly queryParams?: {
37
- readonly [x: string]: unknown;
131
+ readonly [x: string]: string | {
132
+ readonly secretId: string;
133
+ readonly prefix?: string | undefined;
134
+ } | {
135
+ readonly kind: "binding";
136
+ readonly slot: string;
137
+ readonly prefix?: string | undefined;
138
+ } | {
139
+ readonly secretId: string;
140
+ readonly targetScope: string & import("effect/Brand").Brand<"ScopeId">;
141
+ readonly prefix?: string | undefined;
142
+ readonly secretScopeId?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
143
+ };
38
144
  } | undefined;
39
145
  readonly auth?: {
40
146
  readonly kind: "none";
147
+ } | {
148
+ readonly kind: "oauth2";
149
+ readonly connectionSlot: string;
41
150
  } | {
42
151
  readonly connectionId: string;
43
152
  readonly kind: "oauth2";
44
153
  } | undefined;
45
154
  readonly introspectionJson?: string | undefined;
155
+ readonly credentialTargetScope?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
46
156
  };
47
157
  readonly responseMode?: "decoded-only" | undefined;
48
158
  readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
@@ -50,29 +160,115 @@ export declare const addGraphqlSource: import("effect/unstable/reactivity/Atom")
50
160
  readonly namespace: string;
51
161
  readonly toolCount: number;
52
162
  }, import("@executor-js/api").InternalError | import("../sdk").GraphqlIntrospectionError | import("../sdk").GraphqlExtractionError>;
53
- export declare const updateGraphqlSource: import("effect/unstable/reactivity/Atom").AtomResultFn<{
163
+ export declare const updateGraphqlSource: Atom.AtomResultFn<{
54
164
  readonly params: {
55
165
  readonly namespace: string;
56
166
  readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
57
167
  };
58
168
  readonly payload: {
169
+ readonly sourceScope: string & import("effect/Brand").Brand<"ScopeId">;
59
170
  readonly name?: string | undefined;
60
171
  readonly endpoint?: string | undefined;
61
172
  readonly headers?: {
62
- readonly [x: string]: unknown;
173
+ readonly [x: string]: string | {
174
+ readonly secretId: string;
175
+ readonly prefix?: string | undefined;
176
+ } | {
177
+ readonly kind: "binding";
178
+ readonly slot: string;
179
+ readonly prefix?: string | undefined;
180
+ } | {
181
+ readonly secretId: string;
182
+ readonly targetScope: string & import("effect/Brand").Brand<"ScopeId">;
183
+ readonly prefix?: string | undefined;
184
+ readonly secretScopeId?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
185
+ };
63
186
  } | undefined;
64
187
  readonly queryParams?: {
65
- readonly [x: string]: unknown;
188
+ readonly [x: string]: string | {
189
+ readonly secretId: string;
190
+ readonly prefix?: string | undefined;
191
+ } | {
192
+ readonly kind: "binding";
193
+ readonly slot: string;
194
+ readonly prefix?: string | undefined;
195
+ } | {
196
+ readonly secretId: string;
197
+ readonly targetScope: string & import("effect/Brand").Brand<"ScopeId">;
198
+ readonly prefix?: string | undefined;
199
+ readonly secretScopeId?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
200
+ };
66
201
  } | undefined;
67
202
  readonly auth?: {
68
203
  readonly kind: "none";
204
+ } | {
205
+ readonly kind: "oauth2";
206
+ readonly connectionSlot: string;
69
207
  } | {
70
208
  readonly connectionId: string;
71
209
  readonly kind: "oauth2";
72
210
  } | undefined;
211
+ readonly credentialTargetScope?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
73
212
  };
74
213
  readonly responseMode?: "decoded-only" | undefined;
75
214
  readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
76
215
  }, {
77
216
  readonly updated: boolean;
78
217
  }, import("@executor-js/api").InternalError | import("../sdk").GraphqlIntrospectionError | import("../sdk").GraphqlExtractionError>;
218
+ export declare const setGraphqlSourceBinding: Atom.AtomResultFn<{
219
+ readonly params: {
220
+ readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
221
+ };
222
+ readonly payload: {
223
+ readonly value: {
224
+ readonly text: string;
225
+ readonly kind: "text";
226
+ } | {
227
+ readonly secretId: string & import("effect/Brand").Brand<"SecretId">;
228
+ readonly kind: "secret";
229
+ readonly secretScopeId?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
230
+ } | {
231
+ readonly connectionId: string & import("effect/Brand").Brand<"ConnectionId">;
232
+ readonly kind: "connection";
233
+ };
234
+ readonly sourceId: string;
235
+ readonly scope: string & import("effect/Brand").Brand<"ScopeId">;
236
+ readonly slot: string;
237
+ readonly sourceScope: string & import("effect/Brand").Brand<"ScopeId">;
238
+ };
239
+ readonly responseMode?: "decoded-only" | undefined;
240
+ readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
241
+ }, {
242
+ readonly value: {
243
+ readonly text: string;
244
+ readonly kind: "text";
245
+ } | {
246
+ readonly secretId: string & import("effect/Brand").Brand<"SecretId">;
247
+ readonly kind: "secret";
248
+ readonly secretScopeId?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
249
+ } | {
250
+ readonly connectionId: string & import("effect/Brand").Brand<"ConnectionId">;
251
+ readonly kind: "connection";
252
+ };
253
+ readonly createdAt: Date;
254
+ readonly sourceId: string;
255
+ readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
256
+ readonly updatedAt: Date;
257
+ readonly slot: string;
258
+ readonly sourceScopeId: string & import("effect/Brand").Brand<"ScopeId">;
259
+ }, import("@executor-js/api").InternalError | import("../sdk").GraphqlIntrospectionError | import("../sdk").GraphqlExtractionError>;
260
+ export declare const removeGraphqlSourceBinding: Atom.AtomResultFn<{
261
+ readonly params: {
262
+ readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
263
+ };
264
+ readonly payload: {
265
+ readonly sourceId: string;
266
+ readonly scope: string & import("effect/Brand").Brand<"ScopeId">;
267
+ readonly slot: string;
268
+ readonly sourceScope: string & import("effect/Brand").Brand<"ScopeId">;
269
+ };
270
+ readonly responseMode?: "decoded-only" | undefined;
271
+ readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
272
+ }, {
273
+ readonly removed: boolean;
274
+ }, import("@executor-js/api").InternalError | import("../sdk").GraphqlIntrospectionError | import("../sdk").GraphqlExtractionError>;
@@ -1,22 +1,51 @@
1
1
  export declare const GraphqlClient: import("effect/unstable/reactivity/AtomHttpApi").AtomHttpApiClient<"Plugin_graphqlClient", `Plugin_${string}Client`, import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"graphql", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"addSource", "POST", "/scopes/:scopeId/graphql/sources", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
2
2
  scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
3
3
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
4
+ readonly targetScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
4
5
  readonly endpoint: import("effect/Schema").String;
5
6
  readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
6
7
  readonly introspectionJson: import("effect/Schema").optional<import("effect/Schema").String>;
7
8
  readonly namespace: import("effect/Schema").optional<import("effect/Schema").String>;
8
- readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
9
- readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
10
- readonly auth: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
9
+ readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
10
+ readonly secretId: import("effect/Schema").String;
11
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
12
+ readonly targetScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
13
+ readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
14
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
15
+ readonly secretId: import("effect/Schema").String;
16
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
17
+ }>]>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
18
+ readonly kind: import("effect/Schema").Literal<"binding">;
19
+ readonly slot: import("effect/Schema").String;
20
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
21
+ }>]>]>>>;
22
+ readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
23
+ readonly secretId: import("effect/Schema").String;
24
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
25
+ readonly targetScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
26
+ readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
27
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
28
+ readonly secretId: import("effect/Schema").String;
29
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
30
+ }>]>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
31
+ readonly kind: import("effect/Schema").Literal<"binding">;
32
+ readonly slot: import("effect/Schema").String;
33
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
34
+ }>]>]>>>;
35
+ readonly credentialTargetScope: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
36
+ readonly auth: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
11
37
  readonly kind: import("effect/Schema").Literal<"none">;
12
38
  }>, import("effect/Schema").Struct<{
39
+ readonly kind: import("effect/Schema").Literal<"oauth2">;
40
+ readonly connectionSlot: import("effect/Schema").String;
41
+ }>]>, import("effect/Schema").Struct<{
13
42
  readonly kind: import("effect/Schema").Literal<"oauth2">;
14
43
  readonly connectionId: import("effect/Schema").String;
15
44
  }>]>>;
16
45
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
17
46
  readonly toolCount: import("effect/Schema").Number;
18
47
  readonly namespace: import("effect/Schema").String;
19
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError | import("effect/Schema").decodeTo<import("effect/Schema").declareConstructor<import("../sdk").GraphqlIntrospectionError, {
48
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").InternalError | import("effect/Schema").decodeTo<import("effect/Schema").declareConstructor<import("../sdk").GraphqlIntrospectionError, {
20
49
  readonly message: string;
21
50
  readonly _tag: "GraphqlIntrospectionError";
22
51
  }, readonly [import("effect/Schema").TaggedStruct<"GraphqlIntrospectionError", {
@@ -41,23 +70,26 @@ export declare const GraphqlClient: import("effect/unstable/reactivity/AtomHttpA
41
70
  namespace: import("effect/Schema").String;
42
71
  }>>, 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").NullOr<import("effect/Schema").Struct<{
43
72
  readonly namespace: import("effect/Schema").String;
73
+ readonly scope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
44
74
  readonly name: import("effect/Schema").String;
45
75
  readonly endpoint: import("effect/Schema").String;
46
76
  readonly headers: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
47
- readonly secretId: import("effect/Schema").String;
77
+ readonly kind: import("effect/Schema").Literal<"binding">;
78
+ readonly slot: import("effect/Schema").String;
48
79
  readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
49
80
  }>]>>;
50
81
  readonly queryParams: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
51
- readonly secretId: import("effect/Schema").String;
82
+ readonly kind: import("effect/Schema").Literal<"binding">;
83
+ readonly slot: import("effect/Schema").String;
52
84
  readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
53
85
  }>]>>;
54
86
  readonly auth: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
55
87
  readonly kind: import("effect/Schema").Literal<"none">;
56
88
  }>, import("effect/Schema").Struct<{
57
89
  readonly kind: import("effect/Schema").Literal<"oauth2">;
58
- readonly connectionId: import("effect/Schema").String;
90
+ readonly connectionSlot: import("effect/Schema").String;
59
91
  }>]>;
60
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError | import("effect/Schema").decodeTo<import("effect/Schema").declareConstructor<import("../sdk").GraphqlIntrospectionError, {
92
+ }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").InternalError | import("effect/Schema").decodeTo<import("effect/Schema").declareConstructor<import("../sdk").GraphqlIntrospectionError, {
61
93
  readonly message: string;
62
94
  readonly _tag: "GraphqlIntrospectionError";
63
95
  }, readonly [import("effect/Schema").TaggedStruct<"GraphqlIntrospectionError", {
@@ -81,19 +113,175 @@ export declare const GraphqlClient: import("effect/unstable/reactivity/AtomHttpA
81
113
  scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
82
114
  namespace: import("effect/Schema").String;
83
115
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
116
+ readonly sourceScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
84
117
  readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
85
118
  readonly endpoint: import("effect/Schema").optional<import("effect/Schema").String>;
86
- readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
87
- readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
88
- readonly auth: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
119
+ readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
120
+ readonly secretId: import("effect/Schema").String;
121
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
122
+ readonly targetScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
123
+ readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
124
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
125
+ readonly secretId: import("effect/Schema").String;
126
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
127
+ }>]>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
128
+ readonly kind: import("effect/Schema").Literal<"binding">;
129
+ readonly slot: import("effect/Schema").String;
130
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
131
+ }>]>]>>>;
132
+ readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
133
+ readonly secretId: import("effect/Schema").String;
134
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
135
+ readonly targetScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
136
+ readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
137
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
138
+ readonly secretId: import("effect/Schema").String;
139
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
140
+ }>]>, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
141
+ readonly kind: import("effect/Schema").Literal<"binding">;
142
+ readonly slot: import("effect/Schema").String;
143
+ readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
144
+ }>]>]>>>;
145
+ readonly credentialTargetScope: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
146
+ readonly auth: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
89
147
  readonly kind: import("effect/Schema").Literal<"none">;
90
148
  }>, import("effect/Schema").Struct<{
149
+ readonly kind: import("effect/Schema").Literal<"oauth2">;
150
+ readonly connectionSlot: import("effect/Schema").String;
151
+ }>]>, import("effect/Schema").Struct<{
91
152
  readonly kind: import("effect/Schema").Literal<"oauth2">;
92
153
  readonly connectionId: import("effect/Schema").String;
93
154
  }>]>>;
94
155
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
95
156
  readonly updated: import("effect/Schema").Boolean;
96
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/api").InternalError | import("effect/Schema").decodeTo<import("effect/Schema").declareConstructor<import("../sdk").GraphqlIntrospectionError, {
157
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").InternalError | import("effect/Schema").decodeTo<import("effect/Schema").declareConstructor<import("../sdk").GraphqlIntrospectionError, {
158
+ readonly message: string;
159
+ readonly _tag: "GraphqlIntrospectionError";
160
+ }, readonly [import("effect/Schema").TaggedStruct<"GraphqlIntrospectionError", {
161
+ readonly message: import("effect/Schema").String;
162
+ }>], {
163
+ readonly message: string;
164
+ readonly _tag: "GraphqlIntrospectionError";
165
+ }>, import("effect/Schema").TaggedStruct<"GraphqlIntrospectionError", {
166
+ readonly message: import("effect/Schema").String;
167
+ }>, never, never> | import("effect/Schema").decodeTo<import("effect/Schema").declareConstructor<import("../sdk").GraphqlExtractionError, {
168
+ readonly message: string;
169
+ readonly _tag: "GraphqlExtractionError";
170
+ }, readonly [import("effect/Schema").TaggedStruct<"GraphqlExtractionError", {
171
+ readonly message: import("effect/Schema").String;
172
+ }>], {
173
+ readonly message: string;
174
+ readonly _tag: "GraphqlExtractionError";
175
+ }>, import("effect/Schema").TaggedStruct<"GraphqlExtractionError", {
176
+ readonly message: import("effect/Schema").String;
177
+ }>, never, never>>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listSourceBindings", "GET", "/scopes/:scopeId/graphql/sources/:namespace/base/:sourceScopeId/bindings", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
178
+ scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
179
+ namespace: import("effect/Schema").String;
180
+ sourceScopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
181
+ }>>, 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<{
182
+ readonly sourceId: import("effect/Schema").String;
183
+ readonly sourceScopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
184
+ readonly scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
185
+ readonly slot: import("effect/Schema").String;
186
+ readonly value: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
187
+ readonly kind: import("effect/Schema").Literal<"text">;
188
+ readonly text: import("effect/Schema").String;
189
+ }>, import("effect/Schema").Struct<{
190
+ readonly kind: import("effect/Schema").Literal<"secret">;
191
+ readonly secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
192
+ readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
193
+ }>, import("effect/Schema").Struct<{
194
+ readonly kind: import("effect/Schema").Literal<"connection">;
195
+ readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
196
+ }>]>;
197
+ readonly createdAt: import("effect/Schema").Date;
198
+ readonly updatedAt: import("effect/Schema").Date;
199
+ }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").InternalError | import("effect/Schema").decodeTo<import("effect/Schema").declareConstructor<import("../sdk").GraphqlIntrospectionError, {
200
+ readonly message: string;
201
+ readonly _tag: "GraphqlIntrospectionError";
202
+ }, readonly [import("effect/Schema").TaggedStruct<"GraphqlIntrospectionError", {
203
+ readonly message: import("effect/Schema").String;
204
+ }>], {
205
+ readonly message: string;
206
+ readonly _tag: "GraphqlIntrospectionError";
207
+ }>, import("effect/Schema").TaggedStruct<"GraphqlIntrospectionError", {
208
+ readonly message: import("effect/Schema").String;
209
+ }>, never, never> | import("effect/Schema").decodeTo<import("effect/Schema").declareConstructor<import("../sdk").GraphqlExtractionError, {
210
+ readonly message: string;
211
+ readonly _tag: "GraphqlExtractionError";
212
+ }, readonly [import("effect/Schema").TaggedStruct<"GraphqlExtractionError", {
213
+ readonly message: import("effect/Schema").String;
214
+ }>], {
215
+ readonly message: string;
216
+ readonly _tag: "GraphqlExtractionError";
217
+ }>, import("effect/Schema").TaggedStruct<"GraphqlExtractionError", {
218
+ readonly message: import("effect/Schema").String;
219
+ }>, never, never>>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setSourceBinding", "POST", "/scopes/:scopeId/graphql/source-bindings", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
220
+ scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
221
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
222
+ readonly sourceId: import("effect/Schema").String;
223
+ readonly sourceScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
224
+ readonly scope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
225
+ readonly slot: import("effect/Schema").String;
226
+ readonly value: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
227
+ readonly kind: import("effect/Schema").Literal<"text">;
228
+ readonly text: import("effect/Schema").String;
229
+ }>, import("effect/Schema").Struct<{
230
+ readonly kind: import("effect/Schema").Literal<"secret">;
231
+ readonly secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
232
+ readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
233
+ }>, import("effect/Schema").Struct<{
234
+ readonly kind: import("effect/Schema").Literal<"connection">;
235
+ readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
236
+ }>]>;
237
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
238
+ readonly sourceId: import("effect/Schema").String;
239
+ readonly sourceScopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
240
+ readonly scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
241
+ readonly slot: import("effect/Schema").String;
242
+ readonly value: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
243
+ readonly kind: import("effect/Schema").Literal<"text">;
244
+ readonly text: import("effect/Schema").String;
245
+ }>, import("effect/Schema").Struct<{
246
+ readonly kind: import("effect/Schema").Literal<"secret">;
247
+ readonly secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
248
+ readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
249
+ }>, import("effect/Schema").Struct<{
250
+ readonly kind: import("effect/Schema").Literal<"connection">;
251
+ readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
252
+ }>]>;
253
+ readonly createdAt: import("effect/Schema").Date;
254
+ readonly updatedAt: import("effect/Schema").Date;
255
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").InternalError | import("effect/Schema").decodeTo<import("effect/Schema").declareConstructor<import("../sdk").GraphqlIntrospectionError, {
256
+ readonly message: string;
257
+ readonly _tag: "GraphqlIntrospectionError";
258
+ }, readonly [import("effect/Schema").TaggedStruct<"GraphqlIntrospectionError", {
259
+ readonly message: import("effect/Schema").String;
260
+ }>], {
261
+ readonly message: string;
262
+ readonly _tag: "GraphqlIntrospectionError";
263
+ }>, import("effect/Schema").TaggedStruct<"GraphqlIntrospectionError", {
264
+ readonly message: import("effect/Schema").String;
265
+ }>, never, never> | import("effect/Schema").decodeTo<import("effect/Schema").declareConstructor<import("../sdk").GraphqlExtractionError, {
266
+ readonly message: string;
267
+ readonly _tag: "GraphqlExtractionError";
268
+ }, readonly [import("effect/Schema").TaggedStruct<"GraphqlExtractionError", {
269
+ readonly message: import("effect/Schema").String;
270
+ }>], {
271
+ readonly message: string;
272
+ readonly _tag: "GraphqlExtractionError";
273
+ }>, import("effect/Schema").TaggedStruct<"GraphqlExtractionError", {
274
+ readonly message: import("effect/Schema").String;
275
+ }>, never, never>>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"removeSourceBinding", "POST", "/scopes/:scopeId/graphql/source-bindings/remove", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
276
+ scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
277
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
278
+ readonly sourceId: import("effect/Schema").String;
279
+ readonly sourceScope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
280
+ readonly slot: import("effect/Schema").String;
281
+ readonly scope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
282
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
283
+ readonly removed: import("effect/Schema").Boolean;
284
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").InternalError | import("effect/Schema").decodeTo<import("effect/Schema").declareConstructor<import("../sdk").GraphqlIntrospectionError, {
97
285
  readonly message: string;
98
286
  readonly _tag: "GraphqlIntrospectionError";
99
287
  }, readonly [import("effect/Schema").TaggedStruct<"GraphqlIntrospectionError", {
@@ -4,4 +4,4 @@ export { invoke, invokeWithLayer, resolveHeaders } from "./invoke";
4
4
  export { graphqlPlugin, type GraphqlSourceConfig, type GraphqlPluginExtension, type GraphqlPluginOptions, type GraphqlUpdateSourceInput, } from "./plugin";
5
5
  export { graphqlSchema, makeDefaultGraphqlStore, type GraphqlSchema, type GraphqlStore, type StoredGraphqlSource, type StoredOperation, } from "./store";
6
6
  export { GraphqlIntrospectionError, GraphqlExtractionError, GraphqlInvocationError, } from "./errors";
7
- export { ExtractedField, ExtractionResult, GraphqlArgument, GraphqlOperationKind, GraphqlSourceAuth, InvocationConfig, InvocationResult, OperationBinding, HeaderValue, type QueryParamValue, } from "./types";
7
+ export { ExtractedField, ExtractionResult, GraphqlArgument, GraphqlCredentialInput, GraphqlOperationKind, GraphqlSourceAuth, GraphqlSourceAuthInput, GraphqlSourceBindingInput, GraphqlSourceBindingRef, GraphqlSourceBindingValue, InvocationConfig, InvocationResult, OperationBinding, HeaderValue, QueryParamValue, ConfiguredGraphqlCredentialValue, GRAPHQL_OAUTH_CONNECTION_SLOT, graphqlHeaderSlot, graphqlQueryParamSlot, } from "./types";