@executor-js/plugin-openapi 1.4.33 → 1.5.0
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/group.d.ts
CHANGED
|
@@ -1,21 +1,9 @@
|
|
|
1
1
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
-
import { InternalError } from "@executor-js/sdk/shared";
|
|
3
|
+
import { InternalError, IntegrationAlreadyExistsError } from "@executor-js/sdk/shared";
|
|
4
4
|
import { OpenApiParseError, OpenApiExtractionError, OpenApiOAuthError } from "../sdk/errors";
|
|
5
|
-
export declare const OpenApiGroup: HttpApiGroup.HttpApiGroup<"openapi", HttpApiEndpoint.HttpApiEndpoint<"previewSpec", "POST", "/
|
|
6
|
-
scopeId: Schema.brand<Schema.String, "ScopeId">;
|
|
7
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
5
|
+
export declare const OpenApiGroup: HttpApiGroup.HttpApiGroup<"openapi", HttpApiEndpoint.HttpApiEndpoint<"previewSpec", "POST", "/openapi/preview", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
8
6
|
readonly spec: Schema.String;
|
|
9
|
-
readonly specFetchCredentials: Schema.optional<Schema.Struct<{
|
|
10
|
-
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
11
|
-
readonly secretId: Schema.String;
|
|
12
|
-
readonly prefix: Schema.optional<Schema.String>;
|
|
13
|
-
}>]>>>;
|
|
14
|
-
readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
15
|
-
readonly secretId: Schema.String;
|
|
16
|
-
readonly prefix: Schema.optional<Schema.String>;
|
|
17
|
-
}>]>>>;
|
|
18
|
-
}>>;
|
|
19
7
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
20
8
|
readonly title: Schema.OptionFromOptional<Schema.String>;
|
|
21
9
|
readonly version: Schema.OptionFromOptional<Schema.String>;
|
|
@@ -77,233 +65,124 @@ export declare const OpenApiGroup: HttpApiGroup.HttpApiGroup<"openapi", HttpApiE
|
|
|
77
65
|
readonly tokenUrl: Schema.String;
|
|
78
66
|
readonly refreshUrl: Schema.OptionFromOptional<Schema.String>;
|
|
79
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>]>;
|
|
80
69
|
}>>;
|
|
81
|
-
}>>, HttpApiEndpoint.Json<typeof InternalError | typeof OpenApiParseError | typeof OpenApiExtractionError | typeof OpenApiOAuthError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"addSpec", "POST", "/
|
|
82
|
-
scopeId: Schema.brand<Schema.String, "ScopeId">;
|
|
83
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
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<{
|
|
84
71
|
readonly spec: Schema.Union<readonly [Schema.Struct<{
|
|
85
72
|
readonly kind: Schema.Literal<"url">;
|
|
86
73
|
readonly url: Schema.String;
|
|
87
74
|
}>, Schema.Struct<{
|
|
88
75
|
readonly kind: Schema.Literal<"blob">;
|
|
89
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>;
|
|
90
83
|
}>]>;
|
|
91
|
-
readonly
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
readonly
|
|
110
|
-
readonly
|
|
111
|
-
}>]>>>;
|
|
112
|
-
readonly oauth2: Schema.optional<Schema.Struct<{
|
|
113
|
-
readonly kind: Schema.Literal<"oauth2">;
|
|
114
|
-
readonly securitySchemeName: Schema.String;
|
|
115
|
-
readonly flow: Schema.Literals<readonly ["authorizationCode", "clientCredentials"]>;
|
|
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;
|
|
116
104
|
readonly tokenUrl: Schema.String;
|
|
117
|
-
readonly authorizationUrl: Schema.withDecodingDefault<Schema.optional<Schema.NullOr<Schema.String>>>;
|
|
118
|
-
readonly issuerUrl: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
119
|
-
readonly clientIdSlot: Schema.String;
|
|
120
|
-
readonly clientSecretSlot: Schema.NullOr<Schema.String>;
|
|
121
|
-
readonly connectionSlot: Schema.String;
|
|
122
105
|
readonly scopes: Schema.$Array<Schema.String>;
|
|
123
|
-
}
|
|
106
|
+
}>]>>>;
|
|
124
107
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
108
|
+
readonly slug: Schema.brand<Schema.String, "IntegrationSlug">;
|
|
125
109
|
readonly toolCount: Schema.Number;
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
scopeId: Schema.brand<Schema.String, "ScopeId">;
|
|
129
|
-
namespace: Schema.String;
|
|
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;
|
|
130
112
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.NullOr<Schema.Struct<{
|
|
131
|
-
readonly
|
|
132
|
-
readonly
|
|
133
|
-
readonly
|
|
134
|
-
readonly
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
readonly
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
readonly kind: Schema.Literal<"binding">;
|
|
157
|
-
readonly slot: Schema.String;
|
|
158
|
-
readonly prefix: Schema.optional<Schema.String>;
|
|
159
|
-
}>]>>>;
|
|
160
|
-
}>>;
|
|
161
|
-
readonly oauth2: Schema.optional<Schema.Struct<{
|
|
162
|
-
readonly kind: Schema.Literal<"oauth2">;
|
|
163
|
-
readonly securitySchemeName: Schema.String;
|
|
164
|
-
readonly flow: Schema.Literals<readonly ["authorizationCode", "clientCredentials"]>;
|
|
165
|
-
readonly tokenUrl: Schema.String;
|
|
166
|
-
readonly authorizationUrl: Schema.withDecodingDefault<Schema.optional<Schema.NullOr<Schema.String>>>;
|
|
167
|
-
readonly issuerUrl: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
168
|
-
readonly clientIdSlot: Schema.String;
|
|
169
|
-
readonly clientSecretSlot: Schema.NullOr<Schema.String>;
|
|
170
|
-
readonly connectionSlot: Schema.String;
|
|
171
|
-
readonly scopes: Schema.$Array<Schema.String>;
|
|
172
|
-
}>>;
|
|
173
|
-
}>;
|
|
174
|
-
}>>>, HttpApiEndpoint.Json<typeof InternalError | typeof OpenApiParseError | typeof OpenApiExtractionError | typeof OpenApiOAuthError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"configure", "POST", "/scopes/:scopeId/openapi/configure", HttpApiEndpoint.StringTree<Schema.Struct<{
|
|
175
|
-
scopeId: Schema.brand<Schema.String, "ScopeId">;
|
|
176
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
177
|
-
readonly source: Schema.Struct<{
|
|
178
|
-
readonly id: Schema.String;
|
|
179
|
-
readonly scope: Schema.brand<Schema.String, "ScopeId">;
|
|
180
|
-
}>;
|
|
181
|
-
readonly scope: Schema.brand<Schema.String, "ScopeId">;
|
|
182
|
-
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
183
|
-
readonly kind: Schema.Literal<"text">;
|
|
184
|
-
readonly text: Schema.String;
|
|
185
|
-
readonly prefix: Schema.optional<Schema.String>;
|
|
186
|
-
}>, Schema.Struct<{
|
|
187
|
-
readonly kind: Schema.Literal<"secret">;
|
|
188
|
-
readonly secretId: Schema.String;
|
|
189
|
-
readonly secretScope: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
|
|
190
|
-
readonly prefix: Schema.optional<Schema.String>;
|
|
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
|
+
}>]>>]>>>;
|
|
191
138
|
}>, Schema.Struct<{
|
|
192
|
-
readonly
|
|
193
|
-
readonly
|
|
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>;
|
|
194
144
|
}>]>>>;
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
readonly
|
|
201
|
-
readonly
|
|
202
|
-
|
|
203
|
-
|
|
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
|
+
}>]>>]>>>;
|
|
204
159
|
}>, Schema.Struct<{
|
|
205
|
-
readonly
|
|
206
|
-
readonly
|
|
207
|
-
|
|
208
|
-
readonly specFetchCredentials: Schema.optional<Schema.Struct<{
|
|
209
|
-
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
210
|
-
readonly kind: Schema.Literal<"text">;
|
|
211
|
-
readonly text: Schema.String;
|
|
212
|
-
readonly prefix: Schema.optional<Schema.String>;
|
|
213
|
-
}>, Schema.Struct<{
|
|
214
|
-
readonly kind: Schema.Literal<"secret">;
|
|
215
|
-
readonly secretId: Schema.String;
|
|
216
|
-
readonly secretScope: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
|
|
217
|
-
readonly prefix: Schema.optional<Schema.String>;
|
|
218
|
-
}>, Schema.Struct<{
|
|
219
|
-
readonly kind: Schema.Literal<"connection">;
|
|
220
|
-
readonly connectionId: Schema.brand<Schema.String, "ConnectionId">;
|
|
221
|
-
}>]>>>;
|
|
222
|
-
readonly queryParams: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
223
|
-
readonly kind: Schema.Literal<"text">;
|
|
224
|
-
readonly text: Schema.String;
|
|
225
|
-
readonly prefix: Schema.optional<Schema.String>;
|
|
226
|
-
}>, Schema.Struct<{
|
|
227
|
-
readonly kind: Schema.Literal<"secret">;
|
|
228
|
-
readonly secretId: Schema.String;
|
|
229
|
-
readonly secretScope: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
|
|
230
|
-
readonly prefix: Schema.optional<Schema.String>;
|
|
231
|
-
}>, Schema.Struct<{
|
|
232
|
-
readonly kind: Schema.Literal<"connection">;
|
|
233
|
-
readonly connectionId: Schema.brand<Schema.String, "ConnectionId">;
|
|
234
|
-
}>]>>>;
|
|
235
|
-
}>>;
|
|
236
|
-
readonly oauth2: Schema.optional<Schema.Struct<{
|
|
237
|
-
readonly clientId: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
238
|
-
readonly kind: Schema.Literal<"text">;
|
|
239
|
-
readonly text: Schema.String;
|
|
240
|
-
readonly prefix: Schema.optional<Schema.String>;
|
|
241
|
-
}>, Schema.Struct<{
|
|
242
|
-
readonly kind: Schema.Literal<"secret">;
|
|
243
|
-
readonly secretId: Schema.String;
|
|
244
|
-
readonly secretScope: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
|
|
245
|
-
readonly prefix: Schema.optional<Schema.String>;
|
|
246
|
-
}>, Schema.Struct<{
|
|
247
|
-
readonly kind: Schema.Literal<"connection">;
|
|
248
|
-
readonly connectionId: Schema.brand<Schema.String, "ConnectionId">;
|
|
249
|
-
}>]>>;
|
|
250
|
-
readonly clientSecret: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
251
|
-
readonly kind: Schema.Literal<"text">;
|
|
252
|
-
readonly text: Schema.String;
|
|
253
|
-
readonly prefix: Schema.optional<Schema.String>;
|
|
254
|
-
}>, Schema.Struct<{
|
|
255
|
-
readonly kind: Schema.Literal<"secret">;
|
|
256
|
-
readonly secretId: Schema.String;
|
|
257
|
-
readonly secretScope: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
|
|
258
|
-
readonly prefix: Schema.optional<Schema.String>;
|
|
259
|
-
}>, Schema.Struct<{
|
|
260
|
-
readonly kind: Schema.Literal<"connection">;
|
|
261
|
-
readonly connectionId: Schema.brand<Schema.String, "ConnectionId">;
|
|
262
|
-
}>]>>;
|
|
263
|
-
readonly connection: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
264
|
-
readonly kind: Schema.Literal<"text">;
|
|
265
|
-
readonly text: Schema.String;
|
|
266
|
-
readonly prefix: Schema.optional<Schema.String>;
|
|
267
|
-
}>, Schema.Struct<{
|
|
268
|
-
readonly kind: Schema.Literal<"secret">;
|
|
269
|
-
readonly secretId: Schema.String;
|
|
270
|
-
readonly secretScope: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
|
|
271
|
-
readonly prefix: Schema.optional<Schema.String>;
|
|
272
|
-
}>, Schema.Struct<{
|
|
273
|
-
readonly kind: Schema.Literal<"connection">;
|
|
274
|
-
readonly connectionId: Schema.brand<Schema.String, "ConnectionId">;
|
|
275
|
-
}>]>>;
|
|
276
|
-
}>>;
|
|
277
|
-
readonly oauth2Source: Schema.optional<Schema.Struct<{
|
|
278
|
-
readonly kind: Schema.Literal<"oauth2">;
|
|
279
|
-
readonly securitySchemeName: Schema.String;
|
|
280
|
-
readonly flow: Schema.Literals<readonly ["authorizationCode", "clientCredentials"]>;
|
|
160
|
+
readonly slug: Schema.String;
|
|
161
|
+
readonly type: Schema.Literal<"oauth">;
|
|
162
|
+
readonly authorizationUrl: Schema.String;
|
|
281
163
|
readonly tokenUrl: Schema.String;
|
|
282
|
-
readonly authorizationUrl: Schema.withDecodingDefault<Schema.optional<Schema.NullOr<Schema.String>>>;
|
|
283
|
-
readonly issuerUrl: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
284
|
-
readonly clientIdSlot: Schema.String;
|
|
285
|
-
readonly clientSecretSlot: Schema.NullOr<Schema.String>;
|
|
286
|
-
readonly connectionSlot: Schema.String;
|
|
287
164
|
readonly scopes: Schema.$Array<Schema.String>;
|
|
288
|
-
}>>;
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
readonly
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
readonly
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
|
|
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
|
+
}>]>>]>>>;
|
|
303
179
|
}>, Schema.Struct<{
|
|
304
|
-
readonly
|
|
305
|
-
readonly
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
}
|
|
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>;
|