-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
24 changed files
with
1,605 additions
and
177 deletions.
There are no files selected for viewing
827 changes: 680 additions & 147 deletions
827
packages/internal/openapi-clients/src/backend-openapi.json
Large diffs are not rendered by default.
Oops, something went wrong.
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
126 changes: 126 additions & 0 deletions
126
packages/internal/openapi-clients/src/backend/domain/default-api.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 |
---|---|---|
@@ -0,0 +1,126 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* Openfort API | ||
* Complete Openfort API references and guides can be found at: https://openfort.xyz/docs | ||
* | ||
* The version of the OpenAPI document: 1.0.0 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
|
||
import type { Configuration } from '../configuration'; | ||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; | ||
import globalAxios from 'axios'; | ||
// Some imports not used depending on template conditions | ||
// @ts-ignore | ||
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; | ||
// @ts-ignore | ||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; | ||
// @ts-ignore | ||
import { AuthProviderListResponse } from '../models'; | ||
/** | ||
* DefaultApi - axios parameter creator | ||
* @export | ||
*/ | ||
export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) { | ||
return { | ||
/** | ||
* List available authentication methods for the current project environment. | ||
* @summary List of available authentication methods. | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
listAvailableAuthProviders: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
const localVarPath = `/iam/v1/providers`; | ||
// use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
let baseOptions; | ||
if (configuration) { | ||
baseOptions = configuration.baseOptions; | ||
} | ||
|
||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; | ||
const localVarHeaderParameter = {} as any; | ||
const localVarQueryParameter = {} as any; | ||
|
||
// authentication pk required | ||
// http bearer authentication required | ||
await setBearerAuthToObject(localVarHeaderParameter, configuration) | ||
|
||
|
||
|
||
setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
|
||
return { | ||
url: toPathString(localVarUrlObj), | ||
options: localVarRequestOptions, | ||
}; | ||
}, | ||
} | ||
}; | ||
|
||
/** | ||
* DefaultApi - functional programming interface | ||
* @export | ||
*/ | ||
export const DefaultApiFp = function(configuration?: Configuration) { | ||
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration) | ||
return { | ||
/** | ||
* List available authentication methods for the current project environment. | ||
* @summary List of available authentication methods. | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async listAvailableAuthProviders(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthProviderListResponse>> { | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.listAvailableAuthProviders(options); | ||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
}, | ||
} | ||
}; | ||
|
||
/** | ||
* DefaultApi - factory interface | ||
* @export | ||
*/ | ||
export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { | ||
const localVarFp = DefaultApiFp(configuration) | ||
return { | ||
/** | ||
* List available authentication methods for the current project environment. | ||
* @summary List of available authentication methods. | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
listAvailableAuthProviders(options?: AxiosRequestConfig): AxiosPromise<AuthProviderListResponse> { | ||
return localVarFp.listAvailableAuthProviders(options).then((request) => request(axios, basePath)); | ||
}, | ||
}; | ||
}; | ||
|
||
/** | ||
* DefaultApi - object-oriented interface | ||
* @export | ||
* @class DefaultApi | ||
* @extends {BaseAPI} | ||
*/ | ||
export class DefaultApi extends BaseAPI { | ||
/** | ||
* List available authentication methods for the current project environment. | ||
* @summary List of available authentication methods. | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof DefaultApi | ||
*/ | ||
public listAvailableAuthProviders(options?: AxiosRequestConfig) { | ||
return DefaultApiFp(this.configuration).listAvailableAuthProviders(options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
} | ||
|
Oops, something went wrong.