diff --git a/src/api.ts b/src/api.ts index d34bc58..7fad8de 100644 --- a/src/api.ts +++ b/src/api.ts @@ -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} @@ -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} @@ -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} @@ -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} @@ -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 @@ -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} @@ -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} @@ -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 => { + 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 @@ -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> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getApplicationAnalyticsConfig(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, /** * Query * @summary Query Application Analytics @@ -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 { + return localVarFp.getApplicationAnalyticsConfig(options).then((request) => request(axios, basePath)); + }, /** * Query * @summary Query Application Analytics @@ -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