Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/release-python-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v7

- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v7
with:
package-manager-cache: false

- name: Download Fern
run: npm install -g fern-api
Expand Down
15 changes: 0 additions & 15 deletions fern/apis/api/openapi-overrides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3591,13 +3591,6 @@ components:
properties:
provider:
description: Selects Together AI as the credential provider.
CreateTrieveCredentialDTO:
title: CreateTrieveCredentialDTO
description: >-
Credentials for authenticating knowledge-base requests with Trieve.
properties:
provider:
description: Selects Trieve as the credential provider.
CreateTwilioCredentialDTO:
title: CreateTwilioCredentialDTO
description: >-
Expand Down Expand Up @@ -4025,8 +4018,6 @@ components:
description: >-
The inclusive lower creation-time boundary applied to the result
set.
TrieveKnowledgeBaseImport:
title: TrieveKnowledgeBaseImport
TestSuiteTestScorerAI:
title: TestSuiteTestScorerAI
TestSuiteTestVoice:
Expand Down Expand Up @@ -4495,14 +4486,8 @@ components:
description: >-
Fields used to update a GoHighLevel contact-retrieval tool, including
its spoken messages and rejection plan.
CreateTrieveKnowledgeBaseDTO:
title: CreateTrieveKnowledgeBaseDTO
TrieveKnowledgeBase:
title: TrieveKnowledgeBase
CustomKnowledgeBase:
title: CustomKnowledgeBase
UpdateTrieveKnowledgeBaseDTO:
title: UpdateTrieveKnowledgeBaseDTO
UpdateCustomKnowledgeBaseDTO:
title: UpdateCustomKnowledgeBaseDTO
CreateTestSuiteTestVoiceDto:
Expand Down
41 changes: 40 additions & 1 deletion fern/apis/api/openapi-parameter-descriptions-overlay.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,47 @@
overlay: 1.0.0
info:
title: Document API parameters
title: Document API parameters and preserve response parsing
version: 1.0.0
actions:
# Python parses undiscriminated union members in order. The preview member
# has no required fields and accepts extras, so it must follow the rerun
# member to preserve workflowId parsing. Remove first to replace the array
# without merging its members with the original schemas.
- target: $.paths['/structured-output/run'].post.responses['200'].content['application/json'].schema.oneOf
remove: true
- target: $.paths['/structured-output/run'].post.responses['200'].content['application/json'].schema
update:
oneOf:
- title: StructuredOutputRerunResponse
$ref: '#/components/schemas/StructuredOutputRerunResponse'
- title: StructuredOutputRunPreviewResponse
allOf:
- $ref: '#/components/schemas/StructuredOutputRunPreviewResponse'
- additionalProperties:
$ref: '#/components/schemas/StructuredOutputRunResult'
# These variants are present in the API's oneOf lists. Their schemas declare
# the exact discriminator values below; include them in the mappings too.
- target: $.paths['/tool'].post.requestBody.content['application/json'].schema.discriminator.mapping
update:
code: '#/components/schemas/CreateCodeToolDTO'
- target: $.paths['/tool/{id}'].patch.requestBody.content['application/json'].schema.discriminator.mapping
update:
code: '#/components/schemas/UpdateCodeToolDTO'
- target: $.paths['/tool'].get.responses['200'].content['application/json'].schema.items.discriminator.mapping
update:
ghl: '#/components/schemas/GhlTool'
- target: $.paths['/tool'].post.responses['201'].content['application/json'].schema.discriminator.mapping
update:
ghl: '#/components/schemas/GhlTool'
- target: $.paths['/tool/{id}'].get.responses['200'].content['application/json'].schema.discriminator.mapping
update:
ghl: '#/components/schemas/GhlTool'
- target: $.paths['/tool/{id}'].patch.responses['200'].content['application/json'].schema.discriminator.mapping
update:
ghl: '#/components/schemas/GhlTool'
- target: $.paths['/tool/{id}'].delete.responses['200'].content['application/json'].schema.discriminator.mapping
update:
ghl: '#/components/schemas/GhlTool'
# Path parameters
- target: $.paths['/assistant/{id}'].*.parameters[?(@.name == 'id' && @.in == 'path')]
update:
Expand Down
Loading