Skip to content

Commit

Permalink
chore: build SDK from openapi.yaml changes
Browse files Browse the repository at this point in the history
  • Loading branch information
team-devx-bot committed Apr 10, 2024
1 parent 4f5af0c commit 5c87c38
Showing 1 changed file with 125 additions and 1 deletion.
126 changes: 125 additions & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ export interface ApplicationCreationResponse {
* @memberof ApplicationCreationResponse
*/
'description': string | null;
/**
* Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with \"kong\", \"konnect\", \"mesh\", \"kic\", or \"_\".
* @type {{ [key: string]: string; }}
* @memberof ApplicationCreationResponse
*/
'labels': { [key: string]: string; };
/**
*
* @type {string}
Expand Down Expand Up @@ -230,6 +236,12 @@ export interface ApplicationUpdateResponse {
* @memberof ApplicationUpdateResponse
*/
'description': string | null;
/**
* Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with \"kong\", \"konnect\", \"mesh\", \"kic\", or \"_\".
* @type {{ [key: string]: string; }}
* @memberof ApplicationUpdateResponse
*/
'labels': { [key: string]: string; };
/**
*
* @type {string}
Expand Down Expand Up @@ -620,6 +632,12 @@ export interface CreateApplicationPayload {
* @memberof CreateApplicationPayload
*/
'description'?: string;
/**
* Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with \"kong\", \"konnect\", \"mesh\", \"kic\", or \"_\".
* @type {{ [key: string]: string; }}
* @memberof CreateApplicationPayload
*/
'labels'?: { [key: string]: string; };
/**
* ID of the auth strategy to use for the application. If null or not included, the default application auth strategy will be used.
* @type {string}
Expand Down Expand Up @@ -978,6 +996,12 @@ export interface GetApplicationResponse {
* @memberof GetApplicationResponse
*/
'name': string;
/**
* Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with \"kong\", \"konnect\", \"mesh\", \"kic\", or \"_\".
* @type {{ [key: string]: string; }}
* @memberof GetApplicationResponse
*/
'labels': { [key: string]: string; };
/**
* An identifier to correlate the application with an external system. Cannot be set when using Dynamic Client Registration.
* @type {string}
Expand Down Expand Up @@ -1021,6 +1045,38 @@ export interface GetApplicationResponse {
*/
'updated_at': string;
}
/**
*
* @export
* @interface GetConfigResponse
*/
export interface GetConfigResponse {
/**
*
* @type {GetConfigResponseAnalytics}
* @memberof GetConfigResponse
*/
'analytics': GetConfigResponseAnalytics | null;
}
/**
* Null if analytics is not enabled.
* @export
* @interface GetConfigResponseAnalytics
*/
export interface GetConfigResponseAnalytics {
/**
* True if analytics percentiles are enabled.
* @type {boolean}
* @memberof GetConfigResponseAnalytics
*/
'percentiles'?: boolean;
/**
* Analytics retention in milliseconds.
* @type {number}
* @memberof GetConfigResponseAnalytics
*/
'retention_ms'?: number;
}
/**
*
* @export
Expand Down Expand Up @@ -3460,7 +3516,7 @@ export interface UpdateApplicationPayload {
* @type {string}
* @memberof UpdateApplicationPayload
*/
'name': string;
'name'?: string;
/**
* An identifier to correlate the application with an external system. Cannot be set when using Dynamic Client Registration.
* @type {string}
Expand All @@ -3479,6 +3535,12 @@ export interface UpdateApplicationPayload {
* @memberof UpdateApplicationPayload
*/
'description'?: string;
/**
* Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with \"kong\", \"konnect\", \"mesh\", \"kic\", or \"_\".
* @type {{ [key: string]: string; }}
* @memberof UpdateApplicationPayload
*/
'labels'?: { [key: string]: string; } | null;
/**
* **Pre-release Endpoint** This endpoint is currently in beta and is subject to change. The granted scopes for the application. Will only be included if supported by the application\'s auth strategy.
* @type {Array<string>}
Expand Down Expand Up @@ -3538,6 +3600,38 @@ export interface VerifyEmailResponse {
*/
export const ApplicationAnalyticsApiAxiosParamCreator = function (configuration?: Configuration) {
return {
/**
* Get config for application analytics
* @summary Application Analytics Config
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getApplicationAnalyticsConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/api/v2/stats/config`;
// 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 portalAccessToken required



setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};

return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
* Query
* @summary Query Application Analytics
Expand Down Expand Up @@ -3584,6 +3678,16 @@ export const ApplicationAnalyticsApiAxiosParamCreator = function (configuration?
export const ApplicationAnalyticsApiFp = function(configuration?: Configuration) {
const localVarAxiosParamCreator = ApplicationAnalyticsApiAxiosParamCreator(configuration)
return {
/**
* Get config for application analytics
* @summary Application Analytics Config
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getApplicationAnalyticsConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetConfigResponse>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getApplicationAnalyticsConfig(options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
* Query
* @summary Query Application Analytics
Expand All @@ -3605,6 +3709,15 @@ export const ApplicationAnalyticsApiFp = function(configuration?: Configuration)
export const ApplicationAnalyticsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
const localVarFp = ApplicationAnalyticsApiFp(configuration)
return {
/**
* Get config for application analytics
* @summary Application Analytics Config
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getApplicationAnalyticsConfig(options?: any): AxiosPromise<GetConfigResponse> {
return localVarFp.getApplicationAnalyticsConfig(options).then((request) => request(axios, basePath));
},
/**
* Query
* @summary Query Application Analytics
Expand Down Expand Up @@ -3639,6 +3752,17 @@ export interface ApplicationAnalyticsApiQueryApplicationAnalyticsRequest {
* @extends {BaseAPI}
*/
export class ApplicationAnalyticsApi extends BaseAPI {
/**
* Get config for application analytics
* @summary Application Analytics Config
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApplicationAnalyticsApi
*/
public getApplicationAnalyticsConfig(options?: AxiosRequestConfig) {
return ApplicationAnalyticsApiFp(this.configuration).getApplicationAnalyticsConfig(options).then((request) => request(this.axios, this.basePath));
}

/**
* Query
* @summary Query Application Analytics
Expand Down

0 comments on commit 5c87c38

Please sign in to comment.