@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@executor-js/plugin-openapi",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"homepage": "https://github.com/RhysSullivan/executor/tree/main/packages/plugins/openapi",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/RhysSullivan/executor/issues"
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@effect/platform-node": "4.0.0-beta.59",
|
|
56
|
-
"@executor-js/config": "1.5.
|
|
57
|
-
"@executor-js/sdk": "1.5.
|
|
56
|
+
"@executor-js/config": "1.5.3",
|
|
57
|
+
"@executor-js/sdk": "1.5.3",
|
|
58
58
|
"lucide-react": "^1.7.0",
|
|
59
59
|
"openapi-types": "^12.1.3",
|
|
60
60
|
"yaml": "^2.7.1"
|
package/dist/api/group.d.ts
DELETED
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
import { InternalError, IntegrationAlreadyExistsError } from "@executor-js/sdk/shared";
|
|
4
|
-
import { OpenApiParseError, OpenApiExtractionError, OpenApiOAuthError } from "../sdk/errors";
|
|
5
|
-
export declare const OpenApiGroup: HttpApiGroup.HttpApiGroup<"openapi", HttpApiEndpoint.HttpApiEndpoint<"previewSpec", "POST", "/openapi/preview", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
6
|
-
readonly spec: Schema.String;
|
|
7
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
8
|
-
readonly title: Schema.OptionFromOptional<Schema.String>;
|
|
9
|
-
readonly version: Schema.OptionFromOptional<Schema.String>;
|
|
10
|
-
readonly servers: Schema.$Array<Schema.Struct<{
|
|
11
|
-
readonly url: Schema.String;
|
|
12
|
-
readonly description: Schema.OptionFromOptional<Schema.String>;
|
|
13
|
-
readonly variables: Schema.OptionFromOptional<Schema.$Record<Schema.String, Schema.Struct<{
|
|
14
|
-
readonly default: Schema.String;
|
|
15
|
-
readonly enum: Schema.OptionFromOptional<Schema.$Array<Schema.String>>;
|
|
16
|
-
readonly description: Schema.OptionFromOptional<Schema.String>;
|
|
17
|
-
}>>>;
|
|
18
|
-
}>>;
|
|
19
|
-
readonly operationCount: Schema.Number;
|
|
20
|
-
readonly operations: Schema.$Array<Schema.Struct<{
|
|
21
|
-
readonly operationId: Schema.String;
|
|
22
|
-
readonly method: Schema.Literals<readonly ["get", "put", "post", "delete", "patch", "head", "options", "trace"]>;
|
|
23
|
-
readonly path: Schema.String;
|
|
24
|
-
readonly summary: Schema.OptionFromOptional<Schema.String>;
|
|
25
|
-
readonly tags: Schema.$Array<Schema.String>;
|
|
26
|
-
readonly deprecated: Schema.Boolean;
|
|
27
|
-
}>>;
|
|
28
|
-
readonly tags: Schema.$Array<Schema.String>;
|
|
29
|
-
readonly securitySchemes: Schema.$Array<Schema.Struct<{
|
|
30
|
-
readonly name: Schema.String;
|
|
31
|
-
readonly type: Schema.Literals<readonly ["http", "apiKey", "oauth2", "openIdConnect"]>;
|
|
32
|
-
readonly scheme: Schema.OptionFromOptional<Schema.String>;
|
|
33
|
-
readonly bearerFormat: Schema.OptionFromOptional<Schema.String>;
|
|
34
|
-
readonly in: Schema.OptionFromOptional<Schema.Literals<readonly ["header", "query", "cookie"]>>;
|
|
35
|
-
readonly headerName: Schema.OptionFromOptional<Schema.String>;
|
|
36
|
-
readonly description: Schema.OptionFromOptional<Schema.String>;
|
|
37
|
-
readonly flows: Schema.OptionFromOptional<Schema.Struct<{
|
|
38
|
-
readonly authorizationCode: Schema.OptionFromOptional<Schema.Struct<{
|
|
39
|
-
readonly authorizationUrl: Schema.String;
|
|
40
|
-
readonly tokenUrl: Schema.String;
|
|
41
|
-
readonly refreshUrl: Schema.OptionFromOptional<Schema.String>;
|
|
42
|
-
readonly scopes: Schema.$Record<Schema.String, Schema.String>;
|
|
43
|
-
}>>;
|
|
44
|
-
readonly clientCredentials: Schema.OptionFromOptional<Schema.Struct<{
|
|
45
|
-
readonly tokenUrl: Schema.String;
|
|
46
|
-
readonly refreshUrl: Schema.OptionFromOptional<Schema.String>;
|
|
47
|
-
readonly scopes: Schema.$Record<Schema.String, Schema.String>;
|
|
48
|
-
}>>;
|
|
49
|
-
}>>;
|
|
50
|
-
readonly openIdConnectUrl: Schema.OptionFromOptional<Schema.String>;
|
|
51
|
-
}>>;
|
|
52
|
-
readonly authStrategies: Schema.$Array<Schema.Struct<{
|
|
53
|
-
readonly schemes: Schema.$Array<Schema.String>;
|
|
54
|
-
}>>;
|
|
55
|
-
readonly headerPresets: Schema.$Array<Schema.Struct<{
|
|
56
|
-
readonly label: Schema.String;
|
|
57
|
-
readonly headers: Schema.$Record<Schema.String, Schema.NullOr<Schema.String>>;
|
|
58
|
-
readonly secretHeaders: Schema.$Array<Schema.String>;
|
|
59
|
-
}>>;
|
|
60
|
-
readonly oauth2Presets: Schema.$Array<Schema.Struct<{
|
|
61
|
-
readonly label: Schema.String;
|
|
62
|
-
readonly securitySchemeName: Schema.String;
|
|
63
|
-
readonly flow: Schema.Literals<readonly ["authorizationCode", "clientCredentials"]>;
|
|
64
|
-
readonly authorizationUrl: Schema.OptionFromOptional<Schema.String>;
|
|
65
|
-
readonly tokenUrl: Schema.String;
|
|
66
|
-
readonly refreshUrl: Schema.OptionFromOptional<Schema.String>;
|
|
67
|
-
readonly scopes: Schema.$Record<Schema.String, Schema.String>;
|
|
68
|
-
readonly identityScopes: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<false>, Schema.$Array<Schema.String>]>;
|
|
69
|
-
}>>;
|
|
70
|
-
}>>, HttpApiEndpoint.Json<typeof IntegrationAlreadyExistsError | typeof InternalError | typeof OpenApiParseError | typeof OpenApiExtractionError | typeof OpenApiOAuthError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"addSpec", "POST", "/openapi/specs", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
71
|
-
readonly spec: Schema.Union<readonly [Schema.Struct<{
|
|
72
|
-
readonly kind: Schema.Literal<"url">;
|
|
73
|
-
readonly url: Schema.String;
|
|
74
|
-
}>, Schema.Struct<{
|
|
75
|
-
readonly kind: Schema.Literal<"blob">;
|
|
76
|
-
readonly value: Schema.String;
|
|
77
|
-
}>, Schema.Struct<{
|
|
78
|
-
readonly kind: Schema.Literal<"googleDiscovery">;
|
|
79
|
-
readonly url: Schema.String;
|
|
80
|
-
}>, Schema.Struct<{
|
|
81
|
-
readonly kind: Schema.Literal<"googleDiscoveryBundle">;
|
|
82
|
-
readonly urls: Schema.$Array<Schema.String>;
|
|
83
|
-
}>]>;
|
|
84
|
-
readonly slug: Schema.String;
|
|
85
|
-
readonly description: Schema.optional<Schema.String>;
|
|
86
|
-
readonly baseUrl: Schema.optional<Schema.String>;
|
|
87
|
-
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
88
|
-
readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
89
|
-
readonly authenticationTemplate: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
90
|
-
readonly slug: Schema.String;
|
|
91
|
-
readonly type: Schema.Literal<"apiKey">;
|
|
92
|
-
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
93
|
-
readonly type: Schema.Literal<"variable">;
|
|
94
|
-
readonly name: Schema.String;
|
|
95
|
-
}>]>>]>>>;
|
|
96
|
-
readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
97
|
-
readonly type: Schema.Literal<"variable">;
|
|
98
|
-
readonly name: Schema.String;
|
|
99
|
-
}>]>>]>>>;
|
|
100
|
-
}>, Schema.Struct<{
|
|
101
|
-
readonly slug: Schema.String;
|
|
102
|
-
readonly type: Schema.Literal<"oauth">;
|
|
103
|
-
readonly authorizationUrl: Schema.String;
|
|
104
|
-
readonly tokenUrl: Schema.String;
|
|
105
|
-
readonly scopes: Schema.$Array<Schema.String>;
|
|
106
|
-
}>]>>>;
|
|
107
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
108
|
-
readonly slug: Schema.brand<Schema.String, "IntegrationSlug">;
|
|
109
|
-
readonly toolCount: Schema.Number;
|
|
110
|
-
}>>, HttpApiEndpoint.Json<typeof IntegrationAlreadyExistsError | typeof InternalError | typeof OpenApiParseError | typeof OpenApiExtractionError | typeof OpenApiOAuthError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getIntegration", "GET", "/openapi/integrations/:slug", HttpApiEndpoint.StringTree<Schema.Struct<{
|
|
111
|
-
slug: Schema.String;
|
|
112
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.NullOr<Schema.Struct<{
|
|
113
|
-
readonly slug: Schema.brand<Schema.String, "IntegrationSlug">;
|
|
114
|
-
readonly description: Schema.String;
|
|
115
|
-
readonly kind: Schema.String;
|
|
116
|
-
readonly canRemove: Schema.Boolean;
|
|
117
|
-
readonly canRefresh: Schema.Boolean;
|
|
118
|
-
}>>>, HttpApiEndpoint.Json<typeof IntegrationAlreadyExistsError | typeof InternalError | typeof OpenApiParseError | typeof OpenApiExtractionError | typeof OpenApiOAuthError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getConfig", "GET", "/openapi/integrations/:slug/config", HttpApiEndpoint.StringTree<Schema.Struct<{
|
|
119
|
-
slug: Schema.String;
|
|
120
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.NullOr<Schema.Struct<{
|
|
121
|
-
readonly spec: Schema.String;
|
|
122
|
-
readonly sourceUrl: Schema.optional<Schema.String>;
|
|
123
|
-
readonly googleDiscoveryUrls: Schema.optional<Schema.$Array<Schema.String>>;
|
|
124
|
-
readonly baseUrl: Schema.optional<Schema.String>;
|
|
125
|
-
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
126
|
-
readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
127
|
-
readonly authenticationTemplate: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
128
|
-
readonly slug: Schema.String;
|
|
129
|
-
readonly type: Schema.Literal<"apiKey">;
|
|
130
|
-
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
131
|
-
readonly type: Schema.Literal<"variable">;
|
|
132
|
-
readonly name: Schema.String;
|
|
133
|
-
}>]>>]>>>;
|
|
134
|
-
readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
135
|
-
readonly type: Schema.Literal<"variable">;
|
|
136
|
-
readonly name: Schema.String;
|
|
137
|
-
}>]>>]>>>;
|
|
138
|
-
}>, Schema.Struct<{
|
|
139
|
-
readonly slug: Schema.String;
|
|
140
|
-
readonly type: Schema.Literal<"oauth">;
|
|
141
|
-
readonly authorizationUrl: Schema.String;
|
|
142
|
-
readonly tokenUrl: Schema.String;
|
|
143
|
-
readonly scopes: Schema.$Array<Schema.String>;
|
|
144
|
-
}>]>>>;
|
|
145
|
-
}>>>, HttpApiEndpoint.Json<typeof IntegrationAlreadyExistsError | typeof InternalError | typeof OpenApiParseError | typeof OpenApiExtractionError | typeof OpenApiOAuthError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"configure", "POST", "/openapi/integrations/:slug/config", HttpApiEndpoint.StringTree<Schema.Struct<{
|
|
146
|
-
slug: Schema.String;
|
|
147
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
148
|
-
readonly authenticationTemplate: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
149
|
-
readonly slug: Schema.String;
|
|
150
|
-
readonly type: Schema.Literal<"apiKey">;
|
|
151
|
-
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
152
|
-
readonly type: Schema.Literal<"variable">;
|
|
153
|
-
readonly name: Schema.String;
|
|
154
|
-
}>]>>]>>>;
|
|
155
|
-
readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
156
|
-
readonly type: Schema.Literal<"variable">;
|
|
157
|
-
readonly name: Schema.String;
|
|
158
|
-
}>]>>]>>>;
|
|
159
|
-
}>, Schema.Struct<{
|
|
160
|
-
readonly slug: Schema.String;
|
|
161
|
-
readonly type: Schema.Literal<"oauth">;
|
|
162
|
-
readonly authorizationUrl: Schema.String;
|
|
163
|
-
readonly tokenUrl: Schema.String;
|
|
164
|
-
readonly scopes: Schema.$Array<Schema.String>;
|
|
165
|
-
}>]>>;
|
|
166
|
-
readonly mode: Schema.optional<Schema.Literals<readonly ["merge", "replace"]>>;
|
|
167
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
168
|
-
readonly authenticationTemplate: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
169
|
-
readonly slug: Schema.String;
|
|
170
|
-
readonly type: Schema.Literal<"apiKey">;
|
|
171
|
-
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
172
|
-
readonly type: Schema.Literal<"variable">;
|
|
173
|
-
readonly name: Schema.String;
|
|
174
|
-
}>]>>]>>>;
|
|
175
|
-
readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
176
|
-
readonly type: Schema.Literal<"variable">;
|
|
177
|
-
readonly name: Schema.String;
|
|
178
|
-
}>]>>]>>>;
|
|
179
|
-
}>, Schema.Struct<{
|
|
180
|
-
readonly slug: Schema.String;
|
|
181
|
-
readonly type: Schema.Literal<"oauth">;
|
|
182
|
-
readonly authorizationUrl: Schema.String;
|
|
183
|
-
readonly tokenUrl: Schema.String;
|
|
184
|
-
readonly scopes: Schema.$Array<Schema.String>;
|
|
185
|
-
}>]>>;
|
|
186
|
-
}>>, HttpApiEndpoint.Json<typeof IntegrationAlreadyExistsError | typeof InternalError | typeof OpenApiParseError | typeof OpenApiExtractionError | typeof OpenApiOAuthError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"removeSpec", "DELETE", "/openapi/integrations/:slug", HttpApiEndpoint.StringTree<Schema.Struct<{
|
|
187
|
-
slug: Schema.String;
|
|
188
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Void>, HttpApiEndpoint.Json<typeof IntegrationAlreadyExistsError | typeof InternalError | typeof OpenApiParseError | typeof OpenApiExtractionError | typeof OpenApiOAuthError>, never, never>, false>;
|
package/dist/api/handlers.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Context } from "effect";
|
|
2
|
-
import type { OpenApiPluginExtension } from "../sdk/plugin";
|
|
3
|
-
declare const OpenApiExtensionService_base: Context.ServiceClass<OpenApiExtensionService, "OpenApiExtensionService", OpenApiPluginExtension>;
|
|
4
|
-
export declare class OpenApiExtensionService extends OpenApiExtensionService_base {
|
|
5
|
-
}
|
|
6
|
-
export declare const OpenApiHandlers: import("effect/Layer").Layer<import("effect/unstable/httpapi/HttpApiGroup").ApiGroup<"executor", "openapi">, never, import("effect/unstable/http/HttpRouter").Request<"Requires", OpenApiExtensionService>>;
|
|
7
|
-
export {};
|
package/dist/api/index.d.ts
DELETED
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
import { type OpenApiPluginOptions } from "../sdk/plugin";
|
|
2
|
-
import { OpenApiExtensionService } from "./handlers";
|
|
3
|
-
export { OpenApiGroup } from "./group";
|
|
4
|
-
export { OpenApiHandlers, OpenApiExtensionService } from "./handlers";
|
|
5
|
-
export declare const openApiHttpPlugin: import("@executor-js/sdk/core").ConfiguredPlugin<"openapi", {
|
|
6
|
-
previewSpec: (input: string | import("../sdk").OpenApiPreviewInput) => import("effect/Effect").Effect<{
|
|
7
|
-
readonly version: import("effect/Option").Option<string>;
|
|
8
|
-
readonly operations: readonly {
|
|
9
|
-
readonly method: "post" | "options" | "delete" | "get" | "put" | "patch" | "head" | "trace";
|
|
10
|
-
readonly deprecated: boolean;
|
|
11
|
-
readonly path: string;
|
|
12
|
-
readonly summary: import("effect/Option").Option<string>;
|
|
13
|
-
readonly tags: readonly string[];
|
|
14
|
-
readonly operationId: string;
|
|
15
|
-
}[];
|
|
16
|
-
readonly title: import("effect/Option").Option<string>;
|
|
17
|
-
readonly tags: readonly string[];
|
|
18
|
-
readonly servers: readonly {
|
|
19
|
-
readonly description: import("effect/Option").Option<string>;
|
|
20
|
-
readonly url: string;
|
|
21
|
-
readonly variables: import("effect/Option").Option<{
|
|
22
|
-
readonly [x: string]: {
|
|
23
|
-
readonly default: string;
|
|
24
|
-
readonly description: import("effect/Option").Option<string>;
|
|
25
|
-
readonly enum: import("effect/Option").Option<readonly string[]>;
|
|
26
|
-
};
|
|
27
|
-
}>;
|
|
28
|
-
}[];
|
|
29
|
-
readonly securitySchemes: readonly {
|
|
30
|
-
readonly name: string;
|
|
31
|
-
readonly type: "oauth2" | "http" | "apiKey" | "openIdConnect";
|
|
32
|
-
readonly in: import("effect/Option").Option<"header" | "query" | "cookie">;
|
|
33
|
-
readonly description: import("effect/Option").Option<string>;
|
|
34
|
-
readonly scheme: import("effect/Option").Option<string>;
|
|
35
|
-
readonly bearerFormat: import("effect/Option").Option<string>;
|
|
36
|
-
readonly headerName: import("effect/Option").Option<string>;
|
|
37
|
-
readonly flows: import("effect/Option").Option<{
|
|
38
|
-
readonly authorizationCode: import("effect/Option").Option<{
|
|
39
|
-
readonly authorizationUrl: string;
|
|
40
|
-
readonly tokenUrl: string;
|
|
41
|
-
readonly scopes: {
|
|
42
|
-
readonly [x: string]: string;
|
|
43
|
-
};
|
|
44
|
-
readonly refreshUrl: import("effect/Option").Option<string>;
|
|
45
|
-
}>;
|
|
46
|
-
readonly clientCredentials: import("effect/Option").Option<{
|
|
47
|
-
readonly tokenUrl: string;
|
|
48
|
-
readonly scopes: {
|
|
49
|
-
readonly [x: string]: string;
|
|
50
|
-
};
|
|
51
|
-
readonly refreshUrl: import("effect/Option").Option<string>;
|
|
52
|
-
}>;
|
|
53
|
-
}>;
|
|
54
|
-
readonly openIdConnectUrl: import("effect/Option").Option<string>;
|
|
55
|
-
}[];
|
|
56
|
-
readonly authStrategies: readonly {
|
|
57
|
-
readonly schemes: readonly string[];
|
|
58
|
-
}[];
|
|
59
|
-
readonly headerPresets: readonly {
|
|
60
|
-
readonly label: string;
|
|
61
|
-
readonly headers: {
|
|
62
|
-
readonly [x: string]: string | null;
|
|
63
|
-
};
|
|
64
|
-
readonly secretHeaders: readonly string[];
|
|
65
|
-
}[];
|
|
66
|
-
readonly oauth2Presets: readonly {
|
|
67
|
-
readonly label: string;
|
|
68
|
-
readonly authorizationUrl: import("effect/Option").Option<string>;
|
|
69
|
-
readonly tokenUrl: string;
|
|
70
|
-
readonly scopes: {
|
|
71
|
-
readonly [x: string]: string;
|
|
72
|
-
};
|
|
73
|
-
readonly refreshUrl: import("effect/Option").Option<string>;
|
|
74
|
-
readonly flow: "authorizationCode" | "clientCredentials";
|
|
75
|
-
readonly identityScopes: false | "auto" | readonly string[];
|
|
76
|
-
readonly securitySchemeName: string;
|
|
77
|
-
}[];
|
|
78
|
-
readonly operationCount: number;
|
|
79
|
-
}, import("../sdk").OpenApiParseError | import("../sdk").OpenApiExtractionError, never>;
|
|
80
|
-
addSpec: (config: import("../sdk").OpenApiSpecConfig) => import("effect/Effect").Effect<{
|
|
81
|
-
slug: string & import("effect/Brand").Brand<"IntegrationSlug">;
|
|
82
|
-
toolCount: number;
|
|
83
|
-
}, import("@executor-js/sdk/core").StorageFailure | import("@executor-js/sdk/core").IntegrationAlreadyExistsError | import("../sdk").OpenApiParseError | import("../sdk").OpenApiExtractionError | import("../sdk").OpenApiOAuthError, never>;
|
|
84
|
-
removeSpec: (slug: string) => import("effect/Effect").Effect<void, import("@executor-js/sdk/core").StorageFailure, never>;
|
|
85
|
-
getIntegration: (slug: string) => import("effect/Effect").Effect<import("@executor-js/sdk/core").Integration | null, import("@executor-js/sdk/core").StorageFailure, never>;
|
|
86
|
-
getConfig: (slug: string) => import("effect/Effect").Effect<import("../sdk").OpenApiIntegrationConfig | null, import("@executor-js/sdk/core").StorageFailure>;
|
|
87
|
-
configure: (slug: string, input: import("../sdk").OpenApiConfigureInput) => import("effect/Effect").Effect<readonly import("../sdk").Authentication[], import("@executor-js/sdk/core").StorageFailure>;
|
|
88
|
-
}, import("../sdk").OpenapiStore, OpenApiPluginOptions, typeof OpenApiExtensionService, import("effect/Layer").Layer<import("effect/unstable/httpapi/HttpApiGroup").ApiGroup<"executor", "openapi">, never, import("effect/unstable/http/HttpRouter").Request<"Requires", OpenApiExtensionService>>, import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"openapi", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"previewSpec", "POST", "/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<{
|
|
89
|
-
readonly spec: import("effect/Schema").String;
|
|
90
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
91
|
-
readonly title: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
92
|
-
readonly version: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
93
|
-
readonly servers: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
94
|
-
readonly url: import("effect/Schema").String;
|
|
95
|
-
readonly description: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
96
|
-
readonly variables: import("effect/Schema").OptionFromOptional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
97
|
-
readonly default: import("effect/Schema").String;
|
|
98
|
-
readonly enum: import("effect/Schema").OptionFromOptional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
99
|
-
readonly description: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
100
|
-
}>>>;
|
|
101
|
-
}>>;
|
|
102
|
-
readonly operationCount: import("effect/Schema").Number;
|
|
103
|
-
readonly operations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
104
|
-
readonly operationId: import("effect/Schema").String;
|
|
105
|
-
readonly method: import("effect/Schema").Literals<readonly ["get", "put", "post", "delete", "patch", "head", "options", "trace"]>;
|
|
106
|
-
readonly path: import("effect/Schema").String;
|
|
107
|
-
readonly summary: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
108
|
-
readonly tags: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
109
|
-
readonly deprecated: import("effect/Schema").Boolean;
|
|
110
|
-
}>>;
|
|
111
|
-
readonly tags: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
112
|
-
readonly securitySchemes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
113
|
-
readonly name: import("effect/Schema").String;
|
|
114
|
-
readonly type: import("effect/Schema").Literals<readonly ["http", "apiKey", "oauth2", "openIdConnect"]>;
|
|
115
|
-
readonly scheme: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
116
|
-
readonly bearerFormat: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
117
|
-
readonly in: import("effect/Schema").OptionFromOptional<import("effect/Schema").Literals<readonly ["header", "query", "cookie"]>>;
|
|
118
|
-
readonly headerName: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
119
|
-
readonly description: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
120
|
-
readonly flows: import("effect/Schema").OptionFromOptional<import("effect/Schema").Struct<{
|
|
121
|
-
readonly authorizationCode: import("effect/Schema").OptionFromOptional<import("effect/Schema").Struct<{
|
|
122
|
-
readonly authorizationUrl: import("effect/Schema").String;
|
|
123
|
-
readonly tokenUrl: import("effect/Schema").String;
|
|
124
|
-
readonly refreshUrl: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
125
|
-
readonly scopes: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>;
|
|
126
|
-
}>>;
|
|
127
|
-
readonly clientCredentials: import("effect/Schema").OptionFromOptional<import("effect/Schema").Struct<{
|
|
128
|
-
readonly tokenUrl: import("effect/Schema").String;
|
|
129
|
-
readonly refreshUrl: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
130
|
-
readonly scopes: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>;
|
|
131
|
-
}>>;
|
|
132
|
-
}>>;
|
|
133
|
-
readonly openIdConnectUrl: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
134
|
-
}>>;
|
|
135
|
-
readonly authStrategies: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
136
|
-
readonly schemes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
137
|
-
}>>;
|
|
138
|
-
readonly headerPresets: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
139
|
-
readonly label: import("effect/Schema").String;
|
|
140
|
-
readonly headers: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
141
|
-
readonly secretHeaders: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
142
|
-
}>>;
|
|
143
|
-
readonly oauth2Presets: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
144
|
-
readonly label: import("effect/Schema").String;
|
|
145
|
-
readonly securitySchemeName: import("effect/Schema").String;
|
|
146
|
-
readonly flow: import("effect/Schema").Literals<readonly ["authorizationCode", "clientCredentials"]>;
|
|
147
|
-
readonly authorizationUrl: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
148
|
-
readonly tokenUrl: import("effect/Schema").String;
|
|
149
|
-
readonly refreshUrl: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
150
|
-
readonly scopes: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>;
|
|
151
|
-
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>]>;
|
|
152
|
-
}>>;
|
|
153
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk/core").IntegrationAlreadyExistsError | typeof import("@executor-js/api").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<{
|
|
154
|
-
readonly spec: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
155
|
-
readonly kind: import("effect/Schema").Literal<"url">;
|
|
156
|
-
readonly url: import("effect/Schema").String;
|
|
157
|
-
}>, import("effect/Schema").Struct<{
|
|
158
|
-
readonly kind: import("effect/Schema").Literal<"blob">;
|
|
159
|
-
readonly value: import("effect/Schema").String;
|
|
160
|
-
}>, import("effect/Schema").Struct<{
|
|
161
|
-
readonly kind: import("effect/Schema").Literal<"googleDiscovery">;
|
|
162
|
-
readonly url: import("effect/Schema").String;
|
|
163
|
-
}>, import("effect/Schema").Struct<{
|
|
164
|
-
readonly kind: import("effect/Schema").Literal<"googleDiscoveryBundle">;
|
|
165
|
-
readonly urls: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
166
|
-
}>]>;
|
|
167
|
-
readonly slug: import("effect/Schema").String;
|
|
168
|
-
readonly description: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
169
|
-
readonly baseUrl: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
170
|
-
readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
|
|
171
|
-
readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
|
|
172
|
-
readonly authenticationTemplate: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
173
|
-
readonly slug: import("effect/Schema").String;
|
|
174
|
-
readonly type: import("effect/Schema").Literal<"apiKey">;
|
|
175
|
-
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<{
|
|
176
|
-
readonly type: import("effect/Schema").Literal<"variable">;
|
|
177
|
-
readonly name: import("effect/Schema").String;
|
|
178
|
-
}>]>>]>>>;
|
|
179
|
-
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<{
|
|
180
|
-
readonly type: import("effect/Schema").Literal<"variable">;
|
|
181
|
-
readonly name: import("effect/Schema").String;
|
|
182
|
-
}>]>>]>>>;
|
|
183
|
-
}>, import("effect/Schema").Struct<{
|
|
184
|
-
readonly slug: import("effect/Schema").String;
|
|
185
|
-
readonly type: import("effect/Schema").Literal<"oauth">;
|
|
186
|
-
readonly authorizationUrl: import("effect/Schema").String;
|
|
187
|
-
readonly tokenUrl: import("effect/Schema").String;
|
|
188
|
-
readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
189
|
-
}>]>>>;
|
|
190
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
191
|
-
readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "IntegrationSlug">;
|
|
192
|
-
readonly toolCount: import("effect/Schema").Number;
|
|
193
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk/core").IntegrationAlreadyExistsError | typeof import("@executor-js/api").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<{
|
|
194
|
-
slug: import("effect/Schema").String;
|
|
195
|
-
}>>, 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<{
|
|
196
|
-
readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "IntegrationSlug">;
|
|
197
|
-
readonly description: import("effect/Schema").String;
|
|
198
|
-
readonly kind: import("effect/Schema").String;
|
|
199
|
-
readonly canRemove: import("effect/Schema").Boolean;
|
|
200
|
-
readonly canRefresh: import("effect/Schema").Boolean;
|
|
201
|
-
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk/core").IntegrationAlreadyExistsError | typeof import("@executor-js/api").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<{
|
|
202
|
-
slug: import("effect/Schema").String;
|
|
203
|
-
}>>, 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<{
|
|
204
|
-
readonly spec: import("effect/Schema").String;
|
|
205
|
-
readonly sourceUrl: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
206
|
-
readonly googleDiscoveryUrls: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
207
|
-
readonly baseUrl: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
208
|
-
readonly headers: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
|
|
209
|
-
readonly queryParams: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
|
|
210
|
-
readonly authenticationTemplate: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
211
|
-
readonly slug: import("effect/Schema").String;
|
|
212
|
-
readonly type: import("effect/Schema").Literal<"apiKey">;
|
|
213
|
-
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<{
|
|
214
|
-
readonly type: import("effect/Schema").Literal<"variable">;
|
|
215
|
-
readonly name: import("effect/Schema").String;
|
|
216
|
-
}>]>>]>>>;
|
|
217
|
-
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<{
|
|
218
|
-
readonly type: import("effect/Schema").Literal<"variable">;
|
|
219
|
-
readonly name: import("effect/Schema").String;
|
|
220
|
-
}>]>>]>>>;
|
|
221
|
-
}>, import("effect/Schema").Struct<{
|
|
222
|
-
readonly slug: import("effect/Schema").String;
|
|
223
|
-
readonly type: import("effect/Schema").Literal<"oauth">;
|
|
224
|
-
readonly authorizationUrl: import("effect/Schema").String;
|
|
225
|
-
readonly tokenUrl: import("effect/Schema").String;
|
|
226
|
-
readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
227
|
-
}>]>>>;
|
|
228
|
-
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk/core").IntegrationAlreadyExistsError | typeof import("@executor-js/api").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<{
|
|
229
|
-
slug: import("effect/Schema").String;
|
|
230
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
231
|
-
readonly authenticationTemplate: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
232
|
-
readonly slug: import("effect/Schema").String;
|
|
233
|
-
readonly type: import("effect/Schema").Literal<"apiKey">;
|
|
234
|
-
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<{
|
|
235
|
-
readonly type: import("effect/Schema").Literal<"variable">;
|
|
236
|
-
readonly name: import("effect/Schema").String;
|
|
237
|
-
}>]>>]>>>;
|
|
238
|
-
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<{
|
|
239
|
-
readonly type: import("effect/Schema").Literal<"variable">;
|
|
240
|
-
readonly name: import("effect/Schema").String;
|
|
241
|
-
}>]>>]>>>;
|
|
242
|
-
}>, import("effect/Schema").Struct<{
|
|
243
|
-
readonly slug: import("effect/Schema").String;
|
|
244
|
-
readonly type: import("effect/Schema").Literal<"oauth">;
|
|
245
|
-
readonly authorizationUrl: import("effect/Schema").String;
|
|
246
|
-
readonly tokenUrl: import("effect/Schema").String;
|
|
247
|
-
readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
248
|
-
}>]>>;
|
|
249
|
-
readonly mode: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["merge", "replace"]>>;
|
|
250
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
251
|
-
readonly authenticationTemplate: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
252
|
-
readonly slug: import("effect/Schema").String;
|
|
253
|
-
readonly type: import("effect/Schema").Literal<"apiKey">;
|
|
254
|
-
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<{
|
|
255
|
-
readonly type: import("effect/Schema").Literal<"variable">;
|
|
256
|
-
readonly name: import("effect/Schema").String;
|
|
257
|
-
}>]>>]>>>;
|
|
258
|
-
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<{
|
|
259
|
-
readonly type: import("effect/Schema").Literal<"variable">;
|
|
260
|
-
readonly name: import("effect/Schema").String;
|
|
261
|
-
}>]>>]>>>;
|
|
262
|
-
}>, import("effect/Schema").Struct<{
|
|
263
|
-
readonly slug: import("effect/Schema").String;
|
|
264
|
-
readonly type: import("effect/Schema").Literal<"oauth">;
|
|
265
|
-
readonly authorizationUrl: import("effect/Schema").String;
|
|
266
|
-
readonly tokenUrl: import("effect/Schema").String;
|
|
267
|
-
readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
268
|
-
}>]>>;
|
|
269
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("@executor-js/sdk/core").IntegrationAlreadyExistsError | typeof import("@executor-js/api").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<{
|
|
270
|
-
slug: import("effect/Schema").String;
|
|
271
|
-
}>>, 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/core").IntegrationAlreadyExistsError | typeof import("@executor-js/api").InternalError | typeof import("../sdk").OpenApiParseError | typeof import("../sdk").OpenApiExtractionError | typeof import("../sdk").OpenApiOAuthError>, never, never>, false>>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare function resolveOAuthUrl(url: string, baseUrl: string): string;
|
|
2
|
-
export default function AddOpenApiSource(props: {
|
|
3
|
-
onComplete: (slug?: string) => void;
|
|
4
|
-
onCancel: () => void;
|
|
5
|
-
initialUrl?: string;
|
|
6
|
-
initialPreset?: string;
|
|
7
|
-
initialNamespace?: string;
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
type GoogleProductPickerProps = {
|
|
2
|
-
readonly selectedPresetIds: ReadonlySet<string>;
|
|
3
|
-
readonly onToggle: (presetId: string, checked: boolean) => void;
|
|
4
|
-
readonly customUrls: readonly string[];
|
|
5
|
-
readonly onAddCustomUrl: (url: string) => void;
|
|
6
|
-
readonly onRemoveCustomUrl: (url: string) => void;
|
|
7
|
-
};
|
|
8
|
-
export declare function GoogleProductPicker({ selectedPresetIds, onToggle, customUrls, onAddCustomUrl, onRemoveCustomUrl, }: GoogleProductPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default GoogleProductPicker;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { IntegrationAccountHandoff } from "@executor-js/sdk/client";
|
|
2
|
-
export default function OpenApiAccountsPanel(props: {
|
|
3
|
-
readonly sourceId: string;
|
|
4
|
-
readonly integrationName: string;
|
|
5
|
-
readonly accountHandoff?: IntegrationAccountHandoff | null;
|
|
6
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type FreeformComboboxOption } from "@executor-js/react/components/combobox";
|
|
2
|
-
import { type IntegrationIdentity } from "@executor-js/react/plugins/integration-identity";
|
|
3
|
-
export declare function OpenApiSourceDetailsFields(props: {
|
|
4
|
-
readonly title: string;
|
|
5
|
-
readonly description?: string;
|
|
6
|
-
readonly identity: IntegrationIdentity;
|
|
7
|
-
readonly baseUrl: string;
|
|
8
|
-
readonly onBaseUrlChange: (value: string) => void;
|
|
9
|
-
readonly baseUrlOptions?: readonly FreeformComboboxOption[];
|
|
10
|
-
readonly specUrl?: string;
|
|
11
|
-
readonly onSpecUrlChange?: (value: string) => void;
|
|
12
|
-
readonly faviconIcon?: string | null;
|
|
13
|
-
readonly faviconUrl?: string;
|
|
14
|
-
readonly namespaceReadOnly?: boolean;
|
|
15
|
-
readonly specUrlDisabled?: boolean;
|
|
16
|
-
readonly saveState?: "idle" | "saving" | "saved";
|
|
17
|
-
readonly baseUrlMissingMessage?: string;
|
|
18
|
-
readonly footer?: string;
|
|
19
|
-
}): import("react/jsx-runtime").JSX.Element;
|