diff --git a/packages/api/src/schema/ai-api-schema.yaml b/packages/api/src/schema/ai-api-schema.yaml index 39dbb90f8..0be59062f 100644 --- a/packages/api/src/schema/ai-api-schema.yaml +++ b/packages/api/src/schema/ai-api-schema.yaml @@ -59,8 +59,6 @@ paths: application/json: schema: $ref: '#/components/schemas/studio-api-error' - security: - - HTTPBearer: [] x-speakeasy-name-override: textToImage /api/beta/generate/image-to-image: post: @@ -121,8 +119,6 @@ paths: application/json: schema: $ref: '#/components/schemas/studio-api-error' - security: - - HTTPBearer: [] x-speakeasy-name-override: imageToImage /api/beta/generate/image-to-video: post: @@ -183,8 +179,6 @@ paths: application/json: schema: $ref: '#/components/schemas/studio-api-error' - security: - - HTTPBearer: [] x-speakeasy-name-override: imageToVideo /api/beta/generate/upscale: post: @@ -245,8 +239,6 @@ paths: application/json: schema: $ref: '#/components/schemas/studio-api-error' - security: - - HTTPBearer: [] x-speakeasy-name-override: upscale /api/beta/generate/audio-to-text: post: @@ -315,8 +307,6 @@ paths: application/json: schema: $ref: '#/components/schemas/studio-api-error' - security: - - HTTPBearer: [] x-speakeasy-name-override: audioToText /api/beta/generate/segment-anything-2: post: @@ -377,8 +367,6 @@ paths: application/json: schema: $ref: '#/components/schemas/studio-api-error' - security: - - HTTPBearer: [] x-speakeasy-name-override: segmentAnything2 components: schemas: diff --git a/packages/api/src/schema/pull-ai-schema.js b/packages/api/src/schema/pull-ai-schema.js index be0443f2a..76db0786a 100644 --- a/packages/api/src/schema/pull-ai-schema.js +++ b/packages/api/src/schema/pull-ai-schema.js @@ -65,7 +65,7 @@ const downloadAiSchema = async () => { // prefix paths with /api/beta/generate path = `/api/beta/generate${path}`; // remove security field - delete value.security; + delete value.post.security; // add Studio API error as oneOf to all of the error responses const studioErrorRef = () => ({ $ref: "#/components/schemas/studio-api-error",