History

Move provider add surfaces into catalog presets

Rhys Sullivan committed 4 months ago

Commit 4bf0e871 parent d94baf575 files · +747 −4956Browse files

Showing the changes to packages/plugins/openapi/src/api (2 of 75 files). Show all

Unified · Split

2 files
  1. packages/plugins/openapi/src/api/group.ts +2 −0
  2. packages/plugins/openapi/src/api/handlers.ts +1 −0
packages/plugins/openapi/src/api/group.ts+2−0
@@ -2,6 +2,7 @@ import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi"; · 1 unmodified line
2import { Schema } from "effect";2import { Schema } from "effect";
3import { ApiKeyAuthMethod, ApiKeyAuthTemplate } from "@executor-js/sdk/http-auth";3import { ApiKeyAuthMethod, ApiKeyAuthTemplate } from "@executor-js/sdk/http-auth";
4import {4import {
5 HealthCheckSpec,
5 InternalError,6 InternalError,
6 IntegrationAlreadyExistsError,7 IntegrationAlreadyExistsError,
7 IntegrationNotFoundError,8 IntegrationNotFoundError,
@@ -76,6 +77,7 @@ const AddSpecPayload = Schema.Struct({ · 68 unmodified lines
76 queryParams: Schema.optional(Schema.Record(Schema.String, Schema.String)),77 queryParams: Schema.optional(Schema.Record(Schema.String, Schema.String)),
77 specFormat: Schema.optional(Schema.String),78 specFormat: Schema.optional(Schema.String),
78 family: Schema.optional(Schema.String),79 family: Schema.optional(Schema.String),
80 healthCheck: Schema.optional(HealthCheckSpec),
79 authenticationTemplate: Schema.optional(Schema.Array(AuthenticationPayload)),81 authenticationTemplate: Schema.optional(Schema.Array(AuthenticationPayload)),
80});82});
81 83
packages/plugins/openapi/src/api/handlers.ts+1−0
@@ -66,6 +66,7 @@ export const OpenApiHandlers = HttpApiBuilder.group(ExecutorApiWithOpenApi, "ope · 65 unmodified lines
66 queryParams: payload.queryParams ? { ...payload.queryParams } : undefined,66 queryParams: payload.queryParams ? { ...payload.queryParams } : undefined,
67 specFormat: payload.specFormat,67 specFormat: payload.specFormat,
68 family: payload.family,68 family: payload.family,
69 healthCheck: payload.healthCheck,
69 authenticationTemplate: payload.authenticationTemplate,70 authenticationTemplate: payload.authenticationTemplate,
70 });71 });
71 }),72 }),