diff --git a/.github/workflows/preview-sdks.yml b/.github/workflows/preview-sdks.yml index b42d63901..f72d823ca 100644 --- a/.github/workflows/preview-sdks.yml +++ b/.github/workflows/preview-sdks.yml @@ -30,7 +30,7 @@ jobs: env: FERN_TOKEN: ${{ secrets.FERN_TOKEN }} run: | - cd fern/apis/api/.preview/fern-typescript-node-sdk + cd fern/apis/api/.preview/fern-typescript-sdk yarn install yarn build diff --git a/.github/workflows/release-php-sdk.yml b/.github/workflows/release-php-sdk.yml new file mode 100644 index 000000000..78341822a --- /dev/null +++ b/.github/workflows/release-php-sdk.yml @@ -0,0 +1,25 @@ +name: Release PHP SDK + +on: + workflow_dispatch: + inputs: + version: + description: "The version of the PHP SDK that you would like to release" + required: true + type: string + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Download Fern + run: npm install -g fern-api + + - name: Release PHP SDK + env: + FERN_TOKEN: ${{ secrets.FERN_TOKEN }} + run: | + fern generate --group php-sdk --version ${{ inputs.version }} --log-level debug diff --git a/.github/workflows/release-swift-sdk.yml b/.github/workflows/release-swift-sdk.yml new file mode 100644 index 000000000..85cab59b3 --- /dev/null +++ b/.github/workflows/release-swift-sdk.yml @@ -0,0 +1,25 @@ +name: Release Swift SDK + +on: + workflow_dispatch: + inputs: + version: + description: "The version of the Swift SDK that you would like to release" + required: true + type: string + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Download Fern + run: npm install -g fern-api + + - name: Release Swift SDK + env: + FERN_TOKEN: ${{ secrets.FERN_TOKEN }} + run: | + fern generate --group swift-sdk --version ${{ inputs.version }} --log-level debug diff --git a/fern/apis/api/generators.yml b/fern/apis/api/generators.yml index 646709079..6ae8b4ed7 100644 --- a/fern/apis/api/generators.yml +++ b/fern/apis/api/generators.yml @@ -27,7 +27,7 @@ groups: client_class_name: Vapi ts-sdk: generators: - - name: fernapi/fern-typescript-node-sdk + - name: fernapi/fern-typescript-sdk version: 2.10.1 api: settings: @@ -45,25 +45,26 @@ groups: includeApiReference: true noSerdeLayer: true omitUndefined: true + enableInlineTypes: false smart-casing: true - java-sdk: - generators: - - name: fernapi/fern-java-sdk - version: 2.43.3 - disable-examples: true - output: - location: maven - coordinate: dev.vapi:server-sdk - username: ${MAVEN_USERNAME} - password: ${MAVEN_PASSWORD} - signature: - keyId: ${MAVEN_CENTRAL_SECRET_KEY_KEY_ID} - password: ${MAVEN_CENTRAL_SECRET_KEY_PASSWORD} - secretKey: ${MAVEN_CENTRAL_SECRET_KEY} - github: - repository: VapiAI/server-sdk-java - config: - client-class-name: Vapi + # java-sdk: + # generators: + # - name: fernapi/fern-java-sdk + # version: 2.43.3 + # disable-examples: true + # output: + # location: maven + # coordinate: dev.vapi:server-sdk + # username: ${MAVEN_USERNAME} + # password: ${MAVEN_PASSWORD} + # signature: + # keyId: ${MAVEN_CENTRAL_SECRET_KEY_KEY_ID} + # password: ${MAVEN_CENTRAL_SECRET_KEY_PASSWORD} + # secretKey: ${MAVEN_CENTRAL_SECRET_KEY} + # github: + # repository: VapiAI/server-sdk-java + # config: + # client-class-name: Vapi go-sdk: generators: - name: fernapi/fern-go-sdk @@ -109,3 +110,24 @@ groups: inline-path-parameters: false simplify-object-dictionaries: true use-discriminated-unions: false + php-sdk: + generators: + - name: fernapi/fern-php-sdk + version: 1.17.1 + disable-examples: true + github: + repository: VapiAI/server-sdk-php + config: + namespace: Vapi + client-class-name: VapiClient + swift-sdk: + generators: + - name: fernapi/fern-swift-sdk + version: 0.18.0 + disable-examples: true + github: + repository: VapiAI/server-sdk-swift + config: + clientClassName: VapiClient + moduleName: Vapi + environmentEnumName: VapiEnvironment diff --git a/fern/apis/api/openapi.json b/fern/apis/api/openapi.json index 7052ab8ac..55b794f63 100644 --- a/fern/apis/api/openapi.json +++ b/fern/apis/api/openapi.json @@ -911,8 +911,7 @@ "eq": "2", "gt": "1" } - }, - "type": "object" + } } }, {