@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.
Files changed (81) hide show
  1. package/dist/AddOpenApiSource-7M52SRUX.js +893 -0
  2. package/dist/AddOpenApiSource-7M52SRUX.js.map +1 -0
  3. package/dist/EditOpenApiSource-WTAMRJUK.js +68 -0
  4. package/dist/EditOpenApiSource-WTAMRJUK.js.map +1 -0
  5. package/dist/OpenApiAccountsPanel-3VJJXNQF.js +112 -0
  6. package/dist/OpenApiAccountsPanel-3VJJXNQF.js.map +1 -0
  7. package/dist/api/group.d.ts +104 -225
  8. package/dist/api/index.d.ts +127 -271
  9. package/dist/{chunk-BB5IAKRG.js → chunk-AQ7JDDRM.js} +12 -2
  10. package/dist/chunk-AQ7JDDRM.js.map +1 -0
  11. package/dist/chunk-BSLE6HCE.js +181 -0
  12. package/dist/chunk-BSLE6HCE.js.map +1 -0
  13. package/dist/chunk-MZWZQ24W.js +226 -0
  14. package/dist/chunk-MZWZQ24W.js.map +1 -0
  15. package/dist/chunk-OSIFYIQP.js +623 -0
  16. package/dist/chunk-OSIFYIQP.js.map +1 -0
  17. package/dist/chunk-QSSRVK6M.js +139 -0
  18. package/dist/chunk-QSSRVK6M.js.map +1 -0
  19. package/dist/chunk-V7VCHYOY.js +1544 -0
  20. package/dist/chunk-V7VCHYOY.js.map +1 -0
  21. package/dist/{chunk-AN4HJFNP.js → chunk-YVRI7KRC.js} +162 -186
  22. package/dist/chunk-YVRI7KRC.js.map +1 -0
  23. package/dist/client.js +9 -8
  24. package/dist/client.js.map +1 -1
  25. package/dist/core.js +28 -11
  26. package/dist/index.js +11 -4
  27. package/dist/react/AddOpenApiSource.d.ts +2 -13
  28. package/dist/react/GoogleProductPicker.d.ts +9 -0
  29. package/dist/react/OpenApiAccountsPanel.d.ts +6 -0
  30. package/dist/react/OpenApiSourceDetailsFields.d.ts +3 -2
  31. package/dist/react/atoms.d.ts +177 -192
  32. package/dist/react/auth-method-config.d.ts +15 -0
  33. package/dist/react/client.d.ts +103 -224
  34. package/dist/react/index.d.ts +2 -2
  35. package/dist/react/source-plugin.d.ts +2 -2
  36. package/dist/sdk/config.d.ts +75 -0
  37. package/dist/sdk/configure.test.d.ts +1 -0
  38. package/dist/sdk/describe-auth-methods.test.d.ts +1 -0
  39. package/dist/sdk/errors.d.ts +4 -6
  40. package/dist/sdk/extract.d.ts +7 -5
  41. package/dist/sdk/google-bundle.test.d.ts +1 -0
  42. package/dist/sdk/google-discovery.d.ts +43 -0
  43. package/dist/sdk/google-discovery.test.d.ts +1 -0
  44. package/dist/sdk/google-oauth-batches.d.ts +13 -0
  45. package/dist/sdk/google-oauth-batches.test.d.ts +1 -0
  46. package/dist/sdk/google-oauth-scopes.d.ts +3 -0
  47. package/dist/sdk/google-oauth-scopes.test.d.ts +1 -0
  48. package/dist/sdk/google-presets.d.ts +16 -0
  49. package/dist/sdk/google-presets.test.d.ts +1 -0
  50. package/dist/sdk/google-product-picker-scopes.test.d.ts +1 -0
  51. package/dist/sdk/index.d.ts +7 -5
  52. package/dist/sdk/invoke.d.ts +6 -9
  53. package/dist/sdk/openapi-utils.d.ts +1 -0
  54. package/dist/sdk/plugin.d.ts +74 -231
  55. package/dist/sdk/presets.d.ts +2 -1
  56. package/dist/sdk/preview.d.ts +20 -15
  57. package/dist/sdk/query-serialization.test.d.ts +1 -0
  58. package/dist/sdk/store.d.ts +14 -41
  59. package/dist/sdk/types.d.ts +23 -51
  60. package/dist/testing/index.d.ts +49 -38
  61. package/dist/testing.js +46 -18
  62. package/dist/testing.js.map +1 -1
  63. package/package.json +6 -4
  64. package/dist/AddOpenApiSource-NSCULGTM.js +0 -19
  65. package/dist/AddOpenApiSource-NSCULGTM.js.map +0 -1
  66. package/dist/EditOpenApiSource-MV7NYTRP.js +0 -774
  67. package/dist/EditOpenApiSource-MV7NYTRP.js.map +0 -1
  68. package/dist/OpenApiSourceSummary-7JBS7PUV.js +0 -122
  69. package/dist/OpenApiSourceSummary-7JBS7PUV.js.map +0 -1
  70. package/dist/chunk-2ZKKZYZH.js +0 -1181
  71. package/dist/chunk-2ZKKZYZH.js.map +0 -1
  72. package/dist/chunk-AN4HJFNP.js.map +0 -1
  73. package/dist/chunk-BB5IAKRG.js.map +0 -1
  74. package/dist/chunk-PRVJDE43.js +0 -2101
  75. package/dist/chunk-PRVJDE43.js.map +0 -1
  76. package/dist/chunk-X5JX3KTA.js +0 -201
  77. package/dist/chunk-X5JX3KTA.js.map +0 -1
  78. package/dist/react/OpenApiSourceSummary.d.ts +0 -5
  79. package/dist/sdk/credential-status.d.ts +0 -23
  80. package/dist/sdk/source-contracts.d.ts +0 -55
  81. /package/dist/{sdk/credential-status.test.d.ts → react/auth-method-config.test.d.ts} +0 -0
