'/overview/public-frontends' and generated stubs (#996)

This commit is contained in:
Michael Quigley
2025-06-27 12:33:18 -04:00
parent c6f2a6061a
commit ac95ebd2f7
28 changed files with 1611 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ models/ListOrganizationMembers200Response.ts
models/ListOrganizationMembers200ResponseMembersInner.ts
models/ListOrganizations200Response.ts
models/ListOrganizations200ResponseOrganizationsInner.ts
models/ListPublicFrontendsForAccount200Response.ts
models/LoginRequest.ts
models/Metrics.ts
models/MetricsSample.ts

View File

@@ -23,6 +23,7 @@ import type {
GetSparklinesRequest,
ListMemberships200Response,
ListOrganizationMembers200Response,
ListPublicFrontendsForAccount200Response,
Metrics,
ModelConfiguration,
Overview,
@@ -46,6 +47,8 @@ import {
ListMemberships200ResponseToJSON,
ListOrganizationMembers200ResponseFromJSON,
ListOrganizationMembers200ResponseToJSON,
ListPublicFrontendsForAccount200ResponseFromJSON,
ListPublicFrontendsForAccount200ResponseToJSON,
MetricsFromJSON,
MetricsToJSON,
ModelConfigurationFromJSON,
@@ -493,6 +496,34 @@ export class MetadataApi extends runtime.BaseAPI {
return await response.value();
}
/**
*/
async listPublicFrontendsForAccountRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListPublicFrontendsForAccount200Response>> {
const queryParameters: any = {};
const headerParameters: runtime.HTTPHeaders = {};
if (this.configuration && this.configuration.apiKey) {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
const response = await this.request({
path: `/overview/public-frontends`,
method: 'GET',
headers: headerParameters,
query: queryParameters,
}, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => ListPublicFrontendsForAccount200ResponseFromJSON(jsonValue));
}
/**
*/
async listPublicFrontendsForAccount(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListPublicFrontendsForAccount200Response> {
const response = await this.listPublicFrontendsForAccountRaw(initOverrides);
return await response.value();
}
/**
*/
async orgAccountOverviewRaw(requestParameters: OrgAccountOverviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Overview>> {

View File

@@ -0,0 +1,73 @@
/* tslint:disable */
/* eslint-disable */
/**
* zrok
* zrok client access
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface ListPublicFrontendsForAccount200Response
*/
export interface ListPublicFrontendsForAccount200Response {
/**
*
* @type {string}
* @memberof ListPublicFrontendsForAccount200Response
*/
publicName?: string;
/**
*
* @type {string}
* @memberof ListPublicFrontendsForAccount200Response
*/
urlTemplate?: string;
}
/**
* Check if a given object implements the ListPublicFrontendsForAccount200Response interface.
*/
export function instanceOfListPublicFrontendsForAccount200Response(value: object): value is ListPublicFrontendsForAccount200Response {
return true;
}
export function ListPublicFrontendsForAccount200ResponseFromJSON(json: any): ListPublicFrontendsForAccount200Response {
return ListPublicFrontendsForAccount200ResponseFromJSONTyped(json, false);
}
export function ListPublicFrontendsForAccount200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListPublicFrontendsForAccount200Response {
if (json == null) {
return json;
}
return {
'publicName': json['publicName'] == null ? undefined : json['publicName'],
'urlTemplate': json['urlTemplate'] == null ? undefined : json['urlTemplate'],
};
}
export function ListPublicFrontendsForAccount200ResponseToJSON(json: any): ListPublicFrontendsForAccount200Response {
return ListPublicFrontendsForAccount200ResponseToJSONTyped(json, false);
}
export function ListPublicFrontendsForAccount200ResponseToJSONTyped(value?: ListPublicFrontendsForAccount200Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'publicName': value['publicName'],
'urlTemplate': value['urlTemplate'],
};
}

View File

@@ -31,6 +31,7 @@ export * from './ListOrganizationMembers200Response';
export * from './ListOrganizationMembers200ResponseMembersInner';
export * from './ListOrganizations200Response';
export * from './ListOrganizations200ResponseOrganizationsInner';
export * from './ListPublicFrontendsForAccount200Response';
export * from './LoginRequest';
export * from './Metrics';
export * from './MetricsSample';