diff --git a/fern/generators.yml b/fern/generators.yml index 94a66d0..4e31641 100644 --- a/fern/generators.yml +++ b/fern/generators.yml @@ -14,8 +14,6 @@ groups: # token: ${NPM_TOKEN} github: repository: "chariot-giving/typescript-sdk" - # mode: push - # branch: main mode: pull-request config: namespaceExport: Chariot diff --git a/fern/openapi-overrides.yml b/fern/openapi-overrides.yml index 724483e..68a9b15 100644 --- a/fern/openapi-overrides.yml +++ b/fern/openapi-overrides.yml @@ -94,3 +94,48 @@ paths: x-fern-sdk-group-name: - eventSubscriptions x-fern-sdk-method-name: update + /oauth/token: + post: + summary: Request an access token + description: Obtain an access token using client credentials + x-fern-sdk-group-name: + - auth + x-fern-sdk-method-name: getToken + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + client_id: + type: string + description: The client ID of the application + client_secret: + type: string + description: The client secret of the application + audience: + description: The API identifier + x-fern-type: literal<"https://api.givechariot.com"> + grant_type: + x-fern-type: literal<"client_credentials"> + required: + - client_id + - client_secret + - audience + - grant_type + responses: + '200': + description: Successful response + content: + application/json: + schema: + x-fern-type-name: GetTokenResponse + type: object + properties: + access_token: + type: string + token_type: + type: string + expires_in: + type: integer