added 'envZId' to '#/defintions/share' (#998); updated openapi-generator-cli to 7.14.0

This commit is contained in:
Michael Quigley
2025-07-02 12:15:00 -04:00
parent 917426880b
commit 8aa2ff9006
36 changed files with 735 additions and 224 deletions

View File

@@ -8,6 +8,8 @@ FEATURE: New admin endpoint for deleting accounts. New `zrok admin delete accoun
FEATURE: New API endpoint (`/overview/public-frontends`) that returns the public frontends available to authenticated account. The public frontends include those marked with the `open` permission mode, and those marked `closed` where the user has a frontend grant allowing them to access the frontend. New CLI command `zrok overview public-frontends` to allow end users to list the public frontends their account can use (https://github.com/openziti/zrok/issues/996)
CHANGE: Updated `openapi-generator-cli` from `7.12.0` to `7.14.0`
## v1.0.6
CHANGE: The `/overview` endpoint has been adjusted to include a new `remoteAgent` `boolean` on the `environment` instances, indicating whether or not the environment has an enrolled remote agent (https://github.com/openziti/zrok/issues/977)

View File

@@ -1 +1 @@
7.12.0
7.14.0

View File

@@ -116,8 +116,11 @@ export class AgentApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
let urlPath = `/v1/agent/accessPrivate`;
const response = await this.request({
path: `/v1/agent/accessPrivate`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -144,8 +147,11 @@ export class AgentApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
let urlPath = `/v1/agent/releaseAccess`;
const response = await this.request({
path: `/v1/agent/releaseAccess`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -172,8 +178,11 @@ export class AgentApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
let urlPath = `/v1/agent/releaseShare`;
const response = await this.request({
path: `/v1/agent/releaseShare`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -216,8 +225,11 @@ export class AgentApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
let urlPath = `/v1/agent/sharePrivate`;
const response = await this.request({
path: `/v1/agent/sharePrivate`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -280,8 +292,11 @@ export class AgentApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
let urlPath = `/v1/agent/sharePublic`;
const response = await this.request({
path: `/v1/agent/sharePublic`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -304,8 +319,11 @@ export class AgentApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
let urlPath = `/v1/agent/status`;
const response = await this.request({
path: `/v1/agent/status`,
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -328,8 +346,11 @@ export class AgentApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
let urlPath = `/v1/agent/version`;
const response = await this.request({
path: `/v1/agent/version`,
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,

View File

@@ -343,10 +343,11 @@ export function exists(json: any, key: string) {
}
export function mapValues(data: any, fn: (item: any) => any) {
return Object.keys(data).reduce(
(acc, key) => ({ ...acc, [key]: fn(data[key]) }),
{}
);
const result: { [key: string]: any } = {};
for (const key of Object.keys(data)) {
result[key] = fn(data[key]);
}
return result;
}
export function canConsumeForm(consumes: Consume[]): boolean {

View File

@@ -2,6 +2,6 @@
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "7.12.0"
"version": "7.14.0"
}
}

View File

@@ -30,6 +30,9 @@ type Share struct {
// created at
CreatedAt int64 `json:"createdAt,omitempty"`
// env z Id
EnvZID string `json:"envZId,omitempty"`
// frontend endpoint
FrontendEndpoint string `json:"frontendEndpoint,omitempty"`

View File

@@ -2860,6 +2860,9 @@ func init() {
"createdAt": {
"type": "integer"
},
"envZId": {
"type": "string"
},
"frontendEndpoint": {
"type": "string"
},
@@ -5873,6 +5876,9 @@ func init() {
"createdAt": {
"type": "integer"
},
"envZId": {
"type": "string"
},
"frontendEndpoint": {
"type": "string"
},

View File

@@ -1 +1 @@
7.12.0
7.14.0

View File

@@ -96,8 +96,11 @@ export class AccountApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/changePassword`;
const response = await this.request({
path: `/changePassword`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -122,8 +125,11 @@ export class AccountApi extends runtime.BaseAPI {
headerParameters['Content-Type'] = 'application/zrok.v1+json';
let urlPath = `/invite`;
const response = await this.request({
path: `/invite`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -148,8 +154,11 @@ export class AccountApi extends runtime.BaseAPI {
headerParameters['Content-Type'] = 'application/zrok.v1+json';
let urlPath = `/login`;
const response = await this.request({
path: `/login`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -183,8 +192,11 @@ export class AccountApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/regenerateAccountToken`;
const response = await this.request({
path: `/regenerateAccountToken`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -210,8 +222,11 @@ export class AccountApi extends runtime.BaseAPI {
headerParameters['Content-Type'] = 'application/zrok.v1+json';
let urlPath = `/register`;
const response = await this.request({
path: `/register`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -237,8 +252,11 @@ export class AccountApi extends runtime.BaseAPI {
headerParameters['Content-Type'] = 'application/zrok.v1+json';
let urlPath = `/resetPassword`;
const response = await this.request({
path: `/resetPassword`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -263,8 +281,11 @@ export class AccountApi extends runtime.BaseAPI {
headerParameters['Content-Type'] = 'application/zrok.v1+json';
let urlPath = `/resetPasswordRequest`;
const response = await this.request({
path: `/resetPasswordRequest`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -289,8 +310,11 @@ export class AccountApi extends runtime.BaseAPI {
headerParameters['Content-Type'] = 'application/zrok.v1+json';
let urlPath = `/verify`;
const response = await this.request({
path: `/verify`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,

View File

@@ -148,8 +148,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/frontend/grant`;
const response = await this.request({
path: `/frontend/grant`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -178,8 +181,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/organization/add`;
const response = await this.request({
path: `/organization/add`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -208,8 +214,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/account`;
const response = await this.request({
path: `/account`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -239,8 +248,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/frontend`;
const response = await this.request({
path: `/frontend`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -270,8 +282,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/identity`;
const response = await this.request({
path: `/identity`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -301,8 +316,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/organization`;
const response = await this.request({
path: `/organization`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -332,8 +350,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/account`;
const response = await this.request({
path: `/account`,
path: urlPath,
method: 'DELETE',
headers: headerParameters,
query: queryParameters,
@@ -362,8 +383,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/frontend`;
const response = await this.request({
path: `/frontend`,
path: urlPath,
method: 'DELETE',
headers: headerParameters,
query: queryParameters,
@@ -392,8 +416,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/frontend/grant`;
const response = await this.request({
path: `/frontend/grant`,
path: urlPath,
method: 'DELETE',
headers: headerParameters,
query: queryParameters,
@@ -422,8 +449,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/organization`;
const response = await this.request({
path: `/organization`,
path: urlPath,
method: 'DELETE',
headers: headerParameters,
query: queryParameters,
@@ -452,8 +482,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/grants`;
const response = await this.request({
path: `/grants`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -482,8 +515,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/invite/token/generate`;
const response = await this.request({
path: `/invite/token/generate`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -510,8 +546,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/frontends`;
const response = await this.request({
path: `/frontends`,
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -540,8 +579,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/organization/list`;
const response = await this.request({
path: `/organization/list`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -569,8 +611,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/organizations`;
const response = await this.request({
path: `/organizations`,
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -599,8 +644,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/organization/remove`;
const response = await this.request({
path: `/organization/remove`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -629,8 +677,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/frontend`;
const response = await this.request({
path: `/frontend`,
path: urlPath,
method: 'PATCH',
headers: headerParameters,
query: queryParameters,

View File

@@ -99,8 +99,11 @@ export class AgentApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/agent/enroll`;
const response = await this.request({
path: `/agent/enroll`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -130,8 +133,11 @@ export class AgentApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/agent/ping`;
const response = await this.request({
path: `/agent/ping`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -161,8 +167,11 @@ export class AgentApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/agent/access`;
const response = await this.request({
path: `/agent/access`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -192,8 +201,11 @@ export class AgentApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/agent/share`;
const response = await this.request({
path: `/agent/share`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -223,8 +235,11 @@ export class AgentApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/agent/status`;
const response = await this.request({
path: `/agent/status`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -254,8 +269,11 @@ export class AgentApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/agent/unaccess`;
const response = await this.request({
path: `/agent/unaccess`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -284,8 +302,11 @@ export class AgentApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/agent/unshare`;
const response = await this.request({
path: `/agent/unshare`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -314,8 +335,11 @@ export class AgentApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/agent/unenroll`;
const response = await this.request({
path: `/agent/unenroll`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,

View File

@@ -54,8 +54,11 @@ export class EnvironmentApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/disable`;
const response = await this.request({
path: `/disable`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -84,8 +87,11 @@ export class EnvironmentApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/enable`;
const response = await this.request({
path: `/enable`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,

View File

@@ -116,8 +116,11 @@ export class MetadataApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
let urlPath = `/configuration`;
const response = await this.request({
path: `/configuration`,
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -142,8 +145,11 @@ export class MetadataApi extends runtime.BaseAPI {
headerParameters['Content-Type'] = 'application/zrok.v1+json';
let urlPath = `/clientVersionCheck`;
const response = await this.request({
path: `/clientVersionCheck`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -170,8 +176,11 @@ export class MetadataApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/detail/account`;
const response = await this.request({
path: `/detail/account`,
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -202,8 +211,11 @@ export class MetadataApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/metrics/account`;
const response = await this.request({
path: `/metrics/account`,
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -237,8 +249,12 @@ export class MetadataApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/detail/environment/{envZId}`;
urlPath = urlPath.replace(`{${"envZId"}}`, encodeURIComponent(String(requestParameters['envZId'])));
const response = await this.request({
path: `/detail/environment/{envZId}`.replace(`{${"envZId"}}`, encodeURIComponent(String(requestParameters['envZId']))),
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -276,8 +292,12 @@ export class MetadataApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/metrics/environment/{envId}`;
urlPath = urlPath.replace(`{${"envId"}}`, encodeURIComponent(String(requestParameters['envId'])));
const response = await this.request({
path: `/metrics/environment/{envId}`.replace(`{${"envId"}}`, encodeURIComponent(String(requestParameters['envId']))),
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -311,8 +331,12 @@ export class MetadataApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/detail/frontend/{frontendId}`;
urlPath = urlPath.replace(`{${"frontendId"}}`, encodeURIComponent(String(requestParameters['frontendId'])));
const response = await this.request({
path: `/detail/frontend/{frontendId}`.replace(`{${"frontendId"}}`, encodeURIComponent(String(requestParameters['frontendId']))),
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -346,8 +370,12 @@ export class MetadataApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/detail/share/{shareToken}`;
urlPath = urlPath.replace(`{${"shareToken"}}`, encodeURIComponent(String(requestParameters['shareToken'])));
const response = await this.request({
path: `/detail/share/{shareToken}`.replace(`{${"shareToken"}}`, encodeURIComponent(String(requestParameters['shareToken']))),
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -385,8 +413,12 @@ export class MetadataApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/metrics/share/{shareToken}`;
urlPath = urlPath.replace(`{${"shareToken"}}`, encodeURIComponent(String(requestParameters['shareToken'])));
const response = await this.request({
path: `/metrics/share/{shareToken}`.replace(`{${"shareToken"}}`, encodeURIComponent(String(requestParameters['shareToken']))),
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -415,8 +447,11 @@ export class MetadataApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/sparklines`;
const response = await this.request({
path: `/sparklines`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -444,8 +479,11 @@ export class MetadataApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/memberships`;
const response = await this.request({
path: `/memberships`,
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -479,8 +517,12 @@ export class MetadataApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/members/{organizationToken}`;
urlPath = urlPath.replace(`{${"organizationToken"}}`, encodeURIComponent(String(requestParameters['organizationToken'])));
const response = await this.request({
path: `/members/{organizationToken}`.replace(`{${"organizationToken"}}`, encodeURIComponent(String(requestParameters['organizationToken']))),
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -507,8 +549,11 @@ export class MetadataApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/overview/public-frontends`;
const response = await this.request({
path: `/overview/public-frontends`,
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -549,8 +594,13 @@ export class MetadataApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/overview/{organizationToken}/{accountEmail}`;
urlPath = urlPath.replace(`{${"organizationToken"}}`, encodeURIComponent(String(requestParameters['organizationToken'])));
urlPath = urlPath.replace(`{${"accountEmail"}}`, encodeURIComponent(String(requestParameters['accountEmail'])));
const response = await this.request({
path: `/overview/{organizationToken}/{accountEmail}`.replace(`{${"organizationToken"}}`, encodeURIComponent(String(requestParameters['organizationToken']))).replace(`{${"accountEmail"}}`, encodeURIComponent(String(requestParameters['accountEmail']))),
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -577,8 +627,11 @@ export class MetadataApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/overview`;
const response = await this.request({
path: `/overview`,
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -601,8 +654,11 @@ export class MetadataApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
let urlPath = `/version`;
const response = await this.request({
path: `/version`,
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -629,8 +685,11 @@ export class MetadataApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
let urlPath = `/versions`;
const response = await this.request({
path: `/versions`,
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,

View File

@@ -85,8 +85,11 @@ export class ShareApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/access`;
const response = await this.request({
path: `/access`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -116,8 +119,11 @@ export class ShareApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/share`;
const response = await this.request({
path: `/share`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -147,8 +153,11 @@ export class ShareApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/unaccess`;
const response = await this.request({
path: `/unaccess`,
path: urlPath,
method: 'DELETE',
headers: headerParameters,
query: queryParameters,
@@ -177,8 +186,11 @@ export class ShareApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/unshare`;
const response = await this.request({
path: `/unshare`,
path: urlPath,
method: 'DELETE',
headers: headerParameters,
query: queryParameters,
@@ -207,8 +219,11 @@ export class ShareApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/access`;
const response = await this.request({
path: `/access`,
path: urlPath,
method: 'PATCH',
headers: headerParameters,
query: queryParameters,
@@ -237,8 +252,11 @@ export class ShareApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/share`;
const response = await this.request({
path: `/share`,
path: urlPath,
method: 'PATCH',
headers: headerParameters,
query: queryParameters,

View File

@@ -39,6 +39,12 @@ export interface Share {
* @memberof Share
*/
zId?: string;
/**
*
* @type {string}
* @memberof Share
*/
envZId?: string;
/**
*
* @type {string}
@@ -120,6 +126,7 @@ export function ShareFromJSONTyped(json: any, ignoreDiscriminator: boolean): Sha
'shareToken': json['shareToken'] == null ? undefined : json['shareToken'],
'zId': json['zId'] == null ? undefined : json['zId'],
'envZId': json['envZId'] == null ? undefined : json['envZId'],
'shareMode': json['shareMode'] == null ? undefined : json['shareMode'],
'backendMode': json['backendMode'] == null ? undefined : json['backendMode'],
'frontendSelection': json['frontendSelection'] == null ? undefined : json['frontendSelection'],
@@ -146,6 +153,7 @@ export function ShareToJSONTyped(value?: Share | null, ignoreDiscriminator: bool
'shareToken': value['shareToken'],
'zId': value['zId'],
'envZId': value['envZId'],
'shareMode': value['shareMode'],
'backendMode': value['backendMode'],
'frontendSelection': value['frontendSelection'],

View File

@@ -343,10 +343,11 @@ export function exists(json: any, key: string) {
}
export function mapValues(data: any, fn: (item: any) => any) {
return Object.keys(data).reduce(
(acc, key) => ({ ...acc, [key]: fn(data[key]) }),
{}
);
const result: { [key: string]: any } = {};
for (const key of Object.keys(data)) {
result[key] = fn(data[key]);
}
return result;
}
export function canConsumeForm(consumes: Consume[]): boolean {

View File

@@ -1 +1 @@
7.12.0
7.14.0

View File

@@ -5,12 +5,12 @@ This Python package is automatically generated by the [OpenAPI Generator](https:
- API version: 1.0.0
- Package version: 1.0.0
- Generator version: 7.12.0
- Generator version: 7.14.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
## Requirements.
Python 3.8+
Python 3.9+
## Installation & Usage
### pip install

View File

@@ -7,6 +7,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**share_token** | **str** | | [optional]
**z_id** | **str** | | [optional]
**env_zid** | **str** | | [optional]
**share_mode** | **str** | | [optional]
**backend_mode** | **str** | | [optional]
**frontend_selection** | **str** | | [optional]

View File

@@ -1,4 +1,4 @@
urllib3 >= 1.25.3, < 3.0.0
urllib3 >= 2.1.0, < 3.0.0
python_dateutil >= 2.8.2
pydantic >= 2
typing-extensions >= 4.7.1

View File

@@ -65,6 +65,7 @@ class TestEnvironmentAndResources(unittest.TestCase):
zrok_api.models.share.share(
share_token = '',
z_id = '',
env_zid = '',
share_mode = '',
backend_mode = '',
frontend_selection = '',

View File

@@ -68,6 +68,7 @@ class TestOverview(unittest.TestCase):
zrok_api.models.share.share(
share_token = '',
z_id = '',
env_zid = '',
share_mode = '',
backend_mode = '',
frontend_selection = '',

View File

@@ -37,6 +37,7 @@ class TestShare(unittest.TestCase):
return Share(
share_token = '',
z_id = '',
env_zid = '',
share_mode = '',
backend_mode = '',
frontend_selection = '',

View File

@@ -16,88 +16,172 @@
__version__ = "1.0.0"
# Define package exports
__all__ = [
"AccountApi",
"AdminApi",
"AgentApi",
"EnvironmentApi",
"MetadataApi",
"ShareApi",
"ApiResponse",
"ApiClient",
"Configuration",
"OpenApiException",
"ApiTypeError",
"ApiValueError",
"ApiKeyError",
"ApiAttributeError",
"ApiException",
"Access201Response",
"AccessRequest",
"AddFrontendGrantRequest",
"AddOrganizationMemberRequest",
"AuthUser",
"ChangePasswordRequest",
"ClientVersionCheckRequest",
"Configuration",
"CreateFrontend201Response",
"CreateFrontendRequest",
"CreateIdentity201Response",
"CreateIdentityRequest",
"CreateOrganization201Response",
"CreateOrganizationRequest",
"DisableRequest",
"EnableRequest",
"Enroll200Response",
"EnrollRequest",
"Environment",
"EnvironmentAndResources",
"Frontend",
"GetSparklines200Response",
"GetSparklinesRequest",
"InviteRequest",
"InviteTokenGenerateRequest",
"ListFrontends200ResponseInner",
"ListMemberships200Response",
"ListMemberships200ResponseMembershipsInner",
"ListOrganizationMembers200Response",
"ListOrganizationMembers200ResponseMembersInner",
"ListOrganizations200Response",
"ListOrganizations200ResponseOrganizationsInner",
"ListPublicFrontendsForAccount200Response",
"ListPublicFrontendsForAccount200ResponsePublicFrontendsInner",
"LoginRequest",
"Metrics",
"MetricsSample",
"Overview",
"Ping200Response",
"Principal",
"RegenerateAccountToken200Response",
"RegenerateAccountTokenRequest",
"RegisterRequest",
"RemoteAccessRequest",
"RemoteShare200Response",
"RemoteShareRequest",
"RemoteStatus200Response",
"RemoteStatus200ResponseAccessesInner",
"RemoteStatus200ResponseSharesInner",
"RemoteUnaccessRequest",
"RemoteUnshareRequest",
"RemoveOrganizationMemberRequest",
"ResetPasswordRequest",
"Share",
"ShareRequest",
"ShareResponse",
"SparkDataSample",
"UnaccessRequest",
"UnshareRequest",
"UpdateAccessRequest",
"UpdateFrontendRequest",
"UpdateShareRequest",
"Verify200Response",
"VerifyRequest",
"VersionInventory200Response",
]
# import apis into sdk package
from zrok_api.api.account_api import AccountApi
from zrok_api.api.admin_api import AdminApi
from zrok_api.api.agent_api import AgentApi
from zrok_api.api.environment_api import EnvironmentApi
from zrok_api.api.metadata_api import MetadataApi
from zrok_api.api.share_api import ShareApi
from zrok_api.api.account_api import AccountApi as AccountApi
from zrok_api.api.admin_api import AdminApi as AdminApi
from zrok_api.api.agent_api import AgentApi as AgentApi
from zrok_api.api.environment_api import EnvironmentApi as EnvironmentApi
from zrok_api.api.metadata_api import MetadataApi as MetadataApi
from zrok_api.api.share_api import ShareApi as ShareApi
# import ApiClient
from zrok_api.api_response import ApiResponse
from zrok_api.api_client import ApiClient
from zrok_api.configuration import Configuration
from zrok_api.exceptions import OpenApiException
from zrok_api.exceptions import ApiTypeError
from zrok_api.exceptions import ApiValueError
from zrok_api.exceptions import ApiKeyError
from zrok_api.exceptions import ApiAttributeError
from zrok_api.exceptions import ApiException
from zrok_api.api_response import ApiResponse as ApiResponse
from zrok_api.api_client import ApiClient as ApiClient
from zrok_api.configuration import Configuration as Configuration
from zrok_api.exceptions import OpenApiException as OpenApiException
from zrok_api.exceptions import ApiTypeError as ApiTypeError
from zrok_api.exceptions import ApiValueError as ApiValueError
from zrok_api.exceptions import ApiKeyError as ApiKeyError
from zrok_api.exceptions import ApiAttributeError as ApiAttributeError
from zrok_api.exceptions import ApiException as ApiException
# import models into sdk package
from zrok_api.models.access201_response import Access201Response
from zrok_api.models.access_request import AccessRequest
from zrok_api.models.add_frontend_grant_request import AddFrontendGrantRequest
from zrok_api.models.add_organization_member_request import AddOrganizationMemberRequest
from zrok_api.models.auth_user import AuthUser
from zrok_api.models.change_password_request import ChangePasswordRequest
from zrok_api.models.client_version_check_request import ClientVersionCheckRequest
from zrok_api.models.configuration import Configuration
from zrok_api.models.create_frontend201_response import CreateFrontend201Response
from zrok_api.models.create_frontend_request import CreateFrontendRequest
from zrok_api.models.create_identity201_response import CreateIdentity201Response
from zrok_api.models.create_identity_request import CreateIdentityRequest
from zrok_api.models.create_organization201_response import CreateOrganization201Response
from zrok_api.models.create_organization_request import CreateOrganizationRequest
from zrok_api.models.disable_request import DisableRequest
from zrok_api.models.enable_request import EnableRequest
from zrok_api.models.enroll200_response import Enroll200Response
from zrok_api.models.enroll_request import EnrollRequest
from zrok_api.models.environment import Environment
from zrok_api.models.environment_and_resources import EnvironmentAndResources
from zrok_api.models.frontend import Frontend
from zrok_api.models.get_sparklines200_response import GetSparklines200Response
from zrok_api.models.get_sparklines_request import GetSparklinesRequest
from zrok_api.models.invite_request import InviteRequest
from zrok_api.models.invite_token_generate_request import InviteTokenGenerateRequest
from zrok_api.models.list_frontends200_response_inner import ListFrontends200ResponseInner
from zrok_api.models.list_memberships200_response import ListMemberships200Response
from zrok_api.models.list_memberships200_response_memberships_inner import ListMemberships200ResponseMembershipsInner
from zrok_api.models.list_organization_members200_response import ListOrganizationMembers200Response
from zrok_api.models.list_organization_members200_response_members_inner import ListOrganizationMembers200ResponseMembersInner
from zrok_api.models.list_organizations200_response import ListOrganizations200Response
from zrok_api.models.list_organizations200_response_organizations_inner import ListOrganizations200ResponseOrganizationsInner
from zrok_api.models.list_public_frontends_for_account200_response import ListPublicFrontendsForAccount200Response
from zrok_api.models.list_public_frontends_for_account200_response_public_frontends_inner import ListPublicFrontendsForAccount200ResponsePublicFrontendsInner
from zrok_api.models.login_request import LoginRequest
from zrok_api.models.metrics import Metrics
from zrok_api.models.metrics_sample import MetricsSample
from zrok_api.models.overview import Overview
from zrok_api.models.ping200_response import Ping200Response
from zrok_api.models.principal import Principal
from zrok_api.models.regenerate_account_token200_response import RegenerateAccountToken200Response
from zrok_api.models.regenerate_account_token_request import RegenerateAccountTokenRequest
from zrok_api.models.register_request import RegisterRequest
from zrok_api.models.remote_access_request import RemoteAccessRequest
from zrok_api.models.remote_share200_response import RemoteShare200Response
from zrok_api.models.remote_share_request import RemoteShareRequest
from zrok_api.models.remote_status200_response import RemoteStatus200Response
from zrok_api.models.remote_status200_response_accesses_inner import RemoteStatus200ResponseAccessesInner
from zrok_api.models.remote_status200_response_shares_inner import RemoteStatus200ResponseSharesInner
from zrok_api.models.remote_unaccess_request import RemoteUnaccessRequest
from zrok_api.models.remote_unshare_request import RemoteUnshareRequest
from zrok_api.models.remove_organization_member_request import RemoveOrganizationMemberRequest
from zrok_api.models.reset_password_request import ResetPasswordRequest
from zrok_api.models.share import Share
from zrok_api.models.share_request import ShareRequest
from zrok_api.models.share_response import ShareResponse
from zrok_api.models.spark_data_sample import SparkDataSample
from zrok_api.models.unaccess_request import UnaccessRequest
from zrok_api.models.unshare_request import UnshareRequest
from zrok_api.models.update_access_request import UpdateAccessRequest
from zrok_api.models.update_frontend_request import UpdateFrontendRequest
from zrok_api.models.update_share_request import UpdateShareRequest
from zrok_api.models.verify200_response import Verify200Response
from zrok_api.models.verify_request import VerifyRequest
from zrok_api.models.version_inventory200_response import VersionInventory200Response
from zrok_api.models.access201_response import Access201Response as Access201Response
from zrok_api.models.access_request import AccessRequest as AccessRequest
from zrok_api.models.add_frontend_grant_request import AddFrontendGrantRequest as AddFrontendGrantRequest
from zrok_api.models.add_organization_member_request import AddOrganizationMemberRequest as AddOrganizationMemberRequest
from zrok_api.models.auth_user import AuthUser as AuthUser
from zrok_api.models.change_password_request import ChangePasswordRequest as ChangePasswordRequest
from zrok_api.models.client_version_check_request import ClientVersionCheckRequest as ClientVersionCheckRequest
from zrok_api.models.configuration import Configuration as Configuration
from zrok_api.models.create_frontend201_response import CreateFrontend201Response as CreateFrontend201Response
from zrok_api.models.create_frontend_request import CreateFrontendRequest as CreateFrontendRequest
from zrok_api.models.create_identity201_response import CreateIdentity201Response as CreateIdentity201Response
from zrok_api.models.create_identity_request import CreateIdentityRequest as CreateIdentityRequest
from zrok_api.models.create_organization201_response import CreateOrganization201Response as CreateOrganization201Response
from zrok_api.models.create_organization_request import CreateOrganizationRequest as CreateOrganizationRequest
from zrok_api.models.disable_request import DisableRequest as DisableRequest
from zrok_api.models.enable_request import EnableRequest as EnableRequest
from zrok_api.models.enroll200_response import Enroll200Response as Enroll200Response
from zrok_api.models.enroll_request import EnrollRequest as EnrollRequest
from zrok_api.models.environment import Environment as Environment
from zrok_api.models.environment_and_resources import EnvironmentAndResources as EnvironmentAndResources
from zrok_api.models.frontend import Frontend as Frontend
from zrok_api.models.get_sparklines200_response import GetSparklines200Response as GetSparklines200Response
from zrok_api.models.get_sparklines_request import GetSparklinesRequest as GetSparklinesRequest
from zrok_api.models.invite_request import InviteRequest as InviteRequest
from zrok_api.models.invite_token_generate_request import InviteTokenGenerateRequest as InviteTokenGenerateRequest
from zrok_api.models.list_frontends200_response_inner import ListFrontends200ResponseInner as ListFrontends200ResponseInner
from zrok_api.models.list_memberships200_response import ListMemberships200Response as ListMemberships200Response
from zrok_api.models.list_memberships200_response_memberships_inner import ListMemberships200ResponseMembershipsInner as ListMemberships200ResponseMembershipsInner
from zrok_api.models.list_organization_members200_response import ListOrganizationMembers200Response as ListOrganizationMembers200Response
from zrok_api.models.list_organization_members200_response_members_inner import ListOrganizationMembers200ResponseMembersInner as ListOrganizationMembers200ResponseMembersInner
from zrok_api.models.list_organizations200_response import ListOrganizations200Response as ListOrganizations200Response
from zrok_api.models.list_organizations200_response_organizations_inner import ListOrganizations200ResponseOrganizationsInner as ListOrganizations200ResponseOrganizationsInner
from zrok_api.models.list_public_frontends_for_account200_response import ListPublicFrontendsForAccount200Response as ListPublicFrontendsForAccount200Response
from zrok_api.models.list_public_frontends_for_account200_response_public_frontends_inner import ListPublicFrontendsForAccount200ResponsePublicFrontendsInner as ListPublicFrontendsForAccount200ResponsePublicFrontendsInner
from zrok_api.models.login_request import LoginRequest as LoginRequest
from zrok_api.models.metrics import Metrics as Metrics
from zrok_api.models.metrics_sample import MetricsSample as MetricsSample
from zrok_api.models.overview import Overview as Overview
from zrok_api.models.ping200_response import Ping200Response as Ping200Response
from zrok_api.models.principal import Principal as Principal
from zrok_api.models.regenerate_account_token200_response import RegenerateAccountToken200Response as RegenerateAccountToken200Response
from zrok_api.models.regenerate_account_token_request import RegenerateAccountTokenRequest as RegenerateAccountTokenRequest
from zrok_api.models.register_request import RegisterRequest as RegisterRequest
from zrok_api.models.remote_access_request import RemoteAccessRequest as RemoteAccessRequest
from zrok_api.models.remote_share200_response import RemoteShare200Response as RemoteShare200Response
from zrok_api.models.remote_share_request import RemoteShareRequest as RemoteShareRequest
from zrok_api.models.remote_status200_response import RemoteStatus200Response as RemoteStatus200Response
from zrok_api.models.remote_status200_response_accesses_inner import RemoteStatus200ResponseAccessesInner as RemoteStatus200ResponseAccessesInner
from zrok_api.models.remote_status200_response_shares_inner import RemoteStatus200ResponseSharesInner as RemoteStatus200ResponseSharesInner
from zrok_api.models.remote_unaccess_request import RemoteUnaccessRequest as RemoteUnaccessRequest
from zrok_api.models.remote_unshare_request import RemoteUnshareRequest as RemoteUnshareRequest
from zrok_api.models.remove_organization_member_request import RemoveOrganizationMemberRequest as RemoveOrganizationMemberRequest
from zrok_api.models.reset_password_request import ResetPasswordRequest as ResetPasswordRequest
from zrok_api.models.share import Share as Share
from zrok_api.models.share_request import ShareRequest as ShareRequest
from zrok_api.models.share_response import ShareResponse as ShareResponse
from zrok_api.models.spark_data_sample import SparkDataSample as SparkDataSample
from zrok_api.models.unaccess_request import UnaccessRequest as UnaccessRequest
from zrok_api.models.unshare_request import UnshareRequest as UnshareRequest
from zrok_api.models.update_access_request import UpdateAccessRequest as UpdateAccessRequest
from zrok_api.models.update_frontend_request import UpdateFrontendRequest as UpdateFrontendRequest
from zrok_api.models.update_share_request import UpdateShareRequest as UpdateShareRequest
from zrok_api.models.verify200_response import Verify200Response as Verify200Response
from zrok_api.models.verify_request import VerifyRequest as VerifyRequest
from zrok_api.models.version_inventory200_response import VersionInventory200Response as VersionInventory200Response

View File

@@ -382,6 +382,10 @@ class ApiClient:
else:
obj_dict = obj.__dict__
if isinstance(obj_dict, list):
# here we handle instances that can either be a list or something else, and only became a real list by calling to_dict()
return self.sanitize_for_serialization(obj_dict)
return {
key: self.sanitize_for_serialization(val)
for key, val in obj_dict.items()

View File

@@ -29,6 +29,7 @@ class Share(BaseModel):
""" # noqa: E501
share_token: Optional[StrictStr] = Field(default=None, alias="shareToken")
z_id: Optional[StrictStr] = Field(default=None, alias="zId")
env_zid: Optional[StrictStr] = Field(default=None, alias="envZId")
share_mode: Optional[StrictStr] = Field(default=None, alias="shareMode")
backend_mode: Optional[StrictStr] = Field(default=None, alias="backendMode")
frontend_selection: Optional[StrictStr] = Field(default=None, alias="frontendSelection")
@@ -39,7 +40,7 @@ class Share(BaseModel):
limited: Optional[StrictBool] = None
created_at: Optional[StrictInt] = Field(default=None, alias="createdAt")
updated_at: Optional[StrictInt] = Field(default=None, alias="updatedAt")
__properties: ClassVar[List[str]] = ["shareToken", "zId", "shareMode", "backendMode", "frontendSelection", "frontendEndpoint", "backendProxyEndpoint", "reserved", "activity", "limited", "createdAt", "updatedAt"]
__properties: ClassVar[List[str]] = ["shareToken", "zId", "envZId", "shareMode", "backendMode", "frontendSelection", "frontendEndpoint", "backendProxyEndpoint", "reserved", "activity", "limited", "createdAt", "updatedAt"]
model_config = ConfigDict(
populate_by_name=True,
@@ -101,6 +102,7 @@ class Share(BaseModel):
_obj = cls.model_validate({
"shareToken": obj.get("shareToken"),
"zId": obj.get("zId"),
"envZId": obj.get("envZId"),
"shareMode": obj.get("shareMode"),
"backendMode": obj.get("backendMode"),
"frontendSelection": obj.get("frontendSelection"),

View File

@@ -1777,6 +1777,8 @@ definitions:
type: string
zId:
type: string
envZId:
type: string
shareMode:
type: string
backendMode:

View File

@@ -1 +1 @@
7.12.0
7.14.0

View File

@@ -96,8 +96,11 @@ export class AccountApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/changePassword`;
const response = await this.request({
path: `/changePassword`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -122,8 +125,11 @@ export class AccountApi extends runtime.BaseAPI {
headerParameters['Content-Type'] = 'application/zrok.v1+json';
let urlPath = `/invite`;
const response = await this.request({
path: `/invite`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -148,8 +154,11 @@ export class AccountApi extends runtime.BaseAPI {
headerParameters['Content-Type'] = 'application/zrok.v1+json';
let urlPath = `/login`;
const response = await this.request({
path: `/login`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -183,8 +192,11 @@ export class AccountApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/regenerateAccountToken`;
const response = await this.request({
path: `/regenerateAccountToken`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -210,8 +222,11 @@ export class AccountApi extends runtime.BaseAPI {
headerParameters['Content-Type'] = 'application/zrok.v1+json';
let urlPath = `/register`;
const response = await this.request({
path: `/register`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -237,8 +252,11 @@ export class AccountApi extends runtime.BaseAPI {
headerParameters['Content-Type'] = 'application/zrok.v1+json';
let urlPath = `/resetPassword`;
const response = await this.request({
path: `/resetPassword`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -263,8 +281,11 @@ export class AccountApi extends runtime.BaseAPI {
headerParameters['Content-Type'] = 'application/zrok.v1+json';
let urlPath = `/resetPasswordRequest`;
const response = await this.request({
path: `/resetPasswordRequest`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -289,8 +310,11 @@ export class AccountApi extends runtime.BaseAPI {
headerParameters['Content-Type'] = 'application/zrok.v1+json';
let urlPath = `/verify`;
const response = await this.request({
path: `/verify`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,

View File

@@ -148,8 +148,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/frontend/grant`;
const response = await this.request({
path: `/frontend/grant`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -178,8 +181,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/organization/add`;
const response = await this.request({
path: `/organization/add`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -208,8 +214,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/account`;
const response = await this.request({
path: `/account`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -239,8 +248,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/frontend`;
const response = await this.request({
path: `/frontend`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -270,8 +282,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/identity`;
const response = await this.request({
path: `/identity`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -301,8 +316,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/organization`;
const response = await this.request({
path: `/organization`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -332,8 +350,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/account`;
const response = await this.request({
path: `/account`,
path: urlPath,
method: 'DELETE',
headers: headerParameters,
query: queryParameters,
@@ -362,8 +383,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/frontend`;
const response = await this.request({
path: `/frontend`,
path: urlPath,
method: 'DELETE',
headers: headerParameters,
query: queryParameters,
@@ -392,8 +416,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/frontend/grant`;
const response = await this.request({
path: `/frontend/grant`,
path: urlPath,
method: 'DELETE',
headers: headerParameters,
query: queryParameters,
@@ -422,8 +449,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/organization`;
const response = await this.request({
path: `/organization`,
path: urlPath,
method: 'DELETE',
headers: headerParameters,
query: queryParameters,
@@ -452,8 +482,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/grants`;
const response = await this.request({
path: `/grants`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -482,8 +515,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/invite/token/generate`;
const response = await this.request({
path: `/invite/token/generate`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -510,8 +546,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/frontends`;
const response = await this.request({
path: `/frontends`,
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -540,8 +579,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/organization/list`;
const response = await this.request({
path: `/organization/list`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -569,8 +611,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/organizations`;
const response = await this.request({
path: `/organizations`,
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -599,8 +644,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/organization/remove`;
const response = await this.request({
path: `/organization/remove`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -629,8 +677,11 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/frontend`;
const response = await this.request({
path: `/frontend`,
path: urlPath,
method: 'PATCH',
headers: headerParameters,
query: queryParameters,

View File

@@ -99,8 +99,11 @@ export class AgentApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/agent/enroll`;
const response = await this.request({
path: `/agent/enroll`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -130,8 +133,11 @@ export class AgentApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/agent/ping`;
const response = await this.request({
path: `/agent/ping`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -161,8 +167,11 @@ export class AgentApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/agent/access`;
const response = await this.request({
path: `/agent/access`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -192,8 +201,11 @@ export class AgentApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/agent/share`;
const response = await this.request({
path: `/agent/share`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -223,8 +235,11 @@ export class AgentApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/agent/status`;
const response = await this.request({
path: `/agent/status`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -254,8 +269,11 @@ export class AgentApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/agent/unaccess`;
const response = await this.request({
path: `/agent/unaccess`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -284,8 +302,11 @@ export class AgentApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/agent/unshare`;
const response = await this.request({
path: `/agent/unshare`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -314,8 +335,11 @@ export class AgentApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/agent/unenroll`;
const response = await this.request({
path: `/agent/unenroll`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,

View File

@@ -54,8 +54,11 @@ export class EnvironmentApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/disable`;
const response = await this.request({
path: `/disable`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -84,8 +87,11 @@ export class EnvironmentApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/enable`;
const response = await this.request({
path: `/enable`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,

View File

@@ -116,8 +116,11 @@ export class MetadataApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
let urlPath = `/configuration`;
const response = await this.request({
path: `/configuration`,
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -142,8 +145,11 @@ export class MetadataApi extends runtime.BaseAPI {
headerParameters['Content-Type'] = 'application/zrok.v1+json';
let urlPath = `/clientVersionCheck`;
const response = await this.request({
path: `/clientVersionCheck`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -170,8 +176,11 @@ export class MetadataApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/detail/account`;
const response = await this.request({
path: `/detail/account`,
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -202,8 +211,11 @@ export class MetadataApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/metrics/account`;
const response = await this.request({
path: `/metrics/account`,
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -237,8 +249,12 @@ export class MetadataApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/detail/environment/{envZId}`;
urlPath = urlPath.replace(`{${"envZId"}}`, encodeURIComponent(String(requestParameters['envZId'])));
const response = await this.request({
path: `/detail/environment/{envZId}`.replace(`{${"envZId"}}`, encodeURIComponent(String(requestParameters['envZId']))),
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -276,8 +292,12 @@ export class MetadataApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/metrics/environment/{envId}`;
urlPath = urlPath.replace(`{${"envId"}}`, encodeURIComponent(String(requestParameters['envId'])));
const response = await this.request({
path: `/metrics/environment/{envId}`.replace(`{${"envId"}}`, encodeURIComponent(String(requestParameters['envId']))),
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -311,8 +331,12 @@ export class MetadataApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/detail/frontend/{frontendId}`;
urlPath = urlPath.replace(`{${"frontendId"}}`, encodeURIComponent(String(requestParameters['frontendId'])));
const response = await this.request({
path: `/detail/frontend/{frontendId}`.replace(`{${"frontendId"}}`, encodeURIComponent(String(requestParameters['frontendId']))),
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -346,8 +370,12 @@ export class MetadataApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/detail/share/{shareToken}`;
urlPath = urlPath.replace(`{${"shareToken"}}`, encodeURIComponent(String(requestParameters['shareToken'])));
const response = await this.request({
path: `/detail/share/{shareToken}`.replace(`{${"shareToken"}}`, encodeURIComponent(String(requestParameters['shareToken']))),
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -385,8 +413,12 @@ export class MetadataApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/metrics/share/{shareToken}`;
urlPath = urlPath.replace(`{${"shareToken"}}`, encodeURIComponent(String(requestParameters['shareToken'])));
const response = await this.request({
path: `/metrics/share/{shareToken}`.replace(`{${"shareToken"}}`, encodeURIComponent(String(requestParameters['shareToken']))),
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -415,8 +447,11 @@ export class MetadataApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/sparklines`;
const response = await this.request({
path: `/sparklines`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -444,8 +479,11 @@ export class MetadataApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/memberships`;
const response = await this.request({
path: `/memberships`,
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -479,8 +517,12 @@ export class MetadataApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/members/{organizationToken}`;
urlPath = urlPath.replace(`{${"organizationToken"}}`, encodeURIComponent(String(requestParameters['organizationToken'])));
const response = await this.request({
path: `/members/{organizationToken}`.replace(`{${"organizationToken"}}`, encodeURIComponent(String(requestParameters['organizationToken']))),
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -507,8 +549,11 @@ export class MetadataApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/overview/public-frontends`;
const response = await this.request({
path: `/overview/public-frontends`,
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -549,8 +594,13 @@ export class MetadataApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/overview/{organizationToken}/{accountEmail}`;
urlPath = urlPath.replace(`{${"organizationToken"}}`, encodeURIComponent(String(requestParameters['organizationToken'])));
urlPath = urlPath.replace(`{${"accountEmail"}}`, encodeURIComponent(String(requestParameters['accountEmail'])));
const response = await this.request({
path: `/overview/{organizationToken}/{accountEmail}`.replace(`{${"organizationToken"}}`, encodeURIComponent(String(requestParameters['organizationToken']))).replace(`{${"accountEmail"}}`, encodeURIComponent(String(requestParameters['accountEmail']))),
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -577,8 +627,11 @@ export class MetadataApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/overview`;
const response = await this.request({
path: `/overview`,
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -601,8 +654,11 @@ export class MetadataApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
let urlPath = `/version`;
const response = await this.request({
path: `/version`,
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,
@@ -629,8 +685,11 @@ export class MetadataApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
let urlPath = `/versions`;
const response = await this.request({
path: `/versions`,
path: urlPath,
method: 'GET',
headers: headerParameters,
query: queryParameters,

View File

@@ -85,8 +85,11 @@ export class ShareApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/access`;
const response = await this.request({
path: `/access`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -116,8 +119,11 @@ export class ShareApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/share`;
const response = await this.request({
path: `/share`,
path: urlPath,
method: 'POST',
headers: headerParameters,
query: queryParameters,
@@ -147,8 +153,11 @@ export class ShareApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/unaccess`;
const response = await this.request({
path: `/unaccess`,
path: urlPath,
method: 'DELETE',
headers: headerParameters,
query: queryParameters,
@@ -177,8 +186,11 @@ export class ShareApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/unshare`;
const response = await this.request({
path: `/unshare`,
path: urlPath,
method: 'DELETE',
headers: headerParameters,
query: queryParameters,
@@ -207,8 +219,11 @@ export class ShareApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/access`;
const response = await this.request({
path: `/access`,
path: urlPath,
method: 'PATCH',
headers: headerParameters,
query: queryParameters,
@@ -237,8 +252,11 @@ export class ShareApi extends runtime.BaseAPI {
headerParameters["x-token"] = await this.configuration.apiKey("x-token"); // key authentication
}
let urlPath = `/share`;
const response = await this.request({
path: `/share`,
path: urlPath,
method: 'PATCH',
headers: headerParameters,
query: queryParameters,

View File

@@ -39,6 +39,12 @@ export interface Share {
* @memberof Share
*/
zId?: string;
/**
*
* @type {string}
* @memberof Share
*/
envZId?: string;
/**
*
* @type {string}
@@ -120,6 +126,7 @@ export function ShareFromJSONTyped(json: any, ignoreDiscriminator: boolean): Sha
'shareToken': json['shareToken'] == null ? undefined : json['shareToken'],
'zId': json['zId'] == null ? undefined : json['zId'],
'envZId': json['envZId'] == null ? undefined : json['envZId'],
'shareMode': json['shareMode'] == null ? undefined : json['shareMode'],
'backendMode': json['backendMode'] == null ? undefined : json['backendMode'],
'frontendSelection': json['frontendSelection'] == null ? undefined : json['frontendSelection'],
@@ -146,6 +153,7 @@ export function ShareToJSONTyped(value?: Share | null, ignoreDiscriminator: bool
'shareToken': value['shareToken'],
'zId': value['zId'],
'envZId': value['envZId'],
'shareMode': value['shareMode'],
'backendMode': value['backendMode'],
'frontendSelection': value['frontendSelection'],

View File

@@ -343,10 +343,11 @@ export function exists(json: any, key: string) {
}
export function mapValues(data: any, fn: (item: any) => any) {
return Object.keys(data).reduce(
(acc, key) => ({ ...acc, [key]: fn(data[key]) }),
{}
);
const result: { [key: string]: any } = {};
for (const key of Object.keys(data)) {
result[key] = fn(data[key]);
}
return result;
}
export function canConsumeForm(consumes: Consume[]): boolean {