History

Move source auth handling into plugins

Rhys Sullivan committed 7 months ago

Commit db9b84d1 parent 02d549c15 files · +98 −125Browse files

Showing the changes to plugins/openapi/shared (2 of 15 files). Show all

Unified · Split

2 files
  1. plugins/openapi/shared/index.ts +3 −2
  2. plugins/openapi/shared/package.json +1 −0
plugins/openapi/shared/index.ts+3−2
@@ -3,8 +3,9 @@ import * as Schema from "effect/Schema"; · 2 unmodified lines
33 import YAML from "yaml";
44
55 import {
6+ SecretRefSchema,
67 StringMapSchema,
7−} from "@executor/source-core";
8+} from "@executor/platform-sdk/schema";
89
910 export const OpenApiConnectionAuthSchema = Schema.Union(
1011 Schema.Struct({
@@ -12,7 +13,7 @@ export const OpenApiConnectionAuthSchema = Schema.Union( · 1 unmodified line
1213 }),
1314 Schema.Struct({
1415 kind: Schema.Literal("bearer"),
15− tokenSecretRef: Schema.String,
16+ tokenSecretRef: SecretRefSchema,
1617 }),
1718 );
1819
plugins/openapi/shared/package.json+1−0
@@ -12,6 +12,7 @@ · 11 unmodified lines
1212 "typecheck": "bunx tsc --noEmit -p tsconfig.json"
1313 },
1414 "dependencies": {
15+ "@executor/platform-sdk": "workspace:*",
1516 "@executor/source-core": "workspace:*",
1617 "effect": "catalog:",
1718 "yaml": "^2.8.1"