-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c5416fb
commit d27210d
Showing
60 changed files
with
1,455 additions
and
1,378 deletions.
There are no files selected for viewing
31 changes: 17 additions & 14 deletions
31
src/interfaces/coral_web/src/cohere-client/generated/core/ApiError.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,28 @@ | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
|
||
/* istanbul ignore file */ | ||
|
||
/* tslint:disable */ | ||
|
||
/* eslint-disable */ | ||
import type { ApiRequestOptions } from './ApiRequestOptions'; | ||
import type { ApiResult } from './ApiResult'; | ||
|
||
export class ApiError extends Error { | ||
public readonly url: string; | ||
public readonly status: number; | ||
public readonly statusText: string; | ||
public readonly body: any; | ||
public readonly request: ApiRequestOptions; | ||
public readonly url: string; | ||
public readonly status: number; | ||
public readonly statusText: string; | ||
public readonly body: any; | ||
public readonly request: ApiRequestOptions; | ||
|
||
constructor(request: ApiRequestOptions, response: ApiResult, message: string) { | ||
super(message); | ||
constructor(request: ApiRequestOptions, response: ApiResult, message: string) { | ||
super(message); | ||
|
||
this.name = 'ApiError'; | ||
this.url = response.url; | ||
this.status = response.status; | ||
this.statusText = response.statusText; | ||
this.body = response.body; | ||
this.request = request; | ||
} | ||
this.name = 'ApiError'; | ||
this.url = response.url; | ||
this.status = response.status; | ||
this.statusText = response.statusText; | ||
this.body = response.body; | ||
this.request = request; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 21 additions & 18 deletions
39
src/interfaces/coral_web/src/cohere-client/generated/core/OpenAPI.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,35 @@ | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
|
||
/* istanbul ignore file */ | ||
|
||
/* tslint:disable */ | ||
|
||
/* eslint-disable */ | ||
import type { ApiRequestOptions } from './ApiRequestOptions'; | ||
|
||
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>; | ||
type Headers = Record<string, string>; | ||
|
||
export type OpenAPIConfig = { | ||
BASE: string; | ||
VERSION: string; | ||
WITH_CREDENTIALS: boolean; | ||
CREDENTIALS: 'include' | 'omit' | 'same-origin'; | ||
TOKEN?: string | Resolver<string> | undefined; | ||
USERNAME?: string | Resolver<string> | undefined; | ||
PASSWORD?: string | Resolver<string> | undefined; | ||
HEADERS?: Headers | Resolver<Headers> | undefined; | ||
ENCODE_PATH?: ((path: string) => string) | undefined; | ||
BASE: string; | ||
VERSION: string; | ||
WITH_CREDENTIALS: boolean; | ||
CREDENTIALS: 'include' | 'omit' | 'same-origin'; | ||
TOKEN?: string | Resolver<string> | undefined; | ||
USERNAME?: string | Resolver<string> | undefined; | ||
PASSWORD?: string | Resolver<string> | undefined; | ||
HEADERS?: Headers | Resolver<Headers> | undefined; | ||
ENCODE_PATH?: ((path: string) => string) | undefined; | ||
}; | ||
|
||
export const OpenAPI: OpenAPIConfig = { | ||
BASE: '', | ||
VERSION: '0.1.0', | ||
WITH_CREDENTIALS: false, | ||
CREDENTIALS: 'include', | ||
TOKEN: undefined, | ||
USERNAME: undefined, | ||
PASSWORD: undefined, | ||
HEADERS: undefined, | ||
ENCODE_PATH: undefined, | ||
BASE: '', | ||
VERSION: '0.1.0', | ||
WITH_CREDENTIALS: false, | ||
CREDENTIALS: 'include', | ||
TOKEN: undefined, | ||
USERNAME: undefined, | ||
PASSWORD: undefined, | ||
HEADERS: undefined, | ||
ENCODE_PATH: undefined, | ||
}; |
Oops, something went wrong.