@executor-js/plugin-openapi 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 -188
- package/dist/api/handlers.d.ts +0 -7
- package/dist/api/index.d.ts +0 -271
- package/dist/react/AddOpenApiSource.d.ts +0 -8
- package/dist/react/EditOpenApiSource.d.ts +0 -4
- package/dist/react/GoogleProductPicker.d.ts +0 -9
- package/dist/react/OpenApiAccountsPanel.d.ts +0 -6
- package/dist/react/OpenApiSourceDetailsFields.d.ts +0 -19
- package/dist/react/atoms.d.ts +0 -279
- package/dist/react/auth-method-config.d.ts +0 -15
- package/dist/react/auth-method-config.test.d.ts +0 -1
- package/dist/react/client.d.ts +0 -184
- 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/client-credentials-oauth.test.d.ts +0 -1
- package/dist/sdk/config.d.ts +0 -75
- package/dist/sdk/configure.test.d.ts +0 -1
- package/dist/sdk/definitions.d.ts +0 -25
- package/dist/sdk/describe-auth-methods.test.d.ts +0 -1
- package/dist/sdk/errors.d.ts +0 -44
- package/dist/sdk/extract.d.ts +0 -59
- package/dist/sdk/form-urlencoded-body.test.d.ts +0 -1
- package/dist/sdk/google-bundle.test.d.ts +0 -1
- package/dist/sdk/google-discovery.d.ts +0 -43
- package/dist/sdk/google-discovery.test.d.ts +0 -1
- package/dist/sdk/google-oauth-batches.d.ts +0 -13
- package/dist/sdk/google-oauth-batches.test.d.ts +0 -1
- package/dist/sdk/google-oauth-scopes.d.ts +0 -3
- package/dist/sdk/google-oauth-scopes.test.d.ts +0 -1
- package/dist/sdk/google-presets.d.ts +0 -16
- package/dist/sdk/google-presets.test.d.ts +0 -1
- package/dist/sdk/google-product-picker-scopes.test.d.ts +0 -1
- package/dist/sdk/index.d.ts +0 -11
- package/dist/sdk/index.test.d.ts +0 -1
- package/dist/sdk/invoke.d.ts +0 -55
- package/dist/sdk/multi-scope-bearer.test.d.ts +0 -1
- package/dist/sdk/multi-scope-oauth.test.d.ts +0 -1
- package/dist/sdk/non-json-body.test.d.ts +0 -1
- package/dist/sdk/oauth-refresh.test.d.ts +0 -1
- package/dist/sdk/openapi-utils.d.ts +0 -57
- package/dist/sdk/parse.d.ts +0 -33
- package/dist/sdk/parse.test.d.ts +0 -1
- package/dist/sdk/plugin.d.ts +0 -163
- package/dist/sdk/plugin.test.d.ts +0 -1
- package/dist/sdk/presets.d.ts +0 -10
- package/dist/sdk/preview-oauth2.test.d.ts +0 -1
- package/dist/sdk/preview.d.ts +0 -269
- package/dist/sdk/query-serialization.test.d.ts +0 -1
- package/dist/sdk/real-specs.test.d.ts +0 -1
- package/dist/sdk/store.d.ts +0 -21
- package/dist/sdk/types.d.ts +0 -252
- package/dist/sdk/upstream-failures.test.d.ts +0 -1
- package/dist/sdk/usage-scope-isolation.test.d.ts +0 -1
- package/dist/testing/index.d.ts +0 -183
- package/dist/testing.test.d.ts +0 -1
package/dist/react/atoms.d.ts
DELETED
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
import type { IntegrationSlug } from "@executor-js/sdk/shared";
|
|
2
|
-
import * as Atom from "effect/unstable/reactivity/Atom";
|
|
3
|
-
export declare const openApiIntegrationAtom: (slug: IntegrationSlug) => Atom.Atom<import("effect/unstable/reactivity/AsyncResult").AsyncResult<{
|
|
4
|
-
readonly slug: string & import("effect/Brand").Brand<"IntegrationSlug">;
|
|
5
|
-
readonly description: string;
|
|
6
|
-
readonly kind: string;
|
|
7
|
-
readonly canRemove: boolean;
|
|
8
|
-
readonly canRefresh: boolean;
|
|
9
|
-
} | null, import("@executor-js/sdk").IntegrationAlreadyExistsError | import("@executor-js/sdk").InternalError | import("../sdk").OpenApiParseError | import("../sdk").OpenApiExtractionError | import("../sdk").OpenApiOAuthError>>;
|
|
10
|
-
export declare const openApiConfigAtom: (slug: IntegrationSlug) => Atom.Atom<import("effect/unstable/reactivity/AsyncResult").AsyncResult<{
|
|
11
|
-
readonly spec: string;
|
|
12
|
-
readonly headers?: {
|
|
13
|
-
readonly [x: string]: string;
|
|
14
|
-
} | undefined;
|
|
15
|
-
readonly baseUrl?: string | undefined;
|
|
16
|
-
readonly queryParams?: {
|
|
17
|
-
readonly [x: string]: string;
|
|
18
|
-
} | undefined;
|
|
19
|
-
readonly sourceUrl?: string | undefined;
|
|
20
|
-
readonly googleDiscoveryUrls?: readonly string[] | undefined;
|
|
21
|
-
readonly authenticationTemplate?: readonly ({
|
|
22
|
-
readonly type: "apiKey";
|
|
23
|
-
readonly slug: string;
|
|
24
|
-
readonly headers?: {
|
|
25
|
-
readonly [x: string]: string | readonly (string | {
|
|
26
|
-
readonly name: string;
|
|
27
|
-
readonly type: "variable";
|
|
28
|
-
})[];
|
|
29
|
-
} | undefined;
|
|
30
|
-
readonly queryParams?: {
|
|
31
|
-
readonly [x: string]: string | readonly (string | {
|
|
32
|
-
readonly name: string;
|
|
33
|
-
readonly type: "variable";
|
|
34
|
-
})[];
|
|
35
|
-
} | undefined;
|
|
36
|
-
} | {
|
|
37
|
-
readonly type: "oauth";
|
|
38
|
-
readonly slug: string;
|
|
39
|
-
readonly authorizationUrl: string;
|
|
40
|
-
readonly tokenUrl: string;
|
|
41
|
-
readonly scopes: readonly string[];
|
|
42
|
-
})[] | undefined;
|
|
43
|
-
} | null, import("@executor-js/sdk").IntegrationAlreadyExistsError | import("@executor-js/sdk").InternalError | import("../sdk").OpenApiParseError | import("../sdk").OpenApiExtractionError | import("../sdk").OpenApiOAuthError>>;
|
|
44
|
-
export declare const previewOpenApiSpec: Atom.AtomResultFn<{
|
|
45
|
-
readonly payload: {
|
|
46
|
-
readonly spec: string;
|
|
47
|
-
};
|
|
48
|
-
readonly responseMode?: "decoded-only" | undefined;
|
|
49
|
-
readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
|
|
50
|
-
}, {
|
|
51
|
-
readonly version: import("effect/Option").Option<string>;
|
|
52
|
-
readonly operations: readonly {
|
|
53
|
-
readonly method: "post" | "options" | "delete" | "get" | "put" | "patch" | "head" | "trace";
|
|
54
|
-
readonly deprecated: boolean;
|
|
55
|
-
readonly path: string;
|
|
56
|
-
readonly summary: import("effect/Option").Option<string>;
|
|
57
|
-
readonly tags: readonly string[];
|
|
58
|
-
readonly operationId: string;
|
|
59
|
-
}[];
|
|
60
|
-
readonly title: import("effect/Option").Option<string>;
|
|
61
|
-
readonly tags: readonly string[];
|
|
62
|
-
readonly servers: readonly {
|
|
63
|
-
readonly description: import("effect/Option").Option<string>;
|
|
64
|
-
readonly url: string;
|
|
65
|
-
readonly variables: import("effect/Option").Option<{
|
|
66
|
-
readonly [x: string]: {
|
|
67
|
-
readonly default: string;
|
|
68
|
-
readonly description: import("effect/Option").Option<string>;
|
|
69
|
-
readonly enum: import("effect/Option").Option<readonly string[]>;
|
|
70
|
-
};
|
|
71
|
-
}>;
|
|
72
|
-
}[];
|
|
73
|
-
readonly securitySchemes: readonly {
|
|
74
|
-
readonly name: string;
|
|
75
|
-
readonly type: "oauth2" | "http" | "apiKey" | "openIdConnect";
|
|
76
|
-
readonly in: import("effect/Option").Option<"header" | "query" | "cookie">;
|
|
77
|
-
readonly description: import("effect/Option").Option<string>;
|
|
78
|
-
readonly scheme: import("effect/Option").Option<string>;
|
|
79
|
-
readonly bearerFormat: import("effect/Option").Option<string>;
|
|
80
|
-
readonly headerName: import("effect/Option").Option<string>;
|
|
81
|
-
readonly flows: import("effect/Option").Option<{
|
|
82
|
-
readonly authorizationCode: import("effect/Option").Option<{
|
|
83
|
-
readonly authorizationUrl: string;
|
|
84
|
-
readonly tokenUrl: string;
|
|
85
|
-
readonly scopes: {
|
|
86
|
-
readonly [x: string]: string;
|
|
87
|
-
};
|
|
88
|
-
readonly refreshUrl: import("effect/Option").Option<string>;
|
|
89
|
-
}>;
|
|
90
|
-
readonly clientCredentials: import("effect/Option").Option<{
|
|
91
|
-
readonly tokenUrl: string;
|
|
92
|
-
readonly scopes: {
|
|
93
|
-
readonly [x: string]: string;
|
|
94
|
-
};
|
|
95
|
-
readonly refreshUrl: import("effect/Option").Option<string>;
|
|
96
|
-
}>;
|
|
97
|
-
}>;
|
|
98
|
-
readonly openIdConnectUrl: import("effect/Option").Option<string>;
|
|
99
|
-
}[];
|
|
100
|
-
readonly authStrategies: readonly {
|
|
101
|
-
readonly schemes: readonly string[];
|
|
102
|
-
}[];
|
|
103
|
-
readonly headerPresets: readonly {
|
|
104
|
-
readonly label: string;
|
|
105
|
-
readonly headers: {
|
|
106
|
-
readonly [x: string]: string | null;
|
|
107
|
-
};
|
|
108
|
-
readonly secretHeaders: readonly string[];
|
|
109
|
-
}[];
|
|
110
|
-
readonly oauth2Presets: readonly {
|
|
111
|
-
readonly label: string;
|
|
112
|
-
readonly authorizationUrl: import("effect/Option").Option<string>;
|
|
113
|
-
readonly tokenUrl: string;
|
|
114
|
-
readonly scopes: {
|
|
115
|
-
readonly [x: string]: string;
|
|
116
|
-
};
|
|
117
|
-
readonly refreshUrl: import("effect/Option").Option<string>;
|
|
118
|
-
readonly flow: "authorizationCode" | "clientCredentials";
|
|
119
|
-
readonly identityScopes: false | "auto" | readonly string[];
|
|
120
|
-
readonly securitySchemeName: string;
|
|
121
|
-
}[];
|
|
122
|
-
readonly operationCount: number;
|
|
123
|
-
}, import("@executor-js/sdk").IntegrationAlreadyExistsError | import("@executor-js/sdk").InternalError | import("../sdk").OpenApiParseError | import("../sdk").OpenApiExtractionError | import("../sdk").OpenApiOAuthError>;
|
|
124
|
-
export declare const addOpenApiSpec: Atom.AtomResultFn<{
|
|
125
|
-
readonly payload: {
|
|
126
|
-
readonly slug: string;
|
|
127
|
-
readonly spec: {
|
|
128
|
-
readonly kind: "url";
|
|
129
|
-
readonly url: string;
|
|
130
|
-
} | {
|
|
131
|
-
readonly value: string;
|
|
132
|
-
readonly kind: "blob";
|
|
133
|
-
} | {
|
|
134
|
-
readonly kind: "googleDiscovery";
|
|
135
|
-
readonly url: string;
|
|
136
|
-
} | {
|
|
137
|
-
readonly kind: "googleDiscoveryBundle";
|
|
138
|
-
readonly urls: readonly string[];
|
|
139
|
-
};
|
|
140
|
-
readonly description?: string | undefined;
|
|
141
|
-
readonly headers?: {
|
|
142
|
-
readonly [x: string]: string;
|
|
143
|
-
} | undefined;
|
|
144
|
-
readonly baseUrl?: string | undefined;
|
|
145
|
-
readonly queryParams?: {
|
|
146
|
-
readonly [x: string]: string;
|
|
147
|
-
} | undefined;
|
|
148
|
-
readonly authenticationTemplate?: readonly ({
|
|
149
|
-
readonly type: "apiKey";
|
|
150
|
-
readonly slug: string;
|
|
151
|
-
readonly headers?: {
|
|
152
|
-
readonly [x: string]: string | readonly (string | {
|
|
153
|
-
readonly name: string;
|
|
154
|
-
readonly type: "variable";
|
|
155
|
-
})[];
|
|
156
|
-
} | undefined;
|
|
157
|
-
readonly queryParams?: {
|
|
158
|
-
readonly [x: string]: string | readonly (string | {
|
|
159
|
-
readonly name: string;
|
|
160
|
-
readonly type: "variable";
|
|
161
|
-
})[];
|
|
162
|
-
} | undefined;
|
|
163
|
-
} | {
|
|
164
|
-
readonly type: "oauth";
|
|
165
|
-
readonly slug: string;
|
|
166
|
-
readonly authorizationUrl: string;
|
|
167
|
-
readonly tokenUrl: string;
|
|
168
|
-
readonly scopes: readonly string[];
|
|
169
|
-
})[] | undefined;
|
|
170
|
-
};
|
|
171
|
-
readonly responseMode?: "decoded-only" | undefined;
|
|
172
|
-
readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
|
|
173
|
-
}, {
|
|
174
|
-
readonly slug: string & import("effect/Brand").Brand<"IntegrationSlug">;
|
|
175
|
-
readonly toolCount: number;
|
|
176
|
-
}, import("@executor-js/sdk").IntegrationAlreadyExistsError | import("@executor-js/sdk").InternalError | import("../sdk").OpenApiParseError | import("../sdk").OpenApiExtractionError | import("../sdk").OpenApiOAuthError>;
|
|
177
|
-
export declare const removeOpenApiSpec: Atom.AtomResultFn<{
|
|
178
|
-
readonly params: {
|
|
179
|
-
readonly slug: string;
|
|
180
|
-
};
|
|
181
|
-
readonly responseMode?: "decoded-only" | undefined;
|
|
182
|
-
readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
|
|
183
|
-
}, void, import("@executor-js/sdk").IntegrationAlreadyExistsError | import("@executor-js/sdk").InternalError | import("../sdk").OpenApiParseError | import("../sdk").OpenApiExtractionError | import("../sdk").OpenApiOAuthError>;
|
|
184
|
-
export declare const openapiConfigure: Atom.AtomResultFn<{
|
|
185
|
-
readonly params: {
|
|
186
|
-
readonly slug: string;
|
|
187
|
-
};
|
|
188
|
-
readonly payload: {
|
|
189
|
-
readonly authenticationTemplate: readonly ({
|
|
190
|
-
readonly type: "apiKey";
|
|
191
|
-
readonly slug: string;
|
|
192
|
-
readonly headers?: {
|
|
193
|
-
readonly [x: string]: string | readonly (string | {
|
|
194
|
-
readonly name: string;
|
|
195
|
-
readonly type: "variable";
|
|
196
|
-
})[];
|
|
197
|
-
} | undefined;
|
|
198
|
-
readonly queryParams?: {
|
|
199
|
-
readonly [x: string]: string | readonly (string | {
|
|
200
|
-
readonly name: string;
|
|
201
|
-
readonly type: "variable";
|
|
202
|
-
})[];
|
|
203
|
-
} | undefined;
|
|
204
|
-
} | {
|
|
205
|
-
readonly type: "oauth";
|
|
206
|
-
readonly slug: string;
|
|
207
|
-
readonly authorizationUrl: string;
|
|
208
|
-
readonly tokenUrl: string;
|
|
209
|
-
readonly scopes: readonly string[];
|
|
210
|
-
})[];
|
|
211
|
-
readonly mode?: "replace" | "merge" | undefined;
|
|
212
|
-
};
|
|
213
|
-
readonly responseMode?: "decoded-only" | undefined;
|
|
214
|
-
readonly reactivityKeys?: readonly unknown[] | import("effect/Record").ReadonlyRecord<string, readonly unknown[]> | undefined;
|
|
215
|
-
}, {
|
|
216
|
-
readonly authenticationTemplate: readonly ({
|
|
217
|
-
readonly type: "apiKey";
|
|
218
|
-
readonly slug: string;
|
|
219
|
-
readonly headers?: {
|
|
220
|
-
readonly [x: string]: string | readonly (string | {
|
|
221
|
-
readonly name: string;
|
|
222
|
-
readonly type: "variable";
|
|
223
|
-
})[];
|
|
224
|
-
} | undefined;
|
|
225
|
-
readonly queryParams?: {
|
|
226
|
-
readonly [x: string]: string | readonly (string | {
|
|
227
|
-
readonly name: string;
|
|
228
|
-
readonly type: "variable";
|
|
229
|
-
})[];
|
|
230
|
-
} | undefined;
|
|
231
|
-
} | {
|
|
232
|
-
readonly type: "oauth";
|
|
233
|
-
readonly slug: string;
|
|
234
|
-
readonly authorizationUrl: string;
|
|
235
|
-
readonly tokenUrl: string;
|
|
236
|
-
readonly scopes: readonly string[];
|
|
237
|
-
})[];
|
|
238
|
-
}, import("@executor-js/sdk").IntegrationAlreadyExistsError | import("@executor-js/sdk").InternalError | import("../sdk").OpenApiParseError | import("../sdk").OpenApiExtractionError | import("../sdk").OpenApiOAuthError>;
|
|
239
|
-
export declare const openApiIntegrationFamily: (arg: string & import("effect/Brand").Brand<"IntegrationSlug">) => Atom.Atom<import("effect/unstable/reactivity/AsyncResult").AsyncResult<{
|
|
240
|
-
readonly slug: string & import("effect/Brand").Brand<"IntegrationSlug">;
|
|
241
|
-
readonly description: string;
|
|
242
|
-
readonly kind: string;
|
|
243
|
-
readonly canRemove: boolean;
|
|
244
|
-
readonly canRefresh: boolean;
|
|
245
|
-
} | null, import("@executor-js/sdk").IntegrationAlreadyExistsError | import("@executor-js/sdk").InternalError | import("../sdk").OpenApiParseError | import("../sdk").OpenApiExtractionError | import("../sdk").OpenApiOAuthError>>;
|
|
246
|
-
export declare const openApiConfigFamily: (arg: string & import("effect/Brand").Brand<"IntegrationSlug">) => Atom.Atom<import("effect/unstable/reactivity/AsyncResult").AsyncResult<{
|
|
247
|
-
readonly spec: string;
|
|
248
|
-
readonly headers?: {
|
|
249
|
-
readonly [x: string]: string;
|
|
250
|
-
} | undefined;
|
|
251
|
-
readonly baseUrl?: string | undefined;
|
|
252
|
-
readonly queryParams?: {
|
|
253
|
-
readonly [x: string]: string;
|
|
254
|
-
} | undefined;
|
|
255
|
-
readonly sourceUrl?: string | undefined;
|
|
256
|
-
readonly googleDiscoveryUrls?: readonly string[] | undefined;
|
|
257
|
-
readonly authenticationTemplate?: readonly ({
|
|
258
|
-
readonly type: "apiKey";
|
|
259
|
-
readonly slug: string;
|
|
260
|
-
readonly headers?: {
|
|
261
|
-
readonly [x: string]: string | readonly (string | {
|
|
262
|
-
readonly name: string;
|
|
263
|
-
readonly type: "variable";
|
|
264
|
-
})[];
|
|
265
|
-
} | undefined;
|
|
266
|
-
readonly queryParams?: {
|
|
267
|
-
readonly [x: string]: string | readonly (string | {
|
|
268
|
-
readonly name: string;
|
|
269
|
-
readonly type: "variable";
|
|
270
|
-
})[];
|
|
271
|
-
} | undefined;
|
|
272
|
-
} | {
|
|
273
|
-
readonly type: "oauth";
|
|
274
|
-
readonly slug: string;
|
|
275
|
-
readonly authorizationUrl: string;
|
|
276
|
-
readonly tokenUrl: string;
|
|
277
|
-
readonly scopes: readonly string[];
|
|
278
|
-
})[] | undefined;
|
|
279
|
-
} | null, import("@executor-js/sdk").IntegrationAlreadyExistsError | import("@executor-js/sdk").InternalError | import("../sdk").OpenApiParseError | import("../sdk").OpenApiExtractionError | import("../sdk").OpenApiOAuthError>>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { AuthMethod, Placement } from "@executor-js/react/lib/auth-placements";
|
|
2
|
-
import type { AuthTemplateEditorValue } from "@executor-js/react/components/auth-template-editor";
|
|
3
|
-
import { type APIKeyAuthentication, type Authentication } from "../sdk/types";
|
|
4
|
-
export declare const placementsFromApiKey: (template: APIKeyAuthentication) => Placement[];
|
|
5
|
-
/** Map each stored auth template to a generic `AuthMethod`. */
|
|
6
|
-
export declare function authMethodsFromConfig(templates: readonly Authentication[]): AuthMethod[];
|
|
7
|
-
/** Build an `APIKeyAuthentication` template from generic placements. When
|
|
8
|
-
* `slug` is omitted the backend assigns a `custom_<id>` slug. */
|
|
9
|
-
export declare function templateFromPlacements(placements: readonly Placement[], slug?: string): APIKeyAuthentication;
|
|
10
|
-
/** Convert one stored `Authentication` template into a generic editor value. */
|
|
11
|
-
export declare function editorValueFromAuthentication(template: Authentication): AuthTemplateEditorValue;
|
|
12
|
-
/** Convert one generic editor value back into a stored `Authentication`, or
|
|
13
|
-
* `null` for `none` (no method to register). The optional `slug` names the
|
|
14
|
-
* template; when omitted the backend backfills `custom_<id>`. */
|
|
15
|
-
export declare function authenticationFromEditorValue(value: AuthTemplateEditorValue, slug?: string): Authentication | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/react/client.d.ts
DELETED
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
export declare const OpenApiClient: import("effect/unstable/reactivity/AtomHttpApi").AtomHttpApiClient<"Plugin_openapiClient", `Plugin_${string}Client`, import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"openapi", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"previewSpec", "POST", "/openapi/preview", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
2
|
-
readonly spec: import("effect/Schema").String;
|
|
3
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
4
|
-
readonly title: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
5
|
-
readonly version: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
6
|
-
readonly servers: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
7
|
-
readonly url: import("effect/Schema").String;
|
|
8
|
-
readonly description: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
9
|
-
readonly variables: import("effect/Schema").OptionFromOptional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
10
|
-
readonly default: import("effect/Schema").String;
|
|
11
|
-
readonly enum: import("effect/Schema").OptionFromOptional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
12
|
-
readonly description: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
13
|
-
}>>>;
|
|
14
|
-
}>>;
|
|
15
|
-
readonly operationCount: import("effect/Schema").Number;
|
|
16
|
-
readonly operations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
17
|
-
readonly operationId: import("effect/Schema").String;
|
|
18
|
-
readonly method: import("effect/Schema").Literals<readonly ["get", "put", "post", "delete", "patch", "head", "options", "trace"]>;
|
|
19
|
-
readonly path: import("effect/Schema").String;
|
|
20
|
-
readonly summary: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
21
|
-
readonly tags: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
22
|
-
readonly deprecated: import("effect/Schema").Boolean;
|
|
23
|
-
}>>;
|
|
24
|
-
readonly tags: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
25
|
-
readonly securitySchemes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
26
|
-
readonly name: import("effect/Schema").String;
|
|
27
|
-
readonly type: import("effect/Schema").Literals<readonly ["http", "apiKey", "oauth2", "openIdConnect"]>;
|
|
28
|
-
readonly scheme: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
29
|
-
readonly bearerFormat: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
30
|
-
readonly in: import("effect/Schema").OptionFromOptional<import("effect/Schema").Literals<readonly ["header", "query", "cookie"]>>;
|
|
31
|
-
readonly headerName: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
32
|
-
readonly description: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
33
|
-
readonly flows: import("effect/Schema").OptionFromOptional<import("effect/Schema").Struct<{
|
|
34
|
-
readonly authorizationCode: import("effect/Schema").OptionFromOptional<import("effect/Schema").Struct<{
|
|
35
|
-
readonly authorizationUrl: import("effect/Schema").String;
|
|
36
|
-
readonly tokenUrl: import("effect/Schema").String;
|
|
37
|
-
readonly refreshUrl: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
38
|
-
readonly scopes: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>;
|
|
39
|
-
}>>;
|
|
40
|
-
readonly clientCredentials: import("effect/Schema").OptionFromOptional<import("effect/Schema").Struct<{
|
|
41
|
-
readonly tokenUrl: import("effect/Schema").String;
|
|
42
|
-
readonly refreshUrl: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
43
|
-
readonly scopes: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>;
|
|
44
|
-
}>>;
|
|
45
|
-
}>>;
|
|
46
|
-
readonly openIdConnectUrl: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
47
|
-
}>>;
|
|
48
|
-
readonly authStrategies: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
49
|
-
readonly schemes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
50
|
-
}>>;
|
|
51
|
-
readonly headerPresets: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
52
|
-
readonly label: import("effect/Schema").String;
|
|
53
|
-
readonly headers: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
54
|
-
readonly secretHeaders: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
55
|
-
}>>;
|
|
56
|
-
readonly oauth2Presets: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
57
|
-
readonly label: import("effect/Schema").String;
|
|
58
|
-
readonly securitySchemeName: import("effect/Schema").String;
|
|
59
|
-
readonly flow: import("effect/Schema").Literals<readonly ["authorizationCode", "clientCredentials"]>;
|
|
60
|
-
readonly authorizationUrl: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
61
|
-
readonly tokenUrl: import("effect/Schema").String;
|
|
62
|
-
readonly refreshUrl: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
63
|
-
readonly scopes: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>;
|
|
64
|
-
readonly identityScopes: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"auto">, import("effect/Schema").Literal<false>, import("effect/Schema").$Array<import("effect/Schema").String>]>;
|
|
65
|
-
}>>;
|
|
66
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").IntegrationAlreadyExistsError | typeof import("@executor-js/sdk").InternalError | typeof import("../sdk").OpenApiParseError | typeof import("../sdk").OpenApiExtractionError | typeof import("../sdk").OpenApiOAuthError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"addSpec", "POST", "/openapi/specs", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
67
|
-
readonly spec: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
68
|
-
readonly kind: import("effect/Schema").Literal<"url">;
|
|
69
|
-
readonly url: import("effect/Schema").String;
|
|
70
|
-
}>, import("effect/Schema").Struct<{
|
|
71
|
-
readonly kind: import("effect/Schema").Literal<"blob">;
|
|
72
|
-
readonly value: import("effect/Schema").String;
|
|
73
|
-
}>, import("effect/Schema").Struct<{
|
|
74
|
-
readonly kind: import("effect/Schema").Literal<"googleDiscovery">;
|
|
75
|
-
readonly url: import("effect/Schema").String;
|
|
76
|
-
}>, import("effect/Schema").Struct<{
|
|
77
|
-
readonly kind: import("effect/Schema").Literal<"googleDiscoveryBundle">;
|
|
78
|
-
readonly urls: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
79
|
-
}>]>;
|
|
80
|
-
readonly slug: import("effect/Schema").String;
|
|
81
|
-
readonly description: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
82
|
-
readonly baseUrl: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
83
|
-
readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
|
|
84
|
-
readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
|
|
85
|
-
readonly authenticationTemplate: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
86
|
-
readonly slug: import("effect/Schema").String;
|
|
87
|
-
readonly type: import("effect/Schema").Literal<"apiKey">;
|
|
88
|
-
readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
89
|
-
readonly type: import("effect/Schema").Literal<"variable">;
|
|
90
|
-
readonly name: import("effect/Schema").String;
|
|
91
|
-
}>]>>]>>>;
|
|
92
|
-
readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
93
|
-
readonly type: import("effect/Schema").Literal<"variable">;
|
|
94
|
-
readonly name: import("effect/Schema").String;
|
|
95
|
-
}>]>>]>>>;
|
|
96
|
-
}>, import("effect/Schema").Struct<{
|
|
97
|
-
readonly slug: import("effect/Schema").String;
|
|
98
|
-
readonly type: import("effect/Schema").Literal<"oauth">;
|
|
99
|
-
readonly authorizationUrl: import("effect/Schema").String;
|
|
100
|
-
readonly tokenUrl: import("effect/Schema").String;
|
|
101
|
-
readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
102
|
-
}>]>>>;
|
|
103
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
104
|
-
readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "IntegrationSlug">;
|
|
105
|
-
readonly toolCount: import("effect/Schema").Number;
|
|
106
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").IntegrationAlreadyExistsError | typeof import("@executor-js/sdk").InternalError | typeof import("../sdk").OpenApiParseError | typeof import("../sdk").OpenApiExtractionError | typeof import("../sdk").OpenApiOAuthError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getIntegration", "GET", "/openapi/integrations/:slug", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
107
|
-
slug: import("effect/Schema").String;
|
|
108
|
-
}>>, 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<{
|
|
109
|
-
readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "IntegrationSlug">;
|
|
110
|
-
readonly description: import("effect/Schema").String;
|
|
111
|
-
readonly kind: import("effect/Schema").String;
|
|
112
|
-
readonly canRemove: import("effect/Schema").Boolean;
|
|
113
|
-
readonly canRefresh: import("effect/Schema").Boolean;
|
|
114
|
-
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").IntegrationAlreadyExistsError | typeof import("@executor-js/sdk").InternalError | typeof import("../sdk").OpenApiParseError | typeof import("../sdk").OpenApiExtractionError | typeof import("../sdk").OpenApiOAuthError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getConfig", "GET", "/openapi/integrations/:slug/config", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
115
|
-
slug: import("effect/Schema").String;
|
|
116
|
-
}>>, 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<{
|
|
117
|
-
readonly spec: import("effect/Schema").String;
|
|
118
|
-
readonly sourceUrl: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
119
|
-
readonly googleDiscoveryUrls: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
120
|
-
readonly baseUrl: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
121
|
-
readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
|
|
122
|
-
readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
|
|
123
|
-
readonly authenticationTemplate: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
124
|
-
readonly slug: import("effect/Schema").String;
|
|
125
|
-
readonly type: import("effect/Schema").Literal<"apiKey">;
|
|
126
|
-
readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
127
|
-
readonly type: import("effect/Schema").Literal<"variable">;
|
|
128
|
-
readonly name: import("effect/Schema").String;
|
|
129
|
-
}>]>>]>>>;
|
|
130
|
-
readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
131
|
-
readonly type: import("effect/Schema").Literal<"variable">;
|
|
132
|
-
readonly name: import("effect/Schema").String;
|
|
133
|
-
}>]>>]>>>;
|
|
134
|
-
}>, import("effect/Schema").Struct<{
|
|
135
|
-
readonly slug: import("effect/Schema").String;
|
|
136
|
-
readonly type: import("effect/Schema").Literal<"oauth">;
|
|
137
|
-
readonly authorizationUrl: import("effect/Schema").String;
|
|
138
|
-
readonly tokenUrl: import("effect/Schema").String;
|
|
139
|
-
readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
140
|
-
}>]>>>;
|
|
141
|
-
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").IntegrationAlreadyExistsError | typeof import("@executor-js/sdk").InternalError | typeof import("../sdk").OpenApiParseError | typeof import("../sdk").OpenApiExtractionError | typeof import("../sdk").OpenApiOAuthError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"configure", "POST", "/openapi/integrations/:slug/config", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
142
|
-
slug: import("effect/Schema").String;
|
|
143
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
144
|
-
readonly authenticationTemplate: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
145
|
-
readonly slug: import("effect/Schema").String;
|
|
146
|
-
readonly type: import("effect/Schema").Literal<"apiKey">;
|
|
147
|
-
readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
148
|
-
readonly type: import("effect/Schema").Literal<"variable">;
|
|
149
|
-
readonly name: import("effect/Schema").String;
|
|
150
|
-
}>]>>]>>>;
|
|
151
|
-
readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
152
|
-
readonly type: import("effect/Schema").Literal<"variable">;
|
|
153
|
-
readonly name: import("effect/Schema").String;
|
|
154
|
-
}>]>>]>>>;
|
|
155
|
-
}>, import("effect/Schema").Struct<{
|
|
156
|
-
readonly slug: import("effect/Schema").String;
|
|
157
|
-
readonly type: import("effect/Schema").Literal<"oauth">;
|
|
158
|
-
readonly authorizationUrl: import("effect/Schema").String;
|
|
159
|
-
readonly tokenUrl: import("effect/Schema").String;
|
|
160
|
-
readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
161
|
-
}>]>>;
|
|
162
|
-
readonly mode: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["merge", "replace"]>>;
|
|
163
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
164
|
-
readonly authenticationTemplate: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
165
|
-
readonly slug: import("effect/Schema").String;
|
|
166
|
-
readonly type: import("effect/Schema").Literal<"apiKey">;
|
|
167
|
-
readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
168
|
-
readonly type: import("effect/Schema").Literal<"variable">;
|
|
169
|
-
readonly name: import("effect/Schema").String;
|
|
170
|
-
}>]>>]>>>;
|
|
171
|
-
readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
172
|
-
readonly type: import("effect/Schema").Literal<"variable">;
|
|
173
|
-
readonly name: import("effect/Schema").String;
|
|
174
|
-
}>]>>]>>>;
|
|
175
|
-
}>, import("effect/Schema").Struct<{
|
|
176
|
-
readonly slug: import("effect/Schema").String;
|
|
177
|
-
readonly type: import("effect/Schema").Literal<"oauth">;
|
|
178
|
-
readonly authorizationUrl: import("effect/Schema").String;
|
|
179
|
-
readonly tokenUrl: import("effect/Schema").String;
|
|
180
|
-
readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
181
|
-
}>]>>;
|
|
182
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").IntegrationAlreadyExistsError | typeof import("@executor-js/sdk").InternalError | typeof import("../sdk").OpenApiParseError | typeof import("../sdk").OpenApiExtractionError | typeof import("../sdk").OpenApiOAuthError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"removeSpec", "DELETE", "/openapi/integrations/:slug", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
183
|
-
slug: import("effect/Schema").String;
|
|
184
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Void>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk").IntegrationAlreadyExistsError | typeof import("@executor-js/sdk").InternalError | typeof import("../sdk").OpenApiParseError | typeof import("../sdk").OpenApiExtractionError | typeof import("../sdk").OpenApiOAuthError>, never, never>, false>>;
|
package/dist/react/index.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { openApiIntegrationPlugin } from "./source-plugin";
|
|
2
|
-
export { OpenApiClient } from "./client";
|
|
3
|
-
export { previewOpenApiSpec, addOpenApiSpec, removeOpenApiSpec, openapiConfigure, openApiConfigAtom, openApiConfigFamily, openApiIntegrationAtom, openApiIntegrationFamily, } from "./atoms";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/sdk/config.d.ts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { Schema } from "effect";
|
|
2
|
-
import type { Authentication } from "./types";
|
|
3
|
-
export declare const AuthenticationSchema: Schema.Union<readonly [Schema.Struct<{
|
|
4
|
-
readonly slug: Schema.String;
|
|
5
|
-
readonly type: Schema.Literal<"oauth">;
|
|
6
|
-
readonly authorizationUrl: Schema.String;
|
|
7
|
-
readonly tokenUrl: Schema.String;
|
|
8
|
-
readonly scopes: Schema.$Array<Schema.String>;
|
|
9
|
-
}>, Schema.Struct<{
|
|
10
|
-
readonly slug: Schema.String;
|
|
11
|
-
readonly type: Schema.Literal<"apiKey">;
|
|
12
|
-
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
13
|
-
readonly type: Schema.Literal<"variable">;
|
|
14
|
-
readonly name: Schema.String;
|
|
15
|
-
}>]>>]>>>;
|
|
16
|
-
readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
17
|
-
readonly type: Schema.Literal<"variable">;
|
|
18
|
-
readonly name: Schema.String;
|
|
19
|
-
}>]>>]>>>;
|
|
20
|
-
}>]>;
|
|
21
|
-
export declare const OpenApiIntegrationConfigSchema: Schema.Struct<{
|
|
22
|
-
/** Inlined OpenAPI document text (resolved + parsed source of truth). */
|
|
23
|
-
readonly spec: Schema.String;
|
|
24
|
-
/** Origin URL the spec was fetched from, when known. Enables refresh. */
|
|
25
|
-
readonly sourceUrl: Schema.optional<Schema.String>;
|
|
26
|
-
/** Google Discovery bundle URLs, when the spec came from a Google bundle. */
|
|
27
|
-
readonly googleDiscoveryUrls: Schema.optional<Schema.$Array<Schema.String>>;
|
|
28
|
-
/** Base URL override; falls back to the spec's first server. */
|
|
29
|
-
readonly baseUrl: Schema.optional<Schema.String>;
|
|
30
|
-
/** Static headers applied to every request (no secret material). */
|
|
31
|
-
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
32
|
-
/** Static query params applied to every request (no secret material). */
|
|
33
|
-
readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
34
|
-
/** The auth methods a connection's value can be applied through. */
|
|
35
|
-
readonly authenticationTemplate: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
36
|
-
readonly slug: Schema.String;
|
|
37
|
-
readonly type: Schema.Literal<"oauth">;
|
|
38
|
-
readonly authorizationUrl: Schema.String;
|
|
39
|
-
readonly tokenUrl: Schema.String;
|
|
40
|
-
readonly scopes: Schema.$Array<Schema.String>;
|
|
41
|
-
}>, Schema.Struct<{
|
|
42
|
-
readonly slug: Schema.String;
|
|
43
|
-
readonly type: Schema.Literal<"apiKey">;
|
|
44
|
-
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
45
|
-
readonly type: Schema.Literal<"variable">;
|
|
46
|
-
readonly name: Schema.String;
|
|
47
|
-
}>]>>]>>>;
|
|
48
|
-
readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
49
|
-
readonly type: Schema.Literal<"variable">;
|
|
50
|
-
readonly name: Schema.String;
|
|
51
|
-
}>]>>]>>>;
|
|
52
|
-
}>]>>>;
|
|
53
|
-
}>;
|
|
54
|
-
export type OpenApiIntegrationConfig = Omit<typeof OpenApiIntegrationConfigSchema.Type, "authenticationTemplate"> & {
|
|
55
|
-
/** Branded over the schema's structural form so the template renderer can
|
|
56
|
-
* treat `slug` as an `AuthTemplateSlug`. */
|
|
57
|
-
readonly authenticationTemplate?: readonly Authentication[];
|
|
58
|
-
};
|
|
59
|
-
/** Decode the opaque integration config blob into the openapi shape.
|
|
60
|
-
* Returns null when the blob is missing/incompatible. */
|
|
61
|
-
export declare const decodeOpenApiIntegrationConfig: (value: unknown) => OpenApiIntegrationConfig | null;
|
|
62
|
-
export interface RenderedAuth {
|
|
63
|
-
readonly headers: Record<string, string>;
|
|
64
|
-
readonly queryParams: Record<string, string>;
|
|
65
|
-
}
|
|
66
|
-
/** Render an auth template against a connection's resolved input `values`
|
|
67
|
-
* (`variable → value`). For an apiKey template, each `variable("<name>")` is
|
|
68
|
-
* substituted from its own entry, so a method with two distinct inputs (e.g.
|
|
69
|
-
* Datadog) fills each header from a different value. For an oauth template (no
|
|
70
|
-
* explicit placement), render a bearer Authorization header from `token`. */
|
|
71
|
-
export declare const renderAuthTemplate: (template: Authentication, values: Record<string, string | null>) => RenderedAuth;
|
|
72
|
-
/** The distinct input variables a template references — the inputs a connection
|
|
73
|
-
* must supply. An oauth template needs `token`; an apiKey template needs every
|
|
74
|
-
* `variable("<name>")` across its placements. */
|
|
75
|
-
export declare const requiredTemplateVariables: (template: Authentication) => readonly string[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Derives structured `group.leaf` tool paths from extracted OpenAPI operations.
|
|
3
|
-
*
|
|
4
|
-
* Ported from the v3 executor's `definitions.ts`. Turns flat operation IDs like
|
|
5
|
-
* `zones_listZones` into nested paths like `zones.listZones` that the tree UI
|
|
6
|
-
* can render with proper nesting.
|
|
7
|
-
*/
|
|
8
|
-
import type { ExtractedOperation } from "./types";
|
|
9
|
-
export interface ToolDefinition {
|
|
10
|
-
/** Dot-separated path like `zones.listZones` */
|
|
11
|
-
readonly toolPath: string;
|
|
12
|
-
/** The group segment */
|
|
13
|
-
readonly group: string;
|
|
14
|
-
/** The leaf segment */
|
|
15
|
-
readonly leaf: string;
|
|
16
|
-
/** Index into the original operations array */
|
|
17
|
-
readonly operationIndex: number;
|
|
18
|
-
/** The original operation */
|
|
19
|
-
readonly operation: ExtractedOperation;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Compile extracted operations into tool definitions with structured
|
|
23
|
-
* `group.leaf` paths suitable for tree rendering.
|
|
24
|
-
*/
|
|
25
|
-
export declare const compileToolDefinitions: (operations: readonly ExtractedOperation[]) => ToolDefinition[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|