@executor-js/plugin-openapi 1.4.33 → 1.5.1
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/dist/AddOpenApiSource-7M52SRUX.js +893 -0
- package/dist/AddOpenApiSource-7M52SRUX.js.map +1 -0
- package/dist/EditOpenApiSource-WTAMRJUK.js +68 -0
- package/dist/EditOpenApiSource-WTAMRJUK.js.map +1 -0
- package/dist/OpenApiAccountsPanel-3VJJXNQF.js +112 -0
- package/dist/OpenApiAccountsPanel-3VJJXNQF.js.map +1 -0
- package/dist/api/group.d.ts +104 -225
- package/dist/api/index.d.ts +127 -271
- package/dist/{chunk-BB5IAKRG.js → chunk-AQ7JDDRM.js} +12 -2
- package/dist/chunk-AQ7JDDRM.js.map +1 -0
- package/dist/chunk-BSLE6HCE.js +181 -0
- package/dist/chunk-BSLE6HCE.js.map +1 -0
- package/dist/chunk-MZWZQ24W.js +226 -0
- package/dist/chunk-MZWZQ24W.js.map +1 -0
- package/dist/chunk-OSIFYIQP.js +623 -0
- package/dist/chunk-OSIFYIQP.js.map +1 -0
- package/dist/chunk-QSSRVK6M.js +139 -0
- package/dist/chunk-QSSRVK6M.js.map +1 -0
- package/dist/chunk-V7VCHYOY.js +1544 -0
- package/dist/chunk-V7VCHYOY.js.map +1 -0
- package/dist/{chunk-AN4HJFNP.js → chunk-YVRI7KRC.js} +162 -186
- package/dist/chunk-YVRI7KRC.js.map +1 -0
- package/dist/client.js +9 -8
- package/dist/client.js.map +1 -1
- package/dist/core.js +28 -11
- package/dist/index.js +11 -4
- package/dist/react/AddOpenApiSource.d.ts +2 -13
- package/dist/react/GoogleProductPicker.d.ts +9 -0
- package/dist/react/OpenApiAccountsPanel.d.ts +6 -0
- package/dist/react/OpenApiSourceDetailsFields.d.ts +3 -2
- package/dist/react/atoms.d.ts +177 -192
- package/dist/react/auth-method-config.d.ts +15 -0
- package/dist/react/client.d.ts +103 -224
- package/dist/react/index.d.ts +2 -2
- package/dist/react/source-plugin.d.ts +2 -2
- package/dist/sdk/config.d.ts +75 -0
- package/dist/sdk/configure.test.d.ts +1 -0
- package/dist/sdk/describe-auth-methods.test.d.ts +1 -0
- package/dist/sdk/errors.d.ts +4 -6
- package/dist/sdk/extract.d.ts +7 -5
- package/dist/sdk/google-bundle.test.d.ts +1 -0
- package/dist/sdk/google-discovery.d.ts +43 -0
- package/dist/sdk/google-discovery.test.d.ts +1 -0
- package/dist/sdk/google-oauth-batches.d.ts +13 -0
- package/dist/sdk/google-oauth-batches.test.d.ts +1 -0
- package/dist/sdk/google-oauth-scopes.d.ts +3 -0
- package/dist/sdk/google-oauth-scopes.test.d.ts +1 -0
- package/dist/sdk/google-presets.d.ts +16 -0
- package/dist/sdk/google-presets.test.d.ts +1 -0
- package/dist/sdk/google-product-picker-scopes.test.d.ts +1 -0
- package/dist/sdk/index.d.ts +7 -5
- package/dist/sdk/invoke.d.ts +6 -9
- package/dist/sdk/openapi-utils.d.ts +1 -0
- package/dist/sdk/plugin.d.ts +74 -231
- package/dist/sdk/presets.d.ts +2 -1
- package/dist/sdk/preview.d.ts +20 -15
- package/dist/sdk/query-serialization.test.d.ts +1 -0
- package/dist/sdk/store.d.ts +14 -41
- package/dist/sdk/types.d.ts +23 -51
- package/dist/testing/index.d.ts +49 -38
- package/dist/testing.js +46 -18
- package/dist/testing.js.map +1 -1
- package/package.json +6 -4
- package/dist/AddOpenApiSource-NSCULGTM.js +0 -19
- package/dist/AddOpenApiSource-NSCULGTM.js.map +0 -1
- package/dist/EditOpenApiSource-MV7NYTRP.js +0 -774
- package/dist/EditOpenApiSource-MV7NYTRP.js.map +0 -1
- package/dist/OpenApiSourceSummary-7JBS7PUV.js +0 -122
- package/dist/OpenApiSourceSummary-7JBS7PUV.js.map +0 -1
- package/dist/chunk-2ZKKZYZH.js +0 -1181
- package/dist/chunk-2ZKKZYZH.js.map +0 -1
- package/dist/chunk-AN4HJFNP.js.map +0 -1
- package/dist/chunk-BB5IAKRG.js.map +0 -1
- package/dist/chunk-PRVJDE43.js +0 -2101
- package/dist/chunk-PRVJDE43.js.map +0 -1
- package/dist/chunk-X5JX3KTA.js +0 -201
- package/dist/chunk-X5JX3KTA.js.map +0 -1
- package/dist/react/OpenApiSourceSummary.d.ts +0 -5
- package/dist/sdk/credential-status.d.ts +0 -23
- package/dist/sdk/source-contracts.d.ts +0 -55
- /package/dist/{sdk/credential-status.test.d.ts → react/auth-method-config.test.d.ts} +0 -0
package/dist/api/index.d.ts
CHANGED
|
@@ -3,20 +3,21 @@ import { OpenApiExtensionService } from "./handlers";
|
|
|
3
3
|
export { OpenApiGroup } from "./group";
|
|
4
4
|
export { OpenApiHandlers, OpenApiExtensionService } from "./handlers";
|
|
5
5
|
export declare const openApiHttpPlugin: import("@executor-js/sdk/core").ConfiguredPlugin<"openapi", {
|
|
6
|
-
previewSpec: (input: string | import("../sdk
|
|
6
|
+
previewSpec: (input: string | import("../sdk").OpenApiPreviewInput) => import("effect/Effect").Effect<{
|
|
7
7
|
readonly version: import("effect/Option").Option<string>;
|
|
8
8
|
readonly operations: readonly {
|
|
9
|
-
readonly
|
|
10
|
-
readonly method: "post" | "options" | "delete" | "get" | "put" | "head" | "patch" | "trace";
|
|
9
|
+
readonly method: "post" | "options" | "delete" | "get" | "put" | "patch" | "head" | "trace";
|
|
11
10
|
readonly deprecated: boolean;
|
|
12
11
|
readonly path: string;
|
|
12
|
+
readonly summary: import("effect/Option").Option<string>;
|
|
13
13
|
readonly tags: readonly string[];
|
|
14
14
|
readonly operationId: string;
|
|
15
15
|
}[];
|
|
16
16
|
readonly title: import("effect/Option").Option<string>;
|
|
17
|
+
readonly tags: readonly string[];
|
|
17
18
|
readonly servers: readonly {
|
|
18
|
-
readonly url: string;
|
|
19
19
|
readonly description: import("effect/Option").Option<string>;
|
|
20
|
+
readonly url: string;
|
|
20
21
|
readonly variables: import("effect/Option").Option<{
|
|
21
22
|
readonly [x: string]: {
|
|
22
23
|
readonly default: string;
|
|
@@ -25,29 +26,28 @@ export declare const openApiHttpPlugin: import("@executor-js/sdk/core").Configur
|
|
|
25
26
|
};
|
|
26
27
|
}>;
|
|
27
28
|
}[];
|
|
28
|
-
readonly tags: readonly string[];
|
|
29
29
|
readonly securitySchemes: readonly {
|
|
30
30
|
readonly name: string;
|
|
31
31
|
readonly type: "oauth2" | "http" | "apiKey" | "openIdConnect";
|
|
32
|
-
readonly in: import("effect/Option").Option<"
|
|
32
|
+
readonly in: import("effect/Option").Option<"header" | "query" | "cookie">;
|
|
33
33
|
readonly description: import("effect/Option").Option<string>;
|
|
34
|
-
readonly headerName: import("effect/Option").Option<string>;
|
|
35
34
|
readonly scheme: import("effect/Option").Option<string>;
|
|
36
35
|
readonly bearerFormat: import("effect/Option").Option<string>;
|
|
36
|
+
readonly headerName: import("effect/Option").Option<string>;
|
|
37
37
|
readonly flows: import("effect/Option").Option<{
|
|
38
38
|
readonly authorizationCode: import("effect/Option").Option<{
|
|
39
|
+
readonly authorizationUrl: string;
|
|
40
|
+
readonly tokenUrl: string;
|
|
39
41
|
readonly scopes: {
|
|
40
42
|
readonly [x: string]: string;
|
|
41
43
|
};
|
|
42
|
-
readonly authorizationUrl: string;
|
|
43
|
-
readonly tokenUrl: string;
|
|
44
44
|
readonly refreshUrl: import("effect/Option").Option<string>;
|
|
45
45
|
}>;
|
|
46
46
|
readonly clientCredentials: import("effect/Option").Option<{
|
|
47
|
+
readonly tokenUrl: string;
|
|
47
48
|
readonly scopes: {
|
|
48
49
|
readonly [x: string]: string;
|
|
49
50
|
};
|
|
50
|
-
readonly tokenUrl: string;
|
|
51
51
|
readonly refreshUrl: import("effect/Option").Option<string>;
|
|
52
52
|
}>;
|
|
53
53
|
}>;
|
|
@@ -57,71 +57,36 @@ export declare const openApiHttpPlugin: import("@executor-js/sdk/core").Configur
|
|
|
57
57
|
readonly schemes: readonly string[];
|
|
58
58
|
}[];
|
|
59
59
|
readonly headerPresets: readonly {
|
|
60
|
+
readonly label: string;
|
|
60
61
|
readonly headers: {
|
|
61
62
|
readonly [x: string]: string | null;
|
|
62
63
|
};
|
|
63
64
|
readonly secretHeaders: readonly string[];
|
|
64
|
-
readonly label: string;
|
|
65
65
|
}[];
|
|
66
66
|
readonly oauth2Presets: readonly {
|
|
67
|
+
readonly label: string;
|
|
68
|
+
readonly authorizationUrl: import("effect/Option").Option<string>;
|
|
69
|
+
readonly tokenUrl: string;
|
|
67
70
|
readonly scopes: {
|
|
68
71
|
readonly [x: string]: string;
|
|
69
72
|
};
|
|
70
|
-
readonly authorizationUrl: import("effect/Option").Option<string>;
|
|
71
|
-
readonly securitySchemeName: string;
|
|
72
|
-
readonly flow: "authorizationCode" | "clientCredentials";
|
|
73
|
-
readonly tokenUrl: string;
|
|
74
73
|
readonly refreshUrl: import("effect/Option").Option<string>;
|
|
75
|
-
readonly
|
|
74
|
+
readonly flow: "authorizationCode" | "clientCredentials";
|
|
75
|
+
readonly identityScopes: false | "auto" | readonly string[];
|
|
76
|
+
readonly securitySchemeName: string;
|
|
76
77
|
}[];
|
|
77
78
|
readonly operationCount: number;
|
|
78
|
-
}, import("
|
|
79
|
+
}, import("../sdk").OpenApiParseError | import("../sdk").OpenApiExtractionError, never>;
|
|
79
80
|
addSpec: (config: import("../sdk").OpenApiSpecConfig) => import("effect/Effect").Effect<{
|
|
80
|
-
|
|
81
|
+
slug: string & import("effect/Brand").Brand<"IntegrationSlug">;
|
|
81
82
|
toolCount: number;
|
|
82
|
-
}, import("@executor-js/sdk/core").StorageFailure | import("../sdk").OpenApiParseError | import("../sdk").OpenApiExtractionError | import("../sdk").OpenApiOAuthError, never>;
|
|
83
|
-
removeSpec: (
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
name: string;
|
|
89
|
-
} | null, import("@executor-js/sdk/core").StorageFailure, never>;
|
|
90
|
-
configure: (source: import("../sdk").OpenApiSourceRef, input: import("../sdk").OpenApiConfigureInput) => import("effect/Effect").Effect<readonly {
|
|
91
|
-
readonly value: {
|
|
92
|
-
readonly text: string;
|
|
93
|
-
readonly kind: "text";
|
|
94
|
-
} | {
|
|
95
|
-
readonly secretId: string & import("effect/Brand").Brand<"SecretId">;
|
|
96
|
-
readonly kind: "secret";
|
|
97
|
-
readonly secretScopeId?: (string & import("effect/Brand").Brand<"ScopeId">) | undefined;
|
|
98
|
-
} | {
|
|
99
|
-
readonly connectionId: string & import("effect/Brand").Brand<"ConnectionId">;
|
|
100
|
-
readonly kind: "connection";
|
|
101
|
-
};
|
|
102
|
-
readonly id: string & import("effect/Brand").Brand<"CredentialBindingId">;
|
|
103
|
-
readonly scopeId: string & import("effect/Brand").Brand<"ScopeId">;
|
|
104
|
-
readonly createdAt: Date;
|
|
105
|
-
readonly updatedAt: Date;
|
|
106
|
-
readonly pluginId: string;
|
|
107
|
-
readonly sourceId: string;
|
|
108
|
-
readonly sourceScopeId: string & import("effect/Brand").Brand<"ScopeId">;
|
|
109
|
-
readonly slotKey: string;
|
|
110
|
-
}[], import("@executor-js/sdk/core").StorageFailure, never>;
|
|
111
|
-
}, 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", "/scopes/:scopeId/openapi/preview", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
112
|
-
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
113
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
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<{
|
|
114
89
|
readonly spec: import("effect/Schema").String;
|
|
115
|
-
readonly specFetchCredentials: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
116
|
-
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").Struct<{
|
|
117
|
-
readonly secretId: import("effect/Schema").String;
|
|
118
|
-
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
119
|
-
}>]>>>;
|
|
120
|
-
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").Struct<{
|
|
121
|
-
readonly secretId: import("effect/Schema").String;
|
|
122
|
-
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
123
|
-
}>]>>>;
|
|
124
|
-
}>>;
|
|
125
90
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
126
91
|
readonly title: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
127
92
|
readonly version: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
@@ -183,233 +148,124 @@ export declare const openApiHttpPlugin: import("@executor-js/sdk/core").Configur
|
|
|
183
148
|
readonly tokenUrl: import("effect/Schema").String;
|
|
184
149
|
readonly refreshUrl: import("effect/Schema").OptionFromOptional<import("effect/Schema").String>;
|
|
185
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>]>;
|
|
186
152
|
}>>;
|
|
187
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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", "/
|
|
188
|
-
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
189
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
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<{
|
|
190
154
|
readonly spec: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
191
155
|
readonly kind: import("effect/Schema").Literal<"url">;
|
|
192
156
|
readonly url: import("effect/Schema").String;
|
|
193
157
|
}>, import("effect/Schema").Struct<{
|
|
194
158
|
readonly kind: import("effect/Schema").Literal<"blob">;
|
|
195
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>;
|
|
196
166
|
}>]>;
|
|
197
|
-
readonly
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
readonly
|
|
216
|
-
readonly
|
|
217
|
-
}>]>>>;
|
|
218
|
-
readonly oauth2: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
219
|
-
readonly kind: import("effect/Schema").Literal<"oauth2">;
|
|
220
|
-
readonly securitySchemeName: import("effect/Schema").String;
|
|
221
|
-
readonly flow: import("effect/Schema").Literals<readonly ["authorizationCode", "clientCredentials"]>;
|
|
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;
|
|
222
187
|
readonly tokenUrl: import("effect/Schema").String;
|
|
223
|
-
readonly authorizationUrl: import("effect/Schema").withDecodingDefault<import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>>;
|
|
224
|
-
readonly issuerUrl: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
225
|
-
readonly clientIdSlot: import("effect/Schema").String;
|
|
226
|
-
readonly clientSecretSlot: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
227
|
-
readonly connectionSlot: import("effect/Schema").String;
|
|
228
188
|
readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
229
|
-
}
|
|
189
|
+
}>]>>>;
|
|
230
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">;
|
|
231
192
|
readonly toolCount: import("effect/Schema").Number;
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
235
|
-
namespace: import("effect/Schema").String;
|
|
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;
|
|
236
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<{
|
|
237
|
-
readonly
|
|
238
|
-
readonly
|
|
239
|
-
readonly
|
|
240
|
-
readonly
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
readonly
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
readonly kind: import("effect/Schema").Literal<"binding">;
|
|
263
|
-
readonly slot: import("effect/Schema").String;
|
|
264
|
-
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
265
|
-
}>]>>>;
|
|
266
|
-
}>>;
|
|
267
|
-
readonly oauth2: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
268
|
-
readonly kind: import("effect/Schema").Literal<"oauth2">;
|
|
269
|
-
readonly securitySchemeName: import("effect/Schema").String;
|
|
270
|
-
readonly flow: import("effect/Schema").Literals<readonly ["authorizationCode", "clientCredentials"]>;
|
|
271
|
-
readonly tokenUrl: import("effect/Schema").String;
|
|
272
|
-
readonly authorizationUrl: import("effect/Schema").withDecodingDefault<import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>>;
|
|
273
|
-
readonly issuerUrl: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
274
|
-
readonly clientIdSlot: import("effect/Schema").String;
|
|
275
|
-
readonly clientSecretSlot: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
276
|
-
readonly connectionSlot: import("effect/Schema").String;
|
|
277
|
-
readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
278
|
-
}>>;
|
|
279
|
-
}>;
|
|
280
|
-
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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", "/scopes/:scopeId/openapi/configure", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
281
|
-
scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
282
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
283
|
-
readonly source: import("effect/Schema").Struct<{
|
|
284
|
-
readonly id: import("effect/Schema").String;
|
|
285
|
-
readonly scope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
286
|
-
}>;
|
|
287
|
-
readonly scope: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
|
|
288
|
-
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").Struct<{
|
|
289
|
-
readonly kind: import("effect/Schema").Literal<"text">;
|
|
290
|
-
readonly text: import("effect/Schema").String;
|
|
291
|
-
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
292
|
-
}>, import("effect/Schema").Struct<{
|
|
293
|
-
readonly kind: import("effect/Schema").Literal<"secret">;
|
|
294
|
-
readonly secretId: import("effect/Schema").String;
|
|
295
|
-
readonly secretScope: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
|
|
296
|
-
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
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
|
+
}>]>>]>>>;
|
|
297
221
|
}>, import("effect/Schema").Struct<{
|
|
298
|
-
readonly
|
|
299
|
-
readonly
|
|
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>;
|
|
300
227
|
}>]>>>;
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
readonly
|
|
307
|
-
readonly
|
|
308
|
-
|
|
309
|
-
|
|
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
|
+
}>]>>]>>>;
|
|
310
242
|
}>, import("effect/Schema").Struct<{
|
|
311
|
-
readonly
|
|
312
|
-
readonly
|
|
313
|
-
|
|
314
|
-
readonly specFetchCredentials: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
315
|
-
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").Struct<{
|
|
316
|
-
readonly kind: import("effect/Schema").Literal<"text">;
|
|
317
|
-
readonly text: import("effect/Schema").String;
|
|
318
|
-
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
319
|
-
}>, import("effect/Schema").Struct<{
|
|
320
|
-
readonly kind: import("effect/Schema").Literal<"secret">;
|
|
321
|
-
readonly secretId: import("effect/Schema").String;
|
|
322
|
-
readonly secretScope: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
|
|
323
|
-
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
324
|
-
}>, import("effect/Schema").Struct<{
|
|
325
|
-
readonly kind: import("effect/Schema").Literal<"connection">;
|
|
326
|
-
readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
|
|
327
|
-
}>]>>>;
|
|
328
|
-
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").Struct<{
|
|
329
|
-
readonly kind: import("effect/Schema").Literal<"text">;
|
|
330
|
-
readonly text: import("effect/Schema").String;
|
|
331
|
-
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
332
|
-
}>, import("effect/Schema").Struct<{
|
|
333
|
-
readonly kind: import("effect/Schema").Literal<"secret">;
|
|
334
|
-
readonly secretId: import("effect/Schema").String;
|
|
335
|
-
readonly secretScope: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
|
|
336
|
-
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
337
|
-
}>, import("effect/Schema").Struct<{
|
|
338
|
-
readonly kind: import("effect/Schema").Literal<"connection">;
|
|
339
|
-
readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
|
|
340
|
-
}>]>>>;
|
|
341
|
-
}>>;
|
|
342
|
-
readonly oauth2: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
343
|
-
readonly clientId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
344
|
-
readonly kind: import("effect/Schema").Literal<"text">;
|
|
345
|
-
readonly text: import("effect/Schema").String;
|
|
346
|
-
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
347
|
-
}>, import("effect/Schema").Struct<{
|
|
348
|
-
readonly kind: import("effect/Schema").Literal<"secret">;
|
|
349
|
-
readonly secretId: import("effect/Schema").String;
|
|
350
|
-
readonly secretScope: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
|
|
351
|
-
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
352
|
-
}>, import("effect/Schema").Struct<{
|
|
353
|
-
readonly kind: import("effect/Schema").Literal<"connection">;
|
|
354
|
-
readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
|
|
355
|
-
}>]>>;
|
|
356
|
-
readonly clientSecret: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
357
|
-
readonly kind: import("effect/Schema").Literal<"text">;
|
|
358
|
-
readonly text: import("effect/Schema").String;
|
|
359
|
-
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
360
|
-
}>, import("effect/Schema").Struct<{
|
|
361
|
-
readonly kind: import("effect/Schema").Literal<"secret">;
|
|
362
|
-
readonly secretId: import("effect/Schema").String;
|
|
363
|
-
readonly secretScope: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
|
|
364
|
-
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
365
|
-
}>, import("effect/Schema").Struct<{
|
|
366
|
-
readonly kind: import("effect/Schema").Literal<"connection">;
|
|
367
|
-
readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
|
|
368
|
-
}>]>>;
|
|
369
|
-
readonly connection: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
370
|
-
readonly kind: import("effect/Schema").Literal<"text">;
|
|
371
|
-
readonly text: import("effect/Schema").String;
|
|
372
|
-
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
373
|
-
}>, import("effect/Schema").Struct<{
|
|
374
|
-
readonly kind: import("effect/Schema").Literal<"secret">;
|
|
375
|
-
readonly secretId: import("effect/Schema").String;
|
|
376
|
-
readonly secretScope: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
|
|
377
|
-
readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
378
|
-
}>, import("effect/Schema").Struct<{
|
|
379
|
-
readonly kind: import("effect/Schema").Literal<"connection">;
|
|
380
|
-
readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
|
|
381
|
-
}>]>>;
|
|
382
|
-
}>>;
|
|
383
|
-
readonly oauth2Source: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
384
|
-
readonly kind: import("effect/Schema").Literal<"oauth2">;
|
|
385
|
-
readonly securitySchemeName: import("effect/Schema").String;
|
|
386
|
-
readonly flow: import("effect/Schema").Literals<readonly ["authorizationCode", "clientCredentials"]>;
|
|
243
|
+
readonly slug: import("effect/Schema").String;
|
|
244
|
+
readonly type: import("effect/Schema").Literal<"oauth">;
|
|
245
|
+
readonly authorizationUrl: import("effect/Schema").String;
|
|
387
246
|
readonly tokenUrl: import("effect/Schema").String;
|
|
388
|
-
readonly authorizationUrl: import("effect/Schema").withDecodingDefault<import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>>;
|
|
389
|
-
readonly issuerUrl: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
390
|
-
readonly clientIdSlot: import("effect/Schema").String;
|
|
391
|
-
readonly clientSecretSlot: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
392
|
-
readonly connectionSlot: import("effect/Schema").String;
|
|
393
247
|
readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
394
|
-
}>>;
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
readonly
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
readonly
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
readonly secretScopeId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
|
|
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
|
+
}>]>>]>>>;
|
|
409
262
|
}>, import("effect/Schema").Struct<{
|
|
410
|
-
readonly
|
|
411
|
-
readonly
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
}
|
|
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,5 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
googleOpenApiBundlePreset,
|
|
3
|
+
googleOpenApiPresets
|
|
4
|
+
} from "./chunk-MZWZQ24W.js";
|
|
5
|
+
|
|
1
6
|
// src/sdk/presets.ts
|
|
2
|
-
var
|
|
7
|
+
var openApiOnlyPresets = [
|
|
3
8
|
{
|
|
4
9
|
id: "stripe",
|
|
5
10
|
name: "Stripe",
|
|
@@ -129,8 +134,13 @@ var openApiPresets = [
|
|
|
129
134
|
icon: "https://spotify.com/favicon.ico"
|
|
130
135
|
}
|
|
131
136
|
];
|
|
137
|
+
var openApiPresets = [
|
|
138
|
+
googleOpenApiBundlePreset,
|
|
139
|
+
...openApiOnlyPresets,
|
|
140
|
+
...googleOpenApiPresets
|
|
141
|
+
];
|
|
132
142
|
|
|
133
143
|
export {
|
|
134
144
|
openApiPresets
|
|
135
145
|
};
|
|
136
|
-
//# sourceMappingURL=chunk-
|
|
146
|
+
//# sourceMappingURL=chunk-AQ7JDDRM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/sdk/presets.ts"],"sourcesContent":["import { googleOpenApiBundlePreset, googleOpenApiPresets } from \"./google-presets\";\n\nexport interface OpenApiPreset {\n readonly id: string;\n readonly name: string;\n readonly summary: string;\n readonly url?: string;\n readonly icon?: string;\n readonly featured?: boolean;\n}\n\nconst openApiOnlyPresets: readonly OpenApiPreset[] = [\n {\n id: \"stripe\",\n name: \"Stripe\",\n summary: \"Payments, subscriptions, customers, and invoices.\",\n url: \"https://raw.githubusercontent.com/stripe/openapi/master/openapi/spec3.json\",\n icon: \"https://stripe.com/favicon.ico\",\n featured: true,\n },\n {\n id: \"github-rest\",\n name: \"GitHub REST\",\n summary: \"Repos, issues, pull requests, actions, and users.\",\n url: \"https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/api.github.com.json\",\n icon: \"https://github.com/favicon.ico\",\n featured: true,\n },\n {\n id: \"vercel\",\n name: \"Vercel\",\n summary: \"Deployments, domains, projects, and edge config.\",\n url: \"https://openapi.vercel.sh\",\n icon: \"https://vercel.com/favicon.ico\",\n featured: true,\n },\n {\n id: \"cloudflare\",\n name: \"Cloudflare\",\n summary: \"DNS, workers, pages, R2, and security rules.\",\n url: \"https://raw.githubusercontent.com/cloudflare/api-schemas/main/openapi.json\",\n icon: \"https://cloudflare.com/favicon.ico\",\n featured: true,\n },\n {\n id: \"neon\",\n name: \"Neon\",\n summary: \"Serverless Postgres — projects, branches, and endpoints.\",\n url: \"https://neon.tech/api_spec/release/v2.json\",\n icon: \"https://neon.tech/favicon/favicon.ico\",\n featured: true,\n },\n {\n id: \"openai\",\n name: \"OpenAI\",\n summary: \"Models, files, responses, and fine-tuning.\",\n url: \"https://app.stainless.com/api/spec/documented/openai/openapi.documented.yml\",\n icon: \"https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/openai.svg\",\n featured: true,\n },\n {\n id: \"sentry\",\n name: \"Sentry\",\n summary: \"Error tracking, performance monitoring, and releases.\",\n url: \"https://raw.githubusercontent.com/getsentry/sentry-api-schema/main/openapi-derefed.json\",\n icon: \"https://sentry-brand.storage.googleapis.com/sentry-glyph-black.png\",\n featured: true,\n },\n {\n id: \"exa\",\n name: \"Exa\",\n summary: \"Web search, similar links, content retrieval, and answers.\",\n url: \"https://raw.githubusercontent.com/exa-labs/openapi-spec/refs/heads/master/exa-openapi-spec.yaml\",\n icon: \"https://exa.ai/images/favicon-32x32.png\",\n featured: true,\n },\n {\n id: \"exa-websets\",\n name: \"Exa Websets\",\n summary: \"Websets, enrichments, webhooks, and monitors.\",\n url: \"https://raw.githubusercontent.com/exa-labs/openapi-spec/refs/heads/master/exa-websets-spec.yaml\",\n icon: \"https://exa.ai/images/favicon-32x32.png\",\n featured: true,\n },\n {\n id: \"axiom\",\n name: \"Axiom\",\n summary: \"Log ingestion, querying, datasets, and monitors.\",\n url: \"https://axiom.co/docs/restapi/versions/v2.json\",\n icon: \"https://axiom.co/favicon.ico\",\n },\n {\n id: \"asana\",\n name: \"Asana\",\n summary: \"Tasks, projects, teams, and workspace management.\",\n url: \"https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/asana.com/1.0/openapi.yaml\",\n icon: \"https://asana.com/favicon.ico\",\n },\n {\n id: \"twilio\",\n name: \"Twilio\",\n summary: \"SMS, voice, video, and messaging APIs.\",\n url: \"https://raw.githubusercontent.com/twilio/twilio-oai/main/spec/json/twilio_api_v2010.json\",\n icon: \"https://twilio.com/favicon.ico\",\n },\n {\n id: \"digitalocean\",\n name: \"DigitalOcean\",\n summary: \"Droplets, Kubernetes, databases, and networking.\",\n url: \"https://raw.githubusercontent.com/digitalocean/openapi/main/specification/DigitalOcean-public.v2.yaml\",\n icon: \"https://assets.digitalocean.com/favicon.ico\",\n },\n {\n id: \"petstore\",\n name: \"Petstore\",\n summary: \"Classic OpenAPI demo — no auth required.\",\n url: \"https://petstore3.swagger.io/api/v3/openapi.json\",\n icon: \"https://petstore3.swagger.io/favicon-32x32.png\",\n },\n {\n id: \"val-town\",\n name: \"Val Town\",\n summary: \"Vals, runs, blobs, and email/web endpoints.\",\n url: \"https://api.val.town/openapi.json\",\n icon: \"https://www.val.town/favicon.svg\",\n },\n {\n id: \"resend\",\n name: \"Resend\",\n summary: \"Transactional email sending and domain management.\",\n url: \"https://raw.githubusercontent.com/resend/resend-openapi/main/resend.yaml\",\n icon: \"https://resend.com/static/favicons/favicon.ico\",\n },\n {\n id: \"spotify\",\n name: \"Spotify\",\n summary: \"Tracks, albums, playlists, library, and playback.\",\n url: \"https://raw.githubusercontent.com/sonallux/spotify-web-api/refs/heads/main/official-spotify-open-api.yml\",\n icon: \"https://spotify.com/favicon.ico\",\n },\n];\n\nexport { googleOpenApiPresets, googleStandardUserOAuthPresets } from \"./google-presets\";\n\nexport const openApiPresets: readonly OpenApiPreset[] = [\n googleOpenApiBundlePreset,\n ...openApiOnlyPresets,\n ...googleOpenApiPresets,\n];\n"],"mappings":";;;;;;AAWA,IAAM,qBAA+C;AAAA,EACnD;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,KAAK;AAAA,IACL,MAAM;AAAA,IACN,UAAU;AAAA,EACZ;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,KAAK;AAAA,IACL,MAAM;AAAA,IACN,UAAU;AAAA,EACZ;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,KAAK;AAAA,IACL,MAAM;AAAA,IACN,UAAU;AAAA,EACZ;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,KAAK;AAAA,IACL,MAAM;AAAA,IACN,UAAU;AAAA,EACZ;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,KAAK;AAAA,IACL,MAAM;AAAA,IACN,UAAU;AAAA,EACZ;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,KAAK;AAAA,IACL,MAAM;AAAA,IACN,UAAU;AAAA,EACZ;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,KAAK;AAAA,IACL,MAAM;AAAA,IACN,UAAU;AAAA,EACZ;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,KAAK;AAAA,IACL,MAAM;AAAA,IACN,UAAU;AAAA,EACZ;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,KAAK;AAAA,IACL,MAAM;AAAA,IACN,UAAU;AAAA,EACZ;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,KAAK;AAAA,IACL,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,KAAK;AAAA,IACL,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,KAAK;AAAA,IACL,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,KAAK;AAAA,IACL,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,KAAK;AAAA,IACL,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,KAAK;AAAA,IACL,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,KAAK;AAAA,IACL,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,KAAK;AAAA,IACL,MAAM;AAAA,EACR;AACF;AAIO,IAAM,iBAA2C;AAAA,EACtD;AAAA,EACA,GAAG;AAAA,EACH,GAAG;AACL;","names":[]}
|