@@ -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/plugin").OpenApiPreviewInput) => import("effect/Effect").Effect<{
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 summary: import("effect/Option").Option<string>;
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<"query" | "header" | "cookie">;
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 label: string;
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("@executor-js/sdk/core").StorageFailure | import("../sdk").OpenApiParseError | import("../sdk").OpenApiExtractionError | import("../sdk").OpenApiOAuthError, never>;
79
+ }, import("../sdk").OpenApiParseError | import("../sdk").OpenApiExtractionError, never>;
79
80
  addSpec: (config: import("../sdk").OpenApiSpecConfig) => import("effect/Effect").Effect<{
80
- sourceId: string;
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: (namespace: string, scope: string) => import("effect/Effect").Effect<void, import("@executor-js/sdk/core").StorageFailure, never>;
84
- getSource: (namespace: string, scope: string) => import("effect/Effect").Effect<{
85
- config: import("../sdk").SourceConfig;
86
- namespace: string;
87
- scope: string;
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", "/scopes/:scopeId/openapi/specs", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
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 specFetchCredentials: import("effect/Schema").optional<import("effect/Schema").Struct<{
198
- 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<{
199
- readonly kind: import("effect/Schema").Literal<"secret">;
200
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
201
- }>]>>>;
202
- 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<{
203
- readonly kind: import("effect/Schema").Literal<"secret">;
204
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
205
- }>]>>>;
206
- }>>;
207
- readonly name: import("effect/Schema").String;
208
- readonly baseUrl: import("effect/Schema").String;
209
- readonly namespace: import("effect/Schema").String;
210
- 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<{
211
- readonly kind: import("effect/Schema").Literal<"secret">;
212
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
213
- }>]>>>;
214
- 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<{
215
- readonly kind: import("effect/Schema").Literal<"secret">;
216
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
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
- readonly namespace: import("effect/Schema").String;
233
- }>>, 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<"getSource", "GET", "/scopes/:scopeId/openapi/sources/:namespace", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
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 namespace: import("effect/Schema").String;
238
- readonly scope: import("effect/Schema").String;
239
- readonly name: import("effect/Schema").String;
240
- readonly config: import("effect/Schema").Struct<{
241
- readonly spec: import("effect/Schema").optional<import("effect/Schema").String>;
242
- readonly sourceUrl: import("effect/Schema").optional<import("effect/Schema").String>;
243
- readonly baseUrl: import("effect/Schema").optional<import("effect/Schema").String>;
244
- readonly namespace: import("effect/Schema").optional<import("effect/Schema").String>;
245
- 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<{
246
- readonly kind: import("effect/Schema").Literal<"binding">;
247
- readonly slot: import("effect/Schema").String;
248
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
249
- }>]>>>;
250
- 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<{
251
- readonly kind: import("effect/Schema").Literal<"binding">;
252
- readonly slot: import("effect/Schema").String;
253
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
254
- }>]>>>;
255
- readonly specFetchCredentials: import("effect/Schema").optional<import("effect/Schema").Struct<{
256
- 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<{
257
- readonly kind: import("effect/Schema").Literal<"binding">;
258
- readonly slot: import("effect/Schema").String;
259
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
260
- }>]>>>;
261
- 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<{
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 kind: import("effect/Schema").Literal<"connection">;
299
- readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
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
- 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<{
302
- readonly kind: import("effect/Schema").Literal<"text">;
303
- readonly text: import("effect/Schema").String;
304
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
305
- }>, import("effect/Schema").Struct<{
306
- readonly kind: import("effect/Schema").Literal<"secret">;
307
- readonly secretId: import("effect/Schema").String;
308
- readonly secretScope: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">>;
309
- readonly prefix: import("effect/Schema").optional<import("effect/Schema").String>;
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 kind: import("effect/Schema").Literal<"connection">;
312
- readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
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
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
396
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "CredentialBindingId">;
397
- readonly scopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
398
- readonly pluginId: import("effect/Schema").String;
399
- readonly sourceId: import("effect/Schema").String;
400
- readonly sourceScopeId: import("effect/Schema").brand<import("effect/Schema").String, "ScopeId">;
401
- readonly slotKey: import("effect/Schema").String;
402
- readonly value: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
403
- readonly kind: import("effect/Schema").Literal<"text">;
404
- readonly text: import("effect/Schema").String;
405
- }>, import("effect/Schema").Struct<{
406
- readonly kind: import("effect/Schema").Literal<"secret">;
407
- readonly secretId: import("effect/Schema").brand<import("effect/Schema").String, "SecretId">;
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 kind: import("effect/Schema").Literal<"connection">;
411
- readonly connectionId: import("effect/Schema").brand<import("effect/Schema").String, "ConnectionId">;
412
- }>]>;
413
- readonly createdAt: import("effect/Schema").Date;
414
- readonly updatedAt: import("effect/Schema").Date;
415
- }>>>, 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>, false>>;
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 openApiPresets = [
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-BB5IAKRG.js.map
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":[]}