Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
zAlweNy26 committed Oct 7, 2024
2 parents fdfab3a + 54fc277 commit 7fb261e
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 18 deletions.
5 changes: 5 additions & 0 deletions .changeset/quiet-horses-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ccat-api": patch
---

fix types in auth handler endpoints
5 changes: 0 additions & 5 deletions .changeset/wise-apricots-relax.md

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# ccat-api

## 0.11.1

### Patch Changes

- df6a9e9: renamed `baseUrl` to `host` for better understanding.

## 0.11.0

### Minor Changes
Expand Down
14 changes: 8 additions & 6 deletions api/services/AuthHandlerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { Setting } from '../models/Setting';
import type { SettingsResponse } from '../models/SettingsResponse';
import type { CancelablePromise } from '../core/CancelablePromise';
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
export class AuthHandlerService {
constructor(private readonly httpRequest: BaseHttpRequest) {}
/**
* Get Auth Handler Settings
* Get the list of the AuthHandlers
* @returns any Successful Response
* @returns SettingsResponse Successful Response
* @throws ApiError
*/
public getAuthHandlerSettings(): CancelablePromise<Record<string, any>> {
public getAuthHandlerSettings(): CancelablePromise<SettingsResponse> {
return this.httpRequest.request({
method: 'GET',
url: '/auth_handler/settings',
Expand All @@ -22,12 +24,12 @@ export class AuthHandlerService {
* Get Auth Handler Setting
* Get the settings of a specific AuthHandler
* @param authHandlerName
* @returns any Successful Response
* @returns Setting Successful Response
* @throws ApiError
*/
public getAuthHandlerSetting(
authHandlerName: string,
): CancelablePromise<Record<string, any>> {
): CancelablePromise<Setting> {
return this.httpRequest.request({
method: 'GET',
url: '/auth_handler/settings/{auth_handler_name}',
Expand All @@ -44,13 +46,13 @@ export class AuthHandlerService {
* Upsert the settings of a specific AuthHandler
* @param authHandlerName
* @param requestBody
* @returns any Successful Response
* @returns Setting Successful Response
* @throws ApiError
*/
public upsertAuthenticatorSetting(
authHandlerName: string,
requestBody: Record<string, any>,
): CancelablePromise<Record<string, any>> {
): CancelablePromise<Setting> {
return this.httpRequest.request({
method: 'PUT',
url: '/auth_handler/settings/{auth_handler_name}',
Expand Down
9 changes: 3 additions & 6 deletions catapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "Response Get Auth Handler Settings"
"$ref": "#/components/schemas/SettingsResponse"
}
}
}
Expand Down Expand Up @@ -433,8 +432,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "Response Get Auth Handler Setting"
"$ref": "#/components/schemas/Setting"
}
}
}
Expand Down Expand Up @@ -486,8 +484,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "Response Upsert Authenticator Setting"
"$ref": "#/components/schemas/Setting"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ccat-api",
"description": "API Client to communicate with the Cheshire Cat AI",
"license": "MIT",
"version": "0.11.0",
"version": "0.11.1",
"author": "zAlweNy26",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down

0 comments on commit 7fb261e

Please sign in to comment.