@executor-js/plugin-graphql 1.5.1 → 1.5.3
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/package.json +3 -3
- package/dist/api/group.d.ts +0 -158
- package/dist/api/handlers.d.ts +0 -17
- package/dist/api/index.d.ts +0 -169
- package/dist/react/AddGraphqlSource.d.ts +0 -5
- package/dist/react/EditGraphqlSource.d.ts +0 -4
- package/dist/react/GraphqlAccountsPanel.d.ts +0 -6
- package/dist/react/GraphqlSignInButton.d.ts +0 -7
- package/dist/react/GraphqlSourceFields.d.ts +0 -8
- package/dist/react/atoms.d.ts +0 -124
- package/dist/react/auth-method-config.d.ts +0 -9
- package/dist/react/client.d.ts +0 -154
- package/dist/react/defaults.d.ts +0 -16
- package/dist/react/index.d.ts +0 -3
- package/dist/react/plugin-client.d.ts +0 -2
- package/dist/react/source-plugin.d.ts +0 -2
- package/dist/sdk/errors.d.ts +0 -43
- package/dist/sdk/extract.d.ts +0 -11
- package/dist/sdk/index.d.ts +0 -7
- package/dist/sdk/introspect.d.ts +0 -440
- package/dist/sdk/invoke.d.ts +0 -20
- package/dist/sdk/plugin.d.ts +0 -115
- package/dist/sdk/presets.d.ts +0 -10
- package/dist/sdk/store.d.ts +0 -18
- package/dist/sdk/types.d.ts +0 -185
- package/dist/testing/index.d.ts +0 -70
package/dist/sdk/introspect.d.ts
DELETED
|
@@ -1,440 +0,0 @@
|
|
|
1
|
-
import { Effect, Schema } from "effect";
|
|
2
|
-
import { HttpClient } from "effect/unstable/http";
|
|
3
|
-
import { GraphqlIntrospectionError } from "./errors";
|
|
4
|
-
declare const IntrospectionTypeRefSchema: Schema.Struct<{
|
|
5
|
-
readonly kind: Schema.String;
|
|
6
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
7
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
8
|
-
readonly kind: Schema.String;
|
|
9
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
10
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
11
|
-
readonly kind: Schema.String;
|
|
12
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
13
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
14
|
-
readonly kind: Schema.String;
|
|
15
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
16
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
17
|
-
readonly kind: Schema.String;
|
|
18
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
19
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
20
|
-
readonly kind: Schema.String;
|
|
21
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
22
|
-
readonly ofType: Schema.optional<Schema.Null>;
|
|
23
|
-
}>>>;
|
|
24
|
-
}>>>;
|
|
25
|
-
}>>>;
|
|
26
|
-
}>>>;
|
|
27
|
-
}>>>;
|
|
28
|
-
}>;
|
|
29
|
-
declare const IntrospectionInputValueSchema: Schema.Struct<{
|
|
30
|
-
readonly name: Schema.String;
|
|
31
|
-
readonly description: Schema.NullOr<Schema.String>;
|
|
32
|
-
readonly type: Schema.Struct<{
|
|
33
|
-
readonly kind: Schema.String;
|
|
34
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
35
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
36
|
-
readonly kind: Schema.String;
|
|
37
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
38
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
39
|
-
readonly kind: Schema.String;
|
|
40
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
41
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
42
|
-
readonly kind: Schema.String;
|
|
43
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
44
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
45
|
-
readonly kind: Schema.String;
|
|
46
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
47
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
48
|
-
readonly kind: Schema.String;
|
|
49
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
50
|
-
readonly ofType: Schema.optional<Schema.Null>;
|
|
51
|
-
}>>>;
|
|
52
|
-
}>>>;
|
|
53
|
-
}>>>;
|
|
54
|
-
}>>>;
|
|
55
|
-
}>>>;
|
|
56
|
-
}>;
|
|
57
|
-
readonly defaultValue: Schema.NullOr<Schema.String>;
|
|
58
|
-
}>;
|
|
59
|
-
declare const IntrospectionFieldSchema: Schema.Struct<{
|
|
60
|
-
readonly name: Schema.String;
|
|
61
|
-
readonly description: Schema.NullOr<Schema.String>;
|
|
62
|
-
readonly args: Schema.$Array<Schema.Struct<{
|
|
63
|
-
readonly name: Schema.String;
|
|
64
|
-
readonly description: Schema.NullOr<Schema.String>;
|
|
65
|
-
readonly type: Schema.Struct<{
|
|
66
|
-
readonly kind: Schema.String;
|
|
67
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
68
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
69
|
-
readonly kind: Schema.String;
|
|
70
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
71
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
72
|
-
readonly kind: Schema.String;
|
|
73
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
74
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
75
|
-
readonly kind: Schema.String;
|
|
76
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
77
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
78
|
-
readonly kind: Schema.String;
|
|
79
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
80
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
81
|
-
readonly kind: Schema.String;
|
|
82
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
83
|
-
readonly ofType: Schema.optional<Schema.Null>;
|
|
84
|
-
}>>>;
|
|
85
|
-
}>>>;
|
|
86
|
-
}>>>;
|
|
87
|
-
}>>>;
|
|
88
|
-
}>>>;
|
|
89
|
-
}>;
|
|
90
|
-
readonly defaultValue: Schema.NullOr<Schema.String>;
|
|
91
|
-
}>>;
|
|
92
|
-
readonly type: Schema.Struct<{
|
|
93
|
-
readonly kind: Schema.String;
|
|
94
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
95
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
96
|
-
readonly kind: Schema.String;
|
|
97
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
98
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
99
|
-
readonly kind: Schema.String;
|
|
100
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
101
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
102
|
-
readonly kind: Schema.String;
|
|
103
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
104
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
105
|
-
readonly kind: Schema.String;
|
|
106
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
107
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
108
|
-
readonly kind: Schema.String;
|
|
109
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
110
|
-
readonly ofType: Schema.optional<Schema.Null>;
|
|
111
|
-
}>>>;
|
|
112
|
-
}>>>;
|
|
113
|
-
}>>>;
|
|
114
|
-
}>>>;
|
|
115
|
-
}>>>;
|
|
116
|
-
}>;
|
|
117
|
-
}>;
|
|
118
|
-
declare const IntrospectionTypeSchema: Schema.Struct<{
|
|
119
|
-
readonly kind: Schema.String;
|
|
120
|
-
readonly name: Schema.String;
|
|
121
|
-
readonly description: Schema.NullOr<Schema.String>;
|
|
122
|
-
readonly fields: Schema.NullOr<Schema.$Array<Schema.Struct<{
|
|
123
|
-
readonly name: Schema.String;
|
|
124
|
-
readonly description: Schema.NullOr<Schema.String>;
|
|
125
|
-
readonly args: Schema.$Array<Schema.Struct<{
|
|
126
|
-
readonly name: Schema.String;
|
|
127
|
-
readonly description: Schema.NullOr<Schema.String>;
|
|
128
|
-
readonly type: Schema.Struct<{
|
|
129
|
-
readonly kind: Schema.String;
|
|
130
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
131
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
132
|
-
readonly kind: Schema.String;
|
|
133
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
134
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
135
|
-
readonly kind: Schema.String;
|
|
136
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
137
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
138
|
-
readonly kind: Schema.String;
|
|
139
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
140
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
141
|
-
readonly kind: Schema.String;
|
|
142
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
143
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
144
|
-
readonly kind: Schema.String;
|
|
145
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
146
|
-
readonly ofType: Schema.optional<Schema.Null>;
|
|
147
|
-
}>>>;
|
|
148
|
-
}>>>;
|
|
149
|
-
}>>>;
|
|
150
|
-
}>>>;
|
|
151
|
-
}>>>;
|
|
152
|
-
}>;
|
|
153
|
-
readonly defaultValue: Schema.NullOr<Schema.String>;
|
|
154
|
-
}>>;
|
|
155
|
-
readonly type: Schema.Struct<{
|
|
156
|
-
readonly kind: Schema.String;
|
|
157
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
158
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
159
|
-
readonly kind: Schema.String;
|
|
160
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
161
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
162
|
-
readonly kind: Schema.String;
|
|
163
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
164
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
165
|
-
readonly kind: Schema.String;
|
|
166
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
167
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
168
|
-
readonly kind: Schema.String;
|
|
169
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
170
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
171
|
-
readonly kind: Schema.String;
|
|
172
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
173
|
-
readonly ofType: Schema.optional<Schema.Null>;
|
|
174
|
-
}>>>;
|
|
175
|
-
}>>>;
|
|
176
|
-
}>>>;
|
|
177
|
-
}>>>;
|
|
178
|
-
}>>>;
|
|
179
|
-
}>;
|
|
180
|
-
}>>>;
|
|
181
|
-
readonly inputFields: Schema.NullOr<Schema.$Array<Schema.Struct<{
|
|
182
|
-
readonly name: Schema.String;
|
|
183
|
-
readonly description: Schema.NullOr<Schema.String>;
|
|
184
|
-
readonly type: Schema.Struct<{
|
|
185
|
-
readonly kind: Schema.String;
|
|
186
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
187
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
188
|
-
readonly kind: Schema.String;
|
|
189
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
190
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
191
|
-
readonly kind: Schema.String;
|
|
192
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
193
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
194
|
-
readonly kind: Schema.String;
|
|
195
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
196
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
197
|
-
readonly kind: Schema.String;
|
|
198
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
199
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
200
|
-
readonly kind: Schema.String;
|
|
201
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
202
|
-
readonly ofType: Schema.optional<Schema.Null>;
|
|
203
|
-
}>>>;
|
|
204
|
-
}>>>;
|
|
205
|
-
}>>>;
|
|
206
|
-
}>>>;
|
|
207
|
-
}>>>;
|
|
208
|
-
}>;
|
|
209
|
-
readonly defaultValue: Schema.NullOr<Schema.String>;
|
|
210
|
-
}>>>;
|
|
211
|
-
readonly enumValues: Schema.NullOr<Schema.$Array<Schema.Struct<{
|
|
212
|
-
readonly name: Schema.String;
|
|
213
|
-
readonly description: Schema.NullOr<Schema.String>;
|
|
214
|
-
}>>>;
|
|
215
|
-
}>;
|
|
216
|
-
declare const IntrospectionResultSchema: Schema.Struct<{
|
|
217
|
-
readonly __schema: Schema.Struct<{
|
|
218
|
-
readonly queryType: Schema.NullOr<Schema.Struct<{
|
|
219
|
-
readonly name: Schema.String;
|
|
220
|
-
}>>;
|
|
221
|
-
readonly mutationType: Schema.NullOr<Schema.Struct<{
|
|
222
|
-
readonly name: Schema.String;
|
|
223
|
-
}>>;
|
|
224
|
-
readonly types: Schema.$Array<Schema.Struct<{
|
|
225
|
-
readonly kind: Schema.String;
|
|
226
|
-
readonly name: Schema.String;
|
|
227
|
-
readonly description: Schema.NullOr<Schema.String>;
|
|
228
|
-
readonly fields: Schema.NullOr<Schema.$Array<Schema.Struct<{
|
|
229
|
-
readonly name: Schema.String;
|
|
230
|
-
readonly description: Schema.NullOr<Schema.String>;
|
|
231
|
-
readonly args: Schema.$Array<Schema.Struct<{
|
|
232
|
-
readonly name: Schema.String;
|
|
233
|
-
readonly description: Schema.NullOr<Schema.String>;
|
|
234
|
-
readonly type: Schema.Struct<{
|
|
235
|
-
readonly kind: Schema.String;
|
|
236
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
237
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
238
|
-
readonly kind: Schema.String;
|
|
239
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
240
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
241
|
-
readonly kind: Schema.String;
|
|
242
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
243
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
244
|
-
readonly kind: Schema.String;
|
|
245
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
246
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
247
|
-
readonly kind: Schema.String;
|
|
248
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
249
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
250
|
-
readonly kind: Schema.String;
|
|
251
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
252
|
-
readonly ofType: Schema.optional<Schema.Null>;
|
|
253
|
-
}>>>;
|
|
254
|
-
}>>>;
|
|
255
|
-
}>>>;
|
|
256
|
-
}>>>;
|
|
257
|
-
}>>>;
|
|
258
|
-
}>;
|
|
259
|
-
readonly defaultValue: Schema.NullOr<Schema.String>;
|
|
260
|
-
}>>;
|
|
261
|
-
readonly type: Schema.Struct<{
|
|
262
|
-
readonly kind: Schema.String;
|
|
263
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
264
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
265
|
-
readonly kind: Schema.String;
|
|
266
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
267
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
268
|
-
readonly kind: Schema.String;
|
|
269
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
270
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
271
|
-
readonly kind: Schema.String;
|
|
272
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
273
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
274
|
-
readonly kind: Schema.String;
|
|
275
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
276
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
277
|
-
readonly kind: Schema.String;
|
|
278
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
279
|
-
readonly ofType: Schema.optional<Schema.Null>;
|
|
280
|
-
}>>>;
|
|
281
|
-
}>>>;
|
|
282
|
-
}>>>;
|
|
283
|
-
}>>>;
|
|
284
|
-
}>>>;
|
|
285
|
-
}>;
|
|
286
|
-
}>>>;
|
|
287
|
-
readonly inputFields: Schema.NullOr<Schema.$Array<Schema.Struct<{
|
|
288
|
-
readonly name: Schema.String;
|
|
289
|
-
readonly description: Schema.NullOr<Schema.String>;
|
|
290
|
-
readonly type: Schema.Struct<{
|
|
291
|
-
readonly kind: Schema.String;
|
|
292
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
293
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
294
|
-
readonly kind: Schema.String;
|
|
295
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
296
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
297
|
-
readonly kind: Schema.String;
|
|
298
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
299
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
300
|
-
readonly kind: Schema.String;
|
|
301
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
302
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
303
|
-
readonly kind: Schema.String;
|
|
304
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
305
|
-
readonly ofType: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
306
|
-
readonly kind: Schema.String;
|
|
307
|
-
readonly name: Schema.NullOr<Schema.String>;
|
|
308
|
-
readonly ofType: Schema.optional<Schema.Null>;
|
|
309
|
-
}>>>;
|
|
310
|
-
}>>>;
|
|
311
|
-
}>>>;
|
|
312
|
-
}>>>;
|
|
313
|
-
}>>>;
|
|
314
|
-
}>;
|
|
315
|
-
readonly defaultValue: Schema.NullOr<Schema.String>;
|
|
316
|
-
}>>>;
|
|
317
|
-
readonly enumValues: Schema.NullOr<Schema.$Array<Schema.Struct<{
|
|
318
|
-
readonly name: Schema.String;
|
|
319
|
-
readonly description: Schema.NullOr<Schema.String>;
|
|
320
|
-
}>>>;
|
|
321
|
-
}>>;
|
|
322
|
-
}>;
|
|
323
|
-
}>;
|
|
324
|
-
export type IntrospectionTypeRef = typeof IntrospectionTypeRefSchema.Type;
|
|
325
|
-
export type IntrospectionInputValue = typeof IntrospectionInputValueSchema.Type;
|
|
326
|
-
export type IntrospectionField = typeof IntrospectionFieldSchema.Type;
|
|
327
|
-
export type IntrospectionEnumValue = NonNullable<(typeof IntrospectionTypeSchema.Type)["enumValues"]>[number];
|
|
328
|
-
export type IntrospectionType = typeof IntrospectionTypeSchema.Type;
|
|
329
|
-
export type IntrospectionSchema = (typeof IntrospectionResultSchema.Type)["__schema"];
|
|
330
|
-
export type IntrospectionResult = typeof IntrospectionResultSchema.Type;
|
|
331
|
-
export declare const introspect: (endpoint: string, headers?: Record<string, string> | undefined, queryParams?: Record<string, string> | undefined) => Effect.Effect<{
|
|
332
|
-
readonly __schema: {
|
|
333
|
-
readonly types: readonly {
|
|
334
|
-
readonly name: string;
|
|
335
|
-
readonly description: string | null;
|
|
336
|
-
readonly kind: string;
|
|
337
|
-
readonly fields: readonly {
|
|
338
|
-
readonly name: string;
|
|
339
|
-
readonly type: {
|
|
340
|
-
readonly name: string | null;
|
|
341
|
-
readonly kind: string;
|
|
342
|
-
readonly ofType?: {
|
|
343
|
-
readonly name: string | null;
|
|
344
|
-
readonly kind: string;
|
|
345
|
-
readonly ofType?: {
|
|
346
|
-
readonly name: string | null;
|
|
347
|
-
readonly kind: string;
|
|
348
|
-
readonly ofType?: {
|
|
349
|
-
readonly name: string | null;
|
|
350
|
-
readonly kind: string;
|
|
351
|
-
readonly ofType?: {
|
|
352
|
-
readonly name: string | null;
|
|
353
|
-
readonly kind: string;
|
|
354
|
-
readonly ofType?: {
|
|
355
|
-
readonly name: string | null;
|
|
356
|
-
readonly kind: string;
|
|
357
|
-
readonly ofType?: null | undefined;
|
|
358
|
-
} | null | undefined;
|
|
359
|
-
} | null | undefined;
|
|
360
|
-
} | null | undefined;
|
|
361
|
-
} | null | undefined;
|
|
362
|
-
} | null | undefined;
|
|
363
|
-
};
|
|
364
|
-
readonly description: string | null;
|
|
365
|
-
readonly args: readonly {
|
|
366
|
-
readonly name: string;
|
|
367
|
-
readonly type: {
|
|
368
|
-
readonly name: string | null;
|
|
369
|
-
readonly kind: string;
|
|
370
|
-
readonly ofType?: {
|
|
371
|
-
readonly name: string | null;
|
|
372
|
-
readonly kind: string;
|
|
373
|
-
readonly ofType?: {
|
|
374
|
-
readonly name: string | null;
|
|
375
|
-
readonly kind: string;
|
|
376
|
-
readonly ofType?: {
|
|
377
|
-
readonly name: string | null;
|
|
378
|
-
readonly kind: string;
|
|
379
|
-
readonly ofType?: {
|
|
380
|
-
readonly name: string | null;
|
|
381
|
-
readonly kind: string;
|
|
382
|
-
readonly ofType?: {
|
|
383
|
-
readonly name: string | null;
|
|
384
|
-
readonly kind: string;
|
|
385
|
-
readonly ofType?: null | undefined;
|
|
386
|
-
} | null | undefined;
|
|
387
|
-
} | null | undefined;
|
|
388
|
-
} | null | undefined;
|
|
389
|
-
} | null | undefined;
|
|
390
|
-
} | null | undefined;
|
|
391
|
-
};
|
|
392
|
-
readonly description: string | null;
|
|
393
|
-
readonly defaultValue: string | null;
|
|
394
|
-
}[];
|
|
395
|
-
}[] | null;
|
|
396
|
-
readonly inputFields: readonly {
|
|
397
|
-
readonly name: string;
|
|
398
|
-
readonly type: {
|
|
399
|
-
readonly name: string | null;
|
|
400
|
-
readonly kind: string;
|
|
401
|
-
readonly ofType?: {
|
|
402
|
-
readonly name: string | null;
|
|
403
|
-
readonly kind: string;
|
|
404
|
-
readonly ofType?: {
|
|
405
|
-
readonly name: string | null;
|
|
406
|
-
readonly kind: string;
|
|
407
|
-
readonly ofType?: {
|
|
408
|
-
readonly name: string | null;
|
|
409
|
-
readonly kind: string;
|
|
410
|
-
readonly ofType?: {
|
|
411
|
-
readonly name: string | null;
|
|
412
|
-
readonly kind: string;
|
|
413
|
-
readonly ofType?: {
|
|
414
|
-
readonly name: string | null;
|
|
415
|
-
readonly kind: string;
|
|
416
|
-
readonly ofType?: null | undefined;
|
|
417
|
-
} | null | undefined;
|
|
418
|
-
} | null | undefined;
|
|
419
|
-
} | null | undefined;
|
|
420
|
-
} | null | undefined;
|
|
421
|
-
} | null | undefined;
|
|
422
|
-
};
|
|
423
|
-
readonly description: string | null;
|
|
424
|
-
readonly defaultValue: string | null;
|
|
425
|
-
}[] | null;
|
|
426
|
-
readonly enumValues: readonly {
|
|
427
|
-
readonly name: string;
|
|
428
|
-
readonly description: string | null;
|
|
429
|
-
}[] | null;
|
|
430
|
-
}[];
|
|
431
|
-
readonly queryType: {
|
|
432
|
-
readonly name: string;
|
|
433
|
-
} | null;
|
|
434
|
-
readonly mutationType: {
|
|
435
|
-
readonly name: string;
|
|
436
|
-
} | null;
|
|
437
|
-
};
|
|
438
|
-
}, GraphqlIntrospectionError, HttpClient.HttpClient>;
|
|
439
|
-
export declare const parseIntrospectionJson: (text: string) => Effect.Effect<IntrospectionResult, GraphqlIntrospectionError>;
|
|
440
|
-
export {};
|
package/dist/sdk/invoke.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Effect, Layer } from "effect";
|
|
2
|
-
import { HttpClient } from "effect/unstable/http";
|
|
3
|
-
import { GraphqlInvocationError } from "./errors";
|
|
4
|
-
import { type OperationBinding } from "./types";
|
|
5
|
-
export declare const endpointForTelemetry: (endpoint: string) => string;
|
|
6
|
-
export declare const invoke: (operation: {
|
|
7
|
-
readonly kind: "query" | "mutation";
|
|
8
|
-
readonly fieldName: string;
|
|
9
|
-
readonly variableNames: readonly string[];
|
|
10
|
-
readonly operationString: string;
|
|
11
|
-
}, args: Record<string, unknown>, endpoint: string, resolvedHeaders: Record<string, string>, resolvedQueryParams?: Record<string, string> | undefined) => Effect.Effect<{
|
|
12
|
-
readonly data: unknown;
|
|
13
|
-
readonly status: number;
|
|
14
|
-
readonly errors: unknown;
|
|
15
|
-
}, import("effect/unstable/http/HttpClientError").HttpClientError | GraphqlInvocationError, HttpClient.HttpClient>;
|
|
16
|
-
export declare const invokeWithLayer: (operation: OperationBinding, args: Record<string, unknown>, endpoint: string, resolvedHeaders: Record<string, string>, resolvedQueryParams: Record<string, string>, httpClientLayer: Layer.Layer<HttpClient.HttpClient>) => Effect.Effect<{
|
|
17
|
-
readonly data: unknown;
|
|
18
|
-
readonly status: number;
|
|
19
|
-
readonly errors: unknown;
|
|
20
|
-
}, import("effect/unstable/http/HttpClientError").HttpClientError | GraphqlInvocationError, never>;
|
package/dist/sdk/plugin.d.ts
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { Effect, Schema } from "effect";
|
|
2
|
-
import type { Layer } from "effect";
|
|
3
|
-
import { HttpClient } from "effect/unstable/http";
|
|
4
|
-
import { IntegrationAlreadyExistsError, type AuthMethodDescriptor, type IntegrationRecord, type PluginCtx, type StorageFailure } from "@executor-js/sdk/core";
|
|
5
|
-
import { GraphqlIntrospectionError } from "./errors";
|
|
6
|
-
import { type GraphqlStore } from "./store";
|
|
7
|
-
import { AuthTemplate, GraphqlIntegrationConfig } from "./types";
|
|
8
|
-
/** Register a GraphQL integration in the catalog. `endpoint` is the GraphQL URL;
|
|
9
|
-
* `slug` (defaulted from the endpoint) is the catalog id; `introspectionJson`
|
|
10
|
-
* supplies the schema when the endpoint disables live introspection; `headers`
|
|
11
|
-
* / `queryParams` are static and also applied to add-time introspection;
|
|
12
|
-
* `authenticationTemplate` declares the auth methods a connection can apply
|
|
13
|
-
* through. */
|
|
14
|
-
declare const GraphqlAddIntegrationInputSchema: Schema.Struct<{
|
|
15
|
-
readonly endpoint: Schema.String;
|
|
16
|
-
readonly slug: Schema.optional<Schema.String>;
|
|
17
|
-
readonly name: Schema.optional<Schema.String>;
|
|
18
|
-
readonly introspectionJson: Schema.optional<Schema.String>;
|
|
19
|
-
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
20
|
-
readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
21
|
-
readonly authenticationTemplate: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
22
|
-
readonly kind: Schema.Literal<"apiKey">;
|
|
23
|
-
readonly slug: Schema.String;
|
|
24
|
-
readonly in: Schema.Literals<readonly ["header", "query"]>;
|
|
25
|
-
readonly name: Schema.String;
|
|
26
|
-
readonly prefix: Schema.optional<Schema.String>;
|
|
27
|
-
}>, Schema.Struct<{
|
|
28
|
-
readonly kind: Schema.Literal<"oauth2">;
|
|
29
|
-
readonly slug: Schema.String;
|
|
30
|
-
readonly header: Schema.optional<Schema.String>;
|
|
31
|
-
readonly prefix: Schema.optional<Schema.String>;
|
|
32
|
-
}>]>>>;
|
|
33
|
-
}>;
|
|
34
|
-
export type GraphqlAddIntegrationInput = typeof GraphqlAddIntegrationInputSchema.Type;
|
|
35
|
-
declare const GraphqlConfigureInputSchema: Schema.Struct<{
|
|
36
|
-
readonly name: Schema.optional<Schema.String>;
|
|
37
|
-
readonly endpoint: Schema.optional<Schema.String>;
|
|
38
|
-
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
39
|
-
readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
40
|
-
readonly authenticationTemplate: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
41
|
-
readonly kind: Schema.Literal<"apiKey">;
|
|
42
|
-
readonly slug: Schema.String;
|
|
43
|
-
readonly in: Schema.Literals<readonly ["header", "query"]>;
|
|
44
|
-
readonly name: Schema.String;
|
|
45
|
-
readonly prefix: Schema.optional<Schema.String>;
|
|
46
|
-
}>, Schema.Struct<{
|
|
47
|
-
readonly kind: Schema.Literal<"oauth2">;
|
|
48
|
-
readonly slug: Schema.String;
|
|
49
|
-
readonly header: Schema.optional<Schema.String>;
|
|
50
|
-
readonly prefix: Schema.optional<Schema.String>;
|
|
51
|
-
}>]>>>;
|
|
52
|
-
}>;
|
|
53
|
-
export type GraphqlConfigureInput = typeof GraphqlConfigureInputSchema.Type;
|
|
54
|
-
/** Input for the custom-method-create flow (HTTP `POST /graphql/integrations/
|
|
55
|
-
* :slug/config`). Unlike `configure` (which REPLACES the whole config for the
|
|
56
|
-
* generic repair path), `configureAuth` MERGE-APPENDS these templates onto the
|
|
57
|
-
* integration's existing `authenticationTemplate`, mirroring OpenAPI's
|
|
58
|
-
* `configure`. */
|
|
59
|
-
declare const GraphqlConfigureAuthInputSchema: Schema.Struct<{
|
|
60
|
-
readonly authenticationTemplate: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
61
|
-
readonly kind: Schema.Literal<"apiKey">;
|
|
62
|
-
readonly slug: Schema.String;
|
|
63
|
-
readonly in: Schema.Literals<readonly ["header", "query"]>;
|
|
64
|
-
readonly name: Schema.String;
|
|
65
|
-
readonly prefix: Schema.optional<Schema.String>;
|
|
66
|
-
}>, Schema.Struct<{
|
|
67
|
-
readonly kind: Schema.Literal<"oauth2">;
|
|
68
|
-
readonly slug: Schema.String;
|
|
69
|
-
readonly header: Schema.optional<Schema.String>;
|
|
70
|
-
readonly prefix: Schema.optional<Schema.String>;
|
|
71
|
-
}>]>>;
|
|
72
|
-
readonly mode: Schema.optional<Schema.Literals<readonly ["merge", "replace"]>>;
|
|
73
|
-
}>;
|
|
74
|
-
export type GraphqlConfigureAuthInput = typeof GraphqlConfigureAuthInputSchema.Type;
|
|
75
|
-
export declare const describeGraphqlAuthMethods: (record: IntegrationRecord) => readonly AuthMethodDescriptor[];
|
|
76
|
-
export declare const describeGraphqlIntegrationDisplay: (record: IntegrationRecord) => {
|
|
77
|
-
readonly url?: string;
|
|
78
|
-
};
|
|
79
|
-
declare const makeGraphqlExtension: (ctx: PluginCtx<GraphqlStore>) => {
|
|
80
|
-
/** Register a GraphQL integration (introspects + persists operations). */
|
|
81
|
-
addIntegration: (input: GraphqlAddIntegrationInput) => Effect.Effect<{
|
|
82
|
-
slug: string;
|
|
83
|
-
name: string;
|
|
84
|
-
toolCount: number;
|
|
85
|
-
}, StorageFailure | IntegrationAlreadyExistsError | GraphqlIntrospectionError | import("./errors").GraphqlExtractionError, never>;
|
|
86
|
-
/** Read the integration's stored config. */
|
|
87
|
-
getIntegration: (slug: string) => Effect.Effect<unknown, StorageFailure, never>;
|
|
88
|
-
/** Read the integration's decoded config (auth templates surfaced). */
|
|
89
|
-
getConfig: (slug: string) => Effect.Effect<GraphqlIntegrationConfig | null, StorageFailure>;
|
|
90
|
-
/** Merge-append custom auth methods (custom-method-create flow). */
|
|
91
|
-
configureAuth: (slug: string, input: GraphqlConfigureAuthInput) => Effect.Effect<readonly AuthTemplate[], StorageFailure>;
|
|
92
|
-
removeIntegration: (slug: string) => Effect.Effect<void, StorageFailure, never>;
|
|
93
|
-
configure: (slug: string, input: GraphqlConfigureInput) => Effect.Effect<void, StorageFailure, never>;
|
|
94
|
-
};
|
|
95
|
-
export type GraphqlPluginExtension = ReturnType<typeof makeGraphqlExtension>;
|
|
96
|
-
export interface GraphqlPluginOptions {
|
|
97
|
-
readonly httpClientLayer?: Layer.Layer<HttpClient.HttpClient>;
|
|
98
|
-
}
|
|
99
|
-
export declare const graphqlPlugin: import("@executor-js/sdk/core").ConfiguredPlugin<"graphql", {
|
|
100
|
-
/** Register a GraphQL integration (introspects + persists operations). */
|
|
101
|
-
addIntegration: (input: GraphqlAddIntegrationInput) => Effect.Effect<{
|
|
102
|
-
slug: string;
|
|
103
|
-
name: string;
|
|
104
|
-
toolCount: number;
|
|
105
|
-
}, StorageFailure | IntegrationAlreadyExistsError | GraphqlIntrospectionError | import("./errors").GraphqlExtractionError, never>;
|
|
106
|
-
/** Read the integration's stored config. */
|
|
107
|
-
getIntegration: (slug: string) => Effect.Effect<unknown, StorageFailure, never>;
|
|
108
|
-
/** Read the integration's decoded config (auth templates surfaced). */
|
|
109
|
-
getConfig: (slug: string) => Effect.Effect<GraphqlIntegrationConfig | null, StorageFailure>;
|
|
110
|
-
/** Merge-append custom auth methods (custom-method-create flow). */
|
|
111
|
-
configureAuth: (slug: string, input: GraphqlConfigureAuthInput) => Effect.Effect<readonly AuthTemplate[], StorageFailure>;
|
|
112
|
-
removeIntegration: (slug: string) => Effect.Effect<void, StorageFailure, never>;
|
|
113
|
-
configure: (slug: string, input: GraphqlConfigureInput) => Effect.Effect<void, StorageFailure, never>;
|
|
114
|
-
}, GraphqlStore, GraphqlPluginOptions, undefined, Layer.Layer<unknown, never, never>, import("effect/unstable/httpapi/HttpApiGroup").Any>;
|
|
115
|
-
export {};
|
package/dist/sdk/presets.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface GraphqlPreset {
|
|
2
|
-
readonly id: string;
|
|
3
|
-
readonly name: string;
|
|
4
|
-
readonly summary: string;
|
|
5
|
-
readonly url: string;
|
|
6
|
-
readonly endpoint: string;
|
|
7
|
-
readonly icon?: string;
|
|
8
|
-
readonly featured?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare const graphqlPresets: readonly GraphqlPreset[];
|
package/dist/sdk/store.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Effect } from "effect";
|
|
2
|
-
import { type StorageDeps, type StorageFailure } from "@executor-js/sdk/core";
|
|
3
|
-
import { OperationBinding } from "./types";
|
|
4
|
-
export interface StoredOperation {
|
|
5
|
-
/** The tool's leaf name, e.g. `query.hello`. */
|
|
6
|
-
readonly toolName: string;
|
|
7
|
-
/** The owning integration slug. */
|
|
8
|
-
readonly integration: string;
|
|
9
|
-
readonly binding: OperationBinding;
|
|
10
|
-
}
|
|
11
|
-
export interface GraphqlStore {
|
|
12
|
-
/** Replace the stored operation bindings for an integration. */
|
|
13
|
-
readonly replaceOperations: (integration: string, operations: readonly StoredOperation[]) => Effect.Effect<void, StorageFailure>;
|
|
14
|
-
readonly getOperation: (integration: string, toolName: string) => Effect.Effect<StoredOperation | null, StorageFailure>;
|
|
15
|
-
readonly listOperations: (integration: string) => Effect.Effect<readonly StoredOperation[], StorageFailure>;
|
|
16
|
-
readonly removeOperations: (integration: string) => Effect.Effect<void, StorageFailure>;
|
|
17
|
-
}
|
|
18
|
-
export declare const makeDefaultGraphqlStore: ({ pluginStorage }: StorageDeps) => GraphqlStore;
|